@jolibox/ads 1.4.18 → 1.4.19
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/afg/ads-interface.d.ts +2 -0
- package/dist/components/googlegpt/interstitial.d.ts +4 -4
- package/dist/components/googlegpt/reward.d.ts +4 -4
- package/dist/components/googlegpt/type.d.ts +4 -0
- package/dist/components/native/interstitial.d.ts +4 -4
- package/dist/components/native/reward.d.ts +4 -4
- package/dist/components/native/type.d.ts +4 -0
- package/dist/index.js +522 -446
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var fr = Object.defineProperty, vr = Object.defineProperties;
|
|
2
2
|
var gr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var Xe = Object.getOwnPropertySymbols;
|
|
4
4
|
var Xt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Yt = (t, e, i) => e in t ? fr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i,
|
|
5
|
+
var Yt = (t, e, i) => e in t ? fr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, me = (t, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
7
|
Xt.call(e, i) && Yt(t, i, e[i]);
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
8
|
+
if (Xe)
|
|
9
|
+
for (var i of Xe(e))
|
|
10
10
|
Qt.call(e, i) && Yt(t, i, e[i]);
|
|
11
11
|
return t;
|
|
12
12
|
}, Zt = (t, e) => vr(t, gr(e));
|
|
@@ -14,27 +14,27 @@ var ei = (t, e) => {
|
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var r in t)
|
|
16
16
|
Xt.call(t, r) && e.indexOf(r) < 0 && (i[r] = t[r]);
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var r of
|
|
17
|
+
if (t != null && Xe)
|
|
18
|
+
for (var r of Xe(t))
|
|
19
19
|
e.indexOf(r) < 0 && Qt.call(t, r) && (i[r] = t[r]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
|
-
import { options as
|
|
23
|
-
import { useRef as Ti, useLayoutEffect as
|
|
24
|
-
import { registerCanIUseContext as pr, invokeNative as
|
|
25
|
-
var Di = Object.defineProperty, mr = Object.defineProperties,
|
|
22
|
+
import { options as Ne, Component as yr, isValidElement as Ar } from "preact";
|
|
23
|
+
import { useRef as Ti, useLayoutEffect as br, useEffect as Pe, useMemo as wr, useState as xe, useCallback as Tt, render as be, createRef as ti } from "preact/compat";
|
|
24
|
+
import { registerCanIUseContext as pr, invokeNative as wt, offNative as _r, onNative as Sr } from "@jolibox/native-bridge";
|
|
25
|
+
var Di = Object.defineProperty, mr = Object.defineProperties, kr = Object.getOwnPropertyDescriptors, ii = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, ri = (t, e, i) => e in t ? Di(t, e, {
|
|
26
26
|
enumerable: !0,
|
|
27
27
|
configurable: !0,
|
|
28
28
|
writable: !0,
|
|
29
29
|
value: i
|
|
30
30
|
}) : t[e] = i, Ir = (t, e) => {
|
|
31
31
|
for (var i in e || (e = {}))
|
|
32
|
-
|
|
32
|
+
xr.call(e, i) && ri(t, i, e[i]);
|
|
33
33
|
if (ii)
|
|
34
34
|
for (var i of ii(e))
|
|
35
|
-
|
|
35
|
+
Er.call(e, i) && ri(t, i, e[i]);
|
|
36
36
|
return t;
|
|
37
|
-
}, Rr = (t, e) => mr(t,
|
|
37
|
+
}, Rr = (t, e) => mr(t, kr(e)), Tr = (t, e) => {
|
|
38
38
|
for (var i in e)
|
|
39
39
|
Di(t, i, {
|
|
40
40
|
get: e[i],
|
|
@@ -117,18 +117,18 @@ function Oi(t) {
|
|
|
117
117
|
return r.prototype = e.prototype, r;
|
|
118
118
|
}
|
|
119
119
|
var Br = ((t) => (t[t.DEVELOPER_FILE_NOT_FOUND = 0] = "DEVELOPER_FILE_NOT_FOUND", t[t.INTERNAL_IOS_CAN_NOT_FOUND_PKG = 1] = "INTERNAL_IOS_CAN_NOT_FOUND_PKG", t[t.USER_IOS_LOAD_TIMEOUT = 2] = "USER_IOS_LOAD_TIMEOUT", t[t.INTERNAL_IOS_PKG_LOAD_ERROR = 3] = "INTERNAL_IOS_PKG_LOAD_ERROR", t[t.INTERNAL_IOS_PKG_PARSE_FAIL = 4] = "INTERNAL_IOS_PKG_PARSE_FAIL", t[t.USER_IOS_GET_EMPTY_DATA = 5] = "USER_IOS_GET_EMPTY_DATA", t[t.USER_ANDROID_GET_PKG_FAIL = 6] = "USER_ANDROID_GET_PKG_FAIL", t[t.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE = 7] = "DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE", t))(Br || {});
|
|
120
|
-
function
|
|
120
|
+
function $e(t) {
|
|
121
121
|
return function() {
|
|
122
122
|
var e, i;
|
|
123
123
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
var Mr = {
|
|
127
|
-
log:
|
|
128
|
-
warn:
|
|
129
|
-
info:
|
|
130
|
-
error:
|
|
131
|
-
debug:
|
|
127
|
+
log: $e("log"),
|
|
128
|
+
warn: $e("warn"),
|
|
129
|
+
info: $e("info"),
|
|
130
|
+
error: $e("error"),
|
|
131
|
+
debug: $e("debug")
|
|
132
132
|
};
|
|
133
133
|
Object.assign(globalThis, {
|
|
134
134
|
logger: Mr
|
|
@@ -138,7 +138,7 @@ globalThis[ni] || (globalThis[ni] = Fr);
|
|
|
138
138
|
var oi = Symbol.for("Jolibox.canIUseMap.native"), $r = {};
|
|
139
139
|
globalThis[oi] || (globalThis[oi] = $r);
|
|
140
140
|
var Ni = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Ni || {}), Pi = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Pi || {}), Li = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(Li || {}), si = ["name", "params"], Ur = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Kr = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
141
|
-
function
|
|
141
|
+
function it(t, e) {
|
|
142
142
|
return e.map((i) => {
|
|
143
143
|
if (i === "params" && t[i]) {
|
|
144
144
|
let r = t[i];
|
|
@@ -148,14 +148,14 @@ function tt(t, e) {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
function jr(t) {
|
|
151
|
-
let e = t.location ?
|
|
152
|
-
return
|
|
151
|
+
let e = t.location ? it(t.location, si) : null, i = t.target ? it(t.target, si) : null;
|
|
152
|
+
return it(Rr(Ir({}, t), {
|
|
153
153
|
location: e,
|
|
154
154
|
target: i
|
|
155
155
|
}), Ur);
|
|
156
156
|
}
|
|
157
157
|
function qr(t) {
|
|
158
|
-
let e = t.events.map((r) => jr(r)), i =
|
|
158
|
+
let e = t.events.map((r) => jr(r)), i = it(t.device, Kr);
|
|
159
159
|
return [t.protocolVersion, e, i, t.project];
|
|
160
160
|
}
|
|
161
161
|
function Vr() {
|
|
@@ -192,8 +192,8 @@ function Vr() {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
Vr();
|
|
195
|
-
var
|
|
196
|
-
!
|
|
195
|
+
var De = typeof window == "undefined", ct = () => !De && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
|
|
196
|
+
!De && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !De && navigator.userAgent.includes("Android"), !De && navigator.userAgent.includes("Mac"), !De && navigator.userAgent.includes("FB_IAB"), !De && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
197
197
|
var Dt = class Ct {
|
|
198
198
|
constructor(e) {
|
|
199
199
|
this.element = e, this.next = Ct.Undefined, this.prev = Ct.Undefined;
|
|
@@ -266,17 +266,17 @@ var N = Dt, Jr = class {
|
|
|
266
266
|
for (; t !== N.Undefined; )
|
|
267
267
|
yield t.element, t = t.next;
|
|
268
268
|
}
|
|
269
|
-
}, Gr = 0,
|
|
269
|
+
}, Gr = 0, Ue = class {
|
|
270
270
|
constructor(e) {
|
|
271
271
|
this.value = e, this.id = Gr++;
|
|
272
272
|
}
|
|
273
|
-
},
|
|
273
|
+
}, Je = class {
|
|
274
274
|
constructor(e) {
|
|
275
275
|
this.options = e, this._size = 0;
|
|
276
276
|
}
|
|
277
277
|
dispose(e) {
|
|
278
278
|
var i, r;
|
|
279
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
279
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Ue && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((n) => (n == null ? void 0 : n.value) === e)) : (this._listeners = void 0, this._size = 0)), (r = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || r.call(i));
|
|
280
280
|
}
|
|
281
281
|
get event() {
|
|
282
282
|
return this._event != null || (this._event = (e, i) => {
|
|
@@ -286,11 +286,11 @@ var N = Dt, Jr = class {
|
|
|
286
286
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
287
287
|
};
|
|
288
288
|
i && (e = e.bind(i));
|
|
289
|
-
let l = new
|
|
290
|
-
return this._listeners ? this._listeners instanceof
|
|
289
|
+
let l = new Ue(e);
|
|
290
|
+
return this._listeners ? this._listeners instanceof Ue ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((n = (r = this.options) == null ? void 0 : r.onWillAddFirstListener) == null || n.call(r, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
|
|
291
291
|
var c, u, h, v;
|
|
292
292
|
if (!this._disposed) {
|
|
293
|
-
if (this._listeners instanceof
|
|
293
|
+
if (this._listeners instanceof Ue)
|
|
294
294
|
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (u = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || u.call(c));
|
|
295
295
|
else if (this._listeners) {
|
|
296
296
|
let g = this._listeners.indexOf(l);
|
|
@@ -316,7 +316,7 @@ var N = Dt, Jr = class {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
fire(e) {
|
|
319
|
-
this._listeners && (this._listeners instanceof
|
|
319
|
+
this._listeners && (this._listeners instanceof Ue ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
320
320
|
}
|
|
321
321
|
hasListeners() {
|
|
322
322
|
return this._size > 0;
|
|
@@ -328,7 +328,7 @@ var N = Dt, Jr = class {
|
|
|
328
328
|
on(t, e) {
|
|
329
329
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
330
330
|
var r;
|
|
331
|
-
let n = (r = this.listeners.get(t)) != null ? r : new
|
|
331
|
+
let n = (r = this.listeners.get(t)) != null ? r : new Je(), o = (d) => e(...d.args), s = n.event(o);
|
|
332
332
|
this.listerHandlerMap.set(e, {
|
|
333
333
|
handler: o,
|
|
334
334
|
dispose: s
|
|
@@ -391,7 +391,7 @@ function Yr(t, e) {
|
|
|
391
391
|
onWillAddFirstListener() {
|
|
392
392
|
i(n.fire, n);
|
|
393
393
|
}
|
|
394
|
-
}, n = new
|
|
394
|
+
}, n = new Je(r);
|
|
395
395
|
return n.event;
|
|
396
396
|
})(function(i) {
|
|
397
397
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
@@ -430,7 +430,7 @@ function Zr(t, e) {
|
|
|
430
430
|
}
|
|
431
431
|
var Nt = class {
|
|
432
432
|
constructor() {
|
|
433
|
-
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new
|
|
433
|
+
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Je(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
434
434
|
}
|
|
435
435
|
registerCommand(t) {
|
|
436
436
|
if (!t)
|
|
@@ -466,7 +466,7 @@ var Nt = class {
|
|
|
466
466
|
Nt = Ci([Oi], Nt);
|
|
467
467
|
var ai = class {
|
|
468
468
|
constructor() {
|
|
469
|
-
this._onWillExecuteCommand = new
|
|
469
|
+
this._onWillExecuteCommand = new Je(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Je(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new Nt(), this._starActivation = null;
|
|
470
470
|
}
|
|
471
471
|
_activateStar() {
|
|
472
472
|
return this._starActivation || (this._starActivation = Cr(3e4)), this._starActivation;
|
|
@@ -562,9 +562,9 @@ class rn {
|
|
|
562
562
|
r = !1;
|
|
563
563
|
}), r = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
564
564
|
userEvent: r
|
|
565
|
-
}, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",
|
|
565
|
+
}, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", me({
|
|
566
566
|
userEvent: r
|
|
567
|
-
}, this.paramsToTrack)),
|
|
567
|
+
}, this.paramsToTrack)), ct() && this.context.track("mmp_ad_impression", {
|
|
568
568
|
ad_network: (s = (o = this.currentProvider) == null ? void 0 : o.name) != null ? s : "",
|
|
569
569
|
ad_format: "rewarded",
|
|
570
570
|
module: "game",
|
|
@@ -597,7 +597,7 @@ class rn {
|
|
|
597
597
|
if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD", this.paramsToTrack), !this.isBeforeAdCalled) {
|
|
598
598
|
this.isBeforeAdCalled = !0;
|
|
599
599
|
const s = Ee(e);
|
|
600
|
-
s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((r = this.adIsShowingCallback) == null || r.call(this, !0),
|
|
600
|
+
s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((r = this.adIsShowingCallback) == null || r.call(this, !0), ct() && this.context.track("mmp_ad_impression", {
|
|
601
601
|
ad_network: (o = (n = this.currentProvider) == null ? void 0 : n.name) != null ? o : "",
|
|
602
602
|
ad_format: "interstitial",
|
|
603
603
|
module: "game",
|
|
@@ -646,13 +646,17 @@ class rn {
|
|
|
646
646
|
breakType: i.breakType,
|
|
647
647
|
breakName: (o = i.breakName) != null ? o : "",
|
|
648
648
|
breakFormat: i.breakFormat,
|
|
649
|
-
breakStatus: i.breakStatus
|
|
649
|
+
breakStatus: i.breakStatus,
|
|
650
|
+
breakReason: i.breakReason,
|
|
651
|
+
breakStage: i.breakStage
|
|
650
652
|
}), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE", {
|
|
651
653
|
provider: (a = (s = this.currentProvider) == null ? void 0 : s.name) != null ? a : null,
|
|
652
654
|
breakType: i.breakType,
|
|
653
655
|
breakName: (d = i.breakName) != null ? d : "",
|
|
654
656
|
breakFormat: i.breakFormat,
|
|
655
|
-
breakStatus: i.breakStatus
|
|
657
|
+
breakStatus: i.breakStatus,
|
|
658
|
+
breakReason: i.breakReason,
|
|
659
|
+
breakStage: i.breakStage
|
|
656
660
|
}), i.breakStatus) {
|
|
657
661
|
case "viewed":
|
|
658
662
|
case "ignored":
|
|
@@ -723,13 +727,14 @@ class rn {
|
|
|
723
727
|
breakType: i.type,
|
|
724
728
|
breakName: i.type === "preroll" ? "" : (u = i.name) != null ? u : "",
|
|
725
729
|
breakFormat: i.type === "reward" ? "reward" : "interstitial",
|
|
726
|
-
breakStatus: "timeout"
|
|
730
|
+
breakStatus: "timeout",
|
|
731
|
+
breakStage: "provider_request"
|
|
727
732
|
}]), (v = this.adIsShowingCallback) == null || v.call(this, !1));
|
|
728
733
|
}, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK", this.paramsToTrack), e.adBreak(s, r), window.JoliTesterBridge && console.log("joli-fullscreen-ad-show");
|
|
729
734
|
});
|
|
730
735
|
}
|
|
731
736
|
}
|
|
732
|
-
function
|
|
737
|
+
function Qe(t, e, i) {
|
|
733
738
|
return (e = nn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
734
739
|
}
|
|
735
740
|
function nn(t) {
|
|
@@ -750,11 +755,11 @@ function on(t, e) {
|
|
|
750
755
|
}
|
|
751
756
|
class sn {
|
|
752
757
|
constructor(e) {
|
|
753
|
-
|
|
758
|
+
Qe(this, "context", void 0), Qe(this, "adBreakIsShowing", !1), Qe(this, "reportPageJumpOut", () => {
|
|
754
759
|
this.context.track("AdBreakJumpOut", {
|
|
755
760
|
context: "AdsActionDetection"
|
|
756
761
|
});
|
|
757
|
-
}),
|
|
762
|
+
}), Qe(this, "reportPageHide", () => {
|
|
758
763
|
this.context.track("AdBreakHide", {
|
|
759
764
|
context: "AdsActionDetection"
|
|
760
765
|
});
|
|
@@ -765,7 +770,7 @@ class sn {
|
|
|
765
770
|
});
|
|
766
771
|
}
|
|
767
772
|
}
|
|
768
|
-
function
|
|
773
|
+
function Ze(t, e, i) {
|
|
769
774
|
return (e = an(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
770
775
|
}
|
|
771
776
|
function an(t) {
|
|
@@ -786,7 +791,7 @@ function dn(t, e) {
|
|
|
786
791
|
}
|
|
787
792
|
class ln {
|
|
788
793
|
constructor(e) {
|
|
789
|
-
|
|
794
|
+
Ze(this, "configs", null), Ze(this, "firstRun", !0), Ze(this, "context", void 0), Ze(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
790
795
|
}
|
|
791
796
|
async init() {
|
|
792
797
|
try {
|
|
@@ -851,10 +856,10 @@ class hn {
|
|
|
851
856
|
}
|
|
852
857
|
this.push(r);
|
|
853
858
|
}), ue(this, "adUnit", async (r) => {
|
|
854
|
-
var g, y,
|
|
859
|
+
var g, y, b, A;
|
|
855
860
|
if (this.context.track("CallAdUnit", {
|
|
856
861
|
adFormat: (y = (g = r.adFormat) == null ? void 0 : g.toString()) != null ? y : null,
|
|
857
|
-
fullWidthResponsive: (
|
|
862
|
+
fullWidthResponsive: (b = r.fullWidthResponsive) != null ? b : null
|
|
858
863
|
}), document.querySelector("#jolibox-ads")) {
|
|
859
864
|
console.warn("Ad unit already set, skipping");
|
|
860
865
|
return;
|
|
@@ -876,15 +881,15 @@ class hn {
|
|
|
876
881
|
throw new Error("slot is required");
|
|
877
882
|
const u = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, h = document.createElement("ins");
|
|
878
883
|
if (h.className = "adsbygoogle", h.id = "jolibox-ads", h.style.display = "block", h.setAttribute("data-ad-client", this.initParams.clientId), h.setAttribute("data-ad-slot", c), u && h.setAttribute("data-ad-format", u), a && h.setAttribute("data-full-width-responsive", a), d && h.setAttribute("style", d), (A = this.contextInfo.testAdsMode) != null ? A : !1) {
|
|
879
|
-
const
|
|
880
|
-
|
|
884
|
+
const w = document.createElement("div");
|
|
885
|
+
w.style.position = "absolute", w.style.top = "0", w.style.left = "0", w.style.width = "100%", w.style.height = "100%", w.style.display = "flex", w.style.justifyContent = "center", w.style.alignItems = "center", w.style.backgroundColor = "rgba(0, 0, 0, 0.5)", w.style.color = "white", w.innerHTML = "Test Ad", h.style.position = "relative", l.appendChild(h), h.appendChild(w);
|
|
881
886
|
} else
|
|
882
887
|
l.appendChild(h), new MutationObserver((m) => {
|
|
883
|
-
m.forEach((
|
|
884
|
-
if (
|
|
885
|
-
const
|
|
888
|
+
m.forEach((x) => {
|
|
889
|
+
if (x.type === "attributes" && x.attributeName === "data-ad-status") {
|
|
890
|
+
const k = h.getAttribute("data-ad-status");
|
|
886
891
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
887
|
-
status:
|
|
892
|
+
status: k != null ? k : "null"
|
|
888
893
|
});
|
|
889
894
|
}
|
|
890
895
|
});
|
|
@@ -947,7 +952,7 @@ var gn = /* @__PURE__ */ function() {
|
|
|
947
952
|
return (n = r.parentNode) == null ? void 0 : n.removeChild(r);
|
|
948
953
|
}), this.tags = [], this.ctr = 0;
|
|
949
954
|
}, t;
|
|
950
|
-
}(), J = "-ms-",
|
|
955
|
+
}(), J = "-ms-", ut = "-moz-", I = "-webkit-", Mi = "comm", Kt = "rule", jt = "decl", yn = "@import", Fi = "@keyframes", An = "@layer", bn = Math.abs, gt = String.fromCharCode, wn = Object.assign;
|
|
951
956
|
function pn(t, e) {
|
|
952
957
|
return K(t, 0) ^ 45 ? (((e << 2 ^ K(t, 0)) << 2 ^ K(t, 1)) << 2 ^ K(t, 2)) << 2 ^ K(t, 3) : 0;
|
|
953
958
|
}
|
|
@@ -966,7 +971,7 @@ function Pt(t, e) {
|
|
|
966
971
|
function K(t, e) {
|
|
967
972
|
return t.charCodeAt(e) | 0;
|
|
968
973
|
}
|
|
969
|
-
function
|
|
974
|
+
function Ge(t, e, i) {
|
|
970
975
|
return t.slice(e, i);
|
|
971
976
|
}
|
|
972
977
|
function le(t) {
|
|
@@ -975,38 +980,38 @@ function le(t) {
|
|
|
975
980
|
function qt(t) {
|
|
976
981
|
return t.length;
|
|
977
982
|
}
|
|
978
|
-
function
|
|
983
|
+
function et(t, e) {
|
|
979
984
|
return e.push(t), t;
|
|
980
985
|
}
|
|
981
986
|
function Sn(t, e) {
|
|
982
987
|
return t.map(e).join("");
|
|
983
988
|
}
|
|
984
|
-
var
|
|
985
|
-
function
|
|
986
|
-
return { value: t, root: e, parent: i, type: r, props: n, children: o, line:
|
|
989
|
+
var yt = 1, Le = 1, Ui = 0, X = 0, M = 0, Be = "";
|
|
990
|
+
function At(t, e, i, r, n, o, s) {
|
|
991
|
+
return { value: t, root: e, parent: i, type: r, props: n, children: o, line: yt, column: Le, length: s, return: "" };
|
|
987
992
|
}
|
|
988
|
-
function
|
|
989
|
-
return
|
|
993
|
+
function Ke(t, e) {
|
|
994
|
+
return wn(At("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
990
995
|
}
|
|
991
996
|
function mn() {
|
|
992
997
|
return M;
|
|
993
998
|
}
|
|
994
|
-
function
|
|
995
|
-
return M = X > 0 ? K(
|
|
999
|
+
function kn() {
|
|
1000
|
+
return M = X > 0 ? K(Be, --X) : 0, Le--, M === 10 && (Le = 1, yt--), M;
|
|
996
1001
|
}
|
|
997
1002
|
function Z() {
|
|
998
|
-
return M = X < Ui ? K(
|
|
1003
|
+
return M = X < Ui ? K(Be, X++) : 0, Le++, M === 10 && (Le = 1, yt++), M;
|
|
999
1004
|
}
|
|
1000
1005
|
function ce() {
|
|
1001
|
-
return K(
|
|
1006
|
+
return K(Be, X);
|
|
1002
1007
|
}
|
|
1003
|
-
function
|
|
1008
|
+
function rt() {
|
|
1004
1009
|
return X;
|
|
1005
1010
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1011
|
+
function He(t, e) {
|
|
1012
|
+
return Ge(Be, t, e);
|
|
1008
1013
|
}
|
|
1009
|
-
function
|
|
1014
|
+
function ze(t) {
|
|
1010
1015
|
switch (t) {
|
|
1011
1016
|
case 0:
|
|
1012
1017
|
case 9:
|
|
@@ -1039,23 +1044,23 @@ function Ge(t) {
|
|
|
1039
1044
|
return 0;
|
|
1040
1045
|
}
|
|
1041
1046
|
function Ki(t) {
|
|
1042
|
-
return
|
|
1047
|
+
return yt = Le = 1, Ui = le(Be = t), X = 0, [];
|
|
1043
1048
|
}
|
|
1044
1049
|
function ji(t) {
|
|
1045
|
-
return
|
|
1050
|
+
return Be = "", t;
|
|
1046
1051
|
}
|
|
1047
|
-
function
|
|
1048
|
-
return $i(
|
|
1052
|
+
function nt(t) {
|
|
1053
|
+
return $i(He(X - 1, Lt(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1049
1054
|
}
|
|
1050
|
-
function
|
|
1055
|
+
function xn(t) {
|
|
1051
1056
|
for (; (M = ce()) && M < 33; )
|
|
1052
1057
|
Z();
|
|
1053
|
-
return
|
|
1058
|
+
return ze(t) > 2 || ze(M) > 3 ? "" : " ";
|
|
1054
1059
|
}
|
|
1055
|
-
function
|
|
1060
|
+
function En(t, e) {
|
|
1056
1061
|
for (; --e && Z() && !(M < 48 || M > 102 || M > 57 && M < 65 || M > 70 && M < 97); )
|
|
1057
1062
|
;
|
|
1058
|
-
return
|
|
1063
|
+
return He(t, rt() + (e < 6 && ce() == 32 && Z() == 32));
|
|
1059
1064
|
}
|
|
1060
1065
|
function Lt(t) {
|
|
1061
1066
|
for (; Z(); )
|
|
@@ -1079,43 +1084,43 @@ function In(t, e) {
|
|
|
1079
1084
|
for (; Z() && t + M !== 57; )
|
|
1080
1085
|
if (t + M === 84 && ce() === 47)
|
|
1081
1086
|
break;
|
|
1082
|
-
return "/*" +
|
|
1087
|
+
return "/*" + He(e, X - 1) + "*" + gt(t === 47 ? t : Z());
|
|
1083
1088
|
}
|
|
1084
1089
|
function Rn(t) {
|
|
1085
|
-
for (; !
|
|
1090
|
+
for (; !ze(ce()); )
|
|
1086
1091
|
Z();
|
|
1087
|
-
return
|
|
1092
|
+
return He(t, X);
|
|
1088
1093
|
}
|
|
1089
1094
|
function Tn(t) {
|
|
1090
|
-
return ji(
|
|
1095
|
+
return ji(ot("", null, null, null, [""], t = Ki(t), 0, [0], t));
|
|
1091
1096
|
}
|
|
1092
|
-
function
|
|
1093
|
-
for (var l = 0, c = 0, u = s, h = 0, v = 0, g = 0, y = 1,
|
|
1094
|
-
switch (g =
|
|
1097
|
+
function ot(t, e, i, r, n, o, s, a, d) {
|
|
1098
|
+
for (var l = 0, c = 0, u = s, h = 0, v = 0, g = 0, y = 1, b = 1, A = 1, w = 0, m = "", x = n, k = o, _ = r, p = m; b; )
|
|
1099
|
+
switch (g = w, w = Z()) {
|
|
1095
1100
|
case 40:
|
|
1096
1101
|
if (g != 108 && K(p, u - 1) == 58) {
|
|
1097
|
-
Pt(p += R(
|
|
1102
|
+
Pt(p += R(nt(w), "&", "&\f"), "&\f") != -1 && (A = -1);
|
|
1098
1103
|
break;
|
|
1099
1104
|
}
|
|
1100
1105
|
case 34:
|
|
1101
1106
|
case 39:
|
|
1102
1107
|
case 91:
|
|
1103
|
-
p +=
|
|
1108
|
+
p += nt(w);
|
|
1104
1109
|
break;
|
|
1105
1110
|
case 9:
|
|
1106
1111
|
case 10:
|
|
1107
1112
|
case 13:
|
|
1108
1113
|
case 32:
|
|
1109
|
-
p +=
|
|
1114
|
+
p += xn(g);
|
|
1110
1115
|
break;
|
|
1111
1116
|
case 92:
|
|
1112
|
-
p +=
|
|
1117
|
+
p += En(rt() - 1, 7);
|
|
1113
1118
|
continue;
|
|
1114
1119
|
case 47:
|
|
1115
1120
|
switch (ce()) {
|
|
1116
1121
|
case 42:
|
|
1117
1122
|
case 47:
|
|
1118
|
-
|
|
1123
|
+
et(Dn(In(Z(), rt()), e, i), d);
|
|
1119
1124
|
break;
|
|
1120
1125
|
default:
|
|
1121
1126
|
p += "/";
|
|
@@ -1126,29 +1131,29 @@ function nt(t, e, i, r, n, o, s, a, d) {
|
|
|
1126
1131
|
case 125 * y:
|
|
1127
1132
|
case 59:
|
|
1128
1133
|
case 0:
|
|
1129
|
-
switch (
|
|
1134
|
+
switch (w) {
|
|
1130
1135
|
case 0:
|
|
1131
1136
|
case 125:
|
|
1132
|
-
|
|
1137
|
+
b = 0;
|
|
1133
1138
|
case 59 + c:
|
|
1134
|
-
A == -1 && (p = R(p, /\f/g, "")), v > 0 && le(p) - u &&
|
|
1139
|
+
A == -1 && (p = R(p, /\f/g, "")), v > 0 && le(p) - u && et(v > 32 ? li(p + ";", r, i, u - 1) : li(R(p, " ", "") + ";", r, i, u - 2), d);
|
|
1135
1140
|
break;
|
|
1136
1141
|
case 59:
|
|
1137
1142
|
p += ";";
|
|
1138
1143
|
default:
|
|
1139
|
-
if (
|
|
1144
|
+
if (et(_ = di(p, e, i, l, c, n, a, m, x = [], k = [], u), o), w === 123)
|
|
1140
1145
|
if (c === 0)
|
|
1141
|
-
|
|
1146
|
+
ot(p, e, _, _, x, o, u, a, k);
|
|
1142
1147
|
else
|
|
1143
1148
|
switch (h === 99 && K(p, 3) === 110 ? 100 : h) {
|
|
1144
1149
|
case 100:
|
|
1145
1150
|
case 108:
|
|
1146
1151
|
case 109:
|
|
1147
1152
|
case 115:
|
|
1148
|
-
|
|
1153
|
+
ot(t, _, _, r && et(di(t, _, _, 0, 0, n, a, m, n, x = [], u), k), n, k, u, a, r ? x : k);
|
|
1149
1154
|
break;
|
|
1150
1155
|
default:
|
|
1151
|
-
|
|
1156
|
+
ot(p, _, _, _, [""], k, 0, a, k);
|
|
1152
1157
|
}
|
|
1153
1158
|
}
|
|
1154
1159
|
l = c = v = 0, y = A = 1, m = p = "", u = s;
|
|
@@ -1157,12 +1162,12 @@ function nt(t, e, i, r, n, o, s, a, d) {
|
|
|
1157
1162
|
u = 1 + le(p), v = g;
|
|
1158
1163
|
default:
|
|
1159
1164
|
if (y < 1) {
|
|
1160
|
-
if (
|
|
1165
|
+
if (w == 123)
|
|
1161
1166
|
--y;
|
|
1162
|
-
else if (
|
|
1167
|
+
else if (w == 125 && y++ == 0 && kn() == 125)
|
|
1163
1168
|
continue;
|
|
1164
1169
|
}
|
|
1165
|
-
switch (p +=
|
|
1170
|
+
switch (p += gt(w), w * y) {
|
|
1166
1171
|
case 38:
|
|
1167
1172
|
A = c > 0 ? 1 : (p += "\f", -1);
|
|
1168
1173
|
break;
|
|
@@ -1170,7 +1175,7 @@ function nt(t, e, i, r, n, o, s, a, d) {
|
|
|
1170
1175
|
a[l++] = (le(p) - 1) * A, A = 1;
|
|
1171
1176
|
break;
|
|
1172
1177
|
case 64:
|
|
1173
|
-
ce() === 45 && (p +=
|
|
1178
|
+
ce() === 45 && (p += nt(Z())), h = ce(), c = u = le(m = p += Rn(rt())), w++;
|
|
1174
1179
|
break;
|
|
1175
1180
|
case 45:
|
|
1176
1181
|
g === 45 && le(p) == 2 && (y = 0);
|
|
@@ -1179,18 +1184,18 @@ function nt(t, e, i, r, n, o, s, a, d) {
|
|
|
1179
1184
|
return o;
|
|
1180
1185
|
}
|
|
1181
1186
|
function di(t, e, i, r, n, o, s, a, d, l, c) {
|
|
1182
|
-
for (var u = n - 1, h = n === 0 ? o : [""], v = qt(h), g = 0, y = 0,
|
|
1183
|
-
for (var A = 0,
|
|
1184
|
-
(m = $i(y > 0 ? h[A] + " " +
|
|
1185
|
-
return
|
|
1187
|
+
for (var u = n - 1, h = n === 0 ? o : [""], v = qt(h), g = 0, y = 0, b = 0; g < r; ++g)
|
|
1188
|
+
for (var A = 0, w = Ge(t, u + 1, u = bn(y = s[g])), m = t; A < v; ++A)
|
|
1189
|
+
(m = $i(y > 0 ? h[A] + " " + w : R(w, /&\f/g, h[A]))) && (d[b++] = m);
|
|
1190
|
+
return At(t, e, i, n === 0 ? Kt : a, d, l, c);
|
|
1186
1191
|
}
|
|
1187
1192
|
function Dn(t, e, i) {
|
|
1188
|
-
return
|
|
1193
|
+
return At(t, e, i, Mi, gt(mn()), Ge(t, 2, -2), 0);
|
|
1189
1194
|
}
|
|
1190
1195
|
function li(t, e, i, r) {
|
|
1191
|
-
return
|
|
1196
|
+
return At(t, e, i, jt, Ge(t, 0, r), Ge(t, r + 1, -1), r);
|
|
1192
1197
|
}
|
|
1193
|
-
function
|
|
1198
|
+
function Oe(t, e) {
|
|
1194
1199
|
for (var i = "", r = qt(t), n = 0; n < r; n++)
|
|
1195
1200
|
i += e(t[n], n, t, e) || "";
|
|
1196
1201
|
return i;
|
|
@@ -1206,11 +1211,11 @@ function Cn(t, e, i, r) {
|
|
|
1206
1211
|
case Mi:
|
|
1207
1212
|
return "";
|
|
1208
1213
|
case Fi:
|
|
1209
|
-
return t.return = t.value + "{" +
|
|
1214
|
+
return t.return = t.value + "{" + Oe(t.children, r) + "}";
|
|
1210
1215
|
case Kt:
|
|
1211
1216
|
t.value = t.props.join(",");
|
|
1212
1217
|
}
|
|
1213
|
-
return le(i =
|
|
1218
|
+
return le(i = Oe(t.children, r)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1214
1219
|
}
|
|
1215
1220
|
function On(t) {
|
|
1216
1221
|
var e = qt(t);
|
|
@@ -1232,18 +1237,18 @@ function Pn(t) {
|
|
|
1232
1237
|
};
|
|
1233
1238
|
}
|
|
1234
1239
|
var Ln = function(e, i, r) {
|
|
1235
|
-
for (var n = 0, o = 0; n = o, o = ce(), n === 38 && o === 12 && (i[r] = 1), !
|
|
1240
|
+
for (var n = 0, o = 0; n = o, o = ce(), n === 38 && o === 12 && (i[r] = 1), !ze(o); )
|
|
1236
1241
|
Z();
|
|
1237
|
-
return
|
|
1242
|
+
return He(e, X);
|
|
1238
1243
|
}, Bn = function(e, i) {
|
|
1239
1244
|
var r = -1, n = 44;
|
|
1240
1245
|
do
|
|
1241
|
-
switch (
|
|
1246
|
+
switch (ze(n)) {
|
|
1242
1247
|
case 0:
|
|
1243
1248
|
n === 38 && ce() === 12 && (i[r] = 1), e[r] += Ln(X - 1, i, r);
|
|
1244
1249
|
break;
|
|
1245
1250
|
case 2:
|
|
1246
|
-
e[r] +=
|
|
1251
|
+
e[r] += nt(n);
|
|
1247
1252
|
break;
|
|
1248
1253
|
case 4:
|
|
1249
1254
|
if (n === 44) {
|
|
@@ -1251,7 +1256,7 @@ var Ln = function(e, i, r) {
|
|
|
1251
1256
|
break;
|
|
1252
1257
|
}
|
|
1253
1258
|
default:
|
|
1254
|
-
e[r] +=
|
|
1259
|
+
e[r] += gt(n);
|
|
1255
1260
|
}
|
|
1256
1261
|
while (n = Z());
|
|
1257
1262
|
return e;
|
|
@@ -1314,7 +1319,7 @@ function qi(t, e) {
|
|
|
1314
1319
|
case 4810:
|
|
1315
1320
|
case 6968:
|
|
1316
1321
|
case 2756:
|
|
1317
|
-
return I + t +
|
|
1322
|
+
return I + t + ut + t + J + t + t;
|
|
1318
1323
|
case 6828:
|
|
1319
1324
|
case 4268:
|
|
1320
1325
|
return I + t + J + t + t;
|
|
@@ -1364,7 +1369,7 @@ function qi(t, e) {
|
|
|
1364
1369
|
if (K(t, e + 4) !== 45)
|
|
1365
1370
|
break;
|
|
1366
1371
|
case 102:
|
|
1367
|
-
return R(t, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" +
|
|
1372
|
+
return R(t, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + ut + (K(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1368
1373
|
case 115:
|
|
1369
1374
|
return ~Pt(t, "stretch") ? qi(R(t, "stretch", "fill-available"), e) + t : t;
|
|
1370
1375
|
}
|
|
@@ -1400,7 +1405,7 @@ var Un = function(e, i, r, n) {
|
|
|
1400
1405
|
e.return = qi(e.value, e.length);
|
|
1401
1406
|
break;
|
|
1402
1407
|
case Fi:
|
|
1403
|
-
return
|
|
1408
|
+
return Oe([Ke(e, {
|
|
1404
1409
|
value: R(e.value, "@", "@" + I)
|
|
1405
1410
|
})], n);
|
|
1406
1411
|
case Kt:
|
|
@@ -1409,15 +1414,15 @@ var Un = function(e, i, r, n) {
|
|
|
1409
1414
|
switch (_n(o, /(::plac\w+|:read-\w+)/)) {
|
|
1410
1415
|
case ":read-only":
|
|
1411
1416
|
case ":read-write":
|
|
1412
|
-
return
|
|
1413
|
-
props: [R(o, /:(read-\w+)/, ":" +
|
|
1417
|
+
return Oe([Ke(e, {
|
|
1418
|
+
props: [R(o, /:(read-\w+)/, ":" + ut + "$1")]
|
|
1414
1419
|
})], n);
|
|
1415
1420
|
case "::placeholder":
|
|
1416
|
-
return
|
|
1421
|
+
return Oe([Ke(e, {
|
|
1417
1422
|
props: [R(o, /:(plac\w+)/, ":" + I + "input-$1")]
|
|
1418
|
-
}),
|
|
1419
|
-
props: [R(o, /:(plac\w+)/, ":" +
|
|
1420
|
-
}),
|
|
1423
|
+
}), Ke(e, {
|
|
1424
|
+
props: [R(o, /:(plac\w+)/, ":" + ut + "$1")]
|
|
1425
|
+
}), Ke(e, {
|
|
1421
1426
|
props: [R(o, /:(plac\w+)/, J + "input-$1")]
|
|
1422
1427
|
})], n);
|
|
1423
1428
|
}
|
|
@@ -1429,8 +1434,8 @@ var Un = function(e, i, r, n) {
|
|
|
1429
1434
|
if (i === "css") {
|
|
1430
1435
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1431
1436
|
Array.prototype.forEach.call(r, function(y) {
|
|
1432
|
-
var
|
|
1433
|
-
|
|
1437
|
+
var b = y.getAttribute("data-emotion");
|
|
1438
|
+
b.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
|
|
1434
1439
|
});
|
|
1435
1440
|
}
|
|
1436
1441
|
var n = e.stylisPlugins || Kn, o = {}, s, a = [];
|
|
@@ -1439,8 +1444,8 @@ var Un = function(e, i, r, n) {
|
|
|
1439
1444
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1440
1445
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1441
1446
|
function(y) {
|
|
1442
|
-
for (var
|
|
1443
|
-
o[
|
|
1447
|
+
for (var b = y.getAttribute("data-emotion").split(" "), A = 1; A < b.length; A++)
|
|
1448
|
+
o[b[A]] = !0;
|
|
1444
1449
|
a.push(y);
|
|
1445
1450
|
}
|
|
1446
1451
|
);
|
|
@@ -1448,11 +1453,11 @@ var Un = function(e, i, r, n) {
|
|
|
1448
1453
|
{
|
|
1449
1454
|
var c, u = [Cn, Nn(function(y) {
|
|
1450
1455
|
c.insert(y);
|
|
1451
|
-
})], h = On(l.concat(n, u)), v = function(
|
|
1452
|
-
return
|
|
1456
|
+
})], h = On(l.concat(n, u)), v = function(b) {
|
|
1457
|
+
return Oe(Tn(b), h);
|
|
1453
1458
|
};
|
|
1454
|
-
d = function(
|
|
1455
|
-
c =
|
|
1459
|
+
d = function(b, A, w, m) {
|
|
1460
|
+
c = w, v(b ? b + "{" + A.styles + "}" : A.styles), m && (g.inserted[A.name] = !0);
|
|
1456
1461
|
};
|
|
1457
1462
|
}
|
|
1458
1463
|
var g = {
|
|
@@ -1561,7 +1566,7 @@ var Vn = {
|
|
|
1561
1566
|
}
|
|
1562
1567
|
return Vn[e] !== 1 && !Vi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1563
1568
|
};
|
|
1564
|
-
function
|
|
1569
|
+
function ht(t, e, i) {
|
|
1565
1570
|
if (i == null)
|
|
1566
1571
|
return "";
|
|
1567
1572
|
var r = i;
|
|
@@ -1604,7 +1609,7 @@ function zn(t, e, i) {
|
|
|
1604
1609
|
var r = "";
|
|
1605
1610
|
if (Array.isArray(i))
|
|
1606
1611
|
for (var n = 0; n < i.length; n++)
|
|
1607
|
-
r +=
|
|
1612
|
+
r += ht(t, e, i[n]) + ";";
|
|
1608
1613
|
else
|
|
1609
1614
|
for (var o in i) {
|
|
1610
1615
|
var s = i[o];
|
|
@@ -1615,7 +1620,7 @@ function zn(t, e, i) {
|
|
|
1615
1620
|
for (var d = 0; d < s.length; d++)
|
|
1616
1621
|
ui(s[d]) && (r += _t(o) + ":" + hi(o, s[d]) + ";");
|
|
1617
1622
|
else {
|
|
1618
|
-
var l =
|
|
1623
|
+
var l = ht(t, e, s);
|
|
1619
1624
|
switch (o) {
|
|
1620
1625
|
case "animation":
|
|
1621
1626
|
case "animationName": {
|
|
@@ -1637,13 +1642,13 @@ function St(t, e, i) {
|
|
|
1637
1642
|
_e = void 0;
|
|
1638
1643
|
var o = t[0];
|
|
1639
1644
|
if (o == null || o.raw === void 0)
|
|
1640
|
-
r = !1, n +=
|
|
1645
|
+
r = !1, n += ht(i, e, o);
|
|
1641
1646
|
else {
|
|
1642
1647
|
var s = o;
|
|
1643
1648
|
n += s[0];
|
|
1644
1649
|
}
|
|
1645
1650
|
for (var a = 1; a < t.length; a++)
|
|
1646
|
-
if (n +=
|
|
1651
|
+
if (n += ht(i, e, t[a]), r) {
|
|
1647
1652
|
var d = o;
|
|
1648
1653
|
n += d[a];
|
|
1649
1654
|
}
|
|
@@ -1762,7 +1767,7 @@ var Yn = function(e) {
|
|
|
1762
1767
|
return i;
|
|
1763
1768
|
}, Qn = Yn({
|
|
1764
1769
|
key: "css"
|
|
1765
|
-
}), z = Qn.css, Bt, Q, mt, yi, Ai = 0, Gi = [], $ =
|
|
1770
|
+
}), z = Qn.css, Bt, Q, mt, yi, Ai = 0, Gi = [], $ = Ne, bi = $.__b, wi = $.__r, pi = $.diffed, _i = $.__c, Si = $.unmount, mi = $.__;
|
|
1766
1771
|
function Zn(t, e) {
|
|
1767
1772
|
$.__h && $.__h(Q, t, Ai || e), Ai = 0;
|
|
1768
1773
|
var i = Q.__H || (Q.__H = { __: [], __h: [] });
|
|
@@ -1776,21 +1781,21 @@ function eo() {
|
|
|
1776
1781
|
for (var t; t = Gi.shift(); )
|
|
1777
1782
|
if (t.__P && t.__H)
|
|
1778
1783
|
try {
|
|
1779
|
-
t.__H.__h.forEach(
|
|
1784
|
+
t.__H.__h.forEach(st), t.__H.__h.forEach(Mt), t.__H.__h = [];
|
|
1780
1785
|
} catch (e) {
|
|
1781
1786
|
t.__H.__h = [], $.__e(e, t.__v);
|
|
1782
1787
|
}
|
|
1783
1788
|
}
|
|
1784
1789
|
$.__b = function(t) {
|
|
1785
|
-
Q = null,
|
|
1790
|
+
Q = null, bi && bi(t);
|
|
1786
1791
|
}, $.__ = function(t, e) {
|
|
1787
1792
|
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), mi && mi(t, e);
|
|
1788
1793
|
}, $.__r = function(t) {
|
|
1789
|
-
|
|
1794
|
+
wi && wi(t), Bt = 0;
|
|
1790
1795
|
var e = (Q = t.__c).__H;
|
|
1791
1796
|
e && (mt === Q ? (e.__h = [], Q.__h = [], e.__.forEach(function(i) {
|
|
1792
1797
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1793
|
-
})) : (e.__h.forEach(
|
|
1798
|
+
})) : (e.__h.forEach(st), e.__h.forEach(Mt), e.__h = [], Bt = 0)), mt = Q;
|
|
1794
1799
|
}, $.diffed = function(t) {
|
|
1795
1800
|
pi && pi(t);
|
|
1796
1801
|
var e = t.__c;
|
|
@@ -1800,7 +1805,7 @@ $.__b = function(t) {
|
|
|
1800
1805
|
}, $.__c = function(t, e) {
|
|
1801
1806
|
e.some(function(i) {
|
|
1802
1807
|
try {
|
|
1803
|
-
i.__h.forEach(
|
|
1808
|
+
i.__h.forEach(st), i.__h = i.__h.filter(function(r) {
|
|
1804
1809
|
return !r.__ || Mt(r);
|
|
1805
1810
|
});
|
|
1806
1811
|
} catch (r) {
|
|
@@ -1814,20 +1819,20 @@ $.__b = function(t) {
|
|
|
1814
1819
|
var e, i = t.__c;
|
|
1815
1820
|
i && i.__H && (i.__H.__.forEach(function(r) {
|
|
1816
1821
|
try {
|
|
1817
|
-
|
|
1822
|
+
st(r);
|
|
1818
1823
|
} catch (n) {
|
|
1819
1824
|
e = n;
|
|
1820
1825
|
}
|
|
1821
1826
|
}), i.__H = void 0, e && $.__e(e, i.__v));
|
|
1822
1827
|
};
|
|
1823
|
-
var
|
|
1828
|
+
var ki = typeof requestAnimationFrame == "function";
|
|
1824
1829
|
function to(t) {
|
|
1825
1830
|
var e, i = function() {
|
|
1826
|
-
clearTimeout(r),
|
|
1831
|
+
clearTimeout(r), ki && cancelAnimationFrame(e), setTimeout(t);
|
|
1827
1832
|
}, r = setTimeout(i, 100);
|
|
1828
|
-
|
|
1833
|
+
ki && (e = requestAnimationFrame(i));
|
|
1829
1834
|
}
|
|
1830
|
-
function
|
|
1835
|
+
function st(t) {
|
|
1831
1836
|
var e = Q, i = t.__c;
|
|
1832
1837
|
typeof i == "function" && (t.__c = void 0, i()), Q = e;
|
|
1833
1838
|
}
|
|
@@ -1841,13 +1846,13 @@ function io(t, e) {
|
|
|
1841
1846
|
});
|
|
1842
1847
|
}
|
|
1843
1848
|
var ro = Symbol.for("preact-signals");
|
|
1844
|
-
function
|
|
1849
|
+
function bt() {
|
|
1845
1850
|
if (Se > 1)
|
|
1846
1851
|
Se--;
|
|
1847
1852
|
else {
|
|
1848
|
-
for (var t, e = !1;
|
|
1849
|
-
var i =
|
|
1850
|
-
for (
|
|
1853
|
+
for (var t, e = !1; qe !== void 0; ) {
|
|
1854
|
+
var i = qe;
|
|
1855
|
+
for (qe = void 0, Ft++; i !== void 0; ) {
|
|
1851
1856
|
var r = i.o;
|
|
1852
1857
|
if (i.o = void 0, i.f &= -3, !(8 & i.f) && Wi(i))
|
|
1853
1858
|
try {
|
|
@@ -1869,10 +1874,10 @@ function P(t) {
|
|
|
1869
1874
|
try {
|
|
1870
1875
|
return t();
|
|
1871
1876
|
} finally {
|
|
1872
|
-
|
|
1877
|
+
bt();
|
|
1873
1878
|
}
|
|
1874
1879
|
}
|
|
1875
|
-
var T = void 0,
|
|
1880
|
+
var T = void 0, qe = void 0, Se = 0, Ft = 0, ft = 0;
|
|
1876
1881
|
function Hi(t) {
|
|
1877
1882
|
if (T !== void 0) {
|
|
1878
1883
|
var e = t.n;
|
|
@@ -1900,7 +1905,7 @@ q.prototype.U = function(t) {
|
|
|
1900
1905
|
};
|
|
1901
1906
|
q.prototype.subscribe = function(t) {
|
|
1902
1907
|
var e = this;
|
|
1903
|
-
return
|
|
1908
|
+
return Ye(function() {
|
|
1904
1909
|
var i = e.value, r = T;
|
|
1905
1910
|
T = void 0;
|
|
1906
1911
|
try {
|
|
@@ -1935,16 +1940,16 @@ Object.defineProperty(q.prototype, "value", { get: function() {
|
|
|
1935
1940
|
if (t !== this.v) {
|
|
1936
1941
|
if (Ft > 100)
|
|
1937
1942
|
throw new Error("Cycle detected");
|
|
1938
|
-
this.v = t, this.i++,
|
|
1943
|
+
this.v = t, this.i++, ft++, Se++;
|
|
1939
1944
|
try {
|
|
1940
1945
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1941
1946
|
e.t.N();
|
|
1942
1947
|
} finally {
|
|
1943
|
-
|
|
1948
|
+
bt();
|
|
1944
1949
|
}
|
|
1945
1950
|
}
|
|
1946
1951
|
} });
|
|
1947
|
-
function
|
|
1952
|
+
function E(t) {
|
|
1948
1953
|
return new q(t);
|
|
1949
1954
|
}
|
|
1950
1955
|
function Wi(t) {
|
|
@@ -1969,15 +1974,15 @@ function Xi(t) {
|
|
|
1969
1974
|
}
|
|
1970
1975
|
t.s = i;
|
|
1971
1976
|
}
|
|
1972
|
-
function
|
|
1973
|
-
q.call(this, void 0), this.x = t, this.s = void 0, this.g =
|
|
1977
|
+
function Me(t) {
|
|
1978
|
+
q.call(this, void 0), this.x = t, this.s = void 0, this.g = ft - 1, this.f = 4;
|
|
1974
1979
|
}
|
|
1975
|
-
(
|
|
1980
|
+
(Me.prototype = new q()).h = function() {
|
|
1976
1981
|
if (this.f &= -3, 1 & this.f)
|
|
1977
1982
|
return !1;
|
|
1978
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1983
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === ft))
|
|
1979
1984
|
return !0;
|
|
1980
|
-
if (this.g =
|
|
1985
|
+
if (this.g = ft, this.f |= 1, this.i > 0 && !Wi(this))
|
|
1981
1986
|
return this.f &= -2, !0;
|
|
1982
1987
|
var t = T;
|
|
1983
1988
|
try {
|
|
@@ -1989,7 +1994,7 @@ function Be(t) {
|
|
|
1989
1994
|
}
|
|
1990
1995
|
return T = t, Xi(this), this.f &= -2, !0;
|
|
1991
1996
|
};
|
|
1992
|
-
|
|
1997
|
+
Me.prototype.S = function(t) {
|
|
1993
1998
|
if (this.t === void 0) {
|
|
1994
1999
|
this.f |= 36;
|
|
1995
2000
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
@@ -1997,21 +2002,21 @@ Be.prototype.S = function(t) {
|
|
|
1997
2002
|
}
|
|
1998
2003
|
q.prototype.S.call(this, t);
|
|
1999
2004
|
};
|
|
2000
|
-
|
|
2005
|
+
Me.prototype.U = function(t) {
|
|
2001
2006
|
if (this.t !== void 0 && (q.prototype.U.call(this, t), this.t === void 0)) {
|
|
2002
2007
|
this.f &= -33;
|
|
2003
2008
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
2004
2009
|
e.S.U(e);
|
|
2005
2010
|
}
|
|
2006
2011
|
};
|
|
2007
|
-
|
|
2012
|
+
Me.prototype.N = function() {
|
|
2008
2013
|
if (!(2 & this.f)) {
|
|
2009
2014
|
this.f |= 6;
|
|
2010
2015
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
2011
2016
|
t.t.N();
|
|
2012
2017
|
}
|
|
2013
2018
|
};
|
|
2014
|
-
Object.defineProperty(
|
|
2019
|
+
Object.defineProperty(Me.prototype, "value", { get: function() {
|
|
2015
2020
|
if (1 & this.f)
|
|
2016
2021
|
throw new Error("Cycle detected");
|
|
2017
2022
|
var t = Hi(this);
|
|
@@ -2019,8 +2024,8 @@ Object.defineProperty(Be.prototype, "value", { get: function() {
|
|
|
2019
2024
|
throw this.v;
|
|
2020
2025
|
return this.v;
|
|
2021
2026
|
} });
|
|
2022
|
-
function
|
|
2023
|
-
return new
|
|
2027
|
+
function Ve(t) {
|
|
2028
|
+
return new Me(t);
|
|
2024
2029
|
}
|
|
2025
2030
|
function Qi(t) {
|
|
2026
2031
|
var e = t.u;
|
|
@@ -2033,7 +2038,7 @@ function Qi(t) {
|
|
|
2033
2038
|
} catch (r) {
|
|
2034
2039
|
throw t.f &= -2, t.f |= 8, Vt(t), r;
|
|
2035
2040
|
} finally {
|
|
2036
|
-
T = i,
|
|
2041
|
+
T = i, bt();
|
|
2037
2042
|
}
|
|
2038
2043
|
}
|
|
2039
2044
|
}
|
|
@@ -2045,12 +2050,12 @@ function Vt(t) {
|
|
|
2045
2050
|
function no(t) {
|
|
2046
2051
|
if (T !== this)
|
|
2047
2052
|
throw new Error("Out-of-order effect");
|
|
2048
|
-
Xi(this), T = t, this.f &= -2, 8 & this.f && Vt(this),
|
|
2053
|
+
Xi(this), T = t, this.f &= -2, 8 & this.f && Vt(this), bt();
|
|
2049
2054
|
}
|
|
2050
|
-
function
|
|
2055
|
+
function We(t) {
|
|
2051
2056
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
2052
2057
|
}
|
|
2053
|
-
|
|
2058
|
+
We.prototype.c = function() {
|
|
2054
2059
|
var t = this.S();
|
|
2055
2060
|
try {
|
|
2056
2061
|
if (8 & this.f || this.x === void 0)
|
|
@@ -2061,21 +2066,21 @@ He.prototype.c = function() {
|
|
|
2061
2066
|
t();
|
|
2062
2067
|
}
|
|
2063
2068
|
};
|
|
2064
|
-
|
|
2069
|
+
We.prototype.S = function() {
|
|
2065
2070
|
if (1 & this.f)
|
|
2066
2071
|
throw new Error("Cycle detected");
|
|
2067
2072
|
this.f |= 1, this.f &= -9, Qi(this), Yi(this), Se++;
|
|
2068
2073
|
var t = T;
|
|
2069
2074
|
return T = this, no.bind(this, t);
|
|
2070
2075
|
};
|
|
2071
|
-
|
|
2072
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2076
|
+
We.prototype.N = function() {
|
|
2077
|
+
2 & this.f || (this.f |= 2, this.o = qe, qe = this);
|
|
2073
2078
|
};
|
|
2074
|
-
|
|
2079
|
+
We.prototype.d = function() {
|
|
2075
2080
|
this.f |= 8, 1 & this.f || Vt(this);
|
|
2076
2081
|
};
|
|
2077
|
-
function
|
|
2078
|
-
var e = new
|
|
2082
|
+
function Ye(t) {
|
|
2083
|
+
var e = new We(t);
|
|
2079
2084
|
try {
|
|
2080
2085
|
e.c();
|
|
2081
2086
|
} catch (i) {
|
|
@@ -2083,16 +2088,16 @@ function We(t) {
|
|
|
2083
2088
|
}
|
|
2084
2089
|
return e.d.bind(e);
|
|
2085
2090
|
}
|
|
2086
|
-
var Zi,
|
|
2087
|
-
|
|
2091
|
+
var Zi, kt, er = [];
|
|
2092
|
+
Ye(function() {
|
|
2088
2093
|
Zi = this.N;
|
|
2089
2094
|
})();
|
|
2090
|
-
function
|
|
2091
|
-
|
|
2095
|
+
function Fe(t, e) {
|
|
2096
|
+
Ne[t] = e.bind(null, Ne[t] || function() {
|
|
2092
2097
|
});
|
|
2093
2098
|
}
|
|
2094
|
-
function
|
|
2095
|
-
|
|
2099
|
+
function vt(t) {
|
|
2100
|
+
kt && kt(), kt = t && t.S();
|
|
2096
2101
|
}
|
|
2097
2102
|
function tr(t) {
|
|
2098
2103
|
var e = this, i = t.data, r = ir(i);
|
|
@@ -2103,12 +2108,12 @@ function tr(t) {
|
|
|
2103
2108
|
d.__c.__$f |= 4;
|
|
2104
2109
|
break;
|
|
2105
2110
|
}
|
|
2106
|
-
var l =
|
|
2111
|
+
var l = Ve(function() {
|
|
2107
2112
|
var v = r.value.value;
|
|
2108
2113
|
return v === 0 ? 0 : v === !0 ? "" : v || "";
|
|
2109
|
-
}), c =
|
|
2114
|
+
}), c = Ve(function() {
|
|
2110
2115
|
return !Array.isArray(l.value) && !Ar(l.value);
|
|
2111
|
-
}), u =
|
|
2116
|
+
}), u = Ye(function() {
|
|
2112
2117
|
if (this.N = rr, c.value) {
|
|
2113
2118
|
var v = l.value;
|
|
2114
2119
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = v);
|
|
@@ -2124,7 +2129,7 @@ tr.displayName = "_st";
|
|
|
2124
2129
|
Object.defineProperties(q.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: tr }, props: { configurable: !0, get: function() {
|
|
2125
2130
|
return { data: this };
|
|
2126
2131
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2127
|
-
|
|
2132
|
+
Fe("__b", function(t, e) {
|
|
2128
2133
|
if (typeof e.type == "string") {
|
|
2129
2134
|
var i, r = e.props;
|
|
2130
2135
|
for (var n in r)
|
|
@@ -2135,23 +2140,23 @@ Me("__b", function(t, e) {
|
|
|
2135
2140
|
}
|
|
2136
2141
|
t(e);
|
|
2137
2142
|
});
|
|
2138
|
-
|
|
2139
|
-
|
|
2143
|
+
Fe("__r", function(t, e) {
|
|
2144
|
+
vt();
|
|
2140
2145
|
var i, r = e.__c;
|
|
2141
2146
|
r && (r.__$f &= -2, (i = r.__$u) === void 0 && (r.__$u = i = function(n) {
|
|
2142
2147
|
var o;
|
|
2143
|
-
return
|
|
2148
|
+
return Ye(function() {
|
|
2144
2149
|
o = this;
|
|
2145
2150
|
}), o.c = function() {
|
|
2146
2151
|
r.__$f |= 1, r.setState({});
|
|
2147
2152
|
}, o;
|
|
2148
|
-
}())),
|
|
2153
|
+
}())), vt(i), t(e);
|
|
2149
2154
|
});
|
|
2150
|
-
|
|
2151
|
-
|
|
2155
|
+
Fe("__e", function(t, e, i, r) {
|
|
2156
|
+
vt(), t(e, i, r);
|
|
2152
2157
|
});
|
|
2153
|
-
|
|
2154
|
-
|
|
2158
|
+
Fe("diffed", function(t, e) {
|
|
2159
|
+
vt();
|
|
2155
2160
|
var i;
|
|
2156
2161
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2157
2162
|
var r = e.__np, n = e.props;
|
|
@@ -2173,16 +2178,16 @@ Me("diffed", function(t, e) {
|
|
|
2173
2178
|
t(e);
|
|
2174
2179
|
});
|
|
2175
2180
|
function oo(t, e, i, r) {
|
|
2176
|
-
var n = e in t && t.ownerSVGElement === void 0, o =
|
|
2181
|
+
var n = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2177
2182
|
return { o: function(s, a) {
|
|
2178
2183
|
o.value = s, r = a;
|
|
2179
|
-
}, d:
|
|
2184
|
+
}, d: Ye(function() {
|
|
2180
2185
|
this.N = rr;
|
|
2181
2186
|
var s = o.value.value;
|
|
2182
2187
|
r[e] !== s && (r[e] = s, n ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2183
2188
|
}) };
|
|
2184
2189
|
}
|
|
2185
|
-
|
|
2190
|
+
Fe("unmount", function(t, e) {
|
|
2186
2191
|
if (typeof e.type == "string") {
|
|
2187
2192
|
var i = e.__e;
|
|
2188
2193
|
if (i) {
|
|
@@ -2204,7 +2209,7 @@ Me("unmount", function(t, e) {
|
|
|
2204
2209
|
}
|
|
2205
2210
|
t(e);
|
|
2206
2211
|
});
|
|
2207
|
-
|
|
2212
|
+
Fe("__h", function(t, e, i, r) {
|
|
2208
2213
|
(r < 3 || r === 9) && (e.__$f |= 2), t(e, i, r);
|
|
2209
2214
|
});
|
|
2210
2215
|
yr.prototype.shouldComponentUpdate = function(t, e) {
|
|
@@ -2227,7 +2232,7 @@ yr.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2227
2232
|
};
|
|
2228
2233
|
function ir(t) {
|
|
2229
2234
|
return zi(function() {
|
|
2230
|
-
return
|
|
2235
|
+
return E(t);
|
|
2231
2236
|
}, []);
|
|
2232
2237
|
}
|
|
2233
2238
|
var so = function(t) {
|
|
@@ -2242,7 +2247,7 @@ function ao() {
|
|
|
2242
2247
|
});
|
|
2243
2248
|
}
|
|
2244
2249
|
function rr() {
|
|
2245
|
-
er.push(this) === 1 && (
|
|
2250
|
+
er.push(this) === 1 && (Ne.requestAnimationFrame || so)(ao);
|
|
2246
2251
|
}
|
|
2247
2252
|
const U = z`
|
|
2248
2253
|
inset: 0;
|
|
@@ -2265,9 +2270,9 @@ const U = z`
|
|
|
2265
2270
|
`;
|
|
2266
2271
|
function lo(t, e) {
|
|
2267
2272
|
const i = Ti(t);
|
|
2268
|
-
|
|
2273
|
+
br(() => {
|
|
2269
2274
|
i.current = t;
|
|
2270
|
-
}, [t]),
|
|
2275
|
+
}, [t]), Pe(() => {
|
|
2271
2276
|
if (e === null)
|
|
2272
2277
|
return;
|
|
2273
2278
|
const r = setInterval(() => {
|
|
@@ -2289,7 +2294,7 @@ function S(t, e, i, r, n, o) {
|
|
|
2289
2294
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2290
2295
|
for (a in s)
|
|
2291
2296
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2292
|
-
return
|
|
2297
|
+
return Ne.vnode && Ne.vnode(l), l;
|
|
2293
2298
|
}
|
|
2294
2299
|
const uo = z`
|
|
2295
2300
|
${U}
|
|
@@ -2366,7 +2371,7 @@ const uo = z`
|
|
|
2366
2371
|
}
|
|
2367
2372
|
}
|
|
2368
2373
|
}
|
|
2369
|
-
`, oe =
|
|
2374
|
+
`, oe = E(null), $t = E(""), Ut = E(""), at = E(!1), ho = () => {
|
|
2370
2375
|
var t;
|
|
2371
2376
|
(t = oe.value) == null || t.call(oe, !1);
|
|
2372
2377
|
}, fo = () => {
|
|
@@ -2378,17 +2383,17 @@ const uo = z`
|
|
|
2378
2383
|
content: i
|
|
2379
2384
|
} = t;
|
|
2380
2385
|
return oe.value && (oe.value(!1), P(() => {
|
|
2381
|
-
oe.value = null,
|
|
2386
|
+
oe.value = null, at.value = !1;
|
|
2382
2387
|
})), P(() => {
|
|
2383
|
-
$t.value = e || "", Ut.value = i || "",
|
|
2388
|
+
$t.value = e || "", Ut.value = i || "", at.value = !0;
|
|
2384
2389
|
}), new Promise((r) => {
|
|
2385
2390
|
oe.value = (n) => {
|
|
2386
2391
|
P(() => {
|
|
2387
|
-
oe.value = null,
|
|
2392
|
+
oe.value = null, at.value = !1, $t.value = "", Ut.value = "";
|
|
2388
2393
|
}), r(n);
|
|
2389
2394
|
};
|
|
2390
2395
|
});
|
|
2391
|
-
}, go = () =>
|
|
2396
|
+
}, go = () => at.value ? S("div", {
|
|
2392
2397
|
className: uo,
|
|
2393
2398
|
children: S("div", {
|
|
2394
2399
|
className: "card-wrapper",
|
|
@@ -2448,7 +2453,7 @@ const uo = z`
|
|
|
2448
2453
|
}
|
|
2449
2454
|
}
|
|
2450
2455
|
`, Ao = () => {
|
|
2451
|
-
const t =
|
|
2456
|
+
const t = E(!1), e = E(null);
|
|
2452
2457
|
return {
|
|
2453
2458
|
timerPaused: t,
|
|
2454
2459
|
startTimestamp: e,
|
|
@@ -2458,7 +2463,7 @@ const uo = z`
|
|
|
2458
2463
|
});
|
|
2459
2464
|
}
|
|
2460
2465
|
};
|
|
2461
|
-
},
|
|
2466
|
+
}, bo = (t) => {
|
|
2462
2467
|
let {
|
|
2463
2468
|
countdown: e = 0,
|
|
2464
2469
|
mode: i,
|
|
@@ -2474,19 +2479,19 @@ const uo = z`
|
|
|
2474
2479
|
s.value = !0, a.value = 0;
|
|
2475
2480
|
});
|
|
2476
2481
|
}, s.value ? null : 1e3);
|
|
2477
|
-
const d =
|
|
2482
|
+
const d = Ve(() => {
|
|
2478
2483
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2479
2484
|
return !1;
|
|
2480
2485
|
const v = Date.now() - o.value;
|
|
2481
2486
|
return a.value > 0 && e - a.value >= 5 && v >= 5e3;
|
|
2482
|
-
}), l =
|
|
2487
|
+
}), l = Ve(() => {
|
|
2483
2488
|
if (i === "interstitial")
|
|
2484
2489
|
return !0;
|
|
2485
2490
|
if (!o.value)
|
|
2486
2491
|
return !1;
|
|
2487
2492
|
const v = Date.now() - o.value;
|
|
2488
2493
|
return a.value <= 0 && v >= (e - 1) * 1e3 && e > 5;
|
|
2489
|
-
}), c =
|
|
2494
|
+
}), c = Ve(() => i === "interstitial" ? !1 : !d.value && !l.value), u = async () => {
|
|
2490
2495
|
if (s.value = !0, !await vo({
|
|
2491
2496
|
title: "Are you sure?",
|
|
2492
2497
|
content: "You will lose your reward if you dismiss this Ad."
|
|
@@ -2524,7 +2529,7 @@ const uo = z`
|
|
|
2524
2529
|
})]
|
|
2525
2530
|
});
|
|
2526
2531
|
}, nr = () => {
|
|
2527
|
-
const t =
|
|
2532
|
+
const t = E(), e = E(), i = E(), r = E(), n = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2528
2533
|
return {
|
|
2529
2534
|
afterAd: t,
|
|
2530
2535
|
adDismissed: e,
|
|
@@ -2536,7 +2541,7 @@ const uo = z`
|
|
|
2536
2541
|
src: a,
|
|
2537
2542
|
mode: d
|
|
2538
2543
|
};
|
|
2539
|
-
},
|
|
2544
|
+
}, wo = z`
|
|
2540
2545
|
${U}
|
|
2541
2546
|
position: fixed;
|
|
2542
2547
|
z-index: 2147483647;
|
|
@@ -2569,20 +2574,20 @@ const uo = z`
|
|
|
2569
2574
|
countdown: d,
|
|
2570
2575
|
src: l,
|
|
2571
2576
|
mode: c
|
|
2572
|
-
} = e, u =
|
|
2573
|
-
var A,
|
|
2574
|
-
a.value = !1,
|
|
2577
|
+
} = e, u = wr(() => Ao(), []), [h, v] = xe(!1), g = (b) => {
|
|
2578
|
+
var A, w, m, x;
|
|
2579
|
+
a.value = !1, b === "dismiss" ? (A = r.value) == null || A.call(r) : b === "viewed" && ((w = n.value) == null || w.call(n)), (m = i.value) == null || m.call(i), (x = o.value) == null || x.call(o), v(!1);
|
|
2575
2580
|
}, y = Tt(() => {
|
|
2576
|
-
var
|
|
2577
|
-
h || (v(!0), (
|
|
2581
|
+
var b;
|
|
2582
|
+
h || (v(!0), (b = s.value) == null || b.call(s));
|
|
2578
2583
|
}, [h]);
|
|
2579
|
-
return
|
|
2584
|
+
return Pe(() => {
|
|
2580
2585
|
h && (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2581
2586
|
u.startTimer();
|
|
2582
2587
|
}, 100);
|
|
2583
2588
|
}, [h, c.value]), a.value ? S("div", {
|
|
2584
|
-
className:
|
|
2585
|
-
children: [S(
|
|
2589
|
+
className: wo,
|
|
2590
|
+
children: [S(bo, {
|
|
2586
2591
|
mode: c.value,
|
|
2587
2592
|
onClose: g,
|
|
2588
2593
|
countdown: d.value,
|
|
@@ -2619,7 +2624,7 @@ class So {
|
|
|
2619
2624
|
}
|
|
2620
2625
|
async init() {
|
|
2621
2626
|
var e;
|
|
2622
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"),
|
|
2627
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), be(S(or, {
|
|
2623
2628
|
state: this.state
|
|
2624
2629
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2625
2630
|
}
|
|
@@ -2714,7 +2719,7 @@ class So {
|
|
|
2714
2719
|
P(() => {
|
|
2715
2720
|
this.state.afterAd.value = u, this.state.adDismissed.value = v, this.state.adViewed.value = g, this.state.adBreakDone.value = y;
|
|
2716
2721
|
});
|
|
2717
|
-
const
|
|
2722
|
+
const b = () => {
|
|
2718
2723
|
var A;
|
|
2719
2724
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2720
2725
|
(A = e.adBreakDone) == null || A.call(e, {
|
|
@@ -2726,18 +2731,18 @@ class So {
|
|
|
2726
2731
|
return;
|
|
2727
2732
|
}
|
|
2728
2733
|
this.adsIsShowing = !0, P(() => {
|
|
2729
|
-
var
|
|
2730
|
-
this.state.countdown.value = (
|
|
2734
|
+
var w;
|
|
2735
|
+
this.state.countdown.value = (w = i.params.countdown) != null ? w : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2731
2736
|
});
|
|
2732
2737
|
};
|
|
2733
|
-
this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e,
|
|
2738
|
+
this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, b);
|
|
2734
2739
|
break;
|
|
2735
2740
|
}
|
|
2736
2741
|
}
|
|
2737
2742
|
}
|
|
2738
2743
|
}
|
|
2739
2744
|
const mo = () => {
|
|
2740
|
-
const t =
|
|
2745
|
+
const t = E(null), e = E(null), i = E(null), r = E(null), n = E(null), o = E(null), s = E(!1), a = E(null);
|
|
2741
2746
|
return {
|
|
2742
2747
|
afterAd: t,
|
|
2743
2748
|
adDismissed: e,
|
|
@@ -2748,14 +2753,14 @@ const mo = () => {
|
|
|
2748
2753
|
visible: s,
|
|
2749
2754
|
payload: a
|
|
2750
2755
|
};
|
|
2751
|
-
},
|
|
2756
|
+
}, ko = z`
|
|
2752
2757
|
${U}
|
|
2753
2758
|
position: fixed;
|
|
2754
2759
|
inset: 0;
|
|
2755
2760
|
z-index: 2147483647;
|
|
2756
2761
|
display: flex;
|
|
2757
2762
|
background: #000000;
|
|
2758
|
-
`,
|
|
2763
|
+
`, xo = z`
|
|
2759
2764
|
${U}
|
|
2760
2765
|
position: relative;
|
|
2761
2766
|
width: 100%;
|
|
@@ -2763,7 +2768,7 @@ const mo = () => {
|
|
|
2763
2768
|
display: flex;
|
|
2764
2769
|
flex-direction: column;
|
|
2765
2770
|
color: #f7f9fc;
|
|
2766
|
-
`,
|
|
2771
|
+
`, Eo = z`
|
|
2767
2772
|
position: absolute;
|
|
2768
2773
|
top: 24px;
|
|
2769
2774
|
left: 24px;
|
|
@@ -2790,7 +2795,7 @@ const mo = () => {
|
|
|
2790
2795
|
align-items: center;
|
|
2791
2796
|
justify-content: center;
|
|
2792
2797
|
padding: 0;
|
|
2793
|
-
`,
|
|
2798
|
+
`, xi = z`
|
|
2794
2799
|
width: 100%;
|
|
2795
2800
|
height: 100%;
|
|
2796
2801
|
border: 2px dashed rgba(255, 255, 255, 0.08);
|
|
@@ -2844,39 +2849,39 @@ const mo = () => {
|
|
|
2844
2849
|
adError: a,
|
|
2845
2850
|
visible: d,
|
|
2846
2851
|
payload: l
|
|
2847
|
-
} = e, [c, u] = xe(!1), [h, v] = xe(0), [g, y] = xe(!1), [
|
|
2852
|
+
} = e, [c, u] = xe(!1), [h, v] = xe(0), [g, y] = xe(!1), [b, A] = xe(!1), [w, m] = xe("Loading next content..."), x = Ti(null), k = l.value, _ = Tt((L) => {
|
|
2848
2853
|
var D, B, ee, F;
|
|
2849
2854
|
u(!1), d.value = !1, L === "dismiss" ? (D = r.value) == null || D.call(r) : (B = n.value) == null || B.call(n), (ee = i.value) == null || ee.call(i), (F = o.value) == null || F.call(o);
|
|
2850
2855
|
}, [d, r, n, i, o]), p = Tt(() => {
|
|
2851
2856
|
var L;
|
|
2852
2857
|
u(!1), d.value = !1, (L = a.value) == null || L.call(a);
|
|
2853
2858
|
}, [d, a]);
|
|
2854
|
-
if (
|
|
2859
|
+
if (Pe(() => {
|
|
2855
2860
|
var F;
|
|
2856
|
-
if (!d.value || !
|
|
2861
|
+
if (!d.value || !k) {
|
|
2857
2862
|
v(0), y(!1), A(!1), m("Loading next content...");
|
|
2858
2863
|
return;
|
|
2859
2864
|
}
|
|
2860
|
-
const L =
|
|
2861
|
-
if (v(D), A(
|
|
2865
|
+
const L = k.mode === "reward" ? 15 : 0, D = Math.max(Math.floor((F = k.countdown) != null ? F : L), 0);
|
|
2866
|
+
if (v(D), A(k.mode === "reward" ? D === 0 : !0), y(k.mode === "interstitial" ? D === 0 : !1), D === 0)
|
|
2862
2867
|
return;
|
|
2863
2868
|
let B = D;
|
|
2864
2869
|
const ee = window.setInterval(() => {
|
|
2865
|
-
B -= 1, v(Math.max(B, 0)), B <= 0 && (window.clearInterval(ee),
|
|
2870
|
+
B -= 1, v(Math.max(B, 0)), B <= 0 && (window.clearInterval(ee), k.mode === "reward" ? A(!0) : y(!0));
|
|
2866
2871
|
}, 1e3);
|
|
2867
2872
|
return () => {
|
|
2868
2873
|
window.clearInterval(ee);
|
|
2869
2874
|
};
|
|
2870
|
-
}, [d.value,
|
|
2875
|
+
}, [d.value, k, _]), Pe(() => {
|
|
2871
2876
|
var ee;
|
|
2872
|
-
if (!d.value || !
|
|
2877
|
+
if (!d.value || !k)
|
|
2873
2878
|
return;
|
|
2874
|
-
const L =
|
|
2879
|
+
const L = x.current;
|
|
2875
2880
|
if (!L)
|
|
2876
2881
|
return;
|
|
2877
|
-
if (L.innerHTML = "", m("Loading next content..."), u(!1),
|
|
2882
|
+
if (L.innerHTML = "", m("Loading next content..."), u(!1), k.testMode) {
|
|
2878
2883
|
const F = document.createElement("div");
|
|
2879
|
-
F.className =
|
|
2884
|
+
F.className = xi, F.innerText = "Preview slot placeholder", L.appendChild(F), u(!0), (ee = s.value) == null || ee.call(s);
|
|
2880
2885
|
return;
|
|
2881
2886
|
}
|
|
2882
2887
|
if (typeof window == "undefined") {
|
|
@@ -2884,7 +2889,7 @@ const mo = () => {
|
|
|
2884
2889
|
return;
|
|
2885
2890
|
}
|
|
2886
2891
|
const D = document.createElement("ins");
|
|
2887
|
-
D.className = "adsbygoogle", D.style.display = "block", D.style.width = "100%", D.style.height = "100%", D.setAttribute("data-ad-client",
|
|
2892
|
+
D.className = "adsbygoogle", D.style.display = "block", D.style.width = "100%", D.style.height = "100%", D.setAttribute("data-ad-client", k.clientId), D.setAttribute("data-ad-slot", k.unitId), D.setAttribute("data-ad-format", "auto"), D.setAttribute("data-full-width-responsive", "true"), k.channelId && D.setAttribute("data-ad-channel", k.channelId), L.appendChild(D);
|
|
2888
2893
|
const B = new MutationObserver(() => {
|
|
2889
2894
|
var se;
|
|
2890
2895
|
const F = D.getAttribute("data-ad-status");
|
|
@@ -2903,37 +2908,37 @@ const mo = () => {
|
|
|
2903
2908
|
return () => {
|
|
2904
2909
|
B.disconnect(), L.innerHTML = "";
|
|
2905
2910
|
};
|
|
2906
|
-
}, [d.value,
|
|
2911
|
+
}, [d.value, k, s, p]), !d.value || !k)
|
|
2907
2912
|
return null;
|
|
2908
|
-
const
|
|
2913
|
+
const we = k.mode === "reward" ? "Next content unlocking" : "Content paused", te = h > 0 ? `Content resumes in ${h}s` : "Content ready";
|
|
2909
2914
|
return S("div", {
|
|
2910
|
-
className:
|
|
2915
|
+
className: ko,
|
|
2911
2916
|
children: S("div", {
|
|
2912
|
-
className:
|
|
2917
|
+
className: xo,
|
|
2913
2918
|
children: [S("div", {
|
|
2914
|
-
className:
|
|
2919
|
+
className: Eo,
|
|
2915
2920
|
children: [S("div", {
|
|
2916
2921
|
className: Io,
|
|
2917
|
-
children:
|
|
2922
|
+
children: we
|
|
2918
2923
|
}), S("div", {
|
|
2919
2924
|
className: Ro,
|
|
2920
2925
|
children: te
|
|
2921
2926
|
})]
|
|
2922
2927
|
}), S("div", {
|
|
2923
2928
|
className: To,
|
|
2924
|
-
ref:
|
|
2929
|
+
ref: x,
|
|
2925
2930
|
children: !c && S("div", {
|
|
2926
|
-
className:
|
|
2927
|
-
children:
|
|
2931
|
+
className: xi,
|
|
2932
|
+
children: w
|
|
2928
2933
|
})
|
|
2929
2934
|
}), S("div", {
|
|
2930
2935
|
className: Do,
|
|
2931
|
-
children:
|
|
2936
|
+
children: k.mode === "reward" ? S("button", {
|
|
2932
2937
|
className: Co,
|
|
2933
2938
|
type: "button",
|
|
2934
2939
|
onClick: () => _("viewed"),
|
|
2935
|
-
disabled: !
|
|
2936
|
-
children:
|
|
2940
|
+
disabled: !b,
|
|
2941
|
+
children: b ? "Continue" : `Continue in ${h}s`
|
|
2937
2942
|
}) : g && S("button", {
|
|
2938
2943
|
className: Oo,
|
|
2939
2944
|
type: "button",
|
|
@@ -2973,7 +2978,7 @@ class Bo {
|
|
|
2973
2978
|
async init() {
|
|
2974
2979
|
var e;
|
|
2975
2980
|
if (typeof document != "undefined") {
|
|
2976
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"),
|
|
2981
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), be(S(No, {
|
|
2977
2982
|
state: this.state
|
|
2978
2983
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay);
|
|
2979
2984
|
try {
|
|
@@ -3092,18 +3097,18 @@ class Bo {
|
|
|
3092
3097
|
breakName: e.name,
|
|
3093
3098
|
breakFormat: "interstitial",
|
|
3094
3099
|
breakStatus: "viewed"
|
|
3095
|
-
},
|
|
3100
|
+
}, b = () => {
|
|
3096
3101
|
var m;
|
|
3097
3102
|
this.adsIsShowing = !1, (m = e.afterAd) == null || m.call(e);
|
|
3098
3103
|
}, A = () => {
|
|
3099
3104
|
var m;
|
|
3100
3105
|
this.adsIsShowing = !1, (m = e.adBreakDone) == null || m.call(e, y);
|
|
3101
|
-
},
|
|
3102
|
-
var m,
|
|
3103
|
-
this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (m = e.afterAd) == null || m.call(e), (
|
|
3106
|
+
}, w = () => {
|
|
3107
|
+
var m, x;
|
|
3108
|
+
this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (m = e.afterAd) == null || m.call(e), (x = e.adBreakDone) == null || x.call(e, y);
|
|
3104
3109
|
};
|
|
3105
3110
|
P(() => {
|
|
3106
|
-
this.adsIsShowing = !0, this.state.afterAd.value =
|
|
3111
|
+
this.adsIsShowing = !0, this.state.afterAd.value = b, this.state.adBreakDone.value = A, this.state.adDismissed.value = null, this.state.adViewed.value = null, this.state.adError.value = w, this.showBannerOverlay("interstitial", o);
|
|
3107
3112
|
});
|
|
3108
3113
|
break;
|
|
3109
3114
|
}
|
|
@@ -3119,26 +3124,26 @@ class Bo {
|
|
|
3119
3124
|
breakName: e.name,
|
|
3120
3125
|
breakFormat: "reward",
|
|
3121
3126
|
breakStatus: "ignored"
|
|
3122
|
-
},
|
|
3127
|
+
}, b = () => {
|
|
3123
3128
|
var _;
|
|
3124
3129
|
this.adsIsShowing = !1, (_ = e.afterAd) == null || _.call(e);
|
|
3125
3130
|
}, A = () => {
|
|
3126
3131
|
var _;
|
|
3127
3132
|
this.adsIsShowing = !1, y.breakStatus = "dismissed", (_ = e.adDismissed) == null || _.call(e);
|
|
3128
|
-
},
|
|
3133
|
+
}, w = () => {
|
|
3129
3134
|
var _;
|
|
3130
3135
|
this.adsIsShowing = !1, y.breakStatus = "viewed", (_ = e.adViewed) == null || _.call(e);
|
|
3131
3136
|
}, m = () => {
|
|
3132
3137
|
var _;
|
|
3133
3138
|
this.adsIsShowing = !1, (_ = e.adBreakDone) == null || _.call(e, y);
|
|
3134
|
-
},
|
|
3139
|
+
}, x = () => {
|
|
3135
3140
|
var _, p;
|
|
3136
3141
|
this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (_ = e.afterAd) == null || _.call(e), (p = e.adBreakDone) == null || p.call(e, y);
|
|
3137
3142
|
};
|
|
3138
3143
|
P(() => {
|
|
3139
|
-
this.state.afterAd.value =
|
|
3144
|
+
this.state.afterAd.value = b, this.state.adDismissed.value = A, this.state.adViewed.value = w, this.state.adBreakDone.value = m, this.state.adError.value = x;
|
|
3140
3145
|
});
|
|
3141
|
-
const
|
|
3146
|
+
const k = () => {
|
|
3142
3147
|
var _, p;
|
|
3143
3148
|
if (!this.canDisplay(o.rewardUnitId)) {
|
|
3144
3149
|
this.lastUnDisplayedAdBreak = null, (_ = e.afterAd) == null || _.call(e), (p = e.adBreakDone) == null || p.call(e, {
|
|
@@ -3153,24 +3158,24 @@ class Bo {
|
|
|
3153
3158
|
this.showBannerOverlay("reward", o);
|
|
3154
3159
|
});
|
|
3155
3160
|
};
|
|
3156
|
-
this.lastUnDisplayedAdBreak = e, (g = e.beforeReward) == null || g.call(e,
|
|
3161
|
+
this.lastUnDisplayedAdBreak = e, (g = e.beforeReward) == null || g.call(e, k);
|
|
3157
3162
|
break;
|
|
3158
3163
|
}
|
|
3159
3164
|
}
|
|
3160
3165
|
}
|
|
3161
3166
|
}
|
|
3162
|
-
const
|
|
3167
|
+
const Ce = {};
|
|
3163
3168
|
window.addEventListener("message", (t) => {
|
|
3164
|
-
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" ||
|
|
3169
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || Ce[t.data.type] && Ce[t.data.type].forEach((e) => {
|
|
3165
3170
|
e(t.data.data);
|
|
3166
3171
|
});
|
|
3167
3172
|
});
|
|
3168
|
-
const
|
|
3169
|
-
|
|
3170
|
-
|
|
3173
|
+
const Ie = (t, e) => {
|
|
3174
|
+
Pe(() => (Ce[t] || (Ce[t] = /* @__PURE__ */ new Set()), Ce[t].add(e), () => {
|
|
3175
|
+
Ce[t].delete(e);
|
|
3171
3176
|
}), [t, e]);
|
|
3172
3177
|
}, sr = () => {
|
|
3173
|
-
const t =
|
|
3178
|
+
const t = E(), e = E(), i = E(), r = E(), n = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
3174
3179
|
return {
|
|
3175
3180
|
afterAd: t,
|
|
3176
3181
|
adDismissed: e,
|
|
@@ -3215,16 +3220,16 @@ const ke = (t, e) => {
|
|
|
3215
3220
|
visible: d,
|
|
3216
3221
|
src: l
|
|
3217
3222
|
} = e, [c, u] = xe(!1), h = (g) => {
|
|
3218
|
-
var y,
|
|
3219
|
-
u(!1), d.value = !1, g === "dismiss" ? (y = r.value) == null || y.call(r) : g === "viewed" && ((
|
|
3223
|
+
var y, b, A, w;
|
|
3224
|
+
u(!1), d.value = !1, g === "dismiss" ? (y = r.value) == null || y.call(r) : g === "viewed" && ((b = n.value) == null || b.call(n)), (A = i.value) == null || A.call(i), (w = o.value) == null || w.call(o);
|
|
3220
3225
|
}, v = () => {
|
|
3221
3226
|
var g;
|
|
3222
3227
|
(g = s.value) == null || g.call(s);
|
|
3223
3228
|
};
|
|
3224
|
-
return
|
|
3229
|
+
return Ie("appsrockets_ad_dismissed", () => h("dismiss")), Ie("appsrockets_ad_rewarded", () => h("viewed")), Ie("appsrockets_ad_completed", () => h("viewed")), Ie("appsrockets_ad_skipped", () => h("viewed")), Ie("appsrockets_ad_clicked", (g) => {
|
|
3225
3230
|
var y;
|
|
3226
3231
|
return (y = a.value) == null ? void 0 : y.call(a, g);
|
|
3227
|
-
}),
|
|
3232
|
+
}), Ie("appsrockets_ad_loaded", () => u(!0)), d.value ? S("div", {
|
|
3228
3233
|
className: Mo,
|
|
3229
3234
|
style: {
|
|
3230
3235
|
display: c ? "flex" : "none"
|
|
@@ -3267,7 +3272,7 @@ class Uo {
|
|
|
3267
3272
|
}
|
|
3268
3273
|
async init() {
|
|
3269
3274
|
var e;
|
|
3270
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"),
|
|
3275
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), be(S(ar, {
|
|
3271
3276
|
state: this.state
|
|
3272
3277
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
3273
3278
|
}
|
|
@@ -3322,19 +3327,19 @@ class Uo {
|
|
|
3322
3327
|
case "pause": {
|
|
3323
3328
|
(d = e.beforeAd) == null || d.call(e);
|
|
3324
3329
|
const v = () => {
|
|
3325
|
-
var
|
|
3326
|
-
this.adsIsShowing = !1, (
|
|
3330
|
+
var b;
|
|
3331
|
+
this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
|
|
3327
3332
|
}, g = () => {
|
|
3328
|
-
var
|
|
3329
|
-
this.adsIsShowing = !1, (
|
|
3333
|
+
var b;
|
|
3334
|
+
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, {
|
|
3330
3335
|
breakType: e.type,
|
|
3331
3336
|
breakName: e.name,
|
|
3332
3337
|
breakFormat: "interstitial",
|
|
3333
3338
|
breakStatus: "viewed"
|
|
3334
3339
|
});
|
|
3335
3340
|
}, y = () => {
|
|
3336
|
-
var
|
|
3337
|
-
this.adsIsShowing = !1, (
|
|
3341
|
+
var b;
|
|
3342
|
+
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, {
|
|
3338
3343
|
breakType: e.type,
|
|
3339
3344
|
breakName: e.name,
|
|
3340
3345
|
breakFormat: "interstitial",
|
|
@@ -3354,32 +3359,32 @@ class Uo {
|
|
|
3354
3359
|
breakStatus: "ignored"
|
|
3355
3360
|
}), this.lastUnDisplayedAdBreak = null), (u = e.beforeAd) == null || u.call(e);
|
|
3356
3361
|
const v = () => {
|
|
3357
|
-
var
|
|
3358
|
-
this.adsIsShowing = !1, (
|
|
3362
|
+
var x;
|
|
3363
|
+
this.adsIsShowing = !1, (x = e.afterAd) == null || x.call(e);
|
|
3359
3364
|
}, g = {
|
|
3360
3365
|
breakType: e.type,
|
|
3361
3366
|
breakName: e.name,
|
|
3362
3367
|
breakFormat: "reward",
|
|
3363
3368
|
breakStatus: "ignored"
|
|
3364
3369
|
}, y = () => {
|
|
3365
|
-
var
|
|
3366
|
-
this.adsIsShowing = !1, g.breakStatus = "dismissed", (
|
|
3367
|
-
}, w = () => {
|
|
3368
|
-
var E;
|
|
3369
|
-
this.adsIsShowing = !1, g.breakStatus = "viewed", (E = e.adViewed) == null || E.call(e);
|
|
3370
|
-
}, A = () => {
|
|
3371
|
-
var E;
|
|
3372
|
-
this.adsIsShowing = !1, (E = e.adBreakDone) == null || E.call(e, g);
|
|
3370
|
+
var x;
|
|
3371
|
+
this.adsIsShowing = !1, g.breakStatus = "dismissed", (x = e.adDismissed) == null || x.call(e);
|
|
3373
3372
|
}, b = () => {
|
|
3373
|
+
var x;
|
|
3374
|
+
this.adsIsShowing = !1, g.breakStatus = "viewed", (x = e.adViewed) == null || x.call(e);
|
|
3375
|
+
}, A = () => {
|
|
3376
|
+
var x;
|
|
3377
|
+
this.adsIsShowing = !1, (x = e.adBreakDone) == null || x.call(e, g);
|
|
3378
|
+
}, w = () => {
|
|
3374
3379
|
this.adsIsShowing = !1, g.breakStatus = "noAdPreloaded";
|
|
3375
3380
|
};
|
|
3376
3381
|
P(() => {
|
|
3377
|
-
this.state.afterAd.value = v, this.state.adDismissed.value = y, this.state.adViewed.value =
|
|
3382
|
+
this.state.afterAd.value = v, this.state.adDismissed.value = y, this.state.adViewed.value = b, this.state.adBreakDone.value = A, this.state.adLinkClicked.value = r, this.state.adError.value = w;
|
|
3378
3383
|
});
|
|
3379
3384
|
const m = () => {
|
|
3380
|
-
var
|
|
3385
|
+
var x;
|
|
3381
3386
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
3382
|
-
(
|
|
3387
|
+
(x = e.adBreakDone) == null || x.call(e, {
|
|
3383
3388
|
breakType: e.type,
|
|
3384
3389
|
breakName: e.name,
|
|
3385
3390
|
breakFormat: "reward",
|
|
@@ -3433,11 +3438,11 @@ let lr = class {
|
|
|
3433
3438
|
var s;
|
|
3434
3439
|
(s = this.rewardedSlot) == null || s.setTargeting(o, this.keyValue[o]);
|
|
3435
3440
|
}), Object.keys(this.keyValue).includes("project") || (n = this.rewardedSlot) == null || n.setTargeting("project", this.project)), googletag.display(this.rewardedSlot));
|
|
3436
|
-
}), V(this, "destroy", (n) => {
|
|
3437
|
-
var
|
|
3438
|
-
this.rewardedPayload = null, this.readyEvent = null, googletag.pubads().removeEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().removeEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().removeEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().removeEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.rewardedSlot && (googletag.destroySlots([this.rewardedSlot]), this.rewardedSlot = null), (
|
|
3439
|
-
}), V(this, "reinit", (n) => {
|
|
3440
|
-
this.destroy(n), this.init();
|
|
3441
|
+
}), V(this, "destroy", (n, o) => {
|
|
3442
|
+
var s, a;
|
|
3443
|
+
this.rewardedPayload = null, this.readyEvent = null, googletag.pubads().removeEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().removeEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().removeEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().removeEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.rewardedSlot && (googletag.destroySlots([this.rewardedSlot]), this.rewardedSlot = null), (a = (s = this.adsContext) == null ? void 0 : s.adBreakDone) == null || a.call(s, n, o), n !== "ignored" && (this.adsContext = null);
|
|
3444
|
+
}), V(this, "reinit", (n, o) => {
|
|
3445
|
+
this.destroy(n, o), this.init();
|
|
3441
3446
|
}), V(this, "handleSlotReady", (n) => {
|
|
3442
3447
|
n.slot === this.rewardedSlot && (this.readyEvent = n);
|
|
3443
3448
|
}), V(this, "handleSlotClosed", (n) => {
|
|
@@ -3445,14 +3450,22 @@ let lr = class {
|
|
|
3445
3450
|
if (this.adsContext && n.slot === this.rewardedSlot) {
|
|
3446
3451
|
const a = this.rewardedPayload ? "viewed" : "dismissed";
|
|
3447
3452
|
a === "viewed" ? this.adsContext.adViewed() : this.adsContext.adDismissed(), (s = (o = this.adsContext).afterAd) == null || s.call(o), this.withCommand(() => {
|
|
3448
|
-
this.reinit(a
|
|
3453
|
+
this.reinit(a, a === "dismissed" ? {
|
|
3454
|
+
breakReason: "reward_not_completed",
|
|
3455
|
+
breakStage: "ad_terminal"
|
|
3456
|
+
} : {
|
|
3457
|
+
breakStage: "ad_terminal"
|
|
3458
|
+
});
|
|
3449
3459
|
});
|
|
3450
3460
|
}
|
|
3451
3461
|
}), V(this, "handleSlotGranted", (n) => {
|
|
3452
3462
|
this.adsContext && n.slot === this.rewardedSlot && (this.rewardedPayload = n.payload);
|
|
3453
3463
|
}), V(this, "handleSlotRenderEnded", (n) => {
|
|
3454
3464
|
n.slot === this.rewardedSlot && n.isEmpty && this.adsContext && this.withCommand(() => {
|
|
3455
|
-
this.reinit("frequencyCapped"
|
|
3465
|
+
this.reinit("frequencyCapped", {
|
|
3466
|
+
breakReason: "gpt_reward_empty_render",
|
|
3467
|
+
breakStage: "provider_request"
|
|
3468
|
+
});
|
|
3456
3469
|
});
|
|
3457
3470
|
}), V(this, "requestAds", (n) => {
|
|
3458
3471
|
this.withCommand(() => {
|
|
@@ -3517,11 +3530,12 @@ class Jo {
|
|
|
3517
3530
|
(a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
|
|
3518
3531
|
}), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
|
|
3519
3532
|
}), Y(this, "destroy", function(o) {
|
|
3520
|
-
var
|
|
3521
|
-
|
|
3533
|
+
var d, l;
|
|
3534
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, a = arguments.length > 2 ? arguments[2] : void 0;
|
|
3535
|
+
s && ((l = (d = n.adsContext) == null ? void 0 : d.onEnd) == null || l.call(d, o, a), o !== "ignored" && (n.adsContext = null)), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", n.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", n.handleSlotClosed), n.gamingInterstitialSlot && (googletag.destroySlots([n.gamingInterstitialSlot]), n.gamingInterstitialSlot = null, n.readyEvent = null);
|
|
3522
3536
|
}), Y(this, "reinit", function(o) {
|
|
3523
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3524
|
-
n.destroy(o, s), n.init();
|
|
3537
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, a = arguments.length > 2 ? arguments[2] : void 0;
|
|
3538
|
+
n.destroy(o, s, a), n.init();
|
|
3525
3539
|
}), Y(this, "handleSlotReady", (o) => {
|
|
3526
3540
|
this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
|
|
3527
3541
|
}), Y(this, "handleSlotClosed", (o) => {
|
|
@@ -3540,9 +3554,15 @@ class Jo {
|
|
|
3540
3554
|
this.reinit("notReady");
|
|
3541
3555
|
return;
|
|
3542
3556
|
}
|
|
3543
|
-
this.readyEvent ? ((s = o.beforeAd) == null || s.call(o), this.readyEvent.makeGameManualInterstitialVisible()) : ((d = (a = this.adsContext).onEnd) == null || d.call(a, "frequencyCapped"
|
|
3557
|
+
this.readyEvent ? ((s = o.beforeAd) == null || s.call(o), this.readyEvent.makeGameManualInterstitialVisible()) : ((d = (a = this.adsContext).onEnd) == null || d.call(a, "frequencyCapped", {
|
|
3558
|
+
breakReason: "gpt_interstitial_not_ready",
|
|
3559
|
+
breakStage: "provider_request"
|
|
3560
|
+
}), this.adsContext = null, this.isRetrying || (this.isRetrying = !0, window.setTimeout(() => {
|
|
3544
3561
|
this.readyEvent || this.withCommand(() => {
|
|
3545
|
-
this.reinit("frequencyCapped", !1
|
|
3562
|
+
this.reinit("frequencyCapped", !1, {
|
|
3563
|
+
breakReason: "gpt_interstitial_not_ready",
|
|
3564
|
+
breakStage: "provider_request"
|
|
3565
|
+
});
|
|
3546
3566
|
}), this.isRetrying = !1;
|
|
3547
3567
|
}, 31e3)));
|
|
3548
3568
|
});
|
|
@@ -3551,7 +3571,7 @@ class Jo {
|
|
|
3551
3571
|
});
|
|
3552
3572
|
}
|
|
3553
3573
|
}
|
|
3554
|
-
function
|
|
3574
|
+
function ke(t, e, i) {
|
|
3555
3575
|
return (e = Go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3556
3576
|
}
|
|
3557
3577
|
function Go(t) {
|
|
@@ -3572,7 +3592,7 @@ function zo(t, e) {
|
|
|
3572
3592
|
}
|
|
3573
3593
|
class Ho {
|
|
3574
3594
|
constructor(e, i) {
|
|
3575
|
-
|
|
3595
|
+
ke(this, "name", "GOOGLE_GPT"), ke(this, "context", void 0), ke(this, "contextInfo", void 0), ke(this, "initParams", void 0), ke(this, "rewardAdManager", void 0), ke(this, "interstitialManager", void 0), ke(this, "insertScript", () => {
|
|
3576
3596
|
const r = "jolibox-google-gpt";
|
|
3577
3597
|
let n = document.getElementById(r);
|
|
3578
3598
|
n || (n = window.document.createElement("script"), n.id = r, n.async = !0, n.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", n.crossOrigin = "anonymous", document.head.appendChild(n));
|
|
@@ -3591,7 +3611,9 @@ class Ho {
|
|
|
3591
3611
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
3592
3612
|
breakType: "preroll",
|
|
3593
3613
|
breakFormat: "interstitial",
|
|
3594
|
-
breakStatus: "noAdPreloaded"
|
|
3614
|
+
breakStatus: "noAdPreloaded",
|
|
3615
|
+
breakReason: "unknown_no_ad_preloaded",
|
|
3616
|
+
breakStage: "provider_request"
|
|
3595
3617
|
});
|
|
3596
3618
|
break;
|
|
3597
3619
|
}
|
|
@@ -3601,7 +3623,9 @@ class Ho {
|
|
|
3601
3623
|
breakName: e.name,
|
|
3602
3624
|
breakType: e.type,
|
|
3603
3625
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3604
|
-
breakStatus: "noAdPreloaded"
|
|
3626
|
+
breakStatus: "noAdPreloaded",
|
|
3627
|
+
breakReason: "provider_missing",
|
|
3628
|
+
breakStage: "provider_request"
|
|
3605
3629
|
});
|
|
3606
3630
|
return;
|
|
3607
3631
|
}
|
|
@@ -3611,14 +3635,14 @@ class Ho {
|
|
|
3611
3635
|
adDismissed: e.adDismissed,
|
|
3612
3636
|
adViewed: e.adViewed,
|
|
3613
3637
|
beforeReward: e.beforeReward,
|
|
3614
|
-
adBreakDone: (s) => {
|
|
3615
|
-
var
|
|
3616
|
-
(
|
|
3638
|
+
adBreakDone: (s, a) => {
|
|
3639
|
+
var d;
|
|
3640
|
+
(d = e.adBreakDone) == null || d.call(e, me({
|
|
3617
3641
|
breakName: e.name,
|
|
3618
3642
|
breakType: e.type,
|
|
3619
3643
|
breakFormat: "reward",
|
|
3620
3644
|
breakStatus: s
|
|
3621
|
-
});
|
|
3645
|
+
}, a));
|
|
3622
3646
|
}
|
|
3623
3647
|
});
|
|
3624
3648
|
break;
|
|
@@ -3629,21 +3653,23 @@ class Ho {
|
|
|
3629
3653
|
breakName: e.name,
|
|
3630
3654
|
breakType: e.type,
|
|
3631
3655
|
breakFormat: "interstitial",
|
|
3632
|
-
breakStatus: "noAdPreloaded"
|
|
3656
|
+
breakStatus: "noAdPreloaded",
|
|
3657
|
+
breakReason: "provider_missing",
|
|
3658
|
+
breakStage: "provider_request"
|
|
3633
3659
|
});
|
|
3634
3660
|
return;
|
|
3635
3661
|
}
|
|
3636
3662
|
this.interstitialManager.requestAds({
|
|
3637
3663
|
beforeAd: e.beforeAd,
|
|
3638
3664
|
afterAd: e.afterAd,
|
|
3639
|
-
onEnd: (s) => {
|
|
3640
|
-
var
|
|
3641
|
-
(
|
|
3665
|
+
onEnd: (s, a) => {
|
|
3666
|
+
var d;
|
|
3667
|
+
(d = e.adBreakDone) == null || d.call(e, me({
|
|
3642
3668
|
breakName: e.name,
|
|
3643
3669
|
breakType: e.type,
|
|
3644
3670
|
breakFormat: "interstitial",
|
|
3645
3671
|
breakStatus: s
|
|
3646
|
-
});
|
|
3672
|
+
}, a));
|
|
3647
3673
|
}
|
|
3648
3674
|
});
|
|
3649
3675
|
break;
|
|
@@ -3651,7 +3677,7 @@ class Ho {
|
|
|
3651
3677
|
}
|
|
3652
3678
|
}
|
|
3653
3679
|
}
|
|
3654
|
-
function
|
|
3680
|
+
function xt(t, e, i) {
|
|
3655
3681
|
return (e = Wo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3656
3682
|
}
|
|
3657
3683
|
function Wo(t) {
|
|
@@ -3673,7 +3699,7 @@ function Yo(t, e) {
|
|
|
3673
3699
|
class Xo {
|
|
3674
3700
|
constructor(e) {
|
|
3675
3701
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
3676
|
-
|
|
3702
|
+
xt(this, "context", void 0), xt(this, "placement", "GAME"), xt(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
3677
3703
|
}
|
|
3678
3704
|
getLocation() {
|
|
3679
3705
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -3719,22 +3745,22 @@ class Xo {
|
|
|
3719
3745
|
return qr(n);
|
|
3720
3746
|
}
|
|
3721
3747
|
}
|
|
3722
|
-
const
|
|
3748
|
+
const Ei = "__jolibox_ads_trace__key__", Et = () => {
|
|
3723
3749
|
var t;
|
|
3724
3750
|
try {
|
|
3725
|
-
return window.__jolibox_ads_trace__key__ === !0 || ((t = window.localStorage) == null ? void 0 : t.getItem(
|
|
3751
|
+
return window.__jolibox_ads_trace__key__ === !0 || ((t = window.localStorage) == null ? void 0 : t.getItem(Ei)) === "1" || new URLSearchParams(window.location.search).get(Ei) === "1";
|
|
3726
3752
|
} catch (e) {
|
|
3727
3753
|
return !1;
|
|
3728
3754
|
}
|
|
3729
3755
|
}, f = {
|
|
3730
3756
|
log: function() {
|
|
3731
|
-
|
|
3757
|
+
Et() && console.log(...arguments);
|
|
3732
3758
|
},
|
|
3733
3759
|
warn: function() {
|
|
3734
|
-
|
|
3760
|
+
Et() && console.warn(...arguments);
|
|
3735
3761
|
},
|
|
3736
3762
|
error: function() {
|
|
3737
|
-
|
|
3763
|
+
Et() && console.error(...arguments);
|
|
3738
3764
|
}
|
|
3739
3765
|
};
|
|
3740
3766
|
function G(t, e, i) {
|
|
@@ -3952,7 +3978,7 @@ class ur {
|
|
|
3952
3978
|
const {
|
|
3953
3979
|
errNo: i,
|
|
3954
3980
|
errMsg: r
|
|
3955
|
-
} = await
|
|
3981
|
+
} = await wt("loadAdsAsync", {
|
|
3956
3982
|
params: {
|
|
3957
3983
|
providers: e.providers
|
|
3958
3984
|
}
|
|
@@ -3981,7 +4007,7 @@ class ur {
|
|
|
3981
4007
|
}
|
|
3982
4008
|
}
|
|
3983
4009
|
canIUse() {
|
|
3984
|
-
const e = this.getTraceContext(), i =
|
|
4010
|
+
const e = this.getTraceContext(), i = ct(), r = this.canIUseHelper("loadAdsAsync"), n = this.canIUseHelper("showAdAsync"), o = i && r && n;
|
|
3985
4011
|
return f.log("[Jolibox SDK Ads][Trace][NativeHelper] canIUse", {
|
|
3986
4012
|
context: e,
|
|
3987
4013
|
nativeFlag: i,
|
|
@@ -4001,7 +4027,7 @@ class ur {
|
|
|
4001
4027
|
context: this.getTraceContext(),
|
|
4002
4028
|
providers: e.providers
|
|
4003
4029
|
});
|
|
4004
|
-
const i = await
|
|
4030
|
+
const i = await wt("showAdAsync", {
|
|
4005
4031
|
params: {
|
|
4006
4032
|
providers: e.providers
|
|
4007
4033
|
}
|
|
@@ -4072,7 +4098,7 @@ class ur {
|
|
|
4072
4098
|
const {
|
|
4073
4099
|
errNo: i,
|
|
4074
4100
|
data: r
|
|
4075
|
-
} =
|
|
4101
|
+
} = wt("isAdsReadySync", {
|
|
4076
4102
|
params: {
|
|
4077
4103
|
providers: e.providers
|
|
4078
4104
|
}
|
|
@@ -4126,18 +4152,18 @@ class ss {
|
|
|
4126
4152
|
isAdsReady: this._isAdsReady,
|
|
4127
4153
|
providers: this.providers
|
|
4128
4154
|
});
|
|
4129
|
-
}), ve(this, "destroy", (r) => {
|
|
4130
|
-
var
|
|
4155
|
+
}), ve(this, "destroy", (r, n) => {
|
|
4156
|
+
var o, s;
|
|
4131
4157
|
f.log("[Jolibox SDK Ads][Trace][Reward] destroy", {
|
|
4132
4158
|
breakStatus: r,
|
|
4133
4159
|
hasAdsContext: !!this.adsContext,
|
|
4134
4160
|
isAdsReady: this._isAdsReady
|
|
4135
|
-
}), this._isAdsReady = !1, (
|
|
4136
|
-
}), ve(this, "reinit", async (r) => {
|
|
4161
|
+
}), this._isAdsReady = !1, (s = (o = this.adsContext) == null ? void 0 : o.adBreakDone) == null || s.call(o, r, n), r !== "ignored" && (this.adsContext = null);
|
|
4162
|
+
}), ve(this, "reinit", async (r, n) => {
|
|
4137
4163
|
f.log("[Jolibox SDK Ads][Trace][Reward] reinit start", {
|
|
4138
4164
|
breakStatus: r,
|
|
4139
4165
|
providers: this.providers
|
|
4140
|
-
}), this.destroy(r), await this.init(), f.log("[Jolibox SDK Ads][Trace][Reward] reinit end", {
|
|
4166
|
+
}), this.destroy(r, n), await this.init(), f.log("[Jolibox SDK Ads][Trace][Reward] reinit end", {
|
|
4141
4167
|
breakStatus: r,
|
|
4142
4168
|
isAdsReady: this._isAdsReady,
|
|
4143
4169
|
providers: this.providers
|
|
@@ -4160,7 +4186,10 @@ class ss {
|
|
|
4160
4186
|
providers: this.providers
|
|
4161
4187
|
}), this.showAd()) : (f.log("[Jolibox SDK Ads][Trace][Reward] requestAds not ready -> reinit only", {
|
|
4162
4188
|
providers: this.providers
|
|
4163
|
-
}), await this.reinit("frequencyCapped"
|
|
4189
|
+
}), await this.reinit("frequencyCapped", {
|
|
4190
|
+
breakReason: "native_reward_not_ready",
|
|
4191
|
+
breakStage: "provider_request"
|
|
4192
|
+
}));
|
|
4164
4193
|
} catch (o) {
|
|
4165
4194
|
f.error("[Jolibox SDK Ads][Trace][Reward] requestAds error", {
|
|
4166
4195
|
error: o,
|
|
@@ -4185,7 +4214,12 @@ class ss {
|
|
|
4185
4214
|
status: c,
|
|
4186
4215
|
rewarded: r,
|
|
4187
4216
|
providers: this.providers
|
|
4188
|
-
}), c === "dismissed" && ((u = this.adsContext) == null || u.adDismissed()), (v = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || v.call(h), this.reinit(c
|
|
4217
|
+
}), c === "dismissed" && ((u = this.adsContext) == null || u.adDismissed()), (v = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || v.call(h), this.reinit(c, c === "dismissed" ? {
|
|
4218
|
+
breakReason: "reward_not_completed",
|
|
4219
|
+
breakStage: "ad_terminal"
|
|
4220
|
+
} : {
|
|
4221
|
+
breakStage: "ad_terminal"
|
|
4222
|
+
}));
|
|
4189
4223
|
}, s = {
|
|
4190
4224
|
onAdShow: () => {
|
|
4191
4225
|
},
|
|
@@ -4209,7 +4243,10 @@ class ss {
|
|
|
4209
4243
|
f.log("[Jolibox SDK Ads][Trace][Reward] showAd showAdAsync result", {
|
|
4210
4244
|
providers: this.providers,
|
|
4211
4245
|
result: a
|
|
4212
|
-
}), a.code !== "SUCCESS" && this.reinit("noAdPreloaded"
|
|
4246
|
+
}), a.code !== "SUCCESS" && this.reinit("noAdPreloaded", {
|
|
4247
|
+
breakReason: "native_show_failed",
|
|
4248
|
+
breakStage: "native_show"
|
|
4249
|
+
});
|
|
4213
4250
|
});
|
|
4214
4251
|
}), this.providers = i, this.helper = new ur(e), this.init();
|
|
4215
4252
|
}
|
|
@@ -4259,21 +4296,21 @@ class ls {
|
|
|
4259
4296
|
providers: this.providers
|
|
4260
4297
|
});
|
|
4261
4298
|
}), ge(this, "destroy", function(n) {
|
|
4262
|
-
var
|
|
4263
|
-
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
4299
|
+
var a, d;
|
|
4300
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, s = arguments.length > 2 ? arguments[2] : void 0;
|
|
4264
4301
|
f.log("[Jolibox SDK Ads][Trace][Interstitial] destroy", {
|
|
4265
4302
|
endReason: n,
|
|
4266
4303
|
clearContext: o,
|
|
4267
4304
|
hasAdsContext: !!r.adsContext,
|
|
4268
4305
|
isAdsReady: r._isAdsReady
|
|
4269
|
-
}), r._isAdsReady = !1, o && ((
|
|
4306
|
+
}), r._isAdsReady = !1, o && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, n, s), n !== "ignored" && (r.adsContext = null));
|
|
4270
4307
|
}), ge(this, "reinit", async function(n) {
|
|
4271
|
-
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
4308
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, s = arguments.length > 2 ? arguments[2] : void 0;
|
|
4272
4309
|
f.log("[Jolibox SDK Ads][Trace][Interstitial] reinit start", {
|
|
4273
4310
|
endReason: n,
|
|
4274
4311
|
clearContext: o,
|
|
4275
4312
|
providers: r.providers
|
|
4276
|
-
}), r.destroy(n, o), await r.init(), f.log("[Jolibox SDK Ads][Trace][Interstitial] reinit end", {
|
|
4313
|
+
}), r.destroy(n, o, s), await r.init(), f.log("[Jolibox SDK Ads][Trace][Interstitial] reinit end", {
|
|
4277
4314
|
endReason: n,
|
|
4278
4315
|
clearContext: o,
|
|
4279
4316
|
isAdsReady: r._isAdsReady,
|
|
@@ -4297,7 +4334,10 @@ class ls {
|
|
|
4297
4334
|
providers: this.providers
|
|
4298
4335
|
}), await this.showAd()) : (f.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds not ready -> reinit only", {
|
|
4299
4336
|
providers: this.providers
|
|
4300
|
-
}), await this.reinit("frequencyCapped"
|
|
4337
|
+
}), await this.reinit("frequencyCapped", !0, {
|
|
4338
|
+
breakReason: "native_interstitial_not_ready",
|
|
4339
|
+
breakStage: "provider_request"
|
|
4340
|
+
}));
|
|
4301
4341
|
} catch (s) {
|
|
4302
4342
|
f.error("[Jolibox SDK Ads][Trace][Interstitial] requestAds error", {
|
|
4303
4343
|
error: s,
|
|
@@ -4320,7 +4360,12 @@ class ls {
|
|
|
4320
4360
|
n || (n = !0, f.log("[Jolibox SDK Ads][Trace][Interstitial] showAd terminal", {
|
|
4321
4361
|
status: c,
|
|
4322
4362
|
providers: this.providers
|
|
4323
|
-
}), (h = (u = this.adsContext) == null ? void 0 : u.afterAd) == null || h.call(u), this.reinit(c
|
|
4363
|
+
}), (h = (u = this.adsContext) == null ? void 0 : u.afterAd) == null || h.call(u), this.reinit(c, !0, c === "dismissed" ? {
|
|
4364
|
+
breakReason: "interstitial_dismissed",
|
|
4365
|
+
breakStage: "ad_terminal"
|
|
4366
|
+
} : {
|
|
4367
|
+
breakStage: "ad_terminal"
|
|
4368
|
+
}));
|
|
4324
4369
|
}, s = {
|
|
4325
4370
|
onAdShow: () => {
|
|
4326
4371
|
},
|
|
@@ -4340,11 +4385,14 @@ class ls {
|
|
|
4340
4385
|
f.log("[Jolibox SDK Ads][Trace][Interstitial] showAd showAdAsync result", {
|
|
4341
4386
|
providers: this.providers,
|
|
4342
4387
|
result: a
|
|
4343
|
-
}), a.code !== "SUCCESS" && this.reinit("noAdPreloaded"
|
|
4388
|
+
}), a.code !== "SUCCESS" && this.reinit("noAdPreloaded", !0, {
|
|
4389
|
+
breakReason: "native_show_failed",
|
|
4390
|
+
breakStage: "native_show"
|
|
4391
|
+
});
|
|
4344
4392
|
}), this.providers = i, this.helper = new ur(e), this.init();
|
|
4345
4393
|
}
|
|
4346
4394
|
}
|
|
4347
|
-
function
|
|
4395
|
+
function je(t, e, i) {
|
|
4348
4396
|
return (e = cs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4349
4397
|
}
|
|
4350
4398
|
function cs(t) {
|
|
@@ -4365,7 +4413,7 @@ function us(t, e) {
|
|
|
4365
4413
|
}
|
|
4366
4414
|
class hs {
|
|
4367
4415
|
constructor(e, i) {
|
|
4368
|
-
|
|
4416
|
+
je(this, "name", "INTERNAL_NATIVE"), je(this, "context", void 0), je(this, "rewardAdManager", void 0), je(this, "interstitialManager", void 0), je(this, "initProviders", void 0), this.context = e, this.initProviders = i.providers;
|
|
4369
4417
|
const r = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL", "NATIVE"], i.providers), n = this.getConfigsByTypes(["INTERSTITIAL"], i.providers);
|
|
4370
4418
|
f.log("[Jolibox SDK Ads][Trace][NativeProvider] constructor", {
|
|
4371
4419
|
initProviders: i.providers.map((o) => ({
|
|
@@ -4421,7 +4469,9 @@ class hs {
|
|
|
4421
4469
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
4422
4470
|
breakType: "preroll",
|
|
4423
4471
|
breakFormat: "interstitial",
|
|
4424
|
-
breakStatus: "noAdPreloaded"
|
|
4472
|
+
breakStatus: "noAdPreloaded",
|
|
4473
|
+
breakReason: "native_preroll_not_supported",
|
|
4474
|
+
breakStage: "provider_request"
|
|
4425
4475
|
});
|
|
4426
4476
|
break;
|
|
4427
4477
|
}
|
|
@@ -4431,7 +4481,9 @@ class hs {
|
|
|
4431
4481
|
breakName: e.name,
|
|
4432
4482
|
breakType: e.type,
|
|
4433
4483
|
breakFormat: "reward",
|
|
4434
|
-
breakStatus: "noAdPreloaded"
|
|
4484
|
+
breakStatus: "noAdPreloaded",
|
|
4485
|
+
breakReason: "native_manager_missing",
|
|
4486
|
+
breakStage: "provider_request"
|
|
4435
4487
|
});
|
|
4436
4488
|
return;
|
|
4437
4489
|
}
|
|
@@ -4445,14 +4497,14 @@ class hs {
|
|
|
4445
4497
|
adDismissed: e.adDismissed,
|
|
4446
4498
|
adViewed: e.adViewed,
|
|
4447
4499
|
beforeReward: e.beforeReward,
|
|
4448
|
-
adBreakDone: (a) => {
|
|
4449
|
-
var
|
|
4450
|
-
(
|
|
4500
|
+
adBreakDone: (a, d) => {
|
|
4501
|
+
var l;
|
|
4502
|
+
(l = e.adBreakDone) == null || l.call(e, me({
|
|
4451
4503
|
breakName: e.name,
|
|
4452
4504
|
breakType: e.type,
|
|
4453
4505
|
breakFormat: "reward",
|
|
4454
4506
|
breakStatus: a
|
|
4455
|
-
});
|
|
4507
|
+
}, d));
|
|
4456
4508
|
}
|
|
4457
4509
|
}, s);
|
|
4458
4510
|
break;
|
|
@@ -4464,7 +4516,9 @@ class hs {
|
|
|
4464
4516
|
breakName: s.name,
|
|
4465
4517
|
breakType: e.type,
|
|
4466
4518
|
breakFormat: "interstitial",
|
|
4467
|
-
breakStatus: "noAdPreloaded"
|
|
4519
|
+
breakStatus: "noAdPreloaded",
|
|
4520
|
+
breakReason: "native_manager_missing",
|
|
4521
|
+
breakStage: "provider_request"
|
|
4468
4522
|
});
|
|
4469
4523
|
return;
|
|
4470
4524
|
}
|
|
@@ -4475,14 +4529,14 @@ class hs {
|
|
|
4475
4529
|
}), this.interstitialManager.requestAds({
|
|
4476
4530
|
beforeAd: s.beforeAd,
|
|
4477
4531
|
afterAd: s.afterAd,
|
|
4478
|
-
onEnd: (d) => {
|
|
4479
|
-
var
|
|
4480
|
-
(
|
|
4532
|
+
onEnd: (d, l) => {
|
|
4533
|
+
var c;
|
|
4534
|
+
(c = e.adBreakDone) == null || c.call(e, me({
|
|
4481
4535
|
breakName: s.name,
|
|
4482
4536
|
breakType: e.type,
|
|
4483
4537
|
breakFormat: "interstitial",
|
|
4484
4538
|
breakStatus: d
|
|
4485
|
-
});
|
|
4539
|
+
}, l));
|
|
4486
4540
|
}
|
|
4487
4541
|
}, a);
|
|
4488
4542
|
break;
|
|
@@ -4537,14 +4591,14 @@ function hr(t) {
|
|
|
4537
4591
|
function gs(t) {
|
|
4538
4592
|
return hr([t]);
|
|
4539
4593
|
}
|
|
4540
|
-
const
|
|
4594
|
+
const dt = () => {
|
|
4541
4595
|
try {
|
|
4542
4596
|
if (window.parent && window.parent !== window)
|
|
4543
4597
|
return gs("GameSDK");
|
|
4544
4598
|
} catch (t) {
|
|
4545
4599
|
}
|
|
4546
4600
|
};
|
|
4547
|
-
function
|
|
4601
|
+
function Re(t, e, i) {
|
|
4548
4602
|
return (e = ys(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4549
4603
|
}
|
|
4550
4604
|
function ys(t) {
|
|
@@ -4563,11 +4617,11 @@ function As(t, e) {
|
|
|
4563
4617
|
}
|
|
4564
4618
|
return (e === "string" ? String : Number)(t);
|
|
4565
4619
|
}
|
|
4566
|
-
class
|
|
4620
|
+
class bs {
|
|
4567
4621
|
constructor() {
|
|
4568
|
-
|
|
4622
|
+
Re(this, "adsContext", null), Re(this, "init", async () => {
|
|
4569
4623
|
console.log("[JoliboxSDK] NewsBreak init");
|
|
4570
|
-
const e =
|
|
4624
|
+
const e = dt();
|
|
4571
4625
|
if (e)
|
|
4572
4626
|
try {
|
|
4573
4627
|
const i = await e.createRewardAd({
|
|
@@ -4577,24 +4631,24 @@ class ws {
|
|
|
4577
4631
|
} catch (i) {
|
|
4578
4632
|
console.log("[JoliboxSDK] NewsBreak init createRewardAd error:", i);
|
|
4579
4633
|
}
|
|
4580
|
-
}),
|
|
4634
|
+
}), Re(this, "destroy", (e) => {
|
|
4581
4635
|
var i, r;
|
|
4582
4636
|
(r = (i = this.adsContext) == null ? void 0 : i.adBreakDone) == null || r.call(i, e), e !== "ignored" && (this.adsContext = null);
|
|
4583
|
-
}),
|
|
4637
|
+
}), Re(this, "reinit", async (e) => {
|
|
4584
4638
|
console.log("[JoliboxSDK] NewsBreak reinit breakStatus:", e), this.destroy(e), await this.init();
|
|
4585
|
-
}),
|
|
4639
|
+
}), Re(this, "requestAds", async (e) => {
|
|
4586
4640
|
if (console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext", this.adsContext), this.adsContext) {
|
|
4587
4641
|
this.destroy("ignored");
|
|
4588
4642
|
return;
|
|
4589
4643
|
}
|
|
4590
4644
|
this.adsContext = e;
|
|
4591
|
-
const i =
|
|
4645
|
+
const i = dt();
|
|
4592
4646
|
if (console.log("[JoliboxSDK] NewsBreak newsbreak sdk", i), !i) {
|
|
4593
4647
|
this.destroy("notReady");
|
|
4594
4648
|
return;
|
|
4595
4649
|
}
|
|
4596
4650
|
this.showAd();
|
|
4597
|
-
}),
|
|
4651
|
+
}), Re(this, "showAd", () => {
|
|
4598
4652
|
if (console.log("[JoliboxSDK] NewsBreak showAd"), !this.adsContext) {
|
|
4599
4653
|
this.destroy("error");
|
|
4600
4654
|
return;
|
|
@@ -4602,29 +4656,29 @@ class ws {
|
|
|
4602
4656
|
this.adsContext.beforeReward(async () => {
|
|
4603
4657
|
var i, r, n, o, s, a, d, l, c, u, h, v, g, y;
|
|
4604
4658
|
(r = (i = this.adsContext) == null ? void 0 : i.beforeAd) == null || r.call(i);
|
|
4605
|
-
const e =
|
|
4659
|
+
const e = dt();
|
|
4606
4660
|
if (!e) {
|
|
4607
4661
|
(o = (n = this.adsContext) == null ? void 0 : n.afterAd) == null || o.call(n), this.reinit("error");
|
|
4608
4662
|
return;
|
|
4609
4663
|
}
|
|
4610
4664
|
try {
|
|
4611
|
-
const
|
|
4612
|
-
if (console.log("[JoliboxSDK] NewsBreak showRewardAd result:",
|
|
4665
|
+
const b = await e.showRewardAd();
|
|
4666
|
+
if (console.log("[JoliboxSDK] NewsBreak showRewardAd result:", b), !b.success) {
|
|
4613
4667
|
(a = (s = this.adsContext) == null ? void 0 : s.afterAd) == null || a.call(s), this.reinit("error");
|
|
4614
4668
|
return;
|
|
4615
4669
|
}
|
|
4616
|
-
|
|
4617
|
-
} catch (
|
|
4618
|
-
console.error("[JoliboxSDK] NewsBreak showRewardAd failed:",
|
|
4670
|
+
b.rewardGranted ? ((d = this.adsContext) == null || d.adViewed(), (c = (l = this.adsContext) == null ? void 0 : l.afterAd) == null || c.call(l), this.reinit("viewed")) : ((u = this.adsContext) == null || u.adDismissed(), (v = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || v.call(h), this.reinit("dismissed"));
|
|
4671
|
+
} catch (b) {
|
|
4672
|
+
console.error("[JoliboxSDK] NewsBreak showRewardAd failed:", b), (y = (g = this.adsContext) == null ? void 0 : g.afterAd) == null || y.call(g), this.reinit("error");
|
|
4619
4673
|
}
|
|
4620
4674
|
});
|
|
4621
4675
|
}), this.init();
|
|
4622
4676
|
}
|
|
4623
4677
|
}
|
|
4624
4678
|
function Ri(t, e, i) {
|
|
4625
|
-
return (e =
|
|
4679
|
+
return (e = ws(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4626
4680
|
}
|
|
4627
|
-
function
|
|
4681
|
+
function ws(t) {
|
|
4628
4682
|
var e = ps(t, "string");
|
|
4629
4683
|
return typeof e == "symbol" ? e : e + "";
|
|
4630
4684
|
}
|
|
@@ -4645,12 +4699,12 @@ class _s {
|
|
|
4645
4699
|
Ri(this, "name", "NEWSBREAK"), Ri(this, "rewardAdManager", void 0);
|
|
4646
4700
|
}
|
|
4647
4701
|
async init() {
|
|
4648
|
-
const e =
|
|
4702
|
+
const e = dt();
|
|
4649
4703
|
if (!e) {
|
|
4650
4704
|
console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");
|
|
4651
4705
|
return;
|
|
4652
4706
|
}
|
|
4653
|
-
e.onEnter(), this.rewardAdManager = new
|
|
4707
|
+
e.onEnter(), this.rewardAdManager = new bs();
|
|
4654
4708
|
}
|
|
4655
4709
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4656
4710
|
adConfig(e, i) {
|
|
@@ -4662,7 +4716,9 @@ class _s {
|
|
|
4662
4716
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
4663
4717
|
breakType: e.type,
|
|
4664
4718
|
breakFormat: "reward",
|
|
4665
|
-
breakStatus: "noAdPreloaded"
|
|
4719
|
+
breakStatus: "noAdPreloaded",
|
|
4720
|
+
breakReason: "provider_missing",
|
|
4721
|
+
breakStage: "provider_request"
|
|
4666
4722
|
});
|
|
4667
4723
|
return;
|
|
4668
4724
|
}
|
|
@@ -4671,7 +4727,9 @@ class _s {
|
|
|
4671
4727
|
breakName: e.name,
|
|
4672
4728
|
breakType: e.type,
|
|
4673
4729
|
breakFormat: "reward",
|
|
4674
|
-
breakStatus: "noAdPreloaded"
|
|
4730
|
+
breakStatus: "noAdPreloaded",
|
|
4731
|
+
breakReason: "provider_missing",
|
|
4732
|
+
breakStage: "provider_request"
|
|
4675
4733
|
});
|
|
4676
4734
|
return;
|
|
4677
4735
|
}
|
|
@@ -4687,7 +4745,9 @@ class _s {
|
|
|
4687
4745
|
breakName: e.name,
|
|
4688
4746
|
breakType: e.type,
|
|
4689
4747
|
breakFormat: "reward",
|
|
4690
|
-
breakStatus: o
|
|
4748
|
+
breakStatus: o,
|
|
4749
|
+
breakReason: o === "dismissed" ? "reward_not_completed" : void 0,
|
|
4750
|
+
breakStage: o === "dismissed" ? "ad_terminal" : void 0
|
|
4691
4751
|
});
|
|
4692
4752
|
}
|
|
4693
4753
|
});
|
|
@@ -4792,7 +4852,7 @@ class oa {
|
|
|
4792
4852
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
4793
4853
|
}
|
|
4794
4854
|
async adBreak(e) {
|
|
4795
|
-
var n, o, s, a, d, l, c, u, h, v, g, y,
|
|
4855
|
+
var n, o, s, a, d, l, c, u, h, v, g, y, b, A, w, m, x, k;
|
|
4796
4856
|
const i = Date.now(), r = i - this.initializedTimeStamp;
|
|
4797
4857
|
if (f.log("[Jolibox SDK Ads][Trace] adBreak:start", {
|
|
4798
4858
|
type: e.type,
|
|
@@ -4809,7 +4869,9 @@ class oa {
|
|
|
4809
4869
|
breakType: e.type,
|
|
4810
4870
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4811
4871
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4812
|
-
breakStatus: "noAdPreloaded"
|
|
4872
|
+
breakStatus: "noAdPreloaded",
|
|
4873
|
+
breakReason: "called_too_soon_after_init",
|
|
4874
|
+
breakStage: "before_ads_info"
|
|
4813
4875
|
});
|
|
4814
4876
|
return;
|
|
4815
4877
|
}
|
|
@@ -4821,7 +4883,9 @@ class oa {
|
|
|
4821
4883
|
breakType: e.type,
|
|
4822
4884
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4823
4885
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4824
|
-
breakStatus: "frequencyCapped"
|
|
4886
|
+
breakStatus: "frequencyCapped",
|
|
4887
|
+
breakReason: "too_frequently_500ms",
|
|
4888
|
+
breakStage: "before_provider"
|
|
4825
4889
|
});
|
|
4826
4890
|
return;
|
|
4827
4891
|
}
|
|
@@ -4832,7 +4896,9 @@ class oa {
|
|
|
4832
4896
|
breakType: e.type,
|
|
4833
4897
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4834
4898
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4835
|
-
breakStatus: "frequencyCapped"
|
|
4899
|
+
breakStatus: "frequencyCapped",
|
|
4900
|
+
breakReason: "ad_already_showing",
|
|
4901
|
+
breakStage: "before_provider"
|
|
4836
4902
|
});
|
|
4837
4903
|
return;
|
|
4838
4904
|
}
|
|
@@ -4864,7 +4930,9 @@ class oa {
|
|
|
4864
4930
|
breakType: e.type,
|
|
4865
4931
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4866
4932
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4867
|
-
breakStatus: "noAdPreloaded"
|
|
4933
|
+
breakStatus: "noAdPreloaded",
|
|
4934
|
+
breakReason: "network_not_ready",
|
|
4935
|
+
breakStage: "before_ads_info"
|
|
4868
4936
|
});
|
|
4869
4937
|
return;
|
|
4870
4938
|
}
|
|
@@ -4872,14 +4940,14 @@ class oa {
|
|
|
4872
4940
|
f.log("[Jolibox SDK Ads][Trace] adBreak:getAFGAdsInfo begin", {
|
|
4873
4941
|
type: e.type
|
|
4874
4942
|
});
|
|
4875
|
-
const _ = await this.adsRequest.getAFGAdsInfo(e.type), p = _ == null ? void 0 : _.data,
|
|
4943
|
+
const _ = await this.adsRequest.getAFGAdsInfo(e.type), p = _ == null ? void 0 : _.data, we = _ == null ? void 0 : _.code;
|
|
4876
4944
|
if (f.log("[Jolibox SDK Ads][Trace] adBreak:getAFGAdsInfo end", {
|
|
4877
4945
|
type: e.type,
|
|
4878
|
-
code:
|
|
4946
|
+
code: we,
|
|
4879
4947
|
length: (l = p == null ? void 0 : p.length) != null ? l : null,
|
|
4880
4948
|
nativeCount: (c = p == null ? void 0 : p.filter((te) => te.isNative).length) != null ? c : null,
|
|
4881
4949
|
data: p
|
|
4882
|
-
}),
|
|
4950
|
+
}), we === "BYPASS_ADS") {
|
|
4883
4951
|
switch (f.log("[Jolibox SDK Ads][Trace] adBreak:bypass", {
|
|
4884
4952
|
type: e.type
|
|
4885
4953
|
}), e.type) {
|
|
@@ -4915,27 +4983,31 @@ class oa {
|
|
|
4915
4983
|
}
|
|
4916
4984
|
return;
|
|
4917
4985
|
}
|
|
4918
|
-
if (!p ||
|
|
4986
|
+
if (!p || we !== "SUCCESS") {
|
|
4919
4987
|
f.log("[Jolibox SDK Ads][Trace] adBreak:ads info invalid", {
|
|
4920
4988
|
type: e.type,
|
|
4921
|
-
code:
|
|
4989
|
+
code: we,
|
|
4922
4990
|
hasData: !!p
|
|
4923
4991
|
}), (y = e.adBreakDone) == null || y.call(e, {
|
|
4924
4992
|
breakType: e.type,
|
|
4925
4993
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4926
4994
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4927
|
-
breakStatus: "noAdPreloaded"
|
|
4995
|
+
breakStatus: "noAdPreloaded",
|
|
4996
|
+
breakReason: "ads_info_invalid_code",
|
|
4997
|
+
breakStage: "ads_info"
|
|
4928
4998
|
});
|
|
4929
4999
|
return;
|
|
4930
5000
|
} else {
|
|
4931
5001
|
if (p.length === 0) {
|
|
4932
5002
|
f.log("[Jolibox SDK Ads][Trace] adBreak:ads info empty", {
|
|
4933
5003
|
type: e.type
|
|
4934
|
-
}), (
|
|
5004
|
+
}), (b = e.adBreakDone) == null || b.call(e, {
|
|
4935
5005
|
breakType: e.type,
|
|
4936
5006
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4937
5007
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4938
|
-
breakStatus: "noAdPreloaded"
|
|
5008
|
+
breakStatus: "noAdPreloaded",
|
|
5009
|
+
breakReason: "ads_info_empty",
|
|
5010
|
+
breakStage: "ads_info"
|
|
4939
5011
|
});
|
|
4940
5012
|
return;
|
|
4941
5013
|
}
|
|
@@ -4955,12 +5027,12 @@ class oa {
|
|
|
4955
5027
|
}))
|
|
4956
5028
|
});
|
|
4957
5029
|
const F = {
|
|
4958
|
-
seq: (
|
|
5030
|
+
seq: (w = (A = B[0]) == null ? void 0 : A.seq) != null ? w : 0,
|
|
4959
5031
|
provider: "INTERNAL_NATIVE",
|
|
4960
5032
|
params: B
|
|
4961
5033
|
};
|
|
4962
5034
|
let se;
|
|
4963
|
-
for (B.length > 0 ? se = [F].concat(ee) : se = ee, se = se.sort((C, ie) => C.seq - ie.seq).map((C, ie) => Zt(
|
|
5035
|
+
for (B.length > 0 ? se = [F].concat(ee) : se = ee, se = se.sort((C, ie) => C.seq - ie.seq).map((C, ie) => Zt(me({}, C), {
|
|
4964
5036
|
seq: ie
|
|
4965
5037
|
// re-assign seq
|
|
4966
5038
|
})), f.log("[Jolibox SDK Ads][Trace] adBreak:final options", {
|
|
@@ -4992,7 +5064,9 @@ class oa {
|
|
|
4992
5064
|
breakType: e.type,
|
|
4993
5065
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4994
5066
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4995
|
-
breakStatus: "notReady"
|
|
5067
|
+
breakStatus: "notReady",
|
|
5068
|
+
breakReason: "provider_missing",
|
|
5069
|
+
breakStage: "before_provider"
|
|
4996
5070
|
};
|
|
4997
5071
|
if (!te)
|
|
4998
5072
|
break;
|
|
@@ -5006,10 +5080,12 @@ class oa {
|
|
|
5006
5080
|
f.log("[Jolibox SDK Ads][Trace] adBreak:error", {
|
|
5007
5081
|
type: e.type,
|
|
5008
5082
|
error: _
|
|
5009
|
-
}), (
|
|
5083
|
+
}), (x = e.adBreakDone) == null || x.call(e, {
|
|
5010
5084
|
breakType: e.type,
|
|
5011
5085
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
5012
|
-
breakStatus: "noAdPreloaded"
|
|
5086
|
+
breakStatus: "noAdPreloaded",
|
|
5087
|
+
breakReason: "ads_info_request_failed",
|
|
5088
|
+
breakStage: "ads_info"
|
|
5013
5089
|
});
|
|
5014
5090
|
} finally {
|
|
5015
5091
|
f.log("[Jolibox SDK Ads][Trace] adBreak:finally", {
|
|
@@ -5017,21 +5093,21 @@ class oa {
|
|
|
5017
5093
|
adsIsShowingBeforeReset: this.adsIsShowing
|
|
5018
5094
|
}), e.type !== "reward" && (this.adsRequest.cacheNextAFGAdsInfo(e.type), f.log("[Jolibox SDK Ads][Trace] adBreak:cacheNext scheduled", {
|
|
5019
5095
|
type: e.type
|
|
5020
|
-
})), this.adsIsShowing = !1, (
|
|
5096
|
+
})), this.adsIsShowing = !1, (k = this.context.eventEmitter) == null || k.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
5021
5097
|
}
|
|
5022
5098
|
}
|
|
5023
5099
|
adUnit(e) {
|
|
5024
5100
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
5025
5101
|
}
|
|
5026
5102
|
}
|
|
5027
|
-
function
|
|
5028
|
-
return (e =
|
|
5103
|
+
function tt(t, e, i) {
|
|
5104
|
+
return (e = ks(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5029
5105
|
}
|
|
5030
|
-
function
|
|
5031
|
-
var e =
|
|
5106
|
+
function ks(t) {
|
|
5107
|
+
var e = xs(t, "string");
|
|
5032
5108
|
return typeof e == "symbol" ? e : e + "";
|
|
5033
5109
|
}
|
|
5034
|
-
function
|
|
5110
|
+
function xs(t, e) {
|
|
5035
5111
|
if (typeof t != "object" || !t)
|
|
5036
5112
|
return t;
|
|
5037
5113
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5043,9 +5119,9 @@ function Es(t, e) {
|
|
|
5043
5119
|
}
|
|
5044
5120
|
return (e === "string" ? String : Number)(t);
|
|
5045
5121
|
}
|
|
5046
|
-
class
|
|
5122
|
+
class Es {
|
|
5047
5123
|
constructor(e) {
|
|
5048
|
-
|
|
5124
|
+
tt(this, "context", void 0), tt(this, "currentProvider", void 0), tt(this, "continueCallback", void 0), tt(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
5049
5125
|
}
|
|
5050
5126
|
get paramsToTrack() {
|
|
5051
5127
|
var e, i;
|
|
@@ -5066,7 +5142,7 @@ class ks {
|
|
|
5066
5142
|
wrapAdPlaying(e) {
|
|
5067
5143
|
return (i) => {
|
|
5068
5144
|
var r, n;
|
|
5069
|
-
this.context.track("CallAFVPlaying", this.paramsToTrack),
|
|
5145
|
+
this.context.track("CallAFVPlaying", this.paramsToTrack), ct() && this.context.track("mmp_ad_impression", {
|
|
5070
5146
|
ad_network: (n = (r = this.currentProvider) == null ? void 0 : r.name) != null ? n : "",
|
|
5071
5147
|
ad_format: "AFV",
|
|
5072
5148
|
module: "drama",
|
|
@@ -5211,9 +5287,9 @@ class Cs {
|
|
|
5211
5287
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = r;
|
|
5212
5288
|
}
|
|
5213
5289
|
}
|
|
5214
|
-
var
|
|
5290
|
+
var lt = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(lt || {});
|
|
5215
5291
|
const Os = () => {
|
|
5216
|
-
const t =
|
|
5292
|
+
const t = E(!1), e = E(!1), i = E(null), r = ti(), n = ti();
|
|
5217
5293
|
return {
|
|
5218
5294
|
visible: t,
|
|
5219
5295
|
canRetry: e,
|
|
@@ -5282,7 +5358,7 @@ const Os = () => {
|
|
|
5282
5358
|
n.value = null, o.value = !1;
|
|
5283
5359
|
}));
|
|
5284
5360
|
};
|
|
5285
|
-
return
|
|
5361
|
+
return Pe(() => {
|
|
5286
5362
|
e();
|
|
5287
5363
|
}, [e]), S("div", {
|
|
5288
5364
|
className: Ns,
|
|
@@ -5368,7 +5444,7 @@ class Ms {
|
|
|
5368
5444
|
}, s.onerror = o, document.head.appendChild(s);
|
|
5369
5445
|
}
|
|
5370
5446
|
}), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((n, o) => {
|
|
5371
|
-
|
|
5447
|
+
be(S(Ps, {
|
|
5372
5448
|
state: this.state,
|
|
5373
5449
|
onReady: () => {
|
|
5374
5450
|
this.ima = new Cs(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), n();
|
|
@@ -5376,7 +5452,7 @@ class Ms {
|
|
|
5376
5452
|
}), this.adsOverlay);
|
|
5377
5453
|
}), this.initialized = !0;
|
|
5378
5454
|
}), ye(this, "destroy", () => {
|
|
5379
|
-
this.adsOverlay && (
|
|
5455
|
+
this.adsOverlay && (be(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
5380
5456
|
}), ye(this, "requestAd", (i, r) => {
|
|
5381
5457
|
var l;
|
|
5382
5458
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
@@ -5391,9 +5467,9 @@ class Ms {
|
|
|
5391
5467
|
var h;
|
|
5392
5468
|
let u = !1;
|
|
5393
5469
|
switch (c.raw.getErrorCode()) {
|
|
5394
|
-
case
|
|
5395
|
-
case
|
|
5396
|
-
case
|
|
5470
|
+
case lt.AUTOPLAY_DISALLOWED:
|
|
5471
|
+
case lt.VIDEO_PLAY_ERROR:
|
|
5472
|
+
case lt.ADS_REQUEST_NETWORK_ERROR: {
|
|
5397
5473
|
u = !0;
|
|
5398
5474
|
break;
|
|
5399
5475
|
}
|
|
@@ -5448,12 +5524,12 @@ class Us {
|
|
|
5448
5524
|
constructor(e) {
|
|
5449
5525
|
ae(this, "name", "OKSPIN"), ae(this, "initialized", !1), ae(this, "initCompleter", null), ae(this, "context", void 0), ae(this, "adsOverlay", null), ae(this, "adsIsShowing", !1), ae(this, "state", nr()), ae(this, "init", async (i) => {
|
|
5450
5526
|
var r;
|
|
5451
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"),
|
|
5527
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), be(S(or, {
|
|
5452
5528
|
state: this.state
|
|
5453
5529
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (r = this.initCompleter) == null || r.call(this));
|
|
5454
5530
|
}), ae(this, "destroy", () => {
|
|
5455
5531
|
var i;
|
|
5456
|
-
this.adsOverlay && (
|
|
5532
|
+
this.adsOverlay && (be(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
5457
5533
|
}), ae(this, "requestAd", (i, r) => {
|
|
5458
5534
|
var s, a, d, l;
|
|
5459
5535
|
if (!this.adsOverlay || !this.initialized) {
|
|
@@ -5506,12 +5582,12 @@ class qs {
|
|
|
5506
5582
|
return o.has("joliSource") || o.set("joliSource", r.joliSource), o.get("osType") || o.set("osType", r.osType), o.get("runtimeType") || o.set("runtimeType", r.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", r.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), o.get("adsType") || o.set("adsType", "REWARD_INTERSTITIAL"), n.search = o.toString(), n.toString();
|
|
5507
5583
|
}), ne(this, "init", async (i) => {
|
|
5508
5584
|
var r;
|
|
5509
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"),
|
|
5585
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), be(S(ar, {
|
|
5510
5586
|
state: this.state
|
|
5511
5587
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (r = this.initCompleter) == null || r.call(this));
|
|
5512
5588
|
}), ne(this, "destroy", () => {
|
|
5513
5589
|
var i;
|
|
5514
|
-
this.adsOverlay && (
|
|
5590
|
+
this.adsOverlay && (be(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
5515
5591
|
}), ne(this, "requestAd", (i, r) => {
|
|
5516
5592
|
var d, l, c, u;
|
|
5517
5593
|
if (!this.adsOverlay || !this.initialized) {
|
|
@@ -5742,31 +5818,31 @@ class Ae {
|
|
|
5742
5818
|
f.log("[Jolibox SDK Ads][Trace][AFV] requestAd preloadedAd", this.preloadedAd);
|
|
5743
5819
|
const g = (n = this.preloadedAd) != null ? n : await this.adsRequest.getAFVAdsInfo(!0);
|
|
5744
5820
|
this.preloadedAd = null;
|
|
5745
|
-
const y = g == null ? void 0 : g.code,
|
|
5821
|
+
const y = g == null ? void 0 : g.code, b = g == null ? void 0 : g.data;
|
|
5746
5822
|
if (y === "BYPASS_ADS") {
|
|
5747
5823
|
(o = e.onAdRequested) == null || o.call(e), (s = e.onAdLoaded) == null || s.call(e, void 0), (a = e.onAdPlaying) == null || a.call(e, void 0), (d = e.onAdCompleted) == null || d.call(e, void 0);
|
|
5748
5824
|
return;
|
|
5749
5825
|
}
|
|
5750
|
-
if (
|
|
5751
|
-
const A =
|
|
5826
|
+
if (b) {
|
|
5827
|
+
const A = b.sort((k, _) => k.seq - _.seq);
|
|
5752
5828
|
if (A.length === 0) {
|
|
5753
|
-
const
|
|
5754
|
-
(c = e.onAdError) == null || c.call(e,
|
|
5829
|
+
const k = j.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
5830
|
+
(c = e.onAdError) == null || c.call(e, k);
|
|
5755
5831
|
return;
|
|
5756
5832
|
}
|
|
5757
|
-
let
|
|
5758
|
-
const
|
|
5833
|
+
let w = !0, m = null;
|
|
5834
|
+
const x = new Es(this.context);
|
|
5759
5835
|
for (; A.length > 0; ) {
|
|
5760
|
-
const
|
|
5836
|
+
const k = A.shift(), _ = this.providers[k.provider];
|
|
5761
5837
|
if (_) {
|
|
5762
|
-
const [p,
|
|
5763
|
-
|
|
5838
|
+
const [p, we] = await x.callAdRequestAndContinue(_, e, k);
|
|
5839
|
+
w = p, m = we;
|
|
5764
5840
|
} else
|
|
5765
|
-
|
|
5766
|
-
if (!
|
|
5841
|
+
w = !0, m = j.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
5842
|
+
if (!w)
|
|
5767
5843
|
break;
|
|
5768
5844
|
}
|
|
5769
|
-
|
|
5845
|
+
w && m && ((u = e.onAdError) == null || u.call(e, m));
|
|
5770
5846
|
} else {
|
|
5771
5847
|
const A = j.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
5772
5848
|
(l = e.onAdError) == null || l.call(e, A);
|
|
@@ -5782,7 +5858,7 @@ class Ae {
|
|
|
5782
5858
|
}
|
|
5783
5859
|
de(Ae, "STORAGE_KEY_INIT", "jolibox_afv_init_data");
|
|
5784
5860
|
de(Ae, "STORAGE_KEY_INFO", "jolibox_afv_info_data");
|
|
5785
|
-
function
|
|
5861
|
+
function Te(t, e, i) {
|
|
5786
5862
|
return (e = Ws(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5787
5863
|
}
|
|
5788
5864
|
function Ws(t) {
|
|
@@ -5803,7 +5879,7 @@ function Ys(t, e) {
|
|
|
5803
5879
|
}
|
|
5804
5880
|
class sa extends Error {
|
|
5805
5881
|
constructor(e) {
|
|
5806
|
-
super(e),
|
|
5882
|
+
super(e), Te(this, "name", void 0), Te(this, "message", void 0), Te(this, "errMsg", void 0), Te(this, "code", void 0), Te(this, "data", void 0), Te(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
5807
5883
|
}
|
|
5808
5884
|
}
|
|
5809
5885
|
export {
|