@jolibox/ads 1.2.1 → 1.2.2

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/index.js CHANGED
@@ -1,39 +1,48 @@
1
- var Rt = Object.getOwnPropertySymbols;
2
- var Mi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable;
3
- var It = (t, e) => {
1
+ var ji = Object.defineProperty;
2
+ var Pe = Object.getOwnPropertySymbols;
3
+ var xt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable;
4
+ var Rt = (t, e, i) => e in t ? ji(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Tt = (t, e) => {
5
+ for (var i in e || (e = {}))
6
+ xt.call(e, i) && Rt(t, i, e[i]);
7
+ if (Pe)
8
+ for (var i of Pe(e))
9
+ Ot.call(e, i) && Rt(t, i, e[i]);
10
+ return t;
11
+ };
12
+ var Ct = (t, e) => {
4
13
  var i = {};
5
14
  for (var n in t)
6
- Mi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
- if (t != null && Rt)
8
- for (var n of Rt(t))
9
- e.indexOf(n) < 0 && $i.call(t, n) && (i[n] = t[n]);
15
+ xt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
16
+ if (t != null && Pe)
17
+ for (var n of Pe(t))
18
+ e.indexOf(n) < 0 && Ot.call(t, n) && (i[n] = t[n]);
10
19
  return i;
11
20
  };
12
- import { options as ve, Component as Bi, isValidElement as Fi } from "preact";
13
- import { useRef as ji, useLayoutEffect as Ui, useEffect as Je, useMemo as Vi, useState as Qt, useCallback as Gi, render as oe, createRef as xt } from "preact/compat";
14
- var Zt = Object.defineProperty, qi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, zi = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Tt = (t, e, i) => e in t ? Zt(t, e, {
21
+ import { options as ve, Component as Ui, isValidElement as Vi } from "preact";
22
+ import { useRef as Gi, useLayoutEffect as qi, useEffect as Xe, useMemo as Ki, useState as ii, useCallback as zi, render as oe, createRef as Dt } from "preact/compat";
23
+ var ni = Object.defineProperty, Hi = Object.defineProperties, Wi = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Xi = Object.prototype.propertyIsEnumerable, Pt = (t, e, i) => e in t ? ni(t, e, {
15
24
  enumerable: !0,
16
25
  configurable: !0,
17
26
  writable: !0,
18
27
  value: i
19
- }) : t[e] = i, Wi = (t, e) => {
28
+ }) : t[e] = i, Yi = (t, e) => {
20
29
  for (var i in e || (e = {}))
21
- zi.call(e, i) && Tt(t, i, e[i]);
22
- if (Ot)
23
- for (var i of Ot(e))
24
- Hi.call(e, i) && Tt(t, i, e[i]);
30
+ Ji.call(e, i) && Pt(t, i, e[i]);
31
+ if (Lt)
32
+ for (var i of Lt(e))
33
+ Xi.call(e, i) && Pt(t, i, e[i]);
25
34
  return t;
26
- }, Ji = (t, e) => qi(t, Ki(e)), Yi = (t, e) => {
35
+ }, Qi = (t, e) => Hi(t, Wi(e)), Zi = (t, e) => {
27
36
  for (var i in e)
28
- Zt(t, i, {
37
+ ni(t, i, {
29
38
  get: e[i],
30
39
  enumerable: !0
31
40
  });
32
- }, ei = (t, e, i, n) => {
41
+ }, ri = (t, e, i, n) => {
33
42
  for (var r = e, o = t.length - 1, s; o >= 0; o--)
34
43
  (s = t[o]) && (r = s(r) || r);
35
44
  return r;
36
- }, Xi = (t, e, i) => new Promise((n, r) => {
45
+ }, en = (t, e, i) => new Promise((n, r) => {
37
46
  var o = (d) => {
38
47
  try {
39
48
  a(i.next(d));
@@ -78,26 +87,26 @@ if (typeof window != "undefined" && !window.AbortController) {
78
87
  n.call(this, i);
79
88
  }, window.AbortController = t, window.AbortSignal = e;
80
89
  }
81
- function Qi(t) {
90
+ function tn(t) {
82
91
  return new Promise((e) => {
83
92
  setTimeout(() => {
84
93
  e();
85
94
  }, t);
86
95
  });
87
96
  }
88
- function Zi(t) {
97
+ function nn(t) {
89
98
  return typeof t == "string";
90
99
  }
91
- function en(t) {
100
+ function rn(t) {
92
101
  return typeof t == "undefined";
93
102
  }
94
- function tn(t) {
95
- return en(t) || t === null;
103
+ function on(t) {
104
+ return rn(t) || t === null;
96
105
  }
97
- function nn(t) {
106
+ function sn(t) {
98
107
  return typeof t == "function";
99
108
  }
100
- function ti(t) {
109
+ function oi(t) {
101
110
  let e = t, i = null, n = function() {
102
111
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
103
112
  o[s] = arguments[s];
@@ -105,14 +114,14 @@ function ti(t) {
105
114
  };
106
115
  return n.prototype = e.prototype, n;
107
116
  }
108
- var rn = ((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))(rn || {});
117
+ var an = ((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))(an || {});
109
118
  function Ae(t) {
110
119
  return function() {
111
120
  var e, i;
112
121
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
113
122
  };
114
123
  }
115
- var on = {
124
+ var dn = {
116
125
  log: Ae("log"),
117
126
  warn: Ae("warn"),
118
127
  info: Ae("info"),
@@ -120,14 +129,14 @@ var on = {
120
129
  debug: Ae("debug")
121
130
  };
122
131
  Object.assign(globalThis, {
123
- logger: on
132
+ logger: dn
124
133
  });
125
- var Ct = Symbol.for("Jolibox.canIUseMap"), sn = {};
126
- globalThis[Ct] || (globalThis[Ct] = sn);
127
- var Dt = Symbol.for("Jolibox.canIUseMap.native"), an = {};
128
- globalThis[Dt] || (globalThis[Dt] = an);
129
- var ii = ((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))(ii || {}), ni = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(ni || {}), ri = ((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))(ri || {}), Lt = ["name", "params"], dn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], ln = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
130
- function Be(t, e) {
134
+ var Nt = Symbol.for("Jolibox.canIUseMap"), ln = {};
135
+ globalThis[Nt] || (globalThis[Nt] = ln);
136
+ var Mt = Symbol.for("Jolibox.canIUseMap.native"), un = {};
137
+ globalThis[Mt] || (globalThis[Mt] = un);
138
+ var si = ((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))(si || {}), ai = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(ai || {}), di = ((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))(di || {}), $t = ["name", "params"], cn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], hn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
139
+ function Fe(t, e) {
131
140
  return e.map((i) => {
132
141
  if (i === "params" && t[i]) {
133
142
  let n = t[i];
@@ -136,18 +145,18 @@ function Be(t, e) {
136
145
  return t[i];
137
146
  });
138
147
  }
139
- function un(t) {
140
- let e = t.location ? Be(t.location, Lt) : null, i = t.target ? Be(t.target, Lt) : null;
141
- return Be(Ji(Wi({}, t), {
148
+ function fn(t) {
149
+ let e = t.location ? Fe(t.location, $t) : null, i = t.target ? Fe(t.target, $t) : null;
150
+ return Fe(Qi(Yi({}, t), {
142
151
  location: e,
143
152
  target: i
144
- }), dn);
153
+ }), cn);
145
154
  }
146
- function cn(t) {
147
- let e = t.events.map((n) => un(n)), i = Be(t.device, ln);
155
+ function vn(t) {
156
+ let e = t.events.map((n) => fn(n)), i = Fe(t.device, hn);
148
157
  return [t.protocolVersion, e, i, t.project];
149
158
  }
150
- function hn() {
159
+ function gn() {
151
160
  if (typeof window == "undefined")
152
161
  return {
153
162
  getItem: () => null,
@@ -180,16 +189,16 @@ function hn() {
180
189
  return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
181
190
  }
182
191
  }
183
- hn();
184
- var ce = typeof window == "undefined", at = () => !ce && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
192
+ gn();
193
+ var ce = typeof window == "undefined", dt = () => !ce && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
185
194
  !ce && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !ce && navigator.userAgent.includes("Android"), !ce && navigator.userAgent.includes("Mac"), !ce && navigator.userAgent.includes("FB_IAB"), !ce && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
186
- var dt = class lt {
195
+ var lt = class ut {
187
196
  constructor(e) {
188
- this.element = e, this.next = lt.Undefined, this.prev = lt.Undefined;
197
+ this.element = e, this.next = ut.Undefined, this.prev = ut.Undefined;
189
198
  }
190
199
  };
191
- dt.Undefined = new dt(void 0);
192
- var x = dt, fn = class {
200
+ lt.Undefined = new lt(void 0);
201
+ var x = lt, yn = class {
193
202
  constructor() {
194
203
  this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
195
204
  }
@@ -255,9 +264,9 @@ var x = dt, fn = class {
255
264
  for (; t !== x.Undefined; )
256
265
  yield t.element, t = t.next;
257
266
  }
258
- }, vn = 0, _e = class {
267
+ }, wn = 0, _e = class {
259
268
  constructor(t) {
260
- this.value = t, this.id = vn++;
269
+ this.value = t, this.id = wn++;
261
270
  }
262
271
  }, ke = class {
263
272
  constructor(e) {
@@ -277,13 +286,13 @@ var x = dt, fn = class {
277
286
  i && (e = e.bind(i));
278
287
  let l = new _e(e);
279
288
  return this._listeners ? this._listeners instanceof _e ? 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++, () => {
280
- var u, h, c, f;
289
+ var c, h, u, f;
281
290
  if (!this._disposed) {
282
291
  if (this._listeners instanceof _e)
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));
292
+ this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || h.call(c));
284
293
  else if (this._listeners) {
285
294
  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)));
295
+ w >= 0 && (this._listeners.splice(w, 1), this._size--, this._size === 0 && ((f = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || f.call(u)));
287
296
  }
288
297
  }
289
298
  };
@@ -310,7 +319,7 @@ var x = dt, fn = class {
310
319
  hasListeners() {
311
320
  return this._size > 0;
312
321
  }
313
- }, gn = class {
322
+ }, pn = class {
314
323
  constructor() {
315
324
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
316
325
  }
@@ -338,7 +347,7 @@ var x = dt, fn = class {
338
347
  let i = this.listeners.get(e), n = this.cachedEventQueue.get(e);
339
348
  for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
340
349
  o[s - 1] = arguments[s];
341
- n || (n = new fn(), this.cachedEventQueue.set(e, n)), n.push({
350
+ n || (n = new yn(), this.cachedEventQueue.set(e, n)), n.push({
342
351
  args: o
343
352
  }), i && i.fire({
344
353
  event: e,
@@ -352,20 +361,20 @@ var x = dt, fn = class {
352
361
  };
353
362
  this.on(e, r, !1);
354
363
  }
355
- }, ut = {};
356
- Yi(ut, {
357
- None: () => yn,
358
- filter: () => pn,
359
- once: () => oi,
360
- toPromise: () => wn
364
+ }, ct = {};
365
+ Zi(ct, {
366
+ None: () => bn,
367
+ filter: () => _n,
368
+ once: () => li,
369
+ toPromise: () => An
361
370
  });
362
- var yn = () => (console.log("[Jolibox SDK] None Event"), () => {
371
+ var bn = () => (console.log("[Jolibox SDK] None Event"), () => {
363
372
  console.log("[Jolibox SDK] None Event dispose");
364
373
  });
365
- function wn(t) {
366
- return new Promise((e) => oi(t)(e));
374
+ function An(t) {
375
+ return new Promise((e) => li(t)(e));
367
376
  }
368
- function oi(t) {
377
+ function li(t) {
369
378
  return function(e) {
370
379
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
371
380
  return t((r) => {
@@ -374,7 +383,7 @@ function oi(t) {
374
383
  }, null);
375
384
  };
376
385
  }
377
- function pn(t, e) {
386
+ function _n(t, e) {
378
387
  return ((i) => {
379
388
  let n = {
380
389
  onWillAddFirstListener() {
@@ -387,37 +396,37 @@ function pn(t, e) {
387
396
  return t((r) => e(r) && i.call(n, r), null);
388
397
  });
389
398
  }
390
- var et = Symbol.for("Jolibox.hostEmitter"), bn = () => {
391
- let t = new gn();
392
- return globalThis[et] || (globalThis[et] = {
399
+ var tt = Symbol.for("Jolibox.hostEmitter"), mn = () => {
400
+ let t = new pn();
401
+ return globalThis[tt] || (globalThis[tt] = {
393
402
  on: t.on.bind(t),
394
403
  off: t.off.bind(t),
395
404
  emit: t.emit.bind(t),
396
405
  once: t.once.bind(t)
397
- }), globalThis[et];
406
+ }), globalThis[tt];
398
407
  };
399
- bn();
400
- function An(t, e) {
408
+ mn();
409
+ function Sn(t, e) {
401
410
  let i = Math.min(t.length, e.length);
402
411
  for (let n = 0; n < i; n++)
403
- _n(t[n], e[n]);
412
+ En(t[n], e[n]);
404
413
  }
405
- function _n(t, e) {
406
- if (Zi(e)) {
414
+ function En(t, e) {
415
+ if (nn(e)) {
407
416
  if (typeof t !== e)
408
417
  throw new Error(`argument does not match constraint: typeof ${e}`);
409
- } else if (nn(e)) {
418
+ } else if (sn(e)) {
410
419
  try {
411
420
  if (t instanceof e)
412
421
  return;
413
422
  } catch (i) {
414
423
  }
415
- if (!tn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
424
+ if (!on(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
416
425
  return;
417
426
  throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
418
427
  }
419
428
  }
420
- var ct = class {
429
+ var ht = class {
421
430
  constructor() {
422
431
  this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new ke(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
423
432
  }
@@ -432,7 +441,7 @@ var ct = class {
432
441
  e.handler = function() {
433
442
  for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
434
443
  s[a] = arguments[a];
435
- return An(s, n), r(...s);
444
+ return Sn(s, n), r(...s);
436
445
  };
437
446
  }
438
447
  let {
@@ -452,19 +461,19 @@ var ct = class {
452
461
  return e;
453
462
  }
454
463
  };
455
- ct = ei([ti], ct);
456
- var Pt = class {
464
+ ht = ri([oi], ht);
465
+ var Bt = class {
457
466
  constructor() {
458
- this._onWillExecuteCommand = new ke(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ke(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new ct(), this._starActivation = null;
467
+ this._onWillExecuteCommand = new ke(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ke(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new ht(), this._starActivation = null;
459
468
  }
460
469
  _activateStar() {
461
- return this._starActivation || (this._starActivation = Qi(3e4)), this._starActivation;
470
+ return this._starActivation || (this._starActivation = tn(3e4)), this._starActivation;
462
471
  }
463
472
  executeCommand(e) {
464
473
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
465
474
  n[r - 1] = arguments[r];
466
- return Xi(this, null, function* () {
467
- return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), ut.toPromise(ut.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
475
+ return en(this, null, function* () {
476
+ return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), ct.toPromise(ct.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
468
477
  });
469
478
  }
470
479
  executeCommandThowErr(e) {
@@ -510,15 +519,15 @@ var Pt = class {
510
519
  }
511
520
  }
512
521
  };
513
- Pt = ei([ti], Pt);
522
+ Bt = ri([oi], Bt);
514
523
  function U(t, e, i) {
515
- return (e = mn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
524
+ return (e = kn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
516
525
  }
517
- function mn(t) {
518
- var e = Sn(t, "string");
526
+ function kn(t) {
527
+ var e = In(t, "string");
519
528
  return typeof e == "symbol" ? e : e + "";
520
529
  }
521
- function Sn(t, e) {
530
+ function In(t, e) {
522
531
  if (typeof t != "object" || !t)
523
532
  return t;
524
533
  var i = t[Symbol.toPrimitive];
@@ -541,7 +550,7 @@ const ae = (t) => t ? function() {
541
550
  } : () => {
542
551
  console.log("wrapUserFunction: fn is undefined");
543
552
  };
544
- class En {
553
+ class Rn {
545
554
  constructor(e) {
546
555
  U(this, "context", void 0), U(this, "continueCallback", void 0), U(this, "adIsShowingCallback", void 0), U(this, "isBeforeAdCalled", !1), U(this, "isBeforeRewardCalled", !1), U(this, "isAdDismissedCalled", !1), U(this, "isAdViewedCalled", !1), U(this, "isAfterAdCalled", !1), U(this, "currentProvider", void 0), U(this, "currentClientParams", void 0), U(this, "adsHasResponse", !1), U(this, "videoChecker", window.document.createElement("video")), U(this, "contextInfo", void 0), U(this, "wrapShowAdFn", (i) => () => {
547
556
  var o, s, a;
@@ -551,12 +560,9 @@ class En {
551
560
  n = !1;
552
561
  }), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
553
562
  userEvent: n
554
- }, this.paramsToTrack)), window.postMessage({
555
- type: "JOLIBOX_AD_CALL_BEFORE_REWARD",
556
- data: Object.assign({}, {
557
- userEvent: n
558
- }, this.paramsToTrack)
559
- }, "*"), at() && this.context.track("mmp_ad_impression", {
563
+ }, this.paramsToTrack)), this.notifyAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", Tt({
564
+ userEvent: n
565
+ }, this.paramsToTrack)), dt() && this.context.track("mmp_ad_impression", {
560
566
  ad_network: (s = (o = this.currentProvider) == null ? void 0 : o.name) != null ? s : "",
561
567
  ad_format: "rewarded",
562
568
  module: "game",
@@ -566,6 +572,14 @@ class En {
566
572
  r == null || r();
567
573
  }), this.context = e, this.contextInfo = e.getContextInfo();
568
574
  }
575
+ notifyAdsEvent(e, i) {
576
+ window.parent && window.parent.postMessage({
577
+ type: e,
578
+ data: i
579
+ }, "*"), window.dispatchEvent(new CustomEvent(e, {
580
+ detail: i
581
+ }));
582
+ }
569
583
  get paramsToTrack() {
570
584
  var e, i, n, r, o, s;
571
585
  return {
@@ -577,13 +591,10 @@ class En {
577
591
  wrapBeforeAd(e) {
578
592
  return () => {
579
593
  var i, n, r, o;
580
- if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), window.postMessage({
581
- type: "JOLIBOX_AD_CALL_BEFORE_AD",
582
- data: this.paramsToTrack
583
- }, "*"), !this.isBeforeAdCalled) {
594
+ if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.notifyAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD", this.paramsToTrack), !this.isBeforeAdCalled) {
584
595
  this.isBeforeAdCalled = !0;
585
596
  const s = ae(e);
586
- s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), at() && this.context.track("mmp_ad_impression", {
597
+ s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), dt() && this.context.track("mmp_ad_impression", {
587
598
  ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
588
599
  ad_format: "interstitial",
589
600
  module: "game",
@@ -617,10 +628,7 @@ class En {
617
628
  }
618
629
  wrapAfterAd(e) {
619
630
  return () => {
620
- if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), window.postMessage({
621
- type: "JOLIBOX_AD_CALL_AFTER_AD",
622
- data: this.paramsToTrack
623
- }, "*"), !this.isAfterAdCalled) {
631
+ if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.notifyAdsEvent("JOLIBOX_AD_CALL_AFTER_AD", this.paramsToTrack), !this.isAfterAdCalled) {
624
632
  this.isAfterAdCalled = !0;
625
633
  const i = ae(e);
626
634
  i == null || i();
@@ -629,29 +637,26 @@ class En {
629
637
  }
630
638
  wrapAdBreakDone(e) {
631
639
  return (i) => {
632
- var n, r, o, s, a, d, l, u, h;
640
+ var n, r, o, s, a, d, l, c, h;
633
641
  switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
634
642
  provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
635
643
  breakType: i.breakType,
636
644
  breakName: (o = i.breakName) != null ? o : "",
637
645
  breakFormat: i.breakFormat,
638
646
  breakStatus: i.breakStatus
639
- }), window.postMessage({
640
- type: "JOLIBOX_AD_CALL_AD_BREAK_DONE",
641
- data: {
642
- provider: (a = (s = this.currentProvider) == null ? void 0 : s.name) != null ? a : null,
643
- breakType: i.breakType,
644
- breakName: (d = i.breakName) != null ? d : "",
645
- breakFormat: i.breakFormat,
646
- breakStatus: i.breakStatus
647
- }
648
- }, "*"), i.breakStatus) {
647
+ }), this.notifyAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE", {
648
+ provider: (a = (s = this.currentProvider) == null ? void 0 : s.name) != null ? a : null,
649
+ breakType: i.breakType,
650
+ breakName: (d = i.breakName) != null ? d : "",
651
+ breakFormat: i.breakFormat,
652
+ breakStatus: i.breakStatus
653
+ }), i.breakStatus) {
649
654
  case "viewed":
650
655
  case "ignored":
651
656
  case "dismissed":
652
657
  case "error": {
653
- const c = ae(e);
654
- c == null || c(i), (l = this.adIsShowingCallback) == null || l.call(this, !1), (u = this.continueCallback) == null || u.call(this, [!1, i]);
658
+ const u = ae(e);
659
+ u == null || u(i), (l = this.adIsShowingCallback) == null || l.call(this, !1), (c = this.continueCallback) == null || c.call(this, [!1, i]);
655
660
  break;
656
661
  }
657
662
  default: {
@@ -704,31 +709,31 @@ class En {
704
709
  }
705
710
  }
706
711
  window.setTimeout(() => {
707
- var a, d, l, u, h;
712
+ var a, d, l, c, h, u, f;
708
713
  this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
709
714
  type: i.type,
710
715
  provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
716
+ }), this.notifyAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT", {
717
+ type: i.type,
718
+ provider: (c = (l = this.currentProvider) == null ? void 0 : l.name) != null ? c : null
711
719
  }), (u = this.continueCallback) == null || u.call(this, [!0, {
712
720
  breakType: i.type,
713
- breakName: i.type === "preroll" ? "" : (l = i.name) != null ? l : "",
721
+ breakName: i.type === "preroll" ? "" : (h = i.name) != null ? h : "",
714
722
  breakFormat: i.type === "reward" ? "reward" : "interstitial",
715
723
  breakStatus: "timeout"
716
- }]), (h = this.adIsShowingCallback) == null || h.call(this, !1));
717
- }, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), window.postMessage({
718
- type: "JOLIBOX_AD_CALL_AD_BREAK",
719
- data: this.paramsToTrack
720
- }, "*"), e.adBreak(s, n), window.JoliTesterBridge && console.log("joli-fullscreen-ad-show");
724
+ }]), (f = this.adIsShowingCallback) == null || f.call(this, !1));
725
+ }, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), this.notifyAdsEvent("JOLIBOX_AD_CALL_AD_BREAK", this.paramsToTrack), e.adBreak(s, n), window.JoliTesterBridge && console.log("joli-fullscreen-ad-show");
721
726
  });
722
727
  }
723
728
  }
724
- function Pe(t, e, i) {
725
- return (e = kn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
729
+ function Ne(t, e, i) {
730
+ return (e = xn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
726
731
  }
727
- function kn(t) {
728
- var e = Rn(t, "string");
732
+ function xn(t) {
733
+ var e = On(t, "string");
729
734
  return typeof e == "symbol" ? e : e + "";
730
735
  }
731
- function Rn(t, e) {
736
+ function On(t, e) {
732
737
  if (typeof t != "object" || !t)
733
738
  return t;
734
739
  var i = t[Symbol.toPrimitive];
@@ -740,13 +745,13 @@ function Rn(t, e) {
740
745
  }
741
746
  return (e === "string" ? String : Number)(t);
742
747
  }
743
- class In {
748
+ class Tn {
744
749
  constructor(e) {
745
- Pe(this, "context", void 0), Pe(this, "adBreakIsShowing", !1), Pe(this, "reportPageJumpOut", () => {
750
+ Ne(this, "context", void 0), Ne(this, "adBreakIsShowing", !1), Ne(this, "reportPageJumpOut", () => {
746
751
  this.context.track("AdBreakJumpOut", {
747
752
  context: "AdsActionDetection"
748
753
  });
749
- }), Pe(this, "reportPageHide", () => {
754
+ }), Ne(this, "reportPageHide", () => {
750
755
  this.context.track("AdBreakHide", {
751
756
  context: "AdsActionDetection"
752
757
  });
@@ -757,14 +762,14 @@ class In {
757
762
  });
758
763
  }
759
764
  }
760
- function Ne(t, e, i) {
761
- return (e = xn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
765
+ function Me(t, e, i) {
766
+ return (e = Cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
762
767
  }
763
- function xn(t) {
764
- var e = On(t, "string");
768
+ function Cn(t) {
769
+ var e = Dn(t, "string");
765
770
  return typeof e == "symbol" ? e : e + "";
766
771
  }
767
- function On(t, e) {
772
+ function Dn(t, e) {
768
773
  if (typeof t != "object" || !t)
769
774
  return t;
770
775
  var i = t[Symbol.toPrimitive];
@@ -776,9 +781,9 @@ function On(t, e) {
776
781
  }
777
782
  return (e === "string" ? String : Number)(t);
778
783
  }
779
- class Tn {
784
+ class Ln {
780
785
  constructor(e) {
781
- Ne(this, "configs", null), Ne(this, "firstRun", !0), Ne(this, "context", void 0), Ne(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
786
+ Me(this, "configs", null), Me(this, "firstRun", !0), Me(this, "context", void 0), Me(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
782
787
  }
783
788
  async init() {
784
789
  try {
@@ -803,13 +808,13 @@ class Tn {
803
808
  }
804
809
  }
805
810
  function Q(t, e, i) {
806
- return (e = Cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
811
+ return (e = Pn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
807
812
  }
808
- function Cn(t) {
809
- var e = Dn(t, "string");
813
+ function Pn(t) {
814
+ var e = Nn(t, "string");
810
815
  return typeof e == "symbol" ? e : e + "";
811
816
  }
812
- function Dn(t, e) {
817
+ function Nn(t, e) {
813
818
  if (typeof t != "object" || !t)
814
819
  return t;
815
820
  var i = t[Symbol.toPrimitive];
@@ -821,7 +826,7 @@ function Dn(t, e) {
821
826
  }
822
827
  return (e === "string" ? String : Number)(t);
823
828
  }
824
- class Ln {
829
+ class Mn {
825
830
  /**
826
831
  * Internal constructor, should not be called directly
827
832
  */
@@ -832,7 +837,7 @@ class Ln {
832
837
  }), Q(this, "adConfig", (n) => {
833
838
  const s = n, {
834
839
  onReady: r
835
- } = s, o = It(s, [
840
+ } = s, o = Ct(s, [
836
841
  "onReady"
837
842
  ]);
838
843
  this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
@@ -863,24 +868,24 @@ class Ln {
863
868
  throw new Error("targeting element is required");
864
869
  if (typeof r == "string" ? l = document.querySelector(r) : l = r, !l)
865
870
  throw new Error("targeting element not found");
866
- let u = o;
867
- if (u || (u = this.initParams.unitId), !u)
871
+ let c = o;
872
+ if (c || (c = this.initParams.unitId), !c)
868
873
  throw new Error("slot is required");
869
- const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, c = document.createElement("ins");
870
- 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) {
874
+ const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, u = document.createElement("ins");
875
+ if (u.className = "adsbygoogle", u.id = "jolibox-ads", u.style.display = "block", u.setAttribute("data-ad-client", this.initParams.clientId), u.setAttribute("data-ad-slot", c), h && u.setAttribute("data-ad-format", h), a && u.setAttribute("data-full-width-responsive", a), d && u.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
871
876
  const v = document.createElement("div");
872
- 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);
877
+ 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", u.style.position = "relative", l.appendChild(u), u.appendChild(v);
873
878
  } else
874
- l.appendChild(c), new MutationObserver((b) => {
879
+ l.appendChild(u), new MutationObserver((b) => {
875
880
  b.forEach((T) => {
876
881
  if (T.type === "attributes" && T.attributeName === "data-ad-status") {
877
- const I = c.getAttribute("data-ad-status");
882
+ const R = u.getAttribute("data-ad-status");
878
883
  this.context.track("AdSenseUnitStatusChanged", {
879
- status: I != null ? I : "null"
884
+ status: R != null ? R : "null"
880
885
  });
881
886
  }
882
887
  });
883
- }).observe(c, {
888
+ }).observe(u, {
884
889
  attributes: !0,
885
890
  attributeFilter: ["data-ad-status"]
886
891
  }), this.push({});
@@ -899,18 +904,18 @@ class Ln {
899
904
  }
900
905
  }
901
906
  }
902
- function Pn(t) {
907
+ function $n(t) {
903
908
  if (t.sheet)
904
909
  return t.sheet;
905
910
  for (var e = 0; e < document.styleSheets.length; e++)
906
911
  if (document.styleSheets[e].ownerNode === t)
907
912
  return document.styleSheets[e];
908
913
  }
909
- function Nn(t) {
914
+ function Bn(t) {
910
915
  var e = document.createElement("style");
911
916
  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;
912
917
  }
913
- var Mn = /* @__PURE__ */ function() {
918
+ var Fn = /* @__PURE__ */ function() {
914
919
  function t(i) {
915
920
  var n = this;
916
921
  this._insertTag = function(r) {
@@ -922,10 +927,10 @@ var Mn = /* @__PURE__ */ function() {
922
927
  return e.hydrate = function(n) {
923
928
  n.forEach(this._insertTag);
924
929
  }, e.insert = function(n) {
925
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Nn(this));
930
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Bn(this));
926
931
  var r = this.tags[this.tags.length - 1];
927
932
  if (this.isSpeedy) {
928
- var o = Pn(r);
933
+ var o = $n(r);
929
934
  try {
930
935
  o.insertRule(n, o.cssRules.length);
931
936
  } catch (s) {
@@ -939,66 +944,66 @@ var Mn = /* @__PURE__ */ function() {
939
944
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
940
945
  }), this.tags = [], this.ctr = 0;
941
946
  }, t;
942
- }(), B = "-ms-", Ke = "-moz-", m = "-webkit-", si = "comm", bt = "rule", At = "decl", $n = "@import", ai = "@keyframes", Bn = "@layer", Fn = Math.abs, Ye = String.fromCharCode, jn = Object.assign;
943
- function Un(t, e) {
947
+ }(), B = "-ms-", ze = "-moz-", m = "-webkit-", ui = "comm", At = "rule", _t = "decl", jn = "@import", ci = "@keyframes", Un = "@layer", Vn = Math.abs, Ye = String.fromCharCode, Gn = Object.assign;
948
+ function qn(t, e) {
944
949
  return N(t, 0) ^ 45 ? (((e << 2 ^ N(t, 0)) << 2 ^ N(t, 1)) << 2 ^ N(t, 2)) << 2 ^ N(t, 3) : 0;
945
950
  }
946
- function di(t) {
951
+ function hi(t) {
947
952
  return t.trim();
948
953
  }
949
- function Vn(t, e) {
954
+ function Kn(t, e) {
950
955
  return (t = e.exec(t)) ? t[0] : t;
951
956
  }
952
957
  function S(t, e, i) {
953
958
  return t.replace(e, i);
954
959
  }
955
- function ht(t, e) {
960
+ function ft(t, e) {
956
961
  return t.indexOf(e);
957
962
  }
958
963
  function N(t, e) {
959
964
  return t.charCodeAt(e) | 0;
960
965
  }
961
- function Re(t, e, i) {
966
+ function Ie(t, e, i) {
962
967
  return t.slice(e, i);
963
968
  }
964
- function Y(t) {
969
+ function X(t) {
965
970
  return t.length;
966
971
  }
967
- function _t(t) {
972
+ function mt(t) {
968
973
  return t.length;
969
974
  }
970
- function Me(t, e) {
975
+ function $e(t, e) {
971
976
  return e.push(t), t;
972
977
  }
973
- function Gn(t, e) {
978
+ function zn(t, e) {
974
979
  return t.map(e).join("");
975
980
  }
976
- var Xe = 1, ge = 1, li = 0, G = 0, C = 0, ye = "";
977
- function Qe(t, e, i, n, r, o, s) {
978
- return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Xe, column: ge, length: s, return: "" };
981
+ var Qe = 1, ge = 1, fi = 0, G = 0, C = 0, ye = "";
982
+ function Ze(t, e, i, n, r, o, s) {
983
+ return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Qe, column: ge, length: s, return: "" };
979
984
  }
980
985
  function me(t, e) {
981
- return jn(Qe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
986
+ return Gn(Ze("", null, null, "", null, null, 0), t, { length: -t.length }, e);
982
987
  }
983
- function qn() {
988
+ function Hn() {
984
989
  return C;
985
990
  }
986
- function Kn() {
987
- return C = G > 0 ? N(ye, --G) : 0, ge--, C === 10 && (ge = 1, Xe--), C;
991
+ function Wn() {
992
+ return C = G > 0 ? N(ye, --G) : 0, ge--, C === 10 && (ge = 1, Qe--), C;
988
993
  }
989
994
  function K() {
990
- return C = G < li ? N(ye, G++) : 0, ge++, C === 10 && (ge = 1, Xe++), C;
995
+ return C = G < fi ? N(ye, G++) : 0, ge++, C === 10 && (ge = 1, Qe++), C;
991
996
  }
992
- function X() {
997
+ function Y() {
993
998
  return N(ye, G);
994
999
  }
995
- function Fe() {
1000
+ function je() {
996
1001
  return G;
997
1002
  }
998
1003
  function xe(t, e) {
999
- return Re(ye, t, e);
1004
+ return Ie(ye, t, e);
1000
1005
  }
1001
- function Ie(t) {
1006
+ function Re(t) {
1002
1007
  switch (t) {
1003
1008
  case 0:
1004
1009
  case 9:
@@ -1030,36 +1035,36 @@ function Ie(t) {
1030
1035
  }
1031
1036
  return 0;
1032
1037
  }
1033
- function ui(t) {
1034
- return Xe = ge = 1, li = Y(ye = t), G = 0, [];
1038
+ function vi(t) {
1039
+ return Qe = ge = 1, fi = X(ye = t), G = 0, [];
1035
1040
  }
1036
- function ci(t) {
1041
+ function gi(t) {
1037
1042
  return ye = "", t;
1038
1043
  }
1039
- function je(t) {
1040
- return di(xe(G - 1, ft(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1044
+ function Ue(t) {
1045
+ return hi(xe(G - 1, vt(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1041
1046
  }
1042
- function zn(t) {
1043
- for (; (C = X()) && C < 33; )
1047
+ function Jn(t) {
1048
+ for (; (C = Y()) && C < 33; )
1044
1049
  K();
1045
- return Ie(t) > 2 || Ie(C) > 3 ? "" : " ";
1050
+ return Re(t) > 2 || Re(C) > 3 ? "" : " ";
1046
1051
  }
1047
- function Hn(t, e) {
1052
+ function Xn(t, e) {
1048
1053
  for (; --e && K() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
1049
1054
  ;
1050
- return xe(t, Fe() + (e < 6 && X() == 32 && K() == 32));
1055
+ return xe(t, je() + (e < 6 && Y() == 32 && K() == 32));
1051
1056
  }
1052
- function ft(t) {
1057
+ function vt(t) {
1053
1058
  for (; K(); )
1054
1059
  switch (C) {
1055
1060
  case t:
1056
1061
  return G;
1057
1062
  case 34:
1058
1063
  case 39:
1059
- t !== 34 && t !== 39 && ft(C);
1064
+ t !== 34 && t !== 39 && vt(C);
1060
1065
  break;
1061
1066
  case 40:
1062
- t === 41 && ft(t);
1067
+ t === 41 && vt(t);
1063
1068
  break;
1064
1069
  case 92:
1065
1070
  K();
@@ -1067,54 +1072,54 @@ function ft(t) {
1067
1072
  }
1068
1073
  return G;
1069
1074
  }
1070
- function Wn(t, e) {
1075
+ function Yn(t, e) {
1071
1076
  for (; K() && t + C !== 57; )
1072
- if (t + C === 84 && X() === 47)
1077
+ if (t + C === 84 && Y() === 47)
1073
1078
  break;
1074
1079
  return "/*" + xe(e, G - 1) + "*" + Ye(t === 47 ? t : K());
1075
1080
  }
1076
- function Jn(t) {
1077
- for (; !Ie(X()); )
1081
+ function Qn(t) {
1082
+ for (; !Re(Y()); )
1078
1083
  K();
1079
1084
  return xe(t, G);
1080
1085
  }
1081
- function Yn(t) {
1082
- return ci(Ue("", null, null, null, [""], t = ui(t), 0, [0], t));
1086
+ function Zn(t) {
1087
+ return gi(Ve("", null, null, null, [""], t = vi(t), 0, [0], t));
1083
1088
  }
1084
- function Ue(t, e, i, n, r, o, s, a, d) {
1085
- 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, I = o, O = n, A = b; p; )
1089
+ function Ve(t, e, i, n, r, o, s, a, d) {
1090
+ for (var l = 0, c = 0, h = s, u = 0, f = 0, w = 0, g = 1, p = 1, y = 1, v = 0, b = "", T = r, R = o, O = n, A = b; p; )
1086
1091
  switch (w = v, v = K()) {
1087
1092
  case 40:
1088
1093
  if (w != 108 && N(A, h - 1) == 58) {
1089
- ht(A += S(je(v), "&", "&\f"), "&\f") != -1 && (y = -1);
1094
+ ft(A += S(Ue(v), "&", "&\f"), "&\f") != -1 && (y = -1);
1090
1095
  break;
1091
1096
  }
1092
1097
  case 34:
1093
1098
  case 39:
1094
1099
  case 91:
1095
- A += je(v);
1100
+ A += Ue(v);
1096
1101
  break;
1097
1102
  case 9:
1098
1103
  case 10:
1099
1104
  case 13:
1100
1105
  case 32:
1101
- A += zn(w);
1106
+ A += Jn(w);
1102
1107
  break;
1103
1108
  case 92:
1104
- A += Hn(Fe() - 1, 7);
1109
+ A += Xn(je() - 1, 7);
1105
1110
  continue;
1106
1111
  case 47:
1107
- switch (X()) {
1112
+ switch (Y()) {
1108
1113
  case 42:
1109
1114
  case 47:
1110
- Me(Xn(Wn(K(), Fe()), e, i), d);
1115
+ $e(er(Yn(K(), je()), e, i), d);
1111
1116
  break;
1112
1117
  default:
1113
1118
  A += "/";
1114
1119
  }
1115
1120
  break;
1116
1121
  case 123 * g:
1117
- a[l++] = Y(A) * y;
1122
+ a[l++] = X(A) * y;
1118
1123
  case 125 * g:
1119
1124
  case 59:
1120
1125
  case 0:
@@ -1122,124 +1127,124 @@ function Ue(t, e, i, n, r, o, s, a, d) {
1122
1127
  case 0:
1123
1128
  case 125:
1124
1129
  p = 0;
1125
- case 59 + u:
1126
- y == -1 && (A = S(A, /\f/g, "")), f > 0 && Y(A) - h && Me(f > 32 ? Mt(A + ";", n, i, h - 1) : Mt(S(A, " ", "") + ";", n, i, h - 2), d);
1130
+ case 59 + c:
1131
+ y == -1 && (A = S(A, /\f/g, "")), f > 0 && X(A) - h && $e(f > 32 ? jt(A + ";", n, i, h - 1) : jt(S(A, " ", "") + ";", n, i, h - 2), d);
1127
1132
  break;
1128
1133
  case 59:
1129
1134
  A += ";";
1130
1135
  default:
1131
- if (Me(O = Nt(A, e, i, l, u, r, a, b, T = [], I = [], h), o), v === 123)
1132
- if (u === 0)
1133
- Ue(A, e, O, O, T, o, h, a, I);
1136
+ if ($e(O = Ft(A, e, i, l, c, r, a, b, T = [], R = [], h), o), v === 123)
1137
+ if (c === 0)
1138
+ Ve(A, e, O, O, T, o, h, a, R);
1134
1139
  else
1135
- switch (c === 99 && N(A, 3) === 110 ? 100 : c) {
1140
+ switch (u === 99 && N(A, 3) === 110 ? 100 : u) {
1136
1141
  case 100:
1137
1142
  case 108:
1138
1143
  case 109:
1139
1144
  case 115:
1140
- Ue(t, O, O, n && Me(Nt(t, O, O, 0, 0, r, a, b, r, T = [], h), I), r, I, h, a, n ? T : I);
1145
+ Ve(t, O, O, n && $e(Ft(t, O, O, 0, 0, r, a, b, r, T = [], h), R), r, R, h, a, n ? T : R);
1141
1146
  break;
1142
1147
  default:
1143
- Ue(A, O, O, O, [""], I, 0, a, I);
1148
+ Ve(A, O, O, O, [""], R, 0, a, R);
1144
1149
  }
1145
1150
  }
1146
- l = u = f = 0, g = y = 1, b = A = "", h = s;
1151
+ l = c = f = 0, g = y = 1, b = A = "", h = s;
1147
1152
  break;
1148
1153
  case 58:
1149
- h = 1 + Y(A), f = w;
1154
+ h = 1 + X(A), f = w;
1150
1155
  default:
1151
1156
  if (g < 1) {
1152
1157
  if (v == 123)
1153
1158
  --g;
1154
- else if (v == 125 && g++ == 0 && Kn() == 125)
1159
+ else if (v == 125 && g++ == 0 && Wn() == 125)
1155
1160
  continue;
1156
1161
  }
1157
1162
  switch (A += Ye(v), v * g) {
1158
1163
  case 38:
1159
- y = u > 0 ? 1 : (A += "\f", -1);
1164
+ y = c > 0 ? 1 : (A += "\f", -1);
1160
1165
  break;
1161
1166
  case 44:
1162
- a[l++] = (Y(A) - 1) * y, y = 1;
1167
+ a[l++] = (X(A) - 1) * y, y = 1;
1163
1168
  break;
1164
1169
  case 64:
1165
- X() === 45 && (A += je(K())), c = X(), u = h = Y(b = A += Jn(Fe())), v++;
1170
+ Y() === 45 && (A += Ue(K())), u = Y(), c = h = X(b = A += Qn(je())), v++;
1166
1171
  break;
1167
1172
  case 45:
1168
- w === 45 && Y(A) == 2 && (g = 0);
1173
+ w === 45 && X(A) == 2 && (g = 0);
1169
1174
  }
1170
1175
  }
1171
1176
  return o;
1172
1177
  }
1173
- function Nt(t, e, i, n, r, o, s, a, d, l, u) {
1174
- for (var h = r - 1, c = r === 0 ? o : [""], f = _t(c), w = 0, g = 0, p = 0; w < n; ++w)
1175
- for (var y = 0, v = Re(t, h + 1, h = Fn(g = s[w])), b = t; y < f; ++y)
1176
- (b = di(g > 0 ? c[y] + " " + v : S(v, /&\f/g, c[y]))) && (d[p++] = b);
1177
- return Qe(t, e, i, r === 0 ? bt : a, d, l, u);
1178
+ function Ft(t, e, i, n, r, o, s, a, d, l, c) {
1179
+ for (var h = r - 1, u = r === 0 ? o : [""], f = mt(u), w = 0, g = 0, p = 0; w < n; ++w)
1180
+ for (var y = 0, v = Ie(t, h + 1, h = Vn(g = s[w])), b = t; y < f; ++y)
1181
+ (b = hi(g > 0 ? u[y] + " " + v : S(v, /&\f/g, u[y]))) && (d[p++] = b);
1182
+ return Ze(t, e, i, r === 0 ? At : a, d, l, c);
1178
1183
  }
1179
- function Xn(t, e, i) {
1180
- return Qe(t, e, i, si, Ye(qn()), Re(t, 2, -2), 0);
1184
+ function er(t, e, i) {
1185
+ return Ze(t, e, i, ui, Ye(Hn()), Ie(t, 2, -2), 0);
1181
1186
  }
1182
- function Mt(t, e, i, n) {
1183
- return Qe(t, e, i, At, Re(t, 0, n), Re(t, n + 1, -1), n);
1187
+ function jt(t, e, i, n) {
1188
+ return Ze(t, e, i, _t, Ie(t, 0, n), Ie(t, n + 1, -1), n);
1184
1189
  }
1185
1190
  function fe(t, e) {
1186
- for (var i = "", n = _t(t), r = 0; r < n; r++)
1191
+ for (var i = "", n = mt(t), r = 0; r < n; r++)
1187
1192
  i += e(t[r], r, t, e) || "";
1188
1193
  return i;
1189
1194
  }
1190
- function Qn(t, e, i, n) {
1195
+ function tr(t, e, i, n) {
1191
1196
  switch (t.type) {
1192
- case Bn:
1197
+ case Un:
1193
1198
  if (t.children.length)
1194
1199
  break;
1195
- case $n:
1196
- case At:
1200
+ case jn:
1201
+ case _t:
1197
1202
  return t.return = t.return || t.value;
1198
- case si:
1203
+ case ui:
1199
1204
  return "";
1200
- case ai:
1205
+ case ci:
1201
1206
  return t.return = t.value + "{" + fe(t.children, n) + "}";
1202
- case bt:
1207
+ case At:
1203
1208
  t.value = t.props.join(",");
1204
1209
  }
1205
- return Y(i = fe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1210
+ return X(i = fe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1206
1211
  }
1207
- function Zn(t) {
1208
- var e = _t(t);
1212
+ function ir(t) {
1213
+ var e = mt(t);
1209
1214
  return function(i, n, r, o) {
1210
1215
  for (var s = "", a = 0; a < e; a++)
1211
1216
  s += t[a](i, n, r, o) || "";
1212
1217
  return s;
1213
1218
  };
1214
1219
  }
1215
- function er(t) {
1220
+ function nr(t) {
1216
1221
  return function(e) {
1217
1222
  e.root || (e = e.return) && t(e);
1218
1223
  };
1219
1224
  }
1220
- function tr(t) {
1225
+ function rr(t) {
1221
1226
  var e = /* @__PURE__ */ Object.create(null);
1222
1227
  return function(i) {
1223
1228
  return e[i] === void 0 && (e[i] = t(i)), e[i];
1224
1229
  };
1225
1230
  }
1226
- var ir = function(e, i, n) {
1227
- for (var r = 0, o = 0; r = o, o = X(), r === 38 && o === 12 && (i[n] = 1), !Ie(o); )
1231
+ var or = function(e, i, n) {
1232
+ for (var r = 0, o = 0; r = o, o = Y(), r === 38 && o === 12 && (i[n] = 1), !Re(o); )
1228
1233
  K();
1229
1234
  return xe(e, G);
1230
- }, nr = function(e, i) {
1235
+ }, sr = function(e, i) {
1231
1236
  var n = -1, r = 44;
1232
1237
  do
1233
- switch (Ie(r)) {
1238
+ switch (Re(r)) {
1234
1239
  case 0:
1235
- r === 38 && X() === 12 && (i[n] = 1), e[n] += ir(G - 1, i, n);
1240
+ r === 38 && Y() === 12 && (i[n] = 1), e[n] += or(G - 1, i, n);
1236
1241
  break;
1237
1242
  case 2:
1238
- e[n] += je(r);
1243
+ e[n] += Ue(r);
1239
1244
  break;
1240
1245
  case 4:
1241
1246
  if (r === 44) {
1242
- e[++n] = X() === 58 ? "&\f" : "", i[n] = e[n].length;
1247
+ e[++n] = Y() === 58 ? "&\f" : "", i[n] = e[n].length;
1243
1248
  break;
1244
1249
  }
1245
1250
  default:
@@ -1247,23 +1252,23 @@ var ir = function(e, i, n) {
1247
1252
  }
1248
1253
  while (r = K());
1249
1254
  return e;
1250
- }, rr = function(e, i) {
1251
- return ci(nr(ui(e), i));
1252
- }, $t = /* @__PURE__ */ new WeakMap(), or = function(e) {
1255
+ }, ar = function(e, i) {
1256
+ return gi(sr(vi(e), i));
1257
+ }, Ut = /* @__PURE__ */ new WeakMap(), dr = function(e) {
1253
1258
  if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
1254
1259
  // negative .length indicates that this rule has been already prefixed
1255
1260
  e.length < 1)) {
1256
1261
  for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
1257
1262
  if (n = n.parent, !n)
1258
1263
  return;
1259
- if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !$t.get(n)) && !r) {
1260
- $t.set(e, !0);
1261
- for (var o = [], s = rr(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1262
- for (var u = 0; u < a.length; u++, l++)
1263
- e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
1264
+ if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Ut.get(n)) && !r) {
1265
+ Ut.set(e, !0);
1266
+ for (var o = [], s = ar(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1267
+ for (var c = 0; c < a.length; c++, l++)
1268
+ e.props[l] = o[d] ? s[d].replace(/&\f/g, a[c]) : a[c] + " " + s[d];
1264
1269
  }
1265
1270
  }
1266
- }, sr = function(e) {
1271
+ }, lr = function(e) {
1267
1272
  if (e.type === "decl") {
1268
1273
  var i = e.value;
1269
1274
  // charcode for l
@@ -1271,8 +1276,8 @@ var ir = function(e, i, n) {
1271
1276
  i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1272
1277
  }
1273
1278
  };
1274
- function hi(t, e) {
1275
- switch (Un(t, e)) {
1279
+ function yi(t, e) {
1280
+ switch (qn(t, e)) {
1276
1281
  case 5103:
1277
1282
  return m + "print-" + t + t;
1278
1283
  case 5737:
@@ -1306,7 +1311,7 @@ function hi(t, e) {
1306
1311
  case 4810:
1307
1312
  case 6968:
1308
1313
  case 2756:
1309
- return m + t + Ke + t + B + t + t;
1314
+ return m + t + ze + t + B + t + t;
1310
1315
  case 6828:
1311
1316
  case 4268:
1312
1317
  return m + t + B + t + t;
@@ -1350,22 +1355,22 @@ function hi(t, e) {
1350
1355
  case 5789:
1351
1356
  case 5021:
1352
1357
  case 4765:
1353
- if (Y(t) - 1 - e > 6)
1358
+ if (X(t) - 1 - e > 6)
1354
1359
  switch (N(t, e + 1)) {
1355
1360
  case 109:
1356
1361
  if (N(t, e + 4) !== 45)
1357
1362
  break;
1358
1363
  case 102:
1359
- return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + Ke + (N(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1364
+ return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + ze + (N(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1360
1365
  case 115:
1361
- return ~ht(t, "stretch") ? hi(S(t, "stretch", "fill-available"), e) + t : t;
1366
+ return ~ft(t, "stretch") ? yi(S(t, "stretch", "fill-available"), e) + t : t;
1362
1367
  }
1363
1368
  break;
1364
1369
  case 4949:
1365
1370
  if (N(t, e + 1) !== 115)
1366
1371
  break;
1367
1372
  case 6444:
1368
- switch (N(t, Y(t) - 3 - (~ht(t, "!important") && 10))) {
1373
+ switch (N(t, X(t) - 3 - (~ft(t, "!important") && 10))) {
1369
1374
  case 107:
1370
1375
  return S(t, ":", ":" + m) + t;
1371
1376
  case 101:
@@ -1385,30 +1390,30 @@ function hi(t, e) {
1385
1390
  }
1386
1391
  return t;
1387
1392
  }
1388
- var ar = function(e, i, n, r) {
1393
+ var ur = function(e, i, n, r) {
1389
1394
  if (e.length > -1 && !e.return)
1390
1395
  switch (e.type) {
1391
- case At:
1392
- e.return = hi(e.value, e.length);
1396
+ case _t:
1397
+ e.return = yi(e.value, e.length);
1393
1398
  break;
1394
- case ai:
1399
+ case ci:
1395
1400
  return fe([me(e, {
1396
1401
  value: S(e.value, "@", "@" + m)
1397
1402
  })], r);
1398
- case bt:
1403
+ case At:
1399
1404
  if (e.length)
1400
- return Gn(e.props, function(o) {
1401
- switch (Vn(o, /(::plac\w+|:read-\w+)/)) {
1405
+ return zn(e.props, function(o) {
1406
+ switch (Kn(o, /(::plac\w+|:read-\w+)/)) {
1402
1407
  case ":read-only":
1403
1408
  case ":read-write":
1404
1409
  return fe([me(e, {
1405
- props: [S(o, /:(read-\w+)/, ":" + Ke + "$1")]
1410
+ props: [S(o, /:(read-\w+)/, ":" + ze + "$1")]
1406
1411
  })], r);
1407
1412
  case "::placeholder":
1408
1413
  return fe([me(e, {
1409
1414
  props: [S(o, /:(plac\w+)/, ":" + m + "input-$1")]
1410
1415
  }), me(e, {
1411
- props: [S(o, /:(plac\w+)/, ":" + Ke + "$1")]
1416
+ props: [S(o, /:(plac\w+)/, ":" + ze + "$1")]
1412
1417
  }), me(e, {
1413
1418
  props: [S(o, /:(plac\w+)/, B + "input-$1")]
1414
1419
  })], r);
@@ -1416,7 +1421,7 @@ var ar = function(e, i, n, r) {
1416
1421
  return "";
1417
1422
  });
1418
1423
  }
1419
- }, dr = [ar], lr = function(e) {
1424
+ }, cr = [ur], hr = function(e) {
1420
1425
  var i = e.key;
1421
1426
  if (i === "css") {
1422
1427
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
@@ -1425,7 +1430,7 @@ var ar = function(e, i, n, r) {
1425
1430
  p.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
1426
1431
  });
1427
1432
  }
1428
- var r = e.stylisPlugins || dr, o = {}, s, a = [];
1433
+ var r = e.stylisPlugins || cr, o = {}, s, a = [];
1429
1434
  s = e.container || document.head, Array.prototype.forEach.call(
1430
1435
  // this means we will ignore elements which don't have a space in them which
1431
1436
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -1436,20 +1441,20 @@ var ar = function(e, i, n, r) {
1436
1441
  a.push(g);
1437
1442
  }
1438
1443
  );
1439
- var d, l = [or, sr];
1444
+ var d, l = [dr, lr];
1440
1445
  {
1441
- var u, h = [Qn, er(function(g) {
1442
- u.insert(g);
1443
- })], c = Zn(l.concat(r, h)), f = function(p) {
1444
- return fe(Yn(p), c);
1446
+ var c, h = [tr, nr(function(g) {
1447
+ c.insert(g);
1448
+ })], u = ir(l.concat(r, h)), f = function(p) {
1449
+ return fe(Zn(p), u);
1445
1450
  };
1446
1451
  d = function(p, y, v, b) {
1447
- u = v, f(p ? p + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
1452
+ c = v, f(p ? p + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
1448
1453
  };
1449
1454
  }
1450
1455
  var w = {
1451
1456
  key: i,
1452
- sheet: new Mn({
1457
+ sheet: new Fn({
1453
1458
  key: i,
1454
1459
  container: s,
1455
1460
  nonce: e.nonce,
@@ -1464,7 +1469,7 @@ var ar = function(e, i, n, r) {
1464
1469
  };
1465
1470
  return w.sheet.hydrate(a), w;
1466
1471
  };
1467
- function ur(t) {
1472
+ function fr(t) {
1468
1473
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
1469
1474
  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): */
1470
1475
  (i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
@@ -1483,7 +1488,7 @@ function ur(t) {
1483
1488
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
1484
1489
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1485
1490
  }
1486
- var cr = {
1491
+ var vr = {
1487
1492
  animationIterationCount: 1,
1488
1493
  aspectRatio: 1,
1489
1494
  borderImageOutset: 1,
@@ -1532,18 +1537,18 @@ var cr = {
1532
1537
  strokeMiterlimit: 1,
1533
1538
  strokeOpacity: 1,
1534
1539
  strokeWidth: 1
1535
- }, hr = /[A-Z]|^ms/g, fr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, fi = function(e) {
1540
+ }, gr = /[A-Z]|^ms/g, yr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, wi = function(e) {
1536
1541
  return e.charCodeAt(1) === 45;
1537
- }, Bt = function(e) {
1542
+ }, Vt = function(e) {
1538
1543
  return e != null && typeof e != "boolean";
1539
- }, tt = /* @__PURE__ */ tr(function(t) {
1540
- return fi(t) ? t : t.replace(hr, "-$&").toLowerCase();
1541
- }), Ft = function(e, i) {
1544
+ }, it = /* @__PURE__ */ rr(function(t) {
1545
+ return wi(t) ? t : t.replace(gr, "-$&").toLowerCase();
1546
+ }), Gt = function(e, i) {
1542
1547
  switch (e) {
1543
1548
  case "animation":
1544
1549
  case "animationName":
1545
1550
  if (typeof i == "string")
1546
- return i.replace(fr, function(n, r, o) {
1551
+ return i.replace(yr, function(n, r, o) {
1547
1552
  return ne = {
1548
1553
  name: r,
1549
1554
  styles: o,
@@ -1551,9 +1556,9 @@ var cr = {
1551
1556
  }, r;
1552
1557
  });
1553
1558
  }
1554
- return cr[e] !== 1 && !fi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1559
+ return vr[e] !== 1 && !wi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1555
1560
  };
1556
- function ze(t, e, i) {
1561
+ function He(t, e, i) {
1557
1562
  if (i == null)
1558
1563
  return "";
1559
1564
  var n = i;
@@ -1583,7 +1588,7 @@ function ze(t, e, i) {
1583
1588
  var a = o.styles + ";";
1584
1589
  return a;
1585
1590
  }
1586
- return vr(t, e, i);
1591
+ return wr(t, e, i);
1587
1592
  }
1588
1593
  }
1589
1594
  var d = i;
@@ -1592,26 +1597,26 @@ function ze(t, e, i) {
1592
1597
  var l = e[d];
1593
1598
  return l !== void 0 ? l : d;
1594
1599
  }
1595
- function vr(t, e, i) {
1600
+ function wr(t, e, i) {
1596
1601
  var n = "";
1597
1602
  if (Array.isArray(i))
1598
1603
  for (var r = 0; r < i.length; r++)
1599
- n += ze(t, e, i[r]) + ";";
1604
+ n += He(t, e, i[r]) + ";";
1600
1605
  else
1601
1606
  for (var o in i) {
1602
1607
  var s = i[o];
1603
1608
  if (typeof s != "object") {
1604
1609
  var a = s;
1605
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Bt(a) && (n += tt(o) + ":" + Ft(o, a) + ";");
1610
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Vt(a) && (n += it(o) + ":" + Gt(o, a) + ";");
1606
1611
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1607
1612
  for (var d = 0; d < s.length; d++)
1608
- Bt(s[d]) && (n += tt(o) + ":" + Ft(o, s[d]) + ";");
1613
+ Vt(s[d]) && (n += it(o) + ":" + Gt(o, s[d]) + ";");
1609
1614
  else {
1610
- var l = ze(t, e, s);
1615
+ var l = He(t, e, s);
1611
1616
  switch (o) {
1612
1617
  case "animation":
1613
1618
  case "animationName": {
1614
- n += tt(o) + ":" + l + ";";
1619
+ n += it(o) + ":" + l + ";";
1615
1620
  break;
1616
1621
  }
1617
1622
  default:
@@ -1621,41 +1626,41 @@ function vr(t, e, i) {
1621
1626
  }
1622
1627
  return n;
1623
1628
  }
1624
- var jt = /label:\s*([^\s;{]+)\s*(;|$)/g, ne;
1625
- function it(t, e, i) {
1629
+ var qt = /label:\s*([^\s;{]+)\s*(;|$)/g, ne;
1630
+ function nt(t, e, i) {
1626
1631
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1627
1632
  return t[0];
1628
1633
  var n = !0, r = "";
1629
1634
  ne = void 0;
1630
1635
  var o = t[0];
1631
1636
  if (o == null || o.raw === void 0)
1632
- n = !1, r += ze(i, e, o);
1637
+ n = !1, r += He(i, e, o);
1633
1638
  else {
1634
1639
  var s = o;
1635
1640
  r += s[0];
1636
1641
  }
1637
1642
  for (var a = 1; a < t.length; a++)
1638
- if (r += ze(i, e, t[a]), n) {
1643
+ if (r += He(i, e, t[a]), n) {
1639
1644
  var d = o;
1640
1645
  r += d[a];
1641
1646
  }
1642
- jt.lastIndex = 0;
1643
- for (var l = "", u; (u = jt.exec(r)) !== null; )
1644
- l += "-" + u[1];
1645
- var h = ur(r) + l;
1647
+ qt.lastIndex = 0;
1648
+ for (var l = "", c; (c = qt.exec(r)) !== null; )
1649
+ l += "-" + c[1];
1650
+ var h = fr(r) + l;
1646
1651
  return {
1647
1652
  name: h,
1648
1653
  styles: r,
1649
1654
  next: ne
1650
1655
  };
1651
1656
  }
1652
- function vi(t, e, i) {
1657
+ function pi(t, e, i) {
1653
1658
  var n = "";
1654
1659
  return i.split(" ").forEach(function(r) {
1655
1660
  t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
1656
1661
  }), n;
1657
1662
  }
1658
- var gr = function(e, i, n) {
1663
+ var pr = function(e, i, n) {
1659
1664
  var r = e.key + "-" + i.name;
1660
1665
  // we only need to add the styles to the registered cache if the
1661
1666
  // class name could be used further down
@@ -1663,8 +1668,8 @@ var gr = function(e, i, n) {
1663
1668
  // so we don't have to add it to registered cache.
1664
1669
  // this improves memory usage since we can avoid storing the whole style string
1665
1670
  e.registered[r] === void 0 && (e.registered[r] = i.styles);
1666
- }, yr = function(e, i, n) {
1667
- gr(e, i);
1671
+ }, br = function(e, i, n) {
1672
+ pr(e, i);
1668
1673
  var r = e.key + "-" + i.name;
1669
1674
  if (e.inserted[i.name] === void 0) {
1670
1675
  var o = i;
@@ -1673,41 +1678,41 @@ var gr = function(e, i, n) {
1673
1678
  while (o !== void 0);
1674
1679
  }
1675
1680
  };
1676
- function Ut(t, e) {
1681
+ function Kt(t, e) {
1677
1682
  if (t.inserted[e.name] === void 0)
1678
1683
  return t.insert("", e, t.sheet, !0);
1679
1684
  }
1680
- function Vt(t, e, i) {
1681
- var n = [], r = vi(t, n, i);
1685
+ function zt(t, e, i) {
1686
+ var n = [], r = pi(t, n, i);
1682
1687
  return n.length < 2 ? i : r + e(n);
1683
1688
  }
1684
- var wr = function(e) {
1685
- var i = lr(e);
1689
+ var Ar = function(e) {
1690
+ var i = hr(e);
1686
1691
  i.sheet.speedy = function(a) {
1687
1692
  this.isSpeedy = a;
1688
1693
  }, i.compat = !0;
1689
1694
  var n = function() {
1690
- for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1691
- l[u] = arguments[u];
1692
- var h = it(l, i.registered, void 0);
1693
- return yr(i, h), i.key + "-" + h.name;
1695
+ for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1696
+ l[c] = arguments[c];
1697
+ var h = nt(l, i.registered, void 0);
1698
+ return br(i, h), i.key + "-" + h.name;
1694
1699
  }, r = function() {
1695
- for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1696
- l[u] = arguments[u];
1697
- var h = it(l, i.registered), c = "animation-" + h.name;
1698
- return Ut(i, {
1700
+ for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1701
+ l[c] = arguments[c];
1702
+ var h = nt(l, i.registered), u = "animation-" + h.name;
1703
+ return Kt(i, {
1699
1704
  name: h.name,
1700
- styles: "@keyframes " + c + "{" + h.styles + "}"
1701
- }), c;
1705
+ styles: "@keyframes " + u + "{" + h.styles + "}"
1706
+ }), u;
1702
1707
  }, o = function() {
1703
- for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1704
- l[u] = arguments[u];
1705
- var h = it(l, i.registered);
1706
- Ut(i, h);
1708
+ for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1709
+ l[c] = arguments[c];
1710
+ var h = nt(l, i.registered);
1711
+ Kt(i, h);
1707
1712
  }, s = function() {
1708
- for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1709
- l[u] = arguments[u];
1710
- return Vt(i.registered, n, pr(l));
1713
+ for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1714
+ l[c] = arguments[c];
1715
+ return zt(i.registered, n, _r(l));
1711
1716
  };
1712
1717
  return {
1713
1718
  css: n,
@@ -1724,10 +1729,10 @@ var wr = function(e) {
1724
1729
  },
1725
1730
  sheet: i.sheet,
1726
1731
  cache: i,
1727
- getRegisteredStyles: vi.bind(null, i.registered),
1728
- merge: Vt.bind(null, i.registered, n)
1732
+ getRegisteredStyles: pi.bind(null, i.registered),
1733
+ merge: zt.bind(null, i.registered, n)
1729
1734
  };
1730
- }, pr = function t(e) {
1735
+ }, _r = function t(e) {
1731
1736
  for (var i = "", n = 0; n < e.length; n++) {
1732
1737
  var r = e[n];
1733
1738
  if (r != null) {
@@ -1752,96 +1757,96 @@ var wr = function(e) {
1752
1757
  }
1753
1758
  }
1754
1759
  return i;
1755
- }, br = wr({
1760
+ }, mr = Ar({
1756
1761
  key: "css"
1757
- }), we = br.css, vt, q, nt, Gt, qt = 0, gi = [], L = ve, Kt = L.__b, zt = L.__r, Ht = L.diffed, Wt = L.__c, Jt = L.unmount, Yt = L.__;
1758
- function Ar(t, e) {
1759
- L.__h && L.__h(q, t, qt || e), qt = 0;
1762
+ }), we = mr.css, gt, q, rt, Ht, Wt = 0, bi = [], L = ve, Jt = L.__b, Xt = L.__r, Yt = L.diffed, Qt = L.__c, Zt = L.unmount, ei = L.__;
1763
+ function Sr(t, e) {
1764
+ L.__h && L.__h(q, t, Wt || e), Wt = 0;
1760
1765
  var i = q.__H || (q.__H = { __: [], __h: [] });
1761
1766
  return t >= i.__.length && i.__.push({}), i.__[t];
1762
1767
  }
1763
- function yi(t, e) {
1764
- var i = Ar(vt++, 7);
1765
- return Sr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1768
+ function Ai(t, e) {
1769
+ var i = Sr(gt++, 7);
1770
+ return Ir(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1766
1771
  }
1767
- function _r() {
1768
- for (var t; t = gi.shift(); )
1772
+ function Er() {
1773
+ for (var t; t = bi.shift(); )
1769
1774
  if (t.__P && t.__H)
1770
1775
  try {
1771
- t.__H.__h.forEach(Ve), t.__H.__h.forEach(gt), t.__H.__h = [];
1776
+ t.__H.__h.forEach(Ge), t.__H.__h.forEach(yt), t.__H.__h = [];
1772
1777
  } catch (e) {
1773
1778
  t.__H.__h = [], L.__e(e, t.__v);
1774
1779
  }
1775
1780
  }
1776
1781
  L.__b = function(t) {
1777
- q = null, Kt && Kt(t);
1782
+ q = null, Jt && Jt(t);
1778
1783
  }, L.__ = function(t, e) {
1779
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Yt && Yt(t, e);
1784
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), ei && ei(t, e);
1780
1785
  }, L.__r = function(t) {
1781
- zt && zt(t), vt = 0;
1786
+ Xt && Xt(t), gt = 0;
1782
1787
  var e = (q = t.__c).__H;
1783
- e && (nt === q ? (e.__h = [], q.__h = [], e.__.forEach(function(i) {
1788
+ e && (rt === q ? (e.__h = [], q.__h = [], e.__.forEach(function(i) {
1784
1789
  i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
1785
- })) : (e.__h.forEach(Ve), e.__h.forEach(gt), e.__h = [], vt = 0)), nt = q;
1790
+ })) : (e.__h.forEach(Ge), e.__h.forEach(yt), e.__h = [], gt = 0)), rt = q;
1786
1791
  }, L.diffed = function(t) {
1787
- Ht && Ht(t);
1792
+ Yt && Yt(t);
1788
1793
  var e = t.__c;
1789
- e && e.__H && (e.__H.__h.length && (gi.push(e) !== 1 && Gt === L.requestAnimationFrame || ((Gt = L.requestAnimationFrame) || mr)(_r)), e.__H.__.forEach(function(i) {
1794
+ e && e.__H && (e.__H.__h.length && (bi.push(e) !== 1 && Ht === L.requestAnimationFrame || ((Ht = L.requestAnimationFrame) || kr)(Er)), e.__H.__.forEach(function(i) {
1790
1795
  i.u && (i.__H = i.u), i.u = void 0;
1791
- })), nt = q = null;
1796
+ })), rt = q = null;
1792
1797
  }, L.__c = function(t, e) {
1793
1798
  e.some(function(i) {
1794
1799
  try {
1795
- i.__h.forEach(Ve), i.__h = i.__h.filter(function(n) {
1796
- return !n.__ || gt(n);
1800
+ i.__h.forEach(Ge), i.__h = i.__h.filter(function(n) {
1801
+ return !n.__ || yt(n);
1797
1802
  });
1798
1803
  } catch (n) {
1799
1804
  e.some(function(r) {
1800
1805
  r.__h && (r.__h = []);
1801
1806
  }), e = [], L.__e(n, i.__v);
1802
1807
  }
1803
- }), Wt && Wt(t, e);
1808
+ }), Qt && Qt(t, e);
1804
1809
  }, L.unmount = function(t) {
1805
- Jt && Jt(t);
1810
+ Zt && Zt(t);
1806
1811
  var e, i = t.__c;
1807
1812
  i && i.__H && (i.__H.__.forEach(function(n) {
1808
1813
  try {
1809
- Ve(n);
1814
+ Ge(n);
1810
1815
  } catch (r) {
1811
1816
  e = r;
1812
1817
  }
1813
1818
  }), i.__H = void 0, e && L.__e(e, i.__v));
1814
1819
  };
1815
- var Xt = typeof requestAnimationFrame == "function";
1816
- function mr(t) {
1820
+ var ti = typeof requestAnimationFrame == "function";
1821
+ function kr(t) {
1817
1822
  var e, i = function() {
1818
- clearTimeout(n), Xt && cancelAnimationFrame(e), setTimeout(t);
1823
+ clearTimeout(n), ti && cancelAnimationFrame(e), setTimeout(t);
1819
1824
  }, n = setTimeout(i, 100);
1820
- Xt && (e = requestAnimationFrame(i));
1825
+ ti && (e = requestAnimationFrame(i));
1821
1826
  }
1822
- function Ve(t) {
1827
+ function Ge(t) {
1823
1828
  var e = q, i = t.__c;
1824
1829
  typeof i == "function" && (t.__c = void 0, i()), q = e;
1825
1830
  }
1826
- function gt(t) {
1831
+ function yt(t) {
1827
1832
  var e = q;
1828
1833
  t.__c = t.__(), q = e;
1829
1834
  }
1830
- function Sr(t, e) {
1835
+ function Ir(t, e) {
1831
1836
  return !t || t.length !== e.length || e.some(function(i, n) {
1832
1837
  return i !== t[n];
1833
1838
  });
1834
1839
  }
1835
- var Er = Symbol.for("preact-signals");
1836
- function Ze() {
1840
+ var Rr = Symbol.for("preact-signals");
1841
+ function et() {
1837
1842
  if (re > 1)
1838
1843
  re--;
1839
1844
  else {
1840
1845
  for (var t, e = !1; Se !== void 0; ) {
1841
1846
  var i = Se;
1842
- for (Se = void 0, yt++; i !== void 0; ) {
1847
+ for (Se = void 0, wt++; i !== void 0; ) {
1843
1848
  var n = i.o;
1844
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && pi(i))
1849
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && mi(i))
1845
1850
  try {
1846
1851
  i.c();
1847
1852
  } catch (r) {
@@ -1850,7 +1855,7 @@ function Ze() {
1850
1855
  i = n;
1851
1856
  }
1852
1857
  }
1853
- if (yt = 0, re--, e)
1858
+ if (wt = 0, re--, e)
1854
1859
  throw t;
1855
1860
  }
1856
1861
  }
@@ -1861,11 +1866,11 @@ function D(t) {
1861
1866
  try {
1862
1867
  return t();
1863
1868
  } finally {
1864
- Ze();
1869
+ et();
1865
1870
  }
1866
1871
  }
1867
- var k = void 0, Se = void 0, re = 0, yt = 0, He = 0;
1868
- function wi(t) {
1872
+ var k = void 0, Se = void 0, re = 0, wt = 0, We = 0;
1873
+ function _i(t) {
1869
1874
  if (k !== void 0) {
1870
1875
  var e = t.n;
1871
1876
  if (e === void 0 || e.t !== k)
@@ -1877,7 +1882,7 @@ function wi(t) {
1877
1882
  function M(t) {
1878
1883
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1879
1884
  }
1880
- M.prototype.brand = Er;
1885
+ M.prototype.brand = Rr;
1881
1886
  M.prototype.h = function() {
1882
1887
  return !0;
1883
1888
  };
@@ -1921,31 +1926,31 @@ M.prototype.peek = function() {
1921
1926
  }
1922
1927
  };
1923
1928
  Object.defineProperty(M.prototype, "value", { get: function() {
1924
- var t = wi(this);
1929
+ var t = _i(this);
1925
1930
  return t !== void 0 && (t.i = this.i), this.v;
1926
1931
  }, set: function(t) {
1927
1932
  if (t !== this.v) {
1928
- if (yt > 100)
1933
+ if (wt > 100)
1929
1934
  throw new Error("Cycle detected");
1930
- this.v = t, this.i++, He++, re++;
1935
+ this.v = t, this.i++, We++, re++;
1931
1936
  try {
1932
1937
  for (var e = this.t; e !== void 0; e = e.x)
1933
1938
  e.t.N();
1934
1939
  } finally {
1935
- Ze();
1940
+ et();
1936
1941
  }
1937
1942
  }
1938
1943
  } });
1939
1944
  function E(t) {
1940
1945
  return new M(t);
1941
1946
  }
1942
- function pi(t) {
1947
+ function mi(t) {
1943
1948
  for (var e = t.s; e !== void 0; e = e.n)
1944
1949
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1945
1950
  return !0;
1946
1951
  return !1;
1947
1952
  }
1948
- function bi(t) {
1953
+ function Si(t) {
1949
1954
  for (var e = t.s; e !== void 0; e = e.n) {
1950
1955
  var i = e.S.n;
1951
1956
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1954,7 +1959,7 @@ function bi(t) {
1954
1959
  }
1955
1960
  }
1956
1961
  }
1957
- function Ai(t) {
1962
+ function Ei(t) {
1958
1963
  for (var e = t.s, i = void 0; e !== void 0; ) {
1959
1964
  var n = e.p;
1960
1965
  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;
@@ -1962,24 +1967,24 @@ function Ai(t) {
1962
1967
  t.s = i;
1963
1968
  }
1964
1969
  function pe(t) {
1965
- M.call(this, void 0), this.x = t, this.s = void 0, this.g = He - 1, this.f = 4;
1970
+ M.call(this, void 0), this.x = t, this.s = void 0, this.g = We - 1, this.f = 4;
1966
1971
  }
1967
1972
  (pe.prototype = new M()).h = function() {
1968
1973
  if (this.f &= -3, 1 & this.f)
1969
1974
  return !1;
1970
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === He))
1975
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === We))
1971
1976
  return !0;
1972
- if (this.g = He, this.f |= 1, this.i > 0 && !pi(this))
1977
+ if (this.g = We, this.f |= 1, this.i > 0 && !mi(this))
1973
1978
  return this.f &= -2, !0;
1974
1979
  var t = k;
1975
1980
  try {
1976
- bi(this), k = this;
1981
+ Si(this), k = this;
1977
1982
  var e = this.x();
1978
1983
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1979
1984
  } catch (i) {
1980
1985
  this.v = i, this.f |= 16, this.i++;
1981
1986
  }
1982
- return k = t, Ai(this), this.f &= -2, !0;
1987
+ return k = t, Ei(this), this.f &= -2, !0;
1983
1988
  };
1984
1989
  pe.prototype.S = function(t) {
1985
1990
  if (this.t === void 0) {
@@ -2006,7 +2011,7 @@ pe.prototype.N = function() {
2006
2011
  Object.defineProperty(pe.prototype, "value", { get: function() {
2007
2012
  if (1 & this.f)
2008
2013
  throw new Error("Cycle detected");
2009
- var t = wi(this);
2014
+ var t = _i(this);
2010
2015
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2011
2016
  throw this.v;
2012
2017
  return this.v;
@@ -2014,7 +2019,7 @@ Object.defineProperty(pe.prototype, "value", { get: function() {
2014
2019
  function Ee(t) {
2015
2020
  return new pe(t);
2016
2021
  }
2017
- function _i(t) {
2022
+ function ki(t) {
2018
2023
  var e = t.u;
2019
2024
  if (t.u = void 0, typeof e == "function") {
2020
2025
  re++;
@@ -2023,21 +2028,21 @@ function _i(t) {
2023
2028
  try {
2024
2029
  e();
2025
2030
  } catch (n) {
2026
- throw t.f &= -2, t.f |= 8, mt(t), n;
2031
+ throw t.f &= -2, t.f |= 8, St(t), n;
2027
2032
  } finally {
2028
- k = i, Ze();
2033
+ k = i, et();
2029
2034
  }
2030
2035
  }
2031
2036
  }
2032
- function mt(t) {
2037
+ function St(t) {
2033
2038
  for (var e = t.s; e !== void 0; e = e.n)
2034
2039
  e.S.U(e);
2035
- t.x = void 0, t.s = void 0, _i(t);
2040
+ t.x = void 0, t.s = void 0, ki(t);
2036
2041
  }
2037
- function kr(t) {
2042
+ function xr(t) {
2038
2043
  if (k !== this)
2039
2044
  throw new Error("Out-of-order effect");
2040
- Ai(this), k = t, this.f &= -2, 8 & this.f && mt(this), Ze();
2045
+ Ei(this), k = t, this.f &= -2, 8 & this.f && St(this), et();
2041
2046
  }
2042
2047
  function Oe(t) {
2043
2048
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
@@ -2056,15 +2061,15 @@ Oe.prototype.c = function() {
2056
2061
  Oe.prototype.S = function() {
2057
2062
  if (1 & this.f)
2058
2063
  throw new Error("Cycle detected");
2059
- this.f |= 1, this.f &= -9, _i(this), bi(this), re++;
2064
+ this.f |= 1, this.f &= -9, ki(this), Si(this), re++;
2060
2065
  var t = k;
2061
- return k = this, kr.bind(this, t);
2066
+ return k = this, xr.bind(this, t);
2062
2067
  };
2063
2068
  Oe.prototype.N = function() {
2064
2069
  2 & this.f || (this.f |= 2, this.o = Se, Se = this);
2065
2070
  };
2066
2071
  Oe.prototype.d = function() {
2067
- this.f |= 8, 1 & this.f || mt(this);
2072
+ this.f |= 8, 1 & this.f || St(this);
2068
2073
  };
2069
2074
  function Te(t) {
2070
2075
  var e = new Oe(t);
@@ -2075,21 +2080,21 @@ function Te(t) {
2075
2080
  }
2076
2081
  return e.d.bind(e);
2077
2082
  }
2078
- var mi, rt, Si = [];
2083
+ var Ii, ot, Ri = [];
2079
2084
  Te(function() {
2080
- mi = this.N;
2085
+ Ii = this.N;
2081
2086
  })();
2082
2087
  function be(t, e) {
2083
2088
  ve[t] = e.bind(null, ve[t] || function() {
2084
2089
  });
2085
2090
  }
2086
- function We(t) {
2087
- rt && rt(), rt = t && t.S();
2091
+ function Je(t) {
2092
+ ot && ot(), ot = t && t.S();
2088
2093
  }
2089
- function Ei(t) {
2090
- var e = this, i = t.data, n = ki(i);
2094
+ function xi(t) {
2095
+ var e = this, i = t.data, n = Oi(i);
2091
2096
  n.value = i;
2092
- var r = yi(function() {
2097
+ var r = Ai(function() {
2093
2098
  for (var a = e, d = e.__v; d = d.__; )
2094
2099
  if (d.__c) {
2095
2100
  d.__c.__$f |= 4;
@@ -2098,22 +2103,22 @@ function Ei(t) {
2098
2103
  var l = Ee(function() {
2099
2104
  var f = n.value.value;
2100
2105
  return f === 0 ? 0 : f === !0 ? "" : f || "";
2101
- }), u = Ee(function() {
2102
- return !Array.isArray(l.value) && !Fi(l.value);
2106
+ }), c = Ee(function() {
2107
+ return !Array.isArray(l.value) && !Vi(l.value);
2103
2108
  }), h = Te(function() {
2104
- if (this.N = Ri, u.value) {
2109
+ if (this.N = Ti, c.value) {
2105
2110
  var f = l.value;
2106
2111
  a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2107
2112
  }
2108
- }), c = e.__$u.d;
2113
+ }), u = e.__$u.d;
2109
2114
  return e.__$u.d = function() {
2110
- h(), c.call(this);
2111
- }, [u, l];
2115
+ h(), u.call(this);
2116
+ }, [c, l];
2112
2117
  }, []), o = r[0], s = r[1];
2113
2118
  return o.value ? s.peek() : s.value;
2114
2119
  }
2115
- Ei.displayName = "_st";
2116
- Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ei }, props: { configurable: !0, get: function() {
2120
+ xi.displayName = "_st";
2121
+ Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: xi }, props: { configurable: !0, get: function() {
2117
2122
  return { data: this };
2118
2123
  } }, __b: { configurable: !0, value: 1 } });
2119
2124
  be("__b", function(t, e) {
@@ -2128,7 +2133,7 @@ be("__b", function(t, e) {
2128
2133
  t(e);
2129
2134
  });
2130
2135
  be("__r", function(t, e) {
2131
- We();
2136
+ Je();
2132
2137
  var i, n = e.__c;
2133
2138
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2134
2139
  var o;
@@ -2137,13 +2142,13 @@ be("__r", function(t, e) {
2137
2142
  }), o.c = function() {
2138
2143
  n.__$f |= 1, n.setState({});
2139
2144
  }, o;
2140
- }())), We(i), t(e);
2145
+ }())), Je(i), t(e);
2141
2146
  });
2142
2147
  be("__e", function(t, e, i, n) {
2143
- We(), t(e, i, n);
2148
+ Je(), t(e, i, n);
2144
2149
  });
2145
2150
  be("diffed", function(t, e) {
2146
- We();
2151
+ Je();
2147
2152
  var i;
2148
2153
  if (typeof e.type == "string" && (i = e.__e)) {
2149
2154
  var n = e.__np, r = e.props;
@@ -2157,19 +2162,19 @@ be("diffed", function(t, e) {
2157
2162
  else
2158
2163
  o = {}, i.U = o;
2159
2164
  for (var d in n) {
2160
- var l = o[d], u = n[d];
2161
- l === void 0 ? (l = Rr(i, d, u, r), o[d] = l) : l.o(u, r);
2165
+ var l = o[d], c = n[d];
2166
+ l === void 0 ? (l = Or(i, d, c, r), o[d] = l) : l.o(c, r);
2162
2167
  }
2163
2168
  }
2164
2169
  }
2165
2170
  t(e);
2166
2171
  });
2167
- function Rr(t, e, i, n) {
2172
+ function Or(t, e, i, n) {
2168
2173
  var r = e in t && t.ownerSVGElement === void 0, o = E(i);
2169
2174
  return { o: function(s, a) {
2170
2175
  o.value = s, n = a;
2171
2176
  }, d: Te(function() {
2172
- this.N = Ri;
2177
+ this.N = Ti;
2173
2178
  var s = o.value.value;
2174
2179
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2175
2180
  }) };
@@ -2199,7 +2204,7 @@ be("unmount", function(t, e) {
2199
2204
  be("__h", function(t, e, i, n) {
2200
2205
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2201
2206
  });
2202
- Bi.prototype.shouldComponentUpdate = function(t, e) {
2207
+ Ui.prototype.shouldComponentUpdate = function(t, e) {
2203
2208
  var i = this.__$u, n = i && i.s !== void 0;
2204
2209
  for (var r in e)
2205
2210
  return !0;
@@ -2217,24 +2222,24 @@ Bi.prototype.shouldComponentUpdate = function(t, e) {
2217
2222
  return !0;
2218
2223
  return !1;
2219
2224
  };
2220
- function ki(t) {
2221
- return yi(function() {
2225
+ function Oi(t) {
2226
+ return Ai(function() {
2222
2227
  return E(t);
2223
2228
  }, []);
2224
2229
  }
2225
- var Ir = function(t) {
2230
+ var Tr = function(t) {
2226
2231
  queueMicrotask(function() {
2227
2232
  queueMicrotask(t);
2228
2233
  });
2229
2234
  };
2230
- function xr() {
2235
+ function Cr() {
2231
2236
  D(function() {
2232
- for (var t; t = Si.shift(); )
2233
- mi.call(t);
2237
+ for (var t; t = Ri.shift(); )
2238
+ Ii.call(t);
2234
2239
  });
2235
2240
  }
2236
- function Ri() {
2237
- Si.push(this) === 1 && (ve.requestAnimationFrame || Ir)(xr);
2241
+ function Ti() {
2242
+ Ri.push(this) === 1 && (ve.requestAnimationFrame || Tr)(Cr);
2238
2243
  }
2239
2244
  const F = we`
2240
2245
  inset: 0;
@@ -2255,11 +2260,11 @@ const F = we`
2255
2260
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2256
2261
  'Helvetica Neue', sans-serif;
2257
2262
  `;
2258
- function Or(t, e) {
2259
- const i = ji(t);
2260
- Ui(() => {
2263
+ function Dr(t, e) {
2264
+ const i = Gi(t);
2265
+ qi(() => {
2261
2266
  i.current = t;
2262
- }, [t]), Je(() => {
2267
+ }, [t]), Xe(() => {
2263
2268
  if (e === null)
2264
2269
  return;
2265
2270
  const n = setInterval(() => {
@@ -2270,20 +2275,20 @@ function Or(t, e) {
2270
2275
  };
2271
2276
  }, [e]);
2272
2277
  }
2273
- var Tr = 0;
2278
+ var Lr = 0;
2274
2279
  function _(t, e, i, n, r, o) {
2275
2280
  e || (e = {});
2276
2281
  var s, a, d = e;
2277
2282
  if ("ref" in d)
2278
2283
  for (a in d = {}, e)
2279
2284
  a == "ref" ? s = e[a] : d[a] = e[a];
2280
- var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Tr, __i: -1, __u: 0, __source: r, __self: o };
2285
+ var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Lr, __i: -1, __u: 0, __source: r, __self: o };
2281
2286
  if (typeof t == "function" && (s = t.defaultProps))
2282
2287
  for (a in s)
2283
2288
  d[a] === void 0 && (d[a] = s[a]);
2284
2289
  return ve.vnode && ve.vnode(l), l;
2285
2290
  }
2286
- const Cr = we`
2291
+ const Pr = we`
2287
2292
  ${F}
2288
2293
  position: fixed;
2289
2294
  top: 0;
@@ -2358,55 +2363,55 @@ const Cr = we`
2358
2363
  }
2359
2364
  }
2360
2365
  }
2361
- `, W = E(null), wt = E(""), pt = E(""), Ge = E(!1), Dr = () => {
2366
+ `, W = E(null), pt = E(""), bt = E(""), qe = E(!1), Nr = () => {
2362
2367
  var t;
2363
2368
  (t = W.value) == null || t.call(W, !1);
2364
- }, Lr = () => {
2369
+ }, Mr = () => {
2365
2370
  var t;
2366
2371
  (t = W.value) == null || t.call(W, !0);
2367
- }, Pr = async (t) => {
2372
+ }, $r = async (t) => {
2368
2373
  let {
2369
2374
  title: e,
2370
2375
  content: i
2371
2376
  } = t;
2372
2377
  return W.value && (W.value(!1), D(() => {
2373
- W.value = null, Ge.value = !1;
2378
+ W.value = null, qe.value = !1;
2374
2379
  })), D(() => {
2375
- wt.value = e || "", pt.value = i || "", Ge.value = !0;
2380
+ pt.value = e || "", bt.value = i || "", qe.value = !0;
2376
2381
  }), new Promise((n) => {
2377
2382
  W.value = (r) => {
2378
2383
  D(() => {
2379
- W.value = null, Ge.value = !1, wt.value = "", pt.value = "";
2384
+ W.value = null, qe.value = !1, pt.value = "", bt.value = "";
2380
2385
  }), n(r);
2381
2386
  };
2382
2387
  });
2383
- }, Nr = () => Ge.value ? _("div", {
2384
- className: Cr,
2388
+ }, Br = () => qe.value ? _("div", {
2389
+ className: Pr,
2385
2390
  children: _("div", {
2386
2391
  className: "card-wrapper",
2387
2392
  children: [_("div", {
2388
2393
  className: "body",
2389
2394
  children: [_("div", {
2390
2395
  className: "title",
2391
- children: wt.value
2396
+ children: pt.value
2392
2397
  }), _("div", {
2393
2398
  className: "content",
2394
- children: pt.value
2399
+ children: bt.value
2395
2400
  })]
2396
2401
  }), _("div", {
2397
2402
  className: "footer",
2398
2403
  children: [_("button", {
2399
- onClick: Dr,
2404
+ onClick: Nr,
2400
2405
  className: "cancel-btn",
2401
2406
  children: "Cancel"
2402
2407
  }), _("button", {
2403
- onClick: Lr,
2408
+ onClick: Mr,
2404
2409
  className: "confirm-btm",
2405
2410
  children: "Confirm"
2406
2411
  })]
2407
2412
  })]
2408
2413
  })
2409
- }) : null, Mr = we`
2414
+ }) : null, Fr = we`
2410
2415
  ${F}
2411
2416
  position: relative;
2412
2417
  display: flex;
@@ -2439,7 +2444,7 @@ const Cr = we`
2439
2444
  cursor: not-allowed;
2440
2445
  }
2441
2446
  }
2442
- `, $r = () => {
2447
+ `, jr = () => {
2443
2448
  const t = E(!1), e = E(null);
2444
2449
  return {
2445
2450
  timerPaused: t,
@@ -2450,7 +2455,7 @@ const Cr = we`
2450
2455
  });
2451
2456
  }
2452
2457
  };
2453
- }, Br = (t) => {
2458
+ }, Ur = (t) => {
2454
2459
  let {
2455
2460
  countdown: e = 0,
2456
2461
  mode: i,
@@ -2460,8 +2465,8 @@ const Cr = we`
2460
2465
  const {
2461
2466
  startTimestamp: o,
2462
2467
  timerPaused: s
2463
- } = r, a = ki(e);
2464
- Or(() => {
2468
+ } = r, a = Oi(e);
2469
+ Dr(() => {
2465
2470
  a.value > 0 ? a.value -= 1 : D(() => {
2466
2471
  s.value = !0, a.value = 0;
2467
2472
  });
@@ -2478,8 +2483,8 @@ const Cr = we`
2478
2483
  return !1;
2479
2484
  const f = Date.now() - o.value;
2480
2485
  return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2481
- }), u = Ee(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2482
- if (s.value = !0, !await Pr({
2486
+ }), c = Ee(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2487
+ if (s.value = !0, !await $r({
2483
2488
  title: "Are you sure?",
2484
2489
  content: "You will lose your reward if you dismiss this Ad."
2485
2490
  })) {
@@ -2489,19 +2494,19 @@ const Cr = we`
2489
2494
  n("dismiss"), D(() => {
2490
2495
  s.value = !0, a.value = 0, o.value = null;
2491
2496
  });
2492
- }, c = () => {
2497
+ }, u = () => {
2493
2498
  n("viewed"), D(() => {
2494
2499
  s.value = !0, a.value = 0, o.value = null;
2495
2500
  });
2496
2501
  };
2497
2502
  return _("div", {
2498
- className: Mr,
2503
+ className: Fr,
2499
2504
  children: [a.value > 0 && i !== "interstitial" && _("div", {
2500
2505
  className: "timer",
2501
2506
  children: [a.value, "s"]
2502
2507
  }), _("button", {
2503
- onClick: d.value ? h : l.value ? c : void 0,
2504
- disabled: u.value,
2508
+ onClick: d.value ? h : l.value ? u : void 0,
2509
+ disabled: c.value,
2505
2510
  children: _("svg", {
2506
2511
  width: "12",
2507
2512
  height: "12",
@@ -2515,7 +2520,7 @@ const Cr = we`
2515
2520
  })
2516
2521
  })]
2517
2522
  });
2518
- }, Ii = () => {
2523
+ }, Ci = () => {
2519
2524
  const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
2520
2525
  return {
2521
2526
  afterAd: t,
@@ -2528,7 +2533,7 @@ const Cr = we`
2528
2533
  src: a,
2529
2534
  mode: d
2530
2535
  };
2531
- }, Fr = we`
2536
+ }, Vr = we`
2532
2537
  ${F}
2533
2538
  position: fixed;
2534
2539
  z-index: 2147483647;
@@ -2547,7 +2552,7 @@ const Cr = we`
2547
2552
  width: 100%;
2548
2553
  height: 100%;
2549
2554
  }
2550
- `, xi = (t) => {
2555
+ `, Di = (t) => {
2551
2556
  let {
2552
2557
  state: e
2553
2558
  } = t;
@@ -2560,22 +2565,22 @@ const Cr = we`
2560
2565
  visible: a,
2561
2566
  countdown: d,
2562
2567
  src: l,
2563
- mode: u
2564
- } = e, h = Vi(() => $r(), []), [c, f] = Qt(!1), w = (p) => {
2568
+ mode: c
2569
+ } = e, h = Ki(() => jr(), []), [u, f] = ii(!1), w = (p) => {
2565
2570
  var y, v, b, T;
2566
2571
  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);
2567
- }, g = Gi(() => {
2572
+ }, g = zi(() => {
2568
2573
  var p;
2569
- c || (f(!0), (p = s.value) == null || p.call(s));
2570
- }, [c]);
2571
- return Je(() => {
2572
- c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
2574
+ u || (f(!0), (p = s.value) == null || p.call(s));
2575
+ }, [u]);
2576
+ return Xe(() => {
2577
+ u && (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
2573
2578
  h.startTimer();
2574
2579
  }, 100);
2575
- }, [c, u.value]), a.value ? _("div", {
2576
- className: Fr,
2577
- children: [_(Br, {
2578
- mode: u.value,
2580
+ }, [u, c.value]), a.value ? _("div", {
2581
+ className: Vr,
2582
+ children: [_(Ur, {
2583
+ mode: c.value,
2579
2584
  onClose: w,
2580
2585
  countdown: d.value,
2581
2586
  state: h
@@ -2583,17 +2588,17 @@ const Cr = we`
2583
2588
  src: l.value,
2584
2589
  onLoad: g,
2585
2590
  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"
2586
- }), _(Nr, {})]
2591
+ }), _(Br, {})]
2587
2592
  }) : null;
2588
2593
  };
2589
2594
  function Z(t, e, i) {
2590
- return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2595
+ return (e = Gr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2591
2596
  }
2592
- function jr(t) {
2593
- var e = Ur(t, "string");
2597
+ function Gr(t) {
2598
+ var e = qr(t, "string");
2594
2599
  return typeof e == "symbol" ? e : e + "";
2595
2600
  }
2596
- function Ur(t, e) {
2601
+ function qr(t, e) {
2597
2602
  if (typeof t != "object" || !t)
2598
2603
  return t;
2599
2604
  var i = t[Symbol.toPrimitive];
@@ -2605,13 +2610,13 @@ function Ur(t, e) {
2605
2610
  }
2606
2611
  return (e === "string" ? String : Number)(t);
2607
2612
  }
2608
- class Vr {
2613
+ class Kr {
2609
2614
  constructor(e, i) {
2610
- 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;
2615
+ 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", Ci()), this.context = e, this.initParams = i;
2611
2616
  }
2612
2617
  async init() {
2613
2618
  var e;
2614
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(xi, {
2619
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(Di, {
2615
2620
  state: this.state
2616
2621
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2617
2622
  }
@@ -2627,7 +2632,7 @@ class Vr {
2627
2632
  };
2628
2633
  }
2629
2634
  async adBreak(e, i) {
2630
- var n, r, o, s, a, d, l, u;
2635
+ var n, r, o, s, a, d, l, c;
2631
2636
  if (!this.initialized || !this.adsOverlay || !i.params.url) {
2632
2637
  (n = e.adBreakDone) == null || n.call(e, {
2633
2638
  breakType: e.type,
@@ -2664,7 +2669,7 @@ class Vr {
2664
2669
  const h = () => {
2665
2670
  var f;
2666
2671
  this.adsIsShowing = !1, (f = e.afterAd) == null || f.call(e);
2667
- }, c = () => {
2672
+ }, u = () => {
2668
2673
  var f;
2669
2674
  this.adsIsShowing = !1, (f = e.adBreakDone) == null || f.call(e, {
2670
2675
  breakType: e.type,
@@ -2674,7 +2679,7 @@ class Vr {
2674
2679
  });
2675
2680
  };
2676
2681
  D(() => {
2677
- 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;
2682
+ this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = u, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
2678
2683
  });
2679
2684
  break;
2680
2685
  }
@@ -2688,20 +2693,20 @@ class Vr {
2688
2693
  const h = () => {
2689
2694
  var y;
2690
2695
  this.adsIsShowing = !1, (y = e.afterAd) == null || y.call(e);
2691
- }, c = {
2696
+ }, u = {
2692
2697
  breakType: e.type,
2693
2698
  breakName: e.name,
2694
2699
  breakFormat: "reward",
2695
2700
  breakStatus: "ignored"
2696
2701
  }, f = () => {
2697
2702
  var y;
2698
- this.adsIsShowing = !1, c.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
2703
+ this.adsIsShowing = !1, u.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
2699
2704
  }, w = () => {
2700
2705
  var y;
2701
- this.adsIsShowing = !1, c.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
2706
+ this.adsIsShowing = !1, u.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
2702
2707
  }, g = () => {
2703
2708
  var y;
2704
- this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, c);
2709
+ this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, u);
2705
2710
  };
2706
2711
  D(() => {
2707
2712
  this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = w, this.state.adBreakDone.value = g;
@@ -2722,7 +2727,7 @@ class Vr {
2722
2727
  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;
2723
2728
  });
2724
2729
  };
2725
- this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, p);
2730
+ this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, p);
2726
2731
  break;
2727
2732
  }
2728
2733
  }
@@ -2735,10 +2740,10 @@ window.addEventListener("message", (t) => {
2735
2740
  });
2736
2741
  });
2737
2742
  const de = (t, e) => {
2738
- Je(() => (he[t] || (he[t] = /* @__PURE__ */ new Set()), he[t].add(e), () => {
2743
+ Xe(() => (he[t] || (he[t] = /* @__PURE__ */ new Set()), he[t].add(e), () => {
2739
2744
  he[t].delete(e);
2740
2745
  }), [t, e]);
2741
- }, Oi = () => {
2746
+ }, Li = () => {
2742
2747
  const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
2743
2748
  return {
2744
2749
  afterAd: t,
@@ -2751,7 +2756,7 @@ const de = (t, e) => {
2751
2756
  visible: a,
2752
2757
  src: d
2753
2758
  };
2754
- }, Gr = we`
2759
+ }, zr = we`
2755
2760
  ${F}
2756
2761
  position: fixed;
2757
2762
  z-index: 2147483647;
@@ -2770,7 +2775,7 @@ const de = (t, e) => {
2770
2775
  width: 100%;
2771
2776
  height: 100%;
2772
2777
  }
2773
- `, Ti = (t) => {
2778
+ `, Pi = (t) => {
2774
2779
  let {
2775
2780
  state: e
2776
2781
  } = t;
@@ -2783,20 +2788,20 @@ const de = (t, e) => {
2783
2788
  adLinkClicked: a,
2784
2789
  visible: d,
2785
2790
  src: l
2786
- } = e, [u, h] = Qt(!1), c = (w) => {
2791
+ } = e, [c, h] = ii(!1), u = (w) => {
2787
2792
  var g, p, y, v;
2788
2793
  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);
2789
2794
  }, f = () => {
2790
2795
  var w;
2791
2796
  (w = s.value) == null || w.call(s);
2792
2797
  };
2793
- return de("appsrockets_ad_dismissed", () => c("dismiss")), de("appsrockets_ad_rewarded", () => c("viewed")), de("appsrockets_ad_completed", () => c("viewed")), de("appsrockets_ad_skipped", () => c("viewed")), de("appsrockets_ad_clicked", (w) => {
2798
+ return de("appsrockets_ad_dismissed", () => u("dismiss")), de("appsrockets_ad_rewarded", () => u("viewed")), de("appsrockets_ad_completed", () => u("viewed")), de("appsrockets_ad_skipped", () => u("viewed")), de("appsrockets_ad_clicked", (w) => {
2794
2799
  var g;
2795
2800
  return (g = a.value) == null ? void 0 : g.call(a, w);
2796
2801
  }), de("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
2797
- className: Gr,
2802
+ className: zr,
2798
2803
  style: {
2799
- display: u ? "flex" : "none"
2804
+ display: c ? "flex" : "none"
2800
2805
  },
2801
2806
  children: d.value && _("iframe", {
2802
2807
  src: l.value,
@@ -2808,13 +2813,13 @@ const de = (t, e) => {
2808
2813
  }) : null;
2809
2814
  };
2810
2815
  function ee(t, e, i) {
2811
- return (e = qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2816
+ return (e = Hr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2812
2817
  }
2813
- function qr(t) {
2814
- var e = Kr(t, "string");
2818
+ function Hr(t) {
2819
+ var e = Wr(t, "string");
2815
2820
  return typeof e == "symbol" ? e : e + "";
2816
2821
  }
2817
- function Kr(t, e) {
2822
+ function Wr(t, e) {
2818
2823
  if (typeof t != "object" || !t)
2819
2824
  return t;
2820
2825
  var i = t[Symbol.toPrimitive];
@@ -2826,9 +2831,9 @@ function Kr(t, e) {
2826
2831
  }
2827
2832
  return (e === "string" ? String : Number)(t);
2828
2833
  }
2829
- class zr {
2834
+ class Jr {
2830
2835
  constructor(e, i) {
2831
- 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", Oi()), ee(this, "processUrl", (n) => {
2836
+ 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", Li()), ee(this, "processUrl", (n) => {
2832
2837
  var a;
2833
2838
  const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
2834
2839
  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();
@@ -2836,7 +2841,7 @@ class zr {
2836
2841
  }
2837
2842
  async init() {
2838
2843
  var e;
2839
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(Ti, {
2844
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(Pi, {
2840
2845
  state: this.state
2841
2846
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2842
2847
  }
@@ -2852,7 +2857,7 @@ class zr {
2852
2857
  };
2853
2858
  }
2854
2859
  adBreak(e, i) {
2855
- var r, o, s, a, d, l, u, h;
2860
+ var r, o, s, a, d, l, c, h;
2856
2861
  if (!this.initialized || !this.adsOverlay || !i.params.url) {
2857
2862
  (r = e.adBreakDone) == null || r.call(e, {
2858
2863
  breakType: e.type,
@@ -2871,9 +2876,9 @@ class zr {
2871
2876
  });
2872
2877
  return;
2873
2878
  }
2874
- const n = (c) => {
2879
+ const n = (u) => {
2875
2880
  var f, w;
2876
- (w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
2881
+ (w = (f = this.context).handleLinkClicked) == null || w.call(f, u);
2877
2882
  };
2878
2883
  switch (e.type) {
2879
2884
  case "preroll": {
@@ -2890,7 +2895,7 @@ class zr {
2890
2895
  case "next":
2891
2896
  case "pause": {
2892
2897
  (a = e.beforeAd) == null || a.call(e);
2893
- const c = () => {
2898
+ const u = () => {
2894
2899
  var g;
2895
2900
  this.adsIsShowing = !1, (g = e.afterAd) == null || g.call(e);
2896
2901
  }, f = () => {
@@ -2911,7 +2916,7 @@ class zr {
2911
2916
  });
2912
2917
  };
2913
2918
  D(() => {
2914
- 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;
2919
+ this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = w, this.state.visible.value = !0;
2915
2920
  });
2916
2921
  break;
2917
2922
  }
@@ -2921,8 +2926,8 @@ class zr {
2921
2926
  breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
2922
2927
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2923
2928
  breakStatus: "ignored"
2924
- }), this.lastUnDisplayedAdBreak = null), (u = e.beforeAd) == null || u.call(e);
2925
- const c = () => {
2929
+ }), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
2930
+ const u = () => {
2926
2931
  var b;
2927
2932
  this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
2928
2933
  }, f = {
@@ -2943,7 +2948,7 @@ class zr {
2943
2948
  this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
2944
2949
  };
2945
2950
  D(() => {
2946
- 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;
2951
+ this.state.afterAd.value = u, 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;
2947
2952
  });
2948
2953
  const v = () => {
2949
2954
  var b;
@@ -2966,7 +2971,7 @@ class zr {
2966
2971
  }
2967
2972
  }
2968
2973
  }
2969
- const Ci = () => {
2974
+ const Ni = () => {
2970
2975
  window.googletag = window.googletag || {
2971
2976
  cmd: []
2972
2977
  }, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
@@ -2974,13 +2979,13 @@ const Ci = () => {
2974
2979
  });
2975
2980
  };
2976
2981
  function $(t, e, i) {
2977
- return (e = Hr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2982
+ return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2978
2983
  }
2979
- function Hr(t) {
2980
- var e = Wr(t, "string");
2984
+ function Xr(t) {
2985
+ var e = Yr(t, "string");
2981
2986
  return typeof e == "symbol" ? e : e + "";
2982
2987
  }
2983
- function Wr(t, e) {
2988
+ function Yr(t, e) {
2984
2989
  if (typeof t != "object" || !t)
2985
2990
  return t;
2986
2991
  var i = t[Symbol.toPrimitive];
@@ -2992,7 +2997,7 @@ function Wr(t, e) {
2992
2997
  }
2993
2998
  return (e === "string" ? String : Number)(t);
2994
2999
  }
2995
- class Di {
3000
+ class Mi {
2996
3001
  constructor(e, i, n) {
2997
3002
  $(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() {
2998
3003
  googletag.cmd.push(...arguments);
@@ -3046,19 +3051,19 @@ class Di {
3046
3051
  }, 500);
3047
3052
  }
3048
3053
  });
3049
- }), this.adUnit = e, this.project = i, this.keyValue = n, Ci(), this.withCommand(() => {
3054
+ }), this.adUnit = e, this.project = i, this.keyValue = n, Ni(), this.withCommand(() => {
3050
3055
  this.init();
3051
3056
  });
3052
3057
  }
3053
3058
  }
3054
3059
  function V(t, e, i) {
3055
- return (e = Jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3060
+ return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3056
3061
  }
3057
- function Jr(t) {
3058
- var e = Yr(t, "string");
3062
+ function Qr(t) {
3063
+ var e = Zr(t, "string");
3059
3064
  return typeof e == "symbol" ? e : e + "";
3060
3065
  }
3061
- function Yr(t, e) {
3066
+ function Zr(t, e) {
3062
3067
  if (typeof t != "object" || !t)
3063
3068
  return t;
3064
3069
  var i = t[Symbol.toPrimitive];
@@ -3070,7 +3075,7 @@ function Yr(t, e) {
3070
3075
  }
3071
3076
  return (e === "string" ? String : Number)(t);
3072
3077
  }
3073
- class Xr {
3078
+ class eo {
3074
3079
  constructor(e, i, n) {
3075
3080
  var r = this;
3076
3081
  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() {
@@ -3107,19 +3112,19 @@ class Xr {
3107
3112
  }), this.isRetrying = !1;
3108
3113
  }, 31e3)));
3109
3114
  });
3110
- }), Ci(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3115
+ }), Ni(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3111
3116
  this.init();
3112
3117
  });
3113
3118
  }
3114
3119
  }
3115
3120
  function se(t, e, i) {
3116
- return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3121
+ return (e = to(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3117
3122
  }
3118
- function Qr(t) {
3119
- var e = Zr(t, "string");
3123
+ function to(t) {
3124
+ var e = io(t, "string");
3120
3125
  return typeof e == "symbol" ? e : e + "";
3121
3126
  }
3122
- function Zr(t, e) {
3127
+ function io(t, e) {
3123
3128
  if (typeof t != "object" || !t)
3124
3129
  return t;
3125
3130
  var i = t[Symbol.toPrimitive];
@@ -3131,7 +3136,7 @@ function Zr(t, e) {
3131
3136
  }
3132
3137
  return (e === "string" ? String : Number)(t);
3133
3138
  }
3134
- class eo {
3139
+ class no {
3135
3140
  constructor(e, i) {
3136
3141
  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", () => {
3137
3142
  const n = "jolibox-google-gpt";
@@ -3141,7 +3146,7 @@ class eo {
3141
3146
  }
3142
3147
  async init() {
3143
3148
  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"}`;
3144
- e && (this.rewardAdManager = new Di(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Xr(i, r, this.initParams.keyValue));
3149
+ e && (this.rewardAdManager = new Mi(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new eo(i, r, this.initParams.keyValue));
3145
3150
  }
3146
3151
  adConfig(e, i) {
3147
3152
  }
@@ -3212,14 +3217,14 @@ class eo {
3212
3217
  }
3213
3218
  }
3214
3219
  }
3215
- function ot(t, e, i) {
3216
- return (e = to(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3220
+ function st(t, e, i) {
3221
+ return (e = ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3217
3222
  }
3218
- function to(t) {
3219
- var e = io(t, "string");
3223
+ function ro(t) {
3224
+ var e = oo(t, "string");
3220
3225
  return typeof e == "symbol" ? e : e + "";
3221
3226
  }
3222
- function io(t, e) {
3227
+ function oo(t, e) {
3223
3228
  if (typeof t != "object" || !t)
3224
3229
  return t;
3225
3230
  var i = t[Symbol.toPrimitive];
@@ -3231,10 +3236,10 @@ function io(t, e) {
3231
3236
  }
3232
3237
  return (e === "string" ? String : Number)(t);
3233
3238
  }
3234
- class no {
3239
+ class so {
3235
3240
  constructor(e) {
3236
3241
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
3237
- ot(this, "context", void 0), ot(this, "placement", "GAME"), ot(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
3242
+ st(this, "context", void 0), st(this, "placement", "GAME"), st(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
3238
3243
  }
3239
3244
  getLocation() {
3240
3245
  const e = new URLSearchParams(window.location.search), i = {};
@@ -3248,7 +3253,7 @@ class no {
3248
3253
  getDevice() {
3249
3254
  var e, i, n, r;
3250
3255
  return {
3251
- platform: (e = this.contextInfo.platform) != null ? e : ri.WebSDK,
3256
+ platform: (e = this.contextInfo.platform) != null ? e : di.WebSDK,
3252
3257
  os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
3253
3258
  appVersion: "1.0.0",
3254
3259
  // mock
@@ -3267,7 +3272,7 @@ class no {
3267
3272
  protocolVersion: "1.0.0",
3268
3273
  events: [{
3269
3274
  name: e,
3270
- type: ii.System,
3275
+ type: si.System,
3271
3276
  location: this.getLocation(),
3272
3277
  target: null,
3273
3278
  extra: i,
@@ -3275,19 +3280,19 @@ class no {
3275
3280
  userId: (o = this.contextInfo.userId) != null ? o : null
3276
3281
  }],
3277
3282
  device: this.getDevice(),
3278
- project: ni.WebSDK
3283
+ project: ai.WebSDK
3279
3284
  };
3280
- return cn(r);
3285
+ return vn(r);
3281
3286
  }
3282
3287
  }
3283
3288
  function j(t, e, i) {
3284
- return (e = ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3289
+ return (e = ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3285
3290
  }
3286
- function ro(t) {
3287
- var e = oo(t, "string");
3291
+ function ao(t) {
3292
+ var e = lo(t, "string");
3288
3293
  return typeof e == "symbol" ? e : e + "";
3289
3294
  }
3290
- function oo(t, e) {
3295
+ function lo(t, e) {
3291
3296
  if (typeof t != "object" || !t)
3292
3297
  return t;
3293
3298
  var i = t[Symbol.toPrimitive];
@@ -3299,9 +3304,9 @@ function oo(t, e) {
3299
3304
  }
3300
3305
  return (e === "string" ? String : Number)(t);
3301
3306
  }
3302
- class St {
3307
+ class Et {
3303
3308
  constructor(e) {
3304
- j(this, "context", void 0), j(this, "adsTrackSerializer", void 0), j(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new no(this.context);
3309
+ j(this, "context", void 0), j(this, "adsTrackSerializer", void 0), j(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new so(this.context);
3305
3310
  }
3306
3311
  getRequestContextData(e) {
3307
3312
  var r, o;
@@ -3337,7 +3342,7 @@ class St {
3337
3342
  };
3338
3343
  }
3339
3344
  }
3340
- class Li {
3345
+ class $i {
3341
3346
  constructor(e, i) {
3342
3347
  var n = this;
3343
3348
  j(this, "context", void 0), j(this, "contextInfo", void 0), j(this, "requestContext", void 0), j(this, "pendingAFGAdsInfo", {
@@ -3377,17 +3382,17 @@ class Li {
3377
3382
  return n.cacheAFVInfo(), o;
3378
3383
  } else
3379
3384
  return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
3380
- }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new St(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
3385
+ }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new Et(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
3381
3386
  }
3382
3387
  }
3383
3388
  function z(t, e, i) {
3384
- return (e = so(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3389
+ return (e = uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3385
3390
  }
3386
- function so(t) {
3387
- var e = ao(t, "string");
3391
+ function uo(t) {
3392
+ var e = co(t, "string");
3388
3393
  return typeof e == "symbol" ? e : e + "";
3389
3394
  }
3390
- function ao(t, e) {
3395
+ function co(t, e) {
3391
3396
  if (typeof t != "object" || !t)
3392
3397
  return t;
3393
3398
  var i = t[Symbol.toPrimitive];
@@ -3399,10 +3404,10 @@ function ao(t, e) {
3399
3404
  }
3400
3405
  return (e === "string" ? String : Number)(t);
3401
3406
  }
3402
- class Go {
3407
+ class zo {
3403
3408
  constructor(e) {
3404
3409
  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)
3405
- this.context = e, this.channelPolicy = new Tn(this.context), this.adsActionDetection = new In(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new Li(e), this.requestContext = new St(e);
3410
+ this.context = e, this.channelPolicy = new Ln(this.context), this.adsActionDetection = new Tn(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new $i(e), this.requestContext = new Et(e);
3406
3411
  else
3407
3412
  throw new Error("JoliboxAdsForGame requires a configuration object");
3408
3413
  }
@@ -3421,23 +3426,23 @@ class Go {
3421
3426
  for (const n of i)
3422
3427
  switch (n.provider) {
3423
3428
  case "GOOGLE_GPT": {
3424
- const r = new eo(this.context, n.params);
3429
+ const r = new no(this.context, n.params);
3425
3430
  await r.init(), this.providers[n.provider] = r;
3426
3431
  break;
3427
3432
  }
3428
3433
  case "ADSENSE":
3429
3434
  case "ADSENSE_ADMOB": {
3430
- const r = new Ln(this.context, n.params);
3435
+ const r = new Mn(this.context, n.params);
3431
3436
  await r.init(), this.providers[n.provider] = r;
3432
3437
  break;
3433
3438
  }
3434
3439
  case "OKSPIN": {
3435
- const r = new Vr(this.context, n.params);
3440
+ const r = new Kr(this.context, n.params);
3436
3441
  await r.init(), this.providers.OKSPIN = r;
3437
3442
  break;
3438
3443
  }
3439
3444
  case "APPSROCKETS": {
3440
- const r = new zr(this.context, n.params);
3445
+ const r = new Jr(this.context, n.params);
3441
3446
  await r.init(), this.providers.APPSROCKETS = r;
3442
3447
  break;
3443
3448
  }
@@ -3448,7 +3453,7 @@ class Go {
3448
3453
  this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
3449
3454
  }
3450
3455
  async adBreak(e) {
3451
- var r, o, s, a, d, l, u, h, c, f, w, g, p, y;
3456
+ var r, o, s, a, d, l, c, h, u, f, w, g, p, y;
3452
3457
  const i = Date.now();
3453
3458
  if (i - this.initializedTimeStamp < 3e3) {
3454
3459
  (r = e.adBreakDone) == null || r.call(e, {
@@ -3509,8 +3514,8 @@ class Go {
3509
3514
  }
3510
3515
  case "reward": {
3511
3516
  e.beforeReward(() => {
3512
- var I, O, A, Ce;
3513
- (I = e.beforeAd) == null || I.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (Ce = e.adBreakDone) == null || Ce.call(e, {
3517
+ var R, O, A, Ce;
3518
+ (R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (A = e.afterAd) == null || A.call(e), (Ce = e.adBreakDone) == null || Ce.call(e, {
3514
3519
  breakType: e.type,
3515
3520
  breakName: e.name,
3516
3521
  breakFormat: "reward",
@@ -3520,7 +3525,7 @@ class Go {
3520
3525
  break;
3521
3526
  }
3522
3527
  default: {
3523
- (u = e.beforeAd) == null || u.call(e), (h = e.afterAd) == null || h.call(e), (c = e.adBreakDone) == null || c.call(e, {
3528
+ (c = e.beforeAd) == null || c.call(e), (h = e.afterAd) == null || h.call(e), (u = e.adBreakDone) == null || u.call(e, {
3524
3529
  breakType: e.type,
3525
3530
  breakName: e.name,
3526
3531
  breakFormat: "interstitial",
@@ -3540,8 +3545,8 @@ class Go {
3540
3545
  });
3541
3546
  return;
3542
3547
  } else {
3543
- const I = b.sort((De, Le) => De.seq - Le.seq);
3544
- if (I.length === 0) {
3548
+ const R = b.sort((De, Le) => De.seq - Le.seq);
3549
+ if (R.length === 0) {
3545
3550
  (w = e.adBreakDone) == null || w.call(e, {
3546
3551
  breakType: e.type,
3547
3552
  breakName: e.type === "preroll" ? void 0 : e.name,
@@ -3551,15 +3556,15 @@ class Go {
3551
3556
  return;
3552
3557
  }
3553
3558
  let O = !0, A = null;
3554
- const Ce = new En(this.context);
3555
- for (this.adsActionDetection.adBreakIsShowing = !0; I.length > 0; ) {
3556
- const De = I.shift(), Le = this.providers[De.provider];
3559
+ const Ce = new Rn(this.context);
3560
+ for (this.adsActionDetection.adBreakIsShowing = !0; R.length > 0; ) {
3561
+ const De = R.shift(), Le = this.providers[De.provider];
3557
3562
  if (Le) {
3558
- const [Pi, Ni] = await Ce.callAdBreakAndContinue(Le, e, De, (Et) => {
3559
- var kt;
3560
- this.adsIsShowing = Et, (kt = this.context.eventEmitter) == null || kt.emit("isAdShowing", Et);
3563
+ const [Bi, Fi] = await Ce.callAdBreakAndContinue(Le, e, De, (kt) => {
3564
+ var It;
3565
+ this.adsIsShowing = kt, (It = this.context.eventEmitter) == null || It.emit("isAdShowing", kt);
3561
3566
  });
3562
- O = Pi, A = Ni;
3567
+ O = Bi, A = Fi;
3563
3568
  } else
3564
3569
  O = !0, A = {
3565
3570
  breakType: e.type,
@@ -3586,14 +3591,14 @@ class Go {
3586
3591
  console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
3587
3592
  }
3588
3593
  }
3589
- function $e(t, e, i) {
3590
- return (e = lo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3594
+ function Be(t, e, i) {
3595
+ return (e = ho(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3591
3596
  }
3592
- function lo(t) {
3593
- var e = uo(t, "string");
3597
+ function ho(t) {
3598
+ var e = fo(t, "string");
3594
3599
  return typeof e == "symbol" ? e : e + "";
3595
3600
  }
3596
- function uo(t, e) {
3601
+ function fo(t, e) {
3597
3602
  if (typeof t != "object" || !t)
3598
3603
  return t;
3599
3604
  var i = t[Symbol.toPrimitive];
@@ -3605,9 +3610,9 @@ function uo(t, e) {
3605
3610
  }
3606
3611
  return (e === "string" ? String : Number)(t);
3607
3612
  }
3608
- class co {
3613
+ class vo {
3609
3614
  constructor(e) {
3610
- $e(this, "context", void 0), $e(this, "currentProvider", void 0), $e(this, "continueCallback", void 0), $e(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
3615
+ Be(this, "context", void 0), Be(this, "currentProvider", void 0), Be(this, "continueCallback", void 0), Be(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
3611
3616
  }
3612
3617
  get paramsToTrack() {
3613
3618
  var e, i;
@@ -3628,7 +3633,7 @@ class co {
3628
3633
  wrapAdPlaying(e) {
3629
3634
  return (i) => {
3630
3635
  var n, r;
3631
- this.context.track("CallAFVPlaying", this.paramsToTrack), at() && this.context.track("mmp_ad_impression", {
3636
+ this.context.track("CallAFVPlaying", this.paramsToTrack), dt() && this.context.track("mmp_ad_impression", {
3632
3637
  ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
3633
3638
  ad_format: "AFV",
3634
3639
  module: "drama",
@@ -3656,14 +3661,14 @@ class co {
3656
3661
  });
3657
3662
  }
3658
3663
  }
3659
- function st(t, e, i) {
3660
- return (e = ho(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3664
+ function at(t, e, i) {
3665
+ return (e = go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3661
3666
  }
3662
- function ho(t) {
3663
- var e = fo(t, "string");
3667
+ function go(t) {
3668
+ var e = yo(t, "string");
3664
3669
  return typeof e == "symbol" ? e : e + "";
3665
3670
  }
3666
- function fo(t, e) {
3671
+ function yo(t, e) {
3667
3672
  if (typeof t != "object" || !t)
3668
3673
  return t;
3669
3674
  var i = t[Symbol.toPrimitive];
@@ -3677,7 +3682,7 @@ function fo(t, e) {
3677
3682
  }
3678
3683
  class P extends Error {
3679
3684
  constructor(e, i) {
3680
- super(e.message), st(this, "name", void 0), st(this, "type", void 0), st(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
3685
+ super(e.message), at(this, "name", void 0), at(this, "type", void 0), at(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
3681
3686
  }
3682
3687
  static from(e, i) {
3683
3688
  switch (i) {
@@ -3688,14 +3693,14 @@ class P extends Error {
3688
3693
  }
3689
3694
  }
3690
3695
  }
3691
- function R(t, e, i) {
3692
- return (e = vo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3696
+ function I(t, e, i) {
3697
+ return (e = wo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3693
3698
  }
3694
- function vo(t) {
3695
- var e = go(t, "string");
3699
+ function wo(t) {
3700
+ var e = po(t, "string");
3696
3701
  return typeof e == "symbol" ? e : e + "";
3697
3702
  }
3698
- function go(t, e) {
3703
+ function po(t, e) {
3699
3704
  if (typeof t != "object" || !t)
3700
3705
  return t;
3701
3706
  var i = t[Symbol.toPrimitive];
@@ -3707,16 +3712,16 @@ function go(t, e) {
3707
3712
  }
3708
3713
  return (e === "string" ? String : Number)(t);
3709
3714
  }
3710
- class yo {
3715
+ class bo {
3711
3716
  constructor(e, i, n) {
3712
- R(this, "adsLoader", void 0), R(this, "adDisplayContainer", void 0), R(this, "isAdPlaying", !1), R(this, "isContentFinished", !1), R(this, "videoContent", void 0), R(this, "adContainer", void 0), R(this, "adsManager", void 0), R(this, "intervalTimer", void 0), R(this, "completed", !1), R(this, "adTagUrl", void 0), R(this, "notifyRequestAd", void 0), R(this, "notifyLoaded", void 0), R(this, "notifyPlayingAd", void 0), R(this, "notifyCompleted", void 0), R(this, "notifyError", void 0), R(this, "destroy", () => {
3713
- var r, o, s, a, d, l, u, h, c, f, w;
3714
- 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);
3715
- }), R(this, "requestAds", async (r, o) => {
3716
- var u;
3717
+ 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", () => {
3718
+ var r, o, s, a, d, l, c, h, u, f, w;
3719
+ this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (w = this.adsManager) == null || w.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
3720
+ }), I(this, "requestAds", async (r, o) => {
3721
+ var c;
3717
3722
  this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
3718
- var c;
3719
- return (c = r.onAdError) == null ? void 0 : c.call(r, P.from(h, "GOOGLE_IMA_ERROR"));
3723
+ var u;
3724
+ return (u = r.onAdError) == null ? void 0 : u.call(r, P.from(h, "GOOGLE_IMA_ERROR"));
3720
3725
  }, 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);
3721
3726
  const s = () => {
3722
3727
  var h;
@@ -3726,14 +3731,14 @@ class yo {
3726
3731
  const a = new window.google.ima.AdsRequest();
3727
3732
  let d = "";
3728
3733
  Object.keys(o.params).forEach((h) => {
3729
- const c = window.encodeURIComponent(o.params[h]);
3730
- d += `&${h}=${c}`;
3734
+ const u = window.encodeURIComponent(o.params[h]);
3735
+ d += `&${h}=${u}`;
3731
3736
  });
3732
3737
  const l = `${this.adTagUrl}${d}`;
3733
- a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (u = this.notifyRequestAd) == null || u.call(this);
3734
- }), R(this, "createAdDisplayContainer", () => {
3738
+ a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (c = this.notifyRequestAd) == null || c.call(this);
3739
+ }), I(this, "createAdDisplayContainer", () => {
3735
3740
  this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
3736
- }), R(this, "playAds", () => {
3741
+ }), I(this, "playAds", () => {
3737
3742
  var r, o;
3738
3743
  this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
3739
3744
  try {
@@ -3741,10 +3746,10 @@ class yo {
3741
3746
  } catch (s) {
3742
3747
  console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
3743
3748
  }
3744
- }), R(this, "onAdsManagerLoaded", (r) => {
3749
+ }), I(this, "onAdsManagerLoaded", (r) => {
3745
3750
  const o = new window.google.ima.AdsRenderingSettings();
3746
3751
  o.restoreCustomPlaybackStateOnAdBreakComplete = !0, this.adsManager = r.getAdsManager(this.videoContent, o), this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent), r.type === "adsManagerLoaded" && this.playAds();
3747
- }), R(this, "onAdEvent", (r) => {
3752
+ }), I(this, "onAdEvent", (r) => {
3748
3753
  var s, a, d, l;
3749
3754
  const o = r.getAd();
3750
3755
  switch (r.type) {
@@ -3762,19 +3767,19 @@ class yo {
3762
3767
  o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
3763
3768
  break;
3764
3769
  }
3765
- }), R(this, "onAdError", (r) => {
3770
+ }), I(this, "onAdError", (r) => {
3766
3771
  var o, s;
3767
3772
  (o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
3768
- }), R(this, "onContentPauseRequested", () => {
3773
+ }), I(this, "onContentPauseRequested", () => {
3769
3774
  this.isAdPlaying = !0, this.videoContent.pause();
3770
- }), R(this, "onContentResumeRequested", () => {
3775
+ }), I(this, "onContentResumeRequested", () => {
3771
3776
  this.isAdPlaying = !1;
3772
3777
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
3773
3778
  }
3774
3779
  }
3775
- var qe = /* @__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))(qe || {});
3776
- const wo = () => {
3777
- const t = E(!1), e = E(!1), i = E(null), n = xt(), r = xt();
3780
+ var Ke = /* @__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))(Ke || {});
3781
+ const Ao = () => {
3782
+ const t = E(!1), e = E(!1), i = E(null), n = Dt(), r = Dt();
3778
3783
  return {
3779
3784
  visible: t,
3780
3785
  canRetry: e,
@@ -3782,7 +3787,7 @@ const wo = () => {
3782
3787
  videoRef: n,
3783
3788
  adContainerRef: r
3784
3789
  };
3785
- }, po = we`
3790
+ }, _o = we`
3786
3791
  ${F}
3787
3792
  position: fixed;
3788
3793
  left: 0;
@@ -3831,7 +3836,7 @@ const wo = () => {
3831
3836
  cursor: pointer;
3832
3837
  }
3833
3838
  }
3834
- `, bo = (t) => {
3839
+ `, mo = (t) => {
3835
3840
  let {
3836
3841
  onReady: e,
3837
3842
  state: i
@@ -3847,10 +3852,10 @@ const wo = () => {
3847
3852
  r.value = null, o.value = !1;
3848
3853
  }));
3849
3854
  };
3850
- return Je(() => {
3855
+ return Xe(() => {
3851
3856
  e();
3852
3857
  }, [e]), _("div", {
3853
- className: po,
3858
+ className: _o,
3854
3859
  "data-visible": n.value,
3855
3860
  children: _("div", {
3856
3861
  className: "ads-wrapper",
@@ -3887,13 +3892,13 @@ const wo = () => {
3887
3892
  });
3888
3893
  };
3889
3894
  function te(t, e, i) {
3890
- return (e = Ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3895
+ return (e = So(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3891
3896
  }
3892
- function Ao(t) {
3893
- var e = _o(t, "string");
3897
+ function So(t) {
3898
+ var e = Eo(t, "string");
3894
3899
  return typeof e == "symbol" ? e : e + "";
3895
3900
  }
3896
- function _o(t, e) {
3901
+ function Eo(t, e) {
3897
3902
  if (typeof t != "object" || !t)
3898
3903
  return t;
3899
3904
  var i = t[Symbol.toPrimitive];
@@ -3905,9 +3910,9 @@ function _o(t, e) {
3905
3910
  }
3906
3911
  return (e === "string" ? String : Number)(t);
3907
3912
  }
3908
- class mo {
3913
+ class ko {
3909
3914
  constructor(e) {
3910
- 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", wo()), te(this, "init", async (i) => {
3915
+ 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", Ao()), te(this, "init", async (i) => {
3911
3916
  if (this.initialized)
3912
3917
  return;
3913
3918
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -3923,43 +3928,43 @@ class mo {
3923
3928
  }, s.onerror = o, document.head.appendChild(s);
3924
3929
  }
3925
3930
  }), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
3926
- oe(_(bo, {
3931
+ oe(_(mo, {
3927
3932
  state: this.state,
3928
3933
  onReady: () => {
3929
- this.ima = new yo(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3934
+ this.ima = new bo(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3930
3935
  }
3931
3936
  }), this.adsOverlay);
3932
3937
  }), this.initialized = !0;
3933
3938
  }), te(this, "destroy", () => {
3934
3939
  this.adsOverlay && (oe(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
3935
3940
  }), te(this, "requestAd", (i, n) => {
3936
- var u;
3941
+ var c;
3937
3942
  if (!this.adsOverlay || !this.ima || !this.initialized) {
3938
3943
  const h = P.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3939
- (u = i.onAdError) == null || u.call(i, h);
3944
+ (c = i.onAdError) == null || c.call(i, h);
3940
3945
  return;
3941
3946
  }
3942
3947
  let r = !1;
3943
3948
  const o = (h) => {
3944
- var c;
3945
- r = !0, this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, h);
3949
+ var u;
3950
+ r = !0, this.ima.destroy(), this.state.visible.value = !1, (u = i.onAdCompleted) == null || u.call(i, h);
3946
3951
  }, s = (h) => {
3947
3952
  var f;
3948
3953
  r = !0;
3949
- let c = !1;
3954
+ let u = !1;
3950
3955
  switch (h.raw.getErrorCode()) {
3951
- case qe.AUTOPLAY_DISALLOWED:
3952
- case qe.VIDEO_PLAY_ERROR:
3953
- case qe.ADS_REQUEST_NETWORK_ERROR: {
3954
- c = !0;
3956
+ case Ke.AUTOPLAY_DISALLOWED:
3957
+ case Ke.VIDEO_PLAY_ERROR:
3958
+ case Ke.ADS_REQUEST_NETWORK_ERROR: {
3959
+ u = !0;
3955
3960
  break;
3956
3961
  }
3957
3962
  default: {
3958
- c = !1;
3963
+ u = !1;
3959
3964
  break;
3960
3965
  }
3961
3966
  }
3962
- if (!c)
3967
+ if (!u)
3963
3968
  this.ima.destroy(), D(() => {
3964
3969
  this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
3965
3970
  }), (f = i.onAdError) == null || f.call(i, h);
@@ -3972,33 +3977,33 @@ class mo {
3972
3977
  });
3973
3978
  }
3974
3979
  }, a = (h) => {
3975
- var c;
3976
- r = !0, this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, h);
3980
+ var u;
3981
+ r = !0, this.state.visible.value = !0, (u = i.onAdLoaded) == null || u.call(i, h);
3977
3982
  }, d = (h) => {
3978
- var c;
3979
- r = !0, (c = i.onAdPlaying) == null || c.call(i, h);
3983
+ var u;
3984
+ r = !0, (u = i.onAdPlaying) == null || u.call(i, h);
3980
3985
  }, l = Object.assign({}, i);
3981
3986
  l.onAdCompleted = o, l.onAdError = s, l.onAdLoaded = a, l.onAdPlaying = d, this.ima.requestAds(l, n), window.setTimeout(() => {
3982
- var h, c;
3987
+ var h, u;
3983
3988
  if (!r) {
3984
3989
  D(() => {
3985
3990
  this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
3986
3991
  });
3987
3992
  const f = P.from(new Error("Ad server not responded"), "GOOGLE_IMA_ERROR");
3988
- (h = i.onAdError) == null || h.call(i, f), (c = this.ima) == null || c.destroy();
3993
+ (h = i.onAdError) == null || h.call(i, f), (u = this.ima) == null || u.destroy();
3989
3994
  }
3990
3995
  }, 5e3);
3991
3996
  }), this.context = e;
3992
3997
  }
3993
3998
  }
3994
3999
  function J(t, e, i) {
3995
- return (e = So(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4000
+ return (e = Io(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3996
4001
  }
3997
- function So(t) {
3998
- var e = Eo(t, "string");
4002
+ function Io(t) {
4003
+ var e = Ro(t, "string");
3999
4004
  return typeof e == "symbol" ? e : e + "";
4000
4005
  }
4001
- function Eo(t, e) {
4006
+ function Ro(t, e) {
4002
4007
  if (typeof t != "object" || !t)
4003
4008
  return t;
4004
4009
  var i = t[Symbol.toPrimitive];
@@ -4010,11 +4015,11 @@ function Eo(t, e) {
4010
4015
  }
4011
4016
  return (e === "string" ? String : Number)(t);
4012
4017
  }
4013
- class ko {
4018
+ class xo {
4014
4019
  constructor(e) {
4015
- 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) => {
4020
+ 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", Ci()), J(this, "init", async (i) => {
4016
4021
  var n;
4017
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(xi, {
4022
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(Di, {
4018
4023
  state: this.state
4019
4024
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
4020
4025
  }), J(this, "destroy", () => {
@@ -4032,27 +4037,27 @@ class ko {
4032
4037
  }
4033
4038
  (d = i.onAdRequested) == null || d.call(i);
4034
4039
  const r = () => {
4035
- var u;
4036
- this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
4040
+ var c;
4041
+ this.adsIsShowing = !1, (c = i.onAdCompleted) == null || c.call(i, void 0);
4037
4042
  }, o = () => {
4038
- var u;
4039
- (u = i.onAdLoaded) == null || u.call(i, void 0);
4043
+ var c;
4044
+ (c = i.onAdLoaded) == null || c.call(i, void 0);
4040
4045
  };
4041
4046
  this.adsIsShowing = !0, D(() => {
4042
- var u;
4043
- 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;
4047
+ var c;
4048
+ this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (c = n.params.countdown) != null ? c : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
4044
4049
  }), (l = i.onAdPlaying) == null || l.call(i, void 0);
4045
4050
  }), this.context = e;
4046
4051
  }
4047
4052
  }
4048
4053
  function H(t, e, i) {
4049
- return (e = Ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4054
+ return (e = Oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4050
4055
  }
4051
- function Ro(t) {
4052
- var e = Io(t, "string");
4056
+ function Oo(t) {
4057
+ var e = To(t, "string");
4053
4058
  return typeof e == "symbol" ? e : e + "";
4054
4059
  }
4055
- function Io(t, e) {
4060
+ function To(t, e) {
4056
4061
  if (typeof t != "object" || !t)
4057
4062
  return t;
4058
4063
  var i = t[Symbol.toPrimitive];
@@ -4064,22 +4069,22 @@ function Io(t, e) {
4064
4069
  }
4065
4070
  return (e === "string" ? String : Number)(t);
4066
4071
  }
4067
- class xo {
4072
+ class Co {
4068
4073
  constructor(e) {
4069
- 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", Oi()), H(this, "processUrl", (i) => {
4074
+ 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", Li()), H(this, "processUrl", (i) => {
4070
4075
  var s;
4071
4076
  const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
4072
4077
  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();
4073
4078
  }), H(this, "init", async (i) => {
4074
4079
  var n;
4075
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(Ti, {
4080
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(Pi, {
4076
4081
  state: this.state
4077
4082
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
4078
4083
  }), H(this, "destroy", () => {
4079
4084
  var i;
4080
4085
  this.adsOverlay && (oe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4081
4086
  }), H(this, "requestAd", (i, n) => {
4082
- var d, l, u, h;
4087
+ var d, l, c, h;
4083
4088
  if (!this.adsOverlay || !this.initialized) {
4084
4089
  (d = i.onAdError) == null || d.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4085
4090
  return;
@@ -4088,19 +4093,19 @@ class xo {
4088
4093
  (l = i.onAdError) == null || l.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4089
4094
  return;
4090
4095
  }
4091
- (u = i.onAdRequested) == null || u.call(i);
4096
+ (c = i.onAdRequested) == null || c.call(i);
4092
4097
  const r = () => {
4093
- var c;
4094
- this.adsIsShowing = !1, (c = i.onAdCompleted) == null || c.call(i, void 0);
4098
+ var u;
4099
+ this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
4095
4100
  }, o = () => {
4096
- var c;
4097
- (c = i.onAdLoaded) == null || c.call(i, void 0);
4098
- }, s = (c) => {
4101
+ var u;
4102
+ (u = i.onAdLoaded) == null || u.call(i, void 0);
4103
+ }, s = (u) => {
4099
4104
  var f, w;
4100
- (w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
4105
+ (w = (f = this.context).handleLinkClicked) == null || w.call(f, u);
4101
4106
  }, a = () => {
4102
- var c;
4103
- (c = i.onAdError) == null || c.call(i, P.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
4107
+ var u;
4108
+ (u = i.onAdError) == null || u.call(i, P.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
4104
4109
  };
4105
4110
  this.adsIsShowing = !0, D(() => {
4106
4111
  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;
@@ -4109,13 +4114,13 @@ class xo {
4109
4114
  }
4110
4115
  }
4111
4116
  function ie(t, e, i) {
4112
- return (e = Oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4117
+ return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4113
4118
  }
4114
- function Oo(t) {
4115
- var e = To(t, "string");
4119
+ function Do(t) {
4120
+ var e = Lo(t, "string");
4116
4121
  return typeof e == "symbol" ? e : e + "";
4117
4122
  }
4118
- function To(t, e) {
4123
+ function Lo(t, e) {
4119
4124
  if (typeof t != "object" || !t)
4120
4125
  return t;
4121
4126
  var i = t[Symbol.toPrimitive];
@@ -4127,12 +4132,12 @@ function To(t, e) {
4127
4132
  }
4128
4133
  return (e === "string" ? String : Number)(t);
4129
4134
  }
4130
- class Co {
4135
+ class Po {
4131
4136
  constructor(e) {
4132
4137
  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) => {
4133
4138
  if (!this.rewardAdManager) {
4134
4139
  const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
4135
- this.rewardAdManager = new Di(n, o, i.params.keyValue);
4140
+ this.rewardAdManager = new Mi(n, o, i.params.keyValue);
4136
4141
  }
4137
4142
  }), ie(this, "insertScript", () => {
4138
4143
  const i = "jolibox-google-gpt";
@@ -4180,13 +4185,13 @@ class Co {
4180
4185
  }
4181
4186
  }
4182
4187
  function le(t, e, i) {
4183
- return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4188
+ return (e = No(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4184
4189
  }
4185
- function Do(t) {
4186
- var e = Lo(t, "string");
4190
+ function No(t) {
4191
+ var e = Mo(t, "string");
4187
4192
  return typeof e == "symbol" ? e : e + "";
4188
4193
  }
4189
- function Lo(t, e) {
4194
+ function Mo(t, e) {
4190
4195
  if (typeof t != "object" || !t)
4191
4196
  return t;
4192
4197
  var i = t[Symbol.toPrimitive];
@@ -4198,10 +4203,10 @@ function Lo(t, e) {
4198
4203
  }
4199
4204
  return (e === "string" ? String : Number)(t);
4200
4205
  }
4201
- class qo {
4206
+ class Ho {
4202
4207
  constructor(e) {
4203
4208
  if (le(this, "context", void 0), le(this, "contextInfo", void 0), le(this, "providers", {}), le(this, "requestContext", void 0), le(this, "adsRequest", void 0), le(this, "initialized", !1), e)
4204
- this.context = e, this.requestContext = new St(e), this.adsRequest = new Li(e, {
4209
+ this.context = e, this.requestContext = new Et(e), this.adsRequest = new $i(e, {
4205
4210
  reward: !1,
4206
4211
  interstitial: !1,
4207
4212
  afv: !1
@@ -4223,22 +4228,22 @@ class qo {
4223
4228
  for (const i of e)
4224
4229
  switch (i.provider) {
4225
4230
  case "GOOGLE_GPT": {
4226
- const n = new Co(this.context);
4231
+ const n = new Po(this.context);
4227
4232
  await n.init(i), this.providers.GOOGLE_GPT = n;
4228
4233
  break;
4229
4234
  }
4230
4235
  case "GOOGLE_IMA": {
4231
- const n = new mo(this.context);
4236
+ const n = new ko(this.context);
4232
4237
  await n.init(i), this.providers.GOOGLE_IMA = n;
4233
4238
  break;
4234
4239
  }
4235
4240
  case "OKSPIN": {
4236
- const n = new ko(this.context);
4241
+ const n = new xo(this.context);
4237
4242
  await n.init(i), this.providers.OKSPIN = n;
4238
4243
  break;
4239
4244
  }
4240
4245
  case "APPSROCKETS": {
4241
- const n = new xo(this.context);
4246
+ const n = new Co(this.context);
4242
4247
  await n.init(i), this.providers.APPSROCKETS = n;
4243
4248
  break;
4244
4249
  }
@@ -4255,7 +4260,7 @@ class qo {
4255
4260
  this.initialized = !1;
4256
4261
  }
4257
4262
  async requestAd(e) {
4258
- var i, n, r, o, s, a, d, l, u, h, c;
4263
+ var i, n, r, o, s, a, d, l, c, h, u;
4259
4264
  if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
4260
4265
  const f = P.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
4261
4266
  (n = e.onAdError) == null || n.call(e, f);
@@ -4268,25 +4273,25 @@ class qo {
4268
4273
  return;
4269
4274
  }
4270
4275
  if (g) {
4271
- const p = g == null ? void 0 : g.sort((T, I) => T.seq - I.seq);
4276
+ const p = g == null ? void 0 : g.sort((T, R) => T.seq - R.seq);
4272
4277
  if (p.length === 0) {
4273
4278
  const T = P.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
4274
4279
  (l = e.onAdError) == null || l.call(e, T);
4275
4280
  return;
4276
4281
  }
4277
4282
  let y = !0, v = null;
4278
- const b = new co(this.context);
4283
+ const b = new vo(this.context);
4279
4284
  for (; p.length > 0; ) {
4280
- const T = p.shift(), I = this.providers[T.provider];
4281
- if (I) {
4282
- const [O, A] = await b.callAdRequestAndContinue(I, e, T);
4285
+ const T = p.shift(), R = this.providers[T.provider];
4286
+ if (R) {
4287
+ const [O, A] = await b.callAdRequestAndContinue(R, e, T);
4283
4288
  y = O, v = A;
4284
4289
  } else
4285
4290
  y = !0, v = P.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
4286
4291
  if (!y)
4287
4292
  break;
4288
4293
  }
4289
- y && v && ((u = e.onAdError) == null || u.call(e, v));
4294
+ y && v && ((c = e.onAdError) == null || c.call(e, v));
4290
4295
  } else {
4291
4296
  const p = P.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
4292
4297
  (d = e.onAdError) == null || d.call(e, p);
@@ -4296,18 +4301,18 @@ class qo {
4296
4301
  const w = P.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
4297
4302
  (h = e.onAdError) == null || h.call(e, w);
4298
4303
  } finally {
4299
- (c = this.context.eventEmitter) == null || c.emit("isAdShowing", !1);
4304
+ (u = this.context.eventEmitter) == null || u.emit("isAdShowing", !1);
4300
4305
  }
4301
4306
  }
4302
4307
  }
4303
4308
  function ue(t, e, i) {
4304
- return (e = Po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4309
+ return (e = $o(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4305
4310
  }
4306
- function Po(t) {
4307
- var e = No(t, "string");
4311
+ function $o(t) {
4312
+ var e = Bo(t, "string");
4308
4313
  return typeof e == "symbol" ? e : e + "";
4309
4314
  }
4310
- function No(t, e) {
4315
+ function Bo(t, e) {
4311
4316
  if (typeof t != "object" || !t)
4312
4317
  return t;
4313
4318
  var i = t[Symbol.toPrimitive];
@@ -4319,21 +4324,21 @@ function No(t, e) {
4319
4324
  }
4320
4325
  return (e === "string" ? String : Number)(t);
4321
4326
  }
4322
- class Ko extends Error {
4327
+ class Wo extends Error {
4323
4328
  constructor(e) {
4324
4329
  super(e), ue(this, "name", void 0), ue(this, "message", void 0), ue(this, "errMsg", void 0), ue(this, "code", void 0), ue(this, "data", void 0), ue(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
4325
4330
  }
4326
4331
  }
4327
4332
  export {
4328
4333
  P as AFVWrappedError,
4329
- Ln as GoogleAdSenseProvider,
4330
- mo as GoogleIMAProvider,
4331
- Xr as InterstitialAdManager,
4332
- Go as JoliboxAdsForGame,
4333
- qo as JoliboxAdsForVideo,
4334
- Vr as OKSpinForGameProvider,
4335
- ko as OKSpinForVideoProvider,
4336
- Ko as ResponseError,
4337
- Di as RewardAdManager,
4338
- Ci as initGPTServices
4334
+ Mn as GoogleAdSenseProvider,
4335
+ ko as GoogleIMAProvider,
4336
+ eo as InterstitialAdManager,
4337
+ zo as JoliboxAdsForGame,
4338
+ Ho as JoliboxAdsForVideo,
4339
+ Kr as OKSpinForGameProvider,
4340
+ xo as OKSpinForVideoProvider,
4341
+ Wo as ResponseError,
4342
+ Mi as RewardAdManager,
4343
+ Ni as initGPTServices
4339
4344
  };