import { o as te, t as ne } from "./rolldown-runtime.js";
var re = /* @__PURE__ */ ne(((f, h) => {
  (function(p, O) {
    typeof f == "object" && typeof h < "u" ? h.exports = O() : typeof define == "function" && define.amd ? define(O) : (p = typeof globalThis < "u" ? globalThis : p || self).dayjs = O();
  })(f, (function() {
    "use strict";
    var p = 1e3, O = 6e4, V = 36e5, I = "millisecond", k = "second", A = "minute", Y = "hour", D = "day", R = "week", b = "month", Z = "quarter", S = "year", H = "date", z = "Invalid Date", Q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, X = {
      name: "en",
      weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
      months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
      ordinal: function(i) {
        var n = [
          "th",
          "st",
          "nd",
          "rd"
        ], e = i % 100;
        return "[" + i + (n[(e - 20) % 10] || n[e] || n[0]) + "]";
      }
    }, U = function(i, n, e) {
      var r = String(i);
      return !r || r.length >= n ? i : "" + Array(n + 1 - r.length).join(e) + i;
    }, ee = {
      s: U,
      z: function(i) {
        var n = -i.utcOffset(), e = Math.abs(n), r = Math.floor(e / 60), t = e % 60;
        return (n <= 0 ? "+" : "-") + U(r, 2, "0") + ":" + U(t, 2, "0");
      },
      m: function i(n, e) {
        if (n.date() < e.date()) return -i(e, n);
        var r = 12 * (e.year() - n.year()) + (e.month() - n.month()), t = n.clone().add(r, b), s = e - t < 0, o = n.clone().add(r + (s ? -1 : 1), b);
        return +(-(r + (e - t) / (s ? t - o : o - t)) || 0);
      },
      a: function(i) {
        return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
      },
      p: function(i) {
        return {
          M: b,
          y: S,
          w: R,
          d: D,
          D: H,
          h: Y,
          m: A,
          s: k,
          ms: I,
          Q: Z
        }[i] || String(i || "").toLowerCase().replace(/s$/, "");
      },
      u: function(i) {
        return i === void 0;
      }
    }, W = "en", L = {};
    L[W] = X;
    var P = "$isDayjsObject", J = function(i) {
      return i instanceof N || !(!i || !i[P]);
    }, B = function i(n, e, r) {
      var t;
      if (!n) return W;
      if (typeof n == "string") {
        var s = n.toLowerCase();
        L[s] && (t = s), e && (L[s] = e, t = s);
        var o = n.split("-");
        if (!t && o.length > 1) return i(o[0]);
      } else {
        var u = n.name;
        L[u] = n, t = u;
      }
      return !r && t && (W = t), t || !r && W;
    }, l = function(i, n) {
      if (J(i)) return i.clone();
      var e = typeof n == "object" ? n : {};
      return e.date = i, e.args = arguments, new N(e);
    }, a = ee;
    a.l = B, a.i = J, a.w = function(i, n) {
      return l(i, {
        locale: n.$L,
        utc: n.$u,
        x: n.$x,
        $offset: n.$offset
      });
    };
    var N = (function() {
      function i(e) {
        this.$L = B(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[P] = !0;
      }
      var n = i.prototype;
      return n.parse = function(e) {
        this.$d = (function(r) {
          var t = r.date, s = r.utc;
          if (t === null) return /* @__PURE__ */ new Date(NaN);
          if (a.u(t)) return /* @__PURE__ */ new Date();
          if (t instanceof Date) return new Date(t);
          if (typeof t == "string" && !/Z$/i.test(t)) {
            var o = t.match(Q);
            if (o) {
              var u = o[2] - 1 || 0, c = (o[7] || "0").substring(0, 3);
              return s ? new Date(Date.UTC(o[1], u, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0, c)) : new Date(o[1], u, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0, c);
            }
          }
          return new Date(t);
        })(e), this.init();
      }, n.init = function() {
        var e = this.$d;
        this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
      }, n.$utils = function() {
        return a;
      }, n.isValid = function() {
        return this.$d.toString() !== z;
      }, n.isSame = function(e, r) {
        var t = l(e);
        return this.startOf(r) <= t && t <= this.endOf(r);
      }, n.isAfter = function(e, r) {
        return l(e) < this.startOf(r);
      }, n.isBefore = function(e, r) {
        return this.endOf(r) < l(e);
      }, n.$g = function(e, r, t) {
        return a.u(e) ? this[r] : this.set(t, e);
      }, n.unix = function() {
        return Math.floor(this.valueOf() / 1e3);
      }, n.valueOf = function() {
        return this.$d.getTime();
      }, n.startOf = function(e, r) {
        var t = this, s = !!a.u(r) || r, o = a.p(e), u = function(x, g) {
          var _ = a.w(t.$u ? Date.UTC(t.$y, g, x) : new Date(t.$y, g, x), t);
          return s ? _ : _.endOf(D);
        }, c = function(x, g) {
          return a.w(t.toDate()[x].apply(t.toDate("s"), (s ? [
            0,
            0,
            0,
            0
          ] : [
            23,
            59,
            59,
            999
          ]).slice(g)), t);
        }, d = this.$W, $ = this.$M, m = this.$D, C = "set" + (this.$u ? "UTC" : "");
        switch (o) {
          case S:
            return s ? u(1, 0) : u(31, 11);
          case b:
            return s ? u(1, $) : u(0, $ + 1);
          case R:
            var T = this.$locale().weekStart || 0, j = (d < T ? d + 7 : d) - T;
            return u(s ? m - j : m + (6 - j), $);
          case D:
          case H:
            return c(C + "Hours", 0);
          case Y:
            return c(C + "Minutes", 1);
          case A:
            return c(C + "Seconds", 2);
          case k:
            return c(C + "Milliseconds", 3);
          default:
            return this.clone();
        }
      }, n.endOf = function(e) {
        return this.startOf(e, !1);
      }, n.$set = function(e, r) {
        var t, s = a.p(e), o = "set" + (this.$u ? "UTC" : ""), u = (t = {}, t[D] = o + "Date", t[H] = o + "Date", t[b] = o + "Month", t[S] = o + "FullYear", t[Y] = o + "Hours", t[A] = o + "Minutes", t[k] = o + "Seconds", t[I] = o + "Milliseconds", t)[s], c = s === D ? this.$D + (r - this.$W) : r;
        if (s === b || s === S) {
          var d = this.clone().set(H, 1);
          d.$d[u](c), d.init(), this.$d = d.set(H, Math.min(this.$D, d.daysInMonth())).$d;
        } else u && this.$d[u](c);
        return this.init(), this;
      }, n.set = function(e, r) {
        return this.clone().$set(e, r);
      }, n.get = function(e) {
        return this[a.p(e)]();
      }, n.add = function(e, r) {
        var t, s = this;
        e = Number(e);
        var o = a.p(r), u = function($) {
          var m = l(s);
          return a.w(m.date(m.date() + Math.round($ * e)), s);
        };
        if (o === b) return this.set(b, this.$M + e);
        if (o === S) return this.set(S, this.$y + e);
        if (o === D) return u(1);
        if (o === R) return u(7);
        var c = (t = {}, t[A] = O, t[Y] = V, t[k] = p, t)[o] || 1, d = this.$d.getTime() + e * c;
        return a.w(d, this);
      }, n.subtract = function(e, r) {
        return this.add(-1 * e, r);
      }, n.format = function(e) {
        var r = this, t = this.$locale();
        if (!this.isValid()) return t.invalidDate || z;
        var s = e || "YYYY-MM-DDTHH:mm:ssZ", o = a.z(this), u = this.$H, c = this.$m, d = this.$M, $ = t.weekdays, m = t.months, C = t.meridiem, T = function(g, _, E, F) {
          return g && (g[_] || g(r, s)) || E[_].slice(0, F);
        }, j = function(g) {
          return a.s(u % 12 || 12, g, "0");
        }, x = C || function(g, _, E) {
          var F = g < 12 ? "AM" : "PM";
          return E ? F.toLowerCase() : F;
        };
        return s.replace(K, (function(g, _) {
          return _ || (function(E) {
            switch (E) {
              case "YY":
                return String(r.$y).slice(-2);
              case "YYYY":
                return a.s(r.$y, 4, "0");
              case "M":
                return d + 1;
              case "MM":
                return a.s(d + 1, 2, "0");
              case "MMM":
                return T(t.monthsShort, d, m, 3);
              case "MMMM":
                return T(m, d);
              case "D":
                return r.$D;
              case "DD":
                return a.s(r.$D, 2, "0");
              case "d":
                return String(r.$W);
              case "dd":
                return T(t.weekdaysMin, r.$W, $, 2);
              case "ddd":
                return T(t.weekdaysShort, r.$W, $, 3);
              case "dddd":
                return $[r.$W];
              case "H":
                return String(u);
              case "HH":
                return a.s(u, 2, "0");
              case "h":
                return j(1);
              case "hh":
                return j(2);
              case "a":
                return x(u, c, !0);
              case "A":
                return x(u, c, !1);
              case "m":
                return String(c);
              case "mm":
                return a.s(c, 2, "0");
              case "s":
                return String(r.$s);
              case "ss":
                return a.s(r.$s, 2, "0");
              case "SSS":
                return a.s(r.$ms, 3, "0");
              case "Z":
                return o;
            }
            return null;
          })(g) || o.replace(":", "");
        }));
      }, n.utcOffset = function() {
        return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
      }, n.diff = function(e, r, t) {
        var s, o = this, u = a.p(r), c = l(e), d = (c.utcOffset() - this.utcOffset()) * O, $ = this - c, m = function() {
          return a.m(o, c);
        };
        switch (u) {
          case S:
            s = m() / 12;
            break;
          case b:
            s = m();
            break;
          case Z:
            s = m() / 3;
            break;
          case R:
            s = ($ - d) / 6048e5;
            break;
          case D:
            s = ($ - d) / 864e5;
            break;
          case Y:
            s = $ / V;
            break;
          case A:
            s = $ / O;
            break;
          case k:
            s = $ / p;
            break;
          default:
            s = $;
        }
        return t ? s : a.a(s);
      }, n.daysInMonth = function() {
        return this.endOf(b).$D;
      }, n.$locale = function() {
        return L[this.$L];
      }, n.locale = function(e, r) {
        if (!e) return this.$L;
        var t = this.clone(), s = B(e, r, !0);
        return s && (t.$L = s), t;
      }, n.clone = function() {
        return a.w(this.$d, this);
      }, n.toDate = function() {
        return new Date(this.valueOf());
      }, n.toJSON = function() {
        return this.isValid() ? this.toISOString() : null;
      }, n.toISOString = function() {
        return this.$d.toISOString();
      }, n.toString = function() {
        return this.$d.toUTCString();
      }, i;
    })(), q = N.prototype;
    return l.prototype = q, [
      ["$ms", I],
      ["$s", k],
      ["$m", A],
      ["$H", Y],
      ["$W", D],
      ["$M", b],
      ["$y", S],
      ["$D", H]
    ].forEach((function(i) {
      q[i[1]] = function(n) {
        return this.$g(n, i[0], i[1]);
      };
    })), l.extend = function(i, n) {
      return i.$i || (i(n, N, l), i.$i = !0), l;
    }, l.locale = B, l.isDayjs = J, l.unix = function(i) {
      return l(1e3 * i);
    }, l.en = L[W], l.Ls = L, l.p = {}, l;
  }));
})), ie = /* @__PURE__ */ te(re(), 1), G = Object.defineProperty, w = (f, h) => G(f, "name", {
  value: h,
  configurable: !0
}), oe = (f, h) => {
  for (var p in h) G(f, p, {
    get: h[p],
    enumerable: !0
  });
}, M = {
  trace: 0,
  debug: 1,
  info: 2,
  warn: 3,
  error: 4,
  fatal: 5
}, v = {
  trace: /* @__PURE__ */ w((...f) => {
  }, "trace"),
  debug: /* @__PURE__ */ w((...f) => {
  }, "debug"),
  info: /* @__PURE__ */ w((...f) => {
  }, "info"),
  warn: /* @__PURE__ */ w((...f) => {
  }, "warn"),
  error: /* @__PURE__ */ w((...f) => {
  }, "error"),
  fatal: /* @__PURE__ */ w((...f) => {
  }, "fatal")
}, ae = /* @__PURE__ */ w(function(f = "fatal") {
  let h = M.fatal;
  typeof f == "string" ? f.toLowerCase() in M && (h = M[f]) : typeof f == "number" && (h = f), v.trace = () => {
  }, v.debug = () => {
  }, v.info = () => {
  }, v.warn = () => {
  }, v.error = () => {
  }, v.fatal = () => {
  }, h <= M.fatal && (v.fatal = console.error ? console.error.bind(console, y("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", y("FATAL"))), h <= M.error && (v.error = console.error ? console.error.bind(console, y("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", y("ERROR"))), h <= M.warn && (v.warn = console.warn ? console.warn.bind(console, y("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", y("WARN"))), h <= M.info && (v.info = console.info ? console.info.bind(console, y("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", y("INFO"))), h <= M.debug && (v.debug = console.debug ? console.debug.bind(console, y("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", y("DEBUG"))), h <= M.trace && (v.trace = console.debug ? console.debug.bind(console, y("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", y("TRACE")));
}, "setLogLevel"), y = /* @__PURE__ */ w((f) => `%c${(0, ie.default)().format("ss.SSS")} : ${f} : `, "format");
export {
  re as a,
  ae as i,
  w as n,
  v as r,
  oe as t
};

//# sourceMappingURL=chunk-AGHRB4JF.js.map