mixlea-utils-js 0.1.91 → 0.1.92

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.
@@ -70,7 +70,7 @@ function ee(e, t) {
70
70
  const { leafField: n = "children" } = t != null ? t : {};
71
71
  return e && Array.isArray(e[n]) && e[n].length > 0;
72
72
  }
73
- function k(e) {
73
+ function C(e) {
74
74
  return typeof e == "string";
75
75
  }
76
76
  function wn(e) {
@@ -79,7 +79,7 @@ function wn(e) {
79
79
  function Fe(e) {
80
80
  return typeof e == "string" && e.length > 0;
81
81
  }
82
- function L(e) {
82
+ function T(e) {
83
83
  return typeof HTMLElement == "function" ? e instanceof HTMLElement : e && typeof e == "object" && e.nodeType === 1 && typeof e.nodeName == "string";
84
84
  }
85
85
  function Sn(e, t) {
@@ -88,11 +88,11 @@ function Sn(e, t) {
88
88
  function te(e) {
89
89
  return Array.isArray(e) ? e.length === 0 : e == null || e === "";
90
90
  }
91
- function C(e) {
91
+ function k(e) {
92
92
  return Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "string" ? e.length === 0 : typeof e == "object" && e !== null && Object.prototype.toString.call(e) === "[object Object]" ? Object.keys(e).length === 0 : e == null;
93
93
  }
94
94
  function H(e) {
95
- return !C(e);
95
+ return !k(e);
96
96
  }
97
97
  function it(e, t, n) {
98
98
  var r;
@@ -137,20 +137,20 @@ function jn(e) {
137
137
  function ot(e) {
138
138
  return Object.prototype.toString.call(e) === "[object Date]";
139
139
  }
140
- function Te(e, t, n) {
140
+ function Le(e, t, n) {
141
141
  var r;
142
142
  return Array.isArray(e) && e.length > 0 && typeof t == "function" ? e.some(t) : (r = n == null ? void 0 : n.emptyResult) != null ? r : !1;
143
143
  }
144
- function Tn(...e) {
145
- return Te(e, te, { emptyResult: !0 });
146
- }
147
144
  function Ln(...e) {
148
- return Te(e, je, { emptyResult: !1 });
145
+ return Le(e, te, { emptyResult: !0 });
149
146
  }
150
- function Cn(e) {
151
- return !!Number.isFinite(e);
147
+ function Tn(...e) {
148
+ return Le(e, je, { emptyResult: !1 });
152
149
  }
153
150
  function kn(e) {
151
+ return !!Number.isFinite(e);
152
+ }
153
+ function Cn(e) {
154
154
  return Object.prototype.toString.call(e) === "[object Object]";
155
155
  }
156
156
  function vn(e) {
@@ -170,7 +170,7 @@ function Un(e) {
170
170
  function F(e) {
171
171
  return e == null;
172
172
  }
173
- function Le(e) {
173
+ function Te(e) {
174
174
  return e != null;
175
175
  }
176
176
  function xn(e) {
@@ -191,13 +191,13 @@ function Yn(e) {
191
191
  function at(e) {
192
192
  return /^-?\d+(\.\d+)?$/.test(e);
193
193
  }
194
- function Ce(e, t, n) {
194
+ function ke(e, t, n) {
195
195
  return e.map((i) => {
196
196
  var s;
197
197
  return (s = i[t]) != null ? s : n;
198
198
  });
199
199
  }
200
- function ke(e, t, n) {
200
+ function Ce(e, t, n) {
201
201
  return e.reduce(
202
202
  (r, i) => (t.forEach((s) => {
203
203
  var o;
@@ -207,10 +207,10 @@ function ke(e, t, n) {
207
207
  );
208
208
  }
209
209
  function _n(e, t, n) {
210
- return Math.max.apply(null, ke(e, t, n));
210
+ return Math.max.apply(null, Ce(e, t, n));
211
211
  }
212
212
  function Wn(e, t, n) {
213
- return Math.min.apply(null, ke(e, t, n));
213
+ return Math.min.apply(null, Ce(e, t, n));
214
214
  }
215
215
  function Gn(e, t) {
216
216
  var i;
@@ -226,7 +226,7 @@ function Gn(e, t) {
226
226
  }
227
227
  return n.push(r), n.reduce((s, o) => [...s, ...o], []);
228
228
  }
229
- function T(e, t) {
229
+ function L(e, t) {
230
230
  if (["number", "string"].includes(typeof e)) {
231
231
  const n = Number(e);
232
232
  if (Number.isNaN(n) || !Number.isFinite(n))
@@ -260,7 +260,7 @@ function qn(e) {
260
260
  Object.assign(t[h], b), g += d;
261
261
  }
262
262
  const y = n - g, m = o(
263
- typeof s == "number" ? T(y, s) : y,
263
+ typeof s == "number" ? L(y, s) : y,
264
264
  t[c - 1],
265
265
  c - 1
266
266
  );
@@ -583,27 +583,34 @@ function jr(e, t, n, r) {
583
583
  r != null && r.chain ? Be(i, u, c) : i[u] = c;
584
584
  }), i;
585
585
  }
586
- function Tr(e, t) {
586
+ function Lr(e, t) {
587
587
  return e.length >= t ? e.slice(0, e.length - t) : [];
588
588
  }
589
- function Lr(e) {
589
+ function Tr(e) {
590
590
  return e.length >= 1 ? e[e.length - 1] : null;
591
591
  }
592
- function Cr(e, t) {
592
+ function kr(e, t) {
593
593
  const n = typeof t == "function" ? t(e) : t;
594
594
  return [...e, ...n];
595
595
  }
596
- function kr(e, t) {
597
- return e.sort((n, r) => {
598
- for (const i of t) {
599
- const s = i.prop, o = i.order || "asc";
600
- if (n[s] < r[s])
601
- return o === "asc" ? -1 : 1;
602
- if (n[s] > r[s])
603
- return o === "asc" ? 1 : -1;
596
+ function Cr(e, t, n) {
597
+ const r = n == null ? void 0 : n.keepLast, i = e.sort((s, o) => {
598
+ for (const u of t) {
599
+ const c = u.prop, f = u.order || "asc";
600
+ if (s[c] < o[c])
601
+ return f === "asc" ? -1 : 1;
602
+ if (s[c] > o[c])
603
+ return f === "asc" ? 1 : -1;
604
604
  }
605
605
  return 0;
606
606
  });
607
+ if (r) {
608
+ const s = [], o = [];
609
+ return i.forEach((u) => {
610
+ r(u) ? s.push(u) : o.push(u);
611
+ }), [...o, ...s];
612
+ }
613
+ return i;
607
614
  }
608
615
  function vr(e, t) {
609
616
  return e.slice().sort((n, r) => {
@@ -640,7 +647,7 @@ function mt(e) {
640
647
  return Array.from(e).map(([, t]) => t);
641
648
  }
642
649
  function P(e, t, n) {
643
- if (w(e) && k(t)) {
650
+ if (w(e) && C(t)) {
644
651
  if (t.includes(".")) {
645
652
  const [r, ...i] = t.split("."), s = e[r];
646
653
  return r in e ? P(s, i.join("."), n) : n;
@@ -662,10 +669,10 @@ function _r(e, t) {
662
669
  }), n));
663
670
  }
664
671
  function Wr(e, t, n) {
665
- return Math.max.apply(null, Ce(e, t, n));
672
+ return Math.max.apply(null, ke(e, t, n));
666
673
  }
667
674
  function Gr(e, t, n) {
668
- return Math.min.apply(null, Ce(e, t, n));
675
+ return Math.min.apply(null, ke(e, t, n));
669
676
  }
670
677
  function qr(e, t) {
671
678
  return e[t];
@@ -705,8 +712,8 @@ function Jr(e, t) {
705
712
  return n;
706
713
  }
707
714
  function j(e, t = "yyyy/MM/dd", n) {
708
- if (k(e) || J(e) || ot(e)) {
709
- const r = k(e) ? /^\d{13}$/.test(e) ? new Date(Number.parseInt(e, 10)) : new Date(e) : J(e) ? new Date(e) : e;
715
+ if (C(e) || J(e) || ot(e)) {
716
+ const r = C(e) ? /^\d{13}$/.test(e) ? new Date(Number.parseInt(e, 10)) : new Date(e) : J(e) ? new Date(e) : e;
710
717
  if (r.toString() === "Invalid Date")
711
718
  return n != null ? n : r.toString();
712
719
  const i = r.getFullYear(), s = r.getMonth() + 1, o = r.getDate(), u = r.getHours(), c = r.getMinutes(), f = r.getSeconds(), a = [...Array(10)].map((g, y) => `0${y}`);
@@ -778,7 +785,7 @@ class xe {
778
785
  }
779
786
  }
780
787
  function Ee(e) {
781
- return k(e) ? e === "null" ? "'null'" : e.replace(/[&=]/g, (t) => t === "&" ? "%26" : "%3D") : "";
788
+ return C(e) ? e === "null" ? "'null'" : e.replace(/[&=]/g, (t) => t === "&" ? "%26" : "%3D") : "";
782
789
  }
783
790
  function le(e, t = "") {
784
791
  const n = [], r = Ee(ne(t));
@@ -1065,7 +1072,7 @@ function Ye(e, t) {
1065
1072
  pt(e).forEach((r) => n(r, e[r], e));
1066
1073
  }
1067
1074
  function wi(e, t) {
1068
- L(e) && w(t) && Ye(t, (n, r) => {
1075
+ T(e) && w(t) && Ye(t, (n, r) => {
1069
1076
  e.style[n] = typeof r == "number" ? `${r}px` : r;
1070
1077
  });
1071
1078
  }
@@ -1091,7 +1098,7 @@ function Ei(e, t, n) {
1091
1098
  }
1092
1099
  }
1093
1100
  function Di(e, t) {
1094
- return L(e) ? e.classList.contains(t) : !1;
1101
+ return T(e) ? e.classList.contains(t) : !1;
1095
1102
  }
1096
1103
  function Mi(e, t, n) {
1097
1104
  let r = e;
@@ -1104,13 +1111,13 @@ function Mi(e, t, n) {
1104
1111
  return n != null ? n : null;
1105
1112
  }
1106
1113
  function $i(e) {
1107
- return e != null && e.getBoundingClientRect && L(e) ? e.getBoundingClientRect() : null;
1114
+ return e != null && e.getBoundingClientRect && T(e) ? e.getBoundingClientRect() : null;
1108
1115
  }
1109
1116
  function Ri(e, t) {
1110
- return L(e) && L(t) ? e.contains(t) : !1;
1117
+ return T(e) && T(t) ? e.contains(t) : !1;
1111
1118
  }
1112
1119
  function bt(e) {
1113
- return L(e) && e.tagName === "INPUT";
1120
+ return T(e) && e.tagName === "INPUT";
1114
1121
  }
1115
1122
  function Oi(e, t, n) {
1116
1123
  if (bt(e) && document.contains(e)) {
@@ -1123,30 +1130,30 @@ function Oi(e, t, n) {
1123
1130
  return Promise.resolve(e);
1124
1131
  }
1125
1132
  function Ii(e, ...t) {
1126
- L(e) && e.classList.add(...t);
1133
+ T(e) && e.classList.add(...t);
1127
1134
  }
1128
1135
  function Pi(e, ...t) {
1129
- L(e) && e.classList.remove(...t);
1136
+ T(e) && e.classList.remove(...t);
1130
1137
  }
1131
1138
  function Fi(e, t) {
1132
- L(e) && w(t) && Ye(t, (n, r) => {
1139
+ T(e) && w(t) && Ye(t, (n, r) => {
1133
1140
  e.style.setProperty(n, r);
1134
1141
  });
1135
1142
  }
1136
1143
  function ji(e) {
1137
1144
  e == null || e.stopPropagation(), e == null || e.preventDefault();
1138
1145
  }
1139
- function Ti(e, t) {
1140
- L(e) && e.dispatchEvent(new Event(t));
1141
- }
1142
1146
  function Li(e, t) {
1147
+ T(e) && e.dispatchEvent(new Event(t));
1148
+ }
1149
+ function Ti(e, t) {
1143
1150
  const n = document.createElement(e);
1144
1151
  return t != null && t.id && (n.id = t.id), t != null && t.className && n.classList.add(...t.className.split(" ")), t != null && t.classList && n.classList.add(...t.classList), n;
1145
1152
  }
1146
- function Ci(e) {
1153
+ function ki(e) {
1147
1154
  return new DOMParser().parseFromString(e, "text/html").body.childNodes[0];
1148
1155
  }
1149
- function ki(e, t) {
1156
+ function Ci(e, t) {
1150
1157
  return e.appendChild(t);
1151
1158
  }
1152
1159
  function vi(e, t) {
@@ -1298,7 +1305,7 @@ function O(e, t) {
1298
1305
  return "";
1299
1306
  if (f > 0) {
1300
1307
  const l = he(a);
1301
- l > 0 ? s && l > f ? (a = `${T(a, f)}`, he(a) < f && c && (a = G(a, f))) : l > f ? a = `${G(a, f, { mode: "truncate" })}` : c && l < f && (a = G(a, f)) : c && (a = G(a, f));
1308
+ l > 0 ? s && l > f ? (a = `${L(a, f)}`, he(a) < f && c && (a = G(a, f))) : l > f ? a = `${G(a, f, { mode: "truncate" })}` : c && l < f && (a = G(a, f)) : c && (a = G(a, f));
1302
1309
  } else
1303
1310
  a = `${Number.parseInt(a, 10)}`;
1304
1311
  return n && (a = _e(a)), r && (a = `${a} %`), a;
@@ -1420,7 +1427,7 @@ function es(e, t) {
1420
1427
  const n = (o = t == null ? void 0 : t.maxValue) != null ? o : 9.99;
1421
1428
  let r = D(e);
1422
1429
  const i = t != null && t.positiveSymbol && r > 0 ? "+" : "", s = typeof (t == null ? void 0 : t.precision) == "function" ? t.precision(r) : (u = t == null ? void 0 : t.precision) != null ? u : 2;
1423
- return Math.abs(r) > n && (r = n * (r < 0 ? -1 : 1)), `${i}${T(r * 100, s)}%`;
1430
+ return Math.abs(r) > n && (r = n * (r < 0 ? -1 : 1)), `${i}${L(r * 100, s)}%`;
1424
1431
  }
1425
1432
  function ts(e, t) {
1426
1433
  return O(e, A(p({}, t), { precision: 0 }));
@@ -1452,7 +1459,7 @@ function rs(e, t, n) {
1452
1459
  return e === t ? n : e;
1453
1460
  }
1454
1461
  function is(e, t) {
1455
- return C(e) ? t : e;
1462
+ return k(e) ? t : e;
1456
1463
  }
1457
1464
  function ss(e, t) {
1458
1465
  return e === "Invalid Date" ? e : t;
@@ -1501,7 +1508,7 @@ function ls(e, t) {
1501
1508
  }
1502
1509
  function We(e, t, n) {
1503
1510
  const { fallbackValue: r = Number.NaN, termFallbackValue: i = Number.NaN } = typeof n == "number" ? { fallbackValue: n } : n != null ? n : {}, s = typeof n == "number" || n == null ? void 0 : n.precision, o = St(e), u = Mt(o), c = $t(u, t, { termFallbackValue: i });
1504
- return Number.isNaN(c) || !Number.isFinite(c) ? r : typeof s == "number" ? T(c, s) : c;
1511
+ return Number.isNaN(c) || !Number.isFinite(c) ? r : typeof s == "number" ? L(c, s) : c;
1505
1512
  }
1506
1513
  function St(e) {
1507
1514
  const t = [];
@@ -1735,9 +1742,9 @@ function ws(e, t, n) {
1735
1742
  return ie.cancel = M, ie.flush = R, ie;
1736
1743
  }
1737
1744
  function Ft(e, t, n = "asc") {
1738
- if (C(e) && C(t)) return 0;
1739
- if (C(e)) return n === "asc" ? 1 : -1;
1740
- if (C(t)) return n === "asc" ? -1 : 1;
1745
+ if (k(e) && k(t)) return 0;
1746
+ if (k(e)) return n === "asc" ? 1 : -1;
1747
+ if (k(t)) return n === "asc" ? -1 : 1;
1741
1748
  if (typeof e == "number" && typeof t == "number")
1742
1749
  return e - t;
1743
1750
  if (typeof e == "string" && typeof t == "string")
@@ -1798,20 +1805,20 @@ function Fs(e, t) {
1798
1805
  function js(e, t, n) {
1799
1806
  return e ? typeof t == "function" ? t(e) : t : typeof n == "function" ? n(e) : n;
1800
1807
  }
1801
- function Ts(e, t) {
1808
+ function Ls(e, t) {
1802
1809
  if (!(F(t) || t === ""))
1803
1810
  return { [e]: t };
1804
1811
  }
1805
- function Ls(...e) {
1812
+ function Ts(...e) {
1806
1813
  for (const t of e)
1807
- if (!C(t))
1814
+ if (!k(t))
1808
1815
  return t;
1809
1816
  return e[e.length - 1];
1810
1817
  }
1811
- function Cs(e, t, n) {
1818
+ function ks(e, t, n) {
1812
1819
  return t(e) ? n : e;
1813
1820
  }
1814
- function ks(e, t) {
1821
+ function Cs(e, t) {
1815
1822
  if (typeof e == "function" ? e() : e)
1816
1823
  return t;
1817
1824
  }
@@ -1859,7 +1866,7 @@ function z(e) {
1859
1866
  function xs(e) {
1860
1867
  const t = {};
1861
1868
  return Object.entries(e).forEach(([n, r]) => {
1862
- C(r) || (t[n] = r);
1869
+ k(r) || (t[n] = r);
1863
1870
  }), t;
1864
1871
  }
1865
1872
  function Hs(e) {
@@ -1882,9 +1889,9 @@ function Ws(e, t) {
1882
1889
  }), n;
1883
1890
  }
1884
1891
  function Gs(e, t) {
1885
- return w(e) && (Fe(t) || st(t)) ? (Array.isArray(t) ? t : [t]).every((n) => Tt(e, n)) : !1;
1892
+ return w(e) && (Fe(t) || st(t)) ? (Array.isArray(t) ? t : [t]).every((n) => Lt(e, n)) : !1;
1886
1893
  }
1887
- function Tt(e, t) {
1894
+ function Lt(e, t) {
1888
1895
  if (w(e) && Fe(t)) {
1889
1896
  let n = e;
1890
1897
  const r = t.split(".");
@@ -1948,7 +1955,7 @@ function eo(e, t, n) {
1948
1955
  function to(e, t, n, r) {
1949
1956
  const i = F(r) ? !1 : r;
1950
1957
  if (Object.prototype.toString.call(e) === "[object Object]") {
1951
- const s = t != null ? t : C, o = Array.isArray(n) ? n : Object.keys(e);
1958
+ const s = t != null ? t : k, o = Array.isArray(n) ? n : Object.keys(e);
1952
1959
  return o.length === 0 ? i : o.every((u) => s(P(e, u)));
1953
1960
  }
1954
1961
  return i;
@@ -2025,7 +2032,7 @@ function mo(e, t) {
2025
2032
  const n = S(e);
2026
2033
  return t && n.toString() === "Invalid Date" ? t : n.getDate();
2027
2034
  }
2028
- function Lt(e, t) {
2035
+ function Tt(e, t) {
2029
2036
  const n = S(e);
2030
2037
  return t && n.toString() === "Invalid Date" ? t : new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate();
2031
2038
  }
@@ -2041,7 +2048,7 @@ function qe(e, t) {
2041
2048
  const n = S(e);
2042
2049
  return t && n.toString() === "Invalid Date" ? t : (n.setMonth(n.getMonth() + 1), n);
2043
2050
  }
2044
- function Ct(e, t = "yyyy/MM/dd", n) {
2051
+ function kt(e, t = "yyyy/MM/dd", n) {
2045
2052
  if (typeof e == "string" || typeof e == "number" || e instanceof Date) {
2046
2053
  const r = new Date(e);
2047
2054
  if (v(r))
@@ -2050,7 +2057,7 @@ function Ct(e, t = "yyyy/MM/dd", n) {
2050
2057
  return n != null ? n : /* @__PURE__ */ new Date("Invalid Date");
2051
2058
  }
2052
2059
  function bo(e, t = "yyyy/MM/dd", n) {
2053
- const r = Ct(e, t, n);
2060
+ const r = kt(e, t, n);
2054
2061
  return v(r) ? new Date(
2055
2062
  Date.UTC(
2056
2063
  r.getFullYear(),
@@ -2097,7 +2104,7 @@ function Ke(e, t) {
2097
2104
  }
2098
2105
  function pe(e, t) {
2099
2106
  const n = new Date(e);
2100
- return t && n.toString() === "Invalid Date" ? t : /* @__PURE__ */ new Date(`${n.getFullYear()}-${n.getMonth() + 1}-${Lt(n)} 23:59:59`);
2107
+ return t && n.toString() === "Invalid Date" ? t : /* @__PURE__ */ new Date(`${n.getFullYear()}-${n.getMonth() + 1}-${Tt(n)} 23:59:59`);
2101
2108
  }
2102
2109
  function Ro(e, t) {
2103
2110
  const n = new Date(e);
@@ -2172,19 +2179,19 @@ function jo(e) {
2172
2179
  }
2173
2180
  return "";
2174
2181
  }
2175
- function To(e, t) {
2182
+ function Lo(e, t) {
2176
2183
  const n = S(e);
2177
2184
  return t && n.toString() === "Invalid Date" ? t : (/* @__PURE__ */ new Date(`${n.getFullYear()}/${n.getMonth() + 1}/${n.getDate()} 00:00:00`)).getTime();
2178
2185
  }
2179
- function Lo(e, t) {
2186
+ function To(e, t) {
2180
2187
  const n = S(e);
2181
2188
  return t && n.toString() === "Invalid Date" ? t : (/* @__PURE__ */ new Date(`${n.getFullYear()}/${n.getMonth() + 1}/${n.getDate()} 23:59:59`)).getTime();
2182
2189
  }
2183
- function Co() {
2190
+ function ko() {
2184
2191
  const e = /* @__PURE__ */ new Date();
2185
2192
  return e.setHours(0, 0, 0, 0), e.getTime();
2186
2193
  }
2187
- function ko() {
2194
+ function Co() {
2188
2195
  const e = /* @__PURE__ */ new Date();
2189
2196
  return e.setHours(23, 59, 59), e.getTime();
2190
2197
  }
@@ -2273,14 +2280,14 @@ function nu(e, ...t) {
2273
2280
  function ru(e) {
2274
2281
  return e > 1920 ? "3xl" : e > 1536 ? "2xl" : e > 1280 ? "xl" : e > 1024 ? "lg" : e > 768 ? "md" : e > 500 ? "sm" : "xs";
2275
2282
  }
2276
- function kt() {
2283
+ function Ct() {
2277
2284
  return navigator != null && navigator.userAgent ? /miniProgram/i.test(navigator.userAgent) || navigator.userAgent.includes("AlipayClient") || navigator.userAgent.includes("AliApp") : !1;
2278
2285
  }
2279
2286
  function vt() {
2280
2287
  return !!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
2281
2288
  }
2282
2289
  function iu() {
2283
- return kt() ? "webview" : vt() ? "mobile" : "desktop";
2290
+ return Ct() ? "webview" : vt() ? "mobile" : "desktop";
2284
2291
  }
2285
2292
  const ge = /* @__PURE__ */ new Map();
2286
2293
  function Bt(e, t) {
@@ -2365,7 +2372,7 @@ function Yt(e) {
2365
2372
  function Ie(e, t) {
2366
2373
  var r;
2367
2374
  const n = (r = t == null ? void 0 : t.excludeKey) != null ? r : Ge;
2368
- if (k(e))
2375
+ if (C(e))
2369
2376
  return Yt(e);
2370
2377
  if (w(e)) {
2371
2378
  const i = Y(e);
@@ -2557,7 +2564,7 @@ function Gt(e, t) {
2557
2564
  return typeof e == "string" && e.length > 0 ? e.split(t).map((n) => n.trim()) : [];
2558
2565
  }
2559
2566
  function Mu(e, t) {
2560
- return k(e) ? Gt(e, t) : K(e) ? e : [];
2567
+ return C(e) ? Gt(e, t) : K(e) ? e : [];
2561
2568
  }
2562
2569
  function $u(e, t) {
2563
2570
  return e === 0 ? t : e;
@@ -2603,10 +2610,10 @@ function Ru(e, t = "B") {
2603
2610
  }
2604
2611
  }
2605
2612
  function Ou(e, t) {
2606
- return k(e) ? e.split(t).length - 1 : 0;
2613
+ return C(e) ? e.split(t).length - 1 : 0;
2607
2614
  }
2608
2615
  function Iu(e, t) {
2609
- return k(e) ? e.split(t).length - 1 : 0;
2616
+ return C(e) ? e.split(t).length - 1 : 0;
2610
2617
  }
2611
2618
  function Pu(e, t) {
2612
2619
  const n = t ? "?" : "", r = [];
@@ -2648,7 +2655,7 @@ function ju(e = [], t = {
2648
2655
  }
2649
2656
  return s;
2650
2657
  }
2651
- const Tu = {
2658
+ const Lu = {
2652
2659
  FUNC_PREFIX: "__xfunc__",
2653
2660
  REG_PREFIX: "__xreg__",
2654
2661
  isArrOrObj(e) {
@@ -2725,7 +2732,7 @@ function qt(e, t) {
2725
2732
  return !1;
2726
2733
  return !0;
2727
2734
  }
2728
- function Lu(e) {
2735
+ function Tu(e) {
2729
2736
  let t = e;
2730
2737
  try {
2731
2738
  if (typeof t == "string" && (t = Number.parseFloat(t.replaceAll(",", ""))), F(t) || isNaN(t))
@@ -2763,10 +2770,10 @@ function Lu(e) {
2763
2770
  return n.message;
2764
2771
  }
2765
2772
  }
2766
- function Cu(e, t) {
2767
- return Le(e) ? e : typeof t == "function" ? t() : t;
2768
- }
2769
2773
  function ku(e, t) {
2774
+ return Te(e) ? e : typeof t == "function" ? t() : t;
2775
+ }
2776
+ function Cu(e, t) {
2770
2777
  return typeof e == "function" ? t.length === 0 ? e() : e(...t) : e;
2771
2778
  }
2772
2779
  function Kt(...e) {
@@ -2802,7 +2809,7 @@ function Bu(e, t) {
2802
2809
  return n;
2803
2810
  }
2804
2811
  function Uu(e, t = ", ") {
2805
- return K(e) ? e.join(t) : k(e) ? e : "";
2812
+ return K(e) ? e.join(t) : C(e) ? e : "";
2806
2813
  }
2807
2814
  function xu(e, t = 1) {
2808
2815
  const r = /^#?[a-fA-F0-9]+$/;
@@ -3032,17 +3039,17 @@ function Ku(e) {
3032
3039
  if (t)
3033
3040
  switch (t.unit) {
3034
3041
  case "KG":
3035
- return T(Number.parseFloat(t.value) * t.quantity, 6);
3042
+ return L(Number.parseFloat(t.value) * t.quantity, 6);
3036
3043
  case "G":
3037
- return T(Number.parseFloat(t.value) / 1e3 * t.quantity, 6);
3044
+ return L(Number.parseFloat(t.value) / 1e3 * t.quantity, 6);
3038
3045
  case "MG":
3039
- return T(Number.parseFloat(t.value) / 1e6 * t.quantity, 6);
3046
+ return L(Number.parseFloat(t.value) / 1e6 * t.quantity, 6);
3040
3047
  case "L":
3041
- return T(Number.parseFloat(t.value) * t.quantity, 6);
3048
+ return L(Number.parseFloat(t.value) * t.quantity, 6);
3042
3049
  case "ML":
3043
- return T(Number.parseFloat(t.value) / 1e3 * t.quantity, 6);
3050
+ return L(Number.parseFloat(t.value) / 1e3 * t.quantity, 6);
3044
3051
  case "LB":
3045
- return T(Number.parseFloat(t.value) * 0.45359237 * t.quantity, 6);
3052
+ return L(Number.parseFloat(t.value) * 0.45359237 * t.quantity, 6);
3046
3053
  default:
3047
3054
  return null;
3048
3055
  }
@@ -3235,7 +3242,7 @@ const Qu = {
3235
3242
  function ec(...e) {
3236
3243
  for (const t of e) {
3237
3244
  const n = X(t);
3238
- if (Le(n))
3245
+ if (Te(n))
3239
3246
  return n;
3240
3247
  }
3241
3248
  }
@@ -3423,14 +3430,14 @@ export {
3423
3430
  Rs as alwaysReturnNullish,
3424
3431
  Ds as alwaysReturnTrue,
3425
3432
  qn as arrayAllocateTotal,
3426
- Cr as arrayAppend,
3433
+ kr as arrayAppend,
3427
3434
  Qr as arrayAssign,
3428
3435
  Nr as arrayDiff,
3429
3436
  $r as arrayDistinct,
3430
3437
  or as arrayDuplicateMerge,
3431
3438
  it as arrayEvery,
3432
3439
  xr as arrayExcludeIndexes,
3433
- Tr as arrayExcludeLastNumber,
3440
+ Lr as arrayExcludeLastNumber,
3434
3441
  ft as arrayFilter,
3435
3442
  ar as arrayFind,
3436
3443
  pr as arrayFindChainIndexes,
@@ -3461,12 +3468,12 @@ export {
3461
3468
  Mr as arrayNotIn,
3462
3469
  oi as arrayObjectFieldNotEmptySame,
3463
3470
  si as arrayObjectFieldSame,
3464
- kr as arrayObjectMultiSort,
3465
- Lr as arrayPickLast,
3471
+ Cr as arrayObjectMultiSort,
3472
+ Tr as arrayPickLast,
3466
3473
  Kn as arrayPrioritySort,
3467
3474
  hr as arrayReduce,
3468
3475
  gr as arraySlice,
3469
- Te as arraySome,
3476
+ Le as arraySome,
3470
3477
  vr as arraySort,
3471
3478
  ci as arraySumAssignMerge,
3472
3479
  ur as arrayToBetween,
@@ -3485,7 +3492,7 @@ export {
3485
3492
  ds as calcNumberDiffRate,
3486
3493
  Ru as calculateMemory,
3487
3494
  X as callable,
3488
- Lu as capitalizedAmount,
3495
+ Tu as capitalizedAmount,
3489
3496
  Ss as classNameExcludes,
3490
3497
  jt as classNames,
3491
3498
  Y as clone,
@@ -3497,8 +3504,8 @@ export {
3497
3504
  gt as createArray,
3498
3505
  Eu as createDelayResizeObserver,
3499
3506
  Ys as createFormData,
3500
- Li as createHtmlElement,
3501
- Ci as createHtmlElementByTemplate,
3507
+ Ti as createHtmlElement,
3508
+ ki as createHtmlElementByTemplate,
3502
3509
  Ju as createReducerStore,
3503
3510
  Su as createResizeObserver,
3504
3511
  zu as createStateStore,
@@ -3527,7 +3534,7 @@ export {
3527
3534
  yu as downloadFile,
3528
3535
  mu as downloadURL,
3529
3536
  tc as emptyCoalesce,
3530
- Ls as emptyCoalescing,
3537
+ Ts as emptyCoalescing,
3531
3538
  Zr as emptyFunction,
3532
3539
  pn as encrypt,
3533
3540
  I as ensureArray,
@@ -3567,7 +3574,7 @@ export {
3567
3574
  $i as getDOMRect,
3568
3575
  mc as getDateBelongWeek,
3569
3576
  mo as getDateDay,
3570
- Lt as getDateLastDay,
3577
+ Tt as getDateLastDay,
3571
3578
  ho as getDateMonth,
3572
3579
  pe as getDateMonthEndDate,
3573
3580
  Ke as getDateMonthStartDate,
@@ -3575,8 +3582,8 @@ export {
3575
3582
  yo as getDateWeekday,
3576
3583
  go as getDateYear,
3577
3584
  wo as getDateZeroTimeZoneTime,
3578
- Lo as getDayEndTimestamp,
3579
- To as getDayStartTimestamp,
3585
+ To as getDayEndTimestamp,
3586
+ Lo as getDayStartTimestamp,
3580
3587
  au as getFileType,
3581
3588
  cu as getFileTypeFromPath,
3582
3589
  Wu as getHexPercentColor,
@@ -3599,8 +3606,8 @@ export {
3599
3606
  Gu as getRangeHexPercentColor,
3600
3607
  ui as getRecordMergeKey,
3601
3608
  vo as getToday,
3602
- ko as getTodayEndTimestamp,
3603
- Co as getTodayStartTimestamp,
3609
+ Co as getTodayEndTimestamp,
3610
+ ko as getTodayStartTimestamp,
3604
3611
  Je as getYearDetailWeeks,
3605
3612
  Wo as getYearEndTimestamp,
3606
3613
  Ze as getYearFirstWeekStartDate,
@@ -3614,26 +3621,26 @@ export {
3614
3621
  Qu as h5,
3615
3622
  Hu as hexToArgb,
3616
3623
  xu as hexToRgba,
3617
- ki as htmlElementAppendChild,
3624
+ Ci as htmlElementAppendChild,
3618
3625
  Di as htmlElementHasClassName,
3619
3626
  vi as htmlElementRemoveChild,
3620
3627
  vs as ifElse,
3621
3628
  Z as ifNaNReplace,
3622
- Cs as ifReplace,
3623
- ks as ifReturn,
3629
+ ks as ifReplace,
3630
+ Cs as ifReturn,
3624
3631
  rc as iif,
3625
3632
  ns as inputNumberMask,
3626
3633
  ts as integerFormatter,
3627
3634
  Uo as invalidDateReplace,
3628
- ku as invokeable,
3635
+ Cu as invokeable,
3629
3636
  K as isArray,
3630
3637
  jn as isBoolean,
3631
3638
  ct as isChineseChar,
3632
3639
  Yn as isChineseString,
3633
- L as isDOM,
3640
+ T as isDOM,
3634
3641
  ot as isDate,
3635
3642
  $n as isDesktopBrowser,
3636
- C as isEmpty,
3643
+ k as isEmpty,
3637
3644
  wn as isEmptyString,
3638
3645
  Sn as isEqual,
3639
3646
  ut as isEqualZero,
@@ -3651,7 +3658,7 @@ export {
3651
3658
  st as isNotEmptyArray,
3652
3659
  Fe as isNotEmptyString,
3653
3660
  Bn as isNotEqualZero,
3654
- Le as isNotNullish,
3661
+ Te as isNotNullish,
3655
3662
  vn as isNotPlainObject,
3656
3663
  An as isNotUndefined,
3657
3664
  je as isNotVoid,
@@ -3660,11 +3667,11 @@ export {
3660
3667
  at as isNumeric,
3661
3668
  qt as isObjStructureEqual,
3662
3669
  w as isObject,
3663
- kn as isPlainObject,
3670
+ Cn as isPlainObject,
3664
3671
  xn as isPromise,
3665
- Ln as isSomeNotVoid,
3666
- Tn as isSomeVoid,
3667
- k as isString,
3672
+ Tn as isSomeNotVoid,
3673
+ Ln as isSomeVoid,
3674
+ C as isString,
3668
3675
  Se as isTimestamp,
3669
3676
  ee as isTreeBranch,
3670
3677
  de as isTreeLeaf,
@@ -3673,11 +3680,11 @@ export {
3673
3680
  Hn as isURLSearchParams,
3674
3681
  Nn as isUndefined,
3675
3682
  v as isValidDate,
3676
- Cn as isValidNumber,
3683
+ kn as isValidNumber,
3677
3684
  te as isVoid,
3678
3685
  Rn as isWebViewBrowser,
3679
3686
  Dn as isWeixinBrowser,
3680
- Tu as jsonParser,
3687
+ Lu as jsonParser,
3681
3688
  Vo as localStorageDelete,
3682
3689
  zo as localStorageGet,
3683
3690
  Jo as localStorageSet,
@@ -3698,7 +3705,7 @@ export {
3698
3705
  O as numberFormatter,
3699
3706
  Ki as numberKeepDecimal,
3700
3707
  Qi as numberRandom,
3701
- T as numberRound,
3708
+ L as numberRound,
3702
3709
  Xi as numberToInt,
3703
3710
  Pu as objToUrl,
3704
3711
  so as objectArrayExpressionCalcInject,
@@ -3739,8 +3746,8 @@ export {
3739
3746
  Ks as objectValueMap,
3740
3747
  zt as parseURL,
3741
3748
  es as percentFormatter,
3742
- Ce as pickObjectArrayField,
3743
- ke as pickObjectArrayFields,
3749
+ ke as pickObjectArrayField,
3750
+ Ce as pickObjectArrayFields,
3744
3751
  Kt as pipe,
3745
3752
  vu as pipeWith,
3746
3753
  bu as promiseQueue,
@@ -3753,7 +3760,7 @@ export {
3753
3760
  lu as readFileAsArrayBuffer,
3754
3761
  hu as readFileAsBuffer,
3755
3762
  gu as readURLAsBuffer,
3756
- Cu as returnNotVoid,
3763
+ ku as returnNotVoid,
3757
3764
  Yu as rgba2obj,
3758
3765
  pu as runPromiseQueue,
3759
3766
  Nu as runQueuePromise,
@@ -3784,10 +3791,10 @@ export {
3784
3791
  Bs as switchCase,
3785
3792
  Vr as toArray,
3786
3793
  S as toDate,
3787
- Ct as toFormatDate,
3794
+ kt as toFormatDate,
3788
3795
  bo as toFormatUtcDate,
3789
3796
  D as toNumber,
3790
- Ts as toQueryValue,
3797
+ Ls as toQueryValue,
3791
3798
  He as toSafeNumber,
3792
3799
  Gi as toSafeString,
3793
3800
  Ie as toSimplifiedChinese,
@@ -3810,7 +3817,7 @@ export {
3810
3817
  ai as treePick,
3811
3818
  fi as treeSort,
3812
3819
  Fu as treeToFlatArray,
3813
- Ti as triggerDOMEvent,
3820
+ Li as triggerDOMEvent,
3814
3821
  ou as uniqueBy,
3815
3822
  _s as urlStringify,
3816
3823
  q as uuid,