@base-web-kits/base-tools-web 1.3.11 → 1.3.15

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.
package/dist/index.mjs CHANGED
@@ -1,7 +1,11 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
5
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
7
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
5
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
10
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
11
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -17,6 +21,25 @@ var __spreadValues = (a, b) => {
17
21
  return a;
18
22
  };
19
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __commonJS = (cb, mod) => function __require() {
25
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
26
+ };
27
+ var __copyProps = (to, from, except, desc) => {
28
+ if (from && typeof from === "object" || typeof from === "function") {
29
+ for (let key of __getOwnPropNames(from))
30
+ if (!__hasOwnProp.call(to, key) && key !== except)
31
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
32
+ }
33
+ return to;
34
+ };
35
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
36
+ // If the importer is in node compatibility mode or this is not an ESM
37
+ // file that has been converted to a CommonJS file using a Babel-
38
+ // compatible transform (i.e. "__esModule" has not been set), then set
39
+ // "default" to the CommonJS "module.exports" for node compatibility.
40
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
41
+ mod
42
+ ));
20
43
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
21
44
  var __async = (__this, __arguments, generator) => {
22
45
  return new Promise((resolve, reject) => {
@@ -39,6 +62,681 @@ var __async = (__this, __arguments, generator) => {
39
62
  });
40
63
  };
41
64
 
65
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js
66
+ var require_dayjs_min = __commonJS({
67
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js"(exports, module) {
68
+ "use strict";
69
+ !(function(t, e) {
70
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
71
+ })(exports, (function() {
72
+ "use strict";
73
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, M = { 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(t2) {
74
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
75
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
76
+ } }, m = function(t2, e2, n2) {
77
+ var r2 = String(t2);
78
+ return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
79
+ }, v = { s: m, z: function(t2) {
80
+ var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
81
+ return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
82
+ }, m: function t2(e2, n2) {
83
+ if (e2.date() < n2.date()) return -t2(n2, e2);
84
+ var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
85
+ return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
86
+ }, a: function(t2) {
87
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
88
+ }, p: function(t2) {
89
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
90
+ }, u: function(t2) {
91
+ return void 0 === t2;
92
+ } }, g = "en", D = {};
93
+ D[g] = M;
94
+ var p = "$isDayjsObject", S = function(t2) {
95
+ return t2 instanceof _ || !(!t2 || !t2[p]);
96
+ }, w = function t2(e2, n2, r2) {
97
+ var i2;
98
+ if (!e2) return g;
99
+ if ("string" == typeof e2) {
100
+ var s2 = e2.toLowerCase();
101
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
102
+ var u2 = e2.split("-");
103
+ if (!i2 && u2.length > 1) return t2(u2[0]);
104
+ } else {
105
+ var a2 = e2.name;
106
+ D[a2] = e2, i2 = a2;
107
+ }
108
+ return !r2 && i2 && (g = i2), i2 || !r2 && g;
109
+ }, O = function(t2, e2) {
110
+ if (S(t2)) return t2.clone();
111
+ var n2 = "object" == typeof e2 ? e2 : {};
112
+ return n2.date = t2, n2.args = arguments, new _(n2);
113
+ }, b = v;
114
+ b.l = w, b.i = S, b.w = function(t2, e2) {
115
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
116
+ };
117
+ var _ = (function() {
118
+ function M2(t2) {
119
+ this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
120
+ }
121
+ var m2 = M2.prototype;
122
+ return m2.parse = function(t2) {
123
+ this.$d = (function(t3) {
124
+ var e2 = t3.date, n2 = t3.utc;
125
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
126
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
127
+ if (e2 instanceof Date) return new Date(e2);
128
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
129
+ var r2 = e2.match($);
130
+ if (r2) {
131
+ var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
132
+ return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
133
+ }
134
+ }
135
+ return new Date(e2);
136
+ })(t2), this.init();
137
+ }, m2.init = function() {
138
+ var t2 = this.$d;
139
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
140
+ }, m2.$utils = function() {
141
+ return b;
142
+ }, m2.isValid = function() {
143
+ return !(this.$d.toString() === l);
144
+ }, m2.isSame = function(t2, e2) {
145
+ var n2 = O(t2);
146
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
147
+ }, m2.isAfter = function(t2, e2) {
148
+ return O(t2) < this.startOf(e2);
149
+ }, m2.isBefore = function(t2, e2) {
150
+ return this.endOf(e2) < O(t2);
151
+ }, m2.$g = function(t2, e2, n2) {
152
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
153
+ }, m2.unix = function() {
154
+ return Math.floor(this.valueOf() / 1e3);
155
+ }, m2.valueOf = function() {
156
+ return this.$d.getTime();
157
+ }, m2.startOf = function(t2, e2) {
158
+ var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
159
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
160
+ return r2 ? i2 : i2.endOf(a);
161
+ }, $2 = function(t3, e3) {
162
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
163
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
164
+ switch (f2) {
165
+ case h:
166
+ return r2 ? l2(1, 0) : l2(31, 11);
167
+ case c:
168
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
169
+ case o:
170
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
171
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
172
+ case a:
173
+ case d:
174
+ return $2(v2 + "Hours", 0);
175
+ case u:
176
+ return $2(v2 + "Minutes", 1);
177
+ case s:
178
+ return $2(v2 + "Seconds", 2);
179
+ case i:
180
+ return $2(v2 + "Milliseconds", 3);
181
+ default:
182
+ return this.clone();
183
+ }
184
+ }, m2.endOf = function(t2) {
185
+ return this.startOf(t2, false);
186
+ }, m2.$set = function(t2, e2) {
187
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
188
+ if (o2 === c || o2 === h) {
189
+ var y2 = this.clone().set(d, 1);
190
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
191
+ } else l2 && this.$d[l2]($2);
192
+ return this.init(), this;
193
+ }, m2.set = function(t2, e2) {
194
+ return this.clone().$set(t2, e2);
195
+ }, m2.get = function(t2) {
196
+ return this[b.p(t2)]();
197
+ }, m2.add = function(r2, f2) {
198
+ var d2, l2 = this;
199
+ r2 = Number(r2);
200
+ var $2 = b.p(f2), y2 = function(t2) {
201
+ var e2 = O(l2);
202
+ return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
203
+ };
204
+ if ($2 === c) return this.set(c, this.$M + r2);
205
+ if ($2 === h) return this.set(h, this.$y + r2);
206
+ if ($2 === a) return y2(1);
207
+ if ($2 === o) return y2(7);
208
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
209
+ return b.w(m3, this);
210
+ }, m2.subtract = function(t2, e2) {
211
+ return this.add(-1 * t2, e2);
212
+ }, m2.format = function(t2) {
213
+ var e2 = this, n2 = this.$locale();
214
+ if (!this.isValid()) return n2.invalidDate || l;
215
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
216
+ return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
217
+ }, d2 = function(t3) {
218
+ return b.s(s2 % 12 || 12, t3, "0");
219
+ }, $2 = f2 || function(t3, e3, n3) {
220
+ var r3 = t3 < 12 ? "AM" : "PM";
221
+ return n3 ? r3.toLowerCase() : r3;
222
+ };
223
+ return r2.replace(y, (function(t3, r3) {
224
+ return r3 || (function(t4) {
225
+ switch (t4) {
226
+ case "YY":
227
+ return String(e2.$y).slice(-2);
228
+ case "YYYY":
229
+ return b.s(e2.$y, 4, "0");
230
+ case "M":
231
+ return a2 + 1;
232
+ case "MM":
233
+ return b.s(a2 + 1, 2, "0");
234
+ case "MMM":
235
+ return h2(n2.monthsShort, a2, c2, 3);
236
+ case "MMMM":
237
+ return h2(c2, a2);
238
+ case "D":
239
+ return e2.$D;
240
+ case "DD":
241
+ return b.s(e2.$D, 2, "0");
242
+ case "d":
243
+ return String(e2.$W);
244
+ case "dd":
245
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
246
+ case "ddd":
247
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
248
+ case "dddd":
249
+ return o2[e2.$W];
250
+ case "H":
251
+ return String(s2);
252
+ case "HH":
253
+ return b.s(s2, 2, "0");
254
+ case "h":
255
+ return d2(1);
256
+ case "hh":
257
+ return d2(2);
258
+ case "a":
259
+ return $2(s2, u2, true);
260
+ case "A":
261
+ return $2(s2, u2, false);
262
+ case "m":
263
+ return String(u2);
264
+ case "mm":
265
+ return b.s(u2, 2, "0");
266
+ case "s":
267
+ return String(e2.$s);
268
+ case "ss":
269
+ return b.s(e2.$s, 2, "0");
270
+ case "SSS":
271
+ return b.s(e2.$ms, 3, "0");
272
+ case "Z":
273
+ return i2;
274
+ }
275
+ return null;
276
+ })(t3) || i2.replace(":", "");
277
+ }));
278
+ }, m2.utcOffset = function() {
279
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
280
+ }, m2.diff = function(r2, d2, l2) {
281
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
282
+ return b.m(y2, m3);
283
+ };
284
+ switch (M3) {
285
+ case h:
286
+ $2 = D2() / 12;
287
+ break;
288
+ case c:
289
+ $2 = D2();
290
+ break;
291
+ case f:
292
+ $2 = D2() / 3;
293
+ break;
294
+ case o:
295
+ $2 = (g2 - v2) / 6048e5;
296
+ break;
297
+ case a:
298
+ $2 = (g2 - v2) / 864e5;
299
+ break;
300
+ case u:
301
+ $2 = g2 / n;
302
+ break;
303
+ case s:
304
+ $2 = g2 / e;
305
+ break;
306
+ case i:
307
+ $2 = g2 / t;
308
+ break;
309
+ default:
310
+ $2 = g2;
311
+ }
312
+ return l2 ? $2 : b.a($2);
313
+ }, m2.daysInMonth = function() {
314
+ return this.endOf(c).$D;
315
+ }, m2.$locale = function() {
316
+ return D[this.$L];
317
+ }, m2.locale = function(t2, e2) {
318
+ if (!t2) return this.$L;
319
+ var n2 = this.clone(), r2 = w(t2, e2, true);
320
+ return r2 && (n2.$L = r2), n2;
321
+ }, m2.clone = function() {
322
+ return b.w(this.$d, this);
323
+ }, m2.toDate = function() {
324
+ return new Date(this.valueOf());
325
+ }, m2.toJSON = function() {
326
+ return this.isValid() ? this.toISOString() : null;
327
+ }, m2.toISOString = function() {
328
+ return this.$d.toISOString();
329
+ }, m2.toString = function() {
330
+ return this.$d.toUTCString();
331
+ }, M2;
332
+ })(), k = _.prototype;
333
+ return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach((function(t2) {
334
+ k[t2[1]] = function(e2) {
335
+ return this.$g(e2, t2[0], t2[1]);
336
+ };
337
+ })), O.extend = function(t2, e2) {
338
+ return t2.$i || (t2(e2, _, O), t2.$i = true), O;
339
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
340
+ return O(1e3 * t2);
341
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
342
+ }));
343
+ }
344
+ });
345
+
346
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/customParseFormat.js
347
+ var require_customParseFormat = __commonJS({
348
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/customParseFormat.js"(exports, module) {
349
+ "use strict";
350
+ !(function(e, t) {
351
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
352
+ })(exports, (function() {
353
+ "use strict";
354
+ var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, 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?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
355
+ return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
356
+ };
357
+ var f = function(e2) {
358
+ return function(t2) {
359
+ this[e2] = +t2;
360
+ };
361
+ }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
362
+ (this.zone || (this.zone = {})).offset = (function(e3) {
363
+ if (!e3) return 0;
364
+ if ("Z" === e3) return 0;
365
+ var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
366
+ return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
367
+ })(e2);
368
+ }], u = function(e2) {
369
+ var t2 = s[e2];
370
+ return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
371
+ }, d = function(e2, t2) {
372
+ var n2, r2 = s.meridiem;
373
+ if (r2) {
374
+ for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t2)) > -1) {
375
+ n2 = i2 > 12;
376
+ break;
377
+ }
378
+ } else n2 = e2 === (t2 ? "pm" : "PM");
379
+ return n2;
380
+ }, c = { A: [o, function(e2) {
381
+ this.afternoon = d(e2, false);
382
+ }], a: [o, function(e2) {
383
+ this.afternoon = d(e2, true);
384
+ }], Q: [n, function(e2) {
385
+ this.month = 3 * (e2 - 1) + 1;
386
+ }], S: [n, function(e2) {
387
+ this.milliseconds = 100 * +e2;
388
+ }], SS: [r, function(e2) {
389
+ this.milliseconds = 10 * +e2;
390
+ }], SSS: [/\d{3}/, function(e2) {
391
+ this.milliseconds = +e2;
392
+ }], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r, f("day")], Do: [o, function(e2) {
393
+ var t2 = s.ordinal, n2 = e2.match(/\d+/);
394
+ if (this.day = n2[0], t2) for (var r2 = 1; r2 <= 31; r2 += 1) t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
395
+ }], w: [i, f("week")], ww: [r, f("week")], M: [i, f("month")], MM: [r, f("month")], MMM: [o, function(e2) {
396
+ var t2 = u("months"), n2 = (u("monthsShort") || t2.map((function(e3) {
397
+ return e3.slice(0, 3);
398
+ }))).indexOf(e2) + 1;
399
+ if (n2 < 1) throw new Error();
400
+ this.month = n2 % 12 || n2;
401
+ }], MMMM: [o, function(e2) {
402
+ var t2 = u("months").indexOf(e2) + 1;
403
+ if (t2 < 1) throw new Error();
404
+ this.month = t2 % 12 || t2;
405
+ }], Y: [/[+-]?\d+/, f("year")], YY: [r, function(e2) {
406
+ this.year = a(e2);
407
+ }], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
408
+ function l(n2) {
409
+ var r2, i2;
410
+ r2 = n2, i2 = s && s.formats;
411
+ for (var o2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t2, n3, r3) {
412
+ var o3 = r3 && r3.toUpperCase();
413
+ return n3 || i2[r3] || e[r3] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e2, t3, n4) {
414
+ return t3 || n4.slice(1);
415
+ }));
416
+ }))).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
417
+ var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
418
+ o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
419
+ }
420
+ return function(e2) {
421
+ for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
422
+ var i3 = o2[n3];
423
+ if ("string" == typeof i3) r3 += i3.length;
424
+ else {
425
+ var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = s2.exec(h3)[0];
426
+ f3.call(t2, u3), e2 = e2.replace(u3, "");
427
+ }
428
+ }
429
+ return (function(e3) {
430
+ var t3 = e3.afternoon;
431
+ if (void 0 !== t3) {
432
+ var n4 = e3.hours;
433
+ t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
434
+ }
435
+ })(t2), t2;
436
+ };
437
+ }
438
+ return function(e2, t2, n2) {
439
+ n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
440
+ var r2 = t2.prototype, i2 = r2.parse;
441
+ r2.parse = function(e3) {
442
+ var t3 = e3.date, r3 = e3.utc, o2 = e3.args;
443
+ this.$u = r3;
444
+ var a2 = o2[1];
445
+ if ("string" == typeof a2) {
446
+ var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
447
+ h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = (function(e4, t4, n3, r4) {
448
+ try {
449
+ if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
450
+ var i3 = l(t4)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
451
+ o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
452
+ var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
453
+ return c3 ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m2 && (D = r4(D).week(m2).toDate()), D);
454
+ } catch (e5) {
455
+ return /* @__PURE__ */ new Date("");
456
+ }
457
+ })(t3, a2, r3, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
458
+ } else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
459
+ o2[1] = a2[m - 1];
460
+ var M = n2.apply(this, o2);
461
+ if (M.isValid()) {
462
+ this.$d = M.$d, this.$L = M.$L, this.init();
463
+ break;
464
+ }
465
+ m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
466
+ }
467
+ else i2.call(this, e3);
468
+ };
469
+ };
470
+ }));
471
+ }
472
+ });
473
+
474
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.js
475
+ var require_utc = __commonJS({
476
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.js"(exports, module) {
477
+ "use strict";
478
+ !(function(t, i) {
479
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_utc = i();
480
+ })(exports, (function() {
481
+ "use strict";
482
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
483
+ return function(s, f, n) {
484
+ var u = f.prototype;
485
+ n.utc = function(t2) {
486
+ var i2 = { date: t2, utc: true, args: arguments };
487
+ return new f(i2);
488
+ }, u.utc = function(i2) {
489
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
490
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
491
+ }, u.local = function() {
492
+ return n(this.toDate(), { locale: this.$L, utc: false });
493
+ };
494
+ var r = u.parse;
495
+ u.parse = function(t2) {
496
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
497
+ };
498
+ var o = u.init;
499
+ u.init = function() {
500
+ if (this.$u) {
501
+ var t2 = this.$d;
502
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
503
+ } else o.call(this);
504
+ };
505
+ var a = u.utcOffset;
506
+ u.utcOffset = function(s2, f2) {
507
+ var n2 = this.$utils().u;
508
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
509
+ if ("string" == typeof s2 && (s2 = (function(t2) {
510
+ void 0 === t2 && (t2 = "");
511
+ var s3 = t2.match(i);
512
+ if (!s3) return null;
513
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
514
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
515
+ })(s2), null === s2)) return this;
516
+ var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
517
+ if (0 === u2) return this.utc(f2);
518
+ var r2 = this.clone();
519
+ if (f2) return r2.$offset = u2, r2.$u = false, r2;
520
+ var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
521
+ return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
522
+ };
523
+ var h = u.format;
524
+ u.format = function(t2) {
525
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
526
+ return h.call(this, i2);
527
+ }, u.valueOf = function() {
528
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
529
+ return this.$d.valueOf() - 6e4 * t2;
530
+ }, u.isUTC = function() {
531
+ return !!this.$u;
532
+ }, u.toISOString = function() {
533
+ return this.toDate().toISOString();
534
+ }, u.toString = function() {
535
+ return this.toDate().toUTCString();
536
+ };
537
+ var l = u.toDate;
538
+ u.toDate = function(t2) {
539
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
540
+ };
541
+ var c = u.diff;
542
+ u.diff = function(t2, i2, e2) {
543
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
544
+ var s2 = this.local(), f2 = n(t2).local();
545
+ return c.call(s2, f2, i2, e2);
546
+ };
547
+ };
548
+ }));
549
+ }
550
+ });
551
+
552
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.js
553
+ var require_timezone = __commonJS({
554
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.js"(exports, module) {
555
+ "use strict";
556
+ !(function(t, e) {
557
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_timezone = e();
558
+ })(exports, (function() {
559
+ "use strict";
560
+ var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
561
+ return function(n, i, o) {
562
+ var r, a = function(t2, n2, i2) {
563
+ void 0 === i2 && (i2 = {});
564
+ var o2 = new Date(t2), r2 = (function(t3, n3) {
565
+ void 0 === n3 && (n3 = {});
566
+ var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
567
+ return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
568
+ })(n2, i2);
569
+ return r2.formatToParts(o2);
570
+ }, u = function(e2, n2) {
571
+ for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
572
+ var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
573
+ c >= 0 && (r2[c] = parseInt(m, 10));
574
+ }
575
+ var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
576
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
577
+ }, f = i.prototype;
578
+ f.tz = function(t2, e2) {
579
+ void 0 === t2 && (t2 = r);
580
+ var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
581
+ if (!Number(s2)) n2 = this.utcOffset(0, e2);
582
+ else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
583
+ var m = n2.utcOffset();
584
+ n2 = n2.add(i2 - m, "minute");
585
+ }
586
+ return n2.$x.$timezone = t2, n2;
587
+ }, f.offsetName = function(t2) {
588
+ var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find((function(t3) {
589
+ return "timezonename" === t3.type.toLowerCase();
590
+ }));
591
+ return n2 && n2.value;
592
+ };
593
+ var s = f.startOf;
594
+ f.startOf = function(t2, e2) {
595
+ if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
596
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
597
+ return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
598
+ }, o.tz = function(t2, e2, n2) {
599
+ var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
600
+ if ("string" != typeof t2) return o(t2).tz(a2);
601
+ var s2 = (function(t3, e3, n3) {
602
+ var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
603
+ if (e3 === o2) return [i3, e3];
604
+ var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
605
+ return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
606
+ })(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
607
+ return d.$x.$timezone = a2, d;
608
+ }, o.tz.guess = function() {
609
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
610
+ }, o.tz.setDefault = function(t2) {
611
+ r = t2;
612
+ };
613
+ };
614
+ }));
615
+ }
616
+ });
617
+
618
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/relativeTime.js
619
+ var require_relativeTime = __commonJS({
620
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/relativeTime.js"(exports, module) {
621
+ "use strict";
622
+ !(function(r, e) {
623
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (r = "undefined" != typeof globalThis ? globalThis : r || self).dayjs_plugin_relativeTime = e();
624
+ })(exports, (function() {
625
+ "use strict";
626
+ return function(r, e, t) {
627
+ r = r || {};
628
+ var n = e.prototype, o = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
629
+ function i(r2, e2, t2, o2) {
630
+ return n.fromToBase(r2, e2, t2, o2);
631
+ }
632
+ t.en.relativeTime = o, n.fromToBase = function(e2, n2, i2, d2, u) {
633
+ for (var f, a, s, l = i2.$locale().relativeTime || o, h = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c = 0; c < m; c += 1) {
634
+ var y = h[c];
635
+ y.d && (f = d2 ? t(e2).diff(i2, y.d, true) : i2.diff(e2, y.d, true));
636
+ var p = (r.rounding || Math.round)(Math.abs(f));
637
+ if (s = f > 0, p <= y.r || !y.r) {
638
+ p <= 1 && c > 0 && (y = h[c - 1]);
639
+ var v = l[y.l];
640
+ u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n2, y.l, s);
641
+ break;
642
+ }
643
+ }
644
+ if (n2) return a;
645
+ var M = s ? l.future : l.past;
646
+ return "function" == typeof M ? M(a) : M.replace("%s", a);
647
+ }, n.to = function(r2, e2) {
648
+ return i(r2, e2, this, true);
649
+ }, n.from = function(r2, e2) {
650
+ return i(r2, e2, this);
651
+ };
652
+ var d = function(r2) {
653
+ return r2.$u ? t.utc() : t();
654
+ };
655
+ n.toNow = function(r2) {
656
+ return this.to(d(this), r2);
657
+ }, n.fromNow = function(r2) {
658
+ return this.from(d(this), r2);
659
+ };
660
+ };
661
+ }));
662
+ }
663
+ });
664
+
665
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/advancedFormat.js
666
+ var require_advancedFormat = __commonJS({
667
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/advancedFormat.js"(exports, module) {
668
+ "use strict";
669
+ !(function(e, t) {
670
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_advancedFormat = t();
671
+ })(exports, (function() {
672
+ "use strict";
673
+ return function(e, t) {
674
+ var r = t.prototype, n = r.format;
675
+ r.format = function(e2) {
676
+ var t2 = this, r2 = this.$locale();
677
+ if (!this.isValid()) return n.bind(this)(e2);
678
+ var s = this.$utils(), a = (e2 || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(e3) {
679
+ switch (e3) {
680
+ case "Q":
681
+ return Math.ceil((t2.$M + 1) / 3);
682
+ case "Do":
683
+ return r2.ordinal(t2.$D);
684
+ case "gggg":
685
+ return t2.weekYear();
686
+ case "GGGG":
687
+ return t2.isoWeekYear();
688
+ case "wo":
689
+ return r2.ordinal(t2.week(), "W");
690
+ case "w":
691
+ case "ww":
692
+ return s.s(t2.week(), "w" === e3 ? 1 : 2, "0");
693
+ case "W":
694
+ case "WW":
695
+ return s.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
696
+ case "k":
697
+ case "kk":
698
+ return s.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
699
+ case "X":
700
+ return Math.floor(t2.$d.getTime() / 1e3);
701
+ case "x":
702
+ return t2.$d.getTime();
703
+ case "z":
704
+ return "[" + t2.offsetName() + "]";
705
+ case "zzz":
706
+ return "[" + t2.offsetName("long") + "]";
707
+ default:
708
+ return e3;
709
+ }
710
+ }));
711
+ return n.bind(this)(a);
712
+ };
713
+ };
714
+ }));
715
+ }
716
+ });
717
+
718
+ // node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/locale/zh-cn.js
719
+ var require_zh_cn = __commonJS({
720
+ "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/locale/zh-cn.js"(exports, module) {
721
+ "use strict";
722
+ !(function(e, _) {
723
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = _(require_dayjs_min()) : "function" == typeof define && define.amd ? define(["dayjs"], _) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_zh_cn = _(e.dayjs);
724
+ })(exports, (function(e) {
725
+ "use strict";
726
+ function _(e2) {
727
+ return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
728
+ }
729
+ var t = _(e), d = { name: "zh-cn", weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"), weekdaysShort: "\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"), weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"), months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), ordinal: function(e2, _2) {
730
+ return "W" === _2 ? e2 + "\u5468" : e2 + "\u65E5";
731
+ }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206", LLLL: "YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206", l: "YYYY/M/D", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm" }, relativeTime: { future: "%s\u5185", past: "%s\u524D", s: "\u51E0\u79D2", m: "1 \u5206\u949F", mm: "%d \u5206\u949F", h: "1 \u5C0F\u65F6", hh: "%d \u5C0F\u65F6", d: "1 \u5929", dd: "%d \u5929", M: "1 \u4E2A\u6708", MM: "%d \u4E2A\u6708", y: "1 \u5E74", yy: "%d \u5E74" }, meridiem: function(e2, _2) {
732
+ var t2 = 100 * e2 + _2;
733
+ return t2 < 600 ? "\u51CC\u6668" : t2 < 900 ? "\u65E9\u4E0A" : t2 < 1100 ? "\u4E0A\u5348" : t2 < 1300 ? "\u4E2D\u5348" : t2 < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A";
734
+ } };
735
+ return t.default.locale(d, null, true), d;
736
+ }));
737
+ }
738
+ });
739
+
42
740
  // src/web/clipboard/index.ts
