@ftlab/one-vue3 0.3.8-5 → 0.4.0

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +36 -140
  2. package/README.md +143 -61
  3. package/assets/css/index.scss +25 -25
  4. package/assets/css/mixin.scss +142 -142
  5. package/assets/css/public.scss +175 -175
  6. package/assets/img/Germany.png +0 -0
  7. package/components.d.ts +6 -3
  8. package/dist/CheckMessageDialog-DygR717d.js +78 -0
  9. package/dist/FtlEntry.js +109 -0
  10. package/dist/FtlMessage.js +186 -0
  11. package/dist/FtlMultipleChoose-D8o09guU.js +312 -0
  12. package/dist/FtlMultipleChoose.js +1 -0
  13. package/dist/FtlNavbar-SsenWatk.js +191 -0
  14. package/dist/FtlNavbar.js +1 -0
  15. package/dist/FtlPasswordDialog-Dj_vS0mC.js +188 -0
  16. package/dist/FtlPasswordDialog.js +1 -0
  17. package/dist/FtlSidebar-D5AkRjgA.js +159 -0
  18. package/dist/FtlSidebar.js +1 -0
  19. package/dist/_plugin-vue_export-helper-Djzt4Yr7.js +7 -0
  20. package/dist/asyncToGenerator-CENKRPhX.js +26 -0
  21. package/dist/configProvider-CFU3sEdy.js +6 -0
  22. package/dist/ftlOne.js +16 -13
  23. package/dist/langSelect-DdbxrMFQ.js +106 -0
  24. package/dist/objectSpread2-Bpgh6RJW.js +57 -0
  25. package/dist/storage-DBeiC15W.js +25 -0
  26. package/dist/store.js +39 -98
  27. package/dist/style.css +2 -1
  28. package/dist/utils-BuLanift.js +10 -0
  29. package/dist/utils.js +558 -475
  30. package/eslint.config.js +34 -0
  31. package/ftlab-one-vue3-0.4.0.tgz +0 -0
  32. package/global.d.ts +63 -63
  33. package/i18n/cn.json +22 -22
  34. package/i18n/de.json +23 -0
  35. package/i18n/en.json +22 -22
  36. package/i18n/es.json +23 -0
  37. package/i18n/fr.json +22 -22
  38. package/package.json +119 -74
  39. package/vitest.config.ts +8 -0
  40. package/.eslintrc.cjs +0 -24
  41. package/.prettierrc.cjs +0 -18
  42. package/dist/CheckMessageDialog-0f85dbee.js +0 -167
  43. package/dist/index-2284be94.js +0 -15036
  44. package/dist/storage-9f2ae3ed.js +0 -30
  45. package/dist/utils-0eda3e43.js +0 -17
  46. package/dist/vuex.esm-bundler-2a047356.js +0 -770
  47. package/function/index.ts +0 -4
  48. package/function/info.js +0 -17
  49. package/function/permission.js +0 -17
  50. package/store/app.js +0 -24
  51. package/store/auth.js +0 -87
  52. package/store/index.ts +0 -10
