@jolibox/ads 1.1.25 → 1.1.27
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/appsrockets/index.d.ts +18 -0
- package/dist/afg/appsrockets/type.d.ts +10 -0
- package/dist/afg/type.d.ts +6 -3
- package/dist/afv/appsrockets/index.d.ts +17 -0
- package/dist/afv/appsrockets/type.d.ts +10 -0
- package/dist/afv/type.d.ts +7 -4
- package/dist/components/appsrockets/ads-overlay.d.ts +16 -0
- package/dist/components/appsrockets/use-window-message.d.ts +12 -0
- package/dist/index.js +1238 -911
- package/dist/type/base.d.ts +7 -0
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var pt = Object.getOwnPropertySymbols;
|
|
2
|
+
var wi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var yt = (t, e) => {
|
|
4
4
|
var i = {};
|
|
5
5
|
for (var n in t)
|
|
6
|
-
|
|
7
|
-
if (t != null &&
|
|
8
|
-
for (var n of
|
|
9
|
-
e.indexOf(n) < 0 &&
|
|
6
|
+
wi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && pt)
|
|
8
|
+
for (var n of pt(t))
|
|
9
|
+
e.indexOf(n) < 0 && bi.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as
|
|
13
|
-
import { useRef as
|
|
14
|
-
function
|
|
15
|
-
return (e =
|
|
12
|
+
import { options as ie, Component as Ai, isValidElement as mi } from "preact";
|
|
13
|
+
import { useRef as Ei, useLayoutEffect as Si, useEffect as dt, useMemo as ki, render as te, useState as xi, createRef as _t } from "preact/compat";
|
|
14
|
+
function V(t, e, i) {
|
|
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 = Ii(t, "string");
|
|
19
19
|
return typeof e == "symbol" ? e : e + "";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ii(t, e) {
|
|
22
22
|
if (typeof t != "object" || !t)
|
|
23
23
|
return t;
|
|
24
24
|
var i = t[Symbol.toPrimitive];
|
|
@@ -30,9 +30,9 @@ function wi(t, e) {
|
|
|
30
30
|
}
|
|
31
31
|
return (e === "string" ? String : Number)(t);
|
|
32
32
|
}
|
|
33
|
-
class
|
|
33
|
+
class Ti {
|
|
34
34
|
constructor(e) {
|
|
35
|
-
|
|
35
|
+
V(this, "context", void 0), V(this, "continueCallback", void 0), V(this, "isBeforeAdCalled", !1), V(this, "isBeforeRewardCalled", !1), V(this, "isAdDismissedCalled", !1), V(this, "isAdViewedCalled", !1), V(this, "isAfterAdCalled", !1), V(this, "currentProvider", void 0), V(this, "currentClientParams", void 0), V(this, "adsHasResponse", !1), V(this, "videoChecker", window.document.createElement("video")), V(this, "wrapShowAdFn", (i) => () => {
|
|
36
36
|
this.adsHasResponse = !0;
|
|
37
37
|
let n = !1;
|
|
38
38
|
this.videoChecker.play().catch(() => {
|
|
@@ -156,14 +156,14 @@ class bi {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
return (e =
|
|
159
|
+
function Se(t, e, i) {
|
|
160
|
+
return (e = Oi(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
var e =
|
|
162
|
+
function Oi(t) {
|
|
163
|
+
var e = Di(t, "string");
|
|
164
164
|
return typeof e == "symbol" ? e : e + "";
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Di(t, e) {
|
|
167
167
|
if (typeof t != "object" || !t)
|
|
168
168
|
return t;
|
|
169
169
|
var i = t[Symbol.toPrimitive];
|
|
@@ -175,13 +175,13 @@ function Si(t, e) {
|
|
|
175
175
|
}
|
|
176
176
|
return (e === "string" ? String : Number)(t);
|
|
177
177
|
}
|
|
178
|
-
class
|
|
178
|
+
class Li {
|
|
179
179
|
constructor(e) {
|
|
180
|
-
|
|
180
|
+
Se(this, "context", void 0), Se(this, "adBreakIsShowing", !1), Se(this, "reportPageJumpOut", () => {
|
|
181
181
|
this.context.track("AdBreakJumpOut", {
|
|
182
182
|
context: "AdsActionDetection"
|
|
183
183
|
});
|
|
184
|
-
}),
|
|
184
|
+
}), Se(this, "reportPageHide", () => {
|
|
185
185
|
this.context.track("AdBreakHide", {
|
|
186
186
|
context: "AdsActionDetection"
|
|
187
187
|
});
|
|
@@ -192,29 +192,29 @@ class xi {
|
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var Bt = Object.defineProperty, Ci = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Pi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, wt = (t, e, i) => e in t ? Bt(t, e, {
|
|
196
196
|
enumerable: !0,
|
|
197
197
|
configurable: !0,
|
|
198
198
|
writable: !0,
|
|
199
199
|
value: i
|
|
200
|
-
}) : t[e] = i,
|
|
200
|
+
}) : t[e] = i, Mi = (t, e) => {
|
|
201
201
|
for (var i in e || (e = {}))
|
|
202
|
-
|
|
203
|
-
if (
|
|
204
|
-
for (var i of
|
|
205
|
-
|
|
202
|
+
Pi.call(e, i) && wt(t, i, e[i]);
|
|
203
|
+
if (gt)
|
|
204
|
+
for (var i of gt(e))
|
|
205
|
+
$i.call(e, i) && wt(t, i, e[i]);
|
|
206
206
|
return t;
|
|
207
|
-
},
|
|
207
|
+
}, Ui = (t, e) => Ci(t, Ni(e)), Bi = (t, e) => {
|
|
208
208
|
for (var i in e)
|
|
209
|
-
|
|
209
|
+
Bt(t, i, {
|
|
210
210
|
get: e[i],
|
|
211
211
|
enumerable: !0
|
|
212
212
|
});
|
|
213
|
-
},
|
|
213
|
+
}, jt = (t, e, i, n) => {
|
|
214
214
|
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
215
215
|
(s = t[o]) && (r = s(r) || r);
|
|
216
216
|
return r;
|
|
217
|
-
},
|
|
217
|
+
}, ji = (t, e, i) => new Promise((n, r) => {
|
|
218
218
|
var o = (d) => {
|
|
219
219
|
try {
|
|
220
220
|
a(i.next(d));
|
|
@@ -259,26 +259,26 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
259
259
|
n.call(this, i);
|
|
260
260
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Fi(t) {
|
|
263
263
|
return new Promise((e) => {
|
|
264
264
|
setTimeout(() => {
|
|
265
265
|
e();
|
|
266
266
|
}, t);
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Vi(t) {
|
|
270
270
|
return typeof t == "string";
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function zi(t) {
|
|
273
273
|
return typeof t == "undefined";
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
275
|
+
function Gi(t) {
|
|
276
|
+
return zi(t) || t === null;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Ki(t) {
|
|
279
279
|
return typeof t == "function";
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Ft(t) {
|
|
282
282
|
let e = t, i = null, n = function() {
|
|
283
283
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
284
284
|
o[s] = arguments[s];
|
|
@@ -286,27 +286,27 @@ function $t(t) {
|
|
|
286
286
|
};
|
|
287
287
|
return n.prototype = e.prototype, n;
|
|
288
288
|
}
|
|
289
|
-
var
|
|
290
|
-
function
|
|
289
|
+
var qi = ((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))(qi || {});
|
|
290
|
+
function fe(t) {
|
|
291
291
|
return function() {
|
|
292
292
|
var e, i;
|
|
293
293
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
var
|
|
297
|
-
log:
|
|
298
|
-
warn:
|
|
299
|
-
info:
|
|
300
|
-
error:
|
|
301
|
-
debug:
|
|
296
|
+
var Hi = {
|
|
297
|
+
log: fe("log"),
|
|
298
|
+
warn: fe("warn"),
|
|
299
|
+
info: fe("info"),
|
|
300
|
+
error: fe("error"),
|
|
301
|
+
debug: fe("debug")
|
|
302
302
|
};
|
|
303
303
|
Object.assign(globalThis, {
|
|
304
|
-
logger:
|
|
304
|
+
logger: Hi
|
|
305
305
|
});
|
|
306
|
-
var
|
|
307
|
-
globalThis[
|
|
308
|
-
var
|
|
309
|
-
function
|
|
306
|
+
var bt = Symbol.for("Jolibox.canIUseMap"), Wi = {};
|
|
307
|
+
globalThis[bt] || (globalThis[bt] = Wi);
|
|
308
|
+
var Vt = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Vt || {}), zt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(zt || {}), Gt = ((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))(Gt || {}), At = ["name", "params"], Ji = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Yi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
309
|
+
function Re(t, e) {
|
|
310
310
|
return e.map((i) => {
|
|
311
311
|
if (i === "params" && t[i]) {
|
|
312
312
|
let n = t[i];
|
|
@@ -315,18 +315,18 @@ function Ee(t, e) {
|
|
|
315
315
|
return t[i];
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
let e = t.location ?
|
|
320
|
-
return
|
|
318
|
+
function Xi(t) {
|
|
319
|
+
let e = t.location ? Re(t.location, At) : null, i = t.target ? Re(t.target, At) : null;
|
|
320
|
+
return Re(Ui(Mi({}, t), {
|
|
321
321
|
location: e,
|
|
322
322
|
target: i
|
|
323
|
-
}),
|
|
323
|
+
}), Ji);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
let e = t.events.map((n) =>
|
|
325
|
+
function Qi(t) {
|
|
326
|
+
let e = t.events.map((n) => Xi(n)), i = Re(t.device, Yi);
|
|
327
327
|
return [t.protocolVersion, e, i, t.project];
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Zi() {
|
|
330
330
|
try {
|
|
331
331
|
if (window.__joliboxLocalStorage__)
|
|
332
332
|
return window.__joliboxLocalStorage__;
|
|
@@ -347,31 +347,31 @@ function qi() {
|
|
|
347
347
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
Zi();
|
|
351
351
|
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");
|
|
352
|
-
var
|
|
352
|
+
var Xe = class Qe {
|
|
353
353
|
constructor(e) {
|
|
354
|
-
this.element = e, this.next =
|
|
354
|
+
this.element = e, this.next = Qe.Undefined, this.prev = Qe.Undefined;
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
|
|
358
|
-
var
|
|
357
|
+
Xe.Undefined = new Xe(void 0);
|
|
358
|
+
var R = Xe, en = class {
|
|
359
359
|
constructor() {
|
|
360
|
-
this._first =
|
|
360
|
+
this._first = R.Undefined, this._last = R.Undefined, this._size = 0;
|
|
361
361
|
}
|
|
362
362
|
get size() {
|
|
363
363
|
return this._size;
|
|
364
364
|
}
|
|
365
365
|
isEmpty() {
|
|
366
|
-
return this._first ===
|
|
366
|
+
return this._first === R.Undefined;
|
|
367
367
|
}
|
|
368
368
|
clear() {
|
|
369
369
|
let e = this._first;
|
|
370
|
-
for (; e !==
|
|
370
|
+
for (; e !== R.Undefined; ) {
|
|
371
371
|
let i = e.next;
|
|
372
|
-
e.prev =
|
|
372
|
+
e.prev = R.Undefined, e.next = R.Undefined, e = i;
|
|
373
373
|
}
|
|
374
|
-
this._first =
|
|
374
|
+
this._first = R.Undefined, this._last = R.Undefined, this._size = 0;
|
|
375
375
|
}
|
|
376
376
|
unshift(e) {
|
|
377
377
|
return this._insert(e, !1);
|
|
@@ -380,8 +380,8 @@ var x = He, Hi = class {
|
|
|
380
380
|
return this._insert(e, !0);
|
|
381
381
|
}
|
|
382
382
|
_insert(e, i) {
|
|
383
|
-
let n = new
|
|
384
|
-
if (this._first ===
|
|
383
|
+
let n = new R(e);
|
|
384
|
+
if (this._first === R.Undefined)
|
|
385
385
|
this._first = n, this._last = n;
|
|
386
386
|
else if (i) {
|
|
387
387
|
let o = this._last;
|
|
@@ -397,41 +397,41 @@ var x = He, Hi = class {
|
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
shift() {
|
|
400
|
-
if (this._first !==
|
|
400
|
+
if (this._first !== R.Undefined) {
|
|
401
401
|
let e = this._first.element;
|
|
402
402
|
return this._remove(this._first), e;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
pop() {
|
|
406
|
-
if (this._last !==
|
|
406
|
+
if (this._last !== R.Undefined) {
|
|
407
407
|
let e = this._last.element;
|
|
408
408
|
return this._remove(this._last), e;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
_remove(e) {
|
|
412
|
-
if (e.prev !==
|
|
412
|
+
if (e.prev !== R.Undefined && e.next !== R.Undefined) {
|
|
413
413
|
let i = e.prev;
|
|
414
414
|
i.next = e.next, e.next.prev = i;
|
|
415
415
|
} else
|
|
416
|
-
e.prev ===
|
|
416
|
+
e.prev === R.Undefined && e.next === R.Undefined ? (this._first = R.Undefined, this._last = R.Undefined) : e.next === R.Undefined ? (this._last = this._last.prev, this._last.next = R.Undefined) : e.prev === R.Undefined && (this._first = this._first.next, this._first.prev = R.Undefined);
|
|
417
417
|
this._size -= 1;
|
|
418
418
|
}
|
|
419
419
|
*[Symbol.iterator]() {
|
|
420
420
|
let e = this._first;
|
|
421
|
-
for (; e !==
|
|
421
|
+
for (; e !== R.Undefined; )
|
|
422
422
|
yield e.element, e = e.next;
|
|
423
423
|
}
|
|
424
|
-
},
|
|
424
|
+
}, tn = 0, ve = class {
|
|
425
425
|
constructor(e) {
|
|
426
|
-
this.value = e, this.id =
|
|
426
|
+
this.value = e, this.id = tn++;
|
|
427
427
|
}
|
|
428
|
-
},
|
|
428
|
+
}, we = class {
|
|
429
429
|
constructor(e) {
|
|
430
430
|
this.options = e, this._size = 0;
|
|
431
431
|
}
|
|
432
432
|
dispose(e) {
|
|
433
433
|
var i, n;
|
|
434
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
434
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof ve && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
|
|
435
435
|
}
|
|
436
436
|
get event() {
|
|
437
437
|
return this._event != null || (this._event = (e, i) => {
|
|
@@ -441,15 +441,15 @@ var x = He, Hi = class {
|
|
|
441
441
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
442
442
|
};
|
|
443
443
|
i && (e = e.bind(i));
|
|
444
|
-
let l = new
|
|
445
|
-
return this._listeners ? this._listeners instanceof
|
|
446
|
-
var c, u, f
|
|
444
|
+
let l = new ve(e);
|
|
445
|
+
return this._listeners ? this._listeners instanceof ve ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, 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++, () => {
|
|
446
|
+
var c, h, u, f;
|
|
447
447
|
if (!this._disposed) {
|
|
448
|
-
if (this._listeners instanceof
|
|
449
|
-
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (
|
|
448
|
+
if (this._listeners instanceof ve)
|
|
449
|
+
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || h.call(c));
|
|
450
450
|
else if (this._listeners) {
|
|
451
451
|
let y = this._listeners.indexOf(l);
|
|
452
|
-
y >= 0 && (this._listeners.splice(y, 1), this._size--, this._size === 0 && ((
|
|
452
|
+
y >= 0 && (this._listeners.splice(y, 1), this._size--, this._size === 0 && ((f = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || f.call(u)));
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
};
|
|
@@ -471,19 +471,19 @@ var x = He, Hi = class {
|
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
fire(e) {
|
|
474
|
-
this._listeners && (this._listeners instanceof
|
|
474
|
+
this._listeners && (this._listeners instanceof ve ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
475
475
|
}
|
|
476
476
|
hasListeners() {
|
|
477
477
|
return this._size > 0;
|
|
478
478
|
}
|
|
479
|
-
},
|
|
479
|
+
}, nn = class {
|
|
480
480
|
constructor() {
|
|
481
481
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
482
482
|
}
|
|
483
483
|
on(t, e) {
|
|
484
484
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
485
485
|
var n;
|
|
486
|
-
let r = (n = this.listeners.get(t)) != null ? n : new
|
|
486
|
+
let r = (n = this.listeners.get(t)) != null ? n : new we(), o = (d) => e(...d.args), s = r.event(o);
|
|
487
487
|
this.listerHandlerMap.set(e, {
|
|
488
488
|
handler: o,
|
|
489
489
|
dispose: s
|
|
@@ -504,7 +504,7 @@ var x = He, Hi = class {
|
|
|
504
504
|
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
505
505
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
506
506
|
r[o - 1] = arguments[o];
|
|
507
|
-
i || (i = new
|
|
507
|
+
i || (i = new en(), this.cachedEventQueue.set(t, i)), i.push({
|
|
508
508
|
args: r
|
|
509
509
|
}), e && e.fire({
|
|
510
510
|
event: t,
|
|
@@ -518,20 +518,20 @@ var x = He, Hi = class {
|
|
|
518
518
|
};
|
|
519
519
|
this.on(t, n, !1);
|
|
520
520
|
}
|
|
521
|
-
},
|
|
522
|
-
|
|
523
|
-
None: () =>
|
|
524
|
-
filter: () =>
|
|
525
|
-
once: () =>
|
|
526
|
-
toPromise: () =>
|
|
521
|
+
}, Ze = {};
|
|
522
|
+
Bi(Ze, {
|
|
523
|
+
None: () => rn,
|
|
524
|
+
filter: () => sn,
|
|
525
|
+
once: () => Kt,
|
|
526
|
+
toPromise: () => on
|
|
527
527
|
});
|
|
528
|
-
var
|
|
528
|
+
var rn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
529
529
|
console.log("[Jolibox SDK] None Event dispose");
|
|
530
530
|
});
|
|
531
|
-
function
|
|
532
|
-
return new Promise((e) =>
|
|
531
|
+
function on(t) {
|
|
532
|
+
return new Promise((e) => Kt(t)(e));
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Kt(t) {
|
|
535
535
|
return function(e) {
|
|
536
536
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
537
537
|
return t((r) => {
|
|
@@ -540,52 +540,52 @@ function Bt(t) {
|
|
|
540
540
|
}, null);
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function sn(t, e) {
|
|
544
544
|
return ((i) => {
|
|
545
545
|
let n = {
|
|
546
546
|
onWillAddFirstListener() {
|
|
547
547
|
i(r.fire, r);
|
|
548
548
|
}
|
|
549
|
-
}, r = new
|
|
549
|
+
}, r = new we(n);
|
|
550
550
|
return r.event;
|
|
551
551
|
})(function(i) {
|
|
552
552
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
553
553
|
return t((r) => e(r) && i.call(n, r), null);
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
|
-
var
|
|
557
|
-
let t = new
|
|
558
|
-
return globalThis[
|
|
556
|
+
var ze = Symbol.for("Jolibox.hostEmitter"), an = () => {
|
|
557
|
+
let t = new nn();
|
|
558
|
+
return globalThis[ze] || (globalThis[ze] = {
|
|
559
559
|
on: t.on.bind(t),
|
|
560
560
|
off: t.off.bind(t),
|
|
561
561
|
emit: t.emit.bind(t),
|
|
562
562
|
once: t.once.bind(t)
|
|
563
|
-
}), globalThis[
|
|
563
|
+
}), globalThis[ze];
|
|
564
564
|
};
|
|
565
|
-
|
|
566
|
-
function
|
|
565
|
+
an();
|
|
566
|
+
function dn(t, e) {
|
|
567
567
|
let i = Math.min(t.length, e.length);
|
|
568
568
|
for (let n = 0; n < i; n++)
|
|
569
|
-
|
|
569
|
+
ln(t[n], e[n]);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
if (
|
|
571
|
+
function ln(t, e) {
|
|
572
|
+
if (Vi(e)) {
|
|
573
573
|
if (typeof t !== e)
|
|
574
574
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
575
|
-
} else if (
|
|
575
|
+
} else if (Ki(e)) {
|
|
576
576
|
try {
|
|
577
577
|
if (t instanceof e)
|
|
578
578
|
return;
|
|
579
579
|
} catch (i) {
|
|
580
580
|
}
|
|
581
|
-
if (
|
|
581
|
+
if (!Gi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
582
582
|
return;
|
|
583
583
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
var
|
|
586
|
+
var et = class {
|
|
587
587
|
constructor() {
|
|
588
|
-
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new
|
|
588
|
+
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new we(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
589
589
|
}
|
|
590
590
|
registerCommand(e) {
|
|
591
591
|
if (!e)
|
|
@@ -598,7 +598,7 @@ var Ye = class {
|
|
|
598
598
|
e.handler = function() {
|
|
599
599
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
600
600
|
s[a] = arguments[a];
|
|
601
|
-
return
|
|
601
|
+
return dn(s, n), r(...s);
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
let {
|
|
@@ -618,19 +618,19 @@ var Ye = class {
|
|
|
618
618
|
return e;
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
|
-
|
|
622
|
-
var
|
|
621
|
+
et = jt([Ft], et);
|
|
622
|
+
var mt = class {
|
|
623
623
|
constructor() {
|
|
624
|
-
this._onWillExecuteCommand = new
|
|
624
|
+
this._onWillExecuteCommand = new we(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new we(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new et(), this._starActivation = null;
|
|
625
625
|
}
|
|
626
626
|
_activateStar() {
|
|
627
|
-
return this._starActivation || (this._starActivation =
|
|
627
|
+
return this._starActivation || (this._starActivation = Fi(3e4)), this._starActivation;
|
|
628
628
|
}
|
|
629
629
|
executeCommand(e) {
|
|
630
630
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
631
631
|
n[r - 1] = arguments[r];
|
|
632
|
-
return
|
|
633
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
632
|
+
return ji(this, null, function* () {
|
|
633
|
+
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));
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
executeCommandThowErr(e) {
|
|
@@ -676,15 +676,15 @@ var yt = class {
|
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
|
|
680
|
-
function
|
|
681
|
-
return (e =
|
|
679
|
+
mt = jt([Ft], mt);
|
|
680
|
+
function Ge(t, e, i) {
|
|
681
|
+
return (e = cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
var e =
|
|
683
|
+
function cn(t) {
|
|
684
|
+
var e = un(t, "string");
|
|
685
685
|
return typeof e == "symbol" ? e : e + "";
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function un(t, e) {
|
|
688
688
|
if (typeof t != "object" || !t)
|
|
689
689
|
return t;
|
|
690
690
|
var i = t[Symbol.toPrimitive];
|
|
@@ -696,10 +696,10 @@ function rn(t, e) {
|
|
|
696
696
|
}
|
|
697
697
|
return (e === "string" ? String : Number)(t);
|
|
698
698
|
}
|
|
699
|
-
class
|
|
699
|
+
class qt {
|
|
700
700
|
constructor(e) {
|
|
701
701
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
702
|
-
|
|
702
|
+
Ge(this, "context", void 0), Ge(this, "placement", "GAME"), Ge(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
703
703
|
}
|
|
704
704
|
getLocation() {
|
|
705
705
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -713,7 +713,7 @@ class Vt {
|
|
|
713
713
|
getDevice() {
|
|
714
714
|
var e, i, n, r;
|
|
715
715
|
return {
|
|
716
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
716
|
+
platform: (e = this.contextInfo.platform) != null ? e : Gt.WebSDK,
|
|
717
717
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
718
718
|
appVersion: "1.0.0",
|
|
719
719
|
// mock
|
|
@@ -732,7 +732,7 @@ class Vt {
|
|
|
732
732
|
protocolVersion: "1.0.0",
|
|
733
733
|
events: [{
|
|
734
734
|
name: e,
|
|
735
|
-
type:
|
|
735
|
+
type: Vt.System,
|
|
736
736
|
location: this.getLocation(),
|
|
737
737
|
target: null,
|
|
738
738
|
extra: i,
|
|
@@ -740,19 +740,19 @@ class Vt {
|
|
|
740
740
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
741
741
|
}],
|
|
742
742
|
device: this.getDevice(),
|
|
743
|
-
project:
|
|
743
|
+
project: zt.WebSDK
|
|
744
744
|
};
|
|
745
|
-
return
|
|
745
|
+
return Qi(r);
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
return (e =
|
|
748
|
+
function ke(t, e, i) {
|
|
749
|
+
return (e = hn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
var e =
|
|
751
|
+
function hn(t) {
|
|
752
|
+
var e = fn(t, "string");
|
|
753
753
|
return typeof e == "symbol" ? e : e + "";
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function fn(t, e) {
|
|
756
756
|
if (typeof t != "object" || !t)
|
|
757
757
|
return t;
|
|
758
758
|
var i = t[Symbol.toPrimitive];
|
|
@@ -764,9 +764,9 @@ function sn(t, e) {
|
|
|
764
764
|
}
|
|
765
765
|
return (e === "string" ? String : Number)(t);
|
|
766
766
|
}
|
|
767
|
-
class
|
|
767
|
+
class vn {
|
|
768
768
|
constructor(e) {
|
|
769
|
-
|
|
769
|
+
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();
|
|
770
770
|
}
|
|
771
771
|
async init() {
|
|
772
772
|
try {
|
|
@@ -790,14 +790,14 @@ class an {
|
|
|
790
790
|
return this.firstRun = !1, e;
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
function
|
|
794
|
-
return (e =
|
|
793
|
+
function W(t, e, i) {
|
|
794
|
+
return (e = pn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
var e =
|
|
796
|
+
function pn(t) {
|
|
797
|
+
var e = yn(t, "string");
|
|
798
798
|
return typeof e == "symbol" ? e : e + "";
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function yn(t, e) {
|
|
801
801
|
if (typeof t != "object" || !t)
|
|
802
802
|
return t;
|
|
803
803
|
var i = t[Symbol.toPrimitive];
|
|
@@ -809,32 +809,32 @@ function ln(t, e) {
|
|
|
809
809
|
}
|
|
810
810
|
return (e === "string" ? String : Number)(t);
|
|
811
811
|
}
|
|
812
|
-
class
|
|
812
|
+
class _n {
|
|
813
813
|
/**
|
|
814
814
|
* Internal constructor, should not be called directly
|
|
815
815
|
*/
|
|
816
816
|
constructor(e, i) {
|
|
817
|
-
|
|
817
|
+
W(this, "name", "ADSENSE"), W(this, "context", void 0), W(this, "contextInfo", void 0), W(this, "configured", !1), W(this, "initParams", void 0), W(this, "push", function() {
|
|
818
818
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
819
819
|
window.adsbygoogle.push(n);
|
|
820
|
-
}),
|
|
820
|
+
}), W(this, "adConfig", (n) => {
|
|
821
821
|
const s = n, {
|
|
822
822
|
onReady: r
|
|
823
|
-
} = s, o =
|
|
823
|
+
} = s, o = yt(s, [
|
|
824
824
|
"onReady"
|
|
825
825
|
]);
|
|
826
826
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
827
|
-
}),
|
|
827
|
+
}), W(this, "adBreak", (n) => {
|
|
828
828
|
if (!this.contextInfo.objectId) {
|
|
829
829
|
console.warn("Game ID is not set, skip calling adBreak");
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
this.push(n);
|
|
833
|
-
}),
|
|
834
|
-
var y,
|
|
833
|
+
}), W(this, "adUnit", async (n) => {
|
|
834
|
+
var y, v, g, p;
|
|
835
835
|
if (this.context.track("CallAdUnit", {
|
|
836
|
-
adFormat: (
|
|
837
|
-
fullWidthResponsive: (
|
|
836
|
+
adFormat: (v = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? v : null,
|
|
837
|
+
fullWidthResponsive: (g = n.fullWidthResponsive) != null ? g : null
|
|
838
838
|
}), document.querySelector("#jolibox-ads")) {
|
|
839
839
|
console.warn("Ad unit already set, skipping");
|
|
840
840
|
return;
|
|
@@ -854,21 +854,21 @@ class cn {
|
|
|
854
854
|
let c = o;
|
|
855
855
|
if (c || (c = this.initParams.unitId), !c)
|
|
856
856
|
throw new Error("slot is required");
|
|
857
|
-
const
|
|
858
|
-
if (
|
|
859
|
-
const
|
|
860
|
-
|
|
857
|
+
const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, u = document.createElement("ins");
|
|
858
|
+
if (u.className = "adsbygoogle", u.id = "jolibox-ads", u.style.display = "block", u.setAttribute("data-ad-client", this.initParams.clientId), u.setAttribute("data-ad-slot", c), h && u.setAttribute("data-ad-format", h), a && u.setAttribute("data-full-width-responsive", a), d && u.setAttribute("style", d), (p = this.contextInfo.testAdsMode) != null ? p : !1) {
|
|
859
|
+
const _ = document.createElement("div");
|
|
860
|
+
_.style.position = "absolute", _.style.top = "0", _.style.left = "0", _.style.width = "100%", _.style.height = "100%", _.style.display = "flex", _.style.justifyContent = "center", _.style.alignItems = "center", _.style.backgroundColor = "rgba(0, 0, 0, 0.5)", _.style.color = "white", _.innerHTML = "Test Ad", u.style.position = "relative", l.appendChild(u), u.appendChild(_);
|
|
861
861
|
} else
|
|
862
|
-
l.appendChild(
|
|
863
|
-
|
|
864
|
-
if (
|
|
865
|
-
const
|
|
862
|
+
l.appendChild(u), new MutationObserver((w) => {
|
|
863
|
+
w.forEach((j) => {
|
|
864
|
+
if (j.type === "attributes" && j.attributeName === "data-ad-status") {
|
|
865
|
+
const U = u.getAttribute("data-ad-status");
|
|
866
866
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
867
|
-
status:
|
|
867
|
+
status: U != null ? U : "null"
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
});
|
|
871
|
-
}).observe(
|
|
871
|
+
}).observe(u, {
|
|
872
872
|
attributes: !0,
|
|
873
873
|
attributeFilter: ["data-ad-status"]
|
|
874
874
|
}), this.push({});
|
|
@@ -887,18 +887,18 @@ class cn {
|
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function gn(t) {
|
|
891
891
|
if (t.sheet)
|
|
892
892
|
return t.sheet;
|
|
893
893
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
894
894
|
if (document.styleSheets[e].ownerNode === t)
|
|
895
895
|
return document.styleSheets[e];
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function wn(t) {
|
|
898
898
|
var e = document.createElement("style");
|
|
899
899
|
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;
|
|
900
900
|
}
|
|
901
|
-
var
|
|
901
|
+
var bn = /* @__PURE__ */ function() {
|
|
902
902
|
function t(i) {
|
|
903
903
|
var n = this;
|
|
904
904
|
this._insertTag = function(r) {
|
|
@@ -910,10 +910,10 @@ var hn = /* @__PURE__ */ function() {
|
|
|
910
910
|
return e.hydrate = function(n) {
|
|
911
911
|
n.forEach(this._insertTag);
|
|
912
912
|
}, e.insert = function(n) {
|
|
913
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
913
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(wn(this));
|
|
914
914
|
var r = this.tags[this.tags.length - 1];
|
|
915
915
|
if (this.isSpeedy) {
|
|
916
|
-
var o =
|
|
916
|
+
var o = gn(r);
|
|
917
917
|
try {
|
|
918
918
|
o.insertRule(n, o.cssRules.length);
|
|
919
919
|
} catch (s) {
|
|
@@ -927,66 +927,66 @@ var hn = /* @__PURE__ */ function() {
|
|
|
927
927
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
928
928
|
}), this.tags = [], this.ctr = 0;
|
|
929
929
|
}, t;
|
|
930
|
-
}(),
|
|
931
|
-
function
|
|
932
|
-
return
|
|
930
|
+
}(), C = "-ms-", Ne = "-moz-", A = "-webkit-", Ht = "comm", lt = "rule", ct = "decl", An = "@import", Wt = "@keyframes", mn = "@layer", En = Math.abs, Be = String.fromCharCode, Sn = Object.assign;
|
|
931
|
+
function kn(t, e) {
|
|
932
|
+
return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function Jt(t) {
|
|
935
935
|
return t.trim();
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function xn(t, e) {
|
|
938
938
|
return (t = e.exec(t)) ? t[0] : t;
|
|
939
939
|
}
|
|
940
940
|
function m(t, e, i) {
|
|
941
941
|
return t.replace(e, i);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function tt(t, e) {
|
|
944
944
|
return t.indexOf(e);
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function D(t, e) {
|
|
947
947
|
return t.charCodeAt(e) | 0;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function be(t, e, i) {
|
|
950
950
|
return t.slice(e, i);
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function q(t) {
|
|
953
953
|
return t.length;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function ut(t) {
|
|
956
956
|
return t.length;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function xe(t, e) {
|
|
959
959
|
return e.push(t), t;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Rn(t, e) {
|
|
962
962
|
return t.map(e).join("");
|
|
963
963
|
}
|
|
964
|
-
var
|
|
965
|
-
function
|
|
966
|
-
return { value: t, root: e, parent: i, type: n, props: r, children: o, line:
|
|
964
|
+
var je = 1, ae = 1, Yt = 0, M = 0, T = 0, de = "";
|
|
965
|
+
function Fe(t, e, i, n, r, o, s) {
|
|
966
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: je, column: ae, length: s, return: "" };
|
|
967
967
|
}
|
|
968
|
-
function
|
|
969
|
-
return
|
|
968
|
+
function pe(t, e) {
|
|
969
|
+
return Sn(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function In() {
|
|
972
972
|
return T;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
return T = M > 0 ?
|
|
974
|
+
function Tn() {
|
|
975
|
+
return T = M > 0 ? D(de, --M) : 0, ae--, T === 10 && (ae = 1, je--), T;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
return T = M <
|
|
977
|
+
function B() {
|
|
978
|
+
return T = M < Yt ? D(de, M++) : 0, ae++, T === 10 && (ae = 1, je++), T;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
981
|
-
return
|
|
980
|
+
function H() {
|
|
981
|
+
return D(de, M);
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function Ie() {
|
|
984
984
|
return M;
|
|
985
985
|
}
|
|
986
|
-
function
|
|
987
|
-
return
|
|
986
|
+
function me(t, e) {
|
|
987
|
+
return be(de, t, e);
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function Ae(t) {
|
|
990
990
|
switch (t) {
|
|
991
991
|
case 0:
|
|
992
992
|
case 9:
|
|
@@ -1018,240 +1018,240 @@ function _e(t) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
return 0;
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return
|
|
1021
|
+
function Xt(t) {
|
|
1022
|
+
return je = ae = 1, Yt = q(de = t), M = 0, [];
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return
|
|
1024
|
+
function Qt(t) {
|
|
1025
|
+
return de = "", t;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1027
|
+
function Te(t) {
|
|
1028
|
+
return Jt(me(M - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
for (; (T =
|
|
1032
|
-
|
|
1033
|
-
return
|
|
1030
|
+
function On(t) {
|
|
1031
|
+
for (; (T = H()) && T < 33; )
|
|
1032
|
+
B();
|
|
1033
|
+
return Ae(t) > 2 || Ae(T) > 3 ? "" : " ";
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1036
|
-
for (; --e &&
|
|
1035
|
+
function Dn(t, e) {
|
|
1036
|
+
for (; --e && B() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
|
|
1037
1037
|
;
|
|
1038
|
-
return
|
|
1038
|
+
return me(t, Ie() + (e < 6 && H() == 32 && B() == 32));
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
for (;
|
|
1040
|
+
function it(t) {
|
|
1041
|
+
for (; B(); )
|
|
1042
1042
|
switch (T) {
|
|
1043
1043
|
case t:
|
|
1044
1044
|
return M;
|
|
1045
1045
|
case 34:
|
|
1046
1046
|
case 39:
|
|
1047
|
-
t !== 34 && t !== 39 &&
|
|
1047
|
+
t !== 34 && t !== 39 && it(T);
|
|
1048
1048
|
break;
|
|
1049
1049
|
case 40:
|
|
1050
|
-
t === 41 &&
|
|
1050
|
+
t === 41 && it(t);
|
|
1051
1051
|
break;
|
|
1052
1052
|
case 92:
|
|
1053
|
-
|
|
1053
|
+
B();
|
|
1054
1054
|
break;
|
|
1055
1055
|
}
|
|
1056
1056
|
return M;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
for (;
|
|
1060
|
-
if (t + T === 84 &&
|
|
1058
|
+
function Ln(t, e) {
|
|
1059
|
+
for (; B() && t + T !== 57; )
|
|
1060
|
+
if (t + T === 84 && H() === 47)
|
|
1061
1061
|
break;
|
|
1062
|
-
return "/*" +
|
|
1062
|
+
return "/*" + me(e, M - 1) + "*" + Be(t === 47 ? t : B());
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
for (; !
|
|
1066
|
-
|
|
1067
|
-
return
|
|
1064
|
+
function Cn(t) {
|
|
1065
|
+
for (; !Ae(H()); )
|
|
1066
|
+
B();
|
|
1067
|
+
return me(t, M);
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return
|
|
1069
|
+
function Nn(t) {
|
|
1070
|
+
return Qt(Oe("", null, null, null, [""], t = Xt(t), 0, [0], t));
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1073
|
-
for (var l = 0, c = 0,
|
|
1074
|
-
switch (y =
|
|
1072
|
+
function Oe(t, e, i, n, r, o, s, a, d) {
|
|
1073
|
+
for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0, w = "", j = r, U = o, F = n, k = w; g; )
|
|
1074
|
+
switch (y = _, _ = B()) {
|
|
1075
1075
|
case 40:
|
|
1076
|
-
if (y != 108 &&
|
|
1077
|
-
|
|
1076
|
+
if (y != 108 && D(k, h - 1) == 58) {
|
|
1077
|
+
tt(k += m(Te(_), "&", "&\f"), "&\f") != -1 && (p = -1);
|
|
1078
1078
|
break;
|
|
1079
1079
|
}
|
|
1080
1080
|
case 34:
|
|
1081
1081
|
case 39:
|
|
1082
1082
|
case 91:
|
|
1083
|
-
|
|
1083
|
+
k += Te(_);
|
|
1084
1084
|
break;
|
|
1085
1085
|
case 9:
|
|
1086
1086
|
case 10:
|
|
1087
1087
|
case 13:
|
|
1088
1088
|
case 32:
|
|
1089
|
-
|
|
1089
|
+
k += On(y);
|
|
1090
1090
|
break;
|
|
1091
1091
|
case 92:
|
|
1092
|
-
|
|
1092
|
+
k += Dn(Ie() - 1, 7);
|
|
1093
1093
|
continue;
|
|
1094
1094
|
case 47:
|
|
1095
|
-
switch (
|
|
1095
|
+
switch (H()) {
|
|
1096
1096
|
case 42:
|
|
1097
1097
|
case 47:
|
|
1098
|
-
|
|
1098
|
+
xe(Pn(Ln(B(), Ie()), e, i), d);
|
|
1099
1099
|
break;
|
|
1100
1100
|
default:
|
|
1101
|
-
|
|
1101
|
+
k += "/";
|
|
1102
1102
|
}
|
|
1103
1103
|
break;
|
|
1104
|
-
case 123 *
|
|
1105
|
-
a[l++] =
|
|
1106
|
-
case 125 *
|
|
1104
|
+
case 123 * v:
|
|
1105
|
+
a[l++] = q(k) * p;
|
|
1106
|
+
case 125 * v:
|
|
1107
1107
|
case 59:
|
|
1108
1108
|
case 0:
|
|
1109
|
-
switch (
|
|
1109
|
+
switch (_) {
|
|
1110
1110
|
case 0:
|
|
1111
1111
|
case 125:
|
|
1112
|
-
|
|
1112
|
+
g = 0;
|
|
1113
1113
|
case 59 + c:
|
|
1114
|
-
|
|
1114
|
+
p == -1 && (k = m(k, /\f/g, "")), f > 0 && q(k) - h && xe(f > 32 ? St(k + ";", n, i, h - 1) : St(m(k, " ", "") + ";", n, i, h - 2), d);
|
|
1115
1115
|
break;
|
|
1116
1116
|
case 59:
|
|
1117
|
-
|
|
1117
|
+
k += ";";
|
|
1118
1118
|
default:
|
|
1119
|
-
if (
|
|
1119
|
+
if (xe(F = Et(k, e, i, l, c, r, a, w, j = [], U = [], h), o), _ === 123)
|
|
1120
1120
|
if (c === 0)
|
|
1121
|
-
|
|
1121
|
+
Oe(k, e, F, F, j, o, h, a, U);
|
|
1122
1122
|
else
|
|
1123
|
-
switch (
|
|
1123
|
+
switch (u === 99 && D(k, 3) === 110 ? 100 : u) {
|
|
1124
1124
|
case 100:
|
|
1125
1125
|
case 108:
|
|
1126
1126
|
case 109:
|
|
1127
1127
|
case 115:
|
|
1128
|
-
|
|
1128
|
+
Oe(t, F, F, n && xe(Et(t, F, F, 0, 0, r, a, w, r, j = [], h), U), r, U, h, a, n ? j : U);
|
|
1129
1129
|
break;
|
|
1130
1130
|
default:
|
|
1131
|
-
|
|
1131
|
+
Oe(k, F, F, F, [""], U, 0, a, U);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
l = c =
|
|
1134
|
+
l = c = f = 0, v = p = 1, w = k = "", h = s;
|
|
1135
1135
|
break;
|
|
1136
1136
|
case 58:
|
|
1137
|
-
|
|
1137
|
+
h = 1 + q(k), f = y;
|
|
1138
1138
|
default:
|
|
1139
|
-
if (
|
|
1140
|
-
if (
|
|
1141
|
-
--
|
|
1142
|
-
else if (
|
|
1139
|
+
if (v < 1) {
|
|
1140
|
+
if (_ == 123)
|
|
1141
|
+
--v;
|
|
1142
|
+
else if (_ == 125 && v++ == 0 && Tn() == 125)
|
|
1143
1143
|
continue;
|
|
1144
1144
|
}
|
|
1145
|
-
switch (
|
|
1145
|
+
switch (k += Be(_), _ * v) {
|
|
1146
1146
|
case 38:
|
|
1147
|
-
|
|
1147
|
+
p = c > 0 ? 1 : (k += "\f", -1);
|
|
1148
1148
|
break;
|
|
1149
1149
|
case 44:
|
|
1150
|
-
a[l++] = (
|
|
1150
|
+
a[l++] = (q(k) - 1) * p, p = 1;
|
|
1151
1151
|
break;
|
|
1152
1152
|
case 64:
|
|
1153
|
-
|
|
1153
|
+
H() === 45 && (k += Te(B())), u = H(), c = h = q(w = k += Cn(Ie())), _++;
|
|
1154
1154
|
break;
|
|
1155
1155
|
case 45:
|
|
1156
|
-
y === 45 &&
|
|
1156
|
+
y === 45 && q(k) == 2 && (v = 0);
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
return o;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1162
|
-
for (var
|
|
1163
|
-
for (var
|
|
1164
|
-
(
|
|
1165
|
-
return
|
|
1161
|
+
function Et(t, e, i, n, r, o, s, a, d, l, c) {
|
|
1162
|
+
for (var h = r - 1, u = r === 0 ? o : [""], f = ut(u), y = 0, v = 0, g = 0; y < n; ++y)
|
|
1163
|
+
for (var p = 0, _ = be(t, h + 1, h = En(v = s[y])), w = t; p < f; ++p)
|
|
1164
|
+
(w = Jt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = w);
|
|
1165
|
+
return Fe(t, e, i, r === 0 ? lt : a, d, l, c);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return
|
|
1167
|
+
function Pn(t, e, i) {
|
|
1168
|
+
return Fe(t, e, i, Ht, Be(In()), be(t, 2, -2), 0);
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
return
|
|
1170
|
+
function St(t, e, i, n) {
|
|
1171
|
+
return Fe(t, e, i, ct, be(t, 0, n), be(t, n + 1, -1), n);
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
for (var i = "", n =
|
|
1173
|
+
function se(t, e) {
|
|
1174
|
+
for (var i = "", n = ut(t), r = 0; r < n; r++)
|
|
1175
1175
|
i += e(t[r], r, t, e) || "";
|
|
1176
1176
|
return i;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function $n(t, e, i, n) {
|
|
1179
1179
|
switch (t.type) {
|
|
1180
|
-
case
|
|
1180
|
+
case mn:
|
|
1181
1181
|
if (t.children.length)
|
|
1182
1182
|
break;
|
|
1183
|
-
case
|
|
1184
|
-
case
|
|
1183
|
+
case An:
|
|
1184
|
+
case ct:
|
|
1185
1185
|
return t.return = t.return || t.value;
|
|
1186
|
-
case
|
|
1186
|
+
case Ht:
|
|
1187
1187
|
return "";
|
|
1188
|
-
case
|
|
1189
|
-
return t.return = t.value + "{" +
|
|
1190
|
-
case
|
|
1188
|
+
case Wt:
|
|
1189
|
+
return t.return = t.value + "{" + se(t.children, n) + "}";
|
|
1190
|
+
case lt:
|
|
1191
1191
|
t.value = t.props.join(",");
|
|
1192
1192
|
}
|
|
1193
|
-
return
|
|
1193
|
+
return q(i = se(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
var e =
|
|
1195
|
+
function Mn(t) {
|
|
1196
|
+
var e = ut(t);
|
|
1197
1197
|
return function(i, n, r, o) {
|
|
1198
1198
|
for (var s = "", a = 0; a < e; a++)
|
|
1199
1199
|
s += t[a](i, n, r, o) || "";
|
|
1200
1200
|
return s;
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function Un(t) {
|
|
1204
1204
|
return function(e) {
|
|
1205
1205
|
e.root || (e = e.return) && t(e);
|
|
1206
1206
|
};
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Bn(t) {
|
|
1209
1209
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1210
1210
|
return function(i) {
|
|
1211
1211
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
var
|
|
1215
|
-
for (var r = 0, o = 0; r = o, o =
|
|
1216
|
-
|
|
1217
|
-
return
|
|
1218
|
-
},
|
|
1214
|
+
var jn = function(e, i, n) {
|
|
1215
|
+
for (var r = 0, o = 0; r = o, o = H(), r === 38 && o === 12 && (i[n] = 1), !Ae(o); )
|
|
1216
|
+
B();
|
|
1217
|
+
return me(e, M);
|
|
1218
|
+
}, Fn = function(e, i) {
|
|
1219
1219
|
var n = -1, r = 44;
|
|
1220
1220
|
do
|
|
1221
|
-
switch (
|
|
1221
|
+
switch (Ae(r)) {
|
|
1222
1222
|
case 0:
|
|
1223
|
-
r === 38 &&
|
|
1223
|
+
r === 38 && H() === 12 && (i[n] = 1), e[n] += jn(M - 1, i, n);
|
|
1224
1224
|
break;
|
|
1225
1225
|
case 2:
|
|
1226
|
-
e[n] +=
|
|
1226
|
+
e[n] += Te(r);
|
|
1227
1227
|
break;
|
|
1228
1228
|
case 4:
|
|
1229
1229
|
if (r === 44) {
|
|
1230
|
-
e[++n] =
|
|
1230
|
+
e[++n] = H() === 58 ? "&\f" : "", i[n] = e[n].length;
|
|
1231
1231
|
break;
|
|
1232
1232
|
}
|
|
1233
1233
|
default:
|
|
1234
|
-
e[n] +=
|
|
1234
|
+
e[n] += Be(r);
|
|
1235
1235
|
}
|
|
1236
|
-
while (r =
|
|
1236
|
+
while (r = B());
|
|
1237
1237
|
return e;
|
|
1238
|
-
},
|
|
1239
|
-
return
|
|
1240
|
-
},
|
|
1238
|
+
}, Vn = function(e, i) {
|
|
1239
|
+
return Qt(Fn(Xt(e), i));
|
|
1240
|
+
}, kt = /* @__PURE__ */ new WeakMap(), zn = function(e) {
|
|
1241
1241
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1242
1242
|
// negative .length indicates that this rule has been already prefixed
|
|
1243
1243
|
e.length < 1)) {
|
|
1244
1244
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1245
1245
|
if (n = n.parent, !n)
|
|
1246
1246
|
return;
|
|
1247
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1248
|
-
|
|
1249
|
-
for (var o = [], s =
|
|
1247
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !kt.get(n)) && !r) {
|
|
1248
|
+
kt.set(e, !0);
|
|
1249
|
+
for (var o = [], s = Vn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1250
1250
|
for (var c = 0; c < a.length; c++, l++)
|
|
1251
1251
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[c]) : a[c] + " " + s[d];
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
|
-
},
|
|
1254
|
+
}, Gn = function(e) {
|
|
1255
1255
|
if (e.type === "decl") {
|
|
1256
1256
|
var i = e.value;
|
|
1257
1257
|
// charcode for l
|
|
@@ -1259,10 +1259,10 @@ var Nn = function(e, i, n) {
|
|
|
1259
1259
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1260
1260
|
}
|
|
1261
1261
|
};
|
|
1262
|
-
function
|
|
1263
|
-
switch (
|
|
1262
|
+
function Zt(t, e) {
|
|
1263
|
+
switch (kn(t, e)) {
|
|
1264
1264
|
case 5103:
|
|
1265
|
-
return
|
|
1265
|
+
return A + "print-" + t + t;
|
|
1266
1266
|
case 5737:
|
|
1267
1267
|
case 4201:
|
|
1268
1268
|
case 3177:
|
|
@@ -1288,44 +1288,44 @@ function Jt(t, e) {
|
|
|
1288
1288
|
case 5365:
|
|
1289
1289
|
case 5621:
|
|
1290
1290
|
case 3829:
|
|
1291
|
-
return
|
|
1291
|
+
return A + t + t;
|
|
1292
1292
|
case 5349:
|
|
1293
1293
|
case 4246:
|
|
1294
1294
|
case 4810:
|
|
1295
1295
|
case 6968:
|
|
1296
1296
|
case 2756:
|
|
1297
|
-
return
|
|
1297
|
+
return A + t + Ne + t + C + t + t;
|
|
1298
1298
|
case 6828:
|
|
1299
1299
|
case 4268:
|
|
1300
|
-
return
|
|
1300
|
+
return A + t + C + t + t;
|
|
1301
1301
|
case 6165:
|
|
1302
|
-
return
|
|
1302
|
+
return A + t + C + "flex-" + t + t;
|
|
1303
1303
|
case 5187:
|
|
1304
|
-
return
|
|
1304
|
+
return A + t + m(t, /(\w+).+(:[^]+)/, A + "box-$1$2" + C + "flex-$1$2") + t;
|
|
1305
1305
|
case 5443:
|
|
1306
|
-
return
|
|
1306
|
+
return A + t + C + "flex-item-" + m(t, /flex-|-self/, "") + t;
|
|
1307
1307
|
case 4675:
|
|
1308
|
-
return
|
|
1308
|
+
return A + t + C + "flex-line-pack" + m(t, /align-content|flex-|-self/, "") + t;
|
|
1309
1309
|
case 5548:
|
|
1310
|
-
return
|
|
1310
|
+
return A + t + C + m(t, "shrink", "negative") + t;
|
|
1311
1311
|
case 5292:
|
|
1312
|
-
return
|
|
1312
|
+
return A + t + C + m(t, "basis", "preferred-size") + t;
|
|
1313
1313
|
case 6060:
|
|
1314
|
-
return
|
|
1314
|
+
return A + "box-" + m(t, "-grow", "") + A + t + C + m(t, "grow", "positive") + t;
|
|
1315
1315
|
case 4554:
|
|
1316
|
-
return
|
|
1316
|
+
return A + m(t, /([^-])(transform)/g, "$1" + A + "$2") + t;
|
|
1317
1317
|
case 6187:
|
|
1318
|
-
return m(m(m(t, /(zoom-|grab)/,
|
|
1318
|
+
return m(m(m(t, /(zoom-|grab)/, A + "$1"), /(image-set)/, A + "$1"), t, "") + t;
|
|
1319
1319
|
case 5495:
|
|
1320
1320
|
case 3959:
|
|
1321
|
-
return m(t, /(image-set\([^]*)/,
|
|
1321
|
+
return m(t, /(image-set\([^]*)/, A + "$1$`$1");
|
|
1322
1322
|
case 4968:
|
|
1323
|
-
return m(m(t, /(.+:)(flex-)?(.*)/,
|
|
1323
|
+
return m(m(t, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + C + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + t + t;
|
|
1324
1324
|
case 4095:
|
|
1325
1325
|
case 3583:
|
|
1326
1326
|
case 4068:
|
|
1327
1327
|
case 2532:
|
|
1328
|
-
return m(t, /(.+)-inline(.+)/,
|
|
1328
|
+
return m(t, /(.+)-inline(.+)/, A + "$1$2") + t;
|
|
1329
1329
|
case 8116:
|
|
1330
1330
|
case 7059:
|
|
1331
1331
|
case 5753:
|
|
@@ -1338,106 +1338,106 @@ function Jt(t, e) {
|
|
|
1338
1338
|
case 5789:
|
|
1339
1339
|
case 5021:
|
|
1340
1340
|
case 4765:
|
|
1341
|
-
if (
|
|
1342
|
-
switch (
|
|
1341
|
+
if (q(t) - 1 - e > 6)
|
|
1342
|
+
switch (D(t, e + 1)) {
|
|
1343
1343
|
case 109:
|
|
1344
|
-
if (
|
|
1344
|
+
if (D(t, e + 4) !== 45)
|
|
1345
1345
|
break;
|
|
1346
1346
|
case 102:
|
|
1347
|
-
return m(t, /(.+:)(.+)-([^]+)/, "$1" +
|
|
1347
|
+
return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Ne + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1348
1348
|
case 115:
|
|
1349
|
-
return ~
|
|
1349
|
+
return ~tt(t, "stretch") ? Zt(m(t, "stretch", "fill-available"), e) + t : t;
|
|
1350
1350
|
}
|
|
1351
1351
|
break;
|
|
1352
1352
|
case 4949:
|
|
1353
|
-
if (
|
|
1353
|
+
if (D(t, e + 1) !== 115)
|
|
1354
1354
|
break;
|
|
1355
1355
|
case 6444:
|
|
1356
|
-
switch (
|
|
1356
|
+
switch (D(t, q(t) - 3 - (~tt(t, "!important") && 10))) {
|
|
1357
1357
|
case 107:
|
|
1358
|
-
return m(t, ":", ":" +
|
|
1358
|
+
return m(t, ":", ":" + A) + t;
|
|
1359
1359
|
case 101:
|
|
1360
|
-
return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" +
|
|
1360
|
+
return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (D(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + C + "$2box$3") + t;
|
|
1361
1361
|
}
|
|
1362
1362
|
break;
|
|
1363
1363
|
case 5936:
|
|
1364
|
-
switch (
|
|
1364
|
+
switch (D(t, e + 11)) {
|
|
1365
1365
|
case 114:
|
|
1366
|
-
return
|
|
1366
|
+
return A + t + C + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
1367
1367
|
case 108:
|
|
1368
|
-
return
|
|
1368
|
+
return A + t + C + m(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
|
1369
1369
|
case 45:
|
|
1370
|
-
return
|
|
1370
|
+
return A + t + C + m(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
|
1371
1371
|
}
|
|
1372
|
-
return
|
|
1372
|
+
return A + t + C + t + t;
|
|
1373
1373
|
}
|
|
1374
1374
|
return t;
|
|
1375
1375
|
}
|
|
1376
|
-
var
|
|
1376
|
+
var Kn = function(e, i, n, r) {
|
|
1377
1377
|
if (e.length > -1 && !e.return)
|
|
1378
1378
|
switch (e.type) {
|
|
1379
|
-
case
|
|
1380
|
-
e.return =
|
|
1379
|
+
case ct:
|
|
1380
|
+
e.return = Zt(e.value, e.length);
|
|
1381
1381
|
break;
|
|
1382
|
-
case
|
|
1383
|
-
return
|
|
1384
|
-
value: m(e.value, "@", "@" +
|
|
1382
|
+
case Wt:
|
|
1383
|
+
return se([pe(e, {
|
|
1384
|
+
value: m(e.value, "@", "@" + A)
|
|
1385
1385
|
})], r);
|
|
1386
|
-
case
|
|
1386
|
+
case lt:
|
|
1387
1387
|
if (e.length)
|
|
1388
|
-
return
|
|
1389
|
-
switch (
|
|
1388
|
+
return Rn(e.props, function(o) {
|
|
1389
|
+
switch (xn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1390
1390
|
case ":read-only":
|
|
1391
1391
|
case ":read-write":
|
|
1392
|
-
return
|
|
1393
|
-
props: [m(o, /:(read-\w+)/, ":" +
|
|
1392
|
+
return se([pe(e, {
|
|
1393
|
+
props: [m(o, /:(read-\w+)/, ":" + Ne + "$1")]
|
|
1394
1394
|
})], r);
|
|
1395
1395
|
case "::placeholder":
|
|
1396
|
-
return
|
|
1397
|
-
props: [m(o, /:(plac\w+)/, ":" +
|
|
1398
|
-
}),
|
|
1399
|
-
props: [m(o, /:(plac\w+)/, ":" +
|
|
1400
|
-
}),
|
|
1401
|
-
props: [m(o, /:(plac\w+)/,
|
|
1396
|
+
return se([pe(e, {
|
|
1397
|
+
props: [m(o, /:(plac\w+)/, ":" + A + "input-$1")]
|
|
1398
|
+
}), pe(e, {
|
|
1399
|
+
props: [m(o, /:(plac\w+)/, ":" + Ne + "$1")]
|
|
1400
|
+
}), pe(e, {
|
|
1401
|
+
props: [m(o, /:(plac\w+)/, C + "input-$1")]
|
|
1402
1402
|
})], r);
|
|
1403
1403
|
}
|
|
1404
1404
|
return "";
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
|
-
},
|
|
1407
|
+
}, qn = [Kn], Hn = function(e) {
|
|
1408
1408
|
var i = e.key;
|
|
1409
1409
|
if (i === "css") {
|
|
1410
1410
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1411
|
-
Array.prototype.forEach.call(n, function(
|
|
1412
|
-
var
|
|
1413
|
-
|
|
1411
|
+
Array.prototype.forEach.call(n, function(v) {
|
|
1412
|
+
var g = v.getAttribute("data-emotion");
|
|
1413
|
+
g.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
|
1414
1414
|
});
|
|
1415
1415
|
}
|
|
1416
|
-
var r = e.stylisPlugins ||
|
|
1416
|
+
var r = e.stylisPlugins || qn, o = {}, s, a = [];
|
|
1417
1417
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1418
1418
|
// this means we will ignore elements which don't have a space in them which
|
|
1419
1419
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1420
1420
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1421
|
-
function(
|
|
1422
|
-
for (var
|
|
1423
|
-
o[
|
|
1424
|
-
a.push(
|
|
1421
|
+
function(v) {
|
|
1422
|
+
for (var g = v.getAttribute("data-emotion").split(" "), p = 1; p < g.length; p++)
|
|
1423
|
+
o[g[p]] = !0;
|
|
1424
|
+
a.push(v);
|
|
1425
1425
|
}
|
|
1426
1426
|
);
|
|
1427
|
-
var d, l = [
|
|
1427
|
+
var d, l = [zn, Gn];
|
|
1428
1428
|
{
|
|
1429
|
-
var c,
|
|
1430
|
-
c.insert(
|
|
1431
|
-
})],
|
|
1432
|
-
return
|
|
1429
|
+
var c, h = [$n, Un(function(v) {
|
|
1430
|
+
c.insert(v);
|
|
1431
|
+
})], u = Mn(l.concat(r, h)), f = function(g) {
|
|
1432
|
+
return se(Nn(g), u);
|
|
1433
1433
|
};
|
|
1434
|
-
d = function(
|
|
1435
|
-
c =
|
|
1434
|
+
d = function(g, p, _, w) {
|
|
1435
|
+
c = _, f(g ? g + "{" + p.styles + "}" : p.styles), w && (y.inserted[p.name] = !0);
|
|
1436
1436
|
};
|
|
1437
1437
|
}
|
|
1438
1438
|
var y = {
|
|
1439
1439
|
key: i,
|
|
1440
|
-
sheet: new
|
|
1440
|
+
sheet: new bn({
|
|
1441
1441
|
key: i,
|
|
1442
1442
|
container: s,
|
|
1443
1443
|
nonce: e.nonce,
|
|
@@ -1452,7 +1452,7 @@ var Un = function(e, i, n, r) {
|
|
|
1452
1452
|
};
|
|
1453
1453
|
return y.sheet.hydrate(a), y;
|
|
1454
1454
|
};
|
|
1455
|
-
function
|
|
1455
|
+
function Wn(t) {
|
|
1456
1456
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1457
1457
|
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): */
|
|
1458
1458
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1471,7 +1471,7 @@ function Bn(t) {
|
|
|
1471
1471
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1472
1472
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1474
|
+
var Jn = {
|
|
1475
1475
|
animationIterationCount: 1,
|
|
1476
1476
|
aspectRatio: 1,
|
|
1477
1477
|
borderImageOutset: 1,
|
|
@@ -1520,28 +1520,28 @@ var Vn = {
|
|
|
1520
1520
|
strokeMiterlimit: 1,
|
|
1521
1521
|
strokeOpacity: 1,
|
|
1522
1522
|
strokeWidth: 1
|
|
1523
|
-
},
|
|
1523
|
+
}, Yn = /[A-Z]|^ms/g, Xn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ei = function(e) {
|
|
1524
1524
|
return e.charCodeAt(1) === 45;
|
|
1525
|
-
},
|
|
1525
|
+
}, xt = function(e) {
|
|
1526
1526
|
return e != null && typeof e != "boolean";
|
|
1527
|
-
},
|
|
1528
|
-
return
|
|
1529
|
-
}),
|
|
1527
|
+
}, Ke = /* @__PURE__ */ Bn(function(t) {
|
|
1528
|
+
return ei(t) ? t : t.replace(Yn, "-$&").toLowerCase();
|
|
1529
|
+
}), Rt = function(e, i) {
|
|
1530
1530
|
switch (e) {
|
|
1531
1531
|
case "animation":
|
|
1532
1532
|
case "animationName":
|
|
1533
1533
|
if (typeof i == "string")
|
|
1534
|
-
return i.replace(
|
|
1535
|
-
return
|
|
1534
|
+
return i.replace(Xn, function(n, r, o) {
|
|
1535
|
+
return Z = {
|
|
1536
1536
|
name: r,
|
|
1537
1537
|
styles: o,
|
|
1538
|
-
next:
|
|
1538
|
+
next: Z
|
|
1539
1539
|
}, r;
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
|
-
return
|
|
1542
|
+
return Jn[e] !== 1 && !ei(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1543
1543
|
};
|
|
1544
|
-
function
|
|
1544
|
+
function Pe(t, e, i) {
|
|
1545
1545
|
if (i == null)
|
|
1546
1546
|
return "";
|
|
1547
1547
|
var n = i;
|
|
@@ -1553,25 +1553,25 @@ function De(t, e, i) {
|
|
|
1553
1553
|
case "object": {
|
|
1554
1554
|
var r = i;
|
|
1555
1555
|
if (r.anim === 1)
|
|
1556
|
-
return
|
|
1556
|
+
return Z = {
|
|
1557
1557
|
name: r.name,
|
|
1558
1558
|
styles: r.styles,
|
|
1559
|
-
next:
|
|
1559
|
+
next: Z
|
|
1560
1560
|
}, r.name;
|
|
1561
1561
|
var o = i;
|
|
1562
1562
|
if (o.styles !== void 0) {
|
|
1563
1563
|
var s = o.next;
|
|
1564
1564
|
if (s !== void 0)
|
|
1565
1565
|
for (; s !== void 0; )
|
|
1566
|
-
|
|
1566
|
+
Z = {
|
|
1567
1567
|
name: s.name,
|
|
1568
1568
|
styles: s.styles,
|
|
1569
|
-
next:
|
|
1569
|
+
next: Z
|
|
1570
1570
|
}, s = s.next;
|
|
1571
1571
|
var a = o.styles + ";";
|
|
1572
1572
|
return a;
|
|
1573
1573
|
}
|
|
1574
|
-
return
|
|
1574
|
+
return Qn(t, e, i);
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
1577
|
var d = i;
|
|
@@ -1580,26 +1580,26 @@ function De(t, e, i) {
|
|
|
1580
1580
|
var l = e[d];
|
|
1581
1581
|
return l !== void 0 ? l : d;
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function Qn(t, e, i) {
|
|
1584
1584
|
var n = "";
|
|
1585
1585
|
if (Array.isArray(i))
|
|
1586
1586
|
for (var r = 0; r < i.length; r++)
|
|
1587
|
-
n +=
|
|
1587
|
+
n += Pe(t, e, i[r]) + ";";
|
|
1588
1588
|
else
|
|
1589
1589
|
for (var o in i) {
|
|
1590
1590
|
var s = i[o];
|
|
1591
1591
|
if (typeof s != "object") {
|
|
1592
1592
|
var a = s;
|
|
1593
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1593
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : xt(a) && (n += Ke(o) + ":" + Rt(o, a) + ";");
|
|
1594
1594
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1595
1595
|
for (var d = 0; d < s.length; d++)
|
|
1596
|
-
|
|
1596
|
+
xt(s[d]) && (n += Ke(o) + ":" + Rt(o, s[d]) + ";");
|
|
1597
1597
|
else {
|
|
1598
|
-
var l =
|
|
1598
|
+
var l = Pe(t, e, s);
|
|
1599
1599
|
switch (o) {
|
|
1600
1600
|
case "animation":
|
|
1601
1601
|
case "animationName": {
|
|
1602
|
-
n +=
|
|
1602
|
+
n += Ke(o) + ":" + l + ";";
|
|
1603
1603
|
break;
|
|
1604
1604
|
}
|
|
1605
1605
|
default:
|
|
@@ -1609,41 +1609,41 @@ function Kn(t, e, i) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
return n;
|
|
1611
1611
|
}
|
|
1612
|
-
var
|
|
1613
|
-
function
|
|
1612
|
+
var It = /label:\s*([^\s;{]+)\s*(;|$)/g, Z;
|
|
1613
|
+
function qe(t, e, i) {
|
|
1614
1614
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1615
1615
|
return t[0];
|
|
1616
1616
|
var n = !0, r = "";
|
|
1617
|
-
|
|
1617
|
+
Z = void 0;
|
|
1618
1618
|
var o = t[0];
|
|
1619
1619
|
if (o == null || o.raw === void 0)
|
|
1620
|
-
n = !1, r +=
|
|
1620
|
+
n = !1, r += Pe(i, e, o);
|
|
1621
1621
|
else {
|
|
1622
1622
|
var s = o;
|
|
1623
1623
|
r += s[0];
|
|
1624
1624
|
}
|
|
1625
1625
|
for (var a = 1; a < t.length; a++)
|
|
1626
|
-
if (r +=
|
|
1626
|
+
if (r += Pe(i, e, t[a]), n) {
|
|
1627
1627
|
var d = o;
|
|
1628
1628
|
r += d[a];
|
|
1629
1629
|
}
|
|
1630
|
-
|
|
1631
|
-
for (var l = "", c; (c =
|
|
1630
|
+
It.lastIndex = 0;
|
|
1631
|
+
for (var l = "", c; (c = It.exec(r)) !== null; )
|
|
1632
1632
|
l += "-" + c[1];
|
|
1633
|
-
var
|
|
1633
|
+
var h = Wn(r) + l;
|
|
1634
1634
|
return {
|
|
1635
|
-
name:
|
|
1635
|
+
name: h,
|
|
1636
1636
|
styles: r,
|
|
1637
|
-
next:
|
|
1637
|
+
next: Z
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function ti(t, e, i) {
|
|
1641
1641
|
var n = "";
|
|
1642
1642
|
return i.split(" ").forEach(function(r) {
|
|
1643
1643
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1644
1644
|
}), n;
|
|
1645
1645
|
}
|
|
1646
|
-
var
|
|
1646
|
+
var Zn = function(e, i, n) {
|
|
1647
1647
|
var r = e.key + "-" + i.name;
|
|
1648
1648
|
// we only need to add the styles to the registered cache if the
|
|
1649
1649
|
// class name could be used further down
|
|
@@ -1651,8 +1651,8 @@ var qn = function(e, i, n) {
|
|
|
1651
1651
|
// so we don't have to add it to registered cache.
|
|
1652
1652
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1653
1653
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1654
|
-
},
|
|
1655
|
-
|
|
1654
|
+
}, er = function(e, i, n) {
|
|
1655
|
+
Zn(e, i);
|
|
1656
1656
|
var r = e.key + "-" + i.name;
|
|
1657
1657
|
if (e.inserted[i.name] === void 0) {
|
|
1658
1658
|
var o = i;
|
|
@@ -1661,41 +1661,41 @@ var qn = function(e, i, n) {
|
|
|
1661
1661
|
while (o !== void 0);
|
|
1662
1662
|
}
|
|
1663
1663
|
};
|
|
1664
|
-
function
|
|
1664
|
+
function Tt(t, e) {
|
|
1665
1665
|
if (t.inserted[e.name] === void 0)
|
|
1666
1666
|
return t.insert("", e, t.sheet, !0);
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1669
|
-
var n = [], r =
|
|
1668
|
+
function Ot(t, e, i) {
|
|
1669
|
+
var n = [], r = ti(t, n, i);
|
|
1670
1670
|
return n.length < 2 ? i : r + e(n);
|
|
1671
1671
|
}
|
|
1672
|
-
var
|
|
1673
|
-
var i =
|
|
1672
|
+
var tr = function(e) {
|
|
1673
|
+
var i = Hn(e);
|
|
1674
1674
|
i.sheet.speedy = function(a) {
|
|
1675
1675
|
this.isSpeedy = a;
|
|
1676
1676
|
}, i.compat = !0;
|
|
1677
1677
|
var n = function() {
|
|
1678
1678
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1679
1679
|
l[c] = arguments[c];
|
|
1680
|
-
var
|
|
1681
|
-
return
|
|
1680
|
+
var h = qe(l, i.registered, void 0);
|
|
1681
|
+
return er(i, h), i.key + "-" + h.name;
|
|
1682
1682
|
}, r = function() {
|
|
1683
1683
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1684
1684
|
l[c] = arguments[c];
|
|
1685
|
-
var
|
|
1686
|
-
return
|
|
1687
|
-
name:
|
|
1688
|
-
styles: "@keyframes " +
|
|
1689
|
-
}),
|
|
1685
|
+
var h = qe(l, i.registered), u = "animation-" + h.name;
|
|
1686
|
+
return Tt(i, {
|
|
1687
|
+
name: h.name,
|
|
1688
|
+
styles: "@keyframes " + u + "{" + h.styles + "}"
|
|
1689
|
+
}), u;
|
|
1690
1690
|
}, o = function() {
|
|
1691
1691
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1692
1692
|
l[c] = arguments[c];
|
|
1693
|
-
var
|
|
1694
|
-
|
|
1693
|
+
var h = qe(l, i.registered);
|
|
1694
|
+
Tt(i, h);
|
|
1695
1695
|
}, s = function() {
|
|
1696
1696
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1697
1697
|
l[c] = arguments[c];
|
|
1698
|
-
return
|
|
1698
|
+
return Ot(i.registered, n, ir(l));
|
|
1699
1699
|
};
|
|
1700
1700
|
return {
|
|
1701
1701
|
css: n,
|
|
@@ -1712,10 +1712,10 @@ var Wn = function(e) {
|
|
|
1712
1712
|
},
|
|
1713
1713
|
sheet: i.sheet,
|
|
1714
1714
|
cache: i,
|
|
1715
|
-
getRegisteredStyles:
|
|
1716
|
-
merge:
|
|
1715
|
+
getRegisteredStyles: ti.bind(null, i.registered),
|
|
1716
|
+
merge: Ot.bind(null, i.registered, n)
|
|
1717
1717
|
};
|
|
1718
|
-
},
|
|
1718
|
+
}, ir = function t(e) {
|
|
1719
1719
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1720
1720
|
var r = e[n];
|
|
1721
1721
|
if (r != null) {
|
|
@@ -1740,105 +1740,105 @@ var Wn = function(e) {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
1742
|
return i;
|
|
1743
|
-
},
|
|
1743
|
+
}, nr = tr({
|
|
1744
1744
|
key: "css"
|
|
1745
|
-
}),
|
|
1746
|
-
function
|
|
1747
|
-
|
|
1748
|
-
var i =
|
|
1745
|
+
}), le = nr.css, $e, $, He, Dt, nt = 0, ii = [], I = ie, Lt = I.__b, Ct = I.__r, Nt = I.diffed, Pt = I.__c, $t = I.unmount, Mt = I.__;
|
|
1746
|
+
function ni(t, e) {
|
|
1747
|
+
I.__h && I.__h($, t, nt || e), nt = 0;
|
|
1748
|
+
var i = $.__H || ($.__H = { __: [], __h: [] });
|
|
1749
1749
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1752
|
-
var i =
|
|
1753
|
-
!
|
|
1751
|
+
function rr(t, e) {
|
|
1752
|
+
var i = ni($e++, 3);
|
|
1753
|
+
!I.__s && ri(i.__H, e) && (i.__ = t, i.u = e, $.__H.__h.push(i));
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1756
|
-
return
|
|
1755
|
+
function or(t) {
|
|
1756
|
+
return nt = 5, ht(function() {
|
|
1757
1757
|
return { current: t };
|
|
1758
1758
|
}, []);
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1761
|
-
var i =
|
|
1762
|
-
return
|
|
1760
|
+
function ht(t, e) {
|
|
1761
|
+
var i = ni($e++, 7);
|
|
1762
|
+
return ri(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1765
|
-
for (var t; t =
|
|
1764
|
+
function sr() {
|
|
1765
|
+
for (var t; t = ii.shift(); )
|
|
1766
1766
|
if (t.__P && t.__H)
|
|
1767
1767
|
try {
|
|
1768
|
-
t.__H.__h.forEach(
|
|
1768
|
+
t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
|
|
1769
1769
|
} catch (e) {
|
|
1770
|
-
t.__H.__h = [],
|
|
1770
|
+
t.__H.__h = [], I.__e(e, t.__v);
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
},
|
|
1776
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1777
|
-
},
|
|
1778
|
-
|
|
1779
|
-
var e = (
|
|
1780
|
-
e && (
|
|
1773
|
+
I.__b = function(t) {
|
|
1774
|
+
$ = null, Lt && Lt(t);
|
|
1775
|
+
}, I.__ = function(t, e) {
|
|
1776
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Mt && Mt(t, e);
|
|
1777
|
+
}, I.__r = function(t) {
|
|
1778
|
+
Ct && Ct(t), $e = 0;
|
|
1779
|
+
var e = ($ = t.__c).__H;
|
|
1780
|
+
e && (He === $ ? (e.__h = [], $.__h = [], e.__.forEach(function(i) {
|
|
1781
1781
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1782
|
-
})) : (e.__h.forEach(
|
|
1783
|
-
},
|
|
1784
|
-
|
|
1782
|
+
})) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], $e = 0)), He = $;
|
|
1783
|
+
}, I.diffed = function(t) {
|
|
1784
|
+
Nt && Nt(t);
|
|
1785
1785
|
var e = t.__c;
|
|
1786
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1786
|
+
e && e.__H && (e.__H.__h.length && (ii.push(e) !== 1 && Dt === I.requestAnimationFrame || ((Dt = I.requestAnimationFrame) || ar)(sr)), e.__H.__.forEach(function(i) {
|
|
1787
1787
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1788
|
-
})),
|
|
1789
|
-
},
|
|
1788
|
+
})), He = $ = null;
|
|
1789
|
+
}, I.__c = function(t, e) {
|
|
1790
1790
|
e.some(function(i) {
|
|
1791
1791
|
try {
|
|
1792
|
-
i.__h.forEach(
|
|
1793
|
-
return !n.__ ||
|
|
1792
|
+
i.__h.forEach(De), i.__h = i.__h.filter(function(n) {
|
|
1793
|
+
return !n.__ || rt(n);
|
|
1794
1794
|
});
|
|
1795
1795
|
} catch (n) {
|
|
1796
1796
|
e.some(function(r) {
|
|
1797
1797
|
r.__h && (r.__h = []);
|
|
1798
|
-
}), e = [],
|
|
1798
|
+
}), e = [], I.__e(n, i.__v);
|
|
1799
1799
|
}
|
|
1800
|
-
}),
|
|
1801
|
-
},
|
|
1802
|
-
|
|
1800
|
+
}), Pt && Pt(t, e);
|
|
1801
|
+
}, I.unmount = function(t) {
|
|
1802
|
+
$t && $t(t);
|
|
1803
1803
|
var e, i = t.__c;
|
|
1804
1804
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1805
1805
|
try {
|
|
1806
|
-
|
|
1806
|
+
De(n);
|
|
1807
1807
|
} catch (r) {
|
|
1808
1808
|
e = r;
|
|
1809
1809
|
}
|
|
1810
|
-
}), i.__H = void 0, e &&
|
|
1810
|
+
}), i.__H = void 0, e && I.__e(e, i.__v));
|
|
1811
1811
|
};
|
|
1812
|
-
var
|
|
1813
|
-
function
|
|
1812
|
+
var Ut = typeof requestAnimationFrame == "function";
|
|
1813
|
+
function ar(t) {
|
|
1814
1814
|
var e, i = function() {
|
|
1815
|
-
clearTimeout(n),
|
|
1815
|
+
clearTimeout(n), Ut && cancelAnimationFrame(e), setTimeout(t);
|
|
1816
1816
|
}, n = setTimeout(i, 100);
|
|
1817
|
-
|
|
1817
|
+
Ut && (e = requestAnimationFrame(i));
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1820
|
-
var e =
|
|
1821
|
-
typeof i == "function" && (t.__c = void 0, i()),
|
|
1819
|
+
function De(t) {
|
|
1820
|
+
var e = $, i = t.__c;
|
|
1821
|
+
typeof i == "function" && (t.__c = void 0, i()), $ = e;
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1824
|
-
var e =
|
|
1825
|
-
t.__c = t.__(),
|
|
1823
|
+
function rt(t) {
|
|
1824
|
+
var e = $;
|
|
1825
|
+
t.__c = t.__(), $ = e;
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1827
|
+
function ri(t, e) {
|
|
1828
1828
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1829
1829
|
return i !== t[n];
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
|
-
var
|
|
1833
|
-
function
|
|
1834
|
-
if (
|
|
1835
|
-
|
|
1832
|
+
var dr = Symbol.for("preact-signals");
|
|
1833
|
+
function Ve() {
|
|
1834
|
+
if (ee > 1)
|
|
1835
|
+
ee--;
|
|
1836
1836
|
else {
|
|
1837
|
-
for (var t, e = !1;
|
|
1838
|
-
var i =
|
|
1839
|
-
for (
|
|
1837
|
+
for (var t, e = !1; _e !== void 0; ) {
|
|
1838
|
+
var i = _e;
|
|
1839
|
+
for (_e = void 0, ot++; i !== void 0; ) {
|
|
1840
1840
|
var n = i.o;
|
|
1841
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1841
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && si(i))
|
|
1842
1842
|
try {
|
|
1843
1843
|
i.c();
|
|
1844
1844
|
} catch (r) {
|
|
@@ -1847,102 +1847,102 @@ function Ue() {
|
|
|
1847
1847
|
i = n;
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
|
-
if (
|
|
1850
|
+
if (ot = 0, ee--, e)
|
|
1851
1851
|
throw t;
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1855
|
-
if (
|
|
1854
|
+
function O(t) {
|
|
1855
|
+
if (ee > 0)
|
|
1856
1856
|
return t();
|
|
1857
|
-
|
|
1857
|
+
ee++;
|
|
1858
1858
|
try {
|
|
1859
1859
|
return t();
|
|
1860
1860
|
} finally {
|
|
1861
|
-
|
|
1861
|
+
Ve();
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
var
|
|
1865
|
-
function
|
|
1866
|
-
if (
|
|
1864
|
+
var S = void 0, _e = void 0, ee = 0, ot = 0, Me = 0;
|
|
1865
|
+
function oi(t) {
|
|
1866
|
+
if (S !== void 0) {
|
|
1867
1867
|
var e = t.n;
|
|
1868
|
-
if (e === void 0 || e.t !==
|
|
1869
|
-
return e = { i: 0, S: t, p:
|
|
1868
|
+
if (e === void 0 || e.t !== S)
|
|
1869
|
+
return e = { i: 0, S: t, p: S.s, n: void 0, t: S, e: void 0, x: void 0, r: e }, S.s !== void 0 && (S.s.n = e), S.s = e, t.n = e, 32 & S.f && t.S(e), e;
|
|
1870
1870
|
if (e.i === -1)
|
|
1871
|
-
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p =
|
|
1871
|
+
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = S.s, e.n = void 0, S.s.n = e, S.s = e), e;
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function L(t) {
|
|
1875
1875
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1876
1876
|
}
|
|
1877
|
-
|
|
1878
|
-
|
|
1877
|
+
L.prototype.brand = dr;
|
|
1878
|
+
L.prototype.h = function() {
|
|
1879
1879
|
return !0;
|
|
1880
1880
|
};
|
|
1881
|
-
|
|
1881
|
+
L.prototype.S = function(t) {
|
|
1882
1882
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1883
1883
|
};
|
|
1884
|
-
|
|
1884
|
+
L.prototype.U = function(t) {
|
|
1885
1885
|
if (this.t !== void 0) {
|
|
1886
1886
|
var e = t.e, i = t.x;
|
|
1887
1887
|
e !== void 0 && (e.x = i, t.e = void 0), i !== void 0 && (i.e = e, t.x = void 0), t === this.t && (this.t = i);
|
|
1888
1888
|
}
|
|
1889
1889
|
};
|
|
1890
|
-
|
|
1890
|
+
L.prototype.subscribe = function(t) {
|
|
1891
1891
|
var e = this;
|
|
1892
|
-
return
|
|
1893
|
-
var i = e.value, n =
|
|
1894
|
-
|
|
1892
|
+
return ue(function() {
|
|
1893
|
+
var i = e.value, n = S;
|
|
1894
|
+
S = void 0;
|
|
1895
1895
|
try {
|
|
1896
1896
|
t(i);
|
|
1897
1897
|
} finally {
|
|
1898
|
-
|
|
1898
|
+
S = n;
|
|
1899
1899
|
}
|
|
1900
1900
|
});
|
|
1901
1901
|
};
|
|
1902
|
-
|
|
1902
|
+
L.prototype.valueOf = function() {
|
|
1903
1903
|
return this.value;
|
|
1904
1904
|
};
|
|
1905
|
-
|
|
1905
|
+
L.prototype.toString = function() {
|
|
1906
1906
|
return this.value + "";
|
|
1907
1907
|
};
|
|
1908
|
-
|
|
1908
|
+
L.prototype.toJSON = function() {
|
|
1909
1909
|
return this.value;
|
|
1910
1910
|
};
|
|
1911
|
-
|
|
1912
|
-
var t =
|
|
1913
|
-
|
|
1911
|
+
L.prototype.peek = function() {
|
|
1912
|
+
var t = S;
|
|
1913
|
+
S = void 0;
|
|
1914
1914
|
try {
|
|
1915
1915
|
return this.value;
|
|
1916
1916
|
} finally {
|
|
1917
|
-
|
|
1917
|
+
S = t;
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
|
-
Object.defineProperty(
|
|
1921
|
-
var t =
|
|
1920
|
+
Object.defineProperty(L.prototype, "value", { get: function() {
|
|
1921
|
+
var t = oi(this);
|
|
1922
1922
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1923
1923
|
}, set: function(t) {
|
|
1924
1924
|
if (t !== this.v) {
|
|
1925
|
-
if (
|
|
1925
|
+
if (ot > 100)
|
|
1926
1926
|
throw new Error("Cycle detected");
|
|
1927
|
-
this.v = t, this.i++,
|
|
1927
|
+
this.v = t, this.i++, Me++, ee++;
|
|
1928
1928
|
try {
|
|
1929
1929
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1930
1930
|
e.t.N();
|
|
1931
1931
|
} finally {
|
|
1932
|
-
|
|
1932
|
+
Ve();
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
1935
|
} });
|
|
1936
|
-
function
|
|
1937
|
-
return new
|
|
1936
|
+
function E(t) {
|
|
1937
|
+
return new L(t);
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function si(t) {
|
|
1940
1940
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1941
1941
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1942
1942
|
return !0;
|
|
1943
1943
|
return !1;
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function ai(t) {
|
|
1946
1946
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1947
1947
|
var i = e.S.n;
|
|
1948
1948
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1951,95 +1951,95 @@ function ni(t) {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function di(t) {
|
|
1955
1955
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1956
1956
|
var n = e.p;
|
|
1957
1957
|
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;
|
|
1958
1958
|
}
|
|
1959
1959
|
t.s = i;
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
|
|
1961
|
+
function ce(t) {
|
|
1962
|
+
L.call(this, void 0), this.x = t, this.s = void 0, this.g = Me - 1, this.f = 4;
|
|
1963
1963
|
}
|
|
1964
|
-
(
|
|
1964
|
+
(ce.prototype = new L()).h = function() {
|
|
1965
1965
|
if (this.f &= -3, 1 & this.f)
|
|
1966
1966
|
return !1;
|
|
1967
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1967
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Me))
|
|
1968
1968
|
return !0;
|
|
1969
|
-
if (this.g =
|
|
1969
|
+
if (this.g = Me, this.f |= 1, this.i > 0 && !si(this))
|
|
1970
1970
|
return this.f &= -2, !0;
|
|
1971
|
-
var t =
|
|
1971
|
+
var t = S;
|
|
1972
1972
|
try {
|
|
1973
|
-
|
|
1973
|
+
ai(this), S = this;
|
|
1974
1974
|
var e = this.x();
|
|
1975
1975
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1976
1976
|
} catch (i) {
|
|
1977
1977
|
this.v = i, this.f |= 16, this.i++;
|
|
1978
1978
|
}
|
|
1979
|
-
return
|
|
1979
|
+
return S = t, di(this), this.f &= -2, !0;
|
|
1980
1980
|
};
|
|
1981
|
-
|
|
1981
|
+
ce.prototype.S = function(t) {
|
|
1982
1982
|
if (this.t === void 0) {
|
|
1983
1983
|
this.f |= 36;
|
|
1984
1984
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1985
1985
|
e.S.S(e);
|
|
1986
1986
|
}
|
|
1987
|
-
|
|
1987
|
+
L.prototype.S.call(this, t);
|
|
1988
1988
|
};
|
|
1989
|
-
|
|
1990
|
-
if (this.t !== void 0 && (
|
|
1989
|
+
ce.prototype.U = function(t) {
|
|
1990
|
+
if (this.t !== void 0 && (L.prototype.U.call(this, t), this.t === void 0)) {
|
|
1991
1991
|
this.f &= -33;
|
|
1992
1992
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1993
1993
|
e.S.U(e);
|
|
1994
1994
|
}
|
|
1995
1995
|
};
|
|
1996
|
-
|
|
1996
|
+
ce.prototype.N = function() {
|
|
1997
1997
|
if (!(2 & this.f)) {
|
|
1998
1998
|
this.f |= 6;
|
|
1999
1999
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
2000
2000
|
t.t.N();
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
|
-
Object.defineProperty(
|
|
2003
|
+
Object.defineProperty(ce.prototype, "value", { get: function() {
|
|
2004
2004
|
if (1 & this.f)
|
|
2005
2005
|
throw new Error("Cycle detected");
|
|
2006
|
-
var t =
|
|
2006
|
+
var t = oi(this);
|
|
2007
2007
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
2008
2008
|
throw this.v;
|
|
2009
2009
|
return this.v;
|
|
2010
2010
|
} });
|
|
2011
|
-
function
|
|
2012
|
-
return new
|
|
2011
|
+
function ge(t) {
|
|
2012
|
+
return new ce(t);
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function li(t) {
|
|
2015
2015
|
var e = t.u;
|
|
2016
2016
|
if (t.u = void 0, typeof e == "function") {
|
|
2017
|
-
|
|
2018
|
-
var i =
|
|
2019
|
-
|
|
2017
|
+
ee++;
|
|
2018
|
+
var i = S;
|
|
2019
|
+
S = void 0;
|
|
2020
2020
|
try {
|
|
2021
2021
|
e();
|
|
2022
2022
|
} catch (n) {
|
|
2023
|
-
throw t.f &= -2, t.f |= 8,
|
|
2023
|
+
throw t.f &= -2, t.f |= 8, ft(t), n;
|
|
2024
2024
|
} finally {
|
|
2025
|
-
|
|
2025
|
+
S = i, Ve();
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2029
|
+
function ft(t) {
|
|
2030
2030
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2031
2031
|
e.S.U(e);
|
|
2032
|
-
t.x = void 0, t.s = void 0,
|
|
2032
|
+
t.x = void 0, t.s = void 0, li(t);
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2035
|
-
if (
|
|
2034
|
+
function lr(t) {
|
|
2035
|
+
if (S !== this)
|
|
2036
2036
|
throw new Error("Out-of-order effect");
|
|
2037
|
-
|
|
2037
|
+
di(this), S = t, this.f &= -2, 8 & this.f && ft(this), Ve();
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function Ee(t) {
|
|
2040
2040
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
2041
2041
|
}
|
|
2042
|
-
|
|
2042
|
+
Ee.prototype.c = function() {
|
|
2043
2043
|
var t = this.S();
|
|
2044
2044
|
try {
|
|
2045
2045
|
if (8 & this.f || this.x === void 0)
|
|
@@ -2050,21 +2050,21 @@ me.prototype.c = function() {
|
|
|
2050
2050
|
t();
|
|
2051
2051
|
}
|
|
2052
2052
|
};
|
|
2053
|
-
|
|
2053
|
+
Ee.prototype.S = function() {
|
|
2054
2054
|
if (1 & this.f)
|
|
2055
2055
|
throw new Error("Cycle detected");
|
|
2056
|
-
this.f |= 1, this.f &= -9,
|
|
2057
|
-
var t =
|
|
2058
|
-
return
|
|
2056
|
+
this.f |= 1, this.f &= -9, li(this), ai(this), ee++;
|
|
2057
|
+
var t = S;
|
|
2058
|
+
return S = this, lr.bind(this, t);
|
|
2059
2059
|
};
|
|
2060
|
-
|
|
2061
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2060
|
+
Ee.prototype.N = function() {
|
|
2061
|
+
2 & this.f || (this.f |= 2, this.o = _e, _e = this);
|
|
2062
2062
|
};
|
|
2063
|
-
|
|
2064
|
-
this.f |= 8, 1 & this.f ||
|
|
2063
|
+
Ee.prototype.d = function() {
|
|
2064
|
+
this.f |= 8, 1 & this.f || ft(this);
|
|
2065
2065
|
};
|
|
2066
|
-
function
|
|
2067
|
-
var e = new
|
|
2066
|
+
function ue(t) {
|
|
2067
|
+
var e = new Ee(t);
|
|
2068
2068
|
try {
|
|
2069
2069
|
e.c();
|
|
2070
2070
|
} catch (i) {
|
|
@@ -2072,75 +2072,75 @@ function oe(t) {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
return e.d.bind(e);
|
|
2074
2074
|
}
|
|
2075
|
-
var
|
|
2076
|
-
|
|
2077
|
-
|
|
2075
|
+
var vt, We, ci = [], ui = [];
|
|
2076
|
+
ue(function() {
|
|
2077
|
+
vt = this.N;
|
|
2078
2078
|
})();
|
|
2079
|
-
function
|
|
2080
|
-
|
|
2079
|
+
function he(t, e) {
|
|
2080
|
+
ie[t] = e.bind(null, ie[t] || function() {
|
|
2081
2081
|
});
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2084
|
-
|
|
2083
|
+
function Ue(t) {
|
|
2084
|
+
We && We(), We = t && t.S();
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2087
|
-
var e = this, i = t.data, n =
|
|
2086
|
+
function hi(t) {
|
|
2087
|
+
var e = this, i = t.data, n = fi(i);
|
|
2088
2088
|
n.value = i;
|
|
2089
|
-
var r =
|
|
2089
|
+
var r = ht(function() {
|
|
2090
2090
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2091
2091
|
if (d.__c) {
|
|
2092
2092
|
d.__c.__$f |= 4;
|
|
2093
2093
|
break;
|
|
2094
2094
|
}
|
|
2095
|
-
var l =
|
|
2096
|
-
var
|
|
2097
|
-
return
|
|
2098
|
-
}), c =
|
|
2099
|
-
return !Array.isArray(l.value) && !
|
|
2100
|
-
}),
|
|
2101
|
-
if (this.N =
|
|
2102
|
-
var
|
|
2103
|
-
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data =
|
|
2095
|
+
var l = ge(function() {
|
|
2096
|
+
var f = n.value.value;
|
|
2097
|
+
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2098
|
+
}), c = ge(function() {
|
|
2099
|
+
return !Array.isArray(l.value) && !mi(l.value);
|
|
2100
|
+
}), h = ue(function() {
|
|
2101
|
+
if (this.N = vi, c.value) {
|
|
2102
|
+
var f = l.value;
|
|
2103
|
+
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2104
2104
|
}
|
|
2105
|
-
}),
|
|
2105
|
+
}), u = e.__$u.d;
|
|
2106
2106
|
return e.__$u.d = function() {
|
|
2107
|
-
|
|
2107
|
+
h(), u.call(this);
|
|
2108
2108
|
}, [c, l];
|
|
2109
2109
|
}, []), o = r[0], s = r[1];
|
|
2110
2110
|
return o.value ? s.peek() : s.value;
|
|
2111
2111
|
}
|
|
2112
|
-
|
|
2113
|
-
Object.defineProperties(
|
|
2112
|
+
hi.displayName = "_st";
|
|
2113
|
+
Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: hi }, props: { configurable: !0, get: function() {
|
|
2114
2114
|
return { data: this };
|
|
2115
2115
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2116
|
-
|
|
2116
|
+
he("__b", function(t, e) {
|
|
2117
2117
|
if (typeof e.type == "string") {
|
|
2118
2118
|
var i, n = e.props;
|
|
2119
2119
|
for (var r in n)
|
|
2120
2120
|
if (r !== "children") {
|
|
2121
2121
|
var o = n[r];
|
|
2122
|
-
o instanceof
|
|
2122
|
+
o instanceof L && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
2125
|
t(e);
|
|
2126
2126
|
});
|
|
2127
|
-
|
|
2128
|
-
|
|
2127
|
+
he("__r", function(t, e) {
|
|
2128
|
+
Ue();
|
|
2129
2129
|
var i, n = e.__c;
|
|
2130
2130
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2131
2131
|
var o;
|
|
2132
|
-
return
|
|
2132
|
+
return ue(function() {
|
|
2133
2133
|
o = this;
|
|
2134
2134
|
}), o.c = function() {
|
|
2135
2135
|
n.__$f |= 1, n.setState({});
|
|
2136
2136
|
}, o;
|
|
2137
|
-
}())),
|
|
2137
|
+
}())), Ue(i), t(e);
|
|
2138
2138
|
});
|
|
2139
|
-
|
|
2140
|
-
|
|
2139
|
+
he("__e", function(t, e, i, n) {
|
|
2140
|
+
Ue(), t(e, i, n);
|
|
2141
2141
|
});
|
|
2142
|
-
|
|
2143
|
-
|
|
2142
|
+
he("diffed", function(t, e) {
|
|
2143
|
+
Ue();
|
|
2144
2144
|
var i;
|
|
2145
2145
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2146
2146
|
var n = e.__np, r = e.props;
|
|
@@ -2155,23 +2155,23 @@ se("diffed", function(t, e) {
|
|
|
2155
2155
|
o = {}, i.U = o;
|
|
2156
2156
|
for (var d in n) {
|
|
2157
2157
|
var l = o[d], c = n[d];
|
|
2158
|
-
l === void 0 ? (l =
|
|
2158
|
+
l === void 0 ? (l = cr(i, d, c, r), o[d] = l) : l.o(c, r);
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
2161
|
}
|
|
2162
2162
|
t(e);
|
|
2163
2163
|
});
|
|
2164
|
-
function
|
|
2165
|
-
var r = e in t && t.ownerSVGElement === void 0, o =
|
|
2164
|
+
function cr(t, e, i, n) {
|
|
2165
|
+
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2166
2166
|
return { o: function(s, a) {
|
|
2167
2167
|
o.value = s, n = a;
|
|
2168
|
-
}, d:
|
|
2169
|
-
this.N =
|
|
2168
|
+
}, d: ue(function() {
|
|
2169
|
+
this.N = vi;
|
|
2170
2170
|
var s = o.value.value;
|
|
2171
2171
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2172
2172
|
}) };
|
|
2173
2173
|
}
|
|
2174
|
-
|
|
2174
|
+
he("unmount", function(t, e) {
|
|
2175
2175
|
if (typeof e.type == "string") {
|
|
2176
2176
|
var i = e.__e;
|
|
2177
2177
|
if (i) {
|
|
@@ -2193,10 +2193,10 @@ se("unmount", function(t, e) {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
t(e);
|
|
2195
2195
|
});
|
|
2196
|
-
|
|
2196
|
+
he("__h", function(t, e, i, n) {
|
|
2197
2197
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2198
2198
|
});
|
|
2199
|
-
|
|
2199
|
+
Ai.prototype.shouldComponentUpdate = function(t, e) {
|
|
2200
2200
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2201
2201
|
for (var r in e)
|
|
2202
2202
|
return !0;
|
|
@@ -2214,47 +2214,47 @@ pi.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2214
2214
|
return !0;
|
|
2215
2215
|
return !1;
|
|
2216
2216
|
};
|
|
2217
|
-
function
|
|
2218
|
-
return
|
|
2219
|
-
return
|
|
2217
|
+
function fi(t) {
|
|
2218
|
+
return ht(function() {
|
|
2219
|
+
return E(t);
|
|
2220
2220
|
}, []);
|
|
2221
2221
|
}
|
|
2222
|
-
var
|
|
2222
|
+
var ur = typeof requestAnimationFrame == "undefined" ? setTimeout : function(t) {
|
|
2223
2223
|
var e = function() {
|
|
2224
2224
|
clearTimeout(i), cancelAnimationFrame(n), t();
|
|
2225
2225
|
}, i = setTimeout(e, 100), n = requestAnimationFrame(e);
|
|
2226
|
-
},
|
|
2226
|
+
}, hr = function(t) {
|
|
2227
2227
|
queueMicrotask(function() {
|
|
2228
2228
|
queueMicrotask(t);
|
|
2229
2229
|
});
|
|
2230
2230
|
};
|
|
2231
|
-
function
|
|
2232
|
-
|
|
2233
|
-
for (var t; t =
|
|
2234
|
-
|
|
2231
|
+
function fr() {
|
|
2232
|
+
O(function() {
|
|
2233
|
+
for (var t; t = ci.shift(); )
|
|
2234
|
+
vt.call(t);
|
|
2235
2235
|
});
|
|
2236
2236
|
}
|
|
2237
|
-
function
|
|
2238
|
-
|
|
2237
|
+
function vr() {
|
|
2238
|
+
ci.push(this) === 1 && (ie.requestAnimationFrame || ur)(fr);
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2241
|
-
|
|
2242
|
-
for (var t; t =
|
|
2243
|
-
|
|
2240
|
+
function pr() {
|
|
2241
|
+
O(function() {
|
|
2242
|
+
for (var t; t = ui.shift(); )
|
|
2243
|
+
vt.call(t);
|
|
2244
2244
|
});
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2247
|
-
|
|
2246
|
+
function vi() {
|
|
2247
|
+
ui.push(this) === 1 && (ie.requestAnimationFrame || hr)(pr);
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2250
|
-
var e =
|
|
2251
|
-
e.current = t,
|
|
2252
|
-
return
|
|
2253
|
-
return this.N =
|
|
2249
|
+
function yr(t) {
|
|
2250
|
+
var e = or(t);
|
|
2251
|
+
e.current = t, rr(function() {
|
|
2252
|
+
return ue(function() {
|
|
2253
|
+
return this.N = vr, e.current();
|
|
2254
2254
|
});
|
|
2255
2255
|
}, []);
|
|
2256
2256
|
}
|
|
2257
|
-
const
|
|
2257
|
+
const N = le`
|
|
2258
2258
|
inset: 0;
|
|
2259
2259
|
clear: none;
|
|
2260
2260
|
float: none;
|
|
@@ -2273,11 +2273,11 @@ const P = ge`
|
|
|
2273
2273
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2274
2274
|
'Helvetica Neue', sans-serif;
|
|
2275
2275
|
`;
|
|
2276
|
-
function
|
|
2277
|
-
const i =
|
|
2278
|
-
|
|
2276
|
+
function _r(t, e) {
|
|
2277
|
+
const i = Ei(t);
|
|
2278
|
+
Si(() => {
|
|
2279
2279
|
i.current = t;
|
|
2280
|
-
}, [t]),
|
|
2280
|
+
}, [t]), dt(() => {
|
|
2281
2281
|
if (e === null)
|
|
2282
2282
|
return;
|
|
2283
2283
|
const n = setInterval(() => {
|
|
@@ -2288,21 +2288,21 @@ function cr(t, e) {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
}, [e]);
|
|
2290
2290
|
}
|
|
2291
|
-
var
|
|
2292
|
-
function
|
|
2291
|
+
var gr = 0;
|
|
2292
|
+
function b(t, e, i, n, r, o) {
|
|
2293
2293
|
e || (e = {});
|
|
2294
2294
|
var s, a, d = e;
|
|
2295
2295
|
if ("ref" in d)
|
|
2296
2296
|
for (a in d = {}, e)
|
|
2297
2297
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2298
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2298
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --gr, __i: -1, __u: 0, __source: r, __self: o };
|
|
2299
2299
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2300
2300
|
for (a in s)
|
|
2301
2301
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2302
|
-
return
|
|
2302
|
+
return ie.vnode && ie.vnode(l), l;
|
|
2303
2303
|
}
|
|
2304
|
-
const
|
|
2305
|
-
${
|
|
2304
|
+
const wr = le`
|
|
2305
|
+
${N}
|
|
2306
2306
|
position: fixed;
|
|
2307
2307
|
top: 0;
|
|
2308
2308
|
left: 0;
|
|
@@ -2315,7 +2315,7 @@ const fr = ge`
|
|
|
2315
2315
|
height: 100vh;
|
|
2316
2316
|
|
|
2317
2317
|
.card-wrapper {
|
|
2318
|
-
${
|
|
2318
|
+
${N}
|
|
2319
2319
|
position: relative;
|
|
2320
2320
|
display: flex;
|
|
2321
2321
|
flex-direction: column;
|
|
@@ -2329,7 +2329,7 @@ const fr = ge`
|
|
|
2329
2329
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2330
2330
|
|
|
2331
2331
|
.body {
|
|
2332
|
-
${
|
|
2332
|
+
${N}
|
|
2333
2333
|
display: flex;
|
|
2334
2334
|
flex-direction: column;
|
|
2335
2335
|
width: 100%;
|
|
@@ -2338,7 +2338,7 @@ const fr = ge`
|
|
|
2338
2338
|
box-sizing: border-box;
|
|
2339
2339
|
justify-content: center;
|
|
2340
2340
|
.title {
|
|
2341
|
-
${
|
|
2341
|
+
${N}
|
|
2342
2342
|
text-align: center;
|
|
2343
2343
|
font-size: 16px;
|
|
2344
2344
|
font-weight: bold;
|
|
@@ -2346,7 +2346,7 @@ const fr = ge`
|
|
|
2346
2346
|
}
|
|
2347
2347
|
|
|
2348
2348
|
.content {
|
|
2349
|
-
${
|
|
2349
|
+
${N}
|
|
2350
2350
|
font-size: 14px;
|
|
2351
2351
|
color: #888;
|
|
2352
2352
|
margin-bottom: 16px;
|
|
@@ -2354,13 +2354,13 @@ const fr = ge`
|
|
|
2354
2354
|
}
|
|
2355
2355
|
|
|
2356
2356
|
.footer {
|
|
2357
|
-
${
|
|
2357
|
+
${N}
|
|
2358
2358
|
display: flex;
|
|
2359
2359
|
align-items: center;
|
|
2360
2360
|
width: 100%;
|
|
2361
2361
|
height: 40px;
|
|
2362
2362
|
button {
|
|
2363
|
-
${
|
|
2363
|
+
${N}
|
|
2364
2364
|
border: none;
|
|
2365
2365
|
outline: none;
|
|
2366
2366
|
height: 100%;
|
|
@@ -2376,56 +2376,56 @@ const fr = ge`
|
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
|
-
`,
|
|
2379
|
+
`, G = E(null), st = E(""), at = E(""), Le = E(!1), br = () => {
|
|
2380
2380
|
var t;
|
|
2381
|
-
(t =
|
|
2382
|
-
},
|
|
2381
|
+
(t = G.value) == null || t.call(G, !1);
|
|
2382
|
+
}, Ar = () => {
|
|
2383
2383
|
var t;
|
|
2384
|
-
(t =
|
|
2385
|
-
},
|
|
2384
|
+
(t = G.value) == null || t.call(G, !0);
|
|
2385
|
+
}, mr = async (t) => {
|
|
2386
2386
|
let {
|
|
2387
2387
|
title: e,
|
|
2388
2388
|
content: i
|
|
2389
2389
|
} = t;
|
|
2390
|
-
return
|
|
2391
|
-
|
|
2392
|
-
})),
|
|
2393
|
-
|
|
2390
|
+
return G.value && (G.value(!1), O(() => {
|
|
2391
|
+
G.value = null, Le.value = !1;
|
|
2392
|
+
})), O(() => {
|
|
2393
|
+
st.value = e || "", at.value = i || "", Le.value = !0;
|
|
2394
2394
|
}), new Promise((n) => {
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2395
|
+
G.value = (r) => {
|
|
2396
|
+
O(() => {
|
|
2397
|
+
G.value = null, Le.value = !1, st.value = "", at.value = "";
|
|
2398
2398
|
}), n(r);
|
|
2399
2399
|
};
|
|
2400
2400
|
});
|
|
2401
|
-
},
|
|
2402
|
-
className:
|
|
2403
|
-
children:
|
|
2401
|
+
}, Er = () => Le.value ? b("div", {
|
|
2402
|
+
className: wr,
|
|
2403
|
+
children: b("div", {
|
|
2404
2404
|
className: "card-wrapper",
|
|
2405
|
-
children: [
|
|
2405
|
+
children: [b("div", {
|
|
2406
2406
|
className: "body",
|
|
2407
|
-
children: [
|
|
2407
|
+
children: [b("div", {
|
|
2408
2408
|
className: "title",
|
|
2409
|
-
children:
|
|
2410
|
-
}),
|
|
2409
|
+
children: st.value
|
|
2410
|
+
}), b("div", {
|
|
2411
2411
|
className: "content",
|
|
2412
|
-
children:
|
|
2412
|
+
children: at.value
|
|
2413
2413
|
})]
|
|
2414
|
-
}),
|
|
2414
|
+
}), b("div", {
|
|
2415
2415
|
className: "footer",
|
|
2416
|
-
children: [
|
|
2417
|
-
onClick:
|
|
2416
|
+
children: [b("button", {
|
|
2417
|
+
onClick: br,
|
|
2418
2418
|
className: "cancel-btn",
|
|
2419
2419
|
children: "Cancel"
|
|
2420
|
-
}),
|
|
2421
|
-
onClick:
|
|
2420
|
+
}), b("button", {
|
|
2421
|
+
onClick: Ar,
|
|
2422
2422
|
className: "confirm-btm",
|
|
2423
2423
|
children: "Confirm"
|
|
2424
2424
|
})]
|
|
2425
2425
|
})]
|
|
2426
2426
|
})
|
|
2427
|
-
}) : null,
|
|
2428
|
-
${
|
|
2427
|
+
}) : null, Sr = le`
|
|
2428
|
+
${N}
|
|
2429
2429
|
position: relative;
|
|
2430
2430
|
display: flex;
|
|
2431
2431
|
align-items: center;
|
|
@@ -2443,7 +2443,7 @@ const fr = ge`
|
|
|
2443
2443
|
}
|
|
2444
2444
|
|
|
2445
2445
|
button {
|
|
2446
|
-
${
|
|
2446
|
+
${N}
|
|
2447
2447
|
padding: 0 20px;
|
|
2448
2448
|
height: 30px;
|
|
2449
2449
|
line-height: 30px;
|
|
@@ -2457,18 +2457,18 @@ const fr = ge`
|
|
|
2457
2457
|
cursor: not-allowed;
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
|
-
`,
|
|
2461
|
-
const t =
|
|
2460
|
+
`, kr = () => {
|
|
2461
|
+
const t = E(!1), e = E(null);
|
|
2462
2462
|
return {
|
|
2463
2463
|
timerPaused: t,
|
|
2464
2464
|
startTimestamp: e,
|
|
2465
2465
|
startTimer: () => {
|
|
2466
|
-
|
|
2466
|
+
O(() => {
|
|
2467
2467
|
e.value = Date.now(), t.value = !1;
|
|
2468
2468
|
});
|
|
2469
2469
|
}
|
|
2470
2470
|
};
|
|
2471
|
-
},
|
|
2471
|
+
}, xr = (t) => {
|
|
2472
2472
|
let {
|
|
2473
2473
|
countdown: e = 0,
|
|
2474
2474
|
mode: i,
|
|
@@ -2478,65 +2478,65 @@ const fr = ge`
|
|
|
2478
2478
|
const {
|
|
2479
2479
|
startTimestamp: o,
|
|
2480
2480
|
timerPaused: s
|
|
2481
|
-
} = r, a =
|
|
2482
|
-
|
|
2481
|
+
} = r, a = fi(e);
|
|
2482
|
+
yr(() => {
|
|
2483
2483
|
o.value && (a.value = e);
|
|
2484
|
-
}),
|
|
2485
|
-
a.value > 0 ? a.value -= 1 :
|
|
2484
|
+
}), _r(() => {
|
|
2485
|
+
a.value > 0 ? a.value -= 1 : O(() => {
|
|
2486
2486
|
s.value = !0, a.value = 0;
|
|
2487
2487
|
});
|
|
2488
2488
|
}, s.value ? null : 1e3);
|
|
2489
|
-
const d =
|
|
2489
|
+
const d = ge(() => {
|
|
2490
2490
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2491
2491
|
return !1;
|
|
2492
|
-
const
|
|
2493
|
-
return a.value > 0 && e - a.value >= 5 &&
|
|
2494
|
-
}), l =
|
|
2492
|
+
const f = Date.now() - o.value;
|
|
2493
|
+
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2494
|
+
}), l = ge(() => {
|
|
2495
2495
|
if (i === "interstitial")
|
|
2496
2496
|
return !0;
|
|
2497
2497
|
if (!o.value)
|
|
2498
2498
|
return !1;
|
|
2499
|
-
const
|
|
2500
|
-
return a.value <= 0 &&
|
|
2501
|
-
}), c =
|
|
2502
|
-
if (s.value = !0, !await
|
|
2499
|
+
const f = Date.now() - o.value;
|
|
2500
|
+
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2501
|
+
}), c = ge(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2502
|
+
if (s.value = !0, !await mr({
|
|
2503
2503
|
title: "Are you sure?",
|
|
2504
2504
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2505
2505
|
})) {
|
|
2506
2506
|
s.value = !1;
|
|
2507
2507
|
return;
|
|
2508
2508
|
}
|
|
2509
|
-
n("dismiss"),
|
|
2509
|
+
n("dismiss"), O(() => {
|
|
2510
2510
|
s.value = !0, a.value = 0, o.value = null;
|
|
2511
2511
|
});
|
|
2512
|
-
},
|
|
2513
|
-
n("viewed"),
|
|
2512
|
+
}, u = () => {
|
|
2513
|
+
n("viewed"), O(() => {
|
|
2514
2514
|
s.value = !0, a.value = 0, o.value = null;
|
|
2515
2515
|
});
|
|
2516
2516
|
};
|
|
2517
|
-
return
|
|
2518
|
-
className:
|
|
2519
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2517
|
+
return b("div", {
|
|
2518
|
+
className: Sr,
|
|
2519
|
+
children: [a.value > 0 && i !== "interstitial" && b("div", {
|
|
2520
2520
|
className: "timer",
|
|
2521
2521
|
children: [a.value, "s"]
|
|
2522
|
-
}),
|
|
2523
|
-
onClick: d.value ?
|
|
2522
|
+
}), b("button", {
|
|
2523
|
+
onClick: d.value ? h : l.value ? u : void 0,
|
|
2524
2524
|
disabled: c.value,
|
|
2525
|
-
children:
|
|
2525
|
+
children: b("svg", {
|
|
2526
2526
|
width: "12",
|
|
2527
2527
|
height: "12",
|
|
2528
2528
|
viewBox: "0 0 14 14",
|
|
2529
2529
|
fill: "none",
|
|
2530
2530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2531
|
-
children:
|
|
2531
|
+
children: b("path", {
|
|
2532
2532
|
d: "M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",
|
|
2533
2533
|
fill: "white"
|
|
2534
2534
|
})
|
|
2535
2535
|
})
|
|
2536
2536
|
})]
|
|
2537
2537
|
});
|
|
2538
|
-
},
|
|
2539
|
-
const t =
|
|
2538
|
+
}, pi = () => {
|
|
2539
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2540
2540
|
return {
|
|
2541
2541
|
afterAd: t,
|
|
2542
2542
|
adDismissed: e,
|
|
@@ -2548,8 +2548,8 @@ const fr = ge`
|
|
|
2548
2548
|
src: a,
|
|
2549
2549
|
mode: d
|
|
2550
2550
|
};
|
|
2551
|
-
},
|
|
2552
|
-
${
|
|
2551
|
+
}, Rr = le`
|
|
2552
|
+
${N}
|
|
2553
2553
|
position: fixed;
|
|
2554
2554
|
z-index: 2147483647;
|
|
2555
2555
|
background: white;
|
|
@@ -2559,7 +2559,7 @@ const fr = ge`
|
|
|
2559
2559
|
flex-direction: column;
|
|
2560
2560
|
|
|
2561
2561
|
iframe {
|
|
2562
|
-
${
|
|
2562
|
+
${N}
|
|
2563
2563
|
flex: 1;
|
|
2564
2564
|
position: relative;
|
|
2565
2565
|
display: block;
|
|
@@ -2567,7 +2567,7 @@ const fr = ge`
|
|
|
2567
2567
|
width: 100%;
|
|
2568
2568
|
height: 100%;
|
|
2569
2569
|
}
|
|
2570
|
-
`,
|
|
2570
|
+
`, yi = (t) => {
|
|
2571
2571
|
let {
|
|
2572
2572
|
state: e
|
|
2573
2573
|
} = t;
|
|
@@ -2581,37 +2581,37 @@ const fr = ge`
|
|
|
2581
2581
|
countdown: d,
|
|
2582
2582
|
src: l,
|
|
2583
2583
|
mode: c
|
|
2584
|
-
} = e,
|
|
2585
|
-
var
|
|
2586
|
-
a.value = !1, y === "dismiss" ? (
|
|
2587
|
-
},
|
|
2584
|
+
} = e, h = ki(() => kr(), []), u = (y) => {
|
|
2585
|
+
var v, g, p, _;
|
|
2586
|
+
a.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);
|
|
2587
|
+
}, f = () => {
|
|
2588
2588
|
var y;
|
|
2589
2589
|
(c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2590
|
-
|
|
2590
|
+
h.startTimer();
|
|
2591
2591
|
}, 100), (y = s.value) == null || y.call(s);
|
|
2592
2592
|
};
|
|
2593
|
-
return a.value ?
|
|
2594
|
-
className:
|
|
2595
|
-
children: [
|
|
2593
|
+
return a.value ? b("div", {
|
|
2594
|
+
className: Rr,
|
|
2595
|
+
children: [b(xr, {
|
|
2596
2596
|
mode: c.value,
|
|
2597
|
-
onClose:
|
|
2597
|
+
onClose: u,
|
|
2598
2598
|
countdown: d.value,
|
|
2599
|
-
state:
|
|
2600
|
-
}), a.value &&
|
|
2599
|
+
state: h
|
|
2600
|
+
}), a.value && b("iframe", {
|
|
2601
2601
|
src: l.value,
|
|
2602
|
-
onLoad:
|
|
2602
|
+
onLoad: f,
|
|
2603
2603
|
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"
|
|
2604
|
-
}),
|
|
2604
|
+
}), b(Er, {})]
|
|
2605
2605
|
}) : null;
|
|
2606
2606
|
};
|
|
2607
|
-
function
|
|
2608
|
-
return (e =
|
|
2607
|
+
function J(t, e, i) {
|
|
2608
|
+
return (e = Ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2611
|
-
var e =
|
|
2610
|
+
function Ir(t) {
|
|
2611
|
+
var e = Tr(t, "string");
|
|
2612
2612
|
return typeof e == "symbol" ? e : e + "";
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function Tr(t, e) {
|
|
2615
2615
|
if (typeof t != "object" || !t)
|
|
2616
2616
|
return t;
|
|
2617
2617
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2623,13 +2623,13 @@ function br(t, e) {
|
|
|
2623
2623
|
}
|
|
2624
2624
|
return (e === "string" ? String : Number)(t);
|
|
2625
2625
|
}
|
|
2626
|
-
class
|
|
2626
|
+
class Or {
|
|
2627
2627
|
constructor(e, i) {
|
|
2628
|
-
|
|
2628
|
+
J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "initParams", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "lastUnDisplayedAdBreak", null), J(this, "state", pi()), this.context = e, this.initParams = i;
|
|
2629
2629
|
}
|
|
2630
2630
|
async init() {
|
|
2631
2631
|
var e;
|
|
2632
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"),
|
|
2632
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(b(yi, {
|
|
2633
2633
|
state: this.state
|
|
2634
2634
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2635
2635
|
}
|
|
@@ -2679,6 +2679,235 @@ class Er {
|
|
|
2679
2679
|
case "next":
|
|
2680
2680
|
case "pause": {
|
|
2681
2681
|
(s = e.beforeAd) == null || s.call(e);
|
|
2682
|
+
const h = () => {
|
|
2683
|
+
var f;
|
|
2684
|
+
this.adsIsShowing = !1, (f = e.afterAd) == null || f.call(e);
|
|
2685
|
+
}, u = () => {
|
|
2686
|
+
var f;
|
|
2687
|
+
this.adsIsShowing = !1, (f = e.adBreakDone) == null || f.call(e, {
|
|
2688
|
+
breakType: e.type,
|
|
2689
|
+
breakName: e.name,
|
|
2690
|
+
breakFormat: "interstitial",
|
|
2691
|
+
breakStatus: "viewed"
|
|
2692
|
+
});
|
|
2693
|
+
};
|
|
2694
|
+
O(() => {
|
|
2695
|
+
this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = u, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
|
|
2696
|
+
});
|
|
2697
|
+
break;
|
|
2698
|
+
}
|
|
2699
|
+
case "reward": {
|
|
2700
|
+
this.lastUnDisplayedAdBreak && ((d = (a = this.lastUnDisplayedAdBreak).adBreakDone) == null || d.call(a, {
|
|
2701
|
+
breakType: this.lastUnDisplayedAdBreak.type,
|
|
2702
|
+
breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
|
|
2703
|
+
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
2704
|
+
breakStatus: "ignored"
|
|
2705
|
+
}), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
|
|
2706
|
+
const h = () => {
|
|
2707
|
+
var p;
|
|
2708
|
+
this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
|
|
2709
|
+
}, u = {
|
|
2710
|
+
breakType: e.type,
|
|
2711
|
+
breakName: e.name,
|
|
2712
|
+
breakFormat: "reward",
|
|
2713
|
+
breakStatus: "ignored"
|
|
2714
|
+
}, f = () => {
|
|
2715
|
+
var p;
|
|
2716
|
+
this.adsIsShowing = !1, u.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
|
|
2717
|
+
}, y = () => {
|
|
2718
|
+
var p;
|
|
2719
|
+
this.adsIsShowing = !1, u.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
|
|
2720
|
+
}, v = () => {
|
|
2721
|
+
var p;
|
|
2722
|
+
this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, u);
|
|
2723
|
+
};
|
|
2724
|
+
O(() => {
|
|
2725
|
+
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
|
|
2726
|
+
});
|
|
2727
|
+
const g = () => {
|
|
2728
|
+
var p;
|
|
2729
|
+
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2730
|
+
(p = e.adBreakDone) == null || p.call(e, {
|
|
2731
|
+
breakType: e.type,
|
|
2732
|
+
breakName: e.name,
|
|
2733
|
+
breakFormat: "reward",
|
|
2734
|
+
breakStatus: "notReady"
|
|
2735
|
+
});
|
|
2736
|
+
return;
|
|
2737
|
+
}
|
|
2738
|
+
this.adsIsShowing = !0, O(() => {
|
|
2739
|
+
var _;
|
|
2740
|
+
this.state.countdown.value = (_ = i.params.countdown) != null ? _ : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2741
|
+
});
|
|
2742
|
+
};
|
|
2743
|
+
this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, g);
|
|
2744
|
+
break;
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
const oe = {};
|
|
2750
|
+
window.addEventListener("message", (t) => {
|
|
2751
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || oe[t.data.type] && oe[t.data.type].forEach((e) => {
|
|
2752
|
+
e(t.data.data);
|
|
2753
|
+
});
|
|
2754
|
+
});
|
|
2755
|
+
const ne = (t, e) => {
|
|
2756
|
+
dt(() => (oe[t] || (oe[t] = /* @__PURE__ */ new Set()), oe[t].add(e), () => {
|
|
2757
|
+
oe[t].delete(e);
|
|
2758
|
+
}), [t, e]);
|
|
2759
|
+
}, _i = () => {
|
|
2760
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2761
|
+
return {
|
|
2762
|
+
afterAd: t,
|
|
2763
|
+
adDismissed: e,
|
|
2764
|
+
adViewed: i,
|
|
2765
|
+
adBreakDone: n,
|
|
2766
|
+
adLoaded: r,
|
|
2767
|
+
adLinkClicked: o,
|
|
2768
|
+
adError: s,
|
|
2769
|
+
visible: a,
|
|
2770
|
+
src: d
|
|
2771
|
+
};
|
|
2772
|
+
}, Dr = le`
|
|
2773
|
+
${N}
|
|
2774
|
+
position: fixed;
|
|
2775
|
+
z-index: 2147483647;
|
|
2776
|
+
background: white;
|
|
2777
|
+
width: 100vw;
|
|
2778
|
+
height: 100vh;
|
|
2779
|
+
display: flex;
|
|
2780
|
+
flex-direction: column;
|
|
2781
|
+
|
|
2782
|
+
iframe {
|
|
2783
|
+
${N}
|
|
2784
|
+
flex: 1;
|
|
2785
|
+
position: relative;
|
|
2786
|
+
display: block;
|
|
2787
|
+
background: white;
|
|
2788
|
+
width: 100%;
|
|
2789
|
+
height: 100%;
|
|
2790
|
+
}
|
|
2791
|
+
`, gi = (t) => {
|
|
2792
|
+
let {
|
|
2793
|
+
state: e
|
|
2794
|
+
} = t;
|
|
2795
|
+
const {
|
|
2796
|
+
afterAd: i,
|
|
2797
|
+
adDismissed: n,
|
|
2798
|
+
adViewed: r,
|
|
2799
|
+
adBreakDone: o,
|
|
2800
|
+
adLoaded: s,
|
|
2801
|
+
adLinkClicked: a,
|
|
2802
|
+
visible: d,
|
|
2803
|
+
src: l
|
|
2804
|
+
} = e, [c, h] = xi(!1), u = (y) => {
|
|
2805
|
+
var v, g, p, _;
|
|
2806
|
+
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);
|
|
2807
|
+
}, f = () => {
|
|
2808
|
+
var y;
|
|
2809
|
+
(y = s.value) == null || y.call(s);
|
|
2810
|
+
};
|
|
2811
|
+
return ne("appsrockets_ad_dismissed", () => u("dismiss")), ne("appsrockets_ad_rewarded", () => u("viewed")), ne("appsrockets_ad_completed", () => u("viewed")), ne("appsrockets_ad_skipped", () => u("viewed")), ne("appsrockets_ad_clicked", (y) => {
|
|
2812
|
+
var v;
|
|
2813
|
+
return (v = a.value) == null ? void 0 : v.call(a, y);
|
|
2814
|
+
}), ne("appsrockets_ad_loaded", () => h(!0)), d.value ? b("div", {
|
|
2815
|
+
className: Dr,
|
|
2816
|
+
style: {
|
|
2817
|
+
display: c ? "flex" : "none"
|
|
2818
|
+
},
|
|
2819
|
+
children: d.value && b("iframe", {
|
|
2820
|
+
src: l.value,
|
|
2821
|
+
onLoad: f,
|
|
2822
|
+
allowFullScreen: !0,
|
|
2823
|
+
allow: "autoplay",
|
|
2824
|
+
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"
|
|
2825
|
+
})
|
|
2826
|
+
}) : null;
|
|
2827
|
+
};
|
|
2828
|
+
function Y(t, e, i) {
|
|
2829
|
+
return (e = Lr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2830
|
+
}
|
|
2831
|
+
function Lr(t) {
|
|
2832
|
+
var e = Cr(t, "string");
|
|
2833
|
+
return typeof e == "symbol" ? e : e + "";
|
|
2834
|
+
}
|
|
2835
|
+
function Cr(t, e) {
|
|
2836
|
+
if (typeof t != "object" || !t)
|
|
2837
|
+
return t;
|
|
2838
|
+
var i = t[Symbol.toPrimitive];
|
|
2839
|
+
if (i !== void 0) {
|
|
2840
|
+
var n = i.call(t, e);
|
|
2841
|
+
if (typeof n != "object")
|
|
2842
|
+
return n;
|
|
2843
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2844
|
+
}
|
|
2845
|
+
return (e === "string" ? String : Number)(t);
|
|
2846
|
+
}
|
|
2847
|
+
class Nr {
|
|
2848
|
+
constructor(e, i) {
|
|
2849
|
+
Y(this, "name", "APPSROCKETS"), Y(this, "initialized", !1), Y(this, "initCompleter", null), Y(this, "context", void 0), Y(this, "adsOverlay", null), Y(this, "adsIsShowing", !1), Y(this, "lastUnDisplayedAdBreak", null), Y(this, "state", _i()), Y(this, "processUrl", (n) => {
|
|
2850
|
+
var a;
|
|
2851
|
+
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2852
|
+
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();
|
|
2853
|
+
}), this.context = e;
|
|
2854
|
+
}
|
|
2855
|
+
async init() {
|
|
2856
|
+
var e;
|
|
2857
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(b(gi, {
|
|
2858
|
+
state: this.state
|
|
2859
|
+
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2860
|
+
}
|
|
2861
|
+
adConfig(e) {
|
|
2862
|
+
var i;
|
|
2863
|
+
if (this.initialized) {
|
|
2864
|
+
(i = e.onReady) == null || i.call(e);
|
|
2865
|
+
return;
|
|
2866
|
+
}
|
|
2867
|
+
this.initCompleter = () => {
|
|
2868
|
+
var n;
|
|
2869
|
+
(n = e.onReady) == null || n.call(e);
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
adBreak(e, i) {
|
|
2873
|
+
var r, o, s, a, d, l, c, h;
|
|
2874
|
+
if (!this.initialized || !this.adsOverlay || !i.params.url) {
|
|
2875
|
+
(r = e.adBreakDone) == null || r.call(e, {
|
|
2876
|
+
breakType: e.type,
|
|
2877
|
+
breakName: e.type === "preroll" ? "" : e.name,
|
|
2878
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2879
|
+
breakStatus: "notReady"
|
|
2880
|
+
});
|
|
2881
|
+
return;
|
|
2882
|
+
}
|
|
2883
|
+
if (this.adsIsShowing) {
|
|
2884
|
+
(o = e.adBreakDone) == null || o.call(e, {
|
|
2885
|
+
breakType: e.type,
|
|
2886
|
+
breakName: e.type === "preroll" ? "" : e.name,
|
|
2887
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2888
|
+
breakStatus: "frequencyCapped"
|
|
2889
|
+
});
|
|
2890
|
+
return;
|
|
2891
|
+
}
|
|
2892
|
+
const n = (u) => {
|
|
2893
|
+
var f, y;
|
|
2894
|
+
(y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
|
|
2895
|
+
};
|
|
2896
|
+
switch (e.type) {
|
|
2897
|
+
case "preroll": {
|
|
2898
|
+
(s = e.adBreakDone) == null || s.call(e, {
|
|
2899
|
+
breakType: e.type,
|
|
2900
|
+
breakName: "",
|
|
2901
|
+
breakFormat: "interstitial",
|
|
2902
|
+
breakStatus: "noAdPreloaded"
|
|
2903
|
+
});
|
|
2904
|
+
break;
|
|
2905
|
+
}
|
|
2906
|
+
case "start":
|
|
2907
|
+
case "browse":
|
|
2908
|
+
case "next":
|
|
2909
|
+
case "pause": {
|
|
2910
|
+
(a = e.beforeAd) == null || a.call(e);
|
|
2682
2911
|
const u = () => {
|
|
2683
2912
|
var v;
|
|
2684
2913
|
this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
|
|
@@ -2690,44 +2919,54 @@ class Er {
|
|
|
2690
2919
|
breakFormat: "interstitial",
|
|
2691
2920
|
breakStatus: "viewed"
|
|
2692
2921
|
});
|
|
2922
|
+
}, y = () => {
|
|
2923
|
+
var v;
|
|
2924
|
+
this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
|
|
2925
|
+
breakType: e.type,
|
|
2926
|
+
breakName: e.name,
|
|
2927
|
+
breakFormat: "interstitial",
|
|
2928
|
+
breakStatus: "noAdPreloaded"
|
|
2929
|
+
});
|
|
2693
2930
|
};
|
|
2694
|
-
|
|
2695
|
-
this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = i.params.url, this.state.
|
|
2931
|
+
O(() => {
|
|
2932
|
+
this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = y, this.state.visible.value = !0;
|
|
2696
2933
|
});
|
|
2697
2934
|
break;
|
|
2698
2935
|
}
|
|
2699
2936
|
case "reward": {
|
|
2700
|
-
this.lastUnDisplayedAdBreak && ((
|
|
2937
|
+
this.lastUnDisplayedAdBreak && ((l = (d = this.lastUnDisplayedAdBreak).adBreakDone) == null || l.call(d, {
|
|
2701
2938
|
breakType: this.lastUnDisplayedAdBreak.type,
|
|
2702
2939
|
breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
|
|
2703
2940
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
2704
2941
|
breakStatus: "ignored"
|
|
2705
|
-
}), this.lastUnDisplayedAdBreak = null), (
|
|
2942
|
+
}), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
|
|
2706
2943
|
const u = () => {
|
|
2707
|
-
var
|
|
2708
|
-
this.adsIsShowing = !1, (
|
|
2944
|
+
var w;
|
|
2945
|
+
this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
|
|
2709
2946
|
}, f = {
|
|
2710
2947
|
breakType: e.type,
|
|
2711
2948
|
breakName: e.name,
|
|
2712
2949
|
breakFormat: "reward",
|
|
2713
2950
|
breakStatus: "ignored"
|
|
2714
|
-
}, v = () => {
|
|
2715
|
-
var h;
|
|
2716
|
-
this.adsIsShowing = !1, f.breakStatus = "dismissed", (h = e.adDismissed) == null || h.call(e);
|
|
2717
2951
|
}, y = () => {
|
|
2718
|
-
var
|
|
2719
|
-
this.adsIsShowing = !1, f.breakStatus = "
|
|
2720
|
-
},
|
|
2721
|
-
var
|
|
2722
|
-
this.adsIsShowing = !1, (
|
|
2952
|
+
var w;
|
|
2953
|
+
this.adsIsShowing = !1, f.breakStatus = "dismissed", (w = e.adDismissed) == null || w.call(e);
|
|
2954
|
+
}, v = () => {
|
|
2955
|
+
var w;
|
|
2956
|
+
this.adsIsShowing = !1, f.breakStatus = "viewed", (w = e.adViewed) == null || w.call(e);
|
|
2957
|
+
}, g = () => {
|
|
2958
|
+
var w;
|
|
2959
|
+
this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, f);
|
|
2960
|
+
}, p = () => {
|
|
2961
|
+
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2723
2962
|
};
|
|
2724
|
-
|
|
2725
|
-
this.state.afterAd.value = u, this.state.adDismissed.value =
|
|
2963
|
+
O(() => {
|
|
2964
|
+
this.state.afterAd.value = u, this.state.adDismissed.value = y, this.state.adViewed.value = v, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = p;
|
|
2726
2965
|
});
|
|
2727
|
-
const
|
|
2728
|
-
var
|
|
2966
|
+
const _ = () => {
|
|
2967
|
+
var w;
|
|
2729
2968
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2730
|
-
(
|
|
2969
|
+
(w = e.adBreakDone) == null || w.call(e, {
|
|
2731
2970
|
breakType: e.type,
|
|
2732
2971
|
breakName: e.name,
|
|
2733
2972
|
breakFormat: "reward",
|
|
@@ -2735,25 +2974,24 @@ class Er {
|
|
|
2735
2974
|
});
|
|
2736
2975
|
return;
|
|
2737
2976
|
}
|
|
2738
|
-
this.adsIsShowing = !0,
|
|
2739
|
-
|
|
2740
|
-
this.state.countdown.value = (p = i.params.countdown) != null ? p : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2977
|
+
this.adsIsShowing = !0, O(() => {
|
|
2978
|
+
this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
|
|
2741
2979
|
});
|
|
2742
2980
|
};
|
|
2743
|
-
this.lastUnDisplayedAdBreak = e, (
|
|
2981
|
+
this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, _);
|
|
2744
2982
|
break;
|
|
2745
2983
|
}
|
|
2746
2984
|
}
|
|
2747
2985
|
}
|
|
2748
2986
|
}
|
|
2749
|
-
function
|
|
2750
|
-
return (e =
|
|
2987
|
+
function Q(t, e, i) {
|
|
2988
|
+
return (e = Pr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2751
2989
|
}
|
|
2752
|
-
function
|
|
2753
|
-
var e =
|
|
2990
|
+
function Pr(t) {
|
|
2991
|
+
var e = $r(t, "string");
|
|
2754
2992
|
return typeof e == "symbol" ? e : e + "";
|
|
2755
2993
|
}
|
|
2756
|
-
function
|
|
2994
|
+
function $r(t, e) {
|
|
2757
2995
|
if (typeof t != "object" || !t)
|
|
2758
2996
|
return t;
|
|
2759
2997
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2765,15 +3003,19 @@ function xr(t, e) {
|
|
|
2765
3003
|
}
|
|
2766
3004
|
return (e === "string" ? String : Number)(t);
|
|
2767
3005
|
}
|
|
2768
|
-
class
|
|
3006
|
+
class yo {
|
|
2769
3007
|
constructor(e) {
|
|
2770
|
-
if (
|
|
2771
|
-
this.context = e, this.channelPolicy = new
|
|
3008
|
+
if (Q(this, "context", void 0), Q(this, "contextInfo", void 0), Q(this, "providers", {}), Q(this, "channelPolicy", void 0), Q(this, "adsActionDetection", void 0), Q(this, "adsTrackSerializer", void 0), Q(this, "initialized", !1), Q(this, "initializedTimeStamp", Date.now()), e)
|
|
3009
|
+
this.context = e, this.channelPolicy = new vn(this.context), this.adsActionDetection = new Li(this.context), this.adsTrackSerializer = new qt(this.context), this.contextInfo = this.context.getContextInfo();
|
|
2772
3010
|
else
|
|
2773
3011
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
2774
3012
|
}
|
|
2775
3013
|
getRequestContextData(e) {
|
|
2776
|
-
var
|
|
3014
|
+
var r, o;
|
|
3015
|
+
const {
|
|
3016
|
+
width: i,
|
|
3017
|
+
height: n
|
|
3018
|
+
} = this.context.getWindowInfo();
|
|
2777
3019
|
return {
|
|
2778
3020
|
report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
|
|
2779
3021
|
sessionId: this.contextInfo.sessionId,
|
|
@@ -2786,8 +3028,12 @@ class to {
|
|
|
2786
3028
|
sessionId: this.contextInfo.sessionId,
|
|
2787
3029
|
deviceId: this.contextInfo.deviceId,
|
|
2788
3030
|
adId: this.contextInfo.adId,
|
|
2789
|
-
deviceModel: (
|
|
2790
|
-
deviceBrand: (
|
|
3031
|
+
deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
|
|
3032
|
+
deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
|
|
3033
|
+
dimension: {
|
|
3034
|
+
width: i,
|
|
3035
|
+
height: n
|
|
3036
|
+
}
|
|
2791
3037
|
};
|
|
2792
3038
|
}
|
|
2793
3039
|
getRequestBizParams() {
|
|
@@ -2811,15 +3057,20 @@ class to {
|
|
|
2811
3057
|
for (const n of i)
|
|
2812
3058
|
switch (n.provider) {
|
|
2813
3059
|
case "ADSENSE": {
|
|
2814
|
-
const r = new
|
|
3060
|
+
const r = new _n(this.context, n.params);
|
|
2815
3061
|
await r.init(), this.providers.ADSENSE = r;
|
|
2816
3062
|
break;
|
|
2817
3063
|
}
|
|
2818
3064
|
case "OKSPIN": {
|
|
2819
|
-
const r = new
|
|
3065
|
+
const r = new Or(this.context, n.params);
|
|
2820
3066
|
await r.init(), this.providers.OKSPIN = r;
|
|
2821
3067
|
break;
|
|
2822
3068
|
}
|
|
3069
|
+
case "APPSROCKETS": {
|
|
3070
|
+
const r = new Nr(this.context, n.params);
|
|
3071
|
+
await r.init(), this.providers.APPSROCKETS = r;
|
|
3072
|
+
break;
|
|
3073
|
+
}
|
|
2823
3074
|
}
|
|
2824
3075
|
this.initialized = !0;
|
|
2825
3076
|
}
|
|
@@ -2827,7 +3078,7 @@ class to {
|
|
|
2827
3078
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
2828
3079
|
}
|
|
2829
3080
|
async adBreak(e) {
|
|
2830
|
-
var r, o, s, a, d, l, c,
|
|
3081
|
+
var r, o, s, a, d, l, c, h, u;
|
|
2831
3082
|
if (Date.now() - this.initializedTimeStamp < 3e3) {
|
|
2832
3083
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
2833
3084
|
breakType: e.type,
|
|
@@ -2857,7 +3108,7 @@ class to {
|
|
|
2857
3108
|
}
|
|
2858
3109
|
try {
|
|
2859
3110
|
const {
|
|
2860
|
-
data:
|
|
3111
|
+
data: f,
|
|
2861
3112
|
code: y
|
|
2862
3113
|
} = await this.context.httpClient.post("/api/ads/info", {
|
|
2863
3114
|
data: {
|
|
@@ -2877,8 +3128,8 @@ class to {
|
|
|
2877
3128
|
});
|
|
2878
3129
|
return;
|
|
2879
3130
|
} else {
|
|
2880
|
-
const
|
|
2881
|
-
if (
|
|
3131
|
+
const v = f == null ? void 0 : f.sort((w, j) => w.seq - j.seq);
|
|
3132
|
+
if (v.length === 0) {
|
|
2882
3133
|
(d = e.adBreakDone) == null || d.call(e, {
|
|
2883
3134
|
breakType: e.type,
|
|
2884
3135
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
@@ -2887,47 +3138,47 @@ class to {
|
|
|
2887
3138
|
});
|
|
2888
3139
|
return;
|
|
2889
3140
|
}
|
|
2890
|
-
let
|
|
2891
|
-
const
|
|
2892
|
-
for ((l = this.context.eventEmitter) == null || l.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0;
|
|
2893
|
-
const
|
|
2894
|
-
if (
|
|
2895
|
-
const [
|
|
2896
|
-
|
|
3141
|
+
let g = !0, p = null;
|
|
3142
|
+
const _ = new Ti(this.context);
|
|
3143
|
+
for ((l = this.context.eventEmitter) == null || l.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0; v.length > 0; ) {
|
|
3144
|
+
const w = v.shift(), j = this.providers[w.provider];
|
|
3145
|
+
if (j) {
|
|
3146
|
+
const [U, F] = await _.callAdBreakAndContinue(j, e, w);
|
|
3147
|
+
g = U, p = F;
|
|
2897
3148
|
} else
|
|
2898
|
-
|
|
3149
|
+
g = !0, p = {
|
|
2899
3150
|
breakType: e.type,
|
|
2900
3151
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
2901
3152
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2902
3153
|
breakStatus: "notReady"
|
|
2903
3154
|
};
|
|
2904
|
-
if (!
|
|
3155
|
+
if (!g)
|
|
2905
3156
|
break;
|
|
2906
3157
|
}
|
|
2907
|
-
|
|
3158
|
+
g && p && ((c = e.adBreakDone) == null || c.call(e, p));
|
|
2908
3159
|
}
|
|
2909
|
-
} catch (
|
|
2910
|
-
(
|
|
3160
|
+
} catch (f) {
|
|
3161
|
+
(h = e.adBreakDone) == null || h.call(e, {
|
|
2911
3162
|
breakType: e.type,
|
|
2912
3163
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2913
3164
|
breakStatus: "noAdPreloaded"
|
|
2914
3165
|
});
|
|
2915
3166
|
} finally {
|
|
2916
|
-
(
|
|
3167
|
+
(u = this.context.eventEmitter) == null || u.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
2917
3168
|
}
|
|
2918
3169
|
}
|
|
2919
3170
|
adUnit(e) {
|
|
2920
3171
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
2921
3172
|
}
|
|
2922
3173
|
}
|
|
2923
|
-
function
|
|
2924
|
-
return (e =
|
|
3174
|
+
function Je(t, e, i) {
|
|
3175
|
+
return (e = Mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2925
3176
|
}
|
|
2926
|
-
function
|
|
2927
|
-
var e =
|
|
3177
|
+
function Mr(t) {
|
|
3178
|
+
var e = Ur(t, "string");
|
|
2928
3179
|
return typeof e == "symbol" ? e : e + "";
|
|
2929
3180
|
}
|
|
2930
|
-
function
|
|
3181
|
+
function Ur(t, e) {
|
|
2931
3182
|
if (typeof t != "object" || !t)
|
|
2932
3183
|
return t;
|
|
2933
3184
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2939,9 +3190,9 @@ function Ir(t, e) {
|
|
|
2939
3190
|
}
|
|
2940
3191
|
return (e === "string" ? String : Number)(t);
|
|
2941
3192
|
}
|
|
2942
|
-
class
|
|
3193
|
+
class Br {
|
|
2943
3194
|
constructor(e) {
|
|
2944
|
-
|
|
3195
|
+
Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), this.context = e;
|
|
2945
3196
|
}
|
|
2946
3197
|
get paramsToTrack() {
|
|
2947
3198
|
var e, i;
|
|
@@ -2984,14 +3235,14 @@ class Tr {
|
|
|
2984
3235
|
});
|
|
2985
3236
|
}
|
|
2986
3237
|
}
|
|
2987
|
-
function
|
|
2988
|
-
return (e =
|
|
3238
|
+
function Ye(t, e, i) {
|
|
3239
|
+
return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2989
3240
|
}
|
|
2990
|
-
function
|
|
2991
|
-
var e =
|
|
3241
|
+
function jr(t) {
|
|
3242
|
+
var e = Fr(t, "string");
|
|
2992
3243
|
return typeof e == "symbol" ? e : e + "";
|
|
2993
3244
|
}
|
|
2994
|
-
function
|
|
3245
|
+
function Fr(t, e) {
|
|
2995
3246
|
if (typeof t != "object" || !t)
|
|
2996
3247
|
return t;
|
|
2997
3248
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3003,27 +3254,27 @@ function kr(t, e) {
|
|
|
3003
3254
|
}
|
|
3004
3255
|
return (e === "string" ? String : Number)(t);
|
|
3005
3256
|
}
|
|
3006
|
-
class
|
|
3257
|
+
class P extends Error {
|
|
3007
3258
|
constructor(e, i) {
|
|
3008
|
-
super(e.message),
|
|
3259
|
+
super(e.message), Ye(this, "name", void 0), Ye(this, "type", void 0), Ye(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
3009
3260
|
}
|
|
3010
3261
|
static from(e, i) {
|
|
3011
3262
|
switch (i) {
|
|
3012
3263
|
case "GOOGLE_IMA_ERROR":
|
|
3013
|
-
return new
|
|
3264
|
+
return new P(e, i);
|
|
3014
3265
|
case "JOLIBOX_IMA_ERROR":
|
|
3015
|
-
return new
|
|
3266
|
+
return new P(e, i);
|
|
3016
3267
|
}
|
|
3017
3268
|
}
|
|
3018
3269
|
}
|
|
3019
|
-
function
|
|
3020
|
-
return (e =
|
|
3270
|
+
function x(t, e, i) {
|
|
3271
|
+
return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3021
3272
|
}
|
|
3022
|
-
function
|
|
3023
|
-
var e =
|
|
3273
|
+
function Vr(t) {
|
|
3274
|
+
var e = zr(t, "string");
|
|
3024
3275
|
return typeof e == "symbol" ? e : e + "";
|
|
3025
3276
|
}
|
|
3026
|
-
function
|
|
3277
|
+
function zr(t, e) {
|
|
3027
3278
|
if (typeof t != "object" || !t)
|
|
3028
3279
|
return t;
|
|
3029
3280
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3035,33 +3286,33 @@ function Lr(t, e) {
|
|
|
3035
3286
|
}
|
|
3036
3287
|
return (e === "string" ? String : Number)(t);
|
|
3037
3288
|
}
|
|
3038
|
-
class
|
|
3289
|
+
class Gr {
|
|
3039
3290
|
constructor(e, i, n) {
|
|
3040
|
-
|
|
3041
|
-
var r, o, s, a, d, l, c, u, f,
|
|
3042
|
-
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (
|
|
3043
|
-
}),
|
|
3291
|
+
x(this, "adsLoader", void 0), x(this, "adDisplayContainer", void 0), x(this, "isAdPlaying", !1), x(this, "isContentFinished", !1), x(this, "videoContent", void 0), x(this, "adContainer", void 0), x(this, "adsManager", void 0), x(this, "intervalTimer", void 0), x(this, "completed", !1), x(this, "adTagUrl", void 0), x(this, "notifyRequestAd", void 0), x(this, "notifyLoaded", void 0), x(this, "notifyPlayingAd", void 0), x(this, "notifyCompleted", void 0), x(this, "notifyError", void 0), x(this, "destroy", () => {
|
|
3292
|
+
var r, o, s, a, d, l, c, h, u, f, y;
|
|
3293
|
+
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (y = this.adsManager) == null || y.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
|
|
3294
|
+
}), x(this, "requestAds", async (r, o) => {
|
|
3044
3295
|
var c;
|
|
3045
|
-
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (
|
|
3046
|
-
var
|
|
3047
|
-
return (
|
|
3296
|
+
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
|
|
3297
|
+
var u;
|
|
3298
|
+
return (u = r.onAdError) == null ? void 0 : u.call(r, P.from(h, "GOOGLE_IMA_ERROR"));
|
|
3048
3299
|
}, this.adsLoader = new window.google.ima.AdsLoader(this.adDisplayContainer), this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1), this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1);
|
|
3049
3300
|
const s = () => {
|
|
3050
|
-
var
|
|
3051
|
-
this.isAdPlaying || (this.isContentFinished = !0, (
|
|
3301
|
+
var h;
|
|
3302
|
+
this.isAdPlaying || (this.isContentFinished = !0, (h = this.adsLoader) == null || h.contentComplete());
|
|
3052
3303
|
};
|
|
3053
3304
|
this.videoContent.onended = s;
|
|
3054
3305
|
const a = new window.google.ima.AdsRequest();
|
|
3055
3306
|
let d = "";
|
|
3056
|
-
Object.keys(o.params).forEach((
|
|
3057
|
-
const
|
|
3058
|
-
d += `&${
|
|
3307
|
+
Object.keys(o.params).forEach((h) => {
|
|
3308
|
+
const u = window.encodeURIComponent(o.params[h]);
|
|
3309
|
+
d += `&${h}=${u}`;
|
|
3059
3310
|
});
|
|
3060
3311
|
const l = `${this.adTagUrl}${d}`;
|
|
3061
3312
|
a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (c = this.notifyRequestAd) == null || c.call(this);
|
|
3062
|
-
}),
|
|
3313
|
+
}), x(this, "createAdDisplayContainer", () => {
|
|
3063
3314
|
this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
|
|
3064
|
-
}),
|
|
3315
|
+
}), x(this, "playAds", () => {
|
|
3065
3316
|
var r, o;
|
|
3066
3317
|
this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
|
|
3067
3318
|
try {
|
|
@@ -3069,10 +3320,10 @@ class Nr {
|
|
|
3069
3320
|
} catch (s) {
|
|
3070
3321
|
console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
|
|
3071
3322
|
}
|
|
3072
|
-
}),
|
|
3323
|
+
}), x(this, "onAdsManagerLoaded", (r) => {
|
|
3073
3324
|
const o = new window.google.ima.AdsRenderingSettings();
|
|
3074
3325
|
o.restoreCustomPlaybackStateOnAdBreakComplete = !0, this.adsManager = r.getAdsManager(this.videoContent, o), this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent), r.type === "adsManagerLoaded" && this.playAds();
|
|
3075
|
-
}),
|
|
3326
|
+
}), x(this, "onAdEvent", (r) => {
|
|
3076
3327
|
var s, a, d, l;
|
|
3077
3328
|
const o = r.getAd();
|
|
3078
3329
|
switch (r.type) {
|
|
@@ -3090,19 +3341,19 @@ class Nr {
|
|
|
3090
3341
|
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
|
|
3091
3342
|
break;
|
|
3092
3343
|
}
|
|
3093
|
-
}),
|
|
3344
|
+
}), x(this, "onAdError", (r) => {
|
|
3094
3345
|
var o, s;
|
|
3095
3346
|
(o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
|
|
3096
|
-
}),
|
|
3347
|
+
}), x(this, "onContentPauseRequested", () => {
|
|
3097
3348
|
this.isAdPlaying = !0, this.videoContent.pause();
|
|
3098
|
-
}),
|
|
3349
|
+
}), x(this, "onContentResumeRequested", () => {
|
|
3099
3350
|
this.isAdPlaying = !1;
|
|
3100
3351
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3101
3352
|
}
|
|
3102
3353
|
}
|
|
3103
|
-
var
|
|
3104
|
-
const
|
|
3105
|
-
const t =
|
|
3354
|
+
var Ce = /* @__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))(Ce || {});
|
|
3355
|
+
const Kr = () => {
|
|
3356
|
+
const t = E(!1), e = E(!1), i = E(null), n = _t(), r = _t();
|
|
3106
3357
|
return {
|
|
3107
3358
|
visible: t,
|
|
3108
3359
|
canRetry: e,
|
|
@@ -3110,8 +3361,8 @@ const Pr = () => {
|
|
|
3110
3361
|
videoRef: n,
|
|
3111
3362
|
adContainerRef: r
|
|
3112
3363
|
};
|
|
3113
|
-
},
|
|
3114
|
-
${
|
|
3364
|
+
}, qr = le`
|
|
3365
|
+
${N}
|
|
3115
3366
|
position: fixed;
|
|
3116
3367
|
left: 0;
|
|
3117
3368
|
top: 0;
|
|
@@ -3126,7 +3377,7 @@ const Pr = () => {
|
|
|
3126
3377
|
}
|
|
3127
3378
|
|
|
3128
3379
|
.ads-wrapper {
|
|
3129
|
-
${
|
|
3380
|
+
${N}
|
|
3130
3381
|
position: relative;
|
|
3131
3382
|
width: 100%;
|
|
3132
3383
|
height: 100%;
|
|
@@ -3149,7 +3400,7 @@ const Pr = () => {
|
|
|
3149
3400
|
}
|
|
3150
3401
|
|
|
3151
3402
|
.retry-button {
|
|
3152
|
-
${
|
|
3403
|
+
${N}
|
|
3153
3404
|
position: absolute;
|
|
3154
3405
|
width: 100%;
|
|
3155
3406
|
height: 100%;
|
|
@@ -3159,7 +3410,7 @@ const Pr = () => {
|
|
|
3159
3410
|
cursor: pointer;
|
|
3160
3411
|
}
|
|
3161
3412
|
}
|
|
3162
|
-
`,
|
|
3413
|
+
`, Hr = (t) => {
|
|
3163
3414
|
let {
|
|
3164
3415
|
onReady: e,
|
|
3165
3416
|
state: i
|
|
@@ -3171,40 +3422,40 @@ const Pr = () => {
|
|
|
3171
3422
|
videoRef: s,
|
|
3172
3423
|
adContainerRef: a
|
|
3173
3424
|
} = i, d = () => {
|
|
3174
|
-
r.value && (r.value(),
|
|
3425
|
+
r.value && (r.value(), O(() => {
|
|
3175
3426
|
r.value = null, o.value = !1;
|
|
3176
3427
|
}));
|
|
3177
3428
|
};
|
|
3178
|
-
return
|
|
3429
|
+
return dt(() => {
|
|
3179
3430
|
e();
|
|
3180
|
-
}, [e]),
|
|
3181
|
-
className:
|
|
3431
|
+
}, [e]), b("div", {
|
|
3432
|
+
className: qr,
|
|
3182
3433
|
"data-visible": n.value,
|
|
3183
|
-
children:
|
|
3434
|
+
children: b("div", {
|
|
3184
3435
|
className: "ads-wrapper",
|
|
3185
|
-
children: [
|
|
3436
|
+
children: [b("video", {
|
|
3186
3437
|
ref: s,
|
|
3187
3438
|
width: "100%",
|
|
3188
3439
|
height: "100%"
|
|
3189
|
-
}),
|
|
3440
|
+
}), b("div", {
|
|
3190
3441
|
id: "ad-container",
|
|
3191
3442
|
ref: a
|
|
3192
|
-
}), o.value ?
|
|
3443
|
+
}), o.value ? b("div", {
|
|
3193
3444
|
className: "retry-button",
|
|
3194
3445
|
onClick: d,
|
|
3195
|
-
children:
|
|
3446
|
+
children: b("svg", {
|
|
3196
3447
|
width: "64",
|
|
3197
3448
|
height: "64",
|
|
3198
3449
|
viewBox: "0 0 64 64",
|
|
3199
3450
|
fill: "none",
|
|
3200
3451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3201
|
-
children: [
|
|
3452
|
+
children: [b("circle", {
|
|
3202
3453
|
cx: "32",
|
|
3203
3454
|
cy: "32",
|
|
3204
3455
|
r: "32",
|
|
3205
3456
|
fill: "#141416",
|
|
3206
3457
|
fillOpacity: "0.3"
|
|
3207
|
-
}),
|
|
3458
|
+
}), b("path", {
|
|
3208
3459
|
d: "M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",
|
|
3209
3460
|
fill: "white"
|
|
3210
3461
|
})]
|
|
@@ -3213,14 +3464,14 @@ const Pr = () => {
|
|
|
3213
3464
|
})
|
|
3214
3465
|
});
|
|
3215
3466
|
};
|
|
3216
|
-
function
|
|
3217
|
-
return (e =
|
|
3467
|
+
function X(t, e, i) {
|
|
3468
|
+
return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3218
3469
|
}
|
|
3219
|
-
function
|
|
3220
|
-
var e =
|
|
3470
|
+
function Wr(t) {
|
|
3471
|
+
var e = Jr(t, "string");
|
|
3221
3472
|
return typeof e == "symbol" ? e : e + "";
|
|
3222
3473
|
}
|
|
3223
|
-
function
|
|
3474
|
+
function Jr(t, e) {
|
|
3224
3475
|
if (typeof t != "object" || !t)
|
|
3225
3476
|
return t;
|
|
3226
3477
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3232,9 +3483,9 @@ function Ur(t, e) {
|
|
|
3232
3483
|
}
|
|
3233
3484
|
return (e === "string" ? String : Number)(t);
|
|
3234
3485
|
}
|
|
3235
|
-
class
|
|
3486
|
+
class Yr {
|
|
3236
3487
|
constructor(e) {
|
|
3237
|
-
|
|
3488
|
+
X(this, "name", "GOOGLE_IMA"), X(this, "context", void 0), X(this, "adsOverlay", null), X(this, "initialized", !1), X(this, "ima", null), X(this, "state", Kr()), X(this, "init", async (i) => {
|
|
3238
3489
|
if (this.initialized)
|
|
3239
3490
|
return;
|
|
3240
3491
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3250,19 +3501,19 @@ class jr {
|
|
|
3250
3501
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3251
3502
|
}
|
|
3252
3503
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3253
|
-
|
|
3504
|
+
te(b(Hr, {
|
|
3254
3505
|
state: this.state,
|
|
3255
3506
|
onReady: () => {
|
|
3256
|
-
this.ima = new
|
|
3507
|
+
this.ima = new Gr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3257
3508
|
}
|
|
3258
3509
|
}), this.adsOverlay);
|
|
3259
3510
|
}), this.initialized = !0;
|
|
3260
|
-
}),
|
|
3261
|
-
this.adsOverlay && (
|
|
3262
|
-
}),
|
|
3511
|
+
}), X(this, "destroy", () => {
|
|
3512
|
+
this.adsOverlay && (te(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
3513
|
+
}), X(this, "requestAd", (i, n) => {
|
|
3263
3514
|
var a;
|
|
3264
3515
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3265
|
-
const d =
|
|
3516
|
+
const d = P.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3266
3517
|
(a = i.onAdError) == null || a.call(i, d);
|
|
3267
3518
|
return;
|
|
3268
3519
|
}
|
|
@@ -3272,9 +3523,9 @@ class jr {
|
|
|
3272
3523
|
}, o = (d) => {
|
|
3273
3524
|
let l = !1;
|
|
3274
3525
|
switch (d.raw.getErrorCode()) {
|
|
3275
|
-
case
|
|
3276
|
-
case
|
|
3277
|
-
case
|
|
3526
|
+
case Ce.AUTOPLAY_DISALLOWED:
|
|
3527
|
+
case Ce.VIDEO_PLAY_ERROR:
|
|
3528
|
+
case Ce.ADS_REQUEST_NETWORK_ERROR: {
|
|
3278
3529
|
l = !0;
|
|
3279
3530
|
break;
|
|
3280
3531
|
}
|
|
@@ -3289,7 +3540,7 @@ class jr {
|
|
|
3289
3540
|
const c = () => {
|
|
3290
3541
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3291
3542
|
};
|
|
3292
|
-
|
|
3543
|
+
O(() => {
|
|
3293
3544
|
this.state.canRetry.value = !0, this.state.retry.value = c;
|
|
3294
3545
|
});
|
|
3295
3546
|
}
|
|
@@ -3298,14 +3549,14 @@ class jr {
|
|
|
3298
3549
|
}), this.context = e;
|
|
3299
3550
|
}
|
|
3300
3551
|
}
|
|
3301
|
-
function
|
|
3302
|
-
return (e =
|
|
3552
|
+
function K(t, e, i) {
|
|
3553
|
+
return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3303
3554
|
}
|
|
3304
|
-
function
|
|
3305
|
-
var e =
|
|
3555
|
+
function Xr(t) {
|
|
3556
|
+
var e = Qr(t, "string");
|
|
3306
3557
|
return typeof e == "symbol" ? e : e + "";
|
|
3307
3558
|
}
|
|
3308
|
-
function
|
|
3559
|
+
function Qr(t, e) {
|
|
3309
3560
|
if (typeof t != "object" || !t)
|
|
3310
3561
|
return t;
|
|
3311
3562
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3317,24 +3568,24 @@ function Br(t, e) {
|
|
|
3317
3568
|
}
|
|
3318
3569
|
return (e === "string" ? String : Number)(t);
|
|
3319
3570
|
}
|
|
3320
|
-
class
|
|
3571
|
+
class Zr {
|
|
3321
3572
|
constructor(e) {
|
|
3322
|
-
|
|
3573
|
+
K(this, "name", "OKSPIN"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "state", pi()), K(this, "init", async (i) => {
|
|
3323
3574
|
var n;
|
|
3324
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"),
|
|
3575
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(b(yi, {
|
|
3325
3576
|
state: this.state
|
|
3326
3577
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3327
|
-
}),
|
|
3578
|
+
}), K(this, "destroy", () => {
|
|
3328
3579
|
var i;
|
|
3329
|
-
this.adsOverlay && (
|
|
3330
|
-
}),
|
|
3580
|
+
this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
3581
|
+
}), K(this, "requestAd", (i, n) => {
|
|
3331
3582
|
var s, a, d, l;
|
|
3332
3583
|
if (!this.adsOverlay || !this.initialized) {
|
|
3333
|
-
(s = i.onAdError) == null || s.call(i,
|
|
3584
|
+
(s = i.onAdError) == null || s.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3334
3585
|
return;
|
|
3335
3586
|
}
|
|
3336
3587
|
if (this.adsIsShowing) {
|
|
3337
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3588
|
+
(a = i.onAdError) == null || a.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3338
3589
|
return;
|
|
3339
3590
|
}
|
|
3340
3591
|
(d = i.onAdRequested) == null || d.call(i);
|
|
@@ -3345,21 +3596,21 @@ class Vr {
|
|
|
3345
3596
|
var c;
|
|
3346
3597
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3347
3598
|
};
|
|
3348
|
-
this.adsIsShowing = !0,
|
|
3599
|
+
this.adsIsShowing = !0, O(() => {
|
|
3349
3600
|
var c;
|
|
3350
3601
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (c = n.params.countdown) != null ? c : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
|
|
3351
3602
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
3352
3603
|
}), this.context = e;
|
|
3353
3604
|
}
|
|
3354
3605
|
}
|
|
3355
|
-
function
|
|
3356
|
-
return (e =
|
|
3606
|
+
function z(t, e, i) {
|
|
3607
|
+
return (e = eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3357
3608
|
}
|
|
3358
|
-
function
|
|
3359
|
-
var e =
|
|
3609
|
+
function eo(t) {
|
|
3610
|
+
var e = to(t, "string");
|
|
3360
3611
|
return typeof e == "symbol" ? e : e + "";
|
|
3361
3612
|
}
|
|
3362
|
-
function
|
|
3613
|
+
function to(t, e) {
|
|
3363
3614
|
if (typeof t != "object" || !t)
|
|
3364
3615
|
return t;
|
|
3365
3616
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3373,13 +3624,80 @@ function Gr(t, e) {
|
|
|
3373
3624
|
}
|
|
3374
3625
|
class io {
|
|
3375
3626
|
constructor(e) {
|
|
3376
|
-
|
|
3377
|
-
|
|
3627
|
+
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", _i()), z(this, "processUrl", (i) => {
|
|
3628
|
+
var s;
|
|
3629
|
+
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
3630
|
+
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();
|
|
3631
|
+
}), z(this, "init", async (i) => {
|
|
3632
|
+
var n;
|
|
3633
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(b(gi, {
|
|
3634
|
+
state: this.state
|
|
3635
|
+
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3636
|
+
}), z(this, "destroy", () => {
|
|
3637
|
+
var i;
|
|
3638
|
+
this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
3639
|
+
}), z(this, "requestAd", (i, n) => {
|
|
3640
|
+
var d, l, c, h;
|
|
3641
|
+
if (!this.adsOverlay || !this.initialized) {
|
|
3642
|
+
(d = i.onAdError) == null || d.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3643
|
+
return;
|
|
3644
|
+
}
|
|
3645
|
+
if (this.adsIsShowing) {
|
|
3646
|
+
(l = i.onAdError) == null || l.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3647
|
+
return;
|
|
3648
|
+
}
|
|
3649
|
+
(c = i.onAdRequested) == null || c.call(i);
|
|
3650
|
+
const r = () => {
|
|
3651
|
+
var u;
|
|
3652
|
+
this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
|
|
3653
|
+
}, o = () => {
|
|
3654
|
+
var u;
|
|
3655
|
+
(u = i.onAdLoaded) == null || u.call(i, void 0);
|
|
3656
|
+
}, s = (u) => {
|
|
3657
|
+
var f, y;
|
|
3658
|
+
(y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
|
|
3659
|
+
}, a = () => {
|
|
3660
|
+
var u;
|
|
3661
|
+
(u = i.onAdError) == null || u.call(i, P.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
3662
|
+
};
|
|
3663
|
+
this.adsIsShowing = !0, O(() => {
|
|
3664
|
+
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
|
|
3665
|
+
}), (h = i.onAdPlaying) == null || h.call(i, void 0);
|
|
3666
|
+
}), this.context = e;
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3669
|
+
function ye(t, e, i) {
|
|
3670
|
+
return (e = no(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3671
|
+
}
|
|
3672
|
+
function no(t) {
|
|
3673
|
+
var e = ro(t, "string");
|
|
3674
|
+
return typeof e == "symbol" ? e : e + "";
|
|
3675
|
+
}
|
|
3676
|
+
function ro(t, e) {
|
|
3677
|
+
if (typeof t != "object" || !t)
|
|
3678
|
+
return t;
|
|
3679
|
+
var i = t[Symbol.toPrimitive];
|
|
3680
|
+
if (i !== void 0) {
|
|
3681
|
+
var n = i.call(t, e);
|
|
3682
|
+
if (typeof n != "object")
|
|
3683
|
+
return n;
|
|
3684
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3685
|
+
}
|
|
3686
|
+
return (e === "string" ? String : Number)(t);
|
|
3687
|
+
}
|
|
3688
|
+
class _o {
|
|
3689
|
+
constructor(e) {
|
|
3690
|
+
if (ye(this, "context", void 0), ye(this, "contextInfo", void 0), ye(this, "providers", {}), ye(this, "adsTrackSerializer", void 0), ye(this, "initialized", !1), e)
|
|
3691
|
+
this.context = e, this.adsTrackSerializer = new qt(e), this.contextInfo = this.context.getContextInfo();
|
|
3378
3692
|
else
|
|
3379
3693
|
throw new Error("JoliboxAdsForVideo requires a configuration object");
|
|
3380
3694
|
}
|
|
3381
3695
|
getRequestContextData(e) {
|
|
3382
|
-
var
|
|
3696
|
+
var r, o;
|
|
3697
|
+
const {
|
|
3698
|
+
width: i,
|
|
3699
|
+
height: n
|
|
3700
|
+
} = this.context.getWindowInfo();
|
|
3383
3701
|
return {
|
|
3384
3702
|
report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
|
|
3385
3703
|
sessionId: this.contextInfo.sessionId,
|
|
@@ -3392,8 +3710,12 @@ class io {
|
|
|
3392
3710
|
sessionId: this.contextInfo.sessionId,
|
|
3393
3711
|
deviceId: this.contextInfo.deviceId,
|
|
3394
3712
|
adId: this.contextInfo.adId,
|
|
3395
|
-
deviceModel: (
|
|
3396
|
-
deviceBrand: (
|
|
3713
|
+
deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
|
|
3714
|
+
deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
|
|
3715
|
+
dimension: {
|
|
3716
|
+
width: i,
|
|
3717
|
+
height: n
|
|
3718
|
+
}
|
|
3397
3719
|
};
|
|
3398
3720
|
}
|
|
3399
3721
|
getRequestBizParams() {
|
|
@@ -3416,15 +3738,20 @@ class io {
|
|
|
3416
3738
|
for (const i of e)
|
|
3417
3739
|
switch (i.provider) {
|
|
3418
3740
|
case "GOOGLE_IMA": {
|
|
3419
|
-
const n = new
|
|
3741
|
+
const n = new Yr(this.context);
|
|
3420
3742
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
3421
3743
|
break;
|
|
3422
3744
|
}
|
|
3423
3745
|
case "OKSPIN": {
|
|
3424
|
-
const n = new
|
|
3746
|
+
const n = new Zr(this.context);
|
|
3425
3747
|
await n.init(i), this.providers.OKSPIN = n;
|
|
3426
3748
|
break;
|
|
3427
3749
|
}
|
|
3750
|
+
case "APPSROCKETS": {
|
|
3751
|
+
const n = new io(this.context);
|
|
3752
|
+
await n.init(i), this.providers.APPSROCKETS = n;
|
|
3753
|
+
break;
|
|
3754
|
+
}
|
|
3428
3755
|
}
|
|
3429
3756
|
this.initialized = !0;
|
|
3430
3757
|
}
|
|
@@ -3440,7 +3767,7 @@ class io {
|
|
|
3440
3767
|
async requestAd(e) {
|
|
3441
3768
|
var i, n, r, o, s, a, d;
|
|
3442
3769
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
3443
|
-
const l =
|
|
3770
|
+
const l = P.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
3444
3771
|
(n = e.onAdError) == null || n.call(e, l);
|
|
3445
3772
|
return;
|
|
3446
3773
|
}
|
|
@@ -3457,46 +3784,46 @@ class io {
|
|
|
3457
3784
|
}
|
|
3458
3785
|
});
|
|
3459
3786
|
if (c !== "SUCCESS") {
|
|
3460
|
-
const
|
|
3461
|
-
(r = e.onAdError) == null || r.call(e,
|
|
3787
|
+
const h = P.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
3788
|
+
(r = e.onAdError) == null || r.call(e, h);
|
|
3462
3789
|
return;
|
|
3463
3790
|
} else {
|
|
3464
|
-
const
|
|
3465
|
-
if (
|
|
3466
|
-
const
|
|
3467
|
-
(o = e.onAdError) == null || o.call(e,
|
|
3791
|
+
const h = l == null ? void 0 : l.sort((v, g) => v.seq - g.seq);
|
|
3792
|
+
if (h.length === 0) {
|
|
3793
|
+
const v = P.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
3794
|
+
(o = e.onAdError) == null || o.call(e, v);
|
|
3468
3795
|
return;
|
|
3469
3796
|
}
|
|
3470
|
-
let
|
|
3471
|
-
const y = new
|
|
3472
|
-
for (;
|
|
3473
|
-
const
|
|
3474
|
-
if (
|
|
3475
|
-
const [
|
|
3476
|
-
|
|
3797
|
+
let u = !0, f = null;
|
|
3798
|
+
const y = new Br(this.context);
|
|
3799
|
+
for (; h.length > 0; ) {
|
|
3800
|
+
const v = h.shift(), g = this.providers[v.provider];
|
|
3801
|
+
if (g) {
|
|
3802
|
+
const [p, _] = await y.callAdRequestAndContinue(g, e, v);
|
|
3803
|
+
u = p, f = _;
|
|
3477
3804
|
} else
|
|
3478
|
-
|
|
3479
|
-
if (!
|
|
3805
|
+
u = !0, f = P.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
3806
|
+
if (!u)
|
|
3480
3807
|
break;
|
|
3481
3808
|
}
|
|
3482
|
-
|
|
3809
|
+
u && f && ((s = e.onAdError) == null || s.call(e, f));
|
|
3483
3810
|
}
|
|
3484
3811
|
} catch (l) {
|
|
3485
|
-
const c =
|
|
3812
|
+
const c = P.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
3486
3813
|
(a = e.onAdError) == null || a.call(e, c);
|
|
3487
3814
|
} finally {
|
|
3488
3815
|
(d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
|
|
3489
3816
|
}
|
|
3490
3817
|
}
|
|
3491
3818
|
}
|
|
3492
|
-
function
|
|
3493
|
-
return (e =
|
|
3819
|
+
function re(t, e, i) {
|
|
3820
|
+
return (e = oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3494
3821
|
}
|
|
3495
|
-
function
|
|
3496
|
-
var e =
|
|
3822
|
+
function oo(t) {
|
|
3823
|
+
var e = so(t, "string");
|
|
3497
3824
|
return typeof e == "symbol" ? e : e + "";
|
|
3498
3825
|
}
|
|
3499
|
-
function
|
|
3826
|
+
function so(t, e) {
|
|
3500
3827
|
if (typeof t != "object" || !t)
|
|
3501
3828
|
return t;
|
|
3502
3829
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3508,18 +3835,18 @@ function qr(t, e) {
|
|
|
3508
3835
|
}
|
|
3509
3836
|
return (e === "string" ? String : Number)(t);
|
|
3510
3837
|
}
|
|
3511
|
-
class
|
|
3838
|
+
class go extends Error {
|
|
3512
3839
|
constructor(e) {
|
|
3513
|
-
super(e),
|
|
3840
|
+
super(e), re(this, "name", void 0), re(this, "message", void 0), re(this, "errMsg", void 0), re(this, "code", void 0), re(this, "data", void 0), re(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
3514
3841
|
}
|
|
3515
3842
|
}
|
|
3516
3843
|
export {
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3844
|
+
P as AFVWrappedError,
|
|
3845
|
+
_n as GoogleAdSenseProvider,
|
|
3846
|
+
Yr as GoogleIMAProvider,
|
|
3847
|
+
yo as JoliboxAdsForGame,
|
|
3848
|
+
_o as JoliboxAdsForVideo,
|
|
3849
|
+
Or as OKSpinForGameProvider,
|
|
3850
|
+
Zr as OKSpinForVideoProvider,
|
|
3851
|
+
go as ResponseError
|
|
3525
3852
|
};
|