43
741
  function copyText(text) {
44
742
  return __async(this, null, function* () {
@@ -774,38 +1472,38 @@ function isUnsafeProperty(key) {
774
1472
  }
775
1473
 
776
1474
  // src/ts/day/index.ts
777
- import dayjs from "dayjs";
778
- import customParseFormat from "dayjs/plugin/customParseFormat.js";
779
- import utc from "dayjs/plugin/utc.js";
780
- import timezone from "dayjs/plugin/timezone.js";
781
- import relativeTime from "dayjs/plugin/relativeTime.js";
782
- import advancedFormat from "dayjs/plugin/advancedFormat.js";
783
- import "dayjs/locale/zh-cn.js";
784
- dayjs.extend(customParseFormat);
785
- dayjs.extend(utc);
786
- dayjs.extend(timezone);
787
- dayjs.extend(relativeTime);
788
- dayjs.extend(advancedFormat);
789
- dayjs.locale("zh-cn");
1475
+ var import_dayjs = __toESM(require_dayjs_min(), 1);
1476
+ var import_customParseFormat = __toESM(require_customParseFormat(), 1);
1477
+ var import_utc = __toESM(require_utc(), 1);
1478
+ var import_timezone = __toESM(require_timezone(), 1);
1479
+ var import_relativeTime = __toESM(require_relativeTime(), 1);
1480
+ var import_advancedFormat = __toESM(require_advancedFormat(), 1);
1481
+ var import_zh_cn = __toESM(require_zh_cn(), 1);
1482
+ import_dayjs.default.extend(import_customParseFormat.default);
1483
+ import_dayjs.default.extend(import_utc.default);
1484
+ import_dayjs.default.extend(import_timezone.default);
1485
+ import_dayjs.default.extend(import_relativeTime.default);
1486
+ import_dayjs.default.extend(import_advancedFormat.default);
1487
+ import_dayjs.default.locale("zh-cn");
790
1488
  function toDayjs(t, fmt) {
791
- if (t === null || t === void 0) return dayjs();
1489
+ if (t === null || t === void 0) return (0, import_dayjs.default)();
792
1490
  if (typeof t === "number") {
793
1491
  const s = String(Math.trunc(t));
794
- return dayjs(s.length === 10 ? t * 1e3 : t, fmt);
1492
+ return (0, import_dayjs.default)(s.length === 10 ? t * 1e3 : t, fmt);
795
1493
  }
796
1494
  if (typeof t === "string") {
797
1495
  const s = t.trim();
798
- if (/^\d{10}$/.test(s)) return dayjs(Number(s) * 1e3, fmt);
799
- if (/^\d{13}$/.test(s)) return dayjs(Number(s), fmt);
800
- if (/^\d{4}-\d{2}-\d{2}$/.test(s)) return dayjs(s, fmt || "YYYY-MM-DD");
801
- if (/^\d{4}\/\d{2}\/\d{2}$/.test(s)) return dayjs(s, fmt || "YYYY/MM/DD");
1496
+ if (/^\d{10}$/.test(s)) return (0, import_dayjs.default)(Number(s) * 1e3, fmt);
1497
+ if (/^\d{13}$/.test(s)) return (0, import_dayjs.default)(Number(s), fmt);
1498
+ if (/^\d{4}-\d{2}-\d{2}$/.test(s)) return (0, import_dayjs.default)(s, fmt || "YYYY-MM-DD");
1499
+ if (/^\d{4}\/\d{2}\/\d{2}$/.test(s)) return (0, import_dayjs.default)(s, fmt || "YYYY/MM/DD");
802
1500
  if (/^\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}$/.test(s))
803
- return dayjs(s, fmt || "YYYY-MM-DD HH:mm:ss");
1501
+ return (0, import_dayjs.default)(s, fmt || "YYYY-MM-DD HH:mm:ss");
804
1502
  if (/^\d{4}\/\d{2}\/\d{2}\s+\d{2}:\d{2}:\d{2}$/.test(s))
805
- return dayjs(s, fmt || "YYYY/MM/DD HH:mm:ss");
806
- return dayjs(s, fmt);
1503
+ return (0, import_dayjs.default)(s, fmt || "YYYY/MM/DD HH:mm:ss");
1504
+ return (0, import_dayjs.default)(s, fmt);
807
1505
  }
808
- return dayjs(t, fmt);
1506
+ return (0, import_dayjs.default)(t, fmt);
809
1507
  }
810
1508
 
811
1509
  // node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs