UNPKG

mealcomes

Version:

MealComes 用于学习前端的组件库

376 lines (375 loc) 14.7 kB
/** * @vue/shared v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ process.env.NODE_ENV !== "production" && Object.freeze({}); process.env.NODE_ENV !== "production" && Object.freeze([]); const nt = (M) => typeof M == "string", rt = (M) => M !== null && typeof M == "object"; var G = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Q(M) { return M && M.__esModule && Object.prototype.hasOwnProperty.call(M, "default") ? M.default : M; } var K = { exports: {} }; (function(M, X) { (function(N, g) { M.exports = g(); })(G, function() { var N = 1e3, g = 6e4, m = 36e5, E = "millisecond", k = "second", $ = "minute", w = "hour", S = "day", W = "week", i = "month", c = "quarter", v = "year", O = "date", C = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|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, J = { 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(s) { var n = ["th", "st", "nd", "rd"], t = s % 100; return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]"; } }, T = function(s, n, t) { var r = String(s); return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(t) + s; }, Z = { s: T, z: function(s) { var n = -s.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60; return (n <= 0 ? "+" : "-") + T(r, 2, "0") + ":" + T(e, 2, "0"); }, m: function s(n, t) { if (n.date() < t.date()) return -s(t, n); var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, i), a = t - e < 0, u = n.clone().add(r + (a ? -1 : 1), i); return +(-(r + (t - e) / (a ? e - u : u - e)) || 0); }, a: function(s) { return s < 0 ? Math.ceil(s) || 0 : Math.floor(s); }, p: function(s) { return { M: i, y: v, w: W, d: S, D: O, h: w, m: $, s: k, ms: E, Q: c }[s] || String(s || "").toLowerCase().replace(/s$/, ""); }, u: function(s) { return s === void 0; } }, _ = "en", b = {}; b[_] = J; var q = "$isDayjsObject", P = function(s) { return s instanceof U || !(!s || !s[q]); }, I = function s(n, t, r) { var e; if (!n) return _; if (typeof n == "string") { var a = n.toLowerCase(); b[a] && (e = a), t && (b[a] = t, e = a); var u = n.split("-"); if (!e && u.length > 1) return s(u[0]); } else { var f = n.name; b[f] = n, e = f; } return !r && e && (_ = e), e || !r && _; }, h = function(s, n) { if (P(s)) return s.clone(); var t = typeof n == "object" ? n : {}; return t.date = s, t.args = arguments, new U(t); }, o = Z; o.l = I, o.i = P, o.w = function(s, n) { return h(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset }); }; var U = function() { function s(t) { this.$L = I(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[q] = !0; } var n = s.prototype; return n.parse = function(t) { this.$d = function(r) { var e = r.date, a = r.utc; if (e === null) return /* @__PURE__ */ new Date(NaN); if (o.u(e)) return /* @__PURE__ */ new Date(); if (e instanceof Date) return new Date(e); if (typeof e == "string" && !/Z$/i.test(e)) { var u = e.match(j); if (u) { var f = u[2] - 1 || 0, d = (u[7] || "0").substring(0, 3); return a ? new Date(Date.UTC(u[1], f, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, d)) : new Date(u[1], f, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, d); } } return new Date(e); }(t), this.init(); }, n.init = function() { var t = this.$d; this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds(); }, n.$utils = function() { return o; }, n.isValid = function() { return this.$d.toString() !== C; }, n.isSame = function(t, r) { var e = h(t); return this.startOf(r) <= e && e <= this.endOf(r); }, n.isAfter = function(t, r) { return h(t) < this.startOf(r); }, n.isBefore = function(t, r) { return this.endOf(r) < h(t); }, n.$g = function(t, r, e) { return o.u(t) ? this[r] : this.set(e, t); }, n.unix = function() { return Math.floor(this.valueOf() / 1e3); }, n.valueOf = function() { return this.$d.getTime(); }, n.startOf = function(t, r) { var e = this, a = !!o.u(r) || r, u = o.p(t), f = function(H, p) { var x = o.w(e.$u ? Date.UTC(e.$y, p, H) : new Date(e.$y, p, H), e); return a ? x : x.endOf(S); }, d = function(H, p) { return o.w(e.toDate()[H].apply(e.toDate("s"), (a ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(p)), e); }, l = this.$W, y = this.$M, D = this.$D, L = "set" + (this.$u ? "UTC" : ""); switch (u) { case v: return a ? f(1, 0) : f(31, 11); case i: return a ? f(1, y) : f(0, y + 1); case W: var Y = this.$locale().weekStart || 0, A = (l < Y ? l + 7 : l) - Y; return f(a ? D - A : D + (6 - A), y); case S: case O: return d(L + "Hours", 0); case w: return d(L + "Minutes", 1); case $: return d(L + "Seconds", 2); case k: return d(L + "Milliseconds", 3); default: return this.clone(); } }, n.endOf = function(t) { return this.startOf(t, !1); }, n.$set = function(t, r) { var e, a = o.p(t), u = "set" + (this.$u ? "UTC" : ""), f = (e = {}, e[S] = u + "Date", e[O] = u + "Date", e[i] = u + "Month", e[v] = u + "FullYear", e[w] = u + "Hours", e[$] = u + "Minutes", e[k] = u + "Seconds", e[E] = u + "Milliseconds", e)[a], d = a === S ? this.$D + (r - this.$W) : r; if (a === i || a === v) { var l = this.clone().set(O, 1); l.$d[f](d), l.init(), this.$d = l.set(O, Math.min(this.$D, l.daysInMonth())).$d; } else f && this.$d[f](d); return this.init(), this; }, n.set = function(t, r) { return this.clone().$set(t, r); }, n.get = function(t) { return this[o.p(t)](); }, n.add = function(t, r) { var e, a = this; t = Number(t); var u = o.p(r), f = function(y) { var D = h(a); return o.w(D.date(D.date() + Math.round(y * t)), a); }; if (u === i) return this.set(i, this.$M + t); if (u === v) return this.set(v, this.$y + t); if (u === S) return f(1); if (u === W) return f(7); var d = (e = {}, e[$] = g, e[w] = m, e[k] = N, e)[u] || 1, l = this.$d.getTime() + t * d; return o.w(l, this); }, n.subtract = function(t, r) { return this.add(-1 * t, r); }, n.format = function(t) { var r = this, e = this.$locale(); if (!this.isValid()) return e.invalidDate || C; var a = t || "YYYY-MM-DDTHH:mm:ssZ", u = o.z(this), f = this.$H, d = this.$m, l = this.$M, y = e.weekdays, D = e.months, L = e.meridiem, Y = function(p, x, F, z) { return p && (p[x] || p(r, a)) || F[x].slice(0, z); }, A = function(p) { return o.s(f % 12 || 12, p, "0"); }, H = L || function(p, x, F) { var z = p < 12 ? "AM" : "PM"; return F ? z.toLowerCase() : z; }; return a.replace(V, function(p, x) { return x || function(F) { switch (F) { case "YY": return String(r.$y).slice(-2); case "YYYY": return o.s(r.$y, 4, "0"); case "M": return l + 1; case "MM": return o.s(l + 1, 2, "0"); case "MMM": return Y(e.monthsShort, l, D, 3); case "MMMM": return Y(D, l); case "D": return r.$D; case "DD": return o.s(r.$D, 2, "0"); case "d": return String(r.$W); case "dd": return Y(e.weekdaysMin, r.$W, y, 2); case "ddd": return Y(e.weekdaysShort, r.$W, y, 3); case "dddd": return y[r.$W]; case "H": return String(f); case "HH": return o.s(f, 2, "0"); case "h": return A(1); case "hh": return A(2); case "a": return H(f, d, !0); case "A": return H(f, d, !1); case "m": return String(d); case "mm": return o.s(d, 2, "0"); case "s": return String(r.$s); case "ss": return o.s(r.$s, 2, "0"); case "SSS": return o.s(r.$ms, 3, "0"); case "Z": return u; } return null; }(p) || u.replace(":", ""); }); }, n.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, n.diff = function(t, r, e) { var a, u = this, f = o.p(r), d = h(t), l = (d.utcOffset() - this.utcOffset()) * g, y = this - d, D = function() { return o.m(u, d); }; switch (f) { case v: a = D() / 12; break; case i: a = D(); break; case c: a = D() / 3; break; case W: a = (y - l) / 6048e5; break; case S: a = (y - l) / 864e5; break; case w: a = y / m; break; case $: a = y / g; break; case k: a = y / N; break; default: a = y; } return e ? a : o.a(a); }, n.daysInMonth = function() { return this.endOf(i).$D; }, n.$locale = function() { return b[this.$L]; }, n.locale = function(t, r) { if (!t) return this.$L; var e = this.clone(), a = I(t, r, !0); return a && (e.$L = a), e; }, n.clone = function() { return o.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(); }, s; }(), B = U.prototype; return h.prototype = B, [["$ms", E], ["$s", k], ["$m", $], ["$H", w], ["$W", S], ["$M", i], ["$y", v], ["$D", O]].forEach(function(s) { B[s[1]] = function(n) { return this.$g(n, s[0], s[1]); }; }), h.extend = function(s, n) { return s.$i || (s(n, U, h), s.$i = !0), h; }, h.locale = I, h.isDayjs = P, h.unix = function(s) { return h(1e3 * s); }, h.en = b[_], h.Ls = b, h.p = {}, h; }); })(K); var tt = K.exports; const st = /* @__PURE__ */ Q(tt); var R = { exports: {} }; (function(M, X) { (function(N, g) { M.exports = g(); })(G, function() { return function(N, g, m) { var E = g.prototype, k = function(i) { return i && (i.indexOf ? i : i.s); }, $ = function(i, c, v, O, C) { var j = i.name ? i : i.$locale(), V = k(j[c]), J = k(j[v]), T = V || J.map(function(_) { return _.slice(0, O); }); if (!C) return T; var Z = j.weekStart; return T.map(function(_, b) { return T[(b + (Z || 0)) % 7]; }); }, w = function() { return m.Ls[m.locale()]; }, S = function(i, c) { return i.formats[c] || function(v) { return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(O, C, j) { return C || j.slice(1); }); }(i.formats[c.toUpperCase()]); }, W = function() { var i = this; return { months: function(c) { return c ? c.format("MMMM") : $(i, "months"); }, monthsShort: function(c) { return c ? c.format("MMM") : $(i, "monthsShort", "months", 3); }, firstDayOfWeek: function() { return i.$locale().weekStart || 0; }, weekdays: function(c) { return c ? c.format("dddd") : $(i, "weekdays"); }, weekdaysMin: function(c) { return c ? c.format("dd") : $(i, "weekdaysMin", "weekdays", 2); }, weekdaysShort: function(c) { return c ? c.format("ddd") : $(i, "weekdaysShort", "weekdays", 3); }, longDateFormat: function(c) { return S(i.$locale(), c); }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal }; }; E.localeData = function() { return W.bind(this)(); }, m.localeData = function() { var i = w(); return { firstDayOfWeek: function() { return i.weekStart || 0; }, weekdays: function() { return m.weekdays(); }, weekdaysShort: function() { return m.weekdaysShort(); }, weekdaysMin: function() { return m.weekdaysMin(); }, months: function() { return m.months(); }, monthsShort: function() { return m.monthsShort(); }, longDateFormat: function(c) { return S(i, c); }, meridiem: i.meridiem, ordinal: i.ordinal }; }, m.months = function() { return $(w(), "months"); }, m.monthsShort = function() { return $(w(), "monthsShort", "months", 3); }, m.weekdays = function(i) { return $(w(), "weekdays", null, null, i); }, m.weekdaysShort = function(i) { return $(w(), "weekdaysShort", "weekdays", 3, i); }, m.weekdaysMin = function(i) { return $(w(), "weekdaysMin", "weekdays", 2, i); }; }; }); })(R); var et = R.exports; const it = /* @__PURE__ */ Q(et); export { nt as a, st as d, rt as i, it as l }; //# sourceMappingURL=vendor-A6FqSOUk.mjs.map