@univerjs/design 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,178 +1,177 @@
1
- var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function lt(s) {
3
- return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
1
+ function _e(i) {
2
+ return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
4
3
  }
5
- var et = { exports: {} }, z = { exports: {} }, Q;
6
- function dt() {
7
- return Q || (Q = 1, function(s, M) {
8
- (function(h, u) {
9
- s.exports = u();
10
- })(tt, function() {
11
- var h = 1e3, u = 6e4, p = 36e5, d = "millisecond", _ = "second", m = "minute", S = "hour", w = "day", O = "week", x = "month", C = "quarter", Y = "year", f = "date", j = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|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, E = { 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(o) {
12
- var r = ["th", "st", "nd", "rd"], t = o % 100;
13
- return "[" + o + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
14
- } }, J = function(o, r, t) {
4
+ var Z = { exports: {} }, z = { exports: {} }, ve = z.exports, oe;
5
+ function $e() {
6
+ return oe || (oe = 1, function(i, m) {
7
+ (function(l, a) {
8
+ i.exports = a();
9
+ })(ve, function() {
10
+ var l = 1e3, a = 6e4, h = 36e5, d = "millisecond", _ = "second", v = "minute", g = "hour", O = "day", w = "week", D = "month", T = "quarter", Y = "year", f = "date", j = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|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, H = { 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(o) {
11
+ var r = ["th", "st", "nd", "rd"], e = o % 100;
12
+ return "[" + o + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
13
+ } }, V = function(o, r, e) {
15
14
  var n = String(o);
16
- return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(t) + o;
17
- }, ft = { s: J, z: function(o) {
18
- var r = -o.utcOffset(), t = Math.abs(r), n = Math.floor(t / 60), e = t % 60;
19
- return (r <= 0 ? "+" : "-") + J(n, 2, "0") + ":" + J(e, 2, "0");
20
- }, m: function o(r, t) {
21
- if (r.date() < t.date()) return -o(t, r);
22
- var n = 12 * (t.year() - r.year()) + (t.month() - r.month()), e = r.clone().add(n, x), i = t - e < 0, a = r.clone().add(n + (i ? -1 : 1), x);
23
- return +(-(n + (t - e) / (i ? e - a : a - e)) || 0);
15
+ return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(e) + o;
16
+ }, me = { s: V, z: function(o) {
17
+ var r = -o.utcOffset(), e = Math.abs(r), n = Math.floor(e / 60), t = e % 60;
18
+ return (r <= 0 ? "+" : "-") + V(n, 2, "0") + ":" + V(t, 2, "0");
19
+ }, m: function o(r, e) {
20
+ if (r.date() < e.date()) return -o(e, r);
21
+ var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, D), s = e - t < 0, u = r.clone().add(n + (s ? -1 : 1), D);
22
+ return +(-(n + (e - t) / (s ? t - u : u - t)) || 0);
24
23
  }, a: function(o) {
25
24
  return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
26
25
  }, p: function(o) {
27
- return { M: x, y: Y, w: O, d: w, D: f, h: S, m, s: _, ms: d, Q: C }[o] || String(o || "").toLowerCase().replace(/s$/, "");
26
+ return { M: D, y: Y, w, d: O, D: f, h: g, m: v, s: _, ms: d, Q: T }[o] || String(o || "").toLowerCase().replace(/s$/, "");
28
27
  }, u: function(o) {
29
28
  return o === void 0;
30
- } }, R = "en", k = {};
31
- k[R] = E;
32
- var B = "$isDayjsObject", Z = function(o) {
33
- return o instanceof I || !(!o || !o[B]);
34
- }, q = function o(r, t, n) {
35
- var e;
36
- if (!r) return R;
29
+ } }, U = "en", q = {};
30
+ q[U] = H;
31
+ var ne = "$isDayjsObject", B = function(o) {
32
+ return o instanceof N || !(!o || !o[ne]);
33
+ }, K = function o(r, e, n) {
34
+ var t;
35
+ if (!r) return U;
37
36
  if (typeof r == "string") {
38
- var i = r.toLowerCase();
39
- k[i] && (e = i), t && (k[i] = t, e = i);
40
- var a = r.split("-");
41
- if (!e && a.length > 1) return o(a[0]);
37
+ var s = r.toLowerCase();
38
+ q[s] && (t = s), e && (q[s] = e, t = s);
39
+ var u = r.split("-");
40
+ if (!t && u.length > 1) return o(u[0]);
42
41
  } else {
43
- var l = r.name;
44
- k[l] = r, e = l;
42
+ var p = r.name;
43
+ q[p] = r, t = p;
45
44
  }
46
- return !n && e && (R = e), e || !n && R;
47
- }, v = function(o, r) {
48
- if (Z(o)) return o.clone();
49
- var t = typeof r == "object" ? r : {};
50
- return t.date = o, t.args = arguments, new I(t);
51
- }, c = ft;
52
- c.l = q, c.i = Z, c.w = function(o, r) {
53
- return v(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
45
+ return !n && t && (U = t), t || !n && U;
46
+ }, $ = function(o, r) {
47
+ if (B(o)) return o.clone();
48
+ var e = typeof r == "object" ? r : {};
49
+ return e.date = o, e.args = arguments, new N(e);
50
+ }, c = me;
51
+ c.l = K, c.i = B, c.w = function(o, r) {
52
+ return $(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
54
53
  };
55
- var I = function() {
56
- function o(t) {
57
- this.$L = q(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[B] = !0;
54
+ var N = function() {
55
+ function o(e) {
56
+ this.$L = K(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[ne] = !0;
58
57
  }
59
58
  var r = o.prototype;
60
- return r.parse = function(t) {
59
+ return r.parse = function(e) {
61
60
  this.$d = function(n) {
62
- var e = n.date, i = n.utc;
63
- if (e === null) return /* @__PURE__ */ new Date(NaN);
64
- if (c.u(e)) return /* @__PURE__ */ new Date();
65
- if (e instanceof Date) return new Date(e);
66
- if (typeof e == "string" && !/Z$/i.test(e)) {
67
- var a = e.match(A);
68
- if (a) {
69
- var l = a[2] - 1 || 0, y = (a[7] || "0").substring(0, 3);
70
- return i ? new Date(Date.UTC(a[1], l, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, y)) : new Date(a[1], l, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, y);
61
+ var t = n.date, s = n.utc;
62
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
63
+ if (c.u(t)) return /* @__PURE__ */ new Date();
64
+ if (t instanceof Date) return new Date(t);
65
+ if (typeof t == "string" && !/Z$/i.test(t)) {
66
+ var u = t.match(E);
67
+ if (u) {
68
+ var p = u[2] - 1 || 0, y = (u[7] || "0").substring(0, 3);
69
+ return s ? new Date(Date.UTC(u[1], p, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y)) : new Date(u[1], p, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y);
71
70
  }
72
71
  }
73
- return new Date(e);
74
- }(t), this.init();
72
+ return new Date(t);
73
+ }(e), this.init();
75
74
  }, r.init = function() {
76
- var t = this.$d;
77
- 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();
75
+ var e = this.$d;
76
+ 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();
78
77
  }, r.$utils = function() {
79
78
  return c;
80
79
  }, r.isValid = function() {
81
80
  return this.$d.toString() !== j;
82
- }, r.isSame = function(t, n) {
83
- var e = v(t);
84
- return this.startOf(n) <= e && e <= this.endOf(n);
85
- }, r.isAfter = function(t, n) {
86
- return v(t) < this.startOf(n);
87
- }, r.isBefore = function(t, n) {
88
- return this.endOf(n) < v(t);
89
- }, r.$g = function(t, n, e) {
90
- return c.u(t) ? this[n] : this.set(e, t);
81
+ }, r.isSame = function(e, n) {
82
+ var t = $(e);
83
+ return this.startOf(n) <= t && t <= this.endOf(n);
84
+ }, r.isAfter = function(e, n) {
85
+ return $(e) < this.startOf(n);
86
+ }, r.isBefore = function(e, n) {
87
+ return this.endOf(n) < $(e);
88
+ }, r.$g = function(e, n, t) {
89
+ return c.u(e) ? this[n] : this.set(t, e);
91
90
  }, r.unix = function() {
92
91
  return Math.floor(this.valueOf() / 1e3);
93
92
  }, r.valueOf = function() {
94
93
  return this.$d.getTime();
95
- }, r.startOf = function(t, n) {
96
- var e = this, i = !!c.u(n) || n, a = c.p(t), l = function(H, D) {
97
- var L = c.w(e.$u ? Date.UTC(e.$y, D, H) : new Date(e.$y, D, H), e);
98
- return i ? L : L.endOf(w);
99
- }, y = function(H, D) {
100
- return c.w(e.toDate()[H].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), e);
101
- }, $ = this.$W, b = this.$M, g = this.$D, F = "set" + (this.$u ? "UTC" : "");
102
- switch (a) {
94
+ }, r.startOf = function(e, n) {
95
+ var t = this, s = !!c.u(n) || n, u = c.p(e), p = function(k, b) {
96
+ var R = c.w(t.$u ? Date.UTC(t.$y, b, k) : new Date(t.$y, b, k), t);
97
+ return s ? R : R.endOf(O);
98
+ }, y = function(k, b) {
99
+ return c.w(t.toDate()[k].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(b)), t);
100
+ }, M = this.$W, x = this.$M, S = this.$D, C = "set" + (this.$u ? "UTC" : "");
101
+ switch (u) {
103
102
  case Y:
104
- return i ? l(1, 0) : l(31, 11);
105
- case x:
106
- return i ? l(1, b) : l(0, b + 1);
107
- case O:
108
- var T = this.$locale().weekStart || 0, U = ($ < T ? $ + 7 : $) - T;
109
- return l(i ? g - U : g + (6 - U), b);
103
+ return s ? p(1, 0) : p(31, 11);
104
+ case D:
105
+ return s ? p(1, x) : p(0, x + 1);
110
106
  case w:
107
+ var L = this.$locale().weekStart || 0, F = (M < L ? M + 7 : M) - L;
108
+ return p(s ? S - F : S + (6 - F), x);
109
+ case O:
111
110
  case f:
112
- return y(F + "Hours", 0);
113
- case S:
114
- return y(F + "Minutes", 1);
115
- case m:
116
- return y(F + "Seconds", 2);
111
+ return y(C + "Hours", 0);
112
+ case g:
113
+ return y(C + "Minutes", 1);
114
+ case v:
115
+ return y(C + "Seconds", 2);
117
116
  case _:
118
- return y(F + "Milliseconds", 3);
117
+ return y(C + "Milliseconds", 3);
119
118
  default:
120
119
  return this.clone();
121
120
  }
122
- }, r.endOf = function(t) {
123
- return this.startOf(t, !1);
124
- }, r.$set = function(t, n) {
125
- var e, i = c.p(t), a = "set" + (this.$u ? "UTC" : ""), l = (e = {}, e[w] = a + "Date", e[f] = a + "Date", e[x] = a + "Month", e[Y] = a + "FullYear", e[S] = a + "Hours", e[m] = a + "Minutes", e[_] = a + "Seconds", e[d] = a + "Milliseconds", e)[i], y = i === w ? this.$D + (n - this.$W) : n;
126
- if (i === x || i === Y) {
127
- var $ = this.clone().set(f, 1);
128
- $.$d[l](y), $.init(), this.$d = $.set(f, Math.min(this.$D, $.daysInMonth())).$d;
129
- } else l && this.$d[l](y);
121
+ }, r.endOf = function(e) {
122
+ return this.startOf(e, !1);
123
+ }, r.$set = function(e, n) {
124
+ var t, s = c.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (t = {}, t[O] = u + "Date", t[f] = u + "Date", t[D] = u + "Month", t[Y] = u + "FullYear", t[g] = u + "Hours", t[v] = u + "Minutes", t[_] = u + "Seconds", t[d] = u + "Milliseconds", t)[s], y = s === O ? this.$D + (n - this.$W) : n;
125
+ if (s === D || s === Y) {
126
+ var M = this.clone().set(f, 1);
127
+ M.$d[p](y), M.init(), this.$d = M.set(f, Math.min(this.$D, M.daysInMonth())).$d;
128
+ } else p && this.$d[p](y);
130
129
  return this.init(), this;
131
- }, r.set = function(t, n) {
132
- return this.clone().$set(t, n);
133
- }, r.get = function(t) {
134
- return this[c.p(t)]();
135
- }, r.add = function(t, n) {
136
- var e, i = this;
137
- t = Number(t);
138
- var a = c.p(n), l = function(b) {
139
- var g = v(i);
140
- return c.w(g.date(g.date() + Math.round(b * t)), i);
130
+ }, r.set = function(e, n) {
131
+ return this.clone().$set(e, n);
132
+ }, r.get = function(e) {
133
+ return this[c.p(e)]();
134
+ }, r.add = function(e, n) {
135
+ var t, s = this;
136
+ e = Number(e);
137
+ var u = c.p(n), p = function(x) {
138
+ var S = $(s);
139
+ return c.w(S.date(S.date() + Math.round(x * e)), s);
141
140
  };
142
- if (a === x) return this.set(x, this.$M + t);
143
- if (a === Y) return this.set(Y, this.$y + t);
144
- if (a === w) return l(1);
145
- if (a === O) return l(7);
146
- var y = (e = {}, e[m] = u, e[S] = p, e[_] = h, e)[a] || 1, $ = this.$d.getTime() + t * y;
147
- return c.w($, this);
148
- }, r.subtract = function(t, n) {
149
- return this.add(-1 * t, n);
150
- }, r.format = function(t) {
151
- var n = this, e = this.$locale();
152
- if (!this.isValid()) return e.invalidDate || j;
153
- var i = t || "YYYY-MM-DDTHH:mm:ssZ", a = c.z(this), l = this.$H, y = this.$m, $ = this.$M, b = e.weekdays, g = e.months, F = e.meridiem, T = function(D, L, W, N) {
154
- return D && (D[L] || D(n, i)) || W[L].slice(0, N);
155
- }, U = function(D) {
156
- return c.s(l % 12 || 12, D, "0");
157
- }, H = F || function(D, L, W) {
158
- var N = D < 12 ? "AM" : "PM";
159
- return W ? N.toLowerCase() : N;
141
+ if (u === D) return this.set(D, this.$M + e);
142
+ if (u === Y) return this.set(Y, this.$y + e);
143
+ if (u === O) return p(1);
144
+ if (u === w) return p(7);
145
+ var y = (t = {}, t[v] = a, t[g] = h, t[_] = l, t)[u] || 1, M = this.$d.getTime() + e * y;
146
+ return c.w(M, this);
147
+ }, r.subtract = function(e, n) {
148
+ return this.add(-1 * e, n);
149
+ }, r.format = function(e) {
150
+ var n = this, t = this.$locale();
151
+ if (!this.isValid()) return t.invalidDate || j;
152
+ var s = e || "YYYY-MM-DDTHH:mm:ssZ", u = c.z(this), p = this.$H, y = this.$m, M = this.$M, x = t.weekdays, S = t.months, C = t.meridiem, L = function(b, R, W, J) {
153
+ return b && (b[R] || b(n, s)) || W[R].slice(0, J);
154
+ }, F = function(b) {
155
+ return c.s(p % 12 || 12, b, "0");
156
+ }, k = C || function(b, R, W) {
157
+ var J = b < 12 ? "AM" : "PM";
158
+ return W ? J.toLowerCase() : J;
160
159
  };
161
- return i.replace(P, function(D, L) {
162
- return L || function(W) {
160
+ return s.replace(P, function(b, R) {
161
+ return R || function(W) {
163
162
  switch (W) {
164
163
  case "YY":
165
164
  return String(n.$y).slice(-2);
166
165
  case "YYYY":
167
166
  return c.s(n.$y, 4, "0");
168
167
  case "M":
169
- return $ + 1;
168
+ return M + 1;
170
169
  case "MM":
171
- return c.s($ + 1, 2, "0");
170
+ return c.s(M + 1, 2, "0");
172
171
  case "MMM":
173
- return T(e.monthsShort, $, g, 3);
172
+ return L(t.monthsShort, M, S, 3);
174
173
  case "MMMM":
175
- return T(g, $);
174
+ return L(S, M);
176
175
  case "D":
177
176
  return n.$D;
178
177
  case "DD":
@@ -180,23 +179,23 @@ function dt() {
180
179
  case "d":
181
180
  return String(n.$W);
182
181
  case "dd":
183
- return T(e.weekdaysMin, n.$W, b, 2);
182
+ return L(t.weekdaysMin, n.$W, x, 2);
184
183
  case "ddd":
185
- return T(e.weekdaysShort, n.$W, b, 3);
184
+ return L(t.weekdaysShort, n.$W, x, 3);
186
185
  case "dddd":
187
- return b[n.$W];
186
+ return x[n.$W];
188
187
  case "H":
189
- return String(l);
188
+ return String(p);
190
189
  case "HH":
191
- return c.s(l, 2, "0");
190
+ return c.s(p, 2, "0");
192
191
  case "h":
193
- return U(1);
192
+ return F(1);
194
193
  case "hh":
195
- return U(2);
194
+ return F(2);
196
195
  case "a":
197
- return H(l, y, !0);
196
+ return k(p, y, !0);
198
197
  case "A":
199
- return H(l, y, !1);
198
+ return k(p, y, !1);
200
199
  case "m":
201
200
  return String(y);
202
201
  case "mm":
@@ -208,54 +207,54 @@ function dt() {
208
207
  case "SSS":
209
208
  return c.s(n.$ms, 3, "0");
210
209
  case "Z":
211
- return a;
210
+ return u;
212
211
  }
213
212
  return null;
214
- }(D) || a.replace(":", "");
213
+ }(b) || u.replace(":", "");
215
214
  });
216
215
  }, r.utcOffset = function() {
217
216
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
218
- }, r.diff = function(t, n, e) {
219
- var i, a = this, l = c.p(n), y = v(t), $ = (y.utcOffset() - this.utcOffset()) * u, b = this - y, g = function() {
220
- return c.m(a, y);
217
+ }, r.diff = function(e, n, t) {
218
+ var s, u = this, p = c.p(n), y = $(e), M = (y.utcOffset() - this.utcOffset()) * a, x = this - y, S = function() {
219
+ return c.m(u, y);
221
220
  };
222
- switch (l) {
221
+ switch (p) {
223
222
  case Y:
224
- i = g() / 12;
223
+ s = S() / 12;
225
224
  break;
226
- case x:
227
- i = g();
225
+ case D:
226
+ s = S();
228
227
  break;
229
- case C:
230
- i = g() / 3;
231
- break;
232
- case O:
233
- i = (b - $) / 6048e5;
228
+ case T:
229
+ s = S() / 3;
234
230
  break;
235
231
  case w:
236
- i = (b - $) / 864e5;
232
+ s = (x - M) / 6048e5;
237
233
  break;
238
- case S:
239
- i = b / p;
234
+ case O:
235
+ s = (x - M) / 864e5;
236
+ break;
237
+ case g:
238
+ s = x / h;
240
239
  break;
241
- case m:
242
- i = b / u;
240
+ case v:
241
+ s = x / a;
243
242
  break;
244
243
  case _:
245
- i = b / h;
244
+ s = x / l;
246
245
  break;
247
246
  default:
248
- i = b;
247
+ s = x;
249
248
  }
250
- return e ? i : c.a(i);
249
+ return t ? s : c.a(s);
251
250
  }, r.daysInMonth = function() {
252
- return this.endOf(x).$D;
251
+ return this.endOf(D).$D;
253
252
  }, r.$locale = function() {
254
- return k[this.$L];
255
- }, r.locale = function(t, n) {
256
- if (!t) return this.$L;
257
- var e = this.clone(), i = q(t, n, !0);
258
- return i && (e.$L = i), e;
253
+ return q[this.$L];
254
+ }, r.locale = function(e, n) {
255
+ if (!e) return this.$L;
256
+ var t = this.clone(), s = K(e, n, !0);
257
+ return s && (t.$L = s), t;
259
258
  }, r.clone = function() {
260
259
  return c.w(this.$d, this);
261
260
  }, r.toDate = function() {
@@ -267,175 +266,196 @@ function dt() {
267
266
  }, r.toString = function() {
268
267
  return this.$d.toUTCString();
269
268
  }, o;
270
- }(), G = I.prototype;
271
- return v.prototype = G, [["$ms", d], ["$s", _], ["$m", m], ["$H", S], ["$W", w], ["$M", x], ["$y", Y], ["$D", f]].forEach(function(o) {
272
- G[o[1]] = function(r) {
269
+ }(), ie = N.prototype;
270
+ return $.prototype = ie, [["$ms", d], ["$s", _], ["$m", v], ["$H", g], ["$W", O], ["$M", D], ["$y", Y], ["$D", f]].forEach(function(o) {
271
+ ie[o[1]] = function(r) {
273
272
  return this.$g(r, o[0], o[1]);
274
273
  };
275
- }), v.extend = function(o, r) {
276
- return o.$i || (o(r, I, v), o.$i = !0), v;
277
- }, v.locale = q, v.isDayjs = Z, v.unix = function(o) {
278
- return v(1e3 * o);
279
- }, v.en = k[R], v.Ls = k, v.p = {}, v;
274
+ }), $.extend = function(o, r) {
275
+ return o.$i || (o(r, N, $), o.$i = !0), $;
276
+ }, $.locale = K, $.isDayjs = B, $.unix = function(o) {
277
+ return $(1e3 * o);
278
+ }, $.en = q[U], $.Ls = q, $.p = {}, $;
280
279
  });
281
280
  }(z)), z.exports;
282
281
  }
283
- (function(s, M) {
284
- (function(h, u) {
285
- s.exports = u(dt());
286
- })(tt, function(h) {
287
- function u(f) {
288
- return f && typeof f == "object" && "default" in f ? f : { default: f };
282
+ var Me = Z.exports, se;
283
+ function xe() {
284
+ return se || (se = 1, function(i, m) {
285
+ (function(l, a) {
286
+ i.exports = a($e());
287
+ })(Me, function(l) {
288
+ function a(f) {
289
+ return f && typeof f == "object" && "default" in f ? f : { default: f };
290
+ }
291
+ var h = a(l), d = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), _ = "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), v = "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"), g = "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"), O = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
292
+ function w(f, j, E) {
293
+ var P, H;
294
+ return E === "m" ? j ? "минута" : "минуту" : f + " " + (P = +f, H = { mm: j ? "минута_минуты_минут" : "минуту_минуты_минут", hh: "час_часа_часов", dd: "день_дня_дней", MM: "месяц_месяца_месяцев", yy: "год_года_лет" }[E].split("_"), P % 10 == 1 && P % 100 != 11 ? H[0] : P % 10 >= 2 && P % 10 <= 4 && (P % 100 < 10 || P % 100 >= 20) ? H[1] : H[2]);
295
+ }
296
+ var D = function(f, j) {
297
+ return O.test(j) ? d[f.month()] : _[f.month()];
298
+ };
299
+ D.s = _, D.f = d;
300
+ var T = function(f, j) {
301
+ return O.test(j) ? v[f.month()] : g[f.month()];
302
+ };
303
+ T.s = g, T.f = v;
304
+ var Y = { name: "ru", weekdays: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"), weekdaysShort: "вск_пнд_втр_срд_чтв_птн_сбт".split("_"), weekdaysMin: "вс_пн_вт_ср_чт_пт_сб".split("_"), months: D, monthsShort: T, weekStart: 1, yearStart: 4, formats: { 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" }, relativeTime: { future: "через %s", past: "%s назад", s: "несколько секунд", m: w, mm: w, h: "час", hh: w, d: "день", dd: w, M: "месяц", MM: w, y: "год", yy: w }, ordinal: function(f) {
305
+ return f;
306
+ }, meridiem: function(f) {
307
+ return f < 4 ? "ночи" : f < 12 ? "утра" : f < 17 ? "дня" : "вечера";
308
+ } };
309
+ return h.default.locale(Y, null, !0), Y;
310
+ });
311
+ }(Z)), Z.exports;
312
+ }
313
+ var De = xe();
314
+ const be = /* @__PURE__ */ _e(De);
315
+ var A = {}, Q = { exports: {} }, ue;
316
+ function Se() {
317
+ return ue || (ue = 1, function(i) {
318
+ function m(l) {
319
+ return l && l.__esModule ? l : {
320
+ default: l
321
+ };
289
322
  }
290
- var p = u(h), d = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), _ = "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), m = "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"), S = "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"), w = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
291
- function O(f, j, A) {
292
- var P, E;
293
- return A === "m" ? j ? "минута" : "минуту" : f + " " + (P = +f, E = { mm: j ? "минута_минуты_минут" : "минуту_минуты_минут", hh: "час_часа_часов", dd: "день_дня_дней", MM: "месяц_месяца_месяцев", yy: "год_года_лет" }[A].split("_"), P % 10 == 1 && P % 100 != 11 ? E[0] : P % 10 >= 2 && P % 10 <= 4 && (P % 100 < 10 || P % 100 >= 20) ? E[1] : E[2]);
323
+ i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
324
+ }(Q)), Q.exports;
325
+ }
326
+ var G = { exports: {} }, X = { exports: {} }, ee = { exports: {} }, te = { exports: {} }, ae;
327
+ function ye() {
328
+ return ae || (ae = 1, function(i) {
329
+ function m(l) {
330
+ "@babel/helpers - typeof";
331
+ return i.exports = m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
332
+ return typeof a;
333
+ } : function(a) {
334
+ return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
335
+ }, i.exports.__esModule = !0, i.exports.default = i.exports, m(l);
294
336
  }
295
- var x = function(f, j) {
296
- return w.test(j) ? d[f.month()] : _[f.month()];
297
- };
298
- x.s = _, x.f = d;
299
- var C = function(f, j) {
300
- return w.test(j) ? m[f.month()] : S[f.month()];
301
- };
302
- C.s = S, C.f = m;
303
- var Y = { name: "ru", weekdays: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"), weekdaysShort: "вск_пнд_втр_срд_чтв_птн_сбт".split("_"), weekdaysMin: "вс_пн_вт_ср_чт_пт_сб".split("_"), months: x, monthsShort: C, weekStart: 1, yearStart: 4, formats: { 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" }, relativeTime: { future: "через %s", past: "%s назад", s: "несколько секунд", m: O, mm: O, h: "час", hh: O, d: "день", dd: O, M: "месяц", MM: O, y: "год", yy: O }, ordinal: function(f) {
304
- return f;
305
- }, meridiem: function(f) {
306
- return f < 4 ? "ночи" : f < 12 ? "утра" : f < 17 ? "дня" : "вечера";
307
- } };
308
- return p.default.locale(Y, null, !0), Y;
309
- });
310
- })(et);
311
- var pt = et.exports;
312
- const ht = /* @__PURE__ */ lt(pt);
313
- var V = {}, rt = { exports: {} };
314
- (function(s) {
315
- function M(h) {
316
- return h && h.__esModule ? h : {
317
- default: h
318
- };
319
- }
320
- s.exports = M, s.exports.__esModule = !0, s.exports.default = s.exports;
321
- })(rt);
322
- var _t = rt.exports, nt = { exports: {} }, ot = { exports: {} }, st = { exports: {} }, it = { exports: {} };
323
- (function(s) {
324
- function M(h) {
325
- "@babel/helpers - typeof";
326
- return s.exports = M = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
327
- return typeof u;
328
- } : function(u) {
329
- return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
330
- }, s.exports.__esModule = !0, s.exports.default = s.exports, M(h);
331
- }
332
- s.exports = M, s.exports.__esModule = !0, s.exports.default = s.exports;
333
- })(it);
334
- var at = it.exports, ut = { exports: {} };
335
- (function(s) {
336
- var M = at.default;
337
- function h(u, p) {
338
- if (M(u) != "object" || !u) return u;
339
- var d = u[Symbol.toPrimitive];
340
- if (d !== void 0) {
341
- var _ = d.call(u, p || "default");
342
- if (M(_) != "object") return _;
343
- throw new TypeError("@@toPrimitive must return a primitive value.");
337
+ i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
338
+ }(te)), te.exports;
339
+ }
340
+ var re = { exports: {} }, ce;
341
+ function ge() {
342
+ return ce || (ce = 1, function(i) {
343
+ var m = ye().default;
344
+ function l(a, h) {
345
+ if (m(a) != "object" || !a) return a;
346
+ var d = a[Symbol.toPrimitive];
347
+ if (d !== void 0) {
348
+ var _ = d.call(a, h || "default");
349
+ if (m(_) != "object") return _;
350
+ throw new TypeError("@@toPrimitive must return a primitive value.");
351
+ }
352
+ return (h === "string" ? String : Number)(a);
344
353
  }
345
- return (p === "string" ? String : Number)(u);
346
- }
347
- s.exports = h, s.exports.__esModule = !0, s.exports.default = s.exports;
348
- })(ut);
349
- var yt = ut.exports;
350
- (function(s) {
351
- var M = at.default, h = yt;
352
- function u(p) {
353
- var d = h(p, "string");
354
- return M(d) == "symbol" ? d : d + "";
355
- }
356
- s.exports = u, s.exports.__esModule = !0, s.exports.default = s.exports;
357
- })(st);
358
- var mt = st.exports;
359
- (function(s) {
360
- var M = mt;
361
- function h(u, p, d) {
362
- return (p = M(p)) in u ? Object.defineProperty(u, p, {
363
- value: d,
364
- enumerable: !0,
365
- configurable: !0,
366
- writable: !0
367
- }) : u[p] = d, u;
368
- }
369
- s.exports = h, s.exports.__esModule = !0, s.exports.default = s.exports;
370
- })(ot);
371
- var vt = ot.exports;
372
- (function(s) {
373
- var M = vt;
374
- function h(p, d) {
375
- var _ = Object.keys(p);
376
- if (Object.getOwnPropertySymbols) {
377
- var m = Object.getOwnPropertySymbols(p);
378
- d && (m = m.filter(function(S) {
379
- return Object.getOwnPropertyDescriptor(p, S).enumerable;
380
- })), _.push.apply(_, m);
354
+ i.exports = l, i.exports.__esModule = !0, i.exports.default = i.exports;
355
+ }(re)), re.exports;
356
+ }
357
+ var fe;
358
+ function Oe() {
359
+ return fe || (fe = 1, function(i) {
360
+ var m = ye().default, l = ge();
361
+ function a(h) {
362
+ var d = l(h, "string");
363
+ return m(d) == "symbol" ? d : d + "";
381
364
  }
382
- return _;
383
- }
384
- function u(p) {
385
- for (var d = 1; d < arguments.length; d++) {
386
- var _ = arguments[d] != null ? arguments[d] : {};
387
- d % 2 ? h(Object(_), !0).forEach(function(m) {
388
- M(p, m, _[m]);
389
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(p, Object.getOwnPropertyDescriptors(_)) : h(Object(_)).forEach(function(m) {
390
- Object.defineProperty(p, m, Object.getOwnPropertyDescriptor(_, m));
391
- });
365
+ i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
366
+ }(ee)), ee.exports;
367
+ }
368
+ var pe;
369
+ function we() {
370
+ return pe || (pe = 1, function(i) {
371
+ var m = Oe();
372
+ function l(a, h, d) {
373
+ return (h = m(h)) in a ? Object.defineProperty(a, h, {
374
+ value: d,
375
+ enumerable: !0,
376
+ configurable: !0,
377
+ writable: !0
378
+ }) : a[h] = d, a;
392
379
  }
393
- return p;
394
- }
395
- s.exports = u, s.exports.__esModule = !0, s.exports.default = s.exports;
396
- })(nt);
397
- var $t = nt.exports, K = {};
398
- Object.defineProperty(K, "__esModule", {
399
- value: !0
400
- });
401
- K.commonLocale = void 0;
402
- K.commonLocale = {
403
- yearFormat: "YYYY",
404
- dayFormat: "D",
405
- cellMeridiemFormat: "A",
406
- monthBeforeYear: !0
407
- };
408
- var Mt = _t.default;
409
- Object.defineProperty(V, "__esModule", {
410
- value: !0
411
- });
412
- var ct = V.default = void 0, X = Mt($t), bt = K, xt = (0, X.default)((0, X.default)({}, bt.commonLocale), {}, {
413
- locale: "ru_RU",
414
- today: "Сегодня",
415
- now: "Сейчас",
416
- backToToday: "Текущая дата",
417
- ok: "ОК",
418
- clear: "Очистить",
419
- month: "Месяц",
420
- year: "Год",
421
- timeSelect: "Выбрать время",
422
- dateSelect: "Выбрать дату",
423
- monthSelect: "Выбрать месяц",
424
- yearSelect: "Выбрать год",
425
- decadeSelect: "Выбрать десятилетие",
426
- dateFormat: "D-M-YYYY",
427
- dateTimeFormat: "D-M-YYYY HH:mm:ss",
428
- previousMonth: "Предыдущий месяц (PageUp)",
429
- nextMonth: "Следующий месяц (PageDown)",
430
- previousYear: "Предыдущий год (Control + left)",
431
- nextYear: "Следующий год (Control + right)",
432
- previousDecade: "Предыдущее десятилетие",
433
- nextDecade: "Следущее десятилетие",
434
- previousCentury: "Предыдущий век",
435
- nextCentury: "Следующий век"
436
- });
437
- ct = V.default = xt;
438
- const Dt = {
380
+ i.exports = l, i.exports.__esModule = !0, i.exports.default = i.exports;
381
+ }(X)), X.exports;
382
+ }
383
+ var le;
384
+ function Ye() {
385
+ return le || (le = 1, function(i) {
386
+ var m = we();
387
+ function l(h, d) {
388
+ var _ = Object.keys(h);
389
+ if (Object.getOwnPropertySymbols) {
390
+ var v = Object.getOwnPropertySymbols(h);
391
+ d && (v = v.filter(function(g) {
392
+ return Object.getOwnPropertyDescriptor(h, g).enumerable;
393
+ })), _.push.apply(_, v);
394
+ }
395
+ return _;
396
+ }
397
+ function a(h) {
398
+ for (var d = 1; d < arguments.length; d++) {
399
+ var _ = arguments[d] != null ? arguments[d] : {};
400
+ d % 2 ? l(Object(_), !0).forEach(function(v) {
401
+ m(h, v, _[v]);
402
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(_)) : l(Object(_)).forEach(function(v) {
403
+ Object.defineProperty(h, v, Object.getOwnPropertyDescriptor(_, v));
404
+ });
405
+ }
406
+ return h;
407
+ }
408
+ i.exports = a, i.exports.__esModule = !0, i.exports.default = i.exports;
409
+ }(G)), G.exports;
410
+ }
411
+ var I = {}, de;
412
+ function je() {
413
+ return de || (de = 1, Object.defineProperty(I, "__esModule", {
414
+ value: !0
415
+ }), I.commonLocale = void 0, I.commonLocale = {
416
+ yearFormat: "YYYY",
417
+ dayFormat: "D",
418
+ cellMeridiemFormat: "A",
419
+ monthBeforeYear: !0
420
+ }), I;
421
+ }
422
+ var he;
423
+ function Pe() {
424
+ if (he) return A;
425
+ he = 1;
426
+ var i = Se().default;
427
+ Object.defineProperty(A, "__esModule", {
428
+ value: !0
429
+ }), A.default = void 0;
430
+ var m = i(Ye()), l = je(), a = (0, m.default)((0, m.default)({}, l.commonLocale), {}, {
431
+ locale: "ru_RU",
432
+ today: "Сегодня",
433
+ now: "Сейчас",
434
+ backToToday: "Текущая дата",
435
+ ok: "ОК",
436
+ clear: "Очистить",
437
+ month: "Месяц",
438
+ year: "Год",
439
+ timeSelect: "Выбрать время",
440
+ dateSelect: "Выбрать дату",
441
+ monthSelect: "Выбрать месяц",
442
+ yearSelect: "Выбрать год",
443
+ decadeSelect: "Выбрать десятилетие",
444
+ dateFormat: "D-M-YYYY",
445
+ dateTimeFormat: "D-M-YYYY HH:mm:ss",
446
+ previousMonth: "Предыдущий месяц (PageUp)",
447
+ nextMonth: "Следующий месяц (PageDown)",
448
+ previousYear: "Предыдущий год (Control + left)",
449
+ nextYear: "Следующий год (Control + right)",
450
+ previousDecade: "Предыдущее десятилетие",
451
+ nextDecade: "Следущее десятилетие",
452
+ previousCentury: "Предыдущий век",
453
+ nextCentury: "Следующий век"
454
+ });
455
+ return A.default = a, A;
456
+ }
457
+ var Re = Pe();
458
+ const qe = /* @__PURE__ */ _e(Re), Le = {
439
459
  design: {
440
460
  Confirm: {
441
461
  cancel: "отмена",
@@ -445,8 +465,8 @@ const Dt = {
445
465
  resetTo: "Сбросить до"
446
466
  },
447
467
  Picker: {
448
- ...ht,
449
- ...ct
468
+ ...be,
469
+ ...qe
450
470
  },
451
471
  CascaderList: {
452
472
  empty: "Нет"
@@ -457,5 +477,5 @@ const Dt = {
457
477
  }
458
478
  };
459
479
  export {
460
- Dt as default
480
+ Le as default
461
481
  };