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