@jolibox/ads 1.1.26 → 1.1.28
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 +1223 -926
- package/dist/type/base.d.ts +7 -0
- package/package.json +19 -19
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var ht = Object.getOwnPropertySymbols;
|
|
2
|
+
var _i = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var ft = (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
|
+
_i.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && ht)
|
|
8
|
+
for (var n of ht(t))
|
|
9
|
+
e.indexOf(n) < 0 && gi.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 se, Component as wi, isValidElement as bi } from "preact";
|
|
13
|
+
import { useRef as Ai, useLayoutEffect as mi, useEffect as Ue, useMemo as Ei, useState as $t, useCallback as Si, render as te, createRef as vt } from "preact/compat";
|
|
14
|
+
function V(t, e, i) {
|
|
15
|
+
return (e = ki(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 ki(t) {
|
|
18
|
+
var e = xi(t, "string");
|
|
19
19
|
return typeof e == "symbol" ? e : e + "";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function xi(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 Ri {
|
|
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 = Ii(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 Ii(t) {
|
|
163
|
+
var e = Oi(t, "string");
|
|
164
164
|
return typeof e == "symbol" ? e : e + "";
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Oi(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 Ti {
|
|
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 Ut = Object.defineProperty, Di = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable, yt = (t, e, i) => e in t ? Ut(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, Pi = (t, e) => {
|
|
201
201
|
for (var i in e || (e = {}))
|
|
202
|
-
|
|
203
|
-
if (
|
|
204
|
-
for (var i of
|
|
205
|
-
|
|
202
|
+
Ci.call(e, i) && yt(t, i, e[i]);
|
|
203
|
+
if (pt)
|
|
204
|
+
for (var i of pt(e))
|
|
205
|
+
Ni.call(e, i) && yt(t, i, e[i]);
|
|
206
206
|
return t;
|
|
207
|
-
},
|
|
207
|
+
}, Mi = (t, e) => Di(t, Li(e)), $i = (t, e) => {
|
|
208
208
|
for (var i in e)
|
|
209
|
-
|
|
209
|
+
Ut(t, i, {
|
|
210
210
|
get: e[i],
|
|
211
211
|
enumerable: !0
|
|
212
212
|
});
|
|
213
|
-
},
|
|
213
|
+
}, Bt = (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
|
+
}, Ui = (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 Bi(t) {
|
|
263
263
|
return new Promise((e) => {
|
|
264
264
|
setTimeout(() => {
|
|
265
265
|
e();
|
|
266
266
|
}, t);
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function ji(t) {
|
|
270
270
|
return typeof t == "string";
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Fi(t) {
|
|
273
273
|
return typeof t == "undefined";
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
275
|
+
function Vi(t) {
|
|
276
|
+
return Fi(t) || t === null;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function zi(t) {
|
|
279
279
|
return typeof t == "function";
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function jt(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 Gi = ((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))(Gi || {});
|
|
290
|
+
function he(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 Ki = {
|
|
297
|
+
log: he("log"),
|
|
298
|
+
warn: he("warn"),
|
|
299
|
+
info: he("info"),
|
|
300
|
+
error: he("error"),
|
|
301
|
+
debug: he("debug")
|
|
302
302
|
};
|
|
303
303
|
Object.assign(globalThis, {
|
|
304
|
-
logger:
|
|
304
|
+
logger: Ki
|
|
305
305
|
});
|
|
306
|
-
var
|
|
307
|
-
globalThis[
|
|
308
|
-
var
|
|
309
|
-
function
|
|
306
|
+
var _t = Symbol.for("Jolibox.canIUseMap"), qi = {};
|
|
307
|
+
globalThis[_t] || (globalThis[_t] = qi);
|
|
308
|
+
var Ft = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Ft || {}), Vt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Vt || {}), zt = ((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))(zt || {}), gt = ["name", "params"], Hi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Wi = ["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 Ji(t) {
|
|
319
|
+
let e = t.location ? Re(t.location, gt) : null, i = t.target ? Re(t.target, gt) : null;
|
|
320
|
+
return Re(Mi(Pi({}, t), {
|
|
321
321
|
location: e,
|
|
322
322
|
target: i
|
|
323
|
-
}),
|
|
323
|
+
}), Hi);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
let e = t.events.map((n) =>
|
|
325
|
+
function Yi(t) {
|
|
326
|
+
let e = t.events.map((n) => Ji(n)), i = Re(t.device, Wi);
|
|
327
327
|
return [t.protocolVersion, e, i, t.project];
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Xi() {
|
|
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
|
+
Xi();
|
|
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, Qi = 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
|
+
}, Zi = 0, fe = class {
|
|
425
425
|
constructor(e) {
|
|
426
|
-
this.value = e, this.id =
|
|
426
|
+
this.value = e, this.id = Zi++;
|
|
427
427
|
}
|
|
428
|
-
},
|
|
428
|
+
}, ge = 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 fe && (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 fe(e);
|
|
445
|
+
return this._listeners ? this._listeners instanceof fe ? 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 fe)
|
|
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 fe ? 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
|
+
}, en = 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 ge(), 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 Qi(), 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
|
+
$i(Ze, {
|
|
523
|
+
None: () => tn,
|
|
524
|
+
filter: () => rn,
|
|
525
|
+
once: () => Gt,
|
|
526
|
+
toPromise: () => nn
|
|
527
527
|
});
|
|
528
|
-
var
|
|
528
|
+
var tn = () => (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 nn(t) {
|
|
532
|
+
return new Promise((e) => Gt(t)(e));
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Gt(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 rn(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 ge(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"), on = () => {
|
|
557
|
+
let t = new en();
|
|
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
|
+
on();
|
|
566
|
+
function sn(t, e) {
|
|
567
567
|
let i = Math.min(t.length, e.length);
|
|
568
568
|
for (let n = 0; n < i; n++)
|
|
569
|
-
|
|
569
|
+
an(t[n], e[n]);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
if (
|
|
571
|
+
function an(t, e) {
|
|
572
|
+
if (ji(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 (zi(e)) {
|
|
576
576
|
try {
|
|
577
577
|
if (t instanceof e)
|
|
578
578
|
return;
|
|
579
579
|
} catch (i) {
|
|
580
580
|
}
|
|
581
|
-
if (
|
|
581
|
+
if (!Vi(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 ge(), 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 sn(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 = Bt([jt], et);
|
|
622
|
+
var wt = class {
|
|
623
623
|
constructor() {
|
|
624
|
-
this._onWillExecuteCommand = new
|
|
624
|
+
this._onWillExecuteCommand = new ge(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ge(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new et(), this._starActivation = null;
|
|
625
625
|
}
|
|
626
626
|
_activateStar() {
|
|
627
|
-
return this._starActivation || (this._starActivation =
|
|
627
|
+
return this._starActivation || (this._starActivation = Bi(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 Ui(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
|
+
wt = Bt([jt], wt);
|
|
680
|
+
function Ge(t, e, i) {
|
|
681
|
+
return (e = dn(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 dn(t) {
|
|
684
|
+
var e = ln(t, "string");
|
|
685
685
|
return typeof e == "symbol" ? e : e + "";
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function ln(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 Kt {
|
|
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 : zt.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: Ft.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: Vt.WebSDK
|
|
744
744
|
};
|
|
745
|
-
return
|
|
745
|
+
return Yi(r);
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
return (e =
|
|
748
|
+
function ke(t, e, i) {
|
|
749
|
+
return (e = cn(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 cn(t) {
|
|
752
|
+
var e = un(t, "string");
|
|
753
753
|
return typeof e == "symbol" ? e : e + "";
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function un(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 hn {
|
|
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 = fn(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 fn(t) {
|
|
797
|
+
var e = vn(t, "string");
|
|
798
798
|
return typeof e == "symbol" ? e : e + "";
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function vn(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 pn {
|
|
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 = ft(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((P) => {
|
|
864
|
+
if (P.type === "attributes" && P.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 yn(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 _n(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 gn = /* @__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(_n(this));
|
|
914
914
|
var r = this.tags[this.tags.length - 1];
|
|
915
915
|
if (this.isSpeedy) {
|
|
916
|
-
var o =
|
|
916
|
+
var o = yn(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-", qt = "comm", dt = "rule", lt = "decl", wn = "@import", Ht = "@keyframes", bn = "@layer", An = Math.abs, Be = String.fromCharCode, mn = Object.assign;
|
|
931
|
+
function En(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 Wt(t) {
|
|
935
935
|
return t.trim();
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function Sn(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 we(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 ct(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 kn(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, Jt = 0, $ = 0, I = 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 ve(t, e) {
|
|
969
|
+
return mn(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
970
970
|
}
|
|
971
|
-
function
|
|
972
|
-
return
|
|
971
|
+
function xn() {
|
|
972
|
+
return I;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
974
|
+
function Rn() {
|
|
975
|
+
return I = $ > 0 ? D(de, --$) : 0, ae--, I === 10 && (ae = 1, je--), I;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
return
|
|
977
|
+
function j() {
|
|
978
|
+
return I = $ < Jt ? D(de, $++) : 0, ae++, I === 10 && (ae = 1, je++), I;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
981
|
-
return
|
|
980
|
+
function H() {
|
|
981
|
+
return D(de, $);
|
|
982
982
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
983
|
+
function Ie() {
|
|
984
|
+
return $;
|
|
985
985
|
}
|
|
986
|
-
function
|
|
987
|
-
return
|
|
986
|
+
function Ae(t, e) {
|
|
987
|
+
return we(de, t, e);
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function be(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 Yt(t) {
|
|
1022
|
+
return je = ae = 1, Jt = q(de = t), $ = 0, [];
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return
|
|
1024
|
+
function Xt(t) {
|
|
1025
|
+
return de = "", t;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1027
|
+
function Oe(t) {
|
|
1028
|
+
return Wt(Ae($ - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
for (; (
|
|
1032
|
-
|
|
1033
|
-
return
|
|
1030
|
+
function In(t) {
|
|
1031
|
+
for (; (I = H()) && I < 33; )
|
|
1032
|
+
j();
|
|
1033
|
+
return be(t) > 2 || be(I) > 3 ? "" : " ";
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1036
|
-
for (; --e &&
|
|
1035
|
+
function On(t, e) {
|
|
1036
|
+
for (; --e && j() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
|
|
1037
1037
|
;
|
|
1038
|
-
return
|
|
1038
|
+
return Ae(t, Ie() + (e < 6 && H() == 32 && j() == 32));
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
for (;
|
|
1042
|
-
switch (
|
|
1040
|
+
function it(t) {
|
|
1041
|
+
for (; j(); )
|
|
1042
|
+
switch (I) {
|
|
1043
1043
|
case t:
|
|
1044
|
-
return
|
|
1044
|
+
return $;
|
|
1045
1045
|
case 34:
|
|
1046
1046
|
case 39:
|
|
1047
|
-
t !== 34 && t !== 39 &&
|
|
1047
|
+
t !== 34 && t !== 39 && it(I);
|
|
1048
1048
|
break;
|
|
1049
1049
|
case 40:
|
|
1050
|
-
t === 41 &&
|
|
1050
|
+
t === 41 && it(t);
|
|
1051
1051
|
break;
|
|
1052
1052
|
case 92:
|
|
1053
|
-
|
|
1053
|
+
j();
|
|
1054
1054
|
break;
|
|
1055
1055
|
}
|
|
1056
|
-
return
|
|
1056
|
+
return $;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
for (;
|
|
1060
|
-
if (t +
|
|
1058
|
+
function Tn(t, e) {
|
|
1059
|
+
for (; j() && t + I !== 57; )
|
|
1060
|
+
if (t + I === 84 && H() === 47)
|
|
1061
1061
|
break;
|
|
1062
|
-
return "/*" +
|
|
1062
|
+
return "/*" + Ae(e, $ - 1) + "*" + Be(t === 47 ? t : j());
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
for (; !
|
|
1066
|
-
|
|
1067
|
-
return
|
|
1064
|
+
function Dn(t) {
|
|
1065
|
+
for (; !be(H()); )
|
|
1066
|
+
j();
|
|
1067
|
+
return Ae(t, $);
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return
|
|
1069
|
+
function Ln(t) {
|
|
1070
|
+
return Xt(Te("", null, null, null, [""], t = Yt(t), 0, [0], t));
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1073
|
-
for (var l = 0, c = 0,
|
|
1074
|
-
switch (y =
|
|
1072
|
+
function Te(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 = "", P = r, U = o, F = n, k = w; g; )
|
|
1074
|
+
switch (y = _, _ = j()) {
|
|
1075
1075
|
case 40:
|
|
1076
|
-
if (y != 108 &&
|
|
1077
|
-
|
|
1076
|
+
if (y != 108 && D(k, h - 1) == 58) {
|
|
1077
|
+
tt(k += m(Oe(_), "&", "&\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 += Oe(_);
|
|
1084
1084
|
break;
|
|
1085
1085
|
case 9:
|
|
1086
1086
|
case 10:
|
|
1087
1087
|
case 13:
|
|
1088
1088
|
case 32:
|
|
1089
|
-
|
|
1089
|
+
k += In(y);
|
|
1090
1090
|
break;
|
|
1091
1091
|
case 92:
|
|
1092
|
-
|
|
1092
|
+
k += On(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(Cn(Tn(j(), 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 ? At(k + ";", n, i, h - 1) : At(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 = bt(k, e, i, l, c, r, a, w, P = [], U = [], h), o), _ === 123)
|
|
1120
1120
|
if (c === 0)
|
|
1121
|
-
|
|
1121
|
+
Te(k, e, F, F, P, 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
|
+
Te(t, F, F, n && xe(bt(t, F, F, 0, 0, r, a, w, r, P = [], h), U), r, U, h, a, n ? P : U);
|
|
1129
1129
|
break;
|
|
1130
1130
|
default:
|
|
1131
|
-
|
|
1131
|
+
Te(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 && Rn() == 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 += Oe(j())), u = H(), c = h = q(w = k += Dn(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 bt(t, e, i, n, r, o, s, a, d, l, c) {
|
|
1162
|
+
for (var h = r - 1, u = r === 0 ? o : [""], f = ct(u), y = 0, v = 0, g = 0; y < n; ++y)
|
|
1163
|
+
for (var p = 0, _ = we(t, h + 1, h = An(v = s[y])), w = t; p < f; ++p)
|
|
1164
|
+
(w = Wt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = w);
|
|
1165
|
+
return Fe(t, e, i, r === 0 ? dt : a, d, l, c);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return
|
|
1167
|
+
function Cn(t, e, i) {
|
|
1168
|
+
return Fe(t, e, i, qt, Be(xn()), we(t, 2, -2), 0);
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
return
|
|
1170
|
+
function At(t, e, i, n) {
|
|
1171
|
+
return Fe(t, e, i, lt, we(t, 0, n), we(t, n + 1, -1), n);
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
for (var i = "", n =
|
|
1173
|
+
function oe(t, e) {
|
|
1174
|
+
for (var i = "", n = ct(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 Nn(t, e, i, n) {
|
|
1179
1179
|
switch (t.type) {
|
|
1180
|
-
case
|
|
1180
|
+
case bn:
|
|
1181
1181
|
if (t.children.length)
|
|
1182
1182
|
break;
|
|
1183
|
-
case
|
|
1184
|
-
case
|
|
1183
|
+
case wn:
|
|
1184
|
+
case lt:
|
|
1185
1185
|
return t.return = t.return || t.value;
|
|
1186
|
-
case
|
|
1186
|
+
case qt:
|
|
1187
1187
|
return "";
|
|
1188
|
-
case
|
|
1189
|
-
return t.return = t.value + "{" +
|
|
1190
|
-
case
|
|
1188
|
+
case Ht:
|
|
1189
|
+
return t.return = t.value + "{" + oe(t.children, n) + "}";
|
|
1190
|
+
case dt:
|
|
1191
1191
|
t.value = t.props.join(",");
|
|
1192
1192
|
}
|
|
1193
|
-
return
|
|
1193
|
+
return q(i = oe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
var e =
|
|
1195
|
+
function Pn(t) {
|
|
1196
|
+
var e = ct(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 Mn(t) {
|
|
1204
1204
|
return function(e) {
|
|
1205
1205
|
e.root || (e = e.return) && t(e);
|
|
1206
1206
|
};
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function $n(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 Un = function(e, i, n) {
|
|
1215
|
+
for (var r = 0, o = 0; r = o, o = H(), r === 38 && o === 12 && (i[n] = 1), !be(o); )
|
|
1216
|
+
j();
|
|
1217
|
+
return Ae(e, $);
|
|
1218
|
+
}, Bn = function(e, i) {
|
|
1219
1219
|
var n = -1, r = 44;
|
|
1220
1220
|
do
|
|
1221
|
-
switch (
|
|
1221
|
+
switch (be(r)) {
|
|
1222
1222
|
case 0:
|
|
1223
|
-
r === 38 &&
|
|
1223
|
+
r === 38 && H() === 12 && (i[n] = 1), e[n] += Un($ - 1, i, n);
|
|
1224
1224
|
break;
|
|
1225
1225
|
case 2:
|
|
1226
|
-
e[n] +=
|
|
1226
|
+
e[n] += Oe(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 = j());
|
|
1237
1237
|
return e;
|
|
1238
|
-
},
|
|
1239
|
-
return
|
|
1240
|
-
},
|
|
1238
|
+
}, jn = function(e, i) {
|
|
1239
|
+
return Xt(Bn(Yt(e), i));
|
|
1240
|
+
}, mt = /* @__PURE__ */ new WeakMap(), Fn = 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 && !mt.get(n)) && !r) {
|
|
1248
|
+
mt.set(e, !0);
|
|
1249
|
+
for (var o = [], s = jn(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
|
+
}, Vn = 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 Qt(t, e) {
|
|
1263
|
+
switch (En(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") ? Qt(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 zn = 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 lt:
|
|
1380
|
+
e.return = Qt(e.value, e.length);
|
|
1381
1381
|
break;
|
|
1382
|
-
case
|
|
1383
|
-
return
|
|
1384
|
-
value: m(e.value, "@", "@" +
|
|
1382
|
+
case Ht:
|
|
1383
|
+
return oe([ve(e, {
|
|
1384
|
+
value: m(e.value, "@", "@" + A)
|
|
1385
1385
|
})], r);
|
|
1386
|
-
case
|
|
1386
|
+
case dt:
|
|
1387
1387
|
if (e.length)
|
|
1388
|
-
return
|
|
1389
|
-
switch (
|
|
1388
|
+
return kn(e.props, function(o) {
|
|
1389
|
+
switch (Sn(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 oe([ve(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 oe([ve(e, {
|
|
1397
|
+
props: [m(o, /:(plac\w+)/, ":" + A + "input-$1")]
|
|
1398
|
+
}), ve(e, {
|
|
1399
|
+
props: [m(o, /:(plac\w+)/, ":" + Ne + "$1")]
|
|
1400
|
+
}), ve(e, {
|
|
1401
|
+
props: [m(o, /:(plac\w+)/, C + "input-$1")]
|
|
1402
1402
|
})], r);
|
|
1403
1403
|
}
|
|
1404
1404
|
return "";
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
|
-
},
|
|
1407
|
+
}, Gn = [zn], Kn = 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 || Gn, 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 = [Fn, Vn];
|
|
1428
1428
|
{
|
|
1429
|
-
var c,
|
|
1430
|
-
c.insert(
|
|
1431
|
-
})],
|
|
1432
|
-
return
|
|
1429
|
+
var c, h = [Nn, Mn(function(v) {
|
|
1430
|
+
c.insert(v);
|
|
1431
|
+
})], u = Pn(l.concat(r, h)), f = function(g) {
|
|
1432
|
+
return oe(Ln(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 gn({
|
|
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 qn(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 Hn = {
|
|
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
|
+
}, Wn = /[A-Z]|^ms/g, Jn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(e) {
|
|
1524
1524
|
return e.charCodeAt(1) === 45;
|
|
1525
|
-
},
|
|
1525
|
+
}, Et = function(e) {
|
|
1526
1526
|
return e != null && typeof e != "boolean";
|
|
1527
|
-
},
|
|
1528
|
-
return
|
|
1529
|
-
}),
|
|
1527
|
+
}, Ke = /* @__PURE__ */ $n(function(t) {
|
|
1528
|
+
return Zt(t) ? t : t.replace(Wn, "-$&").toLowerCase();
|
|
1529
|
+
}), St = 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(Jn, 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 Hn[e] !== 1 && !Zt(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 Yn(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 Yn(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] + "}" : Et(a) && (n += Ke(o) + ":" + St(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
|
+
Et(s[d]) && (n += Ke(o) + ":" + St(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 kt = /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
|
+
kt.lastIndex = 0;
|
|
1631
|
+
for (var l = "", c; (c = kt.exec(r)) !== null; )
|
|
1632
1632
|
l += "-" + c[1];
|
|
1633
|
-
var
|
|
1633
|
+
var h = qn(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 ei(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 Xn = 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
|
+
}, Qn = function(e, i, n) {
|
|
1655
|
+
Xn(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 xt(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 Rt(t, e, i) {
|
|
1669
|
+
var n = [], r = ei(t, n, i);
|
|
1670
1670
|
return n.length < 2 ? i : r + e(n);
|
|
1671
1671
|
}
|
|
1672
|
-
var
|
|
1673
|
-
var i =
|
|
1672
|
+
var Zn = function(e) {
|
|
1673
|
+
var i = Kn(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 Qn(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 xt(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
|
+
xt(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 Rt(i.registered, n, er(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: ei.bind(null, i.registered),
|
|
1716
|
+
merge: Rt.bind(null, i.registered, n)
|
|
1717
1717
|
};
|
|
1718
|
-
},
|
|
1718
|
+
}, er = 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,96 @@ var Wn = function(e) {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
1742
|
return i;
|
|
1743
|
-
},
|
|
1743
|
+
}, tr = Zn({
|
|
1744
1744
|
key: "css"
|
|
1745
|
-
}),
|
|
1746
|
-
function
|
|
1747
|
-
|
|
1748
|
-
var i =
|
|
1745
|
+
}), le = tr.css, nt, B, He, It, Ot = 0, ti = [], O = se, Tt = O.__b, Dt = O.__r, Lt = O.diffed, Ct = O.__c, Nt = O.unmount, Pt = O.__;
|
|
1746
|
+
function ir(t, e) {
|
|
1747
|
+
O.__h && O.__h(B, t, Ot || e), Ot = 0;
|
|
1748
|
+
var i = B.__H || (B.__H = { __: [], __h: [] });
|
|
1749
1749
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1752
|
-
var i =
|
|
1753
|
-
|
|
1751
|
+
function ii(t, e) {
|
|
1752
|
+
var i = ir(nt++, 7);
|
|
1753
|
+
return or(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1756
|
-
|
|
1757
|
-
return { current: t };
|
|
1758
|
-
}, []);
|
|
1759
|
-
}
|
|
1760
|
-
function at(t, e) {
|
|
1761
|
-
var i = Zt(Le++, 7);
|
|
1762
|
-
return ei(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1763
|
-
}
|
|
1764
|
-
function Zn() {
|
|
1765
|
-
for (var t; t = Xt.shift(); )
|
|
1755
|
+
function nr() {
|
|
1756
|
+
for (var t; t = ti.shift(); )
|
|
1766
1757
|
if (t.__P && t.__H)
|
|
1767
1758
|
try {
|
|
1768
|
-
t.__H.__h.forEach(
|
|
1759
|
+
t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
|
|
1769
1760
|
} catch (e) {
|
|
1770
|
-
t.__H.__h = [],
|
|
1761
|
+
t.__H.__h = [], O.__e(e, t.__v);
|
|
1771
1762
|
}
|
|
1772
1763
|
}
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
},
|
|
1776
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1777
|
-
},
|
|
1778
|
-
|
|
1779
|
-
var e = (
|
|
1780
|
-
e && (
|
|
1764
|
+
O.__b = function(t) {
|
|
1765
|
+
B = null, Tt && Tt(t);
|
|
1766
|
+
}, O.__ = function(t, e) {
|
|
1767
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Pt && Pt(t, e);
|
|
1768
|
+
}, O.__r = function(t) {
|
|
1769
|
+
Dt && Dt(t), nt = 0;
|
|
1770
|
+
var e = (B = t.__c).__H;
|
|
1771
|
+
e && (He === B ? (e.__h = [], B.__h = [], e.__.forEach(function(i) {
|
|
1781
1772
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1782
|
-
})) : (e.__h.forEach(
|
|
1783
|
-
},
|
|
1784
|
-
|
|
1773
|
+
})) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], nt = 0)), He = B;
|
|
1774
|
+
}, O.diffed = function(t) {
|
|
1775
|
+
Lt && Lt(t);
|
|
1785
1776
|
var e = t.__c;
|
|
1786
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1777
|
+
e && e.__H && (e.__H.__h.length && (ti.push(e) !== 1 && It === O.requestAnimationFrame || ((It = O.requestAnimationFrame) || rr)(nr)), e.__H.__.forEach(function(i) {
|
|
1787
1778
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1788
|
-
})),
|
|
1789
|
-
},
|
|
1779
|
+
})), He = B = null;
|
|
1780
|
+
}, O.__c = function(t, e) {
|
|
1790
1781
|
e.some(function(i) {
|
|
1791
1782
|
try {
|
|
1792
|
-
i.__h.forEach(
|
|
1793
|
-
return !n.__ ||
|
|
1783
|
+
i.__h.forEach(De), i.__h = i.__h.filter(function(n) {
|
|
1784
|
+
return !n.__ || rt(n);
|
|
1794
1785
|
});
|
|
1795
1786
|
} catch (n) {
|
|
1796
1787
|
e.some(function(r) {
|
|
1797
1788
|
r.__h && (r.__h = []);
|
|
1798
|
-
}), e = [],
|
|
1789
|
+
}), e = [], O.__e(n, i.__v);
|
|
1799
1790
|
}
|
|
1800
|
-
}),
|
|
1801
|
-
},
|
|
1802
|
-
|
|
1791
|
+
}), Ct && Ct(t, e);
|
|
1792
|
+
}, O.unmount = function(t) {
|
|
1793
|
+
Nt && Nt(t);
|
|
1803
1794
|
var e, i = t.__c;
|
|
1804
1795
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1805
1796
|
try {
|
|
1806
|
-
|
|
1797
|
+
De(n);
|
|
1807
1798
|
} catch (r) {
|
|
1808
1799
|
e = r;
|
|
1809
1800
|
}
|
|
1810
|
-
}), i.__H = void 0, e &&
|
|
1801
|
+
}), i.__H = void 0, e && O.__e(e, i.__v));
|
|
1811
1802
|
};
|
|
1812
|
-
var
|
|
1813
|
-
function
|
|
1803
|
+
var Mt = typeof requestAnimationFrame == "function";
|
|
1804
|
+
function rr(t) {
|
|
1814
1805
|
var e, i = function() {
|
|
1815
|
-
clearTimeout(n),
|
|
1806
|
+
clearTimeout(n), Mt && cancelAnimationFrame(e), setTimeout(t);
|
|
1816
1807
|
}, n = setTimeout(i, 100);
|
|
1817
|
-
|
|
1808
|
+
Mt && (e = requestAnimationFrame(i));
|
|
1818
1809
|
}
|
|
1819
|
-
function
|
|
1820
|
-
var e =
|
|
1821
|
-
typeof i == "function" && (t.__c = void 0, i()),
|
|
1810
|
+
function De(t) {
|
|
1811
|
+
var e = B, i = t.__c;
|
|
1812
|
+
typeof i == "function" && (t.__c = void 0, i()), B = e;
|
|
1822
1813
|
}
|
|
1823
|
-
function
|
|
1824
|
-
var e =
|
|
1825
|
-
t.__c = t.__(),
|
|
1814
|
+
function rt(t) {
|
|
1815
|
+
var e = B;
|
|
1816
|
+
t.__c = t.__(), B = e;
|
|
1826
1817
|
}
|
|
1827
|
-
function
|
|
1818
|
+
function or(t, e) {
|
|
1828
1819
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1829
1820
|
return i !== t[n];
|
|
1830
1821
|
});
|
|
1831
1822
|
}
|
|
1832
|
-
var
|
|
1833
|
-
function
|
|
1834
|
-
if (
|
|
1835
|
-
|
|
1823
|
+
var sr = Symbol.for("preact-signals");
|
|
1824
|
+
function Ve() {
|
|
1825
|
+
if (ee > 1)
|
|
1826
|
+
ee--;
|
|
1836
1827
|
else {
|
|
1837
|
-
for (var t, e = !1;
|
|
1838
|
-
var i =
|
|
1839
|
-
for (
|
|
1828
|
+
for (var t, e = !1; ye !== void 0; ) {
|
|
1829
|
+
var i = ye;
|
|
1830
|
+
for (ye = void 0, ot++; i !== void 0; ) {
|
|
1840
1831
|
var n = i.o;
|
|
1841
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1832
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && ri(i))
|
|
1842
1833
|
try {
|
|
1843
1834
|
i.c();
|
|
1844
1835
|
} catch (r) {
|
|
@@ -1847,102 +1838,102 @@ function Ue() {
|
|
|
1847
1838
|
i = n;
|
|
1848
1839
|
}
|
|
1849
1840
|
}
|
|
1850
|
-
if (
|
|
1841
|
+
if (ot = 0, ee--, e)
|
|
1851
1842
|
throw t;
|
|
1852
1843
|
}
|
|
1853
1844
|
}
|
|
1854
|
-
function
|
|
1855
|
-
if (
|
|
1845
|
+
function T(t) {
|
|
1846
|
+
if (ee > 0)
|
|
1856
1847
|
return t();
|
|
1857
|
-
|
|
1848
|
+
ee++;
|
|
1858
1849
|
try {
|
|
1859
1850
|
return t();
|
|
1860
1851
|
} finally {
|
|
1861
|
-
|
|
1852
|
+
Ve();
|
|
1862
1853
|
}
|
|
1863
1854
|
}
|
|
1864
|
-
var
|
|
1865
|
-
function
|
|
1866
|
-
if (
|
|
1855
|
+
var S = void 0, ye = void 0, ee = 0, ot = 0, Me = 0;
|
|
1856
|
+
function ni(t) {
|
|
1857
|
+
if (S !== void 0) {
|
|
1867
1858
|
var e = t.n;
|
|
1868
|
-
if (e === void 0 || e.t !==
|
|
1869
|
-
return e = { i: 0, S: t, p:
|
|
1859
|
+
if (e === void 0 || e.t !== S)
|
|
1860
|
+
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
1861
|
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 =
|
|
1862
|
+
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
1863
|
}
|
|
1873
1864
|
}
|
|
1874
|
-
function
|
|
1865
|
+
function L(t) {
|
|
1875
1866
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1876
1867
|
}
|
|
1877
|
-
|
|
1878
|
-
|
|
1868
|
+
L.prototype.brand = sr;
|
|
1869
|
+
L.prototype.h = function() {
|
|
1879
1870
|
return !0;
|
|
1880
1871
|
};
|
|
1881
|
-
|
|
1872
|
+
L.prototype.S = function(t) {
|
|
1882
1873
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1883
1874
|
};
|
|
1884
|
-
|
|
1875
|
+
L.prototype.U = function(t) {
|
|
1885
1876
|
if (this.t !== void 0) {
|
|
1886
1877
|
var e = t.e, i = t.x;
|
|
1887
1878
|
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
1879
|
}
|
|
1889
1880
|
};
|
|
1890
|
-
|
|
1881
|
+
L.prototype.subscribe = function(t) {
|
|
1891
1882
|
var e = this;
|
|
1892
|
-
return
|
|
1893
|
-
var i = e.value, n =
|
|
1894
|
-
|
|
1883
|
+
return Ee(function() {
|
|
1884
|
+
var i = e.value, n = S;
|
|
1885
|
+
S = void 0;
|
|
1895
1886
|
try {
|
|
1896
1887
|
t(i);
|
|
1897
1888
|
} finally {
|
|
1898
|
-
|
|
1889
|
+
S = n;
|
|
1899
1890
|
}
|
|
1900
1891
|
});
|
|
1901
1892
|
};
|
|
1902
|
-
|
|
1893
|
+
L.prototype.valueOf = function() {
|
|
1903
1894
|
return this.value;
|
|
1904
1895
|
};
|
|
1905
|
-
|
|
1896
|
+
L.prototype.toString = function() {
|
|
1906
1897
|
return this.value + "";
|
|
1907
1898
|
};
|
|
1908
|
-
|
|
1899
|
+
L.prototype.toJSON = function() {
|
|
1909
1900
|
return this.value;
|
|
1910
1901
|
};
|
|
1911
|
-
|
|
1912
|
-
var t =
|
|
1913
|
-
|
|
1902
|
+
L.prototype.peek = function() {
|
|
1903
|
+
var t = S;
|
|
1904
|
+
S = void 0;
|
|
1914
1905
|
try {
|
|
1915
1906
|
return this.value;
|
|
1916
1907
|
} finally {
|
|
1917
|
-
|
|
1908
|
+
S = t;
|
|
1918
1909
|
}
|
|
1919
1910
|
};
|
|
1920
|
-
Object.defineProperty(
|
|
1921
|
-
var t =
|
|
1911
|
+
Object.defineProperty(L.prototype, "value", { get: function() {
|
|
1912
|
+
var t = ni(this);
|
|
1922
1913
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1923
1914
|
}, set: function(t) {
|
|
1924
1915
|
if (t !== this.v) {
|
|
1925
|
-
if (
|
|
1916
|
+
if (ot > 100)
|
|
1926
1917
|
throw new Error("Cycle detected");
|
|
1927
|
-
this.v = t, this.i++,
|
|
1918
|
+
this.v = t, this.i++, Me++, ee++;
|
|
1928
1919
|
try {
|
|
1929
1920
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1930
1921
|
e.t.N();
|
|
1931
1922
|
} finally {
|
|
1932
|
-
|
|
1923
|
+
Ve();
|
|
1933
1924
|
}
|
|
1934
1925
|
}
|
|
1935
1926
|
} });
|
|
1936
|
-
function
|
|
1937
|
-
return new
|
|
1927
|
+
function E(t) {
|
|
1928
|
+
return new L(t);
|
|
1938
1929
|
}
|
|
1939
|
-
function
|
|
1930
|
+
function ri(t) {
|
|
1940
1931
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1941
1932
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1942
1933
|
return !0;
|
|
1943
1934
|
return !1;
|
|
1944
1935
|
}
|
|
1945
|
-
function
|
|
1936
|
+
function oi(t) {
|
|
1946
1937
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1947
1938
|
var i = e.S.n;
|
|
1948
1939
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1951,90 +1942,90 @@ function ni(t) {
|
|
|
1951
1942
|
}
|
|
1952
1943
|
}
|
|
1953
1944
|
}
|
|
1954
|
-
function
|
|
1945
|
+
function si(t) {
|
|
1955
1946
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1956
1947
|
var n = e.p;
|
|
1957
1948
|
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
1949
|
}
|
|
1959
1950
|
t.s = i;
|
|
1960
1951
|
}
|
|
1961
|
-
function
|
|
1962
|
-
|
|
1952
|
+
function ce(t) {
|
|
1953
|
+
L.call(this, void 0), this.x = t, this.s = void 0, this.g = Me - 1, this.f = 4;
|
|
1963
1954
|
}
|
|
1964
|
-
(
|
|
1955
|
+
(ce.prototype = new L()).h = function() {
|
|
1965
1956
|
if (this.f &= -3, 1 & this.f)
|
|
1966
1957
|
return !1;
|
|
1967
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1958
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Me))
|
|
1968
1959
|
return !0;
|
|
1969
|
-
if (this.g =
|
|
1960
|
+
if (this.g = Me, this.f |= 1, this.i > 0 && !ri(this))
|
|
1970
1961
|
return this.f &= -2, !0;
|
|
1971
|
-
var t =
|
|
1962
|
+
var t = S;
|
|
1972
1963
|
try {
|
|
1973
|
-
|
|
1964
|
+
oi(this), S = this;
|
|
1974
1965
|
var e = this.x();
|
|
1975
1966
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1976
1967
|
} catch (i) {
|
|
1977
1968
|
this.v = i, this.f |= 16, this.i++;
|
|
1978
1969
|
}
|
|
1979
|
-
return
|
|
1970
|
+
return S = t, si(this), this.f &= -2, !0;
|
|
1980
1971
|
};
|
|
1981
|
-
|
|
1972
|
+
ce.prototype.S = function(t) {
|
|
1982
1973
|
if (this.t === void 0) {
|
|
1983
1974
|
this.f |= 36;
|
|
1984
1975
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1985
1976
|
e.S.S(e);
|
|
1986
1977
|
}
|
|
1987
|
-
|
|
1978
|
+
L.prototype.S.call(this, t);
|
|
1988
1979
|
};
|
|
1989
|
-
|
|
1990
|
-
if (this.t !== void 0 && (
|
|
1980
|
+
ce.prototype.U = function(t) {
|
|
1981
|
+
if (this.t !== void 0 && (L.prototype.U.call(this, t), this.t === void 0)) {
|
|
1991
1982
|
this.f &= -33;
|
|
1992
1983
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1993
1984
|
e.S.U(e);
|
|
1994
1985
|
}
|
|
1995
1986
|
};
|
|
1996
|
-
|
|
1987
|
+
ce.prototype.N = function() {
|
|
1997
1988
|
if (!(2 & this.f)) {
|
|
1998
1989
|
this.f |= 6;
|
|
1999
1990
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
2000
1991
|
t.t.N();
|
|
2001
1992
|
}
|
|
2002
1993
|
};
|
|
2003
|
-
Object.defineProperty(
|
|
1994
|
+
Object.defineProperty(ce.prototype, "value", { get: function() {
|
|
2004
1995
|
if (1 & this.f)
|
|
2005
1996
|
throw new Error("Cycle detected");
|
|
2006
|
-
var t =
|
|
1997
|
+
var t = ni(this);
|
|
2007
1998
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
2008
1999
|
throw this.v;
|
|
2009
2000
|
return this.v;
|
|
2010
2001
|
} });
|
|
2011
|
-
function
|
|
2012
|
-
return new
|
|
2002
|
+
function _e(t) {
|
|
2003
|
+
return new ce(t);
|
|
2013
2004
|
}
|
|
2014
|
-
function
|
|
2005
|
+
function ai(t) {
|
|
2015
2006
|
var e = t.u;
|
|
2016
2007
|
if (t.u = void 0, typeof e == "function") {
|
|
2017
|
-
|
|
2018
|
-
var i =
|
|
2019
|
-
|
|
2008
|
+
ee++;
|
|
2009
|
+
var i = S;
|
|
2010
|
+
S = void 0;
|
|
2020
2011
|
try {
|
|
2021
2012
|
e();
|
|
2022
2013
|
} catch (n) {
|
|
2023
|
-
throw t.f &= -2, t.f |= 8,
|
|
2014
|
+
throw t.f &= -2, t.f |= 8, ut(t), n;
|
|
2024
2015
|
} finally {
|
|
2025
|
-
|
|
2016
|
+
S = i, Ve();
|
|
2026
2017
|
}
|
|
2027
2018
|
}
|
|
2028
2019
|
}
|
|
2029
|
-
function
|
|
2020
|
+
function ut(t) {
|
|
2030
2021
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2031
2022
|
e.S.U(e);
|
|
2032
|
-
t.x = void 0, t.s = void 0,
|
|
2023
|
+
t.x = void 0, t.s = void 0, ai(t);
|
|
2033
2024
|
}
|
|
2034
|
-
function
|
|
2035
|
-
if (
|
|
2025
|
+
function ar(t) {
|
|
2026
|
+
if (S !== this)
|
|
2036
2027
|
throw new Error("Out-of-order effect");
|
|
2037
|
-
|
|
2028
|
+
si(this), S = t, this.f &= -2, 8 & this.f && ut(this), Ve();
|
|
2038
2029
|
}
|
|
2039
2030
|
function me(t) {
|
|
2040
2031
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
@@ -2053,17 +2044,17 @@ me.prototype.c = function() {
|
|
|
2053
2044
|
me.prototype.S = function() {
|
|
2054
2045
|
if (1 & this.f)
|
|
2055
2046
|
throw new Error("Cycle detected");
|
|
2056
|
-
this.f |= 1, this.f &= -9,
|
|
2057
|
-
var t =
|
|
2058
|
-
return
|
|
2047
|
+
this.f |= 1, this.f &= -9, ai(this), oi(this), ee++;
|
|
2048
|
+
var t = S;
|
|
2049
|
+
return S = this, ar.bind(this, t);
|
|
2059
2050
|
};
|
|
2060
2051
|
me.prototype.N = function() {
|
|
2061
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2052
|
+
2 & this.f || (this.f |= 2, this.o = ye, ye = this);
|
|
2062
2053
|
};
|
|
2063
2054
|
me.prototype.d = function() {
|
|
2064
|
-
this.f |= 8, 1 & this.f ||
|
|
2055
|
+
this.f |= 8, 1 & this.f || ut(this);
|
|
2065
2056
|
};
|
|
2066
|
-
function
|
|
2057
|
+
function Ee(t) {
|
|
2067
2058
|
var e = new me(t);
|
|
2068
2059
|
try {
|
|
2069
2060
|
e.c();
|
|
@@ -2072,75 +2063,75 @@ function oe(t) {
|
|
|
2072
2063
|
}
|
|
2073
2064
|
return e.d.bind(e);
|
|
2074
2065
|
}
|
|
2075
|
-
var
|
|
2076
|
-
|
|
2077
|
-
|
|
2066
|
+
var di, We, li = [];
|
|
2067
|
+
Ee(function() {
|
|
2068
|
+
di = this.N;
|
|
2078
2069
|
})();
|
|
2079
|
-
function
|
|
2080
|
-
|
|
2070
|
+
function ue(t, e) {
|
|
2071
|
+
se[t] = e.bind(null, se[t] || function() {
|
|
2081
2072
|
});
|
|
2082
2073
|
}
|
|
2083
|
-
function
|
|
2084
|
-
|
|
2074
|
+
function $e(t) {
|
|
2075
|
+
We && We(), We = t && t.S();
|
|
2085
2076
|
}
|
|
2086
|
-
function
|
|
2087
|
-
var e = this, i = t.data, n =
|
|
2077
|
+
function ci(t) {
|
|
2078
|
+
var e = this, i = t.data, n = ui(i);
|
|
2088
2079
|
n.value = i;
|
|
2089
|
-
var r =
|
|
2080
|
+
var r = ii(function() {
|
|
2090
2081
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2091
2082
|
if (d.__c) {
|
|
2092
2083
|
d.__c.__$f |= 4;
|
|
2093
2084
|
break;
|
|
2094
2085
|
}
|
|
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 =
|
|
2086
|
+
var l = _e(function() {
|
|
2087
|
+
var f = n.value.value;
|
|
2088
|
+
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2089
|
+
}), c = _e(function() {
|
|
2090
|
+
return !Array.isArray(l.value) && !bi(l.value);
|
|
2091
|
+
}), h = Ee(function() {
|
|
2092
|
+
if (this.N = hi, c.value) {
|
|
2093
|
+
var f = l.value;
|
|
2094
|
+
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2104
2095
|
}
|
|
2105
|
-
}),
|
|
2096
|
+
}), u = e.__$u.d;
|
|
2106
2097
|
return e.__$u.d = function() {
|
|
2107
|
-
|
|
2098
|
+
h(), u.call(this);
|
|
2108
2099
|
}, [c, l];
|
|
2109
2100
|
}, []), o = r[0], s = r[1];
|
|
2110
2101
|
return o.value ? s.peek() : s.value;
|
|
2111
2102
|
}
|
|
2112
|
-
|
|
2113
|
-
Object.defineProperties(
|
|
2103
|
+
ci.displayName = "_st";
|
|
2104
|
+
Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: ci }, props: { configurable: !0, get: function() {
|
|
2114
2105
|
return { data: this };
|
|
2115
2106
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2116
|
-
|
|
2107
|
+
ue("__b", function(t, e) {
|
|
2117
2108
|
if (typeof e.type == "string") {
|
|
2118
2109
|
var i, n = e.props;
|
|
2119
2110
|
for (var r in n)
|
|
2120
2111
|
if (r !== "children") {
|
|
2121
2112
|
var o = n[r];
|
|
2122
|
-
o instanceof
|
|
2113
|
+
o instanceof L && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
|
|
2123
2114
|
}
|
|
2124
2115
|
}
|
|
2125
2116
|
t(e);
|
|
2126
2117
|
});
|
|
2127
|
-
|
|
2128
|
-
|
|
2118
|
+
ue("__r", function(t, e) {
|
|
2119
|
+
$e();
|
|
2129
2120
|
var i, n = e.__c;
|
|
2130
2121
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2131
2122
|
var o;
|
|
2132
|
-
return
|
|
2123
|
+
return Ee(function() {
|
|
2133
2124
|
o = this;
|
|
2134
2125
|
}), o.c = function() {
|
|
2135
2126
|
n.__$f |= 1, n.setState({});
|
|
2136
2127
|
}, o;
|
|
2137
|
-
}())),
|
|
2128
|
+
}())), $e(i), t(e);
|
|
2138
2129
|
});
|
|
2139
|
-
|
|
2140
|
-
|
|
2130
|
+
ue("__e", function(t, e, i, n) {
|
|
2131
|
+
$e(), t(e, i, n);
|
|
2141
2132
|
});
|
|
2142
|
-
|
|
2143
|
-
|
|
2133
|
+
ue("diffed", function(t, e) {
|
|
2134
|
+
$e();
|
|
2144
2135
|
var i;
|
|
2145
2136
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2146
2137
|
var n = e.__np, r = e.props;
|
|
@@ -2155,23 +2146,23 @@ se("diffed", function(t, e) {
|
|
|
2155
2146
|
o = {}, i.U = o;
|
|
2156
2147
|
for (var d in n) {
|
|
2157
2148
|
var l = o[d], c = n[d];
|
|
2158
|
-
l === void 0 ? (l =
|
|
2149
|
+
l === void 0 ? (l = dr(i, d, c, r), o[d] = l) : l.o(c, r);
|
|
2159
2150
|
}
|
|
2160
2151
|
}
|
|
2161
2152
|
}
|
|
2162
2153
|
t(e);
|
|
2163
2154
|
});
|
|
2164
|
-
function
|
|
2165
|
-
var r = e in t && t.ownerSVGElement === void 0, o =
|
|
2155
|
+
function dr(t, e, i, n) {
|
|
2156
|
+
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2166
2157
|
return { o: function(s, a) {
|
|
2167
2158
|
o.value = s, n = a;
|
|
2168
|
-
}, d:
|
|
2169
|
-
this.N =
|
|
2159
|
+
}, d: Ee(function() {
|
|
2160
|
+
this.N = hi;
|
|
2170
2161
|
var s = o.value.value;
|
|
2171
2162
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2172
2163
|
}) };
|
|
2173
2164
|
}
|
|
2174
|
-
|
|
2165
|
+
ue("unmount", function(t, e) {
|
|
2175
2166
|
if (typeof e.type == "string") {
|
|
2176
2167
|
var i = e.__e;
|
|
2177
2168
|
if (i) {
|
|
@@ -2193,10 +2184,10 @@ se("unmount", function(t, e) {
|
|
|
2193
2184
|
}
|
|
2194
2185
|
t(e);
|
|
2195
2186
|
});
|
|
2196
|
-
|
|
2187
|
+
ue("__h", function(t, e, i, n) {
|
|
2197
2188
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2198
2189
|
});
|
|
2199
|
-
|
|
2190
|
+
wi.prototype.shouldComponentUpdate = function(t, e) {
|
|
2200
2191
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2201
2192
|
for (var r in e)
|
|
2202
2193
|
return !0;
|
|
@@ -2214,47 +2205,26 @@ pi.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2214
2205
|
return !0;
|
|
2215
2206
|
return !1;
|
|
2216
2207
|
};
|
|
2217
|
-
function
|
|
2218
|
-
return
|
|
2219
|
-
return
|
|
2208
|
+
function ui(t) {
|
|
2209
|
+
return ii(function() {
|
|
2210
|
+
return E(t);
|
|
2220
2211
|
}, []);
|
|
2221
2212
|
}
|
|
2222
|
-
var
|
|
2223
|
-
var e = function() {
|
|
2224
|
-
clearTimeout(i), cancelAnimationFrame(n), t();
|
|
2225
|
-
}, i = setTimeout(e, 100), n = requestAnimationFrame(e);
|
|
2226
|
-
}, or = function(t) {
|
|
2213
|
+
var lr = function(t) {
|
|
2227
2214
|
queueMicrotask(function() {
|
|
2228
2215
|
queueMicrotask(t);
|
|
2229
2216
|
});
|
|
2230
2217
|
};
|
|
2231
|
-
function
|
|
2232
|
-
|
|
2233
|
-
for (var t; t =
|
|
2234
|
-
|
|
2235
|
-
});
|
|
2236
|
-
}
|
|
2237
|
-
function ar() {
|
|
2238
|
-
si.push(this) === 1 && (Z.requestAnimationFrame || rr)(sr);
|
|
2239
|
-
}
|
|
2240
|
-
function dr() {
|
|
2241
|
-
N(function() {
|
|
2242
|
-
for (var t; t = ai.shift(); )
|
|
2243
|
-
lt.call(t);
|
|
2218
|
+
function cr() {
|
|
2219
|
+
T(function() {
|
|
2220
|
+
for (var t; t = li.shift(); )
|
|
2221
|
+
di.call(t);
|
|
2244
2222
|
});
|
|
2245
2223
|
}
|
|
2246
|
-
function
|
|
2247
|
-
|
|
2224
|
+
function hi() {
|
|
2225
|
+
li.push(this) === 1 && (se.requestAnimationFrame || lr)(cr);
|
|
2248
2226
|
}
|
|
2249
|
-
|
|
2250
|
-
var e = Xn(t);
|
|
2251
|
-
e.current = t, Qn(function() {
|
|
2252
|
-
return oe(function() {
|
|
2253
|
-
return this.N = ar, e.current();
|
|
2254
|
-
});
|
|
2255
|
-
}, []);
|
|
2256
|
-
}
|
|
2257
|
-
const P = ge`
|
|
2227
|
+
const N = le`
|
|
2258
2228
|
inset: 0;
|
|
2259
2229
|
clear: none;
|
|
2260
2230
|
float: none;
|
|
@@ -2273,11 +2243,11 @@ const P = ge`
|
|
|
2273
2243
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2274
2244
|
'Helvetica Neue', sans-serif;
|
|
2275
2245
|
`;
|
|
2276
|
-
function
|
|
2277
|
-
const i =
|
|
2278
|
-
|
|
2246
|
+
function ur(t, e) {
|
|
2247
|
+
const i = Ai(t);
|
|
2248
|
+
mi(() => {
|
|
2279
2249
|
i.current = t;
|
|
2280
|
-
}, [t]),
|
|
2250
|
+
}, [t]), Ue(() => {
|
|
2281
2251
|
if (e === null)
|
|
2282
2252
|
return;
|
|
2283
2253
|
const n = setInterval(() => {
|
|
@@ -2288,21 +2258,21 @@ function cr(t, e) {
|
|
|
2288
2258
|
};
|
|
2289
2259
|
}, [e]);
|
|
2290
2260
|
}
|
|
2291
|
-
var
|
|
2292
|
-
function
|
|
2261
|
+
var hr = 0;
|
|
2262
|
+
function b(t, e, i, n, r, o) {
|
|
2293
2263
|
e || (e = {});
|
|
2294
2264
|
var s, a, d = e;
|
|
2295
2265
|
if ("ref" in d)
|
|
2296
2266
|
for (a in d = {}, e)
|
|
2297
2267
|
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: --
|
|
2268
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --hr, __i: -1, __u: 0, __source: r, __self: o };
|
|
2299
2269
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2300
2270
|
for (a in s)
|
|
2301
2271
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2302
|
-
return
|
|
2272
|
+
return se.vnode && se.vnode(l), l;
|
|
2303
2273
|
}
|
|
2304
|
-
const fr =
|
|
2305
|
-
${
|
|
2274
|
+
const fr = le`
|
|
2275
|
+
${N}
|
|
2306
2276
|
position: fixed;
|
|
2307
2277
|
top: 0;
|
|
2308
2278
|
left: 0;
|
|
@@ -2315,7 +2285,7 @@ const fr = ge`
|
|
|
2315
2285
|
height: 100vh;
|
|
2316
2286
|
|
|
2317
2287
|
.card-wrapper {
|
|
2318
|
-
${
|
|
2288
|
+
${N}
|
|
2319
2289
|
position: relative;
|
|
2320
2290
|
display: flex;
|
|
2321
2291
|
flex-direction: column;
|
|
@@ -2329,7 +2299,7 @@ const fr = ge`
|
|
|
2329
2299
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2330
2300
|
|
|
2331
2301
|
.body {
|
|
2332
|
-
${
|
|
2302
|
+
${N}
|
|
2333
2303
|
display: flex;
|
|
2334
2304
|
flex-direction: column;
|
|
2335
2305
|
width: 100%;
|
|
@@ -2338,7 +2308,7 @@ const fr = ge`
|
|
|
2338
2308
|
box-sizing: border-box;
|
|
2339
2309
|
justify-content: center;
|
|
2340
2310
|
.title {
|
|
2341
|
-
${
|
|
2311
|
+
${N}
|
|
2342
2312
|
text-align: center;
|
|
2343
2313
|
font-size: 16px;
|
|
2344
2314
|
font-weight: bold;
|
|
@@ -2346,7 +2316,7 @@ const fr = ge`
|
|
|
2346
2316
|
}
|
|
2347
2317
|
|
|
2348
2318
|
.content {
|
|
2349
|
-
${
|
|
2319
|
+
${N}
|
|
2350
2320
|
font-size: 14px;
|
|
2351
2321
|
color: #888;
|
|
2352
2322
|
margin-bottom: 16px;
|
|
@@ -2354,13 +2324,13 @@ const fr = ge`
|
|
|
2354
2324
|
}
|
|
2355
2325
|
|
|
2356
2326
|
.footer {
|
|
2357
|
-
${
|
|
2327
|
+
${N}
|
|
2358
2328
|
display: flex;
|
|
2359
2329
|
align-items: center;
|
|
2360
2330
|
width: 100%;
|
|
2361
2331
|
height: 40px;
|
|
2362
2332
|
button {
|
|
2363
|
-
${
|
|
2333
|
+
${N}
|
|
2364
2334
|
border: none;
|
|
2365
2335
|
outline: none;
|
|
2366
2336
|
height: 100%;
|
|
@@ -2376,56 +2346,56 @@ const fr = ge`
|
|
|
2376
2346
|
}
|
|
2377
2347
|
}
|
|
2378
2348
|
}
|
|
2379
|
-
`,
|
|
2349
|
+
`, G = E(null), st = E(""), at = E(""), Le = E(!1), vr = () => {
|
|
2380
2350
|
var t;
|
|
2381
|
-
(t =
|
|
2382
|
-
},
|
|
2351
|
+
(t = G.value) == null || t.call(G, !1);
|
|
2352
|
+
}, pr = () => {
|
|
2383
2353
|
var t;
|
|
2384
|
-
(t =
|
|
2385
|
-
},
|
|
2354
|
+
(t = G.value) == null || t.call(G, !0);
|
|
2355
|
+
}, yr = async (t) => {
|
|
2386
2356
|
let {
|
|
2387
2357
|
title: e,
|
|
2388
2358
|
content: i
|
|
2389
2359
|
} = t;
|
|
2390
|
-
return
|
|
2391
|
-
|
|
2392
|
-
})),
|
|
2393
|
-
|
|
2360
|
+
return G.value && (G.value(!1), T(() => {
|
|
2361
|
+
G.value = null, Le.value = !1;
|
|
2362
|
+
})), T(() => {
|
|
2363
|
+
st.value = e || "", at.value = i || "", Le.value = !0;
|
|
2394
2364
|
}), new Promise((n) => {
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2365
|
+
G.value = (r) => {
|
|
2366
|
+
T(() => {
|
|
2367
|
+
G.value = null, Le.value = !1, st.value = "", at.value = "";
|
|
2398
2368
|
}), n(r);
|
|
2399
2369
|
};
|
|
2400
2370
|
});
|
|
2401
|
-
}, _r = () =>
|
|
2371
|
+
}, _r = () => Le.value ? b("div", {
|
|
2402
2372
|
className: fr,
|
|
2403
|
-
children:
|
|
2373
|
+
children: b("div", {
|
|
2404
2374
|
className: "card-wrapper",
|
|
2405
|
-
children: [
|
|
2375
|
+
children: [b("div", {
|
|
2406
2376
|
className: "body",
|
|
2407
|
-
children: [
|
|
2377
|
+
children: [b("div", {
|
|
2408
2378
|
className: "title",
|
|
2409
|
-
children:
|
|
2410
|
-
}),
|
|
2379
|
+
children: st.value
|
|
2380
|
+
}), b("div", {
|
|
2411
2381
|
className: "content",
|
|
2412
|
-
children:
|
|
2382
|
+
children: at.value
|
|
2413
2383
|
})]
|
|
2414
|
-
}),
|
|
2384
|
+
}), b("div", {
|
|
2415
2385
|
className: "footer",
|
|
2416
|
-
children: [
|
|
2417
|
-
onClick:
|
|
2386
|
+
children: [b("button", {
|
|
2387
|
+
onClick: vr,
|
|
2418
2388
|
className: "cancel-btn",
|
|
2419
2389
|
children: "Cancel"
|
|
2420
|
-
}),
|
|
2421
|
-
onClick:
|
|
2390
|
+
}), b("button", {
|
|
2391
|
+
onClick: pr,
|
|
2422
2392
|
className: "confirm-btm",
|
|
2423
2393
|
children: "Confirm"
|
|
2424
2394
|
})]
|
|
2425
2395
|
})]
|
|
2426
2396
|
})
|
|
2427
|
-
}) : null,
|
|
2428
|
-
${
|
|
2397
|
+
}) : null, gr = le`
|
|
2398
|
+
${N}
|
|
2429
2399
|
position: relative;
|
|
2430
2400
|
display: flex;
|
|
2431
2401
|
align-items: center;
|
|
@@ -2443,7 +2413,7 @@ const fr = ge`
|
|
|
2443
2413
|
}
|
|
2444
2414
|
|
|
2445
2415
|
button {
|
|
2446
|
-
${
|
|
2416
|
+
${N}
|
|
2447
2417
|
padding: 0 20px;
|
|
2448
2418
|
height: 30px;
|
|
2449
2419
|
line-height: 30px;
|
|
@@ -2457,18 +2427,18 @@ const fr = ge`
|
|
|
2457
2427
|
cursor: not-allowed;
|
|
2458
2428
|
}
|
|
2459
2429
|
}
|
|
2460
|
-
`,
|
|
2461
|
-
const t =
|
|
2430
|
+
`, wr = () => {
|
|
2431
|
+
const t = E(!1), e = E(null);
|
|
2462
2432
|
return {
|
|
2463
2433
|
timerPaused: t,
|
|
2464
2434
|
startTimestamp: e,
|
|
2465
2435
|
startTimer: () => {
|
|
2466
|
-
|
|
2436
|
+
T(() => {
|
|
2467
2437
|
e.value = Date.now(), t.value = !1;
|
|
2468
2438
|
});
|
|
2469
2439
|
}
|
|
2470
2440
|
};
|
|
2471
|
-
},
|
|
2441
|
+
}, br = (t) => {
|
|
2472
2442
|
let {
|
|
2473
2443
|
countdown: e = 0,
|
|
2474
2444
|
mode: i,
|
|
@@ -2478,65 +2448,63 @@ const fr = ge`
|
|
|
2478
2448
|
const {
|
|
2479
2449
|
startTimestamp: o,
|
|
2480
2450
|
timerPaused: s
|
|
2481
|
-
} = r, a =
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
}), cr(() => {
|
|
2485
|
-
a.value > 0 ? a.value -= 1 : N(() => {
|
|
2451
|
+
} = r, a = ui(e);
|
|
2452
|
+
ur(() => {
|
|
2453
|
+
a.value > 0 ? a.value -= 1 : T(() => {
|
|
2486
2454
|
s.value = !0, a.value = 0;
|
|
2487
2455
|
});
|
|
2488
2456
|
}, s.value ? null : 1e3);
|
|
2489
|
-
const d =
|
|
2457
|
+
const d = _e(() => {
|
|
2490
2458
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2491
2459
|
return !1;
|
|
2492
|
-
const
|
|
2493
|
-
return a.value > 0 && e - a.value >= 5 &&
|
|
2494
|
-
}), l =
|
|
2460
|
+
const f = Date.now() - o.value;
|
|
2461
|
+
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2462
|
+
}), l = _e(() => {
|
|
2495
2463
|
if (i === "interstitial")
|
|
2496
2464
|
return !0;
|
|
2497
2465
|
if (!o.value)
|
|
2498
2466
|
return !1;
|
|
2499
|
-
const
|
|
2500
|
-
return a.value <= 0 &&
|
|
2501
|
-
}), c =
|
|
2502
|
-
if (s.value = !0, !await
|
|
2467
|
+
const f = Date.now() - o.value;
|
|
2468
|
+
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2469
|
+
}), c = _e(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2470
|
+
if (s.value = !0, !await yr({
|
|
2503
2471
|
title: "Are you sure?",
|
|
2504
2472
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2505
2473
|
})) {
|
|
2506
2474
|
s.value = !1;
|
|
2507
2475
|
return;
|
|
2508
2476
|
}
|
|
2509
|
-
n("dismiss"),
|
|
2477
|
+
n("dismiss"), T(() => {
|
|
2510
2478
|
s.value = !0, a.value = 0, o.value = null;
|
|
2511
2479
|
});
|
|
2512
|
-
},
|
|
2513
|
-
n("viewed"),
|
|
2480
|
+
}, u = () => {
|
|
2481
|
+
n("viewed"), T(() => {
|
|
2514
2482
|
s.value = !0, a.value = 0, o.value = null;
|
|
2515
2483
|
});
|
|
2516
2484
|
};
|
|
2517
|
-
return
|
|
2518
|
-
className:
|
|
2519
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2485
|
+
return b("div", {
|
|
2486
|
+
className: gr,
|
|
2487
|
+
children: [a.value > 0 && i !== "interstitial" && b("div", {
|
|
2520
2488
|
className: "timer",
|
|
2521
2489
|
children: [a.value, "s"]
|
|
2522
|
-
}),
|
|
2523
|
-
onClick: d.value ?
|
|
2490
|
+
}), b("button", {
|
|
2491
|
+
onClick: d.value ? h : l.value ? u : void 0,
|
|
2524
2492
|
disabled: c.value,
|
|
2525
|
-
children:
|
|
2493
|
+
children: b("svg", {
|
|
2526
2494
|
width: "12",
|
|
2527
2495
|
height: "12",
|
|
2528
2496
|
viewBox: "0 0 14 14",
|
|
2529
2497
|
fill: "none",
|
|
2530
2498
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2531
|
-
children:
|
|
2499
|
+
children: b("path", {
|
|
2532
2500
|
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
2501
|
fill: "white"
|
|
2534
2502
|
})
|
|
2535
2503
|
})
|
|
2536
2504
|
})]
|
|
2537
2505
|
});
|
|
2538
|
-
},
|
|
2539
|
-
const t =
|
|
2506
|
+
}, fi = () => {
|
|
2507
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2540
2508
|
return {
|
|
2541
2509
|
afterAd: t,
|
|
2542
2510
|
adDismissed: e,
|
|
@@ -2548,8 +2516,8 @@ const fr = ge`
|
|
|
2548
2516
|
src: a,
|
|
2549
2517
|
mode: d
|
|
2550
2518
|
};
|
|
2551
|
-
}, Ar =
|
|
2552
|
-
${
|
|
2519
|
+
}, Ar = le`
|
|
2520
|
+
${N}
|
|
2553
2521
|
position: fixed;
|
|
2554
2522
|
z-index: 2147483647;
|
|
2555
2523
|
background: white;
|
|
@@ -2559,7 +2527,7 @@ const fr = ge`
|
|
|
2559
2527
|
flex-direction: column;
|
|
2560
2528
|
|
|
2561
2529
|
iframe {
|
|
2562
|
-
${
|
|
2530
|
+
${N}
|
|
2563
2531
|
flex: 1;
|
|
2564
2532
|
position: relative;
|
|
2565
2533
|
display: block;
|
|
@@ -2567,7 +2535,7 @@ const fr = ge`
|
|
|
2567
2535
|
width: 100%;
|
|
2568
2536
|
height: 100%;
|
|
2569
2537
|
}
|
|
2570
|
-
`,
|
|
2538
|
+
`, vi = (t) => {
|
|
2571
2539
|
let {
|
|
2572
2540
|
state: e
|
|
2573
2541
|
} = t;
|
|
@@ -2581,37 +2549,39 @@ const fr = ge`
|
|
|
2581
2549
|
countdown: d,
|
|
2582
2550
|
src: l,
|
|
2583
2551
|
mode: c
|
|
2584
|
-
} = e,
|
|
2585
|
-
var
|
|
2586
|
-
a.value = !1,
|
|
2587
|
-
}, v = () => {
|
|
2588
|
-
var
|
|
2589
|
-
(
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2552
|
+
} = e, h = Ei(() => wr(), []), [u, f] = $t(!1), y = (g) => {
|
|
2553
|
+
var p, _, w, P;
|
|
2554
|
+
a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (w = i.value) == null || w.call(i), (P = o.value) == null || P.call(o), f(!1);
|
|
2555
|
+
}, v = Si(() => {
|
|
2556
|
+
var g;
|
|
2557
|
+
u || (f(!0), (g = s.value) == null || g.call(s));
|
|
2558
|
+
}, [u]);
|
|
2559
|
+
return Ue(() => {
|
|
2560
|
+
u && (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2561
|
+
h.startTimer();
|
|
2562
|
+
}, 100);
|
|
2563
|
+
}, [u, c.value]), a.value ? b("div", {
|
|
2594
2564
|
className: Ar,
|
|
2595
|
-
children: [
|
|
2565
|
+
children: [b(br, {
|
|
2596
2566
|
mode: c.value,
|
|
2597
|
-
onClose:
|
|
2567
|
+
onClose: y,
|
|
2598
2568
|
countdown: d.value,
|
|
2599
|
-
state:
|
|
2600
|
-
}), a.value &&
|
|
2569
|
+
state: h
|
|
2570
|
+
}), a.value && b("iframe", {
|
|
2601
2571
|
src: l.value,
|
|
2602
2572
|
onLoad: v,
|
|
2603
2573
|
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
|
-
}),
|
|
2574
|
+
}), b(_r, {})]
|
|
2605
2575
|
}) : null;
|
|
2606
2576
|
};
|
|
2607
|
-
function
|
|
2608
|
-
return (e =
|
|
2577
|
+
function J(t, e, i) {
|
|
2578
|
+
return (e = mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2609
2579
|
}
|
|
2610
|
-
function
|
|
2611
|
-
var e =
|
|
2580
|
+
function mr(t) {
|
|
2581
|
+
var e = Er(t, "string");
|
|
2612
2582
|
return typeof e == "symbol" ? e : e + "";
|
|
2613
2583
|
}
|
|
2614
|
-
function
|
|
2584
|
+
function Er(t, e) {
|
|
2615
2585
|
if (typeof t != "object" || !t)
|
|
2616
2586
|
return t;
|
|
2617
2587
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2623,13 +2593,13 @@ function br(t, e) {
|
|
|
2623
2593
|
}
|
|
2624
2594
|
return (e === "string" ? String : Number)(t);
|
|
2625
2595
|
}
|
|
2626
|
-
class
|
|
2596
|
+
class Sr {
|
|
2627
2597
|
constructor(e, i) {
|
|
2628
|
-
|
|
2598
|
+
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", fi()), this.context = e, this.initParams = i;
|
|
2629
2599
|
}
|
|
2630
2600
|
async init() {
|
|
2631
2601
|
var e;
|
|
2632
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"),
|
|
2602
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(b(vi, {
|
|
2633
2603
|
state: this.state
|
|
2634
2604
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2635
2605
|
}
|
|
@@ -2679,6 +2649,235 @@ class Er {
|
|
|
2679
2649
|
case "next":
|
|
2680
2650
|
case "pause": {
|
|
2681
2651
|
(s = e.beforeAd) == null || s.call(e);
|
|
2652
|
+
const h = () => {
|
|
2653
|
+
var f;
|
|
2654
|
+
this.adsIsShowing = !1, (f = e.afterAd) == null || f.call(e);
|
|
2655
|
+
}, u = () => {
|
|
2656
|
+
var f;
|
|
2657
|
+
this.adsIsShowing = !1, (f = e.adBreakDone) == null || f.call(e, {
|
|
2658
|
+
breakType: e.type,
|
|
2659
|
+
breakName: e.name,
|
|
2660
|
+
breakFormat: "interstitial",
|
|
2661
|
+
breakStatus: "viewed"
|
|
2662
|
+
});
|
|
2663
|
+
};
|
|
2664
|
+
T(() => {
|
|
2665
|
+
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;
|
|
2666
|
+
});
|
|
2667
|
+
break;
|
|
2668
|
+
}
|
|
2669
|
+
case "reward": {
|
|
2670
|
+
this.lastUnDisplayedAdBreak && ((d = (a = this.lastUnDisplayedAdBreak).adBreakDone) == null || d.call(a, {
|
|
2671
|
+
breakType: this.lastUnDisplayedAdBreak.type,
|
|
2672
|
+
breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
|
|
2673
|
+
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
2674
|
+
breakStatus: "ignored"
|
|
2675
|
+
}), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
|
|
2676
|
+
const h = () => {
|
|
2677
|
+
var p;
|
|
2678
|
+
this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
|
|
2679
|
+
}, u = {
|
|
2680
|
+
breakType: e.type,
|
|
2681
|
+
breakName: e.name,
|
|
2682
|
+
breakFormat: "reward",
|
|
2683
|
+
breakStatus: "ignored"
|
|
2684
|
+
}, f = () => {
|
|
2685
|
+
var p;
|
|
2686
|
+
this.adsIsShowing = !1, u.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
|
|
2687
|
+
}, y = () => {
|
|
2688
|
+
var p;
|
|
2689
|
+
this.adsIsShowing = !1, u.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
|
|
2690
|
+
}, v = () => {
|
|
2691
|
+
var p;
|
|
2692
|
+
this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, u);
|
|
2693
|
+
};
|
|
2694
|
+
T(() => {
|
|
2695
|
+
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
|
|
2696
|
+
});
|
|
2697
|
+
const g = () => {
|
|
2698
|
+
var p;
|
|
2699
|
+
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2700
|
+
(p = e.adBreakDone) == null || p.call(e, {
|
|
2701
|
+
breakType: e.type,
|
|
2702
|
+
breakName: e.name,
|
|
2703
|
+
breakFormat: "reward",
|
|
2704
|
+
breakStatus: "notReady"
|
|
2705
|
+
});
|
|
2706
|
+
return;
|
|
2707
|
+
}
|
|
2708
|
+
this.adsIsShowing = !0, T(() => {
|
|
2709
|
+
var _;
|
|
2710
|
+
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;
|
|
2711
|
+
});
|
|
2712
|
+
};
|
|
2713
|
+
this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, g);
|
|
2714
|
+
break;
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
const re = {};
|
|
2720
|
+
window.addEventListener("message", (t) => {
|
|
2721
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || re[t.data.type] && re[t.data.type].forEach((e) => {
|
|
2722
|
+
e(t.data.data);
|
|
2723
|
+
});
|
|
2724
|
+
});
|
|
2725
|
+
const ie = (t, e) => {
|
|
2726
|
+
Ue(() => (re[t] || (re[t] = /* @__PURE__ */ new Set()), re[t].add(e), () => {
|
|
2727
|
+
re[t].delete(e);
|
|
2728
|
+
}), [t, e]);
|
|
2729
|
+
}, pi = () => {
|
|
2730
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2731
|
+
return {
|
|
2732
|
+
afterAd: t,
|
|
2733
|
+
adDismissed: e,
|
|
2734
|
+
adViewed: i,
|
|
2735
|
+
adBreakDone: n,
|
|
2736
|
+
adLoaded: r,
|
|
2737
|
+
adLinkClicked: o,
|
|
2738
|
+
adError: s,
|
|
2739
|
+
visible: a,
|
|
2740
|
+
src: d
|
|
2741
|
+
};
|
|
2742
|
+
}, kr = le`
|
|
2743
|
+
${N}
|
|
2744
|
+
position: fixed;
|
|
2745
|
+
z-index: 2147483647;
|
|
2746
|
+
background: white;
|
|
2747
|
+
width: 100vw;
|
|
2748
|
+
height: 100vh;
|
|
2749
|
+
display: flex;
|
|
2750
|
+
flex-direction: column;
|
|
2751
|
+
|
|
2752
|
+
iframe {
|
|
2753
|
+
${N}
|
|
2754
|
+
flex: 1;
|
|
2755
|
+
position: relative;
|
|
2756
|
+
display: block;
|
|
2757
|
+
background: white;
|
|
2758
|
+
width: 100%;
|
|
2759
|
+
height: 100%;
|
|
2760
|
+
}
|
|
2761
|
+
`, yi = (t) => {
|
|
2762
|
+
let {
|
|
2763
|
+
state: e
|
|
2764
|
+
} = t;
|
|
2765
|
+
const {
|
|
2766
|
+
afterAd: i,
|
|
2767
|
+
adDismissed: n,
|
|
2768
|
+
adViewed: r,
|
|
2769
|
+
adBreakDone: o,
|
|
2770
|
+
adLoaded: s,
|
|
2771
|
+
adLinkClicked: a,
|
|
2772
|
+
visible: d,
|
|
2773
|
+
src: l
|
|
2774
|
+
} = e, [c, h] = $t(!1), u = (y) => {
|
|
2775
|
+
var v, g, p, _;
|
|
2776
|
+
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);
|
|
2777
|
+
}, f = () => {
|
|
2778
|
+
var y;
|
|
2779
|
+
(y = s.value) == null || y.call(s);
|
|
2780
|
+
};
|
|
2781
|
+
return ie("appsrockets_ad_dismissed", () => u("dismiss")), ie("appsrockets_ad_rewarded", () => u("viewed")), ie("appsrockets_ad_completed", () => u("viewed")), ie("appsrockets_ad_skipped", () => u("viewed")), ie("appsrockets_ad_clicked", (y) => {
|
|
2782
|
+
var v;
|
|
2783
|
+
return (v = a.value) == null ? void 0 : v.call(a, y);
|
|
2784
|
+
}), ie("appsrockets_ad_loaded", () => h(!0)), d.value ? b("div", {
|
|
2785
|
+
className: kr,
|
|
2786
|
+
style: {
|
|
2787
|
+
display: c ? "flex" : "none"
|
|
2788
|
+
},
|
|
2789
|
+
children: d.value && b("iframe", {
|
|
2790
|
+
src: l.value,
|
|
2791
|
+
onLoad: f,
|
|
2792
|
+
allowFullScreen: !0,
|
|
2793
|
+
allow: "autoplay",
|
|
2794
|
+
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"
|
|
2795
|
+
})
|
|
2796
|
+
}) : null;
|
|
2797
|
+
};
|
|
2798
|
+
function Y(t, e, i) {
|
|
2799
|
+
return (e = xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2800
|
+
}
|
|
2801
|
+
function xr(t) {
|
|
2802
|
+
var e = Rr(t, "string");
|
|
2803
|
+
return typeof e == "symbol" ? e : e + "";
|
|
2804
|
+
}
|
|
2805
|
+
function Rr(t, e) {
|
|
2806
|
+
if (typeof t != "object" || !t)
|
|
2807
|
+
return t;
|
|
2808
|
+
var i = t[Symbol.toPrimitive];
|
|
2809
|
+
if (i !== void 0) {
|
|
2810
|
+
var n = i.call(t, e);
|
|
2811
|
+
if (typeof n != "object")
|
|
2812
|
+
return n;
|
|
2813
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2814
|
+
}
|
|
2815
|
+
return (e === "string" ? String : Number)(t);
|
|
2816
|
+
}
|
|
2817
|
+
class Ir {
|
|
2818
|
+
constructor(e, i) {
|
|
2819
|
+
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", pi()), Y(this, "processUrl", (n) => {
|
|
2820
|
+
var a;
|
|
2821
|
+
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2822
|
+
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();
|
|
2823
|
+
}), this.context = e;
|
|
2824
|
+
}
|
|
2825
|
+
async init() {
|
|
2826
|
+
var e;
|
|
2827
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(b(yi, {
|
|
2828
|
+
state: this.state
|
|
2829
|
+
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2830
|
+
}
|
|
2831
|
+
adConfig(e) {
|
|
2832
|
+
var i;
|
|
2833
|
+
if (this.initialized) {
|
|
2834
|
+
(i = e.onReady) == null || i.call(e);
|
|
2835
|
+
return;
|
|
2836
|
+
}
|
|
2837
|
+
this.initCompleter = () => {
|
|
2838
|
+
var n;
|
|
2839
|
+
(n = e.onReady) == null || n.call(e);
|
|
2840
|
+
};
|
|
2841
|
+
}
|
|
2842
|
+
adBreak(e, i) {
|
|
2843
|
+
var r, o, s, a, d, l, c, h;
|
|
2844
|
+
if (!this.initialized || !this.adsOverlay || !i.params.url) {
|
|
2845
|
+
(r = e.adBreakDone) == null || r.call(e, {
|
|
2846
|
+
breakType: e.type,
|
|
2847
|
+
breakName: e.type === "preroll" ? "" : e.name,
|
|
2848
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2849
|
+
breakStatus: "notReady"
|
|
2850
|
+
});
|
|
2851
|
+
return;
|
|
2852
|
+
}
|
|
2853
|
+
if (this.adsIsShowing) {
|
|
2854
|
+
(o = e.adBreakDone) == null || o.call(e, {
|
|
2855
|
+
breakType: e.type,
|
|
2856
|
+
breakName: e.type === "preroll" ? "" : e.name,
|
|
2857
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2858
|
+
breakStatus: "frequencyCapped"
|
|
2859
|
+
});
|
|
2860
|
+
return;
|
|
2861
|
+
}
|
|
2862
|
+
const n = (u) => {
|
|
2863
|
+
var f, y;
|
|
2864
|
+
(y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
|
|
2865
|
+
};
|
|
2866
|
+
switch (e.type) {
|
|
2867
|
+
case "preroll": {
|
|
2868
|
+
(s = e.adBreakDone) == null || s.call(e, {
|
|
2869
|
+
breakType: e.type,
|
|
2870
|
+
breakName: "",
|
|
2871
|
+
breakFormat: "interstitial",
|
|
2872
|
+
breakStatus: "noAdPreloaded"
|
|
2873
|
+
});
|
|
2874
|
+
break;
|
|
2875
|
+
}
|
|
2876
|
+
case "start":
|
|
2877
|
+
case "browse":
|
|
2878
|
+
case "next":
|
|
2879
|
+
case "pause": {
|
|
2880
|
+
(a = e.beforeAd) == null || a.call(e);
|
|
2682
2881
|
const u = () => {
|
|
2683
2882
|
var v;
|
|
2684
2883
|
this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
|
|
@@ -2690,44 +2889,54 @@ class Er {
|
|
|
2690
2889
|
breakFormat: "interstitial",
|
|
2691
2890
|
breakStatus: "viewed"
|
|
2692
2891
|
});
|
|
2892
|
+
}, y = () => {
|
|
2893
|
+
var v;
|
|
2894
|
+
this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
|
|
2895
|
+
breakType: e.type,
|
|
2896
|
+
breakName: e.name,
|
|
2897
|
+
breakFormat: "interstitial",
|
|
2898
|
+
breakStatus: "noAdPreloaded"
|
|
2899
|
+
});
|
|
2693
2900
|
};
|
|
2694
|
-
|
|
2695
|
-
this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = i.params.url, this.state.
|
|
2901
|
+
T(() => {
|
|
2902
|
+
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
2903
|
});
|
|
2697
2904
|
break;
|
|
2698
2905
|
}
|
|
2699
2906
|
case "reward": {
|
|
2700
|
-
this.lastUnDisplayedAdBreak && ((
|
|
2907
|
+
this.lastUnDisplayedAdBreak && ((l = (d = this.lastUnDisplayedAdBreak).adBreakDone) == null || l.call(d, {
|
|
2701
2908
|
breakType: this.lastUnDisplayedAdBreak.type,
|
|
2702
2909
|
breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
|
|
2703
2910
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
2704
2911
|
breakStatus: "ignored"
|
|
2705
|
-
}), this.lastUnDisplayedAdBreak = null), (
|
|
2912
|
+
}), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
|
|
2706
2913
|
const u = () => {
|
|
2707
|
-
var
|
|
2708
|
-
this.adsIsShowing = !1, (
|
|
2914
|
+
var w;
|
|
2915
|
+
this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
|
|
2709
2916
|
}, f = {
|
|
2710
2917
|
breakType: e.type,
|
|
2711
2918
|
breakName: e.name,
|
|
2712
2919
|
breakFormat: "reward",
|
|
2713
2920
|
breakStatus: "ignored"
|
|
2714
|
-
}, v = () => {
|
|
2715
|
-
var h;
|
|
2716
|
-
this.adsIsShowing = !1, f.breakStatus = "dismissed", (h = e.adDismissed) == null || h.call(e);
|
|
2717
2921
|
}, y = () => {
|
|
2718
|
-
var
|
|
2719
|
-
this.adsIsShowing = !1, f.breakStatus = "
|
|
2720
|
-
},
|
|
2721
|
-
var
|
|
2722
|
-
this.adsIsShowing = !1, (
|
|
2922
|
+
var w;
|
|
2923
|
+
this.adsIsShowing = !1, f.breakStatus = "dismissed", (w = e.adDismissed) == null || w.call(e);
|
|
2924
|
+
}, v = () => {
|
|
2925
|
+
var w;
|
|
2926
|
+
this.adsIsShowing = !1, f.breakStatus = "viewed", (w = e.adViewed) == null || w.call(e);
|
|
2927
|
+
}, g = () => {
|
|
2928
|
+
var w;
|
|
2929
|
+
this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, f);
|
|
2930
|
+
}, p = () => {
|
|
2931
|
+
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2723
2932
|
};
|
|
2724
|
-
|
|
2725
|
-
this.state.afterAd.value = u, this.state.adDismissed.value =
|
|
2933
|
+
T(() => {
|
|
2934
|
+
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
2935
|
});
|
|
2727
|
-
const
|
|
2728
|
-
var
|
|
2936
|
+
const _ = () => {
|
|
2937
|
+
var w;
|
|
2729
2938
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2730
|
-
(
|
|
2939
|
+
(w = e.adBreakDone) == null || w.call(e, {
|
|
2731
2940
|
breakType: e.type,
|
|
2732
2941
|
breakName: e.name,
|
|
2733
2942
|
breakFormat: "reward",
|
|
@@ -2735,25 +2944,24 @@ class Er {
|
|
|
2735
2944
|
});
|
|
2736
2945
|
return;
|
|
2737
2946
|
}
|
|
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;
|
|
2947
|
+
this.adsIsShowing = !0, T(() => {
|
|
2948
|
+
this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
|
|
2741
2949
|
});
|
|
2742
2950
|
};
|
|
2743
|
-
this.lastUnDisplayedAdBreak = e, (
|
|
2951
|
+
this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, _);
|
|
2744
2952
|
break;
|
|
2745
2953
|
}
|
|
2746
2954
|
}
|
|
2747
2955
|
}
|
|
2748
2956
|
}
|
|
2749
|
-
function
|
|
2750
|
-
return (e =
|
|
2957
|
+
function Q(t, e, i) {
|
|
2958
|
+
return (e = Or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2751
2959
|
}
|
|
2752
|
-
function
|
|
2753
|
-
var e =
|
|
2960
|
+
function Or(t) {
|
|
2961
|
+
var e = Tr(t, "string");
|
|
2754
2962
|
return typeof e == "symbol" ? e : e + "";
|
|
2755
2963
|
}
|
|
2756
|
-
function
|
|
2964
|
+
function Tr(t, e) {
|
|
2757
2965
|
if (typeof t != "object" || !t)
|
|
2758
2966
|
return t;
|
|
2759
2967
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2765,15 +2973,19 @@ function xr(t, e) {
|
|
|
2765
2973
|
}
|
|
2766
2974
|
return (e === "string" ? String : Number)(t);
|
|
2767
2975
|
}
|
|
2768
|
-
class
|
|
2976
|
+
class co {
|
|
2769
2977
|
constructor(e) {
|
|
2770
|
-
if (
|
|
2771
|
-
this.context = e, this.channelPolicy = new
|
|
2978
|
+
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)
|
|
2979
|
+
this.context = e, this.channelPolicy = new hn(this.context), this.adsActionDetection = new Ti(this.context), this.adsTrackSerializer = new Kt(this.context), this.contextInfo = this.context.getContextInfo();
|
|
2772
2980
|
else
|
|
2773
2981
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
2774
2982
|
}
|
|
2775
2983
|
getRequestContextData(e) {
|
|
2776
|
-
var
|
|
2984
|
+
var r, o;
|
|
2985
|
+
const {
|
|
2986
|
+
width: i,
|
|
2987
|
+
height: n
|
|
2988
|
+
} = this.context.getWindowInfo();
|
|
2777
2989
|
return {
|
|
2778
2990
|
report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
|
|
2779
2991
|
sessionId: this.contextInfo.sessionId,
|
|
@@ -2786,8 +2998,12 @@ class to {
|
|
|
2786
2998
|
sessionId: this.contextInfo.sessionId,
|
|
2787
2999
|
deviceId: this.contextInfo.deviceId,
|
|
2788
3000
|
adId: this.contextInfo.adId,
|
|
2789
|
-
deviceModel: (
|
|
2790
|
-
deviceBrand: (
|
|
3001
|
+
deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
|
|
3002
|
+
deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
|
|
3003
|
+
dimension: {
|
|
3004
|
+
width: i,
|
|
3005
|
+
height: n
|
|
3006
|
+
}
|
|
2791
3007
|
};
|
|
2792
3008
|
}
|
|
2793
3009
|
getRequestBizParams() {
|
|
@@ -2811,15 +3027,20 @@ class to {
|
|
|
2811
3027
|
for (const n of i)
|
|
2812
3028
|
switch (n.provider) {
|
|
2813
3029
|
case "ADSENSE": {
|
|
2814
|
-
const r = new
|
|
3030
|
+
const r = new pn(this.context, n.params);
|
|
2815
3031
|
await r.init(), this.providers.ADSENSE = r;
|
|
2816
3032
|
break;
|
|
2817
3033
|
}
|
|
2818
3034
|
case "OKSPIN": {
|
|
2819
|
-
const r = new
|
|
3035
|
+
const r = new Sr(this.context, n.params);
|
|
2820
3036
|
await r.init(), this.providers.OKSPIN = r;
|
|
2821
3037
|
break;
|
|
2822
3038
|
}
|
|
3039
|
+
case "APPSROCKETS": {
|
|
3040
|
+
const r = new Ir(this.context, n.params);
|
|
3041
|
+
await r.init(), this.providers.APPSROCKETS = r;
|
|
3042
|
+
break;
|
|
3043
|
+
}
|
|
2823
3044
|
}
|
|
2824
3045
|
this.initialized = !0;
|
|
2825
3046
|
}
|
|
@@ -2827,7 +3048,7 @@ class to {
|
|
|
2827
3048
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
2828
3049
|
}
|
|
2829
3050
|
async adBreak(e) {
|
|
2830
|
-
var r, o, s, a, d, l, c,
|
|
3051
|
+
var r, o, s, a, d, l, c, h, u;
|
|
2831
3052
|
if (Date.now() - this.initializedTimeStamp < 3e3) {
|
|
2832
3053
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
2833
3054
|
breakType: e.type,
|
|
@@ -2857,7 +3078,7 @@ class to {
|
|
|
2857
3078
|
}
|
|
2858
3079
|
try {
|
|
2859
3080
|
const {
|
|
2860
|
-
data:
|
|
3081
|
+
data: f,
|
|
2861
3082
|
code: y
|
|
2862
3083
|
} = await this.context.httpClient.post("/api/ads/info", {
|
|
2863
3084
|
data: {
|
|
@@ -2877,8 +3098,8 @@ class to {
|
|
|
2877
3098
|
});
|
|
2878
3099
|
return;
|
|
2879
3100
|
} else {
|
|
2880
|
-
const
|
|
2881
|
-
if (
|
|
3101
|
+
const v = f == null ? void 0 : f.sort((w, P) => w.seq - P.seq);
|
|
3102
|
+
if (v.length === 0) {
|
|
2882
3103
|
(d = e.adBreakDone) == null || d.call(e, {
|
|
2883
3104
|
breakType: e.type,
|
|
2884
3105
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
@@ -2887,47 +3108,47 @@ class to {
|
|
|
2887
3108
|
});
|
|
2888
3109
|
return;
|
|
2889
3110
|
}
|
|
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
|
-
|
|
3111
|
+
let g = !0, p = null;
|
|
3112
|
+
const _ = new Ri(this.context);
|
|
3113
|
+
for ((l = this.context.eventEmitter) == null || l.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0; v.length > 0; ) {
|
|
3114
|
+
const w = v.shift(), P = this.providers[w.provider];
|
|
3115
|
+
if (P) {
|
|
3116
|
+
const [U, F] = await _.callAdBreakAndContinue(P, e, w);
|
|
3117
|
+
g = U, p = F;
|
|
2897
3118
|
} else
|
|
2898
|
-
|
|
3119
|
+
g = !0, p = {
|
|
2899
3120
|
breakType: e.type,
|
|
2900
3121
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
2901
3122
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2902
3123
|
breakStatus: "notReady"
|
|
2903
3124
|
};
|
|
2904
|
-
if (!
|
|
3125
|
+
if (!g)
|
|
2905
3126
|
break;
|
|
2906
3127
|
}
|
|
2907
|
-
|
|
3128
|
+
g && p && ((c = e.adBreakDone) == null || c.call(e, p));
|
|
2908
3129
|
}
|
|
2909
|
-
} catch (
|
|
2910
|
-
(
|
|
3130
|
+
} catch (f) {
|
|
3131
|
+
(h = e.adBreakDone) == null || h.call(e, {
|
|
2911
3132
|
breakType: e.type,
|
|
2912
3133
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2913
3134
|
breakStatus: "noAdPreloaded"
|
|
2914
3135
|
});
|
|
2915
3136
|
} finally {
|
|
2916
|
-
(
|
|
3137
|
+
(u = this.context.eventEmitter) == null || u.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
2917
3138
|
}
|
|
2918
3139
|
}
|
|
2919
3140
|
adUnit(e) {
|
|
2920
3141
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
2921
3142
|
}
|
|
2922
3143
|
}
|
|
2923
|
-
function
|
|
2924
|
-
return (e =
|
|
3144
|
+
function Je(t, e, i) {
|
|
3145
|
+
return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2925
3146
|
}
|
|
2926
|
-
function
|
|
2927
|
-
var e =
|
|
3147
|
+
function Dr(t) {
|
|
3148
|
+
var e = Lr(t, "string");
|
|
2928
3149
|
return typeof e == "symbol" ? e : e + "";
|
|
2929
3150
|
}
|
|
2930
|
-
function
|
|
3151
|
+
function Lr(t, e) {
|
|
2931
3152
|
if (typeof t != "object" || !t)
|
|
2932
3153
|
return t;
|
|
2933
3154
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2939,9 +3160,9 @@ function Ir(t, e) {
|
|
|
2939
3160
|
}
|
|
2940
3161
|
return (e === "string" ? String : Number)(t);
|
|
2941
3162
|
}
|
|
2942
|
-
class
|
|
3163
|
+
class Cr {
|
|
2943
3164
|
constructor(e) {
|
|
2944
|
-
|
|
3165
|
+
Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), this.context = e;
|
|
2945
3166
|
}
|
|
2946
3167
|
get paramsToTrack() {
|
|
2947
3168
|
var e, i;
|
|
@@ -2984,14 +3205,14 @@ class Tr {
|
|
|
2984
3205
|
});
|
|
2985
3206
|
}
|
|
2986
3207
|
}
|
|
2987
|
-
function
|
|
2988
|
-
return (e =
|
|
3208
|
+
function Ye(t, e, i) {
|
|
3209
|
+
return (e = Nr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2989
3210
|
}
|
|
2990
|
-
function
|
|
2991
|
-
var e =
|
|
3211
|
+
function Nr(t) {
|
|
3212
|
+
var e = Pr(t, "string");
|
|
2992
3213
|
return typeof e == "symbol" ? e : e + "";
|
|
2993
3214
|
}
|
|
2994
|
-
function
|
|
3215
|
+
function Pr(t, e) {
|
|
2995
3216
|
if (typeof t != "object" || !t)
|
|
2996
3217
|
return t;
|
|
2997
3218
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3003,27 +3224,27 @@ function kr(t, e) {
|
|
|
3003
3224
|
}
|
|
3004
3225
|
return (e === "string" ? String : Number)(t);
|
|
3005
3226
|
}
|
|
3006
|
-
class
|
|
3227
|
+
class M extends Error {
|
|
3007
3228
|
constructor(e, i) {
|
|
3008
|
-
super(e.message),
|
|
3229
|
+
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
3230
|
}
|
|
3010
3231
|
static from(e, i) {
|
|
3011
3232
|
switch (i) {
|
|
3012
3233
|
case "GOOGLE_IMA_ERROR":
|
|
3013
|
-
return new
|
|
3234
|
+
return new M(e, i);
|
|
3014
3235
|
case "JOLIBOX_IMA_ERROR":
|
|
3015
|
-
return new
|
|
3236
|
+
return new M(e, i);
|
|
3016
3237
|
}
|
|
3017
3238
|
}
|
|
3018
3239
|
}
|
|
3019
|
-
function
|
|
3020
|
-
return (e =
|
|
3240
|
+
function x(t, e, i) {
|
|
3241
|
+
return (e = Mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3021
3242
|
}
|
|
3022
|
-
function
|
|
3023
|
-
var e =
|
|
3243
|
+
function Mr(t) {
|
|
3244
|
+
var e = $r(t, "string");
|
|
3024
3245
|
return typeof e == "symbol" ? e : e + "";
|
|
3025
3246
|
}
|
|
3026
|
-
function
|
|
3247
|
+
function $r(t, e) {
|
|
3027
3248
|
if (typeof t != "object" || !t)
|
|
3028
3249
|
return t;
|
|
3029
3250
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3035,33 +3256,33 @@ function Lr(t, e) {
|
|
|
3035
3256
|
}
|
|
3036
3257
|
return (e === "string" ? String : Number)(t);
|
|
3037
3258
|
}
|
|
3038
|
-
class
|
|
3259
|
+
class Ur {
|
|
3039
3260
|
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
|
-
}),
|
|
3261
|
+
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", () => {
|
|
3262
|
+
var r, o, s, a, d, l, c, h, u, f, y;
|
|
3263
|
+
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);
|
|
3264
|
+
}), x(this, "requestAds", async (r, o) => {
|
|
3044
3265
|
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 (
|
|
3266
|
+
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
|
|
3267
|
+
var u;
|
|
3268
|
+
return (u = r.onAdError) == null ? void 0 : u.call(r, M.from(h, "GOOGLE_IMA_ERROR"));
|
|
3048
3269
|
}, 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
3270
|
const s = () => {
|
|
3050
|
-
var
|
|
3051
|
-
this.isAdPlaying || (this.isContentFinished = !0, (
|
|
3271
|
+
var h;
|
|
3272
|
+
this.isAdPlaying || (this.isContentFinished = !0, (h = this.adsLoader) == null || h.contentComplete());
|
|
3052
3273
|
};
|
|
3053
3274
|
this.videoContent.onended = s;
|
|
3054
3275
|
const a = new window.google.ima.AdsRequest();
|
|
3055
3276
|
let d = "";
|
|
3056
|
-
Object.keys(o.params).forEach((
|
|
3057
|
-
const
|
|
3058
|
-
d += `&${
|
|
3277
|
+
Object.keys(o.params).forEach((h) => {
|
|
3278
|
+
const u = window.encodeURIComponent(o.params[h]);
|
|
3279
|
+
d += `&${h}=${u}`;
|
|
3059
3280
|
});
|
|
3060
3281
|
const l = `${this.adTagUrl}${d}`;
|
|
3061
3282
|
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
|
-
}),
|
|
3283
|
+
}), x(this, "createAdDisplayContainer", () => {
|
|
3063
3284
|
this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
|
|
3064
|
-
}),
|
|
3285
|
+
}), x(this, "playAds", () => {
|
|
3065
3286
|
var r, o;
|
|
3066
3287
|
this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
|
|
3067
3288
|
try {
|
|
@@ -3069,10 +3290,10 @@ class Nr {
|
|
|
3069
3290
|
} catch (s) {
|
|
3070
3291
|
console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
|
|
3071
3292
|
}
|
|
3072
|
-
}),
|
|
3293
|
+
}), x(this, "onAdsManagerLoaded", (r) => {
|
|
3073
3294
|
const o = new window.google.ima.AdsRenderingSettings();
|
|
3074
3295
|
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
|
-
}),
|
|
3296
|
+
}), x(this, "onAdEvent", (r) => {
|
|
3076
3297
|
var s, a, d, l;
|
|
3077
3298
|
const o = r.getAd();
|
|
3078
3299
|
switch (r.type) {
|
|
@@ -3090,19 +3311,19 @@ class Nr {
|
|
|
3090
3311
|
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
|
|
3091
3312
|
break;
|
|
3092
3313
|
}
|
|
3093
|
-
}),
|
|
3314
|
+
}), x(this, "onAdError", (r) => {
|
|
3094
3315
|
var o, s;
|
|
3095
3316
|
(o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
|
|
3096
|
-
}),
|
|
3317
|
+
}), x(this, "onContentPauseRequested", () => {
|
|
3097
3318
|
this.isAdPlaying = !0, this.videoContent.pause();
|
|
3098
|
-
}),
|
|
3319
|
+
}), x(this, "onContentResumeRequested", () => {
|
|
3099
3320
|
this.isAdPlaying = !1;
|
|
3100
3321
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3101
3322
|
}
|
|
3102
3323
|
}
|
|
3103
|
-
var
|
|
3104
|
-
const
|
|
3105
|
-
const t =
|
|
3324
|
+
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 || {});
|
|
3325
|
+
const Br = () => {
|
|
3326
|
+
const t = E(!1), e = E(!1), i = E(null), n = vt(), r = vt();
|
|
3106
3327
|
return {
|
|
3107
3328
|
visible: t,
|
|
3108
3329
|
canRetry: e,
|
|
@@ -3110,8 +3331,8 @@ const Pr = () => {
|
|
|
3110
3331
|
videoRef: n,
|
|
3111
3332
|
adContainerRef: r
|
|
3112
3333
|
};
|
|
3113
|
-
},
|
|
3114
|
-
${
|
|
3334
|
+
}, jr = le`
|
|
3335
|
+
${N}
|
|
3115
3336
|
position: fixed;
|
|
3116
3337
|
left: 0;
|
|
3117
3338
|
top: 0;
|
|
@@ -3126,7 +3347,7 @@ const Pr = () => {
|
|
|
3126
3347
|
}
|
|
3127
3348
|
|
|
3128
3349
|
.ads-wrapper {
|
|
3129
|
-
${
|
|
3350
|
+
${N}
|
|
3130
3351
|
position: relative;
|
|
3131
3352
|
width: 100%;
|
|
3132
3353
|
height: 100%;
|
|
@@ -3149,7 +3370,7 @@ const Pr = () => {
|
|
|
3149
3370
|
}
|
|
3150
3371
|
|
|
3151
3372
|
.retry-button {
|
|
3152
|
-
${
|
|
3373
|
+
${N}
|
|
3153
3374
|
position: absolute;
|
|
3154
3375
|
width: 100%;
|
|
3155
3376
|
height: 100%;
|
|
@@ -3159,7 +3380,7 @@ const Pr = () => {
|
|
|
3159
3380
|
cursor: pointer;
|
|
3160
3381
|
}
|
|
3161
3382
|
}
|
|
3162
|
-
`,
|
|
3383
|
+
`, Fr = (t) => {
|
|
3163
3384
|
let {
|
|
3164
3385
|
onReady: e,
|
|
3165
3386
|
state: i
|
|
@@ -3171,40 +3392,40 @@ const Pr = () => {
|
|
|
3171
3392
|
videoRef: s,
|
|
3172
3393
|
adContainerRef: a
|
|
3173
3394
|
} = i, d = () => {
|
|
3174
|
-
r.value && (r.value(),
|
|
3395
|
+
r.value && (r.value(), T(() => {
|
|
3175
3396
|
r.value = null, o.value = !1;
|
|
3176
3397
|
}));
|
|
3177
3398
|
};
|
|
3178
|
-
return
|
|
3399
|
+
return Ue(() => {
|
|
3179
3400
|
e();
|
|
3180
|
-
}, [e]),
|
|
3181
|
-
className:
|
|
3401
|
+
}, [e]), b("div", {
|
|
3402
|
+
className: jr,
|
|
3182
3403
|
"data-visible": n.value,
|
|
3183
|
-
children:
|
|
3404
|
+
children: b("div", {
|
|
3184
3405
|
className: "ads-wrapper",
|
|
3185
|
-
children: [
|
|
3406
|
+
children: [b("video", {
|
|
3186
3407
|
ref: s,
|
|
3187
3408
|
width: "100%",
|
|
3188
3409
|
height: "100%"
|
|
3189
|
-
}),
|
|
3410
|
+
}), b("div", {
|
|
3190
3411
|
id: "ad-container",
|
|
3191
3412
|
ref: a
|
|
3192
|
-
}), o.value ?
|
|
3413
|
+
}), o.value ? b("div", {
|
|
3193
3414
|
className: "retry-button",
|
|
3194
3415
|
onClick: d,
|
|
3195
|
-
children:
|
|
3416
|
+
children: b("svg", {
|
|
3196
3417
|
width: "64",
|
|
3197
3418
|
height: "64",
|
|
3198
3419
|
viewBox: "0 0 64 64",
|
|
3199
3420
|
fill: "none",
|
|
3200
3421
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3201
|
-
children: [
|
|
3422
|
+
children: [b("circle", {
|
|
3202
3423
|
cx: "32",
|
|
3203
3424
|
cy: "32",
|
|
3204
3425
|
r: "32",
|
|
3205
3426
|
fill: "#141416",
|
|
3206
3427
|
fillOpacity: "0.3"
|
|
3207
|
-
}),
|
|
3428
|
+
}), b("path", {
|
|
3208
3429
|
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
3430
|
fill: "white"
|
|
3210
3431
|
})]
|
|
@@ -3213,14 +3434,14 @@ const Pr = () => {
|
|
|
3213
3434
|
})
|
|
3214
3435
|
});
|
|
3215
3436
|
};
|
|
3216
|
-
function
|
|
3217
|
-
return (e =
|
|
3437
|
+
function X(t, e, i) {
|
|
3438
|
+
return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3218
3439
|
}
|
|
3219
|
-
function
|
|
3220
|
-
var e =
|
|
3440
|
+
function Vr(t) {
|
|
3441
|
+
var e = zr(t, "string");
|
|
3221
3442
|
return typeof e == "symbol" ? e : e + "";
|
|
3222
3443
|
}
|
|
3223
|
-
function
|
|
3444
|
+
function zr(t, e) {
|
|
3224
3445
|
if (typeof t != "object" || !t)
|
|
3225
3446
|
return t;
|
|
3226
3447
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3232,9 +3453,9 @@ function Ur(t, e) {
|
|
|
3232
3453
|
}
|
|
3233
3454
|
return (e === "string" ? String : Number)(t);
|
|
3234
3455
|
}
|
|
3235
|
-
class
|
|
3456
|
+
class Gr {
|
|
3236
3457
|
constructor(e) {
|
|
3237
|
-
|
|
3458
|
+
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", Br()), X(this, "init", async (i) => {
|
|
3238
3459
|
if (this.initialized)
|
|
3239
3460
|
return;
|
|
3240
3461
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3250,19 +3471,19 @@ class jr {
|
|
|
3250
3471
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3251
3472
|
}
|
|
3252
3473
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3253
|
-
|
|
3474
|
+
te(b(Fr, {
|
|
3254
3475
|
state: this.state,
|
|
3255
3476
|
onReady: () => {
|
|
3256
|
-
this.ima = new
|
|
3477
|
+
this.ima = new Ur(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3257
3478
|
}
|
|
3258
3479
|
}), this.adsOverlay);
|
|
3259
3480
|
}), this.initialized = !0;
|
|
3260
|
-
}),
|
|
3261
|
-
this.adsOverlay && (
|
|
3262
|
-
}),
|
|
3481
|
+
}), X(this, "destroy", () => {
|
|
3482
|
+
this.adsOverlay && (te(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
3483
|
+
}), X(this, "requestAd", (i, n) => {
|
|
3263
3484
|
var a;
|
|
3264
3485
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3265
|
-
const d =
|
|
3486
|
+
const d = M.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3266
3487
|
(a = i.onAdError) == null || a.call(i, d);
|
|
3267
3488
|
return;
|
|
3268
3489
|
}
|
|
@@ -3272,9 +3493,9 @@ class jr {
|
|
|
3272
3493
|
}, o = (d) => {
|
|
3273
3494
|
let l = !1;
|
|
3274
3495
|
switch (d.raw.getErrorCode()) {
|
|
3275
|
-
case
|
|
3276
|
-
case
|
|
3277
|
-
case
|
|
3496
|
+
case Ce.AUTOPLAY_DISALLOWED:
|
|
3497
|
+
case Ce.VIDEO_PLAY_ERROR:
|
|
3498
|
+
case Ce.ADS_REQUEST_NETWORK_ERROR: {
|
|
3278
3499
|
l = !0;
|
|
3279
3500
|
break;
|
|
3280
3501
|
}
|
|
@@ -3289,7 +3510,7 @@ class jr {
|
|
|
3289
3510
|
const c = () => {
|
|
3290
3511
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3291
3512
|
};
|
|
3292
|
-
|
|
3513
|
+
T(() => {
|
|
3293
3514
|
this.state.canRetry.value = !0, this.state.retry.value = c;
|
|
3294
3515
|
});
|
|
3295
3516
|
}
|
|
@@ -3298,14 +3519,14 @@ class jr {
|
|
|
3298
3519
|
}), this.context = e;
|
|
3299
3520
|
}
|
|
3300
3521
|
}
|
|
3301
|
-
function
|
|
3302
|
-
return (e =
|
|
3522
|
+
function K(t, e, i) {
|
|
3523
|
+
return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3303
3524
|
}
|
|
3304
|
-
function
|
|
3305
|
-
var e =
|
|
3525
|
+
function Kr(t) {
|
|
3526
|
+
var e = qr(t, "string");
|
|
3306
3527
|
return typeof e == "symbol" ? e : e + "";
|
|
3307
3528
|
}
|
|
3308
|
-
function
|
|
3529
|
+
function qr(t, e) {
|
|
3309
3530
|
if (typeof t != "object" || !t)
|
|
3310
3531
|
return t;
|
|
3311
3532
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3317,24 +3538,24 @@ function Br(t, e) {
|
|
|
3317
3538
|
}
|
|
3318
3539
|
return (e === "string" ? String : Number)(t);
|
|
3319
3540
|
}
|
|
3320
|
-
class
|
|
3541
|
+
class Hr {
|
|
3321
3542
|
constructor(e) {
|
|
3322
|
-
|
|
3543
|
+
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", fi()), K(this, "init", async (i) => {
|
|
3323
3544
|
var n;
|
|
3324
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"),
|
|
3545
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(b(vi, {
|
|
3325
3546
|
state: this.state
|
|
3326
3547
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3327
|
-
}),
|
|
3548
|
+
}), K(this, "destroy", () => {
|
|
3328
3549
|
var i;
|
|
3329
|
-
this.adsOverlay && (
|
|
3330
|
-
}),
|
|
3550
|
+
this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
3551
|
+
}), K(this, "requestAd", (i, n) => {
|
|
3331
3552
|
var s, a, d, l;
|
|
3332
3553
|
if (!this.adsOverlay || !this.initialized) {
|
|
3333
|
-
(s = i.onAdError) == null || s.call(i,
|
|
3554
|
+
(s = i.onAdError) == null || s.call(i, M.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3334
3555
|
return;
|
|
3335
3556
|
}
|
|
3336
3557
|
if (this.adsIsShowing) {
|
|
3337
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3558
|
+
(a = i.onAdError) == null || a.call(i, M.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3338
3559
|
return;
|
|
3339
3560
|
}
|
|
3340
3561
|
(d = i.onAdRequested) == null || d.call(i);
|
|
@@ -3345,21 +3566,84 @@ class Vr {
|
|
|
3345
3566
|
var c;
|
|
3346
3567
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3347
3568
|
};
|
|
3348
|
-
this.adsIsShowing = !0,
|
|
3569
|
+
this.adsIsShowing = !0, T(() => {
|
|
3349
3570
|
var c;
|
|
3350
3571
|
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
3572
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
3352
3573
|
}), this.context = e;
|
|
3353
3574
|
}
|
|
3354
3575
|
}
|
|
3355
|
-
function
|
|
3356
|
-
return (e =
|
|
3576
|
+
function z(t, e, i) {
|
|
3577
|
+
return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3578
|
+
}
|
|
3579
|
+
function Wr(t) {
|
|
3580
|
+
var e = Jr(t, "string");
|
|
3581
|
+
return typeof e == "symbol" ? e : e + "";
|
|
3582
|
+
}
|
|
3583
|
+
function Jr(t, e) {
|
|
3584
|
+
if (typeof t != "object" || !t)
|
|
3585
|
+
return t;
|
|
3586
|
+
var i = t[Symbol.toPrimitive];
|
|
3587
|
+
if (i !== void 0) {
|
|
3588
|
+
var n = i.call(t, e);
|
|
3589
|
+
if (typeof n != "object")
|
|
3590
|
+
return n;
|
|
3591
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3592
|
+
}
|
|
3593
|
+
return (e === "string" ? String : Number)(t);
|
|
3594
|
+
}
|
|
3595
|
+
class Yr {
|
|
3596
|
+
constructor(e) {
|
|
3597
|
+
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", pi()), z(this, "processUrl", (i) => {
|
|
3598
|
+
var s;
|
|
3599
|
+
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
3600
|
+
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();
|
|
3601
|
+
}), z(this, "init", async (i) => {
|
|
3602
|
+
var n;
|
|
3603
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(b(yi, {
|
|
3604
|
+
state: this.state
|
|
3605
|
+
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3606
|
+
}), z(this, "destroy", () => {
|
|
3607
|
+
var i;
|
|
3608
|
+
this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
3609
|
+
}), z(this, "requestAd", (i, n) => {
|
|
3610
|
+
var d, l, c, h;
|
|
3611
|
+
if (!this.adsOverlay || !this.initialized) {
|
|
3612
|
+
(d = i.onAdError) == null || d.call(i, M.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3613
|
+
return;
|
|
3614
|
+
}
|
|
3615
|
+
if (this.adsIsShowing) {
|
|
3616
|
+
(l = i.onAdError) == null || l.call(i, M.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3617
|
+
return;
|
|
3618
|
+
}
|
|
3619
|
+
(c = i.onAdRequested) == null || c.call(i);
|
|
3620
|
+
const r = () => {
|
|
3621
|
+
var u;
|
|
3622
|
+
this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
|
|
3623
|
+
}, o = () => {
|
|
3624
|
+
var u;
|
|
3625
|
+
(u = i.onAdLoaded) == null || u.call(i, void 0);
|
|
3626
|
+
}, s = (u) => {
|
|
3627
|
+
var f, y;
|
|
3628
|
+
(y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
|
|
3629
|
+
}, a = () => {
|
|
3630
|
+
var u;
|
|
3631
|
+
(u = i.onAdError) == null || u.call(i, M.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
3632
|
+
};
|
|
3633
|
+
this.adsIsShowing = !0, T(() => {
|
|
3634
|
+
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;
|
|
3635
|
+
}), (h = i.onAdPlaying) == null || h.call(i, void 0);
|
|
3636
|
+
}), this.context = e;
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3639
|
+
function pe(t, e, i) {
|
|
3640
|
+
return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3357
3641
|
}
|
|
3358
|
-
function
|
|
3359
|
-
var e =
|
|
3642
|
+
function Xr(t) {
|
|
3643
|
+
var e = Qr(t, "string");
|
|
3360
3644
|
return typeof e == "symbol" ? e : e + "";
|
|
3361
3645
|
}
|
|
3362
|
-
function
|
|
3646
|
+
function Qr(t, e) {
|
|
3363
3647
|
if (typeof t != "object" || !t)
|
|
3364
3648
|
return t;
|
|
3365
3649
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3371,15 +3655,19 @@ function Gr(t, e) {
|
|
|
3371
3655
|
}
|
|
3372
3656
|
return (e === "string" ? String : Number)(t);
|
|
3373
3657
|
}
|
|
3374
|
-
class
|
|
3658
|
+
class uo {
|
|
3375
3659
|
constructor(e) {
|
|
3376
|
-
if (
|
|
3377
|
-
this.context = e, this.adsTrackSerializer = new
|
|
3660
|
+
if (pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "providers", {}), pe(this, "adsTrackSerializer", void 0), pe(this, "initialized", !1), e)
|
|
3661
|
+
this.context = e, this.adsTrackSerializer = new Kt(e), this.contextInfo = this.context.getContextInfo();
|
|
3378
3662
|
else
|
|
3379
3663
|
throw new Error("JoliboxAdsForVideo requires a configuration object");
|
|
3380
3664
|
}
|
|
3381
3665
|
getRequestContextData(e) {
|
|
3382
|
-
var
|
|
3666
|
+
var r, o;
|
|
3667
|
+
const {
|
|
3668
|
+
width: i,
|
|
3669
|
+
height: n
|
|
3670
|
+
} = this.context.getWindowInfo();
|
|
3383
3671
|
return {
|
|
3384
3672
|
report: JSON.stringify(this.adsTrackSerializer.serialize(e, {
|
|
3385
3673
|
sessionId: this.contextInfo.sessionId,
|
|
@@ -3392,8 +3680,12 @@ class io {
|
|
|
3392
3680
|
sessionId: this.contextInfo.sessionId,
|
|
3393
3681
|
deviceId: this.contextInfo.deviceId,
|
|
3394
3682
|
adId: this.contextInfo.adId,
|
|
3395
|
-
deviceModel: (
|
|
3396
|
-
deviceBrand: (
|
|
3683
|
+
deviceModel: (r = this.contextInfo.deviceModel) != null ? r : "UnknownModel",
|
|
3684
|
+
deviceBrand: (o = this.contextInfo.deviceBrand) != null ? o : "UnknownBrand",
|
|
3685
|
+
dimension: {
|
|
3686
|
+
width: i,
|
|
3687
|
+
height: n
|
|
3688
|
+
}
|
|
3397
3689
|
};
|
|
3398
3690
|
}
|
|
3399
3691
|
getRequestBizParams() {
|
|
@@ -3416,15 +3708,20 @@ class io {
|
|
|
3416
3708
|
for (const i of e)
|
|
3417
3709
|
switch (i.provider) {
|
|
3418
3710
|
case "GOOGLE_IMA": {
|
|
3419
|
-
const n = new
|
|
3711
|
+
const n = new Gr(this.context);
|
|
3420
3712
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
3421
3713
|
break;
|
|
3422
3714
|
}
|
|
3423
3715
|
case "OKSPIN": {
|
|
3424
|
-
const n = new
|
|
3716
|
+
const n = new Hr(this.context);
|
|
3425
3717
|
await n.init(i), this.providers.OKSPIN = n;
|
|
3426
3718
|
break;
|
|
3427
3719
|
}
|
|
3720
|
+
case "APPSROCKETS": {
|
|
3721
|
+
const n = new Yr(this.context);
|
|
3722
|
+
await n.init(i), this.providers.APPSROCKETS = n;
|
|
3723
|
+
break;
|
|
3724
|
+
}
|
|
3428
3725
|
}
|
|
3429
3726
|
this.initialized = !0;
|
|
3430
3727
|
}
|
|
@@ -3440,7 +3737,7 @@ class io {
|
|
|
3440
3737
|
async requestAd(e) {
|
|
3441
3738
|
var i, n, r, o, s, a, d;
|
|
3442
3739
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
3443
|
-
const l =
|
|
3740
|
+
const l = M.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
3444
3741
|
(n = e.onAdError) == null || n.call(e, l);
|
|
3445
3742
|
return;
|
|
3446
3743
|
}
|
|
@@ -3457,46 +3754,46 @@ class io {
|
|
|
3457
3754
|
}
|
|
3458
3755
|
});
|
|
3459
3756
|
if (c !== "SUCCESS") {
|
|
3460
|
-
const
|
|
3461
|
-
(r = e.onAdError) == null || r.call(e,
|
|
3757
|
+
const h = M.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
3758
|
+
(r = e.onAdError) == null || r.call(e, h);
|
|
3462
3759
|
return;
|
|
3463
3760
|
} else {
|
|
3464
|
-
const
|
|
3465
|
-
if (
|
|
3466
|
-
const
|
|
3467
|
-
(o = e.onAdError) == null || o.call(e,
|
|
3761
|
+
const h = l == null ? void 0 : l.sort((v, g) => v.seq - g.seq);
|
|
3762
|
+
if (h.length === 0) {
|
|
3763
|
+
const v = M.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
3764
|
+
(o = e.onAdError) == null || o.call(e, v);
|
|
3468
3765
|
return;
|
|
3469
3766
|
}
|
|
3470
|
-
let
|
|
3471
|
-
const y = new
|
|
3472
|
-
for (;
|
|
3473
|
-
const
|
|
3474
|
-
if (
|
|
3475
|
-
const [
|
|
3476
|
-
|
|
3767
|
+
let u = !0, f = null;
|
|
3768
|
+
const y = new Cr(this.context);
|
|
3769
|
+
for (; h.length > 0; ) {
|
|
3770
|
+
const v = h.shift(), g = this.providers[v.provider];
|
|
3771
|
+
if (g) {
|
|
3772
|
+
const [p, _] = await y.callAdRequestAndContinue(g, e, v);
|
|
3773
|
+
u = p, f = _;
|
|
3477
3774
|
} else
|
|
3478
|
-
|
|
3479
|
-
if (!
|
|
3775
|
+
u = !0, f = M.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
3776
|
+
if (!u)
|
|
3480
3777
|
break;
|
|
3481
3778
|
}
|
|
3482
|
-
|
|
3779
|
+
u && f && ((s = e.onAdError) == null || s.call(e, f));
|
|
3483
3780
|
}
|
|
3484
3781
|
} catch (l) {
|
|
3485
|
-
const c =
|
|
3782
|
+
const c = M.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
3486
3783
|
(a = e.onAdError) == null || a.call(e, c);
|
|
3487
3784
|
} finally {
|
|
3488
3785
|
(d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
|
|
3489
3786
|
}
|
|
3490
3787
|
}
|
|
3491
3788
|
}
|
|
3492
|
-
function
|
|
3493
|
-
return (e =
|
|
3789
|
+
function ne(t, e, i) {
|
|
3790
|
+
return (e = Zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3494
3791
|
}
|
|
3495
|
-
function
|
|
3496
|
-
var e =
|
|
3792
|
+
function Zr(t) {
|
|
3793
|
+
var e = eo(t, "string");
|
|
3497
3794
|
return typeof e == "symbol" ? e : e + "";
|
|
3498
3795
|
}
|
|
3499
|
-
function
|
|
3796
|
+
function eo(t, e) {
|
|
3500
3797
|
if (typeof t != "object" || !t)
|
|
3501
3798
|
return t;
|
|
3502
3799
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3508,18 +3805,18 @@ function qr(t, e) {
|
|
|
3508
3805
|
}
|
|
3509
3806
|
return (e === "string" ? String : Number)(t);
|
|
3510
3807
|
}
|
|
3511
|
-
class
|
|
3808
|
+
class ho extends Error {
|
|
3512
3809
|
constructor(e) {
|
|
3513
|
-
super(e),
|
|
3810
|
+
super(e), ne(this, "name", void 0), ne(this, "message", void 0), ne(this, "errMsg", void 0), ne(this, "code", void 0), ne(this, "data", void 0), ne(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
3514
3811
|
}
|
|
3515
3812
|
}
|
|
3516
3813
|
export {
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3814
|
+
M as AFVWrappedError,
|
|
3815
|
+
pn as GoogleAdSenseProvider,
|
|
3816
|
+
Gr as GoogleIMAProvider,
|
|
3817
|
+
co as JoliboxAdsForGame,
|
|
3818
|
+
uo as JoliboxAdsForVideo,
|
|
3819
|
+
Sr as OKSpinForGameProvider,
|
|
3820
|
+
Hr as OKSpinForVideoProvider,
|
|
3821
|
+
ho as ResponseError
|
|
3525
3822
|
};
|