@jolibox/ads 1.1.27 → 1.1.29-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.js +583 -613
  2. package/package.json +19 -19
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
- var pt = Object.getOwnPropertySymbols;
2
- var wi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable;
3
- var yt = (t, e) => {
1
+ var ht = Object.getOwnPropertySymbols;
2
+ var _i = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable;
3
+ var ft = (t, e) => {
4
4
  var i = {};
5
5
  for (var n in t)
6
- wi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
- if (t != null && pt)
8
- for (var n of pt(t))
9
- e.indexOf(n) < 0 && bi.call(t, n) && (i[n] = t[n]);
6
+ _i.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
+ if (t != null && ht)
8
+ for (var n of ht(t))
9
+ e.indexOf(n) < 0 && gi.call(t, n) && (i[n] = t[n]);
10
10
  return i;
11
11
  };
12
- import { options as ie, Component as Ai, isValidElement as mi } from "preact";
13
- import { useRef as Ei, useLayoutEffect as Si, useEffect as dt, useMemo as ki, render as te, useState as xi, createRef as _t } from "preact/compat";
12
+ import { options as se, Component as wi, isValidElement as bi } from "preact";
13
+ import { useRef as Ai, useLayoutEffect as mi, useEffect as Ue, useMemo as Ei, useState as $t, useCallback as Si, render as te, createRef as vt } from "preact/compat";
14
14
  function V(t, e, i) {
15
- return (e = Ri(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
15
+ return (e = ki(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
16
16
  }
17
- function Ri(t) {
18
- var e = Ii(t, "string");
17
+ function ki(t) {
18
+ var e = xi(t, "string");
19
19
  return typeof e == "symbol" ? e : e + "";
20
20
  }
21
- function Ii(t, e) {
21
+ function xi(t, e) {
22
22
  if (typeof t != "object" || !t)
23
23
  return t;
24
24
  var i = t[Symbol.toPrimitive];
@@ -30,7 +30,7 @@ function Ii(t, e) {
30
30
  }
31
31
  return (e === "string" ? String : Number)(t);
32
32
  }
33
- class Ti {
33
+ class Ri {
34
34
  constructor(e) {
35
35
  V(this, "context", void 0), V(this, "continueCallback", void 0), V(this, "isBeforeAdCalled", !1), V(this, "isBeforeRewardCalled", !1), V(this, "isAdDismissedCalled", !1), V(this, "isAdViewedCalled", !1), V(this, "isAfterAdCalled", !1), V(this, "currentProvider", void 0), V(this, "currentClientParams", void 0), V(this, "adsHasResponse", !1), V(this, "videoChecker", window.document.createElement("video")), V(this, "wrapShowAdFn", (i) => () => {
36
36
  this.adsHasResponse = !0;
@@ -157,13 +157,13 @@ class Ti {
157
157
  }
158
158
  }
159
159
  function Se(t, e, i) {
160
- return (e = Oi(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
160
+ return (e = Ii(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
161
161
  }
162
- function Oi(t) {
163
- var e = Di(t, "string");
162
+ function Ii(t) {
163
+ var e = Oi(t, "string");
164
164
  return typeof e == "symbol" ? e : e + "";
165
165
  }
166
- function Di(t, e) {
166
+ function Oi(t, e) {
167
167
  if (typeof t != "object" || !t)
168
168
  return t;
169
169
  var i = t[Symbol.toPrimitive];
@@ -175,7 +175,7 @@ function Di(t, e) {
175
175
  }
176
176
  return (e === "string" ? String : Number)(t);
177
177
  }
178
- class Li {
178
+ class Ti {
179
179
  constructor(e) {
180
180
  Se(this, "context", void 0), Se(this, "adBreakIsShowing", !1), Se(this, "reportPageJumpOut", () => {
181
181
  this.context.track("AdBreakJumpOut", {
@@ -192,29 +192,29 @@ class Li {
192
192
  });
193
193
  }
194
194
  }
195
- var Bt = Object.defineProperty, Ci = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Pi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, wt = (t, e, i) => e in t ? Bt(t, e, {
195
+ var Ut = Object.defineProperty, Di = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable, yt = (t, e, i) => e in t ? Ut(t, e, {
196
196
  enumerable: !0,
197
197
  configurable: !0,
198
198
  writable: !0,
199
199
  value: i
200
- }) : t[e] = i, Mi = (t, e) => {
200
+ }) : t[e] = i, Pi = (t, e) => {
201
201
  for (var i in e || (e = {}))
202
- Pi.call(e, i) && wt(t, i, e[i]);
203
- if (gt)
204
- for (var i of gt(e))
205
- $i.call(e, i) && wt(t, i, e[i]);
202
+ Ci.call(e, i) && yt(t, i, e[i]);
203
+ if (pt)
204
+ for (var i of pt(e))
205
+ Ni.call(e, i) && yt(t, i, e[i]);
206
206
  return t;
207
- }, Ui = (t, e) => Ci(t, Ni(e)), Bi = (t, e) => {
207
+ }, Mi = (t, e) => Di(t, Li(e)), $i = (t, e) => {
208
208
  for (var i in e)
209
- Bt(t, i, {
209
+ Ut(t, i, {
210
210
  get: e[i],
211
211
  enumerable: !0
212
212
  });
213
- }, jt = (t, e, i, n) => {
213
+ }, Bt = (t, e, i, n) => {
214
214
  for (var r = e, o = t.length - 1, s; o >= 0; o--)
215
215
  (s = t[o]) && (r = s(r) || r);
216
216
  return r;
217
- }, ji = (t, e, i) => new Promise((n, r) => {
217
+ }, Ui = (t, e, i) => new Promise((n, r) => {
218
218
  var o = (d) => {
219
219
  try {
220
220
  a(i.next(d));
@@ -259,26 +259,26 @@ if (typeof window != "undefined" && !window.AbortController) {
259
259
  n.call(this, i);
260
260
  }, window.AbortController = t, window.AbortSignal = e;
261
261
  }
262
- function Fi(t) {
262
+ function Bi(t) {
263
263
  return new Promise((e) => {
264
264
  setTimeout(() => {
265
265
  e();
266
266
  }, t);
267
267
  });
268
268
  }
269
- function Vi(t) {
269
+ function ji(t) {
270
270
  return typeof t == "string";
271
271
  }
272
- function zi(t) {
272
+ function Fi(t) {
273
273
  return typeof t == "undefined";
274
274
  }
275
- function Gi(t) {
276
- return zi(t) || t === null;
275
+ function Vi(t) {
276
+ return Fi(t) || t === null;
277
277
  }
278
- function Ki(t) {
278
+ function zi(t) {
279
279
  return typeof t == "function";
280
280
  }
281
- function Ft(t) {
281
+ function jt(t) {
282
282
  let e = t, i = null, n = function() {
283
283
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
284
284
  o[s] = arguments[s];
@@ -286,26 +286,26 @@ function Ft(t) {
286
286
  };
287
287
  return n.prototype = e.prototype, n;
288
288
  }
289
- var qi = ((t) => (t[t.DEVELOPER_FILE_NOT_FOUND = 0] = "DEVELOPER_FILE_NOT_FOUND", t[t.INTERNAL_IOS_CAN_NOT_FOUND_PKG = 1] = "INTERNAL_IOS_CAN_NOT_FOUND_PKG", t[t.USER_IOS_LOAD_TIMEOUT = 2] = "USER_IOS_LOAD_TIMEOUT", t[t.INTERNAL_IOS_PKG_LOAD_ERROR = 3] = "INTERNAL_IOS_PKG_LOAD_ERROR", t[t.INTERNAL_IOS_PKG_PARSE_FAIL = 4] = "INTERNAL_IOS_PKG_PARSE_FAIL", t[t.USER_IOS_GET_EMPTY_DATA = 5] = "USER_IOS_GET_EMPTY_DATA", t[t.USER_ANDROID_GET_PKG_FAIL = 6] = "USER_ANDROID_GET_PKG_FAIL", t[t.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE = 7] = "DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE", t))(qi || {});
290
- function fe(t) {
289
+ var Gi = ((t) => (t[t.DEVELOPER_FILE_NOT_FOUND = 0] = "DEVELOPER_FILE_NOT_FOUND", t[t.INTERNAL_IOS_CAN_NOT_FOUND_PKG = 1] = "INTERNAL_IOS_CAN_NOT_FOUND_PKG", t[t.USER_IOS_LOAD_TIMEOUT = 2] = "USER_IOS_LOAD_TIMEOUT", t[t.INTERNAL_IOS_PKG_LOAD_ERROR = 3] = "INTERNAL_IOS_PKG_LOAD_ERROR", t[t.INTERNAL_IOS_PKG_PARSE_FAIL = 4] = "INTERNAL_IOS_PKG_PARSE_FAIL", t[t.USER_IOS_GET_EMPTY_DATA = 5] = "USER_IOS_GET_EMPTY_DATA", t[t.USER_ANDROID_GET_PKG_FAIL = 6] = "USER_ANDROID_GET_PKG_FAIL", t[t.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE = 7] = "DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE", t))(Gi || {});
290
+ function he(t) {
291
291
  return function() {
292
292
  var e, i;
293
293
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
294
294
  };
295
295
  }
296
- var Hi = {
297
- log: fe("log"),
298
- warn: fe("warn"),
299
- info: fe("info"),
300
- error: fe("error"),
301
- debug: fe("debug")
296
+ var Ki = {
297
+ log: he("log"),
298
+ warn: he("warn"),
299
+ info: he("info"),
300
+ error: he("error"),
301
+ debug: he("debug")
302
302
  };
303
303
  Object.assign(globalThis, {
304
- logger: Hi
304
+ logger: Ki
305
305
  });
306
- var bt = Symbol.for("Jolibox.canIUseMap"), Wi = {};
307
- globalThis[bt] || (globalThis[bt] = Wi);
308
- var Vt = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Vt || {}), zt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(zt || {}), Gt = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(Gt || {}), At = ["name", "params"], Ji = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Yi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
306
+ var _t = Symbol.for("Jolibox.canIUseMap"), qi = {};
307
+ globalThis[_t] || (globalThis[_t] = qi);
308
+ var Ft = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Ft || {}), Vt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Vt || {}), zt = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(zt || {}), gt = ["name", "params"], Hi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Wi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
309
309
  function Re(t, e) {
310
310
  return e.map((i) => {
311
311
  if (i === "params" && t[i]) {
@@ -315,18 +315,18 @@ function Re(t, e) {
315
315
  return t[i];
316
316
  });
317
317
  }
318
- function Xi(t) {
319
- let e = t.location ? Re(t.location, At) : null, i = t.target ? Re(t.target, At) : null;
320
- return Re(Ui(Mi({}, t), {
318
+ function Ji(t) {
319
+ let e = t.location ? Re(t.location, gt) : null, i = t.target ? Re(t.target, gt) : null;
320
+ return Re(Mi(Pi({}, t), {
321
321
  location: e,
322
322
  target: i
323
- }), Ji);
323
+ }), Hi);
324
324
  }
325
- function Qi(t) {
326
- let e = t.events.map((n) => Xi(n)), i = Re(t.device, Yi);
325
+ function Yi(t) {
326
+ let e = t.events.map((n) => Ji(n)), i = Re(t.device, Wi);
327
327
  return [t.protocolVersion, e, i, t.project];
328
328
  }
329
- function Zi() {
329
+ function Xi() {
330
330
  try {
331
331
  if (window.__joliboxLocalStorage__)
332
332
  return window.__joliboxLocalStorage__;
@@ -347,7 +347,7 @@ function Zi() {
347
347
  return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
348
348
  }
349
349
  }
350
- Zi();
350
+ Xi();
351
351
  navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS"), navigator.userAgent.includes("Android"), navigator.userAgent.includes("Mac"), navigator.userAgent.includes("FB_IAB"), !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
352
352
  var Xe = class Qe {
353
353
  constructor(e) {
@@ -355,7 +355,7 @@ var Xe = class Qe {
355
355
  }
356
356
  };
357
357
  Xe.Undefined = new Xe(void 0);
358
- var R = Xe, en = class {
358
+ var R = Xe, Qi = class {
359
359
  constructor() {
360
360
  this._first = R.Undefined, this._last = R.Undefined, this._size = 0;
361
361
  }
@@ -421,17 +421,17 @@ var R = Xe, en = class {
421
421
  for (; e !== R.Undefined; )
422
422
  yield e.element, e = e.next;
423
423
  }
424
- }, tn = 0, ve = class {
424
+ }, Zi = 0, fe = class {
425
425
  constructor(e) {
426
- this.value = e, this.id = tn++;
426
+ this.value = e, this.id = Zi++;
427
427
  }
428
- }, we = class {
428
+ }, ge = class {
429
429
  constructor(e) {
430
430
  this.options = e, this._size = 0;
431
431
  }
432
432
  dispose(e) {
433
433
  var i, n;
434
- this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof ve && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
434
+ this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof fe && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
435
435
  }
436
436
  get event() {
437
437
  return this._event != null || (this._event = (e, i) => {
@@ -441,11 +441,11 @@ var R = Xe, en = class {
441
441
  console.info("[Jolibox SDK] Emitter is _disposed");
442
442
  };
443
443
  i && (e = e.bind(i));
444
- let l = new ve(e);
445
- return this._listeners ? this._listeners instanceof ve ? 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++, () => {
444
+ let l = new fe(e);
445
+ return this._listeners ? this._listeners instanceof fe ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
446
446
  var c, h, u, f;
447
447
  if (!this._disposed) {
448
- if (this._listeners instanceof ve)
448
+ if (this._listeners instanceof fe)
449
449
  this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || h.call(c));
450
450
  else if (this._listeners) {
451
451
  let y = this._listeners.indexOf(l);
@@ -471,19 +471,19 @@ var R = Xe, en = class {
471
471
  }
472
472
  }
473
473
  fire(e) {
474
- this._listeners && (this._listeners instanceof ve ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
474
+ this._listeners && (this._listeners instanceof fe ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
475
475
  }
476
476
  hasListeners() {
477
477
  return this._size > 0;
478
478
  }
479
- }, nn = class {
479
+ }, en = class {
480
480
  constructor() {
481
481
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
482
482
  }
483
483
  on(t, e) {
484
484
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
485
485
  var n;
486
- let r = (n = this.listeners.get(t)) != null ? n : new we(), o = (d) => e(...d.args), s = r.event(o);
486
+ let r = (n = this.listeners.get(t)) != null ? n : new ge(), o = (d) => e(...d.args), s = r.event(o);
487
487
  this.listerHandlerMap.set(e, {
488
488
  handler: o,
489
489
  dispose: s
@@ -504,7 +504,7 @@ var R = Xe, en = class {
504
504
  let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
505
505
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
506
506
  r[o - 1] = arguments[o];
507
- i || (i = new en(), this.cachedEventQueue.set(t, i)), i.push({
507
+ i || (i = new Qi(), this.cachedEventQueue.set(t, i)), i.push({
508
508
  args: r
509
509
  }), e && e.fire({
510
510
  event: t,
@@ -519,19 +519,19 @@ var R = Xe, en = class {
519
519
  this.on(t, n, !1);
520
520
  }
521
521
  }, Ze = {};
522
- Bi(Ze, {
523
- None: () => rn,
524
- filter: () => sn,
525
- once: () => Kt,
526
- toPromise: () => on
522
+ $i(Ze, {
523
+ None: () => tn,
524
+ filter: () => rn,
525
+ once: () => Gt,
526
+ toPromise: () => nn
527
527
  });
528
- var rn = () => (console.log("[Jolibox SDK] None Event"), () => {
528
+ var tn = () => (console.log("[Jolibox SDK] None Event"), () => {
529
529
  console.log("[Jolibox SDK] None Event dispose");
530
530
  });
531
- function on(t) {
532
- return new Promise((e) => Kt(t)(e));
531
+ function nn(t) {
532
+ return new Promise((e) => Gt(t)(e));
533
533
  }
534
- function Kt(t) {
534
+ function Gt(t) {
535
535
  return function(e) {
536
536
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
537
537
  return t((r) => {
@@ -540,21 +540,21 @@ function Kt(t) {
540
540
  }, null);
541
541
  };
542
542
  }
543
- function sn(t, e) {
543
+ function rn(t, e) {
544
544
  return ((i) => {
545
545
  let n = {
546
546
  onWillAddFirstListener() {
547
547
  i(r.fire, r);
548
548
  }
549
- }, r = new we(n);
549
+ }, r = new ge(n);
550
550
  return r.event;
551
551
  })(function(i) {
552
552
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
553
553
  return t((r) => e(r) && i.call(n, r), null);
554
554
  });
555
555
  }
556
- var ze = Symbol.for("Jolibox.hostEmitter"), an = () => {
557
- let t = new nn();
556
+ var ze = Symbol.for("Jolibox.hostEmitter"), on = () => {
557
+ let t = new en();
558
558
  return globalThis[ze] || (globalThis[ze] = {
559
559
  on: t.on.bind(t),
560
560
  off: t.off.bind(t),
@@ -562,30 +562,30 @@ var ze = Symbol.for("Jolibox.hostEmitter"), an = () => {
562
562
  once: t.once.bind(t)
563
563
  }), globalThis[ze];
564
564
  };
565
- an();
566
- function dn(t, e) {
565
+ on();
566
+ function sn(t, e) {
567
567
  let i = Math.min(t.length, e.length);
568
568
  for (let n = 0; n < i; n++)
569
- ln(t[n], e[n]);
569
+ an(t[n], e[n]);
570
570
  }
571
- function ln(t, e) {
572
- if (Vi(e)) {
571
+ function an(t, e) {
572
+ if (ji(e)) {
573
573
  if (typeof t !== e)
574
574
  throw new Error(`argument does not match constraint: typeof ${e}`);
575
- } else if (Ki(e)) {
575
+ } else if (zi(e)) {
576
576
  try {
577
577
  if (t instanceof e)
578
578
  return;
579
579
  } catch (i) {
580
580
  }
581
- if (!Gi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
581
+ if (!Vi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
582
582
  return;
583
583
  throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
584
584
  }
585
585
  }
586
586
  var et = class {
587
587
  constructor() {
588
- this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new we(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
588
+ this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new ge(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
589
589
  }
590
590
  registerCommand(e) {
591
591
  if (!e)
@@ -598,7 +598,7 @@ var et = class {
598
598
  e.handler = function() {
599
599
  for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
600
600
  s[a] = arguments[a];
601
- return dn(s, n), r(...s);
601
+ return sn(s, n), r(...s);
602
602
  };
603
603
  }
604
604
  let {
@@ -618,18 +618,18 @@ var et = class {
618
618
  return e;
619
619
  }
620
620
  };
621
- et = jt([Ft], et);
622
- var mt = class {
621
+ et = Bt([jt], et);
622
+ var wt = class {
623
623
  constructor() {
624
- this._onWillExecuteCommand = new we(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new we(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new et(), this._starActivation = null;
624
+ this._onWillExecuteCommand = new ge(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ge(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new et(), this._starActivation = null;
625
625
  }
626
626
  _activateStar() {
627
- return this._starActivation || (this._starActivation = Fi(3e4)), this._starActivation;
627
+ return this._starActivation || (this._starActivation = Bi(3e4)), this._starActivation;
628
628
  }
629
629
  executeCommand(e) {
630
630
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
631
631
  n[r - 1] = arguments[r];
632
- return ji(this, null, function* () {
632
+ return Ui(this, null, function* () {
633
633
  return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Ze.toPromise(Ze.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
634
634
  });
635
635
  }
@@ -676,15 +676,15 @@ var mt = class {
676
676
  }
677
677
  }
678
678
  };
679
- mt = jt([Ft], mt);
679
+ wt = Bt([jt], wt);
680
680
  function Ge(t, e, i) {
681
- return (e = cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
681
+ return (e = dn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
682
682
  }
683
- function cn(t) {
684
- var e = un(t, "string");
683
+ function dn(t) {
684
+ var e = ln(t, "string");
685
685
  return typeof e == "symbol" ? e : e + "";
686
686
  }
687
- function un(t, e) {
687
+ function ln(t, e) {
688
688
  if (typeof t != "object" || !t)
689
689
  return t;
690
690
  var i = t[Symbol.toPrimitive];
@@ -696,7 +696,7 @@ function un(t, e) {
696
696
  }
697
697
  return (e === "string" ? String : Number)(t);
698
698
  }
699
- class qt {
699
+ class Kt {
700
700
  constructor(e) {
701
701
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
702
702
  Ge(this, "context", void 0), Ge(this, "placement", "GAME"), Ge(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
@@ -713,7 +713,7 @@ class qt {
713
713
  getDevice() {
714
714
  var e, i, n, r;
715
715
  return {
716
- platform: (e = this.contextInfo.platform) != null ? e : Gt.WebSDK,
716
+ platform: (e = this.contextInfo.platform) != null ? e : zt.WebSDK,
717
717
  os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
718
718
  appVersion: "1.0.0",
719
719
  // mock
@@ -732,7 +732,7 @@ class qt {
732
732
  protocolVersion: "1.0.0",
733
733
  events: [{
734
734
  name: e,
735
- type: Vt.System,
735
+ type: Ft.System,
736
736
  location: this.getLocation(),
737
737
  target: null,
738
738
  extra: i,
@@ -740,19 +740,19 @@ class qt {
740
740
  userId: (o = this.contextInfo.userId) != null ? o : null
741
741
  }],
742
742
  device: this.getDevice(),
743
- project: zt.WebSDK
743
+ project: Vt.WebSDK
744
744
  };
745
- return Qi(r);
745
+ return Yi(r);
746
746
  }
747
747
  }
748
748
  function ke(t, e, i) {
749
- return (e = hn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
749
+ return (e = cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
750
750
  }
751
- function hn(t) {
752
- var e = fn(t, "string");
751
+ function cn(t) {
752
+ var e = un(t, "string");
753
753
  return typeof e == "symbol" ? e : e + "";
754
754
  }
755
- function fn(t, e) {
755
+ function un(t, e) {
756
756
  if (typeof t != "object" || !t)
757
757
  return t;
758
758
  var i = t[Symbol.toPrimitive];
@@ -764,7 +764,7 @@ function fn(t, e) {
764
764
  }
765
765
  return (e === "string" ? String : Number)(t);
766
766
  }
767
- class vn {
767
+ class hn {
768
768
  constructor(e) {
769
769
  ke(this, "configs", null), ke(this, "firstRun", !0), ke(this, "context", void 0), ke(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
770
770
  }
@@ -791,13 +791,13 @@ class vn {
791
791
  }
792
792
  }
793
793
  function W(t, e, i) {
794
- return (e = pn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
794
+ return (e = fn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
795
795
  }
796
- function pn(t) {
797
- var e = yn(t, "string");
796
+ function fn(t) {
797
+ var e = vn(t, "string");
798
798
  return typeof e == "symbol" ? e : e + "";
799
799
  }
800
- function yn(t, e) {
800
+ function vn(t, e) {
801
801
  if (typeof t != "object" || !t)
802
802
  return t;
803
803
  var i = t[Symbol.toPrimitive];
@@ -809,7 +809,7 @@ function yn(t, e) {
809
809
  }
810
810
  return (e === "string" ? String : Number)(t);
811
811
  }
812
- class _n {
812
+ class pn {
813
813
  /**
814
814
  * Internal constructor, should not be called directly
815
815
  */
@@ -820,7 +820,7 @@ class _n {
820
820
  }), W(this, "adConfig", (n) => {
821
821
  const s = n, {
822
822
  onReady: r
823
- } = s, o = yt(s, [
823
+ } = s, o = ft(s, [
824
824
  "onReady"
825
825
  ]);
826
826
  this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
@@ -860,8 +860,8 @@ class _n {
860
860
  _.style.position = "absolute", _.style.top = "0", _.style.left = "0", _.style.width = "100%", _.style.height = "100%", _.style.display = "flex", _.style.justifyContent = "center", _.style.alignItems = "center", _.style.backgroundColor = "rgba(0, 0, 0, 0.5)", _.style.color = "white", _.innerHTML = "Test Ad", u.style.position = "relative", l.appendChild(u), u.appendChild(_);
861
861
  } else
862
862
  l.appendChild(u), new MutationObserver((w) => {
863
- w.forEach((j) => {
864
- if (j.type === "attributes" && j.attributeName === "data-ad-status") {
863
+ w.forEach((P) => {
864
+ if (P.type === "attributes" && P.attributeName === "data-ad-status") {
865
865
  const U = u.getAttribute("data-ad-status");
866
866
  this.context.track("AdSenseUnitStatusChanged", {
867
867
  status: U != null ? U : "null"
@@ -887,18 +887,18 @@ class _n {
887
887
  }
888
888
  }
889
889
  }
890
- function gn(t) {
890
+ function yn(t) {
891
891
  if (t.sheet)
892
892
  return t.sheet;
893
893
  for (var e = 0; e < document.styleSheets.length; e++)
894
894
  if (document.styleSheets[e].ownerNode === t)
895
895
  return document.styleSheets[e];
896
896
  }
897
- function wn(t) {
897
+ function _n(t) {
898
898
  var e = document.createElement("style");
899
899
  return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
900
900
  }
901
- var bn = /* @__PURE__ */ function() {
901
+ var gn = /* @__PURE__ */ function() {
902
902
  function t(i) {
903
903
  var n = this;
904
904
  this._insertTag = function(r) {
@@ -910,10 +910,10 @@ var bn = /* @__PURE__ */ function() {
910
910
  return e.hydrate = function(n) {
911
911
  n.forEach(this._insertTag);
912
912
  }, e.insert = function(n) {
913
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(wn(this));
913
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(_n(this));
914
914
  var r = this.tags[this.tags.length - 1];
915
915
  if (this.isSpeedy) {
916
- var o = gn(r);
916
+ var o = yn(r);
917
917
  try {
918
918
  o.insertRule(n, o.cssRules.length);
919
919
  } catch (s) {
@@ -927,14 +927,14 @@ var bn = /* @__PURE__ */ function() {
927
927
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
928
928
  }), this.tags = [], this.ctr = 0;
929
929
  }, t;
930
- }(), C = "-ms-", Ne = "-moz-", A = "-webkit-", Ht = "comm", lt = "rule", ct = "decl", An = "@import", Wt = "@keyframes", mn = "@layer", En = Math.abs, Be = String.fromCharCode, Sn = Object.assign;
931
- function kn(t, e) {
930
+ }(), C = "-ms-", Ne = "-moz-", A = "-webkit-", qt = "comm", dt = "rule", lt = "decl", wn = "@import", Ht = "@keyframes", bn = "@layer", An = Math.abs, Be = String.fromCharCode, mn = Object.assign;
931
+ function En(t, e) {
932
932
  return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
933
933
  }
934
- function Jt(t) {
934
+ function Wt(t) {
935
935
  return t.trim();
936
936
  }
937
- function xn(t, e) {
937
+ function Sn(t, e) {
938
938
  return (t = e.exec(t)) ? t[0] : t;
939
939
  }
940
940
  function m(t, e, i) {
@@ -946,47 +946,47 @@ function tt(t, e) {
946
946
  function D(t, e) {
947
947
  return t.charCodeAt(e) | 0;
948
948
  }
949
- function be(t, e, i) {
949
+ function we(t, e, i) {
950
950
  return t.slice(e, i);
951
951
  }
952
952
  function q(t) {
953
953
  return t.length;
954
954
  }
955
- function ut(t) {
955
+ function ct(t) {
956
956
  return t.length;
957
957
  }
958
958
  function xe(t, e) {
959
959
  return e.push(t), t;
960
960
  }
961
- function Rn(t, e) {
961
+ function kn(t, e) {
962
962
  return t.map(e).join("");
963
963
  }
964
- var je = 1, ae = 1, Yt = 0, M = 0, T = 0, de = "";
964
+ var je = 1, ae = 1, Jt = 0, $ = 0, I = 0, de = "";
965
965
  function Fe(t, e, i, n, r, o, s) {
966
966
  return { value: t, root: e, parent: i, type: n, props: r, children: o, line: je, column: ae, length: s, return: "" };
967
967
  }
968
- function pe(t, e) {
969
- return Sn(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
968
+ function ve(t, e) {
969
+ return mn(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
970
970
  }
971
- function In() {
972
- return T;
971
+ function xn() {
972
+ return I;
973
973
  }
974
- function Tn() {
975
- return T = M > 0 ? D(de, --M) : 0, ae--, T === 10 && (ae = 1, je--), T;
974
+ function Rn() {
975
+ return I = $ > 0 ? D(de, --$) : 0, ae--, I === 10 && (ae = 1, je--), I;
976
976
  }
977
- function B() {
978
- return T = M < Yt ? D(de, M++) : 0, ae++, T === 10 && (ae = 1, je++), T;
977
+ function j() {
978
+ return I = $ < Jt ? D(de, $++) : 0, ae++, I === 10 && (ae = 1, je++), I;
979
979
  }
980
980
  function H() {
981
- return D(de, M);
981
+ return D(de, $);
982
982
  }
983
983
  function Ie() {
984
- return M;
984
+ return $;
985
985
  }
986
- function me(t, e) {
987
- return be(de, t, e);
986
+ function Ae(t, e) {
987
+ return we(de, t, e);
988
988
  }
989
- function Ae(t) {
989
+ function be(t) {
990
990
  switch (t) {
991
991
  case 0:
992
992
  case 9:
@@ -1018,84 +1018,84 @@ function Ae(t) {
1018
1018
  }
1019
1019
  return 0;
1020
1020
  }
1021
- function Xt(t) {
1022
- return je = ae = 1, Yt = q(de = t), M = 0, [];
1021
+ function Yt(t) {
1022
+ return je = ae = 1, Jt = q(de = t), $ = 0, [];
1023
1023
  }
1024
- function Qt(t) {
1024
+ function Xt(t) {
1025
1025
  return de = "", t;
1026
1026
  }
1027
- function Te(t) {
1028
- return Jt(me(M - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1027
+ function Oe(t) {
1028
+ return Wt(Ae($ - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1029
1029
  }
1030
- function On(t) {
1031
- for (; (T = H()) && T < 33; )
1032
- B();
1033
- return Ae(t) > 2 || Ae(T) > 3 ? "" : " ";
1030
+ function In(t) {
1031
+ for (; (I = H()) && I < 33; )
1032
+ j();
1033
+ return be(t) > 2 || be(I) > 3 ? "" : " ";
1034
1034
  }
1035
- function Dn(t, e) {
1036
- for (; --e && B() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
1035
+ function On(t, e) {
1036
+ for (; --e && j() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
1037
1037
  ;
1038
- return me(t, Ie() + (e < 6 && H() == 32 && B() == 32));
1038
+ return Ae(t, Ie() + (e < 6 && H() == 32 && j() == 32));
1039
1039
  }
1040
1040
  function it(t) {
1041
- for (; B(); )
1042
- switch (T) {
1041
+ for (; j(); )
1042
+ switch (I) {
1043
1043
  case t:
1044
- return M;
1044
+ return $;
1045
1045
  case 34:
1046
1046
  case 39:
1047
- t !== 34 && t !== 39 && it(T);
1047
+ t !== 34 && t !== 39 && it(I);
1048
1048
  break;
1049
1049
  case 40:
1050
1050
  t === 41 && it(t);
1051
1051
  break;
1052
1052
  case 92:
1053
- B();
1053
+ j();
1054
1054
  break;
1055
1055
  }
1056
- return M;
1056
+ return $;
1057
1057
  }
1058
- function Ln(t, e) {
1059
- for (; B() && t + T !== 57; )
1060
- if (t + T === 84 && H() === 47)
1058
+ function Tn(t, e) {
1059
+ for (; j() && t + I !== 57; )
1060
+ if (t + I === 84 && H() === 47)
1061
1061
  break;
1062
- return "/*" + me(e, M - 1) + "*" + Be(t === 47 ? t : B());
1062
+ return "/*" + Ae(e, $ - 1) + "*" + Be(t === 47 ? t : j());
1063
1063
  }
1064
- function Cn(t) {
1065
- for (; !Ae(H()); )
1066
- B();
1067
- return me(t, M);
1064
+ function Dn(t) {
1065
+ for (; !be(H()); )
1066
+ j();
1067
+ return Ae(t, $);
1068
1068
  }
1069
- function Nn(t) {
1070
- return Qt(Oe("", null, null, null, [""], t = Xt(t), 0, [0], t));
1069
+ function Ln(t) {
1070
+ return Xt(Te("", null, null, null, [""], t = Yt(t), 0, [0], t));
1071
1071
  }
1072
- function Oe(t, e, i, n, r, o, s, a, d) {
1073
- for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0, w = "", j = r, U = o, F = n, k = w; g; )
1074
- switch (y = _, _ = B()) {
1072
+ function Te(t, e, i, n, r, o, s, a, d) {
1073
+ for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0, w = "", P = r, U = o, F = n, k = w; g; )
1074
+ switch (y = _, _ = j()) {
1075
1075
  case 40:
1076
1076
  if (y != 108 && D(k, h - 1) == 58) {
1077
- tt(k += m(Te(_), "&", "&\f"), "&\f") != -1 && (p = -1);
1077
+ tt(k += m(Oe(_), "&", "&\f"), "&\f") != -1 && (p = -1);
1078
1078
  break;
1079
1079
  }
1080
1080
  case 34:
1081
1081
  case 39:
1082
1082
  case 91:
1083
- k += Te(_);
1083
+ k += Oe(_);
1084
1084
  break;
1085
1085
  case 9:
1086
1086
  case 10:
1087
1087
  case 13:
1088
1088
  case 32:
1089
- k += On(y);
1089
+ k += In(y);
1090
1090
  break;
1091
1091
  case 92:
1092
- k += Dn(Ie() - 1, 7);
1092
+ k += On(Ie() - 1, 7);
1093
1093
  continue;
1094
1094
  case 47:
1095
1095
  switch (H()) {
1096
1096
  case 42:
1097
1097
  case 47:
1098
- xe(Pn(Ln(B(), Ie()), e, i), d);
1098
+ xe(Cn(Tn(j(), Ie()), e, i), d);
1099
1099
  break;
1100
1100
  default:
1101
1101
  k += "/";
@@ -1111,24 +1111,24 @@ function Oe(t, e, i, n, r, o, s, a, d) {
1111
1111
  case 125:
1112
1112
  g = 0;
1113
1113
  case 59 + c:
1114
- p == -1 && (k = m(k, /\f/g, "")), f > 0 && q(k) - h && xe(f > 32 ? St(k + ";", n, i, h - 1) : St(m(k, " ", "") + ";", n, i, h - 2), d);
1114
+ p == -1 && (k = m(k, /\f/g, "")), f > 0 && q(k) - h && xe(f > 32 ? At(k + ";", n, i, h - 1) : At(m(k, " ", "") + ";", n, i, h - 2), d);
1115
1115
  break;
1116
1116
  case 59:
1117
1117
  k += ";";
1118
1118
  default:
1119
- if (xe(F = Et(k, e, i, l, c, r, a, w, j = [], U = [], h), o), _ === 123)
1119
+ if (xe(F = bt(k, e, i, l, c, r, a, w, P = [], U = [], h), o), _ === 123)
1120
1120
  if (c === 0)
1121
- Oe(k, e, F, F, j, o, h, a, U);
1121
+ Te(k, e, F, F, P, o, h, a, U);
1122
1122
  else
1123
1123
  switch (u === 99 && D(k, 3) === 110 ? 100 : u) {
1124
1124
  case 100:
1125
1125
  case 108:
1126
1126
  case 109:
1127
1127
  case 115:
1128
- Oe(t, F, F, n && xe(Et(t, F, F, 0, 0, r, a, w, r, j = [], h), U), r, U, h, a, n ? j : U);
1128
+ Te(t, F, F, n && xe(bt(t, F, F, 0, 0, r, a, w, r, P = [], h), U), r, U, h, a, n ? P : U);
1129
1129
  break;
1130
1130
  default:
1131
- Oe(k, F, F, F, [""], U, 0, a, U);
1131
+ Te(k, F, F, F, [""], U, 0, a, U);
1132
1132
  }
1133
1133
  }
1134
1134
  l = c = f = 0, v = p = 1, w = k = "", h = s;
@@ -1139,7 +1139,7 @@ function Oe(t, e, i, n, r, o, s, a, d) {
1139
1139
  if (v < 1) {
1140
1140
  if (_ == 123)
1141
1141
  --v;
1142
- else if (_ == 125 && v++ == 0 && Tn() == 125)
1142
+ else if (_ == 125 && v++ == 0 && Rn() == 125)
1143
1143
  continue;
1144
1144
  }
1145
1145
  switch (k += Be(_), _ * v) {
@@ -1150,7 +1150,7 @@ function Oe(t, e, i, n, r, o, s, a, d) {
1150
1150
  a[l++] = (q(k) - 1) * p, p = 1;
1151
1151
  break;
1152
1152
  case 64:
1153
- H() === 45 && (k += Te(B())), u = H(), c = h = q(w = k += Cn(Ie())), _++;
1153
+ H() === 45 && (k += Oe(j())), u = H(), c = h = q(w = k += Dn(Ie())), _++;
1154
1154
  break;
1155
1155
  case 45:
1156
1156
  y === 45 && q(k) == 2 && (v = 0);
@@ -1158,72 +1158,72 @@ function Oe(t, e, i, n, r, o, s, a, d) {
1158
1158
  }
1159
1159
  return o;
1160
1160
  }
1161
- function Et(t, e, i, n, r, o, s, a, d, l, c) {
1162
- for (var h = r - 1, u = r === 0 ? o : [""], f = ut(u), y = 0, v = 0, g = 0; y < n; ++y)
1163
- for (var p = 0, _ = be(t, h + 1, h = En(v = s[y])), w = t; p < f; ++p)
1164
- (w = Jt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = w);
1165
- return Fe(t, e, i, r === 0 ? lt : a, d, l, c);
1161
+ function bt(t, e, i, n, r, o, s, a, d, l, c) {
1162
+ for (var h = r - 1, u = r === 0 ? o : [""], f = ct(u), y = 0, v = 0, g = 0; y < n; ++y)
1163
+ for (var p = 0, _ = we(t, h + 1, h = An(v = s[y])), w = t; p < f; ++p)
1164
+ (w = Wt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = w);
1165
+ return Fe(t, e, i, r === 0 ? dt : a, d, l, c);
1166
1166
  }
1167
- function Pn(t, e, i) {
1168
- return Fe(t, e, i, Ht, Be(In()), be(t, 2, -2), 0);
1167
+ function Cn(t, e, i) {
1168
+ return Fe(t, e, i, qt, Be(xn()), we(t, 2, -2), 0);
1169
1169
  }
1170
- function St(t, e, i, n) {
1171
- return Fe(t, e, i, ct, be(t, 0, n), be(t, n + 1, -1), n);
1170
+ function At(t, e, i, n) {
1171
+ return Fe(t, e, i, lt, we(t, 0, n), we(t, n + 1, -1), n);
1172
1172
  }
1173
- function se(t, e) {
1174
- for (var i = "", n = ut(t), r = 0; r < n; r++)
1173
+ function oe(t, e) {
1174
+ for (var i = "", n = ct(t), r = 0; r < n; r++)
1175
1175
  i += e(t[r], r, t, e) || "";
1176
1176
  return i;
1177
1177
  }
1178
- function $n(t, e, i, n) {
1178
+ function Nn(t, e, i, n) {
1179
1179
  switch (t.type) {
1180
- case mn:
1180
+ case bn:
1181
1181
  if (t.children.length)
1182
1182
  break;
1183
- case An:
1184
- case ct:
1183
+ case wn:
1184
+ case lt:
1185
1185
  return t.return = t.return || t.value;
1186
- case Ht:
1186
+ case qt:
1187
1187
  return "";
1188
- case Wt:
1189
- return t.return = t.value + "{" + se(t.children, n) + "}";
1190
- case lt:
1188
+ case Ht:
1189
+ return t.return = t.value + "{" + oe(t.children, n) + "}";
1190
+ case dt:
1191
1191
  t.value = t.props.join(",");
1192
1192
  }
1193
- return q(i = se(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1193
+ return q(i = oe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1194
1194
  }
1195
- function Mn(t) {
1196
- var e = ut(t);
1195
+ function Pn(t) {
1196
+ var e = ct(t);
1197
1197
  return function(i, n, r, o) {
1198
1198
  for (var s = "", a = 0; a < e; a++)
1199
1199
  s += t[a](i, n, r, o) || "";
1200
1200
  return s;
1201
1201
  };
1202
1202
  }
1203
- function Un(t) {
1203
+ function Mn(t) {
1204
1204
  return function(e) {
1205
1205
  e.root || (e = e.return) && t(e);
1206
1206
  };
1207
1207
  }
1208
- function Bn(t) {
1208
+ function $n(t) {
1209
1209
  var e = /* @__PURE__ */ Object.create(null);
1210
1210
  return function(i) {
1211
1211
  return e[i] === void 0 && (e[i] = t(i)), e[i];
1212
1212
  };
1213
1213
  }
1214
- var jn = function(e, i, n) {
1215
- for (var r = 0, o = 0; r = o, o = H(), r === 38 && o === 12 && (i[n] = 1), !Ae(o); )
1216
- B();
1217
- return me(e, M);
1218
- }, Fn = function(e, i) {
1214
+ var Un = function(e, i, n) {
1215
+ for (var r = 0, o = 0; r = o, o = H(), r === 38 && o === 12 && (i[n] = 1), !be(o); )
1216
+ j();
1217
+ return Ae(e, $);
1218
+ }, Bn = function(e, i) {
1219
1219
  var n = -1, r = 44;
1220
1220
  do
1221
- switch (Ae(r)) {
1221
+ switch (be(r)) {
1222
1222
  case 0:
1223
- r === 38 && H() === 12 && (i[n] = 1), e[n] += jn(M - 1, i, n);
1223
+ r === 38 && H() === 12 && (i[n] = 1), e[n] += Un($ - 1, i, n);
1224
1224
  break;
1225
1225
  case 2:
1226
- e[n] += Te(r);
1226
+ e[n] += Oe(r);
1227
1227
  break;
1228
1228
  case 4:
1229
1229
  if (r === 44) {
@@ -1233,25 +1233,25 @@ var jn = function(e, i, n) {
1233
1233
  default:
1234
1234
  e[n] += Be(r);
1235
1235
  }
1236
- while (r = B());
1236
+ while (r = j());
1237
1237
  return e;
1238
- }, Vn = function(e, i) {
1239
- return Qt(Fn(Xt(e), i));
1240
- }, kt = /* @__PURE__ */ new WeakMap(), zn = function(e) {
1238
+ }, jn = function(e, i) {
1239
+ return Xt(Bn(Yt(e), i));
1240
+ }, mt = /* @__PURE__ */ new WeakMap(), Fn = function(e) {
1241
1241
  if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
1242
1242
  // negative .length indicates that this rule has been already prefixed
1243
1243
  e.length < 1)) {
1244
1244
  for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
1245
1245
  if (n = n.parent, !n)
1246
1246
  return;
1247
- if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !kt.get(n)) && !r) {
1248
- kt.set(e, !0);
1249
- for (var o = [], s = Vn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1247
+ if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !mt.get(n)) && !r) {
1248
+ mt.set(e, !0);
1249
+ for (var o = [], s = jn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1250
1250
  for (var c = 0; c < a.length; c++, l++)
1251
1251
  e.props[l] = o[d] ? s[d].replace(/&\f/g, a[c]) : a[c] + " " + s[d];
1252
1252
  }
1253
1253
  }
1254
- }, Gn = function(e) {
1254
+ }, Vn = function(e) {
1255
1255
  if (e.type === "decl") {
1256
1256
  var i = e.value;
1257
1257
  // charcode for l
@@ -1259,8 +1259,8 @@ var jn = function(e, i, n) {
1259
1259
  i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1260
1260
  }
1261
1261
  };
1262
- function Zt(t, e) {
1263
- switch (kn(t, e)) {
1262
+ function Qt(t, e) {
1263
+ switch (En(t, e)) {
1264
1264
  case 5103:
1265
1265
  return A + "print-" + t + t;
1266
1266
  case 5737:
@@ -1346,7 +1346,7 @@ function Zt(t, e) {
1346
1346
  case 102:
1347
1347
  return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Ne + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1348
1348
  case 115:
1349
- return ~tt(t, "stretch") ? Zt(m(t, "stretch", "fill-available"), e) + t : t;
1349
+ return ~tt(t, "stretch") ? Qt(m(t, "stretch", "fill-available"), e) + t : t;
1350
1350
  }
1351
1351
  break;
1352
1352
  case 4949:
@@ -1373,38 +1373,38 @@ function Zt(t, e) {
1373
1373
  }
1374
1374
  return t;
1375
1375
  }
1376
- var Kn = function(e, i, n, r) {
1376
+ var zn = function(e, i, n, r) {
1377
1377
  if (e.length > -1 && !e.return)
1378
1378
  switch (e.type) {
1379
- case ct:
1380
- e.return = Zt(e.value, e.length);
1379
+ case lt:
1380
+ e.return = Qt(e.value, e.length);
1381
1381
  break;
1382
- case Wt:
1383
- return se([pe(e, {
1382
+ case Ht:
1383
+ return oe([ve(e, {
1384
1384
  value: m(e.value, "@", "@" + A)
1385
1385
  })], r);
1386
- case lt:
1386
+ case dt:
1387
1387
  if (e.length)
1388
- return Rn(e.props, function(o) {
1389
- switch (xn(o, /(::plac\w+|:read-\w+)/)) {
1388
+ return kn(e.props, function(o) {
1389
+ switch (Sn(o, /(::plac\w+|:read-\w+)/)) {
1390
1390
  case ":read-only":
1391
1391
  case ":read-write":
1392
- return se([pe(e, {
1392
+ return oe([ve(e, {
1393
1393
  props: [m(o, /:(read-\w+)/, ":" + Ne + "$1")]
1394
1394
  })], r);
1395
1395
  case "::placeholder":
1396
- return se([pe(e, {
1396
+ return oe([ve(e, {
1397
1397
  props: [m(o, /:(plac\w+)/, ":" + A + "input-$1")]
1398
- }), pe(e, {
1398
+ }), ve(e, {
1399
1399
  props: [m(o, /:(plac\w+)/, ":" + Ne + "$1")]
1400
- }), pe(e, {
1400
+ }), ve(e, {
1401
1401
  props: [m(o, /:(plac\w+)/, C + "input-$1")]
1402
1402
  })], r);
1403
1403
  }
1404
1404
  return "";
1405
1405
  });
1406
1406
  }
1407
- }, qn = [Kn], Hn = function(e) {
1407
+ }, Gn = [zn], Kn = function(e) {
1408
1408
  var i = e.key;
1409
1409
  if (i === "css") {
1410
1410
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
@@ -1413,7 +1413,7 @@ var Kn = function(e, i, n, r) {
1413
1413
  g.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1414
1414
  });
1415
1415
  }
1416
- var r = e.stylisPlugins || qn, o = {}, s, a = [];
1416
+ var r = e.stylisPlugins || Gn, o = {}, s, a = [];
1417
1417
  s = e.container || document.head, Array.prototype.forEach.call(
1418
1418
  // this means we will ignore elements which don't have a space in them which
1419
1419
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -1424,12 +1424,12 @@ var Kn = function(e, i, n, r) {
1424
1424
  a.push(v);
1425
1425
  }
1426
1426
  );
1427
- var d, l = [zn, Gn];
1427
+ var d, l = [Fn, Vn];
1428
1428
  {
1429
- var c, h = [$n, Un(function(v) {
1429
+ var c, h = [Nn, Mn(function(v) {
1430
1430
  c.insert(v);
1431
- })], u = Mn(l.concat(r, h)), f = function(g) {
1432
- return se(Nn(g), u);
1431
+ })], u = Pn(l.concat(r, h)), f = function(g) {
1432
+ return oe(Ln(g), u);
1433
1433
  };
1434
1434
  d = function(g, p, _, w) {
1435
1435
  c = _, f(g ? g + "{" + p.styles + "}" : p.styles), w && (y.inserted[p.name] = !0);
@@ -1437,7 +1437,7 @@ var Kn = function(e, i, n, r) {
1437
1437
  }
1438
1438
  var y = {
1439
1439
  key: i,
1440
- sheet: new bn({
1440
+ sheet: new gn({
1441
1441
  key: i,
1442
1442
  container: s,
1443
1443
  nonce: e.nonce,
@@ -1452,7 +1452,7 @@ var Kn = function(e, i, n, r) {
1452
1452
  };
1453
1453
  return y.sheet.hydrate(a), y;
1454
1454
  };
1455
- function Wn(t) {
1455
+ function qn(t) {
1456
1456
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
1457
1457
  i = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, i = /* Math.imul(k, m): */
1458
1458
  (i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
@@ -1471,7 +1471,7 @@ function Wn(t) {
1471
1471
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
1472
1472
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1473
1473
  }
1474
- var Jn = {
1474
+ var Hn = {
1475
1475
  animationIterationCount: 1,
1476
1476
  aspectRatio: 1,
1477
1477
  borderImageOutset: 1,
@@ -1520,18 +1520,18 @@ var Jn = {
1520
1520
  strokeMiterlimit: 1,
1521
1521
  strokeOpacity: 1,
1522
1522
  strokeWidth: 1
1523
- }, Yn = /[A-Z]|^ms/g, Xn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ei = function(e) {
1523
+ }, Wn = /[A-Z]|^ms/g, Jn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(e) {
1524
1524
  return e.charCodeAt(1) === 45;
1525
- }, xt = function(e) {
1525
+ }, Et = function(e) {
1526
1526
  return e != null && typeof e != "boolean";
1527
- }, Ke = /* @__PURE__ */ Bn(function(t) {
1528
- return ei(t) ? t : t.replace(Yn, "-$&").toLowerCase();
1529
- }), Rt = function(e, i) {
1527
+ }, Ke = /* @__PURE__ */ $n(function(t) {
1528
+ return Zt(t) ? t : t.replace(Wn, "-$&").toLowerCase();
1529
+ }), St = function(e, i) {
1530
1530
  switch (e) {
1531
1531
  case "animation":
1532
1532
  case "animationName":
1533
1533
  if (typeof i == "string")
1534
- return i.replace(Xn, function(n, r, o) {
1534
+ return i.replace(Jn, function(n, r, o) {
1535
1535
  return Z = {
1536
1536
  name: r,
1537
1537
  styles: o,
@@ -1539,7 +1539,7 @@ var Jn = {
1539
1539
  }, r;
1540
1540
  });
1541
1541
  }
1542
- return Jn[e] !== 1 && !ei(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1542
+ return Hn[e] !== 1 && !Zt(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1543
1543
  };
1544
1544
  function Pe(t, e, i) {
1545
1545
  if (i == null)
@@ -1571,7 +1571,7 @@ function Pe(t, e, i) {
1571
1571
  var a = o.styles + ";";
1572
1572
  return a;
1573
1573
  }
1574
- return Qn(t, e, i);
1574
+ return Yn(t, e, i);
1575
1575
  }
1576
1576
  }
1577
1577
  var d = i;
@@ -1580,7 +1580,7 @@ function Pe(t, e, i) {
1580
1580
  var l = e[d];
1581
1581
  return l !== void 0 ? l : d;
1582
1582
  }
1583
- function Qn(t, e, i) {
1583
+ function Yn(t, e, i) {
1584
1584
  var n = "";
1585
1585
  if (Array.isArray(i))
1586
1586
  for (var r = 0; r < i.length; r++)
@@ -1590,10 +1590,10 @@ function Qn(t, e, i) {
1590
1590
  var s = i[o];
1591
1591
  if (typeof s != "object") {
1592
1592
  var a = s;
1593
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : xt(a) && (n += Ke(o) + ":" + Rt(o, a) + ";");
1593
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Et(a) && (n += Ke(o) + ":" + St(o, a) + ";");
1594
1594
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1595
1595
  for (var d = 0; d < s.length; d++)
1596
- xt(s[d]) && (n += Ke(o) + ":" + Rt(o, s[d]) + ";");
1596
+ Et(s[d]) && (n += Ke(o) + ":" + St(o, s[d]) + ";");
1597
1597
  else {
1598
1598
  var l = Pe(t, e, s);
1599
1599
  switch (o) {
@@ -1609,7 +1609,7 @@ function Qn(t, e, i) {
1609
1609
  }
1610
1610
  return n;
1611
1611
  }
1612
- var It = /label:\s*([^\s;{]+)\s*(;|$)/g, Z;
1612
+ var kt = /label:\s*([^\s;{]+)\s*(;|$)/g, Z;
1613
1613
  function qe(t, e, i) {
1614
1614
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1615
1615
  return t[0];
@@ -1627,23 +1627,23 @@ function qe(t, e, i) {
1627
1627
  var d = o;
1628
1628
  r += d[a];
1629
1629
  }
1630
- It.lastIndex = 0;
1631
- for (var l = "", c; (c = It.exec(r)) !== null; )
1630
+ kt.lastIndex = 0;
1631
+ for (var l = "", c; (c = kt.exec(r)) !== null; )
1632
1632
  l += "-" + c[1];
1633
- var h = Wn(r) + l;
1633
+ var h = qn(r) + l;
1634
1634
  return {
1635
1635
  name: h,
1636
1636
  styles: r,
1637
1637
  next: Z
1638
1638
  };
1639
1639
  }
1640
- function ti(t, e, i) {
1640
+ function ei(t, e, i) {
1641
1641
  var n = "";
1642
1642
  return i.split(" ").forEach(function(r) {
1643
1643
  t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
1644
1644
  }), n;
1645
1645
  }
1646
- var Zn = function(e, i, n) {
1646
+ var Xn = function(e, i, n) {
1647
1647
  var r = e.key + "-" + i.name;
1648
1648
  // we only need to add the styles to the registered cache if the
1649
1649
  // class name could be used further down
@@ -1651,8 +1651,8 @@ var Zn = function(e, i, n) {
1651
1651
  // so we don't have to add it to registered cache.
1652
1652
  // this improves memory usage since we can avoid storing the whole style string
1653
1653
  e.registered[r] === void 0 && (e.registered[r] = i.styles);
1654
- }, er = function(e, i, n) {
1655
- Zn(e, i);
1654
+ }, Qn = function(e, i, n) {
1655
+ Xn(e, i);
1656
1656
  var r = e.key + "-" + i.name;
1657
1657
  if (e.inserted[i.name] === void 0) {
1658
1658
  var o = i;
@@ -1661,16 +1661,16 @@ var Zn = function(e, i, n) {
1661
1661
  while (o !== void 0);
1662
1662
  }
1663
1663
  };
1664
- function Tt(t, e) {
1664
+ function xt(t, e) {
1665
1665
  if (t.inserted[e.name] === void 0)
1666
1666
  return t.insert("", e, t.sheet, !0);
1667
1667
  }
1668
- function Ot(t, e, i) {
1669
- var n = [], r = ti(t, n, i);
1668
+ function Rt(t, e, i) {
1669
+ var n = [], r = ei(t, n, i);
1670
1670
  return n.length < 2 ? i : r + e(n);
1671
1671
  }
1672
- var tr = function(e) {
1673
- var i = Hn(e);
1672
+ var Zn = function(e) {
1673
+ var i = Kn(e);
1674
1674
  i.sheet.speedy = function(a) {
1675
1675
  this.isSpeedy = a;
1676
1676
  }, i.compat = !0;
@@ -1678,12 +1678,12 @@ var tr = function(e) {
1678
1678
  for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1679
1679
  l[c] = arguments[c];
1680
1680
  var h = qe(l, i.registered, void 0);
1681
- return er(i, h), i.key + "-" + h.name;
1681
+ return Qn(i, h), i.key + "-" + h.name;
1682
1682
  }, r = function() {
1683
1683
  for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1684
1684
  l[c] = arguments[c];
1685
1685
  var h = qe(l, i.registered), u = "animation-" + h.name;
1686
- return Tt(i, {
1686
+ return xt(i, {
1687
1687
  name: h.name,
1688
1688
  styles: "@keyframes " + u + "{" + h.styles + "}"
1689
1689
  }), u;
@@ -1691,11 +1691,11 @@ var tr = function(e) {
1691
1691
  for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1692
1692
  l[c] = arguments[c];
1693
1693
  var h = qe(l, i.registered);
1694
- Tt(i, h);
1694
+ xt(i, h);
1695
1695
  }, s = function() {
1696
1696
  for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1697
1697
  l[c] = arguments[c];
1698
- return Ot(i.registered, n, ir(l));
1698
+ return Rt(i.registered, n, er(l));
1699
1699
  };
1700
1700
  return {
1701
1701
  css: n,
@@ -1712,10 +1712,10 @@ var tr = function(e) {
1712
1712
  },
1713
1713
  sheet: i.sheet,
1714
1714
  cache: i,
1715
- getRegisteredStyles: ti.bind(null, i.registered),
1716
- merge: Ot.bind(null, i.registered, n)
1715
+ getRegisteredStyles: ei.bind(null, i.registered),
1716
+ merge: Rt.bind(null, i.registered, n)
1717
1717
  };
1718
- }, ir = function t(e) {
1718
+ }, er = function t(e) {
1719
1719
  for (var i = "", n = 0; n < e.length; n++) {
1720
1720
  var r = e[n];
1721
1721
  if (r != null) {
@@ -1740,53 +1740,44 @@ var tr = function(e) {
1740
1740
  }
1741
1741
  }
1742
1742
  return i;
1743
- }, nr = tr({
1743
+ }, tr = Zn({
1744
1744
  key: "css"
1745
- }), le = nr.css, $e, $, He, Dt, nt = 0, ii = [], I = ie, Lt = I.__b, Ct = I.__r, Nt = I.diffed, Pt = I.__c, $t = I.unmount, Mt = I.__;
1746
- function ni(t, e) {
1747
- I.__h && I.__h($, t, nt || e), nt = 0;
1748
- var i = $.__H || ($.__H = { __: [], __h: [] });
1745
+ }), le = tr.css, nt, B, He, It, Ot = 0, ti = [], O = se, Tt = O.__b, Dt = O.__r, Lt = O.diffed, Ct = O.__c, Nt = O.unmount, Pt = O.__;
1746
+ function ir(t, e) {
1747
+ O.__h && O.__h(B, t, Ot || e), Ot = 0;
1748
+ var i = B.__H || (B.__H = { __: [], __h: [] });
1749
1749
  return t >= i.__.length && i.__.push({}), i.__[t];
1750
1750
  }
1751
- function rr(t, e) {
1752
- var i = ni($e++, 3);
1753
- !I.__s && ri(i.__H, e) && (i.__ = t, i.u = e, $.__H.__h.push(i));
1751
+ function ii(t, e) {
1752
+ var i = ir(nt++, 7);
1753
+ return or(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1754
1754
  }
1755
- function or(t) {
1756
- return nt = 5, ht(function() {
1757
- return { current: t };
1758
- }, []);
1759
- }
1760
- function ht(t, e) {
1761
- var i = ni($e++, 7);
1762
- return ri(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1763
- }
1764
- function sr() {
1765
- for (var t; t = ii.shift(); )
1755
+ function nr() {
1756
+ for (var t; t = ti.shift(); )
1766
1757
  if (t.__P && t.__H)
1767
1758
  try {
1768
1759
  t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
1769
1760
  } catch (e) {
1770
- t.__H.__h = [], I.__e(e, t.__v);
1761
+ t.__H.__h = [], O.__e(e, t.__v);
1771
1762
  }
1772
1763
  }
1773
- I.__b = function(t) {
1774
- $ = null, Lt && Lt(t);
1775
- }, I.__ = function(t, e) {
1776
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Mt && Mt(t, e);
1777
- }, I.__r = function(t) {
1778
- Ct && Ct(t), $e = 0;
1779
- var e = ($ = t.__c).__H;
1780
- e && (He === $ ? (e.__h = [], $.__h = [], e.__.forEach(function(i) {
1764
+ O.__b = function(t) {
1765
+ B = null, Tt && Tt(t);
1766
+ }, O.__ = function(t, e) {
1767
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Pt && Pt(t, e);
1768
+ }, O.__r = function(t) {
1769
+ Dt && Dt(t), nt = 0;
1770
+ var e = (B = t.__c).__H;
1771
+ e && (He === B ? (e.__h = [], B.__h = [], e.__.forEach(function(i) {
1781
1772
  i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
1782
- })) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], $e = 0)), He = $;
1783
- }, I.diffed = function(t) {
1784
- Nt && Nt(t);
1773
+ })) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], nt = 0)), He = B;
1774
+ }, O.diffed = function(t) {
1775
+ Lt && Lt(t);
1785
1776
  var e = t.__c;
1786
- e && e.__H && (e.__H.__h.length && (ii.push(e) !== 1 && Dt === I.requestAnimationFrame || ((Dt = I.requestAnimationFrame) || ar)(sr)), e.__H.__.forEach(function(i) {
1777
+ e && e.__H && (e.__H.__h.length && (ti.push(e) !== 1 && It === O.requestAnimationFrame || ((It = O.requestAnimationFrame) || rr)(nr)), e.__H.__.forEach(function(i) {
1787
1778
  i.u && (i.__H = i.u), i.u = void 0;
1788
- })), He = $ = null;
1789
- }, I.__c = function(t, e) {
1779
+ })), He = B = null;
1780
+ }, O.__c = function(t, e) {
1790
1781
  e.some(function(i) {
1791
1782
  try {
1792
1783
  i.__h.forEach(De), i.__h = i.__h.filter(function(n) {
@@ -1795,11 +1786,11 @@ I.__b = function(t) {
1795
1786
  } catch (n) {
1796
1787
  e.some(function(r) {
1797
1788
  r.__h && (r.__h = []);
1798
- }), e = [], I.__e(n, i.__v);
1789
+ }), e = [], O.__e(n, i.__v);
1799
1790
  }
1800
- }), Pt && Pt(t, e);
1801
- }, I.unmount = function(t) {
1802
- $t && $t(t);
1791
+ }), Ct && Ct(t, e);
1792
+ }, O.unmount = function(t) {
1793
+ Nt && Nt(t);
1803
1794
  var e, i = t.__c;
1804
1795
  i && i.__H && (i.__H.__.forEach(function(n) {
1805
1796
  try {
@@ -1807,38 +1798,38 @@ I.__b = function(t) {
1807
1798
  } catch (r) {
1808
1799
  e = r;
1809
1800
  }
1810
- }), i.__H = void 0, e && I.__e(e, i.__v));
1801
+ }), i.__H = void 0, e && O.__e(e, i.__v));
1811
1802
  };
1812
- var Ut = typeof requestAnimationFrame == "function";
1813
- function ar(t) {
1803
+ var Mt = typeof requestAnimationFrame == "function";
1804
+ function rr(t) {
1814
1805
  var e, i = function() {
1815
- clearTimeout(n), Ut && cancelAnimationFrame(e), setTimeout(t);
1806
+ clearTimeout(n), Mt && cancelAnimationFrame(e), setTimeout(t);
1816
1807
  }, n = setTimeout(i, 100);
1817
- Ut && (e = requestAnimationFrame(i));
1808
+ Mt && (e = requestAnimationFrame(i));
1818
1809
  }
1819
1810
  function De(t) {
1820
- var e = $, i = t.__c;
1821
- typeof i == "function" && (t.__c = void 0, i()), $ = e;
1811
+ var e = B, i = t.__c;
1812
+ typeof i == "function" && (t.__c = void 0, i()), B = e;
1822
1813
  }
1823
1814
  function rt(t) {
1824
- var e = $;
1825
- t.__c = t.__(), $ = e;
1815
+ var e = B;
1816
+ t.__c = t.__(), B = e;
1826
1817
  }
1827
- function ri(t, e) {
1818
+ function or(t, e) {
1828
1819
  return !t || t.length !== e.length || e.some(function(i, n) {
1829
1820
  return i !== t[n];
1830
1821
  });
1831
1822
  }
1832
- var dr = Symbol.for("preact-signals");
1823
+ var sr = Symbol.for("preact-signals");
1833
1824
  function Ve() {
1834
1825
  if (ee > 1)
1835
1826
  ee--;
1836
1827
  else {
1837
- for (var t, e = !1; _e !== void 0; ) {
1838
- var i = _e;
1839
- for (_e = void 0, ot++; i !== void 0; ) {
1828
+ for (var t, e = !1; ye !== void 0; ) {
1829
+ var i = ye;
1830
+ for (ye = void 0, ot++; i !== void 0; ) {
1840
1831
  var n = i.o;
1841
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && si(i))
1832
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && ri(i))
1842
1833
  try {
1843
1834
  i.c();
1844
1835
  } catch (r) {
@@ -1851,7 +1842,7 @@ function Ve() {
1851
1842
  throw t;
1852
1843
  }
1853
1844
  }
1854
- function O(t) {
1845
+ function T(t) {
1855
1846
  if (ee > 0)
1856
1847
  return t();
1857
1848
  ee++;
@@ -1861,8 +1852,8 @@ function O(t) {
1861
1852
  Ve();
1862
1853
  }
1863
1854
  }
1864
- var S = void 0, _e = void 0, ee = 0, ot = 0, Me = 0;
1865
- function oi(t) {
1855
+ var S = void 0, ye = void 0, ee = 0, ot = 0, Me = 0;
1856
+ function ni(t) {
1866
1857
  if (S !== void 0) {
1867
1858
  var e = t.n;
1868
1859
  if (e === void 0 || e.t !== S)
@@ -1874,7 +1865,7 @@ function oi(t) {
1874
1865
  function L(t) {
1875
1866
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1876
1867
  }
1877
- L.prototype.brand = dr;
1868
+ L.prototype.brand = sr;
1878
1869
  L.prototype.h = function() {
1879
1870
  return !0;
1880
1871
  };
@@ -1889,7 +1880,7 @@ L.prototype.U = function(t) {
1889
1880
  };
1890
1881
  L.prototype.subscribe = function(t) {
1891
1882
  var e = this;
1892
- return ue(function() {
1883
+ return Ee(function() {
1893
1884
  var i = e.value, n = S;
1894
1885
  S = void 0;
1895
1886
  try {
@@ -1918,7 +1909,7 @@ L.prototype.peek = function() {
1918
1909
  }
1919
1910
  };
1920
1911
  Object.defineProperty(L.prototype, "value", { get: function() {
1921
- var t = oi(this);
1912
+ var t = ni(this);
1922
1913
  return t !== void 0 && (t.i = this.i), this.v;
1923
1914
  }, set: function(t) {
1924
1915
  if (t !== this.v) {
@@ -1936,13 +1927,13 @@ Object.defineProperty(L.prototype, "value", { get: function() {
1936
1927
  function E(t) {
1937
1928
  return new L(t);
1938
1929
  }
1939
- function si(t) {
1930
+ function ri(t) {
1940
1931
  for (var e = t.s; e !== void 0; e = e.n)
1941
1932
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1942
1933
  return !0;
1943
1934
  return !1;
1944
1935
  }
1945
- function ai(t) {
1936
+ function oi(t) {
1946
1937
  for (var e = t.s; e !== void 0; e = e.n) {
1947
1938
  var i = e.S.n;
1948
1939
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1951,7 +1942,7 @@ function ai(t) {
1951
1942
  }
1952
1943
  }
1953
1944
  }
1954
- function di(t) {
1945
+ function si(t) {
1955
1946
  for (var e = t.s, i = void 0; e !== void 0; ) {
1956
1947
  var n = e.p;
1957
1948
  e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
@@ -1966,17 +1957,17 @@ function ce(t) {
1966
1957
  return !1;
1967
1958
  if ((36 & this.f) == 32 || (this.f &= -5, this.g === Me))
1968
1959
  return !0;
1969
- if (this.g = Me, this.f |= 1, this.i > 0 && !si(this))
1960
+ if (this.g = Me, this.f |= 1, this.i > 0 && !ri(this))
1970
1961
  return this.f &= -2, !0;
1971
1962
  var t = S;
1972
1963
  try {
1973
- ai(this), S = this;
1964
+ oi(this), S = this;
1974
1965
  var e = this.x();
1975
1966
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1976
1967
  } catch (i) {
1977
1968
  this.v = i, this.f |= 16, this.i++;
1978
1969
  }
1979
- return S = t, di(this), this.f &= -2, !0;
1970
+ return S = t, si(this), this.f &= -2, !0;
1980
1971
  };
1981
1972
  ce.prototype.S = function(t) {
1982
1973
  if (this.t === void 0) {
@@ -2003,15 +1994,15 @@ ce.prototype.N = function() {
2003
1994
  Object.defineProperty(ce.prototype, "value", { get: function() {
2004
1995
  if (1 & this.f)
2005
1996
  throw new Error("Cycle detected");
2006
- var t = oi(this);
1997
+ var t = ni(this);
2007
1998
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2008
1999
  throw this.v;
2009
2000
  return this.v;
2010
2001
  } });
2011
- function ge(t) {
2002
+ function _e(t) {
2012
2003
  return new ce(t);
2013
2004
  }
2014
- function li(t) {
2005
+ function ai(t) {
2015
2006
  var e = t.u;
2016
2007
  if (t.u = void 0, typeof e == "function") {
2017
2008
  ee++;
@@ -2020,26 +2011,26 @@ function li(t) {
2020
2011
  try {
2021
2012
  e();
2022
2013
  } catch (n) {
2023
- throw t.f &= -2, t.f |= 8, ft(t), n;
2014
+ throw t.f &= -2, t.f |= 8, ut(t), n;
2024
2015
  } finally {
2025
2016
  S = i, Ve();
2026
2017
  }
2027
2018
  }
2028
2019
  }
2029
- function ft(t) {
2020
+ function ut(t) {
2030
2021
  for (var e = t.s; e !== void 0; e = e.n)
2031
2022
  e.S.U(e);
2032
- t.x = void 0, t.s = void 0, li(t);
2023
+ t.x = void 0, t.s = void 0, ai(t);
2033
2024
  }
2034
- function lr(t) {
2025
+ function ar(t) {
2035
2026
  if (S !== this)
2036
2027
  throw new Error("Out-of-order effect");
2037
- di(this), S = t, this.f &= -2, 8 & this.f && ft(this), Ve();
2028
+ si(this), S = t, this.f &= -2, 8 & this.f && ut(this), Ve();
2038
2029
  }
2039
- function Ee(t) {
2030
+ function me(t) {
2040
2031
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
2041
2032
  }
2042
- Ee.prototype.c = function() {
2033
+ me.prototype.c = function() {
2043
2034
  var t = this.S();
2044
2035
  try {
2045
2036
  if (8 & this.f || this.x === void 0)
@@ -2050,21 +2041,21 @@ Ee.prototype.c = function() {
2050
2041
  t();
2051
2042
  }
2052
2043
  };
2053
- Ee.prototype.S = function() {
2044
+ me.prototype.S = function() {
2054
2045
  if (1 & this.f)
2055
2046
  throw new Error("Cycle detected");
2056
- this.f |= 1, this.f &= -9, li(this), ai(this), ee++;
2047
+ this.f |= 1, this.f &= -9, ai(this), oi(this), ee++;
2057
2048
  var t = S;
2058
- return S = this, lr.bind(this, t);
2049
+ return S = this, ar.bind(this, t);
2059
2050
  };
2060
- Ee.prototype.N = function() {
2061
- 2 & this.f || (this.f |= 2, this.o = _e, _e = this);
2051
+ me.prototype.N = function() {
2052
+ 2 & this.f || (this.f |= 2, this.o = ye, ye = this);
2062
2053
  };
2063
- Ee.prototype.d = function() {
2064
- this.f |= 8, 1 & this.f || ft(this);
2054
+ me.prototype.d = function() {
2055
+ this.f |= 8, 1 & this.f || ut(this);
2065
2056
  };
2066
- function ue(t) {
2067
- var e = new Ee(t);
2057
+ function Ee(t) {
2058
+ var e = new me(t);
2068
2059
  try {
2069
2060
  e.c();
2070
2061
  } catch (i) {
@@ -2072,33 +2063,33 @@ function ue(t) {
2072
2063
  }
2073
2064
  return e.d.bind(e);
2074
2065
  }
2075
- var vt, We, ci = [], ui = [];
2076
- ue(function() {
2077
- vt = this.N;
2066
+ var di, We, li = [];
2067
+ Ee(function() {
2068
+ di = this.N;
2078
2069
  })();
2079
- function he(t, e) {
2080
- ie[t] = e.bind(null, ie[t] || function() {
2070
+ function ue(t, e) {
2071
+ se[t] = e.bind(null, se[t] || function() {
2081
2072
  });
2082
2073
  }
2083
- function Ue(t) {
2074
+ function $e(t) {
2084
2075
  We && We(), We = t && t.S();
2085
2076
  }
2086
- function hi(t) {
2087
- var e = this, i = t.data, n = fi(i);
2077
+ function ci(t) {
2078
+ var e = this, i = t.data, n = ui(i);
2088
2079
  n.value = i;
2089
- var r = ht(function() {
2080
+ var r = ii(function() {
2090
2081
  for (var a = e, d = e.__v; d = d.__; )
2091
2082
  if (d.__c) {
2092
2083
  d.__c.__$f |= 4;
2093
2084
  break;
2094
2085
  }
2095
- var l = ge(function() {
2086
+ var l = _e(function() {
2096
2087
  var f = n.value.value;
2097
2088
  return f === 0 ? 0 : f === !0 ? "" : f || "";
2098
- }), c = ge(function() {
2099
- return !Array.isArray(l.value) && !mi(l.value);
2100
- }), h = ue(function() {
2101
- if (this.N = vi, c.value) {
2089
+ }), c = _e(function() {
2090
+ return !Array.isArray(l.value) && !bi(l.value);
2091
+ }), h = Ee(function() {
2092
+ if (this.N = hi, c.value) {
2102
2093
  var f = l.value;
2103
2094
  a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2104
2095
  }
@@ -2109,11 +2100,11 @@ function hi(t) {
2109
2100
  }, []), o = r[0], s = r[1];
2110
2101
  return o.value ? s.peek() : s.value;
2111
2102
  }
2112
- hi.displayName = "_st";
2113
- Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: hi }, props: { configurable: !0, get: function() {
2103
+ ci.displayName = "_st";
2104
+ Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: ci }, props: { configurable: !0, get: function() {
2114
2105
  return { data: this };
2115
2106
  } }, __b: { configurable: !0, value: 1 } });
2116
- he("__b", function(t, e) {
2107
+ ue("__b", function(t, e) {
2117
2108
  if (typeof e.type == "string") {
2118
2109
  var i, n = e.props;
2119
2110
  for (var r in n)
@@ -2124,23 +2115,23 @@ he("__b", function(t, e) {
2124
2115
  }
2125
2116
  t(e);
2126
2117
  });
2127
- he("__r", function(t, e) {
2128
- Ue();
2118
+ ue("__r", function(t, e) {
2119
+ $e();
2129
2120
  var i, n = e.__c;
2130
2121
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2131
2122
  var o;
2132
- return ue(function() {
2123
+ return Ee(function() {
2133
2124
  o = this;
2134
2125
  }), o.c = function() {
2135
2126
  n.__$f |= 1, n.setState({});
2136
2127
  }, o;
2137
- }())), Ue(i), t(e);
2128
+ }())), $e(i), t(e);
2138
2129
  });
2139
- he("__e", function(t, e, i, n) {
2140
- Ue(), t(e, i, n);
2130
+ ue("__e", function(t, e, i, n) {
2131
+ $e(), t(e, i, n);
2141
2132
  });
2142
- he("diffed", function(t, e) {
2143
- Ue();
2133
+ ue("diffed", function(t, e) {
2134
+ $e();
2144
2135
  var i;
2145
2136
  if (typeof e.type == "string" && (i = e.__e)) {
2146
2137
  var n = e.__np, r = e.props;
@@ -2155,23 +2146,23 @@ he("diffed", function(t, e) {
2155
2146
  o = {}, i.U = o;
2156
2147
  for (var d in n) {
2157
2148
  var l = o[d], c = n[d];
2158
- l === void 0 ? (l = cr(i, d, c, r), o[d] = l) : l.o(c, r);
2149
+ l === void 0 ? (l = dr(i, d, c, r), o[d] = l) : l.o(c, r);
2159
2150
  }
2160
2151
  }
2161
2152
  }
2162
2153
  t(e);
2163
2154
  });
2164
- function cr(t, e, i, n) {
2155
+ function dr(t, e, i, n) {
2165
2156
  var r = e in t && t.ownerSVGElement === void 0, o = E(i);
2166
2157
  return { o: function(s, a) {
2167
2158
  o.value = s, n = a;
2168
- }, d: ue(function() {
2169
- this.N = vi;
2159
+ }, d: Ee(function() {
2160
+ this.N = hi;
2170
2161
  var s = o.value.value;
2171
2162
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2172
2163
  }) };
2173
2164
  }
2174
- he("unmount", function(t, e) {
2165
+ ue("unmount", function(t, e) {
2175
2166
  if (typeof e.type == "string") {
2176
2167
  var i = e.__e;
2177
2168
  if (i) {
@@ -2193,10 +2184,10 @@ he("unmount", function(t, e) {
2193
2184
  }
2194
2185
  t(e);
2195
2186
  });
2196
- he("__h", function(t, e, i, n) {
2187
+ ue("__h", function(t, e, i, n) {
2197
2188
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2198
2189
  });
2199
- Ai.prototype.shouldComponentUpdate = function(t, e) {
2190
+ wi.prototype.shouldComponentUpdate = function(t, e) {
2200
2191
  var i = this.__$u, n = i && i.s !== void 0;
2201
2192
  for (var r in e)
2202
2193
  return !0;
@@ -2214,45 +2205,24 @@ Ai.prototype.shouldComponentUpdate = function(t, e) {
2214
2205
  return !0;
2215
2206
  return !1;
2216
2207
  };
2217
- function fi(t) {
2218
- return ht(function() {
2208
+ function ui(t) {
2209
+ return ii(function() {
2219
2210
  return E(t);
2220
2211
  }, []);
2221
2212
  }
2222
- var ur = typeof requestAnimationFrame == "undefined" ? setTimeout : function(t) {
2223
- var e = function() {
2224
- clearTimeout(i), cancelAnimationFrame(n), t();
2225
- }, i = setTimeout(e, 100), n = requestAnimationFrame(e);
2226
- }, hr = function(t) {
2213
+ var lr = function(t) {
2227
2214
  queueMicrotask(function() {
2228
2215
  queueMicrotask(t);
2229
2216
  });
2230
2217
  };
2231
- function fr() {
2232
- O(function() {
2233
- for (var t; t = ci.shift(); )
2234
- vt.call(t);
2235
- });
2236
- }
2237
- function vr() {
2238
- ci.push(this) === 1 && (ie.requestAnimationFrame || ur)(fr);
2239
- }
2240
- function pr() {
2241
- O(function() {
2242
- for (var t; t = ui.shift(); )
2243
- vt.call(t);
2218
+ function cr() {
2219
+ T(function() {
2220
+ for (var t; t = li.shift(); )
2221
+ di.call(t);
2244
2222
  });
2245
2223
  }
2246
- function vi() {
2247
- ui.push(this) === 1 && (ie.requestAnimationFrame || hr)(pr);
2248
- }
2249
- function yr(t) {
2250
- var e = or(t);
2251
- e.current = t, rr(function() {
2252
- return ue(function() {
2253
- return this.N = vr, e.current();
2254
- });
2255
- }, []);
2224
+ function hi() {
2225
+ li.push(this) === 1 && (se.requestAnimationFrame || lr)(cr);
2256
2226
  }
2257
2227
  const N = le`
2258
2228
  inset: 0;
@@ -2273,11 +2243,11 @@ const N = le`
2273
2243
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2274
2244
  'Helvetica Neue', sans-serif;
2275
2245
  `;
2276
- function _r(t, e) {
2277
- const i = Ei(t);
2278
- Si(() => {
2246
+ function ur(t, e) {
2247
+ const i = Ai(t);
2248
+ mi(() => {
2279
2249
  i.current = t;
2280
- }, [t]), dt(() => {
2250
+ }, [t]), Ue(() => {
2281
2251
  if (e === null)
2282
2252
  return;
2283
2253
  const n = setInterval(() => {
@@ -2288,20 +2258,20 @@ function _r(t, e) {
2288
2258
  };
2289
2259
  }, [e]);
2290
2260
  }
2291
- var gr = 0;
2261
+ var hr = 0;
2292
2262
  function b(t, e, i, n, r, o) {
2293
2263
  e || (e = {});
2294
2264
  var s, a, d = e;
2295
2265
  if ("ref" in d)
2296
2266
  for (a in d = {}, e)
2297
2267
  a == "ref" ? s = e[a] : d[a] = e[a];
2298
- var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --gr, __i: -1, __u: 0, __source: r, __self: o };
2268
+ var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --hr, __i: -1, __u: 0, __source: r, __self: o };
2299
2269
  if (typeof t == "function" && (s = t.defaultProps))
2300
2270
  for (a in s)
2301
2271
  d[a] === void 0 && (d[a] = s[a]);
2302
- return ie.vnode && ie.vnode(l), l;
2272
+ return se.vnode && se.vnode(l), l;
2303
2273
  }
2304
- const wr = le`
2274
+ const fr = le`
2305
2275
  ${N}
2306
2276
  position: fixed;
2307
2277
  top: 0;
@@ -2376,30 +2346,30 @@ const wr = le`
2376
2346
  }
2377
2347
  }
2378
2348
  }
2379
- `, G = E(null), st = E(""), at = E(""), Le = E(!1), br = () => {
2349
+ `, G = E(null), st = E(""), at = E(""), Le = E(!1), vr = () => {
2380
2350
  var t;
2381
2351
  (t = G.value) == null || t.call(G, !1);
2382
- }, Ar = () => {
2352
+ }, pr = () => {
2383
2353
  var t;
2384
2354
  (t = G.value) == null || t.call(G, !0);
2385
- }, mr = async (t) => {
2355
+ }, yr = async (t) => {
2386
2356
  let {
2387
2357
  title: e,
2388
2358
  content: i
2389
2359
  } = t;
2390
- return G.value && (G.value(!1), O(() => {
2360
+ return G.value && (G.value(!1), T(() => {
2391
2361
  G.value = null, Le.value = !1;
2392
- })), O(() => {
2362
+ })), T(() => {
2393
2363
  st.value = e || "", at.value = i || "", Le.value = !0;
2394
2364
  }), new Promise((n) => {
2395
2365
  G.value = (r) => {
2396
- O(() => {
2366
+ T(() => {
2397
2367
  G.value = null, Le.value = !1, st.value = "", at.value = "";
2398
2368
  }), n(r);
2399
2369
  };
2400
2370
  });
2401
- }, Er = () => Le.value ? b("div", {
2402
- className: wr,
2371
+ }, _r = () => Le.value ? b("div", {
2372
+ className: fr,
2403
2373
  children: b("div", {
2404
2374
  className: "card-wrapper",
2405
2375
  children: [b("div", {
@@ -2414,17 +2384,17 @@ const wr = le`
2414
2384
  }), b("div", {
2415
2385
  className: "footer",
2416
2386
  children: [b("button", {
2417
- onClick: br,
2387
+ onClick: vr,
2418
2388
  className: "cancel-btn",
2419
2389
  children: "Cancel"
2420
2390
  }), b("button", {
2421
- onClick: Ar,
2391
+ onClick: pr,
2422
2392
  className: "confirm-btm",
2423
2393
  children: "Confirm"
2424
2394
  })]
2425
2395
  })]
2426
2396
  })
2427
- }) : null, Sr = le`
2397
+ }) : null, gr = le`
2428
2398
  ${N}
2429
2399
  position: relative;
2430
2400
  display: flex;
@@ -2457,18 +2427,18 @@ const wr = le`
2457
2427
  cursor: not-allowed;
2458
2428
  }
2459
2429
  }
2460
- `, kr = () => {
2430
+ `, wr = () => {
2461
2431
  const t = E(!1), e = E(null);
2462
2432
  return {
2463
2433
  timerPaused: t,
2464
2434
  startTimestamp: e,
2465
2435
  startTimer: () => {
2466
- O(() => {
2436
+ T(() => {
2467
2437
  e.value = Date.now(), t.value = !1;
2468
2438
  });
2469
2439
  }
2470
2440
  };
2471
- }, xr = (t) => {
2441
+ }, br = (t) => {
2472
2442
  let {
2473
2443
  countdown: e = 0,
2474
2444
  mode: i,
@@ -2478,44 +2448,42 @@ const wr = le`
2478
2448
  const {
2479
2449
  startTimestamp: o,
2480
2450
  timerPaused: s
2481
- } = r, a = fi(e);
2482
- yr(() => {
2483
- o.value && (a.value = e);
2484
- }), _r(() => {
2485
- a.value > 0 ? a.value -= 1 : O(() => {
2451
+ } = r, a = ui(e);
2452
+ ur(() => {
2453
+ a.value > 0 ? a.value -= 1 : T(() => {
2486
2454
  s.value = !0, a.value = 0;
2487
2455
  });
2488
2456
  }, s.value ? null : 1e3);
2489
- const d = ge(() => {
2457
+ const d = _e(() => {
2490
2458
  if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
2491
2459
  return !1;
2492
2460
  const f = Date.now() - o.value;
2493
2461
  return a.value > 0 && e - a.value >= 5 && f >= 5e3;
2494
- }), l = ge(() => {
2462
+ }), l = _e(() => {
2495
2463
  if (i === "interstitial")
2496
2464
  return !0;
2497
2465
  if (!o.value)
2498
2466
  return !1;
2499
2467
  const f = Date.now() - o.value;
2500
2468
  return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2501
- }), c = ge(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2502
- if (s.value = !0, !await mr({
2469
+ }), c = _e(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2470
+ if (s.value = !0, !await yr({
2503
2471
  title: "Are you sure?",
2504
2472
  content: "You will lose your reward if you dismiss this Ad."
2505
2473
  })) {
2506
2474
  s.value = !1;
2507
2475
  return;
2508
2476
  }
2509
- n("dismiss"), O(() => {
2477
+ n("dismiss"), T(() => {
2510
2478
  s.value = !0, a.value = 0, o.value = null;
2511
2479
  });
2512
2480
  }, u = () => {
2513
- n("viewed"), O(() => {
2481
+ n("viewed"), T(() => {
2514
2482
  s.value = !0, a.value = 0, o.value = null;
2515
2483
  });
2516
2484
  };
2517
2485
  return b("div", {
2518
- className: Sr,
2486
+ className: gr,
2519
2487
  children: [a.value > 0 && i !== "interstitial" && b("div", {
2520
2488
  className: "timer",
2521
2489
  children: [a.value, "s"]
@@ -2535,7 +2503,7 @@ const wr = le`
2535
2503
  })
2536
2504
  })]
2537
2505
  });
2538
- }, pi = () => {
2506
+ }, fi = () => {
2539
2507
  const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
2540
2508
  return {
2541
2509
  afterAd: t,
@@ -2548,7 +2516,7 @@ const wr = le`
2548
2516
  src: a,
2549
2517
  mode: d
2550
2518
  };
2551
- }, Rr = le`
2519
+ }, Ar = le`
2552
2520
  ${N}
2553
2521
  position: fixed;
2554
2522
  z-index: 2147483647;
@@ -2567,7 +2535,7 @@ const wr = le`
2567
2535
  width: 100%;
2568
2536
  height: 100%;
2569
2537
  }
2570
- `, yi = (t) => {
2538
+ `, vi = (t) => {
2571
2539
  let {
2572
2540
  state: e
2573
2541
  } = t;
@@ -2581,37 +2549,39 @@ const wr = le`
2581
2549
  countdown: d,
2582
2550
  src: l,
2583
2551
  mode: c
2584
- } = e, h = ki(() => kr(), []), u = (y) => {
2585
- var v, g, p, _;
2586
- a.value = !1, y === "dismiss" ? (v = n.value) == null || v.call(n) : y === "viewed" && ((g = r.value) == null || g.call(r)), (p = i.value) == null || p.call(i), (_ = o.value) == null || _.call(o);
2587
- }, f = () => {
2588
- var y;
2589
- (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
2552
+ } = e, h = Ei(() => wr(), []), [u, f] = $t(!1), y = (g) => {
2553
+ var p, _, w, P;
2554
+ a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (w = i.value) == null || w.call(i), (P = o.value) == null || P.call(o), f(!1);
2555
+ }, v = Si(() => {
2556
+ var g;
2557
+ u || (f(!0), (g = s.value) == null || g.call(s));
2558
+ }, [u]);
2559
+ return Ue(() => {
2560
+ u && (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
2590
2561
  h.startTimer();
2591
- }, 100), (y = s.value) == null || y.call(s);
2592
- };
2593
- return a.value ? b("div", {
2594
- className: Rr,
2595
- children: [b(xr, {
2562
+ }, 100);
2563
+ }, [u, c.value]), a.value ? b("div", {
2564
+ className: Ar,
2565
+ children: [b(br, {
2596
2566
  mode: c.value,
2597
- onClose: u,
2567
+ onClose: y,
2598
2568
  countdown: d.value,
2599
2569
  state: h
2600
2570
  }), a.value && b("iframe", {
2601
2571
  src: l.value,
2602
- onLoad: f,
2572
+ onLoad: v,
2603
2573
  sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
2604
- }), b(Er, {})]
2574
+ }), b(_r, {})]
2605
2575
  }) : null;
2606
2576
  };
2607
2577
  function J(t, e, i) {
2608
- return (e = Ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2578
+ return (e = mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2609
2579
  }
2610
- function Ir(t) {
2611
- var e = Tr(t, "string");
2580
+ function mr(t) {
2581
+ var e = Er(t, "string");
2612
2582
  return typeof e == "symbol" ? e : e + "";
2613
2583
  }
2614
- function Tr(t, e) {
2584
+ function Er(t, e) {
2615
2585
  if (typeof t != "object" || !t)
2616
2586
  return t;
2617
2587
  var i = t[Symbol.toPrimitive];
@@ -2623,13 +2593,13 @@ function Tr(t, e) {
2623
2593
  }
2624
2594
  return (e === "string" ? String : Number)(t);
2625
2595
  }
2626
- class Or {
2596
+ class Sr {
2627
2597
  constructor(e, i) {
2628
- J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "initParams", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "lastUnDisplayedAdBreak", null), J(this, "state", pi()), this.context = e, this.initParams = i;
2598
+ J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "initParams", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "lastUnDisplayedAdBreak", null), J(this, "state", fi()), this.context = e, this.initParams = i;
2629
2599
  }
2630
2600
  async init() {
2631
2601
  var e;
2632
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(b(yi, {
2602
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(b(vi, {
2633
2603
  state: this.state
2634
2604
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2635
2605
  }
@@ -2691,7 +2661,7 @@ class Or {
2691
2661
  breakStatus: "viewed"
2692
2662
  });
2693
2663
  };
2694
- O(() => {
2664
+ T(() => {
2695
2665
  this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = u, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
2696
2666
  });
2697
2667
  break;
@@ -2721,7 +2691,7 @@ class Or {
2721
2691
  var p;
2722
2692
  this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, u);
2723
2693
  };
2724
- O(() => {
2694
+ T(() => {
2725
2695
  this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
2726
2696
  });
2727
2697
  const g = () => {
@@ -2735,7 +2705,7 @@ class Or {
2735
2705
  });
2736
2706
  return;
2737
2707
  }
2738
- this.adsIsShowing = !0, O(() => {
2708
+ this.adsIsShowing = !0, T(() => {
2739
2709
  var _;
2740
2710
  this.state.countdown.value = (_ = i.params.countdown) != null ? _ : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2741
2711
  });
@@ -2746,17 +2716,17 @@ class Or {
2746
2716
  }
2747
2717
  }
2748
2718
  }
2749
- const oe = {};
2719
+ const re = {};
2750
2720
  window.addEventListener("message", (t) => {
2751
- t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || oe[t.data.type] && oe[t.data.type].forEach((e) => {
2721
+ t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || re[t.data.type] && re[t.data.type].forEach((e) => {
2752
2722
  e(t.data.data);
2753
2723
  });
2754
2724
  });
2755
- const ne = (t, e) => {
2756
- dt(() => (oe[t] || (oe[t] = /* @__PURE__ */ new Set()), oe[t].add(e), () => {
2757
- oe[t].delete(e);
2725
+ const ie = (t, e) => {
2726
+ Ue(() => (re[t] || (re[t] = /* @__PURE__ */ new Set()), re[t].add(e), () => {
2727
+ re[t].delete(e);
2758
2728
  }), [t, e]);
2759
- }, _i = () => {
2729
+ }, pi = () => {
2760
2730
  const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
2761
2731
  return {
2762
2732
  afterAd: t,
@@ -2769,7 +2739,7 @@ const ne = (t, e) => {
2769
2739
  visible: a,
2770
2740
  src: d
2771
2741
  };
2772
- }, Dr = le`
2742
+ }, kr = le`
2773
2743
  ${N}
2774
2744
  position: fixed;
2775
2745
  z-index: 2147483647;
@@ -2788,7 +2758,7 @@ const ne = (t, e) => {
2788
2758
  width: 100%;
2789
2759
  height: 100%;
2790
2760
  }
2791
- `, gi = (t) => {
2761
+ `, yi = (t) => {
2792
2762
  let {
2793
2763
  state: e
2794
2764
  } = t;
@@ -2801,18 +2771,18 @@ const ne = (t, e) => {
2801
2771
  adLinkClicked: a,
2802
2772
  visible: d,
2803
2773
  src: l
2804
- } = e, [c, h] = xi(!1), u = (y) => {
2774
+ } = e, [c, h] = $t(!1), u = (y) => {
2805
2775
  var v, g, p, _;
2806
2776
  h(!1), d.value = !1, y === "dismiss" ? (v = n.value) == null || v.call(n) : y === "viewed" && ((g = r.value) == null || g.call(r)), (p = i.value) == null || p.call(i), (_ = o.value) == null || _.call(o);
2807
2777
  }, f = () => {
2808
2778
  var y;
2809
2779
  (y = s.value) == null || y.call(s);
2810
2780
  };
2811
- return ne("appsrockets_ad_dismissed", () => u("dismiss")), ne("appsrockets_ad_rewarded", () => u("viewed")), ne("appsrockets_ad_completed", () => u("viewed")), ne("appsrockets_ad_skipped", () => u("viewed")), ne("appsrockets_ad_clicked", (y) => {
2781
+ return ie("appsrockets_ad_dismissed", () => u("dismiss")), ie("appsrockets_ad_rewarded", () => u("viewed")), ie("appsrockets_ad_completed", () => u("viewed")), ie("appsrockets_ad_skipped", () => u("viewed")), ie("appsrockets_ad_clicked", (y) => {
2812
2782
  var v;
2813
2783
  return (v = a.value) == null ? void 0 : v.call(a, y);
2814
- }), ne("appsrockets_ad_loaded", () => h(!0)), d.value ? b("div", {
2815
- className: Dr,
2784
+ }), ie("appsrockets_ad_loaded", () => h(!0)), d.value ? b("div", {
2785
+ className: kr,
2816
2786
  style: {
2817
2787
  display: c ? "flex" : "none"
2818
2788
  },
@@ -2826,13 +2796,13 @@ const ne = (t, e) => {
2826
2796
  }) : null;
2827
2797
  };
2828
2798
  function Y(t, e, i) {
2829
- return (e = Lr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2799
+ return (e = xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2830
2800
  }
2831
- function Lr(t) {
2832
- var e = Cr(t, "string");
2801
+ function xr(t) {
2802
+ var e = Rr(t, "string");
2833
2803
  return typeof e == "symbol" ? e : e + "";
2834
2804
  }
2835
- function Cr(t, e) {
2805
+ function Rr(t, e) {
2836
2806
  if (typeof t != "object" || !t)
2837
2807
  return t;
2838
2808
  var i = t[Symbol.toPrimitive];
@@ -2844,9 +2814,9 @@ function Cr(t, e) {
2844
2814
  }
2845
2815
  return (e === "string" ? String : Number)(t);
2846
2816
  }
2847
- class Nr {
2817
+ class Ir {
2848
2818
  constructor(e, i) {
2849
- Y(this, "name", "APPSROCKETS"), Y(this, "initialized", !1), Y(this, "initCompleter", null), Y(this, "context", void 0), Y(this, "adsOverlay", null), Y(this, "adsIsShowing", !1), Y(this, "lastUnDisplayedAdBreak", null), Y(this, "state", _i()), Y(this, "processUrl", (n) => {
2819
+ Y(this, "name", "APPSROCKETS"), Y(this, "initialized", !1), Y(this, "initCompleter", null), Y(this, "context", void 0), Y(this, "adsOverlay", null), Y(this, "adsIsShowing", !1), Y(this, "lastUnDisplayedAdBreak", null), Y(this, "state", pi()), Y(this, "processUrl", (n) => {
2850
2820
  var a;
2851
2821
  const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
2852
2822
  return s.has("joliSource") || s.set("joliSource", r.joliSource), s.get("osType") || s.set("osType", r.osType), s.get("runtimeType") || s.set("runtimeType", r.runtimeType), s.get("mode") || s.set("mode", "AFG"), s.get("deviceId") || s.set("deviceId", r.deviceId), s.get("statusBarHeight") || s.set("statusBarHeight", ((a = this.context.getWindowInfo().statusBarHeight) != null ? a : 0).toString()), o.search = s.toString(), o.toString();
@@ -2854,7 +2824,7 @@ class Nr {
2854
2824
  }
2855
2825
  async init() {
2856
2826
  var e;
2857
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(b(gi, {
2827
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(b(yi, {
2858
2828
  state: this.state
2859
2829
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2860
2830
  }
@@ -2928,7 +2898,7 @@ class Nr {
2928
2898
  breakStatus: "noAdPreloaded"
2929
2899
  });
2930
2900
  };
2931
- O(() => {
2901
+ T(() => {
2932
2902
  this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = y, this.state.visible.value = !0;
2933
2903
  });
2934
2904
  break;
@@ -2960,7 +2930,7 @@ class Nr {
2960
2930
  }, p = () => {
2961
2931
  this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
2962
2932
  };
2963
- O(() => {
2933
+ T(() => {
2964
2934
  this.state.afterAd.value = u, this.state.adDismissed.value = y, this.state.adViewed.value = v, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = p;
2965
2935
  });
2966
2936
  const _ = () => {
@@ -2974,7 +2944,7 @@ class Nr {
2974
2944
  });
2975
2945
  return;
2976
2946
  }
2977
- this.adsIsShowing = !0, O(() => {
2947
+ this.adsIsShowing = !0, T(() => {
2978
2948
  this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
2979
2949
  });
2980
2950
  };
@@ -2985,13 +2955,13 @@ class Nr {
2985
2955
  }
2986
2956
  }
2987
2957
  function Q(t, e, i) {
2988
- return (e = Pr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2958
+ return (e = Or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2989
2959
  }
2990
- function Pr(t) {
2991
- var e = $r(t, "string");
2960
+ function Or(t) {
2961
+ var e = Tr(t, "string");
2992
2962
  return typeof e == "symbol" ? e : e + "";
2993
2963
  }
2994
- function $r(t, e) {
2964
+ function Tr(t, e) {
2995
2965
  if (typeof t != "object" || !t)
2996
2966
  return t;
2997
2967
  var i = t[Symbol.toPrimitive];
@@ -3003,10 +2973,10 @@ function $r(t, e) {
3003
2973
  }
3004
2974
  return (e === "string" ? String : Number)(t);
3005
2975
  }
3006
- class yo {
2976
+ class co {
3007
2977
  constructor(e) {
3008
2978
  if (Q(this, "context", void 0), Q(this, "contextInfo", void 0), Q(this, "providers", {}), Q(this, "channelPolicy", void 0), Q(this, "adsActionDetection", void 0), Q(this, "adsTrackSerializer", void 0), Q(this, "initialized", !1), Q(this, "initializedTimeStamp", Date.now()), e)
3009
- this.context = e, this.channelPolicy = new vn(this.context), this.adsActionDetection = new Li(this.context), this.adsTrackSerializer = new qt(this.context), this.contextInfo = this.context.getContextInfo();
2979
+ this.context = e, this.channelPolicy = new hn(this.context), this.adsActionDetection = new Ti(this.context), this.adsTrackSerializer = new Kt(this.context), this.contextInfo = this.context.getContextInfo();
3010
2980
  else
3011
2981
  throw new Error("JoliboxAdsForGame requires a configuration object");
3012
2982
  }
@@ -3057,17 +3027,17 @@ class yo {
3057
3027
  for (const n of i)
3058
3028
  switch (n.provider) {
3059
3029
  case "ADSENSE": {
3060
- const r = new _n(this.context, n.params);
3030
+ const r = new pn(this.context, n.params);
3061
3031
  await r.init(), this.providers.ADSENSE = r;
3062
3032
  break;
3063
3033
  }
3064
3034
  case "OKSPIN": {
3065
- const r = new Or(this.context, n.params);
3035
+ const r = new Sr(this.context, n.params);
3066
3036
  await r.init(), this.providers.OKSPIN = r;
3067
3037
  break;
3068
3038
  }
3069
3039
  case "APPSROCKETS": {
3070
- const r = new Nr(this.context, n.params);
3040
+ const r = new Ir(this.context, n.params);
3071
3041
  await r.init(), this.providers.APPSROCKETS = r;
3072
3042
  break;
3073
3043
  }
@@ -3128,7 +3098,7 @@ class yo {
3128
3098
  });
3129
3099
  return;
3130
3100
  } else {
3131
- const v = f == null ? void 0 : f.sort((w, j) => w.seq - j.seq);
3101
+ const v = f == null ? void 0 : f.sort((w, P) => w.seq - P.seq);
3132
3102
  if (v.length === 0) {
3133
3103
  (d = e.adBreakDone) == null || d.call(e, {
3134
3104
  breakType: e.type,
@@ -3139,11 +3109,11 @@ class yo {
3139
3109
  return;
3140
3110
  }
3141
3111
  let g = !0, p = null;
3142
- const _ = new Ti(this.context);
3112
+ const _ = new Ri(this.context);
3143
3113
  for ((l = this.context.eventEmitter) == null || l.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0; v.length > 0; ) {
3144
- const w = v.shift(), j = this.providers[w.provider];
3145
- if (j) {
3146
- const [U, F] = await _.callAdBreakAndContinue(j, e, w);
3114
+ const w = v.shift(), P = this.providers[w.provider];
3115
+ if (P) {
3116
+ const [U, F] = await _.callAdBreakAndContinue(P, e, w);
3147
3117
  g = U, p = F;
3148
3118
  } else
3149
3119
  g = !0, p = {
@@ -3172,13 +3142,13 @@ class yo {
3172
3142
  }
3173
3143
  }
3174
3144
  function Je(t, e, i) {
3175
- return (e = Mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3145
+ return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3176
3146
  }
3177
- function Mr(t) {
3178
- var e = Ur(t, "string");
3147
+ function Dr(t) {
3148
+ var e = Lr(t, "string");
3179
3149
  return typeof e == "symbol" ? e : e + "";
3180
3150
  }
3181
- function Ur(t, e) {
3151
+ function Lr(t, e) {
3182
3152
  if (typeof t != "object" || !t)
3183
3153
  return t;
3184
3154
  var i = t[Symbol.toPrimitive];
@@ -3190,7 +3160,7 @@ function Ur(t, e) {
3190
3160
  }
3191
3161
  return (e === "string" ? String : Number)(t);
3192
3162
  }
3193
- class Br {
3163
+ class Cr {
3194
3164
  constructor(e) {
3195
3165
  Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), this.context = e;
3196
3166
  }
@@ -3236,13 +3206,13 @@ class Br {
3236
3206
  }
3237
3207
  }
3238
3208
  function Ye(t, e, i) {
3239
- return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3209
+ return (e = Nr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3240
3210
  }
3241
- function jr(t) {
3242
- var e = Fr(t, "string");
3211
+ function Nr(t) {
3212
+ var e = Pr(t, "string");
3243
3213
  return typeof e == "symbol" ? e : e + "";
3244
3214
  }
3245
- function Fr(t, e) {
3215
+ function Pr(t, e) {
3246
3216
  if (typeof t != "object" || !t)
3247
3217
  return t;
3248
3218
  var i = t[Symbol.toPrimitive];
@@ -3254,27 +3224,27 @@ function Fr(t, e) {
3254
3224
  }
3255
3225
  return (e === "string" ? String : Number)(t);
3256
3226
  }
3257
- class P extends Error {
3227
+ class M extends Error {
3258
3228
  constructor(e, i) {
3259
3229
  super(e.message), Ye(this, "name", void 0), Ye(this, "type", void 0), Ye(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
3260
3230
  }
3261
3231
  static from(e, i) {
3262
3232
  switch (i) {
3263
3233
  case "GOOGLE_IMA_ERROR":
3264
- return new P(e, i);
3234
+ return new M(e, i);
3265
3235
  case "JOLIBOX_IMA_ERROR":
3266
- return new P(e, i);
3236
+ return new M(e, i);
3267
3237
  }
3268
3238
  }
3269
3239
  }
3270
3240
  function x(t, e, i) {
3271
- return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3241
+ return (e = Mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3272
3242
  }
3273
- function Vr(t) {
3274
- var e = zr(t, "string");
3243
+ function Mr(t) {
3244
+ var e = $r(t, "string");
3275
3245
  return typeof e == "symbol" ? e : e + "";
3276
3246
  }
3277
- function zr(t, e) {
3247
+ function $r(t, e) {
3278
3248
  if (typeof t != "object" || !t)
3279
3249
  return t;
3280
3250
  var i = t[Symbol.toPrimitive];
@@ -3286,7 +3256,7 @@ function zr(t, e) {
3286
3256
  }
3287
3257
  return (e === "string" ? String : Number)(t);
3288
3258
  }
3289
- class Gr {
3259
+ class Ur {
3290
3260
  constructor(e, i, n) {
3291
3261
  x(this, "adsLoader", void 0), x(this, "adDisplayContainer", void 0), x(this, "isAdPlaying", !1), x(this, "isContentFinished", !1), x(this, "videoContent", void 0), x(this, "adContainer", void 0), x(this, "adsManager", void 0), x(this, "intervalTimer", void 0), x(this, "completed", !1), x(this, "adTagUrl", void 0), x(this, "notifyRequestAd", void 0), x(this, "notifyLoaded", void 0), x(this, "notifyPlayingAd", void 0), x(this, "notifyCompleted", void 0), x(this, "notifyError", void 0), x(this, "destroy", () => {
3292
3262
  var r, o, s, a, d, l, c, h, u, f, y;
@@ -3295,7 +3265,7 @@ class Gr {
3295
3265
  var c;
3296
3266
  this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
3297
3267
  var u;
3298
- return (u = r.onAdError) == null ? void 0 : u.call(r, P.from(h, "GOOGLE_IMA_ERROR"));
3268
+ return (u = r.onAdError) == null ? void 0 : u.call(r, M.from(h, "GOOGLE_IMA_ERROR"));
3299
3269
  }, this.adsLoader = new window.google.ima.AdsLoader(this.adDisplayContainer), this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1), this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1);
3300
3270
  const s = () => {
3301
3271
  var h;
@@ -3352,8 +3322,8 @@ class Gr {
3352
3322
  }
3353
3323
  }
3354
3324
  var Ce = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(Ce || {});
3355
- const Kr = () => {
3356
- const t = E(!1), e = E(!1), i = E(null), n = _t(), r = _t();
3325
+ const Br = () => {
3326
+ const t = E(!1), e = E(!1), i = E(null), n = vt(), r = vt();
3357
3327
  return {
3358
3328
  visible: t,
3359
3329
  canRetry: e,
@@ -3361,7 +3331,7 @@ const Kr = () => {
3361
3331
  videoRef: n,
3362
3332
  adContainerRef: r
3363
3333
  };
3364
- }, qr = le`
3334
+ }, jr = le`
3365
3335
  ${N}
3366
3336
  position: fixed;
3367
3337
  left: 0;
@@ -3410,7 +3380,7 @@ const Kr = () => {
3410
3380
  cursor: pointer;
3411
3381
  }
3412
3382
  }
3413
- `, Hr = (t) => {
3383
+ `, Fr = (t) => {
3414
3384
  let {
3415
3385
  onReady: e,
3416
3386
  state: i
@@ -3422,14 +3392,14 @@ const Kr = () => {
3422
3392
  videoRef: s,
3423
3393
  adContainerRef: a
3424
3394
  } = i, d = () => {
3425
- r.value && (r.value(), O(() => {
3395
+ r.value && (r.value(), T(() => {
3426
3396
  r.value = null, o.value = !1;
3427
3397
  }));
3428
3398
  };
3429
- return dt(() => {
3399
+ return Ue(() => {
3430
3400
  e();
3431
3401
  }, [e]), b("div", {
3432
- className: qr,
3402
+ className: jr,
3433
3403
  "data-visible": n.value,
3434
3404
  children: b("div", {
3435
3405
  className: "ads-wrapper",
@@ -3465,13 +3435,13 @@ const Kr = () => {
3465
3435
  });
3466
3436
  };
3467
3437
  function X(t, e, i) {
3468
- return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3438
+ return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3469
3439
  }
3470
- function Wr(t) {
3471
- var e = Jr(t, "string");
3440
+ function Vr(t) {
3441
+ var e = zr(t, "string");
3472
3442
  return typeof e == "symbol" ? e : e + "";
3473
3443
  }
3474
- function Jr(t, e) {
3444
+ function zr(t, e) {
3475
3445
  if (typeof t != "object" || !t)
3476
3446
  return t;
3477
3447
  var i = t[Symbol.toPrimitive];
@@ -3483,9 +3453,9 @@ function Jr(t, e) {
3483
3453
  }
3484
3454
  return (e === "string" ? String : Number)(t);
3485
3455
  }
3486
- class Yr {
3456
+ class Gr {
3487
3457
  constructor(e) {
3488
- X(this, "name", "GOOGLE_IMA"), X(this, "context", void 0), X(this, "adsOverlay", null), X(this, "initialized", !1), X(this, "ima", null), X(this, "state", Kr()), X(this, "init", async (i) => {
3458
+ X(this, "name", "GOOGLE_IMA"), X(this, "context", void 0), X(this, "adsOverlay", null), X(this, "initialized", !1), X(this, "ima", null), X(this, "state", Br()), X(this, "init", async (i) => {
3489
3459
  if (this.initialized)
3490
3460
  return;
3491
3461
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -3501,10 +3471,10 @@ class Yr {
3501
3471
  }, s.onerror = o, document.head.appendChild(s);
3502
3472
  }
3503
3473
  }), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
3504
- te(b(Hr, {
3474
+ te(b(Fr, {
3505
3475
  state: this.state,
3506
3476
  onReady: () => {
3507
- this.ima = new Gr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3477
+ this.ima = new Ur(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3508
3478
  }
3509
3479
  }), this.adsOverlay);
3510
3480
  }), this.initialized = !0;
@@ -3513,7 +3483,7 @@ class Yr {
3513
3483
  }), X(this, "requestAd", (i, n) => {
3514
3484
  var a;
3515
3485
  if (!this.adsOverlay || !this.ima || !this.initialized) {
3516
- const d = P.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3486
+ const d = M.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3517
3487
  (a = i.onAdError) == null || a.call(i, d);
3518
3488
  return;
3519
3489
  }
@@ -3540,7 +3510,7 @@ class Yr {
3540
3510
  const c = () => {
3541
3511
  this.ima.destroy(), this.requestAd(i, n);
3542
3512
  };
3543
- O(() => {
3513
+ T(() => {
3544
3514
  this.state.canRetry.value = !0, this.state.retry.value = c;
3545
3515
  });
3546
3516
  }
@@ -3550,13 +3520,13 @@ class Yr {
3550
3520
  }
3551
3521
  }
3552
3522
  function K(t, e, i) {
3553
- return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3523
+ return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3554
3524
  }
3555
- function Xr(t) {
3556
- var e = Qr(t, "string");
3525
+ function Kr(t) {
3526
+ var e = qr(t, "string");
3557
3527
  return typeof e == "symbol" ? e : e + "";
3558
3528
  }
3559
- function Qr(t, e) {
3529
+ function qr(t, e) {
3560
3530
  if (typeof t != "object" || !t)
3561
3531
  return t;
3562
3532
  var i = t[Symbol.toPrimitive];
@@ -3568,11 +3538,11 @@ function Qr(t, e) {
3568
3538
  }
3569
3539
  return (e === "string" ? String : Number)(t);
3570
3540
  }
3571
- class Zr {
3541
+ class Hr {
3572
3542
  constructor(e) {
3573
- K(this, "name", "OKSPIN"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "state", pi()), K(this, "init", async (i) => {
3543
+ K(this, "name", "OKSPIN"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "state", fi()), K(this, "init", async (i) => {
3574
3544
  var n;
3575
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(b(yi, {
3545
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(b(vi, {
3576
3546
  state: this.state
3577
3547
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3578
3548
  }), K(this, "destroy", () => {
@@ -3581,11 +3551,11 @@ class Zr {
3581
3551
  }), K(this, "requestAd", (i, n) => {
3582
3552
  var s, a, d, l;
3583
3553
  if (!this.adsOverlay || !this.initialized) {
3584
- (s = i.onAdError) == null || s.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3554
+ (s = i.onAdError) == null || s.call(i, M.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3585
3555
  return;
3586
3556
  }
3587
3557
  if (this.adsIsShowing) {
3588
- (a = i.onAdError) == null || a.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3558
+ (a = i.onAdError) == null || a.call(i, M.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3589
3559
  return;
3590
3560
  }
3591
3561
  (d = i.onAdRequested) == null || d.call(i);
@@ -3596,7 +3566,7 @@ class Zr {
3596
3566
  var c;
3597
3567
  (c = i.onAdLoaded) == null || c.call(i, void 0);
3598
3568
  };
3599
- this.adsIsShowing = !0, O(() => {
3569
+ this.adsIsShowing = !0, T(() => {
3600
3570
  var c;
3601
3571
  this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (c = n.params.countdown) != null ? c : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
3602
3572
  }), (l = i.onAdPlaying) == null || l.call(i, void 0);
@@ -3604,13 +3574,13 @@ class Zr {
3604
3574
  }
3605
3575
  }
3606
3576
  function z(t, e, i) {
3607
- return (e = eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3577
+ return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3608
3578
  }
3609
- function eo(t) {
3610
- var e = to(t, "string");
3579
+ function Wr(t) {
3580
+ var e = Jr(t, "string");
3611
3581
  return typeof e == "symbol" ? e : e + "";
3612
3582
  }
3613
- function to(t, e) {
3583
+ function Jr(t, e) {
3614
3584
  if (typeof t != "object" || !t)
3615
3585
  return t;
3616
3586
  var i = t[Symbol.toPrimitive];
@@ -3622,15 +3592,15 @@ function to(t, e) {
3622
3592
  }
3623
3593
  return (e === "string" ? String : Number)(t);
3624
3594
  }
3625
- class io {
3595
+ class Yr {
3626
3596
  constructor(e) {
3627
- z(this, "name", "APPSROCKETS"), z(this, "initialized", !1), z(this, "initCompleter", null), z(this, "context", void 0), z(this, "adsOverlay", null), z(this, "adsIsShowing", !1), z(this, "state", _i()), z(this, "processUrl", (i) => {
3597
+ z(this, "name", "APPSROCKETS"), z(this, "initialized", !1), z(this, "initCompleter", null), z(this, "context", void 0), z(this, "adsOverlay", null), z(this, "adsIsShowing", !1), z(this, "state", pi()), z(this, "processUrl", (i) => {
3628
3598
  var s;
3629
3599
  const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
3630
3600
  return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), r.search = o.toString(), r.toString();
3631
3601
  }), z(this, "init", async (i) => {
3632
3602
  var n;
3633
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(b(gi, {
3603
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(b(yi, {
3634
3604
  state: this.state
3635
3605
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3636
3606
  }), z(this, "destroy", () => {
@@ -3639,11 +3609,11 @@ class io {
3639
3609
  }), z(this, "requestAd", (i, n) => {
3640
3610
  var d, l, c, h;
3641
3611
  if (!this.adsOverlay || !this.initialized) {
3642
- (d = i.onAdError) == null || d.call(i, P.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3612
+ (d = i.onAdError) == null || d.call(i, M.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3643
3613
  return;
3644
3614
  }
3645
3615
  if (this.adsIsShowing) {
3646
- (l = i.onAdError) == null || l.call(i, P.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3616
+ (l = i.onAdError) == null || l.call(i, M.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3647
3617
  return;
3648
3618
  }
3649
3619
  (c = i.onAdRequested) == null || c.call(i);
@@ -3658,22 +3628,22 @@ class io {
3658
3628
  (y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
3659
3629
  }, a = () => {
3660
3630
  var u;
3661
- (u = i.onAdError) == null || u.call(i, P.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
3631
+ (u = i.onAdError) == null || u.call(i, M.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
3662
3632
  };
3663
- this.adsIsShowing = !0, O(() => {
3633
+ this.adsIsShowing = !0, T(() => {
3664
3634
  this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
3665
3635
  }), (h = i.onAdPlaying) == null || h.call(i, void 0);
3666
3636
  }), this.context = e;
3667
3637
  }
3668
3638
  }
3669
- function ye(t, e, i) {
3670
- return (e = no(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3639
+ function pe(t, e, i) {
3640
+ return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3671
3641
  }
3672
- function no(t) {
3673
- var e = ro(t, "string");
3642
+ function Xr(t) {
3643
+ var e = Qr(t, "string");
3674
3644
  return typeof e == "symbol" ? e : e + "";
3675
3645
  }
3676
- function ro(t, e) {
3646
+ function Qr(t, e) {
3677
3647
  if (typeof t != "object" || !t)
3678
3648
  return t;
3679
3649
  var i = t[Symbol.toPrimitive];
@@ -3685,10 +3655,10 @@ function ro(t, e) {
3685
3655
  }
3686
3656
  return (e === "string" ? String : Number)(t);
3687
3657
  }
3688
- class _o {
3658
+ class uo {
3689
3659
  constructor(e) {
3690
- if (ye(this, "context", void 0), ye(this, "contextInfo", void 0), ye(this, "providers", {}), ye(this, "adsTrackSerializer", void 0), ye(this, "initialized", !1), e)
3691
- this.context = e, this.adsTrackSerializer = new qt(e), this.contextInfo = this.context.getContextInfo();
3660
+ if (pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "providers", {}), pe(this, "adsTrackSerializer", void 0), pe(this, "initialized", !1), e)
3661
+ this.context = e, this.adsTrackSerializer = new Kt(e), this.contextInfo = this.context.getContextInfo();
3692
3662
  else
3693
3663
  throw new Error("JoliboxAdsForVideo requires a configuration object");
3694
3664
  }
@@ -3738,17 +3708,17 @@ class _o {
3738
3708
  for (const i of e)
3739
3709
  switch (i.provider) {
3740
3710
  case "GOOGLE_IMA": {
3741
- const n = new Yr(this.context);
3711
+ const n = new Gr(this.context);
3742
3712
  await n.init(i), this.providers.GOOGLE_IMA = n;
3743
3713
  break;
3744
3714
  }
3745
3715
  case "OKSPIN": {
3746
- const n = new Zr(this.context);
3716
+ const n = new Hr(this.context);
3747
3717
  await n.init(i), this.providers.OKSPIN = n;
3748
3718
  break;
3749
3719
  }
3750
3720
  case "APPSROCKETS": {
3751
- const n = new io(this.context);
3721
+ const n = new Yr(this.context);
3752
3722
  await n.init(i), this.providers.APPSROCKETS = n;
3753
3723
  break;
3754
3724
  }
@@ -3767,7 +3737,7 @@ class _o {
3767
3737
  async requestAd(e) {
3768
3738
  var i, n, r, o, s, a, d;
3769
3739
  if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
3770
- const l = P.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
3740
+ const l = M.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
3771
3741
  (n = e.onAdError) == null || n.call(e, l);
3772
3742
  return;
3773
3743
  }
@@ -3784,46 +3754,46 @@ class _o {
3784
3754
  }
3785
3755
  });
3786
3756
  if (c !== "SUCCESS") {
3787
- const h = P.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
3757
+ const h = M.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
3788
3758
  (r = e.onAdError) == null || r.call(e, h);
3789
3759
  return;
3790
3760
  } else {
3791
3761
  const h = l == null ? void 0 : l.sort((v, g) => v.seq - g.seq);
3792
3762
  if (h.length === 0) {
3793
- const v = P.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
3763
+ const v = M.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
3794
3764
  (o = e.onAdError) == null || o.call(e, v);
3795
3765
  return;
3796
3766
  }
3797
3767
  let u = !0, f = null;
3798
- const y = new Br(this.context);
3768
+ const y = new Cr(this.context);
3799
3769
  for (; h.length > 0; ) {
3800
3770
  const v = h.shift(), g = this.providers[v.provider];
3801
3771
  if (g) {
3802
3772
  const [p, _] = await y.callAdRequestAndContinue(g, e, v);
3803
3773
  u = p, f = _;
3804
3774
  } else
3805
- u = !0, f = P.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
3775
+ u = !0, f = M.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
3806
3776
  if (!u)
3807
3777
  break;
3808
3778
  }
3809
3779
  u && f && ((s = e.onAdError) == null || s.call(e, f));
3810
3780
  }
3811
3781
  } catch (l) {
3812
- const c = P.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
3782
+ const c = M.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
3813
3783
  (a = e.onAdError) == null || a.call(e, c);
3814
3784
  } finally {
3815
3785
  (d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
3816
3786
  }
3817
3787
  }
3818
3788
  }
3819
- function re(t, e, i) {
3820
- return (e = oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3789
+ function ne(t, e, i) {
3790
+ return (e = Zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3821
3791
  }
3822
- function oo(t) {
3823
- var e = so(t, "string");
3792
+ function Zr(t) {
3793
+ var e = eo(t, "string");
3824
3794
  return typeof e == "symbol" ? e : e + "";
3825
3795
  }
3826
- function so(t, e) {
3796
+ function eo(t, e) {
3827
3797
  if (typeof t != "object" || !t)
3828
3798
  return t;
3829
3799
  var i = t[Symbol.toPrimitive];
@@ -3835,18 +3805,18 @@ function so(t, e) {
3835
3805
  }
3836
3806
  return (e === "string" ? String : Number)(t);
3837
3807
  }
3838
- class go extends Error {
3808
+ class ho extends Error {
3839
3809
  constructor(e) {
3840
- super(e), re(this, "name", void 0), re(this, "message", void 0), re(this, "errMsg", void 0), re(this, "code", void 0), re(this, "data", void 0), re(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
3810
+ super(e), ne(this, "name", void 0), ne(this, "message", void 0), ne(this, "errMsg", void 0), ne(this, "code", void 0), ne(this, "data", void 0), ne(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
3841
3811
  }
3842
3812
  }
3843
3813
  export {
3844
- P as AFVWrappedError,
3845
- _n as GoogleAdSenseProvider,
3846
- Yr as GoogleIMAProvider,
3847
- yo as JoliboxAdsForGame,
3848
- _o as JoliboxAdsForVideo,
3849
- Or as OKSpinForGameProvider,
3850
- Zr as OKSpinForVideoProvider,
3851
- go as ResponseError
3814
+ M as AFVWrappedError,
3815
+ pn as GoogleAdSenseProvider,
3816
+ Gr as GoogleIMAProvider,
3817
+ co as JoliboxAdsForGame,
3818
+ uo as JoliboxAdsForVideo,
3819
+ Sr as OKSpinForGameProvider,
3820
+ Hr as OKSpinForVideoProvider,
3821
+ ho as ResponseError
3852
3822
  };