@jolibox/ads 1.1.48 → 1.1.50
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/components/ads-request.d.ts +13 -7
- package/dist/index.js +983 -930
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var kt = Object.getOwnPropertySymbols;
|
|
2
|
+
var Ni = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var It = (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
|
+
Ni.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && kt)
|
|
8
|
+
for (var n of kt(t))
|
|
9
|
+
e.indexOf(n) < 0 && Mi.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as
|
|
13
|
-
import { useRef as
|
|
14
|
-
var
|
|
12
|
+
import { options as fe, Component as $i, isValidElement as ji } from "preact";
|
|
13
|
+
import { useRef as Fi, useLayoutEffect as Ui, useEffect as We, useMemo as Bi, useState as Xt, useCallback as Vi, render as oe, createRef as Rt } from "preact/compat";
|
|
14
|
+
var Qt = Object.defineProperty, Gi = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ki = Object.prototype.hasOwnProperty, zi = Object.prototype.propertyIsEnumerable, Ot = (t, e, i) => e in t ? Qt(t, e, {
|
|
15
15
|
enumerable: !0,
|
|
16
16
|
configurable: !0,
|
|
17
17
|
writable: !0,
|
|
18
18
|
value: i
|
|
19
|
-
}) : t[e] = i,
|
|
19
|
+
}) : t[e] = i, Hi = (t, e) => {
|
|
20
20
|
for (var i in e || (e = {}))
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
for (var i of
|
|
24
|
-
|
|
21
|
+
Ki.call(e, i) && Ot(t, i, e[i]);
|
|
22
|
+
if (xt)
|
|
23
|
+
for (var i of xt(e))
|
|
24
|
+
zi.call(e, i) && Ot(t, i, e[i]);
|
|
25
25
|
return t;
|
|
26
|
-
},
|
|
26
|
+
}, Wi = (t, e) => Gi(t, qi(e)), Ji = (t, e) => {
|
|
27
27
|
for (var i in e)
|
|
28
|
-
|
|
28
|
+
Qt(t, i, {
|
|
29
29
|
get: e[i],
|
|
30
30
|
enumerable: !0
|
|
31
31
|
});
|
|
32
|
-
},
|
|
32
|
+
}, Zt = (t, e, i, n) => {
|
|
33
33
|
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
34
34
|
(s = t[o]) && (r = s(r) || r);
|
|
35
35
|
return r;
|
|
36
|
-
},
|
|
36
|
+
}, Yi = (t, e, i) => new Promise((n, r) => {
|
|
37
37
|
var o = (d) => {
|
|
38
38
|
try {
|
|
39
39
|
a(i.next(d));
|
|
@@ -78,26 +78,26 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
78
78
|
n.call(this, i);
|
|
79
79
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Xi(t) {
|
|
82
82
|
return new Promise((e) => {
|
|
83
83
|
setTimeout(() => {
|
|
84
84
|
e();
|
|
85
85
|
}, t);
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Qi(t) {
|
|
89
89
|
return typeof t == "string";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Zi(t) {
|
|
92
92
|
return typeof t == "undefined";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function en(t) {
|
|
95
|
+
return Zi(t) || t === null;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function tn(t) {
|
|
98
98
|
return typeof t == "function";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ei(t) {
|
|
101
101
|
let e = t, i = null, n = function() {
|
|
102
102
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
103
103
|
o[s] = arguments[s];
|
|
@@ -105,29 +105,29 @@ function Jt(t) {
|
|
|
105
105
|
};
|
|
106
106
|
return n.prototype = e.prototype, n;
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
108
|
+
var nn = ((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))(nn || {});
|
|
109
|
+
function be(t) {
|
|
110
110
|
return function() {
|
|
111
111
|
var e, i;
|
|
112
112
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
log:
|
|
117
|
-
warn:
|
|
118
|
-
info:
|
|
119
|
-
error:
|
|
120
|
-
debug:
|
|
115
|
+
var rn = {
|
|
116
|
+
log: be("log"),
|
|
117
|
+
warn: be("warn"),
|
|
118
|
+
info: be("info"),
|
|
119
|
+
error: be("error"),
|
|
120
|
+
debug: be("debug")
|
|
121
121
|
};
|
|
122
122
|
Object.assign(globalThis, {
|
|
123
|
-
logger:
|
|
123
|
+
logger: rn
|
|
124
124
|
});
|
|
125
|
-
var
|
|
126
|
-
globalThis[
|
|
127
|
-
var
|
|
128
|
-
globalThis[
|
|
129
|
-
var
|
|
130
|
-
function
|
|
125
|
+
var Tt = Symbol.for("Jolibox.canIUseMap"), on = {};
|
|
126
|
+
globalThis[Tt] || (globalThis[Tt] = on);
|
|
127
|
+
var Ct = Symbol.for("Jolibox.canIUseMap.native"), sn = {};
|
|
128
|
+
globalThis[Ct] || (globalThis[Ct] = sn);
|
|
129
|
+
var ti = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(ti || {}), ii = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(ii || {}), ni = ((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))(ni || {}), Dt = ["name", "params"], an = ["name", "type", "location", "target", "extra", "timestamp", "userId"], dn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
130
|
+
function $e(t, e) {
|
|
131
131
|
return e.map((i) => {
|
|
132
132
|
if (i === "params" && t[i]) {
|
|
133
133
|
let n = t[i];
|
|
@@ -136,18 +136,30 @@ function Le(t, e) {
|
|
|
136
136
|
return t[i];
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let e = t.location ?
|
|
141
|
-
return
|
|
139
|
+
function ln(t) {
|
|
140
|
+
let e = t.location ? $e(t.location, Dt) : null, i = t.target ? $e(t.target, Dt) : null;
|
|
141
|
+
return $e(Wi(Hi({}, t), {
|
|
142
142
|
location: e,
|
|
143
143
|
target: i
|
|
144
|
-
}),
|
|
144
|
+
}), an);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
let e = t.events.map((n) =>
|
|
146
|
+
function un(t) {
|
|
147
|
+
let e = t.events.map((n) => ln(n)), i = $e(t.device, dn);
|
|
148
148
|
return [t.protocolVersion, e, i, t.project];
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function cn() {
|
|
151
|
+
if (typeof window == "undefined")
|
|
152
|
+
return {
|
|
153
|
+
getItem: () => null,
|
|
154
|
+
setItem: () => {
|
|
155
|
+
},
|
|
156
|
+
removeItem: () => {
|
|
157
|
+
},
|
|
158
|
+
clear: () => {
|
|
159
|
+
},
|
|
160
|
+
length: 0,
|
|
161
|
+
key: () => null
|
|
162
|
+
};
|
|
151
163
|
try {
|
|
152
164
|
if (window.__joliboxLocalStorage__)
|
|
153
165
|
return window.__joliboxLocalStorage__;
|
|
@@ -168,32 +180,32 @@ function rn() {
|
|
|
168
180
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
169
181
|
}
|
|
170
182
|
}
|
|
171
|
-
|
|
172
|
-
var
|
|
173
|
-
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");
|
|
174
|
-
var
|
|
183
|
+
cn();
|
|
184
|
+
var ue = typeof window == "undefined", st = () => !ue && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
|
|
185
|
+
!ue && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !ue && navigator.userAgent.includes("Android"), !ue && navigator.userAgent.includes("Mac"), !ue && navigator.userAgent.includes("FB_IAB"), !ue && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
186
|
+
var at = class dt {
|
|
175
187
|
constructor(e) {
|
|
176
|
-
this.element = e, this.next =
|
|
188
|
+
this.element = e, this.next = dt.Undefined, this.prev = dt.Undefined;
|
|
177
189
|
}
|
|
178
190
|
};
|
|
179
|
-
|
|
180
|
-
var
|
|
191
|
+
at.Undefined = new at(void 0);
|
|
192
|
+
var x = at, hn = class {
|
|
181
193
|
constructor() {
|
|
182
|
-
this._first =
|
|
194
|
+
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
183
195
|
}
|
|
184
196
|
get size() {
|
|
185
197
|
return this._size;
|
|
186
198
|
}
|
|
187
199
|
isEmpty() {
|
|
188
|
-
return this._first ===
|
|
200
|
+
return this._first === x.Undefined;
|
|
189
201
|
}
|
|
190
202
|
clear() {
|
|
191
203
|
let t = this._first;
|
|
192
|
-
for (; t !==
|
|
204
|
+
for (; t !== x.Undefined; ) {
|
|
193
205
|
let e = t.next;
|
|
194
|
-
t.prev =
|
|
206
|
+
t.prev = x.Undefined, t.next = x.Undefined, t = e;
|
|
195
207
|
}
|
|
196
|
-
this._first =
|
|
208
|
+
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
197
209
|
}
|
|
198
210
|
unshift(t) {
|
|
199
211
|
return this._insert(t, !1);
|
|
@@ -202,8 +214,8 @@ var R = nt, on = class {
|
|
|
202
214
|
return this._insert(t, !0);
|
|
203
215
|
}
|
|
204
216
|
_insert(t, e) {
|
|
205
|
-
let i = new
|
|
206
|
-
if (this._first ===
|
|
217
|
+
let i = new x(t);
|
|
218
|
+
if (this._first === x.Undefined)
|
|
207
219
|
this._first = i, this._last = i;
|
|
208
220
|
else if (e) {
|
|
209
221
|
let r = this._last;
|
|
@@ -219,41 +231,41 @@ var R = nt, on = class {
|
|
|
219
231
|
};
|
|
220
232
|
}
|
|
221
233
|
shift() {
|
|
222
|
-
if (this._first !==
|
|
234
|
+
if (this._first !== x.Undefined) {
|
|
223
235
|
let t = this._first.element;
|
|
224
236
|
return this._remove(this._first), t;
|
|
225
237
|
}
|
|
226
238
|
}
|
|
227
239
|
pop() {
|
|
228
|
-
if (this._last !==
|
|
240
|
+
if (this._last !== x.Undefined) {
|
|
229
241
|
let t = this._last.element;
|
|
230
242
|
return this._remove(this._last), t;
|
|
231
243
|
}
|
|
232
244
|
}
|
|
233
245
|
_remove(t) {
|
|
234
|
-
if (t.prev !==
|
|
246
|
+
if (t.prev !== x.Undefined && t.next !== x.Undefined) {
|
|
235
247
|
let e = t.prev;
|
|
236
248
|
e.next = t.next, t.next.prev = e;
|
|
237
249
|
} else
|
|
238
|
-
t.prev ===
|
|
250
|
+
t.prev === x.Undefined && t.next === x.Undefined ? (this._first = x.Undefined, this._last = x.Undefined) : t.next === x.Undefined ? (this._last = this._last.prev, this._last.next = x.Undefined) : t.prev === x.Undefined && (this._first = this._first.next, this._first.prev = x.Undefined);
|
|
239
251
|
this._size -= 1;
|
|
240
252
|
}
|
|
241
253
|
*[Symbol.iterator]() {
|
|
242
254
|
let t = this._first;
|
|
243
|
-
for (; t !==
|
|
255
|
+
for (; t !== x.Undefined; )
|
|
244
256
|
yield t.element, t = t.next;
|
|
245
257
|
}
|
|
246
|
-
},
|
|
258
|
+
}, fn = 0, Ae = class {
|
|
247
259
|
constructor(t) {
|
|
248
|
-
this.value = t, this.id =
|
|
260
|
+
this.value = t, this.id = fn++;
|
|
249
261
|
}
|
|
250
|
-
},
|
|
262
|
+
}, Ee = class {
|
|
251
263
|
constructor(e) {
|
|
252
264
|
this.options = e, this._size = 0;
|
|
253
265
|
}
|
|
254
266
|
dispose(e) {
|
|
255
267
|
var i, n;
|
|
256
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
268
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Ae && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
|
|
257
269
|
}
|
|
258
270
|
get event() {
|
|
259
271
|
return this._event != null || (this._event = (e, i) => {
|
|
@@ -263,15 +275,15 @@ var R = nt, on = class {
|
|
|
263
275
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
264
276
|
};
|
|
265
277
|
i && (e = e.bind(i));
|
|
266
|
-
let l = new
|
|
267
|
-
return this._listeners ? this._listeners instanceof
|
|
278
|
+
let l = new Ae(e);
|
|
279
|
+
return this._listeners ? this._listeners instanceof Ae ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
|
|
268
280
|
var u, h, c, f;
|
|
269
281
|
if (!this._disposed) {
|
|
270
|
-
if (this._listeners instanceof
|
|
282
|
+
if (this._listeners instanceof Ae)
|
|
271
283
|
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || h.call(u));
|
|
272
284
|
else if (this._listeners) {
|
|
273
|
-
let
|
|
274
|
-
|
|
285
|
+
let w = this._listeners.indexOf(l);
|
|
286
|
+
w >= 0 && (this._listeners.splice(w, 1), this._size--, this._size === 0 && ((f = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || f.call(c)));
|
|
275
287
|
}
|
|
276
288
|
}
|
|
277
289
|
};
|
|
@@ -293,67 +305,67 @@ var R = nt, on = class {
|
|
|
293
305
|
}
|
|
294
306
|
}
|
|
295
307
|
fire(e) {
|
|
296
|
-
this._listeners && (this._listeners instanceof
|
|
308
|
+
this._listeners && (this._listeners instanceof Ae ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
297
309
|
}
|
|
298
310
|
hasListeners() {
|
|
299
311
|
return this._size > 0;
|
|
300
312
|
}
|
|
301
|
-
},
|
|
313
|
+
}, vn = class {
|
|
302
314
|
constructor() {
|
|
303
315
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
304
316
|
}
|
|
305
|
-
on(
|
|
306
|
-
let
|
|
307
|
-
var
|
|
308
|
-
let
|
|
309
|
-
this.listerHandlerMap.set(
|
|
310
|
-
handler:
|
|
311
|
-
dispose:
|
|
312
|
-
}), this.listeners.set(
|
|
313
|
-
let
|
|
314
|
-
if (
|
|
315
|
-
for (let
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
flushCachedEvent(
|
|
319
|
-
|
|
320
|
-
}
|
|
321
|
-
off(
|
|
322
|
-
let
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
emit(
|
|
326
|
-
let
|
|
327
|
-
for (var
|
|
328
|
-
o
|
|
329
|
-
|
|
330
|
-
args:
|
|
331
|
-
}),
|
|
332
|
-
event:
|
|
333
|
-
args:
|
|
317
|
+
on(t, e) {
|
|
318
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
319
|
+
var n;
|
|
320
|
+
let r = (n = this.listeners.get(t)) != null ? n : new Ee(), o = (d) => e(...d.args), s = r.event(o);
|
|
321
|
+
this.listerHandlerMap.set(e, {
|
|
322
|
+
handler: o,
|
|
323
|
+
dispose: s
|
|
324
|
+
}), this.listeners.set(t, r);
|
|
325
|
+
let a = this.cachedEventQueue.get(t);
|
|
326
|
+
if (a && i)
|
|
327
|
+
for (let d of a)
|
|
328
|
+
e(...d.args);
|
|
329
|
+
}
|
|
330
|
+
flushCachedEvent(t) {
|
|
331
|
+
t ? this.cachedEventQueue.delete(t) : this.cachedEventQueue.clear();
|
|
332
|
+
}
|
|
333
|
+
off(t, e) {
|
|
334
|
+
let i = this.listerHandlerMap.get(e);
|
|
335
|
+
i && (i.dispose(), this.listerHandlerMap.delete(e));
|
|
336
|
+
}
|
|
337
|
+
emit(t) {
|
|
338
|
+
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
339
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
340
|
+
r[o - 1] = arguments[o];
|
|
341
|
+
i || (i = new hn(), this.cachedEventQueue.set(t, i)), i.push({
|
|
342
|
+
args: r
|
|
343
|
+
}), e && e.fire({
|
|
344
|
+
event: t,
|
|
345
|
+
args: r
|
|
334
346
|
});
|
|
335
347
|
}
|
|
336
|
-
once(
|
|
337
|
-
var
|
|
338
|
-
let
|
|
339
|
-
|
|
348
|
+
once(t, e) {
|
|
349
|
+
var i = this;
|
|
350
|
+
let n = function() {
|
|
351
|
+
e(...arguments), i.off(t, n);
|
|
340
352
|
};
|
|
341
|
-
this.on(
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
None: () =>
|
|
346
|
-
filter: () =>
|
|
347
|
-
once: () =>
|
|
348
|
-
toPromise: () =>
|
|
353
|
+
this.on(t, n, !1);
|
|
354
|
+
}
|
|
355
|
+
}, lt = {};
|
|
356
|
+
Ji(lt, {
|
|
357
|
+
None: () => gn,
|
|
358
|
+
filter: () => wn,
|
|
359
|
+
once: () => ri,
|
|
360
|
+
toPromise: () => yn
|
|
349
361
|
});
|
|
350
|
-
var
|
|
362
|
+
var gn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
351
363
|
console.log("[Jolibox SDK] None Event dispose");
|
|
352
364
|
});
|
|
353
|
-
function
|
|
354
|
-
return new Promise((e) =>
|
|
365
|
+
function yn(t) {
|
|
366
|
+
return new Promise((e) => ri(t)(e));
|
|
355
367
|
}
|
|
356
|
-
function
|
|
368
|
+
function ri(t) {
|
|
357
369
|
return function(e) {
|
|
358
370
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
359
371
|
return t((r) => {
|
|
@@ -362,52 +374,52 @@ function Zt(t) {
|
|
|
362
374
|
}, null);
|
|
363
375
|
};
|
|
364
376
|
}
|
|
365
|
-
function
|
|
377
|
+
function wn(t, e) {
|
|
366
378
|
return ((i) => {
|
|
367
379
|
let n = {
|
|
368
380
|
onWillAddFirstListener() {
|
|
369
381
|
i(r.fire, r);
|
|
370
382
|
}
|
|
371
|
-
}, r = new
|
|
383
|
+
}, r = new Ee(n);
|
|
372
384
|
return r.event;
|
|
373
385
|
})(function(i) {
|
|
374
386
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
375
387
|
return t((r) => e(r) && i.call(n, r), null);
|
|
376
388
|
});
|
|
377
389
|
}
|
|
378
|
-
var
|
|
379
|
-
let t = new
|
|
380
|
-
return globalThis[
|
|
390
|
+
var Ze = Symbol.for("Jolibox.hostEmitter"), pn = () => {
|
|
391
|
+
let t = new vn();
|
|
392
|
+
return globalThis[Ze] || (globalThis[Ze] = {
|
|
381
393
|
on: t.on.bind(t),
|
|
382
394
|
off: t.off.bind(t),
|
|
383
395
|
emit: t.emit.bind(t),
|
|
384
396
|
once: t.once.bind(t)
|
|
385
|
-
}), globalThis[
|
|
397
|
+
}), globalThis[Ze];
|
|
386
398
|
};
|
|
387
|
-
|
|
388
|
-
function
|
|
399
|
+
pn();
|
|
400
|
+
function bn(t, e) {
|
|
389
401
|
let i = Math.min(t.length, e.length);
|
|
390
402
|
for (let n = 0; n < i; n++)
|
|
391
|
-
|
|
403
|
+
An(t[n], e[n]);
|
|
392
404
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
405
|
+
function An(t, e) {
|
|
406
|
+
if (Qi(e)) {
|
|
395
407
|
if (typeof t !== e)
|
|
396
408
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
397
|
-
} else if (
|
|
409
|
+
} else if (tn(e)) {
|
|
398
410
|
try {
|
|
399
411
|
if (t instanceof e)
|
|
400
412
|
return;
|
|
401
413
|
} catch (i) {
|
|
402
414
|
}
|
|
403
|
-
if (!
|
|
415
|
+
if (!en(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
404
416
|
return;
|
|
405
417
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
406
418
|
}
|
|
407
419
|
}
|
|
408
|
-
var
|
|
420
|
+
var ut = class {
|
|
409
421
|
constructor() {
|
|
410
|
-
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new
|
|
422
|
+
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Ee(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
411
423
|
}
|
|
412
424
|
registerCommand(e) {
|
|
413
425
|
if (!e)
|
|
@@ -420,7 +432,7 @@ var st = class {
|
|
|
420
432
|
e.handler = function() {
|
|
421
433
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
422
434
|
s[a] = arguments[a];
|
|
423
|
-
return
|
|
435
|
+
return bn(s, n), r(...s);
|
|
424
436
|
};
|
|
425
437
|
}
|
|
426
438
|
let {
|
|
@@ -440,19 +452,19 @@ var st = class {
|
|
|
440
452
|
return e;
|
|
441
453
|
}
|
|
442
454
|
};
|
|
443
|
-
|
|
444
|
-
var
|
|
455
|
+
ut = Zt([ei], ut);
|
|
456
|
+
var Lt = class {
|
|
445
457
|
constructor() {
|
|
446
|
-
this._onWillExecuteCommand = new
|
|
458
|
+
this._onWillExecuteCommand = new Ee(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Ee(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new ut(), this._starActivation = null;
|
|
447
459
|
}
|
|
448
460
|
_activateStar() {
|
|
449
|
-
return this._starActivation || (this._starActivation =
|
|
461
|
+
return this._starActivation || (this._starActivation = Xi(3e4)), this._starActivation;
|
|
450
462
|
}
|
|
451
463
|
executeCommand(e) {
|
|
452
464
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
453
465
|
n[r - 1] = arguments[r];
|
|
454
|
-
return
|
|
455
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
466
|
+
return Yi(this, null, function* () {
|
|
467
|
+
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), lt.toPromise(lt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
456
468
|
});
|
|
457
469
|
}
|
|
458
470
|
executeCommandThowErr(e) {
|
|
@@ -498,15 +510,15 @@ var xt = class {
|
|
|
498
510
|
}
|
|
499
511
|
}
|
|
500
512
|
};
|
|
501
|
-
|
|
502
|
-
function
|
|
503
|
-
return (e =
|
|
513
|
+
Lt = Zt([ei], Lt);
|
|
514
|
+
function B(t, e, i) {
|
|
515
|
+
return (e = _n(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
504
516
|
}
|
|
505
|
-
function
|
|
506
|
-
var e =
|
|
517
|
+
function _n(t) {
|
|
518
|
+
var e = mn(t, "string");
|
|
507
519
|
return typeof e == "symbol" ? e : e + "";
|
|
508
520
|
}
|
|
509
|
-
function
|
|
521
|
+
function mn(t, e) {
|
|
510
522
|
if (typeof t != "object" || !t)
|
|
511
523
|
return t;
|
|
512
524
|
var i = t[Symbol.toPrimitive];
|
|
@@ -518,9 +530,9 @@ function gn(t, e) {
|
|
|
518
530
|
}
|
|
519
531
|
return (e === "string" ? String : Number)(t);
|
|
520
532
|
}
|
|
521
|
-
class
|
|
533
|
+
class Sn {
|
|
522
534
|
constructor(e) {
|
|
523
|
-
|
|
535
|
+
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, "contextInfo", void 0), B(this, "wrapShowAdFn", (i) => () => {
|
|
524
536
|
var r, o, s;
|
|
525
537
|
this.adsHasResponse = !0;
|
|
526
538
|
let n = !1;
|
|
@@ -528,7 +540,7 @@ class yn {
|
|
|
528
540
|
n = !1;
|
|
529
541
|
}), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
530
542
|
userEvent: n
|
|
531
|
-
}, this.paramsToTrack)),
|
|
543
|
+
}, this.paramsToTrack)), st() && this.context.track("mmp_ad_impression", {
|
|
532
544
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
533
545
|
ad_format: "rewarded",
|
|
534
546
|
module: "game",
|
|
@@ -547,7 +559,7 @@ class yn {
|
|
|
547
559
|
wrapBeforeAd(e) {
|
|
548
560
|
return () => {
|
|
549
561
|
var i, n, r, o;
|
|
550
|
-
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),
|
|
562
|
+
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), st() && this.context.track("mmp_ad_impression", {
|
|
551
563
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
552
564
|
ad_format: "interstitial",
|
|
553
565
|
module: "game",
|
|
@@ -656,14 +668,14 @@ class yn {
|
|
|
656
668
|
});
|
|
657
669
|
}
|
|
658
670
|
}
|
|
659
|
-
function
|
|
660
|
-
return (e =
|
|
671
|
+
function Le(t, e, i) {
|
|
672
|
+
return (e = En(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
661
673
|
}
|
|
662
|
-
function
|
|
663
|
-
var e =
|
|
674
|
+
function En(t) {
|
|
675
|
+
var e = kn(t, "string");
|
|
664
676
|
return typeof e == "symbol" ? e : e + "";
|
|
665
677
|
}
|
|
666
|
-
function
|
|
678
|
+
function kn(t, e) {
|
|
667
679
|
if (typeof t != "object" || !t)
|
|
668
680
|
return t;
|
|
669
681
|
var i = t[Symbol.toPrimitive];
|
|
@@ -675,13 +687,13 @@ function wn(t, e) {
|
|
|
675
687
|
}
|
|
676
688
|
return (e === "string" ? String : Number)(t);
|
|
677
689
|
}
|
|
678
|
-
class
|
|
690
|
+
class In {
|
|
679
691
|
constructor(e) {
|
|
680
|
-
|
|
692
|
+
Le(this, "context", void 0), Le(this, "adBreakIsShowing", !1), Le(this, "reportPageJumpOut", () => {
|
|
681
693
|
this.context.track("AdBreakJumpOut", {
|
|
682
694
|
context: "AdsActionDetection"
|
|
683
695
|
});
|
|
684
|
-
}),
|
|
696
|
+
}), Le(this, "reportPageHide", () => {
|
|
685
697
|
this.context.track("AdBreakHide", {
|
|
686
698
|
context: "AdsActionDetection"
|
|
687
699
|
});
|
|
@@ -692,14 +704,14 @@ class bn {
|
|
|
692
704
|
});
|
|
693
705
|
}
|
|
694
706
|
}
|
|
695
|
-
function
|
|
696
|
-
return (e =
|
|
707
|
+
function Pe(t, e, i) {
|
|
708
|
+
return (e = Rn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
697
709
|
}
|
|
698
|
-
function
|
|
699
|
-
var e =
|
|
710
|
+
function Rn(t) {
|
|
711
|
+
var e = xn(t, "string");
|
|
700
712
|
return typeof e == "symbol" ? e : e + "";
|
|
701
713
|
}
|
|
702
|
-
function
|
|
714
|
+
function xn(t, e) {
|
|
703
715
|
if (typeof t != "object" || !t)
|
|
704
716
|
return t;
|
|
705
717
|
var i = t[Symbol.toPrimitive];
|
|
@@ -711,9 +723,9 @@ function An(t, e) {
|
|
|
711
723
|
}
|
|
712
724
|
return (e === "string" ? String : Number)(t);
|
|
713
725
|
}
|
|
714
|
-
class
|
|
726
|
+
class On {
|
|
715
727
|
constructor(e) {
|
|
716
|
-
|
|
728
|
+
Pe(this, "configs", null), Pe(this, "firstRun", !0), Pe(this, "context", void 0), Pe(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
717
729
|
}
|
|
718
730
|
async init() {
|
|
719
731
|
try {
|
|
@@ -738,13 +750,13 @@ class mn {
|
|
|
738
750
|
}
|
|
739
751
|
}
|
|
740
752
|
function Q(t, e, i) {
|
|
741
|
-
return (e =
|
|
753
|
+
return (e = Tn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
742
754
|
}
|
|
743
|
-
function
|
|
744
|
-
var e =
|
|
755
|
+
function Tn(t) {
|
|
756
|
+
var e = Cn(t, "string");
|
|
745
757
|
return typeof e == "symbol" ? e : e + "";
|
|
746
758
|
}
|
|
747
|
-
function
|
|
759
|
+
function Cn(t, e) {
|
|
748
760
|
if (typeof t != "object" || !t)
|
|
749
761
|
return t;
|
|
750
762
|
var i = t[Symbol.toPrimitive];
|
|
@@ -756,7 +768,7 @@ function En(t, e) {
|
|
|
756
768
|
}
|
|
757
769
|
return (e === "string" ? String : Number)(t);
|
|
758
770
|
}
|
|
759
|
-
class
|
|
771
|
+
class Dn {
|
|
760
772
|
/**
|
|
761
773
|
* Internal constructor, should not be called directly
|
|
762
774
|
*/
|
|
@@ -767,7 +779,7 @@ class kn {
|
|
|
767
779
|
}), Q(this, "adConfig", (n) => {
|
|
768
780
|
const s = n, {
|
|
769
781
|
onReady: r
|
|
770
|
-
} = s, o =
|
|
782
|
+
} = s, o = It(s, [
|
|
771
783
|
"onReady"
|
|
772
784
|
]);
|
|
773
785
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
@@ -778,10 +790,10 @@ class kn {
|
|
|
778
790
|
}
|
|
779
791
|
this.push(n);
|
|
780
792
|
}), Q(this, "adUnit", async (n) => {
|
|
781
|
-
var
|
|
793
|
+
var w, g, p, y;
|
|
782
794
|
if (this.context.track("CallAdUnit", {
|
|
783
|
-
adFormat: (g = (
|
|
784
|
-
fullWidthResponsive: (
|
|
795
|
+
adFormat: (g = (w = n.adFormat) == null ? void 0 : w.toString()) != null ? g : null,
|
|
796
|
+
fullWidthResponsive: (p = n.fullWidthResponsive) != null ? p : null
|
|
785
797
|
}), document.querySelector("#jolibox-ads")) {
|
|
786
798
|
console.warn("Ad unit already set, skipping");
|
|
787
799
|
return;
|
|
@@ -803,15 +815,15 @@ class kn {
|
|
|
803
815
|
throw new Error("slot is required");
|
|
804
816
|
const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, c = document.createElement("ins");
|
|
805
817
|
if (c.className = "adsbygoogle", c.id = "jolibox-ads", c.style.display = "block", c.setAttribute("data-ad-client", this.initParams.clientId), c.setAttribute("data-ad-slot", u), h && c.setAttribute("data-ad-format", h), a && c.setAttribute("data-full-width-responsive", a), d && c.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
|
|
806
|
-
const
|
|
807
|
-
|
|
818
|
+
const v = document.createElement("div");
|
|
819
|
+
v.style.position = "absolute", v.style.top = "0", v.style.left = "0", v.style.width = "100%", v.style.height = "100%", v.style.display = "flex", v.style.justifyContent = "center", v.style.alignItems = "center", v.style.backgroundColor = "rgba(0, 0, 0, 0.5)", v.style.color = "white", v.innerHTML = "Test Ad", c.style.position = "relative", l.appendChild(c), c.appendChild(v);
|
|
808
820
|
} else
|
|
809
821
|
l.appendChild(c), new MutationObserver((b) => {
|
|
810
|
-
b.forEach((
|
|
811
|
-
if (
|
|
812
|
-
const
|
|
822
|
+
b.forEach((T) => {
|
|
823
|
+
if (T.type === "attributes" && T.attributeName === "data-ad-status") {
|
|
824
|
+
const R = c.getAttribute("data-ad-status");
|
|
813
825
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
814
|
-
status:
|
|
826
|
+
status: R != null ? R : "null"
|
|
815
827
|
});
|
|
816
828
|
}
|
|
817
829
|
});
|
|
@@ -834,18 +846,18 @@ class kn {
|
|
|
834
846
|
}
|
|
835
847
|
}
|
|
836
848
|
}
|
|
837
|
-
function
|
|
849
|
+
function Ln(t) {
|
|
838
850
|
if (t.sheet)
|
|
839
851
|
return t.sheet;
|
|
840
852
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
841
853
|
if (document.styleSheets[e].ownerNode === t)
|
|
842
854
|
return document.styleSheets[e];
|
|
843
855
|
}
|
|
844
|
-
function
|
|
856
|
+
function Pn(t) {
|
|
845
857
|
var e = document.createElement("style");
|
|
846
858
|
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;
|
|
847
859
|
}
|
|
848
|
-
var
|
|
860
|
+
var Nn = /* @__PURE__ */ function() {
|
|
849
861
|
function t(i) {
|
|
850
862
|
var n = this;
|
|
851
863
|
this._insertTag = function(r) {
|
|
@@ -857,10 +869,10 @@ var xn = /* @__PURE__ */ function() {
|
|
|
857
869
|
return e.hydrate = function(n) {
|
|
858
870
|
n.forEach(this._insertTag);
|
|
859
871
|
}, e.insert = function(n) {
|
|
860
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
872
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Pn(this));
|
|
861
873
|
var r = this.tags[this.tags.length - 1];
|
|
862
874
|
if (this.isSpeedy) {
|
|
863
|
-
var o =
|
|
875
|
+
var o = Ln(r);
|
|
864
876
|
try {
|
|
865
877
|
o.insertRule(n, o.cssRules.length);
|
|
866
878
|
} catch (s) {
|
|
@@ -874,66 +886,66 @@ var xn = /* @__PURE__ */ function() {
|
|
|
874
886
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
875
887
|
}), this.tags = [], this.ctr = 0;
|
|
876
888
|
}, t;
|
|
877
|
-
}(),
|
|
878
|
-
function
|
|
879
|
-
return
|
|
889
|
+
}(), j = "-ms-", qe = "-moz-", m = "-webkit-", oi = "comm", pt = "rule", bt = "decl", Mn = "@import", si = "@keyframes", $n = "@layer", jn = Math.abs, Je = String.fromCharCode, Fn = Object.assign;
|
|
890
|
+
function Un(t, e) {
|
|
891
|
+
return N(t, 0) ^ 45 ? (((e << 2 ^ N(t, 0)) << 2 ^ N(t, 1)) << 2 ^ N(t, 2)) << 2 ^ N(t, 3) : 0;
|
|
880
892
|
}
|
|
881
|
-
function
|
|
893
|
+
function ai(t) {
|
|
882
894
|
return t.trim();
|
|
883
895
|
}
|
|
884
|
-
function
|
|
896
|
+
function Bn(t, e) {
|
|
885
897
|
return (t = e.exec(t)) ? t[0] : t;
|
|
886
898
|
}
|
|
887
|
-
function
|
|
899
|
+
function S(t, e, i) {
|
|
888
900
|
return t.replace(e, i);
|
|
889
901
|
}
|
|
890
|
-
function
|
|
902
|
+
function ct(t, e) {
|
|
891
903
|
return t.indexOf(e);
|
|
892
904
|
}
|
|
893
|
-
function
|
|
905
|
+
function N(t, e) {
|
|
894
906
|
return t.charCodeAt(e) | 0;
|
|
895
907
|
}
|
|
896
|
-
function
|
|
908
|
+
function ke(t, e, i) {
|
|
897
909
|
return t.slice(e, i);
|
|
898
910
|
}
|
|
899
911
|
function Y(t) {
|
|
900
912
|
return t.length;
|
|
901
913
|
}
|
|
902
|
-
function
|
|
914
|
+
function At(t) {
|
|
903
915
|
return t.length;
|
|
904
916
|
}
|
|
905
|
-
function
|
|
917
|
+
function Ne(t, e) {
|
|
906
918
|
return e.push(t), t;
|
|
907
919
|
}
|
|
908
|
-
function
|
|
920
|
+
function Vn(t, e) {
|
|
909
921
|
return t.map(e).join("");
|
|
910
922
|
}
|
|
911
|
-
var
|
|
912
|
-
function
|
|
913
|
-
return { value: t, root: e, parent: i, type: n, props: r, children: o, line:
|
|
923
|
+
var Ye = 1, ve = 1, di = 0, G = 0, C = 0, ge = "";
|
|
924
|
+
function Xe(t, e, i, n, r, o, s) {
|
|
925
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Ye, column: ve, length: s, return: "" };
|
|
914
926
|
}
|
|
915
927
|
function _e(t, e) {
|
|
916
|
-
return
|
|
928
|
+
return Fn(Xe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
917
929
|
}
|
|
918
|
-
function
|
|
919
|
-
return
|
|
930
|
+
function Gn() {
|
|
931
|
+
return C;
|
|
920
932
|
}
|
|
921
|
-
function
|
|
922
|
-
return
|
|
933
|
+
function qn() {
|
|
934
|
+
return C = G > 0 ? N(ge, --G) : 0, ve--, C === 10 && (ve = 1, Ye--), C;
|
|
923
935
|
}
|
|
924
|
-
function
|
|
925
|
-
return
|
|
936
|
+
function K() {
|
|
937
|
+
return C = G < di ? N(ge, G++) : 0, ve++, C === 10 && (ve = 1, Ye++), C;
|
|
926
938
|
}
|
|
927
939
|
function X() {
|
|
928
|
-
return
|
|
940
|
+
return N(ge, G);
|
|
929
941
|
}
|
|
930
|
-
function
|
|
931
|
-
return
|
|
942
|
+
function je() {
|
|
943
|
+
return G;
|
|
932
944
|
}
|
|
933
|
-
function
|
|
934
|
-
return
|
|
945
|
+
function Re(t, e) {
|
|
946
|
+
return ke(ge, t, e);
|
|
935
947
|
}
|
|
936
|
-
function
|
|
948
|
+
function Ie(t) {
|
|
937
949
|
switch (t) {
|
|
938
950
|
case 0:
|
|
939
951
|
case 9:
|
|
@@ -965,212 +977,212 @@ function ke(t) {
|
|
|
965
977
|
}
|
|
966
978
|
return 0;
|
|
967
979
|
}
|
|
968
|
-
function
|
|
969
|
-
return
|
|
980
|
+
function li(t) {
|
|
981
|
+
return Ye = ve = 1, di = Y(ge = t), G = 0, [];
|
|
970
982
|
}
|
|
971
|
-
function
|
|
972
|
-
return
|
|
983
|
+
function ui(t) {
|
|
984
|
+
return ge = "", t;
|
|
973
985
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
986
|
+
function Fe(t) {
|
|
987
|
+
return ai(Re(G - 1, ht(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
976
988
|
}
|
|
977
|
-
function
|
|
978
|
-
for (; (
|
|
979
|
-
|
|
980
|
-
return
|
|
989
|
+
function Kn(t) {
|
|
990
|
+
for (; (C = X()) && C < 33; )
|
|
991
|
+
K();
|
|
992
|
+
return Ie(t) > 2 || Ie(C) > 3 ? "" : " ";
|
|
981
993
|
}
|
|
982
|
-
function
|
|
983
|
-
for (; --e &&
|
|
994
|
+
function zn(t, e) {
|
|
995
|
+
for (; --e && K() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
|
|
984
996
|
;
|
|
985
|
-
return
|
|
997
|
+
return Re(t, je() + (e < 6 && X() == 32 && K() == 32));
|
|
986
998
|
}
|
|
987
|
-
function
|
|
988
|
-
for (;
|
|
989
|
-
switch (
|
|
999
|
+
function ht(t) {
|
|
1000
|
+
for (; K(); )
|
|
1001
|
+
switch (C) {
|
|
990
1002
|
case t:
|
|
991
|
-
return
|
|
1003
|
+
return G;
|
|
992
1004
|
case 34:
|
|
993
1005
|
case 39:
|
|
994
|
-
t !== 34 && t !== 39 &&
|
|
1006
|
+
t !== 34 && t !== 39 && ht(C);
|
|
995
1007
|
break;
|
|
996
1008
|
case 40:
|
|
997
|
-
t === 41 &&
|
|
1009
|
+
t === 41 && ht(t);
|
|
998
1010
|
break;
|
|
999
1011
|
case 92:
|
|
1000
|
-
|
|
1012
|
+
K();
|
|
1001
1013
|
break;
|
|
1002
1014
|
}
|
|
1003
|
-
return
|
|
1015
|
+
return G;
|
|
1004
1016
|
}
|
|
1005
|
-
function
|
|
1006
|
-
for (;
|
|
1007
|
-
if (t +
|
|
1017
|
+
function Hn(t, e) {
|
|
1018
|
+
for (; K() && t + C !== 57; )
|
|
1019
|
+
if (t + C === 84 && X() === 47)
|
|
1008
1020
|
break;
|
|
1009
|
-
return "/*" +
|
|
1021
|
+
return "/*" + Re(e, G - 1) + "*" + Je(t === 47 ? t : K());
|
|
1010
1022
|
}
|
|
1011
|
-
function
|
|
1012
|
-
for (; !
|
|
1013
|
-
|
|
1014
|
-
return
|
|
1023
|
+
function Wn(t) {
|
|
1024
|
+
for (; !Ie(X()); )
|
|
1025
|
+
K();
|
|
1026
|
+
return Re(t, G);
|
|
1015
1027
|
}
|
|
1016
|
-
function
|
|
1017
|
-
return
|
|
1028
|
+
function Jn(t) {
|
|
1029
|
+
return ui(Ue("", null, null, null, [""], t = li(t), 0, [0], t));
|
|
1018
1030
|
}
|
|
1019
|
-
function
|
|
1020
|
-
for (var l = 0, u = 0, h = s, c = 0, f = 0,
|
|
1021
|
-
switch (
|
|
1031
|
+
function Ue(t, e, i, n, r, o, s, a, d) {
|
|
1032
|
+
for (var l = 0, u = 0, h = s, c = 0, f = 0, w = 0, g = 1, p = 1, y = 1, v = 0, b = "", T = r, R = o, O = n, A = b; p; )
|
|
1033
|
+
switch (w = v, v = K()) {
|
|
1022
1034
|
case 40:
|
|
1023
|
-
if (
|
|
1024
|
-
|
|
1035
|
+
if (w != 108 && N(A, h - 1) == 58) {
|
|
1036
|
+
ct(A += S(Fe(v), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
1025
1037
|
break;
|
|
1026
1038
|
}
|
|
1027
1039
|
case 34:
|
|
1028
1040
|
case 39:
|
|
1029
1041
|
case 91:
|
|
1030
|
-
|
|
1042
|
+
A += Fe(v);
|
|
1031
1043
|
break;
|
|
1032
1044
|
case 9:
|
|
1033
1045
|
case 10:
|
|
1034
1046
|
case 13:
|
|
1035
1047
|
case 32:
|
|
1036
|
-
|
|
1048
|
+
A += Kn(w);
|
|
1037
1049
|
break;
|
|
1038
1050
|
case 92:
|
|
1039
|
-
|
|
1051
|
+
A += zn(je() - 1, 7);
|
|
1040
1052
|
continue;
|
|
1041
1053
|
case 47:
|
|
1042
1054
|
switch (X()) {
|
|
1043
1055
|
case 42:
|
|
1044
1056
|
case 47:
|
|
1045
|
-
|
|
1057
|
+
Ne(Yn(Hn(K(), je()), e, i), d);
|
|
1046
1058
|
break;
|
|
1047
1059
|
default:
|
|
1048
|
-
|
|
1060
|
+
A += "/";
|
|
1049
1061
|
}
|
|
1050
1062
|
break;
|
|
1051
1063
|
case 123 * g:
|
|
1052
|
-
a[l++] = Y(
|
|
1064
|
+
a[l++] = Y(A) * y;
|
|
1053
1065
|
case 125 * g:
|
|
1054
1066
|
case 59:
|
|
1055
1067
|
case 0:
|
|
1056
|
-
switch (
|
|
1068
|
+
switch (v) {
|
|
1057
1069
|
case 0:
|
|
1058
1070
|
case 125:
|
|
1059
|
-
|
|
1071
|
+
p = 0;
|
|
1060
1072
|
case 59 + u:
|
|
1061
|
-
y == -1 && (
|
|
1073
|
+
y == -1 && (A = S(A, /\f/g, "")), f > 0 && Y(A) - h && Ne(f > 32 ? Nt(A + ";", n, i, h - 1) : Nt(S(A, " ", "") + ";", n, i, h - 2), d);
|
|
1062
1074
|
break;
|
|
1063
1075
|
case 59:
|
|
1064
|
-
|
|
1076
|
+
A += ";";
|
|
1065
1077
|
default:
|
|
1066
|
-
if (
|
|
1078
|
+
if (Ne(O = Pt(A, e, i, l, u, r, a, b, T = [], R = [], h), o), v === 123)
|
|
1067
1079
|
if (u === 0)
|
|
1068
|
-
|
|
1080
|
+
Ue(A, e, O, O, T, o, h, a, R);
|
|
1069
1081
|
else
|
|
1070
|
-
switch (c === 99 &&
|
|
1082
|
+
switch (c === 99 && N(A, 3) === 110 ? 100 : c) {
|
|
1071
1083
|
case 100:
|
|
1072
1084
|
case 108:
|
|
1073
1085
|
case 109:
|
|
1074
1086
|
case 115:
|
|
1075
|
-
|
|
1087
|
+
Ue(t, O, O, n && Ne(Pt(t, O, O, 0, 0, r, a, b, r, T = [], h), R), r, R, h, a, n ? T : R);
|
|
1076
1088
|
break;
|
|
1077
1089
|
default:
|
|
1078
|
-
|
|
1090
|
+
Ue(A, O, O, O, [""], R, 0, a, R);
|
|
1079
1091
|
}
|
|
1080
1092
|
}
|
|
1081
|
-
l = u = f = 0, g = y = 1, b =
|
|
1093
|
+
l = u = f = 0, g = y = 1, b = A = "", h = s;
|
|
1082
1094
|
break;
|
|
1083
1095
|
case 58:
|
|
1084
|
-
h = 1 + Y(
|
|
1096
|
+
h = 1 + Y(A), f = w;
|
|
1085
1097
|
default:
|
|
1086
1098
|
if (g < 1) {
|
|
1087
|
-
if (
|
|
1099
|
+
if (v == 123)
|
|
1088
1100
|
--g;
|
|
1089
|
-
else if (
|
|
1101
|
+
else if (v == 125 && g++ == 0 && qn() == 125)
|
|
1090
1102
|
continue;
|
|
1091
1103
|
}
|
|
1092
|
-
switch (
|
|
1104
|
+
switch (A += Je(v), v * g) {
|
|
1093
1105
|
case 38:
|
|
1094
|
-
y = u > 0 ? 1 : (
|
|
1106
|
+
y = u > 0 ? 1 : (A += "\f", -1);
|
|
1095
1107
|
break;
|
|
1096
1108
|
case 44:
|
|
1097
|
-
a[l++] = (Y(
|
|
1109
|
+
a[l++] = (Y(A) - 1) * y, y = 1;
|
|
1098
1110
|
break;
|
|
1099
1111
|
case 64:
|
|
1100
|
-
X() === 45 && (
|
|
1112
|
+
X() === 45 && (A += Fe(K())), c = X(), u = h = Y(b = A += Wn(je())), v++;
|
|
1101
1113
|
break;
|
|
1102
1114
|
case 45:
|
|
1103
|
-
|
|
1115
|
+
w === 45 && Y(A) == 2 && (g = 0);
|
|
1104
1116
|
}
|
|
1105
1117
|
}
|
|
1106
1118
|
return o;
|
|
1107
1119
|
}
|
|
1108
|
-
function
|
|
1109
|
-
for (var h = r - 1, c = r === 0 ? o : [""], f =
|
|
1110
|
-
for (var y = 0,
|
|
1111
|
-
(b =
|
|
1112
|
-
return
|
|
1120
|
+
function Pt(t, e, i, n, r, o, s, a, d, l, u) {
|
|
1121
|
+
for (var h = r - 1, c = r === 0 ? o : [""], f = At(c), w = 0, g = 0, p = 0; w < n; ++w)
|
|
1122
|
+
for (var y = 0, v = ke(t, h + 1, h = jn(g = s[w])), b = t; y < f; ++y)
|
|
1123
|
+
(b = ai(g > 0 ? c[y] + " " + v : S(v, /&\f/g, c[y]))) && (d[p++] = b);
|
|
1124
|
+
return Xe(t, e, i, r === 0 ? pt : a, d, l, u);
|
|
1113
1125
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1126
|
+
function Yn(t, e, i) {
|
|
1127
|
+
return Xe(t, e, i, oi, Je(Gn()), ke(t, 2, -2), 0);
|
|
1116
1128
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1129
|
+
function Nt(t, e, i, n) {
|
|
1130
|
+
return Xe(t, e, i, bt, ke(t, 0, n), ke(t, n + 1, -1), n);
|
|
1119
1131
|
}
|
|
1120
|
-
function
|
|
1121
|
-
for (var i = "", n =
|
|
1132
|
+
function he(t, e) {
|
|
1133
|
+
for (var i = "", n = At(t), r = 0; r < n; r++)
|
|
1122
1134
|
i += e(t[r], r, t, e) || "";
|
|
1123
1135
|
return i;
|
|
1124
1136
|
}
|
|
1125
|
-
function
|
|
1137
|
+
function Xn(t, e, i, n) {
|
|
1126
1138
|
switch (t.type) {
|
|
1127
|
-
case
|
|
1139
|
+
case $n:
|
|
1128
1140
|
if (t.children.length)
|
|
1129
1141
|
break;
|
|
1130
|
-
case
|
|
1131
|
-
case
|
|
1142
|
+
case Mn:
|
|
1143
|
+
case bt:
|
|
1132
1144
|
return t.return = t.return || t.value;
|
|
1133
|
-
case
|
|
1145
|
+
case oi:
|
|
1134
1146
|
return "";
|
|
1135
|
-
case
|
|
1136
|
-
return t.return = t.value + "{" +
|
|
1137
|
-
case
|
|
1147
|
+
case si:
|
|
1148
|
+
return t.return = t.value + "{" + he(t.children, n) + "}";
|
|
1149
|
+
case pt:
|
|
1138
1150
|
t.value = t.props.join(",");
|
|
1139
1151
|
}
|
|
1140
|
-
return Y(i =
|
|
1152
|
+
return Y(i = he(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1141
1153
|
}
|
|
1142
|
-
function
|
|
1143
|
-
var e =
|
|
1154
|
+
function Qn(t) {
|
|
1155
|
+
var e = At(t);
|
|
1144
1156
|
return function(i, n, r, o) {
|
|
1145
1157
|
for (var s = "", a = 0; a < e; a++)
|
|
1146
1158
|
s += t[a](i, n, r, o) || "";
|
|
1147
1159
|
return s;
|
|
1148
1160
|
};
|
|
1149
1161
|
}
|
|
1150
|
-
function
|
|
1162
|
+
function Zn(t) {
|
|
1151
1163
|
return function(e) {
|
|
1152
1164
|
e.root || (e = e.return) && t(e);
|
|
1153
1165
|
};
|
|
1154
1166
|
}
|
|
1155
|
-
function
|
|
1167
|
+
function er(t) {
|
|
1156
1168
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1157
1169
|
return function(i) {
|
|
1158
1170
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1159
1171
|
};
|
|
1160
1172
|
}
|
|
1161
|
-
var
|
|
1162
|
-
for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !
|
|
1163
|
-
|
|
1164
|
-
return
|
|
1165
|
-
},
|
|
1173
|
+
var tr = function(e, i, n) {
|
|
1174
|
+
for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !Ie(o); )
|
|
1175
|
+
K();
|
|
1176
|
+
return Re(e, G);
|
|
1177
|
+
}, ir = function(e, i) {
|
|
1166
1178
|
var n = -1, r = 44;
|
|
1167
1179
|
do
|
|
1168
|
-
switch (
|
|
1180
|
+
switch (Ie(r)) {
|
|
1169
1181
|
case 0:
|
|
1170
|
-
r === 38 && X() === 12 && (i[n] = 1), e[n] +=
|
|
1182
|
+
r === 38 && X() === 12 && (i[n] = 1), e[n] += tr(G - 1, i, n);
|
|
1171
1183
|
break;
|
|
1172
1184
|
case 2:
|
|
1173
|
-
e[n] +=
|
|
1185
|
+
e[n] += Fe(r);
|
|
1174
1186
|
break;
|
|
1175
1187
|
case 4:
|
|
1176
1188
|
if (r === 44) {
|
|
@@ -1178,27 +1190,27 @@ var Wn = function(e, i, n) {
|
|
|
1178
1190
|
break;
|
|
1179
1191
|
}
|
|
1180
1192
|
default:
|
|
1181
|
-
e[n] +=
|
|
1193
|
+
e[n] += Je(r);
|
|
1182
1194
|
}
|
|
1183
|
-
while (r =
|
|
1195
|
+
while (r = K());
|
|
1184
1196
|
return e;
|
|
1185
|
-
},
|
|
1186
|
-
return
|
|
1187
|
-
},
|
|
1197
|
+
}, nr = function(e, i) {
|
|
1198
|
+
return ui(ir(li(e), i));
|
|
1199
|
+
}, Mt = /* @__PURE__ */ new WeakMap(), rr = function(e) {
|
|
1188
1200
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1189
1201
|
// negative .length indicates that this rule has been already prefixed
|
|
1190
1202
|
e.length < 1)) {
|
|
1191
1203
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1192
1204
|
if (n = n.parent, !n)
|
|
1193
1205
|
return;
|
|
1194
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1195
|
-
|
|
1196
|
-
for (var o = [], s =
|
|
1206
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Mt.get(n)) && !r) {
|
|
1207
|
+
Mt.set(e, !0);
|
|
1208
|
+
for (var o = [], s = nr(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1197
1209
|
for (var u = 0; u < a.length; u++, l++)
|
|
1198
1210
|
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
|
|
1199
1211
|
}
|
|
1200
1212
|
}
|
|
1201
|
-
},
|
|
1213
|
+
}, or = function(e) {
|
|
1202
1214
|
if (e.type === "decl") {
|
|
1203
1215
|
var i = e.value;
|
|
1204
1216
|
// charcode for l
|
|
@@ -1206,10 +1218,10 @@ var Wn = function(e, i, n) {
|
|
|
1206
1218
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1207
1219
|
}
|
|
1208
1220
|
};
|
|
1209
|
-
function
|
|
1210
|
-
switch (
|
|
1221
|
+
function ci(t, e) {
|
|
1222
|
+
switch (Un(t, e)) {
|
|
1211
1223
|
case 5103:
|
|
1212
|
-
return
|
|
1224
|
+
return m + "print-" + t + t;
|
|
1213
1225
|
case 5737:
|
|
1214
1226
|
case 4201:
|
|
1215
1227
|
case 3177:
|
|
@@ -1235,44 +1247,44 @@ function si(t, e) {
|
|
|
1235
1247
|
case 5365:
|
|
1236
1248
|
case 5621:
|
|
1237
1249
|
case 3829:
|
|
1238
|
-
return
|
|
1250
|
+
return m + t + t;
|
|
1239
1251
|
case 5349:
|
|
1240
1252
|
case 4246:
|
|
1241
1253
|
case 4810:
|
|
1242
1254
|
case 6968:
|
|
1243
1255
|
case 2756:
|
|
1244
|
-
return
|
|
1256
|
+
return m + t + qe + t + j + t + t;
|
|
1245
1257
|
case 6828:
|
|
1246
1258
|
case 4268:
|
|
1247
|
-
return
|
|
1259
|
+
return m + t + j + t + t;
|
|
1248
1260
|
case 6165:
|
|
1249
|
-
return
|
|
1261
|
+
return m + t + j + "flex-" + t + t;
|
|
1250
1262
|
case 5187:
|
|
1251
|
-
return
|
|
1263
|
+
return m + t + S(t, /(\w+).+(:[^]+)/, m + "box-$1$2" + j + "flex-$1$2") + t;
|
|
1252
1264
|
case 5443:
|
|
1253
|
-
return
|
|
1265
|
+
return m + t + j + "flex-item-" + S(t, /flex-|-self/, "") + t;
|
|
1254
1266
|
case 4675:
|
|
1255
|
-
return
|
|
1267
|
+
return m + t + j + "flex-line-pack" + S(t, /align-content|flex-|-self/, "") + t;
|
|
1256
1268
|
case 5548:
|
|
1257
|
-
return
|
|
1269
|
+
return m + t + j + S(t, "shrink", "negative") + t;
|
|
1258
1270
|
case 5292:
|
|
1259
|
-
return
|
|
1271
|
+
return m + t + j + S(t, "basis", "preferred-size") + t;
|
|
1260
1272
|
case 6060:
|
|
1261
|
-
return
|
|
1273
|
+
return m + "box-" + S(t, "-grow", "") + m + t + j + S(t, "grow", "positive") + t;
|
|
1262
1274
|
case 4554:
|
|
1263
|
-
return
|
|
1275
|
+
return m + S(t, /([^-])(transform)/g, "$1" + m + "$2") + t;
|
|
1264
1276
|
case 6187:
|
|
1265
|
-
return
|
|
1277
|
+
return S(S(S(t, /(zoom-|grab)/, m + "$1"), /(image-set)/, m + "$1"), t, "") + t;
|
|
1266
1278
|
case 5495:
|
|
1267
1279
|
case 3959:
|
|
1268
|
-
return
|
|
1280
|
+
return S(t, /(image-set\([^]*)/, m + "$1$`$1");
|
|
1269
1281
|
case 4968:
|
|
1270
|
-
return
|
|
1282
|
+
return S(S(t, /(.+:)(flex-)?(.*)/, m + "box-pack:$3" + j + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + m + t + t;
|
|
1271
1283
|
case 4095:
|
|
1272
1284
|
case 3583:
|
|
1273
1285
|
case 4068:
|
|
1274
1286
|
case 2532:
|
|
1275
|
-
return
|
|
1287
|
+
return S(t, /(.+)-inline(.+)/, m + "$1$2") + t;
|
|
1276
1288
|
case 8116:
|
|
1277
1289
|
case 7059:
|
|
1278
1290
|
case 5753:
|
|
@@ -1286,105 +1298,105 @@ function si(t, e) {
|
|
|
1286
1298
|
case 5021:
|
|
1287
1299
|
case 4765:
|
|
1288
1300
|
if (Y(t) - 1 - e > 6)
|
|
1289
|
-
switch (
|
|
1301
|
+
switch (N(t, e + 1)) {
|
|
1290
1302
|
case 109:
|
|
1291
|
-
if (
|
|
1303
|
+
if (N(t, e + 4) !== 45)
|
|
1292
1304
|
break;
|
|
1293
1305
|
case 102:
|
|
1294
|
-
return
|
|
1306
|
+
return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + qe + (N(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1295
1307
|
case 115:
|
|
1296
|
-
return ~
|
|
1308
|
+
return ~ct(t, "stretch") ? ci(S(t, "stretch", "fill-available"), e) + t : t;
|
|
1297
1309
|
}
|
|
1298
1310
|
break;
|
|
1299
1311
|
case 4949:
|
|
1300
|
-
if (
|
|
1312
|
+
if (N(t, e + 1) !== 115)
|
|
1301
1313
|
break;
|
|
1302
1314
|
case 6444:
|
|
1303
|
-
switch (
|
|
1315
|
+
switch (N(t, Y(t) - 3 - (~ct(t, "!important") && 10))) {
|
|
1304
1316
|
case 107:
|
|
1305
|
-
return
|
|
1317
|
+
return S(t, ":", ":" + m) + t;
|
|
1306
1318
|
case 101:
|
|
1307
|
-
return
|
|
1319
|
+
return S(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + m + (N(t, 14) === 45 ? "inline-" : "") + "box$3$1" + m + "$2$3$1" + j + "$2box$3") + t;
|
|
1308
1320
|
}
|
|
1309
1321
|
break;
|
|
1310
1322
|
case 5936:
|
|
1311
|
-
switch (
|
|
1323
|
+
switch (N(t, e + 11)) {
|
|
1312
1324
|
case 114:
|
|
1313
|
-
return
|
|
1325
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
1314
1326
|
case 108:
|
|
1315
|
-
return
|
|
1327
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
|
1316
1328
|
case 45:
|
|
1317
|
-
return
|
|
1329
|
+
return m + t + j + S(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
|
1318
1330
|
}
|
|
1319
|
-
return
|
|
1331
|
+
return m + t + j + t + t;
|
|
1320
1332
|
}
|
|
1321
1333
|
return t;
|
|
1322
1334
|
}
|
|
1323
|
-
var
|
|
1335
|
+
var sr = function(e, i, n, r) {
|
|
1324
1336
|
if (e.length > -1 && !e.return)
|
|
1325
1337
|
switch (e.type) {
|
|
1326
|
-
case
|
|
1327
|
-
e.return =
|
|
1338
|
+
case bt:
|
|
1339
|
+
e.return = ci(e.value, e.length);
|
|
1328
1340
|
break;
|
|
1329
|
-
case
|
|
1330
|
-
return
|
|
1331
|
-
value:
|
|
1341
|
+
case si:
|
|
1342
|
+
return he([_e(e, {
|
|
1343
|
+
value: S(e.value, "@", "@" + m)
|
|
1332
1344
|
})], r);
|
|
1333
|
-
case
|
|
1345
|
+
case pt:
|
|
1334
1346
|
if (e.length)
|
|
1335
|
-
return
|
|
1336
|
-
switch (
|
|
1347
|
+
return Vn(e.props, function(o) {
|
|
1348
|
+
switch (Bn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1337
1349
|
case ":read-only":
|
|
1338
1350
|
case ":read-write":
|
|
1339
|
-
return
|
|
1340
|
-
props: [
|
|
1351
|
+
return he([_e(e, {
|
|
1352
|
+
props: [S(o, /:(read-\w+)/, ":" + qe + "$1")]
|
|
1341
1353
|
})], r);
|
|
1342
1354
|
case "::placeholder":
|
|
1343
|
-
return
|
|
1344
|
-
props: [
|
|
1355
|
+
return he([_e(e, {
|
|
1356
|
+
props: [S(o, /:(plac\w+)/, ":" + m + "input-$1")]
|
|
1345
1357
|
}), _e(e, {
|
|
1346
|
-
props: [
|
|
1358
|
+
props: [S(o, /:(plac\w+)/, ":" + qe + "$1")]
|
|
1347
1359
|
}), _e(e, {
|
|
1348
|
-
props: [
|
|
1360
|
+
props: [S(o, /:(plac\w+)/, j + "input-$1")]
|
|
1349
1361
|
})], r);
|
|
1350
1362
|
}
|
|
1351
1363
|
return "";
|
|
1352
1364
|
});
|
|
1353
1365
|
}
|
|
1354
|
-
},
|
|
1366
|
+
}, ar = [sr], dr = function(e) {
|
|
1355
1367
|
var i = e.key;
|
|
1356
1368
|
if (i === "css") {
|
|
1357
1369
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1358
1370
|
Array.prototype.forEach.call(n, function(g) {
|
|
1359
|
-
var
|
|
1360
|
-
|
|
1371
|
+
var p = g.getAttribute("data-emotion");
|
|
1372
|
+
p.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
|
|
1361
1373
|
});
|
|
1362
1374
|
}
|
|
1363
|
-
var r = e.stylisPlugins ||
|
|
1375
|
+
var r = e.stylisPlugins || ar, o = {}, s, a = [];
|
|
1364
1376
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1365
1377
|
// this means we will ignore elements which don't have a space in them which
|
|
1366
1378
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1367
1379
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1368
1380
|
function(g) {
|
|
1369
|
-
for (var
|
|
1370
|
-
o[
|
|
1381
|
+
for (var p = g.getAttribute("data-emotion").split(" "), y = 1; y < p.length; y++)
|
|
1382
|
+
o[p[y]] = !0;
|
|
1371
1383
|
a.push(g);
|
|
1372
1384
|
}
|
|
1373
1385
|
);
|
|
1374
|
-
var d, l = [
|
|
1386
|
+
var d, l = [rr, or];
|
|
1375
1387
|
{
|
|
1376
|
-
var u, h = [
|
|
1388
|
+
var u, h = [Xn, Zn(function(g) {
|
|
1377
1389
|
u.insert(g);
|
|
1378
|
-
})], c =
|
|
1379
|
-
return
|
|
1390
|
+
})], c = Qn(l.concat(r, h)), f = function(p) {
|
|
1391
|
+
return he(Jn(p), c);
|
|
1380
1392
|
};
|
|
1381
|
-
d = function(
|
|
1382
|
-
u =
|
|
1393
|
+
d = function(p, y, v, b) {
|
|
1394
|
+
u = v, f(p ? p + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
|
|
1383
1395
|
};
|
|
1384
1396
|
}
|
|
1385
|
-
var
|
|
1397
|
+
var w = {
|
|
1386
1398
|
key: i,
|
|
1387
|
-
sheet: new
|
|
1399
|
+
sheet: new Nn({
|
|
1388
1400
|
key: i,
|
|
1389
1401
|
container: s,
|
|
1390
1402
|
nonce: e.nonce,
|
|
@@ -1397,9 +1409,9 @@ var Zn = function(e, i, n, r) {
|
|
|
1397
1409
|
registered: {},
|
|
1398
1410
|
insert: d
|
|
1399
1411
|
};
|
|
1400
|
-
return
|
|
1412
|
+
return w.sheet.hydrate(a), w;
|
|
1401
1413
|
};
|
|
1402
|
-
function
|
|
1414
|
+
function lr(t) {
|
|
1403
1415
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1404
1416
|
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): */
|
|
1405
1417
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1418,7 +1430,7 @@ function ir(t) {
|
|
|
1418
1430
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1419
1431
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1420
1432
|
}
|
|
1421
|
-
var
|
|
1433
|
+
var ur = {
|
|
1422
1434
|
animationIterationCount: 1,
|
|
1423
1435
|
aspectRatio: 1,
|
|
1424
1436
|
borderImageOutset: 1,
|
|
@@ -1467,18 +1479,18 @@ var nr = {
|
|
|
1467
1479
|
strokeMiterlimit: 1,
|
|
1468
1480
|
strokeOpacity: 1,
|
|
1469
1481
|
strokeWidth: 1
|
|
1470
|
-
},
|
|
1482
|
+
}, cr = /[A-Z]|^ms/g, hr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, hi = function(e) {
|
|
1471
1483
|
return e.charCodeAt(1) === 45;
|
|
1472
|
-
},
|
|
1484
|
+
}, $t = function(e) {
|
|
1473
1485
|
return e != null && typeof e != "boolean";
|
|
1474
|
-
},
|
|
1475
|
-
return
|
|
1476
|
-
}),
|
|
1486
|
+
}, et = /* @__PURE__ */ er(function(t) {
|
|
1487
|
+
return hi(t) ? t : t.replace(cr, "-$&").toLowerCase();
|
|
1488
|
+
}), jt = function(e, i) {
|
|
1477
1489
|
switch (e) {
|
|
1478
1490
|
case "animation":
|
|
1479
1491
|
case "animationName":
|
|
1480
1492
|
if (typeof i == "string")
|
|
1481
|
-
return i.replace(
|
|
1493
|
+
return i.replace(hr, function(n, r, o) {
|
|
1482
1494
|
return ne = {
|
|
1483
1495
|
name: r,
|
|
1484
1496
|
styles: o,
|
|
@@ -1486,9 +1498,9 @@ var nr = {
|
|
|
1486
1498
|
}, r;
|
|
1487
1499
|
});
|
|
1488
1500
|
}
|
|
1489
|
-
return
|
|
1501
|
+
return ur[e] !== 1 && !hi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1490
1502
|
};
|
|
1491
|
-
function
|
|
1503
|
+
function Ke(t, e, i) {
|
|
1492
1504
|
if (i == null)
|
|
1493
1505
|
return "";
|
|
1494
1506
|
var n = i;
|
|
@@ -1518,7 +1530,7 @@ function Be(t, e, i) {
|
|
|
1518
1530
|
var a = o.styles + ";";
|
|
1519
1531
|
return a;
|
|
1520
1532
|
}
|
|
1521
|
-
return
|
|
1533
|
+
return fr(t, e, i);
|
|
1522
1534
|
}
|
|
1523
1535
|
}
|
|
1524
1536
|
var d = i;
|
|
@@ -1527,26 +1539,26 @@ function Be(t, e, i) {
|
|
|
1527
1539
|
var l = e[d];
|
|
1528
1540
|
return l !== void 0 ? l : d;
|
|
1529
1541
|
}
|
|
1530
|
-
function
|
|
1542
|
+
function fr(t, e, i) {
|
|
1531
1543
|
var n = "";
|
|
1532
1544
|
if (Array.isArray(i))
|
|
1533
1545
|
for (var r = 0; r < i.length; r++)
|
|
1534
|
-
n +=
|
|
1546
|
+
n += Ke(t, e, i[r]) + ";";
|
|
1535
1547
|
else
|
|
1536
1548
|
for (var o in i) {
|
|
1537
1549
|
var s = i[o];
|
|
1538
1550
|
if (typeof s != "object") {
|
|
1539
1551
|
var a = s;
|
|
1540
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1552
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : $t(a) && (n += et(o) + ":" + jt(o, a) + ";");
|
|
1541
1553
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1542
1554
|
for (var d = 0; d < s.length; d++)
|
|
1543
|
-
|
|
1555
|
+
$t(s[d]) && (n += et(o) + ":" + jt(o, s[d]) + ";");
|
|
1544
1556
|
else {
|
|
1545
|
-
var l =
|
|
1557
|
+
var l = Ke(t, e, s);
|
|
1546
1558
|
switch (o) {
|
|
1547
1559
|
case "animation":
|
|
1548
1560
|
case "animationName": {
|
|
1549
|
-
n +=
|
|
1561
|
+
n += et(o) + ":" + l + ";";
|
|
1550
1562
|
break;
|
|
1551
1563
|
}
|
|
1552
1564
|
default:
|
|
@@ -1556,41 +1568,41 @@ function sr(t, e, i) {
|
|
|
1556
1568
|
}
|
|
1557
1569
|
return n;
|
|
1558
1570
|
}
|
|
1559
|
-
var
|
|
1560
|
-
function
|
|
1571
|
+
var Ft = /label:\s*([^\s;{]+)\s*(;|$)/g, ne;
|
|
1572
|
+
function tt(t, e, i) {
|
|
1561
1573
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1562
1574
|
return t[0];
|
|
1563
1575
|
var n = !0, r = "";
|
|
1564
1576
|
ne = void 0;
|
|
1565
1577
|
var o = t[0];
|
|
1566
1578
|
if (o == null || o.raw === void 0)
|
|
1567
|
-
n = !1, r +=
|
|
1579
|
+
n = !1, r += Ke(i, e, o);
|
|
1568
1580
|
else {
|
|
1569
1581
|
var s = o;
|
|
1570
1582
|
r += s[0];
|
|
1571
1583
|
}
|
|
1572
1584
|
for (var a = 1; a < t.length; a++)
|
|
1573
|
-
if (r +=
|
|
1585
|
+
if (r += Ke(i, e, t[a]), n) {
|
|
1574
1586
|
var d = o;
|
|
1575
1587
|
r += d[a];
|
|
1576
1588
|
}
|
|
1577
|
-
|
|
1578
|
-
for (var l = "", u; (u =
|
|
1589
|
+
Ft.lastIndex = 0;
|
|
1590
|
+
for (var l = "", u; (u = Ft.exec(r)) !== null; )
|
|
1579
1591
|
l += "-" + u[1];
|
|
1580
|
-
var h =
|
|
1592
|
+
var h = lr(r) + l;
|
|
1581
1593
|
return {
|
|
1582
1594
|
name: h,
|
|
1583
1595
|
styles: r,
|
|
1584
1596
|
next: ne
|
|
1585
1597
|
};
|
|
1586
1598
|
}
|
|
1587
|
-
function
|
|
1599
|
+
function fi(t, e, i) {
|
|
1588
1600
|
var n = "";
|
|
1589
1601
|
return i.split(" ").forEach(function(r) {
|
|
1590
1602
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1591
1603
|
}), n;
|
|
1592
1604
|
}
|
|
1593
|
-
var
|
|
1605
|
+
var vr = function(e, i, n) {
|
|
1594
1606
|
var r = e.key + "-" + i.name;
|
|
1595
1607
|
// we only need to add the styles to the registered cache if the
|
|
1596
1608
|
// class name could be used further down
|
|
@@ -1598,8 +1610,8 @@ var ar = function(e, i, n) {
|
|
|
1598
1610
|
// so we don't have to add it to registered cache.
|
|
1599
1611
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1600
1612
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1601
|
-
},
|
|
1602
|
-
|
|
1613
|
+
}, gr = function(e, i, n) {
|
|
1614
|
+
vr(e, i);
|
|
1603
1615
|
var r = e.key + "-" + i.name;
|
|
1604
1616
|
if (e.inserted[i.name] === void 0) {
|
|
1605
1617
|
var o = i;
|
|
@@ -1608,41 +1620,41 @@ var ar = function(e, i, n) {
|
|
|
1608
1620
|
while (o !== void 0);
|
|
1609
1621
|
}
|
|
1610
1622
|
};
|
|
1611
|
-
function
|
|
1623
|
+
function Ut(t, e) {
|
|
1612
1624
|
if (t.inserted[e.name] === void 0)
|
|
1613
1625
|
return t.insert("", e, t.sheet, !0);
|
|
1614
1626
|
}
|
|
1615
|
-
function
|
|
1616
|
-
var n = [], r =
|
|
1627
|
+
function Bt(t, e, i) {
|
|
1628
|
+
var n = [], r = fi(t, n, i);
|
|
1617
1629
|
return n.length < 2 ? i : r + e(n);
|
|
1618
1630
|
}
|
|
1619
|
-
var
|
|
1620
|
-
var i =
|
|
1631
|
+
var yr = function(e) {
|
|
1632
|
+
var i = dr(e);
|
|
1621
1633
|
i.sheet.speedy = function(a) {
|
|
1622
1634
|
this.isSpeedy = a;
|
|
1623
1635
|
}, i.compat = !0;
|
|
1624
1636
|
var n = function() {
|
|
1625
1637
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1626
1638
|
l[u] = arguments[u];
|
|
1627
|
-
var h =
|
|
1628
|
-
return
|
|
1639
|
+
var h = tt(l, i.registered, void 0);
|
|
1640
|
+
return gr(i, h), i.key + "-" + h.name;
|
|
1629
1641
|
}, r = function() {
|
|
1630
1642
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1631
1643
|
l[u] = arguments[u];
|
|
1632
|
-
var h =
|
|
1633
|
-
return
|
|
1644
|
+
var h = tt(l, i.registered), c = "animation-" + h.name;
|
|
1645
|
+
return Ut(i, {
|
|
1634
1646
|
name: h.name,
|
|
1635
1647
|
styles: "@keyframes " + c + "{" + h.styles + "}"
|
|
1636
1648
|
}), c;
|
|
1637
1649
|
}, o = function() {
|
|
1638
1650
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1639
1651
|
l[u] = arguments[u];
|
|
1640
|
-
var h =
|
|
1641
|
-
|
|
1652
|
+
var h = tt(l, i.registered);
|
|
1653
|
+
Ut(i, h);
|
|
1642
1654
|
}, s = function() {
|
|
1643
1655
|
for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
|
|
1644
1656
|
l[u] = arguments[u];
|
|
1645
|
-
return
|
|
1657
|
+
return Bt(i.registered, n, wr(l));
|
|
1646
1658
|
};
|
|
1647
1659
|
return {
|
|
1648
1660
|
css: n,
|
|
@@ -1659,10 +1671,10 @@ var lr = function(e) {
|
|
|
1659
1671
|
},
|
|
1660
1672
|
sheet: i.sheet,
|
|
1661
1673
|
cache: i,
|
|
1662
|
-
getRegisteredStyles:
|
|
1663
|
-
merge:
|
|
1674
|
+
getRegisteredStyles: fi.bind(null, i.registered),
|
|
1675
|
+
merge: Bt.bind(null, i.registered, n)
|
|
1664
1676
|
};
|
|
1665
|
-
},
|
|
1677
|
+
}, wr = function t(e) {
|
|
1666
1678
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1667
1679
|
var r = e[n];
|
|
1668
1680
|
if (r != null) {
|
|
@@ -1687,96 +1699,96 @@ var lr = function(e) {
|
|
|
1687
1699
|
}
|
|
1688
1700
|
}
|
|
1689
1701
|
return i;
|
|
1690
|
-
},
|
|
1702
|
+
}, pr = yr({
|
|
1691
1703
|
key: "css"
|
|
1692
|
-
}),
|
|
1693
|
-
function
|
|
1694
|
-
|
|
1695
|
-
var i =
|
|
1704
|
+
}), ye = pr.css, ft, q, it, Vt, Gt = 0, vi = [], L = fe, qt = L.__b, Kt = L.__r, zt = L.diffed, Ht = L.__c, Wt = L.unmount, Jt = L.__;
|
|
1705
|
+
function br(t, e) {
|
|
1706
|
+
L.__h && L.__h(q, t, Gt || e), Gt = 0;
|
|
1707
|
+
var i = q.__H || (q.__H = { __: [], __h: [] });
|
|
1696
1708
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1697
1709
|
}
|
|
1698
|
-
function
|
|
1699
|
-
var i =
|
|
1700
|
-
return
|
|
1710
|
+
function gi(t, e) {
|
|
1711
|
+
var i = br(ft++, 7);
|
|
1712
|
+
return mr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1701
1713
|
}
|
|
1702
|
-
function
|
|
1703
|
-
for (var t; t =
|
|
1714
|
+
function Ar() {
|
|
1715
|
+
for (var t; t = vi.shift(); )
|
|
1704
1716
|
if (t.__P && t.__H)
|
|
1705
1717
|
try {
|
|
1706
|
-
t.__H.__h.forEach(
|
|
1718
|
+
t.__H.__h.forEach(Be), t.__H.__h.forEach(vt), t.__H.__h = [];
|
|
1707
1719
|
} catch (e) {
|
|
1708
|
-
t.__H.__h = [],
|
|
1720
|
+
t.__H.__h = [], L.__e(e, t.__v);
|
|
1709
1721
|
}
|
|
1710
1722
|
}
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
},
|
|
1714
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1715
|
-
},
|
|
1716
|
-
|
|
1717
|
-
var e = (
|
|
1718
|
-
e && (
|
|
1723
|
+
L.__b = function(t) {
|
|
1724
|
+
q = null, qt && qt(t);
|
|
1725
|
+
}, L.__ = function(t, e) {
|
|
1726
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Jt && Jt(t, e);
|
|
1727
|
+
}, L.__r = function(t) {
|
|
1728
|
+
Kt && Kt(t), ft = 0;
|
|
1729
|
+
var e = (q = t.__c).__H;
|
|
1730
|
+
e && (it === q ? (e.__h = [], q.__h = [], e.__.forEach(function(i) {
|
|
1719
1731
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1720
|
-
})) : (e.__h.forEach(
|
|
1721
|
-
},
|
|
1722
|
-
|
|
1732
|
+
})) : (e.__h.forEach(Be), e.__h.forEach(vt), e.__h = [], ft = 0)), it = q;
|
|
1733
|
+
}, L.diffed = function(t) {
|
|
1734
|
+
zt && zt(t);
|
|
1723
1735
|
var e = t.__c;
|
|
1724
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1736
|
+
e && e.__H && (e.__H.__h.length && (vi.push(e) !== 1 && Vt === L.requestAnimationFrame || ((Vt = L.requestAnimationFrame) || _r)(Ar)), e.__H.__.forEach(function(i) {
|
|
1725
1737
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1726
|
-
})),
|
|
1727
|
-
},
|
|
1738
|
+
})), it = q = null;
|
|
1739
|
+
}, L.__c = function(t, e) {
|
|
1728
1740
|
e.some(function(i) {
|
|
1729
1741
|
try {
|
|
1730
|
-
i.__h.forEach(
|
|
1731
|
-
return !n.__ ||
|
|
1742
|
+
i.__h.forEach(Be), i.__h = i.__h.filter(function(n) {
|
|
1743
|
+
return !n.__ || vt(n);
|
|
1732
1744
|
});
|
|
1733
1745
|
} catch (n) {
|
|
1734
1746
|
e.some(function(r) {
|
|
1735
1747
|
r.__h && (r.__h = []);
|
|
1736
|
-
}), e = [],
|
|
1748
|
+
}), e = [], L.__e(n, i.__v);
|
|
1737
1749
|
}
|
|
1738
|
-
}),
|
|
1739
|
-
},
|
|
1740
|
-
|
|
1750
|
+
}), Ht && Ht(t, e);
|
|
1751
|
+
}, L.unmount = function(t) {
|
|
1752
|
+
Wt && Wt(t);
|
|
1741
1753
|
var e, i = t.__c;
|
|
1742
1754
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1743
1755
|
try {
|
|
1744
|
-
|
|
1756
|
+
Be(n);
|
|
1745
1757
|
} catch (r) {
|
|
1746
1758
|
e = r;
|
|
1747
1759
|
}
|
|
1748
|
-
}), i.__H = void 0, e &&
|
|
1760
|
+
}), i.__H = void 0, e && L.__e(e, i.__v));
|
|
1749
1761
|
};
|
|
1750
|
-
var
|
|
1751
|
-
function
|
|
1762
|
+
var Yt = typeof requestAnimationFrame == "function";
|
|
1763
|
+
function _r(t) {
|
|
1752
1764
|
var e, i = function() {
|
|
1753
|
-
clearTimeout(n),
|
|
1765
|
+
clearTimeout(n), Yt && cancelAnimationFrame(e), setTimeout(t);
|
|
1754
1766
|
}, n = setTimeout(i, 100);
|
|
1755
|
-
|
|
1767
|
+
Yt && (e = requestAnimationFrame(i));
|
|
1756
1768
|
}
|
|
1757
|
-
function
|
|
1758
|
-
var e =
|
|
1759
|
-
typeof i == "function" && (t.__c = void 0, i()),
|
|
1769
|
+
function Be(t) {
|
|
1770
|
+
var e = q, i = t.__c;
|
|
1771
|
+
typeof i == "function" && (t.__c = void 0, i()), q = e;
|
|
1760
1772
|
}
|
|
1761
|
-
function
|
|
1762
|
-
var e =
|
|
1763
|
-
t.__c = t.__(),
|
|
1773
|
+
function vt(t) {
|
|
1774
|
+
var e = q;
|
|
1775
|
+
t.__c = t.__(), q = e;
|
|
1764
1776
|
}
|
|
1765
|
-
function
|
|
1777
|
+
function mr(t, e) {
|
|
1766
1778
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1767
1779
|
return i !== t[n];
|
|
1768
1780
|
});
|
|
1769
1781
|
}
|
|
1770
|
-
var
|
|
1771
|
-
function
|
|
1782
|
+
var Sr = Symbol.for("preact-signals");
|
|
1783
|
+
function Qe() {
|
|
1772
1784
|
if (re > 1)
|
|
1773
1785
|
re--;
|
|
1774
1786
|
else {
|
|
1775
|
-
for (var t, e = !1;
|
|
1776
|
-
var i =
|
|
1777
|
-
for (
|
|
1787
|
+
for (var t, e = !1; me !== void 0; ) {
|
|
1788
|
+
var i = me;
|
|
1789
|
+
for (me = void 0, gt++; i !== void 0; ) {
|
|
1778
1790
|
var n = i.o;
|
|
1779
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1791
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && wi(i))
|
|
1780
1792
|
try {
|
|
1781
1793
|
i.c();
|
|
1782
1794
|
} catch (r) {
|
|
@@ -1785,22 +1797,22 @@ function We() {
|
|
|
1785
1797
|
i = n;
|
|
1786
1798
|
}
|
|
1787
1799
|
}
|
|
1788
|
-
if (
|
|
1800
|
+
if (gt = 0, re--, e)
|
|
1789
1801
|
throw t;
|
|
1790
1802
|
}
|
|
1791
1803
|
}
|
|
1792
|
-
function
|
|
1804
|
+
function D(t) {
|
|
1793
1805
|
if (re > 0)
|
|
1794
1806
|
return t();
|
|
1795
1807
|
re++;
|
|
1796
1808
|
try {
|
|
1797
1809
|
return t();
|
|
1798
1810
|
} finally {
|
|
1799
|
-
|
|
1811
|
+
Qe();
|
|
1800
1812
|
}
|
|
1801
1813
|
}
|
|
1802
|
-
var k = void 0,
|
|
1803
|
-
function
|
|
1814
|
+
var k = void 0, me = void 0, re = 0, gt = 0, ze = 0;
|
|
1815
|
+
function yi(t) {
|
|
1804
1816
|
if (k !== void 0) {
|
|
1805
1817
|
var e = t.n;
|
|
1806
1818
|
if (e === void 0 || e.t !== k)
|
|
@@ -1809,25 +1821,25 @@ function ci(t) {
|
|
|
1809
1821
|
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;
|
|
1810
1822
|
}
|
|
1811
1823
|
}
|
|
1812
|
-
function
|
|
1824
|
+
function M(t) {
|
|
1813
1825
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1814
1826
|
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1827
|
+
M.prototype.brand = Sr;
|
|
1828
|
+
M.prototype.h = function() {
|
|
1817
1829
|
return !0;
|
|
1818
1830
|
};
|
|
1819
|
-
|
|
1831
|
+
M.prototype.S = function(t) {
|
|
1820
1832
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1821
1833
|
};
|
|
1822
|
-
|
|
1834
|
+
M.prototype.U = function(t) {
|
|
1823
1835
|
if (this.t !== void 0) {
|
|
1824
1836
|
var e = t.e, i = t.x;
|
|
1825
1837
|
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);
|
|
1826
1838
|
}
|
|
1827
1839
|
};
|
|
1828
|
-
|
|
1840
|
+
M.prototype.subscribe = function(t) {
|
|
1829
1841
|
var e = this;
|
|
1830
|
-
return
|
|
1842
|
+
return Oe(function() {
|
|
1831
1843
|
var i = e.value, n = k;
|
|
1832
1844
|
k = void 0;
|
|
1833
1845
|
try {
|
|
@@ -1837,16 +1849,16 @@ L.prototype.subscribe = function(t) {
|
|
|
1837
1849
|
}
|
|
1838
1850
|
});
|
|
1839
1851
|
};
|
|
1840
|
-
|
|
1852
|
+
M.prototype.valueOf = function() {
|
|
1841
1853
|
return this.value;
|
|
1842
1854
|
};
|
|
1843
|
-
|
|
1855
|
+
M.prototype.toString = function() {
|
|
1844
1856
|
return this.value + "";
|
|
1845
1857
|
};
|
|
1846
|
-
|
|
1858
|
+
M.prototype.toJSON = function() {
|
|
1847
1859
|
return this.value;
|
|
1848
1860
|
};
|
|
1849
|
-
|
|
1861
|
+
M.prototype.peek = function() {
|
|
1850
1862
|
var t = k;
|
|
1851
1863
|
k = void 0;
|
|
1852
1864
|
try {
|
|
@@ -1855,32 +1867,32 @@ L.prototype.peek = function() {
|
|
|
1855
1867
|
k = t;
|
|
1856
1868
|
}
|
|
1857
1869
|
};
|
|
1858
|
-
Object.defineProperty(
|
|
1859
|
-
var t =
|
|
1870
|
+
Object.defineProperty(M.prototype, "value", { get: function() {
|
|
1871
|
+
var t = yi(this);
|
|
1860
1872
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1861
1873
|
}, set: function(t) {
|
|
1862
1874
|
if (t !== this.v) {
|
|
1863
|
-
if (
|
|
1875
|
+
if (gt > 100)
|
|
1864
1876
|
throw new Error("Cycle detected");
|
|
1865
|
-
this.v = t, this.i++,
|
|
1877
|
+
this.v = t, this.i++, ze++, re++;
|
|
1866
1878
|
try {
|
|
1867
1879
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1868
1880
|
e.t.N();
|
|
1869
1881
|
} finally {
|
|
1870
|
-
|
|
1882
|
+
Qe();
|
|
1871
1883
|
}
|
|
1872
1884
|
}
|
|
1873
1885
|
} });
|
|
1874
|
-
function
|
|
1875
|
-
return new
|
|
1886
|
+
function E(t) {
|
|
1887
|
+
return new M(t);
|
|
1876
1888
|
}
|
|
1877
|
-
function
|
|
1889
|
+
function wi(t) {
|
|
1878
1890
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1879
1891
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1880
1892
|
return !0;
|
|
1881
1893
|
return !1;
|
|
1882
1894
|
}
|
|
1883
|
-
function
|
|
1895
|
+
function pi(t) {
|
|
1884
1896
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1885
1897
|
var i = e.S.n;
|
|
1886
1898
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1889,67 +1901,67 @@ function fi(t) {
|
|
|
1889
1901
|
}
|
|
1890
1902
|
}
|
|
1891
1903
|
}
|
|
1892
|
-
function
|
|
1904
|
+
function bi(t) {
|
|
1893
1905
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1894
1906
|
var n = e.p;
|
|
1895
1907
|
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;
|
|
1896
1908
|
}
|
|
1897
1909
|
t.s = i;
|
|
1898
1910
|
}
|
|
1899
|
-
function
|
|
1900
|
-
|
|
1911
|
+
function we(t) {
|
|
1912
|
+
M.call(this, void 0), this.x = t, this.s = void 0, this.g = ze - 1, this.f = 4;
|
|
1901
1913
|
}
|
|
1902
|
-
(
|
|
1914
|
+
(we.prototype = new M()).h = function() {
|
|
1903
1915
|
if (this.f &= -3, 1 & this.f)
|
|
1904
1916
|
return !1;
|
|
1905
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1917
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === ze))
|
|
1906
1918
|
return !0;
|
|
1907
|
-
if (this.g =
|
|
1919
|
+
if (this.g = ze, this.f |= 1, this.i > 0 && !wi(this))
|
|
1908
1920
|
return this.f &= -2, !0;
|
|
1909
1921
|
var t = k;
|
|
1910
1922
|
try {
|
|
1911
|
-
|
|
1923
|
+
pi(this), k = this;
|
|
1912
1924
|
var e = this.x();
|
|
1913
1925
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1914
1926
|
} catch (i) {
|
|
1915
1927
|
this.v = i, this.f |= 16, this.i++;
|
|
1916
1928
|
}
|
|
1917
|
-
return k = t,
|
|
1929
|
+
return k = t, bi(this), this.f &= -2, !0;
|
|
1918
1930
|
};
|
|
1919
|
-
|
|
1931
|
+
we.prototype.S = function(t) {
|
|
1920
1932
|
if (this.t === void 0) {
|
|
1921
1933
|
this.f |= 36;
|
|
1922
1934
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1923
1935
|
e.S.S(e);
|
|
1924
1936
|
}
|
|
1925
|
-
|
|
1937
|
+
M.prototype.S.call(this, t);
|
|
1926
1938
|
};
|
|
1927
|
-
|
|
1928
|
-
if (this.t !== void 0 && (
|
|
1939
|
+
we.prototype.U = function(t) {
|
|
1940
|
+
if (this.t !== void 0 && (M.prototype.U.call(this, t), this.t === void 0)) {
|
|
1929
1941
|
this.f &= -33;
|
|
1930
1942
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1931
1943
|
e.S.U(e);
|
|
1932
1944
|
}
|
|
1933
1945
|
};
|
|
1934
|
-
|
|
1946
|
+
we.prototype.N = function() {
|
|
1935
1947
|
if (!(2 & this.f)) {
|
|
1936
1948
|
this.f |= 6;
|
|
1937
1949
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
1938
1950
|
t.t.N();
|
|
1939
1951
|
}
|
|
1940
1952
|
};
|
|
1941
|
-
Object.defineProperty(
|
|
1953
|
+
Object.defineProperty(we.prototype, "value", { get: function() {
|
|
1942
1954
|
if (1 & this.f)
|
|
1943
1955
|
throw new Error("Cycle detected");
|
|
1944
|
-
var t =
|
|
1956
|
+
var t = yi(this);
|
|
1945
1957
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
1946
1958
|
throw this.v;
|
|
1947
1959
|
return this.v;
|
|
1948
1960
|
} });
|
|
1949
|
-
function
|
|
1950
|
-
return new
|
|
1961
|
+
function Se(t) {
|
|
1962
|
+
return new we(t);
|
|
1951
1963
|
}
|
|
1952
|
-
function
|
|
1964
|
+
function Ai(t) {
|
|
1953
1965
|
var e = t.u;
|
|
1954
1966
|
if (t.u = void 0, typeof e == "function") {
|
|
1955
1967
|
re++;
|
|
@@ -1958,26 +1970,26 @@ function gi(t) {
|
|
|
1958
1970
|
try {
|
|
1959
1971
|
e();
|
|
1960
1972
|
} catch (n) {
|
|
1961
|
-
throw t.f &= -2, t.f |= 8,
|
|
1973
|
+
throw t.f &= -2, t.f |= 8, _t(t), n;
|
|
1962
1974
|
} finally {
|
|
1963
|
-
k = i,
|
|
1975
|
+
k = i, Qe();
|
|
1964
1976
|
}
|
|
1965
1977
|
}
|
|
1966
1978
|
}
|
|
1967
|
-
function
|
|
1979
|
+
function _t(t) {
|
|
1968
1980
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1969
1981
|
e.S.U(e);
|
|
1970
|
-
t.x = void 0, t.s = void 0,
|
|
1982
|
+
t.x = void 0, t.s = void 0, Ai(t);
|
|
1971
1983
|
}
|
|
1972
|
-
function
|
|
1984
|
+
function Er(t) {
|
|
1973
1985
|
if (k !== this)
|
|
1974
1986
|
throw new Error("Out-of-order effect");
|
|
1975
|
-
|
|
1987
|
+
bi(this), k = t, this.f &= -2, 8 & this.f && _t(this), Qe();
|
|
1976
1988
|
}
|
|
1977
|
-
function
|
|
1989
|
+
function xe(t) {
|
|
1978
1990
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
1979
1991
|
}
|
|
1980
|
-
|
|
1992
|
+
xe.prototype.c = function() {
|
|
1981
1993
|
var t = this.S();
|
|
1982
1994
|
try {
|
|
1983
1995
|
if (8 & this.f || this.x === void 0)
|
|
@@ -1988,21 +2000,21 @@ Re.prototype.c = function() {
|
|
|
1988
2000
|
t();
|
|
1989
2001
|
}
|
|
1990
2002
|
};
|
|
1991
|
-
|
|
2003
|
+
xe.prototype.S = function() {
|
|
1992
2004
|
if (1 & this.f)
|
|
1993
2005
|
throw new Error("Cycle detected");
|
|
1994
|
-
this.f |= 1, this.f &= -9,
|
|
2006
|
+
this.f |= 1, this.f &= -9, Ai(this), pi(this), re++;
|
|
1995
2007
|
var t = k;
|
|
1996
|
-
return k = this,
|
|
2008
|
+
return k = this, Er.bind(this, t);
|
|
1997
2009
|
};
|
|
1998
|
-
|
|
1999
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2010
|
+
xe.prototype.N = function() {
|
|
2011
|
+
2 & this.f || (this.f |= 2, this.o = me, me = this);
|
|
2000
2012
|
};
|
|
2001
|
-
|
|
2002
|
-
this.f |= 8, 1 & this.f ||
|
|
2013
|
+
xe.prototype.d = function() {
|
|
2014
|
+
this.f |= 8, 1 & this.f || _t(this);
|
|
2003
2015
|
};
|
|
2004
|
-
function
|
|
2005
|
-
var e = new
|
|
2016
|
+
function Oe(t) {
|
|
2017
|
+
var e = new xe(t);
|
|
2006
2018
|
try {
|
|
2007
2019
|
e.c();
|
|
2008
2020
|
} catch (i) {
|
|
@@ -2010,33 +2022,33 @@ function xe(t) {
|
|
|
2010
2022
|
}
|
|
2011
2023
|
return e.d.bind(e);
|
|
2012
2024
|
}
|
|
2013
|
-
var
|
|
2014
|
-
|
|
2015
|
-
|
|
2025
|
+
var _i, nt, mi = [];
|
|
2026
|
+
Oe(function() {
|
|
2027
|
+
_i = this.N;
|
|
2016
2028
|
})();
|
|
2017
2029
|
function pe(t, e) {
|
|
2018
|
-
|
|
2030
|
+
fe[t] = e.bind(null, fe[t] || function() {
|
|
2019
2031
|
});
|
|
2020
2032
|
}
|
|
2021
|
-
function
|
|
2022
|
-
|
|
2033
|
+
function He(t) {
|
|
2034
|
+
nt && nt(), nt = t && t.S();
|
|
2023
2035
|
}
|
|
2024
|
-
function
|
|
2025
|
-
var e = this, i = t.data, n =
|
|
2036
|
+
function Si(t) {
|
|
2037
|
+
var e = this, i = t.data, n = Ei(i);
|
|
2026
2038
|
n.value = i;
|
|
2027
|
-
var r =
|
|
2039
|
+
var r = gi(function() {
|
|
2028
2040
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2029
2041
|
if (d.__c) {
|
|
2030
2042
|
d.__c.__$f |= 4;
|
|
2031
2043
|
break;
|
|
2032
2044
|
}
|
|
2033
|
-
var l =
|
|
2045
|
+
var l = Se(function() {
|
|
2034
2046
|
var f = n.value.value;
|
|
2035
2047
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2036
|
-
}), u =
|
|
2037
|
-
return !Array.isArray(l.value) && !
|
|
2038
|
-
}), h =
|
|
2039
|
-
if (this.N =
|
|
2048
|
+
}), u = Se(function() {
|
|
2049
|
+
return !Array.isArray(l.value) && !ji(l.value);
|
|
2050
|
+
}), h = Oe(function() {
|
|
2051
|
+
if (this.N = ki, u.value) {
|
|
2040
2052
|
var f = l.value;
|
|
2041
2053
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2042
2054
|
}
|
|
@@ -2047,8 +2059,8 @@ function wi(t) {
|
|
|
2047
2059
|
}, []), o = r[0], s = r[1];
|
|
2048
2060
|
return o.value ? s.peek() : s.value;
|
|
2049
2061
|
}
|
|
2050
|
-
|
|
2051
|
-
Object.defineProperties(
|
|
2062
|
+
Si.displayName = "_st";
|
|
2063
|
+
Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Si }, props: { configurable: !0, get: function() {
|
|
2052
2064
|
return { data: this };
|
|
2053
2065
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2054
2066
|
pe("__b", function(t, e) {
|
|
@@ -2057,28 +2069,28 @@ pe("__b", function(t, e) {
|
|
|
2057
2069
|
for (var r in n)
|
|
2058
2070
|
if (r !== "children") {
|
|
2059
2071
|
var o = n[r];
|
|
2060
|
-
o instanceof
|
|
2072
|
+
o instanceof M && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
|
|
2061
2073
|
}
|
|
2062
2074
|
}
|
|
2063
2075
|
t(e);
|
|
2064
2076
|
});
|
|
2065
2077
|
pe("__r", function(t, e) {
|
|
2066
|
-
|
|
2078
|
+
He();
|
|
2067
2079
|
var i, n = e.__c;
|
|
2068
2080
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2069
2081
|
var o;
|
|
2070
|
-
return
|
|
2082
|
+
return Oe(function() {
|
|
2071
2083
|
o = this;
|
|
2072
2084
|
}), o.c = function() {
|
|
2073
2085
|
n.__$f |= 1, n.setState({});
|
|
2074
2086
|
}, o;
|
|
2075
|
-
}())),
|
|
2087
|
+
}())), He(i), t(e);
|
|
2076
2088
|
});
|
|
2077
2089
|
pe("__e", function(t, e, i, n) {
|
|
2078
|
-
|
|
2090
|
+
He(), t(e, i, n);
|
|
2079
2091
|
});
|
|
2080
2092
|
pe("diffed", function(t, e) {
|
|
2081
|
-
|
|
2093
|
+
He();
|
|
2082
2094
|
var i;
|
|
2083
2095
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2084
2096
|
var n = e.__np, r = e.props;
|
|
@@ -2093,18 +2105,18 @@ pe("diffed", function(t, e) {
|
|
|
2093
2105
|
o = {}, i.U = o;
|
|
2094
2106
|
for (var d in n) {
|
|
2095
2107
|
var l = o[d], u = n[d];
|
|
2096
|
-
l === void 0 ? (l =
|
|
2108
|
+
l === void 0 ? (l = kr(i, d, u, r), o[d] = l) : l.o(u, r);
|
|
2097
2109
|
}
|
|
2098
2110
|
}
|
|
2099
2111
|
}
|
|
2100
2112
|
t(e);
|
|
2101
2113
|
});
|
|
2102
|
-
function
|
|
2103
|
-
var r = e in t && t.ownerSVGElement === void 0, o =
|
|
2114
|
+
function kr(t, e, i, n) {
|
|
2115
|
+
var r = e in t && t.ownerSVGElement === void 0, o = E(i);
|
|
2104
2116
|
return { o: function(s, a) {
|
|
2105
2117
|
o.value = s, n = a;
|
|
2106
|
-
}, d:
|
|
2107
|
-
this.N =
|
|
2118
|
+
}, d: Oe(function() {
|
|
2119
|
+
this.N = ki;
|
|
2108
2120
|
var s = o.value.value;
|
|
2109
2121
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2110
2122
|
}) };
|
|
@@ -2134,7 +2146,7 @@ pe("unmount", function(t, e) {
|
|
|
2134
2146
|
pe("__h", function(t, e, i, n) {
|
|
2135
2147
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2136
2148
|
});
|
|
2137
|
-
|
|
2149
|
+
$i.prototype.shouldComponentUpdate = function(t, e) {
|
|
2138
2150
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2139
2151
|
for (var r in e)
|
|
2140
2152
|
return !0;
|
|
@@ -2152,26 +2164,26 @@ Ti.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2152
2164
|
return !0;
|
|
2153
2165
|
return !1;
|
|
2154
2166
|
};
|
|
2155
|
-
function
|
|
2156
|
-
return
|
|
2157
|
-
return
|
|
2167
|
+
function Ei(t) {
|
|
2168
|
+
return gi(function() {
|
|
2169
|
+
return E(t);
|
|
2158
2170
|
}, []);
|
|
2159
2171
|
}
|
|
2160
|
-
var
|
|
2172
|
+
var Ir = function(t) {
|
|
2161
2173
|
queueMicrotask(function() {
|
|
2162
2174
|
queueMicrotask(t);
|
|
2163
2175
|
});
|
|
2164
2176
|
};
|
|
2165
|
-
function
|
|
2166
|
-
|
|
2167
|
-
for (var t; t =
|
|
2168
|
-
|
|
2177
|
+
function Rr() {
|
|
2178
|
+
D(function() {
|
|
2179
|
+
for (var t; t = mi.shift(); )
|
|
2180
|
+
_i.call(t);
|
|
2169
2181
|
});
|
|
2170
2182
|
}
|
|
2171
|
-
function
|
|
2172
|
-
|
|
2183
|
+
function ki() {
|
|
2184
|
+
mi.push(this) === 1 && (fe.requestAnimationFrame || Ir)(Rr);
|
|
2173
2185
|
}
|
|
2174
|
-
const
|
|
2186
|
+
const F = ye`
|
|
2175
2187
|
inset: 0;
|
|
2176
2188
|
clear: none;
|
|
2177
2189
|
float: none;
|
|
@@ -2190,11 +2202,11 @@ const M = ge`
|
|
|
2190
2202
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2191
2203
|
'Helvetica Neue', sans-serif;
|
|
2192
2204
|
`;
|
|
2193
|
-
function
|
|
2194
|
-
const i =
|
|
2195
|
-
|
|
2205
|
+
function xr(t, e) {
|
|
2206
|
+
const i = Fi(t);
|
|
2207
|
+
Ui(() => {
|
|
2196
2208
|
i.current = t;
|
|
2197
|
-
}, [t]),
|
|
2209
|
+
}, [t]), We(() => {
|
|
2198
2210
|
if (e === null)
|
|
2199
2211
|
return;
|
|
2200
2212
|
const n = setInterval(() => {
|
|
@@ -2205,21 +2217,21 @@ function Ar(t, e) {
|
|
|
2205
2217
|
};
|
|
2206
2218
|
}, [e]);
|
|
2207
2219
|
}
|
|
2208
|
-
var
|
|
2220
|
+
var Or = 0;
|
|
2209
2221
|
function _(t, e, i, n, r, o) {
|
|
2210
2222
|
e || (e = {});
|
|
2211
2223
|
var s, a, d = e;
|
|
2212
2224
|
if ("ref" in d)
|
|
2213
2225
|
for (a in d = {}, e)
|
|
2214
2226
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2215
|
-
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2227
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Or, __i: -1, __u: 0, __source: r, __self: o };
|
|
2216
2228
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2217
2229
|
for (a in s)
|
|
2218
2230
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2219
|
-
return
|
|
2231
|
+
return fe.vnode && fe.vnode(l), l;
|
|
2220
2232
|
}
|
|
2221
|
-
const
|
|
2222
|
-
${
|
|
2233
|
+
const Tr = ye`
|
|
2234
|
+
${F}
|
|
2223
2235
|
position: fixed;
|
|
2224
2236
|
top: 0;
|
|
2225
2237
|
left: 0;
|
|
@@ -2232,7 +2244,7 @@ const Sr = ge`
|
|
|
2232
2244
|
height: 100vh;
|
|
2233
2245
|
|
|
2234
2246
|
.card-wrapper {
|
|
2235
|
-
${
|
|
2247
|
+
${F}
|
|
2236
2248
|
position: relative;
|
|
2237
2249
|
display: flex;
|
|
2238
2250
|
flex-direction: column;
|
|
@@ -2246,7 +2258,7 @@ const Sr = ge`
|
|
|
2246
2258
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2247
2259
|
|
|
2248
2260
|
.body {
|
|
2249
|
-
${
|
|
2261
|
+
${F}
|
|
2250
2262
|
display: flex;
|
|
2251
2263
|
flex-direction: column;
|
|
2252
2264
|
width: 100%;
|
|
@@ -2255,7 +2267,7 @@ const Sr = ge`
|
|
|
2255
2267
|
box-sizing: border-box;
|
|
2256
2268
|
justify-content: center;
|
|
2257
2269
|
.title {
|
|
2258
|
-
${
|
|
2270
|
+
${F}
|
|
2259
2271
|
text-align: center;
|
|
2260
2272
|
font-size: 16px;
|
|
2261
2273
|
font-weight: bold;
|
|
@@ -2263,7 +2275,7 @@ const Sr = ge`
|
|
|
2263
2275
|
}
|
|
2264
2276
|
|
|
2265
2277
|
.content {
|
|
2266
|
-
${
|
|
2278
|
+
${F}
|
|
2267
2279
|
font-size: 14px;
|
|
2268
2280
|
color: #888;
|
|
2269
2281
|
margin-bottom: 16px;
|
|
@@ -2271,13 +2283,13 @@ const Sr = ge`
|
|
|
2271
2283
|
}
|
|
2272
2284
|
|
|
2273
2285
|
.footer {
|
|
2274
|
-
${
|
|
2286
|
+
${F}
|
|
2275
2287
|
display: flex;
|
|
2276
2288
|
align-items: center;
|
|
2277
2289
|
width: 100%;
|
|
2278
2290
|
height: 40px;
|
|
2279
2291
|
button {
|
|
2280
|
-
${
|
|
2292
|
+
${F}
|
|
2281
2293
|
border: none;
|
|
2282
2294
|
outline: none;
|
|
2283
2295
|
height: 100%;
|
|
@@ -2293,56 +2305,56 @@ const Sr = ge`
|
|
|
2293
2305
|
}
|
|
2294
2306
|
}
|
|
2295
2307
|
}
|
|
2296
|
-
`, W =
|
|
2308
|
+
`, W = E(null), yt = E(""), wt = E(""), Ve = E(!1), Cr = () => {
|
|
2297
2309
|
var t;
|
|
2298
2310
|
(t = W.value) == null || t.call(W, !1);
|
|
2299
|
-
},
|
|
2311
|
+
}, Dr = () => {
|
|
2300
2312
|
var t;
|
|
2301
2313
|
(t = W.value) == null || t.call(W, !0);
|
|
2302
|
-
},
|
|
2314
|
+
}, Lr = async (t) => {
|
|
2303
2315
|
let {
|
|
2304
2316
|
title: e,
|
|
2305
2317
|
content: i
|
|
2306
2318
|
} = t;
|
|
2307
|
-
return W.value && (W.value(!1),
|
|
2308
|
-
W.value = null,
|
|
2309
|
-
})),
|
|
2310
|
-
|
|
2319
|
+
return W.value && (W.value(!1), D(() => {
|
|
2320
|
+
W.value = null, Ve.value = !1;
|
|
2321
|
+
})), D(() => {
|
|
2322
|
+
yt.value = e || "", wt.value = i || "", Ve.value = !0;
|
|
2311
2323
|
}), new Promise((n) => {
|
|
2312
2324
|
W.value = (r) => {
|
|
2313
|
-
|
|
2314
|
-
W.value = null,
|
|
2325
|
+
D(() => {
|
|
2326
|
+
W.value = null, Ve.value = !1, yt.value = "", wt.value = "";
|
|
2315
2327
|
}), n(r);
|
|
2316
2328
|
};
|
|
2317
2329
|
});
|
|
2318
|
-
},
|
|
2319
|
-
className:
|
|
2330
|
+
}, Pr = () => Ve.value ? _("div", {
|
|
2331
|
+
className: Tr,
|
|
2320
2332
|
children: _("div", {
|
|
2321
2333
|
className: "card-wrapper",
|
|
2322
2334
|
children: [_("div", {
|
|
2323
2335
|
className: "body",
|
|
2324
2336
|
children: [_("div", {
|
|
2325
2337
|
className: "title",
|
|
2326
|
-
children:
|
|
2338
|
+
children: yt.value
|
|
2327
2339
|
}), _("div", {
|
|
2328
2340
|
className: "content",
|
|
2329
|
-
children:
|
|
2341
|
+
children: wt.value
|
|
2330
2342
|
})]
|
|
2331
2343
|
}), _("div", {
|
|
2332
2344
|
className: "footer",
|
|
2333
2345
|
children: [_("button", {
|
|
2334
|
-
onClick:
|
|
2346
|
+
onClick: Cr,
|
|
2335
2347
|
className: "cancel-btn",
|
|
2336
2348
|
children: "Cancel"
|
|
2337
2349
|
}), _("button", {
|
|
2338
|
-
onClick:
|
|
2350
|
+
onClick: Dr,
|
|
2339
2351
|
className: "confirm-btm",
|
|
2340
2352
|
children: "Confirm"
|
|
2341
2353
|
})]
|
|
2342
2354
|
})]
|
|
2343
2355
|
})
|
|
2344
|
-
}) : null,
|
|
2345
|
-
${
|
|
2356
|
+
}) : null, Nr = ye`
|
|
2357
|
+
${F}
|
|
2346
2358
|
position: relative;
|
|
2347
2359
|
display: flex;
|
|
2348
2360
|
align-items: center;
|
|
@@ -2360,7 +2372,7 @@ const Sr = ge`
|
|
|
2360
2372
|
}
|
|
2361
2373
|
|
|
2362
2374
|
button {
|
|
2363
|
-
${
|
|
2375
|
+
${F}
|
|
2364
2376
|
padding: 0 20px;
|
|
2365
2377
|
height: 30px;
|
|
2366
2378
|
line-height: 30px;
|
|
@@ -2374,18 +2386,18 @@ const Sr = ge`
|
|
|
2374
2386
|
cursor: not-allowed;
|
|
2375
2387
|
}
|
|
2376
2388
|
}
|
|
2377
|
-
`,
|
|
2378
|
-
const t =
|
|
2389
|
+
`, Mr = () => {
|
|
2390
|
+
const t = E(!1), e = E(null);
|
|
2379
2391
|
return {
|
|
2380
2392
|
timerPaused: t,
|
|
2381
2393
|
startTimestamp: e,
|
|
2382
2394
|
startTimer: () => {
|
|
2383
|
-
|
|
2395
|
+
D(() => {
|
|
2384
2396
|
e.value = Date.now(), t.value = !1;
|
|
2385
2397
|
});
|
|
2386
2398
|
}
|
|
2387
2399
|
};
|
|
2388
|
-
},
|
|
2400
|
+
}, $r = (t) => {
|
|
2389
2401
|
let {
|
|
2390
2402
|
countdown: e = 0,
|
|
2391
2403
|
mode: i,
|
|
@@ -2395,42 +2407,42 @@ const Sr = ge`
|
|
|
2395
2407
|
const {
|
|
2396
2408
|
startTimestamp: o,
|
|
2397
2409
|
timerPaused: s
|
|
2398
|
-
} = r, a =
|
|
2399
|
-
|
|
2400
|
-
a.value > 0 ? a.value -= 1 :
|
|
2410
|
+
} = r, a = Ei(e);
|
|
2411
|
+
xr(() => {
|
|
2412
|
+
a.value > 0 ? a.value -= 1 : D(() => {
|
|
2401
2413
|
s.value = !0, a.value = 0;
|
|
2402
2414
|
});
|
|
2403
2415
|
}, s.value ? null : 1e3);
|
|
2404
|
-
const d =
|
|
2416
|
+
const d = Se(() => {
|
|
2405
2417
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2406
2418
|
return !1;
|
|
2407
2419
|
const f = Date.now() - o.value;
|
|
2408
2420
|
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2409
|
-
}), l =
|
|
2421
|
+
}), l = Se(() => {
|
|
2410
2422
|
if (i === "interstitial")
|
|
2411
2423
|
return !0;
|
|
2412
2424
|
if (!o.value)
|
|
2413
2425
|
return !1;
|
|
2414
2426
|
const f = Date.now() - o.value;
|
|
2415
2427
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2416
|
-
}), u =
|
|
2417
|
-
if (s.value = !0, !await
|
|
2428
|
+
}), u = Se(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2429
|
+
if (s.value = !0, !await Lr({
|
|
2418
2430
|
title: "Are you sure?",
|
|
2419
2431
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2420
2432
|
})) {
|
|
2421
2433
|
s.value = !1;
|
|
2422
2434
|
return;
|
|
2423
2435
|
}
|
|
2424
|
-
n("dismiss"),
|
|
2436
|
+
n("dismiss"), D(() => {
|
|
2425
2437
|
s.value = !0, a.value = 0, o.value = null;
|
|
2426
2438
|
});
|
|
2427
2439
|
}, c = () => {
|
|
2428
|
-
n("viewed"),
|
|
2440
|
+
n("viewed"), D(() => {
|
|
2429
2441
|
s.value = !0, a.value = 0, o.value = null;
|
|
2430
2442
|
});
|
|
2431
2443
|
};
|
|
2432
2444
|
return _("div", {
|
|
2433
|
-
className:
|
|
2445
|
+
className: Nr,
|
|
2434
2446
|
children: [a.value > 0 && i !== "interstitial" && _("div", {
|
|
2435
2447
|
className: "timer",
|
|
2436
2448
|
children: [a.value, "s"]
|
|
@@ -2450,8 +2462,8 @@ const Sr = ge`
|
|
|
2450
2462
|
})
|
|
2451
2463
|
})]
|
|
2452
2464
|
});
|
|
2453
|
-
},
|
|
2454
|
-
const t =
|
|
2465
|
+
}, Ii = () => {
|
|
2466
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
|
|
2455
2467
|
return {
|
|
2456
2468
|
afterAd: t,
|
|
2457
2469
|
adDismissed: e,
|
|
@@ -2463,8 +2475,8 @@ const Sr = ge`
|
|
|
2463
2475
|
src: a,
|
|
2464
2476
|
mode: d
|
|
2465
2477
|
};
|
|
2466
|
-
},
|
|
2467
|
-
${
|
|
2478
|
+
}, jr = ye`
|
|
2479
|
+
${F}
|
|
2468
2480
|
position: fixed;
|
|
2469
2481
|
z-index: 2147483647;
|
|
2470
2482
|
background: white;
|
|
@@ -2474,7 +2486,7 @@ const Sr = ge`
|
|
|
2474
2486
|
flex-direction: column;
|
|
2475
2487
|
|
|
2476
2488
|
iframe {
|
|
2477
|
-
${
|
|
2489
|
+
${F}
|
|
2478
2490
|
flex: 1;
|
|
2479
2491
|
position: relative;
|
|
2480
2492
|
display: block;
|
|
@@ -2482,7 +2494,7 @@ const Sr = ge`
|
|
|
2482
2494
|
width: 100%;
|
|
2483
2495
|
height: 100%;
|
|
2484
2496
|
}
|
|
2485
|
-
`,
|
|
2497
|
+
`, Ri = (t) => {
|
|
2486
2498
|
let {
|
|
2487
2499
|
state: e
|
|
2488
2500
|
} = t;
|
|
@@ -2496,39 +2508,39 @@ const Sr = ge`
|
|
|
2496
2508
|
countdown: d,
|
|
2497
2509
|
src: l,
|
|
2498
2510
|
mode: u
|
|
2499
|
-
} = e, h =
|
|
2500
|
-
var y,
|
|
2501
|
-
a.value = !1,
|
|
2502
|
-
}, g =
|
|
2503
|
-
var
|
|
2504
|
-
c || (f(!0), (
|
|
2511
|
+
} = e, h = Bi(() => Mr(), []), [c, f] = Xt(!1), w = (p) => {
|
|
2512
|
+
var y, v, b, T;
|
|
2513
|
+
a.value = !1, p === "dismiss" ? (y = n.value) == null || y.call(n) : p === "viewed" && ((v = r.value) == null || v.call(r)), (b = i.value) == null || b.call(i), (T = o.value) == null || T.call(o), f(!1);
|
|
2514
|
+
}, g = Vi(() => {
|
|
2515
|
+
var p;
|
|
2516
|
+
c || (f(!0), (p = s.value) == null || p.call(s));
|
|
2505
2517
|
}, [c]);
|
|
2506
|
-
return
|
|
2518
|
+
return We(() => {
|
|
2507
2519
|
c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2508
2520
|
h.startTimer();
|
|
2509
2521
|
}, 100);
|
|
2510
2522
|
}, [c, u.value]), a.value ? _("div", {
|
|
2511
|
-
className:
|
|
2512
|
-
children: [_(
|
|
2523
|
+
className: jr,
|
|
2524
|
+
children: [_($r, {
|
|
2513
2525
|
mode: u.value,
|
|
2514
|
-
onClose:
|
|
2526
|
+
onClose: w,
|
|
2515
2527
|
countdown: d.value,
|
|
2516
2528
|
state: h
|
|
2517
2529
|
}), a.value && _("iframe", {
|
|
2518
2530
|
src: l.value,
|
|
2519
2531
|
onLoad: g,
|
|
2520
2532
|
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"
|
|
2521
|
-
}), _(
|
|
2533
|
+
}), _(Pr, {})]
|
|
2522
2534
|
}) : null;
|
|
2523
2535
|
};
|
|
2524
2536
|
function Z(t, e, i) {
|
|
2525
|
-
return (e =
|
|
2537
|
+
return (e = Fr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2526
2538
|
}
|
|
2527
|
-
function
|
|
2528
|
-
var e =
|
|
2539
|
+
function Fr(t) {
|
|
2540
|
+
var e = Ur(t, "string");
|
|
2529
2541
|
return typeof e == "symbol" ? e : e + "";
|
|
2530
2542
|
}
|
|
2531
|
-
function
|
|
2543
|
+
function Ur(t, e) {
|
|
2532
2544
|
if (typeof t != "object" || !t)
|
|
2533
2545
|
return t;
|
|
2534
2546
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2540,13 +2552,13 @@ function Lr(t, e) {
|
|
|
2540
2552
|
}
|
|
2541
2553
|
return (e === "string" ? String : Number)(t);
|
|
2542
2554
|
}
|
|
2543
|
-
class
|
|
2555
|
+
class Br {
|
|
2544
2556
|
constructor(e, i) {
|
|
2545
|
-
Z(this, "name", "OKSPIN"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "initParams", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state",
|
|
2557
|
+
Z(this, "name", "OKSPIN"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "initParams", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state", Ii()), this.context = e, this.initParams = i;
|
|
2546
2558
|
}
|
|
2547
2559
|
async init() {
|
|
2548
2560
|
var e;
|
|
2549
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(
|
|
2561
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(Ri, {
|
|
2550
2562
|
state: this.state
|
|
2551
2563
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2552
2564
|
}
|
|
@@ -2608,7 +2620,7 @@ class Pr {
|
|
|
2608
2620
|
breakStatus: "viewed"
|
|
2609
2621
|
});
|
|
2610
2622
|
};
|
|
2611
|
-
|
|
2623
|
+
D(() => {
|
|
2612
2624
|
this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = c, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
|
|
2613
2625
|
});
|
|
2614
2626
|
break;
|
|
@@ -2631,17 +2643,17 @@ class Pr {
|
|
|
2631
2643
|
}, f = () => {
|
|
2632
2644
|
var y;
|
|
2633
2645
|
this.adsIsShowing = !1, c.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
|
|
2634
|
-
},
|
|
2646
|
+
}, w = () => {
|
|
2635
2647
|
var y;
|
|
2636
2648
|
this.adsIsShowing = !1, c.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
|
|
2637
2649
|
}, g = () => {
|
|
2638
2650
|
var y;
|
|
2639
2651
|
this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, c);
|
|
2640
2652
|
};
|
|
2641
|
-
|
|
2642
|
-
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value =
|
|
2653
|
+
D(() => {
|
|
2654
|
+
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = w, this.state.adBreakDone.value = g;
|
|
2643
2655
|
});
|
|
2644
|
-
const
|
|
2656
|
+
const p = () => {
|
|
2645
2657
|
var y;
|
|
2646
2658
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2647
2659
|
(y = e.adBreakDone) == null || y.call(e, {
|
|
@@ -2652,29 +2664,29 @@ class Pr {
|
|
|
2652
2664
|
});
|
|
2653
2665
|
return;
|
|
2654
2666
|
}
|
|
2655
|
-
this.adsIsShowing = !0,
|
|
2656
|
-
var
|
|
2657
|
-
this.state.countdown.value = (
|
|
2667
|
+
this.adsIsShowing = !0, D(() => {
|
|
2668
|
+
var v;
|
|
2669
|
+
this.state.countdown.value = (v = i.params.countdown) != null ? v : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2658
2670
|
});
|
|
2659
2671
|
};
|
|
2660
|
-
this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e,
|
|
2672
|
+
this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, p);
|
|
2661
2673
|
break;
|
|
2662
2674
|
}
|
|
2663
2675
|
}
|
|
2664
2676
|
}
|
|
2665
2677
|
}
|
|
2666
|
-
const
|
|
2678
|
+
const ce = {};
|
|
2667
2679
|
window.addEventListener("message", (t) => {
|
|
2668
|
-
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" ||
|
|
2680
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || ce[t.data.type] && ce[t.data.type].forEach((e) => {
|
|
2669
2681
|
e(t.data.data);
|
|
2670
2682
|
});
|
|
2671
2683
|
});
|
|
2672
2684
|
const ae = (t, e) => {
|
|
2673
|
-
|
|
2674
|
-
|
|
2685
|
+
We(() => (ce[t] || (ce[t] = /* @__PURE__ */ new Set()), ce[t].add(e), () => {
|
|
2686
|
+
ce[t].delete(e);
|
|
2675
2687
|
}), [t, e]);
|
|
2676
|
-
},
|
|
2677
|
-
const t =
|
|
2688
|
+
}, xi = () => {
|
|
2689
|
+
const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
|
|
2678
2690
|
return {
|
|
2679
2691
|
afterAd: t,
|
|
2680
2692
|
adDismissed: e,
|
|
@@ -2686,8 +2698,8 @@ const ae = (t, e) => {
|
|
|
2686
2698
|
visible: a,
|
|
2687
2699
|
src: d
|
|
2688
2700
|
};
|
|
2689
|
-
},
|
|
2690
|
-
${
|
|
2701
|
+
}, Vr = ye`
|
|
2702
|
+
${F}
|
|
2691
2703
|
position: fixed;
|
|
2692
2704
|
z-index: 2147483647;
|
|
2693
2705
|
background: white;
|
|
@@ -2697,7 +2709,7 @@ const ae = (t, e) => {
|
|
|
2697
2709
|
flex-direction: column;
|
|
2698
2710
|
|
|
2699
2711
|
iframe {
|
|
2700
|
-
${
|
|
2712
|
+
${F}
|
|
2701
2713
|
flex: 1;
|
|
2702
2714
|
position: relative;
|
|
2703
2715
|
display: block;
|
|
@@ -2705,7 +2717,7 @@ const ae = (t, e) => {
|
|
|
2705
2717
|
width: 100%;
|
|
2706
2718
|
height: 100%;
|
|
2707
2719
|
}
|
|
2708
|
-
`,
|
|
2720
|
+
`, Oi = (t) => {
|
|
2709
2721
|
let {
|
|
2710
2722
|
state: e
|
|
2711
2723
|
} = t;
|
|
@@ -2718,18 +2730,18 @@ const ae = (t, e) => {
|
|
|
2718
2730
|
adLinkClicked: a,
|
|
2719
2731
|
visible: d,
|
|
2720
2732
|
src: l
|
|
2721
|
-
} = e, [u, h] =
|
|
2722
|
-
var g,
|
|
2723
|
-
h(!1), d.value = !1,
|
|
2733
|
+
} = e, [u, h] = Xt(!1), c = (w) => {
|
|
2734
|
+
var g, p, y, v;
|
|
2735
|
+
h(!1), d.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((p = r.value) == null || p.call(r)), (y = i.value) == null || y.call(i), (v = o.value) == null || v.call(o);
|
|
2724
2736
|
}, f = () => {
|
|
2725
|
-
var
|
|
2726
|
-
(
|
|
2737
|
+
var w;
|
|
2738
|
+
(w = s.value) == null || w.call(s);
|
|
2727
2739
|
};
|
|
2728
|
-
return ae("appsrockets_ad_dismissed", () => c("dismiss")), ae("appsrockets_ad_rewarded", () => c("viewed")), ae("appsrockets_ad_completed", () => c("viewed")), ae("appsrockets_ad_skipped", () => c("viewed")), ae("appsrockets_ad_clicked", (
|
|
2740
|
+
return ae("appsrockets_ad_dismissed", () => c("dismiss")), ae("appsrockets_ad_rewarded", () => c("viewed")), ae("appsrockets_ad_completed", () => c("viewed")), ae("appsrockets_ad_skipped", () => c("viewed")), ae("appsrockets_ad_clicked", (w) => {
|
|
2729
2741
|
var g;
|
|
2730
|
-
return (g = a.value) == null ? void 0 : g.call(a,
|
|
2742
|
+
return (g = a.value) == null ? void 0 : g.call(a, w);
|
|
2731
2743
|
}), ae("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
|
|
2732
|
-
className:
|
|
2744
|
+
className: Vr,
|
|
2733
2745
|
style: {
|
|
2734
2746
|
display: u ? "flex" : "none"
|
|
2735
2747
|
},
|
|
@@ -2743,13 +2755,13 @@ const ae = (t, e) => {
|
|
|
2743
2755
|
}) : null;
|
|
2744
2756
|
};
|
|
2745
2757
|
function ee(t, e, i) {
|
|
2746
|
-
return (e =
|
|
2758
|
+
return (e = Gr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2747
2759
|
}
|
|
2748
|
-
function
|
|
2749
|
-
var e =
|
|
2760
|
+
function Gr(t) {
|
|
2761
|
+
var e = qr(t, "string");
|
|
2750
2762
|
return typeof e == "symbol" ? e : e + "";
|
|
2751
2763
|
}
|
|
2752
|
-
function
|
|
2764
|
+
function qr(t, e) {
|
|
2753
2765
|
if (typeof t != "object" || !t)
|
|
2754
2766
|
return t;
|
|
2755
2767
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2761,9 +2773,9 @@ function $r(t, e) {
|
|
|
2761
2773
|
}
|
|
2762
2774
|
return (e === "string" ? String : Number)(t);
|
|
2763
2775
|
}
|
|
2764
|
-
class
|
|
2776
|
+
class Kr {
|
|
2765
2777
|
constructor(e, i) {
|
|
2766
|
-
ee(this, "name", "APPSROCKETS"), ee(this, "initialized", !1), ee(this, "initCompleter", null), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "adsIsShowing", !1), ee(this, "lastUnDisplayedAdBreak", null), ee(this, "state",
|
|
2778
|
+
ee(this, "name", "APPSROCKETS"), ee(this, "initialized", !1), ee(this, "initCompleter", null), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "adsIsShowing", !1), ee(this, "lastUnDisplayedAdBreak", null), ee(this, "state", xi()), ee(this, "processUrl", (n) => {
|
|
2767
2779
|
var a;
|
|
2768
2780
|
const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
|
|
2769
2781
|
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();
|
|
@@ -2771,7 +2783,7 @@ class jr {
|
|
|
2771
2783
|
}
|
|
2772
2784
|
async init() {
|
|
2773
2785
|
var e;
|
|
2774
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(
|
|
2786
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(Oi, {
|
|
2775
2787
|
state: this.state
|
|
2776
2788
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2777
2789
|
}
|
|
@@ -2807,8 +2819,8 @@ class jr {
|
|
|
2807
2819
|
return;
|
|
2808
2820
|
}
|
|
2809
2821
|
const n = (c) => {
|
|
2810
|
-
var f,
|
|
2811
|
-
(
|
|
2822
|
+
var f, w;
|
|
2823
|
+
(w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
|
|
2812
2824
|
};
|
|
2813
2825
|
switch (e.type) {
|
|
2814
2826
|
case "preroll": {
|
|
@@ -2836,7 +2848,7 @@ class jr {
|
|
|
2836
2848
|
breakFormat: "interstitial",
|
|
2837
2849
|
breakStatus: "viewed"
|
|
2838
2850
|
});
|
|
2839
|
-
},
|
|
2851
|
+
}, w = () => {
|
|
2840
2852
|
var g;
|
|
2841
2853
|
this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, {
|
|
2842
2854
|
breakType: e.type,
|
|
@@ -2845,8 +2857,8 @@ class jr {
|
|
|
2845
2857
|
breakStatus: "noAdPreloaded"
|
|
2846
2858
|
});
|
|
2847
2859
|
};
|
|
2848
|
-
|
|
2849
|
-
this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value =
|
|
2860
|
+
D(() => {
|
|
2861
|
+
this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = w, this.state.visible.value = !0;
|
|
2850
2862
|
});
|
|
2851
2863
|
break;
|
|
2852
2864
|
}
|
|
@@ -2865,22 +2877,22 @@ class jr {
|
|
|
2865
2877
|
breakName: e.name,
|
|
2866
2878
|
breakFormat: "reward",
|
|
2867
2879
|
breakStatus: "ignored"
|
|
2868
|
-
},
|
|
2880
|
+
}, w = () => {
|
|
2869
2881
|
var b;
|
|
2870
2882
|
this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
|
|
2871
2883
|
}, g = () => {
|
|
2872
2884
|
var b;
|
|
2873
2885
|
this.adsIsShowing = !1, f.breakStatus = "viewed", (b = e.adViewed) == null || b.call(e);
|
|
2874
|
-
},
|
|
2886
|
+
}, p = () => {
|
|
2875
2887
|
var b;
|
|
2876
2888
|
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
|
|
2877
2889
|
}, y = () => {
|
|
2878
2890
|
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2879
2891
|
};
|
|
2880
|
-
|
|
2881
|
-
this.state.afterAd.value = c, this.state.adDismissed.value =
|
|
2892
|
+
D(() => {
|
|
2893
|
+
this.state.afterAd.value = c, this.state.adDismissed.value = w, this.state.adViewed.value = g, this.state.adBreakDone.value = p, this.state.adLinkClicked.value = n, this.state.adError.value = y;
|
|
2882
2894
|
});
|
|
2883
|
-
const
|
|
2895
|
+
const v = () => {
|
|
2884
2896
|
var b;
|
|
2885
2897
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2886
2898
|
(b = e.adBreakDone) == null || b.call(e, {
|
|
@@ -2891,31 +2903,31 @@ class jr {
|
|
|
2891
2903
|
});
|
|
2892
2904
|
return;
|
|
2893
2905
|
}
|
|
2894
|
-
this.adsIsShowing = !0,
|
|
2906
|
+
this.adsIsShowing = !0, D(() => {
|
|
2895
2907
|
this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
|
|
2896
2908
|
});
|
|
2897
2909
|
};
|
|
2898
|
-
this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e,
|
|
2910
|
+
this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, v);
|
|
2899
2911
|
break;
|
|
2900
2912
|
}
|
|
2901
2913
|
}
|
|
2902
2914
|
}
|
|
2903
2915
|
}
|
|
2904
|
-
const
|
|
2916
|
+
const Ti = () => {
|
|
2905
2917
|
window.googletag = window.googletag || {
|
|
2906
2918
|
cmd: []
|
|
2907
2919
|
}, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
|
|
2908
2920
|
window.googletag.enableServices();
|
|
2909
2921
|
});
|
|
2910
2922
|
};
|
|
2911
|
-
function
|
|
2912
|
-
return (e =
|
|
2923
|
+
function $(t, e, i) {
|
|
2924
|
+
return (e = zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2913
2925
|
}
|
|
2914
|
-
function
|
|
2915
|
-
var e =
|
|
2926
|
+
function zr(t) {
|
|
2927
|
+
var e = Hr(t, "string");
|
|
2916
2928
|
return typeof e == "symbol" ? e : e + "";
|
|
2917
2929
|
}
|
|
2918
|
-
function
|
|
2930
|
+
function Hr(t, e) {
|
|
2919
2931
|
if (typeof t != "object" || !t)
|
|
2920
2932
|
return t;
|
|
2921
2933
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2927,24 +2939,24 @@ function Ur(t, e) {
|
|
|
2927
2939
|
}
|
|
2928
2940
|
return (e === "string" ? String : Number)(t);
|
|
2929
2941
|
}
|
|
2930
|
-
class
|
|
2942
|
+
class Ci {
|
|
2931
2943
|
constructor(e, i, n) {
|
|
2932
|
-
|
|
2944
|
+
$(this, "adUnit", void 0), $(this, "project", void 0), $(this, "keyValue", void 0), $(this, "adsContext", null), $(this, "rewardedSlot", null), $(this, "rewardedPayload", null), $(this, "readyEvent", null), $(this, "withCommand", function() {
|
|
2933
2945
|
googletag.cmd.push(...arguments);
|
|
2934
|
-
}),
|
|
2946
|
+
}), $(this, "init", () => {
|
|
2935
2947
|
var r;
|
|
2936
2948
|
this.rewardedSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.REWARDED), this.rewardedSlot && (this.rewardedSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().addEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().addEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.keyValue && (Object.keys(this.keyValue).forEach((o) => {
|
|
2937
2949
|
var s;
|
|
2938
2950
|
(s = this.rewardedSlot) == null || s.setTargeting(o, this.keyValue[o]);
|
|
2939
2951
|
}), Object.keys(this.keyValue).includes("project") || (r = this.rewardedSlot) == null || r.setTargeting("project", this.project)), googletag.display(this.rewardedSlot));
|
|
2940
|
-
}),
|
|
2952
|
+
}), $(this, "destroy", (r) => {
|
|
2941
2953
|
var o, s;
|
|
2942
2954
|
this.rewardedPayload = null, this.readyEvent = null, googletag.pubads().removeEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().removeEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().removeEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().removeEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.rewardedSlot && (googletag.destroySlots([this.rewardedSlot]), this.rewardedSlot = null), (s = (o = this.adsContext) == null ? void 0 : o.adBreakDone) == null || s.call(o, r), this.adsContext = null;
|
|
2943
|
-
}),
|
|
2955
|
+
}), $(this, "reinit", (r) => {
|
|
2944
2956
|
this.destroy(r), this.init();
|
|
2945
|
-
}),
|
|
2957
|
+
}), $(this, "handleSlotReady", (r) => {
|
|
2946
2958
|
r.slot === this.rewardedSlot && (this.readyEvent = r);
|
|
2947
|
-
}),
|
|
2959
|
+
}), $(this, "handleSlotClosed", (r) => {
|
|
2948
2960
|
var o, s;
|
|
2949
2961
|
if (this.adsContext && r.slot === this.rewardedSlot) {
|
|
2950
2962
|
const a = this.rewardedPayload ? "viewed" : "dismissed";
|
|
@@ -2952,13 +2964,13 @@ class Ii {
|
|
|
2952
2964
|
this.reinit(a);
|
|
2953
2965
|
});
|
|
2954
2966
|
}
|
|
2955
|
-
}),
|
|
2967
|
+
}), $(this, "handleSlotGranted", (r) => {
|
|
2956
2968
|
this.adsContext && r.slot === this.rewardedSlot && (this.rewardedPayload = r.payload);
|
|
2957
|
-
}),
|
|
2969
|
+
}), $(this, "handleSlotRenderEnded", (r) => {
|
|
2958
2970
|
r.slot === this.rewardedSlot && r.isEmpty && this.adsContext && this.withCommand(() => {
|
|
2959
2971
|
this.reinit("frequencyCapped");
|
|
2960
2972
|
});
|
|
2961
|
-
}),
|
|
2973
|
+
}), $(this, "requestAds", (r) => {
|
|
2962
2974
|
this.withCommand(() => {
|
|
2963
2975
|
if (this.adsContext && this.reinit("ignored"), this.rewardedSlot || this.init(), this.adsContext = r, !this.rewardedSlot) {
|
|
2964
2976
|
this.reinit("notReady");
|
|
@@ -2981,19 +2993,19 @@ class Ii {
|
|
|
2981
2993
|
}, 500);
|
|
2982
2994
|
}
|
|
2983
2995
|
});
|
|
2984
|
-
}), this.adUnit = e, this.project = i, this.keyValue = n,
|
|
2996
|
+
}), this.adUnit = e, this.project = i, this.keyValue = n, Ti(), this.withCommand(() => {
|
|
2985
2997
|
this.init();
|
|
2986
2998
|
});
|
|
2987
2999
|
}
|
|
2988
3000
|
}
|
|
2989
|
-
function
|
|
2990
|
-
return (e =
|
|
3001
|
+
function V(t, e, i) {
|
|
3002
|
+
return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2991
3003
|
}
|
|
2992
|
-
function
|
|
2993
|
-
var e =
|
|
3004
|
+
function Wr(t) {
|
|
3005
|
+
var e = Jr(t, "string");
|
|
2994
3006
|
return typeof e == "symbol" ? e : e + "";
|
|
2995
3007
|
}
|
|
2996
|
-
function
|
|
3008
|
+
function Jr(t, e) {
|
|
2997
3009
|
if (typeof t != "object" || !t)
|
|
2998
3010
|
return t;
|
|
2999
3011
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3005,31 +3017,31 @@ function Vr(t, e) {
|
|
|
3005
3017
|
}
|
|
3006
3018
|
return (e === "string" ? String : Number)(t);
|
|
3007
3019
|
}
|
|
3008
|
-
class
|
|
3020
|
+
class Yr {
|
|
3009
3021
|
constructor(e, i, n) {
|
|
3010
3022
|
var r = this;
|
|
3011
|
-
|
|
3023
|
+
V(this, "adUnit", void 0), V(this, "project", void 0), V(this, "keyValue", void 0), V(this, "adsContext", null), V(this, "gamingInterstitialSlot", null), V(this, "readyEvent", null), V(this, "isRetrying", !1), V(this, "withCommand", function() {
|
|
3012
3024
|
googletag.cmd.push(...arguments);
|
|
3013
|
-
}),
|
|
3025
|
+
}), V(this, "init", () => {
|
|
3014
3026
|
var o;
|
|
3015
3027
|
this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((s) => {
|
|
3016
3028
|
var a;
|
|
3017
3029
|
(a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
|
|
3018
3030
|
}), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
|
|
3019
|
-
}),
|
|
3031
|
+
}), V(this, "destroy", function(o) {
|
|
3020
3032
|
var a, d;
|
|
3021
3033
|
(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), r.adsContext = null), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
|
|
3022
|
-
}),
|
|
3034
|
+
}), V(this, "reinit", function(o) {
|
|
3023
3035
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3024
3036
|
r.destroy(o, s), r.init();
|
|
3025
|
-
}),
|
|
3037
|
+
}), V(this, "handleSlotReady", (o) => {
|
|
3026
3038
|
this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
|
|
3027
|
-
}),
|
|
3039
|
+
}), V(this, "handleSlotClosed", (o) => {
|
|
3028
3040
|
var s, a;
|
|
3029
3041
|
this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
|
|
3030
3042
|
this.reinit("viewed");
|
|
3031
3043
|
}));
|
|
3032
|
-
}),
|
|
3044
|
+
}), V(this, "requestAds", (o) => {
|
|
3033
3045
|
this.withCommand(() => {
|
|
3034
3046
|
var s, a, d;
|
|
3035
3047
|
if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = o, !this.gamingInterstitialSlot) {
|
|
@@ -3042,19 +3054,19 @@ class Gr {
|
|
|
3042
3054
|
}), this.isRetrying = !1;
|
|
3043
3055
|
}, 31e3)));
|
|
3044
3056
|
});
|
|
3045
|
-
}),
|
|
3057
|
+
}), Ti(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
|
|
3046
3058
|
this.init();
|
|
3047
3059
|
});
|
|
3048
3060
|
}
|
|
3049
3061
|
}
|
|
3050
3062
|
function se(t, e, i) {
|
|
3051
|
-
return (e =
|
|
3063
|
+
return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3052
3064
|
}
|
|
3053
|
-
function
|
|
3054
|
-
var e =
|
|
3065
|
+
function Xr(t) {
|
|
3066
|
+
var e = Qr(t, "string");
|
|
3055
3067
|
return typeof e == "symbol" ? e : e + "";
|
|
3056
3068
|
}
|
|
3057
|
-
function
|
|
3069
|
+
function Qr(t, e) {
|
|
3058
3070
|
if (typeof t != "object" || !t)
|
|
3059
3071
|
return t;
|
|
3060
3072
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3066,7 +3078,7 @@ function Kr(t, e) {
|
|
|
3066
3078
|
}
|
|
3067
3079
|
return (e === "string" ? String : Number)(t);
|
|
3068
3080
|
}
|
|
3069
|
-
class
|
|
3081
|
+
class Zr {
|
|
3070
3082
|
constructor(e, i) {
|
|
3071
3083
|
se(this, "name", "GOOGLE_GPT"), se(this, "context", void 0), se(this, "contextInfo", void 0), se(this, "initParams", void 0), se(this, "rewardAdManager", void 0), se(this, "interstitialManager", void 0), se(this, "insertScript", () => {
|
|
3072
3084
|
const n = "jolibox-google-gpt";
|
|
@@ -3076,7 +3088,7 @@ class zr {
|
|
|
3076
3088
|
}
|
|
3077
3089
|
async init() {
|
|
3078
3090
|
const e = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : this.initParams.rewardedSlot, i = this.contextInfo.testAdsMode ? "/6355419/Travel/Europe/France/Paris" : this.initParams.interstitialSlot, r = `minigame-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
3079
|
-
e && (this.rewardAdManager = new
|
|
3091
|
+
e && (this.rewardAdManager = new Ci(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Yr(i, r, this.initParams.keyValue));
|
|
3080
3092
|
}
|
|
3081
3093
|
adConfig(e, i) {
|
|
3082
3094
|
}
|
|
@@ -3147,14 +3159,14 @@ class zr {
|
|
|
3147
3159
|
}
|
|
3148
3160
|
}
|
|
3149
3161
|
}
|
|
3150
|
-
function
|
|
3151
|
-
return (e =
|
|
3162
|
+
function rt(t, e, i) {
|
|
3163
|
+
return (e = eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3152
3164
|
}
|
|
3153
|
-
function
|
|
3154
|
-
var e =
|
|
3165
|
+
function eo(t) {
|
|
3166
|
+
var e = to(t, "string");
|
|
3155
3167
|
return typeof e == "symbol" ? e : e + "";
|
|
3156
3168
|
}
|
|
3157
|
-
function
|
|
3169
|
+
function to(t, e) {
|
|
3158
3170
|
if (typeof t != "object" || !t)
|
|
3159
3171
|
return t;
|
|
3160
3172
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3166,10 +3178,10 @@ function Wr(t, e) {
|
|
|
3166
3178
|
}
|
|
3167
3179
|
return (e === "string" ? String : Number)(t);
|
|
3168
3180
|
}
|
|
3169
|
-
class
|
|
3181
|
+
class io {
|
|
3170
3182
|
constructor(e) {
|
|
3171
3183
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
3172
|
-
|
|
3184
|
+
rt(this, "context", void 0), rt(this, "placement", "GAME"), rt(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
3173
3185
|
}
|
|
3174
3186
|
getLocation() {
|
|
3175
3187
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -3183,7 +3195,7 @@ class Jr {
|
|
|
3183
3195
|
getDevice() {
|
|
3184
3196
|
var e, i, n, r;
|
|
3185
3197
|
return {
|
|
3186
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
3198
|
+
platform: (e = this.contextInfo.platform) != null ? e : ni.WebSDK,
|
|
3187
3199
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
3188
3200
|
appVersion: "1.0.0",
|
|
3189
3201
|
// mock
|
|
@@ -3202,7 +3214,7 @@ class Jr {
|
|
|
3202
3214
|
protocolVersion: "1.0.0",
|
|
3203
3215
|
events: [{
|
|
3204
3216
|
name: e,
|
|
3205
|
-
type:
|
|
3217
|
+
type: ti.System,
|
|
3206
3218
|
location: this.getLocation(),
|
|
3207
3219
|
target: null,
|
|
3208
3220
|
extra: i,
|
|
@@ -3210,19 +3222,19 @@ class Jr {
|
|
|
3210
3222
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
3211
3223
|
}],
|
|
3212
3224
|
device: this.getDevice(),
|
|
3213
|
-
project:
|
|
3225
|
+
project: ii.WebSDK
|
|
3214
3226
|
};
|
|
3215
|
-
return
|
|
3227
|
+
return un(r);
|
|
3216
3228
|
}
|
|
3217
3229
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return (e =
|
|
3230
|
+
function U(t, e, i) {
|
|
3231
|
+
return (e = no(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3220
3232
|
}
|
|
3221
|
-
function
|
|
3222
|
-
var e =
|
|
3233
|
+
function no(t) {
|
|
3234
|
+
var e = ro(t, "string");
|
|
3223
3235
|
return typeof e == "symbol" ? e : e + "";
|
|
3224
3236
|
}
|
|
3225
|
-
function
|
|
3237
|
+
function ro(t, e) {
|
|
3226
3238
|
if (typeof t != "object" || !t)
|
|
3227
3239
|
return t;
|
|
3228
3240
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3234,9 +3246,9 @@ function Xr(t, e) {
|
|
|
3234
3246
|
}
|
|
3235
3247
|
return (e === "string" ? String : Number)(t);
|
|
3236
3248
|
}
|
|
3237
|
-
class
|
|
3249
|
+
class mt {
|
|
3238
3250
|
constructor(e) {
|
|
3239
|
-
|
|
3251
|
+
U(this, "context", void 0), U(this, "adsTrackSerializer", void 0), U(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new io(this.context);
|
|
3240
3252
|
}
|
|
3241
3253
|
getRequestContextData(e) {
|
|
3242
3254
|
var r, o;
|
|
@@ -3272,13 +3284,13 @@ class wt {
|
|
|
3272
3284
|
};
|
|
3273
3285
|
}
|
|
3274
3286
|
}
|
|
3275
|
-
class
|
|
3287
|
+
class Di {
|
|
3276
3288
|
constructor(e, i) {
|
|
3277
3289
|
var n = this;
|
|
3278
|
-
|
|
3290
|
+
U(this, "context", void 0), U(this, "contextInfo", void 0), U(this, "requestContext", void 0), U(this, "pendingAFGAdsInfo", {
|
|
3279
3291
|
REWARD: Promise.resolve(null),
|
|
3280
3292
|
INTERSTITIAL: Promise.resolve(null)
|
|
3281
|
-
}),
|
|
3293
|
+
}), U(this, "pendingAFVAdsInfo", Promise.resolve(null)), U(this, "doFetchAdsInfo", async (r) => {
|
|
3282
3294
|
const o = r === "afv" ? "AdsAFVSDKRequest" : "AdsAFGSDKAdBreak", s = r === "afv" ? "REWARD_INTERSTITIAL" : r === "reward" ? "REWARD" : "INTERSTITIAL", a = r === "afv" ? void 0 : "cached", {
|
|
3283
3295
|
data: d,
|
|
3284
3296
|
code: l
|
|
@@ -3291,35 +3303,38 @@ class Ri {
|
|
|
3291
3303
|
name: a
|
|
3292
3304
|
}
|
|
3293
3305
|
});
|
|
3294
|
-
return l === "SUCCESS"
|
|
3295
|
-
|
|
3306
|
+
return l === "SUCCESS" || l === "BYPASS_ADS" ? {
|
|
3307
|
+
code: l,
|
|
3308
|
+
data: d
|
|
3309
|
+
} : null;
|
|
3310
|
+
}), U(this, "cacheRewardInfo", () => {
|
|
3296
3311
|
this.pendingAFGAdsInfo.REWARD = this.doFetchAdsInfo("reward").catch(() => null);
|
|
3297
|
-
}),
|
|
3312
|
+
}), U(this, "cacheInterstitialInfo", (r) => {
|
|
3298
3313
|
this.pendingAFGAdsInfo.INTERSTITIAL = this.doFetchAdsInfo(r).catch(() => null);
|
|
3299
|
-
}),
|
|
3314
|
+
}), U(this, "cacheAFVInfo", () => {
|
|
3300
3315
|
this.pendingAFVAdsInfo = this.doFetchAdsInfo("afv").catch(() => null);
|
|
3301
|
-
}),
|
|
3316
|
+
}), U(this, "cacheNextAFGAdsInfo", async (r) => {
|
|
3302
3317
|
r === "reward" ? this.cacheRewardInfo() : this.cacheInterstitialInfo(r);
|
|
3303
|
-
}),
|
|
3318
|
+
}), U(this, "getAFGAdsInfo", async (r) => {
|
|
3304
3319
|
const o = await (r === "reward" ? this.pendingAFGAdsInfo.REWARD : this.pendingAFGAdsInfo.INTERSTITIAL);
|
|
3305
3320
|
return this.cacheNextAFGAdsInfo(r), o;
|
|
3306
|
-
}),
|
|
3321
|
+
}), U(this, "getAFVAdsInfo", async function() {
|
|
3307
3322
|
if (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) {
|
|
3308
3323
|
const o = await n.pendingAFVAdsInfo;
|
|
3309
3324
|
return n.cacheAFVInfo(), o;
|
|
3310
3325
|
} else
|
|
3311
3326
|
return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
|
|
3312
|
-
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new
|
|
3327
|
+
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new mt(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
|
|
3313
3328
|
}
|
|
3314
3329
|
}
|
|
3315
3330
|
function z(t, e, i) {
|
|
3316
|
-
return (e =
|
|
3331
|
+
return (e = oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3317
3332
|
}
|
|
3318
|
-
function
|
|
3319
|
-
var e =
|
|
3333
|
+
function oo(t) {
|
|
3334
|
+
var e = so(t, "string");
|
|
3320
3335
|
return typeof e == "symbol" ? e : e + "";
|
|
3321
3336
|
}
|
|
3322
|
-
function
|
|
3337
|
+
function so(t, e) {
|
|
3323
3338
|
if (typeof t != "object" || !t)
|
|
3324
3339
|
return t;
|
|
3325
3340
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3331,10 +3346,10 @@ function Zr(t, e) {
|
|
|
3331
3346
|
}
|
|
3332
3347
|
return (e === "string" ? String : Number)(t);
|
|
3333
3348
|
}
|
|
3334
|
-
class
|
|
3349
|
+
class Bo {
|
|
3335
3350
|
constructor(e) {
|
|
3336
3351
|
if (z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "providers", {}), z(this, "channelPolicy", void 0), z(this, "adsActionDetection", void 0), z(this, "requestContext", void 0), z(this, "adsRequest", void 0), z(this, "initialized", !1), z(this, "adsIsShowing", !1), z(this, "lastAdBreak", void 0), z(this, "initializedTimeStamp", Date.now()), e)
|
|
3337
|
-
this.context = e, this.channelPolicy = new
|
|
3352
|
+
this.context = e, this.channelPolicy = new On(this.context), this.adsActionDetection = new In(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new Di(e), this.requestContext = new mt(e);
|
|
3338
3353
|
else
|
|
3339
3354
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
3340
3355
|
}
|
|
@@ -3353,23 +3368,23 @@ class No {
|
|
|
3353
3368
|
for (const n of i)
|
|
3354
3369
|
switch (n.provider) {
|
|
3355
3370
|
case "GOOGLE_GPT": {
|
|
3356
|
-
const r = new
|
|
3371
|
+
const r = new Zr(this.context, n.params);
|
|
3357
3372
|
await r.init(), this.providers[n.provider] = r;
|
|
3358
3373
|
break;
|
|
3359
3374
|
}
|
|
3360
3375
|
case "ADSENSE":
|
|
3361
3376
|
case "ADSENSE_ADMOB": {
|
|
3362
|
-
const r = new
|
|
3377
|
+
const r = new Dn(this.context, n.params);
|
|
3363
3378
|
await r.init(), this.providers[n.provider] = r;
|
|
3364
3379
|
break;
|
|
3365
3380
|
}
|
|
3366
3381
|
case "OKSPIN": {
|
|
3367
|
-
const r = new
|
|
3382
|
+
const r = new Br(this.context, n.params);
|
|
3368
3383
|
await r.init(), this.providers.OKSPIN = r;
|
|
3369
3384
|
break;
|
|
3370
3385
|
}
|
|
3371
3386
|
case "APPSROCKETS": {
|
|
3372
|
-
const r = new
|
|
3387
|
+
const r = new Kr(this.context, n.params);
|
|
3373
3388
|
await r.init(), this.providers.APPSROCKETS = r;
|
|
3374
3389
|
break;
|
|
3375
3390
|
}
|
|
@@ -3380,7 +3395,7 @@ class No {
|
|
|
3380
3395
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
3381
3396
|
}
|
|
3382
3397
|
async adBreak(e) {
|
|
3383
|
-
var r, o, s, a, d, l, u, h, c, f;
|
|
3398
|
+
var r, o, s, a, d, l, u, h, c, f, w, g, p, y;
|
|
3384
3399
|
const i = Date.now();
|
|
3385
3400
|
if (i - this.initializedTimeStamp < 3e3) {
|
|
3386
3401
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
@@ -3428,11 +3443,53 @@ class No {
|
|
|
3428
3443
|
return;
|
|
3429
3444
|
}
|
|
3430
3445
|
try {
|
|
3431
|
-
const v = await this.adsRequest.getAFGAdsInfo(e.type);
|
|
3432
|
-
if (
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3446
|
+
const v = await this.adsRequest.getAFGAdsInfo(e.type), b = v == null ? void 0 : v.data, T = v == null ? void 0 : v.code;
|
|
3447
|
+
if (T === "BYPASS_ADS") {
|
|
3448
|
+
switch (e.type) {
|
|
3449
|
+
case "preroll": {
|
|
3450
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
3451
|
+
breakType: e.type,
|
|
3452
|
+
breakFormat: "interstitial",
|
|
3453
|
+
breakStatus: "viewed"
|
|
3454
|
+
});
|
|
3455
|
+
break;
|
|
3456
|
+
}
|
|
3457
|
+
case "reward": {
|
|
3458
|
+
e.beforeReward(() => {
|
|
3459
|
+
var R, O, A, Te;
|
|
3460
|
+
(R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (Te = e.adBreakDone) == null || Te.call(e, {
|
|
3461
|
+
breakType: e.type,
|
|
3462
|
+
breakName: e.name,
|
|
3463
|
+
breakFormat: "reward",
|
|
3464
|
+
breakStatus: "viewed"
|
|
3465
|
+
});
|
|
3466
|
+
});
|
|
3467
|
+
break;
|
|
3468
|
+
}
|
|
3469
|
+
default: {
|
|
3470
|
+
(u = e.beforeAd) == null || u.call(e), (h = e.afterAd) == null || h.call(e), (c = e.adBreakDone) == null || c.call(e, {
|
|
3471
|
+
breakType: e.type,
|
|
3472
|
+
breakName: e.name,
|
|
3473
|
+
breakFormat: "interstitial",
|
|
3474
|
+
breakStatus: "viewed"
|
|
3475
|
+
});
|
|
3476
|
+
break;
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
return;
|
|
3480
|
+
}
|
|
3481
|
+
if (!b || T !== "SUCCESS") {
|
|
3482
|
+
(f = e.adBreakDone) == null || f.call(e, {
|
|
3483
|
+
breakType: e.type,
|
|
3484
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3485
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3486
|
+
breakStatus: "noAdPreloaded"
|
|
3487
|
+
});
|
|
3488
|
+
return;
|
|
3489
|
+
} else {
|
|
3490
|
+
const R = b.sort((Ce, De) => Ce.seq - De.seq);
|
|
3491
|
+
if (R.length === 0) {
|
|
3492
|
+
(w = e.adBreakDone) == null || w.call(e, {
|
|
3436
3493
|
breakType: e.type,
|
|
3437
3494
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3438
3495
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3440,58 +3497,50 @@ class No {
|
|
|
3440
3497
|
});
|
|
3441
3498
|
return;
|
|
3442
3499
|
}
|
|
3443
|
-
let
|
|
3444
|
-
const
|
|
3445
|
-
for (this.adsActionDetection.adBreakIsShowing = !0;
|
|
3446
|
-
const
|
|
3447
|
-
if (
|
|
3448
|
-
const [
|
|
3449
|
-
var
|
|
3450
|
-
this.adsIsShowing =
|
|
3500
|
+
let O = !0, A = null;
|
|
3501
|
+
const Te = new Sn(this.context);
|
|
3502
|
+
for (this.adsActionDetection.adBreakIsShowing = !0; R.length > 0; ) {
|
|
3503
|
+
const Ce = R.shift(), De = this.providers[Ce.provider];
|
|
3504
|
+
if (De) {
|
|
3505
|
+
const [Li, Pi] = await Te.callAdBreakAndContinue(De, e, Ce, (St) => {
|
|
3506
|
+
var Et;
|
|
3507
|
+
this.adsIsShowing = St, (Et = this.context.eventEmitter) == null || Et.emit("isAdShowing", St);
|
|
3451
3508
|
});
|
|
3452
|
-
|
|
3509
|
+
O = Li, A = Pi;
|
|
3453
3510
|
} else
|
|
3454
|
-
|
|
3511
|
+
O = !0, A = {
|
|
3455
3512
|
breakType: e.type,
|
|
3456
3513
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3457
3514
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3458
3515
|
breakStatus: "notReady"
|
|
3459
3516
|
};
|
|
3460
|
-
if (!
|
|
3517
|
+
if (!O)
|
|
3461
3518
|
break;
|
|
3462
3519
|
}
|
|
3463
|
-
|
|
3464
|
-
} else {
|
|
3465
|
-
(l = e.adBreakDone) == null || l.call(e, {
|
|
3466
|
-
breakType: e.type,
|
|
3467
|
-
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3468
|
-
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3469
|
-
breakStatus: "noAdPreloaded"
|
|
3470
|
-
});
|
|
3471
|
-
return;
|
|
3520
|
+
O && A && ((g = e.adBreakDone) == null || g.call(e, A));
|
|
3472
3521
|
}
|
|
3473
3522
|
} catch (v) {
|
|
3474
|
-
(
|
|
3523
|
+
(p = e.adBreakDone) == null || p.call(e, {
|
|
3475
3524
|
breakType: e.type,
|
|
3476
3525
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3477
3526
|
breakStatus: "noAdPreloaded"
|
|
3478
3527
|
});
|
|
3479
3528
|
} finally {
|
|
3480
|
-
this.adsIsShowing = !1, (
|
|
3529
|
+
this.adsIsShowing = !1, (y = this.context.eventEmitter) == null || y.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
3481
3530
|
}
|
|
3482
3531
|
}
|
|
3483
3532
|
adUnit(e) {
|
|
3484
3533
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
3485
3534
|
}
|
|
3486
3535
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return (e =
|
|
3536
|
+
function Me(t, e, i) {
|
|
3537
|
+
return (e = ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3489
3538
|
}
|
|
3490
|
-
function
|
|
3491
|
-
var e =
|
|
3539
|
+
function ao(t) {
|
|
3540
|
+
var e = lo(t, "string");
|
|
3492
3541
|
return typeof e == "symbol" ? e : e + "";
|
|
3493
3542
|
}
|
|
3494
|
-
function
|
|
3543
|
+
function lo(t, e) {
|
|
3495
3544
|
if (typeof t != "object" || !t)
|
|
3496
3545
|
return t;
|
|
3497
3546
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3503,9 +3552,9 @@ function to(t, e) {
|
|
|
3503
3552
|
}
|
|
3504
3553
|
return (e === "string" ? String : Number)(t);
|
|
3505
3554
|
}
|
|
3506
|
-
class
|
|
3555
|
+
class uo {
|
|
3507
3556
|
constructor(e) {
|
|
3508
|
-
|
|
3557
|
+
Me(this, "context", void 0), Me(this, "currentProvider", void 0), Me(this, "continueCallback", void 0), Me(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
3509
3558
|
}
|
|
3510
3559
|
get paramsToTrack() {
|
|
3511
3560
|
var e, i;
|
|
@@ -3526,7 +3575,7 @@ class io {
|
|
|
3526
3575
|
wrapAdPlaying(e) {
|
|
3527
3576
|
return (i) => {
|
|
3528
3577
|
var n, r;
|
|
3529
|
-
this.context.track("CallAFVPlaying", this.paramsToTrack),
|
|
3578
|
+
this.context.track("CallAFVPlaying", this.paramsToTrack), st() && this.context.track("mmp_ad_impression", {
|
|
3530
3579
|
ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
|
|
3531
3580
|
ad_format: "AFV",
|
|
3532
3581
|
module: "drama",
|
|
@@ -3554,14 +3603,14 @@ class io {
|
|
|
3554
3603
|
});
|
|
3555
3604
|
}
|
|
3556
3605
|
}
|
|
3557
|
-
function
|
|
3558
|
-
return (e =
|
|
3606
|
+
function ot(t, e, i) {
|
|
3607
|
+
return (e = co(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3559
3608
|
}
|
|
3560
|
-
function
|
|
3561
|
-
var e =
|
|
3609
|
+
function co(t) {
|
|
3610
|
+
var e = ho(t, "string");
|
|
3562
3611
|
return typeof e == "symbol" ? e : e + "";
|
|
3563
3612
|
}
|
|
3564
|
-
function
|
|
3613
|
+
function ho(t, e) {
|
|
3565
3614
|
if (typeof t != "object" || !t)
|
|
3566
3615
|
return t;
|
|
3567
3616
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3573,27 +3622,27 @@ function ro(t, e) {
|
|
|
3573
3622
|
}
|
|
3574
3623
|
return (e === "string" ? String : Number)(t);
|
|
3575
3624
|
}
|
|
3576
|
-
class
|
|
3625
|
+
class P extends Error {
|
|
3577
3626
|
constructor(e, i) {
|
|
3578
|
-
super(e.message),
|
|
3627
|
+
super(e.message), ot(this, "name", void 0), ot(this, "type", void 0), ot(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
3579
3628
|
}
|
|
3580
3629
|
static from(e, i) {
|
|
3581
3630
|
switch (i) {
|
|
3582
3631
|
case "GOOGLE_IMA_ERROR":
|
|
3583
|
-
return new
|
|
3632
|
+
return new P(e, i);
|
|
3584
3633
|
case "JOLIBOX_IMA_ERROR":
|
|
3585
|
-
return new
|
|
3634
|
+
return new P(e, i);
|
|
3586
3635
|
}
|
|
3587
3636
|
}
|
|
3588
3637
|
}
|
|
3589
3638
|
function I(t, e, i) {
|
|
3590
|
-
return (e =
|
|
3639
|
+
return (e = fo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3591
3640
|
}
|
|
3592
|
-
function
|
|
3593
|
-
var e =
|
|
3641
|
+
function fo(t) {
|
|
3642
|
+
var e = vo(t, "string");
|
|
3594
3643
|
return typeof e == "symbol" ? e : e + "";
|
|
3595
3644
|
}
|
|
3596
|
-
function
|
|
3645
|
+
function vo(t, e) {
|
|
3597
3646
|
if (typeof t != "object" || !t)
|
|
3598
3647
|
return t;
|
|
3599
3648
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3605,16 +3654,16 @@ function so(t, e) {
|
|
|
3605
3654
|
}
|
|
3606
3655
|
return (e === "string" ? String : Number)(t);
|
|
3607
3656
|
}
|
|
3608
|
-
class
|
|
3657
|
+
class go {
|
|
3609
3658
|
constructor(e, i, n) {
|
|
3610
3659
|
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", () => {
|
|
3611
|
-
var r, o, s, a, d, l, u, h, c, f,
|
|
3612
|
-
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), (u = this.adsManager) == null || u.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), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (
|
|
3660
|
+
var r, o, s, a, d, l, u, h, c, f, w;
|
|
3661
|
+
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), (u = this.adsManager) == null || u.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), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (w = this.adsManager) == null || w.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
|
|
3613
3662
|
}), I(this, "requestAds", async (r, o) => {
|
|
3614
3663
|
var u;
|
|
3615
3664
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
|
|
3616
3665
|
var c;
|
|
3617
|
-
return (c = r.onAdError) == null ? void 0 : c.call(r,
|
|
3666
|
+
return (c = r.onAdError) == null ? void 0 : c.call(r, P.from(h, "GOOGLE_IMA_ERROR"));
|
|
3618
3667
|
}, 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);
|
|
3619
3668
|
const s = () => {
|
|
3620
3669
|
var h;
|
|
@@ -3670,9 +3719,9 @@ class ao {
|
|
|
3670
3719
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3671
3720
|
}
|
|
3672
3721
|
}
|
|
3673
|
-
var
|
|
3674
|
-
const
|
|
3675
|
-
const t =
|
|
3722
|
+
var Ge = /* @__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))(Ge || {});
|
|
3723
|
+
const yo = () => {
|
|
3724
|
+
const t = E(!1), e = E(!1), i = E(null), n = Rt(), r = Rt();
|
|
3676
3725
|
return {
|
|
3677
3726
|
visible: t,
|
|
3678
3727
|
canRetry: e,
|
|
@@ -3680,8 +3729,8 @@ const lo = () => {
|
|
|
3680
3729
|
videoRef: n,
|
|
3681
3730
|
adContainerRef: r
|
|
3682
3731
|
};
|
|
3683
|
-
},
|
|
3684
|
-
${
|
|
3732
|
+
}, wo = ye`
|
|
3733
|
+
${F}
|
|
3685
3734
|
position: fixed;
|
|
3686
3735
|
left: 0;
|
|
3687
3736
|
top: 0;
|
|
@@ -3696,7 +3745,7 @@ const lo = () => {
|
|
|
3696
3745
|
}
|
|
3697
3746
|
|
|
3698
3747
|
.ads-wrapper {
|
|
3699
|
-
${
|
|
3748
|
+
${F}
|
|
3700
3749
|
position: relative;
|
|
3701
3750
|
width: 100%;
|
|
3702
3751
|
height: 100%;
|
|
@@ -3719,7 +3768,7 @@ const lo = () => {
|
|
|
3719
3768
|
}
|
|
3720
3769
|
|
|
3721
3770
|
.retry-button {
|
|
3722
|
-
${
|
|
3771
|
+
${F}
|
|
3723
3772
|
position: absolute;
|
|
3724
3773
|
width: 100%;
|
|
3725
3774
|
height: 100%;
|
|
@@ -3729,7 +3778,7 @@ const lo = () => {
|
|
|
3729
3778
|
cursor: pointer;
|
|
3730
3779
|
}
|
|
3731
3780
|
}
|
|
3732
|
-
`,
|
|
3781
|
+
`, po = (t) => {
|
|
3733
3782
|
let {
|
|
3734
3783
|
onReady: e,
|
|
3735
3784
|
state: i
|
|
@@ -3741,14 +3790,14 @@ const lo = () => {
|
|
|
3741
3790
|
videoRef: s,
|
|
3742
3791
|
adContainerRef: a
|
|
3743
3792
|
} = i, d = () => {
|
|
3744
|
-
r.value && (r.value(),
|
|
3793
|
+
r.value && (r.value(), D(() => {
|
|
3745
3794
|
r.value = null, o.value = !1;
|
|
3746
3795
|
}));
|
|
3747
3796
|
};
|
|
3748
|
-
return
|
|
3797
|
+
return We(() => {
|
|
3749
3798
|
e();
|
|
3750
3799
|
}, [e]), _("div", {
|
|
3751
|
-
className:
|
|
3800
|
+
className: wo,
|
|
3752
3801
|
"data-visible": n.value,
|
|
3753
3802
|
children: _("div", {
|
|
3754
3803
|
className: "ads-wrapper",
|
|
@@ -3785,13 +3834,13 @@ const lo = () => {
|
|
|
3785
3834
|
});
|
|
3786
3835
|
};
|
|
3787
3836
|
function te(t, e, i) {
|
|
3788
|
-
return (e =
|
|
3837
|
+
return (e = bo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3789
3838
|
}
|
|
3790
|
-
function
|
|
3791
|
-
var e =
|
|
3839
|
+
function bo(t) {
|
|
3840
|
+
var e = Ao(t, "string");
|
|
3792
3841
|
return typeof e == "symbol" ? e : e + "";
|
|
3793
3842
|
}
|
|
3794
|
-
function
|
|
3843
|
+
function Ao(t, e) {
|
|
3795
3844
|
if (typeof t != "object" || !t)
|
|
3796
3845
|
return t;
|
|
3797
3846
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3803,9 +3852,9 @@ function fo(t, e) {
|
|
|
3803
3852
|
}
|
|
3804
3853
|
return (e === "string" ? String : Number)(t);
|
|
3805
3854
|
}
|
|
3806
|
-
class
|
|
3855
|
+
class _o {
|
|
3807
3856
|
constructor(e) {
|
|
3808
|
-
te(this, "name", "GOOGLE_IMA"), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "initialized", !1), te(this, "ima", null), te(this, "state",
|
|
3857
|
+
te(this, "name", "GOOGLE_IMA"), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "initialized", !1), te(this, "ima", null), te(this, "state", yo()), te(this, "init", async (i) => {
|
|
3809
3858
|
if (this.initialized)
|
|
3810
3859
|
return;
|
|
3811
3860
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -3821,10 +3870,10 @@ class vo {
|
|
|
3821
3870
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3822
3871
|
}
|
|
3823
3872
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3824
|
-
oe(_(
|
|
3873
|
+
oe(_(po, {
|
|
3825
3874
|
state: this.state,
|
|
3826
3875
|
onReady: () => {
|
|
3827
|
-
this.ima = new
|
|
3876
|
+
this.ima = new go(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3828
3877
|
}
|
|
3829
3878
|
}), this.adsOverlay);
|
|
3830
3879
|
}), this.initialized = !0;
|
|
@@ -3833,7 +3882,7 @@ class vo {
|
|
|
3833
3882
|
}), te(this, "requestAd", (i, n) => {
|
|
3834
3883
|
var u;
|
|
3835
3884
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3836
|
-
const h =
|
|
3885
|
+
const h = P.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3837
3886
|
(u = i.onAdError) == null || u.call(i, h);
|
|
3838
3887
|
return;
|
|
3839
3888
|
}
|
|
@@ -3846,9 +3895,9 @@ class vo {
|
|
|
3846
3895
|
r = !0;
|
|
3847
3896
|
let c = !1;
|
|
3848
3897
|
switch (h.raw.getErrorCode()) {
|
|
3849
|
-
case
|
|
3850
|
-
case
|
|
3851
|
-
case
|
|
3898
|
+
case Ge.AUTOPLAY_DISALLOWED:
|
|
3899
|
+
case Ge.VIDEO_PLAY_ERROR:
|
|
3900
|
+
case Ge.ADS_REQUEST_NETWORK_ERROR: {
|
|
3852
3901
|
c = !0;
|
|
3853
3902
|
break;
|
|
3854
3903
|
}
|
|
@@ -3858,15 +3907,15 @@ class vo {
|
|
|
3858
3907
|
}
|
|
3859
3908
|
}
|
|
3860
3909
|
if (!c)
|
|
3861
|
-
this.ima.destroy(),
|
|
3910
|
+
this.ima.destroy(), D(() => {
|
|
3862
3911
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3863
3912
|
}), (f = i.onAdError) == null || f.call(i, h);
|
|
3864
3913
|
else {
|
|
3865
|
-
const
|
|
3914
|
+
const w = () => {
|
|
3866
3915
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3867
3916
|
};
|
|
3868
|
-
|
|
3869
|
-
this.state.canRetry.value = !0, this.state.retry.value =
|
|
3917
|
+
D(() => {
|
|
3918
|
+
this.state.canRetry.value = !0, this.state.retry.value = w;
|
|
3870
3919
|
});
|
|
3871
3920
|
}
|
|
3872
3921
|
}, a = (h) => {
|
|
@@ -3879,10 +3928,10 @@ class vo {
|
|
|
3879
3928
|
l.onAdCompleted = o, l.onAdError = s, l.onAdLoaded = a, l.onAdPlaying = d, this.ima.requestAds(l, n), window.setTimeout(() => {
|
|
3880
3929
|
var h, c;
|
|
3881
3930
|
if (!r) {
|
|
3882
|
-
|
|
3931
|
+
D(() => {
|
|
3883
3932
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3884
3933
|
});
|
|
3885
|
-
const f =
|
|
3934
|
+
const f = P.from(new Error("Ad server not responded"), "GOOGLE_IMA_ERROR");
|
|
3886
3935
|
(h = i.onAdError) == null || h.call(i, f), (c = this.ima) == null || c.destroy();
|
|
3887
3936
|
}
|
|
3888
3937
|
}, 5e3);
|
|
@@ -3890,13 +3939,13 @@ class vo {
|
|
|
3890
3939
|
}
|
|
3891
3940
|
}
|
|
3892
3941
|
function J(t, e, i) {
|
|
3893
|
-
return (e =
|
|
3942
|
+
return (e = mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3894
3943
|
}
|
|
3895
|
-
function
|
|
3896
|
-
var e =
|
|
3944
|
+
function mo(t) {
|
|
3945
|
+
var e = So(t, "string");
|
|
3897
3946
|
return typeof e == "symbol" ? e : e + "";
|
|
3898
3947
|
}
|
|
3899
|
-
function
|
|
3948
|
+
function So(t, e) {
|
|
3900
3949
|
if (typeof t != "object" || !t)
|
|
3901
3950
|
return t;
|
|
3902
3951
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3908,11 +3957,11 @@ function yo(t, e) {
|
|
|
3908
3957
|
}
|
|
3909
3958
|
return (e === "string" ? String : Number)(t);
|
|
3910
3959
|
}
|
|
3911
|
-
class
|
|
3960
|
+
class Eo {
|
|
3912
3961
|
constructor(e) {
|
|
3913
|
-
J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "state",
|
|
3962
|
+
J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "state", Ii()), J(this, "init", async (i) => {
|
|
3914
3963
|
var n;
|
|
3915
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(
|
|
3964
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(Ri, {
|
|
3916
3965
|
state: this.state
|
|
3917
3966
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3918
3967
|
}), J(this, "destroy", () => {
|
|
@@ -3921,11 +3970,11 @@ class po {
|
|
|
3921
3970
|
}), J(this, "requestAd", (i, n) => {
|
|
3922
3971
|
var s, a, d, l;
|
|
3923
3972
|
if (!this.adsOverlay || !this.initialized) {
|
|
3924
|
-
(s = i.onAdError) == null || s.call(i,
|
|
3973
|
+
(s = i.onAdError) == null || s.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3925
3974
|
return;
|
|
3926
3975
|
}
|
|
3927
3976
|
if (this.adsIsShowing) {
|
|
3928
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3977
|
+
(a = i.onAdError) == null || a.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3929
3978
|
return;
|
|
3930
3979
|
}
|
|
3931
3980
|
(d = i.onAdRequested) == null || d.call(i);
|
|
@@ -3936,7 +3985,7 @@ class po {
|
|
|
3936
3985
|
var u;
|
|
3937
3986
|
(u = i.onAdLoaded) == null || u.call(i, void 0);
|
|
3938
3987
|
};
|
|
3939
|
-
this.adsIsShowing = !0,
|
|
3988
|
+
this.adsIsShowing = !0, D(() => {
|
|
3940
3989
|
var u;
|
|
3941
3990
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (u = n.params.countdown) != null ? u : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
|
|
3942
3991
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
@@ -3944,13 +3993,13 @@ class po {
|
|
|
3944
3993
|
}
|
|
3945
3994
|
}
|
|
3946
3995
|
function H(t, e, i) {
|
|
3947
|
-
return (e =
|
|
3996
|
+
return (e = ko(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3948
3997
|
}
|
|
3949
|
-
function
|
|
3950
|
-
var e =
|
|
3998
|
+
function ko(t) {
|
|
3999
|
+
var e = Io(t, "string");
|
|
3951
4000
|
return typeof e == "symbol" ? e : e + "";
|
|
3952
4001
|
}
|
|
3953
|
-
function
|
|
4002
|
+
function Io(t, e) {
|
|
3954
4003
|
if (typeof t != "object" || !t)
|
|
3955
4004
|
return t;
|
|
3956
4005
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3962,15 +4011,15 @@ function bo(t, e) {
|
|
|
3962
4011
|
}
|
|
3963
4012
|
return (e === "string" ? String : Number)(t);
|
|
3964
4013
|
}
|
|
3965
|
-
class
|
|
4014
|
+
class Ro {
|
|
3966
4015
|
constructor(e) {
|
|
3967
|
-
H(this, "name", "APPSROCKETS"), H(this, "initialized", !1), H(this, "initCompleter", null), H(this, "context", void 0), H(this, "adsOverlay", null), H(this, "adsIsShowing", !1), H(this, "state",
|
|
4016
|
+
H(this, "name", "APPSROCKETS"), H(this, "initialized", !1), H(this, "initCompleter", null), H(this, "context", void 0), H(this, "adsOverlay", null), H(this, "adsIsShowing", !1), H(this, "state", xi()), H(this, "processUrl", (i) => {
|
|
3968
4017
|
var s;
|
|
3969
4018
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
3970
4019
|
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();
|
|
3971
4020
|
}), H(this, "init", async (i) => {
|
|
3972
4021
|
var n;
|
|
3973
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(
|
|
4022
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(Oi, {
|
|
3974
4023
|
state: this.state
|
|
3975
4024
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3976
4025
|
}), H(this, "destroy", () => {
|
|
@@ -3979,11 +4028,11 @@ class _o {
|
|
|
3979
4028
|
}), H(this, "requestAd", (i, n) => {
|
|
3980
4029
|
var d, l, u, h;
|
|
3981
4030
|
if (!this.adsOverlay || !this.initialized) {
|
|
3982
|
-
(d = i.onAdError) == null || d.call(i,
|
|
4031
|
+
(d = i.onAdError) == null || d.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3983
4032
|
return;
|
|
3984
4033
|
}
|
|
3985
4034
|
if (this.adsIsShowing) {
|
|
3986
|
-
(l = i.onAdError) == null || l.call(i,
|
|
4035
|
+
(l = i.onAdError) == null || l.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3987
4036
|
return;
|
|
3988
4037
|
}
|
|
3989
4038
|
(u = i.onAdRequested) == null || u.call(i);
|
|
@@ -3994,26 +4043,26 @@ class _o {
|
|
|
3994
4043
|
var c;
|
|
3995
4044
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3996
4045
|
}, s = (c) => {
|
|
3997
|
-
var f,
|
|
3998
|
-
(
|
|
4046
|
+
var f, w;
|
|
4047
|
+
(w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
|
|
3999
4048
|
}, a = () => {
|
|
4000
4049
|
var c;
|
|
4001
|
-
(c = i.onAdError) == null || c.call(i,
|
|
4050
|
+
(c = i.onAdError) == null || c.call(i, P.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
4002
4051
|
};
|
|
4003
|
-
this.adsIsShowing = !0,
|
|
4052
|
+
this.adsIsShowing = !0, D(() => {
|
|
4004
4053
|
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;
|
|
4005
4054
|
}), (h = i.onAdPlaying) == null || h.call(i, void 0);
|
|
4006
4055
|
}), this.context = e;
|
|
4007
4056
|
}
|
|
4008
4057
|
}
|
|
4009
4058
|
function ie(t, e, i) {
|
|
4010
|
-
return (e =
|
|
4059
|
+
return (e = xo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4011
4060
|
}
|
|
4012
|
-
function
|
|
4013
|
-
var e =
|
|
4061
|
+
function xo(t) {
|
|
4062
|
+
var e = Oo(t, "string");
|
|
4014
4063
|
return typeof e == "symbol" ? e : e + "";
|
|
4015
4064
|
}
|
|
4016
|
-
function
|
|
4065
|
+
function Oo(t, e) {
|
|
4017
4066
|
if (typeof t != "object" || !t)
|
|
4018
4067
|
return t;
|
|
4019
4068
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4025,12 +4074,12 @@ function mo(t, e) {
|
|
|
4025
4074
|
}
|
|
4026
4075
|
return (e === "string" ? String : Number)(t);
|
|
4027
4076
|
}
|
|
4028
|
-
class
|
|
4077
|
+
class To {
|
|
4029
4078
|
constructor(e) {
|
|
4030
4079
|
ie(this, "name", "GOOGLE_GPT"), ie(this, "context", void 0), ie(this, "contextInfo", void 0), ie(this, "rewardAdManager", void 0), ie(this, "init", async (i) => {
|
|
4031
4080
|
if (!this.rewardAdManager) {
|
|
4032
4081
|
const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
4033
|
-
this.rewardAdManager = new
|
|
4082
|
+
this.rewardAdManager = new Ci(n, o, i.params.keyValue);
|
|
4034
4083
|
}
|
|
4035
4084
|
}), ie(this, "insertScript", () => {
|
|
4036
4085
|
const i = "jolibox-google-gpt";
|
|
@@ -4045,7 +4094,7 @@ class So {
|
|
|
4045
4094
|
}), ie(this, "requestAd", (i, n) => {
|
|
4046
4095
|
var r;
|
|
4047
4096
|
if (!this.rewardAdManager) {
|
|
4048
|
-
(r = i.onAdError) == null || r.call(i,
|
|
4097
|
+
(r = i.onAdError) == null || r.call(i, P.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
4049
4098
|
return;
|
|
4050
4099
|
}
|
|
4051
4100
|
this.rewardAdManager.requestAds({
|
|
@@ -4068,7 +4117,7 @@ class So {
|
|
|
4068
4117
|
case "ignored":
|
|
4069
4118
|
break;
|
|
4070
4119
|
default: {
|
|
4071
|
-
(a = i.onAdError) == null || a.call(i,
|
|
4120
|
+
(a = i.onAdError) == null || a.call(i, P.from(new Error(o), "JOLIBOX_IMA_ERROR"));
|
|
4072
4121
|
break;
|
|
4073
4122
|
}
|
|
4074
4123
|
}
|
|
@@ -4078,13 +4127,13 @@ class So {
|
|
|
4078
4127
|
}
|
|
4079
4128
|
}
|
|
4080
4129
|
function de(t, e, i) {
|
|
4081
|
-
return (e =
|
|
4130
|
+
return (e = Co(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4082
4131
|
}
|
|
4083
|
-
function
|
|
4084
|
-
var e =
|
|
4132
|
+
function Co(t) {
|
|
4133
|
+
var e = Do(t, "string");
|
|
4085
4134
|
return typeof e == "symbol" ? e : e + "";
|
|
4086
4135
|
}
|
|
4087
|
-
function
|
|
4136
|
+
function Do(t, e) {
|
|
4088
4137
|
if (typeof t != "object" || !t)
|
|
4089
4138
|
return t;
|
|
4090
4139
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4096,10 +4145,10 @@ function ko(t, e) {
|
|
|
4096
4145
|
}
|
|
4097
4146
|
return (e === "string" ? String : Number)(t);
|
|
4098
4147
|
}
|
|
4099
|
-
class
|
|
4148
|
+
class Vo {
|
|
4100
4149
|
constructor(e) {
|
|
4101
4150
|
if (de(this, "context", void 0), de(this, "contextInfo", void 0), de(this, "providers", {}), de(this, "requestContext", void 0), de(this, "adsRequest", void 0), de(this, "initialized", !1), e)
|
|
4102
|
-
this.context = e, this.requestContext = new
|
|
4151
|
+
this.context = e, this.requestContext = new mt(e), this.adsRequest = new Di(e, {
|
|
4103
4152
|
reward: !1,
|
|
4104
4153
|
interstitial: !1,
|
|
4105
4154
|
afv: !1
|
|
@@ -4121,22 +4170,22 @@ class Mo {
|
|
|
4121
4170
|
for (const i of e)
|
|
4122
4171
|
switch (i.provider) {
|
|
4123
4172
|
case "GOOGLE_GPT": {
|
|
4124
|
-
const n = new
|
|
4173
|
+
const n = new To(this.context);
|
|
4125
4174
|
await n.init(i), this.providers.GOOGLE_GPT = n;
|
|
4126
4175
|
break;
|
|
4127
4176
|
}
|
|
4128
4177
|
case "GOOGLE_IMA": {
|
|
4129
|
-
const n = new
|
|
4178
|
+
const n = new _o(this.context);
|
|
4130
4179
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
4131
4180
|
break;
|
|
4132
4181
|
}
|
|
4133
4182
|
case "OKSPIN": {
|
|
4134
|
-
const n = new
|
|
4183
|
+
const n = new Eo(this.context);
|
|
4135
4184
|
await n.init(i), this.providers.OKSPIN = n;
|
|
4136
4185
|
break;
|
|
4137
4186
|
}
|
|
4138
4187
|
case "APPSROCKETS": {
|
|
4139
|
-
const n = new
|
|
4188
|
+
const n = new Ro(this.context);
|
|
4140
4189
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
4141
4190
|
break;
|
|
4142
4191
|
}
|
|
@@ -4153,55 +4202,59 @@ class Mo {
|
|
|
4153
4202
|
this.initialized = !1;
|
|
4154
4203
|
}
|
|
4155
4204
|
async requestAd(e) {
|
|
4156
|
-
var i, n, r, o, s, a, d;
|
|
4205
|
+
var i, n, r, o, s, a, d, l, u, h, c;
|
|
4157
4206
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
4158
|
-
const
|
|
4159
|
-
(n = e.onAdError) == null || n.call(e,
|
|
4207
|
+
const f = P.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
4208
|
+
(n = e.onAdError) == null || n.call(e, f);
|
|
4160
4209
|
return;
|
|
4161
4210
|
}
|
|
4162
4211
|
try {
|
|
4163
|
-
const
|
|
4164
|
-
if (
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4212
|
+
const f = await this.adsRequest.getAFVAdsInfo(!0), w = f == null ? void 0 : f.code, g = f == null ? void 0 : f.data;
|
|
4213
|
+
if (w === "BYPASS_ADS") {
|
|
4214
|
+
(r = e.onAdRequested) == null || r.call(e), (o = e.onAdLoaded) == null || o.call(e, void 0), (s = e.onAdPlaying) == null || s.call(e, void 0), (a = e.onAdCompleted) == null || a.call(e, void 0);
|
|
4215
|
+
return;
|
|
4216
|
+
}
|
|
4217
|
+
if (g) {
|
|
4218
|
+
const p = g == null ? void 0 : g.sort((T, R) => T.seq - R.seq);
|
|
4219
|
+
if (p.length === 0) {
|
|
4220
|
+
const T = P.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
4221
|
+
(l = e.onAdError) == null || l.call(e, T);
|
|
4169
4222
|
return;
|
|
4170
4223
|
}
|
|
4171
|
-
let
|
|
4172
|
-
const
|
|
4173
|
-
for (;
|
|
4174
|
-
const
|
|
4175
|
-
if (
|
|
4176
|
-
const [
|
|
4177
|
-
|
|
4224
|
+
let y = !0, v = null;
|
|
4225
|
+
const b = new uo(this.context);
|
|
4226
|
+
for (; p.length > 0; ) {
|
|
4227
|
+
const T = p.shift(), R = this.providers[T.provider];
|
|
4228
|
+
if (R) {
|
|
4229
|
+
const [O, A] = await b.callAdRequestAndContinue(R, e, T);
|
|
4230
|
+
y = O, v = A;
|
|
4178
4231
|
} else
|
|
4179
|
-
|
|
4180
|
-
if (!
|
|
4232
|
+
y = !0, v = P.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
4233
|
+
if (!y)
|
|
4181
4234
|
break;
|
|
4182
4235
|
}
|
|
4183
|
-
|
|
4236
|
+
y && v && ((u = e.onAdError) == null || u.call(e, v));
|
|
4184
4237
|
} else {
|
|
4185
|
-
const
|
|
4186
|
-
(
|
|
4238
|
+
const p = P.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
4239
|
+
(d = e.onAdError) == null || d.call(e, p);
|
|
4187
4240
|
return;
|
|
4188
4241
|
}
|
|
4189
|
-
} catch (
|
|
4190
|
-
const
|
|
4191
|
-
(
|
|
4242
|
+
} catch (f) {
|
|
4243
|
+
const w = P.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
4244
|
+
(h = e.onAdError) == null || h.call(e, w);
|
|
4192
4245
|
} finally {
|
|
4193
|
-
(
|
|
4246
|
+
(c = this.context.eventEmitter) == null || c.emit("isAdShowing", !1);
|
|
4194
4247
|
}
|
|
4195
4248
|
}
|
|
4196
4249
|
}
|
|
4197
4250
|
function le(t, e, i) {
|
|
4198
|
-
return (e =
|
|
4251
|
+
return (e = Lo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4199
4252
|
}
|
|
4200
|
-
function
|
|
4201
|
-
var e =
|
|
4253
|
+
function Lo(t) {
|
|
4254
|
+
var e = Po(t, "string");
|
|
4202
4255
|
return typeof e == "symbol" ? e : e + "";
|
|
4203
4256
|
}
|
|
4204
|
-
function
|
|
4257
|
+
function Po(t, e) {
|
|
4205
4258
|
if (typeof t != "object" || !t)
|
|
4206
4259
|
return t;
|
|
4207
4260
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4213,21 +4266,21 @@ function Ro(t, e) {
|
|
|
4213
4266
|
}
|
|
4214
4267
|
return (e === "string" ? String : Number)(t);
|
|
4215
4268
|
}
|
|
4216
|
-
class
|
|
4269
|
+
class Go extends Error {
|
|
4217
4270
|
constructor(e) {
|
|
4218
4271
|
super(e), le(this, "name", void 0), le(this, "message", void 0), le(this, "errMsg", void 0), le(this, "code", void 0), le(this, "data", void 0), le(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
4219
4272
|
}
|
|
4220
4273
|
}
|
|
4221
4274
|
export {
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4275
|
+
P as AFVWrappedError,
|
|
4276
|
+
Dn as GoogleAdSenseProvider,
|
|
4277
|
+
_o as GoogleIMAProvider,
|
|
4278
|
+
Yr as InterstitialAdManager,
|
|
4279
|
+
Bo as JoliboxAdsForGame,
|
|
4280
|
+
Vo as JoliboxAdsForVideo,
|
|
4281
|
+
Br as OKSpinForGameProvider,
|
|
4282
|
+
Eo as OKSpinForVideoProvider,
|
|
4283
|
+
Go as ResponseError,
|
|
4284
|
+
Ci as RewardAdManager,
|
|
4285
|
+
Ti as initGPTServices
|
|
4233
4286
|
};
|