@everymatrix/mini-games-hub 0.1.14 → 0.1.25
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/components/GameCard-BmOaK5EP.js +50 -0
- package/components/GameCard-C4koIRhP.js +50 -0
- package/components/{GameCard-BIn8BJ4U.cjs → GameCard-DA-8ladf.cjs} +2 -2
- package/components/{MiniGamesHub-zNncMSFn.cjs → MiniGamesHub-BM5Vxa9S.cjs} +5 -5
- package/components/{MiniGamesHub-D3n-AyD7.js → MiniGamesHub-C7aQh03q.js} +139 -141
- package/components/{MiniGamesHub-BYJ7lK90.js → MiniGamesHub-Dl3isBzY.js} +149 -151
- package/components/{WheelOfFortune-BjNsD2ND.js → WheelOfFortune-B-Rx_FFX.js} +144 -146
- package/components/{WheelOfFortune--4nTtnMR.cjs → WheelOfFortune-CidB6b1w.cjs} +4 -4
- package/components/{WheelOfFortune-DkVQIxzg.js → WheelOfFortune-DdCajfhn.js} +144 -146
- package/components/WheelOfFortuneDrawResults-C3U-7-aw.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-D54Resid.js +279 -0
- package/components/WheelOfFortuneDrawResults-DZ43Wc7d.js +254 -0
- package/components/WheelOfFortuneHistory-COJdJOvU.js +214 -0
- package/components/WheelOfFortuneHistory-DNb6Y7gj.js +214 -0
- package/components/WheelOfFortuneHistory-tYu_rAD4.cjs +13 -0
- package/components/WheelOfFortuneRules-B1F8hnwG.js +109 -0
- package/components/{WheelOfFortuneRules-VAMAiK0m.cjs → WheelOfFortuneRules-BVcH-eGN.cjs} +2 -2
- package/components/WheelOfFortuneRules-DNJmzmyN.js +120 -0
- package/components/WheelOfFortuneWheel-0b7lq2LJ.cjs +3 -0
- package/components/{WheelOfFortuneWheel-DxFn6jjg.js → WheelOfFortuneWheel-BWPBlDFv.js} +1476 -1111
- package/components/{WheelOfFortuneWheel-BAR98ByP.js → WheelOfFortuneWheel-BuBnw_ev.js} +1412 -1049
- package/components/utils-03vIpDSe.cjs +3 -0
- package/components/{utils-d-JrZBJu.js → utils-C9WIoJIh.js} +2236 -2410
- package/components/utils-I5rI2w_S.js +5867 -0
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
- package/components/GameCard-D3knomma.js +0 -56
- package/components/GameCard-Ds0FcnPp.js +0 -56
- package/components/WheelOfFortuneDrawResults-1lzyxrks.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-DQweghnp.js +0 -301
- package/components/WheelOfFortuneDrawResults-dOeQDVub.js +0 -276
- package/components/WheelOfFortuneHistory-CQZ9QtVt.js +0 -232
- package/components/WheelOfFortuneHistory-DZNPM57t.cjs +0 -13
- package/components/WheelOfFortuneHistory-DygZEtcR.js +0 -232
- package/components/WheelOfFortuneRules-D3N1c8PX.js +0 -117
- package/components/WheelOfFortuneRules-DuiCet95.js +0 -128
- package/components/WheelOfFortuneWheel-hSjxThyU.cjs +0 -3
- package/components/utils-C7uxZXaZ.js +0 -6045
- package/components/utils-DQIHJIDu.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Y = (n, r, e) => new Promise((t, i) => {
|
|
2
2
|
var o = (u) => {
|
|
3
3
|
try {
|
|
4
4
|
l(e.next(u));
|
|
@@ -14,10 +14,10 @@ var K = (n, r, e) => new Promise((t, i) => {
|
|
|
14
14
|
}, l = (u) => u.done ? t(u.value) : Promise.resolve(u.value).then(o, a);
|
|
15
15
|
l((e = e.apply(n, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
18
|
-
import { a as
|
|
19
|
-
import { W as ye } from "./WheelOfFortune-
|
|
20
|
-
import { G as
|
|
17
|
+
import { bl as Ye, aa as Ke, b1 as q, aQ as Ze, a6 as Xe, aU as S, a2 as Qe, I as g, aJ as p, bm as $e, b6 as K, b2 as pe, ba as B, b9 as Z, b3 as he, aq as ge, bb as fe, b4 as er } from "./utils-I5rI2w_S.js";
|
|
18
|
+
import { a as rr, p as T, x as nr, y as me, z as ve, o as tr, i as be, b as W, e as ir, f as G, c as or, k as ar, g as sr, h as lr, j as X, s as ur } from "./WheelOfFortuneWheel-BWPBlDFv.js";
|
|
19
|
+
import { W as ye } from "./WheelOfFortune-DdCajfhn.js";
|
|
20
|
+
import { G as dr } from "./GameCard-C4koIRhP.js";
|
|
21
21
|
const we = {
|
|
22
22
|
en: {
|
|
23
23
|
noContent: "You don't have any lottery programs available now.",
|
|
@@ -550,23 +550,23 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
550
550
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
551
551
|
PERFORMANCE OF THIS SOFTWARE.
|
|
552
552
|
***************************************************************************** */
|
|
553
|
-
var
|
|
554
|
-
return
|
|
553
|
+
var $ = function(n, r) {
|
|
554
|
+
return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
555
555
|
e.__proto__ = t;
|
|
556
556
|
} || function(e, t) {
|
|
557
557
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
558
|
-
},
|
|
558
|
+
}, $(n, r);
|
|
559
559
|
};
|
|
560
|
-
function
|
|
560
|
+
function C(n, r) {
|
|
561
561
|
if (typeof r != "function" && r !== null)
|
|
562
562
|
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
563
|
-
|
|
563
|
+
$(n, r);
|
|
564
564
|
function e() {
|
|
565
565
|
this.constructor = n;
|
|
566
566
|
}
|
|
567
567
|
n.prototype = r === null ? Object.create(r) : (e.prototype = r.prototype, new e());
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function ee(n) {
|
|
570
570
|
var r = typeof Symbol == "function" && Symbol.iterator, e = r && n[r], t = 0;
|
|
571
571
|
if (e) return e.call(n);
|
|
572
572
|
if (n && typeof n.length == "number") return {
|
|
@@ -576,7 +576,7 @@ function $(n) {
|
|
|
576
576
|
};
|
|
577
577
|
throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function re(n, r) {
|
|
580
580
|
var e = typeof Symbol == "function" && n[Symbol.iterator];
|
|
581
581
|
if (!e) return n;
|
|
582
582
|
var t = e.call(n), i, o = [], a;
|
|
@@ -593,7 +593,7 @@ function ee(n, r) {
|
|
|
593
593
|
}
|
|
594
594
|
return o;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function ne(n, r, e) {
|
|
597
597
|
if (arguments.length === 2) for (var t = 0, i = r.length, o; t < i; t++)
|
|
598
598
|
(o || !(t in r)) && (o || (o = Array.prototype.slice.call(r, 0, t)), o[t] = r[t]);
|
|
599
599
|
return n.concat(o || r);
|
|
@@ -607,7 +607,7 @@ function Pe(n) {
|
|
|
607
607
|
}, e = n(r);
|
|
608
608
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
609
609
|
}
|
|
610
|
-
var
|
|
610
|
+
var Q = Pe(function(n) {
|
|
611
611
|
return function(e) {
|
|
612
612
|
n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
613
613
|
` + e.map(function(t, i) {
|
|
@@ -616,13 +616,13 @@ var X = Pe(function(n) {
|
|
|
616
616
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
617
617
|
};
|
|
618
618
|
});
|
|
619
|
-
function
|
|
619
|
+
function te(n, r) {
|
|
620
620
|
if (n) {
|
|
621
621
|
var e = n.indexOf(r);
|
|
622
622
|
0 <= e && n.splice(e, 1);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
var
|
|
625
|
+
var L = function() {
|
|
626
626
|
function n(r) {
|
|
627
627
|
this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
628
628
|
}
|
|
@@ -634,7 +634,7 @@ var F = function() {
|
|
|
634
634
|
if (a)
|
|
635
635
|
if (this._parentage = null, Array.isArray(a))
|
|
636
636
|
try {
|
|
637
|
-
for (var l =
|
|
637
|
+
for (var l = ee(a), u = l.next(); !u.done; u = l.next()) {
|
|
638
638
|
var h = u.value;
|
|
639
639
|
h.remove(this);
|
|
640
640
|
}
|
|
@@ -654,38 +654,38 @@ var F = function() {
|
|
|
654
654
|
try {
|
|
655
655
|
v();
|
|
656
656
|
} catch (m) {
|
|
657
|
-
o = m instanceof
|
|
657
|
+
o = m instanceof Q ? m.errors : [m];
|
|
658
658
|
}
|
|
659
659
|
var j = this._finalizers;
|
|
660
660
|
if (j) {
|
|
661
661
|
this._finalizers = null;
|
|
662
662
|
try {
|
|
663
|
-
for (var x =
|
|
664
|
-
var
|
|
663
|
+
for (var x = ee(j), k = x.next(); !k.done; k = x.next()) {
|
|
664
|
+
var F = k.value;
|
|
665
665
|
try {
|
|
666
|
-
|
|
666
|
+
ke(F);
|
|
667
667
|
} catch (m) {
|
|
668
|
-
o = o != null ? o : [], m instanceof
|
|
668
|
+
o = o != null ? o : [], m instanceof Q ? o = ne(ne([], re(o)), re(m.errors)) : o.push(m);
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
} catch (m) {
|
|
672
672
|
t = { error: m };
|
|
673
673
|
} finally {
|
|
674
674
|
try {
|
|
675
|
-
|
|
675
|
+
k && !k.done && (i = x.return) && i.call(x);
|
|
676
676
|
} finally {
|
|
677
677
|
if (t) throw t.error;
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
if (o)
|
|
682
|
-
throw new
|
|
682
|
+
throw new Q(o);
|
|
683
683
|
}
|
|
684
684
|
}, n.prototype.add = function(r) {
|
|
685
685
|
var e;
|
|
686
686
|
if (r && r !== this)
|
|
687
687
|
if (this.closed)
|
|
688
|
-
|
|
688
|
+
ke(r);
|
|
689
689
|
else {
|
|
690
690
|
if (r instanceof n) {
|
|
691
691
|
if (r.closed || r._hasParent(this))
|
|
@@ -702,52 +702,52 @@ var F = function() {
|
|
|
702
702
|
this._parentage = Array.isArray(e) ? (e.push(r), e) : e ? [e, r] : r;
|
|
703
703
|
}, n.prototype._removeParent = function(r) {
|
|
704
704
|
var e = this._parentage;
|
|
705
|
-
e === r ? this._parentage = null : Array.isArray(e) &&
|
|
705
|
+
e === r ? this._parentage = null : Array.isArray(e) && te(e, r);
|
|
706
706
|
}, n.prototype.remove = function(r) {
|
|
707
707
|
var e = this._finalizers;
|
|
708
|
-
e &&
|
|
708
|
+
e && te(e, r), r instanceof n && r._removeParent(this);
|
|
709
709
|
}, n.EMPTY = function() {
|
|
710
710
|
var r = new n();
|
|
711
711
|
return r.closed = !0, r;
|
|
712
712
|
}(), n;
|
|
713
|
-
}(), De =
|
|
713
|
+
}(), De = L.EMPTY;
|
|
714
714
|
function Ae(n) {
|
|
715
|
-
return n instanceof
|
|
715
|
+
return n instanceof L || n && "closed" in n && z(n.remove) && z(n.add) && z(n.unsubscribe);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function ke(n) {
|
|
718
718
|
z(n) ? n() : n.unsubscribe();
|
|
719
719
|
}
|
|
720
|
-
var
|
|
720
|
+
var cr = {
|
|
721
721
|
Promise: void 0
|
|
722
|
-
},
|
|
722
|
+
}, pr = {
|
|
723
723
|
setTimeout: function(n, r) {
|
|
724
724
|
for (var e = [], t = 2; t < arguments.length; t++)
|
|
725
725
|
e[t - 2] = arguments[t];
|
|
726
|
-
return setTimeout.apply(void 0,
|
|
726
|
+
return setTimeout.apply(void 0, ne([n, r], re(e)));
|
|
727
727
|
},
|
|
728
728
|
clearTimeout: function(n) {
|
|
729
729
|
return clearTimeout(n);
|
|
730
730
|
},
|
|
731
731
|
delegate: void 0
|
|
732
732
|
};
|
|
733
|
-
function
|
|
734
|
-
|
|
733
|
+
function hr(n) {
|
|
734
|
+
pr.setTimeout(function() {
|
|
735
735
|
throw n;
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Se() {
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function N(n) {
|
|
741
741
|
n();
|
|
742
742
|
}
|
|
743
743
|
var qe = function(n) {
|
|
744
|
-
|
|
744
|
+
C(r, n);
|
|
745
745
|
function r(e) {
|
|
746
746
|
var t = n.call(this) || this;
|
|
747
|
-
return t.isStopped = !1, e ? (t.destination = e, Ae(e) && e.add(t)) : t.destination =
|
|
747
|
+
return t.isStopped = !1, e ? (t.destination = e, Ae(e) && e.add(t)) : t.destination = mr, t;
|
|
748
748
|
}
|
|
749
749
|
return r.create = function(e, t, i) {
|
|
750
|
-
return new
|
|
750
|
+
return new ie(e, t, i);
|
|
751
751
|
}, r.prototype.next = function(e) {
|
|
752
752
|
this.isStopped || this._next(e);
|
|
753
753
|
}, r.prototype.error = function(e) {
|
|
@@ -771,7 +771,7 @@ var qe = function(n) {
|
|
|
771
771
|
this.unsubscribe();
|
|
772
772
|
}
|
|
773
773
|
}, r;
|
|
774
|
-
}(
|
|
774
|
+
}(L), gr = function() {
|
|
775
775
|
function n(r) {
|
|
776
776
|
this.partialObserver = r;
|
|
777
777
|
}
|
|
@@ -781,7 +781,7 @@ var qe = function(n) {
|
|
|
781
781
|
try {
|
|
782
782
|
e.next(r);
|
|
783
783
|
} catch (t) {
|
|
784
|
-
|
|
784
|
+
M(t);
|
|
785
785
|
}
|
|
786
786
|
}, n.prototype.error = function(r) {
|
|
787
787
|
var e = this.partialObserver;
|
|
@@ -789,50 +789,50 @@ var qe = function(n) {
|
|
|
789
789
|
try {
|
|
790
790
|
e.error(r);
|
|
791
791
|
} catch (t) {
|
|
792
|
-
|
|
792
|
+
M(t);
|
|
793
793
|
}
|
|
794
794
|
else
|
|
795
|
-
|
|
795
|
+
M(r);
|
|
796
796
|
}, n.prototype.complete = function() {
|
|
797
797
|
var r = this.partialObserver;
|
|
798
798
|
if (r.complete)
|
|
799
799
|
try {
|
|
800
800
|
r.complete();
|
|
801
801
|
} catch (e) {
|
|
802
|
-
|
|
802
|
+
M(e);
|
|
803
803
|
}
|
|
804
804
|
}, n;
|
|
805
|
-
}(),
|
|
806
|
-
|
|
805
|
+
}(), ie = function(n) {
|
|
806
|
+
C(r, n);
|
|
807
807
|
function r(e, t, i) {
|
|
808
808
|
var o = n.call(this) || this, a;
|
|
809
809
|
return z(e) || !e ? a = {
|
|
810
810
|
next: e != null ? e : void 0,
|
|
811
811
|
error: t != null ? t : void 0,
|
|
812
812
|
complete: i != null ? i : void 0
|
|
813
|
-
} : a = e, o.destination = new
|
|
813
|
+
} : a = e, o.destination = new gr(a), o;
|
|
814
814
|
}
|
|
815
815
|
return r;
|
|
816
816
|
}(qe);
|
|
817
|
-
function
|
|
818
|
-
|
|
817
|
+
function M(n) {
|
|
818
|
+
hr(n);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function fr(n) {
|
|
821
821
|
throw n;
|
|
822
822
|
}
|
|
823
|
-
var
|
|
823
|
+
var mr = {
|
|
824
824
|
closed: !0,
|
|
825
|
-
next:
|
|
826
|
-
error:
|
|
827
|
-
complete:
|
|
828
|
-
},
|
|
825
|
+
next: Se,
|
|
826
|
+
error: fr,
|
|
827
|
+
complete: Se
|
|
828
|
+
}, vr = function() {
|
|
829
829
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
830
830
|
}();
|
|
831
|
-
function
|
|
831
|
+
function br(n) {
|
|
832
832
|
return n;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
return n.length === 0 ?
|
|
834
|
+
function yr(n) {
|
|
835
|
+
return n.length === 0 ? br : n.length === 1 ? n[0] : function(e) {
|
|
836
836
|
return n.reduce(function(t, i) {
|
|
837
837
|
return i(t);
|
|
838
838
|
}, e);
|
|
@@ -846,8 +846,8 @@ var Te = function() {
|
|
|
846
846
|
var e = new n();
|
|
847
847
|
return e.source = this, e.operator = r, e;
|
|
848
848
|
}, n.prototype.subscribe = function(r, e, t) {
|
|
849
|
-
var i = this, o =
|
|
850
|
-
return
|
|
849
|
+
var i = this, o = kr(r) ? r : new ie(r, e, t);
|
|
850
|
+
return N(function() {
|
|
851
851
|
var a = i, l = a.operator, u = a.source;
|
|
852
852
|
o.add(l ? l.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
853
853
|
}), o;
|
|
@@ -860,7 +860,7 @@ var Te = function() {
|
|
|
860
860
|
}, n.prototype.forEach = function(r, e) {
|
|
861
861
|
var t = this;
|
|
862
862
|
return e = ze(e), new e(function(i, o) {
|
|
863
|
-
var a = new
|
|
863
|
+
var a = new ie({
|
|
864
864
|
next: function(l) {
|
|
865
865
|
try {
|
|
866
866
|
r(l);
|
|
@@ -876,12 +876,12 @@ var Te = function() {
|
|
|
876
876
|
}, n.prototype._subscribe = function(r) {
|
|
877
877
|
var e;
|
|
878
878
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(r);
|
|
879
|
-
}, n.prototype[
|
|
879
|
+
}, n.prototype[vr] = function() {
|
|
880
880
|
return this;
|
|
881
881
|
}, n.prototype.pipe = function() {
|
|
882
882
|
for (var r = [], e = 0; e < arguments.length; e++)
|
|
883
883
|
r[e] = arguments[e];
|
|
884
|
-
return
|
|
884
|
+
return yr(r)(this);
|
|
885
885
|
}, n.prototype.toPromise = function(r) {
|
|
886
886
|
var e = this;
|
|
887
887
|
return r = ze(r), new r(function(t, i) {
|
|
@@ -900,20 +900,20 @@ var Te = function() {
|
|
|
900
900
|
}();
|
|
901
901
|
function ze(n) {
|
|
902
902
|
var r;
|
|
903
|
-
return (r = n != null ? n :
|
|
903
|
+
return (r = n != null ? n : cr.Promise) !== null && r !== void 0 ? r : Promise;
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function wr(n) {
|
|
906
906
|
return n && z(n.next) && z(n.error) && z(n.complete);
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
return n && n instanceof qe ||
|
|
908
|
+
function kr(n) {
|
|
909
|
+
return n && n instanceof qe || wr(n) && Ae(n);
|
|
910
910
|
}
|
|
911
911
|
var Sr = Pe(function(n) {
|
|
912
912
|
return function() {
|
|
913
913
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
914
914
|
};
|
|
915
915
|
}), Re = function(n) {
|
|
916
|
-
|
|
916
|
+
C(r, n);
|
|
917
917
|
function r() {
|
|
918
918
|
var e = n.call(this) || this;
|
|
919
919
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -926,12 +926,12 @@ var Sr = Pe(function(n) {
|
|
|
926
926
|
throw new Sr();
|
|
927
927
|
}, r.prototype.next = function(e) {
|
|
928
928
|
var t = this;
|
|
929
|
-
|
|
929
|
+
N(function() {
|
|
930
930
|
var i, o;
|
|
931
931
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
932
932
|
t.currentObservers || (t.currentObservers = Array.from(t.observers));
|
|
933
933
|
try {
|
|
934
|
-
for (var a =
|
|
934
|
+
for (var a = ee(t.currentObservers), l = a.next(); !l.done; l = a.next()) {
|
|
935
935
|
var u = l.value;
|
|
936
936
|
u.next(e);
|
|
937
937
|
}
|
|
@@ -948,7 +948,7 @@ var Sr = Pe(function(n) {
|
|
|
948
948
|
});
|
|
949
949
|
}, r.prototype.error = function(e) {
|
|
950
950
|
var t = this;
|
|
951
|
-
|
|
951
|
+
N(function() {
|
|
952
952
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
953
953
|
t.hasError = t.isStopped = !0, t.thrownError = e;
|
|
954
954
|
for (var i = t.observers; i.length; )
|
|
@@ -957,7 +957,7 @@ var Sr = Pe(function(n) {
|
|
|
957
957
|
});
|
|
958
958
|
}, r.prototype.complete = function() {
|
|
959
959
|
var e = this;
|
|
960
|
-
|
|
960
|
+
N(function() {
|
|
961
961
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
962
962
|
e.isStopped = !0;
|
|
963
963
|
for (var t = e.observers; t.length; )
|
|
@@ -979,8 +979,8 @@ var Sr = Pe(function(n) {
|
|
|
979
979
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
980
980
|
}, r.prototype._innerSubscribe = function(e) {
|
|
981
981
|
var t = this, i = this, o = i.hasError, a = i.isStopped, l = i.observers;
|
|
982
|
-
return o || a ? De : (this.currentObservers = null, l.push(e), new
|
|
983
|
-
t.currentObservers = null,
|
|
982
|
+
return o || a ? De : (this.currentObservers = null, l.push(e), new L(function() {
|
|
983
|
+
t.currentObservers = null, te(l, e);
|
|
984
984
|
}));
|
|
985
985
|
}, r.prototype._checkFinalizedStatuses = function(e) {
|
|
986
986
|
var t = this, i = t.hasError, o = t.thrownError, a = t.isStopped;
|
|
@@ -992,7 +992,7 @@ var Sr = Pe(function(n) {
|
|
|
992
992
|
return new xe(e, t);
|
|
993
993
|
}, r;
|
|
994
994
|
}(Te), xe = function(n) {
|
|
995
|
-
|
|
995
|
+
C(r, n);
|
|
996
996
|
function r(e, t) {
|
|
997
997
|
var i = n.call(this) || this;
|
|
998
998
|
return i.destination = e, i.source = t, i;
|
|
@@ -1015,8 +1015,8 @@ var Sr = Pe(function(n) {
|
|
|
1015
1015
|
return (We.delegate || Date).now();
|
|
1016
1016
|
},
|
|
1017
1017
|
delegate: void 0
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1018
|
+
}, Tr = function(n) {
|
|
1019
|
+
C(r, n);
|
|
1020
1020
|
function r(e, t, i) {
|
|
1021
1021
|
e === void 0 && (e = 1 / 0), t === void 0 && (t = 1 / 0), i === void 0 && (i = We);
|
|
1022
1022
|
var o = n.call(this) || this;
|
|
@@ -1039,17 +1039,17 @@ var Sr = Pe(function(n) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
}, r;
|
|
1041
1041
|
}(Re);
|
|
1042
|
-
const _e = [], je = {},
|
|
1042
|
+
const _e = [], je = {}, zr = (n, r = 0) => {
|
|
1043
1043
|
if (_e.indexOf(n) == -1) {
|
|
1044
|
-
const e = new
|
|
1044
|
+
const e = new Tr(r);
|
|
1045
1045
|
je[n] = e, _e.push(n);
|
|
1046
1046
|
}
|
|
1047
1047
|
return je[n];
|
|
1048
1048
|
};
|
|
1049
|
-
window.emWidgets = { topic:
|
|
1049
|
+
typeof window != "undefined" && (window.emWidgets = { topic: zr });
|
|
1050
1050
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
1051
|
-
var
|
|
1052
|
-
const
|
|
1051
|
+
var xr = G('<div class="loader-container svelte-1g2duiq"><div class="loader svelte-1g2duiq"><div class="loader-ring-outer svelte-1g2duiq"></div> <div class="loader-ring-inner svelte-1g2duiq"></div></div></div>'), _r = G('<div class="prize-hub-container svelte-1g2duiq"><h3 class="svelte-1g2duiq"> </h3> <p class="svelte-1g2duiq"> </p></div> <div class="mini-games-card-list svelte-1g2duiq"></div>', 1), jr = G('<div class="svelte-1g2duiq"><p class="svelte-1g2duiq"> </p></div>'), Pr = G('<div class="main-container svelte-1g2duiq"><!></div>');
|
|
1052
|
+
const Dr = {
|
|
1053
1053
|
hash: "svelte-1g2duiq",
|
|
1054
1054
|
code: `.svelte-1g2duiq,
|
|
1055
1055
|
.svelte-1g2duiq::before,
|
|
@@ -1131,10 +1131,10 @@ const Pr = {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
*/`
|
|
1133
1133
|
};
|
|
1134
|
-
function
|
|
1135
|
-
var
|
|
1136
|
-
Qe(r, !0),
|
|
1137
|
-
const e = () => er
|
|
1134
|
+
function Ar(n, r) {
|
|
1135
|
+
var ue, de;
|
|
1136
|
+
Qe(r, !0), rr(n, Dr);
|
|
1137
|
+
const e = () => ur(er, "$_", t), [t, i] = ir(), o = T(r, "endpoint", 7), a = T(r, "session", 7), l = T(r, "requiresOptin", 7, !1), u = T(r, "language", 7, "en"), h = T(r, "outerWheelAsset", 7, null), v = T(r, "wheelButtonAsset", 7, null), j = T(r, "backgroundVideoAsset", 7, null), x = T(r, "liteMode", 7, !1), k = T(r, "translationurl", 7), F = /iPhone|iPad|iPod/.test(navigator.userAgent), m = (ue = navigator.deviceMemory) != null ? ue : 1 / 0, Ce = (de = navigator.hardwareConcurrency) != null ? de : 1 / 0;
|
|
1138
1138
|
function Ee() {
|
|
1139
1139
|
try {
|
|
1140
1140
|
const c = document.createElement("canvas").getContext("webgl");
|
|
@@ -1147,10 +1147,10 @@ function Dr(n, r) {
|
|
|
1147
1147
|
return !1;
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
const Oe = !
|
|
1151
|
-
|
|
1152
|
-
const
|
|
1153
|
-
let s = new URL(
|
|
1150
|
+
const Oe = !F && (m <= 4 || Ce <= 4 || Ee()), oe = fe(() => x() || Oe);
|
|
1151
|
+
nr({ withLocale: "en", translations: {} });
|
|
1152
|
+
const Be = () => {
|
|
1153
|
+
let s = new URL(k());
|
|
1154
1154
|
fetch(s.href).then((c) => c.json()).then((c) => {
|
|
1155
1155
|
Object.keys(c).forEach((y) => {
|
|
1156
1156
|
me(y, c[y]);
|
|
@@ -1162,35 +1162,35 @@ function Dr(n, r) {
|
|
|
1162
1162
|
Object.keys(we).forEach((s) => {
|
|
1163
1163
|
me(s, we[s]);
|
|
1164
1164
|
}), ve(u());
|
|
1165
|
-
const
|
|
1165
|
+
const Me = () => {
|
|
1166
1166
|
ve(u());
|
|
1167
1167
|
};
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
}),
|
|
1171
|
-
|
|
1168
|
+
Ye(() => {
|
|
1169
|
+
k() && Be();
|
|
1170
|
+
}), Ke(() => {
|
|
1171
|
+
Me();
|
|
1172
1172
|
});
|
|
1173
|
-
let _ =
|
|
1174
|
-
const Ne = () =>
|
|
1173
|
+
let _ = q(!1), b = q(Ze([])), ae = q(!1), H = q(!1), D = q(null), se = q(!1);
|
|
1174
|
+
const Ne = () => Y(this, null, function* () {
|
|
1175
1175
|
p(_, !0);
|
|
1176
1176
|
const s = new URL(`${o()}/v1/wof/claimable`), c = new Headers();
|
|
1177
1177
|
a() && c.append("X-SessionId", a());
|
|
1178
1178
|
const y = { method: "GET", headers: c, cache: "no-store" };
|
|
1179
1179
|
s.searchParams.append("filter", "wheelOfFortune"), fetch(s, y).then((d) => d.json()).then((d) => {
|
|
1180
|
-
var P,
|
|
1180
|
+
var P, A, E, f;
|
|
1181
1181
|
if (d && ((P = d.errorMessage) == null ? void 0 : P.trim()) === "InvalidSessionId") {
|
|
1182
|
-
p(
|
|
1182
|
+
p(H, !0), p(_, !1);
|
|
1183
1183
|
return;
|
|
1184
1184
|
}
|
|
1185
|
-
if ((
|
|
1185
|
+
if ((E = (A = d == null ? void 0 : d.items) == null ? void 0 : A.program) != null && E.canClaim) {
|
|
1186
1186
|
p(b, (f = d == null ? void 0 : d.items) == null ? void 0 : f.program, !0), p(_, !1);
|
|
1187
1187
|
return;
|
|
1188
1188
|
}
|
|
1189
1189
|
p(b, d == null ? void 0 : d.items, !0);
|
|
1190
1190
|
}).catch((d) => {
|
|
1191
|
-
console.log(d), p(
|
|
1191
|
+
console.log(d), p(ae, !0);
|
|
1192
1192
|
}).finally(() => p(_, !1));
|
|
1193
|
-
}), Ge = () =>
|
|
1193
|
+
}), Ge = () => Y(this, null, function* () {
|
|
1194
1194
|
p(_, !0);
|
|
1195
1195
|
const s = new URL(`${o()}/v1/wof/lotteries`), c = new Headers();
|
|
1196
1196
|
a() && c.append("X-SessionId", a());
|
|
@@ -1198,95 +1198,95 @@ function Dr(n, r) {
|
|
|
1198
1198
|
s.searchParams.append("filter", "Types[]=wheelOfFortune"), fetch(s, y).then((d) => d.json()).then((d) => {
|
|
1199
1199
|
var P;
|
|
1200
1200
|
if (d && ((P = d.errorMessage) == null ? void 0 : P.trim()) === "InvalidSessionId") {
|
|
1201
|
-
p(
|
|
1201
|
+
p(H, !0), p(_, !1);
|
|
1202
1202
|
return;
|
|
1203
1203
|
}
|
|
1204
|
-
p(b, d == null ? void 0 : d.items.map((
|
|
1204
|
+
p(b, d == null ? void 0 : d.items.map((A) => $e(A, u())), !0), g(b).length === 1 && (p(D, g(b)[0], !0), p(se, !0)), g(b).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
|
|
1205
1205
|
}).catch((d) => {
|
|
1206
|
-
console.log(d), p(
|
|
1206
|
+
console.log(d), p(ae, !0);
|
|
1207
1207
|
}).finally(() => p(_, !1));
|
|
1208
|
-
}),
|
|
1208
|
+
}), le = (s) => {
|
|
1209
1209
|
if (s.data)
|
|
1210
1210
|
switch (s.data.type) {
|
|
1211
1211
|
case "PlayMiniGame":
|
|
1212
|
-
p(
|
|
1212
|
+
p(D, g(b).find((c) => c.id === s.data.programId), !0);
|
|
1213
1213
|
break;
|
|
1214
1214
|
case "CloseMiniGame":
|
|
1215
|
-
p(
|
|
1215
|
+
p(D, null);
|
|
1216
1216
|
break;
|
|
1217
1217
|
case "PrizeGameRemainingTimesUpdated":
|
|
1218
|
-
p(
|
|
1218
|
+
p(D, s.data.data, !0), p(b, g(b).map((c) => c.id === s.data.data.id ? s.data.data : c), !0);
|
|
1219
1219
|
break;
|
|
1220
1220
|
}
|
|
1221
1221
|
};
|
|
1222
|
-
|
|
1222
|
+
tr(() => (setTimeout(
|
|
1223
1223
|
() => {
|
|
1224
1224
|
window.postMessage({ type: "event_hub_accessed", isLoggedIn: !!a() }, window.location.href);
|
|
1225
1225
|
},
|
|
1226
1226
|
0
|
|
1227
|
-
), a() && (l() ? Ne() : Ge()), window.addEventListener("message",
|
|
1228
|
-
window.removeEventListener("message",
|
|
1227
|
+
), a() && (l() ? Ne() : Ge()), window.addEventListener("message", le), () => {
|
|
1228
|
+
window.removeEventListener("message", le);
|
|
1229
1229
|
}));
|
|
1230
1230
|
var Le = {
|
|
1231
1231
|
get endpoint() {
|
|
1232
1232
|
return o();
|
|
1233
1233
|
},
|
|
1234
1234
|
set endpoint(s) {
|
|
1235
|
-
o(s),
|
|
1235
|
+
o(s), S();
|
|
1236
1236
|
},
|
|
1237
1237
|
get session() {
|
|
1238
1238
|
return a();
|
|
1239
1239
|
},
|
|
1240
1240
|
set session(s) {
|
|
1241
|
-
a(s),
|
|
1241
|
+
a(s), S();
|
|
1242
1242
|
},
|
|
1243
1243
|
get requiresOptin() {
|
|
1244
1244
|
return l();
|
|
1245
1245
|
},
|
|
1246
1246
|
set requiresOptin(s = !1) {
|
|
1247
|
-
l(s),
|
|
1247
|
+
l(s), S();
|
|
1248
1248
|
},
|
|
1249
1249
|
get language() {
|
|
1250
1250
|
return u();
|
|
1251
1251
|
},
|
|
1252
1252
|
set language(s = "en") {
|
|
1253
|
-
u(s),
|
|
1253
|
+
u(s), S();
|
|
1254
1254
|
},
|
|
1255
1255
|
get outerWheelAsset() {
|
|
1256
1256
|
return h();
|
|
1257
1257
|
},
|
|
1258
1258
|
set outerWheelAsset(s = null) {
|
|
1259
|
-
h(s),
|
|
1259
|
+
h(s), S();
|
|
1260
1260
|
},
|
|
1261
1261
|
get wheelButtonAsset() {
|
|
1262
1262
|
return v();
|
|
1263
1263
|
},
|
|
1264
1264
|
set wheelButtonAsset(s = null) {
|
|
1265
|
-
v(s),
|
|
1265
|
+
v(s), S();
|
|
1266
1266
|
},
|
|
1267
1267
|
get backgroundVideoAsset() {
|
|
1268
1268
|
return j();
|
|
1269
1269
|
},
|
|
1270
1270
|
set backgroundVideoAsset(s = null) {
|
|
1271
|
-
j(s),
|
|
1271
|
+
j(s), S();
|
|
1272
1272
|
},
|
|
1273
1273
|
get liteMode() {
|
|
1274
1274
|
return x();
|
|
1275
1275
|
},
|
|
1276
1276
|
set liteMode(s = !1) {
|
|
1277
|
-
x(s),
|
|
1277
|
+
x(s), S();
|
|
1278
1278
|
},
|
|
1279
1279
|
get translationurl() {
|
|
1280
|
-
return
|
|
1280
|
+
return k();
|
|
1281
1281
|
},
|
|
1282
1282
|
set translationurl(s) {
|
|
1283
|
-
|
|
1283
|
+
k(s), S();
|
|
1284
1284
|
}
|
|
1285
|
-
},
|
|
1285
|
+
}, I = Pr(), Fe = K(I);
|
|
1286
1286
|
{
|
|
1287
1287
|
var He = (s) => {
|
|
1288
|
-
var c =
|
|
1289
|
-
|
|
1288
|
+
var c = xr();
|
|
1289
|
+
W(s, c);
|
|
1290
1290
|
}, Ie = (s) => {
|
|
1291
1291
|
var c = ar(), y = pe(c);
|
|
1292
1292
|
{
|
|
@@ -1305,15 +1305,15 @@ function Dr(n, r) {
|
|
|
1305
1305
|
return u();
|
|
1306
1306
|
},
|
|
1307
1307
|
get liteMode() {
|
|
1308
|
-
return g(
|
|
1308
|
+
return g(oe);
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
1311
1311
|
}, P = (f) => {
|
|
1312
1312
|
{
|
|
1313
|
-
let w = fe(() => !g(
|
|
1313
|
+
let w = fe(() => !g(se));
|
|
1314
1314
|
ye(f, {
|
|
1315
1315
|
get program() {
|
|
1316
|
-
return g(
|
|
1316
|
+
return g(D);
|
|
1317
1317
|
},
|
|
1318
1318
|
get endpoint() {
|
|
1319
1319
|
return o();
|
|
@@ -1337,49 +1337,47 @@ function Dr(n, r) {
|
|
|
1337
1337
|
return g(w);
|
|
1338
1338
|
},
|
|
1339
1339
|
get liteMode() {
|
|
1340
|
-
return g(
|
|
1340
|
+
return g(oe);
|
|
1341
1341
|
}
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
|
-
},
|
|
1345
|
-
var w =
|
|
1346
|
-
|
|
1347
|
-
var de = he(E, 2), Ue = C(de, !0);
|
|
1348
|
-
D(de), D(R);
|
|
1344
|
+
}, A = (f) => {
|
|
1345
|
+
var w = _r(), R = pe(w), O = K(R), V = Z(O, !0), Ue = he(O, 2), Je = Z(Ue, !0);
|
|
1346
|
+
B(R);
|
|
1349
1347
|
var ce = he(R, 2);
|
|
1350
|
-
sr(ce, 21, () => g(b), lr, (
|
|
1351
|
-
|
|
1348
|
+
sr(ce, 21, () => g(b), lr, (U, J) => {
|
|
1349
|
+
dr(U, {
|
|
1352
1350
|
get program() {
|
|
1353
|
-
return g(
|
|
1351
|
+
return g(J);
|
|
1354
1352
|
}
|
|
1355
1353
|
});
|
|
1356
|
-
}),
|
|
1357
|
-
(
|
|
1358
|
-
|
|
1354
|
+
}), B(ce), ge(
|
|
1355
|
+
(U, J) => {
|
|
1356
|
+
X(V, U), X(Je, J);
|
|
1359
1357
|
},
|
|
1360
1358
|
[() => e()("hubTitle"), () => e()("hubSubtitle")]
|
|
1361
|
-
),
|
|
1362
|
-
},
|
|
1363
|
-
var w =
|
|
1364
|
-
|
|
1359
|
+
), W(f, w);
|
|
1360
|
+
}, E = (f) => {
|
|
1361
|
+
var w = jr(), R = K(w), O = Z(R, !0);
|
|
1362
|
+
B(w), ge((V) => X(O, V), [() => e()("noContent")]), W(f, w);
|
|
1365
1363
|
};
|
|
1366
1364
|
be(y, (f) => {
|
|
1367
1365
|
var w;
|
|
1368
|
-
!a() || g(
|
|
1366
|
+
!a() || g(H) ? f(d) : g(D) ? f(P, 1) : ((w = g(b)) == null ? void 0 : w.length) > 1 ? f(A, 2) : f(E, -1);
|
|
1369
1367
|
});
|
|
1370
1368
|
}
|
|
1371
|
-
|
|
1369
|
+
W(s, c);
|
|
1372
1370
|
};
|
|
1373
1371
|
be(Fe, (s) => {
|
|
1374
1372
|
g(_) ? s(He) : s(Ie, -1);
|
|
1375
1373
|
});
|
|
1376
1374
|
}
|
|
1377
|
-
|
|
1378
|
-
var Ve =
|
|
1375
|
+
B(I), W(n, I);
|
|
1376
|
+
var Ve = Xe(Le);
|
|
1379
1377
|
return i(), Ve;
|
|
1380
1378
|
}
|
|
1381
1379
|
customElements.define("mini-games-hub", or(
|
|
1382
|
-
|
|
1380
|
+
Ar,
|
|
1383
1381
|
{
|
|
1384
1382
|
endpoint: { attribute: "endpoint", type: "String" },
|
|
1385
1383
|
session: { attribute: "session", type: "String" },
|
|
@@ -1395,5 +1393,5 @@ customElements.define("mini-games-hub", or(
|
|
|
1395
1393
|
[]
|
|
1396
1394
|
));
|
|
1397
1395
|
export {
|
|
1398
|
-
|
|
1396
|
+
Ar as default
|
|
1399
1397
|
};
|