60p82u21t54k 0.2.32 → 0.2.34
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/60p82u21t54k.es.js +378 -376
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/util/tool.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -76,9 +76,9 @@ const wa = (e) => {
|
|
|
76
76
|
__proto__: null,
|
|
77
77
|
getConfig: ht,
|
|
78
78
|
setConfig: wa
|
|
79
|
-
}, Symbol.toStringTag, { value: "Module" })), aa = 6048e5, Pa = 864e5,
|
|
79
|
+
}, Symbol.toStringTag, { value: "Module" })), aa = 6048e5, Pa = 864e5, xa = 6e4, Ra = 36e5, ka = 1e3, kt = Symbol.for("constructDateFrom");
|
|
80
80
|
function E(e, a) {
|
|
81
|
-
return typeof e == "function" ? e(a) : e && typeof e == "object" &&
|
|
81
|
+
return typeof e == "function" ? e(a) : e && typeof e == "object" && kt in e ? e[kt](a) : e instanceof Date ? new e.constructor(a) : new Date(a);
|
|
82
82
|
}
|
|
83
83
|
function W(e, a) {
|
|
84
84
|
return E(a || e, e);
|
|
@@ -87,27 +87,27 @@ function na(e, a, t) {
|
|
|
87
87
|
const n = W(e, t == null ? void 0 : t.in);
|
|
88
88
|
return isNaN(a) ? E((t == null ? void 0 : t.in) || e, NaN) : (a && n.setDate(n.getDate() + a), n);
|
|
89
89
|
}
|
|
90
|
-
let
|
|
91
|
-
function
|
|
92
|
-
return
|
|
90
|
+
let Oa = {};
|
|
91
|
+
function ke() {
|
|
92
|
+
return Oa;
|
|
93
93
|
}
|
|
94
94
|
function fe(e, a) {
|
|
95
95
|
var d, g, p, h;
|
|
96
|
-
const t =
|
|
96
|
+
const t = ke(), n = (a == null ? void 0 : a.weekStartsOn) ?? ((g = (d = a == null ? void 0 : a.locale) == null ? void 0 : d.options) == null ? void 0 : g.weekStartsOn) ?? t.weekStartsOn ?? ((h = (p = t.locale) == null ? void 0 : p.options) == null ? void 0 : h.weekStartsOn) ?? 0, r = W(e, a == null ? void 0 : a.in), s = r.getDay(), i = (s < n ? 7 : 0) + s - n;
|
|
97
97
|
return r.setDate(r.getDate() - i), r.setHours(0, 0, 0, 0), r;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function xe(e, a) {
|
|
100
100
|
return fe(e, { ...a, weekStartsOn: 1 });
|
|
101
101
|
}
|
|
102
102
|
function ra(e, a) {
|
|
103
103
|
const t = W(e, a == null ? void 0 : a.in), n = t.getFullYear(), r = E(t, 0);
|
|
104
104
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
105
|
-
const s =
|
|
105
|
+
const s = xe(r), i = E(t, 0);
|
|
106
106
|
i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
|
|
107
|
-
const d =
|
|
107
|
+
const d = xe(i);
|
|
108
108
|
return t.getTime() >= s.getTime() ? n + 1 : t.getTime() >= d.getTime() ? n : n - 1;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Ee(e) {
|
|
111
111
|
const a = W(e), t = new Date(
|
|
112
112
|
Date.UTC(
|
|
113
113
|
a.getFullYear(),
|
|
@@ -128,7 +128,7 @@ function Ma(e, ...a) {
|
|
|
128
128
|
);
|
|
129
129
|
return a.map(t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ot(e, a) {
|
|
132
132
|
const t = W(e, a == null ? void 0 : a.in);
|
|
133
133
|
return t.setHours(0, 0, 0, 0), t;
|
|
134
134
|
}
|
|
@@ -137,12 +137,12 @@ function Sa(e, a, t) {
|
|
|
137
137
|
t == null ? void 0 : t.in,
|
|
138
138
|
e,
|
|
139
139
|
a
|
|
140
|
-
), s =
|
|
140
|
+
), s = Ot(n), i = Ot(r), d = +s - Ee(s), g = +i - Ee(i);
|
|
141
141
|
return Math.round((d - g) / Pa);
|
|
142
142
|
}
|
|
143
143
|
function Ia(e, a) {
|
|
144
144
|
const t = ra(e, a), n = E(e, 0);
|
|
145
|
-
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0),
|
|
145
|
+
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), xe(n);
|
|
146
146
|
}
|
|
147
147
|
function ja(e) {
|
|
148
148
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -263,7 +263,7 @@ const Ga = {
|
|
|
263
263
|
nextWeek: "eeee 'at' p",
|
|
264
264
|
other: "P"
|
|
265
265
|
}, qa = (e, a, t, n) => Ya[e];
|
|
266
|
-
function
|
|
266
|
+
function Ne(e) {
|
|
267
267
|
return (a, t) => {
|
|
268
268
|
const n = t != null && t.context ? String(t.context) : "standalone";
|
|
269
269
|
let r;
|
|
@@ -405,31 +405,31 @@ const Ha = {
|
|
|
405
405
|
return t + "th";
|
|
406
406
|
}, Xa = {
|
|
407
407
|
ordinalNumber: Qa,
|
|
408
|
-
era:
|
|
408
|
+
era: Ne({
|
|
409
409
|
values: Ha,
|
|
410
410
|
defaultWidth: "wide"
|
|
411
411
|
}),
|
|
412
|
-
quarter:
|
|
412
|
+
quarter: Ne({
|
|
413
413
|
values: Ba,
|
|
414
414
|
defaultWidth: "wide",
|
|
415
415
|
argumentCallback: (e) => e - 1
|
|
416
416
|
}),
|
|
417
|
-
month:
|
|
417
|
+
month: Ne({
|
|
418
418
|
values: Ua,
|
|
419
419
|
defaultWidth: "wide"
|
|
420
420
|
}),
|
|
421
|
-
day:
|
|
421
|
+
day: Ne({
|
|
422
422
|
values: $a,
|
|
423
423
|
defaultWidth: "wide"
|
|
424
424
|
}),
|
|
425
|
-
dayPeriod:
|
|
425
|
+
dayPeriod: Ne({
|
|
426
426
|
values: Va,
|
|
427
427
|
defaultWidth: "wide",
|
|
428
428
|
formattingValues: Aa,
|
|
429
429
|
defaultFormattingWidth: "wide"
|
|
430
430
|
})
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function Le(e) {
|
|
433
433
|
return (a, t = {}) => {
|
|
434
434
|
const n = t.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], s = a.match(r);
|
|
435
435
|
if (!s)
|
|
@@ -542,32 +542,32 @@ const en = /^(\d+)(th|st|nd|rd)?/i, tn = /\d+/i, an = {
|
|
|
542
542
|
parsePattern: tn,
|
|
543
543
|
valueCallback: (e) => parseInt(e, 10)
|
|
544
544
|
}),
|
|
545
|
-
era:
|
|
545
|
+
era: Le({
|
|
546
546
|
matchPatterns: an,
|
|
547
547
|
defaultMatchWidth: "wide",
|
|
548
548
|
parsePatterns: nn,
|
|
549
549
|
defaultParseWidth: "any"
|
|
550
550
|
}),
|
|
551
|
-
quarter:
|
|
551
|
+
quarter: Le({
|
|
552
552
|
matchPatterns: rn,
|
|
553
553
|
defaultMatchWidth: "wide",
|
|
554
554
|
parsePatterns: sn,
|
|
555
555
|
defaultParseWidth: "any",
|
|
556
556
|
valueCallback: (e) => e + 1
|
|
557
557
|
}),
|
|
558
|
-
month:
|
|
558
|
+
month: Le({
|
|
559
559
|
matchPatterns: on,
|
|
560
560
|
defaultMatchWidth: "wide",
|
|
561
561
|
parsePatterns: un,
|
|
562
562
|
defaultParseWidth: "any"
|
|
563
563
|
}),
|
|
564
|
-
day:
|
|
564
|
+
day: Le({
|
|
565
565
|
matchPatterns: ln,
|
|
566
566
|
defaultMatchWidth: "wide",
|
|
567
567
|
parsePatterns: cn,
|
|
568
568
|
defaultParseWidth: "any"
|
|
569
569
|
}),
|
|
570
|
-
dayPeriod:
|
|
570
|
+
dayPeriod: Le({
|
|
571
571
|
matchPatterns: dn,
|
|
572
572
|
defaultMatchWidth: "any",
|
|
573
573
|
parsePatterns: mn,
|
|
@@ -590,12 +590,12 @@ function fn(e, a) {
|
|
|
590
590
|
return Sa(t, Na(t)) + 1;
|
|
591
591
|
}
|
|
592
592
|
function oa(e, a) {
|
|
593
|
-
const t = W(e, a == null ? void 0 : a.in), n = +
|
|
593
|
+
const t = W(e, a == null ? void 0 : a.in), n = +xe(t) - +Ia(t);
|
|
594
594
|
return Math.round(n / aa) + 1;
|
|
595
595
|
}
|
|
596
596
|
function _t(e, a) {
|
|
597
597
|
var h, w, _, b;
|
|
598
|
-
const t = W(e, a == null ? void 0 : a.in), n = t.getFullYear(), r =
|
|
598
|
+
const t = W(e, a == null ? void 0 : a.in), n = t.getFullYear(), r = ke(), s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((w = (h = a == null ? void 0 : a.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (_ = r.locale) == null ? void 0 : _.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, i = E((a == null ? void 0 : a.in) || e, 0);
|
|
599
599
|
i.setFullYear(n + 1, 0, s), i.setHours(0, 0, 0, 0);
|
|
600
600
|
const d = fe(i, a), g = E((a == null ? void 0 : a.in) || e, 0);
|
|
601
601
|
g.setFullYear(n, 0, s), g.setHours(0, 0, 0, 0);
|
|
@@ -604,14 +604,14 @@ function _t(e, a) {
|
|
|
604
604
|
}
|
|
605
605
|
function pn(e, a) {
|
|
606
606
|
var d, g, p, h;
|
|
607
|
-
const t =
|
|
607
|
+
const t = ke(), n = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((g = (d = a == null ? void 0 : a.locale) == null ? void 0 : d.options) == null ? void 0 : g.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((h = (p = t.locale) == null ? void 0 : p.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, r = _t(e, a), s = E((a == null ? void 0 : a.in) || e, 0);
|
|
608
608
|
return s.setFullYear(r, 0, n), s.setHours(0, 0, 0, 0), fe(s, a);
|
|
609
609
|
}
|
|
610
610
|
function ia(e, a) {
|
|
611
611
|
const t = W(e, a == null ? void 0 : a.in), n = +fe(t, a) - +pn(t, a);
|
|
612
612
|
return Math.round(n / aa) + 1;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function k(e, a) {
|
|
615
615
|
const t = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(a, "0");
|
|
616
616
|
return t + n;
|
|
617
617
|
}
|
|
@@ -619,16 +619,16 @@ const ge = {
|
|
|
619
619
|
// Year
|
|
620
620
|
y(e, a) {
|
|
621
621
|
const t = e.getFullYear(), n = t > 0 ? t : 1 - t;
|
|
622
|
-
return
|
|
622
|
+
return k(a === "yy" ? n % 100 : n, a.length);
|
|
623
623
|
},
|
|
624
624
|
// Month
|
|
625
625
|
M(e, a) {
|
|
626
626
|
const t = e.getMonth();
|
|
627
|
-
return a === "M" ? String(t + 1) :
|
|
627
|
+
return a === "M" ? String(t + 1) : k(t + 1, 2);
|
|
628
628
|
},
|
|
629
629
|
// Day of the month
|
|
630
630
|
d(e, a) {
|
|
631
|
-
return
|
|
631
|
+
return k(e.getDate(), a.length);
|
|
632
632
|
},
|
|
633
633
|
// AM or PM
|
|
634
634
|
a(e, a) {
|
|
@@ -648,28 +648,28 @@ const ge = {
|
|
|
648
648
|
},
|
|
649
649
|
// Hour [1-12]
|
|
650
650
|
h(e, a) {
|
|
651
|
-
return
|
|
651
|
+
return k(e.getHours() % 12 || 12, a.length);
|
|
652
652
|
},
|
|
653
653
|
// Hour [0-23]
|
|
654
654
|
H(e, a) {
|
|
655
|
-
return
|
|
655
|
+
return k(e.getHours(), a.length);
|
|
656
656
|
},
|
|
657
657
|
// Minute
|
|
658
658
|
m(e, a) {
|
|
659
|
-
return
|
|
659
|
+
return k(e.getMinutes(), a.length);
|
|
660
660
|
},
|
|
661
661
|
// Second
|
|
662
662
|
s(e, a) {
|
|
663
|
-
return
|
|
663
|
+
return k(e.getSeconds(), a.length);
|
|
664
664
|
},
|
|
665
665
|
// Fraction of second
|
|
666
666
|
S(e, a) {
|
|
667
667
|
const t = a.length, n = e.getMilliseconds(), r = Math.trunc(
|
|
668
668
|
n * Math.pow(10, t - 3)
|
|
669
669
|
);
|
|
670
|
-
return
|
|
670
|
+
return k(r, a.length);
|
|
671
671
|
}
|
|
672
|
-
},
|
|
672
|
+
}, we = {
|
|
673
673
|
midnight: "midnight",
|
|
674
674
|
noon: "noon",
|
|
675
675
|
morning: "morning",
|
|
@@ -708,14 +708,14 @@ const ge = {
|
|
|
708
708
|
const r = _t(e, n), s = r > 0 ? r : 1 - r;
|
|
709
709
|
if (a === "YY") {
|
|
710
710
|
const i = s % 100;
|
|
711
|
-
return
|
|
711
|
+
return k(i, 2);
|
|
712
712
|
}
|
|
713
|
-
return a === "Yo" ? t.ordinalNumber(s, { unit: "year" }) :
|
|
713
|
+
return a === "Yo" ? t.ordinalNumber(s, { unit: "year" }) : k(s, a.length);
|
|
714
714
|
},
|
|
715
715
|
// ISO week-numbering year
|
|
716
716
|
R: function(e, a) {
|
|
717
717
|
const t = ra(e);
|
|
718
|
-
return
|
|
718
|
+
return k(t, a.length);
|
|
719
719
|
},
|
|
720
720
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
721
721
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -728,7 +728,7 @@ const ge = {
|
|
|
728
728
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
729
729
|
u: function(e, a) {
|
|
730
730
|
const t = e.getFullYear();
|
|
731
|
-
return
|
|
731
|
+
return k(t, a.length);
|
|
732
732
|
},
|
|
733
733
|
// Quarter
|
|
734
734
|
Q: function(e, a, t) {
|
|
@@ -739,7 +739,7 @@ const ge = {
|
|
|
739
739
|
return String(n);
|
|
740
740
|
// 01, 02, 03, 04
|
|
741
741
|
case "QQ":
|
|
742
|
-
return
|
|
742
|
+
return k(n, 2);
|
|
743
743
|
// 1st, 2nd, 3rd, 4th
|
|
744
744
|
case "Qo":
|
|
745
745
|
return t.ordinalNumber(n, { unit: "quarter" });
|
|
@@ -773,7 +773,7 @@ const ge = {
|
|
|
773
773
|
return String(n);
|
|
774
774
|
// 01, 02, 03, 04
|
|
775
775
|
case "qq":
|
|
776
|
-
return
|
|
776
|
+
return k(n, 2);
|
|
777
777
|
// 1st, 2nd, 3rd, 4th
|
|
778
778
|
case "qo":
|
|
779
779
|
return t.ordinalNumber(n, { unit: "quarter" });
|
|
@@ -835,7 +835,7 @@ const ge = {
|
|
|
835
835
|
return String(n + 1);
|
|
836
836
|
// 01, 02, ..., 12
|
|
837
837
|
case "LL":
|
|
838
|
-
return
|
|
838
|
+
return k(n + 1, 2);
|
|
839
839
|
// 1st, 2nd, ..., 12th
|
|
840
840
|
case "Lo":
|
|
841
841
|
return t.ordinalNumber(n + 1, { unit: "month" });
|
|
@@ -860,12 +860,12 @@ const ge = {
|
|
|
860
860
|
// Local week of year
|
|
861
861
|
w: function(e, a, t, n) {
|
|
862
862
|
const r = ia(e, n);
|
|
863
|
-
return a === "wo" ? t.ordinalNumber(r, { unit: "week" }) :
|
|
863
|
+
return a === "wo" ? t.ordinalNumber(r, { unit: "week" }) : k(r, a.length);
|
|
864
864
|
},
|
|
865
865
|
// ISO week of year
|
|
866
866
|
I: function(e, a, t) {
|
|
867
867
|
const n = oa(e);
|
|
868
|
-
return a === "Io" ? t.ordinalNumber(n, { unit: "week" }) :
|
|
868
|
+
return a === "Io" ? t.ordinalNumber(n, { unit: "week" }) : k(n, a.length);
|
|
869
869
|
},
|
|
870
870
|
// Day of the month
|
|
871
871
|
d: function(e, a, t) {
|
|
@@ -874,7 +874,7 @@ const ge = {
|
|
|
874
874
|
// Day of year
|
|
875
875
|
D: function(e, a, t) {
|
|
876
876
|
const n = fn(e);
|
|
877
|
-
return a === "Do" ? t.ordinalNumber(n, { unit: "dayOfYear" }) :
|
|
877
|
+
return a === "Do" ? t.ordinalNumber(n, { unit: "dayOfYear" }) : k(n, a.length);
|
|
878
878
|
},
|
|
879
879
|
// Day of week
|
|
880
880
|
E: function(e, a, t) {
|
|
@@ -918,7 +918,7 @@ const ge = {
|
|
|
918
918
|
return String(s);
|
|
919
919
|
// Padded numerical value
|
|
920
920
|
case "ee":
|
|
921
|
-
return
|
|
921
|
+
return k(s, 2);
|
|
922
922
|
// 1st, 2nd, ..., 7th
|
|
923
923
|
case "eo":
|
|
924
924
|
return t.ordinalNumber(s, { unit: "day" });
|
|
@@ -957,7 +957,7 @@ const ge = {
|
|
|
957
957
|
return String(s);
|
|
958
958
|
// Padded numerical value
|
|
959
959
|
case "cc":
|
|
960
|
-
return
|
|
960
|
+
return k(s, a.length);
|
|
961
961
|
// 1st, 2nd, ..., 7th
|
|
962
962
|
case "co":
|
|
963
963
|
return t.ordinalNumber(s, { unit: "day" });
|
|
@@ -996,7 +996,7 @@ const ge = {
|
|
|
996
996
|
return String(r);
|
|
997
997
|
// 02
|
|
998
998
|
case "ii":
|
|
999
|
-
return
|
|
999
|
+
return k(r, a.length);
|
|
1000
1000
|
// 2nd
|
|
1001
1001
|
case "io":
|
|
1002
1002
|
return t.ordinalNumber(r, { unit: "day" });
|
|
@@ -1059,7 +1059,7 @@ const ge = {
|
|
|
1059
1059
|
b: function(e, a, t) {
|
|
1060
1060
|
const n = e.getHours();
|
|
1061
1061
|
let r;
|
|
1062
|
-
switch (n === 12 ? r =
|
|
1062
|
+
switch (n === 12 ? r = we.noon : n === 0 ? r = we.midnight : r = n / 12 >= 1 ? "pm" : "am", a) {
|
|
1063
1063
|
case "b":
|
|
1064
1064
|
case "bb":
|
|
1065
1065
|
return t.dayPeriod(r, {
|
|
@@ -1088,7 +1088,7 @@ const ge = {
|
|
|
1088
1088
|
B: function(e, a, t) {
|
|
1089
1089
|
const n = e.getHours();
|
|
1090
1090
|
let r;
|
|
1091
|
-
switch (n >= 17 ? r =
|
|
1091
|
+
switch (n >= 17 ? r = we.evening : n >= 12 ? r = we.afternoon : n >= 4 ? r = we.morning : r = we.night, a) {
|
|
1092
1092
|
case "B":
|
|
1093
1093
|
case "BB":
|
|
1094
1094
|
case "BBB":
|
|
@@ -1124,12 +1124,12 @@ const ge = {
|
|
|
1124
1124
|
// Hour [0-11]
|
|
1125
1125
|
K: function(e, a, t) {
|
|
1126
1126
|
const n = e.getHours() % 12;
|
|
1127
|
-
return a === "Ko" ? t.ordinalNumber(n, { unit: "hour" }) :
|
|
1127
|
+
return a === "Ko" ? t.ordinalNumber(n, { unit: "hour" }) : k(n, a.length);
|
|
1128
1128
|
},
|
|
1129
1129
|
// Hour [1-24]
|
|
1130
1130
|
k: function(e, a, t) {
|
|
1131
1131
|
let n = e.getHours();
|
|
1132
|
-
return n === 0 && (n = 24), a === "ko" ? t.ordinalNumber(n, { unit: "hour" }) :
|
|
1132
|
+
return n === 0 && (n = 24), a === "ko" ? t.ordinalNumber(n, { unit: "hour" }) : k(n, a.length);
|
|
1133
1133
|
},
|
|
1134
1134
|
// Minute
|
|
1135
1135
|
m: function(e, a, t) {
|
|
@@ -1224,22 +1224,22 @@ const ge = {
|
|
|
1224
1224
|
// Seconds timestamp
|
|
1225
1225
|
t: function(e, a, t) {
|
|
1226
1226
|
const n = Math.trunc(+e / 1e3);
|
|
1227
|
-
return
|
|
1227
|
+
return k(n, a.length);
|
|
1228
1228
|
},
|
|
1229
1229
|
// Milliseconds timestamp
|
|
1230
1230
|
T: function(e, a, t) {
|
|
1231
|
-
return
|
|
1231
|
+
return k(+e, a.length);
|
|
1232
1232
|
}
|
|
1233
1233
|
};
|
|
1234
1234
|
function St(e, a = "") {
|
|
1235
1235
|
const t = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.trunc(n / 60), s = n % 60;
|
|
1236
|
-
return s === 0 ? t + String(r) : t + String(r) + a +
|
|
1236
|
+
return s === 0 ? t + String(r) : t + String(r) + a + k(s, 2);
|
|
1237
1237
|
}
|
|
1238
1238
|
function It(e, a) {
|
|
1239
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
1239
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + k(Math.abs(e) / 60, 2) : he(e, a);
|
|
1240
1240
|
}
|
|
1241
1241
|
function he(e, a = "") {
|
|
1242
|
-
const t = e > 0 ? "-" : "+", n = Math.abs(e), r =
|
|
1242
|
+
const t = e > 0 ? "-" : "+", n = Math.abs(e), r = k(Math.trunc(n / 60), 2), s = k(n % 60, 2);
|
|
1243
1243
|
return t + r + a + s;
|
|
1244
1244
|
}
|
|
1245
1245
|
const jt = (e, a) => {
|
|
@@ -1305,10 +1305,10 @@ function Tn(e, a, t) {
|
|
|
1305
1305
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
1306
1306
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1307
1307
|
}
|
|
1308
|
-
const vn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Dn = /^'([^]*?)'?$/, Pn = /''/g,
|
|
1309
|
-
function
|
|
1310
|
-
var h, w, _, b,
|
|
1311
|
-
const n =
|
|
1308
|
+
const vn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Dn = /^'([^]*?)'?$/, Pn = /''/g, xn = /[a-zA-Z]/;
|
|
1309
|
+
function Rn(e, a, t) {
|
|
1310
|
+
var h, w, _, b, O, C, V, A;
|
|
1311
|
+
const n = ke(), r = (t == null ? void 0 : t.locale) ?? n.locale ?? sa, s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((w = (h = t == null ? void 0 : t.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((b = (_ = n.locale) == null ? void 0 : _.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((C = (O = t == null ? void 0 : t.locale) == null ? void 0 : O.options) == null ? void 0 : C.weekStartsOn) ?? n.weekStartsOn ?? ((A = (V = n.locale) == null ? void 0 : V.options) == null ? void 0 : A.weekStartsOn) ?? 0, d = W(e, t == null ? void 0 : t.in);
|
|
1312
1312
|
if (!Ca(d))
|
|
1313
1313
|
throw new RangeError("Invalid time value");
|
|
1314
1314
|
let g = a.match(wn).map((I) => {
|
|
@@ -1323,10 +1323,10 @@ function xn(e, a, t) {
|
|
|
1323
1323
|
return { isToken: !1, value: "'" };
|
|
1324
1324
|
const M = I[0];
|
|
1325
1325
|
if (M === "'")
|
|
1326
|
-
return { isToken: !1, value:
|
|
1326
|
+
return { isToken: !1, value: kn(I) };
|
|
1327
1327
|
if (Mt[M])
|
|
1328
1328
|
return { isToken: !0, value: I };
|
|
1329
|
-
if (M.match(
|
|
1329
|
+
if (M.match(xn))
|
|
1330
1330
|
throw new RangeError(
|
|
1331
1331
|
"Format string contains an unescaped latin alphabet character `" + M + "`"
|
|
1332
1332
|
);
|
|
@@ -1346,14 +1346,14 @@ function xn(e, a, t) {
|
|
|
1346
1346
|
return T(d, M, r.localize, p);
|
|
1347
1347
|
}).join("");
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function kn(e) {
|
|
1350
1350
|
const a = e.match(Dn);
|
|
1351
1351
|
return a ? a[1].replace(Pn, "'") : e;
|
|
1352
1352
|
}
|
|
1353
1353
|
function da() {
|
|
1354
|
-
return Object.assign({},
|
|
1354
|
+
return Object.assign({}, ke());
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function On(e, a) {
|
|
1357
1357
|
const t = W(e, a == null ? void 0 : a.in).getDay();
|
|
1358
1358
|
return t === 0 ? 7 : t;
|
|
1359
1359
|
}
|
|
@@ -1401,7 +1401,7 @@ class Cn extends ma {
|
|
|
1401
1401
|
return n.timestampIsSet ? t : E(t, Mn(t, this.context));
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
|
-
class
|
|
1404
|
+
class x {
|
|
1405
1405
|
run(a, t, n, r) {
|
|
1406
1406
|
const s = this.parse(a, t, n, r);
|
|
1407
1407
|
return s ? {
|
|
@@ -1419,7 +1419,7 @@ class R {
|
|
|
1419
1419
|
return !0;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
class Nn extends
|
|
1422
|
+
class Nn extends x {
|
|
1423
1423
|
constructor() {
|
|
1424
1424
|
super(...arguments);
|
|
1425
1425
|
y(this, "priority", 140);
|
|
@@ -1514,7 +1514,7 @@ function ne(e, a) {
|
|
|
1514
1514
|
};
|
|
1515
1515
|
const n = t[1] === "+" ? 1 : -1, r = t[2] ? parseInt(t[2], 10) : 0, s = t[3] ? parseInt(t[3], 10) : 0, i = t[5] ? parseInt(t[5], 10) : 0;
|
|
1516
1516
|
return {
|
|
1517
|
-
value: n * (r *
|
|
1517
|
+
value: n * (r * Ra + s * xa + i * ka),
|
|
1518
1518
|
rest: a.slice(t[0].length)
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
@@ -1535,7 +1535,7 @@ function L(e, a) {
|
|
|
1535
1535
|
return j(new RegExp("^\\d{1," + e + "}"), a);
|
|
1536
1536
|
}
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function Ye(e, a) {
|
|
1539
1539
|
switch (e) {
|
|
1540
1540
|
case 1:
|
|
1541
1541
|
return j(F.singleDigitSigned, a);
|
|
@@ -1580,7 +1580,7 @@ function fa(e, a) {
|
|
|
1580
1580
|
function pa(e) {
|
|
1581
1581
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
1582
1582
|
}
|
|
1583
|
-
class Ln extends
|
|
1583
|
+
class Ln extends x {
|
|
1584
1584
|
constructor() {
|
|
1585
1585
|
super(...arguments);
|
|
1586
1586
|
y(this, "priority", 130);
|
|
@@ -1621,7 +1621,7 @@ class Ln extends R {
|
|
|
1621
1621
|
return t.setFullYear(i, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
|
-
class Fn extends
|
|
1624
|
+
class Fn extends x {
|
|
1625
1625
|
constructor() {
|
|
1626
1626
|
super(...arguments);
|
|
1627
1627
|
y(this, "priority", 130);
|
|
@@ -1680,7 +1680,7 @@ class Fn extends R {
|
|
|
1680
1680
|
return t.setFullYear(d, 0, s.firstWeekContainsDate), t.setHours(0, 0, 0, 0), fe(t, s);
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
|
-
class Gn extends
|
|
1683
|
+
class Gn extends x {
|
|
1684
1684
|
constructor() {
|
|
1685
1685
|
super(...arguments);
|
|
1686
1686
|
y(this, "priority", 130);
|
|
@@ -1703,27 +1703,27 @@ class Gn extends R {
|
|
|
1703
1703
|
]);
|
|
1704
1704
|
}
|
|
1705
1705
|
parse(t, n) {
|
|
1706
|
-
return
|
|
1706
|
+
return Ye(n === "R" ? 4 : n.length, t);
|
|
1707
1707
|
}
|
|
1708
1708
|
set(t, n, r) {
|
|
1709
1709
|
const s = E(t, 0);
|
|
1710
|
-
return s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0),
|
|
1710
|
+
return s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0), xe(s);
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
|
-
class zn extends
|
|
1713
|
+
class zn extends x {
|
|
1714
1714
|
constructor() {
|
|
1715
1715
|
super(...arguments);
|
|
1716
1716
|
y(this, "priority", 130);
|
|
1717
1717
|
y(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
1718
1718
|
}
|
|
1719
1719
|
parse(t, n) {
|
|
1720
|
-
return
|
|
1720
|
+
return Ye(n === "u" ? 4 : n.length, t);
|
|
1721
1721
|
}
|
|
1722
1722
|
set(t, n, r) {
|
|
1723
1723
|
return t.setFullYear(r, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
class Wn extends
|
|
1726
|
+
class Wn extends x {
|
|
1727
1727
|
constructor() {
|
|
1728
1728
|
super(...arguments);
|
|
1729
1729
|
y(this, "priority", 120);
|
|
@@ -1790,7 +1790,7 @@ class Wn extends R {
|
|
|
1790
1790
|
return t.setMonth((r - 1) * 3, 1), t.setHours(0, 0, 0, 0), t;
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
|
-
class En extends
|
|
1793
|
+
class En extends x {
|
|
1794
1794
|
constructor() {
|
|
1795
1795
|
super(...arguments);
|
|
1796
1796
|
y(this, "priority", 120);
|
|
@@ -1857,7 +1857,7 @@ class En extends R {
|
|
|
1857
1857
|
return t.setMonth((r - 1) * 3, 1), t.setHours(0, 0, 0, 0), t;
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
class Yn extends
|
|
1860
|
+
class Yn extends x {
|
|
1861
1861
|
constructor() {
|
|
1862
1862
|
super(...arguments);
|
|
1863
1863
|
y(this, "incompatibleTokens", [
|
|
@@ -1925,7 +1925,7 @@ class Yn extends R {
|
|
|
1925
1925
|
return t.setMonth(r, 1), t.setHours(0, 0, 0, 0), t;
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
|
-
class qn extends
|
|
1928
|
+
class qn extends x {
|
|
1929
1929
|
constructor() {
|
|
1930
1930
|
super(...arguments);
|
|
1931
1931
|
y(this, "priority", 110);
|
|
@@ -1997,7 +1997,7 @@ function Hn(e, a, t) {
|
|
|
1997
1997
|
const n = W(e, t == null ? void 0 : t.in), r = ia(n, t) - a;
|
|
1998
1998
|
return n.setDate(n.getDate() - r * 7), W(n, t == null ? void 0 : t.in);
|
|
1999
1999
|
}
|
|
2000
|
-
class Bn extends
|
|
2000
|
+
class Bn extends x {
|
|
2001
2001
|
constructor() {
|
|
2002
2002
|
super(...arguments);
|
|
2003
2003
|
y(this, "priority", 100);
|
|
@@ -2038,7 +2038,7 @@ function Un(e, a, t) {
|
|
|
2038
2038
|
const n = W(e, t == null ? void 0 : t.in), r = oa(n, t) - a;
|
|
2039
2039
|
return n.setDate(n.getDate() - r * 7), n;
|
|
2040
2040
|
}
|
|
2041
|
-
class $n extends
|
|
2041
|
+
class $n extends x {
|
|
2042
2042
|
constructor() {
|
|
2043
2043
|
super(...arguments);
|
|
2044
2044
|
y(this, "priority", 100);
|
|
@@ -2073,7 +2073,7 @@ class $n extends R {
|
|
|
2073
2073
|
return n >= 1 && n <= 53;
|
|
2074
2074
|
}
|
|
2075
2075
|
set(t, n, r) {
|
|
2076
|
-
return
|
|
2076
|
+
return xe(Un(t, r));
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
2079
|
const Vn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], An = [
|
|
@@ -2090,7 +2090,7 @@ const Vn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], An = [
|
|
|
2090
2090
|
30,
|
|
2091
2091
|
31
|
|
2092
2092
|
];
|
|
2093
|
-
class Qn extends
|
|
2093
|
+
class Qn extends x {
|
|
2094
2094
|
constructor() {
|
|
2095
2095
|
super(...arguments);
|
|
2096
2096
|
y(this, "priority", 90);
|
|
@@ -2128,7 +2128,7 @@ class Qn extends R {
|
|
|
2128
2128
|
return t.setDate(r), t.setHours(0, 0, 0, 0), t;
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
|
-
class Xn extends
|
|
2131
|
+
class Xn extends x {
|
|
2132
2132
|
constructor() {
|
|
2133
2133
|
super(...arguments);
|
|
2134
2134
|
y(this, "priority", 90);
|
|
@@ -2171,11 +2171,11 @@ class Xn extends R {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
function vt(e, a, t) {
|
|
2174
|
-
var w, _, b,
|
|
2175
|
-
const n =
|
|
2174
|
+
var w, _, b, O;
|
|
2175
|
+
const n = ke(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (w = t == null ? void 0 : t.locale) == null ? void 0 : w.options) == null ? void 0 : _.weekStartsOn) ?? n.weekStartsOn ?? ((O = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : O.weekStartsOn) ?? 0, s = W(e, t == null ? void 0 : t.in), i = s.getDay(), g = (a % 7 + 7) % 7, p = 7 - r, h = a < 0 || a > 6 ? a - (i + p) % 7 : (g + p) % 7 - (i + p) % 7;
|
|
2176
2176
|
return na(s, h, t);
|
|
2177
2177
|
}
|
|
2178
|
-
class Zn extends
|
|
2178
|
+
class Zn extends x {
|
|
2179
2179
|
constructor() {
|
|
2180
2180
|
super(...arguments);
|
|
2181
2181
|
y(this, "priority", 90);
|
|
@@ -2216,7 +2216,7 @@ class Zn extends R {
|
|
|
2216
2216
|
return t = vt(t, r, s), t.setHours(0, 0, 0, 0), t;
|
|
2217
2217
|
}
|
|
2218
2218
|
}
|
|
2219
|
-
class Jn extends
|
|
2219
|
+
class Jn extends x {
|
|
2220
2220
|
constructor() {
|
|
2221
2221
|
super(...arguments);
|
|
2222
2222
|
y(this, "priority", 90);
|
|
@@ -2287,7 +2287,7 @@ class Jn extends R {
|
|
|
2287
2287
|
return t = vt(t, r, s), t.setHours(0, 0, 0, 0), t;
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
|
-
class Kn extends
|
|
2290
|
+
class Kn extends x {
|
|
2291
2291
|
constructor() {
|
|
2292
2292
|
super(...arguments);
|
|
2293
2293
|
y(this, "priority", 90);
|
|
@@ -2359,10 +2359,10 @@ class Kn extends R {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
2361
|
function er(e, a, t) {
|
|
2362
|
-
const n = W(e, t == null ? void 0 : t.in), r =
|
|
2362
|
+
const n = W(e, t == null ? void 0 : t.in), r = On(n, t), s = a - r;
|
|
2363
2363
|
return na(n, s, t);
|
|
2364
2364
|
}
|
|
2365
|
-
class tr extends
|
|
2365
|
+
class tr extends x {
|
|
2366
2366
|
constructor() {
|
|
2367
2367
|
super(...arguments);
|
|
2368
2368
|
y(this, "priority", 90);
|
|
@@ -2458,7 +2458,7 @@ class tr extends R {
|
|
|
2458
2458
|
return t = er(t, r), t.setHours(0, 0, 0, 0), t;
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
-
class ar extends
|
|
2461
|
+
class ar extends x {
|
|
2462
2462
|
constructor() {
|
|
2463
2463
|
super(...arguments);
|
|
2464
2464
|
y(this, "priority", 80);
|
|
@@ -2499,7 +2499,7 @@ class ar extends R {
|
|
|
2499
2499
|
return t.setHours(Tt(r), 0, 0, 0), t;
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
class nr extends
|
|
2502
|
+
class nr extends x {
|
|
2503
2503
|
constructor() {
|
|
2504
2504
|
super(...arguments);
|
|
2505
2505
|
y(this, "priority", 80);
|
|
@@ -2540,7 +2540,7 @@ class nr extends R {
|
|
|
2540
2540
|
return t.setHours(Tt(r), 0, 0, 0), t;
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
class rr extends
|
|
2543
|
+
class rr extends x {
|
|
2544
2544
|
constructor() {
|
|
2545
2545
|
super(...arguments);
|
|
2546
2546
|
y(this, "priority", 80);
|
|
@@ -2581,7 +2581,7 @@ class rr extends R {
|
|
|
2581
2581
|
return t.setHours(Tt(r), 0, 0, 0), t;
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
|
-
class sr extends
|
|
2584
|
+
class sr extends x {
|
|
2585
2585
|
constructor() {
|
|
2586
2586
|
super(...arguments);
|
|
2587
2587
|
y(this, "priority", 70);
|
|
@@ -2605,7 +2605,7 @@ class sr extends R {
|
|
|
2605
2605
|
return s && r < 12 ? t.setHours(r + 12, 0, 0, 0) : !s && r === 12 ? t.setHours(0, 0, 0, 0) : t.setHours(r, 0, 0, 0), t;
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
|
-
class or extends
|
|
2608
|
+
class or extends x {
|
|
2609
2609
|
constructor() {
|
|
2610
2610
|
super(...arguments);
|
|
2611
2611
|
y(this, "priority", 70);
|
|
@@ -2628,7 +2628,7 @@ class or extends R {
|
|
|
2628
2628
|
return t.setHours(r, 0, 0, 0), t;
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
|
-
class ir extends
|
|
2631
|
+
class ir extends x {
|
|
2632
2632
|
constructor() {
|
|
2633
2633
|
super(...arguments);
|
|
2634
2634
|
y(this, "priority", 70);
|
|
@@ -2651,7 +2651,7 @@ class ir extends R {
|
|
|
2651
2651
|
return t.getHours() >= 12 && r < 12 ? t.setHours(r + 12, 0, 0, 0) : t.setHours(r, 0, 0, 0), t;
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
|
-
class ur extends
|
|
2654
|
+
class ur extends x {
|
|
2655
2655
|
constructor() {
|
|
2656
2656
|
super(...arguments);
|
|
2657
2657
|
y(this, "priority", 70);
|
|
@@ -2675,7 +2675,7 @@ class ur extends R {
|
|
|
2675
2675
|
return t.setHours(s, 0, 0, 0), t;
|
|
2676
2676
|
}
|
|
2677
2677
|
}
|
|
2678
|
-
class lr extends
|
|
2678
|
+
class lr extends x {
|
|
2679
2679
|
constructor() {
|
|
2680
2680
|
super(...arguments);
|
|
2681
2681
|
y(this, "priority", 60);
|
|
@@ -2698,7 +2698,7 @@ class lr extends R {
|
|
|
2698
2698
|
return t.setMinutes(r, 0, 0), t;
|
|
2699
2699
|
}
|
|
2700
2700
|
}
|
|
2701
|
-
class cr extends
|
|
2701
|
+
class cr extends x {
|
|
2702
2702
|
constructor() {
|
|
2703
2703
|
super(...arguments);
|
|
2704
2704
|
y(this, "priority", 50);
|
|
@@ -2721,7 +2721,7 @@ class cr extends R {
|
|
|
2721
2721
|
return t.setSeconds(r, 0), t;
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
|
-
class dr extends
|
|
2724
|
+
class dr extends x {
|
|
2725
2725
|
constructor() {
|
|
2726
2726
|
super(...arguments);
|
|
2727
2727
|
y(this, "priority", 30);
|
|
@@ -2735,7 +2735,7 @@ class dr extends R {
|
|
|
2735
2735
|
return t.setMilliseconds(r), t;
|
|
2736
2736
|
}
|
|
2737
2737
|
}
|
|
2738
|
-
class mr extends
|
|
2738
|
+
class mr extends x {
|
|
2739
2739
|
constructor() {
|
|
2740
2740
|
super(...arguments);
|
|
2741
2741
|
y(this, "priority", 10);
|
|
@@ -2768,11 +2768,11 @@ class mr extends R {
|
|
|
2768
2768
|
set(t, n, r) {
|
|
2769
2769
|
return n.timestampIsSet ? t : E(
|
|
2770
2770
|
t,
|
|
2771
|
-
t.getTime() -
|
|
2771
|
+
t.getTime() - Ee(t) - r
|
|
2772
2772
|
);
|
|
2773
2773
|
}
|
|
2774
2774
|
}
|
|
2775
|
-
class gr extends
|
|
2775
|
+
class gr extends x {
|
|
2776
2776
|
constructor() {
|
|
2777
2777
|
super(...arguments);
|
|
2778
2778
|
y(this, "priority", 10);
|
|
@@ -2805,11 +2805,11 @@ class gr extends R {
|
|
|
2805
2805
|
set(t, n, r) {
|
|
2806
2806
|
return n.timestampIsSet ? t : E(
|
|
2807
2807
|
t,
|
|
2808
|
-
t.getTime() -
|
|
2808
|
+
t.getTime() - Ee(t) - r
|
|
2809
2809
|
);
|
|
2810
2810
|
}
|
|
2811
2811
|
}
|
|
2812
|
-
class fr extends
|
|
2812
|
+
class fr extends x {
|
|
2813
2813
|
constructor() {
|
|
2814
2814
|
super(...arguments);
|
|
2815
2815
|
y(this, "priority", 40);
|
|
@@ -2822,7 +2822,7 @@ class fr extends R {
|
|
|
2822
2822
|
return [E(t, r * 1e3), { timestampIsSet: !0 }];
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
|
-
class pr extends
|
|
2825
|
+
class pr extends x {
|
|
2826
2826
|
constructor() {
|
|
2827
2827
|
super(...arguments);
|
|
2828
2828
|
y(this, "priority", 20);
|
|
@@ -2875,21 +2875,21 @@ function Dr(e, a, t, n) {
|
|
|
2875
2875
|
weekStartsOn: g,
|
|
2876
2876
|
locale: i
|
|
2877
2877
|
}, h = [new Cn(n == null ? void 0 : n.in, t)], w = a.match(hr).map((T) => {
|
|
2878
|
-
const
|
|
2879
|
-
if (
|
|
2880
|
-
const Y = pt[
|
|
2878
|
+
const R = T[0];
|
|
2879
|
+
if (R in pt) {
|
|
2880
|
+
const Y = pt[R];
|
|
2881
2881
|
return Y(T, i.formatLong);
|
|
2882
2882
|
}
|
|
2883
2883
|
return T;
|
|
2884
2884
|
}).join("").match(yr), _ = [];
|
|
2885
2885
|
for (let T of w) {
|
|
2886
2886
|
ca(T) && bt(T, a, e), la(T) && bt(T, a, e);
|
|
2887
|
-
const
|
|
2887
|
+
const R = T[0], Y = br[R];
|
|
2888
2888
|
if (Y) {
|
|
2889
2889
|
const { incompatibleTokens: le } = Y;
|
|
2890
2890
|
if (Array.isArray(le)) {
|
|
2891
2891
|
const ce = _.find(
|
|
2892
|
-
(de) => le.includes(de.token) || de.token ===
|
|
2892
|
+
(de) => le.includes(de.token) || de.token === R
|
|
2893
2893
|
);
|
|
2894
2894
|
if (ce)
|
|
2895
2895
|
throw new RangeError(
|
|
@@ -2899,7 +2899,7 @@ function Dr(e, a, t, n) {
|
|
|
2899
2899
|
throw new RangeError(
|
|
2900
2900
|
`The format string mustn't contain \`${T}\` and any other token at the same time`
|
|
2901
2901
|
);
|
|
2902
|
-
_.push({ token:
|
|
2902
|
+
_.push({ token: R, fullToken: T });
|
|
2903
2903
|
const se = Y.run(
|
|
2904
2904
|
e,
|
|
2905
2905
|
T,
|
|
@@ -2910,11 +2910,11 @@ function Dr(e, a, t, n) {
|
|
|
2910
2910
|
return r();
|
|
2911
2911
|
h.push(se.setter), e = se.rest;
|
|
2912
2912
|
} else {
|
|
2913
|
-
if (
|
|
2913
|
+
if (R.match(wr))
|
|
2914
2914
|
throw new RangeError(
|
|
2915
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
2915
|
+
"Format string contains an unescaped latin alphabet character `" + R + "`"
|
|
2916
2916
|
);
|
|
2917
|
-
if (T === "''" ? T = "'" :
|
|
2917
|
+
if (T === "''" ? T = "'" : R === "'" && (T = Pr(T)), e.indexOf(T) === 0)
|
|
2918
2918
|
e = e.slice(T.length);
|
|
2919
2919
|
else
|
|
2920
2920
|
return r();
|
|
@@ -2922,44 +2922,44 @@ function Dr(e, a, t, n) {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
if (e.length > 0 && vr.test(e))
|
|
2924
2924
|
return r();
|
|
2925
|
-
const b = h.map((T) => T.priority).sort((T,
|
|
2926
|
-
(T) => h.filter((
|
|
2925
|
+
const b = h.map((T) => T.priority).sort((T, R) => R - T).filter((T, R, Y) => Y.indexOf(T) === R).map(
|
|
2926
|
+
(T) => h.filter((R) => R.priority === T).sort((R, Y) => Y.subPriority - R.subPriority)
|
|
2927
2927
|
).map((T) => T[0]);
|
|
2928
|
-
let
|
|
2929
|
-
if (isNaN(+
|
|
2928
|
+
let O = W(t, n == null ? void 0 : n.in);
|
|
2929
|
+
if (isNaN(+O)) return r();
|
|
2930
2930
|
const C = {};
|
|
2931
2931
|
for (const T of b) {
|
|
2932
|
-
if (!T.validate(
|
|
2932
|
+
if (!T.validate(O, p))
|
|
2933
2933
|
return r();
|
|
2934
|
-
const
|
|
2935
|
-
Array.isArray(
|
|
2934
|
+
const R = T.set(O, C, p);
|
|
2935
|
+
Array.isArray(R) ? (O = R[0], Object.assign(C, R[1])) : O = R;
|
|
2936
2936
|
}
|
|
2937
|
-
return
|
|
2937
|
+
return O;
|
|
2938
2938
|
}
|
|
2939
2939
|
function Pr(e) {
|
|
2940
2940
|
return e.match(_r)[1].replace(Tr, "'");
|
|
2941
2941
|
}
|
|
2942
2942
|
function Ct(e, a, t) {
|
|
2943
|
-
const n = da(), r =
|
|
2944
|
-
return "formatToParts" in r ?
|
|
2943
|
+
const n = da(), r = kr(e, t.timeZone, t.locale ?? n.locale);
|
|
2944
|
+
return "formatToParts" in r ? xr(r, a) : Rr(r, a);
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function xr(e, a) {
|
|
2947
2947
|
const t = e.formatToParts(a);
|
|
2948
2948
|
for (let n = t.length - 1; n >= 0; --n)
|
|
2949
2949
|
if (t[n].type === "timeZoneName")
|
|
2950
2950
|
return t[n].value;
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function Rr(e, a) {
|
|
2953
2953
|
const t = e.format(a).replace(/\u200E/g, ""), n = / [\w-+ ]+$/.exec(t);
|
|
2954
2954
|
return n ? n[0].substr(1) : "";
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2956
|
+
function kr(e, a, t) {
|
|
2957
2957
|
return new Intl.DateTimeFormat(t ? [t.code, "en-US"] : void 0, {
|
|
2958
2958
|
timeZone: a,
|
|
2959
2959
|
timeZoneName: e
|
|
2960
2960
|
});
|
|
2961
2961
|
}
|
|
2962
|
-
function
|
|
2962
|
+
function Or(e, a) {
|
|
2963
2963
|
const t = Cr(a);
|
|
2964
2964
|
return "formatToParts" in t ? Sr(t, e) : Ir(t, e);
|
|
2965
2965
|
}
|
|
@@ -3036,7 +3036,7 @@ const Lt = 36e5, Nr = 6e4, ut = {
|
|
|
3036
3036
|
timezoneHH: /^([+-]\d{2})$/,
|
|
3037
3037
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
3038
3038
|
};
|
|
3039
|
-
function
|
|
3039
|
+
function Ve(e, a, t) {
|
|
3040
3040
|
if (!e)
|
|
3041
3041
|
return 0;
|
|
3042
3042
|
let n = ut.timezoneZ.exec(e);
|
|
@@ -3061,7 +3061,7 @@ function Lr(e) {
|
|
|
3061
3061
|
return wt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
3062
3062
|
}
|
|
3063
3063
|
function yt(e, a) {
|
|
3064
|
-
const t =
|
|
3064
|
+
const t = Or(e, a), n = wt(t[0], t[1] - 1, t[2], t[3] % 24, t[4], t[5], 0).getTime();
|
|
3065
3065
|
let r = e.getTime();
|
|
3066
3066
|
const s = r % 1e3;
|
|
3067
3067
|
return r -= s >= 0 ? s : 1e3 + s, n - r;
|
|
@@ -3103,7 +3103,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3103
3103
|
// so this token always has the same output as `XX`
|
|
3104
3104
|
case "XXXX":
|
|
3105
3105
|
case "XX":
|
|
3106
|
-
return
|
|
3106
|
+
return De(n);
|
|
3107
3107
|
// Hours, minutes and optional seconds with `:` delimeter
|
|
3108
3108
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3109
3109
|
// so this token always has the same output as `XXX`
|
|
@@ -3111,7 +3111,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3111
3111
|
case "XXX":
|
|
3112
3112
|
// Hours and minutes with `:` delimeter
|
|
3113
3113
|
default:
|
|
3114
|
-
return
|
|
3114
|
+
return De(n, ":");
|
|
3115
3115
|
}
|
|
3116
3116
|
},
|
|
3117
3117
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -3126,7 +3126,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3126
3126
|
// so this token always has the same output as `xx`
|
|
3127
3127
|
case "xxxx":
|
|
3128
3128
|
case "xx":
|
|
3129
|
-
return
|
|
3129
|
+
return De(n);
|
|
3130
3130
|
// Hours, minutes and optional seconds with `:` delimeter
|
|
3131
3131
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3132
3132
|
// so this token always has the same output as `xxx`
|
|
@@ -3134,7 +3134,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3134
3134
|
case "xxx":
|
|
3135
3135
|
// Hours and minutes with `:` delimeter
|
|
3136
3136
|
default:
|
|
3137
|
-
return
|
|
3137
|
+
return De(n, ":");
|
|
3138
3138
|
}
|
|
3139
3139
|
},
|
|
3140
3140
|
// Timezone (GMT)
|
|
@@ -3149,7 +3149,7 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3149
3149
|
// Long
|
|
3150
3150
|
case "OOOO":
|
|
3151
3151
|
default:
|
|
3152
|
-
return "GMT" +
|
|
3152
|
+
return "GMT" + De(n, ":");
|
|
3153
3153
|
}
|
|
3154
3154
|
},
|
|
3155
3155
|
// Timezone (specific non-location)
|
|
@@ -3168,28 +3168,28 @@ const zr = 60 * 1e3, Wr = {
|
|
|
3168
3168
|
}
|
|
3169
3169
|
};
|
|
3170
3170
|
function lt(e, a) {
|
|
3171
|
-
const t = e ?
|
|
3171
|
+
const t = e ? Ve(e, a, !0) / zr : (a == null ? void 0 : a.getTimezoneOffset()) ?? 0;
|
|
3172
3172
|
if (Number.isNaN(t))
|
|
3173
3173
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
3174
3174
|
return t;
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3176
|
+
function qe(e, a) {
|
|
3177
3177
|
const t = e < 0 ? "-" : "";
|
|
3178
3178
|
let n = Math.abs(e).toString();
|
|
3179
3179
|
for (; n.length < a; )
|
|
3180
3180
|
n = "0" + n;
|
|
3181
3181
|
return t + n;
|
|
3182
3182
|
}
|
|
3183
|
-
function
|
|
3184
|
-
const t = e > 0 ? "-" : "+", n = Math.abs(e), r =
|
|
3183
|
+
function De(e, a = "") {
|
|
3184
|
+
const t = e > 0 ? "-" : "+", n = Math.abs(e), r = qe(Math.floor(n / 60), 2), s = qe(Math.floor(n % 60), 2);
|
|
3185
3185
|
return t + r + a + s;
|
|
3186
3186
|
}
|
|
3187
3187
|
function zt(e, a) {
|
|
3188
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
3188
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + qe(Math.abs(e) / 60, 2) : De(e, a);
|
|
3189
3189
|
}
|
|
3190
3190
|
function Er(e, a = "") {
|
|
3191
3191
|
const t = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.floor(n / 60), s = n % 60;
|
|
3192
|
-
return s === 0 ? t + String(r) : t + String(r) + a +
|
|
3192
|
+
return s === 0 ? t + String(r) : t + String(r) + a + qe(s, 2);
|
|
3193
3193
|
}
|
|
3194
3194
|
function Wt(e) {
|
|
3195
3195
|
const a = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
@@ -3229,7 +3229,7 @@ const ba = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
3229
3229
|
// time zone tokens (to identify the presence of a tz)
|
|
3230
3230
|
timeZone: ba
|
|
3231
3231
|
};
|
|
3232
|
-
function
|
|
3232
|
+
function He(e, a = {}) {
|
|
3233
3233
|
if (arguments.length < 1)
|
|
3234
3234
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
3235
3235
|
if (e === null)
|
|
@@ -3252,7 +3252,7 @@ function Ve(e, a = {}) {
|
|
|
3252
3252
|
if (n.time && (g = Ur(n.time), g === null || isNaN(g)))
|
|
3253
3253
|
return /* @__PURE__ */ new Date(NaN);
|
|
3254
3254
|
if (n.timeZone || a.timeZone) {
|
|
3255
|
-
if (p =
|
|
3255
|
+
if (p = Ve(n.timeZone || a.timeZone, new Date(d + g)), isNaN(p))
|
|
3256
3256
|
return /* @__PURE__ */ new Date(NaN);
|
|
3257
3257
|
} else
|
|
3258
3258
|
p = Wt(new Date(d + g)), p = Wt(new Date(d + g + p));
|
|
@@ -3373,7 +3373,7 @@ function Xr(e, a, t = {}) {
|
|
|
3373
3373
|
a = String(a);
|
|
3374
3374
|
const n = a.match(Qr);
|
|
3375
3375
|
if (n) {
|
|
3376
|
-
const r =
|
|
3376
|
+
const r = He(t.originalDate || e, t);
|
|
3377
3377
|
a = n.reduce(function(s, i) {
|
|
3378
3378
|
if (i[0] === "'")
|
|
3379
3379
|
return s;
|
|
@@ -3381,18 +3381,18 @@ function Xr(e, a, t = {}) {
|
|
|
3381
3381
|
return g ? p.substring(0, d - 1) + p.substring(d + 1) : p;
|
|
3382
3382
|
}, a);
|
|
3383
3383
|
}
|
|
3384
|
-
return
|
|
3384
|
+
return Rn(e, a, t);
|
|
3385
3385
|
}
|
|
3386
3386
|
function Zr(e, a, t) {
|
|
3387
|
-
e =
|
|
3388
|
-
const n =
|
|
3387
|
+
e = He(e, t);
|
|
3388
|
+
const n = Ve(a, e, !0), r = new Date(e.getTime() - n), s = /* @__PURE__ */ new Date(0);
|
|
3389
3389
|
return s.setFullYear(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()), s.setHours(r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds(), r.getUTCMilliseconds()), s;
|
|
3390
3390
|
}
|
|
3391
3391
|
function Jr(e, a, t) {
|
|
3392
3392
|
if (typeof e == "string" && !e.match(ba))
|
|
3393
|
-
return
|
|
3394
|
-
e =
|
|
3395
|
-
const n = wt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), r =
|
|
3393
|
+
return He(e, { ...t, timeZone: a });
|
|
3394
|
+
e = He(e, t);
|
|
3395
|
+
const n = wt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), r = Ve(a, new Date(n));
|
|
3396
3396
|
return new Date(n + r);
|
|
3397
3397
|
}
|
|
3398
3398
|
const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
@@ -3404,15 +3404,15 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3404
3404
|
}, ue = (e) => {
|
|
3405
3405
|
const { timezone: a } = ht(), t = 24 - a, n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60, r = t - n;
|
|
3406
3406
|
return e.setDate(a < 0 ? e.getDate() - 1 : e.getDate()), e.setHours(r), e;
|
|
3407
|
-
},
|
|
3407
|
+
}, Ae = (e) => {
|
|
3408
3408
|
const a = /* @__PURE__ */ new Date(), t = a.getFullYear(), n = a.getMonth();
|
|
3409
3409
|
return ue(
|
|
3410
3410
|
new Date(n - 1 < 0 ? t - 1 : t, n - 1 < 0 ? 12 : n - 1, e)
|
|
3411
3411
|
);
|
|
3412
|
-
},
|
|
3412
|
+
}, Qe = (e) => {
|
|
3413
3413
|
const a = /* @__PURE__ */ new Date(), t = a.getFullYear(), n = a.getMonth();
|
|
3414
3414
|
return ue(new Date(t, n, e));
|
|
3415
|
-
},
|
|
3415
|
+
}, Xe = (e) => {
|
|
3416
3416
|
const a = /* @__PURE__ */ new Date(), t = a.getFullYear(), n = a.getMonth();
|
|
3417
3417
|
return ue(
|
|
3418
3418
|
new Date(n + 1 > 12 ? t + 1 : t, n + 1 > 12 ? 1 : n + 1, e)
|
|
@@ -3435,7 +3435,7 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3435
3435
|
}, os = () => {
|
|
3436
3436
|
const e = /* @__PURE__ */ new Date();
|
|
3437
3437
|
return e.setDate(e.getDate() + 1), e.setHours(12, 0, 0, 0), ue(e);
|
|
3438
|
-
},
|
|
3438
|
+
}, Oe = (e, a, t) => {
|
|
3439
3439
|
const n = /* @__PURE__ */ new Date(), r = e.getTime() - a.getTime(), s = t.getTime() - e.getTime();
|
|
3440
3440
|
let i = 0, d = 0, g = 0;
|
|
3441
3441
|
return n.getTime() > e.getTime() ? (i = t.getTime() - n.getTime(), d = n.getTime() - e.getTime(), g = Math.min(
|
|
@@ -3449,17 +3449,17 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3449
3449
|
percentage: g
|
|
3450
3450
|
};
|
|
3451
3451
|
}, is = () => {
|
|
3452
|
-
const { remainingTime: e, percentage: a } =
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3452
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3453
|
+
Qe(1),
|
|
3454
|
+
Ae(1),
|
|
3455
|
+
Xe(1)
|
|
3456
3456
|
);
|
|
3457
3457
|
return {
|
|
3458
3458
|
monthRemainingTime: e,
|
|
3459
3459
|
monthProgressPercentage: a
|
|
3460
3460
|
};
|
|
3461
3461
|
}, us = () => {
|
|
3462
|
-
const { remainingTime: e, percentage: a } =
|
|
3462
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3463
3463
|
as(),
|
|
3464
3464
|
ts(),
|
|
3465
3465
|
ns()
|
|
@@ -3469,7 +3469,7 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3469
3469
|
weekProgressPercentage: a
|
|
3470
3470
|
};
|
|
3471
3471
|
}, ls = () => {
|
|
3472
|
-
const { remainingTime: e, percentage: a } =
|
|
3472
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3473
3473
|
ss(),
|
|
3474
3474
|
rs(),
|
|
3475
3475
|
os()
|
|
@@ -3479,36 +3479,36 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3479
3479
|
dayProgressPercentage: a
|
|
3480
3480
|
};
|
|
3481
3481
|
}, cs = () => {
|
|
3482
|
-
const { remainingTime: e, percentage: a } =
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3482
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3483
|
+
Qe(5),
|
|
3484
|
+
Ae(5),
|
|
3485
|
+
Xe(5)
|
|
3486
3486
|
);
|
|
3487
3487
|
return {
|
|
3488
3488
|
remainingTimeTo5th: e,
|
|
3489
3489
|
progressPercentageTo5th: a
|
|
3490
3490
|
};
|
|
3491
3491
|
}, ds = () => {
|
|
3492
|
-
const { remainingTime: e, percentage: a } =
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3492
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3493
|
+
Qe(10),
|
|
3494
|
+
Ae(10),
|
|
3495
|
+
Xe(10)
|
|
3496
3496
|
);
|
|
3497
3497
|
return {
|
|
3498
3498
|
remainingTimeTo10th: e,
|
|
3499
3499
|
progressPercentageTo10th: a
|
|
3500
3500
|
};
|
|
3501
3501
|
}, ms = () => {
|
|
3502
|
-
const { remainingTime: e, percentage: a } =
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3502
|
+
const { remainingTime: e, percentage: a } = Oe(
|
|
3503
|
+
Qe(20),
|
|
3504
|
+
Ae(20),
|
|
3505
|
+
Xe(20)
|
|
3506
3506
|
);
|
|
3507
3507
|
return {
|
|
3508
3508
|
remainingTimeTo20th: e,
|
|
3509
3509
|
progressPercentageTo20th: a
|
|
3510
3510
|
};
|
|
3511
|
-
}, gs = () => Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
3511
|
+
}, gs = () => Intl.DateTimeFormat().resolvedOptions().timeZone, Be = (e) => {
|
|
3512
3512
|
try {
|
|
3513
3513
|
const { timezone: a } = ht(), t = `Etc/GMT${a > 0 ? `-${a}` : `+${Math.abs(a)}`}`, n = Dr(e, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date());
|
|
3514
3514
|
if (isNaN(n.getTime()))
|
|
@@ -3523,7 +3523,7 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3523
3523
|
return `${r}-${s}-${i} ${d}:${g}:${p}`;
|
|
3524
3524
|
}, fs = () => Date.now(), ps = (e) => new Date(e).getTime(), Bt = (e, a = 0) => {
|
|
3525
3525
|
const t = fs(), n = ps(
|
|
3526
|
-
ha(
|
|
3526
|
+
ha(Be(e))
|
|
3527
3527
|
);
|
|
3528
3528
|
if (t > n) {
|
|
3529
3529
|
const r = n + a * 60 * 1e3;
|
|
@@ -3535,8 +3535,23 @@ const Kr = (e) => new TextEncoder().encode(e), es = (e) => {
|
|
|
3535
3535
|
return `${e || ""}`;
|
|
3536
3536
|
const t = `0${a ? "." + "0".repeat(a) : ""}`, n = parseFloat(e);
|
|
3537
3537
|
return isNaN(n) || typeof e == "string" && /[^\d.,]/.test(e) ? `${t}` : `${n.toFixed(a).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
|
|
3538
|
-
},
|
|
3539
|
-
const n = [
|
|
3538
|
+
}, Re = (e, a, t) => {
|
|
3539
|
+
const n = [
|
|
3540
|
+
42563,
|
|
3541
|
+
42564,
|
|
3542
|
+
42565,
|
|
3543
|
+
42566,
|
|
3544
|
+
42567,
|
|
3545
|
+
42568,
|
|
3546
|
+
42569,
|
|
3547
|
+
42581,
|
|
3548
|
+
42651,
|
|
3549
|
+
42652,
|
|
3550
|
+
42653,
|
|
3551
|
+
42654,
|
|
3552
|
+
42655,
|
|
3553
|
+
42656
|
|
3554
|
+
], r = [42570, 42571, 42572, 42573];
|
|
3540
3555
|
let s = e;
|
|
3541
3556
|
return s ? (n.includes(a) || r.includes(a) ? (s = s.replace(".png", `_${a}.png`).toLowerCase(), s = `${s}?v=1`) : s = `${s}${t}`, s) : "";
|
|
3542
3557
|
};
|
|
@@ -3549,7 +3564,7 @@ var ie = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto =
|
|
|
3549
3564
|
const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3550
3565
|
__proto__: null,
|
|
3551
3566
|
PaymentType: ie
|
|
3552
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3567
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = {
|
|
3553
3568
|
depositBank: !1,
|
|
3554
3569
|
depositDateTime: !1,
|
|
3555
3570
|
depositDetail: !1,
|
|
@@ -3563,7 +3578,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3563
3578
|
type: ie.unknown,
|
|
3564
3579
|
promo: [],
|
|
3565
3580
|
bank: [],
|
|
3566
|
-
requiredField:
|
|
3581
|
+
requiredField: Ze,
|
|
3567
3582
|
hintMsg: ""
|
|
3568
3583
|
}, hs = (e) => {
|
|
3569
3584
|
var a;
|
|
@@ -3613,7 +3628,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3613
3628
|
paymentList: n
|
|
3614
3629
|
};
|
|
3615
3630
|
})) ?? [];
|
|
3616
|
-
},
|
|
3631
|
+
}, Je = (e) => {
|
|
3617
3632
|
const a = {
|
|
3618
3633
|
id: -1,
|
|
3619
3634
|
name: "excludePromo",
|
|
@@ -3628,7 +3643,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3628
3643
|
dailyBonus: n.dtype === "5" && n.type === "D"
|
|
3629
3644
|
}));
|
|
3630
3645
|
return [a, ...t];
|
|
3631
|
-
},
|
|
3646
|
+
}, Fe = (e, a, t, n) => {
|
|
3632
3647
|
let r, s;
|
|
3633
3648
|
return t > 0 ? r = e > 0 ? Math.max(t, e) : t : r = Math.max(e, 0), n > 0 ? s = a > 0 ? Math.min(n, a) : n : s = Math.max(a, 0), { amountList: ["50", "100", "300", "500"], minAmount: r, maxAmount: s };
|
|
3634
3649
|
}, Ut = (e, a, t) => {
|
|
@@ -3639,9 +3654,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3639
3654
|
name: "manualMethod",
|
|
3640
3655
|
pathName: e,
|
|
3641
3656
|
type: n,
|
|
3642
|
-
promo:
|
|
3657
|
+
promo: Je(a.promo),
|
|
3643
3658
|
bank: a.bank.map((s) => {
|
|
3644
|
-
const i = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", d = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: g, minAmount: p, maxAmount: h } =
|
|
3659
|
+
const i = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", d = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: g, minAmount: p, maxAmount: h } = Fe(
|
|
3645
3660
|
Number(i),
|
|
3646
3661
|
Number(d),
|
|
3647
3662
|
t.mdBankLevelDetail.deposit_min,
|
|
@@ -3677,13 +3692,13 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3677
3692
|
name: "onlineBankingMethod",
|
|
3678
3693
|
pathName: e,
|
|
3679
3694
|
type: n,
|
|
3680
|
-
promo:
|
|
3695
|
+
promo: Je(a.promo),
|
|
3681
3696
|
bank: a.banklist.map((s) => {
|
|
3682
3697
|
let i = "0.00", d = "0.00";
|
|
3683
3698
|
const g = s.bankindex ?? 0;
|
|
3684
3699
|
for (let C = 0; C < t.mdGatewayMinMax.length; C++)
|
|
3685
3700
|
t.mdGatewayMinMax[C].bankindex == g.toString() && (i = t.mdGatewayMinMax[C].min, d = t.mdGatewayMinMax[C].max);
|
|
3686
|
-
const { amountList: p, minAmount: h, maxAmount: w } =
|
|
3701
|
+
const { amountList: p, minAmount: h, maxAmount: w } = Fe(
|
|
3687
3702
|
Number(i),
|
|
3688
3703
|
Number(d),
|
|
3689
3704
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -3695,7 +3710,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3695
3710
|
min: h,
|
|
3696
3711
|
max: w
|
|
3697
3712
|
}, b = s.pg.map((C) => {
|
|
3698
|
-
const V = C.mintransaction ?? "0.00", A = C.maxtransaction ?? "0.00", { amountList: I, minAmount: M, maxAmount: T } =
|
|
3713
|
+
const V = C.mintransaction ?? "0.00", A = C.maxtransaction ?? "0.00", { amountList: I, minAmount: M, maxAmount: T } = Fe(
|
|
3699
3714
|
Number(V),
|
|
3700
3715
|
Number(A),
|
|
3701
3716
|
t.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -3718,7 +3733,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3718
3733
|
gateway: [_, ...b]
|
|
3719
3734
|
};
|
|
3720
3735
|
}),
|
|
3721
|
-
requiredField:
|
|
3736
|
+
requiredField: Ze,
|
|
3722
3737
|
hintMsg: ""
|
|
3723
3738
|
};
|
|
3724
3739
|
}, Ts = (e, a, t, n) => {
|
|
@@ -3728,7 +3743,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3728
3743
|
const i = n.mdGatewayMinMax ?? [];
|
|
3729
3744
|
if (t.bank.length > 0 && n.mdPGSelection === "1")
|
|
3730
3745
|
s = t.bank.map((g) => {
|
|
3731
|
-
const { amountList: p, minAmount: h, maxAmount: w } =
|
|
3746
|
+
const { amountList: p, minAmount: h, maxAmount: w } = Fe(
|
|
3732
3747
|
g.mintransaction ?? 0,
|
|
3733
3748
|
g.maxtransaction ?? 0,
|
|
3734
3749
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -3744,9 +3759,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3744
3759
|
});
|
|
3745
3760
|
else {
|
|
3746
3761
|
let g = "0.00", p = "0.00";
|
|
3747
|
-
for (let
|
|
3748
|
-
i[
|
|
3749
|
-
const { amountList: h, minAmount: w, maxAmount: _ } =
|
|
3762
|
+
for (let O = 0; O < i.length; O++)
|
|
3763
|
+
i[O].bankindex === a.toString() && (g = i[O].min, p = i[O].max);
|
|
3764
|
+
const { amountList: h, minAmount: w, maxAmount: _ } = Fe(
|
|
3750
3765
|
Number(g),
|
|
3751
3766
|
Number(p),
|
|
3752
3767
|
n.mdBankLevelDetail.onlinepayment_min,
|
|
@@ -3765,9 +3780,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3765
3780
|
name: "autoMethod",
|
|
3766
3781
|
pathName: e,
|
|
3767
3782
|
type: r,
|
|
3768
|
-
promo:
|
|
3783
|
+
promo: Je(t.promo),
|
|
3769
3784
|
bank: s,
|
|
3770
|
-
requiredField:
|
|
3785
|
+
requiredField: Ze,
|
|
3771
3786
|
hintMsg: ""
|
|
3772
3787
|
};
|
|
3773
3788
|
}, vs = (e, a, t) => {
|
|
@@ -3777,7 +3792,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3777
3792
|
name: "fixAmountMethod",
|
|
3778
3793
|
pathName: e,
|
|
3779
3794
|
type: n,
|
|
3780
|
-
promo:
|
|
3795
|
+
promo: Je(t.promo),
|
|
3781
3796
|
bank: t.bank.map((s) => {
|
|
3782
3797
|
const i = s.amtlist.map(Number).sort((g, p) => g - p);
|
|
3783
3798
|
return {
|
|
@@ -3788,7 +3803,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3788
3803
|
max: i.length > 0 ? i[i.length - 1] : 0
|
|
3789
3804
|
};
|
|
3790
3805
|
}),
|
|
3791
|
-
requiredField:
|
|
3806
|
+
requiredField: Ze,
|
|
3792
3807
|
hintMsg: ""
|
|
3793
3808
|
};
|
|
3794
3809
|
}, ws = (e) => (e == null ? void 0 : e.map((a) => ({
|
|
@@ -3825,7 +3840,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3825
3840
|
trial: (h.flag & 4) > 0,
|
|
3826
3841
|
new: (h.flag & 8) > 0
|
|
3827
3842
|
},
|
|
3828
|
-
imageUrl: `${e.mdDomains[h.mdDomains_id]}${
|
|
3843
|
+
imageUrl: `${e.mdDomains[h.mdDomains_id]}${Re(h.img, h.id_GameMaster, `?ts=${h.filemtime}`)}`,
|
|
3829
3844
|
logoUrl: `/image/platform_logo/${h.img.split("/").pop()}?v=1`,
|
|
3830
3845
|
rate: "0.00",
|
|
3831
3846
|
jackpotAmount: ""
|
|
@@ -3846,7 +3861,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3846
3861
|
trial: (d.flag ?? 0) > 0,
|
|
3847
3862
|
new: (d.flag ?? 0) > 0
|
|
3848
3863
|
},
|
|
3849
|
-
imageUrl: e.mdDomains && e.mdDomains.length > 0 ? `${e.mdDomains[d.mdDomains_id ?? 0]}${
|
|
3864
|
+
imageUrl: e.mdDomains && e.mdDomains.length > 0 ? `${e.mdDomains[d.mdDomains_id ?? 0]}${Re(d.img ?? "", d.id ?? 0, `?ts=${d.filemtime}`)}` : "",
|
|
3850
3865
|
logoUrl: d.img ? `/image/platform_logo/${d.img.split("/").pop()}?v=1` : "",
|
|
3851
3866
|
rate: "0.00",
|
|
3852
3867
|
jackpotAmount: d.jackpotAmount ?? ""
|
|
@@ -3854,9 +3869,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3854
3869
|
},
|
|
3855
3870
|
trialGameList: []
|
|
3856
3871
|
};
|
|
3857
|
-
},
|
|
3872
|
+
}, xs = (e) => ({
|
|
3858
3873
|
list: e.mdGrade.map((a) => {
|
|
3859
|
-
var t, n, r, s, i, d, g, p, h, w, _, b,
|
|
3874
|
+
var t, n, r, s, i, d, g, p, h, w, _, b, O, C, V, A, I, M, T, R, Y, le, se, ce, de, Me, Se, te, Ge, Ke, et, tt, at, nt, Ie, Te, rt, ve, st, ze, We, o, m, v, u, l, D, z, U, X, N, K, q, Z, H, J, Q, me, pe, je, be, Ce, f, Rt;
|
|
3860
3875
|
return {
|
|
3861
3876
|
id: a.gradeindex,
|
|
3862
3877
|
is_current_level: !1,
|
|
@@ -3892,33 +3907,33 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3892
3907
|
isShow: !0,
|
|
3893
3908
|
bonus: P(((w = (h = a.benefit) == null ? void 0 : h.monthly) == null ? void 0 : w.bonus) ?? "0"),
|
|
3894
3909
|
bonus_name: ((b = (_ = a.benefit) == null ? void 0 : _.monthly) == null ? void 0 : b.bonus_name) ?? "",
|
|
3895
|
-
turnover: P(((C = (
|
|
3910
|
+
turnover: P(((C = (O = a.benefit) == null ? void 0 : O.monthly) == null ? void 0 : C.turnover) ?? "0"),
|
|
3896
3911
|
turnover_name: ((A = (V = a.benefit) == null ? void 0 : V.monthly) == null ? void 0 : A.turnover_name) ?? ""
|
|
3897
3912
|
},
|
|
3898
3913
|
weekly: {
|
|
3899
3914
|
isShow: !0,
|
|
3900
3915
|
bonus: P(((M = (I = a.benefit) == null ? void 0 : I.weekly) == null ? void 0 : M.bonus) ?? "0"),
|
|
3901
|
-
bonus_name: ((
|
|
3916
|
+
bonus_name: ((R = (T = a.benefit) == null ? void 0 : T.weekly) == null ? void 0 : R.bonus_name) ?? "",
|
|
3902
3917
|
turnover: P(((le = (Y = a.benefit) == null ? void 0 : Y.weekly) == null ? void 0 : le.turnover) ?? "0"),
|
|
3903
3918
|
turnover_name: ((ce = (se = a.benefit) == null ? void 0 : se.weekly) == null ? void 0 : ce.turnover_name) ?? ""
|
|
3904
3919
|
},
|
|
3905
3920
|
upgrade: {
|
|
3906
3921
|
isShow: !0,
|
|
3907
|
-
bonus: P(((
|
|
3908
|
-
bonus_name: ((te = (
|
|
3909
|
-
turnover: P(((
|
|
3910
|
-
turnover_name: ((
|
|
3922
|
+
bonus: P(((Me = (de = a.benefit) == null ? void 0 : de.upgrade) == null ? void 0 : Me.bonus) ?? "0"),
|
|
3923
|
+
bonus_name: ((te = (Se = a.benefit) == null ? void 0 : Se.upgrade) == null ? void 0 : te.bonus_name) ?? "",
|
|
3924
|
+
turnover: P(((Ke = (Ge = a.benefit) == null ? void 0 : Ge.upgrade) == null ? void 0 : Ke.turnover) ?? "0"),
|
|
3925
|
+
turnover_name: ((tt = (et = a.benefit) == null ? void 0 : et.upgrade) == null ? void 0 : tt.turnover_name) ?? ""
|
|
3911
3926
|
},
|
|
3912
3927
|
birthday: {
|
|
3913
3928
|
isShow: !0,
|
|
3914
|
-
bonus: P(((
|
|
3915
|
-
bonus_name: ((
|
|
3916
|
-
turnover: P(((
|
|
3917
|
-
turnover_name: ((
|
|
3929
|
+
bonus: P(((nt = (at = a.benefit) == null ? void 0 : at.birthday) == null ? void 0 : nt.bonus) ?? "0"),
|
|
3930
|
+
bonus_name: ((Te = (Ie = a.benefit) == null ? void 0 : Ie.birthday) == null ? void 0 : Te.bonus_name) ?? "",
|
|
3931
|
+
turnover: P(((ve = (rt = a.benefit) == null ? void 0 : rt.birthday) == null ? void 0 : ve.turnover) ?? "0"),
|
|
3932
|
+
turnover_name: ((ze = (st = a.benefit) == null ? void 0 : st.birthday) == null ? void 0 : ze.turnover_name) ?? ""
|
|
3918
3933
|
},
|
|
3919
3934
|
salary_1st: {
|
|
3920
3935
|
isShow: !0,
|
|
3921
|
-
bonus: P(((o = (
|
|
3936
|
+
bonus: P(((o = (We = a.benefit) == null ? void 0 : We.salary_1st) == null ? void 0 : o.bonus) ?? "0"),
|
|
3922
3937
|
bonus_name: ((v = (m = a.benefit) == null ? void 0 : m.salary_1st) == null ? void 0 : v.bonus_name) ?? "",
|
|
3923
3938
|
turnover: P(((l = (u = a.benefit) == null ? void 0 : u.salary_1st) == null ? void 0 : l.turnover) ?? "0"),
|
|
3924
3939
|
turnover_name: ((z = (D = a.benefit) == null ? void 0 : D.salary_1st) == null ? void 0 : z.turnover_name) ?? ""
|
|
@@ -3933,9 +3948,9 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3933
3948
|
salary_20th: {
|
|
3934
3949
|
isShow: !0,
|
|
3935
3950
|
bonus: P(((me = (Q = a.benefit) == null ? void 0 : Q.salary_20th) == null ? void 0 : me.bonus) ?? "0"),
|
|
3936
|
-
bonus_name: ((
|
|
3937
|
-
turnover: P(((
|
|
3938
|
-
turnover_name: ((
|
|
3951
|
+
bonus_name: ((je = (pe = a.benefit) == null ? void 0 : pe.salary_20th) == null ? void 0 : je.bonus_name) ?? "",
|
|
3952
|
+
turnover: P(((Ce = (be = a.benefit) == null ? void 0 : be.salary_20th) == null ? void 0 : Ce.turnover) ?? "0"),
|
|
3953
|
+
turnover_name: ((Rt = (f = a.benefit) == null ? void 0 : f.salary_20th) == null ? void 0 : Rt.turnover_name) ?? ""
|
|
3939
3954
|
}
|
|
3940
3955
|
}
|
|
3941
3956
|
};
|
|
@@ -4038,7 +4053,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4038
4053
|
title: a.title,
|
|
4039
4054
|
content: a.content
|
|
4040
4055
|
})) ?? []
|
|
4041
|
-
}),
|
|
4056
|
+
}), Rs = (e) => ({
|
|
4042
4057
|
category: e.category.map((a) => ({
|
|
4043
4058
|
id: a.catid,
|
|
4044
4059
|
name: a.name
|
|
@@ -4057,7 +4072,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4057
4072
|
amountDisplay: ((r = a.promo_cash) == null ? void 0 : r.display) ?? ""
|
|
4058
4073
|
};
|
|
4059
4074
|
}).sort((a, t) => a.claimable && !t.claimable ? -1 : !a.claimable && t.claimable ? 1 : 0)
|
|
4060
|
-
}),
|
|
4075
|
+
}), ks = (e) => ({
|
|
4061
4076
|
month: {
|
|
4062
4077
|
status: ye(e.month)
|
|
4063
4078
|
},
|
|
@@ -4083,7 +4098,7 @@ const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4083
4098
|
claimable: e === 1,
|
|
4084
4099
|
expired: e === 0,
|
|
4085
4100
|
claimed: e === -1
|
|
4086
|
-
}),
|
|
4101
|
+
}), Os = (e) => e.mdVipSetting.filter((t) => t.status == 1).map((t) => ({
|
|
4087
4102
|
fieldName: t.fieldname,
|
|
4088
4103
|
showName: t.showname
|
|
4089
4104
|
})), Ms = (e) => ({
|
|
@@ -4261,7 +4276,7 @@ const Es = (e) => {
|
|
|
4261
4276
|
})
|
|
4262
4277
|
})), qs = (e) => e.data ? e.data.filter((a) => !Bt(a.matchDate, 120)).map((a) => ({
|
|
4263
4278
|
id: a.id,
|
|
4264
|
-
date: ha(
|
|
4279
|
+
date: ha(Be(a.matchDate)),
|
|
4265
4280
|
started: Bt(a.matchDate),
|
|
4266
4281
|
stage: a.Stage,
|
|
4267
4282
|
sportId: a.SportID,
|
|
@@ -4479,7 +4494,7 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4479
4494
|
return {
|
|
4480
4495
|
messageId: a.msgindex,
|
|
4481
4496
|
unread: a.status == "0",
|
|
4482
|
-
date:
|
|
4497
|
+
date: Be(a.cdate),
|
|
4483
4498
|
title: ((t = a.account_message_content) == null ? void 0 : t.subject) ?? "",
|
|
4484
4499
|
content: ((n = a.account_message_content) == null ? void 0 : n.content) ?? ""
|
|
4485
4500
|
};
|
|
@@ -4489,7 +4504,7 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4489
4504
|
return {
|
|
4490
4505
|
messageId: a.msgindex,
|
|
4491
4506
|
unread: a.status == "0",
|
|
4492
|
-
date:
|
|
4507
|
+
date: Be(a.cdate),
|
|
4493
4508
|
title: ((t = a.account_message_content) == null ? void 0 : t.subject) ?? "",
|
|
4494
4509
|
content: ((n = a.account_message_content) == null ? void 0 : n.content) ?? "",
|
|
4495
4510
|
amount: parseFloat(a.amount ?? "0")
|
|
@@ -4511,8 +4526,8 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4511
4526
|
trial: !1,
|
|
4512
4527
|
new: !1
|
|
4513
4528
|
},
|
|
4514
|
-
imageUrl: `${e.mdDomains[s.mdDomains_id]}${
|
|
4515
|
-
logoUrl: `${e.mdDomains[s.mdDomains_id]}${
|
|
4529
|
+
imageUrl: `${e.mdDomains[s.mdDomains_id]}${Re(s.img, s.id, `?ts=${s.filemtime}`)}`,
|
|
4530
|
+
logoUrl: `${e.mdDomains[s.mdDomains_id]}${Re(s.img, s.id, `?ts=${s.filemtime}`)}`,
|
|
4516
4531
|
rate: "0.00",
|
|
4517
4532
|
jackpotAmount: ""
|
|
4518
4533
|
}))) ?? []
|
|
@@ -4768,7 +4783,7 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4768
4783
|
regex: a.regex,
|
|
4769
4784
|
showName: a.showname,
|
|
4770
4785
|
inputHelper: a.inputHelper
|
|
4771
|
-
})) : [],
|
|
4786
|
+
})) : [], xo = (e) => S(e), Ro = (e) => e, ko = (e) => {
|
|
4772
4787
|
var a;
|
|
4773
4788
|
return {
|
|
4774
4789
|
status: e.status == 1,
|
|
@@ -4778,7 +4793,7 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4778
4793
|
ledgerIndex: e.checkgame.ledgerindex ?? 0,
|
|
4779
4794
|
amount: e.checkgame.amount ?? ""
|
|
4780
4795
|
};
|
|
4781
|
-
},
|
|
4796
|
+
}, Oo = (e) => S(e), Mo = (e) => ({
|
|
4782
4797
|
status: e.status == 1,
|
|
4783
4798
|
message: e.message,
|
|
4784
4799
|
user: e.user ?? ""
|
|
@@ -4929,10 +4944,10 @@ const Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4929
4944
|
username: e.accountcode,
|
|
4930
4945
|
password: e.password
|
|
4931
4946
|
});
|
|
4932
|
-
var
|
|
4947
|
+
var Ue = /* @__PURE__ */ ((e) => (e.toPlatform = "transferIn", e.toWallet = "transferOut", e))(Ue || {});
|
|
4933
4948
|
const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4934
4949
|
__proto__: null,
|
|
4935
|
-
TransferMethod:
|
|
4950
|
+
TransferMethod: Ue
|
|
4936
4951
|
}, Symbol.toStringTag, { value: "Module" })), si = (e) => {
|
|
4937
4952
|
var a;
|
|
4938
4953
|
return {
|
|
@@ -4941,7 +4956,7 @@ const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4941
4956
|
data: ((a = e.mdGameCreditLimitTransfers.data) == null ? void 0 : a.map((t) => ({
|
|
4942
4957
|
transferIndex: t.clindex,
|
|
4943
4958
|
target: t.com_from !== "" ? t.com_from : t.com_to,
|
|
4944
|
-
category: t.com_from !== "" ?
|
|
4959
|
+
category: t.com_from !== "" ? Ue.toWallet : Ue.toPlatform,
|
|
4945
4960
|
amount: P(t.amount),
|
|
4946
4961
|
dateTime: t.transferdatetime
|
|
4947
4962
|
}))) ?? []
|
|
@@ -5136,21 +5151,21 @@ const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5136
5151
|
errorMessage: e.errormessage ?? "",
|
|
5137
5152
|
isAutoTransfer: e.optionkey == "auto" || ((a = e.message) == null ? void 0 : a.optionkey) == "auto" || ((t = e.mdAccountSetting) == null ? void 0 : t.optionkey) == "auto"
|
|
5138
5153
|
};
|
|
5139
|
-
}, Pi = (e) => S(e),
|
|
5154
|
+
}, Pi = (e) => S(e), xi = (e) => ({
|
|
5140
5155
|
status: e.status,
|
|
5141
5156
|
message: e.msg ?? "",
|
|
5142
5157
|
turnover: e.data ? e.data.turnover : 0,
|
|
5143
5158
|
percentage: e.data ? e.data.percentage ?? 0 : 0,
|
|
5144
5159
|
incentive: e.data ? e.data.incentive : 0,
|
|
5145
5160
|
claimable: 0
|
|
5146
|
-
}),
|
|
5161
|
+
}), Ri = (e) => {
|
|
5147
5162
|
let a = "0";
|
|
5148
5163
|
return e.data && (a = e.data.incentive), {
|
|
5149
5164
|
status: e.status,
|
|
5150
5165
|
message: e.msg ?? "",
|
|
5151
5166
|
amount: a
|
|
5152
5167
|
};
|
|
5153
|
-
},
|
|
5168
|
+
}, ki = (e) => {
|
|
5154
5169
|
let a = "0";
|
|
5155
5170
|
return e.data && (a = e.data.incentive), {
|
|
5156
5171
|
status: e.status,
|
|
@@ -5159,7 +5174,7 @@ const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5159
5174
|
};
|
|
5160
5175
|
};
|
|
5161
5176
|
var re = /* @__PURE__ */ ((e) => (e.inProgress = "inProgress", e.collectable = "collectable", e.collected = "collected", e))(re || {});
|
|
5162
|
-
const
|
|
5177
|
+
const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5163
5178
|
__proto__: null,
|
|
5164
5179
|
MissionStatus: re
|
|
5165
5180
|
}, Symbol.toStringTag, { value: "Module" })), Mi = (e) => {
|
|
@@ -5244,7 +5259,7 @@ const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5244
5259
|
trial: !1,
|
|
5245
5260
|
new: !1
|
|
5246
5261
|
},
|
|
5247
|
-
imageUrl: `${e.mdDomains[a.mdDomains_id]}${
|
|
5262
|
+
imageUrl: `${e.mdDomains[a.mdDomains_id]}${Re(a.img, a.id, `?ts=${a.filemtime}`)}`,
|
|
5248
5263
|
logoUrl: `/image/platform_logo/${a.img.split("/").pop()}?v=1`,
|
|
5249
5264
|
rate: "0.00",
|
|
5250
5265
|
jackpotAmount: ""
|
|
@@ -5473,15 +5488,15 @@ const Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5473
5488
|
message: e.msg ?? "",
|
|
5474
5489
|
data: e.data ?? 0
|
|
5475
5490
|
});
|
|
5476
|
-
var
|
|
5491
|
+
var xt = /* @__PURE__ */ ((e) => (e.mobileBanner = "mobileBanner", e.mobileAbout = "mobileAbout", e.mobileAd = "mobileAd", e.about = "about", e.appAd = "appAd", e.deposit = "deposit", e))(xt || {});
|
|
5477
5492
|
const au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5478
5493
|
__proto__: null,
|
|
5479
|
-
CmsCategory:
|
|
5494
|
+
CmsCategory: xt
|
|
5480
5495
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5481
|
-
var
|
|
5496
|
+
var $e = /* @__PURE__ */ ((e) => (e.complete = "complete", e.pending = "pending", e))($e || {});
|
|
5482
5497
|
const nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5483
5498
|
__proto__: null,
|
|
5484
|
-
WheelStatus:
|
|
5499
|
+
WheelStatus: $e
|
|
5485
5500
|
}, Symbol.toStringTag, { value: "Module" })), ru = (e) => {
|
|
5486
5501
|
if (e.status === 0)
|
|
5487
5502
|
return {
|
|
@@ -5496,7 +5511,7 @@ const nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5496
5511
|
return e.data && (a = e.data.data.map((n) => ({
|
|
5497
5512
|
id: n.cjm,
|
|
5498
5513
|
amount: n.award_prize,
|
|
5499
|
-
status: n.state === "1" ?
|
|
5514
|
+
status: n.state === "1" ? $e.complete : $e.pending,
|
|
5500
5515
|
date: n.adddate
|
|
5501
5516
|
})), t = e.data.totalpage), {
|
|
5502
5517
|
status: e.status === 1,
|
|
@@ -5551,7 +5566,7 @@ const nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5551
5566
|
trial: !1,
|
|
5552
5567
|
new: !1
|
|
5553
5568
|
},
|
|
5554
|
-
imageUrl: `${e.mdDomains[s.mdDomains_id]}${
|
|
5569
|
+
imageUrl: `${e.mdDomains[s.mdDomains_id]}${Re(s.img, s.id, `?ts=${s.filemtime}`)}`,
|
|
5555
5570
|
logoUrl: `/image/platform_logo/${s.img.split("/").pop()}?v=1`,
|
|
5556
5571
|
rate: "0.00",
|
|
5557
5572
|
jackpotAmount: ""
|
|
@@ -5580,10 +5595,10 @@ const nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5580
5595
|
status: e.status == 1,
|
|
5581
5596
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? ""
|
|
5582
5597
|
});
|
|
5583
|
-
var
|
|
5598
|
+
var Pe = /* @__PURE__ */ ((e) => (e.inProgress = "inProgress", e.collectable = "collectable", e.collected = "collected", e))(Pe || {});
|
|
5584
5599
|
const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5585
5600
|
__proto__: null,
|
|
5586
|
-
NewbieMissionStatus:
|
|
5601
|
+
NewbieMissionStatus: Pe
|
|
5587
5602
|
}, Symbol.toStringTag, { value: "Module" })), mu = (e) => {
|
|
5588
5603
|
if (e.status == 0 || e.data == null)
|
|
5589
5604
|
return {
|
|
@@ -5591,8 +5606,8 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5591
5606
|
message: e.msg ?? "",
|
|
5592
5607
|
data: null
|
|
5593
5608
|
};
|
|
5594
|
-
let a =
|
|
5595
|
-
return e.data.has_claimed ? a =
|
|
5609
|
+
let a = Pe.inProgress;
|
|
5610
|
+
return e.data.has_claimed ? a = Pe.collected : a = e.data.claimable ? Pe.collectable : Pe.inProgress, {
|
|
5596
5611
|
status: e.status == 1,
|
|
5597
5612
|
message: e.msg ?? "",
|
|
5598
5613
|
data: {
|
|
@@ -5627,7 +5642,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5627
5642
|
promoAmount: e.data.promo_amount ?? "0"
|
|
5628
5643
|
}
|
|
5629
5644
|
}, fu = async (e) => {
|
|
5630
|
-
var a, t, n, r, s, i, d, g, p, h, w, _, b,
|
|
5645
|
+
var a, t, n, r, s, i, d, g, p, h, w, _, b, O, C, V, A, I, M, T, R, Y, le, se, ce, de, Me, Se;
|
|
5631
5646
|
try {
|
|
5632
5647
|
e.findIndex((m) => m.name === c.vipList) !== -1 && e.push(
|
|
5633
5648
|
{
|
|
@@ -5662,49 +5677,41 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5662
5677
|
query: JSON.stringify({
|
|
5663
5678
|
p: 1,
|
|
5664
5679
|
c: 0,
|
|
5665
|
-
list: [
|
|
5680
|
+
list: [xt.deposit]
|
|
5666
5681
|
})
|
|
5667
|
-
})
|
|
5668
|
-
const Te = e.findIndex(
|
|
5682
|
+
}), e.findIndex(
|
|
5669
5683
|
(m) => m.name === c.getFavouriteGame
|
|
5670
|
-
)
|
|
5671
|
-
Te !== -1 && (JSON.parse(e[Te].query).pid || e.push({
|
|
5684
|
+
) !== -1 && e.push({
|
|
5672
5685
|
name: c.getPlatformTurnoverRate,
|
|
5673
5686
|
query: ""
|
|
5674
|
-
})
|
|
5675
|
-
const ve = e.findIndex(
|
|
5687
|
+
}), e.findIndex(
|
|
5676
5688
|
(m) => m.name === c.searchGameByName
|
|
5677
|
-
)
|
|
5678
|
-
ve !== -1 && (JSON.parse(e[ve].query).pid || e.push({
|
|
5689
|
+
) !== -1 && e.push({
|
|
5679
5690
|
name: c.getPlatformTurnoverRate,
|
|
5680
5691
|
query: ""
|
|
5681
|
-
}))
|
|
5682
|
-
const we = e.findIndex((m) => m.name === c.fishGameList);
|
|
5683
|
-
we !== -1 && (JSON.parse(e[we].query).pid || e.push({
|
|
5692
|
+
}), e.findIndex((m) => m.name === c.fishGameList) !== -1 && e.push({
|
|
5684
5693
|
name: c.getPlatformTurnoverRate,
|
|
5685
5694
|
query: ""
|
|
5686
|
-
}))
|
|
5687
|
-
const De = e.findIndex((m) => m.name === c.gameList);
|
|
5688
|
-
De !== -1 && (JSON.parse(e[De].query).pid || e.push({
|
|
5695
|
+
}), e.findIndex((m) => m.name === c.gameList) !== -1 && e.push({
|
|
5689
5696
|
name: c.getPlatformTurnoverRate,
|
|
5690
5697
|
query: ""
|
|
5691
|
-
})
|
|
5692
|
-
const
|
|
5693
|
-
if (
|
|
5698
|
+
});
|
|
5699
|
+
const Ie = e.findIndex((m) => m.name === c.searchHot);
|
|
5700
|
+
if (Ie !== -1) {
|
|
5694
5701
|
let m = {};
|
|
5695
5702
|
e.forEach((v) => {
|
|
5696
5703
|
m = v.query;
|
|
5697
|
-
}), e.splice(
|
|
5704
|
+
}), e.splice(Ie), e.push({
|
|
5698
5705
|
name: c.getFourDimensionData,
|
|
5699
5706
|
query: String(m)
|
|
5700
5707
|
});
|
|
5701
5708
|
}
|
|
5702
|
-
const
|
|
5703
|
-
if (
|
|
5709
|
+
const Te = e.findIndex((m) => m.name === c.searchNumberHistory);
|
|
5710
|
+
if (Te !== -1) {
|
|
5704
5711
|
let m = {};
|
|
5705
5712
|
e.forEach((v) => {
|
|
5706
5713
|
m = v.query;
|
|
5707
|
-
}), e.splice(
|
|
5714
|
+
}), e.splice(Te), e.push({
|
|
5708
5715
|
name: c.getFourDimensionData,
|
|
5709
5716
|
query: String(m)
|
|
5710
5717
|
});
|
|
@@ -5713,15 +5720,15 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5713
5720
|
let m = {};
|
|
5714
5721
|
e.forEach((v) => {
|
|
5715
5722
|
m = v.query;
|
|
5716
|
-
}), e.splice(
|
|
5723
|
+
}), e.splice(Te), e.push({
|
|
5717
5724
|
name: c.getFourDimensionData,
|
|
5718
5725
|
query: String(m)
|
|
5719
5726
|
});
|
|
5720
5727
|
}
|
|
5721
|
-
const
|
|
5728
|
+
const ve = e.findIndex(
|
|
5722
5729
|
(m) => m.name === c.getFourDimensionData
|
|
5723
5730
|
);
|
|
5724
|
-
|
|
5731
|
+
ve !== -1 && e[ve].query == "" && (e.splice(ve), e.push(
|
|
5725
5732
|
{
|
|
5726
5733
|
name: c.getFourDimensionData,
|
|
5727
5734
|
query: JSON.stringify({ action: c.getCompany, native: "1" })
|
|
@@ -5737,20 +5744,20 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5737
5744
|
})
|
|
5738
5745
|
}
|
|
5739
5746
|
));
|
|
5740
|
-
const
|
|
5747
|
+
const ze = {
|
|
5741
5748
|
requests: e.map((m) => ({
|
|
5742
5749
|
name: m.name,
|
|
5743
5750
|
query: btoa(m.query)
|
|
5744
5751
|
}))
|
|
5745
|
-
},
|
|
5752
|
+
}, We = await ee.post(
|
|
5746
5753
|
"/graph/jwt",
|
|
5747
|
-
Kr(JSON.stringify(
|
|
5754
|
+
Kr(JSON.stringify(ze))
|
|
5748
5755
|
), o = {
|
|
5749
5756
|
status: 200,
|
|
5750
5757
|
message: "",
|
|
5751
5758
|
result: {}
|
|
5752
5759
|
};
|
|
5753
|
-
for (const m of
|
|
5760
|
+
for (const m of We.data.responses) {
|
|
5754
5761
|
m.error != null && m.error.code != 200 && (o.status = m.error.code, o.message = m.error.message);
|
|
5755
5762
|
const v = m.attributes !== null && m.attributes !== void 0 ? es(m.attributes) : null, u = m.name, l = v ? JSON.parse(v) : null;
|
|
5756
5763
|
if (!l)
|
|
@@ -5775,19 +5782,19 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5775
5782
|
o.result[u] = Ds(l);
|
|
5776
5783
|
break;
|
|
5777
5784
|
case c.vipList:
|
|
5778
|
-
o.result[u] =
|
|
5785
|
+
o.result[u] = xs(l);
|
|
5779
5786
|
break;
|
|
5780
5787
|
case c.vipBonus:
|
|
5781
|
-
o.result[u] =
|
|
5788
|
+
o.result[u] = ks(l);
|
|
5782
5789
|
break;
|
|
5783
5790
|
case c.vipFieldStatus:
|
|
5784
|
-
o.result[u] =
|
|
5791
|
+
o.result[u] = Os(l);
|
|
5785
5792
|
break;
|
|
5786
5793
|
case c.vipStatus:
|
|
5787
5794
|
o.result[u] = Ms(l);
|
|
5788
5795
|
break;
|
|
5789
5796
|
case c.promotion:
|
|
5790
|
-
o.result[u] =
|
|
5797
|
+
o.result[u] = Rs(l);
|
|
5791
5798
|
break;
|
|
5792
5799
|
case c.getSetting:
|
|
5793
5800
|
o.result[u] = Ss(l);
|
|
@@ -5979,20 +5986,20 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5979
5986
|
o.result[u] = mt(l);
|
|
5980
5987
|
break;
|
|
5981
5988
|
case c.updateProfilePicture:
|
|
5982
|
-
o.result[u] =
|
|
5989
|
+
o.result[u] = xo(
|
|
5983
5990
|
l
|
|
5984
5991
|
);
|
|
5985
5992
|
break;
|
|
5986
5993
|
case c.readMail:
|
|
5987
|
-
o.result[u] =
|
|
5994
|
+
o.result[u] = Ro(l);
|
|
5988
5995
|
break;
|
|
5989
5996
|
case c.checkRedPacketValidate:
|
|
5990
|
-
o.result[u] =
|
|
5997
|
+
o.result[u] = ko(
|
|
5991
5998
|
l
|
|
5992
5999
|
);
|
|
5993
6000
|
break;
|
|
5994
6001
|
case c.requestTacCode:
|
|
5995
|
-
o.result[u] =
|
|
6002
|
+
o.result[u] = Oo(l);
|
|
5996
6003
|
break;
|
|
5997
6004
|
case c.getUsernameByRefer:
|
|
5998
6005
|
o.result[u] = Mo(
|
|
@@ -6205,17 +6212,17 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6205
6212
|
o.result[u] = Pi(l);
|
|
6206
6213
|
break;
|
|
6207
6214
|
case c.getIncentiveData:
|
|
6208
|
-
o.result[u] =
|
|
6215
|
+
o.result[u] = xi(
|
|
6209
6216
|
l
|
|
6210
6217
|
);
|
|
6211
6218
|
break;
|
|
6212
6219
|
case c.getIncentiveRebate:
|
|
6213
|
-
o.result[u] =
|
|
6220
|
+
o.result[u] = Ri(
|
|
6214
6221
|
l
|
|
6215
6222
|
);
|
|
6216
6223
|
break;
|
|
6217
6224
|
case c.claimIncentiveRebate:
|
|
6218
|
-
o.result[u] =
|
|
6225
|
+
o.result[u] = ki(
|
|
6219
6226
|
l
|
|
6220
6227
|
);
|
|
6221
6228
|
break;
|
|
@@ -6570,11 +6577,11 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6570
6577
|
code: "",
|
|
6571
6578
|
value: m.list.map((f) => f.benefit_list.salary_10th.bonus)
|
|
6572
6579
|
});
|
|
6573
|
-
const
|
|
6580
|
+
const je = u.findIndex(
|
|
6574
6581
|
(f) => f.fieldName == "salary_bonus_multiply_10th"
|
|
6575
6582
|
);
|
|
6576
|
-
|
|
6577
|
-
name: u[
|
|
6583
|
+
je > -1 && l.push({
|
|
6584
|
+
name: u[je].showName,
|
|
6578
6585
|
code: "",
|
|
6579
6586
|
value: m.list.map((f) => f.benefit_list.salary_10th.turnover)
|
|
6580
6587
|
});
|
|
@@ -6588,11 +6595,11 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6588
6595
|
code: "",
|
|
6589
6596
|
value: m.list.map((f) => f.benefit_list.salary_20th.bonus)
|
|
6590
6597
|
});
|
|
6591
|
-
const
|
|
6598
|
+
const Ce = u.findIndex(
|
|
6592
6599
|
(f) => f.fieldName == "salary_bonus_multiply_20th"
|
|
6593
6600
|
);
|
|
6594
|
-
|
|
6595
|
-
name: u[
|
|
6601
|
+
Ce > -1 && l.push({
|
|
6602
|
+
name: u[Ce].showName,
|
|
6596
6603
|
code: "",
|
|
6597
6604
|
value: m.list.map((f) => f.benefit_list.salary_20th.turnover)
|
|
6598
6605
|
}), (v === 1 || v === 3 || v === 4) && l.push({
|
|
@@ -6620,7 +6627,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6620
6627
|
const l = (b = o.result) == null ? void 0 : b.getInviteRewardData;
|
|
6621
6628
|
v += Number(l.totalReward), u += Number(l.unclaimReward), m.inviteRewardData = l, delete o.result.getInviteRewardData;
|
|
6622
6629
|
}
|
|
6623
|
-
if (c.getTopupRewardData in o.result && ((
|
|
6630
|
+
if (c.getTopupRewardData in o.result && ((O = o.result) != null && O.getTopupRewardData)) {
|
|
6624
6631
|
const l = (C = o.result) == null ? void 0 : C.getTopupRewardData;
|
|
6625
6632
|
v += Number(l.totalReward), u += Number(l.unclaimReward), m.topupRewardData = l, delete o.result.getTopupRewardData;
|
|
6626
6633
|
}
|
|
@@ -6628,7 +6635,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6628
6635
|
}
|
|
6629
6636
|
if (c.getFavouriteGame in o.result && ((V = o.result) != null && V.getFavouriteGame)) {
|
|
6630
6637
|
const m = o.result.getFavouriteGame;
|
|
6631
|
-
if (
|
|
6638
|
+
if (c.getPlatformTurnoverRate in o.result && ((A = o.result) != null && A.getPlatformTurnoverRate)) {
|
|
6632
6639
|
const v = o.result.getPlatformTurnoverRate;
|
|
6633
6640
|
o.result.getFavouriteGame = m.data.map((u) => {
|
|
6634
6641
|
const l = v.find(
|
|
@@ -6643,24 +6650,22 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6643
6650
|
}
|
|
6644
6651
|
if (c.searchGameByName in o.result && ((I = o.result) != null && I.searchGameByName)) {
|
|
6645
6652
|
const m = o.result.searchGameByName;
|
|
6646
|
-
if (
|
|
6653
|
+
if (c.getPlatformTurnoverRate in o.result && ((M = o.result) != null && M.getPlatformTurnoverRate)) {
|
|
6647
6654
|
const v = o.result.getPlatformTurnoverRate;
|
|
6648
|
-
o.result.searchGameByName = m.gameList.data.map(
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
}
|
|
6658
|
-
), delete o.result.getPlatformTurnoverRate;
|
|
6655
|
+
o.result.searchGameByName = m.gameList.data.map((u) => {
|
|
6656
|
+
const l = v.find(
|
|
6657
|
+
(D) => D.id === u.platformId
|
|
6658
|
+
);
|
|
6659
|
+
return {
|
|
6660
|
+
...u,
|
|
6661
|
+
rate: (l == null ? void 0 : l.percentage) ?? "0.00"
|
|
6662
|
+
};
|
|
6663
|
+
}), delete o.result.getPlatformTurnoverRate;
|
|
6659
6664
|
}
|
|
6660
6665
|
}
|
|
6661
6666
|
if (c.fishGameList in o.result && ((T = o.result) != null && T.fishGameList)) {
|
|
6662
6667
|
const m = o.result.fishGameList;
|
|
6663
|
-
if (
|
|
6668
|
+
if (c.getPlatformTurnoverRate in o.result && ((R = o.result) != null && R.getPlatformTurnoverRate)) {
|
|
6664
6669
|
const v = o.result.getPlatformTurnoverRate;
|
|
6665
6670
|
o.result.fishGameList = m.data.map((u) => {
|
|
6666
6671
|
const l = v.find(
|
|
@@ -6686,40 +6691,37 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6686
6691
|
}
|
|
6687
6692
|
}
|
|
6688
6693
|
if (c.gameList in o.result && ((le = o.result) != null && le.gameList)) {
|
|
6689
|
-
const m = o.result.gameList;
|
|
6690
|
-
if (
|
|
6691
|
-
const
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
const z = u.find(
|
|
6698
|
-
(U) => U.id === D.platformId
|
|
6699
|
-
);
|
|
6700
|
-
return {
|
|
6701
|
-
...D,
|
|
6702
|
-
rate: (z == null ? void 0 : z.percentage) ?? "0.00"
|
|
6703
|
-
};
|
|
6704
|
-
})
|
|
6705
|
-
})), m.gameList.data = m.gameList.data.map((l) => {
|
|
6706
|
-
const D = u.find(
|
|
6707
|
-
(z) => z.id === l.platformId
|
|
6694
|
+
const m = o.result.gameList, v = m.platformGame.map((u) => u.list.filter((l) => l.flag.trial && !u.nextPage).map((l) => l));
|
|
6695
|
+
if (m.trialGameList = v.flat(), c.getPlatformTurnoverRate in o.result && ((se = o.result) != null && se.getPlatformTurnoverRate)) {
|
|
6696
|
+
const u = o.result.getPlatformTurnoverRate;
|
|
6697
|
+
m.platformGame = m.platformGame.map((l) => ({
|
|
6698
|
+
...l,
|
|
6699
|
+
list: l.list.map((D) => {
|
|
6700
|
+
const z = u.find(
|
|
6701
|
+
(U) => U.id === D.platformId
|
|
6708
6702
|
);
|
|
6709
6703
|
return {
|
|
6710
|
-
...
|
|
6711
|
-
rate: (
|
|
6704
|
+
...D,
|
|
6705
|
+
rate: (z == null ? void 0 : z.percentage) ?? "0.00"
|
|
6712
6706
|
};
|
|
6713
|
-
})
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
)
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
}
|
|
6722
|
-
}
|
|
6707
|
+
})
|
|
6708
|
+
})), m.gameList.data = m.gameList.data.map((l) => {
|
|
6709
|
+
const D = u.find(
|
|
6710
|
+
(z) => z.id === l.platformId
|
|
6711
|
+
);
|
|
6712
|
+
return {
|
|
6713
|
+
...l,
|
|
6714
|
+
rate: (D == null ? void 0 : D.percentage) ?? "0.00"
|
|
6715
|
+
};
|
|
6716
|
+
}), m.trialGameList = m.trialGameList.map((l) => {
|
|
6717
|
+
const D = u.find(
|
|
6718
|
+
(z) => z.id === l.platformId
|
|
6719
|
+
);
|
|
6720
|
+
return {
|
|
6721
|
+
...l,
|
|
6722
|
+
rate: (D == null ? void 0 : D.percentage) ?? "0.00"
|
|
6723
|
+
};
|
|
6724
|
+
}), delete o.result.getPlatformTurnoverRate;
|
|
6723
6725
|
}
|
|
6724
6726
|
o.result.gameList = m;
|
|
6725
6727
|
}
|
|
@@ -6737,8 +6739,8 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6737
6739
|
return o;
|
|
6738
6740
|
} catch (te) {
|
|
6739
6741
|
return ta.isAxiosError(te) ? {
|
|
6740
|
-
status: ((
|
|
6741
|
-
message: JSON.stringify((
|
|
6742
|
+
status: ((Me = te.response) == null ? void 0 : Me.status) || 600,
|
|
6743
|
+
message: JSON.stringify((Se = te.response) == null ? void 0 : Se.data),
|
|
6742
6744
|
result: {}
|
|
6743
6745
|
} : (console.error(te), {
|
|
6744
6746
|
status: te.status || 500,
|
|
@@ -6876,7 +6878,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6876
6878
|
};
|
|
6877
6879
|
}
|
|
6878
6880
|
return e;
|
|
6879
|
-
},
|
|
6881
|
+
}, xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6880
6882
|
__proto__: null,
|
|
6881
6883
|
call: Pu
|
|
6882
6884
|
}, Symbol.toStringTag, { value: "Module" })), Zt = {
|
|
@@ -6884,7 +6886,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6884
6886
|
status: !1,
|
|
6885
6887
|
message: ""
|
|
6886
6888
|
}
|
|
6887
|
-
},
|
|
6889
|
+
}, Ru = async (e, a) => {
|
|
6888
6890
|
let t = {
|
|
6889
6891
|
status: 200,
|
|
6890
6892
|
message: "",
|
|
@@ -6909,10 +6911,10 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6909
6911
|
};
|
|
6910
6912
|
}
|
|
6911
6913
|
return t;
|
|
6912
|
-
},
|
|
6914
|
+
}, ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6913
6915
|
__proto__: null,
|
|
6914
|
-
call:
|
|
6915
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6916
|
+
call: Ru
|
|
6917
|
+
}, Symbol.toStringTag, { value: "Module" })), Ou = async (e, a, t, n, r) => {
|
|
6916
6918
|
let s = {
|
|
6917
6919
|
status: 200,
|
|
6918
6920
|
message: "",
|
|
@@ -6952,7 +6954,7 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6952
6954
|
return s;
|
|
6953
6955
|
}, Mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6954
6956
|
__proto__: null,
|
|
6955
|
-
call:
|
|
6957
|
+
call: Ou
|
|
6956
6958
|
}, Symbol.toStringTag, { value: "Module" })), Jt = {
|
|
6957
6959
|
data: {
|
|
6958
6960
|
status: !1,
|
|
@@ -7093,14 +7095,14 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7093
7095
|
__proto__: null
|
|
7094
7096
|
}, Symbol.toStringTag, { value: "Module" })), Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7095
7097
|
__proto__: null
|
|
7096
|
-
}, Symbol.toStringTag, { value: "Module" })), Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7097
|
-
__proto__: null
|
|
7098
7098
|
}, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7099
7099
|
__proto__: null
|
|
7100
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7100
|
+
}, Symbol.toStringTag, { value: "Module" })), Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7101
7101
|
__proto__: null
|
|
7102
7102
|
}, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7103
7103
|
__proto__: null
|
|
7104
|
+
}, Symbol.toStringTag, { value: "Module" })), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7105
|
+
__proto__: null
|
|
7104
7106
|
}, Symbol.toStringTag, { value: "Module" })), Ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7105
7107
|
__proto__: null
|
|
7106
7108
|
}, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -7201,14 +7203,14 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7201
7203
|
__proto__: null
|
|
7202
7204
|
}, Symbol.toStringTag, { value: "Module" })), Pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7203
7205
|
__proto__: null
|
|
7204
|
-
}, Symbol.toStringTag, { value: "Module" })), Rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7205
|
-
__proto__: null
|
|
7206
7206
|
}, Symbol.toStringTag, { value: "Module" })), xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7207
7207
|
__proto__: null
|
|
7208
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7208
|
+
}, Symbol.toStringTag, { value: "Module" })), Rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7209
7209
|
__proto__: null
|
|
7210
7210
|
}, Symbol.toStringTag, { value: "Module" })), kc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7211
7211
|
__proto__: null
|
|
7212
|
+
}, Symbol.toStringTag, { value: "Module" })), Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7213
|
+
__proto__: null
|
|
7212
7214
|
}, Symbol.toStringTag, { value: "Module" })), Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7213
7215
|
__proto__: null
|
|
7214
7216
|
}, Symbol.toStringTag, { value: "Module" })), Sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -7248,8 +7250,8 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7248
7250
|
loginApi: _u,
|
|
7249
7251
|
jackpotDataApi: vu,
|
|
7250
7252
|
logoutApi: Du,
|
|
7251
|
-
autoRegisterApi:
|
|
7252
|
-
setLocaleApi:
|
|
7253
|
+
autoRegisterApi: xu,
|
|
7254
|
+
setLocaleApi: ku,
|
|
7253
7255
|
loadMatchApi: Mu,
|
|
7254
7256
|
getMaintenanceModeApi: Iu,
|
|
7255
7257
|
apiType: bs,
|
|
@@ -7306,10 +7308,10 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7306
7308
|
checkRedPacketValidateType: wl,
|
|
7307
7309
|
getUserProfileType: Dl,
|
|
7308
7310
|
requestTacCodeType: Pl,
|
|
7309
|
-
getUsernameByReferType:
|
|
7310
|
-
applyPromoType:
|
|
7311
|
-
applySignInType:
|
|
7312
|
-
applyRedPacketType:
|
|
7311
|
+
getUsernameByReferType: xl,
|
|
7312
|
+
applyPromoType: Rl,
|
|
7313
|
+
applySignInType: kl,
|
|
7314
|
+
applyRedPacketType: Ol,
|
|
7313
7315
|
getCountryType: Ml,
|
|
7314
7316
|
submitGiftCodeType: Kt,
|
|
7315
7317
|
playGameType: ea,
|
|
@@ -7355,7 +7357,7 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7355
7357
|
claimIncentiveRebate: fc,
|
|
7356
7358
|
getIncentiveData: pc,
|
|
7357
7359
|
getIncentiveRebate: bc,
|
|
7358
|
-
getMissionData:
|
|
7360
|
+
getMissionData: Oi,
|
|
7359
7361
|
getMissionClaim: yc,
|
|
7360
7362
|
registerFormType: hc,
|
|
7361
7363
|
getFavouriteGameType: _c,
|
|
@@ -7365,10 +7367,10 @@ const hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7365
7367
|
getAccumulateDepositDataType: Fi,
|
|
7366
7368
|
getAccumulateDepositClaimType: Dc,
|
|
7367
7369
|
rebateRefundSettingType: Pc,
|
|
7368
|
-
getASCMatchCountType:
|
|
7369
|
-
updateDeviceTokenType:
|
|
7370
|
-
getCryptoListType:
|
|
7371
|
-
getCryptoAddressType:
|
|
7370
|
+
getASCMatchCountType: xc,
|
|
7371
|
+
updateDeviceTokenType: Rc,
|
|
7372
|
+
getCryptoListType: kc,
|
|
7373
|
+
getCryptoAddressType: Oc,
|
|
7372
7374
|
getPopoutItemType: Mc,
|
|
7373
7375
|
getTurnOverRewardSettingMultType: Sc,
|
|
7374
7376
|
interestIndexType: Ic,
|
|
@@ -7396,13 +7398,13 @@ export {
|
|
|
7396
7398
|
pu as api,
|
|
7397
7399
|
bs as apiType,
|
|
7398
7400
|
Ec as applyGoldEggType,
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
+
Rl as applyPromoType,
|
|
7402
|
+
Ol as applyRedPacketType,
|
|
7401
7403
|
oc as applyReliefFund,
|
|
7402
|
-
|
|
7404
|
+
kl as applySignInType,
|
|
7403
7405
|
Yu as applyVipBonusType,
|
|
7404
7406
|
dc as applyWeekCard,
|
|
7405
|
-
|
|
7407
|
+
xu as autoRegisterApi,
|
|
7406
7408
|
Zl as betReportType,
|
|
7407
7409
|
Uu as changePasswordType,
|
|
7408
7410
|
nc as changeWithdrawalCodeType,
|
|
@@ -7420,14 +7422,14 @@ export {
|
|
|
7420
7422
|
Ll as friendListEditType,
|
|
7421
7423
|
Nl as friendListType,
|
|
7422
7424
|
Lu as gameListType,
|
|
7423
|
-
|
|
7425
|
+
xc as getASCMatchCountType,
|
|
7424
7426
|
Dc as getAccumulateDepositClaimType,
|
|
7425
7427
|
Fi as getAccumulateDepositDataType,
|
|
7426
7428
|
Fl as getActivePPType,
|
|
7427
7429
|
Gl as getActiveProductType,
|
|
7428
7430
|
Ml as getCountryType,
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
+
Oc as getCryptoAddressType,
|
|
7432
|
+
kc as getCryptoListType,
|
|
7431
7433
|
ol as getDepositPromotionType,
|
|
7432
7434
|
Vu as getEventListType,
|
|
7433
7435
|
Au as getEventTokenType,
|
|
@@ -7443,7 +7445,7 @@ export {
|
|
|
7443
7445
|
cl as getInviteRewardSettingType,
|
|
7444
7446
|
Iu as getMaintenanceModeApi,
|
|
7445
7447
|
yc as getMissionClaim,
|
|
7446
|
-
|
|
7448
|
+
Oi as getMissionData,
|
|
7447
7449
|
Bc as getNewbieMissionClaimType,
|
|
7448
7450
|
du as getNewbieMissionDataType,
|
|
7449
7451
|
Mc as getPopoutItemType,
|
|
@@ -7463,7 +7465,7 @@ export {
|
|
|
7463
7465
|
Jl as getTwoFactorAuthenticateType,
|
|
7464
7466
|
ec as getUserDeviceListType,
|
|
7465
7467
|
Dl as getUserProfileType,
|
|
7466
|
-
|
|
7468
|
+
xl as getUsernameByReferType,
|
|
7467
7469
|
_l as getValidateType,
|
|
7468
7470
|
yl as getVerifyPromo,
|
|
7469
7471
|
Wc as getWeekCardAllDataType,
|
|
@@ -7503,7 +7505,7 @@ export {
|
|
|
7503
7505
|
zl as requestWithdrawTacType,
|
|
7504
7506
|
Wl as requestWithdrawalCodeType,
|
|
7505
7507
|
ac as searchNumberHistoryType,
|
|
7506
|
-
|
|
7508
|
+
ku as setLocaleApi,
|
|
7507
7509
|
$l as signInRecordType,
|
|
7508
7510
|
Ul as signInViewInfoType,
|
|
7509
7511
|
Ju as slotGameListType,
|
|
@@ -7528,7 +7530,7 @@ export {
|
|
|
7528
7530
|
gc as transferType,
|
|
7529
7531
|
tc as unbindUserDeviceType,
|
|
7530
7532
|
Wu as upcomingMatchType,
|
|
7531
|
-
|
|
7533
|
+
Rc as updateDeviceTokenType,
|
|
7532
7534
|
Tc as updateFavouriteGameType,
|
|
7533
7535
|
Tl as updateProfilePictureType,
|
|
7534
7536
|
Fu as vipListType,
|