@softechub-ib/vue-datepicker
Version:
Datepicker component for Vue 3
1,353 lines • 88.9 kB
JavaScript
import { computed as ne, ref as ce, shallowRef as Vr, watch as Ue, getCurrentScope as Hr, onScopeDispose as Fr, shallowReadonly as Ee, unref as pe, defineComponent as gn, useCssVars as yn, nextTick as St, openBlock as ie, createElementBlock as le, createElementVNode as H, normalizeClass as Ie, renderSlot as ze, toDisplayString as je, createCommentVNode as Ot, withDirectives as it, Fragment as Te, renderList as Be, vShow as lt, onMounted as Wr, onBeforeUnmount as Nr, withModifiers as on, normalizeStyle as Gr, createVNode as Ur, withCtx as an } from "vue";
var Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function bn(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var wn = { exports: {} };
(function(e, o) {
(function(t, i) {
e.exports = i();
})(Ge, function() {
var t = 1e3, i = 6e4, u = 36e5, f = "millisecond", c = "second", d = "minute", y = "hour", h = "day", v = "week", _ = "month", B = "quarter", S = "year", A = "date", j = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ee = /\[([^\]]+)]|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, K = { 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(k) {
var g = ["th", "st", "nd", "rd"], p = k % 100;
return "[" + k + (g[(p - 20) % 10] || g[p] || g[0]) + "]";
} }, U = function(k, g, p) {
var b = String(k);
return !b || b.length >= g ? k : "" + Array(g + 1 - b.length).join(p) + k;
}, Q = { s: U, z: function(k) {
var g = -k.utcOffset(), p = Math.abs(g), b = Math.floor(p / 60), m = p % 60;
return (g <= 0 ? "+" : "-") + U(b, 2, "0") + ":" + U(m, 2, "0");
}, m: function k(g, p) {
if (g.date() < p.date()) return -k(p, g);
var b = 12 * (p.year() - g.year()) + (p.month() - g.month()), m = g.clone().add(b, _), M = p - m < 0, D = g.clone().add(b + (M ? -1 : 1), _);
return +(-(b + (p - m) / (M ? m - D : D - m)) || 0);
}, a: function(k) {
return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
}, p: function(k) {
return { M: _, y: S, w: v, d: h, D: A, h: y, m: d, s: c, ms: f, Q: B }[k] || String(k || "").toLowerCase().replace(/s$/, "");
}, u: function(k) {
return k === void 0;
} }, C = "en", Z = {};
Z[C] = K;
var X = "$isDayjsObject", F = function(k) {
return k instanceof de || !(!k || !k[X]);
}, re = function k(g, p, b) {
var m;
if (!g) return C;
if (typeof g == "string") {
var M = g.toLowerCase();
Z[M] && (m = M), p && (Z[M] = p, m = M);
var D = g.split("-");
if (!m && D.length > 1) return k(D[0]);
} else {
var z = g.name;
Z[z] = g, m = z;
}
return !b && m && (C = m), m || !b && C;
}, V = function(k, g) {
if (F(k)) return k.clone();
var p = typeof g == "object" ? g : {};
return p.date = k, p.args = arguments, new de(p);
}, P = Q;
P.l = re, P.i = F, P.w = function(k, g) {
return V(k, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
};
var de = function() {
function k(p) {
this.$L = re(p.locale, null, !0), this.parse(p), this.$x = this.$x || p.x || {}, this[X] = !0;
}
var g = k.prototype;
return g.parse = function(p) {
this.$d = function(b) {
var m = b.date, M = b.utc;
if (m === null) return /* @__PURE__ */ new Date(NaN);
if (P.u(m)) return /* @__PURE__ */ new Date();
if (m instanceof Date) return new Date(m);
if (typeof m == "string" && !/Z$/i.test(m)) {
var D = m.match(I);
if (D) {
var z = D[2] - 1 || 0, N = (D[7] || "0").substring(0, 3);
return M ? new Date(Date.UTC(D[1], z, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, N)) : new Date(D[1], z, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, N);
}
}
return new Date(m);
}(p), this.init();
}, g.init = function() {
var p = this.$d;
this.$y = p.getFullYear(), this.$M = p.getMonth(), this.$D = p.getDate(), this.$W = p.getDay(), this.$H = p.getHours(), this.$m = p.getMinutes(), this.$s = p.getSeconds(), this.$ms = p.getMilliseconds();
}, g.$utils = function() {
return P;
}, g.isValid = function() {
return this.$d.toString() !== j;
}, g.isSame = function(p, b) {
var m = V(p);
return this.startOf(b) <= m && m <= this.endOf(b);
}, g.isAfter = function(p, b) {
return V(p) < this.startOf(b);
}, g.isBefore = function(p, b) {
return this.endOf(b) < V(p);
}, g.$g = function(p, b, m) {
return P.u(p) ? this[b] : this.set(m, p);
}, g.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, g.valueOf = function() {
return this.$d.getTime();
}, g.startOf = function(p, b) {
var m = this, M = !!P.u(b) || b, D = P.p(p), z = function(E, W) {
var x = P.w(m.$u ? Date.UTC(m.$y, W, E) : new Date(m.$y, W, E), m);
return M ? x : x.endOf(h);
}, N = function(E, W) {
return P.w(m.toDate()[E].apply(m.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), m);
}, Y = this.$W, te = this.$M, se = this.$D, ue = "set" + (this.$u ? "UTC" : "");
switch (D) {
case S:
return M ? z(1, 0) : z(31, 11);
case _:
return M ? z(1, te) : z(0, te + 1);
case v:
var s = this.$locale().weekStart || 0, $ = (Y < s ? Y + 7 : Y) - s;
return z(M ? se - $ : se + (6 - $), te);
case h:
case A:
return N(ue + "Hours", 0);
case y:
return N(ue + "Minutes", 1);
case d:
return N(ue + "Seconds", 2);
case c:
return N(ue + "Milliseconds", 3);
default:
return this.clone();
}
}, g.endOf = function(p) {
return this.startOf(p, !1);
}, g.$set = function(p, b) {
var m, M = P.p(p), D = "set" + (this.$u ? "UTC" : ""), z = (m = {}, m[h] = D + "Date", m[A] = D + "Date", m[_] = D + "Month", m[S] = D + "FullYear", m[y] = D + "Hours", m[d] = D + "Minutes", m[c] = D + "Seconds", m[f] = D + "Milliseconds", m)[M], N = M === h ? this.$D + (b - this.$W) : b;
if (M === _ || M === S) {
var Y = this.clone().set(A, 1);
Y.$d[z](N), Y.init(), this.$d = Y.set(A, Math.min(this.$D, Y.daysInMonth())).$d;
} else z && this.$d[z](N);
return this.init(), this;
}, g.set = function(p, b) {
return this.clone().$set(p, b);
}, g.get = function(p) {
return this[P.p(p)]();
}, g.add = function(p, b) {
var m, M = this;
p = Number(p);
var D = P.p(b), z = function(te) {
var se = V(M);
return P.w(se.date(se.date() + Math.round(te * p)), M);
};
if (D === _) return this.set(_, this.$M + p);
if (D === S) return this.set(S, this.$y + p);
if (D === h) return z(1);
if (D === v) return z(7);
var N = (m = {}, m[d] = i, m[y] = u, m[c] = t, m)[D] || 1, Y = this.$d.getTime() + p * N;
return P.w(Y, this);
}, g.subtract = function(p, b) {
return this.add(-1 * p, b);
}, g.format = function(p) {
var b = this, m = this.$locale();
if (!this.isValid()) return m.invalidDate || j;
var M = p || "YYYY-MM-DDTHH:mm:ssZ", D = P.z(this), z = this.$H, N = this.$m, Y = this.$M, te = m.weekdays, se = m.months, ue = m.meridiem, s = function(W, x, oe, ye) {
return W && (W[x] || W(b, M)) || oe[x].slice(0, ye);
}, $ = function(W) {
return P.s(z % 12 || 12, W, "0");
}, E = ue || function(W, x, oe) {
var ye = W < 12 ? "AM" : "PM";
return oe ? ye.toLowerCase() : ye;
};
return M.replace(ee, function(W, x) {
return x || function(oe) {
switch (oe) {
case "YY":
return String(b.$y).slice(-2);
case "YYYY":
return P.s(b.$y, 4, "0");
case "M":
return Y + 1;
case "MM":
return P.s(Y + 1, 2, "0");
case "MMM":
return s(m.monthsShort, Y, se, 3);
case "MMMM":
return s(se, Y);
case "D":
return b.$D;
case "DD":
return P.s(b.$D, 2, "0");
case "d":
return String(b.$W);
case "dd":
return s(m.weekdaysMin, b.$W, te, 2);
case "ddd":
return s(m.weekdaysShort, b.$W, te, 3);
case "dddd":
return te[b.$W];
case "H":
return String(z);
case "HH":
return P.s(z, 2, "0");
case "h":
return $(1);
case "hh":
return $(2);
case "a":
return E(z, N, !0);
case "A":
return E(z, N, !1);
case "m":
return String(N);
case "mm":
return P.s(N, 2, "0");
case "s":
return String(b.$s);
case "ss":
return P.s(b.$s, 2, "0");
case "SSS":
return P.s(b.$ms, 3, "0");
case "Z":
return D;
}
return null;
}(W) || D.replace(":", "");
});
}, g.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, g.diff = function(p, b, m) {
var M, D = this, z = P.p(b), N = V(p), Y = (N.utcOffset() - this.utcOffset()) * i, te = this - N, se = function() {
return P.m(D, N);
};
switch (z) {
case S:
M = se() / 12;
break;
case _:
M = se();
break;
case B:
M = se() / 3;
break;
case v:
M = (te - Y) / 6048e5;
break;
case h:
M = (te - Y) / 864e5;
break;
case y:
M = te / u;
break;
case d:
M = te / i;
break;
case c:
M = te / t;
break;
default:
M = te;
}
return m ? M : P.a(M);
}, g.daysInMonth = function() {
return this.endOf(_).$D;
}, g.$locale = function() {
return Z[this.$L];
}, g.locale = function(p, b) {
if (!p) return this.$L;
var m = this.clone(), M = re(p, b, !0);
return M && (m.$L = M), m;
}, g.clone = function() {
return P.w(this.$d, this);
}, g.toDate = function() {
return new Date(this.valueOf());
}, g.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, g.toISOString = function() {
return this.$d.toISOString();
}, g.toString = function() {
return this.$d.toUTCString();
}, k;
}(), ke = de.prototype;
return V.prototype = ke, [["$ms", f], ["$s", c], ["$m", d], ["$H", y], ["$W", h], ["$M", _], ["$y", S], ["$D", A]].forEach(function(k) {
ke[k[1]] = function(g) {
return this.$g(g, k[0], k[1]);
};
}), V.extend = function(k, g) {
return k.$i || (k(g, de, V), k.$i = !0), V;
}, V.locale = re, V.isDayjs = F, V.unix = function(k) {
return V(1e3 * k);
}, V.en = Z[C], V.Ls = Z, V.p = {}, V;
});
})(wn);
var Xr = wn.exports;
const a = /* @__PURE__ */ bn(Xr);
(async () => (a.locale(await import("./af-VSTZeTfQ.js").then((e) => e.a), void 0, !0), a.locale(await import("./ar-dz-ClngMecj.js").then((e) => e.a), void 0, !0), a.locale(await import("./am-DaRBXNE1.js").then((e) => e.a), void 0, !0), a.locale(await import("./ar-iq-DmefKkvJ.js").then((e) => e.a), void 0, !0), a.locale(await import("./ar-kw-BQOLaJYP.js").then((e) => e.a), void 0, !0), a.locale(await import("./ar-ly-aPQ5mTUc.js").then((e) => e.a), void 0, !0), a.locale(await import("./ar-ma-BSYry-bt.js").then((e) => e.a), void 0, !0), a.locale(await import("./ar-sa-CpXPxfxi.js").then((e) => e.a), void 0, !0), a.locale(await import("./ar-tn-BpMW9h_9.js").then((e) => e.a), void 0, !0), a.locale(await import("./ar-CGGrWVcl.js").then((e) => e.a), void 0, !0), a.locale(await import("./az-CbYs2xa7.js").then((e) => e.a), void 0, !0), a.locale(await import("./be-CfBVXuAb.js").then((e) => e.b), void 0, !0), a.locale(await import("./bg-DL3AcmW0.js").then((e) => e.b), void 0, !0), a.locale(await import("./bm-DRcXdBXu.js").then((e) => e.b), void 0, !0), a.locale(await import("./bi-BLxHwEjk.js").then((e) => e.b), void 0, !0), a.locale(await import("./bn-bd-rHNUi4dp.js").then((e) => e.b), void 0, !0), a.locale(await import("./bn-CbRm9e2x.js").then((e) => e.b), void 0, !0), a.locale(await import("./bo-BuuHDNBS.js").then((e) => e.b), void 0, !0), a.locale(await import("./br-C2Cq2zDN.js").then((e) => e.b), void 0, !0), a.locale(await import("./bs-BMi1ikeX.js").then((e) => e.b), void 0, !0), a.locale(await import("./ca-B67J6_v2.js").then((e) => e.c), void 0, !0), a.locale(await import("./cs-CTyrwaEP.js").then((e) => e.c), void 0, !0), a.locale(await import("./cv-CyD4fUFY.js").then((e) => e.c), void 0, !0), a.locale(await import("./cy-DRfEbWut.js").then((e) => e.c), void 0, !0), a.locale(await import("./da-JLUUrII6.js").then((e) => e.d), void 0, !0), a.locale(await import("./de-at-BdT0YvZd.js").then((e) => e.d), void 0, !0), a.locale(await import("./de-ch-BZXKwTgO.js").then((e) => e.d), void 0, !0), a.locale(await import("./de-CfE_foSt.js").then((e) => e.d), void 0, !0), a.locale(await import("./dv-BsR4LSIP.js").then((e) => e.d), void 0, !0), a.locale(await import("./el-BUkAWDwj.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-au-CpnxbFDc.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-ca-DyGXbUKA.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-gb-gPgtAnd4.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-ie-Cah7BnaH.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-il-DpS_W4O7.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-in-NRXmKXc5.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-nz-Di-2dUaM.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-sg-4pwulaEK.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-tt-de7p1PwN.js").then((e) => e.e), void 0, !0), a.locale(await import("./eo-Dq-Hcv4u.js").then((e) => e.e), void 0, !0), a.locale(await import("./en-DFp7-fbs.js").then((e) => e.e), void 0, !0), a.locale(await import("./es-do-CkQiJQrF.js").then((e) => e.e), void 0, !0), a.locale(await import("./es-mx-C-IYSv-8.js").then((e) => e.e), void 0, !0), a.locale(await import("./es-Bfk3am2S.js").then((e) => e.e), void 0, !0), a.locale(await import("./et-C2Ec4Qgi.js").then((e) => e.e), void 0, !0), a.locale(await import("./eu-CguQqE1Z.js").then((e) => e.e), void 0, !0), a.locale(await import("./fa-BYaGKJxz.js").then((e) => e.f), void 0, !0), a.locale(await import("./fi-B8_N2pmV.js").then((e) => e.f), void 0, !0), a.locale(await import("./fo-tXX6RVWl.js").then((e) => e.f), void 0, !0), a.locale(await import("./fr-ca-BLuef8Ii.js").then((e) => e.f), void 0, !0), a.locale(await import("./fr-ch-tRvwF3ax.js").then((e) => e.f), void 0, !0), a.locale(await import("./fr-B6WXrhPf.js").then((e) => e.f), void 0, !0), a.locale(await import("./fy-DRjV6Tao.js").then((e) => e.f), void 0, !0), a.locale(await import("./ga-DMOIGwxS.js").then((e) => e.g), void 0, !0), a.locale(await import("./gd-BtANbRLs.js").then((e) => e.g), void 0, !0), a.locale(await import("./gl-D2r4gCVI.js").then((e) => e.g), void 0, !0), a.locale(await import("./gom-latn-BFA_ci7p.js").then((e) => e.g), void 0, !0), a.locale(await import("./gu-GI-lti6G.js").then((e) => e.g), void 0, !0), a.locale(await import("./he-CyEM0U3g.js").then((e) => e.h), void 0, !0), a.locale(await import("./hi-D7ROHQiA.js").then((e) => e.h), void 0, !0), a.locale(await import("./hr-DpmBcxm5.js").then((e) => e.h), void 0, !0), a.locale(await import("./ht-D_mBlP1C.js").then((e) => e.h), void 0, !0), a.locale(await import("./hu-CYPmc6e3.js").then((e) => e.h), void 0, !0), a.locale(await import("./hy-am-CYGmtgZU.js").then((e) => e.h), void 0, !0), a.locale(await import("./id-CLapCLrS.js").then((e) => e.i), void 0, !0), a.locale(await import("./it-ch-BVim0U6m.js").then((e) => e.i), void 0, !0), a.locale(await import("./is-BsPQkqao.js").then((e) => e.i), void 0, !0), a.locale(await import("./ja-DWTc-R7T.js").then((e) => e.j), void 0, !0), a.locale(await import("./it-CcypJhnX.js").then((e) => e.i), void 0, !0), a.locale(await import("./ka-DzArMlQh.js").then((e) => e.k), void 0, !0), a.locale(await import("./jv-BY3EWcZE.js").then((e) => e.j), void 0, !0), a.locale(await import("./kk-O4s3KTKm.js").then((e) => e.k), void 0, !0), a.locale(await import("./km-Di0AMnIY.js").then((e) => e.k), void 0, !0), a.locale(await import("./ko-Y354WWvQ.js").then((e) => e.k), void 0, !0), a.locale(await import("./kn-lwWUgmFX.js").then((e) => e.k), void 0, !0), a.locale(await import("./ku-Ck6KYdKc.js").then((e) => e.k), void 0, !0), a.locale(await import("./ky--FD0vUoD.js").then((e) => e.k), void 0, !0), a.locale(await import("./lb-cyr8FevG.js").then((e) => e.l), void 0, !0), a.locale(await import("./lo-Xsmaw4r0.js").then((e) => e.l), void 0, !0), a.locale(await import("./lv-6gex9ucO.js").then((e) => e.l), void 0, !0), a.locale(await import("./lt-CUXQHvwk.js").then((e) => e.l), void 0, !0), a.locale(await import("./me-B41ZYDew.js").then((e) => e.m), void 0, !0), a.locale(await import("./mi-COzE80v5.js").then((e) => e.m), void 0, !0), a.locale(await import("./mk-Q1ejFy1-.js").then((e) => e.m), void 0, !0), a.locale(await import("./ml-BQwnnA16.js").then((e) => e.m), void 0, !0), a.locale(await import("./mn-BBbUZ5R6.js").then((e) => e.m), void 0, !0), a.locale(await import("./mr-CjVTSHhn.js").then((e) => e.m), void 0, !0), a.locale(await import("./ms-my-Dmi05VzC.js").then((e) => e.m), void 0, !0), a.locale(await import("./ms-CkGC_YQL.js").then((e) => e.m), void 0, !0), a.locale(await import("./mt-DRlkkjMO.js").then((e) => e.m), void 0, !0), a.locale(await import("./my-CWisQBhX.js").then((e) => e.m), void 0, !0), a.locale(await import("./nb-DllcgP_p.js").then((e) => e.n), void 0, !0), a.locale(await import("./ne-Ct73QoKk.js").then((e) => e.n), void 0, !0), a.locale(await import("./nl-be-ChAjdfSG.js").then((e) => e.n), void 0, !0), a.locale(await import("./nn-CJRJ9H6q.js").then((e) => e.n), void 0, !0), a.locale(await import("./nl-sau9CwXA.js").then((e) => e.n), void 0, !0), a.locale(await import("./pa-in-PD3QgW5C.js").then((e) => e.p), void 0, !0), a.locale(await import("./oc-lnc-Wv6i-mzx.js").then((e) => e.o), void 0, !0), a.locale(await import("./pt-br-JSugDumH.js").then((e) => e.p), void 0, !0), a.locale(await import("./pl-Bn8jYCZT.js").then((e) => e.p), void 0, !0), a.locale(await import("./pt-CJyNNx_p.js").then((e) => e.p), void 0, !0), a.locale(await import("./rn-CxebN2yR.js").then((e) => e.r), void 0, !0), a.locale(await import("./ro-Crvt_DEW.js").then((e) => e.r), void 0, !0), a.locale(await import("./ru-BZX3Yr6v.js").then((e) => e.r), void 0, !0), a.locale(await import("./es-us-BEVZcPF_.js").then((e) => e.e), void 0, !0), a.locale(await import("./es-pr-CA28Igf2.js").then((e) => e.e), void 0, !0), a.locale(await import("./sd-CjJt_Z3R.js").then((e) => e.s), void 0, !0), a.locale(await import("./si-V0quAMRq.js").then((e) => e.s), void 0, !0), a.locale(await import("./sk-BZfm92t2.js").then((e) => e.s), void 0, !0), a.locale(await import("./sl-RN3VEoAQ.js").then((e) => e.s), void 0, !0), a.locale(await import("./sq-BN3OYCQA.js").then((e) => e.s), void 0, !0), a.locale(await import("./sr-cyrl-B83kddUi.js").then((e) => e.s), void 0, !0), a.locale(await import("./sr-Da1hKFt5.js").then((e) => e.s), void 0, !0), a.locale(await import("./ss-BfS0eskk.js").then((e) => e.s), void 0, !0), a.locale(await import("./sv-fi-Dlb1n4nw.js").then((e) => e.s), void 0, !0), a.locale(await import("./sv-Bnd3XoIG.js").then((e) => e.s), void 0, !0), a.locale(await import("./sw-trH0RrWP.js").then((e) => e.s), void 0, !0), a.locale(await import("./te-BoM9oJh-.js").then((e) => e.t), void 0, !0), a.locale(await import("./ta-DSONCW5S.js").then((e) => e.t), void 0, !0), a.locale(await import("./tet-a4nRgxny.js").then((e) => e.t), void 0, !0), a.locale(await import("./tg-DaQmK-yu.js").then((e) => e.t), void 0, !0), a.locale(await import("./tk-CPOoAZ1_.js").then((e) => e.t), void 0, !0), a.locale(await import("./tl-ph-BIbwz7dC.js").then((e) => e.t), void 0, !0), a.locale(await import("./tlh-D_qIwW-z.js").then((e) => e.t), void 0, !0), a.locale(await import("./th-DlapvHUm.js").then((e) => e.t), void 0, !0), a.locale(await import("./tr-CYMlppU9.js").then((e) => e.t), void 0, !0), a.locale(await import("./tzl-wBwUwsk5.js").then((e) => e.t), void 0, !0), a.locale(await import("./tzm-latn-DTr9KwDz.js").then((e) => e.t), void 0, !0), a.locale(await import("./tzm-PLKpfCN-.js").then((e) => e.t), void 0, !0), a.locale(await import("./ug-cn-3FWFRlzT.js").then((e) => e.u), void 0, !0), a.locale(await import("./uk-DeqdU3Kb.js").then((e) => e.u), void 0, !0), a.locale(await import("./ur-DohIisvY.js").then((e) => e.u), void 0, !0), a.locale(await import("./uz-latn-DifwAAe9.js").then((e) => e.u), void 0, !0), a.locale(await import("./uz-DLqG_UPR.js").then((e) => e.u), void 0, !0), a.locale(await import("./vi-C3t8ylOE.js").then((e) => e.v), void 0, !0), a.locale(await import("./x-pseudo-CcgxRN4D.js").then((e) => e.x), void 0, !0), a.locale(await import("./yo-Qj7309dK.js").then((e) => e.y), void 0, !0), a.locale(await import("./zh-cn-BTmytOwe.js").then((e) => e.z), void 0, !0), a.locale(await import("./zh-hk-D4I3732z.js").then((e) => e.z), void 0, !0), a.locale(await import("./zh-tw-OY8wG_0x.js").then((e) => e.z), void 0, !0), a.locale(await import("./zh-BX5zHooq.js").then((e) => e.z), void 0, !0), a.locale(await import("./rw-q2TYrYGP.js").then((e) => e.r), void 0, !0), a.locale(await import("./se-3liJRMpG.js").then((e) => e.s), void 0, !0)))();
const O = {
dark: "hsla(0, 0%, 0%, 0.9)",
middleDark: "hsla(0, 0%, 12%, 1)",
lightDark: "hsla(0, 0%, 0%, 0.5)",
darkGray: "hsl(0, 0%, 24%)",
middleGray1: "hsl(0, 0%, 66%)",
middleGray2: "hsl(0, 0%, 80%)",
lightGray: "hsl(0, 0%, 94%)",
light: "hsl(0, 0%, 100%)",
selected: "hsl(213, 100%, 50%)",
border: "hsla(0, 0%, 0%, 0.1)",
borderDark: "hsla(0, 0%, 30%, 1)",
hoverBorder: "hsla(0, 0%, 0%, 0.3)",
hoverBorderDark: "hsla(0, 0%, 85%, 1)",
error: {
borderColor: "hsl(0, 74%, 42%)",
backgroundColor: "hsl(0, 86%, 97%)"
},
errorDark: {
borderColor: "hsl(0, 65%, 42%)",
backgroundColor: "hsla(0, 90%, 75%, 0.6)"
}
}, ln = (e) => ({
container: {
border: `1px solid ${e ? O.borderDark : O.border}`,
hoverBorder: `1px solid ${e ? O.hoverBorderDark : O.hoverBorder}`,
borderRadius: "4px",
backgroundColor: e ? O.middleDark : O.light,
small: {
paddingX: "8px",
paddingY: "6px",
calendarIcon: {
size: "14px"
},
clearIcon: {
size: "16px"
}
},
medium: {
paddingX: "12px",
paddingY: "10px",
calendarIcon: {
size: "16px"
},
clearIcon: {
size: "20px"
}
},
large: {
paddingX: "14px",
paddingY: "12px",
calendarIcon: {
size: "18px"
},
clearIcon: {
size: "22px"
}
},
disabled: {
opacity: "0.5"
},
error: {
borderColor: e ? O.errorDark.borderColor : O.error.borderColor,
backgroundColor: e ? O.errorDark.backgroundColor : O.error.backgroundColor
}
},
selection: {
calendarIcon: {
color: e ? O.light : O.lightDark,
marginRight: "8px"
},
clearIcon: {
color: e ? O.light : O.lightDark,
marginLeft: "4px"
}
},
input: {
fontSize: "14px",
lineHeight: "16px",
color: e ? O.light : O.dark
},
calendarWrapper: {
zIndex: "10"
}
}), sn = (e) => ({
container: {
width: "272px",
paddingX: "12px",
paddingY: "12px",
border: `1px solid ${e ? O.borderDark : O.border}`,
borderRadius: "4px",
backgroundColor: e ? O.middleDark : O.light,
boxShadow: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"
},
header: {
marginBottom: "12px"
},
headerButton: {
padding: "4px",
color: e ? O.light : O.lightDark,
border: "none",
borderRadius: "4px",
backgroundColor: "transparent",
hoverBackgroundColor: e ? O.darkGray : O.lightGray,
iconSize: "16px",
restricted: {
opacity: "0.5"
}
},
headerDateItem: {
fontSize: "12px",
fontWeight: "600",
lineHeight: "16px",
color: e ? O.light : O.dark,
paddingX: "4px",
paddingY: "8px",
borderRadius: "4px",
hoverBackgroundColor: e ? O.darkGray : O.lightGray
},
table: {
fontSize: "12px",
gap: "4px"
},
tableHead: {
fontWeight: "700"
},
tableHeadItem: {
color: e ? O.middleGray2 : O.lightDark
},
tableBody: {
fontWeight: "500"
},
tableBodyRow: {
days: {
marginTop: "2px"
},
monthsYears: {
marginBottom: "24px"
}
},
tableBodyItem: {
borderRadius: "4px",
color: e ? O.light : O.dark,
hoverBackgroundColor: e ? O.darkGray : O.lightGray,
offset: {
color: e ? O.middleGray1 : O.lightDark,
hoverColor: e ? O.light : O.dark,
opacity: "0.5"
},
current: {
border: `1px solid ${O.selected}`
},
restricted: {
color: e ? O.middleGray1 : O.lightDark,
opacity: "0.5"
},
selected: {
color: O.light,
backgroundColor: O.selected
}
}
}), be = function(e, o) {
return o === "year" ? e.split("-")[0] : e.split("-")[1];
}, T = function(e, o, t, i = "month") {
let u = a(e);
if (!u.isValid())
return "";
switch (t) {
case "subtract":
u = u.subtract(1, i);
break;
case "add":
u = u.add(1, i);
break;
}
return u.format(o);
}, un = Math.min, Xe = Math.max, st = Math.round, we = (e) => ({
x: e,
y: e
}), Kr = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
}, Zr = {
start: "end",
end: "start"
};
function _n(e, o) {
return typeof e == "function" ? e(o) : e;
}
function Ke(e) {
return e.split("-")[0];
}
function Pt(e) {
return e.split("-")[1];
}
function Jr(e) {
return e === "x" ? "y" : "x";
}
function kn(e) {
return e === "y" ? "height" : "width";
}
function ut(e) {
return ["top", "bottom"].includes(Ke(e)) ? "y" : "x";
}
function Mn(e) {
return Jr(ut(e));
}
function qr(e, o, t) {
t === void 0 && (t = !1);
const i = Pt(e), u = Mn(e), f = kn(u);
let c = u === "x" ? i === (t ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
return o.reference[f] > o.floating[f] && (c = ct(c)), [c, ct(c)];
}
function Qr(e) {
const o = ct(e);
return [Tt(e), o, Tt(o)];
}
function Tt(e) {
return e.replace(/start|end/g, (o) => Zr[o]);
}
function eo(e, o, t) {
const i = ["left", "right"], u = ["right", "left"], f = ["top", "bottom"], c = ["bottom", "top"];
switch (e) {
case "top":
case "bottom":
return t ? o ? u : i : o ? i : u;
case "left":
case "right":
return o ? f : c;
default:
return [];
}
}
function to(e, o, t, i) {
const u = Pt(e);
let f = eo(Ke(e), t === "start", i);
return u && (f = f.map((c) => c + "-" + u), o && (f = f.concat(f.map(Tt)))), f;
}
function ct(e) {
return e.replace(/left|right|bottom|top/g, (o) => Kr[o]);
}
function no(e) {
return {
top: 0,
right: 0,
bottom: 0,
left: 0,
...e
};
}
function ro(e) {
return typeof e != "number" ? no(e) : {
top: e,
right: e,
bottom: e,
left: e
};
}
function dt(e) {
const {
x: o,
y: t,
width: i,
height: u
} = e;
return {
width: i,
height: u,
top: t,
left: o,
right: o + i,
bottom: t + u,
x: o,
y: t
};
}
function cn(e, o, t) {
let {
reference: i,
floating: u
} = e;
const f = ut(o), c = Mn(o), d = kn(c), y = Ke(o), h = f === "y", v = i.x + i.width / 2 - u.width / 2, _ = i.y + i.height / 2 - u.height / 2, B = i[d] / 2 - u[d] / 2;
let S;
switch (y) {
case "top":
S = {
x: v,
y: i.y - u.height
};
break;
case "bottom":
S = {
x: v,
y: i.y + i.height
};
break;
case "right":
S = {
x: i.x + i.width,
y: _
};
break;
case "left":
S = {
x: i.x - u.width,
y: _
};
break;
default:
S = {
x: i.x,
y: i.y
};
}
switch (Pt(o)) {
case "start":
S[c] -= B * (t && h ? -1 : 1);
break;
case "end":
S[c] += B * (t && h ? -1 : 1);
break;
}
return S;
}
const oo = async (e, o, t) => {
const {
placement: i = "bottom",
strategy: u = "absolute",
middleware: f = [],
platform: c
} = t, d = f.filter(Boolean), y = await (c.isRTL == null ? void 0 : c.isRTL(o));
let h = await c.getElementRects({
reference: e,
floating: o,
strategy: u
}), {
x: v,
y: _
} = cn(h, i, y), B = i, S = {}, A = 0;
for (let j = 0; j < d.length; j++) {
const {
name: I,
fn: ee
} = d[j], {
x: K,
y: U,
data: Q,
reset: C
} = await ee({
x: v,
y: _,
initialPlacement: i,
placement: B,
strategy: u,
middlewareData: S,
rects: h,
platform: c,
elements: {
reference: e,
floating: o
}
});
v = K ?? v, _ = U ?? _, S = {
...S,
[I]: {
...S[I],
...Q
}
}, C && A <= 50 && (A++, typeof C == "object" && (C.placement && (B = C.placement), C.rects && (h = C.rects === !0 ? await c.getElementRects({
reference: e,
floating: o,
strategy: u
}) : C.rects), {
x: v,
y: _
} = cn(h, B, y)), j = -1);
}
return {
x: v,
y: _,
placement: B,
strategy: u,
middlewareData: S
};
};
async function ao(e, o) {
var t;
o === void 0 && (o = {});
const {
x: i,
y: u,
platform: f,
rects: c,
elements: d,
strategy: y
} = e, {
boundary: h = "clippingAncestors",
rootBoundary: v = "viewport",
elementContext: _ = "floating",
altBoundary: B = !1,
padding: S = 0
} = _n(o, e), A = ro(S), I = d[B ? _ === "floating" ? "reference" : "floating" : _], ee = dt(await f.getClippingRect({
element: (t = await (f.isElement == null ? void 0 : f.isElement(I))) == null || t ? I : I.contextElement || await (f.getDocumentElement == null ? void 0 : f.getDocumentElement(d.floating)),
boundary: h,
rootBoundary: v,
strategy: y
})), K = _ === "floating" ? {
x: i,
y: u,
width: c.floating.width,
height: c.floating.height
} : c.reference, U = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(d.floating)), Q = await (f.isElement == null ? void 0 : f.isElement(U)) ? await (f.getScale == null ? void 0 : f.getScale(U)) || {
x: 1,
y: 1
} : {
x: 1,
y: 1
}, C = dt(f.convertOffsetParentRelativeRectToViewportRelativeRect ? await f.convertOffsetParentRelativeRectToViewportRelativeRect({
elements: d,
rect: K,
offsetParent: U,
strategy: y
}) : K);
return {
top: (ee.top - C.top + A.top) / Q.y,
bottom: (C.bottom - ee.bottom + A.bottom) / Q.y,
left: (ee.left - C.left + A.left) / Q.x,
right: (C.right - ee.right + A.right) / Q.x
};
}
const io = function(e) {
return e === void 0 && (e = {}), {
name: "flip",
options: e,
async fn(o) {
var t, i;
const {
placement: u,
middlewareData: f,
rects: c,
initialPlacement: d,
platform: y,
elements: h
} = o, {
mainAxis: v = !0,
crossAxis: _ = !0,
fallbackPlacements: B,
fallbackStrategy: S = "bestFit",
fallbackAxisSideDirection: A = "none",
flipAlignment: j = !0,
...I
} = _n(e, o);
if ((t = f.arrow) != null && t.alignmentOffset)
return {};
const ee = Ke(u), K = ut(d), U = Ke(d) === d, Q = await (y.isRTL == null ? void 0 : y.isRTL(h.floating)), C = B || (U || !j ? [ct(d)] : Qr(d)), Z = A !== "none";
!B && Z && C.push(...to(d, j, A, Q));
const X = [d, ...C], F = await ao(o, I), re = [];
let V = ((i = f.flip) == null ? void 0 : i.overflows) || [];
if (v && re.push(F[ee]), _) {
const k = qr(u, c, Q);
re.push(F[k[0]], F[k[1]]);
}
if (V = [...V, {
placement: u,
overflows: re
}], !re.every((k) => k <= 0)) {
var P, de;
const k = (((P = f.flip) == null ? void 0 : P.index) || 0) + 1, g = X[k];
if (g)
return {
data: {
index: k,
overflows: V
},
reset: {
placement: g
}
};
let p = (de = V.filter((b) => b.overflows[0] <= 0).sort((b, m) => b.overflows[1] - m.overflows[1])[0]) == null ? void 0 : de.placement;
if (!p)
switch (S) {
case "bestFit": {
var ke;
const b = (ke = V.filter((m) => {
if (Z) {
const M = ut(m.placement);
return M === K || // Create a bias to the `y` side axis due to horizontal
// reading directions favoring greater width.
M === "y";
}
return !0;
}).map((m) => [m.placement, m.overflows.filter((M) => M > 0).reduce((M, D) => M + D, 0)]).sort((m, M) => m[1] - M[1])[0]) == null ? void 0 : ke[0];
b && (p = b);
break;
}
case "initialPlacement":
p = d;
break;
}
if (u !== p)
return {
reset: {
placement: p
}
};
}
return {};
}
};
};
function ht() {
return typeof window < "u";
}
function Pe(e) {
return At(e) ? (e.nodeName || "").toLowerCase() : "#document";
}
function he(e) {
var o;
return (e == null || (o = e.ownerDocument) == null ? void 0 : o.defaultView) || window;
}
function $e(e) {
var o;
return (o = (At(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : o.documentElement;
}
function At(e) {
return ht() ? e instanceof Node || e instanceof he(e).Node : !1;
}
function ve(e) {
return ht() ? e instanceof Element || e instanceof he(e).Element : !1;
}
function _e(e) {
return ht() ? e instanceof HTMLElement || e instanceof he(e).HTMLElement : !1;
}
function dn(e) {
return !ht() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof he(e).ShadowRoot;
}
function Je(e) {
const {
overflow: o,
overflowX: t,
overflowY: i,
display: u
} = ge(e);
return /auto|scroll|overlay|hidden|clip/.test(o + i + t) && !["inline", "contents"].includes(u);
}
function lo(e) {
return ["table", "td", "th"].includes(Pe(e));
}
function pt(e) {
return [":popover-open", ":modal"].some((o) => {
try {
return e.matches(o);
} catch {
return !1;
}
});
}
function Rt(e) {
const o = Et(), t = ve(e) ? ge(e) : e;
return t.transform !== "none" || t.perspective !== "none" || (t.containerType ? t.containerType !== "normal" : !1) || !o && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !o && (t.filter ? t.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((i) => (t.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (t.contain || "").includes(i));
}
function so(e) {
let o = De(e);
for (; _e(o) && !Ve(o); ) {
if (Rt(o))
return o;
if (pt(o))
return null;
o = De(o);
}
return null;
}
function Et() {
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
}
function Ve(e) {
return ["html", "body", "#document"].includes(Pe(e));
}
function ge(e) {
return he(e).getComputedStyle(e);
}
function mt(e) {
return ve(e) ? {
scrollLeft: e.scrollLeft,
scrollTop: e.scrollTop
} : {
scrollLeft: e.scrollX,
scrollTop: e.scrollY
};
}
function De(e) {
if (Pe(e) === "html")
return e;
const o = (
// Step into the shadow DOM of the parent of a slotted node.
e.assignedSlot || // DOM Element detected.
e.parentNode || // ShadowRoot detected.
dn(e) && e.host || // Fallback.
$e(e)
);
return dn(o) ? o.host : o;
}
function xn(e) {
const o = De(e);
return Ve(o) ? e.ownerDocument ? e.ownerDocument.body : e.body : _e(o) && Je(o) ? o : xn(o);
}
function Bt(e, o, t) {
var i;
o === void 0 && (o = []), t === void 0 && (t = !0);
const u = xn(e), f = u === ((i = e.ownerDocument) == null ? void 0 : i.body), c = he(u);
if (f) {
const d = It(c);
return o.concat(c, c.visualViewport || [], Je(u) ? u : [], d && t ? Bt(d) : []);
}
return o.concat(u, Bt(u, [], t));
}
function It(e) {
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
}
function $n(e) {
const o = ge(e);
let t = parseFloat(o.width) || 0, i = parseFloat(o.height) || 0;
const u = _e(e), f = u ? e.offsetWidth : t, c = u ? e.offsetHeight : i, d = st(t) !== f || st(i) !== c;
return d && (t = f, i = c), {
width: t,
height: i,
$: d
};
}
function Cn(e) {
return ve(e) ? e : e.contextElement;
}
function Le(e) {
const o = Cn(e);
if (!_e(o))
return we(1);
const t = o.getBoundingClientRect(), {
width: i,
height: u,
$: f
} = $n(o);
let c = (f ? st(t.width) : t.width) / i, d = (f ? st(t.height) : t.height) / u;
return (!c || !Number.isFinite(c)) && (c = 1), (!d || !Number.isFinite(d)) && (d = 1), {
x: c,
y: d
};
}
const uo = /* @__PURE__ */ we(0);
function Dn(e) {
const o = he(e);
return !Et() || !o.visualViewport ? uo : {
x: o.visualViewport.offsetLeft,
y: o.visualViewport.offsetTop
};
}
function co(e, o, t) {
return o === void 0 && (o = !1), !t || o && t !== he(e) ? !1 : o;
}
function Ze(e, o, t, i) {
o === void 0 && (o = !1), t === void 0 && (t = !1);
const u = e.getBoundingClientRect(), f = Cn(e);
let c = we(1);
o && (i ? ve(i) && (c = Le(i)) : c = Le(e));
const d = co(f, t, i) ? Dn(f) : we(0);
let y = (u.left + d.x) / c.x, h = (u.top + d.y) / c.y, v = u.width / c.x, _ = u.height / c.y;
if (f) {
const B = he(f), S = i && ve(i) ? he(i) : i;
let A = B, j = It(A);
for (; j && i && S !== A; ) {
const I = Le(j), ee = j.getBoundingClientRect(), K = ge(j), U = ee.left + (j.clientLeft + parseFloat(K.paddingLeft)) * I.x, Q = ee.top + (j.clientTop + parseFloat(K.paddingTop)) * I.y;
y *= I.x, h *= I.y, v *= I.x, _ *= I.y, y += U, h += Q, A = he(j), j = It(A);
}
}
return dt({
width: v,
height: _,
x: y,
y: h
});
}
function jt(e, o) {
const t = mt(e).scrollLeft;
return o ? o.left + t : Ze($e(e)).left + t;
}
function Yn(e, o, t) {
t === void 0 && (t = !1);
const i = e.getBoundingClientRect(), u = i.left + o.scrollLeft - (t ? 0 : (
// RTL <body> scrollbar.
jt(e, i)
)), f = i.top + o.scrollTop;
return {
x: u,
y: f
};
}
function fo(e) {
let {
elements: o,
rect: t,
offsetParent: i,
strategy: u
} = e;
const f = u === "fixed", c = $e(i), d = o ? pt(o.floating) : !1;
if (i === c || d && f)
return t;
let y = {
scrollLeft: 0,
scrollTop: 0
}, h = we(1);
const v = we(0), _ = _e(i);
if ((_ || !_ && !f) && ((Pe(i) !== "body" || Je(c)) && (y = mt(i)), _e(i))) {
const S = Ze(i);
h = Le(i), v.x = S.x + i.clientLeft, v.y = S.y + i.clientTop;
}
const B = c && !_ && !f ? Yn(c, y, !0) : we(0);
return {
width: t.width * h.x,
height: t.height * h.y,
x: t.x * h.x - y.scrollLeft * h.x + v.x + B.x,
y: t.y * h.y - y.scrollTop * h.y + v.y + B.y
};
}
function ho(e) {
return Array.from(e.getClientRects());
}
function po(e) {
const o = $e(e), t = mt(e), i = e.ownerDocument.body, u = Xe(o.scrollWidth, o.clientWidth, i.scrollWidth, i.clientWidth), f = Xe(o.scrollHeight, o.clientHeight, i.scrollHeight, i.clientHeight);
let c = -t.scrollLeft + jt(e);
const d = -t.scrollTop;
return ge(i).direction === "rtl" && (c += Xe(o.clientWidth, i.clientWidth) - u), {
width: u,
height: f,
x: c,
y: d
};
}
function mo(e, o) {
const t = he(e), i = $e(e), u = t.visualViewport;
let f = i.clientWidth, c = i.clientHeight, d = 0, y = 0;
if (u) {
f = u.width, c = u.height;
const h = Et();
(!h || h && o === "fixed") && (d = u.offsetLeft, y = u.offsetTop);
}
return {
width: f,
height: c,
x: d,
y
};
}
function vo(e, o) {
const t = Ze(e, !0, o === "fixed"), i = t.top + e.clientTop, u = t.left + e.clientLeft, f = _e(e) ? Le(e) : we(1), c = e.clientWidth * f.x, d = e.clientHeight * f.y, y = u * f.x, h = i * f.y;
return {
width: c,
height: d,
x: y,
y: h
};
}
function fn(e, o, t) {
let i;
if (o === "viewport")
i = mo(e, t);
else if (o === "document")
i = po($e(e));
else if (ve(o))
i = vo(o, t);
else {
const u = Dn(e);
i = {
x: o.x - u.x,
y: o.y - u.y,
width: o.width,
height: o.height
};
}
return dt(i);
}
function Sn(e, o) {
const t = De(e);
return t === o || !ve(t) || Ve(t) ? !1 : ge(t).position === "fixed" || Sn(t, o);
}
function go(e, o) {
const t = o.get(e);
if (t)
return t;
let i = Bt(e, [], !1).filter((d) => ve(d) && Pe(d) !== "body"), u = null;
const f = ge(e).position === "fixed";
let c = f ? De(e) : e;
for (; ve(c) && !Ve(c); ) {
const d = ge(c), y = Rt(c);
!y && d.position === "fixed" && (u = null), (f ? !y && !u : !y && d.position === "static" && !!u && ["absolute", "fixed"].includes(u.position) || Je(c) && !y && Sn(e, c)) ? i = i.filter((v) => v !== c) : u = d, c = De(c);
}
return o.set(e, i), i;
}
function yo(e) {
let {
element: o,
boundary: t,
rootBoundary: i,
strategy: u
} = e;
const c = [...t === "clippingAncestors" ? pt(o) ? [] : go(o, this._c) : [].concat(t), i], d = c[0], y = c.reduce((h, v) => {
const _ = fn(o, v, u);
return h.top = Xe(_.top, h.top), h.right = un(_.right, h.right), h.bottom = un(_.bottom, h.bottom), h.left = Xe(_.left, h.left), h;
}, fn(o, d, u));
return {
width: y.right - y.left,
height: y.bottom - y.top,
x: y.left,
y: y.top
};
}
function bo(e) {
const {
width: o,
height: t
} = $n(e);
return {
width: o,
height: t
};
}
function wo(e, o, t) {
const i = _e(o), u = $e(o), f = t === "fixed", c = Ze(e, !0, f, o);
let d = {
scrollLeft: 0,
scrollTop: 0
};
const y = we(0);
if (i || !i && !f)
if ((Pe(o) !== "body" || Je(u)) && (d = mt(o)), i) {
const B = Ze(o, !0, f, o);
y.x = B.x + o.clientLeft, y.y = B.y + o.clientTop;
} else u && (y.x = jt(u));
const h = u && !i && !f ? Yn(u, d) : we(0), v = c.left + d.scrollLeft - y.x - h.x, _ = c.top + d.scrollTop - y.y - h.y;
return {
x: v,
y: _,
width: c.width,
height: c.height
};
}
function Yt(e) {
return ge(e).position === "static";
}
function hn(e, o) {
if (!_e(e) || ge(e).position === "fixed")
return null;
if (o)
return o(e);
let t = e.offsetParent;
return $e(e) === t && (t = t.ownerDocument.body), t;
}
function On(e, o) {
const t = he(e);
if (pt(e))
return t;
if (!_e(e)) {
let u = De(e);
for (; u && !Ve(u); ) {
if (ve(u) && !Yt(u))
return u;
u = De(u);
}
return t;
}
let i = hn(e, o);
for (; i && lo(i) && Yt(i); )
i = hn(i, o);
return i && Ve(i) && Yt(i) && !Rt(i) ? t : i || so(e) || t;
}
const _o = async function(e) {
const o = this.getOffsetParent || On, t = this.getDimensions, i = await t(e.floating);
return {
reference: wo(e.reference, await o(e.floating), e.strategy),
floating: {
x: 0,
y: 0,
width: i.width,
height: i.height
}
};
};
function ko(e) {
return ge(e).direction === "rtl";
}
const Mo = {
convertOffsetParentRelativeRectToViewportRelativeRect: fo,
getDocumentElement: $e,
getClippingRect: yo,
getOffsetParent: On,
getElementRects: _o,
getClientRects: ho,
getDimensions: bo,
getScale: Le,
isElement: ve,
isRTL: ko
}, xo = io, $o = (e, o, t) => {
const i = /* @__PURE__ */ new Map(), u = {
platform: Mo,
...t
}, f = {
...u.platform,
_c: i
};
return oo(e, o, {
...u,
platform: f
});
};
function Co(e) {
return e != null && typeof e == "object" && "$el" in e;
}
function pn(e) {
if (Co(e)) {
const o = e.$el;
return At(o) && Pe(o) === "#comment" ? null : o;
}
return e;
}
function Ne(e) {
return typeof e == "function" ? e() : pe(e);
}
function Tn(e) {
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
}
function mn(e, o) {
const t = Tn(e);
return Math.round(o * t) / t;
}
function Do(e, o, t) {
t === void 0 && (t = {});
const i = t.whileElementsMounted, u = ne(() => {
var X;
return (X = Ne(t.open)) != null ? X : !0;
}), f = ne(() => Ne(t.middleware)), c = ne(() => {
var X;
return (X = Ne(t.placement)) != null ? X : "bottom";
}), d = ne(() => {
var X;
return (X = Ne(t.strategy)) != null ? X : "absolute";
}), y = ne(() => {
var X;
return (X = Ne(t.transform)) != null ? X : !0;
}), h = ne(() => pn(e.value)), v = ne(() => pn(o.value)), _ = ce(0), B = ce(0), S = ce(d.value), A = ce(c.value), j = Vr({}), I = ce(!1), ee = ne(() => {
const X = {
position: S.value,
left: "0",
top: "0"
};
if (!v.value)
return X;
const F = mn(v.value, _.value), re = mn(v.value, B.value);
return y.value ? {
...X,
transform: "translate(" + F + "px, " + re + "px)",
...Tn(v.value) >= 1.5 && {
willChange: "transform"
}
} : {
position: S.value,
left: F + "px",
top: re + "px"
};
});
let K;
function U() {
if (h.value == null || v.value == null)
return;
const X = u.value;
$o(h.value, v.value, {
middleware: f.value,
placement: c.value,
strategy: d.value
}).then((F) => {
_.value = F.x, B.value = F.y, S.value = F.strategy, A.value = F.placement, j.value = F.middlewareData, I.value = X !== !1;
});
}
function Q() {
typeof K == "function" && (K(), K = void 0);
}
function C() {
if (Q(), i === void 0) {
U();
return;
}
if (h.value != null && v.value != null) {
K = i(h.value, v.value, U);
return;
}
}
function Z() {
u.value || (I.value = !1);
}
return Ue([f, c, d, u], U, {
flush: "sync"
}), Ue([h, v], C, {
flush: "sync"
}), Ue(u, Z, {
flush: "sync"
}), Hr() && Fr(Q), {
x: Ee(_),
y: Ee(B),
strategy: Ee(S),
placement: Ee(A),
middlewareData: Ee(j),
isPositioned: Ee(I),
floatingStyles: ee,
update: U
};
}
const Yo = { class: "sib-calendar" }, So = {
key: 0,
class: "sib-calendar__header"
}, Oo = ["disabled", "aria-label"], To = { class: "sib-calendar__header__date" }, Bo = ["aria-label"], Io = ["aria-label"], Po = ["disabled", "aria-label"], Ao = {
class: "sib-calendar__table",
role: "grid",
"aria-labelledby": "Days calendar"
}, Ro = {
class: "sib-calendar__table__head",
role: "rowgroup"
}, Eo = {
class: "sib-calendar__table__head__row",
role: "row"
}, jo = ["aria-label"], zo = ["onMouseenter"], Lo = ["disabled", "data-test-id", "onClick"], Vo = {
class: "sib-calendar__table",
role: "grid",
"aria-labelledby": "Months calendar"
}, Ho = ["onMouseenter"], Fo = ["disabled", "data-test-id", "onClick"], Wo = ["onMouseenter"], No = ["disabled", "data-test-id", "onClick"], Go = /* @__PURE__ */ gn({
__name: "VueCalendar",
props: {
opened: { type: Boolean },
value: {},
range: { type: Boolean },
monthPicker: { type: Boolean },
yearPicker: { type: Boolean },
startWeekOnMonday: { type: Boolean },
hideTodayMark: { type: Boolean },
min: {},
max: {},
styles: {}
},
emits: ["change"],
setup(e, { emit: o }) {
yn((s) => ({
"04131db7": s.styles.container.width,
a554f654: s.styles.container.paddingX,
"1cde86d4": s.styles.table.gap,
a554f652: s.styles.container.paddingY,
"5ad5825b": s.styles.container.border,
"70766acd": s.styles.container.borderRadius,
"5f3a6d86": s.styles.container.backgroundColor,
d658a388: s.styles.container.boxShadow,
"10eff850": s.styles.header.marginBottom,
"7274e738": s.styles.headerButton.padding,
dfab0f14: s.styles.headerButton.color,
"73724d79": s.styles.headerButton.border,
"6809e76b": s.styles.headerButton.borderRadius,
"136d4428": s.styles.headerButton.backgroundColor,
"4e56d486": s.styles.headerButton.hoverBackgroundColor,
"5e905976": s.styles.headerButton.restricted.opacity,
"904f33b2": s.styles.headerButton.iconSize,
ee99e224: s.styles.headerDateItem.fontSize,
"2ebe6a25": s.styles.headerDateItem.fontWeight,
"3bc64cb9": s.styles.headerDateItem.l