package/dist/utils.js CHANGED
@@ -1,475 +1,558 @@
1
- import { c as K, g as X } from "./utils-0eda3e43.js";
2
- import { d as Dt } from "./utils-0eda3e43.js";
3
- import { s as pt } from "./storage-9f2ae3ed.js";
4
- var et = { exports: {} };
5
- (function(o, O) {
6
- (function(g, S) {
7
- o.exports = S();
8
- })(K, function() {
9
- var g = 1e3, S = 6e4, H = 36e5, J = "millisecond", p = "second", _ = "minute", f = "hour", C = "day", j = "week", Y = "month", d = "quarter", v = "year", l = "date", r = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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, D = { 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) {
10
- var n = ["th", "st", "nd", "rd"], t = s % 100;
11
- return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
12
- } }, M = function(s, n, t) {
13
- var i = String(s);
14
- return !i || i.length >= n ? s : "" + Array(n + 1 - i.length).join(t) + s;
15
- }, I = { s: M, z: function(s) {
16
- var n = -s.utcOffset(), t = Math.abs(n), i = Math.floor(t / 60), e = t % 60;
17
- return (n <= 0 ? "+" : "-") + M(i, 2, "0") + ":" + M(e, 2, "0");
18
- }, m: function s(n, t) {
19
- if (n.date() < t.date())
20
- return -s(t, n);
21
- var i = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(i, Y), u = t - e < 0, a = n.clone().add(i + (u ? -1 : 1), Y);
22
- return +(-(i + (t - e) / (u ? e - a : a - e)) || 0);
23
- }, a: function(s) {
24
- return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
25
- }, p: function(s) {
26
- return { M: Y, y: v, w: j, d: C, D: l, h: f, m: _, s: p, ms: J, Q: d }[s] || String(s || "").toLowerCase().replace(/s$/, "");
27
- }, u: function(s) {
28
- return s === void 0;
29
- } }, x = "en", b = {};
30
- b[x] = D;
31
- var k = "$isDayjsObject", A = function(s) {
32
- return s instanceof G || !(!s || !s[k]);
33
- }, L = function s(n, t, i) {
34
- var e;
35
- if (!n)
36
- return x;
37
- if (typeof n == "string") {
38
- var u = n.toLowerCase();
39
- b[u] && (e = u), t && (b[u] = t, e = u);
40
- var a = n.split("-");
41
- if (!e && a.length > 1)
42
- return s(a[0]);
43
- } else {
44
- var $ = n.name;
45
- b[$] = n, e = $;
46
- }
47
- return !i && e && (x = e), e || !i && x;
48
- }, m = function(s, n) {
49
- if (A(s))
50
- return s.clone();
51
- var t = typeof n == "object" ? n : {};
52
- return t.date = s, t.args = arguments, new G(t);
53
- }, c = I;
54
- c.l = L, c.i = A, c.w = function(s, n) {
55
- return m(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
56
- };
57
- var G = function() {
58
- function s(t) {
59
- this.$L = L(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[k] = !0;
60
- }
61
- var n = s.prototype;
62
- return n.parse = function(t) {
63
- this.$d = function(i) {
64
- var e = i.date, u = i.utc;
65
- if (e === null)
66
- return /* @__PURE__ */ new Date(NaN);
67
- if (c.u(e))
68
- return /* @__PURE__ */ new Date();
69
- if (e instanceof Date)
70
- return new Date(e);
71
- if (typeof e == "string" && !/Z$/i.test(e)) {
72
- var a = e.match(h);
73
- if (a) {
74
- var $ = a[2] - 1 || 0, y = (a[7] || "0").substring(0, 3);
75
- return u ? new Date(Date.UTC(a[1], $, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, y)) : new Date(a[1], $, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, y);
76
- }
77
- }
78
- return new Date(e);
79
- }(t), this.init();
80
- }, n.init = function() {
81
- var t = this.$d;
82
- 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();
83
- }, n.$utils = function() {
84
- return c;
85
- }, n.isValid = function() {
86
- return this.$d.toString() !== r;
87
- }, n.isSame = function(t, i) {
88
- var e = m(t);
89
- return this.startOf(i) <= e && e <= this.endOf(i);
90
- }, n.isAfter = function(t, i) {
91
- return m(t) < this.startOf(i);
92
- }, n.isBefore = function(t, i) {
93
- return this.endOf(i) < m(t);
94
- }, n.$g = function(t, i, e) {
95
- return c.u(t) ? this[i] : this.set(e, t);
96
- }, n.unix = function() {
97
- return Math.floor(this.valueOf() / 1e3);
98
- }, n.valueOf = function() {
99
- return this.$d.getTime();
100
- }, n.startOf = function(t, i) {
101
- var e = this, u = !!c.u(i) || i, a = c.p(t), $ = function(E, U) {
102
- var F = c.w(e.$u ? Date.UTC(e.$y, U, E) : new Date(e.$y, U, E), e);
103
- return u ? F : F.endOf(C);
104
- }, y = function(E, U) {
105
- return c.w(e.toDate()[E].apply(e.toDate("s"), (u ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), e);
106
- }, w = this.$W, z = this.$M, N = this.$D, P = "set" + (this.$u ? "UTC" : "");
107
- switch (a) {
108
- case v:
109
- return u ? $(1, 0) : $(31, 11);
110
- case Y:
111
- return u ? $(1, z) : $(0, z + 1);
112
- case j:
113
- var W = this.$locale().weekStart || 0, q = (w < W ? w + 7 : w) - W;
114
- return $(u ? N - q : N + (6 - q), z);
115
- case C:
116
- case l:
117
- return y(P + "Hours", 0);
118
- case f:
119
- return y(P + "Minutes", 1);
120
- case _:
121
- return y(P + "Seconds", 2);
122
- case p:
123
- return y(P + "Milliseconds", 3);
124
- default:
125
- return this.clone();
126
- }
127
- }, n.endOf = function(t) {
128
- return this.startOf(t, !1);
129
- }, n.$set = function(t, i) {
130
- var e, u = c.p(t), a = "set" + (this.$u ? "UTC" : ""), $ = (e = {}, e[C] = a + "Date", e[l] = a + "Date", e[Y] = a + "Month", e[v] = a + "FullYear", e[f] = a + "Hours", e[_] = a + "Minutes", e[p] = a + "Seconds", e[J] = a + "Milliseconds", e)[u], y = u === C ? this.$D + (i - this.$W) : i;
131
- if (u === Y || u === v) {
132
- var w = this.clone().set(l, 1);
133
- w.$d[$](y), w.init(), this.$d = w.set(l, Math.min(this.$D, w.daysInMonth())).$d;
134
- } else
135
- $ && this.$d[$](y);
136
- return this.init(), this;
137
- }, n.set = function(t, i) {
138
- return this.clone().$set(t, i);
139
- }, n.get = function(t) {
140
- return this[c.p(t)]();
141
- }, n.add = function(t, i) {
142
- var e, u = this;
143
- t = Number(t);
144
- var a = c.p(i), $ = function(z) {
145
- var N = m(u);
146
- return c.w(N.date(N.date() + Math.round(z * t)), u);
147
- };
148
- if (a === Y)
149
- return this.set(Y, this.$M + t);
150
- if (a === v)
151
- return this.set(v, this.$y + t);
152
- if (a === C)
153
- return $(1);
154
- if (a === j)
155
- return $(7);
156
- var y = (e = {}, e[_] = S, e[f] = H, e[p] = g, e)[a] || 1, w = this.$d.getTime() + t * y;
157
- return c.w(w, this);
158
- }, n.subtract = function(t, i) {
159
- return this.add(-1 * t, i);
160
- }, n.format = function(t) {
161
- var i = this, e = this.$locale();
162
- if (!this.isValid())
163
- return e.invalidDate || r;
164
- var u = t || "YYYY-MM-DDTHH:mm:ssZ", a = c.z(this), $ = this.$H, y = this.$m, w = this.$M, z = e.weekdays, N = e.months, P = e.meridiem, W = function(U, F, B, Q) {
165
- return U && (U[F] || U(i, u)) || B[F].slice(0, Q);
166
- }, q = function(U) {
167
- return c.s($ % 12 || 12, U, "0");
168
- }, E = P || function(U, F, B) {
169
- var Q = U < 12 ? "AM" : "PM";
170
- return B ? Q.toLowerCase() : Q;
171
- };
172
- return u.replace(T, function(U, F) {
173
- return F || function(B) {
174
- switch (B) {
175
- case "YY":
176
- return String(i.$y).slice(-2);
177
- case "YYYY":
178
- return c.s(i.$y, 4, "0");
179
- case "M":
180
- return w + 1;
181
- case "MM":
182
- return c.s(w + 1, 2, "0");
183
- case "MMM":
184
- return W(e.monthsShort, w, N, 3);
185
- case "MMMM":
186
- return W(N, w);
187
- case "D":
188
- return i.$D;
189
- case "DD":
190
- return c.s(i.$D, 2, "0");
191
- case "d":
192
- return String(i.$W);
193
- case "dd":
194
- return W(e.weekdaysMin, i.$W, z, 2);
195
- case "ddd":
196
- return W(e.weekdaysShort, i.$W, z, 3);
197
- case "dddd":
198
- return z[i.$W];
199
- case "H":
200
- return String($);
201
- case "HH":
202
- return c.s($, 2, "0");
203
- case "h":
204
- return q(1);
205
- case "hh":
206
- return q(2);
207
- case "a":
208
- return E($, y, !0);
209
- case "A":
210
- return E($, y, !1);
211
- case "m":
212
- return String(y);
213
- case "mm":
214
- return c.s(y, 2, "0");
215
- case "s":
216
- return String(i.$s);
217
- case "ss":
218
- return c.s(i.$s, 2, "0");
219
- case "SSS":
220
- return c.s(i.$ms, 3, "0");
221
- case "Z":
222
- return a;
223
- }
224
- return null;
225
- }(U) || a.replace(":", "");
226
- });
227
- }, n.utcOffset = function() {
228
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
229
- }, n.diff = function(t, i, e) {
230
- var u, a = this, $ = c.p(i), y = m(t), w = (y.utcOffset() - this.utcOffset()) * S, z = this - y, N = function() {
231
- return c.m(a, y);
232
- };
233
- switch ($) {
234
- case v:
235
- u = N() / 12;
236
- break;
237
- case Y:
238
- u = N();
239
- break;
240
- case d:
241
- u = N() / 3;
242
- break;
243
- case j:
244
- u = (z - w) / 6048e5;
245
- break;
246
- case C:
247
- u = (z - w) / 864e5;
248
- break;
249
- case f:
250
- u = z / H;
251
- break;
252
- case _:
253
- u = z / S;
254
- break;
255
- case p:
256
- u = z / g;
257
- break;
258
- default:
259
- u = z;
260
- }
261
- return e ? u : c.a(u);
262
- }, n.daysInMonth = function() {
263
- return this.endOf(Y).$D;
264
- }, n.$locale = function() {
265
- return b[this.$L];
266
- }, n.locale = function(t, i) {
267
- if (!t)
268
- return this.$L;
269
- var e = this.clone(), u = L(t, i, !0);
270
- return u && (e.$L = u), e;
271
- }, n.clone = function() {
272
- return c.w(this.$d, this);
273
- }, n.toDate = function() {
274
- return new Date(this.valueOf());
275
- }, n.toJSON = function() {
276
- return this.isValid() ? this.toISOString() : null;
277
- }, n.toISOString = function() {
278
- return this.$d.toISOString();
279
- }, n.toString = function() {
280
- return this.$d.toUTCString();
281
- }, s;
282
- }(), tt = G.prototype;
283
- return m.prototype = tt, [["$ms", J], ["$s", p], ["$m", _], ["$H", f], ["$W", C], ["$M", Y], ["$y", v], ["$D", l]].forEach(function(s) {
284
- tt[s[1]] = function(n) {
285
- return this.$g(n, s[0], s[1]);
286
- };
287
- }), m.extend = function(s, n) {
288
- return s.$i || (s(n, G, m), s.$i = !0), m;
289
- }, m.locale = L, m.isDayjs = A, m.unix = function(s) {
290
- return m(1e3 * s);
291
- }, m.en = b[x], m.Ls = b, m.p = {}, m;
292
- });
293
- })(et);
294
- var st = et.exports;
295
- const Z = /* @__PURE__ */ X(st);
296
- var nt = { exports: {} };
297
- (function(o, O) {
298
- (function(g, S) {
299
- o.exports = S();
300
- })(K, function() {
301
- var g = "minute", S = /[+-]\d\d(?::?\d\d)?/g, H = /([+-]|\d\d)/g;
302
- return function(J, p, _) {
303
- var f = p.prototype;
304
- _.utc = function(r) {
305
- var h = { date: r, utc: !0, args: arguments };
306
- return new p(h);
307
- }, f.utc = function(r) {
308
- var h = _(this.toDate(), { locale: this.$L, utc: !0 });
309
- return r ? h.add(this.utcOffset(), g) : h;
310
- }, f.local = function() {
311
- return _(this.toDate(), { locale: this.$L, utc: !1 });
312
- };
313
- var C = f.parse;
314
- f.parse = function(r) {
315
- r.utc && (this.$u = !0), this.$utils().u(r.$offset) || (this.$offset = r.$offset), C.call(this, r);
316
- };
317
- var j = f.init;
318
- f.init = function() {
319
- if (this.$u) {
320
- var r = this.$d;
321
- this.$y = r.getUTCFullYear(), this.$M = r.getUTCMonth(), this.$D = r.getUTCDate(), this.$W = r.getUTCDay(), this.$H = r.getUTCHours(), this.$m = r.getUTCMinutes(), this.$s = r.getUTCSeconds(), this.$ms = r.getUTCMilliseconds();
322
- } else
323
- j.call(this);
324
- };
325
- var Y = f.utcOffset;
326
- f.utcOffset = function(r, h) {
327
- var T = this.$utils().u;
328
- if (T(r))
329
- return this.$u ? 0 : T(this.$offset) ? Y.call(this) : this.$offset;
330
- if (typeof r == "string" && (r = function(x) {
331
- x === void 0 && (x = "");
332
- var b = x.match(S);
333
- if (!b)
334
- return null;
335
- var k = ("" + b[0]).match(H) || ["-", 0, 0], A = k[0], L = 60 * +k[1] + +k[2];
336
- return L === 0 ? 0 : A === "+" ? L : -L;
337
- }(r), r === null))
338
- return this;
339
- var D = Math.abs(r) <= 16 ? 60 * r : r, M = this;
340
- if (h)
341
- return M.$offset = D, M.$u = r === 0, M;
342
- if (r !== 0) {
343
- var I = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
344
- (M = this.local().add(D + I, g)).$offset = D, M.$x.$localOffset = I;
345
- } else
346
- M = this.utc();
347
- return M;
348
- };
349
- var d = f.format;
350
- f.format = function(r) {
351
- var h = r || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
352
- return d.call(this, h);
353
- }, f.valueOf = function() {
354
- var r = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
355
- return this.$d.valueOf() - 6e4 * r;
356
- }, f.isUTC = function() {
357
- return !!this.$u;
358
- }, f.toISOString = function() {
359
- return this.toDate().toISOString();
360
- }, f.toString = function() {
361
- return this.toDate().toUTCString();
362
- };
363
- var v = f.toDate;
364
- f.toDate = function(r) {
365
- return r === "s" && this.$offset ? _(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : v.call(this);
366
- };
367
- var l = f.diff;
368
- f.diff = function(r, h, T) {
369
- if (r && this.$u === r.$u)
370
- return l.call(this, r, h, T);
371
- var D = this.local(), M = _(r).local();
372
- return l.call(D, M, h, T);
373
- };
374
- };
375
- });
376
- })(nt);
377
- var ut = nt.exports;
378
- const at = /* @__PURE__ */ X(ut);
379
- var rt = { exports: {} };
380
- (function(o, O) {
381
- (function(g, S) {
382
- o.exports = S();
383
- })(K, function() {
384
- var g = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, S = {};
385
- return function(H, J, p) {
386
- var _, f = function(d, v, l) {
387
- l === void 0 && (l = {});
388
- var r = new Date(d), h = function(T, D) {
389
- D === void 0 && (D = {});
390
- var M = D.timeZoneName || "short", I = T + "|" + M, x = S[I];
391
- return x || (x = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: T, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: M }), S[I] = x), x;
392
- }(v, l);
393
- return h.formatToParts(r);
394
- }, C = function(d, v) {
395
- for (var l = f(d, v), r = [], h = 0; h < l.length; h += 1) {
396
- var T = l[h], D = T.type, M = T.value, I = g[D];
397
- I >= 0 && (r[I] = parseInt(M, 10));
398
- }
399
- var x = r[3], b = x === 24 ? 0 : x, k = r[0] + "-" + r[1] + "-" + r[2] + " " + b + ":" + r[4] + ":" + r[5] + ":000", A = +d;
400
- return (p.utc(k).valueOf() - (A -= A % 1e3)) / 6e4;
401
- }, j = J.prototype;
402
- j.tz = function(d, v) {
403
- d === void 0 && (d = _);
404
- var l = this.utcOffset(), r = this.toDate(), h = r.toLocaleString("en-US", { timeZone: d }), T = Math.round((r - new Date(h)) / 1e3 / 60), D = p(h, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(r.getTimezoneOffset() / 15) - T, !0);
405
- if (v) {
406
- var M = D.utcOffset();
407
- D = D.add(l - M, "minute");
408
- }
409
- return D.$x.$timezone = d, D;
410
- }, j.offsetName = function(d) {
411
- var v = this.$x.$timezone || p.tz.guess(), l = f(this.valueOf(), v, { timeZoneName: d }).find(function(r) {
412
- return r.type.toLowerCase() === "timezonename";
413
- });
414
- return l && l.value;
415
- };
416
- var Y = j.startOf;
417
- j.startOf = function(d, v) {
418
- if (!this.$x || !this.$x.$timezone)
419
- return Y.call(this, d, v);
420
- var l = p(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
421
- return Y.call(l, d, v).tz(this.$x.$timezone, !0);
422
- }, p.tz = function(d, v, l) {
423
- var r = l && v, h = l || v || _, T = C(+p(), h);
424
- if (typeof d != "string")
425
- return p(d).tz(h);
426
- var D = function(b, k, A) {
427
- var L = b - 60 * k * 1e3, m = C(L, A);
428
- if (k === m)
429
- return [L, k];
430
- var c = C(L -= 60 * (m - k) * 1e3, A);
431
- return m === c ? [L, m] : [b - 60 * Math.min(m, c) * 1e3, Math.max(m, c)];
432
- }(p.utc(d, r).valueOf(), T, h), M = D[0], I = D[1], x = p(M).utcOffset(I);
433
- return x.$x.$timezone = h, x;
434
- }, p.tz.guess = function() {
435
- return Intl.DateTimeFormat().resolvedOptions().timeZone;
436
- }, p.tz.setDefault = function(d) {
437
- _ = d;
438
- };
439
- };
440
- });
441
- })(rt);
442
- var ot = rt.exports;
443
- const ct = /* @__PURE__ */ X(ot);
444
- Z.extend(ct);
445
- Z.extend(at);
446
- const R = "YYYY-MM-DD HH:mm:ss", V = (o) => {
447
- const O = new Date(o);
448
- if (!isNaN(O.getTime())) {
449
- const g = O.getFullYear(), S = O.getMonth() + 1;
450
- return O.getDate() === 29 && S === 2 ? g % 4 === 0 && g % 100 !== 0 || g % 400 === 0 : !0;
451
- }
452
- return !isNaN(O.getTime());
453
- }, ht = (o, O, g = "") => !o || !V(o) ? g : Z(o).utc().tz("Asia/Shanghai").format(O || R), lt = (o, O, g = "") => !o || !V(o) ? g : Z(o).utc().tz("Europe/Paris").format(O || R), $t = (o, O = "") => {
454
- if (!o || !V(o))
455
- return O;
456
- const g = new Date(Z(o).format(R)).getTime(), S = new Date(Z(o).utc().format(R)).getTime(), H = (g - S) / (1e3 * 3600);
457
- return H > 0 ? Z(o).utc().add(H, "hours").toDate() : Z(o).utc().subtract(H, "hours").toDate();
458
- }, it = (o, O) => {
459
- if (!o || !V(o))
460
- return "";
461
- const g = Z(o).utcOffset(), S = Z(o).tz(O).utcOffset(), H = g - S;
462
- return H > 0 ? Z(o).add(H, "minutes").toDate() : Z(o).subtract(H, "minutes").toDate();
463
- }, dt = (o, O = "") => !o || !V(o) ? O : it(o, "Asia/Shanghai"), mt = (o, O = "") => !o || !V(o) ? O : it(o, "Europe/Paris");
464
- export {
465
- Z as dayjs,
466
- Dt as debounce,
467
- V as isValidDate,
468
- dt as local_cn_date,
469
- mt as local_fr_date,
470
- it as local_tz_date,
471
- $t as local_utc_date,
472
- pt as storage,
473
- ht as utc_cn,
474
- lt as utc_fr
475
- };
1
+ import { t as e } from "./storage-DBeiC15W.js";
2
+ import { t } from "./utils-BuLanift.js";
3
+ import n from "dayjs";
4
+ // \0rolldown/runtime.js
5
+ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.getPrototypeOf, c = Object.prototype.hasOwnProperty, l = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), u = (e, t, n, r) => {
6
+ if (t && typeof t == "object" || typeof t == "function") for (var s = o(t), l = 0, u = s.length, d; l < u; l++) d = s[l], !c.call(e, d) && d !== n && i(e, d, {
7
+ get: ((e) => t[e]).bind(null, d),
8
+ enumerable: !(r = a(t, d)) || r.enumerable
9
+ });
10
+ return e;
11
+ }, d = (e, t, n) => (n = e == null ? {} : r(s(e)), u(t || !e || !e.__esModule || !c.call(e, "default") ? i(n, "default", {
12
+ value: e,
13
+ enumerable: !0
14
+ }) : n, e)), f = /* @__PURE__ */ l(((e, t, n) => {
15
+ (function(n, r) {
16
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_utc = r();
17
+ })(n, (function() {
18
+ var e = "minute", t = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
19
+ return function(r, i, a) {
20
+ var o = i.prototype;
21
+ a.utc = function(e) {
22
+ return new i({
23
+ date: e,
24
+ utc: !0,
25
+ args: arguments
26
+ });
27
+ }, o.utc = function(t) {
28
+ var n = a(this.toDate(), {
29
+ locale: this.$L,
30
+ utc: !0
31
+ });
32
+ return t ? n.add(this.utcOffset(), e) : n;
33
+ }, o.local = function() {
34
+ return a(this.toDate(), {
35
+ locale: this.$L,
36
+ utc: !1
37
+ });
38
+ };
39
+ var s = o.parse;
40
+ o.parse = function(e) {
41
+ e.utc && (this.$u = !0), this.$utils().u(e.$offset) || (this.$offset = e.$offset), s.call(this, e);
42
+ };
43
+ var c = o.init;
44
+ o.init = function() {
45
+ if (this.$u) {
46
+ var e = this.$d;
47
+ this.$y = e.getUTCFullYear(), this.$M = e.getUTCMonth(), this.$D = e.getUTCDate(), this.$W = e.getUTCDay(), this.$H = e.getUTCHours(), this.$m = e.getUTCMinutes(), this.$s = e.getUTCSeconds(), this.$ms = e.getUTCMilliseconds();
48
+ } else c.call(this);
49
+ };
50
+ var l = o.utcOffset;
51
+ o.utcOffset = function(r, i) {
52
+ var a = this.$utils().u;
53
+ if (a(r)) return this.$u ? 0 : a(this.$offset) ? l.call(this) : this.$offset;
54
+ if (typeof r == "string" && (r = function(e) {
55
+ e === void 0 && (e = "");
56
+ var r = e.match(t);
57
+ if (!r) return null;
58
+ var i = ("" + r[0]).match(n) || [
59
+ "-",
60
+ 0,
61
+ 0
62
+ ], a = i[0], o = 60 * i[1] + +i[2];
63
+ return o === 0 ? 0 : a === "+" ? o : -o;
64
+ }(r), r === null)) return this;
65
+ var o = Math.abs(r) <= 16 ? 60 * r : r;
66
+ if (o === 0) return this.utc(i);
67
+ var s = this.clone();
68
+ if (i) return s.$offset = o, s.$u = !1, s;
69
+ var c = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
70
+ return (s = this.local().add(o + c, e)).$offset = o, s.$x.$localOffset = c, s;
71
+ };
72
+ var u = o.format;
73
+ o.format = function(e) {
74
+ var t = e || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
75
+ return u.call(this, t);
76
+ }, o.valueOf = function() {
77
+ var e = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
78
+ return this.$d.valueOf() - 6e4 * e;
79
+ }, o.isUTC = function() {
80
+ return !!this.$u;
81
+ }, o.toISOString = function() {
82
+ return this.toDate().toISOString();
83
+ }, o.toString = function() {
84
+ return this.toDate().toUTCString();
85
+ };
86
+ var d = o.toDate;
87
+ o.toDate = function(e) {
88
+ return e === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : d.call(this);
89
+ };
90
+ var f = o.diff;
91
+ o.diff = function(e, t, n) {
92
+ if (e && this.$u === e.$u) return f.call(this, e, t, n);
93
+ var r = this.local(), i = a(e).local();
94
+ return f.call(r, i, t, n);
95
+ };
96
+ };
97
+ }));
98
+ })), p = /* @__PURE__ */ l(((e, t, n) => {
99
+ (function(n, r) {
100
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_timezone = r();
101
+ })(n, (function() {
102
+ var e = {
103
+ year: 0,
104
+ month: 1,
105
+ day: 2,
106
+ hour: 3,
107
+ minute: 4,
108
+ second: 5
109
+ }, t = {};
110
+ return function(n, r, i) {
111
+ var a, o = function(e, n, r) {
112
+ r === void 0 && (r = {});
113
+ var i = new Date(e);
114
+ return function(e, n) {
115
+ n === void 0 && (n = {});
116
+ var r = n.timeZoneName || "short", i = e + "|" + r, a = t[i];
117
+ return a || (a = new Intl.DateTimeFormat("en-US", {
118
+ hour12: !1,
119
+ timeZone: e,
120
+ year: "numeric",
121
+ month: "2-digit",
122
+ day: "2-digit",
123
+ hour: "2-digit",
124
+ minute: "2-digit",
125
+ second: "2-digit",
126
+ timeZoneName: r
127
+ }), t[i] = a), a;
128
+ }(n, r).formatToParts(i);
129
+ }, s = function(t, n) {
130
+ for (var r = o(t, n), a = [], s = 0; s < r.length; s += 1) {
131
+ var c = r[s], l = c.type, u = c.value, d = e[l];
132
+ d >= 0 && (a[d] = parseInt(u, 10));
133
+ }
134
+ var f = a[3], p = f === 24 ? 0 : f, m = a[0] + "-" + a[1] + "-" + a[2] + " " + p + ":" + a[4] + ":" + a[5] + ":000", h = +t;
135
+ return (i.utc(m).valueOf() - (h -= h % 1e3)) / 6e4;
136
+ }, c = r.prototype;
137
+ c.tz = function(e, t) {
138
+ if (e === void 0 && (e = a), !this.isValid()) return this;
139
+ var n, r = this.utcOffset(), o = this.toDate(), c = o.toLocaleString("en-US", { timeZone: e }), l = s(+o, e);
140
+ if (!Number(l)) n = this.utcOffset(0, t);
141
+ else if (n = i(c, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(l, !0), t) {
142
+ var u = n.utcOffset();
143
+ n = n.add(r - u, "minute");
144
+ }
145
+ return n.$x.$timezone = e, n;
146
+ }, c.offsetName = function(e) {
147
+ var t = this.$x.$timezone || i.tz.guess(), n = o(this.valueOf(), t, { timeZoneName: e }).find((function(e) {
148
+ return e.type.toLowerCase() === "timezonename";
149
+ }));
150
+ return n && n.value;
151
+ };
152
+ var l = c.startOf;
153
+ c.startOf = function(e, t) {
154
+ if (!this.$x || !this.$x.$timezone) return l.call(this, e, t);
155
+ var n = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
156
+ return l.call(n, e, t).tz(this.$x.$timezone, !0);
157
+ }, i.tz = function(e, t, n) {
158
+ var r = n && t, o = n || t || a, c = s(+i(), o);
159
+ if (typeof e != "string") return i(e).tz(o);
160
+ var l = i.utc(e, r).valueOf();
161
+ if (Number.isNaN(l)) {
162
+ var u = i(NaN);
163
+ return u.$x.$timezone = o, u;
164
+ }
165
+ var d = function(e, t, n) {
166
+ var r = e - 60 * t * 1e3, i = s(r, n);
167
+ if (t === i) return [r, t];
168
+ var a = s(r -= 60 * (i - t) * 1e3, n);
169
+ return i === a ? [r, i] : [e - 60 * Math.min(i, a) * 1e3, Math.max(i, a)];
170
+ }(l, c, o), f = d[0], p = d[1], m = i(f).utcOffset(p);
171
+ return m.$x.$timezone = o, m;
172
+ }, i.tz.guess = function() {
173
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
174
+ }, i.tz.setDefault = function(e) {
175
+ a = e;
176
+ };
177
+ };
178
+ }));
179
+ })), m = /* @__PURE__ */ l(((e, t, n) => {
180
+ (function(n, r) {
181
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_weekOfYear = r();
182
+ })(n, (function() {
183
+ var e = "week", t = "year";
184
+ return function(n, r, i) {
185
+ var a = r.prototype;
186
+ a.week = function(n) {
187
+ if (n === void 0 && (n = null), n !== null) return this.add(7 * (n - this.week()), "day");
188
+ var r = this.$locale().yearStart || 1;
189
+ if (this.month() === 11 && this.date() > 25) {
190
+ var a = i(this).startOf(t).add(1, t).date(r), o = i(this).endOf(e);
191
+ if (a.isBefore(o)) return 1;
192
+ }
193
+ var s = i(this).startOf(t).date(r).startOf(e).subtract(1, "millisecond"), c = this.diff(s, e, !0);
194
+ return c < 0 ? i(this).startOf("week").week() : Math.ceil(c);
195
+ }, a.weeks = function(e) {
196
+ return e === void 0 && (e = null), this.week(e);
197
+ };
198
+ };
199
+ }));
200
+ })), h = /* @__PURE__ */ l(((e, t, n) => {
201
+ (function(n, r) {
202
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_isoWeek = r();
203
+ })(n, (function() {
204
+ return function(e, t, n) {
205
+ var r = function(e) {
206
+ return e.add(4 - e.isoWeekday(), "day");
207
+ }, i = t.prototype;
208
+ i.isoWeekYear = function() {
209
+ return r(this).year();
210
+ }, i.isoWeek = function(e) {
211
+ if (!this.$utils().u(e)) return this.add(7 * (e - this.isoWeek()), "day");
212
+ var t, i, a, o, s = r(this), c = (t = this.isoWeekYear(), i = this.$u, a = (i ? n.utc : n)().year(t).startOf("year"), o = 4 - a.isoWeekday(), a.isoWeekday() > 4 && (o += 7), a.add(o, "day"));
213
+ return s.diff(c, "week") + 1;
214
+ }, i.isoWeekday = function(e) {
215
+ return this.$utils().u(e) ? this.day() || 7 : this.day(this.day() % 7 ? e : e - 7);
216
+ };
217
+ var a = i.startOf;
218
+ i.startOf = function(e, t) {
219
+ var n = this.$utils(), r = !!n.u(t) || t;
220
+ return n.p(e) === "isoweek" ? r ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : a.bind(this)(e, t);
221
+ };
222
+ };
223
+ }));
224
+ })), g = /* @__PURE__ */ l(((e, t, n) => {
225
+ (function(n, r) {
226
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_duration = r();
227
+ })(n, (function() {
228
+ var e, t, n = 1e3, r = 6e4, i = 36e5, a = 864e5, o = 31536e6, s = 2628e6, c = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, l = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, u = {
229
+ years: o,
230
+ months: s,
231
+ days: a,
232
+ hours: i,
233
+ minutes: r,
234
+ seconds: n,
235
+ milliseconds: 1,
236
+ weeks: 6048e5
237
+ }, d = function(e) {
238
+ return e instanceof v;
239
+ }, f = function(e, t, n) {
240
+ return new v(e, n, t.$l);
241
+ }, p = function(e) {
242
+ return t.p(e) + "s";
243
+ }, m = function(e) {
244
+ return e < 0;
245
+ }, h = function(e) {
246
+ return m(e) ? Math.ceil(e) : Math.floor(e);
247
+ }, g = function(e) {
248
+ return Math.abs(e);
249
+ }, _ = function(e, t) {
250
+ return e ? m(e) ? {
251
+ negative: !0,
252
+ format: "" + g(e) + t
253
+ } : {
254
+ negative: !1,
255
+ format: "" + e + t
256
+ } : {
257
+ negative: !1,
258
+ format: ""
259
+ };
260
+ }, v = function() {
261
+ function m(e, t, n) {
262
+ var r = this;
263
+ if (this.$d = {}, this.$l = n, e === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), t) return f(e * u[p(t)], this);
264
+ if (typeof e == "number") return this.$ms = e, this.parseFromMilliseconds(), this;
265
+ if (typeof e == "object") return Object.keys(e).forEach((function(t) {
266
+ r.$d[p(t)] = e[t];
267
+ })), this.calMilliseconds(), this;
268
+ if (typeof e == "string") {
269
+ var i = e.match(c);
270
+ if (i) {
271
+ var a = i.slice(2).map((function(e) {
272
+ return e == null ? 0 : Number(e);
273
+ }));
274
+ return this.$d.years = a[0], this.$d.months = a[1], this.$d.weeks = a[2], this.$d.days = a[3], this.$d.hours = a[4], this.$d.minutes = a[5], this.$d.seconds = a[6], this.calMilliseconds(), this;
275
+ }
276
+ }
277
+ return this;
278
+ }
279
+ var g = m.prototype;
280
+ return g.calMilliseconds = function() {
281
+ var e = this;
282
+ this.$ms = Object.keys(this.$d).reduce((function(t, n) {
283
+ return t + (e.$d[n] || 0) * u[n];
284
+ }), 0);
285
+ }, g.parseFromMilliseconds = function() {
286
+ var e = this.$ms;
287
+ this.$d.years = h(e / o), e %= o, this.$d.months = h(e / s), e %= s, this.$d.days = h(e / a), e %= a, this.$d.hours = h(e / i), e %= i, this.$d.minutes = h(e / r), e %= r, this.$d.seconds = h(e / n), e %= n, this.$d.milliseconds = e;
288
+ }, g.toISOString = function() {
289
+ var e = _(this.$d.years, "Y"), t = _(this.$d.months, "M"), n = +this.$d.days || 0;
290
+ this.$d.weeks && (n += 7 * this.$d.weeks);
291
+ var r = _(n, "D"), i = _(this.$d.hours, "H"), a = _(this.$d.minutes, "M"), o = this.$d.seconds || 0;
292
+ this.$d.milliseconds && (o += this.$d.milliseconds / 1e3, o = Math.round(1e3 * o) / 1e3);
293
+ var s = _(o, "S"), c = e.negative || t.negative || r.negative || i.negative || a.negative || s.negative, l = i.format || a.format || s.format ? "T" : "", u = (c ? "-" : "") + "P" + e.format + t.format + r.format + l + i.format + a.format + s.format;
294
+ return u === "P" || u === "-P" ? "P0D" : u;
295
+ }, g.toJSON = function() {
296
+ return this.toISOString();
297
+ }, g.format = function(e) {
298
+ var n = e || "YYYY-MM-DDTHH:mm:ss", r = {
299
+ Y: this.$d.years,
300
+ YY: t.s(this.$d.years, 2, "0"),
301
+ YYYY: t.s(this.$d.years, 4, "0"),
302
+ M: this.$d.months,
303
+ MM: t.s(this.$d.months, 2, "0"),
304
+ D: this.$d.days,
305
+ DD: t.s(this.$d.days, 2, "0"),
306
+ H: this.$d.hours,
307
+ HH: t.s(this.$d.hours, 2, "0"),
308
+ m: this.$d.minutes,
309
+ mm: t.s(this.$d.minutes, 2, "0"),
310
+ s: this.$d.seconds,
311
+ ss: t.s(this.$d.seconds, 2, "0"),
312
+ SSS: t.s(this.$d.milliseconds, 3, "0")
313
+ };
314
+ return n.replace(l, (function(e, t) {
315
+ return t || String(r[e]);
316
+ }));
317
+ }, g.as = function(e) {
318
+ return this.$ms / u[p(e)];
319
+ }, g.get = function(e) {
320
+ var t = this.$ms, n = p(e);
321
+ return n === "milliseconds" ? t %= 1e3 : t = n === "weeks" ? h(t / u[n]) : this.$d[n], t || 0;
322
+ }, g.add = function(e, t, n) {
323
+ var r = t ? e * u[p(t)] : d(e) ? e.$ms : f(e, this).$ms;
324
+ return f(this.$ms + r * (n ? -1 : 1), this);
325
+ }, g.subtract = function(e, t) {
326
+ return this.add(e, t, !0);
327
+ }, g.locale = function(e) {
328
+ var t = this.clone();
329
+ return t.$l = e, t;
330
+ }, g.clone = function() {
331
+ return f(this.$ms, this);
332
+ }, g.humanize = function(t) {
333
+ return e().add(this.$ms, "ms").locale(this.$l).fromNow(!t);
334
+ }, g.valueOf = function() {
335
+ return this.asMilliseconds();
336
+ }, g.milliseconds = function() {
337
+ return this.get("milliseconds");
338
+ }, g.asMilliseconds = function() {
339
+ return this.as("milliseconds");
340
+ }, g.seconds = function() {
341
+ return this.get("seconds");
342
+ }, g.asSeconds = function() {
343
+ return this.as("seconds");
344
+ }, g.minutes = function() {
345
+ return this.get("minutes");
346
+ }, g.asMinutes = function() {
347
+ return this.as("minutes");
348
+ }, g.hours = function() {
349
+ return this.get("hours");
350
+ }, g.asHours = function() {
351
+ return this.as("hours");
352
+ }, g.days = function() {
353
+ return this.get("days");
354
+ }, g.asDays = function() {
355
+ return this.as("days");
356
+ }, g.weeks = function() {
357
+ return this.get("weeks");
358
+ }, g.asWeeks = function() {
359
+ return this.as("weeks");
360
+ }, g.months = function() {
361
+ return this.get("months");
362
+ }, g.asMonths = function() {
363
+ return this.as("months");
364
+ }, g.years = function() {
365
+ return this.get("years");
366
+ }, g.asYears = function() {
367
+ return this.as("years");
368
+ }, m;
369
+ }(), y = function(e, t, n) {
370
+ return e.add(t.years() * n, "y").add(t.months() * n, "M").add(t.days() * n, "d").add(t.hours() * n, "h").add(t.minutes() * n, "m").add(t.seconds() * n, "s").add(t.milliseconds() * n, "ms");
371
+ };
372
+ return function(n, r, i) {
373
+ e = i, t = i().$utils(), i.duration = function(e, t) {
374
+ return f(e, { $l: i.locale() }, t);
375
+ }, i.isDuration = d;
376
+ var a = r.prototype.add, o = r.prototype.subtract;
377
+ r.prototype.add = function(e, t) {
378
+ return d(e) ? y(this, e, 1) : a.bind(this)(e, t);
379
+ }, r.prototype.subtract = function(e, t) {
380
+ return d(e) ? y(this, e, -1) : o.bind(this)(e, t);
381
+ };
382
+ };
383
+ }));
384
+ })), _ = /* @__PURE__ */ l(((e, t, n) => {
385
+ (function(n, r) {
386
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
387
+ })(n, (function() {
388
+ var e = {
389
+ LTS: "h:mm:ss A",
390
+ LT: "h:mm A",
391
+ L: "MM/DD/YYYY",
392
+ LL: "MMMM D, YYYY",
393
+ LLL: "MMMM D, YYYY h:mm A",
394
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
395
+ }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, o = {}, s = function(e) {
396
+ return (e = +e) + (e > 68 ? 1900 : 2e3);
397
+ }, c = function(e) {
398
+ return function(t) {
399
+ this[e] = +t;
400
+ };
401
+ }, l = [/[+-]\d\d:?(\d\d)?|Z/, function(e) {
402
+ (this.zone || (this.zone = {})).offset = function(e) {
403
+ if (!e || e === "Z") return 0;
404
+ var t = e.match(/([+-]|\d\d)/g), n = 60 * t[1] + (+t[2] || 0);
405
+ return n === 0 ? 0 : t[0] === "+" ? -n : n;
406
+ }(e);
407
+ }], u = function(e) {
408
+ var t = o[e];
409
+ return t && (t.indexOf ? t : t.s.concat(t.f));
410
+ }, d = function(e, t) {
411
+ var n, r = o.meridiem;
412
+ if (r) {
413
+ for (var i = 1; i <= 24; i += 1) if (e.indexOf(r(i, 0, t)) > -1) {
414
+ n = i > 12;
415
+ break;
416
+ }
417
+ } else n = e === (t ? "pm" : "PM");
418
+ return n;
419
+ }, f = {
420
+ A: [a, function(e) {
421
+ this.afternoon = d(e, !1);
422
+ }],
423
+ a: [a, function(e) {
424
+ this.afternoon = d(e, !0);
425
+ }],
426
+ Q: [n, function(e) {
427
+ this.month = 3 * (e - 1) + 1;
428
+ }],
429
+ S: [n, function(e) {
430
+ this.milliseconds = 100 * e;
431
+ }],
432
+ SS: [r, function(e) {
433
+ this.milliseconds = 10 * e;
434
+ }],
435
+ SSS: [/\d{3}/, function(e) {
436
+ this.milliseconds = +e;
437
+ }],
438
+ s: [i, c("seconds")],
439
+ ss: [i, c("seconds")],
440
+ m: [i, c("minutes")],
441
+ mm: [i, c("minutes")],
442
+ H: [i, c("hours")],
443
+ h: [i, c("hours")],
444
+ HH: [i, c("hours")],
445
+ hh: [i, c("hours")],
446
+ D: [i, c("day")],
447
+ DD: [r, c("day")],
448
+ Do: [a, function(e) {
449
+ var t = o.ordinal, n = e.match(/\d+/);
450
+ if (this.day = n[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\[|\]/g, "") === e && (this.day = r);
451
+ }],
452
+ w: [i, c("week")],
453
+ ww: [r, c("week")],
454
+ M: [i, c("month")],
455
+ MM: [r, c("month")],
456
+ MMM: [a, function(e) {
457
+ var t = u("months"), n = (u("monthsShort") || t.map((function(e) {
458
+ return e.slice(0, 3);
459
+ }))).indexOf(e) + 1;
460
+ if (n < 1) throw Error();
461
+ this.month = n % 12 || n;
462
+ }],
463
+ MMMM: [a, function(e) {
464
+ var t = u("months").indexOf(e) + 1;
465
+ if (t < 1) throw Error();
466
+ this.month = t % 12 || t;
467
+ }],
468
+ Y: [/[+-]?\d+/, c("year")],
469
+ YY: [r, function(e) {
470
+ this.year = s(e);
471
+ }],
472
+ YYYY: [/\d{4}/, c("year")],
473
+ Z: l,
474
+ ZZ: l
475
+ };
476
+ function p(n) {
477
+ for (var r = n, i = o && o.formats, a = (n = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
478
+ var a = r && r.toUpperCase();
479
+ return n || i[r] || e[r] || i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, n) {
480
+ return t || n.slice(1);
481
+ }));
482
+ }))).match(t), s = a.length, c = 0; c < s; c += 1) {
483
+ var l = a[c], u = f[l], d = u && u[0], p = u && u[1];
484
+ a[c] = p ? {
485
+ regex: d,
486
+ parser: p
487
+ } : l.replace(/^\[|\]$/g, "");
488
+ }
489
+ return function(e) {
490
+ for (var t = {}, n = 0, r = 0; n < s; n += 1) {
491
+ var i = a[n];
492
+ if (typeof i == "string") r += i.length;
493
+ else {
494
+ var o = i.regex, c = i.parser, l = e.slice(r), u = o.exec(l)[0];
495
+ c.call(t, u), e = e.replace(u, "");
496
+ }
497
+ }
498
+ return function(e) {
499
+ var t = e.afternoon;
500
+ if (t !== void 0) {
501
+ var n = e.hours;
502
+ t ? n < 12 && (e.hours += 12) : n === 12 && (e.hours = 0), delete e.afternoon;
503
+ }
504
+ }(t), t;
505
+ };
506
+ }
507
+ return function(e, t, n) {
508
+ n.p.customParseFormat = !0, e && e.parseTwoDigitYear && (s = e.parseTwoDigitYear);
509
+ var r = t.prototype, i = r.parse;
510
+ r.parse = function(e) {
511
+ var t = e.date, r = e.utc, a = e.args;
512
+ this.$u = r;
513
+ var s = a[1];
514
+ if (typeof s == "string") {
515
+ var c = !0 === a[2], l = !0 === a[3], u = c || l, d = a[2];
516
+ l && (d = a[2]), o = this.$locale(), !c && d && (o = n.Ls[d]), this.$d = function(e, t, n, r) {
517
+ try {
518
+ if (["x", "X"].indexOf(t) > -1) return /* @__PURE__ */ new Date((t === "X" ? 1e3 : 1) * e);
519
+ var i = p(t)(e), a = i.year, o = i.month, s = i.day, c = i.hours, l = i.minutes, u = i.seconds, d = i.milliseconds, f = i.zone, m = i.week, h = /* @__PURE__ */ new Date(), g = s || (a || o ? 1 : h.getDate()), _ = a || h.getFullYear(), v = 0;
520
+ a && !o || (v = o > 0 ? o - 1 : h.getMonth());
521
+ var y, b = c || 0, x = l || 0, S = u || 0, C = d || 0;
522
+ return f ? new Date(Date.UTC(_, v, g, b, x, S, C + 60 * f.offset * 1e3)) : n ? new Date(Date.UTC(_, v, g, b, x, S, C)) : (y = new Date(_, v, g, b, x, S, C), m && (y = r(y).week(m).toDate()), y);
523
+ } catch (e) {
524
+ return /* @__PURE__ */ new Date("");
525
+ }
526
+ }(t, s, r, n), this.init(), d && !0 !== d && (this.$L = this.locale(d).$L), u && t != this.format(s) && (this.$d = /* @__PURE__ */ new Date("")), o = {};
527
+ } else if (s instanceof Array) for (var f = s.length, m = 1; m <= f; m += 1) {
528
+ a[1] = s[m - 1];
529
+ var h = n.apply(this, a);
530
+ if (h.isValid()) {
531
+ this.$d = h.$d, this.$L = h.$L, this.init();
532
+ break;
533
+ }
534
+ m === f && (this.$d = /* @__PURE__ */ new Date(""));
535
+ }
536
+ else i.call(this, e);
537
+ };
538
+ };
539
+ }));
540
+ })), v = /* @__PURE__ */ d(f(), 1), y = /* @__PURE__ */ d(p(), 1), b = /* @__PURE__ */ d(m(), 1), x = /* @__PURE__ */ d(h(), 1), S = /* @__PURE__ */ d(g(), 1), C = /* @__PURE__ */ d(_(), 1);
541
+ n.extend(y.default), n.extend(v.default), n.extend(b.default), n.extend(x.default), n.extend(S.default), n.extend(C.default);
542
+ var w = "YYYY-MM-DD HH:mm:ss", T = (e) => {
543
+ let t = new Date(e);
544
+ if (!isNaN(t.getTime())) {
545
+ let e = t.getFullYear(), n = t.getMonth() + 1;
546
+ return t.getDate() === 29 && n === 2 ? e % 4 == 0 && e % 100 != 0 || e % 400 == 0 : !0;
547
+ }
548
+ return !isNaN(t.getTime());
549
+ }, E = (e, t, r = "") => !e || !T(e) ? r : n(e).utc().tz("Asia/Shanghai").format(t || w), D = (e, t, r = "") => !e || !T(e) ? r : n(e).utc().tz("Europe/Paris").format(t || w), O = (e, t = "") => {
550
+ if (!e || !T(e)) return t;
551
+ let r = (new Date(n(e).format(w)).getTime() - new Date(n(e).utc().format(w)).getTime()) / 36e5;
552
+ return r > 0 ? n(e).utc().add(r, "hours").toDate() : n(e).utc().subtract(r, "hours").toDate();
553
+ }, k = (e, t) => {
554
+ if (!e || !T(e)) return "";
555
+ let r = n(e).utcOffset() - n(e).tz(t).utcOffset();
556
+ return r > 0 ? n(e).add(r, "minutes").toDate() : n(e).subtract(r, "minutes").toDate();
557
+ }, A = (e, t = "") => !e || !T(e) ? t : k(e, "Asia/Shanghai"), j = (e, t = "") => !e || !T(e) ? t : k(e, "Europe/Paris");
558
+ export { n as dayjs, t as debounce, T as isValidDate, A as local_cn_date, j as local_fr_date, k as local_tz_date, O as local_utc_date, e as storage, E as utc_cn, D as utc_fr };