import { commonjsGlobal as ve, getDefaultExportFromCjs as pe } from "./index.es83.js";
import { __module as Z } from "./index.es113.js";
import { __require as ke } from "./index.es114.js";
(function(U, Fe) {
  (function(h, Y) {
    U.exports = Y(ke());
  })(ve, function(h) {
    if (h == null)
      throw new Error("Cannot find moment");
    var Y = 17214255e-1, L = 19484395e-1, w = /(\[[^\[]*\])|(\\)?i(Mo|MM?M?M?|Do|DDDo|DD?D?D?|w[o|w]?|YYYYY|YYYY|YY|gg(ggg?)?)|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g, I = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g, j = /\d\d?/, P = /\d{1,3}/, b = /\d{3}/, x = /\d{1,4}/, A = /[+\-]?\d{1,6}/, C = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, V = /Z|[\+\-]\d\d:?\d\d/i, J = /T/i, $ = /[\+\-]?\d+(\.\d{1,3})?/, Q = {
      hm: "imonth",
      hy: "iyear"
    }, F = {}, R = "DDD w M D".split(" "), H = "M D w".split(" "), u = {
      iM: function() {
        return this.iMonth() + 1;
      },
      iMMM: function(e) {
        return this.localeData().iMonthsShort(this, e);
      },
      iMMMM: function(e) {
        return this.localeData().iMonths(this, e);
      },
      iD: function() {
        return this.iDate();
      },
      iDDD: function() {
        return this.iDayOfYear();
      },
      iw: function() {
        return this.iWeek();
      },
      iYY: function() {
        return M(this.iYear() % 100, 2);
      },
      iYYYY: function() {
        return M(this.iYear(), 4);
      },
      iYYYYY: function() {
        return M(this.iYear(), 5);
      },
      igg: function() {
        return M(this.iWeekYear() % 100, 2);
      },
      igggg: function() {
        return this.iWeekYear();
      },
      iggggg: function() {
        return M(this.iWeekYear(), 5);
      }
    }, d;
    function W(e, t) {
      return function(a) {
        return M(e.call(this, a), t);
      };
    }
    function X(e, t) {
      return function(a) {
        return this.localeData().ordinal(e.call(this, a), t);
      };
    }
    for (; R.length; )
      d = R.pop(), u["i" + d + "o"] = X(u["i" + d], d);
    for (; H.length; )
      d = H.pop(), u["i" + d + d] = W(u["i" + d], 2);
    u.iDDDD = W(u.iDDD, 3);
    function T(e, t) {
      var a;
      for (a in t)
        t.hasOwnProperty(a) && (e[a] = t[a]);
      return e;
    }
    function M(e, t) {
      for (var a = e + ""; a.length < t; )
        a = "0" + a;
      return a;
    }
    function B(e) {
      return Object.prototype.toString.call(e) === "[object Array]";
    }
    function y(e) {
      return e && (Q[e] || e.toLowerCase().replace(/(.)s$/, "$1"));
    }
    function S(e, t, a, r) {
      var i = e._isUTC ? "UTC" : "";
      e._d["set" + i + "FullYear"](t), e._d["set" + i + "Month"](a), e._d["set" + i + "Date"](r);
    }
    function G(e) {
      function t() {
      }
      return t.prototype = e, new t();
    }
    function K(e) {
      return Object.getPrototypeOf ? Object.getPrototypeOf(e) : "".__proto__ ? e.__proto__ : e.constructor.prototype;
    }
    T(K(h.localeData()), {
      _iMonths: [
        "Muharram",
        "Safar",
        "Rabi' al-Awwal",
        "Rabi' al-Thani",
        "Jumada al-Ula",
        "Jumada al-Alkhirah",
        "Rajab",
        "Sha’ban",
        "Ramadhan",
        "Shawwal",
        "Thul-Qi’dah",
        "Thul-Hijjah"
      ],
      iMonths: function(e) {
        return this._iMonths[e.iMonth()];
      },
      _iMonthsShort: [
        "Muh",
        "Saf",
        "Rab-I",
        "Rab-II",
        "Jum-I",
        "Jum-II",
        "Raj",
        "Sha",
        "Ram",
        "Shw",
        "Dhu-Q",
        "Dhu-H"
      ],
      iMonthsShort: function(e) {
        return this._iMonthsShort[e.iMonth()];
      },
      iMonthsParse: function(e) {
        var t, a, r;
        for (this._iMonthsParse || (this._iMonthsParse = []), t = 0; t < 12; t += 1)
          if (this._iMonthsParse[t] || (a = o([2e3, (2 + t) % 12, 25]), r = "^" + this.iMonths(a, "") + "$|^" + this.iMonthsShort(a, "") + "$", this._iMonthsParse[t] = new RegExp(r.replace(".", ""), "i")), this._iMonthsParse[t].test(e))
            return t;
      },
      _longDateFormat: {
        LT: "HH:mm",
        L: "iYYYY/iMM/iDD",
        LL: "iD iMMMM iYYYY",
        LLL: "iD iMMMM iYYYY LT",
        LLLL: "dddd، iD iMMMM iYYYY LT"
      },
      longDateFormat: function(e) {
        var t = this._longDateFormat[e];
        return !t && this._longDateFormat[e.toUpperCase()] && (t = this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function(a) {
          return a.slice(1);
        }), this._longDateFormat[e] = t), t;
      }
    });
    var E = {
      iMonths: "محرم_صفر_ربيع الأول_ربيع الثاني_جمادى الأولى_جمادى الآخرة_رجب_شعبان_رمضان_شوال_ذو القعدة_ذو الحجة".split("_"),
      iMonthsShort: "محرم_صفر_ربيع ١_ربيع ٢_جمادى ١_جمادى ٢_رجب_شعبان_رمضان_شوال_ذو القعدة_ذو الحجة".split("_")
    };
    if (typeof h.updateLocale == "function")
      h.updateLocale("ar-sa", E);
    else {
      var ee = h.locale();
      h.defineLocale("ar-sa", E), h.locale(ee);
    }
    function te(e) {
      var t = e.match(w), a = t.length, r;
      for (r = 0; r < a; r += 1)
        u[t[r]] && (t[r] = u[t[r]]);
      return function(i) {
        var n = "";
        for (r = 0; r < a; r += 1)
          n += t[r] instanceof Function ? "[" + t[r].call(i, e) + "]" : t[r];
        return n;
      };
    }
    function N(e, t) {
      switch (e) {
        case "iDDDD":
          return b;
        case "iYYYY":
          return x;
        case "iYYYYY":
          return A;
        case "iDDD":
          return P;
        case "iMMM":
        case "iMMMM":
          return C;
        case "iMM":
        case "iDD":
        case "iYY":
        case "iM":
        case "iD":
          return j;
        case "DDDD":
          return b;
        case "YYYY":
          return x;
        case "YYYYY":
          return A;
        case "S":
        case "SS":
        case "SSS":
        case "DDD":
          return P;
        case "MMM":
        case "MMMM":
        case "dd":
        case "ddd":
        case "dddd":
          return C;
        case "a":
        case "A":
          return h.localeData(t._l)._meridiemParse;
        case "X":
          return $;
        case "Z":
        case "ZZ":
          return V;
        case "T":
          return J;
        case "MM":
        case "DD":
        case "YY":
        case "HH":
        case "hh":
        case "mm":
        case "ss":
        case "M":
        case "D":
        case "d":
        case "H":
        case "h":
        case "m":
        case "s":
          return j;
        default:
          return new RegExp(e.replace("\\", ""));
      }
    }
    function ae(e, t, a) {
      var r, i = a._a;
      switch (e) {
        case "iM":
        case "iMM":
          i[1] = t == null ? 0 : ~~t - 1;
          break;
        case "iMMM":
        case "iMMMM":
          r = h.localeData(a._l).iMonthsParse(t), r != null ? i[1] = r : a._isValid = !1;
          break;
        case "iD":
        case "iDD":
        case "iDDD":
        case "iDDDD":
          t != null && (i[2] = ~~t);
          break;
        case "iYY":
          i[0] = ~~t + (~~t > 47 ? 1300 : 1400);
          break;
        case "iYYYY":
        case "iYYYYY":
          i[0] = ~~t;
      }
      t == null && (a._isValid = !1);
    }
    function re(e) {
      var t, a, r = e._a[0], i = e._a[1], n = e._a[2];
      return r == null && i == null && n == null ? [0, 0, 1] : (r = r || 0, i = i || 0, n = n || 1, (n < 1 || n > o.iDaysInMonth(r, i)) && (e._isValid = !1), t = _(r, i, n), a = D(t.year, t.month, t.day), e._hDiff = 0, ~~a.year !== r && (e._hDiff += 1), ~~a.month !== i && (e._hDiff += 1), ~~a.date !== n && (e._hDiff += 1), [t.year, t.month, t.day]);
    }
    function ie(e) {
      var t = e._f.match(w), a = e._i, r = t.length, i, n, s;
      for (e._a = [], i = 0; i < r; i += 1)
        n = t[i], s = (N(n, e).exec(a) || [])[0], s && (a = a.slice(a.indexOf(s) + s.length)), u[n] && ae(n, s, e);
      return a && (e._il = a), re(e);
    }
    function ne(e, t) {
      var a = e._f.length, r, i, n, s, l, f;
      if (a === 0)
        return g(/* @__PURE__ */ new Date(NaN));
      for (r = 0; r < a; r += 1)
        i = e._f[r], l = 0, n = g(e._i, i, e._l, t), n.isValid() && (l += n._hDiff, n._il && (l += n._il.length), (f == null || l < f) && (f = l, s = n));
      return s;
    }
    function oe(e) {
      var t = e._i, a = "", r = "", i = e._f.match(w), n = i.length, s, l, f;
      for (s = 0; s < n; s += 1)
        l = i[s], f = (N(l, e).exec(t) || [])[0], f && (t = t.slice(t.indexOf(f) + f.length)), u[l] instanceof Function || (r += l, f && (a += f));
      e._i = a, e._f = r;
    }
    function q(e, t, a) {
      var r = a - t, i = a - e.day(), n;
      return i > r && (i -= 7), i < r - 7 && (i += 7), n = o(e).add(i, "d"), {
        week: Math.ceil(n.iDayOfYear() / 7),
        year: n.iYear()
      };
    }
    function g(e, t, a, r) {
      var i = {
        _i: e,
        _f: t,
        _l: a
      }, n, s, l;
      if (t) {
        if (B(t))
          return ne(i, r);
        n = ie(i), oe(i), t = "YYYY-MM-DD-" + i._f, e = M(n[0], 4) + "-" + M(n[1] + 1, 2) + "-" + M(n[2], 2) + "-" + i._i;
      }
      return r ? s = h.utc(e, t, a) : s = h(e, t, a), i._isValid === !1 && (s._isValid = !1), s._hDiff = i._hDiff || 0, l = G(o.fn), T(l, s), l;
    }
    function o(e, t, a) {
      return g(e, t, a, !1);
    }
    return T(o, h), o.fn = G(h.fn), o.utc = function(e, t, a) {
      return g(e, t, a, !0);
    }, o.fn.format = function(e) {
      var t, a, r = this;
      if (e) {
        for (t = 5, a = function(i) {
          return r.localeData().longDateFormat(i) || i;
        }; t > 0 && I.test(e); )
          t -= 1, e = e.replace(I, a);
        F[e] || (F[e] = te(e)), e = F[e](this);
      }
      return h.fn.format.call(this, e);
    }, o.fn.iYear = function(e) {
      var t, a, r;
      return typeof e == "number" ? (a = D(this.year(), this.month(), this.date()), t = Math.min(a.date, o.iDaysInMonth(e, a.month)), r = _(e, a.month, t), S(this, r.year, r.month, r.day), h.updateOffset(this), this) : D(this.year(), this.month(), this.date()).year;
    }, o.fn.iMonth = function(e) {
      var t, a, r;
      if (e != null) {
        if (typeof e == "string")
          if (e = this.localeData().iMonthsParse(e), e >= 0)
            e -= 1;
          else
            return this;
        return a = D(this.year(), this.month(), this.date()), t = Math.min(a.date, o.iDaysInMonth(a.year, e)), this.iYear(a.year + ue(e, 12)), e = v(e, 12), e < 0 && (e += 12, this.iYear(this.iYear() - 1)), r = _(this.iYear(), e, t), S(this, r.year, r.month, r.day), h.updateOffset(this), this;
      } else
        return D(this.year(), this.month(), this.date()).month;
    }, o.fn.iDate = function(e) {
      var t, a;
      return typeof e == "number" ? (t = D(this.year(), this.month(), this.date()), a = _(t.year, t.month, e), S(this, a.year, a.month, a.day), h.updateOffset(this), this) : D(this.year(), this.month(), this.date()).date;
    }, o.fn.iDayOfYear = function(e) {
      var t = Math.round((o(this).startOf("day") - o(this).startOf("iYear")) / 864e5) + 1;
      return e == null ? t : this.add(e - t, "d");
    }, o.fn.iDaysInMonth = function() {
      return parseInt(o(this).endOf("iMonth").format("iDD"));
    }, o.fn.iWeek = function(e) {
      var t = q(this, this.localeData()._week.dow, this.localeData()._week.doy).week;
      return e == null ? t : this.add((e - t) * 7, "d");
    }, o.fn.iWeekYear = function(e) {
      var t = q(this, this.localeData()._week.dow, this.localeData()._week.doy).year;
      return e == null ? t : this.add(e - t, "y");
    }, o.fn.add = function(e, t) {
      var a;
      return t !== null && !isNaN(+t) && (a = e, e = t, t = a), t = y(t), t === "iyear" ? this.iYear(this.iYear() + e) : t === "imonth" ? this.iMonth(this.iMonth() + e) : h.fn.add.call(this, e, t), this;
    }, o.fn.subtract = function(e, t) {
      var a;
      return t !== null && !isNaN(+t) && (a = e, e = t, t = a), t = y(t), t === "iyear" ? this.iYear(this.iYear() - e) : t === "imonth" ? this.iMonth(this.iMonth() - e) : h.fn.subtract.call(this, e, t), this;
    }, o.fn.startOf = function(e) {
      return e = y(e), e === "iyear" || e === "imonth" ? (e === "iyear" && this.iMonth(0), this.iDate(1), this.hours(0), this.minutes(0), this.seconds(0), this.milliseconds(0), this) : h.fn.startOf.call(this, e);
    }, o.fn.endOf = function(e) {
      return e = y(e), e === void 0 || e === "milisecond" ? this : this.startOf(e).add(1, e === "isoweek" ? "week" : e).subtract(1, "milliseconds");
    }, o.fn.clone = function() {
      return o(this);
    }, o.fn.iYears = o.fn.iYear, o.fn.iMonths = o.fn.iMonth, o.fn.iDates = o.fn.iDate, o.fn.iWeeks = o.fn.iWeek, o.iDaysInMonth = function(e, t) {
      return fe(e, t);
    }, o.iConvert = {
      toHijri: D,
      toGregorian: _
    }, o.loadLocale = function(e) {
      var t = h.locale();
      requirejs(["./locale/" + e], function(a) {
        a.locale(t);
      });
    }, o;
    function D(e, t, a) {
      var r = ce(new Date(e, t, a));
      return {
        year: r.year,
        month: r.month,
        date: r.date
      };
    }
    function _(e, t, a) {
      var r = a + Math.ceil(29.5 * t) + (e - 1) * 354 + Math.floor((3 + 11 * e) / 30) + L - 1, i = Math.floor(r - 0.5) + 0.5, n = i - Y, s = Math.floor(n / 146097), l = v(n, 146097), f = Math.floor(l / 36524), p = v(l, 36524), Me = Math.floor(p / 1461), de = v(p, 1461), z = Math.floor(de / 365), c = s * 400 + f * 100 + Me * 4 + z;
      f === 4 || z === 4 || c++;
      var De = Y + 365 * (c - 1) + Math.floor((c - 1) / 4) - Math.floor((c - 1) / 100) + Math.floor((c - 1) / 400), Ye = i - De, _e = Y - 1 + 365 * (c - 1) + Math.floor((c - 1) / 4) - Math.floor((c - 1) / 100) + Math.floor((c - 1) / 400) + Math.floor(739 / 12 + (m(new Date(c, 3, 1)) ? -1 : -2) + 1), ye = i < _e ? 0 : m(new Date(c, 3, 1)) ? 1 : 2, k = Math.floor(((Ye + ye) * 12 + 373) / 367), ge = Y - 1 + 365 * (c - 1) + Math.floor((c - 1) / 4) - Math.floor((c - 1) / 100) + Math.floor((c - 1) / 400) + Math.floor((367 * k - 362) / 12 + (k <= 2 ? 0 : m(new Date(c, k - 1, 1)) ? -1 : -2) + 1), me = i - ge + 1, O = new Date(c, k - 1, me);
      return {
        year: O.getFullYear(),
        month: O.getMonth(),
        day: O.getDate()
      };
    }
    function m(e) {
      var t = e.getFullYear();
      return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
    }
    function se(e) {
      return (14 + 11 * e) % 30 < 11;
    }
    function he(e) {
      return (e - 1) * 354 + Math.floor((3 + 11 * e) / 30);
    }
    function le(e, t) {
      return Math.ceil(29.5 * t) + (e - 1) * 354 + Math.floor((3 + 11 * e) / 30);
    }
    function fe(e, t) {
      e = e + Math.floor(t / 13), t = (t - 1) % 12 + 1;
      var a = 29 + t % 2;
      return t === 12 && se(e) && a++, a;
    }
    function ce(e) {
      var t = new Date(e), a = t.getFullYear(), r = t.getMonth(), i = t.getDate(), n = Y - 1 + 365 * (a - 1) + Math.floor((a - 1) / 4) + -Math.floor((a - 1) / 100) + Math.floor((a - 1) / 400) + Math.floor(
        (367 * (r + 1) - 362) / 12 + (r + 1 <= 2 ? 0 : m(t) ? -1 : -2) + i
      );
      n = Math.floor(n) + 0.5;
      var s = n - L, l = Math.floor((30 * s + 10646) / 10631), f = Math.ceil((s - 29 - he(l)) / 29.5);
      f = Math.min(f, 11);
      var p = Math.ceil(s - le(l, f)) + 1;
      return {
        date: p,
        month: f,
        year: l
      };
    }
    function ue(e, t) {
      return ~~(e / t);
    }
    function v(e, t) {
      return e - ~~(e / t) * t;
    }
  });
})(Z);
var we = Z.exports;
const Le = /* @__PURE__ */ pe(we);
export {
  Le as default
};
//# sourceMappingURL=index.es78.js.map
