!(function (e) {
  var t = {};
  function n(r) {
    if (t[r]) return t[r].exports;
    var o = (t[r] = { i: r, l: !1, exports: {} });
    return e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
  }
  (n.m = e),
    (n.c = t),
    (n.d = function (e, t, r) {
      n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r });
    }),
    (n.r = function (e) {
      "undefined" != typeof Symbol &&
        Symbol.toStringTag &&
        Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
        Object.defineProperty(e, "__esModule", { value: !0 });
    }),
    (n.t = function (e, t) {
      if ((1 & t && (e = n(e)), 8 & t)) return e;
      if (4 & t && "object" == typeof e && e && e.__esModule) return e;
      var r = Object.create(null);
      if (
        (n.r(r),
        Object.defineProperty(r, "default", { enumerable: !0, value: e }),
        2 & t && "string" != typeof e)
      )
        for (var o in e)
          n.d(
            r,
            o,
            function (t) {
              return e[t];
            }.bind(null, o)
          );
      return r;
    }),
    (n.n = function (e) {
      var t =
        e && e.__esModule
          ? function () {
              return e.default;
            }
          : function () {
              return e;
            };
      return n.d(t, "a", t), t;
    }),
    (n.o = function (e, t) {
      return Object.prototype.hasOwnProperty.call(e, t);
    }),
    (n.p = ""),
    n((n.s = 455));
})([
  function (e, t, n) {
    "use strict";
    e.exports = n(255);
  },
  function (e, t) {
    e.exports = function (e, t, n) {
      return (
        t in e
          ? Object.defineProperty(e, t, {
              value: n,
              enumerable: !0,
              configurable: !0,
              writable: !0,
            })
          : (e[t] = n),
        e
      );
    };
  },
  function (e, t, n) {
    "use strict";
    function r(e, t) {
      if (t.length < e)
        throw new TypeError(
          e +
            " argument" +
            (e > 1 ? "s" : "") +
            " required, but only " +
            t.length +
            " present"
        );
    }
    n.d(t, "a", function () {
      return r;
    });
  },
  function (e, t, n) {
    (function (e) {
      e.exports = (function () {
        "use strict";
        var t, r;
        function o() {
          return t.apply(null, arguments);
        }
        function a(e) {
          return (
            e instanceof Array ||
            "[object Array]" === Object.prototype.toString.call(e)
          );
        }
        function i(e) {
          return (
            null != e && "[object Object]" === Object.prototype.toString.call(e)
          );
        }
        function s(e, t) {
          return Object.prototype.hasOwnProperty.call(e, t);
        }
        function l(e) {
          if (Object.getOwnPropertyNames)
            return 0 === Object.getOwnPropertyNames(e).length;
          var t;
          for (t in e) if (s(e, t)) return !1;
          return !0;
        }
        function c(e) {
          return void 0 === e;
        }
        function u(e) {
          return (
            "number" == typeof e ||
            "[object Number]" === Object.prototype.toString.call(e)
          );
        }
        function d(e) {
          return (
            e instanceof Date ||
            "[object Date]" === Object.prototype.toString.call(e)
          );
        }
        function h(e, t) {
          var n,
            r = [];
          for (n = 0; n < e.length; ++n) r.push(t(e[n], n));
          return r;
        }
        function p(e, t) {
          for (var n in t) s(t, n) && (e[n] = t[n]);
          return (
            s(t, "toString") && (e.toString = t.toString),
            s(t, "valueOf") && (e.valueOf = t.valueOf),
            e
          );
        }
        function f(e, t, n, r) {
          return Et(e, t, n, r, !0).utc();
        }
        function m(e) {
          return (
            null == e._pf &&
              (e._pf = {
                empty: !1,
                unusedTokens: [],
                unusedInput: [],
                overflow: -2,
                charsLeftOver: 0,
                nullInput: !1,
                invalidEra: null,
                invalidMonth: null,
                invalidFormat: !1,
                userInvalidated: !1,
                iso: !1,
                parsedDateParts: [],
                era: null,
                meridiem: null,
                rfc2822: !1,
                weekdayMismatch: !1,
              }),
            e._pf
          );
        }
        function g(e) {
          if (null == e._isValid) {
            var t = m(e),
              n = r.call(t.parsedDateParts, function (e) {
                return null != e;
              }),
              o =
                !isNaN(e._d.getTime()) &&
                t.overflow < 0 &&
                !t.empty &&
                !t.invalidEra &&
                !t.invalidMonth &&
                !t.invalidWeekday &&
                !t.weekdayMismatch &&
                !t.nullInput &&
                !t.invalidFormat &&
                !t.userInvalidated &&
                (!t.meridiem || (t.meridiem && n));
            if (
              (e._strict &&
                (o =
                  o &&
                  0 === t.charsLeftOver &&
                  0 === t.unusedTokens.length &&
                  void 0 === t.bigHour),
              null != Object.isFrozen && Object.isFrozen(e))
            )
              return o;
            e._isValid = o;
          }
          return e._isValid;
        }
        function _(e) {
          var t = f(NaN);
          return null != e ? p(m(t), e) : (m(t).userInvalidated = !0), t;
        }
        r = Array.prototype.some
          ? Array.prototype.some
          : function (e) {
              var t,
                n = Object(this),
                r = n.length >>> 0;
              for (t = 0; t < r; t++)
                if (t in n && e.call(this, n[t], t, n)) return !0;
              return !1;
            };
        var v = (o.momentProperties = []),
          b = !1;
        function y(e, t) {
          var n, r, o;
          if (
            (c(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject),
            c(t._i) || (e._i = t._i),
            c(t._f) || (e._f = t._f),
            c(t._l) || (e._l = t._l),
            c(t._strict) || (e._strict = t._strict),
            c(t._tzm) || (e._tzm = t._tzm),
            c(t._isUTC) || (e._isUTC = t._isUTC),
            c(t._offset) || (e._offset = t._offset),
            c(t._pf) || (e._pf = m(t)),
            c(t._locale) || (e._locale = t._locale),
            v.length > 0)
          )
            for (n = 0; n < v.length; n++) c((o = t[(r = v[n])])) || (e[r] = o);
          return e;
        }
        function w(e) {
          y(this, e),
            (this._d = new Date(null != e._d ? e._d.getTime() : NaN)),
            this.isValid() || (this._d = new Date(NaN)),
            !1 === b && ((b = !0), o.updateOffset(this), (b = !1));
        }
        function k(e) {
          return e instanceof w || (null != e && null != e._isAMomentObject);
        }
        function x(e) {
          !1 === o.suppressDeprecationWarnings &&
            "undefined" != typeof console &&
            console.warn &&
            console.warn("Deprecation warning: " + e);
        }
        function M(e, t) {
          var n = !0;
          return p(function () {
            if (
              (null != o.deprecationHandler && o.deprecationHandler(null, e), n)
            ) {
              var r,
                a,
                i,
                l = [];
              for (a = 0; a < arguments.length; a++) {
                if (((r = ""), "object" == typeof arguments[a])) {
                  for (i in ((r += "\n[" + a + "] "), arguments[0]))
                    s(arguments[0], i) &&
                      (r += i + ": " + arguments[0][i] + ", ");
                  r = r.slice(0, -2);
                } else r = arguments[a];
                l.push(r);
              }
              x(
                e +
                  "\nArguments: " +
                  Array.prototype.slice.call(l).join("") +
                  "\n" +
                  new Error().stack
              ),
                (n = !1);
            }
            return t.apply(this, arguments);
          }, t);
        }
        var E,
          T = {};
        function S(e, t) {
          null != o.deprecationHandler && o.deprecationHandler(e, t),
            T[e] || (x(t), (T[e] = !0));
        }
        function D(e) {
          return (
            ("undefined" != typeof Function && e instanceof Function) ||
            "[object Function]" === Object.prototype.toString.call(e)
          );
        }
        function L(e, t) {
          var n,
            r = p({}, e);
          for (n in t)
            s(t, n) &&
              (i(e[n]) && i(t[n])
                ? ((r[n] = {}), p(r[n], e[n]), p(r[n], t[n]))
                : null != t[n]
                ? (r[n] = t[n])
                : delete r[n]);
          for (n in e) s(e, n) && !s(t, n) && i(e[n]) && (r[n] = p({}, r[n]));
          return r;
        }
        function C(e) {
          null != e && this.set(e);
        }
        function P(e, t, n) {
          var r = "" + Math.abs(e),
            o = t - r.length;
          return (
            (e >= 0 ? (n ? "+" : "") : "-") +
            Math.pow(10, Math.max(0, o)).toString().substr(1) +
            r
          );
        }
        (o.suppressDeprecationWarnings = !1),
          (o.deprecationHandler = null),
          (E = Object.keys
            ? Object.keys
            : function (e) {
                var t,
                  n = [];
                for (t in e) s(e, t) && n.push(t);
                return n;
              });
        var O = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
          N = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
          A = {},
          I = {};
        function R(e, t, n, r) {
          var o = r;
          "string" == typeof r &&
            (o = function () {
              return this[r]();
            }),
            e && (I[e] = o),
            t &&
              (I[t[0]] = function () {
                return P(o.apply(this, arguments), t[1], t[2]);
              }),
            n &&
              (I[n] = function () {
                return this.localeData().ordinal(o.apply(this, arguments), e);
              });
        }
        function Y(e, t) {
          return e.isValid()
            ? ((t = j(t, e.localeData())),
              (A[t] =
                A[t] ||
                (function (e) {
                  var t,
                    n,
                    r,
                    o = e.match(O);
                  for (t = 0, n = o.length; t < n; t++)
                    I[o[t]]
                      ? (o[t] = I[o[t]])
                      : (o[t] = (r = o[t]).match(/\[[\s\S]/)
                          ? r.replace(/^\[|\]$/g, "")
                          : r.replace(/\\/g, ""));
                  return function (t) {
                    var r,
                      a = "";
                    for (r = 0; r < n; r++)
                      a += D(o[r]) ? o[r].call(t, e) : o[r];
                    return a;
                  };
                })(t)),
              A[t](e))
            : e.localeData().invalidDate();
        }
        function j(e, t) {
          var n = 5;
          function r(e) {
            return t.longDateFormat(e) || e;
          }
          for (N.lastIndex = 0; n >= 0 && N.test(e); )
            (e = e.replace(N, r)), (N.lastIndex = 0), (n -= 1);
          return e;
        }
        var F = {};
        function H(e, t) {
          var n = e.toLowerCase();
          F[n] = F[n + "s"] = F[t] = e;
        }
        function z(e) {
          return "string" == typeof e ? F[e] || F[e.toLowerCase()] : void 0;
        }
        function B(e) {
          var t,
            n,
            r = {};
          for (n in e) s(e, n) && (t = z(n)) && (r[t] = e[n]);
          return r;
        }
        var U = {};
        function V(e, t) {
          U[e] = t;
        }
        function W(e) {
          return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0;
        }
        function q(e) {
          return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
        }
        function G(e) {
          var t = +e,
            n = 0;
          return 0 !== t && isFinite(t) && (n = q(t)), n;
        }
        function J(e, t) {
          return function (n) {
            return null != n
              ? (Q(this, e, n), o.updateOffset(this, t), this)
              : K(this, e);
          };
        }
        function K(e, t) {
          return e.isValid()
            ? e._d["get" + (e._isUTC ? "UTC" : "") + t]()
            : NaN;
        }
        function Q(e, t, n) {
          e.isValid() &&
            !isNaN(n) &&
            ("FullYear" === t &&
            W(e.year()) &&
            1 === e.month() &&
            29 === e.date()
              ? ((n = G(n)),
                e._d["set" + (e._isUTC ? "UTC" : "") + t](
                  n,
                  e.month(),
                  ke(n, e.month())
                ))
              : e._d["set" + (e._isUTC ? "UTC" : "") + t](n));
        }
        var X,
          $ = /\d/,
          Z = /\d\d/,
          ee = /\d{3}/,
          te = /\d{4}/,
          ne = /[+-]?\d{6}/,
          re = /\d\d?/,
          oe = /\d\d\d\d?/,
          ae = /\d\d\d\d\d\d?/,
          ie = /\d{1,3}/,
          se = /\d{1,4}/,
          le = /[+-]?\d{1,6}/,
          ce = /\d+/,
          ue = /[+-]?\d+/,
          de = /Z|[+-]\d\d:?\d\d/gi,
          he = /Z|[+-]\d\d(?::?\d\d)?/gi,
          pe = /[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;
        function fe(e, t, n) {
          X[e] = D(t)
            ? t
            : function (e, r) {
                return e && n ? n : t;
              };
        }
        function me(e, t) {
          return s(X, e)
            ? X[e](t._strict, t._locale)
            : new RegExp(
                ge(
                  e
                    .replace("\\", "")
                    .replace(
                      /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
                      function (e, t, n, r, o) {
                        return t || n || r || o;
                      }
                    )
                )
              );
        }
        function ge(e) {
          return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
        }
        X = {};
        var _e,
          ve = {};
        function be(e, t) {
          var n,
            r = t;
          for (
            "string" == typeof e && (e = [e]),
              u(t) &&
                (r = function (e, n) {
                  n[t] = G(e);
                }),
              n = 0;
            n < e.length;
            n++
          )
            ve[e[n]] = r;
        }
        function ye(e, t) {
          be(e, function (e, n, r, o) {
            (r._w = r._w || {}), t(e, r._w, r, o);
          });
        }
        function we(e, t, n) {
          null != t && s(ve, e) && ve[e](t, n._a, n, e);
        }
        function ke(e, t) {
          if (isNaN(e) || isNaN(t)) return NaN;
          var n,
            r = ((t % (n = 12)) + n) % n;
          return (
            (e += (t - r) / 12), 1 === r ? (W(e) ? 29 : 28) : 31 - ((r % 7) % 2)
          );
        }
        (_e = Array.prototype.indexOf
          ? Array.prototype.indexOf
          : function (e) {
              var t;
              for (t = 0; t < this.length; ++t) if (this[t] === e) return t;
              return -1;
            }),
          R("M", ["MM", 2], "Mo", function () {
            return this.month() + 1;
          }),
          R("MMM", 0, 0, function (e) {
            return this.localeData().monthsShort(this, e);
          }),
          R("MMMM", 0, 0, function (e) {
            return this.localeData().months(this, e);
          }),
          H("month", "M"),
          V("month", 8),
          fe("M", re),
          fe("MM", re, Z),
          fe("MMM", function (e, t) {
            return t.monthsShortRegex(e);
          }),
          fe("MMMM", function (e, t) {
            return t.monthsRegex(e);
          }),
          be(["M", "MM"], function (e, t) {
            t[1] = G(e) - 1;
          }),
          be(["MMM", "MMMM"], function (e, t, n, r) {
            var o = n._locale.monthsParse(e, r, n._strict);
            null != o ? (t[1] = o) : (m(n).invalidMonth = e);
          });
        var xe = "January_February_March_April_May_June_July_August_September_October_November_December".split(
            "_"
          ),
          Me = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
          Ee = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
          Te = pe,
          Se = pe;
        function De(e, t, n) {
          var r,
            o,
            a,
            i = e.toLocaleLowerCase();
          if (!this._monthsParse)
            for (
              this._monthsParse = [],
                this._longMonthsParse = [],
                this._shortMonthsParse = [],
                r = 0;
              r < 12;
              ++r
            )
              (a = f([2e3, r])),
                (this._shortMonthsParse[r] = this.monthsShort(
                  a,
                  ""
                ).toLocaleLowerCase()),
                (this._longMonthsParse[r] = this.months(
                  a,
                  ""
                ).toLocaleLowerCase());
          return n
            ? "MMM" === t
              ? -1 !== (o = _e.call(this._shortMonthsParse, i))
                ? o
                : null
              : -1 !== (o = _e.call(this._longMonthsParse, i))
              ? o
              : null
            : "MMM" === t
            ? -1 !== (o = _e.call(this._shortMonthsParse, i)) ||
              -1 !== (o = _e.call(this._longMonthsParse, i))
              ? o
              : null
            : -1 !== (o = _e.call(this._longMonthsParse, i)) ||
              -1 !== (o = _e.call(this._shortMonthsParse, i))
            ? o
            : null;
        }
        function Le(e, t) {
          var n;
          if (!e.isValid()) return e;
          if ("string" == typeof t)
            if (/^\d+$/.test(t)) t = G(t);
            else if (!u((t = e.localeData().monthsParse(t)))) return e;
          return (
            (n = Math.min(e.date(), ke(e.year(), t))),
            e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, n),
            e
          );
        }
        function Ce(e) {
          return null != e
            ? (Le(this, e), o.updateOffset(this, !0), this)
            : K(this, "Month");
        }
        function Pe() {
          function e(e, t) {
            return t.length - e.length;
          }
          var t,
            n,
            r = [],
            o = [],
            a = [];
          for (t = 0; t < 12; t++)
            (n = f([2e3, t])),
              r.push(this.monthsShort(n, "")),
              o.push(this.months(n, "")),
              a.push(this.months(n, "")),
              a.push(this.monthsShort(n, ""));
          for (r.sort(e), o.sort(e), a.sort(e), t = 0; t < 12; t++)
            (r[t] = ge(r[t])), (o[t] = ge(o[t]));
          for (t = 0; t < 24; t++) a[t] = ge(a[t]);
          (this._monthsRegex = new RegExp("^(" + a.join("|") + ")", "i")),
            (this._monthsShortRegex = this._monthsRegex),
            (this._monthsStrictRegex = new RegExp(
              "^(" + o.join("|") + ")",
              "i"
            )),
            (this._monthsShortStrictRegex = new RegExp(
              "^(" + r.join("|") + ")",
              "i"
            ));
        }
        function Oe(e) {
          return W(e) ? 366 : 365;
        }
        R("Y", 0, 0, function () {
          var e = this.year();
          return e <= 9999 ? P(e, 4) : "+" + e;
        }),
          R(0, ["YY", 2], 0, function () {
            return this.year() % 100;
          }),
          R(0, ["YYYY", 4], 0, "year"),
          R(0, ["YYYYY", 5], 0, "year"),
          R(0, ["YYYYYY", 6, !0], 0, "year"),
          H("year", "y"),
          V("year", 1),
          fe("Y", ue),
          fe("YY", re, Z),
          fe("YYYY", se, te),
          fe("YYYYY", le, ne),
          fe("YYYYYY", le, ne),
          be(["YYYYY", "YYYYYY"], 0),
          be("YYYY", function (e, t) {
            t[0] = 2 === e.length ? o.parseTwoDigitYear(e) : G(e);
          }),
          be("YY", function (e, t) {
            t[0] = o.parseTwoDigitYear(e);
          }),
          be("Y", function (e, t) {
            t[0] = parseInt(e, 10);
          }),
          (o.parseTwoDigitYear = function (e) {
            return G(e) + (G(e) > 68 ? 1900 : 2e3);
          });
        var Ne = J("FullYear", !0);
        function Ae(e, t, n, r, o, a, i) {
          var s;
          return (
            e < 100 && e >= 0
              ? ((s = new Date(e + 400, t, n, r, o, a, i)),
                isFinite(s.getFullYear()) && s.setFullYear(e))
              : (s = new Date(e, t, n, r, o, a, i)),
            s
          );
        }
        function Ie(e) {
          var t, n;
          return (
            e < 100 && e >= 0
              ? (((n = Array.prototype.slice.call(arguments))[0] = e + 400),
                (t = new Date(Date.UTC.apply(null, n))),
                isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e))
              : (t = new Date(Date.UTC.apply(null, arguments))),
            t
          );
        }
        function Re(e, t, n) {
          var r = 7 + t - n;
          return (-(7 + Ie(e, 0, r).getUTCDay() - t) % 7) + r - 1;
        }
        function Ye(e, t, n, r, o) {
          var a,
            i,
            s = 1 + 7 * (t - 1) + ((7 + n - r) % 7) + Re(e, r, o);
          return (
            s <= 0
              ? (i = Oe((a = e - 1)) + s)
              : s > Oe(e)
              ? ((a = e + 1), (i = s - Oe(e)))
              : ((a = e), (i = s)),
            { year: a, dayOfYear: i }
          );
        }
        function je(e, t, n) {
          var r,
            o,
            a = Re(e.year(), t, n),
            i = Math.floor((e.dayOfYear() - a - 1) / 7) + 1;
          return (
            i < 1
              ? (r = i + Fe((o = e.year() - 1), t, n))
              : i > Fe(e.year(), t, n)
              ? ((r = i - Fe(e.year(), t, n)), (o = e.year() + 1))
              : ((o = e.year()), (r = i)),
            { week: r, year: o }
          );
        }
        function Fe(e, t, n) {
          var r = Re(e, t, n),
            o = Re(e + 1, t, n);
          return (Oe(e) - r + o) / 7;
        }
        function He(e, t) {
          return e.slice(t, 7).concat(e.slice(0, t));
        }
        R("w", ["ww", 2], "wo", "week"),
          R("W", ["WW", 2], "Wo", "isoWeek"),
          H("week", "w"),
          H("isoWeek", "W"),
          V("week", 5),
          V("isoWeek", 5),
          fe("w", re),
          fe("ww", re, Z),
          fe("W", re),
          fe("WW", re, Z),
          ye(["w", "ww", "W", "WW"], function (e, t, n, r) {
            t[r.substr(0, 1)] = G(e);
          }),
          R("d", 0, "do", "day"),
          R("dd", 0, 0, function (e) {
            return this.localeData().weekdaysMin(this, e);
          }),
          R("ddd", 0, 0, function (e) {
            return this.localeData().weekdaysShort(this, e);
          }),
          R("dddd", 0, 0, function (e) {
            return this.localeData().weekdays(this, e);
          }),
          R("e", 0, 0, "weekday"),
          R("E", 0, 0, "isoWeekday"),
          H("day", "d"),
          H("weekday", "e"),
          H("isoWeekday", "E"),
          V("day", 11),
          V("weekday", 11),
          V("isoWeekday", 11),
          fe("d", re),
          fe("e", re),
          fe("E", re),
          fe("dd", function (e, t) {
            return t.weekdaysMinRegex(e);
          }),
          fe("ddd", function (e, t) {
            return t.weekdaysShortRegex(e);
          }),
          fe("dddd", function (e, t) {
            return t.weekdaysRegex(e);
          }),
          ye(["dd", "ddd", "dddd"], function (e, t, n, r) {
            var o = n._locale.weekdaysParse(e, r, n._strict);
            null != o ? (t.d = o) : (m(n).invalidWeekday = e);
          }),
          ye(["d", "e", "E"], function (e, t, n, r) {
            t[r] = G(e);
          });
        var ze = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split(
            "_"
          ),
          Be = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
          Ue = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
          Ve = pe,
          We = pe,
          qe = pe;
        function Ge(e, t, n) {
          var r,
            o,
            a,
            i = e.toLocaleLowerCase();
          if (!this._weekdaysParse)
            for (
              this._weekdaysParse = [],
                this._shortWeekdaysParse = [],
                this._minWeekdaysParse = [],
                r = 0;
              r < 7;
              ++r
            )
              (a = f([2e3, 1]).day(r)),
                (this._minWeekdaysParse[r] = this.weekdaysMin(
                  a,
                  ""
                ).toLocaleLowerCase()),
                (this._shortWeekdaysParse[r] = this.weekdaysShort(
                  a,
                  ""
                ).toLocaleLowerCase()),
                (this._weekdaysParse[r] = this.weekdays(
                  a,
                  ""
                ).toLocaleLowerCase());
          return n
            ? "dddd" === t
              ? -1 !== (o = _e.call(this._weekdaysParse, i))
                ? o
                : null
              : "ddd" === t
              ? -1 !== (o = _e.call(this._shortWeekdaysParse, i))
                ? o
                : null
              : -1 !== (o = _e.call(this._minWeekdaysParse, i))
              ? o
              : null
            : "dddd" === t
            ? -1 !== (o = _e.call(this._weekdaysParse, i)) ||
              -1 !== (o = _e.call(this._shortWeekdaysParse, i)) ||
              -1 !== (o = _e.call(this._minWeekdaysParse, i))
              ? o
              : null
            : "ddd" === t
            ? -1 !== (o = _e.call(this._shortWeekdaysParse, i)) ||
              -1 !== (o = _e.call(this._weekdaysParse, i)) ||
              -1 !== (o = _e.call(this._minWeekdaysParse, i))
              ? o
              : null
            : -1 !== (o = _e.call(this._minWeekdaysParse, i)) ||
              -1 !== (o = _e.call(this._weekdaysParse, i)) ||
              -1 !== (o = _e.call(this._shortWeekdaysParse, i))
            ? o
            : null;
        }
        function Je() {
          function e(e, t) {
            return t.length - e.length;
          }
          var t,
            n,
            r,
            o,
            a,
            i = [],
            s = [],
            l = [],
            c = [];
          for (t = 0; t < 7; t++)
            (n = f([2e3, 1]).day(t)),
              (r = ge(this.weekdaysMin(n, ""))),
              (o = ge(this.weekdaysShort(n, ""))),
              (a = ge(this.weekdays(n, ""))),
              i.push(r),
              s.push(o),
              l.push(a),
              c.push(r),
              c.push(o),
              c.push(a);
          i.sort(e),
            s.sort(e),
            l.sort(e),
            c.sort(e),
            (this._weekdaysRegex = new RegExp("^(" + c.join("|") + ")", "i")),
            (this._weekdaysShortRegex = this._weekdaysRegex),
            (this._weekdaysMinRegex = this._weekdaysRegex),
            (this._weekdaysStrictRegex = new RegExp(
              "^(" + l.join("|") + ")",
              "i"
            )),
            (this._weekdaysShortStrictRegex = new RegExp(
              "^(" + s.join("|") + ")",
              "i"
            )),
            (this._weekdaysMinStrictRegex = new RegExp(
              "^(" + i.join("|") + ")",
              "i"
            ));
        }
        function Ke() {
          return this.hours() % 12 || 12;
        }
        function Qe(e, t) {
          R(e, 0, 0, function () {
            return this.localeData().meridiem(this.hours(), this.minutes(), t);
          });
        }
        function Xe(e, t) {
          return t._meridiemParse;
        }
        R("H", ["HH", 2], 0, "hour"),
          R("h", ["hh", 2], 0, Ke),
          R("k", ["kk", 2], 0, function () {
            return this.hours() || 24;
          }),
          R("hmm", 0, 0, function () {
            return "" + Ke.apply(this) + P(this.minutes(), 2);
          }),
          R("hmmss", 0, 0, function () {
            return (
              "" + Ke.apply(this) + P(this.minutes(), 2) + P(this.seconds(), 2)
            );
          }),
          R("Hmm", 0, 0, function () {
            return "" + this.hours() + P(this.minutes(), 2);
          }),
          R("Hmmss", 0, 0, function () {
            return (
              "" + this.hours() + P(this.minutes(), 2) + P(this.seconds(), 2)
            );
          }),
          Qe("a", !0),
          Qe("A", !1),
          H("hour", "h"),
          V("hour", 13),
          fe("a", Xe),
          fe("A", Xe),
          fe("H", re),
          fe("h", re),
          fe("k", re),
          fe("HH", re, Z),
          fe("hh", re, Z),
          fe("kk", re, Z),
          fe("hmm", oe),
          fe("hmmss", ae),
          fe("Hmm", oe),
          fe("Hmmss", ae),
          be(["H", "HH"], 3),
          be(["k", "kk"], function (e, t, n) {
            var r = G(e);
            t[3] = 24 === r ? 0 : r;
          }),
          be(["a", "A"], function (e, t, n) {
            (n._isPm = n._locale.isPM(e)), (n._meridiem = e);
          }),
          be(["h", "hh"], function (e, t, n) {
            (t[3] = G(e)), (m(n).bigHour = !0);
          }),
          be("hmm", function (e, t, n) {
            var r = e.length - 2;
            (t[3] = G(e.substr(0, r))),
              (t[4] = G(e.substr(r))),
              (m(n).bigHour = !0);
          }),
          be("hmmss", function (e, t, n) {
            var r = e.length - 4,
              o = e.length - 2;
            (t[3] = G(e.substr(0, r))),
              (t[4] = G(e.substr(r, 2))),
              (t[5] = G(e.substr(o))),
              (m(n).bigHour = !0);
          }),
          be("Hmm", function (e, t, n) {
            var r = e.length - 2;
            (t[3] = G(e.substr(0, r))), (t[4] = G(e.substr(r)));
          }),
          be("Hmmss", function (e, t, n) {
            var r = e.length - 4,
              o = e.length - 2;
            (t[3] = G(e.substr(0, r))),
              (t[4] = G(e.substr(r, 2))),
              (t[5] = G(e.substr(o)));
          });
        var $e,
          Ze = J("Hours", !0),
          et = {
            calendar: {
              sameDay: "[Today at] LT",
              nextDay: "[Tomorrow at] LT",
              nextWeek: "dddd [at] LT",
              lastDay: "[Yesterday at] LT",
              lastWeek: "[Last] dddd [at] LT",
              sameElse: "L",
            },
            longDateFormat: {
              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",
            },
            invalidDate: "Invalid date",
            ordinal: "%d",
            dayOfMonthOrdinalParse: /\d{1,2}/,
            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",
              w: "a week",
              ww: "%d weeks",
              M: "a month",
              MM: "%d months",
              y: "a year",
              yy: "%d years",
            },
            months: xe,
            monthsShort: Me,
            week: { dow: 0, doy: 6 },
            weekdays: ze,
            weekdaysMin: Ue,
            weekdaysShort: Be,
            meridiemParse: /[ap]\.?m?\.?/i,
          },
          tt = {},
          nt = {};
        function rt(e, t) {
          var n,
            r = Math.min(e.length, t.length);
          for (n = 0; n < r; n += 1) if (e[n] !== t[n]) return n;
          return r;
        }
        function ot(e) {
          return e ? e.toLowerCase().replace("_", "-") : e;
        }
        function at(t) {
          var r = null;
          if (void 0 === tt[t] && void 0 !== e && e && e.exports)
            try {
              (r = $e._abbr), n(290)("./" + t), it(r);
            } catch (e) {
              tt[t] = null;
            }
          return tt[t];
        }
        function it(e, t) {
          var n;
          return (
            e &&
              ((n = c(t) ? lt(e) : st(e, t))
                ? ($e = n)
                : "undefined" != typeof console &&
                  console.warn &&
                  console.warn(
                    "Locale " + e + " not found. Did you forget to load it?"
                  )),
            $e._abbr
          );
        }
        function st(e, t) {
          if (null !== t) {
            var n,
              r = et;
            if (((t.abbr = e), null != tt[e]))
              S(
                "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."
              ),
                (r = tt[e]._config);
            else if (null != t.parentLocale)
              if (null != tt[t.parentLocale]) r = tt[t.parentLocale]._config;
              else {
                if (null == (n = at(t.parentLocale)))
                  return (
                    nt[t.parentLocale] || (nt[t.parentLocale] = []),
                    nt[t.parentLocale].push({ name: e, config: t }),
                    null
                  );
                r = n._config;
              }
            return (
              (tt[e] = new C(L(r, t))),
              nt[e] &&
                nt[e].forEach(function (e) {
                  st(e.name, e.config);
                }),
              it(e),
              tt[e]
            );
          }
          return delete tt[e], null;
        }
        function lt(e) {
          var t;
          if ((e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e))
            return $e;
          if (!a(e)) {
            if ((t = at(e))) return t;
            e = [e];
          }
          return (function (e) {
            for (var t, n, r, o, a = 0; a < e.length; ) {
              for (
                t = (o = ot(e[a]).split("-")).length,
                  n = (n = ot(e[a + 1])) ? n.split("-") : null;
                t > 0;

              ) {
                if ((r = at(o.slice(0, t).join("-")))) return r;
                if (n && n.length >= t && rt(o, n) >= t - 1) break;
                t--;
              }
              a++;
            }
            return $e;
          })(e);
        }
        function ct(e) {
          var t,
            n = e._a;
          return (
            n &&
              -2 === m(e).overflow &&
              ((t =
                n[1] < 0 || n[1] > 11
                  ? 1
                  : n[2] < 1 || n[2] > ke(n[0], n[1])
                  ? 2
                  : n[3] < 0 ||
                    n[3] > 24 ||
                    (24 === n[3] && (0 !== n[4] || 0 !== n[5] || 0 !== n[6]))
                  ? 3
                  : n[4] < 0 || n[4] > 59
                  ? 4
                  : n[5] < 0 || n[5] > 59
                  ? 5
                  : n[6] < 0 || n[6] > 999
                  ? 6
                  : -1),
              m(e)._overflowDayOfYear && (t < 0 || t > 2) && (t = 2),
              m(e)._overflowWeeks && -1 === t && (t = 7),
              m(e)._overflowWeekday && -1 === t && (t = 8),
              (m(e).overflow = t)),
            e
          );
        }
        var ut = /^\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)?)?$/,
          dt = /^\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)?)?$/,
          ht = /Z|[+-]\d\d(?::?\d\d)?/,
          pt = [
            ["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/, !1],
            ["YYYY-DDD", /\d{4}-\d{3}/],
            ["YYYY-MM", /\d{4}-\d\d/, !1],
            ["YYYYYYMMDD", /[+-]\d{10}/],
            ["YYYYMMDD", /\d{8}/],
            ["GGGG[W]WWE", /\d{4}W\d{3}/],
            ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
            ["YYYYDDD", /\d{7}/],
            ["YYYYMM", /\d{6}/, !1],
            ["YYYY", /\d{4}/, !1],
          ],
          ft = [
            ["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/],
          ],
          mt = /^\/?Date\((-?\d+)/i,
          gt = /^(?:(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}))$/,
          _t = {
            UT: 0,
            GMT: 0,
            EDT: -240,
            EST: -300,
            CDT: -300,
            CST: -360,
            MDT: -360,
            MST: -420,
            PDT: -420,
            PST: -480,
          };
        function vt(e) {
          var t,
            n,
            r,
            o,
            a,
            i,
            s = e._i,
            l = ut.exec(s) || dt.exec(s);
          if (l) {
            for (m(e).iso = !0, t = 0, n = pt.length; t < n; t++)
              if (pt[t][1].exec(l[1])) {
                (o = pt[t][0]), (r = !1 !== pt[t][2]);
                break;
              }
            if (null == o) return void (e._isValid = !1);
            if (l[3]) {
              for (t = 0, n = ft.length; t < n; t++)
                if (ft[t][1].exec(l[3])) {
                  a = (l[2] || " ") + ft[t][0];
                  break;
                }
              if (null == a) return void (e._isValid = !1);
            }
            if (!r && null != a) return void (e._isValid = !1);
            if (l[4]) {
              if (!ht.exec(l[4])) return void (e._isValid = !1);
              i = "Z";
            }
            (e._f = o + (a || "") + (i || "")), xt(e);
          } else e._isValid = !1;
        }
        function bt(e) {
          var t = parseInt(e, 10);
          return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
        }
        function yt(e) {
          var t,
            n,
            r,
            o,
            a,
            i,
            s,
            l,
            c = gt.exec(
              e._i
                .replace(/\([^)]*\)|[\n\t]/g, " ")
                .replace(/(\s\s+)/g, " ")
                .replace(/^\s\s*/, "")
                .replace(/\s\s*$/, "")
            );
          if (c) {
            if (
              ((n = c[4]),
              (r = c[3]),
              (o = c[2]),
              (a = c[5]),
              (i = c[6]),
              (s = c[7]),
              (l = [
                bt(n),
                Me.indexOf(r),
                parseInt(o, 10),
                parseInt(a, 10),
                parseInt(i, 10),
              ]),
              s && l.push(parseInt(s, 10)),
              (t = l),
              !(function (e, t, n) {
                return (
                  !e ||
                  Be.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() ||
                  ((m(n).weekdayMismatch = !0), (n._isValid = !1), !1)
                );
              })(c[1], t, e))
            )
              return;
            (e._a = t),
              (e._tzm = (function (e, t, n) {
                if (e) return _t[e];
                if (t) return 0;
                var r = parseInt(n, 10),
                  o = r % 100;
                return ((r - o) / 100) * 60 + o;
              })(c[8], c[9], c[10])),
              (e._d = Ie.apply(null, e._a)),
              e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
              (m(e).rfc2822 = !0);
          } else e._isValid = !1;
        }
        function wt(e, t, n) {
          return null != e ? e : null != t ? t : n;
        }
        function kt(e) {
          var t,
            n,
            r,
            a,
            i,
            s = [];
          if (!e._d) {
            for (
              r = (function (e) {
                var t = new Date(o.now());
                return e._useUTC
                  ? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()]
                  : [t.getFullYear(), t.getMonth(), t.getDate()];
              })(e),
                e._w &&
                  null == e._a[2] &&
                  null == e._a[1] &&
                  (function (e) {
                    var t, n, r, o, a, i, s, l, c;
                    null != (t = e._w).GG || null != t.W || null != t.E
                      ? ((a = 1),
                        (i = 4),
                        (n = wt(t.GG, e._a[0], je(Tt(), 1, 4).year)),
                        (r = wt(t.W, 1)),
                        ((o = wt(t.E, 1)) < 1 || o > 7) && (l = !0))
                      : ((a = e._locale._week.dow),
                        (i = e._locale._week.doy),
                        (c = je(Tt(), a, i)),
                        (n = wt(t.gg, e._a[0], c.year)),
                        (r = wt(t.w, c.week)),
                        null != t.d
                          ? ((o = t.d) < 0 || o > 6) && (l = !0)
                          : null != t.e
                          ? ((o = t.e + a), (t.e < 0 || t.e > 6) && (l = !0))
                          : (o = a)),
                      r < 1 || r > Fe(n, a, i)
                        ? (m(e)._overflowWeeks = !0)
                        : null != l
                        ? (m(e)._overflowWeekday = !0)
                        : ((s = Ye(n, r, o, a, i)),
                          (e._a[0] = s.year),
                          (e._dayOfYear = s.dayOfYear));
                  })(e),
                null != e._dayOfYear &&
                  ((i = wt(e._a[0], r[0])),
                  (e._dayOfYear > Oe(i) || 0 === e._dayOfYear) &&
                    (m(e)._overflowDayOfYear = !0),
                  (n = Ie(i, 0, e._dayOfYear)),
                  (e._a[1] = n.getUTCMonth()),
                  (e._a[2] = n.getUTCDate())),
                t = 0;
              t < 3 && null == e._a[t];
              ++t
            )
              e._a[t] = s[t] = r[t];
            for (; t < 7; t++)
              e._a[t] = s[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t];
            24 === e._a[3] &&
              0 === e._a[4] &&
              0 === e._a[5] &&
              0 === e._a[6] &&
              ((e._nextDay = !0), (e._a[3] = 0)),
              (e._d = (e._useUTC ? Ie : Ae).apply(null, s)),
              (a = e._useUTC ? e._d.getUTCDay() : e._d.getDay()),
              null != e._tzm &&
                e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
              e._nextDay && (e._a[3] = 24),
              e._w &&
                void 0 !== e._w.d &&
                e._w.d !== a &&
                (m(e).weekdayMismatch = !0);
          }
        }
        function xt(e) {
          if (e._f !== o.ISO_8601)
            if (e._f !== o.RFC_2822) {
              (e._a = []), (m(e).empty = !0);
              var t,
                n,
                r,
                a,
                i,
                s,
                l = "" + e._i,
                c = l.length,
                u = 0;
              for (
                r = j(e._f, e._locale).match(O) || [], t = 0;
                t < r.length;
                t++
              )
                (a = r[t]),
                  (n = (l.match(me(a, e)) || [])[0]) &&
                    ((i = l.substr(0, l.indexOf(n))).length > 0 &&
                      m(e).unusedInput.push(i),
                    (l = l.slice(l.indexOf(n) + n.length)),
                    (u += n.length)),
                  I[a]
                    ? (n ? (m(e).empty = !1) : m(e).unusedTokens.push(a),
                      we(a, n, e))
                    : e._strict && !n && m(e).unusedTokens.push(a);
              (m(e).charsLeftOver = c - u),
                l.length > 0 && m(e).unusedInput.push(l),
                e._a[3] <= 12 &&
                  !0 === m(e).bigHour &&
                  e._a[3] > 0 &&
                  (m(e).bigHour = void 0),
                (m(e).parsedDateParts = e._a.slice(0)),
                (m(e).meridiem = e._meridiem),
                (e._a[3] = (function (e, t, n) {
                  var r;
                  return null == n
                    ? t
                    : null != e.meridiemHour
                    ? e.meridiemHour(t, n)
                    : null != e.isPM
                    ? ((r = e.isPM(n)) && t < 12 && (t += 12),
                      r || 12 !== t || (t = 0),
                      t)
                    : t;
                })(e._locale, e._a[3], e._meridiem)),
                null !== (s = m(e).era) &&
                  (e._a[0] = e._locale.erasConvertYear(s, e._a[0])),
                kt(e),
                ct(e);
            } else yt(e);
          else vt(e);
        }
        function Mt(e) {
          var t = e._i,
            n = e._f;
          return (
            (e._locale = e._locale || lt(e._l)),
            null === t || (void 0 === n && "" === t)
              ? _({ nullInput: !0 })
              : ("string" == typeof t && (e._i = t = e._locale.preparse(t)),
                k(t)
                  ? new w(ct(t))
                  : (d(t)
                      ? (e._d = t)
                      : a(n)
                      ? (function (e) {
                          var t,
                            n,
                            r,
                            o,
                            a,
                            i,
                            s = !1;
                          if (0 === e._f.length)
                            return (
                              (m(e).invalidFormat = !0),
                              void (e._d = new Date(NaN))
                            );
                          for (o = 0; o < e._f.length; o++)
                            (a = 0),
                              (i = !1),
                              (t = y({}, e)),
                              null != e._useUTC && (t._useUTC = e._useUTC),
                              (t._f = e._f[o]),
                              xt(t),
                              g(t) && (i = !0),
                              (a += m(t).charsLeftOver),
                              (a += 10 * m(t).unusedTokens.length),
                              (m(t).score = a),
                              s
                                ? a < r && ((r = a), (n = t))
                                : (null == r || a < r || i) &&
                                  ((r = a), (n = t), i && (s = !0));
                          p(e, n || t);
                        })(e)
                      : n
                      ? xt(e)
                      : (function (e) {
                          var t = e._i;
                          c(t)
                            ? (e._d = new Date(o.now()))
                            : d(t)
                            ? (e._d = new Date(t.valueOf()))
                            : "string" == typeof t
                            ? (function (e) {
                                var t = mt.exec(e._i);
                                null === t
                                  ? (vt(e),
                                    !1 === e._isValid &&
                                      (delete e._isValid,
                                      yt(e),
                                      !1 === e._isValid &&
                                        (delete e._isValid,
                                        e._strict
                                          ? (e._isValid = !1)
                                          : o.createFromInputFallback(e))))
                                  : (e._d = new Date(+t[1]));
                              })(e)
                            : a(t)
                            ? ((e._a = h(t.slice(0), function (e) {
                                return parseInt(e, 10);
                              })),
                              kt(e))
                            : i(t)
                            ? (function (e) {
                                if (!e._d) {
                                  var t = B(e._i),
                                    n = void 0 === t.day ? t.date : t.day;
                                  (e._a = h(
                                    [
                                      t.year,
                                      t.month,
                                      n,
                                      t.hour,
                                      t.minute,
                                      t.second,
                                      t.millisecond,
                                    ],
                                    function (e) {
                                      return e && parseInt(e, 10);
                                    }
                                  )),
                                    kt(e);
                                }
                              })(e)
                            : u(t)
                            ? (e._d = new Date(t))
                            : o.createFromInputFallback(e);
                        })(e),
                    g(e) || (e._d = null),
                    e))
          );
        }
        function Et(e, t, n, r, o) {
          var s,
            c = {};
          return (
            (!0 !== t && !1 !== t) || ((r = t), (t = void 0)),
            (!0 !== n && !1 !== n) || ((r = n), (n = void 0)),
            ((i(e) && l(e)) || (a(e) && 0 === e.length)) && (e = void 0),
            (c._isAMomentObject = !0),
            (c._useUTC = c._isUTC = o),
            (c._l = n),
            (c._i = e),
            (c._f = t),
            (c._strict = r),
            (s = new w(ct(Mt(c))))._nextDay &&
              (s.add(1, "d"), (s._nextDay = void 0)),
            s
          );
        }
        function Tt(e, t, n, r) {
          return Et(e, t, n, r, !1);
        }
        (o.createFromInputFallback = M(
          "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 (e) {
            e._d = new Date(e._i + (e._useUTC ? " UTC" : ""));
          }
        )),
          (o.ISO_8601 = function () {}),
          (o.RFC_2822 = function () {});
        var St = M(
            "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
            function () {
              var e = Tt.apply(null, arguments);
              return this.isValid() && e.isValid()
                ? e < this
                  ? this
                  : e
                : _();
            }
          ),
          Dt = M(
            "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
            function () {
              var e = Tt.apply(null, arguments);
              return this.isValid() && e.isValid()
                ? e > this
                  ? this
                  : e
                : _();
            }
          );
        function Lt(e, t) {
          var n, r;
          if ((1 === t.length && a(t[0]) && (t = t[0]), !t.length)) return Tt();
          for (n = t[0], r = 1; r < t.length; ++r)
            (t[r].isValid() && !t[r][e](n)) || (n = t[r]);
          return n;
        }
        var Ct = [
          "year",
          "quarter",
          "month",
          "week",
          "day",
          "hour",
          "minute",
          "second",
          "millisecond",
        ];
        function Pt(e) {
          var t = B(e),
            n = t.year || 0,
            r = t.quarter || 0,
            o = t.month || 0,
            a = t.week || t.isoWeek || 0,
            i = t.day || 0,
            l = t.hour || 0,
            c = t.minute || 0,
            u = t.second || 0,
            d = t.millisecond || 0;
          (this._isValid = (function (e) {
            var t,
              n,
              r = !1;
            for (t in e)
              if (
                s(e, t) &&
                (-1 === _e.call(Ct, t) || (null != e[t] && isNaN(e[t])))
              )
                return !1;
            for (n = 0; n < Ct.length; ++n)
              if (e[Ct[n]]) {
                if (r) return !1;
                parseFloat(e[Ct[n]]) !== G(e[Ct[n]]) && (r = !0);
              }
            return !0;
          })(t)),
            (this._milliseconds = +d + 1e3 * u + 6e4 * c + 1e3 * l * 60 * 60),
            (this._days = +i + 7 * a),
            (this._months = +o + 3 * r + 12 * n),
            (this._data = {}),
            (this._locale = lt()),
            this._bubble();
        }
        function Ot(e) {
          return e instanceof Pt;
        }
        function Nt(e) {
          return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e);
        }
        function At(e, t) {
          R(e, 0, 0, function () {
            var e = this.utcOffset(),
              n = "+";
            return (
              e < 0 && ((e = -e), (n = "-")),
              n + P(~~(e / 60), 2) + t + P(~~e % 60, 2)
            );
          });
        }
        At("Z", ":"),
          At("ZZ", ""),
          fe("Z", he),
          fe("ZZ", he),
          be(["Z", "ZZ"], function (e, t, n) {
            (n._useUTC = !0), (n._tzm = Rt(he, e));
          });
        var It = /([\+\-]|\d\d)/gi;
        function Rt(e, t) {
          var n,
            r,
            o = (t || "").match(e);
          return null === o
            ? null
            : 0 ===
              (r =
                60 *
                  (n = ((o[o.length - 1] || []) + "").match(It) || [
                    "-",
                    0,
                    0,
                  ])[1] +
                G(n[2]))
            ? 0
            : "+" === n[0]
            ? r
            : -r;
        }
        function Yt(e, t) {
          var n, r;
          return t._isUTC
            ? ((n = t.clone()),
              (r =
                (k(e) || d(e) ? e.valueOf() : Tt(e).valueOf()) - n.valueOf()),
              n._d.setTime(n._d.valueOf() + r),
              o.updateOffset(n, !1),
              n)
            : Tt(e).local();
        }
        function jt(e) {
          return -Math.round(e._d.getTimezoneOffset());
        }
        function Ft() {
          return !!this.isValid() && this._isUTC && 0 === this._offset;
        }
        o.updateOffset = function () {};
        var Ht = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
          zt = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
        function Bt(e, t) {
          var n,
            r,
            o,
            a,
            i,
            l,
            c = e,
            d = null;
          return (
            Ot(e)
              ? (c = { ms: e._milliseconds, d: e._days, M: e._months })
              : u(e) || !isNaN(+e)
              ? ((c = {}), t ? (c[t] = +e) : (c.milliseconds = +e))
              : (d = Ht.exec(e))
              ? ((n = "-" === d[1] ? -1 : 1),
                (c = {
                  y: 0,
                  d: G(d[2]) * n,
                  h: G(d[3]) * n,
                  m: G(d[4]) * n,
                  s: G(d[5]) * n,
                  ms: G(Nt(1e3 * d[6])) * n,
                }))
              : (d = zt.exec(e))
              ? ((n = "-" === d[1] ? -1 : 1),
                (c = {
                  y: Ut(d[2], n),
                  M: Ut(d[3], n),
                  w: Ut(d[4], n),
                  d: Ut(d[5], n),
                  h: Ut(d[6], n),
                  m: Ut(d[7], n),
                  s: Ut(d[8], n),
                }))
              : null == c
              ? (c = {})
              : "object" == typeof c &&
                ("from" in c || "to" in c) &&
                ((a = Tt(c.from)),
                (i = Tt(c.to)),
                (o =
                  a.isValid() && i.isValid()
                    ? ((i = Yt(i, a)),
                      a.isBefore(i)
                        ? (l = Vt(a, i))
                        : (((l = Vt(i, a)).milliseconds = -l.milliseconds),
                          (l.months = -l.months)),
                      l)
                    : { milliseconds: 0, months: 0 }),
                ((c = {}).ms = o.milliseconds),
                (c.M = o.months)),
            (r = new Pt(c)),
            Ot(e) && s(e, "_locale") && (r._locale = e._locale),
            Ot(e) && s(e, "_isValid") && (r._isValid = e._isValid),
            r
          );
        }
        function Ut(e, t) {
          var n = e && parseFloat(e.replace(",", "."));
          return (isNaN(n) ? 0 : n) * t;
        }
        function Vt(e, t) {
          var n = {};
          return (
            (n.months = t.month() - e.month() + 12 * (t.year() - e.year())),
            e.clone().add(n.months, "M").isAfter(t) && --n.months,
            (n.milliseconds = +t - +e.clone().add(n.months, "M")),
            n
          );
        }
        function Wt(e, t) {
          return function (n, r) {
            var o;
            return (
              null === r ||
                isNaN(+r) ||
                (S(
                  t,
                  "moment()." +
                    t +
                    "(period, number) is deprecated. Please use moment()." +
                    t +
                    "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
                ),
                (o = n),
                (n = r),
                (r = o)),
              qt(this, Bt(n, r), e),
              this
            );
          };
        }
        function qt(e, t, n, r) {
          var a = t._milliseconds,
            i = Nt(t._days),
            s = Nt(t._months);
          e.isValid() &&
            ((r = null == r || r),
            s && Le(e, K(e, "Month") + s * n),
            i && Q(e, "Date", K(e, "Date") + i * n),
            a && e._d.setTime(e._d.valueOf() + a * n),
            r && o.updateOffset(e, i || s));
        }
        (Bt.fn = Pt.prototype),
          (Bt.invalid = function () {
            return Bt(NaN);
          });
        var Gt = Wt(1, "add"),
          Jt = Wt(-1, "subtract");
        function Kt(e) {
          return "string" == typeof e || e instanceof String;
        }
        function Qt(e) {
          return (
            k(e) ||
            d(e) ||
            Kt(e) ||
            u(e) ||
            (function (e) {
              var t = a(e),
                n = !1;
              return (
                t &&
                  (n =
                    0 ===
                    e.filter(function (t) {
                      return !u(t) && Kt(e);
                    }).length),
                t && n
              );
            })(e) ||
            (function (e) {
              var t,
                n,
                r = i(e) && !l(e),
                o = !1,
                a = [
                  "years",
                  "year",
                  "y",
                  "months",
                  "month",
                  "M",
                  "days",
                  "day",
                  "d",
                  "dates",
                  "date",
                  "D",
                  "hours",
                  "hour",
                  "h",
                  "minutes",
                  "minute",
                  "m",
                  "seconds",
                  "second",
                  "s",
                  "milliseconds",
                  "millisecond",
                  "ms",
                ];
              for (t = 0; t < a.length; t += 1) (n = a[t]), (o = o || s(e, n));
              return r && o;
            })(e) ||
            null == e
          );
        }
        function Xt(e) {
          var t,
            n = i(e) && !l(e),
            r = !1,
            o = [
              "sameDay",
              "nextDay",
              "lastDay",
              "nextWeek",
              "lastWeek",
              "sameElse",
            ];
          for (t = 0; t < o.length; t += 1) r = r || s(e, o[t]);
          return n && r;
        }
        function $t(e, t) {
          if (e.date() < t.date()) return -$t(t, e);
          var n = 12 * (t.year() - e.year()) + (t.month() - e.month()),
            r = e.clone().add(n, "months");
          return (
            -(
              n +
              (t - r < 0
                ? (t - r) / (r - e.clone().add(n - 1, "months"))
                : (t - r) / (e.clone().add(n + 1, "months") - r))
            ) || 0
          );
        }
        function Zt(e) {
          var t;
          return void 0 === e
            ? this._locale._abbr
            : (null != (t = lt(e)) && (this._locale = t), this);
        }
        (o.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ"),
          (o.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]");
        var en = M(
          "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
          function (e) {
            return void 0 === e ? this.localeData() : this.locale(e);
          }
        );
        function tn() {
          return this._locale;
        }
        function nn(e, t) {
          return ((e % t) + t) % t;
        }
        function rn(e, t, n) {
          return e < 100 && e >= 0
            ? new Date(e + 400, t, n) - 126227808e5
            : new Date(e, t, n).valueOf();
        }
        function on(e, t, n) {
          return e < 100 && e >= 0
            ? Date.UTC(e + 400, t, n) - 126227808e5
            : Date.UTC(e, t, n);
        }
        function an(e, t) {
          return t.erasAbbrRegex(e);
        }
        function sn() {
          var e,
            t,
            n = [],
            r = [],
            o = [],
            a = [],
            i = this.eras();
          for (e = 0, t = i.length; e < t; ++e)
            r.push(ge(i[e].name)),
              n.push(ge(i[e].abbr)),
              o.push(ge(i[e].narrow)),
              a.push(ge(i[e].name)),
              a.push(ge(i[e].abbr)),
              a.push(ge(i[e].narrow));
          (this._erasRegex = new RegExp("^(" + a.join("|") + ")", "i")),
            (this._erasNameRegex = new RegExp("^(" + r.join("|") + ")", "i")),
            (this._erasAbbrRegex = new RegExp("^(" + n.join("|") + ")", "i")),
            (this._erasNarrowRegex = new RegExp("^(" + o.join("|") + ")", "i"));
        }
        function ln(e, t) {
          R(0, [e, e.length], 0, t);
        }
        function cn(e, t, n, r, o) {
          var a;
          return null == e
            ? je(this, r, o).year
            : (t > (a = Fe(e, r, o)) && (t = a), un.call(this, e, t, n, r, o));
        }
        function un(e, t, n, r, o) {
          var a = Ye(e, t, n, r, o),
            i = Ie(a.year, 0, a.dayOfYear);
          return (
            this.year(i.getUTCFullYear()),
            this.month(i.getUTCMonth()),
            this.date(i.getUTCDate()),
            this
          );
        }
        R("N", 0, 0, "eraAbbr"),
          R("NN", 0, 0, "eraAbbr"),
          R("NNN", 0, 0, "eraAbbr"),
          R("NNNN", 0, 0, "eraName"),
          R("NNNNN", 0, 0, "eraNarrow"),
          R("y", ["y", 1], "yo", "eraYear"),
          R("y", ["yy", 2], 0, "eraYear"),
          R("y", ["yyy", 3], 0, "eraYear"),
          R("y", ["yyyy", 4], 0, "eraYear"),
          fe("N", an),
          fe("NN", an),
          fe("NNN", an),
          fe("NNNN", function (e, t) {
            return t.erasNameRegex(e);
          }),
          fe("NNNNN", function (e, t) {
            return t.erasNarrowRegex(e);
          }),
          be(["N", "NN", "NNN", "NNNN", "NNNNN"], function (e, t, n, r) {
            var o = n._locale.erasParse(e, r, n._strict);
            o ? (m(n).era = o) : (m(n).invalidEra = e);
          }),
          fe("y", ce),
          fe("yy", ce),
          fe("yyy", ce),
          fe("yyyy", ce),
          fe("yo", function (e, t) {
            return t._eraYearOrdinalRegex || ce;
          }),
          be(["y", "yy", "yyy", "yyyy"], 0),
          be(["yo"], function (e, t, n, r) {
            var o;
            n._locale._eraYearOrdinalRegex &&
              (o = e.match(n._locale._eraYearOrdinalRegex)),
              n._locale.eraYearOrdinalParse
                ? (t[0] = n._locale.eraYearOrdinalParse(e, o))
                : (t[0] = parseInt(e, 10));
          }),
          R(0, ["gg", 2], 0, function () {
            return this.weekYear() % 100;
          }),
          R(0, ["GG", 2], 0, function () {
            return this.isoWeekYear() % 100;
          }),
          ln("gggg", "weekYear"),
          ln("ggggg", "weekYear"),
          ln("GGGG", "isoWeekYear"),
          ln("GGGGG", "isoWeekYear"),
          H("weekYear", "gg"),
          H("isoWeekYear", "GG"),
          V("weekYear", 1),
          V("isoWeekYear", 1),
          fe("G", ue),
          fe("g", ue),
          fe("GG", re, Z),
          fe("gg", re, Z),
          fe("GGGG", se, te),
          fe("gggg", se, te),
          fe("GGGGG", le, ne),
          fe("ggggg", le, ne),
          ye(["gggg", "ggggg", "GGGG", "GGGGG"], function (e, t, n, r) {
            t[r.substr(0, 2)] = G(e);
          }),
          ye(["gg", "GG"], function (e, t, n, r) {
            t[r] = o.parseTwoDigitYear(e);
          }),
          R("Q", 0, "Qo", "quarter"),
          H("quarter", "Q"),
          V("quarter", 7),
          fe("Q", $),
          be("Q", function (e, t) {
            t[1] = 3 * (G(e) - 1);
          }),
          R("D", ["DD", 2], "Do", "date"),
          H("date", "D"),
          V("date", 9),
          fe("D", re),
          fe("DD", re, Z),
          fe("Do", function (e, t) {
            return e
              ? t._dayOfMonthOrdinalParse || t._ordinalParse
              : t._dayOfMonthOrdinalParseLenient;
          }),
          be(["D", "DD"], 2),
          be("Do", function (e, t) {
            t[2] = G(e.match(re)[0]);
          });
        var dn = J("Date", !0);
        R("DDD", ["DDDD", 3], "DDDo", "dayOfYear"),
          H("dayOfYear", "DDD"),
          V("dayOfYear", 4),
          fe("DDD", ie),
          fe("DDDD", ee),
          be(["DDD", "DDDD"], function (e, t, n) {
            n._dayOfYear = G(e);
          }),
          R("m", ["mm", 2], 0, "minute"),
          H("minute", "m"),
          V("minute", 14),
          fe("m", re),
          fe("mm", re, Z),
          be(["m", "mm"], 4);
        var hn = J("Minutes", !1);
        R("s", ["ss", 2], 0, "second"),
          H("second", "s"),
          V("second", 15),
          fe("s", re),
          fe("ss", re, Z),
          be(["s", "ss"], 5);
        var pn,
          fn,
          mn = J("Seconds", !1);
        for (
          R("S", 0, 0, function () {
            return ~~(this.millisecond() / 100);
          }),
            R(0, ["SS", 2], 0, function () {
              return ~~(this.millisecond() / 10);
            }),
            R(0, ["SSS", 3], 0, "millisecond"),
            R(0, ["SSSS", 4], 0, function () {
              return 10 * this.millisecond();
            }),
            R(0, ["SSSSS", 5], 0, function () {
              return 100 * this.millisecond();
            }),
            R(0, ["SSSSSS", 6], 0, function () {
              return 1e3 * this.millisecond();
            }),
            R(0, ["SSSSSSS", 7], 0, function () {
              return 1e4 * this.millisecond();
            }),
            R(0, ["SSSSSSSS", 8], 0, function () {
              return 1e5 * this.millisecond();
            }),
            R(0, ["SSSSSSSSS", 9], 0, function () {
              return 1e6 * this.millisecond();
            }),
            H("millisecond", "ms"),
            V("millisecond", 16),
            fe("S", ie, $),
            fe("SS", ie, Z),
            fe("SSS", ie, ee),
            pn = "SSSS";
          pn.length <= 9;
          pn += "S"
        )
          fe(pn, ce);
        function gn(e, t) {
          t[6] = G(1e3 * ("0." + e));
        }
        for (pn = "S"; pn.length <= 9; pn += "S") be(pn, gn);
        (fn = J("Milliseconds", !1)),
          R("z", 0, 0, "zoneAbbr"),
          R("zz", 0, 0, "zoneName");
        var _n = w.prototype;
        function vn(e) {
          return e;
        }
        (_n.add = Gt),
          (_n.calendar = function (e, t) {
            1 === arguments.length &&
              (arguments[0]
                ? Qt(arguments[0])
                  ? ((e = arguments[0]), (t = void 0))
                  : Xt(arguments[0]) && ((t = arguments[0]), (e = void 0))
                : ((e = void 0), (t = void 0)));
            var n = e || Tt(),
              r = Yt(n, this).startOf("day"),
              a = o.calendarFormat(this, r) || "sameElse",
              i = t && (D(t[a]) ? t[a].call(this, n) : t[a]);
            return this.format(i || this.localeData().calendar(a, this, Tt(n)));
          }),
          (_n.clone = function () {
            return new w(this);
          }),
          (_n.diff = function (e, t, n) {
            var r, o, a;
            if (!this.isValid()) return NaN;
            if (!(r = Yt(e, this)).isValid()) return NaN;
            switch (
              ((o = 6e4 * (r.utcOffset() - this.utcOffset())), (t = z(t)))
            ) {
              case "year":
                a = $t(this, r) / 12;
                break;
              case "month":
                a = $t(this, r);
                break;
              case "quarter":
                a = $t(this, r) / 3;
                break;
              case "second":
                a = (this - r) / 1e3;
                break;
              case "minute":
                a = (this - r) / 6e4;
                break;
              case "hour":
                a = (this - r) / 36e5;
                break;
              case "day":
                a = (this - r - o) / 864e5;
                break;
              case "week":
                a = (this - r - o) / 6048e5;
                break;
              default:
                a = this - r;
            }
            return n ? a : q(a);
          }),
          (_n.endOf = function (e) {
            var t, n;
            if (void 0 === (e = z(e)) || "millisecond" === e || !this.isValid())
              return this;
            switch (((n = this._isUTC ? on : rn), e)) {
              case "year":
                t = n(this.year() + 1, 0, 1) - 1;
                break;
              case "quarter":
                t =
                  n(this.year(), this.month() - (this.month() % 3) + 3, 1) - 1;
                break;
              case "month":
                t = n(this.year(), this.month() + 1, 1) - 1;
                break;
              case "week":
                t =
                  n(
                    this.year(),
                    this.month(),
                    this.date() - this.weekday() + 7
                  ) - 1;
                break;
              case "isoWeek":
                t =
                  n(
                    this.year(),
                    this.month(),
                    this.date() - (this.isoWeekday() - 1) + 7
                  ) - 1;
                break;
              case "day":
              case "date":
                t = n(this.year(), this.month(), this.date() + 1) - 1;
                break;
              case "hour":
                (t = this._d.valueOf()),
                  (t +=
                    36e5 -
                    nn(t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5) -
                    1);
                break;
              case "minute":
                (t = this._d.valueOf()), (t += 6e4 - nn(t, 6e4) - 1);
                break;
              case "second":
                (t = this._d.valueOf()), (t += 1e3 - nn(t, 1e3) - 1);
            }
            return this._d.setTime(t), o.updateOffset(this, !0), this;
          }),
          (_n.format = function (e) {
            e || (e = this.isUtc() ? o.defaultFormatUtc : o.defaultFormat);
            var t = Y(this, e);
            return this.localeData().postformat(t);
          }),
          (_n.from = function (e, t) {
            return this.isValid() && ((k(e) && e.isValid()) || Tt(e).isValid())
              ? Bt({ to: this, from: e }).locale(this.locale()).humanize(!t)
              : this.localeData().invalidDate();
          }),
          (_n.fromNow = function (e) {
            return this.from(Tt(), e);
          }),
          (_n.to = function (e, t) {
            return this.isValid() && ((k(e) && e.isValid()) || Tt(e).isValid())
              ? Bt({ from: this, to: e }).locale(this.locale()).humanize(!t)
              : this.localeData().invalidDate();
          }),
          (_n.toNow = function (e) {
            return this.to(Tt(), e);
          }),
          (_n.get = function (e) {
            return D(this[(e = z(e))]) ? this[e]() : this;
          }),
          (_n.invalidAt = function () {
            return m(this).overflow;
          }),
          (_n.isAfter = function (e, t) {
            var n = k(e) ? e : Tt(e);
            return (
              !(!this.isValid() || !n.isValid()) &&
              ("millisecond" === (t = z(t) || "millisecond")
                ? this.valueOf() > n.valueOf()
                : n.valueOf() < this.clone().startOf(t).valueOf())
            );
          }),
          (_n.isBefore = function (e, t) {
            var n = k(e) ? e : Tt(e);
            return (
              !(!this.isValid() || !n.isValid()) &&
              ("millisecond" === (t = z(t) || "millisecond")
                ? this.valueOf() < n.valueOf()
                : this.clone().endOf(t).valueOf() < n.valueOf())
            );
          }),
          (_n.isBetween = function (e, t, n, r) {
            var o = k(e) ? e : Tt(e),
              a = k(t) ? t : Tt(t);
            return (
              !!(this.isValid() && o.isValid() && a.isValid()) &&
              ("(" === (r = r || "()")[0]
                ? this.isAfter(o, n)
                : !this.isBefore(o, n)) &&
              (")" === r[1] ? this.isBefore(a, n) : !this.isAfter(a, n))
            );
          }),
          (_n.isSame = function (e, t) {
            var n,
              r = k(e) ? e : Tt(e);
            return (
              !(!this.isValid() || !r.isValid()) &&
              ("millisecond" === (t = z(t) || "millisecond")
                ? this.valueOf() === r.valueOf()
                : ((n = r.valueOf()),
                  this.clone().startOf(t).valueOf() <= n &&
                    n <= this.clone().endOf(t).valueOf()))
            );
          }),
          (_n.isSameOrAfter = function (e, t) {
            return this.isSame(e, t) || this.isAfter(e, t);
          }),
          (_n.isSameOrBefore = function (e, t) {
            return this.isSame(e, t) || this.isBefore(e, t);
          }),
          (_n.isValid = function () {
            return g(this);
          }),
          (_n.lang = en),
          (_n.locale = Zt),
          (_n.localeData = tn),
          (_n.max = Dt),
          (_n.min = St),
          (_n.parsingFlags = function () {
            return p({}, m(this));
          }),
          (_n.set = function (e, t) {
            if ("object" == typeof e) {
              var n,
                r = (function (e) {
                  var t,
                    n = [];
                  for (t in e) s(e, t) && n.push({ unit: t, priority: U[t] });
                  return (
                    n.sort(function (e, t) {
                      return e.priority - t.priority;
                    }),
                    n
                  );
                })((e = B(e)));
              for (n = 0; n < r.length; n++) this[r[n].unit](e[r[n].unit]);
            } else if (D(this[(e = z(e))])) return this[e](t);
            return this;
          }),
          (_n.startOf = function (e) {
            var t, n;
            if (void 0 === (e = z(e)) || "millisecond" === e || !this.isValid())
              return this;
            switch (((n = this._isUTC ? on : rn), e)) {
              case "year":
                t = n(this.year(), 0, 1);
                break;
              case "quarter":
                t = n(this.year(), this.month() - (this.month() % 3), 1);
                break;
              case "month":
                t = n(this.year(), this.month(), 1);
                break;
              case "week":
                t = n(this.year(), this.month(), this.date() - this.weekday());
                break;
              case "isoWeek":
                t = n(
                  this.year(),
                  this.month(),
                  this.date() - (this.isoWeekday() - 1)
                );
                break;
              case "day":
              case "date":
                t = n(this.year(), this.month(), this.date());
                break;
              case "hour":
                (t = this._d.valueOf()),
                  (t -= nn(
                    t + (this._isUTC ? 0 : 6e4 * this.utcOffset()),
                    36e5
                  ));
                break;
              case "minute":
                (t = this._d.valueOf()), (t -= nn(t, 6e4));
                break;
              case "second":
                (t = this._d.valueOf()), (t -= nn(t, 1e3));
            }
            return this._d.setTime(t), o.updateOffset(this, !0), this;
          }),
          (_n.subtract = Jt),
          (_n.toArray = function () {
            var e = this;
            return [
              e.year(),
              e.month(),
              e.date(),
              e.hour(),
              e.minute(),
              e.second(),
              e.millisecond(),
            ];
          }),
          (_n.toObject = function () {
            var e = this;
            return {
              years: e.year(),
              months: e.month(),
              date: e.date(),
              hours: e.hours(),
              minutes: e.minutes(),
              seconds: e.seconds(),
              milliseconds: e.milliseconds(),
            };
          }),
          (_n.toDate = function () {
            return new Date(this.valueOf());
          }),
          (_n.toISOString = function (e) {
            if (!this.isValid()) return null;
            var t = !0 !== e,
              n = t ? this.clone().utc() : this;
            return n.year() < 0 || n.year() > 9999
              ? Y(
                  n,
                  t
                    ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"
                    : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
                )
              : D(Date.prototype.toISOString)
              ? t
                ? this.toDate().toISOString()
                : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3)
                    .toISOString()
                    .replace("Z", Y(n, "Z"))
              : Y(
                  n,
                  t
                    ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"
                    : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
                );
          }),
          (_n.inspect = function () {
            if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";
            var e,
              t,
              n,
              r = "moment",
              o = "";
            return (
              this.isLocal() ||
                ((r =
                  0 === this.utcOffset() ? "moment.utc" : "moment.parseZone"),
                (o = "Z")),
              (e = "[" + r + '("]'),
              (t = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY"),
              (n = o + '[")]'),
              this.format(e + t + "-MM-DD[T]HH:mm:ss.SSS" + n)
            );
          }),
          "undefined" != typeof Symbol &&
            null != Symbol.for &&
            (_n[Symbol.for("nodejs.util.inspect.custom")] = function () {
              return "Moment<" + this.format() + ">";
            }),
          (_n.toJSON = function () {
            return this.isValid() ? this.toISOString() : null;
          }),
          (_n.toString = function () {
            return this.clone()
              .locale("en")
              .format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
          }),
          (_n.unix = function () {
            return Math.floor(this.valueOf() / 1e3);
          }),
          (_n.valueOf = function () {
            return this._d.valueOf() - 6e4 * (this._offset || 0);
          }),
          (_n.creationData = function () {
            return {
              input: this._i,
              format: this._f,
              locale: this._locale,
              isUTC: this._isUTC,
              strict: this._strict,
            };
          }),
          (_n.eraName = function () {
            var e,
              t,
              n,
              r = this.localeData().eras();
            for (e = 0, t = r.length; e < t; ++e) {
              if (
                ((n = this.clone().startOf("day").valueOf()),
                r[e].since <= n && n <= r[e].until)
              )
                return r[e].name;
              if (r[e].until <= n && n <= r[e].since) return r[e].name;
            }
            return "";
          }),
          (_n.eraNarrow = function () {
            var e,
              t,
              n,
              r = this.localeData().eras();
            for (e = 0, t = r.length; e < t; ++e) {
              if (
                ((n = this.clone().startOf("day").valueOf()),
                r[e].since <= n && n <= r[e].until)
              )
                return r[e].narrow;
              if (r[e].until <= n && n <= r[e].since) return r[e].narrow;
            }
            return "";
          }),
          (_n.eraAbbr = function () {
            var e,
              t,
              n,
              r = this.localeData().eras();
            for (e = 0, t = r.length; e < t; ++e) {
              if (
                ((n = this.clone().startOf("day").valueOf()),
                r[e].since <= n && n <= r[e].until)
              )
                return r[e].abbr;
              if (r[e].until <= n && n <= r[e].since) return r[e].abbr;
            }
            return "";
          }),
          (_n.eraYear = function () {
            var e,
              t,
              n,
              r,
              a = this.localeData().eras();
            for (e = 0, t = a.length; e < t; ++e)
              if (
                ((n = a[e].since <= a[e].until ? 1 : -1),
                (r = this.clone().startOf("day").valueOf()),
                (a[e].since <= r && r <= a[e].until) ||
                  (a[e].until <= r && r <= a[e].since))
              )
                return (this.year() - o(a[e].since).year()) * n + a[e].offset;
            return this.year();
          }),
          (_n.year = Ne),
          (_n.isLeapYear = function () {
            return W(this.year());
          }),
          (_n.weekYear = function (e) {
            return cn.call(
              this,
              e,
              this.week(),
              this.weekday(),
              this.localeData()._week.dow,
              this.localeData()._week.doy
            );
          }),
          (_n.isoWeekYear = function (e) {
            return cn.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4);
          }),
          (_n.quarter = _n.quarters = function (e) {
            return null == e
              ? Math.ceil((this.month() + 1) / 3)
              : this.month(3 * (e - 1) + (this.month() % 3));
          }),
          (_n.month = Ce),
          (_n.daysInMonth = function () {
            return ke(this.year(), this.month());
          }),
          (_n.week = _n.weeks = function (e) {
            var t = this.localeData().week(this);
            return null == e ? t : this.add(7 * (e - t), "d");
          }),
          (_n.isoWeek = _n.isoWeeks = function (e) {
            var t = je(this, 1, 4).week;
            return null == e ? t : this.add(7 * (e - t), "d");
          }),
          (_n.weeksInYear = function () {
            var e = this.localeData()._week;
            return Fe(this.year(), e.dow, e.doy);
          }),
          (_n.weeksInWeekYear = function () {
            var e = this.localeData()._week;
            return Fe(this.weekYear(), e.dow, e.doy);
          }),
          (_n.isoWeeksInYear = function () {
            return Fe(this.year(), 1, 4);
          }),
          (_n.isoWeeksInISOWeekYear = function () {
            return Fe(this.isoWeekYear(), 1, 4);
          }),
          (_n.date = dn),
          (_n.day = _n.days = function (e) {
            if (!this.isValid()) return null != e ? this : NaN;
            var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
            return null != e
              ? ((e = (function (e, t) {
                  return "string" != typeof e
                    ? e
                    : isNaN(e)
                    ? "number" == typeof (e = t.weekdaysParse(e))
                      ? e
                      : null
                    : parseInt(e, 10);
                })(e, this.localeData())),
                this.add(e - t, "d"))
              : t;
          }),
          (_n.weekday = function (e) {
            if (!this.isValid()) return null != e ? this : NaN;
            var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
            return null == e ? t : this.add(e - t, "d");
          }),
          (_n.isoWeekday = function (e) {
            if (!this.isValid()) return null != e ? this : NaN;
            if (null != e) {
              var t = (function (e, t) {
                return "string" == typeof e
                  ? t.weekdaysParse(e) % 7 || 7
                  : isNaN(e)
                  ? null
                  : e;
              })(e, this.localeData());
              return this.day(this.day() % 7 ? t : t - 7);
            }
            return this.day() || 7;
          }),
          (_n.dayOfYear = function (e) {
            var t =
              Math.round(
                (this.clone().startOf("day") - this.clone().startOf("year")) /
                  864e5
              ) + 1;
            return null == e ? t : this.add(e - t, "d");
          }),
          (_n.hour = _n.hours = Ze),
          (_n.minute = _n.minutes = hn),
          (_n.second = _n.seconds = mn),
          (_n.millisecond = _n.milliseconds = fn),
          (_n.utcOffset = function (e, t, n) {
            var r,
              a = this._offset || 0;
            if (!this.isValid()) return null != e ? this : NaN;
            if (null != e) {
              if ("string" == typeof e) {
                if (null === (e = Rt(he, e))) return this;
              } else Math.abs(e) < 16 && !n && (e *= 60);
              return (
                !this._isUTC && t && (r = jt(this)),
                (this._offset = e),
                (this._isUTC = !0),
                null != r && this.add(r, "m"),
                a !== e &&
                  (!t || this._changeInProgress
                    ? qt(this, Bt(e - a, "m"), 1, !1)
                    : this._changeInProgress ||
                      ((this._changeInProgress = !0),
                      o.updateOffset(this, !0),
                      (this._changeInProgress = null))),
                this
              );
            }
            return this._isUTC ? a : jt(this);
          }),
          (_n.utc = function (e) {
            return this.utcOffset(0, e);
          }),
          (_n.local = function (e) {
            return (
              this._isUTC &&
                (this.utcOffset(0, e),
                (this._isUTC = !1),
                e && this.subtract(jt(this), "m")),
              this
            );
          }),
          (_n.parseZone = function () {
            if (null != this._tzm) this.utcOffset(this._tzm, !1, !0);
            else if ("string" == typeof this._i) {
              var e = Rt(de, this._i);
              null != e ? this.utcOffset(e) : this.utcOffset(0, !0);
            }
            return this;
          }),
          (_n.hasAlignedHourOffset = function (e) {
            return (
              !!this.isValid() &&
              ((e = e ? Tt(e).utcOffset() : 0),
              (this.utcOffset() - e) % 60 == 0)
            );
          }),
          (_n.isDST = function () {
            return (
              this.utcOffset() > this.clone().month(0).utcOffset() ||
              this.utcOffset() > this.clone().month(5).utcOffset()
            );
          }),
          (_n.isLocal = function () {
            return !!this.isValid() && !this._isUTC;
          }),
          (_n.isUtcOffset = function () {
            return !!this.isValid() && this._isUTC;
          }),
          (_n.isUtc = Ft),
          (_n.isUTC = Ft),
          (_n.zoneAbbr = function () {
            return this._isUTC ? "UTC" : "";
          }),
          (_n.zoneName = function () {
            return this._isUTC ? "Coordinated Universal Time" : "";
          }),
          (_n.dates = M("dates accessor is deprecated. Use date instead.", dn)),
          (_n.months = M(
            "months accessor is deprecated. Use month instead",
            Ce
          )),
          (_n.years = M("years accessor is deprecated. Use year instead", Ne)),
          (_n.zone = M(
            "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
            function (e, t) {
              return null != e
                ? ("string" != typeof e && (e = -e), this.utcOffset(e, t), this)
                : -this.utcOffset();
            }
          )),
          (_n.isDSTShifted = M(
            "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
            function () {
              if (!c(this._isDSTShifted)) return this._isDSTShifted;
              var e,
                t = {};
              return (
                y(t, this),
                (t = Mt(t))._a
                  ? ((e = t._isUTC ? f(t._a) : Tt(t._a)),
                    (this._isDSTShifted =
                      this.isValid() &&
                      (function (e, t, n) {
                        var r,
                          o = Math.min(e.length, t.length),
                          a = Math.abs(e.length - t.length),
                          i = 0;
                        for (r = 0; r < o; r++)
                          ((n && e[r] !== t[r]) ||
                            (!n && G(e[r]) !== G(t[r]))) &&
                            i++;
                        return i + a;
                      })(t._a, e.toArray()) > 0))
                  : (this._isDSTShifted = !1),
                this._isDSTShifted
              );
            }
          ));
        var bn = C.prototype;
        function yn(e, t, n, r) {
          var o = lt(),
            a = f().set(r, t);
          return o[n](a, e);
        }
        function wn(e, t, n) {
          if ((u(e) && ((t = e), (e = void 0)), (e = e || ""), null != t))
            return yn(e, t, n, "month");
          var r,
            o = [];
          for (r = 0; r < 12; r++) o[r] = yn(e, r, n, "month");
          return o;
        }
        function kn(e, t, n, r) {
          "boolean" == typeof e
            ? (u(t) && ((n = t), (t = void 0)), (t = t || ""))
            : ((n = t = e),
              (e = !1),
              u(t) && ((n = t), (t = void 0)),
              (t = t || ""));
          var o,
            a = lt(),
            i = e ? a._week.dow : 0,
            s = [];
          if (null != n) return yn(t, (n + i) % 7, r, "day");
          for (o = 0; o < 7; o++) s[o] = yn(t, (o + i) % 7, r, "day");
          return s;
        }
        (bn.calendar = function (e, t, n) {
          var r = this._calendar[e] || this._calendar.sameElse;
          return D(r) ? r.call(t, n) : r;
        }),
          (bn.longDateFormat = function (e) {
            var t = this._longDateFormat[e],
              n = this._longDateFormat[e.toUpperCase()];
            return t || !n
              ? t
              : ((this._longDateFormat[e] = n
                  .match(O)
                  .map(function (e) {
                    return "MMMM" === e ||
                      "MM" === e ||
                      "DD" === e ||
                      "dddd" === e
                      ? e.slice(1)
                      : e;
                  })
                  .join("")),
                this._longDateFormat[e]);
          }),
          (bn.invalidDate = function () {
            return this._invalidDate;
          }),
          (bn.ordinal = function (e) {
            return this._ordinal.replace("%d", e);
          }),
          (bn.preparse = vn),
          (bn.postformat = vn),
          (bn.relativeTime = function (e, t, n, r) {
            var o = this._relativeTime[n];
            return D(o) ? o(e, t, n, r) : o.replace(/%d/i, e);
          }),
          (bn.pastFuture = function (e, t) {
            var n = this._relativeTime[e > 0 ? "future" : "past"];
            return D(n) ? n(t) : n.replace(/%s/i, t);
          }),
          (bn.set = function (e) {
            var t, n;
            for (n in e)
              s(e, n) && (D((t = e[n])) ? (this[n] = t) : (this["_" + n] = t));
            (this._config = e),
              (this._dayOfMonthOrdinalParseLenient = new RegExp(
                (this._dayOfMonthOrdinalParse.source ||
                  this._ordinalParse.source) +
                  "|" +
                  /\d{1,2}/.source
              ));
          }),
          (bn.eras = function (e, t) {
            var n,
              r,
              a,
              i = this._eras || lt("en")._eras;
            for (n = 0, r = i.length; n < r; ++n) {
              switch (typeof i[n].since) {
                case "string":
                  (a = o(i[n].since).startOf("day")),
                    (i[n].since = a.valueOf());
              }
              switch (typeof i[n].until) {
                case "undefined":
                  i[n].until = 1 / 0;
                  break;
                case "string":
                  (a = o(i[n].until).startOf("day").valueOf()),
                    (i[n].until = a.valueOf());
              }
            }
            return i;
          }),
          (bn.erasParse = function (e, t, n) {
            var r,
              o,
              a,
              i,
              s,
              l = this.eras();
            for (e = e.toUpperCase(), r = 0, o = l.length; r < o; ++r)
              if (
                ((a = l[r].name.toUpperCase()),
                (i = l[r].abbr.toUpperCase()),
                (s = l[r].narrow.toUpperCase()),
                n)
              )
                switch (t) {
                  case "N":
                  case "NN":
                  case "NNN":
                    if (i === e) return l[r];
                    break;
                  case "NNNN":
                    if (a === e) return l[r];
                    break;
                  case "NNNNN":
                    if (s === e) return l[r];
                }
              else if ([a, i, s].indexOf(e) >= 0) return l[r];
          }),
          (bn.erasConvertYear = function (e, t) {
            var n = e.since <= e.until ? 1 : -1;
            return void 0 === t
              ? o(e.since).year()
              : o(e.since).year() + (t - e.offset) * n;
          }),
          (bn.erasAbbrRegex = function (e) {
            return (
              s(this, "_erasAbbrRegex") || sn.call(this),
              e ? this._erasAbbrRegex : this._erasRegex
            );
          }),
          (bn.erasNameRegex = function (e) {
            return (
              s(this, "_erasNameRegex") || sn.call(this),
              e ? this._erasNameRegex : this._erasRegex
            );
          }),
          (bn.erasNarrowRegex = function (e) {
            return (
              s(this, "_erasNarrowRegex") || sn.call(this),
              e ? this._erasNarrowRegex : this._erasRegex
            );
          }),
          (bn.months = function (e, t) {
            return e
              ? a(this._months)
                ? this._months[e.month()]
                : this._months[
                    (this._months.isFormat || Ee).test(t)
                      ? "format"
                      : "standalone"
                  ][e.month()]
              : a(this._months)
              ? this._months
              : this._months.standalone;
          }),
          (bn.monthsShort = function (e, t) {
            return e
              ? a(this._monthsShort)
                ? this._monthsShort[e.month()]
                : this._monthsShort[Ee.test(t) ? "format" : "standalone"][
                    e.month()
                  ]
              : a(this._monthsShort)
              ? this._monthsShort
              : this._monthsShort.standalone;
          }),
          (bn.monthsParse = function (e, t, n) {
            var r, o, a;
            if (this._monthsParseExact) return De.call(this, e, t, n);
            for (
              this._monthsParse ||
                ((this._monthsParse = []),
                (this._longMonthsParse = []),
                (this._shortMonthsParse = [])),
                r = 0;
              r < 12;
              r++
            ) {
              if (
                ((o = f([2e3, r])),
                n &&
                  !this._longMonthsParse[r] &&
                  ((this._longMonthsParse[r] = new RegExp(
                    "^" + this.months(o, "").replace(".", "") + "$",
                    "i"
                  )),
                  (this._shortMonthsParse[r] = new RegExp(
                    "^" + this.monthsShort(o, "").replace(".", "") + "$",
                    "i"
                  ))),
                n ||
                  this._monthsParse[r] ||
                  ((a =
                    "^" + this.months(o, "") + "|^" + this.monthsShort(o, "")),
                  (this._monthsParse[r] = new RegExp(a.replace(".", ""), "i"))),
                n && "MMMM" === t && this._longMonthsParse[r].test(e))
              )
                return r;
              if (n && "MMM" === t && this._shortMonthsParse[r].test(e))
                return r;
              if (!n && this._monthsParse[r].test(e)) return r;
            }
          }),
          (bn.monthsRegex = function (e) {
            return this._monthsParseExact
              ? (s(this, "_monthsRegex") || Pe.call(this),
                e ? this._monthsStrictRegex : this._monthsRegex)
              : (s(this, "_monthsRegex") || (this._monthsRegex = Se),
                this._monthsStrictRegex && e
                  ? this._monthsStrictRegex
                  : this._monthsRegex);
          }),
          (bn.monthsShortRegex = function (e) {
            return this._monthsParseExact
              ? (s(this, "_monthsRegex") || Pe.call(this),
                e ? this._monthsShortStrictRegex : this._monthsShortRegex)
              : (s(this, "_monthsShortRegex") || (this._monthsShortRegex = Te),
                this._monthsShortStrictRegex && e
                  ? this._monthsShortStrictRegex
                  : this._monthsShortRegex);
          }),
          (bn.week = function (e) {
            return je(e, this._week.dow, this._week.doy).week;
          }),
          (bn.firstDayOfYear = function () {
            return this._week.doy;
          }),
          (bn.firstDayOfWeek = function () {
            return this._week.dow;
          }),
          (bn.weekdays = function (e, t) {
            var n = a(this._weekdays)
              ? this._weekdays
              : this._weekdays[
                  e && !0 !== e && this._weekdays.isFormat.test(t)
                    ? "format"
                    : "standalone"
                ];
            return !0 === e ? He(n, this._week.dow) : e ? n[e.day()] : n;
          }),
          (bn.weekdaysMin = function (e) {
            return !0 === e
              ? He(this._weekdaysMin, this._week.dow)
              : e
              ? this._weekdaysMin[e.day()]
              : this._weekdaysMin;
          }),
          (bn.weekdaysShort = function (e) {
            return !0 === e
              ? He(this._weekdaysShort, this._week.dow)
              : e
              ? this._weekdaysShort[e.day()]
              : this._weekdaysShort;
          }),
          (bn.weekdaysParse = function (e, t, n) {
            var r, o, a;
            if (this._weekdaysParseExact) return Ge.call(this, e, t, n);
            for (
              this._weekdaysParse ||
                ((this._weekdaysParse = []),
                (this._minWeekdaysParse = []),
                (this._shortWeekdaysParse = []),
                (this._fullWeekdaysParse = [])),
                r = 0;
              r < 7;
              r++
            ) {
              if (
                ((o = f([2e3, 1]).day(r)),
                n &&
                  !this._fullWeekdaysParse[r] &&
                  ((this._fullWeekdaysParse[r] = new RegExp(
                    "^" + this.weekdays(o, "").replace(".", "\\.?") + "$",
                    "i"
                  )),
                  (this._shortWeekdaysParse[r] = new RegExp(
                    "^" + this.weekdaysShort(o, "").replace(".", "\\.?") + "$",
                    "i"
                  )),
                  (this._minWeekdaysParse[r] = new RegExp(
                    "^" + this.weekdaysMin(o, "").replace(".", "\\.?") + "$",
                    "i"
                  ))),
                this._weekdaysParse[r] ||
                  ((a =
                    "^" +
                    this.weekdays(o, "") +
                    "|^" +
                    this.weekdaysShort(o, "") +
                    "|^" +
                    this.weekdaysMin(o, "")),
                  (this._weekdaysParse[r] = new RegExp(
                    a.replace(".", ""),
                    "i"
                  ))),
                n && "dddd" === t && this._fullWeekdaysParse[r].test(e))
              )
                return r;
              if (n && "ddd" === t && this._shortWeekdaysParse[r].test(e))
                return r;
              if (n && "dd" === t && this._minWeekdaysParse[r].test(e))
                return r;
              if (!n && this._weekdaysParse[r].test(e)) return r;
            }
          }),
          (bn.weekdaysRegex = function (e) {
            return this._weekdaysParseExact
              ? (s(this, "_weekdaysRegex") || Je.call(this),
                e ? this._weekdaysStrictRegex : this._weekdaysRegex)
              : (s(this, "_weekdaysRegex") || (this._weekdaysRegex = Ve),
                this._weekdaysStrictRegex && e
                  ? this._weekdaysStrictRegex
                  : this._weekdaysRegex);
          }),
          (bn.weekdaysShortRegex = function (e) {
            return this._weekdaysParseExact
              ? (s(this, "_weekdaysRegex") || Je.call(this),
                e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)
              : (s(this, "_weekdaysShortRegex") ||
                  (this._weekdaysShortRegex = We),
                this._weekdaysShortStrictRegex && e
                  ? this._weekdaysShortStrictRegex
                  : this._weekdaysShortRegex);
          }),
          (bn.weekdaysMinRegex = function (e) {
            return this._weekdaysParseExact
              ? (s(this, "_weekdaysRegex") || Je.call(this),
                e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)
              : (s(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = qe),
                this._weekdaysMinStrictRegex && e
                  ? this._weekdaysMinStrictRegex
                  : this._weekdaysMinRegex);
          }),
          (bn.isPM = function (e) {
            return "p" === (e + "").toLowerCase().charAt(0);
          }),
          (bn.meridiem = function (e, t, n) {
            return e > 11 ? (n ? "pm" : "PM") : n ? "am" : "AM";
          }),
          it("en", {
            eras: [
              {
                since: "0001-01-01",
                until: 1 / 0,
                offset: 1,
                name: "Anno Domini",
                narrow: "AD",
                abbr: "AD",
              },
              {
                since: "0000-12-31",
                until: -1 / 0,
                offset: 1,
                name: "Before Christ",
                narrow: "BC",
                abbr: "BC",
              },
            ],
            dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
            ordinal: function (e) {
              var t = e % 10;
              return (
                e +
                (1 === G((e % 100) / 10)
                  ? "th"
                  : 1 === t
                  ? "st"
                  : 2 === t
                  ? "nd"
                  : 3 === t
                  ? "rd"
                  : "th")
              );
            },
          }),
          (o.lang = M(
            "moment.lang is deprecated. Use moment.locale instead.",
            it
          )),
          (o.langData = M(
            "moment.langData is deprecated. Use moment.localeData instead.",
            lt
          ));
        var xn = Math.abs;
        function Mn(e, t, n, r) {
          var o = Bt(t, n);
          return (
            (e._milliseconds += r * o._milliseconds),
            (e._days += r * o._days),
            (e._months += r * o._months),
            e._bubble()
          );
        }
        function En(e) {
          return e < 0 ? Math.floor(e) : Math.ceil(e);
        }
        function Tn(e) {
          return (4800 * e) / 146097;
        }
        function Sn(e) {
          return (146097 * e) / 4800;
        }
        function Dn(e) {
          return function () {
            return this.as(e);
          };
        }
        var Ln = Dn("ms"),
          Cn = Dn("s"),
          Pn = Dn("m"),
          On = Dn("h"),
          Nn = Dn("d"),
          An = Dn("w"),
          In = Dn("M"),
          Rn = Dn("Q"),
          Yn = Dn("y");
        function jn(e) {
          return function () {
            return this.isValid() ? this._data[e] : NaN;
          };
        }
        var Fn = jn("milliseconds"),
          Hn = jn("seconds"),
          zn = jn("minutes"),
          Bn = jn("hours"),
          Un = jn("days"),
          Vn = jn("months"),
          Wn = jn("years"),
          qn = Math.round,
          Gn = { ss: 44, s: 45, m: 45, h: 22, d: 26, w: null, M: 11 };
        function Jn(e, t, n, r, o) {
          return o.relativeTime(t || 1, !!n, e, r);
        }
        var Kn = Math.abs;
        function Qn(e) {
          return (e > 0) - (e < 0) || +e;
        }
        function Xn() {
          if (!this.isValid()) return this.localeData().invalidDate();
          var e,
            t,
            n,
            r,
            o,
            a,
            i,
            s,
            l = Kn(this._milliseconds) / 1e3,
            c = Kn(this._days),
            u = Kn(this._months),
            d = this.asSeconds();
          return d
            ? ((e = q(l / 60)),
              (t = q(e / 60)),
              (l %= 60),
              (e %= 60),
              (n = q(u / 12)),
              (u %= 12),
              (r = l ? l.toFixed(3).replace(/\.?0+$/, "") : ""),
              (o = d < 0 ? "-" : ""),
              (a = Qn(this._months) !== Qn(d) ? "-" : ""),
              (i = Qn(this._days) !== Qn(d) ? "-" : ""),
              (s = Qn(this._milliseconds) !== Qn(d) ? "-" : ""),
              o +
                "P" +
                (n ? a + n + "Y" : "") +
                (u ? a + u + "M" : "") +
                (c ? i + c + "D" : "") +
                (t || e || l ? "T" : "") +
                (t ? s + t + "H" : "") +
                (e ? s + e + "M" : "") +
                (l ? s + r + "S" : ""))
            : "P0D";
        }
        var $n = Pt.prototype;
        return (
          ($n.isValid = function () {
            return this._isValid;
          }),
          ($n.abs = function () {
            var e = this._data;
            return (
              (this._milliseconds = xn(this._milliseconds)),
              (this._days = xn(this._days)),
              (this._months = xn(this._months)),
              (e.milliseconds = xn(e.milliseconds)),
              (e.seconds = xn(e.seconds)),
              (e.minutes = xn(e.minutes)),
              (e.hours = xn(e.hours)),
              (e.months = xn(e.months)),
              (e.years = xn(e.years)),
              this
            );
          }),
          ($n.add = function (e, t) {
            return Mn(this, e, t, 1);
          }),
          ($n.subtract = function (e, t) {
            return Mn(this, e, t, -1);
          }),
          ($n.as = function (e) {
            if (!this.isValid()) return NaN;
            var t,
              n,
              r = this._milliseconds;
            if ("month" === (e = z(e)) || "quarter" === e || "year" === e)
              switch (
                ((t = this._days + r / 864e5), (n = this._months + Tn(t)), e)
              ) {
                case "month":
                  return n;
                case "quarter":
                  return n / 3;
                case "year":
                  return n / 12;
              }
            else
              switch (((t = this._days + Math.round(Sn(this._months))), e)) {
                case "week":
                  return t / 7 + r / 6048e5;
                case "day":
                  return t + r / 864e5;
                case "hour":
                  return 24 * t + r / 36e5;
                case "minute":
                  return 1440 * t + r / 6e4;
                case "second":
                  return 86400 * t + r / 1e3;
                case "millisecond":
                  return Math.floor(864e5 * t) + r;
                default:
                  throw new Error("Unknown unit " + e);
              }
          }),
          ($n.asMilliseconds = Ln),
          ($n.asSeconds = Cn),
          ($n.asMinutes = Pn),
          ($n.asHours = On),
          ($n.asDays = Nn),
          ($n.asWeeks = An),
          ($n.asMonths = In),
          ($n.asQuarters = Rn),
          ($n.asYears = Yn),
          ($n.valueOf = function () {
            return this.isValid()
              ? this._milliseconds +
                  864e5 * this._days +
                  (this._months % 12) * 2592e6 +
                  31536e6 * G(this._months / 12)
              : NaN;
          }),
          ($n._bubble = function () {
            var e,
              t,
              n,
              r,
              o,
              a = this._milliseconds,
              i = this._days,
              s = this._months,
              l = this._data;
            return (
              (a >= 0 && i >= 0 && s >= 0) ||
                (a <= 0 && i <= 0 && s <= 0) ||
                ((a += 864e5 * En(Sn(s) + i)), (i = 0), (s = 0)),
              (l.milliseconds = a % 1e3),
              (e = q(a / 1e3)),
              (l.seconds = e % 60),
              (t = q(e / 60)),
              (l.minutes = t % 60),
              (n = q(t / 60)),
              (l.hours = n % 24),
              (i += q(n / 24)),
              (o = q(Tn(i))),
              (s += o),
              (i -= En(Sn(o))),
              (r = q(s / 12)),
              (s %= 12),
              (l.days = i),
              (l.months = s),
              (l.years = r),
              this
            );
          }),
          ($n.clone = function () {
            return Bt(this);
          }),
          ($n.get = function (e) {
            return (e = z(e)), this.isValid() ? this[e + "s"]() : NaN;
          }),
          ($n.milliseconds = Fn),
          ($n.seconds = Hn),
          ($n.minutes = zn),
          ($n.hours = Bn),
          ($n.days = Un),
          ($n.weeks = function () {
            return q(this.days() / 7);
          }),
          ($n.months = Vn),
          ($n.years = Wn),
          ($n.humanize = function (e, t) {
            if (!this.isValid()) return this.localeData().invalidDate();
            var n,
              r,
              o = !1,
              a = Gn;
            return (
              "object" == typeof e && ((t = e), (e = !1)),
              "boolean" == typeof e && (o = e),
              "object" == typeof t &&
                ((a = Object.assign({}, Gn, t)),
                null != t.s && null == t.ss && (a.ss = t.s - 1)),
              (n = this.localeData()),
              (r = (function (e, t, n, r) {
                var o = Bt(e).abs(),
                  a = qn(o.as("s")),
                  i = qn(o.as("m")),
                  s = qn(o.as("h")),
                  l = qn(o.as("d")),
                  c = qn(o.as("M")),
                  u = qn(o.as("w")),
                  d = qn(o.as("y")),
                  h =
                    (a <= n.ss && ["s", a]) ||
                    (a < n.s && ["ss", a]) ||
                    (i <= 1 && ["m"]) ||
                    (i < n.m && ["mm", i]) ||
                    (s <= 1 && ["h"]) ||
                    (s < n.h && ["hh", s]) ||
                    (l <= 1 && ["d"]) ||
                    (l < n.d && ["dd", l]);
                return (
                  null != n.w &&
                    (h = h || (u <= 1 && ["w"]) || (u < n.w && ["ww", u])),
                  ((h = h ||
                    (c <= 1 && ["M"]) ||
                    (c < n.M && ["MM", c]) ||
                    (d <= 1 && ["y"]) || ["yy", d])[2] = t),
                  (h[3] = +e > 0),
                  (h[4] = r),
                  Jn.apply(null, h)
                );
              })(this, !o, a, n)),
              o && (r = n.pastFuture(+this, r)),
              n.postformat(r)
            );
          }),
          ($n.toISOString = Xn),
          ($n.toString = Xn),
          ($n.toJSON = Xn),
          ($n.locale = Zt),
          ($n.localeData = tn),
          ($n.toIsoString = M(
            "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
            Xn
          )),
          ($n.lang = en),
          R("X", 0, 0, "unix"),
          R("x", 0, 0, "valueOf"),
          fe("x", ue),
          fe("X", /[+-]?\d+(\.\d{1,3})?/),
          be("X", function (e, t, n) {
            n._d = new Date(1e3 * parseFloat(e));
          }),
          be("x", function (e, t, n) {
            n._d = new Date(G(e));
          }),
          //! moment.js
          (o.version = "2.29.1"),
          (t = Tt),
          (o.fn = _n),
          (o.min = function () {
            var e = [].slice.call(arguments, 0);
            return Lt("isBefore", e);
          }),
          (o.max = function () {
            var e = [].slice.call(arguments, 0);
            return Lt("isAfter", e);
          }),
          (o.now = function () {
            return Date.now ? Date.now() : +new Date();
          }),
          (o.utc = f),
          (o.unix = function (e) {
            return Tt(1e3 * e);
          }),
          (o.months = function (e, t) {
            return wn(e, t, "months");
          }),
          (o.isDate = d),
          (o.locale = it),
          (o.invalid = _),
          (o.duration = Bt),
          (o.isMoment = k),
          (o.weekdays = function (e, t, n) {
            return kn(e, t, n, "weekdays");
          }),
          (o.parseZone = function () {
            return Tt.apply(null, arguments).parseZone();
          }),
          (o.localeData = lt),
          (o.isDuration = Ot),
          (o.monthsShort = function (e, t) {
            return wn(e, t, "monthsShort");
          }),
          (o.weekdaysMin = function (e, t, n) {
            return kn(e, t, n, "weekdaysMin");
          }),
          (o.defineLocale = st),
          (o.updateLocale = function (e, t) {
            if (null != t) {
              var n,
                r,
                o = et;
              null != tt[e] && null != tt[e].parentLocale
                ? tt[e].set(L(tt[e]._config, t))
                : (null != (r = at(e)) && (o = r._config),
                  (t = L(o, t)),
                  null == r && (t.abbr = e),
                  ((n = new C(t)).parentLocale = tt[e]),
                  (tt[e] = n)),
                it(e);
            } else
              null != tt[e] &&
                (null != tt[e].parentLocale
                  ? ((tt[e] = tt[e].parentLocale), e === it() && it(e))
                  : null != tt[e] && delete tt[e]);
            return tt[e];
          }),
          (o.locales = function () {
            return E(tt);
          }),
          (o.weekdaysShort = function (e, t, n) {
            return kn(e, t, n, "weekdaysShort");
          }),
          (o.normalizeUnits = z),
          (o.relativeTimeRounding = function (e) {
            return void 0 === e ? qn : "function" == typeof e && ((qn = e), !0);
          }),
          (o.relativeTimeThreshold = function (e, t) {
            return (
              void 0 !== Gn[e] &&
              (void 0 === t
                ? Gn[e]
                : ((Gn[e] = t), "s" === e && (Gn.ss = t - 1), !0))
            );
          }),
          (o.calendarFormat = function (e, t) {
            var n = e.diff(t, "days", !0);
            return n < -6
              ? "sameElse"
              : n < -1
              ? "lastWeek"
              : n < 0
              ? "lastDay"
              : n < 1
              ? "sameDay"
              : n < 2
              ? "nextDay"
              : n < 7
              ? "nextWeek"
              : "sameElse";
          }),
          (o.prototype = _n),
          (o.HTML5_FMT = {
            DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
            DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
            DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
            DATE: "YYYY-MM-DD",
            TIME: "HH:mm",
            TIME_SECONDS: "HH:mm:ss",
            TIME_MS: "HH:mm:ss.SSS",
            WEEK: "GGGG-[W]WW",
            MONTH: "YYYY-MM",
          }),
          o
        );
      })();
    }.call(this, n(64)(e)));
  },
  function (e, t, n) {
    e.exports = n(261);
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return o;
      });
    var r = n(2);
    function o(e) {
      Object(r.a)(1, arguments);
      var t = Object.prototype.toString.call(e);
      return e instanceof Date ||
        ("object" == typeof e && "[object Date]" === t)
        ? new Date(e.getTime())
        : "number" == typeof e || "[object Number]" === t
        ? new Date(e)
        : (("string" != typeof e && "[object String]" !== t) ||
            "undefined" == typeof 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"
            ),
            console.warn(new Error().stack)),
          new Date(NaN));
    }
  },
  function (e, t) {
    function n(t) {
      return (
        (e.exports = n = Object.setPrototypeOf
          ? Object.getPrototypeOf
          : function (e) {
              return e.__proto__ || Object.getPrototypeOf(e);
            }),
        n(t)
      );
    }
    e.exports = n;
  },
  function (e, t, n) {
    "use strict";
    function r(e) {
      if (null === e || !0 === e || !1 === e) return NaN;
      var t = Number(e);
      return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
    }
    n.d(t, "a", function () {
      return r;
    });
  },
  function (e, t) {
    function n(e, t, n, r, o, a, i) {
      try {
        var s = e[a](i),
          l = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(l) : Promise.resolve(l).then(r, o);
    }
    e.exports = function (e) {
      return function () {
        var t = this,
          r = arguments;
        return new Promise(function (o, a) {
          var i = e.apply(t, r);
          function s(e) {
            n(i, o, a, s, l, "next", e);
          }
          function l(e) {
            n(i, o, a, s, l, "throw", e);
          }
          s(void 0);
        });
      };
    };
  },
  function (e, t, n) {
    e.exports = n(262);
  },
  function (e, t) {
    e.exports = function (e) {
      if (void 0 === e)
        throw new ReferenceError(
          "this hasn't been initialised - super() hasn't been called"
        );
      return e;
    };
  },
  function (e, t, n) {
    "use strict";
    t.__esModule = !0;
    var r = l(n(279));
    t.ToastContainer = r.default;
    var o = n(91);
    (t.Bounce = o.Bounce),
      (t.Slide = o.Slide),
      (t.Zoom = o.Zoom),
      (t.Flip = o.Flip);
    var a = n(34);
    (t.ToastPosition = a.POSITION), (t.ToastType = a.TYPE);
    var i = l(n(289));
    t.toast = i.default;
    var s = l(n(92));
    function l(e) {
      return e && e.__esModule ? e : { default: e };
    }
    t.cssTransition = s.default;
  },
  function (e, t) {
    e.exports = function (e, t) {
      if (!(e instanceof t))
        throw new TypeError("Cannot call a class as a function");
    };
  },
  function (e, t) {
    function n(e, t) {
      for (var n = 0; n < t.length; n++) {
        var r = t[n];
        (r.enumerable = r.enumerable || !1),
          (r.configurable = !0),
          "value" in r && (r.writable = !0),
          Object.defineProperty(e, r.key, r);
      }
    }
    e.exports = function (e, t, r) {
      return t && n(e.prototype, t), r && n(e, r), e;
    };
  },
  function (e, t, n) {
    var r = n(259);
    e.exports = function (e, t) {
      if ("function" != typeof t && null !== t)
        throw new TypeError(
          "Super expression must either be null or a function"
        );
      (e.prototype = Object.create(t && t.prototype, {
        constructor: { value: e, writable: !0, configurable: !0 },
      })),
        t && r(e, t);
    };
  },
  function (e, t, n) {
    var r = n(260),
      o = n(10);
    e.exports = function (e, t) {
      return !t || ("object" !== r(t) && "function" != typeof t) ? o(e) : t;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(84),
      o = n(263),
      a = Object.prototype.toString;
    function i(e) {
      return "[object Array]" === a.call(e);
    }
    function s(e) {
      return null !== e && "object" == typeof e;
    }
    function l(e) {
      return "[object Function]" === a.call(e);
    }
    function c(e, t) {
      if (null != e)
        if (("object" != typeof e && (e = [e]), i(e)))
          for (var n = 0, r = e.length; n < r; n++) t.call(null, e[n], n, e);
        else
          for (var o in e)
            Object.prototype.hasOwnProperty.call(e, o) &&
              t.call(null, e[o], o, e);
    }
    e.exports = {
      isArray: i,
      isArrayBuffer: function (e) {
        return "[object ArrayBuffer]" === a.call(e);
      },
      isBuffer: o,
      isFormData: function (e) {
        return "undefined" != typeof FormData && e instanceof FormData;
      },
      isArrayBufferView: function (e) {
        return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView
          ? ArrayBuffer.isView(e)
          : e && e.buffer && e.buffer instanceof ArrayBuffer;
      },
      isString: function (e) {
        return "string" == typeof e;
      },
      isNumber: function (e) {
        return "number" == typeof e;
      },
      isObject: s,
      isUndefined: function (e) {
        return void 0 === e;
      },
      isDate: function (e) {
        return "[object Date]" === a.call(e);
      },
      isFile: function (e) {
        return "[object File]" === a.call(e);
      },
      isBlob: function (e) {
        return "[object Blob]" === a.call(e);
      },
      isFunction: l,
      isStream: function (e) {
        return s(e) && l(e.pipe);
      },
      isURLSearchParams: function (e) {
        return (
          "undefined" != typeof URLSearchParams && e instanceof URLSearchParams
        );
      },
      isStandardBrowserEnv: function () {
        return (
          ("undefined" == typeof navigator ||
            "ReactNative" !== navigator.product) &&
          "undefined" != typeof window &&
          "undefined" != typeof document
        );
      },
      forEach: c,
      merge: function e() {
        var t = {};
        function n(n, r) {
          "object" == typeof t[r] && "object" == typeof n
            ? (t[r] = e(t[r], n))
            : (t[r] = n);
        }
        for (var r = 0, o = arguments.length; r < o; r++) c(arguments[r], n);
        return t;
      },
      extend: function (e, t, n) {
        return (
          c(t, function (t, o) {
            e[o] = n && "function" == typeof t ? r(t, n) : t;
          }),
          e
        );
      },
      trim: function (e) {
        return e.replace(/^\s*/, "").replace(/\s*$/, "");
      },
    };
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(5),
      o = n(7),
      a = n(2);
    function i(e, t) {
      Object(a.a)(1, arguments);
      var n = t || {},
        i = n.locale,
        s = i && i.options && i.options.weekStartsOn,
        l = null == s ? 0 : Object(o.a)(s),
        c = null == n.weekStartsOn ? l : Object(o.a)(n.weekStartsOn);
      if (!(c >= 0 && c <= 6))
        throw new RangeError(
          "weekStartsOn must be between 0 and 6 inclusively"
        );
      var u = Object(r.default)(e),
        d = u.getDay(),
        h = (d < c ? 7 : 0) + d - c;
      return u.setDate(u.getDate() - h), u.setHours(0, 0, 0, 0), u;
    }
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return i;
    });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e, t) {
      Object(a.a)(1, arguments);
      var n = t || {},
        i = n.locale,
        s = i && i.options && i.options.weekStartsOn,
        l = null == s ? 0 : Object(r.a)(s),
        c = null == n.weekStartsOn ? l : Object(r.a)(n.weekStartsOn);
      if (!(c >= 0 && c <= 6))
        throw new RangeError(
          "weekStartsOn must be between 0 and 6 inclusively"
        );
      var u = Object(o.default)(e),
        d = u.getUTCDay(),
        h = (d < c ? 7 : 0) + d - c;
      return u.setUTCDate(u.getUTCDate() - h), u.setUTCHours(0, 0, 0, 0), u;
    }
  },
  function (e, t, n) {
    e.exports = n(280)();
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return o;
    });
    function r(e) {
      return e.getTime() % 6e4;
    }
    function o(e) {
      var t = new Date(e.getTime()),
        n = Math.ceil(t.getTimezoneOffset());
      return t.setSeconds(0, 0), 6e4 * n + (n > 0 ? (6e4 + r(t)) % 6e4 : r(t));
    }
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return a;
    });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = 1,
        n = Object(r.default)(e),
        a = n.getUTCDay(),
        i = (a < t ? 7 : 0) + a - t;
      return n.setUTCDate(n.getUTCDate() - i), n.setUTCHours(0, 0, 0, 0), n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return a;
    }),
      n.d(t, "b", function () {
        return i;
      }),
      n.d(t, "c", function () {
        return s;
      });
    var r = ["D", "DD"],
      o = ["YY", "YYYY"];
    function a(e) {
      return -1 !== r.indexOf(e);
    }
    function i(e) {
      return -1 !== o.indexOf(e);
    }
    function s(e, t, n) {
      if ("YYYY" === e)
        throw new RangeError(
          "Use `yyyy` instead of `YYYY` (in `"
            .concat(t, "`) for formatting years to the input `")
            .concat(n, "`; see: https://git.io/fxCyr")
        );
      if ("YY" === e)
        throw new RangeError(
          "Use `yy` instead of `YY` (in `"
            .concat(t, "`) for formatting years to the input `")
            .concat(n, "`; see: https://git.io/fxCyr")
        );
      if ("D" === e)
        throw new RangeError(
          "Use `d` instead of `D` (in `"
            .concat(t, "`) for formatting days of the month to the input `")
            .concat(n, "`; see: https://git.io/fxCyr")
        );
      if ("DD" === e)
        throw new RangeError(
          "Use `dd` instead of `DD` (in `"
            .concat(t, "`) for formatting days of the month to the input `")
            .concat(n, "`; see: https://git.io/fxCyr")
        );
    }
  },
  function (e, t, n) {
    "use strict";
    Object.defineProperty(t, "__esModule", { value: !0 }),
      Object.defineProperty(t, "Draggable", {
        enumerable: !0,
        get: function () {
          return r.default;
        },
      }),
      Object.defineProperty(t, "Droppable", {
        enumerable: !0,
        get: function () {
          return o.default;
        },
      });
    var r = a(n(447)),
      o = a(n(448));
    function a(e) {
      return e && e.__esModule ? e : { default: e };
    }
  },
  function (e, t, n) {
    var r = n(241),
      o = "object" == typeof self && self && self.Object === Object && self,
      a = r || o || Function("return this")();
    e.exports = a;
  },
  function (e, t) {
    var n = Array.isArray;
    e.exports = n;
  },
  function (e, t, n) {
    "use strict";
    /*!
     * react-filepond v5.0.0
     * A handy FilePond adapter component for React
     *
     * Copyright (c) 2018 PQINA
     * https://pqina.nl/filepond
     *
     * Licensed under the MIT license.
     */ Object.defineProperty(t, "__esModule", { value: !0 }),
      (t.File = t.FilePond = t.registerPlugin = void 0);
    var r,
      o = (function () {
        function e(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            (r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r);
          }
        }
        return function (t, n, r) {
          return n && e(t.prototype, n), r && e(t, r), t;
        };
      })(),
      a = n(0),
      i = (r = a) && r.__esModule ? r : { default: r },
      s = n(446);
    function l(e, t) {
      if (!(e instanceof t))
        throw new TypeError("Cannot call a class as a function");
    }
    function c(e, t) {
      if (!e)
        throw new ReferenceError(
          "this hasn't been initialised - super() hasn't been called"
        );
      return !t || ("object" != typeof t && "function" != typeof t) ? e : t;
    }
    function u(e, t) {
      if ("function" != typeof t && null !== t)
        throw new TypeError(
          "Super expression must either be null or a function, not " + typeof t
        );
      (e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0,
        },
      })),
        t &&
          (Object.setPrototypeOf
            ? Object.setPrototypeOf(e, t)
            : (e.__proto__ = t));
    }
    t.registerPlugin = s.registerPlugin;
    var d = (0, s.supported)(),
      h = function (e) {
        return e
          ? i.default.Children.map(e, function (e) {
              var t = e.props;
              if (t.src) {
                var n = {};
                return (
                  t.origin && (n.type = t.origin),
                  t.name &&
                    (n.file = { name: t.name, size: t.size, type: t.type }),
                  t.metadata && (n.metadata = t.metadata),
                  { source: t.src, options: n }
                );
              }
              return t.source && t.type
                ? { source: t.source, options: { type: t.type } }
                : t.source;
            })
          : [];
      },
      p = [
        "setOptions",
        "on",
        "off",
        "onOnce",
        "appendTo",
        "insertAfter",
        "insertBefore",
        "isAttachedTo",
        "replaceElement",
        "restoreElement",
        "destroy",
      ];
    (t.FilePond = (function (e) {
      function t() {
        return (
          l(this, t),
          c(
            this,
            (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)
          )
        );
      }
      return (
        u(t, e),
        o(t, [
          {
            key: "componentDidMount",
            value: function () {
              var e = this;
              d &&
                ((this._pond = (0, s.create)(
                  this._element,
                  Object.assign({}, this.props, {
                    files: h(this.props.children),
                  })
                )),
                Object.keys(this._pond)
                  .filter(function (e) {
                    return !p.includes(e);
                  })
                  .forEach(function (t) {
                    e[t] = e._pond[t];
                  }));
            },
          },
          {
            key: "componentWillUnmount",
            value: function () {
              this._pond && this._pond.destroy();
            },
          },
          {
            key: "componentDidUpdate",
            value: function (e) {
              if (this._pond) {
                var t = Object.assign({}, this.props),
                  n = h(e.children),
                  r = h(this.props.children);
                JSON.stringify(n) !== JSON.stringify(r) && (t.files = r),
                  this._pond.setOptions(t);
              }
            },
          },
          {
            key: "render",
            value: function () {
              var e = this,
                t = this.props,
                n = t.id,
                r = t.name,
                o = t.className,
                i = t.allowMultiple,
                s = t.required,
                l = t.captureMethod,
                c = t.acceptedFileTypes;
              return (0, a.createElement)(
                "div",
                { className: "filepond--wrapper" },
                (0, a.createElement)("input", {
                  type: "file",
                  name: r,
                  id: n,
                  accept: c,
                  multiple: i,
                  required: s,
                  className: o,
                  capture: l,
                  ref: function (t) {
                    return (e._element = t);
                  },
                })
              );
            },
          },
        ]),
        t
      );
    })(i.default.Component)),
      (t.File = (function (e) {
        function t() {
          return (
            l(this, t),
            c(
              this,
              (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)
            )
          );
        }
        return u(t, e), t;
      })(i.default.Component));
  },
  function (e, t, n) {
    var r = n(366),
      o = n(371);
    e.exports = function (e, t) {
      var n = o(e, t);
      return r(n) ? n : void 0;
    };
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e);
      return t.setHours(0, 0, 0, 0), t;
    }
  },
  function (e, t) {
    function n() {
      return (
        (e.exports = n =
          Object.assign ||
          function (e) {
            for (var t = 1; t < arguments.length; t++) {
              var n = arguments[t];
              for (var r in n)
                Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
            }
            return e;
          }),
        n.apply(this, arguments)
      );
    }
    e.exports = n;
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return i;
    });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e).getTime(),
        i = Object(r.a)(t);
      return new Date(n + i);
    }
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return s;
    });
    var r = n(7),
      o = n(5),
      a = n(18),
      i = n(2);
    function s(e, t) {
      Object(i.a)(1, arguments);
      var n = Object(o.default)(e, t),
        s = n.getUTCFullYear(),
        l = t || {},
        c = l.locale,
        u = c && c.options && c.options.firstWeekContainsDate,
        d = null == u ? 1 : Object(r.a)(u),
        h =
          null == l.firstWeekContainsDate
            ? d
            : Object(r.a)(l.firstWeekContainsDate);
      if (!(h >= 1 && h <= 7))
        throw new RangeError(
          "firstWeekContainsDate must be between 1 and 7 inclusively"
        );
      var p = new Date(0);
      p.setUTCFullYear(s + 1, 0, h), p.setUTCHours(0, 0, 0, 0);
      var f = Object(a.a)(p, t),
        m = new Date(0);
      m.setUTCFullYear(s, 0, h), m.setUTCHours(0, 0, 0, 0);
      var g = Object(a.a)(m, t);
      return n.getTime() >= f.getTime()
        ? s + 1
        : n.getTime() >= g.getTime()
        ? s
        : s - 1;
    }
  },
  function (e, t) {
    e.exports = function (e, t) {
      (e.prototype = Object.create(t.prototype)),
        (e.prototype.constructor = e),
        (e.__proto__ = t);
    };
  },
  function (e, t, n) {
    "use strict";
    /*!
     * cookie
     * Copyright(c) 2012-2014 Roman Shtylman
     * Copyright(c) 2015 Douglas Christopher Wilson
     * MIT Licensed
     */ (t.parse = function (e, t) {
      if ("string" != typeof e)
        throw new TypeError("argument str must be a string");
      for (
        var n = {}, o = t || {}, i = e.split(a), l = o.decode || r, c = 0;
        c < i.length;
        c++
      ) {
        var u = i[c],
          d = u.indexOf("=");
        if (!(d < 0)) {
          var h = u.substr(0, d).trim(),
            p = u.substr(++d, u.length).trim();
          '"' == p[0] && (p = p.slice(1, -1)), null == n[h] && (n[h] = s(p, l));
        }
      }
      return n;
    }),
      (t.serialize = function (e, t, n) {
        var r = n || {},
          a = r.encode || o;
        if ("function" != typeof a)
          throw new TypeError("option encode is invalid");
        if (!i.test(e)) throw new TypeError("argument name is invalid");
        var s = a(t);
        if (s && !i.test(s)) throw new TypeError("argument val is invalid");
        var l = e + "=" + s;
        if (null != r.maxAge) {
          var c = r.maxAge - 0;
          if (isNaN(c)) throw new Error("maxAge should be a Number");
          l += "; Max-Age=" + Math.floor(c);
        }
        if (r.domain) {
          if (!i.test(r.domain))
            throw new TypeError("option domain is invalid");
          l += "; Domain=" + r.domain;
        }
        if (r.path) {
          if (!i.test(r.path)) throw new TypeError("option path is invalid");
          l += "; Path=" + r.path;
        }
        if (r.expires) {
          if ("function" != typeof r.expires.toUTCString)
            throw new TypeError("option expires is invalid");
          l += "; Expires=" + r.expires.toUTCString();
        }
        r.httpOnly && (l += "; HttpOnly");
        r.secure && (l += "; Secure");
        if (r.sameSite) {
          switch (
            "string" == typeof r.sameSite
              ? r.sameSite.toLowerCase()
              : r.sameSite
          ) {
            case !0:
              l += "; SameSite=Strict";
              break;
            case "lax":
              l += "; SameSite=Lax";
              break;
            case "strict":
              l += "; SameSite=Strict";
              break;
            default:
              throw new TypeError("option sameSite is invalid");
          }
        }
        return l;
      });
    var r = decodeURIComponent,
      o = encodeURIComponent,
      a = /; */,
      i = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
    function s(e, t) {
      try {
        return t(e);
      } catch (t) {
        return e;
      }
    }
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.ACTION = t.TYPE = t.POSITION = void 0);
    t.POSITION = {
      TOP_LEFT: "top-left",
      TOP_RIGHT: "top-right",
      TOP_CENTER: "top-center",
      BOTTOM_LEFT: "bottom-left",
      BOTTOM_RIGHT: "bottom-right",
      BOTTOM_CENTER: "bottom-center",
    };
    t.TYPE = {
      INFO: "info",
      SUCCESS: "success",
      WARNING: "warning",
      ERROR: "error",
      DEFAULT: "default",
    };
    t.ACTION = {
      SHOW: 0,
      CLEAR: 1,
      DID_MOUNT: 2,
      WILL_UNMOUNT: 3,
      ON_CHANGE: 4,
    };
  },
  function (e, t) {
    var n;
    n = (function () {
      return this;
    })();
    try {
      n = n || new Function("return this")();
    } catch (e) {
      "object" == typeof window && (n = window);
    }
    e.exports = n;
  },
  function (e, t, n) {
    "use strict";
    var r = n(341);
    e.exports = Function.prototype.bind || r;
  },
  function (e, t, n) {
    "use strict";
    var r = n(230),
      o = "function" == typeof Symbol && "symbol" == typeof Symbol("foo"),
      a = Object.prototype.toString,
      i = Array.prototype.concat,
      s = Object.defineProperty,
      l =
        s &&
        (function () {
          var e = {};
          try {
            for (var t in (s(e, "x", { enumerable: !1, value: e }), e))
              return !1;
            return e.x === e;
          } catch (e) {
            return !1;
          }
        })(),
      c = function (e, t, n, r) {
        var o;
        (!(t in e) ||
          ("function" == typeof (o = r) &&
            "[object Function]" === a.call(o) &&
            r())) &&
          (l
            ? s(e, t, {
                configurable: !0,
                enumerable: !1,
                value: n,
                writable: !0,
              })
            : (e[t] = n));
      },
      u = function (e, t) {
        var n = arguments.length > 2 ? arguments[2] : {},
          a = r(t);
        o && (a = i.call(a, Object.getOwnPropertySymbols(t)));
        for (var s = 0; s < a.length; s += 1) c(e, a[s], t[a[s]], n[a[s]]);
      };
    (u.supportsDescriptors = !!l), (e.exports = u);
  },
  function (e, t, n) {
    var r = n(47),
      o = n(367),
      a = n(368),
      i = r ? r.toStringTag : void 0;
    e.exports = function (e) {
      return null == e
        ? void 0 === e
          ? "[object Undefined]"
          : "[object Null]"
        : i && i in Object(e)
        ? o(e)
        : a(e);
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return null != e && "object" == typeof e;
    };
  },
  function (e, t, n) {
    "use strict";
    !(function e() {
      if (
        "undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
        "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE
      ) {
        0;
        try {
          __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
        } catch (e) {
          console.error(e);
        }
      }
    })(),
      (e.exports = n(256));
  },
  function (e, t, n) {
    (function (e) {
      !(function (
        t,
        n,
        r,
        o,
        a,
        i,
        s,
        l,
        c,
        u,
        d,
        h,
        p,
        f,
        m,
        g,
        _,
        v,
        b,
        y,
        w,
        k,
        x,
        M,
        E,
        T,
        S,
        D,
        L,
        C,
        P,
        O,
        N,
        A,
        I,
        R,
        Y,
        j,
        F,
        H,
        z,
        B,
        U,
        V,
        W,
        q,
        G,
        J,
        K,
        Q,
        X,
        $,
        Z,
        ee,
        te,
        ne,
        re,
        oe,
        ae,
        ie,
        se,
        le
      ) {
        "use strict";
        function ce(e) {
          return (ce =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol &&
                    e !== Symbol.prototype
                    ? "symbol"
                    : typeof e;
                })(e);
        }
        function ue(e, t) {
          if (!(e instanceof t))
            throw new TypeError("Cannot call a class as a function");
        }
        function de(e, t) {
          for (var n = 0; n < t.length; n++) {
            var r = t[n];
            (r.enumerable = r.enumerable || !1),
              (r.configurable = !0),
              "value" in r && (r.writable = !0),
              Object.defineProperty(e, r.key, r);
          }
        }
        function he(e, t, n) {
          return t && de(e.prototype, t), n && de(e, n), e;
        }
        function pe(e, t, n) {
          return (
            t in e
              ? Object.defineProperty(e, t, {
                  value: n,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0,
                })
              : (e[t] = n),
            e
          );
        }
        function fe() {
          return (fe =
            Object.assign ||
            function (e) {
              for (var t = 1; t < arguments.length; t++) {
                var n = arguments[t];
                for (var r in n)
                  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
              }
              return e;
            }).apply(this, arguments);
        }
        function me(e, t) {
          var n = Object.keys(e);
          if (Object.getOwnPropertySymbols) {
            var r = Object.getOwnPropertySymbols(e);
            t &&
              (r = r.filter(function (t) {
                return Object.getOwnPropertyDescriptor(e, t).enumerable;
              })),
              n.push.apply(n, r);
          }
          return n;
        }
        function ge(e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = null != arguments[t] ? arguments[t] : {};
            t % 2
              ? me(Object(n), !0).forEach(function (t) {
                  pe(e, t, n[t]);
                })
              : Object.getOwnPropertyDescriptors
              ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
              : me(Object(n)).forEach(function (t) {
                  Object.defineProperty(
                    e,
                    t,
                    Object.getOwnPropertyDescriptor(n, t)
                  );
                });
          }
          return e;
        }
        function _e(e, t) {
          if ("function" != typeof t && null !== t)
            throw new TypeError(
              "Super expression must either be null or a function"
            );
          (e.prototype = Object.create(t && t.prototype, {
            constructor: { value: e, writable: !0, configurable: !0 },
          })),
            t &&
              (function (e, t) {
                (
                  Object.setPrototypeOf ||
                  function (e, t) {
                    return (e.__proto__ = t), e;
                  }
                )(e, t);
              })(e, t);
        }
        function ve(e) {
          return (ve = Object.setPrototypeOf
            ? Object.getPrototypeOf
            : function (e) {
                return e.__proto__ || Object.getPrototypeOf(e);
              })(e);
        }
        function be(e) {
          if (void 0 === e)
            throw new ReferenceError(
              "this hasn't been initialised - super() hasn't been called"
            );
          return e;
        }
        function ye(e, t) {
          return !t || ("object" != typeof t && "function" != typeof t)
            ? be(e)
            : t;
        }
        function we(e) {
          var t = (function () {
            if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
            if (Reflect.construct.sham) return !1;
            if ("function" == typeof Proxy) return !0;
            try {
              return (
                Date.prototype.toString.call(
                  Reflect.construct(Date, [], function () {})
                ),
                !0
              );
            } catch (e) {
              return !1;
            }
          })();
          return function () {
            var n,
              r = ve(e);
            if (t) {
              var o = ve(this).constructor;
              n = Reflect.construct(r, arguments, o);
            } else n = r.apply(this, arguments);
            return ye(this, n);
          };
        }
        function ke(e, t) {
          switch (e) {
            case "P":
              return t.date({ width: "short" });
            case "PP":
              return t.date({ width: "medium" });
            case "PPP":
              return t.date({ width: "long" });
            case "PPPP":
            default:
              return t.date({ width: "full" });
          }
        }
        function xe(e, t) {
          switch (e) {
            case "p":
              return t.time({ width: "short" });
            case "pp":
              return t.time({ width: "medium" });
            case "ppp":
              return t.time({ width: "long" });
            case "pppp":
            default:
              return t.time({ width: "full" });
          }
        }
        (n =
          n && Object.prototype.hasOwnProperty.call(n, "default")
            ? n.default
            : n),
          (r =
            r && Object.prototype.hasOwnProperty.call(r, "default")
              ? r.default
              : r),
          (o =
            o && Object.prototype.hasOwnProperty.call(o, "default")
              ? o.default
              : o),
          (a =
            a && Object.prototype.hasOwnProperty.call(a, "default")
              ? a.default
              : a),
          (i =
            i && Object.prototype.hasOwnProperty.call(i, "default")
              ? i.default
              : i),
          (s =
            s && Object.prototype.hasOwnProperty.call(s, "default")
              ? s.default
              : s),
          (l =
            l && Object.prototype.hasOwnProperty.call(l, "default")
              ? l.default
              : l),
          (c =
            c && Object.prototype.hasOwnProperty.call(c, "default")
              ? c.default
              : c),
          (u =
            u && Object.prototype.hasOwnProperty.call(u, "default")
              ? u.default
              : u),
          (d =
            d && Object.prototype.hasOwnProperty.call(d, "default")
              ? d.default
              : d),
          (h =
            h && Object.prototype.hasOwnProperty.call(h, "default")
              ? h.default
              : h),
          (p =
            p && Object.prototype.hasOwnProperty.call(p, "default")
              ? p.default
              : p),
          (f =
            f && Object.prototype.hasOwnProperty.call(f, "default")
              ? f.default
              : f),
          (m =
            m && Object.prototype.hasOwnProperty.call(m, "default")
              ? m.default
              : m),
          (g =
            g && Object.prototype.hasOwnProperty.call(g, "default")
              ? g.default
              : g),
          (_ =
            _ && Object.prototype.hasOwnProperty.call(_, "default")
              ? _.default
              : _),
          (v =
            v && Object.prototype.hasOwnProperty.call(v, "default")
              ? v.default
              : v),
          (b =
            b && Object.prototype.hasOwnProperty.call(b, "default")
              ? b.default
              : b),
          (y =
            y && Object.prototype.hasOwnProperty.call(y, "default")
              ? y.default
              : y),
          (w =
            w && Object.prototype.hasOwnProperty.call(w, "default")
              ? w.default
              : w),
          (k =
            k && Object.prototype.hasOwnProperty.call(k, "default")
              ? k.default
              : k),
          (x =
            x && Object.prototype.hasOwnProperty.call(x, "default")
              ? x.default
              : x),
          (M =
            M && Object.prototype.hasOwnProperty.call(M, "default")
              ? M.default
              : M),
          (E =
            E && Object.prototype.hasOwnProperty.call(E, "default")
              ? E.default
              : E),
          (T =
            T && Object.prototype.hasOwnProperty.call(T, "default")
              ? T.default
              : T),
          (S =
            S && Object.prototype.hasOwnProperty.call(S, "default")
              ? S.default
              : S),
          (D =
            D && Object.prototype.hasOwnProperty.call(D, "default")
              ? D.default
              : D),
          (L =
            L && Object.prototype.hasOwnProperty.call(L, "default")
              ? L.default
              : L),
          (C =
            C && Object.prototype.hasOwnProperty.call(C, "default")
              ? C.default
              : C),
          (P =
            P && Object.prototype.hasOwnProperty.call(P, "default")
              ? P.default
              : P),
          (O =
            O && Object.prototype.hasOwnProperty.call(O, "default")
              ? O.default
              : O),
          (N =
            N && Object.prototype.hasOwnProperty.call(N, "default")
              ? N.default
              : N),
          (A =
            A && Object.prototype.hasOwnProperty.call(A, "default")
              ? A.default
              : A),
          (I =
            I && Object.prototype.hasOwnProperty.call(I, "default")
              ? I.default
              : I),
          (R =
            R && Object.prototype.hasOwnProperty.call(R, "default")
              ? R.default
              : R),
          (Y =
            Y && Object.prototype.hasOwnProperty.call(Y, "default")
              ? Y.default
              : Y),
          (j =
            j && Object.prototype.hasOwnProperty.call(j, "default")
              ? j.default
              : j),
          (F =
            F && Object.prototype.hasOwnProperty.call(F, "default")
              ? F.default
              : F),
          (H =
            H && Object.prototype.hasOwnProperty.call(H, "default")
              ? H.default
              : H),
          (z =
            z && Object.prototype.hasOwnProperty.call(z, "default")
              ? z.default
              : z),
          (B =
            B && Object.prototype.hasOwnProperty.call(B, "default")
              ? B.default
              : B),
          (U =
            U && Object.prototype.hasOwnProperty.call(U, "default")
              ? U.default
              : U),
          (V =
            V && Object.prototype.hasOwnProperty.call(V, "default")
              ? V.default
              : V),
          (W =
            W && Object.prototype.hasOwnProperty.call(W, "default")
              ? W.default
              : W),
          (q =
            q && Object.prototype.hasOwnProperty.call(q, "default")
              ? q.default
              : q),
          (G =
            G && Object.prototype.hasOwnProperty.call(G, "default")
              ? G.default
              : G),
          (J =
            J && Object.prototype.hasOwnProperty.call(J, "default")
              ? J.default
              : J),
          (K =
            K && Object.prototype.hasOwnProperty.call(K, "default")
              ? K.default
              : K),
          (Q =
            Q && Object.prototype.hasOwnProperty.call(Q, "default")
              ? Q.default
              : Q),
          (X =
            X && Object.prototype.hasOwnProperty.call(X, "default")
              ? X.default
              : X),
          ($ =
            $ && Object.prototype.hasOwnProperty.call($, "default")
              ? $.default
              : $),
          (Z =
            Z && Object.prototype.hasOwnProperty.call(Z, "default")
              ? Z.default
              : Z),
          (ee =
            ee && Object.prototype.hasOwnProperty.call(ee, "default")
              ? ee.default
              : ee),
          (te =
            te && Object.prototype.hasOwnProperty.call(te, "default")
              ? te.default
              : te),
          (ne =
            ne && Object.prototype.hasOwnProperty.call(ne, "default")
              ? ne.default
              : ne),
          (re =
            re && Object.prototype.hasOwnProperty.call(re, "default")
              ? re.default
              : re),
          (oe =
            oe && Object.prototype.hasOwnProperty.call(oe, "default")
              ? oe.default
              : oe),
          (ae =
            ae && Object.prototype.hasOwnProperty.call(ae, "default")
              ? ae.default
              : ae),
          (ie =
            ie && Object.prototype.hasOwnProperty.call(ie, "default")
              ? ie.default
              : ie),
          (se =
            se && Object.prototype.hasOwnProperty.call(se, "default")
              ? se.default
              : se);
        var Me = {
            p: xe,
            P: function (e, t) {
              var n,
                r = e.match(/(P+)(p+)?/),
                o = r[1],
                a = r[2];
              if (!a) return ke(e, t);
              switch (o) {
                case "P":
                  n = t.dateTime({ width: "short" });
                  break;
                case "PP":
                  n = t.dateTime({ width: "medium" });
                  break;
                case "PPP":
                  n = t.dateTime({ width: "long" });
                  break;
                case "PPPP":
                default:
                  n = t.dateTime({ width: "full" });
              }
              return n
                .replace("{{date}}", ke(o, t))
                .replace("{{time}}", xe(a, t));
            },
          },
          Ee = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
        function Te(e) {
          var t = e
            ? "string" == typeof e || e instanceof String
              ? ie(e)
              : oe(e)
            : new Date();
          return De(t) ? t : null;
        }
        function Se(e, t, n, r) {
          var o = null,
            a = Ve(n) || Ue(),
            i = !0;
          return Array.isArray(t)
            ? (t.forEach(function (t) {
                var n = ae(e, t, new Date(), { locale: a });
                r && (i = De(n) && e === s(n, t, { awareOfUnicodeTokens: !0 })),
                  De(n) && i && (o = n);
              }),
              o)
            : ((o = ae(e, t, new Date(), { locale: a })),
              r
                ? (i = De(o) && e === s(o, t, { awareOfUnicodeTokens: !0 }))
                : De(o) ||
                  ((t = t
                    .match(Ee)
                    .map(function (e) {
                      var t = e[0];
                      return "p" === t || "P" === t
                        ? a
                          ? (0, Me[t])(e, a.formatLong)
                          : t
                        : e;
                    })
                    .join("")),
                  e.length > 0 && (o = ae(e, t.slice(0, e.length), new Date())),
                  De(o) || (o = new Date(e))),
              De(o) && i ? o : null);
        }
        function De(e) {
          return i(e) && te(e, new Date("1/1/1000"));
        }
        function Le(e, t, n) {
          if ("en" === n) return s(e, t, { awareOfUnicodeTokens: !0 });
          var r = Ve(n);
          return (
            n &&
              !r &&
              console.warn(
                'A locale object was not found for the provided string ["'.concat(
                  n,
                  '"].'
                )
              ),
            !r && Ue() && Ve(Ue()) && (r = Ve(Ue())),
            s(e, t, { locale: r || null, awareOfUnicodeTokens: !0 })
          );
        }
        function Ce(e, t) {
          var n = t.hour,
            r = void 0 === n ? 0 : n,
            o = t.minute,
            a = void 0 === o ? 0 : o,
            i = t.second;
          return O(P(C(e, void 0 === i ? 0 : i), a), r);
        }
        function Pe(e, t) {
          var n = (t && Ve(t)) || (Ue() && Ve(Ue()));
          return E(e, n ? { locale: n } : null);
        }
        function Oe(e, t) {
          return Le(e, "ddd", t);
        }
        function Ne(e) {
          return B(e);
        }
        function Ae(e, t) {
          var n = Ve(t || Ue());
          return U(e, { locale: n });
        }
        function Ie(e) {
          return V(e);
        }
        function Re(e) {
          return W(e);
        }
        function Ye(e, t) {
          return e && t ? Z(e, t) : !e && !t;
        }
        function je(e, t) {
          return e && t ? $(e, t) : !e && !t;
        }
        function Fe(e, t) {
          return e && t ? ee(e, t) : !e && !t;
        }
        function He(e, t) {
          return e && t ? X(e, t) : !e && !t;
        }
        function ze(e, t) {
          return e && t ? Q(e, t) : !e && !t;
        }
        function Be(e, t, n) {
          var r,
            o = B(t),
            a = G(n);
          try {
            r = re(e, { start: o, end: a });
          } catch (e) {
            r = !1;
          }
          return r;
        }
        function Ue() {
          return ("undefined" != typeof window ? window : e).__localeId__;
        }
        function Ve(t) {
          if ("string" == typeof t) {
            var n = "undefined" != typeof window ? window : e;
            return n.__localeData__ ? n.__localeData__[t] : null;
          }
          return t;
        }
        function We(e, t) {
          return Le(N(Te(), e), "LLLL", t);
        }
        function qe(e, t) {
          return Le(N(Te(), e), "LLL", t);
        }
        function Ge(e, t) {
          return Le(A(Te(), e), "QQQ", t);
        }
        function Je(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.minDate,
            r = t.maxDate,
            o = t.excludeDates,
            a = t.includeDates,
            i = t.filterDate;
          return (
            et(e, { minDate: n, maxDate: r }) ||
            (o &&
              o.some(function (t) {
                return He(e, t);
              })) ||
            (a &&
              !a.some(function (t) {
                return He(e, t);
              })) ||
            (i && !i(Te(e))) ||
            !1
          );
        }
        function Ke(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.excludeDates;
          return (
            (n &&
              n.some(function (t) {
                return He(e, t);
              })) ||
            !1
          );
        }
        function Qe(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.minDate,
            r = t.maxDate,
            o = t.excludeDates,
            a = t.includeDates,
            i = t.filterDate;
          return (
            et(e, { minDate: n, maxDate: r }) ||
            (o &&
              o.some(function (t) {
                return je(e, t);
              })) ||
            (a &&
              !a.some(function (t) {
                return je(e, t);
              })) ||
            (i && !i(Te(e))) ||
            !1
          );
        }
        function Xe(e, t, n, r) {
          var o = D(e),
            a = T(e),
            i = D(t),
            s = T(t),
            l = D(r);
          return o === i && o === l
            ? a <= n && n <= s
            : o < i
            ? (l === o && a <= n) || (l === i && s >= n) || (l < i && l > o)
            : void 0;
        }
        function $e(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.minDate,
            r = t.maxDate,
            o = t.excludeDates,
            a = t.includeDates,
            i = t.filterDate;
          return (
            et(e, { minDate: n, maxDate: r }) ||
            (o &&
              o.some(function (t) {
                return Fe(e, t);
              })) ||
            (a &&
              !a.some(function (t) {
                return Fe(e, t);
              })) ||
            (i && !i(Te(e))) ||
            !1
          );
        }
        function Ze(e, t, n, r) {
          var o = D(e),
            a = S(e),
            i = D(t),
            s = S(t),
            l = D(r);
          return o === i && o === l
            ? a <= n && n <= s
            : o < i
            ? (l === o && a <= n) || (l === i && s >= n) || (l < i && l > o)
            : void 0;
        }
        function et(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.minDate,
            r = t.maxDate;
          return (n && j(e, n) < 0) || (r && j(e, r) > 0);
        }
        function tt(e, t) {
          for (var n = t.length, r = 0; r < n; r++)
            if (k(t[r]) === k(e) && w(t[r]) === w(e)) return !0;
          return !1;
        }
        function nt(e, t) {
          var n = t.minTime,
            r = t.maxTime;
          if (!n || !r)
            throw new Error("Both minTime and maxTime props required");
          var o,
            a = Te(),
            i = O(P(a, w(e)), k(e)),
            s = O(P(a, w(n)), k(n)),
            l = O(P(a, w(r)), k(r));
          try {
            o = !re(i, { start: s, end: l });
          } catch (e) {
            o = !1;
          }
          return o;
        }
        function rt(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.minDate,
            r = t.includeDates,
            o = v(e, 1);
          return (
            (n && F(n, o) > 0) ||
            (r &&
              r.every(function (e) {
                return F(e, o) > 0;
              })) ||
            !1
          );
        }
        function ot(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.maxDate,
            r = t.includeDates,
            o = h(e, 1);
          return (
            (n && F(o, n) > 0) ||
            (r &&
              r.every(function (e) {
                return F(o, e) > 0;
              })) ||
            !1
          );
        }
        function at(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.minDate,
            r = t.includeDates,
            o = b(e, 1);
          return (
            (n && z(n, o) > 0) ||
            (r &&
              r.every(function (e) {
                return z(e, o) > 0;
              })) ||
            !1
          );
        }
        function it(e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = t.maxDate,
            r = t.includeDates,
            o = p(e, 1);
          return (
            (n && z(o, n) > 0) ||
            (r &&
              r.every(function (e) {
                return z(o, e) > 0;
              })) ||
            !1
          );
        }
        function st(e) {
          var t = e.minDate,
            n = e.includeDates;
          if (n && t) {
            var r = n.filter(function (e) {
              return j(e, t) >= 0;
            });
            return R(r);
          }
          return n ? R(n) : t;
        }
        function lt(e) {
          var t = e.maxDate,
            n = e.includeDates;
          if (n && t) {
            var r = n.filter(function (e) {
              return j(e, t) <= 0;
            });
            return Y(r);
          }
          return n ? Y(n) : t;
        }
        function ct() {
          for (
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : [],
              t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : "react-datepicker__day--highlighted",
              n = new Map(),
              r = 0,
              o = e.length;
            r < o;
            r++
          ) {
            var i = e[r];
            if (a(i)) {
              var s = Le(i, "MM.dd.yyyy"),
                l = n.get(s) || [];
              l.includes(t) || (l.push(t), n.set(s, l));
            } else if ("object" === ce(i)) {
              var c = Object.keys(i),
                u = c[0],
                d = i[c[0]];
              if ("string" == typeof u && d.constructor === Array)
                for (var h = 0, p = d.length; h < p; h++) {
                  var f = Le(d[h], "MM.dd.yyyy"),
                    m = n.get(f) || [];
                  m.includes(u) || (m.push(u), n.set(f, m));
                }
            }
          }
          return n;
        }
        function ut(e, t, n, r, o) {
          for (var a = o.length, i = [], s = 0; s < a; s++) {
            var u = l(c(e, k(o[s])), w(o[s])),
              d = l(e, (n + 1) * r);
            te(u, t) && ne(u, d) && i.push(o[s]);
          }
          return i;
        }
        function dt(e) {
          return e < 10 ? "0".concat(e) : "".concat(e);
        }
        function ht(e, t, n, r) {
          for (var o = [], a = 0; a < 2 * t + 1; a++) {
            var i = e + t - a,
              s = !0;
            n && (s = D(n) <= i), r && s && (s = D(r) >= i), s && o.push(i);
          }
          return o;
        }
        var pt = se(
            (function (e) {
              _e(r, e);
              var t = we(r);
              function r(e) {
                var o;
                ue(this, r),
                  pe(be((o = t.call(this, e))), "renderOptions", function () {
                    var e = o.props.year,
                      t = o.state.yearsList.map(function (t) {
                        return n.createElement(
                          "div",
                          {
                            className:
                              e === t
                                ? "react-datepicker__year-option react-datepicker__year-option--selected_year"
                                : "react-datepicker__year-option",
                            key: t,
                            onClick: o.onChange.bind(be(o), t),
                          },
                          e === t
                            ? n.createElement(
                                "span",
                                {
                                  className:
                                    "react-datepicker__year-option--selected",
                                },
                                "✓"
                              )
                            : "",
                          t
                        );
                      }),
                      r = o.props.minDate ? D(o.props.minDate) : null,
                      a = o.props.maxDate ? D(o.props.maxDate) : null;
                    return (
                      (a &&
                        o.state.yearsList.find(function (e) {
                          return e === a;
                        })) ||
                        t.unshift(
                          n.createElement(
                            "div",
                            {
                              className: "react-datepicker__year-option",
                              key: "upcoming",
                              onClick: o.incrementYears,
                            },
                            n.createElement("a", {
                              className:
                                "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming",
                            })
                          )
                        ),
                      (r &&
                        o.state.yearsList.find(function (e) {
                          return e === r;
                        })) ||
                        t.push(
                          n.createElement(
                            "div",
                            {
                              className: "react-datepicker__year-option",
                              key: "previous",
                              onClick: o.decrementYears,
                            },
                            n.createElement("a", {
                              className:
                                "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous",
                            })
                          )
                        ),
                      t
                    );
                  }),
                  pe(be(o), "onChange", function (e) {
                    o.props.onChange(e);
                  }),
                  pe(be(o), "handleClickOutside", function () {
                    o.props.onCancel();
                  }),
                  pe(be(o), "shiftYears", function (e) {
                    var t = o.state.yearsList.map(function (t) {
                      return t + e;
                    });
                    o.setState({ yearsList: t });
                  }),
                  pe(be(o), "incrementYears", function () {
                    return o.shiftYears(1);
                  }),
                  pe(be(o), "decrementYears", function () {
                    return o.shiftYears(-1);
                  });
                var a = e.yearDropdownItemNumber,
                  i = e.scrollableYearDropdown,
                  s = a || (i ? 10 : 5);
                return (
                  (o.state = {
                    yearsList: ht(
                      o.props.year,
                      s,
                      o.props.minDate,
                      o.props.maxDate
                    ),
                  }),
                  o
                );
              }
              return (
                he(r, [
                  {
                    key: "render",
                    value: function () {
                      var e = o({
                        "react-datepicker__year-dropdown": !0,
                        "react-datepicker__year-dropdown--scrollable": this
                          .props.scrollableYearDropdown,
                      });
                      return n.createElement(
                        "div",
                        { className: e },
                        this.renderOptions()
                      );
                    },
                  },
                ]),
                r
              );
            })(n.Component)
          ),
          ft = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              var e;
              ue(this, r);
              for (
                var o = arguments.length, a = new Array(o), i = 0;
                i < o;
                i++
              )
                a[i] = arguments[i];
              return (
                pe(be((e = t.call.apply(t, [this].concat(a)))), "state", {
                  dropdownVisible: !1,
                }),
                pe(be(e), "renderSelectOptions", function () {
                  for (
                    var t = e.props.minDate ? D(e.props.minDate) : 1900,
                      r = e.props.maxDate ? D(e.props.maxDate) : 2100,
                      o = [],
                      a = t;
                    a <= r;
                    a++
                  )
                    o.push(n.createElement("option", { key: a, value: a }, a));
                  return o;
                }),
                pe(be(e), "onSelectChange", function (t) {
                  e.onChange(t.target.value);
                }),
                pe(be(e), "renderSelectMode", function () {
                  return n.createElement(
                    "select",
                    {
                      value: e.props.year,
                      className: "react-datepicker__year-select",
                      onChange: e.onSelectChange,
                    },
                    e.renderSelectOptions()
                  );
                }),
                pe(be(e), "renderReadView", function (t) {
                  return n.createElement(
                    "div",
                    {
                      key: "read",
                      style: { visibility: t ? "visible" : "hidden" },
                      className: "react-datepicker__year-read-view",
                      onClick: function (t) {
                        return e.toggleDropdown(t);
                      },
                    },
                    n.createElement("span", {
                      className: "react-datepicker__year-read-view--down-arrow",
                    }),
                    n.createElement(
                      "span",
                      {
                        className:
                          "react-datepicker__year-read-view--selected-year",
                      },
                      e.props.year
                    )
                  );
                }),
                pe(be(e), "renderDropdown", function () {
                  return n.createElement(pt, {
                    key: "dropdown",
                    year: e.props.year,
                    onChange: e.onChange,
                    onCancel: e.toggleDropdown,
                    minDate: e.props.minDate,
                    maxDate: e.props.maxDate,
                    scrollableYearDropdown: e.props.scrollableYearDropdown,
                    yearDropdownItemNumber: e.props.yearDropdownItemNumber,
                  });
                }),
                pe(be(e), "renderScrollMode", function () {
                  var t = e.state.dropdownVisible,
                    n = [e.renderReadView(!t)];
                  return t && n.unshift(e.renderDropdown()), n;
                }),
                pe(be(e), "onChange", function (t) {
                  e.toggleDropdown(), t !== e.props.year && e.props.onChange(t);
                }),
                pe(be(e), "toggleDropdown", function (t) {
                  e.setState(
                    { dropdownVisible: !e.state.dropdownVisible },
                    function () {
                      e.props.adjustDateOnChange &&
                        e.handleYearChange(e.props.date, t);
                    }
                  );
                }),
                pe(be(e), "handleYearChange", function (t, n) {
                  e.onSelect(t, n), e.setOpen();
                }),
                pe(be(e), "onSelect", function (t, n) {
                  e.props.onSelect && e.props.onSelect(t, n);
                }),
                pe(be(e), "setOpen", function () {
                  e.props.setOpen && e.props.setOpen(!0);
                }),
                e
              );
            }
            return (
              he(r, [
                {
                  key: "render",
                  value: function () {
                    var e;
                    switch (this.props.dropdownMode) {
                      case "scroll":
                        e = this.renderScrollMode();
                        break;
                      case "select":
                        e = this.renderSelectMode();
                    }
                    return n.createElement(
                      "div",
                      {
                        className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(
                          this.props.dropdownMode
                        ),
                      },
                      e
                    );
                  },
                },
              ]),
              r
            );
          })(n.Component),
          mt = se(
            (function (e) {
              _e(r, e);
              var t = we(r);
              function r() {
                var e;
                ue(this, r);
                for (
                  var o = arguments.length, a = new Array(o), i = 0;
                  i < o;
                  i++
                )
                  a[i] = arguments[i];
                return (
                  pe(
                    be((e = t.call.apply(t, [this].concat(a)))),
                    "renderOptions",
                    function () {
                      return e.props.monthNames.map(function (t, r) {
                        return n.createElement(
                          "div",
                          {
                            className:
                              e.props.month === r
                                ? "react-datepicker__month-option react-datepicker__month-option--selected_month"
                                : "react-datepicker__month-option",
                            key: t,
                            onClick: e.onChange.bind(be(e), r),
                          },
                          e.props.month === r
                            ? n.createElement(
                                "span",
                                {
                                  className:
                                    "react-datepicker__month-option--selected",
                                },
                                "✓"
                              )
                            : "",
                          t
                        );
                      });
                    }
                  ),
                  pe(be(e), "onChange", function (t) {
                    return e.props.onChange(t);
                  }),
                  pe(be(e), "handleClickOutside", function () {
                    return e.props.onCancel();
                  }),
                  e
                );
              }
              return (
                he(r, [
                  {
                    key: "render",
                    value: function () {
                      return n.createElement(
                        "div",
                        { className: "react-datepicker__month-dropdown" },
                        this.renderOptions()
                      );
                    },
                  },
                ]),
                r
              );
            })(n.Component)
          ),
          gt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              var e;
              ue(this, r);
              for (
                var o = arguments.length, a = new Array(o), i = 0;
                i < o;
                i++
              )
                a[i] = arguments[i];
              return (
                pe(be((e = t.call.apply(t, [this].concat(a)))), "state", {
                  dropdownVisible: !1,
                }),
                pe(be(e), "renderSelectOptions", function (e) {
                  return e.map(function (e, t) {
                    return n.createElement("option", { key: t, value: t }, e);
                  });
                }),
                pe(be(e), "renderSelectMode", function (t) {
                  return n.createElement(
                    "select",
                    {
                      value: e.props.month,
                      className: "react-datepicker__month-select",
                      onChange: function (t) {
                        return e.onChange(t.target.value);
                      },
                    },
                    e.renderSelectOptions(t)
                  );
                }),
                pe(be(e), "renderReadView", function (t, r) {
                  return n.createElement(
                    "div",
                    {
                      key: "read",
                      style: { visibility: t ? "visible" : "hidden" },
                      className: "react-datepicker__month-read-view",
                      onClick: e.toggleDropdown,
                    },
                    n.createElement("span", {
                      className:
                        "react-datepicker__month-read-view--down-arrow",
                    }),
                    n.createElement(
                      "span",
                      {
                        className:
                          "react-datepicker__month-read-view--selected-month",
                      },
                      r[e.props.month]
                    )
                  );
                }),
                pe(be(e), "renderDropdown", function (t) {
                  return n.createElement(mt, {
                    key: "dropdown",
                    month: e.props.month,
                    monthNames: t,
                    onChange: e.onChange,
                    onCancel: e.toggleDropdown,
                  });
                }),
                pe(be(e), "renderScrollMode", function (t) {
                  var n = e.state.dropdownVisible,
                    r = [e.renderReadView(!n, t)];
                  return n && r.unshift(e.renderDropdown(t)), r;
                }),
                pe(be(e), "onChange", function (t) {
                  e.toggleDropdown(),
                    t !== e.props.month && e.props.onChange(t);
                }),
                pe(be(e), "toggleDropdown", function () {
                  return e.setState({
                    dropdownVisible: !e.state.dropdownVisible,
                  });
                }),
                e
              );
            }
            return (
              he(r, [
                {
                  key: "render",
                  value: function () {
                    var e,
                      t = this,
                      r = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map(
                        this.props.useShortMonthInDropdown
                          ? function (e) {
                              return qe(e, t.props.locale);
                            }
                          : function (e) {
                              return We(e, t.props.locale);
                            }
                      );
                    switch (this.props.dropdownMode) {
                      case "scroll":
                        e = this.renderScrollMode(r);
                        break;
                      case "select":
                        e = this.renderSelectMode(r);
                    }
                    return n.createElement(
                      "div",
                      {
                        className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(
                          this.props.dropdownMode
                        ),
                      },
                      e
                    );
                  },
                },
              ]),
              r
            );
          })(n.Component);
        function _t(e, t) {
          for (var n = [], r = Ie(e), o = Ie(t); !te(r, o); )
            n.push(Te(r)), (r = h(r, 1));
          return n;
        }
        var vt = se(
            (function (e) {
              _e(r, e);
              var t = we(r);
              function r(e) {
                var o;
                return (
                  ue(this, r),
                  pe(be((o = t.call(this, e))), "renderOptions", function () {
                    return o.state.monthYearsList.map(function (e) {
                      var t = L(e),
                        r = Ye(o.props.date, e) && je(o.props.date, e);
                      return n.createElement(
                        "div",
                        {
                          className: r
                            ? "react-datepicker__month-year-option --selected_month-year"
                            : "react-datepicker__month-year-option",
                          key: t,
                          onClick: o.onChange.bind(be(o), t),
                        },
                        r
                          ? n.createElement(
                              "span",
                              {
                                className:
                                  "react-datepicker__month-year-option--selected",
                              },
                              "✓"
                            )
                          : "",
                        Le(e, o.props.dateFormat)
                      );
                    });
                  }),
                  pe(be(o), "onChange", function (e) {
                    return o.props.onChange(e);
                  }),
                  pe(be(o), "handleClickOutside", function () {
                    o.props.onCancel();
                  }),
                  (o.state = {
                    monthYearsList: _t(o.props.minDate, o.props.maxDate),
                  }),
                  o
                );
              }
              return (
                he(r, [
                  {
                    key: "render",
                    value: function () {
                      var e = o({
                        "react-datepicker__month-year-dropdown": !0,
                        "react-datepicker__month-year-dropdown--scrollable": this
                          .props.scrollableMonthYearDropdown,
                      });
                      return n.createElement(
                        "div",
                        { className: e },
                        this.renderOptions()
                      );
                    },
                  },
                ]),
                r
              );
            })(n.Component)
          ),
          bt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              var e;
              ue(this, r);
              for (
                var o = arguments.length, a = new Array(o), i = 0;
                i < o;
                i++
              )
                a[i] = arguments[i];
              return (
                pe(be((e = t.call.apply(t, [this].concat(a)))), "state", {
                  dropdownVisible: !1,
                }),
                pe(be(e), "renderSelectOptions", function () {
                  for (
                    var t = Ie(e.props.minDate),
                      r = Ie(e.props.maxDate),
                      o = [];
                    !te(t, r);

                  ) {
                    var a = L(t);
                    o.push(
                      n.createElement(
                        "option",
                        { key: a, value: a },
                        Le(t, e.props.dateFormat, e.props.locale)
                      )
                    ),
                      (t = h(t, 1));
                  }
                  return o;
                }),
                pe(be(e), "onSelectChange", function (t) {
                  e.onChange(t.target.value);
                }),
                pe(be(e), "renderSelectMode", function () {
                  return n.createElement(
                    "select",
                    {
                      value: L(Ie(e.props.date)),
                      className: "react-datepicker__month-year-select",
                      onChange: e.onSelectChange,
                    },
                    e.renderSelectOptions()
                  );
                }),
                pe(be(e), "renderReadView", function (t) {
                  var r = Le(e.props.date, e.props.dateFormat, e.props.locale);
                  return n.createElement(
                    "div",
                    {
                      key: "read",
                      style: { visibility: t ? "visible" : "hidden" },
                      className: "react-datepicker__month-year-read-view",
                      onClick: function (t) {
                        return e.toggleDropdown(t);
                      },
                    },
                    n.createElement("span", {
                      className:
                        "react-datepicker__month-year-read-view--down-arrow",
                    }),
                    n.createElement(
                      "span",
                      {
                        className:
                          "react-datepicker__month-year-read-view--selected-month-year",
                      },
                      r
                    )
                  );
                }),
                pe(be(e), "renderDropdown", function () {
                  return n.createElement(vt, {
                    key: "dropdown",
                    date: e.props.date,
                    dateFormat: e.props.dateFormat,
                    onChange: e.onChange,
                    onCancel: e.toggleDropdown,
                    minDate: e.props.minDate,
                    maxDate: e.props.maxDate,
                    scrollableMonthYearDropdown:
                      e.props.scrollableMonthYearDropdown,
                  });
                }),
                pe(be(e), "renderScrollMode", function () {
                  var t = e.state.dropdownVisible,
                    n = [e.renderReadView(!t)];
                  return t && n.unshift(e.renderDropdown()), n;
                }),
                pe(be(e), "onChange", function (t) {
                  e.toggleDropdown();
                  var n = Te(parseInt(t));
                  (Ye(e.props.date, n) && je(e.props.date, n)) ||
                    e.props.onChange(n);
                }),
                pe(be(e), "toggleDropdown", function () {
                  return e.setState({
                    dropdownVisible: !e.state.dropdownVisible,
                  });
                }),
                e
              );
            }
            return (
              he(r, [
                {
                  key: "render",
                  value: function () {
                    var e;
                    switch (this.props.dropdownMode) {
                      case "scroll":
                        e = this.renderScrollMode();
                        break;
                      case "select":
                        e = this.renderSelectMode();
                    }
                    return n.createElement(
                      "div",
                      {
                        className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(
                          this.props.dropdownMode
                        ),
                      },
                      e
                    );
                  },
                },
              ]),
              r
            );
          })(n.Component),
          yt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              var e;
              ue(this, r);
              for (
                var a = arguments.length, i = new Array(a), s = 0;
                s < a;
                s++
              )
                i[s] = arguments[s];
              return (
                pe(
                  be((e = t.call.apply(t, [this].concat(i)))),
                  "dayEl",
                  n.createRef()
                ),
                pe(be(e), "handleClick", function (t) {
                  !e.isDisabled() && e.props.onClick && e.props.onClick(t);
                }),
                pe(be(e), "handleMouseEnter", function (t) {
                  !e.isDisabled() &&
                    e.props.onMouseEnter &&
                    e.props.onMouseEnter(t);
                }),
                pe(be(e), "handleOnKeyDown", function (t) {
                  " " === t.key && (t.preventDefault(), (t.key = "Enter")),
                    e.props.handleOnKeyDown(t);
                }),
                pe(be(e), "isSameDay", function (t) {
                  return He(e.props.day, t);
                }),
                pe(be(e), "isKeyboardSelected", function () {
                  return (
                    !e.props.disabledKeyboardNavigation &&
                    !e.props.inline &&
                    !e.isSameDay(e.props.selected) &&
                    e.isSameDay(e.props.preSelection)
                  );
                }),
                pe(be(e), "isDisabled", function () {
                  return Je(e.props.day, e.props);
                }),
                pe(be(e), "isExcluded", function () {
                  return Ke(e.props.day, e.props);
                }),
                pe(be(e), "getHighLightedClass", function (t) {
                  var n = e.props,
                    r = n.day,
                    o = n.highlightDates;
                  if (!o) return !1;
                  var a = Le(r, "MM.dd.yyyy");
                  return o.get(a);
                }),
                pe(be(e), "isInRange", function () {
                  var t = e.props,
                    n = t.day,
                    r = t.startDate,
                    o = t.endDate;
                  return !(!r || !o) && Be(n, r, o);
                }),
                pe(be(e), "isInSelectingRange", function () {
                  var t = e.props,
                    n = t.day,
                    r = t.selectsStart,
                    o = t.selectsEnd,
                    a = t.selectingDate,
                    i = t.startDate,
                    s = t.endDate;
                  return (
                    !((!r && !o) || !a || e.isDisabled()) &&
                    (r && s && (ne(a, s) || ze(a, s))
                      ? Be(n, a, s)
                      : !(!o || !i || (!te(a, i) && !ze(a, i))) && Be(n, i, a))
                  );
                }),
                pe(be(e), "isSelectingRangeStart", function () {
                  if (!e.isInSelectingRange()) return !1;
                  var t = e.props,
                    n = t.day,
                    r = t.selectingDate,
                    o = t.startDate;
                  return He(n, t.selectsStart ? r : o);
                }),
                pe(be(e), "isSelectingRangeEnd", function () {
                  if (!e.isInSelectingRange()) return !1;
                  var t = e.props,
                    n = t.day,
                    r = t.selectingDate,
                    o = t.endDate;
                  return He(n, t.selectsEnd ? r : o);
                }),
                pe(be(e), "isRangeStart", function () {
                  var t = e.props,
                    n = t.day,
                    r = t.startDate,
                    o = t.endDate;
                  return !(!r || !o) && He(r, n);
                }),
                pe(be(e), "isRangeEnd", function () {
                  var t = e.props,
                    n = t.day,
                    r = t.startDate,
                    o = t.endDate;
                  return !(!r || !o) && He(o, n);
                }),
                pe(be(e), "isWeekend", function () {
                  var t = x(e.props.day);
                  return 0 === t || 6 === t;
                }),
                pe(be(e), "isOutsideMonth", function () {
                  return (
                    void 0 !== e.props.month && e.props.month !== T(e.props.day)
                  );
                }),
                pe(be(e), "getClassNames", function (t) {
                  var n = e.props.dayClassName
                    ? e.props.dayClassName(t)
                    : void 0;
                  return o(
                    "react-datepicker__day",
                    n,
                    "react-datepicker__day--" + Oe(e.props.day),
                    {
                      "react-datepicker__day--disabled": e.isDisabled(),
                      "react-datepicker__day--excluded": e.isExcluded(),
                      "react-datepicker__day--selected": e.isSameDay(
                        e.props.selected
                      ),
                      "react-datepicker__day--keyboard-selected": e.isKeyboardSelected(),
                      "react-datepicker__day--range-start": e.isRangeStart(),
                      "react-datepicker__day--range-end": e.isRangeEnd(),
                      "react-datepicker__day--in-range": e.isInRange(),
                      "react-datepicker__day--in-selecting-range": e.isInSelectingRange(),
                      "react-datepicker__day--selecting-range-start": e.isSelectingRangeStart(),
                      "react-datepicker__day--selecting-range-end": e.isSelectingRangeEnd(),
                      "react-datepicker__day--today": e.isSameDay(Te()),
                      "react-datepicker__day--weekend": e.isWeekend(),
                      "react-datepicker__day--outside-month": e.isOutsideMonth(),
                    },
                    e.getHighLightedClass("react-datepicker__day--highlighted")
                  );
                }),
                pe(be(e), "getAriaLabel", function () {
                  var t = e.props,
                    n = t.day,
                    r = t.ariaLabelPrefixWhenEnabled,
                    o = void 0 === r ? "Choose" : r,
                    a = t.ariaLabelPrefixWhenDisabled,
                    i = void 0 === a ? "Not available" : a,
                    s = e.isDisabled() || e.isExcluded() ? i : o;
                  return "".concat(s, " ").concat(Le(n, "PPPP"));
                }),
                pe(be(e), "getTabIndex", function (t, n) {
                  var r = t || e.props.selected,
                    o = n || e.props.preSelection;
                  return e.isKeyboardSelected() || (e.isSameDay(r) && He(o, r))
                    ? 0
                    : -1;
                }),
                pe(be(e), "handleFocusDay", function () {
                  var t =
                      arguments.length > 0 && void 0 !== arguments[0]
                        ? arguments[0]
                        : {},
                    n = !1;
                  0 === e.getTabIndex() &&
                    !t.isInputFocused &&
                    e.isSameDay(e.props.preSelection) &&
                    ((document.activeElement &&
                      document.activeElement !== document.body) ||
                      (n = !0),
                    e.props.containerRef &&
                      e.props.containerRef.current &&
                      e.props.containerRef.current.contains(
                        document.activeElement
                      ) &&
                      document.activeElement.classList.contains(
                        "react-datepicker__day"
                      ) &&
                      (n = !0)),
                    n && e.dayEl.current.focus();
                }),
                pe(be(e), "render", function () {
                  return n.createElement(
                    "div",
                    {
                      ref: e.dayEl,
                      className: e.getClassNames(e.props.day),
                      onKeyDown: e.handleOnKeyDown,
                      onClick: e.handleClick,
                      onMouseEnter: e.handleMouseEnter,
                      tabIndex: e.getTabIndex(),
                      "aria-label": e.getAriaLabel(),
                      role: "button",
                      "aria-disabled": e.isDisabled(),
                    },
                    e.props.renderDayContents
                      ? e.props.renderDayContents(M(e.props.day), e.props.day)
                      : M(e.props.day)
                  );
                }),
                e
              );
            }
            return (
              he(r, [
                {
                  key: "componentDidMount",
                  value: function () {
                    this.handleFocusDay();
                  },
                },
                {
                  key: "componentDidUpdate",
                  value: function (e) {
                    this.handleFocusDay(e);
                  },
                },
              ]),
              r
            );
          })(n.Component),
          wt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              var e;
              ue(this, r);
              for (
                var n = arguments.length, o = new Array(n), a = 0;
                a < n;
                a++
              )
                o[a] = arguments[a];
              return (
                pe(
                  be((e = t.call.apply(t, [this].concat(o)))),
                  "handleClick",
                  function (t) {
                    e.props.onClick && e.props.onClick(t);
                  }
                ),
                e
              );
            }
            return (
              he(r, [
                {
                  key: "render",
                  value: function () {
                    var e = this.props,
                      t = e.weekNumber,
                      r = e.ariaLabelPrefix,
                      a = void 0 === r ? "week " : r,
                      i = {
                        "react-datepicker__week-number": !0,
                        "react-datepicker__week-number--clickable": !!e.onClick,
                      };
                    return n.createElement(
                      "div",
                      {
                        className: o(i),
                        "aria-label": ""
                          .concat(a, " ")
                          .concat(this.props.weekNumber),
                        onClick: this.handleClick,
                      },
                      t
                    );
                  },
                },
              ]),
              r
            );
          })(n.Component),
          kt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              var e;
              ue(this, r);
              for (
                var o = arguments.length, a = new Array(o), i = 0;
                i < o;
                i++
              )
                a[i] = arguments[i];
              return (
                pe(
                  be((e = t.call.apply(t, [this].concat(a)))),
                  "handleDayClick",
                  function (t, n) {
                    e.props.onDayClick && e.props.onDayClick(t, n);
                  }
                ),
                pe(be(e), "handleDayMouseEnter", function (t) {
                  e.props.onDayMouseEnter && e.props.onDayMouseEnter(t);
                }),
                pe(be(e), "handleWeekClick", function (t, n, r) {
                  "function" == typeof e.props.onWeekSelect &&
                    e.props.onWeekSelect(t, n, r),
                    e.props.shouldCloseOnSelect && e.props.setOpen(!1);
                }),
                pe(be(e), "formatWeekNumber", function (t) {
                  return e.props.formatWeekNumber
                    ? e.props.formatWeekNumber(t)
                    : Pe(t, e.props.locale);
                }),
                pe(be(e), "renderDays", function () {
                  var t = Ae(e.props.day, e.props.locale),
                    r = [],
                    o = e.formatWeekNumber(t);
                  if (e.props.showWeekNumber) {
                    var a = e.props.onWeekSelect
                      ? e.handleWeekClick.bind(be(e), t, o)
                      : void 0;
                    r.push(
                      n.createElement(wt, {
                        key: "W",
                        weekNumber: o,
                        onClick: a,
                        ariaLabelPrefix: e.props.ariaLabelPrefix,
                      })
                    );
                  }
                  return r.concat(
                    [0, 1, 2, 3, 4, 5, 6].map(function (r) {
                      var o = u(t, r);
                      return n.createElement(yt, {
                        ariaLabelPrefixWhenEnabled:
                          e.props.chooseDayAriaLabelPrefix,
                        ariaLabelPrefixWhenDisabled:
                          e.props.disabledDayAriaLabelPrefix,
                        key: o.valueOf(),
                        day: o,
                        month: e.props.month,
                        onClick: e.handleDayClick.bind(be(e), o),
                        onMouseEnter: e.handleDayMouseEnter.bind(be(e), o),
                        minDate: e.props.minDate,
                        maxDate: e.props.maxDate,
                        excludeDates: e.props.excludeDates,
                        includeDates: e.props.includeDates,
                        inline: e.props.inline,
                        highlightDates: e.props.highlightDates,
                        selectingDate: e.props.selectingDate,
                        filterDate: e.props.filterDate,
                        preSelection: e.props.preSelection,
                        selected: e.props.selected,
                        selectsStart: e.props.selectsStart,
                        selectsEnd: e.props.selectsEnd,
                        startDate: e.props.startDate,
                        endDate: e.props.endDate,
                        dayClassName: e.props.dayClassName,
                        renderDayContents: e.props.renderDayContents,
                        disabledKeyboardNavigation:
                          e.props.disabledKeyboardNavigation,
                        handleOnKeyDown: e.props.handleOnKeyDown,
                        isInputFocused: e.props.isInputFocused,
                        containerRef: e.props.containerRef,
                      });
                    })
                  );
                }),
                e
              );
            }
            return (
              he(
                r,
                [
                  {
                    key: "render",
                    value: function () {
                      return n.createElement(
                        "div",
                        { className: "react-datepicker__week" },
                        this.renderDays()
                      );
                    },
                  },
                ],
                [
                  {
                    key: "defaultProps",
                    get: function () {
                      return { shouldCloseOnSelect: !0 };
                    },
                  },
                ]
              ),
              r
            );
          })(n.Component),
          xt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              var e;
              ue(this, r);
              for (
                var a = arguments.length, i = new Array(a), s = 0;
                s < a;
                s++
              )
                i[s] = arguments[s];
              return (
                pe(
                  be((e = t.call.apply(t, [this].concat(i)))),
                  "handleDayClick",
                  function (t, n) {
                    e.props.onDayClick &&
                      e.props.onDayClick(t, n, e.props.orderInDisplay);
                  }
                ),
                pe(be(e), "handleDayMouseEnter", function (t) {
                  e.props.onDayMouseEnter && e.props.onDayMouseEnter(t);
                }),
                pe(be(e), "handleMouseLeave", function () {
                  e.props.onMouseLeave && e.props.onMouseLeave();
                }),
                pe(be(e), "isRangeStartMonth", function (t) {
                  var n = e.props,
                    r = n.day,
                    o = n.startDate,
                    a = n.endDate;
                  return !(!o || !a) && je(N(r, t), o);
                }),
                pe(be(e), "isRangeStartQuarter", function (t) {
                  var n = e.props,
                    r = n.day,
                    o = n.startDate,
                    a = n.endDate;
                  return !(!o || !a) && Fe(A(r, t), o);
                }),
                pe(be(e), "isRangeEndMonth", function (t) {
                  var n = e.props,
                    r = n.day,
                    o = n.startDate,
                    a = n.endDate;
                  return !(!o || !a) && je(N(r, t), a);
                }),
                pe(be(e), "isRangeEndQuarter", function (t) {
                  var n = e.props,
                    r = n.day,
                    o = n.startDate,
                    a = n.endDate;
                  return !(!o || !a) && Fe(A(r, t), a);
                }),
                pe(be(e), "isWeekInMonth", function (t) {
                  var n = e.props.day,
                    r = u(t, 6);
                  return je(t, n) || je(r, n);
                }),
                pe(be(e), "renderWeeks", function () {
                  for (
                    var t = [],
                      r = e.props.fixedHeight,
                      o = Ae(Ie(e.props.day), e.props.locale),
                      a = 0,
                      i = !1;
                    t.push(
                      n.createElement(kt, {
                        ariaLabelPrefix: e.props.weekAriaLabelPrefix,
                        chooseDayAriaLabelPrefix:
                          e.props.chooseDayAriaLabelPrefix,
                        disabledDayAriaLabelPrefix:
                          e.props.disabledDayAriaLabelPrefix,
                        key: a,
                        day: o,
                        month: T(e.props.day),
                        onDayClick: e.handleDayClick,
                        onDayMouseEnter: e.handleDayMouseEnter,
                        onWeekSelect: e.props.onWeekSelect,
                        formatWeekNumber: e.props.formatWeekNumber,
                        locale: e.props.locale,
                        minDate: e.props.minDate,
                        maxDate: e.props.maxDate,
                        excludeDates: e.props.excludeDates,
                        includeDates: e.props.includeDates,
                        inline: e.props.inline,
                        highlightDates: e.props.highlightDates,
                        selectingDate: e.props.selectingDate,
                        filterDate: e.props.filterDate,
                        preSelection: e.props.preSelection,
                        selected: e.props.selected,
                        selectsStart: e.props.selectsStart,
                        selectsEnd: e.props.selectsEnd,
                        showWeekNumber: e.props.showWeekNumbers,
                        startDate: e.props.startDate,
                        endDate: e.props.endDate,
                        dayClassName: e.props.dayClassName,
                        setOpen: e.props.setOpen,
                        shouldCloseOnSelect: e.props.shouldCloseOnSelect,
                        disabledKeyboardNavigation:
                          e.props.disabledKeyboardNavigation,
                        renderDayContents: e.props.renderDayContents,
                        handleOnKeyDown: e.props.handleOnKeyDown,
                        isInputFocused: e.props.isInputFocused,
                        containerRef: e.props.containerRef,
                      })
                    ),
                      !i;

                  ) {
                    a++, (o = d(o, 1));
                    var s = r && a >= 6,
                      l = !r && !e.isWeekInMonth(o);
                    if (s || l) {
                      if (!e.props.peekNextMonth) break;
                      i = !0;
                    }
                  }
                  return t;
                }),
                pe(be(e), "onMonthClick", function (t, n) {
                  e.handleDayClick(Ie(N(e.props.day, n)), t);
                }),
                pe(be(e), "onQuarterClick", function (t, n) {
                  e.handleDayClick(Re(A(e.props.day, n)), t);
                }),
                pe(be(e), "getMonthClassNames", function (t) {
                  var n = e.props,
                    r = n.day,
                    a = n.startDate,
                    i = n.endDate,
                    s = n.selected,
                    l = n.minDate,
                    c = n.maxDate;
                  return o(
                    "react-datepicker__month-text",
                    "react-datepicker__month-".concat(t),
                    {
                      "react-datepicker__month--disabled":
                        (l || c) && Qe(N(r, t), e.props),
                      "react-datepicker__month--selected":
                        T(r) === t && D(r) === D(s),
                      "react-datepicker__month--in-range": Xe(a, i, t, r),
                      "react-datepicker__month--range-start": e.isRangeStartMonth(
                        t
                      ),
                      "react-datepicker__month--range-end": e.isRangeEndMonth(
                        t
                      ),
                    }
                  );
                }),
                pe(be(e), "getQuarterClassNames", function (t) {
                  var n = e.props,
                    r = n.day,
                    a = n.startDate,
                    i = n.endDate,
                    s = n.selected,
                    l = n.minDate,
                    c = n.maxDate;
                  return o(
                    "react-datepicker__quarter-text",
                    "react-datepicker__quarter-".concat(t),
                    {
                      "react-datepicker__quarter--disabled":
                        (l || c) && $e(A(r, t), e.props),
                      "react-datepicker__quarter--selected":
                        S(r) === t && D(r) === D(s),
                      "react-datepicker__quarter--in-range": Ze(a, i, t, r),
                      "react-datepicker__quarter--range-start": e.isRangeStartQuarter(
                        t
                      ),
                      "react-datepicker__quarter--range-end": e.isRangeEndQuarter(
                        t
                      ),
                    }
                  );
                }),
                pe(be(e), "renderMonths", function () {
                  var t = e.props,
                    r = t.showFullMonthYearPicker,
                    o = t.locale;
                  return [
                    [0, 1, 2],
                    [3, 4, 5],
                    [6, 7, 8],
                    [9, 10, 11],
                  ].map(function (t, a) {
                    return n.createElement(
                      "div",
                      { className: "react-datepicker__month-wrapper", key: a },
                      t.map(function (t, a) {
                        return n.createElement(
                          "div",
                          {
                            key: a,
                            onClick: function (n) {
                              e.onMonthClick(n, t);
                            },
                            className: e.getMonthClassNames(t),
                          },
                          r ? We(t, o) : qe(t, o)
                        );
                      })
                    );
                  });
                }),
                pe(be(e), "renderQuarters", function () {
                  return n.createElement(
                    "div",
                    { className: "react-datepicker__quarter-wrapper" },
                    [1, 2, 3, 4].map(function (t, r) {
                      return n.createElement(
                        "div",
                        {
                          key: r,
                          onClick: function (n) {
                            e.onQuarterClick(n, t);
                          },
                          className: e.getQuarterClassNames(t),
                        },
                        Ge(t, e.props.locale)
                      );
                    })
                  );
                }),
                pe(be(e), "getClassNames", function () {
                  var t = e.props,
                    n = t.selectingDate,
                    r = t.selectsStart,
                    a = t.selectsEnd,
                    i = t.showMonthYearPicker,
                    s = t.showQuarterYearPicker;
                  return o(
                    "react-datepicker__month",
                    {
                      "react-datepicker__month--selecting-range": n && (r || a),
                    },
                    { "react-datepicker__monthPicker": i },
                    { "react-datepicker__quarterPicker": s }
                  );
                }),
                e
              );
            }
            return (
              he(r, [
                {
                  key: "render",
                  value: function () {
                    var e = this.props,
                      t = e.showMonthYearPicker,
                      r = e.showQuarterYearPicker,
                      o = e.day,
                      a = e.ariaLabelPrefix,
                      i = void 0 === a ? "month " : a;
                    return n.createElement(
                      "div",
                      {
                        className: this.getClassNames(),
                        onMouseLeave: this.handleMouseLeave,
                        "aria-label": ""
                          .concat(i, " ")
                          .concat(Le(o, "yyyy-MM")),
                      },
                      t
                        ? this.renderMonths()
                        : r
                        ? this.renderQuarters()
                        : this.renderWeeks()
                    );
                  },
                },
              ]),
              r
            );
          })(n.Component),
          Mt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              var e;
              ue(this, r);
              for (
                var o = arguments.length, a = new Array(o), i = 0;
                i < o;
                i++
              )
                a[i] = arguments[i];
              return (
                pe(be((e = t.call.apply(t, [this].concat(a)))), "state", {
                  height: null,
                }),
                pe(be(e), "handleClick", function (t) {
                  ((e.props.minTime || e.props.maxTime) && nt(t, e.props)) ||
                    (e.props.excludeTimes && tt(t, e.props.excludeTimes)) ||
                    (e.props.includeTimes && !tt(t, e.props.includeTimes)) ||
                    e.props.onChange(t);
                }),
                pe(be(e), "liClasses", function (t, n, r) {
                  var o = [
                    "react-datepicker__time-list-item",
                    e.props.timeClassName
                      ? e.props.timeClassName(t, n, r)
                      : void 0,
                  ];
                  return (
                    e.props.selected &&
                      n === k(t) &&
                      r === w(t) &&
                      o.push("react-datepicker__time-list-item--selected"),
                    (((e.props.minTime || e.props.maxTime) && nt(t, e.props)) ||
                      (e.props.excludeTimes && tt(t, e.props.excludeTimes)) ||
                      (e.props.includeTimes && !tt(t, e.props.includeTimes))) &&
                      o.push("react-datepicker__time-list-item--disabled"),
                    e.props.injectTimes &&
                      (60 * k(t) + w(t)) % e.props.intervals != 0 &&
                      o.push("react-datepicker__time-list-item--injected"),
                    o.join(" ")
                  );
                }),
                pe(be(e), "renderTimes", function () {
                  for (
                    var t = [],
                      r = e.props.format ? e.props.format : "p",
                      o = e.props.intervals,
                      a = e.props.selected || e.props.openToDate || Te(),
                      i = k(a),
                      s = w(a),
                      c = Ne(Te()),
                      u = 1440 / o,
                      d =
                        e.props.injectTimes &&
                        e.props.injectTimes.sort(function (e, t) {
                          return e - t;
                        }),
                      h = 0;
                    h < u;
                    h++
                  ) {
                    var p = l(c, h * o);
                    if ((t.push(p), d)) {
                      var f = ut(c, p, h, o, d);
                      t = t.concat(f);
                    }
                  }
                  return t.map(function (t, o) {
                    return n.createElement(
                      "li",
                      {
                        key: o,
                        onClick: e.handleClick.bind(be(e), t),
                        className: e.liClasses(t, i, s),
                        ref: function (n) {
                          i === k(t) && s >= w(t) && (e.centerLi = n);
                        },
                      },
                      Le(t, r, e.props.locale)
                    );
                  });
                }),
                e
              );
            }
            return (
              he(
                r,
                [
                  {
                    key: "componentDidMount",
                    value: function () {
                      (this.list.scrollTop = r.calcCenterPosition(
                        this.props.monthRef
                          ? this.props.monthRef.clientHeight -
                              this.header.clientHeight
                          : this.list.clientHeight,
                        this.centerLi
                      )),
                        this.props.monthRef &&
                          this.header &&
                          this.setState({
                            height:
                              this.props.monthRef.clientHeight -
                              this.header.clientHeight,
                          });
                    },
                  },
                  {
                    key: "render",
                    value: function () {
                      var e = this,
                        t = this.state.height;
                      return n.createElement(
                        "div",
                        {
                          className: "react-datepicker__time-container ".concat(
                            this.props.todayButton
                              ? "react-datepicker__time-container--with-today-button"
                              : ""
                          ),
                        },
                        n.createElement(
                          "div",
                          {
                            className:
                              "react-datepicker__header react-datepicker__header--time",
                            ref: function (t) {
                              e.header = t;
                            },
                          },
                          n.createElement(
                            "div",
                            { className: "react-datepicker-time__header" },
                            this.props.timeCaption
                          )
                        ),
                        n.createElement(
                          "div",
                          { className: "react-datepicker__time" },
                          n.createElement(
                            "div",
                            { className: "react-datepicker__time-box" },
                            n.createElement(
                              "ul",
                              {
                                className: "react-datepicker__time-list",
                                ref: function (t) {
                                  e.list = t;
                                },
                                style: t ? { height: t } : {},
                              },
                              this.renderTimes()
                            )
                          )
                        )
                      );
                    },
                  },
                ],
                [
                  {
                    key: "defaultProps",
                    get: function () {
                      return {
                        intervals: 30,
                        onTimeChange: function () {},
                        todayButton: null,
                        timeCaption: "Time",
                      };
                    },
                  },
                ]
              ),
              r
            );
          })(n.Component);
        pe(Mt, "calcCenterPosition", function (e, t) {
          return t.offsetTop - (e / 2 - t.clientHeight / 2);
        });
        var Et = (function (e) {
            _e(r, e);
            var t = we(r);
            function r(e) {
              var n;
              return (
                ue(this, r),
                pe(
                  be((n = t.call(this, e))),
                  "handleYearClick",
                  function (e, t) {
                    n.props.onDayClick && n.props.onDayClick(e, t);
                  }
                ),
                pe(be(n), "onYearClick", function (e, t) {
                  var r;
                  n.handleYearClick(((r = I(n.props.date, t)), q(r)), e);
                }),
                n
              );
            }
            return (
              he(r, [
                {
                  key: "render",
                  value: function () {
                    for (
                      var e = this,
                        t = [],
                        r = this.props.date,
                        o = function (r, o) {
                          t.push(
                            n.createElement(
                              "div",
                              {
                                onClick: function (t) {
                                  e.onYearClick(t, r);
                                },
                                className:
                                  "react-datepicker__year-container-text",
                                key: r,
                              },
                              r
                            )
                          );
                        },
                        a = D(r) - 11,
                        i = 0;
                      a <= D(r);
                      a++, i++
                    )
                      o(a);
                    return n.createElement(
                      "div",
                      { className: "react-datepicker__year-container" },
                      t
                    );
                  },
                },
              ]),
              r
            );
          })(n.Component),
          Tt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r(e) {
              var o;
              return (
                ue(this, r),
                pe(be((o = t.call(this, e))), "onTimeChange", function (e) {
                  o.setState({ time: e });
                  var t = new Date();
                  t.setHours(e.split(":")[0]),
                    t.setMinutes(e.split(":")[1]),
                    o.props.onChange(t);
                }),
                pe(be(o), "renderTimeInput", function () {
                  var e = o.state.time,
                    t = o.props,
                    r = t.timeString,
                    a = t.customTimeInput;
                  return a
                    ? n.cloneElement(a, { value: e, onChange: o.onTimeChange })
                    : n.createElement("input", {
                        type: "time",
                        className: "react-datepicker-time__input",
                        placeholder: "Time",
                        name: "time-input",
                        required: !0,
                        value: e,
                        onChange: function (e) {
                          o.onTimeChange(e.target.value || r);
                        },
                      });
                }),
                (o.state = { time: o.props.timeString }),
                o
              );
            }
            return (
              he(r, [
                {
                  key: "render",
                  value: function () {
                    return n.createElement(
                      "div",
                      { className: "react-datepicker__input-time-container" },
                      n.createElement(
                        "div",
                        { className: "react-datepicker-time__caption" },
                        this.props.timeInputLabel
                      ),
                      n.createElement(
                        "div",
                        { className: "react-datepicker-time__input-container" },
                        n.createElement(
                          "div",
                          { className: "react-datepicker-time__input" },
                          this.renderTimeInput()
                        )
                      )
                    );
                  },
                },
              ]),
              r
            );
          })(n.Component);
        function St(e) {
          var t = e.className,
            r = e.children,
            o = e.showPopperArrow,
            a = e.arrowProps,
            i = void 0 === a ? {} : a;
          return n.createElement(
            "div",
            { className: t },
            o &&
              n.createElement(
                "div",
                fe({ className: "react-datepicker__triangle" }, i)
              ),
            r
          );
        }
        var Dt = [
            "react-datepicker__year-select",
            "react-datepicker__month-select",
            "react-datepicker__month-year-select",
          ],
          Lt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r(e) {
              var a;
              return (
                ue(this, r),
                pe(
                  be((a = t.call(this, e))),
                  "handleClickOutside",
                  function (e) {
                    a.props.onClickOutside(e);
                  }
                ),
                pe(be(a), "setClickOutsideRef", function () {
                  return a.containerRef.current;
                }),
                pe(be(a), "handleDropdownFocus", function (e) {
                  (function () {
                    var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : {},
                      t = (e.className || "").split(/\s+/);
                    return Dt.some(function (e) {
                      return t.indexOf(e) >= 0;
                    });
                  })(e.target) && a.props.onDropdownFocus();
                }),
                pe(be(a), "getDateInView", function () {
                  var e = a.props,
                    t = e.preSelection,
                    n = e.selected,
                    r = e.openToDate,
                    o = st(a.props),
                    i = lt(a.props),
                    s = Te();
                  return (
                    r || n || t || (o && ne(s, o) ? o : i && te(s, i) ? i : s)
                  );
                }),
                pe(be(a), "increaseMonth", function () {
                  a.setState(
                    function (e) {
                      var t = e.date;
                      return { date: h(t, 1) };
                    },
                    function () {
                      return a.handleMonthChange(a.state.date);
                    }
                  );
                }),
                pe(be(a), "decreaseMonth", function () {
                  a.setState(
                    function (e) {
                      var t = e.date;
                      return { date: v(t, 1) };
                    },
                    function () {
                      return a.handleMonthChange(a.state.date);
                    }
                  );
                }),
                pe(be(a), "handleDayClick", function (e, t, n) {
                  return a.props.onSelect(e, t, n);
                }),
                pe(be(a), "handleDayMouseEnter", function (e) {
                  a.setState({ selectingDate: e }),
                    a.props.onDayMouseEnter && a.props.onDayMouseEnter(e);
                }),
                pe(be(a), "handleMonthMouseLeave", function () {
                  a.setState({ selectingDate: null }),
                    a.props.onMonthMouseLeave && a.props.onMonthMouseLeave();
                }),
                pe(be(a), "handleYearChange", function (e) {
                  a.props.onYearChange && a.props.onYearChange(e);
                }),
                pe(be(a), "handleMonthChange", function (e) {
                  a.props.onMonthChange && a.props.onMonthChange(e),
                    a.props.adjustDateOnChange &&
                      (a.props.onSelect && a.props.onSelect(e),
                      a.props.setOpen && a.props.setOpen(!0)),
                    a.props.setPreSelection && a.props.setPreSelection(e);
                }),
                pe(be(a), "handleMonthYearChange", function (e) {
                  a.handleYearChange(e), a.handleMonthChange(e);
                }),
                pe(be(a), "changeYear", function (e) {
                  a.setState(
                    function (t) {
                      var n = t.date;
                      return { date: I(n, e) };
                    },
                    function () {
                      return a.handleYearChange(a.state.date);
                    }
                  );
                }),
                pe(be(a), "changeMonth", function (e) {
                  a.setState(
                    function (t) {
                      var n = t.date;
                      return { date: N(n, e) };
                    },
                    function () {
                      return a.handleMonthChange(a.state.date);
                    }
                  );
                }),
                pe(be(a), "changeMonthYear", function (e) {
                  a.setState(
                    function (t) {
                      var n = t.date;
                      return { date: I(N(n, T(e)), D(e)) };
                    },
                    function () {
                      return a.handleMonthYearChange(a.state.date);
                    }
                  );
                }),
                pe(be(a), "header", function () {
                  var e =
                      arguments.length > 0 && void 0 !== arguments[0]
                        ? arguments[0]
                        : a.state.date,
                    t = Ae(e, a.props.locale),
                    r = [];
                  return (
                    a.props.showWeekNumbers &&
                      r.push(
                        n.createElement(
                          "div",
                          { key: "W", className: "react-datepicker__day-name" },
                          a.props.weekLabel || "#"
                        )
                      ),
                    r.concat(
                      [0, 1, 2, 3, 4, 5, 6].map(function (e) {
                        var r = u(t, e),
                          i = a.formatWeekday(r, a.props.locale),
                          s = a.props.weekDayClassName
                            ? a.props.weekDayClassName(r)
                            : void 0;
                        return n.createElement(
                          "div",
                          {
                            key: e,
                            className: o("react-datepicker__day-name", s),
                          },
                          i
                        );
                      })
                    )
                  );
                }),
                pe(be(a), "formatWeekday", function (e, t) {
                  return a.props.formatWeekDay
                    ? (function (e, t, n) {
                        return t(Le(e, "EEEE", n));
                      })(e, a.props.formatWeekDay, t)
                    : a.props.useWeekdaysShort
                    ? (function (e, t) {
                        return Le(e, "EEE", t);
                      })(e, t)
                    : (function (e, t) {
                        return Le(e, "EEEEEE", t);
                      })(e, t);
                }),
                pe(be(a), "decreaseYear", function () {
                  a.setState(
                    function (e) {
                      var t = e.date;
                      return { date: b(t, a.props.showYearPicker ? 11 : 1) };
                    },
                    function () {
                      return a.handleYearChange(a.state.date);
                    }
                  );
                }),
                pe(be(a), "renderPreviousButton", function () {
                  if (!a.props.renderCustomHeader) {
                    var e = a.props.showMonthYearPicker
                      ? at(a.state.date, a.props)
                      : rt(a.state.date, a.props);
                    if (
                      (a.props.forceShowMonthNavigation ||
                        a.props.showDisabledMonthNavigation ||
                        !e) &&
                      !a.props.showTimeSelectOnly
                    ) {
                      var t = [
                          "react-datepicker__navigation",
                          "react-datepicker__navigation--previous",
                        ],
                        r = a.decreaseMonth;
                      (a.props.showMonthYearPicker ||
                        a.props.showQuarterYearPicker ||
                        a.props.showYearPicker) &&
                        (r = a.decreaseYear),
                        e &&
                          a.props.showDisabledMonthNavigation &&
                          (t.push(
                            "react-datepicker__navigation--previous--disabled"
                          ),
                          (r = null));
                      var o =
                          a.props.showMonthYearPicker ||
                          a.props.showQuarterYearPicker,
                        i = a.props,
                        s = i.previousMonthAriaLabel,
                        l = void 0 === s ? "Previous Month" : s,
                        c = i.previousYearAriaLabel,
                        u = void 0 === c ? "Previous Year" : c;
                      return n.createElement(
                        "button",
                        {
                          type: "button",
                          className: t.join(" "),
                          onClick: r,
                          "aria-label": o ? u : l,
                        },
                        o
                          ? a.props.previousYearButtonLabel
                          : a.props.previousMonthButtonLabel
                      );
                    }
                  }
                }),
                pe(be(a), "increaseYear", function () {
                  a.setState(
                    function (e) {
                      var t = e.date;
                      return { date: p(t, a.props.showYearPicker ? 11 : 1) };
                    },
                    function () {
                      return a.handleYearChange(a.state.date);
                    }
                  );
                }),
                pe(be(a), "renderNextButton", function () {
                  if (!a.props.renderCustomHeader) {
                    var e = a.props.showMonthYearPicker
                      ? it(a.state.date, a.props)
                      : ot(a.state.date, a.props);
                    if (
                      (a.props.forceShowMonthNavigation ||
                        a.props.showDisabledMonthNavigation ||
                        !e) &&
                      !a.props.showTimeSelectOnly
                    ) {
                      var t = [
                        "react-datepicker__navigation",
                        "react-datepicker__navigation--next",
                      ];
                      a.props.showTimeSelect &&
                        t.push("react-datepicker__navigation--next--with-time"),
                        a.props.todayButton &&
                          t.push(
                            "react-datepicker__navigation--next--with-today-button"
                          );
                      var r = a.increaseMonth;
                      (a.props.showMonthYearPicker ||
                        a.props.showQuarterYearPicker ||
                        a.props.showYearPicker) &&
                        (r = a.increaseYear),
                        e &&
                          a.props.showDisabledMonthNavigation &&
                          (t.push(
                            "react-datepicker__navigation--next--disabled"
                          ),
                          (r = null));
                      var o =
                          a.props.showMonthYearPicker ||
                          a.props.showQuarterYearPicker,
                        i = a.props,
                        s = i.nextMonthAriaLabel,
                        l = void 0 === s ? "Next Month" : s,
                        c = i.nextYearAriaLabel,
                        u = void 0 === c ? "Next Year" : c;
                      return n.createElement(
                        "button",
                        {
                          type: "button",
                          className: t.join(" "),
                          onClick: r,
                          "aria-label": o ? u : l,
                        },
                        o
                          ? a.props.nextYearButtonLabel
                          : a.props.nextMonthButtonLabel
                      );
                    }
                  }
                }),
                pe(be(a), "renderCurrentMonth", function () {
                  var e =
                      arguments.length > 0 && void 0 !== arguments[0]
                        ? arguments[0]
                        : a.state.date,
                    t = ["react-datepicker__current-month"];
                  return (
                    a.props.showYearDropdown &&
                      t.push(
                        "react-datepicker__current-month--hasYearDropdown"
                      ),
                    a.props.showMonthDropdown &&
                      t.push(
                        "react-datepicker__current-month--hasMonthDropdown"
                      ),
                    a.props.showMonthYearDropdown &&
                      t.push(
                        "react-datepicker__current-month--hasMonthYearDropdown"
                      ),
                    n.createElement(
                      "div",
                      { className: t.join(" ") },
                      Le(e, a.props.dateFormat, a.props.locale)
                    )
                  );
                }),
                pe(be(a), "renderYearDropdown", function () {
                  var e =
                    arguments.length > 0 &&
                    void 0 !== arguments[0] &&
                    arguments[0];
                  if (a.props.showYearDropdown && !e)
                    return n.createElement(ft, {
                      adjustDateOnChange: a.props.adjustDateOnChange,
                      date: a.state.date,
                      onSelect: a.props.onSelect,
                      setOpen: a.props.setOpen,
                      dropdownMode: a.props.dropdownMode,
                      onChange: a.changeYear,
                      minDate: a.props.minDate,
                      maxDate: a.props.maxDate,
                      year: D(a.state.date),
                      scrollableYearDropdown: a.props.scrollableYearDropdown,
                      yearDropdownItemNumber: a.props.yearDropdownItemNumber,
                    });
                }),
                pe(be(a), "renderMonthDropdown", function () {
                  var e =
                    arguments.length > 0 &&
                    void 0 !== arguments[0] &&
                    arguments[0];
                  if (a.props.showMonthDropdown && !e)
                    return n.createElement(gt, {
                      dropdownMode: a.props.dropdownMode,
                      locale: a.props.locale,
                      onChange: a.changeMonth,
                      month: T(a.state.date),
                      useShortMonthInDropdown: a.props.useShortMonthInDropdown,
                    });
                }),
                pe(be(a), "renderMonthYearDropdown", function () {
                  var e =
                    arguments.length > 0 &&
                    void 0 !== arguments[0] &&
                    arguments[0];
                  if (a.props.showMonthYearDropdown && !e)
                    return n.createElement(bt, {
                      dropdownMode: a.props.dropdownMode,
                      locale: a.props.locale,
                      dateFormat: a.props.dateFormat,
                      onChange: a.changeMonthYear,
                      minDate: a.props.minDate,
                      maxDate: a.props.maxDate,
                      date: a.state.date,
                      scrollableMonthYearDropdown:
                        a.props.scrollableMonthYearDropdown,
                    });
                }),
                pe(be(a), "renderTodayButton", function () {
                  if (a.props.todayButton && !a.props.showTimeSelectOnly)
                    return n.createElement(
                      "div",
                      {
                        className: "react-datepicker__today-button",
                        onClick: function (e) {
                          return a.props.onSelect(B(Te()), e);
                        },
                      },
                      a.props.todayButton
                    );
                }),
                pe(be(a), "renderDefaultHeader", function (e) {
                  var t = e.monthDate,
                    r = e.i;
                  return n.createElement(
                    "div",
                    { className: "react-datepicker__header" },
                    a.renderCurrentMonth(t),
                    n.createElement(
                      "div",
                      {
                        className: "react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(
                          a.props.dropdownMode
                        ),
                        onFocus: a.handleDropdownFocus,
                      },
                      a.renderMonthDropdown(0 !== r),
                      a.renderMonthYearDropdown(0 !== r),
                      a.renderYearDropdown(0 !== r)
                    ),
                    n.createElement(
                      "div",
                      { className: "react-datepicker__day-names" },
                      a.header(t)
                    )
                  );
                }),
                pe(be(a), "renderCustomHeader", function () {
                  var e =
                      arguments.length > 0 && void 0 !== arguments[0]
                        ? arguments[0]
                        : {},
                    t = e.monthDate,
                    r = e.i;
                  if (0 !== r && void 0 !== r) return null;
                  var o = rt(a.state.date, a.props),
                    i = ot(a.state.date, a.props),
                    s = at(a.state.date, a.props),
                    l = it(a.state.date, a.props),
                    c =
                      !a.props.showMonthYearPicker &&
                      !a.props.showQuarterYearPicker &&
                      !a.props.showYearPicker;
                  return n.createElement(
                    "div",
                    {
                      className:
                        "react-datepicker__header react-datepicker__header--custom",
                      onFocus: a.props.onDropdownFocus,
                    },
                    a.props.renderCustomHeader(
                      ge(
                        ge({}, a.state),
                        {},
                        {
                          changeMonth: a.changeMonth,
                          changeYear: a.changeYear,
                          decreaseMonth: a.decreaseMonth,
                          increaseMonth: a.increaseMonth,
                          decreaseYear: a.decreaseYear,
                          increaseYear: a.increaseYear,
                          prevMonthButtonDisabled: o,
                          nextMonthButtonDisabled: i,
                          prevYearButtonDisabled: s,
                          nextYearButtonDisabled: l,
                        }
                      )
                    ),
                    c &&
                      n.createElement(
                        "div",
                        { className: "react-datepicker__day-names" },
                        a.header(t)
                      )
                  );
                }),
                pe(be(a), "renderYearHeader", function () {
                  return n.createElement(
                    "div",
                    {
                      className:
                        "react-datepicker__header react-datepicker-year-header",
                    },
                    a.props.showYearPicker
                      ? ""
                          .concat(D(a.state.date) - 11, " - ")
                          .concat(D(a.state.date))
                      : D(a.state.date)
                  );
                }),
                pe(be(a), "renderHeader", function (e) {
                  switch (!0) {
                    case void 0 !== a.props.renderCustomHeader:
                      return a.renderCustomHeader(e);
                    case a.props.showMonthYearPicker ||
                      a.props.showQuarterYearPicker ||
                      a.props.showYearPicker:
                      return a.renderYearHeader(e);
                    default:
                      return a.renderDefaultHeader(e);
                  }
                }),
                pe(be(a), "renderMonths", function () {
                  if (!a.props.showTimeSelectOnly && !a.props.showYearPicker) {
                    for (
                      var e = [],
                        t = a.props.showPreviousMonths
                          ? a.props.monthsShown - 1
                          : 0,
                        r = v(a.state.date, t),
                        o = 0;
                      o < a.props.monthsShown;
                      ++o
                    ) {
                      var i = o - a.props.monthSelectedIn,
                        s = h(r, i),
                        l = "month-".concat(o);
                      e.push(
                        n.createElement(
                          "div",
                          {
                            key: l,
                            ref: function (e) {
                              a.monthContainer = e;
                            },
                            className: "react-datepicker__month-container",
                          },
                          a.renderHeader({ monthDate: s, i: o }),
                          n.createElement(xt, {
                            chooseDayAriaLabelPrefix:
                              a.props.chooseDayAriaLabelPrefix,
                            disabledDayAriaLabelPrefix:
                              a.props.disabledDayAriaLabelPrefix,
                            weekAriaLabelPrefix: a.props.weekAriaLabelPrefix,
                            onChange: a.changeMonthYear,
                            day: s,
                            dayClassName: a.props.dayClassName,
                            monthClassName: a.props.monthClassName,
                            onDayClick: a.handleDayClick,
                            handleOnKeyDown: a.props.handleOnKeyDown,
                            onDayMouseEnter: a.handleDayMouseEnter,
                            onMouseLeave: a.handleMonthMouseLeave,
                            onWeekSelect: a.props.onWeekSelect,
                            orderInDisplay: o,
                            formatWeekNumber: a.props.formatWeekNumber,
                            locale: a.props.locale,
                            minDate: a.props.minDate,
                            maxDate: a.props.maxDate,
                            excludeDates: a.props.excludeDates,
                            highlightDates: a.props.highlightDates,
                            selectingDate: a.state.selectingDate,
                            includeDates: a.props.includeDates,
                            inline: a.props.inline,
                            fixedHeight: a.props.fixedHeight,
                            filterDate: a.props.filterDate,
                            preSelection: a.props.preSelection,
                            selected: a.props.selected,
                            selectsStart: a.props.selectsStart,
                            selectsEnd: a.props.selectsEnd,
                            showWeekNumbers: a.props.showWeekNumbers,
                            startDate: a.props.startDate,
                            endDate: a.props.endDate,
                            peekNextMonth: a.props.peekNextMonth,
                            setOpen: a.props.setOpen,
                            shouldCloseOnSelect: a.props.shouldCloseOnSelect,
                            renderDayContents: a.props.renderDayContents,
                            disabledKeyboardNavigation:
                              a.props.disabledKeyboardNavigation,
                            showMonthYearPicker: a.props.showMonthYearPicker,
                            showFullMonthYearPicker:
                              a.props.showFullMonthYearPicker,
                            showYearPicker: a.props.showYearPicker,
                            showQuarterYearPicker:
                              a.props.showQuarterYearPicker,
                            isInputFocused: a.props.isInputFocused,
                            containerRef: a.containerRef,
                          })
                        )
                      );
                    }
                    return e;
                  }
                }),
                pe(be(a), "renderYears", function () {
                  if (!a.props.showTimeSelectOnly)
                    return a.props.showYearPicker
                      ? n.createElement(
                          "div",
                          { className: "react-datepicker__year" },
                          a.renderHeader(),
                          n.createElement(Et, {
                            onDayClick: a.handleDayClick,
                            date: a.state.date,
                          })
                        )
                      : void 0;
                }),
                pe(be(a), "renderTimeSection", function () {
                  if (
                    a.props.showTimeSelect &&
                    (a.state.monthContainer || a.props.showTimeSelectOnly)
                  )
                    return n.createElement(Mt, {
                      selected: a.props.selected,
                      openToDate: a.props.openToDate,
                      onChange: a.props.onTimeChange,
                      timeClassName: a.props.timeClassName,
                      format: a.props.timeFormat,
                      includeTimes: a.props.includeTimes,
                      intervals: a.props.timeIntervals,
                      minTime: a.props.minTime,
                      maxTime: a.props.maxTime,
                      excludeTimes: a.props.excludeTimes,
                      timeCaption: a.props.timeCaption,
                      todayButton: a.props.todayButton,
                      showMonthDropdown: a.props.showMonthDropdown,
                      showMonthYearDropdown: a.props.showMonthYearDropdown,
                      showYearDropdown: a.props.showYearDropdown,
                      withPortal: a.props.withPortal,
                      monthRef: a.state.monthContainer,
                      injectTimes: a.props.injectTimes,
                      locale: a.props.locale,
                    });
                }),
                pe(be(a), "renderInputTimeSection", function () {
                  var e = new Date(a.props.selected),
                    t = ""
                      .concat(dt(e.getHours()), ":")
                      .concat(dt(e.getMinutes()));
                  if (a.props.showTimeInput)
                    return n.createElement(Tt, {
                      timeString: t,
                      timeInputLabel: a.props.timeInputLabel,
                      onChange: a.props.onTimeChange,
                      customTimeInput: a.props.customTimeInput,
                    });
                }),
                (a.containerRef = n.createRef()),
                (a.state = {
                  date: a.getDateInView(),
                  selectingDate: null,
                  monthContainer: null,
                }),
                a
              );
            }
            return (
              he(r, null, [
                {
                  key: "defaultProps",
                  get: function () {
                    return {
                      onDropdownFocus: function () {},
                      monthsShown: 1,
                      monthSelectedIn: 0,
                      forceShowMonthNavigation: !1,
                      timeCaption: "Time",
                      previousYearButtonLabel: "Previous Year",
                      nextYearButtonLabel: "Next Year",
                      previousMonthButtonLabel: "Previous Month",
                      nextMonthButtonLabel: "Next Month",
                      customTimeInput: null,
                    };
                  },
                },
              ]),
              he(r, [
                {
                  key: "componentDidMount",
                  value: function () {
                    this.props.showTimeSelect &&
                      (this.assignMonthContainer = void this.setState({
                        monthContainer: this.monthContainer,
                      }));
                  },
                },
                {
                  key: "componentDidUpdate",
                  value: function (e) {
                    this.props.preSelection &&
                    !He(this.props.preSelection, e.preSelection)
                      ? this.setState({ date: this.props.preSelection })
                      : this.props.openToDate &&
                        !He(this.props.openToDate, e.openToDate) &&
                        this.setState({ date: this.props.openToDate });
                  },
                },
                {
                  key: "render",
                  value: function () {
                    var e = this.props.container || St;
                    return n.createElement(
                      "div",
                      { ref: this.containerRef },
                      n.createElement(
                        e,
                        {
                          className: o(
                            "react-datepicker",
                            this.props.className,
                            {
                              "react-datepicker--time-only": this.props
                                .showTimeSelectOnly,
                            }
                          ),
                          showPopperArrow: this.props.showPopperArrow,
                        },
                        this.renderPreviousButton(),
                        this.renderNextButton(),
                        this.renderMonths(),
                        this.renderYears(),
                        this.renderTodayButton(),
                        this.renderTimeSection(),
                        this.renderInputTimeSection(),
                        this.props.children
                      )
                    );
                  },
                },
              ]),
              r
            );
          })(n.Component),
          Ct = function (e) {
            return !e.disabled && -1 !== e.tabIndex;
          },
          Pt = (function (e) {
            _e(r, e);
            var t = we(r);
            function r(e) {
              var o;
              return (
                ue(this, r),
                pe(be((o = t.call(this, e))), "getTabChildren", function () {
                  return Array.prototype.slice
                    .call(
                      o.tabLoopRef.current.querySelectorAll(
                        "[tabindex], a, button, input, select, textarea"
                      ),
                      1,
                      -1
                    )
                    .filter(Ct);
                }),
                pe(be(o), "handleFocusStart", function (e) {
                  var t = o.getTabChildren();
                  t && t.length > 1 && t[t.length - 1].focus();
                }),
                pe(be(o), "handleFocusEnd", function (e) {
                  var t = o.getTabChildren();
                  t && t.length > 1 && t[0].focus();
                }),
                (o.tabLoopRef = n.createRef()),
                o
              );
            }
            return (
              he(r, null, [
                {
                  key: "defaultProps",
                  get: function () {
                    return { enableTabLoop: !0 };
                  },
                },
              ]),
              he(r, [
                {
                  key: "render",
                  value: function () {
                    return this.props.enableTabLoop
                      ? n.createElement(
                          "div",
                          {
                            className: "react-datepicker__tab-loop",
                            ref: this.tabLoopRef,
                          },
                          n.createElement("div", {
                            className: "react-datepicker__tab-loop__start",
                            tabIndex: "0",
                            onFocus: this.handleFocusStart,
                          }),
                          this.props.children,
                          n.createElement("div", {
                            className: "react-datepicker__tab-loop__end",
                            tabIndex: "0",
                            onFocus: this.handleFocusEnd,
                          })
                        )
                      : this.props.children;
                  },
                },
              ]),
              r
            );
          })(n.Component),
          Ot = (function (e) {
            _e(r, e);
            var t = we(r);
            function r() {
              return ue(this, r), t.apply(this, arguments);
            }
            return (
              he(
                r,
                [
                  {
                    key: "render",
                    value: function () {
                      var e,
                        t = this.props,
                        r = t.className,
                        a = t.wrapperClassName,
                        i = t.hidePopper,
                        s = t.popperComponent,
                        l = t.popperModifiers,
                        c = t.popperPlacement,
                        u = t.popperProps,
                        d = t.targetComponent,
                        h = t.enableTabLoop,
                        p = t.popperOnKeyDown;
                      if (!i) {
                        var f = o("react-datepicker-popper", r);
                        e = n.createElement(
                          le.Popper,
                          fe({ modifiers: l, placement: c }, u),
                          function (e) {
                            var t = e.ref,
                              r = e.style,
                              o = e.placement,
                              a = e.arrowProps;
                            return n.createElement(
                              Pt,
                              { enableTabLoop: h },
                              n.createElement(
                                "div",
                                fe(
                                  { ref: t, style: r },
                                  {
                                    className: f,
                                    "data-placement": o,
                                    onKeyDown: p,
                                  }
                                ),
                                n.cloneElement(s, { arrowProps: a })
                              )
                            );
                          }
                        );
                      }
                      this.props.popperContainer &&
                        (e = n.createElement(
                          this.props.popperContainer,
                          {},
                          e
                        ));
                      var m = o("react-datepicker-wrapper", a);
                      return n.createElement(
                        le.Manager,
                        { className: "react-datepicker-manager" },
                        n.createElement(le.Reference, null, function (e) {
                          var t = e.ref;
                          return n.createElement(
                            "div",
                            { ref: t, className: m },
                            d
                          );
                        }),
                        e
                      );
                    },
                  },
                ],
                [
                  {
                    key: "defaultProps",
                    get: function () {
                      return {
                        hidePopper: !0,
                        popperModifiers: {
                          preventOverflow: {
                            enabled: !0,
                            escapeWithReference: !0,
                            boundariesElement: "viewport",
                          },
                        },
                        popperProps: {},
                        popperPlacement: "bottom-start",
                      };
                    },
                  },
                ]
              ),
              r
            );
          })(n.Component),
          Nt = se(Lt),
          At = (function (e) {
            _e(r, e);
            var t = we(r);
            function r(e) {
              var i;
              return (
                ue(this, r),
                pe(be((i = t.call(this, e))), "getPreSelection", function () {
                  return i.props.openToDate
                    ? i.props.openToDate
                    : i.props.selectsEnd && i.props.startDate
                    ? i.props.startDate
                    : i.props.selectsStart && i.props.endDate
                    ? i.props.endDate
                    : Te();
                }),
                pe(be(i), "calcInitialState", function () {
                  var e = i.getPreSelection(),
                    t = st(i.props),
                    n = lt(i.props),
                    r = t && ne(e, t) ? t : n && te(e, n) ? n : e;
                  return {
                    open: i.props.startOpen || !1,
                    preventFocus: !1,
                    preSelection: i.props.selected ? i.props.selected : r,
                    highlightDates: ct(i.props.highlightDates),
                    focused: !1,
                  };
                }),
                pe(be(i), "clearPreventFocusTimeout", function () {
                  i.preventFocusTimeout && clearTimeout(i.preventFocusTimeout);
                }),
                pe(be(i), "setFocus", function () {
                  i.input && i.input.focus && i.input.focus();
                }),
                pe(be(i), "setBlur", function () {
                  i.input && i.input.blur && i.input.blur(),
                    i.cancelFocusInput();
                }),
                pe(be(i), "setOpen", function (e) {
                  var t =
                    arguments.length > 1 &&
                    void 0 !== arguments[1] &&
                    arguments[1];
                  i.setState(
                    {
                      open: e,
                      preSelection:
                        e && i.state.open
                          ? i.state.preSelection
                          : i.calcInitialState().preSelection,
                      lastPreSelectChange: Rt,
                    },
                    function () {
                      e ||
                        i.setState(
                          function (e) {
                            return { focused: !!t && e.focused };
                          },
                          function () {
                            !t && i.setBlur(), i.setState({ inputValue: null });
                          }
                        );
                    }
                  );
                }),
                pe(be(i), "inputOk", function () {
                  return a(i.state.preSelection);
                }),
                pe(be(i), "isCalendarOpen", function () {
                  return void 0 === i.props.open
                    ? i.state.open && !i.props.disabled && !i.props.readOnly
                    : i.props.open;
                }),
                pe(be(i), "handleFocus", function (e) {
                  i.state.preventFocus ||
                    (i.props.onFocus(e),
                    i.props.preventOpenOnFocus ||
                      i.props.readOnly ||
                      i.setOpen(!0)),
                    i.setState({ focused: !0 });
                }),
                pe(be(i), "cancelFocusInput", function () {
                  clearTimeout(i.inputFocusTimeout),
                    (i.inputFocusTimeout = null);
                }),
                pe(be(i), "deferFocusInput", function () {
                  i.cancelFocusInput(),
                    (i.inputFocusTimeout = setTimeout(function () {
                      return i.setFocus();
                    }, 1));
                }),
                pe(be(i), "handleDropdownFocus", function () {
                  i.cancelFocusInput();
                }),
                pe(be(i), "handleBlur", function (e) {
                  (!i.state.open ||
                    i.props.withPortal ||
                    i.props.showTimeInput) &&
                    i.props.onBlur(e),
                    i.setState({ focused: !1 });
                }),
                pe(be(i), "handleCalendarClickOutside", function (e) {
                  i.props.inline || i.setOpen(!1),
                    i.props.onClickOutside(e),
                    i.props.withPortal && e.preventDefault();
                }),
                pe(be(i), "handleChange", function () {
                  for (
                    var e = arguments.length, t = new Array(e), n = 0;
                    n < e;
                    n++
                  )
                    t[n] = arguments[n];
                  var r = t[0];
                  if (
                    !i.props.onChangeRaw ||
                    (i.props.onChangeRaw.apply(be(i), t),
                    "function" == typeof r.isDefaultPrevented &&
                      !r.isDefaultPrevented())
                  ) {
                    i.setState({
                      inputValue: r.target.value,
                      lastPreSelectChange: It,
                    });
                    var o = Se(
                      r.target.value,
                      i.props.dateFormat,
                      i.props.locale,
                      i.props.strictParsing
                    );
                    (!o && r.target.value) || i.setSelected(o, r, !0);
                  }
                }),
                pe(be(i), "handleSelect", function (e, t, n) {
                  i.setState({ preventFocus: !0 }, function () {
                    return (
                      (i.preventFocusTimeout = setTimeout(function () {
                        return i.setState({ preventFocus: !1 });
                      }, 50)),
                      i.preventFocusTimeout
                    );
                  }),
                    i.setSelected(e, t, !1, n),
                    !i.props.shouldCloseOnSelect || i.props.showTimeSelect
                      ? i.setPreSelection(e)
                      : i.props.inline || i.setOpen(!1);
                }),
                pe(be(i), "setSelected", function (e, t, n, r) {
                  var o = e;
                  (null !== o && Je(o, i.props)) ||
                    ((ze(i.props.selected, o) && !i.props.allowSameDay) ||
                      (null !== o &&
                        (!i.props.selected ||
                          (n &&
                            (i.props.showTimeSelect ||
                              i.props.showTimeSelectOnly ||
                              i.props.showTimeInput)) ||
                          (o = Ce(o, {
                            hour: k(i.props.selected),
                            minute: w(i.props.selected),
                            second: y(i.props.selected),
                          })),
                        i.props.inline || i.setState({ preSelection: o }),
                        i.props.inline &&
                          i.props.monthsShown > 1 &&
                          !i.props.inlineFocusSelectedMonth &&
                          i.setState({ monthSelectedIn: r })),
                      i.props.onChange(o, t)),
                    i.props.onSelect(o, t),
                    n || i.setState({ inputValue: null }));
                }),
                pe(be(i), "setPreSelection", function (e) {
                  var t = void 0 !== i.props.minDate,
                    n = void 0 !== i.props.maxDate,
                    r = !0;
                  e &&
                    (t && n
                      ? (r = Be(e, i.props.minDate, i.props.maxDate))
                      : t
                      ? (r = te(e, i.props.minDate))
                      : n && (r = ne(e, i.props.maxDate))),
                    r && i.setState({ preSelection: e });
                }),
                pe(be(i), "handleTimeChange", function (e) {
                  var t = Ce(
                    i.props.selected ? i.props.selected : i.getPreSelection(),
                    { hour: k(e), minute: w(e) }
                  );
                  i.setState({ preSelection: t }),
                    i.props.onChange(t),
                    i.props.shouldCloseOnSelect && i.setOpen(!1),
                    i.props.showTimeInput && i.setOpen(!0),
                    i.setState({ inputValue: null });
                }),
                pe(be(i), "onInputClick", function () {
                  i.props.disabled || i.props.readOnly || i.setOpen(!0),
                    i.props.onInputClick();
                }),
                pe(be(i), "onInputKeyDown", function (e) {
                  i.props.onKeyDown(e);
                  var t = e.key;
                  if (
                    i.state.open ||
                    i.props.inline ||
                    i.props.preventOpenOnFocus
                  ) {
                    if (i.state.open) {
                      if ("ArrowDown" === t || "ArrowUp" === t) {
                        e.preventDefault();
                        var n =
                          i.calendar.componentNode &&
                          i.calendar.componentNode.querySelector(
                            '.react-datepicker__day[tabindex="0"]'
                          );
                        return void (n && n.focus());
                      }
                      var r = Te(i.state.preSelection);
                      "Enter" === t
                        ? (e.preventDefault(),
                          i.inputOk() && i.state.lastPreSelectChange === Rt
                            ? (i.handleSelect(r, e),
                              !i.props.shouldCloseOnSelect &&
                                i.setPreSelection(r))
                            : i.setOpen(!1))
                        : "Escape" === t && (e.preventDefault(), i.setOpen(!1)),
                        i.inputOk() ||
                          i.props.onInputError({
                            code: 1,
                            msg: "Date input not valid.",
                          });
                    }
                  } else ("ArrowDown" !== t && "ArrowUp" !== t && "Enter" !== t) || i.onInputClick();
                }),
                pe(be(i), "onDayKeyDown", function (e) {
                  i.props.onKeyDown(e);
                  var t = e.key,
                    n = Te(i.state.preSelection);
                  if ("Enter" === t)
                    e.preventDefault(),
                      i.handleSelect(n, e),
                      !i.props.shouldCloseOnSelect && i.setPreSelection(n);
                  else if ("Escape" === t)
                    e.preventDefault(),
                      i.setOpen(!1),
                      i.inputOk() ||
                        i.props.onInputError({
                          code: 1,
                          msg: "Date input not valid.",
                        });
                  else if (!i.props.disabledKeyboardNavigation) {
                    var r;
                    switch (t) {
                      case "ArrowLeft":
                        r = g(n, 1);
                        break;
                      case "ArrowRight":
                        r = u(n, 1);
                        break;
                      case "ArrowUp":
                        r = _(n, 1);
                        break;
                      case "ArrowDown":
                        r = d(n, 1);
                        break;
                      case "PageUp":
                        r = v(n, 1);
                        break;
                      case "PageDown":
                        r = h(n, 1);
                        break;
                      case "Home":
                        r = b(n, 1);
                        break;
                      case "End":
                        r = p(n, 1);
                    }
                    if (!r)
                      return void (
                        i.props.onInputError &&
                        i.props.onInputError({
                          code: 1,
                          msg: "Date input not valid.",
                        })
                      );
                    e.preventDefault(),
                      i.setState({ lastPreSelectChange: Rt }),
                      i.props.adjustDateOnChange && i.setSelected(r),
                      i.setPreSelection(r);
                  }
                }),
                pe(be(i), "onPopperKeyDown", function (e) {
                  "Escape" === e.key &&
                    (e.preventDefault(),
                    i.setState({ preventFocus: !0 }, function () {
                      i.setOpen(!1),
                        setTimeout(function () {
                          i.setFocus(), i.setState({ preventFocus: !1 });
                        });
                    }));
                }),
                pe(be(i), "onClearClick", function (e) {
                  e && e.preventDefault && e.preventDefault(),
                    i.props.onChange(null, e),
                    i.setState({ inputValue: null });
                }),
                pe(be(i), "clear", function () {
                  i.onClearClick();
                }),
                pe(be(i), "renderCalendar", function () {
                  return i.props.inline || i.isCalendarOpen()
                    ? n.createElement(
                        Nt,
                        {
                          ref: function (e) {
                            i.calendar = e;
                          },
                          locale: i.props.locale,
                          chooseDayAriaLabelPrefix:
                            i.props.chooseDayAriaLabelPrefix,
                          disabledDayAriaLabelPrefix:
                            i.props.disabledDayAriaLabelPrefix,
                          weekAriaLabelPrefix: i.props.weekAriaLabelPrefix,
                          adjustDateOnChange: i.props.adjustDateOnChange,
                          setOpen: i.setOpen,
                          shouldCloseOnSelect: i.props.shouldCloseOnSelect,
                          dateFormat: i.props.dateFormatCalendar,
                          useWeekdaysShort: i.props.useWeekdaysShort,
                          formatWeekDay: i.props.formatWeekDay,
                          dropdownMode: i.props.dropdownMode,
                          selected: i.props.selected,
                          preSelection: i.state.preSelection,
                          onSelect: i.handleSelect,
                          onWeekSelect: i.props.onWeekSelect,
                          openToDate: i.props.openToDate,
                          minDate: i.props.minDate,
                          maxDate: i.props.maxDate,
                          selectsStart: i.props.selectsStart,
                          selectsEnd: i.props.selectsEnd,
                          startDate: i.props.startDate,
                          endDate: i.props.endDate,
                          excludeDates: i.props.excludeDates,
                          filterDate: i.props.filterDate,
                          onClickOutside: i.handleCalendarClickOutside,
                          formatWeekNumber: i.props.formatWeekNumber,
                          highlightDates: i.state.highlightDates,
                          includeDates: i.props.includeDates,
                          includeTimes: i.props.includeTimes,
                          injectTimes: i.props.injectTimes,
                          inline: i.props.inline,
                          peekNextMonth: i.props.peekNextMonth,
                          showMonthDropdown: i.props.showMonthDropdown,
                          showPreviousMonths: i.props.showPreviousMonths,
                          useShortMonthInDropdown:
                            i.props.useShortMonthInDropdown,
                          showMonthYearDropdown: i.props.showMonthYearDropdown,
                          showWeekNumbers: i.props.showWeekNumbers,
                          showYearDropdown: i.props.showYearDropdown,
                          withPortal: i.props.withPortal,
                          forceShowMonthNavigation:
                            i.props.forceShowMonthNavigation,
                          showDisabledMonthNavigation:
                            i.props.showDisabledMonthNavigation,
                          scrollableYearDropdown:
                            i.props.scrollableYearDropdown,
                          scrollableMonthYearDropdown:
                            i.props.scrollableMonthYearDropdown,
                          todayButton: i.props.todayButton,
                          weekLabel: i.props.weekLabel,
                          outsideClickIgnoreClass:
                            "react-datepicker-ignore-onclickoutside",
                          fixedHeight: i.props.fixedHeight,
                          monthsShown: i.props.monthsShown,
                          monthSelectedIn: i.state.monthSelectedIn,
                          onDropdownFocus: i.handleDropdownFocus,
                          onMonthChange: i.props.onMonthChange,
                          onYearChange: i.props.onYearChange,
                          dayClassName: i.props.dayClassName,
                          weekDayClassName: i.props.weekDayClassName,
                          monthClassName: i.props.monthClassName,
                          timeClassName: i.props.timeClassName,
                          showTimeSelect: i.props.showTimeSelect,
                          showTimeSelectOnly: i.props.showTimeSelectOnly,
                          onTimeChange: i.handleTimeChange,
                          timeFormat: i.props.timeFormat,
                          timeIntervals: i.props.timeIntervals,
                          minTime: i.props.minTime,
                          maxTime: i.props.maxTime,
                          excludeTimes: i.props.excludeTimes,
                          timeCaption: i.props.timeCaption,
                          className: i.props.calendarClassName,
                          container: i.props.calendarContainer,
                          yearDropdownItemNumber:
                            i.props.yearDropdownItemNumber,
                          previousMonthButtonLabel:
                            i.props.previousMonthButtonLabel,
                          nextMonthButtonLabel: i.props.nextMonthButtonLabel,
                          previousYearButtonLabel:
                            i.props.previousYearButtonLabel,
                          nextYearButtonLabel: i.props.nextYearButtonLabel,
                          timeInputLabel: i.props.timeInputLabel,
                          disabledKeyboardNavigation:
                            i.props.disabledKeyboardNavigation,
                          renderCustomHeader: i.props.renderCustomHeader,
                          popperProps: i.props.popperProps,
                          renderDayContents: i.props.renderDayContents,
                          onDayMouseEnter: i.props.onDayMouseEnter,
                          onMonthMouseLeave: i.props.onMonthMouseLeave,
                          showTimeInput: i.props.showTimeInput,
                          showMonthYearPicker: i.props.showMonthYearPicker,
                          showFullMonthYearPicker:
                            i.props.showFullMonthYearPicker,
                          showYearPicker: i.props.showYearPicker,
                          showQuarterYearPicker: i.props.showQuarterYearPicker,
                          showPopperArrow: i.props.showPopperArrow,
                          excludeScrollbar: i.props.excludeScrollbar,
                          handleOnKeyDown: i.onDayKeyDown,
                          isInputFocused: i.state.focused,
                          customTimeInput: i.props.customTimeInput,
                          setPreSelection: i.setPreSelection,
                        },
                        i.props.children
                      )
                    : null;
                }),
                pe(be(i), "renderDateInput", function () {
                  var e,
                    t,
                    r,
                    a,
                    s,
                    l = o(
                      i.props.className,
                      pe(
                        {},
                        "react-datepicker-ignore-onclickoutside",
                        i.state.open
                      )
                    ),
                    c =
                      i.props.customInput ||
                      n.createElement("input", { type: "text" }),
                    u = i.props.customInputRef || "ref",
                    d =
                      "string" == typeof i.props.value
                        ? i.props.value
                        : "string" == typeof i.state.inputValue
                        ? i.state.inputValue
                        : ((t = i.props.selected),
                          (a = (r = i.props).dateFormat),
                          (s = r.locale),
                          (t && Le(t, Array.isArray(a) ? a[0] : a, s)) || "");
                  return n.cloneElement(
                    c,
                    (pe((e = {}), u, function (e) {
                      i.input = e;
                    }),
                    pe(e, "value", d),
                    pe(e, "onBlur", i.handleBlur),
                    pe(e, "onChange", i.handleChange),
                    pe(e, "onClick", i.onInputClick),
                    pe(e, "onFocus", i.handleFocus),
                    pe(e, "onKeyDown", i.onInputKeyDown),
                    pe(e, "id", i.props.id),
                    pe(e, "name", i.props.name),
                    pe(e, "autoFocus", i.props.autoFocus),
                    pe(e, "placeholder", i.props.placeholderText),
                    pe(e, "disabled", i.props.disabled),
                    pe(e, "autoComplete", i.props.autoComplete),
                    pe(e, "className", o(c.props.className, l)),
                    pe(e, "title", i.props.title),
                    pe(e, "readOnly", i.props.readOnly),
                    pe(e, "required", i.props.required),
                    pe(e, "tabIndex", i.props.tabIndex),
                    pe(e, "aria-labelledby", i.props.ariaLabelledBy),
                    e)
                  );
                }),
                pe(be(i), "renderClearButton", function () {
                  var e = i.props,
                    t = e.isClearable,
                    r = e.selected,
                    o = e.clearButtonTitle,
                    a = e.ariaLabelClose,
                    s = void 0 === a ? "Close" : a;
                  return t && null != r
                    ? n.createElement("button", {
                        type: "button",
                        className: "react-datepicker__close-icon",
                        "aria-label": s,
                        onClick: i.onClearClick,
                        title: o,
                        tabIndex: -1,
                      })
                    : null;
                }),
                (i.state = i.calcInitialState()),
                i
              );
            }
            return (
              he(r, null, [
                {
                  key: "defaultProps",
                  get: function () {
                    return {
                      allowSameDay: !1,
                      dateFormat: "MM/dd/yyyy",
                      dateFormatCalendar: "LLLL yyyy",
                      onChange: function () {},
                      disabled: !1,
                      disabledKeyboardNavigation: !1,
                      dropdownMode: "scroll",
                      onFocus: function () {},
                      onBlur: function () {},
                      onKeyDown: function () {},
                      onInputClick: function () {},
                      onSelect: function () {},
                      onClickOutside: function () {},
                      onMonthChange: function () {},
                      onCalendarOpen: function () {},
                      onCalendarClose: function () {},
                      preventOpenOnFocus: !1,
                      onYearChange: function () {},
                      onInputError: function () {},
                      monthsShown: 1,
                      readOnly: !1,
                      withPortal: !1,
                      shouldCloseOnSelect: !0,
                      showTimeSelect: !1,
                      showTimeInput: !1,
                      showPreviousMonths: !1,
                      showMonthYearPicker: !1,
                      showFullMonthYearPicker: !1,
                      showYearPicker: !1,
                      showQuarterYearPicker: !1,
                      strictParsing: !1,
                      timeIntervals: 30,
                      timeCaption: "Time",
                      previousMonthButtonLabel: "Previous Month",
                      nextMonthButtonLabel: "Next Month",
                      previousYearButtonLabel: "Previous Year",
                      nextYearButtonLabel: "Next Year",
                      timeInputLabel: "Time",
                      enableTabLoop: !0,
                      renderDayContents: function (e) {
                        return e;
                      },
                      inlineFocusSelectedMonth: !1,
                      showPopperArrow: !0,
                      excludeScrollbar: !0,
                      customTimeInput: null,
                    };
                  },
                },
              ]),
              he(r, [
                {
                  key: "componentDidUpdate",
                  value: function (e, t) {
                    var n, r;
                    e.inline &&
                      ((n = e.selected),
                      (r = this.props.selected),
                      n && r ? T(n) !== T(r) || D(n) !== D(r) : n !== r) &&
                      this.setPreSelection(this.props.selected),
                      void 0 !== this.state.monthSelectedIn &&
                        e.monthsShown !== this.props.monthsShown &&
                        this.setState({ monthSelectedIn: 0 }),
                      e.highlightDates !== this.props.highlightDates &&
                        this.setState({
                          highlightDates: ct(this.props.highlightDates),
                        }),
                      t.focused ||
                        ze(e.selected, this.props.selected) ||
                        this.setState({ inputValue: null }),
                      t.open !== this.state.open &&
                        (!1 === t.open &&
                          !0 === this.state.open &&
                          this.props.onCalendarOpen(),
                        !0 === t.open &&
                          !1 === this.state.open &&
                          this.props.onCalendarClose());
                  },
                },
                {
                  key: "componentWillUnmount",
                  value: function () {
                    this.clearPreventFocusTimeout();
                  },
                },
                {
                  key: "render",
                  value: function () {
                    var e = this.renderCalendar();
                    return this.props.inline && !this.props.withPortal
                      ? e
                      : this.props.withPortal
                      ? n.createElement(
                          "div",
                          null,
                          this.props.inline
                            ? null
                            : n.createElement(
                                "div",
                                {
                                  className:
                                    "react-datepicker__input-container",
                                },
                                this.renderDateInput(),
                                this.renderClearButton()
                              ),
                          this.state.open || this.props.inline
                            ? n.createElement(
                                "div",
                                { className: "react-datepicker__portal" },
                                e
                              )
                            : null
                        )
                      : n.createElement(Ot, {
                          className: this.props.popperClassName,
                          wrapperClassName: this.props.wrapperClassName,
                          hidePopper: !this.isCalendarOpen(),
                          popperModifiers: this.props.popperModifiers,
                          targetComponent: n.createElement(
                            "div",
                            { className: "react-datepicker__input-container" },
                            this.renderDateInput(),
                            this.renderClearButton()
                          ),
                          popperContainer: this.props.popperContainer,
                          popperComponent: e,
                          popperPlacement: this.props.popperPlacement,
                          popperProps: this.props.popperProps,
                          popperOnKeyDown: this.onPopperKeyDown,
                          enableTabLoop: this.props.enableTabLoop,
                        });
                  },
                },
              ]),
              r
            );
          })(n.Component),
          It = "input",
          Rt = "navigate";
        (t.CalendarContainer = St),
          (t.default = At),
          (t.getDefaultLocale = Ue),
          (t.registerLocale = function (t, n) {
            var r = "undefined" != typeof window ? window : e;
            r.__localeData__ || (r.__localeData__ = {}),
              (r.__localeData__[t] = n);
          }),
          (t.setDefaultLocale = function (t) {
            ("undefined" != typeof window ? window : e).__localeId__ = t;
          }),
          Object.defineProperty(t, "__esModule", { value: !0 });
      })(
        t,
        n(0),
        n(19),
        n(44),
        n(295),
        n(74),
        n(457),
        n(75),
        n(76),
        n(42),
        n(77),
        n(43),
        n(78),
        n(296),
        n(297),
        n(298),
        n(299),
        n(300),
        n(301),
        n(302),
        n(303),
        n(304),
        n(305),
        n(306),
        n(459),
        n(307),
        n(308),
        n(309),
        n(310),
        n(311),
        n(312),
        n(313),
        n(80),
        n(314),
        n(315),
        n(316),
        n(317),
        n(318),
        n(319),
        n(320),
        n(321),
        n(28),
        n(17),
        n(322),
        n(54),
        n(323),
        n(324),
        n(325),
        n(326),
        n(327),
        n(328),
        n(329),
        n(330),
        n(331),
        n(332),
        n(333),
        n(334),
        n(5),
        n(456),
        n(335),
        n(336),
        n(458)
      );
    }.call(this, n(35)));
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e),
        i = Object(r.a)(t);
      return isNaN(i) ? new Date(NaN) : i ? (n.setDate(n.getDate() + i), n) : n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e),
        i = Object(r.a)(t);
      if (isNaN(i)) return new Date(NaN);
      if (!i) return n;
      var s = n.getDate(),
        l = new Date(n.getTime());
      l.setMonth(n.getMonth() + i + 1, 0);
      var c = l.getDate();
      return s >= c ? l : (n.setFullYear(l.getFullYear(), l.getMonth(), s), n);
    }
  },
  function (e, t, n) {
    var r;
    /*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/ !(function () {
      "use strict";
      var n = {}.hasOwnProperty;
      function o() {
        for (var e = [], t = 0; t < arguments.length; t++) {
          var r = arguments[t];
          if (r) {
            var a = typeof r;
            if ("string" === a || "number" === a) e.push(r);
            else if (Array.isArray(r) && r.length) {
              var i = o.apply(null, r);
              i && e.push(i);
            } else if ("object" === a)
              for (var s in r) n.call(r, s) && r[s] && e.push(s);
          }
        }
        return e.join(" ");
      }
      e.exports
        ? ((o.default = o), (e.exports = o))
        : void 0 ===
            (r = function () {
              return o;
            }.apply(t, [])) || (e.exports = r);
    })();
  },
  function (e, t, n) {
    var r = n(356),
      o = n(357),
      a = n(358),
      i = n(359),
      s = n(360);
    function l(e) {
      var t = -1,
        n = null == e ? 0 : e.length;
      for (this.clear(); ++t < n; ) {
        var r = e[t];
        this.set(r[0], r[1]);
      }
    }
    (l.prototype.clear = r),
      (l.prototype.delete = o),
      (l.prototype.get = a),
      (l.prototype.has = i),
      (l.prototype.set = s),
      (e.exports = l);
  },
  function (e, t, n) {
    var r = n(239);
    e.exports = function (e, t) {
      for (var n = e.length; n--; ) if (r(e[n][0], t)) return n;
      return -1;
    };
  },
  function (e, t, n) {
    var r = n(24).Symbol;
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(27)(Object, "create");
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(380);
    e.exports = function (e, t) {
      var n = e.__data__;
      return r(t) ? n["string" == typeof t ? "string" : "hash"] : n.map;
    };
  },
  function (e, t, n) {
    var r = n(73);
    e.exports = function (e) {
      if ("string" == typeof e || r(e)) return e;
      var t = e + "";
      return "0" == t && 1 / e == -1 / 0 ? "-0" : t;
    };
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return i;
    });
    var r = n(7),
      o = n(30),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.a)(e, -n);
    }
  },
  function (e, t, n) {
    "use strict";
    function r(e, t) {
      switch (e) {
        case "P":
          return t.date({ width: "short" });
        case "PP":
          return t.date({ width: "medium" });
        case "PPP":
          return t.date({ width: "long" });
        case "PPPP":
        default:
          return t.date({ width: "full" });
      }
    }
    function o(e, t) {
      switch (e) {
        case "p":
          return t.time({ width: "short" });
        case "pp":
          return t.time({ width: "medium" });
        case "ppp":
          return t.time({ width: "long" });
        case "pppp":
        default:
          return t.time({ width: "full" });
      }
    }
    var a = {
      p: o,
      P: function (e, t) {
        var n,
          a = e.match(/(P+)(p+)?/),
          i = a[1],
          s = a[2];
        if (!s) return r(e, t);
        switch (i) {
          case "P":
            n = t.dateTime({ width: "short" });
            break;
          case "PP":
            n = t.dateTime({ width: "medium" });
            break;
          case "PPP":
            n = t.dateTime({ width: "long" });
            break;
          case "PPPP":
          default:
            n = t.dateTime({ width: "full" });
        }
        return n.replace("{{date}}", r(i, t)).replace("{{time}}", o(s, t));
      },
    };
    t.a = a;
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return i;
    });
    var r = n(5),
      o = n(21),
      a = n(2);
    function i(e) {
      Object(a.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getUTCFullYear(),
        i = new Date(0);
      i.setUTCFullYear(n + 1, 0, 4), i.setUTCHours(0, 0, 0, 0);
      var s = Object(o.a)(i),
        l = new Date(0);
      l.setUTCFullYear(n, 0, 4), l.setUTCHours(0, 0, 0, 0);
      var c = Object(o.a)(l);
      return t.getTime() >= s.getTime()
        ? n + 1
        : t.getTime() >= c.getTime()
        ? n
        : n - 1;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getMonth(),
        a = n - (n % 3);
      return t.setMonth(a, 1), t.setHours(0, 0, 0, 0), t;
    }
  },
  function (e, t, n) {
    var r;
    window,
      (e.exports =
        ((r = n(0)),
        (function (e) {
          var t = {};
          function n(r) {
            if (t[r]) return t[r].exports;
            var o = (t[r] = { i: r, l: !1, exports: {} });
            return e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
          }
          return (
            (n.m = e),
            (n.c = t),
            (n.d = function (e, t, r) {
              n.o(e, t) ||
                Object.defineProperty(e, t, { enumerable: !0, get: r });
            }),
            (n.r = function (e) {
              "undefined" != typeof Symbol &&
                Symbol.toStringTag &&
                Object.defineProperty(e, Symbol.toStringTag, {
                  value: "Module",
                }),
                Object.defineProperty(e, "__esModule", { value: !0 });
            }),
            (n.t = function (e, t) {
              if ((1 & t && (e = n(e)), 8 & t)) return e;
              if (4 & t && "object" == typeof e && e && e.__esModule) return e;
              var r = Object.create(null);
              if (
                (n.r(r),
                Object.defineProperty(r, "default", {
                  enumerable: !0,
                  value: e,
                }),
                2 & t && "string" != typeof e)
              )
                for (var o in e)
                  n.d(
                    r,
                    o,
                    function (t) {
                      return e[t];
                    }.bind(null, o)
                  );
              return r;
            }),
            (n.n = function (e) {
              var t =
                e && e.__esModule
                  ? function () {
                      return e.default;
                    }
                  : function () {
                      return e;
                    };
              return n.d(t, "a", t), t;
            }),
            (n.o = function (e, t) {
              return Object.prototype.hasOwnProperty.call(e, t);
            }),
            (n.p = ""),
            n((n.s = 2))
          );
        })([
          function (e, t, n) {
            e.exports = n(3)();
          },
          function (e, t) {
            e.exports = r;
          },
          function (e, t, n) {
            "use strict";
            n.r(t),
              n.d(t, "default", function () {
                return d;
              });
            var r = n(1),
              o = n.n(r),
              a = n(0),
              i = n.n(a);
            function s(e) {
              return (s =
                "function" == typeof Symbol &&
                "symbol" == typeof Symbol.iterator
                  ? function (e) {
                      return typeof e;
                    }
                  : function (e) {
                      return e &&
                        "function" == typeof Symbol &&
                        e.constructor === Symbol &&
                        e !== Symbol.prototype
                        ? "symbol"
                        : typeof e;
                    })(e);
            }
            function l(e, t) {
              for (var n = 0; n < t.length; n++) {
                var r = t[n];
                (r.enumerable = r.enumerable || !1),
                  (r.configurable = !0),
                  "value" in r && (r.writable = !0),
                  Object.defineProperty(e, r.key, r);
              }
            }
            function c(e) {
              return (c = Object.setPrototypeOf
                ? Object.getPrototypeOf
                : function (e) {
                    return e.__proto__ || Object.getPrototypeOf(e);
                  })(e);
            }
            function u(e, t) {
              return (u =
                Object.setPrototypeOf ||
                function (e, t) {
                  return (e.__proto__ = t), e;
                })(e, t);
            }
            var d = (function (e) {
              function t(e) {
                var n;
                return (
                  (function (e, t) {
                    if (!(e instanceof t))
                      throw new TypeError("Cannot call a class as a function");
                  })(this, t),
                  ((n = (function (e, t) {
                    return !t || ("object" !== s(t) && "function" != typeof t)
                      ? (function (e) {
                          if (void 0 === e)
                            throw new ReferenceError(
                              "this hasn't been initialised - super() hasn't been called"
                            );
                          return e;
                        })(e)
                      : t;
                  })(this, c(t).call(this, e))).editor = null),
                  (n.domContainer = o.a.createRef()),
                  n
                );
              }
              return (
                (function (e, t) {
                  if ("function" != typeof t && null !== t)
                    throw new TypeError(
                      "Super expression must either be null or a function"
                    );
                  (e.prototype = Object.create(t && t.prototype, {
                    constructor: { value: e, writable: !0, configurable: !0 },
                  })),
                    t && u(e, t);
                })(t, o.a.Component),
                (function (e, t, n) {
                  t && l(e.prototype, t);
                })(t, [
                  {
                    key: "shouldComponentUpdate",
                    value: function (e) {
                      return (
                        !!this.editor &&
                        (this._shouldUpdateContent(e) &&
                          this.editor.setData(e.data),
                        "disabled" in e &&
                          (this.editor.isReadOnly = e.disabled),
                        !1)
                      );
                    },
                  },
                  {
                    key: "componentDidMount",
                    value: function () {
                      this._initializeEditor();
                    },
                  },
                  {
                    key: "componentWillUnmount",
                    value: function () {
                      this._destroyEditor();
                    },
                  },
                  {
                    key: "render",
                    value: function () {
                      return o.a.createElement("div", {
                        ref: this.domContainer,
                        dangerouslySetInnerHTML: {
                          __html: this.props.data || "",
                        },
                      });
                    },
                  },
                  {
                    key: "_initializeEditor",
                    value: function () {
                      var e = this;
                      this.props.editor
                        .create(this.domContainer.current, this.props.config)
                        .then(function (t) {
                          (e.editor = t),
                            "disabled" in e.props &&
                              (t.isReadOnly = e.props.disabled),
                            e.props.onInit && e.props.onInit(t);
                          var n = t.model.document,
                            r = t.editing.view.document;
                          n.on("change:data", function (n) {
                            e.props.onChange && e.props.onChange(n, t);
                          }),
                            r.on("focus", function (n) {
                              e.props.onFocus && e.props.onFocus(n, t);
                            }),
                            r.on("blur", function (n) {
                              e.props.onBlur && e.props.onBlur(n, t);
                            });
                        })
                        .catch(function (e) {
                          console.error(e);
                        });
                    },
                  },
                  {
                    key: "_destroyEditor",
                    value: function () {
                      var e = this;
                      this.editor &&
                        this.editor.destroy().then(function () {
                          e.editor = null;
                        });
                    },
                  },
                  {
                    key: "_shouldUpdateContent",
                    value: function (e) {
                      return (
                        this.props.data !== e.data &&
                        this.editor.getData() !== e.data
                      );
                    },
                  },
                ]),
                t
              );
            })();
            (d.propTypes = {
              editor: i.a.func.isRequired,
              data: i.a.string,
              config: i.a.object,
              onChange: i.a.func,
              onInit: i.a.func,
              onFocus: i.a.func,
              onBlur: i.a.func,
              disabled: i.a.bool,
            }),
              (d.defaultProps = { config: {} });
          },
          function (e, t, n) {
            "use strict";
            var r = n(4);
            function o() {}
            function a() {}
            (a.resetWarningCache = o),
              (e.exports = function () {
                function e(e, t, n, o, a, i) {
                  if (i !== r) {
                    var s = new Error(
                      "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
                    );
                    throw ((s.name = "Invariant Violation"), s);
                  }
                }
                function t() {
                  return e;
                }
                e.isRequired = e;
                var n = {
                  array: e,
                  bool: e,
                  func: e,
                  number: e,
                  object: e,
                  string: e,
                  symbol: e,
                  any: e,
                  arrayOf: t,
                  element: e,
                  elementType: e,
                  instanceOf: t,
                  node: e,
                  objectOf: t,
                  oneOf: t,
                  oneOfType: t,
                  shape: t,
                  exact: t,
                  checkPropTypes: a,
                  resetWarningCache: o,
                };
                return (n.PropTypes = n), n;
              });
          },
          function (e, t, n) {
            "use strict";
            e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
          },
        ]).default));
  },
  function (e, t, n) {
    var r;
    ((r =
      window.CKEDITOR_TRANSLATIONS ||
      (window.CKEDITOR_TRANSLATIONS = {})).en = Object.assign(r.en || {}, {
      a: "Cannot upload file:",
      b: "Image toolbar",
      c: "Table toolbar",
      d: "Bold",
      e: "Italic",
      f: "Block quote",
      g: "Insert image or file",
      h: "Choose heading",
      i: "Heading",
      j: "image widget",
      k: "Full size image",
      l: "Side image",
      m: "Left aligned image",
      n: "Centered image",
      o: "Right aligned image",
      p: "Insert image",
      q: "Numbered List",
      r: "Bulleted List",
      s: "Insert table",
      t: "Header column",
      u: "Insert column left",
      v: "Insert column right",
      w: "Delete column",
      x: "Column",
      y: "Header row",
      z: "Insert row below",
      aa: "Insert row above",
      ab: "Delete row",
      ac: "Row",
      ad: "Merge cell up",
      ae: "Merge cell right",
      af: "Merge cell down",
      ag: "Merge cell left",
      ah: "Split cell vertically",
      ai: "Split cell horizontally",
      aj: "Merge cells",
      ak: "Enter image caption",
      al: "Upload failed",
      am: "media widget",
      an: "Insert media",
      ao: "The URL must not be empty.",
      ap: "This media URL is not supported.",
      aq: "Link",
      ar: "Could not obtain resized image URL.",
      as: "Selecting resized image failed",
      at: "Could not insert image at the current position.",
      au: "Inserting image failed",
      av: "Widget toolbar",
      aw: "Upload in progress",
      ax: "Open in a new tab",
      ay: "Downloadable",
      az: "Unlink",
      ba: "Edit link",
      bb: "Open link in new tab",
      bc: "This link has no URL",
      bd: "Save",
      be: "Cancel",
      bf: "Link URL",
      bg: "Paste the media URL in the input.",
      bh: "Tip: Paste the URL into the content to embed faster.",
      bi: "Media URL",
      bj: "Undo",
      bk: "Redo",
      bl: "Editor toolbar",
      bm: "Rich Text Editor, %0",
      bn: "Rich Text Editor",
      bo: "Dropdown toolbar",
      bp: "%0 of %1",
      bq: "Previous",
      br: "Next",
      bs: "Change image text alternative",
      bt: "Paragraph",
      bu: "Heading 1",
      bv: "Heading 2",
      bw: "Heading 3",
      bx: "Heading 4",
      by: "Heading 5",
      bz: "Heading 6",
      ca: "Text alternative",
    })),
      window,
      (e.exports = (function (e) {
        var t = {};
        function n(r) {
          if (t[r]) return t[r].exports;
          var o = (t[r] = { i: r, l: !1, exports: {} });
          return e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
        }
        return (
          (n.m = e),
          (n.c = t),
          (n.d = function (e, t, r) {
            n.o(e, t) ||
              Object.defineProperty(e, t, { enumerable: !0, get: r });
          }),
          (n.r = function (e) {
            "undefined" != typeof Symbol &&
              Symbol.toStringTag &&
              Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
              Object.defineProperty(e, "__esModule", { value: !0 });
          }),
          (n.t = function (e, t) {
            if ((1 & t && (e = n(e)), 8 & t)) return e;
            if (4 & t && "object" == typeof e && e && e.__esModule) return e;
            var r = Object.create(null);
            if (
              (n.r(r),
              Object.defineProperty(r, "default", { enumerable: !0, value: e }),
              2 & t && "string" != typeof e)
            )
              for (var o in e)
                n.d(
                  r,
                  o,
                  function (t) {
                    return e[t];
                  }.bind(null, o)
                );
            return r;
          }),
          (n.n = function (e) {
            var t =
              e && e.__esModule
                ? function () {
                    return e.default;
                  }
                : function () {
                    return e;
                  };
            return n.d(t, "a", t), t;
          }),
          (n.o = function (e, t) {
            return Object.prototype.hasOwnProperty.call(e, t);
          }),
          (n.p = ""),
          n((n.s = 91))
        );
      })([
        function (e, t, n) {
          "use strict";
          n.d(t, "b", function () {
            return r;
          }),
            n.d(t, "a", function () {
              return o;
            });
          class r extends Error {
            constructor(e, t, n) {
              (e = o(e)),
                n && (e += " " + JSON.stringify(n)),
                super(e),
                (this.name = "CKEditorError"),
                (this.context = t),
                (this.data = n);
            }
            is(e) {
              return "CKEditorError" === e;
            }
          }
          function o(e) {
            const t = e.match(/^([^:]+):/);
            return t
              ? e +
                  ` Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-${t[1]}\n`
              : e;
          }
        },
        function (e, t, n) {
          "use strict";
          var r = {},
            o = (function () {
              var e;
              return function () {
                return (
                  void 0 === e &&
                    (e = Boolean(
                      window && document && document.all && !window.atob
                    )),
                  e
                );
              };
            })(),
            a = (function () {
              var e = {};
              return function (t) {
                if (void 0 === e[t]) {
                  var n = document.querySelector(t);
                  if (
                    window.HTMLIFrameElement &&
                    n instanceof window.HTMLIFrameElement
                  )
                    try {
                      n = n.contentDocument.head;
                    } catch (e) {
                      n = null;
                    }
                  e[t] = n;
                }
                return e[t];
              };
            })();
          function i(e, t) {
            for (var n = [], r = {}, o = 0; o < e.length; o++) {
              var a = e[o],
                i = t.base ? a[0] + t.base : a[0],
                s = { css: a[1], media: a[2], sourceMap: a[3] };
              r[i]
                ? r[i].parts.push(s)
                : n.push((r[i] = { id: i, parts: [s] }));
            }
            return n;
          }
          function s(e, t) {
            for (var n = 0; n < e.length; n++) {
              var o = e[n],
                a = r[o.id],
                i = 0;
              if (a) {
                for (a.refs++; i < a.parts.length; i++) a.parts[i](o.parts[i]);
                for (; i < o.parts.length; i++) a.parts.push(p(o.parts[i], t));
              } else {
                for (var s = []; i < o.parts.length; i++)
                  s.push(p(o.parts[i], t));
                r[o.id] = { id: o.id, refs: 1, parts: s };
              }
            }
          }
          function l(e) {
            var t = document.createElement("style");
            if (void 0 === e.attributes.nonce) {
              var r = n.nc;
              r && (e.attributes.nonce = r);
            }
            if (
              (Object.keys(e.attributes).forEach(function (n) {
                t.setAttribute(n, e.attributes[n]);
              }),
              "function" == typeof e.insert)
            )
              e.insert(t);
            else {
              var o = a(e.insert || "head");
              if (!o)
                throw new Error(
                  "Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."
                );
              o.appendChild(t);
            }
            return t;
          }
          var c = (function () {
            var e = [];
            return function (t, n) {
              return (e[t] = n), e.filter(Boolean).join("\n");
            };
          })();
          function u(e, t, n, r) {
            var o = n ? "" : r.css;
            if (e.styleSheet) e.styleSheet.cssText = c(t, o);
            else {
              var a = document.createTextNode(o),
                i = e.childNodes;
              i[t] && e.removeChild(i[t]),
                i.length ? e.insertBefore(a, i[t]) : e.appendChild(a);
            }
          }
          var d = null,
            h = 0;
          function p(e, t) {
            var n, r, o;
            if (t.singleton) {
              var a = h++;
              (n = d || (d = l(t))),
                (r = u.bind(null, n, a, !1)),
                (o = u.bind(null, n, a, !0));
            } else
              (n = l(t)),
                (r = function (e, t, n) {
                  var r = n.css,
                    o = n.media,
                    a = n.sourceMap;
                  if (
                    (o && e.setAttribute("media", o),
                    a &&
                      btoa &&
                      (r += "\n/*# sourceMappingURL=data:application/json;base64,".concat(
                        btoa(unescape(encodeURIComponent(JSON.stringify(a)))),
                        " */"
                      )),
                    e.styleSheet)
                  )
                    e.styleSheet.cssText = r;
                  else {
                    for (; e.firstChild; ) e.removeChild(e.firstChild);
                    e.appendChild(document.createTextNode(r));
                  }
                }.bind(null, n, t)),
                (o = function () {
                  !(function (e) {
                    if (null === e.parentNode) return !1;
                    e.parentNode.removeChild(e);
                  })(n);
                });
            return (
              r(e),
              function (t) {
                if (t) {
                  if (
                    t.css === e.css &&
                    t.media === e.media &&
                    t.sourceMap === e.sourceMap
                  )
                    return;
                  r((e = t));
                } else o();
              }
            );
          }
          e.exports = function (e, t) {
            ((t = t || {}).attributes =
              "object" == typeof t.attributes ? t.attributes : {}),
              t.singleton ||
                "boolean" == typeof t.singleton ||
                (t.singleton = o());
            var n = i(e, t);
            return (
              s(n, t),
              function (e) {
                for (var o = [], a = 0; a < n.length; a++) {
                  var l = n[a],
                    c = r[l.id];
                  c && (c.refs--, o.push(c));
                }
                e && s(i(e, t), t);
                for (var u = 0; u < o.length; u++) {
                  var d = o[u];
                  if (0 === d.refs) {
                    for (var h = 0; h < d.parts.length; h++) d.parts[h]();
                    delete r[d.id];
                  }
                }
              }
            );
          };
        },
        ,
        function (e, t, n) {
          "use strict";
          var r = n(7),
            o =
              "object" == typeof self && self && self.Object === Object && self,
            a = r.a || o || Function("return this")();
          t.a = a;
        },
        function (e, n, r) {
          "use strict";
          (function (e) {
            var o = r(7),
              a = t && !t.nodeType && t,
              i = a && "object" == typeof e && e && !e.nodeType && e,
              s = i && i.exports === a && o.a.process,
              l = (function () {
                try {
                  return (
                    (i && i.require && i.require("util").types) ||
                    (s && s.binding && s.binding("util"))
                  );
                } catch (e) {}
              })();
            n.a = l;
          }.call(this, r(8)(e)));
        },
        function (e, n, r) {
          "use strict";
          (function (e) {
            var o = r(3),
              a = r(11),
              i = t && !t.nodeType && t,
              s = i && "object" == typeof e && e && !e.nodeType && e,
              l = s && s.exports === i ? o.a.Buffer : void 0,
              c = (l ? l.isBuffer : void 0) || a.a;
            n.a = c;
          }.call(this, r(8)(e)));
        },
        function (e, t, n) {
          "use strict";
          (function (e) {
            var t = n(13),
              r = n(0);
            const o = "object" == typeof window ? window : e;
            if (o.CKEDITOR_VERSION)
              throw new r.b(
                "ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated.",
                null
              );
            o.CKEDITOR_VERSION = t.a;
          }.call(this, n(9)));
        },
        function (e, t, n) {
          "use strict";
          (function (e) {
            var n = "object" == typeof e && e && e.Object === Object && e;
            t.a = n;
          }.call(this, n(9)));
        },
        function (e, t) {
          e.exports = function (e) {
            if (!e.webpackPolyfill) {
              var t = Object.create(e);
              t.children || (t.children = []),
                Object.defineProperty(t, "loaded", {
                  enumerable: !0,
                  get: function () {
                    return t.l;
                  },
                }),
                Object.defineProperty(t, "id", {
                  enumerable: !0,
                  get: function () {
                    return t.i;
                  },
                }),
                Object.defineProperty(t, "exports", { enumerable: !0 }),
                (t.webpackPolyfill = 1);
            }
            return t;
          };
        },
        function (e, t) {
          var n;
          n = (function () {
            return this;
          })();
          try {
            n = n || new Function("return this")();
          } catch (e) {
            "object" == typeof window && (n = window);
          }
          e.exports = n;
        },
        function (e, t, n) {
          var r = n(68);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t, n) {
          "use strict";
          t.a = function () {
            return !1;
          };
        },
        function (e, n, r) {
          "use strict";
          (function (e) {
            var o = r(3),
              a = t && !t.nodeType && t,
              i = a && "object" == typeof e && e && !e.nodeType && e,
              s = i && i.exports === a ? o.a.Buffer : void 0,
              l = s ? s.allocUnsafe : void 0;
            n.a = function (e, t) {
              if (t) return e.slice();
              var n = e.length,
                r = l ? l(n) : new e.constructor(n);
              return e.copy(r), r;
            };
          }.call(this, r(8)(e)));
        },
        function (e) {
          e.exports = JSON.parse('{"a":"12.4.0"}');
        },
        function (e, t, n) {
          var r = n(15);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none;cursor:text;color:var(--ck-color-engine-placeholder-text)}";
        },
        function (e, t, n) {
          var r = n(17);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999);--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border:#47a4f5;--ck-color-focus-shadow:rgba(119,186,248,0.5);--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#5c5c5c;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}";
        },
        function (e, t, n) {
          var r = n(19);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}";
        },
        function (e, t, n) {
          var r = n(21);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}";
        },
        function (e, t, n) {
          var r = n(23);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}";
        },
        function (e, t, n) {
          var r = n(25);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row wrap;align-items:center}.ck.ck-toolbar.ck-toolbar_vertical{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating{flex-wrap:nowrap}.ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar__newline{display:block;width:100%}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-toolbar>*{margin-left:var(--ck-spacing-small);margin-right:0}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck{width:100%;margin:0;border-radius:0;border:0}[dir=ltr] .ck.ck-toolbar>:last-child{margin-right:0}[dir=rtl] .ck.ck-toolbar>:last-child{margin-left:0}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar__separator{align-self:stretch;width:1px;margin-top:0;margin-bottom:0;background:var(--ck-color-toolbar-border)}.ck.ck-toolbar__newline{margin:0}";
        },
        function (e, t, n) {
          var r = n(27);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}";
        },
        function (e, t, n) {
          var r = n(29);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}";
        },
        function (e, t, n) {
          var r = n(31);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            '.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck-tooltip .ck-tooltip__text{display:inline-block}.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{border-style:solid;left:50%}.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s}';
        },
        function (e, t, n) {
          var r = n(33);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button .ck-button__label,.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button .ck-button__label,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;border-color:transparent}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}";
        },
        function (e, t, n) {
          var r = n(35);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}";
        },
        function (e, t, n) {
          var r = n(37);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0;outline:1px solid var(--ck-color-resizer)}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all;width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nesw-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nesw-resize}.ck .ck-widget.ck-widget_with-selection-handler{position:relative}.ck .ck-widget.ck-widget_with-selection-handler:hover .ck-widget__selection-handler{visibility:visible}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler{position:absolute}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected .ck-widget__selection-handler{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck-editor__editable>.ck-widget.ck-widget_with-selection-handler:first-child,.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handler:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected .ck-widget__selection-handler,.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected:hover .ck-widget__selection-handler{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected .ck-widget__selection-handler .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handler.ck-widget_selected:hover .ck-widget__selection-handler .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handler:hover .ck-widget__selection-handler{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handler .ck-widget__selection-handler{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected .ck-widget__selection-handler,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected .ck-widget__selection-handler:hover,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover .ck-widget__selection-handler,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover .ck-widget__selection-handler:hover{background:var(--ck-color-widget-blurred-border)}.ck-editor__editable.ck-read-only .ck-widget{--ck-widget-outline-thickness:0}";
        },
        function (e, t, n) {
          var r = n(39);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-labeled-input .ck-labeled-input__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-input .ck-labeled-input__status_error{color:var(--ck-color-base-error)}";
        },
        function (e, t, n) {
          var r = n(41);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition-property:box-shadow,border;transition:.2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}";
        },
        function (e, t, n) {
          var r = n(43);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-input{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-input{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}";
        },
        function (e, t, n) {
          var r = n(45);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}';
        },
        function (e, t, n) {
          var r = n(47);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}";
        },
        function (e, t, n) {
          var r = n(49);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}";
        },
        function (e, t, n) {
          var r = n(51);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image>img{display:block;margin:0 auto;max-width:100%;min-width:50px}";
        },
        function (e, t, n) {
          var r = n(53);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}";
        },
        function (e, t, n) {
          var r = n(55);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            '.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}';
        },
        function (e, t, n) {
          var r = n(57);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            '.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}';
        },
        function (e, t, n) {
          var r = n(59);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block;will-change:transform}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{transform:translate3d(0,100%,0)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}";
        },
        function (e, t, n) {
          var r = n(61);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;border:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:hover:not(ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}";
        },
        function (e, t, n) {
          var r = n(63);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:1.3846153847em}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}";
        },
        function (e, t, n) {
          var r = n(65);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-toolbar-dropdown .ck-toolbar{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}";
        },
        function (e, t, n) {
          var r = n(67);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}";
        },
        function (e, t) {
          e.exports =
            ".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}";
        },
        function (e, t, n) {
          var r = n(70);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}";
        },
        function (e, t, n) {
          var r = n(72);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-align-center:not(.image_resized),.ck-content .image-style-align-left:not(.image_resized),.ck-content .image-style-align-right:not(.image_resized),.ck-content .image-style-side:not(.image_resized){max-width:50%}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}";
        },
        function (e, t, n) {
          var r = n(74);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}";
        },
        function (e, t, n) {
          var r = n(76);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-input{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}";
        },
        function (e, t, n) {
          var r = n(78);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}";
        },
        function (e, t, n) {
          var r = n(80);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            '.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c8,#b900b4,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}';
        },
        function (e, t, n) {
          var r = n(82);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-input{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-input{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-input .ck-labeled-input__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}";
        },
        function (e, t, n) {
          var r = n(84);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}";
        },
        function (e, t, n) {
          var r = n(86);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ":root{--ck-color-table-focused-cell-background:#f5fafe}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}";
        },
        function (e, t, n) {
          var r = n(88);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ":root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px;--ck-insert-table-dropdown-box-border-color:#bfbfbf;--ck-insert-table-dropdown-box-border-active-color:#53a0e4;--ck-insert-table-dropdown-box-active-background:#c7e5ff}.ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-insert-table-dropdown-box-border-color);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-insert-table-dropdown-box-border-active-color);background:var(--ck-insert-table-dropdown-box-active-background)}";
        },
        function (e, t, n) {
          var r = n(90);
          "string" == typeof r && (r = [[e.i, r, ""]]),
            n(1)(r, {
              injectType: "singletonStyleTag",
              insert: "head",
              singleton: !0,
            }),
            r.locals && (e.exports = r.locals);
        },
        function (e, t) {
          e.exports =
            ".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border-color:#d9d9d9}.ck-content .table table th{font-weight:700;background:#fafafa}";
        },
        function (e, t, n) {
          "use strict";
          n.r(t);
          var r = n(3),
            o = r.a.Symbol,
            a = Object.prototype,
            i = a.hasOwnProperty,
            s = a.toString,
            l = o ? o.toStringTag : void 0,
            c = Object.prototype.toString,
            u = o ? o.toStringTag : void 0,
            d = function (e) {
              return null == e
                ? void 0 === e
                  ? "[object Undefined]"
                  : "[object Null]"
                : u && u in Object(e)
                ? (function (e) {
                    var t = i.call(e, l),
                      n = e[l];
                    try {
                      e[l] = void 0;
                      var r = !0;
                    } catch (e) {}
                    var o = s.call(e);
                    return r && (t ? (e[l] = n) : delete e[l]), o;
                  })(e)
                : (function (e) {
                    return c.call(e);
                  })(e);
            },
            h = function (e, t) {
              return function (n) {
                return e(t(n));
              };
            },
            p = h(Object.getPrototypeOf, Object),
            f = function (e) {
              return null != e && "object" == typeof e;
            },
            m = Function.prototype,
            g = Object.prototype,
            _ = m.toString,
            v = g.hasOwnProperty,
            b = _.call(Object),
            y = function (e) {
              if (!f(e) || "[object Object]" != d(e)) return !1;
              var t = p(e);
              if (null === t) return !0;
              var n = v.call(t, "constructor") && t.constructor;
              return "function" == typeof n && n instanceof n && _.call(n) == b;
            },
            w = function (e, t) {
              return e === t || (e != e && t != t);
            },
            k = function (e, t) {
              for (var n = e.length; n--; ) if (w(e[n][0], t)) return n;
              return -1;
            },
            x = Array.prototype.splice;
          function M(e) {
            var t = -1,
              n = null == e ? 0 : e.length;
            for (this.clear(); ++t < n; ) {
              var r = e[t];
              this.set(r[0], r[1]);
            }
          }
          (M.prototype.clear = function () {
            (this.__data__ = []), (this.size = 0);
          }),
            (M.prototype.delete = function (e) {
              var t = this.__data__,
                n = k(t, e);
              return !(
                n < 0 ||
                (n == t.length - 1 ? t.pop() : x.call(t, n, 1), --this.size, 0)
              );
            }),
            (M.prototype.get = function (e) {
              var t = this.__data__,
                n = k(t, e);
              return n < 0 ? void 0 : t[n][1];
            }),
            (M.prototype.has = function (e) {
              return k(this.__data__, e) > -1;
            }),
            (M.prototype.set = function (e, t) {
              var n = this.__data__,
                r = k(n, e);
              return (
                r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this
              );
            });
          var E = M,
            T = function (e) {
              var t = typeof e;
              return null != e && ("object" == t || "function" == t);
            },
            S = function (e) {
              if (!T(e)) return !1;
              var t = d(e);
              return (
                "[object Function]" == t ||
                "[object GeneratorFunction]" == t ||
                "[object AsyncFunction]" == t ||
                "[object Proxy]" == t
              );
            },
            D = r.a["__core-js_shared__"],
            L = (function () {
              var e = /[^.]+$/.exec((D && D.keys && D.keys.IE_PROTO) || "");
              return e ? "Symbol(src)_1." + e : "";
            })(),
            C = Function.prototype.toString,
            P = function (e) {
              if (null != e) {
                try {
                  return C.call(e);
                } catch (e) {}
                try {
                  return e + "";
                } catch (e) {}
              }
              return "";
            },
            O = /^\[object .+?Constructor\]$/,
            N = Function.prototype,
            A = Object.prototype,
            I = N.toString,
            R = A.hasOwnProperty,
            Y = RegExp(
              "^" +
                I.call(R)
                  .replace(/[\\^$.*+?()[\]{}|]/g, "\\$&")
                  .replace(
                    /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
                    "$1.*?"
                  ) +
                "$"
            ),
            j = function (e) {
              return (
                !(
                  !T(e) ||
                  (function (e) {
                    return !!L && L in e;
                  })(e)
                ) && (S(e) ? Y : O).test(P(e))
              );
            },
            F = function (e, t) {
              var n = (function (e, t) {
                return null == e ? void 0 : e[t];
              })(e, t);
              return j(n) ? n : void 0;
            },
            H = F(r.a, "Map"),
            z = F(Object, "create"),
            B = Object.prototype.hasOwnProperty,
            U = Object.prototype.hasOwnProperty;
          function V(e) {
            var t = -1,
              n = null == e ? 0 : e.length;
            for (this.clear(); ++t < n; ) {
              var r = e[t];
              this.set(r[0], r[1]);
            }
          }
          (V.prototype.clear = function () {
            (this.__data__ = z ? z(null) : {}), (this.size = 0);
          }),
            (V.prototype.delete = function (e) {
              var t = this.has(e) && delete this.__data__[e];
              return (this.size -= t ? 1 : 0), t;
            }),
            (V.prototype.get = function (e) {
              var t = this.__data__;
              if (z) {
                var n = t[e];
                return "__lodash_hash_undefined__" === n ? void 0 : n;
              }
              return B.call(t, e) ? t[e] : void 0;
            }),
            (V.prototype.has = function (e) {
              var t = this.__data__;
              return z ? void 0 !== t[e] : U.call(t, e);
            }),
            (V.prototype.set = function (e, t) {
              var n = this.__data__;
              return (
                (this.size += this.has(e) ? 0 : 1),
                (n[e] = z && void 0 === t ? "__lodash_hash_undefined__" : t),
                this
              );
            });
          var W = V,
            q = function (e, t) {
              var n = e.__data__;
              return (function (e) {
                var t = typeof e;
                return "string" == t ||
                  "number" == t ||
                  "symbol" == t ||
                  "boolean" == t
                  ? "__proto__" !== e
                  : null === e;
              })(t)
                ? n["string" == typeof t ? "string" : "hash"]
                : n.map;
            };
          function G(e) {
            var t = -1,
              n = null == e ? 0 : e.length;
            for (this.clear(); ++t < n; ) {
              var r = e[t];
              this.set(r[0], r[1]);
            }
          }
          (G.prototype.clear = function () {
            (this.size = 0),
              (this.__data__ = {
                hash: new W(),
                map: new (H || E)(),
                string: new W(),
              });
          }),
            (G.prototype.delete = function (e) {
              var t = q(this, e).delete(e);
              return (this.size -= t ? 1 : 0), t;
            }),
            (G.prototype.get = function (e) {
              return q(this, e).get(e);
            }),
            (G.prototype.has = function (e) {
              return q(this, e).has(e);
            }),
            (G.prototype.set = function (e, t) {
              var n = q(this, e),
                r = n.size;
              return n.set(e, t), (this.size += n.size == r ? 0 : 1), this;
            });
          var J = G;
          function K(e) {
            var t = (this.__data__ = new E(e));
            this.size = t.size;
          }
          (K.prototype.clear = function () {
            (this.__data__ = new E()), (this.size = 0);
          }),
            (K.prototype.delete = function (e) {
              var t = this.__data__,
                n = t.delete(e);
              return (this.size = t.size), n;
            }),
            (K.prototype.get = function (e) {
              return this.__data__.get(e);
            }),
            (K.prototype.has = function (e) {
              return this.__data__.has(e);
            }),
            (K.prototype.set = function (e, t) {
              var n = this.__data__;
              if (n instanceof E) {
                var r = n.__data__;
                if (!H || r.length < 199)
                  return r.push([e, t]), (this.size = ++n.size), this;
                n = this.__data__ = new J(r);
              }
              return n.set(e, t), (this.size = n.size), this;
            });
          var Q = K,
            X = (function () {
              try {
                var e = F(Object, "defineProperty");
                return e({}, "", {}), e;
              } catch (e) {}
            })(),
            $ = function (e, t, n) {
              "__proto__" == t && X
                ? X(e, t, {
                    configurable: !0,
                    enumerable: !0,
                    value: n,
                    writable: !0,
                  })
                : (e[t] = n);
            },
            Z = Object.prototype.hasOwnProperty,
            ee = function (e, t, n) {
              var r = e[t];
              (Z.call(e, t) && w(r, n) && (void 0 !== n || t in e)) ||
                $(e, t, n);
            },
            te = function (e, t, n, r) {
              var o = !n;
              n || (n = {});
              for (var a = -1, i = t.length; ++a < i; ) {
                var s = t[a],
                  l = r ? r(n[s], e[s], s, n, e) : void 0;
                void 0 === l && (l = e[s]), o ? $(n, s, l) : ee(n, s, l);
              }
              return n;
            },
            ne = function (e) {
              return f(e) && "[object Arguments]" == d(e);
            },
            re = Object.prototype,
            oe = re.hasOwnProperty,
            ae = re.propertyIsEnumerable,
            ie = ne(
              (function () {
                return arguments;
              })()
            )
              ? ne
              : function (e) {
                  return f(e) && oe.call(e, "callee") && !ae.call(e, "callee");
                },
            se = Array.isArray,
            le = n(5),
            ce = /^(?:0|[1-9]\d*)$/,
            ue = function (e, t) {
              var n = typeof e;
              return (
                !!(t = null == t ? 9007199254740991 : t) &&
                ("number" == n || ("symbol" != n && ce.test(e))) &&
                e > -1 &&
                e % 1 == 0 &&
                e < t
              );
            },
            de = function (e) {
              return (
                "number" == typeof e &&
                e > -1 &&
                e % 1 == 0 &&
                e <= 9007199254740991
              );
            },
            he = {};
          (he["[object Float32Array]"] = he["[object Float64Array]"] = he[
            "[object Int8Array]"
          ] = he["[object Int16Array]"] = he["[object Int32Array]"] = he[
            "[object Uint8Array]"
          ] = he["[object Uint8ClampedArray]"] = he[
            "[object Uint16Array]"
          ] = he["[object Uint32Array]"] = !0),
            (he["[object Arguments]"] = he["[object Array]"] = he[
              "[object ArrayBuffer]"
            ] = he["[object Boolean]"] = he["[object DataView]"] = he[
              "[object Date]"
            ] = he["[object Error]"] = he["[object Function]"] = he[
              "[object Map]"
            ] = he["[object Number]"] = he["[object Object]"] = he[
              "[object RegExp]"
            ] = he["[object Set]"] = he["[object String]"] = he[
              "[object WeakMap]"
            ] = !1);
          var pe = function (e) {
              return function (t) {
                return e(t);
              };
            },
            fe = n(4),
            me = fe.a && fe.a.isTypedArray,
            ge = me
              ? pe(me)
              : function (e) {
                  return f(e) && de(e.length) && !!he[d(e)];
                },
            _e = Object.prototype.hasOwnProperty,
            ve = function (e, t) {
              var n = se(e),
                r = !n && ie(e),
                o = !n && !r && Object(le.a)(e),
                a = !n && !r && !o && ge(e),
                i = n || r || o || a,
                s = i
                  ? (function (e, t) {
                      for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n);
                      return r;
                    })(e.length, String)
                  : [],
                l = s.length;
              for (var c in e)
                (!t && !_e.call(e, c)) ||
                  (i &&
                    ("length" == c ||
                      (o && ("offset" == c || "parent" == c)) ||
                      (a &&
                        ("buffer" == c ||
                          "byteLength" == c ||
                          "byteOffset" == c)) ||
                      ue(c, l))) ||
                  s.push(c);
              return s;
            },
            be = Object.prototype,
            ye = function (e) {
              var t = e && e.constructor;
              return e === (("function" == typeof t && t.prototype) || be);
            },
            we = h(Object.keys, Object),
            ke = Object.prototype.hasOwnProperty,
            xe = function (e) {
              return null != e && de(e.length) && !S(e);
            },
            Me = function (e) {
              return xe(e)
                ? ve(e)
                : (function (e) {
                    if (!ye(e)) return we(e);
                    var t = [];
                    for (var n in Object(e))
                      ke.call(e, n) && "constructor" != n && t.push(n);
                    return t;
                  })(e);
            },
            Ee = Object.prototype.hasOwnProperty,
            Te = function (e) {
              if (!T(e))
                return (function (e) {
                  var t = [];
                  if (null != e) for (var n in Object(e)) t.push(n);
                  return t;
                })(e);
              var t = ye(e),
                n = [];
              for (var r in e)
                ("constructor" != r || (!t && Ee.call(e, r))) && n.push(r);
              return n;
            },
            Se = function (e) {
              return xe(e) ? ve(e, !0) : Te(e);
            },
            De = n(12),
            Le = function () {
              return [];
            },
            Ce = Object.prototype.propertyIsEnumerable,
            Pe = Object.getOwnPropertySymbols,
            Oe = Pe
              ? function (e) {
                  return null == e
                    ? []
                    : ((e = Object(e)),
                      (function (e, t) {
                        for (
                          var n = -1,
                            r = null == e ? 0 : e.length,
                            o = 0,
                            a = [];
                          ++n < r;

                        ) {
                          var i = e[n];
                          t(i, n, e) && (a[o++] = i);
                        }
                        return a;
                      })(Pe(e), function (t) {
                        return Ce.call(e, t);
                      }));
                }
              : Le,
            Ne = function (e, t) {
              for (var n = -1, r = t.length, o = e.length; ++n < r; )
                e[o + n] = t[n];
              return e;
            },
            Ae = Object.getOwnPropertySymbols
              ? function (e) {
                  for (var t = []; e; ) Ne(t, Oe(e)), (e = p(e));
                  return t;
                }
              : Le,
            Ie = function (e, t, n) {
              var r = t(e);
              return se(e) ? r : Ne(r, n(e));
            },
            Re = function (e) {
              return Ie(e, Me, Oe);
            },
            Ye = function (e) {
              return Ie(e, Se, Ae);
            },
            je = F(r.a, "DataView"),
            Fe = F(r.a, "Promise"),
            He = F(r.a, "Set"),
            ze = F(r.a, "WeakMap"),
            Be = P(je),
            Ue = P(H),
            Ve = P(Fe),
            We = P(He),
            qe = P(ze),
            Ge = d;
          ((je && "[object DataView]" != Ge(new je(new ArrayBuffer(1)))) ||
            (H && "[object Map]" != Ge(new H())) ||
            (Fe && "[object Promise]" != Ge(Fe.resolve())) ||
            (He && "[object Set]" != Ge(new He())) ||
            (ze && "[object WeakMap]" != Ge(new ze()))) &&
            (Ge = function (e) {
              var t = d(e),
                n = "[object Object]" == t ? e.constructor : void 0,
                r = n ? P(n) : "";
              if (r)
                switch (r) {
                  case Be:
                    return "[object DataView]";
                  case Ue:
                    return "[object Map]";
                  case Ve:
                    return "[object Promise]";
                  case We:
                    return "[object Set]";
                  case qe:
                    return "[object WeakMap]";
                }
              return t;
            });
          var Je = Ge,
            Ke = Object.prototype.hasOwnProperty,
            Qe = r.a.Uint8Array,
            Xe = function (e) {
              var t = new e.constructor(e.byteLength);
              return new Qe(t).set(new Qe(e)), t;
            },
            $e = /\w*$/,
            Ze = o ? o.prototype : void 0,
            et = Ze ? Ze.valueOf : void 0,
            tt = function (e, t, n) {
              var r = e.constructor;
              switch (t) {
                case "[object ArrayBuffer]":
                  return Xe(e);
                case "[object Boolean]":
                case "[object Date]":
                  return new r(+e);
                case "[object DataView]":
                  return (function (e, t) {
                    var n = t ? Xe(e.buffer) : e.buffer;
                    return new e.constructor(n, e.byteOffset, e.byteLength);
                  })(e, n);
                case "[object Float32Array]":
                case "[object Float64Array]":
                case "[object Int8Array]":
                case "[object Int16Array]":
                case "[object Int32Array]":
                case "[object Uint8Array]":
                case "[object Uint8ClampedArray]":
                case "[object Uint16Array]":
                case "[object Uint32Array]":
                  return (function (e, t) {
                    var n = t ? Xe(e.buffer) : e.buffer;
                    return new e.constructor(n, e.byteOffset, e.length);
                  })(e, n);
                case "[object Map]":
                  return new r();
                case "[object Number]":
                case "[object String]":
                  return new r(e);
                case "[object RegExp]":
                  return (function (e) {
                    var t = new e.constructor(e.source, $e.exec(e));
                    return (t.lastIndex = e.lastIndex), t;
                  })(e);
                case "[object Set]":
                  return new r();
                case "[object Symbol]":
                  return (function (e) {
                    return et ? Object(et.call(e)) : {};
                  })(e);
              }
            },
            nt = Object.create,
            rt = (function () {
              function e() {}
              return function (t) {
                if (!T(t)) return {};
                if (nt) return nt(t);
                e.prototype = t;
                var n = new e();
                return (e.prototype = void 0), n;
              };
            })(),
            ot = fe.a && fe.a.isMap,
            at = ot
              ? pe(ot)
              : function (e) {
                  return f(e) && "[object Map]" == Je(e);
                },
            it = fe.a && fe.a.isSet,
            st = it
              ? pe(it)
              : function (e) {
                  return f(e) && "[object Set]" == Je(e);
                },
            lt = "[object Arguments]",
            ct = "[object Function]",
            ut = "[object Object]",
            dt = {};
          (dt[lt] = dt["[object Array]"] = dt["[object ArrayBuffer]"] = dt[
            "[object DataView]"
          ] = dt["[object Boolean]"] = dt["[object Date]"] = dt[
            "[object Float32Array]"
          ] = dt["[object Float64Array]"] = dt["[object Int8Array]"] = dt[
            "[object Int16Array]"
          ] = dt["[object Int32Array]"] = dt["[object Map]"] = dt[
            "[object Number]"
          ] = dt[ut] = dt["[object RegExp]"] = dt["[object Set]"] = dt[
            "[object String]"
          ] = dt["[object Symbol]"] = dt["[object Uint8Array]"] = dt[
            "[object Uint8ClampedArray]"
          ] = dt["[object Uint16Array]"] = dt["[object Uint32Array]"] = !0),
            (dt["[object Error]"] = dt[ct] = dt["[object WeakMap]"] = !1);
          var ht = function e(t, n, r, o, a, i) {
              var s,
                l = 1 & n,
                c = 2 & n,
                u = 4 & n;
              if ((r && (s = a ? r(t, o, a, i) : r(t)), void 0 !== s)) return s;
              if (!T(t)) return t;
              var d = se(t);
              if (d) {
                if (
                  ((s = (function (e) {
                    var t = e.length,
                      n = new e.constructor(t);
                    return (
                      t &&
                        "string" == typeof e[0] &&
                        Ke.call(e, "index") &&
                        ((n.index = e.index), (n.input = e.input)),
                      n
                    );
                  })(t)),
                  !l)
                )
                  return (function (e, t) {
                    var n = -1,
                      r = e.length;
                    for (t || (t = Array(r)); ++n < r; ) t[n] = e[n];
                    return t;
                  })(t, s);
              } else {
                var h = Je(t),
                  f = h == ct || "[object GeneratorFunction]" == h;
                if (Object(le.a)(t)) return Object(De.a)(t, l);
                if (h == ut || h == lt || (f && !a)) {
                  if (
                    ((s =
                      c || f
                        ? {}
                        : (function (e) {
                            return "function" != typeof e.constructor || ye(e)
                              ? {}
                              : rt(p(e));
                          })(t)),
                    !l)
                  )
                    return c
                      ? (function (e, t) {
                          return te(e, Ae(e), t);
                        })(
                          t,
                          (function (e, t) {
                            return e && te(t, Se(t), e);
                          })(s, t)
                        )
                      : (function (e, t) {
                          return te(e, Oe(e), t);
                        })(
                          t,
                          (function (e, t) {
                            return e && te(t, Me(t), e);
                          })(s, t)
                        );
                } else {
                  if (!dt[h]) return a ? t : {};
                  s = tt(t, h, l);
                }
              }
              i || (i = new Q());
              var m = i.get(t);
              if (m) return m;
              i.set(t, s),
                st(t)
                  ? t.forEach(function (o) {
                      s.add(e(o, n, r, o, t, i));
                    })
                  : at(t) &&
                    t.forEach(function (o, a) {
                      s.set(a, e(o, n, r, a, t, i));
                    });
              var g = u ? (c ? Ye : Re) : c ? keysIn : Me,
                _ = d ? void 0 : g(t);
              return (
                (function (e, t) {
                  for (
                    var n = -1, r = null == e ? 0 : e.length;
                    ++n < r && !1 !== t(e[n], n, e);

                  );
                })(_ || t, function (o, a) {
                  _ && (o = t[(a = o)]), ee(s, a, e(o, n, r, a, t, i));
                }),
                s
              );
            },
            pt = function (e, t) {
              return ht(e, 5, (t = "function" == typeof t ? t : void 0));
            },
            ft = function (e) {
              return f(e) && 1 === e.nodeType && !y(e);
            };
          class mt {
            constructor(e, t) {
              (this._config = {}),
                t && this.define(t),
                e && this._setObjectToTarget(this._config, e);
            }
            set(e, t) {
              this._setToTarget(this._config, e, t);
            }
            define(e, t) {
              this._setToTarget(this._config, e, t, !0);
            }
            get(e) {
              return this._getFromSource(this._config, e);
            }
            _setToTarget(e, t, n, r = !1) {
              if (y(t)) return void this._setObjectToTarget(e, t, r);
              const o = t.split(".");
              t = o.pop();
              for (const t of o) y(e[t]) || (e[t] = {}), (e = e[t]);
              if (y(n))
                return (
                  y(e[t]) || (e[t] = {}),
                  (e = e[t]),
                  void this._setObjectToTarget(e, n, r)
                );
              (r && void 0 !== e[t]) || (e[t] = n);
            }
            _getFromSource(e, t) {
              const n = t.split(".");
              t = n.pop();
              for (const t of n) {
                if (!y(e[t])) {
                  e = null;
                  break;
                }
                e = e[t];
              }
              return e
                ? (function (e) {
                    return pt(e, gt);
                  })(e[t])
                : void 0;
            }
            _setObjectToTarget(e, t, n) {
              Object.keys(t).forEach((r) => {
                this._setToTarget(e, r, t[r], n);
              });
            }
          }
          function gt(e) {
            return ft(e) ? e : void 0;
          }
          var _t = n(0);
          class vt {
            constructor(e, t) {
              (this.source = e),
                (this.name = t),
                (this.path = []),
                (this.stop = function e() {
                  e.called = !0;
                }),
                (this.off = function e() {
                  e.called = !0;
                });
            }
          }
          function bt() {
            let e = "e";
            for (let t = 0; t < 8; t++)
              e += Math.floor(65536 * (1 + Math.random()))
                .toString(16)
                .substring(1);
            return e;
          }
          var yt = {
            get(e) {
              return "number" != typeof e ? this[e] || this.normal : e;
            },
            highest: 1e5,
            high: 1e3,
            normal: 0,
            low: -1e3,
            lowest: -1e5,
          };
          n(6);
          const wt = Symbol("listeningTo"),
            kt = Symbol("emitterId");
          var xt = {
            on(e, t, n = {}) {
              this.listenTo(this, e, t, n);
            },
            once(e, t, n) {
              let r = !1;
              this.listenTo(
                this,
                e,
                function (e, ...n) {
                  r || ((r = !0), e.off(), t.call(this, e, ...n));
                },
                n
              );
            },
            off(e, t) {
              this.stopListening(this, e, t);
            },
            listenTo(e, t, n, r = {}) {
              let o, a;
              this[wt] || (this[wt] = {});
              const i = this[wt];
              Et(e) || Mt(e);
              const s = Et(e);
              (o = i[s]) || (o = i[s] = { emitter: e, callbacks: {} }),
                (a = o.callbacks[t]) || (a = o.callbacks[t] = []),
                a.push(n),
                (function (e, t) {
                  const n = Tt(e);
                  if (n[t]) return;
                  let r = t,
                    o = null;
                  const a = [];
                  for (; "" !== r && !n[r]; )
                    (n[r] = { callbacks: [], childEvents: [] }),
                      a.push(n[r]),
                      o && n[r].childEvents.push(o),
                      (o = r),
                      (r = r.substr(0, r.lastIndexOf(":")));
                  if ("" !== r) {
                    for (const e of a) e.callbacks = n[r].callbacks.slice();
                    n[r].childEvents.push(o);
                  }
                })(e, t);
              const l = St(e, t),
                c = yt.get(r.priority),
                u = { callback: n, priority: c };
              for (const e of l) {
                let t = !1;
                for (let n = 0; n < e.length; n++)
                  if (e[n].priority < c) {
                    e.splice(n, 0, u), (t = !0);
                    break;
                  }
                t || e.push(u);
              }
            },
            stopListening(e, t, n) {
              const r = this[wt];
              let o = e && Et(e);
              const a = r && o && r[o],
                i = a && t && a.callbacks[t];
              if (!(!r || (e && !a) || (t && !i)))
                if (n) Lt(e, t, n);
                else if (i) {
                  for (; (n = i.pop()); ) Lt(e, t, n);
                  delete a.callbacks[t];
                } else if (a) {
                  for (t in a.callbacks) this.stopListening(e, t);
                  delete r[o];
                } else {
                  for (o in r) this.stopListening(r[o].emitter);
                  delete this[wt];
                }
            },
            fire(e, ...t) {
              const n = e instanceof vt ? e : new vt(this, e),
                r = n.name;
              let o = (function e(t, n) {
                let r;
                return t._events && (r = t._events[n]) && r.callbacks.length
                  ? r.callbacks
                  : n.indexOf(":") > -1
                  ? e(t, n.substr(0, n.lastIndexOf(":")))
                  : null;
              })(this, r);
              if ((n.path.push(this), o)) {
                const e = [n, ...t];
                o = Array.from(o);
                for (
                  let t = 0;
                  t < o.length &&
                  (o[t].callback.apply(this, e),
                  n.off.called &&
                    (delete n.off.called, Lt(this, r, o[t].callback)),
                  !n.stop.called);
                  t++
                );
              }
              if (this._delegations) {
                const e = this._delegations.get(r),
                  o = this._delegations.get("*");
                e && Dt(e, n, t), o && Dt(o, n, t);
              }
              return n.return;
            },
            delegate(...e) {
              return {
                to: (t, n) => {
                  this._delegations || (this._delegations = new Map()),
                    e.forEach((e) => {
                      const r = this._delegations.get(e);
                      r
                        ? r.set(t, n)
                        : this._delegations.set(e, new Map([[t, n]]));
                    });
                },
              };
            },
            stopDelegating(e, t) {
              if (this._delegations)
                if (e)
                  if (t) {
                    const n = this._delegations.get(e);
                    n && n.delete(t);
                  } else this._delegations.delete(e);
                else this._delegations.clear();
            },
          };
          function Mt(e, t) {
            e[kt] || (e[kt] = t || bt());
          }
          function Et(e) {
            return e[kt];
          }
          function Tt(e) {
            return (
              e._events || Object.defineProperty(e, "_events", { value: {} }),
              e._events
            );
          }
          function St(e, t) {
            const n = Tt(e)[t];
            if (!n) return [];
            let r = [n.callbacks];
            for (let t = 0; t < n.childEvents.length; t++) {
              const o = St(e, n.childEvents[t]);
              r = r.concat(o);
            }
            return r;
          }
          function Dt(e, t, n) {
            for (let [r, o] of e) {
              o ? "function" == typeof o && (o = o(t.name)) : (o = t.name);
              const e = new vt(t.source, o);
              (e.path = [...t.path]), r.fire(e, ...n);
            }
          }
          function Lt(e, t, n) {
            const r = St(e, t);
            for (const e of r)
              for (let t = 0; t < e.length; t++)
                e[t].callback == n && (e.splice(t, 1), t--);
          }
          function Ct(e, ...t) {
            t.forEach((t) => {
              Object.getOwnPropertyNames(t)
                .concat(Object.getOwnPropertySymbols(t))
                .forEach((n) => {
                  if (n in e.prototype) return;
                  const r = Object.getOwnPropertyDescriptor(t, n);
                  (r.enumerable = !1), Object.defineProperty(e.prototype, n, r);
                });
            });
          }
          function Pt(e, t) {
            const n = Math.min(e.length, t.length);
            for (let r = 0; r < n; r++) if (e[r] != t[r]) return r;
            return e.length == t.length
              ? "same"
              : e.length < t.length
              ? "prefix"
              : "extension";
          }
          var Ot = function (e) {
            return ht(e, 4);
          };
          class Nt {
            constructor() {
              this.parent = null;
            }
            get index() {
              let e;
              if (!this.parent) return null;
              if (-1 == (e = this.parent.getChildIndex(this)))
                throw new _t.b(
                  "view-node-not-found-in-parent: The node's parent does not contain this node.",
                  this
                );
              return e;
            }
            get nextSibling() {
              const e = this.index;
              return (null !== e && this.parent.getChild(e + 1)) || null;
            }
            get previousSibling() {
              const e = this.index;
              return (null !== e && this.parent.getChild(e - 1)) || null;
            }
            get root() {
              let e = this;
              for (; e.parent; ) e = e.parent;
              return e;
            }
            get document() {
              return this.parent instanceof Nt ? this.parent.document : null;
            }
            getPath() {
              const e = [];
              let t = this;
              for (; t.parent; ) e.unshift(t.index), (t = t.parent);
              return e;
            }
            getAncestors(e = { includeSelf: !1, parentFirst: !1 }) {
              const t = [];
              let n = e.includeSelf ? this : this.parent;
              for (; n; )
                t[e.parentFirst ? "push" : "unshift"](n), (n = n.parent);
              return t;
            }
            getCommonAncestor(e, t = {}) {
              const n = this.getAncestors(t),
                r = e.getAncestors(t);
              let o = 0;
              for (; n[o] == r[o] && n[o]; ) o++;
              return 0 === o ? null : n[o - 1];
            }
            isBefore(e) {
              if (this == e) return !1;
              if (this.root !== e.root) return !1;
              const t = this.getPath(),
                n = e.getPath(),
                r = Pt(t, n);
              switch (r) {
                case "prefix":
                  return !0;
                case "extension":
                  return !1;
                default:
                  return t[r] < n[r];
              }
            }
            isAfter(e) {
              return this != e && this.root === e.root && !this.isBefore(e);
            }
            _remove() {
              this.parent._removeChildren(this.index);
            }
            _fireChange(e, t) {
              this.fire("change:" + e, t),
                this.parent && this.parent._fireChange(e, t);
            }
            toJSON() {
              const e = Ot(this);
              return delete e.parent, e;
            }
            is(e) {
              return "node" == e || "view:node" == e;
            }
          }
          Ct(Nt, xt);
          class At extends Nt {
            constructor(e) {
              super(), (this._textData = e);
            }
            is(e) {
              return "text" == e || "view:text" == e || super.is(e);
            }
            get data() {
              return this._textData;
            }
            get _data() {
              return this.data;
            }
            set _data(e) {
              this._fireChange("text", this), (this._textData = e);
            }
            isSimilar(e) {
              return e instanceof At && (this === e || this.data === e.data);
            }
            _clone() {
              return new At(this.data);
            }
          }
          class It {
            constructor(e, t, n) {
              if (((this.textNode = e), t < 0 || t > e.data.length))
                throw new _t.b(
                  "view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",
                  this
                );
              if (n < 0 || t + n > e.data.length)
                throw new _t.b(
                  "view-textproxy-wrong-length: Given length value is incorrect.",
                  this
                );
              (this.data = e.data.substring(t, t + n)), (this.offsetInText = t);
            }
            get offsetSize() {
              return this.data.length;
            }
            get isPartial() {
              return this.data.length !== this.textNode.data.length;
            }
            get parent() {
              return this.textNode.parent;
            }
            get root() {
              return this.textNode.root;
            }
            get document() {
              return this.textNode.document;
            }
            is(e) {
              return "textProxy" == e || "view:textProxy" == e;
            }
            getAncestors(e = { includeSelf: !1, parentFirst: !1 }) {
              const t = [];
              let n = e.includeSelf ? this.textNode : this.parent;
              for (; null !== n; )
                t[e.parentFirst ? "push" : "unshift"](n), (n = n.parent);
              return t;
            }
          }
          function Rt(e) {
            const t = new Map();
            for (const n in e) t.set(n, e[n]);
            return t;
          }
          function Yt(e) {
            return !(!e || !e[Symbol.iterator]);
          }
          class jt {
            constructor(...e) {
              (this._patterns = []), this.add(...e);
            }
            add(...e) {
              for (let t of e)
                ("string" == typeof t || t instanceof RegExp) &&
                  (t = { name: t }),
                  t.classes &&
                    ("string" == typeof t.classes ||
                      t.classes instanceof RegExp) &&
                    (t.classes = [t.classes]),
                  this._patterns.push(t);
            }
            match(...e) {
              for (const t of e)
                for (const e of this._patterns) {
                  const n = Ft(t, e);
                  if (n) return { element: t, pattern: e, match: n };
                }
              return null;
            }
            matchAll(...e) {
              const t = [];
              for (const n of e)
                for (const e of this._patterns) {
                  const r = Ft(n, e);
                  r && t.push({ element: n, pattern: e, match: r });
                }
              return t.length > 0 ? t : null;
            }
            getElementName() {
              if (1 !== this._patterns.length) return null;
              const e = this._patterns[0],
                t = e.name;
              return "function" == typeof e || !t || t instanceof RegExp
                ? null
                : t;
            }
          }
          function Ft(e, t) {
            if ("function" == typeof t) return t(e);
            const n = {};
            return (t.name &&
              ((n.name = (function (e, t) {
                return e instanceof RegExp ? e.test(t) : e === t;
              })(t.name, e.name)),
              !n.name)) ||
              (t.attributes &&
                ((n.attributes = (function (e, t) {
                  const n = [];
                  for (const r in e) {
                    const o = e[r];
                    if (!t.hasAttribute(r)) return null;
                    {
                      const e = t.getAttribute(r);
                      if (!0 === o) n.push(r);
                      else if (o instanceof RegExp) {
                        if (!o.test(e)) return null;
                        n.push(r);
                      } else {
                        if (e !== o) return null;
                        n.push(r);
                      }
                    }
                  }
                  return n;
                })(t.attributes, e)),
                !n.attributes))
              ? null
              : !(
                  t.classes &&
                  ((n.classes = (function (e, t) {
                    const n = [];
                    for (const r of e)
                      if (r instanceof RegExp) {
                        const e = t.getClassNames();
                        for (const t of e) r.test(t) && n.push(t);
                        if (0 === n.length) return null;
                      } else {
                        if (!t.hasClass(r)) return null;
                        n.push(r);
                      }
                    return n;
                  })(t.classes, e)),
                  !n.classes)
                ) &&
                  !(
                    t.styles &&
                    ((n.styles = (function (e, t) {
                      const n = [];
                      for (const r in e) {
                        const o = e[r];
                        if (!t.hasStyle(r)) return null;
                        {
                          const e = t.getStyle(r);
                          if (o instanceof RegExp) {
                            if (!o.test(e)) return null;
                            n.push(r);
                          } else {
                            if (e !== o) return null;
                            n.push(r);
                          }
                        }
                      }
                      return n;
                    })(t.styles, e)),
                    !n.styles)
                  ) &&
                  n;
          }
          class Ht extends Nt {
            constructor(e, t, n) {
              if (
                (super(),
                (this.name = e),
                (this._attrs = (function (e) {
                  e = y(e) ? Rt(e) : new Map(e);
                  for (const [t, n] of e)
                    null === n
                      ? e.delete(t)
                      : "string" != typeof n && e.set(t, String(n));
                  return e;
                })(t)),
                (this._children = []),
                n && this._insertChild(0, n),
                (this._classes = new Set()),
                this._attrs.has("class"))
              ) {
                const e = this._attrs.get("class");
                Bt(this._classes, e), this._attrs.delete("class");
              }
              (this._styles = new Map()),
                this._attrs.has("style") &&
                  (zt(this._styles, this._attrs.get("style")),
                  this._attrs.delete("style")),
                (this._customProperties = new Map());
            }
            get childCount() {
              return this._children.length;
            }
            get isEmpty() {
              return 0 === this._children.length;
            }
            is(e, t = null) {
              const n = e.replace(/^view:/, "");
              return t
                ? "element" == n && t == this.name
                : "element" == n || n == this.name || super.is(e);
            }
            getChild(e) {
              return this._children[e];
            }
            getChildIndex(e) {
              return this._children.indexOf(e);
            }
            getChildren() {
              return this._children[Symbol.iterator]();
            }
            *getAttributeKeys() {
              this._classes.size > 0 && (yield "class"),
                this._styles.size > 0 && (yield "style"),
                yield* this._attrs.keys();
            }
            *getAttributes() {
              yield* this._attrs.entries(),
                this._classes.size > 0 &&
                  (yield ["class", this.getAttribute("class")]),
                this._styles.size > 0 &&
                  (yield ["style", this.getAttribute("style")]);
            }
            getAttribute(e) {
              if ("class" == e)
                return this._classes.size > 0
                  ? [...this._classes].join(" ")
                  : void 0;
              if ("style" != e) return this._attrs.get(e);
              if (this._styles.size > 0) {
                let e = "";
                for (const [t, n] of this._styles) e += `${t}:${n};`;
                return e;
              }
            }
            hasAttribute(e) {
              return "class" == e
                ? this._classes.size > 0
                : "style" == e
                ? this._styles.size > 0
                : this._attrs.has(e);
            }
            isSimilar(e) {
              if (!(e instanceof Ht)) return !1;
              if (this === e) return !0;
              if (this.name != e.name) return !1;
              if (
                this._attrs.size !== e._attrs.size ||
                this._classes.size !== e._classes.size ||
                this._styles.size !== e._styles.size
              )
                return !1;
              for (const [t, n] of this._attrs)
                if (!e._attrs.has(t) || e._attrs.get(t) !== n) return !1;
              for (const t of this._classes) if (!e._classes.has(t)) return !1;
              for (const [t, n] of this._styles)
                if (!e._styles.has(t) || e._styles.get(t) !== n) return !1;
              return !0;
            }
            hasClass(...e) {
              for (const t of e) if (!this._classes.has(t)) return !1;
              return !0;
            }
            getClassNames() {
              return this._classes.keys();
            }
            getStyle(e) {
              return this._styles.get(e);
            }
            getStyleNames() {
              return this._styles.keys();
            }
            hasStyle(...e) {
              for (const t of e) if (!this._styles.has(t)) return !1;
              return !0;
            }
            findAncestor(...e) {
              const t = new jt(...e);
              let n = this.parent;
              for (; n; ) {
                if (t.match(n)) return n;
                n = n.parent;
              }
              return null;
            }
            getCustomProperty(e) {
              return this._customProperties.get(e);
            }
            *getCustomProperties() {
              yield* this._customProperties.entries();
            }
            getIdentity() {
              const e = Array.from(this._classes).sort().join(","),
                t = Array.from(this._styles)
                  .map((e) => `${e[0]}:${e[1]}`)
                  .sort()
                  .join(";"),
                n = Array.from(this._attrs)
                  .map((e) => `${e[0]}="${e[1]}"`)
                  .sort()
                  .join(" ");
              return (
                this.name +
                ("" == e ? "" : ` class="${e}"`) +
                ("" == t ? "" : ` style="${t}"`) +
                ("" == n ? "" : " " + n)
              );
            }
            _clone(e = !1) {
              const t = [];
              if (e) for (const n of this.getChildren()) t.push(n._clone(e));
              const n = new this.constructor(this.name, this._attrs, t);
              return (
                (n._classes = new Set(this._classes)),
                (n._styles = new Map(this._styles)),
                (n._customProperties = new Map(this._customProperties)),
                (n.getFillerOffset = this.getFillerOffset),
                n
              );
            }
            _appendChild(e) {
              return this._insertChild(this.childCount, e);
            }
            _insertChild(e, t) {
              this._fireChange("children", this);
              let n = 0;
              const r = (function (e) {
                return "string" == typeof e
                  ? [new At(e)]
                  : (Yt(e) || (e = [e]),
                    Array.from(e).map((e) =>
                      "string" == typeof e
                        ? new At(e)
                        : e instanceof It
                        ? new At(e.data)
                        : e
                    ));
              })(t);
              for (const t of r)
                null !== t.parent && t._remove(),
                  (t.parent = this),
                  this._children.splice(e, 0, t),
                  e++,
                  n++;
              return n;
            }
            _removeChildren(e, t = 1) {
              this._fireChange("children", this);
              for (let n = e; n < e + t; n++) this._children[n].parent = null;
              return this._children.splice(e, t);
            }
            _setAttribute(e, t) {
              (t = String(t)),
                this._fireChange("attributes", this),
                "class" == e
                  ? Bt(this._classes, t)
                  : "style" == e
                  ? zt(this._styles, t)
                  : this._attrs.set(e, t);
            }
            _removeAttribute(e) {
              return (
                this._fireChange("attributes", this),
                "class" == e
                  ? this._classes.size > 0 && (this._classes.clear(), !0)
                  : "style" == e
                  ? this._styles.size > 0 && (this._styles.clear(), !0)
                  : this._attrs.delete(e)
              );
            }
            _addClass(e) {
              this._fireChange("attributes", this),
                (e = Array.isArray(e) ? e : [e]).forEach((e) =>
                  this._classes.add(e)
                );
            }
            _removeClass(e) {
              this._fireChange("attributes", this),
                (e = Array.isArray(e) ? e : [e]).forEach((e) =>
                  this._classes.delete(e)
                );
            }
            _setStyle(e, t) {
              if ((this._fireChange("attributes", this), y(e))) {
                const t = Object.keys(e);
                for (const n of t) this._styles.set(n, e[n]);
              } else this._styles.set(e, t);
            }
            _removeStyle(e) {
              this._fireChange("attributes", this),
                (e = Array.isArray(e) ? e : [e]).forEach((e) =>
                  this._styles.delete(e)
                );
            }
            _setCustomProperty(e, t) {
              this._customProperties.set(e, t);
            }
            _removeCustomProperty(e) {
              return this._customProperties.delete(e);
            }
          }
          function zt(e, t) {
            let n = null,
              r = 0,
              o = 0,
              a = null;
            if ((e.clear(), "" !== t)) {
              ";" != t.charAt(t.length - 1) && (t += ";");
              for (let i = 0; i < t.length; i++) {
                const s = t.charAt(i);
                if (null === n)
                  switch (s) {
                    case ":":
                      a || ((a = t.substr(r, i - r)), (o = i + 1));
                      break;
                    case '"':
                    case "'":
                      n = s;
                      break;
                    case ";": {
                      const n = t.substr(o, i - o);
                      a && e.set(a.trim(), n.trim()), (a = null), (r = i + 1);
                      break;
                    }
                  }
                else s === n && (n = null);
              }
            }
          }
          function Bt(e, t) {
            const n = t.split(/\s+/);
            e.clear(), n.forEach((t) => e.add(t));
          }
          class Ut extends Ht {
            constructor(e, t, n) {
              super(e, t, n), (this.getFillerOffset = Vt);
            }
            is(e, t = null) {
              const n = e && e.replace(/^view:/, "");
              return t
                ? ("containerElement" == n && t == this.name) || super.is(e, t)
                : "containerElement" == n || super.is(e);
            }
          }
          function Vt() {
            const e = [...this.getChildren()],
              t = e[this.childCount - 1];
            if (t && t.is("element", "br")) return this.childCount;
            for (const t of e) if (!t.is("uiElement")) return null;
            return this.childCount;
          }
          var Wt = function (e) {
              return e;
            },
            qt = function (e, t, n) {
              switch (n.length) {
                case 0:
                  return e.call(t);
                case 1:
                  return e.call(t, n[0]);
                case 2:
                  return e.call(t, n[0], n[1]);
                case 3:
                  return e.call(t, n[0], n[1], n[2]);
              }
              return e.apply(t, n);
            },
            Gt = Math.max,
            Jt = function (e) {
              return function () {
                return e;
              };
            },
            Kt = X
              ? function (e, t) {
                  return X(e, "toString", {
                    configurable: !0,
                    enumerable: !1,
                    value: Jt(t),
                    writable: !0,
                  });
                }
              : Wt,
            Qt = Date.now,
            Xt = (function (e) {
              var t = 0,
                n = 0;
              return function () {
                var r = Qt(),
                  o = 16 - (r - n);
                if (((n = r), o > 0)) {
                  if (++t >= 800) return arguments[0];
                } else t = 0;
                return e.apply(void 0, arguments);
              };
            })(Kt),
            $t = function (e, t) {
              return Xt(
                (function (e, t, n) {
                  return (
                    (t = Gt(void 0 === t ? e.length - 1 : t, 0)),
                    function () {
                      for (
                        var r = arguments,
                          o = -1,
                          a = Gt(r.length - t, 0),
                          i = Array(a);
                        ++o < a;

                      )
                        i[o] = r[t + o];
                      o = -1;
                      for (var s = Array(t + 1); ++o < t; ) s[o] = r[o];
                      return (s[t] = n(i)), qt(e, this, s);
                    }
                  );
                })(e, t, Wt),
                e + ""
              );
            },
            Zt = (function (e) {
              return $t(function (t, n) {
                var r = -1,
                  o = n.length,
                  a = o > 1 ? n[o - 1] : void 0,
                  i = o > 2 ? n[2] : void 0;
                for (
                  a =
                    e.length > 3 && "function" == typeof a ? (o--, a) : void 0,
                    i &&
                      (function (e, t, n) {
                        if (!T(n)) return !1;
                        var r = typeof t;
                        return (
                          !!("number" == r
                            ? xe(n) && ue(t, n.length)
                            : "string" == r && (t in n)) && w(n[t], e)
                        );
                      })(n[0], n[1], i) &&
                      ((a = o < 3 ? void 0 : a), (o = 1)),
                    t = Object(t);
                  ++r < o;

                ) {
                  var s = n[r];
                  s && e(t, s);
                }
                return t;
              });
            })(function (e, t) {
              te(t, Se(t), e);
            });
          const en = Symbol("observableProperties"),
            tn = Symbol("boundObservables"),
            nn = Symbol("boundProperties"),
            rn = {
              set(e, t) {
                if (T(e))
                  return void Object.keys(e).forEach((t) => {
                    this.set(t, e[t]);
                  }, this);
                an(this);
                const n = this[en];
                if (e in this && !n.has(e))
                  throw new _t.b(
                    "observable-set-cannot-override: Cannot override an existing property.",
                    this
                  );
                Object.defineProperty(this, e, {
                  enumerable: !0,
                  configurable: !0,
                  get: () => n.get(e),
                  set(t) {
                    const r = n.get(e);
                    let o = this.fire("set:" + e, e, t, r);
                    void 0 === o && (o = t),
                      (r === o && n.has(e)) ||
                        (n.set(e, o), this.fire("change:" + e, e, o, r));
                  },
                }),
                  (this[e] = t);
              },
              bind(...e) {
                if (!e.length || !cn(e))
                  throw new _t.b(
                    "observable-bind-wrong-properties: All properties must be strings.",
                    this
                  );
                if (new Set(e).size !== e.length)
                  throw new _t.b(
                    "observable-bind-duplicate-properties: Properties must be unique.",
                    this
                  );
                an(this);
                const t = this[nn];
                e.forEach((e) => {
                  if (t.has(e))
                    throw new _t.b(
                      "observable-bind-rebind: Cannot bind the same property more that once.",
                      this
                    );
                });
                const n = new Map();
                return (
                  e.forEach((e) => {
                    const r = { property: e, to: [] };
                    t.set(e, r), n.set(e, r);
                  }),
                  {
                    to: sn,
                    toMany: ln,
                    _observable: this,
                    _bindProperties: e,
                    _to: [],
                    _bindings: n,
                  }
                );
              },
              unbind(...e) {
                if (!(en in this)) return;
                const t = this[nn],
                  n = this[tn];
                if (e.length) {
                  if (!cn(e))
                    throw new _t.b(
                      "observable-unbind-wrong-properties: Properties must be strings.",
                      this
                    );
                  e.forEach((e) => {
                    const r = t.get(e);
                    if (!r) return;
                    let o, a, i, s;
                    r.to.forEach((e) => {
                      (o = e[0]),
                        (a = e[1]),
                        (i = n.get(o)),
                        (s = i[a]).delete(r),
                        s.size || delete i[a],
                        Object.keys(i).length ||
                          (n.delete(o), this.stopListening(o, "change"));
                    }),
                      t.delete(e);
                  });
                } else
                  n.forEach((e, t) => {
                    this.stopListening(t, "change");
                  }),
                    n.clear(),
                    t.clear();
              },
              decorate(e) {
                const t = this[e];
                if (!t)
                  throw new _t.b(
                    "observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",
                    this,
                    { object: this, methodName: e }
                  );
                this.on(e, (e, n) => {
                  e.return = t.apply(this, n);
                }),
                  (this[e] = function (...t) {
                    return this.fire(e, t);
                  });
              },
            };
          Zt(rn, xt);
          var on = rn;
          function an(e) {
            en in e ||
              (Object.defineProperty(e, en, { value: new Map() }),
              Object.defineProperty(e, tn, { value: new Map() }),
              Object.defineProperty(e, nn, { value: new Map() }));
          }
          function sn(...e) {
            const t = (function (...e) {
                if (!e.length)
                  throw new _t.b(
                    "observable-bind-to-parse-error: Invalid argument syntax in `to()`.",
                    null
                  );
                const t = { to: [] };
                let n;
                return (
                  "function" == typeof e[e.length - 1] &&
                    (t.callback = e.pop()),
                  e.forEach((e) => {
                    if ("string" == typeof e) n.properties.push(e);
                    else {
                      if ("object" != typeof e)
                        throw new _t.b(
                          "observable-bind-to-parse-error: Invalid argument syntax in `to()`.",
                          null
                        );
                      (n = { observable: e, properties: [] }), t.to.push(n);
                    }
                  }),
                  t
                );
              })(...e),
              n = Array.from(this._bindings.keys()),
              r = n.length;
            if (!t.callback && t.to.length > 1)
              throw new _t.b(
                "observable-bind-to-no-callback: Binding multiple observables only possible with callback.",
                this
              );
            if (r > 1 && t.callback)
              throw new _t.b(
                "observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",
                this
              );
            t.to.forEach((e) => {
              if (e.properties.length && e.properties.length !== r)
                throw new _t.b(
                  "observable-bind-to-properties-length: The number of properties must match.",
                  this
                );
              e.properties.length || (e.properties = this._bindProperties);
            }),
              (this._to = t.to),
              t.callback && (this._bindings.get(n[0]).callback = t.callback),
              (function (e, t) {
                t.forEach((t) => {
                  const n = e[tn];
                  let r;
                  n.get(t.observable) ||
                    e.listenTo(t.observable, "change", (o, a) => {
                      (r = n.get(t.observable)[a]) &&
                        r.forEach((t) => {
                          un(e, t.property);
                        });
                    });
                });
              })(this._observable, this._to),
              (function (e) {
                let t;
                e._bindings.forEach((n, r) => {
                  e._to.forEach((o) => {
                    (t =
                      o.properties[
                        n.callback ? 0 : e._bindProperties.indexOf(r)
                      ]),
                      n.to.push([o.observable, t]),
                      (function (e, t, n, r) {
                        const o = e[tn],
                          a = o.get(n),
                          i = a || {};
                        i[r] || (i[r] = new Set()),
                          i[r].add(t),
                          a || o.set(n, i);
                      })(e._observable, n, o.observable, t);
                  });
                });
              })(this),
              this._bindProperties.forEach((e) => {
                un(this._observable, e);
              });
          }
          function ln(e, t, n) {
            if (this._bindings.size > 1)
              throw new _t.b(
                "observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",
                this
              );
            this.to(
              ...(function (e, t) {
                const n = e.map((e) => [e, t]);
                return Array.prototype.concat.apply([], n);
              })(e, t),
              n
            );
          }
          function cn(e) {
            return e.every((e) => "string" == typeof e);
          }
          function un(e, t) {
            const n = e[nn].get(t);
            let r;
            (r = n.callback
              ? n.callback.apply(
                  e,
                  n.to.map((e) => e[0][e[1]])
                )
              : (r = n.to[0])[0][r[1]]),
              e.hasOwnProperty(t) ? (e[t] = r) : e.set(t, r);
          }
          const dn = Symbol("document");
          class hn extends Ut {
            constructor(e, t, n) {
              super(e, t, n),
                this.set("isReadOnly", !1),
                this.set("isFocused", !1);
            }
            is(e, t = null) {
              const n = e && e.replace(/^view:/, "");
              return t
                ? ("editableElement" == n && t == this.name) || super.is(e, t)
                : "editableElement" == n || super.is(e);
            }
            destroy() {
              this.stopListening();
            }
            get document() {
              return this.getCustomProperty(dn);
            }
            set _document(e) {
              if (this.getCustomProperty(dn))
                throw new _t.b(
                  "view-editableelement-document-already-set: View document is already set.",
                  this
                );
              this._setCustomProperty(dn, e),
                this.bind("isReadOnly").to(e),
                this.bind("isFocused").to(
                  e,
                  "isFocused",
                  (t) => t && e.selection.editableElement == this
                ),
                this.listenTo(e.selection, "change", () => {
                  this.isFocused =
                    e.isFocused && e.selection.editableElement == this;
                });
            }
          }
          Ct(hn, on);
          const pn = Symbol("rootName");
          class fn extends hn {
            constructor(e) {
              super(e), (this.rootName = "main");
            }
            is(e, t = null) {
              const n = e.replace(/^view:/, "");
              return t
                ? ("rootElement" == n && t == this.name) || super.is(e, t)
                : "rootElement" == n || super.is(e);
            }
            get rootName() {
              return this.getCustomProperty(pn);
            }
            set rootName(e) {
              this._setCustomProperty(pn, e);
            }
            set _name(e) {
              this.name = e;
            }
          }
          class mn {
            constructor(e = {}) {
              if (!e.boundaries && !e.startPosition)
                throw new _t.b(
                  "view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",
                  null
                );
              if (
                e.direction &&
                "forward" != e.direction &&
                "backward" != e.direction
              )
                throw new _t.b(
                  "view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",
                  e.startPosition,
                  { direction: e.direction }
                );
              (this.boundaries = e.boundaries || null),
                e.startPosition
                  ? (this.position = gn._createAt(e.startPosition))
                  : (this.position = gn._createAt(
                      e.boundaries["backward" == e.direction ? "end" : "start"]
                    )),
                (this.direction = e.direction || "forward"),
                (this.singleCharacters = !!e.singleCharacters),
                (this.shallow = !!e.shallow),
                (this.ignoreElementEnd = !!e.ignoreElementEnd),
                (this._boundaryStartParent = this.boundaries
                  ? this.boundaries.start.parent
                  : null),
                (this._boundaryEndParent = this.boundaries
                  ? this.boundaries.end.parent
                  : null);
            }
            [Symbol.iterator]() {
              return this;
            }
            skip(e) {
              let t, n, r;
              do {
                (r = this.position), ({ done: t, value: n } = this.next());
              } while (!t && e(n));
              t || (this.position = r);
            }
            next() {
              return "forward" == this.direction
                ? this._next()
                : this._previous();
            }
            _next() {
              let e = this.position.clone();
              const t = this.position,
                n = e.parent;
              if (null === n.parent && e.offset === n.childCount)
                return { done: !0 };
              if (
                n === this._boundaryEndParent &&
                e.offset == this.boundaries.end.offset
              )
                return { done: !0 };
              let r;
              if (n instanceof At) {
                if (e.isAtEnd)
                  return (this.position = gn._createAfter(n)), this._next();
                r = n.data[e.offset];
              } else r = n.getChild(e.offset);
              if (r instanceof Ht)
                return (
                  this.shallow ? e.offset++ : (e = new gn(r, 0)),
                  (this.position = e),
                  this._formatReturnValue("elementStart", r, t, e, 1)
                );
              if (r instanceof At) {
                if (this.singleCharacters)
                  return (e = new gn(r, 0)), (this.position = e), this._next();
                {
                  let n,
                    o = r.data.length;
                  return (
                    r == this._boundaryEndParent
                      ? ((o = this.boundaries.end.offset),
                        (n = new It(r, 0, o)),
                        (e = gn._createAfter(n)))
                      : ((n = new It(r, 0, r.data.length)), e.offset++),
                    (this.position = e),
                    this._formatReturnValue("text", n, t, e, o)
                  );
                }
              }
              if ("string" == typeof r) {
                let r;
                r = this.singleCharacters
                  ? 1
                  : (n === this._boundaryEndParent
                      ? this.boundaries.end.offset
                      : n.data.length) - e.offset;
                const o = new It(n, e.offset, r);
                return (
                  (e.offset += r),
                  (this.position = e),
                  this._formatReturnValue("text", o, t, e, r)
                );
              }
              return (
                (e = gn._createAfter(n)),
                (this.position = e),
                this.ignoreElementEnd
                  ? this._next()
                  : this._formatReturnValue("elementEnd", n, t, e)
              );
            }
            _previous() {
              let e = this.position.clone();
              const t = this.position,
                n = e.parent;
              if (null === n.parent && 0 === e.offset) return { done: !0 };
              if (
                n == this._boundaryStartParent &&
                e.offset == this.boundaries.start.offset
              )
                return { done: !0 };
              let r;
              if (n instanceof At) {
                if (e.isAtStart)
                  return (
                    (this.position = gn._createBefore(n)), this._previous()
                  );
                r = n.data[e.offset - 1];
              } else r = n.getChild(e.offset - 1);
              if (r instanceof Ht)
                return this.shallow
                  ? (e.offset--,
                    (this.position = e),
                    this._formatReturnValue("elementStart", r, t, e, 1))
                  : ((e = new gn(r, r.childCount)),
                    (this.position = e),
                    this.ignoreElementEnd
                      ? this._previous()
                      : this._formatReturnValue("elementEnd", r, t, e));
              if (r instanceof At) {
                if (this.singleCharacters)
                  return (
                    (e = new gn(r, r.data.length)),
                    (this.position = e),
                    this._previous()
                  );
                {
                  let n,
                    o = r.data.length;
                  if (r == this._boundaryStartParent) {
                    const t = this.boundaries.start.offset;
                    (o = (n = new It(r, t, r.data.length - t)).data.length),
                      (e = gn._createBefore(n));
                  } else (n = new It(r, 0, r.data.length)), e.offset--;
                  return (
                    (this.position = e),
                    this._formatReturnValue("text", n, t, e, o)
                  );
                }
              }
              if ("string" == typeof r) {
                let r;
                if (this.singleCharacters) r = 1;
                else {
                  const t =
                    n === this._boundaryStartParent
                      ? this.boundaries.start.offset
                      : 0;
                  r = e.offset - t;
                }
                e.offset -= r;
                const o = new It(n, e.offset, r);
                return (
                  (this.position = e),
                  this._formatReturnValue("text", o, t, e, r)
                );
              }
              return (
                (e = gn._createBefore(n)),
                (this.position = e),
                this._formatReturnValue("elementStart", n, t, e, 1)
              );
            }
            _formatReturnValue(e, t, n, r, o) {
              return (
                t instanceof It &&
                  (t.offsetInText + t.data.length == t.textNode.data.length &&
                    ("forward" != this.direction ||
                    (this.boundaries &&
                      this.boundaries.end.isEqual(this.position))
                      ? (n = gn._createAfter(t.textNode))
                      : ((r = gn._createAfter(t.textNode)),
                        (this.position = r))),
                  0 === t.offsetInText &&
                    ("backward" != this.direction ||
                    (this.boundaries &&
                      this.boundaries.start.isEqual(this.position))
                      ? (n = gn._createBefore(t.textNode))
                      : ((r = gn._createBefore(t.textNode)),
                        (this.position = r)))),
                {
                  done: !1,
                  value: {
                    type: e,
                    item: t,
                    previousPosition: n,
                    nextPosition: r,
                    length: o,
                  },
                }
              );
            }
          }
          class gn {
            constructor(e, t) {
              (this.parent = e), (this.offset = t);
            }
            get nodeAfter() {
              return this.parent.is("text")
                ? null
                : this.parent.getChild(this.offset) || null;
            }
            get nodeBefore() {
              return this.parent.is("text")
                ? null
                : this.parent.getChild(this.offset - 1) || null;
            }
            get isAtStart() {
              return 0 === this.offset;
            }
            get isAtEnd() {
              const e = this.parent.is("text")
                ? this.parent.data.length
                : this.parent.childCount;
              return this.offset === e;
            }
            get root() {
              return this.parent.root;
            }
            get editableElement() {
              let e = this.parent;
              for (; !(e instanceof hn); ) {
                if (!e.parent) return null;
                e = e.parent;
              }
              return e;
            }
            getShiftedBy(e) {
              const t = gn._createAt(this),
                n = t.offset + e;
              return (t.offset = n < 0 ? 0 : n), t;
            }
            getLastMatchingPosition(e, t = {}) {
              t.startPosition = this;
              const n = new mn(t);
              return n.skip(e), n.position;
            }
            getAncestors() {
              return this.parent.is("documentFragment")
                ? [this.parent]
                : this.parent.getAncestors({ includeSelf: !0 });
            }
            getCommonAncestor(e) {
              const t = this.getAncestors(),
                n = e.getAncestors();
              let r = 0;
              for (; t[r] == n[r] && t[r]; ) r++;
              return 0 === r ? null : t[r - 1];
            }
            is(e) {
              return "position" == e || "view:position" == e;
            }
            isEqual(e) {
              return this.parent == e.parent && this.offset == e.offset;
            }
            isBefore(e) {
              return "before" == this.compareWith(e);
            }
            isAfter(e) {
              return "after" == this.compareWith(e);
            }
            compareWith(e) {
              if (this.root !== e.root) return "different";
              if (this.isEqual(e)) return "same";
              const t = this.parent.is("node") ? this.parent.getPath() : [],
                n = e.parent.is("node") ? e.parent.getPath() : [];
              t.push(this.offset), n.push(e.offset);
              const r = Pt(t, n);
              switch (r) {
                case "prefix":
                  return "before";
                case "extension":
                  return "after";
                default:
                  return t[r] < n[r] ? "before" : "after";
              }
            }
            getWalker(e = {}) {
              return (e.startPosition = this), new mn(e);
            }
            clone() {
              return new gn(this.parent, this.offset);
            }
            static _createAt(e, t) {
              if (e instanceof gn) return new this(e.parent, e.offset);
              {
                const n = e;
                if ("end" == t) t = n.is("text") ? n.data.length : n.childCount;
                else {
                  if ("before" == t) return this._createBefore(n);
                  if ("after" == t) return this._createAfter(n);
                  if (0 !== t && !t)
                    throw new _t.b(
                      "view-createPositionAt-offset-required: View#createPositionAt() requires the offset when the first parameter is a view item.",
                      n
                    );
                }
                return new gn(n, t);
              }
            }
            static _createAfter(e) {
              if (e.is("textProxy"))
                return new gn(e.textNode, e.offsetInText + e.data.length);
              if (!e.parent)
                throw new _t.b(
                  "view-position-after-root: You can not make position after root.",
                  e,
                  { root: e }
                );
              return new gn(e.parent, e.index + 1);
            }
            static _createBefore(e) {
              if (e.is("textProxy")) return new gn(e.textNode, e.offsetInText);
              if (!e.parent)
                throw new _t.b(
                  "view-position-before-root: You can not make position before root.",
                  e,
                  { root: e }
                );
              return new gn(e.parent, e.index);
            }
          }
          class _n {
            constructor(e, t = null) {
              (this.start = e.clone()), (this.end = t ? t.clone() : e.clone());
            }
            *[Symbol.iterator]() {
              yield* new mn({ boundaries: this, ignoreElementEnd: !0 });
            }
            get isCollapsed() {
              return this.start.isEqual(this.end);
            }
            get isFlat() {
              return this.start.parent === this.end.parent;
            }
            get root() {
              return this.start.root;
            }
            getEnlarged() {
              let e = this.start.getLastMatchingPosition(vn, {
                  direction: "backward",
                }),
                t = this.end.getLastMatchingPosition(vn);
              return (
                e.parent.is("text") &&
                  e.isAtStart &&
                  (e = gn._createBefore(e.parent)),
                t.parent.is("text") &&
                  t.isAtEnd &&
                  (t = gn._createAfter(t.parent)),
                new _n(e, t)
              );
            }
            getTrimmed() {
              let e = this.start.getLastMatchingPosition(vn);
              if (e.isAfter(this.end) || e.isEqual(this.end))
                return new _n(e, e);
              let t = this.end.getLastMatchingPosition(vn, {
                direction: "backward",
              });
              const n = e.nodeAfter,
                r = t.nodeBefore;
              return (
                n && n.is("text") && (e = new gn(n, 0)),
                r && r.is("text") && (t = new gn(r, r.data.length)),
                new _n(e, t)
              );
            }
            isEqual(e) {
              return (
                this == e ||
                (this.start.isEqual(e.start) && this.end.isEqual(e.end))
              );
            }
            containsPosition(e) {
              return e.isAfter(this.start) && e.isBefore(this.end);
            }
            containsRange(e, t = !1) {
              e.isCollapsed && (t = !1);
              const n =
                  this.containsPosition(e.start) ||
                  (t && this.start.isEqual(e.start)),
                r =
                  this.containsPosition(e.end) ||
                  (t && this.end.isEqual(e.end));
              return n && r;
            }
            getDifference(e) {
              const t = [];
              return (
                this.isIntersecting(e)
                  ? (this.containsPosition(e.start) &&
                      t.push(new _n(this.start, e.start)),
                    this.containsPosition(e.end) &&
                      t.push(new _n(e.end, this.end)))
                  : t.push(this.clone()),
                t
              );
            }
            getIntersection(e) {
              if (this.isIntersecting(e)) {
                let t = this.start,
                  n = this.end;
                return (
                  this.containsPosition(e.start) && (t = e.start),
                  this.containsPosition(e.end) && (n = e.end),
                  new _n(t, n)
                );
              }
              return null;
            }
            getWalker(e = {}) {
              return (e.boundaries = this), new mn(e);
            }
            getCommonAncestor() {
              return this.start.getCommonAncestor(this.end);
            }
            clone() {
              return new _n(this.start, this.end);
            }
            *getItems(e = {}) {
              (e.boundaries = this), (e.ignoreElementEnd = !0);
              const t = new mn(e);
              for (const e of t) yield e.item;
            }
            *getPositions(e = {}) {
              e.boundaries = this;
              const t = new mn(e);
              yield t.position;
              for (const e of t) yield e.nextPosition;
            }
            is(e) {
              return "range" == e || "view:range" == e;
            }
            isIntersecting(e) {
              return this.start.isBefore(e.end) && this.end.isAfter(e.start);
            }
            static _createFromParentsAndOffsets(e, t, n, r) {
              return new this(new gn(e, t), new gn(n, r));
            }
            static _createFromPositionAndShift(e, t) {
              const n = e,
                r = e.getShiftedBy(t);
              return t > 0 ? new this(n, r) : new this(r, n);
            }
            static _createIn(e) {
              return this._createFromParentsAndOffsets(e, 0, e, e.childCount);
            }
            static _createOn(e) {
              const t = e.is("textProxy") ? e.offsetSize : 1;
              return this._createFromPositionAndShift(gn._createBefore(e), t);
            }
          }
          function vn(e) {
            return !(!e.item.is("attributeElement") && !e.item.is("uiElement"));
          }
          function bn(e) {
            let t = 0;
            for (const n of e) t++;
            return t;
          }
          class yn {
            constructor(e = null, t, n) {
              (this._ranges = []),
                (this._lastRangeBackward = !1),
                (this._isFake = !1),
                (this._fakeSelectionLabel = ""),
                this.setTo(e, t, n);
            }
            get isFake() {
              return this._isFake;
            }
            get fakeSelectionLabel() {
              return this._fakeSelectionLabel;
            }
            get anchor() {
              if (!this._ranges.length) return null;
              const e = this._ranges[this._ranges.length - 1];
              return (this._lastRangeBackward ? e.end : e.start).clone();
            }
            get focus() {
              if (!this._ranges.length) return null;
              const e = this._ranges[this._ranges.length - 1];
              return (this._lastRangeBackward ? e.start : e.end).clone();
            }
            get isCollapsed() {
              return 1 === this.rangeCount && this._ranges[0].isCollapsed;
            }
            get rangeCount() {
              return this._ranges.length;
            }
            get isBackward() {
              return !this.isCollapsed && this._lastRangeBackward;
            }
            get editableElement() {
              return this.anchor ? this.anchor.editableElement : null;
            }
            *getRanges() {
              for (const e of this._ranges) yield e.clone();
            }
            getFirstRange() {
              let e = null;
              for (const t of this._ranges)
                (e && !t.start.isBefore(e.start)) || (e = t);
              return e ? e.clone() : null;
            }
            getLastRange() {
              let e = null;
              for (const t of this._ranges)
                (e && !t.end.isAfter(e.end)) || (e = t);
              return e ? e.clone() : null;
            }
            getFirstPosition() {
              const e = this.getFirstRange();
              return e ? e.start.clone() : null;
            }
            getLastPosition() {
              const e = this.getLastRange();
              return e ? e.end.clone() : null;
            }
            isEqual(e) {
              if (this.isFake != e.isFake) return !1;
              if (
                this.isFake &&
                this.fakeSelectionLabel != e.fakeSelectionLabel
              )
                return !1;
              if (this.rangeCount != e.rangeCount) return !1;
              if (0 === this.rangeCount) return !0;
              if (
                !this.anchor.isEqual(e.anchor) ||
                !this.focus.isEqual(e.focus)
              )
                return !1;
              for (const t of this._ranges) {
                let n = !1;
                for (const r of e._ranges)
                  if (t.isEqual(r)) {
                    n = !0;
                    break;
                  }
                if (!n) return !1;
              }
              return !0;
            }
            isSimilar(e) {
              if (this.isBackward != e.isBackward) return !1;
              const t = bn(this.getRanges());
              if (t != bn(e.getRanges())) return !1;
              if (0 == t) return !0;
              for (let t of this.getRanges()) {
                t = t.getTrimmed();
                let n = !1;
                for (let r of e.getRanges())
                  if (
                    ((r = r.getTrimmed()),
                    t.start.isEqual(r.start) && t.end.isEqual(r.end))
                  ) {
                    n = !0;
                    break;
                  }
                if (!n) return !1;
              }
              return !0;
            }
            getSelectedElement() {
              if (1 !== this.rangeCount) return null;
              const e = this.getFirstRange();
              let t = e.start.nodeAfter,
                n = e.end.nodeBefore;
              return (
                e.start.parent.is("text") &&
                  e.start.isAtEnd &&
                  e.start.parent.nextSibling &&
                  (t = e.start.parent.nextSibling),
                e.end.parent.is("text") &&
                  e.end.isAtStart &&
                  e.end.parent.previousSibling &&
                  (n = e.end.parent.previousSibling),
                t instanceof Ht && t == n ? t : null
              );
            }
            setTo(e, t, n) {
              if (null === e) this._setRanges([]), this._setFakeOptions(t);
              else if (e instanceof yn || e instanceof wn)
                this._setRanges(e.getRanges(), e.isBackward),
                  this._setFakeOptions({
                    fake: e.isFake,
                    label: e.fakeSelectionLabel,
                  });
              else if (e instanceof _n)
                this._setRanges([e], t && t.backward), this._setFakeOptions(t);
              else if (e instanceof gn)
                this._setRanges([new _n(e)]), this._setFakeOptions(t);
              else if (e instanceof Nt) {
                const r = !!n && !!n.backward;
                let o;
                if (void 0 === t)
                  throw new _t.b(
                    "view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",
                    this
                  );
                (o =
                  "in" == t
                    ? _n._createIn(e)
                    : "on" == t
                    ? _n._createOn(e)
                    : new _n(gn._createAt(e, t))),
                  this._setRanges([o], r),
                  this._setFakeOptions(n);
              } else {
                if (!Yt(e))
                  throw new _t.b(
                    "view-selection-setTo-not-selectable: Cannot set selection to given place.",
                    this
                  );
                this._setRanges(e, t && t.backward), this._setFakeOptions(t);
              }
              this.fire("change");
            }
            setFocus(e, t) {
              if (null === this.anchor)
                throw new _t.b(
                  "view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",
                  this
                );
              const n = gn._createAt(e, t);
              if ("same" == n.compareWith(this.focus)) return;
              const r = this.anchor;
              this._ranges.pop(),
                "before" == n.compareWith(r)
                  ? this._addRange(new _n(n, r), !0)
                  : this._addRange(new _n(r, n)),
                this.fire("change");
            }
            is(e) {
              return "selection" == e || "view:selection" == e;
            }
            _setRanges(e, t = !1) {
              (e = Array.from(e)), (this._ranges = []);
              for (const t of e) this._addRange(t);
              this._lastRangeBackward = !!t;
            }
            _setFakeOptions(e = {}) {
              (this._isFake = !!e.fake),
                (this._fakeSelectionLabel = (e.fake && e.label) || "");
            }
            _addRange(e, t = !1) {
              if (!(e instanceof _n))
                throw new _t.b(
                  "view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",
                  this
                );
              this._pushRange(e), (this._lastRangeBackward = !!t);
            }
            _pushRange(e) {
              for (const t of this._ranges)
                if (e.isIntersecting(t))
                  throw new _t.b(
                    "view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",
                    this,
                    { addedRange: e, intersectingRange: t }
                  );
              this._ranges.push(new _n(e.start, e.end));
            }
          }
          Ct(yn, xt);
          class wn {
            constructor(e = null, t, n) {
              (this._selection = new yn()),
                this._selection.delegate("change").to(this),
                this._selection.setTo(e, t, n);
            }
            get isFake() {
              return this._selection.isFake;
            }
            get fakeSelectionLabel() {
              return this._selection.fakeSelectionLabel;
            }
            get anchor() {
              return this._selection.anchor;
            }
            get focus() {
              return this._selection.focus;
            }
            get isCollapsed() {
              return this._selection.isCollapsed;
            }
            get rangeCount() {
              return this._selection.rangeCount;
            }
            get isBackward() {
              return this._selection.isBackward;
            }
            get editableElement() {
              return this._selection.editableElement;
            }
            get _ranges() {
              return this._selection._ranges;
            }
            *getRanges() {
              yield* this._selection.getRanges();
            }
            getFirstRange() {
              return this._selection.getFirstRange();
            }
            getLastRange() {
              return this._selection.getLastRange();
            }
            getFirstPosition() {
              return this._selection.getFirstPosition();
            }
            getLastPosition() {
              return this._selection.getLastPosition();
            }
            getSelectedElement() {
              return this._selection.getSelectedElement();
            }
            isEqual(e) {
              return this._selection.isEqual(e);
            }
            isSimilar(e) {
              return this._selection.isSimilar(e);
            }
            is(e) {
              return (
                "selection" == e ||
                "documentSelection" == e ||
                "view:selection" == e ||
                "view:documentSelection" == e
              );
            }
            _setTo(e, t, n) {
              this._selection.setTo(e, t, n);
            }
            _setFocus(e, t) {
              this._selection.setFocus(e, t);
            }
          }
          Ct(wn, xt);
          class kn {
            constructor(e = {}) {
              (this._items = []),
                (this._itemMap = new Map()),
                (this._idProperty = e.idProperty || "id"),
                (this._bindToExternalToInternalMap = new WeakMap()),
                (this._bindToInternalToExternalMap = new WeakMap()),
                (this._skippedIndexesFromExternal = []);
            }
            get length() {
              return this._items.length;
            }
            get first() {
              return this._items[0] || null;
            }
            get last() {
              return this._items[this.length - 1] || null;
            }
            add(e, t) {
              let n;
              const r = this._idProperty;
              if (r in e) {
                if ("string" != typeof (n = e[r]))
                  throw new _t.b("collection-add-invalid-id", this);
                if (this.get(n))
                  throw new _t.b("collection-add-item-already-exists", this);
              } else e[r] = n = bt();
              if (void 0 === t) t = this._items.length;
              else if (t > this._items.length || t < 0)
                throw new _t.b("collection-add-item-invalid-index", this);
              return (
                this._items.splice(t, 0, e),
                this._itemMap.set(n, e),
                this.fire("add", e, t),
                this
              );
            }
            get(e) {
              let t;
              if ("string" == typeof e) t = this._itemMap.get(e);
              else {
                if ("number" != typeof e)
                  throw new _t.b(
                    "collection-get-invalid-arg: Index or id must be given.",
                    this
                  );
                t = this._items[e];
              }
              return t || null;
            }
            has(e) {
              if ("string" == typeof e) return this._itemMap.has(e);
              {
                const t = e[this._idProperty];
                return this._itemMap.has(t);
              }
            }
            getIndex(e) {
              let t;
              return (
                (t = "string" == typeof e ? this._itemMap.get(e) : e),
                this._items.indexOf(t)
              );
            }
            remove(e) {
              let t,
                n,
                r,
                o = !1;
              const a = this._idProperty;
              if (
                ("string" == typeof e
                  ? ((n = e),
                    (o = !(r = this._itemMap.get(n))),
                    r && (t = this._items.indexOf(r)))
                  : "number" == typeof e
                  ? ((t = e), (o = !(r = this._items[t])), r && (n = r[a]))
                  : ((n = (r = e)[a]),
                    (o =
                      -1 == (t = this._items.indexOf(r)) ||
                      !this._itemMap.get(n))),
                o)
              )
                throw new _t.b("collection-remove-404: Item not found.", this);
              this._items.splice(t, 1), this._itemMap.delete(n);
              const i = this._bindToInternalToExternalMap.get(r);
              return (
                this._bindToInternalToExternalMap.delete(r),
                this._bindToExternalToInternalMap.delete(i),
                this.fire("remove", r, t),
                r
              );
            }
            map(e, t) {
              return this._items.map(e, t);
            }
            find(e, t) {
              return this._items.find(e, t);
            }
            filter(e, t) {
              return this._items.filter(e, t);
            }
            clear() {
              for (
                this._bindToCollection &&
                (this.stopListening(this._bindToCollection),
                (this._bindToCollection = null));
                this.length;

              )
                this.remove(0);
            }
            bindTo(e) {
              if (this._bindToCollection)
                throw new _t.b(
                  "collection-bind-to-rebind: The collection cannot be bound more than once.",
                  this
                );
              return (
                (this._bindToCollection = e),
                {
                  as: (e) => {
                    this._setUpBindToBinding((t) => new e(t));
                  },
                  using: (e) => {
                    "function" == typeof e
                      ? this._setUpBindToBinding((t) => e(t))
                      : this._setUpBindToBinding((t) => t[e]);
                  },
                }
              );
            }
            _setUpBindToBinding(e) {
              const t = this._bindToCollection,
                n = (n, r, o) => {
                  const a = t._bindToCollection == this,
                    i = t._bindToInternalToExternalMap.get(r);
                  if (a && i)
                    this._bindToExternalToInternalMap.set(r, i),
                      this._bindToInternalToExternalMap.set(i, r);
                  else {
                    const n = e(r);
                    if (!n)
                      return void this._skippedIndexesFromExternal.push(o);
                    let a = o;
                    for (const e of this._skippedIndexesFromExternal)
                      o > e && a--;
                    for (const e of t._skippedIndexesFromExternal)
                      a >= e && a++;
                    this._bindToExternalToInternalMap.set(r, n),
                      this._bindToInternalToExternalMap.set(n, r),
                      this.add(n, a);
                    for (
                      let e = 0;
                      e < t._skippedIndexesFromExternal.length;
                      e++
                    )
                      a <= t._skippedIndexesFromExternal[e] &&
                        t._skippedIndexesFromExternal[e]++;
                  }
                };
              for (const e of t) n(0, e, t.getIndex(e));
              this.listenTo(t, "add", n),
                this.listenTo(t, "remove", (e, t, n) => {
                  const r = this._bindToExternalToInternalMap.get(t);
                  r && this.remove(r),
                    (this._skippedIndexesFromExternal = this._skippedIndexesFromExternal.reduce(
                      (e, t) => (n < t && e.push(t - 1), n > t && e.push(t), e),
                      []
                    ));
                });
            }
            [Symbol.iterator]() {
              return this._items[Symbol.iterator]();
            }
          }
          Ct(kn, xt);
          class xn {
            constructor() {
              (this.selection = new wn()),
                (this.roots = new kn({ idProperty: "rootName" })),
                this.set("isReadOnly", !1),
                this.set("isFocused", !1),
                this.set("isComposing", !1),
                (this._postFixers = new Set());
            }
            getRoot(e = "main") {
              return this.roots.get(e);
            }
            registerPostFixer(e) {
              this._postFixers.add(e);
            }
            destroy() {
              this.roots.map((e) => e.destroy()), this.stopListening();
            }
            _callPostFixers(e) {
              let t = !1;
              do {
                for (const n of this._postFixers) if ((t = n(e))) break;
              } while (t);
            }
          }
          Ct(xn, on);
          class Mn extends Ht {
            constructor(e, t, n) {
              super(e, t, n),
                (this.getFillerOffset = En),
                (this._priority = 10),
                (this._id = null),
                (this._clonesGroup = null);
            }
            get priority() {
              return this._priority;
            }
            get id() {
              return this._id;
            }
            getElementsWithSameId() {
              if (null === this.id)
                throw new _t.b(
                  "attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",
                  this
                );
              return new Set(this._clonesGroup);
            }
            is(e, t = null) {
              const n = e && e.replace(/^view:/, "");
              return t
                ? ("attributeElement" == n && t == this.name) || super.is(e, t)
                : "attributeElement" == n || super.is(e);
            }
            isSimilar(e) {
              return null !== this.id || null !== e.id
                ? this.id === e.id
                : super.isSimilar(e) && this.priority == e.priority;
            }
            _clone(e) {
              const t = super._clone(e);
              return (t._priority = this._priority), (t._id = this._id), t;
            }
          }
          function En() {
            if (Tn(this)) return null;
            let e = this.parent;
            for (; e && e.is("attributeElement"); ) {
              if (Tn(e) > 1) return null;
              e = e.parent;
            }
            return !e || Tn(e) > 1 ? null : this.childCount;
          }
          function Tn(e) {
            return Array.from(e.getChildren()).filter((e) => !e.is("uiElement"))
              .length;
          }
          Mn.DEFAULT_PRIORITY = 10;
          class Sn extends Ht {
            constructor(e, t, n) {
              super(e, t, n), (this.getFillerOffset = Dn);
            }
            is(e, t = null) {
              const n = e.replace(/^view:/, "");
              return t
                ? ("emptyElement" == n && t == this.name) || super.is(e, t)
                : "emptyElement" == n || super.is(e);
            }
            _insertChild(e, t) {
              if (t && (t instanceof Nt || Array.from(t).length > 0))
                throw new _t.b(
                  "view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",
                  [this, t]
                );
            }
          }
          function Dn() {
            return null;
          }
          const Ln = navigator.userAgent.toLowerCase();
          var Cn = (function (e) {
              return e.indexOf("macintosh") > -1;
            })(Ln),
            Pn = (function (e) {
              return !!e.match(/edge\/(\d+.?\d*)/);
            })(Ln),
            On = (function (e) {
              return !!e.match(/gecko\/\d+/);
            })(Ln),
            Nn = (function (e) {
              return (
                e.indexOf(" applewebkit/") > -1 && -1 === e.indexOf("chrome")
              );
            })(Ln),
            An = (function (e) {
              return e.indexOf("android") > -1;
            })(Ln);
          !(function () {
            let e = !1;
            try {
              e = 0 === "ć".search(new RegExp("[\\p{L}]", "u"));
            } catch (e) {}
          })();
          const In = { "⌘": "ctrl", "⇧": "shift", "⌥": "alt" },
            Rn = { ctrl: "⌘", shift: "⇧", alt: "⌥" },
            Yn = (function () {
              const e = {
                arrowleft: 37,
                arrowup: 38,
                arrowright: 39,
                arrowdown: 40,
                backspace: 8,
                delete: 46,
                enter: 13,
                space: 32,
                esc: 27,
                tab: 9,
                ctrl: 1114112,
                cmd: 1114112,
                shift: 2228224,
                alt: 4456448,
              };
              for (let t = 65; t <= 90; t++)
                e[String.fromCharCode(t).toLowerCase()] = t;
              for (let t = 48; t <= 57; t++) e[t - 48] = t;
              for (let t = 112; t <= 123; t++) e["f" + (t - 111)] = t;
              return e;
            })();
          function jn(e) {
            let t;
            if ("string" == typeof e) {
              if (!(t = Yn[e.toLowerCase()]))
                throw new _t.b(
                  "keyboard-unknown-key: Unknown key name.",
                  null,
                  { key: e }
                );
            } else
              t =
                e.keyCode +
                (e.altKey ? Yn.alt : 0) +
                (e.ctrlKey ? Yn.ctrl : 0) +
                (e.shiftKey ? Yn.shift : 0);
            return t;
          }
          function Fn(e) {
            return (
              "string" == typeof e && (e = Hn(e)),
              e
                .map((e) => ("string" == typeof e ? jn(e) : e))
                .reduce((e, t) => t + e, 0)
            );
          }
          function Hn(e) {
            return e.split(/\s*\+\s*/);
          }
          class zn extends Ht {
            constructor(e, t, n) {
              super(e, t, n), (this.getFillerOffset = Bn);
            }
            is(e, t = null) {
              const n = e.replace(/^view:/, "");
              return t
                ? ("uiElement" == n && t == this.name) || super.is(e, t)
                : "uiElement" == n || super.is(e);
            }
            _insertChild(e, t) {
              if (t && (t instanceof Nt || Array.from(t).length > 0))
                throw new _t.b(
                  "view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",
                  this
                );
            }
            render(e) {
              return this.toDomElement(e);
            }
            toDomElement(e) {
              const t = e.createElement(this.name);
              for (const e of this.getAttributeKeys())
                t.setAttribute(e, this.getAttribute(e));
              return t;
            }
          }
          function Bn() {
            return null;
          }
          class Un {
            constructor(e) {
              (this._children = []), e && this._insertChild(0, e);
            }
            [Symbol.iterator]() {
              return this._children[Symbol.iterator]();
            }
            get childCount() {
              return this._children.length;
            }
            get isEmpty() {
              return 0 === this.childCount;
            }
            get root() {
              return this;
            }
            get parent() {
              return null;
            }
            is(e) {
              return "documentFragment" == e || "view:documentFragment" == e;
            }
            _appendChild(e) {
              return this._insertChild(this.childCount, e);
            }
            getChild(e) {
              return this._children[e];
            }
            getChildIndex(e) {
              return this._children.indexOf(e);
            }
            getChildren() {
              return this._children[Symbol.iterator]();
            }
            _insertChild(e, t) {
              this._fireChange("children", this);
              let n = 0;
              const r = (function (e) {
                return "string" == typeof e
                  ? [new At(e)]
                  : (Yt(e) || (e = [e]),
                    Array.from(e).map((e) =>
                      "string" == typeof e
                        ? new At(e)
                        : e instanceof It
                        ? new At(e.data)
                        : e
                    ));
              })(t);
              for (const t of r)
                null !== t.parent && t._remove(),
                  (t.parent = this),
                  this._children.splice(e, 0, t),
                  e++,
                  n++;
              return n;
            }
            _removeChildren(e, t = 1) {
              this._fireChange("children", this);
              for (let n = e; n < e + t; n++) this._children[n].parent = null;
              return this._children.splice(e, t);
            }
            _fireChange(e, t) {
              this.fire("change:" + e, t);
            }
          }
          Ct(Un, xt);
          class Vn {
            constructor(e) {
              (this.document = e), (this._cloneGroups = new Map());
            }
            setSelection(e, t, n) {
              this.document.selection._setTo(e, t, n);
            }
            setSelectionFocus(e, t) {
              this.document.selection._setFocus(e, t);
            }
            createText(e) {
              return new At(e);
            }
            createAttributeElement(e, t, n = {}) {
              const r = new Mn(e, t);
              return (
                n.priority && (r._priority = n.priority),
                n.id && (r._id = n.id),
                r
              );
            }
            createContainerElement(e, t) {
              return new Ut(e, t);
            }
            createEditableElement(e, t) {
              const n = new hn(e, t);
              return (n._document = this.document), n;
            }
            createEmptyElement(e, t) {
              return new Sn(e, t);
            }
            createUIElement(e, t, n) {
              const r = new zn(e, t);
              return n && (r.render = n), r;
            }
            setAttribute(e, t, n) {
              n._setAttribute(e, t);
            }
            removeAttribute(e, t) {
              t._removeAttribute(e);
            }
            addClass(e, t) {
              t._addClass(e);
            }
            removeClass(e, t) {
              t._removeClass(e);
            }
            setStyle(e, t, n) {
              y(e) && void 0 === n && (n = t), n._setStyle(e, t);
            }
            removeStyle(e, t) {
              t._removeStyle(e);
            }
            setCustomProperty(e, t, n) {
              n._setCustomProperty(e, t);
            }
            removeCustomProperty(e, t) {
              return t._removeCustomProperty(e);
            }
            breakAttributes(e) {
              return e instanceof gn
                ? this._breakAttributes(e)
                : this._breakAttributesRange(e);
            }
            breakContainer(e) {
              const t = e.parent;
              if (!t.is("containerElement"))
                throw new _t.b(
                  "view-writer-break-non-container-element: Trying to break an element which is not a container element.",
                  this.document
                );
              if (!t.parent)
                throw new _t.b(
                  "view-writer-break-root: Trying to break root element.",
                  this.document
                );
              if (e.isAtStart) return gn._createBefore(t);
              if (!e.isAtEnd) {
                const n = t._clone(!1);
                this.insert(gn._createAfter(t), n);
                const r = new _n(e, gn._createAt(t, "end")),
                  o = new gn(n, 0);
                this.move(r, o);
              }
              return gn._createAfter(t);
            }
            mergeAttributes(e) {
              const t = e.offset,
                n = e.parent;
              if (n.is("text")) return e;
              if (n.is("attributeElement") && 0 === n.childCount) {
                const e = n.parent,
                  t = n.index;
                return (
                  n._remove(),
                  this._removeFromClonedElementsGroup(n),
                  this.mergeAttributes(new gn(e, t))
                );
              }
              const r = n.getChild(t - 1),
                o = n.getChild(t);
              if (!r || !o) return e;
              if (r.is("text") && o.is("text")) return Kn(r, o);
              if (
                r.is("attributeElement") &&
                o.is("attributeElement") &&
                r.isSimilar(o)
              ) {
                const e = r.childCount;
                return (
                  r._appendChild(o.getChildren()),
                  o._remove(),
                  this._removeFromClonedElementsGroup(o),
                  this.mergeAttributes(new gn(r, e))
                );
              }
              return e;
            }
            mergeContainers(e) {
              const t = e.nodeBefore,
                n = e.nodeAfter;
              if (
                !(
                  t &&
                  n &&
                  t.is("containerElement") &&
                  n.is("containerElement")
                )
              )
                throw new _t.b(
                  "view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",
                  this.document
                );
              const r = t.getChild(t.childCount - 1),
                o =
                  r instanceof At
                    ? gn._createAt(r, "end")
                    : gn._createAt(t, "end");
              return (
                this.move(_n._createIn(n), gn._createAt(t, "end")),
                this.remove(_n._createOn(n)),
                o
              );
            }
            insert(e, t) {
              !(function e(t, n) {
                for (const r of t) {
                  if (!Qn.some((e) => r instanceof e))
                    throw new _t.b("view-writer-insert-invalid-node", n);
                  r.is("text") || e(r.getChildren(), n);
                }
              })((t = Yt(t) ? [...t] : [t]), this.document);
              const n = Wn(e);
              if (!n)
                throw new _t.b(
                  "view-writer-invalid-position-container",
                  this.document
                );
              const r = this._breakAttributes(e, !0),
                o = n._insertChild(r.offset, t);
              for (const e of t) this._addToClonedElementsGroup(e);
              const a = r.getShiftedBy(o),
                i = this.mergeAttributes(r);
              if (0 === o) return new _n(i, i);
              {
                i.isEqual(r) || a.offset--;
                const e = this.mergeAttributes(a);
                return new _n(i, e);
              }
            }
            remove(e) {
              const t = e instanceof _n ? e : _n._createOn(e);
              if (($n(t, this.document), t.isCollapsed)) return new Un();
              const { start: n, end: r } = this._breakAttributesRange(t, !0),
                o = n.parent,
                a = r.offset - n.offset,
                i = o._removeChildren(n.offset, a);
              for (const e of i) this._removeFromClonedElementsGroup(e);
              const s = this.mergeAttributes(n);
              return (t.start = s), (t.end = s.clone()), new Un(i);
            }
            clear(e, t) {
              $n(e, this.document);
              const n = e.getWalker({
                direction: "backward",
                ignoreElementEnd: !0,
              });
              for (const r of n) {
                const n = r.item;
                let o;
                if (n.is("element") && t.isSimilar(n)) o = _n._createOn(n);
                else if (
                  !r.nextPosition.isAfter(e.start) &&
                  n.is("textProxy")
                ) {
                  const e = n
                    .getAncestors()
                    .find((e) => e.is("element") && t.isSimilar(e));
                  e && (o = _n._createIn(e));
                }
                o &&
                  (o.end.isAfter(e.end) && (o.end = e.end),
                  o.start.isBefore(e.start) && (o.start = e.start),
                  this.remove(o));
              }
            }
            move(e, t) {
              let n;
              if (t.isAfter(e.end)) {
                const r = (t = this._breakAttributes(t, !0)).parent,
                  o = r.childCount;
                (e = this._breakAttributesRange(e, !0)),
                  (n = this.remove(e)),
                  (t.offset += r.childCount - o);
              } else n = this.remove(e);
              return this.insert(t, n);
            }
            wrap(e, t) {
              if (!(t instanceof Mn))
                throw new _t.b(
                  "view-writer-wrap-invalid-attribute",
                  this.document
                );
              if (($n(e, this.document), e.isCollapsed)) {
                let n = e.start;
                n.parent.is("element") &&
                  !(function (e) {
                    return Array.from(e.getChildren()).some(
                      (e) => !e.is("uiElement")
                    );
                  })(n.parent) &&
                  (n = n.getLastMatchingPosition((e) =>
                    e.item.is("uiElement")
                  )),
                  (n = this._wrapPosition(n, t));
                const r = this.document.selection;
                return (
                  r.isCollapsed &&
                    r.getFirstPosition().isEqual(e.start) &&
                    this.setSelection(n),
                  new _n(n)
                );
              }
              return this._wrapRange(e, t);
            }
            unwrap(e, t) {
              if (!(t instanceof Mn))
                throw new _t.b(
                  "view-writer-unwrap-invalid-attribute",
                  this.document
                );
              if (($n(e, this.document), e.isCollapsed)) return e;
              const { start: n, end: r } = this._breakAttributesRange(e, !0),
                o = n.parent,
                a = this._unwrapChildren(o, n.offset, r.offset, t),
                i = this.mergeAttributes(a.start);
              i.isEqual(a.start) || a.end.offset--;
              const s = this.mergeAttributes(a.end);
              return new _n(i, s);
            }
            rename(e, t) {
              const n = new Ut(e, t.getAttributes());
              return (
                this.insert(gn._createAfter(t), n),
                this.move(_n._createIn(t), gn._createAt(n, 0)),
                this.remove(_n._createOn(t)),
                n
              );
            }
            clearClonedElementsGroup(e) {
              this._cloneGroups.delete(e);
            }
            createPositionAt(e, t) {
              return gn._createAt(e, t);
            }
            createPositionAfter(e) {
              return gn._createAfter(e);
            }
            createPositionBefore(e) {
              return gn._createBefore(e);
            }
            createRange(e, t) {
              return new _n(e, t);
            }
            createRangeOn(e) {
              return _n._createOn(e);
            }
            createRangeIn(e) {
              return _n._createIn(e);
            }
            createSelection(e, t, n) {
              return new yn(e, t, n);
            }
            _wrapChildren(e, t, n, r) {
              let o = t;
              const a = [];
              for (; o < n; ) {
                const t = e.getChild(o),
                  n = t.is("text"),
                  i = t.is("attributeElement"),
                  s = t.is("emptyElement"),
                  l = t.is("uiElement");
                if (i && this._wrapAttributeElement(r, t)) a.push(new gn(e, o));
                else if (n || s || l || (i && qn(r, t))) {
                  const n = r._clone();
                  t._remove(),
                    n._appendChild(t),
                    e._insertChild(o, n),
                    this._addToClonedElementsGroup(n),
                    a.push(new gn(e, o));
                } else i && this._wrapChildren(t, 0, t.childCount, r);
                o++;
              }
              let i = 0;
              for (const e of a)
                (e.offset -= i),
                  e.offset != t &&
                    (this.mergeAttributes(e).isEqual(e) || (i++, n--));
              return _n._createFromParentsAndOffsets(e, t, e, n);
            }
            _unwrapChildren(e, t, n, r) {
              let o = t;
              const a = [];
              for (; o < n; ) {
                const t = e.getChild(o);
                if (t.is("attributeElement"))
                  if (t.isSimilar(r)) {
                    const r = t.getChildren(),
                      i = t.childCount;
                    t._remove(),
                      e._insertChild(o, r),
                      this._removeFromClonedElementsGroup(t),
                      a.push(new gn(e, o), new gn(e, o + i)),
                      (o += i),
                      (n += i - 1);
                  } else
                    this._unwrapAttributeElement(r, t)
                      ? (a.push(new gn(e, o), new gn(e, o + 1)), o++)
                      : (this._unwrapChildren(t, 0, t.childCount, r), o++);
                else o++;
              }
              let i = 0;
              for (const e of a)
                (e.offset -= i),
                  e.offset != t &&
                    e.offset != n &&
                    (this.mergeAttributes(e).isEqual(e) || (i++, n--));
              return _n._createFromParentsAndOffsets(e, t, e, n);
            }
            _wrapRange(e, t) {
              const { start: n, end: r } = this._breakAttributesRange(e, !0),
                o = n.parent,
                a = this._wrapChildren(o, n.offset, r.offset, t),
                i = this.mergeAttributes(a.start);
              i.isEqual(a.start) || a.end.offset--;
              const s = this.mergeAttributes(a.end);
              return new _n(i, s);
            }
            _wrapPosition(e, t) {
              if (t.isSimilar(e.parent)) return Gn(e.clone());
              e.parent.is("text") && (e = Jn(e));
              const n = this.createAttributeElement();
              (n._priority = Number.POSITIVE_INFINITY),
                (n.isSimilar = () => !1),
                e.parent._insertChild(e.offset, n);
              const r = new _n(e, e.getShiftedBy(1));
              this.wrap(r, t);
              const o = new gn(n.parent, n.index);
              n._remove();
              const a = o.nodeBefore,
                i = o.nodeAfter;
              return a instanceof At && i instanceof At ? Kn(a, i) : Gn(o);
            }
            _wrapAttributeElement(e, t) {
              if (!Zn(e, t)) return !1;
              if (e.name !== t.name || e.priority !== t.priority) return !1;
              for (const n of e.getAttributeKeys())
                if (
                  "class" !== n &&
                  "style" !== n &&
                  t.hasAttribute(n) &&
                  t.getAttribute(n) !== e.getAttribute(n)
                )
                  return !1;
              for (const n of e.getStyleNames())
                if (t.hasStyle(n) && t.getStyle(n) !== e.getStyle(n)) return !1;
              for (const n of e.getAttributeKeys())
                "class" !== n &&
                  "style" !== n &&
                  (t.hasAttribute(n) ||
                    this.setAttribute(n, e.getAttribute(n), t));
              for (const n of e.getStyleNames())
                t.hasStyle(n) || this.setStyle(n, e.getStyle(n), t);
              for (const n of e.getClassNames())
                t.hasClass(n) || this.addClass(n, t);
              return !0;
            }
            _unwrapAttributeElement(e, t) {
              if (!Zn(e, t)) return !1;
              if (e.name !== t.name || e.priority !== t.priority) return !1;
              for (const n of e.getAttributeKeys())
                if (
                  "class" !== n &&
                  "style" !== n &&
                  (!t.hasAttribute(n) ||
                    t.getAttribute(n) !== e.getAttribute(n))
                )
                  return !1;
              if (!t.hasClass(...e.getClassNames())) return !1;
              for (const n of e.getStyleNames())
                if (!t.hasStyle(n) || t.getStyle(n) !== e.getStyle(n))
                  return !1;
              for (const n of e.getAttributeKeys())
                "class" !== n && "style" !== n && this.removeAttribute(n, t);
              return (
                this.removeClass(Array.from(e.getClassNames()), t),
                this.removeStyle(Array.from(e.getStyleNames()), t),
                !0
              );
            }
            _breakAttributesRange(e, t = !1) {
              const n = e.start,
                r = e.end;
              if (($n(e, this.document), e.isCollapsed)) {
                const n = this._breakAttributes(e.start, t);
                return new _n(n, n);
              }
              const o = this._breakAttributes(r, t),
                a = o.parent.childCount,
                i = this._breakAttributes(n, t);
              return (o.offset += o.parent.childCount - a), new _n(i, o);
            }
            _breakAttributes(e, t = !1) {
              const n = e.offset,
                r = e.parent;
              if (e.parent.is("emptyElement"))
                throw new _t.b(
                  "view-writer-cannot-break-empty-element",
                  this.document
                );
              if (e.parent.is("uiElement"))
                throw new _t.b(
                  "view-writer-cannot-break-ui-element",
                  this.document
                );
              if (!t && r.is("text") && Xn(r.parent)) return e.clone();
              if (Xn(r)) return e.clone();
              if (r.is("text")) return this._breakAttributes(Jn(e), t);
              if (n == r.childCount) {
                const e = new gn(r.parent, r.index + 1);
                return this._breakAttributes(e, t);
              }
              if (0 === n) {
                const e = new gn(r.parent, r.index);
                return this._breakAttributes(e, t);
              }
              {
                const e = r.index + 1,
                  o = r._clone();
                r.parent._insertChild(e, o), this._addToClonedElementsGroup(o);
                const a = r.childCount - n,
                  i = r._removeChildren(n, a);
                o._appendChild(i);
                const s = new gn(r.parent, e);
                return this._breakAttributes(s, t);
              }
            }
            _addToClonedElementsGroup(e) {
              if (!e.root.is("rootElement")) return;
              if (e.is("element"))
                for (const t of e.getChildren())
                  this._addToClonedElementsGroup(t);
              const t = e.id;
              if (!t) return;
              let n = this._cloneGroups.get(t);
              n || ((n = new Set()), this._cloneGroups.set(t, n)),
                n.add(e),
                (e._clonesGroup = n);
            }
            _removeFromClonedElementsGroup(e) {
              if (e.is("element"))
                for (const t of e.getChildren())
                  this._removeFromClonedElementsGroup(t);
              const t = e.id;
              if (!t) return;
              const n = this._cloneGroups.get(t);
              n && n.delete(e);
            }
          }
          function Wn(e) {
            let t = e.parent;
            for (; !Xn(t); ) {
              if (!t) return;
              t = t.parent;
            }
            return t;
          }
          function qn(e, t) {
            return (
              e.priority < t.priority ||
              (!(e.priority > t.priority) && e.getIdentity() < t.getIdentity())
            );
          }
          function Gn(e) {
            const t = e.nodeBefore;
            if (t && t.is("text")) return new gn(t, t.data.length);
            const n = e.nodeAfter;
            return n && n.is("text") ? new gn(n, 0) : e;
          }
          function Jn(e) {
            if (e.offset == e.parent.data.length)
              return new gn(e.parent.parent, e.parent.index + 1);
            if (0 === e.offset) return new gn(e.parent.parent, e.parent.index);
            const t = e.parent.data.slice(e.offset);
            return (
              (e.parent._data = e.parent.data.slice(0, e.offset)),
              e.parent.parent._insertChild(e.parent.index + 1, new At(t)),
              new gn(e.parent.parent, e.parent.index + 1)
            );
          }
          function Kn(e, t) {
            const n = e.data.length;
            return (e._data += t.data), t._remove(), new gn(e, n);
          }
          const Qn = [At, Mn, Ut, Sn, zn];
          function Xn(e) {
            return e && (e.is("containerElement") || e.is("documentFragment"));
          }
          function $n(e, t) {
            const n = Wn(e.start),
              r = Wn(e.end);
            if (!n || !r || n !== r)
              throw new _t.b("view-writer-invalid-range-container", t);
          }
          function Zn(e, t) {
            return null === e.id && null === t.id;
          }
          function er(e) {
            return "[object Text]" == Object.prototype.toString.call(e);
          }
          const tr = (e) => {
              const t = e.createElement("br");
              return (t.dataset.ckeFiller = !0), t;
            },
            nr = (e) => e.createTextNode(" ");
          let rr = "";
          for (let e = 0; e < 7; e++) rr += "​";
          function or(e) {
            return er(e) && e.data.substr(0, 7) === rr;
          }
          function ar(e) {
            return 7 == e.data.length && or(e);
          }
          function ir(e) {
            return or(e) ? e.data.slice(7) : e.data;
          }
          const sr = new WeakMap();
          function lr(e, t) {
            let n = sr.get(t);
            return (
              n || ((n = t(window.document)), sr.set(t, n)), e.isEqualNode(n)
            );
          }
          function cr(e, t) {
            if (t.keyCode == Yn.arrowleft) {
              const e = t.domTarget.ownerDocument.defaultView.getSelection();
              if (1 == e.rangeCount && e.getRangeAt(0).collapsed) {
                const t = e.getRangeAt(0).startContainer,
                  n = e.getRangeAt(0).startOffset;
                or(t) && n <= 7 && e.collapse(t, 0);
              }
            }
          }
          function ur(e, t, n, r = !1) {
            (n =
              n ||
              function (e, t) {
                return e === t;
              }),
              Array.isArray(e) || (e = Array.from(e)),
              Array.isArray(t) || (t = Array.from(t));
            const o = (function (e, t, n) {
              const r = dr(e, t, n);
              if (-1 === r)
                return { firstIndex: -1, lastIndexOld: -1, lastIndexNew: -1 };
              const o = dr(hr(e, r), hr(t, r), n);
              return {
                firstIndex: r,
                lastIndexOld: e.length - o,
                lastIndexNew: t.length - o,
              };
            })(e, t, n);
            return r
              ? (function (e, t) {
                  const { firstIndex: n, lastIndexOld: r, lastIndexNew: o } = e;
                  if (-1 === n) return Array(t).fill("equal");
                  let a = [];
                  return (
                    n > 0 && (a = a.concat(Array(n).fill("equal"))),
                    o - n > 0 && (a = a.concat(Array(o - n).fill("insert"))),
                    r - n > 0 && (a = a.concat(Array(r - n).fill("delete"))),
                    o < t && (a = a.concat(Array(t - o).fill("equal"))),
                    a
                  );
                })(o, t.length)
              : (function (e, t) {
                  const n = [],
                    { firstIndex: r, lastIndexOld: o, lastIndexNew: a } = t;
                  return (
                    a - r > 0 &&
                      n.push({
                        index: r,
                        type: "insert",
                        values: e.slice(r, a),
                      }),
                    o - r > 0 &&
                      n.push({
                        index: r + (a - r),
                        type: "delete",
                        howMany: o - r,
                      }),
                    n
                  );
                })(t, o);
          }
          function dr(e, t, n) {
            for (let r = 0; r < Math.max(e.length, t.length); r++)
              if (void 0 === e[r] || void 0 === t[r] || !n(e[r], t[r]))
                return r;
            return -1;
          }
          function hr(e, t) {
            return e.slice(t).reverse();
          }
          function pr(e, t, n) {
            n =
              n ||
              function (e, t) {
                return e === t;
              };
            const r = e.length,
              o = t.length;
            if (r > 200 || o > 200 || r + o > 300)
              return pr.fastDiff(e, t, n, !0);
            let a, i;
            if (o < r) {
              const n = e;
              (e = t), (t = n), (a = "delete"), (i = "insert");
            } else (a = "insert"), (i = "delete");
            const s = e.length,
              l = t.length,
              c = l - s,
              u = {},
              d = {};
            function h(r) {
              const o = (void 0 !== d[r - 1] ? d[r - 1] : -1) + 1,
                c = void 0 !== d[r + 1] ? d[r + 1] : -1,
                h = o > c ? -1 : 1;
              u[r + h] && (u[r] = u[r + h].slice(0)),
                u[r] || (u[r] = []),
                u[r].push(o > c ? a : i);
              let p = Math.max(o, c),
                f = p - r;
              for (; f < s && p < l && n(e[f], t[p]); )
                f++, p++, u[r].push("equal");
              return p;
            }
            let p,
              f = 0;
            do {
              for (p = -f; p < c; p++) d[p] = h(p);
              for (p = c + f; p > c; p--) d[p] = h(p);
              (d[c] = h(c)), f++;
            } while (d[c] !== l);
            return u[c].slice(1);
          }
          function fr(e, t, n) {
            e.insertBefore(n, e.childNodes[t] || null);
          }
          function mr(e) {
            const t = e.parentNode;
            t && t.removeChild(e);
          }
          function gr(e) {
            if (e) {
              if (e.defaultView) return e instanceof e.defaultView.Document;
              if (e.ownerDocument && e.ownerDocument.defaultView)
                return e instanceof e.ownerDocument.defaultView.Node;
            }
            return !1;
          }
          pr.fastDiff = ur;
          class _r {
            constructor(e, t) {
              (this.domDocuments = new Set()),
                (this.domConverter = e),
                (this.markedAttributes = new Set()),
                (this.markedChildren = new Set()),
                (this.markedTexts = new Set()),
                (this.selection = t),
                (this.isFocused = !1),
                (this._inlineFiller = null),
                (this._fakeSelectionContainer = null);
            }
            markToSync(e, t) {
              if ("text" === e)
                this.domConverter.mapViewToDom(t.parent) &&
                  this.markedTexts.add(t);
              else {
                if (!this.domConverter.mapViewToDom(t)) return;
                if ("attributes" === e) this.markedAttributes.add(t);
                else {
                  if ("children" !== e)
                    throw new _t.b(
                      "view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",
                      this
                    );
                  this.markedChildren.add(t);
                }
              }
            }
            render() {
              let e;
              for (const e of this.markedChildren)
                this._updateChildrenMappings(e);
              this._inlineFiller &&
                !this._isSelectionInInlineFiller() &&
                this._removeInlineFiller(),
                this._inlineFiller
                  ? (e = this._getInlineFillerPosition())
                  : this._needsInlineFillerAtSelection() &&
                    ((e = this.selection.getFirstPosition()),
                    this.markedChildren.add(e.parent));
              for (const e of this.markedAttributes) this._updateAttrs(e);
              for (const t of this.markedChildren)
                this._updateChildren(t, { inlineFillerPosition: e });
              for (const t of this.markedTexts)
                !this.markedChildren.has(t.parent) &&
                  this.domConverter.mapViewToDom(t.parent) &&
                  this._updateText(t, { inlineFillerPosition: e });
              if (e) {
                const t = this.domConverter.viewPositionToDom(e),
                  n = t.parent.ownerDocument;
                or(t.parent)
                  ? (this._inlineFiller = t.parent)
                  : (this._inlineFiller = vr(n, t.parent, t.offset));
              } else this._inlineFiller = null;
              this._updateSelection(),
                this._updateFocus(),
                this.markedTexts.clear(),
                this.markedAttributes.clear(),
                this.markedChildren.clear();
            }
            _updateChildrenMappings(e) {
              const t = this.domConverter.mapViewToDom(e);
              if (!t) return;
              const n = this.domConverter.mapViewToDom(e).childNodes,
                r = Array.from(
                  this.domConverter.viewChildrenToDom(e, t.ownerDocument, {
                    withChildren: !1,
                  })
                ),
                o = this._diffNodeLists(n, r),
                a = this._findReplaceActions(o, n, r);
              if (-1 !== a.indexOf("replace")) {
                const t = { equal: 0, insert: 0, delete: 0 };
                for (const o of a)
                  if ("replace" === o) {
                    const o = t.equal + t.insert,
                      a = t.equal + t.delete,
                      i = e.getChild(o);
                    i &&
                      !i.is("uiElement") &&
                      this._updateElementMappings(i, n[a]),
                      mr(r[o]),
                      t.equal++;
                  } else t[o]++;
              }
            }
            _updateElementMappings(e, t) {
              this.domConverter.unbindDomElement(t),
                this.domConverter.bindElements(t, e),
                this.markedChildren.add(e),
                this.markedAttributes.add(e);
            }
            _getInlineFillerPosition() {
              const e = this.selection.getFirstPosition();
              return e.parent.is("text")
                ? gn._createBefore(this.selection.getFirstPosition().parent)
                : e;
            }
            _isSelectionInInlineFiller() {
              if (1 != this.selection.rangeCount || !this.selection.isCollapsed)
                return !1;
              const e = this.selection.getFirstPosition(),
                t = this.domConverter.viewPositionToDom(e);
              return !!(t && er(t.parent) && or(t.parent));
            }
            _removeInlineFiller() {
              const e = this._inlineFiller;
              if (!or(e))
                throw new _t.b(
                  "view-renderer-filler-was-lost: The inline filler node was lost.",
                  this
                );
              ar(e) ? e.parentNode.removeChild(e) : (e.data = e.data.substr(7)),
                (this._inlineFiller = null);
            }
            _needsInlineFillerAtSelection() {
              if (1 != this.selection.rangeCount || !this.selection.isCollapsed)
                return !1;
              const e = this.selection.getFirstPosition(),
                t = e.parent,
                n = e.offset;
              if (!this.domConverter.mapViewToDom(t.root)) return !1;
              if (!t.is("element")) return !1;
              if (
                !(function (e) {
                  if ("false" == e.getAttribute("contenteditable")) return !1;
                  const t = e.findAncestor((e) =>
                    e.hasAttribute("contenteditable")
                  );
                  return !t || "true" == t.getAttribute("contenteditable");
                })(t)
              )
                return !1;
              if (n === t.getFillerOffset()) return !1;
              const r = e.nodeBefore,
                o = e.nodeAfter;
              return !(r instanceof At || o instanceof At);
            }
            _updateText(e, t) {
              const n = this.domConverter.findCorrespondingDomText(e),
                r = this.domConverter.viewToDom(e, n.ownerDocument),
                o = n.data;
              let a = r.data;
              const i = t.inlineFillerPosition;
              if (
                (i &&
                  i.parent == e.parent &&
                  i.offset == e.index &&
                  (a = rr + a),
                o != a)
              ) {
                const e = ur(o, a);
                for (const t of e)
                  "insert" === t.type
                    ? n.insertData(t.index, t.values.join(""))
                    : n.deleteData(t.index, t.howMany);
              }
            }
            _updateAttrs(e) {
              const t = this.domConverter.mapViewToDom(e);
              if (!t) return;
              const n = Array.from(t.attributes).map((e) => e.name),
                r = e.getAttributeKeys();
              for (const n of r) t.setAttribute(n, e.getAttribute(n));
              for (const r of n) e.hasAttribute(r) || t.removeAttribute(r);
            }
            _updateChildren(e, t) {
              const n = this.domConverter.mapViewToDom(e);
              if (!n) return;
              const r = t.inlineFillerPosition,
                o = this.domConverter.mapViewToDom(e).childNodes,
                a = Array.from(
                  this.domConverter.viewChildrenToDom(e, n.ownerDocument, {
                    bind: !0,
                    inlineFillerPosition: r,
                  })
                );
              r && r.parent === e && vr(n.ownerDocument, a, r.offset);
              const i = this._diffNodeLists(o, a);
              let s = 0;
              const l = new Set();
              for (const e of i)
                "insert" === e
                  ? (fr(n, s, a[s]), s++)
                  : "delete" === e
                  ? (l.add(o[s]), mr(o[s]))
                  : (this._markDescendantTextToSync(
                      this.domConverter.domToView(a[s])
                    ),
                    s++);
              for (const e of l)
                e.parentNode || this.domConverter.unbindDomElement(e);
            }
            _diffNodeLists(e, t) {
              return pr(
                (e = (function (e, t) {
                  const n = Array.from(e);
                  return 0 != n.length && t
                    ? (n[n.length - 1] == t && n.pop(), n)
                    : n;
                })(e, this._fakeSelectionContainer)),
                t,
                function (e, t, n) {
                  return (
                    t === n ||
                    (er(t) && er(n)
                      ? t.data === n.data
                      : !(!lr(t, e) || !lr(n, e)))
                  );
                }.bind(null, this.domConverter.blockFiller)
              );
            }
            _findReplaceActions(e, t, n) {
              if (-1 === e.indexOf("insert") || -1 === e.indexOf("delete"))
                return e;
              let r = [],
                o = [],
                a = [];
              const i = { equal: 0, insert: 0, delete: 0 };
              for (const s of e)
                "insert" === s
                  ? a.push(n[i.equal + i.insert])
                  : "delete" === s
                  ? o.push(t[i.equal + i.delete])
                  : ((r = r.concat(
                      pr(o, a, br).map((e) => ("equal" === e ? "replace" : e))
                    )).push("equal"),
                    (o = []),
                    (a = [])),
                  i[s]++;
              return r.concat(
                pr(o, a, br).map((e) => ("equal" === e ? "replace" : e))
              );
            }
            _markDescendantTextToSync(e) {
              if (e)
                if (e.is("text")) this.markedTexts.add(e);
                else if (e.is("element"))
                  for (const t of e.getChildren())
                    this._markDescendantTextToSync(t);
            }
            _updateSelection() {
              if (0 === this.selection.rangeCount)
                return (
                  this._removeDomSelection(), void this._removeFakeSelection()
                );
              const e = this.domConverter.mapViewToDom(
                this.selection.editableElement
              );
              this.isFocused &&
                e &&
                (this.selection.isFake
                  ? this._updateFakeSelection(e)
                  : (this._removeFakeSelection(), this._updateDomSelection(e)));
            }
            _updateFakeSelection(e) {
              const t = e.ownerDocument;
              let n = this._fakeSelectionContainer;
              n ||
                ((this._fakeSelectionContainer = n = t.createElement("div")),
                Object.assign(n.style, {
                  position: "fixed",
                  top: 0,
                  left: "-9999px",
                  width: "42px",
                }),
                (n.textContent = " ")),
                (n.parentElement && n.parentElement == e) || e.appendChild(n),
                (n.textContent = this.selection.fakeSelectionLabel || " ");
              const r = t.getSelection(),
                o = t.createRange();
              r.removeAllRanges(),
                o.selectNodeContents(n),
                r.addRange(o),
                this.domConverter.bindFakeSelection(n, this.selection);
            }
            _updateDomSelection(e) {
              const t = e.ownerDocument.defaultView.getSelection();
              if (!this._domSelectionNeedsUpdate(t)) return;
              const n = this.domConverter.viewPositionToDom(
                  this.selection.anchor
                ),
                r = this.domConverter.viewPositionToDom(this.selection.focus);
              e.focus(),
                t.collapse(n.parent, n.offset),
                t.extend(r.parent, r.offset),
                On &&
                  (function (e, t) {
                    const n = e.parent;
                    if (
                      n.nodeType != Node.ELEMENT_NODE ||
                      e.offset != n.childNodes.length - 1
                    )
                      return;
                    const r = n.childNodes[e.offset];
                    r && "BR" == r.tagName && t.addRange(t.getRangeAt(0));
                  })(r, t);
            }
            _domSelectionNeedsUpdate(e) {
              if (!this.domConverter.isDomSelectionCorrect(e)) return !0;
              const t = e && this.domConverter.domSelectionToView(e);
              return !(
                (t && this.selection.isEqual(t)) ||
                (!this.selection.isCollapsed && this.selection.isSimilar(t))
              );
            }
            _removeDomSelection() {
              for (const e of this.domDocuments)
                if (e.getSelection().rangeCount) {
                  const t = e.activeElement,
                    n = this.domConverter.mapDomToView(t);
                  t && n && e.getSelection().removeAllRanges();
                }
            }
            _removeFakeSelection() {
              const e = this._fakeSelectionContainer;
              e && e.remove();
            }
            _updateFocus() {
              if (this.isFocused) {
                const e = this.selection.editableElement;
                e && this.domConverter.focus(e);
              }
            }
          }
          function vr(e, t, n) {
            const r = t instanceof Array ? t : t.childNodes,
              o = r[n];
            if (er(o)) return (o.data = rr + o.data), o;
            {
              const o = e.createTextNode(rr);
              return Array.isArray(t) ? r.splice(n, 0, o) : fr(t, n, o), o;
            }
          }
          function br(e, t) {
            return (
              gr(e) &&
              gr(t) &&
              !er(e) &&
              !er(t) &&
              e.tagName.toLowerCase() === t.tagName.toLowerCase()
            );
          }
          Ct(_r, on);
          var yr = { window: window, document: document };
          function wr(e) {
            let t = 0;
            for (; e.previousSibling; ) (e = e.previousSibling), t++;
            return t;
          }
          function kr(e) {
            const t = [];
            for (; e && e.nodeType != Node.DOCUMENT_NODE; )
              t.unshift(e), (e = e.parentNode);
            return t;
          }
          class xr {
            constructor(e = {}) {
              (this.blockFiller = e.blockFiller || tr),
                (this.preElements = ["pre"]),
                (this.blockElements = [
                  "p",
                  "div",
                  "h1",
                  "h2",
                  "h3",
                  "h4",
                  "h5",
                  "h6",
                ]),
                (this._domToViewMapping = new WeakMap()),
                (this._viewToDomMapping = new WeakMap()),
                (this._fakeSelectionMapping = new WeakMap());
            }
            bindFakeSelection(e, t) {
              this._fakeSelectionMapping.set(e, new yn(t));
            }
            fakeSelectionToView(e) {
              return this._fakeSelectionMapping.get(e);
            }
            bindElements(e, t) {
              this._domToViewMapping.set(e, t),
                this._viewToDomMapping.set(t, e);
            }
            unbindDomElement(e) {
              const t = this._domToViewMapping.get(e);
              if (t) {
                this._domToViewMapping.delete(e),
                  this._viewToDomMapping.delete(t);
                for (const t of Array.from(e.childNodes))
                  this.unbindDomElement(t);
              }
            }
            bindDocumentFragments(e, t) {
              this._domToViewMapping.set(e, t),
                this._viewToDomMapping.set(t, e);
            }
            viewToDom(e, t, n = {}) {
              if (e.is("text")) {
                const n = this._processDataFromViewText(e);
                return t.createTextNode(n);
              }
              {
                if (this.mapViewToDom(e)) return this.mapViewToDom(e);
                let r;
                if (e.is("documentFragment"))
                  (r = t.createDocumentFragment()),
                    n.bind && this.bindDocumentFragments(r, e);
                else {
                  if (e.is("uiElement"))
                    return (
                      (r = e.render(t)), n.bind && this.bindElements(r, e), r
                    );
                  (r = t.createElement(e.name)),
                    n.bind && this.bindElements(r, e);
                  for (const t of e.getAttributeKeys())
                    r.setAttribute(t, e.getAttribute(t));
                }
                if (n.withChildren || void 0 === n.withChildren)
                  for (const o of this.viewChildrenToDom(e, t, n))
                    r.appendChild(o);
                return r;
              }
            }
            *viewChildrenToDom(e, t, n = {}) {
              const r = e.getFillerOffset && e.getFillerOffset();
              let o = 0;
              for (const a of e.getChildren())
                r === o && (yield this.blockFiller(t)),
                  yield this.viewToDom(a, t, n),
                  o++;
              r === o && (yield this.blockFiller(t));
            }
            viewRangeToDom(e) {
              const t = this.viewPositionToDom(e.start),
                n = this.viewPositionToDom(e.end),
                r = document.createRange();
              return (
                r.setStart(t.parent, t.offset), r.setEnd(n.parent, n.offset), r
              );
            }
            viewPositionToDom(e) {
              const t = e.parent;
              if (t.is("text")) {
                const n = this.findCorrespondingDomText(t);
                if (!n) return null;
                let r = e.offset;
                return or(n) && (r += 7), { parent: n, offset: r };
              }
              {
                let n, r, o;
                if (0 === e.offset) {
                  if (!(n = this.mapViewToDom(t))) return null;
                  o = n.childNodes[0];
                } else {
                  const t = e.nodeBefore;
                  if (
                    !(r = t.is("text")
                      ? this.findCorrespondingDomText(t)
                      : this.mapViewToDom(e.nodeBefore))
                  )
                    return null;
                  (n = r.parentNode), (o = r.nextSibling);
                }
                return er(o) && or(o)
                  ? { parent: o, offset: 7 }
                  : { parent: n, offset: r ? wr(r) + 1 : 0 };
              }
            }
            domToView(e, t = {}) {
              if (lr(e, this.blockFiller)) return null;
              const n = this.getParentUIElement(e, this._domToViewMapping);
              if (n) return n;
              if (er(e)) {
                if (ar(e)) return null;
                {
                  const t = this._processDataFromDomText(e);
                  return "" === t ? null : new At(t);
                }
              }
              if (this.isComment(e)) return null;
              {
                if (this.mapDomToView(e)) return this.mapDomToView(e);
                let n;
                if (this.isDocumentFragment(e))
                  (n = new Un()), t.bind && this.bindDocumentFragments(e, n);
                else {
                  const r = t.keepOriginalCase
                    ? e.tagName
                    : e.tagName.toLowerCase();
                  (n = new Ht(r)), t.bind && this.bindElements(e, n);
                  const o = e.attributes;
                  for (let e = o.length - 1; e >= 0; e--)
                    n._setAttribute(o[e].name, o[e].value);
                }
                if (t.withChildren || void 0 === t.withChildren)
                  for (const r of this.domChildrenToView(e, t))
                    n._appendChild(r);
                return n;
              }
            }
            *domChildrenToView(e, t = {}) {
              for (let n = 0; n < e.childNodes.length; n++) {
                const r = e.childNodes[n],
                  o = this.domToView(r, t);
                null !== o && (yield o);
              }
            }
            domSelectionToView(e) {
              if (1 === e.rangeCount) {
                let t = e.getRangeAt(0).startContainer;
                er(t) && (t = t.parentNode);
                const n = this.fakeSelectionToView(t);
                if (n) return n;
              }
              const t = this.isDomSelectionBackward(e),
                n = [];
              for (let t = 0; t < e.rangeCount; t++) {
                const r = e.getRangeAt(t),
                  o = this.domRangeToView(r);
                o && n.push(o);
              }
              return new yn(n, { backward: t });
            }
            domRangeToView(e) {
              const t = this.domPositionToView(e.startContainer, e.startOffset),
                n = this.domPositionToView(e.endContainer, e.endOffset);
              return t && n ? new _n(t, n) : null;
            }
            domPositionToView(e, t) {
              if (lr(e, this.blockFiller))
                return this.domPositionToView(e.parentNode, wr(e));
              const n = this.mapDomToView(e);
              if (n && n.is("uiElement")) return gn._createBefore(n);
              if (er(e)) {
                if (ar(e)) return this.domPositionToView(e.parentNode, wr(e));
                const n = this.findCorrespondingViewText(e);
                let r = t;
                return n
                  ? (or(e) && (r = (r -= 7) < 0 ? 0 : r), new gn(n, r))
                  : null;
              }
              if (0 === t) {
                const t = this.mapDomToView(e);
                if (t) return new gn(t, 0);
              } else {
                const n = e.childNodes[t - 1],
                  r = er(n)
                    ? this.findCorrespondingViewText(n)
                    : this.mapDomToView(n);
                if (r && r.parent) return new gn(r.parent, r.index + 1);
              }
              return null;
            }
            mapDomToView(e) {
              return (
                this.getParentUIElement(e) || this._domToViewMapping.get(e)
              );
            }
            findCorrespondingViewText(e) {
              if (ar(e)) return null;
              const t = this.getParentUIElement(e);
              if (t) return t;
              const n = e.previousSibling;
              if (n) {
                if (!this.isElement(n)) return null;
                const e = this.mapDomToView(n);
                if (e)
                  return e.nextSibling instanceof At ? e.nextSibling : null;
              } else {
                const t = this.mapDomToView(e.parentNode);
                if (t) {
                  const e = t.getChild(0);
                  return e instanceof At ? e : null;
                }
              }
              return null;
            }
            mapViewToDom(e) {
              return this._viewToDomMapping.get(e);
            }
            findCorrespondingDomText(e) {
              const t = e.previousSibling;
              return t && this.mapViewToDom(t)
                ? this.mapViewToDom(t).nextSibling
                : !t && e.parent && this.mapViewToDom(e.parent)
                ? this.mapViewToDom(e.parent).childNodes[0]
                : null;
            }
            focus(e) {
              const t = this.mapViewToDom(e);
              if (t && t.ownerDocument.activeElement !== t) {
                const { scrollX: e, scrollY: n } = yr.window,
                  r = [];
                Er(t, (e) => {
                  const { scrollLeft: t, scrollTop: n } = e;
                  r.push([t, n]);
                }),
                  t.focus(),
                  Er(t, (e) => {
                    const [t, n] = r.shift();
                    (e.scrollLeft = t), (e.scrollTop = n);
                  }),
                  yr.window.scrollTo(e, n);
              }
            }
            isElement(e) {
              return e && e.nodeType == Node.ELEMENT_NODE;
            }
            isDocumentFragment(e) {
              return e && e.nodeType == Node.DOCUMENT_FRAGMENT_NODE;
            }
            isComment(e) {
              return e && e.nodeType == Node.COMMENT_NODE;
            }
            isDomSelectionBackward(e) {
              if (e.isCollapsed) return !1;
              const t = document.createRange();
              t.setStart(e.anchorNode, e.anchorOffset),
                t.setEnd(e.focusNode, e.focusOffset);
              const n = t.collapsed;
              return t.detach(), n;
            }
            getParentUIElement(e) {
              const t = kr(e);
              for (t.pop(); t.length; ) {
                const e = t.pop(),
                  n = this._domToViewMapping.get(e);
                if (n && n.is("uiElement")) return n;
              }
              return null;
            }
            isDomSelectionCorrect(e) {
              return (
                this._isDomSelectionPositionCorrect(
                  e.anchorNode,
                  e.anchorOffset
                ) &&
                this._isDomSelectionPositionCorrect(e.focusNode, e.focusOffset)
              );
            }
            _isDomSelectionPositionCorrect(e, t) {
              if (er(e) && or(e) && t < 7) return !1;
              if (this.isElement(e) && or(e.childNodes[t])) return !1;
              const n = this.mapDomToView(e);
              return !n || !n.is("uiElement");
            }
            _processDataFromViewText(e) {
              let t = e.data;
              if (
                e.getAncestors().some((e) => this.preElements.includes(e.name))
              )
                return t;
              if (" " == t.charAt(0)) {
                const n = this._getTouchingViewTextNode(e, !1);
                ((!n || !this._nodeEndsWithSpace(n)) && n) ||
                  (t = " " + t.substr(1));
              }
              if (" " == t.charAt(t.length - 1)) {
                const n = this._getTouchingViewTextNode(e, !0);
                (" " != t.charAt(t.length - 2) &&
                  n &&
                  " " != n.data.charAt(0)) ||
                  (t = t.substr(0, t.length - 1) + " ");
              }
              return t.replace(/ {2}/g, "  ");
            }
            _nodeEndsWithSpace(e) {
              if (
                e.getAncestors().some((e) => this.preElements.includes(e.name))
              )
                return !1;
              const t = this._processDataFromViewText(e);
              return " " == t.charAt(t.length - 1);
            }
            _processDataFromDomText(e) {
              let t = e.data;
              if (Mr(e, this.preElements)) return ir(e);
              t = t.replace(/[ \n\t\r]{1,}/g, " ");
              const n = this._getTouchingInlineDomNode(e, !1),
                r = this._getTouchingInlineDomNode(e, !0),
                o = this._checkShouldLeftTrimDomText(n),
                a = this._checkShouldRightTrimDomText(e, r);
              return (
                o && (t = t.replace(/^ /, "")),
                a && (t = t.replace(/ $/, "")),
                (t = (t = ir(new Text(t))).replace(/ \u00A0/g, "  ")),
                (/( |\u00A0)\u00A0$/.test(t) ||
                  !r ||
                  (r.data && " " == r.data.charAt(0))) &&
                  (t = t.replace(/\u00A0$/, " ")),
                o && (t = t.replace(/^\u00A0/, " ")),
                t
              );
            }
            _checkShouldLeftTrimDomText(e) {
              return (
                !e ||
                !!ft(e) ||
                /[^\S\u00A0]/.test(e.data.charAt(e.data.length - 1))
              );
            }
            _checkShouldRightTrimDomText(e, t) {
              return !t && !or(e);
            }
            _getTouchingViewTextNode(e, t) {
              const n = new mn({
                startPosition: t ? gn._createAfter(e) : gn._createBefore(e),
                direction: t ? "forward" : "backward",
              });
              for (const e of n) {
                if (e.item.is("containerElement")) return null;
                if (e.item.is("br")) return null;
                if (e.item.is("textProxy")) return e.item;
              }
              return null;
            }
            _getTouchingInlineDomNode(e, t) {
              if (!e.parentNode) return null;
              const n = t ? "nextNode" : "previousNode",
                r = e.ownerDocument,
                o = kr(e)[0],
                a = r.createTreeWalker(
                  o,
                  NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT,
                  {
                    acceptNode: (e) =>
                      er(e) || "BR" == e.tagName
                        ? NodeFilter.FILTER_ACCEPT
                        : NodeFilter.FILTER_SKIP,
                  }
                );
              a.currentNode = e;
              const i = a[n]();
              if (null !== i) {
                const t = (function (e, t) {
                  const n = kr(e),
                    r = kr(t);
                  let o = 0;
                  for (; n[o] == r[o] && n[o]; ) o++;
                  return 0 === o ? null : n[o - 1];
                })(e, i);
                if (
                  t &&
                  !Mr(e, this.blockElements, t) &&
                  !Mr(i, this.blockElements, t)
                )
                  return i;
              }
              return null;
            }
          }
          function Mr(e, t, n) {
            let r = kr(e);
            return (
              n && (r = r.slice(r.indexOf(n) + 1)),
              r.some((e) => e.tagName && t.includes(e.tagName.toLowerCase()))
            );
          }
          function Er(e, t) {
            for (; e && e != yr.document; ) t(e), (e = e.parentNode);
          }
          function Tr(e) {
            const t = Object.prototype.toString.apply(e);
            return "[object Window]" == t || "[object global]" == t;
          }
          var Sr = Zt({}, xt, {
            listenTo(e, ...t) {
              if (gr(e) || Tr(e)) {
                const n = this._getProxyEmitter(e) || new Dr(e);
                n.attach(...t), (e = n);
              }
              xt.listenTo.call(this, e, ...t);
            },
            stopListening(e, t, n) {
              if (gr(e) || Tr(e)) {
                const t = this._getProxyEmitter(e);
                if (!t) return;
                e = t;
              }
              xt.stopListening.call(this, e, t, n),
                e instanceof Dr && e.detach(t);
            },
            _getProxyEmitter(e) {
              return (function (e, t) {
                return e[wt] && e[wt][t] ? e[wt][t].emitter : null;
              })(this, Lr(e));
            },
          });
          class Dr {
            constructor(e) {
              Mt(this, Lr(e)), (this._domNode = e);
            }
          }
          function Lr(e) {
            return e["data-ck-expando"] || (e["data-ck-expando"] = bt());
          }
          Zt(Dr.prototype, xt, {
            attach(e, t, n = {}) {
              if (this._domListeners && this._domListeners[e]) return;
              const r = this._createDomListener(e, !!n.useCapture);
              this._domNode.addEventListener(e, r, !!n.useCapture),
                this._domListeners || (this._domListeners = {}),
                (this._domListeners[e] = r);
            },
            detach(e) {
              let t;
              !this._domListeners[e] ||
                ((t = this._events[e]) && t.callbacks.length) ||
                this._domListeners[e].removeListener();
            },
            _createDomListener(e, t) {
              const n = (t) => {
                this.fire(e, t);
              };
              return (
                (n.removeListener = () => {
                  this._domNode.removeEventListener(e, n, t),
                    delete this._domListeners[e];
                }),
                n
              );
            },
          });
          class Cr {
            constructor(e) {
              (this.view = e),
                (this.document = e.document),
                (this.isEnabled = !1);
            }
            enable() {
              this.isEnabled = !0;
            }
            disable() {
              this.isEnabled = !1;
            }
            destroy() {
              this.disable(), this.stopListening();
            }
          }
          function Pr(e) {
            var t = -1,
              n = null == e ? 0 : e.length;
            for (this.__data__ = new J(); ++t < n; ) this.add(e[t]);
          }
          Ct(Cr, Sr),
            (Pr.prototype.add = Pr.prototype.push = function (e) {
              return this.__data__.set(e, "__lodash_hash_undefined__"), this;
            }),
            (Pr.prototype.has = function (e) {
              return this.__data__.has(e);
            });
          var Or = Pr,
            Nr = function (e, t) {
              for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
                if (t(e[n], n, e)) return !0;
              return !1;
            },
            Ar = function (e, t) {
              return e.has(t);
            },
            Ir = function (e, t, n, r, o, a) {
              var i = 1 & n,
                s = e.length,
                l = t.length;
              if (s != l && !(i && l > s)) return !1;
              var c = a.get(e);
              if (c && a.get(t)) return c == t;
              var u = -1,
                d = !0,
                h = 2 & n ? new Or() : void 0;
              for (a.set(e, t), a.set(t, e); ++u < s; ) {
                var p = e[u],
                  f = t[u];
                if (r) var m = i ? r(f, p, u, t, e, a) : r(p, f, u, e, t, a);
                if (void 0 !== m) {
                  if (m) continue;
                  d = !1;
                  break;
                }
                if (h) {
                  if (
                    !Nr(t, function (e, t) {
                      if (!Ar(h, t) && (p === e || o(p, e, n, r, a)))
                        return h.push(t);
                    })
                  ) {
                    d = !1;
                    break;
                  }
                } else if (p !== f && !o(p, f, n, r, a)) {
                  d = !1;
                  break;
                }
              }
              return a.delete(e), a.delete(t), d;
            },
            Rr = function (e) {
              var t = -1,
                n = Array(e.size);
              return (
                e.forEach(function (e, r) {
                  n[++t] = [r, e];
                }),
                n
              );
            },
            Yr = function (e) {
              var t = -1,
                n = Array(e.size);
              return (
                e.forEach(function (e) {
                  n[++t] = e;
                }),
                n
              );
            },
            jr = o ? o.prototype : void 0,
            Fr = jr ? jr.valueOf : void 0,
            Hr = Object.prototype.hasOwnProperty,
            zr = "[object Arguments]",
            Br = "[object Array]",
            Ur = "[object Object]",
            Vr = Object.prototype.hasOwnProperty,
            Wr = function (e, t, n, r, o, a) {
              var i = se(e),
                s = se(t),
                l = i ? Br : Je(e),
                c = s ? Br : Je(t),
                u = (l = l == zr ? Ur : l) == Ur,
                d = (c = c == zr ? Ur : c) == Ur,
                h = l == c;
              if (h && Object(le.a)(e)) {
                if (!Object(le.a)(t)) return !1;
                (i = !0), (u = !1);
              }
              if (h && !u)
                return (
                  a || (a = new Q()),
                  i || ge(e)
                    ? Ir(e, t, n, r, o, a)
                    : (function (e, t, n, r, o, a, i) {
                        switch (n) {
                          case "[object DataView]":
                            if (
                              e.byteLength != t.byteLength ||
                              e.byteOffset != t.byteOffset
                            )
                              return !1;
                            (e = e.buffer), (t = t.buffer);
                          case "[object ArrayBuffer]":
                            return !(
                              e.byteLength != t.byteLength ||
                              !a(new Qe(e), new Qe(t))
                            );
                          case "[object Boolean]":
                          case "[object Date]":
                          case "[object Number]":
                            return w(+e, +t);
                          case "[object Error]":
                            return e.name == t.name && e.message == t.message;
                          case "[object RegExp]":
                          case "[object String]":
                            return e == t + "";
                          case "[object Map]":
                            var s = Rr;
                          case "[object Set]":
                            var l = 1 & r;
                            if ((s || (s = Yr), e.size != t.size && !l))
                              return !1;
                            var c = i.get(e);
                            if (c) return c == t;
                            (r |= 2), i.set(e, t);
                            var u = Ir(s(e), s(t), r, o, a, i);
                            return i.delete(e), u;
                          case "[object Symbol]":
                            if (Fr) return Fr.call(e) == Fr.call(t);
                        }
                        return !1;
                      })(e, t, l, n, r, o, a)
                );
              if (!(1 & n)) {
                var p = u && Vr.call(e, "__wrapped__"),
                  f = d && Vr.call(t, "__wrapped__");
                if (p || f) {
                  var m = p ? e.value() : e,
                    g = f ? t.value() : t;
                  return a || (a = new Q()), o(m, g, n, r, a);
                }
              }
              return (
                !!h &&
                (a || (a = new Q()),
                (function (e, t, n, r, o, a) {
                  var i = 1 & n,
                    s = Re(e),
                    l = s.length;
                  if (l != Re(t).length && !i) return !1;
                  for (var c = l; c--; ) {
                    var u = s[c];
                    if (!(i ? u in t : Hr.call(t, u))) return !1;
                  }
                  var d = a.get(e);
                  if (d && a.get(t)) return d == t;
                  var h = !0;
                  a.set(e, t), a.set(t, e);
                  for (var p = i; ++c < l; ) {
                    var f = e[(u = s[c])],
                      m = t[u];
                    if (r)
                      var g = i ? r(m, f, u, t, e, a) : r(f, m, u, e, t, a);
                    if (!(void 0 === g ? f === m || o(f, m, n, r, a) : g)) {
                      h = !1;
                      break;
                    }
                    p || (p = "constructor" == u);
                  }
                  if (h && !p) {
                    var _ = e.constructor,
                      v = t.constructor;
                    _ != v &&
                      "constructor" in e &&
                      "constructor" in t &&
                      !(
                        "function" == typeof _ &&
                        _ instanceof _ &&
                        "function" == typeof v &&
                        v instanceof v
                      ) &&
                      (h = !1);
                  }
                  return a.delete(e), a.delete(t), h;
                })(e, t, n, r, o, a))
              );
            },
            qr = function e(t, n, r, o, a) {
              return (
                t === n ||
                (null == t || null == n || (!f(t) && !f(n))
                  ? t != t && n != n
                  : Wr(t, n, r, o, e, a))
              );
            },
            Gr = function (e, t, n) {
              var r = (n = "function" == typeof n ? n : void 0)
                ? n(e, t)
                : void 0;
              return void 0 === r ? qr(e, t, void 0, n) : !!r;
            };
          class Jr extends Cr {
            constructor(e) {
              super(e),
                (this._config = {
                  childList: !0,
                  characterData: !0,
                  characterDataOldValue: !0,
                  subtree: !0,
                }),
                (this.domConverter = e.domConverter),
                (this.renderer = e._renderer),
                (this._domElements = []),
                (this._mutationObserver = new window.MutationObserver(
                  this._onMutations.bind(this)
                ));
            }
            flush() {
              this._onMutations(this._mutationObserver.takeRecords());
            }
            observe(e) {
              this._domElements.push(e),
                this.isEnabled &&
                  this._mutationObserver.observe(e, this._config);
            }
            enable() {
              super.enable();
              for (const e of this._domElements)
                this._mutationObserver.observe(e, this._config);
            }
            disable() {
              super.disable(), this._mutationObserver.disconnect();
            }
            destroy() {
              super.destroy(), this._mutationObserver.disconnect();
            }
            _onMutations(e) {
              if (0 === e.length) return;
              const t = this.domConverter,
                n = new Map(),
                r = new Set();
              for (const n of e)
                if ("childList" === n.type) {
                  const e = t.mapDomToView(n.target);
                  if (e && e.is("uiElement")) continue;
                  e && !this._isBogusBrMutation(n) && r.add(e);
                }
              for (const o of e) {
                const e = t.mapDomToView(o.target);
                if (!((e && e.is("uiElement")) || "characterData" !== o.type)) {
                  const e = t.findCorrespondingViewText(o.target);
                  e && !r.has(e.parent)
                    ? n.set(e, {
                        type: "text",
                        oldText: e.data,
                        newText: ir(o.target),
                        node: e,
                      })
                    : !e &&
                      or(o.target) &&
                      r.add(t.mapDomToView(o.target.parentNode));
                }
              }
              const o = [];
              for (const e of n.values())
                this.renderer.markToSync("text", e.node), o.push(e);
              for (const e of r) {
                const n = t.mapViewToDom(e),
                  r = Array.from(e.getChildren()),
                  a = Array.from(t.domChildrenToView(n, { withChildren: !1 }));
                Gr(r, a, s) ||
                  (this.renderer.markToSync("children", e),
                  o.push({
                    type: "children",
                    oldChildren: r,
                    newChildren: a,
                    node: e,
                  }));
              }
              const a = e[0].target.ownerDocument.getSelection();
              let i = null;
              if (a && a.anchorNode) {
                const e = t.domPositionToView(a.anchorNode, a.anchorOffset),
                  n = t.domPositionToView(a.focusNode, a.focusOffset);
                e && n && (i = new yn(e)).setFocus(n);
              }
              function s(e, t) {
                if (!Array.isArray(e))
                  return (
                    e === t ||
                    (!(!e.is("text") || !t.is("text")) && e.data === t.data)
                  );
              }
              this.document.fire("mutations", o, i), this.view.forceRender();
            }
            _isBogusBrMutation(e) {
              let t = null;
              return (
                null === e.nextSibling &&
                  0 === e.removedNodes.length &&
                  1 == e.addedNodes.length &&
                  (t = this.domConverter.domToView(e.addedNodes[0], {
                    withChildren: !1,
                  })),
                t && t.is("element", "br")
              );
            }
          }
          class Kr {
            constructor(e, t, n) {
              (this.view = e),
                (this.document = e.document),
                (this.domEvent = t),
                (this.domTarget = t.target),
                Zt(this, n);
            }
            get target() {
              return this.view.domConverter.mapDomToView(this.domTarget);
            }
            preventDefault() {
              this.domEvent.preventDefault();
            }
            stopPropagation() {
              this.domEvent.stopPropagation();
            }
          }
          class Qr extends Cr {
            constructor(e) {
              super(e), (this.useCapture = !1);
            }
            observe(e) {
              ("string" == typeof this.domEventType
                ? [this.domEventType]
                : this.domEventType
              ).forEach((t) => {
                this.listenTo(
                  e,
                  t,
                  (e, t) => {
                    this.isEnabled && this.onDomEvent(t);
                  },
                  { useCapture: this.useCapture }
                );
              });
            }
            fire(e, t, n) {
              this.isEnabled && this.document.fire(e, new Kr(this.view, t, n));
            }
          }
          class Xr extends Qr {
            constructor(e) {
              super(e), (this.domEventType = ["keydown", "keyup"]);
            }
            onDomEvent(e) {
              this.fire(e.type, e, {
                keyCode: e.keyCode,
                altKey: e.altKey,
                ctrlKey: e.ctrlKey || e.metaKey,
                shiftKey: e.shiftKey,
                get keystroke() {
                  return jn(this);
                },
              });
            }
          }
          var $r = function () {
              return r.a.Date.now();
            },
            Zr = function (e) {
              return (
                "symbol" == typeof e || (f(e) && "[object Symbol]" == d(e))
              );
            },
            eo = /^\s+|\s+$/g,
            to = /^[-+]0x[0-9a-f]+$/i,
            no = /^0b[01]+$/i,
            ro = /^0o[0-7]+$/i,
            oo = parseInt,
            ao = function (e) {
              if ("number" == typeof e) return e;
              if (Zr(e)) return NaN;
              if (T(e)) {
                var t = "function" == typeof e.valueOf ? e.valueOf() : e;
                e = T(t) ? t + "" : t;
              }
              if ("string" != typeof e) return 0 === e ? e : +e;
              e = e.replace(eo, "");
              var n = no.test(e);
              return n || ro.test(e)
                ? oo(e.slice(2), n ? 2 : 8)
                : to.test(e)
                ? NaN
                : +e;
            },
            io = Math.max,
            so = Math.min,
            lo = function (e, t, n) {
              var r,
                o,
                a,
                i,
                s,
                l,
                c = 0,
                u = !1,
                d = !1,
                h = !0;
              if ("function" != typeof e)
                throw new TypeError("Expected a function");
              function p(t) {
                var n = r,
                  a = o;
                return (r = o = void 0), (c = t), (i = e.apply(a, n));
              }
              function f(e) {
                var n = e - l;
                return void 0 === l || n >= t || n < 0 || (d && e - c >= a);
              }
              function m() {
                var e = $r();
                if (f(e)) return g(e);
                s = setTimeout(
                  m,
                  (function (e) {
                    var n = t - (e - l);
                    return d ? so(n, a - (e - c)) : n;
                  })(e)
                );
              }
              function g(e) {
                return (s = void 0), h && r ? p(e) : ((r = o = void 0), i);
              }
              function _() {
                var e = $r(),
                  n = f(e);
                if (((r = arguments), (o = this), (l = e), n)) {
                  if (void 0 === s)
                    return (function (e) {
                      return (c = e), (s = setTimeout(m, t)), u ? p(e) : i;
                    })(l);
                  if (d) return clearTimeout(s), (s = setTimeout(m, t)), p(l);
                }
                return void 0 === s && (s = setTimeout(m, t)), i;
              }
              return (
                (t = ao(t) || 0),
                T(n) &&
                  ((u = !!n.leading),
                  (a = (d = "maxWait" in n) ? io(ao(n.maxWait) || 0, t) : a),
                  (h = "trailing" in n ? !!n.trailing : h)),
                (_.cancel = function () {
                  void 0 !== s && clearTimeout(s),
                    (c = 0),
                    (r = l = o = s = void 0);
                }),
                (_.flush = function () {
                  return void 0 === s ? i : g($r());
                }),
                _
              );
            };
          class co extends Cr {
            constructor(e) {
              super(e),
                (this._fireSelectionChangeDoneDebounced = lo(
                  (e) => this.document.fire("selectionChangeDone", e),
                  200
                ));
            }
            observe() {
              const e = this.document;
              e.on(
                "keydown",
                (t, n) => {
                  e.selection.isFake &&
                    (function (e) {
                      return (
                        e == Yn.arrowright ||
                        e == Yn.arrowleft ||
                        e == Yn.arrowup ||
                        e == Yn.arrowdown
                      );
                    })(n.keyCode) &&
                    this.isEnabled &&
                    (n.preventDefault(), this._handleSelectionMove(n.keyCode));
                },
                { priority: "lowest" }
              );
            }
            destroy() {
              super.destroy(), this._fireSelectionChangeDoneDebounced.cancel();
            }
            _handleSelectionMove(e) {
              const t = this.document.selection,
                n = new yn(t.getRanges(), { backward: t.isBackward, fake: !1 });
              (e != Yn.arrowleft && e != Yn.arrowup) ||
                n.setTo(n.getFirstPosition()),
                (e != Yn.arrowright && e != Yn.arrowdown) ||
                  n.setTo(n.getLastPosition());
              const r = {
                oldSelection: t,
                newSelection: n,
                domSelection: null,
              };
              this.document.fire("selectionChange", r),
                this._fireSelectionChangeDoneDebounced(r);
            }
          }
          class uo extends Cr {
            constructor(e) {
              super(e),
                (this.mutationObserver = e.getObserver(Jr)),
                (this.selection = this.document.selection),
                (this.domConverter = e.domConverter),
                (this._documents = new WeakSet()),
                (this._fireSelectionChangeDoneDebounced = lo(
                  (e) => this.document.fire("selectionChangeDone", e),
                  200
                )),
                (this._clearInfiniteLoopInterval = setInterval(
                  () => this._clearInfiniteLoop(),
                  1e3
                )),
                (this._loopbackCounter = 0);
            }
            observe(e) {
              const t = e.ownerDocument;
              this._documents.has(t) ||
                (this.listenTo(t, "selectionchange", () => {
                  this._handleSelectionChange(t);
                }),
                this._documents.add(t));
            }
            destroy() {
              super.destroy(),
                clearInterval(this._clearInfiniteLoopInterval),
                this._fireSelectionChangeDoneDebounced.cancel();
            }
            _handleSelectionChange(e) {
              if (
                !this.isEnabled ||
                (!this.document.isFocused && !this.document.isReadOnly)
              )
                return;
              this.mutationObserver.flush();
              const t = e.defaultView.getSelection(),
                n = this.domConverter.domSelectionToView(t);
              if (
                !(
                  (this.selection.isEqual(n) &&
                    this.domConverter.isDomSelectionCorrect(t)) ||
                  ++this._loopbackCounter > 60
                )
              )
                if (this.selection.isSimilar(n)) this.view.forceRender();
                else {
                  const e = {
                    oldSelection: this.selection,
                    newSelection: n,
                    domSelection: t,
                  };
                  this.document.fire("selectionChange", e),
                    this._fireSelectionChangeDoneDebounced(e);
                }
            }
            _clearInfiniteLoop() {
              this._loopbackCounter = 0;
            }
          }
          class ho extends Qr {
            constructor(e) {
              super(e),
                (this.domEventType = ["focus", "blur"]),
                (this.useCapture = !0);
              const t = this.document;
              t.on("focus", () => {
                (t.isFocused = !0),
                  (this._renderTimeoutId = setTimeout(
                    () => e.forceRender(),
                    50
                  ));
              }),
                t.on("blur", (n, r) => {
                  const o = t.selection.editableElement;
                  (null !== o && o !== r.target) ||
                    ((t.isFocused = !1), e.forceRender());
                });
            }
            onDomEvent(e) {
              this.fire(e.type, e);
            }
            destroy() {
              this._renderTimeoutId && clearTimeout(this._renderTimeoutId),
                super.destroy();
            }
          }
          class po extends Qr {
            constructor(e) {
              super(e),
                (this.domEventType = [
                  "compositionstart",
                  "compositionupdate",
                  "compositionend",
                ]);
              const t = this.document;
              t.on("compositionstart", () => {
                t.isComposing = !0;
              }),
                t.on("compositionend", () => {
                  t.isComposing = !1;
                });
            }
            onDomEvent(e) {
              this.fire(e.type, e);
            }
          }
          class fo extends Qr {
            constructor(e) {
              super(e), (this.domEventType = ["beforeinput"]);
            }
            onDomEvent(e) {
              this.fire(e.type, e);
            }
          }
          function mo(e) {
            return "[object Range]" == Object.prototype.toString.apply(e);
          }
          function go(e) {
            const t = e.ownerDocument.defaultView.getComputedStyle(e);
            return {
              top: parseInt(t.borderTopWidth, 10),
              right: parseInt(t.borderRightWidth, 10),
              bottom: parseInt(t.borderBottomWidth, 10),
              left: parseInt(t.borderLeftWidth, 10),
            };
          }
          const _o = ["top", "right", "bottom", "left", "width", "height"];
          class vo {
            constructor(e) {
              const t = mo(e);
              if (
                (Object.defineProperty(this, "_source", {
                  value: e._source || e,
                  writable: !0,
                  enumerable: !1,
                }),
                ft(e) || t)
              )
                bo(
                  this,
                  t ? vo.getDomRangeRects(e)[0] : e.getBoundingClientRect()
                );
              else if (Tr(e)) {
                const { innerWidth: t, innerHeight: n } = e;
                bo(this, {
                  top: 0,
                  right: t,
                  bottom: n,
                  left: 0,
                  width: t,
                  height: n,
                });
              } else bo(this, e);
            }
            clone() {
              return new vo(this);
            }
            moveTo(e, t) {
              return (
                (this.top = t),
                (this.right = e + this.width),
                (this.bottom = t + this.height),
                (this.left = e),
                this
              );
            }
            moveBy(e, t) {
              return (
                (this.top += t),
                (this.right += e),
                (this.left += e),
                (this.bottom += t),
                this
              );
            }
            getIntersection(e) {
              const t = {
                top: Math.max(this.top, e.top),
                right: Math.min(this.right, e.right),
                bottom: Math.min(this.bottom, e.bottom),
                left: Math.max(this.left, e.left),
              };
              return (
                (t.width = t.right - t.left),
                (t.height = t.bottom - t.top),
                t.width < 0 || t.height < 0 ? null : new vo(t)
              );
            }
            getIntersectionArea(e) {
              const t = this.getIntersection(e);
              return t ? t.getArea() : 0;
            }
            getArea() {
              return this.width * this.height;
            }
            getVisible() {
              const e = this._source;
              let t = this.clone();
              if (!yo(e)) {
                let n = e.parentNode || e.commonAncestorContainer;
                for (; n && !yo(n); ) {
                  const e = new vo(n),
                    r = t.getIntersection(e);
                  if (!r) return null;
                  r.getArea() < t.getArea() && (t = r), (n = n.parentNode);
                }
              }
              return t;
            }
            isEqual(e) {
              for (const t of _o) if (this[t] !== e[t]) return !1;
              return !0;
            }
            contains(e) {
              const t = this.getIntersection(e);
              return !(!t || !t.isEqual(e));
            }
            excludeScrollbarsAndBorders() {
              const e = this._source;
              let t, n;
              if (Tr(e))
                (t = e.innerWidth - e.document.documentElement.clientWidth),
                  (n = e.innerHeight - e.document.documentElement.clientHeight);
              else {
                const r = go(this._source);
                (t = e.offsetWidth - e.clientWidth),
                  (n = e.offsetHeight - e.clientHeight),
                  this.moveBy(r.left, r.top);
              }
              return (
                (this.width -= t),
                (this.right -= t),
                (this.height -= n),
                (this.bottom -= n),
                this
              );
            }
            static getDomRangeRects(e) {
              const t = [],
                n = Array.from(e.getClientRects());
              if (n.length) for (const e of n) t.push(new vo(e));
              else {
                let n = e.startContainer;
                er(n) && (n = n.parentNode);
                const r = new vo(n.getBoundingClientRect());
                (r.right = r.left), (r.width = 0), t.push(r);
              }
              return t;
            }
          }
          function bo(e, t) {
            for (const n of _o) e[n] = t[n];
          }
          function yo(e) {
            return !!ft(e) && e === e.ownerDocument.body;
          }
          function wo({ target: e, viewportOffset: t = 0 }) {
            const n = Do(e);
            let r = n,
              o = null;
            for (; r; ) {
              let a;
              xo((a = Lo(r == n ? e : o)), () => Co(e, r));
              const i = Co(e, r);
              if ((ko(r, i, t), r.parent != r)) {
                if (((o = r.frameElement), (r = r.parent), !o)) return;
              } else r = null;
            }
          }
          function ko(e, t, n) {
            const r = t.clone().moveBy(0, n),
              o = t.clone().moveBy(0, -n),
              a = new vo(e).excludeScrollbarsAndBorders();
            if (![o, r].every((e) => a.contains(e))) {
              let { scrollX: i, scrollY: s } = e;
              Eo(o, a)
                ? (s -= a.top - t.top + n)
                : Mo(r, a) && (s += t.bottom - a.bottom + n),
                To(t, a)
                  ? (i -= a.left - t.left + n)
                  : So(t, a) && (i += t.right - a.right + n),
                e.scrollTo(i, s);
            }
          }
          function xo(e, t) {
            const n = Do(e);
            let r, o;
            for (; e != n.document.body; )
              (o = t()),
                (r = new vo(e).excludeScrollbarsAndBorders()).contains(o) ||
                  (Eo(o, r)
                    ? (e.scrollTop -= r.top - o.top)
                    : Mo(o, r) && (e.scrollTop += o.bottom - r.bottom),
                  To(o, r)
                    ? (e.scrollLeft -= r.left - o.left)
                    : So(o, r) && (e.scrollLeft += o.right - r.right)),
                (e = e.parentNode);
          }
          function Mo(e, t) {
            return e.bottom > t.bottom;
          }
          function Eo(e, t) {
            return e.top < t.top;
          }
          function To(e, t) {
            return e.left < t.left;
          }
          function So(e, t) {
            return e.right > t.right;
          }
          function Do(e) {
            return mo(e)
              ? e.startContainer.ownerDocument.defaultView
              : e.ownerDocument.defaultView;
          }
          function Lo(e) {
            if (mo(e)) {
              let t = e.commonAncestorContainer;
              return er(t) && (t = t.parentNode), t;
            }
            return e.parentNode;
          }
          function Co(e, t) {
            const n = Do(e),
              r = new vo(e);
            if (n === t) return r;
            {
              let e = n;
              for (; e != t; ) {
                const t = e.frameElement,
                  n = new vo(t).excludeScrollbarsAndBorders();
                r.moveBy(n.left, n.top), (e = e.parent);
              }
            }
            return r;
          }
          Object.assign(
            {},
            {
              scrollViewportToShowTarget: wo,
              scrollAncestorsToShowTarget: function (e) {
                xo(Lo(e), () => new vo(e));
              },
            }
          );
          class Po {
            constructor() {
              (this.document = new xn()),
                (this.domConverter = new xr()),
                (this.domRoots = new Map()),
                this.set("isRenderingInProgress", !1),
                (this._renderer = new _r(
                  this.domConverter,
                  this.document.selection
                )),
                this._renderer.bind("isFocused").to(this.document),
                (this._initialDomRootAttributes = new WeakMap()),
                (this._observers = new Map()),
                (this._ongoingChange = !1),
                (this._postFixersInProgress = !1),
                (this._renderingDisabled = !1),
                (this._hasChangedSinceTheLastRendering = !1),
                (this._writer = new Vn(this.document)),
                this.addObserver(Jr),
                this.addObserver(uo),
                this.addObserver(ho),
                this.addObserver(Xr),
                this.addObserver(co),
                this.addObserver(po),
                An && this.addObserver(fo),
                (function (e) {
                  e.document.on("keydown", cr);
                })(this),
                (function (e) {
                  e.document.on("keydown", (t, n) =>
                    (function (e, t, n) {
                      if (t.keyCode == Yn.arrowright) {
                        const e = t.domTarget.ownerDocument.defaultView.getSelection(),
                          r = 1 == e.rangeCount && e.getRangeAt(0).collapsed;
                        if (r || t.shiftKey) {
                          const t = e.focusNode,
                            o = e.focusOffset,
                            a = n.domPositionToView(t, o);
                          if (null === a) return;
                          let i = !1;
                          const s = a.getLastMatchingPosition(
                            (e) => (
                              e.item.is("uiElement") && (i = !0),
                              !(
                                !e.item.is("uiElement") &&
                                !e.item.is("attributeElement")
                              )
                            )
                          );
                          if (i) {
                            const t = n.viewPositionToDom(s);
                            r
                              ? e.collapse(t.parent, t.offset)
                              : e.extend(t.parent, t.offset);
                          }
                        }
                      }
                    })(0, n, e.domConverter)
                  );
                })(this),
                this.on("render", () => {
                  this._render(),
                    this.document.fire("layoutChanged"),
                    (this._hasChangedSinceTheLastRendering = !1);
                }),
                this.listenTo(this.document.selection, "change", () => {
                  this._hasChangedSinceTheLastRendering = !0;
                });
            }
            attachDomRoot(e, t = "main") {
              const n = this.document.getRoot(t);
              n._name = e.tagName.toLowerCase();
              const r = {};
              for (const { name: t, value: o } of Array.from(e.attributes))
                (r[t] = o),
                  "class" === t
                    ? this._writer.addClass(o.split(" "), n)
                    : this._writer.setAttribute(t, o, n);
              this._initialDomRootAttributes.set(e, r);
              const o = () => {
                this._writer.setAttribute("contenteditable", !n.isReadOnly, n),
                  n.isReadOnly
                    ? this._writer.addClass("ck-read-only", n)
                    : this._writer.removeClass("ck-read-only", n);
              };
              o(),
                this.domRoots.set(t, e),
                this.domConverter.bindElements(e, n),
                this._renderer.markToSync("children", n),
                this._renderer.markToSync("attributes", n),
                this._renderer.domDocuments.add(e.ownerDocument),
                n.on("change:children", (e, t) =>
                  this._renderer.markToSync("children", t)
                ),
                n.on("change:attributes", (e, t) =>
                  this._renderer.markToSync("attributes", t)
                ),
                n.on("change:text", (e, t) =>
                  this._renderer.markToSync("text", t)
                ),
                n.on("change:isReadOnly", () => this.change(o)),
                n.on("change", () => {
                  this._hasChangedSinceTheLastRendering = !0;
                });
              for (const n of this._observers.values()) n.observe(e, t);
            }
            detachDomRoot(e) {
              const t = this.domRoots.get(e);
              Array.from(t.attributes).forEach(({ name: e }) =>
                t.removeAttribute(e)
              );
              const n = this._initialDomRootAttributes.get(t);
              for (const e in n) t.setAttribute(e, n[e]);
              this.domRoots.delete(e), this.domConverter.unbindDomElement(t);
            }
            getDomRoot(e = "main") {
              return this.domRoots.get(e);
            }
            addObserver(e) {
              let t = this._observers.get(e);
              if (t) return t;
              (t = new e(this)), this._observers.set(e, t);
              for (const [e, n] of this.domRoots) t.observe(n, e);
              return t.enable(), t;
            }
            getObserver(e) {
              return this._observers.get(e);
            }
            disableObservers() {
              for (const e of this._observers.values()) e.disable();
            }
            enableObservers() {
              for (const e of this._observers.values()) e.enable();
            }
            scrollToTheSelection() {
              const e = this.document.selection.getFirstRange();
              e &&
                wo({
                  target: this.domConverter.viewRangeToDom(e),
                  viewportOffset: 20,
                });
            }
            focus() {
              if (!this.document.isFocused) {
                const e = this.document.selection.editableElement;
                e && (this.domConverter.focus(e), this.forceRender());
              }
            }
            change(e) {
              if (this.isRenderingInProgress || this._postFixersInProgress)
                throw new _t.b(
                  "cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",
                  this
                );
              if (this._ongoingChange) return e(this._writer);
              this._ongoingChange = !0;
              const t = e(this._writer);
              return (
                (this._ongoingChange = !1),
                !this._renderingDisabled &&
                  this._hasChangedSinceTheLastRendering &&
                  ((this._postFixersInProgress = !0),
                  this.document._callPostFixers(this._writer),
                  (this._postFixersInProgress = !1),
                  this.fire("render")),
                t
              );
            }
            forceRender() {
              (this._hasChangedSinceTheLastRendering = !0),
                this.change(() => {});
            }
            destroy() {
              for (const e of this._observers.values()) e.destroy();
              this.document.destroy(), this.stopListening();
            }
            createPositionAt(e, t) {
              return gn._createAt(e, t);
            }
            createPositionAfter(e) {
              return gn._createAfter(e);
            }
            createPositionBefore(e) {
              return gn._createBefore(e);
            }
            createRange(e, t) {
              return new _n(e, t);
            }
            createRangeOn(e) {
              return _n._createOn(e);
            }
            createRangeIn(e) {
              return _n._createIn(e);
            }
            createSelection(e, t, n) {
              return new yn(e, t, n);
            }
            _disableRendering(e) {
              (this._renderingDisabled = e), 0 == e && this.change(() => {});
            }
            _render() {
              (this.isRenderingInProgress = !0),
                this.disableObservers(),
                this._renderer.render(),
                this.enableObservers(),
                (this.isRenderingInProgress = !1);
            }
          }
          function Oo(e) {
            return y(e) ? Rt(e) : new Map(e);
          }
          Ct(Po, on);
          class No {
            constructor(e) {
              (this.parent = null), (this._attrs = Oo(e));
            }
            get index() {
              let e;
              if (!this.parent) return null;
              if (null === (e = this.parent.getChildIndex(this)))
                throw new _t.b(
                  "model-node-not-found-in-parent: The node's parent does not contain this node.",
                  this
                );
              return e;
            }
            get startOffset() {
              let e;
              if (!this.parent) return null;
              if (null === (e = this.parent.getChildStartOffset(this)))
                throw new _t.b(
                  "model-node-not-found-in-parent: The node's parent does not contain this node.",
                  this
                );
              return e;
            }
            get offsetSize() {
              return 1;
            }
            get endOffset() {
              return this.parent ? this.startOffset + this.offsetSize : null;
            }
            get nextSibling() {
              const e = this.index;
              return (null !== e && this.parent.getChild(e + 1)) || null;
            }
            get previousSibling() {
              const e = this.index;
              return (null !== e && this.parent.getChild(e - 1)) || null;
            }
            get root() {
              let e = this;
              for (; e.parent; ) e = e.parent;
              return e;
            }
            get document() {
              return this.root == this ? null : this.root.document || null;
            }
            getPath() {
              const e = [];
              let t = this;
              for (; t.parent; ) e.unshift(t.startOffset), (t = t.parent);
              return e;
            }
            getAncestors(e = { includeSelf: !1, parentFirst: !1 }) {
              const t = [];
              let n = e.includeSelf ? this : this.parent;
              for (; n; )
                t[e.parentFirst ? "push" : "unshift"](n), (n = n.parent);
              return t;
            }
            getCommonAncestor(e, t = {}) {
              const n = this.getAncestors(t),
                r = e.getAncestors(t);
              let o = 0;
              for (; n[o] == r[o] && n[o]; ) o++;
              return 0 === o ? null : n[o - 1];
            }
            isBefore(e) {
              if (this == e) return !1;
              if (this.root !== e.root) return !1;
              const t = this.getPath(),
                n = e.getPath(),
                r = Pt(t, n);
              switch (r) {
                case "prefix":
                  return !0;
                case "extension":
                  return !1;
                default:
                  return t[r] < n[r];
              }
            }
            isAfter(e) {
              return this != e && this.root === e.root && !this.isBefore(e);
            }
            hasAttribute(e) {
              return this._attrs.has(e);
            }
            getAttribute(e) {
              return this._attrs.get(e);
            }
            getAttributes() {
              return this._attrs.entries();
            }
            getAttributeKeys() {
              return this._attrs.keys();
            }
            toJSON() {
              const e = {};
              return (
                this._attrs.size &&
                  (e.attributes = Array.from(this._attrs).reduce(
                    (e, t) => ((e[t[0]] = t[1]), e),
                    {}
                  )),
                e
              );
            }
            is(e) {
              return "node" == e || "model:node" == e;
            }
            _clone() {
              return new No(this._attrs);
            }
            _remove() {
              this.parent._removeChildren(this.index);
            }
            _setAttribute(e, t) {
              this._attrs.set(e, t);
            }
            _setAttributesTo(e) {
              this._attrs = Oo(e);
            }
            _removeAttribute(e) {
              return this._attrs.delete(e);
            }
            _clearAttributes() {
              this._attrs.clear();
            }
          }
          class Ao extends No {
            constructor(e, t) {
              super(t), (this._data = e || "");
            }
            get offsetSize() {
              return this.data.length;
            }
            get data() {
              return this._data;
            }
            is(e) {
              return "text" == e || "model:text" == e || super.is(e);
            }
            toJSON() {
              const e = super.toJSON();
              return (e.data = this.data), e;
            }
            _clone() {
              return new Ao(this.data, this.getAttributes());
            }
            static fromJSON(e) {
              return new Ao(e.data, e.attributes);
            }
          }
          class Io {
            constructor(e, t, n) {
              if (((this.textNode = e), t < 0 || t > e.offsetSize))
                throw new _t.b(
                  "model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",
                  this
                );
              if (n < 0 || t + n > e.offsetSize)
                throw new _t.b(
                  "model-textproxy-wrong-length: Given length value is incorrect.",
                  this
                );
              (this.data = e.data.substring(t, t + n)), (this.offsetInText = t);
            }
            get startOffset() {
              return null !== this.textNode.startOffset
                ? this.textNode.startOffset + this.offsetInText
                : null;
            }
            get offsetSize() {
              return this.data.length;
            }
            get endOffset() {
              return null !== this.startOffset
                ? this.startOffset + this.offsetSize
                : null;
            }
            get isPartial() {
              return this.offsetSize !== this.textNode.offsetSize;
            }
            get parent() {
              return this.textNode.parent;
            }
            get root() {
              return this.textNode.root;
            }
            get document() {
              return this.textNode.document;
            }
            is(e) {
              return "textProxy" == e || "model:textProxy" == e;
            }
            getPath() {
              const e = this.textNode.getPath();
              return e.length > 0 && (e[e.length - 1] += this.offsetInText), e;
            }
            getAncestors(e = { includeSelf: !1, parentFirst: !1 }) {
              const t = [];
              let n = e.includeSelf ? this : this.parent;
              for (; n; )
                t[e.parentFirst ? "push" : "unshift"](n), (n = n.parent);
              return t;
            }
            hasAttribute(e) {
              return this.textNode.hasAttribute(e);
            }
            getAttribute(e) {
              return this.textNode.getAttribute(e);
            }
            getAttributes() {
              return this.textNode.getAttributes();
            }
            getAttributeKeys() {
              return this.textNode.getAttributeKeys();
            }
          }
          class Ro {
            constructor(e) {
              (this._nodes = []), e && this._insertNodes(0, e);
            }
            [Symbol.iterator]() {
              return this._nodes[Symbol.iterator]();
            }
            get length() {
              return this._nodes.length;
            }
            get maxOffset() {
              return this._nodes.reduce((e, t) => e + t.offsetSize, 0);
            }
            getNode(e) {
              return this._nodes[e] || null;
            }
            getNodeIndex(e) {
              const t = this._nodes.indexOf(e);
              return -1 == t ? null : t;
            }
            getNodeStartOffset(e) {
              const t = this.getNodeIndex(e);
              return null === t
                ? null
                : this._nodes.slice(0, t).reduce((e, t) => e + t.offsetSize, 0);
            }
            indexToOffset(e) {
              if (e == this._nodes.length) return this.maxOffset;
              const t = this._nodes[e];
              if (!t)
                throw new _t.b(
                  "model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",
                  this
                );
              return this.getNodeStartOffset(t);
            }
            offsetToIndex(e) {
              let t = 0;
              for (const n of this._nodes) {
                if (e >= t && e < t + n.offsetSize) return this.getNodeIndex(n);
                t += n.offsetSize;
              }
              if (t != e)
                throw new _t.b(
                  "model-nodelist-offset-out-of-bounds: Given offset cannot be found in the node list.",
                  this,
                  { offset: e, nodeList: this }
                );
              return this.length;
            }
            _insertNodes(e, t) {
              for (const e of t)
                if (!(e instanceof No))
                  throw new _t.b(
                    "model-nodelist-insertNodes-not-node: Trying to insert an object which is not a Node instance.",
                    this
                  );
              this._nodes.splice(e, 0, ...t);
            }
            _removeNodes(e, t = 1) {
              return this._nodes.splice(e, t);
            }
            toJSON() {
              return this._nodes.map((e) => e.toJSON());
            }
          }
          class Yo extends No {
            constructor(e, t, n) {
              super(t),
                (this.name = e),
                (this._children = new Ro()),
                n && this._insertChild(0, n);
            }
            get childCount() {
              return this._children.length;
            }
            get maxOffset() {
              return this._children.maxOffset;
            }
            get isEmpty() {
              return 0 === this.childCount;
            }
            is(e, t = null) {
              const n = e.replace(/^model:/, "");
              return t
                ? "element" == n && t == this.name
                : "element" == n || n == this.name || super.is(e);
            }
            getChild(e) {
              return this._children.getNode(e);
            }
            getChildren() {
              return this._children[Symbol.iterator]();
            }
            getChildIndex(e) {
              return this._children.getNodeIndex(e);
            }
            getChildStartOffset(e) {
              return this._children.getNodeStartOffset(e);
            }
            offsetToIndex(e) {
              return this._children.offsetToIndex(e);
            }
            getNodeByPath(e) {
              let t = this;
              for (const n of e) t = t.getChild(t.offsetToIndex(n));
              return t;
            }
            toJSON() {
              const e = super.toJSON();
              if (((e.name = this.name), this._children.length > 0)) {
                e.children = [];
                for (const t of this._children) e.children.push(t.toJSON());
              }
              return e;
            }
            _clone(e = !1) {
              const t = e
                ? Array.from(this._children).map((e) => e._clone(!0))
                : null;
              return new Yo(this.name, this.getAttributes(), t);
            }
            _appendChild(e) {
              this._insertChild(this.childCount, e);
            }
            _insertChild(e, t) {
              const n = (function (e) {
                return "string" == typeof e
                  ? [new Ao(e)]
                  : (Yt(e) || (e = [e]),
                    Array.from(e).map((e) =>
                      "string" == typeof e
                        ? new Ao(e)
                        : e instanceof Io
                        ? new Ao(e.data, e.getAttributes())
                        : e
                    ));
              })(t);
              for (const e of n)
                null !== e.parent && e._remove(), (e.parent = this);
              this._children._insertNodes(e, n);
            }
            _removeChildren(e, t = 1) {
              const n = this._children._removeNodes(e, t);
              for (const e of n) e.parent = null;
              return n;
            }
            static fromJSON(e) {
              let t = null;
              if (e.children) {
                t = [];
                for (const n of e.children)
                  n.name ? t.push(Yo.fromJSON(n)) : t.push(Ao.fromJSON(n));
              }
              return new Yo(e.name, e.attributes, t);
            }
          }
          class jo {
            constructor(e = {}) {
              if (!e.boundaries && !e.startPosition)
                throw new _t.b(
                  "model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",
                  null
                );
              const t = e.direction || "forward";
              if ("forward" != t && "backward" != t)
                throw new _t.b(
                  "model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",
                  e,
                  { direction: t }
                );
              (this.direction = t),
                (this.boundaries = e.boundaries || null),
                e.startPosition
                  ? (this.position = e.startPosition.clone())
                  : (this.position = Ho._createAt(
                      this.boundaries[
                        "backward" == this.direction ? "end" : "start"
                      ]
                    )),
                (this.position.stickiness = "toNone"),
                (this.singleCharacters = !!e.singleCharacters),
                (this.shallow = !!e.shallow),
                (this.ignoreElementEnd = !!e.ignoreElementEnd),
                (this._boundaryStartParent = this.boundaries
                  ? this.boundaries.start.parent
                  : null),
                (this._boundaryEndParent = this.boundaries
                  ? this.boundaries.end.parent
                  : null),
                (this._visitedParent = this.position.parent);
            }
            [Symbol.iterator]() {
              return this;
            }
            skip(e) {
              let t, n, r, o;
              do {
                (r = this.position),
                  (o = this._visitedParent),
                  ({ done: t, value: n } = this.next());
              } while (!t && e(n));
              t || ((this.position = r), (this._visitedParent = o));
            }
            next() {
              return "forward" == this.direction
                ? this._next()
                : this._previous();
            }
            _next() {
              const e = this.position,
                t = this.position.clone(),
                n = this._visitedParent;
              if (null === n.parent && t.offset === n.maxOffset)
                return { done: !0 };
              if (
                n === this._boundaryEndParent &&
                t.offset == this.boundaries.end.offset
              )
                return { done: !0 };
              const r = t.textNode ? t.textNode : t.nodeAfter;
              if (r instanceof Yo)
                return (
                  this.shallow
                    ? t.offset++
                    : (t.path.push(0), (this._visitedParent = r)),
                  (this.position = t),
                  Fo("elementStart", r, e, t, 1)
                );
              if (r instanceof Ao) {
                let o;
                if (this.singleCharacters) o = 1;
                else {
                  let e = r.endOffset;
                  this._boundaryEndParent == n &&
                    this.boundaries.end.offset < e &&
                    (e = this.boundaries.end.offset),
                    (o = e - t.offset);
                }
                const a = t.offset - r.startOffset,
                  i = new Io(r, a, o);
                return (
                  (t.offset += o), (this.position = t), Fo("text", i, e, t, o)
                );
              }
              return (
                t.path.pop(),
                t.offset++,
                (this.position = t),
                (this._visitedParent = n.parent),
                this.ignoreElementEnd ? this._next() : Fo("elementEnd", n, e, t)
              );
            }
            _previous() {
              const e = this.position,
                t = this.position.clone(),
                n = this._visitedParent;
              if (null === n.parent && 0 === t.offset) return { done: !0 };
              if (
                n == this._boundaryStartParent &&
                t.offset == this.boundaries.start.offset
              )
                return { done: !0 };
              const r = t.textNode ? t.textNode : t.nodeBefore;
              if (r instanceof Yo)
                return (
                  t.offset--,
                  this.shallow
                    ? ((this.position = t), Fo("elementStart", r, e, t, 1))
                    : (t.path.push(r.maxOffset),
                      (this.position = t),
                      (this._visitedParent = r),
                      this.ignoreElementEnd
                        ? this._previous()
                        : Fo("elementEnd", r, e, t))
                );
              if (r instanceof Ao) {
                let o;
                if (this.singleCharacters) o = 1;
                else {
                  let e = r.startOffset;
                  this._boundaryStartParent == n &&
                    this.boundaries.start.offset > e &&
                    (e = this.boundaries.start.offset),
                    (o = t.offset - e);
                }
                const a = t.offset - r.startOffset,
                  i = new Io(r, a - o, o);
                return (
                  (t.offset -= o), (this.position = t), Fo("text", i, e, t, o)
                );
              }
              return (
                t.path.pop(),
                (this.position = t),
                (this._visitedParent = n.parent),
                Fo("elementStart", n, e, t, 1)
              );
            }
          }
          function Fo(e, t, n, r, o) {
            return {
              done: !1,
              value: {
                type: e,
                item: t,
                previousPosition: n,
                nextPosition: r,
                length: o,
              },
            };
          }
          class Ho {
            constructor(e, t, n = "toNone") {
              if (!e.is("element") && !e.is("documentFragment"))
                throw new _t.b(
                  "model-position-root-invalid: Position root invalid.",
                  e
                );
              if (!(t instanceof Array) || 0 === t.length)
                throw new _t.b(
                  "model-position-path-incorrect-format: Position path must be an array with at least one item.",
                  e,
                  { path: t }
                );
              (t = e.getPath().concat(t)),
                (e = e.root),
                (this.root = e),
                (this.path = t),
                (this.stickiness = n);
            }
            get offset() {
              return (function (e) {
                var t = null == e ? 0 : e.length;
                return t ? e[t - 1] : void 0;
              })(this.path);
            }
            set offset(e) {
              this.path[this.path.length - 1] = e;
            }
            get parent() {
              let e = this.root;
              for (let t = 0; t < this.path.length - 1; t++)
                if (!(e = e.getChild(e.offsetToIndex(this.path[t]))))
                  throw new _t.b(
                    "model-position-path-incorrect: The position's path is incorrect.",
                    this,
                    { position: this }
                  );
              if (e.is("text"))
                throw new _t.b(
                  "model-position-path-incorrect: The position's path is incorrect.",
                  this,
                  { position: this }
                );
              return e;
            }
            get index() {
              return this.parent.offsetToIndex(this.offset);
            }
            get textNode() {
              const e = this.parent.getChild(this.index);
              return e instanceof Ao && e.startOffset < this.offset ? e : null;
            }
            get nodeAfter() {
              return null === this.textNode
                ? this.parent.getChild(this.index)
                : null;
            }
            get nodeBefore() {
              return null === this.textNode
                ? this.parent.getChild(this.index - 1)
                : null;
            }
            get isAtStart() {
              return 0 === this.offset;
            }
            get isAtEnd() {
              return this.offset == this.parent.maxOffset;
            }
            compareWith(e) {
              if (this.root != e.root) return "different";
              const t = Pt(this.path, e.path);
              switch (t) {
                case "same":
                  return "same";
                case "prefix":
                  return "before";
                case "extension":
                  return "after";
                default:
                  return this.path[t] < e.path[t] ? "before" : "after";
              }
            }
            getLastMatchingPosition(e, t = {}) {
              t.startPosition = this;
              const n = new jo(t);
              return n.skip(e), n.position;
            }
            getParentPath() {
              return this.path.slice(0, -1);
            }
            getAncestors() {
              return this.parent.is("documentFragment")
                ? [this.parent]
                : this.parent.getAncestors({ includeSelf: !0 });
            }
            getCommonPath(e) {
              if (this.root != e.root) return [];
              const t = Pt(this.path, e.path),
                n =
                  "string" == typeof t
                    ? Math.min(this.path.length, e.path.length)
                    : t;
              return this.path.slice(0, n);
            }
            getCommonAncestor(e) {
              const t = this.getAncestors(),
                n = e.getAncestors();
              let r = 0;
              for (; t[r] == n[r] && t[r]; ) r++;
              return 0 === r ? null : t[r - 1];
            }
            getShiftedBy(e) {
              const t = this.clone(),
                n = t.offset + e;
              return (t.offset = n < 0 ? 0 : n), t;
            }
            isAfter(e) {
              return "after" == this.compareWith(e);
            }
            isBefore(e) {
              return "before" == this.compareWith(e);
            }
            isEqual(e) {
              return "same" == this.compareWith(e);
            }
            isTouching(e) {
              let t = null,
                n = null;
              switch (this.compareWith(e)) {
                case "same":
                  return !0;
                case "before":
                  (t = Ho._createAt(this)), (n = Ho._createAt(e));
                  break;
                case "after":
                  (t = Ho._createAt(e)), (n = Ho._createAt(this));
                  break;
                default:
                  return !1;
              }
              let r = t.parent;
              for (; t.path.length + n.path.length; ) {
                if (t.isEqual(n)) return !0;
                if (t.path.length > n.path.length) {
                  if (t.offset !== r.maxOffset) return !1;
                  (t.path = t.path.slice(0, -1)), (r = r.parent), t.offset++;
                } else {
                  if (0 !== n.offset) return !1;
                  n.path = n.path.slice(0, -1);
                }
              }
            }
            is(e) {
              return "position" == e || "model:position" == e;
            }
            hasSameParentAs(e) {
              return (
                this.root === e.root &&
                "same" == Pt(this.getParentPath(), e.getParentPath())
              );
            }
            getTransformedByOperation(e) {
              let t;
              switch (e.type) {
                case "insert":
                  t = this._getTransformedByInsertOperation(e);
                  break;
                case "move":
                case "remove":
                case "reinsert":
                  t = this._getTransformedByMoveOperation(e);
                  break;
                case "split":
                  t = this._getTransformedBySplitOperation(e);
                  break;
                case "merge":
                  t = this._getTransformedByMergeOperation(e);
                  break;
                default:
                  t = Ho._createAt(this);
              }
              return t;
            }
            _getTransformedByInsertOperation(e) {
              return this._getTransformedByInsertion(e.position, e.howMany);
            }
            _getTransformedByMoveOperation(e) {
              return this._getTransformedByMove(
                e.sourcePosition,
                e.targetPosition,
                e.howMany
              );
            }
            _getTransformedBySplitOperation(e) {
              const t = e.movedRange;
              return t.containsPosition(this) ||
                (t.start.isEqual(this) && "toNext" == this.stickiness)
                ? this._getCombined(e.splitPosition, e.moveTargetPosition)
                : e.graveyardPosition
                ? this._getTransformedByMove(
                    e.graveyardPosition,
                    e.insertionPosition,
                    1
                  )
                : this._getTransformedByInsertion(e.insertionPosition, 1);
            }
            _getTransformedByMergeOperation(e) {
              const t = e.movedRange;
              let n;
              return (
                t.containsPosition(this) || t.start.isEqual(this)
                  ? ((n = this._getCombined(
                      e.sourcePosition,
                      e.targetPosition
                    )),
                    e.sourcePosition.isBefore(e.targetPosition) &&
                      (n = n._getTransformedByDeletion(e.deletionPosition, 1)))
                  : (n = this.isEqual(e.deletionPosition)
                      ? Ho._createAt(e.deletionPosition)
                      : this._getTransformedByMove(
                          e.deletionPosition,
                          e.graveyardPosition,
                          1
                        )),
                n
              );
            }
            _getTransformedByDeletion(e, t) {
              const n = Ho._createAt(this);
              if (this.root != e.root) return n;
              if ("same" == Pt(e.getParentPath(), this.getParentPath())) {
                if (e.offset < this.offset) {
                  if (e.offset + t > this.offset) return null;
                  n.offset -= t;
                }
              } else if (
                "prefix" == Pt(e.getParentPath(), this.getParentPath())
              ) {
                const r = e.path.length - 1;
                if (e.offset <= this.path[r]) {
                  if (e.offset + t > this.path[r]) return null;
                  n.path[r] -= t;
                }
              }
              return n;
            }
            _getTransformedByInsertion(e, t) {
              const n = Ho._createAt(this);
              if (this.root != e.root) return n;
              if ("same" == Pt(e.getParentPath(), this.getParentPath()))
                (e.offset < this.offset ||
                  (e.offset == this.offset &&
                    "toPrevious" != this.stickiness)) &&
                  (n.offset += t);
              else if (
                "prefix" == Pt(e.getParentPath(), this.getParentPath())
              ) {
                const r = e.path.length - 1;
                e.offset <= this.path[r] && (n.path[r] += t);
              }
              return n;
            }
            _getTransformedByMove(e, t, n) {
              if (((t = t._getTransformedByDeletion(e, n)), e.isEqual(t)))
                return Ho._createAt(this);
              const r = this._getTransformedByDeletion(e, n);
              return null === r ||
                (e.isEqual(this) && "toNext" == this.stickiness) ||
                (e.getShiftedBy(n).isEqual(this) &&
                  "toPrevious" == this.stickiness)
                ? this._getCombined(e, t)
                : r._getTransformedByInsertion(t, n);
            }
            _getCombined(e, t) {
              const n = e.path.length - 1,
                r = Ho._createAt(t);
              return (
                (r.stickiness = this.stickiness),
                (r.offset = r.offset + this.path[n] - e.offset),
                (r.path = r.path.concat(this.path.slice(n + 1))),
                r
              );
            }
            toJSON() {
              return {
                root: this.root.toJSON(),
                path: Array.from(this.path),
                stickiness: this.stickiness,
              };
            }
            clone() {
              return new this.constructor(
                this.root,
                this.path,
                this.stickiness
              );
            }
            static _createAt(e, t, n = "toNone") {
              if (e instanceof Ho) return new Ho(e.root, e.path, e.stickiness);
              {
                const r = e;
                if ("end" == t) t = r.maxOffset;
                else {
                  if ("before" == t) return this._createBefore(r, n);
                  if ("after" == t) return this._createAfter(r, n);
                  if (0 !== t && !t)
                    throw new _t.b(
                      "model-createPositionAt-offset-required: Model#createPositionAt() requires the offset when the first parameter is a model item.",
                      [this, e]
                    );
                }
                if (!r.is("element") && !r.is("documentFragment"))
                  throw new _t.b(
                    "model-position-parent-incorrect: Position parent have to be a element or document fragment.",
                    [this, e]
                  );
                const o = r.getPath();
                return o.push(t), new this(r.root, o, n);
              }
            }
            static _createAfter(e, t) {
              if (!e.parent)
                throw new _t.b(
                  "model-position-after-root: You cannot make a position after root.",
                  [this, e],
                  { root: e }
                );
              return this._createAt(e.parent, e.endOffset, t);
            }
            static _createBefore(e, t) {
              if (!e.parent)
                throw new _t.b(
                  "model-position-before-root: You cannot make a position before root.",
                  e,
                  { root: e }
                );
              return this._createAt(e.parent, e.startOffset, t);
            }
            static fromJSON(e, t) {
              if ("$graveyard" === e.root) {
                const n = new Ho(t.graveyard, e.path);
                return (n.stickiness = e.stickiness), n;
              }
              if (!t.getRoot(e.root))
                throw new _t.b(
                  "model-position-fromjson-no-root: Cannot create position for document. Root with specified name does not exist.",
                  t,
                  { rootName: e.root }
                );
              return new Ho(t.getRoot(e.root), e.path, e.stickiness);
            }
          }
          class zo {
            constructor(e, t = null) {
              (this.start = Ho._createAt(e)),
                (this.end = t ? Ho._createAt(t) : Ho._createAt(e)),
                (this.start.stickiness = this.isCollapsed
                  ? "toNone"
                  : "toNext"),
                (this.end.stickiness = this.isCollapsed
                  ? "toNone"
                  : "toPrevious");
            }
            *[Symbol.iterator]() {
              yield* new jo({ boundaries: this, ignoreElementEnd: !0 });
            }
            get isCollapsed() {
              return this.start.isEqual(this.end);
            }
            get isFlat() {
              return (
                "same" ==
                Pt(this.start.getParentPath(), this.end.getParentPath())
              );
            }
            get root() {
              return this.start.root;
            }
            containsPosition(e) {
              return e.isAfter(this.start) && e.isBefore(this.end);
            }
            containsRange(e, t = !1) {
              e.isCollapsed && (t = !1);
              const n =
                  this.containsPosition(e.start) ||
                  (t && this.start.isEqual(e.start)),
                r =
                  this.containsPosition(e.end) ||
                  (t && this.end.isEqual(e.end));
              return n && r;
            }
            containsItem(e) {
              const t = Ho._createBefore(e);
              return this.containsPosition(t) || this.start.isEqual(t);
            }
            is(e) {
              return "range" == e || "model:range" == e;
            }
            isEqual(e) {
              return this.start.isEqual(e.start) && this.end.isEqual(e.end);
            }
            isIntersecting(e) {
              return this.start.isBefore(e.end) && this.end.isAfter(e.start);
            }
            getDifference(e) {
              const t = [];
              return (
                this.isIntersecting(e)
                  ? (this.containsPosition(e.start) &&
                      t.push(new zo(this.start, e.start)),
                    this.containsPosition(e.end) &&
                      t.push(new zo(e.end, this.end)))
                  : t.push(new zo(this.start, this.end)),
                t
              );
            }
            getIntersection(e) {
              if (this.isIntersecting(e)) {
                let t = this.start,
                  n = this.end;
                return (
                  this.containsPosition(e.start) && (t = e.start),
                  this.containsPosition(e.end) && (n = e.end),
                  new zo(t, n)
                );
              }
              return null;
            }
            getMinimalFlatRanges() {
              const e = [],
                t = this.start.getCommonPath(this.end).length,
                n = Ho._createAt(this.start);
              let r = n.parent;
              for (; n.path.length > t + 1; ) {
                const t = r.maxOffset - n.offset;
                0 !== t && e.push(new zo(n, n.getShiftedBy(t))),
                  (n.path = n.path.slice(0, -1)),
                  n.offset++,
                  (r = r.parent);
              }
              for (; n.path.length <= this.end.path.length; ) {
                const t = this.end.path[n.path.length - 1],
                  r = t - n.offset;
                0 !== r && e.push(new zo(n, n.getShiftedBy(r))),
                  (n.offset = t),
                  n.path.push(0);
              }
              return e;
            }
            getWalker(e = {}) {
              return (e.boundaries = this), new jo(e);
            }
            *getItems(e = {}) {
              (e.boundaries = this), (e.ignoreElementEnd = !0);
              const t = new jo(e);
              for (const e of t) yield e.item;
            }
            *getPositions(e = {}) {
              e.boundaries = this;
              const t = new jo(e);
              yield t.position;
              for (const e of t) yield e.nextPosition;
            }
            getTransformedByOperation(e) {
              switch (e.type) {
                case "insert":
                  return this._getTransformedByInsertOperation(e);
                case "move":
                case "remove":
                case "reinsert":
                  return this._getTransformedByMoveOperation(e);
                case "split":
                  return [this._getTransformedBySplitOperation(e)];
                case "merge":
                  return [this._getTransformedByMergeOperation(e)];
              }
              return [new zo(this.start, this.end)];
            }
            getTransformedByOperations(e) {
              const t = [new zo(this.start, this.end)];
              for (const n of e)
                for (let e = 0; e < t.length; e++) {
                  const r = t[e].getTransformedByOperation(n);
                  t.splice(e, 1, ...r), (e += r.length - 1);
                }
              for (let e = 0; e < t.length; e++) {
                const n = t[e];
                for (let r = e + 1; r < t.length; r++) {
                  const e = t[r];
                  (n.containsRange(e) || e.containsRange(n) || n.isEqual(e)) &&
                    t.splice(r, 1);
                }
              }
              return t;
            }
            getCommonAncestor() {
              return this.start.getCommonAncestor(this.end);
            }
            toJSON() {
              return { start: this.start.toJSON(), end: this.end.toJSON() };
            }
            clone() {
              return new this.constructor(this.start, this.end);
            }
            _getTransformedByInsertOperation(e, t = !1) {
              return this._getTransformedByInsertion(e.position, e.howMany, t);
            }
            _getTransformedByMoveOperation(e, t = !1) {
              const n = e.sourcePosition,
                r = e.howMany,
                o = e.targetPosition;
              return this._getTransformedByMove(n, o, r, t);
            }
            _getTransformedBySplitOperation(e) {
              const t = this.start._getTransformedBySplitOperation(e);
              let n = this.end._getTransformedBySplitOperation(e);
              return (
                this.end.isEqual(e.insertionPosition) &&
                  (n = this.end.getShiftedBy(1)),
                t.root != n.root && (n = this.end.getShiftedBy(-1)),
                new zo(t, n)
              );
            }
            _getTransformedByMergeOperation(e) {
              if (
                this.start.isEqual(e.targetPosition) &&
                this.end.isEqual(e.deletionPosition)
              )
                return new zo(this.start);
              let t = this.start._getTransformedByMergeOperation(e),
                n = this.end._getTransformedByMergeOperation(e);
              return (
                t.root != n.root && (n = this.end.getShiftedBy(-1)),
                t.isAfter(n)
                  ? (e.sourcePosition.isBefore(e.targetPosition)
                      ? ((t = Ho._createAt(n)).offset = 0)
                      : (e.deletionPosition.isEqual(t) ||
                          (n = e.deletionPosition),
                        (t = e.targetPosition)),
                    new zo(t, n))
                  : new zo(t, n)
              );
            }
            _getTransformedByInsertion(e, t, n = !1) {
              if (n && this.containsPosition(e))
                return [
                  new zo(this.start, e),
                  new zo(
                    e.getShiftedBy(t),
                    this.end._getTransformedByInsertion(e, t)
                  ),
                ];
              {
                const n = new zo(this.start, this.end);
                return (
                  (n.start = n.start._getTransformedByInsertion(e, t)),
                  (n.end = n.end._getTransformedByInsertion(e, t)),
                  [n]
                );
              }
            }
            _getTransformedByMove(e, t, n, r = !1) {
              if (this.isCollapsed) {
                const r = this.start._getTransformedByMove(e, t, n);
                return [new zo(r)];
              }
              const o = zo._createFromPositionAndShift(e, n),
                a = t._getTransformedByDeletion(e, n);
              if (
                this.containsPosition(t) &&
                !r &&
                (o.containsPosition(this.start) || o.containsPosition(this.end))
              ) {
                const r = this.start._getTransformedByMove(e, t, n),
                  o = this.end._getTransformedByMove(e, t, n);
                return [new zo(r, o)];
              }
              let i;
              const s = this.getDifference(o);
              let l = null;
              const c = this.getIntersection(o);
              if (
                (1 == s.length
                  ? (l = new zo(
                      s[0].start._getTransformedByDeletion(e, n),
                      s[0].end._getTransformedByDeletion(e, n)
                    ))
                  : 2 == s.length &&
                    (l = new zo(
                      this.start,
                      this.end._getTransformedByDeletion(e, n)
                    )),
                (i = l
                  ? l._getTransformedByInsertion(a, n, null !== c || r)
                  : []),
                c)
              ) {
                const e = new zo(
                  c.start._getCombined(o.start, a),
                  c.end._getCombined(o.start, a)
                );
                2 == i.length ? i.splice(1, 0, e) : i.push(e);
              }
              return i;
            }
            _getTransformedByDeletion(e, t) {
              let n = this.start._getTransformedByDeletion(e, t),
                r = this.end._getTransformedByDeletion(e, t);
              return null == n && null == r
                ? null
                : (null == n && (n = e), null == r && (r = e), new zo(n, r));
            }
            static _createFromPositionAndShift(e, t) {
              const n = e,
                r = e.getShiftedBy(t);
              return t > 0 ? new this(n, r) : new this(r, n);
            }
            static _createIn(e) {
              return new this(Ho._createAt(e, 0), Ho._createAt(e, e.maxOffset));
            }
            static _createOn(e) {
              return this._createFromPositionAndShift(
                Ho._createBefore(e),
                e.offsetSize
              );
            }
            static _createFromRanges(e) {
              if (0 === e.length)
                throw new _t.b(
                  "range-create-from-ranges-empty-array: At least one range has to be passed.",
                  null
                );
              if (1 == e.length) return e[0].clone();
              const t = e[0];
              e.sort((e, t) => (e.start.isAfter(t.start) ? 1 : -1));
              const n = e.indexOf(t),
                r = new this(t.start, t.end);
              if (n > 0)
                for (let t = n - 1; e[t].end.isEqual(r.start); t++)
                  r.start = Ho._createAt(e[t].start);
              for (
                let t = n + 1;
                t < e.length && e[t].start.isEqual(r.end);
                t++
              )
                r.end = Ho._createAt(e[t].end);
              return r;
            }
            static fromJSON(e, t) {
              return new this(Ho.fromJSON(e.start, t), Ho.fromJSON(e.end, t));
            }
          }
          class Bo {
            constructor() {
              (this._modelToViewMapping = new WeakMap()),
                (this._viewToModelMapping = new WeakMap()),
                (this._viewToModelLengthCallbacks = new Map()),
                (this._markerNameToElements = new Map()),
                (this._elementToMarkerNames = new Map()),
                (this._unboundMarkerNames = new Set()),
                this.on(
                  "modelToViewPosition",
                  (e, t) => {
                    if (t.viewPosition) return;
                    const n = this._modelToViewMapping.get(
                      t.modelPosition.parent
                    );
                    t.viewPosition = this._findPositionIn(
                      n,
                      t.modelPosition.offset
                    );
                  },
                  { priority: "low" }
                ),
                this.on(
                  "viewToModelPosition",
                  (e, t) => {
                    if (t.modelPosition) return;
                    const n = this.findMappedViewAncestor(t.viewPosition),
                      r = this._viewToModelMapping.get(n),
                      o = this._toModelOffset(
                        t.viewPosition.parent,
                        t.viewPosition.offset,
                        n
                      );
                    t.modelPosition = Ho._createAt(r, o);
                  },
                  { priority: "low" }
                );
            }
            bindElements(e, t) {
              this._modelToViewMapping.set(e, t),
                this._viewToModelMapping.set(t, e);
            }
            unbindViewElement(e) {
              const t = this.toModelElement(e);
              if (
                (this._viewToModelMapping.delete(e),
                this._elementToMarkerNames.has(e))
              )
                for (const t of this._elementToMarkerNames.get(e))
                  this._unboundMarkerNames.add(t);
              this._modelToViewMapping.get(t) == e &&
                this._modelToViewMapping.delete(t);
            }
            unbindModelElement(e) {
              const t = this.toViewElement(e);
              this._modelToViewMapping.delete(e),
                this._viewToModelMapping.get(t) == e &&
                  this._viewToModelMapping.delete(t);
            }
            bindElementToMarker(e, t) {
              const n = this._markerNameToElements.get(t) || new Set();
              n.add(e);
              const r = this._elementToMarkerNames.get(e) || new Set();
              r.add(t),
                this._markerNameToElements.set(t, n),
                this._elementToMarkerNames.set(e, r);
            }
            unbindElementFromMarkerName(e, t) {
              const n = this._markerNameToElements.get(t);
              n &&
                (n.delete(e),
                0 == n.size && this._markerNameToElements.delete(t));
              const r = this._elementToMarkerNames.get(e);
              r &&
                (r.delete(t),
                0 == r.size && this._elementToMarkerNames.delete(e));
            }
            flushUnboundMarkerNames() {
              const e = Array.from(this._unboundMarkerNames);
              return this._unboundMarkerNames.clear(), e;
            }
            clearBindings() {
              (this._modelToViewMapping = new WeakMap()),
                (this._viewToModelMapping = new WeakMap()),
                (this._markerNameToElements = new Map()),
                (this._elementToMarkerNames = new Map()),
                (this._unboundMarkerNames = new Set());
            }
            toModelElement(e) {
              return this._viewToModelMapping.get(e);
            }
            toViewElement(e) {
              return this._modelToViewMapping.get(e);
            }
            toModelRange(e) {
              return new zo(
                this.toModelPosition(e.start),
                this.toModelPosition(e.end)
              );
            }
            toViewRange(e) {
              return new _n(
                this.toViewPosition(e.start),
                this.toViewPosition(e.end)
              );
            }
            toModelPosition(e) {
              const t = { viewPosition: e, mapper: this };
              return this.fire("viewToModelPosition", t), t.modelPosition;
            }
            toViewPosition(e, t = { isPhantom: !1 }) {
              const n = {
                modelPosition: e,
                mapper: this,
                isPhantom: t.isPhantom,
              };
              return this.fire("modelToViewPosition", n), n.viewPosition;
            }
            markerNameToElements(e) {
              const t = this._markerNameToElements.get(e);
              if (!t) return null;
              const n = new Set();
              for (const e of t)
                if (e.is("attributeElement"))
                  for (const t of e.getElementsWithSameId()) n.add(t);
                else n.add(e);
              return n;
            }
            registerViewToModelLength(e, t) {
              this._viewToModelLengthCallbacks.set(e, t);
            }
            findMappedViewAncestor(e) {
              let t = e.parent;
              for (; !this._viewToModelMapping.has(t); ) t = t.parent;
              return t;
            }
            _toModelOffset(e, t, n) {
              if (n != e)
                return (
                  this._toModelOffset(e.parent, e.index, n) +
                  this._toModelOffset(e, t, e)
                );
              if (e.is("text")) return t;
              let r = 0;
              for (let n = 0; n < t; n++)
                r += this.getModelLength(e.getChild(n));
              return r;
            }
            getModelLength(e) {
              if (this._viewToModelLengthCallbacks.get(e.name))
                return this._viewToModelLengthCallbacks.get(e.name)(e);
              if (this._viewToModelMapping.has(e)) return 1;
              if (e.is("text")) return e.data.length;
              if (e.is("uiElement")) return 0;
              {
                let t = 0;
                for (const n of e.getChildren()) t += this.getModelLength(n);
                return t;
              }
            }
            _findPositionIn(e, t) {
              let n,
                r = 0,
                o = 0,
                a = 0;
              if (e.is("text")) return new gn(e, t);
              for (; o < t; )
                (n = e.getChild(a)), (o += r = this.getModelLength(n)), a++;
              return o == t
                ? this._moveViewPositionToTextNode(new gn(e, a))
                : this._findPositionIn(n, t - (o - r));
            }
            _moveViewPositionToTextNode(e) {
              const t = e.nodeBefore,
                n = e.nodeAfter;
              return t instanceof At
                ? new gn(t, t.data.length)
                : n instanceof At
                ? new gn(n, 0)
                : e;
            }
          }
          Ct(Bo, xt);
          class Uo {
            constructor() {
              (this._consumable = new Map()),
                (this._textProxyRegistry = new Map());
            }
            add(e, t) {
              (t = Vo(t)),
                e instanceof Io && (e = this._getSymbolForTextProxy(e)),
                this._consumable.has(e) || this._consumable.set(e, new Map()),
                this._consumable.get(e).set(t, !0);
            }
            consume(e, t) {
              return (
                (t = Vo(t)),
                e instanceof Io && (e = this._getSymbolForTextProxy(e)),
                !!this.test(e, t) && (this._consumable.get(e).set(t, !1), !0)
              );
            }
            test(e, t) {
              (t = Vo(t)),
                e instanceof Io && (e = this._getSymbolForTextProxy(e));
              const n = this._consumable.get(e);
              if (void 0 === n) return null;
              const r = n.get(t);
              return void 0 === r ? null : r;
            }
            revert(e, t) {
              (t = Vo(t)),
                e instanceof Io && (e = this._getSymbolForTextProxy(e));
              const n = this.test(e, t);
              return !1 === n
                ? (this._consumable.get(e).set(t, !0), !0)
                : !0 !== n && null;
            }
            _getSymbolForTextProxy(e) {
              let t = null;
              const n = this._textProxyRegistry.get(e.startOffset);
              if (n) {
                const r = n.get(e.endOffset);
                r && (t = r.get(e.parent));
              }
              return (
                t ||
                  (t = this._addSymbolForTextProxy(
                    e.startOffset,
                    e.endOffset,
                    e.parent
                  )),
                t
              );
            }
            _addSymbolForTextProxy(e, t, n) {
              const r = Symbol("textProxySymbol");
              let o, a;
              return (
                (o = this._textProxyRegistry.get(e)) ||
                  ((o = new Map()), this._textProxyRegistry.set(e, o)),
                (a = o.get(t)) || ((a = new Map()), o.set(t, a)),
                a.set(n, r),
                r
              );
            }
          }
          function Vo(e) {
            const t = e.split(":");
            return t.length > 1 ? t[0] + ":" + t[1] : t[0];
          }
          class Wo {
            constructor(e) {
              this.conversionApi = Zt({ dispatcher: this }, e);
            }
            convertChanges(e, t, n) {
              for (const t of e.getMarkersToRemove())
                this.convertMarkerRemove(t.name, t.range, n);
              for (const t of e.getChanges())
                "insert" == t.type
                  ? this.convertInsert(
                      zo._createFromPositionAndShift(t.position, t.length),
                      n
                    )
                  : "remove" == t.type
                  ? this.convertRemove(t.position, t.length, t.name, n)
                  : this.convertAttribute(
                      t.range,
                      t.attributeKey,
                      t.attributeOldValue,
                      t.attributeNewValue,
                      n
                    );
              for (const e of this.conversionApi.mapper.flushUnboundMarkerNames()) {
                const r = t.get(e).getRange();
                this.convertMarkerRemove(e, r, n),
                  this.convertMarkerAdd(e, r, n);
              }
              for (const t of e.getMarkersToAdd())
                this.convertMarkerAdd(t.name, t.range, n);
            }
            convertInsert(e, t) {
              (this.conversionApi.writer = t),
                (this.conversionApi.consumable = this._createInsertConsumable(
                  e
                ));
              for (const t of e) {
                const e = t.item,
                  n = {
                    item: e,
                    range: zo._createFromPositionAndShift(
                      t.previousPosition,
                      t.length
                    ),
                  };
                this._testAndFire("insert", n);
                for (const t of e.getAttributeKeys())
                  (n.attributeKey = t),
                    (n.attributeOldValue = null),
                    (n.attributeNewValue = e.getAttribute(t)),
                    this._testAndFire("attribute:" + t, n);
              }
              this._clearConversionApi();
            }
            convertRemove(e, t, n, r) {
              (this.conversionApi.writer = r),
                this.fire(
                  "remove:" + n,
                  { position: e, length: t },
                  this.conversionApi
                ),
                this._clearConversionApi();
            }
            convertAttribute(e, t, n, r, o) {
              (this.conversionApi.writer = o),
                (this.conversionApi.consumable = this._createConsumableForRange(
                  e,
                  "attribute:" + t
                ));
              for (const o of e) {
                const e = {
                  item: o.item,
                  range: zo._createFromPositionAndShift(
                    o.previousPosition,
                    o.length
                  ),
                  attributeKey: t,
                  attributeOldValue: n,
                  attributeNewValue: r,
                };
                this._testAndFire("attribute:" + t, e);
              }
              this._clearConversionApi();
            }
            convertSelection(e, t, n) {
              const r = Array.from(
                t.getMarkersAtPosition(e.getFirstPosition())
              );
              if (
                ((this.conversionApi.writer = n),
                (this.conversionApi.consumable = this._createSelectionConsumable(
                  e,
                  r
                )),
                this.fire("selection", { selection: e }, this.conversionApi),
                e.isCollapsed)
              ) {
                for (const t of r) {
                  const n = t.getRange();
                  if (!qo(e.getFirstPosition(), t, this.conversionApi.mapper))
                    continue;
                  const r = { item: e, markerName: t.name, markerRange: n };
                  this.conversionApi.consumable.test(
                    e,
                    "addMarker:" + t.name
                  ) && this.fire("addMarker:" + t.name, r, this.conversionApi);
                }
                for (const t of e.getAttributeKeys()) {
                  const n = {
                    item: e,
                    range: e.getFirstRange(),
                    attributeKey: t,
                    attributeOldValue: null,
                    attributeNewValue: e.getAttribute(t),
                  };
                  this.conversionApi.consumable.test(
                    e,
                    "attribute:" + n.attributeKey
                  ) &&
                    this.fire(
                      "attribute:" + n.attributeKey + ":$text",
                      n,
                      this.conversionApi
                    );
                }
                this._clearConversionApi();
              }
            }
            convertMarkerAdd(e, t, n) {
              if (!t.root.document || "$graveyard" == t.root.rootName) return;
              this.conversionApi.writer = n;
              const r = "addMarker:" + e,
                o = new Uo();
              if (
                (o.add(t, r),
                (this.conversionApi.consumable = o),
                this.fire(
                  r,
                  { markerName: e, markerRange: t },
                  this.conversionApi
                ),
                o.test(t, r))
              ) {
                this.conversionApi.consumable = this._createConsumableForRange(
                  t,
                  r
                );
                for (const n of t.getItems()) {
                  if (!this.conversionApi.consumable.test(n, r)) continue;
                  const o = {
                    item: n,
                    range: zo._createOn(n),
                    markerName: e,
                    markerRange: t,
                  };
                  this.fire(r, o, this.conversionApi);
                }
                this._clearConversionApi();
              }
            }
            convertMarkerRemove(e, t, n) {
              t.root.document &&
                "$graveyard" != t.root.rootName &&
                ((this.conversionApi.writer = n),
                this.fire(
                  "removeMarker:" + e,
                  { markerName: e, markerRange: t },
                  this.conversionApi
                ),
                this._clearConversionApi());
            }
            _createInsertConsumable(e) {
              const t = new Uo();
              for (const n of e) {
                const e = n.item;
                t.add(e, "insert");
                for (const n of e.getAttributeKeys())
                  t.add(e, "attribute:" + n);
              }
              return t;
            }
            _createConsumableForRange(e, t) {
              const n = new Uo();
              for (const r of e.getItems()) n.add(r, t);
              return n;
            }
            _createSelectionConsumable(e, t) {
              const n = new Uo();
              n.add(e, "selection");
              for (const r of t) n.add(e, "addMarker:" + r.name);
              for (const t of e.getAttributeKeys()) n.add(e, "attribute:" + t);
              return n;
            }
            _testAndFire(e, t) {
              if (!this.conversionApi.consumable.test(t.item, e)) return;
              const n = t.item.name || "$text";
              this.fire(e + ":" + n, t, this.conversionApi);
            }
            _clearConversionApi() {
              delete this.conversionApi.writer,
                delete this.conversionApi.consumable;
            }
          }
          function qo(e, t, n) {
            const r = t.getRange(),
              o = Array.from(e.getAncestors());
            return (
              o.shift(),
              o.reverse(),
              !o.some((e) => {
                if (r.containsItem(e))
                  return !!n.toViewElement(e).getCustomProperty("addHighlight");
              })
            );
          }
          Ct(Wo, xt);
          class Go {
            constructor(e, t, n) {
              (this._lastRangeBackward = !1),
                (this._ranges = []),
                (this._attrs = new Map()),
                e && this.setTo(e, t, n);
            }
            get anchor() {
              if (this._ranges.length > 0) {
                const e = this._ranges[this._ranges.length - 1];
                return this._lastRangeBackward ? e.end : e.start;
              }
              return null;
            }
            get focus() {
              if (this._ranges.length > 0) {
                const e = this._ranges[this._ranges.length - 1];
                return this._lastRangeBackward ? e.start : e.end;
              }
              return null;
            }
            get isCollapsed() {
              return 1 === this._ranges.length && this._ranges[0].isCollapsed;
            }
            get rangeCount() {
              return this._ranges.length;
            }
            get isBackward() {
              return !this.isCollapsed && this._lastRangeBackward;
            }
            isEqual(e) {
              if (this.rangeCount != e.rangeCount) return !1;
              if (0 === this.rangeCount) return !0;
              if (
                !this.anchor.isEqual(e.anchor) ||
                !this.focus.isEqual(e.focus)
              )
                return !1;
              for (const t of this._ranges) {
                let n = !1;
                for (const r of e._ranges)
                  if (t.isEqual(r)) {
                    n = !0;
                    break;
                  }
                if (!n) return !1;
              }
              return !0;
            }
            *getRanges() {
              for (const e of this._ranges) yield new zo(e.start, e.end);
            }
            getFirstRange() {
              let e = null;
              for (const t of this._ranges)
                (e && !t.start.isBefore(e.start)) || (e = t);
              return e ? new zo(e.start, e.end) : null;
            }
            getLastRange() {
              let e = null;
              for (const t of this._ranges)
                (e && !t.end.isAfter(e.end)) || (e = t);
              return e ? new zo(e.start, e.end) : null;
            }
            getFirstPosition() {
              const e = this.getFirstRange();
              return e ? e.start.clone() : null;
            }
            getLastPosition() {
              const e = this.getLastRange();
              return e ? e.end.clone() : null;
            }
            setTo(e, t, n) {
              if (null === e) this._setRanges([]);
              else if (e instanceof Go)
                this._setRanges(e.getRanges(), e.isBackward);
              else if (e && "function" == typeof e.getRanges)
                this._setRanges(e.getRanges(), e.isBackward);
              else if (e instanceof zo)
                this._setRanges([e], !!t && !!t.backward);
              else if (e instanceof Ho) this._setRanges([new zo(e)]);
              else if (e instanceof No) {
                const r = !!n && !!n.backward;
                let o;
                if ("in" == t) o = zo._createIn(e);
                else if ("on" == t) o = zo._createOn(e);
                else {
                  if (void 0 === t)
                    throw new _t.b(
                      "model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",
                      [this, e]
                    );
                  o = new zo(Ho._createAt(e, t));
                }
                this._setRanges([o], r);
              } else {
                if (!Yt(e))
                  throw new _t.b(
                    "model-selection-setTo-not-selectable: Cannot set the selection to the given place.",
                    [this, e]
                  );
                this._setRanges(e, t && !!t.backward);
              }
            }
            _setRanges(e, t = !1) {
              const n = (e = Array.from(e)).some((t) => {
                if (!(t instanceof zo))
                  throw new _t.b(
                    "model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",
                    [this, e]
                  );
                return this._ranges.every((e) => !e.isEqual(t));
              });
              if (e.length !== this._ranges.length || n) {
                this._removeAllRanges();
                for (const t of e) this._pushRange(t);
                (this._lastRangeBackward = !!t),
                  this.fire("change:range", { directChange: !0 });
              }
            }
            setFocus(e, t) {
              if (null === this.anchor)
                throw new _t.b(
                  "model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",
                  [this, e]
                );
              const n = Ho._createAt(e, t);
              if ("same" == n.compareWith(this.focus)) return;
              const r = this.anchor;
              this._ranges.length && this._popRange(),
                "before" == n.compareWith(r)
                  ? (this._pushRange(new zo(n, r)),
                    (this._lastRangeBackward = !0))
                  : (this._pushRange(new zo(r, n)),
                    (this._lastRangeBackward = !1)),
                this.fire("change:range", { directChange: !0 });
            }
            getAttribute(e) {
              return this._attrs.get(e);
            }
            getAttributes() {
              return this._attrs.entries();
            }
            getAttributeKeys() {
              return this._attrs.keys();
            }
            hasAttribute(e) {
              return this._attrs.has(e);
            }
            removeAttribute(e) {
              this.hasAttribute(e) &&
                (this._attrs.delete(e),
                this.fire("change:attribute", {
                  attributeKeys: [e],
                  directChange: !0,
                }));
            }
            setAttribute(e, t) {
              this.getAttribute(e) !== t &&
                (this._attrs.set(e, t),
                this.fire("change:attribute", {
                  attributeKeys: [e],
                  directChange: !0,
                }));
            }
            getSelectedElement() {
              if (1 !== this.rangeCount) return null;
              const e = this.getFirstRange(),
                t = e.start.nodeAfter,
                n = e.end.nodeBefore;
              return t instanceof Yo && t == n ? t : null;
            }
            is(e) {
              return "selection" == e || "model:selection" == e;
            }
            *getSelectedBlocks() {
              const e = new WeakSet();
              for (const t of this.getRanges()) {
                const n = Ko(t.start, e);
                n && (yield n);
                for (const n of t.getWalker())
                  "elementEnd" == n.type && Jo(n.item, e) && (yield n.item);
                const r = Ko(t.end, e);
                r && !t.end.isTouching(Ho._createAt(r, 0)) && (yield r);
              }
            }
            *getTopMostBlocks() {
              const e = Array.from(this.getSelectedBlocks());
              for (const t of e) {
                const n = Qo(t);
                (n && e.includes(n)) || (yield t);
              }
            }
            containsEntireContent(e = this.anchor.root) {
              const t = Ho._createAt(e, 0),
                n = Ho._createAt(e, "end");
              return (
                t.isTouching(this.getFirstPosition()) &&
                n.isTouching(this.getLastPosition())
              );
            }
            _pushRange(e) {
              this._checkRange(e), this._ranges.push(new zo(e.start, e.end));
            }
            _checkRange(e) {
              for (let t = 0; t < this._ranges.length; t++)
                if (e.isIntersecting(this._ranges[t]))
                  throw new _t.b(
                    "model-selection-range-intersects: Trying to add a range that intersects with another range in the selection.",
                    [this, e],
                    { addedRange: e, intersectingRange: this._ranges[t] }
                  );
            }
            _removeAllRanges() {
              for (; this._ranges.length > 0; ) this._popRange();
            }
            _popRange() {
              this._ranges.pop();
            }
          }
          function Jo(e, t) {
            return (
              !t.has(e) &&
              (t.add(e), e.document.model.schema.isBlock(e) && e.parent)
            );
          }
          function Ko(e, t) {
            const n = e.parent.document.model.schema,
              r = e.parent.getAncestors({ parentFirst: !0, includeSelf: !0 });
            let o = !1;
            const a = r.find((e) => !o && !(o = n.isLimit(e)) && Jo(e, t));
            return r.forEach((e) => t.add(e)), a;
          }
          function Qo(e) {
            const t = e.document.model.schema;
            let n = e.parent;
            for (; n; ) {
              if (t.isBlock(n)) return n;
              n = n.parent;
            }
          }
          Ct(Go, xt);
          class Xo extends zo {
            constructor(e, t) {
              super(e, t),
                function () {
                  this.listenTo(
                    this.root.document.model,
                    "applyOperation",
                    (e, t) => {
                      const n = t[0];
                      n.isDocumentOperation &&
                        function (e) {
                          const t = this.getTransformedByOperation(e),
                            n = zo._createFromRanges(t),
                            r = !n.isEqual(this),
                            o = (function (e, t) {
                              switch (t.type) {
                                case "insert":
                                  return e.containsPosition(t.position);
                                case "move":
                                case "remove":
                                case "reinsert":
                                case "merge":
                                  return (
                                    e.containsPosition(t.sourcePosition) ||
                                    e.start.isEqual(t.sourcePosition) ||
                                    e.containsPosition(t.targetPosition)
                                  );
                                case "split":
                                  return (
                                    e.containsPosition(t.splitPosition) ||
                                    e.containsPosition(t.insertionPosition)
                                  );
                              }
                              return !1;
                            })(this, e);
                          let a = null;
                          if (r) {
                            "$graveyard" == n.root.rootName &&
                              (a =
                                "remove" == e.type
                                  ? e.sourcePosition
                                  : e.deletionPosition);
                            const t = this.toRange();
                            (this.start = n.start),
                              (this.end = n.end),
                              this.fire("change:range", t, {
                                deletionPosition: a,
                              });
                          } else
                            o &&
                              this.fire("change:content", this.toRange(), {
                                deletionPosition: a,
                              });
                        }.call(this, n);
                    },
                    { priority: "low" }
                  );
                }.call(this);
            }
            detach() {
              this.stopListening();
            }
            is(e) {
              return "liveRange" == e || "model:liveRange" == e || super.is(e);
            }
            toRange() {
              return new zo(this.start, this.end);
            }
            static fromRange(e) {
              return new Xo(e.start, e.end);
            }
          }
          Ct(Xo, xt);
          const $o = "selection:";
          class Zo {
            constructor(e) {
              (this._selection = new ea(e)),
                this._selection.delegate("change:range").to(this),
                this._selection.delegate("change:attribute").to(this);
            }
            get isCollapsed() {
              return this._selection.isCollapsed;
            }
            get anchor() {
              return this._selection.anchor;
            }
            get focus() {
              return this._selection.focus;
            }
            get rangeCount() {
              return this._selection.rangeCount;
            }
            get hasOwnRange() {
              return this._selection.hasOwnRange;
            }
            get isBackward() {
              return this._selection.isBackward;
            }
            get isGravityOverridden() {
              return this._selection.isGravityOverridden;
            }
            get markers() {
              return this._selection.markers;
            }
            get _ranges() {
              return this._selection._ranges;
            }
            getRanges() {
              return this._selection.getRanges();
            }
            getFirstPosition() {
              return this._selection.getFirstPosition();
            }
            getLastPosition() {
              return this._selection.getLastPosition();
            }
            getFirstRange() {
              return this._selection.getFirstRange();
            }
            getLastRange() {
              return this._selection.getLastRange();
            }
            getSelectedBlocks() {
              return this._selection.getSelectedBlocks();
            }
            getTopMostBlocks() {
              return this._selection.getTopMostBlocks();
            }
            getSelectedElement() {
              return this._selection.getSelectedElement();
            }
            containsEntireContent(e) {
              return this._selection.containsEntireContent(e);
            }
            destroy() {
              this._selection.destroy();
            }
            getAttributeKeys() {
              return this._selection.getAttributeKeys();
            }
            getAttributes() {
              return this._selection.getAttributes();
            }
            getAttribute(e) {
              return this._selection.getAttribute(e);
            }
            hasAttribute(e) {
              return this._selection.hasAttribute(e);
            }
            refresh() {
              this._selection._updateMarkers(),
                this._selection._updateAttributes(!1);
            }
            is(e) {
              return (
                "selection" == e ||
                "model:selection" == e ||
                "documentSelection" == e ||
                "model:documentSelection" == e
              );
            }
            _setFocus(e, t) {
              this._selection.setFocus(e, t);
            }
            _setTo(e, t, n) {
              this._selection.setTo(e, t, n);
            }
            _setAttribute(e, t) {
              this._selection.setAttribute(e, t);
            }
            _removeAttribute(e) {
              this._selection.removeAttribute(e);
            }
            _getStoredAttributes() {
              return this._selection._getStoredAttributes();
            }
            _overrideGravity() {
              return this._selection.overrideGravity();
            }
            _restoreGravity(e) {
              this._selection.restoreGravity(e);
            }
            static _getStoreAttributeKey(e) {
              return $o + e;
            }
            static _isStoreAttributeKey(e) {
              return e.startsWith($o);
            }
          }
          Ct(Zo, xt);
          class ea extends Go {
            constructor(e) {
              super(),
                (this.markers = new kn({ idProperty: "name" })),
                (this._model = e.model),
                (this._document = e),
                (this._attributePriority = new Map()),
                (this._fixGraveyardRangesData = []),
                (this._hasChangedRange = !1),
                (this._overriddenGravityRegister = new Set()),
                this.listenTo(
                  this._model,
                  "applyOperation",
                  (e, t) => {
                    const n = t[0];
                    if (
                      n.isDocumentOperation &&
                      "marker" != n.type &&
                      "rename" != n.type &&
                      "noop" != n.type
                    ) {
                      for (; this._fixGraveyardRangesData.length; ) {
                        const {
                          liveRange: e,
                          sourcePosition: t,
                        } = this._fixGraveyardRangesData.shift();
                        this._fixGraveyardSelection(e, t);
                      }
                      this._hasChangedRange &&
                        ((this._hasChangedRange = !1),
                        this.fire("change:range", { directChange: !1 }));
                    }
                  },
                  { priority: "lowest" }
                ),
                this.on("change:range", () => {
                  for (const e of this.getRanges())
                    if (!this._document._validateSelectionRange(e))
                      throw new _t.b(
                        "document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",
                        this,
                        { range: e }
                      );
                }),
                this.listenTo(this._model.markers, "update", () =>
                  this._updateMarkers()
                ),
                this.listenTo(this._document, "change", (e, t) => {
                  !(function (e, t) {
                    const n = e.document.differ;
                    for (const r of n.getChanges()) {
                      if ("insert" != r.type) continue;
                      const n = r.position.parent;
                      r.length === n.maxOffset &&
                        e.enqueueChange(t, (e) => {
                          const t = Array.from(
                            n.getAttributeKeys()
                          ).filter((e) => e.startsWith($o));
                          for (const r of t) e.removeAttribute(r, n);
                        });
                    }
                  })(this._model, t);
                });
            }
            get isCollapsed() {
              return 0 === this._ranges.length
                ? this._document._getDefaultRange().isCollapsed
                : super.isCollapsed;
            }
            get anchor() {
              return super.anchor || this._document._getDefaultRange().start;
            }
            get focus() {
              return super.focus || this._document._getDefaultRange().end;
            }
            get rangeCount() {
              return this._ranges.length ? this._ranges.length : 1;
            }
            get hasOwnRange() {
              return this._ranges.length > 0;
            }
            get isGravityOverridden() {
              return !!this._overriddenGravityRegister.size;
            }
            destroy() {
              for (let e = 0; e < this._ranges.length; e++)
                this._ranges[e].detach();
              this.stopListening();
            }
            *getRanges() {
              this._ranges.length
                ? yield* super.getRanges()
                : yield this._document._getDefaultRange();
            }
            getFirstRange() {
              return super.getFirstRange() || this._document._getDefaultRange();
            }
            getLastRange() {
              return super.getLastRange() || this._document._getDefaultRange();
            }
            setTo(e, t, n) {
              super.setTo(e, t, n), this._updateAttributes(!0);
            }
            setFocus(e, t) {
              super.setFocus(e, t), this._updateAttributes(!0);
            }
            setAttribute(e, t) {
              if (this._setAttribute(e, t)) {
                const t = [e];
                this.fire("change:attribute", {
                  attributeKeys: t,
                  directChange: !0,
                });
              }
            }
            removeAttribute(e) {
              if (this._removeAttribute(e)) {
                const t = [e];
                this.fire("change:attribute", {
                  attributeKeys: t,
                  directChange: !0,
                });
              }
            }
            overrideGravity() {
              const e = bt();
              return (
                this._overriddenGravityRegister.add(e),
                1 === this._overriddenGravityRegister.size &&
                  this._updateAttributes(!0),
                e
              );
            }
            restoreGravity(e) {
              if (!this._overriddenGravityRegister.has(e))
                throw new _t.b(
                  "document-selection-gravity-wrong-restore: Attempting to restore the selection gravity for an unknown UID.",
                  this,
                  { uid: e }
                );
              this._overriddenGravityRegister.delete(e),
                this.isGravityOverridden || this._updateAttributes(!0);
            }
            _popRange() {
              this._ranges.pop().detach();
            }
            _pushRange(e) {
              const t = this._prepareRange(e);
              t && this._ranges.push(t);
            }
            _prepareRange(e) {
              if ((this._checkRange(e), e.root == this._document.graveyard))
                return;
              const t = Xo.fromRange(e);
              return (
                t.on("change:range", (e, n, r) => {
                  (this._hasChangedRange = !0),
                    t.root == this._document.graveyard &&
                      this._fixGraveyardRangesData.push({
                        liveRange: t,
                        sourcePosition: r.deletionPosition,
                      });
                }),
                t
              );
            }
            _updateMarkers() {
              const e = [];
              for (const t of this._model.markers) {
                const n = t.getRange();
                for (const r of this.getRanges())
                  n.containsRange(r, !r.isCollapsed) && e.push(t);
              }
              for (const t of e) this.markers.has(t) || this.markers.add(t);
              for (const t of Array.from(this.markers))
                e.includes(t) || this.markers.remove(t);
            }
            _updateAttributes(e) {
              const t = Oo(this._getSurroundingAttributes()),
                n = Oo(this.getAttributes());
              if (e)
                (this._attributePriority = new Map()),
                  (this._attrs = new Map());
              else
                for (const [e, t] of this._attributePriority)
                  "low" == t &&
                    (this._attrs.delete(e), this._attributePriority.delete(e));
              this._setAttributesTo(t);
              const r = [];
              for (const [e, t] of this.getAttributes())
                (n.has(e) && n.get(e) === t) || r.push(e);
              for (const [e] of n) this.hasAttribute(e) || r.push(e);
              r.length > 0 &&
                this.fire("change:attribute", {
                  attributeKeys: r,
                  directChange: !1,
                });
            }
            _setAttribute(e, t, n = !0) {
              const r = n ? "normal" : "low";
              return (
                ("low" != r || "normal" != this._attributePriority.get(e)) &&
                super.getAttribute(e) !== t &&
                (this._attrs.set(e, t), this._attributePriority.set(e, r), !0)
              );
            }
            _removeAttribute(e, t = !0) {
              const n = t ? "normal" : "low";
              return !(
                ("low" == n && "normal" == this._attributePriority.get(e)) ||
                (this._attributePriority.set(e, n),
                !super.hasAttribute(e) || (this._attrs.delete(e), 0))
              );
            }
            _setAttributesTo(e) {
              const t = new Set();
              for (const [t, n] of this.getAttributes())
                e.get(t) !== n && this._removeAttribute(t, !1);
              for (const [n, r] of e) this._setAttribute(n, r, !1) && t.add(n);
              return t;
            }
            *_getStoredAttributes() {
              const e = this.getFirstPosition().parent;
              if (this.isCollapsed && e.isEmpty)
                for (const t of e.getAttributeKeys())
                  t.startsWith($o) &&
                    (yield [t.substr($o.length), e.getAttribute(t)]);
            }
            _getSurroundingAttributes() {
              const e = this.getFirstPosition(),
                t = this._model.schema;
              let n = null;
              if (this.isCollapsed) {
                const t = e.textNode ? e.textNode : e.nodeBefore,
                  r = e.textNode ? e.textNode : e.nodeAfter;
                if (
                  (this.isGravityOverridden || (n = ta(t)),
                  n || (n = ta(r)),
                  !this.isGravityOverridden && !n)
                ) {
                  let e = t;
                  for (; e && !n; ) n = ta((e = e.previousSibling));
                }
                if (!n) {
                  let e = r;
                  for (; e && !n; ) n = ta((e = e.nextSibling));
                }
                n || (n = this._getStoredAttributes());
              } else {
                const e = this.getFirstRange();
                for (const r of e) {
                  if (r.item.is("element") && t.isObject(r.item)) break;
                  if ("text" == r.type) {
                    n = r.item.getAttributes();
                    break;
                  }
                }
              }
              return n;
            }
            _fixGraveyardSelection(e, t) {
              const n = t.clone(),
                r = this._model.schema.getNearestSelectionRange(n),
                o = this._ranges.indexOf(e);
              if ((this._ranges.splice(o, 1), e.detach(), r)) {
                const e = this._prepareRange(r);
                this._ranges.splice(o, 0, e);
              }
            }
          }
          function ta(e) {
            return e instanceof Io || e instanceof Ao
              ? e.getAttributes()
              : null;
          }
          class na {
            constructor(e) {
              this._dispatchers = e;
            }
            add(e) {
              for (const t of this._dispatchers) e(t);
              return this;
            }
          }
          var ra = function (e) {
            return ht(e, 5);
          };
          class oa extends na {
            elementToElement(e) {
              return this.add(
                (function (e) {
                  return (
                    ((e = ra(e)).view = ia(e.view, "container")),
                    (t) => {
                      t.on(
                        "insert:" + e.model,
                        (function (e) {
                          return (t, n, r) => {
                            const o = e(n.item, r.writer);
                            if (!o) return;
                            if (!r.consumable.consume(n.item, "insert")) return;
                            const a = r.mapper.toViewPosition(n.range.start);
                            r.mapper.bindElements(n.item, o),
                              r.writer.insert(a, o);
                          };
                        })(e.view),
                        { priority: e.converterPriority || "normal" }
                      );
                    }
                  );
                })(e)
              );
            }
            attributeToElement(e) {
              return this.add(
                (function (e) {
                  let t =
                    "attribute:" +
                    ((e = ra(e)).model.key ? e.model.key : e.model);
                  if (
                    (e.model.name && (t += ":" + e.model.name), e.model.values)
                  )
                    for (const t of e.model.values)
                      e.view[t] = ia(e.view[t], "attribute");
                  else e.view = ia(e.view, "attribute");
                  const n = sa(e);
                  return (r) => {
                    r.on(
                      t,
                      (function (e) {
                        return (t, n, r) => {
                          const o = e(n.attributeOldValue, r.writer),
                            a = e(n.attributeNewValue, r.writer);
                          if (!o && !a) return;
                          if (!r.consumable.consume(n.item, t.name)) return;
                          const i = r.writer,
                            s = i.document.selection;
                          if (n.item instanceof Go || n.item instanceof Zo)
                            i.wrap(s.getFirstRange(), a);
                          else {
                            let e = r.mapper.toViewRange(n.range);
                            null !== n.attributeOldValue &&
                              o &&
                              (e = i.unwrap(e, o)),
                              null !== n.attributeNewValue && a && i.wrap(e, a);
                          }
                        };
                      })(n),
                      { priority: e.converterPriority || "normal" }
                    );
                  };
                })(e)
              );
            }
            attributeToAttribute(e) {
              return this.add(
                (function (e) {
                  let t =
                    "attribute:" +
                    ((e = ra(e)).model.key ? e.model.key : e.model);
                  if (
                    (e.model.name && (t += ":" + e.model.name), e.model.values)
                  )
                    for (const t of e.model.values) e.view[t] = la(e.view[t]);
                  else e.view = la(e.view);
                  const n = sa(e);
                  return (r) => {
                    r.on(
                      t,
                      (function (e) {
                        return (t, n, r) => {
                          const o = e(n.attributeOldValue, n),
                            a = e(n.attributeNewValue, n);
                          if (!o && !a) return;
                          if (!r.consumable.consume(n.item, t.name)) return;
                          const i = r.mapper.toViewElement(n.item),
                            s = r.writer;
                          if (!i)
                            throw new _t.b(
                              "conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",
                              [n, r]
                            );
                          if (null !== n.attributeOldValue && o)
                            if ("class" == o.key) {
                              const e = Array.isArray(o.value)
                                ? o.value
                                : [o.value];
                              for (const t of e) s.removeClass(t, i);
                            } else if ("style" == o.key) {
                              const e = Object.keys(o.value);
                              for (const t of e) s.removeStyle(t, i);
                            } else s.removeAttribute(o.key, i);
                          if (null !== n.attributeNewValue && a)
                            if ("class" == a.key) {
                              const e = Array.isArray(a.value)
                                ? a.value
                                : [a.value];
                              for (const t of e) s.addClass(t, i);
                            } else if ("style" == a.key) {
                              const e = Object.keys(a.value);
                              for (const t of e) s.setStyle(t, a.value[t], i);
                            } else s.setAttribute(a.key, a.value, i);
                        };
                      })(n),
                      { priority: e.converterPriority || "normal" }
                    );
                  };
                })(e)
              );
            }
            markerToElement(e) {
              return this.add(
                (function (e) {
                  return (
                    ((e = ra(e)).view = ia(e.view, "ui")),
                    (t) => {
                      t.on(
                        "addMarker:" + e.model,
                        (function (e) {
                          return (t, n, r) => {
                            n.isOpening = !0;
                            const o = e(n, r.writer);
                            n.isOpening = !1;
                            const a = e(n, r.writer);
                            if (!o || !a) return;
                            const i = n.markerRange;
                            if (
                              i.isCollapsed &&
                              !r.consumable.consume(i, t.name)
                            )
                              return;
                            for (const e of i)
                              if (!r.consumable.consume(e.item, t.name)) return;
                            const s = r.mapper,
                              l = r.writer;
                            l.insert(s.toViewPosition(i.start), o),
                              r.mapper.bindElementToMarker(o, n.markerName),
                              i.isCollapsed ||
                                (l.insert(s.toViewPosition(i.end), a),
                                r.mapper.bindElementToMarker(a, n.markerName)),
                              t.stop();
                          };
                        })(e.view),
                        { priority: e.converterPriority || "normal" }
                      ),
                        t.on(
                          "removeMarker:" + e.model,
                          (e.view,
                          (e, t, n) => {
                            const r = n.mapper.markerNameToElements(
                              t.markerName
                            );
                            if (r) {
                              for (const e of r)
                                n.mapper.unbindElementFromMarkerName(
                                  e,
                                  t.markerName
                                ),
                                  n.writer.clear(n.writer.createRangeOn(e), e);
                              n.writer.clearClonedElementsGroup(t.markerName),
                                e.stop();
                            }
                          }),
                          { priority: e.converterPriority || "normal" }
                        );
                    }
                  );
                })(e)
              );
            }
            markerToHighlight(e) {
              return this.add(
                (function (e) {
                  return (t) => {
                    t.on(
                      "addMarker:" + e.model,
                      (function (e) {
                        return (t, n, r) => {
                          if (!n.item) return;
                          if (
                            !(
                              n.item instanceof Go ||
                              n.item instanceof Zo ||
                              n.item.is("textProxy")
                            )
                          )
                            return;
                          const o = ca(e, n, r);
                          if (!o) return;
                          if (!r.consumable.consume(n.item, t.name)) return;
                          const a = aa(o),
                            i = r.writer,
                            s = i.document.selection;
                          if (n.item instanceof Go || n.item instanceof Zo)
                            i.wrap(s.getFirstRange(), a, s);
                          else {
                            const e = r.mapper.toViewRange(n.range),
                              t = i.wrap(e, a);
                            for (const e of t.getItems())
                              if (e.is("attributeElement") && e.isSimilar(a)) {
                                r.mapper.bindElementToMarker(e, n.markerName);
                                break;
                              }
                          }
                        };
                      })(e.view),
                      { priority: e.converterPriority || "normal" }
                    ),
                      t.on(
                        "addMarker:" + e.model,
                        (function (e) {
                          return (t, n, r) => {
                            if (!n.item) return;
                            if (!(n.item instanceof Yo)) return;
                            const o = ca(e, n, r);
                            if (!o) return;
                            if (!r.consumable.test(n.item, t.name)) return;
                            const a = r.mapper.toViewElement(n.item);
                            if (a && a.getCustomProperty("addHighlight")) {
                              r.consumable.consume(n.item, t.name);
                              for (const e of zo._createIn(n.item))
                                r.consumable.consume(e.item, t.name);
                              a.getCustomProperty("addHighlight")(
                                a,
                                o,
                                r.writer
                              ),
                                r.mapper.bindElementToMarker(a, n.markerName);
                            }
                          };
                        })(e.view),
                        { priority: e.converterPriority || "normal" }
                      ),
                      t.on(
                        "removeMarker:" + e.model,
                        (function (e) {
                          return (t, n, r) => {
                            if (n.markerRange.isCollapsed) return;
                            const o = ca(e, n, r);
                            if (!o) return;
                            const a = aa(o),
                              i = r.mapper.markerNameToElements(n.markerName);
                            if (i) {
                              for (const e of i)
                                r.mapper.unbindElementFromMarkerName(
                                  e,
                                  n.markerName
                                ),
                                  e.is("attributeElement")
                                    ? r.writer.unwrap(
                                        r.writer.createRangeOn(e),
                                        a
                                      )
                                    : e.getCustomProperty("removeHighlight")(
                                        e,
                                        o.id,
                                        r.writer
                                      );
                              r.writer.clearClonedElementsGroup(n.markerName),
                                t.stop();
                            }
                          };
                        })(e.view),
                        { priority: e.converterPriority || "normal" }
                      );
                  };
                })(e)
              );
            }
          }
          function aa(e) {
            const t = new Mn("span", e.attributes);
            return (
              e.classes && t._addClass(e.classes),
              e.priority && (t._priority = e.priority),
              (t._id = e.id),
              t
            );
          }
          function ia(e, t) {
            return "function" == typeof e
              ? e
              : (n, r) =>
                  (function (e, t, n) {
                    let r;
                    "string" == typeof e && (e = { name: e });
                    const o = Object.assign({}, e.attributes);
                    if ("container" == n)
                      r = t.createContainerElement(e.name, o);
                    else if ("attribute" == n) {
                      const n = { priority: e.priority || Mn.DEFAULT_PRIORITY };
                      r = t.createAttributeElement(e.name, o, n);
                    } else r = t.createUIElement(e.name, o);
                    if (e.styles) {
                      const n = Object.keys(e.styles);
                      for (const o of n) t.setStyle(o, e.styles[o], r);
                    }
                    if (e.classes) {
                      const n = e.classes;
                      if ("string" == typeof n) t.addClass(n, r);
                      else for (const e of n) t.addClass(e, r);
                    }
                    return r;
                  })(e, r, t);
          }
          function sa(e) {
            return e.model.values
              ? (t, n) => {
                  const r = e.view[t];
                  return r ? r(t, n) : null;
                }
              : e.view;
          }
          function la(e) {
            return "string" == typeof e
              ? (t) => ({ key: e, value: t })
              : "object" == typeof e
              ? e.value
                ? () => e
                : (t) => ({ key: e.key, value: t })
              : e;
          }
          function ca(e, t, n) {
            const r = "function" == typeof e ? e(t, n) : e;
            return r
              ? (r.priority || (r.priority = 10),
                r.id || (r.id = t.markerName),
                r)
              : null;
          }
          class ua extends na {
            elementToElement(e) {
              return this.add(da(e));
            }
            elementToAttribute(e) {
              return this.add(
                (function (e) {
                  pa((e = ra(e)));
                  const t = fa(e, !1),
                    n = ha(e),
                    r = n ? "element:" + n : "element";
                  return (n) => {
                    n.on(r, t, { priority: e.converterPriority || "low" });
                  };
                })(e)
              );
            }
            attributeToAttribute(e) {
              return this.add(
                (function (e) {
                  let t = null;
                  ("string" == typeof (e = ra(e)).view || e.view.key) &&
                    (t = (function (e) {
                      "string" == typeof e.view && (e.view = { key: e.view });
                      const t = e.view.key;
                      let n;
                      return (
                        (n =
                          "class" == t || "style" == t
                            ? {
                                ["class" == t ? "classes" : "styles"]: e.view
                                  .value,
                              }
                            : {
                                attributes: {
                                  [t]:
                                    void 0 === e.view.value
                                      ? /[\s\S]*/
                                      : e.view.value,
                                },
                              }),
                        e.view.name && (n.name = e.view.name),
                        (e.view = n),
                        t
                      );
                    })(e)),
                    pa(e, t);
                  const n = fa(e, !0);
                  return (t) => {
                    t.on("element", n, {
                      priority: e.converterPriority || "low",
                    });
                  };
                })(e)
              );
            }
            elementToMarker(e) {
              return this.add(
                (function (e) {
                  return (
                    (function (e) {
                      const t = e.model;
                      e.model = (e, n) => {
                        const r = "string" == typeof t ? t : t(e);
                        return n.createElement("$marker", { "data-name": r });
                      };
                    })((e = ra(e))),
                    da(e)
                  );
                })(e)
              );
            }
          }
          function da(e) {
            const t = (function (e) {
                const t = e.view ? new jt(e.view) : null;
                return (n, r, o) => {
                  let a = {};
                  if (t) {
                    const e = t.match(r.viewItem);
                    if (!e) return;
                    a = e.match;
                  }
                  a.name = !0;
                  const i = (function (e, t, n) {
                    return e instanceof Function ? e(t, n) : n.createElement(e);
                  })(e.model, r.viewItem, o.writer);
                  if (!i) return;
                  if (!o.consumable.test(r.viewItem, a)) return;
                  const s = o.splitToAllowedParent(i, r.modelCursor);
                  if (!s) return;
                  o.writer.insert(i, s.position),
                    o.convertChildren(
                      r.viewItem,
                      o.writer.createPositionAt(i, 0)
                    ),
                    o.consumable.consume(r.viewItem, a);
                  const l = o.getSplitParts(i);
                  (r.modelRange = new zo(
                    o.writer.createPositionBefore(i),
                    o.writer.createPositionAfter(l[l.length - 1])
                  )),
                    s.cursorParent
                      ? (r.modelCursor = o.writer.createPositionAt(
                          s.cursorParent,
                          0
                        ))
                      : (r.modelCursor = r.modelRange.end);
                };
              })((e = ra(e))),
              n = ha(e),
              r = n ? "element:" + n : "element";
            return (n) => {
              n.on(r, t, { priority: e.converterPriority || "normal" });
            };
          }
          function ha(e) {
            return "string" == typeof e.view
              ? e.view
              : "object" == typeof e.view && "string" == typeof e.view.name
              ? e.view.name
              : null;
          }
          function pa(e, t = null) {
            const n = null === t || ((e) => e.getAttribute(t)),
              r = "object" != typeof e.model ? e.model : e.model.key,
              o =
                "object" != typeof e.model || void 0 === e.model.value
                  ? n
                  : e.model.value;
            e.model = { key: r, value: o };
          }
          function fa(e, t) {
            const n = new jt(e.view);
            return (r, o, a) => {
              const i = n.match(o.viewItem);
              if (!i) return;
              const s = e.model.key,
                l =
                  "function" == typeof e.model.value
                    ? e.model.value(o.viewItem)
                    : e.model.value;
              null !== l &&
                ((function (e) {
                  return !(
                    ("object" == typeof e.view && !ha(e)) ||
                    e.view.classes ||
                    e.view.attributes ||
                    e.view.styles
                  );
                })(e)
                  ? (i.match.name = !0)
                  : delete i.match.name,
                a.consumable.test(o.viewItem, i.match) &&
                  (o.modelRange ||
                    (o = Object.assign(
                      o,
                      a.convertChildren(o.viewItem, o.modelCursor)
                    )),
                  (function (e, t, n, r) {
                    let o = !1;
                    for (const a of Array.from(e.getItems({ shallow: n })))
                      r.schema.checkAttribute(a, t.key) &&
                        (r.writer.setAttribute(t.key, t.value, a), (o = !0));
                    return o;
                  })(o.modelRange, { key: s, value: l }, t, a) &&
                    a.consumable.consume(o.viewItem, i.match)));
            };
          }
          class ma {
            constructor(e) {
              (this.model = e),
                (this.view = new Po()),
                (this.mapper = new Bo()),
                (this.downcastDispatcher = new Wo({ mapper: this.mapper }));
              const t = this.model.document,
                n = t.selection,
                r = this.model.markers;
              this.listenTo(
                this.model,
                "_beforeChanges",
                () => {
                  this.view._disableRendering(!0);
                },
                { priority: "highest" }
              ),
                this.listenTo(
                  this.model,
                  "_afterChanges",
                  () => {
                    this.view._disableRendering(!1);
                  },
                  { priority: "lowest" }
                ),
                this.listenTo(
                  t,
                  "change",
                  () => {
                    this.view.change((e) => {
                      this.downcastDispatcher.convertChanges(t.differ, r, e),
                        this.downcastDispatcher.convertSelection(n, r, e);
                    });
                  },
                  { priority: "low" }
                ),
                this.listenTo(
                  this.view.document,
                  "selectionChange",
                  (function (e, t) {
                    return (n, r) => {
                      const o = r.newSelection,
                        a = new Go(),
                        i = [];
                      for (const e of o.getRanges()) i.push(t.toModelRange(e));
                      a.setTo(i, { backward: o.isBackward }),
                        a.isEqual(e.document.selection) ||
                          e.change((e) => {
                            e.setSelection(a);
                          });
                    };
                  })(this.model, this.mapper)
                ),
                this.downcastDispatcher.on(
                  "insert:$text",
                  (e, t, n) => {
                    if (!n.consumable.consume(t.item, "insert")) return;
                    const r = n.writer,
                      o = n.mapper.toViewPosition(t.range.start),
                      a = r.createText(t.item.data);
                    r.insert(o, a);
                  },
                  { priority: "lowest" }
                ),
                this.downcastDispatcher.on(
                  "remove",
                  (e, t, n) => {
                    const r = n.mapper.toViewPosition(t.position),
                      o = t.position.getShiftedBy(t.length),
                      a = n.mapper.toViewPosition(o, { isPhantom: !0 }),
                      i = n.writer.createRange(r, a),
                      s = n.writer.remove(i.getTrimmed());
                    for (const e of n.writer.createRangeIn(s).getItems())
                      n.mapper.unbindViewElement(e);
                  },
                  { priority: "low" }
                ),
                this.downcastDispatcher.on(
                  "selection",
                  (e, t, n) => {
                    const r = n.writer,
                      o = r.document.selection;
                    for (const e of o.getRanges())
                      e.isCollapsed &&
                        e.end.parent.document &&
                        n.writer.mergeAttributes(e.start);
                    r.setSelection(null);
                  },
                  { priority: "low" }
                ),
                this.downcastDispatcher.on(
                  "selection",
                  (e, t, n) => {
                    const r = t.selection;
                    if (r.isCollapsed) return;
                    if (!n.consumable.consume(r, "selection")) return;
                    const o = [];
                    for (const e of r.getRanges()) {
                      const t = n.mapper.toViewRange(e);
                      o.push(t);
                    }
                    n.writer.setSelection(o, { backward: r.isBackward });
                  },
                  { priority: "low" }
                ),
                this.downcastDispatcher.on(
                  "selection",
                  (e, t, n) => {
                    const r = t.selection;
                    if (!r.isCollapsed) return;
                    if (!n.consumable.consume(r, "selection")) return;
                    const o = n.writer,
                      a = r.getFirstPosition(),
                      i = n.mapper.toViewPosition(a),
                      s = o.breakAttributes(i);
                    o.setSelection(s);
                  },
                  { priority: "low" }
                ),
                this.view.document.roots
                  .bindTo(this.model.document.roots)
                  .using((e) => {
                    if ("$graveyard" == e.rootName) return null;
                    const t = new fn(e.name);
                    return (
                      (t.rootName = e.rootName),
                      (t._document = this.view.document),
                      this.mapper.bindElements(e, t),
                      t
                    );
                  });
            }
            destroy() {
              this.view.destroy(), this.stopListening();
            }
          }
          Ct(ma, on);
          class ga {
            constructor(e, t = []) {
              (this._editor = e),
                (this._availablePlugins = new Map()),
                (this._plugins = new Map());
              for (const e of t)
                this._availablePlugins.set(e, e),
                  e.pluginName && this._availablePlugins.set(e.pluginName, e);
            }
            *[Symbol.iterator]() {
              for (const e of this._plugins)
                "function" == typeof e[0] && (yield e);
            }
            get(e) {
              const t = this._plugins.get(e);
              if (!t) {
                const t =
                  "plugincollection-plugin-not-loaded: The requested plugin is not loaded.";
                let n = e;
                throw (
                  ("function" == typeof e && (n = e.pluginName || e.name),
                  new _t.b(t, this._editor, { plugin: n }))
                );
              }
              return t;
            }
            has(e) {
              return this._plugins.has(e);
            }
            init(e, t = []) {
              const n = this,
                r = this._editor,
                o = new Set(),
                a = [],
                i = d(e),
                s = d(t),
                l = (function (e) {
                  const t = [];
                  for (const n of e) u(n) || t.push(n);
                  return t.length ? t : null;
                })(e);
              if (l) {
                const e =
                  "plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";
                return (
                  console.error(Object(_t.a)(e), { plugins: l }),
                  Promise.reject(new _t.b(e, this._editor, { plugins: l }))
                );
              }
              return Promise.all(
                i.map(function e(i) {
                  if (!s.includes(i) && !n._plugins.has(i) && !o.has(i))
                    return (function (i) {
                      return new Promise((s) => {
                        o.add(i),
                          i.requires &&
                            i.requires.forEach((n) => {
                              const o = u(n);
                              if (t.includes(o))
                                throw new _t.b(
                                  "plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",
                                  r,
                                  { plugin: o, requiredBy: i }
                                );
                              e(o);
                            });
                        const l = new i(r);
                        n._add(i, l), a.push(l), s();
                      });
                    })(i).catch((e) => {
                      throw (
                        (console.error(
                          Object(_t.a)(
                            "plugincollection-load: It was not possible to load the plugin."
                          ),
                          { plugin: i }
                        ),
                        e)
                      );
                    });
                })
              )
                .then(() => c(a, "init"))
                .then(() => c(a, "afterInit"))
                .then(() => a);
              function c(e, t) {
                return e.reduce(
                  (e, n) => (n[t] ? e.then(n[t].bind(n)) : e),
                  Promise.resolve()
                );
              }
              function u(e) {
                return "function" == typeof e ? e : n._availablePlugins.get(e);
              }
              function d(e) {
                return e.map((e) => u(e)).filter((e) => !!e);
              }
            }
            destroy() {
              const e = Array.from(this)
                .map(([, e]) => e)
                .filter((e) => "function" == typeof e.destroy)
                .map((e) => e.destroy());
              return Promise.all(e);
            }
            _add(e, t) {
              this._plugins.set(e, t);
              const n = e.pluginName;
              if (n) {
                if (this._plugins.has(n))
                  throw new _t.b(
                    "plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",
                    null,
                    {
                      pluginName: n,
                      plugin1: this._plugins.get(n).constructor,
                      plugin2: e,
                    }
                  );
                this._plugins.set(n, t);
              }
            }
          }
          Ct(ga, xt);
          class _a {
            constructor() {
              this._commands = new Map();
            }
            add(e, t) {
              this._commands.set(e, t);
            }
            get(e) {
              return this._commands.get(e);
            }
            execute(e, ...t) {
              const n = this.get(e);
              if (!n)
                throw new _t.b(
                  "commandcollection-command-not-found: Command does not exist.",
                  this,
                  { commandName: e }
                );
              n.execute(...t);
            }
            *names() {
              yield* this._commands.keys();
            }
            *commands() {
              yield* this._commands.values();
            }
            [Symbol.iterator]() {
              return this._commands[Symbol.iterator]();
            }
            destroy() {
              for (const e of this.commands()) e.destroy();
            }
          }
          window.CKEDITOR_TRANSLATIONS || (window.CKEDITOR_TRANSLATIONS = {});
          const va = ["ar", "fa", "he", "ku", "ug"];
          class ba {
            constructor(e = {}) {
              (this.uiLanguage = e.uiLanguage || "en"),
                (this.contentLanguage = e.contentLanguage || this.uiLanguage),
                (this.uiLanguageDirection = ya(this.uiLanguage)),
                (this.contentLanguageDirection = ya(this.contentLanguage)),
                (this.t = (...e) => this._t(...e));
            }
            get language() {
              return (
                console.warn(
                  "locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."
                ),
                this.uiLanguage
              );
            }
            _t(e, t) {
              let n = (function (e, t) {
                const n = Object.keys(window.CKEDITOR_TRANSLATIONS).length;
                return (
                  1 === n && (e = Object.keys(window.CKEDITOR_TRANSLATIONS)[0]),
                  0 !== n &&
                  (function (e, t) {
                    return (
                      e in window.CKEDITOR_TRANSLATIONS &&
                      t in window.CKEDITOR_TRANSLATIONS[e]
                    );
                  })(e, t)
                    ? window.CKEDITOR_TRANSLATIONS[e][t].replace(
                        / \[context: [^\]]+\]$/,
                        ""
                      )
                    : t.replace(/ \[context: [^\]]+\]$/, "")
                );
              })(this.uiLanguage, e);
              return (
                t &&
                  (n = n.replace(/%(\d+)/g, (e, n) =>
                    n < t.length ? t[n] : e
                  )),
                n
              );
            }
          }
          function ya(e) {
            return va.includes(e) ? "rtl" : "ltr";
          }
          class wa {
            constructor() {
              this._consumables = new Map();
            }
            add(e, t) {
              let n;
              e.is("text") || e.is("documentFragment")
                ? this._consumables.set(e, !0)
                : (this._consumables.has(e)
                    ? (n = this._consumables.get(e))
                    : ((n = new ka()), this._consumables.set(e, n)),
                  n.add(t));
            }
            test(e, t) {
              const n = this._consumables.get(e);
              return void 0 === n
                ? null
                : e.is("text") || e.is("documentFragment")
                ? n
                : n.test(t);
            }
            consume(e, t) {
              return (
                !!this.test(e, t) &&
                (e.is("text") || e.is("documentFragment")
                  ? this._consumables.set(e, !1)
                  : this._consumables.get(e).consume(t),
                !0)
              );
            }
            revert(e, t) {
              const n = this._consumables.get(e);
              void 0 !== n &&
                (e.is("text") || e.is("documentFragment")
                  ? this._consumables.set(e, !0)
                  : n.revert(t));
            }
            static consumablesFromElement(e) {
              const t = { name: !0, attributes: [], classes: [], styles: [] },
                n = e.getAttributeKeys();
              for (const e of n)
                "style" != e && "class" != e && t.attributes.push(e);
              const r = e.getClassNames();
              for (const e of r) t.classes.push(e);
              const o = e.getStyleNames();
              for (const e of o) t.styles.push(e);
              return t;
            }
            static createFrom(e, t) {
              if ((t || (t = new wa()), e.is("text"))) return t.add(e), t;
              e.is("element") && t.add(e, wa.consumablesFromElement(e)),
                e.is("documentFragment") && t.add(e);
              for (const n of e.getChildren()) t = wa.createFrom(n, t);
              return t;
            }
          }
          class ka {
            constructor() {
              (this._canConsumeName = null),
                (this._consumables = {
                  attributes: new Map(),
                  styles: new Map(),
                  classes: new Map(),
                });
            }
            add(e) {
              e.name && (this._canConsumeName = !0);
              for (const t in this._consumables) t in e && this._add(t, e[t]);
            }
            test(e) {
              if (e.name && !this._canConsumeName) return this._canConsumeName;
              for (const t in this._consumables)
                if (t in e) {
                  const n = this._test(t, e[t]);
                  if (!0 !== n) return n;
                }
              return !0;
            }
            consume(e) {
              e.name && (this._canConsumeName = !1);
              for (const t in this._consumables)
                t in e && this._consume(t, e[t]);
            }
            revert(e) {
              e.name && (this._canConsumeName = !0);
              for (const t in this._consumables)
                t in e && this._revert(t, e[t]);
            }
            _add(e, t) {
              const n = se(t) ? t : [t],
                r = this._consumables[e];
              for (const t of n) {
                if ("attributes" === e && ("class" === t || "style" === t))
                  throw new _t.b(
                    "viewconsumable-invalid-attribute: Classes and styles should be handled separately.",
                    this
                  );
                r.set(t, !0);
              }
            }
            _test(e, t) {
              const n = se(t) ? t : [t],
                r = this._consumables[e];
              for (const t of n)
                if ("attributes" !== e || ("class" !== t && "style" !== t)) {
                  const e = r.get(t);
                  if (void 0 === e) return null;
                  if (!e) return !1;
                } else {
                  const e = "class" == t ? "classes" : "styles",
                    n = this._test(e, [...this._consumables[e].keys()]);
                  if (!0 !== n) return n;
                }
              return !0;
            }
            _consume(e, t) {
              const n = se(t) ? t : [t],
                r = this._consumables[e];
              for (const t of n)
                if ("attributes" !== e || ("class" !== t && "style" !== t))
                  r.set(t, !1);
                else {
                  const e = "class" == t ? "classes" : "styles";
                  this._consume(e, [...this._consumables[e].keys()]);
                }
            }
            _revert(e, t) {
              const n = se(t) ? t : [t],
                r = this._consumables[e];
              for (const t of n)
                if ("attributes" !== e || ("class" !== t && "style" !== t))
                  !1 === r.get(t) && r.set(t, !0);
                else {
                  const e = "class" == t ? "classes" : "styles";
                  this._revert(e, [...this._consumables[e].keys()]);
                }
            }
          }
          class xa {
            constructor() {
              (this._sourceDefinitions = {}),
                (this._attributeProperties = {}),
                this.decorate("checkChild"),
                this.decorate("checkAttribute"),
                this.on(
                  "checkAttribute",
                  (e, t) => {
                    t[0] = new Ma(t[0]);
                  },
                  { priority: "highest" }
                ),
                this.on(
                  "checkChild",
                  (e, t) => {
                    (t[0] = new Ma(t[0])), (t[1] = this.getDefinition(t[1]));
                  },
                  { priority: "highest" }
                );
            }
            register(e, t) {
              if (this._sourceDefinitions[e])
                throw new _t.b(
                  "schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",
                  this,
                  { itemName: e }
                );
              (this._sourceDefinitions[e] = [Object.assign({}, t)]),
                this._clearCache();
            }
            extend(e, t) {
              if (!this._sourceDefinitions[e])
                throw new _t.b(
                  "schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",
                  this,
                  { itemName: e }
                );
              this._sourceDefinitions[e].push(Object.assign({}, t)),
                this._clearCache();
            }
            getDefinitions() {
              return (
                this._compiledDefinitions || this._compile(),
                this._compiledDefinitions
              );
            }
            getDefinition(e) {
              let t;
              return (
                (t =
                  "string" == typeof e
                    ? e
                    : e.is && (e.is("text") || e.is("textProxy"))
                    ? "$text"
                    : e.name),
                this.getDefinitions()[t]
              );
            }
            isRegistered(e) {
              return !!this.getDefinition(e);
            }
            isBlock(e) {
              const t = this.getDefinition(e);
              return !(!t || !t.isBlock);
            }
            isLimit(e) {
              const t = this.getDefinition(e);
              return !(!t || (!t.isLimit && !t.isObject));
            }
            isObject(e) {
              const t = this.getDefinition(e);
              return !(!t || !t.isObject);
            }
            isInline(e) {
              const t = this.getDefinition(e);
              return !(!t || !t.isInline);
            }
            checkChild(e, t) {
              return !!t && this._checkContextMatch(t, e);
            }
            checkAttribute(e, t) {
              const n = this.getDefinition(e.last);
              return !!n && n.allowAttributes.includes(t);
            }
            checkMerge(e, t = null) {
              if (e instanceof Ho) {
                const t = e.nodeBefore,
                  n = e.nodeAfter;
                if (!(t instanceof Yo))
                  throw new _t.b(
                    "schema-check-merge-no-element-before: The node before the merge position must be an element.",
                    this
                  );
                if (!(n instanceof Yo))
                  throw new _t.b(
                    "schema-check-merge-no-element-after: The node after the merge position must be an element.",
                    this
                  );
                return this.checkMerge(t, n);
              }
              for (const n of t.getChildren())
                if (!this.checkChild(e, n)) return !1;
              return !0;
            }
            addChildCheck(e) {
              this.on(
                "checkChild",
                (t, [n, r]) => {
                  if (!r) return;
                  const o = e(n, r);
                  "boolean" == typeof o && (t.stop(), (t.return = o));
                },
                { priority: "high" }
              );
            }
            addAttributeCheck(e) {
              this.on(
                "checkAttribute",
                (t, [n, r]) => {
                  const o = e(n, r);
                  "boolean" == typeof o && (t.stop(), (t.return = o));
                },
                { priority: "high" }
              );
            }
            setAttributeProperties(e, t) {
              this._attributeProperties[e] = Object.assign(
                this.getAttributeProperties(e),
                t
              );
            }
            getAttributeProperties(e) {
              return this._attributeProperties[e] || {};
            }
            getLimitElement(e) {
              let t;
              for (
                t =
                  e instanceof Ho
                    ? e.parent
                    : (e instanceof zo
                        ? [e]
                        : Array.from(e.getRanges())
                      ).reduce((e, t) => {
                        const n = t.getCommonAncestor();
                        return e
                          ? e.getCommonAncestor(n, { includeSelf: !0 })
                          : n;
                      }, null);
                !this.isLimit(t) && t.parent;

              )
                t = t.parent;
              return t;
            }
            checkAttributeInSelection(e, t) {
              if (e.isCollapsed) {
                const n = [
                  ...e.getFirstPosition().getAncestors(),
                  new Ao("", e.getAttributes()),
                ];
                return this.checkAttribute(n, t);
              }
              {
                const n = e.getRanges();
                for (const e of n)
                  for (const n of e)
                    if (this.checkAttribute(n.item, t)) return !0;
              }
              return !1;
            }
            *getValidRanges(e, t) {
              e = (function* (e) {
                for (const t of e) yield* t.getMinimalFlatRanges();
              })(e);
              for (const n of e) yield* this._getValidRangesForRange(n, t);
            }
            getNearestSelectionRange(e, t = "both") {
              if (this.checkChild(e, "$text")) return new zo(e);
              let n, r;
              ("both" != t && "backward" != t) ||
                (n = new jo({ startPosition: e, direction: "backward" })),
                ("both" != t && "forward" != t) ||
                  (r = new jo({ startPosition: e }));
              for (const e of (function* (e, t) {
                let n = !1;
                for (; !n; ) {
                  if (((n = !0), e)) {
                    const t = e.next();
                    t.done || ((n = !1), yield { walker: e, value: t.value });
                  }
                  if (t) {
                    const e = t.next();
                    e.done || ((n = !1), yield { walker: t, value: e.value });
                  }
                }
              })(n, r)) {
                const t = e.walker == n ? "elementEnd" : "elementStart",
                  r = e.value;
                if (r.type == t && this.isObject(r.item))
                  return zo._createOn(r.item);
                if (this.checkChild(r.nextPosition, "$text"))
                  return new zo(r.nextPosition);
              }
              return null;
            }
            findAllowedParent(e, t) {
              let n = e.parent;
              for (; n; ) {
                if (this.checkChild(n, t)) return n;
                if (this.isLimit(n)) return null;
                n = n.parent;
              }
              return null;
            }
            removeDisallowedAttributes(e, t) {
              for (const n of e) {
                for (const e of n.getAttributeKeys())
                  this.checkAttribute(n, e) || t.removeAttribute(e, n);
                n.is("element") &&
                  this.removeDisallowedAttributes(n.getChildren(), t);
              }
            }
            createContext(e) {
              return new Ma(e);
            }
            _clearCache() {
              this._compiledDefinitions = null;
            }
            _compile() {
              const e = {},
                t = this._sourceDefinitions,
                n = Object.keys(t);
              for (const r of n) e[r] = Ea(t[r], r);
              for (const t of n) Ta(e, t);
              for (const t of n) Sa(e, t);
              for (const t of n) Da(e, t), La(e, t);
              for (const t of n) Ca(e, t), Pa(e, t);
              this._compiledDefinitions = e;
            }
            _checkContextMatch(e, t, n = t.length - 1) {
              const r = t.getItem(n);
              if (e.allowIn.includes(r.name)) {
                if (0 == n) return !0;
                {
                  const e = this.getDefinition(r);
                  return this._checkContextMatch(e, t, n - 1);
                }
              }
              return !1;
            }
            *_getValidRangesForRange(e, t) {
              let n = e.start,
                r = e.start;
              for (const o of e.getItems({ shallow: !0 }))
                o.is("element") &&
                  (yield* this._getValidRangesForRange(zo._createIn(o), t)),
                  this.checkAttribute(o, t) ||
                    (n.isEqual(r) || (yield new zo(n, r)),
                    (n = Ho._createAfter(o))),
                  (r = Ho._createAfter(o));
              n.isEqual(r) || (yield new zo(n, r));
            }
          }
          Ct(xa, on);
          class Ma {
            constructor(e) {
              if (e instanceof Ma) return e;
              "string" == typeof e
                ? (e = [e])
                : Array.isArray(e) || (e = e.getAncestors({ includeSelf: !0 })),
                e[0] &&
                  "string" != typeof e[0] &&
                  e[0].is("documentFragment") &&
                  e.shift(),
                (this._items = e.map(Aa));
            }
            get length() {
              return this._items.length;
            }
            get last() {
              return this._items[this._items.length - 1];
            }
            [Symbol.iterator]() {
              return this._items[Symbol.iterator]();
            }
            push(e) {
              const t = new Ma([e]);
              return (t._items = [...this._items, ...t._items]), t;
            }
            getItem(e) {
              return this._items[e];
            }
            *getNames() {
              yield* this._items.map((e) => e.name);
            }
            endsWith(e) {
              return Array.from(this.getNames()).join(" ").endsWith(e);
            }
          }
          function Ea(e, t) {
            const n = {
              name: t,
              allowIn: [],
              allowContentOf: [],
              allowWhere: [],
              allowAttributes: [],
              allowAttributesOf: [],
              inheritTypesFrom: [],
            };
            return (
              (function (e, t) {
                for (const n of e) {
                  const e = Object.keys(n).filter((e) => e.startsWith("is"));
                  for (const r of e) t[r] = n[r];
                }
              })(e, n),
              Oa(e, n, "allowIn"),
              Oa(e, n, "allowContentOf"),
              Oa(e, n, "allowWhere"),
              Oa(e, n, "allowAttributes"),
              Oa(e, n, "allowAttributesOf"),
              Oa(e, n, "inheritTypesFrom"),
              (function (e, t) {
                for (const n of e) {
                  const e = n.inheritAllFrom;
                  e &&
                    (t.allowContentOf.push(e),
                    t.allowWhere.push(e),
                    t.allowAttributesOf.push(e),
                    t.inheritTypesFrom.push(e));
                }
              })(e, n),
              n
            );
          }
          function Ta(e, t) {
            for (const n of e[t].allowContentOf)
              e[n] &&
                Na(e, n).forEach((e) => {
                  e.allowIn.push(t);
                });
            delete e[t].allowContentOf;
          }
          function Sa(e, t) {
            for (const n of e[t].allowWhere) {
              const r = e[n];
              if (r) {
                const n = r.allowIn;
                e[t].allowIn.push(...n);
              }
            }
            delete e[t].allowWhere;
          }
          function Da(e, t) {
            for (const n of e[t].allowAttributesOf) {
              const r = e[n];
              if (r) {
                const n = r.allowAttributes;
                e[t].allowAttributes.push(...n);
              }
            }
            delete e[t].allowAttributesOf;
          }
          function La(e, t) {
            const n = e[t];
            for (const t of n.inheritTypesFrom) {
              const r = e[t];
              if (r) {
                const e = Object.keys(r).filter((e) => e.startsWith("is"));
                for (const t of e) t in n || (n[t] = r[t]);
              }
            }
            delete n.inheritTypesFrom;
          }
          function Ca(e, t) {
            const n = e[t],
              r = n.allowIn.filter((t) => e[t]);
            n.allowIn = Array.from(new Set(r));
          }
          function Pa(e, t) {
            const n = e[t];
            n.allowAttributes = Array.from(new Set(n.allowAttributes));
          }
          function Oa(e, t, n) {
            for (const r of e)
              "string" == typeof r[n]
                ? t[n].push(r[n])
                : Array.isArray(r[n]) && t[n].push(...r[n]);
          }
          function Na(e, t) {
            const n = e[t];
            return (function (e) {
              return Object.keys(e).map((t) => e[t]);
            })(e).filter((e) => e.allowIn.includes(n.name));
          }
          function Aa(e) {
            return "string" == typeof e
              ? { name: e, *getAttributeKeys() {}, getAttribute() {} }
              : {
                  name: e.is("element") ? e.name : "$text",
                  *getAttributeKeys() {
                    yield* e.getAttributeKeys();
                  },
                  getAttribute: (t) => e.getAttribute(t),
                };
          }
          class Ia {
            constructor(e = {}) {
              (this._splitParts = new Map()),
                (this._modelCursor = null),
                (this.conversionApi = Object.assign({}, e)),
                (this.conversionApi.convertItem = this._convertItem.bind(this)),
                (this.conversionApi.convertChildren = this._convertChildren.bind(
                  this
                )),
                (this.conversionApi.splitToAllowedParent = this._splitToAllowedParent.bind(
                  this
                )),
                (this.conversionApi.getSplitParts = this._getSplitParts.bind(
                  this
                ));
            }
            convert(e, t, n = ["$root"]) {
              this.fire("viewCleanup", e),
                (this._modelCursor = (function (e, t) {
                  let n;
                  for (const r of new Ma(e)) {
                    const e = {};
                    for (const t of r.getAttributeKeys())
                      e[t] = r.getAttribute(t);
                    const o = t.createElement(r.name, e);
                    n && t.append(o, n), (n = Ho._createAt(o, 0));
                  }
                  return n;
                })(n, t)),
                (this.conversionApi.writer = t),
                (this.conversionApi.consumable = wa.createFrom(e)),
                (this.conversionApi.store = {});
              const { modelRange: r } = this._convertItem(e, this._modelCursor),
                o = t.createDocumentFragment();
              if (r) {
                this._removeEmptyElements();
                for (const e of Array.from(
                  this._modelCursor.parent.getChildren()
                ))
                  t.append(e, o);
                o.markers = (function (e, t) {
                  const n = new Set(),
                    r = new Map(),
                    o = zo._createIn(e).getItems();
                  for (const e of o) "$marker" == e.name && n.add(e);
                  for (const e of n) {
                    const n = e.getAttribute("data-name"),
                      o = t.createPositionBefore(e);
                    r.has(n)
                      ? (r.get(n).end = o.clone())
                      : r.set(n, new zo(o.clone())),
                      t.remove(e);
                  }
                  return r;
                })(o, t);
              }
              return (
                (this._modelCursor = null),
                this._splitParts.clear(),
                (this.conversionApi.writer = null),
                (this.conversionApi.store = null),
                o
              );
            }
            _convertItem(e, t) {
              const n = Object.assign({
                viewItem: e,
                modelCursor: t,
                modelRange: null,
              });
              if (
                (e.is("element")
                  ? this.fire("element:" + e.name, n, this.conversionApi)
                  : e.is("text")
                  ? this.fire("text", n, this.conversionApi)
                  : this.fire("documentFragment", n, this.conversionApi),
                n.modelRange && !(n.modelRange instanceof zo))
              )
                throw new _t.b(
                  "view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",
                  this
                );
              return { modelRange: n.modelRange, modelCursor: n.modelCursor };
            }
            _convertChildren(e, t) {
              const n = new zo(t);
              let r = t;
              for (const t of Array.from(e.getChildren())) {
                const e = this._convertItem(t, r);
                e.modelRange instanceof zo &&
                  ((n.end = e.modelRange.end), (r = e.modelCursor));
              }
              return { modelRange: n, modelCursor: r };
            }
            _splitToAllowedParent(e, t) {
              const n = this.conversionApi.schema.findAllowedParent(t, e);
              if (!n) return null;
              if (n === t.parent) return { position: t };
              if (this._modelCursor.parent.getAncestors().includes(n))
                return null;
              const r = this.conversionApi.writer.split(t, n),
                o = [];
              for (const e of r.range.getWalker())
                if ("elementEnd" == e.type) o.push(e.item);
                else {
                  const t = o.pop(),
                    n = e.item;
                  this._registerSplitPair(t, n);
                }
              return { position: r.position, cursorParent: r.range.end.parent };
            }
            _registerSplitPair(e, t) {
              this._splitParts.has(e) || this._splitParts.set(e, [e]);
              const n = this._splitParts.get(e);
              this._splitParts.set(t, n), n.push(t);
            }
            _getSplitParts(e) {
              return this._splitParts.has(e) ? this._splitParts.get(e) : [e];
            }
            _removeEmptyElements() {
              let e = !1;
              for (const t of this._splitParts.keys())
                t.isEmpty &&
                  (this.conversionApi.writer.remove(t),
                  this._splitParts.delete(t),
                  (e = !0));
              e && this._removeEmptyElements();
            }
          }
          Ct(Ia, xt);
          class Ra {
            constructor(e, t) {
              (this.model = e),
                (this.processor = t),
                (this.mapper = new Bo()),
                (this.downcastDispatcher = new Wo({ mapper: this.mapper })),
                this.downcastDispatcher.on(
                  "insert:$text",
                  (e, t, n) => {
                    if (!n.consumable.consume(t.item, "insert")) return;
                    const r = n.writer,
                      o = n.mapper.toViewPosition(t.range.start),
                      a = r.createText(t.item.data);
                    r.insert(o, a);
                  },
                  { priority: "lowest" }
                ),
                (this.upcastDispatcher = new Ia({ schema: e.schema })),
                this.upcastDispatcher.on(
                  "text",
                  (e, t, n) => {
                    if (
                      n.schema.checkChild(t.modelCursor, "$text") &&
                      n.consumable.consume(t.viewItem)
                    ) {
                      const e = n.writer.createText(t.viewItem.data);
                      n.writer.insert(e, t.modelCursor),
                        (t.modelRange = zo._createFromPositionAndShift(
                          t.modelCursor,
                          e.offsetSize
                        )),
                        (t.modelCursor = t.modelRange.end);
                    }
                  },
                  { priority: "lowest" }
                ),
                this.upcastDispatcher.on(
                  "element",
                  (e, t, n) => {
                    if (
                      !t.modelRange &&
                      n.consumable.consume(t.viewItem, { name: !0 })
                    ) {
                      const {
                        modelRange: e,
                        modelCursor: r,
                      } = n.convertChildren(t.viewItem, t.modelCursor);
                      (t.modelRange = e), (t.modelCursor = r);
                    }
                  },
                  { priority: "lowest" }
                ),
                this.upcastDispatcher.on(
                  "documentFragment",
                  (e, t, n) => {
                    if (
                      !t.modelRange &&
                      n.consumable.consume(t.viewItem, { name: !0 })
                    ) {
                      const {
                        modelRange: e,
                        modelCursor: r,
                      } = n.convertChildren(t.viewItem, t.modelCursor);
                      (t.modelRange = e), (t.modelCursor = r);
                    }
                  },
                  { priority: "lowest" }
                ),
                this.decorate("init"),
                this.on(
                  "init",
                  () => {
                    this.fire("ready");
                  },
                  { priority: "lowest" }
                );
            }
            get(e) {
              const { rootName: t = "main", trim: n = "empty" } = e || {};
              if (!this._checkIfRootsExists([t]))
                throw new _t.b(
                  "datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",
                  this
                );
              const r = this.model.document.getRoot(t);
              return "empty" !== n ||
                this.model.hasContent(r, { ignoreWhitespaces: !0 })
                ? this.stringify(r)
                : "";
            }
            stringify(e) {
              const t = this.toView(e);
              return this.processor.toData(t);
            }
            toView(e) {
              this.mapper.clearBindings();
              const t = zo._createIn(e),
                n = new Un(),
                r = new Vn(new xn());
              if (
                (this.mapper.bindElements(e, n),
                this.downcastDispatcher.convertInsert(t, r),
                !e.is("documentFragment"))
              ) {
                const t = (function (e) {
                  const t = [],
                    n = e.root.document;
                  if (!n) return [];
                  const r = zo._createIn(e);
                  for (const e of n.model.markers) {
                    const n = r.getIntersection(e.getRange());
                    n && t.push([e.name, n]);
                  }
                  return t;
                })(e);
                for (const [e, n] of t)
                  this.downcastDispatcher.convertMarkerAdd(e, n, r);
              }
              return n;
            }
            init(e) {
              if (this.model.document.version)
                throw new _t.b(
                  "datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",
                  this
                );
              let t = {};
              if (
                ("string" == typeof e ? (t.main = e) : (t = e),
                !this._checkIfRootsExists(Object.keys(t)))
              )
                throw new _t.b(
                  "datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",
                  this
                );
              return (
                this.model.enqueueChange("transparent", (e) => {
                  for (const n of Object.keys(t)) {
                    const r = this.model.document.getRoot(n);
                    e.insert(this.parse(t[n], r), r, 0);
                  }
                }),
                Promise.resolve()
              );
            }
            set(e) {
              let t = {};
              if (
                ("string" == typeof e ? (t.main = e) : (t = e),
                !this._checkIfRootsExists(Object.keys(t)))
              )
                throw new _t.b(
                  "datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",
                  this
                );
              this.model.enqueueChange("transparent", (e) => {
                e.setSelection(null),
                  e.removeSelectionAttribute(
                    this.model.document.selection.getAttributeKeys()
                  );
                for (const n of Object.keys(t)) {
                  const r = this.model.document.getRoot(n);
                  e.remove(e.createRangeIn(r)),
                    e.insert(this.parse(t[n], r), r, 0);
                }
              });
            }
            parse(e, t = "$root") {
              const n = this.processor.toView(e);
              return this.toModel(n, t);
            }
            toModel(e, t = "$root") {
              return this.model.change((n) =>
                this.upcastDispatcher.convert(e, n, t)
              );
            }
            destroy() {
              this.stopListening();
            }
            _checkIfRootsExists(e) {
              for (const t of e)
                if (!this.model.document.getRootNames().includes(t)) return !1;
              return !0;
            }
          }
          Ct(Ra, on);
          class Ya {
            constructor(e, t) {
              (this._helpers = new Map()),
                (this._downcast = Array.isArray(e) ? e : [e]),
                this._createConversionHelpers({
                  name: "downcast",
                  dispatchers: this._downcast,
                  isDowncast: !0,
                }),
                (this._upcast = Array.isArray(t) ? t : [t]),
                this._createConversionHelpers({
                  name: "upcast",
                  dispatchers: this._upcast,
                  isDowncast: !1,
                });
            }
            addAlias(e, t) {
              const n = this._downcast.includes(t);
              if (!this._upcast.includes(t) && !n)
                throw new _t.b(
                  "conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",
                  this
                );
              this._createConversionHelpers({
                name: e,
                dispatchers: [t],
                isDowncast: n,
              });
            }
            for(e) {
              if (!this._helpers.has(e))
                throw new _t.b(
                  "conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",
                  this
                );
              return this._helpers.get(e);
            }
            elementToElement(e) {
              this.for("downcast").elementToElement(e);
              for (const { model: t, view: n } of ja(e))
                this.for("upcast").elementToElement({
                  model: t,
                  view: n,
                  converterPriority: e.converterPriority,
                });
            }
            attributeToElement(e) {
              this.for("downcast").attributeToElement(e);
              for (const { model: t, view: n } of ja(e))
                this.for("upcast").elementToAttribute({
                  view: n,
                  model: t,
                  converterPriority: e.converterPriority,
                });
            }
            attributeToAttribute(e) {
              this.for("downcast").attributeToAttribute(e);
              for (const { model: t, view: n } of ja(e))
                this.for("upcast").attributeToAttribute({ view: n, model: t });
            }
            _createConversionHelpers({
              name: e,
              dispatchers: t,
              isDowncast: n,
            }) {
              if (this._helpers.has(e))
                throw new _t.b(
                  "conversion-group-exists: Trying to register a group name that has already been registered.",
                  this
                );
              const r = n ? new oa(t) : new ua(t);
              this._helpers.set(e, r);
            }
          }
          function* ja(e) {
            if (e.model.values)
              for (const t of e.model.values)
                yield* Fa(
                  { key: e.model.key, value: t },
                  e.view[t],
                  e.upcastAlso ? e.upcastAlso[t] : void 0
                );
            else yield* Fa(e.model, e.view, e.upcastAlso);
          }
          function* Fa(e, t, n) {
            if ((yield { model: e, view: t }, n)) {
              n = Array.isArray(n) ? n : [n];
              for (const t of n) yield { model: e, view: t };
            }
          }
          class Ha {
            constructor(e = "default") {
              (this.operations = []), (this.type = e);
            }
            get baseVersion() {
              for (const e of this.operations)
                if (null !== e.baseVersion) return e.baseVersion;
              return null;
            }
            addOperation(e) {
              return (e.batch = this), this.operations.push(e), e;
            }
          }
          class za {
            constructor(e) {
              (this.baseVersion = e),
                (this.isDocumentOperation = null !== this.baseVersion),
                (this.batch = null);
            }
            _validate() {}
            toJSON() {
              const e = Object.assign({}, this);
              return (
                (e.__className = this.constructor.className),
                delete e.batch,
                delete e.isDocumentOperation,
                e
              );
            }
            static get className() {
              return "Operation";
            }
            static fromJSON(e) {
              return new this(e.baseVersion);
            }
          }
          class Ba {
            constructor(e) {
              (this.markers = new Map()),
                (this._children = new Ro()),
                e && this._insertChild(0, e);
            }
            [Symbol.iterator]() {
              return this.getChildren();
            }
            get childCount() {
              return this._children.length;
            }
            get maxOffset() {
              return this._children.maxOffset;
            }
            get isEmpty() {
              return 0 === this.childCount;
            }
            get root() {
              return this;
            }
            get parent() {
              return null;
            }
            is(e) {
              return "documentFragment" == e || "model:documentFragment" == e;
            }
            getChild(e) {
              return this._children.getNode(e);
            }
            getChildren() {
              return this._children[Symbol.iterator]();
            }
            getChildIndex(e) {
              return this._children.getNodeIndex(e);
            }
            getChildStartOffset(e) {
              return this._children.getNodeStartOffset(e);
            }
            getPath() {
              return [];
            }
            getNodeByPath(e) {
              let t = this;
              for (const n of e) t = t.getChild(t.offsetToIndex(n));
              return t;
            }
            offsetToIndex(e) {
              return this._children.offsetToIndex(e);
            }
            toJSON() {
              const e = [];
              for (const t of this._children) e.push(t.toJSON());
              return e;
            }
            static fromJSON(e) {
              const t = [];
              for (const n of e)
                n.name ? t.push(Yo.fromJSON(n)) : t.push(Ao.fromJSON(n));
              return new Ba(t);
            }
            _appendChild(e) {
              this._insertChild(this.childCount, e);
            }
            _insertChild(e, t) {
              const n = (function (e) {
                return "string" == typeof e
                  ? [new Ao(e)]
                  : (Yt(e) || (e = [e]),
                    Array.from(e).map((e) =>
                      "string" == typeof e
                        ? new Ao(e)
                        : e instanceof Io
                        ? new Ao(e.data, e.getAttributes())
                        : e
                    ));
              })(t);
              for (const e of n)
                null !== e.parent && e._remove(), (e.parent = this);
              this._children._insertNodes(e, n);
            }
            _removeChildren(e, t = 1) {
              const n = this._children._removeNodes(e, t);
              for (const e of n) e.parent = null;
              return n;
            }
          }
          function Ua(e, t) {
            const n = (t = qa(t)).reduce((e, t) => e + t.offsetSize, 0),
              r = e.parent;
            Ja(e);
            const o = e.index;
            return (
              r._insertChild(o, t),
              Ga(r, o + t.length),
              Ga(r, o),
              new zo(e, e.getShiftedBy(n))
            );
          }
          function Va(e) {
            if (!e.isFlat)
              throw new _t.b(
                "operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",
                this
              );
            const t = e.start.parent;
            Ja(e.start), Ja(e.end);
            const n = t._removeChildren(
              e.start.index,
              e.end.index - e.start.index
            );
            return Ga(t, e.start.index), n;
          }
          function Wa(e, t) {
            if (!e.isFlat)
              throw new _t.b(
                "operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",
                this
              );
            const n = Va(e);
            return Ua(
              (t = t._getTransformedByDeletion(
                e.start,
                e.end.offset - e.start.offset
              )),
              n
            );
          }
          function qa(e) {
            const t = [];
            e instanceof Array || (e = [e]);
            for (let n = 0; n < e.length; n++)
              if ("string" == typeof e[n]) t.push(new Ao(e[n]));
              else if (e[n] instanceof Io)
                t.push(new Ao(e[n].data, e[n].getAttributes()));
              else if (e[n] instanceof Ba || e[n] instanceof Ro)
                for (const r of e[n]) t.push(r);
              else e[n] instanceof No && t.push(e[n]);
            for (let e = 1; e < t.length; e++) {
              const n = t[e],
                r = t[e - 1];
              n instanceof Ao &&
                r instanceof Ao &&
                Ka(n, r) &&
                (t.splice(e - 1, 2, new Ao(r.data + n.data, r.getAttributes())),
                e--);
            }
            return t;
          }
          function Ga(e, t) {
            const n = e.getChild(t - 1),
              r = e.getChild(t);
            if (n && r && n.is("text") && r.is("text") && Ka(n, r)) {
              const o = new Ao(n.data + r.data, n.getAttributes());
              e._removeChildren(t - 1, 2), e._insertChild(t - 1, o);
            }
          }
          function Ja(e) {
            const t = e.textNode,
              n = e.parent;
            if (t) {
              const r = e.offset - t.startOffset,
                o = t.index;
              n._removeChildren(o, 1);
              const a = new Ao(t.data.substr(0, r), t.getAttributes()),
                i = new Ao(t.data.substr(r), t.getAttributes());
              n._insertChild(o, [a, i]);
            }
          }
          function Ka(e, t) {
            const n = e.getAttributes(),
              r = t.getAttributes();
            for (const e of n) {
              if (e[1] !== t.getAttribute(e[0])) return !1;
              r.next();
            }
            return r.next().done;
          }
          var Qa = function (e, t) {
            return qr(e, t);
          };
          class Xa extends za {
            constructor(e, t, n, r, o) {
              super(o),
                (this.range = e.clone()),
                (this.key = t),
                (this.oldValue = void 0 === n ? null : n),
                (this.newValue = void 0 === r ? null : r);
            }
            get type() {
              return null === this.oldValue
                ? "addAttribute"
                : null === this.newValue
                ? "removeAttribute"
                : "changeAttribute";
            }
            clone() {
              return new Xa(
                this.range,
                this.key,
                this.oldValue,
                this.newValue,
                this.baseVersion
              );
            }
            getReversed() {
              return new Xa(
                this.range,
                this.key,
                this.newValue,
                this.oldValue,
                this.baseVersion + 1
              );
            }
            toJSON() {
              const e = super.toJSON();
              return (e.range = this.range.toJSON()), e;
            }
            _validate() {
              if (!this.range.isFlat)
                throw new _t.b(
                  "attribute-operation-range-not-flat: The range to change is not flat.",
                  this
                );
              for (const e of this.range.getItems({ shallow: !0 })) {
                if (
                  null !== this.oldValue &&
                  !Qa(e.getAttribute(this.key), this.oldValue)
                )
                  throw new _t.b(
                    "attribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",
                    this,
                    { item: e, key: this.key, value: this.oldValue }
                  );
                if (
                  null === this.oldValue &&
                  null !== this.newValue &&
                  e.hasAttribute(this.key)
                )
                  throw new _t.b(
                    "attribute-operation-attribute-exists: The attribute with given key already exists.",
                    this,
                    { node: e, key: this.key }
                  );
              }
            }
            _execute() {
              Qa(this.oldValue, this.newValue) ||
                (function (e, t, n) {
                  Ja(e.start), Ja(e.end);
                  for (const r of e.getItems({ shallow: !0 })) {
                    const e = r.is("textProxy") ? r.textNode : r;
                    null !== n ? e._setAttribute(t, n) : e._removeAttribute(t),
                      Ga(e.parent, e.index);
                  }
                  Ga(e.end.parent, e.end.index);
                })(this.range, this.key, this.newValue);
            }
            static get className() {
              return "AttributeOperation";
            }
            static fromJSON(e, t) {
              return new Xa(
                zo.fromJSON(e.range, t),
                e.key,
                e.oldValue,
                e.newValue,
                e.baseVersion
              );
            }
          }
          class $a extends za {
            constructor(e, t) {
              super(null),
                (this.sourcePosition = e.clone()),
                (this.howMany = t);
            }
            get type() {
              return "detach";
            }
            toJSON() {
              const e = super.toJSON();
              return (e.sourcePosition = this.sourcePosition.toJSON()), e;
            }
            _validate() {
              if (this.sourcePosition.root.document)
                throw new _t.b(
                  "detach-operation-on-document-node: Cannot detach document node.",
                  this
                );
            }
            _execute() {
              Va(
                zo._createFromPositionAndShift(
                  this.sourcePosition,
                  this.howMany
                )
              );
            }
            static get className() {
              return "DetachOperation";
            }
          }
          class Za extends za {
            constructor(e, t, n, r) {
              super(r),
                (this.sourcePosition = e.clone()),
                (this.sourcePosition.stickiness = "toNext"),
                (this.howMany = t),
                (this.targetPosition = n.clone()),
                (this.targetPosition.stickiness = "toNone");
            }
            get type() {
              return "$graveyard" == this.targetPosition.root.rootName
                ? "remove"
                : "$graveyard" == this.sourcePosition.root.rootName
                ? "reinsert"
                : "move";
            }
            clone() {
              return new this.constructor(
                this.sourcePosition,
                this.howMany,
                this.targetPosition,
                this.baseVersion
              );
            }
            getMovedRangeStart() {
              return this.targetPosition._getTransformedByDeletion(
                this.sourcePosition,
                this.howMany
              );
            }
            getReversed() {
              const e = this.sourcePosition._getTransformedByInsertion(
                this.targetPosition,
                this.howMany
              );
              return new this.constructor(
                this.getMovedRangeStart(),
                this.howMany,
                e,
                this.baseVersion + 1
              );
            }
            _validate() {
              const e = this.sourcePosition.parent,
                t = this.targetPosition.parent,
                n = this.sourcePosition.offset,
                r = this.targetPosition.offset;
              if (n + this.howMany > e.maxOffset)
                throw new _t.b(
                  "move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",
                  this
                );
              if (e === t && n < r && r < n + this.howMany)
                throw new _t.b(
                  "move-operation-range-into-itself: Trying to move a range of nodes to the inside of that range.",
                  this
                );
              if (
                this.sourcePosition.root == this.targetPosition.root &&
                "prefix" ==
                  Pt(
                    this.sourcePosition.getParentPath(),
                    this.targetPosition.getParentPath()
                  )
              ) {
                const e = this.sourcePosition.path.length - 1;
                if (
                  this.targetPosition.path[e] >= n &&
                  this.targetPosition.path[e] < n + this.howMany
                )
                  throw new _t.b(
                    "move-operation-node-into-itself: Trying to move a range of nodes into one of nodes from that range.",
                    this
                  );
              }
            }
            _execute() {
              Wa(
                zo._createFromPositionAndShift(
                  this.sourcePosition,
                  this.howMany
                ),
                this.targetPosition
              );
            }
            toJSON() {
              const e = super.toJSON();
              return (
                (e.sourcePosition = this.sourcePosition.toJSON()),
                (e.targetPosition = this.targetPosition.toJSON()),
                e
              );
            }
            static get className() {
              return "MoveOperation";
            }
            static fromJSON(e, t) {
              const n = Ho.fromJSON(e.sourcePosition, t),
                r = Ho.fromJSON(e.targetPosition, t);
              return new this(n, e.howMany, r, e.baseVersion);
            }
          }
          class ei extends za {
            constructor(e, t, n) {
              super(n),
                (this.position = e.clone()),
                (this.position.stickiness = "toNone"),
                (this.nodes = new Ro(qa(t))),
                (this.shouldReceiveAttributes = !1);
            }
            get type() {
              return "insert";
            }
            get howMany() {
              return this.nodes.maxOffset;
            }
            clone() {
              const e = new Ro([...this.nodes].map((e) => e._clone(!0))),
                t = new ei(this.position, e, this.baseVersion);
              return (
                (t.shouldReceiveAttributes = this.shouldReceiveAttributes), t
              );
            }
            getReversed() {
              const e = this.position.root.document.graveyard,
                t = new Ho(e, [0]);
              return new Za(
                this.position,
                this.nodes.maxOffset,
                t,
                this.baseVersion + 1
              );
            }
            _validate() {
              const e = this.position.parent;
              if (!e || e.maxOffset < this.position.offset)
                throw new _t.b(
                  "insert-operation-position-invalid: Insertion position is invalid.",
                  this
                );
            }
            _execute() {
              const e = this.nodes;
              (this.nodes = new Ro([...e].map((e) => e._clone(!0)))),
                Ua(this.position, e);
            }
            toJSON() {
              const e = super.toJSON();
              return (
                (e.position = this.position.toJSON()),
                (e.nodes = this.nodes.toJSON()),
                e
              );
            }
            static get className() {
              return "InsertOperation";
            }
            static fromJSON(e, t) {
              const n = [];
              for (const t of e.nodes)
                t.name ? n.push(Yo.fromJSON(t)) : n.push(Ao.fromJSON(t));
              const r = new ei(Ho.fromJSON(e.position, t), n, e.baseVersion);
              return (r.shouldReceiveAttributes = e.shouldReceiveAttributes), r;
            }
          }
          class ti extends za {
            constructor(e, t, n, r, o, a) {
              super(a),
                (this.name = e),
                (this.oldRange = t ? t.clone() : null),
                (this.newRange = n ? n.clone() : null),
                (this.affectsData = o),
                (this._markers = r);
            }
            get type() {
              return "marker";
            }
            clone() {
              return new ti(
                this.name,
                this.oldRange,
                this.newRange,
                this._markers,
                this.affectsData,
                this.baseVersion
              );
            }
            getReversed() {
              return new ti(
                this.name,
                this.newRange,
                this.oldRange,
                this._markers,
                this.affectsData,
                this.baseVersion + 1
              );
            }
            _execute() {
              const e = this.newRange ? "_set" : "_remove";
              this._markers[e](this.name, this.newRange, !0, this.affectsData);
            }
            toJSON() {
              const e = super.toJSON();
              return (
                this.oldRange && (e.oldRange = this.oldRange.toJSON()),
                this.newRange && (e.newRange = this.newRange.toJSON()),
                delete e._markers,
                e
              );
            }
            static get className() {
              return "MarkerOperation";
            }
            static fromJSON(e, t) {
              return new ti(
                e.name,
                e.oldRange ? zo.fromJSON(e.oldRange, t) : null,
                e.newRange ? zo.fromJSON(e.newRange, t) : null,
                t.model.markers,
                e.affectsData,
                e.baseVersion
              );
            }
          }
          class ni extends za {
            constructor(e, t, n, r) {
              super(r),
                (this.position = e),
                (this.position.stickiness = "toNext"),
                (this.oldName = t),
                (this.newName = n);
            }
            get type() {
              return "rename";
            }
            clone() {
              return new ni(
                this.position.clone(),
                this.oldName,
                this.newName,
                this.baseVersion
              );
            }
            getReversed() {
              return new ni(
                this.position.clone(),
                this.newName,
                this.oldName,
                this.baseVersion + 1
              );
            }
            _validate() {
              const e = this.position.nodeAfter;
              if (!(e instanceof Yo))
                throw new _t.b(
                  "rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",
                  this
                );
              if (e.name !== this.oldName)
                throw new _t.b(
                  "rename-operation-wrong-name: Element to change has different name than operation's old name.",
                  this
                );
            }
            _execute() {
              this.position.nodeAfter.name = this.newName;
            }
            toJSON() {
              const e = super.toJSON();
              return (e.position = this.position.toJSON()), e;
            }
            static get className() {
              return "RenameOperation";
            }
            static fromJSON(e, t) {
              return new ni(
                Ho.fromJSON(e.position, t),
                e.oldName,
                e.newName,
                e.baseVersion
              );
            }
          }
          class ri extends za {
            constructor(e, t, n, r, o) {
              super(o),
                (this.root = e),
                (this.key = t),
                (this.oldValue = n),
                (this.newValue = r);
            }
            get type() {
              return null === this.oldValue
                ? "addRootAttribute"
                : null === this.newValue
                ? "removeRootAttribute"
                : "changeRootAttribute";
            }
            clone() {
              return new ri(
                this.root,
                this.key,
                this.oldValue,
                this.newValue,
                this.baseVersion
              );
            }
            getReversed() {
              return new ri(
                this.root,
                this.key,
                this.newValue,
                this.oldValue,
                this.baseVersion + 1
              );
            }
            _validate() {
              if (
                this.root != this.root.root ||
                this.root.is("documentFragment")
              )
                throw new _t.b(
                  "rootattribute-operation-not-a-root: The element to change is not a root element.",
                  this,
                  { root: this.root, key: this.key }
                );
              if (
                null !== this.oldValue &&
                this.root.getAttribute(this.key) !== this.oldValue
              )
                throw new _t.b(
                  "rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",
                  this,
                  { root: this.root, key: this.key }
                );
              if (
                null === this.oldValue &&
                null !== this.newValue &&
                this.root.hasAttribute(this.key)
              )
                throw new _t.b(
                  "rootattribute-operation-attribute-exists: The attribute with given key already exists.",
                  this,
                  { root: this.root, key: this.key }
                );
            }
            _execute() {
              null !== this.newValue
                ? this.root._setAttribute(this.key, this.newValue)
                : this.root._removeAttribute(this.key);
            }
            toJSON() {
              const e = super.toJSON();
              return (e.root = this.root.toJSON()), e;
            }
            static get className() {
              return "RootAttributeOperation";
            }
            static fromJSON(e, t) {
              if (!t.getRoot(e.root))
                throw new _t.b(
                  "rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",
                  this,
                  { rootName: e.root }
                );
              return new ri(
                t.getRoot(e.root),
                e.key,
                e.oldValue,
                e.newValue,
                e.baseVersion
              );
            }
          }
          class oi extends za {
            constructor(e, t, n, r, o) {
              super(o),
                (this.sourcePosition = e.clone()),
                (this.sourcePosition.stickiness = "toPrevious"),
                (this.howMany = t),
                (this.targetPosition = n.clone()),
                (this.targetPosition.stickiness = "toNext"),
                (this.graveyardPosition = r.clone());
            }
            get type() {
              return "merge";
            }
            get deletionPosition() {
              return new Ho(
                this.sourcePosition.root,
                this.sourcePosition.path.slice(0, -1)
              );
            }
            get movedRange() {
              const e = this.sourcePosition.getShiftedBy(
                Number.POSITIVE_INFINITY
              );
              return new zo(this.sourcePosition, e);
            }
            clone() {
              return new this.constructor(
                this.sourcePosition,
                this.howMany,
                this.targetPosition,
                this.graveyardPosition,
                this.baseVersion
              );
            }
            getReversed() {
              const e = this.targetPosition._getTransformedByMergeOperation(
                  this
                ),
                t = this.sourcePosition.path.slice(0, -1),
                n = new Ho(
                  this.sourcePosition.root,
                  t
                )._getTransformedByMergeOperation(this),
                r = new ai(
                  e,
                  this.howMany,
                  this.graveyardPosition,
                  this.baseVersion + 1
                );
              return (r.insertionPosition = n), r;
            }
            _validate() {
              const e = this.sourcePosition.parent,
                t = this.targetPosition.parent;
              if (!e.parent)
                throw new _t.b(
                  "merge-operation-source-position-invalid: Merge source position is invalid.",
                  this
                );
              if (!t.parent)
                throw new _t.b(
                  "merge-operation-target-position-invalid: Merge target position is invalid.",
                  this
                );
              if (this.howMany != e.maxOffset)
                throw new _t.b(
                  "merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",
                  this
                );
            }
            _execute() {
              const e = this.sourcePosition.parent;
              Wa(zo._createIn(e), this.targetPosition),
                Wa(zo._createOn(e), this.graveyardPosition);
            }
            toJSON() {
              const e = super.toJSON();
              return (
                (e.sourcePosition = e.sourcePosition.toJSON()),
                (e.targetPosition = e.targetPosition.toJSON()),
                (e.graveyardPosition = e.graveyardPosition.toJSON()),
                e
              );
            }
            static get className() {
              return "MergeOperation";
            }
            static fromJSON(e, t) {
              const n = Ho.fromJSON(e.sourcePosition, t),
                r = Ho.fromJSON(e.targetPosition, t),
                o = Ho.fromJSON(e.graveyardPosition, t);
              return new this(n, e.howMany, r, o, e.baseVersion);
            }
          }
          class ai extends za {
            constructor(e, t, n, r) {
              super(r),
                (this.splitPosition = e.clone()),
                (this.splitPosition.stickiness = "toNext"),
                (this.howMany = t),
                (this.insertionPosition = ai.getInsertionPosition(e)),
                (this.insertionPosition.stickiness = "toNone"),
                (this.graveyardPosition = n ? n.clone() : null),
                this.graveyardPosition &&
                  (this.graveyardPosition.stickiness = "toNext");
            }
            get type() {
              return "split";
            }
            get moveTargetPosition() {
              const e = this.insertionPosition.path.slice();
              return e.push(0), new Ho(this.insertionPosition.root, e);
            }
            get movedRange() {
              const e = this.splitPosition.getShiftedBy(
                Number.POSITIVE_INFINITY
              );
              return new zo(this.splitPosition, e);
            }
            clone() {
              const e = new this.constructor(
                this.splitPosition,
                this.howMany,
                this.graveyardPosition,
                this.baseVersion
              );
              return (e.insertionPosition = this.insertionPosition), e;
            }
            getReversed() {
              const e = this.splitPosition.root.document.graveyard,
                t = new Ho(e, [0]);
              return new oi(
                this.moveTargetPosition,
                this.howMany,
                this.splitPosition,
                t,
                this.baseVersion + 1
              );
            }
            _validate() {
              const e = this.splitPosition.parent,
                t = this.splitPosition.offset;
              if (!e || e.maxOffset < t)
                throw new _t.b(
                  "split-operation-position-invalid: Split position is invalid.",
                  this
                );
              if (!e.parent)
                throw new _t.b(
                  "split-operation-split-in-root: Cannot split root element.",
                  this
                );
              if (this.howMany != e.maxOffset - this.splitPosition.offset)
                throw new _t.b(
                  "split-operation-how-many-invalid: Split operation specifies wrong number of nodes to move.",
                  this
                );
              if (this.graveyardPosition && !this.graveyardPosition.nodeAfter)
                throw new _t.b(
                  "split-operation-graveyard-position-invalid: Graveyard position invalid.",
                  this
                );
            }
            _execute() {
              const e = this.splitPosition.parent;
              if (this.graveyardPosition)
                Wa(
                  zo._createFromPositionAndShift(this.graveyardPosition, 1),
                  this.insertionPosition
                );
              else {
                const t = e._clone();
                Ua(this.insertionPosition, t);
              }
              Wa(
                new zo(
                  Ho._createAt(e, this.splitPosition.offset),
                  Ho._createAt(e, e.maxOffset)
                ),
                this.moveTargetPosition
              );
            }
            toJSON() {
              const e = super.toJSON();
              return (
                (e.splitPosition = this.splitPosition.toJSON()),
                (e.insertionPosition = this.insertionPosition.toJSON()),
                this.graveyardPosition &&
                  (e.graveyardPosition = this.graveyardPosition.toJSON()),
                e
              );
            }
            static get className() {
              return "SplitOperation";
            }
            static getInsertionPosition(e) {
              const t = e.path.slice(0, -1);
              return t[t.length - 1]++, new Ho(e.root, t);
            }
            static fromJSON(e, t) {
              const n = Ho.fromJSON(e.splitPosition, t),
                r = Ho.fromJSON(e.insertionPosition, t),
                o = e.graveyardPosition
                  ? Ho.fromJSON(e.graveyardPosition, t)
                  : null,
                a = new this(n, e.howMany, o, e.baseVersion);
              return (a.insertionPosition = r), a;
            }
          }
          class ii extends Yo {
            constructor(e, t, n = "main") {
              super(t), (this._doc = e), (this.rootName = n);
            }
            get document() {
              return this._doc;
            }
            is(e, t) {
              const n = e.replace("model:", "");
              return t
                ? ("rootElement" == n && t == this.name) || super.is(e, t)
                : "rootElement" == n || super.is(e);
            }
            toJSON() {
              return this.rootName;
            }
          }
          class si {
            constructor(e, t) {
              (this.model = e), (this.batch = t);
            }
            createText(e, t) {
              return new Ao(e, t);
            }
            createElement(e, t) {
              return new Yo(e, t);
            }
            createDocumentFragment() {
              return new Ba();
            }
            insert(e, t, n = 0) {
              if (
                (this._assertWriterUsedCorrectly(),
                e instanceof Ao && "" == e.data)
              )
                return;
              const r = Ho._createAt(t, n);
              if (e.parent) {
                if (hi(e.root, r.root))
                  return void this.move(zo._createOn(e), r);
                if (e.root.document)
                  throw new _t.b(
                    "model-writer-insert-forbidden-move: Cannot move a node from a document to a different tree. It is forbidden to move a node that was already in a document outside of it.",
                    this
                  );
                this.remove(e);
              }
              const o = r.root.document ? r.root.document.version : null,
                a = new ei(r, e, o);
              if (
                (e instanceof Ao && (a.shouldReceiveAttributes = !0),
                this.batch.addOperation(a),
                this.model.applyOperation(a),
                e instanceof Ba)
              )
                for (const [t, n] of e.markers) {
                  const e = Ho._createAt(n.root, 0),
                    o = {
                      range: new zo(
                        n.start._getCombined(e, r),
                        n.end._getCombined(e, r)
                      ),
                      usingOperation: !0,
                      affectsData: !0,
                    };
                  this.model.markers.has(t)
                    ? this.updateMarker(t, o)
                    : this.addMarker(t, o);
                }
            }
            insertText(e, t, n, r) {
              t instanceof Ba || t instanceof Yo || t instanceof Ho
                ? this.insert(this.createText(e), t, n)
                : this.insert(this.createText(e, t), n, r);
            }
            insertElement(e, t, n, r) {
              t instanceof Ba || t instanceof Yo || t instanceof Ho
                ? this.insert(this.createElement(e), t, n)
                : this.insert(this.createElement(e, t), n, r);
            }
            append(e, t) {
              this.insert(e, t, "end");
            }
            appendText(e, t, n) {
              t instanceof Ba || t instanceof Yo
                ? this.insert(this.createText(e), t, "end")
                : this.insert(this.createText(e, t), n, "end");
            }
            appendElement(e, t, n) {
              t instanceof Ba || t instanceof Yo
                ? this.insert(this.createElement(e), t, "end")
                : this.insert(this.createElement(e, t), n, "end");
            }
            setAttribute(e, t, n) {
              if ((this._assertWriterUsedCorrectly(), n instanceof zo)) {
                const r = n.getMinimalFlatRanges();
                for (const n of r) li(this, e, t, n);
              } else ci(this, e, t, n);
            }
            setAttributes(e, t) {
              for (const [n, r] of Oo(e)) this.setAttribute(n, r, t);
            }
            removeAttribute(e, t) {
              if ((this._assertWriterUsedCorrectly(), t instanceof zo)) {
                const n = t.getMinimalFlatRanges();
                for (const t of n) li(this, e, null, t);
              } else ci(this, e, null, t);
            }
            clearAttributes(e) {
              this._assertWriterUsedCorrectly();
              const t = (e) => {
                for (const t of e.getAttributeKeys())
                  this.removeAttribute(t, e);
              };
              if (e instanceof zo) for (const n of e.getItems()) t(n);
              else t(e);
            }
            move(e, t, n) {
              if ((this._assertWriterUsedCorrectly(), !(e instanceof zo)))
                throw new _t.b(
                  "writer-move-invalid-range: Invalid range to move.",
                  this
                );
              if (!e.isFlat)
                throw new _t.b(
                  "writer-move-range-not-flat: Range to move is not flat.",
                  this
                );
              const r = Ho._createAt(t, n);
              if (r.isEqual(e.start)) return;
              if (
                (this._addOperationForAffectedMarkers("move", e),
                !hi(e.root, r.root))
              )
                throw new _t.b(
                  "writer-move-different-document: Range is going to be moved between different documents.",
                  this
                );
              const o = e.root.document ? e.root.document.version : null,
                a = new Za(e.start, e.end.offset - e.start.offset, r, o);
              this.batch.addOperation(a), this.model.applyOperation(a);
            }
            remove(e) {
              this._assertWriterUsedCorrectly();
              const t = (e instanceof zo ? e : zo._createOn(e))
                .getMinimalFlatRanges()
                .reverse();
              for (const e of t)
                this._addOperationForAffectedMarkers("move", e),
                  di(
                    e.start,
                    e.end.offset - e.start.offset,
                    this.batch,
                    this.model
                  );
            }
            merge(e) {
              this._assertWriterUsedCorrectly();
              const t = e.nodeBefore,
                n = e.nodeAfter;
              if (
                (this._addOperationForAffectedMarkers("merge", e),
                !(t instanceof Yo))
              )
                throw new _t.b(
                  "writer-merge-no-element-before: Node before merge position must be an element.",
                  this
                );
              if (!(n instanceof Yo))
                throw new _t.b(
                  "writer-merge-no-element-after: Node after merge position must be an element.",
                  this
                );
              e.root.document ? this._merge(e) : this._mergeDetached(e);
            }
            createPositionFromPath(e, t, n) {
              return this.model.createPositionFromPath(e, t, n);
            }
            createPositionAt(e, t) {
              return this.model.createPositionAt(e, t);
            }
            createPositionAfter(e) {
              return this.model.createPositionAfter(e);
            }
            createPositionBefore(e) {
              return this.model.createPositionBefore(e);
            }
            createRange(e, t) {
              return this.model.createRange(e, t);
            }
            createRangeIn(e) {
              return this.model.createRangeIn(e);
            }
            createRangeOn(e) {
              return this.model.createRangeOn(e);
            }
            createSelection(e, t, n) {
              return this.model.createSelection(e, t, n);
            }
            _mergeDetached(e) {
              const t = e.nodeBefore,
                n = e.nodeAfter;
              this.move(zo._createIn(n), Ho._createAt(t, "end")),
                this.remove(n);
            }
            _merge(e) {
              const t = Ho._createAt(e.nodeBefore, "end"),
                n = Ho._createAt(e.nodeAfter, 0),
                r = e.root.document.graveyard,
                o = new Ho(r, [0]),
                a = e.root.document.version,
                i = new oi(n, e.nodeAfter.maxOffset, t, o, a);
              this.batch.addOperation(i), this.model.applyOperation(i);
            }
            rename(e, t) {
              if ((this._assertWriterUsedCorrectly(), !(e instanceof Yo)))
                throw new _t.b(
                  "writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",
                  this
                );
              const n = e.root.document ? e.root.document.version : null,
                r = new ni(Ho._createBefore(e), e.name, t, n);
              this.batch.addOperation(r), this.model.applyOperation(r);
            }
            split(e, t) {
              this._assertWriterUsedCorrectly();
              let n,
                r,
                o = e.parent;
              if (!o.parent)
                throw new _t.b(
                  "writer-split-element-no-parent: Element with no parent can not be split.",
                  this
                );
              if (
                (t || (t = o.parent),
                !e.parent.getAncestors({ includeSelf: !0 }).includes(t))
              )
                throw new _t.b(
                  "writer-split-invalid-limit-element: Limit element is not a position ancestor.",
                  this
                );
              do {
                const t = o.root.document ? o.root.document.version : null,
                  a = o.maxOffset - e.offset,
                  i = new ai(e, a, null, t);
                this.batch.addOperation(i),
                  this.model.applyOperation(i),
                  n || r || ((n = o), (r = e.parent.nextSibling)),
                  (o = (e = this.createPositionAfter(e.parent)).parent);
              } while (o !== t);
              return {
                position: e,
                range: new zo(Ho._createAt(n, "end"), Ho._createAt(r, 0)),
              };
            }
            wrap(e, t) {
              if ((this._assertWriterUsedCorrectly(), !e.isFlat))
                throw new _t.b(
                  "writer-wrap-range-not-flat: Range to wrap is not flat.",
                  this
                );
              const n = t instanceof Yo ? t : new Yo(t);
              if (n.childCount > 0)
                throw new _t.b(
                  "writer-wrap-element-not-empty: Element to wrap with is not empty.",
                  this
                );
              if (null !== n.parent)
                throw new _t.b(
                  "writer-wrap-element-attached: Element to wrap with is already attached to tree model.",
                  this
                );
              this.insert(n, e.start);
              const r = new zo(e.start.getShiftedBy(1), e.end.getShiftedBy(1));
              this.move(r, Ho._createAt(n, 0));
            }
            unwrap(e) {
              if ((this._assertWriterUsedCorrectly(), null === e.parent))
                throw new _t.b(
                  "writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",
                  this
                );
              this.move(zo._createIn(e), this.createPositionAfter(e)),
                this.remove(e);
            }
            addMarker(e, t) {
              if (
                (this._assertWriterUsedCorrectly(),
                !t || "boolean" != typeof t.usingOperation)
              )
                throw new _t.b(
                  "writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",
                  this
                );
              const n = t.usingOperation,
                r = t.range,
                o = void 0 !== t.affectsData && t.affectsData;
              if (this.model.markers.has(e))
                throw new _t.b(
                  "writer-addMarker-marker-exists: Marker with provided name already exists.",
                  this
                );
              if (!r)
                throw new _t.b(
                  "writer-addMarker-no-range: Range parameter is required when adding a new marker.",
                  this
                );
              return n
                ? (ui(this, e, null, r, o), this.model.markers.get(e))
                : this.model.markers._set(e, r, n, o);
            }
            updateMarker(e, t) {
              this._assertWriterUsedCorrectly();
              const n = "string" == typeof e ? e : e.name,
                r = this.model.markers.get(n);
              if (!r)
                throw new _t.b(
                  "writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",
                  this
                );
              if (!t) return void this.model.markers._refresh(r);
              const o = "boolean" == typeof t.usingOperation,
                a = "boolean" == typeof t.affectsData,
                i = a ? t.affectsData : r.affectsData;
              if (!o && !t.range && !a)
                throw new _t.b(
                  "writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",
                  this
                );
              const s = r.getRange(),
                l = t.range ? t.range : s;
              o && t.usingOperation !== r.managedUsingOperations
                ? t.usingOperation
                  ? ui(this, n, null, l, i)
                  : (ui(this, n, s, null, i),
                    this.model.markers._set(n, l, void 0, i))
                : r.managedUsingOperations
                ? ui(this, n, s, l, i)
                : this.model.markers._set(n, l, void 0, i);
            }
            removeMarker(e) {
              this._assertWriterUsedCorrectly();
              const t = "string" == typeof e ? e : e.name;
              if (!this.model.markers.has(t))
                throw new _t.b(
                  "writer-removeMarker-no-marker: Trying to remove marker which does not exist.",
                  this
                );
              const n = this.model.markers.get(t);
              n.managedUsingOperations
                ? ui(this, t, n.getRange(), null, n.affectsData)
                : this.model.markers._remove(t);
            }
            setSelection(e, t, n) {
              this._assertWriterUsedCorrectly(),
                this.model.document.selection._setTo(e, t, n);
            }
            setSelectionFocus(e, t) {
              this._assertWriterUsedCorrectly(),
                this.model.document.selection._setFocus(e, t);
            }
            setSelectionAttribute(e, t) {
              if ((this._assertWriterUsedCorrectly(), "string" == typeof e))
                this._setSelectionAttribute(e, t);
              else
                for (const [t, n] of Oo(e)) this._setSelectionAttribute(t, n);
            }
            removeSelectionAttribute(e) {
              if ((this._assertWriterUsedCorrectly(), "string" == typeof e))
                this._removeSelectionAttribute(e);
              else for (const t of e) this._removeSelectionAttribute(t);
            }
            overrideSelectionGravity() {
              return this.model.document.selection._overrideGravity();
            }
            restoreSelectionGravity(e) {
              this.model.document.selection._restoreGravity(e);
            }
            _setSelectionAttribute(e, t) {
              const n = this.model.document.selection;
              if (n.isCollapsed && n.anchor.parent.isEmpty) {
                const r = Zo._getStoreAttributeKey(e);
                this.setAttribute(r, t, n.anchor.parent);
              }
              n._setAttribute(e, t);
            }
            _removeSelectionAttribute(e) {
              const t = this.model.document.selection;
              if (t.isCollapsed && t.anchor.parent.isEmpty) {
                const n = Zo._getStoreAttributeKey(e);
                this.removeAttribute(n, t.anchor.parent);
              }
              t._removeAttribute(e);
            }
            _assertWriterUsedCorrectly() {
              if (this.model._currentWriter !== this)
                throw new _t.b(
                  "writer-incorrect-use: Trying to use a writer outside the change() block.",
                  this
                );
            }
            _addOperationForAffectedMarkers(e, t) {
              for (const n of this.model.markers) {
                if (!n.managedUsingOperations) continue;
                const r = n.getRange();
                let o = !1;
                if ("move" == e)
                  o =
                    t.containsPosition(r.start) ||
                    t.start.isEqual(r.start) ||
                    t.containsPosition(r.end) ||
                    t.end.isEqual(r.end);
                else {
                  const e = t.nodeBefore,
                    n = t.nodeAfter,
                    a = r.start.parent == e && r.start.isAtEnd,
                    i = r.end.parent == n && 0 == r.end.offset,
                    s = r.end.nodeAfter == n,
                    l = r.start.nodeAfter == n;
                  o = a || i || s || l;
                }
                o && this.updateMarker(n.name, { range: r });
              }
            }
          }
          function li(e, t, n, r) {
            const o = e.model,
              a = o.document;
            let i,
              s,
              l,
              c = r.start;
            for (const e of r.getWalker({ shallow: !0 }))
              (l = e.item.getAttribute(t)),
                i && s != l && (s != n && u(), (c = i)),
                (i = e.nextPosition),
                (s = l);
            function u() {
              const r = new zo(c, i),
                l = r.root.document ? a.version : null,
                u = new Xa(r, t, s, n, l);
              e.batch.addOperation(u), o.applyOperation(u);
            }
            i instanceof Ho && i != c && s != n && u();
          }
          function ci(e, t, n, r) {
            const o = e.model,
              a = o.document,
              i = r.getAttribute(t);
            let s, l;
            if (i != n) {
              if (r.root === r) {
                const e = r.document ? a.version : null;
                l = new ri(r, t, i, n, e);
              } else {
                const o = (s = new zo(
                  Ho._createBefore(r),
                  e.createPositionAfter(r)
                )).root.document
                  ? a.version
                  : null;
                l = new Xa(s, t, i, n, o);
              }
              e.batch.addOperation(l), o.applyOperation(l);
            }
          }
          function ui(e, t, n, r, o) {
            const a = e.model,
              i = a.document,
              s = new ti(t, n, r, a.markers, o, i.version);
            e.batch.addOperation(s), a.applyOperation(s);
          }
          function di(e, t, n, r) {
            let o;
            if (e.root.document) {
              const n = r.document,
                a = new Ho(n.graveyard, [0]);
              o = new Za(e, t, a, n.version);
            } else o = new $a(e, t);
            n.addOperation(o), r.applyOperation(o);
          }
          function hi(e, t) {
            return e === t || (e instanceof ii && t instanceof ii);
          }
          class pi {
            constructor(e) {
              (this._markerCollection = e),
                (this._changesInElement = new Map()),
                (this._elementSnapshots = new Map()),
                (this._changedMarkers = new Map()),
                (this._changeCount = 0),
                (this._cachedChanges = null),
                (this._cachedChangesWithGraveyard = null);
            }
            get isEmpty() {
              return (
                0 == this._changesInElement.size &&
                0 == this._changedMarkers.size
              );
            }
            refreshItem(e) {
              if (this._isInInsertedElement(e.parent)) return;
              this._markRemove(e.parent, e.startOffset, e.offsetSize),
                this._markInsert(e.parent, e.startOffset, e.offsetSize);
              const t = zo._createOn(e);
              for (const e of this._markerCollection.getMarkersIntersectingRange(
                t
              )) {
                const t = e.getRange();
                this.bufferMarkerChange(e.name, t, t, e.affectsData);
              }
              this._cachedChanges = null;
            }
            bufferOperation(e) {
              switch (e.type) {
                case "insert":
                  if (this._isInInsertedElement(e.position.parent)) return;
                  this._markInsert(
                    e.position.parent,
                    e.position.offset,
                    e.nodes.maxOffset
                  );
                  break;
                case "addAttribute":
                case "removeAttribute":
                case "changeAttribute":
                  for (const t of e.range.getItems({ shallow: !0 }))
                    this._isInInsertedElement(t.parent) ||
                      this._markAttribute(t);
                  break;
                case "remove":
                case "move":
                case "reinsert": {
                  if (
                    e.sourcePosition.isEqual(e.targetPosition) ||
                    e.sourcePosition
                      .getShiftedBy(e.howMany)
                      .isEqual(e.targetPosition)
                  )
                    return;
                  const t = this._isInInsertedElement(e.sourcePosition.parent),
                    n = this._isInInsertedElement(e.targetPosition.parent);
                  t ||
                    this._markRemove(
                      e.sourcePosition.parent,
                      e.sourcePosition.offset,
                      e.howMany
                    ),
                    n ||
                      this._markInsert(
                        e.targetPosition.parent,
                        e.getMovedRangeStart().offset,
                        e.howMany
                      );
                  break;
                }
                case "rename": {
                  if (this._isInInsertedElement(e.position.parent)) return;
                  this._markRemove(e.position.parent, e.position.offset, 1),
                    this._markInsert(e.position.parent, e.position.offset, 1);
                  const t = zo._createFromPositionAndShift(e.position, 1);
                  for (const e of this._markerCollection.getMarkersIntersectingRange(
                    t
                  )) {
                    const t = e.getRange();
                    this.bufferMarkerChange(e.name, t, t, e.affectsData);
                  }
                  break;
                }
                case "split": {
                  const t = e.splitPosition.parent;
                  this._isInInsertedElement(t) ||
                    this._markRemove(t, e.splitPosition.offset, e.howMany),
                    this._isInInsertedElement(e.insertionPosition.parent) ||
                      this._markInsert(
                        e.insertionPosition.parent,
                        e.insertionPosition.offset,
                        1
                      ),
                    e.graveyardPosition &&
                      this._markRemove(
                        e.graveyardPosition.parent,
                        e.graveyardPosition.offset,
                        1
                      );
                  break;
                }
                case "merge": {
                  const t = e.sourcePosition.parent;
                  this._isInInsertedElement(t.parent) ||
                    this._markRemove(t.parent, t.startOffset, 1);
                  const n = e.graveyardPosition.parent;
                  this._markInsert(n, e.graveyardPosition.offset, 1);
                  const r = e.targetPosition.parent;
                  this._isInInsertedElement(r) ||
                    this._markInsert(r, e.targetPosition.offset, t.maxOffset);
                  break;
                }
              }
              this._cachedChanges = null;
            }
            bufferMarkerChange(e, t, n, r) {
              const o = this._changedMarkers.get(e);
              o
                ? ((o.newRange = n),
                  (o.affectsData = r),
                  null == o.oldRange &&
                    null == o.newRange &&
                    this._changedMarkers.delete(e))
                : this._changedMarkers.set(e, {
                    oldRange: t,
                    newRange: n,
                    affectsData: r,
                  });
            }
            getMarkersToRemove() {
              const e = [];
              for (const [t, n] of this._changedMarkers)
                null != n.oldRange && e.push({ name: t, range: n.oldRange });
              return e;
            }
            getMarkersToAdd() {
              const e = [];
              for (const [t, n] of this._changedMarkers)
                null != n.newRange && e.push({ name: t, range: n.newRange });
              return e;
            }
            getChangedMarkers() {
              return Array.from(this._changedMarkers).map((e) => ({
                name: e[0],
                data: { oldRange: e[1].oldRange, newRange: e[1].newRange },
              }));
            }
            hasDataChanges() {
              for (const [, e] of this._changedMarkers)
                if (e.affectsData) return !0;
              return this._changesInElement.size > 0;
            }
            getChanges(e = { includeChangesInGraveyard: !1 }) {
              if (this._cachedChanges)
                return e.includeChangesInGraveyard
                  ? this._cachedChangesWithGraveyard.slice()
                  : this._cachedChanges.slice();
              const t = [];
              for (const e of this._changesInElement.keys()) {
                const n = this._changesInElement
                    .get(e)
                    .sort((e, t) =>
                      e.offset === t.offset
                        ? e.type != t.type
                          ? "remove" == e.type
                            ? -1
                            : 1
                          : 0
                        : e.offset < t.offset
                        ? -1
                        : 1
                    ),
                  r = this._elementSnapshots.get(e),
                  o = fi(e.getChildren()),
                  a = mi(r.length, n);
                let i = 0,
                  s = 0;
                for (const n of a)
                  if ("i" === n)
                    t.push(this._getInsertDiff(e, i, o[i].name)), i++;
                  else if ("r" === n)
                    t.push(this._getRemoveDiff(e, i, r[s].name)), s++;
                  else if ("a" === n) {
                    const n = o[i].attributes,
                      a = r[s].attributes;
                    let l;
                    if ("$text" == o[i].name)
                      l = new zo(Ho._createAt(e, i), Ho._createAt(e, i + 1));
                    else {
                      const t = e.offsetToIndex(i);
                      l = new zo(
                        Ho._createAt(e, i),
                        Ho._createAt(e.getChild(t), 0)
                      );
                    }
                    t.push(...this._getAttributesDiff(l, a, n)), i++, s++;
                  } else i++, s++;
              }
              t.sort((e, t) =>
                e.position.root != t.position.root
                  ? e.position.root.rootName < t.position.root.rootName
                    ? -1
                    : 1
                  : e.position.isEqual(t.position)
                  ? e.changeCount - t.changeCount
                  : e.position.isBefore(t.position)
                  ? -1
                  : 1
              );
              for (let e = 1; e < t.length; e++) {
                const n = t[e - 1],
                  r = t[e],
                  o =
                    "remove" == n.type &&
                    "remove" == r.type &&
                    "$text" == n.name &&
                    "$text" == r.name &&
                    n.position.isEqual(r.position),
                  a =
                    "insert" == n.type &&
                    "insert" == r.type &&
                    "$text" == n.name &&
                    "$text" == r.name &&
                    n.position.parent == r.position.parent &&
                    n.position.offset + n.length == r.position.offset,
                  i =
                    "attribute" == n.type &&
                    "attribute" == r.type &&
                    n.position.parent == r.position.parent &&
                    n.range.isFlat &&
                    r.range.isFlat &&
                    n.position.offset + n.length == r.position.offset &&
                    n.attributeKey == r.attributeKey &&
                    n.attributeOldValue == r.attributeOldValue &&
                    n.attributeNewValue == r.attributeNewValue;
                (o || a || i) &&
                  (t[e - 1].length++,
                  i &&
                    (t[e - 1].range.end = t[e - 1].range.end.getShiftedBy(1)),
                  t.splice(e, 1),
                  e--);
              }
              for (const e of t)
                delete e.changeCount,
                  "attribute" == e.type && (delete e.position, delete e.length);
              return (
                (this._changeCount = 0),
                (this._cachedChangesWithGraveyard = t.slice()),
                (this._cachedChanges = t.slice().filter(gi)),
                e.includeChangesInGraveyard
                  ? this._cachedChangesWithGraveyard
                  : this._cachedChanges
              );
            }
            reset() {
              this._changesInElement.clear(),
                this._elementSnapshots.clear(),
                this._changedMarkers.clear(),
                (this._cachedChanges = null);
            }
            _markInsert(e, t, n) {
              const r = {
                type: "insert",
                offset: t,
                howMany: n,
                count: this._changeCount++,
              };
              this._markChange(e, r);
            }
            _markRemove(e, t, n) {
              const r = {
                type: "remove",
                offset: t,
                howMany: n,
                count: this._changeCount++,
              };
              this._markChange(e, r), this._removeAllNestedChanges(e, t, n);
            }
            _markAttribute(e) {
              const t = {
                type: "attribute",
                offset: e.startOffset,
                howMany: e.offsetSize,
                count: this._changeCount++,
              };
              this._markChange(e.parent, t);
            }
            _markChange(e, t) {
              this._makeSnapshot(e);
              const n = this._getChangesForElement(e);
              this._handleChange(t, n), n.push(t);
              for (let e = 0; e < n.length; e++)
                n[e].howMany < 1 && (n.splice(e, 1), e--);
            }
            _getChangesForElement(e) {
              let t;
              return (
                this._changesInElement.has(e)
                  ? (t = this._changesInElement.get(e))
                  : ((t = []), this._changesInElement.set(e, t)),
                t
              );
            }
            _makeSnapshot(e) {
              this._elementSnapshots.has(e) ||
                this._elementSnapshots.set(e, fi(e.getChildren()));
            }
            _handleChange(e, t) {
              e.nodesToHandle = e.howMany;
              for (const n of t) {
                const r = e.offset + e.howMany,
                  o = n.offset + n.howMany;
                if (
                  "insert" == e.type &&
                  ("insert" == n.type &&
                    (e.offset <= n.offset
                      ? (n.offset += e.howMany)
                      : e.offset < o &&
                        ((n.howMany += e.nodesToHandle),
                        (e.nodesToHandle = 0))),
                  "remove" == n.type &&
                    e.offset < n.offset &&
                    (n.offset += e.howMany),
                  "attribute" == n.type)
                )
                  if (e.offset <= n.offset) n.offset += e.howMany;
                  else if (e.offset < o) {
                    const o = n.howMany;
                    (n.howMany = e.offset - n.offset),
                      t.unshift({
                        type: "attribute",
                        offset: r,
                        howMany: o - n.howMany,
                        count: this._changeCount++,
                      });
                  }
                if ("remove" == e.type) {
                  if ("insert" == n.type)
                    if (r <= n.offset) n.offset -= e.howMany;
                    else if (r <= o)
                      if (e.offset < n.offset) {
                        const t = r - n.offset;
                        (n.offset = e.offset),
                          (n.howMany -= t),
                          (e.nodesToHandle -= t);
                      } else
                        (n.howMany -= e.nodesToHandle), (e.nodesToHandle = 0);
                    else if (e.offset <= n.offset)
                      (e.nodesToHandle -= n.howMany), (n.howMany = 0);
                    else if (e.offset < o) {
                      const t = o - e.offset;
                      (n.howMany -= t), (e.nodesToHandle -= t);
                    }
                  if (
                    ("remove" == n.type &&
                      (r <= n.offset
                        ? (n.offset -= e.howMany)
                        : e.offset < n.offset &&
                          ((e.nodesToHandle += n.howMany), (n.howMany = 0))),
                    "attribute" == n.type)
                  )
                    if (r <= n.offset) n.offset -= e.howMany;
                    else if (e.offset < n.offset) {
                      const t = r - n.offset;
                      (n.offset = e.offset), (n.howMany -= t);
                    } else if (e.offset < o)
                      if (r <= o) {
                        const r = n.howMany;
                        n.howMany = e.offset - n.offset;
                        const o = r - n.howMany - e.nodesToHandle;
                        t.unshift({
                          type: "attribute",
                          offset: e.offset,
                          howMany: o,
                          count: this._changeCount++,
                        });
                      } else n.howMany -= o - e.offset;
                }
                if ("attribute" == e.type) {
                  if ("insert" == n.type)
                    if (e.offset < n.offset && r > n.offset) {
                      if (r > o) {
                        const e = {
                          type: "attribute",
                          offset: o,
                          howMany: r - o,
                          count: this._changeCount++,
                        };
                        this._handleChange(e, t), t.push(e);
                      }
                      (e.nodesToHandle = n.offset - e.offset),
                        (e.howMany = e.nodesToHandle);
                    } else
                      e.offset >= n.offset &&
                        e.offset < o &&
                        (r > o
                          ? ((e.nodesToHandle = r - o), (e.offset = o))
                          : (e.nodesToHandle = 0));
                  if (
                    "remove" == n.type &&
                    e.offset < n.offset &&
                    r > n.offset
                  ) {
                    const o = {
                      type: "attribute",
                      offset: n.offset,
                      howMany: r - n.offset,
                      count: this._changeCount++,
                    };
                    this._handleChange(o, t),
                      t.push(o),
                      (e.nodesToHandle = n.offset - e.offset),
                      (e.howMany = e.nodesToHandle);
                  }
                  "attribute" == n.type &&
                    (e.offset >= n.offset && r <= o
                      ? ((e.nodesToHandle = 0), (e.howMany = 0), (e.offset = 0))
                      : e.offset <= n.offset && r >= o && (n.howMany = 0));
                }
              }
              (e.howMany = e.nodesToHandle), delete e.nodesToHandle;
            }
            _getInsertDiff(e, t, n) {
              return {
                type: "insert",
                position: Ho._createAt(e, t),
                name: n,
                length: 1,
                changeCount: this._changeCount++,
              };
            }
            _getRemoveDiff(e, t, n) {
              return {
                type: "remove",
                position: Ho._createAt(e, t),
                name: n,
                length: 1,
                changeCount: this._changeCount++,
              };
            }
            _getAttributesDiff(e, t, n) {
              const r = [];
              n = new Map(n);
              for (const [o, a] of t) {
                const t = n.has(o) ? n.get(o) : null;
                t !== a &&
                  r.push({
                    type: "attribute",
                    position: e.start,
                    range: e.clone(),
                    length: 1,
                    attributeKey: o,
                    attributeOldValue: a,
                    attributeNewValue: t,
                    changeCount: this._changeCount++,
                  }),
                  n.delete(o);
              }
              for (const [t, o] of n)
                r.push({
                  type: "attribute",
                  position: e.start,
                  range: e.clone(),
                  length: 1,
                  attributeKey: t,
                  attributeOldValue: null,
                  attributeNewValue: o,
                  changeCount: this._changeCount++,
                });
              return r;
            }
            _isInInsertedElement(e) {
              const t = e.parent;
              if (!t) return !1;
              const n = this._changesInElement.get(t),
                r = e.startOffset;
              if (n)
                for (const e of n)
                  if (
                    "insert" == e.type &&
                    r >= e.offset &&
                    r < e.offset + e.howMany
                  )
                    return !0;
              return this._isInInsertedElement(t);
            }
            _removeAllNestedChanges(e, t, n) {
              const r = new zo(Ho._createAt(e, t), Ho._createAt(e, t + n));
              for (const e of r.getItems({ shallow: !0 }))
                e.is("element") &&
                  (this._elementSnapshots.delete(e),
                  this._changesInElement.delete(e),
                  this._removeAllNestedChanges(e, 0, e.maxOffset));
            }
          }
          function fi(e) {
            const t = [];
            for (const n of e)
              if (n.is("text"))
                for (let e = 0; e < n.data.length; e++)
                  t.push({
                    name: "$text",
                    attributes: new Map(n.getAttributes()),
                  });
              else
                t.push({
                  name: n.name,
                  attributes: new Map(n.getAttributes()),
                });
            return t;
          }
          function mi(e, t) {
            const n = [];
            let r = 0,
              o = 0;
            for (const e of t) {
              if (e.offset > r) {
                for (let t = 0; t < e.offset - r; t++) n.push("e");
                o += e.offset - r;
              }
              if ("insert" == e.type) {
                for (let t = 0; t < e.howMany; t++) n.push("i");
                r = e.offset + e.howMany;
              } else if ("remove" == e.type) {
                for (let t = 0; t < e.howMany; t++) n.push("r");
                (r = e.offset), (o += e.howMany);
              } else
                n.push(..."a".repeat(e.howMany).split("")),
                  (r = e.offset + e.howMany),
                  (o += e.howMany);
            }
            if (o < e) for (let t = 0; t < e - o - r; t++) n.push("e");
            return n;
          }
          function gi(e) {
            const t = e.position && "$graveyard" == e.position.root.rootName,
              n = e.range && "$graveyard" == e.range.root.rootName;
            return !t && !n;
          }
          class _i {
            constructor() {
              (this._operations = []),
                (this._undoPairs = new Map()),
                (this._undoneOperations = new Set());
            }
            addOperation(e) {
              this._operations.includes(e) || this._operations.push(e);
            }
            getOperations(e = 0, t = Number.POSITIVE_INFINITY) {
              return e < 0 ? [] : this._operations.slice(e, t);
            }
            getOperation(e) {
              return this._operations[e];
            }
            setOperationAsUndone(e, t) {
              this._undoPairs.set(t, e), this._undoneOperations.add(e);
            }
            isUndoingOperation(e) {
              return this._undoPairs.has(e);
            }
            isUndoneOperation(e) {
              return this._undoneOperations.has(e);
            }
            getUndoneOperation(e) {
              return this._undoPairs.get(e);
            }
          }
          function vi(e, t) {
            return (
              (function (e) {
                return !!e && 1 == e.length && /[\ud800-\udbff]/.test(e);
              })(e.charAt(t - 1)) &&
              (function (e) {
                return !!e && 1 == e.length && /[\udc00-\udfff]/.test(e);
              })(e.charAt(t))
            );
          }
          function bi(e, t) {
            return (function (e) {
              return (
                !!e &&
                1 == e.length &&
                /[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(
                  e
                )
              );
            })(e.charAt(t));
          }
          const yi = "$graveyard";
          class wi {
            constructor(e) {
              (this.model = e),
                (this.version = 0),
                (this.history = new _i(this)),
                (this.selection = new Zo(this)),
                (this.roots = new kn({ idProperty: "rootName" })),
                (this.differ = new pi(e.markers)),
                (this._postFixers = new Set()),
                (this._hasSelectionChangedFromTheLastChangeBlock = !1),
                this.createRoot("$root", yi),
                this.listenTo(
                  e,
                  "applyOperation",
                  (e, t) => {
                    const n = t[0];
                    if (n.isDocumentOperation && n.baseVersion !== this.version)
                      throw new _t.b(
                        "model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",
                        this,
                        { operation: n }
                      );
                  },
                  { priority: "highest" }
                ),
                this.listenTo(
                  e,
                  "applyOperation",
                  (e, t) => {
                    const n = t[0];
                    n.isDocumentOperation && this.differ.bufferOperation(n);
                  },
                  { priority: "high" }
                ),
                this.listenTo(
                  e,
                  "applyOperation",
                  (e, t) => {
                    const n = t[0];
                    n.isDocumentOperation &&
                      (this.version++, this.history.addOperation(n));
                  },
                  { priority: "low" }
                ),
                this.listenTo(this.selection, "change", () => {
                  this._hasSelectionChangedFromTheLastChangeBlock = !0;
                }),
                this.listenTo(e.markers, "update", (e, t, n, r) => {
                  this.differ.bufferMarkerChange(t.name, n, r, t.affectsData),
                    null === n &&
                      t.on("change", (e, n) => {
                        this.differ.bufferMarkerChange(
                          t.name,
                          n,
                          t.getRange(),
                          t.affectsData
                        );
                      });
                });
            }
            get graveyard() {
              return this.getRoot(yi);
            }
            createRoot(e = "$root", t = "main") {
              if (this.roots.get(t))
                throw new _t.b(
                  "model-document-createRoot-name-exists: Root with specified name already exists.",
                  this,
                  { name: t }
                );
              const n = new ii(this, e, t);
              return this.roots.add(n), n;
            }
            destroy() {
              this.selection.destroy(), this.stopListening();
            }
            getRoot(e = "main") {
              return this.roots.get(e);
            }
            getRootNames() {
              return Array.from(this.roots, (e) => e.rootName).filter(
                (e) => e != yi
              );
            }
            registerPostFixer(e) {
              this._postFixers.add(e);
            }
            toJSON() {
              const e = Ot(this);
              return (
                (e.selection = "[engine.model.DocumentSelection]"),
                (e.model = "[engine.model.Model]"),
                e
              );
            }
            _handleChangeBlock(e) {
              this._hasDocumentChangedFromTheLastChangeBlock() &&
                (this._callPostFixers(e),
                this.selection.refresh(),
                this.differ.hasDataChanges()
                  ? this.fire("change:data", e.batch)
                  : this.fire("change", e.batch),
                this.selection.refresh(),
                this.differ.reset()),
                (this._hasSelectionChangedFromTheLastChangeBlock = !1);
            }
            _hasDocumentChangedFromTheLastChangeBlock() {
              return (
                !this.differ.isEmpty ||
                this._hasSelectionChangedFromTheLastChangeBlock
              );
            }
            _getDefaultRoot() {
              for (const e of this.roots) if (e !== this.graveyard) return e;
              return this.graveyard;
            }
            _getDefaultRange() {
              const e = this._getDefaultRoot(),
                t = this.model,
                n = t.schema,
                r = t.createPositionFromPath(e, [0]);
              return n.getNearestSelectionRange(r) || t.createRange(r);
            }
            _validateSelectionRange(e) {
              return ki(e.start) && ki(e.end);
            }
            _callPostFixers(e) {
              let t = !1;
              do {
                for (const n of this._postFixers)
                  if ((this.selection.refresh(), (t = n(e)))) break;
              } while (t);
            }
          }
          function ki(e) {
            const t = e.textNode;
            if (t) {
              const n = t.data,
                r = e.offset - t.startOffset;
              return !vi(n, r) && !bi(n, r);
            }
            return !0;
          }
          Ct(wi, xt);
          class xi {
            constructor() {
              this._markers = new Map();
            }
            [Symbol.iterator]() {
              return this._markers.values();
            }
            has(e) {
              return this._markers.has(e);
            }
            get(e) {
              return this._markers.get(e) || null;
            }
            _set(e, t, n = !1, r = !1) {
              const o = e instanceof Mi ? e.name : e,
                a = this._markers.get(o);
              if (a) {
                const e = a.getRange();
                let i = !1;
                return (
                  e.isEqual(t) ||
                    (a._attachLiveRange(Xo.fromRange(t)), (i = !0)),
                  n != a.managedUsingOperations &&
                    ((a._managedUsingOperations = n), (i = !0)),
                  "boolean" == typeof r &&
                    r != a.affectsData &&
                    ((a._affectsData = r), (i = !0)),
                  i && this.fire("update:" + o, a, e, t),
                  a
                );
              }
              const i = Xo.fromRange(t),
                s = new Mi(o, i, n, r);
              return (
                this._markers.set(o, s), this.fire("update:" + o, s, null, t), s
              );
            }
            _remove(e) {
              const t = e instanceof Mi ? e.name : e,
                n = this._markers.get(t);
              return (
                !!n &&
                (this._markers.delete(t),
                this.fire("update:" + t, n, n.getRange(), null),
                this._destroyMarker(n),
                !0)
              );
            }
            _refresh(e) {
              const t = e instanceof Mi ? e.name : e,
                n = this._markers.get(t);
              if (!n)
                throw new _t.b(
                  "markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",
                  this
                );
              const r = n.getRange();
              this.fire(
                "update:" + t,
                n,
                r,
                r,
                n.managedUsingOperations,
                n.affectsData
              );
            }
            *getMarkersAtPosition(e) {
              for (const t of this)
                t.getRange().containsPosition(e) && (yield t);
            }
            *getMarkersIntersectingRange(e) {
              for (const t of this)
                null !== t.getRange().getIntersection(e) && (yield t);
            }
            destroy() {
              for (const e of this._markers.values()) this._destroyMarker(e);
              (this._markers = null), this.stopListening();
            }
            *getMarkersGroup(e) {
              for (const t of this._markers.values())
                t.name.startsWith(e + ":") && (yield t);
            }
            _destroyMarker(e) {
              e.stopListening(), e._detachLiveRange();
            }
          }
          Ct(xi, xt);
          class Mi {
            constructor(e, t, n, r) {
              (this.name = e),
                (this._liveRange = this._attachLiveRange(t)),
                (this._managedUsingOperations = n),
                (this._affectsData = r);
            }
            get managedUsingOperations() {
              if (!this._liveRange)
                throw new _t.b(
                  "marker-destroyed: Cannot use a destroyed marker instance.",
                  this
                );
              return this._managedUsingOperations;
            }
            get affectsData() {
              if (!this._liveRange)
                throw new _t.b(
                  "marker-destroyed: Cannot use a destroyed marker instance.",
                  this
                );
              return this._affectsData;
            }
            getStart() {
              if (!this._liveRange)
                throw new _t.b(
                  "marker-destroyed: Cannot use a destroyed marker instance.",
                  this
                );
              return this._liveRange.start.clone();
            }
            getEnd() {
              if (!this._liveRange)
                throw new _t.b(
                  "marker-destroyed: Cannot use a destroyed marker instance.",
                  this
                );
              return this._liveRange.end.clone();
            }
            getRange() {
              if (!this._liveRange)
                throw new _t.b(
                  "marker-destroyed: Cannot use a destroyed marker instance.",
                  this
                );
              return this._liveRange.toRange();
            }
            is(e) {
              return "marker" == e || "model:marker" == e;
            }
            _attachLiveRange(e) {
              return (
                this._liveRange && this._detachLiveRange(),
                e.delegate("change:range").to(this),
                e.delegate("change:content").to(this),
                (this._liveRange = e),
                e
              );
            }
            _detachLiveRange() {
              this._liveRange.stopDelegating("change:range", this),
                this._liveRange.stopDelegating("change:content", this),
                this._liveRange.detach(),
                (this._liveRange = null);
            }
          }
          Ct(Mi, xt);
          class Ei extends Ho {
            constructor(e, t, n = "toNone") {
              if ((super(e, t, n), !this.root.is("rootElement")))
                throw new _t.b(
                  "model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",
                  e
                );
              (function () {
                this.listenTo(
                  this.root.document.model,
                  "applyOperation",
                  (e, t) => {
                    const n = t[0];
                    n.isDocumentOperation &&
                      function (e) {
                        const t = this.getTransformedByOperation(e);
                        if (!this.isEqual(t)) {
                          const e = this.toPosition();
                          (this.path = t.path),
                            (this.root = t.root),
                            this.fire("change", e);
                        }
                      }.call(this, n);
                  },
                  { priority: "low" }
                );
              }.call(this));
            }
            detach() {
              this.stopListening();
            }
            is(e) {
              return (
                "livePosition" == e || "model:livePosition" == e || super.is(e)
              );
            }
            toPosition() {
              return new Ho(this.root, this.path.slice(), this.stickiness);
            }
            static fromPosition(e, t) {
              return new this(e.root, e.path.slice(), t || e.stickiness);
            }
          }
          Ct(Ei, xt);
          class Ti {
            constructor(e, t, n) {
              (this.model = e),
                (this.writer = t),
                (this.position = n),
                (this.canMergeWith = new Set([this.position.parent])),
                (this.schema = e.schema),
                (this._filterAttributesOf = []),
                (this._affectedStart = null),
                (this._affectedEnd = null);
            }
            handleNodes(e, t) {
              e = Array.from(e);
              for (let n = 0; n < e.length; n++) {
                const r = e[n];
                this._handleNode(r, {
                  isFirst: 0 === n && t.isFirst,
                  isLast: n === e.length - 1 && t.isLast,
                });
              }
              this.schema.removeDisallowedAttributes(
                this._filterAttributesOf,
                this.writer
              ),
                (this._filterAttributesOf = []);
            }
            getSelectionRange() {
              return this.nodeToSelect
                ? zo._createOn(this.nodeToSelect)
                : this.model.schema.getNearestSelectionRange(this.position);
            }
            getAffectedRange() {
              return this._affectedStart
                ? new zo(this._affectedStart, this._affectedEnd)
                : null;
            }
            destroy() {
              this._affectedStart && this._affectedStart.detach(),
                this._affectedEnd && this._affectedEnd.detach();
            }
            _handleNode(e, t) {
              this.schema.isObject(e)
                ? this._handleObject(e, t)
                : this._checkAndSplitToAllowedPosition(e, t)
                ? (this._insert(e), this._mergeSiblingsOf(e, t))
                : this._handleDisallowedNode(e, t);
            }
            _handleObject(e, t) {
              this._checkAndSplitToAllowedPosition(e)
                ? this._insert(e)
                : this._tryAutoparagraphing(e, t);
            }
            _handleDisallowedNode(e, t) {
              e.is("element")
                ? this.handleNodes(e.getChildren(), t)
                : this._tryAutoparagraphing(e, t);
            }
            _insert(e) {
              if (!this.schema.checkChild(this.position, e))
                throw new _t.b(
                  "insertcontent-wrong-position: Given node cannot be inserted on the given position.",
                  this,
                  { node: e, position: this.position }
                );
              const t = Ei.fromPosition(this.position, "toNext");
              this._setAffectedBoundaries(this.position),
                this.writer.insert(e, this.position),
                (this.position = t.toPosition()),
                t.detach(),
                this.schema.isObject(e) &&
                !this.schema.checkChild(this.position, "$text")
                  ? (this.nodeToSelect = e)
                  : (this.nodeToSelect = null),
                this._filterAttributesOf.push(e);
            }
            _setAffectedBoundaries(e) {
              this._affectedStart ||
                (this._affectedStart = Ei.fromPosition(e, "toPrevious")),
                (this._affectedEnd && !this._affectedEnd.isBefore(e)) ||
                  (this._affectedEnd && this._affectedEnd.detach(),
                  (this._affectedEnd = Ei.fromPosition(e, "toNext")));
            }
            _mergeSiblingsOf(e, t) {
              if (!(e instanceof Yo)) return;
              const n = this._canMergeLeft(e, t),
                r = this._canMergeRight(e, t),
                o = Ei._createBefore(e);
              o.stickiness = "toNext";
              const a = Ei._createAfter(e);
              if (((a.stickiness = "toNext"), n)) {
                const e = Ei.fromPosition(this.position);
                (e.stickiness = "toNext"),
                  this._affectedStart.isEqual(o) &&
                    (this._affectedStart.detach(),
                    (this._affectedStart = Ei._createAt(
                      o.nodeBefore,
                      "end",
                      "toPrevious"
                    ))),
                  this.writer.merge(o),
                  o.isEqual(this._affectedEnd) &&
                    t.isLast &&
                    (this._affectedEnd.detach(),
                    (this._affectedEnd = Ei._createAt(
                      o.nodeBefore,
                      "end",
                      "toNext"
                    ))),
                  (this.position = e.toPosition()),
                  e.detach();
              }
              if (r) {
                if (!this.position.isEqual(a))
                  throw new _t.b(
                    "insertcontent-invalid-insertion-position",
                    this
                  );
                this.position = Ho._createAt(a.nodeBefore, "end");
                const e = Ei.fromPosition(this.position, "toPrevious");
                this._affectedEnd.isEqual(a) &&
                  (this._affectedEnd.detach(),
                  (this._affectedEnd = Ei._createAt(
                    a.nodeBefore,
                    "end",
                    "toNext"
                  ))),
                  this.writer.merge(a),
                  a.getShiftedBy(-1).isEqual(this._affectedStart) &&
                    t.isFirst &&
                    (this._affectedStart.detach(),
                    (this._affectedStart = Ei._createAt(
                      a.nodeBefore,
                      0,
                      "toPrevious"
                    ))),
                  (this.position = e.toPosition()),
                  e.detach();
              }
              (n || r) && this._filterAttributesOf.push(this.position.parent),
                o.detach(),
                a.detach();
            }
            _canMergeLeft(e, t) {
              const n = e.previousSibling;
              return (
                t.isFirst &&
                n instanceof Yo &&
                this.canMergeWith.has(n) &&
                this.model.schema.checkMerge(n, e)
              );
            }
            _canMergeRight(e, t) {
              const n = e.nextSibling;
              return (
                t.isLast &&
                n instanceof Yo &&
                this.canMergeWith.has(n) &&
                this.model.schema.checkMerge(e, n)
              );
            }
            _tryAutoparagraphing(e, t) {
              const n = this.writer.createElement("paragraph");
              this._getAllowedIn(n, this.position.parent) &&
                this.schema.checkChild(n, e) &&
                (n._appendChild(e), this._handleNode(n, t));
            }
            _checkAndSplitToAllowedPosition(e) {
              const t = this._getAllowedIn(e, this.position.parent);
              if (!t) return !1;
              for (; t != this.position.parent; ) {
                if (this.schema.isLimit(this.position.parent)) return !1;
                if (this.position.isAtStart) {
                  const e = this.position.parent;
                  (this.position = this.writer.createPositionBefore(e)),
                    e.isEmpty && e.parent === t && this.writer.remove(e);
                } else if (this.position.isAtEnd)
                  this.position = this.writer.createPositionAfter(
                    this.position.parent
                  );
                else {
                  const e = this.writer.createPositionAfter(
                    this.position.parent
                  );
                  this._setAffectedBoundaries(this.position),
                    this.writer.split(this.position),
                    (this.position = e),
                    this.canMergeWith.add(this.position.nodeAfter);
                }
              }
              return !0;
            }
            _getAllowedIn(e, t) {
              return this.schema.checkChild(t, e)
                ? t
                : t.parent
                ? this._getAllowedIn(e, t.parent)
                : null;
            }
          }
          function Si(e, t, n) {
            const r = e.createElement("paragraph");
            e.insert(r, t), Di(e, n, e.createPositionAt(r, 0));
          }
          function Di(e, t, n) {
            t instanceof Zo ? e.setSelection(n) : t.setTo(n);
          }
          const Li = ' ,.?!:;"-()';
          function Ci(e, t) {
            if ("text" == t.type)
              return "word" === e.unit
                ? (function (e, t) {
                    let n = e.position.textNode;
                    if (n) {
                      let r = e.position.offset - n.startOffset;
                      for (; !Pi(n.data, r, t) && !Oi(n, r, t); ) {
                        e.next();
                        const o = t
                          ? e.position.nodeAfter
                          : e.position.nodeBefore;
                        if (o && o.is("text")) {
                          const r = o.data.charAt(t ? 0 : o.data.length - 1);
                          Li.includes(r) ||
                            (e.next(), (n = e.position.textNode));
                        }
                        r = e.position.offset - n.startOffset;
                      }
                    }
                    return e.position;
                  })(e.walker, e.isForward)
                : (function (e, t) {
                    const n = e.position.textNode;
                    if (n) {
                      const r = n.data;
                      let o = e.position.offset - n.startOffset;
                      for (; vi(r, o) || ("character" == t && bi(r, o)); )
                        e.next(), (o = e.position.offset - n.startOffset);
                    }
                    return e.position;
                  })(e.walker, e.unit, e.isForward);
            if (t.type == (e.isForward ? "elementStart" : "elementEnd")) {
              if (e.schema.isObject(t.item))
                return Ho._createAt(t.item, e.isForward ? "after" : "before");
              if (e.schema.checkChild(t.nextPosition, "$text"))
                return t.nextPosition;
            } else {
              if (e.schema.isLimit(t.item)) return void e.walker.skip(() => !0);
              if (e.schema.checkChild(t.nextPosition, "$text"))
                return t.nextPosition;
            }
          }
          function Pi(e, t, n) {
            const r = t + (n ? 0 : -1);
            return Li.includes(e.charAt(r));
          }
          function Oi(e, t, n) {
            return t === (n ? e.endOffset : 0);
          }
          function Ni(e, t) {
            const n = [];
            Array.from(e.getItems({ direction: "backward" }))
              .map((e) => t.createRangeOn(e))
              .filter(
                (t) =>
                  (t.start.isAfter(e.start) || t.start.isEqual(e.start)) &&
                  (t.end.isBefore(e.end) || t.end.isEqual(e.end))
              )
              .forEach((e) => {
                n.push(e.start.parent), t.remove(e);
              }),
              n.forEach((e) => {
                let n = e;
                for (; n.parent && n.isEmpty; ) {
                  const e = t.createRangeOn(n);
                  (n = n.parent), t.remove(e);
                }
              });
          }
          function Ai(e, t) {
            return e.isCollapsed
              ? (function (e, t) {
                  const n = e.start,
                    r = t.getNearestSelectionRange(n);
                  if (!r) return null;
                  const o = r.start;
                  return n.isEqual(o)
                    ? null
                    : o.nodeAfter && t.isLimit(o.nodeAfter)
                    ? new zo(o, Ho._createAfter(o.nodeAfter))
                    : new zo(o);
                })(e, t)
              : (function (e, t) {
                  const n = e.start,
                    r = e.end,
                    o = t.checkChild(n, "$text"),
                    a = t.checkChild(r, "$text"),
                    i = t.getLimitElement(n),
                    s = t.getLimitElement(r);
                  if (i === s) {
                    if (o && a) return null;
                    if (
                      (function (e, t, n) {
                        const r =
                            (e.nodeAfter && !n.isLimit(e.nodeAfter)) ||
                            n.checkChild(e, "$text"),
                          o =
                            (t.nodeBefore && !n.isLimit(t.nodeBefore)) ||
                            n.checkChild(t, "$text");
                        return r || o;
                      })(n, r, t)
                    ) {
                      const e =
                          n.nodeAfter && t.isObject(n.nodeAfter)
                            ? null
                            : t.getNearestSelectionRange(n, "forward"),
                        o =
                          r.nodeBefore && t.isObject(r.nodeBefore)
                            ? null
                            : t.getNearestSelectionRange(r, "backward"),
                        a = e ? e.start : n,
                        i = o ? o.start : r;
                      return new zo(a, i);
                    }
                  }
                  const l = i && !i.is("rootElement"),
                    c = s && !s.is("rootElement");
                  if (l || c) {
                    const e =
                        n.nodeAfter &&
                        r.nodeBefore &&
                        n.nodeAfter.parent === r.nodeBefore.parent,
                      o = l && (!e || !Ri(n.nodeAfter, t)),
                      a = c && (!e || !Ri(r.nodeBefore, t));
                    let u = n,
                      d = r;
                    return (
                      o && (u = Ho._createBefore(Ii(i, t))),
                      a && (d = Ho._createAfter(Ii(s, t))),
                      new zo(u, d)
                    );
                  }
                  return null;
                })(e, t);
          }
          function Ii(e, t) {
            let n = e,
              r = n;
            for (; t.isLimit(r) && r.parent; ) (n = r), (r = r.parent);
            return n;
          }
          function Ri(e, t) {
            return e && t.isObject(e);
          }
          class Yi {
            constructor() {
              (this.markers = new xi()),
                (this.document = new wi(this)),
                (this.schema = new xa()),
                (this._pendingChanges = []),
                (this._currentWriter = null),
                [
                  "insertContent",
                  "deleteContent",
                  "modifySelection",
                  "getSelectedContent",
                  "applyOperation",
                ].forEach((e) => this.decorate(e)),
                this.on(
                  "applyOperation",
                  (e, t) => {
                    t[0]._validate();
                  },
                  { priority: "highest" }
                ),
                this.schema.register("$root", { isLimit: !0 }),
                this.schema.register("$block", {
                  allowIn: "$root",
                  isBlock: !0,
                }),
                this.schema.register("$text", {
                  allowIn: "$block",
                  isInline: !0,
                }),
                this.schema.register("$clipboardHolder", {
                  allowContentOf: "$root",
                  isLimit: !0,
                }),
                this.schema.extend("$text", { allowIn: "$clipboardHolder" }),
                this.schema.register("$marker"),
                this.schema.addChildCheck((e, t) => {
                  if ("$marker" === t.name) return !0;
                }),
                (function (e) {
                  e.document.registerPostFixer((t) =>
                    (function (e, t) {
                      const n = t.document.selection,
                        r = t.schema,
                        o = [];
                      let a = !1;
                      for (const e of n.getRanges()) {
                        const t = Ai(e, r);
                        t ? (o.push(t), (a = !0)) : o.push(e);
                      }
                      if (a) {
                        let t = o;
                        if (o.length > 1) {
                          const e = o[0].start,
                            n = o[o.length - 1].end;
                          t = [new zo(e, n)];
                        }
                        e.setSelection(t, { backward: n.isBackward });
                      }
                    })(t, e)
                  );
                })(this);
            }
            change(e) {
              return 0 === this._pendingChanges.length
                ? (this._pendingChanges.push({ batch: new Ha(), callback: e }),
                  this._runPendingChanges()[0])
                : e(this._currentWriter);
            }
            enqueueChange(e, t) {
              "string" == typeof e
                ? (e = new Ha(e))
                : "function" == typeof e && ((t = e), (e = new Ha())),
                this._pendingChanges.push({ batch: e, callback: t }),
                1 == this._pendingChanges.length && this._runPendingChanges();
            }
            applyOperation(e) {
              e._execute();
            }
            insertContent(e, t, n) {
              return (function (e, t, n, r) {
                return e.change((o) => {
                  let a;
                  const i = (a = n
                    ? n instanceof Go || n instanceof Zo
                      ? n
                      : o.createSelection(n, r)
                    : e.document.selection).getFirstPosition();
                  a.isCollapsed ||
                    e.deleteContent(a, { doNotAutoparagraph: !0 });
                  const s = new Ti(e, o, i);
                  let l;
                  (l = t.is("documentFragment") ? t.getChildren() : [t]),
                    s.handleNodes(l, { isFirst: !0, isLast: !0 });
                  const c = s.getSelectionRange();
                  c && (a instanceof Zo ? o.setSelection(c) : a.setTo(c));
                  const u = s.getAffectedRange() || e.createRange(i);
                  return s.destroy(), u;
                });
              })(this, e, t, n);
            }
            deleteContent(e, t) {
              !(function (e, t, n = {}) {
                if (t.isCollapsed) return;
                const r = t.getFirstRange();
                if ("$graveyard" == r.root.rootName) return;
                const o = e.schema;
                e.change((e) => {
                  if (
                    !n.doNotResetEntireContent &&
                    (function (e, t) {
                      const n = e.getLimitElement(t);
                      if (!t.containsEntireContent(n)) return !1;
                      const r = t.getFirstRange();
                      return (
                        r.start.parent != r.end.parent &&
                        e.checkChild(n, "paragraph")
                      );
                    })(o, t)
                  )
                    return void (function (e, t) {
                      const n = e.model.schema.getLimitElement(t);
                      e.remove(e.createRangeIn(n)),
                        Si(e, e.createPositionAt(n, 0), t);
                    })(e, t);
                  const a = r.start,
                    i = Ei.fromPosition(r.end, "toNext");
                  if (
                    (r.start.isTouching(r.end) || e.remove(r),
                    n.leaveUnmerged ||
                      ((function e(t, n, r) {
                        const o = n.parent,
                          a = r.parent;
                        if (
                          o != a &&
                          !t.model.schema.isLimit(o) &&
                          !t.model.schema.isLimit(a) &&
                          (function (e, t, n) {
                            const r = new zo(e, t);
                            for (const e of r.getWalker())
                              if (n.isLimit(e.item)) return !1;
                            return !0;
                          })(n, r, t.model.schema)
                        ) {
                          for (
                            n = t.createPositionAfter(o),
                              (r = t.createPositionBefore(a)).isEqual(n) ||
                                t.insert(a, n),
                              t.merge(n);
                            r.parent.isEmpty;

                          ) {
                            const e = r.parent;
                            (r = t.createPositionBefore(e)), t.remove(e);
                          }
                          e(t, n, r);
                        }
                      })(e, a, i),
                      o.removeDisallowedAttributes(a.parent.getChildren(), e)),
                    Di(e, t, a),
                    (function (e, t) {
                      const n = e.checkChild(t, "$text"),
                        r = e.checkChild(t, "paragraph");
                      return !n && r;
                    })(o, a))
                  ) {
                    const r = o.getNearestSelectionRange(a);
                    n.doNotAutoparagraph && r ? Di(e, t, r) : Si(e, a, t);
                  }
                  i.detach();
                });
              })(this, e, t);
            }
            modifySelection(e, t) {
              !(function (e, t, n = {}) {
                const r = e.schema,
                  o = "backward" != n.direction,
                  a = n.unit ? n.unit : "character",
                  i = t.focus,
                  s = new jo({
                    boundaries: (function (e, t) {
                      const n = e.root,
                        r = Ho._createAt(n, t ? "end" : 0);
                      return t ? new zo(e, r) : new zo(r, e);
                    })(i, o),
                    singleCharacters: !0,
                    direction: o ? "forward" : "backward",
                  }),
                  l = { walker: s, schema: r, isForward: o, unit: a };
                let c;
                for (; (c = s.next()); ) {
                  if (c.done) return;
                  const n = Ci(l, c.value);
                  if (n)
                    return void (t instanceof Zo
                      ? e.change((e) => {
                          e.setSelectionFocus(n);
                        })
                      : t.setFocus(n));
                }
              })(this, e, t);
            }
            getSelectedContent(e) {
              return (function (e, t) {
                return e.change((e) => {
                  const n = e.createDocumentFragment(),
                    r = t.getFirstRange();
                  if (!r || r.isCollapsed) return n;
                  const o = r.start.root,
                    a = r.start.getCommonPath(r.end),
                    i = o.getNodeByPath(a);
                  let s;
                  const l =
                    (s =
                      r.start.parent == r.end.parent
                        ? r
                        : e.createRange(
                            e.createPositionAt(i, r.start.path[a.length]),
                            e.createPositionAt(i, r.end.path[a.length] + 1)
                          )).end.offset - s.start.offset;
                  for (const t of s.getItems({ shallow: !0 }))
                    t.is("textProxy")
                      ? e.appendText(t.data, t.getAttributes(), n)
                      : e.append(t._clone(!0), n);
                  if (s != r) {
                    const t = r._getTransformedByMove(
                        s.start,
                        e.createPositionAt(n, 0),
                        l
                      )[0],
                      o = e.createRange(e.createPositionAt(n, 0), t.start);
                    Ni(e.createRange(t.end, e.createPositionAt(n, "end")), e),
                      Ni(o, e);
                  }
                  return n;
                });
              })(this, e);
            }
            hasContent(e, t) {
              const n = e instanceof Yo ? zo._createIn(e) : e;
              if (n.isCollapsed) return !1;
              for (const e of this.markers.getMarkersIntersectingRange(n))
                if (e.affectsData) return !0;
              const { ignoreWhitespaces: r = !1 } = t || {};
              for (const e of n.getItems())
                if (e.is("textProxy")) {
                  if (!r) return !0;
                  if (-1 !== e.data.search(/\S/)) return !0;
                } else if (this.schema.isObject(e)) return !0;
              return !1;
            }
            createPositionFromPath(e, t, n) {
              return new Ho(e, t, n);
            }
            createPositionAt(e, t) {
              return Ho._createAt(e, t);
            }
            createPositionAfter(e) {
              return Ho._createAfter(e);
            }
            createPositionBefore(e) {
              return Ho._createBefore(e);
            }
            createRange(e, t) {
              return new zo(e, t);
            }
            createRangeIn(e) {
              return zo._createIn(e);
            }
            createRangeOn(e) {
              return zo._createOn(e);
            }
            createSelection(e, t, n) {
              return new Go(e, t, n);
            }
            createBatch(e) {
              return new Ha(e);
            }
            destroy() {
              this.document.destroy(), this.stopListening();
            }
            _runPendingChanges() {
              const e = [];
              for (this.fire("_beforeChanges"); this._pendingChanges.length; ) {
                const t = this._pendingChanges[0].batch;
                this._currentWriter = new si(this, t);
                const n = this._pendingChanges[0].callback(this._currentWriter);
                e.push(n),
                  this.document._handleChangeBlock(this._currentWriter),
                  this._pendingChanges.shift(),
                  (this._currentWriter = null);
              }
              return this.fire("_afterChanges"), e;
            }
          }
          Ct(Yi, on);
          class ji {
            constructor() {
              this._listener = Object.create(Sr);
            }
            listenTo(e) {
              this._listener.listenTo(e, "keydown", (e, t) => {
                this._listener.fire("_keydown:" + jn(t), t);
              });
            }
            set(e, t, n = {}) {
              const r = Fn(e),
                o = n.priority;
              this._listener.listenTo(
                this._listener,
                "_keydown:" + r,
                (e, n) => {
                  t(n, () => {
                    n.preventDefault(), n.stopPropagation(), e.stop();
                  }),
                    (e.return = !0);
                },
                { priority: o }
              );
            }
            press(e) {
              return !!this._listener.fire("_keydown:" + jn(e), e);
            }
            destroy() {
              this._listener.stopListening();
            }
          }
          class Fi extends ji {
            constructor(e) {
              super(), (this.editor = e);
            }
            set(e, t, n = {}) {
              if ("string" == typeof t) {
                const e = t;
                t = (t, n) => {
                  this.editor.execute(e), n();
                };
              }
              super.set(e, t, n);
            }
          }
          class Hi {
            constructor(e) {
              const t = this.constructor.builtinPlugins;
              (this.config = new mt(e, this.constructor.defaultConfig)),
                this.config.define("plugins", t),
                (this.plugins = new ga(this, t)),
                (this.commands = new _a());
              const n = this.config.get("language") || {};
              (this.locale = new ba({
                uiLanguage: "string" == typeof n ? n : n.ui,
                contentLanguage: this.config.get("language.content"),
              })),
                (this.t = this.locale.t),
                this.set("state", "initializing"),
                this.once("ready", () => (this.state = "ready"), {
                  priority: "high",
                }),
                this.once("destroy", () => (this.state = "destroyed"), {
                  priority: "high",
                }),
                this.set("isReadOnly", !1),
                (this.model = new Yi()),
                (this.data = new Ra(this.model)),
                (this.editing = new ma(this.model)),
                this.editing.view.document.bind("isReadOnly").to(this),
                (this.conversion = new Ya(
                  [
                    this.editing.downcastDispatcher,
                    this.data.downcastDispatcher,
                  ],
                  this.data.upcastDispatcher
                )),
                this.conversion.addAlias(
                  "dataDowncast",
                  this.data.downcastDispatcher
                ),
                this.conversion.addAlias(
                  "editingDowncast",
                  this.editing.downcastDispatcher
                ),
                (this.keystrokes = new Fi(this)),
                this.keystrokes.listenTo(this.editing.view.document);
            }
            initPlugins() {
              const e = this.config,
                t = e.get("plugins") || [],
                n = e.get("removePlugins") || [],
                r = e.get("extraPlugins") || [];
              return this.plugins.init(t.concat(r), n);
            }
            destroy() {
              let e = Promise.resolve();
              return (
                "initializing" == this.state &&
                  (e = new Promise((e) => this.once("ready", e))),
                e
                  .then(() => {
                    this.fire("destroy"),
                      this.stopListening(),
                      this.commands.destroy();
                  })
                  .then(() => this.plugins.destroy())
                  .then(() => {
                    this.model.destroy(),
                      this.data.destroy(),
                      this.editing.destroy(),
                      this.keystrokes.destroy();
                  })
              );
            }
            execute(...e) {
              this.commands.execute(...e);
            }
          }
          Ct(Hi, on);
          var zi = {
              setData(e) {
                this.data.set(e);
              },
              getData(e) {
                return this.data.get(e);
              },
            },
            Bi = {
              updateSourceElement() {
                if (!this.sourceElement)
                  throw new _t.b(
                    "editor-missing-sourceelement: Cannot update the source element of a detached editor.",
                    this
                  );
                !(function (e, t) {
                  e instanceof HTMLTextAreaElement && (e.value = t),
                    (e.innerHTML = t);
                })(this.sourceElement, this.data.get());
              },
            };
          class Ui {
            getHtml(e) {
              const t = document.implementation
                .createHTMLDocument("")
                .createElement("div");
              return t.appendChild(e), t.innerHTML;
            }
          }
          class Vi {
            constructor() {
              (this._domParser = new DOMParser()),
                (this._domConverter = new xr({ blockFiller: nr })),
                (this._htmlWriter = new Ui());
            }
            toData(e) {
              const t = this._domConverter.viewToDom(e, document);
              return this._htmlWriter.getHtml(t);
            }
            toView(e) {
              const t = this._toDom(e);
              return this._domConverter.domToView(t);
            }
            _toDom(e) {
              const t = this._domParser.parseFromString(e, "text/html"),
                n = t.createDocumentFragment(),
                r = t.body.childNodes;
              for (; r.length > 0; ) n.appendChild(r[0]);
              return n;
            }
          }
          class Wi {
            constructor(e) {
              (this.editor = e), (this._components = new Map());
            }
            *names() {
              for (const e of this._components.values()) yield e.originalName;
            }
            add(e, t) {
              if (this.has(e))
                throw new _t.b(
                  "componentfactory-item-exists: The item already exists in the component factory.",
                  this,
                  { name: e }
                );
              this._components.set(qi(e), { callback: t, originalName: e });
            }
            create(e) {
              if (!this.has(e))
                throw new _t.b(
                  "componentfactory-item-missing: The required component is not registered in the factory.",
                  this,
                  { name: e }
                );
              return this._components.get(qi(e)).callback(this.editor.locale);
            }
            has(e) {
              return this._components.has(qi(e));
            }
          }
          function qi(e) {
            return String(e).toLowerCase();
          }
          class Gi {
            constructor() {
              this.set("isFocused", !1),
                this.set("focusedElement", null),
                (this._elements = new Set()),
                (this._nextEventLoopTimeout = null);
            }
            add(e) {
              if (this._elements.has(e))
                throw new _t.b("focusTracker-add-element-already-exist", this);
              this.listenTo(e, "focus", () => this._focus(e), {
                useCapture: !0,
              }),
                this.listenTo(e, "blur", () => this._blur(), {
                  useCapture: !0,
                }),
                this._elements.add(e);
            }
            remove(e) {
              e === this.focusedElement && this._blur(e),
                this._elements.has(e) &&
                  (this.stopListening(e), this._elements.delete(e));
            }
            destroy() {
              this.stopListening();
            }
            _focus(e) {
              clearTimeout(this._nextEventLoopTimeout),
                (this.focusedElement = e),
                (this.isFocused = !0);
            }
            _blur() {
              clearTimeout(this._nextEventLoopTimeout),
                (this._nextEventLoopTimeout = setTimeout(() => {
                  (this.focusedElement = null), (this.isFocused = !1);
                }, 0));
            }
          }
          Ct(Gi, Sr), Ct(Gi, on);
          class Ji {
            constructor(e) {
              (this.editor = e),
                (this.componentFactory = new Wi(e)),
                (this.focusTracker = new Gi()),
                (this._editableElementsMap = new Map()),
                this.listenTo(e.editing.view.document, "layoutChanged", () =>
                  this.update()
                );
            }
            get element() {
              return null;
            }
            update() {
              this.fire("update");
            }
            destroy() {
              this.stopListening(), this.focusTracker.destroy();
              for (const e of this._editableElementsMap.values())
                e.ckeditorInstance = null;
              this._editableElementsMap = new Map();
            }
            setEditableElement(e, t) {
              this._editableElementsMap.set(e, t),
                t.ckeditorInstance || (t.ckeditorInstance = this.editor);
            }
            getEditableElement(e = "main") {
              return this._editableElementsMap.get(e);
            }
            getEditableElementsNames() {
              return this._editableElementsMap.keys();
            }
            get _editableElements() {
              return (
                console.warn(
                  "editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",
                  { editorUI: this }
                ),
                this._editableElementsMap
              );
            }
          }
          Ct(Ji, xt), n(14);
          const Ki = new WeakMap();
          function Qi(e) {
            const { view: t, element: n, text: r, isDirectHost: o = !0 } = e,
              a = t.document;
            Ki.has(a) ||
              (Ki.set(a, new Map()), a.registerPostFixer((e) => Xi(a, e))),
              Ki.get(a).set(n, { text: r, isDirectHost: o }),
              t.change((e) => Xi(a, e));
          }
          function Xi(e, t) {
            const n = Ki.get(e);
            let r = !1;
            for (const [e, o] of n) $i(t, e, o) && (r = !0);
            return r;
          }
          function $i(e, t, n) {
            const { text: r, isDirectHost: o } = n,
              a = o
                ? t
                : (function (e) {
                    if (1 === e.childCount) {
                      const t = e.getChild(0);
                      if (t.is("element") && !t.is("uiElement")) return t;
                    }
                    return null;
                  })(t);
            let i = !1;
            return (
              !!a &&
              ((n.hostElement = a),
              a.getAttribute("data-placeholder") !== r &&
                (e.setAttribute("data-placeholder", r, a), (i = !0)),
              (function (e) {
                const t = e.document;
                if (!t) return !1;
                const n = !Array.from(e.getChildren()).some(
                  (e) => !e.is("uiElement")
                );
                if (!t.isFocused && n) return !0;
                const r = t.selection.anchor;
                return !(!n || !r || r.parent === e);
              })(a)
                ? (function (e, t) {
                    return (
                      !t.hasClass("ck-placeholder") &&
                      (e.addClass("ck-placeholder", t), !0)
                    );
                  })(e, a) && (i = !0)
                : (function (e, t) {
                    return (
                      !!t.hasClass("ck-placeholder") &&
                      (e.removeClass("ck-placeholder", t), !0)
                    );
                  })(e, a) && (i = !0),
              i)
            );
          }
          class Zi {
            constructor() {
              this._replacedElements = [];
            }
            replace(e, t) {
              this._replacedElements.push({ element: e, newElement: t }),
                (e.style.display = "none"),
                t && e.parentNode.insertBefore(t, e.nextSibling);
            }
            restore() {
              this._replacedElements.forEach(
                ({ element: e, newElement: t }) => {
                  (e.style.display = ""), t && t.remove();
                }
              ),
                (this._replacedElements = []);
            }
          }
          class es extends Ji {
            constructor(e, t) {
              super(e),
                (this.view = t),
                (this._toolbarConfig = (function (e) {
                  return Array.isArray(e)
                    ? { items: e }
                    : e
                    ? Object.assign({ items: [] }, e)
                    : { items: [] };
                })(e.config.get("toolbar"))),
                (this._elementReplacer = new Zi());
            }
            get element() {
              return this.view.element;
            }
            init(e) {
              const t = this.editor,
                n = this.view,
                r = t.editing.view,
                o = n.editable,
                a = r.document.getRoot();
              (o.name = a.rootName), n.render();
              const i = o.element;
              this.setEditableElement(o.name, i),
                this.focusTracker.add(i),
                n.editable.bind("isFocused").to(this.focusTracker),
                r.attachDomRoot(i),
                e && this._elementReplacer.replace(e, this.element),
                this._initPlaceholder(),
                this._initToolbar(),
                this.fire("ready");
            }
            destroy() {
              const e = this.view,
                t = this.editor.editing.view;
              this._elementReplacer.restore(),
                t.detachDomRoot(e.editable.name),
                e.destroy(),
                super.destroy();
            }
            _initToolbar() {
              const e = this.editor,
                t = this.view,
                n = e.editing.view;
              t.stickyPanel.bind("isActive").to(this.focusTracker, "isFocused"),
                (t.stickyPanel.limiterElement = t.element),
                this._toolbarConfig.viewportTopOffset &&
                  (t.stickyPanel.viewportTopOffset = this._toolbarConfig.viewportTopOffset),
                t.toolbar.fillFromConfig(
                  this._toolbarConfig.items,
                  this.componentFactory
                ),
                (function ({
                  origin: e,
                  originKeystrokeHandler: t,
                  originFocusTracker: n,
                  toolbar: r,
                  beforeFocus: o,
                  afterBlur: a,
                }) {
                  n.add(r.element),
                    t.set("Alt+F10", (e, t) => {
                      n.isFocused &&
                        !r.focusTracker.isFocused &&
                        (o && o(), r.focus(), t());
                    }),
                    r.keystrokes.set("Esc", (t, n) => {
                      r.focusTracker.isFocused && (e.focus(), a && a(), n());
                    });
                })({
                  origin: n,
                  originFocusTracker: this.focusTracker,
                  originKeystrokeHandler: e.keystrokes,
                  toolbar: t.toolbar,
                });
            }
            _initPlaceholder() {
              const e = this.editor,
                t = e.editing.view,
                n = t.document.getRoot(),
                r = e.sourceElement,
                o =
                  e.config.get("placeholder") ||
                  (r &&
                    "textarea" === r.tagName.toLowerCase() &&
                    r.getAttribute("placeholder"));
              o && Qi({ view: t, element: n, text: o, isDirectHost: !1 });
            }
          }
          class ts extends kn {
            constructor(e) {
              super({ idProperty: "viewUid" }),
                this.on("add", (e, t, n) => {
                  t.isRendered || t.render(),
                    t.element &&
                      this._parentElement &&
                      this._parentElement.insertBefore(
                        t.element,
                        this._parentElement.children[n]
                      );
                }),
                this.on("remove", (e, t) => {
                  t.element && this._parentElement && t.element.remove();
                }),
                (this.locale = e),
                (this._parentElement = null);
            }
            destroy() {
              this.map((e) => e.destroy());
            }
            setParent(e) {
              this._parentElement = e;
            }
            delegate(...e) {
              if (
                !e.length ||
                !(function (e) {
                  return e.every((e) => "string" == typeof e);
                })(e)
              )
                throw new _t.b(
                  "ui-viewcollection-delegate-wrong-events: All event names must be strings.",
                  this
                );
              return {
                to: (t) => {
                  for (const n of this) for (const r of e) n.delegate(r).to(t);
                  this.on("add", (n, r) => {
                    for (const n of e) r.delegate(n).to(t);
                  }),
                    this.on("remove", (n, r) => {
                      for (const n of e) r.stopDelegating(n, t);
                    });
                },
              };
            }
          }
          class ns {
            constructor(e) {
              Object.assign(this, ds(us(e))),
                (this._isRendered = !1),
                (this._revertData = null);
            }
            render() {
              const e = this._renderNode({ intoFragment: !0 });
              return (this._isRendered = !0), e;
            }
            apply(e) {
              return (
                (this._revertData = {
                  children: [],
                  bindings: [],
                  attributes: {},
                }),
                this._renderNode({
                  node: e,
                  isApplying: !0,
                  revertData: this._revertData,
                }),
                e
              );
            }
            revert(e) {
              if (!this._revertData)
                throw new _t.b(
                  "ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",
                  [this, e]
                );
              this._revertTemplateFromNode(e, this._revertData);
            }
            *getViews() {
              yield* (function* e(t) {
                if (t.children)
                  for (const n of t.children)
                    gs(n) ? yield n : _s(n) && (yield* e(n));
              })(this);
            }
            static bind(e, t) {
              return {
                to: (n, r) =>
                  new os({
                    eventNameOrFunction: n,
                    attribute: n,
                    observable: e,
                    emitter: t,
                    callback: r,
                  }),
                if: (n, r, o) =>
                  new as({
                    observable: e,
                    emitter: t,
                    attribute: n,
                    valueIfTrue: r,
                    callback: o,
                  }),
              };
            }
            static extend(e, t) {
              if (e._isRendered)
                throw new _t.b(
                  "template-extend-render: Attempting to extend a template which has already been rendered.",
                  [this, e]
                );
              !(function e(t, n) {
                if (
                  (n.attributes &&
                    (t.attributes || (t.attributes = {}),
                    fs(t.attributes, n.attributes)),
                  n.eventListeners &&
                    (t.eventListeners || (t.eventListeners = {}),
                    fs(t.eventListeners, n.eventListeners)),
                  n.text && t.text.push(...n.text),
                  n.children && n.children.length)
                ) {
                  if (t.children.length != n.children.length)
                    throw new _t.b(
                      "ui-template-extend-children-mismatch: The number of children in extended definition does not match.",
                      t
                    );
                  let r = 0;
                  for (const o of n.children) e(t.children[r++], o);
                }
              })(e, ds(us(t)));
            }
            _renderNode(e) {
              let t;
              if (
                (t = e.node
                  ? this.tag && this.text
                  : this.tag
                  ? this.text
                  : !this.text)
              )
                throw new _t.b(
                  'ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',
                  this
                );
              return this.text ? this._renderText(e) : this._renderElement(e);
            }
            _renderElement(e) {
              let t = e.node;
              return (
                t ||
                  (t = e.node = document.createElementNS(
                    this.ns || "http://www.w3.org/1999/xhtml",
                    this.tag
                  )),
                this._renderAttributes(e),
                this._renderElementChildren(e),
                this._setUpListeners(e),
                t
              );
            }
            _renderText(e) {
              let t = e.node;
              return (
                t
                  ? (e.revertData.text = t.textContent)
                  : (t = e.node = document.createTextNode("")),
                is(this.text)
                  ? this._bindToObservable({
                      schema: this.text,
                      updater: (function (e) {
                        return {
                          set(t) {
                            e.textContent = t;
                          },
                          remove() {
                            e.textContent = "";
                          },
                        };
                      })(t),
                      data: e,
                    })
                  : (t.textContent = this.text.join("")),
                t
              );
            }
            _renderAttributes(e) {
              let t, n, r, o;
              if (!this.attributes) return;
              const a = e.node,
                i = e.revertData;
              for (t in this.attributes)
                if (
                  ((r = a.getAttribute(t)),
                  (n = this.attributes[t]),
                  i && (i.attributes[t] = r),
                  (o = T(n[0]) && n[0].ns ? n[0].ns : null),
                  is(n))
                ) {
                  const s = o ? n[0].value : n;
                  i && bs(t) && s.unshift(r),
                    this._bindToObservable({
                      schema: s,
                      updater: ls(a, t, o),
                      data: e,
                    });
                } else
                  "style" == t && "string" != typeof n[0]
                    ? this._renderStyleAttribute(n[0], e)
                    : (i && r && bs(t) && n.unshift(r),
                      ms(
                        (n = n
                          .map((e) => (e && e.value) || e)
                          .reduce((e, t) => e.concat(t), [])
                          .reduce(ps, ""))
                      ) || a.setAttributeNS(o, t, n));
            }
            _renderStyleAttribute(e, t) {
              const n = t.node;
              for (const r in e) {
                const o = e[r];
                is(o)
                  ? this._bindToObservable({
                      schema: [o],
                      updater: cs(n, r),
                      data: t,
                    })
                  : (n.style[r] = o);
              }
            }
            _renderElementChildren(e) {
              const t = e.node,
                n = e.intoFragment ? document.createDocumentFragment() : t,
                r = e.isApplying;
              let o = 0;
              for (const a of this.children)
                if (vs(a)) {
                  if (!r) {
                    a.setParent(t);
                    for (const e of a) n.appendChild(e.element);
                  }
                } else if (gs(a))
                  r || (a.isRendered || a.render(), n.appendChild(a.element));
                else if (gr(a)) n.appendChild(a);
                else if (r) {
                  const t = { children: [], bindings: [], attributes: {} };
                  e.revertData.children.push(t),
                    a._renderNode({
                      node: n.childNodes[o++],
                      isApplying: !0,
                      revertData: t,
                    });
                } else n.appendChild(a.render());
              e.intoFragment && t.appendChild(n);
            }
            _setUpListeners(e) {
              if (this.eventListeners)
                for (const t in this.eventListeners) {
                  const n = this.eventListeners[t].map((n) => {
                    const [r, o] = t.split("@");
                    return n.activateDomEventListener(r, o, e);
                  });
                  e.revertData && e.revertData.bindings.push(n);
                }
            }
            _bindToObservable({ schema: e, updater: t, data: n }) {
              const r = n.revertData;
              ss(e, t, n);
              const o = e
                .filter((e) => !ms(e))
                .filter((e) => e.observable)
                .map((r) => r.activateAttributeListener(e, t, n));
              r && r.bindings.push(o);
            }
            _revertTemplateFromNode(e, t) {
              for (const e of t.bindings) for (const t of e) t();
              if (t.text) e.textContent = t.text;
              else {
                for (const n in t.attributes) {
                  const r = t.attributes[n];
                  null === r ? e.removeAttribute(n) : e.setAttribute(n, r);
                }
                for (let n = 0; n < t.children.length; ++n)
                  this._revertTemplateFromNode(e.childNodes[n], t.children[n]);
              }
            }
          }
          Ct(ns, xt);
          class rs {
            constructor(e) {
              Object.assign(this, e);
            }
            getValue(e) {
              const t = this.observable[this.attribute];
              return this.callback ? this.callback(t, e) : t;
            }
            activateAttributeListener(e, t, n) {
              const r = () => ss(e, t, n);
              return (
                this.emitter.listenTo(
                  this.observable,
                  "change:" + this.attribute,
                  r
                ),
                () => {
                  this.emitter.stopListening(
                    this.observable,
                    "change:" + this.attribute,
                    r
                  );
                }
              );
            }
          }
          class os extends rs {
            activateDomEventListener(e, t, n) {
              const r = (e, n) => {
                (t && !n.target.matches(t)) ||
                  ("function" == typeof this.eventNameOrFunction
                    ? this.eventNameOrFunction(n)
                    : this.observable.fire(this.eventNameOrFunction, n));
              };
              return (
                this.emitter.listenTo(n.node, e, r),
                () => {
                  this.emitter.stopListening(n.node, e, r);
                }
              );
            }
          }
          class as extends rs {
            getValue(e) {
              return !ms(super.getValue(e)) && (this.valueIfTrue || !0);
            }
          }
          function is(e) {
            return (
              !!e &&
              (e.value && (e = e.value),
              Array.isArray(e) ? e.some(is) : e instanceof rs)
            );
          }
          function ss(e, t, { node: n }) {
            let r = (function (e, t) {
              return e.map((e) => (e instanceof rs ? e.getValue(t) : e));
            })(e, n);
            ms(
              (r =
                1 == e.length && e[0] instanceof as ? r[0] : r.reduce(ps, ""))
            )
              ? t.remove()
              : t.set(r);
          }
          function ls(e, t, n) {
            return {
              set(r) {
                e.setAttributeNS(n, t, r);
              },
              remove() {
                e.removeAttributeNS(n, t);
              },
            };
          }
          function cs(e, t) {
            return {
              set(n) {
                e.style[t] = n;
              },
              remove() {
                e.style[t] = null;
              },
            };
          }
          function us(e) {
            return pt(e, (e) => {
              if (e && (e instanceof rs || _s(e) || gs(e) || vs(e))) return e;
            });
          }
          function ds(e) {
            if (
              ("string" == typeof e
                ? (e = (function (e) {
                    return { text: [e] };
                  })(e))
                : e.text &&
                  (function (e) {
                    Array.isArray(e.text) || (e.text = [e.text]);
                  })(e),
              e.on &&
                ((e.eventListeners = (function (e) {
                  for (const t in e) hs(e, t);
                  return e;
                })(e.on)),
                delete e.on),
              !e.text)
            ) {
              e.attributes &&
                (function (e) {
                  for (const t in e)
                    e[t].value && (e[t].value = [].concat(e[t].value)),
                      hs(e, t);
                })(e.attributes);
              const t = [];
              if (e.children)
                if (vs(e.children)) t.push(e.children);
                else
                  for (const n of e.children)
                    _s(n) || gs(n) || gr(n) ? t.push(n) : t.push(new ns(n));
              e.children = t;
            }
            return e;
          }
          function hs(e, t) {
            Array.isArray(e[t]) || (e[t] = [e[t]]);
          }
          function ps(e, t) {
            return ms(t) ? e : ms(e) ? t : `${e} ${t}`;
          }
          function fs(e, t) {
            for (const n in t) e[n] ? e[n].push(...t[n]) : (e[n] = t[n]);
          }
          function ms(e) {
            return !e && 0 !== e;
          }
          function gs(e) {
            return e instanceof ys;
          }
          function _s(e) {
            return e instanceof ns;
          }
          function vs(e) {
            return e instanceof ts;
          }
          function bs(e) {
            return "class" == e || "style" == e;
          }
          n(16);
          class ys {
            constructor(e) {
              (this.element = null),
                (this.isRendered = !1),
                (this.locale = e),
                (this.t = e && e.t),
                (this._viewCollections = new kn()),
                (this._unboundChildren = this.createCollection()),
                this._viewCollections.on("add", (t, n) => {
                  n.locale = e;
                }),
                this.decorate("render");
            }
            get bindTemplate() {
              return this._bindTemplate
                ? this._bindTemplate
                : (this._bindTemplate = ns.bind(this, this));
            }
            createCollection() {
              const e = new ts();
              return this._viewCollections.add(e), e;
            }
            registerChild(e) {
              Yt(e) || (e = [e]);
              for (const t of e) this._unboundChildren.add(t);
            }
            deregisterChild(e) {
              Yt(e) || (e = [e]);
              for (const t of e) this._unboundChildren.remove(t);
            }
            setTemplate(e) {
              this.template = new ns(e);
            }
            extendTemplate(e) {
              ns.extend(this.template, e);
            }
            render() {
              if (this.isRendered)
                throw new _t.b(
                  "ui-view-render-already-rendered: This View has already been rendered.",
                  this
                );
              this.template &&
                ((this.element = this.template.render()),
                this.registerChild(this.template.getViews())),
                (this.isRendered = !0);
            }
            destroy() {
              this.stopListening(),
                this._viewCollections.map((e) => e.destroy()),
                this.template &&
                  this.template._revertData &&
                  this.template.revert(this.element);
            }
          }
          Ct(ys, Sr), Ct(ys, on), n(18);
          class ws extends ys {
            constructor(e) {
              super(e), (this.body = this.createCollection());
            }
            render() {
              super.render(), this._renderBodyCollection();
            }
            destroy() {
              return this._bodyCollectionContainer.remove(), super.destroy();
            }
            _renderBodyCollection() {
              const e = this.locale,
                t = (this._bodyCollectionContainer = new ns({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-reset_all",
                      "ck-body",
                      "ck-rounded-corners",
                    ],
                    dir: e.uiLanguageDirection,
                  },
                  children: this.body,
                }).render());
              document.body.appendChild(t);
            }
          }
          n(20);
          class ks extends ys {
            constructor(e) {
              super(e), this.set("text"), this.set("for");
              const t = this.bindTemplate;
              this.setTemplate({
                tag: "label",
                attributes: { class: ["ck", "ck-label"], for: t.to("for") },
                children: [{ text: t.to("text") }],
              });
            }
          }
          class xs extends ws {
            constructor(e) {
              super(e);
              const t = bt();
              (this.top = this.createCollection()),
                (this.main = this.createCollection()),
                (this._voiceLabelView = this._createVoiceLabel(t)),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-reset",
                      "ck-editor",
                      "ck-rounded-corners",
                    ],
                    role: "application",
                    dir: e.uiLanguageDirection,
                    lang: e.uiLanguage,
                    "aria-labelledby": "ck-editor__aria-label_" + t,
                  },
                  children: [
                    this._voiceLabelView,
                    {
                      tag: "div",
                      attributes: {
                        class: ["ck", "ck-editor__top", "ck-reset_all"],
                        role: "presentation",
                      },
                      children: this.top,
                    },
                    {
                      tag: "div",
                      attributes: {
                        class: ["ck", "ck-editor__main"],
                        role: "presentation",
                      },
                      children: this.main,
                    },
                  ],
                });
            }
            _createVoiceLabel(e) {
              const t = this.t,
                n = new ks();
              return (
                (n.text = t("bn")),
                n.extendTemplate({
                  attributes: {
                    id: "ck-editor__aria-label_" + e,
                    class: "ck-voice-label",
                  },
                }),
                n
              );
            }
          }
          class Ms extends ys {
            constructor(e, t, n) {
              super(e),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-content",
                      "ck-editor__editable",
                      "ck-rounded-corners",
                    ],
                    lang: e.contentLanguage,
                    dir: e.contentLanguageDirection,
                  },
                }),
                (this.name = null),
                this.set("isFocused", !1),
                (this._editableElement = n),
                (this._hasExternalElement = !!this._editableElement),
                (this._editingView = t);
            }
            render() {
              super.render(),
                this._hasExternalElement
                  ? this.template.apply((this.element = this._editableElement))
                  : (this._editableElement = this.element),
                this.on("change:isFocused", () =>
                  this._updateIsFocusedClasses()
                ),
                this._updateIsFocusedClasses();
            }
            destroy() {
              this._hasExternalElement &&
                this.template.revert(this._editableElement),
                super.destroy();
            }
            _updateIsFocusedClasses() {
              const e = this._editingView;
              function t(t) {
                e.change((n) => {
                  const r = e.document.getRoot(t.name);
                  n.addClass(t.isFocused ? "ck-focused" : "ck-blurred", r),
                    n.removeClass(t.isFocused ? "ck-blurred" : "ck-focused", r);
                });
              }
              e.isRenderingInProgress
                ? (function n(r) {
                    e.once("change:isRenderingInProgress", (e, o, a) => {
                      a ? n(r) : t(r);
                    });
                  })(this)
                : t(this);
            }
          }
          class Es extends Ms {
            constructor(e, t, n) {
              super(e, t, n),
                this.extendTemplate({
                  attributes: {
                    role: "textbox",
                    class: "ck-editor__editable_inline",
                  },
                });
            }
            render() {
              super.render();
              const e = this._editingView,
                t = this.t;
              e.change((n) => {
                const r = e.document.getRoot(this.name);
                n.setAttribute("aria-label", t("bm", [this.name]), r);
              });
            }
          }
          function Ts(e) {
            return (t) => t + e;
          }
          n(22);
          const Ss = Ts("px");
          class Ds extends ys {
            constructor(e) {
              super(e);
              const t = this.bindTemplate;
              this.set("isActive", !1),
                this.set("isSticky", !1),
                this.set("limiterElement", null),
                this.set("limiterBottomOffset", 50),
                this.set("viewportTopOffset", 0),
                this.set("_marginLeft", null),
                this.set("_isStickyToTheLimiter", !1),
                this.set("_hasViewportTopOffset", !1),
                (this.content = this.createCollection()),
                (this._contentPanelPlaceholder = new ns({
                  tag: "div",
                  attributes: {
                    class: ["ck", "ck-sticky-panel__placeholder"],
                    style: {
                      display: t.to("isSticky", (e) => (e ? "block" : "none")),
                      height: t.to("isSticky", (e) =>
                        e ? Ss(this._panelRect.height) : null
                      ),
                    },
                  },
                }).render()),
                (this._contentPanel = new ns({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-sticky-panel__content",
                      t.if("isSticky", "ck-sticky-panel__content_sticky"),
                      t.if(
                        "_isStickyToTheLimiter",
                        "ck-sticky-panel__content_sticky_bottom-limit"
                      ),
                    ],
                    style: {
                      width: t.to("isSticky", (e) =>
                        e
                          ? Ss(
                              this._contentPanelPlaceholder.getBoundingClientRect()
                                .width
                            )
                          : null
                      ),
                      top: t.to("_hasViewportTopOffset", (e) =>
                        e ? Ss(this.viewportTopOffset) : null
                      ),
                      bottom: t.to("_isStickyToTheLimiter", (e) =>
                        e ? Ss(this.limiterBottomOffset) : null
                      ),
                      marginLeft: t.to("_marginLeft"),
                    },
                  },
                  children: this.content,
                }).render()),
                this.setTemplate({
                  tag: "div",
                  attributes: { class: ["ck", "ck-sticky-panel"] },
                  children: [this._contentPanelPlaceholder, this._contentPanel],
                });
            }
            render() {
              super.render(),
                this._checkIfShouldBeSticky(),
                this.listenTo(yr.window, "scroll", () => {
                  this._checkIfShouldBeSticky();
                }),
                this.listenTo(this, "change:isActive", () => {
                  this._checkIfShouldBeSticky();
                });
            }
            _checkIfShouldBeSticky() {
              const e = (this._panelRect = this._contentPanel.getBoundingClientRect());
              let t;
              this.limiterElement
                ? ((t = this._limiterRect = this.limiterElement.getBoundingClientRect()),
                  (this.isSticky =
                    this.isActive &&
                    t.top < this.viewportTopOffset &&
                    this._panelRect.height + this.limiterBottomOffset <
                      t.height))
                : (this.isSticky = !1),
                this.isSticky
                  ? ((this._isStickyToTheLimiter =
                      t.bottom <
                      e.height +
                        this.limiterBottomOffset +
                        this.viewportTopOffset),
                    (this._hasViewportTopOffset =
                      !this._isStickyToTheLimiter && !!this.viewportTopOffset),
                    (this._marginLeft = this._isStickyToTheLimiter
                      ? null
                      : Ss(-yr.window.scrollX)))
                  : ((this._isStickyToTheLimiter = !1),
                    (this._hasViewportTopOffset = !1),
                    (this._marginLeft = null));
            }
          }
          class Ls {
            constructor(e) {
              if ((Object.assign(this, e), e.actions && e.keystrokeHandler))
                for (const t in e.actions) {
                  let n = e.actions[t];
                  "string" == typeof n && (n = [n]);
                  for (const r of n)
                    e.keystrokeHandler.set(r, (e, n) => {
                      this[t](), n();
                    });
                }
            }
            get first() {
              return this.focusables.find(Cs) || null;
            }
            get last() {
              return this.focusables.filter(Cs).slice(-1)[0] || null;
            }
            get next() {
              return this._getFocusableItem(1);
            }
            get previous() {
              return this._getFocusableItem(-1);
            }
            get current() {
              let e = null;
              return null === this.focusTracker.focusedElement
                ? null
                : (this.focusables.find((t, n) => {
                    const r = t.element === this.focusTracker.focusedElement;
                    return r && (e = n), r;
                  }),
                  e);
            }
            focusFirst() {
              this._focus(this.first);
            }
            focusLast() {
              this._focus(this.last);
            }
            focusNext() {
              this._focus(this.next);
            }
            focusPrevious() {
              this._focus(this.previous);
            }
            _focus(e) {
              e && e.focus();
            }
            _getFocusableItem(e) {
              const t = this.current,
                n = this.focusables.length;
              if (!n) return null;
              if (null === t) return this[1 === e ? "first" : "last"];
              let r = (t + n + e) % n;
              do {
                const t = this.focusables.get(r);
                if (Cs(t)) return t;
                r = (r + n + e) % n;
              } while (r !== t);
              return null;
            }
          }
          function Cs(e) {
            return !(
              !e.focus ||
              "none" == yr.window.getComputedStyle(e.element).display
            );
          }
          class Ps extends ys {
            constructor(e) {
              super(e),
                this.setTemplate({
                  tag: "span",
                  attributes: { class: ["ck", "ck-toolbar__separator"] },
                });
            }
          }
          n(24);
          class Os extends ys {
            constructor(e) {
              super(e);
              const t = this.bindTemplate,
                n = this.t;
              this.set("ariaLabel", n("bl")),
                (this.items = this.createCollection()),
                (this.focusTracker = new Gi()),
                (this.keystrokes = new ji()),
                this.set("isVertical", !1),
                this.set("class"),
                (this._focusCycler = new Ls({
                  focusables: this.items,
                  focusTracker: this.focusTracker,
                  keystrokeHandler: this.keystrokes,
                  actions: {
                    focusPrevious: ["arrowleft", "arrowup"],
                    focusNext: ["arrowright", "arrowdown"],
                  },
                })),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-toolbar",
                      t.if("isVertical", "ck-toolbar_vertical"),
                      t.to("class"),
                    ],
                    role: "toolbar",
                    "aria-label": t.to("ariaLabel"),
                  },
                  children: this.items,
                  on: {
                    mousedown: (function (e) {
                      return e.bindTemplate.to((t) => {
                        t.target === e.element && t.preventDefault();
                      });
                    })(this),
                  },
                });
            }
            render() {
              super.render();
              for (const e of this.items) this.focusTracker.add(e.element);
              this.items.on("add", (e, t) => {
                this.focusTracker.add(t.element);
              }),
                this.items.on("remove", (e, t) => {
                  this.focusTracker.remove(t.element);
                }),
                this.keystrokes.listenTo(this.element);
            }
            focus() {
              this._focusCycler.focusFirst();
            }
            focusLast() {
              this._focusCycler.focusLast();
            }
            fillFromConfig(e, t) {
              e.map((e) => {
                "|" == e
                  ? this.items.add(new Ps())
                  : t.has(e)
                  ? this.items.add(t.create(e))
                  : console.warn(
                      Object(_t.a)(
                        "toolbarview-item-unavailable: The requested toolbar item is unavailable."
                      ),
                      { name: e }
                    );
              });
            }
          }
          n(26);
          class Ns extends xs {
            constructor(e, t) {
              super(e),
                (this.stickyPanel = new Ds(e)),
                (this.toolbar = new Os(e)),
                (this.editable = new Es(e, t));
            }
            render() {
              super.render(),
                this.stickyPanel.content.add(this.toolbar),
                this.top.add(this.stickyPanel),
                this.main.add(this.editable);
            }
          }
          class As extends Hi {
            constructor(e, t) {
              super(t),
                ft(e) && (this.sourceElement = e),
                (this.data.processor = new Vi()),
                this.model.document.createRoot(),
                (this.ui = new es(
                  this,
                  new Ns(this.locale, this.editing.view)
                )),
                (function (e) {
                  if (!S(e.updateSourceElement))
                    throw new _t.b(
                      "attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",
                      e
                    );
                  const t = e.sourceElement;
                  if (t && "textarea" === t.tagName.toLowerCase() && t.form) {
                    let n;
                    const r = t.form,
                      o = () => e.updateSourceElement();
                    S(r.submit) &&
                      ((n = r.submit),
                      (r.submit = () => {
                        o(), n.apply(r);
                      })),
                      r.addEventListener("submit", o),
                      e.on("destroy", () => {
                        r.removeEventListener("submit", o), n && (r.submit = n);
                      });
                  }
                })(this);
            }
            destroy() {
              return (
                this.sourceElement && this.updateSourceElement(),
                this.ui.destroy(),
                super.destroy()
              );
            }
            static create(e, t = {}) {
              return new Promise((n) => {
                const r = new this(e, t);
                n(
                  r
                    .initPlugins()
                    .then(() => r.ui.init(ft(e) ? e : null))
                    .then(() => {
                      if (!ft(e) && t.initialData)
                        throw new _t.b(
                          "editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",
                          null
                        );
                      const n =
                        t.initialData ||
                        (function (e) {
                          return ft(e)
                            ? (function (e) {
                                return e instanceof HTMLTextAreaElement
                                  ? e.value
                                  : e.innerHTML;
                              })(e)
                            : e;
                        })(e);
                      return r.data.init(n);
                    })
                    .then(() => r.fire("ready"))
                    .then(() => r)
                );
              });
            }
          }
          Ct(As, zi), Ct(As, Bi);
          class Is {
            constructor(e) {
              this.editor = e;
            }
            destroy() {
              this.stopListening();
            }
          }
          Ct(Is, on);
          class Rs {
            constructor(e) {
              (this.files = (function (e) {
                const t = e.files ? Array.from(e.files) : [],
                  n = e.items ? Array.from(e.items) : [];
                return t.length
                  ? t
                  : n
                      .filter((e) => "file" === e.kind)
                      .map((e) => e.getAsFile());
              })(e)),
                (this._native = e);
            }
            get types() {
              return this._native.types;
            }
            getData(e) {
              return this._native.getData(e);
            }
            setData(e, t) {
              this._native.setData(e, t);
            }
          }
          class Ys extends Qr {
            constructor(e) {
              super(e);
              const t = this.document;
              function n(e, n) {
                n.preventDefault();
                const r = n.dropRange
                    ? [n.dropRange]
                    : Array.from(t.selection.getRanges()),
                  o = new vt(t, "clipboardInput");
                t.fire(o, { dataTransfer: n.dataTransfer, targetRanges: r }),
                  o.stop.called && n.stopPropagation();
              }
              (this.domEventType = [
                "paste",
                "copy",
                "cut",
                "drop",
                "dragover",
              ]),
                this.listenTo(t, "paste", n, { priority: "low" }),
                this.listenTo(t, "drop", n, { priority: "low" });
            }
            onDomEvent(e) {
              const t = {
                dataTransfer: new Rs(
                  e.clipboardData ? e.clipboardData : e.dataTransfer
                ),
              };
              "drop" == e.type &&
                (t.dropRange = (function (e, t) {
                  const n = t.target.ownerDocument,
                    r = t.clientX,
                    o = t.clientY;
                  let a;
                  return (
                    n.caretRangeFromPoint && n.caretRangeFromPoint(r, o)
                      ? (a = n.caretRangeFromPoint(r, o))
                      : t.rangeParent &&
                        ((a = n.createRange()).setStart(
                          t.rangeParent,
                          t.rangeOffset
                        ),
                        a.collapse(!0)),
                    a
                      ? e.domConverter.domRangeToView(a)
                      : e.document.selection.getFirstRange()
                  );
                })(this.view, e)),
                this.fire(e.type, e, t);
            }
          }
          const js = ["figcaption", "li"];
          class Fs extends Is {
            static get pluginName() {
              return "Clipboard";
            }
            init() {
              const e = this.editor,
                t = e.model.document,
                n = e.editing.view,
                r = n.document;
              function o(n, o) {
                const a = o.dataTransfer;
                o.preventDefault();
                const i = e.data.toView(
                  e.model.getSelectedContent(t.selection)
                );
                r.fire("clipboardOutput", {
                  dataTransfer: a,
                  content: i,
                  method: n.name,
                });
              }
              (this._htmlDataProcessor = new Vi()),
                n.addObserver(Ys),
                this.listenTo(
                  r,
                  "clipboardInput",
                  (t) => {
                    e.isReadOnly && t.stop();
                  },
                  { priority: "highest" }
                ),
                this.listenTo(
                  r,
                  "clipboardInput",
                  (e, t) => {
                    const r = t.dataTransfer;
                    let o = "";
                    r.getData("text/html")
                      ? (o = (function (e) {
                          return e.replace(
                            /<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,
                            (e, t) => (1 == t.length ? " " : t)
                          );
                        })(r.getData("text/html")))
                      : r.getData("text/plain") &&
                        (o = (function (e) {
                          return (
                            (e = e
                              .replace(/</g, "&lt;")
                              .replace(/>/g, "&gt;")
                              .replace(/\n/g, "</p><p>")
                              .replace(/^\s/, "&nbsp;")
                              .replace(/\s$/, "&nbsp;")
                              .replace(/\s\s/g, " &nbsp;")).indexOf("</p><p>") >
                              -1 && (e = `<p>${e}</p>`),
                            e
                          );
                        })(r.getData("text/plain"))),
                      (o = this._htmlDataProcessor.toView(o)),
                      this.fire("inputTransformation", {
                        content: o,
                        dataTransfer: r,
                      }),
                      n.scrollToTheSelection();
                  },
                  { priority: "low" }
                ),
                this.listenTo(
                  this,
                  "inputTransformation",
                  (e, t) => {
                    if (!t.content.isEmpty) {
                      const e = this.editor.data,
                        n = this.editor.model,
                        r = e.toModel(t.content, "$clipboardHolder");
                      if (0 == r.childCount) return;
                      n.insertContent(r);
                    }
                  },
                  { priority: "low" }
                ),
                this.listenTo(r, "copy", o, { priority: "low" }),
                this.listenTo(
                  r,
                  "cut",
                  (t, n) => {
                    e.isReadOnly ? n.preventDefault() : o(t, n);
                  },
                  { priority: "low" }
                ),
                this.listenTo(
                  r,
                  "clipboardOutput",
                  (n, r) => {
                    r.content.isEmpty ||
                      (r.dataTransfer.setData(
                        "text/html",
                        this._htmlDataProcessor.toData(r.content)
                      ),
                      r.dataTransfer.setData(
                        "text/plain",
                        (function e(t) {
                          let n = "";
                          if (t.is("text") || t.is("textProxy")) n = t.data;
                          else if (t.is("img") && t.hasAttribute("alt"))
                            n = t.getAttribute("alt");
                          else {
                            let r = null;
                            for (const o of t.getChildren()) {
                              const t = e(o);
                              r &&
                                (r.is("containerElement") ||
                                  o.is("containerElement")) &&
                                (js.includes(r.name) || js.includes(o.name)
                                  ? (n += "\n")
                                  : (n += "\n\n")),
                                (n += t),
                                (r = o);
                            }
                          }
                          return n;
                        })(r.content)
                      )),
                      "cut" == r.method && e.model.deleteContent(t.selection);
                  },
                  { priority: "low" }
                );
            }
          }
          class Hs {
            constructor(e) {
              (this.editor = e),
                this.set("value", void 0),
                this.set("isEnabled", !1),
                (this._disableStack = new Set()),
                this.decorate("execute"),
                this.listenTo(this.editor.model.document, "change", () => {
                  this.refresh();
                }),
                this.on(
                  "execute",
                  (e) => {
                    this.isEnabled || e.stop();
                  },
                  { priority: "high" }
                ),
                this.listenTo(e, "change:isReadOnly", (e, t, n) => {
                  n
                    ? this.forceDisabled("readOnlyMode")
                    : this.clearForceDisabled("readOnlyMode");
                });
            }
            refresh() {
              this.isEnabled = !0;
            }
            forceDisabled(e) {
              this._disableStack.add(e),
                1 == this._disableStack.size &&
                  (this.on("set:isEnabled", zs, { priority: "highest" }),
                  (this.isEnabled = !1));
            }
            clearForceDisabled(e) {
              this._disableStack.delete(e),
                0 == this._disableStack.size &&
                  (this.off("set:isEnabled", zs), this.refresh());
            }
            execute() {}
            destroy() {
              this.stopListening();
            }
          }
          function zs(e) {
            (e.return = !1), e.stop();
          }
          function* Bs(e, t) {
            for (const n of t)
              n && e.getAttributeProperties(n[0]).copyOnEnter && (yield n);
          }
          Ct(Hs, on);
          class Us extends Hs {
            execute() {
              const e = this.editor.model,
                t = e.document;
              e.change((n) => {
                !(function (e, t, n, r) {
                  const o = n.isCollapsed,
                    a = n.getFirstRange(),
                    i = a.start.parent,
                    s = a.end.parent;
                  if (r.isLimit(i) || r.isLimit(s))
                    o || i != s || e.deleteContent(n);
                  else if (o) {
                    const e = Bs(t.model.schema, n.getAttributes());
                    Vs(t, a.start), t.setSelectionAttribute(e);
                  } else {
                    const r = !(a.start.isAtStart && a.end.isAtEnd),
                      o = i == s;
                    e.deleteContent(n, { leaveUnmerged: r }),
                      r && (o ? Vs(t, n.focus) : t.setSelection(s, 0));
                  }
                })(this.editor.model, n, t.selection, e.schema),
                  this.fire("afterExecute", { writer: n });
              });
            }
          }
          function Vs(e, t) {
            e.split(t), e.setSelection(t.parent.nextSibling, 0);
          }
          class Ws extends Cr {
            constructor(e) {
              super(e);
              const t = this.document;
              t.on("keydown", (e, n) => {
                if (this.isEnabled && n.keyCode == Yn.enter) {
                  let r;
                  t.once("enter", (e) => (r = e), { priority: "highest" }),
                    t.fire(
                      "enter",
                      new Kr(t, n.domEvent, { isSoft: n.shiftKey })
                    ),
                    r && r.stop.called && e.stop();
                }
              });
            }
            observe() {}
          }
          class qs extends Is {
            static get pluginName() {
              return "Enter";
            }
            init() {
              const e = this.editor,
                t = e.editing.view,
                n = t.document;
              t.addObserver(Ws),
                e.commands.add("enter", new Us(e)),
                this.listenTo(
                  n,
                  "enter",
                  (n, r) => {
                    r.preventDefault(),
                      r.isSoft ||
                        (e.execute("enter"), t.scrollToTheSelection());
                  },
                  { priority: "low" }
                );
            }
          }
          class Gs extends Hs {
            execute() {
              const e = this.editor.model,
                t = e.document;
              e.change((n) => {
                !(function (e, t, n) {
                  const r = n.isCollapsed,
                    o = n.getFirstRange(),
                    a = o.start.parent,
                    i = o.end.parent,
                    s = a == i;
                  if (r) {
                    const r = Bs(e.schema, n.getAttributes());
                    Js(t, o.end),
                      t.removeSelectionAttribute(n.getAttributeKeys()),
                      t.setSelectionAttribute(r);
                  } else {
                    const r = !(o.start.isAtStart && o.end.isAtEnd);
                    e.deleteContent(n, { leaveUnmerged: r }),
                      s ? Js(t, n.focus) : r && t.setSelection(i, 0);
                  }
                })(e, n, t.selection),
                  this.fire("afterExecute", { writer: n });
              });
            }
            refresh() {
              const e = this.editor.model,
                t = e.document;
              this.isEnabled = (function (e, t) {
                if (t.rangeCount > 1) return !1;
                const n = t.anchor;
                if (!n || !e.checkChild(n, "softBreak")) return !1;
                const r = t.getFirstRange(),
                  o = r.start.parent,
                  a = r.end.parent;
                return (!Ks(o, e) && !Ks(a, e)) || o === a;
              })(e.schema, t.selection);
            }
          }
          function Js(e, t) {
            const n = e.createElement("softBreak");
            e.insert(n, t), e.setSelection(n, "after");
          }
          function Ks(e, t) {
            return !e.is("rootElement") && (t.isLimit(e) || Ks(e.parent, t));
          }
          class Qs extends Is {
            static get pluginName() {
              return "ShiftEnter";
            }
            init() {
              const e = this.editor,
                t = e.model.schema,
                n = e.conversion,
                r = e.editing.view,
                o = r.document;
              t.register("softBreak", { allowWhere: "$text", isInline: !0 }),
                n
                  .for("upcast")
                  .elementToElement({ model: "softBreak", view: "br" }),
                n
                  .for("downcast")
                  .elementToElement({
                    model: "softBreak",
                    view: (e, t) => t.createEmptyElement("br"),
                  }),
                r.addObserver(Ws),
                e.commands.add("shiftEnter", new Gs(e)),
                this.listenTo(
                  o,
                  "enter",
                  (t, n) => {
                    n.preventDefault(),
                      n.isSoft &&
                        (e.execute("shiftEnter"), r.scrollToTheSelection());
                  },
                  { priority: "low" }
                );
            }
          }
          class Xs {
            constructor(e, t = 20) {
              (this.model = e),
                (this.size = 0),
                (this.limit = t),
                (this.isLocked = !1),
                (this._changeCallback = (e, t) => {
                  "transparent" != t.type &&
                    t !== this._batch &&
                    this._reset(!0);
                }),
                (this._selectionChangeCallback = () => {
                  this._reset();
                }),
                this.model.document.on("change", this._changeCallback),
                this.model.document.selection.on(
                  "change:range",
                  this._selectionChangeCallback
                ),
                this.model.document.selection.on(
                  "change:attribute",
                  this._selectionChangeCallback
                );
            }
            get batch() {
              return (
                this._batch || (this._batch = this.model.createBatch()),
                this._batch
              );
            }
            input(e) {
              (this.size += e), this.size >= this.limit && this._reset(!0);
            }
            lock() {
              this.isLocked = !0;
            }
            unlock() {
              this.isLocked = !1;
            }
            destroy() {
              this.model.document.off("change", this._changeCallback),
                this.model.document.selection.off(
                  "change:range",
                  this._selectionChangeCallback
                ),
                this.model.document.selection.off(
                  "change:attribute",
                  this._selectionChangeCallback
                );
            }
            _reset(e) {
              (this.isLocked && !e) || ((this._batch = null), (this.size = 0));
            }
          }
          class $s extends Hs {
            constructor(e, t) {
              super(e),
                (this._buffer = new Xs(e.model, t)),
                (this._batches = new WeakSet());
            }
            get buffer() {
              return this._buffer;
            }
            destroy() {
              super.destroy(), this._buffer.destroy();
            }
            execute(e = {}) {
              const t = this.editor.model,
                n = t.document,
                r = e.text || "",
                o = r.length,
                a = e.range || n.selection.getFirstRange(),
                i = e.resultRange;
              t.enqueueChange(this._buffer.batch, (e) => {
                const s = a.isCollapsed;
                this._buffer.lock(),
                  t.deleteContent(t.createSelection(a)),
                  r &&
                    t.insertContent(
                      e.createText(r, n.selection.getAttributes()),
                      a.start
                    ),
                  i
                    ? e.setSelection(i)
                    : s && e.setSelection(a.start.getShiftedBy(o)),
                  this._buffer.unlock(),
                  this._buffer.input(o),
                  this._batches.add(this._buffer.batch);
              });
            }
          }
          const Zs = [
            jn("arrowUp"),
            jn("arrowRight"),
            jn("arrowDown"),
            jn("arrowLeft"),
            9,
            16,
            17,
            18,
            19,
            20,
            27,
            33,
            34,
            35,
            36,
            45,
            91,
            93,
            144,
            145,
            173,
            174,
            175,
            176,
            177,
            178,
            179,
            255,
          ];
          for (let e = 112; e <= 135; e++) Zs.push(e);
          function el(e) {
            if (e.newChildren.length - e.oldChildren.length != 1) return;
            const t = (function (e, t) {
              const n = [];
              let r,
                o = 0;
              return (
                e.forEach((e) => {
                  "equal" == e
                    ? (a(), o++)
                    : "insert" == e
                    ? (i("insert")
                        ? r.values.push(t[o])
                        : (a(),
                          (r = { type: "insert", index: o, values: [t[o]] })),
                      o++)
                    : i("delete")
                    ? r.howMany++
                    : (a(), (r = { type: "delete", index: o, howMany: 1 }));
                }),
                a(),
                n
              );
              function a() {
                r && (n.push(r), (r = null));
              }
              function i(e) {
                return r && r.type == e;
              }
            })(pr(e.oldChildren, e.newChildren, tl), e.newChildren);
            if (t.length > 1) return;
            const n = t[0];
            return n.values[0] && n.values[0].is("text") ? n : void 0;
          }
          function tl(e, t) {
            return e && e.is("text") && t && t.is("text")
              ? e.data === t.data
              : e === t;
          }
          class nl {
            constructor(e) {
              (this.editor = e), (this.editing = this.editor.editing);
            }
            handle(e, t) {
              if (
                (function (e) {
                  if (0 == e.length) return !1;
                  for (const t of e)
                    if ("children" === t.type && !el(t)) return !0;
                  return !1;
                })(e)
              )
                this._handleContainerChildrenMutations(e, t);
              else
                for (const n of e)
                  this._handleTextMutation(n, t),
                    this._handleTextNodeInsertion(n);
            }
            _handleContainerChildrenMutations(e, t) {
              const n = (function (e) {
                const t = e
                  .map((e) => e.node)
                  .reduce((e, t) =>
                    e.getCommonAncestor(t, { includeSelf: !0 })
                  );
                if (t)
                  return t
                    .getAncestors({ includeSelf: !0, parentFirst: !0 })
                    .find(
                      (e) => e.is("containerElement") || e.is("rootElement")
                    );
              })(e);
              if (!n) return;
              const r = this.editor.editing.view.domConverter.mapViewToDom(n),
                o = new xr(),
                a = this.editor.data.toModel(o.domToView(r)).getChild(0),
                i = this.editor.editing.mapper.toModelElement(n);
              if (!i) return;
              const s = Array.from(a.getChildren()),
                l = Array.from(i.getChildren()),
                c = s[s.length - 1],
                u = l[l.length - 1];
              c && c.is("softBreak") && u && !u.is("softBreak") && s.pop();
              const d = this.editor.model.schema;
              if (!rl(s, d) || !rl(l, d)) return;
              const h = s
                  .map((e) => (e.is("text") ? e.data : "@"))
                  .join("")
                  .replace(/\u00A0/g, " "),
                p = l
                  .map((e) => (e.is("text") ? e.data : "@"))
                  .join("")
                  .replace(/\u00A0/g, " ");
              if (p === h) return;
              const f = pr(p, h),
                { firstChangeAt: m, insertions: g, deletions: _ } = ol(f);
              let v = null;
              t && (v = this.editing.mapper.toModelRange(t.getFirstRange()));
              const b = h.substr(m, g),
                y = this.editor.model.createRange(
                  this.editor.model.createPositionAt(i, m),
                  this.editor.model.createPositionAt(i, m + _)
                );
              this.editor.execute("input", {
                text: b,
                range: y,
                resultRange: v,
              });
            }
            _handleTextMutation(e, t) {
              if ("text" != e.type) return;
              const n = e.newText.replace(/\u00A0/g, " "),
                r = e.oldText.replace(/\u00A0/g, " ");
              if (r === n) return;
              const o = pr(r, n),
                { firstChangeAt: a, insertions: i, deletions: s } = ol(o);
              let l = null;
              t && (l = this.editing.mapper.toModelRange(t.getFirstRange()));
              const c = this.editing.view.createPositionAt(e.node, a),
                u = this.editing.mapper.toModelPosition(c),
                d = this.editor.model.createRange(u, u.getShiftedBy(s)),
                h = n.substr(a, i);
              this.editor.execute("input", {
                text: h,
                range: d,
                resultRange: l,
              });
            }
            _handleTextNodeInsertion(e) {
              if ("children" != e.type) return;
              const t = el(e),
                n = this.editing.view.createPositionAt(e.node, t.index),
                r = this.editing.mapper.toModelPosition(n),
                o = t.values[0].data;
              this.editor.execute("input", {
                text: o.replace(/\u00A0/g, " "),
                range: this.editor.model.createRange(r),
              });
            }
          }
          function rl(e, t) {
            return e.every((e) => t.isInline(e));
          }
          function ol(e) {
            let t = null,
              n = null;
            for (let r = 0; r < e.length; r++)
              "equal" != e[r] && ((t = null === t ? r : t), (n = r));
            let r = 0,
              o = 0;
            for (let a = t; a <= n; a++)
              "insert" != e[a] && r++, "delete" != e[a] && o++;
            return { insertions: o, deletions: r, firstChangeAt: t };
          }
          class al extends Is {
            static get pluginName() {
              return "Input";
            }
            init() {
              const e = this.editor,
                t = new $s(e, e.config.get("typing.undoStep") || 20);
              e.commands.add("input", t),
                (function (e) {
                  let t = null;
                  const n = e.model,
                    r = e.editing.view,
                    o = e.commands.get("input");
                  function a(e) {
                    const a = n.document,
                      s = r.document.isComposing,
                      l = t && t.isEqual(a.selection);
                    (t = null),
                      o.isEnabled &&
                        ((function (e) {
                          return !!e.ctrlKey || Zs.includes(e.keyCode);
                        })(e) ||
                          a.selection.isCollapsed ||
                          (s && 229 === e.keyCode) ||
                          (!s && 229 === e.keyCode && l) ||
                          i());
                  }
                  function i() {
                    const e = o.buffer;
                    e.lock(),
                      n.enqueueChange(e.batch, () => {
                        n.deleteContent(n.document.selection);
                      }),
                      e.unlock();
                  }
                  An
                    ? r.document.on("beforeinput", (e, t) => a(t), {
                        priority: "lowest",
                      })
                    : r.document.on("keydown", (e, t) => a(t), {
                        priority: "lowest",
                      }),
                    r.document.on(
                      "compositionstart",
                      function () {
                        const e = n.document,
                          t =
                            1 !== e.selection.rangeCount ||
                            e.selection.getFirstRange().isFlat;
                        e.selection.isCollapsed || t || i();
                      },
                      { priority: "lowest" }
                    ),
                    r.document.on(
                      "compositionend",
                      () => {
                        t = n.createSelection(n.document.selection);
                      },
                      { priority: "lowest" }
                    );
                })(e),
                (function (e) {
                  e.editing.view.document.on("mutations", (t, n, r) => {
                    new nl(e).handle(n, r);
                  });
                })(e);
            }
            isInput(e) {
              return this.editor.commands.get("input")._batches.has(e);
            }
          }
          class il extends Hs {
            constructor(e, t) {
              super(e),
                (this.direction = t),
                (this._buffer = new Xs(
                  e.model,
                  e.config.get("typing.undoStep")
                ));
            }
            get buffer() {
              return this._buffer;
            }
            execute(e = {}) {
              const t = this.editor.model,
                n = t.document;
              t.enqueueChange(this._buffer.batch, (r) => {
                this._buffer.lock();
                const o = r.createSelection(e.selection || n.selection),
                  a = o.isCollapsed;
                if (
                  (o.isCollapsed &&
                    t.modifySelection(o, {
                      direction: this.direction,
                      unit: e.unit,
                    }),
                  this._shouldEntireContentBeReplacedWithParagraph(
                    e.sequence || 1
                  ))
                )
                  return void this._replaceEntireContentWithParagraph(r);
                if (o.isCollapsed) return;
                let i = 0;
                o
                  .getFirstRange()
                  .getMinimalFlatRanges()
                  .forEach((e) => {
                    i += bn(
                      e.getWalker({
                        singleCharacters: !0,
                        ignoreElementEnd: !0,
                        shallow: !0,
                      })
                    );
                  }),
                  t.deleteContent(o, { doNotResetEntireContent: a }),
                  this._buffer.input(i),
                  r.setSelection(o),
                  this._buffer.unlock();
              });
            }
            _shouldEntireContentBeReplacedWithParagraph(e) {
              if (e > 1) return !1;
              const t = this.editor.model,
                n = t.document.selection,
                r = t.schema.getLimitElement(n);
              if (!n.isCollapsed || !n.containsEntireContent(r)) return !1;
              if (!t.schema.checkChild(r, "paragraph")) return !1;
              const o = r.getChild(0);
              return !o || "paragraph" !== o.name;
            }
            _replaceEntireContentWithParagraph(e) {
              const t = this.editor.model,
                n = t.document.selection,
                r = t.schema.getLimitElement(n),
                o = e.createElement("paragraph");
              e.remove(e.createRangeIn(r)),
                e.insert(o, r),
                e.setSelection(o, 0);
            }
          }
          class sl extends Cr {
            constructor(e) {
              super(e);
              const t = e.document;
              let n = 0;
              function r(e, n, r) {
                let o;
                t.once("delete", (e) => (o = e), {
                  priority: Number.POSITIVE_INFINITY,
                }),
                  t.fire("delete", new Kr(t, n, r)),
                  o && o.stop.called && e.stop();
              }
              t.on("keyup", (e, t) => {
                (t.keyCode != Yn.delete && t.keyCode != Yn.backspace) ||
                  (n = 0);
              }),
                t.on("keydown", (e, t) => {
                  const o = {};
                  if (t.keyCode == Yn.delete)
                    (o.direction = "forward"), (o.unit = "character");
                  else {
                    if (t.keyCode != Yn.backspace) return;
                    (o.direction = "backward"), (o.unit = "codePoint");
                  }
                  const a = Cn ? t.altKey : t.ctrlKey;
                  (o.unit = a ? "word" : o.unit),
                    (o.sequence = ++n),
                    r(e, t.domEvent, o);
                }),
                An &&
                  t.on("beforeinput", (t, n) => {
                    if ("deleteContentBackward" != n.domEvent.inputType) return;
                    const o = {
                        unit: "codepoint",
                        direction: "backward",
                        sequence: 1,
                      },
                      a = n.domTarget.ownerDocument.defaultView.getSelection();
                    a.anchorNode == a.focusNode &&
                      a.anchorOffset + 1 != a.focusOffset &&
                      (o.selectionToRemove = e.domConverter.domSelectionToView(
                        a
                      )),
                      r(t, n.domEvent, o);
                  });
            }
            observe() {}
          }
          class ll extends Is {
            static get pluginName() {
              return "Delete";
            }
            init() {
              const e = this.editor,
                t = e.editing.view,
                n = t.document;
              if (
                (t.addObserver(sl),
                e.commands.add("forwardDelete", new il(e, "forward")),
                e.commands.add("delete", new il(e, "backward")),
                this.listenTo(n, "delete", (n, r) => {
                  const o = { unit: r.unit, sequence: r.sequence };
                  if (r.selectionToRemove) {
                    const t = e.model.createSelection(),
                      n = [];
                    for (const t of r.selectionToRemove.getRanges())
                      n.push(e.editing.mapper.toModelRange(t));
                    t.setTo(n), (o.selection = t);
                  }
                  e.execute(
                    "forward" == r.direction ? "forwardDelete" : "delete",
                    o
                  ),
                    r.preventDefault(),
                    t.scrollToTheSelection();
                }),
                An)
              ) {
                let e = null;
                this.listenTo(
                  n,
                  "delete",
                  (t, n) => {
                    const r = n.domTarget.ownerDocument.defaultView.getSelection();
                    e = {
                      anchorNode: r.anchorNode,
                      anchorOffset: r.anchorOffset,
                      focusNode: r.focusNode,
                      focusOffset: r.focusOffset,
                    };
                  },
                  { priority: "lowest" }
                ),
                  this.listenTo(n, "keyup", (t, n) => {
                    if (e) {
                      const t = n.domTarget.ownerDocument.defaultView.getSelection();
                      t.collapse(e.anchorNode, e.anchorOffset),
                        t.extend(e.focusNode, e.focusOffset),
                        (e = null);
                    }
                  });
              }
            }
          }
          class cl extends Is {
            static get requires() {
              return [al, ll];
            }
            static get pluginName() {
              return "Typing";
            }
          }
          class ul extends za {
            get type() {
              return "noop";
            }
            clone() {
              return new ul(this.baseVersion);
            }
            getReversed() {
              return new ul(this.baseVersion + 1);
            }
            _execute() {}
            static get className() {
              return "NoOperation";
            }
          }
          const dl = new Map();
          function hl(e, t, n) {
            let r = dl.get(e);
            r || ((r = new Map()), dl.set(e, r)), r.set(t, n);
          }
          function pl(e) {
            return [e];
          }
          function fl(e, t, n = {}) {
            const r = (function (e, t) {
              const n = dl.get(e);
              return n && n.has(t) ? n.get(t) : pl;
            })(e.constructor, t.constructor);
            try {
              return r((e = e.clone()), t, n);
            } catch (e) {
              throw e;
            }
          }
          function ml(e, t, n) {
            (e = e.slice()), (t = t.slice());
            const r = new gl(n.document, n.useRelations, n.forceWeakRemove);
            r.setOriginalOperations(e), r.setOriginalOperations(t);
            const o = r.originalOperations;
            if (0 == e.length || 0 == t.length)
              return { operationsA: e, operationsB: t, originalOperations: o };
            const a = new WeakMap();
            for (const t of e) a.set(t, 0);
            const i = {
              nextBaseVersionA: e[e.length - 1].baseVersion + 1,
              nextBaseVersionB: t[t.length - 1].baseVersion + 1,
              originalOperationsACount: e.length,
              originalOperationsBCount: t.length,
            };
            let s = 0;
            for (; s < e.length; ) {
              const n = e[s],
                o = a.get(n);
              if (o == t.length) {
                s++;
                continue;
              }
              const i = t[o],
                l = fl(n, i, r.getContext(n, i, !0)),
                c = fl(i, n, r.getContext(i, n, !1));
              r.updateRelation(n, i),
                r.setOriginalOperations(l, n),
                r.setOriginalOperations(c, i);
              for (const e of l) a.set(e, o + c.length);
              e.splice(s, 1, ...l), t.splice(o, 1, ...c);
            }
            if (n.padWithNoOps) {
              const n = e.length - i.originalOperationsACount,
                r = t.length - i.originalOperationsBCount;
              vl(e, r - n), vl(t, n - r);
            }
            return (
              _l(e, i.nextBaseVersionB),
              _l(t, i.nextBaseVersionA),
              { operationsA: e, operationsB: t, originalOperations: o }
            );
          }
          class gl {
            constructor(e, t, n = !1) {
              (this.originalOperations = new Map()),
                (this._history = e.history),
                (this._useRelations = t),
                (this._forceWeakRemove = !!n),
                (this._relations = new Map());
            }
            setOriginalOperations(e, t = null) {
              const n = t ? this.originalOperations.get(t) : null;
              for (const t of e) this.originalOperations.set(t, n || t);
            }
            updateRelation(e, t) {
              switch (e.constructor) {
                case Za:
                  switch (t.constructor) {
                    case oi:
                      e.targetPosition.isEqual(t.sourcePosition) ||
                      t.movedRange.containsPosition(e.targetPosition)
                        ? this._setRelation(e, t, "insertAtSource")
                        : e.targetPosition.isEqual(t.deletionPosition)
                        ? this._setRelation(e, t, "insertBetween")
                        : e.targetPosition.isAfter(t.sourcePosition) &&
                          this._setRelation(e, t, "moveTargetAfter");
                      break;
                    case Za:
                      e.targetPosition.isEqual(t.sourcePosition) ||
                      e.targetPosition.isBefore(t.sourcePosition)
                        ? this._setRelation(e, t, "insertBefore")
                        : this._setRelation(e, t, "insertAfter");
                  }
                  break;
                case ai:
                  switch (t.constructor) {
                    case oi:
                      e.splitPosition.isBefore(t.sourcePosition) &&
                        this._setRelation(e, t, "splitBefore");
                      break;
                    case Za:
                      (e.splitPosition.isEqual(t.sourcePosition) ||
                        e.splitPosition.isBefore(t.sourcePosition)) &&
                        this._setRelation(e, t, "splitBefore");
                  }
                  break;
                case oi:
                  switch (t.constructor) {
                    case oi:
                      e.targetPosition.isEqual(t.sourcePosition) ||
                        this._setRelation(e, t, "mergeTargetNotMoved"),
                        e.sourcePosition.isEqual(t.targetPosition) &&
                          this._setRelation(e, t, "mergeSourceNotMoved"),
                        e.sourcePosition.isEqual(t.sourcePosition) &&
                          this._setRelation(e, t, "mergeSameElement");
                      break;
                    case ai:
                      e.sourcePosition.isEqual(t.splitPosition) &&
                        this._setRelation(e, t, "splitAtSource");
                  }
                  break;
                case ti: {
                  const n = e.newRange;
                  if (!n) return;
                  switch (t.constructor) {
                    case Za: {
                      const r = zo._createFromPositionAndShift(
                          t.sourcePosition,
                          t.howMany
                        ),
                        o =
                          r.containsPosition(n.start) ||
                          r.start.isEqual(n.start),
                        a = r.containsPosition(n.end) || r.end.isEqual(n.end);
                      (!o && !a) ||
                        r.containsRange(n) ||
                        this._setRelation(e, t, {
                          side: o ? "left" : "right",
                          path: o ? n.start.path.slice() : n.end.path.slice(),
                        });
                      break;
                    }
                    case oi: {
                      const r = n.start.isEqual(t.targetPosition),
                        o = n.start.isEqual(t.deletionPosition),
                        a = n.end.isEqual(t.deletionPosition),
                        i = n.end.isEqual(t.sourcePosition);
                      (r || o || a || i) &&
                        this._setRelation(e, t, {
                          wasInLeftElement: r,
                          wasStartBeforeMergedElement: o,
                          wasEndBeforeMergedElement: a,
                          wasInRightElement: i,
                        });
                      break;
                    }
                  }
                  break;
                }
              }
            }
            getContext(e, t, n) {
              return {
                aIsStrong: n,
                aWasUndone: this._wasUndone(e),
                bWasUndone: this._wasUndone(t),
                abRelation: this._useRelations ? this._getRelation(e, t) : null,
                baRelation: this._useRelations ? this._getRelation(t, e) : null,
                forceWeakRemove: this._forceWeakRemove,
              };
            }
            _wasUndone(e) {
              const t = this.originalOperations.get(e);
              return t.wasUndone || this._history.isUndoneOperation(t);
            }
            _getRelation(e, t) {
              const n = this.originalOperations.get(t),
                r = this._history.getUndoneOperation(n);
              if (!r) return null;
              const o = this.originalOperations.get(e),
                a = this._relations.get(o);
              return (a && a.get(r)) || null;
            }
            _setRelation(e, t, n) {
              const r = this.originalOperations.get(e),
                o = this.originalOperations.get(t);
              let a = this._relations.get(r);
              a || ((a = new Map()), this._relations.set(r, a)), a.set(o, n);
            }
          }
          function _l(e, t) {
            for (const n of e) n.baseVersion = t++;
          }
          function vl(e, t) {
            for (let n = 0; n < t; n++) e.push(new ul(0));
          }
          function bl(e, t, n) {
            const r = e.nodes.getNode(0).getAttribute(t);
            if (r == n) return null;
            const o = new zo(e.position, e.position.getShiftedBy(e.howMany));
            return new Xa(o, t, r, n, 0);
          }
          function yl(e, t) {
            return (
              null ===
              e.targetPosition._getTransformedByDeletion(
                t.sourcePosition,
                t.howMany
              )
            );
          }
          function wl(e, t) {
            const n = [];
            for (let r = 0; r < e.length; r++) {
              const o = e[r],
                a = new Za(o.start, o.end.offset - o.start.offset, t, 0);
              n.push(a);
              for (let t = r + 1; t < e.length; t++)
                e[t] = e[t]._getTransformedByMove(
                  a.sourcePosition,
                  a.targetPosition,
                  a.howMany
                )[0];
              t = t._getTransformedByMove(
                a.sourcePosition,
                a.targetPosition,
                a.howMany
              );
            }
            return n;
          }
          hl(Xa, Xa, (e, t, n) => {
            if (e.key === t.key) {
              const r = e.range
                  .getDifference(t.range)
                  .map((t) => new Xa(t, e.key, e.oldValue, e.newValue, 0)),
                o = e.range.getIntersection(t.range);
              return (
                o &&
                  n.aIsStrong &&
                  r.push(new Xa(o, t.key, t.newValue, e.newValue, 0)),
                0 == r.length ? [new ul(0)] : r
              );
            }
            return [e];
          }),
            hl(Xa, ei, (e, t) => {
              if (
                e.range.start.hasSameParentAs(t.position) &&
                e.range.containsPosition(t.position)
              ) {
                const n = e.range
                  ._getTransformedByInsertion(
                    t.position,
                    t.howMany,
                    !t.shouldReceiveAttributes
                  )
                  .map(
                    (t) =>
                      new Xa(t, e.key, e.oldValue, e.newValue, e.baseVersion)
                  );
                if (t.shouldReceiveAttributes) {
                  const r = bl(t, e.key, e.oldValue);
                  r && n.unshift(r);
                }
                return n;
              }
              return (
                (e.range = e.range._getTransformedByInsertion(
                  t.position,
                  t.howMany,
                  !1
                )[0]),
                [e]
              );
            }),
            hl(Xa, oi, (e, t) => {
              const n = [];
              e.range.start.hasSameParentAs(t.deletionPosition) &&
                (e.range.containsPosition(t.deletionPosition) ||
                  e.range.start.isEqual(t.deletionPosition)) &&
                n.push(zo._createFromPositionAndShift(t.graveyardPosition, 1));
              const r = e.range._getTransformedByMergeOperation(t);
              return (
                r.isCollapsed || n.push(r),
                n.map(
                  (t) => new Xa(t, e.key, e.oldValue, e.newValue, e.baseVersion)
                )
              );
            }),
            hl(Xa, Za, (e, t) =>
              (function (e, t) {
                const n = zo._createFromPositionAndShift(
                  t.sourcePosition,
                  t.howMany
                );
                let r = null,
                  o = [];
                n.containsRange(e, !0)
                  ? (r = e)
                  : e.start.hasSameParentAs(n.start)
                  ? ((o = e.getDifference(n)), (r = e.getIntersection(n)))
                  : (o = [e]);
                const a = [];
                for (let e of o) {
                  e = e._getTransformedByDeletion(t.sourcePosition, t.howMany);
                  const n = t.getMovedRangeStart(),
                    r = e.start.hasSameParentAs(n);
                  (e = e._getTransformedByInsertion(n, t.howMany, r)),
                    a.push(...e);
                }
                return (
                  r &&
                    a.push(
                      r._getTransformedByMove(
                        t.sourcePosition,
                        t.targetPosition,
                        t.howMany,
                        !1
                      )[0]
                    ),
                  a
                );
              })(e.range, t).map(
                (t) => new Xa(t, e.key, e.oldValue, e.newValue, e.baseVersion)
              )
            ),
            hl(Xa, ai, (e, t) => {
              if (e.range.end.isEqual(t.insertionPosition))
                return t.graveyardPosition || e.range.end.offset++, [e];
              if (
                e.range.start.hasSameParentAs(t.splitPosition) &&
                e.range.containsPosition(t.splitPosition)
              ) {
                const n = e.clone();
                return (
                  (n.range = new zo(
                    t.moveTargetPosition.clone(),
                    e.range.end._getCombined(
                      t.splitPosition,
                      t.moveTargetPosition
                    )
                  )),
                  (e.range.end = t.splitPosition.clone()),
                  (e.range.end.stickiness = "toPrevious"),
                  [e, n]
                );
              }
              return (
                (e.range = e.range._getTransformedBySplitOperation(t)), [e]
              );
            }),
            hl(ei, Xa, (e, t) => {
              const n = [e];
              if (
                e.shouldReceiveAttributes &&
                e.position.hasSameParentAs(t.range.start) &&
                t.range.containsPosition(e.position)
              ) {
                const r = bl(e, t.key, t.newValue);
                r && n.push(r);
              }
              return n;
            }),
            hl(
              ei,
              ei,
              (e, t, n) => (
                (e.position.isEqual(t.position) && n.aIsStrong) ||
                  (e.position = e.position._getTransformedByInsertOperation(t)),
                [e]
              )
            ),
            hl(
              ei,
              Za,
              (e, t) => (
                (e.position = e.position._getTransformedByMoveOperation(t)), [e]
              )
            ),
            hl(
              ei,
              ai,
              (e, t) => (
                (e.position = e.position._getTransformedBySplitOperation(t)),
                [e]
              )
            ),
            hl(
              ei,
              oi,
              (e, t) => (
                (e.position = e.position._getTransformedByMergeOperation(t)),
                [e]
              )
            ),
            hl(
              ti,
              ei,
              (e, t) => (
                e.oldRange &&
                  (e.oldRange = e.oldRange._getTransformedByInsertOperation(
                    t
                  )[0]),
                e.newRange &&
                  (e.newRange = e.newRange._getTransformedByInsertOperation(
                    t
                  )[0]),
                [e]
              )
            ),
            hl(ti, ti, (e, t, n) => {
              if (e.name == t.name) {
                if (!n.aIsStrong) return [new ul(0)];
                e.oldRange = t.newRange ? t.newRange.clone() : null;
              }
              return [e];
            }),
            hl(
              ti,
              oi,
              (e, t) => (
                e.oldRange &&
                  (e.oldRange = e.oldRange._getTransformedByMergeOperation(t)),
                e.newRange &&
                  (e.newRange = e.newRange._getTransformedByMergeOperation(t)),
                [e]
              )
            ),
            hl(ti, Za, (e, t, n) => {
              if (
                (e.oldRange &&
                  (e.oldRange = zo._createFromRanges(
                    e.oldRange._getTransformedByMoveOperation(t)
                  )),
                e.newRange)
              ) {
                if (n.abRelation) {
                  const r = zo._createFromRanges(
                    e.newRange._getTransformedByMoveOperation(t)
                  );
                  if (
                    "left" == n.abRelation.side &&
                    t.targetPosition.isEqual(e.newRange.start)
                  )
                    return (
                      (e.newRange.start.path = n.abRelation.path),
                      (e.newRange.end = r.end),
                      [e]
                    );
                  if (
                    "right" == n.abRelation.side &&
                    t.targetPosition.isEqual(e.newRange.end)
                  )
                    return (
                      (e.newRange.start = r.start),
                      (e.newRange.end.path = n.abRelation.path),
                      [e]
                    );
                }
                e.newRange = zo._createFromRanges(
                  e.newRange._getTransformedByMoveOperation(t)
                );
              }
              return [e];
            }),
            hl(ti, ai, (e, t, n) => {
              if (
                (e.oldRange &&
                  (e.oldRange = e.oldRange._getTransformedBySplitOperation(t)),
                e.newRange)
              ) {
                if (n.abRelation) {
                  const r = e.newRange._getTransformedBySplitOperation(t);
                  return (
                    e.newRange.start.isEqual(t.splitPosition) &&
                    n.abRelation.wasStartBeforeMergedElement
                      ? (e.newRange.start = Ho._createAt(t.insertionPosition))
                      : e.newRange.start.isEqual(t.splitPosition) &&
                        !n.abRelation.wasInLeftElement &&
                        (e.newRange.start = Ho._createAt(t.moveTargetPosition)),
                    e.newRange.end.isEqual(t.splitPosition) &&
                    n.abRelation.wasInRightElement
                      ? (e.newRange.end = Ho._createAt(t.moveTargetPosition))
                      : e.newRange.end.isEqual(t.splitPosition) &&
                        n.abRelation.wasEndBeforeMergedElement
                      ? (e.newRange.end = Ho._createAt(t.insertionPosition))
                      : (e.newRange.end = r.end),
                    [e]
                  );
                }
                e.newRange = e.newRange._getTransformedBySplitOperation(t);
              }
              return [e];
            }),
            hl(
              oi,
              ei,
              (e, t) => (
                e.sourcePosition.hasSameParentAs(t.position) &&
                  (e.howMany += t.howMany),
                (e.sourcePosition = e.sourcePosition._getTransformedByInsertOperation(
                  t
                )),
                (e.targetPosition = e.targetPosition._getTransformedByInsertOperation(
                  t
                )),
                [e]
              )
            ),
            hl(oi, oi, (e, t, n) => {
              if (
                e.sourcePosition.isEqual(t.sourcePosition) &&
                e.targetPosition.isEqual(t.targetPosition)
              ) {
                if (n.bWasUndone) {
                  const n = t.graveyardPosition.path.slice();
                  return (
                    n.push(0),
                    (e.sourcePosition = new Ho(t.graveyardPosition.root, n)),
                    (e.howMany = 0),
                    [e]
                  );
                }
                return [new ul(0)];
              }
              if (
                e.sourcePosition.isEqual(t.sourcePosition) &&
                !e.targetPosition.isEqual(t.targetPosition) &&
                !n.bWasUndone &&
                "splitAtSource" != n.abRelation
              ) {
                const r = "$graveyard" == e.targetPosition.root.rootName,
                  o = "$graveyard" == t.targetPosition.root.rootName;
                if ((o && !r) || ((!r || o) && n.aIsStrong)) {
                  const n = t.targetPosition._getTransformedByMergeOperation(t),
                    r = e.targetPosition._getTransformedByMergeOperation(t);
                  return [new Za(n, e.howMany, r, 0)];
                }
                return [new ul(0)];
              }
              return (
                e.sourcePosition.hasSameParentAs(t.targetPosition) &&
                  (e.howMany += t.howMany),
                (e.sourcePosition = e.sourcePosition._getTransformedByMergeOperation(
                  t
                )),
                (e.targetPosition = e.targetPosition._getTransformedByMergeOperation(
                  t
                )),
                (e.graveyardPosition.isEqual(t.graveyardPosition) &&
                  n.aIsStrong) ||
                  (e.graveyardPosition = e.graveyardPosition._getTransformedByMergeOperation(
                    t
                  )),
                [e]
              );
            }),
            hl(oi, Za, (e, t, n) => {
              const r = zo._createFromPositionAndShift(
                t.sourcePosition,
                t.howMany
              );
              return "remove" == t.type &&
                !n.bWasUndone &&
                !n.forceWeakRemove &&
                e.deletionPosition.hasSameParentAs(t.sourcePosition) &&
                r.containsPosition(e.sourcePosition)
                ? [new ul(0)]
                : (e.sourcePosition.hasSameParentAs(t.targetPosition) &&
                    (e.howMany += t.howMany),
                  e.sourcePosition.hasSameParentAs(t.sourcePosition) &&
                    (e.howMany -= t.howMany),
                  (e.sourcePosition = e.sourcePosition._getTransformedByMoveOperation(
                    t
                  )),
                  (e.targetPosition = e.targetPosition._getTransformedByMoveOperation(
                    t
                  )),
                  e.graveyardPosition.isEqual(t.targetPosition) ||
                    (e.graveyardPosition = e.graveyardPosition._getTransformedByMoveOperation(
                      t
                    )),
                  [e]);
            }),
            hl(oi, ai, (e, t, n) => {
              if (
                (t.graveyardPosition &&
                  ((e.graveyardPosition = e.graveyardPosition._getTransformedByDeletion(
                    t.graveyardPosition,
                    1
                  )),
                  e.deletionPosition.isEqual(t.graveyardPosition) &&
                    (e.howMany = t.howMany)),
                e.targetPosition.isEqual(t.splitPosition))
              ) {
                const r = 0 != t.howMany,
                  o =
                    t.graveyardPosition &&
                    e.deletionPosition.isEqual(t.graveyardPosition);
                if (r || o || "mergeTargetNotMoved" == n.abRelation)
                  return (
                    (e.sourcePosition = e.sourcePosition._getTransformedBySplitOperation(
                      t
                    )),
                    [e]
                  );
              }
              if (e.sourcePosition.isEqual(t.splitPosition)) {
                if ("mergeSourceNotMoved" == n.abRelation)
                  return (
                    (e.howMany = 0),
                    (e.targetPosition = e.targetPosition._getTransformedBySplitOperation(
                      t
                    )),
                    [e]
                  );
                if (
                  "mergeSameElement" == n.abRelation ||
                  e.sourcePosition.offset > 0
                )
                  return (
                    (e.sourcePosition = t.moveTargetPosition.clone()),
                    (e.targetPosition = e.targetPosition._getTransformedBySplitOperation(
                      t
                    )),
                    [e]
                  );
              }
              return (
                e.sourcePosition.hasSameParentAs(t.splitPosition) &&
                  (e.howMany = t.splitPosition.offset),
                (e.sourcePosition = e.sourcePosition._getTransformedBySplitOperation(
                  t
                )),
                (e.targetPosition = e.targetPosition._getTransformedBySplitOperation(
                  t
                )),
                [e]
              );
            }),
            hl(Za, ei, (e, t) => {
              const n = zo
                ._createFromPositionAndShift(e.sourcePosition, e.howMany)
                ._getTransformedByInsertOperation(t, !1)[0];
              return (
                (e.sourcePosition = n.start),
                (e.howMany = n.end.offset - n.start.offset),
                e.targetPosition.isEqual(t.position) ||
                  (e.targetPosition = e.targetPosition._getTransformedByInsertOperation(
                    t
                  )),
                [e]
              );
            }),
            hl(Za, Za, (e, t, n) => {
              const r = zo._createFromPositionAndShift(
                  e.sourcePosition,
                  e.howMany
                ),
                o = zo._createFromPositionAndShift(t.sourcePosition, t.howMany);
              let a,
                i = n.aIsStrong,
                s = !n.aIsStrong;
              if (
                ("insertBefore" == n.abRelation || "insertAfter" == n.baRelation
                  ? (s = !0)
                  : ("insertAfter" != n.abRelation &&
                      "insertBefore" != n.baRelation) ||
                    (s = !1),
                (a =
                  e.targetPosition.isEqual(t.targetPosition) && s
                    ? e.targetPosition._getTransformedByDeletion(
                        t.sourcePosition,
                        t.howMany
                      )
                    : e.targetPosition._getTransformedByMove(
                        t.sourcePosition,
                        t.targetPosition,
                        t.howMany
                      )),
                yl(e, t) && yl(t, e))
              )
                return [t.getReversed()];
              if (
                r.containsPosition(t.targetPosition) &&
                r.containsRange(o, !0)
              )
                return (
                  (r.start = r.start._getTransformedByMove(
                    t.sourcePosition,
                    t.targetPosition,
                    t.howMany
                  )),
                  (r.end = r.end._getTransformedByMove(
                    t.sourcePosition,
                    t.targetPosition,
                    t.howMany
                  )),
                  wl([r], a)
                );
              if (
                o.containsPosition(e.targetPosition) &&
                o.containsRange(r, !0)
              )
                return (
                  (r.start = r.start._getCombined(
                    t.sourcePosition,
                    t.getMovedRangeStart()
                  )),
                  (r.end = r.end._getCombined(
                    t.sourcePosition,
                    t.getMovedRangeStart()
                  )),
                  wl([r], a)
                );
              const l = Pt(
                e.sourcePosition.getParentPath(),
                t.sourcePosition.getParentPath()
              );
              if ("prefix" == l || "extension" == l)
                return (
                  (r.start = r.start._getTransformedByMove(
                    t.sourcePosition,
                    t.targetPosition,
                    t.howMany
                  )),
                  (r.end = r.end._getTransformedByMove(
                    t.sourcePosition,
                    t.targetPosition,
                    t.howMany
                  )),
                  wl([r], a)
                );
              "remove" != e.type ||
              "remove" == t.type ||
              n.aWasUndone ||
              n.forceWeakRemove
                ? "remove" == e.type ||
                  "remove" != t.type ||
                  n.bWasUndone ||
                  n.forceWeakRemove ||
                  (i = !1)
                : (i = !0);
              const c = [],
                u = r.getDifference(o);
              for (const e of u) {
                (e.start = e.start._getTransformedByDeletion(
                  t.sourcePosition,
                  t.howMany
                )),
                  (e.end = e.end._getTransformedByDeletion(
                    t.sourcePosition,
                    t.howMany
                  ));
                const n =
                    "same" ==
                    Pt(
                      e.start.getParentPath(),
                      t.getMovedRangeStart().getParentPath()
                    ),
                  r = e._getTransformedByInsertion(
                    t.getMovedRangeStart(),
                    t.howMany,
                    n
                  );
                c.push(...r);
              }
              const d = r.getIntersection(o);
              return (
                null !== d &&
                  i &&
                  ((d.start = d.start._getCombined(
                    t.sourcePosition,
                    t.getMovedRangeStart()
                  )),
                  (d.end = d.end._getCombined(
                    t.sourcePosition,
                    t.getMovedRangeStart()
                  )),
                  0 === c.length
                    ? c.push(d)
                    : 1 == c.length
                    ? o.start.isBefore(r.start) || o.start.isEqual(r.start)
                      ? c.unshift(d)
                      : c.push(d)
                    : c.splice(1, 0, d)),
                0 === c.length ? [new ul(e.baseVersion)] : wl(c, a)
              );
            }),
            hl(Za, ai, (e, t, n) => {
              let r = e.targetPosition.clone();
              (e.targetPosition.isEqual(t.insertionPosition) &&
                t.graveyardPosition &&
                "moveTargetAfter" != n.abRelation) ||
                (r = e.targetPosition._getTransformedBySplitOperation(t));
              const o = zo._createFromPositionAndShift(
                e.sourcePosition,
                e.howMany
              );
              if (o.end.isEqual(t.insertionPosition))
                return (
                  t.graveyardPosition || e.howMany++,
                  (e.targetPosition = r),
                  [e]
                );
              if (
                o.start.hasSameParentAs(t.splitPosition) &&
                o.containsPosition(t.splitPosition)
              ) {
                let e = new zo(t.splitPosition, o.end);
                return (
                  (e = e._getTransformedBySplitOperation(t)),
                  wl([new zo(o.start, t.splitPosition), e], r)
                );
              }
              e.targetPosition.isEqual(t.splitPosition) &&
                "insertAtSource" == n.abRelation &&
                (r = t.moveTargetPosition),
                e.targetPosition.isEqual(t.insertionPosition) &&
                  "insertBetween" == n.abRelation &&
                  (r = e.targetPosition);
              const a = [o._getTransformedBySplitOperation(t)];
              if (t.graveyardPosition) {
                const r =
                  o.start.isEqual(t.graveyardPosition) ||
                  o.containsPosition(t.graveyardPosition);
                e.howMany > 1 &&
                  r &&
                  !n.aWasUndone &&
                  a.push(
                    zo._createFromPositionAndShift(t.insertionPosition, 1)
                  );
              }
              return wl(a, r);
            }),
            hl(Za, oi, (e, t, n) => {
              const r = zo._createFromPositionAndShift(
                e.sourcePosition,
                e.howMany
              );
              if (
                t.deletionPosition.hasSameParentAs(e.sourcePosition) &&
                r.containsPosition(t.sourcePosition)
              )
                if ("remove" != e.type || n.forceWeakRemove) {
                  if (1 == e.howMany)
                    return n.bWasUndone
                      ? ((e.sourcePosition = t.graveyardPosition.clone()),
                        (e.targetPosition = e.targetPosition._getTransformedByMergeOperation(
                          t
                        )),
                        [e])
                      : [new ul(0)];
                } else if (!n.aWasUndone) {
                  const n = [];
                  let r = t.graveyardPosition.clone(),
                    o = t.targetPosition._getTransformedByMergeOperation(t);
                  e.howMany > 1 &&
                    (n.push(
                      new Za(
                        e.sourcePosition,
                        e.howMany - 1,
                        e.targetPosition,
                        0
                      )
                    ),
                    (r = r._getTransformedByMove(
                      e.sourcePosition,
                      e.targetPosition,
                      e.howMany - 1
                    )),
                    (o = o._getTransformedByMove(
                      e.sourcePosition,
                      e.targetPosition,
                      e.howMany - 1
                    )));
                  const a = t.deletionPosition._getCombined(
                      e.sourcePosition,
                      e.targetPosition
                    ),
                    i = new Za(r, 1, a, 0),
                    s = i.getMovedRangeStart().path.slice();
                  s.push(0);
                  const l = new Ho(i.targetPosition.root, s);
                  o = o._getTransformedByMove(r, a, 1);
                  const c = new Za(o, t.howMany, l, 0);
                  return n.push(i), n.push(c), n;
                }
              const o = zo
                ._createFromPositionAndShift(e.sourcePosition, e.howMany)
                ._getTransformedByMergeOperation(t);
              return (
                (e.sourcePosition = o.start),
                (e.howMany = o.end.offset - o.start.offset),
                (e.targetPosition = e.targetPosition._getTransformedByMergeOperation(
                  t
                )),
                [e]
              );
            }),
            hl(
              ni,
              ei,
              (e, t) => (
                (e.position = e.position._getTransformedByInsertOperation(t)),
                [e]
              )
            ),
            hl(ni, oi, (e, t) =>
              e.position.isEqual(t.deletionPosition)
                ? ((e.position = t.graveyardPosition.clone()),
                  (e.position.stickiness = "toNext"),
                  [e])
                : ((e.position = e.position._getTransformedByMergeOperation(t)),
                  [e])
            ),
            hl(
              ni,
              Za,
              (e, t) => (
                (e.position = e.position._getTransformedByMoveOperation(t)), [e]
              )
            ),
            hl(ni, ni, (e, t, n) => {
              if (e.position.isEqual(t.position)) {
                if (!n.aIsStrong) return [new ul(0)];
                e.oldName = t.newName;
              }
              return [e];
            }),
            hl(ni, ai, (e, t) =>
              "same" != Pt(e.position.path, t.splitPosition.getParentPath()) ||
              t.graveyardPosition
                ? ((e.position = e.position._getTransformedBySplitOperation(t)),
                  [e])
                : [
                    e,
                    new ni(e.position.getShiftedBy(1), e.oldName, e.newName, 0),
                  ]
            ),
            hl(ri, ri, (e, t, n) => {
              if (e.root === t.root && e.key === t.key) {
                if (!n.aIsStrong || e.newValue === t.newValue)
                  return [new ul(0)];
                e.oldValue = t.newValue;
              }
              return [e];
            }),
            hl(
              ai,
              ei,
              (e, t) => (
                e.splitPosition.hasSameParentAs(t.position) &&
                  e.splitPosition.offset < t.position.offset &&
                  (e.howMany += t.howMany),
                (e.splitPosition = e.splitPosition._getTransformedByInsertOperation(
                  t
                )),
                (e.insertionPosition = ai.getInsertionPosition(
                  e.splitPosition
                )),
                [e]
              )
            ),
            hl(ai, oi, (e, t, n) => {
              if (
                !e.graveyardPosition &&
                !n.bWasUndone &&
                e.splitPosition.hasSameParentAs(t.sourcePosition)
              ) {
                const n = t.graveyardPosition.path.slice();
                n.push(0);
                const r = new Ho(t.graveyardPosition.root, n),
                  o = ai.getInsertionPosition(
                    new Ho(t.graveyardPosition.root, n)
                  ),
                  a = new ai(r, 0, null, 0);
                return (
                  (a.insertionPosition = o),
                  (e.splitPosition = e.splitPosition._getTransformedByMergeOperation(
                    t
                  )),
                  (e.insertionPosition = ai.getInsertionPosition(
                    e.splitPosition
                  )),
                  (e.graveyardPosition = a.insertionPosition.clone()),
                  (e.graveyardPosition.stickiness = "toNext"),
                  [a, e]
                );
              }
              return (
                e.splitPosition.hasSameParentAs(t.deletionPosition) &&
                  !e.splitPosition.isAfter(t.deletionPosition) &&
                  e.howMany--,
                e.splitPosition.hasSameParentAs(t.targetPosition) &&
                  (e.howMany += t.howMany),
                (e.splitPosition = e.splitPosition._getTransformedByMergeOperation(
                  t
                )),
                (e.insertionPosition = ai.getInsertionPosition(
                  e.splitPosition
                )),
                e.graveyardPosition &&
                  (e.graveyardPosition = e.graveyardPosition._getTransformedByMergeOperation(
                    t
                  )),
                [e]
              );
            }),
            hl(ai, Za, (e, t, n) => {
              const r = zo._createFromPositionAndShift(
                t.sourcePosition,
                t.howMany
              );
              if (e.graveyardPosition) {
                const o =
                  r.start.isEqual(e.graveyardPosition) ||
                  r.containsPosition(e.graveyardPosition);
                if (!n.bWasUndone && o) {
                  const n = e.splitPosition._getTransformedByMoveOperation(t),
                    r = e.graveyardPosition._getTransformedByMoveOperation(t),
                    o = r.path.slice();
                  o.push(0);
                  const a = new Ho(r.root, o);
                  return [new Za(n, e.howMany, a, 0)];
                }
                e.graveyardPosition = e.graveyardPosition._getTransformedByMoveOperation(
                  t
                );
              }
              if (
                e.splitPosition.hasSameParentAs(t.sourcePosition) &&
                r.containsPosition(e.splitPosition)
              ) {
                const n =
                  t.howMany -
                  (e.splitPosition.offset - t.sourcePosition.offset);
                return (
                  (e.howMany -= n),
                  e.splitPosition.hasSameParentAs(t.targetPosition) &&
                    e.splitPosition.offset < t.targetPosition.offset &&
                    (e.howMany += t.howMany),
                  (e.splitPosition = t.sourcePosition.clone()),
                  (e.insertionPosition = ai.getInsertionPosition(
                    e.splitPosition
                  )),
                  [e]
                );
              }
              return !e.splitPosition.isEqual(t.targetPosition) ||
                ("insertAtSource" != n.baRelation &&
                  "splitBefore" != n.abRelation)
                ? (t.sourcePosition.isEqual(t.targetPosition) ||
                    (e.splitPosition.hasSameParentAs(t.sourcePosition) &&
                      e.splitPosition.offset <= t.sourcePosition.offset &&
                      (e.howMany -= t.howMany),
                    e.splitPosition.hasSameParentAs(t.targetPosition) &&
                      e.splitPosition.offset < t.targetPosition.offset &&
                      (e.howMany += t.howMany)),
                  (e.splitPosition.stickiness = "toNone"),
                  (e.splitPosition = e.splitPosition._getTransformedByMoveOperation(
                    t
                  )),
                  (e.splitPosition.stickiness = "toNext"),
                  e.graveyardPosition
                    ? (e.insertionPosition = e.insertionPosition._getTransformedByMoveOperation(
                        t
                      ))
                    : (e.insertionPosition = ai.getInsertionPosition(
                        e.splitPosition
                      )),
                  [e])
                : ((e.howMany += t.howMany),
                  (e.splitPosition = e.splitPosition._getTransformedByDeletion(
                    t.sourcePosition,
                    t.howMany
                  )),
                  (e.insertionPosition = ai.getInsertionPosition(
                    e.splitPosition
                  )),
                  [e]);
            }),
            hl(ai, ai, (e, t, n) => {
              if (e.splitPosition.isEqual(t.splitPosition)) {
                if (!e.graveyardPosition && !t.graveyardPosition)
                  return [new ul(0)];
                if (
                  e.graveyardPosition &&
                  t.graveyardPosition &&
                  e.graveyardPosition.isEqual(t.graveyardPosition)
                )
                  return [new ul(0)];
                if ("splitBefore" == n.abRelation)
                  return (
                    (e.howMany = 0),
                    (e.graveyardPosition = e.graveyardPosition._getTransformedBySplitOperation(
                      t
                    )),
                    [e]
                  );
              }
              if (
                e.graveyardPosition &&
                t.graveyardPosition &&
                e.graveyardPosition.isEqual(t.graveyardPosition)
              ) {
                const r = "$graveyard" == e.splitPosition.root.rootName,
                  o = "$graveyard" == t.splitPosition.root.rootName;
                if ((o && !r) || ((!r || o) && n.aIsStrong)) {
                  const n = [];
                  return (
                    t.howMany &&
                      n.push(
                        new Za(
                          t.moveTargetPosition,
                          t.howMany,
                          t.splitPosition,
                          0
                        )
                      ),
                    e.howMany &&
                      n.push(
                        new Za(
                          e.splitPosition,
                          e.howMany,
                          e.moveTargetPosition,
                          0
                        )
                      ),
                    n
                  );
                }
                return [new ul(0)];
              }
              if (
                (e.graveyardPosition &&
                  (e.graveyardPosition = e.graveyardPosition._getTransformedBySplitOperation(
                    t
                  )),
                e.splitPosition.isEqual(t.insertionPosition) &&
                  "splitBefore" == n.abRelation)
              )
                return e.howMany++, [e];
              if (
                t.splitPosition.isEqual(e.insertionPosition) &&
                "splitBefore" == n.baRelation
              ) {
                const n = t.insertionPosition.path.slice();
                n.push(0);
                const r = new Ho(t.insertionPosition.root, n);
                return [e, new Za(e.insertionPosition, 1, r, 0)];
              }
              return (
                e.splitPosition.hasSameParentAs(t.splitPosition) &&
                  e.splitPosition.offset < t.splitPosition.offset &&
                  (e.howMany -= t.howMany),
                (e.splitPosition = e.splitPosition._getTransformedBySplitOperation(
                  t
                )),
                (e.insertionPosition = ai.getInsertionPosition(
                  e.splitPosition
                )),
                [e]
              );
            });
          class kl extends Hs {
            constructor(e) {
              super(e),
                (this._stack = []),
                (this._createdBatches = new WeakSet()),
                this.refresh();
            }
            refresh() {
              this.isEnabled = this._stack.length > 0;
            }
            addBatch(e) {
              const t = this.editor.model.document.selection,
                n = {
                  ranges: t.hasOwnRange ? Array.from(t.getRanges()) : [],
                  isBackward: t.isBackward,
                };
              this._stack.push({ batch: e, selection: n }), this.refresh();
            }
            clearStack() {
              (this._stack = []), this.refresh();
            }
            _restoreSelection(e, t, n) {
              const r = this.editor.model,
                o = r.document,
                a = [];
              for (const t of e) {
                const e = xl(t, n).find((e) => e.start.root != o.graveyard);
                e && a.push(e);
              }
              a.length &&
                r.change((e) => {
                  e.setSelection(a, { backward: t });
                });
            }
            _undo(e, t) {
              const n = this.editor.model,
                r = n.document;
              this._createdBatches.add(t);
              const o = e.operations
                .slice()
                .filter((e) => e.isDocumentOperation);
              o.reverse();
              for (const e of o) {
                const o = e.baseVersion + 1,
                  a = Array.from(r.history.getOperations(o)),
                  i = ml([e.getReversed()], a, {
                    useRelations: !0,
                    document: this.editor.model.document,
                    padWithNoOps: !1,
                    forceWeakRemove: !0,
                  }).operationsA;
                for (const o of i)
                  t.addOperation(o),
                    n.applyOperation(o),
                    r.history.setOperationAsUndone(e, o);
              }
            }
          }
          function xl(e, t) {
            const n = e.getTransformedByOperations(t);
            n.sort((e, t) => (e.start.isBefore(t.start) ? -1 : 1));
            for (let e = 1; e < n.length; e++) {
              const t = n[e - 1],
                r = n[e];
              t.end.isTouching(r.start) &&
                ((t.end = r.end), n.splice(e, 1), e--);
            }
            return n;
          }
          class Ml extends kl {
            execute(e = null) {
              const t = e
                  ? this._stack.findIndex((t) => t.batch == e)
                  : this._stack.length - 1,
                n = this._stack.splice(t, 1)[0],
                r = this.editor.model.createBatch("transparent");
              this.editor.model.enqueueChange(r, () => {
                this._undo(n.batch, r);
                const e = this.editor.model.document.history.getOperations(
                  n.batch.baseVersion
                );
                this._restoreSelection(
                  n.selection.ranges,
                  n.selection.isBackward,
                  e
                ),
                  this.fire("revert", n.batch, r);
              }),
                this.refresh();
            }
          }
          class El extends kl {
            execute() {
              const e = this._stack.pop(),
                t = this.editor.model.createBatch("transparent");
              this.editor.model.enqueueChange(t, () => {
                const n =
                    e.batch.operations[e.batch.operations.length - 1]
                      .baseVersion + 1,
                  r = this.editor.model.document.history.getOperations(n);
                this._restoreSelection(
                  e.selection.ranges,
                  e.selection.isBackward,
                  r
                ),
                  this._undo(e.batch, t);
              }),
                this.refresh();
            }
          }
          class Tl extends Is {
            constructor(e) {
              super(e), (this._batchRegistry = new WeakSet());
            }
            init() {
              const e = this.editor;
              (this._undoCommand = new Ml(e)),
                (this._redoCommand = new El(e)),
                e.commands.add("undo", this._undoCommand),
                e.commands.add("redo", this._redoCommand),
                this.listenTo(
                  e.model,
                  "applyOperation",
                  (e, t) => {
                    const n = t[0];
                    if (!n.isDocumentOperation) return;
                    const r = n.batch,
                      o = this._redoCommand._createdBatches.has(r),
                      a = this._undoCommand._createdBatches.has(r);
                    this._batchRegistry.has(r) ||
                      ("transparent" == r.type && !o && !a) ||
                      (o
                        ? this._undoCommand.addBatch(r)
                        : a ||
                          (this._undoCommand.addBatch(r),
                          this._redoCommand.clearStack()),
                      this._batchRegistry.add(r));
                  },
                  { priority: "highest" }
                ),
                this.listenTo(this._undoCommand, "revert", (e, t, n) => {
                  this._redoCommand.addBatch(n);
                }),
                e.keystrokes.set("CTRL+Z", "undo"),
                e.keystrokes.set("CTRL+Y", "redo"),
                e.keystrokes.set("CTRL+SHIFT+Z", "redo");
            }
          }
          n(28);
          class Sl extends ys {
            constructor() {
              super();
              const e = this.bindTemplate;
              this.set("content", ""),
                this.set("viewBox", "0 0 20 20"),
                this.set("fillColor", ""),
                this.setTemplate({
                  tag: "svg",
                  ns: "http://www.w3.org/2000/svg",
                  attributes: {
                    class: ["ck", "ck-icon"],
                    viewBox: e.to("viewBox"),
                  },
                });
            }
            render() {
              super.render(),
                this._updateXMLContent(),
                this._colorFillPaths(),
                this.on("change:content", () => {
                  this._updateXMLContent(), this._colorFillPaths();
                }),
                this.on("change:fillColor", () => {
                  this._colorFillPaths();
                });
            }
            _updateXMLContent() {
              if (this.content) {
                const e = new DOMParser()
                    .parseFromString(this.content.trim(), "image/svg+xml")
                    .querySelector("svg"),
                  t = e.getAttribute("viewBox");
                for (
                  t && (this.viewBox = t), this.element.innerHTML = "";
                  e.childNodes.length > 0;

                )
                  this.element.appendChild(e.childNodes[0]);
              }
            }
            _colorFillPaths() {
              this.fillColor &&
                this.element.querySelectorAll(".ck-icon__fill").forEach((e) => {
                  e.style.fill = this.fillColor;
                });
            }
          }
          n(30);
          class Dl extends ys {
            constructor(e) {
              super(e), this.set("text", ""), this.set("position", "s");
              const t = this.bindTemplate;
              this.setTemplate({
                tag: "span",
                attributes: {
                  class: [
                    "ck",
                    "ck-tooltip",
                    t.to("position", (e) => "ck-tooltip_" + e),
                    t.if("text", "ck-hidden", (e) => !e.trim()),
                  ],
                },
                children: [
                  {
                    tag: "span",
                    attributes: { class: ["ck", "ck-tooltip__text"] },
                    children: [{ text: t.to("text") }],
                  },
                ],
              });
            }
          }
          n(32);
          class Ll extends ys {
            constructor(e) {
              super(e);
              const t = this.bindTemplate,
                n = bt();
              this.set("class"),
                this.set("labelStyle"),
                this.set("icon"),
                this.set("isEnabled", !0),
                this.set("isOn", !1),
                this.set("isVisible", !0),
                this.set("isToggleable", !1),
                this.set("keystroke"),
                this.set("label"),
                this.set("tabindex", -1),
                this.set("tooltip"),
                this.set("tooltipPosition", "s"),
                this.set("type", "button"),
                this.set("withText", !1),
                (this.children = this.createCollection()),
                (this.tooltipView = this._createTooltipView()),
                (this.labelView = this._createLabelView(n)),
                (this.iconView = new Sl()),
                this.iconView.extendTemplate({
                  attributes: { class: "ck-button__icon" },
                }),
                this.bind("_tooltipString").to(
                  this,
                  "tooltip",
                  this,
                  "label",
                  this,
                  "keystroke",
                  this._getTooltipString.bind(this)
                ),
                this.setTemplate({
                  tag: "button",
                  attributes: {
                    class: [
                      "ck",
                      "ck-button",
                      t.to("class"),
                      t.if("isEnabled", "ck-disabled", (e) => !e),
                      t.if("isVisible", "ck-hidden", (e) => !e),
                      t.to("isOn", (e) => (e ? "ck-on" : "ck-off")),
                      t.if("withText", "ck-button_with-text"),
                    ],
                    type: t.to("type", (e) => e || "button"),
                    tabindex: t.to("tabindex"),
                    "aria-labelledby": "ck-editor__aria-label_" + n,
                    "aria-disabled": t.if("isEnabled", !0, (e) => !e),
                    "aria-pressed": t.to(
                      "isOn",
                      (e) => !!this.isToggleable && String(e)
                    ),
                  },
                  children: this.children,
                  on: {
                    mousedown: t.to((e) => {
                      e.preventDefault();
                    }),
                    click: t.to((e) => {
                      this.isEnabled
                        ? this.fire("execute")
                        : e.preventDefault();
                    }),
                  },
                });
            }
            render() {
              super.render(),
                this.icon &&
                  (this.iconView.bind("content").to(this, "icon"),
                  this.children.add(this.iconView)),
                this.children.add(this.tooltipView),
                this.children.add(this.labelView);
            }
            focus() {
              this.element.focus();
            }
            _createTooltipView() {
              const e = new Dl();
              return (
                e.bind("text").to(this, "_tooltipString"),
                e.bind("position").to(this, "tooltipPosition"),
                e
              );
            }
            _createLabelView(e) {
              const t = new ys(),
                n = this.bindTemplate;
              return (
                t.setTemplate({
                  tag: "span",
                  attributes: {
                    class: ["ck", "ck-button__label"],
                    style: n.to("labelStyle"),
                    id: "ck-editor__aria-label_" + e,
                  },
                  children: [{ text: this.bindTemplate.to("label") }],
                }),
                t
              );
            }
            _getTooltipString(e, t, n) {
              return e
                ? "string" == typeof e
                  ? e
                  : (n &&
                      (n = (function (e) {
                        return Cn
                          ? Hn(e)
                              .map((e) => Rn[e.toLowerCase()] || e)
                              .reduce((e, t) =>
                                e.slice(-1) in In ? e + t : e + "+" + t
                              )
                          : e;
                      })(n)),
                    e instanceof Function
                      ? e(t, n)
                      : `${t}${n ? ` (${n})` : ""}`)
                : "";
            }
          }
          var Cl =
              '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',
            Pl =
              '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';
          class Ol extends Is {
            init() {
              const e = this.editor,
                t = e.locale,
                n = e.t,
                r = "ltr" == t.uiLanguageDirection ? Cl : Pl,
                o = "ltr" == t.uiLanguageDirection ? Pl : Cl;
              this._addButton("undo", n("bj"), "CTRL+Z", r),
                this._addButton("redo", n("bk"), "CTRL+Y", o);
            }
            _addButton(e, t, n, r) {
              const o = this.editor;
              o.ui.componentFactory.add(e, (a) => {
                const i = o.commands.get(e),
                  s = new Ll(a);
                return (
                  s.set({ label: t, icon: r, keystroke: n, tooltip: !0 }),
                  s.bind("isEnabled").to(i, "isEnabled"),
                  this.listenTo(s, "execute", () => o.execute(e)),
                  s
                );
              });
            }
          }
          class Nl extends Is {
            static get requires() {
              return [Tl, Ol];
            }
            static get pluginName() {
              return "Undo";
            }
          }
          class Al extends Is {
            static get pluginName() {
              return "PendingActions";
            }
            init() {
              this.set("hasAny", !1),
                (this._actions = new kn({ idProperty: "_id" })),
                this._actions.delegate("add", "remove").to(this);
            }
            add(e) {
              if ("string" != typeof e)
                throw new _t.b(
                  "pendingactions-add-invalid-message: The message must be a string.",
                  this
                );
              const t = Object.create(on);
              return (
                t.set("message", e), this._actions.add(t), (this.hasAny = !0), t
              );
            }
            remove(e) {
              this._actions.remove(e), (this.hasAny = !!this._actions.length);
            }
            get first() {
              return this._actions.get(0);
            }
            [Symbol.iterator]() {
              return this._actions[Symbol.iterator]();
            }
          }
          class Il {
            constructor() {
              const e = new window.FileReader();
              (this._reader = e),
                (this._data = void 0),
                this.set("loaded", 0),
                (e.onprogress = (e) => {
                  this.loaded = e.loaded;
                });
            }
            get error() {
              return this._reader.error;
            }
            get data() {
              return this._data;
            }
            read(e) {
              const t = this._reader;
              return (
                (this.total = e.size),
                new Promise((n, r) => {
                  (t.onload = () => {
                    const e = t.result;
                    (this._data = e), n(e);
                  }),
                    (t.onerror = () => {
                      r("error");
                    }),
                    (t.onabort = () => {
                      r("aborted");
                    }),
                    this._reader.readAsDataURL(e);
                })
              );
            }
            abort() {
              this._reader.abort();
            }
          }
          Ct(Il, on);
          class Rl extends Is {
            static get pluginName() {
              return "FileRepository";
            }
            static get requires() {
              return [Al];
            }
            init() {
              (this.loaders = new kn()),
                this.loaders.on("add", () => this._updatePendingAction()),
                this.loaders.on("remove", () => this._updatePendingAction()),
                (this._loadersMap = new Map()),
                (this._pendingAction = null),
                this.set("uploaded", 0),
                this.set("uploadTotal", null),
                this.bind("uploadedPercent").to(
                  this,
                  "uploaded",
                  this,
                  "uploadTotal",
                  (e, t) => (t ? (e / t) * 100 : 0)
                );
            }
            getLoader(e) {
              return this._loadersMap.get(e) || null;
            }
            createLoader(e) {
              if (!this.createUploadAdapter)
                return (
                  console.warn(
                    Object(_t.a)(
                      "filerepository-no-upload-adapter: Upload adapter is not defined."
                    )
                  ),
                  null
                );
              const t = new Yl(Promise.resolve(e), this.createUploadAdapter);
              return (
                this.loaders.add(t),
                this._loadersMap.set(e, t),
                e instanceof Promise &&
                  t.file.then((e) => {
                    this._loadersMap.set(e, t);
                  }),
                t.file.catch(() => {}),
                t.on("change:uploaded", () => {
                  let e = 0;
                  for (const t of this.loaders) e += t.uploaded;
                  this.uploaded = e;
                }),
                t.on("change:uploadTotal", () => {
                  let e = 0;
                  for (const t of this.loaders)
                    t.uploadTotal && (e += t.uploadTotal);
                  this.uploadTotal = e;
                }),
                t
              );
            }
            destroyLoader(e) {
              const t = e instanceof Yl ? e : this.getLoader(e);
              t._destroy(),
                this.loaders.remove(t),
                this._loadersMap.forEach((e, n) => {
                  e === t && this._loadersMap.delete(n);
                });
            }
            _updatePendingAction() {
              const e = this.editor.plugins.get(Al);
              if (this.loaders.length) {
                if (!this._pendingAction) {
                  const t = this.editor.t,
                    n = (e) => `${t("aw")} ${parseInt(e)}%.`;
                  (this._pendingAction = e.add(n(this.uploadedPercent))),
                    this._pendingAction
                      .bind("message")
                      .to(this, "uploadedPercent", n);
                }
              } else
                e.remove(this._pendingAction), (this._pendingAction = null);
            }
          }
          Ct(Rl, on);
          class Yl {
            constructor(e, t) {
              (this.id = bt()),
                (this._filePromiseWrapper = this._createFilePromiseWrapper(e)),
                (this._adapter = t(this)),
                (this._reader = new Il()),
                this.set("status", "idle"),
                this.set("uploaded", 0),
                this.set("uploadTotal", null),
                this.bind("uploadedPercent").to(
                  this,
                  "uploaded",
                  this,
                  "uploadTotal",
                  (e, t) => (t ? (e / t) * 100 : 0)
                ),
                this.set("uploadResponse", null);
            }
            get file() {
              return this._filePromiseWrapper
                ? this._filePromiseWrapper.promise.then((e) =>
                    this._filePromiseWrapper ? e : null
                  )
                : Promise.resolve(null);
            }
            get data() {
              return this._reader.data;
            }
            read() {
              if ("idle" != this.status)
                throw new _t.b(
                  "filerepository-read-wrong-status: You cannot call read if the status is different than idle.",
                  this
                );
              return (
                (this.status = "reading"),
                this._filePromiseWrapper.promise
                  .then((e) => this._reader.read(e))
                  .then((e) => ((this.status = "idle"), e))
                  .catch((e) => {
                    if ("aborted" === e)
                      throw ((this.status = "aborted"), "aborted");
                    throw (
                      ((this.status = "error"),
                      this._reader.error ? this._reader.error : e)
                    );
                  })
              );
            }
            upload() {
              if ("idle" != this.status)
                throw new _t.b(
                  "filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",
                  this
                );
              return (
                (this.status = "uploading"),
                this._filePromiseWrapper.promise
                  .then(() => this._adapter.upload())
                  .then(
                    (e) => (
                      (this.uploadResponse = e), (this.status = "idle"), e
                    )
                  )
                  .catch((e) => {
                    if ("aborted" === this.status) throw "aborted";
                    throw ((this.status = "error"), e);
                  })
              );
            }
            abort() {
              const e = this.status;
              (this.status = "aborted"),
                this._filePromiseWrapper.isFulfilled
                  ? "reading" == e
                    ? this._reader.abort()
                    : "uploading" == e &&
                      this._adapter.abort &&
                      this._adapter.abort()
                  : this._filePromiseWrapper.rejecter("aborted"),
                this._destroy();
            }
            _destroy() {
              (this._filePromiseWrapper = void 0),
                (this._reader = void 0),
                (this._adapter = void 0),
                (this.uploadResponse = void 0);
            }
            _createFilePromiseWrapper(e) {
              const t = {};
              return (
                (t.promise = new Promise((n, r) => {
                  (t.resolver = n),
                    (t.rejecter = r),
                    (t.isFulfilled = !1),
                    e
                      .then((e) => {
                        (t.isFulfilled = !0), n(e);
                      })
                      .catch((e) => {
                        (t.isFulfilled = !0), r(e);
                      });
                })),
                t
              );
            }
          }
          Ct(Yl, on);
          const jl = "ckCsrfToken",
            Fl = "abcdefghijklmnopqrstuvwxyz0123456789";
          class Hl extends Is {
            static get requires() {
              return [Rl];
            }
            static get pluginName() {
              return "CKFinderUploadAdapter";
            }
            init() {
              const e = this.editor.config.get("ckfinder.uploadUrl");
              e &&
                (this.editor.plugins.get(Rl).createUploadAdapter = (t) =>
                  new zl(t, e, this.editor.t));
            }
          }
          class zl {
            constructor(e, t, n) {
              (this.loader = e), (this.url = t), (this.t = n);
            }
            upload() {
              return this.loader.file.then(
                (e) =>
                  new Promise((t, n) => {
                    this._initRequest(),
                      this._initListeners(t, n, e),
                      this._sendRequest(e);
                  })
              );
            }
            abort() {
              this.xhr && this.xhr.abort();
            }
            _initRequest() {
              const e = (this.xhr = new XMLHttpRequest());
              e.open("POST", this.url, !0), (e.responseType = "json");
            }
            _initListeners(e, t, n) {
              const r = this.xhr,
                o = this.loader,
                a = (0, this.t)("a") + ` ${n.name}.`;
              r.addEventListener("error", () => t(a)),
                r.addEventListener("abort", () => t()),
                r.addEventListener("load", () => {
                  const n = r.response;
                  if (!n || !n.uploaded)
                    return t(
                      n && n.error && n.error.message ? n.error.message : a
                    );
                  e({ default: n.url });
                }),
                r.upload &&
                  r.upload.addEventListener("progress", (e) => {
                    e.lengthComputable &&
                      ((o.uploadTotal = e.total), (o.uploaded = e.loaded));
                  });
            }
            _sendRequest(e) {
              const t = new FormData();
              t.append("upload", e),
                t.append(
                  "ckCsrfToken",
                  (function () {
                    let e = (function (e) {
                      e = e.toLowerCase();
                      const t = document.cookie.split(";");
                      for (const n of t) {
                        const t = n.split("=");
                        if (decodeURIComponent(t[0].trim().toLowerCase()) === e)
                          return decodeURIComponent(t[1]);
                      }
                      return null;
                    })(jl);
                    return (
                      (e && 40 == e.length) ||
                        ((e = (function (e) {
                          let t = "";
                          const n = new Uint8Array(40);
                          window.crypto.getRandomValues(n);
                          for (let e = 0; e < n.length; e++) {
                            const r = Fl.charAt(n[e] % Fl.length);
                            t += Math.random() > 0.5 ? r.toUpperCase() : r;
                          }
                          return t;
                        })()),
                        (function (e, t) {
                          document.cookie =
                            encodeURIComponent("ckCsrfToken") +
                            "=" +
                            encodeURIComponent(t) +
                            ";path=/";
                        })(0, e)),
                      e
                    );
                  })()
                ),
                this.xhr.send(t);
            }
          }
          class Bl {
            constructor(e, t, n) {
              let r,
                o = null;
              "function" == typeof n
                ? (r = n)
                : ((o = e.commands.get(n)),
                  (r = () => {
                    e.execute(n);
                  })),
                e.model.document.on("change", (n, a) => {
                  if (o && !o.isEnabled) return;
                  if ("transparent" == a.type) return;
                  const i = Array.from(e.model.document.differ.getChanges()),
                    s = i[0];
                  if (
                    1 != i.length ||
                    "insert" !== s.type ||
                    "$text" != s.name ||
                    1 != s.length
                  )
                    return;
                  const l = s.position.textNode || s.position.nodeAfter;
                  if (!l.parent.is("paragraph")) return;
                  const c = t.exec(l.data);
                  c &&
                    e.model.enqueueChange((e) => {
                      const t = e.createPositionAt(l.parent, 0),
                        n = e.createPositionAt(l.parent, c[0].length),
                        o = new Xo(t, n);
                      !1 !== r({ match: c }) && e.remove(o), o.detach();
                    });
                });
            }
          }
          class Ul {
            constructor(e, t, n) {
              let r, o, a, i;
              t instanceof RegExp ? (r = t) : (a = t),
                "string" == typeof n ? (o = n) : (i = n),
                (a =
                  a ||
                  ((e) => {
                    let t;
                    const n = [],
                      o = [];
                    for (; null !== (t = r.exec(e)) && !(t && t.length < 4); ) {
                      let { index: e, 1: r, 2: a, 3: i } = t;
                      const s = r + a + i,
                        l = [(e += t[0].length - s.length), e + r.length],
                        c = [
                          e + r.length + a.length,
                          e + r.length + a.length + i.length,
                        ];
                      n.push(l),
                        n.push(c),
                        o.push([e + r.length, e + r.length + a.length]);
                    }
                    return { remove: n, format: o };
                  })),
                (i =
                  i ||
                  ((t, n) => {
                    const r = e.model.schema.getValidRanges(n, o);
                    for (const e of r) t.setAttribute(o, !0, e);
                    t.removeSelectionAttribute(o);
                  })),
                e.model.document.on("change", (t, n) => {
                  if ("transparent" == n.type) return;
                  const r = e.model.document.selection;
                  if (!r.isCollapsed) return;
                  const o = Array.from(e.model.document.differ.getChanges()),
                    s = o[0];
                  if (
                    1 != o.length ||
                    "insert" !== s.type ||
                    "$text" != s.name ||
                    1 != s.length
                  )
                    return;
                  const l = r.focus.parent,
                    c = (function (e) {
                      return Array.from(e.getChildren()).reduce(
                        (e, t) => e + t.data,
                        ""
                      );
                    })(l).slice(0, r.focus.offset),
                    u = a(c),
                    d = Vl(l, u.format, e.model),
                    h = Vl(l, u.remove, e.model);
                  d.length &&
                    h.length &&
                    e.model.enqueueChange((e) => {
                      if (!1 !== i(e, d))
                        for (const t of h.reverse()) e.remove(t);
                    });
                });
            }
          }
          function Vl(e, t, n) {
            return t
              .filter((e) => void 0 !== e[0] && void 0 !== e[1])
              .map((t) =>
                n.createRange(
                  n.createPositionAt(e, t[0]),
                  n.createPositionAt(e, t[1])
                )
              );
          }
          function Wl(e, t) {
            return (n, r) => {
              if (!e.commands.get(t).isEnabled) return !1;
              const o = e.model.schema.getValidRanges(r, t);
              for (const e of o) n.setAttribute(t, !0, e);
              n.removeSelectionAttribute(t);
            };
          }
          class ql extends Hs {
            constructor(e, t) {
              super(e), (this.attributeKey = t);
            }
            refresh() {
              const e = this.editor.model,
                t = e.document;
              (this.value = this._getValueFromFirstAllowedNode()),
                (this.isEnabled = e.schema.checkAttributeInSelection(
                  t.selection,
                  this.attributeKey
                ));
            }
            execute(e = {}) {
              const t = this.editor.model,
                n = t.document.selection,
                r = void 0 === e.forceValue ? !this.value : e.forceValue;
              t.change((e) => {
                if (n.isCollapsed)
                  r
                    ? e.setSelectionAttribute(this.attributeKey, !0)
                    : e.removeSelectionAttribute(this.attributeKey);
                else {
                  const o = t.schema.getValidRanges(
                    n.getRanges(),
                    this.attributeKey
                  );
                  for (const t of o)
                    r
                      ? e.setAttribute(this.attributeKey, r, t)
                      : e.removeAttribute(this.attributeKey, t);
                }
              });
            }
            _getValueFromFirstAllowedNode() {
              const e = this.editor.model,
                t = e.schema,
                n = e.document.selection;
              if (n.isCollapsed) return n.hasAttribute(this.attributeKey);
              for (const e of n.getRanges())
                for (const n of e.getItems())
                  if (t.checkAttribute(n, this.attributeKey))
                    return n.hasAttribute(this.attributeKey);
              return !1;
            }
          }
          const Gl = "bold";
          class Jl extends Is {
            init() {
              const e = this.editor;
              e.model.schema.extend("$text", { allowAttributes: Gl }),
                e.model.schema.setAttributeProperties(Gl, {
                  isFormatting: !0,
                  copyOnEnter: !0,
                }),
                e.conversion.attributeToElement({
                  model: Gl,
                  view: "strong",
                  upcastAlso: ["b", { styles: { "font-weight": "bold" } }],
                }),
                e.commands.add(Gl, new ql(e, Gl)),
                e.keystrokes.set("CTRL+B", Gl);
            }
          }
          const Kl = "bold";
          class Ql extends Is {
            init() {
              const e = this.editor,
                t = e.t;
              e.ui.componentFactory.add(Kl, (n) => {
                const r = e.commands.get(Kl),
                  o = new Ll(n);
                return (
                  o.set({
                    label: t("d"),
                    icon:
                      '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',
                    keystroke: "CTRL+B",
                    tooltip: !0,
                    isToggleable: !0,
                  }),
                  o.bind("isOn", "isEnabled").to(r, "value", "isEnabled"),
                  this.listenTo(o, "execute", () => e.execute(Kl)),
                  o
                );
              });
            }
          }
          const Xl = "italic";
          class $l extends Is {
            init() {
              const e = this.editor;
              e.model.schema.extend("$text", { allowAttributes: Xl }),
                e.model.schema.setAttributeProperties(Xl, {
                  isFormatting: !0,
                  copyOnEnter: !0,
                }),
                e.conversion.attributeToElement({
                  model: Xl,
                  view: "i",
                  upcastAlso: ["em", { styles: { "font-style": "italic" } }],
                }),
                e.commands.add(Xl, new ql(e, Xl)),
                e.keystrokes.set("CTRL+I", Xl);
            }
          }
          const Zl = "italic";
          class ec extends Is {
            init() {
              const e = this.editor,
                t = e.t;
              e.ui.componentFactory.add(Zl, (n) => {
                const r = e.commands.get(Zl),
                  o = new Ll(n);
                return (
                  o.set({
                    label: t("e"),
                    icon:
                      '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',
                    keystroke: "CTRL+I",
                    tooltip: !0,
                    isToggleable: !0,
                  }),
                  o.bind("isOn", "isEnabled").to(r, "value", "isEnabled"),
                  this.listenTo(o, "execute", () => e.execute(Zl)),
                  o
                );
              });
            }
          }
          function tc(e) {
            const t = e.next();
            return t.done ? null : t.value;
          }
          class nc extends Hs {
            refresh() {
              (this.value = this._getValue()),
                (this.isEnabled = this._checkEnabled());
            }
            execute(e = {}) {
              const t = this.editor.model,
                n = t.schema,
                r = t.document.selection,
                o = Array.from(r.getTopMostBlocks()),
                a = void 0 === e.forceValue ? !this.value : e.forceValue;
              t.change((e) => {
                if (a) {
                  const t = o.filter((e) => rc(e) || ac(n, e));
                  this._applyQuote(e, t);
                } else this._removeQuote(e, o.filter(rc));
              });
            }
            _getValue() {
              const e = tc(
                this.editor.model.document.selection.getTopMostBlocks()
              );
              return !(!e || !rc(e));
            }
            _checkEnabled() {
              if (this.value) return !0;
              const e = this.editor.model.document.selection,
                t = this.editor.model.schema,
                n = tc(e.getSelectedBlocks());
              return !!n && ac(t, n);
            }
            _removeQuote(e, t) {
              oc(e, t)
                .reverse()
                .forEach((t) => {
                  if (t.start.isAtStart && t.end.isAtEnd)
                    return void e.unwrap(t.start.parent);
                  if (t.start.isAtStart) {
                    const n = e.createPositionBefore(t.start.parent);
                    return void e.move(t, n);
                  }
                  t.end.isAtEnd || e.split(t.end);
                  const n = e.createPositionAfter(t.end.parent);
                  e.move(t, n);
                });
            }
            _applyQuote(e, t) {
              const n = [];
              oc(e, t)
                .reverse()
                .forEach((t) => {
                  let r = rc(t.start);
                  r || ((r = e.createElement("blockQuote")), e.wrap(t, r)),
                    n.push(r);
                }),
                n
                  .reverse()
                  .reduce((t, n) =>
                    t.nextSibling == n
                      ? (e.merge(e.createPositionAfter(t)), t)
                      : n
                  );
            }
          }
          function rc(e) {
            return "blockQuote" == e.parent.name ? e.parent : null;
          }
          function oc(e, t) {
            let n,
              r = 0;
            const o = [];
            for (; r < t.length; ) {
              const a = t[r],
                i = t[r + 1];
              n || (n = e.createPositionBefore(a)),
                (i && a.nextSibling == i) ||
                  (o.push(e.createRange(n, e.createPositionAfter(a))),
                  (n = null)),
                r++;
            }
            return o;
          }
          function ac(e, t) {
            const n = e.checkChild(t.parent, "blockQuote"),
              r = e.checkChild(["$root", "blockQuote"], t);
            return n && r;
          }
          class ic extends Is {
            init() {
              const e = this.editor,
                t = e.model.schema;
              e.commands.add("blockQuote", new nc(e)),
                t.register("blockQuote", {
                  allowWhere: "$block",
                  allowContentOf: "$root",
                }),
                t.addChildCheck((e, t) => {
                  if (e.endsWith("blockQuote") && "blockQuote" == t.name)
                    return !1;
                }),
                e.conversion.elementToElement({
                  model: "blockQuote",
                  view: "blockquote",
                }),
                e.model.document.registerPostFixer((n) => {
                  const r = e.model.document.differ.getChanges();
                  for (const e of r)
                    if ("insert" == e.type) {
                      const r = e.position.nodeAfter;
                      if (!r) continue;
                      if (r.is("blockQuote") && r.isEmpty)
                        return n.remove(r), !0;
                      if (r.is("blockQuote") && !t.checkChild(e.position, r))
                        return n.unwrap(r), !0;
                      if (r.is("element")) {
                        const e = n.createRangeIn(r);
                        for (const r of e.getItems())
                          if (
                            r.is("blockQuote") &&
                            !t.checkChild(n.createPositionBefore(r), r)
                          )
                            return n.unwrap(r), !0;
                      }
                    } else if ("remove" == e.type) {
                      const t = e.position.parent;
                      if (t.is("blockQuote") && t.isEmpty)
                        return n.remove(t), !0;
                    }
                  return !1;
                });
            }
            afterInit() {
              const e = this.editor.commands.get("blockQuote");
              this.listenTo(
                this.editor.editing.view.document,
                "enter",
                (t, n) => {
                  const r = this.editor.model.document,
                    o = r.selection.getLastPosition().parent;
                  r.selection.isCollapsed &&
                    o.isEmpty &&
                    e.value &&
                    (this.editor.execute("blockQuote"),
                    this.editor.editing.view.scrollToTheSelection(),
                    n.preventDefault(),
                    t.stop());
                }
              );
            }
          }
          n(34);
          class sc extends Is {
            init() {
              const e = this.editor,
                t = e.t;
              e.ui.componentFactory.add("blockQuote", (n) => {
                const r = e.commands.get("blockQuote"),
                  o = new Ll(n);
                return (
                  o.set({
                    label: t("f"),
                    icon:
                      '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',
                    tooltip: !0,
                    isToggleable: !0,
                  }),
                  o.bind("isOn", "isEnabled").to(r, "value", "isEnabled"),
                  this.listenTo(o, "execute", () => e.execute("blockQuote")),
                  o
                );
              });
            }
          }
          class lc extends Is {
            static get pluginName() {
              return "CKFinderUI";
            }
            init() {
              const e = this.editor,
                t = e.ui.componentFactory,
                n = e.t;
              t.add("ckfinder", (t) => {
                const r = e.commands.get("ckfinder"),
                  o = new Ll(t);
                return (
                  o.set({
                    label: n("g"),
                    icon:
                      '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',
                    tooltip: !0,
                  }),
                  o.bind("isEnabled").to(r),
                  o.on("execute", () => {
                    e.execute("ckfinder"), e.editing.view.focus();
                  }),
                  o
                );
              });
            }
          }
          class cc extends Is {
            static get pluginName() {
              return "Notification";
            }
            init() {
              this.on(
                "show:warning",
                (e, t) => {
                  window.alert(t.message);
                },
                { priority: "lowest" }
              );
            }
            showSuccess(e, t = {}) {
              this._showNotification({
                message: e,
                type: "success",
                namespace: t.namespace,
                title: t.title,
              });
            }
            showInfo(e, t = {}) {
              this._showNotification({
                message: e,
                type: "info",
                namespace: t.namespace,
                title: t.title,
              });
            }
            showWarning(e, t = {}) {
              this._showNotification({
                message: e,
                type: "warning",
                namespace: t.namespace,
                title: t.title,
              });
            }
            _showNotification(e) {
              const t =
                "show:" + e.type + (e.namespace ? ":" + e.namespace : "");
              this.fire(t, {
                message: e.message,
                type: e.type,
                title: e.title || "",
              });
            }
          }
          class uc extends Hs {
            constructor(e) {
              super(e),
                this.stopListening(this.editor.model.document, "change"),
                this.listenTo(
                  this.editor.model.document,
                  "change",
                  () => this.refresh(),
                  { priority: "low" }
                );
            }
            refresh() {
              const e = this.editor.commands.get("imageUpload"),
                t = this.editor.commands.get("link");
              this.isEnabled = e && t && (e.isEnabled || t.isEnabled);
            }
            execute() {
              const e = this.editor,
                t = this.editor.config.get("ckfinder.openerMethod") || "modal";
              if ("popup" != t && "modal" != t)
                throw new _t.b(
                  'ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',
                  e
                );
              const n = this.editor.config.get("ckfinder.options") || {};
              n.chooseFiles = !0;
              const r = n.onInit;
              n.language || (n.language = e.locale.uiLanguage),
                (n.onInit = (t) => {
                  r && r(t),
                    t.on("files:choose", (n) => {
                      const r = n.data.files.toArray(),
                        o = r.filter((e) => !e.isImage()),
                        a = r.filter((e) => e.isImage());
                      for (const t of o) e.execute("link", t.getUrl());
                      const i = [];
                      for (const e of a) {
                        const n = e.getUrl();
                        i.push(n || t.request("file:getProxyUrl", { file: e }));
                      }
                      i.length && dc(e, i);
                    }),
                    t.on("file:choose:resizedImage", (t) => {
                      const n = t.data.resizedUrl;
                      if (n) dc(e, [n]);
                      else {
                        const t = e.plugins.get("Notification"),
                          n = e.locale.t;
                        t.showWarning(n("ar"), {
                          title: n("as"),
                          namespace: "ckfinder",
                        });
                      }
                    });
                }),
                window.CKFinder[t](n);
            }
          }
          function dc(e, t) {
            if (e.commands.get("imageUpload").isEnabled)
              e.execute("imageInsert", { source: t });
            else {
              const t = e.plugins.get("Notification"),
                n = e.locale.t;
              t.showWarning(n("at"), { title: n("au"), namespace: "ckfinder" });
            }
          }
          class hc extends Is {
            static get pluginName() {
              return "CKFinderEditing";
            }
            static get requires() {
              return [cc];
            }
            init() {
              const e = this.editor;
              e.commands.add("ckfinder", new uc(e));
            }
          }
          const pc = /^data:(\S*?);base64,/;
          class fc {
            constructor(e, t, n) {
              if (!e)
                throw new _t.b(
                  "fileuploader-missing-file: File must be provided as the first argument",
                  null
                );
              if (!t)
                throw new _t.b(
                  "fileuploader-missing-token: Token must be provided as the second argument.",
                  null
                );
              if (!n)
                throw new _t.b(
                  "fileuploader-missing-api-address: Api address must be provided as the third argument.",
                  null
                );
              (this.file = (function (e) {
                if ("string" != typeof e) return !1;
                const t = e.match(pc);
                return !(!t || !t.length);
              })(e)
                ? (function (e, t = 512) {
                    try {
                      const n = e.match(pc)[1],
                        r = atob(e.replace(pc, "")),
                        o = [];
                      for (let e = 0; e < r.length; e += t) {
                        const n = r.slice(e, e + t),
                          a = new Array(n.length);
                        for (let e = 0; e < n.length; e++)
                          a[e] = n.charCodeAt(e);
                        o.push(new Uint8Array(a));
                      }
                      return new Blob(o, { type: n });
                    } catch (e) {
                      throw new _t.b(
                        "fileuploader-decoding-image-data-error: Problem with decoding Base64 image data.",
                        null
                      );
                    }
                  })(e)
                : e),
                (this._token = t),
                (this._apiAddress = n);
            }
            onProgress(e) {
              return this.on("progress", (t, n) => e(n)), this;
            }
            onError(e) {
              return this.once("error", (t, n) => e(n)), this;
            }
            abort() {
              this.xhr.abort();
            }
            send() {
              return (
                this._prepareRequest(),
                this._attachXHRListeners(),
                this._sendRequest()
              );
            }
            _prepareRequest() {
              const e = new XMLHttpRequest();
              e.open("POST", this._apiAddress),
                e.setRequestHeader("Authorization", this._token.value),
                (e.responseType = "json"),
                (this.xhr = e);
            }
            _attachXHRListeners() {
              const e = this,
                t = this.xhr;
              function n(t) {
                return () => e.fire("error", t);
              }
              t.addEventListener("error", n("Network Error")),
                t.addEventListener("abort", n("Abort")),
                t.upload &&
                  t.upload.addEventListener("progress", (e) => {
                    e.lengthComputable &&
                      this.fire("progress", {
                        total: e.total,
                        uploaded: e.loaded,
                      });
                  }),
                t.addEventListener("load", () => {
                  const e = t.status,
                    n = t.response;
                  if (e < 200 || e > 299)
                    return this.fire("error", n.message || n.error);
                });
            }
            _sendRequest() {
              const e = new FormData(),
                t = this.xhr;
              return (
                e.append("file", this.file),
                new Promise((n, r) => {
                  t.addEventListener("load", () => {
                    const e = t.status,
                      o = t.response;
                    return e < 200 || e > 299
                      ? o.message
                        ? r(
                            new _t.b(
                              "fileuploader-uploading-data-failed: Uploading file failed.",
                              this,
                              { message: o.message }
                            )
                          )
                        : r(o.error)
                      : n(o);
                  }),
                    t.addEventListener("error", () =>
                      r(new Error("Network Error"))
                    ),
                    t.addEventListener("abort", () => r(new Error("Abort"))),
                    t.send(e);
                })
              );
            }
          }
          Ct(fc, xt);
          const mc = { refreshInterval: 36e5, autoRefresh: !0 };
          class gc {
            constructor(e, t = mc) {
              if (!e)
                throw new _t.b(
                  "token-missing-token-url: A `tokenUrl` must be provided as the first constructor argument.",
                  this
                );
              this.set("value", t.initValue),
                (this._refresh =
                  "function" == typeof e
                    ? e
                    : () =>
                        (function (e) {
                          return new Promise((t, n) => {
                            const r = new XMLHttpRequest();
                            r.open("GET", e),
                              r.addEventListener("load", () => {
                                const e = r.status,
                                  o = r.response;
                                return e < 200 || e > 299
                                  ? n(
                                      new _t.b(
                                        "token-cannot-download-new-token: Cannot download new token from the provided url.",
                                        null
                                      )
                                    )
                                  : t(o);
                              }),
                              r.addEventListener("error", () =>
                                n(new Error("Network Error"))
                              ),
                              r.addEventListener("abort", () =>
                                n(new Error("Abort"))
                              ),
                              r.send();
                          });
                        })(e)),
                (this._options = Object.assign({}, mc, t));
            }
            init() {
              return new Promise((e, t) => {
                this._options.autoRefresh && this._startRefreshing(),
                  this.value ? e(this) : this._refreshToken().then(e).catch(t);
              });
            }
            _refreshToken() {
              return this._refresh()
                .then((e) => this.set("value", e))
                .then(() => this);
            }
            destroy() {
              this._stopRefreshing();
            }
            _startRefreshing() {
              this._refreshInterval = setInterval(
                () => this._refreshToken(),
                this._options.refreshInterval
              );
            }
            _stopRefreshing() {
              clearInterval(this._refreshInterval);
            }
            static create(e, t = mc) {
              return new gc(e, t).init();
            }
          }
          Ct(gc, on);
          var _c = gc;
          class vc extends Is {
            static get pluginName() {
              return "CloudServices";
            }
            init() {
              const e = this.editor.config.get("cloudServices") || {};
              for (const t in e) this[t] = e[t];
              if (this.tokenUrl)
                return (
                  (this.token = new vc.Token(this.tokenUrl)), this.token.init()
                );
              this.token = null;
            }
          }
          vc.Token = _c;
          class bc extends Is {
            static get requires() {
              return [Rl, vc];
            }
            init() {
              const e = this.editor,
                t = e.plugins.get(vc),
                n = t.token,
                r = t.uploadUrl;
              n &&
                ((this._uploadGateway = new bc._UploadGateway(n, r)),
                (e.plugins.get(Rl).createUploadAdapter = (e) =>
                  new yc(this._uploadGateway, e)));
            }
          }
          class yc {
            constructor(e, t) {
              (this.uploadGateway = e), (this.loader = t);
            }
            upload() {
              return this.loader.file.then(
                (e) => (
                  (this.fileUploader = this.uploadGateway.upload(e)),
                  this.fileUploader.on("progress", (e, t) => {
                    (this.loader.uploadTotal = t.total),
                      (this.loader.uploaded = t.uploaded);
                  }),
                  this.fileUploader.send()
                )
              );
            }
            abort() {
              this.fileUploader.abort();
            }
          }
          bc._UploadGateway = class {
            constructor(e, t) {
              if (!e)
                throw new _t.b(
                  "uploadgateway-missing-token: Token must be provided.",
                  null
                );
              if (!t)
                throw new _t.b(
                  "uploadgateway-missing-api-address: Api address must be provided.",
                  null
                );
              (this._token = e), (this._apiAddress = t);
            }
            upload(e) {
              return new fc(e, this._token, this._apiAddress);
            }
          };
          class wc extends Cr {
            constructor(e) {
              super(e), (this._observedElements = new Set());
            }
            observe(e, t) {
              this.document.getRoot(t).on("change:children", (t, n) => {
                this.view.once("render", () =>
                  this._updateObservedElements(e, n)
                );
              });
            }
            _updateObservedElements(e, t) {
              if (!t.is("element") || t.is("attributeElement")) return;
              const n = this.view.domConverter.mapViewToDom(t);
              if (n) {
                for (const e of n.querySelectorAll("img"))
                  this._observedElements.has(e) ||
                    (this.listenTo(e, "load", (e, t) => this._fireEvents(t)),
                    this._observedElements.add(e));
                for (const t of this._observedElements)
                  e.contains(t) ||
                    (this.stopListening(t), this._observedElements.delete(t));
              }
            }
            _fireEvents(e) {
              this.isEnabled &&
                (this.document.fire("layoutChanged"),
                this.document.fire("imageLoaded", e));
            }
            destroy() {
              this._observedElements.clear(), super.destroy();
            }
          }
          function kc(e) {
            return (n) => {
              n.on(`attribute:${e}:image`, t);
            };
            function t(e, t, n) {
              if (!n.consumable.consume(t.item, e.name)) return;
              const r = n.writer,
                o = n.mapper.toViewElement(t.item).getChild(0);
              null !== t.attributeNewValue
                ? r.setAttribute(t.attributeKey, t.attributeNewValue, o)
                : r.removeAttribute(t.attributeKey, o);
            }
          }
          class xc {
            constructor() {
              this._stack = [];
            }
            add(e, t) {
              const n = this._stack,
                r = n[0];
              this._insertDescriptor(e);
              const o = n[0];
              r === o ||
                Mc(r, o) ||
                this.fire("change:top", {
                  oldDescriptor: r,
                  newDescriptor: o,
                  writer: t,
                });
            }
            remove(e, t) {
              const n = this._stack,
                r = n[0];
              this._removeDescriptor(e);
              const o = n[0];
              r === o ||
                Mc(r, o) ||
                this.fire("change:top", {
                  oldDescriptor: r,
                  newDescriptor: o,
                  writer: t,
                });
            }
            _insertDescriptor(e) {
              const t = this._stack,
                n = t.findIndex((t) => t.id === e.id);
              if (Mc(e, t[n])) return;
              n > -1 && t.splice(n, 1);
              let r = 0;
              for (; t[r] && Ec(t[r], e); ) r++;
              t.splice(r, 0, e);
            }
            _removeDescriptor(e) {
              const t = this._stack,
                n = t.findIndex((t) => t.id === e);
              n > -1 && t.splice(n, 1);
            }
          }
          function Mc(e, t) {
            return (
              e &&
              t &&
              e.priority == t.priority &&
              Tc(e.classes) == Tc(t.classes)
            );
          }
          function Ec(e, t) {
            return (
              e.priority > t.priority ||
              (!(e.priority < t.priority) && Tc(e.classes) > Tc(t.classes))
            );
          }
          function Tc(e) {
            return Array.isArray(e) ? e.sort().join(",") : e;
          }
          Ct(xc, xt);
          const Sc = "ck-widget_selected";
          function Dc(e) {
            return !!e.is("element") && !!e.getCustomProperty("widget");
          }
          function Lc(e, t, n = {}) {
            return (
              Pn || t.setAttribute("contenteditable", "false", e),
              t.addClass("ck-widget", e),
              t.setCustomProperty("widget", !0, e),
              (e.getFillerOffset = Nc),
              n.label &&
                (function (e, t, n) {
                  n.setCustomProperty("widgetLabel", t, e);
                })(e, n.label, t),
              n.hasSelectionHandler &&
                (function (e, t) {
                  const n = t.createUIElement(
                    "div",
                    { class: "ck ck-widget__selection-handler" },
                    function (e) {
                      const t = this.toDomElement(e),
                        n = new Sl();
                      return (
                        n.set(
                          "content",
                          '<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'
                        ),
                        n.render(),
                        t.appendChild(n.element),
                        t
                      );
                    }
                  );
                  t.insert(t.createPositionAt(e, 0), n),
                    t.addClass(["ck-widget_with-selection-handler"], e);
                })(e, t),
              (function (e, t, n, r) {
                const o = new xc();
                o.on("change:top", (t, o) => {
                  o.oldDescriptor && r(e, o.oldDescriptor, o.writer),
                    o.newDescriptor && n(e, o.newDescriptor, o.writer);
                }),
                  t.setCustomProperty(
                    "addHighlight",
                    (e, t, n) => o.add(t, n),
                    e
                  ),
                  t.setCustomProperty(
                    "removeHighlight",
                    (e, t, n) => o.remove(t, n),
                    e
                  );
              })(
                e,
                t,
                (e, t, n) => n.addClass(r(t.classes), e),
                (e, t, n) => n.removeClass(r(t.classes), e)
              ),
              e
            );
            function r(e) {
              return Array.isArray(e) ? e : [e];
            }
          }
          function Cc(e) {
            const t = e.getCustomProperty("widgetLabel");
            return t ? ("function" == typeof t ? t() : t) : "";
          }
          function Pc(e, t) {
            return (
              t.addClass(
                ["ck-editor__editable", "ck-editor__nested-editable"],
                e
              ),
              Pn ||
                (t.setAttribute(
                  "contenteditable",
                  e.isReadOnly ? "false" : "true",
                  e
                ),
                e.on("change:isReadOnly", (n, r, o) => {
                  t.setAttribute("contenteditable", o ? "false" : "true", e);
                })),
              e.on("change:isFocused", (n, r, o) => {
                o
                  ? t.addClass("ck-editor__nested-editable_focused", e)
                  : t.removeClass("ck-editor__nested-editable_focused", e);
              }),
              e
            );
          }
          function Oc(e, t) {
            const n = e.getSelectedElement();
            if (n && t.schema.isBlock(n)) return t.createPositionAfter(n);
            const r = e.getSelectedBlocks().next().value;
            if (r) {
              if (r.isEmpty) return t.createPositionAt(r, 0);
              const n = t.createPositionAfter(r);
              return e.focus.isTouching(n) ? n : t.createPositionBefore(r);
            }
            return e.focus;
          }
          function Nc() {
            return null;
          }
          function Ac(e) {
            const t = e.getSelectedElement();
            return t &&
              (function (e) {
                return !!e.getCustomProperty("image") && Dc(e);
              })(t)
              ? t
              : null;
          }
          function Ic(e) {
            return !!e && e.is("image");
          }
          function Rc(e, t, n = {}) {
            const r = e.createElement("image", n),
              o = Oc(t.document.selection, t);
            t.insertContent(r, o), r.parent && e.setSelection(r, "on");
          }
          function Yc(e) {
            const t = e.schema,
              n = e.document.selection;
            return (
              (function (e, t, n) {
                const r = (function (e, t) {
                  const n = Oc(e, t).parent;
                  return n.isEmpty && !n.is("$root") ? n.parent : n;
                })(e, n);
                return t.checkChild(r, "image");
              })(n, t, e) &&
              !(function (e, t) {
                const n = e.getSelectedElement();
                return n && t.isObject(n);
              })(n, t) &&
              (function (e) {
                return [...e.focus.getAncestors()].every((e) => !e.is("image"));
              })(n)
            );
          }
          class jc extends Hs {
            refresh() {
              this.isEnabled = Yc(this.editor.model);
            }
            execute(e) {
              const t = this.editor.model;
              t.change((n) => {
                const r = Array.isArray(e.source) ? e.source : [e.source];
                for (const e of r) Rc(n, t, { src: e });
              });
            }
          }
          class Fc extends Is {
            init() {
              const e = this.editor,
                t = e.model.schema,
                n = e.t,
                r = e.conversion;
              e.editing.view.addObserver(wc),
                t.register("image", {
                  isObject: !0,
                  isBlock: !0,
                  allowWhere: "$block",
                  allowAttributes: ["alt", "src", "srcset"],
                }),
                r
                  .for("dataDowncast")
                  .elementToElement({ model: "image", view: (e, t) => Hc(t) }),
                r.for("editingDowncast").elementToElement({
                  model: "image",
                  view: (e, t) =>
                    (function (e, t, n) {
                      return (
                        t.setCustomProperty("image", !0, e),
                        Lc(e, t, {
                          label: function () {
                            const t = e.getChild(0).getAttribute("alt");
                            return t ? `${t} ${n}` : n;
                          },
                        })
                      );
                    })(Hc(t), t, n("j")),
                }),
                r
                  .for("downcast")
                  .add(kc("src"))
                  .add(kc("alt"))
                  .add(
                    (function () {
                      return (t) => {
                        t.on("attribute:srcset:image", e);
                      };
                      function e(e, t, n) {
                        if (!n.consumable.consume(t.item, e.name)) return;
                        const r = n.writer,
                          o = n.mapper.toViewElement(t.item).getChild(0);
                        if (null === t.attributeNewValue) {
                          const e = t.attributeOldValue;
                          e.data &&
                            (r.removeAttribute("srcset", o),
                            r.removeAttribute("sizes", o),
                            e.width && r.removeAttribute("width", o));
                        } else {
                          const e = t.attributeNewValue;
                          e.data &&
                            (r.setAttribute("srcset", e.data, o),
                            r.setAttribute("sizes", "100vw", o),
                            e.width && r.setAttribute("width", e.width, o));
                        }
                      }
                    })()
                  ),
                r
                  .for("upcast")
                  .elementToElement({
                    view: { name: "img", attributes: { src: !0 } },
                    model: (e, t) =>
                      t.createElement("image", { src: e.getAttribute("src") }),
                  })
                  .attributeToAttribute({
                    view: { name: "img", key: "alt" },
                    model: "alt",
                  })
                  .attributeToAttribute({
                    view: { name: "img", key: "srcset" },
                    model: {
                      key: "srcset",
                      value: (e) => {
                        const t = { data: e.getAttribute("srcset") };
                        return (
                          e.hasAttribute("width") &&
                            (t.width = e.getAttribute("width")),
                          t
                        );
                      },
                    },
                  })
                  .add(
                    (function () {
                      return (t) => {
                        t.on("element:figure", e);
                      };
                      function e(e, t, n) {
                        if (
                          !n.consumable.test(t.viewItem, {
                            name: !0,
                            classes: "image",
                          })
                        )
                          return;
                        const r = Array.from(
                          t.viewItem.getChildren()
                        ).find((e) => e.is("img"));
                        if (
                          !r ||
                          !r.hasAttribute("src") ||
                          !n.consumable.test(r, { name: !0 })
                        )
                          return;
                        const o = n.convertItem(r, t.modelCursor),
                          a = tc(o.modelRange.getItems());
                        a &&
                          (n.convertChildren(
                            t.viewItem,
                            n.writer.createPositionAt(a, 0)
                          ),
                          (t.modelRange = o.modelRange),
                          (t.modelCursor = o.modelCursor));
                      }
                    })()
                  ),
                e.commands.add("imageInsert", new jc(e));
            }
          }
          function Hc(e) {
            const t = e.createEmptyElement("img"),
              n = e.createContainerElement("figure", { class: "image" });
            return e.insert(e.createPositionAt(n, 0), t), n;
          }
          class zc extends Qr {
            constructor(e) {
              super(e), (this.domEventType = "mousedown");
            }
            onDomEvent(e) {
              this.fire(e.type, e);
            }
          }
          n(36);
          const Bc = Fn("Ctrl+A");
          class Uc extends Is {
            static get pluginName() {
              return "Widget";
            }
            init() {
              const e = this.editor.editing.view,
                t = e.document;
              (this._previouslySelected = new Set()),
                this.editor.editing.downcastDispatcher.on(
                  "selection",
                  (e, t, n) => {
                    this._clearPreviouslySelectedWidgets(n.writer);
                    const r = n.writer,
                      o = r.document.selection,
                      a = o.getSelectedElement();
                    let i = null;
                    for (const e of o.getRanges())
                      for (const t of e) {
                        const e = t.item;
                        Dc(e) &&
                          !Vc(e, i) &&
                          (r.addClass(Sc, e),
                          this._previouslySelected.add(e),
                          (i = e),
                          e == a &&
                            r.setSelection(o.getRanges(), {
                              fake: !0,
                              label: Cc(a),
                            }));
                      }
                  },
                  { priority: "low" }
                ),
                e.addObserver(zc),
                this.listenTo(t, "mousedown", (...e) =>
                  this._onMousedown(...e)
                ),
                this.listenTo(t, "keydown", (...e) => this._onKeydown(...e), {
                  priority: "high",
                }),
                this.listenTo(
                  t,
                  "delete",
                  (e, t) => {
                    this._handleDelete("forward" == t.direction) &&
                      (t.preventDefault(), e.stop());
                  },
                  { priority: "high" }
                );
            }
            _onMousedown(e, t) {
              const n = this.editor,
                r = n.editing.view,
                o = r.document;
              let a = t.target;
              if (
                (function (e) {
                  for (; e; ) {
                    if (e.is("editableElement") && !e.is("rootElement"))
                      return !0;
                    if (Dc(e)) return !1;
                    e = e.parent;
                  }
                  return !1;
                })(a)
              ) {
                if (Nn && t.domEvent.detail >= 3) {
                  const e = n.editing.mapper.toModelElement(a);
                  this.editor.model.change((n) => {
                    t.preventDefault(), n.setSelection(e, "in");
                  });
                }
                return;
              }
              if (!Dc(a) && !(a = a.findAncestor(Dc))) return;
              t.preventDefault(), o.isFocused || r.focus();
              const i = n.editing.mapper.toModelElement(a);
              this._setSelectionOverElement(i);
            }
            _onKeydown(e, t) {
              const n = t.keyCode,
                r = n == Yn.arrowdown || n == Yn.arrowright;
              let o = !1;
              !(function (e) {
                return (
                  e == Yn.arrowright ||
                  e == Yn.arrowleft ||
                  e == Yn.arrowup ||
                  e == Yn.arrowdown
                );
              })(n)
                ? (function (e) {
                    return jn(e) == Bc;
                  })(t)
                  ? (o =
                      this._selectAllNestedEditableContent() ||
                      this._selectAllContent())
                  : n === Yn.enter && (o = this._handleEnterKey(t.shiftKey))
                : (o = this._handleArrowKeys(r)),
                o && (t.preventDefault(), e.stop());
            }
            _handleDelete(e) {
              if (this.editor.isReadOnly) return;
              const t = this.editor.model.document.selection;
              if (!t.isCollapsed) return;
              const n = this._getObjectElementNextToSelection(e);
              return n
                ? (this.editor.model.change((e) => {
                    let r = t.anchor.parent;
                    for (; r.isEmpty; ) {
                      const t = r;
                      (r = t.parent), e.remove(t);
                    }
                    this._setSelectionOverElement(n);
                  }),
                  !0)
                : void 0;
            }
            _handleArrowKeys(e) {
              const t = this.editor.model,
                n = t.schema,
                r = t.document.selection,
                o = r.getSelectedElement();
              if (o && n.isObject(o)) {
                const o = e ? r.getLastPosition() : r.getFirstPosition(),
                  a = n.getNearestSelectionRange(o, e ? "forward" : "backward");
                return (
                  a &&
                    t.change((e) => {
                      e.setSelection(a);
                    }),
                  !0
                );
              }
              if (!r.isCollapsed) return;
              const a = this._getObjectElementNextToSelection(e);
              return a && n.isObject(a)
                ? (this._setSelectionOverElement(a), !0)
                : void 0;
            }
            _handleEnterKey(e) {
              const t = this.editor.model,
                n = t.document.selection.getSelectedElement();
              if (
                (function (e, t) {
                  return e && t.isObject(e) && !t.isInline(e);
                })(n, t.schema)
              )
                return (
                  t.change((r) => {
                    let o = r.createPositionAt(n, e ? "before" : "after");
                    const a = r.createElement("paragraph");
                    if (t.schema.isBlock(n.parent)) {
                      const e = t.schema.findAllowedParent(o, a);
                      o = r.split(o, e).position;
                    }
                    r.insert(a, o), r.setSelection(a, "in");
                  }),
                  !0
                );
            }
            _selectAllNestedEditableContent() {
              const e = this.editor.model,
                t = e.document.selection,
                n = e.schema.getLimitElement(t);
              return (
                t.getFirstRange().root != n &&
                (e.change((e) => {
                  e.setSelection(e.createRangeIn(n));
                }),
                !0)
              );
            }
            _selectAllContent() {
              const e = this.editor.model,
                t = this.editor.editing,
                n = t.view.document.selection.getSelectedElement();
              if (n && Dc(n)) {
                const r = t.mapper.toModelElement(n.parent);
                return (
                  e.change((e) => {
                    e.setSelection(e.createRangeIn(r));
                  }),
                  !0
                );
              }
              return !1;
            }
            _setSelectionOverElement(e) {
              this.editor.model.change((t) => {
                t.setSelection(t.createRangeOn(e));
              });
            }
            _getObjectElementNextToSelection(e) {
              const t = this.editor.model,
                n = t.schema,
                r = t.document.selection,
                o = t.createSelection(r);
              t.modifySelection(o, { direction: e ? "forward" : "backward" });
              const a = e ? o.focus.nodeBefore : o.focus.nodeAfter;
              return a && n.isObject(a) ? a : null;
            }
            _clearPreviouslySelectedWidgets(e) {
              for (const t of this._previouslySelected) e.removeClass(Sc, t);
              this._previouslySelected.clear();
            }
          }
          function Vc(e, t) {
            return !!t && Array.from(e.getAncestors()).includes(t);
          }
          class Wc extends Hs {
            refresh() {
              const e = this.editor.model.document.selection.getSelectedElement();
              (this.isEnabled = Ic(e)),
                Ic(e) && e.hasAttribute("alt")
                  ? (this.value = e.getAttribute("alt"))
                  : (this.value = !1);
            }
            execute(e) {
              const t = this.editor.model,
                n = t.document.selection.getSelectedElement();
              t.change((t) => {
                t.setAttribute("alt", e.newValue, n);
              });
            }
          }
          class qc extends Is {
            init() {
              this.editor.commands.add(
                "imageTextAlternative",
                new Wc(this.editor)
              );
            }
          }
          function Gc({
            emitter: e,
            activator: t,
            callback: n,
            contextElements: r,
          }) {
            e.listenTo(document, "mousedown", (e, { target: o }) => {
              if (t()) {
                for (const e of r) if (e.contains(o)) return;
                n();
              }
            });
          }
          n(38);
          class Jc extends ys {
            constructor(e, t) {
              super(e);
              const n = "ck-input-" + bt(),
                r = "ck-status-" + bt();
              this.set("label"),
                this.set("value"),
                this.set("isReadOnly", !1),
                this.set("errorText", null),
                this.set("infoText", null),
                (this.labelView = this._createLabelView(n)),
                (this.inputView = this._createInputView(t, n, r)),
                (this.statusView = this._createStatusView(r)),
                this.bind("_statusText").to(
                  this,
                  "errorText",
                  this,
                  "infoText",
                  (e, t) => e || t
                );
              const o = this.bindTemplate;
              this.setTemplate({
                tag: "div",
                attributes: {
                  class: [
                    "ck",
                    "ck-labeled-input",
                    o.if("isReadOnly", "ck-disabled"),
                  ],
                },
                children: [this.labelView, this.inputView, this.statusView],
              });
            }
            _createLabelView(e) {
              const t = new ks(this.locale);
              return (t.for = e), t.bind("text").to(this, "label"), t;
            }
            _createInputView(e, t, n) {
              const r = new e(this.locale, n);
              return (
                (r.id = t),
                (r.ariaDescribedById = n),
                r.bind("value").to(this),
                r.bind("isReadOnly").to(this),
                r.bind("hasError").to(this, "errorText", (e) => !!e),
                r.on("input", () => {
                  this.errorText = null;
                }),
                r
              );
            }
            _createStatusView(e) {
              const t = new ys(this.locale),
                n = this.bindTemplate;
              return (
                t.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-labeled-input__status",
                      n.if("errorText", "ck-labeled-input__status_error"),
                      n.if("_statusText", "ck-hidden", (e) => !e),
                    ],
                    id: e,
                    role: n.if("errorText", "alert"),
                  },
                  children: [{ text: n.to("_statusText") }],
                }),
                t
              );
            }
            select() {
              this.inputView.select();
            }
            focus() {
              this.inputView.focus();
            }
          }
          n(40);
          class Kc extends ys {
            constructor(e) {
              super(e),
                this.set("value"),
                this.set("id"),
                this.set("placeholder"),
                this.set("isReadOnly", !1),
                this.set("hasError", !1),
                this.set("ariaDescribedById");
              const t = this.bindTemplate;
              this.setTemplate({
                tag: "input",
                attributes: {
                  type: "text",
                  class: [
                    "ck",
                    "ck-input",
                    "ck-input-text",
                    t.if("hasError", "ck-error"),
                  ],
                  id: t.to("id"),
                  placeholder: t.to("placeholder"),
                  readonly: t.to("isReadOnly"),
                  "aria-invalid": t.if("hasError", !0),
                  "aria-describedby": t.to("ariaDescribedById"),
                },
                on: { input: t.to("input") },
              });
            }
            render() {
              super.render();
              const e = (e) => {
                this.element.value = e || 0 === e ? e : "";
              };
              e(this.value),
                this.on("change:value", (t, n, r) => {
                  e(r);
                });
            }
            select() {
              this.element.select();
            }
            focus() {
              this.element.focus();
            }
          }
          function Qc({ view: e }) {
            e.listenTo(
              e.element,
              "submit",
              (t, n) => {
                n.preventDefault(), e.fire("submit");
              },
              { useCapture: !0 }
            );
          }
          var Xc =
              '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',
            $c =
              '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>';
          n(42);
          class Zc extends ys {
            constructor(e) {
              super(e);
              const t = this.locale.t;
              (this.focusTracker = new Gi()),
                (this.keystrokes = new ji()),
                (this.labeledInput = this._createLabeledInputView()),
                (this.saveButtonView = this._createButton(
                  t("bd"),
                  Xc,
                  "ck-button-save"
                )),
                (this.saveButtonView.type = "submit"),
                (this.cancelButtonView = this._createButton(
                  t("be"),
                  $c,
                  "ck-button-cancel",
                  "cancel"
                )),
                (this._focusables = new ts()),
                (this._focusCycler = new Ls({
                  focusables: this._focusables,
                  focusTracker: this.focusTracker,
                  keystrokeHandler: this.keystrokes,
                  actions: { focusPrevious: "shift + tab", focusNext: "tab" },
                })),
                this.setTemplate({
                  tag: "form",
                  attributes: {
                    class: ["ck", "ck-text-alternative-form"],
                    tabindex: "-1",
                  },
                  children: [
                    this.labeledInput,
                    this.saveButtonView,
                    this.cancelButtonView,
                  ],
                });
            }
            render() {
              super.render(),
                this.keystrokes.listenTo(this.element),
                Qc({ view: this }),
                [
                  this.labeledInput,
                  this.saveButtonView,
                  this.cancelButtonView,
                ].forEach((e) => {
                  this._focusables.add(e), this.focusTracker.add(e.element);
                });
            }
            _createButton(e, t, n, r) {
              const o = new Ll(this.locale);
              return (
                o.set({ label: e, icon: t, tooltip: !0 }),
                o.extendTemplate({ attributes: { class: n } }),
                r && o.delegate("execute").to(this, r),
                o
              );
            }
            _createLabeledInputView() {
              const e = this.locale.t,
                t = new Jc(this.locale, Kc);
              return (
                (t.label = e("ca")), (t.inputView.placeholder = e("ca")), t
              );
            }
          }
          function eu({
            element: e,
            target: t,
            positions: n,
            limiter: r,
            fitInViewport: o,
          }) {
            S(t) && (t = t()), S(r) && (r = r());
            const a = (function (e) {
                for (; e && "html" != e.tagName.toLowerCase(); ) {
                  if ("static" != yr.window.getComputedStyle(e).position)
                    return e;
                  e = e.parentElement;
                }
                return null;
              })(e.parentElement),
              i = new vo(e),
              s = new vo(t);
            let l, c;
            if (r || o) {
              const e = r && new vo(r).getVisible(),
                t = o && new vo(yr.window);
              [c, l] =
                (function (e, t, n, r, o) {
                  let a,
                    i,
                    s = 0,
                    l = 0;
                  const c = n.getArea();
                  return (
                    e.some((e) => {
                      const [u, d] = tu(e, t, n);
                      let h, p;
                      if (r)
                        if (o) {
                          const e = r.getIntersection(o);
                          h = e ? e.getIntersectionArea(d) : 0;
                        } else h = r.getIntersectionArea(d);
                      function f() {
                        (l = p), (s = h), (a = d), (i = u);
                      }
                      return (
                        o && (p = o.getIntersectionArea(d)),
                        o && !r
                          ? p > l && f()
                          : !o && r
                          ? h > s && f()
                          : ((p > l && h >= s) || (p >= l && h > s)) && f(),
                        h === c
                      );
                    }),
                    a ? [i, a] : null
                  );
                })(n, s, i, e, t) || tu(n[0], s, i);
            } else [c, l] = tu(n[0], s, i);
            let { left: u, top: d } = nu(l);
            if (a) {
              const e = nu(new vo(a)),
                t = go(a);
              (u -= e.left),
                (d -= e.top),
                (u += a.scrollLeft),
                (d += a.scrollTop),
                (u -= t.left),
                (d -= t.top);
            }
            return { left: u, top: d, name: c };
          }
          function tu(e, t, n) {
            const { left: r, top: o, name: a } = e(t, n);
            return [a, n.clone().moveTo(r, o)];
          }
          function nu({ left: e, top: t }) {
            const { scrollX: n, scrollY: r } = yr.window;
            return { left: e + n, top: t + r };
          }
          n(44);
          const ru = Ts("px"),
            ou = yr.document.body;
          class au extends ys {
            constructor(e) {
              super(e);
              const t = this.bindTemplate;
              this.set("top", 0),
                this.set("left", 0),
                this.set("position", "arrow_nw"),
                this.set("isVisible", !1),
                this.set("withArrow", !0),
                this.set("class"),
                (this.content = this.createCollection()),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-balloon-panel",
                      t.to("position", (e) => "ck-balloon-panel_" + e),
                      t.if("isVisible", "ck-balloon-panel_visible"),
                      t.if("withArrow", "ck-balloon-panel_with-arrow"),
                      t.to("class"),
                    ],
                    style: { top: t.to("top", ru), left: t.to("left", ru) },
                  },
                  children: this.content,
                });
            }
            show() {
              this.isVisible = !0;
            }
            hide() {
              this.isVisible = !1;
            }
            attachTo(e) {
              this.show();
              const t = au.defaultPositions,
                n = Object.assign(
                  {},
                  {
                    element: this.element,
                    positions: [
                      t.southArrowNorth,
                      t.southArrowNorthWest,
                      t.southArrowNorthEast,
                      t.northArrowSouth,
                      t.northArrowSouthWest,
                      t.northArrowSouthEast,
                    ],
                    limiter: ou,
                    fitInViewport: !0,
                  },
                  e
                ),
                r = au._getOptimalPosition(n),
                o = parseInt(r.left),
                a = parseInt(r.top),
                i = r.name;
              Object.assign(this, { top: a, left: o, position: i });
            }
            pin(e) {
              this.unpin(),
                (this._pinWhenIsVisibleCallback = () => {
                  this.isVisible ? this._startPinning(e) : this._stopPinning();
                }),
                this._startPinning(e),
                this.listenTo(
                  this,
                  "change:isVisible",
                  this._pinWhenIsVisibleCallback
                );
            }
            unpin() {
              this._pinWhenIsVisibleCallback &&
                (this._stopPinning(),
                this.stopListening(
                  this,
                  "change:isVisible",
                  this._pinWhenIsVisibleCallback
                ),
                (this._pinWhenIsVisibleCallback = null),
                this.hide());
            }
            _startPinning(e) {
              this.attachTo(e);
              const t = iu(e.target),
                n = e.limiter ? iu(e.limiter) : ou;
              this.listenTo(
                yr.document,
                "scroll",
                (r, o) => {
                  const a = o.target,
                    i = t && a.contains(t),
                    s = n && a.contains(n);
                  (!i && !s && t && n) || this.attachTo(e);
                },
                { useCapture: !0 }
              ),
                this.listenTo(yr.window, "resize", () => {
                  this.attachTo(e);
                });
            }
            _stopPinning() {
              this.stopListening(yr.document, "scroll"),
                this.stopListening(yr.window, "resize");
            }
          }
          function iu(e) {
            return ft(e)
              ? e
              : mo(e)
              ? e.commonAncestorContainer
              : "function" == typeof e
              ? iu(e())
              : null;
          }
          function su(e, t) {
            return e.top - t.height - au.arrowVerticalOffset;
          }
          function lu(e) {
            return e.bottom + au.arrowVerticalOffset;
          }
          (au.arrowHorizontalOffset = 25),
            (au.arrowVerticalOffset = 10),
            (au._getOptimalPosition = eu),
            (au.defaultPositions = {
              northArrowSouth: (e, t) => ({
                top: su(e, t),
                left: e.left + e.width / 2 - t.width / 2,
                name: "arrow_s",
              }),
              northArrowSouthEast: (e, t) => ({
                top: su(e, t),
                left: e.left + e.width / 2 - t.width + au.arrowHorizontalOffset,
                name: "arrow_se",
              }),
              northArrowSouthWest: (e, t) => ({
                top: su(e, t),
                left: e.left + e.width / 2 - au.arrowHorizontalOffset,
                name: "arrow_sw",
              }),
              northWestArrowSouth: (e, t) => ({
                top: su(e, t),
                left: e.left - t.width / 2,
                name: "arrow_s",
              }),
              northWestArrowSouthWest: (e, t) => ({
                top: su(e, t),
                left: e.left - au.arrowHorizontalOffset,
                name: "arrow_sw",
              }),
              northWestArrowSouthEast: (e, t) => ({
                top: su(e, t),
                left: e.left - t.width + au.arrowHorizontalOffset,
                name: "arrow_se",
              }),
              northEastArrowSouth: (e, t) => ({
                top: su(e, t),
                left: e.right - t.width / 2,
                name: "arrow_s",
              }),
              northEastArrowSouthEast: (e, t) => ({
                top: su(e, t),
                left: e.right - t.width + au.arrowHorizontalOffset,
                name: "arrow_se",
              }),
              northEastArrowSouthWest: (e, t) => ({
                top: su(e, t),
                left: e.right - au.arrowHorizontalOffset,
                name: "arrow_sw",
              }),
              southArrowNorth: (e, t) => ({
                top: lu(e),
                left: e.left + e.width / 2 - t.width / 2,
                name: "arrow_n",
              }),
              southArrowNorthEast: (e, t) => ({
                top: lu(e),
                left: e.left + e.width / 2 - t.width + au.arrowHorizontalOffset,
                name: "arrow_ne",
              }),
              southArrowNorthWest: (e, t) => ({
                top: lu(e),
                left: e.left + e.width / 2 - au.arrowHorizontalOffset,
                name: "arrow_nw",
              }),
              southWestArrowNorth: (e, t) => ({
                top: lu(e),
                left: e.left - t.width / 2,
                name: "arrow_n",
              }),
              southWestArrowNorthWest: (e, t) => ({
                top: lu(e),
                left: e.left - au.arrowHorizontalOffset,
                name: "arrow_nw",
              }),
              southWestArrowNorthEast: (e, t) => ({
                top: lu(e),
                left: e.left - t.width + au.arrowHorizontalOffset,
                name: "arrow_ne",
              }),
              southEastArrowNorth: (e, t) => ({
                top: lu(e),
                left: e.right - t.width / 2,
                name: "arrow_n",
              }),
              southEastArrowNorthEast: (e, t) => ({
                top: lu(e),
                left: e.right - t.width + au.arrowHorizontalOffset,
                name: "arrow_ne",
              }),
              southEastArrowNorthWest: (e, t) => ({
                top: lu(e),
                left: e.right - au.arrowHorizontalOffset,
                name: "arrow_nw",
              }),
            }),
            n(46),
            n(48);
          const cu = Ts("px");
          class uu extends Is {
            static get pluginName() {
              return "ContextualBalloon";
            }
            constructor(e) {
              super(e),
                (this.positionLimiter = () => {
                  const e = this.editor.editing.view,
                    t = e.document.selection.editableElement;
                  return t ? e.domConverter.mapViewToDom(t.root) : null;
                }),
                this.set("visibleView", null),
                (this.view = new au(e.locale)),
                e.ui.view.body.add(this.view),
                e.ui.focusTracker.add(this.view.element),
                (this._viewToStack = new Map()),
                (this._idToStack = new Map()),
                this.set("_numberOfStacks", 0),
                this.set("_singleViewMode", !1),
                (this._rotatorView = this._createRotatorView()),
                (this._fakePanelsView = this._createFakePanelsView());
            }
            hasView(e) {
              return Array.from(this._viewToStack.keys()).includes(e);
            }
            add(e) {
              if (this.hasView(e.view))
                throw new _t.b(
                  "contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",
                  [this, e]
                );
              const t = e.stackId || "main";
              if (!this._idToStack.has(t))
                return (
                  this._idToStack.set(t, new Map([[e.view, e]])),
                  this._viewToStack.set(e.view, this._idToStack.get(t)),
                  (this._numberOfStacks = this._idToStack.size),
                  void (
                    (this._visibleStack && !e.singleViewMode) ||
                    this.showStack(t)
                  )
                );
              const n = this._idToStack.get(t);
              e.singleViewMode && this.showStack(t),
                n.set(e.view, e),
                this._viewToStack.set(e.view, n),
                n === this._visibleStack && this._showView(e);
            }
            remove(e) {
              if (!this.hasView(e))
                throw new _t.b(
                  "contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",
                  [this, e]
                );
              const t = this._viewToStack.get(e);
              this._singleViewMode &&
                this.visibleView === e &&
                (this._singleViewMode = !1),
                this.visibleView === e &&
                  (1 === t.size
                    ? this._idToStack.size > 1
                      ? this._showNextStack()
                      : (this.view.hide(),
                        (this.visibleView = null),
                        this._rotatorView.hideView())
                    : this._showView(Array.from(t.values())[t.size - 2])),
                1 === t.size
                  ? (this._idToStack.delete(this._getStackId(t)),
                    (this._numberOfStacks = this._idToStack.size))
                  : t.delete(e),
                this._viewToStack.delete(e);
            }
            updatePosition(e) {
              e && (this._visibleStack.get(this.visibleView).position = e),
                this.view.pin(this._getBalloonPosition()),
                this._fakePanelsView.updatePosition();
            }
            showStack(e) {
              this.visibleStack = e;
              const t = this._idToStack.get(e);
              if (!t)
                throw new _t.b(
                  "contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",
                  this
                );
              this._visibleStack !== t &&
                this._showView(Array.from(t.values()).pop());
            }
            get _visibleStack() {
              return this._viewToStack.get(this.visibleView);
            }
            _getStackId(e) {
              return Array.from(this._idToStack.entries()).find(
                (t) => t[1] === e
              )[0];
            }
            _showNextStack() {
              const e = Array.from(this._idToStack.values());
              let t = e.indexOf(this._visibleStack) + 1;
              e[t] || (t = 0), this.showStack(this._getStackId(e[t]));
            }
            _showPrevStack() {
              const e = Array.from(this._idToStack.values());
              let t = e.indexOf(this._visibleStack) - 1;
              e[t] || (t = e.length - 1),
                this.showStack(this._getStackId(e[t]));
            }
            _createRotatorView() {
              const e = new du(this.editor.locale),
                t = this.editor.locale.t;
              return (
                this.view.content.add(e),
                e
                  .bind("isNavigationVisible")
                  .to(
                    this,
                    "_numberOfStacks",
                    this,
                    "_singleViewMode",
                    (e, t) => !t && e > 1
                  ),
                e.on(
                  "change:isNavigationVisible",
                  () => this.updatePosition(),
                  { priority: "low" }
                ),
                e
                  .bind("counter")
                  .to(this, "visibleView", this, "_numberOfStacks", (e, n) => {
                    if (n < 2) return "";
                    const r =
                      Array.from(this._idToStack.values()).indexOf(
                        this._visibleStack
                      ) + 1;
                    return t("bp", [r, n]);
                  }),
                e.buttonNextView.on("execute", () => {
                  e.focusTracker.isFocused && this.editor.editing.view.focus(),
                    this._showNextStack();
                }),
                e.buttonPrevView.on("execute", () => {
                  e.focusTracker.isFocused && this.editor.editing.view.focus(),
                    this._showPrevStack();
                }),
                e
              );
            }
            _createFakePanelsView() {
              const e = new hu(this.editor.locale, this.view);
              return (
                e
                  .bind("numberOfPanels")
                  .to(
                    this,
                    "_numberOfStacks",
                    this,
                    "_singleViewMode",
                    (e, t) => (!t && e >= 2 ? Math.min(e - 1, 2) : 0)
                  ),
                e.listenTo(this.view, "change:top", () => e.updatePosition()),
                e.listenTo(this.view, "change:left", () => e.updatePosition()),
                this.editor.ui.view.body.add(e),
                e
              );
            }
            _showView({
              view: e,
              balloonClassName: t = "",
              withArrow: n = !0,
              singleViewMode: r = !1,
            }) {
              (this.view.class = t),
                (this.view.withArrow = n),
                this._rotatorView.showView(e),
                (this.visibleView = e),
                this.view.pin(this._getBalloonPosition()),
                this._fakePanelsView.updatePosition(),
                r && (this._singleViewMode = !0);
            }
            _getBalloonPosition() {
              let e = Array.from(this._visibleStack.values()).pop().position;
              return (
                e &&
                  !e.limiter &&
                  (e = Object.assign({}, e, { limiter: this.positionLimiter })),
                e
              );
            }
          }
          class du extends ys {
            constructor(e) {
              super(e);
              const t = e.t,
                n = this.bindTemplate;
              this.set("isNavigationVisible", !0),
                (this.focusTracker = new Gi()),
                (this.buttonPrevView = this._createButtonView(
                  t("bq"),
                  '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z" /></svg>\n'
                )),
                (this.buttonNextView = this._createButtonView(
                  t("br"),
                  '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>\n'
                )),
                (this.content = this.createCollection()),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: ["ck", "ck-balloon-rotator"],
                    "z-index": "-1",
                  },
                  children: [
                    {
                      tag: "div",
                      attributes: {
                        class: [
                          "ck-balloon-rotator__navigation",
                          n.to("isNavigationVisible", (e) =>
                            e ? "" : "ck-hidden"
                          ),
                        ],
                      },
                      children: [
                        this.buttonPrevView,
                        {
                          tag: "span",
                          attributes: {
                            class: ["ck-balloon-rotator__counter"],
                          },
                          children: [{ text: n.to("counter") }],
                        },
                        this.buttonNextView,
                      ],
                    },
                    {
                      tag: "div",
                      attributes: { class: "ck-balloon-rotator__content" },
                      children: this.content,
                    },
                  ],
                });
            }
            render() {
              super.render(), this.focusTracker.add(this.element);
            }
            showView(e) {
              this.hideView(), this.content.add(e);
            }
            hideView() {
              this.content.clear();
            }
            _createButtonView(e, t) {
              const n = new Ll(this.locale);
              return n.set({ label: e, icon: t, tooltip: !0 }), n;
            }
          }
          class hu extends ys {
            constructor(e, t) {
              super(e);
              const n = this.bindTemplate;
              this.set("top", 0),
                this.set("left", 0),
                this.set("height", 0),
                this.set("width", 0),
                this.set("numberOfPanels", 0),
                (this.content = this.createCollection()),
                (this._balloonPanelView = t),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck-fake-panel",
                      n.to("numberOfPanels", (e) => (e ? "" : "ck-hidden")),
                    ],
                    style: {
                      top: n.to("top", cu),
                      left: n.to("left", cu),
                      width: n.to("width", cu),
                      height: n.to("height", cu),
                    },
                  },
                  children: this.content,
                }),
                this.on("change:numberOfPanels", (e, t, n, r) => {
                  n > r ? this._addPanels(n - r) : this._removePanels(r - n),
                    this.updatePosition();
                });
            }
            _addPanels(e) {
              for (; e--; ) {
                const e = new ys();
                e.setTemplate({ tag: "div" }),
                  this.content.add(e),
                  this.registerChild(e);
              }
            }
            _removePanels(e) {
              for (; e--; ) {
                const e = this.content.last;
                this.content.remove(e), this.deregisterChild(e), e.destroy();
              }
            }
            updatePosition() {
              if (this.numberOfPanels) {
                const { top: e, left: t } = this._balloonPanelView,
                  { width: n, height: r } = new vo(
                    this._balloonPanelView.element
                  );
                Object.assign(this, { top: e, left: t, width: n, height: r });
              }
            }
          }
          function pu(e) {
            const t = e.editing.view,
              n = au.defaultPositions;
            return {
              target: t.domConverter.viewToDom(
                t.document.selection.getSelectedElement()
              ),
              positions: [
                n.northArrowSouth,
                n.northArrowSouthWest,
                n.northArrowSouthEast,
                n.southArrowNorth,
                n.southArrowNorthWest,
                n.southArrowNorthEast,
              ],
            };
          }
          class fu extends Is {
            static get requires() {
              return [uu];
            }
            static get pluginName() {
              return "ImageTextAlternativeUI";
            }
            init() {
              this._createButton(), this._createForm();
            }
            destroy() {
              super.destroy(), this._form.destroy();
            }
            _createButton() {
              const e = this.editor,
                t = e.t;
              e.ui.componentFactory.add("imageTextAlternative", (n) => {
                const r = e.commands.get("imageTextAlternative"),
                  o = new Ll(n);
                return (
                  o.set({
                    label: t("bs"),
                    icon:
                      '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',
                    tooltip: !0,
                  }),
                  o.bind("isEnabled").to(r, "isEnabled"),
                  this.listenTo(o, "execute", () => this._showForm()),
                  o
                );
              });
            }
            _createForm() {
              const e = this.editor,
                t = e.editing.view.document;
              (this._balloon = this.editor.plugins.get("ContextualBalloon")),
                (this._form = new Zc(e.locale)),
                this._form.render(),
                this.listenTo(this._form, "submit", () => {
                  e.execute("imageTextAlternative", {
                    newValue: this._form.labeledInput.inputView.element.value,
                  }),
                    this._hideForm(!0);
                }),
                this.listenTo(this._form, "cancel", () => {
                  this._hideForm(!0);
                }),
                this._form.keystrokes.set("Esc", (e, t) => {
                  this._hideForm(!0), t();
                }),
                this.listenTo(e.ui, "update", () => {
                  Ac(t.selection)
                    ? this._isVisible &&
                      (function (e) {
                        const t = e.plugins.get("ContextualBalloon");
                        if (Ac(e.editing.view.document.selection)) {
                          const n = pu(e);
                          t.updatePosition(n);
                        }
                      })(e)
                    : this._hideForm(!0);
                }),
                Gc({
                  emitter: this._form,
                  activator: () => this._isVisible,
                  contextElements: [this._balloon.view.element],
                  callback: () => this._hideForm(),
                });
            }
            _showForm() {
              if (this._isVisible) return;
              const e = this.editor,
                t = e.commands.get("imageTextAlternative"),
                n = this._form.labeledInput;
              this._isInBalloon ||
                this._balloon.add({ view: this._form, position: pu(e) }),
                (n.value = n.inputView.element.value = t.value || ""),
                this._form.labeledInput.select();
            }
            _hideForm(e) {
              this._isInBalloon &&
                (this._form.focusTracker.isFocused &&
                  this._form.saveButtonView.focus(),
                this._balloon.remove(this._form),
                e && this.editor.editing.view.focus());
            }
            get _isVisible() {
              return this._balloon.visibleView === this._form;
            }
            get _isInBalloon() {
              return this._balloon.hasView(this._form);
            }
          }
          class mu extends Is {
            static get requires() {
              return [qc, fu];
            }
            static get pluginName() {
              return "ImageTextAlternative";
            }
          }
          n(50);
          class gu extends Is {
            static get requires() {
              return [Fc, Uc, mu];
            }
            static get pluginName() {
              return "Image";
            }
          }
          class _u extends ys {
            constructor(e) {
              super(e),
                (this.buttonView = new Ll(e)),
                (this._fileInputView = new vu(e)),
                this._fileInputView.bind("acceptedType").to(this),
                this._fileInputView.bind("allowMultipleFiles").to(this),
                this._fileInputView.delegate("done").to(this),
                this.setTemplate({
                  tag: "span",
                  attributes: { class: "ck-file-dialog-button" },
                  children: [this.buttonView, this._fileInputView],
                }),
                this.buttonView.on("execute", () => {
                  this._fileInputView.open();
                });
            }
            focus() {
              this.buttonView.focus();
            }
          }
          class vu extends ys {
            constructor(e) {
              super(e),
                this.set("acceptedType"),
                this.set("allowMultipleFiles", !1);
              const t = this.bindTemplate;
              this.setTemplate({
                tag: "input",
                attributes: {
                  class: ["ck-hidden"],
                  type: "file",
                  tabindex: "-1",
                  accept: t.to("acceptedType"),
                  multiple: t.to("allowMultipleFiles"),
                },
                on: {
                  change: t.to(() => {
                    this.element &&
                      this.element.files &&
                      this.element.files.length &&
                      this.fire("done", this.element.files),
                      (this.element.value = "");
                  }),
                },
              });
            }
            open() {
              this.element.click();
            }
          }
          function bu(e) {
            return /^image\/(jpeg|png|gif|bmp)$/.test(e.type);
          }
          function yu(e) {
            return new Promise((t, n) => {
              const r = e.getAttribute("src");
              fetch(r)
                .then((e) => e.blob())
                .then((e) => {
                  const o = (function (e, t) {
                      return e.type
                        ? e.type
                        : t.match(/data:(image\/\w+);base64/)
                        ? t.match(/data:(image\/\w+);base64/)[1].toLowerCase()
                        : "image/jpeg";
                    })(e, r),
                    a = (function (e, t, n) {
                      try {
                        return new File([e], t, { type: n });
                      } catch (e) {
                        return null;
                      }
                    })(e, "image." + o.replace("image/", ""), o);
                  a ? t(a) : n();
                })
                .catch(n);
            });
          }
          class wu extends Is {
            init() {
              const e = this.editor,
                t = e.t;
              e.ui.componentFactory.add("imageUpload", (n) => {
                const r = new _u(n),
                  o = e.commands.get("imageUpload");
                return (
                  r.set({ acceptedType: "image/*", allowMultipleFiles: !0 }),
                  r.buttonView.set({
                    label: t("p"),
                    icon:
                      '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',
                    tooltip: !0,
                  }),
                  r.buttonView.bind("isEnabled").to(o),
                  r.on("done", (t, n) => {
                    const r = Array.from(n).filter(bu);
                    r.length && e.execute("imageUpload", { file: r });
                  }),
                  r
                );
              });
            }
          }
          n(52), n(54), n(56);
          class ku extends Is {
            constructor(e) {
              super(e),
                (this.placeholder =
                  "data:image/svg+xml;utf8," +
                  encodeURIComponent(
                    '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'
                  ));
            }
            init() {
              this.editor.editing.downcastDispatcher.on(
                "attribute:uploadStatus:image",
                (...e) => this.uploadStatusChange(...e)
              );
            }
            uploadStatusChange(e, t, n) {
              const r = this.editor,
                o = t.item,
                a = o.getAttribute("uploadId");
              if (!n.consumable.consume(t.item, e.name)) return;
              const i = r.plugins.get(Rl),
                s = a ? t.attributeNewValue : null,
                l = this.placeholder,
                c = r.editing.mapper.toViewElement(o),
                u = n.writer;
              if ("reading" == s) return xu(c, u), void Mu(l, c, u);
              if ("uploading" == s) {
                const e = i.loaders.get(a);
                return (
                  xu(c, u),
                  void (e
                    ? (Eu(c, u),
                      (function (e, t, n, r) {
                        const o = (function (e) {
                          const t = e.createUIElement("div", {
                            class: "ck-progress-bar",
                          });
                          return e.setCustomProperty("progressBar", !0, t), t;
                        })(t);
                        t.insert(t.createPositionAt(e, "end"), o),
                          n.on("change:uploadedPercent", (e, t, n) => {
                            r.change((e) => {
                              e.setStyle("width", n + "%", o);
                            });
                          });
                      })(c, u, e, r.editing.view),
                      (function (e, t, n) {
                        if (n.data) {
                          const r = e.getChild(0);
                          t.setAttribute("src", n.data, r);
                        }
                      })(c, u, e))
                    : Mu(l, c, u))
                );
              }
              "complete" == s &&
                i.loaders.get(a) &&
                !Pn &&
                (function (e, t, n) {
                  const r = t.createUIElement("div", {
                    class: "ck-image-upload-complete-icon",
                  });
                  t.insert(t.createPositionAt(e, "end"), r),
                    setTimeout(() => {
                      n.change((e) => e.remove(e.createRangeOn(r)));
                    }, 3e3);
                })(c, u, r.editing.view),
                (function (e, t) {
                  Su(e, t, "progressBar");
                })(c, u),
                Eu(c, u),
                (function (e, t) {
                  t.removeClass("ck-appear", e);
                })(c, u);
            }
          }
          function xu(e, t) {
            e.hasClass("ck-appear") || t.addClass("ck-appear", e);
          }
          function Mu(e, t, n) {
            t.hasClass("ck-image-upload-placeholder") ||
              n.addClass("ck-image-upload-placeholder", t);
            const r = t.getChild(0);
            r.getAttribute("src") !== e && n.setAttribute("src", e, r),
              Tu(t, "placeholder") ||
                n.insert(
                  n.createPositionAfter(r),
                  (function (e) {
                    const t = e.createUIElement("div", {
                      class: "ck-upload-placeholder-loader",
                    });
                    return e.setCustomProperty("placeholder", !0, t), t;
                  })(n)
                );
          }
          function Eu(e, t) {
            e.hasClass("ck-image-upload-placeholder") &&
              t.removeClass("ck-image-upload-placeholder", e),
              Su(e, t, "placeholder");
          }
          function Tu(e, t) {
            for (const n of e.getChildren())
              if (n.getCustomProperty(t)) return n;
          }
          function Su(e, t, n) {
            const r = Tu(e, n);
            r && t.remove(t.createRangeOn(r));
          }
          class Du {
            createDocumentFragment(e) {
              return new Un(e);
            }
            createElement(e, t, n) {
              return new Ht(e, t, n);
            }
            createText(e) {
              return new At(e);
            }
            clone(e, t = !1) {
              return e._clone(t);
            }
            appendChild(e, t) {
              return t._appendChild(e);
            }
            insertChild(e, t, n) {
              return n._insertChild(e, t);
            }
            removeChildren(e, t, n) {
              return n._removeChildren(e, t);
            }
            remove(e) {
              const t = e.parent;
              return t ? this.removeChildren(t.getChildIndex(e), 1, t) : [];
            }
            replace(e, t) {
              const n = e.parent;
              if (n) {
                const r = n.getChildIndex(e);
                return (
                  this.removeChildren(r, 1, n), this.insertChild(r, t, n), !0
                );
              }
              return !1;
            }
            unwrapElement(e) {
              const t = e.parent;
              if (t) {
                const n = t.getChildIndex(e);
                this.remove(e), this.insertChild(n, e.getChildren(), t);
              }
            }
            rename(e, t) {
              const n = new Ht(e, t.getAttributes(), t.getChildren());
              return this.replace(t, n) ? n : null;
            }
            setAttribute(e, t, n) {
              n._setAttribute(e, t);
            }
            removeAttribute(e, t) {
              t._removeAttribute(e);
            }
            addClass(e, t) {
              t._addClass(e);
            }
            removeClass(e, t) {
              t._removeClass(e);
            }
            setStyle(e, t, n) {
              y(e) && void 0 === n && (n = t), n._setStyle(e, t);
            }
            removeStyle(e, t) {
              t._removeStyle(e);
            }
            setCustomProperty(e, t, n) {
              n._setCustomProperty(e, t);
            }
            removeCustomProperty(e, t) {
              return t._removeCustomProperty(e);
            }
            createPositionAt(e, t) {
              return gn._createAt(e, t);
            }
            createPositionAfter(e) {
              return gn._createAfter(e);
            }
            createPositionBefore(e) {
              return gn._createBefore(e);
            }
            createRange(e, t) {
              return new _n(e, t);
            }
            createRangeOn(e) {
              return _n._createOn(e);
            }
            createRangeIn(e) {
              return _n._createIn(e);
            }
            createSelection(e, t, n) {
              return new yn(e, t, n);
            }
          }
          class Lu extends Hs {
            refresh() {
              this.isEnabled = Yc(this.editor.model);
            }
            execute(e) {
              const t = this.editor,
                n = t.model,
                r = t.plugins.get(Rl);
              n.change((t) => {
                const o = Array.isArray(e.file) ? e.file : [e.file];
                for (const e of o) Cu(t, n, r, e);
              });
            }
          }
          function Cu(e, t, n, r) {
            const o = n.createLoader(r);
            o && Rc(e, t, { uploadId: o.id });
          }
          class Pu extends Is {
            static get requires() {
              return [Rl, cc];
            }
            init() {
              const e = this.editor,
                t = e.model.document,
                n = e.model.schema,
                r = e.conversion,
                o = e.plugins.get(Rl);
              n.extend("image", {
                allowAttributes: ["uploadId", "uploadStatus"],
              }),
                e.commands.add("imageUpload", new Lu(e)),
                r
                  .for("upcast")
                  .attributeToAttribute({
                    view: { name: "img", key: "uploadId" },
                    model: "uploadId",
                  }),
                this.listenTo(
                  e.editing.view.document,
                  "clipboardInput",
                  (t, n) => {
                    if (
                      (function (e) {
                        return (
                          Array.from(e.types).includes("text/html") &&
                          "" !== e.getData("text/html")
                        );
                      })(n.dataTransfer)
                    )
                      return;
                    const r = Array.from(n.dataTransfer.files).filter(
                        (e) => !!e && bu(e)
                      ),
                      o = n.targetRanges.map((t) =>
                        e.editing.mapper.toModelRange(t)
                      );
                    e.model.change((n) => {
                      n.setSelection(o),
                        r.length &&
                          (t.stop(),
                          e.model.enqueueChange("default", () => {
                            e.execute("imageUpload", { file: r });
                          }));
                    });
                  }
                ),
                e.plugins.has("Clipboard") &&
                  this.listenTo(
                    e.plugins.get("Clipboard"),
                    "inputTransformation",
                    (t, n) => {
                      const r = Array.from(
                        e.editing.view.createRangeIn(n.content)
                      )
                        .filter(
                          (e) =>
                            (function (e) {
                              return (
                                !(
                                  !e.is("element", "img") ||
                                  !e.getAttribute("src")
                                ) &&
                                (e
                                  .getAttribute("src")
                                  .match(/^data:image\/\w+;base64,/g) ||
                                  e.getAttribute("src").match(/^blob:/g))
                              );
                            })(e.item) &&
                            !e.item.getAttribute("uploadProcessed")
                        )
                        .map((e) => ({
                          promise: yu(e.item),
                          imageElement: e.item,
                        }));
                      if (!r.length) return;
                      const a = new Du();
                      for (const e of r) {
                        a.setAttribute("uploadProcessed", !0, e.imageElement);
                        const t = o.createLoader(e.promise);
                        t &&
                          (a.setAttribute("src", "", e.imageElement),
                          a.setAttribute("uploadId", t.id, e.imageElement));
                      }
                    }
                  ),
                e.editing.view.document.on("dragover", (e, t) => {
                  t.preventDefault();
                }),
                t.on("change", () => {
                  const n = t.differ.getChanges({
                    includeChangesInGraveyard: !0,
                  });
                  for (const t of n)
                    if ("insert" == t.type && "$text" != t.name) {
                      const n = t.position.nodeAfter,
                        r = "$graveyard" == t.position.root.rootName;
                      for (const t of Ou(e, n)) {
                        const e = t.getAttribute("uploadId");
                        if (!e) continue;
                        const n = o.loaders.get(e);
                        n &&
                          (r
                            ? n.abort()
                            : "idle" == n.status && this._readAndUpload(n, t));
                      }
                    }
                });
            }
            _readAndUpload(e, t) {
              const n = this.editor,
                r = n.model,
                o = n.locale.t,
                a = n.plugins.get(Rl),
                i = n.plugins.get(cc);
              return (
                r.enqueueChange("transparent", (e) => {
                  e.setAttribute("uploadStatus", "reading", t);
                }),
                e
                  .read()
                  .then(() => {
                    const o = e.upload();
                    if (Nn) {
                      const e = n.editing.mapper.toViewElement(t).getChild(0);
                      n.editing.view.once("render", () => {
                        if (!e.parent) return;
                        const t = n.editing.view.domConverter.mapViewToDom(
                          e.parent
                        );
                        if (!t) return;
                        const r = t.style.display;
                        (t.style.display = "none"),
                          (t._ckHack = t.offsetHeight),
                          (t.style.display = r);
                      });
                    }
                    return (
                      r.enqueueChange("transparent", (e) => {
                        e.setAttribute("uploadStatus", "uploading", t);
                      }),
                      o
                    );
                  })
                  .then((e) => {
                    r.enqueueChange("transparent", (n) => {
                      n.setAttributes(
                        { uploadStatus: "complete", src: e.default },
                        t
                      ),
                        this._parseAndSetSrcsetAttributeOnImage(e, t, n);
                    }),
                      s();
                  })
                  .catch((n) => {
                    if ("error" !== e.status && "aborted" !== e.status) throw n;
                    "error" == e.status &&
                      n &&
                      i.showWarning(n, { title: o("al"), namespace: "upload" }),
                      s(),
                      r.enqueueChange("transparent", (e) => {
                        e.remove(t);
                      });
                  })
              );
              function s() {
                r.enqueueChange("transparent", (e) => {
                  e.removeAttribute("uploadId", t),
                    e.removeAttribute("uploadStatus", t);
                }),
                  a.destroyLoader(e);
              }
            }
            _parseAndSetSrcsetAttributeOnImage(e, t, n) {
              let r = 0;
              const o = Object.keys(e)
                .filter((e) => {
                  const t = parseInt(e, 10);
                  if (!isNaN(t)) return (r = Math.max(r, t)), !0;
                })
                .map((t) => `${e[t]} ${t}w`)
                .join(", ");
              "" != o && n.setAttribute("srcset", { data: o, width: r }, t);
            }
          }
          function Ou(e, t) {
            return Array.from(e.model.createRangeOn(t))
              .filter((e) => e.item.is("image"))
              .map((e) => e.item);
          }
          class Nu extends Is {
            static get pluginName() {
              return "ImageUpload";
            }
            static get requires() {
              return [Pu, wu, ku];
            }
          }
          class Au extends Hs {
            refresh() {
              const e = this.editor.model,
                t = tc(e.document.selection.getSelectedBlocks());
              (this.value = !!t && t.is("paragraph")),
                (this.isEnabled = !!t && Iu(t, e.schema));
            }
            execute(e = {}) {
              const t = this.editor.model,
                n = t.document;
              t.change((r) => {
                const o = (e.selection || n.selection).getSelectedBlocks();
                for (const e of o)
                  !e.is("paragraph") &&
                    Iu(e, t.schema) &&
                    r.rename(e, "paragraph");
              });
            }
          }
          function Iu(e, t) {
            return t.checkChild(e.parent, "paragraph") && !t.isObject(e);
          }
          class Ru extends Is {
            static get pluginName() {
              return "Paragraph";
            }
            init() {
              const e = this.editor,
                t = e.model,
                n = e.data;
              e.commands.add("paragraph", new Au(e)),
                t.schema.register("paragraph", { inheritAllFrom: "$block" }),
                e.conversion.elementToElement({
                  model: "paragraph",
                  view: "p",
                }),
                e.conversion
                  .for("upcast")
                  .elementToElement({
                    model: (e, t) =>
                      Ru.paragraphLikeElements.has(e.name)
                        ? e.isEmpty
                          ? null
                          : t.createElement("paragraph")
                        : null,
                    converterPriority: "low",
                  }),
                n.upcastDispatcher.on(
                  "element",
                  (e, t, n) => {
                    n.consumable.test(t.viewItem, { name: t.viewItem.name }) &&
                      ju(t.viewItem, t.modelCursor, n.schema) &&
                      Object.assign(t, Yu(t.viewItem, t.modelCursor, n));
                  },
                  { priority: "low" }
                ),
                n.upcastDispatcher.on(
                  "text",
                  (e, t, n) => {
                    t.modelRange ||
                      (ju(t.viewItem, t.modelCursor, n.schema) &&
                        Object.assign(t, Yu(t.viewItem, t.modelCursor, n)));
                  },
                  { priority: "lowest" }
                ),
                t.document.registerPostFixer((e) =>
                  this._autoparagraphEmptyRoots(e)
                ),
                e.data.on(
                  "ready",
                  () => {
                    t.enqueueChange("transparent", (e) =>
                      this._autoparagraphEmptyRoots(e)
                    );
                  },
                  { priority: "lowest" }
                );
            }
            _autoparagraphEmptyRoots(e) {
              const t = this.editor.model;
              for (const n of t.document.getRootNames()) {
                const r = t.document.getRoot(n);
                if (
                  r.isEmpty &&
                  "$graveyard" != r.rootName &&
                  t.schema.checkChild(r, "paragraph")
                )
                  return e.insertElement("paragraph", r), !0;
              }
            }
          }
          function Yu(e, t, n) {
            const r = n.writer.createElement("paragraph");
            return (
              n.writer.insert(r, t),
              n.convertItem(e, n.writer.createPositionAt(r, 0))
            );
          }
          function ju(e, t, n) {
            const r = n.createContext(t);
            return (
              !!n.checkChild(r, "paragraph") &&
              !!n.checkChild(r.push("paragraph"), e)
            );
          }
          Ru.paragraphLikeElements = new Set([
            "blockquote",
            "dd",
            "div",
            "dt",
            "h1",
            "h2",
            "h3",
            "h4",
            "h5",
            "h6",
            "li",
            "p",
            "td",
          ]);
          class Fu extends Hs {
            constructor(e, t) {
              super(e), (this.modelElements = t);
            }
            refresh() {
              const e = tc(
                this.editor.model.document.selection.getSelectedBlocks()
              );
              (this.value =
                !!e && this.modelElements.includes(e.name) && e.name),
                (this.isEnabled =
                  !!e &&
                  this.modelElements.some((t) =>
                    Hu(e, t, this.editor.model.schema)
                  ));
            }
            execute(e) {
              const t = this.editor.model,
                n = t.document,
                r = e.value;
              t.change((e) => {
                const o = Array.from(
                  n.selection.getSelectedBlocks()
                ).filter((e) => Hu(e, r, t.schema));
                for (const t of o) t.is(r) || e.rename(t, r);
              });
            }
          }
          function Hu(e, t, n) {
            return n.checkChild(e.parent, t) && !n.isObject(e);
          }
          const zu = "paragraph";
          class Bu extends Is {
            constructor(e) {
              super(e),
                e.config.define("heading", {
                  options: [
                    {
                      model: "paragraph",
                      title: "Paragraph",
                      class: "ck-heading_paragraph",
                    },
                    {
                      model: "heading1",
                      view: "h2",
                      title: "Heading 1",
                      class: "ck-heading_heading1",
                    },
                    {
                      model: "heading2",
                      view: "h3",
                      title: "Heading 2",
                      class: "ck-heading_heading2",
                    },
                    {
                      model: "heading3",
                      view: "h4",
                      title: "Heading 3",
                      class: "ck-heading_heading3",
                    },
                  ],
                });
            }
            static get requires() {
              return [Ru];
            }
            init() {
              const e = this.editor,
                t = e.config.get("heading.options"),
                n = [];
              for (const r of t)
                r.model !== zu &&
                  (e.model.schema.register(r.model, {
                    inheritAllFrom: "$block",
                  }),
                  e.conversion.elementToElement(r),
                  n.push(r.model));
              this._addDefaultH1Conversion(e),
                e.commands.add("heading", new Fu(e, n));
            }
            afterInit() {
              const e = this.editor,
                t = e.commands.get("enter"),
                n = e.config.get("heading.options");
              t &&
                this.listenTo(t, "afterExecute", (t, r) => {
                  const o = e.model.document.selection.getFirstPosition()
                    .parent;
                  n.some((e) => o.is(e.model)) &&
                    !o.is(zu) &&
                    0 === o.childCount &&
                    r.writer.rename(o, zu);
                });
            }
            _addDefaultH1Conversion(e) {
              e.conversion
                .for("upcast")
                .elementToElement({
                  model: "heading1",
                  view: "h1",
                  converterPriority: yt.get("low") + 1,
                });
            }
          }
          class Uu {
            constructor(e, t) {
              t && Zt(this, t), e && this.set(e);
            }
          }
          Ct(Uu, on);
          class Vu extends ys {
            constructor(e) {
              super(e);
              const t = this.bindTemplate;
              this.set("isVisible", !1),
                this.set("position", "se"),
                (this.children = this.createCollection()),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-reset",
                      "ck-dropdown__panel",
                      t.to("position", (e) => "ck-dropdown__panel_" + e),
                      t.if("isVisible", "ck-dropdown__panel-visible"),
                    ],
                  },
                  children: this.children,
                  on: { selectstart: t.to((e) => e.preventDefault()) },
                });
            }
            focus() {
              this.children.length && this.children.first.focus();
            }
            focusLast() {
              if (this.children.length) {
                const e = this.children.last;
                "function" == typeof e.focusLast ? e.focusLast() : e.focus();
              }
            }
          }
          n(58);
          class Wu extends ys {
            constructor(e, t, n) {
              super(e);
              const r = this.bindTemplate;
              (this.buttonView = t),
                (this.panelView = n),
                this.set("isOpen", !1),
                this.set("isEnabled", !0),
                this.set("class"),
                this.set("panelPosition", "auto"),
                (this.focusTracker = new Gi()),
                (this.keystrokes = new ji()),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck",
                      "ck-dropdown",
                      r.to("class"),
                      r.if("isEnabled", "ck-disabled", (e) => !e),
                    ],
                  },
                  children: [t, n],
                }),
                t.extendTemplate({
                  attributes: { class: ["ck-dropdown__button"] },
                });
            }
            render() {
              super.render(),
                this.listenTo(this.buttonView, "open", () => {
                  this.isOpen = !this.isOpen;
                }),
                this.panelView.bind("isVisible").to(this, "isOpen"),
                this.on("change:isOpen", () => {
                  this.isOpen &&
                    ("auto" === this.panelPosition
                      ? (this.panelView.position = Wu._getOptimalPosition({
                          element: this.panelView.element,
                          target: this.buttonView.element,
                          fitInViewport: !0,
                          positions: this._panelPositions,
                        }).name)
                      : (this.panelView.position = this.panelPosition));
                }),
                this.keystrokes.listenTo(this.element),
                this.focusTracker.add(this.element);
              const e = (e, t) => {
                this.isOpen &&
                  (this.buttonView.focus(), (this.isOpen = !1), t());
              };
              this.keystrokes.set("arrowdown", (e, t) => {
                this.buttonView.isEnabled &&
                  !this.isOpen &&
                  ((this.isOpen = !0), t());
              }),
                this.keystrokes.set("arrowright", (e, t) => {
                  this.isOpen && t();
                }),
                this.keystrokes.set("arrowleft", e),
                this.keystrokes.set("esc", e);
            }
            focus() {
              this.buttonView.focus();
            }
            get _panelPositions() {
              const {
                southEast: e,
                southWest: t,
                northEast: n,
                northWest: r,
              } = Wu.defaultPanelPositions;
              return "ltr" === this.locale.uiLanguageDirection
                ? [e, t, n, r]
                : [t, e, r, n];
            }
          }
          (Wu.defaultPanelPositions = {
            southEast: (e) => ({ top: e.bottom, left: e.left, name: "se" }),
            southWest: (e, t) => ({
              top: e.bottom,
              left: e.left - t.width + e.width,
              name: "sw",
            }),
            northEast: (e, t) => ({
              top: e.top - t.height,
              left: e.left,
              name: "ne",
            }),
            northWest: (e, t) => ({
              top: e.bottom - t.height,
              left: e.left - t.width + e.width,
              name: "nw",
            }),
          }),
            (Wu._getOptimalPosition = eu);
          class qu extends Ll {
            constructor(e) {
              super(e),
                (this.arrowView = this._createArrowView()),
                this.extendTemplate({ attributes: { "aria-haspopup": !0 } }),
                this.delegate("execute").to(this, "open");
            }
            render() {
              super.render(), this.children.add(this.arrowView);
            }
            _createArrowView() {
              const e = new Sl();
              return (
                (e.content =
                  '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>'),
                e.extendTemplate({
                  attributes: { class: "ck-dropdown__arrow" },
                }),
                e
              );
            }
          }
          n(60);
          class Gu extends ys {
            constructor() {
              super(),
                (this.items = this.createCollection()),
                (this.focusTracker = new Gi()),
                (this.keystrokes = new ji()),
                (this._focusCycler = new Ls({
                  focusables: this.items,
                  focusTracker: this.focusTracker,
                  keystrokeHandler: this.keystrokes,
                  actions: { focusPrevious: "arrowup", focusNext: "arrowdown" },
                })),
                this.setTemplate({
                  tag: "ul",
                  attributes: { class: ["ck", "ck-reset", "ck-list"] },
                  children: this.items,
                });
            }
            render() {
              super.render();
              for (const e of this.items) this.focusTracker.add(e.element);
              this.items.on("add", (e, t) => {
                this.focusTracker.add(t.element);
              }),
                this.items.on("remove", (e, t) => {
                  this.focusTracker.remove(t.element);
                }),
                this.keystrokes.listenTo(this.element);
            }
            focus() {
              this._focusCycler.focusFirst();
            }
            focusLast() {
              this._focusCycler.focusLast();
            }
          }
          class Ju extends ys {
            constructor(e) {
              super(e),
                (this.children = this.createCollection()),
                this.setTemplate({
                  tag: "li",
                  attributes: { class: ["ck", "ck-list__item"] },
                  children: this.children,
                });
            }
            focus() {
              this.children.first.focus();
            }
          }
          class Ku extends ys {
            constructor(e) {
              super(e),
                this.setTemplate({
                  tag: "li",
                  attributes: { class: ["ck", "ck-list__separator"] },
                });
            }
          }
          n(62);
          class Qu extends Ll {
            constructor(e) {
              super(e),
                (this.isToggleable = !0),
                (this.toggleSwitchView = this._createToggleView()),
                this.extendTemplate({
                  attributes: { class: "ck-switchbutton" },
                });
            }
            render() {
              super.render(), this.children.add(this.toggleSwitchView);
            }
            _createToggleView() {
              const e = new ys();
              return (
                e.setTemplate({
                  tag: "span",
                  attributes: { class: ["ck", "ck-button__toggle"] },
                  children: [
                    {
                      tag: "span",
                      attributes: { class: ["ck", "ck-button__toggle__inner"] },
                    },
                  ],
                }),
                e
              );
            }
          }
          function Xu(e, t = qu) {
            const n = new t(e),
              r = new Vu(e),
              o = new Wu(e, n, r);
            return (
              n.bind("isEnabled").to(o),
              n instanceof qu
                ? n.bind("isOn").to(o, "isOpen")
                : n.arrowView.bind("isOn").to(o, "isOpen"),
              (function (e) {
                (function (e) {
                  e.on("render", () => {
                    Gc({
                      emitter: e,
                      activator: () => e.isOpen,
                      callback: () => {
                        e.isOpen = !1;
                      },
                      contextElements: [e.element],
                    });
                  });
                })(e),
                  (function (e) {
                    e.on("execute", (t) => {
                      t.source instanceof Qu || (e.isOpen = !1);
                    });
                  })(e),
                  (function (e) {
                    e.keystrokes.set("arrowdown", (t, n) => {
                      e.isOpen && (e.panelView.focus(), n());
                    }),
                      e.keystrokes.set("arrowup", (t, n) => {
                        e.isOpen && (e.panelView.focusLast(), n());
                      });
                  })(e);
              })(o),
              o
            );
          }
          function $u(e, t) {
            const n = e.locale,
              r = (e.listView = new Gu(n));
            r.items.bindTo(t).using(({ type: e, model: t }) => {
              if ("separator" === e) return new Ku(n);
              if ("button" === e || "switchbutton" === e) {
                const r = new Ju(n);
                let o;
                return (
                  (o = "button" === e ? new Ll(n) : new Qu(n))
                    .bind(...Object.keys(t))
                    .to(t),
                  o.delegate("execute").to(r),
                  r.children.add(o),
                  r
                );
              }
            }),
              e.panelView.children.add(r),
              r.items.delegate("execute").to(e);
          }
          n(64), n(66), n(10);
          class Zu extends Is {
            init() {
              const e = this.editor,
                t = e.t,
                n = (function (e) {
                  const t = e.t,
                    n = {
                      Paragraph: t("bt"),
                      "Heading 1": t("bu"),
                      "Heading 2": t("bv"),
                      "Heading 3": t("bw"),
                      "Heading 4": t("bx"),
                      "Heading 5": t("by"),
                      "Heading 6": t("bz"),
                    };
                  return e.config.get("heading.options").map((e) => {
                    const t = n[e.title];
                    return t && t != e.title && (e.title = t), e;
                  });
                })(e),
                r = t("h"),
                o = t("i");
              e.ui.componentFactory.add("heading", (t) => {
                const a = {},
                  i = new kn(),
                  s = e.commands.get("heading"),
                  l = e.commands.get("paragraph"),
                  c = [s];
                for (const e of n) {
                  const t = {
                    type: "button",
                    model: new Uu({
                      label: e.title,
                      class: e.class,
                      withText: !0,
                    }),
                  };
                  "paragraph" === e.model
                    ? (t.model.bind("isOn").to(l, "value"),
                      t.model.set("commandName", "paragraph"),
                      c.push(l))
                    : (t.model
                        .bind("isOn")
                        .to(s, "value", (t) => t === e.model),
                      t.model.set({
                        commandName: "heading",
                        commandValue: e.model,
                      })),
                    i.add(t),
                    (a[e.model] = e.title);
                }
                const u = Xu(t);
                return (
                  $u(u, i),
                  u.buttonView.set({ isOn: !1, withText: !0, tooltip: o }),
                  u.extendTemplate({
                    attributes: { class: ["ck-heading-dropdown"] },
                  }),
                  u
                    .bind("isEnabled")
                    .toMany(c, "isEnabled", (...e) => e.some((e) => e)),
                  u.buttonView
                    .bind("label")
                    .to(s, "value", l, "value", (e, t) => {
                      const n = e || (t && "paragraph");
                      return a[n] ? a[n] : r;
                    }),
                  this.listenTo(u, "execute", (t) => {
                    e.execute(
                      t.source.commandName,
                      t.source.commandValue
                        ? { value: t.source.commandValue }
                        : void 0
                    ),
                      e.editing.view.focus();
                  }),
                  u
                );
              });
            }
          }
          function ed(e) {
            for (const t of e.getChildren()) if (t && t.is("caption")) return t;
            return null;
          }
          function td(e) {
            const t = e.parent;
            return "figcaption" == e.name &&
              t &&
              "figure" == t.name &&
              t.hasClass("image")
              ? { name: !0 }
              : null;
          }
          class nd extends Is {
            init() {
              const e = this.editor,
                t = e.editing.view,
                n = e.model.schema,
                r = e.data,
                o = e.editing,
                a = e.t;
              n.register("caption", {
                allowIn: "image",
                allowContentOf: "$block",
                isLimit: !0,
              }),
                e.model.document.registerPostFixer((e) =>
                  this._insertMissingModelCaptionElement(e)
                ),
                e.conversion
                  .for("upcast")
                  .elementToElement({ view: td, model: "caption" }),
                r.downcastDispatcher.on(
                  "insert:caption",
                  rd((e) => e.createContainerElement("figcaption"), !1)
                );
              const i = (function (e, t) {
                return (n) => {
                  const r = n.createEditableElement("figcaption");
                  return (
                    n.setCustomProperty("imageCaption", !0, r),
                    Qi({ view: e, element: r, text: t }),
                    Pc(r, n)
                  );
                };
              })(t, a("ak"));
              o.downcastDispatcher.on("insert:caption", rd(i)),
                o.downcastDispatcher.on(
                  "insert",
                  this._fixCaptionVisibility((e) => e.item),
                  { priority: "high" }
                ),
                o.downcastDispatcher.on(
                  "remove",
                  this._fixCaptionVisibility((e) => e.position.parent),
                  { priority: "high" }
                ),
                t.document.registerPostFixer((e) =>
                  this._updateCaptionVisibility(e)
                );
            }
            _updateCaptionVisibility(e) {
              const t = this.editor.editing.mapper,
                n = this._lastSelectedCaption;
              let r;
              const o = this.editor.model.document.selection,
                a = o.getSelectedElement();
              if (a && a.is("image")) {
                const e = ed(a);
                r = t.toViewElement(e);
              }
              const i = od(o.getFirstPosition().parent);
              if ((i && (r = t.toViewElement(i)), r))
                return n
                  ? (n === r || (ad(n, e), (this._lastSelectedCaption = r)),
                    id(r, e))
                  : ((this._lastSelectedCaption = r), id(r, e));
              if (n) {
                const t = ad(n, e);
                return (this._lastSelectedCaption = null), t;
              }
              return !1;
            }
            _fixCaptionVisibility(e) {
              return (t, n, r) => {
                const o = od(e(n)),
                  a = this.editor.editing.mapper,
                  i = r.writer;
                if (o) {
                  const e = a.toViewElement(o);
                  e &&
                    (o.childCount
                      ? i.removeClass("ck-hidden", e)
                      : i.addClass("ck-hidden", e));
                }
              };
            }
            _insertMissingModelCaptionElement(e) {
              const t = this.editor.model,
                n = t.document.differ.getChanges(),
                r = [];
              for (const e of n)
                if ("insert" == e.type && "$text" != e.name) {
                  const n = e.position.nodeAfter;
                  if (
                    (n.is("image") && !ed(n) && r.push(n),
                    !n.is("image") && n.childCount)
                  )
                    for (const e of t.createRangeIn(n).getItems())
                      e.is("image") && !ed(e) && r.push(e);
                }
              for (const t of r) e.appendElement("caption", t);
              return !!r.length;
            }
          }
          function rd(e, t = !0) {
            return (n, r, o) => {
              const a = r.item;
              if ((a.childCount || t) && Ic(a.parent)) {
                if (!o.consumable.consume(r.item, "insert")) return;
                const t = o.mapper.toViewElement(r.range.start.parent),
                  n = e(o.writer),
                  i = o.writer;
                a.childCount || i.addClass("ck-hidden", n),
                  (function (e, t, n, r) {
                    const o = r.writer.createPositionAt(n, "end");
                    r.writer.insert(o, e), r.mapper.bindElements(t, e);
                  })(n, r.item, t, o);
              }
            };
          }
          function od(e) {
            const t = e
              .getAncestors({ includeSelf: !0 })
              .find((e) => "caption" == e.name);
            return t && t.parent && "image" == t.parent.name ? t : null;
          }
          function ad(e, t) {
            return (
              !e.childCount &&
              !e.hasClass("ck-hidden") &&
              (t.addClass("ck-hidden", e), !0)
            );
          }
          function id(e, t) {
            return (
              !!e.hasClass("ck-hidden") && (t.removeClass("ck-hidden", e), !0)
            );
          }
          n(69);
          class sd extends Hs {
            constructor(e, t) {
              super(e),
                (this.defaultStyle = !1),
                (this.styles = t.reduce(
                  (e, t) => (
                    (e[t.name] = t),
                    t.isDefault && (this.defaultStyle = t.name),
                    e
                  ),
                  {}
                ));
            }
            refresh() {
              const e = this.editor.model.document.selection.getSelectedElement();
              if (((this.isEnabled = Ic(e)), e))
                if (e.hasAttribute("imageStyle")) {
                  const t = e.getAttribute("imageStyle");
                  this.value = !!this.styles[t] && t;
                } else this.value = this.defaultStyle;
              else this.value = !1;
            }
            execute(e) {
              const t = e.value,
                n = this.editor.model,
                r = n.document.selection.getSelectedElement();
              n.change((e) => {
                this.styles[t].isDefault
                  ? e.removeAttribute("imageStyle", r)
                  : e.setAttribute("imageStyle", t, r);
              });
            }
          }
          function ld(e, t) {
            for (const n of t) if (n.name === e) return n;
          }
          var cd =
              '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',
            ud =
              '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',
            dd =
              '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',
            hd =
              '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>';
          const pd = {
              full: {
                name: "full",
                title: "Full size image",
                icon: cd,
                isDefault: !0,
              },
              side: {
                name: "side",
                title: "Side image",
                icon: hd,
                className: "image-style-side",
              },
              alignLeft: {
                name: "alignLeft",
                title: "Left aligned image",
                icon: ud,
                className: "image-style-align-left",
              },
              alignCenter: {
                name: "alignCenter",
                title: "Centered image",
                icon: dd,
                className: "image-style-align-center",
              },
              alignRight: {
                name: "alignRight",
                title: "Right aligned image",
                icon: hd,
                className: "image-style-align-right",
              },
            },
            fd = { full: cd, left: ud, right: hd, center: dd };
          function md(e = []) {
            return e.map(gd);
          }
          function gd(e) {
            if ("string" == typeof e) {
              const t = e;
              pd[t]
                ? (e = Object.assign({}, pd[t]))
                : (console.warn(
                    Object(_t.a)(
                      "image-style-not-found: There is no such image style of given name."
                    ),
                    { name: t }
                  ),
                  (e = { name: t }));
            } else if (pd[e.name]) {
              const t = pd[e.name],
                n = Object.assign({}, e);
              for (const r in t) e.hasOwnProperty(r) || (n[r] = t[r]);
              e = n;
            }
            return (
              "string" == typeof e.icon && fd[e.icon] && (e.icon = fd[e.icon]),
              e
            );
          }
          class _d extends Is {
            static get pluginName() {
              return "ImageStyleEditing";
            }
            init() {
              const e = this.editor,
                t = e.model.schema,
                n = e.data,
                r = e.editing;
              e.config.define("image.styles", ["full", "side"]);
              const o = md(e.config.get("image.styles"));
              t.extend("image", { allowAttributes: "imageStyle" });
              const a = (function (e) {
                return (t, n, r) => {
                  if (!r.consumable.consume(n.item, t.name)) return;
                  const o = ld(n.attributeNewValue, e),
                    a = ld(n.attributeOldValue, e),
                    i = r.mapper.toViewElement(n.item),
                    s = r.writer;
                  a && s.removeClass(a.className, i),
                    o && s.addClass(o.className, i);
                };
              })(o);
              r.downcastDispatcher.on("attribute:imageStyle:image", a),
                n.downcastDispatcher.on("attribute:imageStyle:image", a),
                n.upcastDispatcher.on(
                  "element:figure",
                  (function (e) {
                    const t = e.filter((e) => !e.isDefault);
                    return (e, n, r) => {
                      if (!n.modelRange) return;
                      const o = n.viewItem,
                        a = tc(n.modelRange.getItems());
                      if (r.schema.checkAttribute(a, "imageStyle"))
                        for (const e of t)
                          r.consumable.consume(o, { classes: e.className }) &&
                            r.writer.setAttribute("imageStyle", e.name, a);
                    };
                  })(o),
                  { priority: "low" }
                ),
                e.commands.add("imageStyle", new sd(e, o));
            }
          }
          n(71);
          class vd extends Is {
            static get pluginName() {
              return "ImageStyleUI";
            }
            get localizedDefaultStylesTitles() {
              const e = this.editor.t;
              return {
                "Full size image": e("k"),
                "Side image": e("l"),
                "Left aligned image": e("m"),
                "Centered image": e("n"),
                "Right aligned image": e("o"),
              };
            }
            init() {
              const e = (function (e, t) {
                for (const n of e) t[n.title] && (n.title = t[n.title]);
                return e;
              })(
                md(this.editor.config.get("image.styles")),
                this.localizedDefaultStylesTitles
              );
              for (const t of e) this._createButton(t);
            }
            _createButton(e) {
              const t = this.editor,
                n = "imageStyle:" + e.name;
              t.ui.componentFactory.add(n, (n) => {
                const r = t.commands.get("imageStyle"),
                  o = new Ll(n);
                return (
                  o.set({
                    label: e.title,
                    icon: e.icon,
                    tooltip: !0,
                    isToggleable: !0,
                  }),
                  o.bind("isEnabled").to(r, "isEnabled"),
                  o.bind("isOn").to(r, "value", (t) => t === e.name),
                  this.listenTo(o, "execute", () =>
                    t.execute("imageStyle", { value: e.name })
                  ),
                  o
                );
              });
            }
          }
          class bd extends Is {
            static get requires() {
              return [uu];
            }
            static get pluginName() {
              return "WidgetToolbarRepository";
            }
            init() {
              const e = this.editor;
              if (e.plugins.has("BalloonToolbar")) {
                const t = e.plugins.get("BalloonToolbar");
                this.listenTo(
                  t,
                  "show",
                  (t) => {
                    (function (e) {
                      const t = e.getSelectedElement();
                      return !(!t || !Dc(t));
                    })(e.editing.view.document.selection) && t.stop();
                  },
                  { priority: "high" }
                );
              }
              (this._toolbarDefinitions = new Map()),
                (this._balloon = this.editor.plugins.get("ContextualBalloon")),
                this.listenTo(e.ui, "update", () => {
                  this._updateToolbarsVisibility();
                }),
                this.listenTo(
                  e.ui.focusTracker,
                  "change:isFocused",
                  () => {
                    this._updateToolbarsVisibility();
                  },
                  { priority: "low" }
                );
            }
            destroy() {
              super.destroy();
              for (const e of this._toolbarDefinitions.values())
                e.view.destroy();
            }
            register(
              e,
              {
                ariaLabel: t,
                items: n,
                getRelatedElement: r,
                balloonClassName: o = "ck-toolbar-container",
              }
            ) {
              const a = this.editor,
                i = a.t,
                s = new Os(a.locale);
              if (
                ((s.ariaLabel = t || i("av")), this._toolbarDefinitions.has(e))
              )
                throw new _t.b(
                  "widget-toolbar-duplicated: Toolbar with the given id was already added.",
                  this,
                  { toolbarId: e }
                );
              s.fillFromConfig(n, a.ui.componentFactory),
                this._toolbarDefinitions.set(e, {
                  view: s,
                  getRelatedElement: r,
                  balloonClassName: o,
                });
            }
            _updateToolbarsVisibility() {
              let e = 0,
                t = null,
                n = null;
              for (const r of this._toolbarDefinitions.values()) {
                const o = r.getRelatedElement(
                  this.editor.editing.view.document.selection
                );
                if (this.editor.ui.focusTracker.isFocused)
                  if (o) {
                    const a = o.getAncestors().length;
                    a > e && ((e = a), (t = o), (n = r));
                  } else this._isToolbarInBalloon(r) && this._hideToolbar(r);
                else this._isToolbarVisible(r) && this._hideToolbar(r);
              }
              n && this._showToolbar(n, t);
            }
            _hideToolbar(e) {
              this._balloon.remove(e.view),
                this.stopListening(this._balloon, "change:visibleView");
            }
            _showToolbar(e, t) {
              this._isToolbarVisible(e)
                ? yd(this.editor, t)
                : this._isToolbarInBalloon(e) ||
                  (this._balloon.add({
                    view: e.view,
                    position: wd(this.editor, t),
                    balloonClassName: e.balloonClassName,
                  }),
                  this.listenTo(this._balloon, "change:visibleView", () => {
                    for (const e of this._toolbarDefinitions.values())
                      if (this._isToolbarVisible(e)) {
                        const t = e.getRelatedElement(
                          this.editor.editing.view.document.selection
                        );
                        yd(this.editor, t);
                      }
                  }));
            }
            _isToolbarVisible(e) {
              return this._balloon.visibleView === e.view;
            }
            _isToolbarInBalloon(e) {
              return this._balloon.hasView(e.view);
            }
          }
          function yd(e, t) {
            const n = e.plugins.get("ContextualBalloon"),
              r = wd(e, t);
            n.updatePosition(r);
          }
          function wd(e, t) {
            const n = e.editing.view,
              r = au.defaultPositions;
            return {
              target: n.domConverter.mapViewToDom(t),
              positions: [
                r.northArrowSouth,
                r.northArrowSouthWest,
                r.northArrowSouthEast,
                r.southArrowNorth,
                r.southArrowNorthWest,
                r.southArrowNorthEast,
              ],
            };
          }
          function kd(e, t, n) {
            return n.createRange(xd(e, t, !0, n), xd(e, t, !1, n));
          }
          function xd(e, t, n, r) {
            let o = e.textNode || (n ? e.nodeBefore : e.nodeAfter),
              a = null;
            for (; o && o.getAttribute("linkHref") == t; )
              (a = o), (o = n ? o.previousSibling : o.nextSibling);
            return a ? r.createPositionAt(a, n ? "before" : "after") : e;
          }
          class Md extends Hs {
            constructor(e) {
              super(e), (this.manualDecorators = new kn());
            }
            restoreManualDecoratorStates() {
              for (const e of this.manualDecorators)
                e.value = this._getDecoratorStateFromModel(e.id);
            }
            refresh() {
              const e = this.editor.model,
                t = e.document;
              this.value = t.selection.getAttribute("linkHref");
              for (const e of this.manualDecorators)
                e.value = this._getDecoratorStateFromModel(e.id);
              this.isEnabled = e.schema.checkAttributeInSelection(
                t.selection,
                "linkHref"
              );
            }
            execute(e, t = {}) {
              const n = this.editor.model,
                r = n.document.selection,
                o = [],
                a = [];
              for (const e in t) t[e] ? o.push(e) : a.push(e);
              n.change((t) => {
                if (r.isCollapsed) {
                  const i = r.getFirstPosition();
                  if (r.hasAttribute("linkHref")) {
                    const s = kd(i, r.getAttribute("linkHref"), n);
                    t.setAttribute("linkHref", e, s),
                      o.forEach((e) => {
                        t.setAttribute(e, !0, s);
                      }),
                      a.forEach((e) => {
                        t.removeAttribute(e, s);
                      }),
                      t.setSelection(s);
                  } else if ("" !== e) {
                    const a = Oo(r.getAttributes());
                    a.set("linkHref", e),
                      o.forEach((e) => {
                        a.set(e, !0);
                      });
                    const s = t.createText(e, a);
                    n.insertContent(s, i), t.setSelection(t.createRangeOn(s));
                  }
                } else {
                  const i = n.schema.getValidRanges(r.getRanges(), "linkHref");
                  for (const n of i)
                    t.setAttribute("linkHref", e, n),
                      o.forEach((e) => {
                        t.setAttribute(e, !0, n);
                      }),
                      a.forEach((e) => {
                        t.removeAttribute(e, n);
                      });
                }
              });
            }
            _getDecoratorStateFromModel(e) {
              return this.editor.model.document.selection.getAttribute(e) || !1;
            }
          }
          class Ed extends Hs {
            refresh() {
              this.isEnabled = this.editor.model.document.selection.hasAttribute(
                "linkHref"
              );
            }
            execute() {
              const e = this.editor,
                t = this.editor.model,
                n = t.document.selection,
                r = e.commands.get("link");
              t.change((e) => {
                const o = n.isCollapsed
                  ? [kd(n.getFirstPosition(), n.getAttribute("linkHref"), t)]
                  : n.getRanges();
                for (const t of o)
                  if ((e.removeAttribute("linkHref", t), r))
                    for (const n of r.manualDecorators)
                      e.removeAttribute(n.id, t);
              });
            }
          }
          var Td = function (e, t, n) {
              var r = e.length;
              return (
                (n = void 0 === n ? r : n),
                !t && n >= r
                  ? e
                  : (function (e, t, n) {
                      var r = -1,
                        o = e.length;
                      t < 0 && (t = -t > o ? 0 : o + t),
                        (n = n > o ? o : n) < 0 && (n += o),
                        (o = t > n ? 0 : (n - t) >>> 0),
                        (t >>>= 0);
                      for (var a = Array(o); ++r < o; ) a[r] = e[r + t];
                      return a;
                    })(e, t, n)
              );
            },
            Sd = RegExp(
              "[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"
            ),
            Dd = function (e) {
              return Sd.test(e);
            },
            Ld = "[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",
            Cd = "\\ud83c[\\udffb-\\udfff]",
            Pd = "[^\\ud800-\\udfff]",
            Od = "(?:\\ud83c[\\udde6-\\uddff]){2}",
            Nd = "[\\ud800-\\udbff][\\udc00-\\udfff]",
            Ad = "(?:" + Ld + "|" + Cd + ")?",
            Id =
              "[\\ufe0e\\ufe0f]?" +
              Ad +
              "(?:\\u200d(?:" +
              [Pd, Od, Nd].join("|") +
              ")[\\ufe0e\\ufe0f]?" +
              Ad +
              ")*",
            Rd =
              "(?:" +
              [Pd + Ld + "?", Ld, Od, Nd, "[\\ud800-\\udfff]"].join("|") +
              ")",
            Yd = RegExp(Cd + "(?=" + Cd + ")|" + Rd + Id, "g"),
            jd = function (e) {
              return Dd(e)
                ? (function (e) {
                    return e.match(Yd) || [];
                  })(e)
                : (function (e) {
                    return e.split("");
                  })(e);
            },
            Fd = o ? o.prototype : void 0,
            Hd = Fd ? Fd.toString : void 0,
            zd = function e(t) {
              if ("string" == typeof t) return t;
              if (se(t))
                return (
                  (function (e, t) {
                    for (
                      var n = -1, r = null == e ? 0 : e.length, o = Array(r);
                      ++n < r;

                    )
                      o[n] = t(e[n], n, e);
                    return o;
                  })(t, e) + ""
                );
              if (Zr(t)) return Hd ? Hd.call(t) : "";
              var n = t + "";
              return "0" == n && 1 / t == -1 / 0 ? "-0" : n;
            },
            Bd = function (e) {
              e = (function (e) {
                return null == e ? "" : zd(e);
              })(e);
              var t = Dd(e) ? jd(e) : void 0,
                n = t ? t[0] : e.charAt(0),
                r = t ? Td(t, 1).join("") : e.slice(1);
              return n.toUpperCase() + r;
            };
          const Ud = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,
            Vd = /^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;
          function Wd(e, t) {
            const n = t.createAttributeElement(
              "a",
              { href: e },
              { priority: 5 }
            );
            return t.setCustomProperty("link", !0, n), n;
          }
          function qd(e) {
            return (function (e) {
              return e.replace(Ud, "").match(Vd);
            })((e = String(e)))
              ? e
              : "#";
          }
          class Gd {
            constructor() {
              this._definitions = new Set();
            }
            get length() {
              return this._definitions.size;
            }
            add(e) {
              Array.isArray(e)
                ? e.forEach((e) => this._definitions.add(e))
                : this._definitions.add(e);
            }
            getDispatcher() {
              return (e) => {
                e.on(
                  "attribute:linkHref",
                  (e, t, n) => {
                    if (!n.consumable.test(t.item, "attribute:linkHref"))
                      return;
                    const r = n.writer,
                      o = r.document.selection;
                    for (const e of this._definitions) {
                      const a = r.createAttributeElement("a", e.attributes, {
                        priority: 5,
                      });
                      r.setCustomProperty("link", !0, a),
                        e.callback(t.attributeNewValue)
                          ? t.item.is("selection")
                            ? r.wrap(o.getFirstRange(), a)
                            : r.wrap(n.mapper.toViewRange(t.range), a)
                          : r.unwrap(n.mapper.toViewRange(t.range), a);
                    }
                  },
                  { priority: "high" }
                );
              };
            }
          }
          class Jd {
            constructor({ id: e, label: t, attributes: n }) {
              (this.id = e),
                this.set("value"),
                (this.label = t),
                (this.attributes = n);
            }
          }
          Ct(Jd, on);
          class Kd {
            constructor(e, t, n) {
              (this.model = e),
                (this.attribute = n),
                (this._modelSelection = e.document.selection),
                (this._overrideUid = null),
                (this._isNextGravityRestorationSkipped = !1),
                t.listenTo(this._modelSelection, "change:range", (e, t) => {
                  this._isNextGravityRestorationSkipped
                    ? (this._isNextGravityRestorationSkipped = !1)
                    : this._isGravityOverridden &&
                      ((!t.directChange &&
                        Qd(this._modelSelection.getFirstPosition(), n)) ||
                        this._restoreGravity());
                });
            }
            handleForwardMovement(e, t) {
              const n = this.attribute;
              if (
                !(
                  this._isGravityOverridden ||
                  (e.isAtStart && this._hasSelectionAttribute)
                )
              )
                return Zd(e, n) && this._hasSelectionAttribute
                  ? (this._preventCaretMovement(t),
                    this._removeSelectionAttribute(),
                    !0)
                  : Xd(e, n) || ($d(e, n) && this._hasSelectionAttribute)
                  ? (this._preventCaretMovement(t), this._overrideGravity(), !0)
                  : void 0;
            }
            handleBackwardMovement(e, t) {
              const n = this.attribute;
              return this._isGravityOverridden
                ? Zd(e, n) && this._hasSelectionAttribute
                  ? (this._preventCaretMovement(t),
                    this._restoreGravity(),
                    this._removeSelectionAttribute(),
                    !0)
                  : (this._preventCaretMovement(t),
                    this._restoreGravity(),
                    e.isAtStart && this._removeSelectionAttribute(),
                    !0)
                : Zd(e, n) && !this._hasSelectionAttribute
                ? (this._preventCaretMovement(t),
                  this._setSelectionAttributeFromTheNodeBefore(e),
                  !0)
                : e.isAtEnd && $d(e, n)
                ? this._hasSelectionAttribute
                  ? void (
                      eh(e, n) &&
                      (this._skipNextAutomaticGravityRestoration(),
                      this._overrideGravity())
                    )
                  : (this._preventCaretMovement(t),
                    this._setSelectionAttributeFromTheNodeBefore(e),
                    !0)
                : e.isAtStart
                ? this._hasSelectionAttribute
                  ? (this._removeSelectionAttribute(),
                    this._preventCaretMovement(t),
                    !0)
                  : void 0
                : void (
                    eh(e, n) &&
                    (this._skipNextAutomaticGravityRestoration(),
                    this._overrideGravity())
                  );
            }
            get _isGravityOverridden() {
              return !!this._overrideUid;
            }
            get _hasSelectionAttribute() {
              return this._modelSelection.hasAttribute(this.attribute);
            }
            _overrideGravity() {
              this._overrideUid = this.model.change((e) =>
                e.overrideSelectionGravity()
              );
            }
            _restoreGravity() {
              this.model.change((e) => {
                e.restoreSelectionGravity(this._overrideUid),
                  (this._overrideUid = null);
              });
            }
            _preventCaretMovement(e) {
              e.preventDefault();
            }
            _removeSelectionAttribute() {
              this.model.change((e) => {
                e.removeSelectionAttribute(this.attribute);
              });
            }
            _setSelectionAttributeFromTheNodeBefore(e) {
              const t = this.attribute;
              this.model.change((n) => {
                n.setSelectionAttribute(
                  this.attribute,
                  e.nodeBefore.getAttribute(t)
                );
              });
            }
            _skipNextAutomaticGravityRestoration() {
              this._isNextGravityRestorationSkipped = !0;
            }
          }
          function Qd(e, t) {
            return Xd(e, t) || $d(e, t);
          }
          function Xd(e, t) {
            const { nodeBefore: n, nodeAfter: r } = e,
              o = !!n && n.hasAttribute(t);
            return (
              !!r &&
              r.hasAttribute(t) &&
              (!o || n.getAttribute(t) !== r.getAttribute(t))
            );
          }
          function $d(e, t) {
            const { nodeBefore: n, nodeAfter: r } = e,
              o = !!n && n.hasAttribute(t),
              a = !!r && r.hasAttribute(t);
            return o && (!a || n.getAttribute(t) !== r.getAttribute(t));
          }
          function Zd(e, t) {
            const { nodeBefore: n, nodeAfter: r } = e,
              o = !!n && n.hasAttribute(t);
            if (r && r.hasAttribute(t) && o)
              return r.getAttribute(t) !== n.getAttribute(t);
          }
          function eh(e, t) {
            return Qd(e.getShiftedBy(-1), t);
          }
          n(73);
          const th = "ck-link_selected",
            nh = "automatic",
            rh = /^(https?:)?\/\//;
          class oh extends Is {
            constructor(e) {
              super(e),
                e.config.define("link", { addTargetToExternalLinks: !1 });
            }
            init() {
              const e = this.editor,
                t = e.locale;
              e.model.schema.extend("$text", { allowAttributes: "linkHref" }),
                e.conversion
                  .for("dataDowncast")
                  .attributeToElement({ model: "linkHref", view: Wd }),
                e.conversion
                  .for("editingDowncast")
                  .attributeToElement({
                    model: "linkHref",
                    view: (e, t) => Wd(qd(e), t),
                  }),
                e.conversion
                  .for("upcast")
                  .elementToAttribute({
                    view: { name: "a", attributes: { href: !0 } },
                    model: {
                      key: "linkHref",
                      value: (e) => e.getAttribute("href"),
                    },
                  }),
                e.commands.add("link", new Md(e)),
                e.commands.add("unlink", new Ed(e));
              const n = (function (e, t) {
                const n = {
                  "Open in a new tab": e("ax"),
                  Downloadable: e("ay"),
                };
                return (
                  t.forEach(
                    (e) => (e.label && n[e.label] && (e.label = n[e.label]), e)
                  ),
                  t
                );
              })(
                e.t,
                (function (e) {
                  const t = [];
                  if (e)
                    for (const [n, r] of Object.entries(e)) {
                      const e = Object.assign({}, r, { id: "link" + Bd(n) });
                      t.push(e);
                    }
                  return t;
                })(e.config.get("link.decorators"))
              );
              this._enableAutomaticDecorators(n.filter((e) => e.mode === nh)),
                this._enableManualDecorators(
                  n.filter((e) => "manual" === e.mode)
                ),
                (function ({
                  view: e,
                  model: t,
                  emitter: n,
                  attribute: r,
                  locale: o,
                }) {
                  const a = new Kd(t, n, r),
                    i = t.document.selection;
                  n.listenTo(
                    e.document,
                    "keydown",
                    (e, t) => {
                      if (!i.isCollapsed) return;
                      if (t.shiftKey || t.altKey || t.ctrlKey) return;
                      const n = t.keyCode == Yn.arrowright,
                        r = t.keyCode == Yn.arrowleft;
                      if (!n && !r) return;
                      const s = i.getFirstPosition(),
                        l = o.contentLanguageDirection;
                      let c;
                      (c =
                        ("ltr" === l && n) || ("rtl" === l && r)
                          ? a.handleForwardMovement(s, t)
                          : a.handleBackwardMovement(s, t)) && e.stop();
                    },
                    { priority: yt.get("high") + 1 }
                  );
                })({
                  view: e.editing.view,
                  model: e.model,
                  emitter: this,
                  attribute: "linkHref",
                  locale: t,
                }),
                this._setupLinkHighlight();
            }
            _enableAutomaticDecorators(e) {
              const t = this.editor,
                n = new Gd();
              t.config.get("link.addTargetToExternalLinks") &&
                n.add({
                  id: "linkIsExternal",
                  mode: nh,
                  callback: (e) => rh.test(e),
                  attributes: { target: "_blank", rel: "noopener noreferrer" },
                }),
                n.add(e),
                n.length && t.conversion.for("downcast").add(n.getDispatcher());
            }
            _enableManualDecorators(e) {
              if (!e.length) return;
              const t = this.editor,
                n = t.commands.get("link").manualDecorators;
              e.forEach((e) => {
                t.model.schema.extend("$text", { allowAttributes: e.id }),
                  n.add(new Jd(e)),
                  t.conversion.for("downcast").attributeToElement({
                    model: e.id,
                    view: (t, r) => {
                      if (t) {
                        const t = n.get(e.id).attributes,
                          o = r.createAttributeElement("a", t, { priority: 5 });
                        return r.setCustomProperty("link", !0, o), o;
                      }
                    },
                  }),
                  t.conversion
                    .for("upcast")
                    .elementToAttribute({
                      view: { name: "a", attributes: n.get(e.id).attributes },
                      model: { key: e.id },
                    });
              });
            }
            _setupLinkHighlight() {
              const e = this.editor,
                t = e.editing.view,
                n = new Set();
              t.document.registerPostFixer((t) => {
                const r = e.model.document.selection;
                let o = !1;
                if (r.hasAttribute("linkHref")) {
                  const a = kd(
                      r.getFirstPosition(),
                      r.getAttribute("linkHref"),
                      e.model
                    ),
                    i = e.editing.mapper.toViewRange(a);
                  for (const e of i.getItems())
                    e.is("a") &&
                      !e.hasClass(th) &&
                      (t.addClass(th, e), n.add(e), (o = !0));
                }
                return o;
              }),
                e.conversion.for("editingDowncast").add((e) => {
                  function r() {
                    t.change((e) => {
                      for (const t of n.values())
                        e.removeClass(th, t), n.delete(t);
                    });
                  }
                  e.on("insert", r, { priority: "highest" }),
                    e.on("remove", r, { priority: "highest" }),
                    e.on("attribute", r, { priority: "highest" }),
                    e.on("selection", r, { priority: "highest" });
                });
            }
          }
          class ah extends Qr {
            constructor(e) {
              super(e), (this.domEventType = "click");
            }
            onDomEvent(e) {
              this.fire(e.type, e);
            }
          }
          n(75);
          class ih extends ys {
            constructor(e, t = []) {
              super(e);
              const n = e.t;
              (this.focusTracker = new Gi()),
                (this.keystrokes = new ji()),
                (this.urlInputView = this._createUrlInput()),
                (this.saveButtonView = this._createButton(
                  n("bd"),
                  Xc,
                  "ck-button-save"
                )),
                (this.saveButtonView.type = "submit"),
                (this.cancelButtonView = this._createButton(
                  n("be"),
                  $c,
                  "ck-button-cancel",
                  "cancel"
                )),
                (this._manualDecoratorSwitches = this._createManualDecoratorSwitches(
                  t
                )),
                (this.children = this._createFormChildren(t)),
                (this._focusables = new ts()),
                (this._focusCycler = new Ls({
                  focusables: this._focusables,
                  focusTracker: this.focusTracker,
                  keystrokeHandler: this.keystrokes,
                  actions: { focusPrevious: "shift + tab", focusNext: "tab" },
                }));
              const r = ["ck", "ck-link-form"];
              t.length && r.push("ck-link-form_layout-vertical"),
                this.setTemplate({
                  tag: "form",
                  attributes: { class: r, tabindex: "-1" },
                  children: this.children,
                });
            }
            getDecoratorSwitchesState() {
              return Array.from(this._manualDecoratorSwitches).reduce(
                (e, t) => ((e[t.name] = t.isOn), e),
                {}
              );
            }
            render() {
              super.render(),
                Qc({ view: this }),
                [
                  this.urlInputView,
                  ...this._manualDecoratorSwitches,
                  this.saveButtonView,
                  this.cancelButtonView,
                ].forEach((e) => {
                  this._focusables.add(e), this.focusTracker.add(e.element);
                }),
                this.keystrokes.listenTo(this.element);
            }
            focus() {
              this._focusCycler.focusFirst();
            }
            _createUrlInput() {
              const e = this.locale.t,
                t = new Jc(this.locale, Kc);
              return (
                (t.label = e("bf")),
                (t.inputView.placeholder = "https://example.com"),
                t
              );
            }
            _createButton(e, t, n, r) {
              const o = new Ll(this.locale);
              return (
                o.set({ label: e, icon: t, tooltip: !0 }),
                o.extendTemplate({ attributes: { class: n } }),
                r && o.delegate("execute").to(this, r),
                o
              );
            }
            _createManualDecoratorSwitches(e) {
              const t = this.createCollection();
              for (const n of e) {
                const e = new Qu(this.locale);
                e.set({ name: n.id, label: n.label, withText: !0 }),
                  e.bind("isOn").to(n, "value"),
                  e.on("execute", () => {
                    n.set("value", !e.isOn);
                  }),
                  t.add(e);
              }
              return t;
            }
            _createFormChildren(e) {
              const t = this.createCollection();
              if ((t.add(this.urlInputView), e.length)) {
                const e = new ys();
                e.setTemplate({
                  tag: "ul",
                  children: this._manualDecoratorSwitches.map((e) => ({
                    tag: "li",
                    children: [e],
                    attributes: { class: ["ck", "ck-list__item"] },
                  })),
                  attributes: { class: ["ck", "ck-reset", "ck-list"] },
                }),
                  t.add(e);
              }
              return (
                t.add(this.saveButtonView), t.add(this.cancelButtonView), t
              );
            }
          }
          n(77);
          class sh extends ys {
            constructor(e) {
              super(e);
              const t = e.t;
              (this.focusTracker = new Gi()),
                (this.keystrokes = new ji()),
                (this.previewButtonView = this._createPreviewButton()),
                (this.unlinkButtonView = this._createButton(
                  t("az"),
                  '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',
                  "unlink"
                )),
                (this.editButtonView = this._createButton(
                  t("ba"),
                  '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>',
                  "edit"
                )),
                this.set("href"),
                (this._focusables = new ts()),
                (this._focusCycler = new Ls({
                  focusables: this._focusables,
                  focusTracker: this.focusTracker,
                  keystrokeHandler: this.keystrokes,
                  actions: { focusPrevious: "shift + tab", focusNext: "tab" },
                })),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: ["ck", "ck-link-actions"],
                    tabindex: "-1",
                  },
                  children: [
                    this.previewButtonView,
                    this.editButtonView,
                    this.unlinkButtonView,
                  ],
                });
            }
            render() {
              super.render(),
                [
                  this.previewButtonView,
                  this.editButtonView,
                  this.unlinkButtonView,
                ].forEach((e) => {
                  this._focusables.add(e), this.focusTracker.add(e.element);
                }),
                this.keystrokes.listenTo(this.element);
            }
            focus() {
              this._focusCycler.focusFirst();
            }
            _createButton(e, t, n) {
              const r = new Ll(this.locale);
              return (
                r.set({ label: e, icon: t, tooltip: !0 }),
                r.delegate("execute").to(this, n),
                r
              );
            }
            _createPreviewButton() {
              const e = new Ll(this.locale),
                t = this.bindTemplate,
                n = this.t;
              return (
                e.set({ withText: !0, tooltip: n("bb") }),
                e.extendTemplate({
                  attributes: {
                    class: ["ck", "ck-link-actions__preview"],
                    href: t.to("href", (e) => e && qd(e)),
                    target: "_blank",
                  },
                }),
                e.bind("label").to(this, "href", (e) => e || n("bc")),
                e.bind("isEnabled").to(this, "href", (e) => !!e),
                (e.template.tag = "a"),
                (e.template.eventListeners = {}),
                e
              );
            }
          }
          const lh = "Ctrl+K";
          class ch extends Is {
            static get requires() {
              return [uu];
            }
            static get pluginName() {
              return "LinkUI";
            }
            init() {
              const e = this.editor;
              e.editing.view.addObserver(ah),
                (this.actionsView = this._createActionsView()),
                (this.formView = this._createFormView()),
                (this._balloon = e.plugins.get(uu)),
                this._createToolbarLinkButton(),
                this._enableUserBalloonInteractions();
            }
            destroy() {
              super.destroy(), this.formView.destroy();
            }
            _createActionsView() {
              const e = this.editor,
                t = new sh(e.locale),
                n = e.commands.get("link"),
                r = e.commands.get("unlink");
              return (
                t.bind("href").to(n, "value"),
                t.editButtonView.bind("isEnabled").to(n),
                t.unlinkButtonView.bind("isEnabled").to(r),
                this.listenTo(t, "edit", () => {
                  this._addFormView();
                }),
                this.listenTo(t, "unlink", () => {
                  e.execute("unlink"), this._hideUI();
                }),
                t.keystrokes.set("Esc", (e, t) => {
                  this._hideUI(), t();
                }),
                t.keystrokes.set(lh, (e, t) => {
                  this._addFormView(), t();
                }),
                t
              );
            }
            _createFormView() {
              const e = this.editor,
                t = e.commands.get("link"),
                n = new ih(e.locale, t.manualDecorators);
              return (
                n.urlInputView.bind("value").to(t, "value"),
                n.urlInputView.bind("isReadOnly").to(t, "isEnabled", (e) => !e),
                n.saveButtonView.bind("isEnabled").to(t),
                this.listenTo(n, "submit", () => {
                  e.execute(
                    "link",
                    n.urlInputView.inputView.element.value,
                    n.getDecoratorSwitchesState()
                  ),
                    this._closeFormView();
                }),
                this.listenTo(n, "cancel", () => {
                  this._closeFormView();
                }),
                n.keystrokes.set("Esc", (e, t) => {
                  this._closeFormView(), t();
                }),
                n
              );
            }
            _createToolbarLinkButton() {
              const e = this.editor,
                t = e.commands.get("link"),
                n = e.t;
              e.keystrokes.set(lh, (e, n) => {
                n(), t.isEnabled && this._showUI(!0);
              }),
                e.ui.componentFactory.add("link", (e) => {
                  const r = new Ll(e);
                  return (
                    (r.isEnabled = !0),
                    (r.label = n("aq")),
                    (r.icon =
                      '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>'),
                    (r.keystroke = lh),
                    (r.tooltip = !0),
                    (r.isToggleable = !0),
                    r.bind("isEnabled").to(t, "isEnabled"),
                    r.bind("isOn").to(t, "value", (e) => !!e),
                    this.listenTo(r, "execute", () => this._showUI(!0)),
                    r
                  );
                });
            }
            _enableUserBalloonInteractions() {
              const e = this.editor.editing.view.document;
              this.listenTo(e, "click", () => {
                this._getSelectedLinkElement() && this._showUI();
              }),
                this.editor.keystrokes.set(
                  "Tab",
                  (e, t) => {
                    this._areActionsVisible &&
                      !this.actionsView.focusTracker.isFocused &&
                      (this.actionsView.focus(), t());
                  },
                  { priority: "high" }
                ),
                this.editor.keystrokes.set("Esc", (e, t) => {
                  this._isUIVisible && (this._hideUI(), t());
                }),
                Gc({
                  emitter: this.formView,
                  activator: () => this._isUIInPanel,
                  contextElements: [this._balloon.view.element],
                  callback: () => this._hideUI(),
                });
            }
            _addActionsView() {
              this._areActionsInPanel ||
                this._balloon.add({
                  view: this.actionsView,
                  position: this._getBalloonPositionData(),
                });
            }
            _addFormView() {
              if (this._isFormInPanel) return;
              const e = this.editor.commands.get("link");
              this._balloon.add({
                view: this.formView,
                position: this._getBalloonPositionData(),
              }),
                this._balloon.visibleView === this.formView &&
                  this.formView.urlInputView.select(),
                (this.formView.urlInputView.inputView.element.value =
                  e.value || "");
            }
            _closeFormView() {
              const e = this.editor.commands.get("link");
              e.restoreManualDecoratorStates(),
                void 0 !== e.value ? this._removeFormView() : this._hideUI();
            }
            _removeFormView() {
              this._isFormInPanel &&
                (this.formView.saveButtonView.focus(),
                this._balloon.remove(this.formView),
                this.editor.editing.view.focus());
            }
            _showUI(e = !1) {
              this.editor.commands.get("link").isEnabled &&
                (this._getSelectedLinkElement()
                  ? (this._areActionsVisible
                      ? this._addFormView()
                      : this._addActionsView(),
                    e && this._balloon.showStack("main"))
                  : (this._addActionsView(),
                    e && this._balloon.showStack("main"),
                    this._addFormView()),
                this._startUpdatingUI());
            }
            _hideUI() {
              if (!this._isUIInPanel) return;
              const e = this.editor;
              this.stopListening(e.ui, "update"),
                this.stopListening(this._balloon, "change:visibleView"),
                e.editing.view.focus(),
                this._removeFormView(),
                this._balloon.remove(this.actionsView);
            }
            _startUpdatingUI() {
              const e = this.editor,
                t = e.editing.view.document;
              let n = this._getSelectedLinkElement(),
                r = a();
              const o = () => {
                const e = this._getSelectedLinkElement(),
                  t = a();
                (n && !e) || (!n && t !== r)
                  ? this._hideUI()
                  : this._isUIVisible &&
                    this._balloon.updatePosition(
                      this._getBalloonPositionData()
                    ),
                  (n = e),
                  (r = t);
              };
              function a() {
                return t.selection.focus
                  .getAncestors()
                  .reverse()
                  .find((e) => e.is("element"));
              }
              this.listenTo(e.ui, "update", o),
                this.listenTo(this._balloon, "change:visibleView", o);
            }
            get _isFormInPanel() {
              return this._balloon.hasView(this.formView);
            }
            get _areActionsInPanel() {
              return this._balloon.hasView(this.actionsView);
            }
            get _areActionsVisible() {
              return this._balloon.visibleView === this.actionsView;
            }
            get _isUIInPanel() {
              return this._isFormInPanel || this._areActionsInPanel;
            }
            get _isUIVisible() {
              return (
                this._balloon.visibleView == this.formView ||
                this._areActionsVisible
              );
            }
            _getBalloonPositionData() {
              const e = this.editor.editing.view,
                t = e.document,
                n = this._getSelectedLinkElement();
              return {
                target: n
                  ? e.domConverter.mapViewToDom(n)
                  : e.domConverter.viewRangeToDom(t.selection.getFirstRange()),
              };
            }
            _getSelectedLinkElement() {
              const e = this.editor.editing.view,
                t = e.document.selection;
              if (t.isCollapsed) return uh(t.getFirstPosition());
              {
                const n = t.getFirstRange().getTrimmed(),
                  r = uh(n.start),
                  o = uh(n.end);
                return r && r == o && e.createRangeIn(r).getTrimmed().isEqual(n)
                  ? r
                  : null;
              }
            }
          }
          function uh(e) {
            return e.getAncestors().find((e) =>
              (function (e) {
                return (
                  e.is("attributeElement") && !!e.getCustomProperty("link")
                );
              })(e)
            );
          }
          class dh extends Hs {
            constructor(e, t) {
              super(e), (this.type = t);
            }
            refresh() {
              (this.value = this._getValue()),
                (this.isEnabled = this._checkEnabled());
            }
            execute() {
              const e = this.editor.model,
                t = e.document,
                n = Array.from(t.selection.getSelectedBlocks()).filter((t) =>
                  ph(t, e.schema)
                ),
                r = !0 === this.value;
              e.change((e) => {
                if (r) {
                  let t = n[n.length - 1].nextSibling,
                    r = Number.POSITIVE_INFINITY,
                    o = [];
                  for (
                    ;
                    t &&
                    "listItem" == t.name &&
                    0 !== t.getAttribute("listIndent");

                  ) {
                    const e = t.getAttribute("listIndent");
                    e < r && (r = e);
                    const n = e - r;
                    o.push({ element: t, listIndent: n }), (t = t.nextSibling);
                  }
                  o = o.reverse();
                  for (const t of o)
                    e.setAttribute("listIndent", t.listIndent, t.element);
                }
                if (!r) {
                  let e = Number.POSITIVE_INFINITY;
                  for (const t of n)
                    t.is("listItem") &&
                      t.getAttribute("listIndent") < e &&
                      (e = t.getAttribute("listIndent"));
                  hh(n, !0, (e = 0 === e ? 1 : e)), hh(n, !1, e);
                }
                for (const t of n.reverse())
                  r && "listItem" == t.name
                    ? e.rename(t, "paragraph")
                    : r || "listItem" == t.name
                    ? r ||
                      "listItem" != t.name ||
                      t.getAttribute("listType") == this.type ||
                      e.setAttribute("listType", this.type, t)
                    : (e.setAttributes(
                        { listType: this.type, listIndent: 0 },
                        t
                      ),
                      e.rename(t, "listItem"));
              });
            }
            _getValue() {
              const e = tc(
                this.editor.model.document.selection.getSelectedBlocks()
              );
              return (
                !!e &&
                e.is("listItem") &&
                e.getAttribute("listType") == this.type
              );
            }
            _checkEnabled() {
              if (this.value) return !0;
              const e = this.editor.model.document.selection,
                t = this.editor.model.schema,
                n = tc(e.getSelectedBlocks());
              return !!n && ph(n, t);
            }
          }
          function hh(e, t, n) {
            const r = t ? e[0] : e[e.length - 1];
            if (r.is("listItem")) {
              let o = r[t ? "previousSibling" : "nextSibling"],
                a = r.getAttribute("listIndent");
              for (
                ;
                o && o.is("listItem") && o.getAttribute("listIndent") >= n;

              )
                a > o.getAttribute("listIndent") &&
                  (a = o.getAttribute("listIndent")),
                  o.getAttribute("listIndent") == a &&
                    e[t ? "unshift" : "push"](o),
                  (o = o[t ? "previousSibling" : "nextSibling"]);
            }
          }
          function ph(e, t) {
            return t.checkChild(e.parent, "listItem") && !t.isObject(e);
          }
          class fh extends Hs {
            constructor(e, t) {
              super(e), (this._indentBy = "forward" == t ? 1 : -1);
            }
            refresh() {
              this.isEnabled = this._checkEnabled();
            }
            execute() {
              const e = this.editor.model,
                t = e.document;
              let n = Array.from(t.selection.getSelectedBlocks());
              e.change((e) => {
                const t = n[n.length - 1];
                let r = t.nextSibling;
                for (
                  ;
                  r &&
                  "listItem" == r.name &&
                  r.getAttribute("listIndent") > t.getAttribute("listIndent");

                )
                  n.push(r), (r = r.nextSibling);
                this._indentBy < 0 && (n = n.reverse());
                for (const t of n) {
                  const n = t.getAttribute("listIndent") + this._indentBy;
                  n < 0
                    ? e.rename(t, "paragraph")
                    : e.setAttribute("listIndent", n, t);
                }
              });
            }
            _checkEnabled() {
              const e = tc(
                this.editor.model.document.selection.getSelectedBlocks()
              );
              if (!e || !e.is("listItem")) return !1;
              if (this._indentBy > 0) {
                const t = e.getAttribute("listIndent"),
                  n = e.getAttribute("listType");
                let r = e.previousSibling;
                for (
                  ;
                  r && r.is("listItem") && r.getAttribute("listIndent") >= t;

                ) {
                  if (r.getAttribute("listIndent") == t)
                    return r.getAttribute("listType") == n;
                  r = r.previousSibling;
                }
                return !1;
              }
              return !0;
            }
          }
          function mh(e, t, n, r) {
            const o = t.parent,
              a = n.mapper,
              i = n.writer;
            let s = a.toViewPosition(r.createPositionBefore(e));
            const l = vh(e.previousSibling, {
                sameIndent: !0,
                smallerIndent: !0,
                listIndent: e.getAttribute("listIndent"),
              }),
              c = e.previousSibling;
            if (
              l &&
              l.getAttribute("listIndent") == e.getAttribute("listIndent")
            ) {
              const e = a.toViewElement(l);
              s = i.breakContainer(i.createPositionAfter(e));
            } else
              s =
                c && "listItem" == c.name
                  ? a.toViewPosition(r.createPositionAt(c, "end"))
                  : a.toViewPosition(r.createPositionBefore(e));
            if (((s = _h(s)), i.insert(s, o), c && "listItem" == c.name)) {
              const e = a.toViewElement(c),
                n = i
                  .createRange(i.createPositionAt(e, 0), s)
                  .getWalker({ ignoreElementEnd: !0 });
              for (const e of n)
                if (e.item.is("li")) {
                  const r = i.breakContainer(i.createPositionBefore(e.item)),
                    o = e.item.parent,
                    a = i.createPositionAt(t, "end");
                  gh(i, a.nodeBefore, a.nodeAfter),
                    i.move(i.createRangeOn(o), a),
                    (n.position = r);
                }
            } else {
              const n = o.nextSibling;
              if (n && (n.is("ul") || n.is("ol"))) {
                let r = null;
                for (const t of n.getChildren()) {
                  const n = a.toModelElement(t);
                  if (
                    !(
                      n &&
                      n.getAttribute("listIndent") >
                        e.getAttribute("listIndent")
                    )
                  )
                    break;
                  r = t;
                }
                r &&
                  (i.breakContainer(i.createPositionAfter(r)),
                  i.move(
                    i.createRangeOn(r.parent),
                    i.createPositionAt(t, "end")
                  ));
              }
            }
            gh(i, o, o.nextSibling), gh(i, o.previousSibling, o);
          }
          function gh(e, t, n) {
            return !t ||
              !n ||
              ("ul" != t.name && "ol" != t.name) ||
              t.name != n.name ||
              t.getAttribute("class") !== n.getAttribute("class")
              ? null
              : e.mergeContainers(e.createPositionAfter(t));
          }
          function _h(e) {
            return e.getLastMatchingPosition((e) => e.item.is("uiElement"));
          }
          function vh(e, t) {
            const n = !!t.sameIndent,
              r = !!t.smallerIndent,
              o = t.listIndent;
            let a = e;
            for (; a && "listItem" == a.name; ) {
              const e = a.getAttribute("listIndent");
              if ((n && o == e) || (r && o > e)) return a;
              a = a.previousSibling;
            }
            return null;
          }
          function bh(e, t, n, r) {
            e.ui.componentFactory.add(t, (o) => {
              const a = e.commands.get(t),
                i = new Ll(o);
              return (
                i.set({ label: n, icon: r, tooltip: !0, isToggleable: !0 }),
                i.bind("isOn", "isEnabled").to(a, "value", "isEnabled"),
                i.on("execute", () => e.execute(t)),
                i
              );
            });
          }
          function yh() {
            const e =
              !this.isEmpty &&
              ("ul" == this.getChild(0).name || "ol" == this.getChild(0).name);
            return this.isEmpty || e ? 0 : Vt.call(this);
          }
          function wh(e) {
            return (t, n, r) => {
              const o = r.consumable;
              if (
                !o.test(n.item, "insert") ||
                !o.test(n.item, "attribute:listType") ||
                !o.test(n.item, "attribute:listIndent")
              )
                return;
              o.consume(n.item, "insert"),
                o.consume(n.item, "attribute:listType"),
                o.consume(n.item, "attribute:listIndent");
              const a = n.item;
              mh(
                a,
                (function (e, t) {
                  const n = t.mapper,
                    r = t.writer,
                    o = "numbered" == e.getAttribute("listType") ? "ol" : "ul",
                    a = (function (e) {
                      const t = e.createContainerElement("li");
                      return (t.getFillerOffset = yh), t;
                    })(r),
                    i = r.createContainerElement(o, null);
                  return (
                    r.insert(r.createPositionAt(i, 0), a),
                    n.bindElements(e, a),
                    a
                  );
                })(a, r),
                r,
                e
              );
            };
          }
          function kh(e, t, n) {
            if (!n.consumable.consume(t.item, "attribute:listType")) return;
            const r = n.mapper.toViewElement(t.item),
              o = n.writer;
            o.breakContainer(o.createPositionBefore(r)),
              o.breakContainer(o.createPositionAfter(r));
            const a = r.parent,
              i = "numbered" == t.attributeNewValue ? "ol" : "ul";
            o.rename(i, a);
          }
          function xh(e, t, n) {
            const r = n.mapper.toViewElement(t.item).parent,
              o = n.writer;
            gh(o, r, r.nextSibling), gh(o, r.previousSibling, r);
            for (const e of t.item.getChildren())
              n.consumable.consume(e, "insert");
          }
          function Mh(e, t, n) {
            if ("listItem" != t.item.name) {
              let e = n.mapper.toViewPosition(t.range.start);
              const r = n.writer,
                o = [];
              for (
                ;
                ("ul" == e.parent.name || "ol" == e.parent.name) &&
                "li" == (e = r.breakContainer(e)).parent.name;

              ) {
                const t = e,
                  n = r.createPositionAt(e.parent, "end");
                if (!t.isEqual(n)) {
                  const e = r.remove(r.createRange(t, n));
                  o.push(e);
                }
                e = r.createPositionAfter(e.parent);
              }
              if (o.length > 0) {
                for (let t = 0; t < o.length; t++) {
                  const n = e.nodeBefore;
                  if (((e = r.insert(e, o[t]).end), t > 0)) {
                    const t = gh(r, n, n.nextSibling);
                    t && t.parent == n && e.offset--;
                  }
                }
                gh(r, e.nodeBefore, e.nodeAfter);
              }
            }
          }
          function Eh(e, t, n) {
            const r = n.mapper.toViewPosition(t.position),
              o = r.nodeBefore,
              a = r.nodeAfter;
            gh(n.writer, o, a);
          }
          function Th(e, t, n) {
            if (n.consumable.consume(t.viewItem, { name: !0 })) {
              const e = n.writer,
                r = this.conversionApi.store,
                o = e.createElement("listItem");
              (r.indent = r.indent || 0),
                e.setAttribute("listIndent", r.indent, o);
              const a =
                t.viewItem.parent && "ol" == t.viewItem.parent.name
                  ? "numbered"
                  : "bulleted";
              e.setAttribute("listType", a, o), r.indent++;
              const i = n.splitToAllowedParent(o, t.modelCursor);
              if (!i) return;
              e.insert(o, i.position);
              const s = (function (e, t, n) {
                const { writer: r, schema: o } = n;
                let a = r.createPositionAfter(e);
                for (const i of t)
                  if ("ul" == i.name || "ol" == i.name)
                    a = n.convertItem(i, a).modelCursor;
                  else {
                    const t = n.convertItem(i, r.createPositionAt(e, "end")),
                      s = t.modelRange.start.nodeAfter;
                    s &&
                      s.is("element") &&
                      !o.checkChild(e, s.name) &&
                      ((e = t.modelCursor.parent.is("listItem")
                        ? t.modelCursor.parent
                        : Ph(t.modelCursor)),
                      (a = r.createPositionAfter(e)));
                  }
                return a;
              })(o, t.viewItem.getChildren(), n);
              r.indent--,
                (t.modelRange = e.createRange(t.modelCursor, s)),
                i.cursorParent
                  ? (t.modelCursor = e.createPositionAt(i.cursorParent, 0))
                  : (t.modelCursor = t.modelRange.end);
            }
          }
          function Sh(e, t, n) {
            if (n.consumable.test(t.viewItem, { name: !0 })) {
              const e = Array.from(t.viewItem.getChildren());
              for (const t of e) t.is("li") || t._remove();
            }
          }
          function Dh(e, t, n) {
            if (n.consumable.test(t.viewItem, { name: !0 })) {
              if (0 === t.viewItem.childCount) return;
              const e = [...t.viewItem.getChildren()];
              let n = !1,
                r = !0;
              for (const t of e)
                !n || t.is("ul") || t.is("ol") || t._remove(),
                  t.is("text")
                    ? (r && (t._data = t.data.replace(/^\s+/, "")),
                      (!t.nextSibling ||
                        t.nextSibling.is("ul") ||
                        t.nextSibling.is("ol")) &&
                        (t._data = t.data.replace(/\s+$/, "")))
                    : (t.is("ul") || t.is("ol")) && (n = !0),
                  (r = !1);
            }
          }
          function Lh(e) {
            return (t, n) => {
              if (n.isPhantom) return;
              const r = n.modelPosition.nodeBefore;
              if (r && r.is("listItem")) {
                const t = n.mapper.toViewElement(r),
                  o = t.getAncestors().find((e) => e.is("ul") || e.is("ol")),
                  a = e.createPositionAt(t, 0).getWalker();
                for (const e of a) {
                  if ("elementStart" == e.type && e.item.is("li")) {
                    n.viewPosition = e.previousPosition;
                    break;
                  }
                  if ("elementEnd" == e.type && e.item == o) {
                    n.viewPosition = e.nextPosition;
                    break;
                  }
                }
              }
            };
          }
          function Ch(e, [t, n]) {
            let r,
              o = t.is("documentFragment") ? t.getChild(0) : t;
            if (
              ((r = n ? this.createSelection(n) : this.document.selection),
              o && o.is("listItem"))
            ) {
              const e = r.getFirstPosition();
              let t = null;
              if (
                (e.parent.is("listItem")
                  ? (t = e.parent)
                  : e.nodeBefore &&
                    e.nodeBefore.is("listItem") &&
                    (t = e.nodeBefore),
                t)
              ) {
                const e = t.getAttribute("listIndent");
                if (e > 0)
                  for (; o && o.is("listItem"); )
                    o._setAttribute(
                      "listIndent",
                      o.getAttribute("listIndent") + e
                    ),
                      (o = o.nextSibling);
              }
            }
          }
          function Ph(e) {
            const t = new jo({ startPosition: e });
            let n;
            do {
              n = t.next();
            } while (!n.value.item.is("listItem"));
            return n.value.item;
          }
          function Oh(e, t, n, r, o, a) {
            const i = vh(t.nodeBefore, {
                sameIndent: !0,
                smallerIndent: !0,
                listIndent: e,
                foo: "b",
              }),
              s = o.mapper,
              l = o.writer,
              c = i ? i.getAttribute("listIndent") : null;
            let u;
            if (i)
              if (c == e) {
                const e = s.toViewElement(i).parent;
                u = l.createPositionAfter(e);
              } else {
                const e = a.createPositionAt(i, "end");
                u = s.toViewPosition(e);
              }
            else u = n;
            u = _h(u);
            for (const e of [...r.getChildren()])
              (e.is("ul") || e.is("ol")) &&
                ((u = l.move(l.createRangeOn(e), u).end),
                gh(l, e, e.nextSibling),
                gh(l, e.previousSibling, e));
          }
          class Nh extends Is {
            static get requires() {
              return [Ru];
            }
            init() {
              const e = this.editor;
              e.model.schema.register("listItem", {
                inheritAllFrom: "$block",
                allowAttributes: ["listType", "listIndent"],
              });
              const t = e.data,
                n = e.editing;
              e.model.document.registerPostFixer((t) =>
                (function (e, t) {
                  const n = e.document.differ.getChanges(),
                    r = new Map();
                  let o = !1;
                  for (const e of n)
                    if ("insert" == e.type && "listItem" == e.name)
                      a(e.position);
                    else if ("insert" == e.type && "listItem" != e.name) {
                      if ("$text" != e.name) {
                        const n = e.position.nodeAfter;
                        n.hasAttribute("listIndent") &&
                          (t.removeAttribute("listIndent", n), (o = !0)),
                          n.hasAttribute("listType") &&
                            (t.removeAttribute("listType", n), (o = !0));
                      }
                      a(e.position.getShiftedBy(e.length));
                    } else
                      "remove" == e.type && "listItem" == e.name
                        ? a(e.position)
                        : (("attribute" == e.type &&
                            "listIndent" == e.attributeKey) ||
                            ("attribute" == e.type &&
                              "listType" == e.attributeKey)) &&
                          a(e.range.start);
                  for (const e of r.values()) i(e), s(e);
                  return o;
                  function a(e) {
                    const t = e.nodeBefore;
                    if (t && t.is("listItem")) {
                      let n = t;
                      if (r.has(n)) return;
                      for (
                        ;
                        n.previousSibling && n.previousSibling.is("listItem");

                      )
                        if (((n = n.previousSibling), r.has(n))) return;
                      r.set(e.nodeBefore, n);
                    } else {
                      const t = e.nodeAfter;
                      t && t.is("listItem") && r.set(t, t);
                    }
                  }
                  function i(e) {
                    let n = 0,
                      r = null;
                    for (; e && e.is("listItem"); ) {
                      const a = e.getAttribute("listIndent");
                      if (a > n) {
                        let i;
                        null === r
                          ? ((r = a - n), (i = n))
                          : (r > a && (r = a), (i = a - r)),
                          t.setAttribute("listIndent", i, e),
                          (o = !0);
                      } else (r = null), (n = e.getAttribute("listIndent") + 1);
                      e = e.nextSibling;
                    }
                  }
                  function s(e) {
                    let n = [],
                      r = null;
                    for (; e && e.is("listItem"); ) {
                      const a = e.getAttribute("listIndent");
                      if (
                        (r &&
                          r.getAttribute("listIndent") > a &&
                          (n = n.slice(0, a + 1)),
                        0 != a)
                      )
                        if (n[a]) {
                          const r = n[a];
                          e.getAttribute("listType") != r &&
                            (t.setAttribute("listType", r, e), (o = !0));
                        } else n[a] = e.getAttribute("listType");
                      (r = e), (e = e.nextSibling);
                    }
                  }
                })(e.model, t)
              ),
                n.mapper.registerViewToModelLength("li", Ah),
                t.mapper.registerViewToModelLength("li", Ah),
                n.mapper.on("modelToViewPosition", Lh(n.view)),
                n.mapper.on(
                  "viewToModelPosition",
                  (function (e) {
                    return (t, n) => {
                      const r = n.viewPosition,
                        o = r.parent,
                        a = n.mapper;
                      if ("ul" == o.name || "ol" == o.name) {
                        if (r.isAtEnd) {
                          const t = a.toModelElement(r.nodeBefore),
                            o = a.getModelLength(r.nodeBefore);
                          n.modelPosition = e
                            .createPositionBefore(t)
                            .getShiftedBy(o);
                        } else {
                          const t = a.toModelElement(r.nodeAfter);
                          n.modelPosition = e.createPositionBefore(t);
                        }
                        t.stop();
                      } else if (
                        "li" == o.name &&
                        r.nodeBefore &&
                        ("ul" == r.nodeBefore.name || "ol" == r.nodeBefore.name)
                      ) {
                        const i = a.toModelElement(o);
                        let s = 1,
                          l = r.nodeBefore;
                        for (; l && (l.is("ul") || l.is("ol")); )
                          (s += a.getModelLength(l)), (l = l.previousSibling);
                        (n.modelPosition = e
                          .createPositionBefore(i)
                          .getShiftedBy(s)),
                          t.stop();
                      }
                    };
                  })(e.model)
                ),
                t.mapper.on("modelToViewPosition", Lh(n.view)),
                n.downcastDispatcher.on("insert", Mh, { priority: "high" }),
                n.downcastDispatcher.on("insert:listItem", wh(e.model)),
                t.downcastDispatcher.on("insert", Mh, { priority: "high" }),
                t.downcastDispatcher.on("insert:listItem", wh(e.model)),
                n.downcastDispatcher.on("attribute:listType:listItem", kh, {
                  priority: "high",
                }),
                n.downcastDispatcher.on("attribute:listType:listItem", xh, {
                  priority: "low",
                }),
                n.downcastDispatcher.on(
                  "attribute:listIndent:listItem",
                  (function (e) {
                    return (t, n, r) => {
                      if (!r.consumable.consume(n.item, "attribute:listIndent"))
                        return;
                      const o = r.mapper.toViewElement(n.item),
                        a = r.writer;
                      a.breakContainer(a.createPositionBefore(o)),
                        a.breakContainer(a.createPositionAfter(o));
                      const i = o.parent,
                        s = i.previousSibling,
                        l = a.createRangeOn(i);
                      a.remove(l),
                        s && s.nextSibling && gh(a, s, s.nextSibling),
                        Oh(
                          n.attributeOldValue + 1,
                          n.range.start,
                          l.start,
                          o,
                          r,
                          e
                        ),
                        mh(n.item, o, r, e);
                      for (const e of n.item.getChildren())
                        r.consumable.consume(e, "insert");
                    };
                  })(e.model)
                ),
                n.downcastDispatcher.on(
                  "remove:listItem",
                  (function (e) {
                    return (t, n, r) => {
                      const o = r.mapper
                          .toViewPosition(n.position)
                          .getLastMatchingPosition((e) => !e.item.is("li"))
                          .nodeAfter,
                        a = r.writer;
                      a.breakContainer(a.createPositionBefore(o)),
                        a.breakContainer(a.createPositionAfter(o));
                      const i = o.parent,
                        s = i.previousSibling,
                        l = a.createRangeOn(i),
                        c = a.remove(l);
                      s && s.nextSibling && gh(a, s, s.nextSibling),
                        Oh(
                          r.mapper
                            .toModelElement(o)
                            .getAttribute("listIndent") + 1,
                          n.position,
                          l.start,
                          o,
                          r,
                          e
                        );
                      for (const e of a.createRangeIn(c).getItems())
                        r.mapper.unbindViewElement(e);
                      t.stop();
                    };
                  })(e.model)
                ),
                n.downcastDispatcher.on("remove", Eh, { priority: "low" }),
                t.upcastDispatcher.on("element:ul", Sh, { priority: "high" }),
                t.upcastDispatcher.on("element:ol", Sh, { priority: "high" }),
                t.upcastDispatcher.on("element:li", Dh, { priority: "high" }),
                t.upcastDispatcher.on("element:li", Th),
                e.model.on("insertContent", Ch, { priority: "high" }),
                e.commands.add("numberedList", new dh(e, "numbered")),
                e.commands.add("bulletedList", new dh(e, "bulleted")),
                e.commands.add("indentList", new fh(e, "forward")),
                e.commands.add("outdentList", new fh(e, "backward"));
              const r = n.view.document;
              this.listenTo(r, "enter", (e, t) => {
                const n = this.editor.model.document,
                  r = n.selection.getLastPosition().parent;
                n.selection.isCollapsed &&
                  "listItem" == r.name &&
                  r.isEmpty &&
                  (this.editor.execute("outdentList"),
                  t.preventDefault(),
                  e.stop());
              }),
                this.listenTo(
                  r,
                  "delete",
                  (e, t) => {
                    if ("backward" !== t.direction) return;
                    const n = this.editor.model.document.selection;
                    if (!n.isCollapsed) return;
                    const r = n.getFirstPosition();
                    if (!r.isAtStart) return;
                    const o = r.parent;
                    "listItem" === o.name &&
                      ((o.previousSibling &&
                        "listItem" === o.previousSibling.name) ||
                        (this.editor.execute("outdentList"),
                        t.preventDefault(),
                        e.stop()));
                  },
                  { priority: "high" }
                );
              const o = (e) => (t, n) => {
                this.editor.commands.get(e).isEnabled &&
                  (this.editor.execute(e), n());
              };
              e.keystrokes.set("Tab", o("indentList")),
                e.keystrokes.set("Shift+Tab", o("outdentList"));
            }
            afterInit() {
              const e = this.editor.commands,
                t = e.get("indent"),
                n = e.get("outdent");
              t && t.registerChildCommand(e.get("indentList")),
                n && n.registerChildCommand(e.get("outdentList"));
            }
          }
          function Ah(e) {
            let t = 1;
            for (const n of e.getChildren())
              if ("ul" == n.name || "ol" == n.name)
                for (const e of n.getChildren()) t += Ah(e);
            return t;
          }
          class Ih extends Is {
            init() {
              const e = this.editor.t;
              bh(
                this.editor,
                "numberedList",
                e("q"),
                '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'
              ),
                bh(
                  this.editor,
                  "bulletedList",
                  e("r"),
                  '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>'
                );
            }
          }
          function Rh(e, t) {
            return (e) => {
              e.on("attribute:url:media", n);
            };
            function n(n, r, o) {
              if (!o.consumable.consume(r.item, n.name)) return;
              const a = r.attributeNewValue,
                i = o.writer,
                s = o.mapper.toViewElement(r.item);
              i.remove(i.createRangeIn(s));
              const l = e.getMediaViewElement(i, a, t);
              i.insert(i.createPositionAt(s, 0), l);
            }
          }
          function Yh(e, t, n, r) {
            const o = e.createContainerElement("figure", { class: "media" });
            return (
              (o.getFillerOffset = Hh),
              e.insert(
                e.createPositionAt(o, 0),
                t.getMediaViewElement(e, n, r)
              ),
              o
            );
          }
          function jh(e) {
            const t = e.getSelectedElement();
            return t && t.is("media") ? t : null;
          }
          function Fh(e, t, n) {
            e.change((r) => {
              const o = r.createElement("media", { url: t });
              e.insertContent(o, n), r.setSelection(o, "on");
            });
          }
          function Hh() {
            return null;
          }
          class zh extends Hs {
            refresh() {
              const e = this.editor.model,
                t = e.document.selection,
                n = e.schema,
                r = t.getFirstPosition(),
                o = jh(t);
              let a = r.parent;
              a != a.root && (a = a.parent),
                (this.value = o ? o.getAttribute("url") : null),
                (this.isEnabled = n.checkChild(a, "media"));
            }
            execute(e) {
              const t = this.editor.model,
                n = t.document.selection,
                r = jh(n);
              if (r)
                t.change((t) => {
                  t.setAttribute("url", e, r);
                });
              else {
                const r = Oc(n, t);
                Fh(t, e, r);
              }
            }
          }
          class Bh {
            constructor(e, t) {
              const n = t.providers,
                r = t.extraProviders || [],
                o = new Set(t.removeProviders),
                a = n.concat(r).filter((e) => {
                  const t = e.name;
                  return t
                    ? !o.has(t)
                    : (console.warn(
                        Object(_t.a)(
                          "media-embed-no-provider-name: The configured media provider has no name and cannot be used."
                        ),
                        { provider: e }
                      ),
                      !1);
                });
              (this.locale = e), (this.providerDefinitions = a);
            }
            hasMedia(e) {
              return !!this._getMedia(e);
            }
            getMediaViewElement(e, t, n) {
              return this._getMedia(t).getViewElement(e, n);
            }
            _getMedia(e) {
              if (!e) return new Uh(this.locale);
              e = e.trim();
              for (const t of this.providerDefinitions) {
                const n = t.html;
                let r = t.url;
                Array.isArray(r) || (r = [r]);
                for (const t of r) {
                  const r = this._getUrlMatches(e, t);
                  if (r) return new Uh(this.locale, e, r, n);
                }
              }
              return null;
            }
            _getUrlMatches(e, t) {
              let n = e.match(t);
              if (n) return n;
              let r = e.replace(/^https?:\/\//, "");
              return (n = r.match(t))
                ? n
                : (n = (r = r.replace(/^www\./, "")).match(t)) || null;
            }
          }
          class Uh {
            constructor(e, t, n, r) {
              (this.url = this._getValidUrl(t)),
                (this._t = e.t),
                (this._match = n),
                (this._previewRenderer = r);
            }
            getViewElement(e, t) {
              const n = {};
              if (
                t.renderForEditingView ||
                (t.renderMediaPreview && this.url && this._previewRenderer)
              ) {
                this.url && (n["data-oembed-url"] = this.url),
                  t.renderForEditingView && (n.class = "ck-media__wrapper");
                const r = this._getPreviewHtml(t);
                return e.createUIElement("div", n, function (e) {
                  const t = this.toDomElement(e);
                  return (t.innerHTML = r), t;
                });
              }
              return (
                this.url && (n.url = this.url),
                e.createEmptyElement("oembed", n)
              );
            }
            _getPreviewHtml(e) {
              return this._previewRenderer
                ? this._previewRenderer(this._match)
                : this.url && e.renderForEditingView
                ? this._getPlaceholderHtml()
                : "";
            }
            _getPlaceholderHtml() {
              const e = new Dl(),
                t = new Sl();
              return (
                (e.text = this._t("Open media in new tab")),
                (t.content =
                  '<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>'),
                (t.viewBox = "0 0 64 42"),
                new ns({
                  tag: "div",
                  attributes: {
                    class: "ck ck-reset_all ck-media__placeholder",
                  },
                  children: [
                    {
                      tag: "div",
                      attributes: { class: "ck-media__placeholder__icon" },
                      children: [t],
                    },
                    {
                      tag: "a",
                      attributes: {
                        class: "ck-media__placeholder__url",
                        target: "_blank",
                        rel: "noopener noreferrer",
                        href: this.url,
                      },
                      children: [
                        {
                          tag: "span",
                          attributes: {
                            class: "ck-media__placeholder__url__text",
                          },
                          children: [this.url],
                        },
                        e,
                      ],
                    },
                  ],
                }).render().outerHTML
              );
            }
            _getValidUrl(e) {
              return e ? (e.match(/^https?/) ? e : "https://" + e) : null;
            }
          }
          n(79);
          class Vh extends Is {
            static get pluginName() {
              return "MediaEmbedEditing";
            }
            constructor(e) {
              super(e),
                e.config.define("mediaEmbed", {
                  providers: [
                    {
                      name: "dailymotion",
                      url: /^dailymotion\.com\/video\/(\w+)/,
                      html: (e) =>
                        `<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`,
                    },
                    {
                      name: "spotify",
                      url: [
                        /^open\.spotify\.com\/(artist\/\w+)/,
                        /^open\.spotify\.com\/(album\/\w+)/,
                        /^open\.spotify\.com\/(track\/\w+)/,
                      ],
                      html: (e) =>
                        `<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`,
                    },
                    {
                      name: "youtube",
                      url: [
                        /^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,
                        /^(?:m\.)?youtube\.com\/v\/([\w-]+)/,
                        /^youtube\.com\/embed\/([\w-]+)/,
                        /^youtu\.be\/([\w-]+)/,
                      ],
                      html: (e) =>
                        `<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`,
                    },
                    {
                      name: "vimeo",
                      url: [
                        /^vimeo\.com\/(\d+)/,
                        /^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,
                        /^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,
                        /^vimeo\.com\/channels\/[^/]+\/(\d+)/,
                        /^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,
                        /^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,
                        /^player\.vimeo\.com\/video\/(\d+)/,
                      ],
                      html: (e) =>
                        `<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`,
                    },
                    { name: "instagram", url: /^instagram\.com\/p\/(\w+)/ },
                    { name: "twitter", url: /^twitter\.com/ },
                    { name: "googleMaps", url: /^google\.com\/maps/ },
                    { name: "flickr", url: /^flickr\.com/ },
                    { name: "facebook", url: /^facebook\.com/ },
                  ],
                }),
                (this.registry = new Bh(e.locale, e.config.get("mediaEmbed")));
            }
            init() {
              const e = this.editor,
                t = e.model.schema,
                n = e.t,
                r = e.conversion,
                o = e.config.get("mediaEmbed.previewsInData"),
                a = this.registry;
              e.commands.add("mediaEmbed", new zh(e)),
                t.register("media", {
                  isObject: !0,
                  isBlock: !0,
                  allowWhere: "$block",
                  allowAttributes: ["url"],
                }),
                r.for("dataDowncast").elementToElement({
                  model: "media",
                  view: (e, t) => {
                    const n = e.getAttribute("url");
                    return Yh(t, a, n, { renderMediaPreview: n && o });
                  },
                }),
                r.for("dataDowncast").add(Rh(a, { renderMediaPreview: o })),
                r.for("editingDowncast").elementToElement({
                  model: "media",
                  view: (e, t) => {
                    const r = e.getAttribute("url");
                    return (function (e, t, n) {
                      return (
                        t.setCustomProperty("media", !0, e),
                        Lc(e, t, { label: n })
                      );
                    })(Yh(t, a, r, { renderForEditingView: !0 }), t, n("am"));
                  },
                }),
                r
                  .for("editingDowncast")
                  .add(Rh(a, { renderForEditingView: !0 })),
                r
                  .for("upcast")
                  .elementToElement({
                    view: { name: "oembed", attributes: { url: !0 } },
                    model: (e, t) => {
                      const n = e.getAttribute("url");
                      if (a.hasMedia(n))
                        return t.createElement("media", { url: n });
                    },
                  })
                  .elementToElement({
                    view: {
                      name: "div",
                      attributes: { "data-oembed-url": !0 },
                    },
                    model: (e, t) => {
                      const n = e.getAttribute("data-oembed-url");
                      if (a.hasMedia(n))
                        return t.createElement("media", { url: n });
                    },
                  });
            }
          }
          const Wh = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/;
          class qh extends Is {
            static get requires() {
              return [Fs, Nl];
            }
            static get pluginName() {
              return "AutoMediaEmbed";
            }
            constructor(e) {
              super(e),
                (this._timeoutId = null),
                (this._positionToInsert = null);
            }
            init() {
              const e = this.editor,
                t = e.model.document;
              this.listenTo(e.plugins.get(Fs), "inputTransformation", () => {
                const e = t.selection.getFirstRange(),
                  n = Ei.fromPosition(e.start);
                n.stickiness = "toPrevious";
                const r = Ei.fromPosition(e.end);
                (r.stickiness = "toNext"),
                  t.once(
                    "change:data",
                    () => {
                      this._embedMediaBetweenPositions(n, r),
                        n.detach(),
                        r.detach();
                    },
                    { priority: "high" }
                  );
              }),
                e.commands.get("undo").on(
                  "execute",
                  () => {
                    this._timeoutId &&
                      (yr.window.clearTimeout(this._timeoutId),
                      this._positionToInsert.detach(),
                      (this._timeoutId = null),
                      (this._positionToInsert = null));
                  },
                  { priority: "high" }
                );
            }
            _embedMediaBetweenPositions(e, t) {
              const n = this.editor,
                r = n.plugins.get(Vh).registry,
                o = new Xo(e, t),
                a = o.getWalker({ ignoreElementEnd: !0 });
              let i = "";
              for (const e of a) e.item.is("textProxy") && (i += e.item.data);
              (i = i.trim()).match(Wh) &&
                r.hasMedia(i) &&
                n.commands.get("mediaEmbed").isEnabled &&
                ((this._positionToInsert = Ei.fromPosition(e)),
                (this._timeoutId = yr.window.setTimeout(() => {
                  n.model.change((e) => {
                    let t;
                    (this._timeoutId = null),
                      e.remove(o),
                      "$graveyard" !== this._positionToInsert.root.rootName &&
                        (t = this._positionToInsert),
                      Fh(n.model, i, t),
                      this._positionToInsert.detach(),
                      (this._positionToInsert = null);
                  });
                }, 100)));
            }
          }
          n(81);
          class Gh extends ys {
            constructor(e, t) {
              super(t);
              const n = t.t;
              (this.focusTracker = new Gi()),
                (this.keystrokes = new ji()),
                (this.urlInputView = this._createUrlInput()),
                (this.saveButtonView = this._createButton(
                  n("bd"),
                  Xc,
                  "ck-button-save"
                )),
                (this.saveButtonView.type = "submit"),
                (this.cancelButtonView = this._createButton(
                  n("be"),
                  $c,
                  "ck-button-cancel",
                  "cancel"
                )),
                (this._focusables = new ts()),
                (this._focusCycler = new Ls({
                  focusables: this._focusables,
                  focusTracker: this.focusTracker,
                  keystrokeHandler: this.keystrokes,
                  actions: { focusPrevious: "shift + tab", focusNext: "tab" },
                })),
                (this._validators = e),
                this.setTemplate({
                  tag: "form",
                  attributes: {
                    class: ["ck", "ck-media-form"],
                    tabindex: "-1",
                  },
                  children: [
                    this.urlInputView,
                    this.saveButtonView,
                    this.cancelButtonView,
                  ],
                });
            }
            render() {
              super.render(),
                Qc({ view: this }),
                [
                  this.urlInputView,
                  this.saveButtonView,
                  this.cancelButtonView,
                ].forEach((e) => {
                  this._focusables.add(e), this.focusTracker.add(e.element);
                }),
                this.keystrokes.listenTo(this.element);
              const e = (e) => e.stopPropagation();
              this.keystrokes.set("arrowright", e),
                this.keystrokes.set("arrowleft", e),
                this.keystrokes.set("arrowup", e),
                this.keystrokes.set("arrowdown", e),
                this.listenTo(
                  this.urlInputView.element,
                  "selectstart",
                  (e, t) => {
                    t.stopPropagation();
                  },
                  { priority: "high" }
                );
            }
            focus() {
              this._focusCycler.focusFirst();
            }
            get url() {
              return this.urlInputView.inputView.element.value.trim();
            }
            set url(e) {
              this.urlInputView.inputView.element.value = e.trim();
            }
            isValid() {
              this.resetFormStatus();
              for (const e of this._validators) {
                const t = e(this);
                if (t) return (this.urlInputView.errorText = t), !1;
              }
              return !0;
            }
            resetFormStatus() {
              (this.urlInputView.errorText = null),
                (this.urlInputView.infoText = this._urlInputViewInfoDefault);
            }
            _createUrlInput() {
              const e = this.locale.t,
                t = new Jc(this.locale, Kc),
                n = t.inputView;
              return (
                (this._urlInputViewInfoDefault = e("bg")),
                (this._urlInputViewInfoTip = e("bh")),
                (t.label = e("bi")),
                (t.infoText = this._urlInputViewInfoDefault),
                (n.placeholder = "https://example.com"),
                n.on("input", () => {
                  t.infoText = n.element.value
                    ? this._urlInputViewInfoTip
                    : this._urlInputViewInfoDefault;
                }),
                t
              );
            }
            _createButton(e, t, n, r) {
              const o = new Ll(this.locale);
              return (
                o.set({ label: e, icon: t, tooltip: !0 }),
                o.extendTemplate({ attributes: { class: n } }),
                r && o.delegate("execute").to(this, r),
                o
              );
            }
          }
          class Jh extends Is {
            static get requires() {
              return [Vh];
            }
            static get pluginName() {
              return "MediaEmbedUI";
            }
            init() {
              const e = this.editor,
                t = e.commands.get("mediaEmbed"),
                n = e.plugins.get(Vh).registry;
              (this.form = new Gh(
                (function (e, t) {
                  return [
                    (t) => {
                      if (!t.url.length) return e("ao");
                    },
                    (n) => {
                      if (!t.hasMedia(n.url)) return e("ap");
                    },
                  ];
                })(e.t, n),
                e.locale
              )),
                e.ui.componentFactory.add("mediaEmbed", (n) => {
                  const r = Xu(n);
                  return (
                    this._setUpDropdown(r, this.form, t, e),
                    this._setUpForm(this.form, r, t),
                    r
                  );
                });
            }
            _setUpDropdown(e, t, n) {
              const r = this.editor,
                o = r.t,
                a = e.buttonView;
              function i() {
                r.editing.view.focus(), (e.isOpen = !1);
              }
              e.bind("isEnabled").to(n),
                e.panelView.children.add(t),
                a.set({
                  label: o("an"),
                  icon:
                    '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18.68 2.53c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.08c0-.58-.01-.55.6-.55h17.38zM15.77 14.5v-10H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 6.677a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V6.676z"/></svg>',
                  tooltip: !0,
                }),
                a.on(
                  "open",
                  () => {
                    (t.url = n.value || ""), t.urlInputView.select(), t.focus();
                  },
                  { priority: "low" }
                ),
                e.on("submit", () => {
                  t.isValid() && (r.execute("mediaEmbed", t.url), i());
                }),
                e.on("change:isOpen", () => t.resetFormStatus()),
                e.on("cancel", () => i());
            }
            _setUpForm(e, t, n) {
              e.delegate("submit", "cancel").to(t),
                e.urlInputView.bind("value").to(n, "value"),
                e.urlInputView.bind("isReadOnly").to(n, "isEnabled", (e) => !e),
                e.saveButtonView.bind("isEnabled").to(n);
            }
          }
          function Kh(e) {
            const t = {},
              n = e.getStyle("mso-list");
            return (
              n &&
                ((t.id = parseInt(n.match(/(^|\s+)l(\d+)/i)[2])),
                (t.order = parseInt(n.match(/\s*lfo(\d+)/i)[1])),
                (t.indent = parseInt(n.match(/\s*level(\d+)/i)[1]))),
              t
            );
          }
          function Qh(e) {
            return e.is("ol") || e.is("ul");
          }
          n(83);
          const Xh = /id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;
          class $h {
            isActive(e) {
              return Xh.test(e);
            }
            execute(e) {
              const t = new Du();
              !(function (e, t) {
                for (const n of e.getChildren())
                  if (n.is("b") && "normal" === n.getStyle("font-weight")) {
                    const r = e.getChildIndex(n);
                    t.remove(n), t.insertChild(r, n.getChildren(), e);
                  }
              })(e.content, t),
                (function (e, t) {
                  for (const n of t.createRangeIn(e)) {
                    const e = n.item;
                    if (e.is("li")) {
                      const n = e.nextSibling;
                      n &&
                        Qh(n) &&
                        (t.remove(n), t.insertChild(e.childCount, n, e));
                    }
                    if (Qh(e)) {
                      let n = e.getChild(0);
                      for (; Qh(n); ) t.unwrapElement(n), (n = e.getChild(0));
                    }
                  }
                })(e.content, t),
                (function (e, t) {
                  for (const n of t.createRangeIn(e)) {
                    const e = n.item;
                    if (e.is("li")) {
                      const n = e.getChild(0);
                      n.is("p") && t.unwrapElement(n);
                    }
                  }
                })(e.content, t);
            }
          }
          function Zh(e) {
            return e.replace(
              /<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,
              (e, t) =>
                1 === t.length
                  ? " "
                  : Array(t.length + 1)
                      .join("  ")
                      .substr(0, t.length)
            );
          }
          function ep(e) {
            return btoa(
              e
                .match(/\w{2}/g)
                .map((e) => String.fromCharCode(parseInt(e, 16)))
                .join("")
            );
          }
          const tp = /<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,
            np = /xmlns:o="urn:schemas-microsoft-com/i;
          class rp {
            isActive(e) {
              return tp.test(e) || np.test(e);
            }
            execute(e) {
              const { body: t, stylesString: n } = (function (e) {
                const t = new DOMParser(),
                  n = (function (e) {
                    return Zh(Zh(e))
                      .replace(
                        /(<span style=['"]mso-spacerun:yes['"]>[\s]*?)[\r\n]+(\s*<\/span>)/g,
                        "$1$2"
                      )
                      .replace(
                        /<span style=['"]mso-spacerun:yes['"]><\/span>/g,
                        ""
                      )
                      .replace(/ <\//g, " </")
                      .replace(/ <o:p><\/o:p>/g, " <o:p></o:p>")
                      .replace(/>(\s*[\r\n]\s*)</g, "><");
                  })(
                    (function (e) {
                      const t = e.match(/<\/body>(.*?)(<\/html>|$)/);
                      return (
                        t &&
                          t[1] &&
                          (e =
                            e.slice(0, t.index) +
                            e.slice(t.index).replace(t[1], "")),
                        e
                      );
                    })((e = e.replace(/<!--\[if gte vml 1]>/g, "")))
                  ),
                  r = t.parseFromString(n, "text/html");
                !(function (e) {
                  e.querySelectorAll("span[style*=spacerun]").forEach((e) => {
                    const t = e.childNodes[0].data.length;
                    e.innerHTML = Array(t + 1)
                      .join("  ")
                      .substr(0, t);
                  });
                })(r);
                const o = r.body.innerHTML,
                  a = (function (e) {
                    const t = new xr({ blockFiller: nr }),
                      n = e.createDocumentFragment(),
                      r = e.body.childNodes;
                    for (; r.length > 0; ) n.appendChild(r[0]);
                    return t.domToView(n);
                  })(r),
                  i = (function (e) {
                    const t = [],
                      n = [],
                      r = Array.from(e.getElementsByTagName("style"));
                    for (const e of r)
                      e.sheet &&
                        e.sheet.cssRules &&
                        e.sheet.cssRules.length &&
                        (t.push(e.sheet), n.push(e.innerHTML));
                    return { styles: t, stylesString: n.join(" ") };
                  })(r);
                return {
                  body: a,
                  bodyString: o,
                  styles: i.styles,
                  stylesString: i.stylesString,
                };
              })(e.dataTransfer.getData("text/html"));
              (function (e, t) {
                if (!e.childCount) return;
                const n = new Du(),
                  r = (function (e, t) {
                    const n = t.createRangeIn(e),
                      r = new jt({
                        name: /^p|h\d+$/,
                        styles: { "mso-list": /.*/ },
                      }),
                      o = [];
                    for (const e of n)
                      if ("elementStart" === e.type && r.match(e.item)) {
                        const t = Kh(e.item);
                        o.push({
                          element: e.item,
                          id: t.id,
                          order: t.order,
                          indent: t.indent,
                        });
                      }
                    return o;
                  })(e, n);
                if (!r.length) return;
                let o = null;
                r.forEach((e, a) => {
                  if (
                    !o ||
                    (function (e, t) {
                      if (e.id !== t.id) return !0;
                      const n = t.element.previousSibling;
                      return !n || !Qh(n);
                    })(r[a - 1], e)
                  ) {
                    const r = (function (e, t) {
                      const n = /mso-level-number-format:([^;]*);/gi,
                        r = new RegExp(
                          `@list l${e.id}:level${e.indent}\\s*({[^}]*)`,
                          "gi"
                        ).exec(t);
                      let o = "decimal";
                      if (r && r[1]) {
                        const e = n.exec(r[1]);
                        e && e[1] && (o = e[1].trim());
                      }
                      return {
                        type: "bullet" !== o && "image" !== o ? "ol" : "ul",
                        style: o,
                      };
                    })(e, t);
                    o = (function (e, t, n) {
                      const r = new Ht(e.type),
                        o = t.parent.getChildIndex(t);
                      return n.insertChild(o, r, t.parent), r;
                    })(r, e.element, n);
                  }
                  const i = (function (e, t) {
                    return (
                      (function (e, t) {
                        const n = new jt({
                            name: "span",
                            styles: { "mso-list": "Ignore" },
                          }),
                          r = t.createRangeIn(e);
                        for (const e of r)
                          "elementStart" === e.type &&
                            n.match(e.item) &&
                            t.remove(e.item);
                      })(e, t),
                      t.rename("li", e)
                    );
                  })(e.element, n);
                  n.appendChild(i, o);
                });
              })(t, n),
                (function (e, t) {
                  if (!e.childCount) return;
                  const n = new Du();
                  !(function (e, t, n) {
                    const r = n.createRangeIn(t),
                      o = new jt({ name: "img" }),
                      a = [];
                    for (const t of r)
                      if (o.match(t.item)) {
                        const n = t.item,
                          r = n.getAttribute("v:shapes")
                            ? n.getAttribute("v:shapes").split(" ")
                            : [];
                        r.length && r.every((t) => e.indexOf(t) > -1)
                          ? a.push(n)
                          : n.getAttribute("src") || a.push(n);
                      }
                    for (const e of a) n.remove(e);
                  })(
                    (function (e, t) {
                      const n = t.createRangeIn(e),
                        r = new jt({ name: /v:(.+)/ }),
                        o = [];
                      for (const e of n) {
                        const t = e.item,
                          n =
                            (t.previousSibling && t.previousSibling.name) ||
                            null;
                        r.match(t) &&
                          t.getAttribute("o:gfxdata") &&
                          "v:shapetype" !== n &&
                          o.push(e.item.getAttribute("id"));
                      }
                      return o;
                    })(e, n),
                    e,
                    n
                  ),
                    (function (e, t) {
                      const n = t.createRangeIn(e),
                        r = new jt({ name: /v:(.+)/ }),
                        o = [];
                      for (const e of n) r.match(e.item) && o.push(e.item);
                      for (const e of o) t.remove(e);
                    })(e, n);
                  const r = (function (e, t) {
                    const n = t.createRangeIn(e),
                      r = new jt({ name: "img" }),
                      o = [];
                    for (const e of n)
                      r.match(e.item) &&
                        e.item.getAttribute("src").startsWith("file://") &&
                        o.push(e.item);
                    return o;
                  })(e, n);
                  r.length &&
                    (function (e, t, n) {
                      if (e.length === t.length)
                        for (let r = 0; r < e.length; r++) {
                          const o = `data:${t[r].type};base64,${ep(t[r].hex)}`;
                          n.setAttribute("src", o, e[r]);
                        }
                    })(
                      r,
                      (function (e) {
                        if (!e) return [];
                        const t = /{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,
                          n = new RegExp(
                            "(?:(" + t.source + "))([\\da-fA-F\\s]+)\\}",
                            "g"
                          ),
                          r = e.match(n),
                          o = [];
                        if (r)
                          for (const e of r) {
                            let n = !1;
                            e.includes("\\pngblip")
                              ? (n = "image/png")
                              : e.includes("\\jpegblip") && (n = "image/jpeg"),
                              n &&
                                o.push({
                                  hex: e
                                    .replace(t, "")
                                    .replace(/[^\da-fA-F]/g, ""),
                                  type: n,
                                });
                          }
                        return o;
                      })(t),
                      n
                    );
                })(t, e.dataTransfer.getData("text/rtf")),
                (e.content = t);
            }
          }
          function op(e, t) {
            let n = t.parent;
            for (; n; ) {
              if (n.name === e) return n;
              n = n.parent;
            }
          }
          function ap(e, t, n, r, o = 1) {
            t > o ? r.setAttribute(e, t, n) : r.removeAttribute(e, n);
          }
          function ip(e, t, n = {}) {
            const r = e.createElement("tableCell", n);
            e.insertElement("paragraph", r), e.insert(r, t);
          }
          function sp(e) {
            return (t) => {
              t.on("element:" + e, (e, t, n) => {
                const r = t.viewItem;
                if (!n.consumable.test(r, { name: !0 })) return;
                const o = n.writer.createElement("tableCell"),
                  a = n.splitToAllowedParent(o, t.modelCursor);
                if (!a) return;
                n.writer.insert(o, a.position),
                  n.consumable.consume(r, { name: !0 });
                const i = n.writer.createPositionAt(o, 0);
                n.convertChildren(r, i),
                  o.childCount || n.writer.insertElement("paragraph", i),
                  (t.modelRange = n.writer.createRange(
                    n.writer.createPositionBefore(o),
                    n.writer.createPositionAfter(o)
                  )),
                  (t.modelCursor = t.modelRange.end);
              });
            };
          }
          function lp(e) {
            let t = 0,
              n = 0;
            const r = Array.from(e.getChildren()).filter(
              (e) => "th" === e.name || "td" === e.name
            );
            for (; n < r.length && "th" === r[n].name; ) {
              const e = r[n];
              (t += parseInt(e.getAttribute("colspan") || 1)), n++;
            }
            return t;
          }
          class cp {
            constructor(e, t = {}) {
              (this.table = e),
                (this.startRow = t.startRow || 0),
                (this.endRow = "number" == typeof t.endRow ? t.endRow : void 0),
                (this.includeSpanned = !!t.includeSpanned),
                (this.column = "number" == typeof t.column ? t.column : void 0),
                (this._skipRows = new Set()),
                (this._row = 0),
                (this._column = 0),
                (this._cellIndex = 0),
                (this._spannedCells = new Map()),
                (this._nextCellAtColumn = -1);
            }
            [Symbol.iterator]() {
              return this;
            }
            next() {
              const e = this.table.getChild(this._row);
              if (!e || this._isOverEndRow()) return { done: !0 };
              let t, n, r;
              if (this._isSpanned(this._row, this._column))
                (t = this._getSpanned(this._row, this._column)),
                  (n =
                    !this.includeSpanned ||
                    this._shouldSkipRow() ||
                    this._shouldSkipColumn()),
                  (r = this._formatOutValue(t, this._column, !0));
              else {
                if (!(t = e.getChild(this._cellIndex)))
                  return (
                    this._row++,
                    (this._column = 0),
                    (this._cellIndex = 0),
                    (this._nextCellAtColumn = -1),
                    this.next()
                  );
                const o = parseInt(t.getAttribute("colspan") || 1),
                  a = parseInt(t.getAttribute("rowspan") || 1);
                (o > 1 || a > 1) &&
                  this._recordSpans(this._row, this._column, a, o, t),
                  (this._nextCellAtColumn = this._column + o),
                  (n = this._shouldSkipRow() || this._shouldSkipColumn()),
                  (r = this._formatOutValue(t, this._column, !1, a, o));
              }
              return (
                this._column++,
                this._column == this._nextCellAtColumn && this._cellIndex++,
                n ? this.next() : r
              );
            }
            skipRow(e) {
              this._skipRows.add(e);
            }
            _isOverEndRow() {
              return void 0 !== this.endRow && this._row > this.endRow;
            }
            _formatOutValue(e, t, n, r = 1, o = 1) {
              return {
                done: !1,
                value: {
                  cell: e,
                  row: this._row,
                  column: t,
                  isSpanned: n,
                  rowspan: r,
                  colspan: o,
                  cellIndex: this._cellIndex,
                },
              };
            }
            _shouldSkipRow() {
              const e = this._row < this.startRow,
                t = this._skipRows.has(this._row);
              return e || t;
            }
            _shouldSkipColumn() {
              return void 0 !== this.column && this.column != this._column;
            }
            _isSpanned(e, t) {
              return (
                !!this._spannedCells.has(e) && this._spannedCells.get(e).has(t)
              );
            }
            _getSpanned(e, t) {
              return this._spannedCells.get(e).get(t);
            }
            _recordSpans(e, t, n, r, o) {
              for (let n = t + 1; n <= t + r - 1; n++)
                this._markSpannedCell(e, n, o);
              for (let a = e + 1; a < e + n; a++)
                for (let e = t; e <= t + r - 1; e++)
                  this._markSpannedCell(a, e, o);
            }
            _markSpannedCell(e, t, n) {
              this._spannedCells.has(e) || this._spannedCells.set(e, new Map()),
                this._spannedCells.get(e).set(t, n);
            }
          }
          function up(e) {
            return !!e.getCustomProperty("table") && Dc(e);
          }
          function dp(e) {
            const t = e.getSelectedElement();
            return t && up(t) ? t : null;
          }
          function hp(e) {
            const t = op("table", e.getFirstPosition());
            return t && up(t.parent) ? t.parent : null;
          }
          function pp(e = {}) {
            return (t) =>
              t.on("insert:table", (t, n, r) => {
                const o = n.item;
                if (!r.consumable.consume(o, "insert")) return;
                r.consumable.consume(o, "attribute:headingRows:table"),
                  r.consumable.consume(o, "attribute:headingColumns:table");
                const a = e && e.asWidget,
                  i = r.writer.createContainerElement("figure", {
                    class: "table",
                  }),
                  s = r.writer.createContainerElement("table");
                let l;
                r.writer.insert(r.writer.createPositionAt(i, 0), s),
                  a &&
                    (l = (function (e, t) {
                      return (
                        t.setCustomProperty("table", !0, e),
                        Lc(e, t, { hasSelectionHandler: !0 })
                      );
                    })(i, r.writer));
                const c = new cp(o),
                  u = {
                    headingRows: o.getAttribute("headingRows") || 0,
                    headingColumns: o.getAttribute("headingColumns") || 0,
                  },
                  d = new Map();
                for (const t of c) {
                  const { row: n, cell: a } = t,
                    i = Mp(xp(n, u), s, r),
                    l = o.getChild(n),
                    c = d.get(n) || wp(l, n, i, r);
                  d.set(n, c),
                    r.consumable.consume(a, "insert"),
                    yp(t, u, r.writer.createPositionAt(c, "end"), r, e);
                }
                const h = r.mapper.toViewPosition(n.range.start);
                r.mapper.bindElements(o, a ? l : i),
                  r.writer.insert(h, a ? l : i);
              });
          }
          function fp(e = {}) {
            return (t) =>
              t.on("insert:tableRow", (t, n, r) => {
                const o = n.item;
                if (!r.consumable.consume(o, "insert")) return;
                const a = o.parent,
                  i = Dp(r.mapper.toViewElement(a)),
                  s = a.getChildIndex(o),
                  l = new cp(a, { startRow: s, endRow: s }),
                  c = {
                    headingRows: a.getAttribute("headingRows") || 0,
                    headingColumns: a.getAttribute("headingColumns") || 0,
                  },
                  u = new Map();
                for (const t of l) {
                  const n = Mp(xp(s, c), i, r),
                    a = u.get(s) || wp(o, s, n, r);
                  u.set(s, a),
                    r.consumable.consume(t.cell, "insert"),
                    yp(t, c, r.writer.createPositionAt(a, "end"), r, e);
                }
              });
          }
          function mp(e = {}) {
            return (t) =>
              t.on("insert:tableCell", (t, n, r) => {
                const o = n.item;
                if (!r.consumable.consume(o, "insert")) return;
                const a = o.parent,
                  i = a.parent,
                  s = i.getChildIndex(a),
                  l = new cp(i, { startRow: s, endRow: s }),
                  c = {
                    headingRows: i.getAttribute("headingRows") || 0,
                    headingColumns: i.getAttribute("headingColumns") || 0,
                  };
                for (const t of l)
                  if (t.cell === o) {
                    const n = r.mapper.toViewElement(a);
                    return void yp(
                      t,
                      c,
                      r.writer.createPositionAt(n, a.getChildIndex(o)),
                      r,
                      e
                    );
                  }
              });
          }
          function gp(e = {}) {
            const t = !!e.asWidget;
            return (e) =>
              e.on("attribute:headingRows:table", (e, n, r) => {
                const o = n.item;
                if (!r.consumable.consume(n.item, e.name)) return;
                const a = Dp(r.mapper.toViewElement(o)),
                  i = n.attributeOldValue,
                  s = n.attributeNewValue;
                if (s > i) {
                  const e = Array.from(o.getChildren()).filter(({ index: e }) =>
                    l(e, i - 1, s)
                  );
                  Sp(e, Mp("thead", a, r), r, "end");
                  for (const n of e)
                    for (const e of n.getChildren()) vp(e, "th", r, t);
                  Tp("tbody", a, r);
                } else {
                  Sp(
                    Array.from(o.getChildren())
                      .filter(({ index: e }) => l(e, s - 1, i))
                      .reverse(),
                    Mp("tbody", a, r),
                    r,
                    0
                  );
                  const e = new cp(o, {
                      startRow: s ? s - 1 : s,
                      endRow: i - 1,
                    }),
                    n = {
                      headingRows: o.getAttribute("headingRows") || 0,
                      headingColumns: o.getAttribute("headingColumns") || 0,
                    };
                  for (const o of e) bp(o, n, r, t);
                  Tp("thead", a, r);
                }
                function l(e, t, n) {
                  return e > t && e < n;
                }
              });
          }
          function _p(e = {}) {
            const t = !!e.asWidget;
            return (e) =>
              e.on("attribute:headingColumns:table", (e, n, r) => {
                const o = n.item;
                if (!r.consumable.consume(n.item, e.name)) return;
                const a = {
                    headingRows: o.getAttribute("headingRows") || 0,
                    headingColumns: o.getAttribute("headingColumns") || 0,
                  },
                  i = n.attributeOldValue,
                  s = n.attributeNewValue,
                  l = (i > s ? i : s) - 1;
                for (const e of new cp(o)) e.column > l || bp(e, a, r, t);
              });
          }
          function vp(e, t, n, r) {
            const o = n.writer,
              a = n.mapper.toViewElement(e);
            if (!a) return;
            let i;
            r
              ? ((i = Pc(o.createEditableElement(t, a.getAttributes()), o)),
                o.insert(o.createPositionAfter(a), i),
                o.move(o.createRangeIn(a), o.createPositionAt(i, 0)),
                o.remove(o.createRangeOn(a)))
              : (i = o.rename(t, a)),
              n.mapper.unbindViewElement(a),
              n.mapper.bindElements(e, i);
          }
          function bp(e, t, n, r) {
            const { cell: o } = e,
              a = kp(e, t),
              i = n.mapper.toViewElement(o);
            i && i.name !== a && vp(o, a, n, r);
          }
          function yp(e, t, n, r, o) {
            const a = o && o.asWidget,
              i = kp(e, t),
              s = a
                ? Pc(r.writer.createEditableElement(i), r.writer)
                : r.writer.createContainerElement(i),
              l = e.cell,
              c = l.getChild(0),
              u = 1 === l.childCount && "paragraph" === c.name;
            if (
              (r.writer.insert(n, s),
              u &&
                !(function (e) {
                  return !![...e.getAttributeKeys()].length;
                })(c))
            ) {
              const e = l.getChild(0),
                t = r.writer.createPositionAt(s, "end");
              if ((r.consumable.consume(e, "insert"), o.asWidget)) {
                const n = r.writer.createContainerElement("span");
                r.mapper.bindElements(e, n),
                  r.writer.insert(t, n),
                  r.mapper.bindElements(l, s);
              } else r.mapper.bindElements(l, s), r.mapper.bindElements(e, s);
            } else r.mapper.bindElements(l, s);
          }
          function wp(e, t, n, r) {
            r.consumable.consume(e, "insert");
            const o = r.writer.createContainerElement("tr");
            r.mapper.bindElements(e, o);
            const a = e.parent.getAttribute("headingRows") || 0,
              i = a > 0 && t >= a ? t - a : t,
              s = r.writer.createPositionAt(n, i);
            return r.writer.insert(s, o), o;
          }
          function kp(e, t) {
            const { row: n, column: r } = e,
              { headingColumns: o, headingRows: a } = t;
            return (a && a > n) || (o && o > r) ? "th" : "td";
          }
          function xp(e, t) {
            return e < t.headingRows ? "thead" : "tbody";
          }
          function Mp(e, t, n) {
            return (
              Ep(e, t) ||
              (function (e, t, n) {
                const r = n.writer.createContainerElement(e),
                  o = n.writer.createPositionAt(t, "tbody" == e ? "end" : 0);
                return n.writer.insert(o, r), r;
              })(e, t, n)
            );
          }
          function Ep(e, t) {
            for (const n of t.getChildren()) if (n.name == e) return n;
          }
          function Tp(e, t, n) {
            const r = Ep(e, t);
            r &&
              0 === r.childCount &&
              n.writer.remove(n.writer.createRangeOn(r));
          }
          function Sp(e, t, n, r) {
            for (const o of e) {
              const e = n.mapper.toViewElement(o);
              e &&
                n.writer.move(
                  n.writer.createRangeOn(e),
                  n.writer.createPositionAt(t, r)
                );
            }
          }
          function Dp(e) {
            for (const t of e.getChildren()) if ("table" === t.name) return t;
          }
          class Lp extends Hs {
            refresh() {
              const e = this.editor.model,
                t = e.document.selection,
                n = e.schema,
                r = (function (e) {
                  const t = e.parent;
                  return t === t.root ? t : t.parent;
                })(t.getFirstPosition());
              this.isEnabled = n.checkChild(r, "table");
            }
            execute(e = {}) {
              const t = this.editor.model,
                n = t.document.selection,
                r = this.editor.plugins.get("TableUtils"),
                o = parseInt(e.rows) || 2,
                a = parseInt(e.columns) || 2,
                i = Oc(n, t);
              t.change((e) => {
                const n = r.createTable(e, o, a);
                t.insertContent(n, i),
                  e.setSelection(
                    e.createPositionAt(n.getNodeByPath([0, 0, 0]), 0)
                  );
              });
            }
          }
          class Cp extends Hs {
            constructor(e, t = {}) {
              super(e), (this.order = t.order || "below");
            }
            refresh() {
              const e = op(
                "table",
                this.editor.model.document.selection.getFirstPosition()
              );
              this.isEnabled = !!e;
            }
            execute() {
              const e = this.editor,
                t = e.model.document.selection,
                n = e.plugins.get("TableUtils"),
                r = op("tableCell", t.getFirstPosition()).parent,
                o = r.parent,
                a = o.getChildIndex(r),
                i = "below" === this.order ? a + 1 : a;
              n.insertRows(o, { rows: 1, at: i });
            }
          }
          class Pp extends Hs {
            constructor(e, t = {}) {
              super(e), (this.order = t.order || "right");
            }
            refresh() {
              const e = op(
                "table",
                this.editor.model.document.selection.getFirstPosition()
              );
              this.isEnabled = !!e;
            }
            execute() {
              const e = this.editor,
                t = e.model.document.selection,
                n = e.plugins.get("TableUtils"),
                r = op("tableCell", t.getFirstPosition()),
                o = r.parent.parent,
                { column: a } = n.getCellLocation(r),
                i = "right" === this.order ? a + 1 : a;
              n.insertColumns(o, { columns: 1, at: i });
            }
          }
          class Op extends Hs {
            constructor(e, t = {}) {
              super(e), (this.direction = t.direction || "horizontally");
            }
            refresh() {
              const e = op(
                "tableCell",
                this.editor.model.document.selection.getFirstPosition()
              );
              this.isEnabled = !!e;
            }
            execute() {
              const e = op(
                  "tableCell",
                  this.editor.model.document.selection.getFirstPosition()
                ),
                t = "horizontally" === this.direction,
                n = this.editor.plugins.get("TableUtils");
              t ? n.splitCellHorizontally(e, 2) : n.splitCellVertically(e, 2);
            }
          }
          class Np extends Hs {
            constructor(e, t) {
              super(e),
                (this.direction = t.direction),
                (this.isHorizontal =
                  "right" == this.direction || "left" == this.direction);
            }
            refresh() {
              const e = this._getMergeableCell();
              (this.isEnabled = !!e), (this.value = e);
            }
            execute() {
              const e = this.editor.model,
                t = op("tableCell", e.document.selection.getFirstPosition()),
                n = this.value,
                r = this.direction;
              e.change((e) => {
                const o = "right" == r || "down" == r,
                  a = o ? t : n,
                  i = o ? n : t,
                  s = i.parent;
                !(function (e, t, n) {
                  Ap(e) ||
                    (Ap(t) && n.remove(n.createRangeIn(t)),
                    n.move(n.createRangeIn(e), n.createPositionAt(t, "end"))),
                    n.remove(e);
                })(i, a, e);
                const l = this.isHorizontal ? "colspan" : "rowspan",
                  c = parseInt(t.getAttribute(l) || 1),
                  u = parseInt(n.getAttribute(l) || 1);
                e.setAttribute(l, c + u, a),
                  e.setSelection(e.createRangeIn(a)),
                  s.childCount ||
                    (function (e, t) {
                      const n = e.parent,
                        r = n.getChildIndex(e);
                      for (const { cell: e, row: o, rowspan: a } of new cp(n, {
                        endRow: r,
                      }))
                        o + a - 1 >= r && ap("rowspan", a - 1, e, t);
                      t.remove(e);
                    })(s, e);
              });
            }
            _getMergeableCell() {
              const e = op(
                "tableCell",
                this.editor.model.document.selection.getFirstPosition()
              );
              if (!e) return;
              const t = this.editor.plugins.get("TableUtils"),
                n = this.isHorizontal
                  ? (function (e, t, n) {
                      const r =
                        "right" == t ? e.nextSibling : e.previousSibling;
                      if (!r) return;
                      const o = "right" == t ? e : r,
                        a = "right" == t ? r : e,
                        { column: i } = n.getCellLocation(o),
                        { column: s } = n.getCellLocation(a);
                      return i + parseInt(o.getAttribute("colspan") || 1) === s
                        ? r
                        : void 0;
                    })(e, this.direction, t)
                  : (function (e, t) {
                      const n = e.parent,
                        r = n.parent,
                        o = r.getChildIndex(n);
                      if (
                        ("down" == t && o === r.childCount - 1) ||
                        ("up" == t && 0 === o)
                      )
                        return;
                      const a = parseInt(e.getAttribute("rowspan") || 1),
                        i = r.getAttribute("headingRows") || 0;
                      if (
                        i &&
                        (("down" == t && o + a === i) || ("up" == t && o === i))
                      )
                        return;
                      const s = parseInt(e.getAttribute("rowspan") || 1),
                        l = "down" == t ? o + s : o,
                        c = [...new cp(r, { endRow: l })],
                        u = c.find((t) => t.cell === e).column,
                        d = c.find(
                          ({ row: e, rowspan: n, column: r }) =>
                            r === u && ("down" == t ? e === l : l === e + n)
                        );
                      return d && d.cell;
                    })(e, this.direction);
              if (!n) return;
              const r = this.isHorizontal ? "rowspan" : "colspan",
                o = parseInt(e.getAttribute(r) || 1);
              return parseInt(n.getAttribute(r) || 1) === o ? n : void 0;
            }
          }
          function Ap(e) {
            return (
              1 == e.childCount &&
              e.getChild(0).is("paragraph") &&
              e.getChild(0).isEmpty
            );
          }
          class Ip extends Hs {
            refresh() {
              const e = op(
                "tableCell",
                this.editor.model.document.selection.getFirstPosition()
              );
              this.isEnabled = !!e && e.parent.parent.childCount > 1;
            }
            execute() {
              const e = this.editor.model,
                t = op("tableCell", e.document.selection.getFirstPosition())
                  .parent,
                n = t.parent,
                r = n.getChildIndex(t),
                o = n.getAttribute("headingRows") || 0;
              e.change((e) => {
                o && r <= o && ap("headingRows", o - 1, n, e, 0);
                const a = [...new cp(n, { endRow: r })],
                  i = new Map();
                a
                  .filter(({ row: e, rowspan: t }) => e === r && t > 1)
                  .forEach(({ column: e, cell: t, rowspan: n }) =>
                    i.set(e, { cell: t, rowspanToSet: n - 1 })
                  ),
                  a
                    .filter(({ row: e, rowspan: t }) => e <= r - 1 && e + t > r)
                    .forEach(({ cell: t, rowspan: n }) =>
                      ap("rowspan", n - 1, t, e)
                    );
                const s = r + 1,
                  l = new cp(n, { includeSpanned: !0, startRow: s, endRow: s });
                let c;
                for (const { row: t, column: r, cell: o } of [...l])
                  if (i.has(r)) {
                    const { cell: o, rowspanToSet: a } = i.get(r),
                      s = c
                        ? e.createPositionAfter(c)
                        : e.createPositionAt(n.getChild(t), 0);
                    e.move(e.createRangeOn(o), s),
                      ap("rowspan", a, o, e),
                      (c = o);
                  } else c = o;
                e.remove(t);
              });
            }
          }
          class Rp extends Hs {
            refresh() {
              const e = this.editor,
                t = e.model.document.selection,
                n = e.plugins.get("TableUtils"),
                r = op("tableCell", t.getFirstPosition());
              this.isEnabled = !!r && n.getColumns(r.parent.parent) > 1;
            }
            execute() {
              const e = this.editor.model,
                t = op("tableCell", e.document.selection.getFirstPosition()),
                n = t.parent,
                r = n.parent,
                o = r.getAttribute("headingColumns") || 0,
                a = r.getChildIndex(n),
                i = [...new cp(r)],
                s = i.find((e) => e.cell === t).column;
              e.change((e) => {
                o && a <= o && e.setAttribute("headingColumns", o - 1, r);
                for (const { cell: t, column: n, colspan: r } of i)
                  n <= s && r > 1 && n + r > s
                    ? ap("colspan", r - 1, t, e)
                    : n === s && e.remove(t);
              });
            }
          }
          class Yp extends Hs {
            refresh() {
              const e = op(
                  "tableCell",
                  this.editor.model.document.selection.getFirstPosition()
                ),
                t = !!e;
              (this.isEnabled = t),
                (this.value = t && this._isInHeading(e, e.parent.parent));
            }
            execute(e = {}) {
              const t = this.editor.model,
                n = op("tableCell", t.document.selection.getFirstPosition())
                  .parent,
                r = n.parent,
                o = r.getAttribute("headingRows") || 0,
                a = n.index;
              if (e.forceValue === this.value) return;
              const i = this.value ? a : a + 1;
              t.change((e) => {
                if (i) {
                  const t = (function (e, t, n) {
                    const r = [],
                      o = new cp(e, { startRow: t > n ? n : 0, endRow: t - 1 });
                    for (const { row: e, rowspan: n, cell: a } of o)
                      n > 1 && e + n > t && r.push(a);
                    return r;
                  })(r, i, o);
                  for (const n of t) jp(n, i, e);
                }
                ap("headingRows", i, r, e, 0);
              });
            }
            _isInHeading(e, t) {
              const n = parseInt(t.getAttribute("headingRows") || 0);
              return !!n && e.parent.index < n;
            }
          }
          function jp(e, t, n) {
            const r = e.parent,
              o = r.parent,
              a = t - r.index,
              i = {},
              s = parseInt(e.getAttribute("rowspan")) - a;
            s > 1 && (i.rowspan = s);
            const l = parseInt(e.getAttribute("colspan") || 1);
            l > 1 && (i.colspan = l);
            const c = o.getChildIndex(r),
              u = c + a,
              d = [
                ...new cp(o, { startRow: c, endRow: u, includeSpanned: !0 }),
              ];
            let h;
            for (const { row: t, column: r, cell: a, cellIndex: s } of d)
              if (
                (a === e && void 0 === h && (h = r),
                void 0 !== h && h === r && t === u)
              ) {
                const e = o.getChild(t);
                ip(n, n.createPositionAt(e, s), i);
              }
            ap("rowspan", a, e, n);
          }
          class Fp extends Hs {
            refresh() {
              const e = op(
                  "tableCell",
                  this.editor.model.document.selection.getFirstPosition()
                ),
                t = !!e;
              (this.isEnabled = t),
                (this.value = t && this._isInHeading(e, e.parent.parent));
            }
            execute(e = {}) {
              const t = this.editor.model,
                n = t.document.selection,
                r = this.editor.plugins.get("TableUtils"),
                o = op("tableCell", n.getFirstPosition()),
                a = o.parent.parent,
                { column: i } = r.getCellLocation(o);
              if (e.forceValue === this.value) return;
              const s = this.value ? i : i + 1;
              t.change((e) => {
                ap("headingColumns", s, a, e, 0);
              });
            }
            _isInHeading(e, t) {
              const n = parseInt(t.getAttribute("headingColumns") || 0),
                r = this.editor.plugins.get("TableUtils"),
                { column: o } = r.getCellLocation(e);
              return !!n && o < n;
            }
          }
          class Hp extends Is {
            static get pluginName() {
              return "TableUtils";
            }
            getCellLocation(e) {
              const t = e.parent,
                n = t.parent,
                r = n.getChildIndex(t),
                o = new cp(n, { startRow: r, endRow: r });
              for (const { cell: t, row: n, column: r } of o)
                if (t === e) return { row: n, column: r };
            }
            createTable(e, t, n) {
              const r = e.createElement("table");
              return zp(e, r, 0, t, n), r;
            }
            insertRows(e, t = {}) {
              const n = this.editor.model,
                r = t.at || 0,
                o = t.rows || 1;
              n.change((t) => {
                const n = e.getAttribute("headingRows") || 0;
                if (
                  (n > r && t.setAttribute("headingRows", n + o, e),
                  0 === r || r === e.childCount)
                )
                  return void zp(t, e, r, o, this.getColumns(e));
                const a = new cp(e, { endRow: r });
                let i = 0;
                for (const { row: e, rowspan: n, colspan: s, cell: l } of a)
                  e < r && e + n > r && t.setAttribute("rowspan", n + o, l),
                    e === r && (i += s);
                zp(t, e, r, o, i);
              });
            }
            insertColumns(e, t = {}) {
              const n = this.editor.model,
                r = t.at || 0,
                o = t.columns || 1;
              n.change((t) => {
                const n = e.getAttribute("headingColumns");
                r < n && t.setAttribute("headingColumns", n + o, e);
                const a = this.getColumns(e);
                if (0 === r || a === r) {
                  for (const n of e.getChildren())
                    Bp(o, t, t.createPositionAt(n, r ? "end" : 0));
                  return;
                }
                const i = new cp(e, { column: r, includeSpanned: !0 });
                for (const { row: n, cell: a, cellIndex: s } of i) {
                  const l = parseInt(a.getAttribute("rowspan") || 1),
                    c = parseInt(a.getAttribute("colspan") || 1);
                  if (a.index !== r && c > 1) {
                    if (
                      (t.setAttribute("colspan", c + o, a), i.skipRow(n), l > 1)
                    )
                      for (let e = n + 1; e < n + l; e++) i.skipRow(e);
                  } else {
                    const r = t.createPositionAt(e.getChild(n), s);
                    Bp(o, t, r);
                  }
                }
              });
            }
            splitCellVertically(e, t = 2) {
              const n = this.editor.model,
                r = e.parent.parent,
                o = parseInt(e.getAttribute("rowspan") || 1),
                a = parseInt(e.getAttribute("colspan") || 1);
              n.change((n) => {
                if (a > 1) {
                  const { newCellsSpan: r, updatedSpan: i } = Up(a, t);
                  ap("colspan", i, e, n);
                  const s = {};
                  r > 1 && (s.colspan = r),
                    o > 1 && (s.rowspan = o),
                    Bp(a > t ? t - 1 : a - 1, n, n.createPositionAfter(e), s);
                }
                if (a < t) {
                  const i = t - a,
                    s = [...new cp(r)],
                    { column: l } = s.find(({ cell: t }) => t === e),
                    c = s.filter(
                      ({ cell: t, colspan: n, column: r }) =>
                        (t !== e && r === l) || (r < l && r + n > l)
                    );
                  for (const { cell: e, colspan: t } of c)
                    n.setAttribute("colspan", t + i, e);
                  const u = {};
                  o > 1 && (u.rowspan = o),
                    Bp(i, n, n.createPositionAfter(e), u);
                  const d = r.getAttribute("headingColumns") || 0;
                  d > l && ap("headingColumns", d + i, r, n);
                }
              });
            }
            splitCellHorizontally(e, t = 2) {
              const n = this.editor.model,
                r = e.parent,
                o = r.parent,
                a = o.getChildIndex(r),
                i = parseInt(e.getAttribute("rowspan") || 1),
                s = parseInt(e.getAttribute("colspan") || 1);
              n.change((n) => {
                if (i > 1) {
                  const r = [
                      ...new cp(o, {
                        startRow: a,
                        endRow: a + i - 1,
                        includeSpanned: !0,
                      }),
                    ],
                    { newCellsSpan: l, updatedSpan: c } = Up(i, t);
                  ap("rowspan", c, e, n);
                  const { column: u } = r.find(({ cell: t }) => t === e),
                    d = {};
                  l > 1 && (d.rowspan = l), s > 1 && (d.colspan = s);
                  for (const { column: e, row: t, cellIndex: i } of r)
                    t >= a + c &&
                      e === u &&
                      (t + a + c) % l == 0 &&
                      Bp(1, n, n.createPositionAt(o.getChild(t), i), d);
                }
                if (i < t) {
                  const r = t - i,
                    l = [...new cp(o, { startRow: 0, endRow: a })];
                  for (const { cell: t, rowspan: o, row: i } of l)
                    if (t !== e && i + o > a) {
                      const e = o + r;
                      n.setAttribute("rowspan", e, t);
                    }
                  const c = {};
                  s > 1 && (c.colspan = s), zp(n, o, a + 1, r, 1, c);
                  const u = o.getAttribute("headingRows") || 0;
                  u > a && ap("headingRows", u + r, o, n);
                }
              });
            }
            getColumns(e) {
              return [...e.getChild(0).getChildren()].reduce(
                (e, t) => e + parseInt(t.getAttribute("colspan") || 1),
                0
              );
            }
          }
          function zp(e, t, n, r, o, a = {}) {
            for (let i = 0; i < r; i++) {
              const r = e.createElement("tableRow");
              e.insert(r, t, n), Bp(o, e, e.createPositionAt(r, "end"), a);
            }
          }
          function Bp(e, t, n, r = {}) {
            for (let o = 0; o < e; o++) ip(t, n, r);
          }
          function Up(e, t) {
            if (e < t) return { newCellsSpan: 1, updatedSpan: 1 };
            const n = Math.floor(e / t);
            return { newCellsSpan: n, updatedSpan: e - n * t + n };
          }
          function Vp(e, t) {
            let n = !1;
            const r = (function (e) {
              const t = parseInt(e.getAttribute("headingRows") || 0),
                n = e.childCount,
                r = [];
              for (const { row: o, rowspan: a, cell: i } of new cp(e)) {
                if (a < 2) continue;
                const e = o < t ? t : n;
                if (o + a > e) {
                  const t = e - o;
                  r.push({ cell: i, rowspan: t });
                }
              }
              return r;
            })(e);
            if (r.length) {
              n = !0;
              for (const e of r) ap("rowspan", e.rowspan, e.cell, t, 1);
            }
            return n;
          }
          function Wp(e, t) {
            let n = !1;
            const r = (function (e) {
                const t = {};
                for (const { row: n } of new cp(e, { includeSpanned: !0 }))
                  t[n] || (t[n] = 0), (t[n] += 1);
                return t;
              })(e),
              o = r[0];
            if (!Object.values(r).every((e) => e === o)) {
              const o = Object.values(r).reduce((e, t) => (t > e ? t : e), 0);
              for (const [a, i] of Object.entries(r)) {
                const r = o - i;
                if (r) {
                  for (let n = 0; n < r; n++)
                    ip(t, t.createPositionAt(e.getChild(a), "end"));
                  n = !0;
                }
              }
            }
            return n;
          }
          function qp(e) {
            const t = "attribute" === e.type,
              n = e.attributeKey;
            return (
              t && ("headingRows" === n || "colspan" === n || "rowspan" === n)
            );
          }
          function Gp(e, t) {
            let n = !1;
            for (const r of e.getChildren()) n = Jp(r, t) || n;
            return n;
          }
          function Jp(e, t) {
            let n = !1;
            for (const r of e.getChildren()) n = Kp(r, t) || n;
            return n;
          }
          function Kp(e, t) {
            if (0 == e.childCount) return t.insertElement("paragraph", e), !0;
            const n = Array.from(e.getChildren()).filter((e) => e.is("text"));
            for (const e of n) t.wrap(t.createRangeOn(e), "paragraph");
            return !!n.length;
          }
          function Qp(e) {
            return (
              !(!e.position || !e.position.parent.is("tableCell")) &&
              (("insert" == e.type && "$text" == e.name) || "remove" == e.type)
            );
          }
          function Xp(e, t) {
            if (!Array.from(e.getChildren()).some((e) => e.is("paragraph")))
              return !1;
            if ("attribute" == t) {
              const t = Array.from(e.getChild(0).getAttributeKeys()).length;
              return 1 === e.childCount && t < 2;
            }
            return e.childCount <= ("insert" == t ? 2 : 1);
          }
          n(85);
          class $p extends Is {
            init() {
              const e = this.editor,
                t = e.model,
                n = t.schema,
                r = e.conversion;
              n.register("table", {
                allowWhere: "$block",
                allowAttributes: ["headingRows", "headingColumns"],
                isLimit: !0,
                isObject: !0,
                isBlock: !0,
              }),
                n.register("tableRow", { allowIn: "table", isLimit: !0 }),
                n.register("tableCell", {
                  allowIn: "tableRow",
                  allowAttributes: ["colspan", "rowspan"],
                  isLimit: !0,
                }),
                n.extend("$block", { allowIn: "tableCell" }),
                n.addChildCheck((e, t) => {
                  if (
                    "table" == t.name &&
                    Array.from(e.getNames()).includes("table")
                  )
                    return !1;
                }),
                r.for("upcast").add((e) => {
                  e.on("element:table", (e, t, n) => {
                    const r = t.viewItem;
                    if (!n.consumable.test(r, { name: !0 })) return;
                    const {
                        rows: o,
                        headingRows: a,
                        headingColumns: i,
                      } = (function (e) {
                        const t = { headingRows: 0, headingColumns: 0 },
                          n = [],
                          r = [];
                        let o;
                        for (const a of Array.from(e.getChildren()))
                          if (
                            "tbody" === a.name ||
                            "thead" === a.name ||
                            "tfoot" === a.name
                          ) {
                            "thead" !== a.name || o || (o = a);
                            const e = Array.from(a.getChildren()).filter((e) =>
                              e.is("element", "tr")
                            );
                            for (const a of e)
                              if ("thead" === a.parent.name && a.parent === o)
                                t.headingRows++, n.push(a);
                              else {
                                r.push(a);
                                const e = lp(a);
                                e > t.headingColumns && (t.headingColumns = e);
                              }
                          }
                        return (t.rows = [...n, ...r]), t;
                      })(r),
                      s = {};
                    i && (s.headingColumns = i), a && (s.headingRows = a);
                    const l = n.writer.createElement("table", s),
                      c = n.splitToAllowedParent(l, t.modelCursor);
                    if (c) {
                      if (
                        (n.writer.insert(l, c.position),
                        n.consumable.consume(r, { name: !0 }),
                        o.length)
                      )
                        o.forEach((e) =>
                          n.convertItem(e, n.writer.createPositionAt(l, "end"))
                        );
                      else {
                        const e = n.writer.createElement("tableRow");
                        n.writer.insert(e, n.writer.createPositionAt(l, "end")),
                          ip(n.writer, n.writer.createPositionAt(e, "end"));
                      }
                      (t.modelRange = n.writer.createRange(
                        n.writer.createPositionBefore(l),
                        n.writer.createPositionAfter(l)
                      )),
                        c.cursorParent
                          ? (t.modelCursor = n.writer.createPositionAt(
                              c.cursorParent,
                              0
                            ))
                          : (t.modelCursor = t.modelRange.end);
                    }
                  });
                }),
                r.for("editingDowncast").add(pp({ asWidget: !0 })),
                r.for("dataDowncast").add(pp()),
                r
                  .for("upcast")
                  .elementToElement({ model: "tableRow", view: "tr" }),
                r.for("editingDowncast").add(fp({ asWidget: !0 })),
                r.for("dataDowncast").add(fp()),
                r.for("downcast").add((e) =>
                  e.on(
                    "remove:tableRow",
                    (e, t, n) => {
                      e.stop();
                      const r = n.writer,
                        o = n.mapper,
                        a = o
                          .toViewPosition(t.position)
                          .getLastMatchingPosition((e) => !e.item.is("tr"))
                          .nodeAfter,
                        i = a.parent,
                        s = r.createRangeOn(a),
                        l = r.remove(s);
                      for (const e of r.createRangeIn(l).getItems())
                        o.unbindViewElement(e);
                      i.childCount || r.remove(r.createRangeOn(i));
                    },
                    { priority: "higher" }
                  )
                ),
                r.for("upcast").add(sp("td")),
                r.for("upcast").add(sp("th")),
                r.for("editingDowncast").add(mp({ asWidget: !0 })),
                r.for("dataDowncast").add(mp()),
                r.attributeToAttribute({ model: "colspan", view: "colspan" }),
                r.attributeToAttribute({ model: "rowspan", view: "rowspan" }),
                r.for("editingDowncast").add(_p({ asWidget: !0 })),
                r.for("dataDowncast").add(_p()),
                r.for("editingDowncast").add(gp({ asWidget: !0 })),
                r.for("dataDowncast").add(gp()),
                e.commands.add("insertTable", new Lp(e)),
                e.commands.add(
                  "insertTableRowAbove",
                  new Cp(e, { order: "above" })
                ),
                e.commands.add(
                  "insertTableRowBelow",
                  new Cp(e, { order: "below" })
                ),
                e.commands.add(
                  "insertTableColumnLeft",
                  new Pp(e, { order: "left" })
                ),
                e.commands.add(
                  "insertTableColumnRight",
                  new Pp(e, { order: "right" })
                ),
                e.commands.add("removeTableRow", new Ip(e)),
                e.commands.add("removeTableColumn", new Rp(e)),
                e.commands.add(
                  "splitTableCellVertically",
                  new Op(e, { direction: "vertically" })
                ),
                e.commands.add(
                  "splitTableCellHorizontally",
                  new Op(e, { direction: "horizontally" })
                ),
                e.commands.add(
                  "mergeTableCellRight",
                  new Np(e, { direction: "right" })
                ),
                e.commands.add(
                  "mergeTableCellLeft",
                  new Np(e, { direction: "left" })
                ),
                e.commands.add(
                  "mergeTableCellDown",
                  new Np(e, { direction: "down" })
                ),
                e.commands.add(
                  "mergeTableCellUp",
                  new Np(e, { direction: "up" })
                ),
                e.commands.add("setTableColumnHeader", new Fp(e)),
                e.commands.add("setTableRowHeader", new Yp(e)),
                (function (e) {
                  e.document.registerPostFixer((t) =>
                    (function (e, t) {
                      const n = t.document.differ.getChanges();
                      let r = !1;
                      const o = new Set();
                      for (const t of n) {
                        let n;
                        "table" == t.name &&
                          "insert" == t.type &&
                          (n = t.position.nodeAfter),
                          ("tableRow" != t.name && "tableCell" != t.name) ||
                            (n = op("table", t.position)),
                          qp(t) && (n = op("table", t.range.start)),
                          n &&
                            !o.has(n) &&
                            ((r = Vp(n, e) || r),
                            (r = Wp(n, e) || r),
                            o.add(n));
                      }
                      return r;
                    })(t, e)
                  );
                })(t),
                (function (e) {
                  e.document.registerPostFixer(() =>
                    (function (e) {
                      const t = e.document.differ,
                        n = new Set();
                      for (const e of t.getChanges()) {
                        const t =
                          "insert" == e.type || "remove" == e.type
                            ? e.position.parent
                            : e.range.start.parent;
                        t.is("tableCell") && Xp(t, e.type) && n.add(t);
                      }
                      if (n.size) {
                        for (const e of n.values()) t.refreshItem(e);
                        return !0;
                      }
                      return !1;
                    })(e)
                  );
                })(t),
                (function (e) {
                  e.document.registerPostFixer((t) =>
                    (function (e, t) {
                      const n = t.document.differ.getChanges();
                      let r = !1;
                      for (const t of n)
                        "insert" == t.type &&
                          "table" == t.name &&
                          (r = Gp(t.position.nodeAfter, e) || r),
                          "insert" == t.type &&
                            "tableRow" == t.name &&
                            (r = Jp(t.position.nodeAfter, e) || r),
                          "insert" == t.type &&
                            "tableCell" == t.name &&
                            (r = Kp(t.position.nodeAfter, e) || r),
                          Qp(t) && (r = Kp(t.position.parent, e) || r);
                      return r;
                    })(t, e)
                  );
                })(t),
                this.editor.keystrokes.set(
                  "Tab",
                  (...e) => this._handleTabOnSelectedTable(...e),
                  { priority: "low" }
                ),
                this.editor.keystrokes.set("Tab", this._getTabHandler(!0), {
                  priority: "low",
                }),
                this.editor.keystrokes.set(
                  "Shift+Tab",
                  this._getTabHandler(!1),
                  { priority: "low" }
                );
            }
            static get requires() {
              return [Hp];
            }
            _handleTabOnSelectedTable(e, t) {
              const n = this.editor,
                r = n.model.document.selection;
              if (
                !r.isCollapsed &&
                1 === r.rangeCount &&
                r.getFirstRange().isFlat
              ) {
                const e = r.getSelectedElement();
                if (!e || !e.is("table")) return;
                t(),
                  n.model.change((t) => {
                    t.setSelection(t.createRangeIn(e.getChild(0).getChild(0)));
                  });
              }
            }
            _getTabHandler(e) {
              const t = this.editor;
              return (n, r) => {
                const o = op(
                  "tableCell",
                  t.model.document.selection.getFirstPosition()
                );
                if (!o) return;
                r();
                const a = o.parent,
                  i = a.parent,
                  s = i.getChildIndex(a),
                  l = a.getChildIndex(o),
                  c = 0 === l;
                if (!e && c && 0 === s) return;
                const u = l === a.childCount - 1,
                  d = s === i.childCount - 1;
                if (
                  e &&
                  d &&
                  u &&
                  (t.execute("insertTableRowBelow"), s === i.childCount - 1)
                )
                  return;
                let h;
                if (e && u) {
                  const e = i.getChild(s + 1);
                  h = e.getChild(0);
                } else if (!e && c) {
                  const e = i.getChild(s - 1);
                  h = e.getChild(e.childCount - 1);
                } else h = a.getChild(l + (e ? 1 : -1));
                t.model.change((e) => {
                  e.setSelection(e.createRangeIn(h));
                });
              };
            }
          }
          n(87);
          class Zp extends ys {
            constructor(e) {
              super(e);
              const t = this.bindTemplate;
              (this.items = this.createCollection()),
                this.set("rows", 0),
                this.set("columns", 0),
                this.bind("label").to(
                  this,
                  "columns",
                  this,
                  "rows",
                  (e, t) => `${t} × ${e}`
                ),
                this.setTemplate({
                  tag: "div",
                  attributes: { class: ["ck"] },
                  children: [
                    {
                      tag: "div",
                      attributes: { class: ["ck-insert-table-dropdown__grid"] },
                      children: this.items,
                    },
                    {
                      tag: "div",
                      attributes: {
                        class: ["ck-insert-table-dropdown__label"],
                      },
                      children: [{ text: t.to("label") }],
                    },
                  ],
                  on: {
                    mousedown: t.to((e) => {
                      e.preventDefault();
                    }),
                    click: t.to(() => {
                      this.fire("execute");
                    }),
                  },
                });
              for (let e = 0; e < 100; e++) {
                const t = new ef();
                t.on("over", () => {
                  const t = Math.floor(e / 10),
                    n = e % 10;
                  this.set("rows", t + 1), this.set("columns", n + 1);
                }),
                  this.items.add(t);
              }
              this.on("change:columns", () => {
                this._highlightGridBoxes();
              }),
                this.on("change:rows", () => {
                  this._highlightGridBoxes();
                });
            }
            focus() {}
            focusLast() {}
            _highlightGridBoxes() {
              const e = this.rows,
                t = this.columns;
              this.items.map((n, r) => {
                const o = Math.floor(r / 10) < e && r % 10 < t;
                n.set("isOn", o);
              });
            }
          }
          class ef extends ys {
            constructor(e) {
              super(e);
              const t = this.bindTemplate;
              this.set("isOn", !1),
                this.setTemplate({
                  tag: "div",
                  attributes: {
                    class: [
                      "ck-insert-table-dropdown-grid-box",
                      t.if("isOn", "ck-on"),
                    ],
                  },
                  on: { mouseover: t.to("over") },
                });
            }
          }
          class tf extends Is {
            init() {
              const e = this.editor,
                t = this.editor.t;
              e.ui.componentFactory.add("insertTable", (n) => {
                const r = e.commands.get("insertTable"),
                  o = Xu(n);
                o.bind("isEnabled").to(r),
                  o.buttonView.set({
                    icon:
                      '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',
                    label: t("s"),
                    tooltip: !0,
                  });
                const a = new Zp(n);
                return (
                  o.panelView.children.add(a),
                  a.delegate("execute").to(o),
                  o.buttonView.on("open", () => {
                    (a.rows = 0), (a.columns = 0);
                  }),
                  o.on("execute", () => {
                    e.execute("insertTable", {
                      rows: a.rows,
                      columns: a.columns,
                    }),
                      e.editing.view.focus();
                  }),
                  o
                );
              }),
                e.ui.componentFactory.add("tableColumn", (e) => {
                  const n = [
                    {
                      type: "switchbutton",
                      model: {
                        commandName: "setTableColumnHeader",
                        label: t("t"),
                        bindIsOn: !0,
                      },
                    },
                    { type: "separator" },
                    {
                      type: "button",
                      model: {
                        commandName: "insertTableColumnLeft",
                        label: t("u"),
                      },
                    },
                    {
                      type: "button",
                      model: {
                        commandName: "insertTableColumnRight",
                        label: t("v"),
                      },
                    },
                    {
                      type: "button",
                      model: {
                        commandName: "removeTableColumn",
                        label: t("w"),
                      },
                    },
                  ];
                  return this._prepareDropdown(
                    t("x"),
                    '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',
                    n,
                    e
                  );
                }),
                e.ui.componentFactory.add("tableRow", (e) => {
                  const n = [
                    {
                      type: "switchbutton",
                      model: {
                        commandName: "setTableRowHeader",
                        label: t("y"),
                        bindIsOn: !0,
                      },
                    },
                    { type: "separator" },
                    {
                      type: "button",
                      model: {
                        commandName: "insertTableRowBelow",
                        label: t("z"),
                      },
                    },
                    {
                      type: "button",
                      model: {
                        commandName: "insertTableRowAbove",
                        label: t("aa"),
                      },
                    },
                    {
                      type: "button",
                      model: { commandName: "removeTableRow", label: t("ab") },
                    },
                  ];
                  return this._prepareDropdown(
                    t("ac"),
                    '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',
                    n,
                    e
                  );
                }),
                e.ui.componentFactory.add("mergeTableCells", (e) => {
                  const n = [
                    {
                      type: "button",
                      model: {
                        commandName: "mergeTableCellUp",
                        label: t("ad"),
                      },
                    },
                    {
                      type: "button",
                      model: {
                        commandName: "mergeTableCellRight",
                        label: t("ae"),
                      },
                    },
                    {
                      type: "button",
                      model: {
                        commandName: "mergeTableCellDown",
                        label: t("af"),
                      },
                    },
                    {
                      type: "button",
                      model: {
                        commandName: "mergeTableCellLeft",
                        label: t("ag"),
                      },
                    },
                    { type: "separator" },
                    {
                      type: "button",
                      model: {
                        commandName: "splitTableCellVertically",
                        label: t("ah"),
                      },
                    },
                    {
                      type: "button",
                      model: {
                        commandName: "splitTableCellHorizontally",
                        label: t("ai"),
                      },
                    },
                  ];
                  return this._prepareDropdown(
                    t("aj"),
                    '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',
                    n,
                    e
                  );
                });
            }
            _prepareDropdown(e, t, n, r) {
              const o = this.editor,
                a = Xu(r),
                i = [],
                s = new kn();
              for (const e of n) nf(e, o, i, s);
              return (
                $u(a, s),
                a.buttonView.set({ label: e, icon: t, tooltip: !0 }),
                a
                  .bind("isEnabled")
                  .toMany(i, "isEnabled", (...e) => e.some((e) => e)),
                this.listenTo(a, "execute", (e) => {
                  o.execute(e.source.commandName), o.editing.view.focus();
                }),
                a
              );
            }
          }
          function nf(e, t, n, r) {
            const o = (e.model = new Uu(e.model)),
              { commandName: a, bindIsOn: i } = e.model;
            if ("separator" !== e.type) {
              const e = t.commands.get(a);
              n.push(e),
                o.set({ commandName: a }),
                o.bind("isEnabled").to(e),
                i && o.bind("isOn").to(e, "value");
            }
            o.set({ withText: !0 }), r.add(e);
          }
          n(89),
            n.d(t, "default", function () {
              return rf;
            });
          class rf extends As {}
          (rf.builtinPlugins = [
            class extends Is {
              static get requires() {
                return [Fs, qs, Qs, cl, Nl];
              }
              static get pluginName() {
                return "Essentials";
              }
            },
            Hl,
            class extends Is {
              static get pluginName() {
                return "Autoformat";
              }
              afterInit() {
                this._addListAutoformats(),
                  this._addBasicStylesAutoformats(),
                  this._addHeadingAutoformats(),
                  this._addBlockQuoteAutoformats();
              }
              _addListAutoformats() {
                const e = this.editor.commands;
                e.get("bulletedList") &&
                  new Bl(this.editor, /^[*-]\s$/, "bulletedList"),
                  e.get("numberedList") &&
                    new Bl(this.editor, /^1[.|)]\s$/, "numberedList");
              }
              _addBasicStylesAutoformats() {
                const e = this.editor.commands;
                if (e.get("bold")) {
                  const e = Wl(this.editor, "bold");
                  new Ul(this.editor, /(\*\*)([^*]+)(\*\*)$/g, e),
                    new Ul(this.editor, /(__)([^_]+)(__)$/g, e);
                }
                if (e.get("italic")) {
                  const e = Wl(this.editor, "italic");
                  new Ul(this.editor, /(?:^|[^*])(\*)([^*_]+)(\*)$/g, e),
                    new Ul(this.editor, /(?:^|[^_])(_)([^_]+)(_)$/g, e);
                }
                if (e.get("code")) {
                  const e = Wl(this.editor, "code");
                  new Ul(this.editor, /(`)([^`]+)(`)$/g, e);
                }
              }
              _addHeadingAutoformats() {
                const e = this.editor.commands.get("heading");
                e &&
                  e.modelElements
                    .filter((e) => e.match(/^heading[1-6]$/))
                    .forEach((t) => {
                      const n = t[7],
                        r = new RegExp(`^(#{${n}})\\s$`);
                      new Bl(this.editor, r, () => {
                        if (!e.isEnabled) return !1;
                        this.editor.execute("heading", { value: t });
                      });
                    });
              }
              _addBlockQuoteAutoformats() {
                this.editor.commands.get("blockQuote") &&
                  new Bl(this.editor, /^>\s$/, "blockQuote");
              }
            },
            class extends Is {
              static get requires() {
                return [Jl, Ql];
              }
              static get pluginName() {
                return "Bold";
              }
            },
            class extends Is {
              static get requires() {
                return [$l, ec];
              }
              static get pluginName() {
                return "Italic";
              }
            },
            class extends Is {
              static get requires() {
                return [ic, sc];
              }
              static get pluginName() {
                return "BlockQuote";
              }
            },
            class extends Is {
              static get pluginName() {
                return "CKFinder";
              }
              static get requires() {
                return [hc, lc, Hl];
              }
            },
            class extends Is {
              static get requires() {
                return [bc, gu, Nu];
              }
              static get pluginName() {
                return "EasyImage";
              }
            },
            class extends Is {
              static get requires() {
                return [Bu, Zu];
              }
              static get pluginName() {
                return "Heading";
              }
            },
            gu,
            class extends Is {
              static get requires() {
                return [nd];
              }
              static get pluginName() {
                return "ImageCaption";
              }
            },
            class extends Is {
              static get requires() {
                return [_d, vd];
              }
              static get pluginName() {
                return "ImageStyle";
              }
            },
            class extends Is {
              static get requires() {
                return [bd];
              }
              static get pluginName() {
                return "ImageToolbar";
              }
              afterInit() {
                const e = this.editor,
                  t = e.t;
                e.plugins
                  .get(bd)
                  .register("image", {
                    ariaLabel: t("b"),
                    items: e.config.get("image.toolbar") || [],
                    getRelatedElement: Ac,
                  });
              }
            },
            Nu,
            class extends Is {
              static get requires() {
                return [oh, ch];
              }
              static get pluginName() {
                return "Link";
              }
            },
            class extends Is {
              static get requires() {
                return [Nh, Ih];
              }
              static get pluginName() {
                return "List";
              }
            },
            class extends Is {
              static get requires() {
                return [Vh, Jh, qh, Uc];
              }
              static get pluginName() {
                return "MediaEmbed";
              }
            },
            Ru,
            class extends Is {
              static get pluginName() {
                return "PasteFromOffice";
              }
              static get requires() {
                return [Fs];
              }
              init() {
                const e = this.editor,
                  t = [];
                t.push(new rp()),
                  t.push(new $h()),
                  e.plugins.get("Clipboard").on(
                    "inputTransformation",
                    (e, n) => {
                      if (n.isTransformedWithPasteFromOffice) return;
                      const r = n.dataTransfer.getData("text/html"),
                        o = t.find((e) => e.isActive(r));
                      o &&
                        (o.execute(n),
                        (n.isTransformedWithPasteFromOffice = !0));
                    },
                    { priority: "high" }
                  );
              }
            },
            class extends Is {
              static get requires() {
                return [$p, tf, Uc];
              }
              static get pluginName() {
                return "Table";
              }
            },
            class extends Is {
              static get requires() {
                return [bd];
              }
              static get pluginName() {
                return "TableToolbar";
              }
              afterInit() {
                const e = this.editor,
                  t = e.t,
                  n = e.plugins.get(bd),
                  r = e.config.get("table.contentToolbar"),
                  o = e.config.get("table.tableToolbar");
                r &&
                  n.register("tableContent", {
                    ariaLabel: t("c"),
                    items: r,
                    getRelatedElement: hp,
                  }),
                  o &&
                    n.register("table", {
                      ariaLabel: t("c"),
                      items: o,
                      getRelatedElement: dp,
                    });
              }
            },
          ]),
            (rf.defaultConfig = {
              toolbar: {
                items: [
                  "heading",
                  "|",
                  "bold",
                  "italic",
                  "link",
                  "bulletedList",
                  "numberedList",
                  "imageUpload",
                  "blockQuote",
                  "insertTable",
                  "mediaEmbed",
                  "undo",
                  "redo",
                ],
              },
              image: {
                toolbar: [
                  "imageStyle:full",
                  "imageStyle:side",
                  "|",
                  "imageTextAlternative",
                ],
              },
              table: {
                contentToolbar: ["tableColumn", "tableRow", "mergeTableCells"],
              },
              language: "en",
            });
        },
      ]).default);
  },
  function (e, t, n) {
    "use strict";
    var r = {
      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 o(e) {
      return function (t) {
        var n = t || {},
          r = n.width ? String(n.width) : e.defaultWidth;
        return e.formats[r] || e.formats[e.defaultWidth];
      };
    }
    var a = {
        date: o({
          formats: {
            full: "EEEE, MMMM do, y",
            long: "MMMM do, y",
            medium: "MMM d, y",
            short: "MM/dd/yyyy",
          },
          defaultWidth: "full",
        }),
        time: o({
          formats: {
            full: "h:mm:ss a zzzz",
            long: "h:mm:ss a z",
            medium: "h:mm:ss a",
            short: "h:mm a",
          },
          defaultWidth: "full",
        }),
        dateTime: o({
          formats: {
            full: "{{date}} 'at' {{time}}",
            long: "{{date}} 'at' {{time}}",
            medium: "{{date}}, {{time}}",
            short: "{{date}}, {{time}}",
          },
          defaultWidth: "full",
        }),
      },
      i = {
        lastWeek: "'last' eeee 'at' p",
        yesterday: "'yesterday at' p",
        today: "'today at' p",
        tomorrow: "'tomorrow at' p",
        nextWeek: "eeee 'at' p",
        other: "P",
      };
    function s(e) {
      return function (t, n) {
        var r,
          o = n || {};
        if (
          "formatting" === (o.context ? String(o.context) : "standalone") &&
          e.formattingValues
        ) {
          var a = e.defaultFormattingWidth || e.defaultWidth,
            i = o.width ? String(o.width) : a;
          r = e.formattingValues[i] || e.formattingValues[a];
        } else {
          var s = e.defaultWidth,
            l = o.width ? String(o.width) : e.defaultWidth;
          r = e.values[l] || e.values[s];
        }
        return r[e.argumentCallback ? e.argumentCallback(t) : t];
      };
    }
    function l(e) {
      return function (t, n) {
        var r = String(t),
          o = n || {},
          a = o.width,
          i = (a && e.matchPatterns[a]) || e.matchPatterns[e.defaultMatchWidth],
          s = r.match(i);
        if (!s) return null;
        var l,
          c = s[0],
          u = (a && e.parsePatterns[a]) || e.parsePatterns[e.defaultParseWidth];
        return (
          (l =
            "[object Array]" === Object.prototype.toString.call(u)
              ? (function (e, t) {
                  for (var n = 0; n < e.length; n++) if (t(e[n])) return n;
                })(u, function (e) {
                  return e.test(c);
                })
              : (function (e, t) {
                  for (var n in e) if (e.hasOwnProperty(n) && t(e[n])) return n;
                })(u, function (e) {
                  return e.test(c);
                })),
          (l = e.valueCallback ? e.valueCallback(l) : l),
          {
            value: (l = o.valueCallback ? o.valueCallback(l) : l),
            rest: r.slice(c.length),
          }
        );
      };
    }
    var c,
      u = {
        code: "en-US",
        formatDistance: function (e, t, n) {
          var o;
          return (
            (n = n || {}),
            (o =
              "string" == typeof r[e]
                ? r[e]
                : 1 === t
                ? r[e].one
                : r[e].other.replace("{{count}}", t)),
            n.addSuffix ? (n.comparison > 0 ? "in " + o : o + " ago") : o
          );
        },
        formatLong: a,
        formatRelative: function (e, t, n, r) {
          return i[e];
        },
        localize: {
          ordinalNumber: function (e, t) {
            var n = Number(e),
              r = n % 100;
            if (r > 20 || r < 10)
              switch (r % 10) {
                case 1:
                  return n + "st";
                case 2:
                  return n + "nd";
                case 3:
                  return n + "rd";
              }
            return n + "th";
          },
          era: s({
            values: {
              narrow: ["B", "A"],
              abbreviated: ["BC", "AD"],
              wide: ["Before Christ", "Anno Domini"],
            },
            defaultWidth: "wide",
          }),
          quarter: s({
            values: {
              narrow: ["1", "2", "3", "4"],
              abbreviated: ["Q1", "Q2", "Q3", "Q4"],
              wide: [
                "1st quarter",
                "2nd quarter",
                "3rd quarter",
                "4th quarter",
              ],
            },
            defaultWidth: "wide",
            argumentCallback: function (e) {
              return Number(e) - 1;
            },
          }),
          month: s({
            values: {
              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",
              ],
            },
            defaultWidth: "wide",
          }),
          day: s({
            values: {
              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",
              ],
            },
            defaultWidth: "wide",
          }),
          dayPeriod: s({
            values: {
              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",
              },
            },
            defaultWidth: "wide",
            formattingValues: {
              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",
              },
            },
            defaultFormattingWidth: "wide",
          }),
        },
        match: {
          ordinalNumber:
            ((c = {
              matchPattern: /^(\d+)(th|st|nd|rd)?/i,
              parsePattern: /\d+/i,
              valueCallback: function (e) {
                return parseInt(e, 10);
              },
            }),
            function (e, t) {
              var n = String(e),
                r = t || {},
                o = n.match(c.matchPattern);
              if (!o) return null;
              var a = o[0],
                i = n.match(c.parsePattern);
              if (!i) return null;
              var s = c.valueCallback ? c.valueCallback(i[0]) : i[0];
              return {
                value: (s = r.valueCallback ? r.valueCallback(s) : s),
                rest: n.slice(a.length),
              };
            }),
          era: l({
            matchPatterns: {
              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,
            },
            defaultMatchWidth: "wide",
            parsePatterns: { any: [/^b/i, /^(a|c)/i] },
            defaultParseWidth: "any",
          }),
          quarter: l({
            matchPatterns: {
              narrow: /^[1234]/i,
              abbreviated: /^q[1234]/i,
              wide: /^[1234](th|st|nd|rd)? quarter/i,
            },
            defaultMatchWidth: "wide",
            parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] },
            defaultParseWidth: "any",
            valueCallback: function (e) {
              return e + 1;
            },
          }),
          month: l({
            matchPatterns: {
              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,
            },
            defaultMatchWidth: "wide",
            parsePatterns: {
              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,
              ],
            },
            defaultParseWidth: "any",
          }),
          day: l({
            matchPatterns: {
              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,
            },
            defaultMatchWidth: "wide",
            parsePatterns: {
              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],
            },
            defaultParseWidth: "any",
          }),
          dayPeriod: l({
            matchPatterns: {
              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,
            },
            defaultMatchWidth: "any",
            parsePatterns: {
              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,
              },
            },
            defaultParseWidth: "any",
          }),
        },
        options: { weekStartsOn: 0, firstWeekContainsDate: 1 },
      };
    t.a = u;
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return c;
    });
    var r = n(5),
      o = n(18),
      a = n(7),
      i = n(31),
      s = n(2);
    function l(e, t) {
      Object(s.a)(1, arguments);
      var n = t || {},
        r = n.locale,
        l = r && r.options && r.options.firstWeekContainsDate,
        c = null == l ? 1 : Object(a.a)(l),
        u =
          null == n.firstWeekContainsDate
            ? c
            : Object(a.a)(n.firstWeekContainsDate),
        d = Object(i.a)(e, t),
        h = new Date(0);
      h.setUTCFullYear(d, 0, u), h.setUTCHours(0, 0, 0, 0);
      var p = Object(o.a)(h, t);
      return p;
    }
    function c(e, t) {
      Object(s.a)(1, arguments);
      var n = Object(r.default)(e),
        a = Object(o.a)(n, t).getTime() - l(n, t).getTime();
      return Math.round(a / 6048e5) + 1;
    }
  },
  function (e, t, n) {
    "use strict";
    n.d(t, "a", function () {
      return l;
    });
    var r = n(5),
      o = n(21),
      a = n(53),
      i = n(2);
    function s(e) {
      Object(i.a)(1, arguments);
      var t = Object(a.a)(e),
        n = new Date(0);
      n.setUTCFullYear(t, 0, 4), n.setUTCHours(0, 0, 0, 0);
      var r = Object(o.a)(n);
      return r;
    }
    function l(e) {
      Object(i.a)(1, arguments);
      var t = Object(r.default)(e),
        n = Object(o.a)(t).getTime() - s(t).getTime();
      return Math.round(n / 6048e5) + 1;
    }
  },
  function (e, t, n) {
    var r = n(450),
      o = n(451),
      a = n(452),
      i = n(454);
    e.exports = function (e, t) {
      return r(e) || o(e, t) || a(e, t) || i();
    };
  },
  function (e, t, n) {
    "use strict";
    /*
object-assign
(c) Sindre Sorhus
@license MIT
*/ var r =
        Object.getOwnPropertySymbols,
      o = Object.prototype.hasOwnProperty,
      a = Object.prototype.propertyIsEnumerable;
    function i(e) {
      if (null == e)
        throw new TypeError(
          "Object.assign cannot be called with null or undefined"
        );
      return Object(e);
    }
    e.exports = (function () {
      try {
        if (!Object.assign) return !1;
        var e = new String("abc");
        if (((e[5] = "de"), "5" === Object.getOwnPropertyNames(e)[0]))
          return !1;
        for (var t = {}, n = 0; n < 10; n++)
          t["_" + String.fromCharCode(n)] = n;
        if (
          "0123456789" !==
          Object.getOwnPropertyNames(t)
            .map(function (e) {
              return t[e];
            })
            .join("")
        )
          return !1;
        var r = {};
        return (
          "abcdefghijklmnopqrst".split("").forEach(function (e) {
            r[e] = e;
          }),
          "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, r)).join("")
        );
      } catch (e) {
        return !1;
      }
    })()
      ? Object.assign
      : function (e, t) {
          for (var n, s, l = i(e), c = 1; c < arguments.length; c++) {
            for (var u in (n = Object(arguments[c])))
              o.call(n, u) && (l[u] = n[u]);
            if (r) {
              s = r(n);
              for (var d = 0; d < s.length; d++)
                a.call(n, s[d]) && (l[s[d]] = n[s[d]]);
            }
          }
          return l;
        };
  },
  function (e, t, n) {
    "use strict";
    (function (t) {
      var r = n(16),
        o = n(265),
        a = { "Content-Type": "application/x-www-form-urlencoded" };
      function i(e, t) {
        !r.isUndefined(e) &&
          r.isUndefined(e["Content-Type"]) &&
          (e["Content-Type"] = t);
      }
      var s,
        l = {
          adapter:
            (("undefined" != typeof XMLHttpRequest || void 0 !== t) &&
              (s = n(86)),
            s),
          transformRequest: [
            function (e, t) {
              return (
                o(t, "Content-Type"),
                r.isFormData(e) ||
                r.isArrayBuffer(e) ||
                r.isBuffer(e) ||
                r.isStream(e) ||
                r.isFile(e) ||
                r.isBlob(e)
                  ? e
                  : r.isArrayBufferView(e)
                  ? e.buffer
                  : r.isURLSearchParams(e)
                  ? (i(t, "application/x-www-form-urlencoded;charset=utf-8"),
                    e.toString())
                  : r.isObject(e)
                  ? (i(t, "application/json;charset=utf-8"), JSON.stringify(e))
                  : e
              );
            },
          ],
          transformResponse: [
            function (e) {
              if ("string" == typeof e)
                try {
                  e = JSON.parse(e);
                } catch (e) {}
              return e;
            },
          ],
          timeout: 0,
          xsrfCookieName: "XSRF-TOKEN",
          xsrfHeaderName: "X-XSRF-TOKEN",
          maxContentLength: -1,
          validateStatus: function (e) {
            return e >= 200 && e < 300;
          },
        };
      (l.headers = { common: { Accept: "application/json, text/plain, */*" } }),
        r.forEach(["delete", "get", "head"], function (e) {
          l.headers[e] = {};
        }),
        r.forEach(["post", "put", "patch"], function (e) {
          l.headers[e] = r.merge(a);
        }),
        (e.exports = l);
    }.call(this, n(85)));
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0),
      (t.isValidDelay = o),
      (t.objectValues = function (e) {
        return Object.keys(e).map(function (t) {
          return e[t];
        });
      }),
      (t.falseOrElement = t.falseOrDelay = void 0);
    var r = n(0);
    function o(e) {
      return "number" == typeof e && !isNaN(e) && e > 0;
    }
    function a(e) {
      return (
        (e.isRequired = function (t, n, r) {
          if (void 0 === t[n])
            return new Error(
              "The prop " +
                n +
                " is marked as required in \n      " +
                r +
                ", but its value is undefined."
            );
          e(t, n, r);
        }),
        e
      );
    }
    var i = a(function (e, t, n) {
      var r = e[t];
      return !1 === r || o(r)
        ? null
        : new Error(
            n +
              " expect " +
              t +
              " \n      to be a valid Number > 0 or equal to false. " +
              r +
              " given."
          );
    });
    t.falseOrDelay = i;
    var s = a(function (e, t, n) {
      var o = e[t];
      return !1 === o || (0, r.isValidElement)(o)
        ? null
        : new Error(
            n +
              " expect " +
              t +
              " \n      to be a valid react element or equal to false. " +
              o +
              " given."
          );
    });
    t.falseOrElement = s;
  },
  function (e, t) {
    e.exports = function (e) {
      return (
        e.webpackPolyfill ||
          ((e.deprecate = function () {}),
          (e.paths = []),
          e.children || (e.children = []),
          Object.defineProperty(e, "loaded", {
            enumerable: !0,
            get: function () {
              return e.l;
            },
          }),
          Object.defineProperty(e, "id", {
            enumerable: !0,
            get: function () {
              return e.i;
            },
          }),
          (e.webpackPolyfill = 1)),
        e
      );
    };
  },
  function (e, t, n) {
    "use strict";
    (function (t) {
      var r = t.Symbol,
        o = n(340);
      e.exports = function () {
        return (
          "function" == typeof r &&
          "function" == typeof Symbol &&
          "symbol" == typeof r("foo") &&
          "symbol" == typeof Symbol("bar") &&
          o()
        );
      };
    }.call(this, n(35)));
  },
  function (e, t, n) {
    var r = n(355),
      o = n(39);
    e.exports = function e(t, n, a, i, s) {
      return (
        t === n ||
        (null == t || null == n || (!o(t) && !o(n))
          ? t != t && n != n
          : r(t, n, a, i, e, s))
      );
    };
  },
  function (e, t, n) {
    var r = n(27)(n(24), "Map");
    e.exports = r;
  },
  function (e, t) {
    e.exports = function (e) {
      var t = typeof e;
      return null != e && ("object" == t || "function" == t);
    };
  },
  function (e, t, n) {
    var r = n(372),
      o = n(379),
      a = n(381),
      i = n(382),
      s = n(383);
    function l(e) {
      var t = -1,
        n = null == e ? 0 : e.length;
      for (this.clear(); ++t < n; ) {
        var r = e[t];
        this.set(r[0], r[1]);
      }
    }
    (l.prototype.clear = r),
      (l.prototype.delete = o),
      (l.prototype.get = a),
      (l.prototype.has = i),
      (l.prototype.set = s),
      (e.exports = l);
  },
  function (e, t, n) {
    var r = n(400),
      o = n(407),
      a = n(248);
    e.exports = function (e) {
      return a(e) ? r(e) : o(e);
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return (
        "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991
      );
    };
  },
  function (e, t, n) {
    var r = n(25),
      o = n(73),
      a = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
      i = /^\w*$/;
    e.exports = function (e, t) {
      if (r(e)) return !1;
      var n = typeof e;
      return (
        !(
          "number" != n &&
          "symbol" != n &&
          "boolean" != n &&
          null != e &&
          !o(e)
        ) ||
        i.test(e) ||
        !a.test(e) ||
        (null != t && e in Object(t))
      );
    };
  },
  function (e, t, n) {
    var r = n(38),
      o = n(39);
    e.exports = function (e) {
      return "symbol" == typeof e || (o(e) && "[object Symbol]" == r(e));
    };
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e);
      return !isNaN(t);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(30),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.a)(e, 6e4 * n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(30),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.a)(e, 36e5 * n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(42),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t),
        i = 7 * n;
      return Object(o.default)(e, i);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(43),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.default)(e, 12 * n);
    }
  },
  function (e, t, n) {
    "use strict";
    var r = function () {};
    e.exports = r;
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return s;
      });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e) {
      Object(a.a)(1, arguments);
      var t = Object(o.default)(e),
        n = t.getFullYear(),
        r = t.getMonth(),
        i = new Date(0);
      return i.setFullYear(n, r + 1, 0), i.setHours(0, 0, 0, 0), i.getDate();
    }
    function s(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e),
        s = Object(r.a)(t),
        l = n.getFullYear(),
        c = n.getDate(),
        u = new Date(0);
      u.setFullYear(l, s, 15), u.setHours(0, 0, 0, 0);
      var d = i(u);
      return n.setMonth(s, Math.min(c, d)), n;
    }
  },
  function (e, t, n) {
    "use strict";
    (function (e) {
      /**!
       * @fileOverview Kickass library to create and place poppers near their reference elements.
       * @version 1.16.1
       * @license
       * Copyright (c) 2016 Federico Zivolo and contributors
       *
       * Permission is hereby granted, free of charge, to any person obtaining a copy
       * of this software and associated documentation files (the "Software"), to deal
       * in the Software without restriction, including without limitation the rights
       * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
       * copies of the Software, and to permit persons to whom the Software is
       * furnished to do so, subject to the following conditions:
       *
       * The above copyright notice and this permission notice shall be included in all
       * copies or substantial portions of the Software.
       *
       * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
       * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
       * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
       * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
       * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
       * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
       * SOFTWARE.
       */
      var n =
          "undefined" != typeof window &&
          "undefined" != typeof document &&
          "undefined" != typeof navigator,
        r = (function () {
          for (
            var e = ["Edge", "Trident", "Firefox"], t = 0;
            t < e.length;
            t += 1
          )
            if (n && navigator.userAgent.indexOf(e[t]) >= 0) return 1;
          return 0;
        })();
      var o =
        n && window.Promise
          ? function (e) {
              var t = !1;
              return function () {
                t ||
                  ((t = !0),
                  window.Promise.resolve().then(function () {
                    (t = !1), e();
                  }));
              };
            }
          : function (e) {
              var t = !1;
              return function () {
                t ||
                  ((t = !0),
                  setTimeout(function () {
                    (t = !1), e();
                  }, r));
              };
            };
      function a(e) {
        return e && "[object Function]" === {}.toString.call(e);
      }
      function i(e, t) {
        if (1 !== e.nodeType) return [];
        var n = e.ownerDocument.defaultView.getComputedStyle(e, null);
        return t ? n[t] : n;
      }
      function s(e) {
        return "HTML" === e.nodeName ? e : e.parentNode || e.host;
      }
      function l(e) {
        if (!e) return document.body;
        switch (e.nodeName) {
          case "HTML":
          case "BODY":
            return e.ownerDocument.body;
          case "#document":
            return e.body;
        }
        var t = i(e),
          n = t.overflow,
          r = t.overflowX,
          o = t.overflowY;
        return /(auto|scroll|overlay)/.test(n + o + r) ? e : l(s(e));
      }
      function c(e) {
        return e && e.referenceNode ? e.referenceNode : e;
      }
      var u = n && !(!window.MSInputMethodContext || !document.documentMode),
        d = n && /MSIE 10/.test(navigator.userAgent);
      function h(e) {
        return 11 === e ? u : 10 === e ? d : u || d;
      }
      function p(e) {
        if (!e) return document.documentElement;
        for (
          var t = h(10) ? document.body : null, n = e.offsetParent || null;
          n === t && e.nextElementSibling;

        )
          n = (e = e.nextElementSibling).offsetParent;
        var r = n && n.nodeName;
        return r && "BODY" !== r && "HTML" !== r
          ? -1 !== ["TH", "TD", "TABLE"].indexOf(n.nodeName) &&
            "static" === i(n, "position")
            ? p(n)
            : n
          : e
          ? e.ownerDocument.documentElement
          : document.documentElement;
      }
      function f(e) {
        return null !== e.parentNode ? f(e.parentNode) : e;
      }
      function m(e, t) {
        if (!(e && e.nodeType && t && t.nodeType))
          return document.documentElement;
        var n = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING,
          r = n ? e : t,
          o = n ? t : e,
          a = document.createRange();
        a.setStart(r, 0), a.setEnd(o, 0);
        var i,
          s,
          l = a.commonAncestorContainer;
        if ((e !== l && t !== l) || r.contains(o))
          return "BODY" === (s = (i = l).nodeName) ||
            ("HTML" !== s && p(i.firstElementChild) !== i)
            ? p(l)
            : l;
        var c = f(e);
        return c.host ? m(c.host, t) : m(e, f(t).host);
      }
      function g(e) {
        var t =
            arguments.length > 1 && void 0 !== arguments[1]
              ? arguments[1]
              : "top",
          n = "top" === t ? "scrollTop" : "scrollLeft",
          r = e.nodeName;
        if ("BODY" === r || "HTML" === r) {
          var o = e.ownerDocument.documentElement,
            a = e.ownerDocument.scrollingElement || o;
          return a[n];
        }
        return e[n];
      }
      function _(e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
          r = g(t, "top"),
          o = g(t, "left"),
          a = n ? -1 : 1;
        return (
          (e.top += r * a),
          (e.bottom += r * a),
          (e.left += o * a),
          (e.right += o * a),
          e
        );
      }
      function v(e, t) {
        var n = "x" === t ? "Left" : "Top",
          r = "Left" === n ? "Right" : "Bottom";
        return (
          parseFloat(e["border" + n + "Width"]) +
          parseFloat(e["border" + r + "Width"])
        );
      }
      function b(e, t, n, r) {
        return Math.max(
          t["offset" + e],
          t["scroll" + e],
          n["client" + e],
          n["offset" + e],
          n["scroll" + e],
          h(10)
            ? parseInt(n["offset" + e]) +
                parseInt(r["margin" + ("Height" === e ? "Top" : "Left")]) +
                parseInt(r["margin" + ("Height" === e ? "Bottom" : "Right")])
            : 0
        );
      }
      function y(e) {
        var t = e.body,
          n = e.documentElement,
          r = h(10) && getComputedStyle(n);
        return { height: b("Height", t, n, r), width: b("Width", t, n, r) };
      }
      var w = function (e, t) {
          if (!(e instanceof t))
            throw new TypeError("Cannot call a class as a function");
        },
        k = (function () {
          function e(e, t) {
            for (var n = 0; n < t.length; n++) {
              var r = t[n];
              (r.enumerable = r.enumerable || !1),
                (r.configurable = !0),
                "value" in r && (r.writable = !0),
                Object.defineProperty(e, r.key, r);
            }
          }
          return function (t, n, r) {
            return n && e(t.prototype, n), r && e(t, r), t;
          };
        })(),
        x = function (e, t, n) {
          return (
            t in e
              ? Object.defineProperty(e, t, {
                  value: n,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0,
                })
              : (e[t] = n),
            e
          );
        },
        M =
          Object.assign ||
          function (e) {
            for (var t = 1; t < arguments.length; t++) {
              var n = arguments[t];
              for (var r in n)
                Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
            }
            return e;
          };
      function E(e) {
        return M({}, e, { right: e.left + e.width, bottom: e.top + e.height });
      }
      function T(e) {
        var t = {};
        try {
          if (h(10)) {
            t = e.getBoundingClientRect();
            var n = g(e, "top"),
              r = g(e, "left");
            (t.top += n), (t.left += r), (t.bottom += n), (t.right += r);
          } else t = e.getBoundingClientRect();
        } catch (e) {}
        var o = {
            left: t.left,
            top: t.top,
            width: t.right - t.left,
            height: t.bottom - t.top,
          },
          a = "HTML" === e.nodeName ? y(e.ownerDocument) : {},
          s = a.width || e.clientWidth || o.width,
          l = a.height || e.clientHeight || o.height,
          c = e.offsetWidth - s,
          u = e.offsetHeight - l;
        if (c || u) {
          var d = i(e);
          (c -= v(d, "x")), (u -= v(d, "y")), (o.width -= c), (o.height -= u);
        }
        return E(o);
      }
      function S(e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
          r = h(10),
          o = "HTML" === t.nodeName,
          a = T(e),
          s = T(t),
          c = l(e),
          u = i(t),
          d = parseFloat(u.borderTopWidth),
          p = parseFloat(u.borderLeftWidth);
        n &&
          o &&
          ((s.top = Math.max(s.top, 0)), (s.left = Math.max(s.left, 0)));
        var f = E({
          top: a.top - s.top - d,
          left: a.left - s.left - p,
          width: a.width,
          height: a.height,
        });
        if (((f.marginTop = 0), (f.marginLeft = 0), !r && o)) {
          var m = parseFloat(u.marginTop),
            g = parseFloat(u.marginLeft);
          (f.top -= d - m),
            (f.bottom -= d - m),
            (f.left -= p - g),
            (f.right -= p - g),
            (f.marginTop = m),
            (f.marginLeft = g);
        }
        return (
          (r && !n ? t.contains(c) : t === c && "BODY" !== c.nodeName) &&
            (f = _(f, t)),
          f
        );
      }
      function D(e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
          n = e.ownerDocument.documentElement,
          r = S(e, n),
          o = Math.max(n.clientWidth, window.innerWidth || 0),
          a = Math.max(n.clientHeight, window.innerHeight || 0),
          i = t ? 0 : g(n),
          s = t ? 0 : g(n, "left"),
          l = {
            top: i - r.top + r.marginTop,
            left: s - r.left + r.marginLeft,
            width: o,
            height: a,
          };
        return E(l);
      }
      function L(e) {
        var t = e.nodeName;
        if ("BODY" === t || "HTML" === t) return !1;
        if ("fixed" === i(e, "position")) return !0;
        var n = s(e);
        return !!n && L(n);
      }
      function C(e) {
        if (!e || !e.parentElement || h()) return document.documentElement;
        for (var t = e.parentElement; t && "none" === i(t, "transform"); )
          t = t.parentElement;
        return t || document.documentElement;
      }
      function P(e, t, n, r) {
        var o = arguments.length > 4 && void 0 !== arguments[4] && arguments[4],
          a = { top: 0, left: 0 },
          i = o ? C(e) : m(e, c(t));
        if ("viewport" === r) a = D(i, o);
        else {
          var u = void 0;
          "scrollParent" === r
            ? "BODY" === (u = l(s(t))).nodeName &&
              (u = e.ownerDocument.documentElement)
            : (u = "window" === r ? e.ownerDocument.documentElement : r);
          var d = S(u, i, o);
          if ("HTML" !== u.nodeName || L(i)) a = d;
          else {
            var h = y(e.ownerDocument),
              p = h.height,
              f = h.width;
            (a.top += d.top - d.marginTop),
              (a.bottom = p + d.top),
              (a.left += d.left - d.marginLeft),
              (a.right = f + d.left);
          }
        }
        var g = "number" == typeof (n = n || 0);
        return (
          (a.left += g ? n : n.left || 0),
          (a.top += g ? n : n.top || 0),
          (a.right -= g ? n : n.right || 0),
          (a.bottom -= g ? n : n.bottom || 0),
          a
        );
      }
      function O(e) {
        return e.width * e.height;
      }
      function N(e, t, n, r, o) {
        var a =
          arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : 0;
        if (-1 === e.indexOf("auto")) return e;
        var i = P(n, r, a, o),
          s = {
            top: { width: i.width, height: t.top - i.top },
            right: { width: i.right - t.right, height: i.height },
            bottom: { width: i.width, height: i.bottom - t.bottom },
            left: { width: t.left - i.left, height: i.height },
          },
          l = Object.keys(s)
            .map(function (e) {
              return M({ key: e }, s[e], { area: O(s[e]) });
            })
            .sort(function (e, t) {
              return t.area - e.area;
            }),
          c = l.filter(function (e) {
            var t = e.width,
              r = e.height;
            return t >= n.clientWidth && r >= n.clientHeight;
          }),
          u = c.length > 0 ? c[0].key : l[0].key,
          d = e.split("-")[1];
        return u + (d ? "-" + d : "");
      }
      function A(e, t, n) {
        var r =
            arguments.length > 3 && void 0 !== arguments[3]
              ? arguments[3]
              : null,
          o = r ? C(t) : m(t, c(n));
        return S(n, o, r);
      }
      function I(e) {
        var t = e.ownerDocument.defaultView.getComputedStyle(e),
          n = parseFloat(t.marginTop || 0) + parseFloat(t.marginBottom || 0),
          r = parseFloat(t.marginLeft || 0) + parseFloat(t.marginRight || 0);
        return { width: e.offsetWidth + r, height: e.offsetHeight + n };
      }
      function R(e) {
        var t = { left: "right", right: "left", bottom: "top", top: "bottom" };
        return e.replace(/left|right|bottom|top/g, function (e) {
          return t[e];
        });
      }
      function Y(e, t, n) {
        n = n.split("-")[0];
        var r = I(e),
          o = { width: r.width, height: r.height },
          a = -1 !== ["right", "left"].indexOf(n),
          i = a ? "top" : "left",
          s = a ? "left" : "top",
          l = a ? "height" : "width",
          c = a ? "width" : "height";
        return (
          (o[i] = t[i] + t[l] / 2 - r[l] / 2),
          (o[s] = n === s ? t[s] - r[c] : t[R(s)]),
          o
        );
      }
      function j(e, t) {
        return Array.prototype.find ? e.find(t) : e.filter(t)[0];
      }
      function F(e, t, n) {
        return (
          (void 0 === n
            ? e
            : e.slice(
                0,
                (function (e, t, n) {
                  if (Array.prototype.findIndex)
                    return e.findIndex(function (e) {
                      return e[t] === n;
                    });
                  var r = j(e, function (e) {
                    return e[t] === n;
                  });
                  return e.indexOf(r);
                })(e, "name", n)
              )
          ).forEach(function (e) {
            e.function &&
              console.warn(
                "`modifier.function` is deprecated, use `modifier.fn`!"
              );
            var n = e.function || e.fn;
            e.enabled &&
              a(n) &&
              ((t.offsets.popper = E(t.offsets.popper)),
              (t.offsets.reference = E(t.offsets.reference)),
              (t = n(t, e)));
          }),
          t
        );
      }
      function H() {
        if (!this.state.isDestroyed) {
          var e = {
            instance: this,
            styles: {},
            arrowStyles: {},
            attributes: {},
            flipped: !1,
            offsets: {},
          };
          (e.offsets.reference = A(
            this.state,
            this.popper,
            this.reference,
            this.options.positionFixed
          )),
            (e.placement = N(
              this.options.placement,
              e.offsets.reference,
              this.popper,
              this.reference,
              this.options.modifiers.flip.boundariesElement,
              this.options.modifiers.flip.padding
            )),
            (e.originalPlacement = e.placement),
            (e.positionFixed = this.options.positionFixed),
            (e.offsets.popper = Y(
              this.popper,
              e.offsets.reference,
              e.placement
            )),
            (e.offsets.popper.position = this.options.positionFixed
              ? "fixed"
              : "absolute"),
            (e = F(this.modifiers, e)),
            this.state.isCreated
              ? this.options.onUpdate(e)
              : ((this.state.isCreated = !0), this.options.onCreate(e));
        }
      }
      function z(e, t) {
        return e.some(function (e) {
          var n = e.name;
          return e.enabled && n === t;
        });
      }
      function B(e) {
        for (
          var t = [!1, "ms", "Webkit", "Moz", "O"],
            n = e.charAt(0).toUpperCase() + e.slice(1),
            r = 0;
          r < t.length;
          r++
        ) {
          var o = t[r],
            a = o ? "" + o + n : e;
          if (void 0 !== document.body.style[a]) return a;
        }
        return null;
      }
      function U() {
        return (
          (this.state.isDestroyed = !0),
          z(this.modifiers, "applyStyle") &&
            (this.popper.removeAttribute("x-placement"),
            (this.popper.style.position = ""),
            (this.popper.style.top = ""),
            (this.popper.style.left = ""),
            (this.popper.style.right = ""),
            (this.popper.style.bottom = ""),
            (this.popper.style.willChange = ""),
            (this.popper.style[B("transform")] = "")),
          this.disableEventListeners(),
          this.options.removeOnDestroy &&
            this.popper.parentNode.removeChild(this.popper),
          this
        );
      }
      function V(e) {
        var t = e.ownerDocument;
        return t ? t.defaultView : window;
      }
      function W(e, t, n, r) {
        (n.updateBound = r),
          V(e).addEventListener("resize", n.updateBound, { passive: !0 });
        var o = l(e);
        return (
          (function e(t, n, r, o) {
            var a = "BODY" === t.nodeName,
              i = a ? t.ownerDocument.defaultView : t;
            i.addEventListener(n, r, { passive: !0 }),
              a || e(l(i.parentNode), n, r, o),
              o.push(i);
          })(o, "scroll", n.updateBound, n.scrollParents),
          (n.scrollElement = o),
          (n.eventsEnabled = !0),
          n
        );
      }
      function q() {
        this.state.eventsEnabled ||
          (this.state = W(
            this.reference,
            this.options,
            this.state,
            this.scheduleUpdate
          ));
      }
      function G() {
        var e, t;
        this.state.eventsEnabled &&
          (cancelAnimationFrame(this.scheduleUpdate),
          (this.state =
            ((e = this.reference),
            (t = this.state),
            V(e).removeEventListener("resize", t.updateBound),
            t.scrollParents.forEach(function (e) {
              e.removeEventListener("scroll", t.updateBound);
            }),
            (t.updateBound = null),
            (t.scrollParents = []),
            (t.scrollElement = null),
            (t.eventsEnabled = !1),
            t)));
      }
      function J(e) {
        return "" !== e && !isNaN(parseFloat(e)) && isFinite(e);
      }
      function K(e, t) {
        Object.keys(t).forEach(function (n) {
          var r = "";
          -1 !==
            ["width", "height", "top", "right", "bottom", "left"].indexOf(n) &&
            J(t[n]) &&
            (r = "px"),
            (e.style[n] = t[n] + r);
        });
      }
      var Q = n && /Firefox/i.test(navigator.userAgent);
      function X(e, t, n) {
        var r = j(e, function (e) {
            return e.name === t;
          }),
          o =
            !!r &&
            e.some(function (e) {
              return e.name === n && e.enabled && e.order < r.order;
            });
        if (!o) {
          var a = "`" + t + "`",
            i = "`" + n + "`";
          console.warn(
            i +
              " modifier is required by " +
              a +
              " modifier in order to work, be sure to include it before " +
              a +
              "!"
          );
        }
        return o;
      }
      var $ = [
          "auto-start",
          "auto",
          "auto-end",
          "top-start",
          "top",
          "top-end",
          "right-start",
          "right",
          "right-end",
          "bottom-end",
          "bottom",
          "bottom-start",
          "left-end",
          "left",
          "left-start",
        ],
        Z = $.slice(3);
      function ee(e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
          n = Z.indexOf(e),
          r = Z.slice(n + 1).concat(Z.slice(0, n));
        return t ? r.reverse() : r;
      }
      var te = "flip",
        ne = "clockwise",
        re = "counterclockwise";
      function oe(e, t, n, r) {
        var o = [0, 0],
          a = -1 !== ["right", "left"].indexOf(r),
          i = e.split(/(\+|\-)/).map(function (e) {
            return e.trim();
          }),
          s = i.indexOf(
            j(i, function (e) {
              return -1 !== e.search(/,|\s/);
            })
          );
        i[s] &&
          -1 === i[s].indexOf(",") &&
          console.warn(
            "Offsets separated by white space(s) are deprecated, use a comma (,) instead."
          );
        var l = /\s*,\s*|\s+/,
          c =
            -1 !== s
              ? [
                  i.slice(0, s).concat([i[s].split(l)[0]]),
                  [i[s].split(l)[1]].concat(i.slice(s + 1)),
                ]
              : [i];
        return (
          (c = c.map(function (e, r) {
            var o = (1 === r ? !a : a) ? "height" : "width",
              i = !1;
            return e
              .reduce(function (e, t) {
                return "" === e[e.length - 1] && -1 !== ["+", "-"].indexOf(t)
                  ? ((e[e.length - 1] = t), (i = !0), e)
                  : i
                  ? ((e[e.length - 1] += t), (i = !1), e)
                  : e.concat(t);
              }, [])
              .map(function (e) {
                return (function (e, t, n, r) {
                  var o = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),
                    a = +o[1],
                    i = o[2];
                  if (!a) return e;
                  if (0 === i.indexOf("%")) {
                    var s = void 0;
                    switch (i) {
                      case "%p":
                        s = n;
                        break;
                      case "%":
                      case "%r":
                      default:
                        s = r;
                    }
                    return (E(s)[t] / 100) * a;
                  }
                  if ("vh" === i || "vw" === i) {
                    return (
                      (("vh" === i
                        ? Math.max(
                            document.documentElement.clientHeight,
                            window.innerHeight || 0
                          )
                        : Math.max(
                            document.documentElement.clientWidth,
                            window.innerWidth || 0
                          )) /
                        100) *
                      a
                    );
                  }
                  return a;
                })(e, o, t, n);
              });
          })).forEach(function (e, t) {
            e.forEach(function (n, r) {
              J(n) && (o[t] += n * ("-" === e[r - 1] ? -1 : 1));
            });
          }),
          o
        );
      }
      var ae = {
          placement: "bottom",
          positionFixed: !1,
          eventsEnabled: !0,
          removeOnDestroy: !1,
          onCreate: function () {},
          onUpdate: function () {},
          modifiers: {
            shift: {
              order: 100,
              enabled: !0,
              fn: function (e) {
                var t = e.placement,
                  n = t.split("-")[0],
                  r = t.split("-")[1];
                if (r) {
                  var o = e.offsets,
                    a = o.reference,
                    i = o.popper,
                    s = -1 !== ["bottom", "top"].indexOf(n),
                    l = s ? "left" : "top",
                    c = s ? "width" : "height",
                    u = {
                      start: x({}, l, a[l]),
                      end: x({}, l, a[l] + a[c] - i[c]),
                    };
                  e.offsets.popper = M({}, i, u[r]);
                }
                return e;
              },
            },
            offset: {
              order: 200,
              enabled: !0,
              fn: function (e, t) {
                var n = t.offset,
                  r = e.placement,
                  o = e.offsets,
                  a = o.popper,
                  i = o.reference,
                  s = r.split("-")[0],
                  l = void 0;
                return (
                  (l = J(+n) ? [+n, 0] : oe(n, a, i, s)),
                  "left" === s
                    ? ((a.top += l[0]), (a.left -= l[1]))
                    : "right" === s
                    ? ((a.top += l[0]), (a.left += l[1]))
                    : "top" === s
                    ? ((a.left += l[0]), (a.top -= l[1]))
                    : "bottom" === s && ((a.left += l[0]), (a.top += l[1])),
                  (e.popper = a),
                  e
                );
              },
              offset: 0,
            },
            preventOverflow: {
              order: 300,
              enabled: !0,
              fn: function (e, t) {
                var n = t.boundariesElement || p(e.instance.popper);
                e.instance.reference === n && (n = p(n));
                var r = B("transform"),
                  o = e.instance.popper.style,
                  a = o.top,
                  i = o.left,
                  s = o[r];
                (o.top = ""), (o.left = ""), (o[r] = "");
                var l = P(
                  e.instance.popper,
                  e.instance.reference,
                  t.padding,
                  n,
                  e.positionFixed
                );
                (o.top = a), (o.left = i), (o[r] = s), (t.boundaries = l);
                var c = t.priority,
                  u = e.offsets.popper,
                  d = {
                    primary: function (e) {
                      var n = u[e];
                      return (
                        u[e] < l[e] &&
                          !t.escapeWithReference &&
                          (n = Math.max(u[e], l[e])),
                        x({}, e, n)
                      );
                    },
                    secondary: function (e) {
                      var n = "right" === e ? "left" : "top",
                        r = u[n];
                      return (
                        u[e] > l[e] &&
                          !t.escapeWithReference &&
                          (r = Math.min(
                            u[n],
                            l[e] - ("right" === e ? u.width : u.height)
                          )),
                        x({}, n, r)
                      );
                    },
                  };
                return (
                  c.forEach(function (e) {
                    var t =
                      -1 !== ["left", "top"].indexOf(e)
                        ? "primary"
                        : "secondary";
                    u = M({}, u, d[t](e));
                  }),
                  (e.offsets.popper = u),
                  e
                );
              },
              priority: ["left", "right", "top", "bottom"],
              padding: 5,
              boundariesElement: "scrollParent",
            },
            keepTogether: {
              order: 400,
              enabled: !0,
              fn: function (e) {
                var t = e.offsets,
                  n = t.popper,
                  r = t.reference,
                  o = e.placement.split("-")[0],
                  a = Math.floor,
                  i = -1 !== ["top", "bottom"].indexOf(o),
                  s = i ? "right" : "bottom",
                  l = i ? "left" : "top",
                  c = i ? "width" : "height";
                return (
                  n[s] < a(r[l]) && (e.offsets.popper[l] = a(r[l]) - n[c]),
                  n[l] > a(r[s]) && (e.offsets.popper[l] = a(r[s])),
                  e
                );
              },
            },
            arrow: {
              order: 500,
              enabled: !0,
              fn: function (e, t) {
                var n;
                if (!X(e.instance.modifiers, "arrow", "keepTogether")) return e;
                var r = t.element;
                if ("string" == typeof r) {
                  if (!(r = e.instance.popper.querySelector(r))) return e;
                } else if (!e.instance.popper.contains(r))
                  return (
                    console.warn(
                      "WARNING: `arrow.element` must be child of its popper element!"
                    ),
                    e
                  );
                var o = e.placement.split("-")[0],
                  a = e.offsets,
                  s = a.popper,
                  l = a.reference,
                  c = -1 !== ["left", "right"].indexOf(o),
                  u = c ? "height" : "width",
                  d = c ? "Top" : "Left",
                  h = d.toLowerCase(),
                  p = c ? "left" : "top",
                  f = c ? "bottom" : "right",
                  m = I(r)[u];
                l[f] - m < s[h] && (e.offsets.popper[h] -= s[h] - (l[f] - m)),
                  l[h] + m > s[f] && (e.offsets.popper[h] += l[h] + m - s[f]),
                  (e.offsets.popper = E(e.offsets.popper));
                var g = l[h] + l[u] / 2 - m / 2,
                  _ = i(e.instance.popper),
                  v = parseFloat(_["margin" + d]),
                  b = parseFloat(_["border" + d + "Width"]),
                  y = g - e.offsets.popper[h] - v - b;
                return (
                  (y = Math.max(Math.min(s[u] - m, y), 0)),
                  (e.arrowElement = r),
                  (e.offsets.arrow =
                    (x((n = {}), h, Math.round(y)), x(n, p, ""), n)),
                  e
                );
              },
              element: "[x-arrow]",
            },
            flip: {
              order: 600,
              enabled: !0,
              fn: function (e, t) {
                if (z(e.instance.modifiers, "inner")) return e;
                if (e.flipped && e.placement === e.originalPlacement) return e;
                var n = P(
                    e.instance.popper,
                    e.instance.reference,
                    t.padding,
                    t.boundariesElement,
                    e.positionFixed
                  ),
                  r = e.placement.split("-")[0],
                  o = R(r),
                  a = e.placement.split("-")[1] || "",
                  i = [];
                switch (t.behavior) {
                  case te:
                    i = [r, o];
                    break;
                  case ne:
                    i = ee(r);
                    break;
                  case re:
                    i = ee(r, !0);
                    break;
                  default:
                    i = t.behavior;
                }
                return (
                  i.forEach(function (s, l) {
                    if (r !== s || i.length === l + 1) return e;
                    (r = e.placement.split("-")[0]), (o = R(r));
                    var c = e.offsets.popper,
                      u = e.offsets.reference,
                      d = Math.floor,
                      h =
                        ("left" === r && d(c.right) > d(u.left)) ||
                        ("right" === r && d(c.left) < d(u.right)) ||
                        ("top" === r && d(c.bottom) > d(u.top)) ||
                        ("bottom" === r && d(c.top) < d(u.bottom)),
                      p = d(c.left) < d(n.left),
                      f = d(c.right) > d(n.right),
                      m = d(c.top) < d(n.top),
                      g = d(c.bottom) > d(n.bottom),
                      _ =
                        ("left" === r && p) ||
                        ("right" === r && f) ||
                        ("top" === r && m) ||
                        ("bottom" === r && g),
                      v = -1 !== ["top", "bottom"].indexOf(r),
                      b =
                        !!t.flipVariations &&
                        ((v && "start" === a && p) ||
                          (v && "end" === a && f) ||
                          (!v && "start" === a && m) ||
                          (!v && "end" === a && g)),
                      y =
                        !!t.flipVariationsByContent &&
                        ((v && "start" === a && f) ||
                          (v && "end" === a && p) ||
                          (!v && "start" === a && g) ||
                          (!v && "end" === a && m)),
                      w = b || y;
                    (h || _ || w) &&
                      ((e.flipped = !0),
                      (h || _) && (r = i[l + 1]),
                      w &&
                        (a = (function (e) {
                          return "end" === e
                            ? "start"
                            : "start" === e
                            ? "end"
                            : e;
                        })(a)),
                      (e.placement = r + (a ? "-" + a : "")),
                      (e.offsets.popper = M(
                        {},
                        e.offsets.popper,
                        Y(e.instance.popper, e.offsets.reference, e.placement)
                      )),
                      (e = F(e.instance.modifiers, e, "flip")));
                  }),
                  e
                );
              },
              behavior: "flip",
              padding: 5,
              boundariesElement: "viewport",
              flipVariations: !1,
              flipVariationsByContent: !1,
            },
            inner: {
              order: 700,
              enabled: !1,
              fn: function (e) {
                var t = e.placement,
                  n = t.split("-")[0],
                  r = e.offsets,
                  o = r.popper,
                  a = r.reference,
                  i = -1 !== ["left", "right"].indexOf(n),
                  s = -1 === ["top", "left"].indexOf(n);
                return (
                  (o[i ? "left" : "top"] =
                    a[n] - (s ? o[i ? "width" : "height"] : 0)),
                  (e.placement = R(t)),
                  (e.offsets.popper = E(o)),
                  e
                );
              },
            },
            hide: {
              order: 800,
              enabled: !0,
              fn: function (e) {
                if (!X(e.instance.modifiers, "hide", "preventOverflow"))
                  return e;
                var t = e.offsets.reference,
                  n = j(e.instance.modifiers, function (e) {
                    return "preventOverflow" === e.name;
                  }).boundaries;
                if (
                  t.bottom < n.top ||
                  t.left > n.right ||
                  t.top > n.bottom ||
                  t.right < n.left
                ) {
                  if (!0 === e.hide) return e;
                  (e.hide = !0), (e.attributes["x-out-of-boundaries"] = "");
                } else {
                  if (!1 === e.hide) return e;
                  (e.hide = !1), (e.attributes["x-out-of-boundaries"] = !1);
                }
                return e;
              },
            },
            computeStyle: {
              order: 850,
              enabled: !0,
              fn: function (e, t) {
                var n = t.x,
                  r = t.y,
                  o = e.offsets.popper,
                  a = j(e.instance.modifiers, function (e) {
                    return "applyStyle" === e.name;
                  }).gpuAcceleration;
                void 0 !== a &&
                  console.warn(
                    "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"
                  );
                var i = void 0 !== a ? a : t.gpuAcceleration,
                  s = p(e.instance.popper),
                  l = T(s),
                  c = { position: o.position },
                  u = (function (e, t) {
                    var n = e.offsets,
                      r = n.popper,
                      o = n.reference,
                      a = Math.round,
                      i = Math.floor,
                      s = function (e) {
                        return e;
                      },
                      l = a(o.width),
                      c = a(r.width),
                      u = -1 !== ["left", "right"].indexOf(e.placement),
                      d = -1 !== e.placement.indexOf("-"),
                      h = t ? (u || d || l % 2 == c % 2 ? a : i) : s,
                      p = t ? a : s;
                    return {
                      left: h(
                        l % 2 == 1 && c % 2 == 1 && !d && t
                          ? r.left - 1
                          : r.left
                      ),
                      top: p(r.top),
                      bottom: p(r.bottom),
                      right: h(r.right),
                    };
                  })(e, window.devicePixelRatio < 2 || !Q),
                  d = "bottom" === n ? "top" : "bottom",
                  h = "right" === r ? "left" : "right",
                  f = B("transform"),
                  m = void 0,
                  g = void 0;
                if (
                  ((g =
                    "bottom" === d
                      ? "HTML" === s.nodeName
                        ? -s.clientHeight + u.bottom
                        : -l.height + u.bottom
                      : u.top),
                  (m =
                    "right" === h
                      ? "HTML" === s.nodeName
                        ? -s.clientWidth + u.right
                        : -l.width + u.right
                      : u.left),
                  i && f)
                )
                  (c[f] = "translate3d(" + m + "px, " + g + "px, 0)"),
                    (c[d] = 0),
                    (c[h] = 0),
                    (c.willChange = "transform");
                else {
                  var _ = "bottom" === d ? -1 : 1,
                    v = "right" === h ? -1 : 1;
                  (c[d] = g * _), (c[h] = m * v), (c.willChange = d + ", " + h);
                }
                var b = { "x-placement": e.placement };
                return (
                  (e.attributes = M({}, b, e.attributes)),
                  (e.styles = M({}, c, e.styles)),
                  (e.arrowStyles = M({}, e.offsets.arrow, e.arrowStyles)),
                  e
                );
              },
              gpuAcceleration: !0,
              x: "bottom",
              y: "right",
            },
            applyStyle: {
              order: 900,
              enabled: !0,
              fn: function (e) {
                var t, n;
                return (
                  K(e.instance.popper, e.styles),
                  (t = e.instance.popper),
                  (n = e.attributes),
                  Object.keys(n).forEach(function (e) {
                    !1 !== n[e]
                      ? t.setAttribute(e, n[e])
                      : t.removeAttribute(e);
                  }),
                  e.arrowElement &&
                    Object.keys(e.arrowStyles).length &&
                    K(e.arrowElement, e.arrowStyles),
                  e
                );
              },
              onLoad: function (e, t, n, r, o) {
                var a = A(o, t, e, n.positionFixed),
                  i = N(
                    n.placement,
                    a,
                    t,
                    e,
                    n.modifiers.flip.boundariesElement,
                    n.modifiers.flip.padding
                  );
                return (
                  t.setAttribute("x-placement", i),
                  K(t, { position: n.positionFixed ? "fixed" : "absolute" }),
                  n
                );
              },
              gpuAcceleration: void 0,
            },
          },
        },
        ie = (function () {
          function e(t, n) {
            var r = this,
              i =
                arguments.length > 2 && void 0 !== arguments[2]
                  ? arguments[2]
                  : {};
            w(this, e),
              (this.scheduleUpdate = function () {
                return requestAnimationFrame(r.update);
              }),
              (this.update = o(this.update.bind(this))),
              (this.options = M({}, e.Defaults, i)),
              (this.state = {
                isDestroyed: !1,
                isCreated: !1,
                scrollParents: [],
              }),
              (this.reference = t && t.jquery ? t[0] : t),
              (this.popper = n && n.jquery ? n[0] : n),
              (this.options.modifiers = {}),
              Object.keys(M({}, e.Defaults.modifiers, i.modifiers)).forEach(
                function (t) {
                  r.options.modifiers[t] = M(
                    {},
                    e.Defaults.modifiers[t] || {},
                    i.modifiers ? i.modifiers[t] : {}
                  );
                }
              ),
              (this.modifiers = Object.keys(this.options.modifiers)
                .map(function (e) {
                  return M({ name: e }, r.options.modifiers[e]);
                })
                .sort(function (e, t) {
                  return e.order - t.order;
                })),
              this.modifiers.forEach(function (e) {
                e.enabled &&
                  a(e.onLoad) &&
                  e.onLoad(r.reference, r.popper, r.options, e, r.state);
              }),
              this.update();
            var s = this.options.eventsEnabled;
            s && this.enableEventListeners(), (this.state.eventsEnabled = s);
          }
          return (
            k(e, [
              {
                key: "update",
                value: function () {
                  return H.call(this);
                },
              },
              {
                key: "destroy",
                value: function () {
                  return U.call(this);
                },
              },
              {
                key: "enableEventListeners",
                value: function () {
                  return q.call(this);
                },
              },
              {
                key: "disableEventListeners",
                value: function () {
                  return G.call(this);
                },
              },
            ]),
            e
          );
        })();
      (ie.Utils = ("undefined" != typeof window ? window : e).PopperUtils),
        (ie.placements = $),
        (ie.Defaults = ae),
        (t.a = ie);
    }.call(this, n(35)));
  },
  function (e, t, n) {
    "use strict";
    t.__esModule = !0;
    var r = a(n(0)),
      o = a(n(351));
    function a(e) {
      return e && e.__esModule ? e : { default: e };
    }
    (t.default = r.default.createContext || o.default), (e.exports = t.default);
  },
  function (e, t, n) {
    "use strict";
    (function (e) {
      Object.defineProperty(t, "__esModule", { value: !0 }),
        Object.defineProperty(t, "Chart", {
          enumerable: !0,
          get: function () {
            return a.default;
          },
        }),
        (t.defaults = t.Scatter = t.Bubble = t.Polar = t.Radar = t.HorizontalBar = t.Bar = t.Line = t.Pie = t.Doughnut = t.default = void 0);
      var r = l(n(0)),
        o = l(n(19)),
        a = l(n(353)),
        i = l(n(354)),
        s = l(n(416));
      function l(e) {
        return e && e.__esModule ? e : { default: e };
      }
      function c() {
        return (c =
          Object.assign ||
          function (e) {
            for (var t = 1; t < arguments.length; t++) {
              var n = arguments[t];
              for (var r in n)
                Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
            }
            return e;
          }).apply(this, arguments);
      }
      function u(e) {
        return (u =
          "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
            ? function (e) {
                return typeof e;
              }
            : function (e) {
                return e &&
                  "function" == typeof Symbol &&
                  e.constructor === Symbol &&
                  e !== Symbol.prototype
                  ? "symbol"
                  : typeof e;
              })(e);
      }
      function d(e, t) {
        if (null == e) return {};
        var n,
          r,
          o = (function (e, t) {
            if (null == e) return {};
            var n,
              r,
              o = {},
              a = Object.keys(e);
            for (r = 0; r < a.length; r++)
              (n = a[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
            return o;
          })(e, t);
        if (Object.getOwnPropertySymbols) {
          var a = Object.getOwnPropertySymbols(e);
          for (r = 0; r < a.length; r++)
            (n = a[r]),
              t.indexOf(n) >= 0 ||
                (Object.prototype.propertyIsEnumerable.call(e, n) &&
                  (o[n] = e[n]));
        }
        return o;
      }
      function h(e, t) {
        var n = Object.keys(e);
        if (Object.getOwnPropertySymbols) {
          var r = Object.getOwnPropertySymbols(e);
          t &&
            (r = r.filter(function (t) {
              return Object.getOwnPropertyDescriptor(e, t).enumerable;
            })),
            n.push.apply(n, r);
        }
        return n;
      }
      function p(e) {
        for (var t = 1; t < arguments.length; t++) {
          var n = null != arguments[t] ? arguments[t] : {};
          t % 2
            ? h(Object(n), !0).forEach(function (t) {
                x(e, t, n[t]);
              })
            : Object.getOwnPropertyDescriptors
            ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
            : h(Object(n)).forEach(function (t) {
                Object.defineProperty(
                  e,
                  t,
                  Object.getOwnPropertyDescriptor(n, t)
                );
              });
        }
        return e;
      }
      function f(e, t) {
        if (!(e instanceof t))
          throw new TypeError("Cannot call a class as a function");
      }
      function m(e, t) {
        for (var n = 0; n < t.length; n++) {
          var r = t[n];
          (r.enumerable = r.enumerable || !1),
            (r.configurable = !0),
            "value" in r && (r.writable = !0),
            Object.defineProperty(e, r.key, r);
        }
      }
      function g(e, t, n) {
        return t && m(e.prototype, t), n && m(e, n), e;
      }
      function _(e, t) {
        if ("function" != typeof t && null !== t)
          throw new TypeError(
            "Super expression must either be null or a function"
          );
        (e.prototype = Object.create(t && t.prototype, {
          constructor: { value: e, writable: !0, configurable: !0 },
        })),
          t && v(e, t);
      }
      function v(e, t) {
        return (v =
          Object.setPrototypeOf ||
          function (e, t) {
            return (e.__proto__ = t), e;
          })(e, t);
      }
      function b(e) {
        var t = (function () {
          if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
          if (Reflect.construct.sham) return !1;
          if ("function" == typeof Proxy) return !0;
          try {
            return (
              Date.prototype.toString.call(
                Reflect.construct(Date, [], function () {})
              ),
              !0
            );
          } catch (e) {
            return !1;
          }
        })();
        return function () {
          var n,
            r = k(e);
          if (t) {
            var o = k(this).constructor;
            n = Reflect.construct(r, arguments, o);
          } else n = r.apply(this, arguments);
          return y(this, n);
        };
      }
      function y(e, t) {
        return !t || ("object" !== u(t) && "function" != typeof t) ? w(e) : t;
      }
      function w(e) {
        if (void 0 === e)
          throw new ReferenceError(
            "this hasn't been initialised - super() hasn't been called"
          );
        return e;
      }
      function k(e) {
        return (k = Object.setPrototypeOf
          ? Object.getPrototypeOf
          : function (e) {
              return e.__proto__ || Object.getPrototypeOf(e);
            })(e);
      }
      function x(e, t, n) {
        return (
          t in e
            ? Object.defineProperty(e, t, {
                value: n,
                enumerable: !0,
                configurable: !0,
                writable: !0,
              })
            : (e[t] = n),
          e
        );
      }
      var M = void 0 !== e && e.env && "production",
        E = (function (e) {
          _(n, e);
          var t = b(n);
          function n() {
            var e;
            return (
              f(this, n),
              x(w((e = t.call(this))), "handleOnClick", function (t) {
                var n = e.chartInstance,
                  r = e.props,
                  o = r.getDatasetAtEvent,
                  a = r.getElementAtEvent,
                  i = r.getElementsAtEvent,
                  s = r.onElementsClick;
                o && o(n.getDatasetAtEvent(t), t),
                  a && a(n.getElementAtEvent(t), t),
                  i && i(n.getElementsAtEvent(t), t),
                  s && s(n.getElementsAtEvent(t), t);
              }),
              x(w(e), "ref", function (t) {
                e.element = t;
              }),
              (e.chartInstance = void 0),
              e
            );
          }
          return (
            g(n, [
              {
                key: "componentDidMount",
                value: function () {
                  this.renderChart();
                },
              },
              {
                key: "componentDidUpdate",
                value: function () {
                  if (this.props.redraw)
                    return this.destroyChart(), void this.renderChart();
                  this.updateChart();
                },
              },
              {
                key: "shouldComponentUpdate",
                value: function (e) {
                  var t = this.props,
                    n = (t.redraw, t.type),
                    r = t.options,
                    o = t.plugins,
                    a = t.legend,
                    s = t.height,
                    l = t.width;
                  if (!0 === e.redraw) return !0;
                  if (s !== e.height || l !== e.width) return !0;
                  if (n !== e.type) return !0;
                  if (!(0, i.default)(a, e.legend)) return !0;
                  if (!(0, i.default)(r, e.options)) return !0;
                  var c = this.transformDataProp(e);
                  return (
                    !(0, i.default)(this.shadowDataProp, c) ||
                    !(0, i.default)(o, e.plugins)
                  );
                },
              },
              {
                key: "componentWillUnmount",
                value: function () {
                  this.destroyChart();
                },
              },
              {
                key: "transformDataProp",
                value: function (e) {
                  var t = e.data;
                  return "function" == typeof t ? t(this.element) : t;
                },
              },
              {
                key: "memoizeDataProps",
                value: function () {
                  if (this.props.data) {
                    var e = this.transformDataProp(this.props);
                    return (
                      (this.shadowDataProp = p(
                        p({}, e),
                        {},
                        {
                          datasets:
                            e.datasets &&
                            e.datasets.map(function (e) {
                              return p({}, e);
                            }),
                        }
                      )),
                      this.saveCurrentDatasets(),
                      e
                    );
                  }
                },
              },
              {
                key: "checkDatasets",
                value: function (e) {
                  var t = "production" !== M && "prod" !== M,
                    r = this.props.datasetKeyProvider !== n.getLabelAsKey,
                    o = e.length > 1;
                  if (t && o && !r) {
                    var a = !1;
                    e.forEach(function (e) {
                      e.label || (a = !0);
                    }),
                      a &&
                        console.error(
                          '[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.'
                        );
                  }
                },
              },
              {
                key: "getCurrentDatasets",
                value: function () {
                  return (
                    (this.chartInstance &&
                      this.chartInstance.config.data &&
                      this.chartInstance.config.data.datasets) ||
                    []
                  );
                },
              },
              {
                key: "saveCurrentDatasets",
                value: function () {
                  var e = this;
                  (this.datasets = this.datasets || {}),
                    this.getCurrentDatasets().forEach(function (t) {
                      e.datasets[e.props.datasetKeyProvider(t)] = t;
                    });
                },
              },
              {
                key: "updateChart",
                value: function () {
                  var e = this,
                    t = this.props.options,
                    n = this.memoizeDataProps(this.props);
                  if (this.chartInstance) {
                    t &&
                      (this.chartInstance.options = a.default.helpers.configMerge(
                        this.chartInstance.options,
                        t
                      ));
                    var r = this.getCurrentDatasets(),
                      o = n.datasets || [];
                    this.checkDatasets(r);
                    var i = (0, s.default)(r, this.props.datasetKeyProvider);
                    this.chartInstance.config.data.datasets = o.map(function (
                      t
                    ) {
                      var n = i[e.props.datasetKeyProvider(t)];
                      if (n && n.type === t.type && t.data) {
                        n.data.splice(t.data.length),
                          t.data.forEach(function (e, r) {
                            n.data[r] = t.data[r];
                          });
                        t.data;
                        var r = d(t, ["data"]);
                        return p(p({}, n), r);
                      }
                      return t;
                    });
                    n.datasets;
                    var l = d(n, ["datasets"]);
                    (this.chartInstance.config.data = p(
                      p({}, this.chartInstance.config.data),
                      l
                    )),
                      this.chartInstance.update();
                  }
                },
              },
              {
                key: "renderChart",
                value: function () {
                  var e = this.props,
                    t = e.options,
                    r = e.legend,
                    o = e.type,
                    s = e.plugins,
                    l = this.element,
                    c = this.memoizeDataProps();
                  void 0 === r ||
                    (0, i.default)(n.defaultProps.legend, r) ||
                    (t.legend = r),
                    (this.chartInstance = new a.default(l, {
                      type: o,
                      data: c,
                      options: t,
                      plugins: s,
                    }));
                },
              },
              {
                key: "destroyChart",
                value: function () {
                  if (this.chartInstance) {
                    this.saveCurrentDatasets();
                    var e = Object.values(this.datasets);
                    (this.chartInstance.config.data.datasets = e),
                      this.chartInstance.destroy();
                  }
                },
              },
              {
                key: "render",
                value: function () {
                  var e = this.props,
                    t = e.height,
                    n = e.width,
                    o = e.id;
                  return r.default.createElement("canvas", {
                    ref: this.ref,
                    height: t,
                    width: n,
                    id: o,
                    onClick: this.handleOnClick,
                  });
                },
              },
            ]),
            n
          );
        })(r.default.Component);
      x(E, "getLabelAsKey", function (e) {
        return e.label;
      }),
        x(E, "propTypes", {
          data: o.default.oneOfType([o.default.object, o.default.func])
            .isRequired,
          getDatasetAtEvent: o.default.func,
          getElementAtEvent: o.default.func,
          getElementsAtEvent: o.default.func,
          height: o.default.number,
          legend: o.default.object,
          onElementsClick: o.default.func,
          options: o.default.object,
          plugins: o.default.arrayOf(o.default.object),
          redraw: o.default.bool,
          type: function (e, t, n) {
            if (!a.default.controllers[e[t]])
              return new Error(
                "Invalid chart type `" + e[t] + "` supplied to `" + n + "`."
              );
          },
          width: o.default.number,
          datasetKeyProvider: o.default.func,
        }),
        x(E, "defaultProps", {
          legend: { display: !0, position: "bottom" },
          type: "doughnut",
          height: 150,
          width: 300,
          redraw: !1,
          options: {},
          datasetKeyProvider: E.getLabelAsKey,
        });
      var T = E;
      t.default = T;
      var S = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "doughnut",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.Doughnut = S;
      var D = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "pie",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.Pie = D;
      var L = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "line",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.Line = L;
      var C = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "bar",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.Bar = C;
      var P = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "horizontalBar",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.HorizontalBar = P;
      var O = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "radar",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.Radar = O;
      var N = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "polarArea",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.Polar = N;
      var A = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "bubble",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.Bubble = A;
      var I = (function (e) {
        _(n, e);
        var t = b(n);
        function n() {
          return f(this, n), t.apply(this, arguments);
        }
        return (
          g(n, [
            {
              key: "render",
              value: function () {
                var e = this;
                return r.default.createElement(
                  E,
                  c({}, this.props, {
                    ref: function (t) {
                      return (e.chartInstance = t && t.chartInstance);
                    },
                    type: "scatter",
                  })
                );
              },
            },
          ]),
          n
        );
      })(r.default.Component);
      t.Scatter = I;
      var R = a.default.defaults;
      t.defaults = R;
    }.call(this, n(85)));
  },
  function (e, t, n) {
    "use strict";
    e.exports = function (e, t) {
      return function () {
        for (var n = new Array(arguments.length), r = 0; r < n.length; r++)
          n[r] = arguments[r];
        return e.apply(t, n);
      };
    };
  },
  function (e, t) {
    var n,
      r,
      o = (e.exports = {});
    function a() {
      throw new Error("setTimeout has not been defined");
    }
    function i() {
      throw new Error("clearTimeout has not been defined");
    }
    function s(e) {
      if (n === setTimeout) return setTimeout(e, 0);
      if ((n === a || !n) && setTimeout)
        return (n = setTimeout), setTimeout(e, 0);
      try {
        return n(e, 0);
      } catch (t) {
        try {
          return n.call(null, e, 0);
        } catch (t) {
          return n.call(this, e, 0);
        }
      }
    }
    !(function () {
      try {
        n = "function" == typeof setTimeout ? setTimeout : a;
      } catch (e) {
        n = a;
      }
      try {
        r = "function" == typeof clearTimeout ? clearTimeout : i;
      } catch (e) {
        r = i;
      }
    })();
    var l,
      c = [],
      u = !1,
      d = -1;
    function h() {
      u &&
        l &&
        ((u = !1), l.length ? (c = l.concat(c)) : (d = -1), c.length && p());
    }
    function p() {
      if (!u) {
        var e = s(h);
        u = !0;
        for (var t = c.length; t; ) {
          for (l = c, c = []; ++d < t; ) l && l[d].run();
          (d = -1), (t = c.length);
        }
        (l = null),
          (u = !1),
          (function (e) {
            if (r === clearTimeout) return clearTimeout(e);
            if ((r === i || !r) && clearTimeout)
              return (r = clearTimeout), clearTimeout(e);
            try {
              r(e);
            } catch (t) {
              try {
                return r.call(null, e);
              } catch (t) {
                return r.call(this, e);
              }
            }
          })(e);
      }
    }
    function f(e, t) {
      (this.fun = e), (this.array = t);
    }
    function m() {}
    (o.nextTick = function (e) {
      var t = new Array(arguments.length - 1);
      if (arguments.length > 1)
        for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
      c.push(new f(e, t)), 1 !== c.length || u || s(p);
    }),
      (f.prototype.run = function () {
        this.fun.apply(null, this.array);
      }),
      (o.title = "browser"),
      (o.browser = !0),
      (o.env = {}),
      (o.argv = []),
      (o.version = ""),
      (o.versions = {}),
      (o.on = m),
      (o.addListener = m),
      (o.once = m),
      (o.off = m),
      (o.removeListener = m),
      (o.removeAllListeners = m),
      (o.emit = m),
      (o.prependListener = m),
      (o.prependOnceListener = m),
      (o.listeners = function (e) {
        return [];
      }),
      (o.binding = function (e) {
        throw new Error("process.binding is not supported");
      }),
      (o.cwd = function () {
        return "/";
      }),
      (o.chdir = function (e) {
        throw new Error("process.chdir is not supported");
      }),
      (o.umask = function () {
        return 0;
      });
  },
  function (e, t, n) {
    "use strict";
    var r = n(16),
      o = n(266),
      a = n(268),
      i = n(269),
      s = n(270),
      l = n(87);
    e.exports = function (e) {
      return new Promise(function (t, c) {
        var u = e.data,
          d = e.headers;
        r.isFormData(u) && delete d["Content-Type"];
        var h = new XMLHttpRequest();
        if (e.auth) {
          var p = e.auth.username || "",
            f = e.auth.password || "";
          d.Authorization = "Basic " + btoa(p + ":" + f);
        }
        if (
          (h.open(
            e.method.toUpperCase(),
            a(e.url, e.params, e.paramsSerializer),
            !0
          ),
          (h.timeout = e.timeout),
          (h.onreadystatechange = function () {
            if (
              h &&
              4 === h.readyState &&
              (0 !== h.status ||
                (h.responseURL && 0 === h.responseURL.indexOf("file:")))
            ) {
              var n =
                  "getAllResponseHeaders" in h
                    ? i(h.getAllResponseHeaders())
                    : null,
                r = {
                  data:
                    e.responseType && "text" !== e.responseType
                      ? h.response
                      : h.responseText,
                  status: h.status,
                  statusText: h.statusText,
                  headers: n,
                  config: e,
                  request: h,
                };
              o(t, c, r), (h = null);
            }
          }),
          (h.onerror = function () {
            c(l("Network Error", e, null, h)), (h = null);
          }),
          (h.ontimeout = function () {
            c(
              l("timeout of " + e.timeout + "ms exceeded", e, "ECONNABORTED", h)
            ),
              (h = null);
          }),
          r.isStandardBrowserEnv())
        ) {
          var m = n(271),
            g =
              (e.withCredentials || s(e.url)) && e.xsrfCookieName
                ? m.read(e.xsrfCookieName)
                : void 0;
          g && (d[e.xsrfHeaderName] = g);
        }
        if (
          ("setRequestHeader" in h &&
            r.forEach(d, function (e, t) {
              void 0 === u && "content-type" === t.toLowerCase()
                ? delete d[t]
                : h.setRequestHeader(t, e);
            }),
          e.withCredentials && (h.withCredentials = !0),
          e.responseType)
        )
          try {
            h.responseType = e.responseType;
          } catch (t) {
            if ("json" !== e.responseType) throw t;
          }
        "function" == typeof e.onDownloadProgress &&
          h.addEventListener("progress", e.onDownloadProgress),
          "function" == typeof e.onUploadProgress &&
            h.upload &&
            h.upload.addEventListener("progress", e.onUploadProgress),
          e.cancelToken &&
            e.cancelToken.promise.then(function (e) {
              h && (h.abort(), c(e), (h = null));
            }),
          void 0 === u && (u = null),
          h.send(u);
      });
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(267);
    e.exports = function (e, t, n, o, a) {
      var i = new Error(e);
      return r(i, t, n, o, a);
    };
  },
  function (e, t, n) {
    "use strict";
    e.exports = function (e) {
      return !(!e || !e.__CANCEL__);
    };
  },
  function (e, t, n) {
    "use strict";
    function r(e) {
      this.message = e;
    }
    (r.prototype.toString = function () {
      return "Cancel" + (this.message ? ": " + this.message : "");
    }),
      (r.prototype.__CANCEL__ = !0),
      (e.exports = r);
  },
  function (e, t, n) {
    "use strict";
    function r() {
      var e = this.constructor.getDerivedStateFromProps(this.props, this.state);
      null != e && this.setState(e);
    }
    function o(e) {
      this.setState(
        function (t) {
          var n = this.constructor.getDerivedStateFromProps(e, t);
          return null != n ? n : null;
        }.bind(this)
      );
    }
    function a(e, t) {
      try {
        var n = this.props,
          r = this.state;
        (this.props = e),
          (this.state = t),
          (this.__reactInternalSnapshotFlag = !0),
          (this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(n, r));
      } finally {
        (this.props = n), (this.state = r);
      }
    }
    function i(e) {
      var t = e.prototype;
      if (!t || !t.isReactComponent)
        throw new Error("Can only polyfill class components");
      if (
        "function" != typeof e.getDerivedStateFromProps &&
        "function" != typeof t.getSnapshotBeforeUpdate
      )
        return e;
      var n = null,
        i = null,
        s = null;
      if (
        ("function" == typeof t.componentWillMount
          ? (n = "componentWillMount")
          : "function" == typeof t.UNSAFE_componentWillMount &&
            (n = "UNSAFE_componentWillMount"),
        "function" == typeof t.componentWillReceiveProps
          ? (i = "componentWillReceiveProps")
          : "function" == typeof t.UNSAFE_componentWillReceiveProps &&
            (i = "UNSAFE_componentWillReceiveProps"),
        "function" == typeof t.componentWillUpdate
          ? (s = "componentWillUpdate")
          : "function" == typeof t.UNSAFE_componentWillUpdate &&
            (s = "UNSAFE_componentWillUpdate"),
        null !== n || null !== i || null !== s)
      ) {
        var l = e.displayName || e.name,
          c =
            "function" == typeof e.getDerivedStateFromProps
              ? "getDerivedStateFromProps()"
              : "getSnapshotBeforeUpdate()";
        throw Error(
          "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" +
            l +
            " uses " +
            c +
            " but also contains the following legacy lifecycles:" +
            (null !== n ? "\n  " + n : "") +
            (null !== i ? "\n  " + i : "") +
            (null !== s ? "\n  " + s : "") +
            "\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks"
        );
      }
      if (
        ("function" == typeof e.getDerivedStateFromProps &&
          ((t.componentWillMount = r), (t.componentWillReceiveProps = o)),
        "function" == typeof t.getSnapshotBeforeUpdate)
      ) {
        if ("function" != typeof t.componentDidUpdate)
          throw new Error(
            "Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
          );
        t.componentWillUpdate = a;
        var u = t.componentDidUpdate;
        t.componentDidUpdate = function (e, t, n) {
          var r = this.__reactInternalSnapshotFlag
            ? this.__reactInternalSnapshot
            : n;
          u.call(this, e, t, r);
        };
      }
      return e;
    }
    n.r(t),
      n.d(t, "polyfill", function () {
        return i;
      }),
      (r.__suppressDeprecationWarning = !0),
      (o.__suppressDeprecationWarning = !0),
      (a.__suppressDeprecationWarning = !0);
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.Flip = t.Zoom = t.Slide = t.Bounce = void 0);
    var r,
      o = (r = n(92)) && r.__esModule ? r : { default: r };
    var a = (0, o.default)({
      enter: "Toastify__bounce-enter",
      exit: "Toastify__bounce-exit",
      appendPosition: !0,
    });
    t.Bounce = a;
    var i = (0, o.default)({
      enter: "Toastify__slide-enter",
      exit: "Toastify__slide-exit",
      duration: [450, 750],
      appendPosition: !0,
    });
    t.Slide = i;
    var s = (0, o.default)({
      enter: "Toastify__zoom-enter",
      exit: "Toastify__zoom-exit",
    });
    t.Zoom = s;
    var l = (0, o.default)({
      enter: "Toastify__flip-enter",
      exit: "Toastify__flip-exit",
    });
    t.Flip = l;
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0),
      (t.default = function (e) {
        var t = e.enter,
          n = e.exit,
          a = e.duration,
          l = void 0 === a ? 750 : a,
          c = e.appendPosition,
          u = void 0 !== c && c;
        return function (e) {
          var a,
            c,
            d = e.children,
            h = e.position,
            p = e.preventExitTransition,
            f = (function (e, t) {
              if (null == e) return {};
              var n,
                r,
                o = {},
                a = Object.keys(e);
              for (r = 0; r < a.length; r++)
                (n = a[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
              return o;
            })(e, ["children", "position", "preventExitTransition"]),
            m = u ? t + "--" + h : t,
            g = u ? n + "--" + h : n;
          Array.isArray(l) && 2 === l.length
            ? ((a = l[0]), (c = l[1]))
            : (a = c = l);
          return r.default.createElement(
            o.default,
            i({}, f, {
              timeout: p ? 0 : { enter: a, exit: c },
              onEnter: function (e) {
                e.classList.add(m),
                  (e.style.animationFillMode = "forwards"),
                  (e.style.animationDuration = 0.001 * a + "s");
              },
              onEntered: function (e) {
                e.classList.remove(m), (e.style.cssText = "");
              },
              onExit: p
                ? s
                : function (e) {
                    e.classList.add(g),
                      (e.style.animationFillMode = "forwards"),
                      (e.style.animationDuration = 0.001 * c + "s");
                  },
            }),
            d
          );
        };
      });
    var r = a(n(0)),
      o = a(n(287));
    function a(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function i() {
      return (i =
        Object.assign ||
        function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n)
              Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }).apply(this, arguments);
    }
    var s = function () {};
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.default = void 0);
    var r = {
      list: new Map(),
      on: function (e, t) {
        return (
          this.list.has(e) || this.list.set(e, []),
          this.list.get(e).push(t),
          this
        );
      },
      off: function (e) {
        return this.list.delete(e), this;
      },
      emit: function (e) {
        for (
          var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
          r < t;
          r++
        )
          n[r - 1] = arguments[r];
        return (
          !!this.list.has(e) &&
          (this.list.get(e).forEach(function (e) {
            return setTimeout(function () {
              return e.call.apply(e, [null].concat(n));
            }, 0);
          }),
          !0)
        );
      },
    };
    t.default = r;
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          return /^nm$/i.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 12 ? (n ? "vm" : "VM") : n ? "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 (e) {
          return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de");
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "١",
          2: "٢",
          3: "٣",
          4: "٤",
          5: "٥",
          6: "٦",
          7: "٧",
          8: "٨",
          9: "٩",
          0: "٠",
        },
        n = {
          "١": "1",
          "٢": "2",
          "٣": "3",
          "٤": "4",
          "٥": "5",
          "٦": "6",
          "٧": "7",
          "٨": "8",
          "٩": "9",
          "٠": "0",
        },
        r = function (e) {
          return 0 === e
            ? 0
            : 1 === e
            ? 1
            : 2 === e
            ? 2
            : e % 100 >= 3 && e % 100 <= 10
            ? 3
            : e % 100 >= 11
            ? 4
            : 5;
        },
        o = {
          s: [
            "أقل من ثانية",
            "ثانية واحدة",
            ["ثانيتان", "ثانيتين"],
            "%d ثوان",
            "%d ثانية",
            "%d ثانية",
          ],
          m: [
            "أقل من دقيقة",
            "دقيقة واحدة",
            ["دقيقتان", "دقيقتين"],
            "%d دقائق",
            "%d دقيقة",
            "%d دقيقة",
          ],
          h: [
            "أقل من ساعة",
            "ساعة واحدة",
            ["ساعتان", "ساعتين"],
            "%d ساعات",
            "%d ساعة",
            "%d ساعة",
          ],
          d: [
            "أقل من يوم",
            "يوم واحد",
            ["يومان", "يومين"],
            "%d أيام",
            "%d يومًا",
            "%d يوم",
          ],
          M: [
            "أقل من شهر",
            "شهر واحد",
            ["شهران", "شهرين"],
            "%d أشهر",
            "%d شهرا",
            "%d شهر",
          ],
          y: [
            "أقل من عام",
            "عام واحد",
            ["عامان", "عامين"],
            "%d أعوام",
            "%d عامًا",
            "%d عام",
          ],
        },
        a = function (e) {
          return function (t, n, a, i) {
            var s = r(t),
              l = o[e][r(t)];
            return 2 === s && (l = l[n ? 0 : 1]), l.replace(/%d/i, t);
          };
        },
        i = [
          "يناير",
          "فبراير",
          "مارس",
          "أبريل",
          "مايو",
          "يونيو",
          "يوليو",
          "أغسطس",
          "سبتمبر",
          "أكتوبر",
          "نوفمبر",
          "ديسمبر",
        ];
      e.defineLocale("ar", {
        months: i,
        monthsShort: i,
        weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split(
          "_"
        ),
        weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
        weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return "م" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "ص" : "م";
        },
        calendar: {
          sameDay: "[اليوم عند الساعة] LT",
          nextDay: "[غدًا عند الساعة] LT",
          nextWeek: "dddd [عند الساعة] LT",
          lastDay: "[أمس عند الساعة] LT",
          lastWeek: "dddd [عند الساعة] LT",
          sameElse: "L",
        },
        relativeTime: {
          future: "بعد %s",
          past: "منذ %s",
          s: a("s"),
          ss: a("s"),
          m: a("m"),
          mm: a("m"),
          h: a("h"),
          hh: a("h"),
          d: a("d"),
          dd: a("d"),
          M: a("M"),
          MM: a("M"),
          y: a("y"),
          yy: a("y"),
        },
        preparse: function (e) {
          return e
            .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) {
              return n[e];
            })
            .replace(/،/g, ",");
        },
        postformat: function (e) {
          return e
            .replace(/\d/g, function (e) {
              return t[e];
            })
            .replace(/,/g, "،");
        },
        week: { dow: 6, doy: 12 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = function (e) {
          return 0 === e
            ? 0
            : 1 === e
            ? 1
            : 2 === e
            ? 2
            : e % 100 >= 3 && e % 100 <= 10
            ? 3
            : e % 100 >= 11
            ? 4
            : 5;
        },
        n = {
          s: [
            "أقل من ثانية",
            "ثانية واحدة",
            ["ثانيتان", "ثانيتين"],
            "%d ثوان",
            "%d ثانية",
            "%d ثانية",
          ],
          m: [
            "أقل من دقيقة",
            "دقيقة واحدة",
            ["دقيقتان", "دقيقتين"],
            "%d دقائق",
            "%d دقيقة",
            "%d دقيقة",
          ],
          h: [
            "أقل من ساعة",
            "ساعة واحدة",
            ["ساعتان", "ساعتين"],
            "%d ساعات",
            "%d ساعة",
            "%d ساعة",
          ],
          d: [
            "أقل من يوم",
            "يوم واحد",
            ["يومان", "يومين"],
            "%d أيام",
            "%d يومًا",
            "%d يوم",
          ],
          M: [
            "أقل من شهر",
            "شهر واحد",
            ["شهران", "شهرين"],
            "%d أشهر",
            "%d شهرا",
            "%d شهر",
          ],
          y: [
            "أقل من عام",
            "عام واحد",
            ["عامان", "عامين"],
            "%d أعوام",
            "%d عامًا",
            "%d عام",
          ],
        },
        r = function (e) {
          return function (r, o, a, i) {
            var s = t(r),
              l = n[e][t(r)];
            return 2 === s && (l = l[o ? 0 : 1]), l.replace(/%d/i, r);
          };
        },
        o = [
          "جانفي",
          "فيفري",
          "مارس",
          "أفريل",
          "ماي",
          "جوان",
          "جويلية",
          "أوت",
          "سبتمبر",
          "أكتوبر",
          "نوفمبر",
          "ديسمبر",
        ];
      e.defineLocale("ar-dz", {
        months: o,
        monthsShort: o,
        weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split(
          "_"
        ),
        weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
        weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return "م" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "ص" : "م";
        },
        calendar: {
          sameDay: "[اليوم عند الساعة] LT",
          nextDay: "[غدًا عند الساعة] LT",
          nextWeek: "dddd [عند الساعة] LT",
          lastDay: "[أمس عند الساعة] LT",
          lastWeek: "dddd [عند الساعة] LT",
          sameElse: "L",
        },
        relativeTime: {
          future: "بعد %s",
          past: "منذ %s",
          s: r("s"),
          ss: r("s"),
          m: r("m"),
          mm: r("m"),
          h: r("h"),
          hh: r("h"),
          d: r("d"),
          dd: r("d"),
          M: r("M"),
          MM: r("M"),
          y: r("y"),
          yy: r("y"),
        },
        postformat: function (e) {
          return e.replace(/,/g, "،");
        },
        week: { dow: 0, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("ar-kw", {
        months: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split(
          "_"
        ),
        monthsShort: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split(
          "_"
        ),
        weekdays: "الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split(
          "_"
        ),
        weekdaysShort: "احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),
        weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
        weekdaysParseExact: !0,
        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, doy: 12 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "1",
          2: "2",
          3: "3",
          4: "4",
          5: "5",
          6: "6",
          7: "7",
          8: "8",
          9: "9",
          0: "0",
        },
        n = function (e) {
          return 0 === e
            ? 0
            : 1 === e
            ? 1
            : 2 === e
            ? 2
            : e % 100 >= 3 && e % 100 <= 10
            ? 3
            : e % 100 >= 11
            ? 4
            : 5;
        },
        r = {
          s: [
            "أقل من ثانية",
            "ثانية واحدة",
            ["ثانيتان", "ثانيتين"],
            "%d ثوان",
            "%d ثانية",
            "%d ثانية",
          ],
          m: [
            "أقل من دقيقة",
            "دقيقة واحدة",
            ["دقيقتان", "دقيقتين"],
            "%d دقائق",
            "%d دقيقة",
            "%d دقيقة",
          ],
          h: [
            "أقل من ساعة",
            "ساعة واحدة",
            ["ساعتان", "ساعتين"],
            "%d ساعات",
            "%d ساعة",
            "%d ساعة",
          ],
          d: [
            "أقل من يوم",
            "يوم واحد",
            ["يومان", "يومين"],
            "%d أيام",
            "%d يومًا",
            "%d يوم",
          ],
          M: [
            "أقل من شهر",
            "شهر واحد",
            ["شهران", "شهرين"],
            "%d أشهر",
            "%d شهرا",
            "%d شهر",
          ],
          y: [
            "أقل من عام",
            "عام واحد",
            ["عامان", "عامين"],
            "%d أعوام",
            "%d عامًا",
            "%d عام",
          ],
        },
        o = function (e) {
          return function (t, o, a, i) {
            var s = n(t),
              l = r[e][n(t)];
            return 2 === s && (l = l[o ? 0 : 1]), l.replace(/%d/i, t);
          };
        },
        a = [
          "يناير",
          "فبراير",
          "مارس",
          "أبريل",
          "مايو",
          "يونيو",
          "يوليو",
          "أغسطس",
          "سبتمبر",
          "أكتوبر",
          "نوفمبر",
          "ديسمبر",
        ];
      e.defineLocale("ar-ly", {
        months: a,
        monthsShort: a,
        weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split(
          "_"
        ),
        weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
        weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return "م" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "ص" : "م";
        },
        calendar: {
          sameDay: "[اليوم عند الساعة] LT",
          nextDay: "[غدًا عند الساعة] LT",
          nextWeek: "dddd [عند الساعة] LT",
          lastDay: "[أمس عند الساعة] LT",
          lastWeek: "dddd [عند الساعة] LT",
          sameElse: "L",
        },
        relativeTime: {
          future: "بعد %s",
          past: "منذ %s",
          s: o("s"),
          ss: o("s"),
          m: o("m"),
          mm: o("m"),
          h: o("h"),
          hh: o("h"),
          d: o("d"),
          dd: o("d"),
          M: o("M"),
          MM: o("M"),
          y: o("y"),
          yy: o("y"),
        },
        preparse: function (e) {
          return e.replace(/،/g, ",");
        },
        postformat: function (e) {
          return e
            .replace(/\d/g, function (e) {
              return t[e];
            })
            .replace(/,/g, "،");
        },
        week: { dow: 6, doy: 12 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("ar-ma", {
        months: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split(
          "_"
        ),
        monthsShort: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split(
          "_"
        ),
        weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split(
          "_"
        ),
        weekdaysShort: "احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),
        weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
        weekdaysParseExact: !0,
        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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "١",
          2: "٢",
          3: "٣",
          4: "٤",
          5: "٥",
          6: "٦",
          7: "٧",
          8: "٨",
          9: "٩",
          0: "٠",
        },
        n = {
          "١": "1",
          "٢": "2",
          "٣": "3",
          "٤": "4",
          "٥": "5",
          "٦": "6",
          "٧": "7",
          "٨": "8",
          "٩": "9",
          "٠": "0",
        };
      e.defineLocale("ar-sa", {
        months: "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split(
          "_"
        ),
        monthsShort: "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split(
          "_"
        ),
        weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split(
          "_"
        ),
        weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
        weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return "م" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "ص" : "م";
        },
        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 (e) {
          return e
            .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) {
              return n[e];
            })
            .replace(/،/g, ",");
        },
        postformat: function (e) {
          return e
            .replace(/\d/g, function (e) {
              return t[e];
            })
            .replace(/,/g, "،");
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("ar-tn", {
        months: "جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split(
          "_"
        ),
        monthsShort: "جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split(
          "_"
        ),
        weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split(
          "_"
        ),
        weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
        weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
        weekdaysParseExact: !0,
        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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        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ı",
      };
      e.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: !0,
        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 (e) {
          return /^(gündüz|axşam)$/.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "gecə"
            : e < 12
            ? "səhər"
            : e < 17
            ? "gündüz"
            : "axşam";
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
        ordinal: function (e) {
          if (0 === e) return e + "-ıncı";
          var n = e % 10;
          return e + (t[n] || t[(e % 100) - n] || t[e >= 100 ? 100 : null]);
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n) {
        var r, o;
        return "m" === n
          ? t
            ? "хвіліна"
            : "хвіліну"
          : "h" === n
          ? t
            ? "гадзіна"
            : "гадзіну"
          : e +
            " " +
            ((r = +e),
            (o = {
              ss: t ? "секунда_секунды_секунд" : "секунду_секунды_секунд",
              mm: t ? "хвіліна_хвіліны_хвілін" : "хвіліну_хвіліны_хвілін",
              hh: t ? "гадзіна_гадзіны_гадзін" : "гадзіну_гадзіны_гадзін",
              dd: "дзень_дні_дзён",
              MM: "месяц_месяцы_месяцаў",
              yy: "год_гады_гадоў",
            }[n].split("_")),
            r % 10 == 1 && r % 100 != 11
              ? o[0]
              : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20)
              ? o[1]
              : o[2]);
      }
      e.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 () {
            return "[У] dddd [ў] LT";
          },
          lastWeek: function () {
            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: t,
          mm: t,
          h: t,
          hh: t,
          d: "дзень",
          dd: t,
          M: "месяц",
          MM: t,
          y: "год",
          yy: t,
        },
        meridiemParse: /ночы|раніцы|дня|вечара/,
        isPM: function (e) {
          return /^(дня|вечара)$/.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 4 ? "ночы" : e < 12 ? "раніцы" : e < 17 ? "дня" : "вечара";
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
        ordinal: function (e, t) {
          switch (t) {
            case "M":
            case "d":
            case "DDD":
            case "w":
            case "W":
              return (e % 10 != 2 && e % 10 != 3) ||
                e % 100 == 12 ||
                e % 100 == 13
                ? e + "-ы"
                : e + "-і";
            case "D":
              return e + "-га";
            default:
              return e;
          }
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 () {
            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 (e) {
          var t = e % 10,
            n = e % 100;
          return 0 === e
            ? e + "-ев"
            : 0 === n
            ? e + "-ен"
            : n > 10 && n < 20
            ? e + "-ти"
            : 1 === t
            ? e + "-ви"
            : 2 === t
            ? e + "-ри"
            : 7 === t || 8 === t
            ? e + "-ми"
            : e + "-ти";
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "১",
          2: "২",
          3: "৩",
          4: "৪",
          5: "৫",
          6: "৬",
          7: "৭",
          8: "৮",
          9: "৯",
          0: "০",
        },
        n = {
          "১": "1",
          "২": "2",
          "৩": "3",
          "৪": "4",
          "৫": "5",
          "৬": "6",
          "৭": "7",
          "৮": "8",
          "৯": "9",
          "০": "0",
        };
      e.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 (e) {
          return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            ("রাত" === t && e >= 4) || ("দুপুর" === t && e < 5) || "বিকাল" === t
              ? e + 12
              : e
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "রাত"
            : e < 10
            ? "সকাল"
            : e < 17
            ? "দুপুর"
            : e < 20
            ? "বিকাল"
            : "রাত";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "১",
          2: "২",
          3: "৩",
          4: "৪",
          5: "৫",
          6: "৬",
          7: "৭",
          8: "৮",
          9: "৯",
          0: "০",
        },
        n = {
          "১": "1",
          "২": "2",
          "৩": "3",
          "৪": "4",
          "৫": "5",
          "৬": "6",
          "৭": "7",
          "৮": "8",
          "৯": "9",
          "০": "0",
        };
      e.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 (e) {
          return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "রাত" === t
              ? e < 4
                ? e
                : e + 12
              : "ভোর" === t || "সকাল" === t
              ? e
              : "দুপুর" === t
              ? e >= 3
                ? e
                : e + 12
              : "বিকাল" === t || "সন্ধ্যা" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "রাত"
            : e < 6
            ? "ভোর"
            : e < 12
            ? "সকাল"
            : e < 15
            ? "দুপুর"
            : e < 18
            ? "বিকাল"
            : e < 20
            ? "সন্ধ্যা"
            : "রাত";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "༡",
          2: "༢",
          3: "༣",
          4: "༤",
          5: "༥",
          6: "༦",
          7: "༧",
          8: "༨",
          9: "༩",
          0: "༠",
        },
        n = {
          "༡": "1",
          "༢": "2",
          "༣": "3",
          "༤": "4",
          "༥": "5",
          "༦": "6",
          "༧": "7",
          "༨": "8",
          "༩": "9",
          "༠": "0",
        };
      e.defineLocale("bo", {
        months: "ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split(
          "_"
        ),
        monthsShort: "ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split(
          "_"
        ),
        monthsShortRegex: /^(ཟླ་\d{1,2})/,
        monthsParseExact: !0,
        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 (e) {
          return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            ("མཚན་མོ" === t && e >= 4) ||
            ("ཉིན་གུང" === t && e < 5) ||
            "དགོང་དག" === t
              ? e + 12
              : e
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "མཚན་མོ"
            : e < 10
            ? "ཞོགས་ཀས"
            : e < 17
            ? "ཉིན་གུང"
            : e < 20
            ? "དགོང་དག"
            : "མཚན་མོ";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n) {
        return (
          e +
          " " +
          (function (e, t) {
            return 2 === t
              ? (function (e) {
                  var t = { m: "v", b: "v", d: "z" };
                  return void 0 === t[e.charAt(0)]
                    ? e
                    : t[e.charAt(0)] + e.substring(1);
                })(e)
              : e;
          })({ mm: "munutenn", MM: "miz", dd: "devezh" }[n], e)
        );
      }
      var n = [
          /^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,
        ],
        r = /^(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,
        o = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i];
      e.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: o,
        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: o,
        monthsRegex: r,
        monthsShortRegex: r,
        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,
        monthsParse: n,
        longMonthsParse: n,
        shortMonthsParse: n,
        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: t,
          h: "un eur",
          hh: "%d eur",
          d: "un devezh",
          dd: t,
          M: "ur miz",
          MM: t,
          y: "ur bloaz",
          yy: function (e) {
            switch (
              (function e(t) {
                return t > 9 ? e(t % 10) : t;
              })(e)
            ) {
              case 1:
              case 3:
              case 4:
              case 5:
              case 9:
                return e + " bloaz";
              default:
                return e + " vloaz";
            }
          },
        },
        dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
        ordinal: function (e) {
          return e + (1 === e ? "añ" : "vet");
        },
        week: { dow: 1, doy: 4 },
        meridiemParse: /a.m.|g.m./,
        isPM: function (e) {
          return "g.m." === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "a.m." : "g.m.";
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n) {
        var r = e + " ";
        switch (n) {
          case "ss":
            return (r +=
              1 === e
                ? "sekunda"
                : 2 === e || 3 === e || 4 === e
                ? "sekunde"
                : "sekundi");
          case "m":
            return t ? "jedna minuta" : "jedne minute";
          case "mm":
            return (r +=
              1 === e
                ? "minuta"
                : 2 === e || 3 === e || 4 === e
                ? "minute"
                : "minuta");
          case "h":
            return t ? "jedan sat" : "jednog sata";
          case "hh":
            return (r +=
              1 === e
                ? "sat"
                : 2 === e || 3 === e || 4 === e
                ? "sata"
                : "sati");
          case "dd":
            return (r += 1 === e ? "dan" : "dana");
          case "MM":
            return (r +=
              1 === e
                ? "mjesec"
                : 2 === e || 3 === e || 4 === e
                ? "mjeseca"
                : "mjeseci");
          case "yy":
            return (r +=
              1 === e
                ? "godina"
                : 2 === e || 3 === e || 4 === e
                ? "godine"
                : "godina");
        }
      }
      e.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: !0,
        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: !0,
        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 () {
            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 () {
            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: t,
          m: t,
          mm: t,
          h: t,
          hh: t,
          d: "dan",
          dd: t,
          M: "mjesec",
          MM: t,
          y: "godinu",
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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 () {
            return "[avui a " + (1 !== this.hours() ? "les" : "la") + "] LT";
          },
          nextDay: function () {
            return "[demà a " + (1 !== this.hours() ? "les" : "la") + "] LT";
          },
          nextWeek: function () {
            return "dddd [a " + (1 !== this.hours() ? "les" : "la") + "] LT";
          },
          lastDay: function () {
            return "[ahir a " + (1 !== this.hours() ? "les" : "la") + "] LT";
          },
          lastWeek: function () {
            return (
              "[el] dddd [passat a " +
              (1 !== this.hours() ? "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 (e, t) {
          var n =
            1 === e ? "r" : 2 === e ? "n" : 3 === e ? "r" : 4 === e ? "t" : "è";
          return ("w" !== t && "W" !== t) || (n = "a"), e + n;
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split(
          "_"
        ),
        n = "led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),
        r = [
          /^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,
        ],
        o = /^(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 a(e) {
        return e > 1 && e < 5 && 1 != ~~(e / 10);
      }
      function i(e, t, n, r) {
        var o = e + " ";
        switch (n) {
          case "s":
            return t || r ? "pár sekund" : "pár sekundami";
          case "ss":
            return t || r ? o + (a(e) ? "sekundy" : "sekund") : o + "sekundami";
          case "m":
            return t ? "minuta" : r ? "minutu" : "minutou";
          case "mm":
            return t || r ? o + (a(e) ? "minuty" : "minut") : o + "minutami";
          case "h":
            return t ? "hodina" : r ? "hodinu" : "hodinou";
          case "hh":
            return t || r ? o + (a(e) ? "hodiny" : "hodin") : o + "hodinami";
          case "d":
            return t || r ? "den" : "dnem";
          case "dd":
            return t || r ? o + (a(e) ? "dny" : "dní") : o + "dny";
          case "M":
            return t || r ? "měsíc" : "měsícem";
          case "MM":
            return t || r ? o + (a(e) ? "měsíce" : "měsíců") : o + "měsíci";
          case "y":
            return t || r ? "rok" : "rokem";
          case "yy":
            return t || r ? o + (a(e) ? "roky" : "let") : o + "lety";
        }
      }
      e.defineLocale("cs", {
        months: t,
        monthsShort: n,
        monthsRegex: o,
        monthsShortRegex: o,
        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: r,
        longMonthsParse: r,
        shortMonthsParse: r,
        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 () {
            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 () {
            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: i,
          ss: i,
          m: i,
          mm: i,
          h: i,
          hh: i,
          d: i,
          dd: i,
          M: i,
          MM: i,
          y: i,
          yy: i,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
            return (
              e + (/сехет$/i.exec(e) ? "рен" : /ҫул$/i.exec(e) ? "тан" : "ран")
            );
          },
          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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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)/,
        ordinal: function (e) {
          var t = "";
          return (
            e > 20
              ? (t =
                  40 === e || 50 === e || 60 === e || 80 === e || 100 === e
                    ? "fed"
                    : "ain")
              : e > 0 &&
                (t = [
                  "",
                  "af",
                  "il",
                  "ydd",
                  "ydd",
                  "ed",
                  "ed",
                  "ed",
                  "fed",
                  "fed",
                  "fed",
                  "eg",
                  "fed",
                  "eg",
                  "eg",
                  "fed",
                  "eg",
                  "eg",
                  "fed",
                  "eg",
                  "fed",
                ][e]),
            e + t
          );
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = {
          m: ["eine Minute", "einer Minute"],
          h: ["eine Stunde", "einer Stunde"],
          d: ["ein Tag", "einem Tag"],
          dd: [e + " Tage", e + " Tagen"],
          w: ["eine Woche", "einer Woche"],
          M: ["ein Monat", "einem Monat"],
          MM: [e + " Monate", e + " Monaten"],
          y: ["ein Jahr", "einem Jahr"],
          yy: [e + " Jahre", e + " Jahren"],
        };
        return t ? o[n][0] : o[n][1];
      }
      e.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: !0,
        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: !0,
        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: t,
          mm: "%d Minuten",
          h: t,
          hh: "%d Stunden",
          d: t,
          dd: t,
          w: t,
          ww: "%d Wochen",
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = {
          m: ["eine Minute", "einer Minute"],
          h: ["eine Stunde", "einer Stunde"],
          d: ["ein Tag", "einem Tag"],
          dd: [e + " Tage", e + " Tagen"],
          w: ["eine Woche", "einer Woche"],
          M: ["ein Monat", "einem Monat"],
          MM: [e + " Monate", e + " Monaten"],
          y: ["ein Jahr", "einem Jahr"],
          yy: [e + " Jahre", e + " Jahren"],
        };
        return t ? o[n][0] : o[n][1];
      }
      e.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: !0,
        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: !0,
        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: t,
          mm: "%d Minuten",
          h: t,
          hh: "%d Stunden",
          d: t,
          dd: t,
          w: t,
          ww: "%d Wochen",
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = {
          m: ["eine Minute", "einer Minute"],
          h: ["eine Stunde", "einer Stunde"],
          d: ["ein Tag", "einem Tag"],
          dd: [e + " Tage", e + " Tagen"],
          w: ["eine Woche", "einer Woche"],
          M: ["ein Monat", "einem Monat"],
          MM: [e + " Monate", e + " Monaten"],
          y: ["ein Jahr", "einem Jahr"],
          yy: [e + " Jahre", e + " Jahren"],
        };
        return t ? o[n][0] : o[n][1];
      }
      e.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: !0,
        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: !0,
        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: t,
          mm: "%d Minuten",
          h: t,
          hh: "%d Stunden",
          d: t,
          dd: t,
          w: t,
          ww: "%d Wochen",
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = [
          "ޖެނުއަރީ",
          "ފެބްރުއަރީ",
          "މާރިޗު",
          "އޭޕްރީލު",
          "މޭ",
          "ޖޫން",
          "ޖުލައި",
          "އޯގަސްޓު",
          "ސެޕްޓެމްބަރު",
          "އޮކްޓޯބަރު",
          "ނޮވެމްބަރު",
          "ޑިސެމްބަރު",
        ],
        n = [
          "އާދިއްތަ",
          "ހޯމަ",
          "އަންގާރަ",
          "ބުދަ",
          "ބުރާސްފަތި",
          "ހުކުރު",
          "ހޮނިހިރު",
        ];
      e.defineLocale("dv", {
        months: t,
        monthsShort: t,
        weekdays: n,
        weekdaysShort: n,
        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 (e) {
          return "މފ" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "މކ" : "މފ";
        },
        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 (e) {
          return e.replace(/،/g, ",");
        },
        postformat: function (e) {
          return e.replace(/,/g, "،");
        },
        week: { dow: 7, doy: 12 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("el", {
        monthsNominativeEl: "Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split(
          "_"
        ),
        monthsGenitiveEl: "Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split(
          "_"
        ),
        months: function (e, t) {
          return e
            ? "string" == typeof t &&
              /D/.test(t.substring(0, t.indexOf("MMMM")))
              ? this._monthsGenitiveEl[e.month()]
              : this._monthsNominativeEl[e.month()]
            : this._monthsNominativeEl;
        },
        monthsShort: "Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split(
          "_"
        ),
        weekdays: "Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split(
          "_"
        ),
        weekdaysShort: "Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),
        weekdaysMin: "Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),
        meridiem: function (e, t, n) {
          return e > 11 ? (n ? "μμ" : "ΜΜ") : n ? "πμ" : "ΠΜ";
        },
        isPM: function (e) {
          return "μ" === (e + "").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 () {
            switch (this.day()) {
              case 6:
                return "[το προηγούμενο] dddd [{}] LT";
              default:
                return "[την προηγούμενη] dddd [{}] LT";
            }
          },
          sameElse: "L",
        },
        calendar: function (e, t) {
          var n,
            r = this._calendarEl[e],
            o = t && t.hours();
          return (
            (n = r),
            (("undefined" != typeof Function && n instanceof Function) ||
              "[object Function]" === Object.prototype.toString.call(n)) &&
              (r = r.apply(t)),
            r.replace("{}", o % 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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
        week: { dow: 0, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          return "p" === e.charAt(0).toLowerCase();
        },
        meridiem: function (e, t, n) {
          return e > 11 ? (n ? "p.t.m." : "P.T.M.") : n ? "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",
          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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split(
          "_"
        ),
        n = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
        r = [
          /^ene/i,
          /^feb/i,
          /^mar/i,
          /^abr/i,
          /^may/i,
          /^jun/i,
          /^jul/i,
          /^ago/i,
          /^sep/i,
          /^oct/i,
          /^nov/i,
          /^dic/i,
        ],
        o = /^(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;
      e.defineLocale("es", {
        months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split(
          "_"
        ),
        monthsShort: function (e, r) {
          return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t;
        },
        monthsRegex: o,
        monthsShortRegex: o,
        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: r,
        longMonthsParse: r,
        shortMonthsParse: r,
        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: !0,
        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 () {
            return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          nextDay: function () {
            return "[mañana a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          nextWeek: function () {
            return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          lastDay: function () {
            return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          lastWeek: function () {
            return (
              "[el] dddd [pasado a la" +
              (1 !== this.hours() ? "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, doy: 4 },
        invalidDate: "Fecha inválida",
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split(
          "_"
        ),
        n = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
        r = [
          /^ene/i,
          /^feb/i,
          /^mar/i,
          /^abr/i,
          /^may/i,
          /^jun/i,
          /^jul/i,
          /^ago/i,
          /^sep/i,
          /^oct/i,
          /^nov/i,
          /^dic/i,
        ],
        o = /^(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;
      e.defineLocale("es-do", {
        months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split(
          "_"
        ),
        monthsShort: function (e, r) {
          return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t;
        },
        monthsRegex: o,
        monthsShortRegex: o,
        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: r,
        longMonthsParse: r,
        shortMonthsParse: r,
        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: !0,
        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 () {
            return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          nextDay: function () {
            return "[mañana a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          nextWeek: function () {
            return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          lastDay: function () {
            return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          lastWeek: function () {
            return (
              "[el] dddd [pasado a la" +
              (1 !== this.hours() ? "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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split(
          "_"
        ),
        n = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
        r = [
          /^ene/i,
          /^feb/i,
          /^mar/i,
          /^abr/i,
          /^may/i,
          /^jun/i,
          /^jul/i,
          /^ago/i,
          /^sep/i,
          /^oct/i,
          /^nov/i,
          /^dic/i,
        ],
        o = /^(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;
      e.defineLocale("es-mx", {
        months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split(
          "_"
        ),
        monthsShort: function (e, r) {
          return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t;
        },
        monthsRegex: o,
        monthsShortRegex: o,
        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: r,
        longMonthsParse: r,
        shortMonthsParse: r,
        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: !0,
        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 () {
            return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          nextDay: function () {
            return "[mañana a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          nextWeek: function () {
            return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          lastDay: function () {
            return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          lastWeek: function () {
            return (
              "[el] dddd [pasado a la" +
              (1 !== this.hours() ? "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, doy: 4 },
        invalidDate: "Fecha inválida",
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split(
          "_"
        ),
        n = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
        r = [
          /^ene/i,
          /^feb/i,
          /^mar/i,
          /^abr/i,
          /^may/i,
          /^jun/i,
          /^jul/i,
          /^ago/i,
          /^sep/i,
          /^oct/i,
          /^nov/i,
          /^dic/i,
        ],
        o = /^(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;
      e.defineLocale("es-us", {
        months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split(
          "_"
        ),
        monthsShort: function (e, r) {
          return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t;
        },
        monthsRegex: o,
        monthsShortRegex: o,
        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: r,
        longMonthsParse: r,
        shortMonthsParse: r,
        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: !0,
        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 () {
            return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          nextDay: function () {
            return "[mañana a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          nextWeek: function () {
            return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          lastDay: function () {
            return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT";
          },
          lastWeek: function () {
            return (
              "[el] dddd [pasado a la" +
              (1 !== this.hours() ? "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, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = {
          s: ["mõne sekundi", "mõni sekund", "paar sekundit"],
          ss: [e + "sekundi", e + "sekundit"],
          m: ["ühe minuti", "üks minut"],
          mm: [e + " minuti", e + " minutit"],
          h: ["ühe tunni", "tund aega", "üks tund"],
          hh: [e + " tunni", e + " tundi"],
          d: ["ühe päeva", "üks päev"],
          M: ["kuu aja", "kuu aega", "üks kuu"],
          MM: [e + " kuu", e + " kuud"],
          y: ["ühe aasta", "aasta", "üks aasta"],
          yy: [e + " aasta", e + " aastat"],
        };
        return t ? (o[n][2] ? o[n][2] : o[n][1]) : r ? o[n][0] : o[n][1];
      }
      e.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: t,
          ss: t,
          m: t,
          mm: t,
          h: t,
          hh: t,
          d: t,
          dd: "%d päeva",
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "۱",
          2: "۲",
          3: "۳",
          4: "۴",
          5: "۵",
          6: "۶",
          7: "۷",
          8: "۸",
          9: "۹",
          0: "۰",
        },
        n = {
          "۱": "1",
          "۲": "2",
          "۳": "3",
          "۴": "4",
          "۵": "5",
          "۶": "6",
          "۷": "7",
          "۸": "8",
          "۹": "9",
          "۰": "0",
        };
      e.defineLocale("fa", {
        months: "ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split(
          "_"
        ),
        monthsShort: "ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split(
          "_"
        ),
        weekdays: "یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split(
          "_"
        ),
        weekdaysShort: "یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split(
          "_"
        ),
        weekdaysMin: "ی_د_س_چ_پ_ج_ش".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return /بعد از ظهر/.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "قبل از ظهر" : "بعد از ظهر";
        },
        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 (e) {
          return e
            .replace(/[۰-۹]/g, function (e) {
              return n[e];
            })
            .replace(/،/g, ",");
        },
        postformat: function (e) {
          return e
            .replace(/\d/g, function (e) {
              return t[e];
            })
            .replace(/,/g, "،");
        },
        dayOfMonthOrdinalParse: /\d{1,2}م/,
        ordinal: "%dم",
        week: { dow: 6, doy: 12 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(
          " "
        ),
        n = [
          "nolla",
          "yhden",
          "kahden",
          "kolmen",
          "neljän",
          "viiden",
          "kuuden",
          t[7],
          t[8],
          t[9],
        ];
      function r(e, r, o, a) {
        var i = "";
        switch (o) {
          case "s":
            return a ? "muutaman sekunnin" : "muutama sekunti";
          case "ss":
            i = a ? "sekunnin" : "sekuntia";
            break;
          case "m":
            return a ? "minuutin" : "minuutti";
          case "mm":
            i = a ? "minuutin" : "minuuttia";
            break;
          case "h":
            return a ? "tunnin" : "tunti";
          case "hh":
            i = a ? "tunnin" : "tuntia";
            break;
          case "d":
            return a ? "päivän" : "päivä";
          case "dd":
            i = a ? "päivän" : "päivää";
            break;
          case "M":
            return a ? "kuukauden" : "kuukausi";
          case "MM":
            i = a ? "kuukauden" : "kuukautta";
            break;
          case "y":
            return a ? "vuoden" : "vuosi";
          case "yy":
            i = a ? "vuoden" : "vuotta";
        }
        return (i =
          (function (e, r) {
            return e < 10 ? (r ? n[e] : t[e]) : e;
          })(e, a) +
          " " +
          i);
      }
      e.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: r,
          ss: r,
          m: r,
          mm: r,
          h: r,
          hh: r,
          d: r,
          dd: r,
          M: r,
          MM: r,
          y: r,
          yy: r,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          return e;
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = /(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,
        n = [
          /^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,
        ];
      e.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: t,
        monthsShortRegex: t,
        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,
        monthsParse: n,
        longMonthsParse: n,
        shortMonthsParse: n,
        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: !0,
        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 (e, t) {
          switch (t) {
            case "D":
              return e + (1 === e ? "er" : "");
            default:
            case "M":
            case "Q":
            case "DDD":
            case "d":
              return e + (1 === e ? "er" : "e");
            case "w":
            case "W":
              return e + (1 === e ? "re" : "e");
          }
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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 (e, t) {
          switch (t) {
            default:
            case "M":
            case "Q":
            case "D":
            case "DDD":
            case "d":
              return e + (1 === e ? "er" : "e");
            case "w":
            case "W":
              return e + (1 === e ? "re" : "e");
          }
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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 (e, t) {
          switch (t) {
            default:
            case "M":
            case "Q":
            case "D":
            case "DDD":
            case "d":
              return e + (1 === e ? "er" : "e");
            case "w":
            case "W":
              return e + (1 === e ? "re" : "e");
          }
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split(
          "_"
        ),
        n = "jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");
      e.defineLocale("fy", {
        months: "jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split(
          "_"
        ),
        monthsShort: function (e, r) {
          return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t;
        },
        monthsParseExact: !0,
        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: !0,
        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 (e) {
          return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de");
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("ga", {
        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",
        ],
        monthsParseExact: !0,
        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"],
        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 (e) {
          return e + (1 === e ? "d" : e % 10 == 2 ? "na" : "mh");
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("gd", {
        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",
        ],
        monthsParseExact: !0,
        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"],
        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 (e) {
          return e + (1 === e ? "d" : e % 10 == 2 ? "na" : "mh");
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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 () {
            return "[hoxe " + (1 !== this.hours() ? "ás" : "á") + "] LT";
          },
          nextDay: function () {
            return "[mañá " + (1 !== this.hours() ? "ás" : "á") + "] LT";
          },
          nextWeek: function () {
            return "dddd [" + (1 !== this.hours() ? "ás" : "a") + "] LT";
          },
          lastDay: function () {
            return "[onte " + (1 !== this.hours() ? "á" : "a") + "] LT";
          },
          lastWeek: function () {
            return (
              "[o] dddd [pasado " + (1 !== this.hours() ? "ás" : "a") + "] LT"
            );
          },
          sameElse: "L",
        },
        relativeTime: {
          future: function (e) {
            return 0 === e.indexOf("un") ? "n" + e : "en " + e;
          },
          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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = {
          s: ["थोडया सॅकंडांनी", "थोडे सॅकंड"],
          ss: [e + " सॅकंडांनी", e + " सॅकंड"],
          m: ["एका मिणटान", "एक मिनूट"],
          mm: [e + " मिणटांनी", e + " मिणटां"],
          h: ["एका वरान", "एक वर"],
          hh: [e + " वरांनी", e + " वरां"],
          d: ["एका दिसान", "एक दीस"],
          dd: [e + " दिसांनी", e + " दीस"],
          M: ["एका म्हयन्यान", "एक म्हयनो"],
          MM: [e + " म्हयन्यानी", e + " म्हयने"],
          y: ["एका वर्सान", "एक वर्स"],
          yy: [e + " वर्सांनी", e + " वर्सां"],
        };
        return r ? o[n][0] : o[n][1];
      }
      e.defineLocale("gom-deva", {
        months: {
          standalone: "जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split(
            "_"
          ),
          format: "जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split(
            "_"
          ),
          isFormat: /MMMM(\s)+D[oD]?/,
        },
        monthsShort: "जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split(
          "_"
        ),
        monthsParseExact: !0,
        weekdays: "आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split(
          "_"
        ),
        weekdaysShort: "आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),
        weekdaysMin: "आ_सो_मं_बु_ब्रे_सु_शे".split("_"),
        weekdaysParseExact: !0,
        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: t,
          ss: t,
          m: t,
          mm: t,
          h: t,
          hh: t,
          d: t,
          dd: t,
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
        ordinal: function (e, t) {
          switch (t) {
            case "D":
              return e + "वेर";
            default:
            case "M":
            case "Q":
            case "DDD":
            case "d":
            case "w":
            case "W":
              return e;
          }
        },
        week: { dow: 0, doy: 3 },
        meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "राती" === t
              ? e < 4
                ? e
                : e + 12
              : "सकाळीं" === t
              ? e
              : "दनपारां" === t
              ? e > 12
                ? e
                : e + 12
              : "सांजे" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "राती"
            : e < 12
            ? "सकाळीं"
            : e < 16
            ? "दनपारां"
            : e < 20
            ? "सांजे"
            : "राती";
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = {
          s: ["thoddea sekondamni", "thodde sekond"],
          ss: [e + " sekondamni", e + " sekond"],
          m: ["eka mintan", "ek minut"],
          mm: [e + " mintamni", e + " mintam"],
          h: ["eka voran", "ek vor"],
          hh: [e + " voramni", e + " voram"],
          d: ["eka disan", "ek dis"],
          dd: [e + " disamni", e + " dis"],
          M: ["eka mhoinean", "ek mhoino"],
          MM: [e + " mhoineamni", e + " mhoine"],
          y: ["eka vorsan", "ek voros"],
          yy: [e + " vorsamni", e + " vorsam"],
        };
        return r ? o[n][0] : o[n][1];
      }
      e.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: !0,
        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: !0,
        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: t,
          ss: t,
          m: t,
          mm: t,
          h: t,
          hh: t,
          d: t,
          dd: t,
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}(er)/,
        ordinal: function (e, t) {
          switch (t) {
            case "D":
              return e + "er";
            default:
            case "M":
            case "Q":
            case "DDD":
            case "d":
            case "w":
            case "W":
              return e;
          }
        },
        week: { dow: 0, doy: 3 },
        meridiemParse: /rati|sokallim|donparam|sanje/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "rati" === t
              ? e < 4
                ? e
                : e + 12
              : "sokallim" === t
              ? e
              : "donparam" === t
              ? e > 12
                ? e
                : e + 12
              : "sanje" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "rati"
            : e < 12
            ? "sokallim"
            : e < 16
            ? "donparam"
            : e < 20
            ? "sanje"
            : "rati";
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "૧",
          2: "૨",
          3: "૩",
          4: "૪",
          5: "૫",
          6: "૬",
          7: "૭",
          8: "૮",
          9: "૯",
          0: "૦",
        },
        n = {
          "૧": "1",
          "૨": "2",
          "૩": "3",
          "૪": "4",
          "૫": "5",
          "૬": "6",
          "૭": "7",
          "૮": "8",
          "૯": "9",
          "૦": "0",
        };
      e.defineLocale("gu", {
        months: "જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split(
          "_"
        ),
        monthsShort: "જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split(
          "_"
        ),
        monthsParseExact: !0,
        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 (e) {
          return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "રાત" === t
              ? e < 4
                ? e
                : e + 12
              : "સવાર" === t
              ? e
              : "બપોર" === t
              ? e >= 10
                ? e
                : e + 12
              : "સાંજ" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "રાત"
            : e < 10
            ? "સવાર"
            : e < 17
            ? "બપોર"
            : e < 20
            ? "સાંજ"
            : "રાત";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
            return 2 === e ? "שעתיים" : e + " שעות";
          },
          d: "יום",
          dd: function (e) {
            return 2 === e ? "יומיים" : e + " ימים";
          },
          M: "חודש",
          MM: function (e) {
            return 2 === e ? "חודשיים" : e + " חודשים";
          },
          y: "שנה",
          yy: function (e) {
            return 2 === e
              ? "שנתיים"
              : e % 10 == 0 && 10 !== e
              ? e + " שנה"
              : e + " שנים";
          },
        },
        meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
        isPM: function (e) {
          return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 5
            ? "לפנות בוקר"
            : e < 10
            ? "בבוקר"
            : e < 12
            ? n
              ? 'לפנה"צ'
              : "לפני הצהריים"
            : e < 18
            ? n
              ? 'אחה"צ'
              : "אחרי הצהריים"
            : "בערב";
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "१",
          2: "२",
          3: "३",
          4: "४",
          5: "५",
          6: "६",
          7: "७",
          8: "८",
          9: "९",
          0: "०",
        },
        n = {
          "१": "1",
          "२": "2",
          "३": "3",
          "४": "4",
          "५": "5",
          "६": "6",
          "७": "7",
          "८": "8",
          "९": "9",
          "०": "0",
        },
        r = [
          /^जन/i,
          /^फ़र|फर/i,
          /^मार्च/i,
          /^अप्रै/i,
          /^मई/i,
          /^जून/i,
          /^जुल/i,
          /^अग/i,
          /^सितं|सित/i,
          /^अक्टू/i,
          /^नव|नवं/i,
          /^दिसं|दिस/i,
        ];
      e.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: r,
        longMonthsParse: r,
        shortMonthsParse: [
          /^जन/i,
          /^फ़र/i,
          /^मार्च/i,
          /^अप्रै/i,
          /^मई/i,
          /^जून/i,
          /^जुल/i,
          /^अग/i,
          /^सित/i,
          /^अक्टू/i,
          /^नव/i,
          /^दिस/i,
        ],
        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 (e) {
          return e.replace(/[१२३४५६७८९०]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /रात|सुबह|दोपहर|शाम/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "रात" === t
              ? e < 4
                ? e
                : e + 12
              : "सुबह" === t
              ? e
              : "दोपहर" === t
              ? e >= 10
                ? e
                : e + 12
              : "शाम" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "रात"
            : e < 10
            ? "सुबह"
            : e < 17
            ? "दोपहर"
            : e < 20
            ? "शाम"
            : "रात";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n) {
        var r = e + " ";
        switch (n) {
          case "ss":
            return (r +=
              1 === e
                ? "sekunda"
                : 2 === e || 3 === e || 4 === e
                ? "sekunde"
                : "sekundi");
          case "m":
            return t ? "jedna minuta" : "jedne minute";
          case "mm":
            return (r +=
              1 === e
                ? "minuta"
                : 2 === e || 3 === e || 4 === e
                ? "minute"
                : "minuta");
          case "h":
            return t ? "jedan sat" : "jednog sata";
          case "hh":
            return (r +=
              1 === e
                ? "sat"
                : 2 === e || 3 === e || 4 === e
                ? "sata"
                : "sati");
          case "dd":
            return (r += 1 === e ? "dan" : "dana");
          case "MM":
            return (r +=
              1 === e
                ? "mjesec"
                : 2 === e || 3 === e || 4 === e
                ? "mjeseca"
                : "mjeseci");
          case "yy":
            return (r +=
              1 === e
                ? "godina"
                : 2 === e || 3 === e || 4 === e
                ? "godine"
                : "godina");
        }
      }
      e.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: !0,
        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: !0,
        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 () {
            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 () {
            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: t,
          m: t,
          mm: t,
          h: t,
          hh: t,
          d: "dan",
          dd: t,
          M: "mjesec",
          MM: t,
          y: "godinu",
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(
        " "
      );
      function n(e, t, n, r) {
        var o = e;
        switch (n) {
          case "s":
            return r || t ? "néhány másodperc" : "néhány másodperce";
          case "ss":
            return o + (r || t) ? " másodperc" : " másodperce";
          case "m":
            return "egy" + (r || t ? " perc" : " perce");
          case "mm":
            return o + (r || t ? " perc" : " perce");
          case "h":
            return "egy" + (r || t ? " óra" : " órája");
          case "hh":
            return o + (r || t ? " óra" : " órája");
          case "d":
            return "egy" + (r || t ? " nap" : " napja");
          case "dd":
            return o + (r || t ? " nap" : " napja");
          case "M":
            return "egy" + (r || t ? " hónap" : " hónapja");
          case "MM":
            return o + (r || t ? " hónap" : " hónapja");
          case "y":
            return "egy" + (r || t ? " év" : " éve");
          case "yy":
            return o + (r || t ? " év" : " éve");
        }
        return "";
      }
      function r(e) {
        return (e ? "" : "[múlt] ") + "[" + t[this.day()] + "] LT[-kor]";
      }
      e.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: !0,
        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 (e) {
          return "u" === e.charAt(1).toLowerCase();
        },
        meridiem: function (e, t, n) {
          return e < 12 ? (!0 === n ? "de" : "DE") : !0 === n ? "du" : "DU";
        },
        calendar: {
          sameDay: "[ma] LT[-kor]",
          nextDay: "[holnap] LT[-kor]",
          nextWeek: function () {
            return r.call(this, !0);
          },
          lastDay: "[tegnap] LT[-kor]",
          lastWeek: function () {
            return r.call(this, !1);
          },
          sameElse: "L",
        },
        relativeTime: {
          future: "%s múlva",
          past: "%s",
          s: n,
          ss: n,
          m: n,
          mm: n,
          h: n,
          hh: n,
          d: n,
          dd: n,
          M: n,
          MM: n,
          y: n,
          yy: n,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 () {
            return "dddd [օրը ժամը] LT";
          },
          lastWeek: function () {
            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 (e) {
          return /^(ցերեկվա|երեկոյան)$/.test(e);
        },
        meridiem: function (e) {
          return e < 4
            ? "գիշերվա"
            : e < 12
            ? "առավոտվա"
            : e < 17
            ? "ցերեկվա"
            : "երեկոյան";
        },
        dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
        ordinal: function (e, t) {
          switch (t) {
            case "DDD":
            case "w":
            case "W":
            case "DDDo":
              return 1 === e ? e + "-ին" : e + "-րդ";
            default:
              return e;
          }
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "pagi" === t
              ? e
              : "siang" === t
              ? e >= 11
                ? e
                : e + 12
              : "sore" === t || "malam" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 11 ? "pagi" : e < 15 ? "siang" : e < 19 ? "sore" : "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, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e) {
        return e % 100 == 11 || e % 10 != 1;
      }
      function n(e, n, r, o) {
        var a = e + " ";
        switch (r) {
          case "s":
            return n || o ? "nokkrar sekúndur" : "nokkrum sekúndum";
          case "ss":
            return t(e)
              ? a + (n || o ? "sekúndur" : "sekúndum")
              : a + "sekúnda";
          case "m":
            return n ? "mínúta" : "mínútu";
          case "mm":
            return t(e)
              ? a + (n || o ? "mínútur" : "mínútum")
              : n
              ? a + "mínúta"
              : a + "mínútu";
          case "hh":
            return t(e)
              ? a + (n || o ? "klukkustundir" : "klukkustundum")
              : a + "klukkustund";
          case "d":
            return n ? "dagur" : o ? "dag" : "degi";
          case "dd":
            return t(e)
              ? n
                ? a + "dagar"
                : a + (o ? "daga" : "dögum")
              : n
              ? a + "dagur"
              : a + (o ? "dag" : "degi");
          case "M":
            return n ? "mánuður" : o ? "mánuð" : "mánuði";
          case "MM":
            return t(e)
              ? n
                ? a + "mánuðir"
                : a + (o ? "mánuði" : "mánuðum")
              : n
              ? a + "mánuður"
              : a + (o ? "mánuð" : "mánuði");
          case "y":
            return n || o ? "ár" : "ári";
          case "yy":
            return t(e)
              ? a + (n || o ? "ár" : "árum")
              : a + (n || o ? "ár" : "ári");
        }
      }
      e.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: n,
          ss: n,
          m: n,
          mm: n,
          h: "klukkustund",
          hh: n,
          d: n,
          dd: n,
          M: n,
          MM: n,
          y: n,
          yy: n,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 () {
            return (
              "[Oggi a" +
              (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") +
              "]LT"
            );
          },
          nextDay: function () {
            return (
              "[Domani a" +
              (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") +
              "]LT"
            );
          },
          nextWeek: function () {
            return (
              "dddd [a" +
              (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") +
              "]LT"
            );
          },
          lastDay: function () {
            return (
              "[Ieri a" +
              (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") +
              "]LT"
            );
          },
          lastWeek: function () {
            switch (this.day()) {
              case 0:
                return (
                  "[La scorsa] dddd [a" +
                  (this.hours() > 1
                    ? "lle "
                    : 0 === this.hours()
                    ? " "
                    : "ll'") +
                  "]LT"
                );
              default:
                return (
                  "[Lo scorso] dddd [a" +
                  (this.hours() > 1
                    ? "lle "
                    : 0 === this.hours()
                    ? " "
                    : "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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 () {
            switch (this.day()) {
              case 0:
                return "[la scorsa] dddd [alle] LT";
              default:
                return "[lo scorso] dddd [alle] LT";
            }
          },
          sameElse: "L",
        },
        relativeTime: {
          future: function (e) {
            return (/^[0-9].+$/.test(e) ? "tra" : "in") + " " + e;
          },
          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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: -1 / 0,
            offset: 1,
            name: "紀元前",
            narrow: "BC",
            abbr: "BC",
          },
        ],
        eraYearOrdinalRegex: /(元|\d+)年/,
        eraYearOrdinalParse: function (e, t) {
          return "元" === t[1] ? 1 : parseInt(t[1] || e, 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 (e) {
          return "午後" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "午前" : "午後";
        },
        calendar: {
          sameDay: "[今日] LT",
          nextDay: "[明日] LT",
          nextWeek: function (e) {
            return e.week() !== this.week() ? "[来週]dddd LT" : "dddd LT";
          },
          lastDay: "[昨日] LT",
          lastWeek: function (e) {
            return this.week() !== e.week() ? "[先週]dddd LT" : "dddd LT";
          },
          sameElse: "L",
        },
        dayOfMonthOrdinalParse: /\d{1,2}日/,
        ordinal: function (e, t) {
          switch (t) {
            case "y":
              return 1 === e ? "元年" : e + "年";
            case "d":
            case "D":
            case "DDD":
              return e + "日";
            default:
              return e;
          }
        },
        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年",
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "enjing" === t
              ? e
              : "siyang" === t
              ? e >= 11
                ? e
                : e + 12
              : "sonten" === t || "ndalu" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 11
            ? "enjing"
            : e < 15
            ? "siyang"
            : e < 19
            ? "sonten"
            : "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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
            return e.replace(
              /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
              function (e, t, n) {
                return "ი" === n ? t + "ში" : t + n + "ში";
              }
            );
          },
          past: function (e) {
            return /(წამი|წუთი|საათი|დღე|თვე)/.test(e)
              ? e.replace(/(ი|ე)$/, "ის წინ")
              : /წელი/.test(e)
              ? e.replace(/წელი$/, "წლის წინ")
              : e;
          },
          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 (e) {
          return 0 === e
            ? e
            : 1 === e
            ? e + "-ლი"
            : e < 20 || (e <= 100 && e % 20 == 0) || e % 100 == 0
            ? "მე-" + e
            : e + "-ე";
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        0: "-ші",
        1: "-ші",
        2: "-ші",
        3: "-ші",
        4: "-ші",
        5: "-ші",
        6: "-шы",
        7: "-ші",
        8: "-ші",
        9: "-шы",
        10: "-шы",
        20: "-шы",
        30: "-шы",
        40: "-шы",
        50: "-ші",
        60: "-шы",
        70: "-ші",
        80: "-ші",
        90: "-шы",
        100: "-ші",
      };
      e.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 (e) {
          return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]);
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "១",
          2: "២",
          3: "៣",
          4: "៤",
          5: "៥",
          6: "៦",
          7: "៧",
          8: "៨",
          9: "៩",
          0: "០",
        },
        n = {
          "១": "1",
          "២": "2",
          "៣": "3",
          "៤": "4",
          "៥": "5",
          "៦": "6",
          "៧": "7",
          "៨": "8",
          "៩": "9",
          "០": "0",
        };
      e.defineLocale("km", {
        months: "មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split(
          "_"
        ),
        monthsShort: "មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split(
          "_"
        ),
        weekdays: "អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),
        weekdaysShort: "អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),
        weekdaysMin: "អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return "ល្ងាច" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "ព្រឹក" : "ល្ងាច";
        },
        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 (e) {
          return e.replace(/[១២៣៤៥៦៧៨៩០]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "೧",
          2: "೨",
          3: "೩",
          4: "೪",
          5: "೫",
          6: "೬",
          7: "೭",
          8: "೮",
          9: "೯",
          0: "೦",
        },
        n = {
          "೧": "1",
          "೨": "2",
          "೩": "3",
          "೪": "4",
          "೫": "5",
          "೬": "6",
          "೭": "7",
          "೮": "8",
          "೯": "9",
          "೦": "0",
        };
      e.defineLocale("kn", {
        months: "ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split(
          "_"
        ),
        monthsShort: "ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split(
          "_"
        ),
        monthsParseExact: !0,
        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 (e) {
          return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "ರಾತ್ರಿ" === t
              ? e < 4
                ? e
                : e + 12
              : "ಬೆಳಿಗ್ಗೆ" === t
              ? e
              : "ಮಧ್ಯಾಹ್ನ" === t
              ? e >= 10
                ? e
                : e + 12
              : "ಸಂಜೆ" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "ರಾತ್ರಿ"
            : e < 10
            ? "ಬೆಳಿಗ್ಗೆ"
            : e < 17
            ? "ಮಧ್ಯಾಹ್ನ"
            : e < 20
            ? "ಸಂಜೆ"
            : "ರಾತ್ರಿ";
        },
        dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
        ordinal: function (e) {
          return e + "ನೇ";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          switch (t) {
            case "d":
            case "D":
            case "DDD":
              return e + "일";
            case "M":
              return e + "월";
            case "w":
            case "W":
              return e + "주";
            default:
              return e;
          }
        },
        meridiemParse: /오전|오후/,
        isPM: function (e) {
          return "오후" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "오전" : "오후";
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "١",
          2: "٢",
          3: "٣",
          4: "٤",
          5: "٥",
          6: "٦",
          7: "٧",
          8: "٨",
          9: "٩",
          0: "٠",
        },
        n = {
          "١": "1",
          "٢": "2",
          "٣": "3",
          "٤": "4",
          "٥": "5",
          "٦": "6",
          "٧": "7",
          "٨": "8",
          "٩": "9",
          "٠": "0",
        },
        r = [
          "کانونی دووەم",
          "شوبات",
          "ئازار",
          "نیسان",
          "ئایار",
          "حوزەیران",
          "تەمموز",
          "ئاب",
          "ئەیلوول",
          "تشرینی یەكەم",
          "تشرینی دووەم",
          "كانونی یەکەم",
        ];
      e.defineLocale("ku", {
        months: r,
        monthsShort: r,
        weekdays: "یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split(
          "_"
        ),
        weekdaysShort: "یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split(
          "_"
        ),
        weekdaysMin: "ی_د_س_چ_پ_ه_ش".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return /ئێواره‌/.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "به‌یانی" : "ئێواره‌";
        },
        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 (e) {
          return e
            .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) {
              return n[e];
            })
            .replace(/،/g, ",");
        },
        postformat: function (e) {
          return e
            .replace(/\d/g, function (e) {
              return t[e];
            })
            .replace(/,/g, "،");
        },
        week: { dow: 6, doy: 12 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        0: "-чү",
        1: "-чи",
        2: "-чи",
        3: "-чү",
        4: "-чү",
        5: "-чи",
        6: "-чы",
        7: "-чи",
        8: "-чи",
        9: "-чу",
        10: "-чу",
        20: "-чы",
        30: "-чу",
        40: "-чы",
        50: "-чү",
        60: "-чы",
        70: "-чи",
        80: "-чи",
        90: "-чу",
        100: "-чү",
      };
      e.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 (e) {
          return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]);
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = {
          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 t ? o[n][0] : o[n][1];
      }
      function n(e) {
        if (((e = parseInt(e, 10)), isNaN(e))) return !1;
        if (e < 0) return !0;
        if (e < 10) return 4 <= e && e <= 7;
        if (e < 100) {
          var t = e % 10;
          return n(0 === t ? e / 10 : t);
        }
        if (e < 1e4) {
          for (; e >= 10; ) e /= 10;
          return n(e);
        }
        return n((e /= 1e3));
      }
      e.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: !0,
        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: !0,
        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 () {
            switch (this.day()) {
              case 2:
              case 4:
                return "[Leschten] dddd [um] LT";
              default:
                return "[Leschte] dddd [um] LT";
            }
          },
        },
        relativeTime: {
          future: function (e) {
            return n(e.substr(0, e.indexOf(" "))) ? "a " + e : "an " + e;
          },
          past: function (e) {
            return n(e.substr(0, e.indexOf(" "))) ? "viru " + e : "virun " + e;
          },
          s: "e puer Sekonnen",
          ss: "%d Sekonnen",
          m: t,
          mm: "%d Minutten",
          h: t,
          hh: "%d Stonnen",
          d: t,
          dd: "%d Deeg",
          M: t,
          MM: "%d Méint",
          y: t,
          yy: "%d Joer",
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("lo", {
        months: "ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split(
          "_"
        ),
        monthsShort: "ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split(
          "_"
        ),
        weekdays: "ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),
        weekdaysShort: "ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),
        weekdaysMin: "ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return "ຕອນແລງ" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "ຕອນເຊົ້າ" : "ຕອນແລງ";
        },
        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 (e) {
          return "ທີ່" + e;
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        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 n(e, t, n, r) {
        return t ? o(n)[0] : r ? o(n)[1] : o(n)[2];
      }
      function r(e) {
        return e % 10 == 0 || (e > 10 && e < 20);
      }
      function o(e) {
        return t[e].split("_");
      }
      function a(e, t, a, i) {
        var s = e + " ";
        return 1 === e
          ? s + n(0, t, a[0], i)
          : t
          ? s + (r(e) ? o(a)[1] : o(a)[0])
          : i
          ? s + o(a)[1]
          : s + (r(e) ? o(a)[1] : o(a)[2]);
      }
      e.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: !0,
        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: function (e, t, n, r) {
            return t
              ? "kelios sekundės"
              : r
              ? "kelių sekundžių"
              : "kelias sekundes";
          },
          ss: a,
          m: n,
          mm: a,
          h: n,
          hh: a,
          d: n,
          dd: a,
          M: n,
          MM: a,
          y: n,
          yy: a,
        },
        dayOfMonthOrdinalParse: /\d{1,2}-oji/,
        ordinal: function (e) {
          return e + "-oji";
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        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("_"),
      };
      function n(e, t, n) {
        return n
          ? t % 10 == 1 && t % 100 != 11
            ? e[2]
            : e[3]
          : t % 10 == 1 && t % 100 != 11
          ? e[0]
          : e[1];
      }
      function r(e, r, o) {
        return e + " " + n(t[o], e, r);
      }
      function o(e, r, o) {
        return n(t[o], e, r);
      }
      e.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: !0,
        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: function (e, t) {
            return t ? "dažas sekundes" : "dažām sekundēm";
          },
          ss: r,
          m: o,
          mm: r,
          h: o,
          hh: r,
          d: o,
          dd: r,
          M: o,
          MM: r,
          y: o,
          yy: r,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        words: {
          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 (e, t) {
          return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2];
        },
        translate: function (e, n, r) {
          var o = t.words[r];
          return 1 === r.length
            ? n
              ? o[0]
              : o[1]
            : e + " " + t.correctGrammaticalCase(e, o);
        },
      };
      e.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: !0,
        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: !0,
        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 () {
            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 () {
            return [
              "[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",
            ][this.day()];
          },
          sameElse: "L",
        },
        relativeTime: {
          future: "za %s",
          past: "prije %s",
          s: "nekoliko sekundi",
          ss: t.translate,
          m: t.translate,
          mm: t.translate,
          h: t.translate,
          hh: t.translate,
          d: "dan",
          dd: t.translate,
          M: "mjesec",
          MM: t.translate,
          y: "godinu",
          yy: t.translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 () {
            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 (e) {
          var t = e % 10,
            n = e % 100;
          return 0 === e
            ? e + "-ев"
            : 0 === n
            ? e + "-ен"
            : n > 10 && n < 20
            ? e + "-ти"
            : 1 === t
            ? e + "-ви"
            : 2 === t
            ? e + "-ри"
            : 7 === t || 8 === t
            ? e + "-ми"
            : e + "-ти";
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("ml", {
        months: "ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split(
          "_"
        ),
        monthsShort: "ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split(
          "_"
        ),
        monthsParseExact: !0,
        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 (e, t) {
          return (
            12 === e && (e = 0),
            ("രാത്രി" === t && e >= 4) ||
            "ഉച്ച കഴിഞ്ഞ്" === t ||
            "വൈകുന്നേരം" === t
              ? e + 12
              : e
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "രാത്രി"
            : e < 12
            ? "രാവിലെ"
            : e < 17
            ? "ഉച്ച കഴിഞ്ഞ്"
            : e < 20
            ? "വൈകുന്നേരം"
            : "രാത്രി";
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        switch (n) {
          case "s":
            return t ? "хэдхэн секунд" : "хэдхэн секундын";
          case "ss":
            return e + (t ? " секунд" : " секундын");
          case "m":
          case "mm":
            return e + (t ? " минут" : " минутын");
          case "h":
          case "hh":
            return e + (t ? " цаг" : " цагийн");
          case "d":
          case "dd":
            return e + (t ? " өдөр" : " өдрийн");
          case "M":
          case "MM":
            return e + (t ? " сар" : " сарын");
          case "y":
          case "yy":
            return e + (t ? " жил" : " жилийн");
          default:
            return e;
        }
      }
      e.defineLocale("mn", {
        months: "Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split(
          "_"
        ),
        monthsShort: "1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split(
          "_"
        ),
        monthsParseExact: !0,
        weekdays: "Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),
        weekdaysShort: "Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),
        weekdaysMin: "Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return "ҮХ" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "ҮӨ" : "ҮХ";
        },
        calendar: {
          sameDay: "[Өнөөдөр] LT",
          nextDay: "[Маргааш] LT",
          nextWeek: "[Ирэх] dddd LT",
          lastDay: "[Өчигдөр] LT",
          lastWeek: "[Өнгөрсөн] dddd LT",
          sameElse: "L",
        },
        relativeTime: {
          future: "%s дараа",
          past: "%s өмнө",
          s: t,
          ss: t,
          m: t,
          mm: t,
          h: t,
          hh: t,
          d: t,
          dd: t,
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
        ordinal: function (e, t) {
          switch (t) {
            case "d":
            case "D":
            case "DDD":
              return e + " өдөр";
            default:
              return e;
          }
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "१",
          2: "२",
          3: "३",
          4: "४",
          5: "५",
          6: "६",
          7: "७",
          8: "८",
          9: "९",
          0: "०",
        },
        n = {
          "१": "1",
          "२": "2",
          "३": "3",
          "४": "4",
          "५": "5",
          "६": "6",
          "७": "7",
          "८": "8",
          "९": "9",
          "०": "0",
        };
      function r(e, t, n, r) {
        var o = "";
        if (t)
          switch (n) {
            case "s":
              o = "काही सेकंद";
              break;
            case "ss":
              o = "%d सेकंद";
              break;
            case "m":
              o = "एक मिनिट";
              break;
            case "mm":
              o = "%d मिनिटे";
              break;
            case "h":
              o = "एक तास";
              break;
            case "hh":
              o = "%d तास";
              break;
            case "d":
              o = "एक दिवस";
              break;
            case "dd":
              o = "%d दिवस";
              break;
            case "M":
              o = "एक महिना";
              break;
            case "MM":
              o = "%d महिने";
              break;
            case "y":
              o = "एक वर्ष";
              break;
            case "yy":
              o = "%d वर्षे";
          }
        else
          switch (n) {
            case "s":
              o = "काही सेकंदां";
              break;
            case "ss":
              o = "%d सेकंदां";
              break;
            case "m":
              o = "एका मिनिटा";
              break;
            case "mm":
              o = "%d मिनिटां";
              break;
            case "h":
              o = "एका तासा";
              break;
            case "hh":
              o = "%d तासां";
              break;
            case "d":
              o = "एका दिवसा";
              break;
            case "dd":
              o = "%d दिवसां";
              break;
            case "M":
              o = "एका महिन्या";
              break;
            case "MM":
              o = "%d महिन्यां";
              break;
            case "y":
              o = "एका वर्षा";
              break;
            case "yy":
              o = "%d वर्षां";
          }
        return o.replace(/%d/i, e);
      }
      e.defineLocale("mr", {
        months: "जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split(
          "_"
        ),
        monthsShort: "जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split(
          "_"
        ),
        monthsParseExact: !0,
        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: r,
          ss: r,
          m: r,
          mm: r,
          h: r,
          hh: r,
          d: r,
          dd: r,
          M: r,
          MM: r,
          y: r,
          yy: r,
        },
        preparse: function (e) {
          return e.replace(/[१२३४५६७८९०]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "पहाटे" === t || "सकाळी" === t
              ? e
              : "दुपारी" === t || "सायंकाळी" === t || "रात्री" === t
              ? e >= 12
                ? e
                : e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e >= 0 && e < 6
            ? "पहाटे"
            : e < 12
            ? "सकाळी"
            : e < 17
            ? "दुपारी"
            : e < 20
            ? "सायंकाळी"
            : "रात्री";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "pagi" === t
              ? e
              : "tengahari" === t
              ? e >= 11
                ? e
                : e + 12
              : "petang" === t || "malam" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 11
            ? "pagi"
            : e < 15
            ? "tengahari"
            : e < 19
            ? "petang"
            : "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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "pagi" === t
              ? e
              : "tengahari" === t
              ? e >= 11
                ? e
                : e + 12
              : "petang" === t || "malam" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 11
            ? "pagi"
            : e < 15
            ? "tengahari"
            : e < 19
            ? "petang"
            : "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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "၁",
          2: "၂",
          3: "၃",
          4: "၄",
          5: "၅",
          6: "၆",
          7: "၇",
          8: "၈",
          9: "၉",
          0: "၀",
        },
        n = {
          "၁": "1",
          "၂": "2",
          "၃": "3",
          "၄": "4",
          "၅": "5",
          "၆": "6",
          "၇": "7",
          "၈": "8",
          "၉": "9",
          "၀": "0",
        };
      e.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 (e) {
          return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "१",
          2: "२",
          3: "३",
          4: "४",
          5: "५",
          6: "६",
          7: "७",
          8: "८",
          9: "९",
          0: "०",
        },
        n = {
          "१": "1",
          "२": "2",
          "३": "3",
          "४": "4",
          "५": "5",
          "६": "6",
          "७": "7",
          "८": "8",
          "९": "9",
          "०": "0",
        };
      e.defineLocale("ne", {
        months: "जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split(
          "_"
        ),
        monthsShort: "जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split(
          "_"
        ),
        monthsParseExact: !0,
        weekdays: "आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split(
          "_"
        ),
        weekdaysShort: "आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),
        weekdaysMin: "आ._सो._मं._बु._बि._शु._श.".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return e.replace(/[१२३४५६७८९०]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "राति" === t
              ? e < 4
                ? e
                : e + 12
              : "बिहान" === t
              ? e
              : "दिउँसो" === t
              ? e >= 10
                ? e
                : e + 12
              : "साँझ" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 3
            ? "राति"
            : e < 12
            ? "बिहान"
            : e < 16
            ? "दिउँसो"
            : e < 20
            ? "साँझ"
            : "राति";
        },
        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, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split(
          "_"
        ),
        n = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),
        r = [
          /^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,
        ],
        o = /^(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;
      e.defineLocale("nl", {
        months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split(
          "_"
        ),
        monthsShort: function (e, r) {
          return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t;
        },
        monthsRegex: o,
        monthsShortRegex: o,
        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: r,
        longMonthsParse: r,
        shortMonthsParse: r,
        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: !0,
        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 (e) {
          return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de");
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split(
          "_"
        ),
        n = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),
        r = [
          /^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,
        ],
        o = /^(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;
      e.defineLocale("nl-be", {
        months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split(
          "_"
        ),
        monthsShort: function (e, r) {
          return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t;
        },
        monthsRegex: o,
        monthsShortRegex: o,
        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: r,
        longMonthsParse: r,
        shortMonthsParse: r,
        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: !0,
        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 (e) {
          return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de");
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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 (e, t) {
          var n =
            1 === e ? "r" : 2 === e ? "n" : 3 === e ? "r" : 4 === e ? "t" : "è";
          return ("w" !== t && "W" !== t) || (n = "a"), e + n;
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "੧",
          2: "੨",
          3: "੩",
          4: "੪",
          5: "੫",
          6: "੬",
          7: "੭",
          8: "੮",
          9: "੯",
          0: "੦",
        },
        n = {
          "੧": "1",
          "੨": "2",
          "੩": "3",
          "੪": "4",
          "੫": "5",
          "੬": "6",
          "੭": "7",
          "੮": "8",
          "੯": "9",
          "੦": "0",
        };
      e.defineLocale("pa-in", {
        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 (e) {
          return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "ਰਾਤ" === t
              ? e < 4
                ? e
                : e + 12
              : "ਸਵੇਰ" === t
              ? e
              : "ਦੁਪਹਿਰ" === t
              ? e >= 10
                ? e
                : e + 12
              : "ਸ਼ਾਮ" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "ਰਾਤ"
            : e < 10
            ? "ਸਵੇਰ"
            : e < 17
            ? "ਦੁਪਹਿਰ"
            : e < 20
            ? "ਸ਼ਾਮ"
            : "ਰਾਤ";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split(
          "_"
        ),
        n = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split(
          "_"
        ),
        r = [
          /^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 o(e) {
        return e % 10 < 5 && e % 10 > 1 && ~~(e / 10) % 10 != 1;
      }
      function a(e, t, n) {
        var r = e + " ";
        switch (n) {
          case "ss":
            return r + (o(e) ? "sekundy" : "sekund");
          case "m":
            return t ? "minuta" : "minutę";
          case "mm":
            return r + (o(e) ? "minuty" : "minut");
          case "h":
            return t ? "godzina" : "godzinę";
          case "hh":
            return r + (o(e) ? "godziny" : "godzin");
          case "ww":
            return r + (o(e) ? "tygodnie" : "tygodni");
          case "MM":
            return r + (o(e) ? "miesiące" : "miesięcy");
          case "yy":
            return r + (o(e) ? "lata" : "lat");
        }
      }
      e.defineLocale("pl", {
        months: function (e, r) {
          return e ? (/D MMMM/.test(r) ? n[e.month()] : t[e.month()]) : t;
        },
        monthsShort: "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split(
          "_"
        ),
        monthsParse: r,
        longMonthsParse: r,
        shortMonthsParse: r,
        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 () {
            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 () {
            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: a,
          m: a,
          mm: a,
          h: a,
          hh: a,
          d: "1 dzień",
          dd: "%d dni",
          w: "tydzień",
          ww: a,
          M: "miesiąc",
          MM: a,
          y: "rok",
          yy: a,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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 () {
            return 0 === this.day() || 6 === this.day()
              ? "[Último] dddd [às] LT"
              : "[Última] dddd [às] LT";
          },
          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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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 () {
            return 0 === this.day() || 6 === this.day()
              ? "[Último] dddd [às] LT"
              : "[Última] dddd [às] LT";
          },
          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",
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n) {
        var r = " ";
        return (
          (e % 100 >= 20 || (e >= 100 && e % 100 == 0)) && (r = " de "),
          e +
            r +
            {
              ss: "secunde",
              mm: "minute",
              hh: "ore",
              dd: "zile",
              ww: "săptămâni",
              MM: "luni",
              yy: "ani",
            }[n]
        );
      }
      e.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: !0,
        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: t,
          m: "un minut",
          mm: t,
          h: "o oră",
          hh: t,
          d: "o zi",
          dd: t,
          w: "o săptămână",
          ww: t,
          M: "o lună",
          MM: t,
          y: "un an",
          yy: t,
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n) {
        var r, o;
        return "m" === n
          ? t
            ? "минута"
            : "минуту"
          : e +
              " " +
              ((r = +e),
              (o = {
                ss: t ? "секунда_секунды_секунд" : "секунду_секунды_секунд",
                mm: t ? "минута_минуты_минут" : "минуту_минуты_минут",
                hh: "час_часа_часов",
                dd: "день_дня_дней",
                ww: "неделя_недели_недель",
                MM: "месяц_месяца_месяцев",
                yy: "год_года_лет",
              }[n].split("_")),
              r % 10 == 1 && r % 100 != 11
                ? o[0]
                : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20)
                ? o[1]
                : o[2]);
      }
      var n = [
        /^янв/i,
        /^фев/i,
        /^мар/i,
        /^апр/i,
        /^ма[йя]/i,
        /^июн/i,
        /^июл/i,
        /^авг/i,
        /^сен/i,
        /^окт/i,
        /^ноя/i,
        /^дек/i,
      ];
      e.defineLocale("ru", {
        months: {
          format: "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split(
            "_"
          ),
          standalone: "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split(
            "_"
          ),
        },
        monthsShort: {
          format: "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split(
            "_"
          ),
          standalone: "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split(
            "_"
          ),
        },
        weekdays: {
          standalone: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split(
            "_"
          ),
          format: "воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split(
            "_"
          ),
          isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
        },
        weekdaysShort: "вс_пн_вт_ср_чт_пт_сб".split("_"),
        weekdaysMin: "вс_пн_вт_ср_чт_пт_сб".split("_"),
        monthsParse: n,
        longMonthsParse: n,
        shortMonthsParse: n,
        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 (e) {
            if (e.week() === this.week())
              return 2 === this.day()
                ? "[Во] dddd, [в] LT"
                : "[В] dddd, [в] LT";
            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";
            }
          },
          lastWeek: function (e) {
            if (e.week() === this.week())
              return 2 === this.day()
                ? "[Во] dddd, [в] LT"
                : "[В] dddd, [в] LT";
            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";
            }
          },
          sameElse: "L",
        },
        relativeTime: {
          future: "через %s",
          past: "%s назад",
          s: "несколько секунд",
          ss: t,
          m: t,
          mm: t,
          h: "час",
          hh: t,
          d: "день",
          dd: t,
          w: "неделя",
          ww: t,
          M: "месяц",
          MM: t,
          y: "год",
          yy: t,
        },
        meridiemParse: /ночи|утра|дня|вечера/i,
        isPM: function (e) {
          return /^(дня|вечера)$/.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 4 ? "ночи" : e < 12 ? "утра" : e < 17 ? "дня" : "вечера";
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
        ordinal: function (e, t) {
          switch (t) {
            case "M":
            case "d":
            case "DDD":
              return e + "-й";
            case "D":
              return e + "-го";
            case "w":
            case "W":
              return e + "-я";
            default:
              return e;
          }
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = [
          "جنوري",
          "فيبروري",
          "مارچ",
          "اپريل",
          "مئي",
          "جون",
          "جولاءِ",
          "آگسٽ",
          "سيپٽمبر",
          "آڪٽوبر",
          "نومبر",
          "ڊسمبر",
        ],
        n = ["آچر", "سومر", "اڱارو", "اربع", "خميس", "جمع", "ڇنڇر"];
      e.defineLocale("sd", {
        months: t,
        monthsShort: t,
        weekdays: n,
        weekdaysShort: n,
        weekdaysMin: n,
        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 (e) {
          return "شام" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "صبح" : "شام";
        },
        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 (e) {
          return e.replace(/،/g, ",");
        },
        postformat: function (e) {
          return e.replace(/,/g, "،");
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("si", {
        months: "ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split(
          "_"
        ),
        monthsShort: "ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split(
          "_"
        ),
        weekdays: "ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split(
          "_"
        ),
        weekdaysShort: "ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),
        weekdaysMin: "ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return e + " වැනි";
        },
        meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
        isPM: function (e) {
          return "ප.ව." === e || "පස් වරු" === e;
        },
        meridiem: function (e, t, n) {
          return e > 11 ? (n ? "ප.ව." : "පස් වරු") : n ? "පෙ.ව." : "පෙර වරු";
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split(
          "_"
        ),
        n = "jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");
      function r(e) {
        return e > 1 && e < 5;
      }
      function o(e, t, n, o) {
        var a = e + " ";
        switch (n) {
          case "s":
            return t || o ? "pár sekúnd" : "pár sekundami";
          case "ss":
            return t || o ? a + (r(e) ? "sekundy" : "sekúnd") : a + "sekundami";
          case "m":
            return t ? "minúta" : o ? "minútu" : "minútou";
          case "mm":
            return t || o ? a + (r(e) ? "minúty" : "minút") : a + "minútami";
          case "h":
            return t ? "hodina" : o ? "hodinu" : "hodinou";
          case "hh":
            return t || o ? a + (r(e) ? "hodiny" : "hodín") : a + "hodinami";
          case "d":
            return t || o ? "deň" : "dňom";
          case "dd":
            return t || o ? a + (r(e) ? "dni" : "dní") : a + "dňami";
          case "M":
            return t || o ? "mesiac" : "mesiacom";
          case "MM":
            return t || o
              ? a + (r(e) ? "mesiace" : "mesiacov")
              : a + "mesiacmi";
          case "y":
            return t || o ? "rok" : "rokom";
          case "yy":
            return t || o ? a + (r(e) ? "roky" : "rokov") : a + "rokmi";
        }
      }
      e.defineLocale("sk", {
        months: t,
        monthsShort: n,
        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 () {
            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 () {
            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: o,
          ss: o,
          m: o,
          mm: o,
          h: o,
          hh: o,
          d: o,
          dd: o,
          M: o,
          MM: o,
          y: o,
          yy: o,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = e + " ";
        switch (n) {
          case "s":
            return t || r ? "nekaj sekund" : "nekaj sekundami";
          case "ss":
            return (o +=
              1 === e
                ? t
                  ? "sekundo"
                  : "sekundi"
                : 2 === e
                ? t || r
                  ? "sekundi"
                  : "sekundah"
                : e < 5
                ? t || r
                  ? "sekunde"
                  : "sekundah"
                : "sekund");
          case "m":
            return t ? "ena minuta" : "eno minuto";
          case "mm":
            return (o +=
              1 === e
                ? t
                  ? "minuta"
                  : "minuto"
                : 2 === e
                ? t || r
                  ? "minuti"
                  : "minutama"
                : e < 5
                ? t || r
                  ? "minute"
                  : "minutami"
                : t || r
                ? "minut"
                : "minutami");
          case "h":
            return t ? "ena ura" : "eno uro";
          case "hh":
            return (o +=
              1 === e
                ? t
                  ? "ura"
                  : "uro"
                : 2 === e
                ? t || r
                  ? "uri"
                  : "urama"
                : e < 5
                ? t || r
                  ? "ure"
                  : "urami"
                : t || r
                ? "ur"
                : "urami");
          case "d":
            return t || r ? "en dan" : "enim dnem";
          case "dd":
            return (o +=
              1 === e
                ? t || r
                  ? "dan"
                  : "dnem"
                : 2 === e
                ? t || r
                  ? "dni"
                  : "dnevoma"
                : t || r
                ? "dni"
                : "dnevi");
          case "M":
            return t || r ? "en mesec" : "enim mesecem";
          case "MM":
            return (o +=
              1 === e
                ? t || r
                  ? "mesec"
                  : "mesecem"
                : 2 === e
                ? t || r
                  ? "meseca"
                  : "mesecema"
                : e < 5
                ? t || r
                  ? "mesece"
                  : "meseci"
                : t || r
                ? "mesecev"
                : "meseci");
          case "y":
            return t || r ? "eno leto" : "enim letom";
          case "yy":
            return (o +=
              1 === e
                ? t || r
                  ? "leto"
                  : "letom"
                : 2 === e
                ? t || r
                  ? "leti"
                  : "letoma"
                : e < 5
                ? t || r
                  ? "leta"
                  : "leti"
                : t || r
                ? "let"
                : "leti");
        }
      }
      e.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: !0,
        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: !0,
        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 () {
            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 () {
            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: t,
          ss: t,
          m: t,
          mm: t,
          h: t,
          hh: t,
          d: t,
          dd: t,
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        meridiemParse: /PD|MD/,
        isPM: function (e) {
          return "M" === e.charAt(0);
        },
        meridiem: function (e, t, n) {
          return e < 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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        words: {
          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 (e, t) {
          return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2];
        },
        translate: function (e, n, r) {
          var o = t.words[r];
          return 1 === r.length
            ? n
              ? o[0]
              : o[1]
            : e + " " + t.correctGrammaticalCase(e, o);
        },
      };
      e.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: !0,
        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: !0,
        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 () {
            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 () {
            return [
              "[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",
            ][this.day()];
          },
          sameElse: "L",
        },
        relativeTime: {
          future: "za %s",
          past: "pre %s",
          s: "nekoliko sekundi",
          ss: t.translate,
          m: t.translate,
          mm: t.translate,
          h: t.translate,
          hh: t.translate,
          d: "dan",
          dd: t.translate,
          M: "mesec",
          MM: t.translate,
          y: "godinu",
          yy: t.translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        words: {
          ss: ["секунда", "секунде", "секунди"],
          m: ["један минут", "једне минуте"],
          mm: ["минут", "минуте", "минута"],
          h: ["један сат", "једног сата"],
          hh: ["сат", "сата", "сати"],
          dd: ["дан", "дана", "дана"],
          MM: ["месец", "месеца", "месеци"],
          yy: ["година", "године", "година"],
        },
        correctGrammaticalCase: function (e, t) {
          return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2];
        },
        translate: function (e, n, r) {
          var o = t.words[r];
          return 1 === r.length
            ? n
              ? o[0]
              : o[1]
            : e + " " + t.correctGrammaticalCase(e, o);
        },
      };
      e.defineLocale("sr-cyrl", {
        months: "јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split(
          "_"
        ),
        monthsShort: "јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split(
          "_"
        ),
        monthsParseExact: !0,
        weekdays: "недеља_понедељак_уторак_среда_четвртак_петак_субота".split(
          "_"
        ),
        weekdaysShort: "нед._пон._уто._сре._чет._пет._суб.".split("_"),
        weekdaysMin: "не_по_ут_ср_че_пе_су".split("_"),
        weekdaysParseExact: !0,
        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 () {
            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 () {
            return [
              "[прошле] [недеље] [у] LT",
              "[прошлог] [понедељка] [у] LT",
              "[прошлог] [уторка] [у] LT",
              "[прошле] [среде] [у] LT",
              "[прошлог] [четвртка] [у] LT",
              "[прошлог] [петка] [у] LT",
              "[прошле] [суботе] [у] LT",
            ][this.day()];
          },
          sameElse: "L",
        },
        relativeTime: {
          future: "за %s",
          past: "пре %s",
          s: "неколико секунди",
          ss: t.translate,
          m: t.translate,
          mm: t.translate,
          h: t.translate,
          hh: t.translate,
          d: "дан",
          dd: t.translate,
          M: "месец",
          MM: t.translate,
          y: "годину",
          yy: t.translate,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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 (e, t, n) {
          return e < 11
            ? "ekuseni"
            : e < 15
            ? "emini"
            : e < 19
            ? "entsambama"
            : "ebusuku";
        },
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "ekuseni" === t
              ? e
              : "emini" === t
              ? e >= 11
                ? e
                : e + 12
              : "entsambama" === t || "ebusuku" === t
              ? 0 === e
                ? 0
                : e + 12
              : void 0
          );
        },
        dayOfMonthOrdinalParse: /\d{1,2}/,
        ordinal: "%d",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10) ? ":e" : 1 === t || 2 === t ? ":a" : ":e")
          );
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
          1: "௧",
          2: "௨",
          3: "௩",
          4: "௪",
          5: "௫",
          6: "௬",
          7: "௭",
          8: "௮",
          9: "௯",
          0: "௦",
        },
        n = {
          "௧": "1",
          "௨": "2",
          "௩": "3",
          "௪": "4",
          "௫": "5",
          "௬": "6",
          "௭": "7",
          "௮": "8",
          "௯": "9",
          "௦": "0",
        };
      e.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 (e) {
          return e + "வது";
        },
        preparse: function (e) {
          return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (e) {
            return n[e];
          });
        },
        postformat: function (e) {
          return e.replace(/\d/g, function (e) {
            return t[e];
          });
        },
        meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
        meridiem: function (e, t, n) {
          return e < 2
            ? " யாமம்"
            : e < 6
            ? " வைகறை"
            : e < 10
            ? " காலை"
            : e < 14
            ? " நண்பகல்"
            : e < 18
            ? " எற்பாடு"
            : e < 22
            ? " மாலை"
            : " யாமம்";
        },
        meridiemHour: function (e, t) {
          return (
            12 === e && (e = 0),
            "யாமம்" === t
              ? e < 2
                ? e
                : e + 12
              : "வைகறை" === t || "காலை" === t || ("நண்பகல்" === t && e >= 10)
              ? e
              : e + 12
          );
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("te", {
        months: "జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split(
          "_"
        ),
        monthsShort: "జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split(
          "_"
        ),
        monthsParseExact: !0,
        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 (e, t) {
          return (
            12 === e && (e = 0),
            "రాత్రి" === t
              ? e < 4
                ? e
                : e + 12
              : "ఉదయం" === t
              ? e
              : "మధ్యాహ్నం" === t
              ? e >= 10
                ? e
                : e + 12
              : "సాయంత్రం" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "రాత్రి"
            : e < 10
            ? "ఉదయం"
            : e < 17
            ? "మధ్యాహ్నం"
            : e < 20
            ? "సాయంత్రం"
            : "రాత్రి";
        },
        week: { dow: 0, doy: 6 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        0: "-ум",
        1: "-ум",
        2: "-юм",
        3: "-юм",
        4: "-ум",
        5: "-ум",
        6: "-ум",
        7: "-ум",
        8: "-ум",
        9: "-ум",
        10: "-ум",
        12: "-ум",
        13: "-ум",
        20: "-ум",
        30: "-юм",
        40: "-ум",
        50: "-ум",
        60: "-ум",
        70: "-ум",
        80: "-ум",
        90: "-ум",
        100: "-ум",
      };
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "шаб" === t
              ? e < 4
                ? e
                : e + 12
              : "субҳ" === t
              ? e
              : "рӯз" === t
              ? e >= 11
                ? e
                : e + 12
              : "бегоҳ" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          return e < 4
            ? "шаб"
            : e < 11
            ? "субҳ"
            : e < 16
            ? "рӯз"
            : e < 19
            ? "бегоҳ"
            : "шаб";
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
        ordinal: function (e) {
          return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]);
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.defineLocale("th", {
        months: "มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split(
          "_"
        ),
        monthsShort: "ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split(
          "_"
        ),
        monthsParseExact: !0,
        weekdays: "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),
        weekdaysShort: "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),
        weekdaysMin: "อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),
        weekdaysParseExact: !0,
        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 (e) {
          return "หลังเที่ยง" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "ก่อนเที่ยง" : "หลังเที่ยง";
        },
        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 ปี",
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        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",
      };
      e.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 (e, n) {
          switch (n) {
            case "d":
            case "D":
            case "Do":
            case "DD":
              return e;
            default:
              if (0 === e) return e + "'unjy";
              var r = e % 10;
              return e + (t[r] || t[(e % 100) - r] || t[e >= 100 ? 100 : null]);
          }
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e) {
          return e;
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = "pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");
      function n(e, n, r, o) {
        var a = (function (e) {
          var n = Math.floor((e % 1e3) / 100),
            r = Math.floor((e % 100) / 10),
            o = e % 10,
            a = "";
          return (
            n > 0 && (a += t[n] + "vatlh"),
            r > 0 && (a += ("" !== a ? " " : "") + t[r] + "maH"),
            o > 0 && (a += ("" !== a ? " " : "") + t[o]),
            "" === a ? "pagh" : a
          );
        })(e);
        switch (r) {
          case "ss":
            return a + " lup";
          case "mm":
            return a + " tup";
          case "hh":
            return a + " rep";
          case "dd":
            return a + " jaj";
          case "MM":
            return a + " jar";
          case "yy":
            return a + " DIS";
        }
      }
      e.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: !0,
        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: function (e) {
            var t = e;
            return (t =
              -1 !== e.indexOf("jaj")
                ? t.slice(0, -3) + "leS"
                : -1 !== e.indexOf("jar")
                ? t.slice(0, -3) + "waQ"
                : -1 !== e.indexOf("DIS")
                ? t.slice(0, -3) + "nem"
                : t + " pIq");
          },
          past: function (e) {
            var t = e;
            return (t =
              -1 !== e.indexOf("jaj")
                ? t.slice(0, -3) + "Hu’"
                : -1 !== e.indexOf("jar")
                ? t.slice(0, -3) + "wen"
                : -1 !== e.indexOf("DIS")
                ? t.slice(0, -3) + "ben"
                : t + " ret");
          },
          s: "puS lup",
          ss: n,
          m: "wa’ tup",
          mm: n,
          h: "wa’ rep",
          hh: n,
          d: "wa’ jaj",
          dd: n,
          M: "wa’ jar",
          MM: n,
          y: "wa’ DIS",
          yy: n,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = {
        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ı",
      };
      e.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 (e, t, n) {
          return e < 12 ? (n ? "öö" : "ÖÖ") : n ? "ös" : "ÖS";
        },
        meridiemParse: /öö|ÖÖ|ös|ÖS/,
        isPM: function (e) {
          return "ös" === e || "ÖS" === e;
        },
        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 (e, n) {
          switch (n) {
            case "d":
            case "D":
            case "Do":
            case "DD":
              return e;
            default:
              if (0 === e) return e + "'ıncı";
              var r = e % 10;
              return e + (t[r] || t[(e % 100) - r] || t[e >= 100 ? 100 : null]);
          }
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n, r) {
        var o = {
          s: ["viensas secunds", "'iensas secunds"],
          ss: [e + " secunds", e + " secunds"],
          m: ["'n míut", "'iens míut"],
          mm: [e + " míuts", e + " míuts"],
          h: ["'n þora", "'iensa þora"],
          hh: [e + " þoras", e + " þoras"],
          d: ["'n ziua", "'iensa ziua"],
          dd: [e + " ziuas", e + " ziuas"],
          M: ["'n mes", "'iens mes"],
          MM: [e + " mesen", e + " mesen"],
          y: ["'n ar", "'iens ar"],
          yy: [e + " ars", e + " ars"],
        };
        return r || t ? o[n][0] : o[n][1];
      }
      e.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 (e) {
          return "d'o" === e.toLowerCase();
        },
        meridiem: function (e, t, n) {
          return e > 11 ? (n ? "d'o" : "D'O") : n ? "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: t,
          ss: t,
          m: t,
          mm: t,
          h: t,
          hh: t,
          d: t,
          dd: t,
          M: t,
          MM: t,
          y: t,
          yy: t,
        },
        dayOfMonthOrdinalParse: /\d{1,2}\./,
        ordinal: "%d.",
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 12 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 12 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "يېرىم كېچە" === t || "سەھەر" === t || "چۈشتىن بۇرۇن" === t
              ? e
              : "چۈشتىن كېيىن" === t || "كەچ" === t
              ? e + 12
              : e >= 11
              ? e
              : e + 12
          );
        },
        meridiem: function (e, t, n) {
          var r = 100 * e + t;
          return r < 600
            ? "يېرىم كېچە"
            : r < 900
            ? "سەھەر"
            : r < 1130
            ? "چۈشتىن بۇرۇن"
            : r < 1230
            ? "چۈش"
            : r < 1800
            ? "چۈشتىن كېيىن"
            : "كەچ";
        },
        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 (e, t) {
          switch (t) {
            case "d":
            case "D":
            case "DDD":
              return e + "-كۈنى";
            case "w":
            case "W":
              return e + "-ھەپتە";
            default:
              return e;
          }
        },
        preparse: function (e) {
          return e.replace(/،/g, ",");
        },
        postformat: function (e) {
          return e.replace(/,/g, "،");
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      function t(e, t, n) {
        var r, o;
        return "m" === n
          ? t
            ? "хвилина"
            : "хвилину"
          : "h" === n
          ? t
            ? "година"
            : "годину"
          : e +
            " " +
            ((r = +e),
            (o = {
              ss: t ? "секунда_секунди_секунд" : "секунду_секунди_секунд",
              mm: t ? "хвилина_хвилини_хвилин" : "хвилину_хвилини_хвилин",
              hh: t ? "година_години_годин" : "годину_години_годин",
              dd: "день_дні_днів",
              MM: "місяць_місяці_місяців",
              yy: "рік_роки_років",
            }[n].split("_")),
            r % 10 == 1 && r % 100 != 11
              ? o[0]
              : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20)
              ? o[1]
              : o[2]);
      }
      function n(e) {
        return function () {
          return e + "о" + (11 === this.hours() ? "б" : "") + "] LT";
        };
      }
      e.defineLocale("uk", {
        months: {
          format: "січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split(
            "_"
          ),
          standalone: "січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split(
            "_"
          ),
        },
        monthsShort: "січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split(
          "_"
        ),
        weekdays: function (e, t) {
          var n = {
            nominative: "неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split(
              "_"
            ),
            accusative: "неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split(
              "_"
            ),
            genitive: "неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split(
              "_"
            ),
          };
          return !0 === e
            ? n.nominative.slice(1, 7).concat(n.nominative.slice(0, 1))
            : e
            ? n[
                /(\[[ВвУу]\]) ?dddd/.test(t)
                  ? "accusative"
                  : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)
                  ? "genitive"
                  : "nominative"
              ][e.day()]
            : n.nominative;
        },
        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: n("[Сьогодні "),
          nextDay: n("[Завтра "),
          lastDay: n("[Вчора "),
          nextWeek: n("[У] dddd ["),
          lastWeek: function () {
            switch (this.day()) {
              case 0:
              case 3:
              case 5:
              case 6:
                return n("[Минулої] dddd [").call(this);
              case 1:
              case 2:
              case 4:
                return n("[Минулого] dddd [").call(this);
            }
          },
          sameElse: "L",
        },
        relativeTime: {
          future: "за %s",
          past: "%s тому",
          s: "декілька секунд",
          ss: t,
          m: t,
          mm: t,
          h: "годину",
          hh: t,
          d: "день",
          dd: t,
          M: "місяць",
          MM: t,
          y: "рік",
          yy: t,
        },
        meridiemParse: /ночі|ранку|дня|вечора/,
        isPM: function (e) {
          return /^(дня|вечора)$/.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 4 ? "ночі" : e < 12 ? "ранку" : e < 17 ? "дня" : "вечора";
        },
        dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
        ordinal: function (e, t) {
          switch (t) {
            case "M":
            case "d":
            case "DDD":
            case "w":
            case "W":
              return e + "-й";
            case "D":
              return e + "-го";
            default:
              return e;
          }
        },
        week: { dow: 1, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      var t = [
          "جنوری",
          "فروری",
          "مارچ",
          "اپریل",
          "مئی",
          "جون",
          "جولائی",
          "اگست",
          "ستمبر",
          "اکتوبر",
          "نومبر",
          "دسمبر",
        ],
        n = ["اتوار", "پیر", "منگل", "بدھ", "جمعرات", "جمعہ", "ہفتہ"];
      e.defineLocale("ur", {
        months: t,
        monthsShort: t,
        weekdays: n,
        weekdaysShort: n,
        weekdaysMin: n,
        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 (e) {
          return "شام" === e;
        },
        meridiem: function (e, t, n) {
          return e < 12 ? "صبح" : "شام";
        },
        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 (e) {
          return e.replace(/،/g, ",");
        },
        postformat: function (e) {
          return e.replace(/,/g, "،");
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 7 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        meridiemParse: /sa|ch/i,
        isPM: function (e) {
          return /^ch$/i.test(e);
        },
        meridiem: function (e, t, n) {
          return e < 12 ? (n ? "sa" : "SA") : n ? "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 (e) {
          return e;
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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: !0,
        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: !0,
        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 (e) {
          var t = e % 10;
          return (
            e +
            (1 == ~~((e % 100) / 10)
              ? "th"
              : 1 === t
              ? "st"
              : 2 === t
              ? "nd"
              : 3 === t
              ? "rd"
              : "th")
          );
        },
        week: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "凌晨" === t || "早上" === t || "上午" === t
              ? e
              : "下午" === t || "晚上" === t
              ? e + 12
              : e >= 11
              ? e
              : e + 12
          );
        },
        meridiem: function (e, t, n) {
          var r = 100 * e + t;
          return r < 600
            ? "凌晨"
            : r < 900
            ? "早上"
            : r < 1130
            ? "上午"
            : r < 1230
            ? "中午"
            : r < 1800
            ? "下午"
            : "晚上";
        },
        calendar: {
          sameDay: "[今天]LT",
          nextDay: "[明天]LT",
          nextWeek: function (e) {
            return e.week() !== this.week() ? "[下]dddLT" : "[本]dddLT";
          },
          lastDay: "[昨天]LT",
          lastWeek: function (e) {
            return this.week() !== e.week() ? "[上]dddLT" : "[本]dddLT";
          },
          sameElse: "L",
        },
        dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
        ordinal: function (e, t) {
          switch (t) {
            case "d":
            case "D":
            case "DDD":
              return e + "日";
            case "M":
              return e + "月";
            case "w":
            case "W":
              return e + "周";
            default:
              return e;
          }
        },
        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: { dow: 1, doy: 4 },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "凌晨" === t || "早上" === t || "上午" === t
              ? e
              : "中午" === t
              ? e >= 11
                ? e
                : e + 12
              : "下午" === t || "晚上" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          var r = 100 * e + t;
          return r < 600
            ? "凌晨"
            : r < 900
            ? "早上"
            : r < 1200
            ? "上午"
            : 1200 === r
            ? "中午"
            : r < 1800
            ? "下午"
            : "晚上";
        },
        calendar: {
          sameDay: "[今天]LT",
          nextDay: "[明天]LT",
          nextWeek: "[下]ddddLT",
          lastDay: "[昨天]LT",
          lastWeek: "[上]ddddLT",
          sameElse: "L",
        },
        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
        ordinal: function (e, t) {
          switch (t) {
            case "d":
            case "D":
            case "DDD":
              return e + "日";
            case "M":
              return e + "月";
            case "w":
            case "W":
              return e + "週";
            default:
              return e;
          }
        },
        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 年",
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "凌晨" === t || "早上" === t || "上午" === t
              ? e
              : "中午" === t
              ? e >= 11
                ? e
                : e + 12
              : "下午" === t || "晚上" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          var r = 100 * e + t;
          return r < 600
            ? "凌晨"
            : r < 900
            ? "早上"
            : r < 1130
            ? "上午"
            : r < 1230
            ? "中午"
            : r < 1800
            ? "下午"
            : "晚上";
        },
        calendar: {
          sameDay: "[今天] LT",
          nextDay: "[明天] LT",
          nextWeek: "[下]dddd LT",
          lastDay: "[昨天] LT",
          lastWeek: "[上]dddd LT",
          sameElse: "L",
        },
        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
        ordinal: function (e, t) {
          switch (t) {
            case "d":
            case "D":
            case "DDD":
              return e + "日";
            case "M":
              return e + "月";
            case "w":
            case "W":
              return e + "週";
            default:
              return e;
          }
        },
        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 年",
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      //! moment.js locale configuration
      e.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 (e, t) {
          return (
            12 === e && (e = 0),
            "凌晨" === t || "早上" === t || "上午" === t
              ? e
              : "中午" === t
              ? e >= 11
                ? e
                : e + 12
              : "下午" === t || "晚上" === t
              ? e + 12
              : void 0
          );
        },
        meridiem: function (e, t, n) {
          var r = 100 * e + t;
          return r < 600
            ? "凌晨"
            : r < 900
            ? "早上"
            : r < 1130
            ? "上午"
            : r < 1230
            ? "中午"
            : r < 1800
            ? "下午"
            : "晚上";
        },
        calendar: {
          sameDay: "[今天] LT",
          nextDay: "[明天] LT",
          nextWeek: "[下]dddd LT",
          lastDay: "[昨天] LT",
          lastWeek: "[上]dddd LT",
          sameElse: "L",
        },
        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
        ordinal: function (e, t) {
          switch (t) {
            case "d":
            case "D":
            case "DDD":
              return e + "日";
            case "M":
              return e + "月";
            case "w":
            case "W":
              return e + "週";
            default:
              return e;
          }
        },
        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 年",
        },
      });
    })(n(3));
  },
  function (e, t, n) {
    var r = n(291);
    "string" == typeof r && (r = [[e.i, r, ""]]);
    var o = { hmr: !0, transform: void 0, insertInto: void 0 };
    n(293)(r, o);
    r.locals && (e.exports = r.locals);
  },
  function (e, t, n) {
    "use strict";
    var r = Array.prototype.slice,
      o = n(231),
      a = Object.keys,
      i = a
        ? function (e) {
            return a(e);
          }
        : n(337),
      s = Object.keys;
    (i.shim = function () {
      Object.keys
        ? (function () {
            var e = Object.keys(arguments);
            return e && e.length === arguments.length;
          })(1, 2) ||
          (Object.keys = function (e) {
            return o(e) ? s(r.call(e)) : s(e);
          })
        : (Object.keys = i);
      return Object.keys || i;
    }),
      (e.exports = i);
  },
  function (e, t, n) {
    "use strict";
    var r = Object.prototype.toString;
    e.exports = function (e) {
      var t = r.call(e),
        n = "[object Arguments]" === t;
      return (
        n ||
          (n =
            "[object Array]" !== t &&
            null !== e &&
            "object" == typeof e &&
            "number" == typeof e.length &&
            e.length >= 0 &&
            "[object Function]" === r.call(e.callee)),
        n
      );
    };
  },
  function (e, t, n) {
    "use strict";
    var r = SyntaxError,
      o = Function,
      a = TypeError,
      i = function (e) {
        try {
          return Function('"use strict"; return (' + e + ").constructor;")();
        } catch (e) {}
      },
      s = Object.getOwnPropertyDescriptor;
    if (s)
      try {
        s({}, "");
      } catch (e) {
        s = null;
      }
    var l = function () {
        throw new a();
      },
      c = s
        ? (function () {
            try {
              return l;
            } catch (e) {
              try {
                return s(arguments, "callee").get;
              } catch (e) {
                return l;
              }
            }
          })()
        : l,
      u = n(65)(),
      d =
        Object.getPrototypeOf ||
        function (e) {
          return e.__proto__;
        },
      h = i("async function* () {}"),
      p = h ? h.prototype : void 0,
      f = p ? p.prototype : void 0,
      m = "undefined" == typeof Uint8Array ? void 0 : d(Uint8Array),
      g = {
        "%AggregateError%":
          "undefined" == typeof AggregateError ? void 0 : AggregateError,
        "%Array%": Array,
        "%ArrayBuffer%":
          "undefined" == typeof ArrayBuffer ? void 0 : ArrayBuffer,
        "%ArrayIteratorPrototype%": u ? d([][Symbol.iterator]()) : void 0,
        "%AsyncFromSyncIteratorPrototype%": void 0,
        "%AsyncFunction%": i("async function () {}"),
        "%AsyncGenerator%": p,
        "%AsyncGeneratorFunction%": h,
        "%AsyncIteratorPrototype%": f ? d(f) : void 0,
        "%Atomics%": "undefined" == typeof Atomics ? void 0 : Atomics,
        "%BigInt%": "undefined" == typeof BigInt ? void 0 : BigInt,
        "%Boolean%": Boolean,
        "%DataView%": "undefined" == typeof DataView ? void 0 : DataView,
        "%Date%": Date,
        "%decodeURI%": decodeURI,
        "%decodeURIComponent%": decodeURIComponent,
        "%encodeURI%": encodeURI,
        "%encodeURIComponent%": encodeURIComponent,
        "%Error%": Error,
        "%eval%": eval,
        "%EvalError%": EvalError,
        "%Float32Array%":
          "undefined" == typeof Float32Array ? void 0 : Float32Array,
        "%Float64Array%":
          "undefined" == typeof Float64Array ? void 0 : Float64Array,
        "%FinalizationRegistry%":
          "undefined" == typeof FinalizationRegistry
            ? void 0
            : FinalizationRegistry,
        "%Function%": o,
        "%GeneratorFunction%": i("function* () {}"),
        "%Int8Array%": "undefined" == typeof Int8Array ? void 0 : Int8Array,
        "%Int16Array%": "undefined" == typeof Int16Array ? void 0 : Int16Array,
        "%Int32Array%": "undefined" == typeof Int32Array ? void 0 : Int32Array,
        "%isFinite%": isFinite,
        "%isNaN%": isNaN,
        "%IteratorPrototype%": u ? d(d([][Symbol.iterator]())) : void 0,
        "%JSON%": "object" == typeof JSON ? JSON : void 0,
        "%Map%": "undefined" == typeof Map ? void 0 : Map,
        "%MapIteratorPrototype%":
          "undefined" != typeof Map && u
            ? d(new Map()[Symbol.iterator]())
            : void 0,
        "%Math%": Math,
        "%Number%": Number,
        "%Object%": Object,
        "%parseFloat%": parseFloat,
        "%parseInt%": parseInt,
        "%Promise%": "undefined" == typeof Promise ? void 0 : Promise,
        "%Proxy%": "undefined" == typeof Proxy ? void 0 : Proxy,
        "%RangeError%": RangeError,
        "%ReferenceError%": ReferenceError,
        "%Reflect%": "undefined" == typeof Reflect ? void 0 : Reflect,
        "%RegExp%": RegExp,
        "%Set%": "undefined" == typeof Set ? void 0 : Set,
        "%SetIteratorPrototype%":
          "undefined" != typeof Set && u
            ? d(new Set()[Symbol.iterator]())
            : void 0,
        "%SharedArrayBuffer%":
          "undefined" == typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer,
        "%String%": String,
        "%StringIteratorPrototype%": u ? d(""[Symbol.iterator]()) : void 0,
        "%Symbol%": u ? Symbol : void 0,
        "%SyntaxError%": r,
        "%ThrowTypeError%": c,
        "%TypedArray%": m,
        "%TypeError%": a,
        "%Uint8Array%": "undefined" == typeof Uint8Array ? void 0 : Uint8Array,
        "%Uint8ClampedArray%":
          "undefined" == typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray,
        "%Uint16Array%":
          "undefined" == typeof Uint16Array ? void 0 : Uint16Array,
        "%Uint32Array%":
          "undefined" == typeof Uint32Array ? void 0 : Uint32Array,
        "%URIError%": URIError,
        "%WeakMap%": "undefined" == typeof WeakMap ? void 0 : WeakMap,
        "%WeakRef%": "undefined" == typeof WeakRef ? void 0 : WeakRef,
        "%WeakSet%": "undefined" == typeof WeakSet ? void 0 : WeakSet,
      },
      _ = {
        "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
        "%ArrayPrototype%": ["Array", "prototype"],
        "%ArrayProto_entries%": ["Array", "prototype", "entries"],
        "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
        "%ArrayProto_keys%": ["Array", "prototype", "keys"],
        "%ArrayProto_values%": ["Array", "prototype", "values"],
        "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
        "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
        "%AsyncGeneratorPrototype%": [
          "AsyncGeneratorFunction",
          "prototype",
          "prototype",
        ],
        "%BooleanPrototype%": ["Boolean", "prototype"],
        "%DataViewPrototype%": ["DataView", "prototype"],
        "%DatePrototype%": ["Date", "prototype"],
        "%ErrorPrototype%": ["Error", "prototype"],
        "%EvalErrorPrototype%": ["EvalError", "prototype"],
        "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
        "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
        "%FunctionPrototype%": ["Function", "prototype"],
        "%Generator%": ["GeneratorFunction", "prototype"],
        "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
        "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
        "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
        "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
        "%JSONParse%": ["JSON", "parse"],
        "%JSONStringify%": ["JSON", "stringify"],
        "%MapPrototype%": ["Map", "prototype"],
        "%NumberPrototype%": ["Number", "prototype"],
        "%ObjectPrototype%": ["Object", "prototype"],
        "%ObjProto_toString%": ["Object", "prototype", "toString"],
        "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
        "%PromisePrototype%": ["Promise", "prototype"],
        "%PromiseProto_then%": ["Promise", "prototype", "then"],
        "%Promise_all%": ["Promise", "all"],
        "%Promise_reject%": ["Promise", "reject"],
        "%Promise_resolve%": ["Promise", "resolve"],
        "%RangeErrorPrototype%": ["RangeError", "prototype"],
        "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
        "%RegExpPrototype%": ["RegExp", "prototype"],
        "%SetPrototype%": ["Set", "prototype"],
        "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
        "%StringPrototype%": ["String", "prototype"],
        "%SymbolPrototype%": ["Symbol", "prototype"],
        "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
        "%TypedArrayPrototype%": ["TypedArray", "prototype"],
        "%TypeErrorPrototype%": ["TypeError", "prototype"],
        "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
        "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
        "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
        "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
        "%URIErrorPrototype%": ["URIError", "prototype"],
        "%WeakMapPrototype%": ["WeakMap", "prototype"],
        "%WeakSetPrototype%": ["WeakSet", "prototype"],
      },
      v = n(36),
      b = n(342),
      y = v.call(Function.call, Array.prototype.concat),
      w = v.call(Function.apply, Array.prototype.splice),
      k = v.call(Function.call, String.prototype.replace),
      x = v.call(Function.call, String.prototype.slice),
      M = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
      E = /\\(\\)?/g,
      T = function (e) {
        var t = x(e, 0, 1),
          n = x(e, -1);
        if ("%" === t && "%" !== n)
          throw new r("invalid intrinsic syntax, expected closing `%`");
        if ("%" === n && "%" !== t)
          throw new r("invalid intrinsic syntax, expected opening `%`");
        var o = [];
        return (
          k(e, M, function (e, t, n, r) {
            o[o.length] = n ? k(r, E, "$1") : t || e;
          }),
          o
        );
      },
      S = function (e, t) {
        var n,
          o = e;
        if ((b(_, o) && (o = "%" + (n = _[o])[0] + "%"), b(g, o))) {
          var i = g[o];
          if (void 0 === i && !t)
            throw new a(
              "intrinsic " +
                e +
                " exists, but is not available. Please file an issue!"
            );
          return { alias: n, name: o, value: i };
        }
        throw new r("intrinsic " + e + " does not exist!");
      };
    e.exports = function (e, t) {
      if ("string" != typeof e || 0 === e.length)
        throw new a("intrinsic name must be a non-empty string");
      if (arguments.length > 1 && "boolean" != typeof t)
        throw new a('"allowMissing" argument must be a boolean');
      var n = T(e),
        o = n.length > 0 ? n[0] : "",
        i = S("%" + o + "%", t),
        l = i.name,
        c = i.value,
        u = !1,
        d = i.alias;
      d && ((o = d[0]), w(n, y([0, 1], d)));
      for (var h = 1, p = !0; h < n.length; h += 1) {
        var f = n[h],
          m = x(f, 0, 1),
          _ = x(f, -1);
        if (
          ('"' === m ||
            "'" === m ||
            "`" === m ||
            '"' === _ ||
            "'" === _ ||
            "`" === _) &&
          m !== _
        )
          throw new r("property names with quotes must have matching quotes");
        if (
          (("constructor" !== f && p) || (u = !0),
          b(g, (l = "%" + (o += "." + f) + "%")))
        )
          c = g[l];
        else if (null != c) {
          if (!(f in c)) {
            if (!t)
              throw new a(
                "base intrinsic for " +
                  e +
                  " exists, but the property is not available."
              );
            return;
          }
          if (s && h + 1 >= n.length) {
            var v = s(c, f);
            c =
              (p = !!v) && "get" in v && !("originalValue" in v.get)
                ? v.get
                : c[f];
          } else (p = b(c, f)), (c = c[f]);
          p && !u && (g[l] = c);
        }
      }
      return c;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(36),
      o = n(232),
      a = o("%Function.prototype.apply%"),
      i = o("%Function.prototype.call%"),
      s = o("%Reflect.apply%", !0) || r.call(i, a),
      l = o("%Object.defineProperty%", !0);
    if (l)
      try {
        l({}, "a", { value: 1 });
      } catch (e) {
        l = null;
      }
    e.exports = function () {
      return s(r, i, arguments);
    };
    var c = function () {
      return s(r, a, arguments);
    };
    l ? l(e.exports, "apply", { value: c }) : (e.exports.apply = c);
  },
  function (e, t, n) {
    "use strict";
    var r = function (e) {
      return e != e;
    };
    e.exports = function (e, t) {
      return 0 === e && 0 === t ? 1 / e == 1 / t : e === t || !(!r(e) || !r(t));
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(234);
    e.exports = function () {
      return "function" == typeof Object.is ? Object.is : r;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = Object,
      o = TypeError;
    e.exports = function () {
      if (null != this && this !== r(this))
        throw new o("RegExp.prototype.flags getter called on non-object");
      var e = "";
      return (
        this.global && (e += "g"),
        this.ignoreCase && (e += "i"),
        this.multiline && (e += "m"),
        this.dotAll && (e += "s"),
        this.unicode && (e += "u"),
        this.sticky && (e += "y"),
        e
      );
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(236),
      o = n(37).supportsDescriptors,
      a = Object.getOwnPropertyDescriptor,
      i = TypeError;
    e.exports = function () {
      if (!o)
        throw new i(
          "RegExp.prototype.flags requires a true ES5 environment that supports property descriptors"
        );
      if ("gim" === /a/gim.flags) {
        var e = a(RegExp.prototype, "flags");
        if (e && "function" == typeof e.get && "boolean" == typeof /a/.dotAll)
          return e.get;
      }
      return r;
    };
  },
  function (e, t, n) {
    var r = n(45),
      o = n(361),
      a = n(362),
      i = n(363),
      s = n(364),
      l = n(365);
    function c(e) {
      var t = (this.__data__ = new r(e));
      this.size = t.size;
    }
    (c.prototype.clear = o),
      (c.prototype.delete = a),
      (c.prototype.get = i),
      (c.prototype.has = s),
      (c.prototype.set = l),
      (e.exports = c);
  },
  function (e, t) {
    e.exports = function (e, t) {
      return e === t || (e != e && t != t);
    };
  },
  function (e, t, n) {
    var r = n(38),
      o = n(68);
    e.exports = function (e) {
      if (!o(e)) return !1;
      var t = r(e);
      return (
        "[object Function]" == t ||
        "[object GeneratorFunction]" == t ||
        "[object AsyncFunction]" == t ||
        "[object Proxy]" == t
      );
    };
  },
  function (e, t, n) {
    (function (t) {
      var n = "object" == typeof t && t && t.Object === Object && t;
      e.exports = n;
    }.call(this, n(35)));
  },
  function (e, t) {
    var n = Function.prototype.toString;
    e.exports = function (e) {
      if (null != e) {
        try {
          return n.call(e);
        } catch (e) {}
        try {
          return e + "";
        } catch (e) {}
      }
      return "";
    };
  },
  function (e, t, n) {
    var r = n(384),
      o = n(387),
      a = n(388);
    e.exports = function (e, t, n, i, s, l) {
      var c = 1 & n,
        u = e.length,
        d = t.length;
      if (u != d && !(c && d > u)) return !1;
      var h = l.get(e),
        p = l.get(t);
      if (h && p) return h == t && p == e;
      var f = -1,
        m = !0,
        g = 2 & n ? new r() : void 0;
      for (l.set(e, t), l.set(t, e); ++f < u; ) {
        var _ = e[f],
          v = t[f];
        if (i) var b = c ? i(v, _, f, t, e, l) : i(_, v, f, e, t, l);
        if (void 0 !== b) {
          if (b) continue;
          m = !1;
          break;
        }
        if (g) {
          if (
            !o(t, function (e, t) {
              if (!a(g, t) && (_ === e || s(_, e, n, i, l))) return g.push(t);
            })
          ) {
            m = !1;
            break;
          }
        } else if (_ !== v && !s(_, v, n, i, l)) {
          m = !1;
          break;
        }
      }
      return l.delete(e), l.delete(t), m;
    };
  },
  function (e, t, n) {
    var r = n(402),
      o = n(39),
      a = Object.prototype,
      i = a.hasOwnProperty,
      s = a.propertyIsEnumerable,
      l = r(
        (function () {
          return arguments;
        })()
      )
        ? r
        : function (e) {
            return o(e) && i.call(e, "callee") && !s.call(e, "callee");
          };
    e.exports = l;
  },
  function (e, t, n) {
    (function (e) {
      var r = n(24),
        o = n(403),
        a = t && !t.nodeType && t,
        i = a && "object" == typeof e && e && !e.nodeType && e,
        s = i && i.exports === a ? r.Buffer : void 0,
        l = (s ? s.isBuffer : void 0) || o;
      e.exports = l;
    }.call(this, n(64)(e)));
  },
  function (e, t) {
    var n = /^(?:0|[1-9]\d*)$/;
    e.exports = function (e, t) {
      var r = typeof e;
      return (
        !!(t = null == t ? 9007199254740991 : t) &&
        ("number" == r || ("symbol" != r && n.test(e))) &&
        e > -1 &&
        e % 1 == 0 &&
        e < t
      );
    };
  },
  function (e, t, n) {
    var r = n(404),
      o = n(405),
      a = n(406),
      i = a && a.isTypedArray,
      s = i ? o(i) : r;
    e.exports = s;
  },
  function (e, t, n) {
    var r = n(240),
      o = n(71);
    e.exports = function (e) {
      return null != e && o(e.length) && !r(e);
    };
  },
  function (e, t, n) {
    var r = n(68);
    e.exports = function (e) {
      return e == e && !r(e);
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      return function (n) {
        return null != n && n[e] === t && (void 0 !== t || e in Object(n));
      };
    };
  },
  function (e, t, n) {
    var r = n(252),
      o = n(50);
    e.exports = function (e, t) {
      for (var n = 0, a = (t = r(t, e)).length; null != e && n < a; )
        e = e[o(t[n++])];
      return n && n == a ? e : void 0;
    };
  },
  function (e, t, n) {
    var r = n(25),
      o = n(72),
      a = n(433),
      i = n(436);
    e.exports = function (e, t) {
      return r(e) ? e : o(e, t) ? [e] : a(i(e));
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      if (null == e) return {};
      var n,
        r,
        o = {},
        a = Object.keys(e);
      for (r = 0; r < a.length; r++)
        (n = a[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
      return o;
    };
  },
  function (e, t, n) {
    var r = n(230),
      o = n(338),
      a = n(343),
      i = n(345),
      s = n(346),
      l = n(350),
      c = Date.prototype.getTime;
    function u(e, t, n) {
      var p = n || {};
      return (
        !!(p.strict ? a(e, t) : e === t) ||
        (!e || !t || ("object" != typeof e && "object" != typeof t)
          ? p.strict
            ? a(e, t)
            : e == t
          : (function (e, t, n) {
              var a, p;
              if (typeof e != typeof t) return !1;
              if (d(e) || d(t)) return !1;
              if (e.prototype !== t.prototype) return !1;
              if (o(e) !== o(t)) return !1;
              var f = i(e),
                m = i(t);
              if (f !== m) return !1;
              if (f || m) return e.source === t.source && s(e) === s(t);
              if (l(e) && l(t)) return c.call(e) === c.call(t);
              var g = h(e),
                _ = h(t);
              if (g !== _) return !1;
              if (g || _) {
                if (e.length !== t.length) return !1;
                for (a = 0; a < e.length; a++) if (e[a] !== t[a]) return !1;
                return !0;
              }
              if (typeof e != typeof t) return !1;
              try {
                var v = r(e),
                  b = r(t);
              } catch (e) {
                return !1;
              }
              if (v.length !== b.length) return !1;
              for (v.sort(), b.sort(), a = v.length - 1; a >= 0; a--)
                if (v[a] != b[a]) return !1;
              for (a = v.length - 1; a >= 0; a--)
                if (((p = v[a]), !u(e[p], t[p], n))) return !1;
              return !0;
            })(e, t, p))
      );
    }
    function d(e) {
      return null == e;
    }
    function h(e) {
      return (
        !(!e || "object" != typeof e || "number" != typeof e.length) &&
        "function" == typeof e.copy &&
        "function" == typeof e.slice &&
        !(e.length > 0 && "number" != typeof e[0])
      );
    }
    e.exports = u;
  },
  function (e, t, n) {
    "use strict";
    /** @license React v16.14.0
     * react.production.min.js
     *
     * Copyright (c) Facebook, Inc. and its affiliates.
     *
     * This source code is licensed under the MIT license found in the
     * LICENSE file in the root directory of this source tree.
     */ var r = n(61),
      o = "function" == typeof Symbol && Symbol.for,
      a = o ? Symbol.for("react.element") : 60103,
      i = o ? Symbol.for("react.portal") : 60106,
      s = o ? Symbol.for("react.fragment") : 60107,
      l = o ? Symbol.for("react.strict_mode") : 60108,
      c = o ? Symbol.for("react.profiler") : 60114,
      u = o ? Symbol.for("react.provider") : 60109,
      d = o ? Symbol.for("react.context") : 60110,
      h = o ? Symbol.for("react.forward_ref") : 60112,
      p = o ? Symbol.for("react.suspense") : 60113,
      f = o ? Symbol.for("react.memo") : 60115,
      m = o ? Symbol.for("react.lazy") : 60116,
      g = "function" == typeof Symbol && Symbol.iterator;
    function _(e) {
      for (
        var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e,
          n = 1;
        n < arguments.length;
        n++
      )
        t += "&args[]=" + encodeURIComponent(arguments[n]);
      return (
        "Minified React error #" +
        e +
        "; visit " +
        t +
        " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
      );
    }
    var v = {
        isMounted: function () {
          return !1;
        },
        enqueueForceUpdate: function () {},
        enqueueReplaceState: function () {},
        enqueueSetState: function () {},
      },
      b = {};
    function y(e, t, n) {
      (this.props = e),
        (this.context = t),
        (this.refs = b),
        (this.updater = n || v);
    }
    function w() {}
    function k(e, t, n) {
      (this.props = e),
        (this.context = t),
        (this.refs = b),
        (this.updater = n || v);
    }
    (y.prototype.isReactComponent = {}),
      (y.prototype.setState = function (e, t) {
        if ("object" != typeof e && "function" != typeof e && null != e)
          throw Error(_(85));
        this.updater.enqueueSetState(this, e, t, "setState");
      }),
      (y.prototype.forceUpdate = function (e) {
        this.updater.enqueueForceUpdate(this, e, "forceUpdate");
      }),
      (w.prototype = y.prototype);
    var x = (k.prototype = new w());
    (x.constructor = k), r(x, y.prototype), (x.isPureReactComponent = !0);
    var M = { current: null },
      E = Object.prototype.hasOwnProperty,
      T = { key: !0, ref: !0, __self: !0, __source: !0 };
    function S(e, t, n) {
      var r,
        o = {},
        i = null,
        s = null;
      if (null != t)
        for (r in (void 0 !== t.ref && (s = t.ref),
        void 0 !== t.key && (i = "" + t.key),
        t))
          E.call(t, r) && !T.hasOwnProperty(r) && (o[r] = t[r]);
      var l = arguments.length - 2;
      if (1 === l) o.children = n;
      else if (1 < l) {
        for (var c = Array(l), u = 0; u < l; u++) c[u] = arguments[u + 2];
        o.children = c;
      }
      if (e && e.defaultProps)
        for (r in (l = e.defaultProps)) void 0 === o[r] && (o[r] = l[r]);
      return {
        $$typeof: a,
        type: e,
        key: i,
        ref: s,
        props: o,
        _owner: M.current,
      };
    }
    function D(e) {
      return "object" == typeof e && null !== e && e.$$typeof === a;
    }
    var L = /\/+/g,
      C = [];
    function P(e, t, n, r) {
      if (C.length) {
        var o = C.pop();
        return (
          (o.result = e),
          (o.keyPrefix = t),
          (o.func = n),
          (o.context = r),
          (o.count = 0),
          o
        );
      }
      return { result: e, keyPrefix: t, func: n, context: r, count: 0 };
    }
    function O(e) {
      (e.result = null),
        (e.keyPrefix = null),
        (e.func = null),
        (e.context = null),
        (e.count = 0),
        10 > C.length && C.push(e);
    }
    function N(e, t, n) {
      return null == e
        ? 0
        : (function e(t, n, r, o) {
            var s = typeof t;
            ("undefined" !== s && "boolean" !== s) || (t = null);
            var l = !1;
            if (null === t) l = !0;
            else
              switch (s) {
                case "string":
                case "number":
                  l = !0;
                  break;
                case "object":
                  switch (t.$$typeof) {
                    case a:
                    case i:
                      l = !0;
                  }
              }
            if (l) return r(o, t, "" === n ? "." + A(t, 0) : n), 1;
            if (((l = 0), (n = "" === n ? "." : n + ":"), Array.isArray(t)))
              for (var c = 0; c < t.length; c++) {
                var u = n + A((s = t[c]), c);
                l += e(s, u, r, o);
              }
            else if (
              (null === t || "object" != typeof t
                ? (u = null)
                : (u =
                    "function" == typeof (u = (g && t[g]) || t["@@iterator"])
                      ? u
                      : null),
              "function" == typeof u)
            )
              for (t = u.call(t), c = 0; !(s = t.next()).done; )
                l += e((s = s.value), (u = n + A(s, c++)), r, o);
            else if ("object" === s)
              throw (
                ((r = "" + t),
                Error(
                  _(
                    31,
                    "[object Object]" === r
                      ? "object with keys {" + Object.keys(t).join(", ") + "}"
                      : r,
                    ""
                  )
                ))
              );
            return l;
          })(e, "", t, n);
    }
    function A(e, t) {
      return "object" == typeof e && null !== e && null != e.key
        ? (function (e) {
            var t = { "=": "=0", ":": "=2" };
            return (
              "$" +
              ("" + e).replace(/[=:]/g, function (e) {
                return t[e];
              })
            );
          })(e.key)
        : t.toString(36);
    }
    function I(e, t) {
      e.func.call(e.context, t, e.count++);
    }
    function R(e, t, n) {
      var r = e.result,
        o = e.keyPrefix;
      (e = e.func.call(e.context, t, e.count++)),
        Array.isArray(e)
          ? Y(e, r, n, function (e) {
              return e;
            })
          : null != e &&
            (D(e) &&
              (e = (function (e, t) {
                return {
                  $$typeof: a,
                  type: e.type,
                  key: t,
                  ref: e.ref,
                  props: e.props,
                  _owner: e._owner,
                };
              })(
                e,
                o +
                  (!e.key || (t && t.key === e.key)
                    ? ""
                    : ("" + e.key).replace(L, "$&/") + "/") +
                  n
              )),
            r.push(e));
    }
    function Y(e, t, n, r, o) {
      var a = "";
      null != n && (a = ("" + n).replace(L, "$&/") + "/"),
        N(e, R, (t = P(t, a, r, o))),
        O(t);
    }
    var j = { current: null };
    function F() {
      var e = j.current;
      if (null === e) throw Error(_(321));
      return e;
    }
    var H = {
      ReactCurrentDispatcher: j,
      ReactCurrentBatchConfig: { suspense: null },
      ReactCurrentOwner: M,
      IsSomeRendererActing: { current: !1 },
      assign: r,
    };
    (t.Children = {
      map: function (e, t, n) {
        if (null == e) return e;
        var r = [];
        return Y(e, r, null, t, n), r;
      },
      forEach: function (e, t, n) {
        if (null == e) return e;
        N(e, I, (t = P(null, null, t, n))), O(t);
      },
      count: function (e) {
        return N(
          e,
          function () {
            return null;
          },
          null
        );
      },
      toArray: function (e) {
        var t = [];
        return (
          Y(e, t, null, function (e) {
            return e;
          }),
          t
        );
      },
      only: function (e) {
        if (!D(e)) throw Error(_(143));
        return e;
      },
    }),
      (t.Component = y),
      (t.Fragment = s),
      (t.Profiler = c),
      (t.PureComponent = k),
      (t.StrictMode = l),
      (t.Suspense = p),
      (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H),
      (t.cloneElement = function (e, t, n) {
        if (null == e) throw Error(_(267, e));
        var o = r({}, e.props),
          i = e.key,
          s = e.ref,
          l = e._owner;
        if (null != t) {
          if (
            (void 0 !== t.ref && ((s = t.ref), (l = M.current)),
            void 0 !== t.key && (i = "" + t.key),
            e.type && e.type.defaultProps)
          )
            var c = e.type.defaultProps;
          for (u in t)
            E.call(t, u) &&
              !T.hasOwnProperty(u) &&
              (o[u] = void 0 === t[u] && void 0 !== c ? c[u] : t[u]);
        }
        var u = arguments.length - 2;
        if (1 === u) o.children = n;
        else if (1 < u) {
          c = Array(u);
          for (var d = 0; d < u; d++) c[d] = arguments[d + 2];
          o.children = c;
        }
        return {
          $$typeof: a,
          type: e.type,
          key: i,
          ref: s,
          props: o,
          _owner: l,
        };
      }),
      (t.createContext = function (e, t) {
        return (
          void 0 === t && (t = null),
          ((e = {
            $$typeof: d,
            _calculateChangedBits: t,
            _currentValue: e,
            _currentValue2: e,
            _threadCount: 0,
            Provider: null,
            Consumer: null,
          }).Provider = { $$typeof: u, _context: e }),
          (e.Consumer = e)
        );
      }),
      (t.createElement = S),
      (t.createFactory = function (e) {
        var t = S.bind(null, e);
        return (t.type = e), t;
      }),
      (t.createRef = function () {
        return { current: null };
      }),
      (t.forwardRef = function (e) {
        return { $$typeof: h, render: e };
      }),
      (t.isValidElement = D),
      (t.lazy = function (e) {
        return { $$typeof: m, _ctor: e, _status: -1, _result: null };
      }),
      (t.memo = function (e, t) {
        return { $$typeof: f, type: e, compare: void 0 === t ? null : t };
      }),
      (t.useCallback = function (e, t) {
        return F().useCallback(e, t);
      }),
      (t.useContext = function (e, t) {
        return F().useContext(e, t);
      }),
      (t.useDebugValue = function () {}),
      (t.useEffect = function (e, t) {
        return F().useEffect(e, t);
      }),
      (t.useImperativeHandle = function (e, t, n) {
        return F().useImperativeHandle(e, t, n);
      }),
      (t.useLayoutEffect = function (e, t) {
        return F().useLayoutEffect(e, t);
      }),
      (t.useMemo = function (e, t) {
        return F().useMemo(e, t);
      }),
      (t.useReducer = function (e, t, n) {
        return F().useReducer(e, t, n);
      }),
      (t.useRef = function (e) {
        return F().useRef(e);
      }),
      (t.useState = function (e) {
        return F().useState(e);
      }),
      (t.version = "16.14.0");
  },
  function (e, t, n) {
    "use strict";
    /** @license React v16.14.0
     * react-dom.production.min.js
     *
     * Copyright (c) Facebook, Inc. and its affiliates.
     *
     * This source code is licensed under the MIT license found in the
     * LICENSE file in the root directory of this source tree.
     */ var r = n(0),
      o = n(61),
      a = n(257);
    function i(e) {
      for (
        var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e,
          n = 1;
        n < arguments.length;
        n++
      )
        t += "&args[]=" + encodeURIComponent(arguments[n]);
      return (
        "Minified React error #" +
        e +
        "; visit " +
        t +
        " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
      );
    }
    if (!r) throw Error(i(227));
    function s(e, t, n, r, o, a, i, s, l) {
      var c = Array.prototype.slice.call(arguments, 3);
      try {
        t.apply(n, c);
      } catch (e) {
        this.onError(e);
      }
    }
    var l = !1,
      c = null,
      u = !1,
      d = null,
      h = {
        onError: function (e) {
          (l = !0), (c = e);
        },
      };
    function p(e, t, n, r, o, a, i, u, d) {
      (l = !1), (c = null), s.apply(h, arguments);
    }
    var f = null,
      m = null,
      g = null;
    function _(e, t, n) {
      var r = e.type || "unknown-event";
      (e.currentTarget = g(n)),
        (function (e, t, n, r, o, a, s, h, f) {
          if ((p.apply(this, arguments), l)) {
            if (!l) throw Error(i(198));
            var m = c;
            (l = !1), (c = null), u || ((u = !0), (d = m));
          }
        })(r, t, void 0, e),
        (e.currentTarget = null);
    }
    var v = null,
      b = {};
    function y() {
      if (v)
        for (var e in b) {
          var t = b[e],
            n = v.indexOf(e);
          if (!(-1 < n)) throw Error(i(96, e));
          if (!k[n]) {
            if (!t.extractEvents) throw Error(i(97, e));
            for (var r in ((k[n] = t), (n = t.eventTypes))) {
              var o = void 0,
                a = n[r],
                s = t,
                l = r;
              if (x.hasOwnProperty(l)) throw Error(i(99, l));
              x[l] = a;
              var c = a.phasedRegistrationNames;
              if (c) {
                for (o in c) c.hasOwnProperty(o) && w(c[o], s, l);
                o = !0;
              } else
                a.registrationName
                  ? (w(a.registrationName, s, l), (o = !0))
                  : (o = !1);
              if (!o) throw Error(i(98, r, e));
            }
          }
        }
    }
    function w(e, t, n) {
      if (M[e]) throw Error(i(100, e));
      (M[e] = t), (E[e] = t.eventTypes[n].dependencies);
    }
    var k = [],
      x = {},
      M = {},
      E = {};
    function T(e) {
      var t,
        n = !1;
      for (t in e)
        if (e.hasOwnProperty(t)) {
          var r = e[t];
          if (!b.hasOwnProperty(t) || b[t] !== r) {
            if (b[t]) throw Error(i(102, t));
            (b[t] = r), (n = !0);
          }
        }
      n && y();
    }
    var S = !(
        "undefined" == typeof window ||
        void 0 === window.document ||
        void 0 === window.document.createElement
      ),
      D = null,
      L = null,
      C = null;
    function P(e) {
      if ((e = m(e))) {
        if ("function" != typeof D) throw Error(i(280));
        var t = e.stateNode;
        t && ((t = f(t)), D(e.stateNode, e.type, t));
      }
    }
    function O(e) {
      L ? (C ? C.push(e) : (C = [e])) : (L = e);
    }
    function N() {
      if (L) {
        var e = L,
          t = C;
        if (((C = L = null), P(e), t)) for (e = 0; e < t.length; e++) P(t[e]);
      }
    }
    function A(e, t) {
      return e(t);
    }
    function I(e, t, n, r, o) {
      return e(t, n, r, o);
    }
    function R() {}
    var Y = A,
      j = !1,
      F = !1;
    function H() {
      (null === L && null === C) || (R(), N());
    }
    function z(e, t, n) {
      if (F) return e(t, n);
      F = !0;
      try {
        return Y(e, t, n);
      } finally {
        (F = !1), H();
      }
    }
    var B = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
      U = Object.prototype.hasOwnProperty,
      V = {},
      W = {};
    function q(e, t, n, r, o, a) {
      (this.acceptsBooleans = 2 === t || 3 === t || 4 === t),
        (this.attributeName = r),
        (this.attributeNamespace = o),
        (this.mustUseProperty = n),
        (this.propertyName = e),
        (this.type = t),
        (this.sanitizeURL = a);
    }
    var G = {};
    "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style"
      .split(" ")
      .forEach(function (e) {
        G[e] = new q(e, 0, !1, e, null, !1);
      }),
      [
        ["acceptCharset", "accept-charset"],
        ["className", "class"],
        ["htmlFor", "for"],
        ["httpEquiv", "http-equiv"],
      ].forEach(function (e) {
        var t = e[0];
        G[t] = new q(t, 1, !1, e[1], null, !1);
      }),
      ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (
        e
      ) {
        G[e] = new q(e, 2, !1, e.toLowerCase(), null, !1);
      }),
      [
        "autoReverse",
        "externalResourcesRequired",
        "focusable",
        "preserveAlpha",
      ].forEach(function (e) {
        G[e] = new q(e, 2, !1, e, null, !1);
      }),
      "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope"
        .split(" ")
        .forEach(function (e) {
          G[e] = new q(e, 3, !1, e.toLowerCase(), null, !1);
        }),
      ["checked", "multiple", "muted", "selected"].forEach(function (e) {
        G[e] = new q(e, 3, !0, e, null, !1);
      }),
      ["capture", "download"].forEach(function (e) {
        G[e] = new q(e, 4, !1, e, null, !1);
      }),
      ["cols", "rows", "size", "span"].forEach(function (e) {
        G[e] = new q(e, 6, !1, e, null, !1);
      }),
      ["rowSpan", "start"].forEach(function (e) {
        G[e] = new q(e, 5, !1, e.toLowerCase(), null, !1);
      });
    var J = /[\-:]([a-z])/g;
    function K(e) {
      return e[1].toUpperCase();
    }
    "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height"
      .split(" ")
      .forEach(function (e) {
        var t = e.replace(J, K);
        G[t] = new q(t, 1, !1, e, null, !1);
      }),
      "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type"
        .split(" ")
        .forEach(function (e) {
          var t = e.replace(J, K);
          G[t] = new q(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1);
        }),
      ["xml:base", "xml:lang", "xml:space"].forEach(function (e) {
        var t = e.replace(J, K);
        G[t] = new q(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1);
      }),
      ["tabIndex", "crossOrigin"].forEach(function (e) {
        G[e] = new q(e, 1, !1, e.toLowerCase(), null, !1);
      }),
      (G.xlinkHref = new q(
        "xlinkHref",
        1,
        !1,
        "xlink:href",
        "http://www.w3.org/1999/xlink",
        !0
      )),
      ["src", "href", "action", "formAction"].forEach(function (e) {
        G[e] = new q(e, 1, !1, e.toLowerCase(), null, !0);
      });
    var Q = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
    function X(e, t, n, r) {
      var o = G.hasOwnProperty(t) ? G[t] : null;
      (null !== o
        ? 0 === o.type
        : !r &&
          2 < t.length &&
          ("o" === t[0] || "O" === t[0]) &&
          ("n" === t[1] || "N" === t[1])) ||
        ((function (e, t, n, r) {
          if (
            null == t ||
            (function (e, t, n, r) {
              if (null !== n && 0 === n.type) return !1;
              switch (typeof t) {
                case "function":
                case "symbol":
                  return !0;
                case "boolean":
                  return (
                    !r &&
                    (null !== n
                      ? !n.acceptsBooleans
                      : "data-" !== (e = e.toLowerCase().slice(0, 5)) &&
                        "aria-" !== e)
                  );
                default:
                  return !1;
              }
            })(e, t, n, r)
          )
            return !0;
          if (r) return !1;
          if (null !== n)
            switch (n.type) {
              case 3:
                return !t;
              case 4:
                return !1 === t;
              case 5:
                return isNaN(t);
              case 6:
                return isNaN(t) || 1 > t;
            }
          return !1;
        })(t, n, o, r) && (n = null),
        r || null === o
          ? (function (e) {
              return (
                !!U.call(W, e) ||
                (!U.call(V, e) && (B.test(e) ? (W[e] = !0) : ((V[e] = !0), !1)))
              );
            })(t) &&
            (null === n ? e.removeAttribute(t) : e.setAttribute(t, "" + n))
          : o.mustUseProperty
          ? (e[o.propertyName] = null === n ? 3 !== o.type && "" : n)
          : ((t = o.attributeName),
            (r = o.attributeNamespace),
            null === n
              ? e.removeAttribute(t)
              : ((n =
                  3 === (o = o.type) || (4 === o && !0 === n) ? "" : "" + n),
                r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n))));
    }
    Q.hasOwnProperty("ReactCurrentDispatcher") ||
      (Q.ReactCurrentDispatcher = { current: null }),
      Q.hasOwnProperty("ReactCurrentBatchConfig") ||
        (Q.ReactCurrentBatchConfig = { suspense: null });
    var $ = /^(.*)[\\\/]/,
      Z = "function" == typeof Symbol && Symbol.for,
      ee = Z ? Symbol.for("react.element") : 60103,
      te = Z ? Symbol.for("react.portal") : 60106,
      ne = Z ? Symbol.for("react.fragment") : 60107,
      re = Z ? Symbol.for("react.strict_mode") : 60108,
      oe = Z ? Symbol.for("react.profiler") : 60114,
      ae = Z ? Symbol.for("react.provider") : 60109,
      ie = Z ? Symbol.for("react.context") : 60110,
      se = Z ? Symbol.for("react.concurrent_mode") : 60111,
      le = Z ? Symbol.for("react.forward_ref") : 60112,
      ce = Z ? Symbol.for("react.suspense") : 60113,
      ue = Z ? Symbol.for("react.suspense_list") : 60120,
      de = Z ? Symbol.for("react.memo") : 60115,
      he = Z ? Symbol.for("react.lazy") : 60116,
      pe = Z ? Symbol.for("react.block") : 60121,
      fe = "function" == typeof Symbol && Symbol.iterator;
    function me(e) {
      return null === e || "object" != typeof e
        ? null
        : "function" == typeof (e = (fe && e[fe]) || e["@@iterator"])
        ? e
        : null;
    }
    function ge(e) {
      if (null == e) return null;
      if ("function" == typeof e) return e.displayName || e.name || null;
      if ("string" == typeof e) return e;
      switch (e) {
        case ne:
          return "Fragment";
        case te:
          return "Portal";
        case oe:
          return "Profiler";
        case re:
          return "StrictMode";
        case ce:
          return "Suspense";
        case ue:
          return "SuspenseList";
      }
      if ("object" == typeof e)
        switch (e.$$typeof) {
          case ie:
            return "Context.Consumer";
          case ae:
            return "Context.Provider";
          case le:
            var t = e.render;
            return (
              (t = t.displayName || t.name || ""),
              e.displayName ||
                ("" !== t ? "ForwardRef(" + t + ")" : "ForwardRef")
            );
          case de:
            return ge(e.type);
          case pe:
            return ge(e.render);
          case he:
            if ((e = 1 === e._status ? e._result : null)) return ge(e);
        }
      return null;
    }
    function _e(e) {
      var t = "";
      do {
        e: switch (e.tag) {
          case 3:
          case 4:
          case 6:
          case 7:
          case 10:
          case 9:
            var n = "";
            break e;
          default:
            var r = e._debugOwner,
              o = e._debugSource,
              a = ge(e.type);
            (n = null),
              r && (n = ge(r.type)),
              (r = a),
              (a = ""),
              o
                ? (a =
                    " (at " +
                    o.fileName.replace($, "") +
                    ":" +
                    o.lineNumber +
                    ")")
                : n && (a = " (created by " + n + ")"),
              (n = "\n    in " + (r || "Unknown") + a);
        }
        (t += n), (e = e.return);
      } while (e);
      return t;
    }
    function ve(e) {
      switch (typeof e) {
        case "boolean":
        case "number":
        case "object":
        case "string":
        case "undefined":
          return e;
        default:
          return "";
      }
    }
    function be(e) {
      var t = e.type;
      return (
        (e = e.nodeName) &&
        "input" === e.toLowerCase() &&
        ("checkbox" === t || "radio" === t)
      );
    }
    function ye(e) {
      e._valueTracker ||
        (e._valueTracker = (function (e) {
          var t = be(e) ? "checked" : "value",
            n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t),
            r = "" + e[t];
          if (
            !e.hasOwnProperty(t) &&
            void 0 !== n &&
            "function" == typeof n.get &&
            "function" == typeof n.set
          ) {
            var o = n.get,
              a = n.set;
            return (
              Object.defineProperty(e, t, {
                configurable: !0,
                get: function () {
                  return o.call(this);
                },
                set: function (e) {
                  (r = "" + e), a.call(this, e);
                },
              }),
              Object.defineProperty(e, t, { enumerable: n.enumerable }),
              {
                getValue: function () {
                  return r;
                },
                setValue: function (e) {
                  r = "" + e;
                },
                stopTracking: function () {
                  (e._valueTracker = null), delete e[t];
                },
              }
            );
          }
        })(e));
    }
    function we(e) {
      if (!e) return !1;
      var t = e._valueTracker;
      if (!t) return !0;
      var n = t.getValue(),
        r = "";
      return (
        e && (r = be(e) ? (e.checked ? "true" : "false") : e.value),
        (e = r) !== n && (t.setValue(e), !0)
      );
    }
    function ke(e, t) {
      var n = t.checked;
      return o({}, t, {
        defaultChecked: void 0,
        defaultValue: void 0,
        value: void 0,
        checked: null != n ? n : e._wrapperState.initialChecked,
      });
    }
    function xe(e, t) {
      var n = null == t.defaultValue ? "" : t.defaultValue,
        r = null != t.checked ? t.checked : t.defaultChecked;
      (n = ve(null != t.value ? t.value : n)),
        (e._wrapperState = {
          initialChecked: r,
          initialValue: n,
          controlled:
            "checkbox" === t.type || "radio" === t.type
              ? null != t.checked
              : null != t.value,
        });
    }
    function Me(e, t) {
      null != (t = t.checked) && X(e, "checked", t, !1);
    }
    function Ee(e, t) {
      Me(e, t);
      var n = ve(t.value),
        r = t.type;
      if (null != n)
        "number" === r
          ? ((0 === n && "" === e.value) || e.value != n) && (e.value = "" + n)
          : e.value !== "" + n && (e.value = "" + n);
      else if ("submit" === r || "reset" === r)
        return void e.removeAttribute("value");
      t.hasOwnProperty("value")
        ? Se(e, t.type, n)
        : t.hasOwnProperty("defaultValue") && Se(e, t.type, ve(t.defaultValue)),
        null == t.checked &&
          null != t.defaultChecked &&
          (e.defaultChecked = !!t.defaultChecked);
    }
    function Te(e, t, n) {
      if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) {
        var r = t.type;
        if (
          !(
            ("submit" !== r && "reset" !== r) ||
            (void 0 !== t.value && null !== t.value)
          )
        )
          return;
        (t = "" + e._wrapperState.initialValue),
          n || t === e.value || (e.value = t),
          (e.defaultValue = t);
      }
      "" !== (n = e.name) && (e.name = ""),
        (e.defaultChecked = !!e._wrapperState.initialChecked),
        "" !== n && (e.name = n);
    }
    function Se(e, t, n) {
      ("number" === t && e.ownerDocument.activeElement === e) ||
        (null == n
          ? (e.defaultValue = "" + e._wrapperState.initialValue)
          : e.defaultValue !== "" + n && (e.defaultValue = "" + n));
    }
    function De(e, t) {
      return (
        (e = o({ children: void 0 }, t)),
        (t = (function (e) {
          var t = "";
          return (
            r.Children.forEach(e, function (e) {
              null != e && (t += e);
            }),
            t
          );
        })(t.children)) && (e.children = t),
        e
      );
    }
    function Le(e, t, n, r) {
      if (((e = e.options), t)) {
        t = {};
        for (var o = 0; o < n.length; o++) t["$" + n[o]] = !0;
        for (n = 0; n < e.length; n++)
          (o = t.hasOwnProperty("$" + e[n].value)),
            e[n].selected !== o && (e[n].selected = o),
            o && r && (e[n].defaultSelected = !0);
      } else {
        for (n = "" + ve(n), t = null, o = 0; o < e.length; o++) {
          if (e[o].value === n)
            return (
              (e[o].selected = !0), void (r && (e[o].defaultSelected = !0))
            );
          null !== t || e[o].disabled || (t = e[o]);
        }
        null !== t && (t.selected = !0);
      }
    }
    function Ce(e, t) {
      if (null != t.dangerouslySetInnerHTML) throw Error(i(91));
      return o({}, t, {
        value: void 0,
        defaultValue: void 0,
        children: "" + e._wrapperState.initialValue,
      });
    }
    function Pe(e, t) {
      var n = t.value;
      if (null == n) {
        if (((n = t.children), (t = t.defaultValue), null != n)) {
          if (null != t) throw Error(i(92));
          if (Array.isArray(n)) {
            if (!(1 >= n.length)) throw Error(i(93));
            n = n[0];
          }
          t = n;
        }
        null == t && (t = ""), (n = t);
      }
      e._wrapperState = { initialValue: ve(n) };
    }
    function Oe(e, t) {
      var n = ve(t.value),
        r = ve(t.defaultValue);
      null != n &&
        ((n = "" + n) !== e.value && (e.value = n),
        null == t.defaultValue && e.defaultValue !== n && (e.defaultValue = n)),
        null != r && (e.defaultValue = "" + r);
    }
    function Ne(e) {
      var t = e.textContent;
      t === e._wrapperState.initialValue &&
        "" !== t &&
        null !== t &&
        (e.value = t);
    }
    var Ae = "http://www.w3.org/1999/xhtml",
      Ie = "http://www.w3.org/2000/svg";
    function Re(e) {
      switch (e) {
        case "svg":
          return "http://www.w3.org/2000/svg";
        case "math":
          return "http://www.w3.org/1998/Math/MathML";
        default:
          return "http://www.w3.org/1999/xhtml";
      }
    }
    function Ye(e, t) {
      return null == e || "http://www.w3.org/1999/xhtml" === e
        ? Re(t)
        : "http://www.w3.org/2000/svg" === e && "foreignObject" === t
        ? "http://www.w3.org/1999/xhtml"
        : e;
    }
    var je,
      Fe = (function (e) {
        return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction
          ? function (t, n, r, o) {
              MSApp.execUnsafeLocalFunction(function () {
                return e(t, n);
              });
            }
          : e;
      })(function (e, t) {
        if (e.namespaceURI !== Ie || "innerHTML" in e) e.innerHTML = t;
        else {
          for (
            (je = je || document.createElement("div")).innerHTML =
              "<svg>" + t.valueOf().toString() + "</svg>",
              t = je.firstChild;
            e.firstChild;

          )
            e.removeChild(e.firstChild);
          for (; t.firstChild; ) e.appendChild(t.firstChild);
        }
      });
    function He(e, t) {
      if (t) {
        var n = e.firstChild;
        if (n && n === e.lastChild && 3 === n.nodeType)
          return void (n.nodeValue = t);
      }
      e.textContent = t;
    }
    function ze(e, t) {
      var n = {};
      return (
        (n[e.toLowerCase()] = t.toLowerCase()),
        (n["Webkit" + e] = "webkit" + t),
        (n["Moz" + e] = "moz" + t),
        n
      );
    }
    var Be = {
        animationend: ze("Animation", "AnimationEnd"),
        animationiteration: ze("Animation", "AnimationIteration"),
        animationstart: ze("Animation", "AnimationStart"),
        transitionend: ze("Transition", "TransitionEnd"),
      },
      Ue = {},
      Ve = {};
    function We(e) {
      if (Ue[e]) return Ue[e];
      if (!Be[e]) return e;
      var t,
        n = Be[e];
      for (t in n) if (n.hasOwnProperty(t) && t in Ve) return (Ue[e] = n[t]);
      return e;
    }
    S &&
      ((Ve = document.createElement("div").style),
      "AnimationEvent" in window ||
        (delete Be.animationend.animation,
        delete Be.animationiteration.animation,
        delete Be.animationstart.animation),
      "TransitionEvent" in window || delete Be.transitionend.transition);
    var qe = We("animationend"),
      Ge = We("animationiteration"),
      Je = We("animationstart"),
      Ke = We("transitionend"),
      Qe = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(
        " "
      ),
      Xe = new ("function" == typeof WeakMap ? WeakMap : Map)();
    function $e(e) {
      var t = Xe.get(e);
      return void 0 === t && ((t = new Map()), Xe.set(e, t)), t;
    }
    function Ze(e) {
      var t = e,
        n = e;
      if (e.alternate) for (; t.return; ) t = t.return;
      else {
        e = t;
        do {
          0 != (1026 & (t = e).effectTag) && (n = t.return), (e = t.return);
        } while (e);
      }
      return 3 === t.tag ? n : null;
    }
    function et(e) {
      if (13 === e.tag) {
        var t = e.memoizedState;
        if (
          (null === t && null !== (e = e.alternate) && (t = e.memoizedState),
          null !== t)
        )
          return t.dehydrated;
      }
      return null;
    }
    function tt(e) {
      if (Ze(e) !== e) throw Error(i(188));
    }
    function nt(e) {
      if (
        !(e = (function (e) {
          var t = e.alternate;
          if (!t) {
            if (null === (t = Ze(e))) throw Error(i(188));
            return t !== e ? null : e;
          }
          for (var n = e, r = t; ; ) {
            var o = n.return;
            if (null === o) break;
            var a = o.alternate;
            if (null === a) {
              if (null !== (r = o.return)) {
                n = r;
                continue;
              }
              break;
            }
            if (o.child === a.child) {
              for (a = o.child; a; ) {
                if (a === n) return tt(o), e;
                if (a === r) return tt(o), t;
                a = a.sibling;
              }
              throw Error(i(188));
            }
            if (n.return !== r.return) (n = o), (r = a);
            else {
              for (var s = !1, l = o.child; l; ) {
                if (l === n) {
                  (s = !0), (n = o), (r = a);
                  break;
                }
                if (l === r) {
                  (s = !0), (r = o), (n = a);
                  break;
                }
                l = l.sibling;
              }
              if (!s) {
                for (l = a.child; l; ) {
                  if (l === n) {
                    (s = !0), (n = a), (r = o);
                    break;
                  }
                  if (l === r) {
                    (s = !0), (r = a), (n = o);
                    break;
                  }
                  l = l.sibling;
                }
                if (!s) throw Error(i(189));
              }
            }
            if (n.alternate !== r) throw Error(i(190));
          }
          if (3 !== n.tag) throw Error(i(188));
          return n.stateNode.current === n ? e : t;
        })(e))
      )
        return null;
      for (var t = e; ; ) {
        if (5 === t.tag || 6 === t.tag) return t;
        if (t.child) (t.child.return = t), (t = t.child);
        else {
          if (t === e) break;
          for (; !t.sibling; ) {
            if (!t.return || t.return === e) return null;
            t = t.return;
          }
          (t.sibling.return = t.return), (t = t.sibling);
        }
      }
      return null;
    }
    function rt(e, t) {
      if (null == t) throw Error(i(30));
      return null == e
        ? t
        : Array.isArray(e)
        ? Array.isArray(t)
          ? (e.push.apply(e, t), e)
          : (e.push(t), e)
        : Array.isArray(t)
        ? [e].concat(t)
        : [e, t];
    }
    function ot(e, t, n) {
      Array.isArray(e) ? e.forEach(t, n) : e && t.call(n, e);
    }
    var at = null;
    function it(e) {
      if (e) {
        var t = e._dispatchListeners,
          n = e._dispatchInstances;
        if (Array.isArray(t))
          for (var r = 0; r < t.length && !e.isPropagationStopped(); r++)
            _(e, t[r], n[r]);
        else t && _(e, t, n);
        (e._dispatchListeners = null),
          (e._dispatchInstances = null),
          e.isPersistent() || e.constructor.release(e);
      }
    }
    function st(e) {
      if ((null !== e && (at = rt(at, e)), (e = at), (at = null), e)) {
        if ((ot(e, it), at)) throw Error(i(95));
        if (u) throw ((e = d), (u = !1), (d = null), e);
      }
    }
    function lt(e) {
      return (
        (e = e.target || e.srcElement || window).correspondingUseElement &&
          (e = e.correspondingUseElement),
        3 === e.nodeType ? e.parentNode : e
      );
    }
    function ct(e) {
      if (!S) return !1;
      var t = (e = "on" + e) in document;
      return (
        t ||
          ((t = document.createElement("div")).setAttribute(e, "return;"),
          (t = "function" == typeof t[e])),
        t
      );
    }
    var ut = [];
    function dt(e) {
      (e.topLevelType = null),
        (e.nativeEvent = null),
        (e.targetInst = null),
        (e.ancestors.length = 0),
        10 > ut.length && ut.push(e);
    }
    function ht(e, t, n, r) {
      if (ut.length) {
        var o = ut.pop();
        return (
          (o.topLevelType = e),
          (o.eventSystemFlags = r),
          (o.nativeEvent = t),
          (o.targetInst = n),
          o
        );
      }
      return {
        topLevelType: e,
        eventSystemFlags: r,
        nativeEvent: t,
        targetInst: n,
        ancestors: [],
      };
    }
    function pt(e) {
      var t = e.targetInst,
        n = t;
      do {
        if (!n) {
          e.ancestors.push(n);
          break;
        }
        var r = n;
        if (3 === r.tag) r = r.stateNode.containerInfo;
        else {
          for (; r.return; ) r = r.return;
          r = 3 !== r.tag ? null : r.stateNode.containerInfo;
        }
        if (!r) break;
        (5 !== (t = n.tag) && 6 !== t) || e.ancestors.push(n), (n = Sn(r));
      } while (n);
      for (n = 0; n < e.ancestors.length; n++) {
        t = e.ancestors[n];
        var o = lt(e.nativeEvent);
        r = e.topLevelType;
        var a = e.nativeEvent,
          i = e.eventSystemFlags;
        0 === n && (i |= 64);
        for (var s = null, l = 0; l < k.length; l++) {
          var c = k[l];
          c && (c = c.extractEvents(r, t, a, o, i)) && (s = rt(s, c));
        }
        st(s);
      }
    }
    function ft(e, t, n) {
      if (!n.has(e)) {
        switch (e) {
          case "scroll":
            Jt(t, "scroll", !0);
            break;
          case "focus":
          case "blur":
            Jt(t, "focus", !0),
              Jt(t, "blur", !0),
              n.set("blur", null),
              n.set("focus", null);
            break;
          case "cancel":
          case "close":
            ct(e) && Jt(t, e, !0);
            break;
          case "invalid":
          case "submit":
          case "reset":
            break;
          default:
            -1 === Qe.indexOf(e) && Gt(e, t);
        }
        n.set(e, null);
      }
    }
    var mt,
      gt,
      _t,
      vt = !1,
      bt = [],
      yt = null,
      wt = null,
      kt = null,
      xt = new Map(),
      Mt = new Map(),
      Et = [],
      Tt = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(
        " "
      ),
      St = "focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(
        " "
      );
    function Dt(e, t, n, r, o) {
      return {
        blockedOn: e,
        topLevelType: t,
        eventSystemFlags: 32 | n,
        nativeEvent: o,
        container: r,
      };
    }
    function Lt(e, t) {
      switch (e) {
        case "focus":
        case "blur":
          yt = null;
          break;
        case "dragenter":
        case "dragleave":
          wt = null;
          break;
        case "mouseover":
        case "mouseout":
          kt = null;
          break;
        case "pointerover":
        case "pointerout":
          xt.delete(t.pointerId);
          break;
        case "gotpointercapture":
        case "lostpointercapture":
          Mt.delete(t.pointerId);
      }
    }
    function Ct(e, t, n, r, o, a) {
      return null === e || e.nativeEvent !== a
        ? ((e = Dt(t, n, r, o, a)),
          null !== t && null !== (t = Dn(t)) && gt(t),
          e)
        : ((e.eventSystemFlags |= r), e);
    }
    function Pt(e) {
      var t = Sn(e.target);
      if (null !== t) {
        var n = Ze(t);
        if (null !== n)
          if (13 === (t = n.tag)) {
            if (null !== (t = et(n)))
              return (
                (e.blockedOn = t),
                void a.unstable_runWithPriority(e.priority, function () {
                  _t(n);
                })
              );
          } else if (3 === t && n.stateNode.hydrate)
            return void (e.blockedOn =
              3 === n.tag ? n.stateNode.containerInfo : null);
      }
      e.blockedOn = null;
    }
    function Ot(e) {
      if (null !== e.blockedOn) return !1;
      var t = $t(
        e.topLevelType,
        e.eventSystemFlags,
        e.container,
        e.nativeEvent
      );
      if (null !== t) {
        var n = Dn(t);
        return null !== n && gt(n), (e.blockedOn = t), !1;
      }
      return !0;
    }
    function Nt(e, t, n) {
      Ot(e) && n.delete(t);
    }
    function At() {
      for (vt = !1; 0 < bt.length; ) {
        var e = bt[0];
        if (null !== e.blockedOn) {
          null !== (e = Dn(e.blockedOn)) && mt(e);
          break;
        }
        var t = $t(
          e.topLevelType,
          e.eventSystemFlags,
          e.container,
          e.nativeEvent
        );
        null !== t ? (e.blockedOn = t) : bt.shift();
      }
      null !== yt && Ot(yt) && (yt = null),
        null !== wt && Ot(wt) && (wt = null),
        null !== kt && Ot(kt) && (kt = null),
        xt.forEach(Nt),
        Mt.forEach(Nt);
    }
    function It(e, t) {
      e.blockedOn === t &&
        ((e.blockedOn = null),
        vt ||
          ((vt = !0),
          a.unstable_scheduleCallback(a.unstable_NormalPriority, At)));
    }
    function Rt(e) {
      function t(t) {
        return It(t, e);
      }
      if (0 < bt.length) {
        It(bt[0], e);
        for (var n = 1; n < bt.length; n++) {
          var r = bt[n];
          r.blockedOn === e && (r.blockedOn = null);
        }
      }
      for (
        null !== yt && It(yt, e),
          null !== wt && It(wt, e),
          null !== kt && It(kt, e),
          xt.forEach(t),
          Mt.forEach(t),
          n = 0;
        n < Et.length;
        n++
      )
        (r = Et[n]).blockedOn === e && (r.blockedOn = null);
      for (; 0 < Et.length && null === (n = Et[0]).blockedOn; )
        Pt(n), null === n.blockedOn && Et.shift();
    }
    var Yt = {},
      jt = new Map(),
      Ft = new Map(),
      Ht = [
        "abort",
        "abort",
        qe,
        "animationEnd",
        Ge,
        "animationIteration",
        Je,
        "animationStart",
        "canplay",
        "canPlay",
        "canplaythrough",
        "canPlayThrough",
        "durationchange",
        "durationChange",
        "emptied",
        "emptied",
        "encrypted",
        "encrypted",
        "ended",
        "ended",
        "error",
        "error",
        "gotpointercapture",
        "gotPointerCapture",
        "load",
        "load",
        "loadeddata",
        "loadedData",
        "loadedmetadata",
        "loadedMetadata",
        "loadstart",
        "loadStart",
        "lostpointercapture",
        "lostPointerCapture",
        "playing",
        "playing",
        "progress",
        "progress",
        "seeking",
        "seeking",
        "stalled",
        "stalled",
        "suspend",
        "suspend",
        "timeupdate",
        "timeUpdate",
        Ke,
        "transitionEnd",
        "waiting",
        "waiting",
      ];
    function zt(e, t) {
      for (var n = 0; n < e.length; n += 2) {
        var r = e[n],
          o = e[n + 1],
          a = "on" + (o[0].toUpperCase() + o.slice(1));
        (a = {
          phasedRegistrationNames: { bubbled: a, captured: a + "Capture" },
          dependencies: [r],
          eventPriority: t,
        }),
          Ft.set(r, t),
          jt.set(r, a),
          (Yt[o] = a);
      }
    }
    zt(
      "blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(
        " "
      ),
      0
    ),
      zt(
        "drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(
          " "
        ),
        1
      ),
      zt(Ht, 2);
    for (
      var Bt = "change selectionchange textInput compositionstart compositionend compositionupdate".split(
          " "
        ),
        Ut = 0;
      Ut < Bt.length;
      Ut++
    )
      Ft.set(Bt[Ut], 0);
    var Vt = a.unstable_UserBlockingPriority,
      Wt = a.unstable_runWithPriority,
      qt = !0;
    function Gt(e, t) {
      Jt(t, e, !1);
    }
    function Jt(e, t, n) {
      var r = Ft.get(t);
      switch (void 0 === r ? 2 : r) {
        case 0:
          r = Kt.bind(null, t, 1, e);
          break;
        case 1:
          r = Qt.bind(null, t, 1, e);
          break;
        default:
          r = Xt.bind(null, t, 1, e);
      }
      n ? e.addEventListener(t, r, !0) : e.addEventListener(t, r, !1);
    }
    function Kt(e, t, n, r) {
      j || R();
      var o = Xt,
        a = j;
      j = !0;
      try {
        I(o, e, t, n, r);
      } finally {
        (j = a) || H();
      }
    }
    function Qt(e, t, n, r) {
      Wt(Vt, Xt.bind(null, e, t, n, r));
    }
    function Xt(e, t, n, r) {
      if (qt)
        if (0 < bt.length && -1 < Tt.indexOf(e))
          (e = Dt(null, e, t, n, r)), bt.push(e);
        else {
          var o = $t(e, t, n, r);
          if (null === o) Lt(e, r);
          else if (-1 < Tt.indexOf(e)) (e = Dt(o, e, t, n, r)), bt.push(e);
          else if (
            !(function (e, t, n, r, o) {
              switch (t) {
                case "focus":
                  return (yt = Ct(yt, e, t, n, r, o)), !0;
                case "dragenter":
                  return (wt = Ct(wt, e, t, n, r, o)), !0;
                case "mouseover":
                  return (kt = Ct(kt, e, t, n, r, o)), !0;
                case "pointerover":
                  var a = o.pointerId;
                  return xt.set(a, Ct(xt.get(a) || null, e, t, n, r, o)), !0;
                case "gotpointercapture":
                  return (
                    (a = o.pointerId),
                    Mt.set(a, Ct(Mt.get(a) || null, e, t, n, r, o)),
                    !0
                  );
              }
              return !1;
            })(o, e, t, n, r)
          ) {
            Lt(e, r), (e = ht(e, r, null, t));
            try {
              z(pt, e);
            } finally {
              dt(e);
            }
          }
        }
    }
    function $t(e, t, n, r) {
      if (null !== (n = Sn((n = lt(r))))) {
        var o = Ze(n);
        if (null === o) n = null;
        else {
          var a = o.tag;
          if (13 === a) {
            if (null !== (n = et(o))) return n;
            n = null;
          } else if (3 === a) {
            if (o.stateNode.hydrate)
              return 3 === o.tag ? o.stateNode.containerInfo : null;
            n = null;
          } else o !== n && (n = null);
        }
      }
      e = ht(e, r, n, t);
      try {
        z(pt, e);
      } finally {
        dt(e);
      }
      return null;
    }
    var Zt = {
        animationIterationCount: !0,
        borderImageOutset: !0,
        borderImageSlice: !0,
        borderImageWidth: !0,
        boxFlex: !0,
        boxFlexGroup: !0,
        boxOrdinalGroup: !0,
        columnCount: !0,
        columns: !0,
        flex: !0,
        flexGrow: !0,
        flexPositive: !0,
        flexShrink: !0,
        flexNegative: !0,
        flexOrder: !0,
        gridArea: !0,
        gridRow: !0,
        gridRowEnd: !0,
        gridRowSpan: !0,
        gridRowStart: !0,
        gridColumn: !0,
        gridColumnEnd: !0,
        gridColumnSpan: !0,
        gridColumnStart: !0,
        fontWeight: !0,
        lineClamp: !0,
        lineHeight: !0,
        opacity: !0,
        order: !0,
        orphans: !0,
        tabSize: !0,
        widows: !0,
        zIndex: !0,
        zoom: !0,
        fillOpacity: !0,
        floodOpacity: !0,
        stopOpacity: !0,
        strokeDasharray: !0,
        strokeDashoffset: !0,
        strokeMiterlimit: !0,
        strokeOpacity: !0,
        strokeWidth: !0,
      },
      en = ["Webkit", "ms", "Moz", "O"];
    function tn(e, t, n) {
      return null == t || "boolean" == typeof t || "" === t
        ? ""
        : n ||
          "number" != typeof t ||
          0 === t ||
          (Zt.hasOwnProperty(e) && Zt[e])
        ? ("" + t).trim()
        : t + "px";
    }
    function nn(e, t) {
      for (var n in ((e = e.style), t))
        if (t.hasOwnProperty(n)) {
          var r = 0 === n.indexOf("--"),
            o = tn(n, t[n], r);
          "float" === n && (n = "cssFloat"),
            r ? e.setProperty(n, o) : (e[n] = o);
        }
    }
    Object.keys(Zt).forEach(function (e) {
      en.forEach(function (t) {
        (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (Zt[t] = Zt[e]);
      });
    });
    var rn = o(
      { menuitem: !0 },
      {
        area: !0,
        base: !0,
        br: !0,
        col: !0,
        embed: !0,
        hr: !0,
        img: !0,
        input: !0,
        keygen: !0,
        link: !0,
        meta: !0,
        param: !0,
        source: !0,
        track: !0,
        wbr: !0,
      }
    );
    function on(e, t) {
      if (t) {
        if (rn[e] && (null != t.children || null != t.dangerouslySetInnerHTML))
          throw Error(i(137, e, ""));
        if (null != t.dangerouslySetInnerHTML) {
          if (null != t.children) throw Error(i(60));
          if (
            "object" != typeof t.dangerouslySetInnerHTML ||
            !("__html" in t.dangerouslySetInnerHTML)
          )
            throw Error(i(61));
        }
        if (null != t.style && "object" != typeof t.style)
          throw Error(i(62, ""));
      }
    }
    function an(e, t) {
      if (-1 === e.indexOf("-")) return "string" == typeof t.is;
      switch (e) {
        case "annotation-xml":
        case "color-profile":
        case "font-face":
        case "font-face-src":
        case "font-face-uri":
        case "font-face-format":
        case "font-face-name":
        case "missing-glyph":
          return !1;
        default:
          return !0;
      }
    }
    var sn = Ae;
    function ln(e, t) {
      var n = $e(
        (e = 9 === e.nodeType || 11 === e.nodeType ? e : e.ownerDocument)
      );
      t = E[t];
      for (var r = 0; r < t.length; r++) ft(t[r], e, n);
    }
    function cn() {}
    function un(e) {
      if (
        void 0 ===
        (e = e || ("undefined" != typeof document ? document : void 0))
      )
        return null;
      try {
        return e.activeElement || e.body;
      } catch (t) {
        return e.body;
      }
    }
    function dn(e) {
      for (; e && e.firstChild; ) e = e.firstChild;
      return e;
    }
    function hn(e, t) {
      var n,
        r = dn(e);
      for (e = 0; r; ) {
        if (3 === r.nodeType) {
          if (((n = e + r.textContent.length), e <= t && n >= t))
            return { node: r, offset: t - e };
          e = n;
        }
        e: {
          for (; r; ) {
            if (r.nextSibling) {
              r = r.nextSibling;
              break e;
            }
            r = r.parentNode;
          }
          r = void 0;
        }
        r = dn(r);
      }
    }
    function pn() {
      for (var e = window, t = un(); t instanceof e.HTMLIFrameElement; ) {
        try {
          var n = "string" == typeof t.contentWindow.location.href;
        } catch (e) {
          n = !1;
        }
        if (!n) break;
        t = un((e = t.contentWindow).document);
      }
      return t;
    }
    function fn(e) {
      var t = e && e.nodeName && e.nodeName.toLowerCase();
      return (
        t &&
        (("input" === t &&
          ("text" === e.type ||
            "search" === e.type ||
            "tel" === e.type ||
            "url" === e.type ||
            "password" === e.type)) ||
          "textarea" === t ||
          "true" === e.contentEditable)
      );
    }
    var mn = null,
      gn = null;
    function _n(e, t) {
      switch (e) {
        case "button":
        case "input":
        case "select":
        case "textarea":
          return !!t.autoFocus;
      }
      return !1;
    }
    function vn(e, t) {
      return (
        "textarea" === e ||
        "option" === e ||
        "noscript" === e ||
        "string" == typeof t.children ||
        "number" == typeof t.children ||
        ("object" == typeof t.dangerouslySetInnerHTML &&
          null !== t.dangerouslySetInnerHTML &&
          null != t.dangerouslySetInnerHTML.__html)
      );
    }
    var bn = "function" == typeof setTimeout ? setTimeout : void 0,
      yn = "function" == typeof clearTimeout ? clearTimeout : void 0;
    function wn(e) {
      for (; null != e; e = e.nextSibling) {
        var t = e.nodeType;
        if (1 === t || 3 === t) break;
      }
      return e;
    }
    function kn(e) {
      e = e.previousSibling;
      for (var t = 0; e; ) {
        if (8 === e.nodeType) {
          var n = e.data;
          if ("$" === n || "$!" === n || "$?" === n) {
            if (0 === t) return e;
            t--;
          } else "/$" === n && t++;
        }
        e = e.previousSibling;
      }
      return null;
    }
    var xn = Math.random().toString(36).slice(2),
      Mn = "__reactInternalInstance$" + xn,
      En = "__reactEventHandlers$" + xn,
      Tn = "__reactContainere$" + xn;
    function Sn(e) {
      var t = e[Mn];
      if (t) return t;
      for (var n = e.parentNode; n; ) {
        if ((t = n[Tn] || n[Mn])) {
          if (
            ((n = t.alternate),
            null !== t.child || (null !== n && null !== n.child))
          )
            for (e = kn(e); null !== e; ) {
              if ((n = e[Mn])) return n;
              e = kn(e);
            }
          return t;
        }
        n = (e = n).parentNode;
      }
      return null;
    }
    function Dn(e) {
      return !(e = e[Mn] || e[Tn]) ||
        (5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag)
        ? null
        : e;
    }
    function Ln(e) {
      if (5 === e.tag || 6 === e.tag) return e.stateNode;
      throw Error(i(33));
    }
    function Cn(e) {
      return e[En] || null;
    }
    function Pn(e) {
      do {
        e = e.return;
      } while (e && 5 !== e.tag);
      return e || null;
    }
    function On(e, t) {
      var n = e.stateNode;
      if (!n) return null;
      var r = f(n);
      if (!r) return null;
      n = r[t];
      e: switch (t) {
        case "onClick":
        case "onClickCapture":
        case "onDoubleClick":
        case "onDoubleClickCapture":
        case "onMouseDown":
        case "onMouseDownCapture":
        case "onMouseMove":
        case "onMouseMoveCapture":
        case "onMouseUp":
        case "onMouseUpCapture":
        case "onMouseEnter":
          (r = !r.disabled) ||
            (r = !(
              "button" === (e = e.type) ||
              "input" === e ||
              "select" === e ||
              "textarea" === e
            )),
            (e = !r);
          break e;
        default:
          e = !1;
      }
      if (e) return null;
      if (n && "function" != typeof n) throw Error(i(231, t, typeof n));
      return n;
    }
    function Nn(e, t, n) {
      (t = On(e, n.dispatchConfig.phasedRegistrationNames[t])) &&
        ((n._dispatchListeners = rt(n._dispatchListeners, t)),
        (n._dispatchInstances = rt(n._dispatchInstances, e)));
    }
    function An(e) {
      if (e && e.dispatchConfig.phasedRegistrationNames) {
        for (var t = e._targetInst, n = []; t; ) n.push(t), (t = Pn(t));
        for (t = n.length; 0 < t--; ) Nn(n[t], "captured", e);
        for (t = 0; t < n.length; t++) Nn(n[t], "bubbled", e);
      }
    }
    function In(e, t, n) {
      e &&
        n &&
        n.dispatchConfig.registrationName &&
        (t = On(e, n.dispatchConfig.registrationName)) &&
        ((n._dispatchListeners = rt(n._dispatchListeners, t)),
        (n._dispatchInstances = rt(n._dispatchInstances, e)));
    }
    function Rn(e) {
      e && e.dispatchConfig.registrationName && In(e._targetInst, null, e);
    }
    function Yn(e) {
      ot(e, An);
    }
    var jn = null,
      Fn = null,
      Hn = null;
    function zn() {
      if (Hn) return Hn;
      var e,
        t,
        n = Fn,
        r = n.length,
        o = "value" in jn ? jn.value : jn.textContent,
        a = o.length;
      for (e = 0; e < r && n[e] === o[e]; e++);
      var i = r - e;
      for (t = 1; t <= i && n[r - t] === o[a - t]; t++);
      return (Hn = o.slice(e, 1 < t ? 1 - t : void 0));
    }
    function Bn() {
      return !0;
    }
    function Un() {
      return !1;
    }
    function Vn(e, t, n, r) {
      for (var o in ((this.dispatchConfig = e),
      (this._targetInst = t),
      (this.nativeEvent = n),
      (e = this.constructor.Interface)))
        e.hasOwnProperty(o) &&
          ((t = e[o])
            ? (this[o] = t(n))
            : "target" === o
            ? (this.target = r)
            : (this[o] = n[o]));
      return (
        (this.isDefaultPrevented = (
          null != n.defaultPrevented ? n.defaultPrevented : !1 === n.returnValue
        )
          ? Bn
          : Un),
        (this.isPropagationStopped = Un),
        this
      );
    }
    function Wn(e, t, n, r) {
      if (this.eventPool.length) {
        var o = this.eventPool.pop();
        return this.call(o, e, t, n, r), o;
      }
      return new this(e, t, n, r);
    }
    function qn(e) {
      if (!(e instanceof this)) throw Error(i(279));
      e.destructor(), 10 > this.eventPool.length && this.eventPool.push(e);
    }
    function Gn(e) {
      (e.eventPool = []), (e.getPooled = Wn), (e.release = qn);
    }
    o(Vn.prototype, {
      preventDefault: function () {
        this.defaultPrevented = !0;
        var e = this.nativeEvent;
        e &&
          (e.preventDefault
            ? e.preventDefault()
            : "unknown" != typeof e.returnValue && (e.returnValue = !1),
          (this.isDefaultPrevented = Bn));
      },
      stopPropagation: function () {
        var e = this.nativeEvent;
        e &&
          (e.stopPropagation
            ? e.stopPropagation()
            : "unknown" != typeof e.cancelBubble && (e.cancelBubble = !0),
          (this.isPropagationStopped = Bn));
      },
      persist: function () {
        this.isPersistent = Bn;
      },
      isPersistent: Un,
      destructor: function () {
        var e,
          t = this.constructor.Interface;
        for (e in t) this[e] = null;
        (this.nativeEvent = this._targetInst = this.dispatchConfig = null),
          (this.isPropagationStopped = this.isDefaultPrevented = Un),
          (this._dispatchInstances = this._dispatchListeners = null);
      },
    }),
      (Vn.Interface = {
        type: null,
        target: null,
        currentTarget: function () {
          return null;
        },
        eventPhase: null,
        bubbles: null,
        cancelable: null,
        timeStamp: function (e) {
          return e.timeStamp || Date.now();
        },
        defaultPrevented: null,
        isTrusted: null,
      }),
      (Vn.extend = function (e) {
        function t() {}
        function n() {
          return r.apply(this, arguments);
        }
        var r = this;
        t.prototype = r.prototype;
        var a = new t();
        return (
          o(a, n.prototype),
          (n.prototype = a),
          (n.prototype.constructor = n),
          (n.Interface = o({}, r.Interface, e)),
          (n.extend = r.extend),
          Gn(n),
          n
        );
      }),
      Gn(Vn);
    var Jn = Vn.extend({ data: null }),
      Kn = Vn.extend({ data: null }),
      Qn = [9, 13, 27, 32],
      Xn = S && "CompositionEvent" in window,
      $n = null;
    S && "documentMode" in document && ($n = document.documentMode);
    var Zn = S && "TextEvent" in window && !$n,
      er = S && (!Xn || ($n && 8 < $n && 11 >= $n)),
      tr = String.fromCharCode(32),
      nr = {
        beforeInput: {
          phasedRegistrationNames: {
            bubbled: "onBeforeInput",
            captured: "onBeforeInputCapture",
          },
          dependencies: ["compositionend", "keypress", "textInput", "paste"],
        },
        compositionEnd: {
          phasedRegistrationNames: {
            bubbled: "onCompositionEnd",
            captured: "onCompositionEndCapture",
          },
          dependencies: "blur compositionend keydown keypress keyup mousedown".split(
            " "
          ),
        },
        compositionStart: {
          phasedRegistrationNames: {
            bubbled: "onCompositionStart",
            captured: "onCompositionStartCapture",
          },
          dependencies: "blur compositionstart keydown keypress keyup mousedown".split(
            " "
          ),
        },
        compositionUpdate: {
          phasedRegistrationNames: {
            bubbled: "onCompositionUpdate",
            captured: "onCompositionUpdateCapture",
          },
          dependencies: "blur compositionupdate keydown keypress keyup mousedown".split(
            " "
          ),
        },
      },
      rr = !1;
    function or(e, t) {
      switch (e) {
        case "keyup":
          return -1 !== Qn.indexOf(t.keyCode);
        case "keydown":
          return 229 !== t.keyCode;
        case "keypress":
        case "mousedown":
        case "blur":
          return !0;
        default:
          return !1;
      }
    }
    function ar(e) {
      return "object" == typeof (e = e.detail) && "data" in e ? e.data : null;
    }
    var ir = !1;
    var sr = {
        eventTypes: nr,
        extractEvents: function (e, t, n, r) {
          var o;
          if (Xn)
            e: {
              switch (e) {
                case "compositionstart":
                  var a = nr.compositionStart;
                  break e;
                case "compositionend":
                  a = nr.compositionEnd;
                  break e;
                case "compositionupdate":
                  a = nr.compositionUpdate;
                  break e;
              }
              a = void 0;
            }
          else
            ir
              ? or(e, n) && (a = nr.compositionEnd)
              : "keydown" === e &&
                229 === n.keyCode &&
                (a = nr.compositionStart);
          return (
            a
              ? (er &&
                  "ko" !== n.locale &&
                  (ir || a !== nr.compositionStart
                    ? a === nr.compositionEnd && ir && (o = zn())
                    : ((Fn = "value" in (jn = r) ? jn.value : jn.textContent),
                      (ir = !0))),
                (a = Jn.getPooled(a, t, n, r)),
                o ? (a.data = o) : null !== (o = ar(n)) && (a.data = o),
                Yn(a),
                (o = a))
              : (o = null),
            (e = Zn
              ? (function (e, t) {
                  switch (e) {
                    case "compositionend":
                      return ar(t);
                    case "keypress":
                      return 32 !== t.which ? null : ((rr = !0), tr);
                    case "textInput":
                      return (e = t.data) === tr && rr ? null : e;
                    default:
                      return null;
                  }
                })(e, n)
              : (function (e, t) {
                  if (ir)
                    return "compositionend" === e || (!Xn && or(e, t))
                      ? ((e = zn()), (Hn = Fn = jn = null), (ir = !1), e)
                      : null;
                  switch (e) {
                    case "paste":
                      return null;
                    case "keypress":
                      if (
                        !(t.ctrlKey || t.altKey || t.metaKey) ||
                        (t.ctrlKey && t.altKey)
                      ) {
                        if (t.char && 1 < t.char.length) return t.char;
                        if (t.which) return String.fromCharCode(t.which);
                      }
                      return null;
                    case "compositionend":
                      return er && "ko" !== t.locale ? null : t.data;
                    default:
                      return null;
                  }
                })(e, n))
              ? (((t = Kn.getPooled(nr.beforeInput, t, n, r)).data = e), Yn(t))
              : (t = null),
            null === o ? t : null === t ? o : [o, t]
          );
        },
      },
      lr = {
        color: !0,
        date: !0,
        datetime: !0,
        "datetime-local": !0,
        email: !0,
        month: !0,
        number: !0,
        password: !0,
        range: !0,
        search: !0,
        tel: !0,
        text: !0,
        time: !0,
        url: !0,
        week: !0,
      };
    function cr(e) {
      var t = e && e.nodeName && e.nodeName.toLowerCase();
      return "input" === t ? !!lr[e.type] : "textarea" === t;
    }
    var ur = {
      change: {
        phasedRegistrationNames: {
          bubbled: "onChange",
          captured: "onChangeCapture",
        },
        dependencies: "blur change click focus input keydown keyup selectionchange".split(
          " "
        ),
      },
    };
    function dr(e, t, n) {
      return (
        ((e = Vn.getPooled(ur.change, e, t, n)).type = "change"), O(n), Yn(e), e
      );
    }
    var hr = null,
      pr = null;
    function fr(e) {
      st(e);
    }
    function mr(e) {
      if (we(Ln(e))) return e;
    }
    function gr(e, t) {
      if ("change" === e) return t;
    }
    var _r = !1;
    function vr() {
      hr && (hr.detachEvent("onpropertychange", br), (pr = hr = null));
    }
    function br(e) {
      if ("value" === e.propertyName && mr(pr))
        if (((e = dr(pr, e, lt(e))), j)) st(e);
        else {
          j = !0;
          try {
            A(fr, e);
          } finally {
            (j = !1), H();
          }
        }
    }
    function yr(e, t, n) {
      "focus" === e
        ? (vr(), (pr = n), (hr = t).attachEvent("onpropertychange", br))
        : "blur" === e && vr();
    }
    function wr(e) {
      if ("selectionchange" === e || "keyup" === e || "keydown" === e)
        return mr(pr);
    }
    function kr(e, t) {
      if ("click" === e) return mr(t);
    }
    function xr(e, t) {
      if ("input" === e || "change" === e) return mr(t);
    }
    S &&
      (_r =
        ct("input") && (!document.documentMode || 9 < document.documentMode));
    var Mr = {
        eventTypes: ur,
        _isInputEventSupported: _r,
        extractEvents: function (e, t, n, r) {
          var o = t ? Ln(t) : window,
            a = o.nodeName && o.nodeName.toLowerCase();
          if ("select" === a || ("input" === a && "file" === o.type))
            var i = gr;
          else if (cr(o))
            if (_r) i = xr;
            else {
              i = wr;
              var s = yr;
            }
          else
            (a = o.nodeName) &&
              "input" === a.toLowerCase() &&
              ("checkbox" === o.type || "radio" === o.type) &&
              (i = kr);
          if (i && (i = i(e, t))) return dr(i, n, r);
          s && s(e, o, t),
            "blur" === e &&
              (e = o._wrapperState) &&
              e.controlled &&
              "number" === o.type &&
              Se(o, "number", o.value);
        },
      },
      Er = Vn.extend({ view: null, detail: null }),
      Tr = {
        Alt: "altKey",
        Control: "ctrlKey",
        Meta: "metaKey",
        Shift: "shiftKey",
      };
    function Sr(e) {
      var t = this.nativeEvent;
      return t.getModifierState
        ? t.getModifierState(e)
        : !!(e = Tr[e]) && !!t[e];
    }
    function Dr() {
      return Sr;
    }
    var Lr = 0,
      Cr = 0,
      Pr = !1,
      Or = !1,
      Nr = Er.extend({
        screenX: null,
        screenY: null,
        clientX: null,
        clientY: null,
        pageX: null,
        pageY: null,
        ctrlKey: null,
        shiftKey: null,
        altKey: null,
        metaKey: null,
        getModifierState: Dr,
        button: null,
        buttons: null,
        relatedTarget: function (e) {
          return (
            e.relatedTarget ||
            (e.fromElement === e.srcElement ? e.toElement : e.fromElement)
          );
        },
        movementX: function (e) {
          if ("movementX" in e) return e.movementX;
          var t = Lr;
          return (
            (Lr = e.screenX),
            Pr ? ("mousemove" === e.type ? e.screenX - t : 0) : ((Pr = !0), 0)
          );
        },
        movementY: function (e) {
          if ("movementY" in e) return e.movementY;
          var t = Cr;
          return (
            (Cr = e.screenY),
            Or ? ("mousemove" === e.type ? e.screenY - t : 0) : ((Or = !0), 0)
          );
        },
      }),
      Ar = Nr.extend({
        pointerId: null,
        width: null,
        height: null,
        pressure: null,
        tangentialPressure: null,
        tiltX: null,
        tiltY: null,
        twist: null,
        pointerType: null,
        isPrimary: null,
      }),
      Ir = {
        mouseEnter: {
          registrationName: "onMouseEnter",
          dependencies: ["mouseout", "mouseover"],
        },
        mouseLeave: {
          registrationName: "onMouseLeave",
          dependencies: ["mouseout", "mouseover"],
        },
        pointerEnter: {
          registrationName: "onPointerEnter",
          dependencies: ["pointerout", "pointerover"],
        },
        pointerLeave: {
          registrationName: "onPointerLeave",
          dependencies: ["pointerout", "pointerover"],
        },
      },
      Rr = {
        eventTypes: Ir,
        extractEvents: function (e, t, n, r, o) {
          var a = "mouseover" === e || "pointerover" === e,
            i = "mouseout" === e || "pointerout" === e;
          if (
            (a && 0 == (32 & o) && (n.relatedTarget || n.fromElement)) ||
            (!i && !a)
          )
            return null;
          ((a =
            r.window === r
              ? r
              : (a = r.ownerDocument)
              ? a.defaultView || a.parentWindow
              : window),
          i)
            ? ((i = t),
              null !==
                (t = (t = n.relatedTarget || n.toElement) ? Sn(t) : null) &&
                (t !== Ze(t) || (5 !== t.tag && 6 !== t.tag)) &&
                (t = null))
            : (i = null);
          if (i === t) return null;
          if ("mouseout" === e || "mouseover" === e)
            var s = Nr,
              l = Ir.mouseLeave,
              c = Ir.mouseEnter,
              u = "mouse";
          else
            ("pointerout" !== e && "pointerover" !== e) ||
              ((s = Ar),
              (l = Ir.pointerLeave),
              (c = Ir.pointerEnter),
              (u = "pointer"));
          if (
            ((e = null == i ? a : Ln(i)),
            (a = null == t ? a : Ln(t)),
            ((l = s.getPooled(l, i, n, r)).type = u + "leave"),
            (l.target = e),
            (l.relatedTarget = a),
            ((n = s.getPooled(c, t, n, r)).type = u + "enter"),
            (n.target = a),
            (n.relatedTarget = e),
            (u = t),
            (r = i) && u)
          )
            e: {
              for (c = u, i = 0, e = s = r; e; e = Pn(e)) i++;
              for (e = 0, t = c; t; t = Pn(t)) e++;
              for (; 0 < i - e; ) (s = Pn(s)), i--;
              for (; 0 < e - i; ) (c = Pn(c)), e--;
              for (; i--; ) {
                if (s === c || s === c.alternate) break e;
                (s = Pn(s)), (c = Pn(c));
              }
              s = null;
            }
          else s = null;
          for (
            c = s, s = [];
            r && r !== c && (null === (i = r.alternate) || i !== c);

          )
            s.push(r), (r = Pn(r));
          for (
            r = [];
            u && u !== c && (null === (i = u.alternate) || i !== c);

          )
            r.push(u), (u = Pn(u));
          for (u = 0; u < s.length; u++) In(s[u], "bubbled", l);
          for (u = r.length; 0 < u--; ) In(r[u], "captured", n);
          return 0 == (64 & o) ? [l] : [l, n];
        },
      };
    var Yr =
        "function" == typeof Object.is
          ? Object.is
          : function (e, t) {
              return (
                (e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t)
              );
            },
      jr = Object.prototype.hasOwnProperty;
    function Fr(e, t) {
      if (Yr(e, t)) return !0;
      if (
        "object" != typeof e ||
        null === e ||
        "object" != typeof t ||
        null === t
      )
        return !1;
      var n = Object.keys(e),
        r = Object.keys(t);
      if (n.length !== r.length) return !1;
      for (r = 0; r < n.length; r++)
        if (!jr.call(t, n[r]) || !Yr(e[n[r]], t[n[r]])) return !1;
      return !0;
    }
    var Hr = S && "documentMode" in document && 11 >= document.documentMode,
      zr = {
        select: {
          phasedRegistrationNames: {
            bubbled: "onSelect",
            captured: "onSelectCapture",
          },
          dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(
            " "
          ),
        },
      },
      Br = null,
      Ur = null,
      Vr = null,
      Wr = !1;
    function qr(e, t) {
      var n =
        t.window === t ? t.document : 9 === t.nodeType ? t : t.ownerDocument;
      return Wr || null == Br || Br !== un(n)
        ? null
        : ("selectionStart" in (n = Br) && fn(n)
            ? (n = { start: n.selectionStart, end: n.selectionEnd })
            : (n = {
                anchorNode: (n = (
                  (n.ownerDocument && n.ownerDocument.defaultView) ||
                  window
                ).getSelection()).anchorNode,
                anchorOffset: n.anchorOffset,
                focusNode: n.focusNode,
                focusOffset: n.focusOffset,
              }),
          Vr && Fr(Vr, n)
            ? null
            : ((Vr = n),
              ((e = Vn.getPooled(zr.select, Ur, e, t)).type = "select"),
              (e.target = Br),
              Yn(e),
              e));
    }
    var Gr = {
        eventTypes: zr,
        extractEvents: function (e, t, n, r, o, a) {
          if (
            !(a = !(o =
              a ||
              (r.window === r
                ? r.document
                : 9 === r.nodeType
                ? r
                : r.ownerDocument)))
          ) {
            e: {
              (o = $e(o)), (a = E.onSelect);
              for (var i = 0; i < a.length; i++)
                if (!o.has(a[i])) {
                  o = !1;
                  break e;
                }
              o = !0;
            }
            a = !o;
          }
          if (a) return null;
          switch (((o = t ? Ln(t) : window), e)) {
            case "focus":
              (cr(o) || "true" === o.contentEditable) &&
                ((Br = o), (Ur = t), (Vr = null));
              break;
            case "blur":
              Vr = Ur = Br = null;
              break;
            case "mousedown":
              Wr = !0;
              break;
            case "contextmenu":
            case "mouseup":
            case "dragend":
              return (Wr = !1), qr(n, r);
            case "selectionchange":
              if (Hr) break;
            case "keydown":
            case "keyup":
              return qr(n, r);
          }
          return null;
        },
      },
      Jr = Vn.extend({
        animationName: null,
        elapsedTime: null,
        pseudoElement: null,
      }),
      Kr = Vn.extend({
        clipboardData: function (e) {
          return "clipboardData" in e ? e.clipboardData : window.clipboardData;
        },
      }),
      Qr = Er.extend({ relatedTarget: null });
    function Xr(e) {
      var t = e.keyCode;
      return (
        "charCode" in e
          ? 0 === (e = e.charCode) && 13 === t && (e = 13)
          : (e = t),
        10 === e && (e = 13),
        32 <= e || 13 === e ? e : 0
      );
    }
    var $r = {
        Esc: "Escape",
        Spacebar: " ",
        Left: "ArrowLeft",
        Up: "ArrowUp",
        Right: "ArrowRight",
        Down: "ArrowDown",
        Del: "Delete",
        Win: "OS",
        Menu: "ContextMenu",
        Apps: "ContextMenu",
        Scroll: "ScrollLock",
        MozPrintableKey: "Unidentified",
      },
      Zr = {
        8: "Backspace",
        9: "Tab",
        12: "Clear",
        13: "Enter",
        16: "Shift",
        17: "Control",
        18: "Alt",
        19: "Pause",
        20: "CapsLock",
        27: "Escape",
        32: " ",
        33: "PageUp",
        34: "PageDown",
        35: "End",
        36: "Home",
        37: "ArrowLeft",
        38: "ArrowUp",
        39: "ArrowRight",
        40: "ArrowDown",
        45: "Insert",
        46: "Delete",
        112: "F1",
        113: "F2",
        114: "F3",
        115: "F4",
        116: "F5",
        117: "F6",
        118: "F7",
        119: "F8",
        120: "F9",
        121: "F10",
        122: "F11",
        123: "F12",
        144: "NumLock",
        145: "ScrollLock",
        224: "Meta",
      },
      eo = Er.extend({
        key: function (e) {
          if (e.key) {
            var t = $r[e.key] || e.key;
            if ("Unidentified" !== t) return t;
          }
          return "keypress" === e.type
            ? 13 === (e = Xr(e))
              ? "Enter"
              : String.fromCharCode(e)
            : "keydown" === e.type || "keyup" === e.type
            ? Zr[e.keyCode] || "Unidentified"
            : "";
        },
        location: null,
        ctrlKey: null,
        shiftKey: null,
        altKey: null,
        metaKey: null,
        repeat: null,
        locale: null,
        getModifierState: Dr,
        charCode: function (e) {
          return "keypress" === e.type ? Xr(e) : 0;
        },
        keyCode: function (e) {
          return "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0;
        },
        which: function (e) {
          return "keypress" === e.type
            ? Xr(e)
            : "keydown" === e.type || "keyup" === e.type
            ? e.keyCode
            : 0;
        },
      }),
      to = Nr.extend({ dataTransfer: null }),
      no = Er.extend({
        touches: null,
        targetTouches: null,
        changedTouches: null,
        altKey: null,
        metaKey: null,
        ctrlKey: null,
        shiftKey: null,
        getModifierState: Dr,
      }),
      ro = Vn.extend({
        propertyName: null,
        elapsedTime: null,
        pseudoElement: null,
      }),
      oo = Nr.extend({
        deltaX: function (e) {
          return "deltaX" in e
            ? e.deltaX
            : "wheelDeltaX" in e
            ? -e.wheelDeltaX
            : 0;
        },
        deltaY: function (e) {
          return "deltaY" in e
            ? e.deltaY
            : "wheelDeltaY" in e
            ? -e.wheelDeltaY
            : "wheelDelta" in e
            ? -e.wheelDelta
            : 0;
        },
        deltaZ: null,
        deltaMode: null,
      }),
      ao = {
        eventTypes: Yt,
        extractEvents: function (e, t, n, r) {
          var o = jt.get(e);
          if (!o) return null;
          switch (e) {
            case "keypress":
              if (0 === Xr(n)) return null;
            case "keydown":
            case "keyup":
              e = eo;
              break;
            case "blur":
            case "focus":
              e = Qr;
              break;
            case "click":
              if (2 === n.button) return null;
            case "auxclick":
            case "dblclick":
            case "mousedown":
            case "mousemove":
            case "mouseup":
            case "mouseout":
            case "mouseover":
            case "contextmenu":
              e = Nr;
              break;
            case "drag":
            case "dragend":
            case "dragenter":
            case "dragexit":
            case "dragleave":
            case "dragover":
            case "dragstart":
            case "drop":
              e = to;
              break;
            case "touchcancel":
            case "touchend":
            case "touchmove":
            case "touchstart":
              e = no;
              break;
            case qe:
            case Ge:
            case Je:
              e = Jr;
              break;
            case Ke:
              e = ro;
              break;
            case "scroll":
              e = Er;
              break;
            case "wheel":
              e = oo;
              break;
            case "copy":
            case "cut":
            case "paste":
              e = Kr;
              break;
            case "gotpointercapture":
            case "lostpointercapture":
            case "pointercancel":
            case "pointerdown":
            case "pointermove":
            case "pointerout":
            case "pointerover":
            case "pointerup":
              e = Ar;
              break;
            default:
              e = Vn;
          }
          return Yn((t = e.getPooled(o, t, n, r))), t;
        },
      };
    if (v) throw Error(i(101));
    (v = Array.prototype.slice.call(
      "ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(
        " "
      )
    )),
      y(),
      (f = Cn),
      (m = Dn),
      (g = Ln),
      T({
        SimpleEventPlugin: ao,
        EnterLeaveEventPlugin: Rr,
        ChangeEventPlugin: Mr,
        SelectEventPlugin: Gr,
        BeforeInputEventPlugin: sr,
      });
    var io = [],
      so = -1;
    function lo(e) {
      0 > so || ((e.current = io[so]), (io[so] = null), so--);
    }
    function co(e, t) {
      so++, (io[so] = e.current), (e.current = t);
    }
    var uo = {},
      ho = { current: uo },
      po = { current: !1 },
      fo = uo;
    function mo(e, t) {
      var n = e.type.contextTypes;
      if (!n) return uo;
      var r = e.stateNode;
      if (r && r.__reactInternalMemoizedUnmaskedChildContext === t)
        return r.__reactInternalMemoizedMaskedChildContext;
      var o,
        a = {};
      for (o in n) a[o] = t[o];
      return (
        r &&
          (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t),
          (e.__reactInternalMemoizedMaskedChildContext = a)),
        a
      );
    }
    function go(e) {
      return null != (e = e.childContextTypes);
    }
    function _o() {
      lo(po), lo(ho);
    }
    function vo(e, t, n) {
      if (ho.current !== uo) throw Error(i(168));
      co(ho, t), co(po, n);
    }
    function bo(e, t, n) {
      var r = e.stateNode;
      if (((e = t.childContextTypes), "function" != typeof r.getChildContext))
        return n;
      for (var a in (r = r.getChildContext()))
        if (!(a in e)) throw Error(i(108, ge(t) || "Unknown", a));
      return o({}, n, {}, r);
    }
    function yo(e) {
      return (
        (e =
          ((e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext) ||
          uo),
        (fo = ho.current),
        co(ho, e),
        co(po, po.current),
        !0
      );
    }
    function wo(e, t, n) {
      var r = e.stateNode;
      if (!r) throw Error(i(169));
      n
        ? ((e = bo(e, t, fo)),
          (r.__reactInternalMemoizedMergedChildContext = e),
          lo(po),
          lo(ho),
          co(ho, e))
        : lo(po),
        co(po, n);
    }
    var ko = a.unstable_runWithPriority,
      xo = a.unstable_scheduleCallback,
      Mo = a.unstable_cancelCallback,
      Eo = a.unstable_requestPaint,
      To = a.unstable_now,
      So = a.unstable_getCurrentPriorityLevel,
      Do = a.unstable_ImmediatePriority,
      Lo = a.unstable_UserBlockingPriority,
      Co = a.unstable_NormalPriority,
      Po = a.unstable_LowPriority,
      Oo = a.unstable_IdlePriority,
      No = {},
      Ao = a.unstable_shouldYield,
      Io = void 0 !== Eo ? Eo : function () {},
      Ro = null,
      Yo = null,
      jo = !1,
      Fo = To(),
      Ho =
        1e4 > Fo
          ? To
          : function () {
              return To() - Fo;
            };
    function zo() {
      switch (So()) {
        case Do:
          return 99;
        case Lo:
          return 98;
        case Co:
          return 97;
        case Po:
          return 96;
        case Oo:
          return 95;
        default:
          throw Error(i(332));
      }
    }
    function Bo(e) {
      switch (e) {
        case 99:
          return Do;
        case 98:
          return Lo;
        case 97:
          return Co;
        case 96:
          return Po;
        case 95:
          return Oo;
        default:
          throw Error(i(332));
      }
    }
    function Uo(e, t) {
      return (e = Bo(e)), ko(e, t);
    }
    function Vo(e, t, n) {
      return (e = Bo(e)), xo(e, t, n);
    }
    function Wo(e) {
      return null === Ro ? ((Ro = [e]), (Yo = xo(Do, Go))) : Ro.push(e), No;
    }
    function qo() {
      if (null !== Yo) {
        var e = Yo;
        (Yo = null), Mo(e);
      }
      Go();
    }
    function Go() {
      if (!jo && null !== Ro) {
        jo = !0;
        var e = 0;
        try {
          var t = Ro;
          Uo(99, function () {
            for (; e < t.length; e++) {
              var n = t[e];
              do {
                n = n(!0);
              } while (null !== n);
            }
          }),
            (Ro = null);
        } catch (t) {
          throw (null !== Ro && (Ro = Ro.slice(e + 1)), xo(Do, qo), t);
        } finally {
          jo = !1;
        }
      }
    }
    function Jo(e, t, n) {
      return (
        1073741821 - (1 + (((1073741821 - e + t / 10) / (n /= 10)) | 0)) * n
      );
    }
    function Ko(e, t) {
      if (e && e.defaultProps)
        for (var n in ((t = o({}, t)), (e = e.defaultProps)))
          void 0 === t[n] && (t[n] = e[n]);
      return t;
    }
    var Qo = { current: null },
      Xo = null,
      $o = null,
      Zo = null;
    function ea() {
      Zo = $o = Xo = null;
    }
    function ta(e) {
      var t = Qo.current;
      lo(Qo), (e.type._context._currentValue = t);
    }
    function na(e, t) {
      for (; null !== e; ) {
        var n = e.alternate;
        if (e.childExpirationTime < t)
          (e.childExpirationTime = t),
            null !== n &&
              n.childExpirationTime < t &&
              (n.childExpirationTime = t);
        else {
          if (!(null !== n && n.childExpirationTime < t)) break;
          n.childExpirationTime = t;
        }
        e = e.return;
      }
    }
    function ra(e, t) {
      (Xo = e),
        (Zo = $o = null),
        null !== (e = e.dependencies) &&
          null !== e.firstContext &&
          (e.expirationTime >= t && (Ci = !0), (e.firstContext = null));
    }
    function oa(e, t) {
      if (Zo !== e && !1 !== t && 0 !== t)
        if (
          (("number" == typeof t && 1073741823 !== t) ||
            ((Zo = e), (t = 1073741823)),
          (t = { context: e, observedBits: t, next: null }),
          null === $o)
        ) {
          if (null === Xo) throw Error(i(308));
          ($o = t),
            (Xo.dependencies = {
              expirationTime: 0,
              firstContext: t,
              responders: null,
            });
        } else $o = $o.next = t;
      return e._currentValue;
    }
    var aa = !1;
    function ia(e) {
      e.updateQueue = {
        baseState: e.memoizedState,
        baseQueue: null,
        shared: { pending: null },
        effects: null,
      };
    }
    function sa(e, t) {
      (e = e.updateQueue),
        t.updateQueue === e &&
          (t.updateQueue = {
            baseState: e.baseState,
            baseQueue: e.baseQueue,
            shared: e.shared,
            effects: e.effects,
          });
    }
    function la(e, t) {
      return ((e = {
        expirationTime: e,
        suspenseConfig: t,
        tag: 0,
        payload: null,
        callback: null,
        next: null,
      }).next = e);
    }
    function ca(e, t) {
      if (null !== (e = e.updateQueue)) {
        var n = (e = e.shared).pending;
        null === n ? (t.next = t) : ((t.next = n.next), (n.next = t)),
          (e.pending = t);
      }
    }
    function ua(e, t) {
      var n = e.alternate;
      null !== n && sa(n, e),
        null === (n = (e = e.updateQueue).baseQueue)
          ? ((e.baseQueue = t.next = t), (t.next = t))
          : ((t.next = n.next), (n.next = t));
    }
    function da(e, t, n, r) {
      var a = e.updateQueue;
      aa = !1;
      var i = a.baseQueue,
        s = a.shared.pending;
      if (null !== s) {
        if (null !== i) {
          var l = i.next;
          (i.next = s.next), (s.next = l);
        }
        (i = s),
          (a.shared.pending = null),
          null !== (l = e.alternate) &&
            null !== (l = l.updateQueue) &&
            (l.baseQueue = s);
      }
      if (null !== i) {
        l = i.next;
        var c = a.baseState,
          u = 0,
          d = null,
          h = null,
          p = null;
        if (null !== l)
          for (var f = l; ; ) {
            if ((s = f.expirationTime) < r) {
              var m = {
                expirationTime: f.expirationTime,
                suspenseConfig: f.suspenseConfig,
                tag: f.tag,
                payload: f.payload,
                callback: f.callback,
                next: null,
              };
              null === p ? ((h = p = m), (d = c)) : (p = p.next = m),
                s > u && (u = s);
            } else {
              null !== p &&
                (p = p.next = {
                  expirationTime: 1073741823,
                  suspenseConfig: f.suspenseConfig,
                  tag: f.tag,
                  payload: f.payload,
                  callback: f.callback,
                  next: null,
                }),
                al(s, f.suspenseConfig);
              e: {
                var g = e,
                  _ = f;
                switch (((s = t), (m = n), _.tag)) {
                  case 1:
                    if ("function" == typeof (g = _.payload)) {
                      c = g.call(m, c, s);
                      break e;
                    }
                    c = g;
                    break e;
                  case 3:
                    g.effectTag = (-4097 & g.effectTag) | 64;
                  case 0:
                    if (
                      null ==
                      (s =
                        "function" == typeof (g = _.payload)
                          ? g.call(m, c, s)
                          : g)
                    )
                      break e;
                    c = o({}, c, s);
                    break e;
                  case 2:
                    aa = !0;
                }
              }
              null !== f.callback &&
                ((e.effectTag |= 32),
                null === (s = a.effects) ? (a.effects = [f]) : s.push(f));
            }
            if (null === (f = f.next) || f === l) {
              if (null === (s = a.shared.pending)) break;
              (f = i.next = s.next),
                (s.next = l),
                (a.baseQueue = i = s),
                (a.shared.pending = null);
            }
          }
        null === p ? (d = c) : (p.next = h),
          (a.baseState = d),
          (a.baseQueue = p),
          il(u),
          (e.expirationTime = u),
          (e.memoizedState = c);
      }
    }
    function ha(e, t, n) {
      if (((e = t.effects), (t.effects = null), null !== e))
        for (t = 0; t < e.length; t++) {
          var r = e[t],
            o = r.callback;
          if (null !== o) {
            if (((r.callback = null), (r = o), (o = n), "function" != typeof r))
              throw Error(i(191, r));
            r.call(o);
          }
        }
    }
    var pa = Q.ReactCurrentBatchConfig,
      fa = new r.Component().refs;
    function ma(e, t, n, r) {
      (n = null == (n = n(r, (t = e.memoizedState))) ? t : o({}, t, n)),
        (e.memoizedState = n),
        0 === e.expirationTime && (e.updateQueue.baseState = n);
    }
    var ga = {
      isMounted: function (e) {
        return !!(e = e._reactInternalFiber) && Ze(e) === e;
      },
      enqueueSetState: function (e, t, n) {
        e = e._reactInternalFiber;
        var r = qs(),
          o = pa.suspense;
        ((o = la((r = Gs(r, e, o)), o)).payload = t),
          null != n && (o.callback = n),
          ca(e, o),
          Js(e, r);
      },
      enqueueReplaceState: function (e, t, n) {
        e = e._reactInternalFiber;
        var r = qs(),
          o = pa.suspense;
        ((o = la((r = Gs(r, e, o)), o)).tag = 1),
          (o.payload = t),
          null != n && (o.callback = n),
          ca(e, o),
          Js(e, r);
      },
      enqueueForceUpdate: function (e, t) {
        e = e._reactInternalFiber;
        var n = qs(),
          r = pa.suspense;
        ((r = la((n = Gs(n, e, r)), r)).tag = 2),
          null != t && (r.callback = t),
          ca(e, r),
          Js(e, n);
      },
    };
    function _a(e, t, n, r, o, a, i) {
      return "function" == typeof (e = e.stateNode).shouldComponentUpdate
        ? e.shouldComponentUpdate(r, a, i)
        : !t.prototype ||
            !t.prototype.isPureReactComponent ||
            !Fr(n, r) ||
            !Fr(o, a);
    }
    function va(e, t, n) {
      var r = !1,
        o = uo,
        a = t.contextType;
      return (
        "object" == typeof a && null !== a
          ? (a = oa(a))
          : ((o = go(t) ? fo : ho.current),
            (a = (r = null != (r = t.contextTypes)) ? mo(e, o) : uo)),
        (t = new t(n, a)),
        (e.memoizedState =
          null !== t.state && void 0 !== t.state ? t.state : null),
        (t.updater = ga),
        (e.stateNode = t),
        (t._reactInternalFiber = e),
        r &&
          (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = o),
          (e.__reactInternalMemoizedMaskedChildContext = a)),
        t
      );
    }
    function ba(e, t, n, r) {
      (e = t.state),
        "function" == typeof t.componentWillReceiveProps &&
          t.componentWillReceiveProps(n, r),
        "function" == typeof t.UNSAFE_componentWillReceiveProps &&
          t.UNSAFE_componentWillReceiveProps(n, r),
        t.state !== e && ga.enqueueReplaceState(t, t.state, null);
    }
    function ya(e, t, n, r) {
      var o = e.stateNode;
      (o.props = n), (o.state = e.memoizedState), (o.refs = fa), ia(e);
      var a = t.contextType;
      "object" == typeof a && null !== a
        ? (o.context = oa(a))
        : ((a = go(t) ? fo : ho.current), (o.context = mo(e, a))),
        da(e, n, o, r),
        (o.state = e.memoizedState),
        "function" == typeof (a = t.getDerivedStateFromProps) &&
          (ma(e, t, a, n), (o.state = e.memoizedState)),
        "function" == typeof t.getDerivedStateFromProps ||
          "function" == typeof o.getSnapshotBeforeUpdate ||
          ("function" != typeof o.UNSAFE_componentWillMount &&
            "function" != typeof o.componentWillMount) ||
          ((t = o.state),
          "function" == typeof o.componentWillMount && o.componentWillMount(),
          "function" == typeof o.UNSAFE_componentWillMount &&
            o.UNSAFE_componentWillMount(),
          t !== o.state && ga.enqueueReplaceState(o, o.state, null),
          da(e, n, o, r),
          (o.state = e.memoizedState)),
        "function" == typeof o.componentDidMount && (e.effectTag |= 4);
    }
    var wa = Array.isArray;
    function ka(e, t, n) {
      if (
        null !== (e = n.ref) &&
        "function" != typeof e &&
        "object" != typeof e
      ) {
        if (n._owner) {
          if ((n = n._owner)) {
            if (1 !== n.tag) throw Error(i(309));
            var r = n.stateNode;
          }
          if (!r) throw Error(i(147, e));
          var o = "" + e;
          return null !== t &&
            null !== t.ref &&
            "function" == typeof t.ref &&
            t.ref._stringRef === o
            ? t.ref
            : (((t = function (e) {
                var t = r.refs;
                t === fa && (t = r.refs = {}),
                  null === e ? delete t[o] : (t[o] = e);
              })._stringRef = o),
              t);
        }
        if ("string" != typeof e) throw Error(i(284));
        if (!n._owner) throw Error(i(290, e));
      }
      return e;
    }
    function xa(e, t) {
      if ("textarea" !== e.type)
        throw Error(
          i(
            31,
            "[object Object]" === Object.prototype.toString.call(t)
              ? "object with keys {" + Object.keys(t).join(", ") + "}"
              : t,
            ""
          )
        );
    }
    function Ma(e) {
      function t(t, n) {
        if (e) {
          var r = t.lastEffect;
          null !== r
            ? ((r.nextEffect = n), (t.lastEffect = n))
            : (t.firstEffect = t.lastEffect = n),
            (n.nextEffect = null),
            (n.effectTag = 8);
        }
      }
      function n(n, r) {
        if (!e) return null;
        for (; null !== r; ) t(n, r), (r = r.sibling);
        return null;
      }
      function r(e, t) {
        for (e = new Map(); null !== t; )
          null !== t.key ? e.set(t.key, t) : e.set(t.index, t), (t = t.sibling);
        return e;
      }
      function o(e, t) {
        return ((e = Tl(e, t)).index = 0), (e.sibling = null), e;
      }
      function a(t, n, r) {
        return (
          (t.index = r),
          e
            ? null !== (r = t.alternate)
              ? (r = r.index) < n
                ? ((t.effectTag = 2), n)
                : r
              : ((t.effectTag = 2), n)
            : n
        );
      }
      function s(t) {
        return e && null === t.alternate && (t.effectTag = 2), t;
      }
      function l(e, t, n, r) {
        return null === t || 6 !== t.tag
          ? (((t = Ll(n, e.mode, r)).return = e), t)
          : (((t = o(t, n)).return = e), t);
      }
      function c(e, t, n, r) {
        return null !== t && t.elementType === n.type
          ? (((r = o(t, n.props)).ref = ka(e, t, n)), (r.return = e), r)
          : (((r = Sl(n.type, n.key, n.props, null, e.mode, r)).ref = ka(
              e,
              t,
              n
            )),
            (r.return = e),
            r);
      }
      function u(e, t, n, r) {
        return null === t ||
          4 !== t.tag ||
          t.stateNode.containerInfo !== n.containerInfo ||
          t.stateNode.implementation !== n.implementation
          ? (((t = Cl(n, e.mode, r)).return = e), t)
          : (((t = o(t, n.children || [])).return = e), t);
      }
      function d(e, t, n, r, a) {
        return null === t || 7 !== t.tag
          ? (((t = Dl(n, e.mode, r, a)).return = e), t)
          : (((t = o(t, n)).return = e), t);
      }
      function h(e, t, n) {
        if ("string" == typeof t || "number" == typeof t)
          return ((t = Ll("" + t, e.mode, n)).return = e), t;
        if ("object" == typeof t && null !== t) {
          switch (t.$$typeof) {
            case ee:
              return (
                ((n = Sl(t.type, t.key, t.props, null, e.mode, n)).ref = ka(
                  e,
                  null,
                  t
                )),
                (n.return = e),
                n
              );
            case te:
              return ((t = Cl(t, e.mode, n)).return = e), t;
          }
          if (wa(t) || me(t))
            return ((t = Dl(t, e.mode, n, null)).return = e), t;
          xa(e, t);
        }
        return null;
      }
      function p(e, t, n, r) {
        var o = null !== t ? t.key : null;
        if ("string" == typeof n || "number" == typeof n)
          return null !== o ? null : l(e, t, "" + n, r);
        if ("object" == typeof n && null !== n) {
          switch (n.$$typeof) {
            case ee:
              return n.key === o
                ? n.type === ne
                  ? d(e, t, n.props.children, r, o)
                  : c(e, t, n, r)
                : null;
            case te:
              return n.key === o ? u(e, t, n, r) : null;
          }
          if (wa(n) || me(n)) return null !== o ? null : d(e, t, n, r, null);
          xa(e, n);
        }
        return null;
      }
      function f(e, t, n, r, o) {
        if ("string" == typeof r || "number" == typeof r)
          return l(t, (e = e.get(n) || null), "" + r, o);
        if ("object" == typeof r && null !== r) {
          switch (r.$$typeof) {
            case ee:
              return (
                (e = e.get(null === r.key ? n : r.key) || null),
                r.type === ne
                  ? d(t, e, r.props.children, o, r.key)
                  : c(t, e, r, o)
              );
            case te:
              return u(
                t,
                (e = e.get(null === r.key ? n : r.key) || null),
                r,
                o
              );
          }
          if (wa(r) || me(r)) return d(t, (e = e.get(n) || null), r, o, null);
          xa(t, r);
        }
        return null;
      }
      function m(o, i, s, l) {
        for (
          var c = null, u = null, d = i, m = (i = 0), g = null;
          null !== d && m < s.length;
          m++
        ) {
          d.index > m ? ((g = d), (d = null)) : (g = d.sibling);
          var _ = p(o, d, s[m], l);
          if (null === _) {
            null === d && (d = g);
            break;
          }
          e && d && null === _.alternate && t(o, d),
            (i = a(_, i, m)),
            null === u ? (c = _) : (u.sibling = _),
            (u = _),
            (d = g);
        }
        if (m === s.length) return n(o, d), c;
        if (null === d) {
          for (; m < s.length; m++)
            null !== (d = h(o, s[m], l)) &&
              ((i = a(d, i, m)),
              null === u ? (c = d) : (u.sibling = d),
              (u = d));
          return c;
        }
        for (d = r(o, d); m < s.length; m++)
          null !== (g = f(d, o, m, s[m], l)) &&
            (e && null !== g.alternate && d.delete(null === g.key ? m : g.key),
            (i = a(g, i, m)),
            null === u ? (c = g) : (u.sibling = g),
            (u = g));
        return (
          e &&
            d.forEach(function (e) {
              return t(o, e);
            }),
          c
        );
      }
      function g(o, s, l, c) {
        var u = me(l);
        if ("function" != typeof u) throw Error(i(150));
        if (null == (l = u.call(l))) throw Error(i(151));
        for (
          var d = (u = null), m = s, g = (s = 0), _ = null, v = l.next();
          null !== m && !v.done;
          g++, v = l.next()
        ) {
          m.index > g ? ((_ = m), (m = null)) : (_ = m.sibling);
          var b = p(o, m, v.value, c);
          if (null === b) {
            null === m && (m = _);
            break;
          }
          e && m && null === b.alternate && t(o, m),
            (s = a(b, s, g)),
            null === d ? (u = b) : (d.sibling = b),
            (d = b),
            (m = _);
        }
        if (v.done) return n(o, m), u;
        if (null === m) {
          for (; !v.done; g++, v = l.next())
            null !== (v = h(o, v.value, c)) &&
              ((s = a(v, s, g)),
              null === d ? (u = v) : (d.sibling = v),
              (d = v));
          return u;
        }
        for (m = r(o, m); !v.done; g++, v = l.next())
          null !== (v = f(m, o, g, v.value, c)) &&
            (e && null !== v.alternate && m.delete(null === v.key ? g : v.key),
            (s = a(v, s, g)),
            null === d ? (u = v) : (d.sibling = v),
            (d = v));
        return (
          e &&
            m.forEach(function (e) {
              return t(o, e);
            }),
          u
        );
      }
      return function (e, r, a, l) {
        var c =
          "object" == typeof a && null !== a && a.type === ne && null === a.key;
        c && (a = a.props.children);
        var u = "object" == typeof a && null !== a;
        if (u)
          switch (a.$$typeof) {
            case ee:
              e: {
                for (u = a.key, c = r; null !== c; ) {
                  if (c.key === u) {
                    switch (c.tag) {
                      case 7:
                        if (a.type === ne) {
                          n(e, c.sibling),
                            ((r = o(c, a.props.children)).return = e),
                            (e = r);
                          break e;
                        }
                        break;
                      default:
                        if (c.elementType === a.type) {
                          n(e, c.sibling),
                            ((r = o(c, a.props)).ref = ka(e, c, a)),
                            (r.return = e),
                            (e = r);
                          break e;
                        }
                    }
                    n(e, c);
                    break;
                  }
                  t(e, c), (c = c.sibling);
                }
                a.type === ne
                  ? (((r = Dl(a.props.children, e.mode, l, a.key)).return = e),
                    (e = r))
                  : (((l = Sl(
                      a.type,
                      a.key,
                      a.props,
                      null,
                      e.mode,
                      l
                    )).ref = ka(e, r, a)),
                    (l.return = e),
                    (e = l));
              }
              return s(e);
            case te:
              e: {
                for (c = a.key; null !== r; ) {
                  if (r.key === c) {
                    if (
                      4 === r.tag &&
                      r.stateNode.containerInfo === a.containerInfo &&
                      r.stateNode.implementation === a.implementation
                    ) {
                      n(e, r.sibling),
                        ((r = o(r, a.children || [])).return = e),
                        (e = r);
                      break e;
                    }
                    n(e, r);
                    break;
                  }
                  t(e, r), (r = r.sibling);
                }
                ((r = Cl(a, e.mode, l)).return = e), (e = r);
              }
              return s(e);
          }
        if ("string" == typeof a || "number" == typeof a)
          return (
            (a = "" + a),
            null !== r && 6 === r.tag
              ? (n(e, r.sibling), ((r = o(r, a)).return = e), (e = r))
              : (n(e, r), ((r = Ll(a, e.mode, l)).return = e), (e = r)),
            s(e)
          );
        if (wa(a)) return m(e, r, a, l);
        if (me(a)) return g(e, r, a, l);
        if ((u && xa(e, a), void 0 === a && !c))
          switch (e.tag) {
            case 1:
            case 0:
              throw (
                ((e = e.type),
                Error(i(152, e.displayName || e.name || "Component")))
              );
          }
        return n(e, r);
      };
    }
    var Ea = Ma(!0),
      Ta = Ma(!1),
      Sa = {},
      Da = { current: Sa },
      La = { current: Sa },
      Ca = { current: Sa };
    function Pa(e) {
      if (e === Sa) throw Error(i(174));
      return e;
    }
    function Oa(e, t) {
      switch ((co(Ca, t), co(La, e), co(Da, Sa), (e = t.nodeType))) {
        case 9:
        case 11:
          t = (t = t.documentElement) ? t.namespaceURI : Ye(null, "");
          break;
        default:
          t = Ye(
            (t = (e = 8 === e ? t.parentNode : t).namespaceURI || null),
            (e = e.tagName)
          );
      }
      lo(Da), co(Da, t);
    }
    function Na() {
      lo(Da), lo(La), lo(Ca);
    }
    function Aa(e) {
      Pa(Ca.current);
      var t = Pa(Da.current),
        n = Ye(t, e.type);
      t !== n && (co(La, e), co(Da, n));
    }
    function Ia(e) {
      La.current === e && (lo(Da), lo(La));
    }
    var Ra = { current: 0 };
    function Ya(e) {
      for (var t = e; null !== t; ) {
        if (13 === t.tag) {
          var n = t.memoizedState;
          if (
            null !== n &&
            (null === (n = n.dehydrated) || "$?" === n.data || "$!" === n.data)
          )
            return t;
        } else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) {
          if (0 != (64 & t.effectTag)) return t;
        } else if (null !== t.child) {
          (t.child.return = t), (t = t.child);
          continue;
        }
        if (t === e) break;
        for (; null === t.sibling; ) {
          if (null === t.return || t.return === e) return null;
          t = t.return;
        }
        (t.sibling.return = t.return), (t = t.sibling);
      }
      return null;
    }
    function ja(e, t) {
      return { responder: e, props: t };
    }
    var Fa = Q.ReactCurrentDispatcher,
      Ha = Q.ReactCurrentBatchConfig,
      za = 0,
      Ba = null,
      Ua = null,
      Va = null,
      Wa = !1;
    function qa() {
      throw Error(i(321));
    }
    function Ga(e, t) {
      if (null === t) return !1;
      for (var n = 0; n < t.length && n < e.length; n++)
        if (!Yr(e[n], t[n])) return !1;
      return !0;
    }
    function Ja(e, t, n, r, o, a) {
      if (
        ((za = a),
        (Ba = t),
        (t.memoizedState = null),
        (t.updateQueue = null),
        (t.expirationTime = 0),
        (Fa.current = null === e || null === e.memoizedState ? _i : vi),
        (e = n(r, o)),
        t.expirationTime === za)
      ) {
        a = 0;
        do {
          if (((t.expirationTime = 0), !(25 > a))) throw Error(i(301));
          (a += 1),
            (Va = Ua = null),
            (t.updateQueue = null),
            (Fa.current = bi),
            (e = n(r, o));
        } while (t.expirationTime === za);
      }
      if (
        ((Fa.current = gi),
        (t = null !== Ua && null !== Ua.next),
        (za = 0),
        (Va = Ua = Ba = null),
        (Wa = !1),
        t)
      )
        throw Error(i(300));
      return e;
    }
    function Ka() {
      var e = {
        memoizedState: null,
        baseState: null,
        baseQueue: null,
        queue: null,
        next: null,
      };
      return null === Va ? (Ba.memoizedState = Va = e) : (Va = Va.next = e), Va;
    }
    function Qa() {
      if (null === Ua) {
        var e = Ba.alternate;
        e = null !== e ? e.memoizedState : null;
      } else e = Ua.next;
      var t = null === Va ? Ba.memoizedState : Va.next;
      if (null !== t) (Va = t), (Ua = e);
      else {
        if (null === e) throw Error(i(310));
        (e = {
          memoizedState: (Ua = e).memoizedState,
          baseState: Ua.baseState,
          baseQueue: Ua.baseQueue,
          queue: Ua.queue,
          next: null,
        }),
          null === Va ? (Ba.memoizedState = Va = e) : (Va = Va.next = e);
      }
      return Va;
    }
    function Xa(e, t) {
      return "function" == typeof t ? t(e) : t;
    }
    function $a(e) {
      var t = Qa(),
        n = t.queue;
      if (null === n) throw Error(i(311));
      n.lastRenderedReducer = e;
      var r = Ua,
        o = r.baseQueue,
        a = n.pending;
      if (null !== a) {
        if (null !== o) {
          var s = o.next;
          (o.next = a.next), (a.next = s);
        }
        (r.baseQueue = o = a), (n.pending = null);
      }
      if (null !== o) {
        (o = o.next), (r = r.baseState);
        var l = (s = a = null),
          c = o;
        do {
          var u = c.expirationTime;
          if (u < za) {
            var d = {
              expirationTime: c.expirationTime,
              suspenseConfig: c.suspenseConfig,
              action: c.action,
              eagerReducer: c.eagerReducer,
              eagerState: c.eagerState,
              next: null,
            };
            null === l ? ((s = l = d), (a = r)) : (l = l.next = d),
              u > Ba.expirationTime && ((Ba.expirationTime = u), il(u));
          } else
            null !== l &&
              (l = l.next = {
                expirationTime: 1073741823,
                suspenseConfig: c.suspenseConfig,
                action: c.action,
                eagerReducer: c.eagerReducer,
                eagerState: c.eagerState,
                next: null,
              }),
              al(u, c.suspenseConfig),
              (r = c.eagerReducer === e ? c.eagerState : e(r, c.action));
          c = c.next;
        } while (null !== c && c !== o);
        null === l ? (a = r) : (l.next = s),
          Yr(r, t.memoizedState) || (Ci = !0),
          (t.memoizedState = r),
          (t.baseState = a),
          (t.baseQueue = l),
          (n.lastRenderedState = r);
      }
      return [t.memoizedState, n.dispatch];
    }
    function Za(e) {
      var t = Qa(),
        n = t.queue;
      if (null === n) throw Error(i(311));
      n.lastRenderedReducer = e;
      var r = n.dispatch,
        o = n.pending,
        a = t.memoizedState;
      if (null !== o) {
        n.pending = null;
        var s = (o = o.next);
        do {
          (a = e(a, s.action)), (s = s.next);
        } while (s !== o);
        Yr(a, t.memoizedState) || (Ci = !0),
          (t.memoizedState = a),
          null === t.baseQueue && (t.baseState = a),
          (n.lastRenderedState = a);
      }
      return [a, r];
    }
    function ei(e) {
      var t = Ka();
      return (
        "function" == typeof e && (e = e()),
        (t.memoizedState = t.baseState = e),
        (e = (e = t.queue = {
          pending: null,
          dispatch: null,
          lastRenderedReducer: Xa,
          lastRenderedState: e,
        }).dispatch = mi.bind(null, Ba, e)),
        [t.memoizedState, e]
      );
    }
    function ti(e, t, n, r) {
      return (
        (e = { tag: e, create: t, destroy: n, deps: r, next: null }),
        null === (t = Ba.updateQueue)
          ? ((t = { lastEffect: null }),
            (Ba.updateQueue = t),
            (t.lastEffect = e.next = e))
          : null === (n = t.lastEffect)
          ? (t.lastEffect = e.next = e)
          : ((r = n.next), (n.next = e), (e.next = r), (t.lastEffect = e)),
        e
      );
    }
    function ni() {
      return Qa().memoizedState;
    }
    function ri(e, t, n, r) {
      var o = Ka();
      (Ba.effectTag |= e),
        (o.memoizedState = ti(1 | t, n, void 0, void 0 === r ? null : r));
    }
    function oi(e, t, n, r) {
      var o = Qa();
      r = void 0 === r ? null : r;
      var a = void 0;
      if (null !== Ua) {
        var i = Ua.memoizedState;
        if (((a = i.destroy), null !== r && Ga(r, i.deps)))
          return void ti(t, n, a, r);
      }
      (Ba.effectTag |= e), (o.memoizedState = ti(1 | t, n, a, r));
    }
    function ai(e, t) {
      return ri(516, 4, e, t);
    }
    function ii(e, t) {
      return oi(516, 4, e, t);
    }
    function si(e, t) {
      return oi(4, 2, e, t);
    }
    function li(e, t) {
      return "function" == typeof t
        ? ((e = e()),
          t(e),
          function () {
            t(null);
          })
        : null != t
        ? ((e = e()),
          (t.current = e),
          function () {
            t.current = null;
          })
        : void 0;
    }
    function ci(e, t, n) {
      return (
        (n = null != n ? n.concat([e]) : null), oi(4, 2, li.bind(null, t, e), n)
      );
    }
    function ui() {}
    function di(e, t) {
      return (Ka().memoizedState = [e, void 0 === t ? null : t]), e;
    }
    function hi(e, t) {
      var n = Qa();
      t = void 0 === t ? null : t;
      var r = n.memoizedState;
      return null !== r && null !== t && Ga(t, r[1])
        ? r[0]
        : ((n.memoizedState = [e, t]), e);
    }
    function pi(e, t) {
      var n = Qa();
      t = void 0 === t ? null : t;
      var r = n.memoizedState;
      return null !== r && null !== t && Ga(t, r[1])
        ? r[0]
        : ((e = e()), (n.memoizedState = [e, t]), e);
    }
    function fi(e, t, n) {
      var r = zo();
      Uo(98 > r ? 98 : r, function () {
        e(!0);
      }),
        Uo(97 < r ? 97 : r, function () {
          var r = Ha.suspense;
          Ha.suspense = void 0 === t ? null : t;
          try {
            e(!1), n();
          } finally {
            Ha.suspense = r;
          }
        });
    }
    function mi(e, t, n) {
      var r = qs(),
        o = pa.suspense;
      o = {
        expirationTime: (r = Gs(r, e, o)),
        suspenseConfig: o,
        action: n,
        eagerReducer: null,
        eagerState: null,
        next: null,
      };
      var a = t.pending;
      if (
        (null === a ? (o.next = o) : ((o.next = a.next), (a.next = o)),
        (t.pending = o),
        (a = e.alternate),
        e === Ba || (null !== a && a === Ba))
      )
        (Wa = !0), (o.expirationTime = za), (Ba.expirationTime = za);
      else {
        if (
          0 === e.expirationTime &&
          (null === a || 0 === a.expirationTime) &&
          null !== (a = t.lastRenderedReducer)
        )
          try {
            var i = t.lastRenderedState,
              s = a(i, n);
            if (((o.eagerReducer = a), (o.eagerState = s), Yr(s, i))) return;
          } catch (e) {}
        Js(e, r);
      }
    }
    var gi = {
        readContext: oa,
        useCallback: qa,
        useContext: qa,
        useEffect: qa,
        useImperativeHandle: qa,
        useLayoutEffect: qa,
        useMemo: qa,
        useReducer: qa,
        useRef: qa,
        useState: qa,
        useDebugValue: qa,
        useResponder: qa,
        useDeferredValue: qa,
        useTransition: qa,
      },
      _i = {
        readContext: oa,
        useCallback: di,
        useContext: oa,
        useEffect: ai,
        useImperativeHandle: function (e, t, n) {
          return (
            (n = null != n ? n.concat([e]) : null),
            ri(4, 2, li.bind(null, t, e), n)
          );
        },
        useLayoutEffect: function (e, t) {
          return ri(4, 2, e, t);
        },
        useMemo: function (e, t) {
          var n = Ka();
          return (
            (t = void 0 === t ? null : t),
            (e = e()),
            (n.memoizedState = [e, t]),
            e
          );
        },
        useReducer: function (e, t, n) {
          var r = Ka();
          return (
            (t = void 0 !== n ? n(t) : t),
            (r.memoizedState = r.baseState = t),
            (e = (e = r.queue = {
              pending: null,
              dispatch: null,
              lastRenderedReducer: e,
              lastRenderedState: t,
            }).dispatch = mi.bind(null, Ba, e)),
            [r.memoizedState, e]
          );
        },
        useRef: function (e) {
          return (e = { current: e }), (Ka().memoizedState = e);
        },
        useState: ei,
        useDebugValue: ui,
        useResponder: ja,
        useDeferredValue: function (e, t) {
          var n = ei(e),
            r = n[0],
            o = n[1];
          return (
            ai(
              function () {
                var n = Ha.suspense;
                Ha.suspense = void 0 === t ? null : t;
                try {
                  o(e);
                } finally {
                  Ha.suspense = n;
                }
              },
              [e, t]
            ),
            r
          );
        },
        useTransition: function (e) {
          var t = ei(!1),
            n = t[0];
          return (t = t[1]), [di(fi.bind(null, t, e), [t, e]), n];
        },
      },
      vi = {
        readContext: oa,
        useCallback: hi,
        useContext: oa,
        useEffect: ii,
        useImperativeHandle: ci,
        useLayoutEffect: si,
        useMemo: pi,
        useReducer: $a,
        useRef: ni,
        useState: function () {
          return $a(Xa);
        },
        useDebugValue: ui,
        useResponder: ja,
        useDeferredValue: function (e, t) {
          var n = $a(Xa),
            r = n[0],
            o = n[1];
          return (
            ii(
              function () {
                var n = Ha.suspense;
                Ha.suspense = void 0 === t ? null : t;
                try {
                  o(e);
                } finally {
                  Ha.suspense = n;
                }
              },
              [e, t]
            ),
            r
          );
        },
        useTransition: function (e) {
          var t = $a(Xa),
            n = t[0];
          return (t = t[1]), [hi(fi.bind(null, t, e), [t, e]), n];
        },
      },
      bi = {
        readContext: oa,
        useCallback: hi,
        useContext: oa,
        useEffect: ii,
        useImperativeHandle: ci,
        useLayoutEffect: si,
        useMemo: pi,
        useReducer: Za,
        useRef: ni,
        useState: function () {
          return Za(Xa);
        },
        useDebugValue: ui,
        useResponder: ja,
        useDeferredValue: function (e, t) {
          var n = Za(Xa),
            r = n[0],
            o = n[1];
          return (
            ii(
              function () {
                var n = Ha.suspense;
                Ha.suspense = void 0 === t ? null : t;
                try {
                  o(e);
                } finally {
                  Ha.suspense = n;
                }
              },
              [e, t]
            ),
            r
          );
        },
        useTransition: function (e) {
          var t = Za(Xa),
            n = t[0];
          return (t = t[1]), [hi(fi.bind(null, t, e), [t, e]), n];
        },
      },
      yi = null,
      wi = null,
      ki = !1;
    function xi(e, t) {
      var n = Ml(5, null, null, 0);
      (n.elementType = "DELETED"),
        (n.type = "DELETED"),
        (n.stateNode = t),
        (n.return = e),
        (n.effectTag = 8),
        null !== e.lastEffect
          ? ((e.lastEffect.nextEffect = n), (e.lastEffect = n))
          : (e.firstEffect = e.lastEffect = n);
    }
    function Mi(e, t) {
      switch (e.tag) {
        case 5:
          var n = e.type;
          return (
            null !==
              (t =
                1 !== t.nodeType || n.toLowerCase() !== t.nodeName.toLowerCase()
                  ? null
                  : t) && ((e.stateNode = t), !0)
          );
        case 6:
          return (
            null !==
              (t = "" === e.pendingProps || 3 !== t.nodeType ? null : t) &&
            ((e.stateNode = t), !0)
          );
        case 13:
        default:
          return !1;
      }
    }
    function Ei(e) {
      if (ki) {
        var t = wi;
        if (t) {
          var n = t;
          if (!Mi(e, t)) {
            if (!(t = wn(n.nextSibling)) || !Mi(e, t))
              return (
                (e.effectTag = (-1025 & e.effectTag) | 2),
                (ki = !1),
                void (yi = e)
              );
            xi(yi, n);
          }
          (yi = e), (wi = wn(t.firstChild));
        } else (e.effectTag = (-1025 & e.effectTag) | 2), (ki = !1), (yi = e);
      }
    }
    function Ti(e) {
      for (
        e = e.return;
        null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag;

      )
        e = e.return;
      yi = e;
    }
    function Si(e) {
      if (e !== yi) return !1;
      if (!ki) return Ti(e), (ki = !0), !1;
      var t = e.type;
      if (
        5 !== e.tag ||
        ("head" !== t && "body" !== t && !vn(t, e.memoizedProps))
      )
        for (t = wi; t; ) xi(e, t), (t = wn(t.nextSibling));
      if ((Ti(e), 13 === e.tag)) {
        if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null))
          throw Error(i(317));
        e: {
          for (e = e.nextSibling, t = 0; e; ) {
            if (8 === e.nodeType) {
              var n = e.data;
              if ("/$" === n) {
                if (0 === t) {
                  wi = wn(e.nextSibling);
                  break e;
                }
                t--;
              } else ("$" !== n && "$!" !== n && "$?" !== n) || t++;
            }
            e = e.nextSibling;
          }
          wi = null;
        }
      } else wi = yi ? wn(e.stateNode.nextSibling) : null;
      return !0;
    }
    function Di() {
      (wi = yi = null), (ki = !1);
    }
    var Li = Q.ReactCurrentOwner,
      Ci = !1;
    function Pi(e, t, n, r) {
      t.child = null === e ? Ta(t, null, n, r) : Ea(t, e.child, n, r);
    }
    function Oi(e, t, n, r, o) {
      n = n.render;
      var a = t.ref;
      return (
        ra(t, o),
        (r = Ja(e, t, n, r, a, o)),
        null === e || Ci
          ? ((t.effectTag |= 1), Pi(e, t, r, o), t.child)
          : ((t.updateQueue = e.updateQueue),
            (t.effectTag &= -517),
            e.expirationTime <= o && (e.expirationTime = 0),
            Ji(e, t, o))
      );
    }
    function Ni(e, t, n, r, o, a) {
      if (null === e) {
        var i = n.type;
        return "function" != typeof i ||
          El(i) ||
          void 0 !== i.defaultProps ||
          null !== n.compare ||
          void 0 !== n.defaultProps
          ? (((e = Sl(n.type, null, r, null, t.mode, a)).ref = t.ref),
            (e.return = t),
            (t.child = e))
          : ((t.tag = 15), (t.type = i), Ai(e, t, i, r, o, a));
      }
      return (
        (i = e.child),
        o < a &&
        ((o = i.memoizedProps),
        (n = null !== (n = n.compare) ? n : Fr)(o, r) && e.ref === t.ref)
          ? Ji(e, t, a)
          : ((t.effectTag |= 1),
            ((e = Tl(i, r)).ref = t.ref),
            (e.return = t),
            (t.child = e))
      );
    }
    function Ai(e, t, n, r, o, a) {
      return null !== e &&
        Fr(e.memoizedProps, r) &&
        e.ref === t.ref &&
        ((Ci = !1), o < a)
        ? ((t.expirationTime = e.expirationTime), Ji(e, t, a))
        : Ri(e, t, n, r, a);
    }
    function Ii(e, t) {
      var n = t.ref;
      ((null === e && null !== n) || (null !== e && e.ref !== n)) &&
        (t.effectTag |= 128);
    }
    function Ri(e, t, n, r, o) {
      var a = go(n) ? fo : ho.current;
      return (
        (a = mo(t, a)),
        ra(t, o),
        (n = Ja(e, t, n, r, a, o)),
        null === e || Ci
          ? ((t.effectTag |= 1), Pi(e, t, n, o), t.child)
          : ((t.updateQueue = e.updateQueue),
            (t.effectTag &= -517),
            e.expirationTime <= o && (e.expirationTime = 0),
            Ji(e, t, o))
      );
    }
    function Yi(e, t, n, r, o) {
      if (go(n)) {
        var a = !0;
        yo(t);
      } else a = !1;
      if ((ra(t, o), null === t.stateNode))
        null !== e &&
          ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)),
          va(t, n, r),
          ya(t, n, r, o),
          (r = !0);
      else if (null === e) {
        var i = t.stateNode,
          s = t.memoizedProps;
        i.props = s;
        var l = i.context,
          c = n.contextType;
        "object" == typeof c && null !== c
          ? (c = oa(c))
          : (c = mo(t, (c = go(n) ? fo : ho.current)));
        var u = n.getDerivedStateFromProps,
          d =
            "function" == typeof u ||
            "function" == typeof i.getSnapshotBeforeUpdate;
        d ||
          ("function" != typeof i.UNSAFE_componentWillReceiveProps &&
            "function" != typeof i.componentWillReceiveProps) ||
          ((s !== r || l !== c) && ba(t, i, r, c)),
          (aa = !1);
        var h = t.memoizedState;
        (i.state = h),
          da(t, r, i, o),
          (l = t.memoizedState),
          s !== r || h !== l || po.current || aa
            ? ("function" == typeof u &&
                (ma(t, n, u, r), (l = t.memoizedState)),
              (s = aa || _a(t, n, s, r, h, l, c))
                ? (d ||
                    ("function" != typeof i.UNSAFE_componentWillMount &&
                      "function" != typeof i.componentWillMount) ||
                    ("function" == typeof i.componentWillMount &&
                      i.componentWillMount(),
                    "function" == typeof i.UNSAFE_componentWillMount &&
                      i.UNSAFE_componentWillMount()),
                  "function" == typeof i.componentDidMount &&
                    (t.effectTag |= 4))
                : ("function" == typeof i.componentDidMount &&
                    (t.effectTag |= 4),
                  (t.memoizedProps = r),
                  (t.memoizedState = l)),
              (i.props = r),
              (i.state = l),
              (i.context = c),
              (r = s))
            : ("function" == typeof i.componentDidMount && (t.effectTag |= 4),
              (r = !1));
      } else
        (i = t.stateNode),
          sa(e, t),
          (s = t.memoizedProps),
          (i.props = t.type === t.elementType ? s : Ko(t.type, s)),
          (l = i.context),
          "object" == typeof (c = n.contextType) && null !== c
            ? (c = oa(c))
            : (c = mo(t, (c = go(n) ? fo : ho.current))),
          (d =
            "function" == typeof (u = n.getDerivedStateFromProps) ||
            "function" == typeof i.getSnapshotBeforeUpdate) ||
            ("function" != typeof i.UNSAFE_componentWillReceiveProps &&
              "function" != typeof i.componentWillReceiveProps) ||
            ((s !== r || l !== c) && ba(t, i, r, c)),
          (aa = !1),
          (l = t.memoizedState),
          (i.state = l),
          da(t, r, i, o),
          (h = t.memoizedState),
          s !== r || l !== h || po.current || aa
            ? ("function" == typeof u &&
                (ma(t, n, u, r), (h = t.memoizedState)),
              (u = aa || _a(t, n, s, r, l, h, c))
                ? (d ||
                    ("function" != typeof i.UNSAFE_componentWillUpdate &&
                      "function" != typeof i.componentWillUpdate) ||
                    ("function" == typeof i.componentWillUpdate &&
                      i.componentWillUpdate(r, h, c),
                    "function" == typeof i.UNSAFE_componentWillUpdate &&
                      i.UNSAFE_componentWillUpdate(r, h, c)),
                  "function" == typeof i.componentDidUpdate &&
                    (t.effectTag |= 4),
                  "function" == typeof i.getSnapshotBeforeUpdate &&
                    (t.effectTag |= 256))
                : ("function" != typeof i.componentDidUpdate ||
                    (s === e.memoizedProps && l === e.memoizedState) ||
                    (t.effectTag |= 4),
                  "function" != typeof i.getSnapshotBeforeUpdate ||
                    (s === e.memoizedProps && l === e.memoizedState) ||
                    (t.effectTag |= 256),
                  (t.memoizedProps = r),
                  (t.memoizedState = h)),
              (i.props = r),
              (i.state = h),
              (i.context = c),
              (r = u))
            : ("function" != typeof i.componentDidUpdate ||
                (s === e.memoizedProps && l === e.memoizedState) ||
                (t.effectTag |= 4),
              "function" != typeof i.getSnapshotBeforeUpdate ||
                (s === e.memoizedProps && l === e.memoizedState) ||
                (t.effectTag |= 256),
              (r = !1));
      return ji(e, t, n, r, a, o);
    }
    function ji(e, t, n, r, o, a) {
      Ii(e, t);
      var i = 0 != (64 & t.effectTag);
      if (!r && !i) return o && wo(t, n, !1), Ji(e, t, a);
      (r = t.stateNode), (Li.current = t);
      var s =
        i && "function" != typeof n.getDerivedStateFromError
          ? null
          : r.render();
      return (
        (t.effectTag |= 1),
        null !== e && i
          ? ((t.child = Ea(t, e.child, null, a)), (t.child = Ea(t, null, s, a)))
          : Pi(e, t, s, a),
        (t.memoizedState = r.state),
        o && wo(t, n, !0),
        t.child
      );
    }
    function Fi(e) {
      var t = e.stateNode;
      t.pendingContext
        ? vo(0, t.pendingContext, t.pendingContext !== t.context)
        : t.context && vo(0, t.context, !1),
        Oa(e, t.containerInfo);
    }
    var Hi,
      zi,
      Bi,
      Ui = { dehydrated: null, retryTime: 0 };
    function Vi(e, t, n) {
      var r,
        o = t.mode,
        a = t.pendingProps,
        i = Ra.current,
        s = !1;
      if (
        ((r = 0 != (64 & t.effectTag)) ||
          (r = 0 != (2 & i) && (null === e || null !== e.memoizedState)),
        r
          ? ((s = !0), (t.effectTag &= -65))
          : (null !== e && null === e.memoizedState) ||
            void 0 === a.fallback ||
            !0 === a.unstable_avoidThisFallback ||
            (i |= 1),
        co(Ra, 1 & i),
        null === e)
      ) {
        if ((void 0 !== a.fallback && Ei(t), s)) {
          if (
            ((s = a.fallback),
            ((a = Dl(null, o, 0, null)).return = t),
            0 == (2 & t.mode))
          )
            for (
              e = null !== t.memoizedState ? t.child.child : t.child,
                a.child = e;
              null !== e;

            )
              (e.return = a), (e = e.sibling);
          return (
            ((n = Dl(s, o, n, null)).return = t),
            (a.sibling = n),
            (t.memoizedState = Ui),
            (t.child = a),
            n
          );
        }
        return (
          (o = a.children),
          (t.memoizedState = null),
          (t.child = Ta(t, null, o, n))
        );
      }
      if (null !== e.memoizedState) {
        if (((o = (e = e.child).sibling), s)) {
          if (
            ((a = a.fallback),
            ((n = Tl(e, e.pendingProps)).return = t),
            0 == (2 & t.mode) &&
              (s = null !== t.memoizedState ? t.child.child : t.child) !==
                e.child)
          )
            for (n.child = s; null !== s; ) (s.return = n), (s = s.sibling);
          return (
            ((o = Tl(o, a)).return = t),
            (n.sibling = o),
            (n.childExpirationTime = 0),
            (t.memoizedState = Ui),
            (t.child = n),
            o
          );
        }
        return (
          (n = Ea(t, e.child, a.children, n)),
          (t.memoizedState = null),
          (t.child = n)
        );
      }
      if (((e = e.child), s)) {
        if (
          ((s = a.fallback),
          ((a = Dl(null, o, 0, null)).return = t),
          (a.child = e),
          null !== e && (e.return = a),
          0 == (2 & t.mode))
        )
          for (
            e = null !== t.memoizedState ? t.child.child : t.child, a.child = e;
            null !== e;

          )
            (e.return = a), (e = e.sibling);
        return (
          ((n = Dl(s, o, n, null)).return = t),
          (a.sibling = n),
          (n.effectTag |= 2),
          (a.childExpirationTime = 0),
          (t.memoizedState = Ui),
          (t.child = a),
          n
        );
      }
      return (t.memoizedState = null), (t.child = Ea(t, e, a.children, n));
    }
    function Wi(e, t) {
      e.expirationTime < t && (e.expirationTime = t);
      var n = e.alternate;
      null !== n && n.expirationTime < t && (n.expirationTime = t),
        na(e.return, t);
    }
    function qi(e, t, n, r, o, a) {
      var i = e.memoizedState;
      null === i
        ? (e.memoizedState = {
            isBackwards: t,
            rendering: null,
            renderingStartTime: 0,
            last: r,
            tail: n,
            tailExpiration: 0,
            tailMode: o,
            lastEffect: a,
          })
        : ((i.isBackwards = t),
          (i.rendering = null),
          (i.renderingStartTime = 0),
          (i.last = r),
          (i.tail = n),
          (i.tailExpiration = 0),
          (i.tailMode = o),
          (i.lastEffect = a));
    }
    function Gi(e, t, n) {
      var r = t.pendingProps,
        o = r.revealOrder,
        a = r.tail;
      if ((Pi(e, t, r.children, n), 0 != (2 & (r = Ra.current))))
        (r = (1 & r) | 2), (t.effectTag |= 64);
      else {
        if (null !== e && 0 != (64 & e.effectTag))
          e: for (e = t.child; null !== e; ) {
            if (13 === e.tag) null !== e.memoizedState && Wi(e, n);
            else if (19 === e.tag) Wi(e, n);
            else if (null !== e.child) {
              (e.child.return = e), (e = e.child);
              continue;
            }
            if (e === t) break e;
            for (; null === e.sibling; ) {
              if (null === e.return || e.return === t) break e;
              e = e.return;
            }
            (e.sibling.return = e.return), (e = e.sibling);
          }
        r &= 1;
      }
      if ((co(Ra, r), 0 == (2 & t.mode))) t.memoizedState = null;
      else
        switch (o) {
          case "forwards":
            for (n = t.child, o = null; null !== n; )
              null !== (e = n.alternate) && null === Ya(e) && (o = n),
                (n = n.sibling);
            null === (n = o)
              ? ((o = t.child), (t.child = null))
              : ((o = n.sibling), (n.sibling = null)),
              qi(t, !1, o, n, a, t.lastEffect);
            break;
          case "backwards":
            for (n = null, o = t.child, t.child = null; null !== o; ) {
              if (null !== (e = o.alternate) && null === Ya(e)) {
                t.child = o;
                break;
              }
              (e = o.sibling), (o.sibling = n), (n = o), (o = e);
            }
            qi(t, !0, n, null, a, t.lastEffect);
            break;
          case "together":
            qi(t, !1, null, null, void 0, t.lastEffect);
            break;
          default:
            t.memoizedState = null;
        }
      return t.child;
    }
    function Ji(e, t, n) {
      null !== e && (t.dependencies = e.dependencies);
      var r = t.expirationTime;
      if ((0 !== r && il(r), t.childExpirationTime < n)) return null;
      if (null !== e && t.child !== e.child) throw Error(i(153));
      if (null !== t.child) {
        for (
          n = Tl((e = t.child), e.pendingProps), t.child = n, n.return = t;
          null !== e.sibling;

        )
          (e = e.sibling), ((n = n.sibling = Tl(e, e.pendingProps)).return = t);
        n.sibling = null;
      }
      return t.child;
    }
    function Ki(e, t) {
      switch (e.tailMode) {
        case "hidden":
          t = e.tail;
          for (var n = null; null !== t; )
            null !== t.alternate && (n = t), (t = t.sibling);
          null === n ? (e.tail = null) : (n.sibling = null);
          break;
        case "collapsed":
          n = e.tail;
          for (var r = null; null !== n; )
            null !== n.alternate && (r = n), (n = n.sibling);
          null === r
            ? t || null === e.tail
              ? (e.tail = null)
              : (e.tail.sibling = null)
            : (r.sibling = null);
      }
    }
    function Qi(e, t, n) {
      var r = t.pendingProps;
      switch (t.tag) {
        case 2:
        case 16:
        case 15:
        case 0:
        case 11:
        case 7:
        case 8:
        case 12:
        case 9:
        case 14:
          return null;
        case 1:
          return go(t.type) && _o(), null;
        case 3:
          return (
            Na(),
            lo(po),
            lo(ho),
            (n = t.stateNode).pendingContext &&
              ((n.context = n.pendingContext), (n.pendingContext = null)),
            (null !== e && null !== e.child) || !Si(t) || (t.effectTag |= 4),
            null
          );
        case 5:
          Ia(t), (n = Pa(Ca.current));
          var a = t.type;
          if (null !== e && null != t.stateNode)
            zi(e, t, a, r, n), e.ref !== t.ref && (t.effectTag |= 128);
          else {
            if (!r) {
              if (null === t.stateNode) throw Error(i(166));
              return null;
            }
            if (((e = Pa(Da.current)), Si(t))) {
              (r = t.stateNode), (a = t.type);
              var s = t.memoizedProps;
              switch (((r[Mn] = t), (r[En] = s), a)) {
                case "iframe":
                case "object":
                case "embed":
                  Gt("load", r);
                  break;
                case "video":
                case "audio":
                  for (e = 0; e < Qe.length; e++) Gt(Qe[e], r);
                  break;
                case "source":
                  Gt("error", r);
                  break;
                case "img":
                case "image":
                case "link":
                  Gt("error", r), Gt("load", r);
                  break;
                case "form":
                  Gt("reset", r), Gt("submit", r);
                  break;
                case "details":
                  Gt("toggle", r);
                  break;
                case "input":
                  xe(r, s), Gt("invalid", r), ln(n, "onChange");
                  break;
                case "select":
                  (r._wrapperState = { wasMultiple: !!s.multiple }),
                    Gt("invalid", r),
                    ln(n, "onChange");
                  break;
                case "textarea":
                  Pe(r, s), Gt("invalid", r), ln(n, "onChange");
              }
              for (var l in (on(a, s), (e = null), s))
                if (s.hasOwnProperty(l)) {
                  var c = s[l];
                  "children" === l
                    ? "string" == typeof c
                      ? r.textContent !== c && (e = ["children", c])
                      : "number" == typeof c &&
                        r.textContent !== "" + c &&
                        (e = ["children", "" + c])
                    : M.hasOwnProperty(l) && null != c && ln(n, l);
                }
              switch (a) {
                case "input":
                  ye(r), Te(r, s, !0);
                  break;
                case "textarea":
                  ye(r), Ne(r);
                  break;
                case "select":
                case "option":
                  break;
                default:
                  "function" == typeof s.onClick && (r.onclick = cn);
              }
              (n = e), (t.updateQueue = n), null !== n && (t.effectTag |= 4);
            } else {
              switch (
                ((l = 9 === n.nodeType ? n : n.ownerDocument),
                e === sn && (e = Re(a)),
                e === sn
                  ? "script" === a
                    ? (((e = l.createElement("div")).innerHTML =
                        "<script></script>"),
                      (e = e.removeChild(e.firstChild)))
                    : "string" == typeof r.is
                    ? (e = l.createElement(a, { is: r.is }))
                    : ((e = l.createElement(a)),
                      "select" === a &&
                        ((l = e),
                        r.multiple
                          ? (l.multiple = !0)
                          : r.size && (l.size = r.size)))
                  : (e = l.createElementNS(e, a)),
                (e[Mn] = t),
                (e[En] = r),
                Hi(e, t),
                (t.stateNode = e),
                (l = an(a, r)),
                a)
              ) {
                case "iframe":
                case "object":
                case "embed":
                  Gt("load", e), (c = r);
                  break;
                case "video":
                case "audio":
                  for (c = 0; c < Qe.length; c++) Gt(Qe[c], e);
                  c = r;
                  break;
                case "source":
                  Gt("error", e), (c = r);
                  break;
                case "img":
                case "image":
                case "link":
                  Gt("error", e), Gt("load", e), (c = r);
                  break;
                case "form":
                  Gt("reset", e), Gt("submit", e), (c = r);
                  break;
                case "details":
                  Gt("toggle", e), (c = r);
                  break;
                case "input":
                  xe(e, r), (c = ke(e, r)), Gt("invalid", e), ln(n, "onChange");
                  break;
                case "option":
                  c = De(e, r);
                  break;
                case "select":
                  (e._wrapperState = { wasMultiple: !!r.multiple }),
                    (c = o({}, r, { value: void 0 })),
                    Gt("invalid", e),
                    ln(n, "onChange");
                  break;
                case "textarea":
                  Pe(e, r), (c = Ce(e, r)), Gt("invalid", e), ln(n, "onChange");
                  break;
                default:
                  c = r;
              }
              on(a, c);
              var u = c;
              for (s in u)
                if (u.hasOwnProperty(s)) {
                  var d = u[s];
                  "style" === s
                    ? nn(e, d)
                    : "dangerouslySetInnerHTML" === s
                    ? null != (d = d ? d.__html : void 0) && Fe(e, d)
                    : "children" === s
                    ? "string" == typeof d
                      ? ("textarea" !== a || "" !== d) && He(e, d)
                      : "number" == typeof d && He(e, "" + d)
                    : "suppressContentEditableWarning" !== s &&
                      "suppressHydrationWarning" !== s &&
                      "autoFocus" !== s &&
                      (M.hasOwnProperty(s)
                        ? null != d && ln(n, s)
                        : null != d && X(e, s, d, l));
                }
              switch (a) {
                case "input":
                  ye(e), Te(e, r, !1);
                  break;
                case "textarea":
                  ye(e), Ne(e);
                  break;
                case "option":
                  null != r.value && e.setAttribute("value", "" + ve(r.value));
                  break;
                case "select":
                  (e.multiple = !!r.multiple),
                    null != (n = r.value)
                      ? Le(e, !!r.multiple, n, !1)
                      : null != r.defaultValue &&
                        Le(e, !!r.multiple, r.defaultValue, !0);
                  break;
                default:
                  "function" == typeof c.onClick && (e.onclick = cn);
              }
              _n(a, r) && (t.effectTag |= 4);
            }
            null !== t.ref && (t.effectTag |= 128);
          }
          return null;
        case 6:
          if (e && null != t.stateNode) Bi(0, t, e.memoizedProps, r);
          else {
            if ("string" != typeof r && null === t.stateNode)
              throw Error(i(166));
            (n = Pa(Ca.current)),
              Pa(Da.current),
              Si(t)
                ? ((n = t.stateNode),
                  (r = t.memoizedProps),
                  (n[Mn] = t),
                  n.nodeValue !== r && (t.effectTag |= 4))
                : (((n = (9 === n.nodeType
                    ? n
                    : n.ownerDocument
                  ).createTextNode(r))[Mn] = t),
                  (t.stateNode = n));
          }
          return null;
        case 13:
          return (
            lo(Ra),
            (r = t.memoizedState),
            0 != (64 & t.effectTag)
              ? ((t.expirationTime = n), t)
              : ((n = null !== r),
                (r = !1),
                null === e
                  ? void 0 !== t.memoizedProps.fallback && Si(t)
                  : ((r = null !== (a = e.memoizedState)),
                    n ||
                      null === a ||
                      (null !== (a = e.child.sibling) &&
                        (null !== (s = t.firstEffect)
                          ? ((t.firstEffect = a), (a.nextEffect = s))
                          : ((t.firstEffect = t.lastEffect = a),
                            (a.nextEffect = null)),
                        (a.effectTag = 8)))),
                n &&
                  !r &&
                  0 != (2 & t.mode) &&
                  ((null === e &&
                    !0 !== t.memoizedProps.unstable_avoidThisFallback) ||
                  0 != (1 & Ra.current)
                    ? Ss === ys && (Ss = ws)
                    : ((Ss !== ys && Ss !== ws) || (Ss = ks),
                      0 !== Os && null !== Ms && (Nl(Ms, Ts), Al(Ms, Os)))),
                (n || r) && (t.effectTag |= 4),
                null)
          );
        case 4:
          return Na(), null;
        case 10:
          return ta(t), null;
        case 17:
          return go(t.type) && _o(), null;
        case 19:
          if ((lo(Ra), null === (r = t.memoizedState))) return null;
          if (((a = 0 != (64 & t.effectTag)), null === (s = r.rendering))) {
            if (a) Ki(r, !1);
            else if (Ss !== ys || (null !== e && 0 != (64 & e.effectTag)))
              for (s = t.child; null !== s; ) {
                if (null !== (e = Ya(s))) {
                  for (
                    t.effectTag |= 64,
                      Ki(r, !1),
                      null !== (a = e.updateQueue) &&
                        ((t.updateQueue = a), (t.effectTag |= 4)),
                      null === r.lastEffect && (t.firstEffect = null),
                      t.lastEffect = r.lastEffect,
                      r = t.child;
                    null !== r;

                  )
                    (s = n),
                      ((a = r).effectTag &= 2),
                      (a.nextEffect = null),
                      (a.firstEffect = null),
                      (a.lastEffect = null),
                      null === (e = a.alternate)
                        ? ((a.childExpirationTime = 0),
                          (a.expirationTime = s),
                          (a.child = null),
                          (a.memoizedProps = null),
                          (a.memoizedState = null),
                          (a.updateQueue = null),
                          (a.dependencies = null))
                        : ((a.childExpirationTime = e.childExpirationTime),
                          (a.expirationTime = e.expirationTime),
                          (a.child = e.child),
                          (a.memoizedProps = e.memoizedProps),
                          (a.memoizedState = e.memoizedState),
                          (a.updateQueue = e.updateQueue),
                          (s = e.dependencies),
                          (a.dependencies =
                            null === s
                              ? null
                              : {
                                  expirationTime: s.expirationTime,
                                  firstContext: s.firstContext,
                                  responders: s.responders,
                                })),
                      (r = r.sibling);
                  return co(Ra, (1 & Ra.current) | 2), t.child;
                }
                s = s.sibling;
              }
          } else {
            if (!a)
              if (null !== (e = Ya(s))) {
                if (
                  ((t.effectTag |= 64),
                  (a = !0),
                  null !== (n = e.updateQueue) &&
                    ((t.updateQueue = n), (t.effectTag |= 4)),
                  Ki(r, !0),
                  null === r.tail && "hidden" === r.tailMode && !s.alternate)
                )
                  return (
                    null !== (t = t.lastEffect = r.lastEffect) &&
                      (t.nextEffect = null),
                    null
                  );
              } else
                2 * Ho() - r.renderingStartTime > r.tailExpiration &&
                  1 < n &&
                  ((t.effectTag |= 64),
                  (a = !0),
                  Ki(r, !1),
                  (t.expirationTime = t.childExpirationTime = n - 1));
            r.isBackwards
              ? ((s.sibling = t.child), (t.child = s))
              : (null !== (n = r.last) ? (n.sibling = s) : (t.child = s),
                (r.last = s));
          }
          return null !== r.tail
            ? (0 === r.tailExpiration && (r.tailExpiration = Ho() + 500),
              (n = r.tail),
              (r.rendering = n),
              (r.tail = n.sibling),
              (r.lastEffect = t.lastEffect),
              (r.renderingStartTime = Ho()),
              (n.sibling = null),
              (t = Ra.current),
              co(Ra, a ? (1 & t) | 2 : 1 & t),
              n)
            : null;
      }
      throw Error(i(156, t.tag));
    }
    function Xi(e) {
      switch (e.tag) {
        case 1:
          go(e.type) && _o();
          var t = e.effectTag;
          return 4096 & t ? ((e.effectTag = (-4097 & t) | 64), e) : null;
        case 3:
          if ((Na(), lo(po), lo(ho), 0 != (64 & (t = e.effectTag))))
            throw Error(i(285));
          return (e.effectTag = (-4097 & t) | 64), e;
        case 5:
          return Ia(e), null;
        case 13:
          return (
            lo(Ra),
            4096 & (t = e.effectTag)
              ? ((e.effectTag = (-4097 & t) | 64), e)
              : null
          );
        case 19:
          return lo(Ra), null;
        case 4:
          return Na(), null;
        case 10:
          return ta(e), null;
        default:
          return null;
      }
    }
    function $i(e, t) {
      return { value: e, source: t, stack: _e(t) };
    }
    (Hi = function (e, t) {
      for (var n = t.child; null !== n; ) {
        if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode);
        else if (4 !== n.tag && null !== n.child) {
          (n.child.return = n), (n = n.child);
          continue;
        }
        if (n === t) break;
        for (; null === n.sibling; ) {
          if (null === n.return || n.return === t) return;
          n = n.return;
        }
        (n.sibling.return = n.return), (n = n.sibling);
      }
    }),
      (zi = function (e, t, n, r, a) {
        var i = e.memoizedProps;
        if (i !== r) {
          var s,
            l,
            c = t.stateNode;
          switch ((Pa(Da.current), (e = null), n)) {
            case "input":
              (i = ke(c, i)), (r = ke(c, r)), (e = []);
              break;
            case "option":
              (i = De(c, i)), (r = De(c, r)), (e = []);
              break;
            case "select":
              (i = o({}, i, { value: void 0 })),
                (r = o({}, r, { value: void 0 })),
                (e = []);
              break;
            case "textarea":
              (i = Ce(c, i)), (r = Ce(c, r)), (e = []);
              break;
            default:
              "function" != typeof i.onClick &&
                "function" == typeof r.onClick &&
                (c.onclick = cn);
          }
          for (s in (on(n, r), (n = null), i))
            if (!r.hasOwnProperty(s) && i.hasOwnProperty(s) && null != i[s])
              if ("style" === s)
                for (l in (c = i[s]))
                  c.hasOwnProperty(l) && (n || (n = {}), (n[l] = ""));
              else
                "dangerouslySetInnerHTML" !== s &&
                  "children" !== s &&
                  "suppressContentEditableWarning" !== s &&
                  "suppressHydrationWarning" !== s &&
                  "autoFocus" !== s &&
                  (M.hasOwnProperty(s)
                    ? e || (e = [])
                    : (e = e || []).push(s, null));
          for (s in r) {
            var u = r[s];
            if (
              ((c = null != i ? i[s] : void 0),
              r.hasOwnProperty(s) && u !== c && (null != u || null != c))
            )
              if ("style" === s)
                if (c) {
                  for (l in c)
                    !c.hasOwnProperty(l) ||
                      (u && u.hasOwnProperty(l)) ||
                      (n || (n = {}), (n[l] = ""));
                  for (l in u)
                    u.hasOwnProperty(l) &&
                      c[l] !== u[l] &&
                      (n || (n = {}), (n[l] = u[l]));
                } else n || (e || (e = []), e.push(s, n)), (n = u);
              else
                "dangerouslySetInnerHTML" === s
                  ? ((u = u ? u.__html : void 0),
                    (c = c ? c.__html : void 0),
                    null != u && c !== u && (e = e || []).push(s, u))
                  : "children" === s
                  ? c === u ||
                    ("string" != typeof u && "number" != typeof u) ||
                    (e = e || []).push(s, "" + u)
                  : "suppressContentEditableWarning" !== s &&
                    "suppressHydrationWarning" !== s &&
                    (M.hasOwnProperty(s)
                      ? (null != u && ln(a, s), e || c === u || (e = []))
                      : (e = e || []).push(s, u));
          }
          n && (e = e || []).push("style", n),
            (a = e),
            (t.updateQueue = a) && (t.effectTag |= 4);
        }
      }),
      (Bi = function (e, t, n, r) {
        n !== r && (t.effectTag |= 4);
      });
    var Zi = "function" == typeof WeakSet ? WeakSet : Set;
    function es(e, t) {
      var n = t.source,
        r = t.stack;
      null === r && null !== n && (r = _e(n)),
        null !== n && ge(n.type),
        (t = t.value),
        null !== e && 1 === e.tag && ge(e.type);
      try {
        console.error(t);
      } catch (e) {
        setTimeout(function () {
          throw e;
        });
      }
    }
    function ts(e) {
      var t = e.ref;
      if (null !== t)
        if ("function" == typeof t)
          try {
            t(null);
          } catch (t) {
            vl(e, t);
          }
        else t.current = null;
    }
    function ns(e, t) {
      switch (t.tag) {
        case 0:
        case 11:
        case 15:
        case 22:
          return;
        case 1:
          if (256 & t.effectTag && null !== e) {
            var n = e.memoizedProps,
              r = e.memoizedState;
            (t = (e = t.stateNode).getSnapshotBeforeUpdate(
              t.elementType === t.type ? n : Ko(t.type, n),
              r
            )),
              (e.__reactInternalSnapshotBeforeUpdate = t);
          }
          return;
        case 3:
        case 5:
        case 6:
        case 4:
        case 17:
          return;
      }
      throw Error(i(163));
    }
    function rs(e, t) {
      if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) {
        var n = (t = t.next);
        do {
          if ((n.tag & e) === e) {
            var r = n.destroy;
            (n.destroy = void 0), void 0 !== r && r();
          }
          n = n.next;
        } while (n !== t);
      }
    }
    function os(e, t) {
      if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) {
        var n = (t = t.next);
        do {
          if ((n.tag & e) === e) {
            var r = n.create;
            n.destroy = r();
          }
          n = n.next;
        } while (n !== t);
      }
    }
    function as(e, t, n) {
      switch (n.tag) {
        case 0:
        case 11:
        case 15:
        case 22:
          return void os(3, n);
        case 1:
          if (((e = n.stateNode), 4 & n.effectTag))
            if (null === t) e.componentDidMount();
            else {
              var r =
                n.elementType === n.type
                  ? t.memoizedProps
                  : Ko(n.type, t.memoizedProps);
              e.componentDidUpdate(
                r,
                t.memoizedState,
                e.__reactInternalSnapshotBeforeUpdate
              );
            }
          return void (null !== (t = n.updateQueue) && ha(n, t, e));
        case 3:
          if (null !== (t = n.updateQueue)) {
            if (((e = null), null !== n.child))
              switch (n.child.tag) {
                case 5:
                  e = n.child.stateNode;
                  break;
                case 1:
                  e = n.child.stateNode;
              }
            ha(n, t, e);
          }
          return;
        case 5:
          return (
            (e = n.stateNode),
            void (
              null === t &&
              4 & n.effectTag &&
              _n(n.type, n.memoizedProps) &&
              e.focus()
            )
          );
        case 6:
        case 4:
        case 12:
          return;
        case 13:
          return void (
            null === n.memoizedState &&
            ((n = n.alternate),
            null !== n &&
              ((n = n.memoizedState),
              null !== n && ((n = n.dehydrated), null !== n && Rt(n))))
          );
        case 19:
        case 17:
        case 20:
        case 21:
          return;
      }
      throw Error(i(163));
    }
    function is(e, t, n) {
      switch (("function" == typeof kl && kl(t), t.tag)) {
        case 0:
        case 11:
        case 14:
        case 15:
        case 22:
          if (null !== (e = t.updateQueue) && null !== (e = e.lastEffect)) {
            var r = e.next;
            Uo(97 < n ? 97 : n, function () {
              var e = r;
              do {
                var n = e.destroy;
                if (void 0 !== n) {
                  var o = t;
                  try {
                    n();
                  } catch (e) {
                    vl(o, e);
                  }
                }
                e = e.next;
              } while (e !== r);
            });
          }
          break;
        case 1:
          ts(t),
            "function" == typeof (n = t.stateNode).componentWillUnmount &&
              (function (e, t) {
                try {
                  (t.props = e.memoizedProps),
                    (t.state = e.memoizedState),
                    t.componentWillUnmount();
                } catch (t) {
                  vl(e, t);
                }
              })(t, n);
          break;
        case 5:
          ts(t);
          break;
        case 4:
          us(e, t, n);
      }
    }
    function ss(e) {
      var t = e.alternate;
      (e.return = null),
        (e.child = null),
        (e.memoizedState = null),
        (e.updateQueue = null),
        (e.dependencies = null),
        (e.alternate = null),
        (e.firstEffect = null),
        (e.lastEffect = null),
        (e.pendingProps = null),
        (e.memoizedProps = null),
        (e.stateNode = null),
        null !== t && ss(t);
    }
    function ls(e) {
      return 5 === e.tag || 3 === e.tag || 4 === e.tag;
    }
    function cs(e) {
      e: {
        for (var t = e.return; null !== t; ) {
          if (ls(t)) {
            var n = t;
            break e;
          }
          t = t.return;
        }
        throw Error(i(160));
      }
      switch (((t = n.stateNode), n.tag)) {
        case 5:
          var r = !1;
          break;
        case 3:
        case 4:
          (t = t.containerInfo), (r = !0);
          break;
        default:
          throw Error(i(161));
      }
      16 & n.effectTag && (He(t, ""), (n.effectTag &= -17));
      e: t: for (n = e; ; ) {
        for (; null === n.sibling; ) {
          if (null === n.return || ls(n.return)) {
            n = null;
            break e;
          }
          n = n.return;
        }
        for (
          n.sibling.return = n.return, n = n.sibling;
          5 !== n.tag && 6 !== n.tag && 18 !== n.tag;

        ) {
          if (2 & n.effectTag) continue t;
          if (null === n.child || 4 === n.tag) continue t;
          (n.child.return = n), (n = n.child);
        }
        if (!(2 & n.effectTag)) {
          n = n.stateNode;
          break e;
        }
      }
      r
        ? (function e(t, n, r) {
            var o = t.tag,
              a = 5 === o || 6 === o;
            if (a)
              (t = a ? t.stateNode : t.stateNode.instance),
                n
                  ? 8 === r.nodeType
                    ? r.parentNode.insertBefore(t, n)
                    : r.insertBefore(t, n)
                  : (8 === r.nodeType
                      ? (n = r.parentNode).insertBefore(t, r)
                      : (n = r).appendChild(t),
                    (null !== (r = r._reactRootContainer) && void 0 !== r) ||
                      null !== n.onclick ||
                      (n.onclick = cn));
            else if (4 !== o && null !== (t = t.child))
              for (e(t, n, r), t = t.sibling; null !== t; )
                e(t, n, r), (t = t.sibling);
          })(e, n, t)
        : (function e(t, n, r) {
            var o = t.tag,
              a = 5 === o || 6 === o;
            if (a)
              (t = a ? t.stateNode : t.stateNode.instance),
                n ? r.insertBefore(t, n) : r.appendChild(t);
            else if (4 !== o && null !== (t = t.child))
              for (e(t, n, r), t = t.sibling; null !== t; )
                e(t, n, r), (t = t.sibling);
          })(e, n, t);
    }
    function us(e, t, n) {
      for (var r, o, a = t, s = !1; ; ) {
        if (!s) {
          s = a.return;
          e: for (;;) {
            if (null === s) throw Error(i(160));
            switch (((r = s.stateNode), s.tag)) {
              case 5:
                o = !1;
                break e;
              case 3:
              case 4:
                (r = r.containerInfo), (o = !0);
                break e;
            }
            s = s.return;
          }
          s = !0;
        }
        if (5 === a.tag || 6 === a.tag) {
          e: for (var l = e, c = a, u = n, d = c; ; )
            if ((is(l, d, u), null !== d.child && 4 !== d.tag))
              (d.child.return = d), (d = d.child);
            else {
              if (d === c) break e;
              for (; null === d.sibling; ) {
                if (null === d.return || d.return === c) break e;
                d = d.return;
              }
              (d.sibling.return = d.return), (d = d.sibling);
            }
          o
            ? ((l = r),
              (c = a.stateNode),
              8 === l.nodeType ? l.parentNode.removeChild(c) : l.removeChild(c))
            : r.removeChild(a.stateNode);
        } else if (4 === a.tag) {
          if (null !== a.child) {
            (r = a.stateNode.containerInfo),
              (o = !0),
              (a.child.return = a),
              (a = a.child);
            continue;
          }
        } else if ((is(e, a, n), null !== a.child)) {
          (a.child.return = a), (a = a.child);
          continue;
        }
        if (a === t) break;
        for (; null === a.sibling; ) {
          if (null === a.return || a.return === t) return;
          4 === (a = a.return).tag && (s = !1);
        }
        (a.sibling.return = a.return), (a = a.sibling);
      }
    }
    function ds(e, t) {
      switch (t.tag) {
        case 0:
        case 11:
        case 14:
        case 15:
        case 22:
          return void rs(3, t);
        case 1:
          return;
        case 5:
          var n = t.stateNode;
          if (null != n) {
            var r = t.memoizedProps,
              o = null !== e ? e.memoizedProps : r;
            e = t.type;
            var a = t.updateQueue;
            if (((t.updateQueue = null), null !== a)) {
              for (
                n[En] = r,
                  "input" === e &&
                    "radio" === r.type &&
                    null != r.name &&
                    Me(n, r),
                  an(e, o),
                  t = an(e, r),
                  o = 0;
                o < a.length;
                o += 2
              ) {
                var s = a[o],
                  l = a[o + 1];
                "style" === s
                  ? nn(n, l)
                  : "dangerouslySetInnerHTML" === s
                  ? Fe(n, l)
                  : "children" === s
                  ? He(n, l)
                  : X(n, s, l, t);
              }
              switch (e) {
                case "input":
                  Ee(n, r);
                  break;
                case "textarea":
                  Oe(n, r);
                  break;
                case "select":
                  (t = n._wrapperState.wasMultiple),
                    (n._wrapperState.wasMultiple = !!r.multiple),
                    null != (e = r.value)
                      ? Le(n, !!r.multiple, e, !1)
                      : t !== !!r.multiple &&
                        (null != r.defaultValue
                          ? Le(n, !!r.multiple, r.defaultValue, !0)
                          : Le(n, !!r.multiple, r.multiple ? [] : "", !1));
              }
            }
          }
          return;
        case 6:
          if (null === t.stateNode) throw Error(i(162));
          return void (t.stateNode.nodeValue = t.memoizedProps);
        case 3:
          return void (
            (t = t.stateNode).hydrate && ((t.hydrate = !1), Rt(t.containerInfo))
          );
        case 12:
          return;
        case 13:
          if (
            ((n = t),
            null === t.memoizedState
              ? (r = !1)
              : ((r = !0), (n = t.child), (As = Ho())),
            null !== n)
          )
            e: for (e = n; ; ) {
              if (5 === e.tag)
                (a = e.stateNode),
                  r
                    ? "function" == typeof (a = a.style).setProperty
                      ? a.setProperty("display", "none", "important")
                      : (a.display = "none")
                    : ((a = e.stateNode),
                      (o =
                        null != (o = e.memoizedProps.style) &&
                        o.hasOwnProperty("display")
                          ? o.display
                          : null),
                      (a.style.display = tn("display", o)));
              else if (6 === e.tag)
                e.stateNode.nodeValue = r ? "" : e.memoizedProps;
              else {
                if (
                  13 === e.tag &&
                  null !== e.memoizedState &&
                  null === e.memoizedState.dehydrated
                ) {
                  ((a = e.child.sibling).return = e), (e = a);
                  continue;
                }
                if (null !== e.child) {
                  (e.child.return = e), (e = e.child);
                  continue;
                }
              }
              if (e === n) break;
              for (; null === e.sibling; ) {
                if (null === e.return || e.return === n) break e;
                e = e.return;
              }
              (e.sibling.return = e.return), (e = e.sibling);
            }
          return void hs(t);
        case 19:
          return void hs(t);
        case 17:
          return;
      }
      throw Error(i(163));
    }
    function hs(e) {
      var t = e.updateQueue;
      if (null !== t) {
        e.updateQueue = null;
        var n = e.stateNode;
        null === n && (n = e.stateNode = new Zi()),
          t.forEach(function (t) {
            var r = yl.bind(null, e, t);
            n.has(t) || (n.add(t), t.then(r, r));
          });
      }
    }
    var ps = "function" == typeof WeakMap ? WeakMap : Map;
    function fs(e, t, n) {
      ((n = la(n, null)).tag = 3), (n.payload = { element: null });
      var r = t.value;
      return (
        (n.callback = function () {
          Rs || ((Rs = !0), (Ys = r)), es(e, t);
        }),
        n
      );
    }
    function ms(e, t, n) {
      (n = la(n, null)).tag = 3;
      var r = e.type.getDerivedStateFromError;
      if ("function" == typeof r) {
        var o = t.value;
        n.payload = function () {
          return es(e, t), r(o);
        };
      }
      var a = e.stateNode;
      return (
        null !== a &&
          "function" == typeof a.componentDidCatch &&
          (n.callback = function () {
            "function" != typeof r &&
              (null === js ? (js = new Set([this])) : js.add(this), es(e, t));
            var n = t.stack;
            this.componentDidCatch(t.value, {
              componentStack: null !== n ? n : "",
            });
          }),
        n
      );
    }
    var gs,
      _s = Math.ceil,
      vs = Q.ReactCurrentDispatcher,
      bs = Q.ReactCurrentOwner,
      ys = 0,
      ws = 3,
      ks = 4,
      xs = 0,
      Ms = null,
      Es = null,
      Ts = 0,
      Ss = ys,
      Ds = null,
      Ls = 1073741823,
      Cs = 1073741823,
      Ps = null,
      Os = 0,
      Ns = !1,
      As = 0,
      Is = null,
      Rs = !1,
      Ys = null,
      js = null,
      Fs = !1,
      Hs = null,
      zs = 90,
      Bs = null,
      Us = 0,
      Vs = null,
      Ws = 0;
    function qs() {
      return 0 != (48 & xs)
        ? 1073741821 - ((Ho() / 10) | 0)
        : 0 !== Ws
        ? Ws
        : (Ws = 1073741821 - ((Ho() / 10) | 0));
    }
    function Gs(e, t, n) {
      if (0 == (2 & (t = t.mode))) return 1073741823;
      var r = zo();
      if (0 == (4 & t)) return 99 === r ? 1073741823 : 1073741822;
      if (0 != (16 & xs)) return Ts;
      if (null !== n) e = Jo(e, 0 | n.timeoutMs || 5e3, 250);
      else
        switch (r) {
          case 99:
            e = 1073741823;
            break;
          case 98:
            e = Jo(e, 150, 100);
            break;
          case 97:
          case 96:
            e = Jo(e, 5e3, 250);
            break;
          case 95:
            e = 2;
            break;
          default:
            throw Error(i(326));
        }
      return null !== Ms && e === Ts && --e, e;
    }
    function Js(e, t) {
      if (50 < Us) throw ((Us = 0), (Vs = null), Error(i(185)));
      if (null !== (e = Ks(e, t))) {
        var n = zo();
        1073741823 === t
          ? 0 != (8 & xs) && 0 == (48 & xs)
            ? Zs(e)
            : (Xs(e), 0 === xs && qo())
          : Xs(e),
          0 == (4 & xs) ||
            (98 !== n && 99 !== n) ||
            (null === Bs
              ? (Bs = new Map([[e, t]]))
              : (void 0 === (n = Bs.get(e)) || n > t) && Bs.set(e, t));
      }
    }
    function Ks(e, t) {
      e.expirationTime < t && (e.expirationTime = t);
      var n = e.alternate;
      null !== n && n.expirationTime < t && (n.expirationTime = t);
      var r = e.return,
        o = null;
      if (null === r && 3 === e.tag) o = e.stateNode;
      else
        for (; null !== r; ) {
          if (
            ((n = r.alternate),
            r.childExpirationTime < t && (r.childExpirationTime = t),
            null !== n &&
              n.childExpirationTime < t &&
              (n.childExpirationTime = t),
            null === r.return && 3 === r.tag)
          ) {
            o = r.stateNode;
            break;
          }
          r = r.return;
        }
      return (
        null !== o && (Ms === o && (il(t), Ss === ks && Nl(o, Ts)), Al(o, t)), o
      );
    }
    function Qs(e) {
      var t = e.lastExpiredTime;
      if (0 !== t) return t;
      if (!Ol(e, (t = e.firstPendingTime))) return t;
      var n = e.lastPingedTime;
      return 2 >= (e = n > (e = e.nextKnownPendingLevel) ? n : e) && t !== e
        ? 0
        : e;
    }
    function Xs(e) {
      if (0 !== e.lastExpiredTime)
        (e.callbackExpirationTime = 1073741823),
          (e.callbackPriority = 99),
          (e.callbackNode = Wo(Zs.bind(null, e)));
      else {
        var t = Qs(e),
          n = e.callbackNode;
        if (0 === t)
          null !== n &&
            ((e.callbackNode = null),
            (e.callbackExpirationTime = 0),
            (e.callbackPriority = 90));
        else {
          var r = qs();
          if (
            (1073741823 === t
              ? (r = 99)
              : 1 === t || 2 === t
              ? (r = 95)
              : (r =
                  0 >= (r = 10 * (1073741821 - t) - 10 * (1073741821 - r))
                    ? 99
                    : 250 >= r
                    ? 98
                    : 5250 >= r
                    ? 97
                    : 95),
            null !== n)
          ) {
            var o = e.callbackPriority;
            if (e.callbackExpirationTime === t && o >= r) return;
            n !== No && Mo(n);
          }
          (e.callbackExpirationTime = t),
            (e.callbackPriority = r),
            (t =
              1073741823 === t
                ? Wo(Zs.bind(null, e))
                : Vo(r, $s.bind(null, e), {
                    timeout: 10 * (1073741821 - t) - Ho(),
                  })),
            (e.callbackNode = t);
        }
      }
    }
    function $s(e, t) {
      if (((Ws = 0), t)) return Il(e, (t = qs())), Xs(e), null;
      var n = Qs(e);
      if (0 !== n) {
        if (((t = e.callbackNode), 0 != (48 & xs))) throw Error(i(327));
        if ((ml(), (e === Ms && n === Ts) || nl(e, n), null !== Es)) {
          var r = xs;
          xs |= 16;
          for (var o = ol(); ; )
            try {
              ll();
              break;
            } catch (t) {
              rl(e, t);
            }
          if ((ea(), (xs = r), (vs.current = o), 1 === Ss))
            throw ((t = Ds), nl(e, n), Nl(e, n), Xs(e), t);
          if (null === Es)
            switch (
              ((o = e.finishedWork = e.current.alternate),
              (e.finishedExpirationTime = n),
              (r = Ss),
              (Ms = null),
              r)
            ) {
              case ys:
              case 1:
                throw Error(i(345));
              case 2:
                Il(e, 2 < n ? 2 : n);
                break;
              case ws:
                if (
                  (Nl(e, n),
                  n === (r = e.lastSuspendedTime) &&
                    (e.nextKnownPendingLevel = dl(o)),
                  1073741823 === Ls && 10 < (o = As + 500 - Ho()))
                ) {
                  if (Ns) {
                    var a = e.lastPingedTime;
                    if (0 === a || a >= n) {
                      (e.lastPingedTime = n), nl(e, n);
                      break;
                    }
                  }
                  if (0 !== (a = Qs(e)) && a !== n) break;
                  if (0 !== r && r !== n) {
                    e.lastPingedTime = r;
                    break;
                  }
                  e.timeoutHandle = bn(hl.bind(null, e), o);
                  break;
                }
                hl(e);
                break;
              case ks:
                if (
                  (Nl(e, n),
                  n === (r = e.lastSuspendedTime) &&
                    (e.nextKnownPendingLevel = dl(o)),
                  Ns && (0 === (o = e.lastPingedTime) || o >= n))
                ) {
                  (e.lastPingedTime = n), nl(e, n);
                  break;
                }
                if (0 !== (o = Qs(e)) && o !== n) break;
                if (0 !== r && r !== n) {
                  e.lastPingedTime = r;
                  break;
                }
                if (
                  (1073741823 !== Cs
                    ? (r = 10 * (1073741821 - Cs) - Ho())
                    : 1073741823 === Ls
                    ? (r = 0)
                    : ((r = 10 * (1073741821 - Ls) - 5e3),
                      0 > (r = (o = Ho()) - r) && (r = 0),
                      (n = 10 * (1073741821 - n) - o) <
                        (r =
                          (120 > r
                            ? 120
                            : 480 > r
                            ? 480
                            : 1080 > r
                            ? 1080
                            : 1920 > r
                            ? 1920
                            : 3e3 > r
                            ? 3e3
                            : 4320 > r
                            ? 4320
                            : 1960 * _s(r / 1960)) - r) && (r = n)),
                  10 < r)
                ) {
                  e.timeoutHandle = bn(hl.bind(null, e), r);
                  break;
                }
                hl(e);
                break;
              case 5:
                if (1073741823 !== Ls && null !== Ps) {
                  a = Ls;
                  var s = Ps;
                  if (
                    (0 >= (r = 0 | s.busyMinDurationMs)
                      ? (r = 0)
                      : ((o = 0 | s.busyDelayMs),
                        (r =
                          (a =
                            Ho() -
                            (10 * (1073741821 - a) -
                              (0 | s.timeoutMs || 5e3))) <= o
                            ? 0
                            : o + r - a)),
                    10 < r)
                  ) {
                    Nl(e, n), (e.timeoutHandle = bn(hl.bind(null, e), r));
                    break;
                  }
                }
                hl(e);
                break;
              default:
                throw Error(i(329));
            }
          if ((Xs(e), e.callbackNode === t)) return $s.bind(null, e);
        }
      }
      return null;
    }
    function Zs(e) {
      var t = e.lastExpiredTime;
      if (((t = 0 !== t ? t : 1073741823), 0 != (48 & xs))) throw Error(i(327));
      if ((ml(), (e === Ms && t === Ts) || nl(e, t), null !== Es)) {
        var n = xs;
        xs |= 16;
        for (var r = ol(); ; )
          try {
            sl();
            break;
          } catch (t) {
            rl(e, t);
          }
        if ((ea(), (xs = n), (vs.current = r), 1 === Ss))
          throw ((n = Ds), nl(e, t), Nl(e, t), Xs(e), n);
        if (null !== Es) throw Error(i(261));
        (e.finishedWork = e.current.alternate),
          (e.finishedExpirationTime = t),
          (Ms = null),
          hl(e),
          Xs(e);
      }
      return null;
    }
    function el(e, t) {
      var n = xs;
      xs |= 1;
      try {
        return e(t);
      } finally {
        0 === (xs = n) && qo();
      }
    }
    function tl(e, t) {
      var n = xs;
      (xs &= -2), (xs |= 8);
      try {
        return e(t);
      } finally {
        0 === (xs = n) && qo();
      }
    }
    function nl(e, t) {
      (e.finishedWork = null), (e.finishedExpirationTime = 0);
      var n = e.timeoutHandle;
      if ((-1 !== n && ((e.timeoutHandle = -1), yn(n)), null !== Es))
        for (n = Es.return; null !== n; ) {
          var r = n;
          switch (r.tag) {
            case 1:
              null != (r = r.type.childContextTypes) && _o();
              break;
            case 3:
              Na(), lo(po), lo(ho);
              break;
            case 5:
              Ia(r);
              break;
            case 4:
              Na();
              break;
            case 13:
            case 19:
              lo(Ra);
              break;
            case 10:
              ta(r);
          }
          n = n.return;
        }
      (Ms = e),
        (Es = Tl(e.current, null)),
        (Ts = t),
        (Ss = ys),
        (Ds = null),
        (Cs = Ls = 1073741823),
        (Ps = null),
        (Os = 0),
        (Ns = !1);
    }
    function rl(e, t) {
      for (;;) {
        try {
          if ((ea(), (Fa.current = gi), Wa))
            for (var n = Ba.memoizedState; null !== n; ) {
              var r = n.queue;
              null !== r && (r.pending = null), (n = n.next);
            }
          if (
            ((za = 0),
            (Va = Ua = Ba = null),
            (Wa = !1),
            null === Es || null === Es.return)
          )
            return (Ss = 1), (Ds = t), (Es = null);
          e: {
            var o = e,
              a = Es.return,
              i = Es,
              s = t;
            if (
              ((t = Ts),
              (i.effectTag |= 2048),
              (i.firstEffect = i.lastEffect = null),
              null !== s && "object" == typeof s && "function" == typeof s.then)
            ) {
              var l = s;
              if (0 == (2 & i.mode)) {
                var c = i.alternate;
                c
                  ? ((i.updateQueue = c.updateQueue),
                    (i.memoizedState = c.memoizedState),
                    (i.expirationTime = c.expirationTime))
                  : ((i.updateQueue = null), (i.memoizedState = null));
              }
              var u = 0 != (1 & Ra.current),
                d = a;
              do {
                var h;
                if ((h = 13 === d.tag)) {
                  var p = d.memoizedState;
                  if (null !== p) h = null !== p.dehydrated;
                  else {
                    var f = d.memoizedProps;
                    h =
                      void 0 !== f.fallback &&
                      (!0 !== f.unstable_avoidThisFallback || !u);
                  }
                }
                if (h) {
                  var m = d.updateQueue;
                  if (null === m) {
                    var g = new Set();
                    g.add(l), (d.updateQueue = g);
                  } else m.add(l);
                  if (0 == (2 & d.mode)) {
                    if (
                      ((d.effectTag |= 64), (i.effectTag &= -2981), 1 === i.tag)
                    )
                      if (null === i.alternate) i.tag = 17;
                      else {
                        var _ = la(1073741823, null);
                        (_.tag = 2), ca(i, _);
                      }
                    i.expirationTime = 1073741823;
                    break e;
                  }
                  (s = void 0), (i = t);
                  var v = o.pingCache;
                  if (
                    (null === v
                      ? ((v = o.pingCache = new ps()),
                        (s = new Set()),
                        v.set(l, s))
                      : void 0 === (s = v.get(l)) &&
                        ((s = new Set()), v.set(l, s)),
                    !s.has(i))
                  ) {
                    s.add(i);
                    var b = bl.bind(null, o, l, i);
                    l.then(b, b);
                  }
                  (d.effectTag |= 4096), (d.expirationTime = t);
                  break e;
                }
                d = d.return;
              } while (null !== d);
              s = Error(
                (ge(i.type) || "A React component") +
                  " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display." +
                  _e(i)
              );
            }
            5 !== Ss && (Ss = 2), (s = $i(s, i)), (d = a);
            do {
              switch (d.tag) {
                case 3:
                  (l = s),
                    (d.effectTag |= 4096),
                    (d.expirationTime = t),
                    ua(d, fs(d, l, t));
                  break e;
                case 1:
                  l = s;
                  var y = d.type,
                    w = d.stateNode;
                  if (
                    0 == (64 & d.effectTag) &&
                    ("function" == typeof y.getDerivedStateFromError ||
                      (null !== w &&
                        "function" == typeof w.componentDidCatch &&
                        (null === js || !js.has(w))))
                  ) {
                    (d.effectTag |= 4096),
                      (d.expirationTime = t),
                      ua(d, ms(d, l, t));
                    break e;
                  }
              }
              d = d.return;
            } while (null !== d);
          }
          Es = ul(Es);
        } catch (e) {
          t = e;
          continue;
        }
        break;
      }
    }
    function ol() {
      var e = vs.current;
      return (vs.current = gi), null === e ? gi : e;
    }
    function al(e, t) {
      e < Ls && 2 < e && (Ls = e),
        null !== t && e < Cs && 2 < e && ((Cs = e), (Ps = t));
    }
    function il(e) {
      e > Os && (Os = e);
    }
    function sl() {
      for (; null !== Es; ) Es = cl(Es);
    }
    function ll() {
      for (; null !== Es && !Ao(); ) Es = cl(Es);
    }
    function cl(e) {
      var t = gs(e.alternate, e, Ts);
      return (
        (e.memoizedProps = e.pendingProps),
        null === t && (t = ul(e)),
        (bs.current = null),
        t
      );
    }
    function ul(e) {
      Es = e;
      do {
        var t = Es.alternate;
        if (((e = Es.return), 0 == (2048 & Es.effectTag))) {
          if (((t = Qi(t, Es, Ts)), 1 === Ts || 1 !== Es.childExpirationTime)) {
            for (var n = 0, r = Es.child; null !== r; ) {
              var o = r.expirationTime,
                a = r.childExpirationTime;
              o > n && (n = o), a > n && (n = a), (r = r.sibling);
            }
            Es.childExpirationTime = n;
          }
          if (null !== t) return t;
          null !== e &&
            0 == (2048 & e.effectTag) &&
            (null === e.firstEffect && (e.firstEffect = Es.firstEffect),
            null !== Es.lastEffect &&
              (null !== e.lastEffect &&
                (e.lastEffect.nextEffect = Es.firstEffect),
              (e.lastEffect = Es.lastEffect)),
            1 < Es.effectTag &&
              (null !== e.lastEffect
                ? (e.lastEffect.nextEffect = Es)
                : (e.firstEffect = Es),
              (e.lastEffect = Es)));
        } else {
          if (null !== (t = Xi(Es))) return (t.effectTag &= 2047), t;
          null !== e &&
            ((e.firstEffect = e.lastEffect = null), (e.effectTag |= 2048));
        }
        if (null !== (t = Es.sibling)) return t;
        Es = e;
      } while (null !== Es);
      return Ss === ys && (Ss = 5), null;
    }
    function dl(e) {
      var t = e.expirationTime;
      return t > (e = e.childExpirationTime) ? t : e;
    }
    function hl(e) {
      var t = zo();
      return Uo(99, pl.bind(null, e, t)), null;
    }
    function pl(e, t) {
      do {
        ml();
      } while (null !== Hs);
      if (0 != (48 & xs)) throw Error(i(327));
      var n = e.finishedWork,
        r = e.finishedExpirationTime;
      if (null === n) return null;
      if (
        ((e.finishedWork = null),
        (e.finishedExpirationTime = 0),
        n === e.current)
      )
        throw Error(i(177));
      (e.callbackNode = null),
        (e.callbackExpirationTime = 0),
        (e.callbackPriority = 90),
        (e.nextKnownPendingLevel = 0);
      var o = dl(n);
      if (
        ((e.firstPendingTime = o),
        r <= e.lastSuspendedTime
          ? (e.firstSuspendedTime = e.lastSuspendedTime = e.nextKnownPendingLevel = 0)
          : r <= e.firstSuspendedTime && (e.firstSuspendedTime = r - 1),
        r <= e.lastPingedTime && (e.lastPingedTime = 0),
        r <= e.lastExpiredTime && (e.lastExpiredTime = 0),
        e === Ms && ((Es = Ms = null), (Ts = 0)),
        1 < n.effectTag
          ? null !== n.lastEffect
            ? ((n.lastEffect.nextEffect = n), (o = n.firstEffect))
            : (o = n)
          : (o = n.firstEffect),
        null !== o)
      ) {
        var a = xs;
        (xs |= 32), (bs.current = null), (mn = qt);
        var s = pn();
        if (fn(s)) {
          if ("selectionStart" in s)
            var l = { start: s.selectionStart, end: s.selectionEnd };
          else
            e: {
              var c =
                (l = ((l = s.ownerDocument) && l.defaultView) || window)
                  .getSelection && l.getSelection();
              if (c && 0 !== c.rangeCount) {
                l = c.anchorNode;
                var u = c.anchorOffset,
                  d = c.focusNode;
                c = c.focusOffset;
                try {
                  l.nodeType, d.nodeType;
                } catch (e) {
                  l = null;
                  break e;
                }
                var h = 0,
                  p = -1,
                  f = -1,
                  m = 0,
                  g = 0,
                  _ = s,
                  v = null;
                t: for (;;) {
                  for (
                    var b;
                    _ !== l || (0 !== u && 3 !== _.nodeType) || (p = h + u),
                      _ !== d || (0 !== c && 3 !== _.nodeType) || (f = h + c),
                      3 === _.nodeType && (h += _.nodeValue.length),
                      null !== (b = _.firstChild);

                  )
                    (v = _), (_ = b);
                  for (;;) {
                    if (_ === s) break t;
                    if (
                      (v === l && ++m === u && (p = h),
                      v === d && ++g === c && (f = h),
                      null !== (b = _.nextSibling))
                    )
                      break;
                    v = (_ = v).parentNode;
                  }
                  _ = b;
                }
                l = -1 === p || -1 === f ? null : { start: p, end: f };
              } else l = null;
            }
          l = l || { start: 0, end: 0 };
        } else l = null;
        (gn = {
          activeElementDetached: null,
          focusedElem: s,
          selectionRange: l,
        }),
          (qt = !1),
          (Is = o);
        do {
          try {
            fl();
          } catch (e) {
            if (null === Is) throw Error(i(330));
            vl(Is, e), (Is = Is.nextEffect);
          }
        } while (null !== Is);
        Is = o;
        do {
          try {
            for (s = e, l = t; null !== Is; ) {
              var y = Is.effectTag;
              if ((16 & y && He(Is.stateNode, ""), 128 & y)) {
                var w = Is.alternate;
                if (null !== w) {
                  var k = w.ref;
                  null !== k &&
                    ("function" == typeof k ? k(null) : (k.current = null));
                }
              }
              switch (1038 & y) {
                case 2:
                  cs(Is), (Is.effectTag &= -3);
                  break;
                case 6:
                  cs(Is), (Is.effectTag &= -3), ds(Is.alternate, Is);
                  break;
                case 1024:
                  Is.effectTag &= -1025;
                  break;
                case 1028:
                  (Is.effectTag &= -1025), ds(Is.alternate, Is);
                  break;
                case 4:
                  ds(Is.alternate, Is);
                  break;
                case 8:
                  us(s, (u = Is), l), ss(u);
              }
              Is = Is.nextEffect;
            }
          } catch (e) {
            if (null === Is) throw Error(i(330));
            vl(Is, e), (Is = Is.nextEffect);
          }
        } while (null !== Is);
        if (
          ((k = gn),
          (w = pn()),
          (y = k.focusedElem),
          (l = k.selectionRange),
          w !== y &&
            y &&
            y.ownerDocument &&
            (function e(t, n) {
              return (
                !(!t || !n) &&
                (t === n ||
                  ((!t || 3 !== t.nodeType) &&
                    (n && 3 === n.nodeType
                      ? e(t, n.parentNode)
                      : "contains" in t
                      ? t.contains(n)
                      : !!t.compareDocumentPosition &&
                        !!(16 & t.compareDocumentPosition(n)))))
              );
            })(y.ownerDocument.documentElement, y))
        ) {
          null !== l &&
            fn(y) &&
            ((w = l.start),
            void 0 === (k = l.end) && (k = w),
            "selectionStart" in y
              ? ((y.selectionStart = w),
                (y.selectionEnd = Math.min(k, y.value.length)))
              : (k =
                  ((w = y.ownerDocument || document) && w.defaultView) ||
                  window).getSelection &&
                ((k = k.getSelection()),
                (u = y.textContent.length),
                (s = Math.min(l.start, u)),
                (l = void 0 === l.end ? s : Math.min(l.end, u)),
                !k.extend && s > l && ((u = l), (l = s), (s = u)),
                (u = hn(y, s)),
                (d = hn(y, l)),
                u &&
                  d &&
                  (1 !== k.rangeCount ||
                    k.anchorNode !== u.node ||
                    k.anchorOffset !== u.offset ||
                    k.focusNode !== d.node ||
                    k.focusOffset !== d.offset) &&
                  ((w = w.createRange()).setStart(u.node, u.offset),
                  k.removeAllRanges(),
                  s > l
                    ? (k.addRange(w), k.extend(d.node, d.offset))
                    : (w.setEnd(d.node, d.offset), k.addRange(w))))),
            (w = []);
          for (k = y; (k = k.parentNode); )
            1 === k.nodeType &&
              w.push({ element: k, left: k.scrollLeft, top: k.scrollTop });
          for (
            "function" == typeof y.focus && y.focus(), y = 0;
            y < w.length;
            y++
          )
            ((k = w[y]).element.scrollLeft = k.left),
              (k.element.scrollTop = k.top);
        }
        (qt = !!mn), (gn = mn = null), (e.current = n), (Is = o);
        do {
          try {
            for (y = e; null !== Is; ) {
              var x = Is.effectTag;
              if ((36 & x && as(y, Is.alternate, Is), 128 & x)) {
                w = void 0;
                var M = Is.ref;
                if (null !== M) {
                  var E = Is.stateNode;
                  switch (Is.tag) {
                    case 5:
                      w = E;
                      break;
                    default:
                      w = E;
                  }
                  "function" == typeof M ? M(w) : (M.current = w);
                }
              }
              Is = Is.nextEffect;
            }
          } catch (e) {
            if (null === Is) throw Error(i(330));
            vl(Is, e), (Is = Is.nextEffect);
          }
        } while (null !== Is);
        (Is = null), Io(), (xs = a);
      } else e.current = n;
      if (Fs) (Fs = !1), (Hs = e), (zs = t);
      else
        for (Is = o; null !== Is; )
          (t = Is.nextEffect), (Is.nextEffect = null), (Is = t);
      if (
        (0 === (t = e.firstPendingTime) && (js = null),
        1073741823 === t ? (e === Vs ? Us++ : ((Us = 0), (Vs = e))) : (Us = 0),
        "function" == typeof wl && wl(n.stateNode, r),
        Xs(e),
        Rs)
      )
        throw ((Rs = !1), (e = Ys), (Ys = null), e);
      return 0 != (8 & xs) || qo(), null;
    }
    function fl() {
      for (; null !== Is; ) {
        var e = Is.effectTag;
        0 != (256 & e) && ns(Is.alternate, Is),
          0 == (512 & e) ||
            Fs ||
            ((Fs = !0),
            Vo(97, function () {
              return ml(), null;
            })),
          (Is = Is.nextEffect);
      }
    }
    function ml() {
      if (90 !== zs) {
        var e = 97 < zs ? 97 : zs;
        return (zs = 90), Uo(e, gl);
      }
    }
    function gl() {
      if (null === Hs) return !1;
      var e = Hs;
      if (((Hs = null), 0 != (48 & xs))) throw Error(i(331));
      var t = xs;
      for (xs |= 32, e = e.current.firstEffect; null !== e; ) {
        try {
          var n = e;
          if (0 != (512 & n.effectTag))
            switch (n.tag) {
              case 0:
              case 11:
              case 15:
              case 22:
                rs(5, n), os(5, n);
            }
        } catch (t) {
          if (null === e) throw Error(i(330));
          vl(e, t);
        }
        (n = e.nextEffect), (e.nextEffect = null), (e = n);
      }
      return (xs = t), qo(), !0;
    }
    function _l(e, t, n) {
      ca(e, (t = fs(e, (t = $i(n, t)), 1073741823))),
        null !== (e = Ks(e, 1073741823)) && Xs(e);
    }
    function vl(e, t) {
      if (3 === e.tag) _l(e, e, t);
      else
        for (var n = e.return; null !== n; ) {
          if (3 === n.tag) {
            _l(n, e, t);
            break;
          }
          if (1 === n.tag) {
            var r = n.stateNode;
            if (
              "function" == typeof n.type.getDerivedStateFromError ||
              ("function" == typeof r.componentDidCatch &&
                (null === js || !js.has(r)))
            ) {
              ca(n, (e = ms(n, (e = $i(t, e)), 1073741823))),
                null !== (n = Ks(n, 1073741823)) && Xs(n);
              break;
            }
          }
          n = n.return;
        }
    }
    function bl(e, t, n) {
      var r = e.pingCache;
      null !== r && r.delete(t),
        Ms === e && Ts === n
          ? Ss === ks || (Ss === ws && 1073741823 === Ls && Ho() - As < 500)
            ? nl(e, Ts)
            : (Ns = !0)
          : Ol(e, n) &&
            ((0 !== (t = e.lastPingedTime) && t < n) ||
              ((e.lastPingedTime = n), Xs(e)));
    }
    function yl(e, t) {
      var n = e.stateNode;
      null !== n && n.delete(t),
        0 === (t = 0) && (t = Gs((t = qs()), e, null)),
        null !== (e = Ks(e, t)) && Xs(e);
    }
    gs = function (e, t, n) {
      var r = t.expirationTime;
      if (null !== e) {
        var o = t.pendingProps;
        if (e.memoizedProps !== o || po.current) Ci = !0;
        else {
          if (r < n) {
            switch (((Ci = !1), t.tag)) {
              case 3:
                Fi(t), Di();
                break;
              case 5:
                if ((Aa(t), 4 & t.mode && 1 !== n && o.hidden))
                  return (t.expirationTime = t.childExpirationTime = 1), null;
                break;
              case 1:
                go(t.type) && yo(t);
                break;
              case 4:
                Oa(t, t.stateNode.containerInfo);
                break;
              case 10:
                (r = t.memoizedProps.value),
                  (o = t.type._context),
                  co(Qo, o._currentValue),
                  (o._currentValue = r);
                break;
              case 13:
                if (null !== t.memoizedState)
                  return 0 !== (r = t.child.childExpirationTime) && r >= n
                    ? Vi(e, t, n)
                    : (co(Ra, 1 & Ra.current),
                      null !== (t = Ji(e, t, n)) ? t.sibling : null);
                co(Ra, 1 & Ra.current);
                break;
              case 19:
                if (
                  ((r = t.childExpirationTime >= n), 0 != (64 & e.effectTag))
                ) {
                  if (r) return Gi(e, t, n);
                  t.effectTag |= 64;
                }
                if (
                  (null !== (o = t.memoizedState) &&
                    ((o.rendering = null), (o.tail = null)),
                  co(Ra, Ra.current),
                  !r)
                )
                  return null;
            }
            return Ji(e, t, n);
          }
          Ci = !1;
        }
      } else Ci = !1;
      switch (((t.expirationTime = 0), t.tag)) {
        case 2:
          if (
            ((r = t.type),
            null !== e &&
              ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)),
            (e = t.pendingProps),
            (o = mo(t, ho.current)),
            ra(t, n),
            (o = Ja(null, t, r, e, o, n)),
            (t.effectTag |= 1),
            "object" == typeof o &&
              null !== o &&
              "function" == typeof o.render &&
              void 0 === o.$$typeof)
          ) {
            if (
              ((t.tag = 1),
              (t.memoizedState = null),
              (t.updateQueue = null),
              go(r))
            ) {
              var a = !0;
              yo(t);
            } else a = !1;
            (t.memoizedState =
              null !== o.state && void 0 !== o.state ? o.state : null),
              ia(t);
            var s = r.getDerivedStateFromProps;
            "function" == typeof s && ma(t, r, s, e),
              (o.updater = ga),
              (t.stateNode = o),
              (o._reactInternalFiber = t),
              ya(t, r, e, n),
              (t = ji(null, t, r, !0, a, n));
          } else (t.tag = 0), Pi(null, t, o, n), (t = t.child);
          return t;
        case 16:
          e: {
            if (
              ((o = t.elementType),
              null !== e &&
                ((e.alternate = null),
                (t.alternate = null),
                (t.effectTag |= 2)),
              (e = t.pendingProps),
              (function (e) {
                if (-1 === e._status) {
                  e._status = 0;
                  var t = e._ctor;
                  (t = t()),
                    (e._result = t),
                    t.then(
                      function (t) {
                        0 === e._status &&
                          ((t = t.default), (e._status = 1), (e._result = t));
                      },
                      function (t) {
                        0 === e._status && ((e._status = 2), (e._result = t));
                      }
                    );
                }
              })(o),
              1 !== o._status)
            )
              throw o._result;
            switch (
              ((o = o._result),
              (t.type = o),
              (a = t.tag = (function (e) {
                if ("function" == typeof e) return El(e) ? 1 : 0;
                if (null != e) {
                  if ((e = e.$$typeof) === le) return 11;
                  if (e === de) return 14;
                }
                return 2;
              })(o)),
              (e = Ko(o, e)),
              a)
            ) {
              case 0:
                t = Ri(null, t, o, e, n);
                break e;
              case 1:
                t = Yi(null, t, o, e, n);
                break e;
              case 11:
                t = Oi(null, t, o, e, n);
                break e;
              case 14:
                t = Ni(null, t, o, Ko(o.type, e), r, n);
                break e;
            }
            throw Error(i(306, o, ""));
          }
          return t;
        case 0:
          return (
            (r = t.type),
            (o = t.pendingProps),
            Ri(e, t, r, (o = t.elementType === r ? o : Ko(r, o)), n)
          );
        case 1:
          return (
            (r = t.type),
            (o = t.pendingProps),
            Yi(e, t, r, (o = t.elementType === r ? o : Ko(r, o)), n)
          );
        case 3:
          if ((Fi(t), (r = t.updateQueue), null === e || null === r))
            throw Error(i(282));
          if (
            ((r = t.pendingProps),
            (o = null !== (o = t.memoizedState) ? o.element : null),
            sa(e, t),
            da(t, r, null, n),
            (r = t.memoizedState.element) === o)
          )
            Di(), (t = Ji(e, t, n));
          else {
            if (
              ((o = t.stateNode.hydrate) &&
                ((wi = wn(t.stateNode.containerInfo.firstChild)),
                (yi = t),
                (o = ki = !0)),
              o)
            )
              for (n = Ta(t, null, r, n), t.child = n; n; )
                (n.effectTag = (-3 & n.effectTag) | 1024), (n = n.sibling);
            else Pi(e, t, r, n), Di();
            t = t.child;
          }
          return t;
        case 5:
          return (
            Aa(t),
            null === e && Ei(t),
            (r = t.type),
            (o = t.pendingProps),
            (a = null !== e ? e.memoizedProps : null),
            (s = o.children),
            vn(r, o)
              ? (s = null)
              : null !== a && vn(r, a) && (t.effectTag |= 16),
            Ii(e, t),
            4 & t.mode && 1 !== n && o.hidden
              ? ((t.expirationTime = t.childExpirationTime = 1), (t = null))
              : (Pi(e, t, s, n), (t = t.child)),
            t
          );
        case 6:
          return null === e && Ei(t), null;
        case 13:
          return Vi(e, t, n);
        case 4:
          return (
            Oa(t, t.stateNode.containerInfo),
            (r = t.pendingProps),
            null === e ? (t.child = Ea(t, null, r, n)) : Pi(e, t, r, n),
            t.child
          );
        case 11:
          return (
            (r = t.type),
            (o = t.pendingProps),
            Oi(e, t, r, (o = t.elementType === r ? o : Ko(r, o)), n)
          );
        case 7:
          return Pi(e, t, t.pendingProps, n), t.child;
        case 8:
        case 12:
          return Pi(e, t, t.pendingProps.children, n), t.child;
        case 10:
          e: {
            (r = t.type._context),
              (o = t.pendingProps),
              (s = t.memoizedProps),
              (a = o.value);
            var l = t.type._context;
            if ((co(Qo, l._currentValue), (l._currentValue = a), null !== s))
              if (
                ((l = s.value),
                0 ===
                  (a = Yr(l, a)
                    ? 0
                    : 0 |
                      ("function" == typeof r._calculateChangedBits
                        ? r._calculateChangedBits(l, a)
                        : 1073741823)))
              ) {
                if (s.children === o.children && !po.current) {
                  t = Ji(e, t, n);
                  break e;
                }
              } else
                for (null !== (l = t.child) && (l.return = t); null !== l; ) {
                  var c = l.dependencies;
                  if (null !== c) {
                    s = l.child;
                    for (var u = c.firstContext; null !== u; ) {
                      if (u.context === r && 0 != (u.observedBits & a)) {
                        1 === l.tag && (((u = la(n, null)).tag = 2), ca(l, u)),
                          l.expirationTime < n && (l.expirationTime = n),
                          null !== (u = l.alternate) &&
                            u.expirationTime < n &&
                            (u.expirationTime = n),
                          na(l.return, n),
                          c.expirationTime < n && (c.expirationTime = n);
                        break;
                      }
                      u = u.next;
                    }
                  } else s = 10 === l.tag && l.type === t.type ? null : l.child;
                  if (null !== s) s.return = l;
                  else
                    for (s = l; null !== s; ) {
                      if (s === t) {
                        s = null;
                        break;
                      }
                      if (null !== (l = s.sibling)) {
                        (l.return = s.return), (s = l);
                        break;
                      }
                      s = s.return;
                    }
                  l = s;
                }
            Pi(e, t, o.children, n), (t = t.child);
          }
          return t;
        case 9:
          return (
            (o = t.type),
            (r = (a = t.pendingProps).children),
            ra(t, n),
            (r = r((o = oa(o, a.unstable_observedBits)))),
            (t.effectTag |= 1),
            Pi(e, t, r, n),
            t.child
          );
        case 14:
          return (
            (a = Ko((o = t.type), t.pendingProps)),
            Ni(e, t, o, (a = Ko(o.type, a)), r, n)
          );
        case 15:
          return Ai(e, t, t.type, t.pendingProps, r, n);
        case 17:
          return (
            (r = t.type),
            (o = t.pendingProps),
            (o = t.elementType === r ? o : Ko(r, o)),
            null !== e &&
              ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)),
            (t.tag = 1),
            go(r) ? ((e = !0), yo(t)) : (e = !1),
            ra(t, n),
            va(t, r, o),
            ya(t, r, o, n),
            ji(null, t, r, !0, e, n)
          );
        case 19:
          return Gi(e, t, n);
      }
      throw Error(i(156, t.tag));
    };
    var wl = null,
      kl = null;
    function xl(e, t, n, r) {
      (this.tag = e),
        (this.key = n),
        (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null),
        (this.index = 0),
        (this.ref = null),
        (this.pendingProps = t),
        (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null),
        (this.mode = r),
        (this.effectTag = 0),
        (this.lastEffect = this.firstEffect = this.nextEffect = null),
        (this.childExpirationTime = this.expirationTime = 0),
        (this.alternate = null);
    }
    function Ml(e, t, n, r) {
      return new xl(e, t, n, r);
    }
    function El(e) {
      return !(!(e = e.prototype) || !e.isReactComponent);
    }
    function Tl(e, t) {
      var n = e.alternate;
      return (
        null === n
          ? (((n = Ml(e.tag, t, e.key, e.mode)).elementType = e.elementType),
            (n.type = e.type),
            (n.stateNode = e.stateNode),
            (n.alternate = e),
            (e.alternate = n))
          : ((n.pendingProps = t),
            (n.effectTag = 0),
            (n.nextEffect = null),
            (n.firstEffect = null),
            (n.lastEffect = null)),
        (n.childExpirationTime = e.childExpirationTime),
        (n.expirationTime = e.expirationTime),
        (n.child = e.child),
        (n.memoizedProps = e.memoizedProps),
        (n.memoizedState = e.memoizedState),
        (n.updateQueue = e.updateQueue),
        (t = e.dependencies),
        (n.dependencies =
          null === t
            ? null
            : {
                expirationTime: t.expirationTime,
                firstContext: t.firstContext,
                responders: t.responders,
              }),
        (n.sibling = e.sibling),
        (n.index = e.index),
        (n.ref = e.ref),
        n
      );
    }
    function Sl(e, t, n, r, o, a) {
      var s = 2;
      if (((r = e), "function" == typeof e)) El(e) && (s = 1);
      else if ("string" == typeof e) s = 5;
      else
        e: switch (e) {
          case ne:
            return Dl(n.children, o, a, t);
          case se:
            (s = 8), (o |= 7);
            break;
          case re:
            (s = 8), (o |= 1);
            break;
          case oe:
            return (
              ((e = Ml(12, n, t, 8 | o)).elementType = oe),
              (e.type = oe),
              (e.expirationTime = a),
              e
            );
          case ce:
            return (
              ((e = Ml(13, n, t, o)).type = ce),
              (e.elementType = ce),
              (e.expirationTime = a),
              e
            );
          case ue:
            return (
              ((e = Ml(19, n, t, o)).elementType = ue),
              (e.expirationTime = a),
              e
            );
          default:
            if ("object" == typeof e && null !== e)
              switch (e.$$typeof) {
                case ae:
                  s = 10;
                  break e;
                case ie:
                  s = 9;
                  break e;
                case le:
                  s = 11;
                  break e;
                case de:
                  s = 14;
                  break e;
                case he:
                  (s = 16), (r = null);
                  break e;
                case pe:
                  s = 22;
                  break e;
              }
            throw Error(i(130, null == e ? e : typeof e, ""));
        }
      return (
        ((t = Ml(s, n, t, o)).elementType = e),
        (t.type = r),
        (t.expirationTime = a),
        t
      );
    }
    function Dl(e, t, n, r) {
      return ((e = Ml(7, e, r, t)).expirationTime = n), e;
    }
    function Ll(e, t, n) {
      return ((e = Ml(6, e, null, t)).expirationTime = n), e;
    }
    function Cl(e, t, n) {
      return (
        ((t = Ml(
          4,
          null !== e.children ? e.children : [],
          e.key,
          t
        )).expirationTime = n),
        (t.stateNode = {
          containerInfo: e.containerInfo,
          pendingChildren: null,
          implementation: e.implementation,
        }),
        t
      );
    }
    function Pl(e, t, n) {
      (this.tag = t),
        (this.current = null),
        (this.containerInfo = e),
        (this.pingCache = this.pendingChildren = null),
        (this.finishedExpirationTime = 0),
        (this.finishedWork = null),
        (this.timeoutHandle = -1),
        (this.pendingContext = this.context = null),
        (this.hydrate = n),
        (this.callbackNode = null),
        (this.callbackPriority = 90),
        (this.lastExpiredTime = this.lastPingedTime = this.nextKnownPendingLevel = this.lastSuspendedTime = this.firstSuspendedTime = this.firstPendingTime = 0);
    }
    function Ol(e, t) {
      var n = e.firstSuspendedTime;
      return (e = e.lastSuspendedTime), 0 !== n && n >= t && e <= t;
    }
    function Nl(e, t) {
      var n = e.firstSuspendedTime,
        r = e.lastSuspendedTime;
      n < t && (e.firstSuspendedTime = t),
        (r > t || 0 === n) && (e.lastSuspendedTime = t),
        t <= e.lastPingedTime && (e.lastPingedTime = 0),
        t <= e.lastExpiredTime && (e.lastExpiredTime = 0);
    }
    function Al(e, t) {
      t > e.firstPendingTime && (e.firstPendingTime = t);
      var n = e.firstSuspendedTime;
      0 !== n &&
        (t >= n
          ? (e.firstSuspendedTime = e.lastSuspendedTime = e.nextKnownPendingLevel = 0)
          : t >= e.lastSuspendedTime && (e.lastSuspendedTime = t + 1),
        t > e.nextKnownPendingLevel && (e.nextKnownPendingLevel = t));
    }
    function Il(e, t) {
      var n = e.lastExpiredTime;
      (0 === n || n > t) && (e.lastExpiredTime = t);
    }
    function Rl(e, t, n, r) {
      var o = t.current,
        a = qs(),
        s = pa.suspense;
      a = Gs(a, o, s);
      e: if (n) {
        t: {
          if (Ze((n = n._reactInternalFiber)) !== n || 1 !== n.tag)
            throw Error(i(170));
          var l = n;
          do {
            switch (l.tag) {
              case 3:
                l = l.stateNode.context;
                break t;
              case 1:
                if (go(l.type)) {
                  l = l.stateNode.__reactInternalMemoizedMergedChildContext;
                  break t;
                }
            }
            l = l.return;
          } while (null !== l);
          throw Error(i(171));
        }
        if (1 === n.tag) {
          var c = n.type;
          if (go(c)) {
            n = bo(n, c, l);
            break e;
          }
        }
        n = l;
      } else n = uo;
      return (
        null === t.context ? (t.context = n) : (t.pendingContext = n),
        ((t = la(a, s)).payload = { element: e }),
        null !== (r = void 0 === r ? null : r) && (t.callback = r),
        ca(o, t),
        Js(o, a),
        a
      );
    }
    function Yl(e) {
      if (!(e = e.current).child) return null;
      switch (e.child.tag) {
        case 5:
        default:
          return e.child.stateNode;
      }
    }
    function jl(e, t) {
      null !== (e = e.memoizedState) &&
        null !== e.dehydrated &&
        e.retryTime < t &&
        (e.retryTime = t);
    }
    function Fl(e, t) {
      jl(e, t), (e = e.alternate) && jl(e, t);
    }
    function Hl(e, t, n) {
      var r = new Pl(e, t, (n = null != n && !0 === n.hydrate)),
        o = Ml(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0);
      (r.current = o),
        (o.stateNode = r),
        ia(o),
        (e[Tn] = r.current),
        n &&
          0 !== t &&
          (function (e, t) {
            var n = $e(t);
            Tt.forEach(function (e) {
              ft(e, t, n);
            }),
              St.forEach(function (e) {
                ft(e, t, n);
              });
          })(0, 9 === e.nodeType ? e : e.ownerDocument),
        (this._internalRoot = r);
    }
    function zl(e) {
      return !(
        !e ||
        (1 !== e.nodeType &&
          9 !== e.nodeType &&
          11 !== e.nodeType &&
          (8 !== e.nodeType || " react-mount-point-unstable " !== e.nodeValue))
      );
    }
    function Bl(e, t, n, r, o) {
      var a = n._reactRootContainer;
      if (a) {
        var i = a._internalRoot;
        if ("function" == typeof o) {
          var s = o;
          o = function () {
            var e = Yl(i);
            s.call(e);
          };
        }
        Rl(t, i, e, o);
      } else {
        if (
          ((a = n._reactRootContainer = (function (e, t) {
            if (
              (t ||
                (t = !(
                  !(t = e
                    ? 9 === e.nodeType
                      ? e.documentElement
                      : e.firstChild
                    : null) ||
                  1 !== t.nodeType ||
                  !t.hasAttribute("data-reactroot")
                )),
              !t)
            )
              for (var n; (n = e.lastChild); ) e.removeChild(n);
            return new Hl(e, 0, t ? { hydrate: !0 } : void 0);
          })(n, r)),
          (i = a._internalRoot),
          "function" == typeof o)
        ) {
          var l = o;
          o = function () {
            var e = Yl(i);
            l.call(e);
          };
        }
        tl(function () {
          Rl(t, i, e, o);
        });
      }
      return Yl(i);
    }
    function Ul(e, t, n) {
      var r =
        3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
      return {
        $$typeof: te,
        key: null == r ? null : "" + r,
        children: e,
        containerInfo: t,
        implementation: n,
      };
    }
    function Vl(e, t) {
      var n =
        2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
      if (!zl(t)) throw Error(i(200));
      return Ul(e, t, null, n);
    }
    (Hl.prototype.render = function (e) {
      Rl(e, this._internalRoot, null, null);
    }),
      (Hl.prototype.unmount = function () {
        var e = this._internalRoot,
          t = e.containerInfo;
        Rl(null, e, null, function () {
          t[Tn] = null;
        });
      }),
      (mt = function (e) {
        if (13 === e.tag) {
          var t = Jo(qs(), 150, 100);
          Js(e, t), Fl(e, t);
        }
      }),
      (gt = function (e) {
        13 === e.tag && (Js(e, 3), Fl(e, 3));
      }),
      (_t = function (e) {
        if (13 === e.tag) {
          var t = qs();
          Js(e, (t = Gs(t, e, null))), Fl(e, t);
        }
      }),
      (D = function (e, t, n) {
        switch (t) {
          case "input":
            if ((Ee(e, n), (t = n.name), "radio" === n.type && null != t)) {
              for (n = e; n.parentNode; ) n = n.parentNode;
              for (
                n = n.querySelectorAll(
                  "input[name=" + JSON.stringify("" + t) + '][type="radio"]'
                ),
                  t = 0;
                t < n.length;
                t++
              ) {
                var r = n[t];
                if (r !== e && r.form === e.form) {
                  var o = Cn(r);
                  if (!o) throw Error(i(90));
                  we(r), Ee(r, o);
                }
              }
            }
            break;
          case "textarea":
            Oe(e, n);
            break;
          case "select":
            null != (t = n.value) && Le(e, !!n.multiple, t, !1);
        }
      }),
      (A = el),
      (I = function (e, t, n, r, o) {
        var a = xs;
        xs |= 4;
        try {
          return Uo(98, e.bind(null, t, n, r, o));
        } finally {
          0 === (xs = a) && qo();
        }
      }),
      (R = function () {
        0 == (49 & xs) &&
          ((function () {
            if (null !== Bs) {
              var e = Bs;
              (Bs = null),
                e.forEach(function (e, t) {
                  Il(t, e), Xs(t);
                }),
                qo();
            }
          })(),
          ml());
      }),
      (Y = function (e, t) {
        var n = xs;
        xs |= 2;
        try {
          return e(t);
        } finally {
          0 === (xs = n) && qo();
        }
      });
    var Wl,
      ql,
      Gl = {
        Events: [
          Dn,
          Ln,
          Cn,
          T,
          x,
          Yn,
          function (e) {
            ot(e, Rn);
          },
          O,
          N,
          Xt,
          st,
          ml,
          { current: !1 },
        ],
      };
    (ql = (Wl = {
      findFiberByHostInstance: Sn,
      bundleType: 0,
      version: "16.14.0",
      rendererPackageName: "react-dom",
    }).findFiberByHostInstance),
      (function (e) {
        if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
        var t = __REACT_DEVTOOLS_GLOBAL_HOOK__;
        if (t.isDisabled || !t.supportsFiber) return !0;
        try {
          var n = t.inject(e);
          (wl = function (e) {
            try {
              t.onCommitFiberRoot(
                n,
                e,
                void 0,
                64 == (64 & e.current.effectTag)
              );
            } catch (e) {}
          }),
            (kl = function (e) {
              try {
                t.onCommitFiberUnmount(n, e);
              } catch (e) {}
            });
        } catch (e) {}
      })(
        o({}, Wl, {
          overrideHookState: null,
          overrideProps: null,
          setSuspenseHandler: null,
          scheduleUpdate: null,
          currentDispatcherRef: Q.ReactCurrentDispatcher,
          findHostInstanceByFiber: function (e) {
            return null === (e = nt(e)) ? null : e.stateNode;
          },
          findFiberByHostInstance: function (e) {
            return ql ? ql(e) : null;
          },
          findHostInstancesForRefresh: null,
          scheduleRefresh: null,
          scheduleRoot: null,
          setRefreshHandler: null,
          getCurrentFiber: null,
        })
      ),
      (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Gl),
      (t.createPortal = Vl),
      (t.findDOMNode = function (e) {
        if (null == e) return null;
        if (1 === e.nodeType) return e;
        var t = e._reactInternalFiber;
        if (void 0 === t) {
          if ("function" == typeof e.render) throw Error(i(188));
          throw Error(i(268, Object.keys(e)));
        }
        return (e = null === (e = nt(t)) ? null : e.stateNode);
      }),
      (t.flushSync = function (e, t) {
        if (0 != (48 & xs)) throw Error(i(187));
        var n = xs;
        xs |= 1;
        try {
          return Uo(99, e.bind(null, t));
        } finally {
          (xs = n), qo();
        }
      }),
      (t.hydrate = function (e, t, n) {
        if (!zl(t)) throw Error(i(200));
        return Bl(null, e, t, !0, n);
      }),
      (t.render = function (e, t, n) {
        if (!zl(t)) throw Error(i(200));
        return Bl(null, e, t, !1, n);
      }),
      (t.unmountComponentAtNode = function (e) {
        if (!zl(e)) throw Error(i(40));
        return (
          !!e._reactRootContainer &&
          (tl(function () {
            Bl(null, null, e, !1, function () {
              (e._reactRootContainer = null), (e[Tn] = null);
            });
          }),
          !0)
        );
      }),
      (t.unstable_batchedUpdates = el),
      (t.unstable_createPortal = function (e, t) {
        return Vl(
          e,
          t,
          2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null
        );
      }),
      (t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) {
        if (!zl(n)) throw Error(i(200));
        if (null == e || void 0 === e._reactInternalFiber) throw Error(i(38));
        return Bl(e, t, n, !1, r);
      }),
      (t.version = "16.14.0");
  },
  function (e, t, n) {
    "use strict";
    e.exports = n(258);
  },
  function (e, t, n) {
    "use strict";
    /** @license React v0.19.1
     * scheduler.production.min.js
     *
     * Copyright (c) Facebook, Inc. and its affiliates.
     *
     * This source code is licensed under the MIT license found in the
     * LICENSE file in the root directory of this source tree.
     */ var r, o, a, i, s;
    if ("undefined" == typeof window || "function" != typeof MessageChannel) {
      var l = null,
        c = null,
        u = function () {
          if (null !== l)
            try {
              var e = t.unstable_now();
              l(!0, e), (l = null);
            } catch (e) {
              throw (setTimeout(u, 0), e);
            }
        },
        d = Date.now();
      (t.unstable_now = function () {
        return Date.now() - d;
      }),
        (r = function (e) {
          null !== l ? setTimeout(r, 0, e) : ((l = e), setTimeout(u, 0));
        }),
        (o = function (e, t) {
          c = setTimeout(e, t);
        }),
        (a = function () {
          clearTimeout(c);
        }),
        (i = function () {
          return !1;
        }),
        (s = t.unstable_forceFrameRate = function () {});
    } else {
      var h = window.performance,
        p = window.Date,
        f = window.setTimeout,
        m = window.clearTimeout;
      if ("undefined" != typeof console) {
        var g = window.cancelAnimationFrame;
        "function" != typeof window.requestAnimationFrame &&
          console.error(
            "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"
          ),
          "function" != typeof g &&
            console.error(
              "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"
            );
      }
      if ("object" == typeof h && "function" == typeof h.now)
        t.unstable_now = function () {
          return h.now();
        };
      else {
        var _ = p.now();
        t.unstable_now = function () {
          return p.now() - _;
        };
      }
      var v = !1,
        b = null,
        y = -1,
        w = 5,
        k = 0;
      (i = function () {
        return t.unstable_now() >= k;
      }),
        (s = function () {}),
        (t.unstable_forceFrameRate = function (e) {
          0 > e || 125 < e
            ? console.error(
                "forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"
              )
            : (w = 0 < e ? Math.floor(1e3 / e) : 5);
        });
      var x = new MessageChannel(),
        M = x.port2;
      (x.port1.onmessage = function () {
        if (null !== b) {
          var e = t.unstable_now();
          k = e + w;
          try {
            b(!0, e) ? M.postMessage(null) : ((v = !1), (b = null));
          } catch (e) {
            throw (M.postMessage(null), e);
          }
        } else v = !1;
      }),
        (r = function (e) {
          (b = e), v || ((v = !0), M.postMessage(null));
        }),
        (o = function (e, n) {
          y = f(function () {
            e(t.unstable_now());
          }, n);
        }),
        (a = function () {
          m(y), (y = -1);
        });
    }
    function E(e, t) {
      var n = e.length;
      e.push(t);
      e: for (;;) {
        var r = (n - 1) >>> 1,
          o = e[r];
        if (!(void 0 !== o && 0 < D(o, t))) break e;
        (e[r] = t), (e[n] = o), (n = r);
      }
    }
    function T(e) {
      return void 0 === (e = e[0]) ? null : e;
    }
    function S(e) {
      var t = e[0];
      if (void 0 !== t) {
        var n = e.pop();
        if (n !== t) {
          e[0] = n;
          e: for (var r = 0, o = e.length; r < o; ) {
            var a = 2 * (r + 1) - 1,
              i = e[a],
              s = a + 1,
              l = e[s];
            if (void 0 !== i && 0 > D(i, n))
              void 0 !== l && 0 > D(l, i)
                ? ((e[r] = l), (e[s] = n), (r = s))
                : ((e[r] = i), (e[a] = n), (r = a));
            else {
              if (!(void 0 !== l && 0 > D(l, n))) break e;
              (e[r] = l), (e[s] = n), (r = s);
            }
          }
        }
        return t;
      }
      return null;
    }
    function D(e, t) {
      var n = e.sortIndex - t.sortIndex;
      return 0 !== n ? n : e.id - t.id;
    }
    var L = [],
      C = [],
      P = 1,
      O = null,
      N = 3,
      A = !1,
      I = !1,
      R = !1;
    function Y(e) {
      for (var t = T(C); null !== t; ) {
        if (null === t.callback) S(C);
        else {
          if (!(t.startTime <= e)) break;
          S(C), (t.sortIndex = t.expirationTime), E(L, t);
        }
        t = T(C);
      }
    }
    function j(e) {
      if (((R = !1), Y(e), !I))
        if (null !== T(L)) (I = !0), r(F);
        else {
          var t = T(C);
          null !== t && o(j, t.startTime - e);
        }
    }
    function F(e, n) {
      (I = !1), R && ((R = !1), a()), (A = !0);
      var r = N;
      try {
        for (
          Y(n), O = T(L);
          null !== O && (!(O.expirationTime > n) || (e && !i()));

        ) {
          var s = O.callback;
          if (null !== s) {
            (O.callback = null), (N = O.priorityLevel);
            var l = s(O.expirationTime <= n);
            (n = t.unstable_now()),
              "function" == typeof l ? (O.callback = l) : O === T(L) && S(L),
              Y(n);
          } else S(L);
          O = T(L);
        }
        if (null !== O) var c = !0;
        else {
          var u = T(C);
          null !== u && o(j, u.startTime - n), (c = !1);
        }
        return c;
      } finally {
        (O = null), (N = r), (A = !1);
      }
    }
    function H(e) {
      switch (e) {
        case 1:
          return -1;
        case 2:
          return 250;
        case 5:
          return 1073741823;
        case 4:
          return 1e4;
        default:
          return 5e3;
      }
    }
    var z = s;
    (t.unstable_IdlePriority = 5),
      (t.unstable_ImmediatePriority = 1),
      (t.unstable_LowPriority = 4),
      (t.unstable_NormalPriority = 3),
      (t.unstable_Profiling = null),
      (t.unstable_UserBlockingPriority = 2),
      (t.unstable_cancelCallback = function (e) {
        e.callback = null;
      }),
      (t.unstable_continueExecution = function () {
        I || A || ((I = !0), r(F));
      }),
      (t.unstable_getCurrentPriorityLevel = function () {
        return N;
      }),
      (t.unstable_getFirstCallbackNode = function () {
        return T(L);
      }),
      (t.unstable_next = function (e) {
        switch (N) {
          case 1:
          case 2:
          case 3:
            var t = 3;
            break;
          default:
            t = N;
        }
        var n = N;
        N = t;
        try {
          return e();
        } finally {
          N = n;
        }
      }),
      (t.unstable_pauseExecution = function () {}),
      (t.unstable_requestPaint = z),
      (t.unstable_runWithPriority = function (e, t) {
        switch (e) {
          case 1:
          case 2:
          case 3:
          case 4:
          case 5:
            break;
          default:
            e = 3;
        }
        var n = N;
        N = e;
        try {
          return t();
        } finally {
          N = n;
        }
      }),
      (t.unstable_scheduleCallback = function (e, n, i) {
        var s = t.unstable_now();
        if ("object" == typeof i && null !== i) {
          var l = i.delay;
          (l = "number" == typeof l && 0 < l ? s + l : s),
            (i = "number" == typeof i.timeout ? i.timeout : H(e));
        } else (i = H(e)), (l = s);
        return (
          (e = {
            id: P++,
            callback: n,
            priorityLevel: e,
            startTime: l,
            expirationTime: (i = l + i),
            sortIndex: -1,
          }),
          l > s
            ? ((e.sortIndex = l),
              E(C, e),
              null === T(L) && e === T(C) && (R ? a() : (R = !0), o(j, l - s)))
            : ((e.sortIndex = i), E(L, e), I || A || ((I = !0), r(F))),
          e
        );
      }),
      (t.unstable_shouldYield = function () {
        var e = t.unstable_now();
        Y(e);
        var n = T(L);
        return (
          (n !== O &&
            null !== O &&
            null !== n &&
            null !== n.callback &&
            n.startTime <= e &&
            n.expirationTime < O.expirationTime) ||
          i()
        );
      }),
      (t.unstable_wrapCallback = function (e) {
        var t = N;
        return function () {
          var n = N;
          N = t;
          try {
            return e.apply(this, arguments);
          } finally {
            N = n;
          }
        };
      });
  },
  function (e, t) {
    function n(t, r) {
      return (
        (e.exports = n =
          Object.setPrototypeOf ||
          function (e, t) {
            return (e.__proto__ = t), e;
          }),
        n(t, r)
      );
    }
    e.exports = n;
  },
  function (e, t) {
    function n(t) {
      return (
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? (e.exports = n = function (e) {
              return typeof e;
            })
          : (e.exports = n = function (e) {
              return e &&
                "function" == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? "symbol"
                : typeof e;
            }),
        n(t)
      );
    }
    e.exports = n;
  },
  function (e, t, n) {
    var r = (function (e) {
      "use strict";
      var t = Object.prototype,
        n = t.hasOwnProperty,
        r = "function" == typeof Symbol ? Symbol : {},
        o = r.iterator || "@@iterator",
        a = r.asyncIterator || "@@asyncIterator",
        i = r.toStringTag || "@@toStringTag";
      function s(e, t, n) {
        return (
          Object.defineProperty(e, t, {
            value: n,
            enumerable: !0,
            configurable: !0,
            writable: !0,
          }),
          e[t]
        );
      }
      try {
        s({}, "");
      } catch (e) {
        s = function (e, t, n) {
          return (e[t] = n);
        };
      }
      function l(e, t, n, r) {
        var o = t && t.prototype instanceof d ? t : d,
          a = Object.create(o.prototype),
          i = new x(r || []);
        return (
          (a._invoke = (function (e, t, n) {
            var r = "suspendedStart";
            return function (o, a) {
              if ("executing" === r)
                throw new Error("Generator is already running");
              if ("completed" === r) {
                if ("throw" === o) throw a;
                return E();
              }
              for (n.method = o, n.arg = a; ; ) {
                var i = n.delegate;
                if (i) {
                  var s = y(i, n);
                  if (s) {
                    if (s === u) continue;
                    return s;
                  }
                }
                if ("next" === n.method) n.sent = n._sent = n.arg;
                else if ("throw" === n.method) {
                  if ("suspendedStart" === r) throw ((r = "completed"), n.arg);
                  n.dispatchException(n.arg);
                } else "return" === n.method && n.abrupt("return", n.arg);
                r = "executing";
                var l = c(e, t, n);
                if ("normal" === l.type) {
                  if (
                    ((r = n.done ? "completed" : "suspendedYield"), l.arg === u)
                  )
                    continue;
                  return { value: l.arg, done: n.done };
                }
                "throw" === l.type &&
                  ((r = "completed"), (n.method = "throw"), (n.arg = l.arg));
              }
            };
          })(e, n, i)),
          a
        );
      }
      function c(e, t, n) {
        try {
          return { type: "normal", arg: e.call(t, n) };
        } catch (e) {
          return { type: "throw", arg: e };
        }
      }
      e.wrap = l;
      var u = {};
      function d() {}
      function h() {}
      function p() {}
      var f = {};
      f[o] = function () {
        return this;
      };
      var m = Object.getPrototypeOf,
        g = m && m(m(M([])));
      g && g !== t && n.call(g, o) && (f = g);
      var _ = (p.prototype = d.prototype = Object.create(f));
      function v(e) {
        ["next", "throw", "return"].forEach(function (t) {
          s(e, t, function (e) {
            return this._invoke(t, e);
          });
        });
      }
      function b(e, t) {
        var r;
        this._invoke = function (o, a) {
          function i() {
            return new t(function (r, i) {
              !(function r(o, a, i, s) {
                var l = c(e[o], e, a);
                if ("throw" !== l.type) {
                  var u = l.arg,
                    d = u.value;
                  return d && "object" == typeof d && n.call(d, "__await")
                    ? t.resolve(d.__await).then(
                        function (e) {
                          r("next", e, i, s);
                        },
                        function (e) {
                          r("throw", e, i, s);
                        }
                      )
                    : t.resolve(d).then(
                        function (e) {
                          (u.value = e), i(u);
                        },
                        function (e) {
                          return r("throw", e, i, s);
                        }
                      );
                }
                s(l.arg);
              })(o, a, r, i);
            });
          }
          return (r = r ? r.then(i, i) : i());
        };
      }
      function y(e, t) {
        var n = e.iterator[t.method];
        if (void 0 === n) {
          if (((t.delegate = null), "throw" === t.method)) {
            if (
              e.iterator.return &&
              ((t.method = "return"),
              (t.arg = void 0),
              y(e, t),
              "throw" === t.method)
            )
              return u;
            (t.method = "throw"),
              (t.arg = new TypeError(
                "The iterator does not provide a 'throw' method"
              ));
          }
          return u;
        }
        var r = c(n, e.iterator, t.arg);
        if ("throw" === r.type)
          return (t.method = "throw"), (t.arg = r.arg), (t.delegate = null), u;
        var o = r.arg;
        return o
          ? o.done
            ? ((t[e.resultName] = o.value),
              (t.next = e.nextLoc),
              "return" !== t.method && ((t.method = "next"), (t.arg = void 0)),
              (t.delegate = null),
              u)
            : o
          : ((t.method = "throw"),
            (t.arg = new TypeError("iterator result is not an object")),
            (t.delegate = null),
            u);
      }
      function w(e) {
        var t = { tryLoc: e[0] };
        1 in e && (t.catchLoc = e[1]),
          2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])),
          this.tryEntries.push(t);
      }
      function k(e) {
        var t = e.completion || {};
        (t.type = "normal"), delete t.arg, (e.completion = t);
      }
      function x(e) {
        (this.tryEntries = [{ tryLoc: "root" }]),
          e.forEach(w, this),
          this.reset(!0);
      }
      function M(e) {
        if (e) {
          var t = e[o];
          if (t) return t.call(e);
          if ("function" == typeof e.next) return e;
          if (!isNaN(e.length)) {
            var r = -1,
              a = function t() {
                for (; ++r < e.length; )
                  if (n.call(e, r)) return (t.value = e[r]), (t.done = !1), t;
                return (t.value = void 0), (t.done = !0), t;
              };
            return (a.next = a);
          }
        }
        return { next: E };
      }
      function E() {
        return { value: void 0, done: !0 };
      }
      return (
        (h.prototype = _.constructor = p),
        (p.constructor = h),
        (h.displayName = s(p, i, "GeneratorFunction")),
        (e.isGeneratorFunction = function (e) {
          var t = "function" == typeof e && e.constructor;
          return (
            !!t &&
            (t === h || "GeneratorFunction" === (t.displayName || t.name))
          );
        }),
        (e.mark = function (e) {
          return (
            Object.setPrototypeOf
              ? Object.setPrototypeOf(e, p)
              : ((e.__proto__ = p), s(e, i, "GeneratorFunction")),
            (e.prototype = Object.create(_)),
            e
          );
        }),
        (e.awrap = function (e) {
          return { __await: e };
        }),
        v(b.prototype),
        (b.prototype[a] = function () {
          return this;
        }),
        (e.AsyncIterator = b),
        (e.async = function (t, n, r, o, a) {
          void 0 === a && (a = Promise);
          var i = new b(l(t, n, r, o), a);
          return e.isGeneratorFunction(n)
            ? i
            : i.next().then(function (e) {
                return e.done ? e.value : i.next();
              });
        }),
        v(_),
        s(_, i, "Generator"),
        (_[o] = function () {
          return this;
        }),
        (_.toString = function () {
          return "[object Generator]";
        }),
        (e.keys = function (e) {
          var t = [];
          for (var n in e) t.push(n);
          return (
            t.reverse(),
            function n() {
              for (; t.length; ) {
                var r = t.pop();
                if (r in e) return (n.value = r), (n.done = !1), n;
              }
              return (n.done = !0), n;
            }
          );
        }),
        (e.values = M),
        (x.prototype = {
          constructor: x,
          reset: function (e) {
            if (
              ((this.prev = 0),
              (this.next = 0),
              (this.sent = this._sent = void 0),
              (this.done = !1),
              (this.delegate = null),
              (this.method = "next"),
              (this.arg = void 0),
              this.tryEntries.forEach(k),
              !e)
            )
              for (var t in this)
                "t" === t.charAt(0) &&
                  n.call(this, t) &&
                  !isNaN(+t.slice(1)) &&
                  (this[t] = void 0);
          },
          stop: function () {
            this.done = !0;
            var e = this.tryEntries[0].completion;
            if ("throw" === e.type) throw e.arg;
            return this.rval;
          },
          dispatchException: function (e) {
            if (this.done) throw e;
            var t = this;
            function r(n, r) {
              return (
                (i.type = "throw"),
                (i.arg = e),
                (t.next = n),
                r && ((t.method = "next"), (t.arg = void 0)),
                !!r
              );
            }
            for (var o = this.tryEntries.length - 1; o >= 0; --o) {
              var a = this.tryEntries[o],
                i = a.completion;
              if ("root" === a.tryLoc) return r("end");
              if (a.tryLoc <= this.prev) {
                var s = n.call(a, "catchLoc"),
                  l = n.call(a, "finallyLoc");
                if (s && l) {
                  if (this.prev < a.catchLoc) return r(a.catchLoc, !0);
                  if (this.prev < a.finallyLoc) return r(a.finallyLoc);
                } else if (s) {
                  if (this.prev < a.catchLoc) return r(a.catchLoc, !0);
                } else {
                  if (!l)
                    throw new Error("try statement without catch or finally");
                  if (this.prev < a.finallyLoc) return r(a.finallyLoc);
                }
              }
            }
          },
          abrupt: function (e, t) {
            for (var r = this.tryEntries.length - 1; r >= 0; --r) {
              var o = this.tryEntries[r];
              if (
                o.tryLoc <= this.prev &&
                n.call(o, "finallyLoc") &&
                this.prev < o.finallyLoc
              ) {
                var a = o;
                break;
              }
            }
            a &&
              ("break" === e || "continue" === e) &&
              a.tryLoc <= t &&
              t <= a.finallyLoc &&
              (a = null);
            var i = a ? a.completion : {};
            return (
              (i.type = e),
              (i.arg = t),
              a
                ? ((this.method = "next"), (this.next = a.finallyLoc), u)
                : this.complete(i)
            );
          },
          complete: function (e, t) {
            if ("throw" === e.type) throw e.arg;
            return (
              "break" === e.type || "continue" === e.type
                ? (this.next = e.arg)
                : "return" === e.type
                ? ((this.rval = this.arg = e.arg),
                  (this.method = "return"),
                  (this.next = "end"))
                : "normal" === e.type && t && (this.next = t),
              u
            );
          },
          finish: function (e) {
            for (var t = this.tryEntries.length - 1; t >= 0; --t) {
              var n = this.tryEntries[t];
              if (n.finallyLoc === e)
                return this.complete(n.completion, n.afterLoc), k(n), u;
            }
          },
          catch: function (e) {
            for (var t = this.tryEntries.length - 1; t >= 0; --t) {
              var n = this.tryEntries[t];
              if (n.tryLoc === e) {
                var r = n.completion;
                if ("throw" === r.type) {
                  var o = r.arg;
                  k(n);
                }
                return o;
              }
            }
            throw new Error("illegal catch attempt");
          },
          delegateYield: function (e, t, n) {
            return (
              (this.delegate = { iterator: M(e), resultName: t, nextLoc: n }),
              "next" === this.method && (this.arg = void 0),
              u
            );
          },
        }),
        e
      );
    })(e.exports);
    try {
      regeneratorRuntime = r;
    } catch (e) {
      Function("r", "regeneratorRuntime = r")(r);
    }
  },
  function (e, t, n) {
    "use strict";
    var r = n(16),
      o = n(84),
      a = n(264),
      i = n(62);
    function s(e) {
      var t = new a(e),
        n = o(a.prototype.request, t);
      return r.extend(n, a.prototype, t), r.extend(n, t), n;
    }
    var l = s(i);
    (l.Axios = a),
      (l.create = function (e) {
        return s(r.merge(i, e));
      }),
      (l.Cancel = n(89)),
      (l.CancelToken = n(277)),
      (l.isCancel = n(88)),
      (l.all = function (e) {
        return Promise.all(e);
      }),
      (l.spread = n(278)),
      (e.exports = l),
      (e.exports.default = l);
  },
  function (e, t) {
    /*!
     * Determine if an object is a Buffer
     *
     * @author   Feross Aboukhadijeh <https://feross.org>
     * @license  MIT
     */
    e.exports = function (e) {
      return (
        null != e &&
        null != e.constructor &&
        "function" == typeof e.constructor.isBuffer &&
        e.constructor.isBuffer(e)
      );
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(62),
      o = n(16),
      a = n(272),
      i = n(273);
    function s(e) {
      (this.defaults = e),
        (this.interceptors = { request: new a(), response: new a() });
    }
    (s.prototype.request = function (e) {
      "string" == typeof e &&
        (e = o.merge({ url: arguments[0] }, arguments[1])),
        ((e = o.merge(
          r,
          { method: "get" },
          this.defaults,
          e
        )).method = e.method.toLowerCase());
      var t = [i, void 0],
        n = Promise.resolve(e);
      for (
        this.interceptors.request.forEach(function (e) {
          t.unshift(e.fulfilled, e.rejected);
        }),
          this.interceptors.response.forEach(function (e) {
            t.push(e.fulfilled, e.rejected);
          });
        t.length;

      )
        n = n.then(t.shift(), t.shift());
      return n;
    }),
      o.forEach(["delete", "get", "head", "options"], function (e) {
        s.prototype[e] = function (t, n) {
          return this.request(o.merge(n || {}, { method: e, url: t }));
        };
      }),
      o.forEach(["post", "put", "patch"], function (e) {
        s.prototype[e] = function (t, n, r) {
          return this.request(o.merge(r || {}, { method: e, url: t, data: n }));
        };
      }),
      (e.exports = s);
  },
  function (e, t, n) {
    "use strict";
    var r = n(16);
    e.exports = function (e, t) {
      r.forEach(e, function (n, r) {
        r !== t &&
          r.toUpperCase() === t.toUpperCase() &&
          ((e[t] = n), delete e[r]);
      });
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(87);
    e.exports = function (e, t, n) {
      var o = n.config.validateStatus;
      n.status && o && !o(n.status)
        ? t(
            r(
              "Request failed with status code " + n.status,
              n.config,
              null,
              n.request,
              n
            )
          )
        : e(n);
    };
  },
  function (e, t, n) {
    "use strict";
    e.exports = function (e, t, n, r, o) {
      return (
        (e.config = t), n && (e.code = n), (e.request = r), (e.response = o), e
      );
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(16);
    function o(e) {
      return encodeURIComponent(e)
        .replace(/%40/gi, "@")
        .replace(/%3A/gi, ":")
        .replace(/%24/g, "$")
        .replace(/%2C/gi, ",")
        .replace(/%20/g, "+")
        .replace(/%5B/gi, "[")
        .replace(/%5D/gi, "]");
    }
    e.exports = function (e, t, n) {
      if (!t) return e;
      var a;
      if (n) a = n(t);
      else if (r.isURLSearchParams(t)) a = t.toString();
      else {
        var i = [];
        r.forEach(t, function (e, t) {
          null != e &&
            (r.isArray(e) ? (t += "[]") : (e = [e]),
            r.forEach(e, function (e) {
              r.isDate(e)
                ? (e = e.toISOString())
                : r.isObject(e) && (e = JSON.stringify(e)),
                i.push(o(t) + "=" + o(e));
            }));
        }),
          (a = i.join("&"));
      }
      return a && (e += (-1 === e.indexOf("?") ? "?" : "&") + a), e;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(16),
      o = [
        "age",
        "authorization",
        "content-length",
        "content-type",
        "etag",
        "expires",
        "from",
        "host",
        "if-modified-since",
        "if-unmodified-since",
        "last-modified",
        "location",
        "max-forwards",
        "proxy-authorization",
        "referer",
        "retry-after",
        "user-agent",
      ];
    e.exports = function (e) {
      var t,
        n,
        a,
        i = {};
      return e
        ? (r.forEach(e.split("\n"), function (e) {
            if (
              ((a = e.indexOf(":")),
              (t = r.trim(e.substr(0, a)).toLowerCase()),
              (n = r.trim(e.substr(a + 1))),
              t)
            ) {
              if (i[t] && o.indexOf(t) >= 0) return;
              i[t] =
                "set-cookie" === t
                  ? (i[t] ? i[t] : []).concat([n])
                  : i[t]
                  ? i[t] + ", " + n
                  : n;
            }
          }),
          i)
        : i;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(16);
    e.exports = r.isStandardBrowserEnv()
      ? (function () {
          var e,
            t = /(msie|trident)/i.test(navigator.userAgent),
            n = document.createElement("a");
          function o(e) {
            var r = e;
            return (
              t && (n.setAttribute("href", r), (r = n.href)),
              n.setAttribute("href", r),
              {
                href: n.href,
                protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
                host: n.host,
                search: n.search ? n.search.replace(/^\?/, "") : "",
                hash: n.hash ? n.hash.replace(/^#/, "") : "",
                hostname: n.hostname,
                port: n.port,
                pathname:
                  "/" === n.pathname.charAt(0) ? n.pathname : "/" + n.pathname,
              }
            );
          }
          return (
            (e = o(window.location.href)),
            function (t) {
              var n = r.isString(t) ? o(t) : t;
              return n.protocol === e.protocol && n.host === e.host;
            }
          );
        })()
      : function () {
          return !0;
        };
  },
  function (e, t, n) {
    "use strict";
    var r = n(16);
    e.exports = r.isStandardBrowserEnv()
      ? {
          write: function (e, t, n, o, a, i) {
            var s = [];
            s.push(e + "=" + encodeURIComponent(t)),
              r.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()),
              r.isString(o) && s.push("path=" + o),
              r.isString(a) && s.push("domain=" + a),
              !0 === i && s.push("secure"),
              (document.cookie = s.join("; "));
          },
          read: function (e) {
            var t = document.cookie.match(
              new RegExp("(^|;\\s*)(" + e + ")=([^;]*)")
            );
            return t ? decodeURIComponent(t[3]) : null;
          },
          remove: function (e) {
            this.write(e, "", Date.now() - 864e5);
          },
        }
      : {
          write: function () {},
          read: function () {
            return null;
          },
          remove: function () {},
        };
  },
  function (e, t, n) {
    "use strict";
    var r = n(16);
    function o() {
      this.handlers = [];
    }
    (o.prototype.use = function (e, t) {
      return (
        this.handlers.push({ fulfilled: e, rejected: t }),
        this.handlers.length - 1
      );
    }),
      (o.prototype.eject = function (e) {
        this.handlers[e] && (this.handlers[e] = null);
      }),
      (o.prototype.forEach = function (e) {
        r.forEach(this.handlers, function (t) {
          null !== t && e(t);
        });
      }),
      (e.exports = o);
  },
  function (e, t, n) {
    "use strict";
    var r = n(16),
      o = n(274),
      a = n(88),
      i = n(62),
      s = n(275),
      l = n(276);
    function c(e) {
      e.cancelToken && e.cancelToken.throwIfRequested();
    }
    e.exports = function (e) {
      return (
        c(e),
        e.baseURL && !s(e.url) && (e.url = l(e.baseURL, e.url)),
        (e.headers = e.headers || {}),
        (e.data = o(e.data, e.headers, e.transformRequest)),
        (e.headers = r.merge(
          e.headers.common || {},
          e.headers[e.method] || {},
          e.headers || {}
        )),
        r.forEach(
          ["delete", "get", "head", "post", "put", "patch", "common"],
          function (t) {
            delete e.headers[t];
          }
        ),
        (e.adapter || i.adapter)(e).then(
          function (t) {
            return (
              c(e), (t.data = o(t.data, t.headers, e.transformResponse)), t
            );
          },
          function (t) {
            return (
              a(t) ||
                (c(e),
                t &&
                  t.response &&
                  (t.response.data = o(
                    t.response.data,
                    t.response.headers,
                    e.transformResponse
                  ))),
              Promise.reject(t)
            );
          }
        )
      );
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(16);
    e.exports = function (e, t, n) {
      return (
        r.forEach(n, function (n) {
          e = n(e, t);
        }),
        e
      );
    };
  },
  function (e, t, n) {
    "use strict";
    e.exports = function (e) {
      return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e);
    };
  },
  function (e, t, n) {
    "use strict";
    e.exports = function (e, t) {
      return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(89);
    function o(e) {
      if ("function" != typeof e)
        throw new TypeError("executor must be a function.");
      var t;
      this.promise = new Promise(function (e) {
        t = e;
      });
      var n = this;
      e(function (e) {
        n.reason || ((n.reason = new r(e)), t(n.reason));
      });
    }
    (o.prototype.throwIfRequested = function () {
      if (this.reason) throw this.reason;
    }),
      (o.source = function () {
        var e;
        return {
          token: new o(function (t) {
            e = t;
          }),
          cancel: e,
        };
      }),
      (e.exports = o);
  },
  function (e, t, n) {
    "use strict";
    e.exports = function (e) {
      return function (t) {
        return e.apply(null, t);
      };
    };
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.default = void 0);
    var r = (function (e) {
        if (e && e.__esModule) return e;
        var t = {};
        if (null != e)
          for (var n in e)
            if (Object.prototype.hasOwnProperty.call(e, n)) {
              var r =
                Object.defineProperty && Object.getOwnPropertyDescriptor
                  ? Object.getOwnPropertyDescriptor(e, n)
                  : {};
              r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]);
            }
        return (t.default = e), t;
      })(n(0)),
      o = p(n(19)),
      a = p(n(44)),
      i = p(n(282)),
      s = p(n(284)),
      l = p(n(286)),
      c = n(91),
      u = n(34),
      d = p(n(93)),
      h = n(63);
    function p(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function f(e) {
      return (
        (function (e) {
          if (Array.isArray(e)) {
            for (var t = 0, n = new Array(e.length); t < e.length; t++)
              n[t] = e[t];
            return n;
          }
        })(e) ||
        (function (e) {
          if (
            Symbol.iterator in Object(e) ||
            "[object Arguments]" === Object.prototype.toString.call(e)
          )
            return Array.from(e);
        })(e) ||
        (function () {
          throw new TypeError(
            "Invalid attempt to spread non-iterable instance"
          );
        })()
      );
    }
    function m() {
      return (m =
        Object.assign ||
        function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n)
              Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }).apply(this, arguments);
    }
    var g = (function (e) {
      var t, n;
      function o() {
        for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++)
          r[o] = arguments[o];
        return (
          ((t = e.call.apply(e, [this].concat(r)) || this).state = {
            toast: [],
          }),
          (t.toastKey = 1),
          (t.collection = {}),
          (t.isToastActive = function (e) {
            return -1 !== t.state.toast.indexOf(e);
          }),
          t
        );
      }
      (n = e),
        ((t = o).prototype = Object.create(n.prototype)),
        (t.prototype.constructor = t),
        (t.__proto__ = n);
      var l = o.prototype;
      return (
        (l.componentDidMount = function () {
          var e = this;
          d.default
            .on(u.ACTION.SHOW, function (t, n) {
              return e.show(t, n);
            })
            .on(u.ACTION.CLEAR, function (t) {
              return t ? e.removeToast(t) : e.clear();
            })
            .emit(u.ACTION.DID_MOUNT, this);
        }),
        (l.componentWillUnmount = function () {
          d.default
            .off(u.ACTION.SHOW)
            .off(u.ACTION.CLEAR)
            .emit(u.ACTION.WILL_UNMOUNT);
        }),
        (l.removeToast = function (e) {
          this.setState(
            {
              toast: this.state.toast.filter(function (t) {
                return t !== e;
              }),
            },
            this.dispatchChange
          );
        }),
        (l.dispatchChange = function () {
          d.default.emit(u.ACTION.ON_CHANGE, this.state.toast.length);
        }),
        (l.makeCloseButton = function (e, t, n) {
          var o = this,
            a = this.props.closeButton;
          return (
            ((0, r.isValidElement)(e) || !1 === e) && (a = e),
            !1 !== a &&
              (0, r.cloneElement)(a, {
                closeToast: function () {
                  return o.removeToast(t);
                },
                type: n,
              })
          );
        }),
        (l.getAutoCloseDelay = function (e) {
          return !1 === e || (0, h.isValidDelay)(e) ? e : this.props.autoClose;
        }),
        (l.canBeRendered = function (e) {
          return (
            (0, r.isValidElement)(e) ||
            "string" == typeof e ||
            "number" == typeof e ||
            "function" == typeof e
          );
        }),
        (l.parseClassName = function (e) {
          return "string" == typeof e
            ? e
            : null !== e && "object" == typeof e && "toString" in e
            ? e.toString()
            : null;
        }),
        (l.show = function (e, t) {
          var n,
            o = this;
          if (!this.canBeRendered(e))
            throw new Error(
              "The element you provided cannot be rendered. You provided an element of type " +
                typeof e
            );
          var a = t.toastId,
            i = function () {
              return o.removeToast(a);
            },
            s = {
              id: a,
              key: t.key || this.toastKey++,
              type: t.type,
              closeToast: i,
              updateId: t.updateId,
              rtl: this.props.rtl,
              position: t.position || this.props.position,
              transition: t.transition || this.props.transition,
              className: this.parseClassName(
                t.className || this.props.toastClassName
              ),
              bodyClassName: this.parseClassName(
                t.bodyClassName || this.props.bodyClassName
              ),
              closeButton: this.makeCloseButton(t.closeButton, a, t.type),
              pauseOnHover:
                "boolean" == typeof t.pauseOnHover
                  ? t.pauseOnHover
                  : this.props.pauseOnHover,
              pauseOnFocusLoss:
                "boolean" == typeof t.pauseOnFocusLoss
                  ? t.pauseOnFocusLoss
                  : this.props.pauseOnFocusLoss,
              draggable:
                "boolean" == typeof t.draggable
                  ? t.draggable
                  : this.props.draggable,
              draggablePercent:
                "number" != typeof t.draggablePercent ||
                isNaN(t.draggablePercent)
                  ? this.props.draggablePercent
                  : t.draggablePercent,
              closeOnClick:
                "boolean" == typeof t.closeOnClick
                  ? t.closeOnClick
                  : this.props.closeOnClick,
              progressClassName: this.parseClassName(
                t.progressClassName || this.props.progressClassName
              ),
              progressStyle: this.props.progressStyle,
              autoClose: this.getAutoCloseDelay(t.autoClose),
              hideProgressBar:
                "boolean" == typeof t.hideProgressBar
                  ? t.hideProgressBar
                  : this.props.hideProgressBar,
              progress: parseFloat(t.progress),
              isProgressDone: t.isProgressDone,
            };
          "function" == typeof t.onOpen && (s.onOpen = t.onOpen),
            "function" == typeof t.onClose && (s.onClose = t.onClose),
            (0, r.isValidElement)(e) &&
            "string" != typeof e.type &&
            "number" != typeof e.type
              ? (e = (0, r.cloneElement)(e, { closeToast: i }))
              : "function" == typeof e && (e = e({ closeToast: i })),
            (this.collection = m(
              {},
              this.collection,
              (((n = {})[a] = { position: s.position, options: s, content: e }),
              n)
            )),
            this.setState(
              {
                toast: (s.updateId
                  ? f(this.state.toast)
                  : f(this.state.toast).concat([a])
                ).filter(function (e) {
                  return e !== t.staleToastId;
                }),
              },
              this.dispatchChange
            );
        }),
        (l.makeToast = function (e, t) {
          return r.default.createElement(
            s.default,
            m({}, t, {
              isDocumentHidden: this.state.isDocumentHidden,
              key: "toast-" + t.key,
            }),
            e
          );
        }),
        (l.clear = function () {
          this.setState({ toast: [] });
        }),
        (l.renderToast = function () {
          var e = this,
            t = {},
            n = this.props,
            o = n.className,
            s = n.style;
          return (
            (n.newestOnTop
              ? Object.keys(this.collection).reverse()
              : Object.keys(this.collection)
            ).forEach(function (n) {
              var r = e.collection[n],
                o = r.position,
                a = r.options,
                i = r.content;
              t[o] || (t[o] = []),
                -1 !== e.state.toast.indexOf(a.id)
                  ? t[o].push(e.makeToast(i, a))
                  : (t[o].push(null), delete e.collection[n]);
            }),
            Object.keys(t).map(function (n) {
              var l = 1 === t[n].length && null === t[n][0],
                c = {
                  className: (0, a.default)(
                    "Toastify__toast-container",
                    "Toastify__toast-container--" + n,
                    { "Toastify__toast-container--rtl": e.props.rtl },
                    e.parseClassName(o)
                  ),
                  style: l ? m({}, s, { pointerEvents: "none" }) : m({}, s),
                };
              return r.default.createElement(
                i.default,
                m({}, c, { key: "container-" + n }),
                t[n]
              );
            })
          );
        }),
        (l.render = function () {
          return r.default.createElement(
            "div",
            { className: "Toastify" },
            this.renderToast()
          );
        }),
        o
      );
    })(r.Component);
    (g.propTypes = {
      position: o.default.oneOf((0, h.objectValues)(u.POSITION)),
      autoClose: h.falseOrDelay,
      closeButton: h.falseOrElement,
      hideProgressBar: o.default.bool,
      pauseOnHover: o.default.bool,
      closeOnClick: o.default.bool,
      newestOnTop: o.default.bool,
      className: o.default.oneOfType([o.default.string, o.default.object]),
      style: o.default.object,
      toastClassName: o.default.oneOfType([o.default.string, o.default.object]),
      bodyClassName: o.default.oneOfType([o.default.string, o.default.object]),
      progressClassName: o.default.oneOfType([
        o.default.string,
        o.default.object,
      ]),
      progressStyle: o.default.object,
      transition: o.default.func,
      rtl: o.default.bool,
      draggable: o.default.bool,
      draggablePercent: o.default.number,
      pauseOnFocusLoss: o.default.bool,
    }),
      (g.defaultProps = {
        position: u.POSITION.TOP_RIGHT,
        transition: c.Bounce,
        rtl: !1,
        autoClose: 5e3,
        hideProgressBar: !1,
        closeButton: r.default.createElement(l.default, null),
        pauseOnHover: !0,
        pauseOnFocusLoss: !0,
        closeOnClick: !0,
        newestOnTop: !1,
        draggable: !0,
        draggablePercent: 80,
        className: null,
        style: null,
        toastClassName: null,
        bodyClassName: null,
        progressClassName: null,
        progressStyle: null,
      });
    var _ = g;
    t.default = _;
  },
  function (e, t, n) {
    "use strict";
    var r = n(281);
    function o() {}
    function a() {}
    (a.resetWarningCache = o),
      (e.exports = function () {
        function e(e, t, n, o, a, i) {
          if (i !== r) {
            var s = new Error(
              "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
            );
            throw ((s.name = "Invariant Violation"), s);
          }
        }
        function t() {
          return e;
        }
        e.isRequired = e;
        var n = {
          array: e,
          bool: e,
          func: e,
          number: e,
          object: e,
          string: e,
          symbol: e,
          any: e,
          arrayOf: t,
          element: e,
          elementType: e,
          instanceOf: t,
          node: e,
          objectOf: t,
          oneOf: t,
          oneOfType: t,
          shape: t,
          exact: t,
          checkPropTypes: a,
          resetWarningCache: o,
        };
        return (n.PropTypes = n), n;
      });
  },
  function (e, t, n) {
    "use strict";
    e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.default = void 0);
    var r = s(n(19)),
      o = s(n(0)),
      a = n(90),
      i = n(283);
    function s(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function l() {
      return (l =
        Object.assign ||
        function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n)
              Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }).apply(this, arguments);
    }
    function c(e) {
      if (void 0 === e)
        throw new ReferenceError(
          "this hasn't been initialised - super() hasn't been called"
        );
      return e;
    }
    var u =
        Object.values ||
        function (e) {
          return Object.keys(e).map(function (t) {
            return e[t];
          });
        },
      d = (function (e) {
        var t, n;
        function r(t, n) {
          var r,
            o = (r = e.call(this, t, n) || this).handleExited.bind(c(c(r)));
          return (r.state = { handleExited: o, firstRender: !0 }), r;
        }
        (n = e),
          ((t = r).prototype = Object.create(n.prototype)),
          (t.prototype.constructor = t),
          (t.__proto__ = n);
        var a = r.prototype;
        return (
          (a.getChildContext = function () {
            return { transitionGroup: { isMounting: !this.appeared } };
          }),
          (a.componentDidMount = function () {
            (this.appeared = !0), (this.mounted = !0);
          }),
          (a.componentWillUnmount = function () {
            this.mounted = !1;
          }),
          (r.getDerivedStateFromProps = function (e, t) {
            var n = t.children,
              r = t.handleExited;
            return {
              children: t.firstRender
                ? (0, i.getInitialChildMapping)(e, r)
                : (0, i.getNextChildMapping)(e, n, r),
              firstRender: !1,
            };
          }),
          (a.handleExited = function (e, t) {
            var n = (0, i.getChildMapping)(this.props.children);
            e.key in n ||
              (e.props.onExited && e.props.onExited(t),
              this.mounted &&
                this.setState(function (t) {
                  var n = l({}, t.children);
                  return delete n[e.key], { children: n };
                }));
          }),
          (a.render = function () {
            var e = this.props,
              t = e.component,
              n = e.childFactory,
              r = (function (e, t) {
                if (null == e) return {};
                var n,
                  r,
                  o = {},
                  a = Object.keys(e);
                for (r = 0; r < a.length; r++)
                  (n = a[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
                return o;
              })(e, ["component", "childFactory"]),
              a = u(this.state.children).map(n);
            return (
              delete r.appear,
              delete r.enter,
              delete r.exit,
              null === t ? a : o.default.createElement(t, r, a)
            );
          }),
          r
        );
      })(o.default.Component);
    (d.childContextTypes = { transitionGroup: r.default.object.isRequired }),
      (d.propTypes = {}),
      (d.defaultProps = {
        component: "div",
        childFactory: function (e) {
          return e;
        },
      });
    var h = (0, a.polyfill)(d);
    (t.default = h), (e.exports = t.default);
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0),
      (t.getChildMapping = o),
      (t.mergeChildMappings = a),
      (t.getInitialChildMapping = function (e, t) {
        return o(e.children, function (n) {
          return (0,
          r.cloneElement)(n, { onExited: t.bind(null, n), in: !0, appear: i(n, "appear", e), enter: i(n, "enter", e), exit: i(n, "exit", e) });
        });
      }),
      (t.getNextChildMapping = function (e, t, n) {
        var s = o(e.children),
          l = a(t, s);
        return (
          Object.keys(l).forEach(function (o) {
            var a = l[o];
            if ((0, r.isValidElement)(a)) {
              var c = o in t,
                u = o in s,
                d = t[o],
                h = (0, r.isValidElement)(d) && !d.props.in;
              !u || (c && !h)
                ? u || !c || h
                  ? u &&
                    c &&
                    (0, r.isValidElement)(d) &&
                    (l[o] = (0, r.cloneElement)(a, {
                      onExited: n.bind(null, a),
                      in: d.props.in,
                      exit: i(a, "exit", e),
                      enter: i(a, "enter", e),
                    }))
                  : (l[o] = (0, r.cloneElement)(a, { in: !1 }))
                : (l[o] = (0, r.cloneElement)(a, {
                    onExited: n.bind(null, a),
                    in: !0,
                    exit: i(a, "exit", e),
                    enter: i(a, "enter", e),
                  }));
            }
          }),
          l
        );
      });
    var r = n(0);
    function o(e, t) {
      var n = Object.create(null);
      return (
        e &&
          r.Children.map(e, function (e) {
            return e;
          }).forEach(function (e) {
            n[e.key] = (function (e) {
              return t && (0, r.isValidElement)(e) ? t(e) : e;
            })(e);
          }),
        n
      );
    }
    function a(e, t) {
      function n(n) {
        return n in t ? t[n] : e[n];
      }
      (e = e || {}), (t = t || {});
      var r,
        o = Object.create(null),
        a = [];
      for (var i in e) i in t ? a.length && ((o[i] = a), (a = [])) : a.push(i);
      var s = {};
      for (var l in t) {
        if (o[l])
          for (r = 0; r < o[l].length; r++) {
            var c = o[l][r];
            s[o[l][r]] = n(c);
          }
        s[l] = n(l);
      }
      for (r = 0; r < a.length; r++) s[a[r]] = n(a[r]);
      return s;
    }
    function i(e, t, n) {
      return null != n[t] ? n[t] : e.props[t];
    }
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.default = void 0);
    var r = (function (e) {
        if (e && e.__esModule) return e;
        var t = {};
        if (null != e)
          for (var n in e)
            if (Object.prototype.hasOwnProperty.call(e, n)) {
              var r =
                Object.defineProperty && Object.getOwnPropertyDescriptor
                  ? Object.getOwnPropertyDescriptor(e, n)
                  : {};
              r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]);
            }
        return (t.default = e), t;
      })(n(0)),
      o = c(n(19)),
      a = c(n(44)),
      i = c(n(285)),
      s = n(34),
      l = n(63);
    function c(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function u() {
      return (u =
        Object.assign ||
        function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n)
              Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }).apply(this, arguments);
    }
    function d(e) {
      return e.targetTouches && e.targetTouches.length >= 1
        ? e.targetTouches[0].clientX
        : e.clientX;
    }
    function h(e) {
      return e.targetTouches && e.targetTouches.length >= 1
        ? e.targetTouches[0].clientY
        : e.clientY;
    }
    var p = function () {},
      f = (function (e) {
        var t, n;
        function o() {
          for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++)
            r[o] = arguments[o];
          return (
            ((t = e.call.apply(e, [this].concat(r)) || this).state = {
              isRunning: !0,
              preventExitTransition: !1,
            }),
            (t.flag = { canCloseOnClick: !0, canDrag: !1 }),
            (t.drag = { start: 0, x: 0, y: 0, deltaX: 0, removalDistance: 0 }),
            (t.ref = null),
            (t.pauseToast = function () {
              t.props.autoClose && t.setState({ isRunning: !1 });
            }),
            (t.playToast = function () {
              t.props.autoClose && t.setState({ isRunning: !0 });
            }),
            (t.onDragStart = function (e) {
              (t.flag.canCloseOnClick = !0),
                (t.flag.canDrag = !0),
                (t.ref.style.transition = ""),
                (t.drag.start = t.drag.x = d(e.nativeEvent)),
                (t.drag.removalDistance =
                  t.ref.offsetWidth * (t.props.draggablePercent / 100));
            }),
            (t.onDragMove = function (e) {
              t.flag.canDrag &&
                (t.state.isRunning && t.pauseToast(),
                (t.drag.x = d(e)),
                (t.drag.deltaX = t.drag.x - t.drag.start),
                t.drag.start !== t.drag.x && (t.flag.canCloseOnClick = !1),
                (t.ref.style.transform = "translateX(" + t.drag.deltaX + "px)"),
                (t.ref.style.opacity =
                  1 - Math.abs(t.drag.deltaX / t.drag.removalDistance)));
            }),
            (t.onDragEnd = function (e) {
              if (t.flag.canDrag) {
                if (
                  ((t.flag.canDrag = !1),
                  Math.abs(t.drag.deltaX) > t.drag.removalDistance)
                )
                  return void t.setState(
                    { preventExitTransition: !0 },
                    t.props.closeToast
                  );
                (t.drag.y = h(e)),
                  (t.ref.style.transition = "transform 0.2s, opacity 0.2s"),
                  (t.ref.style.transform = "translateX(0)"),
                  (t.ref.style.opacity = 1);
              }
            }),
            (t.onDragTransitionEnd = function () {
              var e = t.ref.getBoundingClientRect(),
                n = e.top,
                r = e.bottom,
                o = e.left,
                a = e.right;
              t.props.pauseOnHover &&
              t.drag.x >= o &&
              t.drag.x <= a &&
              t.drag.y >= n &&
              t.drag.y <= r
                ? t.pauseToast()
                : t.playToast();
            }),
            t
          );
        }
        (n = e),
          ((t = o).prototype = Object.create(n.prototype)),
          (t.prototype.constructor = t),
          (t.__proto__ = n);
        var s = o.prototype;
        return (
          (s.componentDidMount = function () {
            this.props.onOpen(this.props.children.props),
              this.props.draggable && this.bindDragEvents(),
              this.props.pauseOnFocusLoss && this.bindFocusEvents();
          }),
          (s.componentDidUpdate = function (e) {
            e.draggable !== this.props.draggable &&
              (this.props.draggable
                ? this.bindDragEvents()
                : this.unbindDragEvents()),
              e.pauseOnFocusLoss !== this.props.pauseOnFocusLoss &&
                (this.props.pauseOnFocusLoss
                  ? this.bindFocusEvents()
                  : this.unbindFocusEvents());
          }),
          (s.componentWillUnmount = function () {
            this.props.onClose(this.props.children.props),
              this.props.draggable && this.unbindDragEvents(),
              this.props.pauseOnFocusLoss && this.unbindFocusEvents();
          }),
          (s.bindFocusEvents = function () {
            window.addEventListener("focus", this.playToast),
              window.addEventListener("blur", this.pauseToast);
          }),
          (s.unbindFocusEvents = function () {
            window.removeEventListener("focus", this.playToast),
              window.removeEventListener("blur", this.pauseToast);
          }),
          (s.bindDragEvents = function () {
            document.addEventListener("mousemove", this.onDragMove),
              document.addEventListener("mouseup", this.onDragEnd),
              document.addEventListener("touchmove", this.onDragMove),
              document.addEventListener("touchend", this.onDragEnd);
          }),
          (s.unbindDragEvents = function () {
            document.removeEventListener("mousemove", this.onDragMove),
              document.removeEventListener("mouseup", this.onDragEnd),
              document.removeEventListener("touchmove", this.onDragMove),
              document.removeEventListener("touchend", this.onDragEnd);
          }),
          (s.render = function () {
            var e = this,
              t = this.props,
              n = t.closeButton,
              o = t.children,
              s = t.autoClose,
              l = t.pauseOnHover,
              c = t.closeOnClick,
              d = t.type,
              h = t.hideProgressBar,
              p = t.closeToast,
              f = t.transition,
              m = t.position,
              g = t.onExited,
              _ = t.className,
              v = t.bodyClassName,
              b = t.progressClassName,
              y = t.progressStyle,
              w = t.updateId,
              k = t.role,
              x = t.progress,
              M = t.isProgressDone,
              E = t.rtl,
              T = {
                className: (0, a.default)(
                  "Toastify__toast",
                  "Toastify__toast--" + d,
                  { "Toastify__toast--rtl": E },
                  _
                ),
              };
            s &&
              l &&
              ((T.onMouseEnter = this.pauseToast),
              (T.onMouseLeave = this.playToast)),
              c &&
                (T.onClick = function () {
                  return e.flag.canCloseOnClick && p();
                });
            var S = parseFloat(x) === x;
            return r.default.createElement(
              f,
              {
                in: this.props.in,
                appear: !0,
                unmountOnExit: !0,
                onExited: g,
                position: m,
                preventExitTransition: this.state.preventExitTransition,
              },
              r.default.createElement(
                "div",
                u({}, T, {
                  ref: function (t) {
                    return (e.ref = t);
                  },
                  onMouseDown: this.onDragStart,
                  onTouchStart: this.onDragStart,
                  onTransitionEnd: this.onDragTransitionEnd,
                }),
                r.default.createElement(
                  "div",
                  u({}, this.props.in && { role: k }, {
                    className: (0, a.default)("Toastify__toast-body", v),
                  }),
                  o
                ),
                n && n,
                (s || S) &&
                  r.default.createElement(
                    i.default,
                    u({}, w && !S ? { key: "pb-" + w } : {}, {
                      rtl: E,
                      delay: s,
                      isRunning: this.state.isRunning,
                      closeToast: p,
                      hide: h,
                      type: d,
                      style: y,
                      className: b,
                      controlledProgress: S,
                      isProgressDone: M,
                      progress: x,
                    })
                  )
              )
            );
          }),
          o
        );
      })(r.Component);
    (f.propTypes = {
      closeButton: l.falseOrElement.isRequired,
      autoClose: l.falseOrDelay.isRequired,
      children: o.default.node.isRequired,
      closeToast: o.default.func.isRequired,
      position: o.default.oneOf((0, l.objectValues)(s.POSITION)).isRequired,
      pauseOnHover: o.default.bool.isRequired,
      pauseOnFocusLoss: o.default.bool.isRequired,
      closeOnClick: o.default.bool.isRequired,
      transition: o.default.func.isRequired,
      rtl: o.default.bool.isRequired,
      hideProgressBar: o.default.bool.isRequired,
      draggable: o.default.bool.isRequired,
      draggablePercent: o.default.number.isRequired,
      in: o.default.bool,
      onExited: o.default.func,
      onOpen: o.default.func,
      onClose: o.default.func,
      type: o.default.oneOf((0, l.objectValues)(s.TYPE)),
      className: o.default.oneOfType([o.default.string, o.default.object]),
      bodyClassName: o.default.oneOfType([o.default.string, o.default.object]),
      progressClassName: o.default.oneOfType([
        o.default.string,
        o.default.object,
      ]),
      progressStyle: o.default.object,
      progress: o.default.number,
      isProgressDone: o.default.bool,
      updateId: o.default.oneOfType([o.default.string, o.default.number]),
      ariaLabel: o.default.string,
    }),
      (f.defaultProps = {
        type: s.TYPE.DEFAULT,
        in: !0,
        onOpen: p,
        onClose: p,
        className: null,
        bodyClassName: null,
        progressClassName: null,
        updateId: null,
        role: "alert",
      });
    var m = f;
    t.default = m;
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.default = void 0);
    var r = l(n(0)),
      o = l(n(19)),
      a = l(n(44)),
      i = n(34),
      s = n(63);
    function l(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function c() {
      return (c =
        Object.assign ||
        function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n)
              Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }).apply(this, arguments);
    }
    function u(e) {
      var t,
        n = e.delay,
        o = e.isRunning,
        i = e.closeToast,
        s = e.type,
        l = e.hide,
        u = e.className,
        d = e.style,
        h = e.controlledProgress,
        p = e.progress,
        f = e.isProgressDone,
        m = e.rtl,
        g = c({}, d, {
          animationDuration: n + "ms",
          animationPlayState: o ? "running" : "paused",
          opacity: l ? 0 : 1,
          transform: h ? "scaleX(" + p + ")" : null,
        }),
        _ = (0, a.default)(
          "Toastify__progress-bar",
          h
            ? "Toastify__progress-bar--controlled"
            : "Toastify__progress-bar--animated",
          "Toastify__progress-bar--" + s,
          { "Toastify__progress-bar--rtl": m },
          u
        ),
        v =
          (((t = {})[h && f ? "onTransitionEnd" : "onAnimationEnd"] =
            h && !f ? null : i),
          t);
      return r.default.createElement("div", c({ className: _, style: g }, v));
    }
    (u.propTypes = {
      delay: s.falseOrDelay.isRequired,
      isRunning: o.default.bool.isRequired,
      closeToast: o.default.func.isRequired,
      rtl: o.default.bool.isRequired,
      type: o.default.string,
      hide: o.default.bool,
      className: o.default.oneOfType([o.default.string, o.default.object]),
      progress: o.default.number,
      controlledProgress: o.default.bool,
      isProgressDone: o.default.bool,
    }),
      (u.defaultProps = { type: i.TYPE.DEFAULT, hide: !1 });
    var d = u;
    t.default = d;
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.default = void 0);
    var r = a(n(0)),
      o = a(n(19));
    function a(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function i(e) {
      var t = e.closeToast,
        n = e.type,
        o = e.ariaLabel;
      return r.default.createElement(
        "button",
        {
          className: "Toastify__close-button Toastify__close-button--" + n,
          type: "button",
          onClick: t,
          "aria-label": o,
        },
        "✖"
      );
    }
    (i.propTypes = {
      closeToast: o.default.func,
      arialLabel: o.default.string,
    }),
      (i.defaultProps = { ariaLabel: "close" });
    var s = i;
    t.default = s;
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0),
      (t.default = t.EXITING = t.ENTERED = t.ENTERING = t.EXITED = t.UNMOUNTED = void 0);
    var r = (function (e) {
        if (e && e.__esModule) return e;
        var t = {};
        if (null != e)
          for (var n in e)
            if (Object.prototype.hasOwnProperty.call(e, n)) {
              var r =
                Object.defineProperty && Object.getOwnPropertyDescriptor
                  ? Object.getOwnPropertyDescriptor(e, n)
                  : {};
              r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]);
            }
        return (t.default = e), t;
      })(n(19)),
      o = s(n(0)),
      a = s(n(40)),
      i = n(90);
    n(288);
    function s(e) {
      return e && e.__esModule ? e : { default: e };
    }
    t.UNMOUNTED = "unmounted";
    t.EXITED = "exited";
    t.ENTERING = "entering";
    t.ENTERED = "entered";
    t.EXITING = "exiting";
    var l = (function (e) {
      var t, n;
      function r(t, n) {
        var r;
        r = e.call(this, t, n) || this;
        var o,
          a = n.transitionGroup,
          i = a && !a.isMounting ? t.enter : t.appear;
        return (
          (r.appearStatus = null),
          t.in
            ? i
              ? ((o = "exited"), (r.appearStatus = "entering"))
              : (o = "entered")
            : (o = t.unmountOnExit || t.mountOnEnter ? "unmounted" : "exited"),
          (r.state = { status: o }),
          (r.nextCallback = null),
          r
        );
      }
      (n = e),
        ((t = r).prototype = Object.create(n.prototype)),
        (t.prototype.constructor = t),
        (t.__proto__ = n);
      var i = r.prototype;
      return (
        (i.getChildContext = function () {
          return { transitionGroup: null };
        }),
        (r.getDerivedStateFromProps = function (e, t) {
          return e.in && "unmounted" === t.status ? { status: "exited" } : null;
        }),
        (i.componentDidMount = function () {
          this.updateStatus(!0, this.appearStatus);
        }),
        (i.componentDidUpdate = function (e) {
          var t = null;
          if (e !== this.props) {
            var n = this.state.status;
            this.props.in
              ? "entering" !== n && "entered" !== n && (t = "entering")
              : ("entering" !== n && "entered" !== n) || (t = "exiting");
          }
          this.updateStatus(!1, t);
        }),
        (i.componentWillUnmount = function () {
          this.cancelNextCallback();
        }),
        (i.getTimeouts = function () {
          var e,
            t,
            n,
            r = this.props.timeout;
          return (
            (e = t = n = r),
            null != r &&
              "number" != typeof r &&
              ((e = r.exit),
              (t = r.enter),
              (n = void 0 !== r.appear ? r.appear : t)),
            { exit: e, enter: t, appear: n }
          );
        }),
        (i.updateStatus = function (e, t) {
          if ((void 0 === e && (e = !1), null !== t)) {
            this.cancelNextCallback();
            var n = a.default.findDOMNode(this);
            "entering" === t ? this.performEnter(n, e) : this.performExit(n);
          } else
            this.props.unmountOnExit &&
              "exited" === this.state.status &&
              this.setState({ status: "unmounted" });
        }),
        (i.performEnter = function (e, t) {
          var n = this,
            r = this.props.enter,
            o = this.context.transitionGroup
              ? this.context.transitionGroup.isMounting
              : t,
            a = this.getTimeouts(),
            i = o ? a.appear : a.enter;
          t || r
            ? (this.props.onEnter(e, o),
              this.safeSetState({ status: "entering" }, function () {
                n.props.onEntering(e, o),
                  n.onTransitionEnd(e, i, function () {
                    n.safeSetState({ status: "entered" }, function () {
                      n.props.onEntered(e, o);
                    });
                  });
              }))
            : this.safeSetState({ status: "entered" }, function () {
                n.props.onEntered(e);
              });
        }),
        (i.performExit = function (e) {
          var t = this,
            n = this.props.exit,
            r = this.getTimeouts();
          n
            ? (this.props.onExit(e),
              this.safeSetState({ status: "exiting" }, function () {
                t.props.onExiting(e),
                  t.onTransitionEnd(e, r.exit, function () {
                    t.safeSetState({ status: "exited" }, function () {
                      t.props.onExited(e);
                    });
                  });
              }))
            : this.safeSetState({ status: "exited" }, function () {
                t.props.onExited(e);
              });
        }),
        (i.cancelNextCallback = function () {
          null !== this.nextCallback &&
            (this.nextCallback.cancel(), (this.nextCallback = null));
        }),
        (i.safeSetState = function (e, t) {
          (t = this.setNextCallback(t)), this.setState(e, t);
        }),
        (i.setNextCallback = function (e) {
          var t = this,
            n = !0;
          return (
            (this.nextCallback = function (r) {
              n && ((n = !1), (t.nextCallback = null), e(r));
            }),
            (this.nextCallback.cancel = function () {
              n = !1;
            }),
            this.nextCallback
          );
        }),
        (i.onTransitionEnd = function (e, t, n) {
          this.setNextCallback(n);
          var r = null == t && !this.props.addEndListener;
          e && !r
            ? (this.props.addEndListener &&
                this.props.addEndListener(e, this.nextCallback),
              null != t && setTimeout(this.nextCallback, t))
            : setTimeout(this.nextCallback, 0);
        }),
        (i.render = function () {
          var e = this.state.status;
          if ("unmounted" === e) return null;
          var t = this.props,
            n = t.children,
            r = (function (e, t) {
              if (null == e) return {};
              var n,
                r,
                o = {},
                a = Object.keys(e);
              for (r = 0; r < a.length; r++)
                (n = a[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
              return o;
            })(t, ["children"]);
          if (
            (delete r.in,
            delete r.mountOnEnter,
            delete r.unmountOnExit,
            delete r.appear,
            delete r.enter,
            delete r.exit,
            delete r.timeout,
            delete r.addEndListener,
            delete r.onEnter,
            delete r.onEntering,
            delete r.onEntered,
            delete r.onExit,
            delete r.onExiting,
            delete r.onExited,
            "function" == typeof n)
          )
            return n(e, r);
          var a = o.default.Children.only(n);
          return o.default.cloneElement(a, r);
        }),
        r
      );
    })(o.default.Component);
    function c() {}
    (l.contextTypes = { transitionGroup: r.object }),
      (l.childContextTypes = { transitionGroup: function () {} }),
      (l.propTypes = {}),
      (l.defaultProps = {
        in: !1,
        mountOnEnter: !1,
        unmountOnExit: !1,
        appear: !1,
        enter: !0,
        exit: !0,
        onEnter: c,
        onEntering: c,
        onEntered: c,
        onExit: c,
        onExiting: c,
        onExited: c,
      }),
      (l.UNMOUNTED = 0),
      (l.EXITED = 1),
      (l.ENTERING = 2),
      (l.ENTERED = 3),
      (l.EXITING = 4);
    var u = (0, i.polyfill)(l);
    t.default = u;
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.classNamesShape = t.timeoutsShape = void 0);
    var r;
    (r = n(19)) && r.__esModule;
    t.timeoutsShape = null;
    t.classNamesShape = null;
  },
  function (e, t, n) {
    "use strict";
    (t.__esModule = !0), (t.default = void 0);
    var r,
      o = (r = n(93)) && r.__esModule ? r : { default: r },
      a = n(34);
    function i() {
      return (i =
        Object.assign ||
        function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n)
              Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }).apply(this, arguments);
    }
    var s = null,
      l = [],
      c = function () {
        return !1;
      };
    function u(e, t) {
      return i({}, e, { type: t, toastId: h(e) });
    }
    function d() {
      return (Math.random().toString(36) + Date.now().toString(36)).substr(
        2,
        10
      );
    }
    function h(e) {
      return e &&
        ("string" == typeof e.toastId ||
          ("number" == typeof e.toastId && !isNaN(e.toastId)))
        ? e.toastId
        : d();
    }
    function p(e, t) {
      return (
        null !== s
          ? o.default.emit(a.ACTION.SHOW, e, t)
          : l.push({ action: a.ACTION.SHOW, content: e, options: t }),
        t.toastId
      );
    }
    var f = i(
      function (e, t) {
        return p(e, u(t, (t && t.type) || a.TYPE.DEFAULT));
      },
      {
        success: function (e, t) {
          return p(e, u(t, a.TYPE.SUCCESS));
        },
        info: function (e, t) {
          return p(e, u(t, a.TYPE.INFO));
        },
        warn: function (e, t) {
          return p(e, u(t, a.TYPE.WARNING));
        },
        warning: function (e, t) {
          return p(e, u(t, a.TYPE.WARNING));
        },
        error: function (e, t) {
          return p(e, u(t, a.TYPE.ERROR));
        },
        dismiss: function (e) {
          return (
            void 0 === e && (e = null), s && o.default.emit(a.ACTION.CLEAR, e)
          );
        },
        isActive: c,
        update: function (e, t) {
          setTimeout(function () {
            if (s && void 0 !== s.collection[e]) {
              var n = s.collection[e],
                r = n.options,
                o = n.content,
                a = i({}, r, t, { toastId: t.toastId || e });
              t.toastId && t.toastId !== e
                ? (a.staleToastId = e)
                : (a.updateId = d());
              var l = void 0 !== a.render ? a.render : o;
              delete a.render, p(l, a);
            }
          }, 0);
        },
        done: function (e, t) {
          void 0 === t && (t = 1),
            f.update(e, { progress: t, isProgressDone: !0 });
        },
        onChange: function (e) {
          "function" == typeof e && o.default.on(a.ACTION.ON_CHANGE, e);
        },
        POSITION: a.POSITION,
        TYPE: a.TYPE,
      }
    );
    o.default
      .on(a.ACTION.DID_MOUNT, function (e) {
        (s = e),
          (f.isActive = function (e) {
            return s.isToastActive(e);
          }),
          l.forEach(function (e) {
            o.default.emit(e.action, e.content, e.options);
          }),
          (l = []);
      })
      .on(a.ACTION.WILL_UNMOUNT, function () {
        (s = null), (f.isActive = c);
      });
    var m = f;
    t.default = m;
  },
  function (e, t, n) {
    var r = {
      "./af": 94,
      "./af.js": 94,
      "./ar": 95,
      "./ar-dz": 96,
      "./ar-dz.js": 96,
      "./ar-kw": 97,
      "./ar-kw.js": 97,
      "./ar-ly": 98,
      "./ar-ly.js": 98,
      "./ar-ma": 99,
      "./ar-ma.js": 99,
      "./ar-sa": 100,
      "./ar-sa.js": 100,
      "./ar-tn": 101,
      "./ar-tn.js": 101,
      "./ar.js": 95,
      "./az": 102,
      "./az.js": 102,
      "./be": 103,
      "./be.js": 103,
      "./bg": 104,
      "./bg.js": 104,
      "./bm": 105,
      "./bm.js": 105,
      "./bn": 106,
      "./bn-bd": 107,
      "./bn-bd.js": 107,
      "./bn.js": 106,
      "./bo": 108,
      "./bo.js": 108,
      "./br": 109,
      "./br.js": 109,
      "./bs": 110,
      "./bs.js": 110,
      "./ca": 111,
      "./ca.js": 111,
      "./cs": 112,
      "./cs.js": 112,
      "./cv": 113,
      "./cv.js": 113,
      "./cy": 114,
      "./cy.js": 114,
      "./da": 115,
      "./da.js": 115,
      "./de": 116,
      "./de-at": 117,
      "./de-at.js": 117,
      "./de-ch": 118,
      "./de-ch.js": 118,
      "./de.js": 116,
      "./dv": 119,
      "./dv.js": 119,
      "./el": 120,
      "./el.js": 120,
      "./en-au": 121,
      "./en-au.js": 121,
      "./en-ca": 122,
      "./en-ca.js": 122,
      "./en-gb": 123,
      "./en-gb.js": 123,
      "./en-ie": 124,
      "./en-ie.js": 124,
      "./en-il": 125,
      "./en-il.js": 125,
      "./en-in": 126,
      "./en-in.js": 126,
      "./en-nz": 127,
      "./en-nz.js": 127,
      "./en-sg": 128,
      "./en-sg.js": 128,
      "./eo": 129,
      "./eo.js": 129,
      "./es": 130,
      "./es-do": 131,
      "./es-do.js": 131,
      "./es-mx": 132,
      "./es-mx.js": 132,
      "./es-us": 133,
      "./es-us.js": 133,
      "./es.js": 130,
      "./et": 134,
      "./et.js": 134,
      "./eu": 135,
      "./eu.js": 135,
      "./fa": 136,
      "./fa.js": 136,
      "./fi": 137,
      "./fi.js": 137,
      "./fil": 138,
      "./fil.js": 138,
      "./fo": 139,
      "./fo.js": 139,
      "./fr": 140,
      "./fr-ca": 141,
      "./fr-ca.js": 141,
      "./fr-ch": 142,
      "./fr-ch.js": 142,
      "./fr.js": 140,
      "./fy": 143,
      "./fy.js": 143,
      "./ga": 144,
      "./ga.js": 144,
      "./gd": 145,
      "./gd.js": 145,
      "./gl": 146,
      "./gl.js": 146,
      "./gom-deva": 147,
      "./gom-deva.js": 147,
      "./gom-latn": 148,
      "./gom-latn.js": 148,
      "./gu": 149,
      "./gu.js": 149,
      "./he": 150,
      "./he.js": 150,
      "./hi": 151,
      "./hi.js": 151,
      "./hr": 152,
      "./hr.js": 152,
      "./hu": 153,
      "./hu.js": 153,
      "./hy-am": 154,
      "./hy-am.js": 154,
      "./id": 155,
      "./id.js": 155,
      "./is": 156,
      "./is.js": 156,
      "./it": 157,
      "./it-ch": 158,
      "./it-ch.js": 158,
      "./it.js": 157,
      "./ja": 159,
      "./ja.js": 159,
      "./jv": 160,
      "./jv.js": 160,
      "./ka": 161,
      "./ka.js": 161,
      "./kk": 162,
      "./kk.js": 162,
      "./km": 163,
      "./km.js": 163,
      "./kn": 164,
      "./kn.js": 164,
      "./ko": 165,
      "./ko.js": 165,
      "./ku": 166,
      "./ku.js": 166,
      "./ky": 167,
      "./ky.js": 167,
      "./lb": 168,
      "./lb.js": 168,
      "./lo": 169,
      "./lo.js": 169,
      "./lt": 170,
      "./lt.js": 170,
      "./lv": 171,
      "./lv.js": 171,
      "./me": 172,
      "./me.js": 172,
      "./mi": 173,
      "./mi.js": 173,
      "./mk": 174,
      "./mk.js": 174,
      "./ml": 175,
      "./ml.js": 175,
      "./mn": 176,
      "./mn.js": 176,
      "./mr": 177,
      "./mr.js": 177,
      "./ms": 178,
      "./ms-my": 179,
      "./ms-my.js": 179,
      "./ms.js": 178,
      "./mt": 180,
      "./mt.js": 180,
      "./my": 181,
      "./my.js": 181,
      "./nb": 182,
      "./nb.js": 182,
      "./ne": 183,
      "./ne.js": 183,
      "./nl": 184,
      "./nl-be": 185,
      "./nl-be.js": 185,
      "./nl.js": 184,
      "./nn": 186,
      "./nn.js": 186,
      "./oc-lnc": 187,
      "./oc-lnc.js": 187,
      "./pa-in": 188,
      "./pa-in.js": 188,
      "./pl": 189,
      "./pl.js": 189,
      "./pt": 190,
      "./pt-br": 191,
      "./pt-br.js": 191,
      "./pt.js": 190,
      "./ro": 192,
      "./ro.js": 192,
      "./ru": 193,
      "./ru.js": 193,
      "./sd": 194,
      "./sd.js": 194,
      "./se": 195,
      "./se.js": 195,
      "./si": 196,
      "./si.js": 196,
      "./sk": 197,
      "./sk.js": 197,
      "./sl": 198,
      "./sl.js": 198,
      "./sq": 199,
      "./sq.js": 199,
      "./sr": 200,
      "./sr-cyrl": 201,
      "./sr-cyrl.js": 201,
      "./sr.js": 200,
      "./ss": 202,
      "./ss.js": 202,
      "./sv": 203,
      "./sv.js": 203,
      "./sw": 204,
      "./sw.js": 204,
      "./ta": 205,
      "./ta.js": 205,
      "./te": 206,
      "./te.js": 206,
      "./tet": 207,
      "./tet.js": 207,
      "./tg": 208,
      "./tg.js": 208,
      "./th": 209,
      "./th.js": 209,
      "./tk": 210,
      "./tk.js": 210,
      "./tl-ph": 211,
      "./tl-ph.js": 211,
      "./tlh": 212,
      "./tlh.js": 212,
      "./tr": 213,
      "./tr.js": 213,
      "./tzl": 214,
      "./tzl.js": 214,
      "./tzm": 215,
      "./tzm-latn": 216,
      "./tzm-latn.js": 216,
      "./tzm.js": 215,
      "./ug-cn": 217,
      "./ug-cn.js": 217,
      "./uk": 218,
      "./uk.js": 218,
      "./ur": 219,
      "./ur.js": 219,
      "./uz": 220,
      "./uz-latn": 221,
      "./uz-latn.js": 221,
      "./uz.js": 220,
      "./vi": 222,
      "./vi.js": 222,
      "./x-pseudo": 223,
      "./x-pseudo.js": 223,
      "./yo": 224,
      "./yo.js": 224,
      "./zh-cn": 225,
      "./zh-cn.js": 225,
      "./zh-hk": 226,
      "./zh-hk.js": 226,
      "./zh-mo": 227,
      "./zh-mo.js": 227,
      "./zh-tw": 228,
      "./zh-tw.js": 228,
    };
    function o(e) {
      var t = a(e);
      return n(t);
    }
    function a(e) {
      if (!n.o(r, e)) {
        var t = new Error("Cannot find module '" + e + "'");
        throw ((t.code = "MODULE_NOT_FOUND"), t);
      }
      return r[e];
    }
    (o.keys = function () {
      return Object.keys(r);
    }),
      (o.resolve = a),
      (e.exports = o),
      (o.id = 290);
  },
  function (e, t, n) {
    (t = e.exports = n(292)(!1)).push([
      e.i,
      '.L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] ._3ugAzMTujSg9ifBqUUIF-f, .L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] ._3ugAzMTujSg9ifBqUUIF-f, ._2T9oGsdS8MHeEIJPYzGffV,\n._1YFP-n-SQtRKnhS3-jofoG,\n._3ghtVdChM7H9pmAYyoQB4w {\n  margin-left: -8px;\n  position: absolute;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] ._3ugAzMTujSg9ifBqUUIF-f, .L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] ._3ugAzMTujSg9ifBqUUIF-f, ._2T9oGsdS8MHeEIJPYzGffV,\n._1YFP-n-SQtRKnhS3-jofoG,\n._3ghtVdChM7H9pmAYyoQB4w, .L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] ._3ugAzMTujSg9ifBqUUIF-f::before, .L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] ._3ugAzMTujSg9ifBqUUIF-f::before, ._2T9oGsdS8MHeEIJPYzGffV::before,\n._1YFP-n-SQtRKnhS3-jofoG::before,\n._3ghtVdChM7H9pmAYyoQB4w::before {\n  box-sizing: content-box;\n  position: absolute;\n  border: 8px solid transparent;\n  height: 0;\n  width: 1px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] ._3ugAzMTujSg9ifBqUUIF-f::before, .L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] ._3ugAzMTujSg9ifBqUUIF-f::before, ._2T9oGsdS8MHeEIJPYzGffV::before,\n._1YFP-n-SQtRKnhS3-jofoG::before,\n._3ghtVdChM7H9pmAYyoQB4w::before {\n  content: "";\n  z-index: -1;\n  border-width: 8px;\n  left: -8px;\n  border-bottom-color: #aeaeae;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] ._3ugAzMTujSg9ifBqUUIF-f {\n  top: 0;\n  margin-top: -8px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] ._3ugAzMTujSg9ifBqUUIF-f, .L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] ._3ugAzMTujSg9ifBqUUIF-f::before {\n  border-top: none;\n  border-bottom-color: #f0f0f0;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] ._3ugAzMTujSg9ifBqUUIF-f::before {\n  top: -1px;\n  border-bottom-color: #aeaeae;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] ._3ugAzMTujSg9ifBqUUIF-f, ._2T9oGsdS8MHeEIJPYzGffV,\n._1YFP-n-SQtRKnhS3-jofoG,\n._3ghtVdChM7H9pmAYyoQB4w {\n  bottom: 0;\n  margin-bottom: -8px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] ._3ugAzMTujSg9ifBqUUIF-f, ._2T9oGsdS8MHeEIJPYzGffV,\n._1YFP-n-SQtRKnhS3-jofoG,\n._3ghtVdChM7H9pmAYyoQB4w, .L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] ._3ugAzMTujSg9ifBqUUIF-f::before, ._2T9oGsdS8MHeEIJPYzGffV::before,\n._1YFP-n-SQtRKnhS3-jofoG::before,\n._3ghtVdChM7H9pmAYyoQB4w::before {\n  border-bottom: none;\n  border-top-color: #fff;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] ._3ugAzMTujSg9ifBqUUIF-f::before, ._2T9oGsdS8MHeEIJPYzGffV::before,\n._1YFP-n-SQtRKnhS3-jofoG::before,\n._3ghtVdChM7H9pmAYyoQB4w::before {\n  bottom: -1px;\n  border-top-color: #aeaeae;\n}\n\n._6DhiaoasgeDQ6bTqHFK9P {\n  display: inline-block;\n  padding: 0;\n  border: 0;\n}\n\n._2gZWfqED3a2HGoJMn-_9j3 {\n  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n  font-size: 0.8rem;\n  background-color: #fff;\n  color: #000;\n  border: 1px solid #aeaeae;\n  border-radius: 0.3rem;\n  display: inline-block;\n  position: relative;\n}\n\n._2k3wRazeoT6t5VSUgQrKB ._3ugAzMTujSg9ifBqUUIF-f {\n  left: 35px;\n}\n\n._2k3wRazeoT6t5VSUgQrKB ._1I5ZBptBLB1lwL6-sdg6Q0 {\n  border-left: 0;\n}\n\n._2k3wRazeoT6t5VSUgQrKB ._3-AnqCubPlJjoSmJnI6JQq {\n  border-radius: 0.3rem;\n}\n\n._2k3wRazeoT6t5VSUgQrKB ._3LdBRLh1m-qRT2McBDZDUv {\n  border-radius: 0.3rem;\n}\n\n._3ugAzMTujSg9ifBqUUIF-f {\n  position: absolute;\n  left: 50px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9 {\n  z-index: 1;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="bottom"] {\n  margin-top: 10px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement="bottom-end"] ._3ugAzMTujSg9ifBqUUIF-f, .L5znYXFR9WuQ8E3bidqn9[data-placement="top-end"] ._3ugAzMTujSg9ifBqUUIF-f {\n  left: auto;\n  right: 50px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="top"] {\n  margin-bottom: 10px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="right"] {\n  margin-left: 8px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="right"] ._3ugAzMTujSg9ifBqUUIF-f {\n  left: auto;\n  right: 42px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="left"] {\n  margin-right: 8px;\n}\n\n.L5znYXFR9WuQ8E3bidqn9[data-placement^="left"] ._3ugAzMTujSg9ifBqUUIF-f {\n  left: 42px;\n  right: auto;\n}\n\n.bvy5Cjx43oLbi7dZLWhqZ {\n  text-align: center;\n  background-color: #f0f0f0;\n  border-bottom: 1px solid #aeaeae;\n  border-top-left-radius: 0.3rem;\n  border-top-right-radius: 0.3rem;\n  padding-top: 8px;\n  position: relative;\n}\n\n.Y5ogfqYiuF3jXSoDFM2Di {\n  padding-bottom: 8px;\n  padding-left: 5px;\n  padding-right: 5px;\n}\n\n._2-xKlUHzFaItKCSokxoUtM,\n.oc8swDh1t_IEOIcX19Z6x,\n._2wkO3T8QZXAj70_b2Ionsf,\n._3SvqUJaHhUX0KSMuXnhEb7,\n._1c9uVGRkDV8Owxk_vfY6Mh,\n._1-RkSBolxBz1GIvhKbvxhx {\n  display: inline-block;\n  margin: 0 2px;\n}\n\n._1ZB8-613nf1BtzQGeCTnlL,\n._3okACEY07arQfS0tMN2Owy,\n._22DSFGuti5VSLjxhkEn51p {\n  margin-top: 0;\n  color: #000;\n  font-weight: bold;\n  font-size: 0.944rem;\n}\n\n._3okACEY07arQfS0tMN2Owy {\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  overflow: hidden;\n}\n\n._1_YJ1V8Ks5WCUQtxKyqZDs {\n  background: none;\n  line-height: 1.7rem;\n  text-align: center;\n  cursor: pointer;\n  position: absolute;\n  top: 10px;\n  width: 0;\n  padding: 0;\n  border: 0.45rem solid transparent;\n  z-index: 1;\n  height: 10px;\n  width: 10px;\n  text-indent: -999em;\n  overflow: hidden;\n}\n\n._3fEwp9YNtqt7ObKsBIEvJy {\n  left: 10px;\n  border-right-color: #ccc;\n}\n\n._3fEwp9YNtqt7ObKsBIEvJy:hover {\n  border-right-color: #b3b3b3;\n}\n\n._1B0amQvOVwTd2eF6BWK4UB, ._1B0amQvOVwTd2eF6BWK4UB:hover {\n  border-right-color: #e6e6e6;\n  cursor: default;\n}\n\n._3f3h3XrRF-ycIV_xJFRkZh {\n  right: 10px;\n  border-left-color: #ccc;\n}\n\n._225HcqOgHK48BlV_2P4p_c:not(._3CmXYFTgMVy9IdrVnX21by) {\n  right: 80px;\n}\n\n._3f3h3XrRF-ycIV_xJFRkZh:hover {\n  border-left-color: #b3b3b3;\n}\n\n._1dh1apPMUyOspREDFhpNnH, ._1dh1apPMUyOspREDFhpNnH:hover {\n  border-left-color: #e6e6e6;\n  cursor: default;\n}\n\n.da6-PGNQJ8GqWjCY2Tvmy {\n  position: relative;\n  top: 0;\n  display: block;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n.mhsjF-LzIcnZJeKvKB8c5 {\n  top: 4px;\n  border-top-color: #ccc;\n}\n\n.mhsjF-LzIcnZJeKvKB8c5:hover {\n  border-top-color: #b3b3b3;\n}\n\n._15BywuZzUFRWhCKJXP6510 {\n  top: -4px;\n  border-bottom-color: #ccc;\n}\n\n._15BywuZzUFRWhCKJXP6510:hover {\n  border-bottom-color: #b3b3b3;\n}\n\n._1PVXxW_DoznvdVui5vcvb4 {\n  float: left;\n}\n\n._2VqiiADZ3DaIOKOtRPCtCS {\n  margin: 0.4rem;\n  text-align: center;\n  display: flex;\n  flex-wrap: wrap;\n}\n\n._2NdnRGFcT5dF3Av_kxv9Us {\n  display: inline-block;\n  cursor: pointer;\n  flex: 1 0 30%;\n  width: 12px;\n  padding: 2px;\n}\n\n._3sG9QW-BHtZHo4v-9j2RHg {\n  margin: 0.4rem;\n  text-align: center;\n}\n\n._3sG9QW-BHtZHo4v-9j2RHg ._2gfVvc8TrOgBl8ULSUnkL-,\n._3sG9QW-BHtZHo4v-9j2RHg ._1r81_zdD2qRqW7GNfQyuj {\n  display: inline-block;\n  width: 4rem;\n  margin: 2px;\n}\n\n._1bLc7_UvNXMl_mlChogmCg {\n  clear: both;\n  width: 100%;\n  float: left;\n  margin: 5px 0 10px 15px;\n  text-align: left;\n}\n\n._1bLc7_UvNXMl_mlChogmCg ._2XUolo4-gvl1GCHftlCpXs {\n  display: inline-block;\n}\n\n._1bLc7_UvNXMl_mlChogmCg .xNcQT7qO1kog2JXUyuVH9 {\n  display: inline-block;\n}\n\n._1bLc7_UvNXMl_mlChogmCg .xNcQT7qO1kog2JXUyuVH9 ._1-pWe_lZXeHlgIje1eaiUh {\n  display: inline-block;\n  margin-left: 10px;\n}\n\n._1bLc7_UvNXMl_mlChogmCg .xNcQT7qO1kog2JXUyuVH9 ._1-pWe_lZXeHlgIje1eaiUh input {\n  width: 85px;\n}\n\n._1bLc7_UvNXMl_mlChogmCg .xNcQT7qO1kog2JXUyuVH9 ._1-pWe_lZXeHlgIje1eaiUh input[type="time"]::-webkit-inner-spin-button,\n._1bLc7_UvNXMl_mlChogmCg .xNcQT7qO1kog2JXUyuVH9 ._1-pWe_lZXeHlgIje1eaiUh input[type="time"]::-webkit-outer-spin-button {\n  -webkit-appearance: none;\n  margin: 0;\n}\n\n._1bLc7_UvNXMl_mlChogmCg .xNcQT7qO1kog2JXUyuVH9 ._1-pWe_lZXeHlgIje1eaiUh input[type="time"] {\n  -moz-appearance: textfield;\n}\n\n._1bLc7_UvNXMl_mlChogmCg .xNcQT7qO1kog2JXUyuVH9 ._3fxNbH9fvxTemHO0VK0yy4 {\n  margin-left: 5px;\n  display: inline-block;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 {\n  float: right;\n  border-left: 1px solid #aeaeae;\n  width: 85px;\n}\n\n._336qmgxFYSSwzHCdhLcQhk {\n  display: inline;\n  border: 1px solid #aeaeae;\n  border-radius: 0.3rem;\n  position: absolute;\n  right: -72px;\n  top: 0;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq {\n  position: relative;\n  background: white;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq ._3LdBRLh1m-qRT2McBDZDUv {\n  width: 85px;\n  overflow-x: hidden;\n  margin: 0 auto;\n  text-align: center;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq ._3LdBRLh1m-qRT2McBDZDUv ul._3RwFcriam7Sgdov6fPEHCZ {\n  list-style: none;\n  margin: 0;\n  height: calc(195px + (1.7rem / 2));\n  overflow-y: scroll;\n  padding-right: 0px;\n  padding-left: 0px;\n  width: 100%;\n  box-sizing: content-box;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq ._3LdBRLh1m-qRT2McBDZDUv ul._3RwFcriam7Sgdov6fPEHCZ li._2GFN3zBP63Dt4zn5w77iVz {\n  height: 30px;\n  padding: 5px 10px;\n  white-space: nowrap;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq ._3LdBRLh1m-qRT2McBDZDUv ul._3RwFcriam7Sgdov6fPEHCZ li._2GFN3zBP63Dt4zn5w77iVz:hover {\n  cursor: pointer;\n  background-color: #f0f0f0;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq ._3LdBRLh1m-qRT2McBDZDUv ul._3RwFcriam7Sgdov6fPEHCZ li._1ysoQRUxaOgaL4BEJJ2-bI {\n  background-color: #216ba5;\n  color: white;\n  font-weight: bold;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq ._3LdBRLh1m-qRT2McBDZDUv ul._3RwFcriam7Sgdov6fPEHCZ li._1ysoQRUxaOgaL4BEJJ2-bI:hover {\n  background-color: #216ba5;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq ._3LdBRLh1m-qRT2McBDZDUv ul._3RwFcriam7Sgdov6fPEHCZ li._3eoHI_l1wu4vKc8xUtjQKF {\n  color: #ccc;\n}\n\n._1I5ZBptBLB1lwL6-sdg6Q0 ._3-AnqCubPlJjoSmJnI6JQq ._3LdBRLh1m-qRT2McBDZDUv ul._3RwFcriam7Sgdov6fPEHCZ li._3eoHI_l1wu4vKc8xUtjQKF:hover {\n  cursor: default;\n  background-color: transparent;\n}\n\n._3UCfudBVQx2ImsxfxR3JH5 {\n  color: #ccc;\n  display: inline-block;\n  width: 1.7rem;\n  line-height: 1.7rem;\n  text-align: center;\n  margin: 0.166rem;\n}\n\n._3UCfudBVQx2ImsxfxR3JH5._1a3AFhzE97CmWoM3ZlStZK {\n  cursor: pointer;\n}\n\n._3UCfudBVQx2ImsxfxR3JH5._1a3AFhzE97CmWoM3ZlStZK:hover {\n  border-radius: 0.3rem;\n  background-color: #f0f0f0;\n}\n\n.Sj-8bPLs7saf8BsqEl5Na,\n._1PHIc4qKuBvbfsVVuW4N9r {\n  white-space: nowrap;\n}\n\n._3emiwvg6pTnoN-1hLSDHWf,\n._2VFZN66BrwyUk25nyRxh00,\n._2zQ5QgNNrQ49Boaposce1X {\n  color: #000;\n  display: inline-block;\n  width: 1.7rem;\n  line-height: 1.7rem;\n  text-align: center;\n  margin: 0.166rem;\n}\n\n._6qXwGJd2AtFEyyUyZAgwB, ._3lHpcbDdaROBM8kQRKpk1D, ._3bdpD4sjGbsFtY7Wn2CxmM,\n._1u0zq5o_Tk6N3xRx7c9UJl,\n.fz4UEAd5dX3co3ZT9mlOQ,\n._23p99a4WQqgOpQYFCxXCUj {\n  border-radius: 0.3rem;\n  background-color: #216ba5;\n  color: #fff;\n}\n\n._6qXwGJd2AtFEyyUyZAgwB:hover, ._3lHpcbDdaROBM8kQRKpk1D:hover, ._3bdpD4sjGbsFtY7Wn2CxmM:hover,\n._1u0zq5o_Tk6N3xRx7c9UJl:hover,\n.fz4UEAd5dX3co3ZT9mlOQ:hover,\n._23p99a4WQqgOpQYFCxXCUj:hover {\n  background-color: #1d5d90;\n}\n\n._3KPy_CB0yYhy09CNIJ3yfy,\n._2JWXKN1MqU7FEWjp6AoR3a {\n  color: #ccc;\n  pointer-events: none;\n}\n\n._3KPy_CB0yYhy09CNIJ3yfy:hover,\n._2JWXKN1MqU7FEWjp6AoR3a:hover {\n  cursor: default;\n  background-color: transparent;\n}\n\n._2VFZN66BrwyUk25nyRxh00,\n._2gfVvc8TrOgBl8ULSUnkL-,\n._1r81_zdD2qRqW7GNfQyuj {\n  cursor: pointer;\n}\n\n._2VFZN66BrwyUk25nyRxh00:hover,\n._2gfVvc8TrOgBl8ULSUnkL-:hover,\n._1r81_zdD2qRqW7GNfQyuj:hover {\n  border-radius: 0.3rem;\n  background-color: #f0f0f0;\n}\n\n._1BxJmtd08JKrmyusXzLS9Q,\n.PUm5raXeMgch8fadRgfx-,\n.sFVcGGURLPM7C1vGwGzk_ {\n  font-weight: bold;\n}\n\n._18VmqeKJAH9nnxY3njBgb9,\n._20MRNYrvLw9X7pTTl-mj_c,\n._3ggT5yhgG28Oo-078bsKQA {\n  border-radius: 0.3rem;\n  background-color: #3dcc4a;\n  color: #fff;\n}\n\n._18VmqeKJAH9nnxY3njBgb9:hover,\n._20MRNYrvLw9X7pTTl-mj_c:hover,\n._3ggT5yhgG28Oo-078bsKQA:hover {\n  background-color: #32be3f;\n}\n\n._3IZkf9tIcEg_rswBPciHbh,\n._2n8e0K7Vpvz0_Fo_lmefib,\n.ZFnWyaMF6S2xvd1SkruFD {\n  color: magenta;\n}\n\n.bs2Ypjit5TnvVTfLViKtJ,\n.gTE1hmaqjaT82ig4LS4TY,\n._1JqOskd0IT7Rz2X-CtE_7e {\n  color: green;\n}\n\n._2eEsKYjSe6o_F5KgmAiYtj, ._1NYLRmNamemQRNhdYfmsVM, ._1Re2uUuB-0WtZ3SgklYFt-,\n.dKGCoJJcadw36IlRquPiR,\n._28306FE_NmXo63ChJ7UFPB,\n.UqsVFkZX-Av7S_NFm5j-l,\n._15xrJFp71Ry3vhjF8pNyIh,\n._3Vz6EntLXlde2J4CZnNTXq,\n._1t88QUGtroj9DrtzSqNRQD {\n  border-radius: 0.3rem;\n  background-color: #216ba5;\n  color: #fff;\n}\n\n._2eEsKYjSe6o_F5KgmAiYtj:hover, ._1NYLRmNamemQRNhdYfmsVM:hover, ._1Re2uUuB-0WtZ3SgklYFt-:hover,\n.dKGCoJJcadw36IlRquPiR:hover,\n._28306FE_NmXo63ChJ7UFPB:hover,\n.UqsVFkZX-Av7S_NFm5j-l:hover,\n._15xrJFp71Ry3vhjF8pNyIh:hover,\n._3Vz6EntLXlde2J4CZnNTXq:hover,\n._1t88QUGtroj9DrtzSqNRQD:hover {\n  background-color: #1d5d90;\n}\n\n._3YBDVy0bRt6T5KsWDlxgR4,\n._3XTZyvtkXptkPFHbPNCqOd,\n._2bM2N5dUko_VPc3sTDQmii {\n  border-radius: 0.3rem;\n  background-color: #2a87d0;\n  color: #fff;\n}\n\n._3YBDVy0bRt6T5KsWDlxgR4:hover,\n._3XTZyvtkXptkPFHbPNCqOd:hover,\n._2bM2N5dUko_VPc3sTDQmii:hover {\n  background-color: #1d5d90;\n}\n\n._1NYLRmNamemQRNhdYfmsVM ,\n._28306FE_NmXo63ChJ7UFPB ,\n._3Vz6EntLXlde2J4CZnNTXq {\n  background-color: rgba(33, 107, 165, 0.5);\n}\n\n.Ysw7L4pczhGCWcUBKuudW ._1Re2uUuB-0WtZ3SgklYFt- , .Ysw7L4pczhGCWcUBKuudW\n.UqsVFkZX-Av7S_NFm5j-l , .Ysw7L4pczhGCWcUBKuudW\n._1t88QUGtroj9DrtzSqNRQD {\n  background-color: #f0f0f0;\n  color: #000;\n}\n\n._5TNjncXCqolSrGmxRayQR,\n._1D2iTXVfNpxGTppoPcZiCn,\n._1da8uhboA1rlx_hYRIEI2z {\n  cursor: default;\n  color: #ccc;\n}\n\n._5TNjncXCqolSrGmxRayQR:hover,\n._1D2iTXVfNpxGTppoPcZiCn:hover,\n._1da8uhboA1rlx_hYRIEI2z:hover {\n  background-color: transparent;\n}\n\n._2gfVvc8TrOgBl8ULSUnkL-._6qXwGJd2AtFEyyUyZAgwB:hover, ._2gfVvc8TrOgBl8ULSUnkL-._3bdpD4sjGbsFtY7Wn2CxmM:hover, ._2gfVvc8TrOgBl8ULSUnkL-._1u0zq5o_Tk6N3xRx7c9UJl:hover, ._2gfVvc8TrOgBl8ULSUnkL-._23p99a4WQqgOpQYFCxXCUj:hover,\n._1r81_zdD2qRqW7GNfQyuj._6qXwGJd2AtFEyyUyZAgwB:hover,\n._1r81_zdD2qRqW7GNfQyuj._3bdpD4sjGbsFtY7Wn2CxmM:hover,\n._1r81_zdD2qRqW7GNfQyuj._1u0zq5o_Tk6N3xRx7c9UJl:hover,\n._1r81_zdD2qRqW7GNfQyuj._23p99a4WQqgOpQYFCxXCUj:hover {\n  background-color: #216ba5;\n}\n\n._2gfVvc8TrOgBl8ULSUnkL-:hover,\n._1r81_zdD2qRqW7GNfQyuj:hover {\n  background-color: #f0f0f0;\n}\n\n._2XKYvP3uLLLBr5fmPK5BTy {\n  position: relative;\n  display: inline-block;\n  width: 100%;\n}\n\n._24FVlYY7JfX9UbhEeJX1gF,\n._31oMJwaZuplWRD1Dy0LoR-,\n._36WCqzKzUSkR3JyH4HmK6a {\n  border: 1px solid transparent;\n  border-radius: 0.3rem;\n}\n\n._24FVlYY7JfX9UbhEeJX1gF:hover,\n._31oMJwaZuplWRD1Dy0LoR-:hover,\n._36WCqzKzUSkR3JyH4HmK6a:hover {\n  cursor: pointer;\n}\n\n._24FVlYY7JfX9UbhEeJX1gF:hover ._2T9oGsdS8MHeEIJPYzGffV,\n._24FVlYY7JfX9UbhEeJX1gF:hover ._1YFP-n-SQtRKnhS3-jofoG,\n._31oMJwaZuplWRD1Dy0LoR-:hover ._2T9oGsdS8MHeEIJPYzGffV,\n._31oMJwaZuplWRD1Dy0LoR-:hover ._1YFP-n-SQtRKnhS3-jofoG,\n._36WCqzKzUSkR3JyH4HmK6a:hover ._2T9oGsdS8MHeEIJPYzGffV,\n._36WCqzKzUSkR3JyH4HmK6a:hover ._1YFP-n-SQtRKnhS3-jofoG {\n  border-top-color: #b3b3b3;\n}\n\n._2T9oGsdS8MHeEIJPYzGffV,\n._1YFP-n-SQtRKnhS3-jofoG,\n._3ghtVdChM7H9pmAYyoQB4w {\n  border-top-color: #ccc;\n  float: right;\n  margin-left: 20px;\n  top: 8px;\n  position: relative;\n  border-width: 0.45rem;\n}\n\n._1BpmuSV-A92jgWTZJ6zDDC,\n.ArHLYybZpRF15KpTlF-9,\n._3-SN7eECck6Gc1tI1qcp47 {\n  background-color: #f0f0f0;\n  position: absolute;\n  width: 50%;\n  left: 25%;\n  top: 30px;\n  z-index: 1;\n  text-align: center;\n  border-radius: 0.3rem;\n  border: 1px solid #aeaeae;\n}\n\n._1BpmuSV-A92jgWTZJ6zDDC:hover,\n.ArHLYybZpRF15KpTlF-9:hover,\n._3-SN7eECck6Gc1tI1qcp47:hover {\n  cursor: pointer;\n}\n\n._3IG-XCEHAooffSzcTkj9B7,\n._2gFCCa5yqtuinAZNok8Qdz,\n.CkavMZkL1bJ0vrJf8irrd {\n  height: 150px;\n  overflow-y: scroll;\n}\n\n._1X57WBv-mPM7SF1lEkkse9,\n._3XHgRo28ogUeztp73eTKSg,\n._3TZ3-2k9sQHiQQ0hFz-CZE {\n  line-height: 20px;\n  width: 100%;\n  display: block;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n._1X57WBv-mPM7SF1lEkkse9:first-of-type,\n._3XHgRo28ogUeztp73eTKSg:first-of-type,\n._3TZ3-2k9sQHiQQ0hFz-CZE:first-of-type {\n  border-top-left-radius: 0.3rem;\n  border-top-right-radius: 0.3rem;\n}\n\n._1X57WBv-mPM7SF1lEkkse9:last-of-type,\n._3XHgRo28ogUeztp73eTKSg:last-of-type,\n._3TZ3-2k9sQHiQQ0hFz-CZE:last-of-type {\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  border-bottom-left-radius: 0.3rem;\n  border-bottom-right-radius: 0.3rem;\n}\n\n._1X57WBv-mPM7SF1lEkkse9:hover,\n._3XHgRo28ogUeztp73eTKSg:hover,\n._3TZ3-2k9sQHiQQ0hFz-CZE:hover {\n  background-color: #ccc;\n}\n\n._1X57WBv-mPM7SF1lEkkse9:hover ._15BywuZzUFRWhCKJXP6510,\n._3XHgRo28ogUeztp73eTKSg:hover ._15BywuZzUFRWhCKJXP6510,\n._3TZ3-2k9sQHiQQ0hFz-CZE:hover ._15BywuZzUFRWhCKJXP6510 {\n  border-bottom-color: #b3b3b3;\n}\n\n._1X57WBv-mPM7SF1lEkkse9:hover .mhsjF-LzIcnZJeKvKB8c5,\n._3XHgRo28ogUeztp73eTKSg:hover .mhsjF-LzIcnZJeKvKB8c5,\n._3TZ3-2k9sQHiQQ0hFz-CZE:hover .mhsjF-LzIcnZJeKvKB8c5 {\n  border-top-color: #b3b3b3;\n}\n\n._3KbAsNdtn1nppOiRfBtwLV,\n.I5ZRZMYNI6EUjoF_Q4vBG,\n.sIAsOOJoIRTcrn0mi80ob {\n  position: absolute;\n  left: 15px;\n}\n\n._2rIVxBec3mLjh17JexcaNX {\n  cursor: pointer;\n  background-color: transparent;\n  border: 0;\n  outline: 0;\n  padding: 0px 6px 0px 0px;\n  position: absolute;\n  top: 0;\n  right: 0;\n  height: 100%;\n  display: table-cell;\n  vertical-align: middle;\n}\n\n._2rIVxBec3mLjh17JexcaNX::after {\n  cursor: pointer;\n  background-color: #216ba5;\n  color: #fff;\n  border-radius: 50%;\n  height: 16px;\n  width: 16px;\n  padding: 2px;\n  font-size: 12px;\n  line-height: 1;\n  text-align: center;\n  display: table-cell;\n  vertical-align: middle;\n  content: "\\D7";\n}\n\n._2CFcH-C4EeTMGgxrxclbWe {\n  background: #f0f0f0;\n  border-top: 1px solid #aeaeae;\n  cursor: pointer;\n  text-align: center;\n  font-weight: bold;\n  padding: 5px 0;\n  clear: left;\n}\n\n._2H9U1XEeq45REUX2THnz_e {\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  background-color: rgba(0, 0, 0, 0.8);\n  left: 0;\n  top: 0;\n  justify-content: center;\n  align-items: center;\n  display: flex;\n  z-index: 2147483647;\n}\n\n._2H9U1XEeq45REUX2THnz_e ._3emiwvg6pTnoN-1hLSDHWf,\n._2H9U1XEeq45REUX2THnz_e ._2VFZN66BrwyUk25nyRxh00,\n._2H9U1XEeq45REUX2THnz_e ._2zQ5QgNNrQ49Boaposce1X {\n  width: 3rem;\n  line-height: 3rem;\n}\n\n@media (max-width: 400px), (max-height: 550px) {\n  ._2H9U1XEeq45REUX2THnz_e ._3emiwvg6pTnoN-1hLSDHWf,\n  ._2H9U1XEeq45REUX2THnz_e ._2VFZN66BrwyUk25nyRxh00,\n  ._2H9U1XEeq45REUX2THnz_e ._2zQ5QgNNrQ49Boaposce1X {\n    width: 2rem;\n    line-height: 2rem;\n  }\n}\n\n._2H9U1XEeq45REUX2THnz_e ._1ZB8-613nf1BtzQGeCTnlL,\n._2H9U1XEeq45REUX2THnz_e ._3okACEY07arQfS0tMN2Owy {\n  font-size: 1.44rem;\n}\n\n._2H9U1XEeq45REUX2THnz_e ._1_YJ1V8Ks5WCUQtxKyqZDs {\n  border: 0.81rem solid transparent;\n}\n\n._2H9U1XEeq45REUX2THnz_e ._3fEwp9YNtqt7ObKsBIEvJy {\n  border-right-color: #ccc;\n}\n\n._2H9U1XEeq45REUX2THnz_e ._3fEwp9YNtqt7ObKsBIEvJy:hover {\n  border-right-color: #b3b3b3;\n}\n\n._2H9U1XEeq45REUX2THnz_e ._1B0amQvOVwTd2eF6BWK4UB, ._2H9U1XEeq45REUX2THnz_e ._1B0amQvOVwTd2eF6BWK4UB:hover {\n  border-right-color: #e6e6e6;\n  cursor: default;\n}\n\n._2H9U1XEeq45REUX2THnz_e ._3f3h3XrRF-ycIV_xJFRkZh {\n  border-left-color: #ccc;\n}\n\n._2H9U1XEeq45REUX2THnz_e ._3f3h3XrRF-ycIV_xJFRkZh:hover {\n  border-left-color: #b3b3b3;\n}\n\n._2H9U1XEeq45REUX2THnz_e ._1dh1apPMUyOspREDFhpNnH, ._2H9U1XEeq45REUX2THnz_e ._1dh1apPMUyOspREDFhpNnH:hover {\n  border-left-color: #e6e6e6;\n  cursor: default;\n}\n',
      "",
    ]),
      (t.locals = {
        "react-datepicker-popper": "L5znYXFR9WuQ8E3bidqn9",
        "react-datepicker__triangle": "_3ugAzMTujSg9ifBqUUIF-f",
        "react-datepicker__year-read-view--down-arrow":
          "_2T9oGsdS8MHeEIJPYzGffV",
        "react-datepicker__month-read-view--down-arrow":
          "_1YFP-n-SQtRKnhS3-jofoG",
        "react-datepicker__month-year-read-view--down-arrow":
          "_3ghtVdChM7H9pmAYyoQB4w",
        "react-datepicker-wrapper": "_6DhiaoasgeDQ6bTqHFK9P",
        "react-datepicker": "_2gZWfqED3a2HGoJMn-_9j3",
        "react-datepicker--time-only": "_2k3wRazeoT6t5VSUgQrKB",
        "react-datepicker__time-container": "_1I5ZBptBLB1lwL6-sdg6Q0",
        "react-datepicker__time": "_3-AnqCubPlJjoSmJnI6JQq",
        "react-datepicker__time-box": "_3LdBRLh1m-qRT2McBDZDUv",
        "react-datepicker__header": "bvy5Cjx43oLbi7dZLWhqZ",
        "react-datepicker__header--time": "Y5ogfqYiuF3jXSoDFM2Di",
        "react-datepicker__year-dropdown-container--select":
          "_2-xKlUHzFaItKCSokxoUtM",
        "react-datepicker__month-dropdown-container--select":
          "oc8swDh1t_IEOIcX19Z6x",
        "react-datepicker__month-year-dropdown-container--select":
          "_2wkO3T8QZXAj70_b2Ionsf",
        "react-datepicker__year-dropdown-container--scroll":
          "_3SvqUJaHhUX0KSMuXnhEb7",
        "react-datepicker__month-dropdown-container--scroll":
          "_1c9uVGRkDV8Owxk_vfY6Mh",
        "react-datepicker__month-year-dropdown-container--scroll":
          "_1-RkSBolxBz1GIvhKbvxhx",
        "react-datepicker__current-month": "_1ZB8-613nf1BtzQGeCTnlL",
        "react-datepicker-time__header": "_3okACEY07arQfS0tMN2Owy",
        "react-datepicker-year-header": "_22DSFGuti5VSLjxhkEn51p",
        "react-datepicker__navigation": "_1_YJ1V8Ks5WCUQtxKyqZDs",
        "react-datepicker__navigation--previous": "_3fEwp9YNtqt7ObKsBIEvJy",
        "react-datepicker__navigation--previous--disabled":
          "_1B0amQvOVwTd2eF6BWK4UB",
        "react-datepicker__navigation--next": "_3f3h3XrRF-ycIV_xJFRkZh",
        "react-datepicker__navigation--next--with-time":
          "_225HcqOgHK48BlV_2P4p_c",
        "react-datepicker__navigation--next--with-today-button":
          "_3CmXYFTgMVy9IdrVnX21by",
        "react-datepicker__navigation--next--disabled":
          "_1dh1apPMUyOspREDFhpNnH",
        "react-datepicker__navigation--years": "da6-PGNQJ8GqWjCY2Tvmy",
        "react-datepicker__navigation--years-previous": "mhsjF-LzIcnZJeKvKB8c5",
        "react-datepicker__navigation--years-upcoming":
          "_15BywuZzUFRWhCKJXP6510",
        "react-datepicker__month-container": "_1PVXxW_DoznvdVui5vcvb4",
        "react-datepicker__year-container": "_2VqiiADZ3DaIOKOtRPCtCS",
        "react-datepicker__year-container-text": "_2NdnRGFcT5dF3Av_kxv9Us",
        "react-datepicker__month": "_3sG9QW-BHtZHo4v-9j2RHg",
        "react-datepicker__month-text": "_2gfVvc8TrOgBl8ULSUnkL-",
        "react-datepicker__quarter-text": "_1r81_zdD2qRqW7GNfQyuj",
        "react-datepicker__input-time-container": "_1bLc7_UvNXMl_mlChogmCg",
        "react-datepicker-time__caption": "_2XUolo4-gvl1GCHftlCpXs",
        "react-datepicker-time__input-container": "xNcQT7qO1kog2JXUyuVH9",
        "react-datepicker-time__input": "_1-pWe_lZXeHlgIje1eaiUh",
        "react-datepicker-time__delimiter": "_3fxNbH9fvxTemHO0VK0yy4",
        "react-datepicker__time-container--with-today-button":
          "_336qmgxFYSSwzHCdhLcQhk",
        "react-datepicker__time-list": "_3RwFcriam7Sgdov6fPEHCZ",
        "react-datepicker__time-list-item": "_2GFN3zBP63Dt4zn5w77iVz",
        "react-datepicker__time-list-item--selected": "_1ysoQRUxaOgaL4BEJJ2-bI",
        "react-datepicker__time-list-item--disabled": "_3eoHI_l1wu4vKc8xUtjQKF",
        "react-datepicker__week-number": "_3UCfudBVQx2ImsxfxR3JH5",
        "react-datepicker__week-number--clickable": "_1a3AFhzE97CmWoM3ZlStZK",
        "react-datepicker__day-names": "Sj-8bPLs7saf8BsqEl5Na",
        "react-datepicker__week": "_1PHIc4qKuBvbfsVVuW4N9r",
        "react-datepicker__day-name": "_3emiwvg6pTnoN-1hLSDHWf",
        "react-datepicker__day": "_2VFZN66BrwyUk25nyRxh00",
        "react-datepicker__time-name": "_2zQ5QgNNrQ49Boaposce1X",
        "react-datepicker__month--selected": "_6qXwGJd2AtFEyyUyZAgwB",
        "react-datepicker__month--in-selecting-range":
          "_3lHpcbDdaROBM8kQRKpk1D",
        "react-datepicker__month--in-range": "_3bdpD4sjGbsFtY7Wn2CxmM",
        "react-datepicker__quarter--selected": "_1u0zq5o_Tk6N3xRx7c9UJl",
        "react-datepicker__quarter--in-selecting-range":
          "fz4UEAd5dX3co3ZT9mlOQ",
        "react-datepicker__quarter--in-range": "_23p99a4WQqgOpQYFCxXCUj",
        "react-datepicker__month--disabled": "_3KPy_CB0yYhy09CNIJ3yfy",
        "react-datepicker__quarter--disabled": "_2JWXKN1MqU7FEWjp6AoR3a",
        "react-datepicker__day--today": "_1BxJmtd08JKrmyusXzLS9Q",
        "react-datepicker__month-text--today": "PUm5raXeMgch8fadRgfx-",
        "react-datepicker__quarter-text--today": "sFVcGGURLPM7C1vGwGzk_",
        "react-datepicker__day--highlighted": "_18VmqeKJAH9nnxY3njBgb9",
        "react-datepicker__month-text--highlighted": "_20MRNYrvLw9X7pTTl-mj_c",
        "react-datepicker__quarter-text--highlighted":
          "_3ggT5yhgG28Oo-078bsKQA",
        "react-datepicker__day--highlighted-custom-1":
          "_3IZkf9tIcEg_rswBPciHbh",
        "react-datepicker__month-text--highlighted-custom-1":
          "_2n8e0K7Vpvz0_Fo_lmefib",
        "react-datepicker__quarter-text--highlighted-custom-1":
          "ZFnWyaMF6S2xvd1SkruFD",
        "react-datepicker__day--highlighted-custom-2": "bs2Ypjit5TnvVTfLViKtJ",
        "react-datepicker__month-text--highlighted-custom-2":
          "gTE1hmaqjaT82ig4LS4TY",
        "react-datepicker__quarter-text--highlighted-custom-2":
          "_1JqOskd0IT7Rz2X-CtE_7e",
        "react-datepicker__day--selected": "_2eEsKYjSe6o_F5KgmAiYtj",
        "react-datepicker__day--in-selecting-range": "_1NYLRmNamemQRNhdYfmsVM",
        "react-datepicker__day--in-range": "_1Re2uUuB-0WtZ3SgklYFt-",
        "react-datepicker__month-text--selected": "dKGCoJJcadw36IlRquPiR",
        "react-datepicker__month-text--in-selecting-range":
          "_28306FE_NmXo63ChJ7UFPB",
        "react-datepicker__month-text--in-range": "UqsVFkZX-Av7S_NFm5j-l",
        "react-datepicker__quarter-text--selected": "_15xrJFp71Ry3vhjF8pNyIh",
        "react-datepicker__quarter-text--in-selecting-range":
          "_3Vz6EntLXlde2J4CZnNTXq",
        "react-datepicker__quarter-text--in-range": "_1t88QUGtroj9DrtzSqNRQD",
        "react-datepicker__day--keyboard-selected": "_3YBDVy0bRt6T5KsWDlxgR4",
        "react-datepicker__month-text--keyboard-selected":
          "_3XTZyvtkXptkPFHbPNCqOd",
        "react-datepicker__quarter-text--keyboard-selected":
          "_2bM2N5dUko_VPc3sTDQmii",
        "react-datepicker__month--selecting-range": "Ysw7L4pczhGCWcUBKuudW",
        "react-datepicker__day--disabled": "_5TNjncXCqolSrGmxRayQR",
        "react-datepicker__month-text--disabled": "_1D2iTXVfNpxGTppoPcZiCn",
        "react-datepicker__quarter-text--disabled": "_1da8uhboA1rlx_hYRIEI2z",
        "react-datepicker__input-container": "_2XKYvP3uLLLBr5fmPK5BTy",
        "react-datepicker__year-read-view": "_24FVlYY7JfX9UbhEeJX1gF",
        "react-datepicker__month-read-view": "_31oMJwaZuplWRD1Dy0LoR-",
        "react-datepicker__month-year-read-view": "_36WCqzKzUSkR3JyH4HmK6a",
        "react-datepicker__year-dropdown": "_1BpmuSV-A92jgWTZJ6zDDC",
        "react-datepicker__month-dropdown": "ArHLYybZpRF15KpTlF-9",
        "react-datepicker__month-year-dropdown": "_3-SN7eECck6Gc1tI1qcp47",
        "react-datepicker__year-dropdown--scrollable":
          "_3IG-XCEHAooffSzcTkj9B7",
        "react-datepicker__month-dropdown--scrollable":
          "_2gFCCa5yqtuinAZNok8Qdz",
        "react-datepicker__month-year-dropdown--scrollable":
          "CkavMZkL1bJ0vrJf8irrd",
        "react-datepicker__year-option": "_1X57WBv-mPM7SF1lEkkse9",
        "react-datepicker__month-option": "_3XHgRo28ogUeztp73eTKSg",
        "react-datepicker__month-year-option": "_3TZ3-2k9sQHiQQ0hFz-CZE",
        "react-datepicker__year-option--selected": "_3KbAsNdtn1nppOiRfBtwLV",
        "react-datepicker__month-option--selected": "I5ZRZMYNI6EUjoF_Q4vBG",
        "react-datepicker__month-year-option--selected":
          "sIAsOOJoIRTcrn0mi80ob",
        "react-datepicker__close-icon": "_2rIVxBec3mLjh17JexcaNX",
        "react-datepicker__today-button": "_2CFcH-C4EeTMGgxrxclbWe",
        "react-datepicker__portal": "_2H9U1XEeq45REUX2THnz_e",
      });
  },
  function (e, t) {
    e.exports = function (e) {
      var t = [];
      return (
        (t.toString = function () {
          return this.map(function (t) {
            var n = (function (e, t) {
              var n = e[1] || "",
                r = e[3];
              if (!r) return n;
              if (t && "function" == typeof btoa) {
                var o =
                    ((i = r),
                    "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," +
                      btoa(unescape(encodeURIComponent(JSON.stringify(i)))) +
                      " */"),
                  a = r.sources.map(function (e) {
                    return "/*# sourceURL=" + r.sourceRoot + e + " */";
                  });
                return [n].concat(a).concat([o]).join("\n");
              }
              var i;
              return [n].join("\n");
            })(t, e);
            return t[2] ? "@media " + t[2] + "{" + n + "}" : n;
          }).join("");
        }),
        (t.i = function (e, n) {
          "string" == typeof e && (e = [[null, e, ""]]);
          for (var r = {}, o = 0; o < this.length; o++) {
            var a = this[o][0];
            "number" == typeof a && (r[a] = !0);
          }
          for (o = 0; o < e.length; o++) {
            var i = e[o];
            ("number" == typeof i[0] && r[i[0]]) ||
              (n && !i[2]
                ? (i[2] = n)
                : n && (i[2] = "(" + i[2] + ") and (" + n + ")"),
              t.push(i));
          }
        }),
        t
      );
    };
  },
  function (e, t, n) {
    var r,
      o,
      a = {},
      i =
        ((r = function () {
          return window && document && document.all && !window.atob;
        }),
        function () {
          return void 0 === o && (o = r.apply(this, arguments)), o;
        }),
      s = function (e, t) {
        return t ? t.querySelector(e) : document.querySelector(e);
      },
      l = (function (e) {
        var t = {};
        return function (e, n) {
          if ("function" == typeof e) return e();
          if (void 0 === t[e]) {
            var r = s.call(this, e, n);
            if (
              window.HTMLIFrameElement &&
              r instanceof window.HTMLIFrameElement
            )
              try {
                r = r.contentDocument.head;
              } catch (e) {
                r = null;
              }
            t[e] = r;
          }
          return t[e];
        };
      })(),
      c = null,
      u = 0,
      d = [],
      h = n(294);
    function p(e, t) {
      for (var n = 0; n < e.length; n++) {
        var r = e[n],
          o = a[r.id];
        if (o) {
          o.refs++;
          for (var i = 0; i < o.parts.length; i++) o.parts[i](r.parts[i]);
          for (; i < r.parts.length; i++) o.parts.push(b(r.parts[i], t));
        } else {
          var s = [];
          for (i = 0; i < r.parts.length; i++) s.push(b(r.parts[i], t));
          a[r.id] = { id: r.id, refs: 1, parts: s };
        }
      }
    }
    function f(e, t) {
      for (var n = [], r = {}, o = 0; o < e.length; o++) {
        var a = e[o],
          i = t.base ? a[0] + t.base : a[0],
          s = { css: a[1], media: a[2], sourceMap: a[3] };
        r[i] ? r[i].parts.push(s) : n.push((r[i] = { id: i, parts: [s] }));
      }
      return n;
    }
    function m(e, t) {
      var n = l(e.insertInto);
      if (!n)
        throw new Error(
          "Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid."
        );
      var r = d[d.length - 1];
      if ("top" === e.insertAt)
        r
          ? r.nextSibling
            ? n.insertBefore(t, r.nextSibling)
            : n.appendChild(t)
          : n.insertBefore(t, n.firstChild),
          d.push(t);
      else if ("bottom" === e.insertAt) n.appendChild(t);
      else {
        if ("object" != typeof e.insertAt || !e.insertAt.before)
          throw new Error(
            "[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n"
          );
        var o = l(e.insertAt.before, n);
        n.insertBefore(t, o);
      }
    }
    function g(e) {
      if (null === e.parentNode) return !1;
      e.parentNode.removeChild(e);
      var t = d.indexOf(e);
      t >= 0 && d.splice(t, 1);
    }
    function _(e) {
      var t = document.createElement("style");
      if (
        (void 0 === e.attrs.type && (e.attrs.type = "text/css"),
        void 0 === e.attrs.nonce)
      ) {
        var r = (function () {
          0;
          return n.nc;
        })();
        r && (e.attrs.nonce = r);
      }
      return v(t, e.attrs), m(e, t), t;
    }
    function v(e, t) {
      Object.keys(t).forEach(function (n) {
        e.setAttribute(n, t[n]);
      });
    }
    function b(e, t) {
      var n, r, o, a;
      if (t.transform && e.css) {
        if (
          !(a =
            "function" == typeof t.transform
              ? t.transform(e.css)
              : t.transform.default(e.css))
        )
          return function () {};
        e.css = a;
      }
      if (t.singleton) {
        var i = u++;
        (n = c || (c = _(t))),
          (r = k.bind(null, n, i, !1)),
          (o = k.bind(null, n, i, !0));
      } else
        e.sourceMap &&
        "function" == typeof URL &&
        "function" == typeof URL.createObjectURL &&
        "function" == typeof URL.revokeObjectURL &&
        "function" == typeof Blob &&
        "function" == typeof btoa
          ? ((n = (function (e) {
              var t = document.createElement("link");
              return (
                void 0 === e.attrs.type && (e.attrs.type = "text/css"),
                (e.attrs.rel = "stylesheet"),
                v(t, e.attrs),
                m(e, t),
                t
              );
            })(t)),
            (r = M.bind(null, n, t)),
            (o = function () {
              g(n), n.href && URL.revokeObjectURL(n.href);
            }))
          : ((n = _(t)),
            (r = x.bind(null, n)),
            (o = function () {
              g(n);
            }));
      return (
        r(e),
        function (t) {
          if (t) {
            if (
              t.css === e.css &&
              t.media === e.media &&
              t.sourceMap === e.sourceMap
            )
              return;
            r((e = t));
          } else o();
        }
      );
    }
    e.exports = function (e, t) {
      if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document)
        throw new Error(
          "The style-loader cannot be used in a non-browser environment"
        );
      ((t = t || {}).attrs = "object" == typeof t.attrs ? t.attrs : {}),
        t.singleton || "boolean" == typeof t.singleton || (t.singleton = i()),
        t.insertInto || (t.insertInto = "head"),
        t.insertAt || (t.insertAt = "bottom");
      var n = f(e, t);
      return (
        p(n, t),
        function (e) {
          for (var r = [], o = 0; o < n.length; o++) {
            var i = n[o];
            (s = a[i.id]).refs--, r.push(s);
          }
          e && p(f(e, t), t);
          for (o = 0; o < r.length; o++) {
            var s;
            if (0 === (s = r[o]).refs) {
              for (var l = 0; l < s.parts.length; l++) s.parts[l]();
              delete a[s.id];
            }
          }
        }
      );
    };
    var y,
      w =
        ((y = []),
        function (e, t) {
          return (y[e] = t), y.filter(Boolean).join("\n");
        });
    function k(e, t, n, r) {
      var o = n ? "" : r.css;
      if (e.styleSheet) e.styleSheet.cssText = w(t, o);
      else {
        var a = document.createTextNode(o),
          i = e.childNodes;
        i[t] && e.removeChild(i[t]),
          i.length ? e.insertBefore(a, i[t]) : e.appendChild(a);
      }
    }
    function x(e, t) {
      var n = t.css,
        r = t.media;
      if ((r && e.setAttribute("media", r), e.styleSheet))
        e.styleSheet.cssText = n;
      else {
        for (; e.firstChild; ) e.removeChild(e.firstChild);
        e.appendChild(document.createTextNode(n));
      }
    }
    function M(e, t, n) {
      var r = n.css,
        o = n.sourceMap,
        a = void 0 === t.convertToAbsoluteUrls && o;
      (t.convertToAbsoluteUrls || a) && (r = h(r)),
        o &&
          (r +=
            "\n/*# sourceMappingURL=data:application/json;base64," +
            btoa(unescape(encodeURIComponent(JSON.stringify(o)))) +
            " */");
      var i = new Blob([r], { type: "text/css" }),
        s = e.href;
      (e.href = URL.createObjectURL(i)), s && URL.revokeObjectURL(s);
    }
  },
  function (e, t) {
    e.exports = function (e) {
      var t = "undefined" != typeof window && window.location;
      if (!t) throw new Error("fixUrls requires window.location");
      if (!e || "string" != typeof e) return e;
      var n = t.protocol + "//" + t.host,
        r = n + t.pathname.replace(/\/[^\/]*$/, "/");
      return e.replace(
        /url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,
        function (e, t) {
          var o,
            a = t
              .trim()
              .replace(/^"(.*)"$/, function (e, t) {
                return t;
              })
              .replace(/^'(.*)'$/, function (e, t) {
                return t;
              });
          return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)
            ? e
            : ((o =
                0 === a.indexOf("//")
                  ? a
                  : 0 === a.indexOf("/")
                  ? n + a
                  : r + a.replace(/^\.\//, "")),
              "url(" + JSON.stringify(o) + ")");
        }
      );
    };
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return o;
      });
    var r = n(2);
    function o(e) {
      return (
        Object(r.a)(1, arguments),
        e instanceof Date ||
          ("object" == typeof e &&
            "[object Date]" === Object.prototype.toString.call(e))
      );
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(75),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.default)(e, -n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(76),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.default)(e, -n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(42),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.default)(e, -n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(77),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.default)(e, -n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(43),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.default)(e, -n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(78),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(r.a)(t);
      return Object(o.default)(e, -n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getSeconds();
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getMinutes();
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getHours();
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getDay();
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getDate();
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getMonth();
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = Math.floor(t.getMonth() / 3) + 1;
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getFullYear();
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getTime();
      return n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e),
        i = Object(r.a)(t);
      return n.setSeconds(i), n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e),
        i = Object(r.a)(t);
      return n.setMinutes(i), n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e),
        i = Object(r.a)(t);
      return n.setHours(i), n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return s;
      });
    var r = n(7),
      o = n(5),
      a = n(80),
      i = n(2);
    function s(e, t) {
      Object(i.a)(2, arguments);
      var n = Object(o.default)(e),
        s = Object(r.a)(t),
        l = Math.floor(n.getMonth() / 3) + 1,
        c = s - l;
      return Object(a.default)(n, n.getMonth() + 3 * c);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(7),
      o = n(5),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e),
        i = Object(r.a)(t);
      return isNaN(n) ? new Date(NaN) : (n.setFullYear(i), n);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      var t, n;
      if ((Object(o.a)(1, arguments), e && "function" == typeof e.forEach))
        t = e;
      else {
        if ("object" != typeof e || null === e) return new Date(NaN);
        t = Array.prototype.slice.call(e);
      }
      return (
        t.forEach(function (e) {
          var t = Object(r.default)(e);
          (void 0 === n || n > t || isNaN(t)) && (n = t);
        }),
        n || new Date(NaN)
      );
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      var t, n;
      if ((Object(o.a)(1, arguments), e && "function" == typeof e.forEach))
        t = e;
      else {
        if ("object" != typeof e || null === e) return new Date(NaN);
        t = Array.prototype.slice.call(e);
      }
      return (
        t.forEach(function (e) {
          var t = Object(r.default)(e);
          (void 0 === n || n < t || isNaN(t)) && (n = t);
        }),
        n || new Date(NaN)
      );
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(20),
      o = n(28),
      a = n(2);
    function i(e, t) {
      Object(a.a)(2, arguments);
      var n = Object(o.default)(e),
        i = Object(o.default)(t),
        s = n.getTime() - Object(r.a)(n),
        l = i.getTime() - Object(r.a)(i);
      return Math.round((s - l) / 864e5);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t),
        i = n.getFullYear() - a.getFullYear(),
        s = n.getMonth() - a.getMonth();
      return 12 * i + s;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(17),
      o = n(20),
      a = n(2);
    function i(e, t, n) {
      Object(a.a)(2, arguments);
      var i = Object(r.default)(e, n),
        s = Object(r.default)(t, n),
        l = i.getTime() - Object(o.a)(i),
        c = s.getTime() - Object(o.a)(s);
      return Math.round((l - c) / 6048e5);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t);
      return n.getFullYear() - a.getFullYear();
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e);
      return t.setDate(1), t.setHours(0, 0, 0, 0), t;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = new Date(0);
      return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e);
      return t.setHours(23, 59, 59, 999), t;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return i;
      });
    var r = n(5),
      o = n(7),
      a = n(2);
    function i(e, t) {
      Object(a.a)(1, arguments);
      var n = t || {},
        i = n.locale,
        s = i && i.options && i.options.weekStartsOn,
        l = null == s ? 0 : Object(o.a)(s),
        c = null == n.weekStartsOn ? l : Object(o.a)(n.weekStartsOn);
      if (!(c >= 0 && c <= 6))
        throw new RangeError(
          "weekStartsOn must be between 0 and 6 inclusively"
        );
      var u = Object(r.default)(e),
        d = u.getDay(),
        h = 6 + (d < c ? -7 : 0) - (d - c);
      return u.setDate(u.getDate() + h), u.setHours(23, 59, 59, 999), u;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e) {
      Object(o.a)(1, arguments);
      var t = Object(r.default)(e),
        n = t.getMonth();
      return (
        t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t
      );
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t);
      return n.getTime() === a.getTime();
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(28),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t);
      return n.getTime() === a.getTime();
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t);
      return (
        n.getFullYear() === a.getFullYear() && n.getMonth() === a.getMonth()
      );
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t);
      return n.getFullYear() === a.getFullYear();
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(54),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t);
      return n.getTime() === a.getTime();
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t);
      return n.getTime() > a.getTime();
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = Object(r.default)(e),
        a = Object(r.default)(t);
      return n.getTime() < a.getTime();
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return a;
      });
    var r = n(5),
      o = n(2);
    function a(e, t) {
      Object(o.a)(2, arguments);
      var n = t || {},
        a = Object(r.default)(e).getTime(),
        i = Object(r.default)(n.start).getTime(),
        s = Object(r.default)(n.end).getTime();
      if (!(i <= s)) throw new RangeError("Invalid interval");
      return a >= i && a <= s;
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return c;
      });
    var r = n(7),
      o = n(2),
      a = {
        dateTimeDelimiter: /[T ]/,
        timeZoneDelimiter: /[Z ]/i,
        timezone: /([Z+-].*)$/,
      },
      i = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,
      s = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,
      l = /^([+-])(\d{2})(?::?(\d{2}))?$/;
    function c(e, t) {
      Object(o.a)(1, arguments);
      var n = t || {},
        a = null == n.additionalDigits ? 2 : Object(r.a)(n.additionalDigits);
      if (2 !== a && 1 !== a && 0 !== a)
        throw new RangeError("additionalDigits must be 0, 1 or 2");
      if (
        "string" != typeof e &&
        "[object String]" !== Object.prototype.toString.call(e)
      )
        return new Date(NaN);
      var i,
        s = u(e);
      if (s.date) {
        var l = d(s.date, a);
        i = h(l.restDateString, l.year);
      }
      if (isNaN(i) || !i) return new Date(NaN);
      var c,
        p = i.getTime(),
        m = 0;
      if (s.time && ((m = f(s.time)), isNaN(m) || null === m))
        return new Date(NaN);
      if (!s.timezone) {
        var _ = new Date(p + m),
          v = new Date(
            _.getUTCFullYear(),
            _.getUTCMonth(),
            _.getUTCDate(),
            _.getUTCHours(),
            _.getUTCMinutes(),
            _.getUTCSeconds(),
            _.getUTCMilliseconds()
          );
        return v.setFullYear(_.getUTCFullYear()), v;
      }
      return (
        (c = g(s.timezone)), isNaN(c) ? new Date(NaN) : new Date(p + m + c)
      );
    }
    function u(e) {
      var t,
        n = {},
        r = e.split(a.dateTimeDelimiter);
      if (r.length > 2) return n;
      if (
        (/:/.test(r[0])
          ? ((n.date = null), (t = r[0]))
          : ((n.date = r[0]),
            (t = r[1]),
            a.timeZoneDelimiter.test(n.date) &&
              ((n.date = e.split(a.timeZoneDelimiter)[0]),
              (t = e.substr(n.date.length, e.length)))),
        t)
      ) {
        var o = a.timezone.exec(t);
        o
          ? ((n.time = t.replace(o[1], "")), (n.timezone = o[1]))
          : (n.time = t);
      }
      return n;
    }
    function d(e, t) {
      var n = new RegExp(
          "^(?:(\\d{4}|[+-]\\d{" +
            (4 + t) +
            "})|(\\d{2}|[+-]\\d{" +
            (2 + t) +
            "})$)"
        ),
        r = e.match(n);
      if (!r) return { year: null };
      var o = r[1] && parseInt(r[1]),
        a = r[2] && parseInt(r[2]);
      return {
        year: null == a ? o : 100 * a,
        restDateString: e.slice((r[1] || r[2]).length),
      };
    }
    function h(e, t) {
      if (null === t) return null;
      var n = e.match(i);
      if (!n) return null;
      var r = !!n[4],
        o = p(n[1]),
        a = p(n[2]) - 1,
        s = p(n[3]),
        l = p(n[4]),
        c = p(n[5]) - 1;
      if (r)
        return (function (e, t, n) {
          return t >= 1 && t <= 53 && n >= 0 && n <= 6;
        })(0, l, c)
          ? (function (e, t, n) {
              var r = new Date(0);
              r.setUTCFullYear(e, 0, 4);
              var o = r.getUTCDay() || 7,
                a = 7 * (t - 1) + n + 1 - o;
              return r.setUTCDate(r.getUTCDate() + a), r;
            })(t, l, c)
          : new Date(NaN);
      var u = new Date(0);
      return (function (e, t, n) {
        return t >= 0 && t <= 11 && n >= 1 && n <= (_[t] || (v(e) ? 29 : 28));
      })(t, a, s) &&
        (function (e, t) {
          return t >= 1 && t <= (v(e) ? 366 : 365);
        })(t, o)
        ? (u.setUTCFullYear(t, a, Math.max(o, s)), u)
        : new Date(NaN);
    }
    function p(e) {
      return e ? parseInt(e) : 1;
    }
    function f(e) {
      var t = e.match(s);
      if (!t) return null;
      var n = m(t[1]),
        r = m(t[2]),
        o = m(t[3]);
      return (function (e, t, n) {
        if (24 === e) return 0 === t && 0 === n;
        return n >= 0 && n < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
      })(n, r, o)
        ? 36e5 * n + 6e4 * r + 1e3 * o
        : NaN;
    }
    function m(e) {
      return (e && parseFloat(e.replace(",", "."))) || 0;
    }
    function g(e) {
      if ("Z" === e) return 0;
      var t = e.match(l);
      if (!t) return 0;
      var n = "+" === t[1] ? -1 : 1,
        r = parseInt(t[2]),
        o = (t[3] && parseInt(t[3])) || 0;
      return (function (e, t) {
        return t >= 0 && t <= 59;
      })(0, o)
        ? n * (36e5 * r + 6e4 * o)
        : NaN;
    }
    var _ = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
    function v(e) {
      return e % 400 == 0 || (e % 4 == 0 && e % 100);
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "IGNORE_CLASS_NAME", function () {
        return h;
      });
    var r = n(0),
      o = n(40);
    function a(e, t, n) {
      return (
        e === t ||
        (e.correspondingElement
          ? e.correspondingElement.classList.contains(n)
          : e.classList.contains(n))
      );
    }
    var i,
      s,
      l =
        (void 0 === i && (i = 0),
        function () {
          return ++i;
        }),
      c = {},
      u = {},
      d = ["touchstart", "touchmove"],
      h = "ignore-react-onclickoutside";
    function p(e, t) {
      var n = null;
      return (
        -1 !== d.indexOf(t) && s && (n = { passive: !e.props.preventDefault }),
        n
      );
    }
    t.default = function (e, t) {
      var n,
        i,
        d = e.displayName || e.name || "Component";
      return (
        (i = n = (function (n) {
          var i, h;
          function f(e) {
            var r;
            return (
              ((r = n.call(this, e) || this).__outsideClickHandler = function (
                e
              ) {
                if ("function" != typeof r.__clickOutsideHandlerProp) {
                  var t = r.getInstance();
                  if ("function" != typeof t.props.handleClickOutside) {
                    if ("function" != typeof t.handleClickOutside)
                      throw new Error(
                        "WrappedComponent: " +
                          d +
                          " lacks a handleClickOutside(event) function for processing outside click events."
                      );
                    t.handleClickOutside(e);
                  } else t.props.handleClickOutside(e);
                } else r.__clickOutsideHandlerProp(e);
              }),
              (r.__getComponentNode = function () {
                var e = r.getInstance();
                return t && "function" == typeof t.setClickOutsideRef
                  ? t.setClickOutsideRef()(e)
                  : "function" == typeof e.setClickOutsideRef
                  ? e.setClickOutsideRef()
                  : Object(o.findDOMNode)(e);
              }),
              (r.enableOnClickOutside = function () {
                if ("undefined" != typeof document && !u[r._uid]) {
                  void 0 === s &&
                    (s = (function () {
                      if (
                        "undefined" != typeof window &&
                        "function" == typeof window.addEventListener
                      ) {
                        var e = !1,
                          t = Object.defineProperty({}, "passive", {
                            get: function () {
                              e = !0;
                            },
                          }),
                          n = function () {};
                        return (
                          window.addEventListener(
                            "testPassiveEventSupport",
                            n,
                            t
                          ),
                          window.removeEventListener(
                            "testPassiveEventSupport",
                            n,
                            t
                          ),
                          e
                        );
                      }
                    })()),
                    (u[r._uid] = !0);
                  var e = r.props.eventTypes;
                  e.forEach || (e = [e]),
                    (c[r._uid] = function (e) {
                      var t;
                      null !== r.componentNode &&
                        (r.props.preventDefault && e.preventDefault(),
                        r.props.stopPropagation && e.stopPropagation(),
                        (r.props.excludeScrollbar &&
                          ((t = e),
                          document.documentElement.clientWidth <= t.clientX ||
                            document.documentElement.clientHeight <=
                              t.clientY)) ||
                          ((function (e, t, n) {
                            if (e === t) return !0;
                            for (; e.parentNode; ) {
                              if (a(e, t, n)) return !0;
                              e = e.parentNode;
                            }
                            return e;
                          })(
                            e.target,
                            r.componentNode,
                            r.props.outsideClickIgnoreClass
                          ) === document &&
                            r.__outsideClickHandler(e)));
                    }),
                    e.forEach(function (e) {
                      document.addEventListener(e, c[r._uid], p(r, e));
                    });
                }
              }),
              (r.disableOnClickOutside = function () {
                delete u[r._uid];
                var e = c[r._uid];
                if (e && "undefined" != typeof document) {
                  var t = r.props.eventTypes;
                  t.forEach || (t = [t]),
                    t.forEach(function (t) {
                      return document.removeEventListener(t, e, p(r, t));
                    }),
                    delete c[r._uid];
                }
              }),
              (r.getRef = function (e) {
                return (r.instanceRef = e);
              }),
              (r._uid = l()),
              r
            );
          }
          (h = n),
            ((i = f).prototype = Object.create(h.prototype)),
            (i.prototype.constructor = i),
            (i.__proto__ = h);
          var m = f.prototype;
          return (
            (m.getInstance = function () {
              if (!e.prototype.isReactComponent) return this;
              var t = this.instanceRef;
              return t.getInstance ? t.getInstance() : t;
            }),
            (m.componentDidMount = function () {
              if ("undefined" != typeof document && document.createElement) {
                var e = this.getInstance();
                if (
                  t &&
                  "function" == typeof t.handleClickOutside &&
                  ((this.__clickOutsideHandlerProp = t.handleClickOutside(e)),
                  "function" != typeof this.__clickOutsideHandlerProp)
                )
                  throw new Error(
                    "WrappedComponent: " +
                      d +
                      " lacks a function for processing outside click events specified by the handleClickOutside config option."
                  );
                (this.componentNode = this.__getComponentNode()),
                  this.props.disableOnClickOutside ||
                    this.enableOnClickOutside();
              }
            }),
            (m.componentDidUpdate = function () {
              this.componentNode = this.__getComponentNode();
            }),
            (m.componentWillUnmount = function () {
              this.disableOnClickOutside();
            }),
            (m.render = function () {
              var t = this.props,
                n =
                  (t.excludeScrollbar,
                  (function (e, t) {
                    if (null == e) return {};
                    var n,
                      r,
                      o = {},
                      a = Object.keys(e);
                    for (r = 0; r < a.length; r++)
                      (n = a[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
                    if (Object.getOwnPropertySymbols) {
                      var i = Object.getOwnPropertySymbols(e);
                      for (r = 0; r < i.length; r++)
                        (n = i[r]),
                          t.indexOf(n) >= 0 ||
                            (Object.prototype.propertyIsEnumerable.call(e, n) &&
                              (o[n] = e[n]));
                    }
                    return o;
                  })(t, ["excludeScrollbar"]));
              return (
                e.prototype.isReactComponent
                  ? (n.ref = this.getRef)
                  : (n.wrappedRef = this.getRef),
                (n.disableOnClickOutside = this.disableOnClickOutside),
                (n.enableOnClickOutside = this.enableOnClickOutside),
                Object(r.createElement)(e, n)
              );
            }),
            f
          );
        })(r.Component)),
        (n.displayName = "OnClickOutside(" + d + ")"),
        (n.defaultProps = {
          eventTypes: ["mousedown", "touchstart"],
          excludeScrollbar: (t && t.excludeScrollbar) || !1,
          outsideClickIgnoreClass: h,
          preventDefault: !1,
          stopPropagation: !1,
        }),
        (n.getClass = function () {
          return e.getClass ? e.getClass() : e;
        }),
        i
      );
    };
  },
  function (e, t, n) {
    "use strict";
    var r;
    if (!Object.keys) {
      var o = Object.prototype.hasOwnProperty,
        a = Object.prototype.toString,
        i = n(231),
        s = Object.prototype.propertyIsEnumerable,
        l = !s.call({ toString: null }, "toString"),
        c = s.call(function () {}, "prototype"),
        u = [
          "toString",
          "toLocaleString",
          "valueOf",
          "hasOwnProperty",
          "isPrototypeOf",
          "propertyIsEnumerable",
          "constructor",
        ],
        d = function (e) {
          var t = e.constructor;
          return t && t.prototype === e;
        },
        h = {
          $applicationCache: !0,
          $console: !0,
          $external: !0,
          $frame: !0,
          $frameElement: !0,
          $frames: !0,
          $innerHeight: !0,
          $innerWidth: !0,
          $onmozfullscreenchange: !0,
          $onmozfullscreenerror: !0,
          $outerHeight: !0,
          $outerWidth: !0,
          $pageXOffset: !0,
          $pageYOffset: !0,
          $parent: !0,
          $scrollLeft: !0,
          $scrollTop: !0,
          $scrollX: !0,
          $scrollY: !0,
          $self: !0,
          $webkitIndexedDB: !0,
          $webkitStorageInfo: !0,
          $window: !0,
        },
        p = (function () {
          if ("undefined" == typeof window) return !1;
          for (var e in window)
            try {
              if (
                !h["$" + e] &&
                o.call(window, e) &&
                null !== window[e] &&
                "object" == typeof window[e]
              )
                try {
                  d(window[e]);
                } catch (e) {
                  return !0;
                }
            } catch (e) {
              return !0;
            }
          return !1;
        })();
      r = function (e) {
        var t = null !== e && "object" == typeof e,
          n = "[object Function]" === a.call(e),
          r = i(e),
          s = t && "[object String]" === a.call(e),
          h = [];
        if (!t && !n && !r)
          throw new TypeError("Object.keys called on a non-object");
        var f = c && n;
        if (s && e.length > 0 && !o.call(e, 0))
          for (var m = 0; m < e.length; ++m) h.push(String(m));
        if (r && e.length > 0)
          for (var g = 0; g < e.length; ++g) h.push(String(g));
        else
          for (var _ in e)
            (f && "prototype" === _) || !o.call(e, _) || h.push(String(_));
        if (l)
          for (
            var v = (function (e) {
                if ("undefined" == typeof window || !p) return d(e);
                try {
                  return d(e);
                } catch (e) {
                  return !1;
                }
              })(e),
              b = 0;
            b < u.length;
            ++b
          )
            (v && "constructor" === u[b]) || !o.call(e, u[b]) || h.push(u[b]);
        return h;
      };
    }
    e.exports = r;
  },
  function (e, t, n) {
    "use strict";
    var r =
        "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag,
      o = n(339)("Object.prototype.toString"),
      a = function (e) {
        return (
          !(r && e && "object" == typeof e && Symbol.toStringTag in e) &&
          "[object Arguments]" === o(e)
        );
      },
      i = function (e) {
        return (
          !!a(e) ||
          (null !== e &&
            "object" == typeof e &&
            "number" == typeof e.length &&
            e.length >= 0 &&
            "[object Array]" !== o(e) &&
            "[object Function]" === o(e.callee))
        );
      },
      s = (function () {
        return a(arguments);
      })();
    (a.isLegacyArguments = i), (e.exports = s ? a : i);
  },
  function (e, t, n) {
    "use strict";
    var r = n(232),
      o = n(233),
      a = o(r("String.prototype.indexOf"));
    e.exports = function (e, t) {
      var n = r(e, !!t);
      return "function" == typeof n && a(e, ".prototype.") > -1 ? o(n) : n;
    };
  },
  function (e, t, n) {
    "use strict";
    e.exports = function () {
      if (
        "function" != typeof Symbol ||
        "function" != typeof Object.getOwnPropertySymbols
      )
        return !1;
      if ("symbol" == typeof Symbol.iterator) return !0;
      var e = {},
        t = Symbol("test"),
        n = Object(t);
      if ("string" == typeof t) return !1;
      if ("[object Symbol]" !== Object.prototype.toString.call(t)) return !1;
      if ("[object Symbol]" !== Object.prototype.toString.call(n)) return !1;
      for (t in ((e[t] = 42), e)) return !1;
      if ("function" == typeof Object.keys && 0 !== Object.keys(e).length)
        return !1;
      if (
        "function" == typeof Object.getOwnPropertyNames &&
        0 !== Object.getOwnPropertyNames(e).length
      )
        return !1;
      var r = Object.getOwnPropertySymbols(e);
      if (1 !== r.length || r[0] !== t) return !1;
      if (!Object.prototype.propertyIsEnumerable.call(e, t)) return !1;
      if ("function" == typeof Object.getOwnPropertyDescriptor) {
        var o = Object.getOwnPropertyDescriptor(e, t);
        if (42 !== o.value || !0 !== o.enumerable) return !1;
      }
      return !0;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = "Function.prototype.bind called on incompatible ",
      o = Array.prototype.slice,
      a = Object.prototype.toString;
    e.exports = function (e) {
      var t = this;
      if ("function" != typeof t || "[object Function]" !== a.call(t))
        throw new TypeError(r + t);
      for (
        var n,
          i = o.call(arguments, 1),
          s = function () {
            if (this instanceof n) {
              var r = t.apply(this, i.concat(o.call(arguments)));
              return Object(r) === r ? r : this;
            }
            return t.apply(e, i.concat(o.call(arguments)));
          },
          l = Math.max(0, t.length - i.length),
          c = [],
          u = 0;
        u < l;
        u++
      )
        c.push("$" + u);
      if (
        ((n = Function(
          "binder",
          "return function (" +
            c.join(",") +
            "){ return binder.apply(this,arguments); }"
        )(s)),
        t.prototype)
      ) {
        var d = function () {};
        (d.prototype = t.prototype),
          (n.prototype = new d()),
          (d.prototype = null);
      }
      return n;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(36);
    e.exports = r.call(Function.call, Object.prototype.hasOwnProperty);
  },
  function (e, t, n) {
    "use strict";
    var r = n(37),
      o = n(233),
      a = n(234),
      i = n(235),
      s = n(344),
      l = o(i(), Object);
    r(l, { getPolyfill: i, implementation: a, shim: s }), (e.exports = l);
  },
  function (e, t, n) {
    "use strict";
    var r = n(235),
      o = n(37);
    e.exports = function () {
      var e = r();
      return (
        o(
          Object,
          { is: e },
          {
            is: function () {
              return Object.is !== e;
            },
          }
        ),
        e
      );
    };
  },
  function (e, t, n) {
    "use strict";
    var r,
      o,
      a,
      i,
      s = n(65)() && "symbol" == typeof Symbol.toStringTag;
    if (s) {
      (r = Function.call.bind(Object.prototype.hasOwnProperty)),
        (o = Function.call.bind(RegExp.prototype.exec)),
        (a = {});
      var l = function () {
        throw a;
      };
      (i = { toString: l, valueOf: l }),
        "symbol" == typeof Symbol.toPrimitive && (i[Symbol.toPrimitive] = l);
    }
    var c = Object.prototype.toString,
      u = Object.getOwnPropertyDescriptor;
    e.exports = s
      ? function (e) {
          if (!e || "object" != typeof e) return !1;
          var t = u(e, "lastIndex");
          if (!(t && r(t, "value"))) return !1;
          try {
            o(e, i);
          } catch (e) {
            return e === a;
          }
        }
      : function (e) {
          return (
            !(!e || ("object" != typeof e && "function" != typeof e)) &&
            "[object RegExp]" === c.call(e)
          );
        };
  },
  function (e, t, n) {
    "use strict";
    var r = n(37),
      o = n(347),
      a = n(236),
      i = n(237),
      s = n(349),
      l = o(a);
    r(l, { getPolyfill: i, implementation: a, shim: s }), (e.exports = l);
  },
  function (e, t, n) {
    "use strict";
    var r = n(36),
      o = n(348),
      a = o("%Function.prototype.apply%"),
      i = o("%Function.prototype.call%"),
      s = o("%Reflect.apply%", !0) || r.call(i, a),
      l = o("%Object.defineProperty%", !0);
    if (l)
      try {
        l({}, "a", { value: 1 });
      } catch (e) {
        l = null;
      }
    e.exports = function () {
      return s(r, i, arguments);
    };
    var c = function () {
      return s(r, a, arguments);
    };
    l ? l(e.exports, "apply", { value: c }) : (e.exports.apply = c);
  },
  function (e, t, n) {
    "use strict";
    var r = TypeError,
      o = Object.getOwnPropertyDescriptor;
    if (o)
      try {
        o({}, "");
      } catch (e) {
        o = null;
      }
    var a = function () {
        throw new r();
      },
      i = o
        ? (function () {
            try {
              return a;
            } catch (e) {
              try {
                return o(arguments, "callee").get;
              } catch (e) {
                return a;
              }
            }
          })()
        : a,
      s = n(65)(),
      l =
        Object.getPrototypeOf ||
        function (e) {
          return e.__proto__;
        },
      c = void 0,
      u = "undefined" == typeof Uint8Array ? void 0 : l(Uint8Array),
      d = {
        "%Array%": Array,
        "%ArrayBuffer%":
          "undefined" == typeof ArrayBuffer ? void 0 : ArrayBuffer,
        "%ArrayBufferPrototype%":
          "undefined" == typeof ArrayBuffer ? void 0 : ArrayBuffer.prototype,
        "%ArrayIteratorPrototype%": s ? l([][Symbol.iterator]()) : void 0,
        "%ArrayPrototype%": Array.prototype,
        "%ArrayProto_entries%": Array.prototype.entries,
        "%ArrayProto_forEach%": Array.prototype.forEach,
        "%ArrayProto_keys%": Array.prototype.keys,
        "%ArrayProto_values%": Array.prototype.values,
        "%AsyncFromSyncIteratorPrototype%": void 0,
        "%AsyncFunction%": void 0,
        "%AsyncFunctionPrototype%": void 0,
        "%AsyncGenerator%": void 0,
        "%AsyncGeneratorFunction%": void 0,
        "%AsyncGeneratorPrototype%": void 0,
        "%AsyncIteratorPrototype%":
          c && s && Symbol.asyncIterator ? c[Symbol.asyncIterator]() : void 0,
        "%Atomics%": "undefined" == typeof Atomics ? void 0 : Atomics,
        "%Boolean%": Boolean,
        "%BooleanPrototype%": Boolean.prototype,
        "%DataView%": "undefined" == typeof DataView ? void 0 : DataView,
        "%DataViewPrototype%":
          "undefined" == typeof DataView ? void 0 : DataView.prototype,
        "%Date%": Date,
        "%DatePrototype%": Date.prototype,
        "%decodeURI%": decodeURI,
        "%decodeURIComponent%": decodeURIComponent,
        "%encodeURI%": encodeURI,
        "%encodeURIComponent%": encodeURIComponent,
        "%Error%": Error,
        "%ErrorPrototype%": Error.prototype,
        "%eval%": eval,
        "%EvalError%": EvalError,
        "%EvalErrorPrototype%": EvalError.prototype,
        "%Float32Array%":
          "undefined" == typeof Float32Array ? void 0 : Float32Array,
        "%Float32ArrayPrototype%":
          "undefined" == typeof Float32Array ? void 0 : Float32Array.prototype,
        "%Float64Array%":
          "undefined" == typeof Float64Array ? void 0 : Float64Array,
        "%Float64ArrayPrototype%":
          "undefined" == typeof Float64Array ? void 0 : Float64Array.prototype,
        "%Function%": Function,
        "%FunctionPrototype%": Function.prototype,
        "%Generator%": void 0,
        "%GeneratorFunction%": void 0,
        "%GeneratorPrototype%": void 0,
        "%Int8Array%": "undefined" == typeof Int8Array ? void 0 : Int8Array,
        "%Int8ArrayPrototype%":
          "undefined" == typeof Int8Array ? void 0 : Int8Array.prototype,
        "%Int16Array%": "undefined" == typeof Int16Array ? void 0 : Int16Array,
        "%Int16ArrayPrototype%":
          "undefined" == typeof Int16Array ? void 0 : Int8Array.prototype,
        "%Int32Array%": "undefined" == typeof Int32Array ? void 0 : Int32Array,
        "%Int32ArrayPrototype%":
          "undefined" == typeof Int32Array ? void 0 : Int32Array.prototype,
        "%isFinite%": isFinite,
        "%isNaN%": isNaN,
        "%IteratorPrototype%": s ? l(l([][Symbol.iterator]())) : void 0,
        "%JSON%": "object" == typeof JSON ? JSON : void 0,
        "%JSONParse%": "object" == typeof JSON ? JSON.parse : void 0,
        "%Map%": "undefined" == typeof Map ? void 0 : Map,
        "%MapIteratorPrototype%":
          "undefined" != typeof Map && s
            ? l(new Map()[Symbol.iterator]())
            : void 0,
        "%MapPrototype%": "undefined" == typeof Map ? void 0 : Map.prototype,
        "%Math%": Math,
        "%Number%": Number,
        "%NumberPrototype%": Number.prototype,
        "%Object%": Object,
        "%ObjectPrototype%": Object.prototype,
        "%ObjProto_toString%": Object.prototype.toString,
        "%ObjProto_valueOf%": Object.prototype.valueOf,
        "%parseFloat%": parseFloat,
        "%parseInt%": parseInt,
        "%Promise%": "undefined" == typeof Promise ? void 0 : Promise,
        "%PromisePrototype%":
          "undefined" == typeof Promise ? void 0 : Promise.prototype,
        "%PromiseProto_then%":
          "undefined" == typeof Promise ? void 0 : Promise.prototype.then,
        "%Promise_all%": "undefined" == typeof Promise ? void 0 : Promise.all,
        "%Promise_reject%":
          "undefined" == typeof Promise ? void 0 : Promise.reject,
        "%Promise_resolve%":
          "undefined" == typeof Promise ? void 0 : Promise.resolve,
        "%Proxy%": "undefined" == typeof Proxy ? void 0 : Proxy,
        "%RangeError%": RangeError,
        "%RangeErrorPrototype%": RangeError.prototype,
        "%ReferenceError%": ReferenceError,
        "%ReferenceErrorPrototype%": ReferenceError.prototype,
        "%Reflect%": "undefined" == typeof Reflect ? void 0 : Reflect,
        "%RegExp%": RegExp,
        "%RegExpPrototype%": RegExp.prototype,
        "%Set%": "undefined" == typeof Set ? void 0 : Set,
        "%SetIteratorPrototype%":
          "undefined" != typeof Set && s
            ? l(new Set()[Symbol.iterator]())
            : void 0,
        "%SetPrototype%": "undefined" == typeof Set ? void 0 : Set.prototype,
        "%SharedArrayBuffer%":
          "undefined" == typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer,
        "%SharedArrayBufferPrototype%":
          "undefined" == typeof SharedArrayBuffer
            ? void 0
            : SharedArrayBuffer.prototype,
        "%String%": String,
        "%StringIteratorPrototype%": s ? l(""[Symbol.iterator]()) : void 0,
        "%StringPrototype%": String.prototype,
        "%Symbol%": s ? Symbol : void 0,
        "%SymbolPrototype%": s ? Symbol.prototype : void 0,
        "%SyntaxError%": SyntaxError,
        "%SyntaxErrorPrototype%": SyntaxError.prototype,
        "%ThrowTypeError%": i,
        "%TypedArray%": u,
        "%TypedArrayPrototype%": u ? u.prototype : void 0,
        "%TypeError%": r,
        "%TypeErrorPrototype%": r.prototype,
        "%Uint8Array%": "undefined" == typeof Uint8Array ? void 0 : Uint8Array,
        "%Uint8ArrayPrototype%":
          "undefined" == typeof Uint8Array ? void 0 : Uint8Array.prototype,
        "%Uint8ClampedArray%":
          "undefined" == typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray,
        "%Uint8ClampedArrayPrototype%":
          "undefined" == typeof Uint8ClampedArray
            ? void 0
            : Uint8ClampedArray.prototype,
        "%Uint16Array%":
          "undefined" == typeof Uint16Array ? void 0 : Uint16Array,
        "%Uint16ArrayPrototype%":
          "undefined" == typeof Uint16Array ? void 0 : Uint16Array.prototype,
        "%Uint32Array%":
          "undefined" == typeof Uint32Array ? void 0 : Uint32Array,
        "%Uint32ArrayPrototype%":
          "undefined" == typeof Uint32Array ? void 0 : Uint32Array.prototype,
        "%URIError%": URIError,
        "%URIErrorPrototype%": URIError.prototype,
        "%WeakMap%": "undefined" == typeof WeakMap ? void 0 : WeakMap,
        "%WeakMapPrototype%":
          "undefined" == typeof WeakMap ? void 0 : WeakMap.prototype,
        "%WeakSet%": "undefined" == typeof WeakSet ? void 0 : WeakSet,
        "%WeakSetPrototype%":
          "undefined" == typeof WeakSet ? void 0 : WeakSet.prototype,
      },
      h = n(36).call(Function.call, String.prototype.replace),
      p = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
      f = /\\(\\)?/g,
      m = function (e) {
        var t = [];
        return (
          h(e, p, function (e, n, r, o) {
            t[t.length] = r ? h(o, f, "$1") : n || e;
          }),
          t
        );
      },
      g = function (e, t) {
        if (!(e in d))
          throw new SyntaxError("intrinsic " + e + " does not exist!");
        if (void 0 === d[e] && !t)
          throw new r(
            "intrinsic " +
              e +
              " exists, but is not available. Please file an issue!"
          );
        return d[e];
      };
    e.exports = function (e, t) {
      if ("string" != typeof e || 0 === e.length)
        throw new TypeError("intrinsic name must be a non-empty string");
      if (arguments.length > 1 && "boolean" != typeof t)
        throw new TypeError('"allowMissing" argument must be a boolean');
      for (
        var n = m(e), a = g("%" + (n.length > 0 ? n[0] : "") + "%", t), i = 1;
        i < n.length;
        i += 1
      )
        if (null != a)
          if (o && i + 1 >= n.length) {
            var s = o(a, n[i]);
            if (!t && !(n[i] in a))
              throw new r(
                "base intrinsic for " +
                  e +
                  " exists, but the property is not available."
              );
            a =
              s && "get" in s && !("originalValue" in s.get) ? s.get : a[n[i]];
          } else a = a[n[i]];
      return a;
    };
  },
  function (e, t, n) {
    "use strict";
    var r = n(37).supportsDescriptors,
      o = n(237),
      a = Object.getOwnPropertyDescriptor,
      i = Object.defineProperty,
      s = TypeError,
      l = Object.getPrototypeOf,
      c = /a/;
    e.exports = function () {
      if (!r || !l)
        throw new s(
          "RegExp.prototype.flags requires a true ES5 environment that supports property descriptors"
        );
      var e = o(),
        t = l(c),
        n = a(t, "flags");
      return (
        (n && n.get === e) ||
          i(t, "flags", { configurable: !0, enumerable: !1, get: e }),
        e
      );
    };
  },
  function (e, t, n) {
    "use strict";
    var r = Date.prototype.getDay,
      o = Object.prototype.toString,
      a = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag;
    e.exports = function (e) {
      return (
        "object" == typeof e &&
        null !== e &&
        (a
          ? (function (e) {
              try {
                return r.call(e), !0;
              } catch (e) {
                return !1;
              }
            })(e)
          : "[object Date]" === o.call(e))
      );
    };
  },
  function (e, t, n) {
    "use strict";
    t.__esModule = !0;
    var r = n(0),
      o = (i(r), i(n(19))),
      a = i(n(352));
    i(n(79));
    function i(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function s(e, t) {
      if (!(e instanceof t))
        throw new TypeError("Cannot call a class as a function");
    }
    function l(e, t) {
      if (!e)
        throw new ReferenceError(
          "this hasn't been initialised - super() hasn't been called"
        );
      return !t || ("object" != typeof t && "function" != typeof t) ? e : t;
    }
    function c(e, t) {
      if ("function" != typeof t && null !== t)
        throw new TypeError(
          "Super expression must either be null or a function, not " + typeof t
        );
      (e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0,
        },
      })),
        t &&
          (Object.setPrototypeOf
            ? Object.setPrototypeOf(e, t)
            : (e.__proto__ = t));
    }
    function u(e) {
      var t = [];
      return {
        on: function (e) {
          t.push(e);
        },
        off: function (e) {
          t = t.filter(function (t) {
            return t !== e;
          });
        },
        get: function () {
          return e;
        },
        set: function (n, r) {
          (e = n),
            t.forEach(function (t) {
              return t(e, r);
            });
        },
      };
    }
    (t.default = function (e, t) {
      var n,
        i,
        d = "__create-react-context-" + (0, a.default)() + "__",
        h = (function (e) {
          function n() {
            var t, r;
            s(this, n);
            for (var o = arguments.length, a = Array(o), i = 0; i < o; i++)
              a[i] = arguments[i];
            return (
              (t = r = l(this, e.call.apply(e, [this].concat(a)))),
              (r.emitter = u(r.props.value)),
              l(r, t)
            );
          }
          return (
            c(n, e),
            (n.prototype.getChildContext = function () {
              var e;
              return ((e = {})[d] = this.emitter), e;
            }),
            (n.prototype.componentWillReceiveProps = function (e) {
              if (this.props.value !== e.value) {
                var n = this.props.value,
                  r = e.value,
                  o = void 0;
                (
                  (a = n) === (i = r)
                    ? 0 !== a || 1 / a == 1 / i
                    : a != a && i != i
                )
                  ? (o = 0)
                  : ((o = "function" == typeof t ? t(n, r) : 1073741823),
                    0 !== (o |= 0) && this.emitter.set(e.value, o));
              }
              var a, i;
            }),
            (n.prototype.render = function () {
              return this.props.children;
            }),
            n
          );
        })(r.Component);
      h.childContextTypes = (((n = {})[d] = o.default.object.isRequired), n);
      var p = (function (t) {
        function n() {
          var e, r;
          s(this, n);
          for (var o = arguments.length, a = Array(o), i = 0; i < o; i++)
            a[i] = arguments[i];
          return (
            (e = r = l(this, t.call.apply(t, [this].concat(a)))),
            (r.state = { value: r.getValue() }),
            (r.onUpdate = function (e, t) {
              0 != ((0 | r.observedBits) & t) &&
                r.setState({ value: r.getValue() });
            }),
            l(r, e)
          );
        }
        return (
          c(n, t),
          (n.prototype.componentWillReceiveProps = function (e) {
            var t = e.observedBits;
            this.observedBits = null == t ? 1073741823 : t;
          }),
          (n.prototype.componentDidMount = function () {
            this.context[d] && this.context[d].on(this.onUpdate);
            var e = this.props.observedBits;
            this.observedBits = null == e ? 1073741823 : e;
          }),
          (n.prototype.componentWillUnmount = function () {
            this.context[d] && this.context[d].off(this.onUpdate);
          }),
          (n.prototype.getValue = function () {
            return this.context[d] ? this.context[d].get() : e;
          }),
          (n.prototype.render = function () {
            return ((e = this.props.children), Array.isArray(e) ? e[0] : e)(
              this.state.value
            );
            var e;
          }),
          n
        );
      })(r.Component);
      return (
        (p.contextTypes = (((i = {})[d] = o.default.object), i)),
        { Provider: h, Consumer: p }
      );
    }),
      (e.exports = t.default);
  },
  function (e, t, n) {
    "use strict";
    (function (t) {
      var n = "__global_unique_id__";
      e.exports = function () {
        return (t[n] = (t[n] || 0) + 1);
      };
    }.call(this, n(35)));
  },
  function (e, t, n) {
    /*!
     * Chart.js v2.9.4
     * https://www.chartjs.org
     * (c) 2020 Chart.js Contributors
     * Released under the MIT License
     */
    e.exports = (function (e) {
      "use strict";
      e = e && e.hasOwnProperty("default") ? e.default : e;
      var t = {
          aliceblue: [240, 248, 255],
          antiquewhite: [250, 235, 215],
          aqua: [0, 255, 255],
          aquamarine: [127, 255, 212],
          azure: [240, 255, 255],
          beige: [245, 245, 220],
          bisque: [255, 228, 196],
          black: [0, 0, 0],
          blanchedalmond: [255, 235, 205],
          blue: [0, 0, 255],
          blueviolet: [138, 43, 226],
          brown: [165, 42, 42],
          burlywood: [222, 184, 135],
          cadetblue: [95, 158, 160],
          chartreuse: [127, 255, 0],
          chocolate: [210, 105, 30],
          coral: [255, 127, 80],
          cornflowerblue: [100, 149, 237],
          cornsilk: [255, 248, 220],
          crimson: [220, 20, 60],
          cyan: [0, 255, 255],
          darkblue: [0, 0, 139],
          darkcyan: [0, 139, 139],
          darkgoldenrod: [184, 134, 11],
          darkgray: [169, 169, 169],
          darkgreen: [0, 100, 0],
          darkgrey: [169, 169, 169],
          darkkhaki: [189, 183, 107],
          darkmagenta: [139, 0, 139],
          darkolivegreen: [85, 107, 47],
          darkorange: [255, 140, 0],
          darkorchid: [153, 50, 204],
          darkred: [139, 0, 0],
          darksalmon: [233, 150, 122],
          darkseagreen: [143, 188, 143],
          darkslateblue: [72, 61, 139],
          darkslategray: [47, 79, 79],
          darkslategrey: [47, 79, 79],
          darkturquoise: [0, 206, 209],
          darkviolet: [148, 0, 211],
          deeppink: [255, 20, 147],
          deepskyblue: [0, 191, 255],
          dimgray: [105, 105, 105],
          dimgrey: [105, 105, 105],
          dodgerblue: [30, 144, 255],
          firebrick: [178, 34, 34],
          floralwhite: [255, 250, 240],
          forestgreen: [34, 139, 34],
          fuchsia: [255, 0, 255],
          gainsboro: [220, 220, 220],
          ghostwhite: [248, 248, 255],
          gold: [255, 215, 0],
          goldenrod: [218, 165, 32],
          gray: [128, 128, 128],
          green: [0, 128, 0],
          greenyellow: [173, 255, 47],
          grey: [128, 128, 128],
          honeydew: [240, 255, 240],
          hotpink: [255, 105, 180],
          indianred: [205, 92, 92],
          indigo: [75, 0, 130],
          ivory: [255, 255, 240],
          khaki: [240, 230, 140],
          lavender: [230, 230, 250],
          lavenderblush: [255, 240, 245],
          lawngreen: [124, 252, 0],
          lemonchiffon: [255, 250, 205],
          lightblue: [173, 216, 230],
          lightcoral: [240, 128, 128],
          lightcyan: [224, 255, 255],
          lightgoldenrodyellow: [250, 250, 210],
          lightgray: [211, 211, 211],
          lightgreen: [144, 238, 144],
          lightgrey: [211, 211, 211],
          lightpink: [255, 182, 193],
          lightsalmon: [255, 160, 122],
          lightseagreen: [32, 178, 170],
          lightskyblue: [135, 206, 250],
          lightslategray: [119, 136, 153],
          lightslategrey: [119, 136, 153],
          lightsteelblue: [176, 196, 222],
          lightyellow: [255, 255, 224],
          lime: [0, 255, 0],
          limegreen: [50, 205, 50],
          linen: [250, 240, 230],
          magenta: [255, 0, 255],
          maroon: [128, 0, 0],
          mediumaquamarine: [102, 205, 170],
          mediumblue: [0, 0, 205],
          mediumorchid: [186, 85, 211],
          mediumpurple: [147, 112, 219],
          mediumseagreen: [60, 179, 113],
          mediumslateblue: [123, 104, 238],
          mediumspringgreen: [0, 250, 154],
          mediumturquoise: [72, 209, 204],
          mediumvioletred: [199, 21, 133],
          midnightblue: [25, 25, 112],
          mintcream: [245, 255, 250],
          mistyrose: [255, 228, 225],
          moccasin: [255, 228, 181],
          navajowhite: [255, 222, 173],
          navy: [0, 0, 128],
          oldlace: [253, 245, 230],
          olive: [128, 128, 0],
          olivedrab: [107, 142, 35],
          orange: [255, 165, 0],
          orangered: [255, 69, 0],
          orchid: [218, 112, 214],
          palegoldenrod: [238, 232, 170],
          palegreen: [152, 251, 152],
          paleturquoise: [175, 238, 238],
          palevioletred: [219, 112, 147],
          papayawhip: [255, 239, 213],
          peachpuff: [255, 218, 185],
          peru: [205, 133, 63],
          pink: [255, 192, 203],
          plum: [221, 160, 221],
          powderblue: [176, 224, 230],
          purple: [128, 0, 128],
          rebeccapurple: [102, 51, 153],
          red: [255, 0, 0],
          rosybrown: [188, 143, 143],
          royalblue: [65, 105, 225],
          saddlebrown: [139, 69, 19],
          salmon: [250, 128, 114],
          sandybrown: [244, 164, 96],
          seagreen: [46, 139, 87],
          seashell: [255, 245, 238],
          sienna: [160, 82, 45],
          silver: [192, 192, 192],
          skyblue: [135, 206, 235],
          slateblue: [106, 90, 205],
          slategray: [112, 128, 144],
          slategrey: [112, 128, 144],
          snow: [255, 250, 250],
          springgreen: [0, 255, 127],
          steelblue: [70, 130, 180],
          tan: [210, 180, 140],
          teal: [0, 128, 128],
          thistle: [216, 191, 216],
          tomato: [255, 99, 71],
          turquoise: [64, 224, 208],
          violet: [238, 130, 238],
          wheat: [245, 222, 179],
          white: [255, 255, 255],
          whitesmoke: [245, 245, 245],
          yellow: [255, 255, 0],
          yellowgreen: [154, 205, 50],
        },
        n = (function (e, t) {
          return e((t = { exports: {} }), t.exports), t.exports;
        })(function (e) {
          var n = {};
          for (var r in t) t.hasOwnProperty(r) && (n[t[r]] = r);
          var o = (e.exports = {
            rgb: { channels: 3, labels: "rgb" },
            hsl: { channels: 3, labels: "hsl" },
            hsv: { channels: 3, labels: "hsv" },
            hwb: { channels: 3, labels: "hwb" },
            cmyk: { channels: 4, labels: "cmyk" },
            xyz: { channels: 3, labels: "xyz" },
            lab: { channels: 3, labels: "lab" },
            lch: { channels: 3, labels: "lch" },
            hex: { channels: 1, labels: ["hex"] },
            keyword: { channels: 1, labels: ["keyword"] },
            ansi16: { channels: 1, labels: ["ansi16"] },
            ansi256: { channels: 1, labels: ["ansi256"] },
            hcg: { channels: 3, labels: ["h", "c", "g"] },
            apple: { channels: 3, labels: ["r16", "g16", "b16"] },
            gray: { channels: 1, labels: ["gray"] },
          });
          for (var a in o)
            if (o.hasOwnProperty(a)) {
              if (!("channels" in o[a]))
                throw new Error("missing channels property: " + a);
              if (!("labels" in o[a]))
                throw new Error("missing channel labels property: " + a);
              if (o[a].labels.length !== o[a].channels)
                throw new Error("channel and label counts mismatch: " + a);
              var i = o[a].channels,
                s = o[a].labels;
              delete o[a].channels,
                delete o[a].labels,
                Object.defineProperty(o[a], "channels", { value: i }),
                Object.defineProperty(o[a], "labels", { value: s });
            }
          (o.rgb.hsl = function (e) {
            var t,
              n,
              r = e[0] / 255,
              o = e[1] / 255,
              a = e[2] / 255,
              i = Math.min(r, o, a),
              s = Math.max(r, o, a),
              l = s - i;
            return (
              s === i
                ? (t = 0)
                : r === s
                ? (t = (o - a) / l)
                : o === s
                ? (t = 2 + (a - r) / l)
                : a === s && (t = 4 + (r - o) / l),
              (t = Math.min(60 * t, 360)) < 0 && (t += 360),
              (n = (i + s) / 2),
              [
                t,
                100 * (s === i ? 0 : n <= 0.5 ? l / (s + i) : l / (2 - s - i)),
                100 * n,
              ]
            );
          }),
            (o.rgb.hsv = function (e) {
              var t,
                n,
                r,
                o,
                a,
                i = e[0] / 255,
                s = e[1] / 255,
                l = e[2] / 255,
                c = Math.max(i, s, l),
                u = c - Math.min(i, s, l),
                d = function (e) {
                  return (c - e) / 6 / u + 0.5;
                };
              return (
                0 === u
                  ? (o = a = 0)
                  : ((a = u / c),
                    (t = d(i)),
                    (n = d(s)),
                    (r = d(l)),
                    i === c
                      ? (o = r - n)
                      : s === c
                      ? (o = 1 / 3 + t - r)
                      : l === c && (o = 2 / 3 + n - t),
                    o < 0 ? (o += 1) : o > 1 && (o -= 1)),
                [360 * o, 100 * a, 100 * c]
              );
            }),
            (o.rgb.hwb = function (e) {
              var t = e[0],
                n = e[1],
                r = e[2];
              return [
                o.rgb.hsl(e)[0],
                (1 / 255) * Math.min(t, Math.min(n, r)) * 100,
                100 * (r = 1 - (1 / 255) * Math.max(t, Math.max(n, r))),
              ];
            }),
            (o.rgb.cmyk = function (e) {
              var t,
                n = e[0] / 255,
                r = e[1] / 255,
                o = e[2] / 255;
              return [
                100 *
                  ((1 - n - (t = Math.min(1 - n, 1 - r, 1 - o))) / (1 - t) ||
                    0),
                100 * ((1 - r - t) / (1 - t) || 0),
                100 * ((1 - o - t) / (1 - t) || 0),
                100 * t,
              ];
            }),
            (o.rgb.keyword = function (e) {
              var r = n[e];
              if (r) return r;
              var o,
                a,
                i,
                s = 1 / 0;
              for (var l in t)
                if (t.hasOwnProperty(l)) {
                  var c = t[l],
                    u =
                      ((a = e),
                      (i = c),
                      Math.pow(a[0] - i[0], 2) +
                        Math.pow(a[1] - i[1], 2) +
                        Math.pow(a[2] - i[2], 2));
                  u < s && ((s = u), (o = l));
                }
              return o;
            }),
            (o.keyword.rgb = function (e) {
              return t[e];
            }),
            (o.rgb.xyz = function (e) {
              var t = e[0] / 255,
                n = e[1] / 255,
                r = e[2] / 255;
              return [
                100 *
                  (0.4124 *
                    (t =
                      t > 0.04045
                        ? Math.pow((t + 0.055) / 1.055, 2.4)
                        : t / 12.92) +
                    0.3576 *
                      (n =
                        n > 0.04045
                          ? Math.pow((n + 0.055) / 1.055, 2.4)
                          : n / 12.92) +
                    0.1805 *
                      (r =
                        r > 0.04045
                          ? Math.pow((r + 0.055) / 1.055, 2.4)
                          : r / 12.92)),
                100 * (0.2126 * t + 0.7152 * n + 0.0722 * r),
                100 * (0.0193 * t + 0.1192 * n + 0.9505 * r),
              ];
            }),
            (o.rgb.lab = function (e) {
              var t = o.rgb.xyz(e),
                n = t[0],
                r = t[1],
                a = t[2];
              return (
                (r /= 100),
                (a /= 108.883),
                (n =
                  (n /= 95.047) > 0.008856
                    ? Math.pow(n, 1 / 3)
                    : 7.787 * n + 16 / 116),
                [
                  116 *
                    (r =
                      r > 0.008856
                        ? Math.pow(r, 1 / 3)
                        : 7.787 * r + 16 / 116) -
                    16,
                  500 * (n - r),
                  200 *
                    (r -
                      (a =
                        a > 0.008856
                          ? Math.pow(a, 1 / 3)
                          : 7.787 * a + 16 / 116)),
                ]
              );
            }),
            (o.hsl.rgb = function (e) {
              var t,
                n,
                r,
                o,
                a,
                i = e[0] / 360,
                s = e[1] / 100,
                l = e[2] / 100;
              if (0 === s) return [(a = 255 * l), a, a];
              (t = 2 * l - (n = l < 0.5 ? l * (1 + s) : l + s - l * s)),
                (o = [0, 0, 0]);
              for (var c = 0; c < 3; c++)
                (r = i + (1 / 3) * -(c - 1)) < 0 && r++,
                  r > 1 && r--,
                  (a =
                    6 * r < 1
                      ? t + 6 * (n - t) * r
                      : 2 * r < 1
                      ? n
                      : 3 * r < 2
                      ? t + (n - t) * (2 / 3 - r) * 6
                      : t),
                  (o[c] = 255 * a);
              return o;
            }),
            (o.hsl.hsv = function (e) {
              var t = e[0],
                n = e[1] / 100,
                r = e[2] / 100,
                o = n,
                a = Math.max(r, 0.01);
              return (
                (n *= (r *= 2) <= 1 ? r : 2 - r),
                (o *= a <= 1 ? a : 2 - a),
                [
                  t,
                  100 * (0 === r ? (2 * o) / (a + o) : (2 * n) / (r + n)),
                  ((r + n) / 2) * 100,
                ]
              );
            }),
            (o.hsv.rgb = function (e) {
              var t = e[0] / 60,
                n = e[1] / 100,
                r = e[2] / 100,
                o = Math.floor(t) % 6,
                a = t - Math.floor(t),
                i = 255 * r * (1 - n),
                s = 255 * r * (1 - n * a),
                l = 255 * r * (1 - n * (1 - a));
              switch (((r *= 255), o)) {
                case 0:
                  return [r, l, i];
                case 1:
                  return [s, r, i];
                case 2:
                  return [i, r, l];
                case 3:
                  return [i, s, r];
                case 4:
                  return [l, i, r];
                case 5:
                  return [r, i, s];
              }
            }),
            (o.hsv.hsl = function (e) {
              var t,
                n,
                r,
                o = e[0],
                a = e[1] / 100,
                i = e[2] / 100,
                s = Math.max(i, 0.01);
              return (
                (r = (2 - a) * i),
                (n = a * s),
                [
                  o,
                  100 * (n = (n /= (t = (2 - a) * s) <= 1 ? t : 2 - t) || 0),
                  100 * (r /= 2),
                ]
              );
            }),
            (o.hwb.rgb = function (e) {
              var t,
                n,
                r,
                o,
                a,
                i,
                s,
                l = e[0] / 360,
                c = e[1] / 100,
                u = e[2] / 100,
                d = c + u;
              switch (
                (d > 1 && ((c /= d), (u /= d)),
                (r = 6 * l - (t = Math.floor(6 * l))),
                0 != (1 & t) && (r = 1 - r),
                (o = c + r * ((n = 1 - u) - c)),
                t)
              ) {
                default:
                case 6:
                case 0:
                  (a = n), (i = o), (s = c);
                  break;
                case 1:
                  (a = o), (i = n), (s = c);
                  break;
                case 2:
                  (a = c), (i = n), (s = o);
                  break;
                case 3:
                  (a = c), (i = o), (s = n);
                  break;
                case 4:
                  (a = o), (i = c), (s = n);
                  break;
                case 5:
                  (a = n), (i = c), (s = o);
              }
              return [255 * a, 255 * i, 255 * s];
            }),
            (o.cmyk.rgb = function (e) {
              var t = e[0] / 100,
                n = e[1] / 100,
                r = e[2] / 100,
                o = e[3] / 100;
              return [
                255 * (1 - Math.min(1, t * (1 - o) + o)),
                255 * (1 - Math.min(1, n * (1 - o) + o)),
                255 * (1 - Math.min(1, r * (1 - o) + o)),
              ];
            }),
            (o.xyz.rgb = function (e) {
              var t,
                n,
                r,
                o = e[0] / 100,
                a = e[1] / 100,
                i = e[2] / 100;
              return (
                (n = -0.9689 * o + 1.8758 * a + 0.0415 * i),
                (r = 0.0557 * o + -0.204 * a + 1.057 * i),
                (t =
                  (t = 3.2406 * o + -1.5372 * a + -0.4986 * i) > 0.0031308
                    ? 1.055 * Math.pow(t, 1 / 2.4) - 0.055
                    : 12.92 * t),
                (n =
                  n > 0.0031308
                    ? 1.055 * Math.pow(n, 1 / 2.4) - 0.055
                    : 12.92 * n),
                (r =
                  r > 0.0031308
                    ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055
                    : 12.92 * r),
                [
                  255 * (t = Math.min(Math.max(0, t), 1)),
                  255 * (n = Math.min(Math.max(0, n), 1)),
                  255 * (r = Math.min(Math.max(0, r), 1)),
                ]
              );
            }),
            (o.xyz.lab = function (e) {
              var t = e[0],
                n = e[1],
                r = e[2];
              return (
                (n /= 100),
                (r /= 108.883),
                (t =
                  (t /= 95.047) > 0.008856
                    ? Math.pow(t, 1 / 3)
                    : 7.787 * t + 16 / 116),
                [
                  116 *
                    (n =
                      n > 0.008856
                        ? Math.pow(n, 1 / 3)
                        : 7.787 * n + 16 / 116) -
                    16,
                  500 * (t - n),
                  200 *
                    (n -
                      (r =
                        r > 0.008856
                          ? Math.pow(r, 1 / 3)
                          : 7.787 * r + 16 / 116)),
                ]
              );
            }),
            (o.lab.xyz = function (e) {
              var t,
                n,
                r,
                o = e[0];
              (t = e[1] / 500 + (n = (o + 16) / 116)), (r = n - e[2] / 200);
              var a = Math.pow(n, 3),
                i = Math.pow(t, 3),
                s = Math.pow(r, 3);
              return (
                (n = a > 0.008856 ? a : (n - 16 / 116) / 7.787),
                (t = i > 0.008856 ? i : (t - 16 / 116) / 7.787),
                (r = s > 0.008856 ? s : (r - 16 / 116) / 7.787),
                [(t *= 95.047), (n *= 100), (r *= 108.883)]
              );
            }),
            (o.lab.lch = function (e) {
              var t,
                n = e[0],
                r = e[1],
                o = e[2];
              return (
                (t = (360 * Math.atan2(o, r)) / 2 / Math.PI) < 0 && (t += 360),
                [n, Math.sqrt(r * r + o * o), t]
              );
            }),
            (o.lch.lab = function (e) {
              var t,
                n = e[0],
                r = e[1];
              return (
                (t = (e[2] / 360) * 2 * Math.PI),
                [n, r * Math.cos(t), r * Math.sin(t)]
              );
            }),
            (o.rgb.ansi16 = function (e) {
              var t = e[0],
                n = e[1],
                r = e[2],
                a = 1 in arguments ? arguments[1] : o.rgb.hsv(e)[2];
              if (0 === (a = Math.round(a / 50))) return 30;
              var i =
                30 +
                ((Math.round(r / 255) << 2) |
                  (Math.round(n / 255) << 1) |
                  Math.round(t / 255));
              return 2 === a && (i += 60), i;
            }),
            (o.hsv.ansi16 = function (e) {
              return o.rgb.ansi16(o.hsv.rgb(e), e[2]);
            }),
            (o.rgb.ansi256 = function (e) {
              var t = e[0],
                n = e[1],
                r = e[2];
              return t === n && n === r
                ? t < 8
                  ? 16
                  : t > 248
                  ? 231
                  : Math.round(((t - 8) / 247) * 24) + 232
                : 16 +
                    36 * Math.round((t / 255) * 5) +
                    6 * Math.round((n / 255) * 5) +
                    Math.round((r / 255) * 5);
            }),
            (o.ansi16.rgb = function (e) {
              var t = e % 10;
              if (0 === t || 7 === t)
                return e > 50 && (t += 3.5), [(t = (t / 10.5) * 255), t, t];
              var n = 0.5 * (1 + ~~(e > 50));
              return [
                (1 & t) * n * 255,
                ((t >> 1) & 1) * n * 255,
                ((t >> 2) & 1) * n * 255,
              ];
            }),
            (o.ansi256.rgb = function (e) {
              if (e >= 232) {
                var t = 10 * (e - 232) + 8;
                return [t, t, t];
              }
              var n;
              return (
                (e -= 16),
                [
                  (Math.floor(e / 36) / 5) * 255,
                  (Math.floor((n = e % 36) / 6) / 5) * 255,
                  ((n % 6) / 5) * 255,
                ]
              );
            }),
            (o.rgb.hex = function (e) {
              var t = (
                ((255 & Math.round(e[0])) << 16) +
                ((255 & Math.round(e[1])) << 8) +
                (255 & Math.round(e[2]))
              )
                .toString(16)
                .toUpperCase();
              return "000000".substring(t.length) + t;
            }),
            (o.hex.rgb = function (e) {
              var t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
              if (!t) return [0, 0, 0];
              var n = t[0];
              3 === t[0].length &&
                (n = n
                  .split("")
                  .map(function (e) {
                    return e + e;
                  })
                  .join(""));
              var r = parseInt(n, 16);
              return [(r >> 16) & 255, (r >> 8) & 255, 255 & r];
            }),
            (o.rgb.hcg = function (e) {
              var t,
                n = e[0] / 255,
                r = e[1] / 255,
                o = e[2] / 255,
                a = Math.max(Math.max(n, r), o),
                i = Math.min(Math.min(n, r), o),
                s = a - i;
              return (
                (t =
                  s <= 0
                    ? 0
                    : a === n
                    ? ((r - o) / s) % 6
                    : a === r
                    ? 2 + (o - n) / s
                    : 4 + (n - r) / s + 4),
                (t /= 6),
                [360 * (t %= 1), 100 * s, 100 * (s < 1 ? i / (1 - s) : 0)]
              );
            }),
            (o.hsl.hcg = function (e) {
              var t = e[1] / 100,
                n = e[2] / 100,
                r = 1,
                o = 0;
              return (
                (r = n < 0.5 ? 2 * t * n : 2 * t * (1 - n)) < 1 &&
                  (o = (n - 0.5 * r) / (1 - r)),
                [e[0], 100 * r, 100 * o]
              );
            }),
            (o.hsv.hcg = function (e) {
              var t = e[1] / 100,
                n = e[2] / 100,
                r = t * n,
                o = 0;
              return r < 1 && (o = (n - r) / (1 - r)), [e[0], 100 * r, 100 * o];
            }),
            (o.hcg.rgb = function (e) {
              var t = e[0] / 360,
                n = e[1] / 100,
                r = e[2] / 100;
              if (0 === n) return [255 * r, 255 * r, 255 * r];
              var o,
                a = [0, 0, 0],
                i = (t % 1) * 6,
                s = i % 1,
                l = 1 - s;
              switch (Math.floor(i)) {
                case 0:
                  (a[0] = 1), (a[1] = s), (a[2] = 0);
                  break;
                case 1:
                  (a[0] = l), (a[1] = 1), (a[2] = 0);
                  break;
                case 2:
                  (a[0] = 0), (a[1] = 1), (a[2] = s);
                  break;
                case 3:
                  (a[0] = 0), (a[1] = l), (a[2] = 1);
                  break;
                case 4:
                  (a[0] = s), (a[1] = 0), (a[2] = 1);
                  break;
                default:
                  (a[0] = 1), (a[1] = 0), (a[2] = l);
              }
              return (
                (o = (1 - n) * r),
                [
                  255 * (n * a[0] + o),
                  255 * (n * a[1] + o),
                  255 * (n * a[2] + o),
                ]
              );
            }),
            (o.hcg.hsv = function (e) {
              var t = e[1] / 100,
                n = t + (e[2] / 100) * (1 - t),
                r = 0;
              return n > 0 && (r = t / n), [e[0], 100 * r, 100 * n];
            }),
            (o.hcg.hsl = function (e) {
              var t = e[1] / 100,
                n = (e[2] / 100) * (1 - t) + 0.5 * t,
                r = 0;
              return (
                n > 0 && n < 0.5
                  ? (r = t / (2 * n))
                  : n >= 0.5 && n < 1 && (r = t / (2 * (1 - n))),
                [e[0], 100 * r, 100 * n]
              );
            }),
            (o.hcg.hwb = function (e) {
              var t = e[1] / 100,
                n = t + (e[2] / 100) * (1 - t);
              return [e[0], 100 * (n - t), 100 * (1 - n)];
            }),
            (o.hwb.hcg = function (e) {
              var t = e[1] / 100,
                n = 1 - e[2] / 100,
                r = n - t,
                o = 0;
              return r < 1 && (o = (n - r) / (1 - r)), [e[0], 100 * r, 100 * o];
            }),
            (o.apple.rgb = function (e) {
              return [
                (e[0] / 65535) * 255,
                (e[1] / 65535) * 255,
                (e[2] / 65535) * 255,
              ];
            }),
            (o.rgb.apple = function (e) {
              return [
                (e[0] / 255) * 65535,
                (e[1] / 255) * 65535,
                (e[2] / 255) * 65535,
              ];
            }),
            (o.gray.rgb = function (e) {
              return [
                (e[0] / 100) * 255,
                (e[0] / 100) * 255,
                (e[0] / 100) * 255,
              ];
            }),
            (o.gray.hsl = o.gray.hsv = function (e) {
              return [0, 0, e[0]];
            }),
            (o.gray.hwb = function (e) {
              return [0, 100, e[0]];
            }),
            (o.gray.cmyk = function (e) {
              return [0, 0, 0, e[0]];
            }),
            (o.gray.lab = function (e) {
              return [e[0], 0, 0];
            }),
            (o.gray.hex = function (e) {
              var t = 255 & Math.round((e[0] / 100) * 255),
                n = ((t << 16) + (t << 8) + t).toString(16).toUpperCase();
              return "000000".substring(n.length) + n;
            }),
            (o.rgb.gray = function (e) {
              return [((e[0] + e[1] + e[2]) / 3 / 255) * 100];
            });
        });
      function r(e) {
        var t = (function () {
            for (
              var e = {}, t = Object.keys(n), r = t.length, o = 0;
              o < r;
              o++
            )
              e[t[o]] = { distance: -1, parent: null };
            return e;
          })(),
          r = [e];
        for (t[e].distance = 0; r.length; )
          for (
            var o = r.pop(), a = Object.keys(n[o]), i = a.length, s = 0;
            s < i;
            s++
          ) {
            var l = a[s],
              c = t[l];
            -1 === c.distance &&
              ((c.distance = t[o].distance + 1), (c.parent = o), r.unshift(l));
          }
        return t;
      }
      function o(e, t) {
        return function (n) {
          return t(e(n));
        };
      }
      function a(e, t) {
        for (
          var r = [t[e].parent, e], a = n[t[e].parent][e], i = t[e].parent;
          t[i].parent;

        )
          r.unshift(t[i].parent),
            (a = o(n[t[i].parent][i], a)),
            (i = t[i].parent);
        return (a.conversion = r), a;
      }
      n.rgb,
        n.hsl,
        n.hsv,
        n.hwb,
        n.cmyk,
        n.xyz,
        n.lab,
        n.lch,
        n.hex,
        n.keyword,
        n.ansi16,
        n.ansi256,
        n.hcg,
        n.apple,
        n.gray;
      var i = {};
      Object.keys(n).forEach(function (e) {
        (i[e] = {}),
          Object.defineProperty(i[e], "channels", { value: n[e].channels }),
          Object.defineProperty(i[e], "labels", { value: n[e].labels });
        var t = (function (e) {
          for (
            var t = r(e), n = {}, o = Object.keys(t), i = o.length, s = 0;
            s < i;
            s++
          ) {
            var l = o[s];
            null !== t[l].parent && (n[l] = a(l, t));
          }
          return n;
        })(e);
        Object.keys(t).forEach(function (n) {
          var r = t[n];
          (i[e][n] = (function (e) {
            var t = function (t) {
              if (null == t) return t;
              arguments.length > 1 &&
                (t = Array.prototype.slice.call(arguments));
              var n = e(t);
              if ("object" == typeof n)
                for (var r = n.length, o = 0; o < r; o++)
                  n[o] = Math.round(n[o]);
              return n;
            };
            return "conversion" in e && (t.conversion = e.conversion), t;
          })(r)),
            (i[e][n].raw = (function (e) {
              var t = function (t) {
                return null == t
                  ? t
                  : (arguments.length > 1 &&
                      (t = Array.prototype.slice.call(arguments)),
                    e(t));
              };
              return "conversion" in e && (t.conversion = e.conversion), t;
            })(r));
        });
      });
      var s = i,
        l = {
          aliceblue: [240, 248, 255],
          antiquewhite: [250, 235, 215],
          aqua: [0, 255, 255],
          aquamarine: [127, 255, 212],
          azure: [240, 255, 255],
          beige: [245, 245, 220],
          bisque: [255, 228, 196],
          black: [0, 0, 0],
          blanchedalmond: [255, 235, 205],
          blue: [0, 0, 255],
          blueviolet: [138, 43, 226],
          brown: [165, 42, 42],
          burlywood: [222, 184, 135],
          cadetblue: [95, 158, 160],
          chartreuse: [127, 255, 0],
          chocolate: [210, 105, 30],
          coral: [255, 127, 80],
          cornflowerblue: [100, 149, 237],
          cornsilk: [255, 248, 220],
          crimson: [220, 20, 60],
          cyan: [0, 255, 255],
          darkblue: [0, 0, 139],
          darkcyan: [0, 139, 139],
          darkgoldenrod: [184, 134, 11],
          darkgray: [169, 169, 169],
          darkgreen: [0, 100, 0],
          darkgrey: [169, 169, 169],
          darkkhaki: [189, 183, 107],
          darkmagenta: [139, 0, 139],
          darkolivegreen: [85, 107, 47],
          darkorange: [255, 140, 0],
          darkorchid: [153, 50, 204],
          darkred: [139, 0, 0],
          darksalmon: [233, 150, 122],
          darkseagreen: [143, 188, 143],
          darkslateblue: [72, 61, 139],
          darkslategray: [47, 79, 79],
          darkslategrey: [47, 79, 79],
          darkturquoise: [0, 206, 209],
          darkviolet: [148, 0, 211],
          deeppink: [255, 20, 147],
          deepskyblue: [0, 191, 255],
          dimgray: [105, 105, 105],
          dimgrey: [105, 105, 105],
          dodgerblue: [30, 144, 255],
          firebrick: [178, 34, 34],
          floralwhite: [255, 250, 240],
          forestgreen: [34, 139, 34],
          fuchsia: [255, 0, 255],
          gainsboro: [220, 220, 220],
          ghostwhite: [248, 248, 255],
          gold: [255, 215, 0],
          goldenrod: [218, 165, 32],
          gray: [128, 128, 128],
          green: [0, 128, 0],
          greenyellow: [173, 255, 47],
          grey: [128, 128, 128],
          honeydew: [240, 255, 240],
          hotpink: [255, 105, 180],
          indianred: [205, 92, 92],
          indigo: [75, 0, 130],
          ivory: [255, 255, 240],
          khaki: [240, 230, 140],
          lavender: [230, 230, 250],
          lavenderblush: [255, 240, 245],
          lawngreen: [124, 252, 0],
          lemonchiffon: [255, 250, 205],
          lightblue: [173, 216, 230],
          lightcoral: [240, 128, 128],
          lightcyan: [224, 255, 255],
          lightgoldenrodyellow: [250, 250, 210],
          lightgray: [211, 211, 211],
          lightgreen: [144, 238, 144],
          lightgrey: [211, 211, 211],
          lightpink: [255, 182, 193],
          lightsalmon: [255, 160, 122],
          lightseagreen: [32, 178, 170],
          lightskyblue: [135, 206, 250],
          lightslategray: [119, 136, 153],
          lightslategrey: [119, 136, 153],
          lightsteelblue: [176, 196, 222],
          lightyellow: [255, 255, 224],
          lime: [0, 255, 0],
          limegreen: [50, 205, 50],
          linen: [250, 240, 230],
          magenta: [255, 0, 255],
          maroon: [128, 0, 0],
          mediumaquamarine: [102, 205, 170],
          mediumblue: [0, 0, 205],
          mediumorchid: [186, 85, 211],
          mediumpurple: [147, 112, 219],
          mediumseagreen: [60, 179, 113],
          mediumslateblue: [123, 104, 238],
          mediumspringgreen: [0, 250, 154],
          mediumturquoise: [72, 209, 204],
          mediumvioletred: [199, 21, 133],
          midnightblue: [25, 25, 112],
          mintcream: [245, 255, 250],
          mistyrose: [255, 228, 225],
          moccasin: [255, 228, 181],
          navajowhite: [255, 222, 173],
          navy: [0, 0, 128],
          oldlace: [253, 245, 230],
          olive: [128, 128, 0],
          olivedrab: [107, 142, 35],
          orange: [255, 165, 0],
          orangered: [255, 69, 0],
          orchid: [218, 112, 214],
          palegoldenrod: [238, 232, 170],
          palegreen: [152, 251, 152],
          paleturquoise: [175, 238, 238],
          palevioletred: [219, 112, 147],
          papayawhip: [255, 239, 213],
          peachpuff: [255, 218, 185],
          peru: [205, 133, 63],
          pink: [255, 192, 203],
          plum: [221, 160, 221],
          powderblue: [176, 224, 230],
          purple: [128, 0, 128],
          rebeccapurple: [102, 51, 153],
          red: [255, 0, 0],
          rosybrown: [188, 143, 143],
          royalblue: [65, 105, 225],
          saddlebrown: [139, 69, 19],
          salmon: [250, 128, 114],
          sandybrown: [244, 164, 96],
          seagreen: [46, 139, 87],
          seashell: [255, 245, 238],
          sienna: [160, 82, 45],
          silver: [192, 192, 192],
          skyblue: [135, 206, 235],
          slateblue: [106, 90, 205],
          slategray: [112, 128, 144],
          slategrey: [112, 128, 144],
          snow: [255, 250, 250],
          springgreen: [0, 255, 127],
          steelblue: [70, 130, 180],
          tan: [210, 180, 140],
          teal: [0, 128, 128],
          thistle: [216, 191, 216],
          tomato: [255, 99, 71],
          turquoise: [64, 224, 208],
          violet: [238, 130, 238],
          wheat: [245, 222, 179],
          white: [255, 255, 255],
          whitesmoke: [245, 245, 245],
          yellow: [255, 255, 0],
          yellowgreen: [154, 205, 50],
        },
        c = {
          getRgba: u,
          getHsla: d,
          getRgb: function (e) {
            var t = u(e);
            return t && t.slice(0, 3);
          },
          getHsl: function (e) {
            var t = d(e);
            return t && t.slice(0, 3);
          },
          getHwb: h,
          getAlpha: function (e) {
            var t = u(e);
            return t || (t = d(e)) || (t = h(e)) ? t[3] : void 0;
          },
          hexString: function (e, t) {
            return (
              (t = void 0 !== t && 3 === e.length ? t : e[3]),
              "#" +
                _(e[0]) +
                _(e[1]) +
                _(e[2]) +
                (t >= 0 && t < 1 ? _(Math.round(255 * t)) : "")
            );
          },
          rgbString: function (e, t) {
            return t < 1 || (e[3] && e[3] < 1)
              ? p(e, t)
              : "rgb(" + e[0] + ", " + e[1] + ", " + e[2] + ")";
          },
          rgbaString: p,
          percentString: function (e, t) {
            if (t < 1 || (e[3] && e[3] < 1)) return f(e, t);
            var n = Math.round((e[0] / 255) * 100),
              r = Math.round((e[1] / 255) * 100),
              o = Math.round((e[2] / 255) * 100);
            return "rgb(" + n + "%, " + r + "%, " + o + "%)";
          },
          percentaString: f,
          hslString: function (e, t) {
            return t < 1 || (e[3] && e[3] < 1)
              ? m(e, t)
              : "hsl(" + e[0] + ", " + e[1] + "%, " + e[2] + "%)";
          },
          hslaString: m,
          hwbString: function (e, t) {
            return (
              void 0 === t && (t = void 0 !== e[3] ? e[3] : 1),
              "hwb(" +
                e[0] +
                ", " +
                e[1] +
                "%, " +
                e[2] +
                "%" +
                (void 0 !== t && 1 !== t ? ", " + t : "") +
                ")"
            );
          },
          keyword: function (e) {
            return v[e.slice(0, 3)];
          },
        };
      function u(e) {
        if (e) {
          var t = [0, 0, 0],
            n = 1,
            r = e.match(/^#([a-fA-F0-9]{3,4})$/i),
            o = "";
          if (r) {
            o = (r = r[1])[3];
            for (var a = 0; a < t.length; a++) t[a] = parseInt(r[a] + r[a], 16);
            o && (n = Math.round((parseInt(o + o, 16) / 255) * 100) / 100);
          } else if ((r = e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i))) {
            for (o = r[2], r = r[1], a = 0; a < t.length; a++)
              t[a] = parseInt(r.slice(2 * a, 2 * a + 2), 16);
            o && (n = Math.round((parseInt(o, 16) / 255) * 100) / 100);
          } else if (
            (r = e.match(
              /^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i
            ))
          ) {
            for (a = 0; a < t.length; a++) t[a] = parseInt(r[a + 1]);
            n = parseFloat(r[4]);
          } else if (
            (r = e.match(
              /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i
            ))
          ) {
            for (a = 0; a < t.length; a++)
              t[a] = Math.round(2.55 * parseFloat(r[a + 1]));
            n = parseFloat(r[4]);
          } else if ((r = e.match(/(\w+)/))) {
            if ("transparent" == r[1]) return [0, 0, 0, 0];
            if (!(t = l[r[1]])) return;
          }
          for (a = 0; a < t.length; a++) t[a] = g(t[a], 0, 255);
          return (n = n || 0 == n ? g(n, 0, 1) : 1), (t[3] = n), t;
        }
      }
      function d(e) {
        if (e) {
          var t = e.match(
            /^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/
          );
          if (t) {
            var n = parseFloat(t[4]);
            return [
              g(parseInt(t[1]), 0, 360),
              g(parseFloat(t[2]), 0, 100),
              g(parseFloat(t[3]), 0, 100),
              g(isNaN(n) ? 1 : n, 0, 1),
            ];
          }
        }
      }
      function h(e) {
        if (e) {
          var t = e.match(
            /^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/
          );
          if (t) {
            var n = parseFloat(t[4]);
            return [
              g(parseInt(t[1]), 0, 360),
              g(parseFloat(t[2]), 0, 100),
              g(parseFloat(t[3]), 0, 100),
              g(isNaN(n) ? 1 : n, 0, 1),
            ];
          }
        }
      }
      function p(e, t) {
        return (
          void 0 === t && (t = void 0 !== e[3] ? e[3] : 1),
          "rgba(" + e[0] + ", " + e[1] + ", " + e[2] + ", " + t + ")"
        );
      }
      function f(e, t) {
        return (
          "rgba(" +
          Math.round((e[0] / 255) * 100) +
          "%, " +
          Math.round((e[1] / 255) * 100) +
          "%, " +
          Math.round((e[2] / 255) * 100) +
          "%, " +
          (t || e[3] || 1) +
          ")"
        );
      }
      function m(e, t) {
        return (
          void 0 === t && (t = void 0 !== e[3] ? e[3] : 1),
          "hsla(" + e[0] + ", " + e[1] + "%, " + e[2] + "%, " + t + ")"
        );
      }
      function g(e, t, n) {
        return Math.min(Math.max(t, e), n);
      }
      function _(e) {
        var t = e.toString(16).toUpperCase();
        return t.length < 2 ? "0" + t : t;
      }
      var v = {};
      for (var b in l) v[l[b]] = b;
      var y = function (e) {
        return e instanceof y
          ? e
          : this instanceof y
          ? ((this.valid = !1),
            (this.values = {
              rgb: [0, 0, 0],
              hsl: [0, 0, 0],
              hsv: [0, 0, 0],
              hwb: [0, 0, 0],
              cmyk: [0, 0, 0, 0],
              alpha: 1,
            }),
            void ("string" == typeof e
              ? (t = c.getRgba(e))
                ? this.setValues("rgb", t)
                : (t = c.getHsla(e))
                ? this.setValues("hsl", t)
                : (t = c.getHwb(e)) && this.setValues("hwb", t)
              : "object" == typeof e &&
                (void 0 !== (t = e).r || void 0 !== t.red
                  ? this.setValues("rgb", t)
                  : void 0 !== t.l || void 0 !== t.lightness
                  ? this.setValues("hsl", t)
                  : void 0 !== t.v || void 0 !== t.value
                  ? this.setValues("hsv", t)
                  : void 0 !== t.w || void 0 !== t.whiteness
                  ? this.setValues("hwb", t)
                  : (void 0 === t.c && void 0 === t.cyan) ||
                    this.setValues("cmyk", t))))
          : new y(e);
        var t;
      };
      (y.prototype = {
        isValid: function () {
          return this.valid;
        },
        rgb: function () {
          return this.setSpace("rgb", arguments);
        },
        hsl: function () {
          return this.setSpace("hsl", arguments);
        },
        hsv: function () {
          return this.setSpace("hsv", arguments);
        },
        hwb: function () {
          return this.setSpace("hwb", arguments);
        },
        cmyk: function () {
          return this.setSpace("cmyk", arguments);
        },
        rgbArray: function () {
          return this.values.rgb;
        },
        hslArray: function () {
          return this.values.hsl;
        },
        hsvArray: function () {
          return this.values.hsv;
        },
        hwbArray: function () {
          var e = this.values;
          return 1 !== e.alpha ? e.hwb.concat([e.alpha]) : e.hwb;
        },
        cmykArray: function () {
          return this.values.cmyk;
        },
        rgbaArray: function () {
          var e = this.values;
          return e.rgb.concat([e.alpha]);
        },
        hslaArray: function () {
          var e = this.values;
          return e.hsl.concat([e.alpha]);
        },
        alpha: function (e) {
          return void 0 === e
            ? this.values.alpha
            : (this.setValues("alpha", e), this);
        },
        red: function (e) {
          return this.setChannel("rgb", 0, e);
        },
        green: function (e) {
          return this.setChannel("rgb", 1, e);
        },
        blue: function (e) {
          return this.setChannel("rgb", 2, e);
        },
        hue: function (e) {
          return (
            e && (e = (e %= 360) < 0 ? 360 + e : e),
            this.setChannel("hsl", 0, e)
          );
        },
        saturation: function (e) {
          return this.setChannel("hsl", 1, e);
        },
        lightness: function (e) {
          return this.setChannel("hsl", 2, e);
        },
        saturationv: function (e) {
          return this.setChannel("hsv", 1, e);
        },
        whiteness: function (e) {
          return this.setChannel("hwb", 1, e);
        },
        blackness: function (e) {
          return this.setChannel("hwb", 2, e);
        },
        value: function (e) {
          return this.setChannel("hsv", 2, e);
        },
        cyan: function (e) {
          return this.setChannel("cmyk", 0, e);
        },
        magenta: function (e) {
          return this.setChannel("cmyk", 1, e);
        },
        yellow: function (e) {
          return this.setChannel("cmyk", 2, e);
        },
        black: function (e) {
          return this.setChannel("cmyk", 3, e);
        },
        hexString: function () {
          return c.hexString(this.values.rgb);
        },
        rgbString: function () {
          return c.rgbString(this.values.rgb, this.values.alpha);
        },
        rgbaString: function () {
          return c.rgbaString(this.values.rgb, this.values.alpha);
        },
        percentString: function () {
          return c.percentString(this.values.rgb, this.values.alpha);
        },
        hslString: function () {
          return c.hslString(this.values.hsl, this.values.alpha);
        },
        hslaString: function () {
          return c.hslaString(this.values.hsl, this.values.alpha);
        },
        hwbString: function () {
          return c.hwbString(this.values.hwb, this.values.alpha);
        },
        keyword: function () {
          return c.keyword(this.values.rgb, this.values.alpha);
        },
        rgbNumber: function () {
          var e = this.values.rgb;
          return (e[0] << 16) | (e[1] << 8) | e[2];
        },
        luminosity: function () {
          for (var e = this.values.rgb, t = [], n = 0; n < e.length; n++) {
            var r = e[n] / 255;
            t[n] =
              r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
          }
          return 0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2];
        },
        contrast: function (e) {
          var t = this.luminosity(),
            n = e.luminosity();
          return t > n ? (t + 0.05) / (n + 0.05) : (n + 0.05) / (t + 0.05);
        },
        level: function (e) {
          var t = this.contrast(e);
          return t >= 7.1 ? "AAA" : t >= 4.5 ? "AA" : "";
        },
        dark: function () {
          var e = this.values.rgb;
          return (299 * e[0] + 587 * e[1] + 114 * e[2]) / 1e3 < 128;
        },
        light: function () {
          return !this.dark();
        },
        negate: function () {
          for (var e = [], t = 0; t < 3; t++) e[t] = 255 - this.values.rgb[t];
          return this.setValues("rgb", e), this;
        },
        lighten: function (e) {
          var t = this.values.hsl;
          return (t[2] += t[2] * e), this.setValues("hsl", t), this;
        },
        darken: function (e) {
          var t = this.values.hsl;
          return (t[2] -= t[2] * e), this.setValues("hsl", t), this;
        },
        saturate: function (e) {
          var t = this.values.hsl;
          return (t[1] += t[1] * e), this.setValues("hsl", t), this;
        },
        desaturate: function (e) {
          var t = this.values.hsl;
          return (t[1] -= t[1] * e), this.setValues("hsl", t), this;
        },
        whiten: function (e) {
          var t = this.values.hwb;
          return (t[1] += t[1] * e), this.setValues("hwb", t), this;
        },
        blacken: function (e) {
          var t = this.values.hwb;
          return (t[2] += t[2] * e), this.setValues("hwb", t), this;
        },
        greyscale: function () {
          var e = this.values.rgb,
            t = 0.3 * e[0] + 0.59 * e[1] + 0.11 * e[2];
          return this.setValues("rgb", [t, t, t]), this;
        },
        clearer: function (e) {
          var t = this.values.alpha;
          return this.setValues("alpha", t - t * e), this;
        },
        opaquer: function (e) {
          var t = this.values.alpha;
          return this.setValues("alpha", t + t * e), this;
        },
        rotate: function (e) {
          var t = this.values.hsl,
            n = (t[0] + e) % 360;
          return (t[0] = n < 0 ? 360 + n : n), this.setValues("hsl", t), this;
        },
        mix: function (e, t) {
          var n = e,
            r = void 0 === t ? 0.5 : t,
            o = 2 * r - 1,
            a = this.alpha() - n.alpha(),
            i = ((o * a == -1 ? o : (o + a) / (1 + o * a)) + 1) / 2,
            s = 1 - i;
          return this.rgb(
            i * this.red() + s * n.red(),
            i * this.green() + s * n.green(),
            i * this.blue() + s * n.blue()
          ).alpha(this.alpha() * r + n.alpha() * (1 - r));
        },
        toJSON: function () {
          return this.rgb();
        },
        clone: function () {
          var e,
            t,
            n = new y(),
            r = this.values,
            o = n.values;
          for (var a in r)
            r.hasOwnProperty(a) &&
              ((e = r[a]),
              "[object Array]" === (t = {}.toString.call(e))
                ? (o[a] = e.slice(0))
                : "[object Number]" === t
                ? (o[a] = e)
                : console.error("unexpected color value:", e));
          return n;
        },
      }),
        (y.prototype.spaces = {
          rgb: ["red", "green", "blue"],
          hsl: ["hue", "saturation", "lightness"],
          hsv: ["hue", "saturation", "value"],
          hwb: ["hue", "whiteness", "blackness"],
          cmyk: ["cyan", "magenta", "yellow", "black"],
        }),
        (y.prototype.maxes = {
          rgb: [255, 255, 255],
          hsl: [360, 100, 100],
          hsv: [360, 100, 100],
          hwb: [360, 100, 100],
          cmyk: [100, 100, 100, 100],
        }),
        (y.prototype.getValues = function (e) {
          for (var t = this.values, n = {}, r = 0; r < e.length; r++)
            n[e.charAt(r)] = t[e][r];
          return 1 !== t.alpha && (n.a = t.alpha), n;
        }),
        (y.prototype.setValues = function (e, t) {
          var n,
            r,
            o = this.values,
            a = this.spaces,
            i = this.maxes,
            l = 1;
          if (((this.valid = !0), "alpha" === e)) l = t;
          else if (t.length) (o[e] = t.slice(0, e.length)), (l = t[e.length]);
          else if (void 0 !== t[e.charAt(0)]) {
            for (n = 0; n < e.length; n++) o[e][n] = t[e.charAt(n)];
            l = t.a;
          } else if (void 0 !== t[a[e][0]]) {
            var c = a[e];
            for (n = 0; n < e.length; n++) o[e][n] = t[c[n]];
            l = t.alpha;
          }
          if (
            ((o.alpha = Math.max(0, Math.min(1, void 0 === l ? o.alpha : l))),
            "alpha" === e)
          )
            return !1;
          for (n = 0; n < e.length; n++)
            (r = Math.max(0, Math.min(i[e][n], o[e][n]))),
              (o[e][n] = Math.round(r));
          for (var u in a) u !== e && (o[u] = s[e][u](o[e]));
          return !0;
        }),
        (y.prototype.setSpace = function (e, t) {
          var n = t[0];
          return void 0 === n
            ? this.getValues(e)
            : ("number" == typeof n && (n = Array.prototype.slice.call(t)),
              this.setValues(e, n),
              this);
        }),
        (y.prototype.setChannel = function (e, t, n) {
          var r = this.values[e];
          return void 0 === n
            ? r[t]
            : (n === r[t] || ((r[t] = n), this.setValues(e, r)), this);
        }),
        "undefined" != typeof window && (window.Color = y);
      var w = y;
      function k(e) {
        return -1 === ["__proto__", "prototype", "constructor"].indexOf(e);
      }
      var x,
        M = {
          noop: function () {},
          uid:
            ((x = 0),
            function () {
              return x++;
            }),
          isNullOrUndef: function (e) {
            return null == e;
          },
          isArray: function (e) {
            if (Array.isArray && Array.isArray(e)) return !0;
            var t = Object.prototype.toString.call(e);
            return "[object" === t.substr(0, 7) && "Array]" === t.substr(-6);
          },
          isObject: function (e) {
            return (
              null !== e &&
              "[object Object]" === Object.prototype.toString.call(e)
            );
          },
          isFinite: function (e) {
            return ("number" == typeof e || e instanceof Number) && isFinite(e);
          },
          valueOrDefault: function (e, t) {
            return void 0 === e ? t : e;
          },
          valueAtIndexOrDefault: function (e, t, n) {
            return M.valueOrDefault(M.isArray(e) ? e[t] : e, n);
          },
          callback: function (e, t, n) {
            if (e && "function" == typeof e.call) return e.apply(n, t);
          },
          each: function (e, t, n, r) {
            var o, a, i;
            if (M.isArray(e))
              if (((a = e.length), r))
                for (o = a - 1; o >= 0; o--) t.call(n, e[o], o);
              else for (o = 0; o < a; o++) t.call(n, e[o], o);
            else if (M.isObject(e))
              for (a = (i = Object.keys(e)).length, o = 0; o < a; o++)
                t.call(n, e[i[o]], i[o]);
          },
          arrayEquals: function (e, t) {
            var n, r, o, a;
            if (!e || !t || e.length !== t.length) return !1;
            for (n = 0, r = e.length; n < r; ++n)
              if (
                ((o = e[n]),
                (a = t[n]),
                o instanceof Array && a instanceof Array)
              ) {
                if (!M.arrayEquals(o, a)) return !1;
              } else if (o !== a) return !1;
            return !0;
          },
          clone: function (e) {
            if (M.isArray(e)) return e.map(M.clone);
            if (M.isObject(e)) {
              for (
                var t = Object.create(e),
                  n = Object.keys(e),
                  r = n.length,
                  o = 0;
                o < r;
                ++o
              )
                t[n[o]] = M.clone(e[n[o]]);
              return t;
            }
            return e;
          },
          _merger: function (e, t, n, r) {
            if (k(e)) {
              var o = t[e],
                a = n[e];
              M.isObject(o) && M.isObject(a)
                ? M.merge(o, a, r)
                : (t[e] = M.clone(a));
            }
          },
          _mergerIf: function (e, t, n) {
            if (k(e)) {
              var r = t[e],
                o = n[e];
              M.isObject(r) && M.isObject(o)
                ? M.mergeIf(r, o)
                : t.hasOwnProperty(e) || (t[e] = M.clone(o));
            }
          },
          merge: function (e, t, n) {
            var r,
              o,
              a,
              i,
              s,
              l = M.isArray(t) ? t : [t],
              c = l.length;
            if (!M.isObject(e)) return e;
            for (r = (n = n || {}).merger || M._merger, o = 0; o < c; ++o)
              if (((t = l[o]), M.isObject(t)))
                for (s = 0, i = (a = Object.keys(t)).length; s < i; ++s)
                  r(a[s], e, t, n);
            return e;
          },
          mergeIf: function (e, t) {
            return M.merge(e, t, { merger: M._mergerIf });
          },
          extend:
            Object.assign ||
            function (e) {
              return M.merge(e, [].slice.call(arguments, 1), {
                merger: function (e, t, n) {
                  t[e] = n[e];
                },
              });
            },
          inherits: function (e) {
            var t = this,
              n =
                e && e.hasOwnProperty("constructor")
                  ? e.constructor
                  : function () {
                      return t.apply(this, arguments);
                    },
              r = function () {
                this.constructor = n;
              };
            return (
              (r.prototype = t.prototype),
              (n.prototype = new r()),
              (n.extend = M.inherits),
              e && M.extend(n.prototype, e),
              (n.__super__ = t.prototype),
              n
            );
          },
          _deprecated: function (e, t, n, r) {
            void 0 !== t &&
              console.warn(
                e +
                  ': "' +
                  n +
                  '" is deprecated. Please use "' +
                  r +
                  '" instead'
              );
          },
        },
        E = M;
      (M.callCallback = M.callback),
        (M.indexOf = function (e, t, n) {
          return Array.prototype.indexOf.call(e, t, n);
        }),
        (M.getValueOrDefault = M.valueOrDefault),
        (M.getValueAtIndexOrDefault = M.valueAtIndexOrDefault);
      var T = {
          linear: function (e) {
            return e;
          },
          easeInQuad: function (e) {
            return e * e;
          },
          easeOutQuad: function (e) {
            return -e * (e - 2);
          },
          easeInOutQuad: function (e) {
            return (e /= 0.5) < 1 ? 0.5 * e * e : -0.5 * (--e * (e - 2) - 1);
          },
          easeInCubic: function (e) {
            return e * e * e;
          },
          easeOutCubic: function (e) {
            return (e -= 1) * e * e + 1;
          },
          easeInOutCubic: function (e) {
            return (e /= 0.5) < 1
              ? 0.5 * e * e * e
              : 0.5 * ((e -= 2) * e * e + 2);
          },
          easeInQuart: function (e) {
            return e * e * e * e;
          },
          easeOutQuart: function (e) {
            return -((e -= 1) * e * e * e - 1);
          },
          easeInOutQuart: function (e) {
            return (e /= 0.5) < 1
              ? 0.5 * e * e * e * e
              : -0.5 * ((e -= 2) * e * e * e - 2);
          },
          easeInQuint: function (e) {
            return e * e * e * e * e;
          },
          easeOutQuint: function (e) {
            return (e -= 1) * e * e * e * e + 1;
          },
          easeInOutQuint: function (e) {
            return (e /= 0.5) < 1
              ? 0.5 * e * e * e * e * e
              : 0.5 * ((e -= 2) * e * e * e * e + 2);
          },
          easeInSine: function (e) {
            return 1 - Math.cos(e * (Math.PI / 2));
          },
          easeOutSine: function (e) {
            return Math.sin(e * (Math.PI / 2));
          },
          easeInOutSine: function (e) {
            return -0.5 * (Math.cos(Math.PI * e) - 1);
          },
          easeInExpo: function (e) {
            return 0 === e ? 0 : Math.pow(2, 10 * (e - 1));
          },
          easeOutExpo: function (e) {
            return 1 === e ? 1 : 1 - Math.pow(2, -10 * e);
          },
          easeInOutExpo: function (e) {
            return 0 === e
              ? 0
              : 1 === e
              ? 1
              : (e /= 0.5) < 1
              ? 0.5 * Math.pow(2, 10 * (e - 1))
              : 0.5 * (2 - Math.pow(2, -10 * --e));
          },
          easeInCirc: function (e) {
            return e >= 1 ? e : -(Math.sqrt(1 - e * e) - 1);
          },
          easeOutCirc: function (e) {
            return Math.sqrt(1 - (e -= 1) * e);
          },
          easeInOutCirc: function (e) {
            return (e /= 0.5) < 1
              ? -0.5 * (Math.sqrt(1 - e * e) - 1)
              : 0.5 * (Math.sqrt(1 - (e -= 2) * e) + 1);
          },
          easeInElastic: function (e) {
            var t = 1.70158,
              n = 0,
              r = 1;
            return 0 === e
              ? 0
              : 1 === e
              ? 1
              : (n || (n = 0.3),
                r < 1
                  ? ((r = 1), (t = n / 4))
                  : (t = (n / (2 * Math.PI)) * Math.asin(1 / r)),
                -r *
                  Math.pow(2, 10 * (e -= 1)) *
                  Math.sin(((e - t) * (2 * Math.PI)) / n));
          },
          easeOutElastic: function (e) {
            var t = 1.70158,
              n = 0,
              r = 1;
            return 0 === e
              ? 0
              : 1 === e
              ? 1
              : (n || (n = 0.3),
                r < 1
                  ? ((r = 1), (t = n / 4))
                  : (t = (n / (2 * Math.PI)) * Math.asin(1 / r)),
                r *
                  Math.pow(2, -10 * e) *
                  Math.sin(((e - t) * (2 * Math.PI)) / n) +
                  1);
          },
          easeInOutElastic: function (e) {
            var t = 1.70158,
              n = 0,
              r = 1;
            return 0 === e
              ? 0
              : 2 == (e /= 0.5)
              ? 1
              : (n || (n = 0.45),
                r < 1
                  ? ((r = 1), (t = n / 4))
                  : (t = (n / (2 * Math.PI)) * Math.asin(1 / r)),
                e < 1
                  ? r *
                    Math.pow(2, 10 * (e -= 1)) *
                    Math.sin(((e - t) * (2 * Math.PI)) / n) *
                    -0.5
                  : r *
                      Math.pow(2, -10 * (e -= 1)) *
                      Math.sin(((e - t) * (2 * Math.PI)) / n) *
                      0.5 +
                    1);
          },
          easeInBack: function (e) {
            var t = 1.70158;
            return e * e * ((t + 1) * e - t);
          },
          easeOutBack: function (e) {
            var t = 1.70158;
            return (e -= 1) * e * ((t + 1) * e + t) + 1;
          },
          easeInOutBack: function (e) {
            var t = 1.70158;
            return (e /= 0.5) < 1
              ? e * e * ((1 + (t *= 1.525)) * e - t) * 0.5
              : 0.5 * ((e -= 2) * e * ((1 + (t *= 1.525)) * e + t) + 2);
          },
          easeInBounce: function (e) {
            return 1 - T.easeOutBounce(1 - e);
          },
          easeOutBounce: function (e) {
            return e < 1 / 2.75
              ? 7.5625 * e * e
              : e < 2 / 2.75
              ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75
              : e < 2.5 / 2.75
              ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375
              : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375;
          },
          easeInOutBounce: function (e) {
            return e < 0.5
              ? 0.5 * T.easeInBounce(2 * e)
              : 0.5 * T.easeOutBounce(2 * e - 1) + 0.5;
          },
        },
        S = { effects: T };
      E.easingEffects = T;
      var D = Math.PI,
        L = D / 180,
        C = 2 * D,
        P = D / 2,
        O = D / 4,
        N = (2 * D) / 3,
        A = {
          clear: function (e) {
            e.ctx.clearRect(0, 0, e.width, e.height);
          },
          roundedRect: function (e, t, n, r, o, a) {
            if (a) {
              var i = Math.min(a, o / 2, r / 2),
                s = t + i,
                l = n + i,
                c = t + r - i,
                u = n + o - i;
              e.moveTo(t, l),
                s < c && l < u
                  ? (e.arc(s, l, i, -D, -P),
                    e.arc(c, l, i, -P, 0),
                    e.arc(c, u, i, 0, P),
                    e.arc(s, u, i, P, D))
                  : s < c
                  ? (e.moveTo(s, n),
                    e.arc(c, l, i, -P, P),
                    e.arc(s, l, i, P, D + P))
                  : l < u
                  ? (e.arc(s, l, i, -D, 0), e.arc(s, u, i, 0, D))
                  : e.arc(s, l, i, -D, D),
                e.closePath(),
                e.moveTo(t, n);
            } else e.rect(t, n, r, o);
          },
          drawPoint: function (e, t, n, r, o, a) {
            var i,
              s,
              l,
              c,
              u,
              d = (a || 0) * L;
            if (
              t &&
              "object" == typeof t &&
              ("[object HTMLImageElement]" === (i = t.toString()) ||
                "[object HTMLCanvasElement]" === i)
            )
              return (
                e.save(),
                e.translate(r, o),
                e.rotate(d),
                e.drawImage(t, -t.width / 2, -t.height / 2, t.width, t.height),
                void e.restore()
              );
            if (!(isNaN(n) || n <= 0)) {
              switch ((e.beginPath(), t)) {
                default:
                  e.arc(r, o, n, 0, C), e.closePath();
                  break;
                case "triangle":
                  e.moveTo(r + Math.sin(d) * n, o - Math.cos(d) * n),
                    (d += N),
                    e.lineTo(r + Math.sin(d) * n, o - Math.cos(d) * n),
                    (d += N),
                    e.lineTo(r + Math.sin(d) * n, o - Math.cos(d) * n),
                    e.closePath();
                  break;
                case "rectRounded":
                  (c = n - (u = 0.516 * n)),
                    (s = Math.cos(d + O) * c),
                    (l = Math.sin(d + O) * c),
                    e.arc(r - s, o - l, u, d - D, d - P),
                    e.arc(r + l, o - s, u, d - P, d),
                    e.arc(r + s, o + l, u, d, d + P),
                    e.arc(r - l, o + s, u, d + P, d + D),
                    e.closePath();
                  break;
                case "rect":
                  if (!a) {
                    (c = Math.SQRT1_2 * n), e.rect(r - c, o - c, 2 * c, 2 * c);
                    break;
                  }
                  d += O;
                case "rectRot":
                  (s = Math.cos(d) * n),
                    (l = Math.sin(d) * n),
                    e.moveTo(r - s, o - l),
                    e.lineTo(r + l, o - s),
                    e.lineTo(r + s, o + l),
                    e.lineTo(r - l, o + s),
                    e.closePath();
                  break;
                case "crossRot":
                  d += O;
                case "cross":
                  (s = Math.cos(d) * n),
                    (l = Math.sin(d) * n),
                    e.moveTo(r - s, o - l),
                    e.lineTo(r + s, o + l),
                    e.moveTo(r + l, o - s),
                    e.lineTo(r - l, o + s);
                  break;
                case "star":
                  (s = Math.cos(d) * n),
                    (l = Math.sin(d) * n),
                    e.moveTo(r - s, o - l),
                    e.lineTo(r + s, o + l),
                    e.moveTo(r + l, o - s),
                    e.lineTo(r - l, o + s),
                    (d += O),
                    (s = Math.cos(d) * n),
                    (l = Math.sin(d) * n),
                    e.moveTo(r - s, o - l),
                    e.lineTo(r + s, o + l),
                    e.moveTo(r + l, o - s),
                    e.lineTo(r - l, o + s);
                  break;
                case "line":
                  (s = Math.cos(d) * n),
                    (l = Math.sin(d) * n),
                    e.moveTo(r - s, o - l),
                    e.lineTo(r + s, o + l);
                  break;
                case "dash":
                  e.moveTo(r, o),
                    e.lineTo(r + Math.cos(d) * n, o + Math.sin(d) * n);
              }
              e.fill(), e.stroke();
            }
          },
          _isPointInArea: function (e, t) {
            return (
              e.x > t.left - 1e-6 &&
              e.x < t.right + 1e-6 &&
              e.y > t.top - 1e-6 &&
              e.y < t.bottom + 1e-6
            );
          },
          clipArea: function (e, t) {
            e.save(),
              e.beginPath(),
              e.rect(t.left, t.top, t.right - t.left, t.bottom - t.top),
              e.clip();
          },
          unclipArea: function (e) {
            e.restore();
          },
          lineTo: function (e, t, n, r) {
            var o = n.steppedLine;
            if (o) {
              if ("middle" === o) {
                var a = (t.x + n.x) / 2;
                e.lineTo(a, r ? n.y : t.y), e.lineTo(a, r ? t.y : n.y);
              } else
                ("after" === o && !r) || ("after" !== o && r)
                  ? e.lineTo(t.x, n.y)
                  : e.lineTo(n.x, t.y);
              e.lineTo(n.x, n.y);
            } else
              n.tension
                ? e.bezierCurveTo(
                    r ? t.controlPointPreviousX : t.controlPointNextX,
                    r ? t.controlPointPreviousY : t.controlPointNextY,
                    r ? n.controlPointNextX : n.controlPointPreviousX,
                    r ? n.controlPointNextY : n.controlPointPreviousY,
                    n.x,
                    n.y
                  )
                : e.lineTo(n.x, n.y);
          },
        },
        I = A;
      (E.clear = A.clear),
        (E.drawRoundedRectangle = function (e) {
          e.beginPath(), A.roundedRect.apply(A, arguments);
        });
      var R = {
        _set: function (e, t) {
          return E.merge(this[e] || (this[e] = {}), t);
        },
      };
      R._set("global", {
        defaultColor: "rgba(0,0,0,0.1)",
        defaultFontColor: "#666",
        defaultFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
        defaultFontSize: 12,
        defaultFontStyle: "normal",
        defaultLineHeight: 1.2,
        showLines: !0,
      });
      var Y = R,
        j = E.valueOrDefault,
        F = {
          toLineHeight: function (e, t) {
            var n = ("" + e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);
            if (!n || "normal" === n[1]) return 1.2 * t;
            switch (((e = +n[2]), n[3])) {
              case "px":
                return e;
              case "%":
                e /= 100;
            }
            return t * e;
          },
          toPadding: function (e) {
            var t, n, r, o;
            return (
              E.isObject(e)
                ? ((t = +e.top || 0),
                  (n = +e.right || 0),
                  (r = +e.bottom || 0),
                  (o = +e.left || 0))
                : (t = n = r = o = +e || 0),
              {
                top: t,
                right: n,
                bottom: r,
                left: o,
                height: t + r,
                width: o + n,
              }
            );
          },
          _parseFont: function (e) {
            var t = Y.global,
              n = j(e.fontSize, t.defaultFontSize),
              r = {
                family: j(e.fontFamily, t.defaultFontFamily),
                lineHeight: E.options.toLineHeight(
                  j(e.lineHeight, t.defaultLineHeight),
                  n
                ),
                size: n,
                style: j(e.fontStyle, t.defaultFontStyle),
                weight: null,
                string: "",
              };
            return (
              (r.string = (function (e) {
                return !e ||
                  E.isNullOrUndef(e.size) ||
                  E.isNullOrUndef(e.family)
                  ? null
                  : (e.style ? e.style + " " : "") +
                      (e.weight ? e.weight + " " : "") +
                      e.size +
                      "px " +
                      e.family;
              })(r)),
              r
            );
          },
          resolve: function (e, t, n, r) {
            var o,
              a,
              i,
              s = !0;
            for (o = 0, a = e.length; o < a; ++o)
              if (
                void 0 !== (i = e[o]) &&
                (void 0 !== t &&
                  "function" == typeof i &&
                  ((i = i(t)), (s = !1)),
                void 0 !== n && E.isArray(i) && ((i = i[n]), (s = !1)),
                void 0 !== i)
              )
                return r && !s && (r.cacheable = !1), i;
          },
        },
        H = {
          _factorize: function (e) {
            var t,
              n = [],
              r = Math.sqrt(e);
            for (t = 1; t < r; t++) e % t == 0 && (n.push(t), n.push(e / t));
            return (
              r === (0 | r) && n.push(r),
              n
                .sort(function (e, t) {
                  return e - t;
                })
                .pop(),
              n
            );
          },
          log10:
            Math.log10 ||
            function (e) {
              var t = Math.log(e) * Math.LOG10E,
                n = Math.round(t);
              return e === Math.pow(10, n) ? n : t;
            },
        },
        z = H;
      E.log10 = H.log10;
      var B = E,
        U = S,
        V = I,
        W = F,
        q = z,
        G = {
          getRtlAdapter: function (e, t, n) {
            return e
              ? (function (e, t) {
                  return {
                    x: function (n) {
                      return e + e + t - n;
                    },
                    setWidth: function (e) {
                      t = e;
                    },
                    textAlign: function (e) {
                      return "center" === e
                        ? e
                        : "right" === e
                        ? "left"
                        : "right";
                    },
                    xPlus: function (e, t) {
                      return e - t;
                    },
                    leftForLtr: function (e, t) {
                      return e - t;
                    },
                  };
                })(t, n)
              : {
                  x: function (e) {
                    return e;
                  },
                  setWidth: function (e) {},
                  textAlign: function (e) {
                    return e;
                  },
                  xPlus: function (e, t) {
                    return e + t;
                  },
                  leftForLtr: function (e, t) {
                    return e;
                  },
                };
          },
          overrideTextDirection: function (e, t) {
            var n, r;
            ("ltr" !== t && "rtl" !== t) ||
              ((r = [
                (n = e.canvas.style).getPropertyValue("direction"),
                n.getPropertyPriority("direction"),
              ]),
              n.setProperty("direction", t, "important"),
              (e.prevTextDirection = r));
          },
          restoreTextDirection: function (e) {
            var t = e.prevTextDirection;
            void 0 !== t &&
              (delete e.prevTextDirection,
              e.canvas.style.setProperty("direction", t[0], t[1]));
          },
        };
      (B.easing = U),
        (B.canvas = V),
        (B.options = W),
        (B.math = q),
        (B.rtl = G);
      var J = function (e) {
        B.extend(this, e), this.initialize.apply(this, arguments);
      };
      B.extend(J.prototype, {
        _type: void 0,
        initialize: function () {
          this.hidden = !1;
        },
        pivot: function () {
          var e = this;
          return (
            e._view || (e._view = B.extend({}, e._model)), (e._start = {}), e
          );
        },
        transition: function (e) {
          var t = this,
            n = t._model,
            r = t._start,
            o = t._view;
          return n && 1 !== e
            ? (o || (o = t._view = {}),
              r || (r = t._start = {}),
              (function (e, t, n, r) {
                var o,
                  a,
                  i,
                  s,
                  l,
                  c,
                  u,
                  d,
                  h,
                  p = Object.keys(n);
                for (o = 0, a = p.length; o < a; ++o)
                  if (
                    ((c = n[(i = p[o])]),
                    t.hasOwnProperty(i) || (t[i] = c),
                    (s = t[i]) !== c && "_" !== i[0])
                  ) {
                    if (
                      (e.hasOwnProperty(i) || (e[i] = s),
                      (u = typeof c) == typeof (l = e[i]))
                    )
                      if ("string" === u) {
                        if ((d = w(l)).valid && (h = w(c)).valid) {
                          t[i] = h.mix(d, r).rgbString();
                          continue;
                        }
                      } else if (B.isFinite(l) && B.isFinite(c)) {
                        t[i] = l + (c - l) * r;
                        continue;
                      }
                    t[i] = c;
                  }
              })(r, o, n, e),
              t)
            : ((t._view = B.extend({}, n)), (t._start = null), t);
        },
        tooltipPosition: function () {
          return { x: this._model.x, y: this._model.y };
        },
        hasValue: function () {
          return B.isNumber(this._model.x) && B.isNumber(this._model.y);
        },
      }),
        (J.extend = B.inherits);
      var K = J,
        Q = K.extend({
          chart: null,
          currentStep: 0,
          numSteps: 60,
          easing: "",
          render: null,
          onAnimationProgress: null,
          onAnimationComplete: null,
        }),
        X = Q;
      Object.defineProperty(Q.prototype, "animationObject", {
        get: function () {
          return this;
        },
      }),
        Object.defineProperty(Q.prototype, "chartInstance", {
          get: function () {
            return this.chart;
          },
          set: function (e) {
            this.chart = e;
          },
        }),
        Y._set("global", {
          animation: {
            duration: 1e3,
            easing: "easeOutQuart",
            onProgress: B.noop,
            onComplete: B.noop,
          },
        });
      var $ = {
          animations: [],
          request: null,
          addAnimation: function (e, t, n, r) {
            var o,
              a,
              i = this.animations;
            for (
              t.chart = e,
                t.startTime = Date.now(),
                t.duration = n,
                r || (e.animating = !0),
                o = 0,
                a = i.length;
              o < a;
              ++o
            )
              if (i[o].chart === e) return void (i[o] = t);
            i.push(t), 1 === i.length && this.requestAnimationFrame();
          },
          cancelAnimation: function (e) {
            var t = B.findIndex(this.animations, function (t) {
              return t.chart === e;
            });
            -1 !== t && (this.animations.splice(t, 1), (e.animating = !1));
          },
          requestAnimationFrame: function () {
            var e = this;
            null === e.request &&
              (e.request = B.requestAnimFrame.call(window, function () {
                (e.request = null), e.startDigest();
              }));
          },
          startDigest: function () {
            this.advance(),
              this.animations.length > 0 && this.requestAnimationFrame();
          },
          advance: function () {
            for (var e, t, n, r, o = this.animations, a = 0; a < o.length; )
              (t = (e = o[a]).chart),
                (n = e.numSteps),
                (r =
                  Math.floor(((Date.now() - e.startTime) / e.duration) * n) +
                  1),
                (e.currentStep = Math.min(r, n)),
                B.callback(e.render, [t, e], t),
                B.callback(e.onAnimationProgress, [e], t),
                e.currentStep >= n
                  ? (B.callback(e.onAnimationComplete, [e], t),
                    (t.animating = !1),
                    o.splice(a, 1))
                  : ++a;
          },
        },
        Z = B.options.resolve,
        ee = ["push", "pop", "shift", "splice", "unshift"];
      function te(e, t) {
        var n = e._chartjs;
        if (n) {
          var r = n.listeners,
            o = r.indexOf(t);
          -1 !== o && r.splice(o, 1),
            r.length > 0 ||
              (ee.forEach(function (t) {
                delete e[t];
              }),
              delete e._chartjs);
        }
      }
      var ne = function (e, t) {
        this.initialize(e, t);
      };
      B.extend(ne.prototype, {
        datasetElementType: null,
        dataElementType: null,
        _datasetElementOptions: [
          "backgroundColor",
          "borderCapStyle",
          "borderColor",
          "borderDash",
          "borderDashOffset",
          "borderJoinStyle",
          "borderWidth",
        ],
        _dataElementOptions: [
          "backgroundColor",
          "borderColor",
          "borderWidth",
          "pointStyle",
        ],
        initialize: function (e, t) {
          var n = this;
          (n.chart = e),
            (n.index = t),
            n.linkScales(),
            n.addElements(),
            (n._type = n.getMeta().type);
        },
        updateIndex: function (e) {
          this.index = e;
        },
        linkScales: function () {
          var e = this.getMeta(),
            t = this.chart,
            n = t.scales,
            r = this.getDataset(),
            o = t.options.scales;
          (null !== e.xAxisID && e.xAxisID in n && !r.xAxisID) ||
            (e.xAxisID = r.xAxisID || o.xAxes[0].id),
            (null !== e.yAxisID && e.yAxisID in n && !r.yAxisID) ||
              (e.yAxisID = r.yAxisID || o.yAxes[0].id);
        },
        getDataset: function () {
          return this.chart.data.datasets[this.index];
        },
        getMeta: function () {
          return this.chart.getDatasetMeta(this.index);
        },
        getScaleForId: function (e) {
          return this.chart.scales[e];
        },
        _getValueScaleId: function () {
          return this.getMeta().yAxisID;
        },
        _getIndexScaleId: function () {
          return this.getMeta().xAxisID;
        },
        _getValueScale: function () {
          return this.getScaleForId(this._getValueScaleId());
        },
        _getIndexScale: function () {
          return this.getScaleForId(this._getIndexScaleId());
        },
        reset: function () {
          this._update(!0);
        },
        destroy: function () {
          this._data && te(this._data, this);
        },
        createMetaDataset: function () {
          var e = this.datasetElementType;
          return e && new e({ _chart: this.chart, _datasetIndex: this.index });
        },
        createMetaData: function (e) {
          var t = this.dataElementType;
          return (
            t &&
            new t({ _chart: this.chart, _datasetIndex: this.index, _index: e })
          );
        },
        addElements: function () {
          var e,
            t,
            n = this.getMeta(),
            r = this.getDataset().data || [],
            o = n.data;
          for (e = 0, t = r.length; e < t; ++e)
            o[e] = o[e] || this.createMetaData(e);
          n.dataset = n.dataset || this.createMetaDataset();
        },
        addElementAndReset: function (e) {
          var t = this.createMetaData(e);
          this.getMeta().data.splice(e, 0, t), this.updateElement(t, e, !0);
        },
        buildOrUpdateElements: function () {
          var e,
            t,
            n = this,
            r = n.getDataset(),
            o = r.data || (r.data = []);
          n._data !== o &&
            (n._data && te(n._data, n),
            o &&
              Object.isExtensible(o) &&
              ((t = n),
              (e = o)._chartjs
                ? e._chartjs.listeners.push(t)
                : (Object.defineProperty(e, "_chartjs", {
                    configurable: !0,
                    enumerable: !1,
                    value: { listeners: [t] },
                  }),
                  ee.forEach(function (t) {
                    var n = "onData" + t.charAt(0).toUpperCase() + t.slice(1),
                      r = e[t];
                    Object.defineProperty(e, t, {
                      configurable: !0,
                      enumerable: !1,
                      value: function () {
                        var t = Array.prototype.slice.call(arguments),
                          o = r.apply(this, t);
                        return (
                          B.each(e._chartjs.listeners, function (e) {
                            "function" == typeof e[n] && e[n].apply(e, t);
                          }),
                          o
                        );
                      },
                    });
                  }))),
            (n._data = o)),
            n.resyncElements();
        },
        _configure: function () {
          this._config = B.merge(
            Object.create(null),
            [this.chart.options.datasets[this._type], this.getDataset()],
            {
              merger: function (e, t, n) {
                "_meta" !== e && "data" !== e && B._merger(e, t, n);
              },
            }
          );
        },
        _update: function (e) {
          this._configure(), (this._cachedDataOpts = null), this.update(e);
        },
        update: B.noop,
        transition: function (e) {
          for (
            var t = this.getMeta(), n = t.data || [], r = n.length, o = 0;
            o < r;
            ++o
          )
            n[o].transition(e);
          t.dataset && t.dataset.transition(e);
        },
        draw: function () {
          var e = this.getMeta(),
            t = e.data || [],
            n = t.length,
            r = 0;
          for (e.dataset && e.dataset.draw(); r < n; ++r) t[r].draw();
        },
        getStyle: function (e) {
          var t,
            n = this.getMeta(),
            r = n.dataset;
          return (
            this._configure(),
            r && void 0 === e
              ? (t = this._resolveDatasetElementOptions(r || {}))
              : ((e = e || 0),
                (t = this._resolveDataElementOptions(n.data[e] || {}, e))),
            (!1 !== t.fill && null !== t.fill) ||
              (t.backgroundColor = t.borderColor),
            t
          );
        },
        _resolveDatasetElementOptions: function (e, t) {
          var n,
            r,
            o,
            a,
            i = this,
            s = i.chart,
            l = i._config,
            c = e.custom || {},
            u = s.options.elements[i.datasetElementType.prototype._type] || {},
            d = i._datasetElementOptions,
            h = {},
            p = {
              chart: s,
              dataset: i.getDataset(),
              datasetIndex: i.index,
              hover: t,
            };
          for (n = 0, r = d.length; n < r; ++n)
            (o = d[n]),
              (a = t ? "hover" + o.charAt(0).toUpperCase() + o.slice(1) : o),
              (h[o] = Z([c[a], l[a], u[a]], p));
          return h;
        },
        _resolveDataElementOptions: function (e, t) {
          var n = this,
            r = e && e.custom,
            o = n._cachedDataOpts;
          if (o && !r) return o;
          var a,
            i,
            s,
            l,
            c = n.chart,
            u = n._config,
            d = c.options.elements[n.dataElementType.prototype._type] || {},
            h = n._dataElementOptions,
            p = {},
            f = {
              chart: c,
              dataIndex: t,
              dataset: n.getDataset(),
              datasetIndex: n.index,
            },
            m = { cacheable: !r };
          if (((r = r || {}), B.isArray(h)))
            for (i = 0, s = h.length; i < s; ++i)
              p[(l = h[i])] = Z([r[l], u[l], d[l]], f, t, m);
          else
            for (i = 0, s = (a = Object.keys(h)).length; i < s; ++i)
              p[(l = a[i])] = Z([r[l], u[h[l]], u[l], d[l]], f, t, m);
          return m.cacheable && (n._cachedDataOpts = Object.freeze(p)), p;
        },
        removeHoverStyle: function (e) {
          B.merge(e._model, e.$previousStyle || {}), delete e.$previousStyle;
        },
        setHoverStyle: function (e) {
          var t = this.chart.data.datasets[e._datasetIndex],
            n = e._index,
            r = e.custom || {},
            o = e._model,
            a = B.getHoverColor;
          (e.$previousStyle = {
            backgroundColor: o.backgroundColor,
            borderColor: o.borderColor,
            borderWidth: o.borderWidth,
          }),
            (o.backgroundColor = Z(
              [
                r.hoverBackgroundColor,
                t.hoverBackgroundColor,
                a(o.backgroundColor),
              ],
              void 0,
              n
            )),
            (o.borderColor = Z(
              [r.hoverBorderColor, t.hoverBorderColor, a(o.borderColor)],
              void 0,
              n
            )),
            (o.borderWidth = Z(
              [r.hoverBorderWidth, t.hoverBorderWidth, o.borderWidth],
              void 0,
              n
            ));
        },
        _removeDatasetHoverStyle: function () {
          var e = this.getMeta().dataset;
          e && this.removeHoverStyle(e);
        },
        _setDatasetHoverStyle: function () {
          var e,
            t,
            n,
            r,
            o,
            a,
            i = this.getMeta().dataset,
            s = {};
          if (i) {
            for (
              a = i._model,
                o = this._resolveDatasetElementOptions(i, !0),
                e = 0,
                t = (r = Object.keys(o)).length;
              e < t;
              ++e
            )
              (s[(n = r[e])] = a[n]), (a[n] = o[n]);
            i.$previousStyle = s;
          }
        },
        resyncElements: function () {
          var e = this.getMeta(),
            t = this.getDataset().data,
            n = e.data.length,
            r = t.length;
          r < n
            ? e.data.splice(r, n - r)
            : r > n && this.insertElements(n, r - n);
        },
        insertElements: function (e, t) {
          for (var n = 0; n < t; ++n) this.addElementAndReset(e + n);
        },
        onDataPush: function () {
          var e = arguments.length;
          this.insertElements(this.getDataset().data.length - e, e);
        },
        onDataPop: function () {
          this.getMeta().data.pop();
        },
        onDataShift: function () {
          this.getMeta().data.shift();
        },
        onDataSplice: function (e, t) {
          this.getMeta().data.splice(e, t),
            this.insertElements(e, arguments.length - 2);
        },
        onDataUnshift: function () {
          this.insertElements(0, arguments.length);
        },
      }),
        (ne.extend = B.inherits);
      var re = ne,
        oe = 2 * Math.PI;
      function ae(e, t) {
        var n = t.startAngle,
          r = t.endAngle,
          o = t.pixelMargin,
          a = o / t.outerRadius,
          i = t.x,
          s = t.y;
        e.beginPath(),
          e.arc(i, s, t.outerRadius, n - a, r + a),
          t.innerRadius > o
            ? ((a = o / t.innerRadius),
              e.arc(i, s, t.innerRadius - o, r + a, n - a, !0))
            : e.arc(i, s, o, r + Math.PI / 2, n - Math.PI / 2),
          e.closePath(),
          e.clip();
      }
      function ie(e, t, n) {
        var r = "inner" === t.borderAlign;
        r
          ? ((e.lineWidth = 2 * t.borderWidth), (e.lineJoin = "round"))
          : ((e.lineWidth = t.borderWidth), (e.lineJoin = "bevel")),
          n.fullCircles &&
            (function (e, t, n, r) {
              var o,
                a = n.endAngle;
              for (
                r &&
                  ((n.endAngle = n.startAngle + oe),
                  ae(e, n),
                  (n.endAngle = a),
                  n.endAngle === n.startAngle &&
                    n.fullCircles &&
                    ((n.endAngle += oe), n.fullCircles--)),
                  e.beginPath(),
                  e.arc(
                    n.x,
                    n.y,
                    n.innerRadius,
                    n.startAngle + oe,
                    n.startAngle,
                    !0
                  ),
                  o = 0;
                o < n.fullCircles;
                ++o
              )
                e.stroke();
              for (
                e.beginPath(),
                  e.arc(
                    n.x,
                    n.y,
                    t.outerRadius,
                    n.startAngle,
                    n.startAngle + oe
                  ),
                  o = 0;
                o < n.fullCircles;
                ++o
              )
                e.stroke();
            })(e, t, n, r),
          r && ae(e, n),
          e.beginPath(),
          e.arc(n.x, n.y, t.outerRadius, n.startAngle, n.endAngle),
          e.arc(n.x, n.y, n.innerRadius, n.endAngle, n.startAngle, !0),
          e.closePath(),
          e.stroke();
      }
      Y._set("global", {
        elements: {
          arc: {
            backgroundColor: Y.global.defaultColor,
            borderColor: "#fff",
            borderWidth: 2,
            borderAlign: "center",
          },
        },
      });
      var se = K.extend({
          _type: "arc",
          inLabelRange: function (e) {
            var t = this._view;
            return (
              !!t &&
              Math.pow(e - t.x, 2) < Math.pow(t.radius + t.hoverRadius, 2)
            );
          },
          inRange: function (e, t) {
            var n = this._view;
            if (n) {
              for (
                var r = B.getAngleFromPoint(n, { x: e, y: t }),
                  o = r.angle,
                  a = r.distance,
                  i = n.startAngle,
                  s = n.endAngle;
                s < i;

              )
                s += oe;
              for (; o > s; ) o -= oe;
              for (; o < i; ) o += oe;
              var l = o >= i && o <= s,
                c = a >= n.innerRadius && a <= n.outerRadius;
              return l && c;
            }
            return !1;
          },
          getCenterPoint: function () {
            var e = this._view,
              t = (e.startAngle + e.endAngle) / 2,
              n = (e.innerRadius + e.outerRadius) / 2;
            return { x: e.x + Math.cos(t) * n, y: e.y + Math.sin(t) * n };
          },
          getArea: function () {
            var e = this._view;
            return (
              Math.PI *
              ((e.endAngle - e.startAngle) / (2 * Math.PI)) *
              (Math.pow(e.outerRadius, 2) - Math.pow(e.innerRadius, 2))
            );
          },
          tooltipPosition: function () {
            var e = this._view,
              t = e.startAngle + (e.endAngle - e.startAngle) / 2,
              n = (e.outerRadius - e.innerRadius) / 2 + e.innerRadius;
            return { x: e.x + Math.cos(t) * n, y: e.y + Math.sin(t) * n };
          },
          draw: function () {
            var e,
              t = this._chart.ctx,
              n = this._view,
              r = "inner" === n.borderAlign ? 0.33 : 0,
              o = {
                x: n.x,
                y: n.y,
                innerRadius: n.innerRadius,
                outerRadius: Math.max(n.outerRadius - r, 0),
                pixelMargin: r,
                startAngle: n.startAngle,
                endAngle: n.endAngle,
                fullCircles: Math.floor(n.circumference / oe),
              };
            if (
              (t.save(),
              (t.fillStyle = n.backgroundColor),
              (t.strokeStyle = n.borderColor),
              o.fullCircles)
            ) {
              for (
                o.endAngle = o.startAngle + oe,
                  t.beginPath(),
                  t.arc(o.x, o.y, o.outerRadius, o.startAngle, o.endAngle),
                  t.arc(o.x, o.y, o.innerRadius, o.endAngle, o.startAngle, !0),
                  t.closePath(),
                  e = 0;
                e < o.fullCircles;
                ++e
              )
                t.fill();
              o.endAngle = o.startAngle + (n.circumference % oe);
            }
            t.beginPath(),
              t.arc(o.x, o.y, o.outerRadius, o.startAngle, o.endAngle),
              t.arc(o.x, o.y, o.innerRadius, o.endAngle, o.startAngle, !0),
              t.closePath(),
              t.fill(),
              n.borderWidth && ie(t, n, o),
              t.restore();
          },
        }),
        le = B.valueOrDefault,
        ce = Y.global.defaultColor;
      Y._set("global", {
        elements: {
          line: {
            tension: 0.4,
            backgroundColor: ce,
            borderWidth: 3,
            borderColor: ce,
            borderCapStyle: "butt",
            borderDash: [],
            borderDashOffset: 0,
            borderJoinStyle: "miter",
            capBezierPoints: !0,
            fill: !0,
          },
        },
      });
      var ue = K.extend({
          _type: "line",
          draw: function () {
            var e,
              t,
              n,
              r = this,
              o = r._view,
              a = r._chart.ctx,
              i = o.spanGaps,
              s = r._children.slice(),
              l = Y.global,
              c = l.elements.line,
              u = -1,
              d = r._loop;
            if (s.length) {
              if (r._loop) {
                for (e = 0; e < s.length; ++e)
                  if (
                    ((t = B.previousItem(s, e)),
                    !s[e]._view.skip && t._view.skip)
                  ) {
                    (s = s.slice(e).concat(s.slice(0, e))), (d = i);
                    break;
                  }
                d && s.push(s[0]);
              }
              for (
                a.save(),
                  a.lineCap = o.borderCapStyle || c.borderCapStyle,
                  a.setLineDash && a.setLineDash(o.borderDash || c.borderDash),
                  a.lineDashOffset = le(o.borderDashOffset, c.borderDashOffset),
                  a.lineJoin = o.borderJoinStyle || c.borderJoinStyle,
                  a.lineWidth = le(o.borderWidth, c.borderWidth),
                  a.strokeStyle = o.borderColor || l.defaultColor,
                  a.beginPath(),
                  (n = s[0]._view).skip || (a.moveTo(n.x, n.y), (u = 0)),
                  e = 1;
                e < s.length;
                ++e
              )
                (n = s[e]._view),
                  (t = -1 === u ? B.previousItem(s, e) : s[u]),
                  n.skip ||
                    ((u !== e - 1 && !i) || -1 === u
                      ? a.moveTo(n.x, n.y)
                      : B.canvas.lineTo(a, t._view, n),
                    (u = e));
              d && a.closePath(), a.stroke(), a.restore();
            }
          },
        }),
        de = B.valueOrDefault,
        he = Y.global.defaultColor;
      function pe(e) {
        var t = this._view;
        return !!t && Math.abs(e - t.x) < t.radius + t.hitRadius;
      }
      Y._set("global", {
        elements: {
          point: {
            radius: 3,
            pointStyle: "circle",
            backgroundColor: he,
            borderColor: he,
            borderWidth: 1,
            hitRadius: 1,
            hoverRadius: 4,
            hoverBorderWidth: 1,
          },
        },
      });
      var fe = K.extend({
          _type: "point",
          inRange: function (e, t) {
            var n = this._view;
            return (
              !!n &&
              Math.pow(e - n.x, 2) + Math.pow(t - n.y, 2) <
                Math.pow(n.hitRadius + n.radius, 2)
            );
          },
          inLabelRange: pe,
          inXRange: pe,
          inYRange: function (e) {
            var t = this._view;
            return !!t && Math.abs(e - t.y) < t.radius + t.hitRadius;
          },
          getCenterPoint: function () {
            var e = this._view;
            return { x: e.x, y: e.y };
          },
          getArea: function () {
            return Math.PI * Math.pow(this._view.radius, 2);
          },
          tooltipPosition: function () {
            var e = this._view;
            return { x: e.x, y: e.y, padding: e.radius + e.borderWidth };
          },
          draw: function (e) {
            var t = this._view,
              n = this._chart.ctx,
              r = t.pointStyle,
              o = t.rotation,
              a = t.radius,
              i = t.x,
              s = t.y,
              l = Y.global,
              c = l.defaultColor;
            t.skip ||
              ((void 0 === e || B.canvas._isPointInArea(t, e)) &&
                ((n.strokeStyle = t.borderColor || c),
                (n.lineWidth = de(t.borderWidth, l.elements.point.borderWidth)),
                (n.fillStyle = t.backgroundColor || c),
                B.canvas.drawPoint(n, r, a, i, s, o)));
          },
        }),
        me = Y.global.defaultColor;
      function ge(e) {
        return e && void 0 !== e.width;
      }
      function _e(e) {
        var t, n, r, o, a;
        return (
          ge(e)
            ? ((a = e.width / 2),
              (t = e.x - a),
              (n = e.x + a),
              (r = Math.min(e.y, e.base)),
              (o = Math.max(e.y, e.base)))
            : ((a = e.height / 2),
              (t = Math.min(e.x, e.base)),
              (n = Math.max(e.x, e.base)),
              (r = e.y - a),
              (o = e.y + a)),
          { left: t, top: r, right: n, bottom: o }
        );
      }
      function ve(e, t, n) {
        return e === t ? n : e === n ? t : e;
      }
      function be(e, t, n) {
        var r,
          o,
          a,
          i,
          s = e.borderWidth,
          l = (function (e) {
            var t = e.borderSkipped,
              n = {};
            return t
              ? (e.horizontal
                  ? e.base > e.x && (t = ve(t, "left", "right"))
                  : e.base < e.y && (t = ve(t, "bottom", "top")),
                (n[t] = !0),
                n)
              : n;
          })(e);
        return (
          B.isObject(s)
            ? ((r = +s.top || 0),
              (o = +s.right || 0),
              (a = +s.bottom || 0),
              (i = +s.left || 0))
            : (r = o = a = i = +s || 0),
          {
            t: l.top || r < 0 ? 0 : r > n ? n : r,
            r: l.right || o < 0 ? 0 : o > t ? t : o,
            b: l.bottom || a < 0 ? 0 : a > n ? n : a,
            l: l.left || i < 0 ? 0 : i > t ? t : i,
          }
        );
      }
      function ye(e, t, n) {
        var r = null === t,
          o = null === n,
          a = !(!e || (r && o)) && _e(e);
        return (
          a &&
          (r || (t >= a.left && t <= a.right)) &&
          (o || (n >= a.top && n <= a.bottom))
        );
      }
      Y._set("global", {
        elements: {
          rectangle: {
            backgroundColor: me,
            borderColor: me,
            borderSkipped: "bottom",
            borderWidth: 0,
          },
        },
      });
      var we = K.extend({
          _type: "rectangle",
          draw: function () {
            var e = this._chart.ctx,
              t = this._view,
              n = (function (e) {
                var t = _e(e),
                  n = t.right - t.left,
                  r = t.bottom - t.top,
                  o = be(e, n / 2, r / 2);
                return {
                  outer: { x: t.left, y: t.top, w: n, h: r },
                  inner: {
                    x: t.left + o.l,
                    y: t.top + o.t,
                    w: n - o.l - o.r,
                    h: r - o.t - o.b,
                  },
                };
              })(t),
              r = n.outer,
              o = n.inner;
            (e.fillStyle = t.backgroundColor),
              e.fillRect(r.x, r.y, r.w, r.h),
              (r.w === o.w && r.h === o.h) ||
                (e.save(),
                e.beginPath(),
                e.rect(r.x, r.y, r.w, r.h),
                e.clip(),
                (e.fillStyle = t.borderColor),
                e.rect(o.x, o.y, o.w, o.h),
                e.fill("evenodd"),
                e.restore());
          },
          height: function () {
            var e = this._view;
            return e.base - e.y;
          },
          inRange: function (e, t) {
            return ye(this._view, e, t);
          },
          inLabelRange: function (e, t) {
            var n = this._view;
            return ge(n) ? ye(n, e, null) : ye(n, null, t);
          },
          inXRange: function (e) {
            return ye(this._view, e, null);
          },
          inYRange: function (e) {
            return ye(this._view, null, e);
          },
          getCenterPoint: function () {
            var e,
              t,
              n = this._view;
            return (
              ge(n)
                ? ((e = n.x), (t = (n.y + n.base) / 2))
                : ((e = (n.x + n.base) / 2), (t = n.y)),
              { x: e, y: t }
            );
          },
          getArea: function () {
            var e = this._view;
            return ge(e)
              ? e.width * Math.abs(e.y - e.base)
              : e.height * Math.abs(e.x - e.base);
          },
          tooltipPosition: function () {
            var e = this._view;
            return { x: e.x, y: e.y };
          },
        }),
        ke = {},
        xe = se,
        Me = ue,
        Ee = fe,
        Te = we;
      (ke.Arc = xe), (ke.Line = Me), (ke.Point = Ee), (ke.Rectangle = Te);
      var Se = B._deprecated,
        De = B.valueOrDefault;
      function Le(e, t, n) {
        var r,
          o,
          a = n.barThickness,
          i = t.stackCount,
          s = t.pixels[e],
          l = B.isNullOrUndef(a)
            ? (function (e, t) {
                var n,
                  r,
                  o,
                  a,
                  i = e._length;
                for (o = 1, a = t.length; o < a; ++o)
                  i = Math.min(i, Math.abs(t[o] - t[o - 1]));
                for (o = 0, a = e.getTicks().length; o < a; ++o)
                  (r = e.getPixelForTick(o)),
                    (i = o > 0 ? Math.min(i, Math.abs(r - n)) : i),
                    (n = r);
                return i;
              })(t.scale, t.pixels)
            : -1;
        return (
          B.isNullOrUndef(a)
            ? ((r = l * n.categoryPercentage), (o = n.barPercentage))
            : ((r = a * i), (o = 1)),
          { chunk: r / i, ratio: o, start: s - r / 2 }
        );
      }
      Y._set("bar", {
        hover: { mode: "label" },
        scales: {
          xAxes: [
            {
              type: "category",
              offset: !0,
              gridLines: { offsetGridLines: !0 },
            },
          ],
          yAxes: [{ type: "linear" }],
        },
      }),
        Y._set("global", {
          datasets: { bar: { categoryPercentage: 0.8, barPercentage: 0.9 } },
        });
      var Ce = re.extend({
          dataElementType: ke.Rectangle,
          _dataElementOptions: [
            "backgroundColor",
            "borderColor",
            "borderSkipped",
            "borderWidth",
            "barPercentage",
            "barThickness",
            "categoryPercentage",
            "maxBarThickness",
            "minBarLength",
          ],
          initialize: function () {
            var e,
              t,
              n = this;
            re.prototype.initialize.apply(n, arguments),
              ((e = n.getMeta()).stack = n.getDataset().stack),
              (e.bar = !0),
              (t = n._getIndexScale().options),
              Se(
                "bar chart",
                t.barPercentage,
                "scales.[x/y]Axes.barPercentage",
                "dataset.barPercentage"
              ),
              Se(
                "bar chart",
                t.barThickness,
                "scales.[x/y]Axes.barThickness",
                "dataset.barThickness"
              ),
              Se(
                "bar chart",
                t.categoryPercentage,
                "scales.[x/y]Axes.categoryPercentage",
                "dataset.categoryPercentage"
              ),
              Se(
                "bar chart",
                n._getValueScale().options.minBarLength,
                "scales.[x/y]Axes.minBarLength",
                "dataset.minBarLength"
              ),
              Se(
                "bar chart",
                t.maxBarThickness,
                "scales.[x/y]Axes.maxBarThickness",
                "dataset.maxBarThickness"
              );
          },
          update: function (e) {
            var t,
              n,
              r = this.getMeta().data;
            for (this._ruler = this.getRuler(), t = 0, n = r.length; t < n; ++t)
              this.updateElement(r[t], t, e);
          },
          updateElement: function (e, t, n) {
            var r = this,
              o = r.getMeta(),
              a = r.getDataset(),
              i = r._resolveDataElementOptions(e, t);
            (e._xScale = r.getScaleForId(o.xAxisID)),
              (e._yScale = r.getScaleForId(o.yAxisID)),
              (e._datasetIndex = r.index),
              (e._index = t),
              (e._model = {
                backgroundColor: i.backgroundColor,
                borderColor: i.borderColor,
                borderSkipped: i.borderSkipped,
                borderWidth: i.borderWidth,
                datasetLabel: a.label,
                label: r.chart.data.labels[t],
              }),
              B.isArray(a.data[t]) && (e._model.borderSkipped = null),
              r._updateElementGeometry(e, t, n, i),
              e.pivot();
          },
          _updateElementGeometry: function (e, t, n, r) {
            var o = this,
              a = e._model,
              i = o._getValueScale(),
              s = i.getBasePixel(),
              l = i.isHorizontal(),
              c = o._ruler || o.getRuler(),
              u = o.calculateBarValuePixels(o.index, t, r),
              d = o.calculateBarIndexPixels(o.index, t, c, r);
            (a.horizontal = l),
              (a.base = n ? s : u.base),
              (a.x = l ? (n ? s : u.head) : d.center),
              (a.y = l ? d.center : n ? s : u.head),
              (a.height = l ? d.size : void 0),
              (a.width = l ? void 0 : d.size);
          },
          _getStacks: function (e) {
            var t,
              n,
              r = this._getIndexScale(),
              o = r._getMatchingVisibleMetas(this._type),
              a = r.options.stacked,
              i = o.length,
              s = [];
            for (
              t = 0;
              t < i &&
              ((n = o[t]),
              (!1 === a ||
                -1 === s.indexOf(n.stack) ||
                (void 0 === a && void 0 === n.stack)) &&
                s.push(n.stack),
              n.index !== e);
              ++t
            );
            return s;
          },
          getStackCount: function () {
            return this._getStacks().length;
          },
          getStackIndex: function (e, t) {
            var n = this._getStacks(e),
              r = void 0 !== t ? n.indexOf(t) : -1;
            return -1 === r ? n.length - 1 : r;
          },
          getRuler: function () {
            var e,
              t,
              n = this._getIndexScale(),
              r = [];
            for (e = 0, t = this.getMeta().data.length; e < t; ++e)
              r.push(n.getPixelForValue(null, e, this.index));
            return {
              pixels: r,
              start: n._startPixel,
              end: n._endPixel,
              stackCount: this.getStackCount(),
              scale: n,
            };
          },
          calculateBarValuePixels: function (e, t, n) {
            var r,
              o,
              a,
              i,
              s,
              l,
              c,
              u = this.chart,
              d = this._getValueScale(),
              h = d.isHorizontal(),
              p = u.data.datasets,
              f = d._getMatchingVisibleMetas(this._type),
              m = d._parseValue(p[e].data[t]),
              g = n.minBarLength,
              _ = d.options.stacked,
              v = this.getMeta().stack,
              b =
                void 0 === m.start
                  ? 0
                  : m.max >= 0 && m.min >= 0
                  ? m.min
                  : m.max,
              y =
                void 0 === m.start
                  ? m.end
                  : m.max >= 0 && m.min >= 0
                  ? m.max - m.min
                  : m.min - m.max,
              w = f.length;
            if (_ || (void 0 === _ && void 0 !== v))
              for (r = 0; r < w && (o = f[r]).index !== e; ++r)
                o.stack === v &&
                  ((a =
                    void 0 === (c = d._parseValue(p[o.index].data[t])).start
                      ? c.end
                      : c.min >= 0 && c.max >= 0
                      ? c.max
                      : c.min),
                  ((m.min < 0 && a < 0) || (m.max >= 0 && a > 0)) && (b += a));
            return (
              (i = d.getPixelForValue(b)),
              (l = (s = d.getPixelForValue(b + y)) - i),
              void 0 !== g &&
                Math.abs(l) < g &&
                ((l = g), (s = (y >= 0 && !h) || (y < 0 && h) ? i - g : i + g)),
              { size: l, base: i, head: s, center: s + l / 2 }
            );
          },
          calculateBarIndexPixels: function (e, t, n, r) {
            var o =
                "flex" === r.barThickness
                  ? (function (e, t, n) {
                      var r,
                        o = t.pixels,
                        a = o[e],
                        i = e > 0 ? o[e - 1] : null,
                        s = e < o.length - 1 ? o[e + 1] : null,
                        l = n.categoryPercentage;
                      return (
                        null === i &&
                          (i = a - (null === s ? t.end - t.start : s - a)),
                        null === s && (s = a + a - i),
                        (r = a - ((a - Math.min(i, s)) / 2) * l),
                        {
                          chunk: ((Math.abs(s - i) / 2) * l) / t.stackCount,
                          ratio: n.barPercentage,
                          start: r,
                        }
                      );
                    })(t, n, r)
                  : Le(t, n, r),
              a = this.getStackIndex(e, this.getMeta().stack),
              i = o.start + o.chunk * a + o.chunk / 2,
              s = Math.min(De(r.maxBarThickness, 1 / 0), o.chunk * o.ratio);
            return { base: i - s / 2, head: i + s / 2, center: i, size: s };
          },
          draw: function () {
            var e = this.chart,
              t = this._getValueScale(),
              n = this.getMeta().data,
              r = this.getDataset(),
              o = n.length,
              a = 0;
            for (B.canvas.clipArea(e.ctx, e.chartArea); a < o; ++a) {
              var i = t._parseValue(r.data[a]);
              isNaN(i.min) || isNaN(i.max) || n[a].draw();
            }
            B.canvas.unclipArea(e.ctx);
          },
          _resolveDataElementOptions: function () {
            var e = this,
              t = B.extend(
                {},
                re.prototype._resolveDataElementOptions.apply(e, arguments)
              ),
              n = e._getIndexScale().options,
              r = e._getValueScale().options;
            return (
              (t.barPercentage = De(n.barPercentage, t.barPercentage)),
              (t.barThickness = De(n.barThickness, t.barThickness)),
              (t.categoryPercentage = De(
                n.categoryPercentage,
                t.categoryPercentage
              )),
              (t.maxBarThickness = De(n.maxBarThickness, t.maxBarThickness)),
              (t.minBarLength = De(r.minBarLength, t.minBarLength)),
              t
            );
          },
        }),
        Pe = B.valueOrDefault,
        Oe = B.options.resolve;
      Y._set("bubble", {
        hover: { mode: "single" },
        scales: {
          xAxes: [{ type: "linear", position: "bottom", id: "x-axis-0" }],
          yAxes: [{ type: "linear", position: "left", id: "y-axis-0" }],
        },
        tooltips: {
          callbacks: {
            title: function () {
              return "";
            },
            label: function (e, t) {
              var n = t.datasets[e.datasetIndex].label || "",
                r = t.datasets[e.datasetIndex].data[e.index];
              return n + ": (" + e.xLabel + ", " + e.yLabel + ", " + r.r + ")";
            },
          },
        },
      });
      var Ne = re.extend({
          dataElementType: ke.Point,
          _dataElementOptions: [
            "backgroundColor",
            "borderColor",
            "borderWidth",
            "hoverBackgroundColor",
            "hoverBorderColor",
            "hoverBorderWidth",
            "hoverRadius",
            "hitRadius",
            "pointStyle",
            "rotation",
          ],
          update: function (e) {
            var t = this,
              n = t.getMeta().data;
            B.each(n, function (n, r) {
              t.updateElement(n, r, e);
            });
          },
          updateElement: function (e, t, n) {
            var r = this,
              o = r.getMeta(),
              a = e.custom || {},
              i = r.getScaleForId(o.xAxisID),
              s = r.getScaleForId(o.yAxisID),
              l = r._resolveDataElementOptions(e, t),
              c = r.getDataset().data[t],
              u = r.index,
              d = n
                ? i.getPixelForDecimal(0.5)
                : i.getPixelForValue("object" == typeof c ? c : NaN, t, u),
              h = n ? s.getBasePixel() : s.getPixelForValue(c, t, u);
            (e._xScale = i),
              (e._yScale = s),
              (e._options = l),
              (e._datasetIndex = u),
              (e._index = t),
              (e._model = {
                backgroundColor: l.backgroundColor,
                borderColor: l.borderColor,
                borderWidth: l.borderWidth,
                hitRadius: l.hitRadius,
                pointStyle: l.pointStyle,
                rotation: l.rotation,
                radius: n ? 0 : l.radius,
                skip: a.skip || isNaN(d) || isNaN(h),
                x: d,
                y: h,
              }),
              e.pivot();
          },
          setHoverStyle: function (e) {
            var t = e._model,
              n = e._options,
              r = B.getHoverColor;
            (e.$previousStyle = {
              backgroundColor: t.backgroundColor,
              borderColor: t.borderColor,
              borderWidth: t.borderWidth,
              radius: t.radius,
            }),
              (t.backgroundColor = Pe(
                n.hoverBackgroundColor,
                r(n.backgroundColor)
              )),
              (t.borderColor = Pe(n.hoverBorderColor, r(n.borderColor))),
              (t.borderWidth = Pe(n.hoverBorderWidth, n.borderWidth)),
              (t.radius = n.radius + n.hoverRadius);
          },
          _resolveDataElementOptions: function (e, t) {
            var n = this,
              r = n.chart,
              o = n.getDataset(),
              a = e.custom || {},
              i = o.data[t] || {},
              s = re.prototype._resolveDataElementOptions.apply(n, arguments),
              l = { chart: r, dataIndex: t, dataset: o, datasetIndex: n.index };
            return (
              n._cachedDataOpts === s && (s = B.extend({}, s)),
              (s.radius = Oe(
                [
                  a.radius,
                  i.r,
                  n._config.radius,
                  r.options.elements.point.radius,
                ],
                l,
                t
              )),
              s
            );
          },
        }),
        Ae = B.valueOrDefault,
        Ie = Math.PI,
        Re = 2 * Ie,
        Ye = Ie / 2;
      Y._set("doughnut", {
        animation: { animateRotate: !0, animateScale: !1 },
        hover: { mode: "single" },
        legendCallback: function (e) {
          var t,
            n,
            r,
            o = document.createElement("ul"),
            a = e.data,
            i = a.datasets,
            s = a.labels;
          if ((o.setAttribute("class", e.id + "-legend"), i.length))
            for (t = 0, n = i[0].data.length; t < n; ++t)
              ((r = o.appendChild(document.createElement("li"))).appendChild(
                document.createElement("span")
              ).style.backgroundColor = i[0].backgroundColor[t]),
                s[t] && r.appendChild(document.createTextNode(s[t]));
          return o.outerHTML;
        },
        legend: {
          labels: {
            generateLabels: function (e) {
              var t = e.data;
              return t.labels.length && t.datasets.length
                ? t.labels.map(function (n, r) {
                    var o = e.getDatasetMeta(0),
                      a = o.controller.getStyle(r);
                    return {
                      text: n,
                      fillStyle: a.backgroundColor,
                      strokeStyle: a.borderColor,
                      lineWidth: a.borderWidth,
                      hidden: isNaN(t.datasets[0].data[r]) || o.data[r].hidden,
                      index: r,
                    };
                  })
                : [];
            },
          },
          onClick: function (e, t) {
            var n,
              r,
              o,
              a = t.index,
              i = this.chart;
            for (n = 0, r = (i.data.datasets || []).length; n < r; ++n)
              (o = i.getDatasetMeta(n)).data[a] &&
                (o.data[a].hidden = !o.data[a].hidden);
            i.update();
          },
        },
        cutoutPercentage: 50,
        rotation: -Ye,
        circumference: Re,
        tooltips: {
          callbacks: {
            title: function () {
              return "";
            },
            label: function (e, t) {
              var n = t.labels[e.index],
                r = ": " + t.datasets[e.datasetIndex].data[e.index];
              return B.isArray(n) ? ((n = n.slice())[0] += r) : (n += r), n;
            },
          },
        },
      });
      var je = re.extend({
        dataElementType: ke.Arc,
        linkScales: B.noop,
        _dataElementOptions: [
          "backgroundColor",
          "borderColor",
          "borderWidth",
          "borderAlign",
          "hoverBackgroundColor",
          "hoverBorderColor",
          "hoverBorderWidth",
        ],
        getRingIndex: function (e) {
          for (var t = 0, n = 0; n < e; ++n)
            this.chart.isDatasetVisible(n) && ++t;
          return t;
        },
        update: function (e) {
          var t,
            n,
            r,
            o,
            a = this,
            i = a.chart,
            s = i.chartArea,
            l = i.options,
            c = 1,
            u = 1,
            d = 0,
            h = 0,
            p = a.getMeta(),
            f = p.data,
            m = l.cutoutPercentage / 100 || 0,
            g = l.circumference,
            _ = a._getRingWeight(a.index);
          if (g < Re) {
            var v = l.rotation % Re,
              b = (v += v >= Ie ? -Re : v < -Ie ? Re : 0) + g,
              y = Math.cos(v),
              w = Math.sin(v),
              k = Math.cos(b),
              x = Math.sin(b),
              M = (v <= 0 && b >= 0) || b >= Re,
              E = (v <= Ye && b >= Ye) || b >= Re + Ye,
              T = (v <= -Ye && b >= -Ye) || b >= Ie + Ye,
              S = v === -Ie || b >= Ie ? -1 : Math.min(y, y * m, k, k * m),
              D = T ? -1 : Math.min(w, w * m, x, x * m),
              L = M ? 1 : Math.max(y, y * m, k, k * m),
              C = E ? 1 : Math.max(w, w * m, x, x * m);
            (c = (L - S) / 2),
              (u = (C - D) / 2),
              (d = -(L + S) / 2),
              (h = -(C + D) / 2);
          }
          for (r = 0, o = f.length; r < o; ++r)
            f[r]._options = a._resolveDataElementOptions(f[r], r);
          for (
            i.borderWidth = a.getMaxBorderWidth(),
              t = (s.right - s.left - i.borderWidth) / c,
              n = (s.bottom - s.top - i.borderWidth) / u,
              i.outerRadius = Math.max(Math.min(t, n) / 2, 0),
              i.innerRadius = Math.max(i.outerRadius * m, 0),
              i.radiusLength =
                (i.outerRadius - i.innerRadius) /
                (a._getVisibleDatasetWeightTotal() || 1),
              i.offsetX = d * i.outerRadius,
              i.offsetY = h * i.outerRadius,
              p.total = a.calculateTotal(),
              a.outerRadius =
                i.outerRadius -
                i.radiusLength * a._getRingWeightOffset(a.index),
              a.innerRadius = Math.max(a.outerRadius - i.radiusLength * _, 0),
              r = 0,
              o = f.length;
            r < o;
            ++r
          )
            a.updateElement(f[r], r, e);
        },
        updateElement: function (e, t, n) {
          var r = this,
            o = r.chart,
            a = o.chartArea,
            i = o.options,
            s = i.animation,
            l = (a.left + a.right) / 2,
            c = (a.top + a.bottom) / 2,
            u = i.rotation,
            d = i.rotation,
            h = r.getDataset(),
            p =
              (n && s.animateRotate) || e.hidden
                ? 0
                : r.calculateCircumference(h.data[t]) * (i.circumference / Re),
            f = n && s.animateScale ? 0 : r.innerRadius,
            m = n && s.animateScale ? 0 : r.outerRadius,
            g = e._options || {};
          B.extend(e, {
            _datasetIndex: r.index,
            _index: t,
            _model: {
              backgroundColor: g.backgroundColor,
              borderColor: g.borderColor,
              borderWidth: g.borderWidth,
              borderAlign: g.borderAlign,
              x: l + o.offsetX,
              y: c + o.offsetY,
              startAngle: u,
              endAngle: d,
              circumference: p,
              outerRadius: m,
              innerRadius: f,
              label: B.valueAtIndexOrDefault(h.label, t, o.data.labels[t]),
            },
          });
          var _ = e._model;
          (n && s.animateRotate) ||
            ((_.startAngle =
              0 === t ? i.rotation : r.getMeta().data[t - 1]._model.endAngle),
            (_.endAngle = _.startAngle + _.circumference)),
            e.pivot();
        },
        calculateTotal: function () {
          var e,
            t = this.getDataset(),
            n = this.getMeta(),
            r = 0;
          return (
            B.each(n.data, function (n, o) {
              (e = t.data[o]), isNaN(e) || n.hidden || (r += Math.abs(e));
            }),
            r
          );
        },
        calculateCircumference: function (e) {
          var t = this.getMeta().total;
          return t > 0 && !isNaN(e) ? Re * (Math.abs(e) / t) : 0;
        },
        getMaxBorderWidth: function (e) {
          var t,
            n,
            r,
            o,
            a,
            i,
            s,
            l,
            c = 0,
            u = this.chart;
          if (!e)
            for (t = 0, n = u.data.datasets.length; t < n; ++t)
              if (u.isDatasetVisible(t)) {
                (e = (r = u.getDatasetMeta(t)).data),
                  t !== this.index && (a = r.controller);
                break;
              }
          if (!e) return 0;
          for (t = 0, n = e.length; t < n; ++t)
            (o = e[t]),
              a
                ? (a._configure(), (i = a._resolveDataElementOptions(o, t)))
                : (i = o._options),
              "inner" !== i.borderAlign &&
                ((s = i.borderWidth),
                (c = (l = i.hoverBorderWidth) > (c = s > c ? s : c) ? l : c));
          return c;
        },
        setHoverStyle: function (e) {
          var t = e._model,
            n = e._options,
            r = B.getHoverColor;
          (e.$previousStyle = {
            backgroundColor: t.backgroundColor,
            borderColor: t.borderColor,
            borderWidth: t.borderWidth,
          }),
            (t.backgroundColor = Ae(
              n.hoverBackgroundColor,
              r(n.backgroundColor)
            )),
            (t.borderColor = Ae(n.hoverBorderColor, r(n.borderColor))),
            (t.borderWidth = Ae(n.hoverBorderWidth, n.borderWidth));
        },
        _getRingWeightOffset: function (e) {
          for (var t = 0, n = 0; n < e; ++n)
            this.chart.isDatasetVisible(n) && (t += this._getRingWeight(n));
          return t;
        },
        _getRingWeight: function (e) {
          return Math.max(Ae(this.chart.data.datasets[e].weight, 1), 0);
        },
        _getVisibleDatasetWeightTotal: function () {
          return this._getRingWeightOffset(this.chart.data.datasets.length);
        },
      });
      Y._set("horizontalBar", {
        hover: { mode: "index", axis: "y" },
        scales: {
          xAxes: [{ type: "linear", position: "bottom" }],
          yAxes: [
            {
              type: "category",
              position: "left",
              offset: !0,
              gridLines: { offsetGridLines: !0 },
            },
          ],
        },
        elements: { rectangle: { borderSkipped: "left" } },
        tooltips: { mode: "index", axis: "y" },
      }),
        Y._set("global", {
          datasets: {
            horizontalBar: { categoryPercentage: 0.8, barPercentage: 0.9 },
          },
        });
      var Fe = Ce.extend({
          _getValueScaleId: function () {
            return this.getMeta().xAxisID;
          },
          _getIndexScaleId: function () {
            return this.getMeta().yAxisID;
          },
        }),
        He = B.valueOrDefault,
        ze = B.options.resolve,
        Be = B.canvas._isPointInArea;
      function Ue(e, t) {
        var n = (e && e.options.ticks) || {},
          r = n.reverse,
          o = void 0 === n.min ? t : 0,
          a = void 0 === n.max ? t : 0;
        return { start: r ? a : o, end: r ? o : a };
      }
      function Ve(e, t, n) {
        var r = n / 2,
          o = Ue(e, r),
          a = Ue(t, r);
        return { top: a.end, right: o.end, bottom: a.start, left: o.start };
      }
      function We(e) {
        var t, n, r, o;
        return (
          B.isObject(e)
            ? ((t = e.top), (n = e.right), (r = e.bottom), (o = e.left))
            : (t = n = r = o = e),
          { top: t, right: n, bottom: r, left: o }
        );
      }
      Y._set("line", {
        showLines: !0,
        spanGaps: !1,
        hover: { mode: "label" },
        scales: {
          xAxes: [{ type: "category", id: "x-axis-0" }],
          yAxes: [{ type: "linear", id: "y-axis-0" }],
        },
      });
      var qe = re.extend({
          datasetElementType: ke.Line,
          dataElementType: ke.Point,
          _datasetElementOptions: [
            "backgroundColor",
            "borderCapStyle",
            "borderColor",
            "borderDash",
            "borderDashOffset",
            "borderJoinStyle",
            "borderWidth",
            "cubicInterpolationMode",
            "fill",
          ],
          _dataElementOptions: {
            backgroundColor: "pointBackgroundColor",
            borderColor: "pointBorderColor",
            borderWidth: "pointBorderWidth",
            hitRadius: "pointHitRadius",
            hoverBackgroundColor: "pointHoverBackgroundColor",
            hoverBorderColor: "pointHoverBorderColor",
            hoverBorderWidth: "pointHoverBorderWidth",
            hoverRadius: "pointHoverRadius",
            pointStyle: "pointStyle",
            radius: "pointRadius",
            rotation: "pointRotation",
          },
          update: function (e) {
            var t,
              n,
              r = this,
              o = r.getMeta(),
              a = o.dataset,
              i = o.data || [],
              s = r.chart.options,
              l = r._config,
              c = (r._showLine = He(l.showLine, s.showLines));
            for (
              r._xScale = r.getScaleForId(o.xAxisID),
                r._yScale = r.getScaleForId(o.yAxisID),
                c &&
                  (void 0 !== l.tension &&
                    void 0 === l.lineTension &&
                    (l.lineTension = l.tension),
                  (a._scale = r._yScale),
                  (a._datasetIndex = r.index),
                  (a._children = i),
                  (a._model = r._resolveDatasetElementOptions(a)),
                  a.pivot()),
                t = 0,
                n = i.length;
              t < n;
              ++t
            )
              r.updateElement(i[t], t, e);
            for (
              c && 0 !== a._model.tension && r.updateBezierControlPoints(),
                t = 0,
                n = i.length;
              t < n;
              ++t
            )
              i[t].pivot();
          },
          updateElement: function (e, t, n) {
            var r,
              o,
              a = this,
              i = a.getMeta(),
              s = e.custom || {},
              l = a.getDataset(),
              c = a.index,
              u = l.data[t],
              d = a._xScale,
              h = a._yScale,
              p = i.dataset._model,
              f = a._resolveDataElementOptions(e, t);
            (r = d.getPixelForValue("object" == typeof u ? u : NaN, t, c)),
              (o = n ? h.getBasePixel() : a.calculatePointY(u, t, c)),
              (e._xScale = d),
              (e._yScale = h),
              (e._options = f),
              (e._datasetIndex = c),
              (e._index = t),
              (e._model = {
                x: r,
                y: o,
                skip: s.skip || isNaN(r) || isNaN(o),
                radius: f.radius,
                pointStyle: f.pointStyle,
                rotation: f.rotation,
                backgroundColor: f.backgroundColor,
                borderColor: f.borderColor,
                borderWidth: f.borderWidth,
                tension: He(s.tension, p ? p.tension : 0),
                steppedLine: !!p && p.steppedLine,
                hitRadius: f.hitRadius,
              });
          },
          _resolveDatasetElementOptions: function (e) {
            var t = this,
              n = t._config,
              r = e.custom || {},
              o = t.chart.options,
              a = o.elements.line,
              i = re.prototype._resolveDatasetElementOptions.apply(
                t,
                arguments
              );
            return (
              (i.spanGaps = He(n.spanGaps, o.spanGaps)),
              (i.tension = He(n.lineTension, a.tension)),
              (i.steppedLine = ze([r.steppedLine, n.steppedLine, a.stepped])),
              (i.clip = We(
                He(n.clip, Ve(t._xScale, t._yScale, i.borderWidth))
              )),
              i
            );
          },
          calculatePointY: function (e, t, n) {
            var r,
              o,
              a,
              i,
              s,
              l,
              c,
              u = this.chart,
              d = this._yScale,
              h = 0,
              p = 0;
            if (d.options.stacked) {
              for (
                s = +d.getRightValue(e),
                  c = (l = u._getSortedVisibleDatasetMetas()).length,
                  r = 0;
                r < c && (a = l[r]).index !== n;
                ++r
              )
                (o = u.data.datasets[a.index]),
                  "line" === a.type &&
                    a.yAxisID === d.id &&
                    ((i = +d.getRightValue(o.data[t])) < 0
                      ? (p += i || 0)
                      : (h += i || 0));
              return s < 0
                ? d.getPixelForValue(p + s)
                : d.getPixelForValue(h + s);
            }
            return d.getPixelForValue(e);
          },
          updateBezierControlPoints: function () {
            var e,
              t,
              n,
              r,
              o = this.chart,
              a = this.getMeta(),
              i = a.dataset._model,
              s = o.chartArea,
              l = a.data || [];
            function c(e, t, n) {
              return Math.max(Math.min(e, n), t);
            }
            if (
              (i.spanGaps &&
                (l = l.filter(function (e) {
                  return !e._model.skip;
                })),
              "monotone" === i.cubicInterpolationMode)
            )
              B.splineCurveMonotone(l);
            else
              for (e = 0, t = l.length; e < t; ++e)
                (n = l[e]._model),
                  (r = B.splineCurve(
                    B.previousItem(l, e)._model,
                    n,
                    B.nextItem(l, e)._model,
                    i.tension
                  )),
                  (n.controlPointPreviousX = r.previous.x),
                  (n.controlPointPreviousY = r.previous.y),
                  (n.controlPointNextX = r.next.x),
                  (n.controlPointNextY = r.next.y);
            if (o.options.elements.line.capBezierPoints)
              for (e = 0, t = l.length; e < t; ++e)
                (n = l[e]._model),
                  Be(n, s) &&
                    (e > 0 &&
                      Be(l[e - 1]._model, s) &&
                      ((n.controlPointPreviousX = c(
                        n.controlPointPreviousX,
                        s.left,
                        s.right
                      )),
                      (n.controlPointPreviousY = c(
                        n.controlPointPreviousY,
                        s.top,
                        s.bottom
                      ))),
                    e < l.length - 1 &&
                      Be(l[e + 1]._model, s) &&
                      ((n.controlPointNextX = c(
                        n.controlPointNextX,
                        s.left,
                        s.right
                      )),
                      (n.controlPointNextY = c(
                        n.controlPointNextY,
                        s.top,
                        s.bottom
                      ))));
          },
          draw: function () {
            var e,
              t = this.chart,
              n = this.getMeta(),
              r = n.data || [],
              o = t.chartArea,
              a = t.canvas,
              i = 0,
              s = r.length;
            for (
              this._showLine &&
              ((e = n.dataset._model.clip),
              B.canvas.clipArea(t.ctx, {
                left: !1 === e.left ? 0 : o.left - e.left,
                right: !1 === e.right ? a.width : o.right + e.right,
                top: !1 === e.top ? 0 : o.top - e.top,
                bottom: !1 === e.bottom ? a.height : o.bottom + e.bottom,
              }),
              n.dataset.draw(),
              B.canvas.unclipArea(t.ctx));
              i < s;
              ++i
            )
              r[i].draw(o);
          },
          setHoverStyle: function (e) {
            var t = e._model,
              n = e._options,
              r = B.getHoverColor;
            (e.$previousStyle = {
              backgroundColor: t.backgroundColor,
              borderColor: t.borderColor,
              borderWidth: t.borderWidth,
              radius: t.radius,
            }),
              (t.backgroundColor = He(
                n.hoverBackgroundColor,
                r(n.backgroundColor)
              )),
              (t.borderColor = He(n.hoverBorderColor, r(n.borderColor))),
              (t.borderWidth = He(n.hoverBorderWidth, n.borderWidth)),
              (t.radius = He(n.hoverRadius, n.radius));
          },
        }),
        Ge = B.options.resolve;
      Y._set("polarArea", {
        scale: {
          type: "radialLinear",
          angleLines: { display: !1 },
          gridLines: { circular: !0 },
          pointLabels: { display: !1 },
          ticks: { beginAtZero: !0 },
        },
        animation: { animateRotate: !0, animateScale: !0 },
        startAngle: -0.5 * Math.PI,
        legendCallback: function (e) {
          var t,
            n,
            r,
            o = document.createElement("ul"),
            a = e.data,
            i = a.datasets,
            s = a.labels;
          if ((o.setAttribute("class", e.id + "-legend"), i.length))
            for (t = 0, n = i[0].data.length; t < n; ++t)
              ((r = o.appendChild(document.createElement("li"))).appendChild(
                document.createElement("span")
              ).style.backgroundColor = i[0].backgroundColor[t]),
                s[t] && r.appendChild(document.createTextNode(s[t]));
          return o.outerHTML;
        },
        legend: {
          labels: {
            generateLabels: function (e) {
              var t = e.data;
              return t.labels.length && t.datasets.length
                ? t.labels.map(function (n, r) {
                    var o = e.getDatasetMeta(0),
                      a = o.controller.getStyle(r);
                    return {
                      text: n,
                      fillStyle: a.backgroundColor,
                      strokeStyle: a.borderColor,
                      lineWidth: a.borderWidth,
                      hidden: isNaN(t.datasets[0].data[r]) || o.data[r].hidden,
                      index: r,
                    };
                  })
                : [];
            },
          },
          onClick: function (e, t) {
            var n,
              r,
              o,
              a = t.index,
              i = this.chart;
            for (n = 0, r = (i.data.datasets || []).length; n < r; ++n)
              (o = i.getDatasetMeta(n)).data[a].hidden = !o.data[a].hidden;
            i.update();
          },
        },
        tooltips: {
          callbacks: {
            title: function () {
              return "";
            },
            label: function (e, t) {
              return t.labels[e.index] + ": " + e.yLabel;
            },
          },
        },
      });
      var Je = re.extend({
        dataElementType: ke.Arc,
        linkScales: B.noop,
        _dataElementOptions: [
          "backgroundColor",
          "borderColor",
          "borderWidth",
          "borderAlign",
          "hoverBackgroundColor",
          "hoverBorderColor",
          "hoverBorderWidth",
        ],
        _getIndexScaleId: function () {
          return this.chart.scale.id;
        },
        _getValueScaleId: function () {
          return this.chart.scale.id;
        },
        update: function (e) {
          var t,
            n,
            r,
            o = this,
            a = o.getDataset(),
            i = o.getMeta(),
            s = o.chart.options.startAngle || 0,
            l = (o._starts = []),
            c = (o._angles = []),
            u = i.data;
          for (
            o._updateRadius(),
              i.count = o.countVisibleElements(),
              t = 0,
              n = a.data.length;
            t < n;
            t++
          )
            (l[t] = s), (r = o._computeAngle(t)), (c[t] = r), (s += r);
          for (t = 0, n = u.length; t < n; ++t)
            (u[t]._options = o._resolveDataElementOptions(u[t], t)),
              o.updateElement(u[t], t, e);
        },
        _updateRadius: function () {
          var e = this,
            t = e.chart,
            n = t.chartArea,
            r = t.options,
            o = Math.min(n.right - n.left, n.bottom - n.top);
          (t.outerRadius = Math.max(o / 2, 0)),
            (t.innerRadius = Math.max(
              r.cutoutPercentage
                ? (t.outerRadius / 100) * r.cutoutPercentage
                : 1,
              0
            )),
            (t.radiusLength =
              (t.outerRadius - t.innerRadius) / t.getVisibleDatasetCount()),
            (e.outerRadius = t.outerRadius - t.radiusLength * e.index),
            (e.innerRadius = e.outerRadius - t.radiusLength);
        },
        updateElement: function (e, t, n) {
          var r = this,
            o = r.chart,
            a = r.getDataset(),
            i = o.options,
            s = i.animation,
            l = o.scale,
            c = o.data.labels,
            u = l.xCenter,
            d = l.yCenter,
            h = i.startAngle,
            p = e.hidden ? 0 : l.getDistanceFromCenterForValue(a.data[t]),
            f = r._starts[t],
            m = f + (e.hidden ? 0 : r._angles[t]),
            g = s.animateScale ? 0 : l.getDistanceFromCenterForValue(a.data[t]),
            _ = e._options || {};
          B.extend(e, {
            _datasetIndex: r.index,
            _index: t,
            _scale: l,
            _model: {
              backgroundColor: _.backgroundColor,
              borderColor: _.borderColor,
              borderWidth: _.borderWidth,
              borderAlign: _.borderAlign,
              x: u,
              y: d,
              innerRadius: 0,
              outerRadius: n ? g : p,
              startAngle: n && s.animateRotate ? h : f,
              endAngle: n && s.animateRotate ? h : m,
              label: B.valueAtIndexOrDefault(c, t, c[t]),
            },
          }),
            e.pivot();
        },
        countVisibleElements: function () {
          var e = this.getDataset(),
            t = this.getMeta(),
            n = 0;
          return (
            B.each(t.data, function (t, r) {
              isNaN(e.data[r]) || t.hidden || n++;
            }),
            n
          );
        },
        setHoverStyle: function (e) {
          var t = e._model,
            n = e._options,
            r = B.getHoverColor,
            o = B.valueOrDefault;
          (e.$previousStyle = {
            backgroundColor: t.backgroundColor,
            borderColor: t.borderColor,
            borderWidth: t.borderWidth,
          }),
            (t.backgroundColor = o(
              n.hoverBackgroundColor,
              r(n.backgroundColor)
            )),
            (t.borderColor = o(n.hoverBorderColor, r(n.borderColor))),
            (t.borderWidth = o(n.hoverBorderWidth, n.borderWidth));
        },
        _computeAngle: function (e) {
          var t = this,
            n = this.getMeta().count,
            r = t.getDataset(),
            o = t.getMeta();
          if (isNaN(r.data[e]) || o.data[e].hidden) return 0;
          var a = {
            chart: t.chart,
            dataIndex: e,
            dataset: r,
            datasetIndex: t.index,
          };
          return Ge(
            [t.chart.options.elements.arc.angle, (2 * Math.PI) / n],
            a,
            e
          );
        },
      });
      Y._set("pie", B.clone(Y.doughnut)),
        Y._set("pie", { cutoutPercentage: 0 });
      var Ke = je,
        Qe = B.valueOrDefault;
      Y._set("radar", {
        spanGaps: !1,
        scale: { type: "radialLinear" },
        elements: { line: { fill: "start", tension: 0 } },
      });
      var Xe = re.extend({
        datasetElementType: ke.Line,
        dataElementType: ke.Point,
        linkScales: B.noop,
        _datasetElementOptions: [
          "backgroundColor",
          "borderWidth",
          "borderColor",
          "borderCapStyle",
          "borderDash",
          "borderDashOffset",
          "borderJoinStyle",
          "fill",
        ],
        _dataElementOptions: {
          backgroundColor: "pointBackgroundColor",
          borderColor: "pointBorderColor",
          borderWidth: "pointBorderWidth",
          hitRadius: "pointHitRadius",
          hoverBackgroundColor: "pointHoverBackgroundColor",
          hoverBorderColor: "pointHoverBorderColor",
          hoverBorderWidth: "pointHoverBorderWidth",
          hoverRadius: "pointHoverRadius",
          pointStyle: "pointStyle",
          radius: "pointRadius",
          rotation: "pointRotation",
        },
        _getIndexScaleId: function () {
          return this.chart.scale.id;
        },
        _getValueScaleId: function () {
          return this.chart.scale.id;
        },
        update: function (e) {
          var t,
            n,
            r = this,
            o = r.getMeta(),
            a = o.dataset,
            i = o.data || [],
            s = r.chart.scale,
            l = r._config;
          for (
            void 0 !== l.tension &&
              void 0 === l.lineTension &&
              (l.lineTension = l.tension),
              a._scale = s,
              a._datasetIndex = r.index,
              a._children = i,
              a._loop = !0,
              a._model = r._resolveDatasetElementOptions(a),
              a.pivot(),
              t = 0,
              n = i.length;
            t < n;
            ++t
          )
            r.updateElement(i[t], t, e);
          for (r.updateBezierControlPoints(), t = 0, n = i.length; t < n; ++t)
            i[t].pivot();
        },
        updateElement: function (e, t, n) {
          var r = this,
            o = e.custom || {},
            a = r.getDataset(),
            i = r.chart.scale,
            s = i.getPointPositionForValue(t, a.data[t]),
            l = r._resolveDataElementOptions(e, t),
            c = r.getMeta().dataset._model,
            u = n ? i.xCenter : s.x,
            d = n ? i.yCenter : s.y;
          (e._scale = i),
            (e._options = l),
            (e._datasetIndex = r.index),
            (e._index = t),
            (e._model = {
              x: u,
              y: d,
              skip: o.skip || isNaN(u) || isNaN(d),
              radius: l.radius,
              pointStyle: l.pointStyle,
              rotation: l.rotation,
              backgroundColor: l.backgroundColor,
              borderColor: l.borderColor,
              borderWidth: l.borderWidth,
              tension: Qe(o.tension, c ? c.tension : 0),
              hitRadius: l.hitRadius,
            });
        },
        _resolveDatasetElementOptions: function () {
          var e = this,
            t = e._config,
            n = e.chart.options,
            r = re.prototype._resolveDatasetElementOptions.apply(e, arguments);
          return (
            (r.spanGaps = Qe(t.spanGaps, n.spanGaps)),
            (r.tension = Qe(t.lineTension, n.elements.line.tension)),
            r
          );
        },
        updateBezierControlPoints: function () {
          var e,
            t,
            n,
            r,
            o = this.getMeta(),
            a = this.chart.chartArea,
            i = o.data || [];
          function s(e, t, n) {
            return Math.max(Math.min(e, n), t);
          }
          for (
            o.dataset._model.spanGaps &&
              (i = i.filter(function (e) {
                return !e._model.skip;
              })),
              e = 0,
              t = i.length;
            e < t;
            ++e
          )
            (n = i[e]._model),
              (r = B.splineCurve(
                B.previousItem(i, e, !0)._model,
                n,
                B.nextItem(i, e, !0)._model,
                n.tension
              )),
              (n.controlPointPreviousX = s(r.previous.x, a.left, a.right)),
              (n.controlPointPreviousY = s(r.previous.y, a.top, a.bottom)),
              (n.controlPointNextX = s(r.next.x, a.left, a.right)),
              (n.controlPointNextY = s(r.next.y, a.top, a.bottom));
        },
        setHoverStyle: function (e) {
          var t = e._model,
            n = e._options,
            r = B.getHoverColor;
          (e.$previousStyle = {
            backgroundColor: t.backgroundColor,
            borderColor: t.borderColor,
            borderWidth: t.borderWidth,
            radius: t.radius,
          }),
            (t.backgroundColor = Qe(
              n.hoverBackgroundColor,
              r(n.backgroundColor)
            )),
            (t.borderColor = Qe(n.hoverBorderColor, r(n.borderColor))),
            (t.borderWidth = Qe(n.hoverBorderWidth, n.borderWidth)),
            (t.radius = Qe(n.hoverRadius, n.radius));
        },
      });
      Y._set("scatter", {
        hover: { mode: "single" },
        scales: {
          xAxes: [{ id: "x-axis-1", type: "linear", position: "bottom" }],
          yAxes: [{ id: "y-axis-1", type: "linear", position: "left" }],
        },
        tooltips: {
          callbacks: {
            title: function () {
              return "";
            },
            label: function (e) {
              return "(" + e.xLabel + ", " + e.yLabel + ")";
            },
          },
        },
      }),
        Y._set("global", { datasets: { scatter: { showLine: !1 } } });
      var $e = {
        bar: Ce,
        bubble: Ne,
        doughnut: je,
        horizontalBar: Fe,
        line: qe,
        polarArea: Je,
        pie: Ke,
        radar: Xe,
        scatter: qe,
      };
      function Ze(e, t) {
        return e.native ? { x: e.x, y: e.y } : B.getRelativePosition(e, t);
      }
      function et(e, t) {
        var n,
          r,
          o,
          a,
          i,
          s,
          l = e._getSortedVisibleDatasetMetas();
        for (r = 0, a = l.length; r < a; ++r)
          for (o = 0, i = (n = l[r].data).length; o < i; ++o)
            (s = n[o])._view.skip || t(s);
      }
      function tt(e, t) {
        var n = [];
        return (
          et(e, function (e) {
            e.inRange(t.x, t.y) && n.push(e);
          }),
          n
        );
      }
      function nt(e, t, n, r) {
        var o = Number.POSITIVE_INFINITY,
          a = [];
        return (
          et(e, function (e) {
            if (!n || e.inRange(t.x, t.y)) {
              var i = e.getCenterPoint(),
                s = r(t, i);
              s < o ? ((a = [e]), (o = s)) : s === o && a.push(e);
            }
          }),
          a
        );
      }
      function rt(e) {
        var t = -1 !== e.indexOf("x"),
          n = -1 !== e.indexOf("y");
        return function (e, r) {
          var o = t ? Math.abs(e.x - r.x) : 0,
            a = n ? Math.abs(e.y - r.y) : 0;
          return Math.sqrt(Math.pow(o, 2) + Math.pow(a, 2));
        };
      }
      function ot(e, t, n) {
        var r = Ze(t, e);
        n.axis = n.axis || "x";
        var o = rt(n.axis),
          a = n.intersect ? tt(e, r) : nt(e, r, !1, o),
          i = [];
        return a.length
          ? (e._getSortedVisibleDatasetMetas().forEach(function (e) {
              var t = e.data[a[0]._index];
              t && !t._view.skip && i.push(t);
            }),
            i)
          : [];
      }
      var at = {
          modes: {
            single: function (e, t) {
              var n = Ze(t, e),
                r = [];
              return (
                et(e, function (e) {
                  if (e.inRange(n.x, n.y)) return r.push(e), r;
                }),
                r.slice(0, 1)
              );
            },
            label: ot,
            index: ot,
            dataset: function (e, t, n) {
              var r = Ze(t, e);
              n.axis = n.axis || "xy";
              var o = rt(n.axis),
                a = n.intersect ? tt(e, r) : nt(e, r, !1, o);
              return (
                a.length > 0 && (a = e.getDatasetMeta(a[0]._datasetIndex).data),
                a
              );
            },
            "x-axis": function (e, t) {
              return ot(e, t, { intersect: !1 });
            },
            point: function (e, t) {
              return tt(e, Ze(t, e));
            },
            nearest: function (e, t, n) {
              var r = Ze(t, e);
              n.axis = n.axis || "xy";
              var o = rt(n.axis);
              return nt(e, r, n.intersect, o);
            },
            x: function (e, t, n) {
              var r = Ze(t, e),
                o = [],
                a = !1;
              return (
                et(e, function (e) {
                  e.inXRange(r.x) && o.push(e), e.inRange(r.x, r.y) && (a = !0);
                }),
                n.intersect && !a && (o = []),
                o
              );
            },
            y: function (e, t, n) {
              var r = Ze(t, e),
                o = [],
                a = !1;
              return (
                et(e, function (e) {
                  e.inYRange(r.y) && o.push(e), e.inRange(r.x, r.y) && (a = !0);
                }),
                n.intersect && !a && (o = []),
                o
              );
            },
          },
        },
        it = B.extend;
      function st(e, t) {
        return B.where(e, function (e) {
          return e.pos === t;
        });
      }
      function lt(e, t) {
        return e.sort(function (e, n) {
          var r = t ? n : e,
            o = t ? e : n;
          return r.weight === o.weight
            ? r.index - o.index
            : r.weight - o.weight;
        });
      }
      function ct(e, t, n, r) {
        return Math.max(e[n], t[n]) + Math.max(e[r], t[r]);
      }
      function ut(e, t, n) {
        var r,
          o,
          a = n.box,
          i = e.maxPadding;
        if (
          (n.size && (e[n.pos] -= n.size),
          (n.size = n.horizontal ? a.height : a.width),
          (e[n.pos] += n.size),
          a.getPadding)
        ) {
          var s = a.getPadding();
          (i.top = Math.max(i.top, s.top)),
            (i.left = Math.max(i.left, s.left)),
            (i.bottom = Math.max(i.bottom, s.bottom)),
            (i.right = Math.max(i.right, s.right));
        }
        if (
          ((r = t.outerWidth - ct(i, e, "left", "right")),
          (o = t.outerHeight - ct(i, e, "top", "bottom")),
          r !== e.w || o !== e.h)
        ) {
          (e.w = r), (e.h = o);
          var l = n.horizontal ? [r, e.w] : [o, e.h];
          return !(l[0] === l[1] || (isNaN(l[0]) && isNaN(l[1])));
        }
      }
      function dt(e, t) {
        var n = t.maxPadding;
        function r(e) {
          var r = { left: 0, top: 0, right: 0, bottom: 0 };
          return (
            e.forEach(function (e) {
              r[e] = Math.max(t[e], n[e]);
            }),
            r
          );
        }
        return r(e ? ["left", "right"] : ["top", "bottom"]);
      }
      function ht(e, t, n) {
        var r,
          o,
          a,
          i,
          s,
          l,
          c = [];
        for (r = 0, o = e.length; r < o; ++r)
          (i = (a = e[r]).box).update(
            a.width || t.w,
            a.height || t.h,
            dt(a.horizontal, t)
          ),
            ut(t, n, a) && ((l = !0), c.length && (s = !0)),
            i.fullWidth || c.push(a);
        return (s && ht(c, t, n)) || l;
      }
      function pt(e, t, n) {
        var r,
          o,
          a,
          i,
          s = n.padding,
          l = t.x,
          c = t.y;
        for (r = 0, o = e.length; r < o; ++r)
          (i = (a = e[r]).box),
            a.horizontal
              ? ((i.left = i.fullWidth ? s.left : t.left),
                (i.right = i.fullWidth ? n.outerWidth - s.right : t.left + t.w),
                (i.top = c),
                (i.bottom = c + i.height),
                (i.width = i.right - i.left),
                (c = i.bottom))
              : ((i.left = l),
                (i.right = l + i.width),
                (i.top = t.top),
                (i.bottom = t.top + t.h),
                (i.height = i.bottom - i.top),
                (l = i.right));
        (t.x = l), (t.y = c);
      }
      Y._set("global", {
        layout: { padding: { top: 0, right: 0, bottom: 0, left: 0 } },
      });
      var ft,
        mt = {
          defaults: {},
          addBox: function (e, t) {
            e.boxes || (e.boxes = []),
              (t.fullWidth = t.fullWidth || !1),
              (t.position = t.position || "top"),
              (t.weight = t.weight || 0),
              (t._layers =
                t._layers ||
                function () {
                  return [
                    {
                      z: 0,
                      draw: function () {
                        t.draw.apply(t, arguments);
                      },
                    },
                  ];
                }),
              e.boxes.push(t);
          },
          removeBox: function (e, t) {
            var n = e.boxes ? e.boxes.indexOf(t) : -1;
            -1 !== n && e.boxes.splice(n, 1);
          },
          configure: function (e, t, n) {
            for (
              var r,
                o = ["fullWidth", "position", "weight"],
                a = o.length,
                i = 0;
              i < a;
              ++i
            )
              (r = o[i]), n.hasOwnProperty(r) && (t[r] = n[r]);
          },
          update: function (e, t, n) {
            if (e) {
              var r = e.options.layout || {},
                o = B.options.toPadding(r.padding),
                a = t - o.width,
                i = n - o.height,
                s = (function (e) {
                  var t = (function (e) {
                      var t,
                        n,
                        r,
                        o = [];
                      for (t = 0, n = (e || []).length; t < n; ++t)
                        (r = e[t]),
                          o.push({
                            index: t,
                            box: r,
                            pos: r.position,
                            horizontal: r.isHorizontal(),
                            weight: r.weight,
                          });
                      return o;
                    })(e),
                    n = lt(st(t, "left"), !0),
                    r = lt(st(t, "right")),
                    o = lt(st(t, "top"), !0),
                    a = lt(st(t, "bottom"));
                  return {
                    leftAndTop: n.concat(o),
                    rightAndBottom: r.concat(a),
                    chartArea: st(t, "chartArea"),
                    vertical: n.concat(r),
                    horizontal: o.concat(a),
                  };
                })(e.boxes),
                l = s.vertical,
                c = s.horizontal,
                u = Object.freeze({
                  outerWidth: t,
                  outerHeight: n,
                  padding: o,
                  availableWidth: a,
                  vBoxMaxWidth: a / 2 / l.length,
                  hBoxMaxHeight: i / 2,
                }),
                d = it(
                  { maxPadding: it({}, o), w: a, h: i, x: o.left, y: o.top },
                  o
                );
              !(function (e, t) {
                var n, r, o;
                for (n = 0, r = e.length; n < r; ++n)
                  ((o = e[n]).width = o.horizontal
                    ? o.box.fullWidth && t.availableWidth
                    : t.vBoxMaxWidth),
                    (o.height = o.horizontal && t.hBoxMaxHeight);
              })(l.concat(c), u),
                ht(l, d, u),
                ht(c, d, u) && ht(l, d, u),
                (function (e) {
                  var t = e.maxPadding;
                  function n(n) {
                    var r = Math.max(t[n] - e[n], 0);
                    return (e[n] += r), r;
                  }
                  (e.y += n("top")),
                    (e.x += n("left")),
                    n("right"),
                    n("bottom");
                })(d),
                pt(s.leftAndTop, d, u),
                (d.x += d.w),
                (d.y += d.h),
                pt(s.rightAndBottom, d, u),
                (e.chartArea = {
                  left: d.left,
                  top: d.top,
                  right: d.left + d.w,
                  bottom: d.top + d.h,
                }),
                B.each(s.chartArea, function (t) {
                  var n = t.box;
                  it(n, e.chartArea), n.update(d.w, d.h);
                });
            }
          },
        },
        gt =
          ((ft = Object.freeze({
            __proto__: null,
            default:
              "/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",
          })) &&
            ft.default) ||
          ft,
        _t = ["animationstart", "webkitAnimationStart"],
        vt = {
          touchstart: "mousedown",
          touchmove: "mousemove",
          touchend: "mouseup",
          pointerenter: "mouseenter",
          pointerdown: "mousedown",
          pointermove: "mousemove",
          pointerup: "mouseup",
          pointerleave: "mouseout",
          pointerout: "mouseout",
        };
      function bt(e, t) {
        var n = B.getStyle(e, t),
          r = n && n.match(/^(\d+)(\.\d+)?px$/);
        return r ? Number(r[1]) : void 0;
      }
      var yt = !!(function () {
        var e = !1;
        try {
          var t = Object.defineProperty({}, "passive", {
            get: function () {
              e = !0;
            },
          });
          window.addEventListener("e", null, t);
        } catch (e) {}
        return e;
      })() && { passive: !0 };
      function wt(e, t, n) {
        e.addEventListener(t, n, yt);
      }
      function kt(e, t, n) {
        e.removeEventListener(t, n, yt);
      }
      function xt(e, t, n, r, o) {
        return {
          type: e,
          chart: t,
          native: o || null,
          x: void 0 !== n ? n : null,
          y: void 0 !== r ? r : null,
        };
      }
      function Mt(e) {
        var t = document.createElement("div");
        return (t.className = e || ""), t;
      }
      function Et(e, t, n) {
        var r,
          o,
          a,
          i,
          s = e.$chartjs || (e.$chartjs = {}),
          l = (s.resizer = (function (e) {
            var t = Mt("chartjs-size-monitor"),
              n = Mt("chartjs-size-monitor-expand"),
              r = Mt("chartjs-size-monitor-shrink");
            n.appendChild(Mt()),
              r.appendChild(Mt()),
              t.appendChild(n),
              t.appendChild(r),
              (t._reset = function () {
                (n.scrollLeft = 1e6),
                  (n.scrollTop = 1e6),
                  (r.scrollLeft = 1e6),
                  (r.scrollTop = 1e6);
              });
            var o = function () {
              t._reset(), e();
            };
            return (
              wt(n, "scroll", o.bind(n, "expand")),
              wt(r, "scroll", o.bind(r, "shrink")),
              t
            );
          })(
            ((r = function () {
              if (s.resizer) {
                var r = n.options.maintainAspectRatio && e.parentNode,
                  o = r ? r.clientWidth : 0;
                t(xt("resize", n)),
                  r && r.clientWidth < o && n.canvas && t(xt("resize", n));
              }
            }),
            (a = !1),
            (i = []),
            function () {
              (i = Array.prototype.slice.call(arguments)),
                (o = o || this),
                a ||
                  ((a = !0),
                  B.requestAnimFrame.call(window, function () {
                    (a = !1), r.apply(o, i);
                  }));
            })
          ));
        !(function (e, t) {
          var n = e.$chartjs || (e.$chartjs = {}),
            r = (n.renderProxy = function (e) {
              "chartjs-render-animation" === e.animationName && t();
            });
          B.each(_t, function (t) {
            wt(e, t, r);
          }),
            (n.reflow = !!e.offsetParent),
            e.classList.add("chartjs-render-monitor");
        })(e, function () {
          if (s.resizer) {
            var t = e.parentNode;
            t && t !== l.parentNode && t.insertBefore(l, t.firstChild),
              l._reset();
          }
        });
      }
      function Tt(e) {
        var t = e.$chartjs || {},
          n = t.resizer;
        delete t.resizer,
          (function (e) {
            var t = e.$chartjs || {},
              n = t.renderProxy;
            n &&
              (B.each(_t, function (t) {
                kt(e, t, n);
              }),
              delete t.renderProxy),
              e.classList.remove("chartjs-render-monitor");
          })(e),
          n && n.parentNode && n.parentNode.removeChild(n);
      }
      var St = {
        disableCSSInjection: !1,
        _enabled:
          "undefined" != typeof window && "undefined" != typeof document,
        _ensureLoaded: function (e) {
          if (!this.disableCSSInjection) {
            var t = e.getRootNode ? e.getRootNode() : document;
            !(function (e, t) {
              var n = e.$chartjs || (e.$chartjs = {});
              if (!n.containsStyles) {
                (n.containsStyles = !0), (t = "/* Chart.js */\n" + t);
                var r = document.createElement("style");
                r.setAttribute("type", "text/css"),
                  r.appendChild(document.createTextNode(t)),
                  e.appendChild(r);
              }
            })(t.host ? t : document.head, gt);
          }
        },
        acquireContext: function (e, t) {
          "string" == typeof e
            ? (e = document.getElementById(e))
            : e.length && (e = e[0]),
            e && e.canvas && (e = e.canvas);
          var n = e && e.getContext && e.getContext("2d");
          return n && n.canvas === e
            ? (this._ensureLoaded(e),
              (function (e, t) {
                var n = e.style,
                  r = e.getAttribute("height"),
                  o = e.getAttribute("width");
                if (
                  ((e.$chartjs = {
                    initial: {
                      height: r,
                      width: o,
                      style: {
                        display: n.display,
                        height: n.height,
                        width: n.width,
                      },
                    },
                  }),
                  (n.display = n.display || "block"),
                  null === o || "" === o)
                ) {
                  var a = bt(e, "width");
                  void 0 !== a && (e.width = a);
                }
                if (null === r || "" === r)
                  if ("" === e.style.height)
                    e.height = e.width / (t.options.aspectRatio || 2);
                  else {
                    var i = bt(e, "height");
                    void 0 !== a && (e.height = i);
                  }
              })(e, t),
              n)
            : null;
        },
        releaseContext: function (e) {
          var t = e.canvas;
          if (t.$chartjs) {
            var n = t.$chartjs.initial;
            ["height", "width"].forEach(function (e) {
              var r = n[e];
              B.isNullOrUndef(r) ? t.removeAttribute(e) : t.setAttribute(e, r);
            }),
              B.each(n.style || {}, function (e, n) {
                t.style[n] = e;
              }),
              (t.width = t.width),
              delete t.$chartjs;
          }
        },
        addEventListener: function (e, t, n) {
          var r = e.canvas;
          if ("resize" !== t) {
            var o = n.$chartjs || (n.$chartjs = {});
            wt(
              r,
              t,
              ((o.proxies || (o.proxies = {}))[e.id + "_" + t] = function (t) {
                n(
                  (function (e, t) {
                    var n = vt[e.type] || e.type,
                      r = B.getRelativePosition(e, t);
                    return xt(n, t, r.x, r.y, e);
                  })(t, e)
                );
              })
            );
          } else Et(r, n, e);
        },
        removeEventListener: function (e, t, n) {
          var r = e.canvas;
          if ("resize" !== t) {
            var o = ((n.$chartjs || {}).proxies || {})[e.id + "_" + t];
            o && kt(r, t, o);
          } else Tt(r);
        },
      };
      (B.addEvent = wt), (B.removeEvent = kt);
      var Dt = St._enabled
          ? St
          : {
              acquireContext: function (e) {
                return (
                  e && e.canvas && (e = e.canvas),
                  (e && e.getContext("2d")) || null
                );
              },
            },
        Lt = B.extend(
          {
            initialize: function () {},
            acquireContext: function () {},
            releaseContext: function () {},
            addEventListener: function () {},
            removeEventListener: function () {},
          },
          Dt
        );
      Y._set("global", { plugins: {} });
      var Ct = {
          _plugins: [],
          _cacheId: 0,
          register: function (e) {
            var t = this._plugins;
            [].concat(e).forEach(function (e) {
              -1 === t.indexOf(e) && t.push(e);
            }),
              this._cacheId++;
          },
          unregister: function (e) {
            var t = this._plugins;
            [].concat(e).forEach(function (e) {
              var n = t.indexOf(e);
              -1 !== n && t.splice(n, 1);
            }),
              this._cacheId++;
          },
          clear: function () {
            (this._plugins = []), this._cacheId++;
          },
          count: function () {
            return this._plugins.length;
          },
          getAll: function () {
            return this._plugins;
          },
          notify: function (e, t, n) {
            var r,
              o,
              a,
              i,
              s,
              l = this.descriptors(e),
              c = l.length;
            for (r = 0; r < c; ++r)
              if (
                "function" == typeof (s = (a = (o = l[r]).plugin)[t]) &&
                ((i = [e].concat(n || [])).push(o.options),
                !1 === s.apply(a, i))
              )
                return !1;
            return !0;
          },
          descriptors: function (e) {
            var t = e.$plugins || (e.$plugins = {});
            if (t.id === this._cacheId) return t.descriptors;
            var n = [],
              r = [],
              o = (e && e.config) || {},
              a = (o.options && o.options.plugins) || {};
            return (
              this._plugins.concat(o.plugins || []).forEach(function (e) {
                if (-1 === n.indexOf(e)) {
                  var t = e.id,
                    o = a[t];
                  !1 !== o &&
                    (!0 === o && (o = B.clone(Y.global.plugins[t])),
                    n.push(e),
                    r.push({ plugin: e, options: o || {} }));
                }
              }),
              (t.descriptors = r),
              (t.id = this._cacheId),
              r
            );
          },
          _invalidate: function (e) {
            delete e.$plugins;
          },
        },
        Pt = {
          constructors: {},
          defaults: {},
          registerScaleType: function (e, t, n) {
            (this.constructors[e] = t), (this.defaults[e] = B.clone(n));
          },
          getScaleConstructor: function (e) {
            return this.constructors.hasOwnProperty(e)
              ? this.constructors[e]
              : void 0;
          },
          getScaleDefaults: function (e) {
            return this.defaults.hasOwnProperty(e)
              ? B.merge(Object.create(null), [Y.scale, this.defaults[e]])
              : {};
          },
          updateScaleDefaults: function (e, t) {
            this.defaults.hasOwnProperty(e) &&
              (this.defaults[e] = B.extend(this.defaults[e], t));
          },
          addScalesToLayout: function (e) {
            B.each(e.scales, function (t) {
              (t.fullWidth = t.options.fullWidth),
                (t.position = t.options.position),
                (t.weight = t.options.weight),
                mt.addBox(e, t);
            });
          },
        },
        Ot = B.valueOrDefault,
        Nt = B.rtl.getRtlAdapter;
      Y._set("global", {
        tooltips: {
          enabled: !0,
          custom: null,
          mode: "nearest",
          position: "average",
          intersect: !0,
          backgroundColor: "rgba(0,0,0,0.8)",
          titleFontStyle: "bold",
          titleSpacing: 2,
          titleMarginBottom: 6,
          titleFontColor: "#fff",
          titleAlign: "left",
          bodySpacing: 2,
          bodyFontColor: "#fff",
          bodyAlign: "left",
          footerFontStyle: "bold",
          footerSpacing: 2,
          footerMarginTop: 6,
          footerFontColor: "#fff",
          footerAlign: "left",
          yPadding: 6,
          xPadding: 6,
          caretPadding: 2,
          caretSize: 5,
          cornerRadius: 6,
          multiKeyBackground: "#fff",
          displayColors: !0,
          borderColor: "rgba(0,0,0,0)",
          borderWidth: 0,
          callbacks: {
            beforeTitle: B.noop,
            title: function (e, t) {
              var n = "",
                r = t.labels,
                o = r ? r.length : 0;
              if (e.length > 0) {
                var a = e[0];
                a.label
                  ? (n = a.label)
                  : a.xLabel
                  ? (n = a.xLabel)
                  : o > 0 && a.index < o && (n = r[a.index]);
              }
              return n;
            },
            afterTitle: B.noop,
            beforeBody: B.noop,
            beforeLabel: B.noop,
            label: function (e, t) {
              var n = t.datasets[e.datasetIndex].label || "";
              return (
                n && (n += ": "),
                B.isNullOrUndef(e.value) ? (n += e.yLabel) : (n += e.value),
                n
              );
            },
            labelColor: function (e, t) {
              var n = t.getDatasetMeta(e.datasetIndex).data[e.index]._view;
              return {
                borderColor: n.borderColor,
                backgroundColor: n.backgroundColor,
              };
            },
            labelTextColor: function () {
              return this._options.bodyFontColor;
            },
            afterLabel: B.noop,
            afterBody: B.noop,
            beforeFooter: B.noop,
            footer: B.noop,
            afterFooter: B.noop,
          },
        },
      });
      var At = {
        average: function (e) {
          if (!e.length) return !1;
          var t,
            n,
            r = 0,
            o = 0,
            a = 0;
          for (t = 0, n = e.length; t < n; ++t) {
            var i = e[t];
            if (i && i.hasValue()) {
              var s = i.tooltipPosition();
              (r += s.x), (o += s.y), ++a;
            }
          }
          return { x: r / a, y: o / a };
        },
        nearest: function (e, t) {
          var n,
            r,
            o,
            a = t.x,
            i = t.y,
            s = Number.POSITIVE_INFINITY;
          for (n = 0, r = e.length; n < r; ++n) {
            var l = e[n];
            if (l && l.hasValue()) {
              var c = l.getCenterPoint(),
                u = B.distanceBetweenPoints(t, c);
              u < s && ((s = u), (o = l));
            }
          }
          if (o) {
            var d = o.tooltipPosition();
            (a = d.x), (i = d.y);
          }
          return { x: a, y: i };
        },
      };
      function It(e, t) {
        return (
          t && (B.isArray(t) ? Array.prototype.push.apply(e, t) : e.push(t)), e
        );
      }
      function Rt(e) {
        return ("string" == typeof e || e instanceof String) &&
          e.indexOf("\n") > -1
          ? e.split("\n")
          : e;
      }
      function Yt(e) {
        var t = Y.global;
        return {
          xPadding: e.xPadding,
          yPadding: e.yPadding,
          xAlign: e.xAlign,
          yAlign: e.yAlign,
          rtl: e.rtl,
          textDirection: e.textDirection,
          bodyFontColor: e.bodyFontColor,
          _bodyFontFamily: Ot(e.bodyFontFamily, t.defaultFontFamily),
          _bodyFontStyle: Ot(e.bodyFontStyle, t.defaultFontStyle),
          _bodyAlign: e.bodyAlign,
          bodyFontSize: Ot(e.bodyFontSize, t.defaultFontSize),
          bodySpacing: e.bodySpacing,
          titleFontColor: e.titleFontColor,
          _titleFontFamily: Ot(e.titleFontFamily, t.defaultFontFamily),
          _titleFontStyle: Ot(e.titleFontStyle, t.defaultFontStyle),
          titleFontSize: Ot(e.titleFontSize, t.defaultFontSize),
          _titleAlign: e.titleAlign,
          titleSpacing: e.titleSpacing,
          titleMarginBottom: e.titleMarginBottom,
          footerFontColor: e.footerFontColor,
          _footerFontFamily: Ot(e.footerFontFamily, t.defaultFontFamily),
          _footerFontStyle: Ot(e.footerFontStyle, t.defaultFontStyle),
          footerFontSize: Ot(e.footerFontSize, t.defaultFontSize),
          _footerAlign: e.footerAlign,
          footerSpacing: e.footerSpacing,
          footerMarginTop: e.footerMarginTop,
          caretSize: e.caretSize,
          cornerRadius: e.cornerRadius,
          backgroundColor: e.backgroundColor,
          opacity: 0,
          legendColorBackground: e.multiKeyBackground,
          displayColors: e.displayColors,
          borderColor: e.borderColor,
          borderWidth: e.borderWidth,
        };
      }
      function jt(e, t) {
        return "center" === t
          ? e.x + e.width / 2
          : "right" === t
          ? e.x + e.width - e.xPadding
          : e.x + e.xPadding;
      }
      function Ft(e) {
        return It([], Rt(e));
      }
      var Ht = K.extend({
          initialize: function () {
            (this._model = Yt(this._options)), (this._lastActive = []);
          },
          getTitle: function () {
            var e = this,
              t = e._options,
              n = t.callbacks,
              r = n.beforeTitle.apply(e, arguments),
              o = n.title.apply(e, arguments),
              a = n.afterTitle.apply(e, arguments),
              i = [];
            return (i = It(i, Rt(r))), (i = It(i, Rt(o))), (i = It(i, Rt(a)));
          },
          getBeforeBody: function () {
            return Ft(
              this._options.callbacks.beforeBody.apply(this, arguments)
            );
          },
          getBody: function (e, t) {
            var n = this,
              r = n._options.callbacks,
              o = [];
            return (
              B.each(e, function (e) {
                var a = { before: [], lines: [], after: [] };
                It(a.before, Rt(r.beforeLabel.call(n, e, t))),
                  It(a.lines, r.label.call(n, e, t)),
                  It(a.after, Rt(r.afterLabel.call(n, e, t))),
                  o.push(a);
              }),
              o
            );
          },
          getAfterBody: function () {
            return Ft(this._options.callbacks.afterBody.apply(this, arguments));
          },
          getFooter: function () {
            var e = this,
              t = e._options.callbacks,
              n = t.beforeFooter.apply(e, arguments),
              r = t.footer.apply(e, arguments),
              o = t.afterFooter.apply(e, arguments),
              a = [];
            return (a = It(a, Rt(n))), (a = It(a, Rt(r))), (a = It(a, Rt(o)));
          },
          update: function (e) {
            var t,
              n,
              r,
              o,
              a,
              i,
              s,
              l,
              c,
              u,
              d = this,
              h = d._options,
              p = d._model,
              f = (d._model = Yt(h)),
              m = d._active,
              g = d._data,
              _ = { xAlign: p.xAlign, yAlign: p.yAlign },
              v = { x: p.x, y: p.y },
              b = { width: p.width, height: p.height },
              y = { x: p.caretX, y: p.caretY };
            if (m.length) {
              f.opacity = 1;
              var w = [],
                k = [];
              y = At[h.position].call(d, m, d._eventPosition);
              var x = [];
              for (t = 0, n = m.length; t < n; ++t)
                x.push(
                  ((r = m[t]),
                  (o = void 0),
                  (a = void 0),
                  (i = void 0),
                  (s = void 0),
                  (l = void 0),
                  (c = void 0),
                  (u = void 0),
                  (o = r._xScale),
                  (a = r._yScale || r._scale),
                  (i = r._index),
                  (s = r._datasetIndex),
                  (l = r._chart.getDatasetMeta(s).controller),
                  (c = l._getIndexScale()),
                  (u = l._getValueScale()),
                  {
                    xLabel: o ? o.getLabelForIndex(i, s) : "",
                    yLabel: a ? a.getLabelForIndex(i, s) : "",
                    label: c ? "" + c.getLabelForIndex(i, s) : "",
                    value: u ? "" + u.getLabelForIndex(i, s) : "",
                    index: i,
                    datasetIndex: s,
                    x: r._model.x,
                    y: r._model.y,
                  })
                );
              h.filter &&
                (x = x.filter(function (e) {
                  return h.filter(e, g);
                })),
                h.itemSort &&
                  (x = x.sort(function (e, t) {
                    return h.itemSort(e, t, g);
                  })),
                B.each(x, function (e) {
                  w.push(h.callbacks.labelColor.call(d, e, d._chart)),
                    k.push(h.callbacks.labelTextColor.call(d, e, d._chart));
                }),
                (f.title = d.getTitle(x, g)),
                (f.beforeBody = d.getBeforeBody(x, g)),
                (f.body = d.getBody(x, g)),
                (f.afterBody = d.getAfterBody(x, g)),
                (f.footer = d.getFooter(x, g)),
                (f.x = y.x),
                (f.y = y.y),
                (f.caretPadding = h.caretPadding),
                (f.labelColors = w),
                (f.labelTextColors = k),
                (f.dataPoints = x),
                (b = (function (e, t) {
                  var n = e._chart.ctx,
                    r = 2 * t.yPadding,
                    o = 0,
                    a = t.body,
                    i = a.reduce(function (e, t) {
                      return (
                        e + t.before.length + t.lines.length + t.after.length
                      );
                    }, 0);
                  i += t.beforeBody.length + t.afterBody.length;
                  var s = t.title.length,
                    l = t.footer.length,
                    c = t.titleFontSize,
                    u = t.bodyFontSize,
                    d = t.footerFontSize;
                  (r += s * c),
                    (r += s ? (s - 1) * t.titleSpacing : 0),
                    (r += s ? t.titleMarginBottom : 0),
                    (r += i * u),
                    (r += i ? (i - 1) * t.bodySpacing : 0),
                    (r += l ? t.footerMarginTop : 0),
                    (r += l * d),
                    (r += l ? (l - 1) * t.footerSpacing : 0);
                  var h = 0,
                    p = function (e) {
                      o = Math.max(o, n.measureText(e).width + h);
                    };
                  return (
                    (n.font = B.fontString(
                      c,
                      t._titleFontStyle,
                      t._titleFontFamily
                    )),
                    B.each(t.title, p),
                    (n.font = B.fontString(
                      u,
                      t._bodyFontStyle,
                      t._bodyFontFamily
                    )),
                    B.each(t.beforeBody.concat(t.afterBody), p),
                    (h = t.displayColors ? u + 2 : 0),
                    B.each(a, function (e) {
                      B.each(e.before, p),
                        B.each(e.lines, p),
                        B.each(e.after, p);
                    }),
                    (h = 0),
                    (n.font = B.fontString(
                      d,
                      t._footerFontStyle,
                      t._footerFontFamily
                    )),
                    B.each(t.footer, p),
                    { width: (o += 2 * t.xPadding), height: r }
                  );
                })(this, f)),
                (v = (function (e, t, n, r) {
                  var o = e.x,
                    a = e.y,
                    i = e.caretSize,
                    s = e.caretPadding,
                    l = e.cornerRadius,
                    c = n.xAlign,
                    u = n.yAlign,
                    d = i + s,
                    h = l + s;
                  return (
                    "right" === c
                      ? (o -= t.width)
                      : "center" === c &&
                        ((o -= t.width / 2) + t.width > r.width &&
                          (o = r.width - t.width),
                        o < 0 && (o = 0)),
                    "top" === u
                      ? (a += d)
                      : (a -= "bottom" === u ? t.height + d : t.height / 2),
                    "center" === u
                      ? "left" === c
                        ? (o += d)
                        : "right" === c && (o -= d)
                      : "left" === c
                      ? (o -= h)
                      : "right" === c && (o += h),
                    { x: o, y: a }
                  );
                })(
                  f,
                  b,
                  (_ = (function (e, t) {
                    var n,
                      r,
                      o,
                      a,
                      i,
                      s = e._model,
                      l = e._chart,
                      c = e._chart.chartArea,
                      u = "center",
                      d = "center";
                    s.y < t.height
                      ? (d = "top")
                      : s.y > l.height - t.height && (d = "bottom");
                    var h = (c.left + c.right) / 2,
                      p = (c.top + c.bottom) / 2;
                    "center" === d
                      ? ((n = function (e) {
                          return e <= h;
                        }),
                        (r = function (e) {
                          return e > h;
                        }))
                      : ((n = function (e) {
                          return e <= t.width / 2;
                        }),
                        (r = function (e) {
                          return e >= l.width - t.width / 2;
                        })),
                      (o = function (e) {
                        return (
                          e + t.width + s.caretSize + s.caretPadding > l.width
                        );
                      }),
                      (a = function (e) {
                        return e - t.width - s.caretSize - s.caretPadding < 0;
                      }),
                      (i = function (e) {
                        return e <= p ? "top" : "bottom";
                      }),
                      n(s.x)
                        ? ((u = "left"),
                          o(s.x) && ((u = "center"), (d = i(s.y))))
                        : r(s.x) &&
                          ((u = "right"),
                          a(s.x) && ((u = "center"), (d = i(s.y))));
                    var f = e._options;
                    return {
                      xAlign: f.xAlign ? f.xAlign : u,
                      yAlign: f.yAlign ? f.yAlign : d,
                    };
                  })(this, b)),
                  d._chart
                ));
            } else f.opacity = 0;
            return (
              (f.xAlign = _.xAlign),
              (f.yAlign = _.yAlign),
              (f.x = v.x),
              (f.y = v.y),
              (f.width = b.width),
              (f.height = b.height),
              (f.caretX = y.x),
              (f.caretY = y.y),
              (d._model = f),
              e && h.custom && h.custom.call(d, f),
              d
            );
          },
          drawCaret: function (e, t) {
            var n = this._chart.ctx,
              r = this._view,
              o = this.getCaretPosition(e, t, r);
            n.lineTo(o.x1, o.y1), n.lineTo(o.x2, o.y2), n.lineTo(o.x3, o.y3);
          },
          getCaretPosition: function (e, t, n) {
            var r,
              o,
              a,
              i,
              s,
              l,
              c = n.caretSize,
              u = n.cornerRadius,
              d = n.xAlign,
              h = n.yAlign,
              p = e.x,
              f = e.y,
              m = t.width,
              g = t.height;
            if ("center" === h)
              (s = f + g / 2),
                "left" === d
                  ? ((o = (r = p) - c), (a = r), (i = s + c), (l = s - c))
                  : ((o = (r = p + m) + c), (a = r), (i = s - c), (l = s + c));
            else if (
              ("left" === d
                ? ((r = (o = p + u + c) - c), (a = o + c))
                : "right" === d
                ? ((r = (o = p + m - u - c) - c), (a = o + c))
                : ((r = (o = n.caretX) - c), (a = o + c)),
              "top" === h)
            )
              (s = (i = f) - c), (l = i);
            else {
              (s = (i = f + g) + c), (l = i);
              var _ = a;
              (a = r), (r = _);
            }
            return { x1: r, x2: o, x3: a, y1: i, y2: s, y3: l };
          },
          drawTitle: function (e, t, n) {
            var r,
              o,
              a,
              i = t.title,
              s = i.length;
            if (s) {
              var l = Nt(t.rtl, t.x, t.width);
              for (
                e.x = jt(t, t._titleAlign),
                  n.textAlign = l.textAlign(t._titleAlign),
                  n.textBaseline = "middle",
                  r = t.titleFontSize,
                  o = t.titleSpacing,
                  n.fillStyle = t.titleFontColor,
                  n.font = B.fontString(
                    r,
                    t._titleFontStyle,
                    t._titleFontFamily
                  ),
                  a = 0;
                a < s;
                ++a
              )
                n.fillText(i[a], l.x(e.x), e.y + r / 2),
                  (e.y += r + o),
                  a + 1 === s && (e.y += t.titleMarginBottom - o);
            }
          },
          drawBody: function (e, t, n) {
            var r,
              o,
              a,
              i,
              s,
              l,
              c,
              u,
              d = t.bodyFontSize,
              h = t.bodySpacing,
              p = t._bodyAlign,
              f = t.body,
              m = t.displayColors,
              g = 0,
              _ = m ? jt(t, "left") : 0,
              v = Nt(t.rtl, t.x, t.width),
              b = function (t) {
                n.fillText(t, v.x(e.x + g), e.y + d / 2), (e.y += d + h);
              },
              y = v.textAlign(p);
            for (
              n.textAlign = p,
                n.textBaseline = "middle",
                n.font = B.fontString(d, t._bodyFontStyle, t._bodyFontFamily),
                e.x = jt(t, y),
                n.fillStyle = t.bodyFontColor,
                B.each(t.beforeBody, b),
                g =
                  m && "right" !== y ? ("center" === p ? d / 2 + 1 : d + 2) : 0,
                s = 0,
                c = f.length;
              s < c;
              ++s
            ) {
              for (
                r = f[s],
                  o = t.labelTextColors[s],
                  a = t.labelColors[s],
                  n.fillStyle = o,
                  B.each(r.before, b),
                  l = 0,
                  u = (i = r.lines).length;
                l < u;
                ++l
              ) {
                if (m) {
                  var w = v.x(_);
                  (n.fillStyle = t.legendColorBackground),
                    n.fillRect(v.leftForLtr(w, d), e.y, d, d),
                    (n.lineWidth = 1),
                    (n.strokeStyle = a.borderColor),
                    n.strokeRect(v.leftForLtr(w, d), e.y, d, d),
                    (n.fillStyle = a.backgroundColor),
                    n.fillRect(
                      v.leftForLtr(v.xPlus(w, 1), d - 2),
                      e.y + 1,
                      d - 2,
                      d - 2
                    ),
                    (n.fillStyle = o);
                }
                b(i[l]);
              }
              B.each(r.after, b);
            }
            (g = 0), B.each(t.afterBody, b), (e.y -= h);
          },
          drawFooter: function (e, t, n) {
            var r,
              o,
              a = t.footer,
              i = a.length;
            if (i) {
              var s = Nt(t.rtl, t.x, t.width);
              for (
                e.x = jt(t, t._footerAlign),
                  e.y += t.footerMarginTop,
                  n.textAlign = s.textAlign(t._footerAlign),
                  n.textBaseline = "middle",
                  r = t.footerFontSize,
                  n.fillStyle = t.footerFontColor,
                  n.font = B.fontString(
                    r,
                    t._footerFontStyle,
                    t._footerFontFamily
                  ),
                  o = 0;
                o < i;
                ++o
              )
                n.fillText(a[o], s.x(e.x), e.y + r / 2),
                  (e.y += r + t.footerSpacing);
            }
          },
          drawBackground: function (e, t, n, r) {
            (n.fillStyle = t.backgroundColor),
              (n.strokeStyle = t.borderColor),
              (n.lineWidth = t.borderWidth);
            var o = t.xAlign,
              a = t.yAlign,
              i = e.x,
              s = e.y,
              l = r.width,
              c = r.height,
              u = t.cornerRadius;
            n.beginPath(),
              n.moveTo(i + u, s),
              "top" === a && this.drawCaret(e, r),
              n.lineTo(i + l - u, s),
              n.quadraticCurveTo(i + l, s, i + l, s + u),
              "center" === a && "right" === o && this.drawCaret(e, r),
              n.lineTo(i + l, s + c - u),
              n.quadraticCurveTo(i + l, s + c, i + l - u, s + c),
              "bottom" === a && this.drawCaret(e, r),
              n.lineTo(i + u, s + c),
              n.quadraticCurveTo(i, s + c, i, s + c - u),
              "center" === a && "left" === o && this.drawCaret(e, r),
              n.lineTo(i, s + u),
              n.quadraticCurveTo(i, s, i + u, s),
              n.closePath(),
              n.fill(),
              t.borderWidth > 0 && n.stroke();
          },
          draw: function () {
            var e = this._chart.ctx,
              t = this._view;
            if (0 !== t.opacity) {
              var n = { width: t.width, height: t.height },
                r = { x: t.x, y: t.y },
                o = Math.abs(t.opacity < 0.001) ? 0 : t.opacity,
                a =
                  t.title.length ||
                  t.beforeBody.length ||
                  t.body.length ||
                  t.afterBody.length ||
                  t.footer.length;
              this._options.enabled &&
                a &&
                (e.save(),
                (e.globalAlpha = o),
                this.drawBackground(r, t, e, n),
                (r.y += t.yPadding),
                B.rtl.overrideTextDirection(e, t.textDirection),
                this.drawTitle(r, t, e),
                this.drawBody(r, t, e),
                this.drawFooter(r, t, e),
                B.rtl.restoreTextDirection(e, t.textDirection),
                e.restore());
            }
          },
          handleEvent: function (e) {
            var t,
              n = this,
              r = n._options;
            return (
              (n._lastActive = n._lastActive || []),
              "mouseout" === e.type
                ? (n._active = [])
                : ((n._active = n._chart.getElementsAtEventForMode(
                    e,
                    r.mode,
                    r
                  )),
                  r.reverse && n._active.reverse()),
              (t = !B.arrayEquals(n._active, n._lastActive)) &&
                ((n._lastActive = n._active),
                (r.enabled || r.custom) &&
                  ((n._eventPosition = { x: e.x, y: e.y }),
                  n.update(!0),
                  n.pivot())),
              t
            );
          },
        }),
        zt = At,
        Bt = Ht;
      Bt.positioners = zt;
      var Ut = B.valueOrDefault;
      function Vt() {
        return B.merge(Object.create(null), [].slice.call(arguments), {
          merger: function (e, t, n, r) {
            if ("xAxes" === e || "yAxes" === e) {
              var o,
                a,
                i,
                s = n[e].length;
              for (t[e] || (t[e] = []), o = 0; o < s; ++o)
                (i = n[e][o]),
                  (a = Ut(i.type, "xAxes" === e ? "category" : "linear")),
                  o >= t[e].length && t[e].push({}),
                  !t[e][o].type || (i.type && i.type !== t[e][o].type)
                    ? B.merge(t[e][o], [Pt.getScaleDefaults(a), i])
                    : B.merge(t[e][o], i);
            } else B._merger(e, t, n, r);
          },
        });
      }
      function Wt() {
        return B.merge(Object.create(null), [].slice.call(arguments), {
          merger: function (e, t, n, r) {
            var o = t[e] || Object.create(null),
              a = n[e];
            "scales" === e
              ? (t[e] = Vt(o, a))
              : "scale" === e
              ? (t[e] = B.merge(o, [Pt.getScaleDefaults(a.type), a]))
              : B._merger(e, t, n, r);
          },
        });
      }
      function qt(e) {
        var t = e.options;
        B.each(e.scales, function (t) {
          mt.removeBox(e, t);
        }),
          (t = Wt(Y.global, Y[e.config.type], t)),
          (e.options = e.config.options = t),
          e.ensureScalesHaveIDs(),
          e.buildOrUpdateScales(),
          (e.tooltip._options = t.tooltips),
          e.tooltip.initialize();
      }
      function Gt(e, t, n) {
        var r,
          o = function (e) {
            return e.id === r;
          };
        do {
          r = t + n++;
        } while (B.findIndex(e, o) >= 0);
        return r;
      }
      function Jt(e) {
        return "top" === e || "bottom" === e;
      }
      function Kt(e, t) {
        return function (n, r) {
          return n[e] === r[e] ? n[t] - r[t] : n[e] - r[e];
        };
      }
      Y._set("global", {
        elements: {},
        events: ["mousemove", "mouseout", "click", "touchstart", "touchmove"],
        hover: {
          onHover: null,
          mode: "nearest",
          intersect: !0,
          animationDuration: 400,
        },
        onClick: null,
        maintainAspectRatio: !0,
        responsive: !0,
        responsiveAnimationDuration: 0,
      });
      var Qt = function (e, t) {
        return this.construct(e, t), this;
      };
      B.extend(Qt.prototype, {
        construct: function (e, t) {
          var n = this;
          t = (function (e) {
            var t = ((e = e || Object.create(null)).data = e.data || {});
            return (
              (t.datasets = t.datasets || []),
              (t.labels = t.labels || []),
              (e.options = Wt(Y.global, Y[e.type], e.options || {})),
              e
            );
          })(t);
          var r = Lt.acquireContext(e, t),
            o = r && r.canvas,
            a = o && o.height,
            i = o && o.width;
          (n.id = B.uid()),
            (n.ctx = r),
            (n.canvas = o),
            (n.config = t),
            (n.width = i),
            (n.height = a),
            (n.aspectRatio = a ? i / a : null),
            (n.options = t.options),
            (n._bufferedRender = !1),
            (n._layers = []),
            (n.chart = n),
            (n.controller = n),
            (Qt.instances[n.id] = n),
            Object.defineProperty(n, "data", {
              get: function () {
                return n.config.data;
              },
              set: function (e) {
                n.config.data = e;
              },
            }),
            r && o
              ? (n.initialize(), n.update())
              : console.error(
                  "Failed to create chart: can't acquire context from the given item"
                );
        },
        initialize: function () {
          var e = this;
          return (
            Ct.notify(e, "beforeInit"),
            B.retinaScale(e, e.options.devicePixelRatio),
            e.bindEvents(),
            e.options.responsive && e.resize(!0),
            e.initToolTip(),
            Ct.notify(e, "afterInit"),
            e
          );
        },
        clear: function () {
          return B.canvas.clear(this), this;
        },
        stop: function () {
          return $.cancelAnimation(this), this;
        },
        resize: function (e) {
          var t = this,
            n = t.options,
            r = t.canvas,
            o = (n.maintainAspectRatio && t.aspectRatio) || null,
            a = Math.max(0, Math.floor(B.getMaximumWidth(r))),
            i = Math.max(0, Math.floor(o ? a / o : B.getMaximumHeight(r)));
          if (
            (t.width !== a || t.height !== i) &&
            ((r.width = t.width = a),
            (r.height = t.height = i),
            (r.style.width = a + "px"),
            (r.style.height = i + "px"),
            B.retinaScale(t, n.devicePixelRatio),
            !e)
          ) {
            var s = { width: a, height: i };
            Ct.notify(t, "resize", [s]),
              n.onResize && n.onResize(t, s),
              t.stop(),
              t.update({ duration: n.responsiveAnimationDuration });
          }
        },
        ensureScalesHaveIDs: function () {
          var e = this.options,
            t = e.scales || {},
            n = e.scale;
          B.each(t.xAxes, function (e, n) {
            e.id || (e.id = Gt(t.xAxes, "x-axis-", n));
          }),
            B.each(t.yAxes, function (e, n) {
              e.id || (e.id = Gt(t.yAxes, "y-axis-", n));
            }),
            n && (n.id = n.id || "scale");
        },
        buildOrUpdateScales: function () {
          var e = this,
            t = e.options,
            n = e.scales || {},
            r = [],
            o = Object.keys(n).reduce(function (e, t) {
              return (e[t] = !1), e;
            }, {});
          t.scales &&
            (r = r.concat(
              (t.scales.xAxes || []).map(function (e) {
                return { options: e, dtype: "category", dposition: "bottom" };
              }),
              (t.scales.yAxes || []).map(function (e) {
                return { options: e, dtype: "linear", dposition: "left" };
              })
            )),
            t.scale &&
              r.push({
                options: t.scale,
                dtype: "radialLinear",
                isDefault: !0,
                dposition: "chartArea",
              }),
            B.each(r, function (t) {
              var r = t.options,
                a = r.id,
                i = Ut(r.type, t.dtype);
              Jt(r.position) !== Jt(t.dposition) && (r.position = t.dposition),
                (o[a] = !0);
              var s = null;
              if (a in n && n[a].type === i)
                ((s = n[a]).options = r), (s.ctx = e.ctx), (s.chart = e);
              else {
                var l = Pt.getScaleConstructor(i);
                if (!l) return;
                (s = new l({
                  id: a,
                  type: i,
                  options: r,
                  ctx: e.ctx,
                  chart: e,
                })),
                  (n[s.id] = s);
              }
              s.mergeTicksOptions(), t.isDefault && (e.scale = s);
            }),
            B.each(o, function (e, t) {
              e || delete n[t];
            }),
            (e.scales = n),
            Pt.addScalesToLayout(this);
        },
        buildOrUpdateControllers: function () {
          var e,
            t,
            n = this,
            r = [],
            o = n.data.datasets;
          for (e = 0, t = o.length; e < t; e++) {
            var a = o[e],
              i = n.getDatasetMeta(e),
              s = a.type || n.config.type;
            if (
              (i.type &&
                i.type !== s &&
                (n.destroyDatasetMeta(e), (i = n.getDatasetMeta(e))),
              (i.type = s),
              (i.order = a.order || 0),
              (i.index = e),
              i.controller)
            )
              i.controller.updateIndex(e), i.controller.linkScales();
            else {
              var l = $e[i.type];
              if (void 0 === l)
                throw new Error('"' + i.type + '" is not a chart type.');
              (i.controller = new l(n, e)), r.push(i.controller);
            }
          }
          return r;
        },
        resetElements: function () {
          var e = this;
          B.each(
            e.data.datasets,
            function (t, n) {
              e.getDatasetMeta(n).controller.reset();
            },
            e
          );
        },
        reset: function () {
          this.resetElements(), this.tooltip.initialize();
        },
        update: function (e) {
          var t,
            n,
            r = this;
          if (
            ((e && "object" == typeof e) ||
              (e = { duration: e, lazy: arguments[1] }),
            qt(r),
            Ct._invalidate(r),
            !1 !== Ct.notify(r, "beforeUpdate"))
          ) {
            r.tooltip._data = r.data;
            var o = r.buildOrUpdateControllers();
            for (t = 0, n = r.data.datasets.length; t < n; t++)
              r.getDatasetMeta(t).controller.buildOrUpdateElements();
            r.updateLayout(),
              r.options.animation &&
                r.options.animation.duration &&
                B.each(o, function (e) {
                  e.reset();
                }),
              r.updateDatasets(),
              r.tooltip.initialize(),
              (r.lastActive = []),
              Ct.notify(r, "afterUpdate"),
              r._layers.sort(Kt("z", "_idx")),
              r._bufferedRender
                ? (r._bufferedRequest = {
                    duration: e.duration,
                    easing: e.easing,
                    lazy: e.lazy,
                  })
                : r.render(e);
          }
        },
        updateLayout: function () {
          var e = this;
          !1 !== Ct.notify(e, "beforeLayout") &&
            (mt.update(this, this.width, this.height),
            (e._layers = []),
            B.each(
              e.boxes,
              function (t) {
                t._configure && t._configure(),
                  e._layers.push.apply(e._layers, t._layers());
              },
              e
            ),
            e._layers.forEach(function (e, t) {
              e._idx = t;
            }),
            Ct.notify(e, "afterScaleUpdate"),
            Ct.notify(e, "afterLayout"));
        },
        updateDatasets: function () {
          if (!1 !== Ct.notify(this, "beforeDatasetsUpdate")) {
            for (var e = 0, t = this.data.datasets.length; e < t; ++e)
              this.updateDataset(e);
            Ct.notify(this, "afterDatasetsUpdate");
          }
        },
        updateDataset: function (e) {
          var t = this.getDatasetMeta(e),
            n = { meta: t, index: e };
          !1 !== Ct.notify(this, "beforeDatasetUpdate", [n]) &&
            (t.controller._update(),
            Ct.notify(this, "afterDatasetUpdate", [n]));
        },
        render: function (e) {
          var t = this;
          (e && "object" == typeof e) ||
            (e = { duration: e, lazy: arguments[1] });
          var n = t.options.animation,
            r = Ut(e.duration, n && n.duration),
            o = e.lazy;
          if (!1 !== Ct.notify(t, "beforeRender")) {
            var a = function (e) {
              Ct.notify(t, "afterRender"),
                B.callback(n && n.onComplete, [e], t);
            };
            if (n && r) {
              var i = new X({
                numSteps: r / 16.66,
                easing: e.easing || n.easing,
                render: function (e, t) {
                  var n = B.easing.effects[t.easing],
                    r = t.currentStep,
                    o = r / t.numSteps;
                  e.draw(n(o), o, r);
                },
                onAnimationProgress: n.onProgress,
                onAnimationComplete: a,
              });
              $.addAnimation(t, i, r, o);
            } else t.draw(), a(new X({ numSteps: 0, chart: t }));
            return t;
          }
        },
        draw: function (e) {
          var t,
            n,
            r = this;
          if (
            (r.clear(),
            B.isNullOrUndef(e) && (e = 1),
            r.transition(e),
            !(r.width <= 0 || r.height <= 0) &&
              !1 !== Ct.notify(r, "beforeDraw", [e]))
          ) {
            for (n = r._layers, t = 0; t < n.length && n[t].z <= 0; ++t)
              n[t].draw(r.chartArea);
            for (r.drawDatasets(e); t < n.length; ++t) n[t].draw(r.chartArea);
            r._drawTooltip(e), Ct.notify(r, "afterDraw", [e]);
          }
        },
        transition: function (e) {
          for (var t = 0, n = (this.data.datasets || []).length; t < n; ++t)
            this.isDatasetVisible(t) &&
              this.getDatasetMeta(t).controller.transition(e);
          this.tooltip.transition(e);
        },
        _getSortedDatasetMetas: function (e) {
          var t,
            n,
            r = [];
          for (t = 0, n = (this.data.datasets || []).length; t < n; ++t)
            (e && !this.isDatasetVisible(t)) || r.push(this.getDatasetMeta(t));
          return r.sort(Kt("order", "index")), r;
        },
        _getSortedVisibleDatasetMetas: function () {
          return this._getSortedDatasetMetas(!0);
        },
        drawDatasets: function (e) {
          var t, n;
          if (!1 !== Ct.notify(this, "beforeDatasetsDraw", [e])) {
            for (
              n = (t = this._getSortedVisibleDatasetMetas()).length - 1;
              n >= 0;
              --n
            )
              this.drawDataset(t[n], e);
            Ct.notify(this, "afterDatasetsDraw", [e]);
          }
        },
        drawDataset: function (e, t) {
          var n = { meta: e, index: e.index, easingValue: t };
          !1 !== Ct.notify(this, "beforeDatasetDraw", [n]) &&
            (e.controller.draw(t), Ct.notify(this, "afterDatasetDraw", [n]));
        },
        _drawTooltip: function (e) {
          var t = this.tooltip,
            n = { tooltip: t, easingValue: e };
          !1 !== Ct.notify(this, "beforeTooltipDraw", [n]) &&
            (t.draw(), Ct.notify(this, "afterTooltipDraw", [n]));
        },
        getElementAtEvent: function (e) {
          return at.modes.single(this, e);
        },
        getElementsAtEvent: function (e) {
          return at.modes.label(this, e, { intersect: !0 });
        },
        getElementsAtXAxis: function (e) {
          return at.modes["x-axis"](this, e, { intersect: !0 });
        },
        getElementsAtEventForMode: function (e, t, n) {
          var r = at.modes[t];
          return "function" == typeof r ? r(this, e, n) : [];
        },
        getDatasetAtEvent: function (e) {
          return at.modes.dataset(this, e, { intersect: !0 });
        },
        getDatasetMeta: function (e) {
          var t = this.data.datasets[e];
          t._meta || (t._meta = {});
          var n = t._meta[this.id];
          return (
            n ||
              (n = t._meta[this.id] = {
                type: null,
                data: [],
                dataset: null,
                controller: null,
                hidden: null,
                xAxisID: null,
                yAxisID: null,
                order: t.order || 0,
                index: e,
              }),
            n
          );
        },
        getVisibleDatasetCount: function () {
          for (var e = 0, t = 0, n = this.data.datasets.length; t < n; ++t)
            this.isDatasetVisible(t) && e++;
          return e;
        },
        isDatasetVisible: function (e) {
          var t = this.getDatasetMeta(e);
          return "boolean" == typeof t.hidden
            ? !t.hidden
            : !this.data.datasets[e].hidden;
        },
        generateLegend: function () {
          return this.options.legendCallback(this);
        },
        destroyDatasetMeta: function (e) {
          var t = this.id,
            n = this.data.datasets[e],
            r = n._meta && n._meta[t];
          r && (r.controller.destroy(), delete n._meta[t]);
        },
        destroy: function () {
          var e,
            t,
            n = this,
            r = n.canvas;
          for (n.stop(), e = 0, t = n.data.datasets.length; e < t; ++e)
            n.destroyDatasetMeta(e);
          r &&
            (n.unbindEvents(),
            B.canvas.clear(n),
            Lt.releaseContext(n.ctx),
            (n.canvas = null),
            (n.ctx = null)),
            Ct.notify(n, "destroy"),
            delete Qt.instances[n.id];
        },
        toBase64Image: function () {
          return this.canvas.toDataURL.apply(this.canvas, arguments);
        },
        initToolTip: function () {
          var e = this;
          e.tooltip = new Bt(
            {
              _chart: e,
              _chartInstance: e,
              _data: e.data,
              _options: e.options.tooltips,
            },
            e
          );
        },
        bindEvents: function () {
          var e = this,
            t = (e._listeners = {}),
            n = function () {
              e.eventHandler.apply(e, arguments);
            };
          B.each(e.options.events, function (r) {
            Lt.addEventListener(e, r, n), (t[r] = n);
          }),
            e.options.responsive &&
              ((n = function () {
                e.resize();
              }),
              Lt.addEventListener(e, "resize", n),
              (t.resize = n));
        },
        unbindEvents: function () {
          var e = this,
            t = e._listeners;
          t &&
            (delete e._listeners,
            B.each(t, function (t, n) {
              Lt.removeEventListener(e, n, t);
            }));
        },
        updateHoverStyle: function (e, t, n) {
          var r,
            o,
            a,
            i = n ? "set" : "remove";
          for (o = 0, a = e.length; o < a; ++o)
            (r = e[o]) &&
              this.getDatasetMeta(r._datasetIndex).controller[i + "HoverStyle"](
                r
              );
          "dataset" === t &&
            this.getDatasetMeta(e[0]._datasetIndex).controller[
              "_" + i + "DatasetHoverStyle"
            ]();
        },
        eventHandler: function (e) {
          var t = this,
            n = t.tooltip;
          if (!1 !== Ct.notify(t, "beforeEvent", [e])) {
            (t._bufferedRender = !0), (t._bufferedRequest = null);
            var r = t.handleEvent(e);
            n && (r = n._start ? n.handleEvent(e) : r | n.handleEvent(e)),
              Ct.notify(t, "afterEvent", [e]);
            var o = t._bufferedRequest;
            return (
              o
                ? t.render(o)
                : r &&
                  !t.animating &&
                  (t.stop(),
                  t.render({
                    duration: t.options.hover.animationDuration,
                    lazy: !0,
                  })),
              (t._bufferedRender = !1),
              (t._bufferedRequest = null),
              t
            );
          }
        },
        handleEvent: function (e) {
          var t,
            n = this,
            r = n.options || {},
            o = r.hover;
          return (
            (n.lastActive = n.lastActive || []),
            "mouseout" === e.type
              ? (n.active = [])
              : (n.active = n.getElementsAtEventForMode(e, o.mode, o)),
            B.callback(r.onHover || r.hover.onHover, [e.native, n.active], n),
            ("mouseup" !== e.type && "click" !== e.type) ||
              (r.onClick && r.onClick.call(n, e.native, n.active)),
            n.lastActive.length && n.updateHoverStyle(n.lastActive, o.mode, !1),
            n.active.length &&
              o.mode &&
              n.updateHoverStyle(n.active, o.mode, !0),
            (t = !B.arrayEquals(n.active, n.lastActive)),
            (n.lastActive = n.active),
            t
          );
        },
      }),
        (Qt.instances = {});
      var Xt = Qt;
      function $t() {
        throw new Error(
          "This method is not implemented: either no adapter can be found or an incomplete integration was provided."
        );
      }
      function Zt(e) {
        this.options = e || {};
      }
      (Qt.Controller = Qt),
        (Qt.types = {}),
        (B.configMerge = Wt),
        (B.scaleMerge = Vt),
        B.extend(Zt.prototype, {
          formats: $t,
          parse: $t,
          format: $t,
          add: $t,
          diff: $t,
          startOf: $t,
          endOf: $t,
          _create: function (e) {
            return e;
          },
        }),
        (Zt.override = function (e) {
          B.extend(Zt.prototype, e);
        });
      var en = { _date: Zt },
        tn = {
          formatters: {
            values: function (e) {
              return B.isArray(e) ? e : "" + e;
            },
            linear: function (e, t, n) {
              var r = n.length > 3 ? n[2] - n[1] : n[1] - n[0];
              Math.abs(r) > 1 && e !== Math.floor(e) && (r = e - Math.floor(e));
              var o = B.log10(Math.abs(r)),
                a = "";
              if (0 !== e)
                if (
                  Math.max(Math.abs(n[0]), Math.abs(n[n.length - 1])) < 1e-4
                ) {
                  var i = B.log10(Math.abs(e)),
                    s = Math.floor(i) - Math.floor(o);
                  (s = Math.max(Math.min(s, 20), 0)), (a = e.toExponential(s));
                } else {
                  var l = -1 * Math.floor(o);
                  (l = Math.max(Math.min(l, 20), 0)), (a = e.toFixed(l));
                }
              else a = "0";
              return a;
            },
            logarithmic: function (e, t, n) {
              var r = e / Math.pow(10, Math.floor(B.log10(e)));
              return 0 === e
                ? "0"
                : 1 === r || 2 === r || 5 === r || 0 === t || t === n.length - 1
                ? e.toExponential()
                : "";
            },
          },
        },
        nn = B.isArray,
        rn = B.isNullOrUndef,
        on = B.valueOrDefault,
        an = B.valueAtIndexOrDefault;
      function sn(e, t, n) {
        var r,
          o = e.getTicks().length,
          a = Math.min(t, o - 1),
          i = e.getPixelForTick(a),
          s = e._startPixel,
          l = e._endPixel;
        if (
          !(
            n &&
            ((r =
              1 === o
                ? Math.max(i - s, l - i)
                : 0 === t
                ? (e.getPixelForTick(1) - i) / 2
                : (i - e.getPixelForTick(a - 1)) / 2),
            (i += a < t ? r : -r) < s - 1e-6 || i > l + 1e-6)
          )
        )
          return i;
      }
      function ln(e, t, n, r) {
        var o,
          a,
          i,
          s,
          l,
          c,
          u,
          d,
          h,
          p,
          f,
          m,
          g,
          _ = n.length,
          v = [],
          b = [],
          y = [],
          w = 0,
          k = 0;
        for (o = 0; o < _; ++o) {
          if (
            ((s = n[o].label),
            (l = n[o].major ? t.major : t.minor),
            (e.font = c = l.string),
            (u = r[c] = r[c] || { data: {}, gc: [] }),
            (d = l.lineHeight),
            (h = p = 0),
            rn(s) || nn(s))
          ) {
            if (nn(s))
              for (a = 0, i = s.length; a < i; ++a)
                (f = s[a]),
                  rn(f) ||
                    nn(f) ||
                    ((h = B.measureText(e, u.data, u.gc, h, f)), (p += d));
          } else (h = B.measureText(e, u.data, u.gc, h, s)), (p = d);
          v.push(h),
            b.push(p),
            y.push(d / 2),
            (w = Math.max(h, w)),
            (k = Math.max(p, k));
        }
        function x(e) {
          return { width: v[e] || 0, height: b[e] || 0, offset: y[e] || 0 };
        }
        return (
          (function (e, t) {
            B.each(e, function (e) {
              var n,
                r = e.gc,
                o = r.length / 2;
              if (o > t) {
                for (n = 0; n < o; ++n) delete e.data[r[n]];
                r.splice(0, o);
              }
            });
          })(r, _),
          (m = v.indexOf(w)),
          (g = b.indexOf(k)),
          { first: x(0), last: x(_ - 1), widest: x(m), highest: x(g) }
        );
      }
      function cn(e) {
        return e.drawTicks ? e.tickMarkLength : 0;
      }
      function un(e) {
        var t, n;
        return e.display
          ? ((t = B.options._parseFont(e)),
            (n = B.options.toPadding(e.padding)),
            t.lineHeight + n.height)
          : 0;
      }
      function dn(e, t) {
        return B.extend(
          B.options._parseFont({
            fontFamily: on(t.fontFamily, e.fontFamily),
            fontSize: on(t.fontSize, e.fontSize),
            fontStyle: on(t.fontStyle, e.fontStyle),
            lineHeight: on(t.lineHeight, e.lineHeight),
          }),
          {
            color: B.options.resolve([
              t.fontColor,
              e.fontColor,
              Y.global.defaultFontColor,
            ]),
          }
        );
      }
      function hn(e) {
        var t = dn(e, e.minor);
        return { minor: t, major: e.major.enabled ? dn(e, e.major) : t };
      }
      function pn(e) {
        var t,
          n,
          r,
          o = [];
        for (n = 0, r = e.length; n < r; ++n)
          void 0 !== (t = e[n])._index && o.push(t);
        return o;
      }
      function fn(e, t, n, r) {
        var o,
          a,
          i,
          s,
          l = on(n, 0),
          c = Math.min(on(r, e.length), e.length),
          u = 0;
        for (
          t = Math.ceil(t), r && (t = (o = r - n) / Math.floor(o / t)), s = l;
          s < 0;

        )
          u++, (s = Math.round(l + u * t));
        for (a = Math.max(l, 0); a < c; a++)
          (i = e[a]),
            a === s
              ? ((i._index = a), u++, (s = Math.round(l + u * t)))
              : delete i.label;
      }
      Y._set("scale", {
        display: !0,
        position: "left",
        offset: !1,
        gridLines: {
          display: !0,
          color: "rgba(0,0,0,0.1)",
          lineWidth: 1,
          drawBorder: !0,
          drawOnChartArea: !0,
          drawTicks: !0,
          tickMarkLength: 10,
          zeroLineWidth: 1,
          zeroLineColor: "rgba(0,0,0,0.25)",
          zeroLineBorderDash: [],
          zeroLineBorderDashOffset: 0,
          offsetGridLines: !1,
          borderDash: [],
          borderDashOffset: 0,
        },
        scaleLabel: {
          display: !1,
          labelString: "",
          padding: { top: 4, bottom: 4 },
        },
        ticks: {
          beginAtZero: !1,
          minRotation: 0,
          maxRotation: 50,
          mirror: !1,
          padding: 0,
          reverse: !1,
          display: !0,
          autoSkip: !0,
          autoSkipPadding: 0,
          labelOffset: 0,
          callback: tn.formatters.values,
          minor: {},
          major: {},
        },
      });
      var mn = K.extend({
        zeroLineIndex: 0,
        getPadding: function () {
          return {
            left: this.paddingLeft || 0,
            top: this.paddingTop || 0,
            right: this.paddingRight || 0,
            bottom: this.paddingBottom || 0,
          };
        },
        getTicks: function () {
          return this._ticks;
        },
        _getLabels: function () {
          var e = this.chart.data;
          return (
            this.options.labels ||
            (this.isHorizontal() ? e.xLabels : e.yLabels) ||
            e.labels ||
            []
          );
        },
        mergeTicksOptions: function () {},
        beforeUpdate: function () {
          B.callback(this.options.beforeUpdate, [this]);
        },
        update: function (e, t, n) {
          var r,
            o,
            a,
            i,
            s,
            l = this,
            c = l.options.ticks,
            u = c.sampleSize;
          if (
            (l.beforeUpdate(),
            (l.maxWidth = e),
            (l.maxHeight = t),
            (l.margins = B.extend({ left: 0, right: 0, top: 0, bottom: 0 }, n)),
            (l._ticks = null),
            (l.ticks = null),
            (l._labelSizes = null),
            (l._maxLabelLines = 0),
            (l.longestLabelWidth = 0),
            (l.longestTextCache = l.longestTextCache || {}),
            (l._gridLineItems = null),
            (l._labelItems = null),
            l.beforeSetDimensions(),
            l.setDimensions(),
            l.afterSetDimensions(),
            l.beforeDataLimits(),
            l.determineDataLimits(),
            l.afterDataLimits(),
            l.beforeBuildTicks(),
            (i = l.buildTicks() || []),
            (!(i = l.afterBuildTicks(i) || i) || !i.length) && l.ticks)
          )
            for (i = [], r = 0, o = l.ticks.length; r < o; ++r)
              i.push({ value: l.ticks[r], major: !1 });
          return (
            (l._ticks = i),
            (s = u < i.length),
            (a = l._convertTicksToLabels(
              s
                ? (function (e, t) {
                    for (
                      var n = [], r = e.length / t, o = 0, a = e.length;
                      o < a;
                      o += r
                    )
                      n.push(e[Math.floor(o)]);
                    return n;
                  })(i, u)
                : i
            )),
            l._configure(),
            l.beforeCalculateTickRotation(),
            l.calculateTickRotation(),
            l.afterCalculateTickRotation(),
            l.beforeFit(),
            l.fit(),
            l.afterFit(),
            (l._ticksToDraw =
              c.display && (c.autoSkip || "auto" === c.source)
                ? l._autoSkip(i)
                : i),
            s && (a = l._convertTicksToLabels(l._ticksToDraw)),
            (l.ticks = a),
            l.afterUpdate(),
            l.minSize
          );
        },
        _configure: function () {
          var e,
            t,
            n = this,
            r = n.options.ticks.reverse;
          n.isHorizontal()
            ? ((e = n.left), (t = n.right))
            : ((e = n.top), (t = n.bottom), (r = !r)),
            (n._startPixel = e),
            (n._endPixel = t),
            (n._reversePixels = r),
            (n._length = t - e);
        },
        afterUpdate: function () {
          B.callback(this.options.afterUpdate, [this]);
        },
        beforeSetDimensions: function () {
          B.callback(this.options.beforeSetDimensions, [this]);
        },
        setDimensions: function () {
          var e = this;
          e.isHorizontal()
            ? ((e.width = e.maxWidth), (e.left = 0), (e.right = e.width))
            : ((e.height = e.maxHeight), (e.top = 0), (e.bottom = e.height)),
            (e.paddingLeft = 0),
            (e.paddingTop = 0),
            (e.paddingRight = 0),
            (e.paddingBottom = 0);
        },
        afterSetDimensions: function () {
          B.callback(this.options.afterSetDimensions, [this]);
        },
        beforeDataLimits: function () {
          B.callback(this.options.beforeDataLimits, [this]);
        },
        determineDataLimits: B.noop,
        afterDataLimits: function () {
          B.callback(this.options.afterDataLimits, [this]);
        },
        beforeBuildTicks: function () {
          B.callback(this.options.beforeBuildTicks, [this]);
        },
        buildTicks: B.noop,
        afterBuildTicks: function (e) {
          var t = this;
          return nn(e) && e.length
            ? B.callback(t.options.afterBuildTicks, [t, e])
            : ((t.ticks =
                B.callback(t.options.afterBuildTicks, [t, t.ticks]) || t.ticks),
              e);
        },
        beforeTickToLabelConversion: function () {
          B.callback(this.options.beforeTickToLabelConversion, [this]);
        },
        convertTicksToLabels: function () {
          var e = this.options.ticks;
          this.ticks = this.ticks.map(e.userCallback || e.callback, this);
        },
        afterTickToLabelConversion: function () {
          B.callback(this.options.afterTickToLabelConversion, [this]);
        },
        beforeCalculateTickRotation: function () {
          B.callback(this.options.beforeCalculateTickRotation, [this]);
        },
        calculateTickRotation: function () {
          var e,
            t,
            n,
            r,
            o,
            a,
            i,
            s = this,
            l = s.options,
            c = l.ticks,
            u = s.getTicks().length,
            d = c.minRotation || 0,
            h = c.maxRotation,
            p = d;
          !s._isVisible() || !c.display || d >= h || u <= 1 || !s.isHorizontal()
            ? (s.labelRotation = d)
            : ((t = (e = s._getLabelSizes()).widest.width),
              (n = e.highest.height - e.highest.offset),
              (r = Math.min(s.maxWidth, s.chart.width - t)),
              t + 6 > (o = l.offset ? s.maxWidth / u : r / (u - 1)) &&
                ((o = r / (u - (l.offset ? 0.5 : 1))),
                (a =
                  s.maxHeight - cn(l.gridLines) - c.padding - un(l.scaleLabel)),
                (i = Math.sqrt(t * t + n * n)),
                (p = B.toDegrees(
                  Math.min(
                    Math.asin(Math.min((e.highest.height + 6) / o, 1)),
                    Math.asin(Math.min(a / i, 1)) - Math.asin(n / i)
                  )
                )),
                (p = Math.max(d, Math.min(h, p)))),
              (s.labelRotation = p));
        },
        afterCalculateTickRotation: function () {
          B.callback(this.options.afterCalculateTickRotation, [this]);
        },
        beforeFit: function () {
          B.callback(this.options.beforeFit, [this]);
        },
        fit: function () {
          var e = this,
            t = (e.minSize = { width: 0, height: 0 }),
            n = e.chart,
            r = e.options,
            o = r.ticks,
            a = r.scaleLabel,
            i = r.gridLines,
            s = e._isVisible(),
            l = "bottom" === r.position,
            c = e.isHorizontal();
          if (
            (c ? (t.width = e.maxWidth) : s && (t.width = cn(i) + un(a)),
            c ? s && (t.height = cn(i) + un(a)) : (t.height = e.maxHeight),
            o.display && s)
          ) {
            var u = hn(o),
              d = e._getLabelSizes(),
              h = d.first,
              p = d.last,
              f = d.widest,
              m = d.highest,
              g = 0.4 * u.minor.lineHeight,
              _ = o.padding;
            if (c) {
              var v = 0 !== e.labelRotation,
                b = B.toRadians(e.labelRotation),
                y = Math.cos(b),
                w = Math.sin(b),
                k =
                  w * f.width +
                  y * (m.height - (v ? m.offset : 0)) +
                  (v ? 0 : g);
              t.height = Math.min(e.maxHeight, t.height + k + _);
              var x,
                M,
                E = e.getPixelForTick(0) - e.left,
                T = e.right - e.getPixelForTick(e.getTicks().length - 1);
              v
                ? ((x = l
                    ? y * h.width + w * h.offset
                    : w * (h.height - h.offset)),
                  (M = l
                    ? w * (p.height - p.offset)
                    : y * p.width + w * p.offset))
                : ((x = h.width / 2), (M = p.width / 2)),
                (e.paddingLeft =
                  Math.max(((x - E) * e.width) / (e.width - E), 0) + 3),
                (e.paddingRight =
                  Math.max(((M - T) * e.width) / (e.width - T), 0) + 3);
            } else {
              var S = o.mirror ? 0 : f.width + _ + g;
              (t.width = Math.min(e.maxWidth, t.width + S)),
                (e.paddingTop = h.height / 2),
                (e.paddingBottom = p.height / 2);
            }
          }
          e.handleMargins(),
            c
              ? ((e.width = e._length =
                  n.width - e.margins.left - e.margins.right),
                (e.height = t.height))
              : ((e.width = t.width),
                (e.height = e._length =
                  n.height - e.margins.top - e.margins.bottom));
        },
        handleMargins: function () {
          var e = this;
          e.margins &&
            ((e.margins.left = Math.max(e.paddingLeft, e.margins.left)),
            (e.margins.top = Math.max(e.paddingTop, e.margins.top)),
            (e.margins.right = Math.max(e.paddingRight, e.margins.right)),
            (e.margins.bottom = Math.max(e.paddingBottom, e.margins.bottom)));
        },
        afterFit: function () {
          B.callback(this.options.afterFit, [this]);
        },
        isHorizontal: function () {
          var e = this.options.position;
          return "top" === e || "bottom" === e;
        },
        isFullWidth: function () {
          return this.options.fullWidth;
        },
        getRightValue: function (e) {
          if (rn(e)) return NaN;
          if (("number" == typeof e || e instanceof Number) && !isFinite(e))
            return NaN;
          if (e)
            if (this.isHorizontal()) {
              if (void 0 !== e.x) return this.getRightValue(e.x);
            } else if (void 0 !== e.y) return this.getRightValue(e.y);
          return e;
        },
        _convertTicksToLabels: function (e) {
          var t,
            n,
            r,
            o = this;
          for (
            o.ticks = e.map(function (e) {
              return e.value;
            }),
              o.beforeTickToLabelConversion(),
              t = o.convertTicksToLabels(e) || o.ticks,
              o.afterTickToLabelConversion(),
              n = 0,
              r = e.length;
            n < r;
            ++n
          )
            e[n].label = t[n];
          return t;
        },
        _getLabelSizes: function () {
          var e = this,
            t = e._labelSizes;
          return (
            t ||
              ((e._labelSizes = t = ln(
                e.ctx,
                hn(e.options.ticks),
                e.getTicks(),
                e.longestTextCache
              )),
              (e.longestLabelWidth = t.widest.width)),
            t
          );
        },
        _parseValue: function (e) {
          var t, n, r, o;
          return (
            nn(e)
              ? ((t = +this.getRightValue(e[0])),
                (n = +this.getRightValue(e[1])),
                (r = Math.min(t, n)),
                (o = Math.max(t, n)))
              : ((t = void 0),
                (n = e = +this.getRightValue(e)),
                (r = e),
                (o = e)),
            { min: r, max: o, start: t, end: n }
          );
        },
        _getScaleLabel: function (e) {
          var t = this._parseValue(e);
          return void 0 !== t.start
            ? "[" + t.start + ", " + t.end + "]"
            : +this.getRightValue(e);
        },
        getLabelForIndex: B.noop,
        getPixelForValue: B.noop,
        getValueForPixel: B.noop,
        getPixelForTick: function (e) {
          var t = this.options.offset,
            n = this._ticks.length,
            r = 1 / Math.max(n - (t ? 0 : 1), 1);
          return e < 0 || e > n - 1
            ? null
            : this.getPixelForDecimal(e * r + (t ? r / 2 : 0));
        },
        getPixelForDecimal: function (e) {
          return (
            this._reversePixels && (e = 1 - e),
            this._startPixel + e * this._length
          );
        },
        getDecimalForPixel: function (e) {
          var t = (e - this._startPixel) / this._length;
          return this._reversePixels ? 1 - t : t;
        },
        getBasePixel: function () {
          return this.getPixelForValue(this.getBaseValue());
        },
        getBaseValue: function () {
          var e = this.min,
            t = this.max;
          return this.beginAtZero
            ? 0
            : e < 0 && t < 0
            ? t
            : e > 0 && t > 0
            ? e
            : 0;
        },
        _autoSkip: function (e) {
          var t,
            n,
            r,
            o,
            a = this.options.ticks,
            i = this._length,
            s = a.maxTicksLimit || i / this._tickSize() + 1,
            l = a.major.enabled
              ? (function (e) {
                  var t,
                    n,
                    r = [];
                  for (t = 0, n = e.length; t < n; t++) e[t].major && r.push(t);
                  return r;
                })(e)
              : [],
            c = l.length,
            u = l[0],
            d = l[c - 1];
          if (c > s)
            return (
              (function (e, t, n) {
                var r,
                  o,
                  a = 0,
                  i = t[0];
                for (n = Math.ceil(n), r = 0; r < e.length; r++)
                  (o = e[r]),
                    r === i
                      ? ((o._index = r), (i = t[++a * n]))
                      : delete o.label;
              })(e, l, c / s),
              pn(e)
            );
          if (
            ((r = (function (e, t, n, r) {
              var o,
                a,
                i,
                s,
                l = (function (e) {
                  var t,
                    n,
                    r = e.length;
                  if (r < 2) return !1;
                  for (n = e[0], t = 1; t < r; ++t)
                    if (e[t] - e[t - 1] !== n) return !1;
                  return n;
                })(e),
                c = (t.length - 1) / r;
              if (!l) return Math.max(c, 1);
              for (i = 0, s = (o = B.math._factorize(l)).length - 1; i < s; i++)
                if ((a = o[i]) > c) return a;
              return Math.max(c, 1);
            })(l, e, 0, s)),
            c > 0)
          ) {
            for (t = 0, n = c - 1; t < n; t++) fn(e, r, l[t], l[t + 1]);
            return (
              (o = c > 1 ? (d - u) / (c - 1) : null),
              fn(e, r, B.isNullOrUndef(o) ? 0 : u - o, u),
              fn(e, r, d, B.isNullOrUndef(o) ? e.length : d + o),
              pn(e)
            );
          }
          return fn(e, r), pn(e);
        },
        _tickSize: function () {
          var e = this.options.ticks,
            t = B.toRadians(this.labelRotation),
            n = Math.abs(Math.cos(t)),
            r = Math.abs(Math.sin(t)),
            o = this._getLabelSizes(),
            a = e.autoSkipPadding || 0,
            i = o ? o.widest.width + a : 0,
            s = o ? o.highest.height + a : 0;
          return this.isHorizontal()
            ? s * n > i * r
              ? i / n
              : s / r
            : s * r < i * n
            ? s / n
            : i / r;
        },
        _isVisible: function () {
          var e,
            t,
            n,
            r = this.chart,
            o = this.options.display;
          if ("auto" !== o) return !!o;
          for (e = 0, t = r.data.datasets.length; e < t; ++e)
            if (
              r.isDatasetVisible(e) &&
              ((n = r.getDatasetMeta(e)).xAxisID === this.id ||
                n.yAxisID === this.id)
            )
              return !0;
          return !1;
        },
        _computeGridLineItems: function (e) {
          var t,
            n,
            r,
            o,
            a,
            i,
            s,
            l,
            c,
            u,
            d,
            h,
            p,
            f,
            m,
            g,
            _,
            v = this,
            b = v.chart,
            y = v.options,
            w = y.gridLines,
            k = y.position,
            x = w.offsetGridLines,
            M = v.isHorizontal(),
            E = v._ticksToDraw,
            T = E.length + (x ? 1 : 0),
            S = cn(w),
            D = [],
            L = w.drawBorder ? an(w.lineWidth, 0, 0) : 0,
            C = L / 2,
            P = B._alignPixel,
            O = function (e) {
              return P(b, e, L);
            };
          for (
            "top" === k
              ? ((t = O(v.bottom)),
                (s = v.bottom - S),
                (c = t - C),
                (d = O(e.top) + C),
                (p = e.bottom))
              : "bottom" === k
              ? ((t = O(v.top)),
                (d = e.top),
                (p = O(e.bottom) - C),
                (s = t + C),
                (c = v.top + S))
              : "left" === k
              ? ((t = O(v.right)),
                (i = v.right - S),
                (l = t - C),
                (u = O(e.left) + C),
                (h = e.right))
              : ((t = O(v.left)),
                (u = e.left),
                (h = O(e.right) - C),
                (i = t + C),
                (l = v.left + S)),
              n = 0;
            n < T;
            ++n
          )
            (r = E[n] || {}),
              (rn(r.label) && n < E.length) ||
                (n === v.zeroLineIndex && y.offset === x
                  ? ((f = w.zeroLineWidth),
                    (m = w.zeroLineColor),
                    (g = w.zeroLineBorderDash || []),
                    (_ = w.zeroLineBorderDashOffset || 0))
                  : ((f = an(w.lineWidth, n, 1)),
                    (m = an(w.color, n, "rgba(0,0,0,0.1)")),
                    (g = w.borderDash || []),
                    (_ = w.borderDashOffset || 0)),
                void 0 !== (o = sn(v, r._index || n, x)) &&
                  ((a = P(b, o, f)),
                  M ? (i = l = u = h = a) : (s = c = d = p = a),
                  D.push({
                    tx1: i,
                    ty1: s,
                    tx2: l,
                    ty2: c,
                    x1: u,
                    y1: d,
                    x2: h,
                    y2: p,
                    width: f,
                    color: m,
                    borderDash: g,
                    borderDashOffset: _,
                  })));
          return (D.ticksLength = T), (D.borderValue = t), D;
        },
        _computeLabelItems: function () {
          var e,
            t,
            n,
            r,
            o,
            a,
            i,
            s,
            l,
            c,
            u,
            d,
            h = this,
            p = h.options,
            f = p.ticks,
            m = p.position,
            g = f.mirror,
            _ = h.isHorizontal(),
            v = h._ticksToDraw,
            b = hn(f),
            y = f.padding,
            w = cn(p.gridLines),
            k = -B.toRadians(h.labelRotation),
            x = [];
          for (
            "top" === m
              ? ((a = h.bottom - w - y), (i = k ? "left" : "center"))
              : "bottom" === m
              ? ((a = h.top + w + y), (i = k ? "right" : "center"))
              : "left" === m
              ? ((o = h.right - (g ? 0 : w) - y), (i = g ? "left" : "right"))
              : ((o = h.left + (g ? 0 : w) + y), (i = g ? "right" : "left")),
              e = 0,
              t = v.length;
            e < t;
            ++e
          )
            (r = (n = v[e]).label),
              rn(r) ||
                ((s = h.getPixelForTick(n._index || e) + f.labelOffset),
                (c = (l = n.major ? b.major : b.minor).lineHeight),
                (u = nn(r) ? r.length : 1),
                _
                  ? ((o = s),
                    (d =
                      "top" === m
                        ? ((k ? 1 : 0.5) - u) * c
                        : (k ? 0 : 0.5) * c))
                  : ((a = s), (d = ((1 - u) * c) / 2)),
                x.push({
                  x: o,
                  y: a,
                  rotation: k,
                  label: r,
                  font: l,
                  textOffset: d,
                  textAlign: i,
                }));
          return x;
        },
        _drawGrid: function (e) {
          var t = this,
            n = t.options.gridLines;
          if (n.display) {
            var r,
              o,
              a,
              i,
              s,
              l = t.ctx,
              c = t.chart,
              u = B._alignPixel,
              d = n.drawBorder ? an(n.lineWidth, 0, 0) : 0,
              h =
                t._gridLineItems ||
                (t._gridLineItems = t._computeGridLineItems(e));
            for (a = 0, i = h.length; a < i; ++a)
              (r = (s = h[a]).width),
                (o = s.color),
                r &&
                  o &&
                  (l.save(),
                  (l.lineWidth = r),
                  (l.strokeStyle = o),
                  l.setLineDash &&
                    (l.setLineDash(s.borderDash),
                    (l.lineDashOffset = s.borderDashOffset)),
                  l.beginPath(),
                  n.drawTicks &&
                    (l.moveTo(s.tx1, s.ty1), l.lineTo(s.tx2, s.ty2)),
                  n.drawOnChartArea &&
                    (l.moveTo(s.x1, s.y1), l.lineTo(s.x2, s.y2)),
                  l.stroke(),
                  l.restore());
            if (d) {
              var p,
                f,
                m,
                g,
                _ = d,
                v = an(n.lineWidth, h.ticksLength - 1, 1),
                b = h.borderValue;
              t.isHorizontal()
                ? ((p = u(c, t.left, _) - _ / 2),
                  (f = u(c, t.right, v) + v / 2),
                  (m = g = b))
                : ((m = u(c, t.top, _) - _ / 2),
                  (g = u(c, t.bottom, v) + v / 2),
                  (p = f = b)),
                (l.lineWidth = d),
                (l.strokeStyle = an(n.color, 0)),
                l.beginPath(),
                l.moveTo(p, m),
                l.lineTo(f, g),
                l.stroke();
            }
          }
        },
        _drawLabels: function () {
          var e = this;
          if (e.options.ticks.display) {
            var t,
              n,
              r,
              o,
              a,
              i,
              s,
              l,
              c = e.ctx,
              u = e._labelItems || (e._labelItems = e._computeLabelItems());
            for (t = 0, r = u.length; t < r; ++t) {
              if (
                ((i = (a = u[t]).font),
                c.save(),
                c.translate(a.x, a.y),
                c.rotate(a.rotation),
                (c.font = i.string),
                (c.fillStyle = i.color),
                (c.textBaseline = "middle"),
                (c.textAlign = a.textAlign),
                (s = a.label),
                (l = a.textOffset),
                nn(s))
              )
                for (n = 0, o = s.length; n < o; ++n)
                  c.fillText("" + s[n], 0, l), (l += i.lineHeight);
              else c.fillText(s, 0, l);
              c.restore();
            }
          }
        },
        _drawTitle: function () {
          var e = this,
            t = e.ctx,
            n = e.options,
            r = n.scaleLabel;
          if (r.display) {
            var o,
              a,
              i = on(r.fontColor, Y.global.defaultFontColor),
              s = B.options._parseFont(r),
              l = B.options.toPadding(r.padding),
              c = s.lineHeight / 2,
              u = n.position,
              d = 0;
            if (e.isHorizontal())
              (o = e.left + e.width / 2),
                (a =
                  "bottom" === u ? e.bottom - c - l.bottom : e.top + c + l.top);
            else {
              var h = "left" === u;
              (o = h ? e.left + c + l.top : e.right - c - l.top),
                (a = e.top + e.height / 2),
                (d = h ? -0.5 * Math.PI : 0.5 * Math.PI);
            }
            t.save(),
              t.translate(o, a),
              t.rotate(d),
              (t.textAlign = "center"),
              (t.textBaseline = "middle"),
              (t.fillStyle = i),
              (t.font = s.string),
              t.fillText(r.labelString, 0, 0),
              t.restore();
          }
        },
        draw: function (e) {
          this._isVisible() &&
            (this._drawGrid(e), this._drawTitle(), this._drawLabels());
        },
        _layers: function () {
          var e = this,
            t = e.options,
            n = (t.ticks && t.ticks.z) || 0,
            r = (t.gridLines && t.gridLines.z) || 0;
          return e._isVisible() && n !== r && e.draw === e._draw
            ? [
                {
                  z: r,
                  draw: function () {
                    e._drawGrid.apply(e, arguments),
                      e._drawTitle.apply(e, arguments);
                  },
                },
                {
                  z: n,
                  draw: function () {
                    e._drawLabels.apply(e, arguments);
                  },
                },
              ]
            : [
                {
                  z: n,
                  draw: function () {
                    e.draw.apply(e, arguments);
                  },
                },
              ];
        },
        _getMatchingVisibleMetas: function (e) {
          var t = this,
            n = t.isHorizontal();
          return t.chart._getSortedVisibleDatasetMetas().filter(function (r) {
            return (
              (!e || r.type === e) &&
              (n ? r.xAxisID === t.id : r.yAxisID === t.id)
            );
          });
        },
      });
      mn.prototype._draw = mn.prototype.draw;
      var gn = mn,
        _n = B.isNullOrUndef,
        vn = gn.extend({
          determineDataLimits: function () {
            var e,
              t = this,
              n = t._getLabels(),
              r = t.options.ticks,
              o = r.min,
              a = r.max,
              i = 0,
              s = n.length - 1;
            void 0 !== o && (e = n.indexOf(o)) >= 0 && (i = e),
              void 0 !== a && (e = n.indexOf(a)) >= 0 && (s = e),
              (t.minIndex = i),
              (t.maxIndex = s),
              (t.min = n[i]),
              (t.max = n[s]);
          },
          buildTicks: function () {
            var e = this._getLabels(),
              t = this.minIndex,
              n = this.maxIndex;
            this.ticks = 0 === t && n === e.length - 1 ? e : e.slice(t, n + 1);
          },
          getLabelForIndex: function (e, t) {
            var n = this.chart;
            return n.getDatasetMeta(t).controller._getValueScaleId() === this.id
              ? this.getRightValue(n.data.datasets[t].data[e])
              : this._getLabels()[e];
          },
          _configure: function () {
            var e = this,
              t = e.options.offset,
              n = e.ticks;
            gn.prototype._configure.call(e),
              e.isHorizontal() || (e._reversePixels = !e._reversePixels),
              n &&
                ((e._startValue = e.minIndex - (t ? 0.5 : 0)),
                (e._valueRange = Math.max(n.length - (t ? 0 : 1), 1)));
          },
          getPixelForValue: function (e, t, n) {
            var r,
              o,
              a,
              i = this;
            return (
              _n(t) || _n(n) || (e = i.chart.data.datasets[n].data[t]),
              _n(e) || (r = i.isHorizontal() ? e.x : e.y),
              (void 0 !== r || (void 0 !== e && isNaN(t))) &&
                ((o = i._getLabels()),
                (e = B.valueOrDefault(r, e)),
                (t = -1 !== (a = o.indexOf(e)) ? a : t),
                isNaN(t) && (t = e)),
              i.getPixelForDecimal((t - i._startValue) / i._valueRange)
            );
          },
          getPixelForTick: function (e) {
            var t = this.ticks;
            return e < 0 || e > t.length - 1
              ? null
              : this.getPixelForValue(t[e], e + this.minIndex);
          },
          getValueForPixel: function (e) {
            var t = Math.round(
              this._startValue + this.getDecimalForPixel(e) * this._valueRange
            );
            return Math.min(Math.max(t, 0), this.ticks.length - 1);
          },
          getBasePixel: function () {
            return this.bottom;
          },
        }),
        bn = { position: "bottom" };
      vn._defaults = bn;
      var yn = B.noop,
        wn = B.isNullOrUndef,
        kn = gn.extend({
          getRightValue: function (e) {
            return "string" == typeof e
              ? +e
              : gn.prototype.getRightValue.call(this, e);
          },
          handleTickRangeOptions: function () {
            var e = this,
              t = e.options.ticks;
            if (t.beginAtZero) {
              var n = B.sign(e.min),
                r = B.sign(e.max);
              n < 0 && r < 0 ? (e.max = 0) : n > 0 && r > 0 && (e.min = 0);
            }
            var o = void 0 !== t.min || void 0 !== t.suggestedMin,
              a = void 0 !== t.max || void 0 !== t.suggestedMax;
            void 0 !== t.min
              ? (e.min = t.min)
              : void 0 !== t.suggestedMin &&
                (null === e.min
                  ? (e.min = t.suggestedMin)
                  : (e.min = Math.min(e.min, t.suggestedMin))),
              void 0 !== t.max
                ? (e.max = t.max)
                : void 0 !== t.suggestedMax &&
                  (null === e.max
                    ? (e.max = t.suggestedMax)
                    : (e.max = Math.max(e.max, t.suggestedMax))),
              o !== a &&
                e.min >= e.max &&
                (o ? (e.max = e.min + 1) : (e.min = e.max - 1)),
              e.min === e.max && (e.max++, t.beginAtZero || e.min--);
          },
          getTickLimit: function () {
            var e,
              t = this.options.ticks,
              n = t.stepSize,
              r = t.maxTicksLimit;
            return (
              n
                ? (e = Math.ceil(this.max / n) - Math.floor(this.min / n) + 1)
                : ((e = this._computeTickLimit()), (r = r || 11)),
              r && (e = Math.min(r, e)),
              e
            );
          },
          _computeTickLimit: function () {
            return Number.POSITIVE_INFINITY;
          },
          handleDirectionalChanges: yn,
          buildTicks: function () {
            var e = this,
              t = e.options.ticks,
              n = e.getTickLimit(),
              r = {
                maxTicks: (n = Math.max(2, n)),
                min: t.min,
                max: t.max,
                precision: t.precision,
                stepSize: B.valueOrDefault(t.fixedStepSize, t.stepSize),
              },
              o = (e.ticks = (function (e, t) {
                var n,
                  r,
                  o,
                  a,
                  i = [],
                  s = e.stepSize,
                  l = s || 1,
                  c = e.maxTicks - 1,
                  u = e.min,
                  d = e.max,
                  h = e.precision,
                  p = t.min,
                  f = t.max,
                  m = B.niceNum((f - p) / c / l) * l;
                if (m < 1e-14 && wn(u) && wn(d)) return [p, f];
                (a = Math.ceil(f / m) - Math.floor(p / m)) > c &&
                  (m = B.niceNum((a * m) / c / l) * l),
                  s || wn(h)
                    ? (n = Math.pow(10, B._decimalPlaces(m)))
                    : ((n = Math.pow(10, h)), (m = Math.ceil(m * n) / n)),
                  (r = Math.floor(p / m) * m),
                  (o = Math.ceil(f / m) * m),
                  s &&
                    (!wn(u) && B.almostWhole(u / m, m / 1e3) && (r = u),
                    !wn(d) && B.almostWhole(d / m, m / 1e3) && (o = d)),
                  (a = (o - r) / m),
                  (a = B.almostEquals(a, Math.round(a), m / 1e3)
                    ? Math.round(a)
                    : Math.ceil(a)),
                  (r = Math.round(r * n) / n),
                  (o = Math.round(o * n) / n),
                  i.push(wn(u) ? r : u);
                for (var g = 1; g < a; ++g)
                  i.push(Math.round((r + g * m) * n) / n);
                return i.push(wn(d) ? o : d), i;
              })(r, e));
            e.handleDirectionalChanges(),
              (e.max = B.max(o)),
              (e.min = B.min(o)),
              t.reverse
                ? (o.reverse(), (e.start = e.max), (e.end = e.min))
                : ((e.start = e.min), (e.end = e.max));
          },
          convertTicksToLabels: function () {
            var e = this;
            (e.ticksAsNumbers = e.ticks.slice()),
              (e.zeroLineIndex = e.ticks.indexOf(0)),
              gn.prototype.convertTicksToLabels.call(e);
          },
          _configure: function () {
            var e,
              t = this,
              n = t.getTicks(),
              r = t.min,
              o = t.max;
            gn.prototype._configure.call(t),
              t.options.offset &&
                n.length &&
                ((r -= e = (o - r) / Math.max(n.length - 1, 1) / 2), (o += e)),
              (t._startValue = r),
              (t._endValue = o),
              (t._valueRange = o - r);
          },
        }),
        xn = { position: "left", ticks: { callback: tn.formatters.linear } };
      function Mn(e, t, n, r) {
        var o,
          a,
          i = e.options,
          s = (function (e, t, n) {
            var r = [
              n.type,
              void 0 === t && void 0 === n.stack ? n.index : "",
              n.stack,
            ].join(".");
            return void 0 === e[r] && (e[r] = { pos: [], neg: [] }), e[r];
          })(t, i.stacked, n),
          l = s.pos,
          c = s.neg,
          u = r.length;
        for (o = 0; o < u; ++o)
          (a = e._parseValue(r[o])),
            isNaN(a.min) ||
              isNaN(a.max) ||
              n.data[o].hidden ||
              ((l[o] = l[o] || 0),
              (c[o] = c[o] || 0),
              i.relativePoints
                ? (l[o] = 100)
                : a.min < 0 || a.max < 0
                ? (c[o] += a.min)
                : (l[o] += a.max));
      }
      function En(e, t, n) {
        var r,
          o,
          a = n.length;
        for (r = 0; r < a; ++r)
          (o = e._parseValue(n[r])),
            isNaN(o.min) ||
              isNaN(o.max) ||
              t.data[r].hidden ||
              ((e.min = Math.min(e.min, o.min)),
              (e.max = Math.max(e.max, o.max)));
      }
      var Tn = kn.extend({
          determineDataLimits: function () {
            var e,
              t,
              n,
              r,
              o = this,
              a = o.options,
              i = o.chart.data.datasets,
              s = o._getMatchingVisibleMetas(),
              l = a.stacked,
              c = {},
              u = s.length;
            if (
              ((o.min = Number.POSITIVE_INFINITY),
              (o.max = Number.NEGATIVE_INFINITY),
              void 0 === l)
            )
              for (e = 0; !l && e < u; ++e) l = void 0 !== (t = s[e]).stack;
            for (e = 0; e < u; ++e)
              (n = i[(t = s[e]).index].data), l ? Mn(o, c, t, n) : En(o, t, n);
            B.each(c, function (e) {
              (r = e.pos.concat(e.neg)),
                (o.min = Math.min(o.min, B.min(r))),
                (o.max = Math.max(o.max, B.max(r)));
            }),
              (o.min = B.isFinite(o.min) && !isNaN(o.min) ? o.min : 0),
              (o.max = B.isFinite(o.max) && !isNaN(o.max) ? o.max : 1),
              o.handleTickRangeOptions();
          },
          _computeTickLimit: function () {
            var e;
            return this.isHorizontal()
              ? Math.ceil(this.width / 40)
              : ((e = B.options._parseFont(this.options.ticks)),
                Math.ceil(this.height / e.lineHeight));
          },
          handleDirectionalChanges: function () {
            this.isHorizontal() || this.ticks.reverse();
          },
          getLabelForIndex: function (e, t) {
            return this._getScaleLabel(this.chart.data.datasets[t].data[e]);
          },
          getPixelForValue: function (e) {
            return this.getPixelForDecimal(
              (+this.getRightValue(e) - this._startValue) / this._valueRange
            );
          },
          getValueForPixel: function (e) {
            return (
              this._startValue + this.getDecimalForPixel(e) * this._valueRange
            );
          },
          getPixelForTick: function (e) {
            var t = this.ticksAsNumbers;
            return e < 0 || e > t.length - 1
              ? null
              : this.getPixelForValue(t[e]);
          },
        }),
        Sn = xn;
      Tn._defaults = Sn;
      var Dn = B.valueOrDefault,
        Ln = B.math.log10,
        Cn = {
          position: "left",
          ticks: { callback: tn.formatters.logarithmic },
        };
      function Pn(e, t) {
        return B.isFinite(e) && e >= 0 ? e : t;
      }
      var On = gn.extend({
          determineDataLimits: function () {
            var e,
              t,
              n,
              r,
              o,
              a,
              i = this,
              s = i.options,
              l = i.chart,
              c = l.data.datasets,
              u = i.isHorizontal();
            function d(e) {
              return u ? e.xAxisID === i.id : e.yAxisID === i.id;
            }
            (i.min = Number.POSITIVE_INFINITY),
              (i.max = Number.NEGATIVE_INFINITY),
              (i.minNotZero = Number.POSITIVE_INFINITY);
            var h = s.stacked;
            if (void 0 === h)
              for (e = 0; e < c.length; e++)
                if (
                  ((t = l.getDatasetMeta(e)),
                  l.isDatasetVisible(e) && d(t) && void 0 !== t.stack)
                ) {
                  h = !0;
                  break;
                }
            if (s.stacked || h) {
              var p = {};
              for (e = 0; e < c.length; e++) {
                var f = [
                  (t = l.getDatasetMeta(e)).type,
                  void 0 === s.stacked && void 0 === t.stack ? e : "",
                  t.stack,
                ].join(".");
                if (l.isDatasetVisible(e) && d(t))
                  for (
                    void 0 === p[f] && (p[f] = []),
                      o = 0,
                      a = (r = c[e].data).length;
                    o < a;
                    o++
                  ) {
                    var m = p[f];
                    (n = i._parseValue(r[o])),
                      isNaN(n.min) ||
                        isNaN(n.max) ||
                        t.data[o].hidden ||
                        n.min < 0 ||
                        n.max < 0 ||
                        ((m[o] = m[o] || 0), (m[o] += n.max));
                  }
              }
              B.each(p, function (e) {
                if (e.length > 0) {
                  var t = B.min(e),
                    n = B.max(e);
                  (i.min = Math.min(i.min, t)), (i.max = Math.max(i.max, n));
                }
              });
            } else
              for (e = 0; e < c.length; e++)
                if (((t = l.getDatasetMeta(e)), l.isDatasetVisible(e) && d(t)))
                  for (o = 0, a = (r = c[e].data).length; o < a; o++)
                    (n = i._parseValue(r[o])),
                      isNaN(n.min) ||
                        isNaN(n.max) ||
                        t.data[o].hidden ||
                        n.min < 0 ||
                        n.max < 0 ||
                        ((i.min = Math.min(n.min, i.min)),
                        (i.max = Math.max(n.max, i.max)),
                        0 !== n.min &&
                          (i.minNotZero = Math.min(n.min, i.minNotZero)));
            (i.min = B.isFinite(i.min) ? i.min : null),
              (i.max = B.isFinite(i.max) ? i.max : null),
              (i.minNotZero = B.isFinite(i.minNotZero) ? i.minNotZero : null),
              this.handleTickRangeOptions();
          },
          handleTickRangeOptions: function () {
            var e = this,
              t = e.options.ticks;
            (e.min = Pn(t.min, e.min)),
              (e.max = Pn(t.max, e.max)),
              e.min === e.max &&
                (0 !== e.min && null !== e.min
                  ? ((e.min = Math.pow(10, Math.floor(Ln(e.min)) - 1)),
                    (e.max = Math.pow(10, Math.floor(Ln(e.max)) + 1)))
                  : ((e.min = 1), (e.max = 10))),
              null === e.min &&
                (e.min = Math.pow(10, Math.floor(Ln(e.max)) - 1)),
              null === e.max &&
                (e.max =
                  0 !== e.min ? Math.pow(10, Math.floor(Ln(e.min)) + 1) : 10),
              null === e.minNotZero &&
                (e.min > 0
                  ? (e.minNotZero = e.min)
                  : e.max < 1
                  ? (e.minNotZero = Math.pow(10, Math.floor(Ln(e.max))))
                  : (e.minNotZero = 1));
          },
          buildTicks: function () {
            var e = this,
              t = e.options.ticks,
              n = !e.isHorizontal(),
              r = { min: Pn(t.min), max: Pn(t.max) },
              o = (e.ticks = (function (e, t) {
                var n,
                  r,
                  o = [],
                  a = Dn(e.min, Math.pow(10, Math.floor(Ln(t.min)))),
                  i = Math.floor(Ln(t.max)),
                  s = Math.ceil(t.max / Math.pow(10, i));
                0 === a
                  ? ((n = Math.floor(Ln(t.minNotZero))),
                    (r = Math.floor(t.minNotZero / Math.pow(10, n))),
                    o.push(a),
                    (a = r * Math.pow(10, n)))
                  : ((n = Math.floor(Ln(a))),
                    (r = Math.floor(a / Math.pow(10, n))));
                var l = n < 0 ? Math.pow(10, Math.abs(n)) : 1;
                do {
                  o.push(a),
                    10 == ++r && ((r = 1), (l = ++n >= 0 ? 1 : l)),
                    (a = Math.round(r * Math.pow(10, n) * l) / l);
                } while (n < i || (n === i && r < s));
                var c = Dn(e.max, a);
                return o.push(c), o;
              })(r, e));
            (e.max = B.max(o)),
              (e.min = B.min(o)),
              t.reverse
                ? ((n = !n), (e.start = e.max), (e.end = e.min))
                : ((e.start = e.min), (e.end = e.max)),
              n && o.reverse();
          },
          convertTicksToLabels: function () {
            (this.tickValues = this.ticks.slice()),
              gn.prototype.convertTicksToLabels.call(this);
          },
          getLabelForIndex: function (e, t) {
            return this._getScaleLabel(this.chart.data.datasets[t].data[e]);
          },
          getPixelForTick: function (e) {
            var t = this.tickValues;
            return e < 0 || e > t.length - 1
              ? null
              : this.getPixelForValue(t[e]);
          },
          _getFirstTickValue: function (e) {
            var t = Math.floor(Ln(e));
            return Math.floor(e / Math.pow(10, t)) * Math.pow(10, t);
          },
          _configure: function () {
            var e = this,
              t = e.min,
              n = 0;
            gn.prototype._configure.call(e),
              0 === t &&
                ((t = e._getFirstTickValue(e.minNotZero)),
                (n =
                  Dn(e.options.ticks.fontSize, Y.global.defaultFontSize) /
                  e._length)),
              (e._startValue = Ln(t)),
              (e._valueOffset = n),
              (e._valueRange = (Ln(e.max) - Ln(t)) / (1 - n));
          },
          getPixelForValue: function (e) {
            var t = this,
              n = 0;
            return (
              (e = +t.getRightValue(e)) > t.min &&
                e > 0 &&
                (n = (Ln(e) - t._startValue) / t._valueRange + t._valueOffset),
              t.getPixelForDecimal(n)
            );
          },
          getValueForPixel: function (e) {
            var t = this,
              n = t.getDecimalForPixel(e);
            return 0 === n && 0 === t.min
              ? 0
              : Math.pow(
                  10,
                  t._startValue + (n - t._valueOffset) * t._valueRange
                );
          },
        }),
        Nn = Cn;
      On._defaults = Nn;
      var An = B.valueOrDefault,
        In = B.valueAtIndexOrDefault,
        Rn = B.options.resolve,
        Yn = {
          display: !0,
          animate: !0,
          position: "chartArea",
          angleLines: {
            display: !0,
            color: "rgba(0,0,0,0.1)",
            lineWidth: 1,
            borderDash: [],
            borderDashOffset: 0,
          },
          gridLines: { circular: !1 },
          ticks: {
            showLabelBackdrop: !0,
            backdropColor: "rgba(255,255,255,0.75)",
            backdropPaddingY: 2,
            backdropPaddingX: 2,
            callback: tn.formatters.linear,
          },
          pointLabels: {
            display: !0,
            fontSize: 10,
            callback: function (e) {
              return e;
            },
          },
        };
      function jn(e) {
        var t = e.ticks;
        return t.display && e.display
          ? An(t.fontSize, Y.global.defaultFontSize) + 2 * t.backdropPaddingY
          : 0;
      }
      function Fn(e, t, n, r, o) {
        return e === r || e === o
          ? { start: t - n / 2, end: t + n / 2 }
          : e < r || e > o
          ? { start: t - n, end: t }
          : { start: t, end: t + n };
      }
      function Hn(e) {
        return 0 === e || 180 === e ? "center" : e < 180 ? "left" : "right";
      }
      function zn(e, t, n, r) {
        var o,
          a,
          i = n.y + r / 2;
        if (B.isArray(t))
          for (o = 0, a = t.length; o < a; ++o)
            e.fillText(t[o], n.x, i), (i += r);
        else e.fillText(t, n.x, i);
      }
      function Bn(e, t, n) {
        90 === e || 270 === e
          ? (n.y -= t.h / 2)
          : (e > 270 || e < 90) && (n.y -= t.h);
      }
      function Un(e) {
        return B.isNumber(e) ? e : 0;
      }
      var Vn = kn.extend({
          setDimensions: function () {
            var e = this;
            (e.width = e.maxWidth),
              (e.height = e.maxHeight),
              (e.paddingTop = jn(e.options) / 2),
              (e.xCenter = Math.floor(e.width / 2)),
              (e.yCenter = Math.floor((e.height - e.paddingTop) / 2)),
              (e.drawingArea = Math.min(e.height - e.paddingTop, e.width) / 2);
          },
          determineDataLimits: function () {
            var e = this,
              t = e.chart,
              n = Number.POSITIVE_INFINITY,
              r = Number.NEGATIVE_INFINITY;
            B.each(t.data.datasets, function (o, a) {
              if (t.isDatasetVisible(a)) {
                var i = t.getDatasetMeta(a);
                B.each(o.data, function (t, o) {
                  var a = +e.getRightValue(t);
                  isNaN(a) ||
                    i.data[o].hidden ||
                    ((n = Math.min(a, n)), (r = Math.max(a, r)));
                });
              }
            }),
              (e.min = n === Number.POSITIVE_INFINITY ? 0 : n),
              (e.max = r === Number.NEGATIVE_INFINITY ? 0 : r),
              e.handleTickRangeOptions();
          },
          _computeTickLimit: function () {
            return Math.ceil(this.drawingArea / jn(this.options));
          },
          convertTicksToLabels: function () {
            var e = this;
            kn.prototype.convertTicksToLabels.call(e),
              (e.pointLabels = e.chart.data.labels.map(function () {
                var t = B.callback(
                  e.options.pointLabels.callback,
                  arguments,
                  e
                );
                return t || 0 === t ? t : "";
              }));
          },
          getLabelForIndex: function (e, t) {
            return +this.getRightValue(this.chart.data.datasets[t].data[e]);
          },
          fit: function () {
            var e = this.options;
            e.display && e.pointLabels.display
              ? (function (e) {
                  var t,
                    n,
                    r,
                    o = B.options._parseFont(e.options.pointLabels),
                    a = { l: 0, r: e.width, t: 0, b: e.height - e.paddingTop },
                    i = {};
                  (e.ctx.font = o.string), (e._pointLabelSizes = []);
                  var s,
                    l,
                    c,
                    u = e.chart.data.labels.length;
                  for (t = 0; t < u; t++) {
                    (r = e.getPointPosition(t, e.drawingArea + 5)),
                      (s = e.ctx),
                      (l = o.lineHeight),
                      (c = e.pointLabels[t]),
                      (n = B.isArray(c)
                        ? { w: B.longestText(s, s.font, c), h: c.length * l }
                        : { w: s.measureText(c).width, h: l }),
                      (e._pointLabelSizes[t] = n);
                    var d = e.getIndexAngle(t),
                      h = B.toDegrees(d) % 360,
                      p = Fn(h, r.x, n.w, 0, 180),
                      f = Fn(h, r.y, n.h, 90, 270);
                    p.start < a.l && ((a.l = p.start), (i.l = d)),
                      p.end > a.r && ((a.r = p.end), (i.r = d)),
                      f.start < a.t && ((a.t = f.start), (i.t = d)),
                      f.end > a.b && ((a.b = f.end), (i.b = d));
                  }
                  e.setReductions(e.drawingArea, a, i);
                })(this)
              : this.setCenterPoint(0, 0, 0, 0);
          },
          setReductions: function (e, t, n) {
            var r = this,
              o = t.l / Math.sin(n.l),
              a = Math.max(t.r - r.width, 0) / Math.sin(n.r),
              i = -t.t / Math.cos(n.t),
              s = -Math.max(t.b - (r.height - r.paddingTop), 0) / Math.cos(n.b);
            (o = Un(o)),
              (a = Un(a)),
              (i = Un(i)),
              (s = Un(s)),
              (r.drawingArea = Math.min(
                Math.floor(e - (o + a) / 2),
                Math.floor(e - (i + s) / 2)
              )),
              r.setCenterPoint(o, a, i, s);
          },
          setCenterPoint: function (e, t, n, r) {
            var o = this,
              a = o.width - t - o.drawingArea,
              i = e + o.drawingArea,
              s = n + o.drawingArea,
              l = o.height - o.paddingTop - r - o.drawingArea;
            (o.xCenter = Math.floor((i + a) / 2 + o.left)),
              (o.yCenter = Math.floor((s + l) / 2 + o.top + o.paddingTop));
          },
          getIndexAngle: function (e) {
            var t = this.chart,
              n =
                (e * (360 / t.data.labels.length) +
                  ((t.options || {}).startAngle || 0)) %
                360;
            return ((n < 0 ? n + 360 : n) * Math.PI * 2) / 360;
          },
          getDistanceFromCenterForValue: function (e) {
            var t = this;
            if (B.isNullOrUndef(e)) return NaN;
            var n = t.drawingArea / (t.max - t.min);
            return t.options.ticks.reverse ? (t.max - e) * n : (e - t.min) * n;
          },
          getPointPosition: function (e, t) {
            var n = this.getIndexAngle(e) - Math.PI / 2;
            return {
              x: Math.cos(n) * t + this.xCenter,
              y: Math.sin(n) * t + this.yCenter,
            };
          },
          getPointPositionForValue: function (e, t) {
            return this.getPointPosition(
              e,
              this.getDistanceFromCenterForValue(t)
            );
          },
          getBasePosition: function (e) {
            var t = this.min,
              n = this.max;
            return this.getPointPositionForValue(
              e || 0,
              this.beginAtZero ? 0 : t < 0 && n < 0 ? n : t > 0 && n > 0 ? t : 0
            );
          },
          _drawGrid: function () {
            var e,
              t,
              n,
              r = this,
              o = r.ctx,
              a = r.options,
              i = a.gridLines,
              s = a.angleLines,
              l = An(s.lineWidth, i.lineWidth),
              c = An(s.color, i.color);
            if (
              (a.pointLabels.display &&
                (function (e) {
                  var t = e.ctx,
                    n = e.options,
                    r = n.pointLabels,
                    o = jn(n),
                    a = e.getDistanceFromCenterForValue(
                      n.ticks.reverse ? e.min : e.max
                    ),
                    i = B.options._parseFont(r);
                  t.save(), (t.font = i.string), (t.textBaseline = "middle");
                  for (var s = e.chart.data.labels.length - 1; s >= 0; s--) {
                    var l = 0 === s ? o / 2 : 0,
                      c = e.getPointPosition(s, a + l + 5),
                      u = In(r.fontColor, s, Y.global.defaultFontColor);
                    t.fillStyle = u;
                    var d = e.getIndexAngle(s),
                      h = B.toDegrees(d);
                    (t.textAlign = Hn(h)),
                      Bn(h, e._pointLabelSizes[s], c),
                      zn(t, e.pointLabels[s], c, i.lineHeight);
                  }
                  t.restore();
                })(r),
              i.display &&
                B.each(r.ticks, function (e, n) {
                  0 !== n &&
                    ((t = r.getDistanceFromCenterForValue(r.ticksAsNumbers[n])),
                    (function (e, t, n, r) {
                      var o,
                        a = e.ctx,
                        i = t.circular,
                        s = e.chart.data.labels.length,
                        l = In(t.color, r - 1),
                        c = In(t.lineWidth, r - 1);
                      if ((i || s) && l && c) {
                        if (
                          (a.save(),
                          (a.strokeStyle = l),
                          (a.lineWidth = c),
                          a.setLineDash &&
                            (a.setLineDash(t.borderDash || []),
                            (a.lineDashOffset = t.borderDashOffset || 0)),
                          a.beginPath(),
                          i)
                        )
                          a.arc(e.xCenter, e.yCenter, n, 0, 2 * Math.PI);
                        else {
                          (o = e.getPointPosition(0, n)), a.moveTo(o.x, o.y);
                          for (var u = 1; u < s; u++)
                            (o = e.getPointPosition(u, n)), a.lineTo(o.x, o.y);
                        }
                        a.closePath(), a.stroke(), a.restore();
                      }
                    })(r, i, t, n));
                }),
              s.display && l && c)
            ) {
              for (
                o.save(),
                  o.lineWidth = l,
                  o.strokeStyle = c,
                  o.setLineDash &&
                    (o.setLineDash(Rn([s.borderDash, i.borderDash, []])),
                    (o.lineDashOffset = Rn([
                      s.borderDashOffset,
                      i.borderDashOffset,
                      0,
                    ]))),
                  e = r.chart.data.labels.length - 1;
                e >= 0;
                e--
              )
                (t = r.getDistanceFromCenterForValue(
                  a.ticks.reverse ? r.min : r.max
                )),
                  (n = r.getPointPosition(e, t)),
                  o.beginPath(),
                  o.moveTo(r.xCenter, r.yCenter),
                  o.lineTo(n.x, n.y),
                  o.stroke();
              o.restore();
            }
          },
          _drawLabels: function () {
            var e = this,
              t = e.ctx,
              n = e.options.ticks;
            if (n.display) {
              var r,
                o,
                a = e.getIndexAngle(0),
                i = B.options._parseFont(n),
                s = An(n.fontColor, Y.global.defaultFontColor);
              t.save(),
                (t.font = i.string),
                t.translate(e.xCenter, e.yCenter),
                t.rotate(a),
                (t.textAlign = "center"),
                (t.textBaseline = "middle"),
                B.each(e.ticks, function (a, l) {
                  (0 !== l || n.reverse) &&
                    ((r = e.getDistanceFromCenterForValue(e.ticksAsNumbers[l])),
                    n.showLabelBackdrop &&
                      ((o = t.measureText(a).width),
                      (t.fillStyle = n.backdropColor),
                      t.fillRect(
                        -o / 2 - n.backdropPaddingX,
                        -r - i.size / 2 - n.backdropPaddingY,
                        o + 2 * n.backdropPaddingX,
                        i.size + 2 * n.backdropPaddingY
                      )),
                    (t.fillStyle = s),
                    t.fillText(a, 0, -r));
                }),
                t.restore();
            }
          },
          _drawTitle: B.noop,
        }),
        Wn = Yn;
      Vn._defaults = Wn;
      var qn = B._deprecated,
        Gn = B.options.resolve,
        Jn = B.valueOrDefault,
        Kn = Number.MIN_SAFE_INTEGER || -9007199254740991,
        Qn = Number.MAX_SAFE_INTEGER || 9007199254740991,
        Xn = {
          millisecond: { common: !0, size: 1, steps: 1e3 },
          second: { common: !0, size: 1e3, steps: 60 },
          minute: { common: !0, size: 6e4, steps: 60 },
          hour: { common: !0, size: 36e5, steps: 24 },
          day: { common: !0, size: 864e5, steps: 30 },
          week: { common: !1, size: 6048e5, steps: 4 },
          month: { common: !0, size: 2628e6, steps: 12 },
          quarter: { common: !1, size: 7884e6, steps: 4 },
          year: { common: !0, size: 3154e7 },
        },
        $n = Object.keys(Xn);
      function Zn(e, t) {
        return e - t;
      }
      function er(e) {
        return B.valueOrDefault(e.time.min, e.ticks.min);
      }
      function tr(e) {
        return B.valueOrDefault(e.time.max, e.ticks.max);
      }
      function nr(e, t, n, r) {
        var o = (function (e, t, n) {
            for (var r, o, a, i = 0, s = e.length - 1; i >= 0 && i <= s; ) {
              if (((o = e[(r = (i + s) >> 1) - 1] || null), (a = e[r]), !o))
                return { lo: null, hi: a };
              if (a[t] < n) i = r + 1;
              else {
                if (!(o[t] > n)) return { lo: o, hi: a };
                s = r - 1;
              }
            }
            return { lo: a, hi: null };
          })(e, t, n),
          a = o.lo ? (o.hi ? o.lo : e[e.length - 2]) : e[0],
          i = o.lo ? (o.hi ? o.hi : e[e.length - 1]) : e[1],
          s = i[t] - a[t],
          l = s ? (n - a[t]) / s : 0,
          c = (i[r] - a[r]) * l;
        return a[r] + c;
      }
      function rr(e, t) {
        var n = e._adapter,
          r = e.options.time,
          o = r.parser,
          a = o || r.format,
          i = t;
        return (
          "function" == typeof o && (i = o(i)),
          B.isFinite(i) ||
            (i = "string" == typeof a ? n.parse(i, a) : n.parse(i)),
          null !== i
            ? +i
            : (o ||
                "function" != typeof a ||
                ((i = a(t)), B.isFinite(i) || (i = n.parse(i))),
              i)
        );
      }
      function or(e, t) {
        if (B.isNullOrUndef(t)) return null;
        var n = e.options.time,
          r = rr(e, e.getRightValue(t));
        return (
          null === r || (n.round && (r = +e._adapter.startOf(r, n.round))), r
        );
      }
      function ar(e, t, n, r) {
        var o,
          a,
          i,
          s = $n.length;
        for (o = $n.indexOf(e); o < s - 1; ++o)
          if (
            ((i = (a = Xn[$n[o]]).steps ? a.steps : Qn),
            a.common && Math.ceil((n - t) / (i * a.size)) <= r)
          )
            return $n[o];
        return $n[s - 1];
      }
      function ir(e, t, n) {
        var r,
          o,
          a = [],
          i = {},
          s = t.length;
        for (r = 0; r < s; ++r)
          (i[(o = t[r])] = r), a.push({ value: o, major: !1 });
        return 0 !== s && n
          ? (function (e, t, n, r) {
              var o,
                a,
                i = e._adapter,
                s = +i.startOf(t[0].value, r),
                l = t[t.length - 1].value;
              for (o = s; o <= l; o = +i.add(o, 1, r))
                (a = n[o]) >= 0 && (t[a].major = !0);
              return t;
            })(e, a, i, n)
          : a;
      }
      var sr = gn.extend({
          initialize: function () {
            this.mergeTicksOptions(), gn.prototype.initialize.call(this);
          },
          update: function () {
            var e = this,
              t = e.options,
              n = t.time || (t.time = {}),
              r = (e._adapter = new en._date(t.adapters.date));
            return (
              qn("time scale", n.format, "time.format", "time.parser"),
              qn("time scale", n.min, "time.min", "ticks.min"),
              qn("time scale", n.max, "time.max", "ticks.max"),
              B.mergeIf(n.displayFormats, r.formats()),
              gn.prototype.update.apply(e, arguments)
            );
          },
          getRightValue: function (e) {
            return (
              e && void 0 !== e.t && (e = e.t),
              gn.prototype.getRightValue.call(this, e)
            );
          },
          determineDataLimits: function () {
            var e,
              t,
              n,
              r,
              o,
              a,
              i,
              s = this,
              l = s.chart,
              c = s._adapter,
              u = s.options,
              d = u.time.unit || "day",
              h = Qn,
              p = Kn,
              f = [],
              m = [],
              g = [],
              _ = s._getLabels();
            for (e = 0, n = _.length; e < n; ++e) g.push(or(s, _[e]));
            for (e = 0, n = (l.data.datasets || []).length; e < n; ++e)
              if (l.isDatasetVisible(e))
                if (((o = l.data.datasets[e].data), B.isObject(o[0])))
                  for (m[e] = [], t = 0, r = o.length; t < r; ++t)
                    (a = or(s, o[t])), f.push(a), (m[e][t] = a);
                else (m[e] = g.slice(0)), i || ((f = f.concat(g)), (i = !0));
              else m[e] = [];
            g.length &&
              ((h = Math.min(h, g[0])), (p = Math.max(p, g[g.length - 1]))),
              f.length &&
                ((f =
                  n > 1
                    ? (function (e) {
                        var t,
                          n,
                          r,
                          o = {},
                          a = [];
                        for (t = 0, n = e.length; t < n; ++t)
                          o[(r = e[t])] || ((o[r] = !0), a.push(r));
                        return a;
                      })(f).sort(Zn)
                    : f.sort(Zn)),
                (h = Math.min(h, f[0])),
                (p = Math.max(p, f[f.length - 1]))),
              (h = or(s, er(u)) || h),
              (p = or(s, tr(u)) || p),
              (h = h === Qn ? +c.startOf(Date.now(), d) : h),
              (p = p === Kn ? +c.endOf(Date.now(), d) + 1 : p),
              (s.min = Math.min(h, p)),
              (s.max = Math.max(h + 1, p)),
              (s._table = []),
              (s._timestamps = { data: f, datasets: m, labels: g });
          },
          buildTicks: function () {
            var e,
              t,
              n,
              r = this,
              o = r.min,
              a = r.max,
              i = r.options,
              s = i.ticks,
              l = i.time,
              c = r._timestamps,
              u = [],
              d = r.getLabelCapacity(o),
              h = s.source,
              p = i.distribution;
            for (
              c =
                "data" === h || ("auto" === h && "series" === p)
                  ? c.data
                  : "labels" === h
                  ? c.labels
                  : (function (e, t, n, r) {
                      var o,
                        a = e._adapter,
                        i = e.options,
                        s = i.time,
                        l = s.unit || ar(s.minUnit, t, n, r),
                        c = Gn([s.stepSize, s.unitStepSize, 1]),
                        u = "week" === l && s.isoWeekday,
                        d = t,
                        h = [];
                      if (
                        (u && (d = +a.startOf(d, "isoWeek", u)),
                        (d = +a.startOf(d, u ? "day" : l)),
                        a.diff(n, t, l) > 1e5 * c)
                      )
                        throw (
                          t +
                          " and " +
                          n +
                          " are too far apart with stepSize of " +
                          c +
                          " " +
                          l
                        );
                      for (o = d; o < n; o = +a.add(o, c, l)) h.push(o);
                      return (o !== n && "ticks" !== i.bounds) || h.push(o), h;
                    })(r, o, a, d),
                "ticks" === i.bounds &&
                  c.length &&
                  ((o = c[0]), (a = c[c.length - 1])),
                o = or(r, er(i)) || o,
                a = or(r, tr(i)) || a,
                e = 0,
                t = c.length;
              e < t;
              ++e
            )
              (n = c[e]) >= o && n <= a && u.push(n);
            return (
              (r.min = o),
              (r.max = a),
              (r._unit =
                l.unit ||
                (s.autoSkip
                  ? ar(l.minUnit, r.min, r.max, d)
                  : (function (e, t, n, r, o) {
                      var a, i;
                      for (a = $n.length - 1; a >= $n.indexOf(n); a--)
                        if (
                          ((i = $n[a]),
                          Xn[i].common && e._adapter.diff(o, r, i) >= t - 1)
                        )
                          return i;
                      return $n[n ? $n.indexOf(n) : 0];
                    })(r, u.length, l.minUnit, r.min, r.max))),
              (r._majorUnit =
                s.major.enabled && "year" !== r._unit
                  ? (function (e) {
                      for (var t = $n.indexOf(e) + 1, n = $n.length; t < n; ++t)
                        if (Xn[$n[t]].common) return $n[t];
                    })(r._unit)
                  : void 0),
              (r._table = (function (e, t, n, r) {
                if ("linear" === r || !e.length)
                  return [
                    { time: t, pos: 0 },
                    { time: n, pos: 1 },
                  ];
                var o,
                  a,
                  i,
                  s,
                  l,
                  c = [],
                  u = [t];
                for (o = 0, a = e.length; o < a; ++o)
                  (s = e[o]) > t && s < n && u.push(s);
                for (u.push(n), o = 0, a = u.length; o < a; ++o)
                  (l = u[o + 1]),
                    (i = u[o - 1]),
                    (s = u[o]),
                    (void 0 !== i &&
                      void 0 !== l &&
                      Math.round((l + i) / 2) === s) ||
                      c.push({ time: s, pos: o / (a - 1) });
                return c;
              })(r._timestamps.data, o, a, p)),
              (r._offsets = (function (e, t, n, r, o) {
                var a,
                  i,
                  s = 0,
                  l = 0;
                return (
                  o.offset &&
                    t.length &&
                    ((a = nr(e, "time", t[0], "pos")),
                    (s =
                      1 === t.length
                        ? 1 - a
                        : (nr(e, "time", t[1], "pos") - a) / 2),
                    (i = nr(e, "time", t[t.length - 1], "pos")),
                    (l =
                      1 === t.length
                        ? i
                        : (i - nr(e, "time", t[t.length - 2], "pos")) / 2)),
                  { start: s, end: l, factor: 1 / (s + 1 + l) }
                );
              })(r._table, u, 0, 0, i)),
              s.reverse && u.reverse(),
              ir(r, u, r._majorUnit)
            );
          },
          getLabelForIndex: function (e, t) {
            var n = this,
              r = n._adapter,
              o = n.chart.data,
              a = n.options.time,
              i = o.labels && e < o.labels.length ? o.labels[e] : "",
              s = o.datasets[t].data[e];
            return (
              B.isObject(s) && (i = n.getRightValue(s)),
              a.tooltipFormat
                ? r.format(rr(n, i), a.tooltipFormat)
                : "string" == typeof i
                ? i
                : r.format(rr(n, i), a.displayFormats.datetime)
            );
          },
          tickFormatFunction: function (e, t, n, r) {
            var o = this._adapter,
              a = this.options,
              i = a.time.displayFormats,
              s = i[this._unit],
              l = this._majorUnit,
              c = i[l],
              u = n[t],
              d = a.ticks,
              h = l && c && u && u.major,
              p = o.format(e, r || (h ? c : s)),
              f = h ? d.major : d.minor,
              m = Gn([f.callback, f.userCallback, d.callback, d.userCallback]);
            return m ? m(p, t, n) : p;
          },
          convertTicksToLabels: function (e) {
            var t,
              n,
              r = [];
            for (t = 0, n = e.length; t < n; ++t)
              r.push(this.tickFormatFunction(e[t].value, t, e));
            return r;
          },
          getPixelForOffset: function (e) {
            var t = this._offsets,
              n = nr(this._table, "time", e, "pos");
            return this.getPixelForDecimal((t.start + n) * t.factor);
          },
          getPixelForValue: function (e, t, n) {
            var r = null;
            if (
              (void 0 !== t &&
                void 0 !== n &&
                (r = this._timestamps.datasets[n][t]),
              null === r && (r = or(this, e)),
              null !== r)
            )
              return this.getPixelForOffset(r);
          },
          getPixelForTick: function (e) {
            var t = this.getTicks();
            return e >= 0 && e < t.length
              ? this.getPixelForOffset(t[e].value)
              : null;
          },
          getValueForPixel: function (e) {
            var t = this._offsets,
              n = this.getDecimalForPixel(e) / t.factor - t.end,
              r = nr(this._table, "pos", n, "time");
            return this._adapter._create(r);
          },
          _getLabelSize: function (e) {
            var t = this.options.ticks,
              n = this.ctx.measureText(e).width,
              r = B.toRadians(
                this.isHorizontal() ? t.maxRotation : t.minRotation
              ),
              o = Math.cos(r),
              a = Math.sin(r),
              i = Jn(t.fontSize, Y.global.defaultFontSize);
            return { w: n * o + i * a, h: n * a + i * o };
          },
          getLabelWidth: function (e) {
            return this._getLabelSize(e).w;
          },
          getLabelCapacity: function (e) {
            var t = this,
              n = t.options.time,
              r = n.displayFormats,
              o = r[n.unit] || r.millisecond,
              a = t.tickFormatFunction(e, 0, ir(t, [e], t._majorUnit), o),
              i = t._getLabelSize(a),
              s = Math.floor(t.isHorizontal() ? t.width / i.w : t.height / i.h);
            return t.options.offset && s--, s > 0 ? s : 1;
          },
        }),
        lr = {
          position: "bottom",
          distribution: "linear",
          bounds: "data",
          adapters: {},
          time: {
            parser: !1,
            unit: !1,
            round: !1,
            displayFormat: !1,
            isoWeekday: !1,
            minUnit: "millisecond",
            displayFormats: {},
          },
          ticks: { autoSkip: !1, source: "auto", major: { enabled: !1 } },
        };
      sr._defaults = lr;
      var cr = {
          category: vn,
          linear: Tn,
          logarithmic: On,
          radialLinear: Vn,
          time: sr,
        },
        ur = {
          datetime: "MMM D, YYYY, h:mm:ss a",
          millisecond: "h:mm:ss.SSS a",
          second: "h:mm:ss a",
          minute: "h:mm a",
          hour: "hA",
          day: "MMM D",
          week: "ll",
          month: "MMM YYYY",
          quarter: "[Q]Q - YYYY",
          year: "YYYY",
        };
      en._date.override(
        "function" == typeof e
          ? {
              _id: "moment",
              formats: function () {
                return ur;
              },
              parse: function (t, n) {
                return (
                  "string" == typeof t && "string" == typeof n
                    ? (t = e(t, n))
                    : t instanceof e || (t = e(t)),
                  t.isValid() ? t.valueOf() : null
                );
              },
              format: function (t, n) {
                return e(t).format(n);
              },
              add: function (t, n, r) {
                return e(t).add(n, r).valueOf();
              },
              diff: function (t, n, r) {
                return e(t).diff(e(n), r);
              },
              startOf: function (t, n, r) {
                return (
                  (t = e(t)),
                  "isoWeek" === n
                    ? t.isoWeekday(r).valueOf()
                    : t.startOf(n).valueOf()
                );
              },
              endOf: function (t, n) {
                return e(t).endOf(n).valueOf();
              },
              _create: function (t) {
                return e(t);
              },
            }
          : {}
      ),
        Y._set("global", { plugins: { filler: { propagate: !0 } } });
      var dr = {
        dataset: function (e) {
          var t = e.fill,
            n = e.chart,
            r = n.getDatasetMeta(t),
            o = (r && n.isDatasetVisible(t) && r.dataset._children) || [],
            a = o.length || 0;
          return a
            ? function (e, t) {
                return (t < a && o[t]._view) || null;
              }
            : null;
        },
        boundary: function (e) {
          var t = e.boundary,
            n = t ? t.x : null,
            r = t ? t.y : null;
          return B.isArray(t)
            ? function (e, n) {
                return t[n];
              }
            : function (e) {
                return { x: null === n ? e.x : n, y: null === r ? e.y : r };
              };
        },
      };
      function hr(e, t, n) {
        var r,
          o = e._model || {},
          a = o.fill;
        if ((void 0 === a && (a = !!o.backgroundColor), !1 === a || null === a))
          return !1;
        if (!0 === a) return "origin";
        if (((r = parseFloat(a, 10)), isFinite(r) && Math.floor(r) === r))
          return (
            ("-" !== a[0] && "+" !== a[0]) || (r = t + r),
            !(r === t || r < 0 || r >= n) && r
          );
        switch (a) {
          case "bottom":
            return "start";
          case "top":
            return "end";
          case "zero":
            return "origin";
          case "origin":
          case "start":
          case "end":
            return a;
          default:
            return !1;
        }
      }
      function pr(e) {
        return (e.el._scale || {}).getPointPositionForValue
          ? (function (e) {
              var t,
                n,
                r,
                o,
                a,
                i = e.el._scale,
                s = i.options,
                l = i.chart.data.labels.length,
                c = e.fill,
                u = [];
              if (!l) return null;
              for (
                t = s.ticks.reverse ? i.max : i.min,
                  n = s.ticks.reverse ? i.min : i.max,
                  r = i.getPointPositionForValue(0, t),
                  o = 0;
                o < l;
                ++o
              )
                (a =
                  "start" === c || "end" === c
                    ? i.getPointPositionForValue(o, "start" === c ? t : n)
                    : i.getBasePosition(o)),
                  s.gridLines.circular &&
                    ((a.cx = r.x),
                    (a.cy = r.y),
                    (a.angle = i.getIndexAngle(o) - Math.PI / 2)),
                  u.push(a);
              return u;
            })(e)
          : (function (e) {
              var t,
                n = e.el._model || {},
                r = e.el._scale || {},
                o = e.fill,
                a = null;
              if (isFinite(o)) return null;
              if (
                ("start" === o
                  ? (a = void 0 === n.scaleBottom ? r.bottom : n.scaleBottom)
                  : "end" === o
                  ? (a = void 0 === n.scaleTop ? r.top : n.scaleTop)
                  : void 0 !== n.scaleZero
                  ? (a = n.scaleZero)
                  : r.getBasePixel && (a = r.getBasePixel()),
                null != a)
              ) {
                if (void 0 !== a.x && void 0 !== a.y) return a;
                if (B.isFinite(a))
                  return {
                    x: (t = r.isHorizontal()) ? a : null,
                    y: t ? null : a,
                  };
              }
              return null;
            })(e);
      }
      function fr(e, t, n) {
        var r,
          o = e[t].fill,
          a = [t];
        if (!n) return o;
        for (; !1 !== o && -1 === a.indexOf(o); ) {
          if (!isFinite(o)) return o;
          if (!(r = e[o])) return !1;
          if (r.visible) return o;
          a.push(o), (o = r.fill);
        }
        return !1;
      }
      function mr(e) {
        var t = e.fill,
          n = "dataset";
        return !1 === t ? null : (isFinite(t) || (n = "boundary"), dr[n](e));
      }
      function gr(e) {
        return e && !e.skip;
      }
      function _r(e, t, n, r, o) {
        var a, i, s, l;
        if (r && o) {
          for (e.moveTo(t[0].x, t[0].y), a = 1; a < r; ++a)
            B.canvas.lineTo(e, t[a - 1], t[a]);
          if (void 0 === n[0].angle)
            for (e.lineTo(n[o - 1].x, n[o - 1].y), a = o - 1; a > 0; --a)
              B.canvas.lineTo(e, n[a], n[a - 1], !0);
          else
            for (
              i = n[0].cx,
                s = n[0].cy,
                l = Math.sqrt(
                  Math.pow(n[0].x - i, 2) + Math.pow(n[0].y - s, 2)
                ),
                a = o - 1;
              a > 0;
              --a
            )
              e.arc(i, s, l, n[a].angle, n[a - 1].angle, !0);
        }
      }
      function vr(e, t, n, r, o, a) {
        var i,
          s,
          l,
          c,
          u,
          d,
          h,
          p,
          f = t.length,
          m = r.spanGaps,
          g = [],
          _ = [],
          v = 0,
          b = 0;
        for (e.beginPath(), i = 0, s = f; i < s; ++i)
          (u = n((c = t[(l = i % f)]._view), l, r)),
            (d = gr(c)),
            (h = gr(u)),
            a && void 0 === p && d && (s = f + (p = i + 1)),
            d && h
              ? ((v = g.push(c)), (b = _.push(u)))
              : v &&
                b &&
                (m
                  ? (d && g.push(c), h && _.push(u))
                  : (_r(e, g, _, v, b), (v = b = 0), (g = []), (_ = [])));
        _r(e, g, _, v, b), e.closePath(), (e.fillStyle = o), e.fill();
      }
      var br = {
          id: "filler",
          afterDatasetsUpdate: function (e, t) {
            var n,
              r,
              o,
              a,
              i = (e.data.datasets || []).length,
              s = t.propagate,
              l = [];
            for (r = 0; r < i; ++r)
              (a = null),
                (o = (n = e.getDatasetMeta(r)).dataset) &&
                  o._model &&
                  o instanceof ke.Line &&
                  (a = {
                    visible: e.isDatasetVisible(r),
                    fill: hr(o, r, i),
                    chart: e,
                    el: o,
                  }),
                (n.$filler = a),
                l.push(a);
            for (r = 0; r < i; ++r)
              (a = l[r]) &&
                ((a.fill = fr(l, r, s)),
                (a.boundary = pr(a)),
                (a.mapper = mr(a)));
          },
          beforeDatasetsDraw: function (e) {
            var t,
              n,
              r,
              o,
              a,
              i,
              s,
              l = e._getSortedVisibleDatasetMetas(),
              c = e.ctx;
            for (n = l.length - 1; n >= 0; --n)
              (t = l[n].$filler) &&
                t.visible &&
                ((o = (r = t.el)._view),
                (a = r._children || []),
                (i = t.mapper),
                (s = o.backgroundColor || Y.global.defaultColor),
                i &&
                  s &&
                  a.length &&
                  (B.canvas.clipArea(c, e.chartArea),
                  vr(c, a, i, o, s, r._loop),
                  B.canvas.unclipArea(c)));
          },
        },
        yr = B.rtl.getRtlAdapter,
        wr = B.noop,
        kr = B.valueOrDefault;
      function xr(e, t) {
        return e.usePointStyle && e.boxWidth > t ? t : e.boxWidth;
      }
      Y._set("global", {
        legend: {
          display: !0,
          position: "top",
          align: "center",
          fullWidth: !0,
          reverse: !1,
          weight: 1e3,
          onClick: function (e, t) {
            var n = t.datasetIndex,
              r = this.chart,
              o = r.getDatasetMeta(n);
            (o.hidden = null === o.hidden ? !r.data.datasets[n].hidden : null),
              r.update();
          },
          onHover: null,
          onLeave: null,
          labels: {
            boxWidth: 40,
            padding: 10,
            generateLabels: function (e) {
              var t = e.data.datasets,
                n = e.options.legend || {},
                r = n.labels && n.labels.usePointStyle;
              return e._getSortedDatasetMetas().map(function (n) {
                var o = n.controller.getStyle(r ? 0 : void 0);
                return {
                  text: t[n.index].label,
                  fillStyle: o.backgroundColor,
                  hidden: !e.isDatasetVisible(n.index),
                  lineCap: o.borderCapStyle,
                  lineDash: o.borderDash,
                  lineDashOffset: o.borderDashOffset,
                  lineJoin: o.borderJoinStyle,
                  lineWidth: o.borderWidth,
                  strokeStyle: o.borderColor,
                  pointStyle: o.pointStyle,
                  rotation: o.rotation,
                  datasetIndex: n.index,
                };
              }, this);
            },
          },
        },
        legendCallback: function (e) {
          var t,
            n,
            r,
            o = document.createElement("ul"),
            a = e.data.datasets;
          for (
            o.setAttribute("class", e.id + "-legend"), t = 0, n = a.length;
            t < n;
            t++
          )
            ((r = o.appendChild(document.createElement("li"))).appendChild(
              document.createElement("span")
            ).style.backgroundColor = a[t].backgroundColor),
              a[t].label && r.appendChild(document.createTextNode(a[t].label));
          return o.outerHTML;
        },
      });
      var Mr = K.extend({
        initialize: function (e) {
          B.extend(this, e),
            (this.legendHitBoxes = []),
            (this._hoveredItem = null),
            (this.doughnutMode = !1);
        },
        beforeUpdate: wr,
        update: function (e, t, n) {
          var r = this;
          return (
            r.beforeUpdate(),
            (r.maxWidth = e),
            (r.maxHeight = t),
            (r.margins = n),
            r.beforeSetDimensions(),
            r.setDimensions(),
            r.afterSetDimensions(),
            r.beforeBuildLabels(),
            r.buildLabels(),
            r.afterBuildLabels(),
            r.beforeFit(),
            r.fit(),
            r.afterFit(),
            r.afterUpdate(),
            r.minSize
          );
        },
        afterUpdate: wr,
        beforeSetDimensions: wr,
        setDimensions: function () {
          var e = this;
          e.isHorizontal()
            ? ((e.width = e.maxWidth), (e.left = 0), (e.right = e.width))
            : ((e.height = e.maxHeight), (e.top = 0), (e.bottom = e.height)),
            (e.paddingLeft = 0),
            (e.paddingTop = 0),
            (e.paddingRight = 0),
            (e.paddingBottom = 0),
            (e.minSize = { width: 0, height: 0 });
        },
        afterSetDimensions: wr,
        beforeBuildLabels: wr,
        buildLabels: function () {
          var e = this,
            t = e.options.labels || {},
            n = B.callback(t.generateLabels, [e.chart], e) || [];
          t.filter &&
            (n = n.filter(function (n) {
              return t.filter(n, e.chart.data);
            })),
            e.options.reverse && n.reverse(),
            (e.legendItems = n);
        },
        afterBuildLabels: wr,
        beforeFit: wr,
        fit: function () {
          var e = this,
            t = e.options,
            n = t.labels,
            r = t.display,
            o = e.ctx,
            a = B.options._parseFont(n),
            i = a.size,
            s = (e.legendHitBoxes = []),
            l = e.minSize,
            c = e.isHorizontal();
          if (
            (c
              ? ((l.width = e.maxWidth), (l.height = r ? 10 : 0))
              : ((l.width = r ? 10 : 0), (l.height = e.maxHeight)),
            r)
          ) {
            if (((o.font = a.string), c)) {
              var u = (e.lineWidths = [0]),
                d = 0;
              (o.textAlign = "left"),
                (o.textBaseline = "middle"),
                B.each(e.legendItems, function (e, t) {
                  var r = xr(n, i) + i / 2 + o.measureText(e.text).width;
                  (0 === t || u[u.length - 1] + r + 2 * n.padding > l.width) &&
                    ((d += i + n.padding), (u[u.length - (t > 0 ? 0 : 1)] = 0)),
                    (s[t] = { left: 0, top: 0, width: r, height: i }),
                    (u[u.length - 1] += r + n.padding);
                }),
                (l.height += d);
            } else {
              var h = n.padding,
                p = (e.columnWidths = []),
                f = (e.columnHeights = []),
                m = n.padding,
                g = 0,
                _ = 0;
              B.each(e.legendItems, function (e, t) {
                var r = xr(n, i) + i / 2 + o.measureText(e.text).width;
                t > 0 &&
                  _ + i + 2 * h > l.height &&
                  ((m += g + n.padding),
                  p.push(g),
                  f.push(_),
                  (g = 0),
                  (_ = 0)),
                  (g = Math.max(g, r)),
                  (_ += i + h),
                  (s[t] = { left: 0, top: 0, width: r, height: i });
              }),
                (m += g),
                p.push(g),
                f.push(_),
                (l.width += m);
            }
            (e.width = l.width), (e.height = l.height);
          } else e.width = l.width = e.height = l.height = 0;
        },
        afterFit: wr,
        isHorizontal: function () {
          return (
            "top" === this.options.position ||
            "bottom" === this.options.position
          );
        },
        draw: function () {
          var e = this,
            t = e.options,
            n = t.labels,
            r = Y.global,
            o = r.defaultColor,
            a = r.elements.line,
            i = e.height,
            s = e.columnHeights,
            l = e.width,
            c = e.lineWidths;
          if (t.display) {
            var u,
              d = yr(t.rtl, e.left, e.minSize.width),
              h = e.ctx,
              p = kr(n.fontColor, r.defaultFontColor),
              f = B.options._parseFont(n),
              m = f.size;
            (h.textAlign = d.textAlign("left")),
              (h.textBaseline = "middle"),
              (h.lineWidth = 0.5),
              (h.strokeStyle = p),
              (h.fillStyle = p),
              (h.font = f.string);
            var g = xr(n, m),
              _ = e.legendHitBoxes,
              v = function (e, r) {
                switch (t.align) {
                  case "start":
                    return n.padding;
                  case "end":
                    return e - r;
                  default:
                    return (e - r + n.padding) / 2;
                }
              },
              b = e.isHorizontal();
            (u = b
              ? { x: e.left + v(l, c[0]), y: e.top + n.padding, line: 0 }
              : { x: e.left + n.padding, y: e.top + v(i, s[0]), line: 0 }),
              B.rtl.overrideTextDirection(e.ctx, t.textDirection);
            var y = m + n.padding;
            B.each(e.legendItems, function (t, r) {
              var p = h.measureText(t.text).width,
                f = g + m / 2 + p,
                w = u.x,
                k = u.y;
              d.setWidth(e.minSize.width),
                b
                  ? r > 0 &&
                    w + f + n.padding > e.left + e.minSize.width &&
                    ((k = u.y += y),
                    u.line++,
                    (w = u.x = e.left + v(l, c[u.line])))
                  : r > 0 &&
                    k + y > e.top + e.minSize.height &&
                    ((w = u.x = w + e.columnWidths[u.line] + n.padding),
                    u.line++,
                    (k = u.y = e.top + v(i, s[u.line])));
              var x = d.x(w);
              !(function (e, t, r) {
                if (!(isNaN(g) || g <= 0)) {
                  h.save();
                  var i = kr(r.lineWidth, a.borderWidth);
                  if (
                    ((h.fillStyle = kr(r.fillStyle, o)),
                    (h.lineCap = kr(r.lineCap, a.borderCapStyle)),
                    (h.lineDashOffset = kr(
                      r.lineDashOffset,
                      a.borderDashOffset
                    )),
                    (h.lineJoin = kr(r.lineJoin, a.borderJoinStyle)),
                    (h.lineWidth = i),
                    (h.strokeStyle = kr(r.strokeStyle, o)),
                    h.setLineDash &&
                      h.setLineDash(kr(r.lineDash, a.borderDash)),
                    n && n.usePointStyle)
                  ) {
                    var s = (g * Math.SQRT2) / 2,
                      l = d.xPlus(e, g / 2),
                      c = t + m / 2;
                    B.canvas.drawPoint(h, r.pointStyle, s, l, c, r.rotation);
                  } else
                    h.fillRect(d.leftForLtr(e, g), t, g, m),
                      0 !== i && h.strokeRect(d.leftForLtr(e, g), t, g, m);
                  h.restore();
                }
              })(x, k, t),
                (_[r].left = d.leftForLtr(x, _[r].width)),
                (_[r].top = k),
                (function (e, t, n, r) {
                  var o = m / 2,
                    a = d.xPlus(e, g + o),
                    i = t + o;
                  h.fillText(n.text, a, i),
                    n.hidden &&
                      (h.beginPath(),
                      (h.lineWidth = 2),
                      h.moveTo(a, i),
                      h.lineTo(d.xPlus(a, r), i),
                      h.stroke());
                })(x, k, t, p),
                b ? (u.x += f + n.padding) : (u.y += y);
            }),
              B.rtl.restoreTextDirection(e.ctx, t.textDirection);
          }
        },
        _getLegendItemAt: function (e, t) {
          var n,
            r,
            o,
            a = this;
          if (e >= a.left && e <= a.right && t >= a.top && t <= a.bottom)
            for (o = a.legendHitBoxes, n = 0; n < o.length; ++n)
              if (
                e >= (r = o[n]).left &&
                e <= r.left + r.width &&
                t >= r.top &&
                t <= r.top + r.height
              )
                return a.legendItems[n];
          return null;
        },
        handleEvent: function (e) {
          var t,
            n = this,
            r = n.options,
            o = "mouseup" === e.type ? "click" : e.type;
          if ("mousemove" === o) {
            if (!r.onHover && !r.onLeave) return;
          } else {
            if ("click" !== o) return;
            if (!r.onClick) return;
          }
          (t = n._getLegendItemAt(e.x, e.y)),
            "click" === o
              ? t && r.onClick && r.onClick.call(n, e.native, t)
              : (r.onLeave &&
                  t !== n._hoveredItem &&
                  (n._hoveredItem &&
                    r.onLeave.call(n, e.native, n._hoveredItem),
                  (n._hoveredItem = t)),
                r.onHover && t && r.onHover.call(n, e.native, t));
        },
      });
      function Er(e, t) {
        var n = new Mr({ ctx: e.ctx, options: t, chart: e });
        mt.configure(e, n, t), mt.addBox(e, n), (e.legend = n);
      }
      var Tr = {
          id: "legend",
          _element: Mr,
          beforeInit: function (e) {
            var t = e.options.legend;
            t && Er(e, t);
          },
          beforeUpdate: function (e) {
            var t = e.options.legend,
              n = e.legend;
            t
              ? (B.mergeIf(t, Y.global.legend),
                n ? (mt.configure(e, n, t), (n.options = t)) : Er(e, t))
              : n && (mt.removeBox(e, n), delete e.legend);
          },
          afterEvent: function (e, t) {
            var n = e.legend;
            n && n.handleEvent(t);
          },
        },
        Sr = B.noop;
      Y._set("global", {
        title: {
          display: !1,
          fontStyle: "bold",
          fullWidth: !0,
          padding: 10,
          position: "top",
          text: "",
          weight: 2e3,
        },
      });
      var Dr = K.extend({
        initialize: function (e) {
          B.extend(this, e), (this.legendHitBoxes = []);
        },
        beforeUpdate: Sr,
        update: function (e, t, n) {
          var r = this;
          return (
            r.beforeUpdate(),
            (r.maxWidth = e),
            (r.maxHeight = t),
            (r.margins = n),
            r.beforeSetDimensions(),
            r.setDimensions(),
            r.afterSetDimensions(),
            r.beforeBuildLabels(),
            r.buildLabels(),
            r.afterBuildLabels(),
            r.beforeFit(),
            r.fit(),
            r.afterFit(),
            r.afterUpdate(),
            r.minSize
          );
        },
        afterUpdate: Sr,
        beforeSetDimensions: Sr,
        setDimensions: function () {
          var e = this;
          e.isHorizontal()
            ? ((e.width = e.maxWidth), (e.left = 0), (e.right = e.width))
            : ((e.height = e.maxHeight), (e.top = 0), (e.bottom = e.height)),
            (e.paddingLeft = 0),
            (e.paddingTop = 0),
            (e.paddingRight = 0),
            (e.paddingBottom = 0),
            (e.minSize = { width: 0, height: 0 });
        },
        afterSetDimensions: Sr,
        beforeBuildLabels: Sr,
        buildLabels: Sr,
        afterBuildLabels: Sr,
        beforeFit: Sr,
        fit: function () {
          var e,
            t = this,
            n = t.options,
            r = (t.minSize = {}),
            o = t.isHorizontal();
          n.display
            ? ((e =
                (B.isArray(n.text) ? n.text.length : 1) *
                  B.options._parseFont(n).lineHeight +
                2 * n.padding),
              (t.width = r.width = o ? t.maxWidth : e),
              (t.height = r.height = o ? e : t.maxHeight))
            : (t.width = r.width = t.height = r.height = 0);
        },
        afterFit: Sr,
        isHorizontal: function () {
          var e = this.options.position;
          return "top" === e || "bottom" === e;
        },
        draw: function () {
          var e = this,
            t = e.ctx,
            n = e.options;
          if (n.display) {
            var r,
              o,
              a,
              i = B.options._parseFont(n),
              s = i.lineHeight,
              l = s / 2 + n.padding,
              c = 0,
              u = e.top,
              d = e.left,
              h = e.bottom,
              p = e.right;
            (t.fillStyle = B.valueOrDefault(
              n.fontColor,
              Y.global.defaultFontColor
            )),
              (t.font = i.string),
              e.isHorizontal()
                ? ((o = d + (p - d) / 2), (a = u + l), (r = p - d))
                : ((o = "left" === n.position ? d + l : p - l),
                  (a = u + (h - u) / 2),
                  (r = h - u),
                  (c = Math.PI * ("left" === n.position ? -0.5 : 0.5))),
              t.save(),
              t.translate(o, a),
              t.rotate(c),
              (t.textAlign = "center"),
              (t.textBaseline = "middle");
            var f = n.text;
            if (B.isArray(f))
              for (var m = 0, g = 0; g < f.length; ++g)
                t.fillText(f[g], 0, m, r), (m += s);
            else t.fillText(f, 0, 0, r);
            t.restore();
          }
        },
      });
      function Lr(e, t) {
        var n = new Dr({ ctx: e.ctx, options: t, chart: e });
        mt.configure(e, n, t), mt.addBox(e, n), (e.titleBlock = n);
      }
      var Cr = {},
        Pr = br,
        Or = Tr,
        Nr = {
          id: "title",
          _element: Dr,
          beforeInit: function (e) {
            var t = e.options.title;
            t && Lr(e, t);
          },
          beforeUpdate: function (e) {
            var t = e.options.title,
              n = e.titleBlock;
            t
              ? (B.mergeIf(t, Y.global.title),
                n ? (mt.configure(e, n, t), (n.options = t)) : Lr(e, t))
              : n && (mt.removeBox(e, n), delete e.titleBlock);
          },
        };
      for (var Ar in ((Cr.filler = Pr),
      (Cr.legend = Or),
      (Cr.title = Nr),
      (Xt.helpers = B),
      (function () {
        function e(e, t, n) {
          var r;
          return (
            "string" == typeof e
              ? ((r = parseInt(e, 10)),
                -1 !== e.indexOf("%") && (r = (r / 100) * t.parentNode[n]))
              : (r = e),
            r
          );
        }
        function t(e) {
          return null != e && "none" !== e;
        }
        function n(n, r, o) {
          var a = document.defaultView,
            i = B._getParentNode(n),
            s = a.getComputedStyle(n)[r],
            l = a.getComputedStyle(i)[r],
            c = t(s),
            u = t(l),
            d = Number.POSITIVE_INFINITY;
          return c || u
            ? Math.min(c ? e(s, n, o) : d, u ? e(l, i, o) : d)
            : "none";
        }
        (B.where = function (e, t) {
          if (B.isArray(e) && Array.prototype.filter) return e.filter(t);
          var n = [];
          return (
            B.each(e, function (e) {
              t(e) && n.push(e);
            }),
            n
          );
        }),
          (B.findIndex = Array.prototype.findIndex
            ? function (e, t, n) {
                return e.findIndex(t, n);
              }
            : function (e, t, n) {
                n = void 0 === n ? e : n;
                for (var r = 0, o = e.length; r < o; ++r)
                  if (t.call(n, e[r], r, e)) return r;
                return -1;
              }),
          (B.findNextWhere = function (e, t, n) {
            B.isNullOrUndef(n) && (n = -1);
            for (var r = n + 1; r < e.length; r++) {
              var o = e[r];
              if (t(o)) return o;
            }
          }),
          (B.findPreviousWhere = function (e, t, n) {
            B.isNullOrUndef(n) && (n = e.length);
            for (var r = n - 1; r >= 0; r--) {
              var o = e[r];
              if (t(o)) return o;
            }
          }),
          (B.isNumber = function (e) {
            return !isNaN(parseFloat(e)) && isFinite(e);
          }),
          (B.almostEquals = function (e, t, n) {
            return Math.abs(e - t) < n;
          }),
          (B.almostWhole = function (e, t) {
            var n = Math.round(e);
            return n - t <= e && n + t >= e;
          }),
          (B.max = function (e) {
            return e.reduce(function (e, t) {
              return isNaN(t) ? e : Math.max(e, t);
            }, Number.NEGATIVE_INFINITY);
          }),
          (B.min = function (e) {
            return e.reduce(function (e, t) {
              return isNaN(t) ? e : Math.min(e, t);
            }, Number.POSITIVE_INFINITY);
          }),
          (B.sign = Math.sign
            ? function (e) {
                return Math.sign(e);
              }
            : function (e) {
                return 0 == (e = +e) || isNaN(e) ? e : e > 0 ? 1 : -1;
              }),
          (B.toRadians = function (e) {
            return e * (Math.PI / 180);
          }),
          (B.toDegrees = function (e) {
            return e * (180 / Math.PI);
          }),
          (B._decimalPlaces = function (e) {
            if (B.isFinite(e)) {
              for (var t = 1, n = 0; Math.round(e * t) / t !== e; )
                (t *= 10), n++;
              return n;
            }
          }),
          (B.getAngleFromPoint = function (e, t) {
            var n = t.x - e.x,
              r = t.y - e.y,
              o = Math.sqrt(n * n + r * r),
              a = Math.atan2(r, n);
            return (
              a < -0.5 * Math.PI && (a += 2 * Math.PI),
              { angle: a, distance: o }
            );
          }),
          (B.distanceBetweenPoints = function (e, t) {
            return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
          }),
          (B.aliasPixel = function (e) {
            return e % 2 == 0 ? 0 : 0.5;
          }),
          (B._alignPixel = function (e, t, n) {
            var r = e.currentDevicePixelRatio,
              o = n / 2;
            return Math.round((t - o) * r) / r + o;
          }),
          (B.splineCurve = function (e, t, n, r) {
            var o = e.skip ? t : e,
              a = t,
              i = n.skip ? t : n,
              s = Math.sqrt(Math.pow(a.x - o.x, 2) + Math.pow(a.y - o.y, 2)),
              l = Math.sqrt(Math.pow(i.x - a.x, 2) + Math.pow(i.y - a.y, 2)),
              c = s / (s + l),
              u = l / (s + l),
              d = r * (c = isNaN(c) ? 0 : c),
              h = r * (u = isNaN(u) ? 0 : u);
            return {
              previous: { x: a.x - d * (i.x - o.x), y: a.y - d * (i.y - o.y) },
              next: { x: a.x + h * (i.x - o.x), y: a.y + h * (i.y - o.y) },
            };
          }),
          (B.EPSILON = Number.EPSILON || 1e-14),
          (B.splineCurveMonotone = function (e) {
            var t,
              n,
              r,
              o,
              a,
              i,
              s,
              l,
              c,
              u = (e || []).map(function (e) {
                return { model: e._model, deltaK: 0, mK: 0 };
              }),
              d = u.length;
            for (t = 0; t < d; ++t)
              if (!(r = u[t]).model.skip) {
                if (
                  ((n = t > 0 ? u[t - 1] : null),
                  (o = t < d - 1 ? u[t + 1] : null) && !o.model.skip)
                ) {
                  var h = o.model.x - r.model.x;
                  r.deltaK = 0 !== h ? (o.model.y - r.model.y) / h : 0;
                }
                !n || n.model.skip
                  ? (r.mK = r.deltaK)
                  : !o || o.model.skip
                  ? (r.mK = n.deltaK)
                  : this.sign(n.deltaK) !== this.sign(r.deltaK)
                  ? (r.mK = 0)
                  : (r.mK = (n.deltaK + r.deltaK) / 2);
              }
            for (t = 0; t < d - 1; ++t)
              (r = u[t]),
                (o = u[t + 1]),
                r.model.skip ||
                  o.model.skip ||
                  (B.almostEquals(r.deltaK, 0, this.EPSILON)
                    ? (r.mK = o.mK = 0)
                    : ((a = r.mK / r.deltaK),
                      (i = o.mK / r.deltaK),
                      (l = Math.pow(a, 2) + Math.pow(i, 2)) <= 9 ||
                        ((s = 3 / Math.sqrt(l)),
                        (r.mK = a * s * r.deltaK),
                        (o.mK = i * s * r.deltaK))));
            for (t = 0; t < d; ++t)
              (r = u[t]).model.skip ||
                ((n = t > 0 ? u[t - 1] : null),
                (o = t < d - 1 ? u[t + 1] : null),
                n &&
                  !n.model.skip &&
                  ((c = (r.model.x - n.model.x) / 3),
                  (r.model.controlPointPreviousX = r.model.x - c),
                  (r.model.controlPointPreviousY = r.model.y - c * r.mK)),
                o &&
                  !o.model.skip &&
                  ((c = (o.model.x - r.model.x) / 3),
                  (r.model.controlPointNextX = r.model.x + c),
                  (r.model.controlPointNextY = r.model.y + c * r.mK)));
          }),
          (B.nextItem = function (e, t, n) {
            return n
              ? t >= e.length - 1
                ? e[0]
                : e[t + 1]
              : t >= e.length - 1
              ? e[e.length - 1]
              : e[t + 1];
          }),
          (B.previousItem = function (e, t, n) {
            return n
              ? t <= 0
                ? e[e.length - 1]
                : e[t - 1]
              : t <= 0
              ? e[0]
              : e[t - 1];
          }),
          (B.niceNum = function (e, t) {
            var n = Math.floor(B.log10(e)),
              r = e / Math.pow(10, n);
            return (
              (t
                ? r < 1.5
                  ? 1
                  : r < 3
                  ? 2
                  : r < 7
                  ? 5
                  : 10
                : r <= 1
                ? 1
                : r <= 2
                ? 2
                : r <= 5
                ? 5
                : 10) * Math.pow(10, n)
            );
          }),
          (B.requestAnimFrame =
            "undefined" == typeof window
              ? function (e) {
                  e();
                }
              : window.requestAnimationFrame ||
                window.webkitRequestAnimationFrame ||
                window.mozRequestAnimationFrame ||
                window.oRequestAnimationFrame ||
                window.msRequestAnimationFrame ||
                function (e) {
                  return window.setTimeout(e, 1e3 / 60);
                }),
          (B.getRelativePosition = function (e, t) {
            var n,
              r,
              o = e.originalEvent || e,
              a = e.target || e.srcElement,
              i = a.getBoundingClientRect(),
              s = o.touches;
            s && s.length > 0
              ? ((n = s[0].clientX), (r = s[0].clientY))
              : ((n = o.clientX), (r = o.clientY));
            var l = parseFloat(B.getStyle(a, "padding-left")),
              c = parseFloat(B.getStyle(a, "padding-top")),
              u = parseFloat(B.getStyle(a, "padding-right")),
              d = parseFloat(B.getStyle(a, "padding-bottom")),
              h = i.right - i.left - l - u,
              p = i.bottom - i.top - c - d;
            return {
              x: (n = Math.round(
                (((n - i.left - l) / h) * a.width) / t.currentDevicePixelRatio
              )),
              y: (r = Math.round(
                (((r - i.top - c) / p) * a.height) / t.currentDevicePixelRatio
              )),
            };
          }),
          (B.getConstraintWidth = function (e) {
            return n(e, "max-width", "clientWidth");
          }),
          (B.getConstraintHeight = function (e) {
            return n(e, "max-height", "clientHeight");
          }),
          (B._calculatePadding = function (e, t, n) {
            return (t = B.getStyle(e, t)).indexOf("%") > -1
              ? (n * parseInt(t, 10)) / 100
              : parseInt(t, 10);
          }),
          (B._getParentNode = function (e) {
            var t = e.parentNode;
            return (
              t && "[object ShadowRoot]" === t.toString() && (t = t.host), t
            );
          }),
          (B.getMaximumWidth = function (e) {
            var t = B._getParentNode(e);
            if (!t) return e.clientWidth;
            var n = t.clientWidth,
              r =
                n -
                B._calculatePadding(t, "padding-left", n) -
                B._calculatePadding(t, "padding-right", n),
              o = B.getConstraintWidth(e);
            return isNaN(o) ? r : Math.min(r, o);
          }),
          (B.getMaximumHeight = function (e) {
            var t = B._getParentNode(e);
            if (!t) return e.clientHeight;
            var n = t.clientHeight,
              r =
                n -
                B._calculatePadding(t, "padding-top", n) -
                B._calculatePadding(t, "padding-bottom", n),
              o = B.getConstraintHeight(e);
            return isNaN(o) ? r : Math.min(r, o);
          }),
          (B.getStyle = function (e, t) {
            return e.currentStyle
              ? e.currentStyle[t]
              : document.defaultView
                  .getComputedStyle(e, null)
                  .getPropertyValue(t);
          }),
          (B.retinaScale = function (e, t) {
            var n = (e.currentDevicePixelRatio =
              t ||
              ("undefined" != typeof window && window.devicePixelRatio) ||
              1);
            if (1 !== n) {
              var r = e.canvas,
                o = e.height,
                a = e.width;
              (r.height = o * n),
                (r.width = a * n),
                e.ctx.scale(n, n),
                r.style.height ||
                  r.style.width ||
                  ((r.style.height = o + "px"), (r.style.width = a + "px"));
            }
          }),
          (B.fontString = function (e, t, n) {
            return t + " " + e + "px " + n;
          }),
          (B.longestText = function (e, t, n, r) {
            var o = ((r = r || {}).data = r.data || {}),
              a = (r.garbageCollect = r.garbageCollect || []);
            r.font !== t &&
              ((o = r.data = {}), (a = r.garbageCollect = []), (r.font = t)),
              (e.font = t);
            var i,
              s,
              l,
              c,
              u,
              d = 0,
              h = n.length;
            for (i = 0; i < h; i++)
              if (null != (c = n[i]) && !0 !== B.isArray(c))
                d = B.measureText(e, o, a, d, c);
              else if (B.isArray(c))
                for (s = 0, l = c.length; s < l; s++)
                  null == (u = c[s]) ||
                    B.isArray(u) ||
                    (d = B.measureText(e, o, a, d, u));
            var p = a.length / 2;
            if (p > n.length) {
              for (i = 0; i < p; i++) delete o[a[i]];
              a.splice(0, p);
            }
            return d;
          }),
          (B.measureText = function (e, t, n, r, o) {
            var a = t[o];
            return (
              a || ((a = t[o] = e.measureText(o).width), n.push(o)),
              a > r && (r = a),
              r
            );
          }),
          (B.numberOfLabelLines = function (e) {
            var t = 1;
            return (
              B.each(e, function (e) {
                B.isArray(e) && e.length > t && (t = e.length);
              }),
              t
            );
          }),
          (B.color = w
            ? function (e) {
                return (
                  e instanceof CanvasGradient && (e = Y.global.defaultColor),
                  w(e)
                );
              }
            : function (e) {
                return console.error("Color.js not found!"), e;
              }),
          (B.getHoverColor = function (e) {
            return e instanceof CanvasPattern || e instanceof CanvasGradient
              ? e
              : B.color(e).saturate(0.5).darken(0.1).rgbString();
          });
      })(),
      (Xt._adapters = en),
      (Xt.Animation = X),
      (Xt.animationService = $),
      (Xt.controllers = $e),
      (Xt.DatasetController = re),
      (Xt.defaults = Y),
      (Xt.Element = K),
      (Xt.elements = ke),
      (Xt.Interaction = at),
      (Xt.layouts = mt),
      (Xt.platform = Lt),
      (Xt.plugins = Ct),
      (Xt.Scale = gn),
      (Xt.scaleService = Pt),
      (Xt.Ticks = tn),
      (Xt.Tooltip = Bt),
      Xt.helpers.each(cr, function (e, t) {
        Xt.scaleService.registerScaleType(t, e, e._defaults);
      }),
      Cr))
        Cr.hasOwnProperty(Ar) && Xt.plugins.register(Cr[Ar]);
      Xt.platform.initialize();
      var Ir = Xt;
      return (
        "undefined" != typeof window && (window.Chart = Xt),
        (Xt.Chart = Xt),
        (Xt.Legend = Cr.legend._element),
        (Xt.Title = Cr.title._element),
        (Xt.pluginService = Xt.plugins),
        (Xt.PluginBase = Xt.Element.extend({})),
        (Xt.canvasHelpers = Xt.helpers.canvas),
        (Xt.layoutService = Xt.layouts),
        (Xt.LinearScaleBase = kn),
        Xt.helpers.each(
          [
            "Bar",
            "Bubble",
            "Doughnut",
            "Line",
            "PolarArea",
            "Radar",
            "Scatter",
          ],
          function (e) {
            Xt[e] = function (t, n) {
              return new Xt(
                t,
                Xt.helpers.merge(n || {}, {
                  type: e.charAt(0).toLowerCase() + e.slice(1),
                })
              );
            };
          }
        ),
        Ir
      );
    })(
      (function () {
        try {
          return n(3);
        } catch (e) {}
      })()
    );
  },
  function (e, t, n) {
    var r = n(66);
    e.exports = function (e, t) {
      return r(e, t);
    };
  },
  function (e, t, n) {
    var r = n(238),
      o = n(243),
      a = n(389),
      i = n(393),
      s = n(411),
      l = n(25),
      c = n(245),
      u = n(247),
      d = "[object Object]",
      h = Object.prototype.hasOwnProperty;
    e.exports = function (e, t, n, p, f, m) {
      var g = l(e),
        _ = l(t),
        v = g ? "[object Array]" : s(e),
        b = _ ? "[object Array]" : s(t),
        y = (v = "[object Arguments]" == v ? d : v) == d,
        w = (b = "[object Arguments]" == b ? d : b) == d,
        k = v == b;
      if (k && c(e)) {
        if (!c(t)) return !1;
        (g = !0), (y = !1);
      }
      if (k && !y)
        return (
          m || (m = new r()),
          g || u(e) ? o(e, t, n, p, f, m) : a(e, t, v, n, p, f, m)
        );
      if (!(1 & n)) {
        var x = y && h.call(e, "__wrapped__"),
          M = w && h.call(t, "__wrapped__");
        if (x || M) {
          var E = x ? e.value() : e,
            T = M ? t.value() : t;
          return m || (m = new r()), f(E, T, n, p, m);
        }
      }
      return !!k && (m || (m = new r()), i(e, t, n, p, f, m));
    };
  },
  function (e, t) {
    e.exports = function () {
      (this.__data__ = []), (this.size = 0);
    };
  },
  function (e, t, n) {
    var r = n(46),
      o = Array.prototype.splice;
    e.exports = function (e) {
      var t = this.__data__,
        n = r(t, e);
      return (
        !(n < 0) &&
        (n == t.length - 1 ? t.pop() : o.call(t, n, 1), --this.size, !0)
      );
    };
  },
  function (e, t, n) {
    var r = n(46);
    e.exports = function (e) {
      var t = this.__data__,
        n = r(t, e);
      return n < 0 ? void 0 : t[n][1];
    };
  },
  function (e, t, n) {
    var r = n(46);
    e.exports = function (e) {
      return r(this.__data__, e) > -1;
    };
  },
  function (e, t, n) {
    var r = n(46);
    e.exports = function (e, t) {
      var n = this.__data__,
        o = r(n, e);
      return o < 0 ? (++this.size, n.push([e, t])) : (n[o][1] = t), this;
    };
  },
  function (e, t, n) {
    var r = n(45);
    e.exports = function () {
      (this.__data__ = new r()), (this.size = 0);
    };
  },
  function (e, t) {
    e.exports = function (e) {
      var t = this.__data__,
        n = t.delete(e);
      return (this.size = t.size), n;
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return this.__data__.get(e);
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return this.__data__.has(e);
    };
  },
  function (e, t, n) {
    var r = n(45),
      o = n(67),
      a = n(69);
    e.exports = function (e, t) {
      var n = this.__data__;
      if (n instanceof r) {
        var i = n.__data__;
        if (!o || i.length < 199)
          return i.push([e, t]), (this.size = ++n.size), this;
        n = this.__data__ = new a(i);
      }
      return n.set(e, t), (this.size = n.size), this;
    };
  },
  function (e, t, n) {
    var r = n(240),
      o = n(369),
      a = n(68),
      i = n(242),
      s = /^\[object .+?Constructor\]$/,
      l = Function.prototype,
      c = Object.prototype,
      u = l.toString,
      d = c.hasOwnProperty,
      h = RegExp(
        "^" +
          u
            .call(d)
            .replace(/[\\^$.*+?()[\]{}|]/g, "\\$&")
            .replace(
              /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
              "$1.*?"
            ) +
          "$"
      );
    e.exports = function (e) {
      return !(!a(e) || o(e)) && (r(e) ? h : s).test(i(e));
    };
  },
  function (e, t, n) {
    var r = n(47),
      o = Object.prototype,
      a = o.hasOwnProperty,
      i = o.toString,
      s = r ? r.toStringTag : void 0;
    e.exports = function (e) {
      var t = a.call(e, s),
        n = e[s];
      try {
        e[s] = void 0;
        var r = !0;
      } catch (e) {}
      var o = i.call(e);
      return r && (t ? (e[s] = n) : delete e[s]), o;
    };
  },
  function (e, t) {
    var n = Object.prototype.toString;
    e.exports = function (e) {
      return n.call(e);
    };
  },
  function (e, t, n) {
    var r,
      o = n(370),
      a = (r = /[^.]+$/.exec((o && o.keys && o.keys.IE_PROTO) || ""))
        ? "Symbol(src)_1." + r
        : "";
    e.exports = function (e) {
      return !!a && a in e;
    };
  },
  function (e, t, n) {
    var r = n(24)["__core-js_shared__"];
    e.exports = r;
  },
  function (e, t) {
    e.exports = function (e, t) {
      return null == e ? void 0 : e[t];
    };
  },
  function (e, t, n) {
    var r = n(373),
      o = n(45),
      a = n(67);
    e.exports = function () {
      (this.size = 0),
        (this.__data__ = {
          hash: new r(),
          map: new (a || o)(),
          string: new r(),
        });
    };
  },
  function (e, t, n) {
    var r = n(374),
      o = n(375),
      a = n(376),
      i = n(377),
      s = n(378);
    function l(e) {
      var t = -1,
        n = null == e ? 0 : e.length;
      for (this.clear(); ++t < n; ) {
        var r = e[t];
        this.set(r[0], r[1]);
      }
    }
    (l.prototype.clear = r),
      (l.prototype.delete = o),
      (l.prototype.get = a),
      (l.prototype.has = i),
      (l.prototype.set = s),
      (e.exports = l);
  },
  function (e, t, n) {
    var r = n(48);
    e.exports = function () {
      (this.__data__ = r ? r(null) : {}), (this.size = 0);
    };
  },
  function (e, t) {
    e.exports = function (e) {
      var t = this.has(e) && delete this.__data__[e];
      return (this.size -= t ? 1 : 0), t;
    };
  },
  function (e, t, n) {
    var r = n(48),
      o = Object.prototype.hasOwnProperty;
    e.exports = function (e) {
      var t = this.__data__;
      if (r) {
        var n = t[e];
        return "__lodash_hash_undefined__" === n ? void 0 : n;
      }
      return o.call(t, e) ? t[e] : void 0;
    };
  },
  function (e, t, n) {
    var r = n(48),
      o = Object.prototype.hasOwnProperty;
    e.exports = function (e) {
      var t = this.__data__;
      return r ? void 0 !== t[e] : o.call(t, e);
    };
  },
  function (e, t, n) {
    var r = n(48);
    e.exports = function (e, t) {
      var n = this.__data__;
      return (
        (this.size += this.has(e) ? 0 : 1),
        (n[e] = r && void 0 === t ? "__lodash_hash_undefined__" : t),
        this
      );
    };
  },
  function (e, t, n) {
    var r = n(49);
    e.exports = function (e) {
      var t = r(this, e).delete(e);
      return (this.size -= t ? 1 : 0), t;
    };
  },
  function (e, t) {
    e.exports = function (e) {
      var t = typeof e;
      return "string" == t || "number" == t || "symbol" == t || "boolean" == t
        ? "__proto__" !== e
        : null === e;
    };
  },
  function (e, t, n) {
    var r = n(49);
    e.exports = function (e) {
      return r(this, e).get(e);
    };
  },
  function (e, t, n) {
    var r = n(49);
    e.exports = function (e) {
      return r(this, e).has(e);
    };
  },
  function (e, t, n) {
    var r = n(49);
    e.exports = function (e, t) {
      var n = r(this, e),
        o = n.size;
      return n.set(e, t), (this.size += n.size == o ? 0 : 1), this;
    };
  },
  function (e, t, n) {
    var r = n(69),
      o = n(385),
      a = n(386);
    function i(e) {
      var t = -1,
        n = null == e ? 0 : e.length;
      for (this.__data__ = new r(); ++t < n; ) this.add(e[t]);
    }
    (i.prototype.add = i.prototype.push = o),
      (i.prototype.has = a),
      (e.exports = i);
  },
  function (e, t) {
    e.exports = function (e) {
      return this.__data__.set(e, "__lodash_hash_undefined__"), this;
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return this.__data__.has(e);
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
        if (t(e[n], n, e)) return !0;
      return !1;
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      return e.has(t);
    };
  },
  function (e, t, n) {
    var r = n(47),
      o = n(390),
      a = n(239),
      i = n(243),
      s = n(391),
      l = n(392),
      c = r ? r.prototype : void 0,
      u = c ? c.valueOf : void 0;
    e.exports = function (e, t, n, r, c, d, h) {
      switch (n) {
        case "[object DataView]":
          if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
            return !1;
          (e = e.buffer), (t = t.buffer);
        case "[object ArrayBuffer]":
          return !(e.byteLength != t.byteLength || !d(new o(e), new o(t)));
        case "[object Boolean]":
        case "[object Date]":
        case "[object Number]":
          return a(+e, +t);
        case "[object Error]":
          return e.name == t.name && e.message == t.message;
        case "[object RegExp]":
        case "[object String]":
          return e == t + "";
        case "[object Map]":
          var p = s;
        case "[object Set]":
          var f = 1 & r;
          if ((p || (p = l), e.size != t.size && !f)) return !1;
          var m = h.get(e);
          if (m) return m == t;
          (r |= 2), h.set(e, t);
          var g = i(p(e), p(t), r, c, d, h);
          return h.delete(e), g;
        case "[object Symbol]":
          if (u) return u.call(e) == u.call(t);
      }
      return !1;
    };
  },
  function (e, t, n) {
    var r = n(24).Uint8Array;
    e.exports = r;
  },
  function (e, t) {
    e.exports = function (e) {
      var t = -1,
        n = Array(e.size);
      return (
        e.forEach(function (e, r) {
          n[++t] = [r, e];
        }),
        n
      );
    };
  },
  function (e, t) {
    e.exports = function (e) {
      var t = -1,
        n = Array(e.size);
      return (
        e.forEach(function (e) {
          n[++t] = e;
        }),
        n
      );
    };
  },
  function (e, t, n) {
    var r = n(394),
      o = Object.prototype.hasOwnProperty;
    e.exports = function (e, t, n, a, i, s) {
      var l = 1 & n,
        c = r(e),
        u = c.length;
      if (u != r(t).length && !l) return !1;
      for (var d = u; d--; ) {
        var h = c[d];
        if (!(l ? h in t : o.call(t, h))) return !1;
      }
      var p = s.get(e),
        f = s.get(t);
      if (p && f) return p == t && f == e;
      var m = !0;
      s.set(e, t), s.set(t, e);
      for (var g = l; ++d < u; ) {
        var _ = e[(h = c[d])],
          v = t[h];
        if (a) var b = l ? a(v, _, h, t, e, s) : a(_, v, h, e, t, s);
        if (!(void 0 === b ? _ === v || i(_, v, n, a, s) : b)) {
          m = !1;
          break;
        }
        g || (g = "constructor" == h);
      }
      if (m && !g) {
        var y = e.constructor,
          w = t.constructor;
        y == w ||
          !("constructor" in e) ||
          !("constructor" in t) ||
          ("function" == typeof y &&
            y instanceof y &&
            "function" == typeof w &&
            w instanceof w) ||
          (m = !1);
      }
      return s.delete(e), s.delete(t), m;
    };
  },
  function (e, t, n) {
    var r = n(395),
      o = n(397),
      a = n(70);
    e.exports = function (e) {
      return r(e, a, o);
    };
  },
  function (e, t, n) {
    var r = n(396),
      o = n(25);
    e.exports = function (e, t, n) {
      var a = t(e);
      return o(e) ? a : r(a, n(e));
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n];
      return e;
    };
  },
  function (e, t, n) {
    var r = n(398),
      o = n(399),
      a = Object.prototype.propertyIsEnumerable,
      i = Object.getOwnPropertySymbols,
      s = i
        ? function (e) {
            return null == e
              ? []
              : ((e = Object(e)),
                r(i(e), function (t) {
                  return a.call(e, t);
                }));
          }
        : o;
    e.exports = s;
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = null == e ? 0 : e.length, o = 0, a = []; ++n < r; ) {
        var i = e[n];
        t(i, n, e) && (a[o++] = i);
      }
      return a;
    };
  },
  function (e, t) {
    e.exports = function () {
      return [];
    };
  },
  function (e, t, n) {
    var r = n(401),
      o = n(244),
      a = n(25),
      i = n(245),
      s = n(246),
      l = n(247),
      c = Object.prototype.hasOwnProperty;
    e.exports = function (e, t) {
      var n = a(e),
        u = !n && o(e),
        d = !n && !u && i(e),
        h = !n && !u && !d && l(e),
        p = n || u || d || h,
        f = p ? r(e.length, String) : [],
        m = f.length;
      for (var g in e)
        (!t && !c.call(e, g)) ||
          (p &&
            ("length" == g ||
              (d && ("offset" == g || "parent" == g)) ||
              (h &&
                ("buffer" == g || "byteLength" == g || "byteOffset" == g)) ||
              s(g, m))) ||
          f.push(g);
      return f;
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n);
      return r;
    };
  },
  function (e, t, n) {
    var r = n(38),
      o = n(39);
    e.exports = function (e) {
      return o(e) && "[object Arguments]" == r(e);
    };
  },
  function (e, t) {
    e.exports = function () {
      return !1;
    };
  },
  function (e, t, n) {
    var r = n(38),
      o = n(71),
      a = n(39),
      i = {};
    (i["[object Float32Array]"] = i["[object Float64Array]"] = i[
      "[object Int8Array]"
    ] = i["[object Int16Array]"] = i["[object Int32Array]"] = i[
      "[object Uint8Array]"
    ] = i["[object Uint8ClampedArray]"] = i["[object Uint16Array]"] = i[
      "[object Uint32Array]"
    ] = !0),
      (i["[object Arguments]"] = i["[object Array]"] = i[
        "[object ArrayBuffer]"
      ] = i["[object Boolean]"] = i["[object DataView]"] = i[
        "[object Date]"
      ] = i["[object Error]"] = i["[object Function]"] = i["[object Map]"] = i[
        "[object Number]"
      ] = i["[object Object]"] = i["[object RegExp]"] = i["[object Set]"] = i[
        "[object String]"
      ] = i["[object WeakMap]"] = !1),
      (e.exports = function (e) {
        return a(e) && o(e.length) && !!i[r(e)];
      });
  },
  function (e, t) {
    e.exports = function (e) {
      return function (t) {
        return e(t);
      };
    };
  },
  function (e, t, n) {
    (function (e) {
      var r = n(241),
        o = t && !t.nodeType && t,
        a = o && "object" == typeof e && e && !e.nodeType && e,
        i = a && a.exports === o && r.process,
        s = (function () {
          try {
            var e = a && a.require && a.require("util").types;
            return e || (i && i.binding && i.binding("util"));
          } catch (e) {}
        })();
      e.exports = s;
    }.call(this, n(64)(e)));
  },
  function (e, t, n) {
    var r = n(408),
      o = n(409),
      a = Object.prototype.hasOwnProperty;
    e.exports = function (e) {
      if (!r(e)) return o(e);
      var t = [];
      for (var n in Object(e)) a.call(e, n) && "constructor" != n && t.push(n);
      return t;
    };
  },
  function (e, t) {
    var n = Object.prototype;
    e.exports = function (e) {
      var t = e && e.constructor;
      return e === (("function" == typeof t && t.prototype) || n);
    };
  },
  function (e, t, n) {
    var r = n(410)(Object.keys, Object);
    e.exports = r;
  },
  function (e, t) {
    e.exports = function (e, t) {
      return function (n) {
        return e(t(n));
      };
    };
  },
  function (e, t, n) {
    var r = n(412),
      o = n(67),
      a = n(413),
      i = n(414),
      s = n(415),
      l = n(38),
      c = n(242),
      u = c(r),
      d = c(o),
      h = c(a),
      p = c(i),
      f = c(s),
      m = l;
    ((r && "[object DataView]" != m(new r(new ArrayBuffer(1)))) ||
      (o && "[object Map]" != m(new o())) ||
      (a && "[object Promise]" != m(a.resolve())) ||
      (i && "[object Set]" != m(new i())) ||
      (s && "[object WeakMap]" != m(new s()))) &&
      (m = function (e) {
        var t = l(e),
          n = "[object Object]" == t ? e.constructor : void 0,
          r = n ? c(n) : "";
        if (r)
          switch (r) {
            case u:
              return "[object DataView]";
            case d:
              return "[object Map]";
            case h:
              return "[object Promise]";
            case p:
              return "[object Set]";
            case f:
              return "[object WeakMap]";
          }
        return t;
      }),
      (e.exports = m);
  },
  function (e, t, n) {
    var r = n(27)(n(24), "DataView");
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(27)(n(24), "Promise");
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(27)(n(24), "Set");
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(27)(n(24), "WeakMap");
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(417),
      o = n(419)(function (e, t, n) {
        r(e, n, t);
      });
    e.exports = o;
  },
  function (e, t, n) {
    var r = n(418);
    e.exports = function (e, t, n) {
      "__proto__" == t && r
        ? r(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 })
        : (e[t] = n);
    };
  },
  function (e, t, n) {
    var r = n(27),
      o = (function () {
        try {
          var e = r(Object, "defineProperty");
          return e({}, "", {}), e;
        } catch (e) {}
      })();
    e.exports = o;
  },
  function (e, t, n) {
    var r = n(420),
      o = n(421),
      a = n(427),
      i = n(25);
    e.exports = function (e, t) {
      return function (n, s) {
        var l = i(n) ? r : o,
          c = t ? t() : {};
        return l(n, e, a(s, 2), c);
      };
    };
  },
  function (e, t) {
    e.exports = function (e, t, n, r) {
      for (var o = -1, a = null == e ? 0 : e.length; ++o < a; ) {
        var i = e[o];
        t(r, i, n(i), e);
      }
      return r;
    };
  },
  function (e, t, n) {
    var r = n(422);
    e.exports = function (e, t, n, o) {
      return (
        r(e, function (e, r, a) {
          t(o, e, n(e), a);
        }),
        o
      );
    };
  },
  function (e, t, n) {
    var r = n(423),
      o = n(426)(r);
    e.exports = o;
  },
  function (e, t, n) {
    var r = n(424),
      o = n(70);
    e.exports = function (e, t) {
      return e && r(e, t, o);
    };
  },
  function (e, t, n) {
    var r = n(425)();
    e.exports = r;
  },
  function (e, t) {
    e.exports = function (e) {
      return function (t, n, r) {
        for (var o = -1, a = Object(t), i = r(t), s = i.length; s--; ) {
          var l = i[e ? s : ++o];
          if (!1 === n(a[l], l, a)) break;
        }
        return t;
      };
    };
  },
  function (e, t, n) {
    var r = n(248);
    e.exports = function (e, t) {
      return function (n, o) {
        if (null == n) return n;
        if (!r(n)) return e(n, o);
        for (
          var a = n.length, i = t ? a : -1, s = Object(n);
          (t ? i-- : ++i < a) && !1 !== o(s[i], i, s);

        );
        return n;
      };
    };
  },
  function (e, t, n) {
    var r = n(428),
      o = n(431),
      a = n(442),
      i = n(25),
      s = n(443);
    e.exports = function (e) {
      return "function" == typeof e
        ? e
        : null == e
        ? a
        : "object" == typeof e
        ? i(e)
          ? o(e[0], e[1])
          : r(e)
        : s(e);
    };
  },
  function (e, t, n) {
    var r = n(429),
      o = n(430),
      a = n(250);
    e.exports = function (e) {
      var t = o(e);
      return 1 == t.length && t[0][2]
        ? a(t[0][0], t[0][1])
        : function (n) {
            return n === e || r(n, e, t);
          };
    };
  },
  function (e, t, n) {
    var r = n(238),
      o = n(66);
    e.exports = function (e, t, n, a) {
      var i = n.length,
        s = i,
        l = !a;
      if (null == e) return !s;
      for (e = Object(e); i--; ) {
        var c = n[i];
        if (l && c[2] ? c[1] !== e[c[0]] : !(c[0] in e)) return !1;
      }
      for (; ++i < s; ) {
        var u = (c = n[i])[0],
          d = e[u],
          h = c[1];
        if (l && c[2]) {
          if (void 0 === d && !(u in e)) return !1;
        } else {
          var p = new r();
          if (a) var f = a(d, h, u, e, t, p);
          if (!(void 0 === f ? o(h, d, 3, a, p) : f)) return !1;
        }
      }
      return !0;
    };
  },
  function (e, t, n) {
    var r = n(249),
      o = n(70);
    e.exports = function (e) {
      for (var t = o(e), n = t.length; n--; ) {
        var a = t[n],
          i = e[a];
        t[n] = [a, i, r(i)];
      }
      return t;
    };
  },
  function (e, t, n) {
    var r = n(66),
      o = n(432),
      a = n(439),
      i = n(72),
      s = n(249),
      l = n(250),
      c = n(50);
    e.exports = function (e, t) {
      return i(e) && s(t)
        ? l(c(e), t)
        : function (n) {
            var i = o(n, e);
            return void 0 === i && i === t ? a(n, e) : r(t, i, 3);
          };
    };
  },
  function (e, t, n) {
    var r = n(251);
    e.exports = function (e, t, n) {
      var o = null == e ? void 0 : r(e, t);
      return void 0 === o ? n : o;
    };
  },
  function (e, t, n) {
    var r = n(434),
      o = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
      a = /\\(\\)?/g,
      i = r(function (e) {
        var t = [];
        return (
          46 === e.charCodeAt(0) && t.push(""),
          e.replace(o, function (e, n, r, o) {
            t.push(r ? o.replace(a, "$1") : n || e);
          }),
          t
        );
      });
    e.exports = i;
  },
  function (e, t, n) {
    var r = n(435);
    e.exports = function (e) {
      var t = r(e, function (e) {
          return 500 === n.size && n.clear(), e;
        }),
        n = t.cache;
      return t;
    };
  },
  function (e, t, n) {
    var r = n(69);
    function o(e, t) {
      if ("function" != typeof e || (null != t && "function" != typeof t))
        throw new TypeError("Expected a function");
      var n = function () {
        var r = arguments,
          o = t ? t.apply(this, r) : r[0],
          a = n.cache;
        if (a.has(o)) return a.get(o);
        var i = e.apply(this, r);
        return (n.cache = a.set(o, i) || a), i;
      };
      return (n.cache = new (o.Cache || r)()), n;
    }
    (o.Cache = r), (e.exports = o);
  },
  function (e, t, n) {
    var r = n(437);
    e.exports = function (e) {
      return null == e ? "" : r(e);
    };
  },
  function (e, t, n) {
    var r = n(47),
      o = n(438),
      a = n(25),
      i = n(73),
      s = r ? r.prototype : void 0,
      l = s ? s.toString : void 0;
    e.exports = function e(t) {
      if ("string" == typeof t) return t;
      if (a(t)) return o(t, e) + "";
      if (i(t)) return l ? l.call(t) : "";
      var n = t + "";
      return "0" == n && 1 / t == -1 / 0 ? "-0" : n;
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = null == e ? 0 : e.length, o = Array(r); ++n < r; )
        o[n] = t(e[n], n, e);
      return o;
    };
  },
  function (e, t, n) {
    var r = n(440),
      o = n(441);
    e.exports = function (e, t) {
      return null != e && o(e, t, r);
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      return null != e && t in Object(e);
    };
  },
  function (e, t, n) {
    var r = n(252),
      o = n(244),
      a = n(25),
      i = n(246),
      s = n(71),
      l = n(50);
    e.exports = function (e, t, n) {
      for (var c = -1, u = (t = r(t, e)).length, d = !1; ++c < u; ) {
        var h = l(t[c]);
        if (!(d = null != e && n(e, h))) break;
        e = e[h];
      }
      return d || ++c != u
        ? d
        : !!(u = null == e ? 0 : e.length) && s(u) && i(h, u) && (a(e) || o(e));
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return e;
    };
  },
  function (e, t, n) {
    var r = n(444),
      o = n(445),
      a = n(72),
      i = n(50);
    e.exports = function (e) {
      return a(e) ? r(i(e)) : o(e);
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return function (t) {
        return null == t ? void 0 : t[e];
      };
    };
  },
  function (e, t, n) {
    var r = n(251);
    e.exports = function (e) {
      return function (t) {
        return r(t, e);
      };
    };
  },
  function (e, t, n) {
    !(function (e) {
      "use strict";
      var t,
        n,
        r = function (e) {
          return e instanceof HTMLElement;
        },
        o = function (e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : [],
            n =
              arguments.length > 2 && void 0 !== arguments[2]
                ? arguments[2]
                : [],
            r = Object.assign({}, e),
            o = [],
            a = [],
            i = function () {
              return Object.assign({}, r);
            },
            s = function () {
              var e = [].concat(o);
              return (o.length = 0), e;
            },
            l = function () {
              var e = [].concat(a);
              (a.length = 0),
                e.forEach(function (e) {
                  var t = e.type,
                    n = e.data;
                  c(t, n);
                });
            },
            c = function (e, t, n) {
              n
                ? a.push({ type: e, data: t })
                : (p[e] && p[e](t), o.push({ type: e, data: t }));
            },
            u = function (e) {
              for (
                var t,
                  n = arguments.length,
                  r = Array(n > 1 ? n - 1 : 0),
                  o = 1;
                o < n;
                o++
              )
                r[o - 1] = arguments[o];
              return h[e] ? (t = h)[e].apply(t, r) : null;
            },
            d = {
              getState: i,
              processActionQueue: s,
              processDispatchQueue: l,
              dispatch: c,
              query: u,
            },
            h = {};
          t.forEach(function (e) {
            h = Object.assign({}, e(r), h);
          });
          var p = {};
          return (
            n.forEach(function (e) {
              p = Object.assign({}, e(c, u, r), p);
            }),
            d
          );
        },
        a = function (e, t) {
          for (var n in e) e.hasOwnProperty(n) && t(n, e[n]);
        },
        i = function (e) {
          var t = {};
          return (
            a(e, function (n) {
              !(function (e, t, n) {
                "function" != typeof n
                  ? Object.defineProperty(e, t, Object.assign({}, n))
                  : (e[t] = n);
              })(t, n, e[n]);
            }),
            t
          );
        },
        s = function (e, t) {
          var n =
            arguments.length > 2 && void 0 !== arguments[2]
              ? arguments[2]
              : null;
          if (null === n) return e.getAttribute(t) || e.hasAttribute(t);
          e.setAttribute(t, n);
        },
        l =
          "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
            ? function (e) {
                return typeof e;
              }
            : function (e) {
                return e &&
                  "function" == typeof Symbol &&
                  e.constructor === Symbol &&
                  e !== Symbol.prototype
                  ? "symbol"
                  : typeof e;
              },
        c = function (e, t) {
          if (Array.isArray(e)) return e;
          if (Symbol.iterator in Object(e))
            return (function (e, t) {
              var n = [],
                r = !0,
                o = !1,
                a = void 0;
              try {
                for (
                  var i, s = e[Symbol.iterator]();
                  !(r = (i = s.next()).done) &&
                  (n.push(i.value), !t || n.length !== t);
                  r = !0
                );
              } catch (e) {
                (o = !0), (a = e);
              } finally {
                try {
                  !r && s.return && s.return();
                } finally {
                  if (o) throw a;
                }
              }
              return n;
            })(e, t);
          throw new TypeError(
            "Invalid attempt to destructure non-iterable instance"
          );
        },
        u = function (e) {
          if (Array.isArray(e)) {
            for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
            return n;
          }
          return Array.from(e);
        },
        d = "http://www.w3.org/2000/svg",
        h = ["svg", "path"],
        p = function (e) {
          return h.includes(e);
        },
        f = function (e, t) {
          var n =
            arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
          "object" === (void 0 === t ? "undefined" : l(t)) &&
            ((n = t), (t = null));
          var r = p(e)
            ? document.createElementNS(d, e)
            : document.createElement(e);
          return (
            t && (p(e) ? s(r, "class", t) : (r.className = t)),
            a(n, function (e, t) {
              s(r, e, t);
            }),
            r
          );
        },
        m = function (e) {
          return function (t, n) {
            void 0 !== n && e.children[n]
              ? e.insertBefore(t, e.children[n])
              : e.appendChild(t);
          };
        },
        g = function (e, t) {
          return function (e, n) {
            return void 0 !== n ? t.splice(n, 0, e) : t.push(e), e;
          };
        },
        _ = function (e, t) {
          return function (n) {
            return (
              t.splice(t.indexOf(n), 1),
              n.element.parentNode && e.removeChild(n.element),
              n
            );
          };
        },
        v = function (e, t, n, r) {
          var o = n[0] || e.left,
            a = n[1] || e.top,
            i = o + e.width,
            s = a + e.height * (r[1] || 1),
            l = {
              element: Object.assign({}, e),
              inner: {
                left: e.left,
                top: e.top,
                right: e.right,
                bottom: e.bottom,
              },
              outer: { left: o, top: a, right: i, bottom: s },
            };
          return (
            t
              .filter(function (e) {
                return !e.isRectIgnored();
              })
              .map(function (e) {
                return e.rect;
              })
              .forEach(function (e) {
                b(l.inner, Object.assign({}, e.inner)),
                  b(l.outer, Object.assign({}, e.outer));
              }),
            y(l.inner),
            (l.outer.bottom += l.element.marginBottom),
            (l.outer.right += l.element.marginRight),
            y(l.outer),
            l
          );
        },
        b = function (e, t) {
          (t.top += e.top),
            (t.right += e.left),
            (t.bottom += e.top),
            (t.left += e.left),
            t.bottom > e.bottom && (e.bottom = t.bottom),
            t.right > e.right && (e.right = t.right);
        },
        y = function (e) {
          (e.width = e.right - e.left), (e.height = e.bottom - e.top);
        },
        w = function (e) {
          return "number" == typeof e;
        },
        k = function (e, t, n) {
          var r =
            arguments.length > 3 && void 0 !== arguments[3]
              ? arguments[3]
              : 0.001;
          return Math.abs(e - t) < r && Math.abs(n) < r;
        },
        x = function (e) {
          return e < 0.5 ? 2 * e * e : (4 - 2 * e) * e - 1;
        },
        M = {
          spring: function () {
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              t = e.stiffness,
              n = void 0 === t ? 0.5 : t,
              r = e.damping,
              o = void 0 === r ? 0.75 : r,
              a = e.mass,
              s = void 0 === a ? 10 : a,
              l = null,
              c = null,
              u = 0,
              d = !1,
              h = function () {
                if (!d) {
                  if (!w(l) || !w(c)) return (d = !0), void (u = 0);
                  k((c += u += (-(c - l) * n) / s), l, (u *= o))
                    ? ((c = l),
                      (u = 0),
                      (d = !0),
                      f.onupdate(c),
                      f.oncomplete(c))
                    : f.onupdate(c);
                }
              },
              p = function (e) {
                if (
                  (w(e) && !w(c) && (c = e),
                  null === l && ((l = e), (c = e)),
                  c === (l = e) || void 0 === l)
                )
                  return (d = !0), (u = 0), f.onupdate(c), void f.oncomplete(c);
                d = !1;
              },
              f = i({
                interpolate: h,
                target: {
                  set: p,
                  get: function () {
                    return l;
                  },
                },
                resting: {
                  get: function () {
                    return d;
                  },
                },
                onupdate: function (e) {},
                oncomplete: function (e) {},
              });
            return f;
          },
          tween: function () {
            var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              t = e.duration,
              n = void 0 === t ? 500 : t,
              r = e.easing,
              o = void 0 === r ? x : r,
              a = e.delay,
              s = void 0 === a ? 0 : a,
              l = null,
              c = void 0,
              u = void 0,
              d = !0,
              h = !1,
              p = null,
              f = function (e) {
                d ||
                  null === p ||
                  (null === l && (l = e),
                  e - l < s ||
                    ((c = e - l - s) < n
                      ? ((u = c / n),
                        m.onupdate((c >= 0 ? o(h ? 1 - u : u) : 0) * p))
                      : ((c = 1),
                        (u = h ? 0 : 1),
                        m.onupdate(u * p),
                        m.oncomplete(u * p),
                        (d = !0))));
              },
              m = i({
                interpolate: f,
                target: {
                  get: function () {
                    return h ? 0 : p;
                  },
                  set: function (e) {
                    if (null === p)
                      return (p = e), m.onupdate(e), void m.oncomplete(e);
                    e < p ? ((p = 1), (h = !0)) : ((h = !1), (p = e)),
                      (d = !1),
                      (l = null);
                  },
                },
                resting: {
                  get: function () {
                    return d;
                  },
                },
                onupdate: function (e) {},
                oncomplete: function (e) {},
              });
            return m;
          },
        },
        E = function (e, t, n) {
          var r = e[t] && "object" === l(e[t][n]) ? e[t][n] : e[t] || e,
            o = "string" == typeof r ? r : r.type,
            a =
              "object" === (void 0 === r ? "undefined" : l(r))
                ? Object.assign({}, r)
                : {};
          return M[o] ? M[o](a) : null;
        },
        T = function (e, t, n) {
          var r =
            arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
          (t = Array.isArray(t) ? t : [t]).forEach(function (t) {
            e.forEach(function (e) {
              var o = e,
                a = function () {
                  return n[e];
                },
                i = function (t) {
                  return (n[e] = t);
                };
              "object" === (void 0 === e ? "undefined" : l(e)) &&
                ((o = e.key), (a = e.getter || a), (i = e.setter || i)),
                (t[o] && !r) || (t[o] = { get: a, set: i });
            });
          });
        },
        S = function (e) {
          return null != e;
        },
        D = {
          opacity: 1,
          scaleX: 1,
          scaleY: 1,
          translateX: 0,
          translateY: 0,
          rotateX: 0,
          rotateY: 0,
          rotateZ: 0,
          originX: 0,
          originY: 0,
        },
        L = function (e, t) {
          if (Object.keys(e).length !== Object.keys(t).length) return !0;
          for (var n in t) if (t[n] !== e[n]) return !0;
          return !1;
        },
        C = function (e, t) {
          var n = t.opacity,
            r = t.perspective,
            o = t.translateX,
            a = t.translateY,
            i = t.scaleX,
            s = t.scaleY,
            l = t.rotateX,
            c = t.rotateY,
            u = t.rotateZ,
            d = t.originX,
            h = t.originY,
            p = t.width,
            f = t.height,
            m = "",
            g = "";
          (S(d) || S(h)) &&
            (g += "transform-origin: " + (d || 0) + "px " + (h || 0) + "px;"),
            S(r) && (m += "perspective(" + r + "px) "),
            (S(o) || S(a)) &&
              (m += "translate3d(" + (o || 0) + "px, " + (a || 0) + "px, 0) "),
            (S(i) || S(s)) &&
              (m +=
                "scale3d(" + (S(i) ? i : 1) + ", " + (S(s) ? s : 1) + ", 1) "),
            S(u) && (m += "rotateZ(" + u + "rad) "),
            S(l) && (m += "rotateX(" + l + "rad) "),
            S(c) && (m += "rotateY(" + c + "rad) "),
            m.length && (g += "transform:" + m + ";"),
            S(n) &&
              ((g += "opacity:" + n + ";"),
              0 === n && (g += "visibility:hidden;"),
              n < 1 && (g += "pointer-events:none;")),
            S(f) && (g += "height:" + f + "px;"),
            S(p) && (g += "width:" + p + "px;");
          var _ = e.elementCurrentStyle || "";
          (g.length === _.length && g === _) ||
            (e.setAttribute("style", g), (e.elementCurrentStyle = g));
        },
        P = {
          styles: function (e) {
            var t = e.mixinConfig,
              n = e.viewProps,
              r = e.viewInternalAPI,
              o = e.viewExternalAPI,
              a = e.view,
              i = Object.assign({}, n),
              s = {};
            T(t, [r, o], n);
            var l = function () {
              return a.rect
                ? v(
                    a.rect,
                    a.childViews,
                    [n.translateX || 0, n.translateY || 0],
                    [n.scaleX || 0, n.scaleY || 0]
                  )
                : null;
            };
            return (
              (r.rect = { get: l }),
              (o.rect = { get: l }),
              t.forEach(function (e) {
                n[e] = void 0 === i[e] ? D[e] : i[e];
              }),
              {
                write: function () {
                  if (L(s, n))
                    return (
                      C(a.element, n),
                      Object.assign(s, Object.assign({}, n)),
                      !0
                    );
                },
                destroy: function () {},
              }
            );
          },
          listeners: function (e) {
            e.mixinConfig, e.viewProps, e.viewInternalAPI;
            var t,
              n = e.viewExternalAPI,
              r = (e.viewState, e.view),
              o = [],
              a =
                ((t = r.element),
                function (e, n) {
                  t.addEventListener(e, n);
                }),
              i = (function (e) {
                return function (t, n) {
                  e.removeEventListener(t, n);
                };
              })(r.element);
            return (
              (n.on = function (e, t) {
                o.push({ type: e, fn: t }), a(e, t);
              }),
              (n.off = function (e, t) {
                o.splice(
                  o.findIndex(function (n) {
                    return n.type === e && n.fn === t;
                  }),
                  1
                ),
                  i(e, t);
              }),
              {
                write: function () {
                  return !0;
                },
                destroy: function () {
                  o.forEach(function (e) {
                    i(e.type, e.fn);
                  });
                },
              }
            );
          },
          animations: function (e) {
            var t = e.mixinConfig,
              n = e.viewProps,
              r = e.viewInternalAPI,
              o = e.viewExternalAPI,
              i = Object.assign({}, n),
              s = [];
            return (
              a(t, function (e, t) {
                var a = E(t);
                a &&
                  ((a.onupdate = function (t) {
                    n[e] = t;
                  }),
                  (a.target = i[e]),
                  T(
                    [
                      {
                        key: e,
                        setter: function (e) {
                          a.target !== e && (a.target = e);
                        },
                        getter: function () {
                          return n[e];
                        },
                      },
                    ],
                    [r, o],
                    n,
                    !0
                  ),
                  s.push(a));
              }),
              {
                write: function (e) {
                  var t = !0;
                  return (
                    s.forEach(function (n) {
                      n.resting || (t = !1), n.interpolate(e);
                    }),
                    t
                  );
                },
                destroy: function () {},
              }
            );
          },
          apis: function (e) {
            var t = e.mixinConfig,
              n = e.viewProps,
              r = e.viewExternalAPI;
            T(t, r, n);
          },
        },
        O = function () {
          var e =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : {},
            t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n =
              arguments.length > 2 && void 0 !== arguments[2]
                ? arguments[2]
                : {};
          return (
            t.layoutCalculated ||
              ((e.paddingTop = parseInt(n.paddingTop, 10) || 0),
              (e.marginTop = parseInt(n.marginTop, 10) || 0),
              (e.marginRight = parseInt(n.marginRight, 10) || 0),
              (e.marginBottom = parseInt(n.marginBottom, 10) || 0),
              (e.marginLeft = parseInt(n.marginLeft, 10) || 0),
              (t.layoutCalculated = !0)),
            (e.left = t.offsetLeft || 0),
            (e.top = t.offsetTop || 0),
            (e.width = t.offsetWidth || 0),
            (e.height = t.offsetHeight || 0),
            (e.right = e.left + e.width),
            (e.bottom = e.top + e.height),
            (e.scrollTop = t.scrollTop),
            (e.hidden = null === t.offsetParent),
            e
          );
        },
        N = function () {
          var e =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : {},
            t = e.tag,
            n = void 0 === t ? "div" : t,
            r = e.name,
            o = void 0 === r ? null : r,
            a = e.attributes,
            s = void 0 === a ? {} : a,
            l = e.read,
            c = void 0 === l ? function () {} : l,
            u = e.write,
            d = void 0 === u ? function () {} : u,
            h = e.create,
            p = void 0 === h ? function () {} : h,
            b = e.destroy,
            y = void 0 === b ? function () {} : b,
            w = e.filterFrameActionsForChild,
            k =
              void 0 === w
                ? function (e, t) {
                    return t;
                  }
                : w,
            x = e.didCreateView,
            M = void 0 === x ? function () {} : x,
            E = e.didWriteView,
            T = void 0 === E ? function () {} : E,
            S = e.ignoreRect,
            D = void 0 !== S && S,
            L = e.ignoreRectUpdate,
            C = void 0 !== L && L,
            N = e.mixins,
            A = void 0 === N ? [] : N;
          return function (e) {
            var t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : {},
              r = f(n, "filepond--" + o, s),
              a = window.getComputedStyle(r, null),
              l = O(),
              u = null,
              h = !1,
              b = [],
              w = [],
              x = {},
              E = {},
              S = [d],
              L = [c],
              N = [y],
              I = function () {
                return r;
              },
              R = function () {
                return [].concat(b);
              },
              Y = function () {
                return x;
              },
              j = function (e) {
                return function (t, n) {
                  return t(e, n);
                };
              },
              F = function () {
                return u || (u = v(l, b, [0, 0], [1, 1]));
              },
              H = function () {
                return a;
              },
              z = function () {
                (u = null),
                  b.forEach(function (e) {
                    return e._read();
                  }),
                  !(C && l.width && l.height) && O(l, r, a);
                var e = { root: J, props: t, rect: l };
                L.forEach(function (t) {
                  return t(e);
                });
              },
              B = function (e) {
                var n =
                    arguments.length > 1 && void 0 !== arguments[1]
                      ? arguments[1]
                      : [],
                  r = 0 === n.length;
                return (
                  S.forEach(function (o) {
                    !1 === o({ props: t, root: J, actions: n, timestamp: e }) &&
                      (r = !1);
                  }),
                  w.forEach(function (t) {
                    !1 === t.write(e) && (r = !1);
                  }),
                  b
                    .filter(function (e) {
                      return !!e.element.parentNode;
                    })
                    .forEach(function (t) {
                      t._write(e, k(t, n)) || (r = !1);
                    }),
                  b.forEach(function (t, o) {
                    t.element.parentNode ||
                      (J.appendChild(t.element, o),
                      t._read(),
                      t._write(e, k(t, n)),
                      (r = !1));
                  }),
                  (h = r),
                  T({ props: t, root: J, actions: n, timestamp: e }),
                  r
                );
              },
              U = function () {
                w.forEach(function (e) {
                  return e.destroy();
                }),
                  N.forEach(function (e) {
                    e({ root: J, props: t });
                  }),
                  b.forEach(function (e) {
                    return e._destroy();
                  });
              },
              V = {
                element: { get: I },
                style: { get: H },
                childViews: { get: R },
              },
              W = Object.assign({}, V, {
                rect: { get: F },
                ref: { get: Y },
                is: function (e) {
                  return o === e;
                },
                appendChild: m(r),
                createChildView: j(e),
                linkView: function (e) {
                  return b.push(e), e;
                },
                unlinkView: function (e) {
                  b.splice(b.indexOf(e), 1);
                },
                appendChildView: g(0, b),
                removeChildView: _(r, b),
                registerWriter: function (e) {
                  return S.push(e);
                },
                registerReader: function (e) {
                  return L.push(e);
                },
                registerDestroyer: function (e) {
                  return N.push(e);
                },
                invalidateLayout: function () {
                  return (r.layoutCalculated = !1);
                },
                dispatch: e.dispatch,
                query: e.query,
              }),
              q = {
                element: { get: I },
                childViews: { get: R },
                rect: { get: F },
                resting: {
                  get: function () {
                    return h;
                  },
                },
                isRectIgnored: function () {
                  return D;
                },
                _read: z,
                _write: B,
                _destroy: U,
              },
              G = Object.assign({}, V, {
                rect: {
                  get: function () {
                    return l;
                  },
                },
              });
            Object.keys(A)
              .sort(function (e, t) {
                return "styles" === e ? 1 : "styles" === t ? -1 : 0;
              })
              .forEach(function (e) {
                var n = P[e]({
                  mixinConfig: A[e],
                  viewProps: t,
                  viewState: E,
                  viewInternalAPI: W,
                  viewExternalAPI: q,
                  view: i(G),
                });
                n && w.push(n);
              });
            var J = i(W);
            p({ root: J, props: t });
            var K = r.children.length;
            return (
              b.forEach(function (e, t) {
                J.appendChild(e.element, K + t);
              }),
              M(J),
              i(q)
            );
          };
        },
        A = function (e, t) {
          return function (n) {
            var r = n.root,
              o = n.props,
              a = n.actions,
              i = void 0 === a ? [] : a,
              s = n.timestamp;
            i
              .filter(function (t) {
                return e[t.type];
              })
              .forEach(function (t) {
                return e[t.type]({
                  root: r,
                  props: o,
                  action: t.data,
                  timestamp: s,
                });
              }),
              t && t({ root: r, props: o, actions: i, timestamp: s });
          };
        },
        I = function (e, t) {
          return t.parentNode.insertBefore(e, t);
        },
        R = function (e, t) {
          return t.parentNode.insertBefore(e, t.nextSibling);
        },
        Y = function (e) {
          return Array.isArray(e);
        },
        j = function (e) {
          return null == e;
        },
        F = function (e) {
          return e.trim();
        },
        H = function (e) {
          return "" + e;
        },
        z = function (e) {
          return "boolean" == typeof e;
        },
        B = function (e) {
          return z(e) ? e : "true" === e;
        },
        U = function (e) {
          return "string" == typeof e;
        },
        V = function (e) {
          return w(e) ? e : U(e) ? H(e).replace(/[a-z]+/gi, "") : 0;
        },
        W = function (e) {
          return parseInt(V(e), 10);
        },
        q = function (e) {
          return w(e) && isFinite(e) && Math.floor(e) === e;
        },
        G = function (e) {
          if (q(e)) return e;
          var t = H(e).trim();
          return /MB$/i.test(t)
            ? ((t = t.replace(/MB$i/, "").trim()), 1e3 * W(t) * 1e3)
            : /KB/i.test(t)
            ? ((t = t.replace(/KB$i/, "").trim()), 1e3 * W(t))
            : W(t);
        },
        J = function (e) {
          return "function" == typeof e;
        },
        K = {
          process: "POST",
          revert: "DELETE",
          fetch: "GET",
          restore: "GET",
          load: "GET",
        },
        Q = function (e, t, n, r) {
          if (null === t) return null;
          if ("function" == typeof t) return t;
          var o = {
            url: "GET" === n ? "?" + e + "=" : "",
            method: n,
            headers: {},
            withCredentials: !1,
            timeout: r,
            onload: null,
            ondata: null,
            onerror: null,
          };
          if (U(t)) return (o.url = t), o;
          if ((Object.assign(o, t), U(o.headers))) {
            var a = o.headers.split(/:(.+)/);
            o.headers = { header: a[0], value: a[1] };
          }
          return (o.withCredentials = B(o.withCredentials)), o;
        },
        X = function (e) {
          return "object" === (void 0 === e ? "undefined" : l(e)) && null !== e;
        },
        $ = function (e) {
          return Y(e)
            ? "array"
            : (function (e) {
                return null === e;
              })(e)
            ? "null"
            : q(e)
            ? "int"
            : /^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)
            ? "bytes"
            : (function (e) {
                return (
                  X(e) &&
                  U(e.url) &&
                  X(e.process) &&
                  X(e.revert) &&
                  X(e.restore) &&
                  X(e.fetch)
                );
              })(e)
            ? "api"
            : void 0 === e
            ? "undefined"
            : l(e);
        },
        Z = {
          array: function (e) {
            var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : ",";
            return j(e)
              ? []
              : Y(e)
              ? e
              : H(e)
                  .split(t)
                  .map(F)
                  .filter(function (e) {
                    return e.length;
                  });
          },
          boolean: B,
          int: function (e) {
            return "bytes" === $(e) ? G(e) : W(e);
          },
          float: function (e) {
            return parseFloat(V(e));
          },
          bytes: G,
          string: function (e) {
            return J(e) ? e : H(e);
          },
          serverapi: function (e) {
            return (
              ((n = {}).url = U((t = e)) ? t : t.url || ""),
              (n.timeout = t.timeout ? parseInt(t.timeout, 10) : 0),
              a(K, function (e) {
                n[e] = Q(e, t[e], K[e], n.timeout);
              }),
              (n.remove = t.remove || null),
              n
            );
            var t, n;
          },
          object: function (e) {
            try {
              return JSON.parse(
                e
                  .replace(/{\s*'/g, '{"')
                  .replace(/'\s*}/g, '"}')
                  .replace(/'\s*:/g, '":')
                  .replace(/:\s*'/g, ':"')
                  .replace(/,\s*'/g, ',"')
                  .replace(/'\s*,/g, '",')
              );
            } catch (e) {
              return null;
            }
          },
          function: function (e) {
            return (function (e) {
              for (var t = self, n = e.split("."), r = null; (r = n.shift()); )
                if (!(t = t[r])) return null;
              return t;
            })(e);
          },
        },
        ee = function (e, t, n) {
          if (e === t) return e;
          var r,
            o = $(e);
          if (o !== n) {
            var a = ((r = e), Z[n](r));
            if (((o = $(a)), null === a))
              throw (
                'Trying to assign value with incorrect type to "' +
                option +
                '", allowed type: "' +
                n +
                '"'
              );
            e = a;
          }
          return e;
        },
        te = function (e) {
          var t = {};
          return (
            a(e, function (n) {
              var r,
                o,
                a,
                i = e[n];
              t[n] =
                ((r = i[0]),
                (o = i[1]),
                (a = r),
                {
                  enumerable: !0,
                  get: function () {
                    return a;
                  },
                  set: function (e) {
                    a = ee(e, r, o);
                  },
                });
            }),
            i(t)
          );
        },
        ne = function (e) {
          return {
            items: [],
            listUpdateTimeout: null,
            processingQueue: [],
            options: te(e),
          };
        },
        re = function (e) {
          var t =
            arguments.length > 1 && void 0 !== arguments[1]
              ? arguments[1]
              : "-";
          return e
            .split(/(?=[A-Z])/)
            .map(function (e) {
              return e.toLowerCase();
            })
            .join(t);
        },
        oe = function (e, t) {
          var n = {};
          return (
            a(t, function (t) {
              n[t] = {
                get: function () {
                  return e.getState().options[t];
                },
                set: function (n) {
                  e.dispatch("SET_" + re(t, "_").toUpperCase(), { value: n });
                },
              };
            }),
            n
          );
        },
        ae = function (e) {
          return function (t, n, r) {
            var o = {};
            return (
              a(e, function (e) {
                var n = re(e, "_").toUpperCase();
                o["SET_" + n] = function (o) {
                  try {
                    r.options[e] = o.value;
                  } catch (e) {}
                  t("DID_SET_" + n, { value: r.options[e] });
                };
              }),
              o
            );
          };
        },
        ie = function (e) {
          return function (t) {
            var n = {};
            return (
              a(e, function (e) {
                n["GET_" + re(e, "_").toUpperCase()] = function (n) {
                  return t.options[e];
                };
              }),
              n
            );
          };
        },
        se = 1,
        le = 2,
        ce = 3,
        ue = 4,
        de = 5,
        he = function () {
          return Math.random().toString(36).substr(2, 9);
        },
        pe = function (e, t) {
          var n =
            arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 75;
          return e.map(function (e, r) {
            return new Promise(function (o, a) {
              setTimeout(function () {
                t(e), o();
              }, n * r);
            });
          });
        },
        fe = function (e, t) {
          return e.splice(t, 1);
        },
        me = function () {
          var e = [],
            t = function (t, n) {
              fe(
                e,
                e.findIndex(function (e) {
                  return e.event === t && (e.cb === n || !n);
                })
              );
            };
          return {
            fire: function (t) {
              for (
                var n = arguments.length, r = Array(n > 1 ? n - 1 : 0), o = 1;
                o < n;
                o++
              )
                r[o - 1] = arguments[o];
              e.filter(function (e) {
                return e.event === t;
              })
                .map(function (e) {
                  return e.cb;
                })
                .forEach(function (e) {
                  setTimeout(function () {
                    e.apply(void 0, r);
                  }, 0);
                });
            },
            on: function (t, n) {
              e.push({ event: t, cb: n });
            },
            onOnce: function (n, r) {
              e.push({
                event: n,
                cb: function () {
                  t(n, r), r.apply(void 0, arguments);
                },
              });
            },
            off: t,
          };
        },
        ge = function (e, t, n) {
          Object.getOwnPropertyNames(e)
            .filter(function (e) {
              return !n.includes(e);
            })
            .forEach(function (n) {
              return Object.defineProperty(
                t,
                n,
                Object.getOwnPropertyDescriptor(e, n)
              );
            });
        },
        _e = [
          "fire",
          "process",
          "revert",
          "load",
          "on",
          "off",
          "onOnce",
          "retryLoad",
          "extend",
          "archive",
          "archived",
          "release",
          "released",
          "requestProcessing",
        ],
        ve = function (e) {
          var t = {};
          return ge(e, t, _e), t;
        },
        be = function (e) {
          e.forEach(function (t, n) {
            t.released && fe(e, n);
          });
        },
        ye = function (e) {
          return /[^0-9]+/.exec(e);
        },
        we = function () {
          return ye((1.1).toLocaleString())[0];
        },
        ke = {
          BOOLEAN: "boolean",
          INT: "int",
          STRING: "string",
          ARRAY: "array",
          OBJECT: "object",
          FUNCTION: "function",
          ACTION: "action",
          SERVER_API: "serverapi",
          REGEX: "regex",
        },
        xe = [],
        Me = function (e, t, n) {
          return new Promise(function (r, o) {
            var a = xe
              .filter(function (t) {
                return t.key === e;
              })
              .map(function (e) {
                return e.cb;
              });
            if (0 !== a.length) {
              var i = a.shift();
              a.reduce(function (e, t) {
                return e.then(function (e) {
                  return t(e, n);
                });
              }, i(t, n))
                .then(function (e) {
                  return r(e);
                })
                .catch(function (e) {
                  return o(e);
                });
            } else r(t);
          });
        },
        Ee = function (e, t, n) {
          return xe
            .filter(function (t) {
              return t.key === e;
            })
            .map(function (e) {
              return e.cb(t, n);
            });
        },
        Te = function (e, t) {
          return xe.push({ key: e, cb: t });
        },
        Se = function () {
          return Object.assign({}, De);
        },
        De = {
          id: [null, ke.STRING],
          name: ["filepond", ke.STRING],
          className: [null, ke.STRING],
          required: [!1, ke.BOOLEAN],
          captureMethod: [null, ke.STRING],
          allowDrop: [!0, ke.BOOLEAN],
          allowBrowse: [!0, ke.BOOLEAN],
          allowPaste: [!0, ke.BOOLEAN],
          allowMultiple: [!1, ke.BOOLEAN],
          allowReplace: [!0, ke.BOOLEAN],
          allowRevert: [!0, ke.BOOLEAN],
          forceRevert: [!1, ke.BOOLEAN],
          maxFiles: [null, ke.INT],
          checkValidity: [!1, ke.BOOLEAN],
          dropOnPage: [!1, ke.BOOLEAN],
          dropOnElement: [!0, ke.BOOLEAN],
          dropValidation: [!1, ke.BOOLEAN],
          ignoredFiles: [[".ds_store", "thumbs.db", "desktop.ini"], ke.ARRAY],
          instantUpload: [!0, ke.BOOLEAN],
          maxParallelUploads: [2, ke.INT],
          server: [null, ke.SERVER_API],
          labelDecimalSeparator: [we(), ke.STRING],
          labelThousandsSeparator: [
            ((t = we()),
            (n = (1e3).toLocaleString()),
            n !== (1e3).toString() ? ye(n)[0] : "." === t ? "," : "."),
            ke.STRING,
          ],
          labelIdle: [
            'Drag & Drop your files or <span class="filepond--label-action">Browse</span>',
            ke.STRING,
          ],
          labelInvalidField: ["Field contains invalid files", ke.STRING],
          labelFileWaitingForSize: ["Waiting for size", ke.STRING],
          labelFileSizeNotAvailable: ["Size not available", ke.STRING],
          labelFileCountSingular: ["file in list", ke.STRING],
          labelFileCountPlural: ["files in list", ke.STRING],
          labelFileLoading: ["Loading", ke.STRING],
          labelFileAdded: ["Added", ke.STRING],
          labelFileLoadError: ["Error during load", ke.STRING],
          labelFileRemoved: ["Removed", ke.STRING],
          labelFileRemoveError: ["Error during remove", ke.STRING],
          labelFileProcessing: ["Uploading", ke.STRING],
          labelFileProcessingComplete: ["Upload complete", ke.STRING],
          labelFileProcessingAborted: ["Upload cancelled", ke.STRING],
          labelFileProcessingError: ["Error during upload", ke.STRING],
          labelFileProcessingRevertError: ["Error during revert", ke.STRING],
          labelTapToCancel: ["tap to cancel", ke.STRING],
          labelTapToRetry: ["tap to retry", ke.STRING],
          labelTapToUndo: ["tap to undo", ke.STRING],
          labelButtonRemoveItem: ["Remove", ke.STRING],
          labelButtonAbortItemLoad: ["Abort", ke.STRING],
          labelButtonRetryItemLoad: ["Retry", ke.STRING],
          labelButtonAbortItemProcessing: ["Cancel", ke.STRING],
          labelButtonUndoItemProcessing: ["Undo", ke.STRING],
          labelButtonRetryItemProcessing: ["Retry", ke.STRING],
          labelButtonProcessItem: ["Upload", ke.STRING],
          iconRemove: [
            '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',
            ke.STRING,
          ],
          iconProcess: [
            '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',
            ke.STRING,
          ],
          iconRetry: [
            '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',
            ke.STRING,
          ],
          iconUndo: [
            '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',
            ke.STRING,
          ],
          iconDone: [
            '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',
            ke.STRING,
          ],
          oninit: [null, ke.FUNCTION],
          onwarning: [null, ke.FUNCTION],
          onerror: [null, ke.FUNCTION],
          onaddfilestart: [null, ke.FUNCTION],
          onaddfileprogress: [null, ke.FUNCTION],
          onaddfile: [null, ke.FUNCTION],
          onprocessfilestart: [null, ke.FUNCTION],
          onprocessfileprogress: [null, ke.FUNCTION],
          onprocessfileabort: [null, ke.FUNCTION],
          onprocessfilerevert: [null, ke.FUNCTION],
          onprocessfile: [null, ke.FUNCTION],
          onremovefile: [null, ke.FUNCTION],
          onpreparefile: [null, ke.FUNCTION],
          onupdatefiles: [null, ke.FUNCTION],
          beforeAddFile: [null, ke.FUNCTION],
          beforeRemoveFile: [null, ke.FUNCTION],
          stylePanelLayout: [null, ke.STRING],
          stylePanelAspectRatio: [null, ke.STRING],
          styleButtonRemoveItemPosition: ["left", ke.STRING],
          styleButtonProcessItemPosition: ["right", ke.STRING],
          styleLoadIndicatorPosition: ["right", ke.STRING],
          styleProgressIndicatorPosition: ["right", ke.STRING],
          files: [[], ke.ARRAY],
        },
        Le = function (e, t) {
          return j(t)
            ? e[0] || null
            : q(t)
            ? e[t] || null
            : ("object" === (void 0 === t ? "undefined" : l(t)) && (t = t.id),
              e.find(function (e) {
                return e.id === t;
              }) || null);
        },
        Ce = function (e) {
          if (j(e)) return e;
          if (/:/.test(e)) {
            var t = e.split(":"),
              n = c(t, 2),
              r = n[0];
            return n[1] / r;
          }
          return parseFloat(e);
        },
        Pe = function (e) {
          return e.filter(function (e) {
            return !e.archived;
          });
        },
        Oe = function (e) {
          return {
            GET_ITEM: function (t) {
              return Le(e.items, t);
            },
            GET_ACTIVE_ITEM: function (t) {
              return Le(Pe(e.items), t);
            },
            GET_ACTIVE_ITEMS: function (t) {
              return Pe(e.items);
            },
            GET_ITEMS: function (t) {
              return e.items;
            },
            GET_ITEM_NAME: function (t) {
              var n = Le(e.items, t);
              return n ? n.filename : null;
            },
            GET_ITEM_SIZE: function (t) {
              var n = Le(e.items, t);
              return n ? n.fileSize : null;
            },
            GET_STYLES: function () {
              return Object.keys(e.options)
                .filter(function (e) {
                  return /^style/.test(e);
                })
                .map(function (t) {
                  return { name: t, value: e.options[t] };
                });
            },
            GET_PANEL_ASPECT_RATIO: function () {
              return /circle/.test(e.options.stylePanelLayout)
                ? 1
                : Ce(e.options.stylePanelAspectRatio);
            },
            GET_ITEMS_BY_STATUS: function (t) {
              return Pe(e.items).filter(function (e) {
                return e.status === t;
              });
            },
            GET_TOTAL_ITEMS: function () {
              return Pe(e.items).length;
            },
            IS_ASYNC: function () {
              return (
                X(e.options.server) &&
                (X(e.options.server.process) || J(e.options.server.process))
              );
            },
          };
        },
        Ne = function (e, t, n) {
          return j(t)
            ? null
            : void 0 === n
            ? (e.push(t), t)
            : ((r = n),
              (o = 0),
              (a = e.length),
              (function (e, t, n) {
                e.splice(t, 0, n);
              })(e, (n = Math.max(Math.min(a, r), o)), t),
              t);
          var r, o, a;
        },
        Ae = function (e) {
          return /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(
            e
          );
        },
        Ie = function (e) {
          return e.split("/").pop().split("?").shift();
        },
        Re = function (e) {
          return e.split(".").pop();
        },
        Ye = function (e) {
          if ("string" != typeof e) return "";
          var t = e.split("/").pop();
          return /svg/.test(t)
            ? "svg"
            : /zip|compressed/.test(t)
            ? "zip"
            : /plain/.test(t)
            ? "txt"
            : /msword/.test(t)
            ? "doc"
            : /[a-z]+/.test(t)
            ? "jpeg" === t
              ? "jpg"
              : t
            : "";
        },
        je = function (e) {
          var t =
            arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "";
          return (t + e).slice(-t.length);
        },
        Fe = function () {
          var e =
            arguments.length > 0 && void 0 !== arguments[0]
              ? arguments[0]
              : new Date();
          return (
            e.getFullYear() +
            "-" +
            je(e.getMonth() + 1, "00") +
            "-" +
            je(e.getDate(), "00") +
            "_" +
            je(e.getHours(), "00") +
            "-" +
            je(e.getMinutes(), "00") +
            "-" +
            je(e.getSeconds(), "00")
          );
        },
        He = function (e, t) {
          var n =
              arguments.length > 2 && void 0 !== arguments[2]
                ? arguments[2]
                : null,
            r =
              arguments.length > 3 && void 0 !== arguments[3]
                ? arguments[3]
                : null,
            o =
              "string" == typeof n
                ? e.slice(0, e.size, n)
                : e.slice(0, e.size, e.type);
          return (
            (o.lastModifiedDate = new Date()),
            U(t) || (t = Fe()),
            t && null === r && Re(t)
              ? (o.name = t)
              : ((r = r || Ye(o.type)), (o.name = t + (r ? "." + r : ""))),
            o
          );
        },
        ze = function (e, t) {
          var n = (window.BlobBuilder =
            window.BlobBuilder ||
            window.WebKitBlobBuilder ||
            window.MozBlobBuilder ||
            window.MSBlobBuilder);
          if (n) {
            var r = new n();
            return r.append(e), r.getBlob(t);
          }
          return new Blob([e], { type: t });
        },
        Be = function (e) {
          return (/^data:(.+);/.exec(e) || [])[1] || null;
        },
        Ue = function (e) {
          var t = Be(e);
          return (function (e, t) {
            for (
              var n = new ArrayBuffer(e.length), r = new Uint8Array(n), o = 0;
              o < e.length;
              o++
            )
              r[o] = e.charCodeAt(o);
            return ze(n, t);
          })(
            (function (e) {
              return atob(
                (function (e) {
                  return e.split(",")[1].replace(/\s/g, "");
                })(e)
              );
            })(e),
            t
          );
        },
        Ve = function (e) {
          var t = e.match(/(?:filename="(.+)")|(?:filename=(.+))/) || [];
          return t[1] || t[2];
        },
        We = function (e) {
          if (/content-length:/i.test(e)) {
            var t = e.match(/[0-9]+/)[0];
            return t ? parseInt(t, 10) : null;
          }
          return null;
        },
        qe = function (e) {
          return (
            (/x-content-transfer-id:/i.test(e) &&
              (e.split(":")[1] || "").trim()) ||
            null
          );
        },
        Ge = function (e) {
          var t = { source: null, name: null, size: null },
            n = e.split("\n"),
            r = !0,
            o = !1,
            a = void 0;
          try {
            for (
              var i, s = n[Symbol.iterator]();
              !(r = (i = s.next()).done);
              r = !0
            ) {
              var l = i.value,
                c = Ve(l);
              if (c) t.name = c;
              else {
                var u = We(l);
                if (u) t.size = u;
                else {
                  var d = qe(l);
                  d && (t.source = d);
                }
              }
            }
          } catch (e) {
            (o = !0), (a = e);
          } finally {
            try {
              !r && s.return && s.return();
            } finally {
              if (o) throw a;
            }
          }
          return t;
        },
        Je = function (e) {
          var t = {
              source: null,
              complete: !1,
              progress: 0,
              size: null,
              timestamp: null,
              duration: 0,
              request: null,
            },
            n = function (n) {
              e
                ? ((t.timestamp = Date.now()),
                  (t.request = e(
                    n,
                    function (e) {
                      (t.duration = Date.now() - t.timestamp),
                        (t.complete = !0),
                        e instanceof Blob && (e = He(e, Ie(n))),
                        r.fire("load", e instanceof Blob ? e : e.body);
                    },
                    function (e) {
                      r.fire(
                        "error",
                        "string" == typeof e
                          ? { type: "error", code: 0, body: e }
                          : e
                      );
                    },
                    function (e, n, o) {
                      o && (t.size = o),
                        (t.duration = Date.now() - t.timestamp),
                        e
                          ? ((t.progress = n / o),
                            r.fire("progress", t.progress))
                          : (t.progress = null);
                    },
                    function () {
                      r.fire("abort");
                    },
                    function (e) {
                      var n = Ge("string" == typeof e ? e : e.headers);
                      r.fire("meta", {
                        size: t.size || n.size,
                        filename: n.name,
                        source: n.source,
                      });
                    }
                  )))
                : r.fire("error", {
                    type: "error",
                    body: "Can't load URL",
                    code: 400,
                  });
            },
            r = Object.assign({}, me(), {
              setSource: function (e) {
                return (t.source = e);
              },
              getProgress: function () {
                return t.progress;
              },
              abort: function () {
                t.request && t.request.abort();
              },
              load: function () {
                var e,
                  o,
                  a = t.source;
                r.fire("init", a),
                  a instanceof File
                    ? r.fire("load", a)
                    : a instanceof Blob
                    ? r.fire("load", He(a, a.name))
                    : Ae(a)
                    ? r.fire("load", He(Ue(a), e, null, o))
                    : n(a);
              },
            });
          return r;
        },
        Ke = function (e) {
          return /GET|HEAD/.test(e);
        },
        Qe = function (e, t, n) {
          var r = {
              onheaders: function () {},
              onprogress: function () {},
              onload: function () {},
              ontimeout: function () {},
              onerror: function () {},
              onabort: function () {},
              abort: function () {
                (o = !0), i.abort();
              },
            },
            o = !1,
            a = !1;
          (n = Object.assign(
            { method: "POST", headers: {}, withCredentials: !1 },
            n
          )),
            (t = encodeURI(t)),
            Ke(n.method) &&
              e &&
              (t =
                "" +
                t +
                encodeURIComponent(
                  "string" == typeof e ? e : JSON.stringify(e)
                ));
          var i = new XMLHttpRequest();
          return (
            ((Ke(n.method) ? i : i.upload).onprogress = function (e) {
              o || r.onprogress(e.lengthComputable, e.loaded, e.total);
            }),
            (i.onreadystatechange = function () {
              i.readyState < 2 ||
                (4 === i.readyState && 0 === i.status) ||
                a ||
                ((a = !0), r.onheaders(i));
            }),
            (i.onload = function () {
              i.status >= 200 && i.status < 300 ? r.onload(i) : r.onerror(i);
            }),
            (i.onerror = function () {
              return r.onerror(i);
            }),
            (i.onabort = function () {
              (o = !0), r.onabort();
            }),
            (i.ontimeout = function () {
              return r.ontimeout(i);
            }),
            i.open(n.method, t, !0),
            q(n.timeout) && (i.timeout = n.timeout),
            Object.keys(n.headers).forEach(function (e) {
              i.setRequestHeader(e, n.headers[e]);
            }),
            n.responseType && (i.responseType = n.responseType),
            n.withCredentials && (i.withCredentials = !0),
            i.send(e),
            r
          );
        },
        Xe = function (e, t, n, r) {
          return { type: e, code: t, body: n, headers: r };
        },
        $e = function (e) {
          return function (t) {
            e(Xe("error", 0, "Timeout", t.getAllResponseHeaders()));
          };
        },
        Ze = function () {
          var e =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : "",
            t = arguments[1];
          if ("function" == typeof t) return t;
          if (!t || !U(t.url)) return null;
          var n =
              t.onload ||
              function (e) {
                return e;
              },
            r =
              t.onerror ||
              function (e) {
                return null;
              };
          return function (o, a, i, s, l, c) {
            var u = Qe(
              o,
              e + t.url,
              Object.assign({}, t, { responseType: "blob" })
            );
            return (
              (u.onload = function (e) {
                var t = e.getAllResponseHeaders(),
                  r = Ge(t).name || Ie(o);
                a(Xe("load", e.status, He(n(e.response), r), t));
              }),
              (u.onerror = function (e) {
                i(
                  Xe(
                    "error",
                    e.status,
                    r(e.response) || e.statusText,
                    e.getAllResponseHeaders()
                  )
                );
              }),
              (u.onheaders = function (e) {
                c(Xe("headers", e.status, null, e.getAllResponseHeaders()));
              }),
              (u.ontimeout = $e(i)),
              (u.onprogress = s),
              (u.onabort = l),
              u
            );
          };
        },
        et = function () {
          var e =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : "",
            t = arguments[1];
          if ("function" == typeof t) return t;
          if (!t || !U(t.url))
            return function (e, t) {
              return t();
            };
          var n =
              t.onload ||
              function (e) {
                return e;
              },
            r =
              t.onerror ||
              function (e) {
                return null;
              };
          return function (o, a, i) {
            var s = Qe(o, e + t.url, t);
            return (
              (s.onload = function (e) {
                a(
                  Xe("load", e.status, n(e.response), e.getAllResponseHeaders())
                );
              }),
              (s.onerror = function (e) {
                i(
                  Xe(
                    "error",
                    e.status,
                    r(e.response) || e.statusText,
                    e.getAllResponseHeaders()
                  )
                );
              }),
              (s.ontimeout = $e(i)),
              s
            );
          };
        },
        tt = function () {
          var e =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : 0,
            t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : 1;
          return e + Math.random() * (t - e);
        },
        nt = function (e) {
          var t = {
              complete: !1,
              perceivedProgress: 0,
              perceivedPerformanceUpdater: null,
              progress: null,
              timestamp: null,
              perceivedDuration: 0,
              duration: 0,
              request: null,
              response: null,
            },
            n = function () {
              t.request &&
                (t.perceivedPerformanceUpdater.clear(),
                t.request.abort(),
                (t.complete = !0));
            },
            r = Object.assign({}, me(), {
              process: function (n, o) {
                var a = function () {
                    0 !== t.duration &&
                      null !== t.progress &&
                      r.fire("progress", r.getProgress());
                  },
                  i = function () {
                    (t.complete = !0),
                      r.fire("load-perceived", t.response.body);
                  };
                r.fire("start"),
                  (t.timestamp = Date.now()),
                  (t.perceivedPerformanceUpdater = (function (e) {
                    var t =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : 1e3,
                      n =
                        arguments.length > 3 && void 0 !== arguments[3]
                          ? arguments[3]
                          : 25,
                      r =
                        arguments.length > 4 && void 0 !== arguments[4]
                          ? arguments[4]
                          : 250,
                      o = null,
                      a = Date.now(),
                      i = function i() {
                        var s = Date.now() - a,
                          l = tt(n, r);
                        s + l > t && (l = s + l - t);
                        var c = s / t;
                        c >= 1 ? e(1) : (e(c), (o = setTimeout(i, l)));
                      };
                    return (
                      i(),
                      {
                        clear: function () {
                          clearTimeout(o);
                        },
                      }
                    );
                  })(function (e) {
                    (t.perceivedProgress = e),
                      (t.perceivedDuration = Date.now() - t.timestamp),
                      a(),
                      t.response &&
                        1 === t.perceivedProgress &&
                        !t.complete &&
                        i();
                  }, tt(750, 1500))),
                  (t.request = e(
                    n,
                    o,
                    function (e) {
                      (t.response = X(e)
                        ? e
                        : {
                            type: "load",
                            code: 200,
                            body: "" + e,
                            headers: {},
                          }),
                        (t.duration = Date.now() - t.timestamp),
                        (t.progress = 1),
                        r.fire("load", t.response.body),
                        1 === t.perceivedProgress && i();
                    },
                    function (e) {
                      t.perceivedPerformanceUpdater.clear(),
                        r.fire(
                          "error",
                          X(e) ? e : { type: "error", code: 0, body: "" + e }
                        );
                    },
                    function (e, n, r) {
                      (t.duration = Date.now() - t.timestamp),
                        (t.progress = e ? n / r : null),
                        a();
                    },
                    function () {
                      t.perceivedPerformanceUpdater.clear(),
                        r.fire("abort", t.response ? t.response.body : null);
                    }
                  ));
              },
              abort: n,
              getProgress: function () {
                return t.progress
                  ? Math.min(t.progress, t.perceivedProgress)
                  : null;
              },
              getDuration: function () {
                return Math.min(t.duration, t.perceivedDuration);
              },
              reset: function () {
                n(),
                  (t.complete = !1),
                  (t.perceivedProgress = 0),
                  (t.progress = 0),
                  (t.timestamp = null),
                  (t.perceivedDuration = 0),
                  (t.duration = 0),
                  (t.request = null),
                  (t.response = null);
              },
            });
          return r;
        },
        rt = function (e) {
          return e.substr(0, e.lastIndexOf(".")) || e;
        },
        ot = {
          INIT: 1,
          IDLE: 2,
          PROCESSING_QUEUED: 9,
          PROCESSING: 3,
          PROCESSING_COMPLETE: 5,
          PROCESSING_ERROR: 6,
          PROCESSING_REVERT_ERROR: 10,
          LOADING: 7,
          LOAD_ERROR: 8,
        },
        at = function (e) {
          var t = [e.name, e.size, e.type];
          return (
            e instanceof Blob || Ae(e)
              ? (t[0] = e.name || Fe())
              : Ae(e)
              ? ((t[1] = e.length), (t[2] = Be(e)))
              : U(e) &&
                ((t[0] = Ie(e)),
                (t[1] = 0),
                (t[2] = "application/octet-stream")),
            { name: t[0], size: t[1], type: t[2] }
          );
        },
        it = { INPUT: 1, LIMBO: 2, LOCAL: 3 },
        st = function e(t) {
          if (!X(t)) return t;
          var n = Y(t) ? [] : {};
          for (var r in t)
            if (t.hasOwnProperty(r)) {
              var o = t[r];
              n[r] = o && X(o) ? e(o) : o;
            }
          return n;
        },
        lt = function (e, t) {
          var n = (function (e, t) {
            return j(t)
              ? 0
              : U(t)
              ? e.findIndex(function (e) {
                  return e.id === t;
                })
              : -1;
          })(e, t);
          if (!(n < 0)) return e[n] || null;
        },
        ct = function (e, t, n, r, o, a) {
          var i = Qe(null, e, { method: "GET", responseType: "blob" });
          return (
            (i.onload = function (n) {
              var r = n.getAllResponseHeaders(),
                o = Ge(r).name || Ie(e);
              t(Xe("load", n.status, He(n.response, o), r));
            }),
            (i.onerror = function (e) {
              n(Xe("error", e.status, e.statusText, e.getAllResponseHeaders()));
            }),
            (i.onheaders = function (e) {
              a(Xe("headers", e.status, null, e.getAllResponseHeaders()));
            }),
            (i.ontimeout = $e(n)),
            (i.onprogress = r),
            (i.onabort = o),
            i
          );
        },
        ut = function (e) {
          return (
            0 === e.indexOf("//") && (e = location.protocol + e),
            e
              .toLowerCase()
              .replace("blob:", "")
              .replace(/([a-z])?:\/\//, "$1")
              .split("/")[0]
          );
        },
        dt = function (e) {
          return e instanceof File || (e instanceof Blob && e.name);
        },
        ht = function (e) {
          return function () {
            return J(e) ? e.apply(void 0, arguments) : e;
          };
        },
        pt = function (e, t) {
          clearTimeout(t.listUpdateTimeout),
            (t.listUpdateTimeout = setTimeout(function () {
              e("DID_UPDATE_ITEMS", { items: Pe(t.items) });
            }, 0));
        },
        ft = function (e) {
          for (
            var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1;
            r < t;
            r++
          )
            n[r - 1] = arguments[r];
          return new Promise(function (t) {
            if (!e) return t(!0);
            var r = e.apply(void 0, n);
            return null == r
              ? t(!0)
              : "boolean" == typeof r
              ? t(r)
              : void ("function" == typeof r.then && r.then(t));
          });
        },
        mt = function (e, t) {
          return function () {
            var n =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {},
              r = n.query,
              o = n.success,
              a = void 0 === o ? function () {} : o,
              i = n.failure,
              s = void 0 === i ? function () {} : i,
              l = Le(e.items, r);
            l
              ? t(l, a, s)
              : s({ error: Xe("error", 0, "Item not found"), file: null });
          };
        },
        gt = function (e, t, n) {
          return {
            ABORT_ALL: function () {
              Pe(n.items).forEach(function (e) {
                e.abortLoad(), e.abortProcessing();
              });
            },
            DID_SET_FILES: function (t) {
              var r = t.value,
                o = (void 0 === r ? [] : r).map(function (e) {
                  return {
                    source: e.source ? e.source : e,
                    options: e.options,
                  };
                }),
                a = Pe(n.items);
              a.forEach(function (t) {
                o.find(function (e) {
                  return e.source === t.source || e.source === t.file;
                }) || e("REMOVE_ITEM", { query: t });
              }),
                (a = Pe(n.items)),
                o.forEach(function (t, n) {
                  a.find(function (e) {
                    return e.source === t.source || e.file === t.source;
                  }) ||
                    e(
                      "ADD_ITEM",
                      Object.assign({}, t, { interactionMethod: de, index: n })
                    );
                });
            },
            DID_UPDATE_ITEM_METADATA: function (r) {
              var o = r.id,
                a = lt(n.items, o);
              if (t("IS_ASYNC")) {
                var i,
                  s = function () {
                    setTimeout(function () {
                      e("REQUEST_ITEM_PROCESSING", { query: o });
                    }, 32);
                  };
                return a.status === ot.PROCESSING_COMPLETE
                  ? ((i = n.options.instantUpload),
                    void a
                      .revert(
                        et(n.options.server.url, n.options.server.revert),
                        t("GET_FORCE_REVERT")
                      )
                      .then(i ? s : function () {})
                      .catch(function () {}))
                  : a.status === ot.PROCESSING
                  ? (function (e) {
                      a.abortProcessing().then(e ? s : function () {});
                    })(n.options.instantUpload)
                  : void (n.options.instantUpload && s());
              }
              Me("SHOULD_PREPARE_OUTPUT", !1, { item: a, query: t }).then(
                function (t) {
                  t &&
                    e(
                      "REQUEST_PREPARE_OUTPUT",
                      {
                        query: o,
                        item: a,
                        ready: function (t) {
                          e("DID_PREPARE_OUTPUT", { id: o, file: t });
                        },
                      },
                      !0
                    );
                }
              );
            },
            ADD_ITEM: function (r) {
              var o = r.source,
                a = r.index,
                s = r.interactionMethod,
                l = r.success,
                c = void 0 === l ? function () {} : l,
                u = r.failure,
                d = void 0 === u ? function () {} : u,
                h = r.options,
                p = void 0 === h ? {} : h;
              if (j(o)) d({ error: Xe("error", 0, "No source"), file: null });
              else if (
                !dt(o) ||
                !n.options.ignoredFiles.includes(o.name.toLowerCase())
              ) {
                if (
                  !(function (e) {
                    var t = Pe(e.items).length;
                    if (!e.options.allowMultiple) return 0 === t;
                    var n = e.options.maxFiles;
                    return null === n || t < n;
                  })(n)
                ) {
                  if (
                    n.options.allowMultiple ||
                    (!n.options.allowMultiple && !n.options.allowReplace)
                  ) {
                    var f = Xe("warning", 0, "Max files");
                    return (
                      e("DID_THROW_MAX_FILES", { source: o, error: f }),
                      void d({ error: f, file: null })
                    );
                  }
                  var m = Pe(n.items)[0];
                  if (
                    m.status === ot.PROCESSING_COMPLETE ||
                    m.status === ot.PROCESSING_REVERT_ERROR
                  ) {
                    var g = t("GET_FORCE_REVERT");
                    if (
                      (m
                        .revert(
                          et(n.options.server.url, n.options.server.revert),
                          g
                        )
                        .then(function () {
                          g &&
                            e("ADD_ITEM", {
                              source: o,
                              index: a,
                              interactionMethod: s,
                              success: c,
                              failure: d,
                              options: p,
                            });
                        })
                        .catch(function () {}),
                      g)
                    )
                      return;
                  }
                  e("REMOVE_ITEM", { query: m.id });
                }
                var _ =
                    "local" === p.type
                      ? it.LOCAL
                      : "limbo" === p.type
                      ? it.LIMBO
                      : it.INPUT,
                  v = (function () {
                    var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : null,
                      t =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : null,
                      n =
                        arguments.length > 2 && void 0 !== arguments[2]
                          ? arguments[2]
                          : null,
                      r = he(),
                      o = {
                        archived: !1,
                        released: !1,
                        source: null,
                        file: n,
                        serverFileReference: t,
                        status: t ? ot.PROCESSING_COMPLETE : ot.INIT,
                        activeLoader: null,
                        activeProcessor: null,
                      },
                      a = null,
                      s = {},
                      l = function (e) {
                        return (o.status = e);
                      },
                      c = function (e) {
                        for (
                          var t = arguments.length,
                            n = Array(t > 1 ? t - 1 : 0),
                            r = 1;
                          r < t;
                          r++
                        )
                          n[r - 1] = arguments[r];
                        o.released || x.fire.apply(x, [e].concat(n));
                      },
                      u = function () {
                        return Re(o.file.name);
                      },
                      d = function () {
                        return o.file.type;
                      },
                      h = function () {
                        return o.file.size;
                      },
                      p = function () {
                        return o.file;
                      },
                      f = function (t, n, r) {
                        (o.source = t),
                          o.file
                            ? c("load-skip")
                            : ((o.file = at(t)),
                              n.on("init", function () {
                                c("load-init");
                              }),
                              n.on("meta", function (t) {
                                (o.file.size = t.size),
                                  (o.file.filename = t.filename),
                                  t.source &&
                                    ((e = it.LIMBO),
                                    (o.serverFileReference = t.source),
                                    (o.status = ot.PROCESSING_COMPLETE)),
                                  c("load-meta");
                              }),
                              n.on("progress", function (e) {
                                l(ot.LOADING), c("load-progress", e);
                              }),
                              n.on("error", function (e) {
                                l(ot.LOAD_ERROR), c("load-request-error", e);
                              }),
                              n.on("abort", function () {
                                l(ot.INIT), c("load-abort");
                              }),
                              n.on("load", function (t) {
                                o.activeLoader = null;
                                var n = function (t) {
                                  (o.file = t.size > 0 ? t : o.file),
                                    e === it.LIMBO && o.serverFileReference
                                      ? l(ot.PROCESSING_COMPLETE)
                                      : l(ot.IDLE),
                                    c("load");
                                };
                                o.serverFileReference
                                  ? n(t)
                                  : r(t, n, function (e) {
                                      (o.file = t),
                                        c("load-meta"),
                                        l(ot.LOAD_ERROR),
                                        c("load-file-error", e);
                                    });
                              }),
                              n.setSource(t),
                              (o.activeLoader = n),
                              n.load());
                      },
                      m = function () {
                        o.activeLoader && o.activeLoader.load();
                      },
                      g = function () {
                        o.activeLoader && o.activeLoader.abort();
                      },
                      _ = function e(t, n) {
                        l(ot.PROCESSING),
                          (a = null),
                          o.file instanceof Blob
                            ? (t.on("load", function (e) {
                                o.serverFileReference = e;
                              }),
                              t.on("load-perceived", function (e) {
                                (o.activeProcessor = null),
                                  (o.serverFileReference = e),
                                  l(ot.PROCESSING_COMPLETE),
                                  c("process-complete", e);
                              }),
                              t.on("start", function () {
                                c("process-start");
                              }),
                              t.on("error", function (e) {
                                (o.activeProcessor = null),
                                  l(ot.PROCESSING_ERROR),
                                  c("process-error", e);
                              }),
                              t.on("abort", function (e) {
                                (o.activeProcessor = null),
                                  (o.serverFileReference = e),
                                  l(ot.IDLE),
                                  c("process-abort"),
                                  a && a();
                              }),
                              t.on("progress", function (e) {
                                c("process-progress", e);
                              }),
                              n(
                                o.file,
                                function (e) {
                                  o.archived ||
                                    t.process(e, Object.assign({}, s));
                                },
                                function (e) {}
                              ),
                              (o.activeProcessor = t))
                            : x.on("load", function () {
                                e(t, n);
                              });
                      },
                      v = function () {
                        l(ot.PROCESSING_QUEUED);
                      },
                      b = function () {
                        return new Promise(function (e) {
                          if (!o.activeProcessor)
                            return l(ot.IDLE), c("process-abort"), void e();
                          (a = function () {
                            e();
                          }),
                            o.activeProcessor.abort();
                        });
                      },
                      y = function (e, t) {
                        return new Promise(function (n, r) {
                          null !== o.serverFileReference
                            ? (e(
                                o.serverFileReference,
                                function () {
                                  (o.serverFileReference = null), n();
                                },
                                function (e) {
                                  t
                                    ? (l(ot.PROCESSING_REVERT_ERROR),
                                      c("process-revert-error"),
                                      r(e))
                                    : n();
                                }
                              ),
                              l(ot.IDLE),
                              c("process-revert"))
                            : n();
                        });
                      },
                      w = function (e, t, n) {
                        var r = e.split("."),
                          o = r[0],
                          a = r.pop(),
                          i = s;
                        r.forEach(function (e) {
                          return (i = i[e]);
                        }),
                          JSON.stringify(i[a]) !== JSON.stringify(t) &&
                            ((i[a] = t),
                            n || c("metadata-update", { key: o, value: s[o] }));
                      },
                      k = function (e) {
                        return st(e ? s[e] : s);
                      },
                      x = Object.assign(
                        {
                          id: {
                            get: function () {
                              return r;
                            },
                          },
                          origin: {
                            get: function () {
                              return e;
                            },
                          },
                          serverId: {
                            get: function () {
                              return o.serverFileReference;
                            },
                          },
                          status: {
                            get: function () {
                              return o.status;
                            },
                          },
                          filename: {
                            get: function () {
                              return o.file.name;
                            },
                          },
                          filenameWithoutExtension: {
                            get: function () {
                              return rt(o.file.name);
                            },
                          },
                          fileExtension: { get: u },
                          fileType: { get: d },
                          fileSize: { get: h },
                          file: { get: p },
                          source: {
                            get: function () {
                              return o.source;
                            },
                          },
                          getMetadata: k,
                          setMetadata: function (e, t, n) {
                            if (X(e)) {
                              var r = e;
                              return (
                                Object.keys(r).forEach(function (e) {
                                  w(e, r[e], t);
                                }),
                                e
                              );
                            }
                            return w(e, t, n), t;
                          },
                          extend: function (e, t) {
                            return (M[e] = t);
                          },
                          abortLoad: g,
                          retryLoad: m,
                          requestProcessing: v,
                          abortProcessing: b,
                          load: f,
                          process: _,
                          revert: y,
                        },
                        me(),
                        {
                          release: function () {
                            return (o.released = !0);
                          },
                          released: {
                            get: function () {
                              return o.released;
                            },
                          },
                          archive: function () {
                            return (o.archived = !0);
                          },
                          archived: {
                            get: function () {
                              return o.archived;
                            },
                          },
                        }
                      ),
                      M = i(x);
                    return M;
                  })(_, _ === it.INPUT ? null : o, p.file);
                Object.keys(p.metadata || {}).forEach(function (e) {
                  v.setMetadata(e, p.metadata[e]);
                }),
                  Ee("DID_CREATE_ITEM", v, { query: t, dispatch: e }),
                  Ne(n.items, v, a);
                var b = v.id;
                v.on("load-init", function () {
                  e("DID_START_ITEM_LOAD", { id: b });
                }),
                  v.on("load-meta", function () {
                    e("DID_UPDATE_ITEM_META", { id: b });
                  }),
                  v.on("load-progress", function (t) {
                    e("DID_UPDATE_ITEM_LOAD_PROGRESS", { id: b, progress: t });
                  }),
                  v.on("load-request-error", function (t) {
                    var r = ht(n.options.labelFileLoadError)(t);
                    if (t.code >= 400 && t.code < 500)
                      return (
                        e("DID_THROW_ITEM_INVALID", {
                          id: b,
                          error: t,
                          status: {
                            main: r,
                            sub: t.code + " (" + t.body + ")",
                          },
                        }),
                        void d({ error: t, file: ve(v) })
                      );
                    e("DID_THROW_ITEM_LOAD_ERROR", {
                      id: b,
                      error: t,
                      status: { main: r, sub: n.options.labelTapToRetry },
                    });
                  }),
                  v.on("load-file-error", function (t) {
                    e(
                      "DID_THROW_ITEM_INVALID",
                      Object.assign({}, t, { id: b })
                    );
                  }),
                  v.on("load-abort", function () {
                    e("REMOVE_ITEM", { query: b });
                  }),
                  v.on("load-skip", function () {
                    e("COMPLETE_LOAD_ITEM", {
                      query: b,
                      item: v,
                      data: { source: o, success: c },
                    });
                  }),
                  v.on("load", function () {
                    var r = function (r) {
                      r
                        ? (v.on("metadata-update", function (t) {
                            e("DID_UPDATE_ITEM_METADATA", { id: b, change: t });
                          }),
                          Me("SHOULD_PREPARE_OUTPUT", !1, {
                            item: v,
                            query: t,
                          }).then(function (t) {
                            var r = function () {
                              e("COMPLETE_LOAD_ITEM", {
                                query: b,
                                item: v,
                                data: { source: o, success: c },
                              }),
                                pt(e, n);
                            };
                            t
                              ? e(
                                  "REQUEST_PREPARE_OUTPUT",
                                  {
                                    query: b,
                                    item: v,
                                    ready: function (t) {
                                      e("DID_PREPARE_OUTPUT", {
                                        id: b,
                                        file: t,
                                      }),
                                        r();
                                    },
                                  },
                                  !0
                                )
                              : r();
                          }))
                        : e("REMOVE_ITEM", { query: b });
                    };
                    Me("DID_LOAD_ITEM", v, { query: t, dispatch: e })
                      .then(function () {
                        ft(t("GET_BEFORE_ADD_FILE"), ve(v)).then(r);
                      })
                      .catch(function () {
                        r(!1);
                      });
                  }),
                  v.on("process-start", function () {
                    e("DID_START_ITEM_PROCESSING", { id: b });
                  }),
                  v.on("process-progress", function (t) {
                    e("DID_UPDATE_ITEM_PROCESS_PROGRESS", {
                      id: b,
                      progress: t,
                    });
                  }),
                  v.on("process-error", function (t) {
                    e("DID_THROW_ITEM_PROCESSING_ERROR", {
                      id: b,
                      error: t,
                      status: {
                        main: ht(n.options.labelFileProcessingError)(t),
                        sub: n.options.labelTapToRetry,
                      },
                    });
                  }),
                  v.on("process-revert-error", function (t) {
                    e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR", {
                      id: b,
                      error: t,
                      status: {
                        main: ht(n.options.labelFileProcessingRevertError)(t),
                        sub: n.options.labelTapToRetry,
                      },
                    });
                  }),
                  v.on("process-complete", function (t) {
                    e("DID_COMPLETE_ITEM_PROCESSING", {
                      id: b,
                      error: null,
                      serverFileReference: t,
                    });
                  }),
                  v.on("process-abort", function () {
                    e("DID_ABORT_ITEM_PROCESSING", { id: b });
                  }),
                  v.on("process-revert", function () {
                    e("DID_REVERT_ITEM_PROCESSING", { id: b });
                  }),
                  e("DID_ADD_ITEM", { id: b, index: a, interactionMethod: s }),
                  pt(e, n);
                var y = n.options.server || {},
                  w = y.url,
                  k = y.load,
                  x = y.restore,
                  M = y.fetch;
                v.load(
                  o,
                  Je(
                    _ === it.INPUT
                      ? U(o) &&
                        (function (e) {
                          return (
                            (e.indexOf(":") > -1 || e.indexOf("//") > -1) &&
                            ut(location.href) !== ut(e)
                          );
                        })(o)
                        ? Ze(w, M)
                        : ct
                      : Ze(w, _ === it.LIMBO ? x : k)
                  ),
                  function (e, n, r) {
                    Me("LOAD_FILE", e, { query: t }).then(n).catch(r);
                  }
                );
              }
            },
            REQUEST_PREPARE_OUTPUT: function (e) {
              var n = e.item,
                r = e.ready;
              Me("PREPARE_OUTPUT", n.file, { query: t, item: n }).then(
                function (e) {
                  Me("COMPLETE_PREPARE_OUTPUT", e, { query: t, item: n }).then(
                    function (e) {
                      r(e);
                    }
                  );
                }
              );
            },
            COMPLETE_LOAD_ITEM: function (r) {
              var o = r.item,
                a = r.data,
                i = a.success,
                s = a.source;
              e("DID_LOAD_ITEM", {
                id: o.id,
                error: null,
                serverFileReference: o.origin === it.INPUT ? null : s,
              }),
                i(ve(o)),
                o.origin !== it.LOCAL
                  ? o.origin !== it.LIMBO
                    ? t("IS_ASYNC") &&
                      n.options.instantUpload &&
                      e("REQUEST_ITEM_PROCESSING", { query: o.id })
                    : e("DID_COMPLETE_ITEM_PROCESSING", {
                        id: o.id,
                        error: null,
                        serverFileReference: s,
                      })
                  : e("DID_LOAD_LOCAL_ITEM", { id: o.id });
            },
            RETRY_ITEM_LOAD: mt(n, function (e) {
              e.retryLoad();
            }),
            REQUEST_ITEM_PROCESSING: mt(n, function (r, o, a) {
              if (r.status === ot.IDLE || r.status === ot.PROCESSING_ERROR)
                r.status !== ot.PROCESSING_QUEUED &&
                  (r.requestProcessing(),
                  e("DID_REQUEST_ITEM_PROCESSING", { id: r.id }),
                  e("PROCESS_ITEM", { query: r, success: o, failure: a }, !0));
              else {
                var i = function () {
                  setTimeout(function () {
                    e("REQUEST_ITEM_PROCESSING", {
                      query: r,
                      success: o,
                      failure: a,
                    });
                  }, 32);
                };
                r.status === ot.PROCESSING_COMPLETE ||
                r.status === ot.PROCESSING_REVERT_ERROR
                  ? r
                      .revert(
                        et(n.options.server.url, n.options.server.revert),
                        t("GET_FORCE_REVERT")
                      )
                      .then(i)
                      .catch(function () {})
                  : r.status === ot.PROCESSING && r.abortProcessing().then(i);
              }
            }),
            PROCESS_ITEM: mt(n, function (r, o, a) {
              var i = t("GET_MAX_PARALLEL_UPLOADS");
              t("GET_ITEMS_BY_STATUS", ot.PROCESSING).length !== i
                ? r.status !== ot.PROCESSING &&
                  (r.onOnce("process-complete", function () {
                    o(ve(r));
                    var t = n.processingQueue.shift();
                    t &&
                      e(
                        "PROCESS_ITEM",
                        {
                          query: t.item,
                          success: t.success,
                          failure: t.failure,
                        },
                        !0
                      );
                  }),
                  r.onOnce("process-error", function (e) {
                    a({ error: e, file: ve(r) });
                  }),
                  r.process(
                    nt(
                      (function () {
                        var e =
                            arguments.length > 0 && void 0 !== arguments[0]
                              ? arguments[0]
                              : "",
                          t = arguments[1],
                          n = arguments[2];
                        return "function" == typeof t
                          ? function () {
                              for (
                                var e = arguments.length, r = Array(e), o = 0;
                                o < e;
                                o++
                              )
                                r[o] = arguments[o];
                              return t.apply(void 0, [n].concat(r));
                            }
                          : t && U(t.url)
                          ? function (r, o, a, i, s, l) {
                              var c =
                                  t.ondata ||
                                  function (e) {
                                    return e;
                                  },
                                u =
                                  t.onload ||
                                  function (e) {
                                    return e;
                                  },
                                d =
                                  t.onerror ||
                                  function (e) {
                                    return null;
                                  };
                              if (r) {
                                var h = new FormData();
                                X(o) && h.append(n, JSON.stringify(o)),
                                  (r instanceof Blob
                                    ? [{ name: null, file: r }]
                                    : r
                                  ).forEach(function (e) {
                                    h.append(
                                      n,
                                      e.file,
                                      null === e.name
                                        ? e.file.name
                                        : "" + e.name + e.file.name
                                    );
                                  });
                                var p = Qe(c(h), e + t.url, t);
                                return (
                                  (p.onload = function (e) {
                                    a(
                                      Xe(
                                        "load",
                                        e.status,
                                        u(e.response),
                                        e.getAllResponseHeaders()
                                      )
                                    );
                                  }),
                                  (p.onerror = function (e) {
                                    i(
                                      Xe(
                                        "error",
                                        e.status,
                                        d(e.response) || e.statusText,
                                        e.getAllResponseHeaders()
                                      )
                                    );
                                  }),
                                  (p.ontimeout = $e(i)),
                                  (p.onprogress = s),
                                  (p.onabort = l),
                                  p
                                );
                              }
                            }
                          : null;
                      })(
                        n.options.server.url,
                        n.options.server.process,
                        n.options.name
                      )
                    ),
                    function (n, o, a) {
                      Me("PREPARE_OUTPUT", n, { query: t, item: r })
                        .then(function (t) {
                          e("DID_PREPARE_OUTPUT", { id: r.id, file: t }), o(t);
                        })
                        .catch(a);
                    }
                  ))
                : n.processingQueue.push({ item: r, success: o, failure: a });
            }),
            RETRY_ITEM_PROCESSING: mt(n, function (t) {
              e("REQUEST_ITEM_PROCESSING", { query: t });
            }),
            REQUEST_REMOVE_ITEM: mt(n, function (n) {
              ft(t("GET_BEFORE_REMOVE_FILE"), ve(n)).then(function (t) {
                t && e("REMOVE_ITEM", { query: n });
              });
            }),
            RELEASE_ITEM: mt(n, function (e) {
              e.release();
            }),
            REMOVE_ITEM: mt(n, function (t, r) {
              var o = function () {
                  var o = t.id;
                  lt(n.items, o).archive(),
                    e("DID_REMOVE_ITEM", { id: o, item: t }),
                    pt(e, n),
                    r(ve(t));
                },
                a = n.options.server;
              t.origin === it.LOCAL && a && J(a.remove)
                ? (e("DID_START_ITEM_REMOVE", { id: t.id }),
                  a.remove(
                    t.source,
                    function () {
                      return o();
                    },
                    function (r) {
                      e("DID_THROW_ITEM_REMOVE_ERROR", {
                        id: t.id,
                        error: Xe("error", 0, r, null),
                        status: {
                          main: ht(n.options.labelFileRemoveError)(r),
                          sub: n.options.labelTapToRetry,
                        },
                      });
                    }
                  ))
                : o();
            }),
            ABORT_ITEM_LOAD: mt(n, function (e) {
              e.abortLoad();
            }),
            ABORT_ITEM_PROCESSING: mt(n, function (t) {
              t.serverId
                ? e("REVERT_ITEM_PROCESSING", { id: t.id })
                : t.abortProcessing().then(function () {
                    n.options.instantUpload &&
                      e("REMOVE_ITEM", { query: t.id });
                  });
            }),
            REQUEST_REVERT_ITEM_PROCESSING: mt(n, function (r) {
              if (n.options.instantUpload) {
                var o = function (t) {
                    t && e("REVERT_ITEM_PROCESSING", { query: r });
                  },
                  a = t("GET_BEFORE_REMOVE_FILE");
                if (!a) return o(!0);
                var i = a(ve(r));
                return null == i
                  ? o(!0)
                  : "boolean" == typeof i
                  ? o(i)
                  : void ("function" == typeof i.then && i.then(o));
              }
              e("REVERT_ITEM_PROCESSING", { query: r });
            }),
            REVERT_ITEM_PROCESSING: mt(n, function (r) {
              r.revert(
                et(n.options.server.url, n.options.server.revert),
                t("GET_FORCE_REVERT")
              )
                .then(function () {
                  (n.options.instantUpload ||
                    (function (e) {
                      return !dt(e.file);
                    })(r)) &&
                    e("REMOVE_ITEM", { query: r.id });
                })
                .catch(function () {});
            }),
            SET_OPTIONS: function (t) {
              var n = t.options;
              a(n, function (t, n) {
                e("SET_" + re(t, "_").toUpperCase(), { value: n });
              });
            },
          };
        },
        _t = function (e) {
          return document.createElement(e);
        },
        vt = function (e, t) {
          var n = e.childNodes[0];
          n
            ? t !== n.nodeValue && (n.nodeValue = t)
            : ((n = document.createTextNode(t)), e.appendChild(n));
        },
        bt = function (e, t, n, r) {
          var o = (((r % 360) - 90) * Math.PI) / 180;
          return { x: e + n * Math.cos(o), y: t + n * Math.sin(o) };
        },
        yt = function (e, t, n, r, o) {
          var a = 1;
          return (
            o > r && o - r <= 0.5 && (a = 0),
            r > o && r - o >= 0.5 && (a = 0),
            (function (e, t, n, r, o, a) {
              var i = bt(e, t, n, o),
                s = bt(e, t, n, r);
              return ["M", i.x, i.y, "A", n, n, 0, a, 0, s.x, s.y].join(" ");
            })(e, t, n, 360 * Math.min(0.9999, r), 360 * Math.min(0.9999, o), a)
          );
        },
        wt = N({
          tag: "div",
          name: "progress-indicator",
          ignoreRectUpdate: !0,
          ignoreRect: !0,
          create: function (e) {
            var t = e.root,
              n = e.props;
            (n.spin = !1), (n.progress = 0), (n.opacity = 0);
            var r = f("svg");
            (t.ref.path = f("path", {
              "stroke-width": 2,
              "stroke-linecap": "round",
            })),
              r.appendChild(t.ref.path),
              (t.ref.svg = r),
              t.appendChild(r);
          },
          write: function (e) {
            var t = e.root,
              n = e.props;
            if (0 !== n.opacity) {
              n.align && (t.element.dataset.align = n.align);
              var r = parseInt(s(t.ref.path, "stroke-width"), 10),
                o = 0.5 * t.rect.element.width,
                a = 0,
                i = 0;
              n.spin ? ((a = 0), (i = 0.5)) : ((a = 0), (i = n.progress));
              var l = yt(o, o, o - r, a, i);
              s(t.ref.path, "d", l),
                s(
                  t.ref.path,
                  "stroke-opacity",
                  n.spin || n.progress > 0 ? 1 : 0
                );
            }
          },
          mixins: {
            apis: ["progress", "spin", "align"],
            styles: ["opacity"],
            animations: {
              opacity: { type: "tween", duration: 500 },
              progress: {
                type: "spring",
                stiffness: 0.95,
                damping: 0.65,
                mass: 10,
              },
            },
          },
        }),
        kt = N({
          tag: "button",
          attributes: { type: "button" },
          ignoreRect: !0,
          ignoreRectUpdate: !0,
          name: "file-action-button",
          mixins: {
            apis: ["label"],
            styles: ["translateX", "translateY", "scaleX", "scaleY", "opacity"],
            animations: {
              scaleX: "spring",
              scaleY: "spring",
              translateX: "spring",
              translateY: "spring",
              opacity: { type: "tween", duration: 250 },
            },
            listeners: !0,
          },
          create: function (e) {
            var t = e.root,
              n = e.props;
            (t.element.title = n.label),
              (t.element.innerHTML = n.icon || ""),
              (n.disabled = !1);
          },
          write: function (e) {
            var t = e.root,
              n = e.props;
            0 !== n.opacity || n.disabled
              ? n.opacity > 0 &&
                n.disabled &&
                ((n.disabled = !1), t.element.removeAttribute("disabled"))
              : ((n.disabled = !0), s(t.element, "disabled", "disabled"));
          },
        }),
        xt = function (e) {
          var t =
            arguments.length > 1 && void 0 !== arguments[1]
              ? arguments[1]
              : ".";
          return (e = Math.round(Math.abs(e))) < 1e3
            ? e + " bytes"
            : e < Et
            ? Math.floor(e / Mt) + " KB"
            : e < Tt
            ? St(e / Et, 1, t) + " MB"
            : St(e / Tt, 2, t) + " GB";
        },
        Mt = 1e3,
        Et = 1e6,
        Tt = 1e9,
        St = function (e, t, n) {
          return e
            .toFixed(t)
            .split(".")
            .filter(function (e) {
              return "0" !== e;
            })
            .join(n);
        },
        Dt = function (e) {
          var t = e.root,
            n = e.props;
          vt(t.ref.fileSize, xt(t.query("GET_ITEM_SIZE", n.id))),
            vt(t.ref.fileName, t.query("GET_ITEM_NAME", n.id));
        },
        Lt = function (e) {
          var t = e.root,
            n = e.props;
          q(t.query("GET_ITEM_SIZE", n.id)) ||
            vt(t.ref.fileSize, t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"));
        },
        Ct = N({
          name: "file-info",
          ignoreRect: !0,
          ignoreRectUpdate: !0,
          write: A({
            DID_LOAD_ITEM: Dt,
            DID_UPDATE_ITEM_META: Dt,
            DID_THROW_ITEM_LOAD_ERROR: Lt,
            DID_THROW_ITEM_INVALID: Lt,
          }),
          didCreateView: function (e) {
            Ee("CREATE_VIEW", Object.assign({}, e, { view: e }));
          },
          create: function (e) {
            var t = e.root,
              n = e.props,
              r = _t("span");
            (r.className = "filepond--file-info-main"),
              s(r, "aria-hidden", "true"),
              t.appendChild(r),
              (t.ref.fileName = r);
            var o = _t("span");
            (o.className = "filepond--file-info-sub"),
              t.appendChild(o),
              (t.ref.fileSize = o),
              vt(o, t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),
              vt(r, t.query("GET_ITEM_NAME", n.id));
          },
          mixins: {
            styles: ["translateX", "translateY"],
            animations: { translateX: "spring", translateY: "spring" },
          },
        }),
        Pt = function (e) {
          return Math.round(100 * e);
        },
        Ot = function (e) {
          var t = e.root,
            n = e.action,
            r =
              null === n.progress
                ? t.query("GET_LABEL_FILE_LOADING")
                : t.query("GET_LABEL_FILE_LOADING") +
                  " " +
                  Pt(n.progress) +
                  "%";
          vt(t.ref.main, r), vt(t.ref.sub, t.query("GET_LABEL_TAP_TO_CANCEL"));
        },
        Nt = function (e) {
          var t = e.root;
          vt(t.ref.main, ""), vt(t.ref.sub, "");
        },
        At = function (e) {
          var t = e.root,
            n = e.action;
          vt(t.ref.main, n.status.main), vt(t.ref.sub, n.status.sub);
        },
        It = N({
          name: "file-status",
          ignoreRect: !0,
          ignoreRectUpdate: !0,
          write: A({
            DID_LOAD_ITEM: Nt,
            DID_REVERT_ITEM_PROCESSING: Nt,
            DID_REQUEST_ITEM_PROCESSING: function (e) {
              var t = e.root;
              vt(t.ref.main, t.query("GET_LABEL_FILE_PROCESSING")),
                vt(t.ref.sub, t.query("GET_LABEL_TAP_TO_CANCEL"));
            },
            DID_ABORT_ITEM_PROCESSING: function (e) {
              var t = e.root;
              vt(t.ref.main, t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),
                vt(t.ref.sub, t.query("GET_LABEL_TAP_TO_RETRY"));
            },
            DID_COMPLETE_ITEM_PROCESSING: function (e) {
              var t = e.root;
              vt(t.ref.main, t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),
                vt(t.ref.sub, t.query("GET_LABEL_TAP_TO_UNDO"));
            },
            DID_UPDATE_ITEM_PROCESS_PROGRESS: function (e) {
              var t = e.root,
                n = e.action,
                r =
                  null === n.progress
                    ? t.query("GET_LABEL_FILE_PROCESSING")
                    : t.query("GET_LABEL_FILE_PROCESSING") +
                      " " +
                      Pt(n.progress) +
                      "%";
              vt(t.ref.main, r),
                vt(t.ref.sub, t.query("GET_LABEL_TAP_TO_CANCEL"));
            },
            DID_UPDATE_ITEM_LOAD_PROGRESS: Ot,
            DID_THROW_ITEM_LOAD_ERROR: At,
            DID_THROW_ITEM_INVALID: At,
            DID_THROW_ITEM_PROCESSING_ERROR: At,
            DID_THROW_ITEM_PROCESSING_REVERT_ERROR: At,
            DID_THROW_ITEM_REMOVE_ERROR: At,
          }),
          didCreateView: function (e) {
            Ee("CREATE_VIEW", Object.assign({}, e, { view: e }));
          },
          create: function (e) {
            var t = e.root,
              n = _t("span");
            (n.className = "filepond--file-status-main"),
              t.appendChild(n),
              (t.ref.main = n);
            var r = _t("span");
            (r.className = "filepond--file-status-sub"),
              t.appendChild(r),
              (t.ref.sub = r),
              Ot({ root: t, action: { progress: null } });
          },
          mixins: {
            styles: ["translateX", "translateY", "opacity"],
            animations: {
              opacity: { type: "tween", duration: 250 },
              translateX: "spring",
              translateY: "spring",
            },
          },
        }),
        Rt = {
          AbortItemLoad: {
            label: "GET_LABEL_BUTTON_ABORT_ITEM_LOAD",
            action: "ABORT_ITEM_LOAD",
            className: "filepond--action-abort-item-load",
            align: "LOAD_INDICATOR_POSITION",
          },
          RetryItemLoad: {
            label: "GET_LABEL_BUTTON_RETRY_ITEM_LOAD",
            action: "RETRY_ITEM_LOAD",
            icon: "GET_ICON_RETRY",
            className: "filepond--action-retry-item-load",
            align: "BUTTON_PROCESS_ITEM_POSITION",
          },
          RemoveItem: {
            label: "GET_LABEL_BUTTON_REMOVE_ITEM",
            action: "REQUEST_REMOVE_ITEM",
            icon: "GET_ICON_REMOVE",
            className: "filepond--action-remove-item",
            align: "BUTTON_REMOVE_ITEM_POSITION",
          },
          ProcessItem: {
            label: "GET_LABEL_BUTTON_PROCESS_ITEM",
            action: "REQUEST_ITEM_PROCESSING",
            icon: "GET_ICON_PROCESS",
            className: "filepond--action-process-item",
            align: "BUTTON_PROCESS_ITEM_POSITION",
          },
          AbortItemProcessing: {
            label: "GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",
            action: "ABORT_ITEM_PROCESSING",
            className: "filepond--action-abort-item-processing",
            align: "BUTTON_PROCESS_ITEM_POSITION",
          },
          RetryItemProcessing: {
            label: "GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",
            action: "RETRY_ITEM_PROCESSING",
            icon: "GET_ICON_RETRY",
            className: "filepond--action-retry-item-processing",
            align: "BUTTON_PROCESS_ITEM_POSITION",
          },
          RevertItemProcessing: {
            label: "GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",
            action: "REQUEST_REVERT_ITEM_PROCESSING",
            icon: "GET_ICON_UNDO",
            className: "filepond--action-revert-item-processing",
            align: "BUTTON_PROCESS_ITEM_POSITION",
          },
        },
        Yt = [];
      a(Rt, function (e) {
        Yt.push(e);
      });
      var jt,
        Ft = function (e) {
          return (
            e.ref.buttonRemoveItem.rect.element.width +
            e.ref.buttonRemoveItem.rect.element.left
          );
        },
        Ht = function (e) {
          return Math.floor(e.ref.buttonRemoveItem.rect.element.height / 4);
        },
        zt = function (e) {
          return Math.floor(e.ref.buttonRemoveItem.rect.element.left / 2);
        },
        Bt = function (e) {
          return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION");
        },
        Ut = {
          buttonAbortItemLoad: { opacity: 0 },
          buttonRetryItemLoad: { opacity: 0 },
          buttonRemoveItem: { opacity: 0 },
          buttonProcessItem: { opacity: 0 },
          buttonAbortItemProcessing: { opacity: 0 },
          buttonRetryItemProcessing: { opacity: 0 },
          buttonRevertItemProcessing: { opacity: 0 },
          loadProgressIndicator: {
            opacity: 0,
            align: function (e) {
              return e.query("GET_STYLE_LOAD_INDICATOR_POSITION");
            },
          },
          processProgressIndicator: {
            opacity: 0,
            align: function (e) {
              return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION");
            },
          },
          processingCompleteIndicator: {
            opacity: 0,
            scaleX: 0.75,
            scaleY: 0.75,
          },
          info: { translateX: 0, translateY: 0, opacity: 0 },
          status: { translateX: 0, translateY: 0, opacity: 0 },
        },
        Vt = {
          buttonRemoveItem: { opacity: 1 },
          buttonProcessItem: { opacity: 1 },
          info: { translateX: Ft },
          status: { translateX: Ft },
        },
        Wt = {
          buttonAbortItemProcessing: { opacity: 1 },
          processProgressIndicator: { opacity: 1 },
          status: { opacity: 1 },
        },
        qt = {
          DID_THROW_ITEM_INVALID: {
            buttonRemoveItem: { opacity: 1 },
            info: { translateX: Ft },
            status: { translateX: Ft, opacity: 1 },
          },
          DID_START_ITEM_LOAD: {
            buttonAbortItemLoad: { opacity: 1 },
            loadProgressIndicator: { opacity: 1 },
            status: { opacity: 1 },
          },
          DID_THROW_ITEM_LOAD_ERROR: {
            buttonRetryItemLoad: { opacity: 1 },
            buttonRemoveItem: { opacity: 1 },
            info: { translateX: Ft },
            status: { opacity: 1 },
          },
          DID_START_ITEM_REMOVE: {
            processProgressIndicator: { opacity: 1, align: Bt },
            info: { translateX: Ft },
            status: { opacity: 0 },
          },
          DID_THROW_ITEM_REMOVE_ERROR: {
            processProgressIndicator: { opacity: 0, align: Bt },
            buttonRemoveItem: { opacity: 1 },
            info: { translateX: Ft },
            status: { opacity: 1, translateX: Ft },
          },
          DID_LOAD_ITEM: Vt,
          DID_LOAD_LOCAL_ITEM: {
            buttonRemoveItem: { opacity: 1 },
            info: { translateX: Ft },
            status: { translateX: Ft },
          },
          DID_START_ITEM_PROCESSING: Wt,
          DID_REQUEST_ITEM_PROCESSING: Wt,
          DID_UPDATE_ITEM_PROCESS_PROGRESS: Wt,
          DID_COMPLETE_ITEM_PROCESSING: {
            buttonRevertItemProcessing: { opacity: 1 },
            info: { opacity: 1 },
            status: { opacity: 1 },
          },
          DID_THROW_ITEM_PROCESSING_ERROR: {
            buttonRemoveItem: { opacity: 1 },
            buttonRetryItemProcessing: { opacity: 1 },
            status: { opacity: 1 },
            info: { translateX: Ft },
          },
          DID_THROW_ITEM_PROCESSING_REVERT_ERROR: {
            buttonRevertItemProcessing: { opacity: 1 },
            status: { opacity: 1 },
            info: { opacity: 1 },
          },
          DID_ABORT_ITEM_PROCESSING: {
            buttonRemoveItem: { opacity: 1 },
            buttonProcessItem: { opacity: 1 },
            info: { translateX: Ft },
            status: { opacity: 1 },
          },
          DID_REVERT_ITEM_PROCESSING: Vt,
        },
        Gt = N({
          create: function (e) {
            var t = e.root;
            t.element.innerHTML = t.query("GET_ICON_DONE");
          },
          name: "processing-complete-indicator",
          ignoreRect: !0,
          mixins: {
            styles: ["scaleX", "scaleY", "opacity"],
            animations: {
              scaleX: "spring",
              scaleY: "spring",
              opacity: { type: "tween", duration: 250 },
            },
          },
        }),
        Jt = A({
          DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING: function (e) {
            var t = e.root,
              n = e.action;
            t.ref.buttonAbortItemProcessing.label = n.value;
          },
          DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD: function (e) {
            var t = e.root,
              n = e.action;
            t.ref.buttonAbortItemLoad.label = n.value;
          },
          DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL: function (e) {
            var t = e.root,
              n = e.action;
            t.ref.buttonAbortItemRemoval.label = n.value;
          },
          DID_REQUEST_ITEM_PROCESSING: function (e) {
            var t = e.root;
            (t.ref.processProgressIndicator.spin = !0),
              (t.ref.processProgressIndicator.progress = 0);
          },
          DID_START_ITEM_LOAD: function (e) {
            var t = e.root;
            (t.ref.loadProgressIndicator.spin = !0),
              (t.ref.loadProgressIndicator.progress = 0);
          },
          DID_START_ITEM_REMOVE: function (e) {
            var t = e.root;
            (t.ref.processProgressIndicator.spin = !0),
              (t.ref.processProgressIndicator.progress = 0);
          },
          DID_UPDATE_ITEM_LOAD_PROGRESS: function (e) {
            var t = e.root,
              n = e.action;
            (t.ref.loadProgressIndicator.spin = !1),
              (t.ref.loadProgressIndicator.progress = n.progress);
          },
          DID_UPDATE_ITEM_PROCESS_PROGRESS: function (e) {
            var t = e.root,
              n = e.action;
            (t.ref.processProgressIndicator.spin = !1),
              (t.ref.processProgressIndicator.progress = n.progress);
          },
        }),
        Kt = N({
          create: function (e) {
            var t = e.root,
              n = e.props.id,
              r = t.query("GET_ALLOW_REVERT"),
              o = t.query("GET_INSTANT_UPLOAD"),
              i = t.query("IS_ASYNC"),
              s = i
                ? Yt.concat()
                : Yt.filter(function (e) {
                    return !/Process/.test(e);
                  });
            if (i && !r) {
              s.splice(-1, 1);
              var l = qt.DID_COMPLETE_ITEM_PROCESSING;
              (l.info.translateX = zt),
                (l.info.translateY = Ht),
                (l.status.translateY = Ht),
                (l.processingCompleteIndicator = {
                  opacity: 1,
                  scaleX: 1,
                  scaleY: 1,
                });
            }
            o &&
              r &&
              ((Rt.RevertItemProcessing.label = "GET_LABEL_BUTTON_REMOVE_ITEM"),
              (Rt.RevertItemProcessing.icon = "GET_ICON_REMOVE")),
              a(Rt, function (e, r) {
                var o = t.createChildView(kt, {
                  label: t.query(r.label),
                  icon: t.query(r.icon),
                  opacity: 0,
                });
                s.includes(e) && t.appendChildView(o),
                  (o.element.dataset.align = t.query("GET_STYLE_" + r.align)),
                  o.element.classList.add(r.className),
                  o.on("click", function () {
                    t.dispatch(r.action, { query: n });
                  }),
                  (t.ref["button" + e] = o);
              }),
              (t.ref.info = t.appendChildView(
                t.createChildView(Ct, { id: n })
              )),
              (t.ref.status = t.appendChildView(
                t.createChildView(It, { id: n })
              )),
              (t.ref.processingCompleteIndicator = t.appendChildView(
                t.createChildView(Gt)
              )),
              (t.ref.processingCompleteIndicator.element.dataset.align = t.query(
                "GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"
              ));
            var c = t.appendChildView(
              t.createChildView(wt, {
                opacity: 0,
                align: t.query("GET_STYLE_LOAD_INDICATOR_POSITION"),
              })
            );
            c.element.classList.add("filepond--load-indicator"),
              (t.ref.loadProgressIndicator = c);
            var u = t.appendChildView(
              t.createChildView(wt, {
                opacity: 0,
                align: t.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"),
              })
            );
            u.element.classList.add("filepond--process-indicator"),
              (t.ref.processProgressIndicator = u);
          },
          write: function (e) {
            var t = e.root,
              n = e.actions,
              r = e.props;
            Jt({ root: t, actions: n, props: r });
            var o = []
              .concat(u(n))
              .filter(function (e) {
                return /^DID_/.test(e.type);
              })
              .reverse()
              .find(function (e) {
                return qt[e.type];
              });
            if (o && (!o || o.type !== t.ref.currentAction)) {
              t.ref.currentAction = o.type;
              var i = qt[t.ref.currentAction];
              a(Ut, function (e, n) {
                var r = t.ref[e];
                a(n, function (n, o) {
                  var a = i[e] && void 0 !== i[e][n] ? i[e][n] : o;
                  r[n] = "function" == typeof a ? a(t) : a;
                });
              });
            }
          },
          didCreateView: function (e) {
            Ee("CREATE_VIEW", Object.assign({}, e, { view: e }));
          },
          name: "file",
        }),
        Qt = N({
          create: function (e) {
            var t = e.root,
              n = e.props;
            (t.ref.fileName = _t("legend")),
              t.appendChild(t.ref.fileName),
              (t.ref.file = t.appendChildView(
                t.createChildView(Kt, { id: n.id })
              ));
            var r = _t("input");
            (r.type = "hidden"),
              (r.name = t.query("GET_NAME")),
              (t.ref.data = r),
              t.appendChild(r);
          },
          ignoreRect: !0,
          write: A({
            DID_LOAD_ITEM: function (e) {
              var t = e.root,
                n = e.action,
                r = e.props;
              (t.ref.data.value = n.serverFileReference),
                vt(t.ref.fileName, t.query("GET_ITEM_NAME", r.id));
            },
            DID_REMOVE_ITEM: function (e) {
              e.root.ref.data.removeAttribute("value");
            },
            DID_COMPLETE_ITEM_PROCESSING: function (e) {
              var t = e.root,
                n = e.action;
              t.ref.data.value = n.serverFileReference;
            },
            DID_REVERT_ITEM_PROCESSING: function (e) {
              e.root.ref.data.removeAttribute("value");
            },
          }),
          didCreateView: function (e) {
            Ee("CREATE_VIEW", Object.assign({}, e, { view: e }));
          },
          tag: "fieldset",
          name: "file-wrapper",
        }),
        Xt = { type: "spring", damping: 0.6, mass: 7 },
        $t = function (e, t, n) {
          var r = N({
              name: "panel-" + t.name + " filepond--" + n,
              mixins: t.mixins,
              ignoreRectUpdate: !0,
            }),
            o = e.createChildView(r, t.props);
          e.ref[t.name] = e.appendChildView(o);
        },
        Zt = N({
          name: "panel",
          write: function (e) {
            var t = e.root,
              n = e.props;
            if (
              ((null !== t.ref.scalable && n.scalable === t.ref.scalable) ||
                ((t.ref.scalable = !z(n.scalable) || n.scalable),
                (t.element.dataset.scalable = t.ref.scalable)),
              n.height)
            ) {
              var r = t.ref.top.rect.element,
                o = t.ref.bottom.rect.element,
                a = Math.max(r.height + o.height, n.height);
              (t.ref.center.translateY = r.height),
                (t.ref.center.scaleY = (a - r.height - o.height) / 100),
                (t.ref.bottom.translateY = a - o.height);
            }
          },
          create: function (e) {
            var t = e.root,
              n = e.props;
            [
              { name: "top" },
              {
                name: "center",
                props: { translateY: null, scaleY: null },
                mixins: {
                  animations: { scaleY: Xt },
                  styles: ["translateY", "scaleY"],
                },
              },
              {
                name: "bottom",
                props: { translateY: null },
                mixins: {
                  animations: { translateY: Xt },
                  styles: ["translateY"],
                },
              },
            ].forEach(function (e) {
              $t(t, e, n.name);
            }),
              t.element.classList.add("filepond--" + n.name),
              (t.ref.scalable = null);
          },
          ignoreRect: !0,
          mixins: { apis: ["height", "scalable"] },
        }),
        en = {
          DID_START_ITEM_LOAD: "busy",
          DID_UPDATE_ITEM_LOAD_PROGRESS: "loading",
          DID_THROW_ITEM_INVALID: "load-invalid",
          DID_THROW_ITEM_LOAD_ERROR: "load-error",
          DID_LOAD_ITEM: "idle",
          DID_THROW_ITEM_REMOVE_ERROR: "remove-error",
          DID_START_ITEM_REMOVE: "busy",
          DID_START_ITEM_PROCESSING: "busy",
          DID_REQUEST_ITEM_PROCESSING: "busy",
          DID_UPDATE_ITEM_PROCESS_PROGRESS: "processing",
          DID_COMPLETE_ITEM_PROCESSING: "processing-complete",
          DID_THROW_ITEM_PROCESSING_ERROR: "processing-error",
          DID_THROW_ITEM_PROCESSING_REVERT_ERROR: "processing-revert-error",
          DID_ABORT_ITEM_PROCESSING: "cancelled",
          DID_REVERT_ITEM_PROCESSING: "idle",
        },
        tn = N({
          create: function (e) {
            var t = e.root,
              n = e.props;
            (t.ref.controls = t.appendChildView(
              t.createChildView(Qt, { id: n.id })
            )),
              (t.ref.panel = t.appendChildView(
                t.createChildView(Zt, { name: "item-panel" })
              )),
              (t.ref.panel.height = 0),
              (n.markedForRemoval = !1);
          },
          write: function (e) {
            var t = e.root,
              n = e.actions,
              r = e.props;
            t.ref.panel.height = t.ref.controls.rect.inner.height;
            var o = t.query("GET_PANEL_ASPECT_RATIO"),
              a = t.query("GET_ALLOW_MULTIPLE");
            t.height =
              o && !a
                ? t.rect.element.width * o
                : t.ref.controls.rect.inner.height;
            var i = []
              .concat(u(n))
              .filter(function (e) {
                return /^DID_/.test(e.type);
              })
              .reverse()
              .find(function (e) {
                return en[e.type];
              });
            !i ||
              (i && i.type === r.currentState) ||
              ((r.currentState = i.type),
              (t.element.dataset.filepondItemState = en[r.currentState] || ""));
          },
          destroy: function (e) {
            var t = e.root,
              n = e.props;
            t.dispatch("RELEASE_ITEM", { query: n.id });
          },
          tag: "li",
          name: "item",
          mixins: {
            apis: ["id", "markedForRemoval"],
            styles: [
              "translateX",
              "translateY",
              "scaleX",
              "scaleY",
              "opacity",
              "height",
            ],
            animations: {
              scaleX: "spring",
              scaleY: "spring",
              translateX: "spring",
              translateY: "spring",
              opacity: { type: "tween", duration: 150 },
            },
          },
        }),
        nn = A({
          DID_ADD_ITEM: function (e) {
            var t = e.root,
              n = e.action,
              r = n.id,
              o = n.index,
              a = n.interactionMethod,
              i = { opacity: 0 };
            a === de && (i.translateY = null),
              a === le &&
                ((i.scaleX = 0.8), (i.scaleY = 0.8), (i.translateY = null)),
              a === ce && (i.translateY = -30),
              a === se && ((i.translateX = -100), (i.translateY = null)),
              t.appendChildView(
                t.createChildView(tn, Object.assign({ id: r }, i)),
                o
              );
          },
          DID_REMOVE_ITEM: function (e) {
            var t = e.root,
              n = e.action.id,
              r = t.childViews.find(function (e) {
                return e.id === n;
              });
            r &&
              ((r.scaleX = 0.9),
              (r.scaleY = 0.9),
              (r.opacity = 0),
              (r.markedForRemoval = !0));
          },
        }),
        rn = N({
          create: function (e) {
            var t = e.root;
            s(t.element, "role", "list");
          },
          write: function (e) {
            var t = e.root,
              n = e.props,
              r = e.actions;
            nn({ root: t, props: n, actions: r });
            var o = 0;
            return (
              t.childViews
                .filter(function (e) {
                  return e.rect.outer.height;
                })
                .forEach(function (e, t) {
                  var r = e.rect;
                  (e.translateX = 0),
                    (e.translateY =
                      o +
                      (n.dragIndex > -1
                        ? (function (e, t, n) {
                            return e - 1 === t
                              ? n / 6
                              : e === t
                              ? n / 2
                              : e + 1 === t
                              ? -n / 2
                              : e + 2 === t
                              ? -n / 6
                              : 0;
                          })(t, n.dragIndex, 10)
                        : 0)),
                    e.markedForRemoval ||
                      ((e.scaleX = 1), (e.scaleY = 1), (e.opacity = 1));
                  var a =
                      r.element.height +
                      r.element.marginTop +
                      r.element.marginBottom,
                    i = e.markedForRemoval ? a * e.opacity : a;
                  o += i;
                }),
              !0
            );
          },
          read: function (e) {
            var t = e.root,
              n = 0;
            t.childViews
              .filter(function (e) {
                return e.rect.outer.height;
              })
              .forEach(function (e) {
                var t,
                  r,
                  o = e.rect.element.height + e.rect.element.marginBottom;
                n += e.markedForRemoval
                  ? o * ((t = e.opacity), (r = t - 1), Math.sqrt(1 - r * r))
                  : o;
              }),
              (t.rect.outer.height = n),
              (t.rect.outer.bottom = t.rect.outer.height);
          },
          tag: "ul",
          name: "list",
          didWriteView: function (e) {
            var t = e.root;
            t.childViews
              .filter(function (e) {
                return e.markedForRemoval && 0 === e.opacity && e.resting;
              })
              .forEach(function (e) {
                e._destroy(), t.removeChildView(e);
              });
          },
          filterFrameActionsForChild: function (e, t) {
            return t.filter(function (t) {
              return !t.data || !t.data.id || e.id === t.data.id;
            });
          },
          mixins: { apis: ["dragIndex"] },
        }),
        on = function (e, t) {
          for (var n = 0, r = e.childViews, o = r.length; n < o; n++) {
            var a = r[n].rect.outer,
              i = a.top + 0.5 * a.height;
            if (t.top < i) return n;
          }
          return o;
        },
        an = A({
          DID_DRAG: function (e) {
            var t = e.root,
              n = e.props,
              r = e.action;
            n.dragCoordinates = {
              left: r.position.scopeLeft,
              top:
                r.position.scopeTop -
                t.rect.outer.top +
                t.rect.element.scrollTop,
            };
          },
          DID_END_DRAG: function (e) {
            e.props.dragCoordinates = null;
          },
        }),
        sn = N({
          create: function (e) {
            var t = e.root,
              n = e.props;
            (t.ref.list = t.appendChildView(t.createChildView(rn))),
              (n.dragCoordinates = null),
              (n.overflowing = !1);
          },
          write: function (e) {
            var t = e.root,
              n = e.props,
              r = e.actions;
            if (
              (an({ root: t, props: n, actions: r }),
              (t.ref.list.dragIndex = n.dragCoordinates
                ? on(t.ref.list, n.dragCoordinates)
                : -1),
              n.overflowing &&
                !n.overflow &&
                ((n.overflowing = !1),
                (t.element.dataset.state = ""),
                (t.height = null)),
              n.overflow)
            ) {
              var o = Math.round(n.overflow);
              o !== t.height &&
                ((n.overflowing = !0),
                (t.element.dataset.state = "overflow"),
                (t.height = o));
            }
          },
          name: "list-scroller",
          mixins: {
            apis: ["overflow"],
            styles: ["height", "translateY"],
            animations: { translateY: "spring" },
          },
        }),
        ln = function (e, t, n) {
          var r =
            arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "";
          n ? s(e, t, r) : e.removeAttribute(t);
        },
        cn = function (e) {
          var t = e.root;
          t.query("GET_TOTAL_ITEMS") > 0
            ? ln(t.element, "required", !1)
            : (t.query("GET_CHECK_VALIDITY") && t.element.setCustomValidity(""),
              t.query("GET_REQUIRED") && ln(t.element, "required", !0));
        },
        un = N({
          tag: "input",
          name: "browser",
          ignoreRect: !0,
          ignoreRectUpdate: !0,
          attributes: { type: "file" },
          create: function (e) {
            var t = e.root,
              n = e.props;
            (t.element.id = "filepond--browser-" + n.id),
              s(t.element, "aria-controls", "filepond--assistant-" + n.id),
              s(t.element, "aria-labelledby", "filepond--drop-label-" + n.id),
              (t.ref.handleChange = function (e) {
                if (t.element.value) {
                  var r = [].concat(u(t.element.files));
                  setTimeout(function () {
                    n.onload(r),
                      (function (e) {
                        if (e && "" !== e.value) {
                          try {
                            e.value = "";
                          } catch (e) {}
                          if (e.value) {
                            var t = _t("form"),
                              n = e.parentNode,
                              r = e.nextSibling;
                            t.appendChild(e),
                              t.reset(),
                              r ? n.insertBefore(e, r) : n.appendChild(e);
                          }
                        }
                      })(t.element);
                  }, 250);
                }
              }),
              t.element.addEventListener("change", t.ref.handleChange);
          },
          destroy: function (e) {
            var t = e.root;
            t.element.removeEventListener("change", t.ref.handleChange);
          },
          write: A({
            DID_LOAD_ITEM: cn,
            DID_THROW_ITEM_INVALID: function (e) {
              var t = e.root;
              t.query("GET_CHECK_VALIDITY") &&
                t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"));
            },
            DID_REMOVE_ITEM: cn,
            DID_SET_ALLOW_BROWSE: function (e) {
              var t = e.root,
                n = e.action;
              ln(t.element, "disabled", !n.value);
            },
            DID_SET_ALLOW_MULTIPLE: function (e) {
              var t = e.root,
                n = e.action;
              ln(t.element, "multiple", n.value);
            },
            DID_SET_ACCEPTED_FILE_TYPES: function (e) {
              var t = e.root,
                n = e.action;
              ln(
                t.element,
                "accept",
                !!n.value,
                n.value ? n.value.join(",") : ""
              );
            },
            DID_SET_CAPTURE_METHOD: function (e) {
              var t = e.root,
                n = e.action;
              ln(
                t.element,
                "capture",
                !!n.value,
                !0 === n.value ? "" : n.value
              );
            },
            DID_SET_REQUIRED: function (e) {
              var t = e.root;
              e.action.value
                ? 0 === t.query("GET_TOTAL_ITEMS") &&
                  ln(t.element, "required", !0)
                : ln(t.element, "required", !1);
            },
          }),
        }),
        dn = 13,
        hn = 32,
        pn = function (e, t) {
          e.innerHTML = t;
          var n = e.querySelector(".filepond--label-action");
          return n && s(n, "tabindex", "0"), t;
        },
        fn = N({
          name: "drop-label",
          ignoreRect: !0,
          create: function (e) {
            var t = e.root,
              n = e.props,
              r = _t("label");
            s(r, "for", "filepond--browser-" + n.id),
              s(r, "id", "filepond--drop-label-" + n.id),
              s(r, "aria-hidden", "true"),
              r.addEventListener("keydown", function (e) {
                (e.keyCode !== dn && e.keyCode !== hn) ||
                  (e.preventDefault(), t.ref.label.click());
              }),
              pn(r, n.caption),
              t.appendChild(r),
              (t.ref.label = r);
          },
          write: A({
            DID_SET_LABEL_IDLE: function (e) {
              var t = e.root,
                n = e.action;
              pn(t.ref.label, n.value);
            },
          }),
          mixins: {
            styles: ["opacity", "translateX", "translateY"],
            animations: {
              opacity: { type: "tween", duration: 150 },
              translateX: "spring",
              translateY: "spring",
            },
          },
        }),
        mn = N({
          name: "drip-blob",
          ignoreRect: !0,
          mixins: {
            styles: ["translateX", "translateY", "scaleX", "scaleY", "opacity"],
            animations: {
              scaleX: "spring",
              scaleY: "spring",
              translateX: "spring",
              translateY: "spring",
              opacity: { type: "tween", duration: 250 },
            },
          },
        }),
        gn = A({
          DID_DRAG: function (e) {
            var t = e.root,
              n = e.action;
            t.ref.blob
              ? ((t.ref.blob.translateX = n.position.scopeLeft),
                (t.ref.blob.translateY = n.position.scopeTop),
                (t.ref.blob.scaleX = 1),
                (t.ref.blob.scaleY = 1),
                (t.ref.blob.opacity = 1))
              : (function (e) {
                  var t = e.root,
                    n = 0.5 * t.rect.element.width,
                    r = 0.5 * t.rect.element.height;
                  t.ref.blob = t.appendChildView(
                    t.createChildView(mn, {
                      opacity: 0,
                      scaleX: 2.5,
                      scaleY: 2.5,
                      translateX: n,
                      translateY: r,
                    })
                  );
                })({ root: t });
          },
          DID_DROP: function (e) {
            var t = e.root;
            t.ref.blob &&
              ((t.ref.blob.scaleX = 2.5),
              (t.ref.blob.scaleY = 2.5),
              (t.ref.blob.opacity = 0));
          },
          DID_END_DRAG: function (e) {
            var t = e.root;
            t.ref.blob && (t.ref.blob.opacity = 0);
          },
        }),
        _n = N({
          ignoreRect: !0,
          ignoreRectUpdate: !0,
          name: "drip",
          write: function (e) {
            var t = e.root,
              n = e.props,
              r = e.actions;
            gn({ root: t, props: n, actions: r });
            var o = t.ref.blob;
            0 === r.length &&
              o &&
              0 === o.opacity &&
              (t.removeChildView(o), (t.ref.blob = null));
          },
        }),
        vn = function (e) {
          return new Promise(function (t, n) {
            var r = Tn(e);
            r.length ? t(r) : bn(e).then(t);
          });
        },
        bn = function (e) {
          return new Promise(function (t, n) {
            var r = (e.items ? [].concat(u(e.items)) : [])
              .filter(function (e) {
                return yn(e);
              })
              .map(function (e) {
                return wn(e);
              });
            r.length
              ? Promise.all(r).then(function (e) {
                  var n = [];
                  e.forEach(function (e) {
                    n.push.apply(n, u(e));
                  }),
                    t(
                      n.filter(function (e) {
                        return e;
                      })
                    );
                })
              : t(e.files ? [].concat(u(e.files)) : []);
          });
        },
        yn = function (e) {
          if (Mn(e)) {
            var t = En(e);
            if (t) return t.isFile || t.isDirectory;
          }
          return "file" === e.kind;
        },
        wn = function (e) {
          return new Promise(function (t, n) {
            xn(e) ? kn(En(e)).then(t) : t([e.getAsFile()]);
          });
        },
        kn = function (e) {
          return new Promise(function (t, n) {
            var r = [],
              o = 0;
            !(function e(n) {
              n.createReader().readEntries(function (n) {
                n.forEach(function (n) {
                  n.isDirectory
                    ? e(n)
                    : (o++,
                      n.file(function (e) {
                        r.push(e), o === r.length && t(r);
                      }));
                });
              });
            })(e);
          });
        },
        xn = function (e) {
          return Mn(e) && (En(e) || {}).isDirectory;
        },
        Mn = function (e) {
          return "webkitGetAsEntry" in e;
        },
        En = function (e) {
          return e.webkitGetAsEntry();
        },
        Tn = function (e) {
          var t = [];
          try {
            if ((t = Dn(e)).length) return t;
            t = Sn(e);
          } catch (e) {}
          return t;
        },
        Sn = function (e) {
          var t = e.getData("url");
          return "string" == typeof t && t.length ? [t] : [];
        },
        Dn = function (e) {
          var t = e.getData("text/html");
          if ("string" == typeof t && t.length) {
            var n = t.match(/src\s*=\s*"(.+?)"/);
            if (n) return [n[1]];
          }
          return [];
        },
        Ln = [],
        Cn = function (e) {
          return {
            pageLeft: e.pageX,
            pageTop: e.pageY,
            scopeLeft: e.offsetX || e.layerX,
            scopeTop: e.offsetY || e.layerY,
          };
        },
        Pn = function (e) {
          var t = Ln.find(function (t) {
            return t.element === e;
          });
          if (t) return t;
          var n = On(e);
          return Ln.push(n), n;
        },
        On = function (e) {
          var t = [],
            n = { dragenter: Rn, dragover: Yn, dragleave: Fn, drop: jn },
            r = {};
          a(n, function (n, o) {
            (r[n] = o(e, t)), e.addEventListener(n, r[n], !1);
          });
          var o = {
            element: e,
            addListener: function (i) {
              return (
                t.push(i),
                function () {
                  t.splice(t.indexOf(i), 1),
                    0 === t.length &&
                      (Ln.splice(Ln.indexOf(o), 1),
                      a(n, function (t) {
                        e.removeEventListener(t, r[t], !1);
                      }));
                }
              );
            },
          };
          return o;
        },
        Nn = function (e, t) {
          var n,
            r = (function (e, t) {
              return (
                "elementFromPoint" in e || (e = document),
                e.elementFromPoint(t.x, t.y)
              );
            })("getRootNode" in (n = t) ? n.getRootNode() : document, {
              x: e.pageX - window.pageXOffset,
              y: e.pageY - window.pageYOffset,
            });
          return r === t || t.contains(r);
        },
        An = null,
        In = function (e, t) {
          try {
            e.dropEffect = t;
          } catch (e) {}
        },
        Rn = function (e, t) {
          return function (e) {
            e.preventDefault(),
              (An = e.target),
              t.forEach(function (t) {
                var n = t.element,
                  r = t.onenter;
                Nn(e, n) && ((t.state = "enter"), r(Cn(e)));
              });
          };
        },
        Yn = function (e, t) {
          return function (e) {
            e.preventDefault();
            var n = e.dataTransfer;
            vn(n).then(function (r) {
              var o = !1;
              t.some(function (t) {
                var a = t.filterElement,
                  i = t.element,
                  s = t.onenter,
                  l = t.onexit,
                  c = t.ondrag,
                  u = t.allowdrop;
                In(n, "copy");
                var d = u(r);
                if (d)
                  if (Nn(e, i)) {
                    if (((o = !0), null === t.state))
                      return (t.state = "enter"), void s(Cn(e));
                    if (((t.state = "over"), a && !d))
                      return void In(n, "none");
                    c(Cn(e));
                  } else
                    a && !o && In(n, "none"),
                      t.state && ((t.state = null), l(Cn(e)));
                else In(n, "none");
              });
            });
          };
        },
        jn = function (e, t) {
          return function (e) {
            e.preventDefault();
            var n = e.dataTransfer;
            vn(n).then(function (n) {
              t.forEach(function (t) {
                var r = t.filterElement,
                  o = t.element,
                  a = t.ondrop,
                  i = t.onexit,
                  s = t.allowdrop;
                (t.state = null),
                  s(n) ? (r && !Nn(e, o)) || a(Cn(e), n) : i(Cn(e));
              });
            });
          };
        },
        Fn = function (e, t) {
          return function (e) {
            An === e.target &&
              t.forEach(function (t) {
                var n = t.onexit;
                (t.state = null), n(Cn(e));
              });
          };
        },
        Hn = function (e, t, n) {
          e.classList.add("filepond--hopper");
          var r = n.catchesDropsOnPage,
            o = n.requiresDropOnElement,
            a = (function (e, t, n) {
              var r = Pn(t),
                o = {
                  element: e,
                  filterElement: n,
                  state: null,
                  ondrop: function () {},
                  onenter: function () {},
                  ondrag: function () {},
                  onexit: function () {},
                  onload: function () {},
                  allowdrop: function () {},
                };
              return (o.destroy = r.addListener(o)), o;
            })(e, r ? document.documentElement : e, o),
            i = "",
            s = "";
          (a.allowdrop = function (e) {
            return t(e);
          }),
            (a.ondrop = function (e, n) {
              t(n) ? ((s = "drag-drop"), l.onload(n, e)) : l.ondragend(e);
            }),
            (a.ondrag = function (e) {
              l.ondrag(e);
            }),
            (a.onenter = function (e) {
              (s = "drag-over"), l.ondragstart(e);
            }),
            (a.onexit = function (e) {
              (s = "drag-exit"), l.ondragend(e);
            });
          var l = {
            updateHopperState: function () {
              i !== s && ((e.dataset.hopperState = s), (i = s));
            },
            onload: function () {},
            ondragstart: function () {},
            ondrag: function () {},
            ondragend: function () {},
            destroy: function () {
              a.destroy();
            },
          };
          return l;
        },
        zn = !1,
        Bn = [],
        Un = function (e) {
          vn(e.clipboardData).then(function (e) {
            e.length &&
              Bn.forEach(function (t) {
                return t(e);
              });
          });
        },
        Vn = function () {
          var e = function (e) {
              t.onload(e);
            },
            t = {
              destroy: function () {
                var t;
                (t = e),
                  fe(Bn, Bn.indexOf(t)),
                  0 === Bn.length &&
                    (document.removeEventListener("paste", Un), (zn = !1));
              },
              onload: function () {},
            };
          return (
            (function (e) {
              Bn.includes(e) ||
                (Bn.push(e),
                zn || ((zn = !0), document.addEventListener("paste", Un)));
            })(e),
            t
          );
        },
        Wn = null,
        qn = null,
        Gn = [],
        Jn = function (e, t) {
          e.element.textContent = t;
        },
        Kn = function (e, t, n) {
          var r = e.query("GET_TOTAL_ITEMS");
          Jn(
            e,
            n +
              " " +
              t +
              ", " +
              r +
              " " +
              (1 === r
                ? e.query("GET_LABEL_FILE_COUNT_SINGULAR")
                : e.query("GET_LABEL_FILE_COUNT_PLURAL"))
          ),
            clearTimeout(qn),
            (qn = setTimeout(function () {
              !(function (e) {
                e.element.textContent = "";
              })(e);
            }, 1500));
        },
        Qn = function (e) {
          return e.element.parentNode.contains(document.activeElement);
        },
        Xn = function (e) {
          var t = e.root,
            n = e.action,
            r = t.query("GET_ITEM", n.id).filename,
            o = t.query("GET_LABEL_FILE_PROCESSING_ABORTED");
          Jn(t, r + " " + o);
        },
        $n = function (e) {
          var t = e.root,
            n = e.action,
            r = t.query("GET_ITEM", n.id).filename;
          Jn(t, n.status.main + " " + r + " " + n.status.sub);
        },
        Zn = N({
          create: function (e) {
            var t = e.root,
              n = e.props;
            (t.element.id = "filepond--assistant-" + n.id),
              s(t.element, "role", "status"),
              s(t.element, "aria-live", "polite"),
              s(t.element, "aria-relevant", "additions");
          },
          ignoreRect: !0,
          ignoreRectUpdate: !0,
          write: A({
            DID_LOAD_ITEM: function (e) {
              var t = e.root,
                n = e.action;
              if (Qn(t)) {
                t.element.textContent = "";
                var r = t.query("GET_ITEM", n.id);
                Gn.push(r.filename),
                  clearTimeout(Wn),
                  (Wn = setTimeout(function () {
                    Kn(t, Gn.join(", "), t.query("GET_LABEL_FILE_ADDED")),
                      (Gn.length = 0);
                  }, 750));
              }
            },
            DID_REMOVE_ITEM: function (e) {
              var t = e.root,
                n = e.action;
              if (Qn(t)) {
                var r = n.item;
                Kn(t, r.filename, t.query("GET_LABEL_FILE_REMOVED"));
              }
            },
            DID_COMPLETE_ITEM_PROCESSING: function (e) {
              var t = e.root,
                n = e.action,
                r = t.query("GET_ITEM", n.id).filename,
                o = t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");
              Jn(t, r + " " + o);
            },
            DID_ABORT_ITEM_PROCESSING: Xn,
            DID_REVERT_ITEM_PROCESSING: Xn,
            DID_THROW_ITEM_REMOVE_ERROR: $n,
            DID_THROW_ITEM_LOAD_ERROR: $n,
            DID_THROW_ITEM_INVALID: $n,
            DID_THROW_ITEM_PROCESSING_ERROR: $n,
          }),
          tag: "span",
          name: "assistant",
        }),
        er = function (e) {
          var t =
            arguments.length > 1 && void 0 !== arguments[1]
              ? arguments[1]
              : "-";
          return e.replace(new RegExp(t + ".", "g"), function (e) {
            return e.charAt(1).toUpperCase();
          });
        },
        tr = function (e) {
          var t = e.ref.list.childViews[0].childViews[0];
          return t
            ? {
                top: t.rect.element.marginTop,
                bottom: t.rect.element.marginBottom,
              }
            : { top: 0, bottom: 0 };
        },
        nr = function (e, t) {
          var n = 0,
            r = 0;
          return (
            e.ref.list.childViews[0].childViews.forEach(function (e, o) {
              if (!(o >= t)) {
                var a = e.rect.element,
                  i = a.height + a.marginTop + a.marginBottom;
                (r += i), (n += e.markedForRemoval ? e.opacity * i : i);
              }
            }),
            { visual: n, bounds: r }
          );
        },
        rr = function (e) {
          var t = e.ref.measureHeight || null;
          return {
            cappedHeight: parseInt(e.style.maxHeight, 10) || null,
            fixedHeight: 0 === t ? null : t,
          };
        },
        or = function (e, t) {
          var n = e.query("GET_ALLOW_REPLACE"),
            r = e.query("GET_ALLOW_MULTIPLE"),
            o = e.query("GET_TOTAL_ITEMS"),
            a = e.query("GET_MAX_FILES"),
            i = t.length;
          return (
            (!r && i > 1) ||
            (!!(q((a = r || n ? a : 1)) && o + i > a) &&
              (e.dispatch("DID_THROW_MAX_FILES", {
                source: t,
                error: Xe("warning", 0, "Max files"),
              }),
              !0))
          );
        },
        ar = A({
          DID_SET_ALLOW_BROWSE: function (e) {
            var t = e.root,
              n = e.props;
            e.action.value
              ? (t.ref.browser = t.appendChildView(
                  t.createChildView(
                    un,
                    Object.assign({}, n, {
                      onload: function (e) {
                        if (or(t, e)) return !1;
                        pe(e, function (e) {
                          t.dispatch("ADD_ITEM", {
                            interactionMethod: ce,
                            source: e,
                            index: 0,
                          });
                        });
                      },
                    })
                  ),
                  0
                ))
              : t.ref.browser && t.removeChildView(t.ref.browser);
          },
          DID_SET_ALLOW_DROP: function (e) {
            var t = e.root,
              n = (e.props, e.action);
            if (n.value && !t.ref.hopper) {
              var r = Hn(
                t.element,
                function (e) {
                  return (
                    !or(t, e) &&
                    (!t.query("GET_DROP_VALIDATION") ||
                      e.every(function (e) {
                        return Ee("ALLOW_HOPPER_ITEM", e, {
                          query: t.query,
                        }).every(function (e) {
                          return !0 === e;
                        });
                      }))
                  );
                },
                {
                  catchesDropsOnPage: t.query("GET_DROP_ON_PAGE"),
                  requiresDropOnElement: t.query("GET_DROP_ON_ELEMENT"),
                }
              );
              (r.onload = function (e, n) {
                var r = t.ref.list.childViews[0],
                  o = on(r, {
                    left: n.scopeLeft,
                    top:
                      n.scopeTop -
                      t.ref.list.rect.outer.top +
                      t.ref.list.element.scrollTop,
                  });
                pe(e, function (e) {
                  t.dispatch("ADD_ITEM", {
                    interactionMethod: le,
                    source: e,
                    index: o,
                  });
                }),
                  t.dispatch("DID_DROP", { position: n }),
                  t.dispatch("DID_END_DRAG", { position: n });
              }),
                (r.ondragstart = function (e) {
                  t.dispatch("DID_START_DRAG", { position: e });
                }),
                (r.ondrag = (function (e) {
                  var t =
                      arguments.length > 1 && void 0 !== arguments[1]
                        ? arguments[1]
                        : 16,
                    n =
                      !(arguments.length > 2 && void 0 !== arguments[2]) ||
                      arguments[2],
                    r = Date.now(),
                    o = null;
                  return function () {
                    for (
                      var a = arguments.length, i = Array(a), s = 0;
                      s < a;
                      s++
                    )
                      i[s] = arguments[s];
                    clearTimeout(o);
                    var l = Date.now() - r,
                      c = function () {
                        (r = Date.now()), e.apply(void 0, i);
                      };
                    l < t ? n || (o = setTimeout(c, t - l)) : c();
                  };
                })(function (e) {
                  t.dispatch("DID_DRAG", { position: e });
                })),
                (r.ondragend = function (e) {
                  t.dispatch("DID_END_DRAG", { position: e });
                }),
                (t.ref.hopper = r),
                (t.ref.drip = t.appendChildView(t.createChildView(_n)));
            } else
              !n.value &&
                t.ref.hopper &&
                (t.ref.hopper.destroy(),
                (t.ref.hopper = null),
                t.removeChildView(t.ref.drip));
          },
          DID_SET_ALLOW_PASTE: function (e) {
            var t = e.root;
            e.action.value
              ? ((t.ref.paster = Vn()),
                (t.ref.paster.onload = function (e) {
                  pe(e, function (e) {
                    t.dispatch("ADD_ITEM", {
                      interactionMethod: ue,
                      source: e,
                      index: 0,
                    });
                  });
                }))
              : t.ref.paster && (t.ref.paster.destroy(), (t.ref.paster = null));
          },
        }),
        ir = N({
          name: "root",
          read: function (e) {
            var t = e.root;
            t.ref.measure && (t.ref.measureHeight = t.ref.measure.offsetHeight);
          },
          create: function (e) {
            var t = e.root,
              n = e.props,
              r = t.query("GET_ID");
            r && (t.element.id = r);
            var o = t.query("GET_CLASS_NAME");
            o &&
              o.split(" ").forEach(function (e) {
                t.element.classList.add(e);
              }),
              (t.ref.label = t.appendChildView(
                t.createChildView(
                  fn,
                  Object.assign({}, n, {
                    translateY: null,
                    caption: t.query("GET_LABEL_IDLE"),
                  })
                )
              )),
              (t.ref.list = t.appendChildView(
                t.createChildView(sn, { translateY: null })
              )),
              (t.ref.panel = t.appendChildView(
                t.createChildView(Zt, { name: "panel-root" })
              )),
              (t.ref.assistant = t.appendChildView(
                t.createChildView(Zn, Object.assign({}, n))
              )),
              (t.ref.measure = _t("div")),
              (t.ref.measure.style.height = "100%"),
              t.element.appendChild(t.ref.measure),
              (t.ref.bounds = null),
              t
                .query("GET_STYLES")
                .filter(function (e) {
                  return !j(e.value);
                })
                .map(function (e) {
                  var n = e.name,
                    r = e.value;
                  t.element.dataset[n] = r;
                });
          },
          write: function (e) {
            var t = e.root,
              n = e.props,
              r = e.actions,
              o = t.ref.bounds;
            o ||
              ((o = t.ref.bounds = rr(t)),
              t.element.removeChild(t.ref.measure),
              (t.ref.measure = null)),
              ar({ root: t, props: n, actions: r }),
              r
                .filter(function (e) {
                  return /^DID_SET_STYLE_/.test(e.type);
                })
                .filter(function (e) {
                  return !j(e.data.value);
                })
                .map(function (e) {
                  var n = e.type,
                    r = e.data,
                    o = er(n.substr(8).toLowerCase(), "_");
                  (t.element.dataset[o] = r.value), t.invalidateLayout();
                });
            var a = t.ref,
              i = a.hopper,
              s = a.label,
              l = a.list,
              c = a.panel;
            i && i.updateHopperState();
            var u = t.query("GET_PANEL_ASPECT_RATIO"),
              d = t.query("GET_ALLOW_MULTIPLE"),
              h = t.query("GET_TOTAL_ITEMS"),
              p = d ? t.query("GET_MAX_FILES") || 1e6 : 1,
              f = h === p,
              m = r.find(function (e) {
                return "DID_ADD_ITEM" === e.type;
              });
            if (f && m) {
              var g = m.data.interactionMethod;
              (s.opacity = 0),
                d
                  ? (s.translateY = -40)
                  : g === se
                  ? (s.translateX = 40)
                  : (s.translateY = g === ce ? 40 : 30);
            } else
              f || ((s.opacity = 1), (s.translateX = 0), (s.translateY = 0));
            var _ = tr(t),
              v = nr(t, p),
              b = s.rect.element.height,
              y = !d || f ? 0 : b,
              w = f ? l.rect.element.marginTop : 0,
              k = 0 === h ? 0 : l.rect.element.marginBottom,
              x = y + w + v.visual + k,
              M = y + w + v.bounds + k;
            if (
              ((l.translateY =
                Math.max(0, y - l.rect.element.marginTop) - _.top),
              u)
            ) {
              var E = t.rect.element.width * u;
              (c.scalable = !1), (c.height = E);
              var T = E - y - (k - _.bottom) - (f ? w : 0);
              v.visual > T ? (l.overflow = T) : (l.overflow = null),
                (t.height = E);
            } else if (o.fixedHeight) {
              c.scalable = !1;
              var S = o.fixedHeight - y - (k - _.bottom) - (f ? w : 0);
              v.visual > S ? (l.overflow = S) : (l.overflow = null);
            } else if (o.cappedHeight) {
              var D = x >= o.cappedHeight,
                L = Math.min(o.cappedHeight, x);
              (c.scalable = !0), (c.height = D ? L : L - _.top - _.bottom);
              var C = L - y - (k - _.bottom) - (f ? w : 0);
              x > o.cappedHeight && v.visual > C
                ? (l.overflow = C)
                : (l.overflow = null),
                (t.height = Math.min(o.cappedHeight, M - _.top - _.bottom));
            } else {
              var P = h > 0 ? _.top + _.bottom : 0;
              (c.scalable = !0),
                (c.height = Math.max(b, x - P)),
                (t.height = Math.max(b, M - P));
            }
          },
          destroy: function (e) {
            var t = e.root;
            t.ref.paster && t.ref.paster.destroy(),
              t.ref.hopper && t.ref.hopper.destroy();
          },
          mixins: { styles: ["height"] },
        }),
        sr = function () {
          var e =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : {},
            t = null,
            n = Se(),
            r = o(ne(n), [Oe, ie(n)], [gt, ae(n)]);
          r.dispatch("SET_OPTIONS", { options: e });
          var a = ir(r, { id: he() }),
            s = !1,
            c = !1,
            d = {
              _read: function () {
                s || (a._read(), (c = a.rect.element.hidden));
              },
              _write: function (e) {
                if (!c) {
                  var t = r.processActionQueue().filter(function (e) {
                    return !/^SET_/.test(e.type);
                  });
                  (s && !t.length) ||
                    (m(t),
                    (s = a._write(e, t)),
                    be(r.query("GET_ITEMS")),
                    s && r.processDispatchQueue());
                }
              },
            },
            h = function (e) {
              return function (t) {
                var n = { type: e };
                if (!t) return n;
                if (
                  (t.hasOwnProperty("error") &&
                    (n.error = t.error ? Object.assign({}, t.error) : null),
                  t.status && (n.status = Object.assign({}, t.status)),
                  t.file && (n.output = t.file),
                  t.source)
                )
                  n.file = t.source;
                else if (t.item || t.id) {
                  var o = t.item ? t.item : r.query("GET_ITEM", t.id);
                  n.file = o ? ve(o) : null;
                }
                return (
                  t.items && (n.items = t.items.map(ve)),
                  /progress/.test(e) && (n.progress = t.progress),
                  n
                );
              };
            },
            p = {
              DID_DESTROY: h("destroy"),
              DID_INIT: h("init"),
              DID_THROW_MAX_FILES: h("warning"),
              DID_START_ITEM_LOAD: h("addfilestart"),
              DID_UPDATE_ITEM_LOAD_PROGRESS: h("addfileprogress"),
              DID_LOAD_ITEM: h("addfile"),
              DID_THROW_ITEM_INVALID: [h("error"), h("addfile")],
              DID_THROW_ITEM_LOAD_ERROR: [h("error"), h("addfile")],
              DID_PREPARE_OUTPUT: h("preparefile"),
              DID_START_ITEM_PROCESSING: h("processfilestart"),
              DID_UPDATE_ITEM_PROCESS_PROGRESS: h("processfileprogress"),
              DID_ABORT_ITEM_PROCESSING: h("processfileabort"),
              DID_COMPLETE_ITEM_PROCESSING: h("processfile"),
              DID_REVERT_ITEM_PROCESSING: h("processfilerevert"),
              DID_THROW_ITEM_PROCESSING_ERROR: [h("error"), h("processfile")],
              DID_REMOVE_ITEM: h("removefile"),
              DID_UPDATE_ITEMS: h("updatefiles"),
            },
            f = function (e) {
              var t = Object.assign({ pond: T }, e);
              delete t.type,
                a.element.dispatchEvent(
                  new CustomEvent("FilePond:" + e.type, {
                    detail: t,
                    bubbles: !0,
                    cancelable: !0,
                    composed: !0,
                  })
                );
              var n = [];
              e.hasOwnProperty("error") && n.push(e.error),
                e.hasOwnProperty("file") && n.push(e.file);
              var o = ["type", "error", "file"];
              Object.keys(e)
                .filter(function (e) {
                  return !o.includes(e);
                })
                .forEach(function (t) {
                  return n.push(e[t]);
                }),
                T.fire.apply(T, [e.type].concat(n));
              var i = r.query("GET_ON" + e.type.toUpperCase());
              i && i.apply(void 0, n);
            },
            m = function (e) {
              e.length &&
                e.forEach(function (e) {
                  if (p[e.type]) {
                    var t = p[e.type];
                    (Array.isArray(t) ? t : [t]).forEach(function (t) {
                      setTimeout(function () {
                        f(t(e.data));
                      }, 0);
                    });
                  }
                });
            },
            g = function (e) {
              return r.dispatch("SET_OPTIONS", { options: e });
            },
            _ = function (e) {
              return r.query("GET_ACTIVE_ITEM", e);
            },
            v = function (e) {
              var t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : {};
              return new Promise(function (n, o) {
                r.dispatch("ADD_ITEM", {
                  interactionMethod: se,
                  source: e,
                  index: t.index,
                  success: n,
                  failure: o,
                  options: t,
                });
              });
            },
            b = function (e) {
              return (
                r.dispatch("REMOVE_ITEM", { query: e }),
                null === r.query("GET_ACTIVE_ITEM", e)
              );
            },
            y = function () {
              for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
                t[n] = arguments[n];
              return new Promise(function (e, n) {
                var r = [],
                  o = {};
                if (Y(t[0]))
                  r.push.apply(r, u(t[0])), Object.assign(o, t[1] || {});
                else {
                  var a = t[t.length - 1];
                  "object" !== (void 0 === a ? "undefined" : l(a)) ||
                    a instanceof Blob ||
                    Object.assign(o, t.pop()),
                    r.push.apply(r, t);
                }
                var i = [],
                  s = pe(r, function (e) {
                    i.push(v(e, o));
                  });
                Promise.all(s).then(function () {
                  Promise.all(i).then(function (t) {
                    e(t);
                  });
                });
              });
            },
            k = function () {
              return r.query("GET_ACTIVE_ITEMS");
            },
            x = function (e) {
              return new Promise(function (t, n) {
                r.dispatch("REQUEST_ITEM_PROCESSING", {
                  query: e,
                  success: function (e) {
                    t(e);
                  },
                  failure: function (e) {
                    n(e);
                  },
                });
              });
            },
            M = function () {
              for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
                t[n] = arguments[n];
              var r = Array.isArray(t[0]) ? t[0] : t;
              if (!r.length) {
                var o = k().filter(function (e) {
                  return (
                    e.status !== ot.PROCESSING &&
                    e.status !== ot.PROCESSING_COMPLETE &&
                    e.status !== ot.PROCESSING_REVERT_ERROR
                  );
                });
                return Promise.all(o.map(x));
              }
              return Promise.all(r.map(x));
            },
            E = function () {
              for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
                t[n] = arguments[n];
              var r = Array.isArray(t[0]) ? t[0] : t,
                o = k();
              if (!r.length) return Promise.all(o.map(b));
              var a = r
                .map(function (e) {
                  return w(e) ? (o[e] ? o[e].id : null) : e;
                })
                .filter(function (e) {
                  return e;
                });
              return a.map(b);
            },
            T = Object.assign({}, me(), d, oe(r, n), {
              setOptions: g,
              addFile: v,
              addFiles: y,
              getFile: _,
              processFile: x,
              removeFile: b,
              getFiles: k,
              processFiles: M,
              removeFiles: E,
              browse: function () {
                var e = a.element.querySelector("input[type=file]");
                e && e.click();
              },
              destroy: function () {
                T.fire("destroy", a.element),
                  r.dispatch("ABORT_ALL"),
                  a._destroy(),
                  r.dispatch("DID_DESTROY");
              },
              insertBefore: function (e) {
                return I(a.element, e);
              },
              insertAfter: function (e) {
                return R(a.element, e);
              },
              appendTo: function (e) {
                return e.appendChild(a.element);
              },
              replaceElement: function (e) {
                I(a.element, e), e.parentNode.removeChild(e), (t = e);
              },
              restoreElement: function () {
                t &&
                  (R(t, a.element),
                  a.element.parentNode.removeChild(a.element),
                  (t = null));
              },
              isAttachedTo: function (e) {
                return a.element === e || t === e;
              },
              element: {
                get: function () {
                  return a.element;
                },
              },
            });
          return r.dispatch("DID_INIT"), i(T);
        },
        lr = function () {
          var e =
              arguments.length > 0 && void 0 !== arguments[0]
                ? arguments[0]
                : {},
            t = {};
          a(Se(), function (e, n) {
            t[e] = n[0];
          });
          var n = sr(Object.assign({}, t, e));
          return n;
        },
        cr = function (e) {
          return er(e.replace(/^data-/, ""));
        },
        ur = function e(t, n) {
          a(n, function (n, r) {
            a(t, function (e, o) {
              var a = new RegExp(n);
              if (a.test(e) && (delete t[e], !1 !== r))
                if (U(r)) t[r] = o;
                else {
                  var i,
                    s = r.group;
                  X(r) && !t[s] && (t[s] = {}),
                    (t[s][
                      ((i = e.replace(a, "")),
                      i.charAt(0).toLowerCase() + i.slice(1))
                    ] = o);
                }
            }),
              r.mapping && e(t[r.group], r.mapping);
          });
        },
        dr = function (e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = [];
          a(e.attributes, function (t) {
            n.push(e.attributes[t]);
          });
          var r = n
            .filter(function (e) {
              return e.name;
            })
            .reduce(function (t, n) {
              var r = s(e, n.name);
              return (t[cr(n.name)] = r === n.name || r), t;
            }, {});
          return ur(r, t), r;
        },
        hr = function (e) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : {},
            n = {
              "^class$": "className",
              "^multiple$": "allowMultiple",
              "^capture$": "captureMethod",
              "^server": {
                group: "server",
                mapping: {
                  "^process": { group: "process" },
                  "^revert": { group: "revert" },
                  "^fetch": { group: "fetch" },
                  "^restore": { group: "restore" },
                  "^load": { group: "load" },
                },
              },
              "^type$": !1,
              "^files$": !1,
            };
          Ee("SET_ATTRIBUTE_TO_OPTION_MAP", n);
          var r = Object.assign({}, t),
            o = dr(
              "FIELDSET" === e.nodeName
                ? e.querySelector("input[type=file]")
                : e,
              n
            );
          Object.keys(o).forEach(function (e) {
            X(o[e])
              ? (X(r[e]) || (r[e] = {}), Object.assign(r[e], o[e]))
              : (r[e] = o[e]);
          }),
            (r.files = (t.files || []).concat(
              []
                .concat(u(e.querySelectorAll("input:not([type=file])")))
                .map(function (e) {
                  return { source: e.value, options: { type: e.dataset.type } };
                })
            ));
          var a = lr(r);
          return (
            e.files &&
              [].concat(u(e.files)).forEach(function (e) {
                a.addFile(e);
              }),
            a.replaceElement(e),
            a
          );
        },
        pr = function () {
          return r(arguments.length <= 0 ? void 0 : arguments[0])
            ? hr.apply(void 0, arguments)
            : lr.apply(void 0, arguments);
        },
        fr = ["fire", "_read", "_write"],
        mr = function (e) {
          var t = {};
          return ge(e, t, fr), t;
        },
        gr = function (e, t) {
          return e.replace(/(?:{([a-zA-Z]+)})/g, function (e, n) {
            return t[n];
          });
        },
        _r = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "tiff"],
        vr = ["css", "csv", "html", "txt"],
        br = { zip: "zip|compressed", epub: "application/epub+zip" },
        yr = function () {
          var e =
            arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
          return (
            (e = e.toLowerCase()),
            _r.includes(e)
              ? "image/" + ("jpg" === e ? "jpeg" : "svg" === e ? "svg+xml" : e)
              : vr.includes(e)
              ? "text/" + e
              : br[e] || null
          );
        },
        wr = function (e) {
          var t = new Blob(["(", e.toString(), ")()"], {
              type: "application/javascript",
            }),
            n = URL.createObjectURL(t),
            r = new Worker(n);
          return {
            transfer: function (e, t) {},
            post: function (e, t, n) {
              var o = he();
              (r.onmessage = function (e) {
                e.data.id === o && t(e.data.message);
              }),
                r.postMessage({ id: o, message: e }, n);
            },
            terminate: function () {
              r.terminate(), URL.revokeObjectURL(n);
            },
          };
        },
        kr = function (e) {
          return new Promise(function (t, n) {
            var r = new Image();
            (r.onload = function () {
              t(r);
            }),
              (r.onerror = function (e) {
                n(e);
              }),
              (r.src = e);
          });
        },
        xr = function (e, t) {
          var n = e.slice(0, e.size, e.type);
          return (n.lastModifiedDate = e.lastModifiedDate), (n.name = t), n;
        },
        Mr = function (e) {
          return xr(e, e.name);
        },
        Er = [],
        Tr = function (e) {
          if (!Er.includes(e)) {
            Er.push(e);
            var t,
              n = e({
                addFilter: Te,
                utils: {
                  Type: ke,
                  forin: a,
                  isString: U,
                  isFile: dt,
                  toNaturalFileSize: xt,
                  replaceInString: gr,
                  getExtensionFromFilename: Re,
                  getFilenameWithoutExtension: rt,
                  guesstimateMimeType: yr,
                  getFileFromBlob: He,
                  getFilenameFromURL: Ie,
                  createRoute: A,
                  createWorker: wr,
                  createView: N,
                  createItemAPI: ve,
                  loadImage: kr,
                  copyFile: Mr,
                  renameFile: xr,
                  createBlob: ze,
                  applyFilterChain: Me,
                  text: vt,
                  getNumericAspectRatioFromString: Ce,
                },
                views: { fileActionButton: kt },
              });
            (t = n.options), Object.assign(De, t);
          }
        },
        Sr =
          ((jt =
            "undefined" != typeof window &&
            void 0 !== window.document &&
            !(
              "[object OperaMini]" ===
              Object.prototype.toString.call(window.operamini)
            ) &&
            "visibilityState" in document &&
            "Promise" in window &&
            "slice" in Blob.prototype &&
            "URL" in window &&
            "createObjectURL" in window.URL &&
            "performance" in window),
          function () {
            return jt;
          }),
        Dr = { apps: [] },
        Lr = function () {};
      if (
        ((e.FileStatus = {}),
        (e.OptionTypes = {}),
        (e.create = Lr),
        (e.destroy = Lr),
        (e.parse = Lr),
        (e.find = Lr),
        (e.registerPlugin = Lr),
        (e.getOptions = Lr),
        (e.setOptions = Lr),
        (e.FileOrigin = {}),
        Sr())
      ) {
        !(function (e, t) {
          var n =
              arguments.length > 2 && void 0 !== arguments[2]
                ? arguments[2]
                : 60,
            r = "__framePainter";
          if (window[r])
            return window[r].readers.push(e), void window[r].writers.push(t);
          window[r] = { readers: [e], writers: [t] };
          var o = window[r],
            a = 1e3 / n,
            i = null,
            s = function e(t) {
              window.requestAnimationFrame(e), i || (i = t);
              var n = t - i;
              n <= a ||
                ((i = t - (n % a)),
                o.readers.forEach(function (e) {
                  return e();
                }),
                o.writers.forEach(function (e) {
                  return e(t);
                }));
            };
          s(performance.now());
        })(
          function () {
            Dr.apps.forEach(function (e) {
              return e._read();
            });
          },
          function (e) {
            Dr.apps.forEach(function (t) {
              return t._write(e);
            });
          }
        );
        var Cr = function t() {
          document.dispatchEvent(
            new CustomEvent("FilePond:loaded", {
              detail: {
                supported: Sr,
                create: e.create,
                destroy: e.destroy,
                parse: e.parse,
                find: e.find,
                registerPlugin: e.registerPlugin,
                setOptions: e.setOptions,
              },
            })
          ),
            document.removeEventListener("DOMContentLoaded", t);
        };
        "loading" !== document.readyState
          ? setTimeout(function () {
              return Cr();
            }, 0)
          : document.addEventListener("DOMContentLoaded", Cr);
        var Pr = function () {
          return a(Se(), function (t, n) {
            e.OptionTypes[t] = n[1];
          });
        };
        (e.FileOrigin = Object.assign({}, it)),
          (e.FileStatus = Object.assign({}, ot)),
          (e.OptionTypes = {}),
          Pr(),
          (e.create = function () {
            var t = pr.apply(void 0, arguments);
            return t.on("destroy", e.destroy), Dr.apps.push(t), mr(t);
          }),
          (e.destroy = function (e) {
            var t = Dr.apps.findIndex(function (t) {
              return t.isAttachedTo(e);
            });
            return t >= 0 && (Dr.apps.splice(t, 1)[0].restoreElement(), !0);
          }),
          (e.parse = function (t) {
            return []
              .concat(u(t.querySelectorAll(".filepond")))
              .filter(function (e) {
                return !Dr.apps.find(function (t) {
                  return t.isAttachedTo(e);
                });
              })
              .map(function (t) {
                return e.create(t);
              });
          }),
          (e.find = function (e) {
            var t = Dr.apps.find(function (t) {
              return t.isAttachedTo(e);
            });
            return t ? mr(t) : null;
          }),
          (e.registerPlugin = function () {
            for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
              t[n] = arguments[n];
            t.forEach(Tr), Pr();
          }),
          (e.getOptions = function () {
            var e = {};
            return (
              a(Se(), function (t, n) {
                e[t] = n[0];
              }),
              e
            );
          }),
          (e.setOptions = function (t) {
            return (
              X(t) &&
                (Dr.apps.forEach(function (e) {
                  e.setOptions(t);
                }),
                (function (e) {
                  a(e, function (e, t) {
                    De[e] && (De[e][0] = ee(t, De[e][0], De[e][1]));
                  });
                })(t)),
              e.getOptions()
            );
          });
      }
      (e.supported = Sr), Object.defineProperty(e, "__esModule", { value: !0 });
    })(t);
  },
  function (e, t, n) {
    "use strict";
    Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0);
    var r,
      o = (r = n(0)) && r.__esModule ? r : { default: r };
    function a(e) {
      return (a =
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                "function" == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? "symbol"
                : typeof e;
            })(e);
    }
    function i(e, t) {
      if (!(e instanceof t))
        throw new TypeError("Cannot call a class as a function");
    }
    function s(e, t) {
      for (var n = 0; n < t.length; n++) {
        var r = t[n];
        (r.enumerable = r.enumerable || !1),
          (r.configurable = !0),
          "value" in r && (r.writable = !0),
          Object.defineProperty(e, r.key, r);
      }
    }
    function l(e, t) {
      return !t || ("object" !== a(t) && "function" != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError(
                "this hasn't been initialised - super() hasn't been called"
              );
            return e;
          })(e)
        : t;
    }
    function c(e) {
      return (c = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function u(e, t) {
      return (u =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var d = (function (e) {
      function t() {
        return i(this, t), l(this, c(t).apply(this, arguments));
      }
      var n, r, a;
      return (
        (function (e, t) {
          if ("function" != typeof t && null !== t)
            throw new TypeError(
              "Super expression must either be null or a function"
            );
          (e.prototype = Object.create(t && t.prototype, {
            constructor: { value: e, writable: !0, configurable: !0 },
          })),
            t && u(e, t);
        })(t, e),
        (n = t),
        (r = [
          {
            key: "render",
            value: function () {
              var e = "div",
                t = Object.assign({}, this.props);
              return (
                this.props.wrapperComponent &&
                  ((e = this.props.wrapperComponent.type),
                  delete (t = Object.assign(
                    t,
                    this.props.wrapperComponent.props
                  )).wrapperComponent),
                this.props.enabled &&
                  ((t.draggable = "true"),
                  (t.onDragEnd = this.onDragEnd.bind(this)),
                  (t.onDragStart = this.onDragStart.bind(this))),
                delete t.enabled,
                o.default.createElement(e, t, t.children)
              );
            },
          },
          {
            key: "onDragStart",
            value: function (e) {
              "function" == typeof this.props.onDragStart &&
                this.props.onDragStart(e);
              var t = Object.assign({}, this.props);
              this.props.wrapperComponent &&
                (t = Object.assign(t, this.props.wrapperComponent.props)),
                e.dataTransfer.setData(t.type, t.data);
            },
          },
          {
            key: "onDragEnd",
            value: function (e) {
              "function" == typeof this.props.onDragEnd &&
                this.props.onDragEnd(e);
            },
          },
        ]) && s(n.prototype, r),
        a && s(n, a),
        t
      );
    })(o.default.Component);
    (t.default = d), (d.defaultProps = { enabled: !0 });
  },
  function (e, t, n) {
    "use strict";
    Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0);
    var r = a(n(0)),
      o = a(n(449));
    function a(e) {
      return e && e.__esModule ? e : { default: e };
    }
    function i(e) {
      return (i =
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                "function" == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? "symbol"
                : typeof e;
            })(e);
    }
    function s() {
      return (s =
        Object.assign ||
        function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n)
              Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }).apply(this, arguments);
    }
    function l(e, t) {
      for (var n = 0; n < t.length; n++) {
        var r = t[n];
        (r.enumerable = r.enumerable || !1),
          (r.configurable = !0),
          "value" in r && (r.writable = !0),
          Object.defineProperty(e, r.key, r);
      }
    }
    function c(e, t) {
      return !t || ("object" !== i(t) && "function" != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError(
                "this hasn't been initialised - super() hasn't been called"
              );
            return e;
          })(e)
        : t;
    }
    function u(e) {
      return (u = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function d(e, t) {
      return (d =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    function h(e) {
      return e.dataTransfer ? e.dataTransfer.types : [];
    }
    var p = (function (e) {
      function t(e) {
        var n;
        return (
          (function (e, t) {
            if (!(e instanceof t))
              throw new TypeError("Cannot call a class as a function");
          })(this, t),
          ((n = c(this, u(t).call(this, e))).state = { over: !1 }),
          (n.droppable = r.default.createRef()),
          n
        );
      }
      var n, a, i;
      return (
        (function (e, t) {
          if ("function" != typeof t && null !== t)
            throw new TypeError(
              "Super expression must either be null or a function"
            );
          (e.prototype = Object.create(t && t.prototype, {
            constructor: { value: e, writable: !0, configurable: !0 },
          })),
            t && d(e, t);
        })(t, e),
        (n = t),
        (a = [
          {
            key: "render",
            value: function () {
              var e = "div",
                t = Object.assign({}, this.props);
              this.props.wrapperComponent &&
                ((e = this.props.wrapperComponent.type),
                (t = Object.assign(t, this.props.wrapperComponent.props)));
              var n = "Droppable";
              return (
                t.className && (n += " ".concat(t.className)),
                this.state.over && (n += " over"),
                r.default.createElement(
                  e,
                  s(
                    { ref: this.droppable, className: n },
                    (function (e) {
                      var t = [
                        "types",
                        "className",
                        "enabled",
                        "wrapperComponent",
                      ];
                      return Object.keys(e).reduce(function (n, r) {
                        return t.includes(r) || (n[r] = e[r]), n;
                      }, {});
                    })(t),
                    {
                      onDrop: this.onDrop.bind(this),
                      onDragOver: this.onDragOver.bind(this),
                      onDragEnter: this.onDragEnter.bind(this),
                      onDragLeave: this.onDragLeave.bind(this),
                      onDragExit: this.onDragLeave.bind(this),
                    }
                  ),
                  t.children
                )
              );
            },
          },
          {
            key: "onDragOver",
            value: function (e) {
              e.preventDefault(),
                this.allowed(h(e)) &&
                  "function" == typeof this.props.onDragOver &&
                  this.props.onDragOver(e);
            },
          },
          {
            key: "onDragEnter",
            value: function (e) {
              e.preventDefault(),
                this.state.over ||
                  (this.allowed(h(e)) &&
                    ("function" == typeof this.props.onDragEnter &&
                      this.props.onDragEnter(e),
                    this.setState({ over: !0 })));
            },
          },
          {
            key: "onDragLeave",
            value: function (e) {
              if ((e.preventDefault(), this.allowed(h(e)))) {
                var t = !0;
                (e.clientX <= this.position.left ||
                  e.clientX >= this.position.right) &&
                  (t = !1),
                  (e.clientY <= this.position.top ||
                    e.clientY >= this.position.bottom) &&
                    (t = !1),
                  t ||
                    (this.setState({ over: !1 }),
                    "function" == typeof this.props.onDragLeave &&
                      this.props.onDragLeave(e));
              }
            },
          },
          {
            key: "onDrop",
            value: function (e) {
              if ((e.preventDefault(), this.allowed(h(e)))) {
                this.setState({ over: !1 });
                var t = Object.assign({}, this.props);
                this.props.wrapperComponent &&
                  (t = Object.assign(t, this.props.wrapperComponent.props));
                var n = t.types
                  ? [].concat(t.types).reduce(function (t, n) {
                      return (t[n] = e.dataTransfer.getData(n)), t;
                    }, {})
                  : null;
                "function" == typeof this.props.onDrop &&
                  this.props.onDrop(n, e);
              }
            },
          },
          {
            key: "allowed",
            value: function (e) {
              var t = Object.assign({}, this.props);
              if (
                (this.props.wrapperComponent &&
                  (t = Object.assign(t, this.props.wrapperComponent.props)),
                !t.enabled)
              )
                return !1;
              var n = o.default.toArray(e);
              return (
                !t.types ||
                [].concat(t.types).reduce(function (e, t) {
                  return n.indexOf(t) >= 0 || e;
                }, !1)
              );
            },
          },
          {
            key: "componentDidMount",
            value: function () {
              var e = this.droppable.current;
              this.position = {
                top: e.offsetTop + 5,
                left: e.offsetLeft + 5,
                right: e.offsetLeft + e.offsetWidth - 5,
                bottom: e.offsetTop + e.offsetHeight - 5,
              };
            },
          },
        ]) && l(n.prototype, a),
        i && l(n, i),
        t
      );
    })(r.default.Component);
    (t.default = p), (p.defaultProps = { enabled: !0 });
  },
  function (e, t, n) {
    "use strict";
    Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = void 0);
    var r = {
      toArray: function (e) {
        for (var t = [], n = e.length >>> 0; n--; ) t[n] = e[n];
        return t;
      },
    };
    t.default = r;
  },
  function (e, t) {
    e.exports = function (e) {
      if (Array.isArray(e)) return e;
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      if ("undefined" != typeof Symbol && Symbol.iterator in Object(e)) {
        var n = [],
          r = !0,
          o = !1,
          a = void 0;
        try {
          for (
            var i, s = e[Symbol.iterator]();
            !(r = (i = s.next()).done) &&
            (n.push(i.value), !t || n.length !== t);
            r = !0
          );
        } catch (e) {
          (o = !0), (a = e);
        } finally {
          try {
            r || null == s.return || s.return();
          } finally {
            if (o) throw a;
          }
        }
        return n;
      }
    };
  },
  function (e, t, n) {
    var r = n(453);
    e.exports = function (e, t) {
      if (e) {
        if ("string" == typeof e) return r(e, t);
        var n = Object.prototype.toString.call(e).slice(8, -1);
        return (
          "Object" === n && e.constructor && (n = e.constructor.name),
          "Map" === n || "Set" === n
            ? Array.from(e)
            : "Arguments" === n ||
              /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
            ? r(e, t)
            : void 0
        );
      }
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      (null == t || t > e.length) && (t = e.length);
      for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
      return r;
    };
  },
  function (e, t) {
    e.exports = function () {
      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 (e, t, n) {
    "use strict";
    n.r(t);
    var r = n(0),
      o = n.n(r),
      a = n(40),
      i = n.n(a),
      s = n(12),
      l = n.n(s),
      c = n(13),
      u = n.n(c),
      d = n(14),
      h = n.n(d),
      p = n(15),
      f = n.n(p),
      m = n(6),
      g = n.n(m),
      _ = n(4),
      v = n.n(_),
      b = n(8),
      y = n.n(b),
      w = n(10),
      k = n.n(w),
      x = n(1),
      M = n.n(x),
      E = o.a.createContext(),
      T = n(9),
      S = n.n(T),
      D = n(11);
    function L(e, t) {
      for (var n = 0; n < t.length; n++) {
        var r = t[n];
        (r.enumerable = r.enumerable || !1),
          (r.configurable = !0),
          "value" in r && (r.writable = !0),
          Object.defineProperty(e, r.key, r);
      }
    }
    function C(e, t, n) {
      return (
        t in e
          ? Object.defineProperty(e, t, {
              value: n,
              enumerable: !0,
              configurable: !0,
              writable: !0,
            })
          : (e[t] = n),
        e
      );
    }
    function P() {
      return (P =
        Object.assign ||
        function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = arguments[t];
            for (var r in n)
              Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
          }
          return e;
        }).apply(this, arguments);
    }
    function O(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function N(e) {
      return (N = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function A(e, t) {
      return (A =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    function I(e, t) {
      return !t || ("object" != typeof t && "function" != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError(
                "this hasn't been initialised - super() hasn't been called"
              );
            return e;
          })(e)
        : t;
    }
    function R(e) {
      return function () {
        return e;
      };
    }
    var Y = function () {};
    (Y.thatReturns = R),
      (Y.thatReturnsFalse = R(!1)),
      (Y.thatReturnsTrue = R(!0)),
      (Y.thatReturnsNull = R(null)),
      (Y.thatReturnsThis = function () {
        return this;
      }),
      (Y.thatReturnsArgument = function (e) {
        return e;
      });
    var j = Y;
    var F = function (e, t, n, r, o, a, i, s) {
        if (!e) {
          var l;
          if (void 0 === t)
            l = new Error(
              "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
            );
          else {
            var c = [n, r, o, a, i, s],
              u = 0;
            (l = new Error(
              t.replace(/%s/g, function () {
                return c[u++];
              })
            )).name = "Invariant Violation";
          }
          throw ((l.framesToPop = 1), l);
        }
      },
      H = Object.getOwnPropertySymbols,
      z = Object.prototype.hasOwnProperty,
      B = Object.prototype.propertyIsEnumerable;
    function U(e) {
      if (null == e)
        throw new TypeError(
          "Object.assign cannot be called with null or undefined"
        );
      return Object(e);
    }
    (function () {
      try {
        if (!Object.assign) return !1;
        var e = new String("abc");
        if (((e[5] = "de"), "5" === Object.getOwnPropertyNames(e)[0]))
          return !1;
        for (var t = {}, n = 0; n < 10; n++)
          t["_" + String.fromCharCode(n)] = n;
        if (
          "0123456789" !==
          Object.getOwnPropertyNames(t)
            .map(function (e) {
              return t[e];
            })
            .join("")
        )
          return !1;
        var r = {};
        return (
          "abcdefghijklmnopqrst".split("").forEach(function (e) {
            r[e] = e;
          }),
          "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, r)).join("")
        );
      } catch (e) {
        return !1;
      }
    })() && Object.assign;
    var V = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
    var W = (function (e, t) {
        return e((t = { exports: {} }), t.exports), t.exports;
      })(function (e) {
        e.exports = (function () {
          function e(e, t, n, r, o, a) {
            a !== V &&
              F(
                !1,
                "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
              );
          }
          function t() {
            return e;
          }
          e.isRequired = e;
          var n = {
            array: e,
            bool: e,
            func: e,
            number: e,
            object: e,
            string: e,
            symbol: e,
            any: e,
            arrayOf: t,
            element: e,
            instanceOf: t,
            node: e,
            objectOf: t,
            oneOf: t,
            oneOfType: t,
            shape: t,
            exact: t,
          };
          return (n.checkPropTypes = j), (n.PropTypes = n), n;
        })();
      }),
      q = {
        HIDE: "__react_tooltip_hide_event",
        REBUILD: "__react_tooltip_rebuild_event",
        SHOW: "__react_tooltip_show_event",
      },
      G = function (e, t) {
        var n;
        "function" == typeof window.CustomEvent
          ? (n = new window.CustomEvent(e, { detail: t }))
          : ((n = document.createEvent("Event")).initEvent(e, !1, !0),
            (n.detail = t)),
          window.dispatchEvent(n);
      };
    var J = function (e, t) {
        var n = this.state.show,
          r = this.props.id,
          o = this.isCapture(t.currentTarget),
          a = t.currentTarget.getAttribute("currentItem");
        o || t.stopPropagation(),
          n && "true" === a
            ? e || this.hideTooltip(t)
            : (t.currentTarget.setAttribute("currentItem", "true"),
              K(t.currentTarget, this.getTargetArray(r)),
              this.showTooltip(t));
      },
      K = function (e, t) {
        for (var n = 0; n < t.length; n++)
          e !== t[n]
            ? t[n].setAttribute("currentItem", "false")
            : t[n].setAttribute("currentItem", "true");
      },
      Q = {
        id: "9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",
        set: function (e, t, n) {
          this.id in e
            ? (e[this.id][t] = n)
            : Object.defineProperty(e, this.id, {
                configurable: !0,
                value: C({}, t, n),
              });
        },
        get: function (e, t) {
          var n = e[this.id];
          if (void 0 !== n) return n[t];
        },
      };
    var X = function (e, t, n) {
        var r = t.respectEffect,
          o = void 0 !== r && r,
          a = t.customEvent,
          i = void 0 !== a && a,
          s = this.props.id,
          l = n.target.getAttribute("data-tip") || null,
          c = n.target.getAttribute("data-for") || null,
          u = n.target;
        if (!this.isCustomEvent(u) || i) {
          var d = (null == s && null == c) || c === s;
          if (null != l && (!o || "float" === this.getEffect(u)) && d) {
            var h = (function (e) {
              var t = {};
              for (var n in e)
                "function" == typeof e[n]
                  ? (t[n] = e[n].bind(e))
                  : (t[n] = e[n]);
              return t;
            })(n);
            (h.currentTarget = u), e(h);
          }
        }
      },
      $ = function (e, t) {
        var n = {};
        return (
          e.forEach(function (e) {
            var r = e.getAttribute(t);
            r &&
              r.split(" ").forEach(function (e) {
                return (n[e] = !0);
              });
          }),
          n
        );
      },
      Z = function () {
        return document.getElementsByTagName("body")[0];
      };
    function ee(e, t, n, r, o, a, i) {
      for (
        var s = oe(n),
          l = s.width,
          c = s.height,
          u = oe(t),
          d = u.width,
          h = u.height,
          p = ae(e, t, a),
          f = p.mouseX,
          m = p.mouseY,
          g = ie(a, d, h, l, c),
          _ = se(i),
          v = _.extraOffset_X,
          b = _.extraOffset_Y,
          y = window.innerWidth,
          w = window.innerHeight,
          k = le(n),
          x = k.parentTop,
          M = k.parentLeft,
          E = function (e) {
            var t = g[e].l;
            return f + t + v;
          },
          T = function (e) {
            var t = g[e].t;
            return m + t + b;
          },
          S = function (e) {
            return (
              (function (e) {
                var t = g[e].r;
                return f + t + v;
              })(e) > y
            );
          },
          D = function (e) {
            return (
              (function (e) {
                var t = g[e].b;
                return m + t + b;
              })(e) > w
            );
          },
          L = function (e) {
            return (
              (function (e) {
                return E(e) < 0;
              })(e) ||
              S(e) ||
              (function (e) {
                return T(e) < 0;
              })(e) ||
              D(e)
            );
          },
          C = function (e) {
            return !L(e);
          },
          P = ["top", "bottom", "left", "right"],
          O = [],
          N = 0;
        N < 4;
        N++
      ) {
        var A = P[N];
        C(A) && O.push(A);
      }
      var I,
        R = !1,
        Y = o !== r;
      return (
        C(o) && Y
          ? ((R = !0), (I = o))
          : O.length > 0 && Y && L(o) && L(r) && ((R = !0), (I = O[0])),
        R
          ? { isNewState: !0, newState: { place: I } }
          : {
              isNewState: !1,
              position: {
                left: parseInt(E(r) - M, 10),
                top: parseInt(T(r) - x, 10),
              },
            }
      );
    }
    var te,
      ne,
      re,
      oe = function (e) {
        var t = e.getBoundingClientRect(),
          n = t.height,
          r = t.width;
        return { height: parseInt(n, 10), width: parseInt(r, 10) };
      },
      ae = function (e, t, n) {
        var r = t.getBoundingClientRect(),
          o = r.top,
          a = r.left,
          i = oe(t),
          s = i.width,
          l = i.height;
        return "float" === n
          ? { mouseX: e.clientX, mouseY: e.clientY }
          : { mouseX: a + s / 2, mouseY: o + l / 2 };
      },
      ie = function (e, t, n, r, o) {
        var a, i, s, l;
        return (
          "float" === e
            ? ((a = { l: -r / 2, r: r / 2, t: -(o + 3 + 2), b: -3 }),
              (s = { l: -r / 2, r: r / 2, t: 15, b: o + 3 + 2 + 12 }),
              (l = { l: -(r + 3 + 2), r: -3, t: -o / 2, b: o / 2 }),
              (i = { l: 3, r: r + 3 + 2, t: -o / 2, b: o / 2 }))
            : "solid" === e &&
              ((a = { l: -r / 2, r: r / 2, t: -(n / 2 + o + 2), b: -n / 2 }),
              (s = { l: -r / 2, r: r / 2, t: n / 2, b: n / 2 + o + 2 }),
              (l = { l: -(r + t / 2 + 2), r: -t / 2, t: -o / 2, b: o / 2 }),
              (i = { l: t / 2, r: r + t / 2 + 2, t: -o / 2, b: o / 2 })),
          { top: a, bottom: s, left: l, right: i }
        );
      },
      se = function (e) {
        var t = 0,
          n = 0;
        for (var r in ("[object String]" ===
          Object.prototype.toString.apply(e) &&
          (e = JSON.parse(e.toString().replace(/\'/g, '"'))),
        e))
          "top" === r
            ? (n -= parseInt(e[r], 10))
            : "bottom" === r
            ? (n += parseInt(e[r], 10))
            : "left" === r
            ? (t -= parseInt(e[r], 10))
            : "right" === r && (t += parseInt(e[r], 10));
        return { extraOffset_X: t, extraOffset_Y: n };
      },
      le = function (e) {
        for (
          var t = e;
          t &&
          "none" === window.getComputedStyle(t).getPropertyValue("transform");

        )
          t = t.parentElement;
        return {
          parentTop: (t && t.getBoundingClientRect().top) || 0,
          parentLeft: (t && t.getBoundingClientRect().left) || 0,
        };
      };
    function ce(e, t, n, r) {
      if (t) return t;
      if (null != n) return n;
      if (null === n) return null;
      var a = /<br\s*\/?>/;
      return r && "false" !== r && a.test(e)
        ? e.split(a).map(function (e, t) {
            return o.a.createElement(
              "span",
              { key: t, className: "multi-line" },
              e
            );
          })
        : e;
    }
    function ue(e) {
      var t = {};
      return (
        Object.keys(e)
          .filter(function (e) {
            return /(^aria-\w+$|^role$)/.test(e);
          })
          .forEach(function (n) {
            t[n] = e[n];
          }),
        t
      );
    }
    !(function (e) {
      if (e && "undefined" != typeof window) {
        var t = document.createElement("style");
        t.setAttribute("type", "text/css"),
          (t.innerHTML = e),
          document.head.appendChild(t);
      }
    })(
      '.__react_component_tooltip {\n  border-radius: 3px;\n  display: inline-block;\n  font-size: 13px;\n  left: -999em;\n  opacity: 0;\n  padding: 8px 21px;\n  position: fixed;\n  pointer-events: none;\n  transition: opacity 0.3s ease-out;\n  top: -999em;\n  visibility: hidden;\n  z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n  pointer-events: auto;\n}\n.__react_component_tooltip:before, .__react_component_tooltip:after {\n  content: "";\n  width: 0;\n  height: 0;\n  position: absolute;\n}\n.__react_component_tooltip.show {\n  opacity: 0.9;\n  margin-top: 0px;\n  margin-left: 0px;\n  visibility: visible;\n}\n.__react_component_tooltip.type-dark {\n  color: #fff;\n  background-color: #222;\n}\n.__react_component_tooltip.type-dark.place-top:after {\n  border-top-color: #222;\n  border-top-style: solid;\n  border-top-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-bottom:after {\n  border-bottom-color: #222;\n  border-bottom-style: solid;\n  border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-left:after {\n  border-left-color: #222;\n  border-left-style: solid;\n  border-left-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-right:after {\n  border-right-color: #222;\n  border-right-style: solid;\n  border-right-width: 6px;\n}\n.__react_component_tooltip.type-dark.border {\n  border: 1px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-top:before {\n  border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-bottom:before {\n  border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-left:before {\n  border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-right:before {\n  border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-success {\n  color: #fff;\n  background-color: #8DC572;\n}\n.__react_component_tooltip.type-success.place-top:after {\n  border-top-color: #8DC572;\n  border-top-style: solid;\n  border-top-width: 6px;\n}\n.__react_component_tooltip.type-success.place-bottom:after {\n  border-bottom-color: #8DC572;\n  border-bottom-style: solid;\n  border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-success.place-left:after {\n  border-left-color: #8DC572;\n  border-left-style: solid;\n  border-left-width: 6px;\n}\n.__react_component_tooltip.type-success.place-right:after {\n  border-right-color: #8DC572;\n  border-right-style: solid;\n  border-right-width: 6px;\n}\n.__react_component_tooltip.type-success.border {\n  border: 1px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-top:before {\n  border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-bottom:before {\n  border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-left:before {\n  border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-right:before {\n  border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning {\n  color: #fff;\n  background-color: #F0AD4E;\n}\n.__react_component_tooltip.type-warning.place-top:after {\n  border-top-color: #F0AD4E;\n  border-top-style: solid;\n  border-top-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-bottom:after {\n  border-bottom-color: #F0AD4E;\n  border-bottom-style: solid;\n  border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-left:after {\n  border-left-color: #F0AD4E;\n  border-left-style: solid;\n  border-left-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-right:after {\n  border-right-color: #F0AD4E;\n  border-right-style: solid;\n  border-right-width: 6px;\n}\n.__react_component_tooltip.type-warning.border {\n  border: 1px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-top:before {\n  border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-bottom:before {\n  border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-left:before {\n  border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-right:before {\n  border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-error {\n  color: #fff;\n  background-color: #BE6464;\n}\n.__react_component_tooltip.type-error.place-top:after {\n  border-top-color: #BE6464;\n  border-top-style: solid;\n  border-top-width: 6px;\n}\n.__react_component_tooltip.type-error.place-bottom:after {\n  border-bottom-color: #BE6464;\n  border-bottom-style: solid;\n  border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-error.place-left:after {\n  border-left-color: #BE6464;\n  border-left-style: solid;\n  border-left-width: 6px;\n}\n.__react_component_tooltip.type-error.place-right:after {\n  border-right-color: #BE6464;\n  border-right-style: solid;\n  border-right-width: 6px;\n}\n.__react_component_tooltip.type-error.border {\n  border: 1px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-top:before {\n  border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-bottom:before {\n  border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-left:before {\n  border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-right:before {\n  border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-info {\n  color: #fff;\n  background-color: #337AB7;\n}\n.__react_component_tooltip.type-info.place-top:after {\n  border-top-color: #337AB7;\n  border-top-style: solid;\n  border-top-width: 6px;\n}\n.__react_component_tooltip.type-info.place-bottom:after {\n  border-bottom-color: #337AB7;\n  border-bottom-style: solid;\n  border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-info.place-left:after {\n  border-left-color: #337AB7;\n  border-left-style: solid;\n  border-left-width: 6px;\n}\n.__react_component_tooltip.type-info.place-right:after {\n  border-right-color: #337AB7;\n  border-right-style: solid;\n  border-right-width: 6px;\n}\n.__react_component_tooltip.type-info.border {\n  border: 1px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-top:before {\n  border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-bottom:before {\n  border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-left:before {\n  border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-right:before {\n  border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-light {\n  color: #222;\n  background-color: #fff;\n}\n.__react_component_tooltip.type-light.place-top:after {\n  border-top-color: #fff;\n  border-top-style: solid;\n  border-top-width: 6px;\n}\n.__react_component_tooltip.type-light.place-bottom:after {\n  border-bottom-color: #fff;\n  border-bottom-style: solid;\n  border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-light.place-left:after {\n  border-left-color: #fff;\n  border-left-style: solid;\n  border-left-width: 6px;\n}\n.__react_component_tooltip.type-light.place-right:after {\n  border-right-color: #fff;\n  border-right-style: solid;\n  border-right-width: 6px;\n}\n.__react_component_tooltip.type-light.border {\n  border: 1px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-top:before {\n  border-top: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-bottom:before {\n  border-bottom: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-left:before {\n  border-left: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-right:before {\n  border-right: 8px solid #222;\n}\n.__react_component_tooltip.place-top {\n  margin-top: -10px;\n}\n.__react_component_tooltip.place-top:before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  bottom: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-top:after {\n  border-left: 8px solid transparent;\n  border-right: 8px solid transparent;\n  bottom: -6px;\n  left: 50%;\n  margin-left: -8px;\n}\n.__react_component_tooltip.place-bottom {\n  margin-top: 10px;\n}\n.__react_component_tooltip.place-bottom:before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  top: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom:after {\n  border-left: 8px solid transparent;\n  border-right: 8px solid transparent;\n  top: -6px;\n  left: 50%;\n  margin-left: -8px;\n}\n.__react_component_tooltip.place-left {\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-left:before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  right: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip.place-left:after {\n  border-top: 5px solid transparent;\n  border-bottom: 5px solid transparent;\n  right: -6px;\n  top: 50%;\n  margin-top: -4px;\n}\n.__react_component_tooltip.place-right {\n  margin-left: 10px;\n}\n.__react_component_tooltip.place-right:before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  left: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip.place-right:after {\n  border-top: 5px solid transparent;\n  border-bottom: 5px solid transparent;\n  left: -6px;\n  top: 50%;\n  margin-top: -4px;\n}\n.__react_component_tooltip .multi-line {\n  display: block;\n  padding: 2px 0px;\n  text-align: center;\n}'
    );
    var de,
      he =
        (function (e) {
          (e.hide = function (e) {
            G(q.HIDE, { target: e });
          }),
            (e.rebuild = function () {
              G(q.REBUILD);
            }),
            (e.show = function (e) {
              G(q.SHOW, { target: e });
            }),
            (e.prototype.globalRebuild = function () {
              this.mount && (this.unbindListener(), this.bindListener());
            }),
            (e.prototype.globalShow = function (e) {
              if (this.mount) {
                var t = { currentTarget: e.detail.target };
                this.showTooltip(t, !0);
              }
            }),
            (e.prototype.globalHide = function (e) {
              if (this.mount) {
                var t = !!(e && e.detail && e.detail.target);
                this.hideTooltip({ currentTarget: t && e.detail.target }, t);
              }
            });
        })(
          (te =
            (function (e) {
              (e.prototype.bindWindowEvents = function (e) {
                window.removeEventListener(q.HIDE, this.globalHide),
                  window.addEventListener(q.HIDE, this.globalHide, !1),
                  window.removeEventListener(q.REBUILD, this.globalRebuild),
                  window.addEventListener(q.REBUILD, this.globalRebuild, !1),
                  window.removeEventListener(q.SHOW, this.globalShow),
                  window.addEventListener(q.SHOW, this.globalShow, !1),
                  e &&
                    (window.removeEventListener("resize", this.onWindowResize),
                    window.addEventListener("resize", this.onWindowResize, !1));
              }),
                (e.prototype.unbindWindowEvents = function () {
                  window.removeEventListener(q.HIDE, this.globalHide),
                    window.removeEventListener(q.REBUILD, this.globalRebuild),
                    window.removeEventListener(q.SHOW, this.globalShow),
                    window.removeEventListener("resize", this.onWindowResize);
                }),
                (e.prototype.onWindowResize = function () {
                  this.mount && this.hideTooltip();
                });
            })(
              (te =
                (function (e) {
                  (e.prototype.isCustomEvent = function (e) {
                    return this.state.event || !!e.getAttribute("data-event");
                  }),
                    (e.prototype.customBindListener = function (e) {
                      var t = this,
                        n = this.state,
                        r = n.event,
                        o = n.eventOff,
                        a = e.getAttribute("data-event") || r,
                        i = e.getAttribute("data-event-off") || o;
                      a.split(" ").forEach(function (n) {
                        e.removeEventListener(n, Q.get(e, n));
                        var r = J.bind(t, i);
                        Q.set(e, n, r), e.addEventListener(n, r, !1);
                      }),
                        i &&
                          i.split(" ").forEach(function (n) {
                            e.removeEventListener(n, t.hideTooltip),
                              e.addEventListener(n, t.hideTooltip, !1);
                          });
                    }),
                    (e.prototype.customUnbindListener = function (e) {
                      var t = this.state,
                        n = t.event,
                        r = t.eventOff,
                        o = n || e.getAttribute("data-event"),
                        a = r || e.getAttribute("data-event-off");
                      e.removeEventListener(o, Q.get(e, n)),
                        a && e.removeEventListener(a, this.hideTooltip);
                    });
                })(
                  (te =
                    (function (e) {
                      e.prototype.isCapture = function (e) {
                        return (
                          (e && "true" === e.getAttribute("data-iscapture")) ||
                          this.props.isCapture ||
                          !1
                        );
                      };
                    })(
                      (te =
                        (function (e) {
                          e.prototype.getEffect = function (e) {
                            return (
                              e.getAttribute("data-effect") ||
                              this.props.effect ||
                              "float"
                            );
                          };
                        })(
                          (te =
                            (function (e) {
                              (e.prototype.isBodyMode = function () {
                                return !!this.props.bodyMode;
                              }),
                                (e.prototype.bindBodyListener = function (e) {
                                  var t = this,
                                    n = this.state,
                                    r = n.event,
                                    o = n.eventOff,
                                    a = n.possibleCustomEvents,
                                    i = n.possibleCustomEventsOff,
                                    s = Z(),
                                    l = $(e, "data-event"),
                                    c = $(e, "data-event-off");
                                  null != r && (l[r] = !0),
                                    null != o && (c[o] = !0),
                                    a.split(" ").forEach(function (e) {
                                      return (l[e] = !0);
                                    }),
                                    i.split(" ").forEach(function (e) {
                                      return (c[e] = !0);
                                    }),
                                    this.unbindBodyListener(s);
                                  var u = (this.bodyModeListeners = {});
                                  for (var d in (null == r &&
                                    ((u.mouseover = X.bind(
                                      this,
                                      this.showTooltip,
                                      {}
                                    )),
                                    (u.mousemove = X.bind(
                                      this,
                                      this.updateTooltip,
                                      { respectEffect: !0 }
                                    )),
                                    (u.mouseout = X.bind(
                                      this,
                                      this.hideTooltip,
                                      {}
                                    ))),
                                  l))
                                    u[d] = X.bind(
                                      this,
                                      function (e) {
                                        var n =
                                          e.currentTarget.getAttribute(
                                            "data-event-off"
                                          ) || o;
                                        J.call(t, n, e);
                                      },
                                      { customEvent: !0 }
                                    );
                                  for (var h in c)
                                    u[h] = X.bind(this, this.hideTooltip, {
                                      customEvent: !0,
                                    });
                                  for (var p in u) s.addEventListener(p, u[p]);
                                }),
                                (e.prototype.unbindBodyListener = function (e) {
                                  e = e || Z();
                                  var t = this.bodyModeListeners;
                                  for (var n in t)
                                    e.removeEventListener(n, t[n]);
                                });
                            })(
                              ((re = ne = (function (e) {
                                function t(e) {
                                  var n;
                                  return (
                                    (function (e, t) {
                                      if (!(e instanceof t))
                                        throw new TypeError(
                                          "Cannot call a class as a function"
                                        );
                                    })(this, t),
                                    ((n = I(this, N(t).call(this, e))).state = {
                                      place: e.place || "top",
                                      desiredPlace: e.place || "top",
                                      type: "dark",
                                      effect: "float",
                                      show: !1,
                                      border: !1,
                                      offset: {},
                                      extraClass: "",
                                      html: !1,
                                      delayHide: 0,
                                      delayShow: 0,
                                      event: e.event || null,
                                      eventOff: e.eventOff || null,
                                      currentEvent: null,
                                      currentTarget: null,
                                      ariaProps: ue(e),
                                      isEmptyTip: !1,
                                      disable: !1,
                                      possibleCustomEvents:
                                        e.possibleCustomEvents || "",
                                      possibleCustomEventsOff:
                                        e.possibleCustomEventsOff || "",
                                      originTooltip: null,
                                      isMultiline: !1,
                                    }),
                                    n.bind([
                                      "showTooltip",
                                      "updateTooltip",
                                      "hideTooltip",
                                      "hideTooltipOnScroll",
                                      "getTooltipContent",
                                      "globalRebuild",
                                      "globalShow",
                                      "globalHide",
                                      "onWindowResize",
                                      "mouseOnToolTip",
                                    ]),
                                    (n.mount = !0),
                                    (n.delayShowLoop = null),
                                    (n.delayHideLoop = null),
                                    (n.delayReshow = null),
                                    (n.intervalUpdateContent = null),
                                    n
                                  );
                                }
                                var n, r, a;
                                return (
                                  (function (e, t) {
                                    if ("function" != typeof t && null !== t)
                                      throw new TypeError(
                                        "Super expression must either be null or a function"
                                      );
                                    (e.prototype = Object.create(
                                      t && t.prototype,
                                      {
                                        constructor: {
                                          value: e,
                                          writable: !0,
                                          configurable: !0,
                                        },
                                      }
                                    )),
                                      t && A(e, t);
                                  })(t, e),
                                  (n = t),
                                  (a = [
                                    {
                                      key: "getDerivedStateFromProps",
                                      value: function (e, t) {
                                        var n = t.ariaProps,
                                          r = ue(e);
                                        return Object.keys(r).some(function (
                                          e
                                        ) {
                                          return r[e] !== n[e];
                                        })
                                          ? (function (e) {
                                              for (
                                                var t = 1;
                                                t < arguments.length;
                                                t++
                                              ) {
                                                var n =
                                                  null != arguments[t]
                                                    ? arguments[t]
                                                    : {};
                                                t % 2
                                                  ? O(Object(n), !0).forEach(
                                                      function (t) {
                                                        C(e, t, n[t]);
                                                      }
                                                    )
                                                  : Object.getOwnPropertyDescriptors
                                                  ? Object.defineProperties(
                                                      e,
                                                      Object.getOwnPropertyDescriptors(
                                                        n
                                                      )
                                                    )
                                                  : O(Object(n)).forEach(
                                                      function (t) {
                                                        Object.defineProperty(
                                                          e,
                                                          t,
                                                          Object.getOwnPropertyDescriptor(
                                                            n,
                                                            t
                                                          )
                                                        );
                                                      }
                                                    );
                                              }
                                              return e;
                                            })({}, t, { ariaProps: r })
                                          : null;
                                      },
                                    },
                                  ]),
                                  (r = [
                                    {
                                      key: "bind",
                                      value: function (e) {
                                        var t = this;
                                        e.forEach(function (e) {
                                          t[e] = t[e].bind(t);
                                        });
                                      },
                                    },
                                    {
                                      key: "componentDidMount",
                                      value: function () {
                                        var e = this.props,
                                          t = (e.insecure, e.resizeHide);
                                        this.bindListener(),
                                          this.bindWindowEvents(t);
                                      },
                                    },
                                    {
                                      key: "componentWillUnmount",
                                      value: function () {
                                        (this.mount = !1),
                                          this.clearTimer(),
                                          this.unbindListener(),
                                          this.removeScrollListener(),
                                          this.unbindWindowEvents();
                                      },
                                    },
                                    {
                                      key: "mouseOnToolTip",
                                      value: function () {
                                        return (
                                          !(
                                            !this.state.show || !this.tooltipRef
                                          ) &&
                                          (this.tooltipRef.matches ||
                                            (this.tooltipRef.msMatchesSelector
                                              ? (this.tooltipRef.matches = this.tooltipRef.msMatchesSelector)
                                              : (this.tooltipRef.matches = this.tooltipRef.mozMatchesSelector)),
                                          this.tooltipRef.matches(":hover"))
                                        );
                                      },
                                    },
                                    {
                                      key: "getTargetArray",
                                      value: function (e) {
                                        var t, n, r;
                                        if (e) {
                                          var o = e
                                            .replace(/\\/g, "\\\\")
                                            .replace(/"/g, '\\"');
                                          t = document.querySelectorAll(
                                            '[data-tip][data-for="'.concat(
                                              o,
                                              '"]'
                                            )
                                          );
                                        } else
                                          t = document.querySelectorAll(
                                            "[data-tip]:not([data-for])"
                                          );
                                        return (
                                          (r = (n = t).length),
                                          n.hasOwnProperty
                                            ? Array.prototype.slice.call(n)
                                            : new Array(r)
                                                .fill()
                                                .map(function (e) {
                                                  return n[e];
                                                })
                                        );
                                      },
                                    },
                                    {
                                      key: "bindListener",
                                      value: function () {
                                        var e = this,
                                          t = this.props,
                                          n = t.id,
                                          r = t.globalEventOff,
                                          o = t.isCapture,
                                          a = this.getTargetArray(n);
                                        a.forEach(function (t) {
                                          null ===
                                            t.getAttribute("currentItem") &&
                                            t.setAttribute(
                                              "currentItem",
                                              "false"
                                            ),
                                            e.unbindBasicListener(t),
                                            e.isCustomEvent(t) &&
                                              e.customUnbindListener(t);
                                        }),
                                          this.isBodyMode()
                                            ? this.bindBodyListener(a)
                                            : a.forEach(function (t) {
                                                var n = e.isCapture(t),
                                                  r = e.getEffect(t);
                                                e.isCustomEvent(t)
                                                  ? e.customBindListener(t)
                                                  : (t.addEventListener(
                                                      "mouseenter",
                                                      e.showTooltip,
                                                      n
                                                    ),
                                                    "float" === r &&
                                                      t.addEventListener(
                                                        "mousemove",
                                                        e.updateTooltip,
                                                        n
                                                      ),
                                                    t.addEventListener(
                                                      "mouseleave",
                                                      e.hideTooltip,
                                                      n
                                                    ));
                                              }),
                                          r &&
                                            (window.removeEventListener(
                                              r,
                                              this.hideTooltip
                                            ),
                                            window.addEventListener(
                                              r,
                                              this.hideTooltip,
                                              o
                                            )),
                                          this.bindRemovalTracker();
                                      },
                                    },
                                    {
                                      key: "unbindListener",
                                      value: function () {
                                        var e = this,
                                          t = this.props,
                                          n = t.id,
                                          r = t.globalEventOff;
                                        this.isBodyMode()
                                          ? this.unbindBodyListener()
                                          : this.getTargetArray(n).forEach(
                                              function (t) {
                                                e.unbindBasicListener(t),
                                                  e.isCustomEvent(t) &&
                                                    e.customUnbindListener(t);
                                              }
                                            ),
                                          r &&
                                            window.removeEventListener(
                                              r,
                                              this.hideTooltip
                                            ),
                                          this.unbindRemovalTracker();
                                      },
                                    },
                                    {
                                      key: "unbindBasicListener",
                                      value: function (e) {
                                        var t = this.isCapture(e);
                                        e.removeEventListener(
                                          "mouseenter",
                                          this.showTooltip,
                                          t
                                        ),
                                          e.removeEventListener(
                                            "mousemove",
                                            this.updateTooltip,
                                            t
                                          ),
                                          e.removeEventListener(
                                            "mouseleave",
                                            this.hideTooltip,
                                            t
                                          );
                                      },
                                    },
                                    {
                                      key: "getTooltipContent",
                                      value: function () {
                                        var e,
                                          t = this.props,
                                          n = t.getContent,
                                          r = t.children;
                                        return (
                                          n &&
                                            (e = Array.isArray(n)
                                              ? n[0] &&
                                                n[0](this.state.originTooltip)
                                              : n(this.state.originTooltip)),
                                          ce(
                                            this.state.originTooltip,
                                            r,
                                            e,
                                            this.state.isMultiline
                                          )
                                        );
                                      },
                                    },
                                    {
                                      key: "isEmptyTip",
                                      value: function (e) {
                                        return (
                                          ("string" == typeof e && "" === e) ||
                                          null === e
                                        );
                                      },
                                    },
                                    {
                                      key: "showTooltip",
                                      value: function (e, t) {
                                        if (
                                          !t ||
                                          this.getTargetArray(
                                            this.props.id
                                          ).some(function (t) {
                                            return t === e.currentTarget;
                                          })
                                        ) {
                                          var n = this.props,
                                            r = n.multiline,
                                            o = n.getContent,
                                            a = e.currentTarget.getAttribute(
                                              "data-tip"
                                            ),
                                            i =
                                              e.currentTarget.getAttribute(
                                                "data-multiline"
                                              ) ||
                                              r ||
                                              !1,
                                            s =
                                              e instanceof window.FocusEvent ||
                                              t,
                                            l = !0;
                                          e.currentTarget.getAttribute(
                                            "data-scroll-hide"
                                          )
                                            ? (l =
                                                "true" ===
                                                e.currentTarget.getAttribute(
                                                  "data-scroll-hide"
                                                ))
                                            : null != this.props.scrollHide &&
                                              (l = this.props.scrollHide);
                                          var c =
                                              e.currentTarget.getAttribute(
                                                "data-place"
                                              ) ||
                                              this.props.place ||
                                              "top",
                                            u = s
                                              ? "solid"
                                              : this.getEffect(e.currentTarget),
                                            d =
                                              e.currentTarget.getAttribute(
                                                "data-offset"
                                              ) ||
                                              this.props.offset ||
                                              {},
                                            h = ee(
                                              e,
                                              e.currentTarget,
                                              this.tooltipRef,
                                              c,
                                              c,
                                              u,
                                              d
                                            );
                                          h.position &&
                                            this.props.overridePosition &&
                                            (h.position = this.props.overridePosition(
                                              h.position,
                                              e.currentTarget,
                                              this.tooltipRef,
                                              c,
                                              c,
                                              u,
                                              d
                                            ));
                                          var p = h.isNewState
                                            ? h.newState.place
                                            : c;
                                          this.clearTimer();
                                          var f = e.currentTarget,
                                            m = this.state.show
                                              ? f.getAttribute(
                                                  "data-delay-update"
                                                ) || this.props.delayUpdate
                                              : 0,
                                            g = this,
                                            _ = function () {
                                              g.setState(
                                                {
                                                  originTooltip: a,
                                                  isMultiline: i,
                                                  desiredPlace: c,
                                                  place: p,
                                                  type:
                                                    f.getAttribute(
                                                      "data-type"
                                                    ) ||
                                                    g.props.type ||
                                                    "dark",
                                                  effect: u,
                                                  offset: d,
                                                  html: f.getAttribute(
                                                    "data-html"
                                                  )
                                                    ? "true" ===
                                                      f.getAttribute(
                                                        "data-html"
                                                      )
                                                    : g.props.html || !1,
                                                  delayShow:
                                                    f.getAttribute(
                                                      "data-delay-show"
                                                    ) ||
                                                    g.props.delayShow ||
                                                    0,
                                                  delayHide:
                                                    f.getAttribute(
                                                      "data-delay-hide"
                                                    ) ||
                                                    g.props.delayHide ||
                                                    0,
                                                  delayUpdate:
                                                    f.getAttribute(
                                                      "data-delay-update"
                                                    ) ||
                                                    g.props.delayUpdate ||
                                                    0,
                                                  border: f.getAttribute(
                                                    "data-border"
                                                  )
                                                    ? "true" ===
                                                      f.getAttribute(
                                                        "data-border"
                                                      )
                                                    : g.props.border || !1,
                                                  extraClass:
                                                    f.getAttribute(
                                                      "data-class"
                                                    ) ||
                                                    g.props.class ||
                                                    g.props.className ||
                                                    "",
                                                  disable: f.getAttribute(
                                                    "data-tip-disable"
                                                  )
                                                    ? "true" ===
                                                      f.getAttribute(
                                                        "data-tip-disable"
                                                      )
                                                    : g.props.disable || !1,
                                                  currentTarget: f,
                                                },
                                                function () {
                                                  l &&
                                                    g.addScrollListener(
                                                      g.state.currentTarget
                                                    ),
                                                    g.updateTooltip(e),
                                                    o &&
                                                      Array.isArray(o) &&
                                                      (g.intervalUpdateContent = setInterval(
                                                        function () {
                                                          if (g.mount) {
                                                            var e =
                                                                g.props
                                                                  .getContent,
                                                              t = ce(
                                                                a,
                                                                "",
                                                                e[0](),
                                                                i
                                                              ),
                                                              n = g.isEmptyTip(
                                                                t
                                                              );
                                                            g.setState({
                                                              isEmptyTip: n,
                                                            }),
                                                              g.updatePosition();
                                                          }
                                                        },
                                                        o[1]
                                                      ));
                                                }
                                              );
                                            };
                                          m
                                            ? (this.delayReshow = setTimeout(
                                                _,
                                                m
                                              ))
                                            : _();
                                        }
                                      },
                                    },
                                    {
                                      key: "updateTooltip",
                                      value: function (e) {
                                        var t = this,
                                          n = this.state,
                                          r = n.delayShow,
                                          o = n.disable,
                                          a = this.props.afterShow,
                                          i = this.getTooltipContent(),
                                          s = parseInt(r, 10),
                                          l = e.currentTarget || e.target;
                                        if (
                                          !this.mouseOnToolTip() &&
                                          !this.isEmptyTip(i) &&
                                          !o
                                        ) {
                                          var c = function () {
                                            if (
                                              (Array.isArray(i) &&
                                                i.length > 0) ||
                                              i
                                            ) {
                                              var n = !t.state.show;
                                              t.setState(
                                                {
                                                  currentEvent: e,
                                                  currentTarget: l,
                                                  show: !0,
                                                },
                                                function () {
                                                  t.updatePosition(),
                                                    n && a && a(e);
                                                }
                                              );
                                            }
                                          };
                                          clearTimeout(this.delayShowLoop),
                                            r
                                              ? (this.delayShowLoop = setTimeout(
                                                  c,
                                                  s
                                                ))
                                              : c();
                                        }
                                      },
                                    },
                                    {
                                      key: "listenForTooltipExit",
                                      value: function () {
                                        this.state.show &&
                                          this.tooltipRef &&
                                          this.tooltipRef.addEventListener(
                                            "mouseleave",
                                            this.hideTooltip
                                          );
                                      },
                                    },
                                    {
                                      key: "removeListenerForTooltipExit",
                                      value: function () {
                                        this.state.show &&
                                          this.tooltipRef &&
                                          this.tooltipRef.removeEventListener(
                                            "mouseleave",
                                            this.hideTooltip
                                          );
                                      },
                                    },
                                    {
                                      key: "hideTooltip",
                                      value: function (e, t) {
                                        var n = this,
                                          r =
                                            arguments.length > 2 &&
                                            void 0 !== arguments[2]
                                              ? arguments[2]
                                              : { isScroll: !1 },
                                          o = this.state.disable,
                                          a = r.isScroll,
                                          i = a ? 0 : this.state.delayHide,
                                          s = this.props.afterHide,
                                          l = this.getTooltipContent();
                                        if (
                                          this.mount &&
                                          !this.isEmptyTip(l) &&
                                          !o
                                        ) {
                                          if (t) {
                                            var c = this.getTargetArray(
                                                this.props.id
                                              ),
                                              u = c.some(function (t) {
                                                return t === e.currentTarget;
                                              });
                                            if (!u || !this.state.show) return;
                                          }
                                          var d = function () {
                                            var t = n.state.show;
                                            n.mouseOnToolTip()
                                              ? n.listenForTooltipExit()
                                              : (n.removeListenerForTooltipExit(),
                                                n.setState(
                                                  { show: !1 },
                                                  function () {
                                                    n.removeScrollListener(),
                                                      t && s && s(e);
                                                  }
                                                ));
                                          };
                                          this.clearTimer(),
                                            i
                                              ? (this.delayHideLoop = setTimeout(
                                                  d,
                                                  parseInt(i, 10)
                                                ))
                                              : d();
                                        }
                                      },
                                    },
                                    {
                                      key: "hideTooltipOnScroll",
                                      value: function (e, t) {
                                        this.hideTooltip(e, t, {
                                          isScroll: !0,
                                        });
                                      },
                                    },
                                    {
                                      key: "addScrollListener",
                                      value: function (e) {
                                        var t = this.isCapture(e);
                                        window.addEventListener(
                                          "scroll",
                                          this.hideTooltipOnScroll,
                                          t
                                        );
                                      },
                                    },
                                    {
                                      key: "removeScrollListener",
                                      value: function () {
                                        window.removeEventListener(
                                          "scroll",
                                          this.hideTooltipOnScroll
                                        );
                                      },
                                    },
                                    {
                                      key: "updatePosition",
                                      value: function () {
                                        var e = this,
                                          t = this.state,
                                          n = t.currentEvent,
                                          r = t.currentTarget,
                                          o = t.place,
                                          a = t.desiredPlace,
                                          i = t.effect,
                                          s = t.offset,
                                          l = this.tooltipRef,
                                          c = ee(n, r, l, o, a, i, s);
                                        if (
                                          (c.position &&
                                            this.props.overridePosition &&
                                            (c.position = this.props.overridePosition(
                                              c.position,
                                              n,
                                              r,
                                              l,
                                              o,
                                              a,
                                              i,
                                              s
                                            )),
                                          c.isNewState)
                                        )
                                          return this.setState(
                                            c.newState,
                                            function () {
                                              e.updatePosition();
                                            }
                                          );
                                        (l.style.left = c.position.left + "px"),
                                          (l.style.top = c.position.top + "px");
                                      },
                                    },
                                    {
                                      key: "clearTimer",
                                      value: function () {
                                        clearTimeout(this.delayShowLoop),
                                          clearTimeout(this.delayHideLoop),
                                          clearTimeout(this.delayReshow),
                                          clearInterval(
                                            this.intervalUpdateContent
                                          );
                                      },
                                    },
                                    {
                                      key: "render",
                                      value: function () {
                                        var e = this,
                                          n = this.state,
                                          r = n.extraClass,
                                          a = n.html,
                                          i = n.ariaProps,
                                          s = n.disable,
                                          l = this.getTooltipContent(),
                                          c = this.isEmptyTip(l),
                                          u =
                                            "__react_component_tooltip" +
                                            (!this.state.show || s || c
                                              ? ""
                                              : " show") +
                                            (this.state.border
                                              ? " border"
                                              : "") +
                                            " place-".concat(this.state.place) +
                                            " type-".concat(this.state.type) +
                                            (this.props.delayUpdate
                                              ? " allow_hover"
                                              : "") +
                                            (this.props.clickable
                                              ? " allow_click"
                                              : ""),
                                          d = this.props.wrapper;
                                        t.supportedWrappers.indexOf(d) < 0 &&
                                          (d = t.defaultProps.wrapper);
                                        var h = [u, r]
                                          .filter(Boolean)
                                          .join(" ");
                                        return a
                                          ? o.a.createElement(
                                              d,
                                              P(
                                                {
                                                  className: h,
                                                  id: this.props.id,
                                                  ref: function (t) {
                                                    return (e.tooltipRef = t);
                                                  },
                                                },
                                                i,
                                                {
                                                  "data-id": "tooltip",
                                                  dangerouslySetInnerHTML: {
                                                    __html: l,
                                                  },
                                                }
                                              )
                                            )
                                          : o.a.createElement(
                                              d,
                                              P(
                                                {
                                                  className: h,
                                                  id: this.props.id,
                                                },
                                                i,
                                                {
                                                  ref: function (t) {
                                                    return (e.tooltipRef = t);
                                                  },
                                                  "data-id": "tooltip",
                                                }
                                              ),
                                              l
                                            );
                                      },
                                    },
                                  ]) && L(n.prototype, r),
                                  a && L(n, a),
                                  t
                                );
                              })(o.a.Component)),
                              C(ne, "propTypes", {
                                children: W.any,
                                place: W.string,
                                type: W.string,
                                effect: W.string,
                                offset: W.object,
                                multiline: W.bool,
                                border: W.bool,
                                insecure: W.bool,
                                class: W.string,
                                className: W.string,
                                id: W.string,
                                html: W.bool,
                                delayHide: W.number,
                                delayUpdate: W.number,
                                delayShow: W.number,
                                event: W.string,
                                eventOff: W.string,
                                watchWindow: W.bool,
                                isCapture: W.bool,
                                globalEventOff: W.string,
                                getContent: W.any,
                                afterShow: W.func,
                                afterHide: W.func,
                                overridePosition: W.func,
                                disable: W.bool,
                                scrollHide: W.bool,
                                resizeHide: W.bool,
                                wrapper: W.string,
                                bodyMode: W.bool,
                                possibleCustomEvents: W.string,
                                possibleCustomEventsOff: W.string,
                                clickable: W.bool,
                              }),
                              C(ne, "defaultProps", {
                                insecure: !0,
                                resizeHide: !0,
                                wrapper: "div",
                                clickable: !1,
                              }),
                              C(ne, "supportedWrappers", ["div", "span"]),
                              C(ne, "displayName", "ReactTooltip"),
                              ((de = te = re).prototype.bindRemovalTracker = function () {
                                var e = this,
                                  t =
                                    window.MutationObserver ||
                                    window.WebKitMutationObserver ||
                                    window.MozMutationObserver;
                                if (null != t) {
                                  var n = new t(function (t) {
                                    for (var n = 0; n < t.length; n++)
                                      for (
                                        var r = t[n], o = 0;
                                        o < r.removedNodes.length;
                                        o++
                                      )
                                        if (
                                          r.removedNodes[o] ===
                                          e.state.currentTarget
                                        )
                                          return void e.hideTooltip();
                                  });
                                  n.observe(window.document, {
                                    childList: !0,
                                    subtree: !0,
                                  }),
                                    (this.removalTracker = n);
                                }
                              }),
                              (te =
                                void (de.prototype.unbindRemovalTracker = function () {
                                  this.removalTracker &&
                                    (this.removalTracker.disconnect(),
                                    (this.removalTracker = null));
                                }) || te))
                            ) || te)
                        ) || te)
                    ) || te)
                ) || te)
            ) || te)
        ) || te;
    function pe(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var fe = (function (e) {
      h()(a, e);
      var t,
        n,
        r = pe(a);
      function a(e) {
        var t;
        return (
          l()(this, a),
          ((t = r.call(this, e)).state = {
            loading: !1,
            logs: [],
            downloadLogLink: "",
          }),
          t
        );
      }
      return (
        u()(a, [
          {
            key: "componentDidMount",
            value: function () {
              this.displayLogs(),
                this.context.setSelectedTabOnCookies("manager");
            },
          },
          {
            key: "displayLogs",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set("action", "display_log"),
                              this.setState({ loading: !0 }),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            200 == (n = e.sent).status &&
                              (this.setState({ loading: !1 }),
                              n.data.success &&
                                this.setState({ logs: n.data.info }));
                          case 7:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "downloadLog",
            value:
              ((t = y()(
                v.a.mark(function e(t, n) {
                  var r, o;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (r = new FormData()).set(
                                "action",
                                "download_log"
                              ),
                              r.set("filename", t),
                              r.set("revision", n),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: r,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            (o = e.sent).data.success
                              ? (this.setState({
                                  downloadLogLink: o.data.log_link,
                                }),
                                document.getElementById("downloadFile").click())
                              : D.toast.error("Log Doesn't Exists");
                          case 8:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function (e, n) {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this,
                t = { padding: "20px 0 10px 0" };
              return o.a.createElement(
                "div",
                { className: "col-sm-8 col-md-9" },
                o.a.createElement(
                  "div",
                  { className: "setting-tab-pane setting-tabpane5 active" },
                  o.a.createElement(
                    "div",
                    { className: "row justify-content-center" },
                    o.a.createElement(
                      "div",
                      { className: "col-md-12 mt20" },
                      o.a.createElement(
                        "h1",
                        { className: "main-heading" },
                        "Log Info"
                      ),
                      o.a.createElement(
                        "table",
                        { className: "table log-manager" },
                        o.a.createElement(
                          "thead",
                          null,
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "th",
                              null,
                              this.context.language.FileName
                            ),
                            o.a.createElement(
                              "th",
                              null,
                              this.context.language.Module
                            ),
                            o.a.createElement(
                              "th",
                              null,
                              this.context.language.Inserted
                            ),
                            o.a.createElement(
                              "th",
                              null,
                              this.context.language.Updated
                            ),
                            o.a.createElement(
                              "th",
                              null,
                              this.context.language.Skipped
                            ),
                            o.a.createElement(
                              "th",
                              { className: "text-center" },
                              this.context.language.Download
                            )
                          )
                        ),
                        o.a.createElement(
                          "tbody",
                          null,
                          this.state.loading
                            ? o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement(
                                  "td",
                                  { colspan: "6" },
                                  o.a.createElement("div", {
                                    className: "loader loader-1 mt15",
                                  })
                                )
                              )
                            : 0 !== this.state.logs.length
                            ? this.state.logs.map(function (n, r) {
                                return o.a.createElement(
                                  "tr",
                                  { style: t },
                                  o.a.createElement(
                                    "td",
                                    null,
                                    n.filename,
                                    " ",
                                    o.a.createElement("br", null),
                                    o.a.createElement(
                                      "b",
                                      null,
                                      e.context.language.Revision,
                                      ": "
                                    ),
                                    " ",
                                    n.revision
                                  ),
                                  o.a.createElement("td", null, n.module),
                                  o.a.createElement("td", null, n.inserted),
                                  o.a.createElement("td", null, n.updated),
                                  o.a.createElement("td", null, n.skipped),
                                  o.a.createElement(
                                    "td",
                                    { className: "text-center" },
                                    o.a.createElement(
                                      "div",
                                      { className: "download-icon" },
                                      o.a.createElement(
                                        "a",
                                        {
                                          className:
                                            "action-icon text-success text-bold",
                                          onClick: function () {
                                            e.downloadLog(
                                              n.filename,
                                              n.revision
                                            );
                                          },
                                          "data-tip": "Download",
                                        },
                                        o.a.createElement("i", {
                                          className: "csv-icon-download-cloud",
                                        })
                                      )
                                    ),
                                    o.a.createElement(he, { effect: "solid" })
                                  )
                                );
                              })
                            : o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement(
                                  "td",
                                  { colspan: "6" },
                                  o.a.createElement(
                                    "span",
                                    { className: "text-danger" },
                                    this.context.language.NoLogRecordFound
                                  )
                                )
                              )
                        )
                      ),
                      o.a.createElement(
                        "a",
                        {
                          id: "downloadFile",
                          className: "hidden",
                          href: this.state.downloadLogLink,
                          download: !0,
                        },
                        this.context.language.Download
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        a
      );
    })(r.Component);
    M()(fe, "contextType", E);
    var me = fe;
    function ge(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var _e = (function (e) {
      h()(n, e);
      var t = ge(n);
      function n(e) {
        var r;
        return l()(this, n), ((r = t.call(this, e)).state = { loading: !1 }), r;
      }
      return (
        u()(n, [
          {
            key: "render",
            value: function () {
              return o.a.createElement(
                "div",
                { className: "col-md-9", style: { height: "300px" } },
                o.a.createElement(
                  "div",
                  { className: "row justify-content-center h-100" },
                  o.a.createElement(
                    "div",
                    {
                      className: "align-self-center upgrade-to-pro text-center",
                    },
                    o.a.createElement("img", {
                      src: "".concat(
                        window.wpr_object.imagePath,
                        "upgrade-to-pro.png"
                      ),
                    }),
                    o.a.createElement(
                      "p",
                      null,
                      "This feature is available in",
                      " ",
                      o.a.createElement(
                        "a",
                        {
                          target: "_blank",
                          className: "csv-link",
                          href:
                            "https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=csv_importer_free&utm_medium=wordpress",
                        },
                        "WP Ultimate CSV Importer",
                        " "
                      ),
                      " ",
                      "Premium Version"
                    ),
                    o.a.createElement(
                      "a",
                      {
                        target: "_blank",
                        href:
                          "https://www.smackcoders.com/contact-us.html?utm_source=plugin&utm_campaign=csv_importer_free&utm_medium=wordpress",
                        className: "smack-btn btn-default ",
                      },
                      "Contact us for Presale Enquiry"
                    )
                  )
                )
              );
            },
          },
        ]),
        n
      );
    })(r.Component);
    function ve(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var be = (function (e) {
      h()(n, e);
      var t = ve(n);
      function n(e) {
        var r;
        return (
          l()(this, n),
          ((r = t.call(this, e)).state = {
            fileManagerTabActive: "",
            templatesTabActive: "",
            logManagerTabActive: "active",
            showTemplateEditMapping: !1,
          }),
          r
        );
      }
      return (
        u()(n, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("manager");
            },
          },
          {
            key: "showManagerOptions",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "setting-tab-section col-sm-4 col-md-3" },
                o.a.createElement(
                  "ul",
                  { className: "setting-tab" },
                  o.a.createElement(
                    "li",
                    {
                      "data-setting": "setting-tabpane5",
                      className: "setting-tab-list ".concat(
                        this.state.logManagerTabActive
                      ),
                      onClick: function (t) {
                        e.setState({
                          logManagerTabActive: "active",
                          fileManagerTabActive: "",
                          smartScheduleTabActive: "",
                          scheduledExportTabActive: "",
                          templatesTabActive: "",
                          mediaReportTabActive: "",
                        });
                      },
                    },
                    o.a.createElement("i", {
                      className: "csv-icon-layers",
                      "aria-hidden": "true",
                    }),
                    this.context.language.LogManager
                  ),
                  o.a.createElement(
                    "li",
                    {
                      "data-setting": "setting-tabpane1",
                      className: "setting-tab-list pro-tag ".concat(
                        this.state.fileManagerTabActive
                      ),
                      onClick: function (t) {
                        e.setState({
                          fileManagerTabActive: "active",
                          smartScheduleTabActive: "",
                          scheduledExportTabActive: "",
                          templatesTabActive: "",
                          logManagerTabActive: "",
                          mediaReportTabActive: "",
                        });
                      },
                    },
                    o.a.createElement("i", {
                      className: "csv-icon-hard-drive1",
                      "aria-hidden": "true",
                    }),
                    this.context.language.FileManager
                  ),
                  o.a.createElement(
                    "li",
                    {
                      "data-setting": "setting-tabpane4",
                      className: "setting-tab-list pro-tag ".concat(
                        this.state.templatesTabActive
                      ),
                      onClick: function (t) {
                        e.setState({
                          templatesTabActive: "active",
                          fileManagerTabActive: "",
                          smartScheduleTabActive: "",
                          scheduledExportTabActive: "",
                          logManagerTabActive: "",
                          mediaReportTabActive: "",
                        });
                      },
                    },
                    o.a.createElement("i", {
                      className: "csv-icon-layout",
                      "aria-hidden": "true",
                    }),
                    this.context.language.Templates
                  )
                )
              );
            },
          },
          {
            key: "render",
            value: function () {
              return o.a.createElement(
                o.a.Fragment,
                null,
                o.a.createElement(
                  "div",
                  { id: "mapping-accordion", className: "container" },
                  o.a.createElement(
                    "div",
                    { className: "card csv-importer-panel mt20" },
                    o.a.createElement(
                      "div",
                      { className: "row" },
                      this.showManagerOptions(),
                      "active" === this.state.fileManagerTabActive ||
                        "active" === this.state.templatesTabActive
                        ? o.a.createElement(_e, null)
                        : "active" === this.state.logManagerTabActive
                        ? o.a.createElement(me, null)
                        : o.a.createElement(
                            "div",
                            null,
                            this.context.language.NotSelectedAnyTab
                          )
                    )
                  )
                )
              );
            },
          },
        ]),
        n
      );
    })(r.Component);
    M()(be, "contextType", E);
    var ye = be;
    function we(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function ke(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = null != arguments[t] ? arguments[t] : {};
        t % 2
          ? we(Object(n), !0).forEach(function (t) {
              M()(e, t, n[t]);
            })
          : Object.getOwnPropertyDescriptors
          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
          : we(Object(n)).forEach(function (t) {
              Object.defineProperty(
                e,
                t,
                Object.getOwnPropertyDescriptor(n, t)
              );
            });
      }
      return e;
    }
    function xe(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Me = (function (e) {
      h()(i, e);
      var t,
        n,
        r,
        a = xe(i);
      function i(e) {
        var t;
        return (
          l()(this, i),
          ((t = a.call(this, e)).state = {
            customPostType: [],
            taxonomies: [],
            moduleRecordCount: "0 Data",
            customPostOption: "",
            taxonomiesOption: "",
          }),
          (t.moduleName = ""),
          (t.getModuleData = t.getModuleData.bind(k()(t))),
          t
        );
      }
      return (
        u()(i, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.activateExporter &&
                (this.getPostTypes(), this.getTaxonomies());
            },
          },
          {
            key: "getPostTypes",
            value:
              ((r = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "get_post_types"
                              ),
                              this.setState({ loading: !0 }),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            200 == (n = e.sent).status &&
                              (this.setState({ loading: !1 }),
                              this.setState({
                                customPostType: n.data.custom_post_type,
                              }));
                          case 7:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return r.apply(this, arguments);
              }),
          },
          {
            key: "getTaxonomies",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "get_taxonomies"
                              ),
                              this.setState({ loading: !0 }),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            200 == (n = e.sent).status &&
                              (this.setState({ loading: !1 }),
                              this.setState({ taxonomies: n.data.taxonomies }));
                          case 7:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "getModuleData",
            value:
              ((t = y()(
                v.a.mark(function e(t) {
                  var n,
                    r,
                    o,
                    a,
                    i = arguments;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (n = i.length > 1 && void 0 !== i[1] && i[1]),
                              (r = t.target.id),
                              n && ((r = t.target.name), t.target.id),
                              ("Taxonomies" !== r && "CustomPosts" !== r) || !n
                                ? this.context.setExportInfo(
                                    ke(
                                      ke({}, this.context.exportInfo),
                                      {},
                                      { moduleName: r }
                                    )
                                  )
                                : this.context.setExportInfo(
                                    ke(
                                      ke({}, this.context.exportInfo),
                                      {},
                                      {
                                        optionalType: t.target.value,
                                        moduleName: r,
                                      }
                                    )
                                  ),
                              (o = new FormData()).set(
                                "action",
                                "total_records"
                              ),
                              o.set("module", r),
                              ("Taxonomies" !== r && "CustomPosts" !== r) ||
                                !n ||
                                o.set("optionalType", t.target.value),
                              this.setState({ loading: !0 }),
                              (e.prev = 9),
                              (e.next = 12),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: o,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 12:
                            200 === (a = e.sent).status &&
                              (this.setState({ loading: !1 }),
                              "" != r
                                ? this.setState({
                                    moduleRecordCount: a.data + " " + r,
                                  })
                                : this.setState({
                                    moduleRecordCount: a.data + " Data",
                                  }),
                              a.data > 0
                                ? (document.getElementById(
                                    "exportbtn"
                                  ).disabled = !1)
                                : (document.getElementById(
                                    "exportbtn"
                                  ).disabled = !0)),
                              (e.next = 19);
                            break;
                          case 16:
                            (e.prev = 16),
                              (e.t0 = e.catch(9)),
                              console.log(e.t0);
                          case 19:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[9, 16]]
                  );
                })
              )),
              function (e) {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "getExportOption",
            value: function () {
              "" != this.context.exportInfo.exportModule
                ? this.context.setShowExport("export-filter")
                : D.toast.error("Select any module to export");
            },
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { id: "mapping-accordion", className: "container" },
                o.a.createElement(
                  "div",
                  { className: "row" },
                  o.a.createElement(
                    "div",
                    { className: "col-md-9" },
                    o.a.createElement(
                      "div",
                      { className: "card csv-importer-panel mt20" },
                      this.context.activateExporter
                        ? o.a.createElement(
                            "div",
                            { className: "row export" },
                            o.a.createElement(
                              "h1",
                              {
                                class:
                                  "main-heading pr15 pl15 col-md-12 mt20 mb30",
                              },
                              this.context.language
                                .Selectyourmoduletoexportthedata,
                              " ",
                              o.a.createElement(
                                "div",
                                { className: "float-right" },
                                this.state.loading
                                  ? o.a.createElement("div", {
                                      className: "btn ajax-loader loading",
                                      style: {
                                        marginTop: "-5px",
                                        marginRight: "-25px",
                                      },
                                    })
                                  : "",
                                " ",
                                o.a.createElement(
                                  "span",
                                  { className: "exportData" },
                                  this.state.moduleRecordCount,
                                  " Found"
                                )
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "export-section col-md-6" },
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  name: "export",
                                  id: "Posts",
                                  onClick: this.getModuleData,
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "Posts" },
                                  "Posts"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  name: "export",
                                  id: "Pages",
                                  onClick: this.getModuleData,
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "Pages" },
                                  "Pages"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group row ml0" },
                                o.a.createElement(
                                  "div",
                                  { className: "col-md-4 pl0" },
                                  o.a.createElement("input", {
                                    type: "radio",
                                    name: "export",
                                    id: "CustomPosts",
                                    onClick: this.getModuleData,
                                  }),
                                  o.a.createElement(
                                    "label",
                                    { for: "CustomPosts" },
                                    "Custom Posts"
                                  )
                                ),
                                o.a.createElement(
                                  "div",
                                  {
                                    className: "col-md-8",
                                    style: {
                                      display:
                                        "CustomPosts" ===
                                        this.context.exportInfo.moduleName
                                          ? "block"
                                          : "none",
                                    },
                                  },
                                  o.a.createElement(
                                    "select",
                                    M()(
                                      {
                                        className: "select form-control",
                                        id: "customPostOption",
                                        name: "CustomPosts",
                                        onChange: function (t) {
                                          e.setState({
                                            customPostOption: t.target.value,
                                          }),
                                            e.getModuleData(t, !0);
                                        },
                                      },
                                      "id",
                                      ""
                                    ),
                                    o.a.createElement(
                                      "option",
                                      { value: "" },
                                      "-select-"
                                    ),
                                    this.state.customPostType.map(function (
                                      e,
                                      t
                                    ) {
                                      return o.a.createElement(
                                        "option",
                                        { value: e },
                                        e
                                      );
                                    })
                                  )
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  name: "export",
                                  id: "Tags",
                                  onClick: this.getModuleData,
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "Tags" },
                                  "Post Tags"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  name: "export",
                                  id: "Categories",
                                  onClick: this.getModuleData,
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "Categories" },
                                  "Post Categories"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  name: "export",
                                  id: "Users",
                                  onClick: this.getModuleData,
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "Users" },
                                  "Users"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group row ml0" },
                                o.a.createElement(
                                  "div",
                                  {
                                    className: "col-md-4 pl0",
                                    style: { opacity: 0.6 },
                                  },
                                  o.a.createElement("input", {
                                    class: "form-check-input",
                                    type: "radio",
                                    name: "export",
                                    id: "Taxonomies",
                                    checked: "",
                                    onClick: function () {
                                      D.toast.info(
                                        "Please Upgrade to PRO for this Feature"
                                      );
                                    },
                                  }),
                                  o.a.createElement(
                                    "label",
                                    {
                                      class: "form-check-label",
                                      for: "Taxonomies",
                                    },
                                    "Taxonomies"
                                  )
                                ),
                                o.a.createElement(
                                  "div",
                                  {
                                    className: "col-md-8",
                                    style: {
                                      display:
                                        "Taxonomies" ===
                                        this.context.exportInfo.moduleName
                                          ? "block"
                                          : "none",
                                    },
                                  },
                                  o.a.createElement(
                                    "select",
                                    M()(
                                      {
                                        className: "select form-control",
                                        id: "taxonomiesOption",
                                        name: "Taxonomies",
                                        checked: "",
                                        onChange: function (t) {
                                          e.setState({
                                            taxonomiesOption: t.target.value,
                                          }),
                                            e.getModuleData(t, !0);
                                        },
                                      },
                                      "id",
                                      ""
                                    ),
                                    o.a.createElement(
                                      "option",
                                      { value: "" },
                                      "-select-"
                                    ),
                                    this.state.taxonomies.map(function (e, t) {
                                      return o.a.createElement(
                                        "option",
                                        { value: e },
                                        e
                                      );
                                    })
                                  )
                                )
                              )
                            ),
                            o.a.createElement(
                              "div",
                              {
                                className:
                                  "export-section offset-md-1 col-md-5",
                              },
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  name: "export",
                                  id: "Comments",
                                  onClick: this.getModuleData,
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "Comments" },
                                  "Comments"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  name: "export",
                                  id: "CustomerReviews",
                                  onClick: this.getModuleData,
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "CustomerReviews" },
                                  "Customer Reviews"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  name: "export",
                                  id: "WooCommerce",
                                  onClick: this.getModuleData,
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "WooCommerce" },
                                  "WooCommerce Products"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                {
                                  className: "form-group",
                                  style: { opacity: 0.6 },
                                },
                                o.a.createElement("input", {
                                  class: "form-check-input",
                                  type: "radio",
                                  name: "export",
                                  id: "WooCommerceCoupons",
                                  checked: "",
                                  onClick: function () {
                                    D.toast.info(
                                      "Please Upgrade to PRO for this Feature"
                                    );
                                  },
                                }),
                                o.a.createElement(
                                  "label",
                                  {
                                    class: "form-check-label",
                                    for: "WooCommerceCoupons",
                                  },
                                  "WooCommerce Coupons"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                {
                                  className: "form-group",
                                  style: { opacity: 0.6 },
                                },
                                o.a.createElement("input", {
                                  class: "form-check-input",
                                  type: "radio",
                                  name: "export",
                                  id: "WooCommerceRefunds",
                                  checked: "",
                                  onClick: function () {
                                    D.toast.info(
                                      "Please Upgrade to PRO for this Feature"
                                    );
                                  },
                                }),
                                o.a.createElement(
                                  "label",
                                  {
                                    class: "form-check-label",
                                    for: "WooCommerceRefunds",
                                  },
                                  "WooCommerce Refunds"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                {
                                  className: "form-group",
                                  style: { opacity: 0.6 },
                                },
                                o.a.createElement("input", {
                                  class: "form-check-input",
                                  type: "radio",
                                  name: "export",
                                  id: "WooCommerceVariations",
                                  checked: "",
                                  onClick: function () {
                                    D.toast.info(
                                      "Please Upgrade to PRO for this Feature"
                                    );
                                  },
                                }),
                                o.a.createElement(
                                  "label",
                                  {
                                    class: "form-check-label",
                                    for: "WooCommerceVariations",
                                  },
                                  "WooCommerce Variations"
                                )
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "col-md-12 mt45" },
                              o.a.createElement(
                                "div",
                                { className: "float-right" },
                                o.a.createElement("input", {
                                  type: "button",
                                  className: "smack-btn smack-btn-primary mb20",
                                  id: "exportbtn",
                                  onClick: function (t) {
                                    e.getExportOption();
                                  },
                                  value: this.context.language.Continue,
                                })
                              )
                            )
                          )
                        : o.a.createElement(
                            "div",
                            {
                              className:
                                "d-flex justify-content-center align-items-center",
                              style: { minHeight: "300px" },
                            },
                            o.a.createElement(
                              "div",
                              { className: "text-center" },
                              o.a.createElement(
                                "h5",
                                {
                                  style: { color: "#2D3748" },
                                  className: "col-md-8 offset-md-2 mb30",
                                },
                                "Please install the Ultimate Exporter to export all your WordPress data as CSV."
                              ),
                              o.a.createElement(
                                "a",
                                {
                                  href:
                                    "https://wordpress.org/plugins/wp-ultimate-exporter/",
                                  className: "smack-btn smack-btn-secondary",
                                  target: "_blank",
                                },
                                "Click here to install"
                              )
                            )
                          )
                    )
                  ),
                  o.a.createElement(
                    "div",
                    { className: "col-md-3" },
                    o.a.createElement(
                      "div",
                      { className: "cardbanner m110 border-rad mt20" },
                      o.a.createElement(
                        "div",
                        { className: "mt0 mb10 mr10 ml10" },
                        o.a.createElement(
                          "h2",
                          { className: "title" },
                          "Ultimate Exporter Pro"
                        ),
                        o.a.createElement("hr", { className: "divider" }),
                        o.a.createElement(
                          "b",
                          { className: "title" },
                          " Export filtered data "
                        ),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            { className: "ml30" },
                            "Lets you get only required data with the different advanced filters"
                          )
                        ),
                        o.a.createElement(
                          "b",
                          { className: "title" },
                          "Backup in editable format"
                        ),
                        o.a.createElement(
                          "div",
                          null,
                          o.a.createElement(
                            "ul",
                            null,
                            o.a.createElement(
                              "li",
                              { className: "ml30" },
                              "Backup in 4 different file formats like CSV, XML, JSON, XLS."
                            )
                          )
                        ),
                        o.a.createElement(
                          "b",
                          { className: "title" },
                          "Auto Scheduled Backups"
                        ),
                        o.a.createElement(
                          "div",
                          null,
                          o.a.createElement(
                            "ul",
                            null,
                            o.a.createElement(
                              "li",
                              { className: "ml30" },
                              "Scheduled export helps backup as editable text file format in regular interval."
                            )
                          )
                        ),
                        o.a.createElement(
                          "a",
                          {
                            className: "basic-button border-rad",
                            href:
                              "https://www.smackcoders.com/ultimate-exporter.html?utm_source=plugin&utm_campaign=promo_widget&utm_medium=exporter",
                            target: "blank",
                          },
                          "BUY NOW!"
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        i
      );
    })(r.Component);
    M()(Me, "contextType", E);
    var Ee = n(41),
      Te = n.n(Ee);
    n(229);
    function Se(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function De(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = null != arguments[t] ? arguments[t] : {};
        t % 2
          ? Se(Object(n), !0).forEach(function (t) {
              M()(e, t, n[t]);
            })
          : Object.getOwnPropertyDescriptors
          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
          : Se(Object(n)).forEach(function (t) {
              Object.defineProperty(
                e,
                t,
                Object.getOwnPropertyDescriptor(n, t)
              );
            });
      }
      return e;
    }
    function Le(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Ce = n(3),
      Pe = (function (e) {
        h()(a, e);
        var t,
          n,
          r = Le(a);
        function a(e) {
          var t;
          return (
            l()(this, a),
            ((t = r.call(this, e)).state = {
              loading: !1,
              exportName: "",
              exportType: "csv",
              authorList: [],
              startDate: new Date(),
              endDate: new Date(),
              conditions: {
                specific_period: { is_check: !1 },
                specific_authors: { is_check: !1, author: "" },
              },
              enableSchedule: !1,
              offset: 0,
              exportProgress: "0",
              totalExportRecord: 0,
              stopWatch: "00:00:00",
              activeDowloadTab: !1,
              exportSuccess: !1,
              showDownloadBtn: !1,
              exportedFileUrl: "",
            }),
            (t.stopSeconds = 0),
            (t.stopMinutes = 0),
            (t.stopHours = 0),
            (t.handleChangeStart = t.handleChangeStart.bind(k()(t))),
            (t.handleChangeEnd = t.handleChangeEnd.bind(k()(t))),
            (t.onInputChange = t.onInputChange.bind(k()(t))),
            t
          );
        }
        return (
          u()(a, [
            {
              key: "onInputChange",
              value: function (e) {
                this.setState(
                  M()({}, e.target.name, e.target.value),
                  function () {}
                );
              },
            },
            {
              key: "handleChangeStart",
              value: function (e) {
                this.setState({ startDate: e });
              },
            },
            {
              key: "handleChangeEnd",
              value: function (e) {
                this.setState({ endDate: e });
              },
            },
            {
              key: "componentDidMount",
              value: function () {
                this.getAuthors(),
                  setInterval(
                    function () {
                      !this.state.exportSuccess &&
                        this.state.activeDowloadTab &&
                        this.stopWatch();
                    }.bind(this),
                    1e3
                  );
              },
            },
            {
              key: "getAuthors",
              value:
                ((n = y()(
                  v.a.mark(function e() {
                    var t, n, r, o, a;
                    return v.a.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (
                                (t = new FormData()).set(
                                  "action",
                                  "get_authors"
                                ),
                                this.setState({ loading: !0 }),
                                (e.next = 5),
                                S()({
                                  method: "post",
                                  url: ajaxurl,
                                  data: t,
                                  config: {
                                    headers: {
                                      "Content-Type": "multipart/form-data",
                                    },
                                  },
                                })
                              );
                            case 5:
                              if (
                                ((n = e.sent),
                                this.setState({ loading: !1 }),
                                200 == n.status)
                              ) {
                                for (
                                  r = n.data.user_id.length, o = [], a = 0;
                                  a < r;
                                  a++
                                )
                                  o.push({
                                    user_id: n.data.user_id[a],
                                    user_name: n.data.user_name[a],
                                  });
                                this.setState({ authorList: o });
                              }
                            case 8:
                            case "end":
                              return e.stop();
                          }
                      },
                      e,
                      this
                    );
                  })
                )),
                function () {
                  return n.apply(this, arguments);
                }),
            },
            {
              key: "handleCheck",
              value: function (e) {
                var t =
                    arguments.length > 1 &&
                    void 0 !== arguments[1] &&
                    arguments[1],
                  n =
                    arguments.length > 2 &&
                    void 0 !== arguments[2] &&
                    arguments[2],
                  r =
                    arguments.length > 3 && void 0 !== arguments[3]
                      ? arguments[3]
                      : "";
                t &&
                  ((this.state.conditions[e.target.name].is_check =
                    e.target.checked),
                  this.setState(
                    { conditions: this.state.conditions },
                    function () {}
                  )),
                  t ||
                    n ||
                    this.setState(M()({}, e.target.name, e.target.checked)),
                  n &&
                    (e.target.checked
                      ? (this.state.eventExclusion.exclusion_headers.header[
                          r
                        ] = !0)
                      : delete this.state.eventExclusion.exclusion_headers
                          .header[r],
                    this.setState(
                      De(
                        De({}, this.state.eventExclusion),
                        {},
                        { eventExclusion: this.state.eventExclusion }
                      ),
                      function () {}
                    ));
              },
            },
            {
              key: "handleChange",
              value: function (e) {
                var t = e.target.id;
                "specific_authors" === t &&
                  (this.state.conditions.specific_authors.author =
                    e.target.value),
                  "specific_status" === t &&
                    (this.state.conditions.specific_status.status =
                      e.target.value),
                  "delimiter" === t &&
                    (this.state.conditions.delimiter.delimiter =
                      e.target.value),
                  "other_delimiter" === t &&
                    (this.state.conditions.delimiter.optional_delimiter =
                      e.target.value),
                  this.setState(
                    De(
                      De({}, this.state.conditions),
                      {},
                      { conditions: this.state.conditions }
                    ),
                    function () {}
                  );
              },
            },
            {
              key: "stopWatch",
              value: function () {
                this.stopSeconds++,
                  this.stopSeconds >= 60 &&
                    ((this.stopSeconds = 0),
                    this.stopMinutes++,
                    this.stopMinutes >= 60 &&
                      ((this.stopMinutes = 0), this.stopHours++)),
                  this.stopHours.toString().length < 2 &&
                    (this.stopHours = "0" + this.stopHours),
                  this.stopMinutes.toString().length < 2 &&
                    (this.stopMinutes = "0" + this.stopMinutes),
                  this.stopSeconds.toString().length < 2 &&
                    (this.stopSeconds = "0" + this.stopSeconds);
                var e =
                  this.stopHours +
                  ":" +
                  this.stopMinutes +
                  ":" +
                  this.stopSeconds;
                this.setState({ stopWatch: e });
              },
            },
            {
              key: "exportConfiguration",
              value:
                ((t = y()(
                  v.a.mark(function e() {
                    var t, n, r, o, a, i, s, l;
                    return v.a.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              if (
                                (((t = this.state
                                  .conditions).specific_period.from = Ce(
                                  this.state.startDate
                                ).format("YYYY-MM-DD")),
                                (t.specific_period.to = Ce(
                                  this.state.endDate
                                ).format("YYYY-MM-DD")),
                                "" !=
                                  document.getElementById("export-file-name")
                                    .value)
                              ) {
                                e.next = 7;
                                break;
                              }
                              return (
                                D.toast.error("Please Type Export File Name"),
                                document
                                  .getElementById("export-file-name")
                                  .focus(),
                                e.abrupt("return")
                              );
                            case 7:
                              return (
                                this.setState({ activeDowloadTab: !0 }),
                                (n = new FormData()).set(
                                  "action",
                                  "parse_data"
                                ),
                                n.set(
                                  "module",
                                  this.context.exportInfo.moduleName
                                ),
                                ("Taxonomies" !==
                                  (r = this.context.exportInfo.moduleName) &&
                                  "CustomPosts" !== r) ||
                                  n.set(
                                    "optionalType",
                                    this.context.exportInfo.optionalType
                                  ),
                                n.set("fileName", this.state.exportName),
                                n.set("exp_type", this.state.exportType),
                                n.set("conditions", JSON.stringify(t)),
                                n.set("export_mode", "normal"),
                                n.set("offset", this.state.offset),
                                this.setState({ loading: !0 }),
                                (e.next = 21),
                                S()({
                                  method: "post",
                                  url: ajaxurl,
                                  data: n,
                                  config: {
                                    headers: {
                                      "Content-Type": "multipart/form-data",
                                    },
                                  },
                                })
                              );
                            case 21:
                              (o = e.sent),
                                (a = o.data),
                                200 == o.status &&
                                  ((i = o.data.new_offset),
                                  (s = o.data.total_row_count) < i
                                    ? this.setState({ offset: s })
                                    : this.setState({
                                        offset: o.data.new_offset,
                                      }),
                                  this.setState({
                                    exportSuccess: o.data.success,
                                    totalExportRecord: a.total_row_count,
                                  }),
                                  (l =
                                    (a.new_offset / a.total_row_count) * 100),
                                  (l = Math.round(l)) > 0.9 &&
                                    this.setState({ exportProgress: l }),
                                  l >= 100 &&
                                    this.setState({ exportProgress: "100" }),
                                  o.data.success
                                    ? this.setState({
                                        exportedFileUrl: o.data.exported_file,
                                        showDownloadBtn: !0,
                                      })
                                    : this.exportConfiguration());
                            case 24:
                            case "end":
                              return e.stop();
                          }
                      },
                      e,
                      this
                    );
                  })
                )),
                function () {
                  return t.apply(this, arguments);
                }),
            },
            {
              key: "render",
              value: function () {
                var e = this,
                  t = this.state,
                  n = (t.showSplitRecord, t.conditions),
                  r = t.exportName,
                  a = (t.exportType, t.authorList),
                  i = { width: this.state.exportProgress + "%" },
                  s = {
                    display: this.state.showDownloadBtn ? "block" : "none",
                  },
                  l = { opacity: 0.6 };
                return o.a.createElement(
                  "div",
                  { id: "mapping-accordion", className: "container" },
                  o.a.createElement(
                    "div",
                    {
                      className: "card csv-importer-panel mt20 pt30 pb30 ".concat(
                        this.state.activeDowloadTab ? "d-none" : "d-block"
                      ),
                    },
                    o.a.createElement(
                      "div",
                      { className: "row export" },
                      o.a.createElement(
                        "h1",
                        {
                          className:
                            "main-heading pr15 pl15 mb20 mt20 col-md-12",
                        },
                        this.context.language.Toexportdatabasedonthefilters
                      ),
                      o.a.createElement(
                        "div",
                        { className: "col-md-12" },
                        o.a.createElement(
                          "div",
                          {
                            className:
                              "form-group col-md-5 row export_file_name",
                          },
                          o.a.createElement(
                            "label",
                            null,
                            this.context.language.ExportFileName
                          ),
                          o.a.createElement("input", {
                            type: "text",
                            className: "form-control",
                            id: "export-file-name",
                            value: r,
                            onChange: function (t) {
                              e.setState({ exportName: t.target.value });
                            },
                          }),
                          o.a.createElement(
                            "span",
                            { className: "export_file_type" },
                            ".",
                            this.state.exportType
                          )
                        ),
                        o.a.createElement("hr", null),
                        o.a.createElement(
                          "h3",
                          { className: "main-heading" },
                          this.context.language.AdvancedFilters
                        ),
                        o.a.createElement(
                          "div",
                          { className: "advanced-filter" },
                          o.a.createElement(
                            "div",
                            { className: "checkbox" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "",
                              name: "specific_period",
                              id: "export_specific_period",
                              onClick: function (t) {
                                e.handleCheck(t, !0);
                              },
                            }),
                            o.a.createElement(
                              "label",
                              { for: "export_specific_period" },
                              this.context.language
                                .Exportdataforthespecificperiod
                            )
                          ),
                          o.a.createElement(
                            "div",
                            {
                              className: "row bg-gray-section pl15 pr15 mt15",
                              style: {
                                display: n.specific_period.is_check
                                  ? "block"
                                  : "none",
                              },
                            },
                            o.a.createElement(
                              "div",
                              { className: "row" },
                              o.a.createElement(
                                "div",
                                { className: "form-group col-md-5" },
                                o.a.createElement(
                                  "label",
                                  { for: "" },
                                  this.context.language.StartFrom
                                ),
                                o.a.createElement(Te.a, {
                                  className: "form-control",
                                  selected: this.state.startDate,
                                  onChange: this.handleChangeStart,
                                }),
                                o.a.createElement("i", {
                                  className: "csv-icon-calendar2 input-icon",
                                })
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group col-md-5" },
                                o.a.createElement(
                                  "label",
                                  { for: "" },
                                  this.context.language.EndTo,
                                  " "
                                ),
                                o.a.createElement(Te.a, {
                                  className: "form-control",
                                  selected: this.state.endDate,
                                  onChange: this.handleChangeEnd,
                                }),
                                o.a.createElement("i", {
                                  className: "csv-icon-calendar2 input-icon",
                                })
                              )
                            )
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "advanced-filter" },
                          o.a.createElement(
                            "div",
                            { className: "checkbox" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "",
                              name: "specific_authors",
                              id: "export_specific_author",
                              onClick: function (t) {
                                e.handleCheck(t, !0);
                              },
                            }),
                            o.a.createElement(
                              "label",
                              { for: "export_specific_author" },
                              this.context.language.Exportdatabyspecificauthors
                            )
                          ),
                          o.a.createElement(
                            "div",
                            {
                              className: "row mt20 bg-gray-section",
                              style: {
                                display: n.specific_authors.is_check
                                  ? "block"
                                  : "none",
                              },
                            },
                            o.a.createElement(
                              "div",
                              { className: "form-group col-md-5" },
                              o.a.createElement(
                                "label",
                                { className: "advanced" },
                                this.context.language.Authors
                              ),
                              o.a.createElement(
                                "select",
                                {
                                  className: "select form-control",
                                  id: "specific_authors",
                                  value: n.specific_authors.author,
                                  onChange: function (t) {
                                    e.handleChange(t);
                                  },
                                },
                                o.a.createElement(
                                  "option",
                                  { value: "" },
                                  "Select Author"
                                ),
                                a.map(function (e) {
                                  return o.a.createElement(
                                    "option",
                                    { value: e.user_id },
                                    e.user_name
                                  );
                                })
                              )
                            )
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "advanced-filter", style: l },
                          o.a.createElement(
                            "div",
                            { className: "checkbox" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "",
                              name: "specific_status",
                              id: "export_specific_status",
                              checked: this.state.enableSchedule,
                              onClick: function () {
                                D.toast.info(
                                  "Please upgrade to PRO for Export data with the specific status"
                                );
                              },
                            }),
                            o.a.createElement(
                              "label",
                              { for: "export_specific_status" },
                              this.context.language
                                .Exportdatawiththespecificstatus
                            )
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "advanced-filter", style: l },
                          o.a.createElement(
                            "div",
                            { className: "checkbox" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "",
                              name: "delimiter",
                              id: "export_auto_delimiter",
                              checked: this.state.enableSchedule,
                              onClick: function () {
                                D.toast.info(
                                  "Please upgrade to PRO for Export data with auto delimiters"
                                );
                              },
                            }),
                            o.a.createElement(
                              "label",
                              { for: "export_auto_delimiter" },
                              this.context.language.Exportdatawithautodelimiters
                            )
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "advanced-filter", style: l },
                          o.a.createElement(
                            "div",
                            { className: "checkbox" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              name: "setInclusions",
                              id: "export_specific_inclusion",
                              checked: this.state.enableSchedule,
                              onClick: function () {
                                D.toast.info(
                                  "Please upgrade to PRO for Export data based on specific Inclusions "
                                );
                              },
                            }),
                            o.a.createElement(
                              "label",
                              {
                                for: "export_specific_inclusion",
                                className: "",
                              },
                              this.context.language
                                .ExportdatabasedonspecificInclusions
                            )
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "advanced-filter", style: l },
                          o.a.createElement(
                            "div",
                            { className: "checkbox" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              id: "export_this_schedule",
                              checked: this.state.enableSchedule,
                              onClick: function () {
                                D.toast.info(
                                  "Please upgrade to PRO for Export Schedule"
                                );
                              },
                            }),
                            o.a.createElement(
                              "label",
                              { for: "export_this_schedule" },
                              this.context.language
                                .DoyouwanttoSchedulethisExport
                            )
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "form-group mt30 clearfix" },
                          o.a.createElement(
                            "div",
                            { className: "float-left" },
                            o.a.createElement(
                              "button",
                              {
                                type: "button",
                                className: "smack-btn btn-default",
                                onClick: function () {
                                  e.context.setShowExport("export-module");
                                },
                              },
                              this.context.language.Back
                            )
                          ),
                          o.a.createElement(
                            "div",
                            { className: "float-right" },
                            o.a.createElement(
                              "button",
                              {
                                type: "button",
                                className: "smack-btn smack-btn-primary",
                                onClick: function () {
                                  e.exportConfiguration();
                                },
                              },
                              this.context.language.Export
                            )
                          )
                        )
                      )
                    )
                  ),
                  o.a.createElement(
                    "div",
                    {
                      className: "card csv-importer-panel mt20 pt30 pb30 ".concat(
                        this.state.activeDowloadTab ? "d-block" : "d-none"
                      ),
                    },
                    o.a.createElement(
                      "div",
                      { className: "card-body" },
                      o.a.createElement(
                        "div",
                        { className: "importing-details" },
                        o.a.createElement(
                          "div",
                          { className: "progress-status" },
                          this.state.exportSuccess &&
                            this.state.exportProgress > "99"
                            ? "In Progress"
                            : ""
                        ),
                        o.a.createElement(
                          "div",
                          { className: "import-progress" },
                          o.a.createElement(
                            "div",
                            { className: "progress-loading" },
                            this.state.exportProgress + "%",
                            " ",
                            this.context.language.Completed
                          ),
                          o.a.createElement(
                            "div",
                            { className: "progress-timing" },
                            o.a.createElement("i", {
                              className: "csv-icon-schedule",
                            }),
                            " ",
                            this.state.stopWatch
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "progress mt10 mb40" },
                        o.a.createElement("div", {
                          className: "progress-bar",
                          role: "progressbar",
                          style: i,
                          "aria-valuenow": "10",
                          "aria-valuemin": "0",
                          "aria-valuemax": "100",
                        })
                      ),
                      o.a.createElement(
                        "p",
                        { className: "float-none" },
                        this.context.language.DataExported,
                        " :",
                        " ",
                        o.a.createElement("span", null, this.state.offset),
                        " /",
                        " ",
                        this.state.totalExportRecord,
                        " "
                      ),
                      o.a.createElement(
                        "div",
                        { className: "form-group mt30 clearfix" },
                        o.a.createElement(
                          "div",
                          { className: "float-right" },
                          o.a.createElement(
                            "a",
                            {
                              href: this.state.exportedFileUrl,
                              style: s,
                              download: !0,
                              className: "smack-btn smack-btn-primary",
                              onClick: function () {
                                window.location.href;
                              },
                            },
                            o.a.createElement("i", {
                              className: "csv-icon-download-cloud mr10",
                            }),
                            this.context.language.Download
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "float-left" },
                          o.a.createElement(
                            "button",
                            {
                              type: "button",
                              className: "smack-btn btn-default",
                              onClick: function () {
                                e.context.setShowExport("export-module");
                              },
                            },
                            this.context.language.Back
                          )
                        )
                      )
                    )
                  )
                );
              },
            },
          ]),
          a
        );
      })(r.Component);
    function Oe(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(Pe, "contextType", E);
    var Ne = (function (e) {
      h()(n, e);
      var t = Oe(n);
      function n() {
        return l()(this, n), t.apply(this, arguments);
      }
      return (
        u()(n, [
          {
            key: "render",
            value: function () {
              return "export-module" === this.context.showExport
                ? o.a.createElement(Me, null)
                : "export-filter" === this.context.showExport
                ? o.a.createElement(Pe, null)
                : void 0;
            },
          },
        ]),
        n
      );
    })(r.Component);
    function Ae(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(Ne, "contextType", E);
    var Ie = (function (e) {
      h()(a, e);
      var t,
        n,
        r = Ae(a);
      function a(e) {
        var t;
        return (
          l()(this, a),
          ((t = r.call(this, e)).state = {
            loading: !1,
            drop_table: !1,
            send_log_email: !1,
            send_user_password: !1,
            woocomattr: !1,
            unmatchedrow: !1,
            CMB2metafields: "",
          }),
          t
        );
      }
      return (
        u()(a, [
          {
            key: "componentDidMount",
            value: function () {
              this.displayGeneralSettings(),
                this.context.setSelectedTabOnCookies("settings");
            },
          },
          {
            key: "displayGeneralSettings",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set("action", "get_options"),
                              this.setState({ loading: !0 }),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            (n = e.sent),
                              this.setState({ loading: !1 }),
                              void 0 !== n.data.options && n.data.options,
                              this.setState(n.data.options),
                              200 == n.status && n.data.success;
                          case 10:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "updateGeneralSetting",
            value:
              ((t = y()(
                v.a.mark(function e(t, n) {
                  var r, o;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              "drop_table" === n
                                ? this.setState({
                                    drop_table: t.target.checked,
                                  })
                                : "send_log_email" === n
                                ? this.setState({
                                    send_log_email: t.target.checked,
                                  })
                                : "send_user_password" === n
                                ? this.setState({
                                    send_user_password: t.target.checked,
                                  })
                                : "woocomattr" === n
                                ? this.setState({
                                    woocomattr: t.target.checked,
                                  })
                                : "unmatchedrow" === n &&
                                  this.setState({
                                    unmatchedrow: t.target.checked,
                                  }),
                              (r = new FormData()).set(
                                "action",
                                "settings_options"
                              ),
                              r.set("option", n),
                              "cmb2" === n
                                ? r.set("value", t.target.value)
                                : r.set("value", t.target.checked),
                              this.setState({ loading: !0 }),
                              (e.next = 8),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: r,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 8:
                            (o = e.sent),
                              this.setState({ loading: !1 }),
                              200 == o.status &&
                                o.data.success &&
                                D.toast.success(
                                  "Settings Successfully Updated"
                                );
                          case 11:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function (e, n) {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "col-sm-8 col-md-9" },
                o.a.createElement(
                  "div",
                  { className: "setting-tab-pane setting-tabpane1 active" },
                  o.a.createElement(
                    "div",
                    { className: "row justify-content-center" },
                    o.a.createElement(
                      "div",
                      { className: "col-md-10 mt20" },
                      o.a.createElement(
                        "h1",
                        { className: "main-heading" },
                        this.context.language.GeneralSettings,
                        " "
                      ),
                      o.a.createElement(
                        "div",
                        { className: "form-group row" },
                        o.a.createElement(
                          "div",
                          {
                            className: "col-xs-12 col-sm-8 col-md-8 nopadding",
                          },
                          o.a.createElement(
                            "h4",
                            null,
                            this.context.language.DropTable
                          ),
                          o.a.createElement(
                            "small",
                            { className: "form-text text-muted" },
                            this.context.language
                              .Ifenabledplugindeactivationwillremoveplugindatathiscannotberestored
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "col-xs-12 col-sm-4 col-md-3" },
                          o.a.createElement(
                            "div",
                            { className: "form-group col-md-6 fieldset" },
                            o.a.createElement(
                              "h1",
                              null,
                              this.state.drop_table
                            ),
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "form-control",
                              id: "drop-table-check",
                              checked: this.state.drop_table,
                              onChange: function (t) {
                                e.updateGeneralSetting(t, "drop_table");
                              },
                            }),
                            o.a.createElement(
                              "label",
                              {
                                className: "switch-ios",
                                for: "drop-table-check",
                              },
                              o.a.createElement("i", null)
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "form-group row" },
                        o.a.createElement(
                          "div",
                          {
                            className: "col-xs-12 col-sm-8 col-md-8 nopadding",
                          },
                          o.a.createElement(
                            "h4",
                            null,
                            this.context.language.Scheduledlogmails
                          ),
                          o.a.createElement(
                            "small",
                            { className: "form-text text-muted" },
                            this.context.language.Enabletogetscheduledlogmails
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "col-xs-12 col-sm-4 col-md-3" },
                          o.a.createElement(
                            "div",
                            { className: "form-group col-md-6 fieldset" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "ios-switch",
                              onClick: function () {
                                e.setState({ send_log_email: !1 }, function () {
                                  D.toast.info(
                                    "Please Upgrade to PRO for this Feature"
                                  );
                                });
                              },
                              checked: this.state.send_log_email,
                              id: "scheduled-log-check",
                            }),
                            o.a.createElement(
                              "label",
                              {
                                className: "switch-ios",
                                for: "scheduled-log-check",
                              },
                              o.a.createElement("i", null)
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "form-group row" },
                        o.a.createElement(
                          "div",
                          {
                            className: "col-xs-12 col-sm-8 col-md-8 nopadding",
                          },
                          o.a.createElement(
                            "h4",
                            null,
                            this.context.language.Sendpasswordtouser
                          ),
                          o.a.createElement(
                            "small",
                            { className: "form-text text-muted" },
                            this.context.language
                              .Enabletosendpasswordinformationthroughemail
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "col-xs-12 col-sm-4 col-md-3" },
                          o.a.createElement(
                            "div",
                            { className: "form-group col-md-6 fieldset" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "ios-switch",
                              checked: this.state.send_user_password,
                              onClick: function (t) {
                                e.updateGeneralSetting(t, "send_user_password");
                              },
                              id: "send-information",
                            }),
                            o.a.createElement(
                              "label",
                              {
                                className: "switch-ios",
                                for: "send-information",
                              },
                              o.a.createElement("i", null)
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "form-group row" },
                        o.a.createElement(
                          "div",
                          {
                            className: "col-xs-12 col-sm-8 col-md-8 nopadding",
                          },
                          o.a.createElement(
                            "h4",
                            null,
                            this.context.language.WoocommerceCustomattribute
                          ),
                          o.a.createElement(
                            "small",
                            { className: "form-text text-muted" },
                            this.context.language
                              .Enablestoregisterwoocommercecustomattribute
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "col-xs-12 col-sm-4 col-md-3" },
                          o.a.createElement(
                            "div",
                            { className: "form-group col-md-6 fieldset" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "ios-switch",
                              checked: this.state.send_log_email,
                              onClick: function () {
                                e.setState({ send_log_email: !1 }, function () {
                                  D.toast.info(
                                    "Please Upgrade to PRO for this Feature"
                                  );
                                });
                              },
                              id: "register-woocommerce",
                            }),
                            o.a.createElement(
                              "label",
                              {
                                className: "switch-ios",
                                for: "register-woocommerce",
                              },
                              o.a.createElement("i", null)
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "form-group row" },
                        o.a.createElement(
                          "div",
                          {
                            className: "col-xs-12 col-sm-8 col-md-8 nopadding",
                          },
                          o.a.createElement(
                            "h4",
                            null,
                            this.context.language.DeletedatafromWordPress
                          ),
                          o.a.createElement(
                            "small",
                            { className: "form-text text-muted" },
                            this.context.language
                              .EnabletodeletetheitemsnotpresentinCSVXMLfile
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "col-xs-12 col-sm-4 col-md-3" },
                          o.a.createElement(
                            "div",
                            { className: "form-group col-md-6 fieldset" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "ios-switch",
                              checked: this.state.unmatchedrow,
                              onClick: function (t) {
                                e.updateGeneralSetting(t, "unmatchedrow");
                              },
                              id: "unmatchedrow",
                            }),
                            o.a.createElement(
                              "label",
                              { className: "switch-ios", for: "unmatchedrow" },
                              o.a.createElement("i", null)
                            )
                          )
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        a
      );
    })(r.Component);
    M()(Ie, "contextType", E);
    var Re = Ie;
    function Ye(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var je = (function (e) {
      h()(i, e);
      var t,
        n,
        r,
        a = Ye(i);
      function i(e) {
        var t;
        return (
          l()(this, i),
          ((t = a.call(this, e)).state = {
            loading: !1,
            securityData: [],
            author_editor_access: !1,
          }),
          t
        );
      }
      return (
        u()(i, [
          {
            key: "componentDidMount",
            value: function () {
              this.displaySecurityPerformance(),
                this.displayGeneralSettings(),
                this.context.setSelectedTabOnCookies("settings");
            },
          },
          {
            key: "displayGeneralSettings",
            value:
              ((r = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set("action", "get_options"),
                              this.setState({ loading: !0 }),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            (n = e.sent),
                              this.setState({ loading: !1 }),
                              this.setState(n.data.options);
                          case 8:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return r.apply(this, arguments);
              }),
          },
          {
            key: "updateGeneralSetting",
            value:
              ((n = y()(
                v.a.mark(function e(t) {
                  var n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              this.setState({
                                author_editor_access: t.target.checked,
                              }),
                              (n = new FormData()).set(
                                "action",
                                "settings_options"
                              ),
                              n.set("option", "author_editor_access"),
                              n.set("value", t.target.checked),
                              this.setState({ loading: !0 }),
                              (e.next = 8),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: n,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 8:
                            (r = e.sent),
                              this.setState({ loading: !1 }),
                              200 == r.status &&
                                r.data.success &&
                                D.toast.success(
                                  "Settings Successfully Updated"
                                );
                          case 11:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function (e) {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "displaySecurityPerformance",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "security_performance"
                              ),
                              this.setState({ loading: !0 }),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            (n = e.sent),
                              this.setState({ loading: !1 }),
                              200 == n.status &&
                                this.setState({ securityData: n.data });
                          case 8:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "col-sm-8 col-md-9" },
                o.a.createElement(
                  "div",
                  { className: "setting-tab-pane setting-tabpane3 active" },
                  o.a.createElement(
                    "div",
                    { className: "row justify-content-center" },
                    o.a.createElement(
                      "div",
                      { className: "col-md-10 mt20" },
                      o.a.createElement(
                        "h1",
                        { className: "main-heading pb5" },
                        this.context.language.SecurityandPerformance
                      ),
                      o.a.createElement(
                        "div",
                        { className: "form-group row mt30" },
                        o.a.createElement(
                          "div",
                          {
                            className: "col-xs-12 col-sm-7 col-md-7 nopadding",
                          },
                          o.a.createElement(
                            "h4",
                            null,
                            this.context.language.Allowauthorseditorstoimport
                          ),
                          o.a.createElement(
                            "small",
                            { className: "form-text text-muted" },
                            this.context.language
                              .Thisenablesauthorseditorstoimport
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "col-xs-12 col-sm-4 col-md-3 " },
                          o.a.createElement(
                            "div",
                            { className: "form-group col-md-6 fieldset" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              className: "ios-switch",
                              checked: this.state.author_editor_access,
                              onClick: function (t) {
                                e.updateGeneralSetting(t);
                              },
                              id: "two",
                            }),
                            o.a.createElement(
                              "label",
                              { className: "switch-ios inline", for: "two" },
                              o.a.createElement("i", null)
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "table",
                        { className: "table table-striped" },
                        o.a.createElement(
                          "tbody",
                          null,
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "th",
                              { colspan: "3" },
                              o.a.createElement(
                                "h5",
                                { className: "text-capitalize" },
                                this.context.language
                                  .MinimumrequiredphpinivaluesIniconfiguredvalues
                              )
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "th",
                              null,
                              o.a.createElement(
                                "label",
                                null,
                                this.context.language.Variables
                              )
                            ),
                            o.a.createElement(
                              "th",
                              { className: "ini-configured-values" },
                              o.a.createElement(
                                "label",
                                null,
                                this.context.language.SystemValues
                              )
                            ),
                            o.a.createElement(
                              "th",
                              { className: "min-requirement-values" },
                              o.a.createElement(
                                "label",
                                null,
                                this.context.language.MinimumRequirements
                              )
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "post_max_size "),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.post_max_size
                                ? this.state.securityData.post_max_size
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "10M"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "auto_append_file"),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              " ",
                              "" !== this.state.securityData.auto_append_file
                                ? this.state.securityData.auto_append_file
                                : "-",
                              " "
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "-"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "auto_prepend_file "),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.auto_prepend_file
                                ? this.state.securityData.auto_prepend_file
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "-"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              null,
                              "upload_max_filesize "
                            ),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.upload_max_filesize
                                ? this.state.securityData.upload_max_filesize
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "2M"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "file_uploads "),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.file_uploads
                                ? this.state.securityData.file_uploads
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "On"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "allow_url_fopen "),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.allow_url_fopen
                                ? this.state.securityData.allow_url_fopen
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "On"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              null,
                              "max_execution_time "
                            ),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.max_execution_time
                                ? this.state.securityData.max_execution_time
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "3000"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "max_input_time "),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.max_input_time
                                ? this.state.securityData.max_input_time
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "3000"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "max_input_vars "),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.max_input_vars
                                ? this.state.securityData.max_input_vars
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "3000"
                            )
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "memory_limit "),
                            o.a.createElement(
                              "td",
                              { className: "ini-configured-values" },
                              "" !== this.state.securityData.wp_memory_limit
                                ? this.state.securityData.wp_memory_limit
                                : "-"
                            ),
                            o.a.createElement(
                              "td",
                              { className: "min-requirement-values" },
                              "99M"
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "h4",
                        { class: "mt30" },
                        this.context.language
                          .RequiredtoenabledisableLoadersExtentionsandmodules
                      ),
                      o.a.createElement(
                        "table",
                        { className: "table table-striped" },
                        o.a.createElement(
                          "tbody",
                          null,
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "PDO"),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.PDO
                                ? this.state.securityData.PDO
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement("td", null, "Curl "),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.curl
                                ? this.state.securityData.curl
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          )
                        )
                      ),
                      o.a.createElement(
                        "h4",
                        { className: "mt30" },
                        this.context.language.DebugInformation
                      ),
                      o.a.createElement(
                        "table",
                        { className: "table table-striped" },
                        o.a.createElement(
                          "tbody",
                          null,
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              {
                                className: "debug-info-name",
                                style: { width: "25%" },
                              },
                              "WordPress Version"
                            ),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.wp_version
                                ? this.state.securityData.wp_version
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "debug-info-name" },
                              "PHP Version"
                            ),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.php_version
                                ? this.state.securityData.php_version
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "debug-info-name" },
                              "MySQL Version"
                            ),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.db_version
                                ? this.state.securityData.db_version
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "debug-info-name" },
                              "Server SoftWare"
                            ),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.server_software
                                ? this.state.securityData.server_software
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "debug-info-name" },
                              "Your User Agent"
                            ),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.http_agent
                                ? this.state.securityData.http_agent
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "debug-info-name" },
                              "WPDB Prefix"
                            ),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.db_prefix
                                ? this.state.securityData.db_prefix
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "debug-info-name" },
                              "WP Multisite Mode"
                            ),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.wp_multi_site
                                ? this.state.securityData.wp_multi_site
                                : "-",
                              " "
                            ),
                            o.a.createElement("td", null)
                          ),
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "debug-info-name" },
                              "WP Memory Limit"
                            ),
                            o.a.createElement(
                              "td",
                              null,
                              "" !== this.state.securityData.wp_memory_limit
                                ? this.state.securityData.wp_memory_limit
                                : "-"
                            ),
                            o.a.createElement("td", null)
                          )
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        i
      );
    })(r.Component);
    M()(je, "contextType", E);
    var Fe = je;
    function He(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var ze = (function (e) {
      h()(n, e);
      var t = He(n);
      function n() {
        return l()(this, n), t.apply(this, arguments);
      }
      return (
        u()(n, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("settings");
            },
          },
          {
            key: "render",
            value: function () {
              return o.a.createElement(
                "div",
                { className: "col-sm-8 col-md-9" },
                o.a.createElement(
                  "div",
                  { className: "setting-tab-pane setting-tabpane4 active" },
                  o.a.createElement(
                    "div",
                    { className: "row justify-content-center" },
                    o.a.createElement(
                      "div",
                      { className: "col-md-10 mt20" },
                      o.a.createElement(
                        "h1",
                        { className: "main-heading" },
                        this.context.language.Documentation
                      ),
                      o.a.createElement(
                        "div",
                        {
                          className: "embed-responsive embed-responsive-16by9",
                        },
                        o.a.createElement("iframe", {
                          className: "embed-responsive-item",
                          src: "https://www.youtube.com/embed/GbDlQcbnNJY",
                          allowfullscreen: !0,
                        })
                      ),
                      o.a.createElement(
                        "h1",
                        { className: "main-heading" },
                        this.context.language.SmackcodersGuidelines
                      ),
                      o.a.createElement(
                        "ul",
                        { className: "list-unstyled" },
                        o.a.createElement(
                          "li",
                          null,
                          o.a.createElement(
                            "a",
                            { href: "https://goo.gl/OAVF9u", target: "_blank" },
                            this.context.language.DevelopmentNews,
                            " "
                          )
                        ),
                        o.a.createElement(
                          "li",
                          null,
                          o.a.createElement(
                            "a",
                            { href: "https://goo.gl/kKWPui", target: "_blank" },
                            this.context.language.WhatsNew,
                            " "
                          )
                        ),
                        o.a.createElement(
                          "li",
                          null,
                          o.a.createElement(
                            "a",
                            { href: "https://goo.gl/hyU5G1", target: "_blank" },
                            this.context.language.Documentation,
                            " "
                          )
                        ),
                        o.a.createElement(
                          "li",
                          null,
                          o.a.createElement(
                            "a",
                            {
                              href:
                                "https://www.youtube.com/watch?v=48soc8Wu4zs&feature=youtu.be",
                              target: "_blank",
                            },
                            this.context.language.YoutubeChannel,
                            " "
                          )
                        ),
                        o.a.createElement(
                          "li",
                          null,
                          o.a.createElement(
                            "a",
                            { href: "https://goo.gl/smw3WV", target: "_blank" },
                            this.context.language.OtherWordPressPlugins,
                            " "
                          )
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        n
      );
    })(r.Component);
    M()(ze, "contextType", E);
    var Be = ze;
    function Ue(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Ve = (function (e) {
      h()(n, e);
      var t = Ue(n);
      function n(e) {
        var r;
        return (
          l()(this, n),
          ((r = t.call(this, e)).state = {
            generalSettingsTabActive: "active",
            databaseOptimizationTabActive: "",
            securityAndPerformanceTabActive: "",
            documentationTabActive: "",
          }),
          r
        );
      }
      return (
        u()(n, [
          {
            key: "showSettingsOptions",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "setting-tab-section col-sm-4 col-md-3" },
                o.a.createElement(
                  "ul",
                  { className: "setting-tab" },
                  o.a.createElement(
                    "li",
                    {
                      "data-setting": "setting-tabpane1",
                      className: "setting-tab-list ".concat(
                        this.state.generalSettingsTabActive
                      ),
                      onClick: function (t) {
                        e.setState({
                          generalSettingsTabActive: "active",
                          databaseOptimizationTabActive: "",
                          securityAndPerformanceTabActive: "",
                          documentationTabActive: "",
                          mediaReportTabActive: "",
                        });
                      },
                    },
                    o.a.createElement("i", {
                      className: "csv-icon-cog",
                      "aria-hidden": "true",
                    }),
                    this.context.language.GeneralSettings
                  ),
                  o.a.createElement(
                    "li",
                    {
                      "data-setting": "setting-tabpane2",
                      className: "setting-tab-list pro-tag ".concat(
                        this.state.databaseOptimizationTabActive
                      ),
                      onClick: function (t) {
                        e.setState({
                          databaseOptimizationTabActive: "active",
                          generalSettingsTabActive: "",
                          securityAndPerformanceTabActive: "",
                          documentationTabActive: "",
                          mediaReportTabActive: "",
                        });
                      },
                    },
                    o.a.createElement("i", {
                      className: "csv-icon-database",
                      "aria-hidden": "true",
                    }),
                    this.context.language.DatabaseOptimization
                  ),
                  o.a.createElement(
                    "li",
                    {
                      "data-setting": "setting-tabpane3",
                      className: "setting-tab-list ".concat(
                        this.state.securityAndPerformanceTabActive
                      ),
                      onClick: function (t) {
                        e.setState({
                          securityAndPerformanceTabActive: "active",
                          generalSettingsTabActive: "",
                          databaseOptimizationTabActive: "",
                          documentationTabActive: "",
                          mediaReportTabActive: "",
                        });
                      },
                    },
                    o.a.createElement("i", {
                      className: "csv-icon-settings1",
                      "aria-hidden": "true",
                    }),
                    " ",
                    this.context.language.SecurityandPerformance
                  ),
                  o.a.createElement(
                    "li",
                    {
                      "data-setting": "setting-tabpane4",
                      className: "setting-tab-list ".concat(
                        this.state.documentationTabActive
                      ),
                      onClick: function (t) {
                        e.setState({
                          documentationTabActive: "active",
                          generalSettingsTabActive: "",
                          databaseOptimizationTabActive: "",
                          securityAndPerformanceTabActive: "",
                          mediaReportTabActive: "",
                        });
                      },
                    },
                    o.a.createElement("i", {
                      className: "csv-icon-file-text",
                      "aria-hidden": "true",
                    }),
                    " ",
                    this.context.language.Documentation
                  )
                )
              );
            },
          },
          {
            key: "render",
            value: function () {
              return o.a.createElement(
                "div",
                { id: "mapping-accordion", className: "container" },
                o.a.createElement(
                  "div",
                  { className: "card csv-importer-panel mt20" },
                  o.a.createElement(
                    "div",
                    { className: "row" },
                    this.showSettingsOptions(),
                    "active" === this.state.generalSettingsTabActive
                      ? o.a.createElement(Re, null)
                      : "active" === this.state.databaseOptimizationTabActive
                      ? o.a.createElement(_e, null)
                      : "active" === this.state.securityAndPerformanceTabActive
                      ? o.a.createElement(Fe, null)
                      : "active" === this.state.documentationTabActive
                      ? o.a.createElement(Be, null)
                      : o.a.createElement(
                          "div",
                          null,
                          " ",
                          this.context.language.NotSelectedAnyTab,
                          " "
                        )
                  )
                )
              );
            },
          },
        ]),
        n
      );
    })(r.Component);
    M()(Ve, "contextType", E);
    var We = Ve,
      qe = o.a.createContext();
    function Ge(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Je = (function (e) {
      h()(r, e);
      var t,
        n = Ge(r);
      function r(e) {
        var t;
        return (
          l()(this, r),
          ((t = n.call(this, e)).state = {
            setExistingBucket: "",
            rewriteUrl: !1,
            loading: !1,
          }),
          t
        );
      }
      return (
        u()(r, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("storage"),
                this.checkContextValues();
            },
          },
          {
            key: "checkContextValues",
            value: function () {
              console.log("rewrite_url", this.context.rewriteUrl),
                console.log("offloadmedia", this.context.offloadMedia),
                console.log("copyfiles", this.context.statusCopyFiles);
            },
          },
          {
            key: "updateStorageSetting",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "storage_settings_details"
                              ),
                              t.set("copyfiles", this.context.statusCopyFiles),
                              t.set("yearpath", this.context.statusYearPath),
                              t.set("offloadmedia", this.context.offloadMedia),
                              t.set("rewriteurl", this.context.rewriteUrl),
                              t.set(
                                "statusPath",
                                this.context.statusPathSettings
                              ),
                              t.set(
                                "cnamePath",
                                this.context.cnamePathSettings
                              ),
                              t.set("path", this.context.mediaPath),
                              t.set("cname", this.context.domainPath),
                              t.set(
                                "provider",
                                this.context.chosenServiceProvider
                              ),
                              t.set(
                                "updatedbucket",
                                this.context.selectedBucketsName
                              ),
                              this.setState({ loading: !0 }),
                              (e.next = 15),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 15:
                            200 == e.sent.status &&
                              (this.setState({ loading: !1 }),
                              console.log("rewrite", this.context.rewriteUrl),
                              D.toast.success("Settings Successfully Updated"));
                          case 17:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return (
                console.log("text", this.context.chosenServiceProvider),
                this.state.backToselectbucket
                  ? o.a.createElement($e, null)
                  : o.a.createElement(
                      "div",
                      { className: "wp-ultimate-csv-importer" },
                      o.a.createElement(
                        "div",
                        { id: "mapping-accordian", className: "container" },
                        o.a.createElement(
                          "div",
                          { className: "card csv-importer-panel mt20" },
                          o.a.createElement(
                            "div",
                            { className: "row" },
                            o.a.createElement(
                              "div",
                              { className: "col-sm-12 col-md-12" },
                              o.a.createElement(
                                "div",
                                {
                                  className:
                                    "setting-tab-pane setting-tabpane1 active",
                                },
                                o.a.createElement(
                                  "div",
                                  { className: "row justify-content-center" },
                                  o.a.createElement(
                                    "div",
                                    { className: "col-md-10 mt20" },
                                    o.a.createElement(
                                      "h1",
                                      { className: "main-heading" },
                                      "Storage Settings"
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement(
                                          "h4",
                                          null,
                                          "Providers"
                                        )
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        this.context.chosenServiceProvider
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement("h4", null, "Origin")
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        o.a.createElement(
                                          "a",
                                          {
                                            href: this.context.endPoints,
                                            target: "_blank",
                                          },
                                          " ",
                                          this.context.endPoints
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement("h4", null, "Edge")
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        o.a.createElement(
                                          "a",
                                          {
                                            href: this.context.edgePoints,
                                            target: "_blank",
                                          },
                                          " ",
                                          this.context.edgePoints
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement("h4", null, "Buckets")
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        this.context.selectedBucketsName,
                                        "  ",
                                        o.a.createElement(
                                          "a",
                                          {
                                            href: "",
                                            "data-toggle": "modal",
                                            "data-target": "#myModal",
                                          },
                                          o.a.createElement("u", null, "change")
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement(
                                          "h4",
                                          null,
                                          "Copy Files to Bucket"
                                        ),
                                        o.a.createElement(
                                          "small",
                                          { className: "form-text text-muted" },
                                          "When a file is uploaded to the Media Library, copy it to the bucket"
                                        )
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        o.a.createElement(
                                          "div",
                                          { className: "form-group fieldset" },
                                          o.a.createElement("input", {
                                            id: "copyFiles",
                                            className: "form-control",
                                            type: "checkbox",
                                            checked: this.context
                                              .statusCopyFiles,
                                            onClick: function (t) {
                                              (e.context.statusCopyFiles =
                                                t.target.checked),
                                                e.context.setStatusCopyFile(
                                                  e.context.statusCopyFiles
                                                );
                                            },
                                          }),
                                          o.a.createElement(
                                            "label",
                                            {
                                              className: "switch-ios",
                                              for: "copyFiles",
                                            },
                                            o.a.createElement("i", null)
                                          )
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement(
                                          "h4",
                                          null,
                                          "Year/Month"
                                        ),
                                        o.a.createElement(
                                          "small",
                                          { className: "form-text text-muted" },
                                          "Add the Year/Month to the end of the path above just like WordPress does by default."
                                        )
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        o.a.createElement(
                                          "div",
                                          { className: "form-group fieldset" },
                                          o.a.createElement("input", {
                                            id: "yearpath",
                                            className: "form-control",
                                            type: "checkbox",
                                            checked: this.context
                                              .statusYearPath,
                                            onClick: function (t) {
                                              (e.context.statusYearPath =
                                                t.target.checked),
                                                e.context.setStatusYearPath(
                                                  e.context.statusYearPath
                                                );
                                            },
                                          }),
                                          o.a.createElement(
                                            "label",
                                            {
                                              className: "switch-ios",
                                              for: "yearpath",
                                            },
                                            o.a.createElement("i", null)
                                          )
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement(
                                          "h4",
                                          null,
                                          "Offload Media Images"
                                        ),
                                        o.a.createElement(
                                          "small",
                                          { className: "form-text text-muted" },
                                          "Copy all Media images to Digital Ocean"
                                        )
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        o.a.createElement(
                                          "div",
                                          { className: "form-group fieldset" },
                                          o.a.createElement("input", {
                                            id: "offloadmedia",
                                            className: "form-control",
                                            type: "checkbox",
                                            checked: this.context.offloadMedia,
                                            onClick: function (t) {
                                              (e.context.offloadMedia =
                                                t.target.checked),
                                                e.context.setOffloadMedia(
                                                  e.context.offloadMedia
                                                );
                                            },
                                          }),
                                          o.a.createElement(
                                            "label",
                                            {
                                              className: "switch-ios",
                                              for: "offloadmedia",
                                            },
                                            o.a.createElement("i", null)
                                          )
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement(
                                          "h4",
                                          null,
                                          "Rewrite image URL"
                                        ),
                                        o.a.createElement(
                                          "small",
                                          { className: "form-text text-muted" },
                                          "Url loaded from Digital Ocean"
                                        )
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        o.a.createElement(
                                          "div",
                                          { className: "form-group fieldset" },
                                          o.a.createElement("input", {
                                            id: "rewriteurl",
                                            className: "form-control",
                                            type: "checkbox",
                                            checked: this.context.rewriteUrl,
                                            onClick: function (t) {
                                              (e.context.rewriteUrl =
                                                t.target.checked),
                                                e.context.setRewriteUrl(
                                                  e.context.rewriteUrl
                                                ),
                                                console.log(
                                                  e.context.rewriteUrl
                                                );
                                            },
                                          }),
                                          o.a.createElement(
                                            "label",
                                            {
                                              className: "switch-ios",
                                              for: "rewriteurl",
                                            },
                                            o.a.createElement("i", null)
                                          )
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement("h4", null, "Path"),
                                        o.a.createElement(
                                          "small",
                                          { className: "form-text text-muted" },
                                          'By default the path is the same as your local WordPress files Don\'t start any path with a forward slash, or it will give "SignatureDoesNotMatch" exception'
                                        ),
                                        this.context.statusPathSettings
                                          ? o.a.createElement(
                                              "div",
                                              { className: "new-bucket" },
                                              o.a.createElement(
                                                "div",
                                                {
                                                  className: "tab-content",
                                                  id: "v-pills-tabContent",
                                                },
                                                o.a.createElement(
                                                  "div",
                                                  {
                                                    className:
                                                      "form-group col-md-12",
                                                  },
                                                  o.a.createElement("input", {
                                                    id: "path",
                                                    className: "form-control",
                                                    type: "text",
                                                    placeholder: "path",
                                                    value: this.context
                                                      .mediaPath,
                                                    onChange: function (t) {
                                                      console.log(
                                                        "path",
                                                        t.target.value
                                                      ),
                                                        (e.context.mediaPath =
                                                          t.target.value),
                                                        e.context.setMediaPath(
                                                          e.context.mediaPath
                                                        );
                                                    },
                                                  })
                                                )
                                              )
                                            )
                                          : ""
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        o.a.createElement(
                                          "div",
                                          { className: "form-group fieldset" },
                                          o.a.createElement("input", {
                                            id: "path",
                                            className: "form-control",
                                            type: "checkbox",
                                            checked: this.context
                                              .statusPathSettings,
                                            onClick: function (t) {
                                              console.log(
                                                "Checked Status",
                                                t.target.checked
                                              ),
                                                (e.context.statusPathSettings =
                                                  t.target.checked),
                                                e.context.setStatusPathSettings(
                                                  e.context.statusPathSettings
                                                );
                                            },
                                          }),
                                          o.a.createElement(
                                            "label",
                                            {
                                              className: "switch-ios",
                                              for: "path",
                                            },
                                            o.a.createElement("i", null)
                                          )
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group row" },
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-5" },
                                        o.a.createElement(
                                          "h4",
                                          null,
                                          "CNAME(Custom Domain)"
                                        ),
                                        o.a.createElement(
                                          "small",
                                          { className: "form-text text-muted" },
                                          "We strongly recommend you configure a CDN to point at your bucket and configure a subdomain of localhost to point at your CDN."
                                        ),
                                        o.a.createElement(
                                          "div",
                                          { className: "new-bucket" },
                                          this.context.cnamePathSettings
                                            ? o.a.createElement(
                                                "div",
                                                {
                                                  className: "tab-content",
                                                  id: "v-pills-tabContent",
                                                },
                                                o.a.createElement(
                                                  "div",
                                                  {
                                                    className:
                                                      "form-group col-md-12",
                                                  },
                                                  o.a.createElement("input", {
                                                    id: "path",
                                                    className: "form-control",
                                                    type: "text",
                                                    placeholder: "cname",
                                                    value: this.context
                                                      .domainPath,
                                                    onChange: function (t) {
                                                      console.log(
                                                        "path",
                                                        t.target.value
                                                      ),
                                                        (e.context.domainPath =
                                                          t.target.value),
                                                        e.context.setDomainPath(
                                                          e.context.domainPath
                                                        );
                                                    },
                                                  })
                                                )
                                              )
                                            : ""
                                        )
                                      ),
                                      o.a.createElement(
                                        "div",
                                        { className: "col-md-7" },
                                        o.a.createElement(
                                          "div",
                                          { className: "form-group fieldset" },
                                          o.a.createElement("input", {
                                            id: "cname",
                                            className: "form-control",
                                            type: "checkbox",
                                            checked: this.context
                                              .cnamePathSettings,
                                            onClick: function (t) {
                                              (e.context.cnamePathSettings =
                                                t.target.checked),
                                                e.context.setCnamePathSettings(
                                                  e.context.cnamePathSettings
                                                ),
                                                console.log(
                                                  "Checked",
                                                  t.target.checked
                                                );
                                            },
                                          }),
                                          o.a.createElement(
                                            "label",
                                            {
                                              className: "switch-ios",
                                              for: "cname",
                                            },
                                            o.a.createElement("i", null)
                                          )
                                        )
                                      )
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "float-left pad10 " },
                                      o.a.createElement("input", {
                                        className:
                                          "smack-btn smack-btn-primary",
                                        type: "button",
                                        value: "Back",
                                        onClick: function (t) {
                                          console.log("back"),
                                            e.setState({
                                              backToselectbucket: !0,
                                            });
                                        },
                                      })
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "float-right pad10 " },
                                      this.state.loading
                                        ? this.context.loaderText
                                        : o.a.createElement("input", {
                                            className:
                                              "smack-btn smack-btn-primary",
                                            type: "button",
                                            value: "Configure",
                                            onClick: function (t) {
                                              e.updateStorageSetting();
                                            },
                                          })
                                    )
                                  )
                                )
                              )
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "modal-bucket" },
                        o.a.createElement(
                          "div",
                          { className: "modal", id: "myModal" },
                          o.a.createElement(
                            "div",
                            { className: "modal-dialog" },
                            o.a.createElement(
                              "div",
                              { className: "modal-content" },
                              o.a.createElement(
                                "div",
                                { className: "modal-header" },
                                o.a.createElement(
                                  "h1",
                                  { className: "main-heading" },
                                  "Choose From Existing Bucket"
                                ),
                                o.a.createElement(
                                  "button",
                                  {
                                    type: "button",
                                    className: "close",
                                    "data-dismiss": "modal",
                                  },
                                  "×"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "modal-body" },
                                o.a.createElement(
                                  "div",
                                  { className: "form-group" },
                                  o.a.createElement(
                                    "div",
                                    { className: "bucket-list" },
                                    this.context.bucketLists.map(function (t) {
                                      return o.a.createElement(
                                        "li",
                                        {
                                          style: {
                                            backgroundColor:
                                              t ===
                                              e.context.selectedBucketsName
                                                ? "#00a699"
                                                : "",
                                          },
                                          onClick: function (n) {
                                            console.log("bucket", t),
                                              e.context.setExistingBucket(t);
                                          },
                                        },
                                        o.a.createElement("i", {
                                          className: "list-icon",
                                        }),
                                        "    ",
                                        t,
                                        " "
                                      );
                                    })
                                  )
                                )
                              )
                            )
                          )
                        )
                      )
                    )
              );
            },
          },
        ]),
        r
      );
    })(r.Component);
    M()(Je, "contextType", E);
    var Ke = Je;
    function Qe(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Xe = (function (e) {
      h()(r, e);
      var t,
        n = Qe(r);
      function r(e) {
        var t;
        return (
          l()(this, r),
          ((t = n.call(this, e)).state = {
            createBucketsection: !1,
            backTomediadisplay: !1,
            selectedBucket: "",
            createNewBucket: !1,
            setExistingBucket: "",
          }),
          t
        );
      }
      return (
        u()(r, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("bucket");
            },
          },
          {
            key: "getBucketDetails",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "get_bucket_details"
                              ),
                              t.set("bucketname", this.state.selectedBucket),
                              t.set(
                                "existingbucket",
                                this.context.selectedBucketsName
                              ),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            (n = e.sent),
                              console.log("origin", n.data.origin),
                              console.log("edge", n.data.edge),
                              200 == n.status &&
                                (this.context.setEndPoint(n.data.origin),
                                this.context.setEdgePoint(n.data.edge),
                                this.setState({ createBucketsection: !0 }),
                                D.toast.success("Bucket selected"));
                          case 10:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return this.state.backTomediadisplay
                ? o.a.createElement(tt, null)
                : this.state.createBucketsection
                ? o.a.createElement(Ke, null)
                : o.a.createElement(
                    "div",
                    { className: "wp-ultimate-csv-importer" },
                    o.a.createElement(
                      "div",
                      { id: "mapping-accordian", className: "container" },
                      o.a.createElement(
                        "div",
                        { className: "card csv-importer-panel mt20" },
                        o.a.createElement(
                          "div",
                          { className: "choose-bucket" },
                          o.a.createElement(
                            "div",
                            { className: "row justify-content-center" },
                            o.a.createElement(
                              "div",
                              { className: "col-md-10" },
                              o.a.createElement(
                                "div",
                                { className: "form-group mb3" },
                                o.a.createElement("input", {
                                  id: "existingBucket",
                                  type: "checkbox",
                                  name: "bucketchange",
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "existingBucket" },
                                  o.a.createElement(
                                    "h6",
                                    null,
                                    "Choose from Existing Bucket"
                                  )
                                ),
                                o.a.createElement(
                                  "ul",
                                  {
                                    className:
                                      "bucket-list select-bucket col-md-11",
                                  },
                                  this.context.bucketLists.map(function (t) {
                                    return o.a.createElement(
                                      "li",
                                      {
                                        style: {
                                          backgroundColor:
                                            t === e.context.selectedBucketsName
                                              ? "#00a699"
                                              : "",
                                        },
                                        onClick: function (n) {
                                          console.log("bucket", t),
                                            e.context.setExistingBucket(t);
                                        },
                                      },
                                      o.a.createElement("i", {
                                        className: "list-icon",
                                      }),
                                      "    ",
                                      t,
                                      " "
                                    );
                                  })
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "form-group" },
                                o.a.createElement("input", {
                                  id: "newBucket",
                                  type: "checkbox",
                                  name: "bucketchange",
                                  onClick: function (t) {
                                    e.setState({
                                      createNewBucket: t.target.checked,
                                    }),
                                      console.log(
                                        "Checked Status",
                                        t.target.checked
                                      );
                                  },
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "newBucket" },
                                  o.a.createElement(
                                    "h6",
                                    null,
                                    "Create New Bucket"
                                  )
                                ),
                                this.state.createNewBucket
                                  ? o.a.createElement(
                                      "div",
                                      { className: "new-bucket" },
                                      o.a.createElement(
                                        "div",
                                        {
                                          className: "tab-content",
                                          id: "v-pills-tabContent",
                                        },
                                        o.a.createElement(
                                          "div",
                                          { className: "form-group col-md-12" },
                                          o.a.createElement("input", {
                                            id: "bucketName",
                                            className: "form-control",
                                            type: "text",
                                            placeholder: "Bucket Name",
                                            onChange: function (t) {
                                              console.log(
                                                "bucket",
                                                t.target.value
                                              ),
                                                e.setState({
                                                  selectedBucket:
                                                    t.target.value,
                                                });
                                            },
                                          })
                                        )
                                      )
                                    )
                                  : ""
                              ),
                              o.a.createElement(
                                "div",
                                { className: "float-left pad10 " },
                                o.a.createElement("input", {
                                  className: "smack-btn smack-btn-primary",
                                  type: "button",
                                  value: "Back",
                                  onClick: function (t) {
                                    console.log("back"),
                                      e.setState({ backTomediadisplay: !0 });
                                  },
                                })
                              ),
                              o.a.createElement(
                                "div",
                                { className: "float-right pad10 " },
                                this.state.createNewBucket
                                  ? o.a.createElement("input", {
                                      className: "smack-btn smack-btn-primary",
                                      type: "button",
                                      value: "Create Bucket",
                                      onClick: function (t) {
                                        e.getBucketDetails();
                                      },
                                    })
                                  : o.a.createElement("input", {
                                      className: "smack-btn smack-btn-primary",
                                      type: "button",
                                      value: "Choose Bucket",
                                      onClick: function (t) {
                                        e.getBucketDetails();
                                      },
                                    })
                              )
                            )
                          )
                        )
                      )
                    )
                  );
            },
          },
        ]),
        r
      );
    })(r.Component);
    M()(Xe, "contextType", E);
    var $e = Xe;
    function Ze(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var et = (function (e) {
      h()(a, e);
      var t,
        n,
        r = Ze(a);
      function a(e) {
        var t;
        return (
          l()(this, a),
          ((t = r.call(this, e)).state = {
            loading: !1,
            activateBucketsection: !1,
            choosenServiceProvider: "",
            selectedRegion: "",
          }),
          t
        );
      }
      return (
        u()(a, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("media"),
                this.displayActualComponent();
            },
          },
          {
            key: "displayActualComponent",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "get_actual_component_details"
                              ),
                              (e.prev = 2),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            (n = e.sent),
                              console.log("Response", n.data),
                              200 == n.status && n.data.success
                                ? (this.context.setExistingBucket(
                                    n.data.bucket
                                  ),
                                  this.context.setEndPoint(n.data.origin),
                                  this.context.setSelectedServiceProvider(
                                    n.data.provider
                                  ),
                                  this.context.setStatusCopyFile(
                                    n.data.copy_files
                                  ),
                                  this.context.setStatusYearPath(
                                    n.data.copy_year
                                  ),
                                  this.context.setOffloadMedia(
                                    n.data.offload_media
                                  ),
                                  this.context.setRewriteUrl(
                                    n.data.rewrite_url
                                  ),
                                  this.context.setMediaPath(n.data.media_path),
                                  this.context.setStatusPathSettings(
                                    n.data.status_path
                                  ),
                                  this.context.setDomainPath(
                                    n.data.domain_name
                                  ),
                                  this.context.setCnamePathSettings(
                                    n.data.cname_path
                                  ),
                                  this.context.setEdgePoint(n.data.edge),
                                  this.context.setBucketLists(
                                    n.data.bucket_list
                                  ))
                                : 200 == n.status && n.data.success,
                              (e.next = 13);
                            break;
                          case 10:
                            (e.prev = 10),
                              (e.t0 = e.catch(2)),
                              console.log(e.t0);
                          case 13:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[2, 10]]
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "getServiceProvider",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "get_service_provider"
                              ),
                              t.set(
                                "provider",
                                this.context.chosenServiceProvider
                              ),
                              t.set("accesskey", this.context.accessKey),
                              t.set("secretkey", this.context.secretKey),
                              t.set("region", this.state.selectedRegion),
                              this.setState({ loading: !0 }),
                              (e.prev = 7),
                              (e.next = 10),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 10:
                            (n = e.sent),
                              console.log("Response", n.data),
                              200 == n.status &&
                                n.data.buckets &&
                                (this.setState({ loading: !1 }),
                                this.context.setBucketLists(n.data.buckets),
                                this.setState({ activateBucketsection: !0 }),
                                D.toast.success("Service provider Activated")),
                              (e.next = 18);
                            break;
                          case 15:
                            (e.prev = 15),
                              (e.t0 = e.catch(7)),
                              e.t0 &&
                                (this.setState({ loading: !1 }),
                                D.toast.error("Please check your credentials"));
                          case 18:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[7, 15]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return this.context.endPoints
                ? o.a.createElement(Ke, null)
                : this.state.activateBucketsection
                ? o.a.createElement($e, null)
                : o.a.createElement(
                    "div",
                    { className: "wp-ultimate-csv-importer" },
                    o.a.createElement(
                      "div",
                      { id: "mapping-accordian", class: "container" },
                      o.a.createElement(
                        "div",
                        { className: "card csv-importer-panel mt20" },
                        o.a.createElement(
                          "div",
                          { className: "row p15" },
                          o.a.createElement(
                            "div",
                            { className: "col-sm-12 col-md-12" },
                            o.a.createElement(
                              "div",
                              {
                                className:
                                  "setting-tab-pane setting-tabpane1 active",
                              },
                              o.a.createElement(
                                "div",
                                { className: "csv-importer-provider" },
                                o.a.createElement(
                                  "div",
                                  { className: "row justify-content-center" },
                                  o.a.createElement(
                                    "div",
                                    { className: "form-group" },
                                    o.a.createElement(
                                      "h1",
                                      { className: "main-heading" },
                                      "Choose Storage Provider"
                                    ),
                                    o.a.createElement(
                                      "div",
                                      { className: "d-flex mt10" },
                                      o.a.createElement(
                                        "div",
                                        {
                                          className:
                                            "form-check form-check-inline form-group synctype",
                                        },
                                        o.a.createElement("input", {
                                          id: "amazon",
                                          className: "form-check-input",
                                          type: "radio",
                                          name: "sync_type",
                                          onClick: function (t) {
                                            e.context.setSelectedServiceProvider(
                                              "amazonS3"
                                            );
                                          },
                                        }),
                                        o.a.createElement(
                                          "label",
                                          {
                                            className: "form-check-label",
                                            for: "amazon",
                                          },
                                          o.a.createElement("img", {
                                            src: "".concat(
                                              window.wpr_object.imagePath,
                                              "amazon-s3.png"
                                            ),
                                            className: "image-section",
                                            alt: "amazon-s3",
                                          }),
                                          "Amazon S3"
                                        )
                                      ),
                                      o.a.createElement(
                                        "div",
                                        {
                                          className:
                                            "form-check form-check-inline form-group synctype",
                                        },
                                        o.a.createElement("input", {
                                          id: "digitalOcean",
                                          className: "form-check-input",
                                          type: "radio",
                                          name: "sync_type",
                                          onClick: function (t) {
                                            e.context.setSelectedServiceProvider(
                                              "digitalOcean"
                                            );
                                          },
                                        }),
                                        o.a.createElement(
                                          "label",
                                          {
                                            className: "form-check-label",
                                            for: "digitalOcean",
                                          },
                                          o.a.createElement("img", {
                                            src: "".concat(
                                              window.wpr_object.imagePath,
                                              "digitalocean.png"
                                            ),
                                            className: "image-section",
                                            alt: "digitalocean",
                                          }),
                                          "Digital Ocean"
                                        )
                                      )
                                    )
                                  )
                                ),
                                o.a.createElement(
                                  "div",
                                  {
                                    className: "tab-content",
                                    id: "v-pills-tabContent",
                                  },
                                  o.a.createElement(
                                    "div",
                                    { className: "row justify-content-center" },
                                    o.a.createElement(
                                      "div",
                                      { className: "form-group col-md-9" },
                                      o.a.createElement(
                                        "h6",
                                        null,
                                        "Input Credentials"
                                      ),
                                      o.a.createElement(
                                        "label",
                                        { className: "pt10", for: "accesskey" },
                                        "Access Key"
                                      ),
                                      o.a.createElement("input", {
                                        id: "accesskey",
                                        className: "form-control",
                                        type: "text",
                                        value: this.context.accessKey,
                                        placeholder: "",
                                        onChange: function (t) {
                                          (e.context.accessKey =
                                            t.target.value),
                                            e.context.setAccessKey(
                                              e.context.accessKey
                                            );
                                        },
                                      }),
                                      o.a.createElement(
                                        "label",
                                        { className: "pt10", for: "secretkey" },
                                        "Secret Key"
                                      ),
                                      o.a.createElement("input", {
                                        id: "secretkey",
                                        className: "form-control",
                                        type: "text",
                                        value: this.context.secretKey,
                                        placeholder: "",
                                        onChange: function (t) {
                                          (e.context.secretKey =
                                            t.target.value),
                                            e.context.setSecretKey(
                                              e.context.secretKey
                                            );
                                        },
                                      }),
                                      console.log(
                                        this.context.chosenServiceProvider
                                      ),
                                      "digitalOcean" ===
                                        this.context.chosenServiceProvider
                                        ? o.a.createElement(
                                            "div",
                                            { className: "pt10" },
                                            o.a.createElement(
                                              "h4",
                                              null,
                                              "Region"
                                            ),
                                            o.a.createElement(
                                              "div",
                                              { className: "pt10" },
                                              o.a.createElement(
                                                "select",
                                                {
                                                  className: "col-md-7",
                                                  value: this.context
                                                    .selectedRegion,
                                                  onClick: function (t) {
                                                    e.setState({
                                                      selectedRegion:
                                                        t.target.value,
                                                    });
                                                  },
                                                },
                                                o.a.createElement(
                                                  "option",
                                                  { value: "New York" },
                                                  "New York"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Amsterdam" },
                                                  "Amsterdam"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Singapore" },
                                                  "Singapore"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "San Francisco" },
                                                  "San Francisco"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Frankfurt" },
                                                  "Frankfurt"
                                                )
                                              )
                                            )
                                          )
                                        : "amazonS3" ===
                                          this.context.chosenServiceProvider
                                        ? o.a.createElement(
                                            "div",
                                            { className: "pt10" },
                                            o.a.createElement(
                                              "h4",
                                              null,
                                              "Region"
                                            ),
                                            o.a.createElement(
                                              "div",
                                              { className: "pt10" },
                                              o.a.createElement(
                                                "select",
                                                {
                                                  className: "col-md-7",
                                                  onClick: function (t) {
                                                    console.log(
                                                      "Region",
                                                      t.target.value
                                                    ),
                                                      e.setState({
                                                        selectedRegion:
                                                          t.target.value,
                                                      });
                                                  },
                                                },
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "US East (N. Virginia)",
                                                  },
                                                  "US East (N. Virginia)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "US East (Ohio)" },
                                                  "US East (Ohio)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "US West (N. California)",
                                                  },
                                                  "US West (N. California)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "US West (Oregon)" },
                                                  "US West (Oregon)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Canada (Central)" },
                                                  "Canada (Central)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "Asia Pacific (Mumbai)",
                                                  },
                                                  "Asia Pacific (Mumbai)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "Asia Pacific (Seoul)",
                                                  },
                                                  "Asia Pacific (Seoul)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "Asia Pacific (Singapore)",
                                                  },
                                                  "Asia Pacific (Singapore)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "Asia Pacific (Sydney)",
                                                  },
                                                  "Asia Pacific (Sydney)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "Asia Pacific (Tokyo)",
                                                  },
                                                  "Asia Pacific (Tokyo)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "EU (Frankfurt)" },
                                                  "EU (Frankfurt)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "EU (Ireland)" },
                                                  "EU (Ireland)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "EU (London)" },
                                                  "EU (London)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "EU (Paris)" },
                                                  "EU (Paris)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "South America (Sao Paulo)",
                                                  },
                                                  "South America (Sao Paulo)"
                                                )
                                              )
                                            )
                                          )
                                        : "googlecloud" ===
                                          this.context.chosenServiceProvider
                                        ? o.a.createElement(
                                            "div",
                                            { className: "pt10" },
                                            o.a.createElement(
                                              "h4",
                                              null,
                                              "Region"
                                            ),
                                            o.a.createElement(
                                              "div",
                                              { className: "pt10" },
                                              o.a.createElement(
                                                "select",
                                                {
                                                  className: "col-md-7",
                                                  onClick: function (t) {
                                                    console.log(
                                                      "Region",
                                                      t.target.value
                                                    ),
                                                      e.setState({
                                                        selectedRegion:
                                                          t.target.value,
                                                      });
                                                  },
                                                },
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "United States (Multi-Regional)",
                                                  },
                                                  "United States (Multi-Regional)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "Asia (Multi-Regional)",
                                                  },
                                                  "Asia (Multi-Regional)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value:
                                                      "European Union (Multi-Regional)",
                                                  },
                                                  "European Union (Multi-Regional)"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Montréal" },
                                                  "Montréal"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Iowa" },
                                                  "Iowa"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "South Carolina" },
                                                  "South Carolina"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  {
                                                    value: "Northern Virginia",
                                                  },
                                                  "Northern Virginia"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Oregon" },
                                                  "Oregon"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Los Angeles" },
                                                  "Los Angeles"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "São Paulo" },
                                                  "São Paulo"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Finland" },
                                                  "Finland"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Belgium" },
                                                  "Belgium"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "London" },
                                                  "London"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Frankfurt" },
                                                  "Frankfurt"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Netherlands" },
                                                  "Netherlands"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Taiwan" },
                                                  "Taiwan"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Hong Kong" },
                                                  "Hong Kong"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Tokyo" },
                                                  "Tokyo"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Mumbai" },
                                                  "Mumbai"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Singapore" },
                                                  "Singapore"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Sydney" },
                                                  "Sydney"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Zurich" },
                                                  "Zurich"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Seoul" },
                                                  "Seoul"
                                                ),
                                                o.a.createElement(
                                                  "option",
                                                  { value: "Salt Lake City" },
                                                  "Salt Lake City"
                                                )
                                              )
                                            )
                                          )
                                        : "",
                                      o.a.createElement(
                                        "div",
                                        { className: "float-right" },
                                        this.state.loading
                                          ? this.context.loaderText
                                          : o.a.createElement("input", {
                                              className:
                                                "smack-btn smack-btn-primary",
                                              type: "button",
                                              value: "Activate",
                                              onClick: function (t) {
                                                e.getServiceProvider();
                                              },
                                            })
                                      )
                                    )
                                  )
                                )
                              )
                            )
                          )
                        )
                      )
                    )
                  );
            },
          },
        ]),
        a
      );
    })(r.Component);
    M()(et, "contextType", E);
    var tt = et;
    function nt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var rt = (function (e) {
      h()(a, e);
      var t,
        n,
        r = nt(a);
      function a(e) {
        var t;
        return (
          l()(this, a),
          ((t = r.call(this, e)).state = {
            loadingSupport: !1,
            loadingSubscription: !1,
            supportEmail: "",
            supportType: "",
            message: "",
            newsletterEmail: "",
            errors: "",
          }),
          (t.supportEmail = ""),
          t
        );
      }
      return (
        u()(a, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("support");
            },
          },
          {
            key: "submitContactForm",
            value:
              ((n = y()(
                v.a.mark(function e(t) {
                  var n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (n = new FormData()).set(
                                "action",
                                "support_mail"
                              ),
                              n.set("email", this.state.supportEmail),
                              n.set("query", this.state.supportType),
                              n.set("message", this.state.message),
                              this.setState({ loadingSupport: !0 }),
                              (e.next = 8),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: n,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 8:
                            200 == e.sent.status &&
                              (this.setState({
                                loadingSupport: !1,
                                supportEmail: "",
                                message: "",
                              }),
                              D.toast.success("Mail Sent Successfully"));
                          case 10:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function (e) {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "submitSubscriptionForm",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "send_subscribe_email"
                              ),
                              t.set(
                                "subscribe_email",
                                this.state.newsletterEmail
                              ),
                              this.setState({ loadingSubscription: !0 }),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            (n = e.sent) &&
                              n.data &&
                              200 == n.status &&
                              (this.setState({
                                loadingSubscription: !1,
                                newsletterEmail: "",
                              }),
                              D.toast.success(
                                "Successfull Subscribe to Newsletter"
                              ));
                          case 8:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "handleValidation",
            value: function (e) {
              this.supportEmail = e;
              var t = !0;
              return (
                "" === this.supportEmail && (t = !1),
                void 0 !== this.supportEmail &&
                  (t = !!new RegExp(
                    /[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,15}/g
                  ).test(this.supportEmail)),
                t
              );
            },
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { id: "mapping-accordion", className: "container" },
                o.a.createElement(
                  "div",
                  { className: "card csv-importer-panel mt20" },
                  o.a.createElement(
                    "div",
                    { className: "card-body" },
                    o.a.createElement(
                      "div",
                      { className: "row justify-content-around" },
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 text-center mt10 mb30" },
                        o.a.createElement(
                          "p",
                          null,
                          this.context.language
                            .LoveWPUltimateCSVImporterGivea5starreviewon,
                          " ",
                          o.a.createElement(
                            "a",
                            {
                              className: "csv-link",
                              href:
                                "https://wordpress.org/support/plugin/wp-ultimate-csv-importer/reviews/?filter=5",
                              target: "_blank",
                            },
                            " ",
                            "wordpress.org!"
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "col-md-6" },
                        o.a.createElement(
                          "div",
                          { className: "border-container" },
                          o.a.createElement(
                            "h5",
                            { className: "border-container-header" },
                            this.context.language.ContactSupport
                          ),
                          o.a.createElement(
                            "form",
                            { method: "", action: "" },
                            o.a.createElement(
                              "div",
                              { className: "form-group" },
                              o.a.createElement(
                                "label",
                                null,
                                this.context.language.Email
                              ),
                              o.a.createElement("input", {
                                type: "text",
                                className: "form-control",
                                value: this.state.supportEmail,
                                onChange: function (t) {
                                  e.setState({ supportEmail: t.target.value });
                                },
                              }),
                              o.a.createElement(
                                "p",
                                { style: { color: "red" } },
                                this.state.errors
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "form-group" },
                              o.a.createElement(
                                "label",
                                null,
                                this.context.Supporttype
                              ),
                              o.a.createElement(
                                "select",
                                {
                                  className: "form-control",
                                  value: this.state.supportType,
                                  onClick: function (t) {
                                    e.setState({ supportType: t.target.value });
                                  },
                                },
                                o.a.createElement(
                                  "option",
                                  { value: "bug_reporting" },
                                  this.context.language.BugReporting
                                ),
                                o.a.createElement(
                                  "option",
                                  { value: "feature_enhancement" },
                                  this.context.language.FeatureEnhancement
                                )
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "form-group" },
                              o.a.createElement(
                                "label",
                                null,
                                this.context.language.Message
                              ),
                              o.a.createElement("textarea", {
                                className: "form-control",
                                value: this.state.message,
                                onChange: function (t) {
                                  e.setState({ message: t.target.value });
                                },
                                rows: "5",
                              })
                            ),
                            o.a.createElement(
                              "div",
                              {
                                className:
                                  "form-group d-flex justify-content-end",
                              },
                              this.state.loadingSupport
                                ? this.context.loaderText
                                : o.a.createElement("input", {
                                    type: "button",
                                    name: "",
                                    onClick: function (t) {
                                      "" === e.state.errors &&
                                      "" !== e.state.message
                                        ? e.submitContactForm.bind(e)(t)
                                        : ("" !== e.state.errors &&
                                            D.toast.info(
                                              "Email you entered is not valid"
                                            ),
                                          "" === e.state.message &&
                                            D.toast.info(
                                              "You don't describe the bug or feature you want to enhance"
                                            ));
                                    },
                                    className: "smack-btn smack-btn-primary",
                                    value: this.context.language.Send,
                                  })
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "col-md-6" },
                        o.a.createElement(
                          "div",
                          { className: "border-container" },
                          o.a.createElement(
                            "h5",
                            { className: "border-container-header" },
                            this.context.language.NewsletterSubscription
                          ),
                          o.a.createElement(
                            "form",
                            { action: "", method: "" },
                            o.a.createElement(
                              "div",
                              { className: "form-group" },
                              o.a.createElement(
                                "label",
                                null,
                                this.context.language.Email
                              ),
                              o.a.createElement("input", {
                                type: "email",
                                name: "",
                                className: "form-control",
                                value: this.state.newsletterEmail,
                                onChange: function (t) {
                                  e.setState({
                                    newsletterEmail: t.target.value,
                                  }),
                                    e.handleValidation(e.state.newsletterEmail)
                                      ? e.setState({ errorsSubscribe: "" })
                                      : e.setState({
                                          errorsSubscribe:
                                            "Email entered is not Valid",
                                        });
                                },
                              }),
                              o.a.createElement(
                                "p",
                                { style: { color: "red" } },
                                this.state.errorsSubscribe
                              )
                            ),
                            o.a.createElement(
                              "div",
                              {
                                className:
                                  "form-group d-flex justify-content-end",
                              },
                              this.state.loadingSubscription
                                ? this.context.loaderText
                                : o.a.createElement("input", {
                                    type: "button",
                                    name: "",
                                    className: "smack-btn smack-btn-primary",
                                    onClick: function () {
                                      "" === e.state.errorsSubscribe
                                        ? e.submitSubscriptionForm()
                                        : D.toast.info(
                                            "Email you entered is not valid"
                                          );
                                    },
                                    value: this.context.language.Subscribe,
                                  })
                            )
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "mt40 p15" },
                          o.a.createElement(
                            "h5",
                            null,
                            this.context.language.Note
                          ),
                          o.a.createElement(
                            "div",
                            { className: "mt20" },
                            o.a.createElement("i", {
                              className:
                                "csv-icon-document-text text-primary mr5",
                            }),
                            this.context.language
                              .SubscribetoSmackcodersMailinglistafewmessagesayear
                          ),
                          o.a.createElement(
                            "div",
                            { className: "mt20" },
                            o.a.createElement("i", {
                              className: "csv-icon-mail text-primary mr5",
                            }),
                            this.context.language.Pleasedraftamailto,
                            " ",
                            o.a.createElement(
                              "span",
                              { className: "text-primary font-weight-bold" },
                              "support@smackcoders.com."
                            ),
                            " ",
                            this.context.language
                              .Ifyoudoesnotgetanyacknowledgementwithinanhour
                          )
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        a
      );
    })(r.Component);
    M()(rt, "contextType", E);
    var ot = rt,
      at = n(83);
    function it(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var st = (function (e) {
      h()(a, e);
      var t,
        n,
        r = it(a);
      function a(e) {
        var t;
        return (
          l()(this, a),
          ((t = r.call(this, e)).state = {
            loading: !1,
            barChartLabel: [],
            createdValue: [],
            skippedValue: [],
            updatedValue: [],
            monthList: [],
            lineChartData: [],
          }),
          (t.chartOptions = {
            scales: {
              xAxes: [{ stacked: !0 }],
              yAxes: [{ stacked: !0 }],
              maintainAspectRatio: !1,
              delay: 500,
            },
          }),
          (t.lineOptions = { scales: { maintainAspectRatio: !1, delay: 500 } }),
          (t.lineDataNew = []),
          t
        );
      }
      return (
        u()(a, [
          {
            key: "componentDidMount",
            value: function () {
              this.getBarData(),
                this.listLastMonths(),
                this.getLineData(),
                this.context.setSelectedTabOnCookies("dashboard");
            },
          },
          {
            key: "getRandomColor",
            value: function () {
              var e = new Array(
                "#e8e8e8",
                "#f5ddde",
                "#bee4e5",
                "#cfe0c7",
                "#f7e4bb",
                "#9c89b8 ",
                "#f0a6ca",
                "#efc3e6",
                "#f0e6ef",
                "#b8bedd"
              );
              return e[Math.floor(Math.random() * e.length)];
            },
          },
          {
            key: "getLineData",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n, r, o, a, i, s, l, c, u, d, h, p;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set("action", "LineChart"),
                              this.setState({ loading: !0 }),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            if (200 == (n = e.sent).status && n.data.success) {
                              for (
                                r = n.data,
                                  o = {
                                    data: [],
                                    label: n.data.label,
                                    color: [],
                                  },
                                  a = 0;
                                a < r.data.length;
                                a++
                              ) {
                                for (i = [], s = 0; s < r.data[a].length; s++)
                                  (l = parseInt(r.data[a][s])), i.push(l);
                                o.data.push(i),
                                  o.color.push(this.getRandomColor());
                              }
                              for (u in (this.setState({ lineChartData: o }),
                              (c = []),
                              o))
                                if (o.hasOwnProperty(u))
                                  for (d = 0; d < o.label.length; d++)
                                    (h = {
                                      label: "",
                                      fill: !0,
                                      stack: "stack1",
                                      lineTension: 0.6,
                                      borderCapStyle: "round",
                                      borderDashOffset: 0,
                                      borderJoinStyle: "miter",
                                      backgroundColor: "rgba(75,192,192,0.1)",
                                      borderColor: "",
                                      pointBackgroundColor: "#fff",
                                      pointBorderWidth: 1,
                                      pointHoverRadius: 5,
                                      pointHoverBorderWidth: 2,
                                      pointRadius: 1,
                                      pointHitRadius: 10,
                                      data: [],
                                    }),
                                      "data" === u &&
                                        (Object.assign(h, { data: o[u][d] }),
                                        c.push(h)),
                                      "label" === u && (c[d].label = o[u][d]),
                                      "color" === u &&
                                        ((p = this.getRandomColor()),
                                        (c[d].borderColor = p),
                                        (c[d].backgroundColor = "rgba(".concat(
                                          p,
                                          ",0.1)"
                                        )));
                              (this.lineDataNew = c), this.forceUpdate();
                            }
                          case 7:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "getBarData",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r, o, a, i, s, l, c;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set("action", "BarChart"),
                              this.setState({ loading: !0 }),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            if (200 == (n = e.sent).status && n.data.success) {
                              for (a in ((r = n.data), (o = []), r))
                                r.hasOwnProperty(a) &&
                                  "success" !== a &&
                                  o.push(a);
                              for (c in (this.setState({ barChartLabel: o }),
                              (i = []),
                              (s = []),
                              (l = []),
                              r))
                                r.hasOwnProperty(c) &&
                                  "success" !== c &&
                                  (i.push(r[c].created),
                                  s.push(r[c].skipped),
                                  l.push(r[c].updated));
                              this.setState({
                                createdValue: i,
                                skippedValue: s,
                                updatedValue: l,
                              });
                            }
                          case 7:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "listLastMonths",
            value: function () {
              var e,
                t = new Array(
                  "January",
                  "February",
                  "March",
                  "April",
                  "May",
                  "June",
                  "July",
                  "August",
                  "September",
                  "October",
                  "November",
                  "December"
                ),
                n = new Date().getMonth() + 1,
                r = [];
              for (e = 0; e < 12; e++) r.push(t[n]), ++n > 11 && (n = 0);
              this.setState({ monthList: r });
            },
          },
          {
            key: "render",
            value: function () {
              this.state.lineChartData;
              return (
                (this.lineData = {
                  labels: this.state.monthList,
                  datasets: this.lineDataNew,
                }),
                (this.barData = {
                  labels: this.state.barChartLabel,
                  datasets: [
                    {
                      stack: "stack1",
                      backgroundColor: "rgba(255,99,132,1)",
                      borderColor: "rgba(255,99,132,1)",
                      label: "Inserted",
                      data: this.state.createdValue,
                    },
                    {
                      stack: "stack1",
                      label: "Updated",
                      backgroundColor: "rgba(44,195,193,1)",
                      borderColor: "rgba(255,99,132,1)",
                      data: this.state.updatedValue,
                    },
                    {
                      stack: "stack1",
                      label: "Skipped",
                      backgroundColor: "rgba(50, 173, 255,1)",
                      borderColor: "rgba(50, 173, 255,1)",
                      data: this.state.skippedValue,
                    },
                  ],
                }),
                o.a.createElement(
                  "div",
                  { className: " container" },
                  o.a.createElement(
                    "div",
                    { className: "csv-importer-panel  mt20" },
                    o.a.createElement(
                      "div",
                      null,
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 mb30" },
                        o.a.createElement(
                          "h2",
                          { className: "main-heading" },
                          this.context.language.ImportersActivity
                        ),
                        o.a.createElement(at.Line, {
                          data: this.lineData,
                          width: "1000px",
                          height: "450px",
                          options: this.lineOptions,
                        })
                      ),
                      o.a.createElement("hr", null),
                      o.a.createElement(
                        "div",
                        { className: "col-md-12" },
                        o.a.createElement(
                          "h2",
                          { className: "main-heading" },
                          this.context.language.ImportStatistics
                        ),
                        o.a.createElement(at.Bar, {
                          data: this.barData,
                          width: "1000px",
                          height: "450px",
                          options: this.chartOptions,
                        })
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        a
      );
    })(r.Component);
    M()(st, "contextType", E);
    var lt = st,
      ct = n(26),
      ut = function (e) {
        var t = [];
        if (e)
          for (var n = 0; n < e.length; n++) {
            var r = e[n];
            if (1 == Object.keys(r).length) t.push(r);
            else
              for (var o in r) {
                var a = {};
                r[o], (a[o] = r[o]), t.push(a);
              }
          }
        return t;
      },
      dt = {
        core_fields: {
          languageName: "WordPressCoreFields",
          name: "WordPress Core Fields",
          resultKey: "CORE",
          Users_MandatoryFields: ["user_login", "user_email"],
        },
        terms_and_taxonomies: {
          languageName: "TermsandTaxonomies",
          name: "Terms and Taxonomies",
          resultKey: "TERMS",
        },
        wordpress_custom_fields: {
          languageName: "WordPressCustomFields",
          name: "WordPress Custom Fields",
          resultKey: "CORECUSTFIELDS",
        },
        acf_pro_fields: {
          languageName: "ACFProFields",
          name: "ACF PRO Fields",
          resultKey: "ACF",
        },
        acf_fields: {
          languageName: "ACFProFields",
          name: "ACF PRO Fields",
          resultKey: "ACF",
        },
        acf_group_fields: {
          languageName: "ACFGroupFields",
          name: "ACF Group Fields",
          resultKey: "GF",
        },
        acf_repeater_fields: {
          languageName: "ACFRepeaterFields",
          name: "ACF Repeater Fields",
          resultKey: "RF",
        },
        types_fields: {
          languageName: "TypesCustomFields",
          name: "Types Custom Fields",
          resultKey: "TYPES",
        },
        pods_fields: {
          languageName: "PodsFields",
          name: "Pods Fields",
          resultKey: "PODS",
        },
        jetengine_fields: {
          languageName: "JetEngineFields",
          name: "Jet Engine Fields",
          resultKey: "JE",
        },
        jetengine_rf_fields: {
          languageName: "JetEngineRFFields",
          name: "Jet Engine RF Fields",
          resultKey: "JERF",
        },
        jetenginecpt_fields: {
          languageName: "JetEngineCPTFields",
          name: "Jet Engine CPT Fields",
          resultKey: "JECPT",
        },
        jetenginecpt_rf_fields: {
          languageName: "JetEngineCPTRFFields",
          name: "Jet Engine CPT RF Fields",
          resultKey: "JECPTRF",
        },
        jetenginetaxonomy_fields: {
          languageName: "JetEngineTaxonomyFields",
          name: "Jet Engine Taxonomy Fields",
          resultKey: "JETAX",
        },
        jetenginetaxonomy_rf_fields: {
          languageName: "JetEngineTaxonomyRFFields",
          name: "Jet Engine Taxonomy RF Fields",
          resultKey: "JETAXRF",
        },
        custom_fields_suite_fields: {
          languageName: "CustomFieldSuite",
          name: "Custom Field Suite",
          resultKey: "CFS",
        },
        all_in_one_seo_fields: {
          languageName: "AllInOneSeoFields",
          name: "All In One Seo Fields",
          resultKey: "AIOSEO",
        },
        forum_attributes_fields: {
          languageName: "forumattributesfields",
          name: "Forum Attributes Fields",
          resultKey: "FORUM",
        },
        topic_attributes_fields: {
          languageName: "topicattributesfields",
          name: "Topic Attributes Fields",
          resultKey: "TOPIC",
        },
        reply_attributes_fields: {
          languageName: "replyattributesfields",
          name: "Reply Attributes Fields",
          resultKey: "REPLY",
        },
        yoast_seo_fields: {
          languageName: "YoastSeoFields",
          name: "Yoast Seo Fields",
          resultKey: "YOASTSEO",
        },
        rank_math_fields: {
          languageName: "RankMathFields",
          name: "Rank Math Fields",
          resultKey: "RANKMATH",
        },
        rank_math_pro_fields: {
          languageName: "RankMathProFields",
          name: "Rank Math Pro Fields",
          resultKey: "RANKMATH",
        },
        bp_fields: {
          languageName: "BuddyFields",
          name: "BuddyPress Fields",
          resultKey: "BP",
        },
        billing_and_shipping_information: {
          languageName: "BillingAndShippingInformation",
          name: "Billing And Shipping Information",
          resultKey: "BSI",
        },
        custom_fields_wp_members: {
          languageName: "CustomFieldsWPMemberFields",
          name: "Custom Fields WP Member Fields",
          resultKey: "WPMEMBERS",
        },
        product_meta_fields: {
          languageName: "ProductMetaFields",
          name: "WooCommerce Product Meta Fields",
          resultKey: "ECOMMETA",
        },
        product_bundle_meta_fields: {
          languageName: "ProductBundleMetaFields",
          name: "WooCommerce Product Bundle Meta Fields",
          resultKey: "BUNDLEMETA",
        },
        order_meta_fields: {
          languageName: "OrderMetaFields",
          name: "WooCommerce Order Meta Fields",
          resultKey: "ORDERMETA",
        },
        coupon_meta_fields: {
          languageName: "CouponMetaFields",
          name: "WooCommerce Coupon Meta Fields",
          resultKey: "COUPONMETA",
        },
        refund_meta_fields: {
          languageName: "RefundMetaFields",
          name: "Refund Meta Fields",
          resultKey: "REFUNDMETA",
        },
        wp_ecom_custom_fields: {
          languageName: "WPECommerceCustomFields",
          name: "WP ECommerce Custom Fields",
          resultKey: "WPECOMMETA",
        },
        events_manager_fields: {
          languageName: "EventsManagerFields",
          name: "Events Manager Fields",
          resultKey: "EVENTS",
        },
        wpml_fields: {
          languageName: "WPMLFields",
          name: "WPML Fields",
          resultKey: "WPML",
        },
        cmb2_fields: {
          languageName: "CMB2CustomFields",
          name: "CMB2 Custom Fields",
          resultKey: "CMB2",
        },
        course_settings_fields: {
          languageName: "CourseSettingsFields",
          name: "Course Settings Fields",
          resultKey: "LPCOURSE",
        },
        curriculum_settings_fields: {
          languageName: "CurriculumSettingsFields",
          name: "Curriculum Settings Fields",
          resultKey: "LPCURRICULUM",
        },
        lesson_settings_fields: {
          languageName: "LessonSettingsFields",
          name: "Lesson Settings Fields",
          resultKey: "LPLESSON",
        },
        quiz_settings_fields: {
          languageName: "QuizSettingsFields",
          name: "Quiz Settings Fields",
          resultKey: "LPQUIZ",
        },
        question_settings_fields: {
          languageName: "QuestionSettingsFields",
          name: "Question Settings Fields",
          resultKey: "LPQUESTION",
        },
        order_settings_fields: {
          languageName: "OrderSettingsFields",
          name: "Order Settings Fields",
          resultKey: "LPORDER",
        },
      },
      ht = function (e) {
        return dt[e];
      },
      pt = function (e, t) {
        if (e && t)
          for (var n = 0; n < e.length; n++) if (e[n] === t) return !0;
        return !1;
      };
    function ft(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var mt = (function (e) {
      h()(i, e);
      var t,
        n,
        r,
        a = ft(i);
      function i() {
        var e;
        l()(this, i);
        for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
          n[r] = arguments[r];
        return (
          (e = a.call.apply(a, [this].concat(n))),
          M()(k()(e), "state", {
            loading: !1,
            checkSimilarity: !0,
            customFields: [],
            mediaZipFileNames: [],
            mediaUploadData: { zipFileName: "", data: [] },
            updateFieldsList: [],
            enableSchedule: !1,
            showOnSchedule: "none",
            hiddenOnSchedule: "block",
            displayDuplicate: !1,
            updateField: "",
          }),
          M()(k()(e), "formulaIconOnClick", function (e, t) {
            if (
              document
                .getElementById("".concat(e, "-").concat(t, "-csv-icon-sum"))
                .classList.contains("active")
            ) {
              var n = document.getElementById(
                "".concat(e, "-").concat(t, "-manipulative-screen")
              );
              n.classList.contains("active")
                ? n.classList.remove("active")
                : n.classList.add("active");
            } else D.toast.info("Please choose Header Manipulation in the drop down");
          }),
          M()(k()(e), "sumIconOnClick", function (e, t) {
            if (
              document
                .getElementById("".concat(e, "-").concat(t, "-csv-icon-plus"))
                .classList.contains("active")
            ) {
              var n = document.getElementById(
                "".concat(e, "-").concat(t, "-static-manipulative-screen")
              );
              n.classList.contains("active")
                ? n.classList.remove("active")
                : n.classList.add("active");
            } else D.toast.info("Please choose Header Manipulation in the drop down");
          }),
          e
        );
      }
      return (
        u()(i, [
          {
            key: "isSimilar",
            value: function (e, t, n) {
              if (this.context.mappingResult) {
                var r = ht(e).resultKey;
                if (
                  this.context.mappingResult[r] &&
                  this.context.mappingResult[r][t] === n
                )
                  return !0;
              }
              return (
                !(
                  t.toLowerCase() !== n.toLowerCase() ||
                  !this.state.checkSimilarity
                ) && (this.onMappingSelect(e, t, n, !1), !0)
              );
            },
          },
          {
            key: "onMappingSelect",
            value: function (e, t, n) {
              var r =
                  !(arguments.length > 3 && void 0 !== arguments[3]) ||
                  arguments[3],
                o =
                  arguments.length > 4 && void 0 !== arguments[4]
                    ? arguments[4]
                    : -1,
                a = ht(e).resultKey,
                i = this.context.mappingResult[a];
              if (-1 != o) {
                var s = document.getElementById(
                    "".concat(e, "-").concat(o, "-csv-icon-sum")
                  ),
                  l = document.getElementById(
                    "".concat(e, "-").concat(o, "-csv-icon-plus")
                  );
                "Header Manipulation" === n
                  ? (s.classList.add("active"), l.classList.add("active"))
                  : (s.classList.remove("active"),
                    l.classList.remove("active"));
              }
              if ("--select--" === n || "Header Manipulation" === n)
                return i
                  ? void (
                      this.context.mappingResult[a][t] &&
                      (delete this.context.mappingResult[a][t],
                      this.setState({ checkSimilarity: !1 }),
                      this.context.setMappingResult(this.context.mappingResult))
                    )
                  : void 0;
              i
                ? r
                  ? (this.context.mappingResult[a][t] = n)
                  : this.context.mappingResult[a][t] ||
                    (this.context.mappingResult[a][t] = n)
                : ((this.context.mappingResult[a] = {}),
                  (this.context.mappingResult[a][t] = n)),
                this.setState({ checkSimilarity: !1 }),
                this.context.setMappingResult(this.context.mappingResult);
            },
          },
          {
            key: "isHeaderManipulation",
            value: function (e, t, n) {
              var r = ht(e).resultKey;
              return (
                !(
                  !this.context.mappingResult[r] ||
                  !this.context.mappingResult[r][t] ||
                  pt(this.context.csvFields, this.context.mappingResult[r][t])
                ) &&
                (setInterval(function () {
                  var t = document.getElementById(
                      "".concat(e, "-").concat(n, "-csv-icon-sum")
                    ),
                    r = document.getElementById(
                      "".concat(e, "-").concat(n, "-csv-icon-plus")
                    );
                  t &&
                    !t.classList.contains("active") &&
                    t.classList.add("active"),
                    r &&
                      !r.classList.contains("active") &&
                      r.classList.add("active");
                }, 500),
                !0)
              );
            },
          },
          {
            key: "getFieldValueFromResult",
            value: function (e, t) {
              var n = ht(e).resultKey;
              return this.context.mappingResult[n] &&
                this.context.mappingResult[n][t]
                ? this.context.mappingResult[n][t]
                : "";
            },
          },
          {
            key: "getFieldValueFromCustomFields",
            value: function (e) {
              var t = this.state.customFields[e];
              if (t) return t.value;
            },
          },
          {
            key: "addCustomField",
            value: function () {
              this.state.customFields.push({ name: "", label: "", value: "" }),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onCustomFieldLabelChange",
            value: function (e, t) {
              (this.state.customFields[t].label = e),
                (this.state.customFields[t].name = e
                  .trim()
                  .replace(/\s+/g, "-")
                  .toLowerCase()),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "deleteCustomField",
            value: function (e) {
              this.state.customFields.splice(e, 1),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onCustomFieldValueSelect",
            value: function (e, t) {
              var n = document.getElementById(
                  "custom-field-creator-".concat(t, "-csv-icon-sum")
                ),
                r = document.getElementById(
                  "custom-field-creator-".concat(t, "-csv-icon-plus")
                );
              if ("Header Manipulation" === e)
                return (
                  n.classList.add("active"),
                  r.classList.add("active"),
                  (this.state.customFields[t].value = ""),
                  void this.setState({ customFields: this.state.customFields })
                );
              (this.state.customFields[t].value = "--select--" === e ? "" : e),
                n.classList.remove("active"),
                r.classList.remove("active");
            },
          },
          {
            key: "onCustomFieldValueChange",
            value: function (e, t) {
              (this.state.customFields[t].value = e),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onZipProcess",
            value: function (e, t, n, r, o, a, i) {
              var s = new FormData();
              s.append("zipFile", t, t.name), s.append("action", "zip_upload");
              var l = new XMLHttpRequest();
              return (
                l.open("POST", ajaxurl),
                (l.upload.onprogress = function (e) {
                  a(e.lengthComputable, e.loaded, e.total);
                }),
                (l.onload = function () {
                  if (l.status >= 200 && l.status < 300) {
                    r(JSON.parse(l.responseText));
                    var e = JSON.parse(l.responseText);
                    if (e.success)
                      if (null == e.filename)
                        D.toast.info(
                          "There is no image files in the uploaded zip file"
                        );
                      else {
                        this.setState({ mediaZipFileNames: e.filename }),
                          document.getElementById("upload-zip-open").click();
                        for (
                          var t = [], n = e.filename.length, a = 0;
                          a < n;
                          a++
                        )
                          t.push({ filename: e.filename[a], size: e.size[a] });
                        (this.state.mediaUploadData.zipFileName =
                          e.zip_file_name),
                          (this.state.mediaUploadData.data = t),
                          this.setState(
                            { mediaUploadData: this.state.mediaUploadData },
                            function () {}
                          );
                      }
                    else D.toast.error(e.message);
                  } else o("oh no");
                }.bind(this)),
                l.send(s),
                {
                  abort: function () {
                    l.abort(), i();
                  },
                }
              );
            },
          },
          {
            key: "deleteImage",
            value:
              ((r = y()(
                v.a.mark(function e(t, n) {
                  var r, o;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (r = new FormData()).set(
                                "action",
                                "delete_image"
                              ),
                              r.set("image", t),
                              (e.prev = 3),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: r,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            (o = e.sent) &&
                              o.data &&
                              200 == o.status &&
                              o.data.success &&
                              (this.state.mediaUploadData.data.splice(n, 1),
                              this.setState({
                                mediaZipFileNames: this.state.mediaZipFileNames,
                              })),
                              (e.next = 13);
                            break;
                          case 10:
                            (e.prev = 10),
                              (e.t0 = e.catch(3)),
                              console.log(e.t0);
                          case 13:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[3, 10]]
                  );
                })
              )),
              function (e, t) {
                return r.apply(this, arguments);
              }),
          },
          {
            key: "checkMandatory",
            value: function () {
              for (
                var e = [
                    "language_code",
                    "translated_post_title",
                    "translated_taxonomy_title",
                    "user_login",
                    "user_email",
                    "post_title",
                  ],
                  t = 0;
                t < this.context.allPluginFields.length;
                t++
              ) {
                var n = this.context.allPluginFields[t];
                for (var r in n) {
                  var o = n[r];
                  if (o)
                    for (var a = 0; a < o.length; a++)
                      if (
                        e.includes(o[a].name) &&
                        !this.checkKeyExistInMapping(o[a].name)
                      )
                        return !1;
                }
              }
              return !0;
            },
          },
          {
            key: "checkKeyExistInMapping",
            value: function (e) {
              var t = !1;
              for (var n in this.context.mappingResult) {
                if (this.context.mappingResult[n])
                  Object.keys(this.context.mappingResult[n]).includes(e) &&
                    this.context.mappingResult[n][e] &&
                    (t = !0);
              }
              return !!t || (D.toast.error(e + " is mandatory field"), !1);
            },
          },
          {
            key: "sendMappedFields",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n, r, o, a;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if (this.state.customFields)
                              for (
                                t = 0;
                                t < this.state.customFields.length;
                                t++
                              )
                                (n = this.state.customFields[t]),
                                  (r = n.name.trim()),
                                  n.value &&
                                    r &&
                                    (this.context.mappingResult.CORECUSTFIELDS
                                      ? (this.context.mappingResult.CORECUSTFIELDS[
                                          n.name
                                        ] = n.value)
                                      : ((this.context.mappingResult.CORECUSTFIELDS = {}),
                                        (this.context.mseleappingResult.CORECUSTFIELDS[
                                          n.name
                                        ] = n.value)));
                            if (this.checkMandatory()) {
                              e.next = 3;
                              break;
                            }
                            return e.abrupt("return");
                          case 3:
                            return (
                              this.context.setMappingType("mapping-section"),
                              (o = new FormData()).set(
                                "action",
                                "saveMappedFields"
                              ),
                              o.set("HashKey", this.context.csvInfo.hashKey),
                              o.set("Types", this.context.csvInfo.selectedtype),
                              o.set(
                                "MappedFields",
                                JSON.stringify(this.context.mappingResult)
                              ),
                              o.set("MappingType", "mapping-section"),
                              o.set(
                                "selectedMode",
                                this.context.simpleModeSelection
                                  ? "simpleMode"
                                  : this.context.advancedModeSelection
                                  ? "advancedMode"
                                  : ""
                              ),
                              this.setState({ loading: !0 }),
                              (e.prev = 12),
                              (e.next = 15),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: o,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 15:
                            (a = e.sent) &&
                              a.data &&
                              (200 == a.status && a.data.success
                                ? (this.setState({ loading: !1 }),
                                  "WooCommerce Orders" ===
                                    this.context.csvInfo.selectedtype ||
                                  "WooCommerce Coupons" ===
                                    this.context.csvInfo.selectedtype ||
                                  "WooCommerce Product Variations" ===
                                    this.context.csvInfo.selectedtype ||
                                  "WooCommerce Refunds" ===
                                    this.context.csvInfo.selectedtype ||
                                  "WooCommerce Attributes" ===
                                    this.context.csvInfo.selectedtype ||
                                  "Users" ===
                                    this.context.csvInfo.selectedtype ||
                                  "Comments" ===
                                    this.context.csvInfo.selectedtype ||
                                  "nav_menu_item" ===
                                    this.context.csvInfo.selectedtype ||
                                  "widgets" ===
                                    this.context.csvInfo.selectedtype
                                    ? this.context.setShowComponent(
                                        "import-config"
                                      )
                                    : this.context.setShowComponent(
                                        "media-handling"
                                      ),
                                  this.startSimpleImport())
                                : this.setState({ loading: !1 })),
                              (e.next = 22);
                            break;
                          case 19:
                            (e.prev = 19),
                              (e.t0 = e.catch(12)),
                              this.setState({ loading: !1 });
                          case 22:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[12, 19]]
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "startSimpleImport",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "bulk_file_import"
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              this.context.setShowImportLog(!0),
                              this.context.setImportLogDataLink(
                                ""
                                  .concat(window.wpr_object.logfielpath, "/")
                                  .concat(this.context.csvInfo.hashKey, "/")
                                  .concat(this.context.csvInfo.hashKey, ".html")
                              ),
                              this.setState({ loading: !0 }),
                              (e.prev = 6),
                              (e.next = 9),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 9:
                            return (
                              (n = e.sent),
                              this.setState({ loading: !1 }),
                              (r =
                                "csv" === n.data.file_extension ||
                                "txt" === n.data.file_extension
                                  ? Math.ceil(n.data.total_rows / 5)
                                  : Math.ceil(n.data.total_rows / 3)),
                              console.log("Simple Import Response", n.data),
                              (this.context.bulkImportData.totalPages = r),
                              (this.context.bulkImportData.totalRows =
                                n.data.total_rows),
                              (this.context.bulkImportData.fileName =
                                n.data.file_name),
                              (this.context.bulkImportData.fileSize =
                                n.data.filesize),
                              (this.context.bulkImportData.fileExtension =
                                n.data.file_extension),
                              (this.context.bulkImportData.fileIteration = 5),
                              (this.context.bulkImportData.Check = !0),
                              this.context.setBulkImportData({
                                totalPages: r,
                                totalRows: n.data.total_rows,
                                fileName: n.data.file_name,
                                fileSize: n.data.filesize,
                                fileExtension: n.data.file_extension,
                                fileIteration: n.data.file_iteration,
                                Check: !0,
                              }),
                              this.context.setShowComponent("simple-import"),
                              e.abrupt("return")
                            );
                          case 25:
                            (e.prev = 25), (e.t0 = e.catch(6));
                          case 27:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[6, 25]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "container", id: "mapping-accordion" },
                o.a.createElement("div", { className: "clearfix" }),
                o.a.createElement("div", { className: "mt50" }),
                this.context.allPluginFields.map(function (t, n) {
                  var r = Object.keys(t)[0];
                  if (!ht(r)) return o.a.createElement("div", null);
                  var a = !1;
                  return (
                    r || (a = !0),
                    t[r] ||
                    Array.isArray(t[r]) ||
                    ((a = !0), "wordpress_custom_fields" === r)
                      ? a
                        ? void 0
                        : o.a.createElement(
                            "div",
                            null,
                            o.a.createElement(
                              "div",
                              { className: "card csv-importer-panel " },
                              o.a.createElement(
                                "h1",
                                {
                                  className: "card-header main-heading ".concat(
                                    0 == n ? "active" : ""
                                  ),
                                  id: r,
                                  onClick: function () {
                                    toggle_func(r);
                                  },
                                },
                                e.context.language[ht(r).languageName],
                                " ",
                                o.a.createElement("span", {
                                  className: "csv-icon-angle-down float-right",
                                })
                              ),
                              o.a.createElement(
                                "div",
                                {
                                  className: "card-body",
                                  id: "".concat(r, "-body"),
                                  style: { display: 0 == n ? "block" : "none" },
                                },
                                o.a.createElement(
                                  "table",
                                  { className: "table table-mapping" },
                                  o.a.createElement(
                                    "thead",
                                    null,
                                    o.a.createElement(
                                      "tr",
                                      null,
                                      o.a.createElement(
                                        "th",
                                        null,
                                        e.context.language.WPFIELDS
                                      ),
                                      o.a.createElement(
                                        "th",
                                        null,
                                        e.context.language.CSVHEADER
                                      ),
                                      o.a.createElement(
                                        "th",
                                        null,
                                        e.context.language.Action
                                      )
                                    )
                                  ),
                                  o.a.createElement(
                                    "tbody",
                                    null,
                                    t[r].map(function (t, n) {
                                      return o.a.createElement(
                                        "tr",
                                        null,
                                        o.a.createElement(
                                          "td",
                                          null,
                                          o.a.createElement(
                                            "label",
                                            { className: "wpfields" },
                                            t.label
                                          ),
                                          o.a.createElement(
                                            "label",
                                            { className: "sub-text" },
                                            "[",
                                            e.context.language.Name,
                                            ": ",
                                            t.name,
                                            "] "
                                          )
                                        ),
                                        o.a.createElement(
                                          "td",
                                          null,
                                          o.a.createElement(
                                            "select",
                                            {
                                              className:
                                                "select form-control w-75",
                                              onChange: function (o) {
                                                e.onMappingSelect.bind(e)(
                                                  r,
                                                  t.name,
                                                  o.target.value,
                                                  !0,
                                                  n
                                                );
                                              },
                                            },
                                            o.a.createElement(
                                              "optgroup",
                                              { label: ht(r).name },
                                              o.a.createElement(
                                                "option",
                                                null,
                                                "--select--"
                                              ),
                                              e.context.csvFields.map(function (
                                                n
                                              ) {
                                                return o.a.createElement(
                                                  "option",
                                                  {
                                                    selected: e.isSimilar(
                                                      r,
                                                      t.name,
                                                      n
                                                    ),
                                                  },
                                                  n
                                                );
                                              }),
                                              o.a.createElement(
                                                "option",
                                                {
                                                  selected: e.isHeaderManipulation(
                                                    r,
                                                    t.name,
                                                    n
                                                  ),
                                                },
                                                "Header Manipulation"
                                              )
                                            )
                                          )
                                        ),
                                        o.a.createElement(
                                          "td",
                                          { className: "action" },
                                          o.a.createElement(
                                            "a",
                                            {
                                              className: "action-icon",
                                              "data-toggle": "tooltip",
                                              title: "Static",
                                            },
                                            o.a.createElement("i", {
                                              id: ""
                                                .concat(r, "-")
                                                .concat(n, "-csv-icon-plus"),
                                              className: "csv-icon-plus-square",
                                              onClick: function () {
                                                e.sumIconOnClick(r, n);
                                              },
                                            }),
                                            o.a.createElement(
                                              "div",
                                              {
                                                id: ""
                                                  .concat(r, "-")
                                                  .concat(
                                                    n,
                                                    "-static-manipulative-screen"
                                                  ),
                                                className:
                                                  "manipulation-screen",
                                              },
                                              o.a.createElement(
                                                "div",
                                                {
                                                  className: "close",
                                                  onClick: function () {
                                                    e.sumIconOnClick(r, n);
                                                  },
                                                },
                                                "×"
                                              ),
                                              o.a.createElement("div", {
                                                className: "clearfix",
                                              }),
                                              o.a.createElement(
                                                "div",
                                                { className: "form-group" },
                                                o.a.createElement("textarea", {
                                                  onChange: function (n) {
                                                    e.onMappingSelect.bind(e)(
                                                      r,
                                                      t.name,
                                                      n.target.value
                                                    );
                                                  },
                                                  value: e.getFieldValueFromResult(
                                                    r,
                                                    t.name
                                                  ),
                                                  className: "form-control",
                                                })
                                              ),
                                              o.a.createElement(
                                                "div",
                                                { className: "csv-hint" },
                                                o.a.createElement(
                                                  "b",
                                                  null,
                                                  e.context.language.HINT,
                                                  " :"
                                                ),
                                                " Specify the CSV header to be added in between the curley braces(",
                                                ").",
                                                o.a.createElement(
                                                  "div",
                                                  { className: "d-block" },
                                                  o.a.createElement(
                                                    "b",
                                                    null,
                                                    e.context.language.Example,
                                                    " : "
                                                  ),
                                                  " ",
                                                  "{post_title}",
                                                  " "
                                                )
                                              )
                                            )
                                          ),
                                          o.a.createElement(
                                            "a",
                                            {
                                              className: "action-icon",
                                              "data-toggle": "tooltip",
                                              title: "Formula",
                                            },
                                            o.a.createElement("i", {
                                              id: ""
                                                .concat(r, "-")
                                                .concat(n, "-csv-icon-sum"),
                                              className: "csv-icon-sum",
                                              onClick: function (t) {
                                                e.formulaIconOnClick(r, n);
                                              },
                                            }),
                                            o.a.createElement(
                                              "div",
                                              {
                                                id: ""
                                                  .concat(r, "-")
                                                  .concat(
                                                    n,
                                                    "-manipulative-screen"
                                                  ),
                                                className:
                                                  "manipulation-screen",
                                              },
                                              o.a.createElement(
                                                "span",
                                                {
                                                  className: "close",
                                                  onClick: function () {
                                                    e.formulaIconOnClick(r, n);
                                                  },
                                                },
                                                "×"
                                              ),
                                              o.a.createElement("div", {
                                                className: "clearfix",
                                              }),
                                              o.a.createElement(
                                                "div",
                                                { className: "form-group" },
                                                o.a.createElement("textarea", {
                                                  onChange: function (n) {
                                                    e.onMappingSelect.bind(e)(
                                                      r,
                                                      t.name,
                                                      n.target.value
                                                    );
                                                  },
                                                  value: e.getFieldValueFromResult(
                                                    r,
                                                    t.name
                                                  ),
                                                  class: "form-control",
                                                })
                                              ),
                                              o.a.createElement(
                                                "div",
                                                { className: "csv-hint" },
                                                o.a.createElement(
                                                  "b",
                                                  null,
                                                  e.context.language.HIN,
                                                  " :"
                                                ),
                                                " Specify operator(+,-,*,/) and CSV header as operand in MATH() within ",
                                                o.a.createElement(
                                                  "div",
                                                  { class: "d-block" },
                                                  o.a.createElement(
                                                    "b",
                                                    null,
                                                    e.context.language.Example,
                                                    " :"
                                                  ),
                                                  " ",
                                                  "MATH ({product_quantity}/{discount_price})",
                                                  " "
                                                )
                                              )
                                            )
                                          )
                                        )
                                      );
                                    })
                                  )
                                )
                              )
                            )
                          )
                      : o.a.createElement(
                          "div",
                          { className: "card csv-importer-panel " },
                          o.a.createElement(
                            "h1",
                            {
                              className:
                                "card-header main-heading bg-white pro-tag",
                            },
                            e.context.language[ht(r).languageName],
                            " "
                          )
                        )
                  );
                }),
                o.a.createElement(
                  "div",
                  { class: "col-md-12 mt40 p0" },
                  o.a.createElement(
                    "div",
                    { class: "float-left" },
                    o.a.createElement(
                      "button",
                      {
                        type: "button",
                        class: "smack-btn btn-default",
                        onClick: function () {
                          e.context.setShowComponent("upload-dashboard");
                        },
                      },
                      "Back"
                    )
                  ),
                  o.a.createElement(
                    "div",
                    { className: "float-right mb20" },
                    this.state.loading
                      ? this.context.loaderText
                      : o.a.createElement(
                          "button",
                          {
                            className: "smack-btn smack-btn-primary",
                            onClick: function (t) {
                              e.sendMappedFields();
                            },
                          },
                          this.context.language.Continue
                        )
                  )
                ),
                o.a.createElement("a", {
                  href: "#",
                  className: "smack-btn smack-btn-primary d-none",
                  id: "upload-zip-open",
                  "data-toggle": "modal",
                  "data-target": "#upload_media",
                }),
                o.a.createElement(
                  "div",
                  {
                    id: "upload_media",
                    className: "modal fade payment_modal active",
                    role: "dialog",
                  },
                  o.a.createElement(
                    "div",
                    {
                      className: "modal-dialog modal-lg modal-dialog-centered",
                    },
                    o.a.createElement(
                      "div",
                      { className: "modal-content" },
                      o.a.createElement(
                        "div",
                        { className: "modal-header border  border-0" },
                        o.a.createElement(
                          "h1",
                          { className: "main-heading text-center py-1 m-auto" },
                          this.state.mediaUploadData.zipFileName
                        ),
                        o.a.createElement(
                          "button",
                          {
                            type: "button",
                            className: "close ml0",
                            "data-dismiss": "modal",
                          },
                          "×"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "modal-body my-2" },
                        o.a.createElement(
                          "table",
                          { className: "table table-striped" },
                          o.a.createElement(
                            "thead",
                            null,
                            o.a.createElement(
                              "tr",
                              null,
                              o.a.createElement(
                                "th",
                                null,
                                this.context.language.Name
                              ),
                              o.a.createElement(
                                "th",
                                null,
                                this.context.language.Size
                              ),
                              o.a.createElement(
                                "th",
                                { class: "text-center" },
                                this.context.language.Action
                              )
                            )
                          ),
                          o.a.createElement(
                            "tbody",
                            null,
                            this.state.mediaUploadData.data.map(function (
                              t,
                              n
                            ) {
                              return o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement("td", null, t.filename),
                                o.a.createElement("td", null, t.size),
                                o.a.createElement(
                                  "td",
                                  null,
                                  o.a.createElement(
                                    "a",
                                    {
                                      className: "action-icon",
                                      onClick: function (r) {
                                        e.deleteImage(t.filename, n);
                                      },
                                      "data-toggle": "tooltip",
                                      title: "Delete",
                                    },
                                    o.a.createElement("i", {
                                      className: "csv-icon-trash-2",
                                    })
                                  )
                                )
                              );
                            })
                          )
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        i
      );
    })(r.Component);
    function gt(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function _t(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = null != arguments[t] ? arguments[t] : {};
        t % 2
          ? gt(Object(n), !0).forEach(function (t) {
              M()(e, t, n[t]);
            })
          : Object.getOwnPropertyDescriptors
          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
          : gt(Object(n)).forEach(function (t) {
              Object.defineProperty(
                e,
                t,
                Object.getOwnPropertyDescriptor(n, t)
              );
            });
      }
      return e;
    }
    function vt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(mt, "contextType", E);
    var bt = (function (e) {
      h()(r, e);
      var t,
        n = vt(r);
      function r() {
        var e;
        l()(this, r);
        for (var t = arguments.length, o = new Array(t), a = 0; a < t; a++)
          o[a] = arguments[a];
        return (
          (e = n.call.apply(n, [this].concat(o))),
          M()(k()(e), "state", { loading: !1, onChangeSelectStatus: !1 }),
          e
        );
      }
      return (
        u()(r, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setCSVInfo(
                _t(
                  _t({}, this.context.csvInfo),
                  {},
                  { replaceExistingItem: "Insert" }
                )
              );
            },
          },
          {
            key: "sendConfiguration",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "mappingfields"
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              t.set("Types", this.context.csvInfo.selectedtype),
                              t.set(
                                "Mode",
                                this.context.csvInfo.replaceExistingItem
                              ),
                              this.setState({ loading: !0 }),
                              (e.prev = 6),
                              (e.next = 9),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 9:
                            (n = e.sent) &&
                              n.data &&
                              200 == n.status &&
                              n.data.success &&
                              (this.setState({ loading: !1 }),
                              !0 === n.data.show_template
                                ? (this.context.setIsTemplate(!0),
                                  this.context.setSaveTemplateData(n.data.info),
                                  this.context.setShowComponent(
                                    "save-template"
                                  ))
                                : (this.context.setCsvFields(n.data.csv_fields),
                                  (r = ut(n.data.fields)),
                                  this.context.setAllPluginFields(r),
                                  "xml" === this.context.csvInfo.fileType
                                    ? this.context.setShowComponent(
                                        "dragdrop-section"
                                      )
                                    : this.context.setShowComponent(
                                        "mapping-section"
                                      ))),
                              (e.next = 16);
                            break;
                          case 13:
                            (e.prev = 13),
                              (e.t0 = e.catch(6)),
                              console.log(e.t0);
                          case 16:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[6, 13]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "csv-importer-panel mt20 container" },
                o.a.createElement(
                  "div",
                  { className: "file-info-container clearfix" },
                  o.a.createElement(
                    "div",
                    { className: "csvinfo" },
                    o.a.createElement(
                      "h3",
                      { className: "file-name" },
                      this.context.csvInfo.fileName,
                      " -",
                      " ",
                      o.a.createElement(
                        "span",
                        { className: "size" },
                        this.context.csvInfo.fileSize
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { class: "d-flex justify-content-center mt40" },
                      o.a.createElement(
                        "div",
                        {
                          className: "form-check form-check-inline form-group",
                        },
                        o.a.createElement("input", {
                          className: "form-check-input ",
                          onClick: function () {
                            e.context.setCSVInfo(
                              _t(
                                _t({}, e.context.csvInfo),
                                {},
                                { replaceExistingItem: "Insert" }
                              )
                            );
                          },
                          type: "radio",
                          id: "insertRad",
                          name: "post-item",
                          value: "Insert",
                          checked:
                            "Insert" ===
                            this.context.csvInfo.replaceExistingItem,
                        }),
                        " ",
                        o.a.createElement(
                          "label",
                          { for: "insertRad", class: "form-check-label" },
                          "New Item"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        {
                          className: "form-check form-check-inline form-group",
                          style: { opacity: 0.6 },
                        },
                        o.a.createElement("input", {
                          className: "form-check-input",
                          onClick: function () {
                            D.toast.info(
                              "Please Upgrade to PRO for this Feature"
                            );
                          },
                          type: "radio",
                          id: "updateRad",
                          name: "post-item",
                          value: "Update",
                          checked:
                            "Update" ===
                            this.context.csvInfo.replaceExistingItem,
                        }),
                        " ",
                        o.a.createElement(
                          "label",
                          { for: "updateRad", className: "form-check-label" },
                          "Existing Items"
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { className: "d-flex justify-content-center mt40" },
                      o.a.createElement(
                        "div",
                        { className: "form-group" },
                        o.a.createElement(
                          "label",
                          null,
                          "Import each record as"
                        ),
                        o.a.createElement(
                          "div",
                          null,
                          o.a.createElement(
                            "select",
                            {
                              value: this.state.onChangeSelectStatus
                                ? this.context.csvInfo.selectedtype
                                : "select",
                              className: "select form-control",
                              onChange: function (t) {
                                (e.context.csvInfo.selectedtype =
                                  t.target.value),
                                  e.setState({ onChangeSelectStatus: !0 }),
                                  e.sendConfiguration();
                              },
                              name: "",
                              id: "",
                            },
                            o.a.createElement(
                              "optgroup",
                              { label: "PostType" },
                              o.a.createElement(
                                "option",
                                { value: "select" },
                                "Select"
                              ),
                              this.context.csvInfo.postTypes.map(function (e) {
                                return o.a.createElement(
                                  "option",
                                  { value: e },
                                  e
                                );
                              })
                            )
                          )
                        )
                      )
                    )
                  ),
                  o.a.createElement(
                    "div",
                    { class: "col-md-12 mt40 p0" },
                    o.a.createElement(
                      "div",
                      { class: "float-left" },
                      o.a.createElement(
                        "button",
                        {
                          type: "button",
                          class: "smack-btn btn-default",
                          onClick: function () {
                            e.context.setShowComponent("upload-dashboard");
                          },
                        },
                        "Back"
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        r
      );
    })(r.Component);
    function yt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(bt, "contextType", E);
    var wt = (function (e) {
      h()(a, e);
      var t,
        n,
        r = yt(a);
      function a(e) {
        var t;
        return (
          l()(this, a),
          (t = r.call(this, e)),
          M()(
            k()(t),
            "pauseBulkImport",
            y()(
              v.a.mark(function e() {
                var n, r;
                return v.a.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          (n = new FormData()).set("action", "PauseImport"),
                          n.set("HashKey", t.context.csvInfo.hashKey),
                          (e.next = 5),
                          S()({
                            method: "post",
                            url: ajaxurl,
                            data: n,
                            config: {
                              headers: {
                                "Content-Type": "multipart/form-data",
                              },
                            },
                          })
                        );
                      case 5:
                        (r = e.sent),
                          t.setState({ controlImportProcess: !1 }),
                          r.data.pause_state &&
                            t.timer &&
                            clearInterval(t.timer);
                      case 8:
                      case "end":
                        return e.stop();
                    }
                }, e);
              })
            )
          ),
          M()(
            k()(t),
            "resumeBulkImport",
            y()(
              v.a.mark(function e() {
                var n, r, o;
                return v.a.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          t.setState({ controlImportProcess: !0 }),
                          (n = new FormData()).set("action", "ResumeImport"),
                          n.set("HashKey", t.context.csvInfo.hashKey),
                          (e.next = 6),
                          S()({
                            method: "post",
                            url: ajaxurl,
                            data: n,
                            config: {
                              headers: {
                                "Content-Type": "multipart/form-data",
                              },
                            },
                          })
                        );
                      case 6:
                        (r = e.sent).data.resume_state &&
                          ((o = ""),
                          (o = t.context.rollBackMode ? "true" : "false"),
                          t.alternateWorker.bind(k()(t))(
                            t.context.csvInfo.hashKey,
                            o,
                            r.data.page_number,
                            t.context.bulkImportData.totalPages,
                            t.context.bulkImportData.Check
                          ),
                          (t.timer = setInterval(
                            t.stopWatch.bind(k()(t)),
                            1e3
                          )));
                      case 8:
                      case "end":
                        return e.stop();
                    }
                }, e);
              })
            )
          ),
          M()(k()(t), "bulkImportProcess", function () {
            var e = "";
            e = t.context.rollBackMode ? "true" : "false";
            var n = t.context.bulkImportData.totalRows;
            "csv" === t.context.bulkImportData.fileExtension ||
            "txt" === t.context.bulkImportData.fileExtension
              ? (t.bulkImportCount = 5)
              : (t.bulkImportCount = 3);
            var r = 0 * t.bulkImportCount + t.bulkImportCount;
            r > n && (r = n);
            var o = "1 - " + r;
            t.setState({ processingRecords: o, remainingRecords: n }),
              t.alternateWorker.bind(k()(t))(
                t.context.csvInfo.hashKey,
                e,
                1,
                t.context.bulkImportData.totalPages,
                t.context.bulkImportData.Check
              ),
              (t.timer = setInterval(t.stopWatch.bind(k()(t)), 1e3));
          }),
          (t.state = {
            loading: !0,
            check: "",
            fileName: "",
            processingRecords: "",
            remainingRecords: "",
            totalRecords: "",
            fileSize: "",
            process: "",
            remainingTime: "00:00:00",
            stopWatch: "00:00:00",
            progWidth: "0",
            importStatus: "Processing",
            enableDownload: !1,
            controlImportProcess: !0,
            rollBackProgress: !1,
          }),
          (t.bulkImportCount = 0),
          (t.loopCount = 0),
          (t.remainingTime = 0),
          (t.stopSeconds = 0),
          (t.stopMinutes = 0),
          (t.stopHours = 0),
          t.progressWidth,
          t.url,
          t
        );
      }
      return (
        u()(a, [
          {
            key: "componentDidMount",
            value: function () {
              this.checkAjaxURL(),
                this.bulkImportProcess(),
                this.state.loading && this.stopWatch(),
                "csv" === this.context.bulkImportData.fileExtension ||
                "txt" === this.context.bulkImportData.fileExtension
                  ? (this.bulkImportCount = 5)
                  : (this.bulkImportCount = 3);
            },
          },
          {
            key: "checkAjaxURL",
            value: function () {
              ajaxurl.includes("http")
                ? (this.url = ajaxurl)
                : (this.url = window.location.origin + ajaxurl);
            },
          },
          {
            key: "loadProgress",
            value: function (e) {
              e.processing_records !== e.total_records
                ? (this.progressWidth =
                    (e.processing_records / e.total_records) * 100)
                : e.progress ||
                  (this.progressWidth =
                    (e.processing_records / e.total_records) * 100),
                (this.progressWidth = Math.round(this.progressWidth)),
                this.progressWidth > 0.9 &&
                  (this.progressWidth > 100
                    ? this.setState({ progWidth: 100 }, function () {})
                    : this.setState(
                        { progWidth: this.progressWidth },
                        function () {}
                      ));
            },
          },
          { key: "componentWillUnmount", value: function () {} },
          {
            key: "alternateWorker",
            value:
              ((n = y()(
                v.a.mark(function e(t, n, r, o, a) {
                  var i, s, l, c, u, d, h;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            i = r;
                          case 1:
                            if (!(i <= o)) {
                              e.next = 35;
                              break;
                            }
                            return (
                              (s = performance.now()),
                              (l = new FormData()).append(
                                "action",
                                "bulk_import"
                              ),
                              l.append("HashKey", t),
                              l.append("PageNumber", i),
                              l.append("RollBack", n),
                              l.append("Check", a),
                              (e.prev = 9),
                              (e.next = 12),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: l,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 12:
                            if (200 != (c = e.sent).status) {
                              e.next = 21;
                              break;
                            }
                            if (
                              ((u = performance.now()),
                              (d = c.data),
                              (h = (((u - s) % 6e4) / 1e3).toFixed(0)),
                              0 != d.success)
                            ) {
                              e.next = 20;
                              break;
                            }
                            return (
                              this.updateProgressBar({
                                result: d,
                                completedPage: i,
                                secondsToComplete: h,
                              }),
                              e.abrupt("break", 35)
                            );
                          case 20:
                            this.updateProgressBar({
                              result: d,
                              completedPage: i,
                              secondsToComplete: h,
                            });
                          case 21:
                            e.next = 30;
                            break;
                          case 23:
                            if (
                              ((e.prev = 23),
                              (e.t0 = e.catch(9)),
                              504 != e.t0.response.status ||
                                502 != e.t0.response.status)
                            ) {
                              e.next = 29;
                              break;
                            }
                            this.alternateWorker.bind(this)(t, n, r + 1, o, a),
                              (e.next = 30);
                            break;
                          case 29:
                            return e.abrupt("return");
                          case 30:
                            if (this.state.controlImportProcess) {
                              e.next = 32;
                              break;
                            }
                            return e.abrupt("return");
                          case 32:
                            i++, (e.next = 1);
                            break;
                          case 35:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[9, 23]]
                  );
                })
              )),
              function (e, t, r, o, a) {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "updateProgressBar",
            value: function (e) {
              this.loopCount = this.loopCount + 1;
              var t = e.result,
                n = e.completedPage,
                r = e.secondsToComplete;
              0 == t.success && this.timer && clearInterval(this.timer);
              var o = this.context.bulkImportData.totalRows,
                a = Math.ceil(o / this.bulkImportCount),
                i = a - n,
                s = n * this.bulkImportCount + 1,
                l = n * this.bulkImportCount + this.bulkImportCount;
              l > o && (l = o);
              var c = s + " - " + l;
              s > o && ((c = ""), this.timer && clearInterval(this.timer));
              var u = o - n * this.bulkImportCount;
              u < 0 && (u = 0),
                n != a
                  ? this.setState({ loading: !0 })
                  : this.setState({ loading: !1, importStatus: "Completed" }),
                this.setState({ remainingRecords: u, processingRecords: c });
              var d = {
                total_records: o,
                processing_records: s,
                remaining_records: u,
              };
              (this.remainingTime = r * i),
                this.secondsToHms(this.remainingTime),
                this.loadProgress(d);
            },
          },
          {
            key: "secondsToHms",
            value: function (e) {
              e = Number(e);
              var t = Math.floor(e / 3600),
                n = Math.floor((e % 3600) / 60),
                r = Math.floor((e % 3600) % 60);
              t.toString().length < 2 && (t = "0" + t),
                n.toString().length < 2 && (n = "0" + n),
                r.toString().length < 2 && (r = "0" + r);
              var o = t + ":" + n + ":" + r;
              this.setState({ remainingTime: o });
            },
          },
          {
            key: "stopWatch",
            value: function () {
              this.stopSeconds++,
                this.stopSeconds >= 60 &&
                  ((this.stopSeconds = 0),
                  this.stopMinutes++,
                  this.stopMinutes >= 60 &&
                    ((this.stopMinutes = 0), this.stopHours++)),
                this.stopHours.toString().length < 2 &&
                  (this.stopHours = "0" + this.stopHours),
                this.stopMinutes.toString().length < 2 &&
                  (this.stopMinutes = "0" + this.stopMinutes),
                this.stopSeconds.toString().length < 2 &&
                  (this.stopSeconds = "0" + this.stopSeconds);
              var e =
                this.stopHours +
                ":" +
                this.stopMinutes +
                ":" +
                this.stopSeconds;
              this.setState({ stopWatch: e });
            },
          },
          {
            key: "startRollBackMode",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              this.setState({ rollBackProgress: !0 }),
                              (t = new FormData()).set(
                                "action",
                                "rollback_now"
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            (n = e.sent),
                              this.setState({ rollBackProgress: !1 }),
                              (r = n.data).success
                                ? (this.context.setRollBackMode(!1),
                                  D.toast.success(r.message))
                                : D.toast.error(r.message);
                          case 10:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this,
                t = { width: this.state.progWidth + "%" },
                n =
                  (!this.state.loading && this.context.showImportLog,
                  this.context.bulkImportData),
                r = n.fileSize,
                a = n.fileName,
                i = n.totalRows;
              return o.a.createElement(
                "div",
                { className: "wp-ultimate-csv-importer" },
                o.a.createElement(
                  "div",
                  { className: " container" },
                  o.a.createElement(
                    "div",
                    { className: "row" },
                    o.a.createElement(
                      "div",
                      { className: "importer-log col-md-9" },
                      o.a.createElement(
                        "div",
                        { className: "card csv-importer-panel mt40 col-md-12" },
                        o.a.createElement(
                          "div",
                          { className: "card-body mb10" },
                          o.a.createElement(
                            "h4",
                            { className: "text-center" },
                            "Import ",
                            this.state.importStatus
                          ),
                          o.a.createElement(
                            "div",
                            { className: "row justify-content-center" },
                            o.a.createElement(
                              "div",
                              { className: "mt30 " },
                              "Completed" === this.state.importStatus
                                ? o.a.createElement(
                                    o.a.Fragment,
                                    null,
                                    o.a.createElement("input", {
                                      type: "button",
                                      className: "smack-btn btn-default",
                                      value: "Close",
                                      onClick: function (t) {
                                        e.context.setShowComponent(
                                          "upload-dashboard"
                                        ),
                                          window.location.reload();
                                      },
                                    }),
                                    this.context.rollBackMode
                                      ? o.a.createElement(
                                          o.a.Fragment,
                                          null,
                                          o.a.createElement("input", {
                                            type: "button",
                                            className:
                                              "ml20 smack-btn smack-btn-danger",
                                            value: "RoleBack Now",
                                            onClick: function (t) {
                                              e.startRollBackMode();
                                            },
                                          }),
                                          " ",
                                          this.state.rollBackProgress
                                            ? o.a.createElement("div", {
                                                className:
                                                  "btn ajax-loader loading",
                                                style: {
                                                  marginLeft: "25px",
                                                  marginRight: "0",
                                                  bottom: "5px",
                                                  padding: "0",
                                                },
                                              })
                                            : "",
                                          " "
                                        )
                                      : void 0
                                  )
                                : this.state.controlImportProcess
                                ? o.a.createElement("input", {
                                    type: "button",
                                    className: "smack-btn smack-btn-warning",
                                    value: "Pause",
                                    onClick: this.pauseBulkImport,
                                  })
                                : o.a.createElement("input", {
                                    type: "button",
                                    className: "smack-btn smack-btn-primary",
                                    value: "Resume",
                                    onClick: this.resumeBulkImport,
                                  })
                            )
                          ),
                          o.a.createElement(
                            "table",
                            { className: "table mt40" },
                            o.a.createElement(
                              "tbody",
                              null,
                              o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement(
                                  "td",
                                  { className: "text-left" },
                                  this.context.language.FileName,
                                  ":",
                                  " ",
                                  o.a.createElement("span", null, a)
                                ),
                                o.a.createElement(
                                  "td",
                                  { className: "text-right" },
                                  this.context.language.FileSize,
                                  ":",
                                  " ",
                                  o.a.createElement("span", null, r)
                                )
                              ),
                              o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement(
                                  "td",
                                  { className: "text-left" },
                                  this.context.language.Process,
                                  ":",
                                  " ",
                                  o.a.createElement(
                                    "span",
                                    null,
                                    this.context.csvInfo.replaceExistingItem
                                  )
                                ),
                                o.a.createElement(
                                  "td",
                                  { className: "text-right" },
                                  this.context.language.Totalnoofrecords,
                                  ":",
                                  " ",
                                  o.a.createElement("span", null, i)
                                )
                              ),
                              o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement(
                                  "td",
                                  { className: "text-left" },
                                  o.a.createElement(
                                    "span",
                                    {
                                      className:
                                        "font-weight-normal text-success",
                                    },
                                    " ",
                                    this.context.language
                                      .CurrentProcessingRecord,
                                    ":",
                                    " ",
                                    o.a.createElement(
                                      "span",
                                      null,
                                      this.state.processingRecords
                                    )
                                  )
                                ),
                                o.a.createElement(
                                  "td",
                                  { className: "text-right" },
                                  o.a.createElement(
                                    "span",
                                    {
                                      className:
                                        "font-weight-normal text-danger",
                                    },
                                    this.context.language.RemainingRecord,
                                    ":",
                                    " ",
                                    o.a.createElement(
                                      "span",
                                      null,
                                      this.state.remainingRecords
                                    )
                                  )
                                )
                              )
                            )
                          ),
                          o.a.createElement(
                            "div",
                            { className: "card-body px-3" },
                            o.a.createElement(
                              "div",
                              { className: "importing-details" },
                              o.a.createElement(
                                "div",
                                { className: "progress-status" },
                                "Processing" === this.state.importStatus
                                  ? "In Progress"
                                  : ""
                              ),
                              o.a.createElement(
                                "div",
                                { className: "import-progress" },
                                o.a.createElement(
                                  "div",
                                  { className: "progress-loading" },
                                  this.state.progWidth + "%",
                                  " ",
                                  this.context.language.Completed
                                ),
                                o.a.createElement(
                                  "div",
                                  { className: "progress-timing" },
                                  o.a.createElement("i", {
                                    className: "csv-icon-schedule",
                                  }),
                                  " ",
                                  this.context.language.TimeElapsed,
                                  ":",
                                  " ",
                                  o.a.createElement(
                                    "span",
                                    null,
                                    " ",
                                    this.state.stopWatch,
                                    "/",
                                    " "
                                  ),
                                  this.state.remainingTime,
                                  "(",
                                  this.context.language.approximate,
                                  ")"
                                )
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "progress mt5 mb40" },
                              o.a.createElement("div", {
                                className: "progress-bar",
                                style: t,
                                role: "progressbar",
                                "aria-valuenow": "10",
                                "aria-valuemin": "0",
                                "aria-valuemax": "100",
                              })
                            )
                          )
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      {
                        className: "cardprogress col-md-3 mt40 mb5 border-rad",
                      },
                      o.a.createElement(
                        "div",
                        { className: "mt0 mr10 tit" },
                        o.a.createElement(
                          "h2",
                          { className: "title" },
                          "Ultimate CSV Importer Pro"
                        ),
                        o.a.createElement("hr", { className: "divider" }),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " Update older posts from single import"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " Auto Schedule with reusable templates"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " Advanced Custom Field/Post Plugins Importer"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " Import/Update any Toolset Types, ACF pro / Free and Pods fields"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " AIO WooCommerce Importer"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " WPML Importer"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " SEO Plugins Data Importer"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " Exporter with advanced filters"
                          )
                        ),
                        o.a.createElement(
                          "a",
                          {
                            className: "basic-button border-rad mt25",
                            href:
                              "https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=promo_widget&utm_medium=pro_edition",
                            target: "blank",
                          },
                          "BUY NOW!"
                        )
                      )
                    )
                  )
                ),
                o.a.createElement("button", {
                  type: "button",
                  className: "d-none",
                  "data-toggle": "modal",
                  "data-target": "#displayLogText",
                  id: "triggerLog",
                }),
                o.a.createElement(
                  "div",
                  {
                    id: "displayLogText",
                    className: "modal fade",
                    role: "dialog",
                  },
                  o.a.createElement(
                    "div",
                    {
                      className: "modal-dialog modal-lg modal-dialog-centered",
                    },
                    o.a.createElement(
                      "div",
                      { className: "modal-content" },
                      o.a.createElement(
                        "div",
                        { className: "modal-header" },
                        o.a.createElement(
                          "h1",
                          { class: "main-heading" },
                          "Import Log for ",
                          this.state.fileName
                        ),
                        o.a.createElement(
                          "button",
                          {
                            type: "button",
                            className: "close",
                            "data-dismiss": "modal",
                          },
                          "×"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "modal-body my-2" },
                        o.a.createElement("div", { id: "showLogText" })
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        a
      );
    })(r.Component);
    function kt(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function xt(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = null != arguments[t] ? arguments[t] : {};
        t % 2
          ? kt(Object(n), !0).forEach(function (t) {
              M()(e, t, n[t]);
            })
          : Object.getOwnPropertyDescriptors
          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
          : kt(Object(n)).forEach(function (t) {
              Object.defineProperty(
                e,
                t,
                Object.getOwnPropertyDescriptor(n, t)
              );
            });
      }
      return e;
    }
    function Mt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(wt, "contextType", E);
    var Et = (function (e) {
      h()(r, e);
      var t,
        n = Mt(r);
      function r() {
        var e;
        l()(this, r);
        for (var t = arguments.length, o = new Array(t), a = 0; a < t; a++)
          o[a] = arguments[a];
        return (
          (e = n.call.apply(n, [this].concat(o))),
          M()(k()(e), "state", {
            loading: !1,
            zipCsvFileName: [],
            zipCsvUrls: [],
            zipSelectedFileUrl: "",
          }),
          e
        );
      }
      return (
        u()(r, [
          {
            key: "onFilePondProcess",
            value: function (e, t, n, o, a, i, s) {
              var l = new FormData();
              l.append("csvFile", t, t.name), l.append("action", "get_desktop");
              var c = new XMLHttpRequest();
              return (
                c.open("POST", ajaxurl),
                (c.upload.onprogress = function (e) {
                  i(e.lengthComputable, e.loaded, e.total);
                }),
                (c.onload = function () {
                  if (c.status >= 200 && c.status < 300) {
                    o(JSON.parse(c.responseText));
                    var e = JSON.parse(c.responseText);
                    (r.filePondResponse = e),
                      r.filePondResponse.success
                        ? (r.showRecord = !0)
                        : ((r.showRecord = !1),
                          D.toast.error(r.filePondResponse.message));
                  } else a("oh no");
                }),
                c.send(l),
                {
                  abort: function () {
                    c.abort(), s();
                  },
                }
              );
            },
          },
          {
            key: "onProcessFile",
            value: function () {
              if (
                "csv" === r.filePondResponse.file_type ||
                "xml" === r.filePondResponse.file_type ||
                "txt" === r.filePondResponse.file_type
              )
                return (
                  this.context.setCSVInfo(
                    xt(
                      xt({}, this.context.csvInfo),
                      {},
                      {
                        hashKey: r.filePondResponse.hashkey,
                        templateName: r.filePondResponse.filename.slice(0, -4),
                        selectedtype: r.filePondResponse.selectedtype,
                        fileName: r.filePondResponse.filename,
                        connectionType: "desktop",
                        postTypes: r.filePondResponse.posttype,
                        fileSize: r.filePondResponse.file_size,
                        fileType: r.filePondResponse.file_type,
                      }
                    )
                  ),
                  "xml" === r.filePondResponse.file_type
                    ? this.context.setIsXML(!0)
                    : this.context.setIsXML(!1),
                  void this.context.setShowComponent("csv-info")
                );
              if ("zip" === r.filePondResponse.file_type) {
                for (var e = 0; e < r.filePondResponse.info.length; e++)
                  this.state.zipCsvFileName.push(
                    r.filePondResponse.info[e].name
                  ),
                    this.state.zipCsvUrls.push(r.filePondResponse.info[e].path);
                return (
                  this.context.setCSVInfo(
                    xt(
                      xt({}, this.context.csvInfo),
                      {},
                      { connectionType: "desktop" }
                    )
                  ),
                  void this.setState(
                    {
                      zipCsvFileName: this.state.zipCsvFileName,
                      zipCsvUrls: this.state.zipCsvUrls,
                    },
                    function () {
                      document.getElementById("desk-csv-open").click();
                    }
                  )
                );
              }
            },
          },
          { key: "onRemoveFile", value: function () {} },
          {
            key: "sendFileUrl",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, o;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set("action", "get_csv_url"),
                              t.set("url", this.context.selectedFileUrl),
                              this.setState({ loading: !0 }),
                              (e.prev = 4),
                              (e.next = 7),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 7:
                            if (!(n = e.sent) || !n.data) {
                              e.next = 14;
                              break;
                            }
                            if (200 != n.status || !n.data.success) {
                              e.next = 14;
                              break;
                            }
                            return (
                              this.context.setCSVInfo(
                                xt(
                                  xt({}, this.context.csvInfo),
                                  {},
                                  ((o = {
                                    hashKey: n.data.hashkey,
                                    templateName: r.filePondResponse.filename.slice(
                                      0,
                                      -4
                                    ),
                                    selectedtype: n.data.selectedtype,
                                  }),
                                  M()(o, "templateName", "From-url"),
                                  M()(o, "postTypes", n.data.posttype),
                                  M()(o, "fileName", n.data.filename),
                                  M()(o, "fileType", n.data.file_type),
                                  M()(o, "fileSize", n.data.file_size),
                                  o)
                                )
                              ),
                              document.getElementById("desk-csv-close").click(),
                              this.context.setShowComponent("csv-info"),
                              e.abrupt("return")
                            );
                          case 14:
                            e.next = 19;
                            break;
                          case 16:
                            (e.prev = 16),
                              (e.t0 = e.catch(4)),
                              console.log(e.t0);
                          case 19:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[4, 16]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                {
                  class: "col-md-9 ".concat(
                    r.showRecord && this.state.showImportRecord ? "min" : ""
                  ),
                },
                o.a.createElement(
                  "div",
                  { className: "tab-content", id: "v-pills-tabContent" },
                  o.a.createElement(
                    "div",
                    {
                      className: "tab-pane fade show active",
                      id: "v-pills-home",
                      role: "tabpanel",
                      "aria-labelledby": "v-pills-home-tab",
                      style: { height: "150%" },
                    },
                    o.a.createElement(ct.FilePond, {
                      acceptedFileTypes: ["text/csv/xml"].zip,
                      allowMultiple: !1,
                      maxFiles: 1,
                      server: { process: this.onFilePondProcess.bind(this) },
                      onprocessfile: this.onProcessFile.bind(this),
                      onremovefile: this.onRemoveFile.bind(this),
                    })
                  )
                ),
                o.a.createElement(
                  "a",
                  {
                    href: "#",
                    className: "smack-btn smack-btn-primary d-none",
                    id: "desk-csv-open",
                    "data-toggle": "modal",
                    "data-target": "#upload_csv",
                  },
                  this.context.language.UploadedCSVFileLists
                ),
                o.a.createElement(
                  "div",
                  {
                    id: "upload_csv",
                    className: "modal fade payment_modal",
                    role: "dialog",
                  },
                  o.a.createElement(
                    "div",
                    {
                      className: "modal-dialog modal-lg modal-dialog-centered",
                    },
                    o.a.createElement(
                      "div",
                      { className: "modal-content" },
                      o.a.createElement(
                        "div",
                        { className: "modal-header" },
                        o.a.createElement(
                          "button",
                          {
                            type: "button",
                            id: "desk-csv-close",
                            className: "close",
                            "data-dismiss": "modal",
                          },
                          "×"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "modal-body my-2" },
                        o.a.createElement(
                          "ul",
                          null,
                          this.state.zipCsvFileName.map(function (t, n) {
                            return o.a.createElement(
                              "li",
                              null,
                              o.a.createElement(
                                "div",
                                { className: "form-check form-check-inline" },
                                o.a.createElement(
                                  "label",
                                  { class: "form-check-label" },
                                  o.a.createElement("input", {
                                    className: "form-check-input",
                                    onClick: function (t) {
                                      t.target.checked &&
                                        e.context.setSelectedFileUrl(
                                          e.state.zipCsvUrls[n]
                                        );
                                    },
                                    type: "radio",
                                    name: "post-item",
                                    id: "",
                                  }),
                                  " ",
                                  t
                                )
                              )
                            );
                          })
                        ),
                        o.a.createElement(
                          "div",
                          { className: "float-right" },
                          o.a.createElement("input", {
                            type: "button",
                            className: "smack-btn smack-btn-primary mb20",
                            onClick: this.sendFileUrl.bind(this),
                            value: "Choose CSV File",
                          })
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        r
      );
    })(r.Component);
    function Tt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(Et, "contextType", E);
    var St = (function (e) {
      h()(a, e);
      var t,
        n,
        r = Tt(a);
      function a() {
        var e;
        l()(this, a);
        for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
          n[o] = arguments[o];
        return (
          (e = r.call.apply(r, [this].concat(n))),
          M()(k()(e), "state", {
            loading: !1,
            checkSimilarity: !0,
            customFields: [],
            mediaZipFileNames: [],
            mediaUploadData: { zipFileName: "", data: [] },
          }),
          M()(k()(e), "formulaIconOnClick", function (e, t) {
            if (
              document
                .getElementById("".concat(e, "-").concat(t, "-csv-icon-sum"))
                .classList.contains("active")
            ) {
              var n = document.getElementById(
                "".concat(e, "-").concat(t, "-manipulative-screen")
              );
              n.classList.contains("active")
                ? n.classList.remove("active")
                : n.classList.add("active");
            } else D.toast.info("Please choose Header Manipulation in the drop down");
          }),
          M()(k()(e), "sumIconOnClick", function (e, t) {
            if (
              document
                .getElementById("".concat(e, "-").concat(t, "-csv-icon-plus"))
                .classList.contains("active")
            ) {
              var n = document.getElementById(
                "".concat(e, "-").concat(t, "-static-manipulative-screen")
              );
              n.classList.contains("active")
                ? n.classList.remove("active")
                : n.classList.add("active");
            } else D.toast.info("Please choose Header Manipulation in the drop down");
          }),
          e
        );
      }
      return (
        u()(a, [
          {
            key: "isSimilar",
            value: function (e, t, n) {
              if (this.context.mappingResult) {
                var r = ht(e).resultKey;
                if (
                  this.context.mappingResult[r] &&
                  this.context.mappingResult[r][t] === n
                )
                  return !0;
              }
              return (
                !(
                  t.toLowerCase() !== n.toLowerCase() ||
                  !this.state.checkSimilarity
                ) && (this.onMappingSelect(e, t, n, !1), !0)
              );
            },
          },
          {
            key: "onMappingSelect",
            value: function (e, t, n) {
              var r =
                  !(arguments.length > 3 && void 0 !== arguments[3]) ||
                  arguments[3],
                o =
                  arguments.length > 4 && void 0 !== arguments[4]
                    ? arguments[4]
                    : -1,
                a = ht(e).resultKey,
                i = this.context.mappingResult[a];
              if (-1 != o) {
                var s = document.getElementById(
                    "".concat(e, "-").concat(o, "-csv-icon-sum")
                  ),
                  l = document.getElementById(
                    "".concat(e, "-").concat(o, "-csv-icon-plus")
                  );
                "Header Manipulation" === n
                  ? (s.classList.add("active"), l.classList.add("active"))
                  : (s.classList.remove("active"),
                    l.classList.remove("active"));
              }
              if ("--select--" === n || "Header Manipulation" === n)
                return i
                  ? void (
                      this.context.mappingResult[a][t] &&
                      (delete this.context.mappingResult[a][t],
                      this.setState({ checkSimilarity: !1 }),
                      this.context.setMappingResult(this.context.mappingResult))
                    )
                  : void 0;
              i
                ? r
                  ? (this.context.mappingResult[a][t] = n)
                  : this.context.mappingResult[a][t] ||
                    (this.context.mappingResult[a][t] = n)
                : ((this.context.mappingResult[a] = {}),
                  (this.context.mappingResult[a][t] = n)),
                this.setState({ checkSimilarity: !1 }),
                this.context.setMappingResult(this.context.mappingResult);
            },
          },
          {
            key: "isHeaderManipulation",
            value: function (e, t, n) {
              var r = ht(e).resultKey;
              return (
                !(
                  !this.context.mappingResult[r] ||
                  !this.context.mappingResult[r][t] ||
                  pt(this.context.csvFields, this.context.mappingResult[r][t])
                ) &&
                (setInterval(function () {
                  var t = document.getElementById(
                      "".concat(e, "-").concat(n, "-csv-icon-sum")
                    ),
                    r = document.getElementById(
                      "".concat(e, "-").concat(n, "-csv-icon-plus")
                    );
                  t &&
                    !t.classList.contains("active") &&
                    t.classList.add("active"),
                    r &&
                      !r.classList.contains("active") &&
                      r.classList.add("active");
                }, 500),
                !0)
              );
            },
          },
          {
            key: "getFieldValueFromResult",
            value: function (e, t) {
              var n = ht(e).resultKey;
              return this.context.mappingResult[n] &&
                this.context.mappingResult[n][t]
                ? this.context.mappingResult[n][t]
                : "";
            },
          },
          {
            key: "getFieldValueFromCustomFields",
            value: function (e) {
              var t = this.state.customFields[e];
              if (t) return t.value;
            },
          },
          {
            key: "addCustomField",
            value: function () {
              this.state.customFields.push({ name: "", label: "", value: "" }),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onCustomFieldLabelChange",
            value: function (e, t) {
              (this.state.customFields[t].label = e),
                (this.state.customFields[t].name = e
                  .trim()
                  .replace(/\s+/g, "-")
                  .toLowerCase()),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "deleteCustomField",
            value: function (e) {
              this.state.customFields.splice(e, 1),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onCustomFieldValueSelect",
            value: function (e, t) {
              var n = document.getElementById(
                  "custom-field-creator-".concat(t, "-csv-icon-sum")
                ),
                r = document.getElementById(
                  "custom-field-creator-".concat(t, "-csv-icon-plus")
                );
              if ("Header Manipulation" === e)
                return (
                  n.classList.add("active"),
                  r.classList.add("active"),
                  (this.state.customFields[t].value = ""),
                  void this.setState({ customFields: this.state.customFields })
                );
              (this.state.customFields[t].value = "--select--" === e ? "" : e),
                n.classList.remove("active"),
                r.classList.remove("active");
            },
          },
          {
            key: "onCustomFieldValueChange",
            value: function (e, t) {
              (this.state.customFields[t].value = e),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onZipProcess",
            value: function (e, t, n, r, o, a, i) {
              var s = new FormData();
              s.append("zipFile", t, t.name), s.append("action", "zip_upload");
              var l = new XMLHttpRequest();
              return (
                l.open("POST", ajaxurl),
                (l.upload.onprogress = function (e) {
                  a(e.lengthComputable, e.loaded, e.total);
                }),
                (l.onload = function () {
                  if (l.status >= 200 && l.status < 300) {
                    r(JSON.parse(l.responseText));
                    var e = JSON.parse(l.responseText);
                    if (e.success)
                      if (null == e.filename)
                        D.toast.info(
                          "There is no image files in the uploaded zip file"
                        );
                      else {
                        this.setState({ mediaZipFileNames: e.filename }),
                          document.getElementById("upload-zip-open").click();
                        for (
                          var t = [], n = e.filename.length, a = 0;
                          a < n;
                          a++
                        )
                          t.push({ filename: e.filename[a], size: e.size[a] });
                        (this.state.mediaUploadData.zipFileName =
                          e.zip_file_name),
                          (this.state.mediaUploadData.data = t),
                          this.setState(
                            { mediaUploadData: this.state.mediaUploadData },
                            function () {}
                          );
                      }
                    else D.toast.error(e.message);
                  } else o("oh no");
                }.bind(this)),
                l.send(s),
                {
                  abort: function () {
                    l.abort(), i();
                  },
                }
              );
            },
          },
          {
            key: "deleteImage",
            value:
              ((n = y()(
                v.a.mark(function e(t, n) {
                  var r, o;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (r = new FormData()).set(
                                "action",
                                "delete_image"
                              ),
                              r.set("image", t),
                              (e.prev = 3),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: r,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            (o = e.sent) &&
                              o.data &&
                              200 == o.status &&
                              o.data.success &&
                              (this.state.mediaUploadData.data.splice(n, 1),
                              this.setState({
                                mediaZipFileNames: this.state.mediaZipFileNames,
                              })),
                              (e.next = 13);
                            break;
                          case 10:
                            (e.prev = 10),
                              (e.t0 = e.catch(3)),
                              console.log(e.t0);
                          case 13:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[3, 10]]
                  );
                })
              )),
              function (e, t) {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "checkMandatory",
            value: function () {
              for (
                var e = [
                    "language_code",
                    "translated_post_title",
                    "translated_taxonomy_title",
                    "user_login",
                    "user_email",
                    "post_title",
                  ],
                  t = 0;
                t < this.context.allPluginFields.length;
                t++
              ) {
                var n = this.context.allPluginFields[t];
                for (var r in n) {
                  var o = n[r];
                  if (o)
                    for (var a = 0; a < o.length; a++)
                      if (
                        e.includes(o[a].name) &&
                        !this.checkKeyExistInMapping(o[a].name)
                      )
                        return !1;
                }
              }
              return !0;
            },
          },
          {
            key: "checkKeyExistInMapping",
            value: function (e) {
              var t = !1;
              for (var n in this.context.mappingResult) {
                if (this.context.mappingResult[n])
                  Object.keys(this.context.mappingResult[n]).includes(e) &&
                    this.context.mappingResult[n][e] &&
                    (t = !0);
              }
              return !!t || (D.toast.error(e + " is mandatory field"), !1);
            },
          },
          {
            key: "sendMappedFields",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r, o, a;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if (this.state.customFields)
                              for (
                                t = 0;
                                t < this.state.customFields.length;
                                t++
                              )
                                (n = this.state.customFields[t]),
                                  (r = n.name.trim()),
                                  n.value &&
                                    r &&
                                    (this.context.mappingResult
                                      .CORECUSTFIELDS ||
                                      (this.context.mappingResult.CORECUSTFIELDS = {}),
                                    (this.context.mappingResult.CORECUSTFIELDS[
                                      n.name
                                    ] = n.value));
                            if (this.checkMandatory()) {
                              e.next = 3;
                              break;
                            }
                            return e.abrupt("return");
                          case 3:
                            return (
                              this.context.setMappingType("mapping-section"),
                              (o = new FormData()).set(
                                "action",
                                "saveMappedFields"
                              ),
                              o.set("HashKey", this.context.csvInfo.hashKey),
                              o.set("Types", this.context.csvInfo.selectedtype),
                              o.set(
                                "MappedFields",
                                JSON.stringify(this.context.mappingResult)
                              ),
                              o.set("MappingType", "mapping-section"),
                              this.setState({ loading: !0 }),
                              (e.prev = 11),
                              (e.next = 14),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: o,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 14:
                            (a = e.sent) &&
                              a.data &&
                              (200 == a.status && a.data.success
                                ? (this.setState({ loading: !1 }),
                                  "WooCommerce Orders" ===
                                    this.context.csvInfo.selectedtype ||
                                  "WooCommerce Coupons" ===
                                    this.context.csvInfo.selectedtype ||
                                  "WooCommerce Product Variations" ===
                                    this.context.csvInfo.selectedtype ||
                                  "WooCommerce Refunds" ===
                                    this.context.csvInfo.selectedtype ||
                                  "WooCommerce Attributes" ===
                                    this.context.csvInfo.selectedtype ||
                                  "Users" ===
                                    this.context.csvInfo.selectedtype ||
                                  "Comments" ===
                                    this.context.csvInfo.selectedtype ||
                                  "nav_menu_item" ===
                                    this.context.csvInfo.selectedtype ||
                                  "widgets" ===
                                    this.context.csvInfo.selectedtype
                                    ? this.context.setShowComponent(
                                        "import-config"
                                      )
                                    : this.context.setShowComponent(
                                        "media-handling"
                                      ))
                                : this.setState({ loading: !1 })),
                              (e.next = 21);
                            break;
                          case 18:
                            (e.prev = 18),
                              (e.t0 = e.catch(11)),
                              this.setState({ loading: !1 });
                          case 21:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[11, 18]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "container", id: "mapping-accordion" },
                o.a.createElement("div", { className: "clearfix" }),
                o.a.createElement(
                  "div",
                  { className: "d-flex justify-content-center" },
                  o.a.createElement(
                    "div",
                    { className: "col-md-6" },
                    o.a.createElement(
                      "ul",
                      { className: "mapping-switcher" },
                      o.a.createElement(
                        "li",
                        {
                          className: "active",
                          onClick: function () {
                            e.context.setShowComponent("mapping-section");
                          },
                        },
                        this.context.language.ADVANCEDMODE
                      ),
                      o.a.createElement(
                        "li",
                        {
                          onClick: function () {
                            e.context.setShowComponent("dragdrop-section");
                          },
                        },
                        this.context.language.DRAGDROPMODE
                      )
                    )
                  )
                ),
                o.a.createElement("div", { className: "clearfix" }),
                o.a.createElement("div", { className: "mt50" }),
                this.context.allPluginFields.map(function (t, n) {
                  var r = Object.keys(t)[0];
                  if (!ht(r)) return o.a.createElement("div", null);
                  var a = !1;
                  return (
                    r || (a = !0),
                    t[r] ||
                    Array.isArray(t[r]) ||
                    ((a = !0), "wordpress_custom_fields" === r)
                      ? a
                        ? void 0
                        : o.a.createElement(
                            "div",
                            null,
                            o.a.createElement(
                              "div",
                              { className: "card csv-importer-panel " },
                              o.a.createElement(
                                "h1",
                                {
                                  className: "card-header main-heading ".concat(
                                    0 == n ? "active" : ""
                                  ),
                                  id: r,
                                  onClick: function () {
                                    toggle_func(r);
                                  },
                                },
                                e.context.language[ht(r).languageName],
                                " ",
                                o.a.createElement("span", {
                                  className: "csv-icon-angle-down float-right",
                                })
                              ),
                              o.a.createElement(
                                "div",
                                {
                                  className: "card-body",
                                  id: "".concat(r, "-body"),
                                  style: { display: 0 == n ? "block" : "none" },
                                },
                                o.a.createElement(
                                  "table",
                                  { className: "table table-mapping" },
                                  o.a.createElement(
                                    "thead",
                                    null,
                                    o.a.createElement(
                                      "tr",
                                      null,
                                      o.a.createElement(
                                        "th",
                                        null,
                                        e.context.language.WPFIELDS
                                      ),
                                      o.a.createElement(
                                        "th",
                                        null,
                                        e.context.language.CSVHEADER
                                      ),
                                      o.a.createElement(
                                        "th",
                                        null,
                                        e.context.language.Action
                                      )
                                    )
                                  ),
                                  o.a.createElement(
                                    "tbody",
                                    null,
                                    t[r].map(function (t, n) {
                                      return o.a.createElement(
                                        "tr",
                                        null,
                                        o.a.createElement(
                                          "td",
                                          null,
                                          o.a.createElement(
                                            "label",
                                            { className: "wpfields" },
                                            t.label
                                          ),
                                          o.a.createElement(
                                            "label",
                                            { className: "sub-text" },
                                            "[",
                                            e.context.language.Name,
                                            ": ",
                                            t.name,
                                            "] "
                                          )
                                        ),
                                        o.a.createElement(
                                          "td",
                                          null,
                                          o.a.createElement(
                                            "select",
                                            {
                                              className:
                                                "select form-control w-75",
                                              onChange: function (o) {
                                                e.onMappingSelect.bind(e)(
                                                  r,
                                                  t.name,
                                                  o.target.value,
                                                  !0,
                                                  n
                                                );
                                              },
                                            },
                                            o.a.createElement(
                                              "optgroup",
                                              { label: ht(r).name },
                                              o.a.createElement(
                                                "option",
                                                null,
                                                "--select--"
                                              ),
                                              e.context.csvFields.map(function (
                                                n
                                              ) {
                                                return o.a.createElement(
                                                  "option",
                                                  {
                                                    selected: e.isSimilar(
                                                      r,
                                                      t.name,
                                                      n
                                                    ),
                                                  },
                                                  n
                                                );
                                              }),
                                              o.a.createElement(
                                                "option",
                                                {
                                                  selected: e.isHeaderManipulation(
                                                    r,
                                                    t.name,
                                                    n
                                                  ),
                                                },
                                                "Header Manipulation"
                                              )
                                            )
                                          )
                                        ),
                                        o.a.createElement(
                                          "td",
                                          { className: "action" },
                                          o.a.createElement(
                                            "a",
                                            {
                                              className: "action-icon",
                                              "data-toggle": "tooltip",
                                              title: "Static",
                                            },
                                            o.a.createElement("i", {
                                              id: ""
                                                .concat(r, "-")
                                                .concat(n, "-csv-icon-plus"),
                                              className: "csv-icon-plus-square",
                                              onClick: function () {
                                                e.sumIconOnClick(r, n);
                                              },
                                            }),
                                            o.a.createElement(
                                              "div",
                                              {
                                                id: ""
                                                  .concat(r, "-")
                                                  .concat(
                                                    n,
                                                    "-static-manipulative-screen"
                                                  ),
                                                className:
                                                  "manipulation-screen",
                                              },
                                              o.a.createElement(
                                                "div",
                                                {
                                                  className: "close",
                                                  onClick: function () {
                                                    e.sumIconOnClick(r, n);
                                                  },
                                                },
                                                "×"
                                              ),
                                              o.a.createElement("div", {
                                                className: "clearfix",
                                              }),
                                              o.a.createElement(
                                                "div",
                                                { className: "form-group" },
                                                o.a.createElement("textarea", {
                                                  onChange: function (n) {
                                                    e.onMappingSelect.bind(e)(
                                                      r,
                                                      t.name,
                                                      n.target.value
                                                    );
                                                  },
                                                  value: e.getFieldValueFromResult(
                                                    r,
                                                    t.name
                                                  ),
                                                  className: "form-control",
                                                })
                                              ),
                                              o.a.createElement(
                                                "div",
                                                { className: "csv-hint" },
                                                o.a.createElement(
                                                  "b",
                                                  null,
                                                  e.context.language.HINT,
                                                  " :"
                                                ),
                                                " Specify the CSV header to be added in between the curley braces(",
                                                ").",
                                                o.a.createElement(
                                                  "div",
                                                  { className: "d-block" },
                                                  o.a.createElement(
                                                    "b",
                                                    null,
                                                    e.context.language.Example,
                                                    " : "
                                                  ),
                                                  " ",
                                                  "{post_title}",
                                                  " "
                                                )
                                              )
                                            )
                                          ),
                                          o.a.createElement(
                                            "a",
                                            {
                                              className: "action-icon",
                                              "data-toggle": "tooltip",
                                              title: "Formula",
                                            },
                                            o.a.createElement("i", {
                                              id: ""
                                                .concat(r, "-")
                                                .concat(n, "-csv-icon-sum"),
                                              className: "csv-icon-sum",
                                              onClick: function (t) {
                                                e.formulaIconOnClick(r, n);
                                              },
                                            }),
                                            o.a.createElement(
                                              "div",
                                              {
                                                id: ""
                                                  .concat(r, "-")
                                                  .concat(
                                                    n,
                                                    "-manipulative-screen"
                                                  ),
                                                className:
                                                  "manipulation-screen",
                                              },
                                              o.a.createElement(
                                                "span",
                                                {
                                                  className: "close",
                                                  onClick: function () {
                                                    e.formulaIconOnClick(r, n);
                                                  },
                                                },
                                                "×"
                                              ),
                                              o.a.createElement("div", {
                                                className: "clearfix",
                                              }),
                                              o.a.createElement(
                                                "div",
                                                { className: "form-group" },
                                                o.a.createElement("textarea", {
                                                  onChange: function (n) {
                                                    e.onMappingSelect.bind(e)(
                                                      r,
                                                      t.name,
                                                      n.target.value
                                                    );
                                                  },
                                                  value: e.getFieldValueFromResult(
                                                    r,
                                                    t.name
                                                  ),
                                                  class: "form-control",
                                                })
                                              ),
                                              o.a.createElement(
                                                "div",
                                                { className: "csv-hint" },
                                                o.a.createElement(
                                                  "b",
                                                  null,
                                                  e.context.language.HIN,
                                                  " :"
                                                ),
                                                " Specify operator(+,-,*,/) and CSV header as operand in MATH() within ",
                                                o.a.createElement(
                                                  "div",
                                                  { class: "d-block" },
                                                  o.a.createElement(
                                                    "b",
                                                    null,
                                                    e.context.language.Example,
                                                    " :"
                                                  ),
                                                  " ",
                                                  "MATH ({product_quantity}/{discount_price})",
                                                  " "
                                                )
                                              )
                                            )
                                          )
                                        )
                                      );
                                    })
                                  )
                                )
                              )
                            )
                          )
                      : o.a.createElement(
                          "div",
                          { className: "card csv-importer-panel " },
                          o.a.createElement(
                            "h1",
                            {
                              className:
                                "card-header main-heading bg-white pro-tag",
                            },
                            e.context.language[ht(r).languageName],
                            " "
                          )
                        )
                  );
                }),
                o.a.createElement(
                  "div",
                  { class: "col-md-12 mt40 p0" },
                  o.a.createElement(
                    "div",
                    { class: "float-left" },
                    o.a.createElement(
                      "button",
                      {
                        type: "button",
                        class: "smack-btn btn-default",
                        onClick: function () {
                          e.context.setShowComponent("upload-dashboard");
                        },
                      },
                      "Back"
                    )
                  ),
                  o.a.createElement(
                    "div",
                    { className: "float-right mb20" },
                    this.state.loading
                      ? this.context.loaderText
                      : o.a.createElement(
                          "button",
                          {
                            className: "smack-btn smack-btn-primary",
                            onClick: this.sendMappedFields.bind(this),
                          },
                          this.context.language.Continue
                        )
                  )
                ),
                o.a.createElement("a", {
                  href: "#",
                  className: "smack-btn smack-btn-primary d-none",
                  id: "upload-zip-open",
                  "data-toggle": "modal",
                  "data-target": "#upload_media",
                }),
                o.a.createElement(
                  "div",
                  {
                    id: "upload_media",
                    className: "modal fade payment_modal active",
                    role: "dialog",
                  },
                  o.a.createElement(
                    "div",
                    {
                      className: "modal-dialog modal-lg modal-dialog-centered",
                    },
                    o.a.createElement(
                      "div",
                      { className: "modal-content" },
                      o.a.createElement(
                        "div",
                        { className: "modal-header border  border-0" },
                        o.a.createElement(
                          "h1",
                          { className: "main-heading text-center py-1 m-auto" },
                          this.state.mediaUploadData.zipFileName
                        ),
                        o.a.createElement(
                          "button",
                          {
                            type: "button",
                            className: "close ml0",
                            "data-dismiss": "modal",
                          },
                          "×"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "modal-body my-2" },
                        o.a.createElement(
                          "table",
                          { className: "table table-striped" },
                          o.a.createElement(
                            "thead",
                            null,
                            o.a.createElement(
                              "tr",
                              null,
                              o.a.createElement(
                                "th",
                                null,
                                this.context.language.Name
                              ),
                              o.a.createElement(
                                "th",
                                null,
                                this.context.language.Size
                              ),
                              o.a.createElement(
                                "th",
                                { class: "text-center" },
                                this.context.language.Action
                              )
                            )
                          ),
                          o.a.createElement(
                            "tbody",
                            null,
                            this.state.mediaUploadData.data.map(function (
                              t,
                              n
                            ) {
                              return o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement("td", null, t.filename),
                                o.a.createElement("td", null, t.size),
                                o.a.createElement(
                                  "td",
                                  null,
                                  o.a.createElement(
                                    "a",
                                    {
                                      className: "action-icon",
                                      onClick: function (r) {
                                        e.deleteImage(t.filename, n);
                                      },
                                      "data-toggle": "tooltip",
                                      title: "Delete",
                                    },
                                    o.a.createElement("i", {
                                      className: "csv-icon-trash-2",
                                    })
                                  )
                                )
                              );
                            })
                          )
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        a
      );
    })(r.Component);
    M()(St, "contextType", E);
    var Dt = n(23),
      Lt = n(55),
      Ct = n.n(Lt),
      Pt = n(56),
      Ot = n.n(Pt);
    function Nt(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function At(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = null != arguments[t] ? arguments[t] : {};
        t % 2
          ? Nt(Object(n), !0).forEach(function (t) {
              M()(e, t, n[t]);
            })
          : Object.getOwnPropertyDescriptors
          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
          : Nt(Object(n)).forEach(function (t) {
              Object.defineProperty(
                e,
                t,
                Object.getOwnPropertyDescriptor(n, t)
              );
            });
      }
      return e;
    }
    function It(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Rt = (function (e) {
      h()(a, e);
      var t,
        n,
        r = It(a);
      function a(e) {
        var t;
        return (
          l()(this, a),
          ((t = r.call(this, e)).state = {
            loading: !1,
            initialRowSize: 1,
            totalCsvRows: "",
            csvInformation: [],
            currentMode: "draganddrop",
            customFields: [],
            xmlData: [],
          }),
          (t.csvInformation = []),
          (t.handleScroll = t.handleScroll.bind(k()(t))),
          t
        );
      }
      return (
        u()(a, [
          {
            key: "componentDidMount",
            value: function () {
              this.checkRTLSupport(),
                this.getCsvFields(this.state.initialRowSize),
                window.addEventListener("scroll", this.handleScroll);
            },
          },
          {
            key: "componentWillUnmount",
            value: function () {
              window.removeEventListener("scroll", this.handleScroll);
            },
          },
          {
            key: "checkRTLSupport",
            value: function () {
              document.querySelector("html").getAttribute("dir") &&
                document
                  .getElementById("mapping-sidebar")
                  .classList.add("rltsupport");
            },
          },
          {
            key: "handleScroll",
            value: function (e) {
              var t = document.getElementById("mapping-sidebar"),
                n =
                  document.getElementById("mapping-accordion").offsetHeight -
                  300;
              window.scrollY > 200
                ? (t.classList.add("mapping-sidebar-fixed"),
                  window.scrollY > n
                    ? t.classList.add("fixed-bottom-position")
                    : t.classList.remove("fixed-bottom-position"))
                : t.classList.remove("mapping-sidebar-fixed");
            },
          },
          {
            key: "getCsvFields",
            value:
              ((n = y()(
                v.a.mark(function e(t) {
                  var n, r, o, a, i;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (n = new FormData()),
                              this.context.isXML
                                ? n.set("action", "get_parse_xml")
                                : n.set("action", "displayCSV"),
                              n.set("row", t),
                              this.props.fromEditTemplate
                                ? n.set(
                                    "templatename",
                                    this.context.csvInfo.templateName
                                  )
                                : n.set(
                                    "HashKey",
                                    this.context.csvInfo.hashKey
                                  ),
                              this.setState({ loading: !0 }),
                              (e.prev = 5),
                              (e.next = 8),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: n,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 8:
                            if (
                              (r = e.sent) &&
                              r.data &&
                              200 == r.status &&
                              r.data.success
                            ) {
                              if (this.context.isXML)
                                this.setState({ xmlData: r.data.xml_array });
                              else {
                                for (
                                  o = [],
                                    a = [],
                                    this.csvInformation = [],
                                    i = 0;
                                  i < r.data.Headers.length;
                                  i++
                                )
                                  o.push(r.data.Headers[i]),
                                    a.push(r.data.Values[i]);
                                for (i = 0; i < r.data.Headers.length; i++)
                                  this.csvInformation.push({
                                    csvHeaders: r.data.Headers[i],
                                    csvValues: r.data.Values[i],
                                  });
                              }
                              this.setState({
                                totalCsvRows: r.data.total_rows,
                                loading: !1,
                              });
                            }
                            e.next = 15;
                            break;
                          case 12:
                            (e.prev = 12),
                              (e.t0 = e.catch(5)),
                              console.log(e.t0);
                          case 15:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[5, 12]]
                  );
                })
              )),
              function (e) {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "onMappingSelect",
            value: function (e, t, n) {
              var r =
                  !(arguments.length > 3 && void 0 !== arguments[3]) ||
                  arguments[3],
                o = ht(e).resultKey,
                a = this.context.dragAndDropMappingResult[o];
              a
                ? r
                  ? (this.context.dragAndDropMappingResult[o][t] = n)
                  : this.context.dragAndDropMappingResult[o][t]
                  ? (this.context.dragAndDropMappingResult[o][t] += n)
                  : (this.context.dragAndDropMappingResult[o][t] = n)
                : ((this.context.dragAndDropMappingResult[o] = {}),
                  (this.context.dragAndDropMappingResult[o][t] = n)),
                this.forceUpdate();
            },
          },
          {
            key: "addCustomField",
            value: function () {
              this.state.customFields.push({ name: "", label: "", value: "" }),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onCustomFieldLabelChange",
            value: function (e, t) {
              (this.state.customFields[t].label = e),
                (this.state.customFields[t].name = e
                  .trim()
                  .replace(/\s+/g, "-")
                  .toLowerCase()),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onCustomFieldValueChange",
            value: function (e, t) {
              var n =
                !(arguments.length > 2 && void 0 !== arguments[2]) ||
                arguments[2];
              n
                ? (this.state.customFields[t].value = e)
                : (this.state.customFields[t].value += e),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "deleteCustomField",
            value: function (e) {
              this.state.customFields.splice(e, 1),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "checkMandatory",
            value: function () {
              for (
                var e = [
                    "language_code",
                    "translated_post_title",
                    "translated_taxonomy_title",
                    "user_login",
                    "user_email",
                  ],
                  t = 0;
                t < this.context.allPluginFields.length;
                t++
              ) {
                var n = this.context.allPluginFields[t];
                for (var r in n) {
                  var o = n[r];
                  if (o)
                    for (var a = 0; a < o.length; a++)
                      if (
                        e.includes(o[a].name) &&
                        !this.checkKeyExistInMapping(o[a].name)
                      )
                        return !1;
                }
              }
              return !0;
            },
          },
          {
            key: "checkKeyExistInMapping",
            value: function (e) {
              var t = !1;
              for (var n in this.context.dragAndDropMappingResult) {
                if (this.context.dragAndDropMappingResult[n])
                  Object.keys(
                    this.context.dragAndDropMappingResult[n]
                  ).includes(e) &&
                    this.context.dragAndDropMappingResult[n][e] &&
                    (t = !0);
              }
              return !!t || (D.toast.error(e + " is mandatory field"), !1);
            },
          },
          {
            key: "sendMappedFields",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r, o, a;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if (this.state.customFields)
                              for (
                                t = 0;
                                t < this.state.customFields.length;
                                t++
                              )
                                (n = this.state.customFields[t]),
                                  (r = n.name.trim()),
                                  n.value &&
                                    r &&
                                    (this.context.dragAndDropMappingResult
                                      .CORECUSTFIELDS ||
                                      (this.context.dragAndDropMappingResult.CORECUSTFIELDS = {}),
                                    (this.context.dragAndDropMappingResult.CORECUSTFIELDS[
                                      n.name
                                    ] = n.value));
                            if (this.checkMandatory()) {
                              e.next = 3;
                              break;
                            }
                            return e.abrupt("return");
                          case 3:
                            return (
                              this.context.setMappingType("dragdrop-section"),
                              (o = new FormData()),
                              this.props.fromEditTemplate
                                ? o.set("action", "saveTemplate")
                                : (o.set("action", "saveMappedFields"),
                                  o.set(
                                    "HashKey",
                                    this.context.csvInfo.hashKey
                                  )),
                              o.set("Types", this.context.csvInfo.selectedtype),
                              o.set(
                                "MappedFields",
                                JSON.stringify(
                                  this.context.dragAndDropMappingResult
                                )
                              ),
                              o.set("MappingType", "dragdrop-section"),
                              this.context.isTemplate &&
                                o.set("UseTemplateState", "true"),
                              this.context.isTemplate ||
                              this.props.fromEditTemplate
                                ? (o.set(
                                    "TemplateName",
                                    this.context.existingTemplateName
                                  ),
                                  o.set(
                                    "NewTemplate",
                                    this.context.csvInfo.templateName
                                  ))
                                : (o.set(
                                    "TemplateName",
                                    this.context.csvInfo.templateName
                                  ),
                                  o.set("UseTemplateState", "false")),
                              (e.prev = 11),
                              (e.next = 14),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: o,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 14:
                            (a = e.sent),
                              this.setState({ loading: !0 }),
                              a &&
                                a.data &&
                                (200 == a.status && a.data.success
                                  ? (this.setState({ loading: !1 }),
                                    this.props.fromEditTemplate
                                      ? this.props.onEditTemplate(!1)
                                      : "WooCommerce Orders" ===
                                          this.context.csvInfo.selectedtype ||
                                        "WooCommerce Coupons" ===
                                          this.context.csvInfo.selectedtype ||
                                        "WooCommerce Product Variations" ===
                                          this.context.csvInfo.selectedtype ||
                                        "WooCommerce Refunds" ===
                                          this.context.csvInfo.selectedtype ||
                                        "WooCommerce Attributes" ===
                                          this.context.csvInfo.selectedtype ||
                                        "Users" ===
                                          this.context.csvInfo.selectedtype ||
                                        "Comments" ===
                                          this.context.csvInfo.selectedtype ||
                                        "nav_menu_item" ===
                                          this.context.csvInfo.selectedtype ||
                                        "widgets" ===
                                          this.context.csvInfo.selectedtype
                                      ? this.context.setShowComponent(
                                          "import-config"
                                        )
                                      : this.context.setShowComponent(
                                          "media-handling"
                                        ))
                                  : (this.setState({ loading: !1 }),
                                    D.toast.error(
                                      a.data.message +
                                        " Please Choose Another Name"
                                    ))),
                              (e.next = 22);
                            break;
                          case 19:
                            (e.prev = 19),
                              (e.t0 = e.catch(11)),
                              this.setState({ loading: !1 });
                          case 22:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[11, 19]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this,
                t = this.state,
                n = (t.initialRowSize, t.totalCsvRows);
              t.xmlData;
              return o.a.createElement(
                o.a.Fragment,
                null,
                this.context.isXML
                  ? o.a.createElement(o.a.Fragment, null)
                  : o.a.createElement(
                      "div",
                      { className: "container" },
                      o.a.createElement(
                        "div",
                        { className: "d-flex justify-content-center" },
                        o.a.createElement(
                          "div",
                          { className: "col-md-6" },
                          o.a.createElement(
                            "ul",
                            { className: "mapping-switcher" },
                            o.a.createElement(
                              "li",
                              {
                                onClick: function () {
                                  e.context.setShowComponent("mapping-section");
                                },
                              },
                              this.context.language.ADVANCEDMODE
                            ),
                            o.a.createElement(
                              "li",
                              {
                                className: "active",
                                onClick: function () {
                                  e.context.setShowComponent(
                                    "dragdrop-section"
                                  );
                                },
                              },
                              this.context.language.DRAGDROPMODE
                            )
                          )
                        )
                      )
                    ),
                o.a.createElement("div", { className: "clearfix" }),
                o.a.createElement(
                  "div",
                  {
                    className: "row container-fluid ",
                    style: { maxWidth: "1400px", margin: "auto" },
                  },
                  o.a.createElement(
                    "div",
                    { id: "mapping-accordion", className: "col-md-8" },
                    o.a.createElement("div", { className: "mt50" }),
                    this.context.allPluginFields.map(function (t, n) {
                      var r = Object.keys(t)[0];
                      if (!ht(r))
                        return o.a.createElement(
                          "div",
                          null,
                          " ",
                          "This ",
                          r,
                          " support not implemented",
                          " "
                        );
                      var a = !1;
                      return (
                        r || (a = !0),
                        t[r] ||
                        Array.isArray(t[r]) ||
                        ((a = !0), "wordpress_custom_fields" === r)
                          ? a
                            ? void 0
                            : o.a.createElement(
                                "div",
                                { className: "card csv-importer-panel" },
                                o.a.createElement(
                                  "h1",
                                  {
                                    className: "card-header main-heading ".concat(
                                      0 == n ? "active" : ""
                                    ),
                                    id: r,
                                    onClick: function () {
                                      toggle_func(r);
                                    },
                                  },
                                  e.context.language[ht(r).languageName],
                                  " ",
                                  o.a.createElement("span", {
                                    className:
                                      "csv-icon-angle-down float-right",
                                  })
                                ),
                                o.a.createElement(
                                  "div",
                                  {
                                    className: "card-body",
                                    id: "".concat(r, "-body"),
                                    style: {
                                      display: 0 == n ? "block" : "none",
                                    },
                                    "data-display": e.state.display,
                                  },
                                  t[r].map(function (t, n) {
                                    return o.a.createElement(
                                      "div",
                                      { className: "form-group" },
                                      o.a.createElement("label", null, t.label),
                                      o.a.createElement(
                                        Dt.Droppable,
                                        {
                                          types: ["csvheader"],
                                          onDrop: function (n) {
                                            e.onMappingSelect.bind(e)(
                                              r,
                                              t.name,
                                              "{".concat(n.csvheader, "}"),
                                              !1
                                            );
                                          },
                                        },
                                        "post_content" === t.name
                                          ? o.a.createElement(Ct.a, {
                                              editor: Ot.a,
                                              data: (function () {
                                                var n = ht(r).resultKey;
                                                if (
                                                  e.context
                                                    .dragAndDropMappingResult[n]
                                                )
                                                  return e.context
                                                    .dragAndDropMappingResult[
                                                    n
                                                  ][t.name];
                                              })(),
                                              onInit: function (e) {},
                                              onChange: function (n, o) {
                                                var a = o.getData();
                                                e.onMappingSelect.bind(e)(
                                                  r,
                                                  t.name,
                                                  a
                                                );
                                              },
                                            })
                                          : o.a.createElement("input", {
                                              value: (function () {
                                                var n = ht(r).resultKey;
                                                if (
                                                  e.context
                                                    .dragAndDropMappingResult[n]
                                                )
                                                  return e.context
                                                    .dragAndDropMappingResult[
                                                    n
                                                  ][t.name];
                                              })(),
                                              type: "text",
                                              name: "",
                                              id: t.name + "_text",
                                              className: "form-control",
                                              onChange: function (n) {
                                                e.onMappingSelect.bind(e)(
                                                  r,
                                                  t.name,
                                                  n.target.value
                                                );
                                              },
                                            })
                                      )
                                    );
                                  })
                                )
                              )
                          : o.a.createElement(
                              "div",
                              { className: "card csv-importer-panel " },
                              o.a.createElement(
                                "h1",
                                {
                                  className:
                                    "card-header main-heading bg-white pro-tag",
                                },
                                e.context.language[ht(r).languageName],
                                " "
                              )
                            )
                      );
                    }),
                    "WooCommerce Coupons" !==
                      this.context.csvInfo.selectedtype &&
                      "WooCommerce Product Variations" !==
                        this.context.csvInfo.selectedtype &&
                      "WooCommerce Refunds" !==
                        this.context.csvInfo.selectedtype &&
                      "WPeCommerce Coupons" !==
                        this.context.csvInfo.selectedtype &&
                      "WooCommerce Product" !==
                        this.context.csvInfo.selectedtype &&
                      "Customer Reviews" !==
                        this.context.csvInfo.selectedtype &&
                      "Images" !== this.context.csvInfo.selectedtype &&
                      "eShop Products" !== this.context.csvInfo.selectedtype &&
                      "MarketPress Product" !==
                        this.context.csvInfo.selectedtype &&
                      "WPeCommerce Coupons" !==
                        this.context.csvInfo.selectedtype &&
                      "Comments" !== this.context.csvInfo.selectedtype &&
                      "nav_menu_item" !== this.context.csvInfo.selectedtype &&
                      "widgets" !== this.context.csvInfo.selectedtype
                      ? o.a.createElement(
                          o.a.Fragment,
                          null,
                          o.a.createElement(
                            "div",
                            { className: "card csv-importer-panel" },
                            o.a.createElement(
                              "h1",
                              {
                                className: "card-header main-heading",
                                id: "custom-field-creator",
                                onClick: function () {
                                  return toggle_func("custom-field-creator");
                                },
                              },
                              "Create WP Custom Fields",
                              " ",
                              o.a.createElement("span", {
                                className: "csv-icon-angle-down float-right",
                              })
                            ),
                            o.a.createElement(
                              "div",
                              {
                                className: "card-body",
                                id: "custom-field-creator-body",
                              },
                              o.a.createElement(
                                "table",
                                { className: "table table-mapping" },
                                o.a.createElement(
                                  "thead",
                                  null,
                                  o.a.createElement(
                                    "tr",
                                    null,
                                    o.a.createElement(
                                      "th",
                                      null,
                                      this.context.language.WPFIELDS
                                    ),
                                    o.a.createElement(
                                      "th",
                                      null,
                                      this.context.language.CSVHEADER
                                    ),
                                    o.a.createElement(
                                      "th",
                                      { className: "text-center" },
                                      this.context.language.Action
                                    )
                                  )
                                ),
                                o.a.createElement(
                                  "tbody",
                                  null,
                                  0 != this.state.customFields.length
                                    ? this.state.customFields.map(function (
                                        t,
                                        n
                                      ) {
                                        return o.a.createElement(
                                          "tr",
                                          null,
                                          o.a.createElement(
                                            "td",
                                            { style: { width: "40%" } },
                                            o.a.createElement(
                                              "label",
                                              { className: "wpfields" },
                                              o.a.createElement("input", {
                                                type: "text",
                                                value: t.label,
                                                className: "form-control",
                                                onChange: function (t) {
                                                  e.onCustomFieldLabelChange(
                                                    t.target.value,
                                                    n
                                                  );
                                                },
                                              })
                                            ),
                                            o.a.createElement(
                                              "label",
                                              { className: "sub-text" },
                                              "[Name: ".concat(t.name, "]"),
                                              " "
                                            )
                                          ),
                                          o.a.createElement(
                                            "td",
                                            {
                                              style: {
                                                width: "40%",
                                                verticalAlign: "top",
                                              },
                                            },
                                            o.a.createElement(
                                              Dt.Droppable,
                                              {
                                                types: ["csvheader"],
                                                onDrop: function (t) {
                                                  e.onCustomFieldValueChange.bind(
                                                    e
                                                  )(
                                                    "{".concat(
                                                      t.csvheader,
                                                      "}"
                                                    ),
                                                    n,
                                                    !1
                                                  );
                                                },
                                              },
                                              o.a.createElement("input", {
                                                value:
                                                  e.state.customFields[n].value,
                                                type: "text",
                                                name: "",
                                                id: "text_" + n,
                                                className: "form-control",
                                                onChange: function (t) {
                                                  e.onCustomFieldValueChange.bind(
                                                    e
                                                  )(t.target.value, n);
                                                },
                                              })
                                            )
                                          ),
                                          o.a.createElement(
                                            "td",
                                            { className: "action text-center" },
                                            o.a.createElement(
                                              "a",
                                              {
                                                className: "action-icon",
                                                "data-tip": "Delete",
                                                onClick: function (t) {
                                                  e.deleteCustomField(n);
                                                },
                                              },
                                              o.a.createElement("i", {
                                                className: "csv-icon-trash-2",
                                              })
                                            ),
                                            o.a.createElement(he, {
                                              effect: "solid",
                                            })
                                          )
                                        );
                                      })
                                    : o.a.createElement(
                                        "tr",
                                        null,
                                        o.a.createElement(
                                          "td",
                                          {
                                            colSpan: "3",
                                            className:
                                              "text-center border-bottom text-danger",
                                          },
                                          "No WP Custom Fields"
                                        )
                                      )
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "float-right mb20 mt20" },
                                o.a.createElement(
                                  "a",
                                  {
                                    className: "smack-btn smack-btn-secondary",
                                    onClick: function (t) {
                                      e.addCustomField();
                                    },
                                  },
                                  "Add Custom Field"
                                )
                              )
                            )
                          )
                        )
                      : void 0,
                    o.a.createElement(
                      "div",
                      { className: "mt40" },
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 text-center mt30" },
                        this.context.isTemplate
                          ? o.a.createElement(
                              "div",
                              null,
                              o.a.createElement(
                                "label",
                                null,
                                "Update this mapping as"
                              ),
                              o.a.createElement("input", {
                                type: "text",
                                className: "form-control ml10 d-inline w-25",
                                onChange: function (t) {
                                  e.context.setCSVInfo(
                                    At(
                                      At({}, e.context.csvInfo),
                                      {},
                                      { templateName: t.target.value }
                                    )
                                  );
                                },
                                value: this.context.csvInfo.templateName,
                              })
                            )
                          : o.a.createElement(
                              "div",
                              null,
                              o.a.createElement(
                                "label",
                                null,
                                "Save this mapping as"
                              ),
                              o.a.createElement("input", {
                                type: "text",
                                onChange: function (t) {
                                  e.context.setCSVInfo(
                                    At(
                                      At({}, e.context.csvInfo),
                                      {},
                                      { templateName: t.target.value }
                                    )
                                  );
                                },
                                className: "form-control ml10 d-inline w-25",
                                value: this.context.csvInfo.templateName,
                              })
                            )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 mt40 p0" },
                        o.a.createElement(
                          "div",
                          { className: "float-left" },
                          o.a.createElement(
                            "button",
                            {
                              className: "smack-btn btn-default",
                              onClick: function () {
                                e.context.setShowComponent("upload-dashboard");
                              },
                            },
                            "Back"
                          )
                        ),
                        this.props.fromEditTemplate
                          ? o.a.createElement(
                              "div",
                              { className: "float-right mb20" },
                              o.a.createElement(
                                "button",
                                {
                                  className: "smack-btn smack-btn-primary",
                                  onClick: this.sendMappedFields.bind(this),
                                },
                                "Save"
                              )
                            )
                          : o.a.createElement(
                              "div",
                              { className: "float-right mb20" },
                              o.a.createElement(
                                "button",
                                {
                                  className: "smack-btn smack-btn-primary",
                                  onClick: this.sendMappedFields.bind(this),
                                },
                                this.context.language.Continue
                              )
                            ),
                        o.a.createElement("div", { className: "clearfix" })
                      )
                    )
                  ),
                  o.a.createElement(
                    "div",
                    { className: "col-md-4 " },
                    o.a.createElement(
                      "div",
                      { className: "mapping-sidebar", id: "mapping-sidebar" },
                      o.a.createElement(
                        "table",
                        { className: "mapping-sidebar-title" },
                        o.a.createElement(
                          "tbody",
                          null,
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "mapping-sidebar-arrow" },
                              o.a.createElement("span", {
                                className: "csv-icon-chevron-with-circle-left",
                                onClick: function (t) {
                                  e.state.initialRowSize--,
                                    e.state.initialRowSize >= 1
                                      ? e.getCsvFields(e.state.initialRowSize)
                                      : e.state.initialRowSize++;
                                },
                              })
                            ),
                            o.a.createElement(
                              "td",
                              { className: "mapping-sidebar-textbox-section" },
                              o.a.createElement(
                                "strong",
                                null,
                                o.a.createElement("input", {
                                  id: "current_row",
                                  value: this.state.initialRowSize,
                                  type: "text",
                                  pattern: "[0-9]*",
                                  onChange: function (t) {
                                    parseInt(t.target.value) >
                                    e.state.totalCsvRows
                                      ? e.setState(
                                          {
                                            initialRowSize:
                                              e.state.totalCsvRows,
                                          },
                                          function () {
                                            e.getCsvFields(
                                              e.state.initialRowSize
                                            );
                                          }
                                        )
                                      : (e.setState({
                                          initialRowSize: t.target.value,
                                        }),
                                        e.getCsvFields(e.state.initialRowSize));
                                  },
                                })
                              ),
                              " ",
                              o.a.createElement(
                                "span",
                                { className: "mapping-textbox-out-of" },
                                "of",
                                o.a.createElement("strong", null, " ", n)
                              )
                            ),
                            o.a.createElement(
                              "td",
                              { className: "mapping-sidebar-arrow" },
                              o.a.createElement("span", {
                                className: "csv-icon-chevron-with-circle-right",
                                onClick: function (t) {
                                  e.state.initialRowSize++,
                                    e.state.initialRowSize <=
                                    e.state.totalCsvRows
                                      ? e.getCsvFields(e.state.initialRowSize)
                                      : e.state.initialRowSize--;
                                },
                              })
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "uci_mapping" },
                        o.a.createElement(
                          "table",
                          {
                            className: "table table-bordered",
                            cellspacing: "10",
                          },
                          this.context.isXML
                            ? this.state.loading ||
                              0 == this.state.xmlData.length
                              ? o.a.createElement("div", {
                                  className: "loader loader-1 mt15 text-center",
                                })
                              : this.state.xmlData.map(function (e, t) {
                                  return o.a.createElement(
                                    "tr",
                                    null,
                                    o.a.createElement(
                                      "td",
                                      {
                                        style: { width: "40%" },
                                        title: e.node_path,
                                        className:
                                          "text-primary font-weight-bold",
                                      },
                                      o.a.createElement(
                                        Dt.Draggable,
                                        {
                                          type: "csvheader",
                                          data: e.node_path,
                                        },
                                        e.name
                                      )
                                    ),
                                    o.a.createElement("td", null, e.value)
                                  );
                                })
                            : this.state.loading ||
                              0 == this.csvInformation.length
                            ? o.a.createElement("div", {
                                className: "loader loader-1 mt15 text-center",
                              })
                            : this.csvInformation.map(function (e, t) {
                                return o.a.createElement(
                                  "tr",
                                  null,
                                  o.a.createElement(
                                    "td",
                                    {
                                      style: { width: "40%" },
                                      className:
                                        "text-primary font-weight-bold",
                                    },
                                    o.a.createElement(
                                      Dt.Draggable,
                                      { type: "csvheader", data: e.csvHeaders },
                                      e.csvHeaders
                                    )
                                  ),
                                  o.a.createElement("td", null, e.csvValues)
                                );
                              })
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        a
      );
    })(r.Component);
    function Yt(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function jt(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = null != arguments[t] ? arguments[t] : {};
        t % 2
          ? Yt(Object(n), !0).forEach(function (t) {
              M()(e, t, n[t]);
            })
          : Object.getOwnPropertyDescriptors
          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
          : Yt(Object(n)).forEach(function (t) {
              Object.defineProperty(
                e,
                t,
                Object.getOwnPropertyDescriptor(n, t)
              );
            });
      }
      return e;
    }
    function Ft(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(Rt, "contextType", E);
    var Ht = (function (e) {
      h()(r, e);
      var t,
        n = Ft(r);
      function r() {
        var e;
        l()(this, r);
        for (var t = arguments.length, o = new Array(t), a = 0; a < t; a++)
          o[a] = arguments[a];
        return (
          (e = n.call.apply(n, [this].concat(o))),
          M()(k()(e), "state", { loading: !1 }),
          e
        );
      }
      return (
        u()(r, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setCSVInfo(
                jt(
                  jt({}, this.context.csvInfo),
                  {},
                  { replaceExistingItem: "Insert" }
                )
              );
            },
          },
          {
            key: "sendConfiguration",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "mappingfields"
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              t.set("Types", this.context.csvInfo.selectedtype),
                              t.set(
                                "Mode",
                                this.context.csvInfo.replaceExistingItem
                              ),
                              this.setState({ loading: !0 }),
                              (e.prev = 6),
                              (e.next = 9),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 9:
                            (n = e.sent) &&
                              n.data &&
                              200 == n.status &&
                              n.data.success &&
                              (this.setState({ loading: !1 }),
                              !0 === n.data.show_template
                                ? (this.context.setIsTemplate(!0),
                                  this.context.setSaveTemplateData(n.data.info),
                                  this.context.setShowComponent(
                                    "save-template"
                                  ))
                                : (this.context.setCsvFields(n.data.csv_fields),
                                  (r = ut(n.data.fields)),
                                  this.context.setAllPluginFields(r),
                                  "xml" === this.context.csvInfo.fileType
                                    ? this.context.setShowComponent(
                                        "dragdrop-section"
                                      )
                                    : this.context.setShowComponent(
                                        "mapping-section"
                                      ))),
                              (e.next = 16);
                            break;
                          case 13:
                            (e.prev = 13),
                              (e.t0 = e.catch(6)),
                              console.log(e.t0);
                          case 16:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[6, 13]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "csv-importer-panel mt20 container" },
                o.a.createElement(
                  "div",
                  { className: "file-info-container clearfix" },
                  o.a.createElement(
                    "div",
                    { className: "csvinfo" },
                    o.a.createElement(
                      "h3",
                      { className: "file-name" },
                      this.context.csvInfo.fileName,
                      " -",
                      " ",
                      o.a.createElement(
                        "span",
                        { className: "size" },
                        this.context.csvInfo.fileSize
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { class: "d-flex justify-content-center mt40" },
                      o.a.createElement(
                        "div",
                        {
                          className: "form-check form-check-inline form-group",
                        },
                        o.a.createElement("input", {
                          className: "form-check-input ",
                          onClick: function () {
                            e.context.setCSVInfo(
                              jt(
                                jt({}, e.context.csvInfo),
                                {},
                                { replaceExistingItem: "Insert" }
                              )
                            );
                          },
                          type: "radio",
                          id: "insertRad",
                          name: "post-item",
                          value: "Insert",
                          checked:
                            "Insert" ===
                            this.context.csvInfo.replaceExistingItem,
                        }),
                        " ",
                        o.a.createElement(
                          "label",
                          { for: "insertRad", class: "form-check-label" },
                          "New Item"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        {
                          className: "form-check form-check-inline form-group",
                          style: { opacity: 0.6 },
                        },
                        o.a.createElement("input", {
                          className: "form-check-input",
                          onClick: function () {
                            D.toast.info(
                              "Please Upgrade to PRO for this Feature"
                            );
                          },
                          type: "radio",
                          id: "updateRad",
                          name: "post-item",
                          value: "Update",
                          checked:
                            "Update" ===
                            this.context.csvInfo.replaceExistingItem,
                        }),
                        " ",
                        o.a.createElement(
                          "label",
                          { for: "updateRad", className: "form-check-label" },
                          "Existing Items"
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { className: "d-flex justify-content-center mt40" },
                      o.a.createElement(
                        "div",
                        { className: "form-group" },
                        o.a.createElement(
                          "label",
                          null,
                          "Import each record as"
                        ),
                        o.a.createElement(
                          "div",
                          null,
                          o.a.createElement(
                            "select",
                            {
                              value: this.context.csvInfo.selectedtype,
                              className: "select form-control",
                              onChange: function (t) {
                                e.context.setCSVInfo(
                                  jt(
                                    jt({}, e.context.csvInfo),
                                    {},
                                    { selectedtype: t.target.value }
                                  )
                                );
                              },
                              name: "",
                              id: "",
                            },
                            o.a.createElement(
                              "optgroup",
                              { label: "PostType" },
                              this.context.csvInfo.postTypes.map(function (e) {
                                return o.a.createElement(
                                  "option",
                                  { value: e },
                                  e
                                );
                              })
                            )
                          )
                        )
                      )
                    )
                  ),
                  o.a.createElement(
                    "div",
                    { class: "col-md-12 mt40 p0" },
                    o.a.createElement(
                      "div",
                      { class: "float-left" },
                      o.a.createElement(
                        "button",
                        {
                          type: "button",
                          class: "smack-btn btn-default",
                          onClick: function () {
                            e.context.setShowComponent("upload-dashboard");
                          },
                        },
                        this.context.language.Back
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { className: "float-right" },
                      this.state.loading
                        ? this.context.loaderText
                        : o.a.createElement("input", {
                            type: "button",
                            className: "smack-btn smack-btn-primary",
                            onClick: this.sendConfiguration.bind(this),
                            value: this.context.language.Continue,
                          })
                    )
                  )
                )
              );
            },
          },
        ]),
        r
      );
    })(r.Component);
    function zt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(Ht, "contextType", E);
    var Bt = (function (e) {
      h()(r, e);
      var t,
        n = zt(r);
      function r(e) {
        var t;
        return (
          l()(this, r),
          ((t = n.call(this, e)).state = {
            mediaHandlingEnabled: !1,
            useMediaImagesIfAlreadyAvailable: !1,
            usePostContentImageOption: !1,
          }),
          t
        );
      }
      return (
        u()(r, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("import-update");
            },
          },
          {
            key: "sendMediaHandlingConfiguration",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              console.log(
                                "Media Handle Option",
                                this.state.mediaHandlingEnabled
                              ),
                              (t = new FormData()).set(
                                "action",
                                "image_options"
                              ),
                              t.set(
                                "media_handle_option",
                                this.state.mediaHandlingEnabled
                              ),
                              t.set(
                                "use_ExistingImage",
                                this.state.useMediaImagesIfAlreadyAvailable
                              ),
                              t.set(
                                "postContent_image_option",
                                this.state.usePostContentImageOption
                              ),
                              this.setState({ loading: !0 }),
                              (e.next = 9),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 9:
                            200 == (n = e.sent).status &&
                              n.data.success &&
                              (this.setState({ loading: !1 }),
                              this.context.setShowComponent("import-config"));
                          case 11:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { id: "mapping-accordion", className: "container" },
                o.a.createElement(
                  "div",
                  { className: "card csv-importer-panel mt20" },
                  o.a.createElement(
                    "div",
                    { className: "card-body" },
                    o.a.createElement(
                      "h5",
                      null,
                      this.context.language.MediaHandling
                    ),
                    o.a.createElement(
                      "div",
                      {
                        className: "col-md-12 row mt30 justify-content-center",
                      },
                      o.a.createElement(
                        "label",
                        { className: "align-self-center" },
                        this.context.language.Downloadexternalimagestoyourmedia
                      ),
                      o.a.createElement(
                        "div",
                        { className: "form-group fieldset ml30" },
                        o.a.createElement("input", {
                          type: "checkbox",
                          className: "ios-switch",
                          name: "media-handle",
                          id: "media-handle",
                          onClick: function (t) {
                            e.state.mediaHandlingEnabled
                              ? e.setState({ mediaHandlingEnabled: !1 })
                              : e.setState({ mediaHandlingEnabled: !0 });
                          },
                          checked: this.state.mediaHandlingEnabled,
                        }),
                        o.a.createElement(
                          "label",
                          { className: "switch-ios", for: "media-handle" },
                          o.a.createElement("i", null)
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      {
                        className: "media-fields ".concat(
                          this.state.mediaHandlingEnabled ? "active" : ""
                        ),
                      },
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 mt20" },
                        o.a.createElement(
                          "div",
                          { className: "border-container" },
                          o.a.createElement(
                            "h5",
                            { className: "border-container-header" },
                            this.context.language.ImageHandling
                          ),
                          o.a.createElement(
                            "div",
                            { className: "form-group" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              name: "media-image",
                              className: "",
                              id: "media-image-existing",
                              disabled: !1,
                              onClick: function (t) {
                                e.setState({
                                  useMediaImagesIfAlreadyAvailable:
                                    t.target.checked,
                                });
                              },
                            }),
                            o.a.createElement(
                              "label",
                              {
                                className: "ml10",
                                for: "media-image-existing",
                              },
                              this.context.language
                                .Usemediaimagesifalreadyavailable
                            )
                          ),
                          o.a.createElement(
                            "div",
                            {
                              className: "form-group d-flex",
                              style: { alignItems: "center" },
                            },
                            o.a.createElement("input", {
                              type: "checkbox",
                              name: "media-image",
                              id: "media-image-overwrite",
                              disabled: !0,
                              onClick: function (t) {
                                e.setState({
                                  useMediaImagesIfAlreadyAvailable: !1,
                                }),
                                  D.toast.info(
                                    "Please upgrade to PRO for Advanced Media Handling."
                                  );
                              },
                            }),
                            o.a.createElement(
                              "label",
                              {
                                className: "ml10",
                                for: "media-image-overwrite",
                              },
                              this.context.language
                                .Doyouwanttooverwritetheexistingimages
                            ),
                            o.a.createElement("a", {
                              className: "nav-link pro-tag ml20",
                            })
                          ),
                          o.a.createElement(
                            "div",
                            {
                              className: "form-group d-flex",
                              style: { alignItems: "center" },
                            },
                            o.a.createElement("input", {
                              type: "checkbox",
                              name: "media-image",
                              className: "",
                              id: "media-new-image",
                              disabled: !0,
                              onClick: function (t) {
                                e.setState({
                                  useMediaImagesIfAlreadyAvailable: !1,
                                }),
                                  D.toast.info(
                                    "Please upgrade to PRO for Advanced Media Handling."
                                  );
                              },
                            }),
                            o.a.createElement(
                              "label",
                              { className: "ml10", for: "media-new-image" },
                              "Always create as new image"
                            ),
                            o.a.createElement("a", {
                              className: "nav-link pro-tag ml20",
                            })
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 mt50" },
                        o.a.createElement(
                          "div",
                          { className: "border-container" },
                          o.a.createElement(
                            "h5",
                            { className: "border-container-header" },
                            this.context.language.PostContentImageOption
                          ),
                          o.a.createElement(
                            "div",
                            { className: "form-group" },
                            o.a.createElement("input", {
                              type: "checkbox",
                              name: "postcontent-image",
                              className: "",
                              id: "postcontent-image-existing",
                              disabled: !1,
                              onClick: function (t) {
                                e.setState({
                                  usePostContentImageOption: t.target.checked,
                                });
                              },
                            }),
                            o.a.createElement(
                              "label",
                              {
                                className: "ml10",
                                for: "postcontent-image-existing",
                              },
                              this.context.language
                                .DownloadPostContentExternalImagestoMedia
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 mt50" },
                        o.a.createElement(
                          "div",
                          { className: "border-container" },
                          o.a.createElement(
                            "h5",
                            { className: "border-container-header" },
                            this.context.language.MediaSEOAdvancedOptions
                          ),
                          o.a.createElement(
                            "div",
                            { className: "row" },
                            o.a.createElement(
                              "div",
                              { className: "form-group col-md-4" },
                              o.a.createElement(
                                "label",
                                { className: "d-block" },
                                this.context.language.SetimageTitle,
                                " ",
                                ":",
                                " "
                              ),
                              o.a.createElement(
                                "select",
                                {
                                  disabled: !0,
                                  className: "form-control",
                                  name: "mediaImageTitle",
                                },
                                o.a.createElement(
                                  "option",
                                  { value: "" },
                                  "--select--"
                                ),
                                this.context.csvFields.map(function (e) {
                                  return o.a.createElement(
                                    "option",
                                    { value: e, disabled: !0 },
                                    e
                                  );
                                })
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "form-group col-md-4" },
                              o.a.createElement(
                                "label",
                                { className: "d-block" },
                                this.context.language.SetimageCaption,
                                " ",
                                ":",
                                " "
                              ),
                              o.a.createElement(
                                "select",
                                {
                                  disabled: !0,
                                  className: "form-control",
                                  name: "mediaImageCaption",
                                },
                                o.a.createElement(
                                  "option",
                                  { value: "" },
                                  "--select--"
                                ),
                                this.context.csvFields.map(function (e, t) {
                                  return o.a.createElement(
                                    "option",
                                    { value: e },
                                    e
                                  );
                                })
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "form-group col-md-4" },
                              o.a.createElement(
                                "label",
                                { className: "d-block" },
                                this.context.language.SetimageAltText,
                                " ",
                                ":",
                                " "
                              ),
                              o.a.createElement(
                                "select",
                                {
                                  disabled: !0,
                                  className: "form-control",
                                  name: "mediaImageAltText",
                                },
                                o.a.createElement(
                                  "option",
                                  { value: "" },
                                  "--select--"
                                ),
                                this.context.csvFields.map(function (e, t) {
                                  return o.a.createElement(
                                    "option",
                                    { value: e },
                                    e
                                  );
                                })
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "form-group col-md-4" },
                              o.a.createElement(
                                "label",
                                { className: "d-block" },
                                this.context.language.SetimageDescription,
                                " ",
                                ":",
                                " "
                              ),
                              o.a.createElement(
                                "select",
                                {
                                  disabled: !0,
                                  className: "form-control",
                                  name: "mediaImageDescription",
                                },
                                o.a.createElement(
                                  "option",
                                  { value: "" },
                                  "--select--"
                                ),
                                this.context.csvFields.map(function (e) {
                                  return o.a.createElement(
                                    "option",
                                    { value: e },
                                    e
                                  );
                                })
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "form-group col-md-4" },
                              o.a.createElement(
                                "label",
                                { className: "d-block" },
                                this.context.language.Changeimagefilenameto,
                                " ",
                                ":",
                                " "
                              ),
                              o.a.createElement(
                                "select",
                                {
                                  disabled: !0,
                                  className: "form-control",
                                  name: "mediaImageFileName",
                                },
                                o.a.createElement(
                                  "option",
                                  { value: "" },
                                  "--select--"
                                ),
                                this.context.csvFields.map(function (e) {
                                  return o.a.createElement(
                                    "option",
                                    { value: e },
                                    e
                                  );
                                })
                              )
                            )
                          ),
                          o.a.createElement("a", {
                            className: "nav-link pro-tag",
                          })
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { className: "form-group mt30" },
                      o.a.createElement(
                        "div",
                        { className: "float-left" },
                        o.a.createElement(
                          "button",
                          {
                            type: "button",
                            class: "smack-btn btn-default",
                            onClick: function () {
                              e.context.setShowComponent(e.context.mappingType);
                            },
                          },
                          this.context.language.Back
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "float-right" },
                        this.state.loading
                          ? this.context.loaderText
                          : o.a.createElement(
                              "button",
                              {
                                type: "button",
                                className: "smack-btn smack-btn-primary",
                                onClick: function () {
                                  e.sendMediaHandlingConfiguration();
                                },
                              },
                              this.context.language.Continue
                            )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        r
      );
    })(r.Component);
    M()(Bt, "contextType", E);
    var Ut = Bt;
    function Vt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    n(3);
    var Wt = (function (e) {
      h()(s, e);
      var t,
        n,
        r,
        a,
        i = Vt(s);
      function s(e) {
        var t;
        return (
          l()(this, s),
          ((t = i.call(this, e)).state = {
            loading: !1,
            updateFieldsList: [],
            enableSchedule: !1,
            showOnSchedule: "none",
            hiddenOnSchedule: "block",
            displayDuplicate: !1,
            updateField: "",
            showAdaptiveProcessingOptions: !1,
            highSpeedSmallFileProcessing: !1,
            iterativePieceByPieceProcessing: !0,
            iterationProcessRecordNumber: 5,
            maximumProcessRecordNumber: 50,
            minimumProcessRecordNumber: 1,
            splitFileRecordChunk: !0,
            iterationProcessRecordLimitExceed: !1,
            totalRecords: "",
          }),
          (t.handleDateChange = t.handleDateChange.bind(k()(t))),
          (t.handleChange = t.handleChange.bind(k()(t))),
          t
        );
      }
      return (
        u()(s, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("import-update"),
                this.getUpdateFields();
            },
          },
          {
            key: "setEnableSchedule",
            value: function (e) {
              var t = this;
              this.setState({ enableSchedule: e }, function () {
                t.state.enableSchedule
                  ? t.setState({
                      showOnSchedule: "block",
                      hiddenOnSchedule: "none",
                    })
                  : t.setState({
                      showOnSchedule: "none",
                      hiddenOnSchedule: "block",
                    });
              });
            },
          },
          {
            key: "startBulkImport",
            value:
              ((a = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "bulk_file_import"
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              t.set(
                                "highspeed",
                                this.state.highSpeedSmallFileProcessing
                              ),
                              t.set(
                                "PieceByPiece",
                                this.state.iterativePieceByPieceProcessing
                              ),
                              t.set(
                                "FileIteration",
                                this.state.iterationProcessRecordNumber
                              ),
                              t.set(
                                "SplitChunks",
                                this.state.splitFileRecordChunk
                              ),
                              this.context.setShowImportLog(!0),
                              this.context.setImportLogDataLink(
                                ""
                                  .concat(window.wpr_object.logfielpath, "/")
                                  .concat(this.context.csvInfo.hashKey, "/")
                                  .concat(this.context.csvInfo.hashKey, ".html")
                              ),
                              this.setState({ loading: !0 }),
                              (e.prev = 10),
                              (e.next = 13),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 13:
                            return (
                              (n = e.sent),
                              this.setState({ loading: !1 }),
                              "csv" === n.data.file_extension ||
                                n.data.file_extension,
                              (r = Math.ceil(
                                n.data.total_rows / n.data.file_iteration
                              )),
                              this.context.setBulkImportData({
                                totalPages: r,
                                totalRows: n.data.total_rows,
                                fileName: n.data.file_name,
                                fileSize: n.data.filesize,
                                fileExtension: n.data.file_extension,
                                fileIteration: n.data.file_iteration,
                                Check: this.state.updateField,
                              }),
                              this.context.setShowComponent("bulk-import"),
                              e.abrupt("return")
                            );
                          case 21:
                            (e.prev = 21), (e.t0 = e.catch(10));
                          case 23:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[10, 21]]
                  );
                })
              )),
              function () {
                return a.apply(this, arguments);
              }),
          },
          {
            key: "importConfiguration",
            value:
              ((r = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if (
                              !this.state.displayDuplicate ||
                              "" != this.state.updateField
                            ) {
                              e.next = 3;
                              break;
                            }
                            return (
                              D.toast.error(
                                "Please Select field to Handle Duplicate"
                              ),
                              e.abrupt("return")
                            );
                          case 3:
                            return (
                              this.context.setShowComponent("import-process"),
                              (t = new FormData()).set("action", "StartImport"),
                              (n = ""),
                              (n = this.context.rollBackMode
                                ? "true"
                                : "false"),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              t.set("Check", this.state.updateField),
                              t.set("RollBack", n),
                              this.context.setShowImportLog(!0),
                              this.context.setImportLogDataLink(
                                ""
                                  .concat(window.wpr_object.logfielpath, "/")
                                  .concat(this.context.csvInfo.hashKey, "/")
                                  .concat(this.context.csvInfo.hashKey, ".html")
                              ),
                              this.setState({ loading: !0 }),
                              (e.prev = 14),
                              (e.next = 17),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 17:
                            (r = e.sent),
                              this.setState({ loading: !1 }),
                              200 == r.status && r.data.success,
                              (e.next = 25);
                            break;
                          case 22:
                            (e.prev = 22),
                              (e.t0 = e.catch(14)),
                              console.log(e.t0);
                          case 25:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[14, 22]]
                  );
                })
              )),
              function () {
                return r.apply(this, arguments);
              }),
          },
          {
            key: "getUpdateFields",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "updatefields"
                              ),
                              t.set("Types", this.context.csvInfo.selectedtype),
                              t.set(
                                "Mode",
                                this.context.csvInfo.replaceExistingItem
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              this.setState({ loading: !0 }),
                              (e.prev = 6),
                              (e.next = 9),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 9:
                            (n = e.sent),
                              this.setState({ loading: !1 }),
                              n &&
                                n.data &&
                                200 == n.status &&
                                this.setState({
                                  updateFieldsList: n.data.update_fields,
                                  totalRecords: n.data.total_records,
                                }),
                              (e.next = 17);
                            break;
                          case 14:
                            (e.prev = 14),
                              (e.t0 = e.catch(6)),
                              console.log(e.t0);
                          case 17:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[6, 14]]
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "updateMaintenanceMode",
            value:
              ((t = y()(
                v.a.mark(function e(t) {
                  var n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (n = new FormData()).set(
                                "action",
                                "settings_options"
                              ),
                              n.set("option", "enable_main_mode"),
                              n.set("value", t),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: n,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            e.sent, this.context.setMaintenanceMode(t);
                          case 8:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function (e) {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "handleChange",
            value: function (e) {
              this.setState(
                M()({}, e.target.name, e.target.value),
                function () {}
              );
            },
          },
          {
            key: "handleDateChange",
            value: function (e) {
              this.setState({ selectedDate: e });
            },
          },
          {
            key: "render",
            value: function () {
              var e = this,
                t = this.state,
                n = t.updateField;
              t.selectedUTC,
                t.selectedDate,
                t.scheduleTime,
                t.scheduleFrequency;
              return o.a.createElement(
                "div",
                { id: "import-configuration", className: "container" },
                o.a.createElement(
                  "div",
                  { className: "card csv-importer-panel mt20 pt30 pb30" },
                  o.a.createElement(
                    "div",
                    { className: "row export" },
                    o.a.createElement(
                      "h1",
                      { className: "main-heading pr15 pl15 mb20 col-md-12" },
                      "Import configuration Section"
                    ),
                    o.a.createElement(
                      "div",
                      {
                        style: { display: this.state.hiddenOnSchedule },
                        className: "advanced-filter col-md-12",
                      },
                      o.a.createElement(
                        "div",
                        { className: "checkbox" },
                        o.a.createElement("input", {
                          type: "checkbox",
                          id: "import_configuration_maintenance_mode",
                          checked: this.context.maintenanceMode,
                          onClick: function (t) {
                            e.updateMaintenanceMode(t.target.checked);
                          },
                        }),
                        o.a.createElement(
                          "label",
                          { for: "import_configuration_maintenance_mode" },
                          "Do you want to SWITCH ON Maintenance mode while import ?"
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { className: "advanced-filter col-md-12" },
                      o.a.createElement(
                        "div",
                        { className: "checkbox" },
                        o.a.createElement("input", {
                          type: "checkbox",
                          id: "import_configuration_duplicate_handle",
                          className: "",
                          onChange: function (t) {
                            e.setState({ displayDuplicate: t.target.checked });
                          },
                          checked: this.state.displayDuplicate,
                        }),
                        o.a.createElement(
                          "label",
                          { for: "import_configuration_duplicate_handle" },
                          "Do you want to handle the duplicate on existing records ?"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        {
                          className: "row mt20 col-md-6",
                          style: {
                            display: this.state.displayDuplicate
                              ? "block"
                              : "none",
                          },
                        },
                        o.a.createElement(
                          "div",
                          { className: "form-group col" },
                          "Insert" === this.context.csvInfo.replaceExistingItem
                            ? o.a.createElement(
                                "label",
                                null,
                                this.context.language
                                  .Mentionthefieldswhichyouwanttohandleduplicates
                              )
                            : "Update" ===
                              this.context.csvInfo.replaceExistingItem
                            ? o.a.createElement(
                                "label",
                                null,
                                this.context.language.Updaterecordsbasedon
                              )
                            : "",
                          o.a.createElement(
                            "select",
                            {
                              className: "select form-control",
                              name: "updateField",
                              value: n,
                              onChange: this.handleChange,
                            },
                            o.a.createElement(
                              "option",
                              { value: "" },
                              "Select Field"
                            ),
                            0 != this.state.updateFieldsList.length
                              ? this.state.updateFieldsList.map(function (
                                  e,
                                  t
                                ) {
                                  return o.a.createElement(
                                    "option",
                                    { value: e },
                                    e
                                  );
                                })
                              : void 0
                          )
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { className: "advanced-filter col-md-12" },
                      o.a.createElement(
                        "div",
                        { className: "checkbox" },
                        o.a.createElement("input", {
                          type: "checkbox",
                          id: "import_configuration_split_record",
                          checked: this.state.showAdaptiveProcessingOptions,
                          onClick: function (t) {
                            e.setState({
                              showAdaptiveProcessingOptions: t.target.checked,
                            });
                          },
                        }),
                        o.a.createElement(
                          "label",
                          { for: "import_configuration_split_record" },
                          "Do you want adaptive file processing of record",
                          " ",
                          "?"
                        ),
                        this.state.showAdaptiveProcessingOptions
                          ? o.a.createElement(
                              "div",
                              { className: "ml-5" },
                              o.a.createElement(
                                "div",
                                {
                                  className: "radio ".concat(
                                    this.state.totalRecords > 1e3
                                      ? "file-processing-tag"
                                      : ""
                                  ),
                                },
                                o.a.createElement("input", {
                                  type: "radio",
                                  id: "high_speed_small_file_processing",
                                  disabled: this.state.totalRecords > 1e3,
                                  checked: this.state
                                    .highSpeedSmallFileProcessing,
                                  onClick: function (t) {
                                    e.setState({
                                      highSpeedSmallFileProcessing:
                                        t.target.checked,
                                      iterativePieceByPieceProcessing: !1,
                                    });
                                  },
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "high_speed_file_processing" },
                                  "High Speed Small File Processing"
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "radio" },
                                o.a.createElement("input", {
                                  type: "radio",
                                  id: "iterative_piece_by_piece_processing",
                                  checked: this.state
                                    .iterativePieceByPieceProcessing,
                                  onClick: function (t) {
                                    e.setState({
                                      iterativePieceByPieceProcessing:
                                        t.target.checked,
                                      highSpeedSmallFileProcessing: !1,
                                    });
                                  },
                                }),
                                o.a.createElement(
                                  "label",
                                  { for: "high_speed_file_processing" },
                                  "Iterative, Piece-by-Piece Processing"
                                ),
                                this.state.iterativePieceByPieceProcessing
                                  ? o.a.createElement(
                                      "div",
                                      { className: "ml-5" },
                                      o.a.createElement(
                                        "div",
                                        { className: "checkbox" },
                                        o.a.createElement(
                                          "label",
                                          { for: "records_need_to_iterate" },
                                          "In each iteration how many records need to process"
                                        ),
                                        o.a.createElement("input", {
                                          type: "number",
                                          max: this.state
                                            .maximumProcessRecordNumber,
                                          min: this.state
                                            .minimumProcessRecordNumber,
                                          value: this.state
                                            .iterationProcessRecordNumber,
                                          id: "records_processed_per_iteration",
                                          onChange: function (t) {
                                            t.target.value <= 50 &&
                                              t.target.value >= 1 &&
                                              e.setState({
                                                iterationProcessRecordNumber:
                                                  t.target.value,
                                              });
                                          },
                                        })
                                      ),
                                      o.a.createElement("br", null),
                                      o.a.createElement(
                                        "div",
                                        { className: "checkbox" },
                                        o.a.createElement("input", {
                                          type: "checkbox",
                                          checked: this.state
                                            .splitFileRecordChunk,
                                          id: "split_record_chunk",
                                          onClick: function (t) {
                                            t.target.checked
                                              ? e.setState({
                                                  splitFileRecordChunk: !0,
                                                })
                                              : e.setState({
                                                  splitFileRecordChunk: !1,
                                                });
                                          },
                                        }),
                                        o.a.createElement(
                                          "label",
                                          { for: "split_record_chunk" },
                                          "Do you need to split the file into 1000 records and process it"
                                        )
                                      )
                                    )
                                  : ""
                              )
                            )
                          : ""
                      )
                    ),
                    o.a.createElement(
                      "div",
                      {
                        className: "advanced-filter col-md-12",
                        style: { opacity: 0.6 },
                      },
                      o.a.createElement(
                        "div",
                        { className: "checkbox" },
                        o.a.createElement("input", {
                          type: "checkbox",
                          id: "import_configuration_schedule_import",
                          checked: this.state.enableSchedule,
                          onClick: function () {
                            D.toast.info(
                              "Please upgrade to PRO for Schedule you Import"
                            );
                          },
                        }),
                        o.a.createElement(
                          "label",
                          { for: "import_configuration_schedule_import" },
                          this.context.language.DoyouwanttoSchedulethisImport
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { className: "form-group col-md-12 mt30" },
                      o.a.createElement(
                        "div",
                        { className: "float-left" },
                        "WooCommerce Orders" ===
                          this.context.csvInfo.selectedtype ||
                          "WooCommerce Coupons" ===
                            this.context.csvInfo.selectedtype ||
                          "WooCommerce Product Variations" ===
                            this.context.csvInfo.selectedtype ||
                          "WooCommerce Refunds" ===
                            this.context.csvInfo.selectedtype ||
                          "WooCommerce Attributes" ===
                            this.context.csvInfo.selectedtype ||
                          "Users" === this.context.csvInfo.selectedtype ||
                          "Comments" === this.context.csvInfo.selectedtype ||
                          "widgets" === this.context.csvInfo.selectedtype ||
                          "nav_menu_item" === this.context.csvInfo.selectedtype
                          ? o.a.createElement(
                              "button",
                              {
                                type: "button",
                                class: "smack-btn btn-default",
                                onClick: function () {
                                  e.context.setShowComponent(
                                    e.context.mappingType
                                  );
                                },
                              },
                              this.context.language.Back
                            )
                          : o.a.createElement(
                              "button",
                              {
                                type: "button",
                                className: "smack-btn btn-default",
                                onClick: function () {
                                  e.context.setShowComponent("media-handling");
                                },
                              },
                              this.context.language.Back
                            )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "float-right" },
                        this.state.loading
                          ? this.context.loaderText
                          : o.a.createElement(
                              o.a.Fragment,
                              null,
                              o.a.createElement(
                                "button",
                                {
                                  type: "button",
                                  className: "smack-btn smack-btn-primary",
                                  onClick: function () {
                                    e.startBulkImport();
                                  },
                                },
                                this.context.language.Import
                              )
                            )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        s
      );
    })(r.Component);
    function qt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(Wt, "contextType", E);
    var Gt = (function (e) {
      h()(s, e);
      var t,
        n,
        r,
        a,
        i = qt(s);
      function s(e) {
        var t;
        return (
          l()(this, s),
          ((t = i.call(this, e)).state = {
            loading: !0,
            check: "",
            fileName: "",
            processingRecords: "",
            remainingRecords: "",
            totalRecords: "",
            fileSize: "",
            process: "",
            remainingTime: "00:00:00",
            stopWatch: "00:00:00",
            progWidth: "0",
            importStatus: "Processing",
            enableDownload: !1,
            controlImportProcess: !0,
            rollBackProgress: !1,
          }),
          (t.message = []),
          (t.status = []),
          (t.verify = []),
          (t.tag = []),
          (t.categories = []),
          (t.loopCount = 0),
          (t.remainingTime = 0),
          (t.stopSeconds = 0),
          (t.stopMinutes = 0),
          (t.stopHours = 0),
          (t.onUnload = t.onUnload.bind(k()(t))),
          t.progressWidth,
          t
        );
      }
      return (
        u()(s, [
          {
            key: "onUnload",
            value:
              ((a = y()(
                v.a.mark(function e(t) {
                  var n;
                  return v.a.wrap(function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (n = new FormData()).set("action", "ImportStop"),
                            n.set("Stop", "false"),
                            (e.next = 5),
                            S()({
                              method: "post",
                              url: ajaxurl,
                              data: n,
                              config: {
                                headers: {
                                  "Content-Type": "multipart/form-data",
                                },
                              },
                            })
                          );
                        case 5:
                          e.sent, (t.returnValue = "Hellooww");
                        case 7:
                        case "end":
                          return e.stop();
                      }
                  }, e);
                })
              )),
              function (e) {
                return a.apply(this, arguments);
              }),
          },
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("import-update"),
                (this.refreshIntervalId = setInterval(
                  function () {
                    this.getProgress.bind(this)(),
                      this.state.loading &&
                        this.state.controlImportProcess &&
                        this.stopWatch();
                  }.bind(this),
                  1e3
                )),
                window.addEventListener("beforeunload", this.onUnload);
            },
          },
          {
            key: "getProgress",
            value:
              ((r = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set("action", "GetProgress"),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              (e.next = 5),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 5:
                            if (200 == (n = e.sent).status && n.data.success) {
                              for (
                                this.message = [],
                                  this.status = [],
                                  this.verify = [],
                                  this.tag = [],
                                  this.categories = [],
                                  r = 0;
                                r < n.data.Info.length;
                                r++
                              )
                                this.message.push(n.data.Info[r].message),
                                  this.status.push(n.data.Info[r].status),
                                  this.verify.push(n.data.Info[r].verify),
                                  this.tag.push(n.data.Info[r].tags),
                                  this.categories.push(
                                    n.data.Info[r].categories
                                  );
                              this.setState({ fileName: n.data.file_name }),
                                this.setState({ fileSize: n.data.filesize }),
                                this.setState({
                                  processingRecords: n.data.processing_records,
                                }),
                                this.setState({
                                  remainingRecords: n.data.remaining_records,
                                }),
                                this.setState({
                                  totalRecords: n.data.total_records,
                                }),
                                this.setState({ loading: n.data.progress }),
                                this.setState({ importStatus: n.data.status }),
                                (this.loopCount = this.loopCount + 1),
                                n.data.processing_records > 2 &&
                                  ((this.remainingTime =
                                    (this.loopCount /
                                      n.data.processing_records) *
                                    n.data.remaining_records),
                                  this.secondsToHms(this.remainingTime)),
                                this.loadProgress(n.data);
                            }
                          case 7:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return r.apply(this, arguments);
              }),
          },
          {
            key: "loadProgress",
            value: function (e) {
              e.processing_records !== e.total_records
                ? (this.progressWidth =
                    (e.processing_records / e.total_records) * 100)
                : e.progress ||
                  (this.progressWidth =
                    (e.processing_records / e.total_records) * 100),
                (this.progressWidth = Math.round(this.progressWidth)),
                this.progressWidth > 0.9 &&
                  this.setState({ progWidth: this.progressWidth });
            },
          },
          {
            key: "secondsToHms",
            value: function (e) {
              e = Number(e);
              var t = Math.floor(e / 3600),
                n = Math.floor((e % 3600) / 60),
                r = Math.floor((e % 3600) % 60);
              t.toString().length < 2 && (t = "0" + t),
                n.toString().length < 2 && (n = "0" + n),
                r.toString().length < 2 && (r = "0" + r);
              var o = t + ":" + n + ":" + r;
              this.setState({ remainingTime: o });
            },
          },
          {
            key: "stopWatch",
            value: function () {
              this.stopSeconds++,
                this.stopSeconds >= 60 &&
                  ((this.stopSeconds = 0),
                  this.stopMinutes++,
                  this.stopMinutes >= 60 &&
                    ((this.stopMinutes = 0), this.stopHours++)),
                this.stopHours.toString().length < 2 &&
                  (this.stopHours = "0" + this.stopHours),
                this.stopMinutes.toString().length < 2 &&
                  (this.stopMinutes = "0" + this.stopMinutes),
                this.stopSeconds.toString().length < 2 &&
                  (this.stopSeconds = "0" + this.stopSeconds);
              var e =
                this.stopHours +
                ":" +
                this.stopMinutes +
                ":" +
                this.stopSeconds;
              this.setState({ stopWatch: e });
            },
          },
          {
            key: "accessImportProcess",
            value:
              ((n = y()(
                v.a.mark(function e(t) {
                  var n, r, o, a;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (n = t.target.value),
                              (r = ""),
                              "Pause" === n
                                ? (this.setState({ controlImportProcess: !1 }),
                                  (r = "false"),
                                  clearInterval(this.refreshIntervalId))
                                : (this.setState({ controlImportProcess: !0 }),
                                  (r = "true")),
                              (o = new FormData()).set("action", "ImportState"),
                              o.set("State", r),
                              o.set("HashKey", this.context.csvInfo.hashKey),
                              (e.next = 9),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: o,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 9:
                            200 == (a = e.sent).status &&
                              a.data.import_state &&
                              (a.data.import_state
                                ? this.setState({ loading: !1 })
                                : this.setState({ loading: !0 }),
                              (this.refreshIntervalId = setInterval(
                                function () {
                                  this.getProgress.bind(this)(),
                                    this.state.loading &&
                                      this.state.controlImportProcess &&
                                      this.stopWatch();
                                }.bind(this),
                                1e3
                              )));
                          case 11:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function (e) {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "startRollBackMode",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              this.setState({ rollBackProgress: !0 }),
                              (t = new FormData()).set(
                                "action",
                                "rollback_now"
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            (n = e.sent),
                              this.setState({ rollBackProgress: !1 }),
                              (r = n.data).success
                                ? (this.context.setRollBackMode(!1),
                                  D.toast.success(r.message))
                                : D.toast.error(r.message);
                          case 10:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this,
                t = { width: this.state.progWidth + "%" };
              !this.state.loading && this.context.showImportLog;
              return o.a.createElement(
                "div",
                { className: "wp-ultimate-csv-importer" },
                o.a.createElement(
                  "div",
                  { className: "container" },
                  o.a.createElement(
                    "div",
                    { className: "importer-log" },
                    o.a.createElement(
                      "div",
                      { className: "card csv-importer-panel mt40 col-md-12" },
                      o.a.createElement(
                        "div",
                        { className: "card-body" },
                        o.a.createElement(
                          "h4",
                          { className: "text-center" },
                          "Import ",
                          this.state.importStatus
                        ),
                        o.a.createElement(
                          "div",
                          { className: "row justify-content-center" },
                          o.a.createElement(
                            "div",
                            { className: "mt30 " },
                            "Completed" === this.state.importStatus
                              ? o.a.createElement(
                                  o.a.Fragment,
                                  null,
                                  o.a.createElement("input", {
                                    type: "button",
                                    className: "smack-btn btn-default",
                                    value: "Close",
                                    onClick: function (t) {
                                      e.context.setShowComponent(
                                        "upload-dashboard"
                                      ),
                                        window.location.reload();
                                    },
                                  }),
                                  this.context.rollBackMode
                                    ? o.a.createElement(
                                        o.a.Fragment,
                                        null,
                                        o.a.createElement("input", {
                                          type: "button",
                                          className:
                                            "ml20 smack-btn smack-btn-danger",
                                          value: "RoleBack Now",
                                          onClick: function (t) {
                                            e.startRollBackMode();
                                          },
                                        }),
                                        " ",
                                        this.state.rollBackProgress
                                          ? o.a.createElement("div", {
                                              className:
                                                "btn ajax-loader loading",
                                              style: {
                                                marginLeft: "25px",
                                                marginRight: "0",
                                                bottom: "5px",
                                                padding: "0",
                                              },
                                            })
                                          : "",
                                        " "
                                      )
                                    : void 0
                                )
                              : this.state.controlImportProcess
                              ? o.a.createElement("input", {
                                  type: "button",
                                  className: "smack-btn smack-btn-warning",
                                  value: "Pause",
                                  onClick: this.accessImportProcess.bind(this),
                                })
                              : o.a.createElement("input", {
                                  type: "button",
                                  className: "smack-btn smack-btn-primary",
                                  value: "Resume",
                                  onClick: this.accessImportProcess.bind(this),
                                })
                          )
                        ),
                        o.a.createElement(
                          "table",
                          { className: "table mt40" },
                          o.a.createElement(
                            "tbody",
                            null,
                            o.a.createElement(
                              "tr",
                              null,
                              o.a.createElement(
                                "td",
                                { className: "text-left" },
                                this.context.language.FileName,
                                ":",
                                " ",
                                o.a.createElement(
                                  "span",
                                  null,
                                  this.state.fileName
                                )
                              ),
                              o.a.createElement(
                                "td",
                                { className: "text-right" },
                                this.context.language.FileSize,
                                ":",
                                " ",
                                o.a.createElement(
                                  "span",
                                  null,
                                  this.state.fileSize
                                )
                              )
                            ),
                            o.a.createElement(
                              "tr",
                              null,
                              o.a.createElement(
                                "td",
                                { className: "text-left" },
                                this.context.language.Process,
                                ":",
                                " ",
                                o.a.createElement(
                                  "span",
                                  null,
                                  this.context.csvInfo.replaceExistingItem
                                )
                              ),
                              o.a.createElement(
                                "td",
                                { className: "text-right" },
                                this.context.language.Totalnoofrecords,
                                ":",
                                " ",
                                o.a.createElement(
                                  "span",
                                  null,
                                  this.state.totalRecords
                                )
                              )
                            ),
                            o.a.createElement(
                              "tr",
                              null,
                              o.a.createElement(
                                "td",
                                { className: "text-left" },
                                o.a.createElement(
                                  "span",
                                  {
                                    className:
                                      "font-weight-normal text-success",
                                  },
                                  " ",
                                  this.context.language.CurrentProcessingRecord,
                                  ":",
                                  " ",
                                  o.a.createElement(
                                    "span",
                                    null,
                                    this.state.processingRecords
                                  )
                                )
                              ),
                              o.a.createElement(
                                "td",
                                { className: "text-right" },
                                o.a.createElement(
                                  "span",
                                  {
                                    className: "font-weight-normal text-danger",
                                  },
                                  this.context.language.RemainingRecord,
                                  ":",
                                  " ",
                                  o.a.createElement(
                                    "span",
                                    null,
                                    this.state.remainingRecords
                                  )
                                )
                              )
                            )
                          )
                        ),
                        o.a.createElement(
                          "div",
                          { className: "card-body px-3" },
                          o.a.createElement(
                            "div",
                            { className: "importing-details" },
                            o.a.createElement(
                              "div",
                              { className: "progress-status" },
                              "Processing" === this.state.importStatus
                                ? "In Progress"
                                : ""
                            ),
                            o.a.createElement(
                              "div",
                              { className: "import-progress" },
                              o.a.createElement(
                                "div",
                                { className: "progress-loading" },
                                this.state.progWidth + "%",
                                " ",
                                this.context.language.Completed
                              ),
                              o.a.createElement(
                                "div",
                                { className: "progress-timing" },
                                o.a.createElement("i", {
                                  className: "csv-icon-schedule",
                                }),
                                " ",
                                this.context.language.TimeElapsed,
                                ":",
                                " ",
                                o.a.createElement(
                                  "span",
                                  null,
                                  " ",
                                  this.state.stopWatch,
                                  "/ "
                                ),
                                this.state.remainingTime,
                                "(",
                                this.context.language.approximate,
                                ")"
                              )
                            )
                          ),
                          o.a.createElement(
                            "div",
                            { className: "progress mt5 mb40" },
                            o.a.createElement("div", {
                              className: "progress-bar",
                              style: t,
                              role: "progressbar",
                              "aria-valuenow": "10",
                              "aria-valuemin": "0",
                              "aria-valuemax": "100",
                            })
                          ),
                          o.a.createElement(
                            "div",
                            { className: "d-flex justify-content-center" },
                            o.a.createElement(
                              "a",
                              {
                                target: "_blank",
                                rel: "noopener noreferrer",
                                className: "smack-btn smack-btn-primary",
                                href: this.context.importLogDataLink,
                              },
                              o.a.createElement("i", {
                                className: "csv-icon-download-cloud mr10",
                              }),
                              " ",
                              this.context.language.DownloadLog
                            )
                          )
                        )
                      )
                    )
                  )
                ),
                o.a.createElement("button", {
                  type: "button",
                  className: "d-none",
                  "data-toggle": "modal",
                  "data-target": "#displayLogText",
                  id: "triggerLog",
                }),
                o.a.createElement(
                  "div",
                  {
                    id: "displayLogText",
                    className: "modal fade",
                    role: "dialog",
                  },
                  o.a.createElement(
                    "div",
                    {
                      className: "modal-dialog modal-lg modal-dialog-centered",
                    },
                    o.a.createElement(
                      "div",
                      { className: "modal-content" },
                      o.a.createElement(
                        "div",
                        { className: "modal-header" },
                        o.a.createElement(
                          "h1",
                          { class: "main-heading" },
                          "Import Log for ",
                          this.state.fileName
                        ),
                        o.a.createElement(
                          "button",
                          {
                            type: "button",
                            className: "close",
                            "data-dismiss": "modal",
                          },
                          "×"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "modal-body my-2" },
                        o.a.createElement("div", { id: "showLogText" })
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        s
      );
    })(r.Component);
    M()(Gt, "contextType", E);
    var Jt = Gt;
    function Kt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Qt = (function (e) {
      h()(a, e);
      var t,
        n,
        r = Kt(a);
      function a(e) {
        var t;
        return (
          l()(this, a),
          (t = r.call(this, e)),
          M()(
            k()(t),
            "pauseBulkImport",
            y()(
              v.a.mark(function e() {
                var n, r;
                return v.a.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          (n = new FormData()).set("action", "PauseImport"),
                          n.set("HashKey", t.context.csvInfo.hashKey),
                          (e.next = 5),
                          S()({
                            method: "post",
                            url: ajaxurl,
                            data: n,
                            config: {
                              headers: {
                                "Content-Type": "multipart/form-data",
                              },
                            },
                          })
                        );
                      case 5:
                        (r = e.sent),
                          t.setState({ controlImportProcess: !1 }),
                          r.data.pause_state &&
                            t.timer &&
                            clearInterval(t.timer);
                      case 8:
                      case "end":
                        return e.stop();
                    }
                }, e);
              })
            )
          ),
          M()(
            k()(t),
            "resumeBulkImport",
            y()(
              v.a.mark(function e() {
                var n, r, o;
                return v.a.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          t.setState({ controlImportProcess: !0 }),
                          (n = new FormData()).set("action", "ResumeImport"),
                          n.set("HashKey", t.context.csvInfo.hashKey),
                          (e.next = 6),
                          S()({
                            method: "post",
                            url: ajaxurl,
                            data: n,
                            config: {
                              headers: {
                                "Content-Type": "multipart/form-data",
                              },
                            },
                          })
                        );
                      case 6:
                        (r = e.sent).data.resume_state &&
                          ((o = ""),
                          (o = t.context.rollBackMode ? "true" : "false"),
                          t.alternateWorker.bind(k()(t))(
                            t.context.csvInfo.hashKey,
                            o,
                            r.data.page_number,
                            t.context.bulkImportData.totalPages,
                            t.context.bulkImportData.Check
                          ),
                          (t.timer = setInterval(
                            t.stopWatch.bind(k()(t)),
                            1e3
                          )));
                      case 8:
                      case "end":
                        return e.stop();
                    }
                }, e);
              })
            )
          ),
          M()(k()(t), "bulkImportProcess", function () {
            var e = "";
            e = t.context.rollBackMode ? "true" : "false";
            var n = t.context.bulkImportData.totalRows;
            "csv" === t.context.bulkImportData.fileExtension ||
            "txt" === t.context.bulkImportData.fileExtension
              ? (t.bulkImportCount = t.context.bulkImportData.fileIteration)
              : (t.bulkImportCount = 5);
            var r = 0 * t.bulkImportCount + t.bulkImportCount;
            r > n && (r = n);
            var o = "1 - " + r;
            t.setState({ processingRecords: o, remainingRecords: n }),
              t.alternateWorker.bind(k()(t))(
                t.context.csvInfo.hashKey,
                e,
                1,
                t.context.bulkImportData.totalPages,
                t.context.bulkImportData.Check
              ),
              (t.timer = setInterval(t.stopWatch.bind(k()(t)), 1e3));
          }),
          (t.state = {
            loading: !0,
            check: "",
            fileName: "",
            processingRecords: "",
            remainingRecords: "",
            totalRecords: "",
            fileSize: "",
            process: "",
            remainingTime: "00:00:00",
            stopWatch: "00:00:00",
            progWidth: "0",
            importStatus: "Processing",
            enableDownload: !1,
            controlImportProcess: !0,
            rollBackProgress: !1,
          }),
          (t.bulkImportCount = 0),
          (t.loopCount = 0),
          (t.remainingTime = 0),
          (t.stopSeconds = 0),
          (t.stopMinutes = 0),
          (t.stopHours = 0),
          t.progressWidth,
          t.url,
          t
        );
      }
      return (
        u()(a, [
          {
            key: "componentDidMount",
            value: function () {
              this.checkAjaxURL(),
                this.bulkImportProcess(),
                this.state.loading && this.stopWatch(),
                "csv" === this.context.bulkImportData.fileExtension ||
                  this.context.bulkImportData.fileExtension,
                (this.bulkImportCount = this.context.bulkImportData.fileIteration);
            },
          },
          {
            key: "checkAjaxURL",
            value: function () {
              ajaxurl.includes("http")
                ? (this.url = ajaxurl)
                : (this.url = window.location.origin + ajaxurl);
            },
          },
          {
            key: "loadProgress",
            value: function (e) {
              e.processing_records !== e.total_records
                ? (this.progressWidth =
                    (e.processing_records / e.total_records) * 100)
                : e.progress ||
                  (this.progressWidth =
                    (e.processing_records / e.total_records) * 100),
                (this.progressWidth = Math.round(this.progressWidth)),
                this.progressWidth > 0.9 &&
                  (this.progressWidth > 100
                    ? this.setState({ progWidth: 100 }, function () {})
                    : this.setState(
                        { progWidth: this.progressWidth },
                        function () {}
                      ));
            },
          },
          { key: "componentWillUnmount", value: function () {} },
          {
            key: "alternateWorker",
            value:
              ((n = y()(
                v.a.mark(function e(t, n, r, o, a) {
                  var i, s, l, c, u, d, h;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            i = r;
                          case 1:
                            if (!(i <= o)) {
                              e.next = 35;
                              break;
                            }
                            return (
                              (s = performance.now()),
                              (l = new FormData()).append(
                                "action",
                                "bulk_import"
                              ),
                              l.append("HashKey", t),
                              l.append("PageNumber", i),
                              l.append("RollBack", n),
                              l.append("Check", a),
                              (e.prev = 9),
                              (e.next = 12),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: l,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 12:
                            if (200 != (c = e.sent).status) {
                              e.next = 21;
                              break;
                            }
                            if (
                              ((u = performance.now()),
                              (d = c.data),
                              (h = (((u - s) % 6e4) / 1e3).toFixed(0)),
                              0 != d.success)
                            ) {
                              e.next = 20;
                              break;
                            }
                            return (
                              this.updateProgressBar({
                                result: d,
                                completedPage: i,
                                secondsToComplete: h,
                              }),
                              e.abrupt("break", 35)
                            );
                          case 20:
                            this.updateProgressBar({
                              result: d,
                              completedPage: i,
                              secondsToComplete: h,
                            });
                          case 21:
                            e.next = 30;
                            break;
                          case 23:
                            if (
                              ((e.prev = 23),
                              (e.t0 = e.catch(9)),
                              504 != e.t0.response.status ||
                                502 != e.t0.response.status)
                            ) {
                              e.next = 29;
                              break;
                            }
                            this.alternateWorker.bind(this)(t, n, r + 1, o, a),
                              (e.next = 30);
                            break;
                          case 29:
                            return e.abrupt("return");
                          case 30:
                            if (this.state.controlImportProcess) {
                              e.next = 32;
                              break;
                            }
                            return e.abrupt("return");
                          case 32:
                            i++, (e.next = 1);
                            break;
                          case 35:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[9, 23]]
                  );
                })
              )),
              function (e, t, r, o, a) {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "updateProgressBar",
            value: function (e) {
              this.loopCount = this.loopCount + 1;
              var t = e.result,
                n = e.completedPage,
                r = e.secondsToComplete;
              0 == t.success && this.timer && clearInterval(this.timer);
              var o = this.context.bulkImportData.totalRows,
                a = Math.ceil(o / this.bulkImportCount),
                i = a - n,
                s = n * this.bulkImportCount + 1,
                l = n * this.bulkImportCount + this.bulkImportCount;
              l > o && (l = o);
              var c = s + " - " + l;
              s > o && ((c = ""), this.timer && clearInterval(this.timer));
              var u = o - n * this.bulkImportCount;
              u < 0 && (u = 0),
                n != a
                  ? this.setState({ loading: !0 })
                  : this.setState({ loading: !1, importStatus: "Completed" }),
                this.setState({ remainingRecords: u, processingRecords: c });
              var d = {
                total_records: o,
                processing_records: s,
                remaining_records: u,
              };
              (this.remainingTime = r * i),
                this.secondsToHms(this.remainingTime),
                this.loadProgress(d);
            },
          },
          {
            key: "secondsToHms",
            value: function (e) {
              e = Number(e);
              var t = Math.floor(e / 3600),
                n = Math.floor((e % 3600) / 60),
                r = Math.floor((e % 3600) % 60);
              t.toString().length < 2 && (t = "0" + t),
                n.toString().length < 2 && (n = "0" + n),
                r.toString().length < 2 && (r = "0" + r);
              var o = t + ":" + n + ":" + r;
              this.setState({ remainingTime: o });
            },
          },
          {
            key: "stopWatch",
            value: function () {
              this.stopSeconds++,
                this.stopSeconds >= 60 &&
                  ((this.stopSeconds = 0),
                  this.stopMinutes++,
                  this.stopMinutes >= 60 &&
                    ((this.stopMinutes = 0), this.stopHours++)),
                this.stopHours.toString().length < 2 &&
                  (this.stopHours = "0" + this.stopHours),
                this.stopMinutes.toString().length < 2 &&
                  (this.stopMinutes = "0" + this.stopMinutes),
                this.stopSeconds.toString().length < 2 &&
                  (this.stopSeconds = "0" + this.stopSeconds);
              var e =
                this.stopHours +
                ":" +
                this.stopMinutes +
                ":" +
                this.stopSeconds;
              this.setState({ stopWatch: e });
            },
          },
          {
            key: "startRollBackMode",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              this.setState({ rollBackProgress: !0 }),
                              (t = new FormData()).set(
                                "action",
                                "rollback_now"
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            (n = e.sent),
                              this.setState({ rollBackProgress: !1 }),
                              (r = n.data).success
                                ? (this.context.setRollBackMode(!1),
                                  D.toast.success(r.message))
                                : D.toast.error(r.message);
                          case 10:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this,
                t = { width: this.state.progWidth + "%" },
                n =
                  (!this.state.loading && this.context.showImportLog,
                  this.context.bulkImportData),
                r = n.fileSize,
                a = n.fileName,
                i = n.totalRows;
              return o.a.createElement(
                "div",
                { className: "wp-ultimate-csv-importer" },
                o.a.createElement(
                  "div",
                  { className: " container" },
                  o.a.createElement(
                    "div",
                    { className: "row" },
                    o.a.createElement(
                      "div",
                      { className: "importer-log col-md-9" },
                      o.a.createElement(
                        "div",
                        { className: "card csv-importer-panel mt40 col-md-12" },
                        o.a.createElement(
                          "div",
                          { className: "card-body mb10" },
                          o.a.createElement(
                            "h4",
                            { className: "text-center" },
                            "Import ",
                            this.state.importStatus
                          ),
                          o.a.createElement(
                            "div",
                            { className: "row justify-content-center" },
                            o.a.createElement(
                              "div",
                              { className: "mt30 " },
                              "Completed" === this.state.importStatus
                                ? o.a.createElement(
                                    o.a.Fragment,
                                    null,
                                    o.a.createElement("input", {
                                      type: "button",
                                      className: "smack-btn btn-default",
                                      value: "Close",
                                      onClick: function (t) {
                                        e.context.setShowComponent(
                                          "upload-dashboard"
                                        ),
                                          window.location.reload();
                                      },
                                    }),
                                    this.context.rollBackMode
                                      ? o.a.createElement(
                                          o.a.Fragment,
                                          null,
                                          o.a.createElement("input", {
                                            type: "button",
                                            className:
                                              "ml20 smack-btn smack-btn-danger",
                                            value: "RoleBack Now",
                                            onClick: function (t) {
                                              e.startRollBackMode();
                                            },
                                          }),
                                          " ",
                                          this.state.rollBackProgress
                                            ? o.a.createElement("div", {
                                                className:
                                                  "btn ajax-loader loading",
                                                style: {
                                                  marginLeft: "25px",
                                                  marginRight: "0",
                                                  bottom: "5px",
                                                  padding: "0",
                                                },
                                              })
                                            : "",
                                          " "
                                        )
                                      : void 0
                                  )
                                : this.state.controlImportProcess
                                ? o.a.createElement("input", {
                                    type: "button",
                                    className: "smack-btn smack-btn-warning",
                                    value: "Pause",
                                    onClick: this.pauseBulkImport,
                                  })
                                : o.a.createElement("input", {
                                    type: "button",
                                    className: "smack-btn smack-btn-primary",
                                    value: "Resume",
                                    onClick: this.resumeBulkImport,
                                  })
                            )
                          ),
                          o.a.createElement(
                            "table",
                            { className: "table mt40" },
                            o.a.createElement(
                              "tbody",
                              null,
                              o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement(
                                  "td",
                                  { className: "text-left" },
                                  this.context.language.FileName,
                                  ":",
                                  " ",
                                  o.a.createElement("span", null, a)
                                ),
                                o.a.createElement(
                                  "td",
                                  { className: "text-right" },
                                  this.context.language.FileSize,
                                  ":",
                                  " ",
                                  o.a.createElement("span", null, r)
                                )
                              ),
                              o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement(
                                  "td",
                                  { className: "text-left" },
                                  this.context.language.Process,
                                  ":",
                                  " ",
                                  o.a.createElement(
                                    "span",
                                    null,
                                    this.context.csvInfo.replaceExistingItem
                                  )
                                ),
                                o.a.createElement(
                                  "td",
                                  { className: "text-right" },
                                  this.context.language.Totalnoofrecords,
                                  ":",
                                  " ",
                                  o.a.createElement("span", null, i)
                                )
                              ),
                              o.a.createElement(
                                "tr",
                                null,
                                o.a.createElement(
                                  "td",
                                  { className: "text-left" },
                                  o.a.createElement(
                                    "span",
                                    {
                                      className:
                                        "font-weight-normal text-success",
                                    },
                                    " ",
                                    this.context.language
                                      .CurrentProcessingRecord,
                                    ": ",
                                    o.a.createElement(
                                      "span",
                                      null,
                                      this.state.processingRecords
                                    )
                                  )
                                ),
                                o.a.createElement(
                                  "td",
                                  { className: "text-right" },
                                  o.a.createElement(
                                    "span",
                                    {
                                      className:
                                        "font-weight-normal text-danger",
                                    },
                                    this.context.language.RemainingRecord,
                                    ":",
                                    " ",
                                    o.a.createElement(
                                      "span",
                                      null,
                                      this.state.remainingRecords
                                    )
                                  )
                                )
                              )
                            )
                          ),
                          o.a.createElement(
                            "div",
                            { className: "card-body px-3" },
                            o.a.createElement(
                              "div",
                              { className: "importing-details" },
                              o.a.createElement(
                                "div",
                                { className: "progress-status" },
                                "Processing" === this.state.importStatus
                                  ? "In Progress"
                                  : ""
                              ),
                              o.a.createElement(
                                "div",
                                { className: "import-progress" },
                                o.a.createElement(
                                  "div",
                                  { className: "progress-loading" },
                                  this.state.progWidth + "%",
                                  " ",
                                  this.context.language.Completed
                                ),
                                o.a.createElement(
                                  "div",
                                  { className: "progress-timing" },
                                  o.a.createElement("i", {
                                    className: "csv-icon-schedule",
                                  }),
                                  " ",
                                  this.context.language.TimeElapsed,
                                  ":",
                                  " ",
                                  o.a.createElement(
                                    "span",
                                    null,
                                    " ",
                                    this.state.stopWatch,
                                    "/ "
                                  ),
                                  this.state.remainingTime,
                                  "(",
                                  this.context.language.approximate,
                                  ")"
                                )
                              )
                            ),
                            o.a.createElement(
                              "div",
                              { className: "progress mt5 mb40" },
                              o.a.createElement("div", {
                                className: "progress-bar",
                                style: t,
                                role: "progressbar",
                                "aria-valuenow": "10",
                                "aria-valuemin": "0",
                                "aria-valuemax": "100",
                              })
                            ),
                            o.a.createElement(
                              "div",
                              { className: "d-flex justify-content-center" },
                              o.a.createElement(
                                "a",
                                {
                                  target: "_blank",
                                  rel: "noopener noreferrer",
                                  className: "smack-btn smack-btn-primary",
                                  href: this.context.importLogDataLink,
                                },
                                o.a.createElement("i", {
                                  className: "csv-icon-download-cloud mr10",
                                }),
                                " ",
                                this.context.language.DownloadLog
                              )
                            )
                          )
                        )
                      )
                    ),
                    o.a.createElement(
                      "div",
                      {
                        className: "cardprogress col-md-3 mt40 mb5 border-rad",
                      },
                      o.a.createElement(
                        "div",
                        { className: "mt0 mr10 tit" },
                        o.a.createElement(
                          "h2",
                          { className: "title" },
                          "Ultimate CSV Importer Pro"
                        ),
                        o.a.createElement("hr", { className: "divider" }),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " ",
                            "Update older posts from single import"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " ",
                            "Auto Schedule with reusable templates"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " ",
                            "Advanced Custom Field/Post Plugins Importer"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " ",
                            "Import/Update any Toolset Types, ACF pro / Free and Pods fields"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " ",
                            "AIO WooCommerce Importer"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " ",
                            "WPML Importer"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " ",
                            "SEO Plugins Data Importer"
                          ),
                          o.a.createElement(
                            "li",
                            { className: "ml15", style: { listStyle: "disc" } },
                            " ",
                            "Exporter with advanced filters"
                          )
                        ),
                        o.a.createElement(
                          "a",
                          {
                            className: "basic-button border-rad mt25",
                            href:
                              "https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=promo_widget&utm_medium=pro_edition",
                            target: "blank",
                          },
                          "BUY NOW!"
                        )
                      )
                    )
                  )
                ),
                o.a.createElement("button", {
                  type: "button",
                  className: "d-none",
                  "data-toggle": "modal",
                  "data-target": "#displayLogText",
                  id: "triggerLog",
                }),
                o.a.createElement(
                  "div",
                  {
                    id: "displayLogText",
                    className: "modal fade",
                    role: "dialog",
                  },
                  o.a.createElement(
                    "div",
                    {
                      className: "modal-dialog modal-lg modal-dialog-centered",
                    },
                    o.a.createElement(
                      "div",
                      { className: "modal-content" },
                      o.a.createElement(
                        "div",
                        { className: "modal-header" },
                        o.a.createElement(
                          "h1",
                          { class: "main-heading" },
                          "Import Log for ",
                          this.state.fileName
                        ),
                        o.a.createElement(
                          "button",
                          {
                            type: "button",
                            className: "close",
                            "data-dismiss": "modal",
                          },
                          "×"
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "modal-body my-2" },
                        o.a.createElement("div", { id: "showLogText" })
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        a
      );
    })(r.Component);
    function Xt(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(Qt, "contextType", E);
    var $t = (function (e) {
      h()(n, e);
      var t = Xt(n);
      function n() {
        return l()(this, n), t.apply(this, arguments);
      }
      return (
        u()(n, [
          {
            key: "componentDidMount",
            value: function () {
              this.context.setSelectedTabOnCookies("import-update");
            },
          },
          {
            key: "render",
            value: function () {
              return "upload-dashboard" === this.context.showComponent
                ? o.a.createElement(Zt, null)
                : "csv-info" === this.context.showComponent
                ? o.a.createElement(Ht, null)
                : "mapping-section" === this.context.showComponent
                ? o.a.createElement(St, { fromEditTemplate: !1 })
                : "dragdrop-section" === this.context.showComponent
                ? o.a.createElement(Rt, { fromEditTemplate: !1 })
                : "media-handling" === this.context.showComponent
                ? o.a.createElement(Ut, null)
                : "import-config" === this.context.showComponent
                ? o.a.createElement(Wt, null)
                : "import-process" === this.context.showComponent
                ? o.a.createElement(Jt, null)
                : "bulk-import" === this.context.showComponent
                ? o.a.createElement(Qt, null)
                : void 0;
            },
          },
        ]),
        n
      );
    })(r.Component);
    M()($t, "contextType", E);
    var Zt = (function (e) {
      h()(n, e);
      var t = Xt(n);
      function n() {
        var e;
        l()(this, n);
        for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++)
          o[a] = arguments[a];
        return (
          (e = t.call.apply(t, [this].concat(o))),
          M()(k()(e), "state", { selectedId: "v-pills-home-tab" }),
          e
        );
      }
      return (
        u()(n, [
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                "div",
                { className: "container" },
                o.a.createElement(
                  "div",
                  { className: "row" },
                  o.a.createElement(
                    "div",
                    { className: "csv-importer-panel row mt20 col-md-9" },
                    o.a.createElement(
                      "div",
                      { className: "col-md-3 px-0" },
                      o.a.createElement(
                        "div",
                        {
                          className:
                            "nav flex-column nav-pills file-choosen-tab",
                          id: "v-pills-tab",
                          role: "tablist",
                          "aria-orientation": "vertical",
                        },
                        o.a.createElement(
                          "a",
                          {
                            className: "nav-link active mt20",
                            id: "v-pills-home-tab",
                            onClick: function (t) {
                              e.setState({ selectedId: t.target.id });
                            },
                            "data-toggle": "pill",
                            href: "#v-pills-home",
                            role: "tab",
                            "aria-controls": "v-pills-home",
                            "aria-selected": "false",
                          },
                          o.a.createElement("i", {
                            className: "csv-icon-upload-cloud",
                          }),
                          this.context.language.UploadfromDesktop
                        ),
                        o.a.createElement(
                          "a",
                          {
                            className: "nav-link pro-tag tp80",
                            id: "v-pills-profile-tab",
                            onClick: function (t) {
                              e.setState({ selectedId: t.target.id });
                            },
                            "data-toggle": "pill",
                            href: "#v-pills-profile",
                            role: "tab",
                            "aria-controls": "v-pills-profile",
                            "aria-selected": "true",
                          },
                          o.a.createElement("i", {
                            className: "csv-icon-upload3",
                          }),
                          this.context.language.UploadfromFTPSFTP
                        ),
                        o.a.createElement(
                          "a",
                          {
                            className: "nav-link pro-tag tp80",
                            id: "v-pills-messages-tab",
                            onClick: function (t) {
                              e.setState({ selectedId: t.target.id });
                            },
                            "data-toggle": "pill",
                            href: "#v-pills-messages",
                            role: "tab",
                            "aria-controls": "v-pills-messages",
                            "aria-selected": "false",
                          },
                          o.a.createElement("i", {
                            className: "csv-icon-link",
                          }),
                          this.context.language.UploadfromURL
                        ),
                        o.a.createElement(
                          "a",
                          {
                            className: "nav-link pro-tag tp80",
                            id: "v-pills-settings-tab",
                            onClick: function (t) {
                              e.setState({ selectedId: t.target.id });
                            },
                            "data-toggle": "pill",
                            href: "#v-pills-settings",
                            role: "tab",
                            "aria-controls": "v-pills-settings",
                            "aria-selected": "false",
                          },
                          o.a.createElement("i", {
                            className: "csv-icon-server",
                          }),
                          this.context.language.ChoosFileintheServer
                        )
                      )
                    ),
                    "v-pills-home-tab" == this.state.selectedId
                      ? o.a.createElement(Et, { uploadoptions: this })
                      : "v-pills-profile-tab" == this.state.selectedId ||
                        "v-pills-messages-tab" == this.state.selectedId ||
                        "v-pills-settings-tab" == this.state.selectedId
                      ? o.a.createElement(_e, null)
                      : void 0
                  ),
                  o.a.createElement(
                    "div",
                    { className: "cardbanner col-md-3 mt20 ml25 border-rad" },
                    o.a.createElement(
                      "div",
                      { className: "mt0 mb10 mr10 ml10" },
                      o.a.createElement(
                        "h2",
                        { className: "title" },
                        "Ultimate CSV Importer Pro"
                      ),
                      o.a.createElement("hr", { className: "divider" }),
                      o.a.createElement(
                        "ul",
                        null,
                        o.a.createElement(
                          "li",
                          { className: "ml15", style: { listStyle: "disc" } },
                          " Update older posts from single import"
                        ),
                        o.a.createElement(
                          "li",
                          { className: "ml15", style: { listStyle: "disc" } },
                          " Auto Schedule with reusable templates"
                        ),
                        o.a.createElement(
                          "li",
                          { className: "ml15", style: { listStyle: "disc" } },
                          " Advanced Custom Field/Post Plugins Importer"
                        ),
                        o.a.createElement(
                          "li",
                          { className: "ml15", style: { listStyle: "disc" } },
                          " AIO WooCommerce Import Suit"
                        ),
                        o.a.createElement(
                          "li",
                          { className: "ml15", style: { listStyle: "disc" } },
                          " WPML Importer"
                        ),
                        o.a.createElement(
                          "li",
                          { className: "ml15", style: { listStyle: "disc" } },
                          " SEO Plugins Data Importer"
                        ),
                        o.a.createElement(
                          "li",
                          { className: "ml15", style: { listStyle: "disc" } },
                          " Exporter with advanced filters"
                        )
                      ),
                      o.a.createElement(
                        "a",
                        {
                          className: "basic-button mt5 border-rad",
                          href:
                            "https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=promo_widget&utm_medium=pro_edition",
                          target: "blank",
                        },
                        "Buy NOW!"
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        n
      );
    })(r.Component);
    function en(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function tn(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = null != arguments[t] ? arguments[t] : {};
        t % 2
          ? en(Object(n), !0).forEach(function (t) {
              M()(e, t, n[t]);
            })
          : Object.getOwnPropertyDescriptors
          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
          : en(Object(n)).forEach(function (t) {
              Object.defineProperty(
                e,
                t,
                Object.getOwnPropertyDescriptor(n, t)
              );
            });
      }
      return e;
    }
    function nn(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(Zt, "contextType", E);
    var rn = (function (e) {
      h()(i, e);
      var t,
        n,
        r,
        a = nn(i);
      function i(e) {
        var t;
        return (
          l()(this, i),
          ((t = a.call(this, e)).state = {
            loading: !1,
            initialRowSize: 1,
            totalCsvRows: "",
            csvInformation: [],
            currentMode: "draganddrop",
            customFields: [],
            xmlData: [],
          }),
          (t.csvInformation = []),
          (t.handleScroll = t.handleScroll.bind(k()(t))),
          t
        );
      }
      return (
        u()(i, [
          {
            key: "componentDidMount",
            value: function () {
              this.checkRTLSupport(),
                this.getCsvFields(this.state.initialRowSize),
                window.addEventListener("scroll", this.handleScroll);
            },
          },
          {
            key: "componentWillUnmount",
            value: function () {
              window.removeEventListener("scroll", this.handleScroll);
            },
          },
          {
            key: "checkRTLSupport",
            value: function () {
              document.querySelector("html").getAttribute("dir") &&
                document
                  .getElementById("mapping-sidebar")
                  .classList.add("rltsupport");
            },
          },
          {
            key: "handleScroll",
            value: function (e) {
              var t = document.getElementById("mapping-sidebar"),
                n =
                  document.getElementById("mapping-accordion").offsetHeight -
                  300;
              window.scrollY > 200
                ? (t.classList.add("mapping-sidebar-fixed"),
                  window.scrollY > n
                    ? t.classList.add("fixed-bottom-position")
                    : t.classList.remove("fixed-bottom-position"))
                : t.classList.remove("mapping-sidebar-fixed");
            },
          },
          {
            key: "getCsvFields",
            value:
              ((r = y()(
                v.a.mark(function e(t) {
                  var n, r, o, a, i;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (n = new FormData()),
                              this.context.isXML
                                ? n.set("action", "get_parse_xml")
                                : n.set("action", "displayCSV"),
                              n.set("row", t),
                              this.props.fromEditTemplate
                                ? n.set(
                                    "templatename",
                                    this.context.csvInfo.templateName
                                  )
                                : n.set(
                                    "HashKey",
                                    this.context.csvInfo.hashKey
                                  ),
                              this.setState({ loading: !0 }),
                              (e.prev = 5),
                              (e.next = 8),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: n,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 8:
                            if (
                              (r = e.sent) &&
                              r.data &&
                              200 == r.status &&
                              r.data.success
                            ) {
                              if (this.context.isXML)
                                this.setState({ xmlData: r.data.xml_array });
                              else {
                                for (
                                  o = [],
                                    a = [],
                                    this.csvInformation = [],
                                    i = 0;
                                  i < r.data.Headers.length;
                                  i++
                                )
                                  o.push(r.data.Headers[i]),
                                    a.push(r.data.Values[i]);
                                for (i = 0; i < r.data.Headers.length; i++)
                                  this.csvInformation.push({
                                    csvHeaders: r.data.Headers[i],
                                    csvValues: r.data.Values[i],
                                  });
                              }
                              this.setState({
                                totalCsvRows: r.data.total_rows,
                                loading: !1,
                              });
                            }
                            e.next = 15;
                            break;
                          case 12:
                            (e.prev = 12),
                              (e.t0 = e.catch(5)),
                              console.log(e.t0);
                          case 15:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[5, 12]]
                  );
                })
              )),
              function (e) {
                return r.apply(this, arguments);
              }),
          },
          {
            key: "onMappingSelect",
            value: function (e, t, n) {
              var r =
                  !(arguments.length > 3 && void 0 !== arguments[3]) ||
                  arguments[3],
                o = ht(e).resultKey,
                a = this.context.dragAndDropMappingResult[o];
              a
                ? r
                  ? (this.context.dragAndDropMappingResult[o][t] = n)
                  : this.context.dragAndDropMappingResult[o][t]
                  ? (this.context.dragAndDropMappingResult[o][t] += n)
                  : (this.context.dragAndDropMappingResult[o][t] = n)
                : ((this.context.dragAndDropMappingResult[o] = {}),
                  (this.context.dragAndDropMappingResult[o][t] = n)),
                this.forceUpdate();
            },
          },
          {
            key: "addCustomField",
            value: function () {
              this.state.customFields.push({ name: "", label: "", value: "" }),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onCustomFieldLabelChange",
            value: function (e, t) {
              (this.state.customFields[t].label = e),
                (this.state.customFields[t].name = e
                  .trim()
                  .replace(/\s+/g, "-")
                  .toLowerCase()),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "onCustomFieldValueChange",
            value: function (e, t) {
              var n =
                !(arguments.length > 2 && void 0 !== arguments[2]) ||
                arguments[2];
              n
                ? (this.state.customFields[t].value = e)
                : (this.state.customFields[t].value += e),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "deleteCustomField",
            value: function (e) {
              this.state.customFields.splice(e, 1),
                this.setState({ customFields: this.state.customFields });
            },
          },
          {
            key: "checkMandatory",
            value: function () {
              for (
                var e = [
                    "language_code",
                    "translated_post_title",
                    "translated_taxonomy_title",
                    "user_login",
                    "user_email",
                  ],
                  t = 0;
                t < this.context.allPluginFields.length;
                t++
              ) {
                var n = this.context.allPluginFields[t];
                for (var r in n) {
                  var o = n[r];
                  if (o)
                    for (var a = 0; a < o.length; a++)
                      if (
                        e.includes(o[a].name) &&
                        !this.checkKeyExistInMapping(o[a].name)
                      )
                        return !1;
                }
              }
              return !0;
            },
          },
          {
            key: "checkKeyExistInMapping",
            value: function (e) {
              var t = !1;
              for (var n in this.context.dragAndDropMappingResult) {
                if (this.context.dragAndDropMappingResult[n])
                  Object.keys(
                    this.context.dragAndDropMappingResult[n]
                  ).includes(e) &&
                    this.context.dragAndDropMappingResult[n][e] &&
                    (t = !0);
              }
              return !!t || (D.toast.error(e + " is mandatory field"), !1);
            },
          },
          {
            key: "sendMappedFields",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n, r, o, a;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if (this.state.customFields)
                              for (
                                t = 0;
                                t < this.state.customFields.length;
                                t++
                              )
                                (n = this.state.customFields[t]),
                                  (r = n.name.trim()),
                                  n.value &&
                                    r &&
                                    (this.context.dragAndDropMappingResult
                                      .CORECUSTFIELDS ||
                                      (this.context.dragAndDropMappingResult.CORECUSTFIELDS = {}),
                                    (this.context.dragAndDropMappingResult.CORECUSTFIELDS[
                                      n.name
                                    ] = n.value));
                            if (this.checkMandatory()) {
                              e.next = 3;
                              break;
                            }
                            return e.abrupt("return");
                          case 3:
                            return (
                              this.context.setMappingType("dragdrop-section"),
                              (o = new FormData()),
                              this.props.fromEditTemplate
                                ? o.set("action", "saveTemplate")
                                : (o.set("action", "saveMappedFields"),
                                  o.set(
                                    "HashKey",
                                    this.context.csvInfo.hashKey
                                  )),
                              o.set("Types", this.context.csvInfo.selectedtype),
                              o.set(
                                "MappedFields",
                                JSON.stringify(
                                  this.context.dragAndDropMappingResult
                                )
                              ),
                              o.set("MappingType", "dragdrop-section"),
                              this.context.isTemplate &&
                                o.set("UseTemplateState", "true"),
                              this.context.isTemplate ||
                              this.props.fromEditTemplate
                                ? (o.set(
                                    "TemplateName",
                                    this.context.existingTemplateName
                                  ),
                                  o.set(
                                    "NewTemplate",
                                    this.context.csvInfo.templateName
                                  ))
                                : (o.set(
                                    "TemplateName",
                                    this.context.csvInfo.templateName
                                  ),
                                  o.set("UseTemplateState", "false")),
                              (e.prev = 11),
                              (e.next = 14),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: o,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 14:
                            (a = e.sent),
                              this.setState({ loading: !0 }),
                              a &&
                                a.data &&
                                (200 == a.status && a.data.success
                                  ? (this.setState({ loading: !1 }),
                                    this.props.fromEditTemplate
                                      ? this.props.onEditTemplate(!1)
                                      : ("WooCommerce Orders" ===
                                          this.context.csvInfo.selectedtype ||
                                          "WooCommerce Coupons" ===
                                            this.context.csvInfo.selectedtype ||
                                          "WooCommerce Product Variations" ===
                                            this.context.csvInfo.selectedtype ||
                                          "WooCommerce Refunds" ===
                                            this.context.csvInfo.selectedtype ||
                                          "WooCommerce Attributes" ===
                                            this.context.csvInfo.selectedtype ||
                                          "Users" ===
                                            this.context.csvInfo.selectedtype ||
                                          "Comments" ===
                                            this.context.csvInfo.selectedtype ||
                                          "nav_menu_item" ===
                                            this.context.csvInfo.selectedtype ||
                                          this.context.csvInfo.selectedtype,
                                        this.startSimpleImport()))
                                  : (this.setState({ loading: !1 }),
                                    D.toast.error(
                                      a.data.message +
                                        " Please Choose Another Name"
                                    ))),
                              (e.next = 22);
                            break;
                          case 19:
                            (e.prev = 19),
                              (e.t0 = e.catch(11)),
                              this.setState({ loading: !1 });
                          case 22:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[11, 19]]
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "startSimpleImport",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, r;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "bulk_file_import"
                              ),
                              t.set("HashKey", this.context.csvInfo.hashKey),
                              this.context.setShowImportLog(!0),
                              this.context.setImportLogDataLink(
                                ""
                                  .concat(window.wpr_object.logfielpath, "/")
                                  .concat(this.context.csvInfo.hashKey, "/")
                                  .concat(this.context.csvInfo.hashKey, ".html")
                              ),
                              this.setState({ loading: !0 }),
                              (e.prev = 6),
                              (e.next = 9),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 9:
                            return (
                              (n = e.sent),
                              this.setState({ loading: !1 }),
                              (r =
                                "csv" === n.data.file_extension ||
                                "txt" === n.data.file_extension
                                  ? Math.ceil(n.data.total_rows / 5)
                                  : Math.ceil(n.data.total_rows / 3)),
                              console.log("Simple Import Response", n.data),
                              (this.context.bulkImportData.totalPages = r),
                              (this.context.bulkImportData.totalRows =
                                n.data.total_rows),
                              (this.context.bulkImportData.fileName =
                                n.data.file_name),
                              (this.context.bulkImportData.fileSize =
                                n.data.filesize),
                              (this.context.bulkImportData.fileExtension =
                                n.data.file_extension),
                              (this.context.bulkImportData.fileIteration = 5),
                              (this.context.bulkImportData.Check = !0),
                              this.context.setBulkImportData({
                                totalPages: r,
                                totalRows: n.data.total_rows,
                                fileName: n.data.file_name,
                                fileSize: n.data.filesize,
                                fileExtension: n.data.file_extension,
                                fileIteration: n.data.file_iteration,
                                Check: !0,
                              }),
                              this.context.setShowComponent("simple-import"),
                              e.abrupt("return")
                            );
                          case 25:
                            (e.prev = 25), (e.t0 = e.catch(6));
                          case 27:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[6, 25]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this,
                t = this.state,
                n = (t.initialRowSize, t.totalCsvRows);
              t.xmlData;
              return o.a.createElement(
                o.a.Fragment,
                null,
                this.context.isXML
                  ? o.a.createElement(o.a.Fragment, null)
                  : o.a.createElement(
                      "div",
                      { className: "container" },
                      o.a.createElement(
                        "div",
                        { className: "d-flex justify-content-center" },
                        o.a.createElement(
                          "div",
                          { className: "col-md-6" },
                          o.a.createElement(
                            "ul",
                            { className: "mapping-switcher" },
                            o.a.createElement(
                              "li",
                              {
                                onClick: function () {
                                  e.context.setShowComponent("mapping-section");
                                },
                              },
                              this.context.language.ADVANCEDMODE
                            ),
                            o.a.createElement(
                              "li",
                              {
                                className: "active",
                                onClick: function () {
                                  e.context.setShowComponent(
                                    "dragdrop-section"
                                  );
                                },
                              },
                              this.context.language.DRAGDROPMODE
                            )
                          )
                        )
                      )
                    ),
                o.a.createElement("div", { className: "clearfix" }),
                o.a.createElement(
                  "div",
                  {
                    className: "row container-fluid ",
                    style: { maxWidth: "1400px", margin: "auto" },
                  },
                  o.a.createElement(
                    "div",
                    { id: "mapping-accordion", className: "col-md-8" },
                    o.a.createElement("div", { className: "mt50" }),
                    this.context.allPluginFields.map(function (t, n) {
                      var r = Object.keys(t)[0];
                      if (!ht(r))
                        return o.a.createElement(
                          "div",
                          null,
                          " ",
                          "This ",
                          r,
                          " support not implemented",
                          " "
                        );
                      var a = !1;
                      return (
                        r || (a = !0),
                        t[r] ||
                        Array.isArray(t[r]) ||
                        ((a = !0), "wordpress_custom_fields" === r)
                          ? a
                            ? void 0
                            : o.a.createElement(
                                "div",
                                { className: "card csv-importer-panel" },
                                o.a.createElement(
                                  "h1",
                                  {
                                    className: "card-header main-heading ".concat(
                                      0 == n ? "active" : ""
                                    ),
                                    id: r,
                                    onClick: function () {
                                      toggle_func(r);
                                    },
                                  },
                                  e.context.language[ht(r).languageName],
                                  " ",
                                  o.a.createElement("span", {
                                    className:
                                      "csv-icon-angle-down float-right",
                                  })
                                ),
                                o.a.createElement(
                                  "div",
                                  {
                                    className: "card-body",
                                    id: "".concat(r, "-body"),
                                    style: {
                                      display: 0 == n ? "block" : "none",
                                    },
                                    "data-display": e.state.display,
                                  },
                                  t[r].map(function (t, n) {
                                    return o.a.createElement(
                                      "div",
                                      { className: "form-group" },
                                      o.a.createElement("label", null, t.label),
                                      o.a.createElement(
                                        Dt.Droppable,
                                        {
                                          types: ["csvheader"],
                                          onDrop: function (n) {
                                            e.onMappingSelect.bind(e)(
                                              r,
                                              t.name,
                                              "{".concat(n.csvheader, "}"),
                                              !1
                                            );
                                          },
                                        },
                                        "post_content" === t.name
                                          ? o.a.createElement(Ct.a, {
                                              editor: Ot.a,
                                              data: (function () {
                                                var n = ht(r).resultKey;
                                                if (
                                                  e.context
                                                    .dragAndDropMappingResult[n]
                                                )
                                                  return e.context
                                                    .dragAndDropMappingResult[
                                                    n
                                                  ][t.name];
                                              })(),
                                              onInit: function (e) {},
                                              onChange: function (n, o) {
                                                var a = o.getData();
                                                e.onMappingSelect.bind(e)(
                                                  r,
                                                  t.name,
                                                  a
                                                );
                                              },
                                            })
                                          : o.a.createElement("input", {
                                              value: (function () {
                                                var n = ht(r).resultKey;
                                                if (
                                                  e.context
                                                    .dragAndDropMappingResult[n]
                                                )
                                                  return e.context
                                                    .dragAndDropMappingResult[
                                                    n
                                                  ][t.name];
                                              })(),
                                              type: "text",
                                              name: "",
                                              id: t.name + "_text",
                                              className: "form-control",
                                              onChange: function (n) {
                                                e.onMappingSelect.bind(e)(
                                                  r,
                                                  t.name,
                                                  n.target.value
                                                );
                                              },
                                            })
                                      )
                                    );
                                  })
                                )
                              )
                          : o.a.createElement(
                              "div",
                              { className: "card csv-importer-panel " },
                              o.a.createElement(
                                "h1",
                                {
                                  className:
                                    "card-header main-heading bg-white pro-tag",
                                },
                                e.context.language[ht(r).languageName],
                                " "
                              )
                            )
                      );
                    }),
                    "WooCommerce Coupons" !==
                      this.context.csvInfo.selectedtype &&
                      "WooCommerce Product Variations" !==
                        this.context.csvInfo.selectedtype &&
                      "WooCommerce Refunds" !==
                        this.context.csvInfo.selectedtype &&
                      "WPeCommerce Coupons" !==
                        this.context.csvInfo.selectedtype &&
                      "WooCommerce Product" !==
                        this.context.csvInfo.selectedtype &&
                      "Customer Reviews" !==
                        this.context.csvInfo.selectedtype &&
                      "Images" !== this.context.csvInfo.selectedtype &&
                      "eShop Products" !== this.context.csvInfo.selectedtype &&
                      "MarketPress Product" !==
                        this.context.csvInfo.selectedtype &&
                      "WPeCommerce Coupons" !==
                        this.context.csvInfo.selectedtype &&
                      "Comments" !== this.context.csvInfo.selectedtype &&
                      "nav_menu_item" !== this.context.csvInfo.selectedtype &&
                      "widgets" !== this.context.csvInfo.selectedtype
                      ? o.a.createElement(
                          o.a.Fragment,
                          null,
                          o.a.createElement(
                            "div",
                            { className: "card csv-importer-panel" },
                            o.a.createElement(
                              "h1",
                              {
                                className: "card-header main-heading",
                                id: "custom-field-creator",
                                onClick: function () {
                                  return toggle_func("custom-field-creator");
                                },
                              },
                              "Create WP Custom Fields",
                              " ",
                              o.a.createElement("span", {
                                className: "csv-icon-angle-down float-right",
                              })
                            ),
                            o.a.createElement(
                              "div",
                              {
                                className: "card-body",
                                id: "custom-field-creator-body",
                              },
                              o.a.createElement(
                                "table",
                                { className: "table table-mapping" },
                                o.a.createElement(
                                  "thead",
                                  null,
                                  o.a.createElement(
                                    "tr",
                                    null,
                                    o.a.createElement(
                                      "th",
                                      null,
                                      this.context.language.WPFIELDS
                                    ),
                                    o.a.createElement(
                                      "th",
                                      null,
                                      this.context.language.CSVHEADER
                                    ),
                                    o.a.createElement(
                                      "th",
                                      { className: "text-center" },
                                      this.context.language.Action
                                    )
                                  )
                                ),
                                o.a.createElement(
                                  "tbody",
                                  null,
                                  0 != this.state.customFields.length
                                    ? this.state.customFields.map(function (
                                        t,
                                        n
                                      ) {
                                        return o.a.createElement(
                                          "tr",
                                          null,
                                          o.a.createElement(
                                            "td",
                                            { style: { width: "40%" } },
                                            o.a.createElement(
                                              "label",
                                              { className: "wpfields" },
                                              o.a.createElement("input", {
                                                type: "text",
                                                value: t.label,
                                                className: "form-control",
                                                onChange: function (t) {
                                                  e.onCustomFieldLabelChange(
                                                    t.target.value,
                                                    n
                                                  );
                                                },
                                              })
                                            ),
                                            o.a.createElement(
                                              "label",
                                              { className: "sub-text" },
                                              "[Name: ".concat(t.name, "]"),
                                              " "
                                            )
                                          ),
                                          o.a.createElement(
                                            "td",
                                            {
                                              style: {
                                                width: "40%",
                                                verticalAlign: "top",
                                              },
                                            },
                                            o.a.createElement(
                                              Dt.Droppable,
                                              {
                                                types: ["csvheader"],
                                                onDrop: function (t) {
                                                  e.onCustomFieldValueChange.bind(
                                                    e
                                                  )(
                                                    "{".concat(
                                                      t.csvheader,
                                                      "}"
                                                    ),
                                                    n,
                                                    !1
                                                  );
                                                },
                                              },
                                              o.a.createElement("input", {
                                                value:
                                                  e.state.customFields[n].value,
                                                type: "text",
                                                name: "",
                                                id: "text_" + n,
                                                className: "form-control",
                                                onChange: function (t) {
                                                  e.onCustomFieldValueChange.bind(
                                                    e
                                                  )(t.target.value, n);
                                                },
                                              })
                                            )
                                          ),
                                          o.a.createElement(
                                            "td",
                                            { className: "action text-center" },
                                            o.a.createElement(
                                              "a",
                                              {
                                                className: "action-icon",
                                                "data-tip": "Delete",
                                                onClick: function (t) {
                                                  e.deleteCustomField(n);
                                                },
                                              },
                                              o.a.createElement("i", {
                                                className: "csv-icon-trash-2",
                                              })
                                            ),
                                            o.a.createElement(he, {
                                              effect: "solid",
                                            })
                                          )
                                        );
                                      })
                                    : o.a.createElement(
                                        "tr",
                                        null,
                                        o.a.createElement(
                                          "td",
                                          {
                                            colSpan: "3",
                                            className:
                                              "text-center border-bottom text-danger",
                                          },
                                          "No WP Custom Fields"
                                        )
                                      )
                                )
                              ),
                              o.a.createElement(
                                "div",
                                { className: "float-right mb20 mt20" },
                                o.a.createElement(
                                  "a",
                                  {
                                    className: "smack-btn smack-btn-secondary",
                                    onClick: function (t) {
                                      e.addCustomField();
                                    },
                                  },
                                  "Add Custom Field"
                                )
                              )
                            )
                          )
                        )
                      : void 0,
                    o.a.createElement(
                      "div",
                      { className: "mt40" },
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 text-center mt30" },
                        this.context.isTemplate
                          ? o.a.createElement(
                              "div",
                              null,
                              o.a.createElement(
                                "label",
                                null,
                                "Update this mapping as"
                              ),
                              o.a.createElement("input", {
                                type: "text",
                                className: "form-control ml10 d-inline w-25",
                                onChange: function (t) {
                                  e.context.setCSVInfo(
                                    tn(
                                      tn({}, e.context.csvInfo),
                                      {},
                                      { templateName: t.target.value }
                                    )
                                  );
                                },
                                value: this.context.csvInfo.templateName,
                              })
                            )
                          : o.a.createElement(
                              "div",
                              null,
                              o.a.createElement(
                                "label",
                                null,
                                "Save this mapping as"
                              ),
                              o.a.createElement("input", {
                                type: "text",
                                onChange: function (t) {
                                  e.context.setCSVInfo(
                                    tn(
                                      tn({}, e.context.csvInfo),
                                      {},
                                      { templateName: t.target.value }
                                    )
                                  );
                                },
                                className: "form-control ml10 d-inline w-25",
                                value: this.context.csvInfo.templateName,
                              })
                            )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "col-md-12 mt40 p0" },
                        o.a.createElement(
                          "div",
                          { className: "float-left" },
                          o.a.createElement(
                            "button",
                            {
                              className: "smack-btn btn-default",
                              onClick: function () {
                                e.context.setShowComponent("upload-dashboard");
                              },
                            },
                            "Back"
                          )
                        ),
                        this.props.fromEditTemplate
                          ? o.a.createElement(
                              "div",
                              { className: "float-right mb20" },
                              o.a.createElement(
                                "button",
                                {
                                  className: "smack-btn smack-btn-primary",
                                  onClick: this.sendMappedFields.bind(this),
                                },
                                "Save"
                              )
                            )
                          : o.a.createElement(
                              "div",
                              { className: "float-right mb20" },
                              o.a.createElement(
                                "button",
                                {
                                  className: "smack-btn smack-btn-primary",
                                  onClick: this.sendMappedFields.bind(this),
                                },
                                this.context.language.Continue
                              )
                            ),
                        o.a.createElement("div", { className: "clearfix" })
                      )
                    )
                  ),
                  o.a.createElement(
                    "div",
                    { className: "col-md-4 " },
                    o.a.createElement(
                      "div",
                      { className: "mapping-sidebar", id: "mapping-sidebar" },
                      o.a.createElement(
                        "table",
                        { className: "mapping-sidebar-title" },
                        o.a.createElement(
                          "tbody",
                          null,
                          o.a.createElement(
                            "tr",
                            null,
                            o.a.createElement(
                              "td",
                              { className: "mapping-sidebar-arrow" },
                              o.a.createElement("span", {
                                className: "csv-icon-chevron-with-circle-left",
                                onClick: function (t) {
                                  e.state.initialRowSize--,
                                    e.state.initialRowSize >= 1
                                      ? e.getCsvFields(e.state.initialRowSize)
                                      : e.state.initialRowSize++;
                                },
                              })
                            ),
                            o.a.createElement(
                              "td",
                              { className: "mapping-sidebar-textbox-section" },
                              o.a.createElement(
                                "strong",
                                null,
                                o.a.createElement("input", {
                                  id: "current_row",
                                  value: this.state.initialRowSize,
                                  type: "text",
                                  pattern: "[0-9]*",
                                  onChange: function (t) {
                                    parseInt(t.target.value) >
                                    e.state.totalCsvRows
                                      ? e.setState(
                                          {
                                            initialRowSize:
                                              e.state.totalCsvRows,
                                          },
                                          function () {
                                            e.getCsvFields(
                                              e.state.initialRowSize
                                            );
                                          }
                                        )
                                      : (e.setState({
                                          initialRowSize: t.target.value,
                                        }),
                                        e.getCsvFields(e.state.initialRowSize));
                                  },
                                })
                              ),
                              " ",
                              o.a.createElement(
                                "span",
                                { className: "mapping-textbox-out-of" },
                                "of",
                                o.a.createElement("strong", null, " ", n)
                              )
                            ),
                            o.a.createElement(
                              "td",
                              { className: "mapping-sidebar-arrow" },
                              o.a.createElement("span", {
                                className: "csv-icon-chevron-with-circle-right",
                                onClick: function (t) {
                                  e.state.initialRowSize++,
                                    e.state.initialRowSize <=
                                    e.state.totalCsvRows
                                      ? e.getCsvFields(e.state.initialRowSize)
                                      : e.state.initialRowSize--;
                                },
                              })
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { className: "uci_mapping" },
                        o.a.createElement(
                          "table",
                          {
                            className: "table table-bordered",
                            cellspacing: "10",
                          },
                          this.context.isXML
                            ? this.state.loading ||
                              0 == this.state.xmlData.length
                              ? o.a.createElement("div", {
                                  className: "loader loader-1 mt15 text-center",
                                })
                              : this.state.xmlData.map(function (e, t) {
                                  return o.a.createElement(
                                    "tr",
                                    null,
                                    o.a.createElement(
                                      "td",
                                      {
                                        style: { width: "40%" },
                                        title: e.node_path,
                                        className:
                                          "text-primary font-weight-bold",
                                      },
                                      o.a.createElement(
                                        Dt.Draggable,
                                        {
                                          type: "csvheader",
                                          data: e.node_path,
                                        },
                                        e.name
                                      )
                                    ),
                                    o.a.createElement("td", null, e.value)
                                  );
                                })
                            : this.state.loading ||
                              0 == this.csvInformation.length
                            ? o.a.createElement("div", {
                                className: "loader loader-1 mt15 text-center",
                              })
                            : this.csvInformation.map(function (e, t) {
                                return o.a.createElement(
                                  "tr",
                                  null,
                                  o.a.createElement(
                                    "td",
                                    {
                                      style: { width: "40%" },
                                      className:
                                        "text-primary font-weight-bold",
                                    },
                                    o.a.createElement(
                                      Dt.Draggable,
                                      { type: "csvheader", data: e.csvHeaders },
                                      e.csvHeaders
                                    )
                                  ),
                                  o.a.createElement("td", null, e.csvValues)
                                );
                              })
                        )
                      )
                    )
                  )
                )
              );
            },
          },
        ]),
        i
      );
    })(r.Component);
    function on(e, t) {
      var n = Object.keys(e);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(e);
        t &&
          (r = r.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
          n.push.apply(n, r);
      }
      return n;
    }
    function an(e) {
      for (var t = 1; t < arguments.length; t++) {
        var n = null != arguments[t] ? arguments[t] : {};
        t % 2
          ? on(Object(n), !0).forEach(function (t) {
              M()(e, t, n[t]);
            })
          : Object.getOwnPropertyDescriptors
          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
          : on(Object(n)).forEach(function (t) {
              Object.defineProperty(
                e,
                t,
                Object.getOwnPropertyDescriptor(n, t)
              );
            });
      }
      return e;
    }
    function sn(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    M()(rn, "contextType", E);
    var ln = (function (e) {
      h()(r, e);
      var t,
        n = sn(r);
      function r(e) {
        var t;
        return (
          l()(this, r),
          ((t = n.call(this, e)).state = {
            loading: !1,
            zipCsvFileName: [],
            zipCsvUrls: [],
            zipSelectedFileUrl: "",
          }),
          t
        );
      }
      return (
        u()(r, [
          {
            key: "onFilePondProcess",
            value: function (e, t, n, o, a, i, s) {
              var l = new FormData();
              l.append("csvFile", t, t.name), l.append("action", "get_desktop");
              var c = new XMLHttpRequest();
              return (
                c.open("POST", ajaxurl),
                (c.upload.onprogress = function (e) {
                  i(e.lengthComputable, e.loaded, e.total);
                }),
                (c.onload = function () {
                  if (c.status >= 200 && c.status < 300) {
                    o(JSON.parse(c.responseText));
                    var e = JSON.parse(c.responseText);
                    (r.filePondResponse = e),
                      r.filePondResponse.success
                        ? (r.showRecord = !0)
                        : ((r.showRecord = !1),
                          D.toast.error(r.filePondResponse.message));
                  } else a("oh no");
                }),
                c.send(l),
                {
                  abort: function () {
                    c.abort(), s();
                  },
                }
              );
            },
          },
          {
            key: "onProcessFile",
            value: function () {
              if (
                "csv" === r.filePondResponse.file_type ||
                "xml" === r.filePondResponse.file_type ||
                "txt" === r.filePondResponse.file_type
              )
                return (
                  this.context.setCSVInfo(
                    an(
                      an({}, this.context.csvInfo),
                      {},
                      {
                        hashKey: r.filePondResponse.hashkey,
                        templateName: r.filePondResponse.filename.slice(0, -4),
                        selectedtype: r.filePondResponse.selectedtype,
                        fileName: r.filePondResponse.filename,
                        connectionType: "desktop",
                        postTypes: r.filePondResponse.posttype,
                        fileSize: r.filePondResponse.file_size,
                        fileType: r.filePondResponse.file_type,
                      }
                    )
                  ),
                  "xml" === r.filePondResponse.file_type
                    ? this.context.setIsXML(!0)
                    : this.context.setIsXML(!1),
                  void this.context.setShowComponent("csv-info")
                );
              if ("zip" === r.filePondResponse.file_type) {
                for (var e = 0; e < r.filePondResponse.info.length; e++)
                  this.state.zipCsvFileName.push(
                    r.filePondResponse.info[e].name
                  ),
                    this.state.zipCsvUrls.push(r.filePondResponse.info[e].path);
                return (
                  this.context.setCSVInfo(
                    an(
                      an({}, this.context.csvInfo),
                      {},
                      { connectionType: "desktop" }
                    )
                  ),
                  void this.setState(
                    {
                      zipCsvFileName: this.state.zipCsvFileName,
                      zipCsvUrls: this.state.zipCsvUrls,
                    },
                    function () {
                      document.getElementById("desk-csv-open").click();
                    }
                  )
                );
              }
            },
          },
          { key: "onRemoveFile", value: function () {} },
          {
            key: "sendFileUrl",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t, n, o;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set("action", "get_csv_url"),
                              t.set("url", this.context.selectedFileUrl),
                              this.setState({ loading: !0 }),
                              (e.prev = 4),
                              (e.next = 7),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 7:
                            if (!(n = e.sent) || !n.data) {
                              e.next = 14;
                              break;
                            }
                            if (200 != n.status || !n.data.success) {
                              e.next = 14;
                              break;
                            }
                            return (
                              this.context.setCSVInfo(
                                an(
                                  an({}, this.context.csvInfo),
                                  {},
                                  ((o = {
                                    hashKey: n.data.hashkey,
                                    templateName: r.filePondResponse.filename.slice(
                                      0,
                                      -4
                                    ),
                                    selectedtype: n.data.selectedtype,
                                  }),
                                  M()(o, "templateName", "From-url"),
                                  M()(o, "postTypes", n.data.posttype),
                                  M()(o, "fileName", n.data.filename),
                                  M()(o, "fileType", n.data.file_type),
                                  M()(o, "fileSize", n.data.file_size),
                                  o)
                                )
                              ),
                              document.getElementById("desk-csv-close").click(),
                              this.context.setShowComponent("csv-info"),
                              e.abrupt("return")
                            );
                          case 14:
                            e.next = 19;
                            break;
                          case 16:
                            (e.prev = 16),
                              (e.t0 = e.catch(4)),
                              console.log(e.t0);
                          case 19:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this,
                    [[4, 16]]
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return "csv-info" === this.context.showComponent
                ? o.a.createElement(bt, null)
                : "mapping-section" === this.context.showComponent
                ? o.a.createElement(mt, null)
                : "dragdrop-section" === this.context.showComponent
                ? o.a.createElement(rn, null)
                : "simple-import" === this.context.showComponent
                ? o.a.createElement(wt, null)
                : o.a.createElement(
                    "div",
                    { className: "container" },
                    o.a.createElement(
                      "div",
                      { className: "row " },
                      o.a.createElement(
                        "div",
                        {
                          className: "cardbanner col-md-8 mt25 ml25 border-rad",
                        },
                        o.a.createElement(
                          "div",
                          {
                            class: "col-md-9 ".concat(
                              r.showRecord && this.state.showImportRecord
                                ? "min"
                                : ""
                            ),
                          },
                          o.a.createElement(
                            "div",
                            {
                              className: "tab-content",
                              id: "v-pills-tabContent",
                            },
                            o.a.createElement(
                              "div",
                              {
                                className: "tab-pane fade show active",
                                id: "v-pills-home",
                                role: "tabpanel",
                                "aria-labelledby": "v-pills-home-tab",
                                style: { height: "50%", width: "640px" },
                              },
                              o.a.createElement(ct.FilePond, {
                                acceptedFileTypes: ["text/csv/xml"].zip,
                                allowMultiple: !1,
                                maxFiles: 1,
                                server: {
                                  process: this.onFilePondProcess.bind(this),
                                },
                                onprocessfile: this.onProcessFile.bind(this),
                                onremovefile: this.onRemoveFile.bind(this),
                              })
                            )
                          ),
                          o.a.createElement(
                            "a",
                            {
                              href: "#",
                              className: "smack-btn smack-btn-primary d-none",
                              id: "desk-csv-open",
                              "data-toggle": "modal",
                              "data-target": "#upload_csv",
                            },
                            this.context.language.UploadedCSVFileLists
                          ),
                          o.a.createElement(
                            "div",
                            {
                              id: "upload_csv",
                              className: "modal fade payment_modal",
                              role: "dialog",
                            },
                            o.a.createElement(
                              "div",
                              {
                                className:
                                  "modal-dialog modal-lg modal-dialog-centered",
                              },
                              o.a.createElement(
                                "div",
                                { className: "modal-content" },
                                o.a.createElement(
                                  "div",
                                  { className: "modal-header" },
                                  o.a.createElement(
                                    "button",
                                    {
                                      type: "button",
                                      id: "desk-csv-close",
                                      className: "close",
                                      "data-dismiss": "modal",
                                    },
                                    "×"
                                  )
                                ),
                                o.a.createElement(
                                  "div",
                                  { className: "modal-body my-2" },
                                  o.a.createElement(
                                    "ul",
                                    null,
                                    this.state.zipCsvFileName.map(function (
                                      t,
                                      n
                                    ) {
                                      return o.a.createElement(
                                        "li",
                                        null,
                                        o.a.createElement(
                                          "div",
                                          {
                                            className:
                                              "form-check form-check-inline",
                                          },
                                          o.a.createElement(
                                            "label",
                                            { class: "form-check-label" },
                                            o.a.createElement("input", {
                                              className: "form-check-input",
                                              onClick: function (t) {
                                                t.target.checked &&
                                                  e.context.setSelectedFileUrl(
                                                    e.state.zipCsvUrls[n]
                                                  );
                                              },
                                              type: "radio",
                                              name: "post-item",
                                              id: "",
                                            }),
                                            " ",
                                            t
                                          )
                                        )
                                      );
                                    })
                                  ),
                                  o.a.createElement(
                                    "div",
                                    { className: "float-right" },
                                    o.a.createElement("input", {
                                      type: "button",
                                      className:
                                        "smack-btn smack-btn-primary mb20",
                                      onClick: this.sendFileUrl.bind(this),
                                      value: "Choose CSV File",
                                    })
                                  )
                                )
                              )
                            )
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        {
                          className: "cardbanner col-md-3 mt20 ml25 border-rad",
                        },
                        o.a.createElement(
                          "div",
                          { className: "mt0 mb10 mr10 ml10" },
                          o.a.createElement(
                            "h2",
                            { className: "title" },
                            "Ultimate CSV Importer Pro"
                          ),
                          o.a.createElement("hr", { className: "divider" }),
                          o.a.createElement(
                            "ul",
                            null,
                            o.a.createElement(
                              "li",
                              {
                                className: "ml15",
                                style: { listStyle: "disc" },
                              },
                              " Update older posts from single import"
                            ),
                            o.a.createElement(
                              "li",
                              {
                                className: "ml15",
                                style: { listStyle: "disc" },
                              },
                              " Auto Schedule with reusable templates"
                            ),
                            o.a.createElement(
                              "li",
                              {
                                className: "ml15",
                                style: { listStyle: "disc" },
                              },
                              " Advanced Custom Field/Post Plugins Importer"
                            ),
                            o.a.createElement(
                              "li",
                              {
                                className: "ml15",
                                style: { listStyle: "disc" },
                              },
                              " AIO WooCommerce Import Suit"
                            ),
                            o.a.createElement(
                              "li",
                              {
                                className: "ml15",
                                style: { listStyle: "disc" },
                              },
                              " WPML Importer"
                            ),
                            o.a.createElement(
                              "li",
                              {
                                className: "ml15",
                                style: { listStyle: "disc" },
                              },
                              " SEO Plugins Data Importer"
                            ),
                            o.a.createElement(
                              "li",
                              {
                                className: "ml15",
                                style: { listStyle: "disc" },
                              },
                              " Exporter with advanced filters"
                            )
                          ),
                          o.a.createElement(
                            "a",
                            {
                              className: "basic-button mt5 border-rad",
                              href:
                                "https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=promo_widget&utm_medium=pro_edition",
                              target: "blank",
                            },
                            "Buy NOW!"
                          )
                        )
                      )
                    )
                  );
            },
          },
        ]),
        r
      );
    })(r.Component);
    M()(ln, "contextType", E);
    var cn = n(60),
      un = n.n(cn),
      dn = function () {
        var e = Object(r.useState)(!1),
          t = un()(e, 2),
          n = t[0],
          a = t[1],
          i = Object(r.useState)(!1),
          s = un()(i, 2),
          l = s[0],
          c = s[1],
          u = Object(r.useState)(!1),
          d = un()(u, 2),
          h = d[0],
          p = d[1];
        function f() {
          return (f = y()(
            v.a.mark(function e() {
              var t, n, r;
              return v.a.wrap(
                function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          (t = new FormData()).set("action", "active_addons"),
                          (e.prev = 2),
                          (e.next = 5),
                          S()({
                            method: "post",
                            url: ajaxurl,
                            data: t,
                            config: {
                              headers: {
                                "Content-Type": "multipart/form-data",
                              },
                            },
                          })
                        );
                      case 5:
                        (n = e.sent),
                          (r = n.data),
                          a(r.exporter),
                          p(r.woocommerce),
                          c(r.users),
                          (e.next = 15);
                        break;
                      case 12:
                        (e.prev = 12), (e.t0 = e.catch(2)), console.log(e.t0);
                      case 15:
                      case "end":
                        return e.stop();
                    }
                },
                e,
                null,
                [[2, 12]]
              );
            })
          )).apply(this, arguments);
        }
        return (
          Object(r.useEffect)(function () {
            !(function () {
              f.apply(this, arguments);
            })();
          }, []),
          o.a.createElement(
            "div",
            { className: "container" },
            o.a.createElement(
              "div",
              { className: "card csv-importer-panel mt20" },
              o.a.createElement(
                "div",
                { className: "col-md-12 pt50 pb50" },
                o.a.createElement(
                  "div",
                  { class: "row justify-content-center" },
                  o.a.createElement(
                    "div",
                    { class: "csv-addon-box import-woocommerce" },
                    o.a.createElement(
                      "div",
                      { className: "addon-header" },
                      o.a.createElement("h2", null, "import woocommerce"),
                      o.a.createElement(
                        "p",
                        null,
                        "Import any bulk WooCommerce Products data in CSV"
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { class: "sub_fields" },
                      o.a.createElement(
                        "div",
                        { class: "sub_field" },
                        o.a.createElement("h3", null, "Highlights"),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            null,
                            "Product Types simple, grouped, variable, external type import."
                          ),
                          o.a.createElement(
                            "li",
                            null,
                            "Featured Product Import from URL"
                          ),
                          o.a.createElement("li", null, "Gallery image import"),
                          o.a.createElement("li", null, "Duplicate detection")
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { class: "sub_field" },
                        o.a.createElement("h3", null, "File Type"),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            null,
                            "Supports UTF-8 CSV file"
                          )
                        )
                      )
                    ),
                    h
                      ? o.a.createElement("h5", null, "Already Installed")
                      : o.a.createElement(
                          "a",
                          {
                            href:
                              "https://wordpress.org/plugins/import-woocommerce/",
                            target: "_blank",
                            class: "smack-btn btn-install btn-block",
                          },
                          "Install"
                        )
                  ),
                  o.a.createElement(
                    "div",
                    { class: "csv-addon-box import-users" },
                    o.a.createElement(
                      "div",
                      { className: "addon-header" },
                      o.a.createElement("h2", null, "Import Users"),
                      o.a.createElement(
                        "p",
                        null,
                        "Import User info into WordPress in bulk."
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { class: "sub_fields" },
                      o.a.createElement(
                        "div",
                        { class: "sub_field" },
                        o.a.createElement("h3", null, "Highlights"),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            null,
                            "WP-Members add-on support"
                          ),
                          o.a.createElement(
                            "li",
                            null,
                            "Default custom fields import"
                          ),
                          o.a.createElement(
                            "li",
                            null,
                            "Sends automated password notification email(optional)"
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { class: "sub_field" },
                        o.a.createElement("h3", null, "File Type"),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            null,
                            "Supports UTF-8 CSV file"
                          )
                        )
                      )
                    ),
                    l
                      ? o.a.createElement("h5", null, "Already Installed")
                      : o.a.createElement(
                          "a",
                          {
                            href: "https://wordpress.org/plugins/import-users/",
                            target: "_blank",
                            class: "smack-btn btn-install btn-block",
                          },
                          "Install"
                        )
                  ),
                  o.a.createElement(
                    "div",
                    { class: "csv-addon-box ultimate-exporter" },
                    o.a.createElement(
                      "div",
                      { className: "addon-header" },
                      o.a.createElement("h2", null, "Wp Ultimate Exporter"),
                      o.a.createElement(
                        "p",
                        null,
                        "Export all your WordPress data as CSV file for backup."
                      )
                    ),
                    o.a.createElement(
                      "div",
                      { class: "sub_fields" },
                      o.a.createElement(
                        "div",
                        { class: "sub_field" },
                        o.a.createElement("h3", null, "Highlights"),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            null,
                            "Support Post, Page & Custom Post"
                          ),
                          o.a.createElement(
                            "li",
                            null,
                            "Supports default custom fields"
                          ),
                          o.a.createElement(
                            "li",
                            null,
                            "Filtered export based on period of time & authors"
                          )
                        )
                      ),
                      o.a.createElement(
                        "div",
                        { class: "sub_field" },
                        o.a.createElement("h3", null, "File Type"),
                        o.a.createElement(
                          "ul",
                          null,
                          o.a.createElement(
                            "li",
                            null,
                            "UTF-8 encoded CSV file"
                          )
                        )
                      )
                    ),
                    n
                      ? o.a.createElement("h5", null, "Already Installed")
                      : o.a.createElement(
                          "a",
                          {
                            href:
                              "https://wordpress.org/plugins/wp-ultimate-exporter/",
                            target: "_blank",
                            class: "smack-btn btn-install btn-block",
                          },
                          "Install"
                        )
                  )
                )
              )
            )
          )
        );
      },
      hn = n(33);
    function pn(e, t) {
      void 0 === t && (t = {});
      var n = (function (e) {
        if (e && "j" === e[0] && ":" === e[1]) return e.substr(2);
        return e;
      })(e);
      if (
        (function (e, t) {
          return (
            void 0 === t &&
              (t = !e || ("{" !== e[0] && "[" !== e[0] && '"' !== e[0])),
            !t
          );
        })(n, t.doNotParse)
      )
        try {
          return JSON.parse(n);
        } catch (e) {}
      return e;
    }
    var fn = n(61),
      mn = (function () {
        function e(e) {
          (this.changeListeners = []),
            (this.TESTING_ONETWO = 2),
            (this.cookies = (function (e) {
              return "string" == typeof e
                ? hn.parse(e)
                : "object" == typeof e && null !== e
                ? e
                : {};
            })(e)),
            (this.HAS_DOCUMENT_COOKIE =
              "object" == typeof document &&
              "string" == typeof document.cookie);
        }
        return (
          (e.prototype._updateBrowserValues = function () {
            this.HAS_DOCUMENT_COOKIE &&
              (this.cookies = hn.parse(document.cookie));
          }),
          (e.prototype._emitChange = function (e) {
            for (var t = 0; t < this.changeListeners.length; ++t)
              this.changeListeners[t](e);
          }),
          (e.prototype.get = function (e, t) {
            return (
              void 0 === t && (t = {}),
              this._updateBrowserValues(),
              pn(this.cookies[e], t)
            );
          }),
          (e.prototype.getAll = function (e) {
            void 0 === e && (e = {}), this._updateBrowserValues();
            var t = {};
            for (var n in this.cookies) t[n] = pn(this.cookies[n], e);
            return t;
          }),
          (e.prototype.set = function (e, t, n) {
            var r;
            "object" == typeof t && (t = JSON.stringify(t)),
              (this.cookies = fn({}, this.cookies, (((r = {})[e] = t), r))),
              this.HAS_DOCUMENT_COOKIE &&
                (document.cookie = hn.serialize(e, t, n)),
              this._emitChange({ name: e, value: t, options: n });
          }),
          (e.prototype.remove = function (e, t) {
            var n = (t = fn({}, t, {
              expires: new Date(1970, 1, 1, 0, 0, 1),
              maxAge: 0,
            }));
            (this.cookies = fn({}, this.cookies)),
              delete this.cookies[e],
              this.HAS_DOCUMENT_COOKIE &&
                (document.cookie = hn.serialize(e, "", n)),
              this._emitChange({ name: e, value: void 0, options: t });
          }),
          (e.prototype.addChangeListener = function (e) {
            this.changeListeners.push(e);
          }),
          (e.prototype.removeChangeListener = function (e) {
            var t = this.changeListeners.indexOf(e);
            t >= 0 && this.changeListeners.splice(t, 1);
          }),
          e
        );
      })();
    function gn(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var _n = (function (e) {
      h()(i, e);
      var t,
        n,
        r,
        a = gn(i);
      function i() {
        var e;
        l()(this, i);
        for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
          n[r] = arguments[r];
        return (
          (e = a.call.apply(a, [this].concat(n))),
          M()(k()(e), "state", {
            showMaintenanceMode: !1,
            selectedTab: "import-update",
            activateExporter: !1,
          }),
          e
        );
      }
      return (
        u()(i, [
          {
            key: "componentDidMount",
            value: function () {
              console.log(
                "Simple Mode Active",
                this.context.simpleModeSelection
              ),
                console.log(
                  "Advanced Mode Active",
                  this.context.advancedModeSelection
                ),
                console.log(
                  "Context in which component",
                  this.context.showComponent
                ),
                this.context.setSelectedTabOnCookies("import-update"),
                this.checkRTLSupport(),
                this.checkExporterEnable(),
                this.checkMaintenanceMode();
              var e = new mn();
              if (
                (e.get("selectedTab") ||
                  e.set("selectedTab", "import-update", { path: "/" }),
                this.setState({ selectedTab: e.get("selectedTab") }),
                !window.wpr_object.file)
              )
                return window.wpr_object
                  ? ((window.wpr_object.file = vn),
                    this.context.setLanguage(window.wpr_object.file),
                    void this.forceUpdate())
                  : void (window.wpr_object = { file: vn });
              this.context.setLanguage(JSON.parse(window.wpr_object.file)),
                this.forceUpdate();
            },
          },
          {
            key: "checkRTLSupport",
            value: function () {
              document.querySelector("html").getAttribute("dir") &&
                document
                  .querySelector(".wp-ultimate-csv-importer")
                  .classList.add("rtl");
            },
          },
          {
            key: "checkExporterEnable",
            value:
              ((r = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "check_export"
                              ),
                              (e.next = 4),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 4:
                            (n = e.sent),
                              this.context.setActivateExporter(n.data.success);
                          case 6:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return r.apply(this, arguments);
              }),
          },
          {
            key: "checkMaintenanceMode",
            value:
              ((n = y()(
                v.a.mark(function e() {
                  var t, n;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "checkmain_mode"
                              ),
                              (e.next = 4),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 4:
                            if (!(n = e.sent) || !n.data) {
                              e.next = 10;
                              break;
                            }
                            if (200 != n.status || !n.data.success) {
                              e.next = 10;
                              break;
                            }
                            return (
                              this.setState({ showMaintenanceMode: !0 }),
                              this.context.setMaintenanceMode(!0),
                              e.abrupt("return")
                            );
                          case 10:
                            this.setState({ showMaintenanceMode: !1 }),
                              this.context.setMaintenanceMode(!1);
                          case 12:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return n.apply(this, arguments);
              }),
          },
          {
            key: "disableMaintenanceMode",
            value:
              ((t = y()(
                v.a.mark(function e() {
                  var t;
                  return v.a.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = new FormData()).set(
                                "action",
                                "settings_options"
                              ),
                              t.set("option", "enable_main_mode"),
                              t.set("value", !1),
                              (e.next = 6),
                              S()({
                                method: "post",
                                url: ajaxurl,
                                data: t,
                                config: {
                                  headers: {
                                    "Content-Type": "multipart/form-data",
                                  },
                                },
                              })
                            );
                          case 6:
                            e.sent.data.success &&
                              (this.context.setMaintenanceMode(!1),
                              location.reload());
                          case 8:
                          case "end":
                            return e.stop();
                        }
                    },
                    e,
                    this
                  );
                })
              )),
              function () {
                return t.apply(this, arguments);
              }),
          },
          {
            key: "render",
            value: function () {
              var e = this;
              return o.a.createElement(
                o.a.Fragment,
                null,
                o.a.createElement(
                  "div",
                  { className: " container" },
                  o.a.createElement(
                    "div",
                    { className: "row tab-section justify-content-center" },
                    o.a.createElement(
                      "ul",
                      { class: "tabs col-sm-12 col-md-12" },
                      o.a.createElement(
                        "li",
                        {
                          className: "tab-list col col-xs-6 ".concat(
                            "dashboard" === this.state.selectedTab
                              ? "active"
                              : ""
                          ),
                          onClick: function () {
                            return e.setState({ selectedTab: "dashboard" });
                          },
                        },
                        this.context.language.Dashboard
                      ),
                      o.a.createElement(
                        "li",
                        {
                          className: "tab-list col col-xs-6 ".concat(
                            "import-update" === this.state.selectedTab
                              ? "active"
                              : ""
                          ),
                          onClick: function () {
                            return e.setState({ selectedTab: "import-update" });
                          },
                        },
                        this.context.language.ImportUpdate
                      ),
                      o.a.createElement(
                        "li",
                        {
                          className: "tab-list col col-xs-6 ".concat(
                            "manager" === this.state.selectedTab ? "active" : ""
                          ),
                          onClick: function () {
                            return e.setState({ selectedTab: "manager" });
                          },
                        },
                        this.context.language.Manager
                      ),
                      o.a.createElement(
                        "li",
                        {
                          className: "tab-list col col-xs-6 ".concat(
                            "export" === this.state.selectedTab ? "active" : ""
                          ),
                          onClick: function () {
                            e.setState({ selectedTab: "export" });
                          },
                        },
                        this.context.language.Export
                      ),
                      o.a.createElement(
                        "li",
                        {
                          className: "tab-list col col-xs-6 ".concat(
                            "settings" === this.state.selectedTab
                              ? "active"
                              : ""
                          ),
                          onClick: function () {
                            return e.setState({ selectedTab: "settings" });
                          },
                        },
                        this.context.language.Settings
                      ),
                      o.a.createElement(
                        "li",
                        {
                          className: "tab-list col col-xs-6 ".concat(
                            "addons" === this.state.selectedTab ? "active" : ""
                          ),
                          onClick: function () {
                            return e.setState({ selectedTab: "addons" });
                          },
                        },
                        "Addons"
                      ),
                      o.a.createElement(
                        "li",
                        {
                          className: "tab-list col col-xs-6 ".concat(
                            "support" === this.state.selectedTab ? "active" : ""
                          ),
                          onClick: function () {
                            return e.setState({ selectedTab: "support" });
                          },
                        },
                        this.context.language.Support
                      )
                    )
                  )
                ),
                o.a.createElement(
                  "div",
                  { className: "container" },
                  o.a.createElement(
                    "div",
                    { className: "float-right" },
                    o.a.createElement(
                      "ul",
                      { className: "d-flex mb-0" },
                      o.a.createElement(
                        "li",
                        null,
                        o.a.createElement(
                          "a",
                          {
                            className: "csv-link",
                            href: "https://goo.gl/jdPMW8",
                            target: "_blank",
                          },
                          "Documentation"
                        )
                      ),
                      o.a.createElement(
                        "li",
                        { className: "ml-4" },
                        o.a.createElement(
                          "a",
                          {
                            className: "csv-link",
                            href: "https://goo.gl/fKvDxH",
                            target: "_blank",
                          },
                          "Sample CSV"
                        )
                      )
                    )
                  ),
                  "import-update" === this.state.selectedTab &&
                    "upload-dashboard" === this.context.showComponent
                    ? o.a.createElement(
                        "div",
                        {
                          className: "col-md-8",
                          style: { marginLeft: "179px" },
                        },
                        o.a.createElement(
                          "ul",
                          {
                            className: "mapping-switcher",
                            style: { marginLeft: "-150px" },
                          },
                          o.a.createElement(
                            "li",
                            {
                              className: "".concat(
                                this.context.simpleModeSelection ? "active" : ""
                              ),
                              onClick: function (t) {
                                e.context.setSimpleModeSelection(!0),
                                  e.context.setAdvancedModeSelection(!1);
                              },
                            },
                            this.context.language.SIMPLEMODE
                          ),
                          o.a.createElement(
                            "li",
                            {
                              className: "".concat(
                                this.context.advancedModeSelection
                                  ? "active"
                                  : ""
                              ),
                              onClick: function (t) {
                                e.context.setAdvancedModeSelection(!0),
                                  e.context.setSimpleModeSelection(!1);
                              },
                            },
                            this.context.language.ADVANCEDMODE
                          )
                        )
                      )
                    : "",
                  o.a.createElement("div", { className: "clearfix" })
                ),
                this.state.showMaintenanceMode
                  ? o.a.createElement(
                      "div",
                      { className: "container" },
                      o.a.createElement(
                        "div",
                        { className: "maintenance-mode" },
                        o.a.createElement(
                          "span",
                          null,
                          o.a.createElement("img", {
                            src: "".concat(
                              window.wpr_object.imagePath,
                              "alert.png"
                            ),
                          })
                        ),
                        "maintenance mode is enabled",
                        " ",
                        o.a.createElement(
                          "button",
                          {
                            type: "button",
                            class: "csv-link",
                            onClick: function () {
                              return e.disableMaintenanceMode();
                            },
                          },
                          "Disable"
                        )
                      )
                    )
                  : "",
                this.context.simpleModeSelection &&
                  "import-update" === this.state.selectedTab
                  ? o.a.createElement(ln, null)
                  : this.context.advancedModeSelection &&
                    "import-update" === this.state.selectedTab
                  ? o.a.createElement($t, null)
                  : "manager" === this.state.selectedTab
                  ? o.a.createElement(ye, null)
                  : "export" === this.state.selectedTab
                  ? o.a.createElement(Ne, null)
                  : "addons" === this.state.selectedTab
                  ? o.a.createElement(dn, null)
                  : "settings" === this.state.selectedTab
                  ? o.a.createElement(We, null)
                  : "support" === this.state.selectedTab
                  ? o.a.createElement(ot, null)
                  : "dashboard" === this.state.selectedTab
                  ? o.a.createElement(lt, null)
                  : ""
              );
            },
          },
        ]),
        i
      );
    })(r.Component);
    M()(_n, "contextType", E);
    var vn = {
      ImportUpdate: "Import / Update",
      Dashboard: "Dashboard",
      Manager: "Manager",
      Export: "Export",
      Settings: "Settings",
      Media: "Media",
      Support: "Support",
      UploadfromDesktop: "Upload from Desktop",
      UploadfromFTPSFTP: "Upload from FTP / SFTP",
      UploadfromURL: "Upload from URL",
      ChoosFileintheServer: "Choose File in the Server",
      "Drag&Dropyourfilesor": "Drag & Drop your files or",
      Browse: "Browse",
      NewItem: "New Item",
      ExistingItems: "Existing Items",
      ImportEachRecordAs: "Importa each record as",
      Continue: "Continue",
      Search: "Search",
      FromDate: "From Date",
      ToDate: "To Date",
      SEARCH: "SEARCH",
      SavedTemplate: "Saved Template",
      TEMPLATES: "TEMPLATES NAME",
      MATCHEDCOLUMNSCOUNT: "MATCHED COLUMNS COUNT",
      MODULE: "MODULE",
      CREATEDTIME: "CREATED TIME",
      ACTION: "ACTION",
      USETEMPLATE: "USE TEMPLATE",
      CREATENEWMAPPING: "CREATE NEW MAPPING",
      BACK: "BACK",
      ADVANCEDMODE: "ADVANCED MODE",
      DRAGDROPMODE: "DRAG & DROP MODE",
      WordpressFields: "Wordpress Fields",
      WPFIELDS: "WP Fields",
      CSVHEADER: "CSV Header",
      Action: "Action",
      Name: "Name",
      HINT: "HINT",
      Example: "Example",
      WordPressCoreFields: "WordPress Core Fields",
      ACFFreeFields: "ACF Free Fields",
      ACFFields: "ACF Fields",
      ACFGroupFields: "ACF Group Fields",
      ACFProFields: "ACF Pro Fields",
      ACFRepeaterFields: "ACF Repeater Fields",
      TypesCustomFields: "Types Custom Fields",
      PodsFields: "Pods Fields",
      JetEngineFields: "Jet Engine Fields",
      JetEngineRFFields: "Jet Engine RF Fields",
      JetEngineCPTFields: "Jet Engine CPT Fields",
      JetEngineCPTRFFields: "Jet Engine CPT RF Fields",
      JetEngineTaxonomyFields: "Jet Engine Taxonomy Fields",
      JetEngineTaxonomyRFFields: "Jet Engine Taxonomy RF Fields",
      JetEngineRelationsFields: "Jet Engine Relations Fields",
      CustomFieldSuite: "Custom Field Suite",
      AllInOneSeoFields: "All In One Seo Fields",
      YoastSeoFields: "Yoast Seo Fields",
      RankMathFields: "Rank Math Fields",
      RankMathProFields: "Rank Math Pro Fields",
      BillingAndShippingInformation: "Billing and Shipping Information",
      CustomFieldsWPMemberFields: "Custom Fields WP Member Fields",
      CustomFieldsMemberFields: "Custom Fields Member Fields",
      ProductMetaFields: "Product Meta Fields",
      ProductBundleMetaFields: "Product Bundle Meta Fields",
      OrderMetaFields: "Order Meta Fields",
      CouponMetaFields: "Coupon Meta Fields",
      RefundMetaFields: "Refund Meta Fields",
      WPECommerceCustomFields: "WP ECommerce Custom Fields",
      EventsManagerFields: "Events Manager Fields",
      WPMLFields: "WPML Fields",
      CMB2CustomFields: "CMB2 Custom Fields",
      WordPressCustomFields: "WordPress Custom Fields",
      TermsandTaxonomies: "Terms and Taxonomies",
      IsSerialized: "Is Serialized",
      NoCustomFieldsFound: "No Custom Fields Found",
      MediaUploadFields: "Media Upload Fields",
      UploadMedia: "Upload Media",
      UploadedListofFiles: "Uploaded List of Files",
      UploadedMediaFileLists: "Uploaded Media File Lists",
      SavethismappingasTemplate: "Save this mapping as Template",
      Save: "Save",
      Doyouneedtoupdatethecurrentmapping:
        "Do you need to update the current mapping ?",
      Savethecurrentmappingasnewtemplate:
        "Save the current mapping as new template",
      Back: "Back",
      Size: "Size",
      MediaHandling: "Featured Image Media Handling",
      Downloadexternalimagestoyourmedia:
        "Download external images to your media",
      ImageHandling: "Image Handling",
      Usemediaimagesifalreadyavailable: "Use media images if already available",
      Doyouwanttooverwritetheexistingimages:
        "Do you want to overwrite the existing images",
      ImageSizes: "Image Sizes",
      Thumbnail: "Thumbnail",
      Medium: "Medium",
      MediumLarge: "Medium Large",
      Large: "Large",
      Custom: "Custom",
      Slug: "Slug",
      Width: "Width",
      Height: "Height",
      Addcustomsizes: "Add custom sizes",
      MediaSEOAdvancedOptions: "Media SEO & Advanced Options",
      SetimageTitle: "Set image Title",
      SetimageCaption: "Set image Caption",
      SetimageAltText: "Set image Alt Text",
      SetimageDescription: "Set image Description",
      Changeimagefilenameto: "Change image file name to",
      ImportconfigurationSection: "Import configuration Section",
      EnablesafeprestateRollback: "Enable safe prestate Rollback",
      Backupbeforeimport: "Backup before import",
      DoyouwanttoSWITCHONMaintenancemodewhileimport:
        "Do you want to SWITCH ON Maintenance mode while import",
      Doyouwanttohandletheduplicateonexistingrecords:
        "Do you want to handle the duplicate on existing records",
      Mentionthefieldswhichyouwanttohandleduplicates:
        "Mention the fields which you want to handle duplicates",
      DoyouwanttoUpdateanexistingrecords:
        "Do you want to Update an existing records",
      Updaterecordsbasedon: "Update records based on",
      DoyouwanttoSchedulethisImport: "Do you want to Schedule this Import",
      ScheduleDate: "Schedule Date",
      ScheduleFrequency: "Schedule Frequency",
      TimeZone: "Time Zone",
      ScheduleTime: "Schedule Time",
      Schedule: "Schedule",
      Import: "Import",
      Format: "Format",
      OneTime: "OneTime",
      Daily: "Daily",
      Weekly: "Weekly",
      Monthly: "Monthly",
      Hourly: "Hourly",
      Every30mins: "Every 30 mins",
      Every15mins: "Every 15 mins",
      Every10mins: "Every 10 mins",
      Every5mins: "Every 5 mins",
      FileName: "File Name",
      FileSize: "File Size",
      Process: "Process",
      Totalnoofrecords: "Total no of records",
      CurrentProcessingRecord: "Current Processing Record",
      RemainingRecord: "Remaining Record",
      Completed: "Completed",
      TimeElapsed: "Time Elapsed",
      approximate: "approximate",
      DownloadLog: "Download Log",
      NoRecord: "No Record",
      UploadedCSVFileLists: "Uploaded CSV File Lists",
      Hostname: "Host Name",
      HostPort: "Host Port",
      HostUsername: "Host Username",
      HostPassword: "HostPassword",
      HostPath: "HostPath",
      DefaultPort: "Default Port",
      FTPUsername: "FTP Username",
      FTPPassword: "FTP Password",
      ConnectionType: "Connection Type",
      ImportersActivity: "Importers Activity",
      ImportStatistics: "Import Statistics",
      FileManager: "File Manager",
      SmartSchedule: "Smart Schedule",
      ScheduledExport: "Scheduled Export",
      Templates: "Templates",
      LogManager: "Log Manager",
      NotSelectedAnyTab: "Not Selected Any Tab",
      EventInfo: "Event Info",
      EventDate: "Event Date",
      EventStatus: "Event Status",
      Actions: "Actions",
      Date: "Date",
      Purpose: "Purpose",
      Revision: "Revision",
      Select: "Select",
      Inserted: "Inserted",
      Updated: "Updated",
      Skipped: "Skipped",
      Noeventsfound: "No events found",
      ScheduleInfo: "Schedule Info",
      ScheduledDate: "Scheduled Date",
      ScheduledTime: "Scheduled Time",
      Youhavenotscheduledanyevent: "You haven’t scheduled any event",
      Frequency: "Frequency",
      Time: "Time",
      EditSchedule: "Edit Schedule",
      SaveChanges: "Save Changes",
      TemplateInfo: "Template Info",
      TemplateName: "Template Name",
      Module: "Module",
      CreatedTime: "Created Time",
      NoTemplateFound: "No Template Found",
      Download: "Download",
      NoLogRecordFound: "No Log Record Found",
      GeneralSettings: "General Settings",
      DatabaseOptimization: "Database Optimization",
      SecurityandPerformance: "Security and Performance",
      Documentation: "Documentation",
      MediaReport: "Media Report",
      DropTable: "Drop Table",
      Ifenabledplugindeactivationwillremoveplugindatathiscannotberestored:
        "If enabled plugin deactivation will remove plugin data, this cannot be restored.",
      Scheduledlogmails: "Scheduled log mails",
      Enabletogetscheduledlogmails: "Enable to get scheduled log mails.",
      Sendpasswordtouser: "Send password to user",
      Enabletosendpasswordinformationthroughemail:
        "Enable to send password information through email.",
      WoocommerceCustomattribute: "Woocommerce Custom attribute",
      Enablestoregisterwoocommercecustomattribute:
        "Enables to register woocommerce custom attribute.",
      PleasemakesurethatyoutakenecessarybackupbeforeproceedingwithdatabaseoptimizationThedatalostcantbereverted:
        "Please make sure that you take necessary backup before proceeding with database optimization. The data lost cannot be reverted.",
      DeleteallorphanedPostPageMeta: "Delete all orphaned Post/Page Meta",
      Deleteallunassignedtags: "Delete all unassigned tags",
      DeletedatafromWordPress: "Delete data from WordPress",
      EnabletodeletetheitemsnotpresentinCSVXMLfile:
        "Enable to delete the items not present in CSV/XML file",
      DeleteallPostPagerevisions: "Delete all Post/Page revisions",
      DeleteallautodraftedPostPage: "Delete all auto drafted Post/Page",
      DeleteallPostPageintrash: "Delete all Post/Page in trash",
      DeleteallCommentsintrash: "Delete all Comments in trash",
      DeleteallUnapprovedComments: "Delete all Unapproved Comments",
      DeleteallPingbackComments: "Delete all Pingback Comments",
      DeleteallTrackbackComments: "Delete all Trackback Comments",
      DeleteallSpamComments: "Delete all Spam Comments",
      RunDBOptimizer: "Run DB Optimizer",
      DatabaseOptimizationLog: "Database Optimization Log",
      noofOrphanedPostPagemetahasbeenremoved:
        "no of Orphaned Post/Page meta has been removed.",
      noofUnassignedtagshasbeenremoved:
        "no of Unassigned tags has been removed.",
      noofPostPagerevisionhasbeenremoved:
        "no of Post/Page revisions has been removed.",
      noofAutodraftedPostPagehasbeenremoved:
        "no of Auto drafted Post/Page has been removed.",
      noofPostPageintrashhasbeenremoved:
        "no of Post/Page in trash has been removed.",
      noofSpamcommentshasbeenremoved: "no of Spam comments has been removed.",
      noofCommentsintrashhasbeenremoved:
        "no of Comments in trash has been removed.",
      noofUnapprovedcommentshasbeenremoved:
        "no of Unapproved comments has been removed.",
      noofPingbackcommentshasbeenremoved:
        "no of Pingback comments has been removed.",
      noofTrackbackcommentshasbeenremoved:
        "no of Trackback comments has been removed.",
      Allowauthorseditorstoimport: "Allow authors/editors to import",
      Thisenablesauthorseditorstoimport:
        "This enables authors/editors to import.",
      MinimumrequiredphpinivaluesIniconfiguredvalues:
        "Minimum required php.ini values (Ini configured values)",
      Variables: "Variables",
      SystemValues: "System Values",
      MinimumRequirements: "Minimum Requirements",
      RequiredtoenabledisableLoadersExtentionsandmodules:
        "Required to enable/disable Loaders, Extentions and modules:",
      DebugInformation: "Debug Information:",
      SmackcodersGuidelines: "Smackcoders Guidelines",
      DevelopmentNews: "Development News",
      WhatsNew: "Whats New?",
      YoutubeChannel: "Youtube Channel",
      OtherWordPressPlugins: "Other WordPress Plugins",
      Count: "Count",
      ImageType: "Image Type",
      Status: "Status",
      Loading: "Loading",
      LoveWPUltimateCSVImporterGivea5starreviewon:
        "Love WP Ultimate CSV Importer, Give a 5 star review on",
      ContactSupport: "Contact Support",
      Email: "Email",
      Supporttype: "Support type",
      BugReporting: "Bug Reporting",
      FeatureEnhancement: "Feature Enhancement",
      Message: "Message",
      Send: "Send",
      NewsletterSubscription: "Newsletter Subscription",
      Subscribe: "Subscribe",
      Note: "Note",
      SubscribetoSmackcodersMailinglistafewmessagesayear:
        "Subscribe to Smackcoders Mailing list (a few messages a year)",
      Pleasedraftamailto: "Please draft a mail to",
      Ifyoudoesnotgetanyacknowledgementwithinanhour:
        "If you does not get any acknowledgement within an hour!",
      Selectyourmoduletoexportthedata: "Select your Module to Export Data",
      Toexportdatabasedonthefilters: "To export data based on the filters",
      ExportFileName: "Export File Name",
      AdvancedSettings: "Advanced Settings",
      ExportType: "Export Type",
      SplittheRecord: "Split the Record",
      AdvancedFilters: "Advanced Filters",
      Exportdatawithautodelimiters: "Export data with auto delimiters",
      Delimiters: "Delimiters",
      OtherDelimiters: "Other Delimiters",
      Exportdataforthespecificperiod: "Export data for the specific period",
      StartFrom: "Start From",
      EndTo: "End To",
      Exportdatawiththespecificstatus: "Export data with the specific status",
      All: "All",
      Publish: "Publish",
      Sticky: "Sticky",
      Private: "Private",
      Protected: "Protected",
      Draft: "Draft",
      Pending: "Pending",
      Exportdatabyspecificauthors: "Export data by specific authors",
      Authors: "Authors",
      ExportdatabasedonspecificInclusions:
        "Export data based on specific Inclusions",
      DoyouwanttoSchedulethisExport: "Do you want to Schedule this Export",
      SelectTimeZone: "Select TimeZone",
      ScheduleExport: "Schedule Export",
      DataExported: "Data Exported",
    };
    function bn(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var yn = (function (e) {
      h()(n, e);
      var t = bn(n);
      function n() {
        return l()(this, n), t.apply(this, arguments);
      }
      return (
        u()(n, [
          {
            key: "render",
            value: function () {
              return o.a.createElement(_n, null);
            },
          },
        ]),
        n
      );
    })(r.Component);
    function wn(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var kn = (function (e) {
      h()(n, e);
      var t = wn(n);
      function n(e) {
        return l()(this, n), t.call(this, e);
      }
      return (
        u()(n, [
          {
            key: "render",
            value: function () {
              return o.a.createElement(yn, null);
            },
          },
        ]),
        n
      );
    })(r.Component);
    function xn(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Mn = (function (e) {
      h()(n, e);
      var t = xn(n);
      function n() {
        var e, r;
        l()(this, n);
        for (var a = arguments.length, i = new Array(a), s = 0; s < a; s++)
          i[s] = arguments[s];
        return (
          (r = t.call.apply(t, [this].concat(i))),
          M()(
            k()(r),
            "state",
            ((e = {
              fileUrl: "",
              hostName: "",
              hostPort: "",
              hostUserName: "",
              hostPassword: "",
              hostPath: "",
              connectionType: "",
              selectedTab: "",
              mediaHandleCheckboxState: !1,
              activateMappingSection: !1,
              activateDragAndDropSection: !1,
              activateXmlFileMappingSection: !1,
              wordPressCoreFields: [],
              showWordPressDefaultCoreFieldsState: !1,
              acfGroupFields: [],
              showAcfGroupFieldsState: !1,
              acfProFields: [],
              showAcfProFieldsState: !1,
              acfRepeaterFields: [],
              showAcfRepeaterFieldsState: !1,
              termsAndTaxonomiesFields: [],
              showTermsAndTaxonomiesState: !1,
              typesFields: [],
              showTypesFieldsState: !1,
              podsFields: [],
              showPodsFieldsState: !1,
              jetEngineFields: [],
              showJetEngineFieldsState: !1,
              jetEngineRFFields: [],
              showJetEngineRFFieldsState: !1,
              jetEngineCPTFields: [],
              showJetEngineCPTFieldsState: !1,
              jetEngineCPTRFFields: [],
              showJetEngineCPTRFFieldsState: !1,
              jetEngineTaxonomyFields: [],
              showJetEngineTaxonomyFieldsState: !1,
              jetEngineTaxonomyRFFields: [],
              showJetEngineTaxonomyRFFieldsState: !1,
              jetEngineRelationsFields: [],
              showJetEngineRelationsFieldsState: !1,
            }),
            M()(e, "showJetEngineFieldsState", !1),
            M()(e, "rankMathFields", []),
            M()(e, "showRankMathFieldsState", !1),
            M()(e, "rankMathProFields", []),
            M()(e, "showRankMathProFieldsState", !1),
            M()(e, "customFieldSuiteFields", []),
            M()(e, "showCustomFieldSuiteState", !1),
            M()(e, "allInOneSeoFields", []),
            M()(e, "showAllInOneSeoFieldsState", !1),
            M()(e, "billingAndShippingInformation", []),
            M()(e, "showBillingAndShippingInformationState", !1),
            M()(e, "wordPressCustomFields", []),
            M()(e, "wordPressUserCustomFields", []),
            M()(e, "wordPressUserCustomFieldsLabel", []),
            M()(e, "showWordPressCustomFieldsState", !1),
            M()(e, "customFieldsWpMembersFields", []),
            M()(e, "showCustomFieldsWpMembersState", !1),
            M()(e, "customFieldsMembersFields", []),
            M()(e, "showCustomFieldsMembersState", !1),
            M()(e, "productMetaFields", []),
            M()(e, "showProductMetaFieldsState", !1),
            M()(e, "productBundleMetaFields", []),
            M()(e, "showProductBundleMetaFieldsState", !1),
            M()(e, "orderMetaFields", []),
            M()(e, "showOrderMetaFieldsState", !1),
            M()(e, "wpEcomCustomFields", []),
            M()(e, "showWpEcomCustomFieldsState", !1),
            M()(e, "eventsManagerFields", []),
            M()(e, "showEventsManagerFieldsState", !1),
            M()(e, "acfFreeFields", []),
            M()(e, "showAcfFreeFieldsState", !1),
            M()(e, "cmb2CustomFields", []),
            M()(e, "showCmb2CustomFieldsState", !1),
            M()(e, "wpmlCustomFields", []),
            M()(e, "showWPMLCustomFields", !1),
            M()(e, "termsAndTaxonomiesFields", []),
            M()(e, "csvHeaderFields", []),
            M()(e, "fileName", ""),
            M()(e, "templateName", ""),
            M()(e, "saveTemplateNames", ""),
            M()(e, "editTemplateName", ""),
            M()(e, "selectedTemplateNameInManagerSection", ""),
            M()(e, "selectedModuleNameInManagerSection", ""),
            M()(e, "editedTemplateNameInManagerSection", ""),
            M()(e, "hashKey", ""),
            M()(e, "selectedType", ""),
            M()(e, "csvFileNames", []),
            M()(e, "csvFileUrls", []),
            M()(e, "csvFileServer", []),
            M()(e, "selectedFileUrlsState", !1),
            M()(e, "selectedFileUrl", ""),
            M()(e, "selectedFileServer", ""),
            M()(e, "saveSelectedMappedFields", []),
            M()(e, "activateMediaHandlingSection", !1),
            M()(e, "activateDashboard", !0),
            M()(e, "fromMediaHandlingState", !1),
            M()(e, "activateExportDataFilter", !1),
            M()(e, "activateExportDownloadOptionSection", !1),
            M()(e, "activateImportConfigurationSection", !1),
            M()(e, "activateSaveMappingTemplateSection", !1),
            M()(e, "activateProgressDisplaySection", !1),
            M()(e, "activateUseExistingMappingState", !1),
            M()(e, "activateCreateNewMappingState", !1),
            M()(e, "activateTemplateSectionState", !1),
            M()(e, "fromSaveMappingSection", !1),
            M()(e, "fromTemplateMappingSection", !1),
            M()(e, "fromDragAndDropSection", !1),
            M()(e, "activateLargeState", !1),
            M()(e, "mode", "Insert"),
            M()(e, "exportModule", ""),
            M()(e, "optionalType", ""),
            M()(e, "templateNameArray", []),
            M()(e, "modulesNameArray", []),
            M()(e, "createdTimeArray", []),
            M()(e, "matchedCountsArray", []),
            M()(e, "activateUseAlreadyMediaImageState", !1),
            M()(e, "activateOverwriteExistingImageState", !1),
            M()(e, "activateThumbnailState", !1),
            M()(e, "activateMediumState", !1),
            M()(e, "activateMediumLargeState", !1),
            M()(e, "activateCustomState", !1),
            M()(e, "mediaImageTitle", ""),
            M()(e, "mediaImageCaption", ""),
            M()(e, "mediaImageAltText", ""),
            M()(e, "mediaImageDescription", ""),
            M()(e, "mediaImageFileName", ""),
            M()(e, "updateFields", []),
            M()(e, "duplicateHandleField", ""),
            M()(e, "countryLists", []),
            M()(e, "timeZones", []),
            M()(e, "selectedCountryTime", ""),
            M()(e, "receivedExportedFilePath", ""),
            M()(e, "importLogDataLink", ""),
            M()(e, "rollBackMode", !1),
            M()(e, "maintenanceMode", !1),
            M()(
              e,
              "loaderText",
              o.a.createElement(
                "div",
                { className: "btn ajax-loader loading" },
                "Please Wait"
              )
            ),
            M()(e, "totalCustomFields", []),
            M()(e, "totalRows", 0),
            M()(e, "translateLanguage", {}),
            M()(e, "uploadedFileType", ""),
            M()(e, "receivedExportedFileUrl", ""),
            M()(e, "setFileUrl", function (e) {
              r.setState({ fileUrl: e });
            }),
            M()(e, "setHostName", function (e) {
              r.setState({ hostName: e });
            }),
            M()(e, "setHostPort", function (e) {
              r.setState({ hostPort: e });
            }),
            M()(e, "setHostUserName", function (e) {
              r.setState({ hostUserName: e });
            }),
            M()(e, "setHostPassword", function (e) {
              r.setState({ hostPassword: e });
            }),
            M()(e, "setHostPath", function (e) {
              r.setState({ hostPath: e });
            }),
            M()(e, "selectedConnectionType", function (e) {
              r.setState({ connectionType: e });
            }),
            M()(e, "setSelectedTab", function (e) {
              r.setState({ selectedTab: e });
            }),
            M()(e, "setSelectedTabCookies", function (e) {
              new mn().set("selectedTab", e, { path: "/" });
            }),
            M()(e, "changeActivateMappingSectionState", function (e) {
              r.setState({ activateMappingSection: e });
            }),
            M()(e, "changeMediaHandleCheckboxState", function (e) {
              r.setState({ mediaHandleCheckboxState: e });
            }),
            M()(e, "changeActivateDragAndDropSectionState", function (e) {
              r.setState({ activateDragAndDropSection: e });
            }),
            M()(e, "changeActivateXmlFileMappingSectionState", function (e) {
              r.setState({ activateXmlFileMappingSection: e });
            }),
            M()(e, "setWordPressDefaultCoreFields", function (e) {
              r.setState({ wordPressCoreFields: e });
            }),
            M()(e, "showWordPressDefaultCoreFields", function (e) {
              r.setState({ showWordPressDefaultCoreFieldsState: e });
            }),
            M()(e, "setAcfFreeFields", function (e) {
              r.setState({ acfFreeFields: e });
            }),
            M()(e, "showAcfFreeFields", function (e) {
              r.setState({ showAcfFreeFieldsState: e });
            }),
            M()(e, "setAcfGroupFields", function (e) {
              r.setState({ acfGroupFields: e });
            }),
            M()(e, "showAcfGroupFields", function (e) {
              r.setState({ showAcfGroupFieldsState: e });
            }),
            M()(e, "setAcfProFields", function (e) {
              r.setState({ acfProFields: e });
            }),
            M()(e, "showAcfProFields", function (e) {
              r.setState({ showAcfProFieldsState: e });
            }),
            M()(e, "setAcfRepeaterFields", function (e) {
              r.setState({ acfRepeaterFields: e });
            }),
            M()(e, "showAcfRepeaterFields", function (e) {
              r.setState({ showAcfRepeaterFieldsState: e });
            }),
            M()(e, "setTermsAndTaxonomies", function (e) {
              r.setState({ termsAndTaxonomiesFields: e });
            }),
            M()(e, "showTermsAndTaxonomies", function (e) {
              r.setState({ showTermsAndTaxonomiesState: e });
            }),
            M()(e, "setTypesFields", function (e) {
              r.setState({ typesFields: e });
            }),
            M()(e, "showTypesFields", function (e) {
              r.setState({ showTypesFieldsState: e });
            }),
            M()(e, "setPodsFields", function (e) {
              r.setState({ podsFields: e });
            }),
            M()(e, "showPodsFields", function (e) {
              r.setState({ showPodsFieldsState: e });
            }),
            M()(e, "setJetEngineFields", function (e) {
              r.setState({ jetEngineRFFields: e });
            }),
            M()(e, "showJetEngineRFFieldsState", function (e) {
              r.setState({ showJetEngineRFFieldsState: e });
            }),
            M()(e, "setJetEngineCPTFields", function (e) {
              r.setState({ jetEngineCPTFields: e });
            }),
            M()(e, "showJetEngineCPTFieldsState", function (e) {
              r.setState({ showJetEngineCPTFieldsState: e });
            }),
            M()(e, "setJetEngineCPTFields", function (e) {
              r.setState({ jetEngineCPTRFFields: e });
            }),
            M()(e, "showJetEngineCPTRFFieldsState", function (e) {
              r.setState({ showJetEngineCPTRFFieldsState: e });
            }),
            M()(e, "setJetEngineTaxonomyFields", function (e) {
              r.setState({ jetEngineTaxonomyFields: e });
            }),
            M()(e, "showJetEngineTaxonomyFieldsState", function (e) {
              r.setState({ showJetEngineTaxonomyFieldsState: e });
            }),
            M()(e, "setJetEngineCPTFields", function (e) {
              r.setState({ jetEngineTaxonomyRFFields: e });
            }),
            M()(e, "showJetEngineTaxonomyRFFieldsState", function (e) {
              r.setState({ showJetEngineTaxonomyRFFieldsState: e });
            }),
            M()(e, "setJetEngineRelationsFields", function (e) {
              r.setState({ jetEngineRelationsFields: e });
            }),
            M()(e, "showJetEngineRelationsFieldsState", function (e) {
              r.setState({ showJetEngineTaxonomyFieldsState: e });
            }),
            M()(e, "setCustomFieldSuite", function (e) {
              r.setState({ customFieldSuiteFields: e });
            }),
            M()(e, "showCustomFieldSuite", function (e) {
              r.setState({ showCustomFieldSuiteState: e });
            }),
            M()(e, "setAllInOneSeoFields", function (e) {
              r.setState({ allInOneSeoFields: e });
            }),
            M()(e, "showAllInOneSeoFields", function (e) {
              r.setState({ showAllInOneSeoFieldsState: e });
            }),
            M()(e, "setYoastSeoFields", function (e) {
              r.setState({ yoastSeoFields: e });
            }),
            M()(e, "showYoastSeoFields", function (e) {
              r.setState({ showYoastSeoFieldsState: e });
            }),
            M()(e, "setRankMathFields", function (e) {
              r.setState({ rankMathFields: e });
            }),
            M()(e, "showRankMathFields", function (e) {
              r.setState({ showRankMathFieldsState: e });
            }),
            M()(e, "setRankMathProFields", function (e) {
              r.setState({ rankMathProFields: e });
            }),
            M()(e, "showRankMathProFields", function (e) {
              r.setState({ showRankMathProFieldsState: e });
            }),
            M()(e, "setBillingAndShippingInformation", function (e) {
              r.setState({ billingAndShippingInformation: e });
            }),
            M()(e, "showBillingAndShippingInformation", function (e) {
              r.setState({ showBillingAndShippingInformationState: e });
            }),
            M()(e, "setWordPressCustomFields", function (e) {
              r.setState({ wordPressCustomFields: e });
            }),
            M()(e, "setWordPressUserCustomFields", function (e) {
              r.setState({ wordPressUserCustomFields: e });
            }),
            M()(e, "setWordPressUserCustomFieldsLabel", function (e) {
              r.setState({
                wordPressUserCustomFieldsLabel: receivedWordPressUserCustomFieldsLabel,
              });
            }),
            M()(e, "showWordPressCustomFields", function (e) {
              r.setState({ showWordPressCustomFieldsState: e });
            }),
            M()(e, "setCustomFieldsWpMembers", function (e) {
              r.setState({ customFieldsWpMembersFields: e });
            }),
            M()(e, "showCustomFieldsWpMembers", function (e) {
              r.setState({ showCustomFieldsWpMembersState: e });
            }),
            M()(e, "setCustomFieldsMembers", function (e) {
              r.setState({ customFieldsMembersFields: e });
            }),
            M()(e, "showCustomFieldsMembers", function (e) {
              r.setState({ showCustomFieldsMembersState: e });
            }),
            M()(e, "setProductMetaFields", function (e) {
              r.setState({ productMetaFields: e });
            }),
            M()(e, "showProductMetaFields", function (e) {
              r.setState({ showProductMetaFieldsState: e });
            }),
            M()(e, "setProductBundleMetaFields", function (e) {
              r.setState({ productBundleMetaFields: e });
            }),
            M()(e, "showProductBundleMetaFields", function (e) {
              r.setState({ showProductBundleMetaFieldsState: e });
            }),
            M()(e, "setOrderMetaFields", function (e) {
              r.setState({ orderMetaFields: e });
            }),
            M()(e, "showOrderMetaFields", function (e) {
              r.setState({ showOrderMetaFieldsState: e });
            }),
            M()(e, "setCouponMetaFields", function (e) {
              r.setState({ couponMetaFields: e });
            }),
            M()(e, "showCouponMetaFields", function (e) {
              r.setState({ showCouponMetaFieldsState: e });
            }),
            M()(e, "setRefundMetaFields", function (e) {
              r.setState({ refundMetaFields: e });
            }),
            M()(e, "showRefundMetaFields", function (e) {
              r.setState({ showRefundMetaFieldsState: e });
            }),
            M()(e, "setWpEcomCustomFields", function (e) {
              r.setState({ wpEcomCustomFields: e });
            }),
            M()(e, "showWpEcomCustomFields", function (e) {
              r.setState({ showWpEcomCustomFieldsState: e });
            }),
            M()(e, "setEventsManagerFields", function (e) {
              r.setState({ eventsManagerFields: e });
            }),
            M()(e, "showEventsManagerFields", function (e) {
              r.setState({ showEventsManagerFieldsState: e });
            }),
            M()(e, "setCmb2CustomFields", function (e) {
              r.setState({ cmb2CustomFields: e });
            }),
            M()(e, "showCmb2CustomFields", function (e) {
              r.setState({ showCmb2CustomFieldsState: e });
            }),
            M()(e, "setWPMLCustomFields", function (e) {
              r.setState({ wpmlCustomFields: e });
            }),
            M()(e, "showWPMLCustomFields", function (e) {
              r.setState({ showWPMLCustomFieldsState: e });
            }),
            M()(e, "setCsvHeaderFields", function (e) {
              r.setState({ csvHeaderFields: e });
            }),
            M()(e, "getFileName", function (e) {
              r.setState({ fileName: e });
            }),
            M()(e, "getTemplateName", function (e) {
              r.setState({ templateName: e });
            }),
            M()(e, "saveTemplateName", function (e) {
              r.setState({ saveTemplateNames: e });
            }),
            M()(e, "editedTemplateName", function (e) {
              r.setState({ editTemplateName: e });
            }),
            M()(e, "selectedTemplateInManager", function (e) {
              r.setState({ selectedTemplateNameInManagerSection: e });
            }),
            M()(e, "selectedEditedTemplateInManager", function (e) {
              r.setState({ editedTemplateNameInManagerSection: e });
            }),
            M()(e, "selectedModuleInManager", function (e) {
              r.setState({ selectedModuleNameInManagerSection: e });
            }),
            M()(e, "setHashKey", function (e) {
              r.setState({ hashKey: e });
            }),
            M()(e, "setSelectedType", function (e) {
              r.setState({ selectedType: e });
            }),
            M()(e, "setMode", function (e) {
              r.setState({ mode: e });
            }),
            M()(e, "getCsvFileNames", function (e) {
              r.setState({ csvFileNames: e });
            }),
            M()(e, "getCsvFilesUrl", function (e) {
              r.setState({ csvFileUrls: e });
            }),
            M()(e, "getCsvFilesServer", function (e) {
              r.setState({ csvFileServer: e });
            }),
            M()(e, "setSelectedFileUrlsState", function (e) {
              r.setState({ selectedFileUrlsState: e });
            }),
            M()(e, "setSelectedFileUrl", function (e) {
              r.setState({ selectedFileUrl: e });
            }),
            M()(e, "setSelectedFileServer", function (e) {
              r.setState({ selectedFileServer: e });
            }),
            M()(e, "saveMappedFields", function (e) {
              r.setState({ saveSelectedMappedFields: e.slice() });
            }),
            M()(e, "changeActivateMediaHandlingSection", function (e) {
              r.setState({ activateMediaHandlingSection: e });
            }),
            M()(e, "setActivateDashboard", function (e) {
              r.setState({ activateDashboard: e });
            }),
            M()(e, "backFromMediaHandlingState", function (e) {
              r.setState({ fromMediaHandlingState: e });
            }),
            M()(e, "setExportDataFilterSection", function (e) {
              r.setState({ activateExportDataFilter: e });
            }),
            M()(e, "changeActivateExportDownloadOption", function (e) {
              r.setState({ activateExportDownloadOptionSection: e });
            }),
            M()(e, "changeActivateImportConfiguration", function (e) {
              r.setState({ activateImportConfigurationSection: e });
            }),
            M()(e, "changeActivateProgressDisplay", function (e) {
              r.setState({ activateProgressDisplaySection: e });
            }),
            M()(
              e,
              "changeActivateSaveMappingTemplateSectionState",
              function (e) {
                r.setState({ activateSaveMappingTemplateSection: e });
              }
            ),
            M()(e, "changeUseExistingMappingState", function (e) {
              r.setState({ activateUseExistingMappingState: e });
            }),
            M()(e, "changeCreateNewMappingState", function (e) {
              r.setState({ activateCreateNewMappingState: e });
            }),
            M()(e, "changeActivateTemplateSectionState", function (e) {
              r.setState({ activateTemplateSectionState: e });
            }),
            M()(e, "fromSaveMappingSectionState", function (e) {
              r.setState({ fromSaveMappingSection: e });
            }),
            M()(e, "fromTemplateMappingSectionState", function (e) {
              r.setState({ fromTemplateMappingSection: e });
            }),
            M()(e, "fromDragAndDropMappingSection", function (e) {
              r.setState({ fromDragAndDropSection: e });
            }),
            M()(e, "setMode", function (e) {
              r.setState({ mode: e });
            }),
            M()(e, "setExportModule", function (e) {
              r.setState({ exportModule: e });
            }),
            M()(e, "setOptionalType", function (e) {
              r.setState({ optionalType: e });
            }),
            M()(e, "setTemplateNameArray", function (e) {
              r.setState({ templateNameArray: e });
            }),
            M()(e, "setModulesArray", function (e) {
              r.setState({ modulesNameArray: e });
            }),
            M()(e, "setCreatedTimeArray", function (e) {
              r.setState({ createdTimeArray: e });
            }),
            M()(e, "setMatchedCounts", function (e) {
              r.setState({ matchedCountsArray: e });
            }),
            M()(e, "activateUseAlreadyMediaImage", function (e) {
              r.setState({ activateUseAlreadyMediaImageState: e });
            }),
            M()(e, "activateOverwriteExistingImage", function (e) {
              r.setState({ activateOverwriteExistingImageState: e });
            }),
            M()(e, "activateThumbnail", function (e) {
              r.setState({ activateThumbnailState: e });
            }),
            M()(e, "activateMedium", function (e) {
              r.setState({ activateMediumState: e });
            }),
            M()(e, "activateMediumLarge", function (e) {
              r.setState({ activateMediumLargeState: e });
            }),
            M()(e, "activateLarge", function (e) {
              r.setState({ activateLargeState: e });
            }),
            M()(e, "activateCustom", function (e) {
              r.setState({ activateCustomState: e });
            }),
            M()(e, "setImageTitle", function (e) {
              r.setState({ mediaImageTitle: e });
            }),
            M()(e, "setImageCaption", function (e) {
              r.setState({ mediaImageCaption: e });
            }),
            M()(e, "setImageAltText", function (e) {
              r.setState({ mediaImageAltText: e });
            }),
            M()(e, "setImageDescription", function (e) {
              r.setState({ mediaImageDescription: e });
            }),
            M()(e, "changeImageFileName", function (e) {
              r.setState({ mediaImageFileName: e });
            }),
            M()(e, "setUpdateFields", function (e) {
              r.setState({ updateFields: e });
            }),
            M()(e, "fieldHandleDuplicate", function (e) {
              r.setState({ duplicateHandleField: e });
            }),
            M()(e, "setCountryList", function (e) {
              r.setState({ countryLists: e });
            }),
            M()(e, "setTimeZones", function (e) {
              r.setState({ timeZones: e });
            }),
            M()(e, "selectedCountryTimeZone", function (e) {
              r.setState({ selectedCountryTime: e });
            }),
            M()(e, "exportedFileUrl", function (e) {
              r.setState({ receivedExportedFileUrl: e });
            }),
            M()(e, "importLogData", function (e) {
              r.setState({ importLogDataLink: e });
            }),
            M()(e, "setRollBackMode", function (e) {
              r.setState({ rollBackMode: e });
            }),
            M()(e, "setMaintenanceMode", function (e) {
              r.setState({ maintenanceMode: e });
            }),
            M()(e, "setTotalCustomFields", function (e) {
              r.setState({ totalCustomFields: e });
            }),
            M()(e, "setTotalRows", function (e) {
              r.setState({ totalRows: e });
            }),
            M()(e, "languageTranslation", function (e) {
              r.setState({ translateLanguage: e });
            }),
            M()(e, "uploadFileType", function (e) {
              r.setState({ uploadedFileType: e });
            }),
            e)
          ),
          r
        );
      }
      return (
        u()(n, [
          {
            key: "render",
            value: function () {
              return o.a.createElement(
                qe.Provider,
                { value: this.state },
                this.props.children
              );
            },
          },
        ]),
        n
      );
    })(r.Component);
    function En(e) {
      var t = (function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return (
            Date.prototype.toString.call(
              Reflect.construct(Date, [], function () {})
            ),
            !0
          );
        } catch (e) {
          return !1;
        }
      })();
      return function () {
        var n,
          r = g()(e);
        if (t) {
          var o = g()(this).constructor;
          n = Reflect.construct(r, arguments, o);
        } else n = r.apply(this, arguments);
        return f()(this, n);
      };
    }
    var Tn = (function (e) {
      h()(n, e);
      var t = En(n);
      function n() {
        var e;
        l()(this, n);
        for (var r = arguments.length, a = new Array(r), i = 0; i < r; i++)
          a[i] = arguments[i];
        return (
          (e = t.call.apply(t, [this].concat(a))),
          M()(k()(e), "state", {
            activateExporter: !1,
            showComponent: "upload-dashboard",
            chosenServiceProvider: "",
            bucketLists: [],
            endPoints: [],
            edgePoints: [],
            accessKey: "",
            secretKey: "",
            mediaPath: "",
            domainPath: "",
            statusPathSettings: !1,
            statusYearPath: !1,
            offloadMedia: !1,
            statusCopyFiles: !1,
            selectedRegion: "",
            selectedBucketsName: "",
            showExport: "export-module",
            csvInfo: { replaceExistingItem: !1 },
            exportInfo: { moduleName: "", optionalType: "" },
            showImportLog: !1,
            isXML: !1,
            language: {},
            selectedFileUrl: "",
            allPluginFields: [],
            csvFields: [],
            isTemplate: !1,
            existingTemplateName: "",
            saveTemplateData: [],
            importScheduleData: {},
            mappingResult: {},
            maintenanceMode: !1,
            rollBackMode: !1,
            isAcfField: !1,
            isToolsetField: !1,
            mappingType: "",
            importLogDataLink: "",
            bulkImportData: {
              totalPages: "",
              totalRows: "",
              fileName: "",
              fileSize: "",
              fileExtension: "",
              Check: "",
            },
            loaderText: o.a.createElement(
              "div",
              { className: "btn ajax-loader loading" },
              "Please Wait"
            ),
            loaderTextProgress: o.a.createElement(
              "div",
              { className: "btn ajax-loader loading" },
              "Please Wait"
            ),
            uploadFtpData: {
              HostName: "",
              HostPort: "",
              HostUserName: "",
              HostPassword: "",
              HostPath: "",
              action: "",
            },
            exportType: "csv",
            showSplitRecord: !1,
            recordLimit: "",
            isDemiliters: !1,
            delimitersOption: ",",
            otherDelimiters: "",
            dragAndDropMappingResult: {},
            isSpecificPeriod: !1,
            startDate: "",
            endDate: "",
            isSpecificStatus: !1,
            specificStatus: "",
            isSpecificAuthors: !1,
            specificAuthors: "",
            isSpecificCategory: !1,
            categoryName: "",
            fileName: "",
            eventExclusion: { is_check: !1, exclusion_headers: { header: {} } },
            enableSchedule: !1,
            scheduleDate: "",
            scheduleFrequency: "OneTime",
            selectedUTC: "",
            scheduleTime: "",
            hostName: "",
            hostPort: "",
            hostUserName: "",
            hostPassword: "",
            hostPath: "",
            connectionType: "ftp",
            simpleModeSelection: !1,
            advancedModeSelection: !0,
            progressPercentage: 0,
            setActivateExporter: function (t) {
              e.setState({ activateExporter: t });
            },
            setIsTemplate: function (t) {
              e.setState({ isTemplate: t });
            },
            setExistingTemplateName: function (t) {
              e.setState({ existingTemplateName: t });
            },
            setMappingResult: function (t) {
              e.setState({ mappingResult: t });
            },
            setSelectedServiceProvider: function (t) {
              e.setState({ chosenServiceProvider: t });
            },
            setAccessKey: function (t) {
              e.setState({ accessKey: t });
            },
            setSecretKey: function (t) {
              e.setState({ secretKey: t });
            },
            setSeletedRegion: function (t) {
              e.setState({ selectedRegion: t });
            },
            setBucketLists: function (t) {
              e.setState({ bucketLists: t });
            },
            setEndPoint: function (t) {
              e.setState({ endPoints: t });
            },
            setStatusCopyFile: function (t) {
              e.setState({ statusCopyFiles: t });
            },
            setStatusYearPath: function (t) {
              e.setState({ statusYearPath: t });
            },
            setDragAndDropMappingResult: function (t) {
              e.setState({ dragAndDropMappingResult: t });
            },
            setOffloadMedia: function (t) {
              e.setState({ offloadMedia: t });
            },
            setRewriteUrl: function (t) {
              e.setState({ rewriteUrl: t });
            },
            setMediaPath: function (t) {
              e.setState({ mediaPath: t });
            },
            setStatusPathSettings: function (t) {
              e.setState({ statusPathSettings: t });
            },
            setDomainPath: function (t) {
              e.setState({ domainPath: t });
            },
            setCnamePathSettings: function (t) {
              e.setState({ cnamePathSettings: t });
            },
            setEdgePoint: function (t) {
              e.setState({ edgePoints: t });
            },
            setExistingBucket: function (t) {
              e.setState({ selectedBucketsName: t });
            },
            setMaintenanceMode: function (t) {
              e.setState({ maintenanceMode: t });
            },
            setRollBackMode: function (t) {
              e.setState({ rollBackMode: t });
            },
            setMappingType: function (t) {
              e.setState({ mappingType: t });
            },
            setImportLogDataLink: function (t) {
              e.setState({ importLogDataLink: t });
            },
            setImportScheduleData: function (t) {
              e.setState({ importScheduleData: t });
            },
            setSaveTemplateData: function (t) {
              e.setState({ saveTemplateData: t });
            },
            setCSVInfo: function (t) {
              e.setState({ csvInfo: t });
            },
            setExportInfo: function (t) {
              e.setState({ exportInfo: t });
            },
            setShowImportLog: function (t) {
              e.setState({ showImportLog: t });
            },
            setBulkImportData: function (t) {
              e.setState({ bulkImportData: t });
            },
            setIsXML: function (t) {
              e.setState({ isXML: t });
            },
            setShowComponent: function (t) {
              e.setState({ showComponent: t });
            },
            setShowExport: function (t) {
              e.setState({ showExport: t });
            },
            setLanguage: function (t) {
              e.setState({ language: t });
            },
            setSelectedTabOnCookies: function (e) {
              new mn().set("selectedTab", e, { path: "/" });
            },
            setSelectedFileUrl: function (t) {
              e.setState({ selectedFileUrl: t });
            },
            setCsvFields: function (t) {
              e.setState({ csvFields: t });
            },
            setAllPluginFields: function (t) {
              e.setState({ allPluginFields: t });
            },
            setIsAcfField: function (t) {
              e.setState({ isAcfField: t });
            },
            setIsToolsetField: function (t) {
              e.setState({ isToolsetField: t });
            },
            setUploadFtpData: function (t) {
              e.setState({ uploadFtpData: t });
            },
            setExportType: function (t) {
              e.setState({ exportType: t });
            },
            setShowSplitRecord: function (t) {
              e.setState({ showSplitRecord: t });
            },
            setRecordLimit: function (t) {
              e.setState({ recordLimit: t });
            },
            setIsDelimiters: function (t) {
              e.setState({ isDelimiters: t });
            },
            setDelimitersOption: function (t) {
              e.setState({ delimitersOption: t });
            },
            setOtherDelimiters: function (t) {
              e.setState({ otherDelimiters: t });
            },
            setIsSpecificPeriod: function (t) {
              e.setState({ isSpecificPeriod: t });
            },
            setStartDate: function (t) {
              e.setState({ startDate: t });
            },
            setEndDate: function (t) {
              e.setState({ endDate: t });
            },
            setIsSpecificStatus: function (t) {
              e.setState({ isSpecificStatus: t });
            },
            setSpecificStatus: function (t) {
              e.setState({ specificStatus: t });
            },
            setIsSpecificAuthors: function (t) {
              e.setState({ isSpecificAuthors: t });
            },
            setSpecificAuthors: function (t) {
              e.setState({ specificAuthors: t });
            },
            setIsSpecificCategory: function (t) {
              e.setState({ isSpecificCategory: t });
            },
            setCategoryName: function (t) {
              e.setState({ categoryName: t });
            },
            setFileName: function (t) {
              e.setState({ fileName: t });
            },
            setEventExclusion: function (t) {
              e.setState({ eventExclusion: t });
            },
            setEnableSchedule: function (t) {
              e.setState({ enableSchedule: t });
            },
            setScheduleDate: function (t) {
              e.setState({ scheduleDate: t });
            },
            setScheduleFrequency: function (t) {
              e.setState({ scheduleFrequency: t });
            },
            setSelectedUTC: function (t) {
              e.setState({ selectedUTC: t });
            },
            setScheduleTime: function (t) {
              e.setState({ scheduleTime: t });
            },
            setHostName: function (t) {
              e.setState({ hostName: t });
            },
            setHostPort: function (t) {
              e.setState({ hostPort: t });
            },
            setHostUserName: function (t) {
              e.setState({ hostUserName: t });
            },
            setHostPassword: function (t) {
              e.setState({ hostPassword: t });
            },
            setHostPath: function (t) {
              e.setState({ hostPath: t });
            },
            setConnectionType: function (t) {
              e.setState({ connectionType: t });
            },
            setSimpleModeSelection: function (t) {
              e.setState({ simpleModeSelection: t });
            },
            setAdvancedModeSelection: function (t) {
              e.setState({ advancedModeSelection: t });
            },
            setProgressPercentage: function (t) {
              e.setState({ progressPercentage: t });
            },
          }),
          e
        );
      }
      return (
        u()(n, [
          {
            key: "render",
            value: function () {
              return o.a.createElement(
                E.Provider,
                { value: this.state },
                this.props.children
              );
            },
          },
        ]),
        n
      );
    })(r.Component);
    document.addEventListener("DOMContentLoaded", function () {
      i.a.render(
        o.a.createElement(
          "div",
          { className: "wp-ultimate-csv-importer" },
          o.a.createElement(D.ToastContainer, {
            position: "top-right",
            autoClose: 4e3,
            hideProgressBar: !0,
            newestOnTop: !0,
            closeOnClick: !0,
            rtl: !1,
            pauseOnVisibilityChange: !0,
            draggable: !0,
            pauseOnHover: !0,
          }),
          o.a.createElement(
            Tn,
            null,
            o.a.createElement(Mn, null, o.a.createElement(kn, null))
          ),
          o.a.createElement(
            "p",
            { className: "text-center mt40 mb20" },
            "Powered by",
            " ",
            o.a.createElement(
              "a",
              {
                className: "csv-link",
                href:
                  "https://www.smackcoders.com?utm_source=wordpress&utm_medium=plugin&utm_campaign=pro_csv_importer",
                target: "blank",
              },
              "Smackcoders"
            ),
            " ",
            "| Plugin Version 6.2.3"
          )
        ),
        document.getElementById("wp-csv-importer-admin")
      );
    });
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return ae;
      });
    var r = n(57),
      o = n(51),
      a = n(5);
    function i(e, t) {
      if (null == e)
        throw new TypeError(
          "assign requires that input parameter not be null or undefined"
        );
      for (var n in (t = t || {})) t.hasOwnProperty(n) && (e[n] = t[n]);
      return e;
    }
    var s = n(52),
      l = n(20),
      c = n(22),
      u = n(7),
      d = n(31),
      h = n(2);
    function p(e, t, n) {
      Object(h.a)(2, arguments);
      var r = n || {},
        o = r.locale,
        i = o && o.options && o.options.weekStartsOn,
        s = null == i ? 0 : Object(u.a)(i),
        l = null == r.weekStartsOn ? s : Object(u.a)(r.weekStartsOn);
      if (!(l >= 0 && l <= 6))
        throw new RangeError(
          "weekStartsOn must be between 0 and 6 inclusively"
        );
      var c = Object(a.default)(e),
        d = Object(u.a)(t),
        p = c.getUTCDay(),
        f = d % 7,
        m = (f + 7) % 7,
        g = (m < l ? 7 : 0) + d - p;
      return c.setUTCDate(c.getUTCDate() + g), c;
    }
    var f = n(59);
    var m = n(58);
    var g = n(21),
      _ = n(18),
      v = /^(1[0-2]|0?\d)/,
      b = /^(3[0-1]|[0-2]?\d)/,
      y = /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
      w = /^(5[0-3]|[0-4]?\d)/,
      k = /^(2[0-3]|[0-1]?\d)/,
      x = /^(2[0-4]|[0-1]?\d)/,
      M = /^(1[0-1]|0?\d)/,
      E = /^(1[0-2]|0?\d)/,
      T = /^[0-5]?\d/,
      S = /^[0-5]?\d/,
      D = /^\d/,
      L = /^\d{1,2}/,
      C = /^\d{1,3}/,
      P = /^\d{1,4}/,
      O = /^-?\d+/,
      N = /^-?\d/,
      A = /^-?\d{1,2}/,
      I = /^-?\d{1,3}/,
      R = /^-?\d{1,4}/,
      Y = /^([+-])(\d{2})(\d{2})?|Z/,
      j = /^([+-])(\d{2})(\d{2})|Z/,
      F = /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
      H = /^([+-])(\d{2}):(\d{2})|Z/,
      z = /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;
    function B(e, t, n) {
      var r = t.match(e);
      if (!r) return null;
      var o = parseInt(r[0], 10);
      return { value: n ? n(o) : o, rest: t.slice(r[0].length) };
    }
    function U(e, t) {
      var n = t.match(e);
      return n
        ? "Z" === n[0]
          ? { value: 0, rest: t.slice(1) }
          : {
              value:
                ("+" === n[1] ? 1 : -1) *
                (36e5 * (n[2] ? parseInt(n[2], 10) : 0) +
                  6e4 * (n[3] ? parseInt(n[3], 10) : 0) +
                  1e3 * (n[5] ? parseInt(n[5], 10) : 0)),
              rest: t.slice(n[0].length),
            }
        : null;
    }
    function V(e, t) {
      return B(O, e, t);
    }
    function W(e, t, n) {
      switch (e) {
        case 1:
          return B(D, t, n);
        case 2:
          return B(L, t, n);
        case 3:
          return B(C, t, n);
        case 4:
          return B(P, t, n);
        default:
          return B(new RegExp("^\\d{1," + e + "}"), t, n);
      }
    }
    function q(e, t, n) {
      switch (e) {
        case 1:
          return B(N, t, n);
        case 2:
          return B(A, t, n);
        case 3:
          return B(I, t, n);
        case 4:
          return B(R, t, n);
        default:
          return B(new RegExp("^-?\\d{1," + e + "}"), t, n);
      }
    }
    function G(e) {
      switch (e) {
        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 J(e, t) {
      var n,
        r = t > 0,
        o = r ? t : 1 - t;
      if (o <= 50) n = e || 100;
      else {
        var a = o + 50;
        n = e + 100 * Math.floor(a / 100) - (e >= a % 100 ? 100 : 0);
      }
      return r ? n : 1 - n;
    }
    var K = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
      Q = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
    function X(e) {
      return e % 400 == 0 || (e % 4 == 0 && e % 100 != 0);
    }
    var $ = {
        G: {
          priority: 140,
          parse: function (e, t, n, r) {
            switch (t) {
              case "G":
              case "GG":
              case "GGG":
                return (
                  n.era(e, { width: "abbreviated" }) ||
                  n.era(e, { width: "narrow" })
                );
              case "GGGGG":
                return n.era(e, { width: "narrow" });
              case "GGGG":
              default:
                return (
                  n.era(e, { width: "wide" }) ||
                  n.era(e, { width: "abbreviated" }) ||
                  n.era(e, { width: "narrow" })
                );
            }
          },
          set: function (e, t, n, r) {
            return (
              (t.era = n),
              e.setUTCFullYear(n, 0, 1),
              e.setUTCHours(0, 0, 0, 0),
              e
            );
          },
          incompatibleTokens: ["R", "u", "t", "T"],
        },
        y: {
          priority: 130,
          parse: function (e, t, n, r) {
            var o = function (e) {
              return { year: e, isTwoDigitYear: "yy" === t };
            };
            switch (t) {
              case "y":
                return W(4, e, o);
              case "yo":
                return n.ordinalNumber(e, { unit: "year", valueCallback: o });
              default:
                return W(t.length, e, o);
            }
          },
          validate: function (e, t, n) {
            return t.isTwoDigitYear || t.year > 0;
          },
          set: function (e, t, n, r) {
            var o = e.getUTCFullYear();
            if (n.isTwoDigitYear) {
              var a = J(n.year, o);
              return e.setUTCFullYear(a, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
            }
            var i = "era" in t && 1 !== t.era ? 1 - n.year : n.year;
            return e.setUTCFullYear(i, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "Y",
            "R",
            "u",
            "w",
            "I",
            "i",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        Y: {
          priority: 130,
          parse: function (e, t, n, r) {
            var o = function (e) {
              return { year: e, isTwoDigitYear: "YY" === t };
            };
            switch (t) {
              case "Y":
                return W(4, e, o);
              case "Yo":
                return n.ordinalNumber(e, { unit: "year", valueCallback: o });
              default:
                return W(t.length, e, o);
            }
          },
          validate: function (e, t, n) {
            return t.isTwoDigitYear || t.year > 0;
          },
          set: function (e, t, n, r) {
            var o = Object(d.a)(e, r);
            if (n.isTwoDigitYear) {
              var a = J(n.year, o);
              return (
                e.setUTCFullYear(a, 0, r.firstWeekContainsDate),
                e.setUTCHours(0, 0, 0, 0),
                Object(_.a)(e, r)
              );
            }
            var i = "era" in t && 1 !== t.era ? 1 - n.year : n.year;
            return (
              e.setUTCFullYear(i, 0, r.firstWeekContainsDate),
              e.setUTCHours(0, 0, 0, 0),
              Object(_.a)(e, r)
            );
          },
          incompatibleTokens: [
            "y",
            "R",
            "u",
            "Q",
            "q",
            "M",
            "L",
            "I",
            "d",
            "D",
            "i",
            "t",
            "T",
          ],
        },
        R: {
          priority: 130,
          parse: function (e, t, n, r) {
            return q("R" === t ? 4 : t.length, e);
          },
          set: function (e, t, n, r) {
            var o = new Date(0);
            return (
              o.setUTCFullYear(n, 0, 4),
              o.setUTCHours(0, 0, 0, 0),
              Object(g.a)(o)
            );
          },
          incompatibleTokens: [
            "G",
            "y",
            "Y",
            "u",
            "Q",
            "q",
            "M",
            "L",
            "w",
            "d",
            "D",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        u: {
          priority: 130,
          parse: function (e, t, n, r) {
            return q("u" === t ? 4 : t.length, e);
          },
          set: function (e, t, n, r) {
            return e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "G",
            "y",
            "Y",
            "R",
            "w",
            "I",
            "i",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        Q: {
          priority: 120,
          parse: function (e, t, n, r) {
            switch (t) {
              case "Q":
              case "QQ":
                return W(t.length, e);
              case "Qo":
                return n.ordinalNumber(e, { unit: "quarter" });
              case "QQQ":
                return (
                  n.quarter(e, {
                    width: "abbreviated",
                    context: "formatting",
                  }) || n.quarter(e, { width: "narrow", context: "formatting" })
                );
              case "QQQQQ":
                return n.quarter(e, { width: "narrow", context: "formatting" });
              case "QQQQ":
              default:
                return (
                  n.quarter(e, { width: "wide", context: "formatting" }) ||
                  n.quarter(e, {
                    width: "abbreviated",
                    context: "formatting",
                  }) ||
                  n.quarter(e, { width: "narrow", context: "formatting" })
                );
            }
          },
          validate: function (e, t, n) {
            return t >= 1 && t <= 4;
          },
          set: function (e, t, n, r) {
            return e.setUTCMonth(3 * (n - 1), 1), e.setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "Y",
            "R",
            "q",
            "M",
            "L",
            "w",
            "I",
            "d",
            "D",
            "i",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        q: {
          priority: 120,
          parse: function (e, t, n, r) {
            switch (t) {
              case "q":
              case "qq":
                return W(t.length, e);
              case "qo":
                return n.ordinalNumber(e, { unit: "quarter" });
              case "qqq":
                return (
                  n.quarter(e, {
                    width: "abbreviated",
                    context: "standalone",
                  }) || n.quarter(e, { width: "narrow", context: "standalone" })
                );
              case "qqqqq":
                return n.quarter(e, { width: "narrow", context: "standalone" });
              case "qqqq":
              default:
                return (
                  n.quarter(e, { width: "wide", context: "standalone" }) ||
                  n.quarter(e, {
                    width: "abbreviated",
                    context: "standalone",
                  }) ||
                  n.quarter(e, { width: "narrow", context: "standalone" })
                );
            }
          },
          validate: function (e, t, n) {
            return t >= 1 && t <= 4;
          },
          set: function (e, t, n, r) {
            return e.setUTCMonth(3 * (n - 1), 1), e.setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "Y",
            "R",
            "Q",
            "M",
            "L",
            "w",
            "I",
            "d",
            "D",
            "i",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        M: {
          priority: 110,
          parse: function (e, t, n, r) {
            var o = function (e) {
              return e - 1;
            };
            switch (t) {
              case "M":
                return B(v, e, o);
              case "MM":
                return W(2, e, o);
              case "Mo":
                return n.ordinalNumber(e, { unit: "month", valueCallback: o });
              case "MMM":
                return (
                  n.month(e, { width: "abbreviated", context: "formatting" }) ||
                  n.month(e, { width: "narrow", context: "formatting" })
                );
              case "MMMMM":
                return n.month(e, { width: "narrow", context: "formatting" });
              case "MMMM":
              default:
                return (
                  n.month(e, { width: "wide", context: "formatting" }) ||
                  n.month(e, { width: "abbreviated", context: "formatting" }) ||
                  n.month(e, { width: "narrow", context: "formatting" })
                );
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 11;
          },
          set: function (e, t, n, r) {
            return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "Y",
            "R",
            "q",
            "Q",
            "L",
            "w",
            "I",
            "D",
            "i",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        L: {
          priority: 110,
          parse: function (e, t, n, r) {
            var o = function (e) {
              return e - 1;
            };
            switch (t) {
              case "L":
                return B(v, e, o);
              case "LL":
                return W(2, e, o);
              case "Lo":
                return n.ordinalNumber(e, { unit: "month", valueCallback: o });
              case "LLL":
                return (
                  n.month(e, { width: "abbreviated", context: "standalone" }) ||
                  n.month(e, { width: "narrow", context: "standalone" })
                );
              case "LLLLL":
                return n.month(e, { width: "narrow", context: "standalone" });
              case "LLLL":
              default:
                return (
                  n.month(e, { width: "wide", context: "standalone" }) ||
                  n.month(e, { width: "abbreviated", context: "standalone" }) ||
                  n.month(e, { width: "narrow", context: "standalone" })
                );
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 11;
          },
          set: function (e, t, n, r) {
            return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "Y",
            "R",
            "q",
            "Q",
            "M",
            "w",
            "I",
            "D",
            "i",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        w: {
          priority: 100,
          parse: function (e, t, n, r) {
            switch (t) {
              case "w":
                return B(w, e);
              case "wo":
                return n.ordinalNumber(e, { unit: "week" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return t >= 1 && t <= 53;
          },
          set: function (e, t, n, r) {
            return Object(_.a)(
              (function (e, t, n) {
                Object(h.a)(2, arguments);
                var r = Object(a.default)(e),
                  o = Object(u.a)(t),
                  i = Object(m.a)(r, n) - o;
                return r.setUTCDate(r.getUTCDate() - 7 * i), r;
              })(e, n, r),
              r
            );
          },
          incompatibleTokens: [
            "y",
            "R",
            "u",
            "q",
            "Q",
            "M",
            "L",
            "I",
            "d",
            "D",
            "i",
            "t",
            "T",
          ],
        },
        I: {
          priority: 100,
          parse: function (e, t, n, r) {
            switch (t) {
              case "I":
                return B(w, e);
              case "Io":
                return n.ordinalNumber(e, { unit: "week" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return t >= 1 && t <= 53;
          },
          set: function (e, t, n, r) {
            return Object(g.a)(
              (function (e, t) {
                Object(h.a)(2, arguments);
                var n = Object(a.default)(e),
                  r = Object(u.a)(t),
                  o = Object(f.a)(n) - r;
                return n.setUTCDate(n.getUTCDate() - 7 * o), n;
              })(e, n, r),
              r
            );
          },
          incompatibleTokens: [
            "y",
            "Y",
            "u",
            "q",
            "Q",
            "M",
            "L",
            "w",
            "d",
            "D",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        d: {
          priority: 90,
          subPriority: 1,
          parse: function (e, t, n, r) {
            switch (t) {
              case "d":
                return B(b, e);
              case "do":
                return n.ordinalNumber(e, { unit: "date" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            var r = X(e.getUTCFullYear()),
              o = e.getUTCMonth();
            return r ? t >= 1 && t <= Q[o] : t >= 1 && t <= K[o];
          },
          set: function (e, t, n, r) {
            return e.setUTCDate(n), e.setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "Y",
            "R",
            "q",
            "Q",
            "w",
            "I",
            "D",
            "i",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        D: {
          priority: 90,
          subPriority: 1,
          parse: function (e, t, n, r) {
            switch (t) {
              case "D":
              case "DD":
                return B(y, e);
              case "Do":
                return n.ordinalNumber(e, { unit: "date" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return X(e.getUTCFullYear())
              ? t >= 1 && t <= 366
              : t >= 1 && t <= 365;
          },
          set: function (e, t, n, r) {
            return e.setUTCMonth(0, n), e.setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "Y",
            "R",
            "q",
            "Q",
            "M",
            "L",
            "w",
            "I",
            "d",
            "E",
            "i",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        E: {
          priority: 90,
          parse: function (e, t, n, r) {
            switch (t) {
              case "E":
              case "EE":
              case "EEE":
                return (
                  n.day(e, { width: "abbreviated", context: "formatting" }) ||
                  n.day(e, { width: "short", context: "formatting" }) ||
                  n.day(e, { width: "narrow", context: "formatting" })
                );
              case "EEEEE":
                return n.day(e, { width: "narrow", context: "formatting" });
              case "EEEEEE":
                return (
                  n.day(e, { width: "short", context: "formatting" }) ||
                  n.day(e, { width: "narrow", context: "formatting" })
                );
              case "EEEE":
              default:
                return (
                  n.day(e, { width: "wide", context: "formatting" }) ||
                  n.day(e, { width: "abbreviated", context: "formatting" }) ||
                  n.day(e, { width: "short", context: "formatting" }) ||
                  n.day(e, { width: "narrow", context: "formatting" })
                );
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 6;
          },
          set: function (e, t, n, r) {
            return (e = p(e, n, r)).setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: ["D", "i", "e", "c", "t", "T"],
        },
        e: {
          priority: 90,
          parse: function (e, t, n, r) {
            var o = function (e) {
              var t = 7 * Math.floor((e - 1) / 7);
              return ((e + r.weekStartsOn + 6) % 7) + t;
            };
            switch (t) {
              case "e":
              case "ee":
                return W(t.length, e, o);
              case "eo":
                return n.ordinalNumber(e, { unit: "day", valueCallback: o });
              case "eee":
                return (
                  n.day(e, { width: "abbreviated", context: "formatting" }) ||
                  n.day(e, { width: "short", context: "formatting" }) ||
                  n.day(e, { width: "narrow", context: "formatting" })
                );
              case "eeeee":
                return n.day(e, { width: "narrow", context: "formatting" });
              case "eeeeee":
                return (
                  n.day(e, { width: "short", context: "formatting" }) ||
                  n.day(e, { width: "narrow", context: "formatting" })
                );
              case "eeee":
              default:
                return (
                  n.day(e, { width: "wide", context: "formatting" }) ||
                  n.day(e, { width: "abbreviated", context: "formatting" }) ||
                  n.day(e, { width: "short", context: "formatting" }) ||
                  n.day(e, { width: "narrow", context: "formatting" })
                );
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 6;
          },
          set: function (e, t, n, r) {
            return (e = p(e, n, r)).setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "y",
            "R",
            "u",
            "q",
            "Q",
            "M",
            "L",
            "I",
            "d",
            "D",
            "E",
            "i",
            "c",
            "t",
            "T",
          ],
        },
        c: {
          priority: 90,
          parse: function (e, t, n, r) {
            var o = function (e) {
              var t = 7 * Math.floor((e - 1) / 7);
              return ((e + r.weekStartsOn + 6) % 7) + t;
            };
            switch (t) {
              case "c":
              case "cc":
                return W(t.length, e, o);
              case "co":
                return n.ordinalNumber(e, { unit: "day", valueCallback: o });
              case "ccc":
                return (
                  n.day(e, { width: "abbreviated", context: "standalone" }) ||
                  n.day(e, { width: "short", context: "standalone" }) ||
                  n.day(e, { width: "narrow", context: "standalone" })
                );
              case "ccccc":
                return n.day(e, { width: "narrow", context: "standalone" });
              case "cccccc":
                return (
                  n.day(e, { width: "short", context: "standalone" }) ||
                  n.day(e, { width: "narrow", context: "standalone" })
                );
              case "cccc":
              default:
                return (
                  n.day(e, { width: "wide", context: "standalone" }) ||
                  n.day(e, { width: "abbreviated", context: "standalone" }) ||
                  n.day(e, { width: "short", context: "standalone" }) ||
                  n.day(e, { width: "narrow", context: "standalone" })
                );
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 6;
          },
          set: function (e, t, n, r) {
            return (e = p(e, n, r)).setUTCHours(0, 0, 0, 0), e;
          },
          incompatibleTokens: [
            "y",
            "R",
            "u",
            "q",
            "Q",
            "M",
            "L",
            "I",
            "d",
            "D",
            "E",
            "i",
            "e",
            "t",
            "T",
          ],
        },
        i: {
          priority: 90,
          parse: function (e, t, n, r) {
            var o = function (e) {
              return 0 === e ? 7 : e;
            };
            switch (t) {
              case "i":
              case "ii":
                return W(t.length, e);
              case "io":
                return n.ordinalNumber(e, { unit: "day" });
              case "iii":
                return (
                  n.day(e, {
                    width: "abbreviated",
                    context: "formatting",
                    valueCallback: o,
                  }) ||
                  n.day(e, {
                    width: "short",
                    context: "formatting",
                    valueCallback: o,
                  }) ||
                  n.day(e, {
                    width: "narrow",
                    context: "formatting",
                    valueCallback: o,
                  })
                );
              case "iiiii":
                return n.day(e, {
                  width: "narrow",
                  context: "formatting",
                  valueCallback: o,
                });
              case "iiiiii":
                return (
                  n.day(e, {
                    width: "short",
                    context: "formatting",
                    valueCallback: o,
                  }) ||
                  n.day(e, {
                    width: "narrow",
                    context: "formatting",
                    valueCallback: o,
                  })
                );
              case "iiii":
              default:
                return (
                  n.day(e, {
                    width: "wide",
                    context: "formatting",
                    valueCallback: o,
                  }) ||
                  n.day(e, {
                    width: "abbreviated",
                    context: "formatting",
                    valueCallback: o,
                  }) ||
                  n.day(e, {
                    width: "short",
                    context: "formatting",
                    valueCallback: o,
                  }) ||
                  n.day(e, {
                    width: "narrow",
                    context: "formatting",
                    valueCallback: o,
                  })
                );
            }
          },
          validate: function (e, t, n) {
            return t >= 1 && t <= 7;
          },
          set: function (e, t, n, r) {
            return (
              (e = (function (e, t) {
                Object(h.a)(2, arguments);
                var n = Object(u.a)(t);
                n % 7 == 0 && (n -= 7);
                var r = 1,
                  o = Object(a.default)(e),
                  i = o.getUTCDay(),
                  s = n % 7,
                  l = (s + 7) % 7,
                  c = (l < r ? 7 : 0) + n - i;
                return o.setUTCDate(o.getUTCDate() + c), o;
              })(e, n, r)).setUTCHours(0, 0, 0, 0),
              e
            );
          },
          incompatibleTokens: [
            "y",
            "Y",
            "u",
            "q",
            "Q",
            "M",
            "L",
            "w",
            "d",
            "D",
            "E",
            "e",
            "c",
            "t",
            "T",
          ],
        },
        a: {
          priority: 80,
          parse: function (e, t, n, r) {
            switch (t) {
              case "a":
              case "aa":
              case "aaa":
                return (
                  n.dayPeriod(e, {
                    width: "abbreviated",
                    context: "formatting",
                  }) ||
                  n.dayPeriod(e, { width: "narrow", context: "formatting" })
                );
              case "aaaaa":
                return n.dayPeriod(e, {
                  width: "narrow",
                  context: "formatting",
                });
              case "aaaa":
              default:
                return (
                  n.dayPeriod(e, { width: "wide", context: "formatting" }) ||
                  n.dayPeriod(e, {
                    width: "abbreviated",
                    context: "formatting",
                  }) ||
                  n.dayPeriod(e, { width: "narrow", context: "formatting" })
                );
            }
          },
          set: function (e, t, n, r) {
            return e.setUTCHours(G(n), 0, 0, 0), e;
          },
          incompatibleTokens: ["b", "B", "H", "K", "k", "t", "T"],
        },
        b: {
          priority: 80,
          parse: function (e, t, n, r) {
            switch (t) {
              case "b":
              case "bb":
              case "bbb":
                return (
                  n.dayPeriod(e, {
                    width: "abbreviated",
                    context: "formatting",
                  }) ||
                  n.dayPeriod(e, { width: "narrow", context: "formatting" })
                );
              case "bbbbb":
                return n.dayPeriod(e, {
                  width: "narrow",
                  context: "formatting",
                });
              case "bbbb":
              default:
                return (
                  n.dayPeriod(e, { width: "wide", context: "formatting" }) ||
                  n.dayPeriod(e, {
                    width: "abbreviated",
                    context: "formatting",
                  }) ||
                  n.dayPeriod(e, { width: "narrow", context: "formatting" })
                );
            }
          },
          set: function (e, t, n, r) {
            return e.setUTCHours(G(n), 0, 0, 0), e;
          },
          incompatibleTokens: ["a", "B", "H", "K", "k", "t", "T"],
        },
        B: {
          priority: 80,
          parse: function (e, t, n, r) {
            switch (t) {
              case "B":
              case "BB":
              case "BBB":
                return (
                  n.dayPeriod(e, {
                    width: "abbreviated",
                    context: "formatting",
                  }) ||
                  n.dayPeriod(e, { width: "narrow", context: "formatting" })
                );
              case "BBBBB":
                return n.dayPeriod(e, {
                  width: "narrow",
                  context: "formatting",
                });
              case "BBBB":
              default:
                return (
                  n.dayPeriod(e, { width: "wide", context: "formatting" }) ||
                  n.dayPeriod(e, {
                    width: "abbreviated",
                    context: "formatting",
                  }) ||
                  n.dayPeriod(e, { width: "narrow", context: "formatting" })
                );
            }
          },
          set: function (e, t, n, r) {
            return e.setUTCHours(G(n), 0, 0, 0), e;
          },
          incompatibleTokens: ["a", "b", "t", "T"],
        },
        h: {
          priority: 70,
          parse: function (e, t, n, r) {
            switch (t) {
              case "h":
                return B(E, e);
              case "ho":
                return n.ordinalNumber(e, { unit: "hour" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return t >= 1 && t <= 12;
          },
          set: function (e, t, n, r) {
            var o = e.getUTCHours() >= 12;
            return (
              o && n < 12
                ? e.setUTCHours(n + 12, 0, 0, 0)
                : o || 12 !== n
                ? e.setUTCHours(n, 0, 0, 0)
                : e.setUTCHours(0, 0, 0, 0),
              e
            );
          },
          incompatibleTokens: ["H", "K", "k", "t", "T"],
        },
        H: {
          priority: 70,
          parse: function (e, t, n, r) {
            switch (t) {
              case "H":
                return B(k, e);
              case "Ho":
                return n.ordinalNumber(e, { unit: "hour" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 23;
          },
          set: function (e, t, n, r) {
            return e.setUTCHours(n, 0, 0, 0), e;
          },
          incompatibleTokens: ["a", "b", "h", "K", "k", "t", "T"],
        },
        K: {
          priority: 70,
          parse: function (e, t, n, r) {
            switch (t) {
              case "K":
                return B(M, e);
              case "Ko":
                return n.ordinalNumber(e, { unit: "hour" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 11;
          },
          set: function (e, t, n, r) {
            return (
              e.getUTCHours() >= 12 && n < 12
                ? e.setUTCHours(n + 12, 0, 0, 0)
                : e.setUTCHours(n, 0, 0, 0),
              e
            );
          },
          incompatibleTokens: ["a", "b", "h", "H", "k", "t", "T"],
        },
        k: {
          priority: 70,
          parse: function (e, t, n, r) {
            switch (t) {
              case "k":
                return B(x, e);
              case "ko":
                return n.ordinalNumber(e, { unit: "hour" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return t >= 1 && t <= 24;
          },
          set: function (e, t, n, r) {
            var o = n <= 24 ? n % 24 : n;
            return e.setUTCHours(o, 0, 0, 0), e;
          },
          incompatibleTokens: ["a", "b", "h", "H", "K", "t", "T"],
        },
        m: {
          priority: 60,
          parse: function (e, t, n, r) {
            switch (t) {
              case "m":
                return B(T, e);
              case "mo":
                return n.ordinalNumber(e, { unit: "minute" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 59;
          },
          set: function (e, t, n, r) {
            return e.setUTCMinutes(n, 0, 0), e;
          },
          incompatibleTokens: ["t", "T"],
        },
        s: {
          priority: 50,
          parse: function (e, t, n, r) {
            switch (t) {
              case "s":
                return B(S, e);
              case "so":
                return n.ordinalNumber(e, { unit: "second" });
              default:
                return W(t.length, e);
            }
          },
          validate: function (e, t, n) {
            return t >= 0 && t <= 59;
          },
          set: function (e, t, n, r) {
            return e.setUTCSeconds(n, 0), e;
          },
          incompatibleTokens: ["t", "T"],
        },
        S: {
          priority: 30,
          parse: function (e, t, n, r) {
            return W(t.length, e, function (e) {
              return Math.floor(e * Math.pow(10, 3 - t.length));
            });
          },
          set: function (e, t, n, r) {
            return e.setUTCMilliseconds(n), e;
          },
          incompatibleTokens: ["t", "T"],
        },
        X: {
          priority: 10,
          parse: function (e, t, n, r) {
            switch (t) {
              case "X":
                return U(Y, e);
              case "XX":
                return U(j, e);
              case "XXXX":
                return U(F, e);
              case "XXXXX":
                return U(z, e);
              case "XXX":
              default:
                return U(H, e);
            }
          },
          set: function (e, t, n, r) {
            return t.timestampIsSet ? e : new Date(e.getTime() - n);
          },
          incompatibleTokens: ["t", "T", "x"],
        },
        x: {
          priority: 10,
          parse: function (e, t, n, r) {
            switch (t) {
              case "x":
                return U(Y, e);
              case "xx":
                return U(j, e);
              case "xxxx":
                return U(F, e);
              case "xxxxx":
                return U(z, e);
              case "xxx":
              default:
                return U(H, e);
            }
          },
          set: function (e, t, n, r) {
            return t.timestampIsSet ? e : new Date(e.getTime() - n);
          },
          incompatibleTokens: ["t", "T", "X"],
        },
        t: {
          priority: 40,
          parse: function (e, t, n, r) {
            return V(e);
          },
          set: function (e, t, n, r) {
            return [new Date(1e3 * n), { timestampIsSet: !0 }];
          },
          incompatibleTokens: "*",
        },
        T: {
          priority: 20,
          parse: function (e, t, n, r) {
            return V(e);
          },
          set: function (e, t, n, r) {
            return [new Date(n), { timestampIsSet: !0 }];
          },
          incompatibleTokens: "*",
        },
      },
      Z = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
      ee = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
      te = /^'([^]*?)'?$/,
      ne = /''/g,
      re = /\S/,
      oe = /[a-zA-Z]/;
    function ae(e, t, n, d) {
      Object(h.a)(3, arguments);
      var p = String(e),
        f = String(t),
        m = d || {},
        g = m.locale || r.a;
      if (!g.match) throw new RangeError("locale must contain match property");
      var _ = g.options && g.options.firstWeekContainsDate,
        v = null == _ ? 1 : Object(u.a)(_),
        b =
          null == m.firstWeekContainsDate
            ? v
            : Object(u.a)(m.firstWeekContainsDate);
      if (!(b >= 1 && b <= 7))
        throw new RangeError(
          "firstWeekContainsDate must be between 1 and 7 inclusively"
        );
      var y = g.options && g.options.weekStartsOn,
        w = null == y ? 0 : Object(u.a)(y),
        k = null == m.weekStartsOn ? w : Object(u.a)(m.weekStartsOn);
      if (!(k >= 0 && k <= 6))
        throw new RangeError(
          "weekStartsOn must be between 0 and 6 inclusively"
        );
      if ("" === f) return "" === p ? Object(a.default)(n) : new Date(NaN);
      var x,
        M = { firstWeekContainsDate: b, weekStartsOn: k, locale: g },
        E = [{ priority: 10, subPriority: -1, set: ie, index: 0 }],
        T = f
          .match(ee)
          .map(function (e) {
            var t = e[0];
            return "p" === t || "P" === t ? (0, s.a[t])(e, g.formatLong, M) : e;
          })
          .join("")
          .match(Z),
        S = [];
      for (x = 0; x < T.length; x++) {
        var D = T[x];
        !m.useAdditionalWeekYearTokens &&
          Object(c.b)(D) &&
          Object(c.c)(D, f, e),
          !m.useAdditionalDayOfYearTokens &&
            Object(c.a)(D) &&
            Object(c.c)(D, f, e);
        var L = D[0],
          C = $[L];
        if (C) {
          var P = C.incompatibleTokens;
          if (Array.isArray(P)) {
            for (var O = void 0, N = 0; N < S.length; N++) {
              var A = S[N].token;
              if (-1 !== P.indexOf(A) || A === L) {
                O = S[N];
                break;
              }
            }
            if (O)
              throw new RangeError(
                "The format string mustn't contain `"
                  .concat(O.fullToken, "` and `")
                  .concat(D, "` at the same time")
              );
          } else if ("*" === C.incompatibleTokens && S.length)
            throw new RangeError(
              "The format string mustn't contain `".concat(
                D,
                "` and any other token at the same time"
              )
            );
          S.push({ token: L, fullToken: D });
          var I = C.parse(p, D, g.match, M);
          if (!I) return new Date(NaN);
          E.push({
            priority: C.priority,
            subPriority: C.subPriority || 0,
            set: C.set,
            validate: C.validate,
            value: I.value,
            index: E.length,
          }),
            (p = I.rest);
        } else {
          if (L.match(oe))
            throw new RangeError(
              "Format string contains an unescaped latin alphabet character `" +
                L +
                "`"
            );
          if (
            ("''" === D ? (D = "'") : "'" === L && (D = se(D)),
            0 !== p.indexOf(D))
          )
            return new Date(NaN);
          p = p.slice(D.length);
        }
      }
      if (p.length > 0 && re.test(p)) return new Date(NaN);
      var R = E.map(function (e) {
          return e.priority;
        })
          .sort(function (e, t) {
            return t - e;
          })
          .filter(function (e, t, n) {
            return n.indexOf(e) === t;
          })
          .map(function (e) {
            return E.filter(function (t) {
              return t.priority === e;
            }).sort(function (e, t) {
              return t.subPriority - e.subPriority;
            });
          })
          .map(function (e) {
            return e[0];
          }),
        Y = Object(a.default)(n);
      if (isNaN(Y)) return new Date(NaN);
      var j = Object(o.a)(Y, Object(l.a)(Y)),
        F = {};
      for (x = 0; x < R.length; x++) {
        var H = R[x];
        if (H.validate && !H.validate(j, H.value, M)) return new Date(NaN);
        var z = H.set(j, F, H.value, M);
        z[0] ? ((j = z[0]), i(F, z[1])) : (j = z);
      }
      return j;
    }
    function ie(e, t) {
      if (t.timestampIsSet) return e;
      var n = new Date(0);
      return (
        n.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()),
        n.setHours(
          e.getUTCHours(),
          e.getUTCMinutes(),
          e.getUTCSeconds(),
          e.getUTCMilliseconds()
        ),
        n
      );
    }
    function se(e) {
      return e.match(te)[1].replace(ne, "'");
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return N;
      });
    var r = n(74),
      o = n(57),
      a = n(51),
      i = n(5);
    function s(e, t) {
      for (var n = e < 0 ? "-" : "", r = Math.abs(e).toString(); r.length < t; )
        r = "0" + r;
      return n + r;
    }
    var l = {
        y: function (e, t) {
          var n = e.getUTCFullYear(),
            r = n > 0 ? n : 1 - n;
          return s("yy" === t ? r % 100 : r, t.length);
        },
        M: function (e, t) {
          var n = e.getUTCMonth();
          return "M" === t ? String(n + 1) : s(n + 1, 2);
        },
        d: function (e, t) {
          return s(e.getUTCDate(), t.length);
        },
        a: function (e, t) {
          var n = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
          switch (t) {
            case "a":
            case "aa":
            case "aaa":
              return n.toUpperCase();
            case "aaaaa":
              return n[0];
            case "aaaa":
            default:
              return "am" === n ? "a.m." : "p.m.";
          }
        },
        h: function (e, t) {
          return s(e.getUTCHours() % 12 || 12, t.length);
        },
        H: function (e, t) {
          return s(e.getUTCHours(), t.length);
        },
        m: function (e, t) {
          return s(e.getUTCMinutes(), t.length);
        },
        s: function (e, t) {
          return s(e.getUTCSeconds(), t.length);
        },
        S: function (e, t) {
          var n = t.length,
            r = e.getUTCMilliseconds();
          return s(Math.floor(r * Math.pow(10, n - 3)), t.length);
        },
      },
      c = n(2);
    var u = n(59),
      d = n(53),
      h = n(58),
      p = n(31),
      f = "midnight",
      m = "noon",
      g = "morning",
      _ = "afternoon",
      v = "evening",
      b = "night";
    function y(e, t) {
      var n = e > 0 ? "-" : "+",
        r = Math.abs(e),
        o = Math.floor(r / 60),
        a = r % 60;
      if (0 === a) return n + String(o);
      var i = t || "";
      return n + String(o) + i + s(a, 2);
    }
    function w(e, t) {
      return e % 60 == 0
        ? (e > 0 ? "-" : "+") + s(Math.abs(e) / 60, 2)
        : k(e, t);
    }
    function k(e, t) {
      var n = t || "",
        r = e > 0 ? "-" : "+",
        o = Math.abs(e);
      return r + s(Math.floor(o / 60), 2) + n + s(o % 60, 2);
    }
    var x = {
        G: function (e, t, n) {
          var r = e.getUTCFullYear() > 0 ? 1 : 0;
          switch (t) {
            case "G":
            case "GG":
            case "GGG":
              return n.era(r, { width: "abbreviated" });
            case "GGGGG":
              return n.era(r, { width: "narrow" });
            case "GGGG":
            default:
              return n.era(r, { width: "wide" });
          }
        },
        y: function (e, t, n) {
          if ("yo" === t) {
            var r = e.getUTCFullYear(),
              o = r > 0 ? r : 1 - r;
            return n.ordinalNumber(o, { unit: "year" });
          }
          return l.y(e, t);
        },
        Y: function (e, t, n, r) {
          var o = Object(p.a)(e, r),
            a = o > 0 ? o : 1 - o;
          return "YY" === t
            ? s(a % 100, 2)
            : "Yo" === t
            ? n.ordinalNumber(a, { unit: "year" })
            : s(a, t.length);
        },
        R: function (e, t) {
          return s(Object(d.a)(e), t.length);
        },
        u: function (e, t) {
          return s(e.getUTCFullYear(), t.length);
        },
        Q: function (e, t, n) {
          var r = Math.ceil((e.getUTCMonth() + 1) / 3);
          switch (t) {
            case "Q":
              return String(r);
            case "QQ":
              return s(r, 2);
            case "Qo":
              return n.ordinalNumber(r, { unit: "quarter" });
            case "QQQ":
              return n.quarter(r, {
                width: "abbreviated",
                context: "formatting",
              });
            case "QQQQQ":
              return n.quarter(r, { width: "narrow", context: "formatting" });
            case "QQQQ":
            default:
              return n.quarter(r, { width: "wide", context: "formatting" });
          }
        },
        q: function (e, t, n) {
          var r = Math.ceil((e.getUTCMonth() + 1) / 3);
          switch (t) {
            case "q":
              return String(r);
            case "qq":
              return s(r, 2);
            case "qo":
              return n.ordinalNumber(r, { unit: "quarter" });
            case "qqq":
              return n.quarter(r, {
                width: "abbreviated",
                context: "standalone",
              });
            case "qqqqq":
              return n.quarter(r, { width: "narrow", context: "standalone" });
            case "qqqq":
            default:
              return n.quarter(r, { width: "wide", context: "standalone" });
          }
        },
        M: function (e, t, n) {
          var r = e.getUTCMonth();
          switch (t) {
            case "M":
            case "MM":
              return l.M(e, t);
            case "Mo":
              return n.ordinalNumber(r + 1, { unit: "month" });
            case "MMM":
              return n.month(r, {
                width: "abbreviated",
                context: "formatting",
              });
            case "MMMMM":
              return n.month(r, { width: "narrow", context: "formatting" });
            case "MMMM":
            default:
              return n.month(r, { width: "wide", context: "formatting" });
          }
        },
        L: function (e, t, n) {
          var r = e.getUTCMonth();
          switch (t) {
            case "L":
              return String(r + 1);
            case "LL":
              return s(r + 1, 2);
            case "Lo":
              return n.ordinalNumber(r + 1, { unit: "month" });
            case "LLL":
              return n.month(r, {
                width: "abbreviated",
                context: "standalone",
              });
            case "LLLLL":
              return n.month(r, { width: "narrow", context: "standalone" });
            case "LLLL":
            default:
              return n.month(r, { width: "wide", context: "standalone" });
          }
        },
        w: function (e, t, n, r) {
          var o = Object(h.a)(e, r);
          return "wo" === t
            ? n.ordinalNumber(o, { unit: "week" })
            : s(o, t.length);
        },
        I: function (e, t, n) {
          var r = Object(u.a)(e);
          return "Io" === t
            ? n.ordinalNumber(r, { unit: "week" })
            : s(r, t.length);
        },
        d: function (e, t, n) {
          return "do" === t
            ? n.ordinalNumber(e.getUTCDate(), { unit: "date" })
            : l.d(e, t);
        },
        D: function (e, t, n) {
          var r = (function (e) {
            Object(c.a)(1, arguments);
            var t = Object(i.default)(e),
              n = t.getTime();
            t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
            var r = t.getTime(),
              o = n - r;
            return Math.floor(o / 864e5) + 1;
          })(e);
          return "Do" === t
            ? n.ordinalNumber(r, { unit: "dayOfYear" })
            : s(r, t.length);
        },
        E: function (e, t, n) {
          var r = e.getUTCDay();
          switch (t) {
            case "E":
            case "EE":
            case "EEE":
              return n.day(r, { width: "abbreviated", context: "formatting" });
            case "EEEEE":
              return n.day(r, { width: "narrow", context: "formatting" });
            case "EEEEEE":
              return n.day(r, { width: "short", context: "formatting" });
            case "EEEE":
            default:
              return n.day(r, { width: "wide", context: "formatting" });
          }
        },
        e: function (e, t, n, r) {
          var o = e.getUTCDay(),
            a = (o - r.weekStartsOn + 8) % 7 || 7;
          switch (t) {
            case "e":
              return String(a);
            case "ee":
              return s(a, 2);
            case "eo":
              return n.ordinalNumber(a, { unit: "day" });
            case "eee":
              return n.day(o, { width: "abbreviated", context: "formatting" });
            case "eeeee":
              return n.day(o, { width: "narrow", context: "formatting" });
            case "eeeeee":
              return n.day(o, { width: "short", context: "formatting" });
            case "eeee":
            default:
              return n.day(o, { width: "wide", context: "formatting" });
          }
        },
        c: function (e, t, n, r) {
          var o = e.getUTCDay(),
            a = (o - r.weekStartsOn + 8) % 7 || 7;
          switch (t) {
            case "c":
              return String(a);
            case "cc":
              return s(a, t.length);
            case "co":
              return n.ordinalNumber(a, { unit: "day" });
            case "ccc":
              return n.day(o, { width: "abbreviated", context: "standalone" });
            case "ccccc":
              return n.day(o, { width: "narrow", context: "standalone" });
            case "cccccc":
              return n.day(o, { width: "short", context: "standalone" });
            case "cccc":
            default:
              return n.day(o, { width: "wide", context: "standalone" });
          }
        },
        i: function (e, t, n) {
          var r = e.getUTCDay(),
            o = 0 === r ? 7 : r;
          switch (t) {
            case "i":
              return String(o);
            case "ii":
              return s(o, t.length);
            case "io":
              return n.ordinalNumber(o, { unit: "day" });
            case "iii":
              return n.day(r, { width: "abbreviated", context: "formatting" });
            case "iiiii":
              return n.day(r, { width: "narrow", context: "formatting" });
            case "iiiiii":
              return n.day(r, { width: "short", context: "formatting" });
            case "iiii":
            default:
              return n.day(r, { width: "wide", context: "formatting" });
          }
        },
        a: function (e, t, n) {
          var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
          switch (t) {
            case "a":
            case "aa":
            case "aaa":
              return n.dayPeriod(r, {
                width: "abbreviated",
                context: "formatting",
              });
            case "aaaaa":
              return n.dayPeriod(r, { width: "narrow", context: "formatting" });
            case "aaaa":
            default:
              return n.dayPeriod(r, { width: "wide", context: "formatting" });
          }
        },
        b: function (e, t, n) {
          var r,
            o = e.getUTCHours();
          switch (
            ((r = 12 === o ? m : 0 === o ? f : o / 12 >= 1 ? "pm" : "am"), t)
          ) {
            case "b":
            case "bb":
            case "bbb":
              return n.dayPeriod(r, {
                width: "abbreviated",
                context: "formatting",
              });
            case "bbbbb":
              return n.dayPeriod(r, { width: "narrow", context: "formatting" });
            case "bbbb":
            default:
              return n.dayPeriod(r, { width: "wide", context: "formatting" });
          }
        },
        B: function (e, t, n) {
          var r,
            o = e.getUTCHours();
          switch (((r = o >= 17 ? v : o >= 12 ? _ : o >= 4 ? g : b), t)) {
            case "B":
            case "BB":
            case "BBB":
              return n.dayPeriod(r, {
                width: "abbreviated",
                context: "formatting",
              });
            case "BBBBB":
              return n.dayPeriod(r, { width: "narrow", context: "formatting" });
            case "BBBB":
            default:
              return n.dayPeriod(r, { width: "wide", context: "formatting" });
          }
        },
        h: function (e, t, n) {
          if ("ho" === t) {
            var r = e.getUTCHours() % 12;
            return 0 === r && (r = 12), n.ordinalNumber(r, { unit: "hour" });
          }
          return l.h(e, t);
        },
        H: function (e, t, n) {
          return "Ho" === t
            ? n.ordinalNumber(e.getUTCHours(), { unit: "hour" })
            : l.H(e, t);
        },
        K: function (e, t, n) {
          var r = e.getUTCHours() % 12;
          return "Ko" === t
            ? n.ordinalNumber(r, { unit: "hour" })
            : s(r, t.length);
        },
        k: function (e, t, n) {
          var r = e.getUTCHours();
          return (
            0 === r && (r = 24),
            "ko" === t ? n.ordinalNumber(r, { unit: "hour" }) : s(r, t.length)
          );
        },
        m: function (e, t, n) {
          return "mo" === t
            ? n.ordinalNumber(e.getUTCMinutes(), { unit: "minute" })
            : l.m(e, t);
        },
        s: function (e, t, n) {
          return "so" === t
            ? n.ordinalNumber(e.getUTCSeconds(), { unit: "second" })
            : l.s(e, t);
        },
        S: function (e, t) {
          return l.S(e, t);
        },
        X: function (e, t, n, r) {
          var o = (r._originalDate || e).getTimezoneOffset();
          if (0 === o) return "Z";
          switch (t) {
            case "X":
              return w(o);
            case "XXXX":
            case "XX":
              return k(o);
            case "XXXXX":
            case "XXX":
            default:
              return k(o, ":");
          }
        },
        x: function (e, t, n, r) {
          var o = (r._originalDate || e).getTimezoneOffset();
          switch (t) {
            case "x":
              return w(o);
            case "xxxx":
            case "xx":
              return k(o);
            case "xxxxx":
            case "xxx":
            default:
              return k(o, ":");
          }
        },
        O: function (e, t, n, r) {
          var o = (r._originalDate || e).getTimezoneOffset();
          switch (t) {
            case "O":
            case "OO":
            case "OOO":
              return "GMT" + y(o, ":");
            case "OOOO":
            default:
              return "GMT" + k(o, ":");
          }
        },
        z: function (e, t, n, r) {
          var o = (r._originalDate || e).getTimezoneOffset();
          switch (t) {
            case "z":
            case "zz":
            case "zzz":
              return "GMT" + y(o, ":");
            case "zzzz":
            default:
              return "GMT" + k(o, ":");
          }
        },
        t: function (e, t, n, r) {
          var o = r._originalDate || e;
          return s(Math.floor(o.getTime() / 1e3), t.length);
        },
        T: function (e, t, n, r) {
          return s((r._originalDate || e).getTime(), t.length);
        },
      },
      M = n(52),
      E = n(20),
      T = n(22),
      S = n(7),
      D = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
      L = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
      C = /^'([^]*?)'?$/,
      P = /''/g,
      O = /[a-zA-Z]/;
    function N(e, t, n) {
      Object(c.a)(2, arguments);
      var s = String(t),
        l = n || {},
        u = l.locale || o.a,
        d = u.options && u.options.firstWeekContainsDate,
        h = null == d ? 1 : Object(S.a)(d),
        p =
          null == l.firstWeekContainsDate
            ? h
            : Object(S.a)(l.firstWeekContainsDate);
      if (!(p >= 1 && p <= 7))
        throw new RangeError(
          "firstWeekContainsDate must be between 1 and 7 inclusively"
        );
      var f = u.options && u.options.weekStartsOn,
        m = null == f ? 0 : Object(S.a)(f),
        g = null == l.weekStartsOn ? m : Object(S.a)(l.weekStartsOn);
      if (!(g >= 0 && g <= 6))
        throw new RangeError(
          "weekStartsOn must be between 0 and 6 inclusively"
        );
      if (!u.localize)
        throw new RangeError("locale must contain localize property");
      if (!u.formatLong)
        throw new RangeError("locale must contain formatLong property");
      var _ = Object(i.default)(e);
      if (!Object(r.default)(_)) throw new RangeError("Invalid time value");
      var v = Object(E.a)(_),
        b = Object(a.a)(_, v),
        y = {
          firstWeekContainsDate: p,
          weekStartsOn: g,
          locale: u,
          _originalDate: _,
        },
        w = s
          .match(L)
          .map(function (e) {
            var t = e[0];
            return "p" === t || "P" === t ? (0, M.a[t])(e, u.formatLong, y) : e;
          })
          .join("")
          .match(D)
          .map(function (n) {
            if ("''" === n) return "'";
            var r = n[0];
            if ("'" === r) return A(n);
            var o = x[r];
            if (o)
              return (
                !l.useAdditionalWeekYearTokens &&
                  Object(T.b)(n) &&
                  Object(T.c)(n, t, e),
                !l.useAdditionalDayOfYearTokens &&
                  Object(T.a)(n) &&
                  Object(T.c)(n, t, e),
                o(b, n, u.localize, y)
              );
            if (r.match(O))
              throw new RangeError(
                "Format string contains an unescaped latin alphabet character `" +
                  r +
                  "`"
              );
            return n;
          })
          .join("");
      return w;
    }
    function A(e) {
      return e.match(C)[1].replace(P, "'");
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "Popper", function () {
        return L;
      }),
      n.d(t, "placements", function () {
        return D;
      }),
      n.d(t, "Manager", function () {
        return w;
      }),
      n.d(t, "Reference", function () {
        return N;
      });
    var r = n(253),
      o = n.n(r),
      a = n(29),
      i = n.n(a),
      s = n(10),
      l = n.n(s),
      c = n(32),
      u = n.n(c),
      d = n(1),
      h = n.n(d),
      p = n(254),
      f = n.n(p),
      m = n(0),
      g = n(81),
      _ = n(82),
      v = n.n(_),
      b = v()(),
      y = v()(),
      w = (function (e) {
        function t() {
          for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++)
            r[o] = arguments[o];
          return (
            (t = e.call.apply(e, [this].concat(r)) || this),
            h()(l()(t), "referenceNode", void 0),
            h()(l()(t), "setReferenceNode", function (e) {
              e &&
                t.referenceNode !== e &&
                ((t.referenceNode = e), t.forceUpdate());
            }),
            t
          );
        }
        u()(t, e);
        var n = t.prototype;
        return (
          (n.componentWillUnmount = function () {
            this.referenceNode = null;
          }),
          (n.render = function () {
            return m.createElement(
              b.Provider,
              { value: this.referenceNode },
              m.createElement(
                y.Provider,
                { value: this.setReferenceNode },
                this.props.children
              )
            );
          }),
          t
        );
      })(m.Component),
      k = function (e) {
        return Array.isArray(e) ? e[0] : e;
      },
      x = function (e) {
        if ("function" == typeof e) {
          for (
            var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
            r < t;
            r++
          )
            n[r - 1] = arguments[r];
          return e.apply(void 0, n);
        }
      },
      M = function (e, t) {
        if ("function" == typeof e) return x(e, t);
        null != e && (e.current = t);
      },
      E = {
        position: "absolute",
        top: 0,
        left: 0,
        opacity: 0,
        pointerEvents: "none",
      },
      T = {},
      S = (function (e) {
        function t() {
          for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++)
            r[o] = arguments[o];
          return (
            (t = e.call.apply(e, [this].concat(r)) || this),
            h()(l()(t), "state", { data: void 0, placement: void 0 }),
            h()(l()(t), "popperInstance", void 0),
            h()(l()(t), "popperNode", null),
            h()(l()(t), "arrowNode", null),
            h()(l()(t), "setPopperNode", function (e) {
              e &&
                t.popperNode !== e &&
                (M(t.props.innerRef, e),
                (t.popperNode = e),
                t.updatePopperInstance());
            }),
            h()(l()(t), "setArrowNode", function (e) {
              t.arrowNode = e;
            }),
            h()(l()(t), "updateStateModifier", {
              enabled: !0,
              order: 900,
              fn: function (e) {
                var n = e.placement;
                return t.setState({ data: e, placement: n }), e;
              },
            }),
            h()(l()(t), "getOptions", function () {
              return {
                placement: t.props.placement,
                eventsEnabled: t.props.eventsEnabled,
                positionFixed: t.props.positionFixed,
                modifiers: i()({}, t.props.modifiers, {
                  arrow: i()({}, t.props.modifiers && t.props.modifiers.arrow, {
                    enabled: !!t.arrowNode,
                    element: t.arrowNode,
                  }),
                  applyStyle: { enabled: !1 },
                  updateStateModifier: t.updateStateModifier,
                }),
              };
            }),
            h()(l()(t), "getPopperStyle", function () {
              return t.popperNode && t.state.data
                ? i()(
                    { position: t.state.data.offsets.popper.position },
                    t.state.data.styles
                  )
                : E;
            }),
            h()(l()(t), "getPopperPlacement", function () {
              return t.state.data ? t.state.placement : void 0;
            }),
            h()(l()(t), "getArrowStyle", function () {
              return t.arrowNode && t.state.data ? t.state.data.arrowStyles : T;
            }),
            h()(l()(t), "getOutOfBoundariesState", function () {
              return t.state.data ? t.state.data.hide : void 0;
            }),
            h()(l()(t), "destroyPopperInstance", function () {
              t.popperInstance &&
                (t.popperInstance.destroy(), (t.popperInstance = null));
            }),
            h()(l()(t), "updatePopperInstance", function () {
              t.destroyPopperInstance();
              var e = l()(t).popperNode,
                n = t.props.referenceElement;
              n && e && (t.popperInstance = new g.a(n, e, t.getOptions()));
            }),
            h()(l()(t), "scheduleUpdate", function () {
              t.popperInstance && t.popperInstance.scheduleUpdate();
            }),
            t
          );
        }
        u()(t, e);
        var n = t.prototype;
        return (
          (n.componentDidUpdate = function (e, t) {
            this.props.placement === e.placement &&
            this.props.referenceElement === e.referenceElement &&
            this.props.positionFixed === e.positionFixed &&
            f()(this.props.modifiers, e.modifiers, { strict: !0 })
              ? this.props.eventsEnabled !== e.eventsEnabled &&
                this.popperInstance &&
                (this.props.eventsEnabled
                  ? this.popperInstance.enableEventListeners()
                  : this.popperInstance.disableEventListeners())
              : this.updatePopperInstance(),
              t.placement !== this.state.placement && this.scheduleUpdate();
          }),
          (n.componentWillUnmount = function () {
            M(this.props.innerRef, null), this.destroyPopperInstance();
          }),
          (n.render = function () {
            return k(this.props.children)({
              ref: this.setPopperNode,
              style: this.getPopperStyle(),
              placement: this.getPopperPlacement(),
              outOfBoundaries: this.getOutOfBoundariesState(),
              scheduleUpdate: this.scheduleUpdate,
              arrowProps: {
                ref: this.setArrowNode,
                style: this.getArrowStyle(),
              },
            });
          }),
          t
        );
      })(m.Component);
    h()(S, "defaultProps", {
      placement: "bottom",
      eventsEnabled: !0,
      referenceElement: void 0,
      positionFixed: !1,
    });
    var D = g.a.placements;
    function L(e) {
      var t = e.referenceElement,
        n = o()(e, ["referenceElement"]);
      return m.createElement(b.Consumer, null, function (e) {
        return m.createElement(
          S,
          i()({ referenceElement: void 0 !== t ? t : e }, n)
        );
      });
    }
    var C = n(79),
      P = n.n(C),
      O = (function (e) {
        function t() {
          for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++)
            r[o] = arguments[o];
          return (
            (t = e.call.apply(e, [this].concat(r)) || this),
            h()(l()(t), "refHandler", function (e) {
              M(t.props.innerRef, e), x(t.props.setReferenceNode, e);
            }),
            t
          );
        }
        u()(t, e);
        var n = t.prototype;
        return (
          (n.componentWillUnmount = function () {
            M(this.props.innerRef, null);
          }),
          (n.render = function () {
            return (
              P()(
                Boolean(this.props.setReferenceNode),
                "`Reference` should not be used outside of a `Manager` component."
              ),
              k(this.props.children)({ ref: this.refHandler })
            );
          }),
          t
        );
      })(m.Component);
    function N(e) {
      return m.createElement(y.Consumer, null, function (t) {
        return m.createElement(O, i()({ setReferenceNode: t }, e));
      });
    }
  },
  function (e, t, n) {
    "use strict";
    n.r(t),
      n.d(t, "default", function () {
        return c;
      });
    var r = n(17),
      o = n(5),
      a = n(7),
      i = n(2);
    function s(e, t) {
      Object(i.a)(1, arguments);
      var n = Object(o.default)(e),
        s = n.getFullYear(),
        l = t || {},
        c = l.locale,
        u = c && c.options && c.options.firstWeekContainsDate,
        d = null == u ? 1 : Object(a.a)(u),
        h =
          null == l.firstWeekContainsDate
            ? d
            : Object(a.a)(l.firstWeekContainsDate);
      if (!(h >= 1 && h <= 7))
        throw new RangeError(
          "firstWeekContainsDate must be between 1 and 7 inclusively"
        );
      var p = new Date(0);
      p.setFullYear(s + 1, 0, h), p.setHours(0, 0, 0, 0);
      var f = Object(r.default)(p, t),
        m = new Date(0);
      m.setFullYear(s, 0, h), m.setHours(0, 0, 0, 0);
      var g = Object(r.default)(m, t);
      return n.getTime() >= f.getTime()
        ? s + 1
        : n.getTime() >= g.getTime()
        ? s
        : s - 1;
    }
    function l(e, t) {
      Object(i.a)(1, arguments);
      var n = t || {},
        o = n.locale,
        l = o && o.options && o.options.firstWeekContainsDate,
        c = null == l ? 1 : Object(a.a)(l),
        u =
          null == n.firstWeekContainsDate
            ? c
            : Object(a.a)(n.firstWeekContainsDate),
        d = s(e, t),
        h = new Date(0);
      h.setFullYear(d, 0, u), h.setHours(0, 0, 0, 0);
      var p = Object(r.default)(h, t);
      return p;
    }
    function c(e, t) {
      Object(i.a)(1, arguments);
      var n = Object(o.default)(e),
        a = Object(r.default)(n, t).getTime() - l(n, t).getTime();
      return Math.round(a / 6048e5) + 1;
    }
  },
]);
