@jolibox/ads 1.1.29 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +379 -377
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var vt = Object.getOwnPropertySymbols;
|
|
2
|
-
var
|
|
2
|
+
var wi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable;
|
|
3
3
|
var pt = (t, e) => {
|
|
4
4
|
var i = {};
|
|
5
5
|
for (var n in t)
|
|
6
|
-
|
|
6
|
+
wi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
7
|
if (t != null && vt)
|
|
8
8
|
for (var n of vt(t))
|
|
9
|
-
e.indexOf(n) < 0 &&
|
|
9
|
+
e.indexOf(n) < 0 && Ai.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as se, Component as
|
|
13
|
-
import { useRef as
|
|
12
|
+
import { options as se, Component as mi, isValidElement as Ei } from "preact";
|
|
13
|
+
import { useRef as Si, useLayoutEffect as ki, useEffect as Ue, useMemo as Ii, useState as jt, useCallback as xi, render as te, createRef as yt } from "preact/compat";
|
|
14
14
|
function B(t, e, i) {
|
|
15
|
-
return (e =
|
|
15
|
+
return (e = Ri(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
var e =
|
|
17
|
+
function Ri(t) {
|
|
18
|
+
var e = Ti(t, "string");
|
|
19
19
|
return typeof e == "symbol" ? e : e + "";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ti(t, e) {
|
|
22
22
|
if (typeof t != "object" || !t)
|
|
23
23
|
return t;
|
|
24
24
|
var i = t[Symbol.toPrimitive];
|
|
@@ -30,7 +30,7 @@ function Ri(t, e) {
|
|
|
30
30
|
}
|
|
31
31
|
return (e === "string" ? String : Number)(t);
|
|
32
32
|
}
|
|
33
|
-
class
|
|
33
|
+
class Oi {
|
|
34
34
|
constructor(e) {
|
|
35
35
|
B(this, "context", void 0), B(this, "continueCallback", void 0), B(this, "adIsShowingCallback", void 0), B(this, "isBeforeAdCalled", !1), B(this, "isBeforeRewardCalled", !1), B(this, "isAdDismissedCalled", !1), B(this, "isAdViewedCalled", !1), B(this, "isAfterAdCalled", !1), B(this, "currentProvider", void 0), B(this, "currentClientParams", void 0), B(this, "adsHasResponse", !1), B(this, "videoChecker", window.document.createElement("video")), B(this, "wrapShowAdFn", (i) => () => {
|
|
36
36
|
var r;
|
|
@@ -159,13 +159,13 @@ class Ti {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function Se(t, e, i) {
|
|
162
|
-
return (e =
|
|
162
|
+
return (e = Di(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
var e =
|
|
164
|
+
function Di(t) {
|
|
165
|
+
var e = Ci(t, "string");
|
|
166
166
|
return typeof e == "symbol" ? e : e + "";
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Ci(t, e) {
|
|
169
169
|
if (typeof t != "object" || !t)
|
|
170
170
|
return t;
|
|
171
171
|
var i = t[Symbol.toPrimitive];
|
|
@@ -177,7 +177,7 @@ function Di(t, e) {
|
|
|
177
177
|
}
|
|
178
178
|
return (e === "string" ? String : Number)(t);
|
|
179
179
|
}
|
|
180
|
-
class
|
|
180
|
+
class Li {
|
|
181
181
|
constructor(e) {
|
|
182
182
|
Se(this, "context", void 0), Se(this, "adBreakIsShowing", !1), Se(this, "reportPageJumpOut", () => {
|
|
183
183
|
this.context.track("AdBreakJumpOut", {
|
|
@@ -194,29 +194,29 @@ class Ci {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var
|
|
197
|
+
var Ft = Object.defineProperty, Ni = Object.defineProperties, Pi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, gt = (t, e, i) => e in t ? Ft(t, e, {
|
|
198
198
|
enumerable: !0,
|
|
199
199
|
configurable: !0,
|
|
200
200
|
writable: !0,
|
|
201
201
|
value: i
|
|
202
|
-
}) : t[e] = i,
|
|
202
|
+
}) : t[e] = i, Ui = (t, e) => {
|
|
203
203
|
for (var i in e || (e = {}))
|
|
204
|
-
|
|
204
|
+
Mi.call(e, i) && gt(t, i, e[i]);
|
|
205
205
|
if (_t)
|
|
206
206
|
for (var i of _t(e))
|
|
207
|
-
|
|
207
|
+
$i.call(e, i) && gt(t, i, e[i]);
|
|
208
208
|
return t;
|
|
209
|
-
},
|
|
209
|
+
}, Bi = (t, e) => Ni(t, Pi(e)), ji = (t, e) => {
|
|
210
210
|
for (var i in e)
|
|
211
|
-
|
|
211
|
+
Ft(t, i, {
|
|
212
212
|
get: e[i],
|
|
213
213
|
enumerable: !0
|
|
214
214
|
});
|
|
215
|
-
},
|
|
215
|
+
}, Vt = (t, e, i, n) => {
|
|
216
216
|
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
217
217
|
(s = t[o]) && (r = s(r) || r);
|
|
218
218
|
return r;
|
|
219
|
-
},
|
|
219
|
+
}, Fi = (t, e, i) => new Promise((n, r) => {
|
|
220
220
|
var o = (d) => {
|
|
221
221
|
try {
|
|
222
222
|
a(i.next(d));
|
|
@@ -261,26 +261,26 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
261
261
|
n.call(this, i);
|
|
262
262
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Vi(t) {
|
|
265
265
|
return new Promise((e) => {
|
|
266
266
|
setTimeout(() => {
|
|
267
267
|
e();
|
|
268
268
|
}, t);
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
function Vi(t) {
|
|
272
|
-
return typeof t == "string";
|
|
273
|
-
}
|
|
274
271
|
function zi(t) {
|
|
275
|
-
return typeof t == "
|
|
272
|
+
return typeof t == "string";
|
|
276
273
|
}
|
|
277
274
|
function Ki(t) {
|
|
278
|
-
return
|
|
275
|
+
return typeof t == "undefined";
|
|
279
276
|
}
|
|
280
277
|
function Gi(t) {
|
|
278
|
+
return Ki(t) || t === null;
|
|
279
|
+
}
|
|
280
|
+
function qi(t) {
|
|
281
281
|
return typeof t == "function";
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function zt(t) {
|
|
284
284
|
let e = t, i = null, n = function() {
|
|
285
285
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
286
286
|
o[s] = arguments[s];
|
|
@@ -288,14 +288,14 @@ function Vt(t) {
|
|
|
288
288
|
};
|
|
289
289
|
return n.prototype = e.prototype, n;
|
|
290
290
|
}
|
|
291
|
-
var
|
|
291
|
+
var Hi = ((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))(Hi || {});
|
|
292
292
|
function he(t) {
|
|
293
293
|
return function() {
|
|
294
294
|
var e, i;
|
|
295
295
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
var
|
|
298
|
+
var Wi = {
|
|
299
299
|
log: he("log"),
|
|
300
300
|
warn: he("warn"),
|
|
301
301
|
info: he("info"),
|
|
@@ -303,11 +303,13 @@ var Hi = {
|
|
|
303
303
|
debug: he("debug")
|
|
304
304
|
};
|
|
305
305
|
Object.assign(globalThis, {
|
|
306
|
-
logger:
|
|
306
|
+
logger: Wi
|
|
307
307
|
});
|
|
308
|
-
var bt = Symbol.for("Jolibox.canIUseMap"),
|
|
309
|
-
globalThis[bt] || (globalThis[bt] =
|
|
310
|
-
var
|
|
308
|
+
var bt = Symbol.for("Jolibox.canIUseMap"), Ji = {};
|
|
309
|
+
globalThis[bt] || (globalThis[bt] = Ji);
|
|
310
|
+
var wt = Symbol.for("Jolibox.canIUseMap.native"), Yi = {};
|
|
311
|
+
globalThis[wt] || (globalThis[wt] = Yi);
|
|
312
|
+
var Kt = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Kt || {}), Gt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Gt || {}), qt = ((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))(qt || {}), At = ["name", "params"], Xi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Qi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
311
313
|
function xe(t, e) {
|
|
312
314
|
return e.map((i) => {
|
|
313
315
|
if (i === "params" && t[i]) {
|
|
@@ -317,18 +319,18 @@ function xe(t, e) {
|
|
|
317
319
|
return t[i];
|
|
318
320
|
});
|
|
319
321
|
}
|
|
320
|
-
function
|
|
321
|
-
let e = t.location ? xe(t.location,
|
|
322
|
-
return xe(Ui(
|
|
322
|
+
function Zi(t) {
|
|
323
|
+
let e = t.location ? xe(t.location, At) : null, i = t.target ? xe(t.target, At) : null;
|
|
324
|
+
return xe(Bi(Ui({}, t), {
|
|
323
325
|
location: e,
|
|
324
326
|
target: i
|
|
325
|
-
}),
|
|
327
|
+
}), Xi);
|
|
326
328
|
}
|
|
327
|
-
function
|
|
328
|
-
let e = t.events.map((n) =>
|
|
329
|
+
function en(t) {
|
|
330
|
+
let e = t.events.map((n) => Zi(n)), i = xe(t.device, Qi);
|
|
329
331
|
return [t.protocolVersion, e, i, t.project];
|
|
330
332
|
}
|
|
331
|
-
function
|
|
333
|
+
function tn() {
|
|
332
334
|
try {
|
|
333
335
|
if (window.__joliboxLocalStorage__)
|
|
334
336
|
return window.__joliboxLocalStorage__;
|
|
@@ -349,7 +351,7 @@ function Zi() {
|
|
|
349
351
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
350
352
|
}
|
|
351
353
|
}
|
|
352
|
-
|
|
354
|
+
tn();
|
|
353
355
|
navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS"), navigator.userAgent.includes("Android"), navigator.userAgent.includes("Mac"), navigator.userAgent.includes("FB_IAB"), !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
354
356
|
var Xe = class Qe {
|
|
355
357
|
constructor(e) {
|
|
@@ -357,7 +359,7 @@ var Xe = class Qe {
|
|
|
357
359
|
}
|
|
358
360
|
};
|
|
359
361
|
Xe.Undefined = new Xe(void 0);
|
|
360
|
-
var x = Xe,
|
|
362
|
+
var x = Xe, nn = class {
|
|
361
363
|
constructor() {
|
|
362
364
|
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
363
365
|
}
|
|
@@ -423,9 +425,9 @@ var x = Xe, en = class {
|
|
|
423
425
|
for (; e !== x.Undefined; )
|
|
424
426
|
yield e.element, e = e.next;
|
|
425
427
|
}
|
|
426
|
-
},
|
|
428
|
+
}, rn = 0, fe = class {
|
|
427
429
|
constructor(e) {
|
|
428
|
-
this.value = e, this.id =
|
|
430
|
+
this.value = e, this.id = rn++;
|
|
429
431
|
}
|
|
430
432
|
}, ge = class {
|
|
431
433
|
constructor(e) {
|
|
@@ -478,7 +480,7 @@ var x = Xe, en = class {
|
|
|
478
480
|
hasListeners() {
|
|
479
481
|
return this._size > 0;
|
|
480
482
|
}
|
|
481
|
-
},
|
|
483
|
+
}, on = class {
|
|
482
484
|
constructor() {
|
|
483
485
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
484
486
|
}
|
|
@@ -506,7 +508,7 @@ var x = Xe, en = class {
|
|
|
506
508
|
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
507
509
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
508
510
|
r[o - 1] = arguments[o];
|
|
509
|
-
i || (i = new
|
|
511
|
+
i || (i = new nn(), this.cachedEventQueue.set(t, i)), i.push({
|
|
510
512
|
args: r
|
|
511
513
|
}), e && e.fire({
|
|
512
514
|
event: t,
|
|
@@ -521,19 +523,19 @@ var x = Xe, en = class {
|
|
|
521
523
|
this.on(t, n, !1);
|
|
522
524
|
}
|
|
523
525
|
}, Ze = {};
|
|
524
|
-
|
|
525
|
-
None: () =>
|
|
526
|
-
filter: () =>
|
|
527
|
-
once: () =>
|
|
528
|
-
toPromise: () =>
|
|
526
|
+
ji(Ze, {
|
|
527
|
+
None: () => sn,
|
|
528
|
+
filter: () => dn,
|
|
529
|
+
once: () => Ht,
|
|
530
|
+
toPromise: () => an
|
|
529
531
|
});
|
|
530
|
-
var
|
|
532
|
+
var sn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
531
533
|
console.log("[Jolibox SDK] None Event dispose");
|
|
532
534
|
});
|
|
533
|
-
function
|
|
534
|
-
return new Promise((e) =>
|
|
535
|
+
function an(t) {
|
|
536
|
+
return new Promise((e) => Ht(t)(e));
|
|
535
537
|
}
|
|
536
|
-
function
|
|
538
|
+
function Ht(t) {
|
|
537
539
|
return function(e) {
|
|
538
540
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
539
541
|
return t((r) => {
|
|
@@ -542,7 +544,7 @@ function qt(t) {
|
|
|
542
544
|
}, null);
|
|
543
545
|
};
|
|
544
546
|
}
|
|
545
|
-
function
|
|
547
|
+
function dn(t, e) {
|
|
546
548
|
return ((i) => {
|
|
547
549
|
let n = {
|
|
548
550
|
onWillAddFirstListener() {
|
|
@@ -555,8 +557,8 @@ function sn(t, e) {
|
|
|
555
557
|
return t((r) => e(r) && i.call(n, r), null);
|
|
556
558
|
});
|
|
557
559
|
}
|
|
558
|
-
var ze = Symbol.for("Jolibox.hostEmitter"),
|
|
559
|
-
let t = new
|
|
560
|
+
var ze = Symbol.for("Jolibox.hostEmitter"), ln = () => {
|
|
561
|
+
let t = new on();
|
|
560
562
|
return globalThis[ze] || (globalThis[ze] = {
|
|
561
563
|
on: t.on.bind(t),
|
|
562
564
|
off: t.off.bind(t),
|
|
@@ -564,23 +566,23 @@ var ze = Symbol.for("Jolibox.hostEmitter"), an = () => {
|
|
|
564
566
|
once: t.once.bind(t)
|
|
565
567
|
}), globalThis[ze];
|
|
566
568
|
};
|
|
567
|
-
|
|
568
|
-
function
|
|
569
|
+
ln();
|
|
570
|
+
function cn(t, e) {
|
|
569
571
|
let i = Math.min(t.length, e.length);
|
|
570
572
|
for (let n = 0; n < i; n++)
|
|
571
|
-
|
|
573
|
+
un(t[n], e[n]);
|
|
572
574
|
}
|
|
573
|
-
function
|
|
574
|
-
if (
|
|
575
|
+
function un(t, e) {
|
|
576
|
+
if (zi(e)) {
|
|
575
577
|
if (typeof t !== e)
|
|
576
578
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
577
|
-
} else if (
|
|
579
|
+
} else if (qi(e)) {
|
|
578
580
|
try {
|
|
579
581
|
if (t instanceof e)
|
|
580
582
|
return;
|
|
581
583
|
} catch (i) {
|
|
582
584
|
}
|
|
583
|
-
if (!
|
|
585
|
+
if (!Gi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
584
586
|
return;
|
|
585
587
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
586
588
|
}
|
|
@@ -600,7 +602,7 @@ var et = class {
|
|
|
600
602
|
e.handler = function() {
|
|
601
603
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
602
604
|
s[a] = arguments[a];
|
|
603
|
-
return
|
|
605
|
+
return cn(s, n), r(...s);
|
|
604
606
|
};
|
|
605
607
|
}
|
|
606
608
|
let {
|
|
@@ -620,18 +622,18 @@ var et = class {
|
|
|
620
622
|
return e;
|
|
621
623
|
}
|
|
622
624
|
};
|
|
623
|
-
et =
|
|
624
|
-
var
|
|
625
|
+
et = Vt([zt], et);
|
|
626
|
+
var mt = class {
|
|
625
627
|
constructor() {
|
|
626
628
|
this._onWillExecuteCommand = new ge(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ge(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new et(), this._starActivation = null;
|
|
627
629
|
}
|
|
628
630
|
_activateStar() {
|
|
629
|
-
return this._starActivation || (this._starActivation =
|
|
631
|
+
return this._starActivation || (this._starActivation = Vi(3e4)), this._starActivation;
|
|
630
632
|
}
|
|
631
633
|
executeCommand(e) {
|
|
632
634
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
633
635
|
n[r - 1] = arguments[r];
|
|
634
|
-
return
|
|
636
|
+
return Fi(this, null, function* () {
|
|
635
637
|
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Ze.toPromise(Ze.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
636
638
|
});
|
|
637
639
|
}
|
|
@@ -678,15 +680,15 @@ var At = class {
|
|
|
678
680
|
}
|
|
679
681
|
}
|
|
680
682
|
};
|
|
681
|
-
|
|
683
|
+
mt = Vt([zt], mt);
|
|
682
684
|
function Ke(t, e, i) {
|
|
683
|
-
return (e =
|
|
685
|
+
return (e = hn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
684
686
|
}
|
|
685
|
-
function
|
|
686
|
-
var e =
|
|
687
|
+
function hn(t) {
|
|
688
|
+
var e = fn(t, "string");
|
|
687
689
|
return typeof e == "symbol" ? e : e + "";
|
|
688
690
|
}
|
|
689
|
-
function
|
|
691
|
+
function fn(t, e) {
|
|
690
692
|
if (typeof t != "object" || !t)
|
|
691
693
|
return t;
|
|
692
694
|
var i = t[Symbol.toPrimitive];
|
|
@@ -698,7 +700,7 @@ function un(t, e) {
|
|
|
698
700
|
}
|
|
699
701
|
return (e === "string" ? String : Number)(t);
|
|
700
702
|
}
|
|
701
|
-
class
|
|
703
|
+
class Wt {
|
|
702
704
|
constructor(e) {
|
|
703
705
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
704
706
|
Ke(this, "context", void 0), Ke(this, "placement", "GAME"), Ke(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
@@ -715,7 +717,7 @@ class Ht {
|
|
|
715
717
|
getDevice() {
|
|
716
718
|
var e, i, n, r;
|
|
717
719
|
return {
|
|
718
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
720
|
+
platform: (e = this.contextInfo.platform) != null ? e : qt.WebSDK,
|
|
719
721
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
720
722
|
appVersion: "1.0.0",
|
|
721
723
|
// mock
|
|
@@ -734,7 +736,7 @@ class Ht {
|
|
|
734
736
|
protocolVersion: "1.0.0",
|
|
735
737
|
events: [{
|
|
736
738
|
name: e,
|
|
737
|
-
type:
|
|
739
|
+
type: Kt.System,
|
|
738
740
|
location: this.getLocation(),
|
|
739
741
|
target: null,
|
|
740
742
|
extra: i,
|
|
@@ -742,19 +744,19 @@ class Ht {
|
|
|
742
744
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
743
745
|
}],
|
|
744
746
|
device: this.getDevice(),
|
|
745
|
-
project:
|
|
747
|
+
project: Gt.WebSDK
|
|
746
748
|
};
|
|
747
|
-
return
|
|
749
|
+
return en(r);
|
|
748
750
|
}
|
|
749
751
|
}
|
|
750
752
|
function ke(t, e, i) {
|
|
751
|
-
return (e =
|
|
753
|
+
return (e = vn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
752
754
|
}
|
|
753
|
-
function
|
|
754
|
-
var e =
|
|
755
|
+
function vn(t) {
|
|
756
|
+
var e = pn(t, "string");
|
|
755
757
|
return typeof e == "symbol" ? e : e + "";
|
|
756
758
|
}
|
|
757
|
-
function
|
|
759
|
+
function pn(t, e) {
|
|
758
760
|
if (typeof t != "object" || !t)
|
|
759
761
|
return t;
|
|
760
762
|
var i = t[Symbol.toPrimitive];
|
|
@@ -766,7 +768,7 @@ function fn(t, e) {
|
|
|
766
768
|
}
|
|
767
769
|
return (e === "string" ? String : Number)(t);
|
|
768
770
|
}
|
|
769
|
-
class
|
|
771
|
+
class yn {
|
|
770
772
|
constructor(e) {
|
|
771
773
|
ke(this, "configs", null), ke(this, "firstRun", !0), ke(this, "context", void 0), ke(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
772
774
|
}
|
|
@@ -793,13 +795,13 @@ class vn {
|
|
|
793
795
|
}
|
|
794
796
|
}
|
|
795
797
|
function J(t, e, i) {
|
|
796
|
-
return (e =
|
|
798
|
+
return (e = _n(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
797
799
|
}
|
|
798
|
-
function
|
|
799
|
-
var e =
|
|
800
|
+
function _n(t) {
|
|
801
|
+
var e = gn(t, "string");
|
|
800
802
|
return typeof e == "symbol" ? e : e + "";
|
|
801
803
|
}
|
|
802
|
-
function
|
|
804
|
+
function gn(t, e) {
|
|
803
805
|
if (typeof t != "object" || !t)
|
|
804
806
|
return t;
|
|
805
807
|
var i = t[Symbol.toPrimitive];
|
|
@@ -811,7 +813,7 @@ function yn(t, e) {
|
|
|
811
813
|
}
|
|
812
814
|
return (e === "string" ? String : Number)(t);
|
|
813
815
|
}
|
|
814
|
-
class
|
|
816
|
+
class bn {
|
|
815
817
|
/**
|
|
816
818
|
* Internal constructor, should not be called directly
|
|
817
819
|
*/
|
|
@@ -889,18 +891,18 @@ class _n {
|
|
|
889
891
|
}
|
|
890
892
|
}
|
|
891
893
|
}
|
|
892
|
-
function
|
|
894
|
+
function wn(t) {
|
|
893
895
|
if (t.sheet)
|
|
894
896
|
return t.sheet;
|
|
895
897
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
896
898
|
if (document.styleSheets[e].ownerNode === t)
|
|
897
899
|
return document.styleSheets[e];
|
|
898
900
|
}
|
|
899
|
-
function
|
|
901
|
+
function An(t) {
|
|
900
902
|
var e = document.createElement("style");
|
|
901
903
|
return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
|
902
904
|
}
|
|
903
|
-
var
|
|
905
|
+
var mn = /* @__PURE__ */ function() {
|
|
904
906
|
function t(i) {
|
|
905
907
|
var n = this;
|
|
906
908
|
this._insertTag = function(r) {
|
|
@@ -912,10 +914,10 @@ var wn = /* @__PURE__ */ function() {
|
|
|
912
914
|
return e.hydrate = function(n) {
|
|
913
915
|
n.forEach(this._insertTag);
|
|
914
916
|
}, e.insert = function(n) {
|
|
915
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
917
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(An(this));
|
|
916
918
|
var r = this.tags[this.tags.length - 1];
|
|
917
919
|
if (this.isSpeedy) {
|
|
918
|
-
var o =
|
|
920
|
+
var o = wn(r);
|
|
919
921
|
try {
|
|
920
922
|
o.insertRule(n, o.cssRules.length);
|
|
921
923
|
} catch (s) {
|
|
@@ -929,14 +931,14 @@ var wn = /* @__PURE__ */ function() {
|
|
|
929
931
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
930
932
|
}), this.tags = [], this.ctr = 0;
|
|
931
933
|
}, t;
|
|
932
|
-
}(), N = "-ms-", Ne = "-moz-", A = "-webkit-",
|
|
933
|
-
function
|
|
934
|
+
}(), N = "-ms-", Ne = "-moz-", A = "-webkit-", Jt = "comm", dt = "rule", lt = "decl", En = "@import", Yt = "@keyframes", Sn = "@layer", kn = Math.abs, Be = String.fromCharCode, In = Object.assign;
|
|
935
|
+
function xn(t, e) {
|
|
934
936
|
return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
|
|
935
937
|
}
|
|
936
|
-
function
|
|
938
|
+
function Xt(t) {
|
|
937
939
|
return t.trim();
|
|
938
940
|
}
|
|
939
|
-
function
|
|
941
|
+
function Rn(t, e) {
|
|
940
942
|
return (t = e.exec(t)) ? t[0] : t;
|
|
941
943
|
}
|
|
942
944
|
function m(t, e, i) {
|
|
@@ -960,24 +962,24 @@ function ct(t) {
|
|
|
960
962
|
function Ie(t, e) {
|
|
961
963
|
return e.push(t), t;
|
|
962
964
|
}
|
|
963
|
-
function
|
|
965
|
+
function Tn(t, e) {
|
|
964
966
|
return t.map(e).join("");
|
|
965
967
|
}
|
|
966
|
-
var je = 1, ae = 1,
|
|
968
|
+
var je = 1, ae = 1, Qt = 0, U = 0, R = 0, de = "";
|
|
967
969
|
function Fe(t, e, i, n, r, o, s) {
|
|
968
970
|
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: je, column: ae, length: s, return: "" };
|
|
969
971
|
}
|
|
970
972
|
function ve(t, e) {
|
|
971
|
-
return
|
|
973
|
+
return In(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
972
974
|
}
|
|
973
|
-
function
|
|
975
|
+
function On() {
|
|
974
976
|
return R;
|
|
975
977
|
}
|
|
976
|
-
function
|
|
978
|
+
function Dn() {
|
|
977
979
|
return R = U > 0 ? D(de, --U) : 0, ae--, R === 10 && (ae = 1, je--), R;
|
|
978
980
|
}
|
|
979
981
|
function F() {
|
|
980
|
-
return R = U <
|
|
982
|
+
return R = U < Qt ? D(de, U++) : 0, ae++, R === 10 && (ae = 1, je++), R;
|
|
981
983
|
}
|
|
982
984
|
function W() {
|
|
983
985
|
return D(de, U);
|
|
@@ -1020,21 +1022,21 @@ function we(t) {
|
|
|
1020
1022
|
}
|
|
1021
1023
|
return 0;
|
|
1022
1024
|
}
|
|
1023
|
-
function Qt(t) {
|
|
1024
|
-
return je = ae = 1, Xt = H(de = t), U = 0, [];
|
|
1025
|
-
}
|
|
1026
1025
|
function Zt(t) {
|
|
1026
|
+
return je = ae = 1, Qt = H(de = t), U = 0, [];
|
|
1027
|
+
}
|
|
1028
|
+
function ei(t) {
|
|
1027
1029
|
return de = "", t;
|
|
1028
1030
|
}
|
|
1029
1031
|
function Te(t) {
|
|
1030
|
-
return
|
|
1032
|
+
return Xt(Ae(U - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1031
1033
|
}
|
|
1032
|
-
function
|
|
1034
|
+
function Cn(t) {
|
|
1033
1035
|
for (; (R = W()) && R < 33; )
|
|
1034
1036
|
F();
|
|
1035
1037
|
return we(t) > 2 || we(R) > 3 ? "" : " ";
|
|
1036
1038
|
}
|
|
1037
|
-
function
|
|
1039
|
+
function Ln(t, e) {
|
|
1038
1040
|
for (; --e && F() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
|
|
1039
1041
|
;
|
|
1040
1042
|
return Ae(t, Re() + (e < 6 && W() == 32 && F() == 32));
|
|
@@ -1057,19 +1059,19 @@ function it(t) {
|
|
|
1057
1059
|
}
|
|
1058
1060
|
return U;
|
|
1059
1061
|
}
|
|
1060
|
-
function
|
|
1062
|
+
function Nn(t, e) {
|
|
1061
1063
|
for (; F() && t + R !== 57; )
|
|
1062
1064
|
if (t + R === 84 && W() === 47)
|
|
1063
1065
|
break;
|
|
1064
1066
|
return "/*" + Ae(e, U - 1) + "*" + Be(t === 47 ? t : F());
|
|
1065
1067
|
}
|
|
1066
|
-
function
|
|
1068
|
+
function Pn(t) {
|
|
1067
1069
|
for (; !we(W()); )
|
|
1068
1070
|
F();
|
|
1069
1071
|
return Ae(t, U);
|
|
1070
1072
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return
|
|
1073
|
+
function Mn(t) {
|
|
1074
|
+
return ei(Oe("", null, null, null, [""], t = Zt(t), 0, [0], t));
|
|
1073
1075
|
}
|
|
1074
1076
|
function Oe(t, e, i, n, r, o, s, a, d) {
|
|
1075
1077
|
for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0, b = "", M = r, L = o, V = n, S = b; g; )
|
|
@@ -1088,16 +1090,16 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1088
1090
|
case 10:
|
|
1089
1091
|
case 13:
|
|
1090
1092
|
case 32:
|
|
1091
|
-
S +=
|
|
1093
|
+
S += Cn(y);
|
|
1092
1094
|
break;
|
|
1093
1095
|
case 92:
|
|
1094
|
-
S +=
|
|
1096
|
+
S += Ln(Re() - 1, 7);
|
|
1095
1097
|
continue;
|
|
1096
1098
|
case 47:
|
|
1097
1099
|
switch (W()) {
|
|
1098
1100
|
case 42:
|
|
1099
1101
|
case 47:
|
|
1100
|
-
Ie(
|
|
1102
|
+
Ie($n(Nn(F(), Re()), e, i), d);
|
|
1101
1103
|
break;
|
|
1102
1104
|
default:
|
|
1103
1105
|
S += "/";
|
|
@@ -1113,12 +1115,12 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1113
1115
|
case 125:
|
|
1114
1116
|
g = 0;
|
|
1115
1117
|
case 59 + c:
|
|
1116
|
-
p == -1 && (S = m(S, /\f/g, "")), f > 0 && H(S) - h && Ie(f > 32 ?
|
|
1118
|
+
p == -1 && (S = m(S, /\f/g, "")), f > 0 && H(S) - h && Ie(f > 32 ? St(S + ";", n, i, h - 1) : St(m(S, " ", "") + ";", n, i, h - 2), d);
|
|
1117
1119
|
break;
|
|
1118
1120
|
case 59:
|
|
1119
1121
|
S += ";";
|
|
1120
1122
|
default:
|
|
1121
|
-
if (Ie(V =
|
|
1123
|
+
if (Ie(V = Et(S, e, i, l, c, r, a, b, M = [], L = [], h), o), _ === 123)
|
|
1122
1124
|
if (c === 0)
|
|
1123
1125
|
Oe(S, e, V, V, M, o, h, a, L);
|
|
1124
1126
|
else
|
|
@@ -1127,7 +1129,7 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1127
1129
|
case 108:
|
|
1128
1130
|
case 109:
|
|
1129
1131
|
case 115:
|
|
1130
|
-
Oe(t, V, V, n && Ie(
|
|
1132
|
+
Oe(t, V, V, n && Ie(Et(t, V, V, 0, 0, r, a, b, r, M = [], h), L), r, L, h, a, n ? M : L);
|
|
1131
1133
|
break;
|
|
1132
1134
|
default:
|
|
1133
1135
|
Oe(S, V, V, V, [""], L, 0, a, L);
|
|
@@ -1141,7 +1143,7 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1141
1143
|
if (v < 1) {
|
|
1142
1144
|
if (_ == 123)
|
|
1143
1145
|
--v;
|
|
1144
|
-
else if (_ == 125 && v++ == 0 &&
|
|
1146
|
+
else if (_ == 125 && v++ == 0 && Dn() == 125)
|
|
1145
1147
|
continue;
|
|
1146
1148
|
}
|
|
1147
1149
|
switch (S += Be(_), _ * v) {
|
|
@@ -1152,7 +1154,7 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1152
1154
|
a[l++] = (H(S) - 1) * p, p = 1;
|
|
1153
1155
|
break;
|
|
1154
1156
|
case 64:
|
|
1155
|
-
W() === 45 && (S += Te(F())), u = W(), c = h = H(b = S +=
|
|
1157
|
+
W() === 45 && (S += Te(F())), u = W(), c = h = H(b = S += Pn(Re())), _++;
|
|
1156
1158
|
break;
|
|
1157
1159
|
case 45:
|
|
1158
1160
|
y === 45 && H(S) == 2 && (v = 0);
|
|
@@ -1160,16 +1162,16 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1160
1162
|
}
|
|
1161
1163
|
return o;
|
|
1162
1164
|
}
|
|
1163
|
-
function
|
|
1165
|
+
function Et(t, e, i, n, r, o, s, a, d, l, c) {
|
|
1164
1166
|
for (var h = r - 1, u = r === 0 ? o : [""], f = ct(u), y = 0, v = 0, g = 0; y < n; ++y)
|
|
1165
|
-
for (var p = 0, _ = be(t, h + 1, h =
|
|
1166
|
-
(b =
|
|
1167
|
+
for (var p = 0, _ = be(t, h + 1, h = kn(v = s[y])), b = t; p < f; ++p)
|
|
1168
|
+
(b = Xt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = b);
|
|
1167
1169
|
return Fe(t, e, i, r === 0 ? dt : a, d, l, c);
|
|
1168
1170
|
}
|
|
1169
|
-
function
|
|
1170
|
-
return Fe(t, e, i,
|
|
1171
|
+
function $n(t, e, i) {
|
|
1172
|
+
return Fe(t, e, i, Jt, Be(On()), be(t, 2, -2), 0);
|
|
1171
1173
|
}
|
|
1172
|
-
function
|
|
1174
|
+
function St(t, e, i, n) {
|
|
1173
1175
|
return Fe(t, e, i, lt, be(t, 0, n), be(t, n + 1, -1), n);
|
|
1174
1176
|
}
|
|
1175
1177
|
function oe(t, e) {
|
|
@@ -1177,24 +1179,24 @@ function oe(t, e) {
|
|
|
1177
1179
|
i += e(t[r], r, t, e) || "";
|
|
1178
1180
|
return i;
|
|
1179
1181
|
}
|
|
1180
|
-
function
|
|
1182
|
+
function Un(t, e, i, n) {
|
|
1181
1183
|
switch (t.type) {
|
|
1182
|
-
case
|
|
1184
|
+
case Sn:
|
|
1183
1185
|
if (t.children.length)
|
|
1184
1186
|
break;
|
|
1185
|
-
case
|
|
1187
|
+
case En:
|
|
1186
1188
|
case lt:
|
|
1187
1189
|
return t.return = t.return || t.value;
|
|
1188
|
-
case Wt:
|
|
1189
|
-
return "";
|
|
1190
1190
|
case Jt:
|
|
1191
|
+
return "";
|
|
1192
|
+
case Yt:
|
|
1191
1193
|
return t.return = t.value + "{" + oe(t.children, n) + "}";
|
|
1192
1194
|
case dt:
|
|
1193
1195
|
t.value = t.props.join(",");
|
|
1194
1196
|
}
|
|
1195
1197
|
return H(i = oe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1196
1198
|
}
|
|
1197
|
-
function
|
|
1199
|
+
function Bn(t) {
|
|
1198
1200
|
var e = ct(t);
|
|
1199
1201
|
return function(i, n, r, o) {
|
|
1200
1202
|
for (var s = "", a = 0; a < e; a++)
|
|
@@ -1202,27 +1204,27 @@ function $n(t) {
|
|
|
1202
1204
|
return s;
|
|
1203
1205
|
};
|
|
1204
1206
|
}
|
|
1205
|
-
function
|
|
1207
|
+
function jn(t) {
|
|
1206
1208
|
return function(e) {
|
|
1207
1209
|
e.root || (e = e.return) && t(e);
|
|
1208
1210
|
};
|
|
1209
1211
|
}
|
|
1210
|
-
function
|
|
1212
|
+
function Fn(t) {
|
|
1211
1213
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1212
1214
|
return function(i) {
|
|
1213
1215
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1214
1216
|
};
|
|
1215
1217
|
}
|
|
1216
|
-
var
|
|
1218
|
+
var Vn = function(e, i, n) {
|
|
1217
1219
|
for (var r = 0, o = 0; r = o, o = W(), r === 38 && o === 12 && (i[n] = 1), !we(o); )
|
|
1218
1220
|
F();
|
|
1219
1221
|
return Ae(e, U);
|
|
1220
|
-
},
|
|
1222
|
+
}, zn = function(e, i) {
|
|
1221
1223
|
var n = -1, r = 44;
|
|
1222
1224
|
do
|
|
1223
1225
|
switch (we(r)) {
|
|
1224
1226
|
case 0:
|
|
1225
|
-
r === 38 && W() === 12 && (i[n] = 1), e[n] +=
|
|
1227
|
+
r === 38 && W() === 12 && (i[n] = 1), e[n] += Vn(U - 1, i, n);
|
|
1226
1228
|
break;
|
|
1227
1229
|
case 2:
|
|
1228
1230
|
e[n] += Te(r);
|
|
@@ -1237,23 +1239,23 @@ var jn = function(e, i, n) {
|
|
|
1237
1239
|
}
|
|
1238
1240
|
while (r = F());
|
|
1239
1241
|
return e;
|
|
1240
|
-
},
|
|
1241
|
-
return
|
|
1242
|
-
},
|
|
1242
|
+
}, Kn = function(e, i) {
|
|
1243
|
+
return ei(zn(Zt(e), i));
|
|
1244
|
+
}, kt = /* @__PURE__ */ new WeakMap(), Gn = function(e) {
|
|
1243
1245
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1244
1246
|
// negative .length indicates that this rule has been already prefixed
|
|
1245
1247
|
e.length < 1)) {
|
|
1246
1248
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1247
1249
|
if (n = n.parent, !n)
|
|
1248
1250
|
return;
|
|
1249
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1250
|
-
|
|
1251
|
-
for (var o = [], s =
|
|
1251
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !kt.get(n)) && !r) {
|
|
1252
|
+
kt.set(e, !0);
|
|
1253
|
+
for (var o = [], s = Kn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1252
1254
|
for (var c = 0; c < a.length; c++, l++)
|
|
1253
1255
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[c]) : a[c] + " " + s[d];
|
|
1254
1256
|
}
|
|
1255
1257
|
}
|
|
1256
|
-
},
|
|
1258
|
+
}, qn = function(e) {
|
|
1257
1259
|
if (e.type === "decl") {
|
|
1258
1260
|
var i = e.value;
|
|
1259
1261
|
// charcode for l
|
|
@@ -1261,8 +1263,8 @@ var jn = function(e, i, n) {
|
|
|
1261
1263
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1262
1264
|
}
|
|
1263
1265
|
};
|
|
1264
|
-
function
|
|
1265
|
-
switch (
|
|
1266
|
+
function ti(t, e) {
|
|
1267
|
+
switch (xn(t, e)) {
|
|
1266
1268
|
case 5103:
|
|
1267
1269
|
return A + "print-" + t + t;
|
|
1268
1270
|
case 5737:
|
|
@@ -1348,7 +1350,7 @@ function ei(t, e) {
|
|
|
1348
1350
|
case 102:
|
|
1349
1351
|
return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Ne + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1350
1352
|
case 115:
|
|
1351
|
-
return ~tt(t, "stretch") ?
|
|
1353
|
+
return ~tt(t, "stretch") ? ti(m(t, "stretch", "fill-available"), e) + t : t;
|
|
1352
1354
|
}
|
|
1353
1355
|
break;
|
|
1354
1356
|
case 4949:
|
|
@@ -1375,20 +1377,20 @@ function ei(t, e) {
|
|
|
1375
1377
|
}
|
|
1376
1378
|
return t;
|
|
1377
1379
|
}
|
|
1378
|
-
var
|
|
1380
|
+
var Hn = function(e, i, n, r) {
|
|
1379
1381
|
if (e.length > -1 && !e.return)
|
|
1380
1382
|
switch (e.type) {
|
|
1381
1383
|
case lt:
|
|
1382
|
-
e.return =
|
|
1384
|
+
e.return = ti(e.value, e.length);
|
|
1383
1385
|
break;
|
|
1384
|
-
case
|
|
1386
|
+
case Yt:
|
|
1385
1387
|
return oe([ve(e, {
|
|
1386
1388
|
value: m(e.value, "@", "@" + A)
|
|
1387
1389
|
})], r);
|
|
1388
1390
|
case dt:
|
|
1389
1391
|
if (e.length)
|
|
1390
|
-
return
|
|
1391
|
-
switch (
|
|
1392
|
+
return Tn(e.props, function(o) {
|
|
1393
|
+
switch (Rn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1392
1394
|
case ":read-only":
|
|
1393
1395
|
case ":read-write":
|
|
1394
1396
|
return oe([ve(e, {
|
|
@@ -1406,7 +1408,7 @@ var Gn = function(e, i, n, r) {
|
|
|
1406
1408
|
return "";
|
|
1407
1409
|
});
|
|
1408
1410
|
}
|
|
1409
|
-
},
|
|
1411
|
+
}, Wn = [Hn], Jn = function(e) {
|
|
1410
1412
|
var i = e.key;
|
|
1411
1413
|
if (i === "css") {
|
|
1412
1414
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
@@ -1415,7 +1417,7 @@ var Gn = function(e, i, n, r) {
|
|
|
1415
1417
|
g.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
|
1416
1418
|
});
|
|
1417
1419
|
}
|
|
1418
|
-
var r = e.stylisPlugins ||
|
|
1420
|
+
var r = e.stylisPlugins || Wn, o = {}, s, a = [];
|
|
1419
1421
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1420
1422
|
// this means we will ignore elements which don't have a space in them which
|
|
1421
1423
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -1426,12 +1428,12 @@ var Gn = function(e, i, n, r) {
|
|
|
1426
1428
|
a.push(v);
|
|
1427
1429
|
}
|
|
1428
1430
|
);
|
|
1429
|
-
var d, l = [
|
|
1431
|
+
var d, l = [Gn, qn];
|
|
1430
1432
|
{
|
|
1431
|
-
var c, h = [
|
|
1433
|
+
var c, h = [Un, jn(function(v) {
|
|
1432
1434
|
c.insert(v);
|
|
1433
|
-
})], u =
|
|
1434
|
-
return oe(
|
|
1435
|
+
})], u = Bn(l.concat(r, h)), f = function(g) {
|
|
1436
|
+
return oe(Mn(g), u);
|
|
1435
1437
|
};
|
|
1436
1438
|
d = function(g, p, _, b) {
|
|
1437
1439
|
c = _, f(g ? g + "{" + p.styles + "}" : p.styles), b && (y.inserted[p.name] = !0);
|
|
@@ -1439,7 +1441,7 @@ var Gn = function(e, i, n, r) {
|
|
|
1439
1441
|
}
|
|
1440
1442
|
var y = {
|
|
1441
1443
|
key: i,
|
|
1442
|
-
sheet: new
|
|
1444
|
+
sheet: new mn({
|
|
1443
1445
|
key: i,
|
|
1444
1446
|
container: s,
|
|
1445
1447
|
nonce: e.nonce,
|
|
@@ -1454,7 +1456,7 @@ var Gn = function(e, i, n, r) {
|
|
|
1454
1456
|
};
|
|
1455
1457
|
return y.sheet.hydrate(a), y;
|
|
1456
1458
|
};
|
|
1457
|
-
function
|
|
1459
|
+
function Yn(t) {
|
|
1458
1460
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1459
1461
|
i = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, i = /* Math.imul(k, m): */
|
|
1460
1462
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1473,7 +1475,7 @@ function Wn(t) {
|
|
|
1473
1475
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1474
1476
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1475
1477
|
}
|
|
1476
|
-
var
|
|
1478
|
+
var Xn = {
|
|
1477
1479
|
animationIterationCount: 1,
|
|
1478
1480
|
aspectRatio: 1,
|
|
1479
1481
|
borderImageOutset: 1,
|
|
@@ -1522,18 +1524,18 @@ var Jn = {
|
|
|
1522
1524
|
strokeMiterlimit: 1,
|
|
1523
1525
|
strokeOpacity: 1,
|
|
1524
1526
|
strokeWidth: 1
|
|
1525
|
-
},
|
|
1527
|
+
}, Qn = /[A-Z]|^ms/g, Zn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ii = function(e) {
|
|
1526
1528
|
return e.charCodeAt(1) === 45;
|
|
1527
|
-
},
|
|
1529
|
+
}, It = function(e) {
|
|
1528
1530
|
return e != null && typeof e != "boolean";
|
|
1529
|
-
}, Ge = /* @__PURE__ */
|
|
1530
|
-
return
|
|
1531
|
-
}),
|
|
1531
|
+
}, Ge = /* @__PURE__ */ Fn(function(t) {
|
|
1532
|
+
return ii(t) ? t : t.replace(Qn, "-$&").toLowerCase();
|
|
1533
|
+
}), xt = function(e, i) {
|
|
1532
1534
|
switch (e) {
|
|
1533
1535
|
case "animation":
|
|
1534
1536
|
case "animationName":
|
|
1535
1537
|
if (typeof i == "string")
|
|
1536
|
-
return i.replace(
|
|
1538
|
+
return i.replace(Zn, function(n, r, o) {
|
|
1537
1539
|
return Z = {
|
|
1538
1540
|
name: r,
|
|
1539
1541
|
styles: o,
|
|
@@ -1541,7 +1543,7 @@ var Jn = {
|
|
|
1541
1543
|
}, r;
|
|
1542
1544
|
});
|
|
1543
1545
|
}
|
|
1544
|
-
return
|
|
1546
|
+
return Xn[e] !== 1 && !ii(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1545
1547
|
};
|
|
1546
1548
|
function Pe(t, e, i) {
|
|
1547
1549
|
if (i == null)
|
|
@@ -1573,7 +1575,7 @@ function Pe(t, e, i) {
|
|
|
1573
1575
|
var a = o.styles + ";";
|
|
1574
1576
|
return a;
|
|
1575
1577
|
}
|
|
1576
|
-
return
|
|
1578
|
+
return er(t, e, i);
|
|
1577
1579
|
}
|
|
1578
1580
|
}
|
|
1579
1581
|
var d = i;
|
|
@@ -1582,7 +1584,7 @@ function Pe(t, e, i) {
|
|
|
1582
1584
|
var l = e[d];
|
|
1583
1585
|
return l !== void 0 ? l : d;
|
|
1584
1586
|
}
|
|
1585
|
-
function
|
|
1587
|
+
function er(t, e, i) {
|
|
1586
1588
|
var n = "";
|
|
1587
1589
|
if (Array.isArray(i))
|
|
1588
1590
|
for (var r = 0; r < i.length; r++)
|
|
@@ -1592,10 +1594,10 @@ function Qn(t, e, i) {
|
|
|
1592
1594
|
var s = i[o];
|
|
1593
1595
|
if (typeof s != "object") {
|
|
1594
1596
|
var a = s;
|
|
1595
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1597
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : It(a) && (n += Ge(o) + ":" + xt(o, a) + ";");
|
|
1596
1598
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1597
1599
|
for (var d = 0; d < s.length; d++)
|
|
1598
|
-
|
|
1600
|
+
It(s[d]) && (n += Ge(o) + ":" + xt(o, s[d]) + ";");
|
|
1599
1601
|
else {
|
|
1600
1602
|
var l = Pe(t, e, s);
|
|
1601
1603
|
switch (o) {
|
|
@@ -1611,7 +1613,7 @@ function Qn(t, e, i) {
|
|
|
1611
1613
|
}
|
|
1612
1614
|
return n;
|
|
1613
1615
|
}
|
|
1614
|
-
var
|
|
1616
|
+
var Rt = /label:\s*([^\s;{]+)\s*(;|$)/g, Z;
|
|
1615
1617
|
function qe(t, e, i) {
|
|
1616
1618
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1617
1619
|
return t[0];
|
|
@@ -1629,23 +1631,23 @@ function qe(t, e, i) {
|
|
|
1629
1631
|
var d = o;
|
|
1630
1632
|
r += d[a];
|
|
1631
1633
|
}
|
|
1632
|
-
|
|
1633
|
-
for (var l = "", c; (c =
|
|
1634
|
+
Rt.lastIndex = 0;
|
|
1635
|
+
for (var l = "", c; (c = Rt.exec(r)) !== null; )
|
|
1634
1636
|
l += "-" + c[1];
|
|
1635
|
-
var h =
|
|
1637
|
+
var h = Yn(r) + l;
|
|
1636
1638
|
return {
|
|
1637
1639
|
name: h,
|
|
1638
1640
|
styles: r,
|
|
1639
1641
|
next: Z
|
|
1640
1642
|
};
|
|
1641
1643
|
}
|
|
1642
|
-
function
|
|
1644
|
+
function ni(t, e, i) {
|
|
1643
1645
|
var n = "";
|
|
1644
1646
|
return i.split(" ").forEach(function(r) {
|
|
1645
1647
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1646
1648
|
}), n;
|
|
1647
1649
|
}
|
|
1648
|
-
var
|
|
1650
|
+
var tr = function(e, i, n) {
|
|
1649
1651
|
var r = e.key + "-" + i.name;
|
|
1650
1652
|
// we only need to add the styles to the registered cache if the
|
|
1651
1653
|
// class name could be used further down
|
|
@@ -1653,8 +1655,8 @@ var Zn = function(e, i, n) {
|
|
|
1653
1655
|
// so we don't have to add it to registered cache.
|
|
1654
1656
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1655
1657
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1656
|
-
},
|
|
1657
|
-
|
|
1658
|
+
}, ir = function(e, i, n) {
|
|
1659
|
+
tr(e, i);
|
|
1658
1660
|
var r = e.key + "-" + i.name;
|
|
1659
1661
|
if (e.inserted[i.name] === void 0) {
|
|
1660
1662
|
var o = i;
|
|
@@ -1663,16 +1665,16 @@ var Zn = function(e, i, n) {
|
|
|
1663
1665
|
while (o !== void 0);
|
|
1664
1666
|
}
|
|
1665
1667
|
};
|
|
1666
|
-
function
|
|
1668
|
+
function Tt(t, e) {
|
|
1667
1669
|
if (t.inserted[e.name] === void 0)
|
|
1668
1670
|
return t.insert("", e, t.sheet, !0);
|
|
1669
1671
|
}
|
|
1670
|
-
function
|
|
1671
|
-
var n = [], r =
|
|
1672
|
+
function Ot(t, e, i) {
|
|
1673
|
+
var n = [], r = ni(t, n, i);
|
|
1672
1674
|
return n.length < 2 ? i : r + e(n);
|
|
1673
1675
|
}
|
|
1674
|
-
var
|
|
1675
|
-
var i =
|
|
1676
|
+
var nr = function(e) {
|
|
1677
|
+
var i = Jn(e);
|
|
1676
1678
|
i.sheet.speedy = function(a) {
|
|
1677
1679
|
this.isSpeedy = a;
|
|
1678
1680
|
}, i.compat = !0;
|
|
@@ -1680,12 +1682,12 @@ var tr = function(e) {
|
|
|
1680
1682
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1681
1683
|
l[c] = arguments[c];
|
|
1682
1684
|
var h = qe(l, i.registered, void 0);
|
|
1683
|
-
return
|
|
1685
|
+
return ir(i, h), i.key + "-" + h.name;
|
|
1684
1686
|
}, r = function() {
|
|
1685
1687
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1686
1688
|
l[c] = arguments[c];
|
|
1687
1689
|
var h = qe(l, i.registered), u = "animation-" + h.name;
|
|
1688
|
-
return
|
|
1690
|
+
return Tt(i, {
|
|
1689
1691
|
name: h.name,
|
|
1690
1692
|
styles: "@keyframes " + u + "{" + h.styles + "}"
|
|
1691
1693
|
}), u;
|
|
@@ -1693,11 +1695,11 @@ var tr = function(e) {
|
|
|
1693
1695
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1694
1696
|
l[c] = arguments[c];
|
|
1695
1697
|
var h = qe(l, i.registered);
|
|
1696
|
-
|
|
1698
|
+
Tt(i, h);
|
|
1697
1699
|
}, s = function() {
|
|
1698
1700
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1699
1701
|
l[c] = arguments[c];
|
|
1700
|
-
return
|
|
1702
|
+
return Ot(i.registered, n, rr(l));
|
|
1701
1703
|
};
|
|
1702
1704
|
return {
|
|
1703
1705
|
css: n,
|
|
@@ -1714,10 +1716,10 @@ var tr = function(e) {
|
|
|
1714
1716
|
},
|
|
1715
1717
|
sheet: i.sheet,
|
|
1716
1718
|
cache: i,
|
|
1717
|
-
getRegisteredStyles:
|
|
1718
|
-
merge:
|
|
1719
|
+
getRegisteredStyles: ni.bind(null, i.registered),
|
|
1720
|
+
merge: Ot.bind(null, i.registered, n)
|
|
1719
1721
|
};
|
|
1720
|
-
},
|
|
1722
|
+
}, rr = function t(e) {
|
|
1721
1723
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1722
1724
|
var r = e[n];
|
|
1723
1725
|
if (r != null) {
|
|
@@ -1742,20 +1744,20 @@ var tr = function(e) {
|
|
|
1742
1744
|
}
|
|
1743
1745
|
}
|
|
1744
1746
|
return i;
|
|
1745
|
-
},
|
|
1747
|
+
}, or = nr({
|
|
1746
1748
|
key: "css"
|
|
1747
|
-
}), le =
|
|
1748
|
-
function
|
|
1749
|
-
T.__h && T.__h(j, t,
|
|
1749
|
+
}), le = or.css, nt, j, He, Dt, Ct = 0, ri = [], T = se, Lt = T.__b, Nt = T.__r, Pt = T.diffed, Mt = T.__c, $t = T.unmount, Ut = T.__;
|
|
1750
|
+
function sr(t, e) {
|
|
1751
|
+
T.__h && T.__h(j, t, Ct || e), Ct = 0;
|
|
1750
1752
|
var i = j.__H || (j.__H = { __: [], __h: [] });
|
|
1751
1753
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1752
1754
|
}
|
|
1753
|
-
function
|
|
1754
|
-
var i =
|
|
1755
|
-
return
|
|
1755
|
+
function oi(t, e) {
|
|
1756
|
+
var i = sr(nt++, 7);
|
|
1757
|
+
return lr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1756
1758
|
}
|
|
1757
|
-
function
|
|
1758
|
-
for (var t; t =
|
|
1759
|
+
function ar() {
|
|
1760
|
+
for (var t; t = ri.shift(); )
|
|
1759
1761
|
if (t.__P && t.__H)
|
|
1760
1762
|
try {
|
|
1761
1763
|
t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
|
|
@@ -1764,19 +1766,19 @@ function or() {
|
|
|
1764
1766
|
}
|
|
1765
1767
|
}
|
|
1766
1768
|
T.__b = function(t) {
|
|
1767
|
-
j = null,
|
|
1769
|
+
j = null, Lt && Lt(t);
|
|
1768
1770
|
}, T.__ = function(t, e) {
|
|
1769
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1771
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Ut && Ut(t, e);
|
|
1770
1772
|
}, T.__r = function(t) {
|
|
1771
|
-
|
|
1773
|
+
Nt && Nt(t), nt = 0;
|
|
1772
1774
|
var e = (j = t.__c).__H;
|
|
1773
1775
|
e && (He === j ? (e.__h = [], j.__h = [], e.__.forEach(function(i) {
|
|
1774
1776
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1775
1777
|
})) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], nt = 0)), He = j;
|
|
1776
1778
|
}, T.diffed = function(t) {
|
|
1777
|
-
|
|
1779
|
+
Pt && Pt(t);
|
|
1778
1780
|
var e = t.__c;
|
|
1779
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1781
|
+
e && e.__H && (e.__H.__h.length && (ri.push(e) !== 1 && Dt === T.requestAnimationFrame || ((Dt = T.requestAnimationFrame) || dr)(ar)), e.__H.__.forEach(function(i) {
|
|
1780
1782
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1781
1783
|
})), He = j = null;
|
|
1782
1784
|
}, T.__c = function(t, e) {
|
|
@@ -1790,9 +1792,9 @@ T.__b = function(t) {
|
|
|
1790
1792
|
r.__h && (r.__h = []);
|
|
1791
1793
|
}), e = [], T.__e(n, i.__v);
|
|
1792
1794
|
}
|
|
1793
|
-
}),
|
|
1795
|
+
}), Mt && Mt(t, e);
|
|
1794
1796
|
}, T.unmount = function(t) {
|
|
1795
|
-
|
|
1797
|
+
$t && $t(t);
|
|
1796
1798
|
var e, i = t.__c;
|
|
1797
1799
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1798
1800
|
try {
|
|
@@ -1802,12 +1804,12 @@ T.__b = function(t) {
|
|
|
1802
1804
|
}
|
|
1803
1805
|
}), i.__H = void 0, e && T.__e(e, i.__v));
|
|
1804
1806
|
};
|
|
1805
|
-
var
|
|
1806
|
-
function
|
|
1807
|
+
var Bt = typeof requestAnimationFrame == "function";
|
|
1808
|
+
function dr(t) {
|
|
1807
1809
|
var e, i = function() {
|
|
1808
|
-
clearTimeout(n),
|
|
1810
|
+
clearTimeout(n), Bt && cancelAnimationFrame(e), setTimeout(t);
|
|
1809
1811
|
}, n = setTimeout(i, 100);
|
|
1810
|
-
|
|
1812
|
+
Bt && (e = requestAnimationFrame(i));
|
|
1811
1813
|
}
|
|
1812
1814
|
function De(t) {
|
|
1813
1815
|
var e = j, i = t.__c;
|
|
@@ -1817,12 +1819,12 @@ function rt(t) {
|
|
|
1817
1819
|
var e = j;
|
|
1818
1820
|
t.__c = t.__(), j = e;
|
|
1819
1821
|
}
|
|
1820
|
-
function
|
|
1822
|
+
function lr(t, e) {
|
|
1821
1823
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1822
1824
|
return i !== t[n];
|
|
1823
1825
|
});
|
|
1824
1826
|
}
|
|
1825
|
-
var
|
|
1827
|
+
var cr = Symbol.for("preact-signals");
|
|
1826
1828
|
function Ve() {
|
|
1827
1829
|
if (ee > 1)
|
|
1828
1830
|
ee--;
|
|
@@ -1831,7 +1833,7 @@ function Ve() {
|
|
|
1831
1833
|
var i = ye;
|
|
1832
1834
|
for (ye = void 0, ot++; i !== void 0; ) {
|
|
1833
1835
|
var n = i.o;
|
|
1834
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1836
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && ai(i))
|
|
1835
1837
|
try {
|
|
1836
1838
|
i.c();
|
|
1837
1839
|
} catch (r) {
|
|
@@ -1855,7 +1857,7 @@ function O(t) {
|
|
|
1855
1857
|
}
|
|
1856
1858
|
}
|
|
1857
1859
|
var k = void 0, ye = void 0, ee = 0, ot = 0, Me = 0;
|
|
1858
|
-
function
|
|
1860
|
+
function si(t) {
|
|
1859
1861
|
if (k !== void 0) {
|
|
1860
1862
|
var e = t.n;
|
|
1861
1863
|
if (e === void 0 || e.t !== k)
|
|
@@ -1867,7 +1869,7 @@ function oi(t) {
|
|
|
1867
1869
|
function C(t) {
|
|
1868
1870
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1869
1871
|
}
|
|
1870
|
-
C.prototype.brand =
|
|
1872
|
+
C.prototype.brand = cr;
|
|
1871
1873
|
C.prototype.h = function() {
|
|
1872
1874
|
return !0;
|
|
1873
1875
|
};
|
|
@@ -1911,7 +1913,7 @@ C.prototype.peek = function() {
|
|
|
1911
1913
|
}
|
|
1912
1914
|
};
|
|
1913
1915
|
Object.defineProperty(C.prototype, "value", { get: function() {
|
|
1914
|
-
var t =
|
|
1916
|
+
var t = si(this);
|
|
1915
1917
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1916
1918
|
}, set: function(t) {
|
|
1917
1919
|
if (t !== this.v) {
|
|
@@ -1929,13 +1931,13 @@ Object.defineProperty(C.prototype, "value", { get: function() {
|
|
|
1929
1931
|
function E(t) {
|
|
1930
1932
|
return new C(t);
|
|
1931
1933
|
}
|
|
1932
|
-
function
|
|
1934
|
+
function ai(t) {
|
|
1933
1935
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1934
1936
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1935
1937
|
return !0;
|
|
1936
1938
|
return !1;
|
|
1937
1939
|
}
|
|
1938
|
-
function
|
|
1940
|
+
function di(t) {
|
|
1939
1941
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1940
1942
|
var i = e.S.n;
|
|
1941
1943
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1944,7 +1946,7 @@ function ai(t) {
|
|
|
1944
1946
|
}
|
|
1945
1947
|
}
|
|
1946
1948
|
}
|
|
1947
|
-
function
|
|
1949
|
+
function li(t) {
|
|
1948
1950
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1949
1951
|
var n = e.p;
|
|
1950
1952
|
e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
|
|
@@ -1959,17 +1961,17 @@ function ce(t) {
|
|
|
1959
1961
|
return !1;
|
|
1960
1962
|
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Me))
|
|
1961
1963
|
return !0;
|
|
1962
|
-
if (this.g = Me, this.f |= 1, this.i > 0 && !
|
|
1964
|
+
if (this.g = Me, this.f |= 1, this.i > 0 && !ai(this))
|
|
1963
1965
|
return this.f &= -2, !0;
|
|
1964
1966
|
var t = k;
|
|
1965
1967
|
try {
|
|
1966
|
-
|
|
1968
|
+
di(this), k = this;
|
|
1967
1969
|
var e = this.x();
|
|
1968
1970
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1969
1971
|
} catch (i) {
|
|
1970
1972
|
this.v = i, this.f |= 16, this.i++;
|
|
1971
1973
|
}
|
|
1972
|
-
return k = t,
|
|
1974
|
+
return k = t, li(this), this.f &= -2, !0;
|
|
1973
1975
|
};
|
|
1974
1976
|
ce.prototype.S = function(t) {
|
|
1975
1977
|
if (this.t === void 0) {
|
|
@@ -1996,7 +1998,7 @@ ce.prototype.N = function() {
|
|
|
1996
1998
|
Object.defineProperty(ce.prototype, "value", { get: function() {
|
|
1997
1999
|
if (1 & this.f)
|
|
1998
2000
|
throw new Error("Cycle detected");
|
|
1999
|
-
var t =
|
|
2001
|
+
var t = si(this);
|
|
2000
2002
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
2001
2003
|
throw this.v;
|
|
2002
2004
|
return this.v;
|
|
@@ -2004,7 +2006,7 @@ Object.defineProperty(ce.prototype, "value", { get: function() {
|
|
|
2004
2006
|
function _e(t) {
|
|
2005
2007
|
return new ce(t);
|
|
2006
2008
|
}
|
|
2007
|
-
function
|
|
2009
|
+
function ci(t) {
|
|
2008
2010
|
var e = t.u;
|
|
2009
2011
|
if (t.u = void 0, typeof e == "function") {
|
|
2010
2012
|
ee++;
|
|
@@ -2022,12 +2024,12 @@ function li(t) {
|
|
|
2022
2024
|
function ut(t) {
|
|
2023
2025
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2024
2026
|
e.S.U(e);
|
|
2025
|
-
t.x = void 0, t.s = void 0,
|
|
2027
|
+
t.x = void 0, t.s = void 0, ci(t);
|
|
2026
2028
|
}
|
|
2027
|
-
function
|
|
2029
|
+
function ur(t) {
|
|
2028
2030
|
if (k !== this)
|
|
2029
2031
|
throw new Error("Out-of-order effect");
|
|
2030
|
-
|
|
2032
|
+
li(this), k = t, this.f &= -2, 8 & this.f && ut(this), Ve();
|
|
2031
2033
|
}
|
|
2032
2034
|
function me(t) {
|
|
2033
2035
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
@@ -2046,9 +2048,9 @@ me.prototype.c = function() {
|
|
|
2046
2048
|
me.prototype.S = function() {
|
|
2047
2049
|
if (1 & this.f)
|
|
2048
2050
|
throw new Error("Cycle detected");
|
|
2049
|
-
this.f |= 1, this.f &= -9,
|
|
2051
|
+
this.f |= 1, this.f &= -9, ci(this), di(this), ee++;
|
|
2050
2052
|
var t = k;
|
|
2051
|
-
return k = this,
|
|
2053
|
+
return k = this, ur.bind(this, t);
|
|
2052
2054
|
};
|
|
2053
2055
|
me.prototype.N = function() {
|
|
2054
2056
|
2 & this.f || (this.f |= 2, this.o = ye, ye = this);
|
|
@@ -2065,9 +2067,9 @@ function Ee(t) {
|
|
|
2065
2067
|
}
|
|
2066
2068
|
return e.d.bind(e);
|
|
2067
2069
|
}
|
|
2068
|
-
var
|
|
2070
|
+
var ui, We, hi = [];
|
|
2069
2071
|
Ee(function() {
|
|
2070
|
-
|
|
2072
|
+
ui = this.N;
|
|
2071
2073
|
})();
|
|
2072
2074
|
function ue(t, e) {
|
|
2073
2075
|
se[t] = e.bind(null, se[t] || function() {
|
|
@@ -2076,10 +2078,10 @@ function ue(t, e) {
|
|
|
2076
2078
|
function $e(t) {
|
|
2077
2079
|
We && We(), We = t && t.S();
|
|
2078
2080
|
}
|
|
2079
|
-
function
|
|
2080
|
-
var e = this, i = t.data, n =
|
|
2081
|
+
function fi(t) {
|
|
2082
|
+
var e = this, i = t.data, n = vi(i);
|
|
2081
2083
|
n.value = i;
|
|
2082
|
-
var r =
|
|
2084
|
+
var r = oi(function() {
|
|
2083
2085
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2084
2086
|
if (d.__c) {
|
|
2085
2087
|
d.__c.__$f |= 4;
|
|
@@ -2089,9 +2091,9 @@ function hi(t) {
|
|
|
2089
2091
|
var f = n.value.value;
|
|
2090
2092
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2091
2093
|
}), c = _e(function() {
|
|
2092
|
-
return !Array.isArray(l.value) && !
|
|
2094
|
+
return !Array.isArray(l.value) && !Ei(l.value);
|
|
2093
2095
|
}), h = Ee(function() {
|
|
2094
|
-
if (this.N =
|
|
2096
|
+
if (this.N = pi, c.value) {
|
|
2095
2097
|
var f = l.value;
|
|
2096
2098
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2097
2099
|
}
|
|
@@ -2102,8 +2104,8 @@ function hi(t) {
|
|
|
2102
2104
|
}, []), o = r[0], s = r[1];
|
|
2103
2105
|
return o.value ? s.peek() : s.value;
|
|
2104
2106
|
}
|
|
2105
|
-
|
|
2106
|
-
Object.defineProperties(C.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value:
|
|
2107
|
+
fi.displayName = "_st";
|
|
2108
|
+
Object.defineProperties(C.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: fi }, props: { configurable: !0, get: function() {
|
|
2107
2109
|
return { data: this };
|
|
2108
2110
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2109
2111
|
ue("__b", function(t, e) {
|
|
@@ -2148,18 +2150,18 @@ ue("diffed", function(t, e) {
|
|
|
2148
2150
|
o = {}, i.U = o;
|
|
2149
2151
|
for (var d in n) {
|
|
2150
2152
|
var l = o[d], c = n[d];
|
|
2151
|
-
l === void 0 ? (l =
|
|
2153
|
+
l === void 0 ? (l = hr(i, d, c, r), o[d] = l) : l.o(c, r);
|
|
2152
2154
|
}
|
|
2153
2155
|
}
|
|
2154
2156
|
}
|
|
2155
2157
|
t(e);
|
|
2156
2158
|
});
|
|
2157
|
-
function
|
|
2159
|
+
function hr(t, e, i, n) {
|
|
2158
2160
|
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2159
2161
|
return { o: function(s, a) {
|
|
2160
2162
|
o.value = s, n = a;
|
|
2161
2163
|
}, d: Ee(function() {
|
|
2162
|
-
this.N =
|
|
2164
|
+
this.N = pi;
|
|
2163
2165
|
var s = o.value.value;
|
|
2164
2166
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2165
2167
|
}) };
|
|
@@ -2189,7 +2191,7 @@ ue("unmount", function(t, e) {
|
|
|
2189
2191
|
ue("__h", function(t, e, i, n) {
|
|
2190
2192
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2191
2193
|
});
|
|
2192
|
-
|
|
2194
|
+
mi.prototype.shouldComponentUpdate = function(t, e) {
|
|
2193
2195
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2194
2196
|
for (var r in e)
|
|
2195
2197
|
return !0;
|
|
@@ -2207,24 +2209,24 @@ Ai.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2207
2209
|
return !0;
|
|
2208
2210
|
return !1;
|
|
2209
2211
|
};
|
|
2210
|
-
function
|
|
2211
|
-
return
|
|
2212
|
+
function vi(t) {
|
|
2213
|
+
return oi(function() {
|
|
2212
2214
|
return E(t);
|
|
2213
2215
|
}, []);
|
|
2214
2216
|
}
|
|
2215
|
-
var
|
|
2217
|
+
var fr = function(t) {
|
|
2216
2218
|
queueMicrotask(function() {
|
|
2217
2219
|
queueMicrotask(t);
|
|
2218
2220
|
});
|
|
2219
2221
|
};
|
|
2220
|
-
function
|
|
2222
|
+
function vr() {
|
|
2221
2223
|
O(function() {
|
|
2222
|
-
for (var t; t =
|
|
2223
|
-
|
|
2224
|
+
for (var t; t = hi.shift(); )
|
|
2225
|
+
ui.call(t);
|
|
2224
2226
|
});
|
|
2225
2227
|
}
|
|
2226
|
-
function
|
|
2227
|
-
|
|
2228
|
+
function pi() {
|
|
2229
|
+
hi.push(this) === 1 && (se.requestAnimationFrame || fr)(vr);
|
|
2228
2230
|
}
|
|
2229
2231
|
const P = le`
|
|
2230
2232
|
inset: 0;
|
|
@@ -2245,9 +2247,9 @@ const P = le`
|
|
|
2245
2247
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2246
2248
|
'Helvetica Neue', sans-serif;
|
|
2247
2249
|
`;
|
|
2248
|
-
function
|
|
2249
|
-
const i =
|
|
2250
|
-
|
|
2250
|
+
function pr(t, e) {
|
|
2251
|
+
const i = Si(t);
|
|
2252
|
+
ki(() => {
|
|
2251
2253
|
i.current = t;
|
|
2252
2254
|
}, [t]), Ue(() => {
|
|
2253
2255
|
if (e === null)
|
|
@@ -2260,20 +2262,20 @@ function fr(t, e) {
|
|
|
2260
2262
|
};
|
|
2261
2263
|
}, [e]);
|
|
2262
2264
|
}
|
|
2263
|
-
var
|
|
2265
|
+
var yr = 0;
|
|
2264
2266
|
function w(t, e, i, n, r, o) {
|
|
2265
2267
|
e || (e = {});
|
|
2266
2268
|
var s, a, d = e;
|
|
2267
2269
|
if ("ref" in d)
|
|
2268
2270
|
for (a in d = {}, e)
|
|
2269
2271
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2270
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2272
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --yr, __i: -1, __u: 0, __source: r, __self: o };
|
|
2271
2273
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2272
2274
|
for (a in s)
|
|
2273
2275
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2274
2276
|
return se.vnode && se.vnode(l), l;
|
|
2275
2277
|
}
|
|
2276
|
-
const
|
|
2278
|
+
const _r = le`
|
|
2277
2279
|
${P}
|
|
2278
2280
|
position: fixed;
|
|
2279
2281
|
top: 0;
|
|
@@ -2348,13 +2350,13 @@ const pr = le`
|
|
|
2348
2350
|
}
|
|
2349
2351
|
}
|
|
2350
2352
|
}
|
|
2351
|
-
`, K = E(null), st = E(""), at = E(""), Ce = E(!1),
|
|
2353
|
+
`, K = E(null), st = E(""), at = E(""), Ce = E(!1), gr = () => {
|
|
2352
2354
|
var t;
|
|
2353
2355
|
(t = K.value) == null || t.call(K, !1);
|
|
2354
|
-
},
|
|
2356
|
+
}, br = () => {
|
|
2355
2357
|
var t;
|
|
2356
2358
|
(t = K.value) == null || t.call(K, !0);
|
|
2357
|
-
},
|
|
2359
|
+
}, wr = async (t) => {
|
|
2358
2360
|
let {
|
|
2359
2361
|
title: e,
|
|
2360
2362
|
content: i
|
|
@@ -2370,8 +2372,8 @@ const pr = le`
|
|
|
2370
2372
|
}), n(r);
|
|
2371
2373
|
};
|
|
2372
2374
|
});
|
|
2373
|
-
},
|
|
2374
|
-
className:
|
|
2375
|
+
}, Ar = () => Ce.value ? w("div", {
|
|
2376
|
+
className: _r,
|
|
2375
2377
|
children: w("div", {
|
|
2376
2378
|
className: "card-wrapper",
|
|
2377
2379
|
children: [w("div", {
|
|
@@ -2386,17 +2388,17 @@ const pr = le`
|
|
|
2386
2388
|
}), w("div", {
|
|
2387
2389
|
className: "footer",
|
|
2388
2390
|
children: [w("button", {
|
|
2389
|
-
onClick:
|
|
2391
|
+
onClick: gr,
|
|
2390
2392
|
className: "cancel-btn",
|
|
2391
2393
|
children: "Cancel"
|
|
2392
2394
|
}), w("button", {
|
|
2393
|
-
onClick:
|
|
2395
|
+
onClick: br,
|
|
2394
2396
|
className: "confirm-btm",
|
|
2395
2397
|
children: "Confirm"
|
|
2396
2398
|
})]
|
|
2397
2399
|
})]
|
|
2398
2400
|
})
|
|
2399
|
-
}) : null,
|
|
2401
|
+
}) : null, mr = le`
|
|
2400
2402
|
${P}
|
|
2401
2403
|
position: relative;
|
|
2402
2404
|
display: flex;
|
|
@@ -2429,7 +2431,7 @@ const pr = le`
|
|
|
2429
2431
|
cursor: not-allowed;
|
|
2430
2432
|
}
|
|
2431
2433
|
}
|
|
2432
|
-
`,
|
|
2434
|
+
`, Er = () => {
|
|
2433
2435
|
const t = E(!1), e = E(null);
|
|
2434
2436
|
return {
|
|
2435
2437
|
timerPaused: t,
|
|
@@ -2440,7 +2442,7 @@ const pr = le`
|
|
|
2440
2442
|
});
|
|
2441
2443
|
}
|
|
2442
2444
|
};
|
|
2443
|
-
},
|
|
2445
|
+
}, Sr = (t) => {
|
|
2444
2446
|
let {
|
|
2445
2447
|
countdown: e = 0,
|
|
2446
2448
|
mode: i,
|
|
@@ -2450,8 +2452,8 @@ const pr = le`
|
|
|
2450
2452
|
const {
|
|
2451
2453
|
startTimestamp: o,
|
|
2452
2454
|
timerPaused: s
|
|
2453
|
-
} = r, a =
|
|
2454
|
-
|
|
2455
|
+
} = r, a = vi(e);
|
|
2456
|
+
pr(() => {
|
|
2455
2457
|
a.value > 0 ? a.value -= 1 : O(() => {
|
|
2456
2458
|
s.value = !0, a.value = 0;
|
|
2457
2459
|
});
|
|
@@ -2469,7 +2471,7 @@ const pr = le`
|
|
|
2469
2471
|
const f = Date.now() - o.value;
|
|
2470
2472
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2471
2473
|
}), c = _e(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2472
|
-
if (s.value = !0, !await
|
|
2474
|
+
if (s.value = !0, !await wr({
|
|
2473
2475
|
title: "Are you sure?",
|
|
2474
2476
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2475
2477
|
})) {
|
|
@@ -2485,7 +2487,7 @@ const pr = le`
|
|
|
2485
2487
|
});
|
|
2486
2488
|
};
|
|
2487
2489
|
return w("div", {
|
|
2488
|
-
className:
|
|
2490
|
+
className: mr,
|
|
2489
2491
|
children: [a.value > 0 && i !== "interstitial" && w("div", {
|
|
2490
2492
|
className: "timer",
|
|
2491
2493
|
children: [a.value, "s"]
|
|
@@ -2505,7 +2507,7 @@ const pr = le`
|
|
|
2505
2507
|
})
|
|
2506
2508
|
})]
|
|
2507
2509
|
});
|
|
2508
|
-
},
|
|
2510
|
+
}, yi = () => {
|
|
2509
2511
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2510
2512
|
return {
|
|
2511
2513
|
afterAd: t,
|
|
@@ -2518,7 +2520,7 @@ const pr = le`
|
|
|
2518
2520
|
src: a,
|
|
2519
2521
|
mode: d
|
|
2520
2522
|
};
|
|
2521
|
-
},
|
|
2523
|
+
}, kr = le`
|
|
2522
2524
|
${P}
|
|
2523
2525
|
position: fixed;
|
|
2524
2526
|
z-index: 2147483647;
|
|
@@ -2537,7 +2539,7 @@ const pr = le`
|
|
|
2537
2539
|
width: 100%;
|
|
2538
2540
|
height: 100%;
|
|
2539
2541
|
}
|
|
2540
|
-
`,
|
|
2542
|
+
`, _i = (t) => {
|
|
2541
2543
|
let {
|
|
2542
2544
|
state: e
|
|
2543
2545
|
} = t;
|
|
@@ -2551,10 +2553,10 @@ const pr = le`
|
|
|
2551
2553
|
countdown: d,
|
|
2552
2554
|
src: l,
|
|
2553
2555
|
mode: c
|
|
2554
|
-
} = e, h =
|
|
2556
|
+
} = e, h = Ii(() => Er(), []), [u, f] = jt(!1), y = (g) => {
|
|
2555
2557
|
var p, _, b, M;
|
|
2556
2558
|
a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (b = i.value) == null || b.call(i), (M = o.value) == null || M.call(o), f(!1);
|
|
2557
|
-
}, v =
|
|
2559
|
+
}, v = xi(() => {
|
|
2558
2560
|
var g;
|
|
2559
2561
|
u || (f(!0), (g = s.value) == null || g.call(s));
|
|
2560
2562
|
}, [u]);
|
|
@@ -2563,8 +2565,8 @@ const pr = le`
|
|
|
2563
2565
|
h.startTimer();
|
|
2564
2566
|
}, 100);
|
|
2565
2567
|
}, [u, c.value]), a.value ? w("div", {
|
|
2566
|
-
className:
|
|
2567
|
-
children: [w(
|
|
2568
|
+
className: kr,
|
|
2569
|
+
children: [w(Sr, {
|
|
2568
2570
|
mode: c.value,
|
|
2569
2571
|
onClose: y,
|
|
2570
2572
|
countdown: d.value,
|
|
@@ -2573,17 +2575,17 @@ const pr = le`
|
|
|
2573
2575
|
src: l.value,
|
|
2574
2576
|
onLoad: v,
|
|
2575
2577
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
|
|
2576
|
-
}), w(
|
|
2578
|
+
}), w(Ar, {})]
|
|
2577
2579
|
}) : null;
|
|
2578
2580
|
};
|
|
2579
2581
|
function Y(t, e, i) {
|
|
2580
|
-
return (e =
|
|
2582
|
+
return (e = Ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2581
2583
|
}
|
|
2582
|
-
function
|
|
2583
|
-
var e =
|
|
2584
|
+
function Ir(t) {
|
|
2585
|
+
var e = xr(t, "string");
|
|
2584
2586
|
return typeof e == "symbol" ? e : e + "";
|
|
2585
2587
|
}
|
|
2586
|
-
function
|
|
2588
|
+
function xr(t, e) {
|
|
2587
2589
|
if (typeof t != "object" || !t)
|
|
2588
2590
|
return t;
|
|
2589
2591
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2595,13 +2597,13 @@ function kr(t, e) {
|
|
|
2595
2597
|
}
|
|
2596
2598
|
return (e === "string" ? String : Number)(t);
|
|
2597
2599
|
}
|
|
2598
|
-
class
|
|
2600
|
+
class Rr {
|
|
2599
2601
|
constructor(e, i) {
|
|
2600
|
-
Y(this, "name", "OKSPIN"), Y(this, "initialized", !1), Y(this, "initCompleter", null), Y(this, "context", void 0), Y(this, "initParams", void 0), Y(this, "adsOverlay", null), Y(this, "adsIsShowing", !1), Y(this, "lastUnDisplayedAdBreak", null), Y(this, "state",
|
|
2602
|
+
Y(this, "name", "OKSPIN"), Y(this, "initialized", !1), Y(this, "initCompleter", null), Y(this, "context", void 0), Y(this, "initParams", void 0), Y(this, "adsOverlay", null), Y(this, "adsIsShowing", !1), Y(this, "lastUnDisplayedAdBreak", null), Y(this, "state", yi()), this.context = e, this.initParams = i;
|
|
2601
2603
|
}
|
|
2602
2604
|
async init() {
|
|
2603
2605
|
var e;
|
|
2604
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(w(
|
|
2606
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(w(_i, {
|
|
2605
2607
|
state: this.state
|
|
2606
2608
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2607
2609
|
}
|
|
@@ -2728,7 +2730,7 @@ const ie = (t, e) => {
|
|
|
2728
2730
|
Ue(() => (re[t] || (re[t] = /* @__PURE__ */ new Set()), re[t].add(e), () => {
|
|
2729
2731
|
re[t].delete(e);
|
|
2730
2732
|
}), [t, e]);
|
|
2731
|
-
},
|
|
2733
|
+
}, gi = () => {
|
|
2732
2734
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2733
2735
|
return {
|
|
2734
2736
|
afterAd: t,
|
|
@@ -2741,7 +2743,7 @@ const ie = (t, e) => {
|
|
|
2741
2743
|
visible: a,
|
|
2742
2744
|
src: d
|
|
2743
2745
|
};
|
|
2744
|
-
},
|
|
2746
|
+
}, Tr = le`
|
|
2745
2747
|
${P}
|
|
2746
2748
|
position: fixed;
|
|
2747
2749
|
z-index: 2147483647;
|
|
@@ -2760,7 +2762,7 @@ const ie = (t, e) => {
|
|
|
2760
2762
|
width: 100%;
|
|
2761
2763
|
height: 100%;
|
|
2762
2764
|
}
|
|
2763
|
-
`,
|
|
2765
|
+
`, bi = (t) => {
|
|
2764
2766
|
let {
|
|
2765
2767
|
state: e
|
|
2766
2768
|
} = t;
|
|
@@ -2773,7 +2775,7 @@ const ie = (t, e) => {
|
|
|
2773
2775
|
adLinkClicked: a,
|
|
2774
2776
|
visible: d,
|
|
2775
2777
|
src: l
|
|
2776
|
-
} = e, [c, h] =
|
|
2778
|
+
} = e, [c, h] = jt(!1), u = (y) => {
|
|
2777
2779
|
var v, g, p, _;
|
|
2778
2780
|
h(!1), d.value = !1, y === "dismiss" ? (v = n.value) == null || v.call(n) : y === "viewed" && ((g = r.value) == null || g.call(r)), (p = i.value) == null || p.call(i), (_ = o.value) == null || _.call(o);
|
|
2779
2781
|
}, f = () => {
|
|
@@ -2784,7 +2786,7 @@ const ie = (t, e) => {
|
|
|
2784
2786
|
var v;
|
|
2785
2787
|
return (v = a.value) == null ? void 0 : v.call(a, y);
|
|
2786
2788
|
}), ie("appsrockets_ad_loaded", () => h(!0)), d.value ? w("div", {
|
|
2787
|
-
className:
|
|
2789
|
+
className: Tr,
|
|
2788
2790
|
style: {
|
|
2789
2791
|
display: c ? "flex" : "none"
|
|
2790
2792
|
},
|
|
@@ -2798,13 +2800,13 @@ const ie = (t, e) => {
|
|
|
2798
2800
|
}) : null;
|
|
2799
2801
|
};
|
|
2800
2802
|
function X(t, e, i) {
|
|
2801
|
-
return (e =
|
|
2803
|
+
return (e = Or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2802
2804
|
}
|
|
2803
|
-
function
|
|
2804
|
-
var e =
|
|
2805
|
+
function Or(t) {
|
|
2806
|
+
var e = Dr(t, "string");
|
|
2805
2807
|
return typeof e == "symbol" ? e : e + "";
|
|
2806
2808
|
}
|
|
2807
|
-
function
|
|
2809
|
+
function Dr(t, e) {
|
|
2808
2810
|
if (typeof t != "object" || !t)
|
|
2809
2811
|
return t;
|
|
2810
2812
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2816,9 +2818,9 @@ function Tr(t, e) {
|
|
|
2816
2818
|
}
|
|
2817
2819
|
return (e === "string" ? String : Number)(t);
|
|
2818
2820
|
}
|
|
2819
|
-
class
|
|
2821
|
+
class Cr {
|
|
2820
2822
|
constructor(e, i) {
|
|
2821
|
-
X(this, "name", "APPSROCKETS"), X(this, "initialized", !1), X(this, "initCompleter", null), X(this, "context", void 0), X(this, "adsOverlay", null), X(this, "adsIsShowing", !1), X(this, "lastUnDisplayedAdBreak", null), X(this, "state",
|
|
2823
|
+
X(this, "name", "APPSROCKETS"), X(this, "initialized", !1), X(this, "initCompleter", null), X(this, "context", void 0), X(this, "adsOverlay", null), X(this, "adsIsShowing", !1), X(this, "lastUnDisplayedAdBreak", null), X(this, "state", gi()), X(this, "processUrl", (n) => {
|
|
2822
2824
|
var a;
|
|
2823
2825
|
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2824
2826
|
return s.has("joliSource") || s.set("joliSource", r.joliSource), s.get("osType") || s.set("osType", r.osType), s.get("runtimeType") || s.set("runtimeType", r.runtimeType), s.get("mode") || s.set("mode", "AFG"), s.get("deviceId") || s.set("deviceId", r.deviceId), s.get("statusBarHeight") || s.set("statusBarHeight", ((a = this.context.getWindowInfo().statusBarHeight) != null ? a : 0).toString()), o.search = s.toString(), o.toString();
|
|
@@ -2826,7 +2828,7 @@ class Or {
|
|
|
2826
2828
|
}
|
|
2827
2829
|
async init() {
|
|
2828
2830
|
var e;
|
|
2829
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(w(
|
|
2831
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(w(bi, {
|
|
2830
2832
|
state: this.state
|
|
2831
2833
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2832
2834
|
}
|
|
@@ -2957,13 +2959,13 @@ class Or {
|
|
|
2957
2959
|
}
|
|
2958
2960
|
}
|
|
2959
2961
|
function G(t, e, i) {
|
|
2960
|
-
return (e =
|
|
2962
|
+
return (e = Lr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2961
2963
|
}
|
|
2962
|
-
function
|
|
2963
|
-
var e =
|
|
2964
|
+
function Lr(t) {
|
|
2965
|
+
var e = Nr(t, "string");
|
|
2964
2966
|
return typeof e == "symbol" ? e : e + "";
|
|
2965
2967
|
}
|
|
2966
|
-
function
|
|
2968
|
+
function Nr(t, e) {
|
|
2967
2969
|
if (typeof t != "object" || !t)
|
|
2968
2970
|
return t;
|
|
2969
2971
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2975,10 +2977,10 @@ function Cr(t, e) {
|
|
|
2975
2977
|
}
|
|
2976
2978
|
return (e === "string" ? String : Number)(t);
|
|
2977
2979
|
}
|
|
2978
|
-
class
|
|
2980
|
+
class vo {
|
|
2979
2981
|
constructor(e) {
|
|
2980
2982
|
if (G(this, "context", void 0), G(this, "contextInfo", void 0), G(this, "providers", {}), G(this, "channelPolicy", void 0), G(this, "adsActionDetection", void 0), G(this, "adsTrackSerializer", void 0), G(this, "initialized", !1), G(this, "adsIsShowing", !1), G(this, "lastAdBreak", void 0), G(this, "initializedTimeStamp", Date.now()), e)
|
|
2981
|
-
this.context = e, this.channelPolicy = new
|
|
2983
|
+
this.context = e, this.channelPolicy = new yn(this.context), this.adsActionDetection = new Li(this.context), this.adsTrackSerializer = new Wt(this.context), this.contextInfo = this.context.getContextInfo();
|
|
2982
2984
|
else
|
|
2983
2985
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
2984
2986
|
}
|
|
@@ -3030,17 +3032,17 @@ class ho {
|
|
|
3030
3032
|
switch (n.provider) {
|
|
3031
3033
|
case "ADSENSE":
|
|
3032
3034
|
case "ADSENSE_ADMOB": {
|
|
3033
|
-
const r = new
|
|
3035
|
+
const r = new bn(this.context, n.params);
|
|
3034
3036
|
await r.init(), this.providers[n.provider] = r;
|
|
3035
3037
|
break;
|
|
3036
3038
|
}
|
|
3037
3039
|
case "OKSPIN": {
|
|
3038
|
-
const r = new
|
|
3040
|
+
const r = new Rr(this.context, n.params);
|
|
3039
3041
|
await r.init(), this.providers.OKSPIN = r;
|
|
3040
3042
|
break;
|
|
3041
3043
|
}
|
|
3042
3044
|
case "APPSROCKETS": {
|
|
3043
|
-
const r = new
|
|
3045
|
+
const r = new Cr(this.context, n.params);
|
|
3044
3046
|
await r.init(), this.providers.APPSROCKETS = r;
|
|
3045
3047
|
break;
|
|
3046
3048
|
}
|
|
@@ -3131,7 +3133,7 @@ class ho {
|
|
|
3131
3133
|
return;
|
|
3132
3134
|
}
|
|
3133
3135
|
let p = !0, _ = null;
|
|
3134
|
-
const b = new
|
|
3136
|
+
const b = new Oi(this.context);
|
|
3135
3137
|
for (this.adsActionDetection.adBreakIsShowing = !0; g.length > 0; ) {
|
|
3136
3138
|
const M = g.shift(), L = this.providers[M.provider];
|
|
3137
3139
|
if (L) {
|
|
@@ -3167,13 +3169,13 @@ class ho {
|
|
|
3167
3169
|
}
|
|
3168
3170
|
}
|
|
3169
3171
|
function Je(t, e, i) {
|
|
3170
|
-
return (e =
|
|
3172
|
+
return (e = Pr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3171
3173
|
}
|
|
3172
|
-
function
|
|
3173
|
-
var e =
|
|
3174
|
+
function Pr(t) {
|
|
3175
|
+
var e = Mr(t, "string");
|
|
3174
3176
|
return typeof e == "symbol" ? e : e + "";
|
|
3175
3177
|
}
|
|
3176
|
-
function
|
|
3178
|
+
function Mr(t, e) {
|
|
3177
3179
|
if (typeof t != "object" || !t)
|
|
3178
3180
|
return t;
|
|
3179
3181
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3185,7 +3187,7 @@ function Nr(t, e) {
|
|
|
3185
3187
|
}
|
|
3186
3188
|
return (e === "string" ? String : Number)(t);
|
|
3187
3189
|
}
|
|
3188
|
-
class
|
|
3190
|
+
class $r {
|
|
3189
3191
|
constructor(e) {
|
|
3190
3192
|
Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), this.context = e;
|
|
3191
3193
|
}
|
|
@@ -3231,13 +3233,13 @@ class Pr {
|
|
|
3231
3233
|
}
|
|
3232
3234
|
}
|
|
3233
3235
|
function Ye(t, e, i) {
|
|
3234
|
-
return (e =
|
|
3236
|
+
return (e = Ur(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3235
3237
|
}
|
|
3236
|
-
function
|
|
3237
|
-
var e =
|
|
3238
|
+
function Ur(t) {
|
|
3239
|
+
var e = Br(t, "string");
|
|
3238
3240
|
return typeof e == "symbol" ? e : e + "";
|
|
3239
3241
|
}
|
|
3240
|
-
function
|
|
3242
|
+
function Br(t, e) {
|
|
3241
3243
|
if (typeof t != "object" || !t)
|
|
3242
3244
|
return t;
|
|
3243
3245
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3263,13 +3265,13 @@ class $ extends Error {
|
|
|
3263
3265
|
}
|
|
3264
3266
|
}
|
|
3265
3267
|
function I(t, e, i) {
|
|
3266
|
-
return (e =
|
|
3268
|
+
return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3267
3269
|
}
|
|
3268
|
-
function
|
|
3269
|
-
var e =
|
|
3270
|
+
function jr(t) {
|
|
3271
|
+
var e = Fr(t, "string");
|
|
3270
3272
|
return typeof e == "symbol" ? e : e + "";
|
|
3271
3273
|
}
|
|
3272
|
-
function
|
|
3274
|
+
function Fr(t, e) {
|
|
3273
3275
|
if (typeof t != "object" || !t)
|
|
3274
3276
|
return t;
|
|
3275
3277
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3281,7 +3283,7 @@ function Br(t, e) {
|
|
|
3281
3283
|
}
|
|
3282
3284
|
return (e === "string" ? String : Number)(t);
|
|
3283
3285
|
}
|
|
3284
|
-
class
|
|
3286
|
+
class Vr {
|
|
3285
3287
|
constructor(e, i, n) {
|
|
3286
3288
|
I(this, "adsLoader", void 0), I(this, "adDisplayContainer", void 0), I(this, "isAdPlaying", !1), I(this, "isContentFinished", !1), I(this, "videoContent", void 0), I(this, "adContainer", void 0), I(this, "adsManager", void 0), I(this, "intervalTimer", void 0), I(this, "completed", !1), I(this, "adTagUrl", void 0), I(this, "notifyRequestAd", void 0), I(this, "notifyLoaded", void 0), I(this, "notifyPlayingAd", void 0), I(this, "notifyCompleted", void 0), I(this, "notifyError", void 0), I(this, "destroy", () => {
|
|
3287
3289
|
var r, o, s, a, d, l, c, h, u, f, y;
|
|
@@ -3347,7 +3349,7 @@ class jr {
|
|
|
3347
3349
|
}
|
|
3348
3350
|
}
|
|
3349
3351
|
var Le = /* @__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))(Le || {});
|
|
3350
|
-
const
|
|
3352
|
+
const zr = () => {
|
|
3351
3353
|
const t = E(!1), e = E(!1), i = E(null), n = yt(), r = yt();
|
|
3352
3354
|
return {
|
|
3353
3355
|
visible: t,
|
|
@@ -3356,7 +3358,7 @@ const Fr = () => {
|
|
|
3356
3358
|
videoRef: n,
|
|
3357
3359
|
adContainerRef: r
|
|
3358
3360
|
};
|
|
3359
|
-
},
|
|
3361
|
+
}, Kr = le`
|
|
3360
3362
|
${P}
|
|
3361
3363
|
position: fixed;
|
|
3362
3364
|
left: 0;
|
|
@@ -3405,7 +3407,7 @@ const Fr = () => {
|
|
|
3405
3407
|
cursor: pointer;
|
|
3406
3408
|
}
|
|
3407
3409
|
}
|
|
3408
|
-
`,
|
|
3410
|
+
`, Gr = (t) => {
|
|
3409
3411
|
let {
|
|
3410
3412
|
onReady: e,
|
|
3411
3413
|
state: i
|
|
@@ -3424,7 +3426,7 @@ const Fr = () => {
|
|
|
3424
3426
|
return Ue(() => {
|
|
3425
3427
|
e();
|
|
3426
3428
|
}, [e]), w("div", {
|
|
3427
|
-
className:
|
|
3429
|
+
className: Kr,
|
|
3428
3430
|
"data-visible": n.value,
|
|
3429
3431
|
children: w("div", {
|
|
3430
3432
|
className: "ads-wrapper",
|
|
@@ -3460,13 +3462,13 @@ const Fr = () => {
|
|
|
3460
3462
|
});
|
|
3461
3463
|
};
|
|
3462
3464
|
function Q(t, e, i) {
|
|
3463
|
-
return (e =
|
|
3465
|
+
return (e = qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3464
3466
|
}
|
|
3465
|
-
function
|
|
3466
|
-
var e =
|
|
3467
|
+
function qr(t) {
|
|
3468
|
+
var e = Hr(t, "string");
|
|
3467
3469
|
return typeof e == "symbol" ? e : e + "";
|
|
3468
3470
|
}
|
|
3469
|
-
function
|
|
3471
|
+
function Hr(t, e) {
|
|
3470
3472
|
if (typeof t != "object" || !t)
|
|
3471
3473
|
return t;
|
|
3472
3474
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3478,9 +3480,9 @@ function Gr(t, e) {
|
|
|
3478
3480
|
}
|
|
3479
3481
|
return (e === "string" ? String : Number)(t);
|
|
3480
3482
|
}
|
|
3481
|
-
class
|
|
3483
|
+
class Wr {
|
|
3482
3484
|
constructor(e) {
|
|
3483
|
-
Q(this, "name", "GOOGLE_IMA"), Q(this, "context", void 0), Q(this, "adsOverlay", null), Q(this, "initialized", !1), Q(this, "ima", null), Q(this, "state",
|
|
3485
|
+
Q(this, "name", "GOOGLE_IMA"), Q(this, "context", void 0), Q(this, "adsOverlay", null), Q(this, "initialized", !1), Q(this, "ima", null), Q(this, "state", zr()), Q(this, "init", async (i) => {
|
|
3484
3486
|
if (this.initialized)
|
|
3485
3487
|
return;
|
|
3486
3488
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3496,10 +3498,10 @@ class qr {
|
|
|
3496
3498
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3497
3499
|
}
|
|
3498
3500
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3499
|
-
te(w(
|
|
3501
|
+
te(w(Gr, {
|
|
3500
3502
|
state: this.state,
|
|
3501
3503
|
onReady: () => {
|
|
3502
|
-
this.ima = new
|
|
3504
|
+
this.ima = new Vr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3503
3505
|
}
|
|
3504
3506
|
}), this.adsOverlay);
|
|
3505
3507
|
}), this.initialized = !0;
|
|
@@ -3545,13 +3547,13 @@ class qr {
|
|
|
3545
3547
|
}
|
|
3546
3548
|
}
|
|
3547
3549
|
function q(t, e, i) {
|
|
3548
|
-
return (e =
|
|
3550
|
+
return (e = Jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3549
3551
|
}
|
|
3550
|
-
function
|
|
3551
|
-
var e =
|
|
3552
|
+
function Jr(t) {
|
|
3553
|
+
var e = Yr(t, "string");
|
|
3552
3554
|
return typeof e == "symbol" ? e : e + "";
|
|
3553
3555
|
}
|
|
3554
|
-
function
|
|
3556
|
+
function Yr(t, e) {
|
|
3555
3557
|
if (typeof t != "object" || !t)
|
|
3556
3558
|
return t;
|
|
3557
3559
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3563,11 +3565,11 @@ function Wr(t, e) {
|
|
|
3563
3565
|
}
|
|
3564
3566
|
return (e === "string" ? String : Number)(t);
|
|
3565
3567
|
}
|
|
3566
|
-
class
|
|
3568
|
+
class Xr {
|
|
3567
3569
|
constructor(e) {
|
|
3568
|
-
q(this, "name", "OKSPIN"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "state",
|
|
3570
|
+
q(this, "name", "OKSPIN"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "state", yi()), q(this, "init", async (i) => {
|
|
3569
3571
|
var n;
|
|
3570
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(w(
|
|
3572
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(w(_i, {
|
|
3571
3573
|
state: this.state
|
|
3572
3574
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3573
3575
|
}), q(this, "destroy", () => {
|
|
@@ -3599,13 +3601,13 @@ class Jr {
|
|
|
3599
3601
|
}
|
|
3600
3602
|
}
|
|
3601
3603
|
function z(t, e, i) {
|
|
3602
|
-
return (e =
|
|
3604
|
+
return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3603
3605
|
}
|
|
3604
|
-
function
|
|
3605
|
-
var e =
|
|
3606
|
+
function Qr(t) {
|
|
3607
|
+
var e = Zr(t, "string");
|
|
3606
3608
|
return typeof e == "symbol" ? e : e + "";
|
|
3607
3609
|
}
|
|
3608
|
-
function
|
|
3610
|
+
function Zr(t, e) {
|
|
3609
3611
|
if (typeof t != "object" || !t)
|
|
3610
3612
|
return t;
|
|
3611
3613
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3617,15 +3619,15 @@ function Xr(t, e) {
|
|
|
3617
3619
|
}
|
|
3618
3620
|
return (e === "string" ? String : Number)(t);
|
|
3619
3621
|
}
|
|
3620
|
-
class
|
|
3622
|
+
class eo {
|
|
3621
3623
|
constructor(e) {
|
|
3622
|
-
z(this, "name", "APPSROCKETS"), z(this, "initialized", !1), z(this, "initCompleter", null), z(this, "context", void 0), z(this, "adsOverlay", null), z(this, "adsIsShowing", !1), z(this, "state",
|
|
3624
|
+
z(this, "name", "APPSROCKETS"), z(this, "initialized", !1), z(this, "initCompleter", null), z(this, "context", void 0), z(this, "adsOverlay", null), z(this, "adsIsShowing", !1), z(this, "state", gi()), z(this, "processUrl", (i) => {
|
|
3623
3625
|
var s;
|
|
3624
3626
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
3625
3627
|
return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), r.search = o.toString(), r.toString();
|
|
3626
3628
|
}), z(this, "init", async (i) => {
|
|
3627
3629
|
var n;
|
|
3628
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(w(
|
|
3630
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(w(bi, {
|
|
3629
3631
|
state: this.state
|
|
3630
3632
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3631
3633
|
}), z(this, "destroy", () => {
|
|
@@ -3662,13 +3664,13 @@ class Qr {
|
|
|
3662
3664
|
}
|
|
3663
3665
|
}
|
|
3664
3666
|
function pe(t, e, i) {
|
|
3665
|
-
return (e =
|
|
3667
|
+
return (e = to(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3666
3668
|
}
|
|
3667
|
-
function
|
|
3668
|
-
var e =
|
|
3669
|
+
function to(t) {
|
|
3670
|
+
var e = io(t, "string");
|
|
3669
3671
|
return typeof e == "symbol" ? e : e + "";
|
|
3670
3672
|
}
|
|
3671
|
-
function
|
|
3673
|
+
function io(t, e) {
|
|
3672
3674
|
if (typeof t != "object" || !t)
|
|
3673
3675
|
return t;
|
|
3674
3676
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3680,10 +3682,10 @@ function eo(t, e) {
|
|
|
3680
3682
|
}
|
|
3681
3683
|
return (e === "string" ? String : Number)(t);
|
|
3682
3684
|
}
|
|
3683
|
-
class
|
|
3685
|
+
class po {
|
|
3684
3686
|
constructor(e) {
|
|
3685
3687
|
if (pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "providers", {}), pe(this, "adsTrackSerializer", void 0), pe(this, "initialized", !1), e)
|
|
3686
|
-
this.context = e, this.adsTrackSerializer = new
|
|
3688
|
+
this.context = e, this.adsTrackSerializer = new Wt(e), this.contextInfo = this.context.getContextInfo();
|
|
3687
3689
|
else
|
|
3688
3690
|
throw new Error("JoliboxAdsForVideo requires a configuration object");
|
|
3689
3691
|
}
|
|
@@ -3733,17 +3735,17 @@ class fo {
|
|
|
3733
3735
|
for (const i of e)
|
|
3734
3736
|
switch (i.provider) {
|
|
3735
3737
|
case "GOOGLE_IMA": {
|
|
3736
|
-
const n = new
|
|
3738
|
+
const n = new Wr(this.context);
|
|
3737
3739
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
3738
3740
|
break;
|
|
3739
3741
|
}
|
|
3740
3742
|
case "OKSPIN": {
|
|
3741
|
-
const n = new
|
|
3743
|
+
const n = new Xr(this.context);
|
|
3742
3744
|
await n.init(i), this.providers.OKSPIN = n;
|
|
3743
3745
|
break;
|
|
3744
3746
|
}
|
|
3745
3747
|
case "APPSROCKETS": {
|
|
3746
|
-
const n = new
|
|
3748
|
+
const n = new eo(this.context);
|
|
3747
3749
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
3748
3750
|
break;
|
|
3749
3751
|
}
|
|
@@ -3790,7 +3792,7 @@ class fo {
|
|
|
3790
3792
|
return;
|
|
3791
3793
|
}
|
|
3792
3794
|
let u = !0, f = null;
|
|
3793
|
-
const y = new
|
|
3795
|
+
const y = new $r(this.context);
|
|
3794
3796
|
for (; h.length > 0; ) {
|
|
3795
3797
|
const v = h.shift(), g = this.providers[v.provider];
|
|
3796
3798
|
if (g) {
|
|
@@ -3812,13 +3814,13 @@ class fo {
|
|
|
3812
3814
|
}
|
|
3813
3815
|
}
|
|
3814
3816
|
function ne(t, e, i) {
|
|
3815
|
-
return (e =
|
|
3817
|
+
return (e = no(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3816
3818
|
}
|
|
3817
|
-
function
|
|
3818
|
-
var e =
|
|
3819
|
+
function no(t) {
|
|
3820
|
+
var e = ro(t, "string");
|
|
3819
3821
|
return typeof e == "symbol" ? e : e + "";
|
|
3820
3822
|
}
|
|
3821
|
-
function
|
|
3823
|
+
function ro(t, e) {
|
|
3822
3824
|
if (typeof t != "object" || !t)
|
|
3823
3825
|
return t;
|
|
3824
3826
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3830,18 +3832,18 @@ function io(t, e) {
|
|
|
3830
3832
|
}
|
|
3831
3833
|
return (e === "string" ? String : Number)(t);
|
|
3832
3834
|
}
|
|
3833
|
-
class
|
|
3835
|
+
class yo extends Error {
|
|
3834
3836
|
constructor(e) {
|
|
3835
3837
|
super(e), ne(this, "name", void 0), ne(this, "message", void 0), ne(this, "errMsg", void 0), ne(this, "code", void 0), ne(this, "data", void 0), ne(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
3836
3838
|
}
|
|
3837
3839
|
}
|
|
3838
3840
|
export {
|
|
3839
3841
|
$ as AFVWrappedError,
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3842
|
+
bn as GoogleAdSenseProvider,
|
|
3843
|
+
Wr as GoogleIMAProvider,
|
|
3844
|
+
vo as JoliboxAdsForGame,
|
|
3845
|
+
po as JoliboxAdsForVideo,
|
|
3846
|
+
Rr as OKSpinForGameProvider,
|
|
3847
|
+
Xr as OKSpinForVideoProvider,
|
|
3848
|
+
yo as ResponseError
|
|
3847
3849
|
};
|