@jolibox/ads 1.1.29-beta.1 → 1.1.30
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/adbreak-async-proxy.d.ts +2 -1
- package/dist/afg/adsense/type.d.ts +3 -3
- package/dist/afg/appsrockets/type.d.ts +1 -1
- package/dist/afg/index.d.ts +2 -0
- package/dist/afg/type.d.ts +1 -0
- package/dist/index.js +732 -705
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var vt = Object.getOwnPropertySymbols;
|
|
2
|
+
var wi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var pt = (t, e) => {
|
|
4
4
|
var i = {};
|
|
5
5
|
for (var n in t)
|
|
6
|
-
|
|
7
|
-
if (t != null &&
|
|
8
|
-
for (var n of
|
|
9
|
-
e.indexOf(n) < 0 &&
|
|
6
|
+
wi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && vt)
|
|
8
|
+
for (var n of vt(t))
|
|
9
|
+
e.indexOf(n) < 0 && Ai.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as se, Component as
|
|
13
|
-
import { useRef as
|
|
14
|
-
function
|
|
15
|
-
return (e =
|
|
12
|
+
import { options as se, Component as mi, isValidElement as Ei } from "preact";
|
|
13
|
+
import { useRef as Si, useLayoutEffect as ki, useEffect as Ue, useMemo as Ii, useState as jt, useCallback as xi, render as te, createRef as yt } from "preact/compat";
|
|
14
|
+
function B(t, e, i) {
|
|
15
|
+
return (e = Ri(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
var e =
|
|
17
|
+
function Ri(t) {
|
|
18
|
+
var e = Ti(t, "string");
|
|
19
19
|
return typeof e == "symbol" ? e : e + "";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ti(t, e) {
|
|
22
22
|
if (typeof t != "object" || !t)
|
|
23
23
|
return t;
|
|
24
24
|
var i = t[Symbol.toPrimitive];
|
|
@@ -30,16 +30,17 @@ function xi(t, e) {
|
|
|
30
30
|
}
|
|
31
31
|
return (e === "string" ? String : Number)(t);
|
|
32
32
|
}
|
|
33
|
-
class
|
|
33
|
+
class Oi {
|
|
34
34
|
constructor(e) {
|
|
35
|
-
|
|
35
|
+
B(this, "context", void 0), B(this, "continueCallback", void 0), B(this, "adIsShowingCallback", void 0), B(this, "isBeforeAdCalled", !1), B(this, "isBeforeRewardCalled", !1), B(this, "isAdDismissedCalled", !1), B(this, "isAdViewedCalled", !1), B(this, "isAfterAdCalled", !1), B(this, "currentProvider", void 0), B(this, "currentClientParams", void 0), B(this, "adsHasResponse", !1), B(this, "videoChecker", window.document.createElement("video")), B(this, "wrapShowAdFn", (i) => () => {
|
|
36
|
+
var r;
|
|
36
37
|
this.adsHasResponse = !0;
|
|
37
38
|
let n = !1;
|
|
38
39
|
this.videoChecker.play().catch(() => {
|
|
39
40
|
n = !1;
|
|
40
41
|
}), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
41
42
|
userEvent: n
|
|
42
|
-
}, this.paramsToTrack)), i();
|
|
43
|
+
}, this.paramsToTrack)), (r = this.adIsShowingCallback) == null || r.call(this, !0), i();
|
|
43
44
|
}), this.context = e;
|
|
44
45
|
}
|
|
45
46
|
get paramsToTrack() {
|
|
@@ -52,7 +53,8 @@ class Ri {
|
|
|
52
53
|
}
|
|
53
54
|
wrapBeforeAd(e) {
|
|
54
55
|
return () => {
|
|
55
|
-
|
|
56
|
+
var i, n;
|
|
57
|
+
this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.isBeforeAdCalled || (this.isBeforeAdCalled = !0, e == null || e(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0)));
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
60
|
wrapBeforeReward(e) {
|
|
@@ -77,7 +79,7 @@ class Ri {
|
|
|
77
79
|
}
|
|
78
80
|
wrapAdBreakDone(e) {
|
|
79
81
|
return (i) => {
|
|
80
|
-
var n, r, o, s, a;
|
|
82
|
+
var n, r, o, s, a, d;
|
|
81
83
|
switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
|
|
82
84
|
provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
|
|
83
85
|
breakType: i.breakType,
|
|
@@ -89,11 +91,11 @@ class Ri {
|
|
|
89
91
|
case "ignored":
|
|
90
92
|
case "dismissed":
|
|
91
93
|
case "error": {
|
|
92
|
-
e == null || e(i), (s = this.
|
|
94
|
+
e == null || e(i), (s = this.adIsShowingCallback) == null || s.call(this, !1), (a = this.continueCallback) == null || a.call(this, [!1, i]);
|
|
93
95
|
break;
|
|
94
96
|
}
|
|
95
97
|
default: {
|
|
96
|
-
(
|
|
98
|
+
(d = this.continueCallback) == null || d.call(this, [!0, i]);
|
|
97
99
|
break;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
@@ -105,20 +107,20 @@ class Ri {
|
|
|
105
107
|
* @param clientParams Configuration for the ad break
|
|
106
108
|
* @returns Promise resolving with continuation flag and last placement info
|
|
107
109
|
*/
|
|
108
|
-
async callAdBreakAndContinue(e, i, n) {
|
|
109
|
-
return this.currentProvider = e, this.currentClientParams = i, this.adsHasResponse = !1, new Promise((
|
|
110
|
-
this.continueCallback = r;
|
|
111
|
-
let
|
|
110
|
+
async callAdBreakAndContinue(e, i, n, r) {
|
|
111
|
+
return this.currentProvider = e, this.currentClientParams = i, this.adsHasResponse = !1, new Promise((o) => {
|
|
112
|
+
this.continueCallback = o, this.adIsShowingCallback = r;
|
|
113
|
+
let s;
|
|
112
114
|
switch (i.type) {
|
|
113
115
|
case "preroll": {
|
|
114
|
-
|
|
116
|
+
s = {
|
|
115
117
|
type: i.type,
|
|
116
118
|
adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
|
|
117
119
|
};
|
|
118
120
|
break;
|
|
119
121
|
}
|
|
120
122
|
case "reward": {
|
|
121
|
-
|
|
123
|
+
s = {
|
|
122
124
|
name: i.name,
|
|
123
125
|
type: i.type,
|
|
124
126
|
beforeAd: this.wrapBeforeAd(i.beforeAd),
|
|
@@ -131,7 +133,7 @@ class Ri {
|
|
|
131
133
|
break;
|
|
132
134
|
}
|
|
133
135
|
default: {
|
|
134
|
-
|
|
136
|
+
s = {
|
|
135
137
|
name: i.name,
|
|
136
138
|
type: i.type,
|
|
137
139
|
beforeAd: this.wrapBeforeAd(i.beforeAd),
|
|
@@ -142,28 +144,28 @@ class Ri {
|
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
window.setTimeout(() => {
|
|
145
|
-
var
|
|
147
|
+
var a, d, l, c, h;
|
|
146
148
|
this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
|
|
147
149
|
type: i.type,
|
|
148
|
-
provider: (
|
|
149
|
-
}), (
|
|
150
|
+
provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
|
|
151
|
+
}), (c = this.continueCallback) == null || c.call(this, [!0, {
|
|
150
152
|
breakType: i.type,
|
|
151
|
-
breakName: i.type === "preroll" ? "" : (
|
|
153
|
+
breakName: i.type === "preroll" ? "" : (l = i.name) != null ? l : "",
|
|
152
154
|
breakFormat: i.type === "reward" ? "reward" : "interstitial",
|
|
153
155
|
breakStatus: "timeout"
|
|
154
|
-
}]));
|
|
155
|
-
}, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), e.adBreak(
|
|
156
|
+
}]), (h = this.adIsShowingCallback) == null || h.call(this, !1));
|
|
157
|
+
}, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), e.adBreak(s, n), window.JoliTesterBridge && console.log("joli-fullscreen-ad-show");
|
|
156
158
|
});
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
161
|
function Se(t, e, i) {
|
|
160
|
-
return (e =
|
|
162
|
+
return (e = Di(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
161
163
|
}
|
|
162
|
-
function
|
|
163
|
-
var e =
|
|
164
|
+
function Di(t) {
|
|
165
|
+
var e = Ci(t, "string");
|
|
164
166
|
return typeof e == "symbol" ? e : e + "";
|
|
165
167
|
}
|
|
166
|
-
function
|
|
168
|
+
function Ci(t, e) {
|
|
167
169
|
if (typeof t != "object" || !t)
|
|
168
170
|
return t;
|
|
169
171
|
var i = t[Symbol.toPrimitive];
|
|
@@ -175,7 +177,7 @@ function Oi(t, e) {
|
|
|
175
177
|
}
|
|
176
178
|
return (e === "string" ? String : Number)(t);
|
|
177
179
|
}
|
|
178
|
-
class
|
|
180
|
+
class Li {
|
|
179
181
|
constructor(e) {
|
|
180
182
|
Se(this, "context", void 0), Se(this, "adBreakIsShowing", !1), Se(this, "reportPageJumpOut", () => {
|
|
181
183
|
this.context.track("AdBreakJumpOut", {
|
|
@@ -192,29 +194,29 @@ class Ti {
|
|
|
192
194
|
});
|
|
193
195
|
}
|
|
194
196
|
}
|
|
195
|
-
var
|
|
197
|
+
var Ft = Object.defineProperty, Ni = Object.defineProperties, Pi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, gt = (t, e, i) => e in t ? Ft(t, e, {
|
|
196
198
|
enumerable: !0,
|
|
197
199
|
configurable: !0,
|
|
198
200
|
writable: !0,
|
|
199
201
|
value: i
|
|
200
|
-
}) : t[e] = i,
|
|
202
|
+
}) : t[e] = i, Ui = (t, e) => {
|
|
201
203
|
for (var i in e || (e = {}))
|
|
202
|
-
|
|
203
|
-
if (
|
|
204
|
-
for (var i of
|
|
205
|
-
|
|
204
|
+
Mi.call(e, i) && gt(t, i, e[i]);
|
|
205
|
+
if (_t)
|
|
206
|
+
for (var i of _t(e))
|
|
207
|
+
$i.call(e, i) && gt(t, i, e[i]);
|
|
206
208
|
return t;
|
|
207
|
-
},
|
|
209
|
+
}, Bi = (t, e) => Ni(t, Pi(e)), ji = (t, e) => {
|
|
208
210
|
for (var i in e)
|
|
209
|
-
|
|
211
|
+
Ft(t, i, {
|
|
210
212
|
get: e[i],
|
|
211
213
|
enumerable: !0
|
|
212
214
|
});
|
|
213
|
-
},
|
|
215
|
+
}, Vt = (t, e, i, n) => {
|
|
214
216
|
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
215
217
|
(s = t[o]) && (r = s(r) || r);
|
|
216
218
|
return r;
|
|
217
|
-
},
|
|
219
|
+
}, Fi = (t, e, i) => new Promise((n, r) => {
|
|
218
220
|
var o = (d) => {
|
|
219
221
|
try {
|
|
220
222
|
a(i.next(d));
|
|
@@ -259,26 +261,26 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
259
261
|
n.call(this, i);
|
|
260
262
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
261
263
|
}
|
|
262
|
-
function
|
|
264
|
+
function Vi(t) {
|
|
263
265
|
return new Promise((e) => {
|
|
264
266
|
setTimeout(() => {
|
|
265
267
|
e();
|
|
266
268
|
}, t);
|
|
267
269
|
});
|
|
268
270
|
}
|
|
269
|
-
function
|
|
271
|
+
function zi(t) {
|
|
270
272
|
return typeof t == "string";
|
|
271
273
|
}
|
|
272
|
-
function
|
|
274
|
+
function Ki(t) {
|
|
273
275
|
return typeof t == "undefined";
|
|
274
276
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
277
|
+
function Gi(t) {
|
|
278
|
+
return Ki(t) || t === null;
|
|
277
279
|
}
|
|
278
|
-
function
|
|
280
|
+
function qi(t) {
|
|
279
281
|
return typeof t == "function";
|
|
280
282
|
}
|
|
281
|
-
function
|
|
283
|
+
function zt(t) {
|
|
282
284
|
let e = t, i = null, n = function() {
|
|
283
285
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
284
286
|
o[s] = arguments[s];
|
|
@@ -286,14 +288,14 @@ function jt(t) {
|
|
|
286
288
|
};
|
|
287
289
|
return n.prototype = e.prototype, n;
|
|
288
290
|
}
|
|
289
|
-
var
|
|
291
|
+
var Hi = ((t) => (t[t.DEVELOPER_FILE_NOT_FOUND = 0] = "DEVELOPER_FILE_NOT_FOUND", t[t.INTERNAL_IOS_CAN_NOT_FOUND_PKG = 1] = "INTERNAL_IOS_CAN_NOT_FOUND_PKG", t[t.USER_IOS_LOAD_TIMEOUT = 2] = "USER_IOS_LOAD_TIMEOUT", t[t.INTERNAL_IOS_PKG_LOAD_ERROR = 3] = "INTERNAL_IOS_PKG_LOAD_ERROR", t[t.INTERNAL_IOS_PKG_PARSE_FAIL = 4] = "INTERNAL_IOS_PKG_PARSE_FAIL", t[t.USER_IOS_GET_EMPTY_DATA = 5] = "USER_IOS_GET_EMPTY_DATA", t[t.USER_ANDROID_GET_PKG_FAIL = 6] = "USER_ANDROID_GET_PKG_FAIL", t[t.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE = 7] = "DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE", t))(Hi || {});
|
|
290
292
|
function he(t) {
|
|
291
293
|
return function() {
|
|
292
294
|
var e, i;
|
|
293
295
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
294
296
|
};
|
|
295
297
|
}
|
|
296
|
-
var
|
|
298
|
+
var Wi = {
|
|
297
299
|
log: he("log"),
|
|
298
300
|
warn: he("warn"),
|
|
299
301
|
info: he("info"),
|
|
@@ -301,12 +303,14 @@ var Ki = {
|
|
|
301
303
|
debug: he("debug")
|
|
302
304
|
};
|
|
303
305
|
Object.assign(globalThis, {
|
|
304
|
-
logger:
|
|
306
|
+
logger: Wi
|
|
305
307
|
});
|
|
306
|
-
var
|
|
307
|
-
globalThis[
|
|
308
|
-
var
|
|
309
|
-
|
|
308
|
+
var bt = Symbol.for("Jolibox.canIUseMap"), Ji = {};
|
|
309
|
+
globalThis[bt] || (globalThis[bt] = Ji);
|
|
310
|
+
var wt = Symbol.for("Jolibox.canIUseMap.native"), Yi = {};
|
|
311
|
+
globalThis[wt] || (globalThis[wt] = Yi);
|
|
312
|
+
var Kt = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Kt || {}), Gt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Gt || {}), qt = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(qt || {}), At = ["name", "params"], Xi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Qi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
313
|
+
function xe(t, e) {
|
|
310
314
|
return e.map((i) => {
|
|
311
315
|
if (i === "params" && t[i]) {
|
|
312
316
|
let n = t[i];
|
|
@@ -315,18 +319,18 @@ function Re(t, e) {
|
|
|
315
319
|
return t[i];
|
|
316
320
|
});
|
|
317
321
|
}
|
|
318
|
-
function
|
|
319
|
-
let e = t.location ?
|
|
320
|
-
return
|
|
322
|
+
function Zi(t) {
|
|
323
|
+
let e = t.location ? xe(t.location, At) : null, i = t.target ? xe(t.target, At) : null;
|
|
324
|
+
return xe(Bi(Ui({}, t), {
|
|
321
325
|
location: e,
|
|
322
326
|
target: i
|
|
323
|
-
}),
|
|
327
|
+
}), Xi);
|
|
324
328
|
}
|
|
325
|
-
function
|
|
326
|
-
let e = t.events.map((n) =>
|
|
329
|
+
function en(t) {
|
|
330
|
+
let e = t.events.map((n) => Zi(n)), i = xe(t.device, Qi);
|
|
327
331
|
return [t.protocolVersion, e, i, t.project];
|
|
328
332
|
}
|
|
329
|
-
function
|
|
333
|
+
function tn() {
|
|
330
334
|
try {
|
|
331
335
|
if (window.__joliboxLocalStorage__)
|
|
332
336
|
return window.__joliboxLocalStorage__;
|
|
@@ -347,7 +351,7 @@ function Xi() {
|
|
|
347
351
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
348
352
|
}
|
|
349
353
|
}
|
|
350
|
-
|
|
354
|
+
tn();
|
|
351
355
|
navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS"), navigator.userAgent.includes("Android"), navigator.userAgent.includes("Mac"), navigator.userAgent.includes("FB_IAB"), !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
352
356
|
var Xe = class Qe {
|
|
353
357
|
constructor(e) {
|
|
@@ -355,23 +359,23 @@ var Xe = class Qe {
|
|
|
355
359
|
}
|
|
356
360
|
};
|
|
357
361
|
Xe.Undefined = new Xe(void 0);
|
|
358
|
-
var
|
|
362
|
+
var x = Xe, nn = class {
|
|
359
363
|
constructor() {
|
|
360
|
-
this._first =
|
|
364
|
+
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
361
365
|
}
|
|
362
366
|
get size() {
|
|
363
367
|
return this._size;
|
|
364
368
|
}
|
|
365
369
|
isEmpty() {
|
|
366
|
-
return this._first ===
|
|
370
|
+
return this._first === x.Undefined;
|
|
367
371
|
}
|
|
368
372
|
clear() {
|
|
369
373
|
let e = this._first;
|
|
370
|
-
for (; e !==
|
|
374
|
+
for (; e !== x.Undefined; ) {
|
|
371
375
|
let i = e.next;
|
|
372
|
-
e.prev =
|
|
376
|
+
e.prev = x.Undefined, e.next = x.Undefined, e = i;
|
|
373
377
|
}
|
|
374
|
-
this._first =
|
|
378
|
+
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
375
379
|
}
|
|
376
380
|
unshift(e) {
|
|
377
381
|
return this._insert(e, !1);
|
|
@@ -380,8 +384,8 @@ var R = Xe, Qi = class {
|
|
|
380
384
|
return this._insert(e, !0);
|
|
381
385
|
}
|
|
382
386
|
_insert(e, i) {
|
|
383
|
-
let n = new
|
|
384
|
-
if (this._first ===
|
|
387
|
+
let n = new x(e);
|
|
388
|
+
if (this._first === x.Undefined)
|
|
385
389
|
this._first = n, this._last = n;
|
|
386
390
|
else if (i) {
|
|
387
391
|
let o = this._last;
|
|
@@ -397,33 +401,33 @@ var R = Xe, Qi = class {
|
|
|
397
401
|
};
|
|
398
402
|
}
|
|
399
403
|
shift() {
|
|
400
|
-
if (this._first !==
|
|
404
|
+
if (this._first !== x.Undefined) {
|
|
401
405
|
let e = this._first.element;
|
|
402
406
|
return this._remove(this._first), e;
|
|
403
407
|
}
|
|
404
408
|
}
|
|
405
409
|
pop() {
|
|
406
|
-
if (this._last !==
|
|
410
|
+
if (this._last !== x.Undefined) {
|
|
407
411
|
let e = this._last.element;
|
|
408
412
|
return this._remove(this._last), e;
|
|
409
413
|
}
|
|
410
414
|
}
|
|
411
415
|
_remove(e) {
|
|
412
|
-
if (e.prev !==
|
|
416
|
+
if (e.prev !== x.Undefined && e.next !== x.Undefined) {
|
|
413
417
|
let i = e.prev;
|
|
414
418
|
i.next = e.next, e.next.prev = i;
|
|
415
419
|
} else
|
|
416
|
-
e.prev ===
|
|
420
|
+
e.prev === x.Undefined && e.next === x.Undefined ? (this._first = x.Undefined, this._last = x.Undefined) : e.next === x.Undefined ? (this._last = this._last.prev, this._last.next = x.Undefined) : e.prev === x.Undefined && (this._first = this._first.next, this._first.prev = x.Undefined);
|
|
417
421
|
this._size -= 1;
|
|
418
422
|
}
|
|
419
423
|
*[Symbol.iterator]() {
|
|
420
424
|
let e = this._first;
|
|
421
|
-
for (; e !==
|
|
425
|
+
for (; e !== x.Undefined; )
|
|
422
426
|
yield e.element, e = e.next;
|
|
423
427
|
}
|
|
424
|
-
},
|
|
428
|
+
}, rn = 0, fe = class {
|
|
425
429
|
constructor(e) {
|
|
426
|
-
this.value = e, this.id =
|
|
430
|
+
this.value = e, this.id = rn++;
|
|
427
431
|
}
|
|
428
432
|
}, ge = class {
|
|
429
433
|
constructor(e) {
|
|
@@ -476,7 +480,7 @@ var R = Xe, Qi = class {
|
|
|
476
480
|
hasListeners() {
|
|
477
481
|
return this._size > 0;
|
|
478
482
|
}
|
|
479
|
-
},
|
|
483
|
+
}, on = class {
|
|
480
484
|
constructor() {
|
|
481
485
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
482
486
|
}
|
|
@@ -504,7 +508,7 @@ var R = Xe, Qi = class {
|
|
|
504
508
|
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
505
509
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
506
510
|
r[o - 1] = arguments[o];
|
|
507
|
-
i || (i = new
|
|
511
|
+
i || (i = new nn(), this.cachedEventQueue.set(t, i)), i.push({
|
|
508
512
|
args: r
|
|
509
513
|
}), e && e.fire({
|
|
510
514
|
event: t,
|
|
@@ -519,19 +523,19 @@ var R = Xe, Qi = class {
|
|
|
519
523
|
this.on(t, n, !1);
|
|
520
524
|
}
|
|
521
525
|
}, Ze = {};
|
|
522
|
-
|
|
523
|
-
None: () =>
|
|
524
|
-
filter: () =>
|
|
525
|
-
once: () =>
|
|
526
|
-
toPromise: () =>
|
|
526
|
+
ji(Ze, {
|
|
527
|
+
None: () => sn,
|
|
528
|
+
filter: () => dn,
|
|
529
|
+
once: () => Ht,
|
|
530
|
+
toPromise: () => an
|
|
527
531
|
});
|
|
528
|
-
var
|
|
532
|
+
var sn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
529
533
|
console.log("[Jolibox SDK] None Event dispose");
|
|
530
534
|
});
|
|
531
|
-
function
|
|
532
|
-
return new Promise((e) =>
|
|
535
|
+
function an(t) {
|
|
536
|
+
return new Promise((e) => Ht(t)(e));
|
|
533
537
|
}
|
|
534
|
-
function
|
|
538
|
+
function Ht(t) {
|
|
535
539
|
return function(e) {
|
|
536
540
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
537
541
|
return t((r) => {
|
|
@@ -540,7 +544,7 @@ function Gt(t) {
|
|
|
540
544
|
}, null);
|
|
541
545
|
};
|
|
542
546
|
}
|
|
543
|
-
function
|
|
547
|
+
function dn(t, e) {
|
|
544
548
|
return ((i) => {
|
|
545
549
|
let n = {
|
|
546
550
|
onWillAddFirstListener() {
|
|
@@ -553,8 +557,8 @@ function rn(t, e) {
|
|
|
553
557
|
return t((r) => e(r) && i.call(n, r), null);
|
|
554
558
|
});
|
|
555
559
|
}
|
|
556
|
-
var ze = Symbol.for("Jolibox.hostEmitter"),
|
|
557
|
-
let t = new
|
|
560
|
+
var ze = Symbol.for("Jolibox.hostEmitter"), ln = () => {
|
|
561
|
+
let t = new on();
|
|
558
562
|
return globalThis[ze] || (globalThis[ze] = {
|
|
559
563
|
on: t.on.bind(t),
|
|
560
564
|
off: t.off.bind(t),
|
|
@@ -562,23 +566,23 @@ var ze = Symbol.for("Jolibox.hostEmitter"), on = () => {
|
|
|
562
566
|
once: t.once.bind(t)
|
|
563
567
|
}), globalThis[ze];
|
|
564
568
|
};
|
|
565
|
-
|
|
566
|
-
function
|
|
569
|
+
ln();
|
|
570
|
+
function cn(t, e) {
|
|
567
571
|
let i = Math.min(t.length, e.length);
|
|
568
572
|
for (let n = 0; n < i; n++)
|
|
569
|
-
|
|
573
|
+
un(t[n], e[n]);
|
|
570
574
|
}
|
|
571
|
-
function
|
|
572
|
-
if (
|
|
575
|
+
function un(t, e) {
|
|
576
|
+
if (zi(e)) {
|
|
573
577
|
if (typeof t !== e)
|
|
574
578
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
575
|
-
} else if (
|
|
579
|
+
} else if (qi(e)) {
|
|
576
580
|
try {
|
|
577
581
|
if (t instanceof e)
|
|
578
582
|
return;
|
|
579
583
|
} catch (i) {
|
|
580
584
|
}
|
|
581
|
-
if (!
|
|
585
|
+
if (!Gi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
582
586
|
return;
|
|
583
587
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
584
588
|
}
|
|
@@ -598,7 +602,7 @@ var et = class {
|
|
|
598
602
|
e.handler = function() {
|
|
599
603
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
600
604
|
s[a] = arguments[a];
|
|
601
|
-
return
|
|
605
|
+
return cn(s, n), r(...s);
|
|
602
606
|
};
|
|
603
607
|
}
|
|
604
608
|
let {
|
|
@@ -618,18 +622,18 @@ var et = class {
|
|
|
618
622
|
return e;
|
|
619
623
|
}
|
|
620
624
|
};
|
|
621
|
-
et =
|
|
622
|
-
var
|
|
625
|
+
et = Vt([zt], et);
|
|
626
|
+
var mt = class {
|
|
623
627
|
constructor() {
|
|
624
628
|
this._onWillExecuteCommand = new ge(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ge(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new et(), this._starActivation = null;
|
|
625
629
|
}
|
|
626
630
|
_activateStar() {
|
|
627
|
-
return this._starActivation || (this._starActivation =
|
|
631
|
+
return this._starActivation || (this._starActivation = Vi(3e4)), this._starActivation;
|
|
628
632
|
}
|
|
629
633
|
executeCommand(e) {
|
|
630
634
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
631
635
|
n[r - 1] = arguments[r];
|
|
632
|
-
return
|
|
636
|
+
return Fi(this, null, function* () {
|
|
633
637
|
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Ze.toPromise(Ze.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
634
638
|
});
|
|
635
639
|
}
|
|
@@ -676,15 +680,15 @@ var wt = class {
|
|
|
676
680
|
}
|
|
677
681
|
}
|
|
678
682
|
};
|
|
679
|
-
|
|
680
|
-
function
|
|
681
|
-
return (e =
|
|
683
|
+
mt = Vt([zt], mt);
|
|
684
|
+
function Ke(t, e, i) {
|
|
685
|
+
return (e = hn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
682
686
|
}
|
|
683
|
-
function
|
|
684
|
-
var e =
|
|
687
|
+
function hn(t) {
|
|
688
|
+
var e = fn(t, "string");
|
|
685
689
|
return typeof e == "symbol" ? e : e + "";
|
|
686
690
|
}
|
|
687
|
-
function
|
|
691
|
+
function fn(t, e) {
|
|
688
692
|
if (typeof t != "object" || !t)
|
|
689
693
|
return t;
|
|
690
694
|
var i = t[Symbol.toPrimitive];
|
|
@@ -696,10 +700,10 @@ function ln(t, e) {
|
|
|
696
700
|
}
|
|
697
701
|
return (e === "string" ? String : Number)(t);
|
|
698
702
|
}
|
|
699
|
-
class
|
|
703
|
+
class Wt {
|
|
700
704
|
constructor(e) {
|
|
701
705
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
702
|
-
|
|
706
|
+
Ke(this, "context", void 0), Ke(this, "placement", "GAME"), Ke(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
703
707
|
}
|
|
704
708
|
getLocation() {
|
|
705
709
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -713,7 +717,7 @@ class Kt {
|
|
|
713
717
|
getDevice() {
|
|
714
718
|
var e, i, n, r;
|
|
715
719
|
return {
|
|
716
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
720
|
+
platform: (e = this.contextInfo.platform) != null ? e : qt.WebSDK,
|
|
717
721
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
718
722
|
appVersion: "1.0.0",
|
|
719
723
|
// mock
|
|
@@ -732,7 +736,7 @@ class Kt {
|
|
|
732
736
|
protocolVersion: "1.0.0",
|
|
733
737
|
events: [{
|
|
734
738
|
name: e,
|
|
735
|
-
type:
|
|
739
|
+
type: Kt.System,
|
|
736
740
|
location: this.getLocation(),
|
|
737
741
|
target: null,
|
|
738
742
|
extra: i,
|
|
@@ -740,19 +744,19 @@ class Kt {
|
|
|
740
744
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
741
745
|
}],
|
|
742
746
|
device: this.getDevice(),
|
|
743
|
-
project:
|
|
747
|
+
project: Gt.WebSDK
|
|
744
748
|
};
|
|
745
|
-
return
|
|
749
|
+
return en(r);
|
|
746
750
|
}
|
|
747
751
|
}
|
|
748
752
|
function ke(t, e, i) {
|
|
749
|
-
return (e =
|
|
753
|
+
return (e = vn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
750
754
|
}
|
|
751
|
-
function
|
|
752
|
-
var e =
|
|
755
|
+
function vn(t) {
|
|
756
|
+
var e = pn(t, "string");
|
|
753
757
|
return typeof e == "symbol" ? e : e + "";
|
|
754
758
|
}
|
|
755
|
-
function
|
|
759
|
+
function pn(t, e) {
|
|
756
760
|
if (typeof t != "object" || !t)
|
|
757
761
|
return t;
|
|
758
762
|
var i = t[Symbol.toPrimitive];
|
|
@@ -764,7 +768,7 @@ function un(t, e) {
|
|
|
764
768
|
}
|
|
765
769
|
return (e === "string" ? String : Number)(t);
|
|
766
770
|
}
|
|
767
|
-
class
|
|
771
|
+
class yn {
|
|
768
772
|
constructor(e) {
|
|
769
773
|
ke(this, "configs", null), ke(this, "firstRun", !0), ke(this, "context", void 0), ke(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
770
774
|
}
|
|
@@ -790,14 +794,14 @@ class hn {
|
|
|
790
794
|
return this.firstRun = !1, e;
|
|
791
795
|
}
|
|
792
796
|
}
|
|
793
|
-
function
|
|
794
|
-
return (e =
|
|
797
|
+
function J(t, e, i) {
|
|
798
|
+
return (e = _n(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
795
799
|
}
|
|
796
|
-
function
|
|
797
|
-
var e =
|
|
800
|
+
function _n(t) {
|
|
801
|
+
var e = gn(t, "string");
|
|
798
802
|
return typeof e == "symbol" ? e : e + "";
|
|
799
803
|
}
|
|
800
|
-
function
|
|
804
|
+
function gn(t, e) {
|
|
801
805
|
if (typeof t != "object" || !t)
|
|
802
806
|
return t;
|
|
803
807
|
var i = t[Symbol.toPrimitive];
|
|
@@ -809,28 +813,28 @@ function vn(t, e) {
|
|
|
809
813
|
}
|
|
810
814
|
return (e === "string" ? String : Number)(t);
|
|
811
815
|
}
|
|
812
|
-
class
|
|
816
|
+
class bn {
|
|
813
817
|
/**
|
|
814
818
|
* Internal constructor, should not be called directly
|
|
815
819
|
*/
|
|
816
820
|
constructor(e, i) {
|
|
817
|
-
|
|
821
|
+
J(this, "name", "ADSENSE"), J(this, "context", void 0), J(this, "contextInfo", void 0), J(this, "configured", !1), J(this, "initParams", void 0), J(this, "push", function() {
|
|
818
822
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
819
823
|
window.adsbygoogle.push(n);
|
|
820
|
-
}),
|
|
824
|
+
}), J(this, "adConfig", (n) => {
|
|
821
825
|
const s = n, {
|
|
822
826
|
onReady: r
|
|
823
|
-
} = s, o =
|
|
827
|
+
} = s, o = pt(s, [
|
|
824
828
|
"onReady"
|
|
825
829
|
]);
|
|
826
830
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
827
|
-
}),
|
|
831
|
+
}), J(this, "adBreak", (n) => {
|
|
828
832
|
if (!this.contextInfo.objectId) {
|
|
829
833
|
console.warn("Game ID is not set, skip calling adBreak");
|
|
830
834
|
return;
|
|
831
835
|
}
|
|
832
836
|
this.push(n);
|
|
833
|
-
}),
|
|
837
|
+
}), J(this, "adUnit", async (n) => {
|
|
834
838
|
var y, v, g, p;
|
|
835
839
|
if (this.context.track("CallAdUnit", {
|
|
836
840
|
adFormat: (v = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? v : null,
|
|
@@ -859,12 +863,12 @@ class pn {
|
|
|
859
863
|
const _ = document.createElement("div");
|
|
860
864
|
_.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
865
|
} else
|
|
862
|
-
l.appendChild(u), new MutationObserver((
|
|
863
|
-
|
|
864
|
-
if (
|
|
865
|
-
const
|
|
866
|
+
l.appendChild(u), new MutationObserver((b) => {
|
|
867
|
+
b.forEach((M) => {
|
|
868
|
+
if (M.type === "attributes" && M.attributeName === "data-ad-status") {
|
|
869
|
+
const L = u.getAttribute("data-ad-status");
|
|
866
870
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
867
|
-
status:
|
|
871
|
+
status: L != null ? L : "null"
|
|
868
872
|
});
|
|
869
873
|
}
|
|
870
874
|
});
|
|
@@ -883,22 +887,22 @@ class pn {
|
|
|
883
887
|
const e = "google-adsense", i = (n = this.contextInfo.testAdsMode) != null ? n : !1;
|
|
884
888
|
if (!document.getElementById(e) && this.initParams.clientId) {
|
|
885
889
|
const r = document.createElement("script");
|
|
886
|
-
r.id = e, r.async = !0, r.crossOrigin = "anonymous", r.src = `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`, i && r.setAttribute("data-adbreak-test", "on"), this.initParams.channelId && r.setAttribute("data-ad-channel", this.initParams.channelId), document.head.appendChild(r), this.context.track("LoadAdsenseCompleted", null);
|
|
890
|
+
r.id = e, r.async = !0, r.crossOrigin = "anonymous", r.src = `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`, i && r.setAttribute("data-adbreak-test", "on"), this.initParams.channelId && r.setAttribute("data-ad-channel", this.initParams.channelId), this.initParams.admobInterstitialSlot && this.initParams.admobRewardedSlot && (r.setAttribute("data-admob-interstitial-slot", this.initParams.admobInterstitialSlot), r.setAttribute("data-admob-rewarded-slot", this.initParams.admobRewardedSlot), this.initParams.admobOnly && r.setAttribute("data-admob-ads-only", "on")), document.head.appendChild(r), this.context.track("LoadAdsenseCompleted", null);
|
|
887
891
|
}
|
|
888
892
|
}
|
|
889
893
|
}
|
|
890
|
-
function
|
|
894
|
+
function wn(t) {
|
|
891
895
|
if (t.sheet)
|
|
892
896
|
return t.sheet;
|
|
893
897
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
894
898
|
if (document.styleSheets[e].ownerNode === t)
|
|
895
899
|
return document.styleSheets[e];
|
|
896
900
|
}
|
|
897
|
-
function
|
|
901
|
+
function An(t) {
|
|
898
902
|
var e = document.createElement("style");
|
|
899
903
|
return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
|
900
904
|
}
|
|
901
|
-
var
|
|
905
|
+
var mn = /* @__PURE__ */ function() {
|
|
902
906
|
function t(i) {
|
|
903
907
|
var n = this;
|
|
904
908
|
this._insertTag = function(r) {
|
|
@@ -910,10 +914,10 @@ var gn = /* @__PURE__ */ function() {
|
|
|
910
914
|
return e.hydrate = function(n) {
|
|
911
915
|
n.forEach(this._insertTag);
|
|
912
916
|
}, e.insert = function(n) {
|
|
913
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
917
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(An(this));
|
|
914
918
|
var r = this.tags[this.tags.length - 1];
|
|
915
919
|
if (this.isSpeedy) {
|
|
916
|
-
var o =
|
|
920
|
+
var o = wn(r);
|
|
917
921
|
try {
|
|
918
922
|
o.insertRule(n, o.cssRules.length);
|
|
919
923
|
} catch (s) {
|
|
@@ -927,14 +931,14 @@ var gn = /* @__PURE__ */ function() {
|
|
|
927
931
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
928
932
|
}), this.tags = [], this.ctr = 0;
|
|
929
933
|
}, t;
|
|
930
|
-
}(),
|
|
931
|
-
function
|
|
934
|
+
}(), N = "-ms-", Ne = "-moz-", A = "-webkit-", Jt = "comm", dt = "rule", lt = "decl", En = "@import", Yt = "@keyframes", Sn = "@layer", kn = Math.abs, Be = String.fromCharCode, In = Object.assign;
|
|
935
|
+
function xn(t, e) {
|
|
932
936
|
return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
|
|
933
937
|
}
|
|
934
|
-
function
|
|
938
|
+
function Xt(t) {
|
|
935
939
|
return t.trim();
|
|
936
940
|
}
|
|
937
|
-
function
|
|
941
|
+
function Rn(t, e) {
|
|
938
942
|
return (t = e.exec(t)) ? t[0] : t;
|
|
939
943
|
}
|
|
940
944
|
function m(t, e, i) {
|
|
@@ -946,47 +950,47 @@ function tt(t, e) {
|
|
|
946
950
|
function D(t, e) {
|
|
947
951
|
return t.charCodeAt(e) | 0;
|
|
948
952
|
}
|
|
949
|
-
function
|
|
953
|
+
function be(t, e, i) {
|
|
950
954
|
return t.slice(e, i);
|
|
951
955
|
}
|
|
952
|
-
function
|
|
956
|
+
function H(t) {
|
|
953
957
|
return t.length;
|
|
954
958
|
}
|
|
955
959
|
function ct(t) {
|
|
956
960
|
return t.length;
|
|
957
961
|
}
|
|
958
|
-
function
|
|
962
|
+
function Ie(t, e) {
|
|
959
963
|
return e.push(t), t;
|
|
960
964
|
}
|
|
961
|
-
function
|
|
965
|
+
function Tn(t, e) {
|
|
962
966
|
return t.map(e).join("");
|
|
963
967
|
}
|
|
964
|
-
var je = 1, ae = 1,
|
|
968
|
+
var je = 1, ae = 1, Qt = 0, U = 0, R = 0, de = "";
|
|
965
969
|
function Fe(t, e, i, n, r, o, s) {
|
|
966
970
|
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: je, column: ae, length: s, return: "" };
|
|
967
971
|
}
|
|
968
972
|
function ve(t, e) {
|
|
969
|
-
return
|
|
973
|
+
return In(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
970
974
|
}
|
|
971
|
-
function
|
|
972
|
-
return
|
|
975
|
+
function On() {
|
|
976
|
+
return R;
|
|
973
977
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
978
|
+
function Dn() {
|
|
979
|
+
return R = U > 0 ? D(de, --U) : 0, ae--, R === 10 && (ae = 1, je--), R;
|
|
976
980
|
}
|
|
977
|
-
function
|
|
978
|
-
return
|
|
981
|
+
function F() {
|
|
982
|
+
return R = U < Qt ? D(de, U++) : 0, ae++, R === 10 && (ae = 1, je++), R;
|
|
979
983
|
}
|
|
980
|
-
function
|
|
981
|
-
return D(de,
|
|
984
|
+
function W() {
|
|
985
|
+
return D(de, U);
|
|
982
986
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
987
|
+
function Re() {
|
|
988
|
+
return U;
|
|
985
989
|
}
|
|
986
990
|
function Ae(t, e) {
|
|
987
|
-
return
|
|
991
|
+
return be(de, t, e);
|
|
988
992
|
}
|
|
989
|
-
function
|
|
993
|
+
function we(t) {
|
|
990
994
|
switch (t) {
|
|
991
995
|
case 0:
|
|
992
996
|
case 9:
|
|
@@ -1018,91 +1022,91 @@ function be(t) {
|
|
|
1018
1022
|
}
|
|
1019
1023
|
return 0;
|
|
1020
1024
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return je = ae = 1,
|
|
1025
|
+
function Zt(t) {
|
|
1026
|
+
return je = ae = 1, Qt = H(de = t), U = 0, [];
|
|
1023
1027
|
}
|
|
1024
|
-
function
|
|
1028
|
+
function ei(t) {
|
|
1025
1029
|
return de = "", t;
|
|
1026
1030
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1031
|
+
function Te(t) {
|
|
1032
|
+
return Xt(Ae(U - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1029
1033
|
}
|
|
1030
|
-
function
|
|
1031
|
-
for (; (
|
|
1032
|
-
|
|
1033
|
-
return
|
|
1034
|
+
function Cn(t) {
|
|
1035
|
+
for (; (R = W()) && R < 33; )
|
|
1036
|
+
F();
|
|
1037
|
+
return we(t) > 2 || we(R) > 3 ? "" : " ";
|
|
1034
1038
|
}
|
|
1035
|
-
function
|
|
1036
|
-
for (; --e &&
|
|
1039
|
+
function Ln(t, e) {
|
|
1040
|
+
for (; --e && F() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
|
|
1037
1041
|
;
|
|
1038
|
-
return Ae(t,
|
|
1042
|
+
return Ae(t, Re() + (e < 6 && W() == 32 && F() == 32));
|
|
1039
1043
|
}
|
|
1040
1044
|
function it(t) {
|
|
1041
|
-
for (;
|
|
1042
|
-
switch (
|
|
1045
|
+
for (; F(); )
|
|
1046
|
+
switch (R) {
|
|
1043
1047
|
case t:
|
|
1044
|
-
return
|
|
1048
|
+
return U;
|
|
1045
1049
|
case 34:
|
|
1046
1050
|
case 39:
|
|
1047
|
-
t !== 34 && t !== 39 && it(
|
|
1051
|
+
t !== 34 && t !== 39 && it(R);
|
|
1048
1052
|
break;
|
|
1049
1053
|
case 40:
|
|
1050
1054
|
t === 41 && it(t);
|
|
1051
1055
|
break;
|
|
1052
1056
|
case 92:
|
|
1053
|
-
|
|
1057
|
+
F();
|
|
1054
1058
|
break;
|
|
1055
1059
|
}
|
|
1056
|
-
return
|
|
1060
|
+
return U;
|
|
1057
1061
|
}
|
|
1058
|
-
function
|
|
1059
|
-
for (;
|
|
1060
|
-
if (t +
|
|
1062
|
+
function Nn(t, e) {
|
|
1063
|
+
for (; F() && t + R !== 57; )
|
|
1064
|
+
if (t + R === 84 && W() === 47)
|
|
1061
1065
|
break;
|
|
1062
|
-
return "/*" + Ae(e,
|
|
1066
|
+
return "/*" + Ae(e, U - 1) + "*" + Be(t === 47 ? t : F());
|
|
1063
1067
|
}
|
|
1064
|
-
function
|
|
1065
|
-
for (; !
|
|
1066
|
-
|
|
1067
|
-
return Ae(t,
|
|
1068
|
+
function Pn(t) {
|
|
1069
|
+
for (; !we(W()); )
|
|
1070
|
+
F();
|
|
1071
|
+
return Ae(t, U);
|
|
1068
1072
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return
|
|
1073
|
+
function Mn(t) {
|
|
1074
|
+
return ei(Oe("", null, null, null, [""], t = Zt(t), 0, [0], t));
|
|
1071
1075
|
}
|
|
1072
|
-
function
|
|
1073
|
-
for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0,
|
|
1074
|
-
switch (y = _, _ =
|
|
1076
|
+
function Oe(t, e, i, n, r, o, s, a, d) {
|
|
1077
|
+
for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0, b = "", M = r, L = o, V = n, S = b; g; )
|
|
1078
|
+
switch (y = _, _ = F()) {
|
|
1075
1079
|
case 40:
|
|
1076
|
-
if (y != 108 && D(
|
|
1077
|
-
tt(
|
|
1080
|
+
if (y != 108 && D(S, h - 1) == 58) {
|
|
1081
|
+
tt(S += m(Te(_), "&", "&\f"), "&\f") != -1 && (p = -1);
|
|
1078
1082
|
break;
|
|
1079
1083
|
}
|
|
1080
1084
|
case 34:
|
|
1081
1085
|
case 39:
|
|
1082
1086
|
case 91:
|
|
1083
|
-
|
|
1087
|
+
S += Te(_);
|
|
1084
1088
|
break;
|
|
1085
1089
|
case 9:
|
|
1086
1090
|
case 10:
|
|
1087
1091
|
case 13:
|
|
1088
1092
|
case 32:
|
|
1089
|
-
|
|
1093
|
+
S += Cn(y);
|
|
1090
1094
|
break;
|
|
1091
1095
|
case 92:
|
|
1092
|
-
|
|
1096
|
+
S += Ln(Re() - 1, 7);
|
|
1093
1097
|
continue;
|
|
1094
1098
|
case 47:
|
|
1095
|
-
switch (
|
|
1099
|
+
switch (W()) {
|
|
1096
1100
|
case 42:
|
|
1097
1101
|
case 47:
|
|
1098
|
-
|
|
1102
|
+
Ie($n(Nn(F(), Re()), e, i), d);
|
|
1099
1103
|
break;
|
|
1100
1104
|
default:
|
|
1101
|
-
|
|
1105
|
+
S += "/";
|
|
1102
1106
|
}
|
|
1103
1107
|
break;
|
|
1104
1108
|
case 123 * v:
|
|
1105
|
-
a[l++] =
|
|
1109
|
+
a[l++] = H(S) * p;
|
|
1106
1110
|
case 125 * v:
|
|
1107
1111
|
case 59:
|
|
1108
1112
|
case 0:
|
|
@@ -1111,88 +1115,88 @@ function Te(t, e, i, n, r, o, s, a, d) {
|
|
|
1111
1115
|
case 125:
|
|
1112
1116
|
g = 0;
|
|
1113
1117
|
case 59 + c:
|
|
1114
|
-
p == -1 && (
|
|
1118
|
+
p == -1 && (S = m(S, /\f/g, "")), f > 0 && H(S) - h && Ie(f > 32 ? St(S + ";", n, i, h - 1) : St(m(S, " ", "") + ";", n, i, h - 2), d);
|
|
1115
1119
|
break;
|
|
1116
1120
|
case 59:
|
|
1117
|
-
|
|
1121
|
+
S += ";";
|
|
1118
1122
|
default:
|
|
1119
|
-
if (
|
|
1123
|
+
if (Ie(V = Et(S, e, i, l, c, r, a, b, M = [], L = [], h), o), _ === 123)
|
|
1120
1124
|
if (c === 0)
|
|
1121
|
-
|
|
1125
|
+
Oe(S, e, V, V, M, o, h, a, L);
|
|
1122
1126
|
else
|
|
1123
|
-
switch (u === 99 && D(
|
|
1127
|
+
switch (u === 99 && D(S, 3) === 110 ? 100 : u) {
|
|
1124
1128
|
case 100:
|
|
1125
1129
|
case 108:
|
|
1126
1130
|
case 109:
|
|
1127
1131
|
case 115:
|
|
1128
|
-
|
|
1132
|
+
Oe(t, V, V, n && Ie(Et(t, V, V, 0, 0, r, a, b, r, M = [], h), L), r, L, h, a, n ? M : L);
|
|
1129
1133
|
break;
|
|
1130
1134
|
default:
|
|
1131
|
-
|
|
1135
|
+
Oe(S, V, V, V, [""], L, 0, a, L);
|
|
1132
1136
|
}
|
|
1133
1137
|
}
|
|
1134
|
-
l = c = f = 0, v = p = 1,
|
|
1138
|
+
l = c = f = 0, v = p = 1, b = S = "", h = s;
|
|
1135
1139
|
break;
|
|
1136
1140
|
case 58:
|
|
1137
|
-
h = 1 +
|
|
1141
|
+
h = 1 + H(S), f = y;
|
|
1138
1142
|
default:
|
|
1139
1143
|
if (v < 1) {
|
|
1140
1144
|
if (_ == 123)
|
|
1141
1145
|
--v;
|
|
1142
|
-
else if (_ == 125 && v++ == 0 &&
|
|
1146
|
+
else if (_ == 125 && v++ == 0 && Dn() == 125)
|
|
1143
1147
|
continue;
|
|
1144
1148
|
}
|
|
1145
|
-
switch (
|
|
1149
|
+
switch (S += Be(_), _ * v) {
|
|
1146
1150
|
case 38:
|
|
1147
|
-
p = c > 0 ? 1 : (
|
|
1151
|
+
p = c > 0 ? 1 : (S += "\f", -1);
|
|
1148
1152
|
break;
|
|
1149
1153
|
case 44:
|
|
1150
|
-
a[l++] = (
|
|
1154
|
+
a[l++] = (H(S) - 1) * p, p = 1;
|
|
1151
1155
|
break;
|
|
1152
1156
|
case 64:
|
|
1153
|
-
|
|
1157
|
+
W() === 45 && (S += Te(F())), u = W(), c = h = H(b = S += Pn(Re())), _++;
|
|
1154
1158
|
break;
|
|
1155
1159
|
case 45:
|
|
1156
|
-
y === 45 &&
|
|
1160
|
+
y === 45 && H(S) == 2 && (v = 0);
|
|
1157
1161
|
}
|
|
1158
1162
|
}
|
|
1159
1163
|
return o;
|
|
1160
1164
|
}
|
|
1161
|
-
function
|
|
1165
|
+
function Et(t, e, i, n, r, o, s, a, d, l, c) {
|
|
1162
1166
|
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, _ =
|
|
1164
|
-
(
|
|
1167
|
+
for (var p = 0, _ = be(t, h + 1, h = kn(v = s[y])), b = t; p < f; ++p)
|
|
1168
|
+
(b = Xt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = b);
|
|
1165
1169
|
return Fe(t, e, i, r === 0 ? dt : a, d, l, c);
|
|
1166
1170
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return Fe(t, e, i,
|
|
1171
|
+
function $n(t, e, i) {
|
|
1172
|
+
return Fe(t, e, i, Jt, Be(On()), be(t, 2, -2), 0);
|
|
1169
1173
|
}
|
|
1170
|
-
function
|
|
1171
|
-
return Fe(t, e, i, lt,
|
|
1174
|
+
function St(t, e, i, n) {
|
|
1175
|
+
return Fe(t, e, i, lt, be(t, 0, n), be(t, n + 1, -1), n);
|
|
1172
1176
|
}
|
|
1173
1177
|
function oe(t, e) {
|
|
1174
1178
|
for (var i = "", n = ct(t), r = 0; r < n; r++)
|
|
1175
1179
|
i += e(t[r], r, t, e) || "";
|
|
1176
1180
|
return i;
|
|
1177
1181
|
}
|
|
1178
|
-
function
|
|
1182
|
+
function Un(t, e, i, n) {
|
|
1179
1183
|
switch (t.type) {
|
|
1180
|
-
case
|
|
1184
|
+
case Sn:
|
|
1181
1185
|
if (t.children.length)
|
|
1182
1186
|
break;
|
|
1183
|
-
case
|
|
1187
|
+
case En:
|
|
1184
1188
|
case lt:
|
|
1185
1189
|
return t.return = t.return || t.value;
|
|
1186
|
-
case
|
|
1190
|
+
case Jt:
|
|
1187
1191
|
return "";
|
|
1188
|
-
case
|
|
1192
|
+
case Yt:
|
|
1189
1193
|
return t.return = t.value + "{" + oe(t.children, n) + "}";
|
|
1190
1194
|
case dt:
|
|
1191
1195
|
t.value = t.props.join(",");
|
|
1192
1196
|
}
|
|
1193
|
-
return
|
|
1197
|
+
return H(i = oe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1194
1198
|
}
|
|
1195
|
-
function
|
|
1199
|
+
function Bn(t) {
|
|
1196
1200
|
var e = ct(t);
|
|
1197
1201
|
return function(i, n, r, o) {
|
|
1198
1202
|
for (var s = "", a = 0; a < e; a++)
|
|
@@ -1200,58 +1204,58 @@ function Pn(t) {
|
|
|
1200
1204
|
return s;
|
|
1201
1205
|
};
|
|
1202
1206
|
}
|
|
1203
|
-
function
|
|
1207
|
+
function jn(t) {
|
|
1204
1208
|
return function(e) {
|
|
1205
1209
|
e.root || (e = e.return) && t(e);
|
|
1206
1210
|
};
|
|
1207
1211
|
}
|
|
1208
|
-
function
|
|
1212
|
+
function Fn(t) {
|
|
1209
1213
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1210
1214
|
return function(i) {
|
|
1211
1215
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1212
1216
|
};
|
|
1213
1217
|
}
|
|
1214
|
-
var
|
|
1215
|
-
for (var r = 0, o = 0; r = o, o =
|
|
1216
|
-
|
|
1217
|
-
return Ae(e,
|
|
1218
|
-
},
|
|
1218
|
+
var Vn = function(e, i, n) {
|
|
1219
|
+
for (var r = 0, o = 0; r = o, o = W(), r === 38 && o === 12 && (i[n] = 1), !we(o); )
|
|
1220
|
+
F();
|
|
1221
|
+
return Ae(e, U);
|
|
1222
|
+
}, zn = function(e, i) {
|
|
1219
1223
|
var n = -1, r = 44;
|
|
1220
1224
|
do
|
|
1221
|
-
switch (
|
|
1225
|
+
switch (we(r)) {
|
|
1222
1226
|
case 0:
|
|
1223
|
-
r === 38 &&
|
|
1227
|
+
r === 38 && W() === 12 && (i[n] = 1), e[n] += Vn(U - 1, i, n);
|
|
1224
1228
|
break;
|
|
1225
1229
|
case 2:
|
|
1226
|
-
e[n] +=
|
|
1230
|
+
e[n] += Te(r);
|
|
1227
1231
|
break;
|
|
1228
1232
|
case 4:
|
|
1229
1233
|
if (r === 44) {
|
|
1230
|
-
e[++n] =
|
|
1234
|
+
e[++n] = W() === 58 ? "&\f" : "", i[n] = e[n].length;
|
|
1231
1235
|
break;
|
|
1232
1236
|
}
|
|
1233
1237
|
default:
|
|
1234
1238
|
e[n] += Be(r);
|
|
1235
1239
|
}
|
|
1236
|
-
while (r =
|
|
1240
|
+
while (r = F());
|
|
1237
1241
|
return e;
|
|
1238
|
-
},
|
|
1239
|
-
return
|
|
1240
|
-
},
|
|
1242
|
+
}, Kn = function(e, i) {
|
|
1243
|
+
return ei(zn(Zt(e), i));
|
|
1244
|
+
}, kt = /* @__PURE__ */ new WeakMap(), Gn = function(e) {
|
|
1241
1245
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1242
1246
|
// negative .length indicates that this rule has been already prefixed
|
|
1243
1247
|
e.length < 1)) {
|
|
1244
1248
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1245
1249
|
if (n = n.parent, !n)
|
|
1246
1250
|
return;
|
|
1247
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1248
|
-
|
|
1249
|
-
for (var o = [], s =
|
|
1251
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !kt.get(n)) && !r) {
|
|
1252
|
+
kt.set(e, !0);
|
|
1253
|
+
for (var o = [], s = Kn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1250
1254
|
for (var c = 0; c < a.length; c++, l++)
|
|
1251
1255
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[c]) : a[c] + " " + s[d];
|
|
1252
1256
|
}
|
|
1253
1257
|
}
|
|
1254
|
-
},
|
|
1258
|
+
}, qn = function(e) {
|
|
1255
1259
|
if (e.type === "decl") {
|
|
1256
1260
|
var i = e.value;
|
|
1257
1261
|
// charcode for l
|
|
@@ -1259,8 +1263,8 @@ var Un = function(e, i, n) {
|
|
|
1259
1263
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1260
1264
|
}
|
|
1261
1265
|
};
|
|
1262
|
-
function
|
|
1263
|
-
switch (
|
|
1266
|
+
function ti(t, e) {
|
|
1267
|
+
switch (xn(t, e)) {
|
|
1264
1268
|
case 5103:
|
|
1265
1269
|
return A + "print-" + t + t;
|
|
1266
1270
|
case 5737:
|
|
@@ -1294,24 +1298,24 @@ function Qt(t, e) {
|
|
|
1294
1298
|
case 4810:
|
|
1295
1299
|
case 6968:
|
|
1296
1300
|
case 2756:
|
|
1297
|
-
return A + t + Ne + t +
|
|
1301
|
+
return A + t + Ne + t + N + t + t;
|
|
1298
1302
|
case 6828:
|
|
1299
1303
|
case 4268:
|
|
1300
|
-
return A + t +
|
|
1304
|
+
return A + t + N + t + t;
|
|
1301
1305
|
case 6165:
|
|
1302
|
-
return A + t +
|
|
1306
|
+
return A + t + N + "flex-" + t + t;
|
|
1303
1307
|
case 5187:
|
|
1304
|
-
return A + t + m(t, /(\w+).+(:[^]+)/, A + "box-$1$2" +
|
|
1308
|
+
return A + t + m(t, /(\w+).+(:[^]+)/, A + "box-$1$2" + N + "flex-$1$2") + t;
|
|
1305
1309
|
case 5443:
|
|
1306
|
-
return A + t +
|
|
1310
|
+
return A + t + N + "flex-item-" + m(t, /flex-|-self/, "") + t;
|
|
1307
1311
|
case 4675:
|
|
1308
|
-
return A + t +
|
|
1312
|
+
return A + t + N + "flex-line-pack" + m(t, /align-content|flex-|-self/, "") + t;
|
|
1309
1313
|
case 5548:
|
|
1310
|
-
return A + t +
|
|
1314
|
+
return A + t + N + m(t, "shrink", "negative") + t;
|
|
1311
1315
|
case 5292:
|
|
1312
|
-
return A + t +
|
|
1316
|
+
return A + t + N + m(t, "basis", "preferred-size") + t;
|
|
1313
1317
|
case 6060:
|
|
1314
|
-
return A + "box-" + m(t, "-grow", "") + A + t +
|
|
1318
|
+
return A + "box-" + m(t, "-grow", "") + A + t + N + m(t, "grow", "positive") + t;
|
|
1315
1319
|
case 4554:
|
|
1316
1320
|
return A + m(t, /([^-])(transform)/g, "$1" + A + "$2") + t;
|
|
1317
1321
|
case 6187:
|
|
@@ -1320,7 +1324,7 @@ function Qt(t, e) {
|
|
|
1320
1324
|
case 3959:
|
|
1321
1325
|
return m(t, /(image-set\([^]*)/, A + "$1$`$1");
|
|
1322
1326
|
case 4968:
|
|
1323
|
-
return m(m(t, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" +
|
|
1327
|
+
return m(m(t, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + N + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + t + t;
|
|
1324
1328
|
case 4095:
|
|
1325
1329
|
case 3583:
|
|
1326
1330
|
case 4068:
|
|
@@ -1338,7 +1342,7 @@ function Qt(t, e) {
|
|
|
1338
1342
|
case 5789:
|
|
1339
1343
|
case 5021:
|
|
1340
1344
|
case 4765:
|
|
1341
|
-
if (
|
|
1345
|
+
if (H(t) - 1 - e > 6)
|
|
1342
1346
|
switch (D(t, e + 1)) {
|
|
1343
1347
|
case 109:
|
|
1344
1348
|
if (D(t, e + 4) !== 45)
|
|
@@ -1346,47 +1350,47 @@ function Qt(t, e) {
|
|
|
1346
1350
|
case 102:
|
|
1347
1351
|
return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Ne + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1348
1352
|
case 115:
|
|
1349
|
-
return ~tt(t, "stretch") ?
|
|
1353
|
+
return ~tt(t, "stretch") ? ti(m(t, "stretch", "fill-available"), e) + t : t;
|
|
1350
1354
|
}
|
|
1351
1355
|
break;
|
|
1352
1356
|
case 4949:
|
|
1353
1357
|
if (D(t, e + 1) !== 115)
|
|
1354
1358
|
break;
|
|
1355
1359
|
case 6444:
|
|
1356
|
-
switch (D(t,
|
|
1360
|
+
switch (D(t, H(t) - 3 - (~tt(t, "!important") && 10))) {
|
|
1357
1361
|
case 107:
|
|
1358
1362
|
return m(t, ":", ":" + A) + t;
|
|
1359
1363
|
case 101:
|
|
1360
|
-
return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (D(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" +
|
|
1364
|
+
return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (D(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + N + "$2box$3") + t;
|
|
1361
1365
|
}
|
|
1362
1366
|
break;
|
|
1363
1367
|
case 5936:
|
|
1364
1368
|
switch (D(t, e + 11)) {
|
|
1365
1369
|
case 114:
|
|
1366
|
-
return A + t +
|
|
1370
|
+
return A + t + N + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
1367
1371
|
case 108:
|
|
1368
|
-
return A + t +
|
|
1372
|
+
return A + t + N + m(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
|
1369
1373
|
case 45:
|
|
1370
|
-
return A + t +
|
|
1374
|
+
return A + t + N + m(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
|
1371
1375
|
}
|
|
1372
|
-
return A + t +
|
|
1376
|
+
return A + t + N + t + t;
|
|
1373
1377
|
}
|
|
1374
1378
|
return t;
|
|
1375
1379
|
}
|
|
1376
|
-
var
|
|
1380
|
+
var Hn = function(e, i, n, r) {
|
|
1377
1381
|
if (e.length > -1 && !e.return)
|
|
1378
1382
|
switch (e.type) {
|
|
1379
1383
|
case lt:
|
|
1380
|
-
e.return =
|
|
1384
|
+
e.return = ti(e.value, e.length);
|
|
1381
1385
|
break;
|
|
1382
|
-
case
|
|
1386
|
+
case Yt:
|
|
1383
1387
|
return oe([ve(e, {
|
|
1384
1388
|
value: m(e.value, "@", "@" + A)
|
|
1385
1389
|
})], r);
|
|
1386
1390
|
case dt:
|
|
1387
1391
|
if (e.length)
|
|
1388
|
-
return
|
|
1389
|
-
switch (
|
|
1392
|
+
return Tn(e.props, function(o) {
|
|
1393
|
+
switch (Rn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1390
1394
|
case ":read-only":
|
|
1391
1395
|
case ":read-write":
|
|
1392
1396
|
return oe([ve(e, {
|
|
@@ -1398,13 +1402,13 @@ var zn = function(e, i, n, r) {
|
|
|
1398
1402
|
}), ve(e, {
|
|
1399
1403
|
props: [m(o, /:(plac\w+)/, ":" + Ne + "$1")]
|
|
1400
1404
|
}), ve(e, {
|
|
1401
|
-
props: [m(o, /:(plac\w+)/,
|
|
1405
|
+
props: [m(o, /:(plac\w+)/, N + "input-$1")]
|
|
1402
1406
|
})], r);
|
|
1403
1407
|
}
|
|
1404
1408
|
return "";
|
|
1405
1409
|
});
|
|
1406
1410
|
}
|
|
1407
|
-
},
|
|
1411
|
+
}, Wn = [Hn], Jn = function(e) {
|
|
1408
1412
|
var i = e.key;
|
|
1409
1413
|
if (i === "css") {
|
|
1410
1414
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
@@ -1413,7 +1417,7 @@ var zn = function(e, i, n, r) {
|
|
|
1413
1417
|
g.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
|
1414
1418
|
});
|
|
1415
1419
|
}
|
|
1416
|
-
var r = e.stylisPlugins ||
|
|
1420
|
+
var r = e.stylisPlugins || Wn, o = {}, s, a = [];
|
|
1417
1421
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1418
1422
|
// this means we will ignore elements which don't have a space in them which
|
|
1419
1423
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -1424,20 +1428,20 @@ var zn = function(e, i, n, r) {
|
|
|
1424
1428
|
a.push(v);
|
|
1425
1429
|
}
|
|
1426
1430
|
);
|
|
1427
|
-
var d, l = [
|
|
1431
|
+
var d, l = [Gn, qn];
|
|
1428
1432
|
{
|
|
1429
|
-
var c, h = [
|
|
1433
|
+
var c, h = [Un, jn(function(v) {
|
|
1430
1434
|
c.insert(v);
|
|
1431
|
-
})], u =
|
|
1432
|
-
return oe(
|
|
1435
|
+
})], u = Bn(l.concat(r, h)), f = function(g) {
|
|
1436
|
+
return oe(Mn(g), u);
|
|
1433
1437
|
};
|
|
1434
|
-
d = function(g, p, _,
|
|
1435
|
-
c = _, f(g ? g + "{" + p.styles + "}" : p.styles),
|
|
1438
|
+
d = function(g, p, _, b) {
|
|
1439
|
+
c = _, f(g ? g + "{" + p.styles + "}" : p.styles), b && (y.inserted[p.name] = !0);
|
|
1436
1440
|
};
|
|
1437
1441
|
}
|
|
1438
1442
|
var y = {
|
|
1439
1443
|
key: i,
|
|
1440
|
-
sheet: new
|
|
1444
|
+
sheet: new mn({
|
|
1441
1445
|
key: i,
|
|
1442
1446
|
container: s,
|
|
1443
1447
|
nonce: e.nonce,
|
|
@@ -1452,7 +1456,7 @@ var zn = function(e, i, n, r) {
|
|
|
1452
1456
|
};
|
|
1453
1457
|
return y.sheet.hydrate(a), y;
|
|
1454
1458
|
};
|
|
1455
|
-
function
|
|
1459
|
+
function Yn(t) {
|
|
1456
1460
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1457
1461
|
i = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, i = /* Math.imul(k, m): */
|
|
1458
1462
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1471,7 +1475,7 @@ function qn(t) {
|
|
|
1471
1475
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1472
1476
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1473
1477
|
}
|
|
1474
|
-
var
|
|
1478
|
+
var Xn = {
|
|
1475
1479
|
animationIterationCount: 1,
|
|
1476
1480
|
aspectRatio: 1,
|
|
1477
1481
|
borderImageOutset: 1,
|
|
@@ -1520,18 +1524,18 @@ var Hn = {
|
|
|
1520
1524
|
strokeMiterlimit: 1,
|
|
1521
1525
|
strokeOpacity: 1,
|
|
1522
1526
|
strokeWidth: 1
|
|
1523
|
-
},
|
|
1527
|
+
}, Qn = /[A-Z]|^ms/g, Zn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ii = function(e) {
|
|
1524
1528
|
return e.charCodeAt(1) === 45;
|
|
1525
|
-
},
|
|
1529
|
+
}, It = function(e) {
|
|
1526
1530
|
return e != null && typeof e != "boolean";
|
|
1527
|
-
},
|
|
1528
|
-
return
|
|
1529
|
-
}),
|
|
1531
|
+
}, Ge = /* @__PURE__ */ Fn(function(t) {
|
|
1532
|
+
return ii(t) ? t : t.replace(Qn, "-$&").toLowerCase();
|
|
1533
|
+
}), xt = function(e, i) {
|
|
1530
1534
|
switch (e) {
|
|
1531
1535
|
case "animation":
|
|
1532
1536
|
case "animationName":
|
|
1533
1537
|
if (typeof i == "string")
|
|
1534
|
-
return i.replace(
|
|
1538
|
+
return i.replace(Zn, function(n, r, o) {
|
|
1535
1539
|
return Z = {
|
|
1536
1540
|
name: r,
|
|
1537
1541
|
styles: o,
|
|
@@ -1539,7 +1543,7 @@ var Hn = {
|
|
|
1539
1543
|
}, r;
|
|
1540
1544
|
});
|
|
1541
1545
|
}
|
|
1542
|
-
return
|
|
1546
|
+
return Xn[e] !== 1 && !ii(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1543
1547
|
};
|
|
1544
1548
|
function Pe(t, e, i) {
|
|
1545
1549
|
if (i == null)
|
|
@@ -1571,7 +1575,7 @@ function Pe(t, e, i) {
|
|
|
1571
1575
|
var a = o.styles + ";";
|
|
1572
1576
|
return a;
|
|
1573
1577
|
}
|
|
1574
|
-
return
|
|
1578
|
+
return er(t, e, i);
|
|
1575
1579
|
}
|
|
1576
1580
|
}
|
|
1577
1581
|
var d = i;
|
|
@@ -1580,7 +1584,7 @@ function Pe(t, e, i) {
|
|
|
1580
1584
|
var l = e[d];
|
|
1581
1585
|
return l !== void 0 ? l : d;
|
|
1582
1586
|
}
|
|
1583
|
-
function
|
|
1587
|
+
function er(t, e, i) {
|
|
1584
1588
|
var n = "";
|
|
1585
1589
|
if (Array.isArray(i))
|
|
1586
1590
|
for (var r = 0; r < i.length; r++)
|
|
@@ -1590,16 +1594,16 @@ function Yn(t, e, i) {
|
|
|
1590
1594
|
var s = i[o];
|
|
1591
1595
|
if (typeof s != "object") {
|
|
1592
1596
|
var a = s;
|
|
1593
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1597
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : It(a) && (n += Ge(o) + ":" + xt(o, a) + ";");
|
|
1594
1598
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1595
1599
|
for (var d = 0; d < s.length; d++)
|
|
1596
|
-
|
|
1600
|
+
It(s[d]) && (n += Ge(o) + ":" + xt(o, s[d]) + ";");
|
|
1597
1601
|
else {
|
|
1598
1602
|
var l = Pe(t, e, s);
|
|
1599
1603
|
switch (o) {
|
|
1600
1604
|
case "animation":
|
|
1601
1605
|
case "animationName": {
|
|
1602
|
-
n +=
|
|
1606
|
+
n += Ge(o) + ":" + l + ";";
|
|
1603
1607
|
break;
|
|
1604
1608
|
}
|
|
1605
1609
|
default:
|
|
@@ -1609,7 +1613,7 @@ function Yn(t, e, i) {
|
|
|
1609
1613
|
}
|
|
1610
1614
|
return n;
|
|
1611
1615
|
}
|
|
1612
|
-
var
|
|
1616
|
+
var Rt = /label:\s*([^\s;{]+)\s*(;|$)/g, Z;
|
|
1613
1617
|
function qe(t, e, i) {
|
|
1614
1618
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1615
1619
|
return t[0];
|
|
@@ -1627,23 +1631,23 @@ function qe(t, e, i) {
|
|
|
1627
1631
|
var d = o;
|
|
1628
1632
|
r += d[a];
|
|
1629
1633
|
}
|
|
1630
|
-
|
|
1631
|
-
for (var l = "", c; (c =
|
|
1634
|
+
Rt.lastIndex = 0;
|
|
1635
|
+
for (var l = "", c; (c = Rt.exec(r)) !== null; )
|
|
1632
1636
|
l += "-" + c[1];
|
|
1633
|
-
var h =
|
|
1637
|
+
var h = Yn(r) + l;
|
|
1634
1638
|
return {
|
|
1635
1639
|
name: h,
|
|
1636
1640
|
styles: r,
|
|
1637
1641
|
next: Z
|
|
1638
1642
|
};
|
|
1639
1643
|
}
|
|
1640
|
-
function
|
|
1644
|
+
function ni(t, e, i) {
|
|
1641
1645
|
var n = "";
|
|
1642
1646
|
return i.split(" ").forEach(function(r) {
|
|
1643
1647
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1644
1648
|
}), n;
|
|
1645
1649
|
}
|
|
1646
|
-
var
|
|
1650
|
+
var tr = function(e, i, n) {
|
|
1647
1651
|
var r = e.key + "-" + i.name;
|
|
1648
1652
|
// we only need to add the styles to the registered cache if the
|
|
1649
1653
|
// class name could be used further down
|
|
@@ -1651,8 +1655,8 @@ var Xn = function(e, i, n) {
|
|
|
1651
1655
|
// so we don't have to add it to registered cache.
|
|
1652
1656
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1653
1657
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1654
|
-
},
|
|
1655
|
-
|
|
1658
|
+
}, ir = function(e, i, n) {
|
|
1659
|
+
tr(e, i);
|
|
1656
1660
|
var r = e.key + "-" + i.name;
|
|
1657
1661
|
if (e.inserted[i.name] === void 0) {
|
|
1658
1662
|
var o = i;
|
|
@@ -1661,16 +1665,16 @@ var Xn = function(e, i, n) {
|
|
|
1661
1665
|
while (o !== void 0);
|
|
1662
1666
|
}
|
|
1663
1667
|
};
|
|
1664
|
-
function
|
|
1668
|
+
function Tt(t, e) {
|
|
1665
1669
|
if (t.inserted[e.name] === void 0)
|
|
1666
1670
|
return t.insert("", e, t.sheet, !0);
|
|
1667
1671
|
}
|
|
1668
|
-
function
|
|
1669
|
-
var n = [], r =
|
|
1672
|
+
function Ot(t, e, i) {
|
|
1673
|
+
var n = [], r = ni(t, n, i);
|
|
1670
1674
|
return n.length < 2 ? i : r + e(n);
|
|
1671
1675
|
}
|
|
1672
|
-
var
|
|
1673
|
-
var i =
|
|
1676
|
+
var nr = function(e) {
|
|
1677
|
+
var i = Jn(e);
|
|
1674
1678
|
i.sheet.speedy = function(a) {
|
|
1675
1679
|
this.isSpeedy = a;
|
|
1676
1680
|
}, i.compat = !0;
|
|
@@ -1678,12 +1682,12 @@ var Zn = function(e) {
|
|
|
1678
1682
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1679
1683
|
l[c] = arguments[c];
|
|
1680
1684
|
var h = qe(l, i.registered, void 0);
|
|
1681
|
-
return
|
|
1685
|
+
return ir(i, h), i.key + "-" + h.name;
|
|
1682
1686
|
}, r = function() {
|
|
1683
1687
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1684
1688
|
l[c] = arguments[c];
|
|
1685
1689
|
var h = qe(l, i.registered), u = "animation-" + h.name;
|
|
1686
|
-
return
|
|
1690
|
+
return Tt(i, {
|
|
1687
1691
|
name: h.name,
|
|
1688
1692
|
styles: "@keyframes " + u + "{" + h.styles + "}"
|
|
1689
1693
|
}), u;
|
|
@@ -1691,11 +1695,11 @@ var Zn = function(e) {
|
|
|
1691
1695
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1692
1696
|
l[c] = arguments[c];
|
|
1693
1697
|
var h = qe(l, i.registered);
|
|
1694
|
-
|
|
1698
|
+
Tt(i, h);
|
|
1695
1699
|
}, s = function() {
|
|
1696
1700
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1697
1701
|
l[c] = arguments[c];
|
|
1698
|
-
return
|
|
1702
|
+
return Ot(i.registered, n, rr(l));
|
|
1699
1703
|
};
|
|
1700
1704
|
return {
|
|
1701
1705
|
css: n,
|
|
@@ -1712,10 +1716,10 @@ var Zn = function(e) {
|
|
|
1712
1716
|
},
|
|
1713
1717
|
sheet: i.sheet,
|
|
1714
1718
|
cache: i,
|
|
1715
|
-
getRegisteredStyles:
|
|
1716
|
-
merge:
|
|
1719
|
+
getRegisteredStyles: ni.bind(null, i.registered),
|
|
1720
|
+
merge: Ot.bind(null, i.registered, n)
|
|
1717
1721
|
};
|
|
1718
|
-
},
|
|
1722
|
+
}, rr = function t(e) {
|
|
1719
1723
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1720
1724
|
var r = e[n];
|
|
1721
1725
|
if (r != null) {
|
|
@@ -1740,44 +1744,44 @@ var Zn = function(e) {
|
|
|
1740
1744
|
}
|
|
1741
1745
|
}
|
|
1742
1746
|
return i;
|
|
1743
|
-
},
|
|
1747
|
+
}, or = nr({
|
|
1744
1748
|
key: "css"
|
|
1745
|
-
}), le =
|
|
1746
|
-
function
|
|
1747
|
-
|
|
1748
|
-
var i =
|
|
1749
|
+
}), le = or.css, nt, j, He, Dt, Ct = 0, ri = [], T = se, Lt = T.__b, Nt = T.__r, Pt = T.diffed, Mt = T.__c, $t = T.unmount, Ut = T.__;
|
|
1750
|
+
function sr(t, e) {
|
|
1751
|
+
T.__h && T.__h(j, t, Ct || e), Ct = 0;
|
|
1752
|
+
var i = j.__H || (j.__H = { __: [], __h: [] });
|
|
1749
1753
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1750
1754
|
}
|
|
1751
|
-
function
|
|
1752
|
-
var i =
|
|
1753
|
-
return
|
|
1755
|
+
function oi(t, e) {
|
|
1756
|
+
var i = sr(nt++, 7);
|
|
1757
|
+
return lr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1754
1758
|
}
|
|
1755
|
-
function
|
|
1756
|
-
for (var t; t =
|
|
1759
|
+
function ar() {
|
|
1760
|
+
for (var t; t = ri.shift(); )
|
|
1757
1761
|
if (t.__P && t.__H)
|
|
1758
1762
|
try {
|
|
1759
1763
|
t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
|
|
1760
1764
|
} catch (e) {
|
|
1761
|
-
t.__H.__h = [],
|
|
1765
|
+
t.__H.__h = [], T.__e(e, t.__v);
|
|
1762
1766
|
}
|
|
1763
1767
|
}
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
},
|
|
1767
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1768
|
-
},
|
|
1769
|
-
|
|
1770
|
-
var e = (
|
|
1771
|
-
e && (He ===
|
|
1768
|
+
T.__b = function(t) {
|
|
1769
|
+
j = null, Lt && Lt(t);
|
|
1770
|
+
}, T.__ = function(t, e) {
|
|
1771
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Ut && Ut(t, e);
|
|
1772
|
+
}, T.__r = function(t) {
|
|
1773
|
+
Nt && Nt(t), nt = 0;
|
|
1774
|
+
var e = (j = t.__c).__H;
|
|
1775
|
+
e && (He === j ? (e.__h = [], j.__h = [], e.__.forEach(function(i) {
|
|
1772
1776
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1773
|
-
})) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], nt = 0)), He =
|
|
1774
|
-
},
|
|
1775
|
-
|
|
1777
|
+
})) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], nt = 0)), He = j;
|
|
1778
|
+
}, T.diffed = function(t) {
|
|
1779
|
+
Pt && Pt(t);
|
|
1776
1780
|
var e = t.__c;
|
|
1777
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1781
|
+
e && e.__H && (e.__H.__h.length && (ri.push(e) !== 1 && Dt === T.requestAnimationFrame || ((Dt = T.requestAnimationFrame) || dr)(ar)), e.__H.__.forEach(function(i) {
|
|
1778
1782
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1779
|
-
})), He =
|
|
1780
|
-
},
|
|
1783
|
+
})), He = j = null;
|
|
1784
|
+
}, T.__c = function(t, e) {
|
|
1781
1785
|
e.some(function(i) {
|
|
1782
1786
|
try {
|
|
1783
1787
|
i.__h.forEach(De), i.__h = i.__h.filter(function(n) {
|
|
@@ -1786,11 +1790,11 @@ O.__b = function(t) {
|
|
|
1786
1790
|
} catch (n) {
|
|
1787
1791
|
e.some(function(r) {
|
|
1788
1792
|
r.__h && (r.__h = []);
|
|
1789
|
-
}), e = [],
|
|
1793
|
+
}), e = [], T.__e(n, i.__v);
|
|
1790
1794
|
}
|
|
1791
|
-
}),
|
|
1792
|
-
},
|
|
1793
|
-
|
|
1795
|
+
}), Mt && Mt(t, e);
|
|
1796
|
+
}, T.unmount = function(t) {
|
|
1797
|
+
$t && $t(t);
|
|
1794
1798
|
var e, i = t.__c;
|
|
1795
1799
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1796
1800
|
try {
|
|
@@ -1798,29 +1802,29 @@ O.__b = function(t) {
|
|
|
1798
1802
|
} catch (r) {
|
|
1799
1803
|
e = r;
|
|
1800
1804
|
}
|
|
1801
|
-
}), i.__H = void 0, e &&
|
|
1805
|
+
}), i.__H = void 0, e && T.__e(e, i.__v));
|
|
1802
1806
|
};
|
|
1803
|
-
var
|
|
1804
|
-
function
|
|
1807
|
+
var Bt = typeof requestAnimationFrame == "function";
|
|
1808
|
+
function dr(t) {
|
|
1805
1809
|
var e, i = function() {
|
|
1806
|
-
clearTimeout(n),
|
|
1810
|
+
clearTimeout(n), Bt && cancelAnimationFrame(e), setTimeout(t);
|
|
1807
1811
|
}, n = setTimeout(i, 100);
|
|
1808
|
-
|
|
1812
|
+
Bt && (e = requestAnimationFrame(i));
|
|
1809
1813
|
}
|
|
1810
1814
|
function De(t) {
|
|
1811
|
-
var e =
|
|
1812
|
-
typeof i == "function" && (t.__c = void 0, i()),
|
|
1815
|
+
var e = j, i = t.__c;
|
|
1816
|
+
typeof i == "function" && (t.__c = void 0, i()), j = e;
|
|
1813
1817
|
}
|
|
1814
1818
|
function rt(t) {
|
|
1815
|
-
var e =
|
|
1816
|
-
t.__c = t.__(),
|
|
1819
|
+
var e = j;
|
|
1820
|
+
t.__c = t.__(), j = e;
|
|
1817
1821
|
}
|
|
1818
|
-
function
|
|
1822
|
+
function lr(t, e) {
|
|
1819
1823
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1820
1824
|
return i !== t[n];
|
|
1821
1825
|
});
|
|
1822
1826
|
}
|
|
1823
|
-
var
|
|
1827
|
+
var cr = Symbol.for("preact-signals");
|
|
1824
1828
|
function Ve() {
|
|
1825
1829
|
if (ee > 1)
|
|
1826
1830
|
ee--;
|
|
@@ -1829,7 +1833,7 @@ function Ve() {
|
|
|
1829
1833
|
var i = ye;
|
|
1830
1834
|
for (ye = void 0, ot++; i !== void 0; ) {
|
|
1831
1835
|
var n = i.o;
|
|
1832
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1836
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && ai(i))
|
|
1833
1837
|
try {
|
|
1834
1838
|
i.c();
|
|
1835
1839
|
} catch (r) {
|
|
@@ -1842,7 +1846,7 @@ function Ve() {
|
|
|
1842
1846
|
throw t;
|
|
1843
1847
|
}
|
|
1844
1848
|
}
|
|
1845
|
-
function
|
|
1849
|
+
function O(t) {
|
|
1846
1850
|
if (ee > 0)
|
|
1847
1851
|
return t();
|
|
1848
1852
|
ee++;
|
|
@@ -1852,64 +1856,64 @@ function T(t) {
|
|
|
1852
1856
|
Ve();
|
|
1853
1857
|
}
|
|
1854
1858
|
}
|
|
1855
|
-
var
|
|
1856
|
-
function
|
|
1857
|
-
if (
|
|
1859
|
+
var k = void 0, ye = void 0, ee = 0, ot = 0, Me = 0;
|
|
1860
|
+
function si(t) {
|
|
1861
|
+
if (k !== void 0) {
|
|
1858
1862
|
var e = t.n;
|
|
1859
|
-
if (e === void 0 || e.t !==
|
|
1860
|
-
return e = { i: 0, S: t, p:
|
|
1863
|
+
if (e === void 0 || e.t !== k)
|
|
1864
|
+
return e = { i: 0, S: t, p: k.s, n: void 0, t: k, e: void 0, x: void 0, r: e }, k.s !== void 0 && (k.s.n = e), k.s = e, t.n = e, 32 & k.f && t.S(e), e;
|
|
1861
1865
|
if (e.i === -1)
|
|
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 =
|
|
1866
|
+
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
|
|
1863
1867
|
}
|
|
1864
1868
|
}
|
|
1865
|
-
function
|
|
1869
|
+
function C(t) {
|
|
1866
1870
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1867
1871
|
}
|
|
1868
|
-
|
|
1869
|
-
|
|
1872
|
+
C.prototype.brand = cr;
|
|
1873
|
+
C.prototype.h = function() {
|
|
1870
1874
|
return !0;
|
|
1871
1875
|
};
|
|
1872
|
-
|
|
1876
|
+
C.prototype.S = function(t) {
|
|
1873
1877
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1874
1878
|
};
|
|
1875
|
-
|
|
1879
|
+
C.prototype.U = function(t) {
|
|
1876
1880
|
if (this.t !== void 0) {
|
|
1877
1881
|
var e = t.e, i = t.x;
|
|
1878
1882
|
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);
|
|
1879
1883
|
}
|
|
1880
1884
|
};
|
|
1881
|
-
|
|
1885
|
+
C.prototype.subscribe = function(t) {
|
|
1882
1886
|
var e = this;
|
|
1883
1887
|
return Ee(function() {
|
|
1884
|
-
var i = e.value, n =
|
|
1885
|
-
|
|
1888
|
+
var i = e.value, n = k;
|
|
1889
|
+
k = void 0;
|
|
1886
1890
|
try {
|
|
1887
1891
|
t(i);
|
|
1888
1892
|
} finally {
|
|
1889
|
-
|
|
1893
|
+
k = n;
|
|
1890
1894
|
}
|
|
1891
1895
|
});
|
|
1892
1896
|
};
|
|
1893
|
-
|
|
1897
|
+
C.prototype.valueOf = function() {
|
|
1894
1898
|
return this.value;
|
|
1895
1899
|
};
|
|
1896
|
-
|
|
1900
|
+
C.prototype.toString = function() {
|
|
1897
1901
|
return this.value + "";
|
|
1898
1902
|
};
|
|
1899
|
-
|
|
1903
|
+
C.prototype.toJSON = function() {
|
|
1900
1904
|
return this.value;
|
|
1901
1905
|
};
|
|
1902
|
-
|
|
1903
|
-
var t =
|
|
1904
|
-
|
|
1906
|
+
C.prototype.peek = function() {
|
|
1907
|
+
var t = k;
|
|
1908
|
+
k = void 0;
|
|
1905
1909
|
try {
|
|
1906
1910
|
return this.value;
|
|
1907
1911
|
} finally {
|
|
1908
|
-
|
|
1912
|
+
k = t;
|
|
1909
1913
|
}
|
|
1910
1914
|
};
|
|
1911
|
-
Object.defineProperty(
|
|
1912
|
-
var t =
|
|
1915
|
+
Object.defineProperty(C.prototype, "value", { get: function() {
|
|
1916
|
+
var t = si(this);
|
|
1913
1917
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1914
1918
|
}, set: function(t) {
|
|
1915
1919
|
if (t !== this.v) {
|
|
@@ -1925,15 +1929,15 @@ Object.defineProperty(L.prototype, "value", { get: function() {
|
|
|
1925
1929
|
}
|
|
1926
1930
|
} });
|
|
1927
1931
|
function E(t) {
|
|
1928
|
-
return new
|
|
1932
|
+
return new C(t);
|
|
1929
1933
|
}
|
|
1930
|
-
function
|
|
1934
|
+
function ai(t) {
|
|
1931
1935
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1932
1936
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1933
1937
|
return !0;
|
|
1934
1938
|
return !1;
|
|
1935
1939
|
}
|
|
1936
|
-
function
|
|
1940
|
+
function di(t) {
|
|
1937
1941
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1938
1942
|
var i = e.S.n;
|
|
1939
1943
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1942,7 +1946,7 @@ function oi(t) {
|
|
|
1942
1946
|
}
|
|
1943
1947
|
}
|
|
1944
1948
|
}
|
|
1945
|
-
function
|
|
1949
|
+
function li(t) {
|
|
1946
1950
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1947
1951
|
var n = e.p;
|
|
1948
1952
|
e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
|
|
@@ -1950,24 +1954,24 @@ function si(t) {
|
|
|
1950
1954
|
t.s = i;
|
|
1951
1955
|
}
|
|
1952
1956
|
function ce(t) {
|
|
1953
|
-
|
|
1957
|
+
C.call(this, void 0), this.x = t, this.s = void 0, this.g = Me - 1, this.f = 4;
|
|
1954
1958
|
}
|
|
1955
|
-
(ce.prototype = new
|
|
1959
|
+
(ce.prototype = new C()).h = function() {
|
|
1956
1960
|
if (this.f &= -3, 1 & this.f)
|
|
1957
1961
|
return !1;
|
|
1958
1962
|
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Me))
|
|
1959
1963
|
return !0;
|
|
1960
|
-
if (this.g = Me, this.f |= 1, this.i > 0 && !
|
|
1964
|
+
if (this.g = Me, this.f |= 1, this.i > 0 && !ai(this))
|
|
1961
1965
|
return this.f &= -2, !0;
|
|
1962
|
-
var t =
|
|
1966
|
+
var t = k;
|
|
1963
1967
|
try {
|
|
1964
|
-
|
|
1968
|
+
di(this), k = this;
|
|
1965
1969
|
var e = this.x();
|
|
1966
1970
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1967
1971
|
} catch (i) {
|
|
1968
1972
|
this.v = i, this.f |= 16, this.i++;
|
|
1969
1973
|
}
|
|
1970
|
-
return
|
|
1974
|
+
return k = t, li(this), this.f &= -2, !0;
|
|
1971
1975
|
};
|
|
1972
1976
|
ce.prototype.S = function(t) {
|
|
1973
1977
|
if (this.t === void 0) {
|
|
@@ -1975,10 +1979,10 @@ ce.prototype.S = function(t) {
|
|
|
1975
1979
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1976
1980
|
e.S.S(e);
|
|
1977
1981
|
}
|
|
1978
|
-
|
|
1982
|
+
C.prototype.S.call(this, t);
|
|
1979
1983
|
};
|
|
1980
1984
|
ce.prototype.U = function(t) {
|
|
1981
|
-
if (this.t !== void 0 && (
|
|
1985
|
+
if (this.t !== void 0 && (C.prototype.U.call(this, t), this.t === void 0)) {
|
|
1982
1986
|
this.f &= -33;
|
|
1983
1987
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1984
1988
|
e.S.U(e);
|
|
@@ -1994,7 +1998,7 @@ ce.prototype.N = function() {
|
|
|
1994
1998
|
Object.defineProperty(ce.prototype, "value", { get: function() {
|
|
1995
1999
|
if (1 & this.f)
|
|
1996
2000
|
throw new Error("Cycle detected");
|
|
1997
|
-
var t =
|
|
2001
|
+
var t = si(this);
|
|
1998
2002
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
1999
2003
|
throw this.v;
|
|
2000
2004
|
return this.v;
|
|
@@ -2002,30 +2006,30 @@ Object.defineProperty(ce.prototype, "value", { get: function() {
|
|
|
2002
2006
|
function _e(t) {
|
|
2003
2007
|
return new ce(t);
|
|
2004
2008
|
}
|
|
2005
|
-
function
|
|
2009
|
+
function ci(t) {
|
|
2006
2010
|
var e = t.u;
|
|
2007
2011
|
if (t.u = void 0, typeof e == "function") {
|
|
2008
2012
|
ee++;
|
|
2009
|
-
var i =
|
|
2010
|
-
|
|
2013
|
+
var i = k;
|
|
2014
|
+
k = void 0;
|
|
2011
2015
|
try {
|
|
2012
2016
|
e();
|
|
2013
2017
|
} catch (n) {
|
|
2014
2018
|
throw t.f &= -2, t.f |= 8, ut(t), n;
|
|
2015
2019
|
} finally {
|
|
2016
|
-
|
|
2020
|
+
k = i, Ve();
|
|
2017
2021
|
}
|
|
2018
2022
|
}
|
|
2019
2023
|
}
|
|
2020
2024
|
function ut(t) {
|
|
2021
2025
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2022
2026
|
e.S.U(e);
|
|
2023
|
-
t.x = void 0, t.s = void 0,
|
|
2027
|
+
t.x = void 0, t.s = void 0, ci(t);
|
|
2024
2028
|
}
|
|
2025
|
-
function
|
|
2026
|
-
if (
|
|
2029
|
+
function ur(t) {
|
|
2030
|
+
if (k !== this)
|
|
2027
2031
|
throw new Error("Out-of-order effect");
|
|
2028
|
-
|
|
2032
|
+
li(this), k = t, this.f &= -2, 8 & this.f && ut(this), Ve();
|
|
2029
2033
|
}
|
|
2030
2034
|
function me(t) {
|
|
2031
2035
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
@@ -2044,9 +2048,9 @@ me.prototype.c = function() {
|
|
|
2044
2048
|
me.prototype.S = function() {
|
|
2045
2049
|
if (1 & this.f)
|
|
2046
2050
|
throw new Error("Cycle detected");
|
|
2047
|
-
this.f |= 1, this.f &= -9,
|
|
2048
|
-
var t =
|
|
2049
|
-
return
|
|
2051
|
+
this.f |= 1, this.f &= -9, ci(this), di(this), ee++;
|
|
2052
|
+
var t = k;
|
|
2053
|
+
return k = this, ur.bind(this, t);
|
|
2050
2054
|
};
|
|
2051
2055
|
me.prototype.N = function() {
|
|
2052
2056
|
2 & this.f || (this.f |= 2, this.o = ye, ye = this);
|
|
@@ -2063,9 +2067,9 @@ function Ee(t) {
|
|
|
2063
2067
|
}
|
|
2064
2068
|
return e.d.bind(e);
|
|
2065
2069
|
}
|
|
2066
|
-
var
|
|
2070
|
+
var ui, We, hi = [];
|
|
2067
2071
|
Ee(function() {
|
|
2068
|
-
|
|
2072
|
+
ui = this.N;
|
|
2069
2073
|
})();
|
|
2070
2074
|
function ue(t, e) {
|
|
2071
2075
|
se[t] = e.bind(null, se[t] || function() {
|
|
@@ -2074,10 +2078,10 @@ function ue(t, e) {
|
|
|
2074
2078
|
function $e(t) {
|
|
2075
2079
|
We && We(), We = t && t.S();
|
|
2076
2080
|
}
|
|
2077
|
-
function
|
|
2078
|
-
var e = this, i = t.data, n =
|
|
2081
|
+
function fi(t) {
|
|
2082
|
+
var e = this, i = t.data, n = vi(i);
|
|
2079
2083
|
n.value = i;
|
|
2080
|
-
var r =
|
|
2084
|
+
var r = oi(function() {
|
|
2081
2085
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2082
2086
|
if (d.__c) {
|
|
2083
2087
|
d.__c.__$f |= 4;
|
|
@@ -2087,9 +2091,9 @@ function ci(t) {
|
|
|
2087
2091
|
var f = n.value.value;
|
|
2088
2092
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2089
2093
|
}), c = _e(function() {
|
|
2090
|
-
return !Array.isArray(l.value) && !
|
|
2094
|
+
return !Array.isArray(l.value) && !Ei(l.value);
|
|
2091
2095
|
}), h = Ee(function() {
|
|
2092
|
-
if (this.N =
|
|
2096
|
+
if (this.N = pi, c.value) {
|
|
2093
2097
|
var f = l.value;
|
|
2094
2098
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2095
2099
|
}
|
|
@@ -2100,8 +2104,8 @@ function ci(t) {
|
|
|
2100
2104
|
}, []), o = r[0], s = r[1];
|
|
2101
2105
|
return o.value ? s.peek() : s.value;
|
|
2102
2106
|
}
|
|
2103
|
-
|
|
2104
|
-
Object.defineProperties(
|
|
2107
|
+
fi.displayName = "_st";
|
|
2108
|
+
Object.defineProperties(C.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: fi }, props: { configurable: !0, get: function() {
|
|
2105
2109
|
return { data: this };
|
|
2106
2110
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2107
2111
|
ue("__b", function(t, e) {
|
|
@@ -2110,7 +2114,7 @@ ue("__b", function(t, e) {
|
|
|
2110
2114
|
for (var r in n)
|
|
2111
2115
|
if (r !== "children") {
|
|
2112
2116
|
var o = n[r];
|
|
2113
|
-
o instanceof
|
|
2117
|
+
o instanceof C && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
|
|
2114
2118
|
}
|
|
2115
2119
|
}
|
|
2116
2120
|
t(e);
|
|
@@ -2146,18 +2150,18 @@ ue("diffed", function(t, e) {
|
|
|
2146
2150
|
o = {}, i.U = o;
|
|
2147
2151
|
for (var d in n) {
|
|
2148
2152
|
var l = o[d], c = n[d];
|
|
2149
|
-
l === void 0 ? (l =
|
|
2153
|
+
l === void 0 ? (l = hr(i, d, c, r), o[d] = l) : l.o(c, r);
|
|
2150
2154
|
}
|
|
2151
2155
|
}
|
|
2152
2156
|
}
|
|
2153
2157
|
t(e);
|
|
2154
2158
|
});
|
|
2155
|
-
function
|
|
2159
|
+
function hr(t, e, i, n) {
|
|
2156
2160
|
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2157
2161
|
return { o: function(s, a) {
|
|
2158
2162
|
o.value = s, n = a;
|
|
2159
2163
|
}, d: Ee(function() {
|
|
2160
|
-
this.N =
|
|
2164
|
+
this.N = pi;
|
|
2161
2165
|
var s = o.value.value;
|
|
2162
2166
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2163
2167
|
}) };
|
|
@@ -2187,7 +2191,7 @@ ue("unmount", function(t, e) {
|
|
|
2187
2191
|
ue("__h", function(t, e, i, n) {
|
|
2188
2192
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2189
2193
|
});
|
|
2190
|
-
|
|
2194
|
+
mi.prototype.shouldComponentUpdate = function(t, e) {
|
|
2191
2195
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2192
2196
|
for (var r in e)
|
|
2193
2197
|
return !0;
|
|
@@ -2205,26 +2209,26 @@ wi.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2205
2209
|
return !0;
|
|
2206
2210
|
return !1;
|
|
2207
2211
|
};
|
|
2208
|
-
function
|
|
2209
|
-
return
|
|
2212
|
+
function vi(t) {
|
|
2213
|
+
return oi(function() {
|
|
2210
2214
|
return E(t);
|
|
2211
2215
|
}, []);
|
|
2212
2216
|
}
|
|
2213
|
-
var
|
|
2217
|
+
var fr = function(t) {
|
|
2214
2218
|
queueMicrotask(function() {
|
|
2215
2219
|
queueMicrotask(t);
|
|
2216
2220
|
});
|
|
2217
2221
|
};
|
|
2218
|
-
function
|
|
2219
|
-
|
|
2220
|
-
for (var t; t =
|
|
2221
|
-
|
|
2222
|
+
function vr() {
|
|
2223
|
+
O(function() {
|
|
2224
|
+
for (var t; t = hi.shift(); )
|
|
2225
|
+
ui.call(t);
|
|
2222
2226
|
});
|
|
2223
2227
|
}
|
|
2224
|
-
function
|
|
2225
|
-
|
|
2228
|
+
function pi() {
|
|
2229
|
+
hi.push(this) === 1 && (se.requestAnimationFrame || fr)(vr);
|
|
2226
2230
|
}
|
|
2227
|
-
const
|
|
2231
|
+
const P = le`
|
|
2228
2232
|
inset: 0;
|
|
2229
2233
|
clear: none;
|
|
2230
2234
|
float: none;
|
|
@@ -2243,9 +2247,9 @@ const N = le`
|
|
|
2243
2247
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2244
2248
|
'Helvetica Neue', sans-serif;
|
|
2245
2249
|
`;
|
|
2246
|
-
function
|
|
2247
|
-
const i =
|
|
2248
|
-
|
|
2250
|
+
function pr(t, e) {
|
|
2251
|
+
const i = Si(t);
|
|
2252
|
+
ki(() => {
|
|
2249
2253
|
i.current = t;
|
|
2250
2254
|
}, [t]), Ue(() => {
|
|
2251
2255
|
if (e === null)
|
|
@@ -2258,21 +2262,21 @@ function ur(t, e) {
|
|
|
2258
2262
|
};
|
|
2259
2263
|
}, [e]);
|
|
2260
2264
|
}
|
|
2261
|
-
var
|
|
2262
|
-
function
|
|
2265
|
+
var yr = 0;
|
|
2266
|
+
function w(t, e, i, n, r, o) {
|
|
2263
2267
|
e || (e = {});
|
|
2264
2268
|
var s, a, d = e;
|
|
2265
2269
|
if ("ref" in d)
|
|
2266
2270
|
for (a in d = {}, e)
|
|
2267
2271
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2268
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2272
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --yr, __i: -1, __u: 0, __source: r, __self: o };
|
|
2269
2273
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2270
2274
|
for (a in s)
|
|
2271
2275
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2272
2276
|
return se.vnode && se.vnode(l), l;
|
|
2273
2277
|
}
|
|
2274
|
-
const
|
|
2275
|
-
${
|
|
2278
|
+
const _r = le`
|
|
2279
|
+
${P}
|
|
2276
2280
|
position: fixed;
|
|
2277
2281
|
top: 0;
|
|
2278
2282
|
left: 0;
|
|
@@ -2285,7 +2289,7 @@ const fr = le`
|
|
|
2285
2289
|
height: 100vh;
|
|
2286
2290
|
|
|
2287
2291
|
.card-wrapper {
|
|
2288
|
-
${
|
|
2292
|
+
${P}
|
|
2289
2293
|
position: relative;
|
|
2290
2294
|
display: flex;
|
|
2291
2295
|
flex-direction: column;
|
|
@@ -2299,7 +2303,7 @@ const fr = le`
|
|
|
2299
2303
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2300
2304
|
|
|
2301
2305
|
.body {
|
|
2302
|
-
${
|
|
2306
|
+
${P}
|
|
2303
2307
|
display: flex;
|
|
2304
2308
|
flex-direction: column;
|
|
2305
2309
|
width: 100%;
|
|
@@ -2308,7 +2312,7 @@ const fr = le`
|
|
|
2308
2312
|
box-sizing: border-box;
|
|
2309
2313
|
justify-content: center;
|
|
2310
2314
|
.title {
|
|
2311
|
-
${
|
|
2315
|
+
${P}
|
|
2312
2316
|
text-align: center;
|
|
2313
2317
|
font-size: 16px;
|
|
2314
2318
|
font-weight: bold;
|
|
@@ -2316,7 +2320,7 @@ const fr = le`
|
|
|
2316
2320
|
}
|
|
2317
2321
|
|
|
2318
2322
|
.content {
|
|
2319
|
-
${
|
|
2323
|
+
${P}
|
|
2320
2324
|
font-size: 14px;
|
|
2321
2325
|
color: #888;
|
|
2322
2326
|
margin-bottom: 16px;
|
|
@@ -2324,13 +2328,13 @@ const fr = le`
|
|
|
2324
2328
|
}
|
|
2325
2329
|
|
|
2326
2330
|
.footer {
|
|
2327
|
-
${
|
|
2331
|
+
${P}
|
|
2328
2332
|
display: flex;
|
|
2329
2333
|
align-items: center;
|
|
2330
2334
|
width: 100%;
|
|
2331
2335
|
height: 40px;
|
|
2332
2336
|
button {
|
|
2333
|
-
${
|
|
2337
|
+
${P}
|
|
2334
2338
|
border: none;
|
|
2335
2339
|
outline: none;
|
|
2336
2340
|
height: 100%;
|
|
@@ -2346,56 +2350,56 @@ const fr = le`
|
|
|
2346
2350
|
}
|
|
2347
2351
|
}
|
|
2348
2352
|
}
|
|
2349
|
-
`,
|
|
2353
|
+
`, K = E(null), st = E(""), at = E(""), Ce = E(!1), gr = () => {
|
|
2350
2354
|
var t;
|
|
2351
|
-
(t =
|
|
2352
|
-
},
|
|
2355
|
+
(t = K.value) == null || t.call(K, !1);
|
|
2356
|
+
}, br = () => {
|
|
2353
2357
|
var t;
|
|
2354
|
-
(t =
|
|
2355
|
-
},
|
|
2358
|
+
(t = K.value) == null || t.call(K, !0);
|
|
2359
|
+
}, wr = async (t) => {
|
|
2356
2360
|
let {
|
|
2357
2361
|
title: e,
|
|
2358
2362
|
content: i
|
|
2359
2363
|
} = t;
|
|
2360
|
-
return
|
|
2361
|
-
|
|
2362
|
-
})),
|
|
2363
|
-
st.value = e || "", at.value = i || "",
|
|
2364
|
+
return K.value && (K.value(!1), O(() => {
|
|
2365
|
+
K.value = null, Ce.value = !1;
|
|
2366
|
+
})), O(() => {
|
|
2367
|
+
st.value = e || "", at.value = i || "", Ce.value = !0;
|
|
2364
2368
|
}), new Promise((n) => {
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2369
|
+
K.value = (r) => {
|
|
2370
|
+
O(() => {
|
|
2371
|
+
K.value = null, Ce.value = !1, st.value = "", at.value = "";
|
|
2368
2372
|
}), n(r);
|
|
2369
2373
|
};
|
|
2370
2374
|
});
|
|
2371
|
-
},
|
|
2372
|
-
className:
|
|
2373
|
-
children:
|
|
2375
|
+
}, Ar = () => Ce.value ? w("div", {
|
|
2376
|
+
className: _r,
|
|
2377
|
+
children: w("div", {
|
|
2374
2378
|
className: "card-wrapper",
|
|
2375
|
-
children: [
|
|
2379
|
+
children: [w("div", {
|
|
2376
2380
|
className: "body",
|
|
2377
|
-
children: [
|
|
2381
|
+
children: [w("div", {
|
|
2378
2382
|
className: "title",
|
|
2379
2383
|
children: st.value
|
|
2380
|
-
}),
|
|
2384
|
+
}), w("div", {
|
|
2381
2385
|
className: "content",
|
|
2382
2386
|
children: at.value
|
|
2383
2387
|
})]
|
|
2384
|
-
}),
|
|
2388
|
+
}), w("div", {
|
|
2385
2389
|
className: "footer",
|
|
2386
|
-
children: [
|
|
2387
|
-
onClick:
|
|
2390
|
+
children: [w("button", {
|
|
2391
|
+
onClick: gr,
|
|
2388
2392
|
className: "cancel-btn",
|
|
2389
2393
|
children: "Cancel"
|
|
2390
|
-
}),
|
|
2391
|
-
onClick:
|
|
2394
|
+
}), w("button", {
|
|
2395
|
+
onClick: br,
|
|
2392
2396
|
className: "confirm-btm",
|
|
2393
2397
|
children: "Confirm"
|
|
2394
2398
|
})]
|
|
2395
2399
|
})]
|
|
2396
2400
|
})
|
|
2397
|
-
}) : null,
|
|
2398
|
-
${
|
|
2401
|
+
}) : null, mr = le`
|
|
2402
|
+
${P}
|
|
2399
2403
|
position: relative;
|
|
2400
2404
|
display: flex;
|
|
2401
2405
|
align-items: center;
|
|
@@ -2413,7 +2417,7 @@ const fr = le`
|
|
|
2413
2417
|
}
|
|
2414
2418
|
|
|
2415
2419
|
button {
|
|
2416
|
-
${
|
|
2420
|
+
${P}
|
|
2417
2421
|
padding: 0 20px;
|
|
2418
2422
|
height: 30px;
|
|
2419
2423
|
line-height: 30px;
|
|
@@ -2427,18 +2431,18 @@ const fr = le`
|
|
|
2427
2431
|
cursor: not-allowed;
|
|
2428
2432
|
}
|
|
2429
2433
|
}
|
|
2430
|
-
`,
|
|
2434
|
+
`, Er = () => {
|
|
2431
2435
|
const t = E(!1), e = E(null);
|
|
2432
2436
|
return {
|
|
2433
2437
|
timerPaused: t,
|
|
2434
2438
|
startTimestamp: e,
|
|
2435
2439
|
startTimer: () => {
|
|
2436
|
-
|
|
2440
|
+
O(() => {
|
|
2437
2441
|
e.value = Date.now(), t.value = !1;
|
|
2438
2442
|
});
|
|
2439
2443
|
}
|
|
2440
2444
|
};
|
|
2441
|
-
},
|
|
2445
|
+
}, Sr = (t) => {
|
|
2442
2446
|
let {
|
|
2443
2447
|
countdown: e = 0,
|
|
2444
2448
|
mode: i,
|
|
@@ -2448,9 +2452,9 @@ const fr = le`
|
|
|
2448
2452
|
const {
|
|
2449
2453
|
startTimestamp: o,
|
|
2450
2454
|
timerPaused: s
|
|
2451
|
-
} = r, a =
|
|
2452
|
-
|
|
2453
|
-
a.value > 0 ? a.value -= 1 :
|
|
2455
|
+
} = r, a = vi(e);
|
|
2456
|
+
pr(() => {
|
|
2457
|
+
a.value > 0 ? a.value -= 1 : O(() => {
|
|
2454
2458
|
s.value = !0, a.value = 0;
|
|
2455
2459
|
});
|
|
2456
2460
|
}, s.value ? null : 1e3);
|
|
@@ -2467,43 +2471,43 @@ const fr = le`
|
|
|
2467
2471
|
const f = Date.now() - o.value;
|
|
2468
2472
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2469
2473
|
}), c = _e(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2470
|
-
if (s.value = !0, !await
|
|
2474
|
+
if (s.value = !0, !await wr({
|
|
2471
2475
|
title: "Are you sure?",
|
|
2472
2476
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2473
2477
|
})) {
|
|
2474
2478
|
s.value = !1;
|
|
2475
2479
|
return;
|
|
2476
2480
|
}
|
|
2477
|
-
n("dismiss"),
|
|
2481
|
+
n("dismiss"), O(() => {
|
|
2478
2482
|
s.value = !0, a.value = 0, o.value = null;
|
|
2479
2483
|
});
|
|
2480
2484
|
}, u = () => {
|
|
2481
|
-
n("viewed"),
|
|
2485
|
+
n("viewed"), O(() => {
|
|
2482
2486
|
s.value = !0, a.value = 0, o.value = null;
|
|
2483
2487
|
});
|
|
2484
2488
|
};
|
|
2485
|
-
return
|
|
2486
|
-
className:
|
|
2487
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2489
|
+
return w("div", {
|
|
2490
|
+
className: mr,
|
|
2491
|
+
children: [a.value > 0 && i !== "interstitial" && w("div", {
|
|
2488
2492
|
className: "timer",
|
|
2489
2493
|
children: [a.value, "s"]
|
|
2490
|
-
}),
|
|
2494
|
+
}), w("button", {
|
|
2491
2495
|
onClick: d.value ? h : l.value ? u : void 0,
|
|
2492
2496
|
disabled: c.value,
|
|
2493
|
-
children:
|
|
2497
|
+
children: w("svg", {
|
|
2494
2498
|
width: "12",
|
|
2495
2499
|
height: "12",
|
|
2496
2500
|
viewBox: "0 0 14 14",
|
|
2497
2501
|
fill: "none",
|
|
2498
2502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2499
|
-
children:
|
|
2503
|
+
children: w("path", {
|
|
2500
2504
|
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",
|
|
2501
2505
|
fill: "white"
|
|
2502
2506
|
})
|
|
2503
2507
|
})
|
|
2504
2508
|
})]
|
|
2505
2509
|
});
|
|
2506
|
-
},
|
|
2510
|
+
}, yi = () => {
|
|
2507
2511
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2508
2512
|
return {
|
|
2509
2513
|
afterAd: t,
|
|
@@ -2516,8 +2520,8 @@ const fr = le`
|
|
|
2516
2520
|
src: a,
|
|
2517
2521
|
mode: d
|
|
2518
2522
|
};
|
|
2519
|
-
},
|
|
2520
|
-
${
|
|
2523
|
+
}, kr = le`
|
|
2524
|
+
${P}
|
|
2521
2525
|
position: fixed;
|
|
2522
2526
|
z-index: 2147483647;
|
|
2523
2527
|
background: white;
|
|
@@ -2527,7 +2531,7 @@ const fr = le`
|
|
|
2527
2531
|
flex-direction: column;
|
|
2528
2532
|
|
|
2529
2533
|
iframe {
|
|
2530
|
-
${
|
|
2534
|
+
${P}
|
|
2531
2535
|
flex: 1;
|
|
2532
2536
|
position: relative;
|
|
2533
2537
|
display: block;
|
|
@@ -2535,7 +2539,7 @@ const fr = le`
|
|
|
2535
2539
|
width: 100%;
|
|
2536
2540
|
height: 100%;
|
|
2537
2541
|
}
|
|
2538
|
-
`,
|
|
2542
|
+
`, _i = (t) => {
|
|
2539
2543
|
let {
|
|
2540
2544
|
state: e
|
|
2541
2545
|
} = t;
|
|
@@ -2549,10 +2553,10 @@ const fr = le`
|
|
|
2549
2553
|
countdown: d,
|
|
2550
2554
|
src: l,
|
|
2551
2555
|
mode: c
|
|
2552
|
-
} = e, h =
|
|
2553
|
-
var p, _,
|
|
2554
|
-
a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (
|
|
2555
|
-
}, v =
|
|
2556
|
+
} = e, h = Ii(() => Er(), []), [u, f] = jt(!1), y = (g) => {
|
|
2557
|
+
var p, _, b, M;
|
|
2558
|
+
a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (b = i.value) == null || b.call(i), (M = o.value) == null || M.call(o), f(!1);
|
|
2559
|
+
}, v = xi(() => {
|
|
2556
2560
|
var g;
|
|
2557
2561
|
u || (f(!0), (g = s.value) == null || g.call(s));
|
|
2558
2562
|
}, [u]);
|
|
@@ -2560,28 +2564,28 @@ const fr = le`
|
|
|
2560
2564
|
u && (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2561
2565
|
h.startTimer();
|
|
2562
2566
|
}, 100);
|
|
2563
|
-
}, [u, c.value]), a.value ?
|
|
2564
|
-
className:
|
|
2565
|
-
children: [
|
|
2567
|
+
}, [u, c.value]), a.value ? w("div", {
|
|
2568
|
+
className: kr,
|
|
2569
|
+
children: [w(Sr, {
|
|
2566
2570
|
mode: c.value,
|
|
2567
2571
|
onClose: y,
|
|
2568
2572
|
countdown: d.value,
|
|
2569
2573
|
state: h
|
|
2570
|
-
}), a.value &&
|
|
2574
|
+
}), a.value && w("iframe", {
|
|
2571
2575
|
src: l.value,
|
|
2572
2576
|
onLoad: v,
|
|
2573
2577
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
|
|
2574
|
-
}),
|
|
2578
|
+
}), w(Ar, {})]
|
|
2575
2579
|
}) : null;
|
|
2576
2580
|
};
|
|
2577
|
-
function
|
|
2578
|
-
return (e =
|
|
2581
|
+
function Y(t, e, i) {
|
|
2582
|
+
return (e = Ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2579
2583
|
}
|
|
2580
|
-
function
|
|
2581
|
-
var e =
|
|
2584
|
+
function Ir(t) {
|
|
2585
|
+
var e = xr(t, "string");
|
|
2582
2586
|
return typeof e == "symbol" ? e : e + "";
|
|
2583
2587
|
}
|
|
2584
|
-
function
|
|
2588
|
+
function xr(t, e) {
|
|
2585
2589
|
if (typeof t != "object" || !t)
|
|
2586
2590
|
return t;
|
|
2587
2591
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2593,13 +2597,13 @@ function Er(t, e) {
|
|
|
2593
2597
|
}
|
|
2594
2598
|
return (e === "string" ? String : Number)(t);
|
|
2595
2599
|
}
|
|
2596
|
-
class
|
|
2600
|
+
class Rr {
|
|
2597
2601
|
constructor(e, i) {
|
|
2598
|
-
|
|
2602
|
+
Y(this, "name", "OKSPIN"), Y(this, "initialized", !1), Y(this, "initCompleter", null), Y(this, "context", void 0), Y(this, "initParams", void 0), Y(this, "adsOverlay", null), Y(this, "adsIsShowing", !1), Y(this, "lastUnDisplayedAdBreak", null), Y(this, "state", yi()), this.context = e, this.initParams = i;
|
|
2599
2603
|
}
|
|
2600
2604
|
async init() {
|
|
2601
2605
|
var e;
|
|
2602
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(
|
|
2606
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(w(_i, {
|
|
2603
2607
|
state: this.state
|
|
2604
2608
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2605
2609
|
}
|
|
@@ -2661,7 +2665,7 @@ class Sr {
|
|
|
2661
2665
|
breakStatus: "viewed"
|
|
2662
2666
|
});
|
|
2663
2667
|
};
|
|
2664
|
-
|
|
2668
|
+
O(() => {
|
|
2665
2669
|
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
2670
|
});
|
|
2667
2671
|
break;
|
|
@@ -2691,7 +2695,7 @@ class Sr {
|
|
|
2691
2695
|
var p;
|
|
2692
2696
|
this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, u);
|
|
2693
2697
|
};
|
|
2694
|
-
|
|
2698
|
+
O(() => {
|
|
2695
2699
|
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
|
|
2696
2700
|
});
|
|
2697
2701
|
const g = () => {
|
|
@@ -2705,7 +2709,7 @@ class Sr {
|
|
|
2705
2709
|
});
|
|
2706
2710
|
return;
|
|
2707
2711
|
}
|
|
2708
|
-
this.adsIsShowing = !0,
|
|
2712
|
+
this.adsIsShowing = !0, O(() => {
|
|
2709
2713
|
var _;
|
|
2710
2714
|
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
2715
|
});
|
|
@@ -2726,7 +2730,7 @@ const ie = (t, e) => {
|
|
|
2726
2730
|
Ue(() => (re[t] || (re[t] = /* @__PURE__ */ new Set()), re[t].add(e), () => {
|
|
2727
2731
|
re[t].delete(e);
|
|
2728
2732
|
}), [t, e]);
|
|
2729
|
-
},
|
|
2733
|
+
}, gi = () => {
|
|
2730
2734
|
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2731
2735
|
return {
|
|
2732
2736
|
afterAd: t,
|
|
@@ -2739,8 +2743,8 @@ const ie = (t, e) => {
|
|
|
2739
2743
|
visible: a,
|
|
2740
2744
|
src: d
|
|
2741
2745
|
};
|
|
2742
|
-
},
|
|
2743
|
-
${
|
|
2746
|
+
}, Tr = le`
|
|
2747
|
+
${P}
|
|
2744
2748
|
position: fixed;
|
|
2745
2749
|
z-index: 2147483647;
|
|
2746
2750
|
background: white;
|
|
@@ -2750,7 +2754,7 @@ const ie = (t, e) => {
|
|
|
2750
2754
|
flex-direction: column;
|
|
2751
2755
|
|
|
2752
2756
|
iframe {
|
|
2753
|
-
${
|
|
2757
|
+
${P}
|
|
2754
2758
|
flex: 1;
|
|
2755
2759
|
position: relative;
|
|
2756
2760
|
display: block;
|
|
@@ -2758,7 +2762,7 @@ const ie = (t, e) => {
|
|
|
2758
2762
|
width: 100%;
|
|
2759
2763
|
height: 100%;
|
|
2760
2764
|
}
|
|
2761
|
-
`,
|
|
2765
|
+
`, bi = (t) => {
|
|
2762
2766
|
let {
|
|
2763
2767
|
state: e
|
|
2764
2768
|
} = t;
|
|
@@ -2771,7 +2775,7 @@ const ie = (t, e) => {
|
|
|
2771
2775
|
adLinkClicked: a,
|
|
2772
2776
|
visible: d,
|
|
2773
2777
|
src: l
|
|
2774
|
-
} = e, [c, h] =
|
|
2778
|
+
} = e, [c, h] = jt(!1), u = (y) => {
|
|
2775
2779
|
var v, g, p, _;
|
|
2776
2780
|
h(!1), d.value = !1, y === "dismiss" ? (v = n.value) == null || v.call(n) : y === "viewed" && ((g = r.value) == null || g.call(r)), (p = i.value) == null || p.call(i), (_ = o.value) == null || _.call(o);
|
|
2777
2781
|
}, f = () => {
|
|
@@ -2781,12 +2785,12 @@ const ie = (t, e) => {
|
|
|
2781
2785
|
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
2786
|
var v;
|
|
2783
2787
|
return (v = a.value) == null ? void 0 : v.call(a, y);
|
|
2784
|
-
}), ie("appsrockets_ad_loaded", () => h(!0)), d.value ?
|
|
2785
|
-
className:
|
|
2788
|
+
}), ie("appsrockets_ad_loaded", () => h(!0)), d.value ? w("div", {
|
|
2789
|
+
className: Tr,
|
|
2786
2790
|
style: {
|
|
2787
2791
|
display: c ? "flex" : "none"
|
|
2788
2792
|
},
|
|
2789
|
-
children: d.value &&
|
|
2793
|
+
children: d.value && w("iframe", {
|
|
2790
2794
|
src: l.value,
|
|
2791
2795
|
onLoad: f,
|
|
2792
2796
|
allowFullScreen: !0,
|
|
@@ -2795,14 +2799,14 @@ const ie = (t, e) => {
|
|
|
2795
2799
|
})
|
|
2796
2800
|
}) : null;
|
|
2797
2801
|
};
|
|
2798
|
-
function
|
|
2799
|
-
return (e =
|
|
2802
|
+
function X(t, e, i) {
|
|
2803
|
+
return (e = Or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2800
2804
|
}
|
|
2801
|
-
function
|
|
2802
|
-
var e =
|
|
2805
|
+
function Or(t) {
|
|
2806
|
+
var e = Dr(t, "string");
|
|
2803
2807
|
return typeof e == "symbol" ? e : e + "";
|
|
2804
2808
|
}
|
|
2805
|
-
function
|
|
2809
|
+
function Dr(t, e) {
|
|
2806
2810
|
if (typeof t != "object" || !t)
|
|
2807
2811
|
return t;
|
|
2808
2812
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2814,9 +2818,9 @@ function Rr(t, e) {
|
|
|
2814
2818
|
}
|
|
2815
2819
|
return (e === "string" ? String : Number)(t);
|
|
2816
2820
|
}
|
|
2817
|
-
class
|
|
2821
|
+
class Cr {
|
|
2818
2822
|
constructor(e, i) {
|
|
2819
|
-
|
|
2823
|
+
X(this, "name", "APPSROCKETS"), X(this, "initialized", !1), X(this, "initCompleter", null), X(this, "context", void 0), X(this, "adsOverlay", null), X(this, "adsIsShowing", !1), X(this, "lastUnDisplayedAdBreak", null), X(this, "state", gi()), X(this, "processUrl", (n) => {
|
|
2820
2824
|
var a;
|
|
2821
2825
|
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2822
2826
|
return s.has("joliSource") || s.set("joliSource", r.joliSource), s.get("osType") || s.set("osType", r.osType), s.get("runtimeType") || s.set("runtimeType", r.runtimeType), s.get("mode") || s.set("mode", "AFG"), s.get("deviceId") || s.set("deviceId", r.deviceId), s.get("statusBarHeight") || s.set("statusBarHeight", ((a = this.context.getWindowInfo().statusBarHeight) != null ? a : 0).toString()), o.search = s.toString(), o.toString();
|
|
@@ -2824,7 +2828,7 @@ class Ir {
|
|
|
2824
2828
|
}
|
|
2825
2829
|
async init() {
|
|
2826
2830
|
var e;
|
|
2827
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(
|
|
2831
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(w(bi, {
|
|
2828
2832
|
state: this.state
|
|
2829
2833
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2830
2834
|
}
|
|
@@ -2898,7 +2902,7 @@ class Ir {
|
|
|
2898
2902
|
breakStatus: "noAdPreloaded"
|
|
2899
2903
|
});
|
|
2900
2904
|
};
|
|
2901
|
-
|
|
2905
|
+
O(() => {
|
|
2902
2906
|
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;
|
|
2903
2907
|
});
|
|
2904
2908
|
break;
|
|
@@ -2911,32 +2915,32 @@ class Ir {
|
|
|
2911
2915
|
breakStatus: "ignored"
|
|
2912
2916
|
}), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
|
|
2913
2917
|
const u = () => {
|
|
2914
|
-
var
|
|
2915
|
-
this.adsIsShowing = !1, (
|
|
2918
|
+
var b;
|
|
2919
|
+
this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
|
|
2916
2920
|
}, f = {
|
|
2917
2921
|
breakType: e.type,
|
|
2918
2922
|
breakName: e.name,
|
|
2919
2923
|
breakFormat: "reward",
|
|
2920
2924
|
breakStatus: "ignored"
|
|
2921
2925
|
}, y = () => {
|
|
2922
|
-
var
|
|
2923
|
-
this.adsIsShowing = !1, f.breakStatus = "dismissed", (
|
|
2926
|
+
var b;
|
|
2927
|
+
this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
|
|
2924
2928
|
}, v = () => {
|
|
2925
|
-
var
|
|
2926
|
-
this.adsIsShowing = !1, f.breakStatus = "viewed", (
|
|
2929
|
+
var b;
|
|
2930
|
+
this.adsIsShowing = !1, f.breakStatus = "viewed", (b = e.adViewed) == null || b.call(e);
|
|
2927
2931
|
}, g = () => {
|
|
2928
|
-
var
|
|
2929
|
-
this.adsIsShowing = !1, (
|
|
2932
|
+
var b;
|
|
2933
|
+
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
|
|
2930
2934
|
}, p = () => {
|
|
2931
2935
|
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2932
2936
|
};
|
|
2933
|
-
|
|
2937
|
+
O(() => {
|
|
2934
2938
|
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;
|
|
2935
2939
|
});
|
|
2936
2940
|
const _ = () => {
|
|
2937
|
-
var
|
|
2941
|
+
var b;
|
|
2938
2942
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2939
|
-
(
|
|
2943
|
+
(b = e.adBreakDone) == null || b.call(e, {
|
|
2940
2944
|
breakType: e.type,
|
|
2941
2945
|
breakName: e.name,
|
|
2942
2946
|
breakFormat: "reward",
|
|
@@ -2944,7 +2948,7 @@ class Ir {
|
|
|
2944
2948
|
});
|
|
2945
2949
|
return;
|
|
2946
2950
|
}
|
|
2947
|
-
this.adsIsShowing = !0,
|
|
2951
|
+
this.adsIsShowing = !0, O(() => {
|
|
2948
2952
|
this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
|
|
2949
2953
|
});
|
|
2950
2954
|
};
|
|
@@ -2954,14 +2958,14 @@ class Ir {
|
|
|
2954
2958
|
}
|
|
2955
2959
|
}
|
|
2956
2960
|
}
|
|
2957
|
-
function
|
|
2958
|
-
return (e =
|
|
2961
|
+
function G(t, e, i) {
|
|
2962
|
+
return (e = Lr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2959
2963
|
}
|
|
2960
|
-
function
|
|
2961
|
-
var e =
|
|
2964
|
+
function Lr(t) {
|
|
2965
|
+
var e = Nr(t, "string");
|
|
2962
2966
|
return typeof e == "symbol" ? e : e + "";
|
|
2963
2967
|
}
|
|
2964
|
-
function
|
|
2968
|
+
function Nr(t, e) {
|
|
2965
2969
|
if (typeof t != "object" || !t)
|
|
2966
2970
|
return t;
|
|
2967
2971
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2973,10 +2977,10 @@ function Tr(t, e) {
|
|
|
2973
2977
|
}
|
|
2974
2978
|
return (e === "string" ? String : Number)(t);
|
|
2975
2979
|
}
|
|
2976
|
-
class
|
|
2980
|
+
class vo {
|
|
2977
2981
|
constructor(e) {
|
|
2978
|
-
if (
|
|
2979
|
-
this.context = e, this.channelPolicy = new
|
|
2982
|
+
if (G(this, "context", void 0), G(this, "contextInfo", void 0), G(this, "providers", {}), G(this, "channelPolicy", void 0), G(this, "adsActionDetection", void 0), G(this, "adsTrackSerializer", void 0), G(this, "initialized", !1), G(this, "adsIsShowing", !1), G(this, "lastAdBreak", void 0), G(this, "initializedTimeStamp", Date.now()), e)
|
|
2983
|
+
this.context = e, this.channelPolicy = new yn(this.context), this.adsActionDetection = new Li(this.context), this.adsTrackSerializer = new Wt(this.context), this.contextInfo = this.context.getContextInfo();
|
|
2980
2984
|
else
|
|
2981
2985
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
2982
2986
|
}
|
|
@@ -3026,18 +3030,19 @@ class co {
|
|
|
3026
3030
|
if ((i == null ? void 0 : i.length) > 0)
|
|
3027
3031
|
for (const n of i)
|
|
3028
3032
|
switch (n.provider) {
|
|
3029
|
-
case "ADSENSE":
|
|
3030
|
-
|
|
3031
|
-
|
|
3033
|
+
case "ADSENSE":
|
|
3034
|
+
case "ADSENSE_ADMOB": {
|
|
3035
|
+
const r = new bn(this.context, n.params);
|
|
3036
|
+
await r.init(), this.providers[n.provider] = r;
|
|
3032
3037
|
break;
|
|
3033
3038
|
}
|
|
3034
3039
|
case "OKSPIN": {
|
|
3035
|
-
const r = new
|
|
3040
|
+
const r = new Rr(this.context, n.params);
|
|
3036
3041
|
await r.init(), this.providers.OKSPIN = r;
|
|
3037
3042
|
break;
|
|
3038
3043
|
}
|
|
3039
3044
|
case "APPSROCKETS": {
|
|
3040
|
-
const r = new
|
|
3045
|
+
const r = new Cr(this.context, n.params);
|
|
3041
3046
|
await r.init(), this.providers.APPSROCKETS = r;
|
|
3042
3047
|
break;
|
|
3043
3048
|
}
|
|
@@ -3048,8 +3053,9 @@ class co {
|
|
|
3048
3053
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
3049
3054
|
}
|
|
3050
3055
|
async adBreak(e) {
|
|
3051
|
-
var r, o, s, a, d, l, c, h, u;
|
|
3052
|
-
|
|
3056
|
+
var r, o, s, a, d, l, c, h, u, f;
|
|
3057
|
+
const i = Date.now();
|
|
3058
|
+
if (i - this.initializedTimeStamp < 3e3) {
|
|
3053
3059
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
3054
3060
|
breakType: e.type,
|
|
3055
3061
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
@@ -3058,8 +3064,26 @@ class co {
|
|
|
3058
3064
|
});
|
|
3059
3065
|
return;
|
|
3060
3066
|
}
|
|
3067
|
+
if (this.lastAdBreak && i - this.lastAdBreak < 500) {
|
|
3068
|
+
console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"), (o = e.adBreakDone) == null || o.call(e, {
|
|
3069
|
+
breakType: e.type,
|
|
3070
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3071
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3072
|
+
breakStatus: "frequencyCapped"
|
|
3073
|
+
});
|
|
3074
|
+
return;
|
|
3075
|
+
}
|
|
3076
|
+
if (this.lastAdBreak = i, this.adsIsShowing) {
|
|
3077
|
+
console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"), (s = e.adBreakDone) == null || s.call(e, {
|
|
3078
|
+
breakType: e.type,
|
|
3079
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3080
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3081
|
+
breakStatus: "frequencyCapped"
|
|
3082
|
+
});
|
|
3083
|
+
return;
|
|
3084
|
+
}
|
|
3061
3085
|
if (this.initialized || await this.init(), e.type !== "reward" && !this.channelPolicy.shouldBypassCallingInterstitial()) {
|
|
3062
|
-
(
|
|
3086
|
+
(a = e.adBreakDone) == null || a.call(e, {
|
|
3063
3087
|
breakType: e.type,
|
|
3064
3088
|
breakName: "skipInterstitials",
|
|
3065
3089
|
breakFormat: "interstitial",
|
|
@@ -3068,7 +3092,7 @@ class co {
|
|
|
3068
3092
|
return;
|
|
3069
3093
|
}
|
|
3070
3094
|
if (!this.context.checkNetwork()) {
|
|
3071
|
-
(
|
|
3095
|
+
(d = e.adBreakDone) == null || d.call(e, {
|
|
3072
3096
|
breakType: e.type,
|
|
3073
3097
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3074
3098
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3078,8 +3102,8 @@ class co {
|
|
|
3078
3102
|
}
|
|
3079
3103
|
try {
|
|
3080
3104
|
const {
|
|
3081
|
-
data:
|
|
3082
|
-
code:
|
|
3105
|
+
data: y,
|
|
3106
|
+
code: v
|
|
3083
3107
|
} = await this.context.httpClient.post("/api/ads/info", {
|
|
3084
3108
|
data: {
|
|
3085
3109
|
contextData: this.getRequestContextData("AdsAFGSDKAdBreak"),
|
|
@@ -3089,8 +3113,8 @@ class co {
|
|
|
3089
3113
|
name: e.type === "preroll" ? "" : e.name
|
|
3090
3114
|
}
|
|
3091
3115
|
});
|
|
3092
|
-
if (
|
|
3093
|
-
(
|
|
3116
|
+
if (v !== "SUCCESS") {
|
|
3117
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
3094
3118
|
breakType: e.type,
|
|
3095
3119
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3096
3120
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3098,9 +3122,9 @@ class co {
|
|
|
3098
3122
|
});
|
|
3099
3123
|
return;
|
|
3100
3124
|
} else {
|
|
3101
|
-
const
|
|
3102
|
-
if (
|
|
3103
|
-
(
|
|
3125
|
+
const g = y == null ? void 0 : y.sort((M, L) => M.seq - L.seq);
|
|
3126
|
+
if (g.length === 0) {
|
|
3127
|
+
(c = e.adBreakDone) == null || c.call(e, {
|
|
3104
3128
|
breakType: e.type,
|
|
3105
3129
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3106
3130
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3108,33 +3132,36 @@ class co {
|
|
|
3108
3132
|
});
|
|
3109
3133
|
return;
|
|
3110
3134
|
}
|
|
3111
|
-
let
|
|
3112
|
-
const
|
|
3113
|
-
for (
|
|
3114
|
-
const
|
|
3115
|
-
if (
|
|
3116
|
-
const [
|
|
3117
|
-
|
|
3135
|
+
let p = !0, _ = null;
|
|
3136
|
+
const b = new Oi(this.context);
|
|
3137
|
+
for (this.adsActionDetection.adBreakIsShowing = !0; g.length > 0; ) {
|
|
3138
|
+
const M = g.shift(), L = this.providers[M.provider];
|
|
3139
|
+
if (L) {
|
|
3140
|
+
const [V, S] = await b.callAdBreakAndContinue(L, e, M, (ht) => {
|
|
3141
|
+
var ft;
|
|
3142
|
+
this.adsIsShowing = ht, (ft = this.context.eventEmitter) == null || ft.emit("isAdShowing", ht);
|
|
3143
|
+
});
|
|
3144
|
+
p = V, _ = S;
|
|
3118
3145
|
} else
|
|
3119
|
-
|
|
3146
|
+
p = !0, _ = {
|
|
3120
3147
|
breakType: e.type,
|
|
3121
3148
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3122
3149
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3123
3150
|
breakStatus: "notReady"
|
|
3124
3151
|
};
|
|
3125
|
-
if (!
|
|
3152
|
+
if (!p)
|
|
3126
3153
|
break;
|
|
3127
3154
|
}
|
|
3128
|
-
|
|
3155
|
+
p && _ && ((h = e.adBreakDone) == null || h.call(e, _));
|
|
3129
3156
|
}
|
|
3130
|
-
} catch (
|
|
3131
|
-
(
|
|
3157
|
+
} catch (y) {
|
|
3158
|
+
(u = e.adBreakDone) == null || u.call(e, {
|
|
3132
3159
|
breakType: e.type,
|
|
3133
3160
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3134
3161
|
breakStatus: "noAdPreloaded"
|
|
3135
3162
|
});
|
|
3136
3163
|
} finally {
|
|
3137
|
-
(
|
|
3164
|
+
this.adsIsShowing = !1, (f = this.context.eventEmitter) == null || f.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
3138
3165
|
}
|
|
3139
3166
|
}
|
|
3140
3167
|
adUnit(e) {
|
|
@@ -3142,13 +3169,13 @@ class co {
|
|
|
3142
3169
|
}
|
|
3143
3170
|
}
|
|
3144
3171
|
function Je(t, e, i) {
|
|
3145
|
-
return (e =
|
|
3172
|
+
return (e = Pr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3146
3173
|
}
|
|
3147
|
-
function
|
|
3148
|
-
var e =
|
|
3174
|
+
function Pr(t) {
|
|
3175
|
+
var e = Mr(t, "string");
|
|
3149
3176
|
return typeof e == "symbol" ? e : e + "";
|
|
3150
3177
|
}
|
|
3151
|
-
function
|
|
3178
|
+
function Mr(t, e) {
|
|
3152
3179
|
if (typeof t != "object" || !t)
|
|
3153
3180
|
return t;
|
|
3154
3181
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3160,7 +3187,7 @@ function Lr(t, e) {
|
|
|
3160
3187
|
}
|
|
3161
3188
|
return (e === "string" ? String : Number)(t);
|
|
3162
3189
|
}
|
|
3163
|
-
class
|
|
3190
|
+
class $r {
|
|
3164
3191
|
constructor(e) {
|
|
3165
3192
|
Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), this.context = e;
|
|
3166
3193
|
}
|
|
@@ -3206,13 +3233,13 @@ class Cr {
|
|
|
3206
3233
|
}
|
|
3207
3234
|
}
|
|
3208
3235
|
function Ye(t, e, i) {
|
|
3209
|
-
return (e =
|
|
3236
|
+
return (e = Ur(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3210
3237
|
}
|
|
3211
|
-
function
|
|
3212
|
-
var e =
|
|
3238
|
+
function Ur(t) {
|
|
3239
|
+
var e = Br(t, "string");
|
|
3213
3240
|
return typeof e == "symbol" ? e : e + "";
|
|
3214
3241
|
}
|
|
3215
|
-
function
|
|
3242
|
+
function Br(t, e) {
|
|
3216
3243
|
if (typeof t != "object" || !t)
|
|
3217
3244
|
return t;
|
|
3218
3245
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3224,27 +3251,27 @@ function Pr(t, e) {
|
|
|
3224
3251
|
}
|
|
3225
3252
|
return (e === "string" ? String : Number)(t);
|
|
3226
3253
|
}
|
|
3227
|
-
class
|
|
3254
|
+
class $ extends Error {
|
|
3228
3255
|
constructor(e, i) {
|
|
3229
3256
|
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;
|
|
3230
3257
|
}
|
|
3231
3258
|
static from(e, i) {
|
|
3232
3259
|
switch (i) {
|
|
3233
3260
|
case "GOOGLE_IMA_ERROR":
|
|
3234
|
-
return new
|
|
3261
|
+
return new $(e, i);
|
|
3235
3262
|
case "JOLIBOX_IMA_ERROR":
|
|
3236
|
-
return new
|
|
3263
|
+
return new $(e, i);
|
|
3237
3264
|
}
|
|
3238
3265
|
}
|
|
3239
3266
|
}
|
|
3240
|
-
function
|
|
3241
|
-
return (e =
|
|
3267
|
+
function I(t, e, i) {
|
|
3268
|
+
return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3242
3269
|
}
|
|
3243
|
-
function
|
|
3244
|
-
var e =
|
|
3270
|
+
function jr(t) {
|
|
3271
|
+
var e = Fr(t, "string");
|
|
3245
3272
|
return typeof e == "symbol" ? e : e + "";
|
|
3246
3273
|
}
|
|
3247
|
-
function
|
|
3274
|
+
function Fr(t, e) {
|
|
3248
3275
|
if (typeof t != "object" || !t)
|
|
3249
3276
|
return t;
|
|
3250
3277
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3256,16 +3283,16 @@ function $r(t, e) {
|
|
|
3256
3283
|
}
|
|
3257
3284
|
return (e === "string" ? String : Number)(t);
|
|
3258
3285
|
}
|
|
3259
|
-
class
|
|
3286
|
+
class Vr {
|
|
3260
3287
|
constructor(e, i, n) {
|
|
3261
|
-
|
|
3288
|
+
I(this, "adsLoader", void 0), I(this, "adDisplayContainer", void 0), I(this, "isAdPlaying", !1), I(this, "isContentFinished", !1), I(this, "videoContent", void 0), I(this, "adContainer", void 0), I(this, "adsManager", void 0), I(this, "intervalTimer", void 0), I(this, "completed", !1), I(this, "adTagUrl", void 0), I(this, "notifyRequestAd", void 0), I(this, "notifyLoaded", void 0), I(this, "notifyPlayingAd", void 0), I(this, "notifyCompleted", void 0), I(this, "notifyError", void 0), I(this, "destroy", () => {
|
|
3262
3289
|
var r, o, s, a, d, l, c, h, u, f, y;
|
|
3263
3290
|
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
|
-
}),
|
|
3291
|
+
}), I(this, "requestAds", async (r, o) => {
|
|
3265
3292
|
var c;
|
|
3266
3293
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
|
|
3267
3294
|
var u;
|
|
3268
|
-
return (u = r.onAdError) == null ? void 0 : u.call(r,
|
|
3295
|
+
return (u = r.onAdError) == null ? void 0 : u.call(r, $.from(h, "GOOGLE_IMA_ERROR"));
|
|
3269
3296
|
}, 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);
|
|
3270
3297
|
const s = () => {
|
|
3271
3298
|
var h;
|
|
@@ -3280,9 +3307,9 @@ class Ur {
|
|
|
3280
3307
|
});
|
|
3281
3308
|
const l = `${this.adTagUrl}${d}`;
|
|
3282
3309
|
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);
|
|
3283
|
-
}),
|
|
3310
|
+
}), I(this, "createAdDisplayContainer", () => {
|
|
3284
3311
|
this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
|
|
3285
|
-
}),
|
|
3312
|
+
}), I(this, "playAds", () => {
|
|
3286
3313
|
var r, o;
|
|
3287
3314
|
this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
|
|
3288
3315
|
try {
|
|
@@ -3290,10 +3317,10 @@ class Ur {
|
|
|
3290
3317
|
} catch (s) {
|
|
3291
3318
|
console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
|
|
3292
3319
|
}
|
|
3293
|
-
}),
|
|
3320
|
+
}), I(this, "onAdsManagerLoaded", (r) => {
|
|
3294
3321
|
const o = new window.google.ima.AdsRenderingSettings();
|
|
3295
3322
|
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();
|
|
3296
|
-
}),
|
|
3323
|
+
}), I(this, "onAdEvent", (r) => {
|
|
3297
3324
|
var s, a, d, l;
|
|
3298
3325
|
const o = r.getAd();
|
|
3299
3326
|
switch (r.type) {
|
|
@@ -3311,19 +3338,19 @@ class Ur {
|
|
|
3311
3338
|
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
|
|
3312
3339
|
break;
|
|
3313
3340
|
}
|
|
3314
|
-
}),
|
|
3341
|
+
}), I(this, "onAdError", (r) => {
|
|
3315
3342
|
var o, s;
|
|
3316
3343
|
(o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
|
|
3317
|
-
}),
|
|
3344
|
+
}), I(this, "onContentPauseRequested", () => {
|
|
3318
3345
|
this.isAdPlaying = !0, this.videoContent.pause();
|
|
3319
|
-
}),
|
|
3346
|
+
}), I(this, "onContentResumeRequested", () => {
|
|
3320
3347
|
this.isAdPlaying = !1;
|
|
3321
3348
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3322
3349
|
}
|
|
3323
3350
|
}
|
|
3324
|
-
var
|
|
3325
|
-
const
|
|
3326
|
-
const t = E(!1), e = E(!1), i = E(null), n =
|
|
3351
|
+
var Le = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(Le || {});
|
|
3352
|
+
const zr = () => {
|
|
3353
|
+
const t = E(!1), e = E(!1), i = E(null), n = yt(), r = yt();
|
|
3327
3354
|
return {
|
|
3328
3355
|
visible: t,
|
|
3329
3356
|
canRetry: e,
|
|
@@ -3331,8 +3358,8 @@ const Br = () => {
|
|
|
3331
3358
|
videoRef: n,
|
|
3332
3359
|
adContainerRef: r
|
|
3333
3360
|
};
|
|
3334
|
-
},
|
|
3335
|
-
${
|
|
3361
|
+
}, Kr = le`
|
|
3362
|
+
${P}
|
|
3336
3363
|
position: fixed;
|
|
3337
3364
|
left: 0;
|
|
3338
3365
|
top: 0;
|
|
@@ -3347,7 +3374,7 @@ const Br = () => {
|
|
|
3347
3374
|
}
|
|
3348
3375
|
|
|
3349
3376
|
.ads-wrapper {
|
|
3350
|
-
${
|
|
3377
|
+
${P}
|
|
3351
3378
|
position: relative;
|
|
3352
3379
|
width: 100%;
|
|
3353
3380
|
height: 100%;
|
|
@@ -3370,7 +3397,7 @@ const Br = () => {
|
|
|
3370
3397
|
}
|
|
3371
3398
|
|
|
3372
3399
|
.retry-button {
|
|
3373
|
-
${
|
|
3400
|
+
${P}
|
|
3374
3401
|
position: absolute;
|
|
3375
3402
|
width: 100%;
|
|
3376
3403
|
height: 100%;
|
|
@@ -3380,7 +3407,7 @@ const Br = () => {
|
|
|
3380
3407
|
cursor: pointer;
|
|
3381
3408
|
}
|
|
3382
3409
|
}
|
|
3383
|
-
`,
|
|
3410
|
+
`, Gr = (t) => {
|
|
3384
3411
|
let {
|
|
3385
3412
|
onReady: e,
|
|
3386
3413
|
state: i
|
|
@@ -3392,40 +3419,40 @@ const Br = () => {
|
|
|
3392
3419
|
videoRef: s,
|
|
3393
3420
|
adContainerRef: a
|
|
3394
3421
|
} = i, d = () => {
|
|
3395
|
-
r.value && (r.value(),
|
|
3422
|
+
r.value && (r.value(), O(() => {
|
|
3396
3423
|
r.value = null, o.value = !1;
|
|
3397
3424
|
}));
|
|
3398
3425
|
};
|
|
3399
3426
|
return Ue(() => {
|
|
3400
3427
|
e();
|
|
3401
|
-
}, [e]),
|
|
3402
|
-
className:
|
|
3428
|
+
}, [e]), w("div", {
|
|
3429
|
+
className: Kr,
|
|
3403
3430
|
"data-visible": n.value,
|
|
3404
|
-
children:
|
|
3431
|
+
children: w("div", {
|
|
3405
3432
|
className: "ads-wrapper",
|
|
3406
|
-
children: [
|
|
3433
|
+
children: [w("video", {
|
|
3407
3434
|
ref: s,
|
|
3408
3435
|
width: "100%",
|
|
3409
3436
|
height: "100%"
|
|
3410
|
-
}),
|
|
3437
|
+
}), w("div", {
|
|
3411
3438
|
id: "ad-container",
|
|
3412
3439
|
ref: a
|
|
3413
|
-
}), o.value ?
|
|
3440
|
+
}), o.value ? w("div", {
|
|
3414
3441
|
className: "retry-button",
|
|
3415
3442
|
onClick: d,
|
|
3416
|
-
children:
|
|
3443
|
+
children: w("svg", {
|
|
3417
3444
|
width: "64",
|
|
3418
3445
|
height: "64",
|
|
3419
3446
|
viewBox: "0 0 64 64",
|
|
3420
3447
|
fill: "none",
|
|
3421
3448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3422
|
-
children: [
|
|
3449
|
+
children: [w("circle", {
|
|
3423
3450
|
cx: "32",
|
|
3424
3451
|
cy: "32",
|
|
3425
3452
|
r: "32",
|
|
3426
3453
|
fill: "#141416",
|
|
3427
3454
|
fillOpacity: "0.3"
|
|
3428
|
-
}),
|
|
3455
|
+
}), w("path", {
|
|
3429
3456
|
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",
|
|
3430
3457
|
fill: "white"
|
|
3431
3458
|
})]
|
|
@@ -3434,14 +3461,14 @@ const Br = () => {
|
|
|
3434
3461
|
})
|
|
3435
3462
|
});
|
|
3436
3463
|
};
|
|
3437
|
-
function
|
|
3438
|
-
return (e =
|
|
3464
|
+
function Q(t, e, i) {
|
|
3465
|
+
return (e = qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3439
3466
|
}
|
|
3440
|
-
function
|
|
3441
|
-
var e =
|
|
3467
|
+
function qr(t) {
|
|
3468
|
+
var e = Hr(t, "string");
|
|
3442
3469
|
return typeof e == "symbol" ? e : e + "";
|
|
3443
3470
|
}
|
|
3444
|
-
function
|
|
3471
|
+
function Hr(t, e) {
|
|
3445
3472
|
if (typeof t != "object" || !t)
|
|
3446
3473
|
return t;
|
|
3447
3474
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3453,9 +3480,9 @@ function zr(t, e) {
|
|
|
3453
3480
|
}
|
|
3454
3481
|
return (e === "string" ? String : Number)(t);
|
|
3455
3482
|
}
|
|
3456
|
-
class
|
|
3483
|
+
class Wr {
|
|
3457
3484
|
constructor(e) {
|
|
3458
|
-
|
|
3485
|
+
Q(this, "name", "GOOGLE_IMA"), Q(this, "context", void 0), Q(this, "adsOverlay", null), Q(this, "initialized", !1), Q(this, "ima", null), Q(this, "state", zr()), Q(this, "init", async (i) => {
|
|
3459
3486
|
if (this.initialized)
|
|
3460
3487
|
return;
|
|
3461
3488
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3471,19 +3498,19 @@ class Gr {
|
|
|
3471
3498
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3472
3499
|
}
|
|
3473
3500
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3474
|
-
te(
|
|
3501
|
+
te(w(Gr, {
|
|
3475
3502
|
state: this.state,
|
|
3476
3503
|
onReady: () => {
|
|
3477
|
-
this.ima = new
|
|
3504
|
+
this.ima = new Vr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3478
3505
|
}
|
|
3479
3506
|
}), this.adsOverlay);
|
|
3480
3507
|
}), this.initialized = !0;
|
|
3481
|
-
}),
|
|
3508
|
+
}), Q(this, "destroy", () => {
|
|
3482
3509
|
this.adsOverlay && (te(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
3483
|
-
}),
|
|
3510
|
+
}), Q(this, "requestAd", (i, n) => {
|
|
3484
3511
|
var a;
|
|
3485
3512
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3486
|
-
const d =
|
|
3513
|
+
const d = $.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3487
3514
|
(a = i.onAdError) == null || a.call(i, d);
|
|
3488
3515
|
return;
|
|
3489
3516
|
}
|
|
@@ -3493,9 +3520,9 @@ class Gr {
|
|
|
3493
3520
|
}, o = (d) => {
|
|
3494
3521
|
let l = !1;
|
|
3495
3522
|
switch (d.raw.getErrorCode()) {
|
|
3496
|
-
case
|
|
3497
|
-
case
|
|
3498
|
-
case
|
|
3523
|
+
case Le.AUTOPLAY_DISALLOWED:
|
|
3524
|
+
case Le.VIDEO_PLAY_ERROR:
|
|
3525
|
+
case Le.ADS_REQUEST_NETWORK_ERROR: {
|
|
3499
3526
|
l = !0;
|
|
3500
3527
|
break;
|
|
3501
3528
|
}
|
|
@@ -3510,7 +3537,7 @@ class Gr {
|
|
|
3510
3537
|
const c = () => {
|
|
3511
3538
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3512
3539
|
};
|
|
3513
|
-
|
|
3540
|
+
O(() => {
|
|
3514
3541
|
this.state.canRetry.value = !0, this.state.retry.value = c;
|
|
3515
3542
|
});
|
|
3516
3543
|
}
|
|
@@ -3519,14 +3546,14 @@ class Gr {
|
|
|
3519
3546
|
}), this.context = e;
|
|
3520
3547
|
}
|
|
3521
3548
|
}
|
|
3522
|
-
function
|
|
3523
|
-
return (e =
|
|
3549
|
+
function q(t, e, i) {
|
|
3550
|
+
return (e = Jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3524
3551
|
}
|
|
3525
|
-
function
|
|
3526
|
-
var e =
|
|
3552
|
+
function Jr(t) {
|
|
3553
|
+
var e = Yr(t, "string");
|
|
3527
3554
|
return typeof e == "symbol" ? e : e + "";
|
|
3528
3555
|
}
|
|
3529
|
-
function
|
|
3556
|
+
function Yr(t, e) {
|
|
3530
3557
|
if (typeof t != "object" || !t)
|
|
3531
3558
|
return t;
|
|
3532
3559
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3538,24 +3565,24 @@ function qr(t, e) {
|
|
|
3538
3565
|
}
|
|
3539
3566
|
return (e === "string" ? String : Number)(t);
|
|
3540
3567
|
}
|
|
3541
|
-
class
|
|
3568
|
+
class Xr {
|
|
3542
3569
|
constructor(e) {
|
|
3543
|
-
|
|
3570
|
+
q(this, "name", "OKSPIN"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "state", yi()), q(this, "init", async (i) => {
|
|
3544
3571
|
var n;
|
|
3545
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(
|
|
3572
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(w(_i, {
|
|
3546
3573
|
state: this.state
|
|
3547
3574
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3548
|
-
}),
|
|
3575
|
+
}), q(this, "destroy", () => {
|
|
3549
3576
|
var i;
|
|
3550
3577
|
this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
3551
|
-
}),
|
|
3578
|
+
}), q(this, "requestAd", (i, n) => {
|
|
3552
3579
|
var s, a, d, l;
|
|
3553
3580
|
if (!this.adsOverlay || !this.initialized) {
|
|
3554
|
-
(s = i.onAdError) == null || s.call(i,
|
|
3581
|
+
(s = i.onAdError) == null || s.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3555
3582
|
return;
|
|
3556
3583
|
}
|
|
3557
3584
|
if (this.adsIsShowing) {
|
|
3558
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3585
|
+
(a = i.onAdError) == null || a.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3559
3586
|
return;
|
|
3560
3587
|
}
|
|
3561
3588
|
(d = i.onAdRequested) == null || d.call(i);
|
|
@@ -3566,7 +3593,7 @@ class Hr {
|
|
|
3566
3593
|
var c;
|
|
3567
3594
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3568
3595
|
};
|
|
3569
|
-
this.adsIsShowing = !0,
|
|
3596
|
+
this.adsIsShowing = !0, O(() => {
|
|
3570
3597
|
var c;
|
|
3571
3598
|
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;
|
|
3572
3599
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
@@ -3574,13 +3601,13 @@ class Hr {
|
|
|
3574
3601
|
}
|
|
3575
3602
|
}
|
|
3576
3603
|
function z(t, e, i) {
|
|
3577
|
-
return (e =
|
|
3604
|
+
return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3578
3605
|
}
|
|
3579
|
-
function
|
|
3580
|
-
var e =
|
|
3606
|
+
function Qr(t) {
|
|
3607
|
+
var e = Zr(t, "string");
|
|
3581
3608
|
return typeof e == "symbol" ? e : e + "";
|
|
3582
3609
|
}
|
|
3583
|
-
function
|
|
3610
|
+
function Zr(t, e) {
|
|
3584
3611
|
if (typeof t != "object" || !t)
|
|
3585
3612
|
return t;
|
|
3586
3613
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3592,15 +3619,15 @@ function Jr(t, e) {
|
|
|
3592
3619
|
}
|
|
3593
3620
|
return (e === "string" ? String : Number)(t);
|
|
3594
3621
|
}
|
|
3595
|
-
class
|
|
3622
|
+
class eo {
|
|
3596
3623
|
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",
|
|
3624
|
+
z(this, "name", "APPSROCKETS"), z(this, "initialized", !1), z(this, "initCompleter", null), z(this, "context", void 0), z(this, "adsOverlay", null), z(this, "adsIsShowing", !1), z(this, "state", gi()), z(this, "processUrl", (i) => {
|
|
3598
3625
|
var s;
|
|
3599
3626
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
3600
3627
|
return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), r.search = o.toString(), r.toString();
|
|
3601
3628
|
}), z(this, "init", async (i) => {
|
|
3602
3629
|
var n;
|
|
3603
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(
|
|
3630
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(w(bi, {
|
|
3604
3631
|
state: this.state
|
|
3605
3632
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3606
3633
|
}), z(this, "destroy", () => {
|
|
@@ -3609,11 +3636,11 @@ class Yr {
|
|
|
3609
3636
|
}), z(this, "requestAd", (i, n) => {
|
|
3610
3637
|
var d, l, c, h;
|
|
3611
3638
|
if (!this.adsOverlay || !this.initialized) {
|
|
3612
|
-
(d = i.onAdError) == null || d.call(i,
|
|
3639
|
+
(d = i.onAdError) == null || d.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3613
3640
|
return;
|
|
3614
3641
|
}
|
|
3615
3642
|
if (this.adsIsShowing) {
|
|
3616
|
-
(l = i.onAdError) == null || l.call(i,
|
|
3643
|
+
(l = i.onAdError) == null || l.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3617
3644
|
return;
|
|
3618
3645
|
}
|
|
3619
3646
|
(c = i.onAdRequested) == null || c.call(i);
|
|
@@ -3628,22 +3655,22 @@ class Yr {
|
|
|
3628
3655
|
(y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
|
|
3629
3656
|
}, a = () => {
|
|
3630
3657
|
var u;
|
|
3631
|
-
(u = i.onAdError) == null || u.call(i,
|
|
3658
|
+
(u = i.onAdError) == null || u.call(i, $.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
3632
3659
|
};
|
|
3633
|
-
this.adsIsShowing = !0,
|
|
3660
|
+
this.adsIsShowing = !0, O(() => {
|
|
3634
3661
|
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
3662
|
}), (h = i.onAdPlaying) == null || h.call(i, void 0);
|
|
3636
3663
|
}), this.context = e;
|
|
3637
3664
|
}
|
|
3638
3665
|
}
|
|
3639
3666
|
function pe(t, e, i) {
|
|
3640
|
-
return (e =
|
|
3667
|
+
return (e = to(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3641
3668
|
}
|
|
3642
|
-
function
|
|
3643
|
-
var e =
|
|
3669
|
+
function to(t) {
|
|
3670
|
+
var e = io(t, "string");
|
|
3644
3671
|
return typeof e == "symbol" ? e : e + "";
|
|
3645
3672
|
}
|
|
3646
|
-
function
|
|
3673
|
+
function io(t, e) {
|
|
3647
3674
|
if (typeof t != "object" || !t)
|
|
3648
3675
|
return t;
|
|
3649
3676
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3655,10 +3682,10 @@ function Qr(t, e) {
|
|
|
3655
3682
|
}
|
|
3656
3683
|
return (e === "string" ? String : Number)(t);
|
|
3657
3684
|
}
|
|
3658
|
-
class
|
|
3685
|
+
class po {
|
|
3659
3686
|
constructor(e) {
|
|
3660
3687
|
if (pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "providers", {}), pe(this, "adsTrackSerializer", void 0), pe(this, "initialized", !1), e)
|
|
3661
|
-
this.context = e, this.adsTrackSerializer = new
|
|
3688
|
+
this.context = e, this.adsTrackSerializer = new Wt(e), this.contextInfo = this.context.getContextInfo();
|
|
3662
3689
|
else
|
|
3663
3690
|
throw new Error("JoliboxAdsForVideo requires a configuration object");
|
|
3664
3691
|
}
|
|
@@ -3708,17 +3735,17 @@ class uo {
|
|
|
3708
3735
|
for (const i of e)
|
|
3709
3736
|
switch (i.provider) {
|
|
3710
3737
|
case "GOOGLE_IMA": {
|
|
3711
|
-
const n = new
|
|
3738
|
+
const n = new Wr(this.context);
|
|
3712
3739
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
3713
3740
|
break;
|
|
3714
3741
|
}
|
|
3715
3742
|
case "OKSPIN": {
|
|
3716
|
-
const n = new
|
|
3743
|
+
const n = new Xr(this.context);
|
|
3717
3744
|
await n.init(i), this.providers.OKSPIN = n;
|
|
3718
3745
|
break;
|
|
3719
3746
|
}
|
|
3720
3747
|
case "APPSROCKETS": {
|
|
3721
|
-
const n = new
|
|
3748
|
+
const n = new eo(this.context);
|
|
3722
3749
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
3723
3750
|
break;
|
|
3724
3751
|
}
|
|
@@ -3737,7 +3764,7 @@ class uo {
|
|
|
3737
3764
|
async requestAd(e) {
|
|
3738
3765
|
var i, n, r, o, s, a, d;
|
|
3739
3766
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
3740
|
-
const l =
|
|
3767
|
+
const l = $.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
3741
3768
|
(n = e.onAdError) == null || n.call(e, l);
|
|
3742
3769
|
return;
|
|
3743
3770
|
}
|
|
@@ -3754,32 +3781,32 @@ class uo {
|
|
|
3754
3781
|
}
|
|
3755
3782
|
});
|
|
3756
3783
|
if (c !== "SUCCESS") {
|
|
3757
|
-
const h =
|
|
3784
|
+
const h = $.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
3758
3785
|
(r = e.onAdError) == null || r.call(e, h);
|
|
3759
3786
|
return;
|
|
3760
3787
|
} else {
|
|
3761
3788
|
const h = l == null ? void 0 : l.sort((v, g) => v.seq - g.seq);
|
|
3762
3789
|
if (h.length === 0) {
|
|
3763
|
-
const v =
|
|
3790
|
+
const v = $.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
3764
3791
|
(o = e.onAdError) == null || o.call(e, v);
|
|
3765
3792
|
return;
|
|
3766
3793
|
}
|
|
3767
3794
|
let u = !0, f = null;
|
|
3768
|
-
const y = new
|
|
3795
|
+
const y = new $r(this.context);
|
|
3769
3796
|
for (; h.length > 0; ) {
|
|
3770
3797
|
const v = h.shift(), g = this.providers[v.provider];
|
|
3771
3798
|
if (g) {
|
|
3772
3799
|
const [p, _] = await y.callAdRequestAndContinue(g, e, v);
|
|
3773
3800
|
u = p, f = _;
|
|
3774
3801
|
} else
|
|
3775
|
-
u = !0, f =
|
|
3802
|
+
u = !0, f = $.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
3776
3803
|
if (!u)
|
|
3777
3804
|
break;
|
|
3778
3805
|
}
|
|
3779
3806
|
u && f && ((s = e.onAdError) == null || s.call(e, f));
|
|
3780
3807
|
}
|
|
3781
3808
|
} catch (l) {
|
|
3782
|
-
const c =
|
|
3809
|
+
const c = $.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
3783
3810
|
(a = e.onAdError) == null || a.call(e, c);
|
|
3784
3811
|
} finally {
|
|
3785
3812
|
(d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
|
|
@@ -3787,13 +3814,13 @@ class uo {
|
|
|
3787
3814
|
}
|
|
3788
3815
|
}
|
|
3789
3816
|
function ne(t, e, i) {
|
|
3790
|
-
return (e =
|
|
3817
|
+
return (e = no(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3791
3818
|
}
|
|
3792
|
-
function
|
|
3793
|
-
var e =
|
|
3819
|
+
function no(t) {
|
|
3820
|
+
var e = ro(t, "string");
|
|
3794
3821
|
return typeof e == "symbol" ? e : e + "";
|
|
3795
3822
|
}
|
|
3796
|
-
function
|
|
3823
|
+
function ro(t, e) {
|
|
3797
3824
|
if (typeof t != "object" || !t)
|
|
3798
3825
|
return t;
|
|
3799
3826
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3805,18 +3832,18 @@ function eo(t, e) {
|
|
|
3805
3832
|
}
|
|
3806
3833
|
return (e === "string" ? String : Number)(t);
|
|
3807
3834
|
}
|
|
3808
|
-
class
|
|
3835
|
+
class yo extends Error {
|
|
3809
3836
|
constructor(e) {
|
|
3810
3837
|
super(e), ne(this, "name", void 0), ne(this, "message", void 0), ne(this, "errMsg", void 0), ne(this, "code", void 0), ne(this, "data", void 0), ne(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
3811
3838
|
}
|
|
3812
3839
|
}
|
|
3813
3840
|
export {
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3841
|
+
$ as AFVWrappedError,
|
|
3842
|
+
bn as GoogleAdSenseProvider,
|
|
3843
|
+
Wr as GoogleIMAProvider,
|
|
3844
|
+
vo as JoliboxAdsForGame,
|
|
3845
|
+
po as JoliboxAdsForVideo,
|
|
3846
|
+
Rr as OKSpinForGameProvider,
|
|
3847
|
+
Xr as OKSpinForVideoProvider,
|
|
3848
|
+
yo as ResponseError
|
|
3822
3849
|
};
|