@jolibox/ads 1.4.7 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,50 +1,50 @@
1
- var dn = Object.defineProperty, ln = Object.defineProperties;
2
- var un = Object.getOwnPropertyDescriptors;
3
- var ze = Object.getOwnPropertySymbols;
4
- var Gt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
5
- var qt = (t, e, i) => e in t ? dn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, vt = (t, e) => {
1
+ var ln = Object.defineProperty, un = Object.defineProperties;
2
+ var cn = Object.getOwnPropertyDescriptors;
3
+ var We = Object.getOwnPropertySymbols;
4
+ var Kt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable;
5
+ var qt = (t, e, i) => e in t ? ln(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, yt = (t, e) => {
6
6
  for (var i in e || (e = {}))
7
- Gt.call(e, i) && qt(t, i, e[i]);
8
- if (ze)
9
- for (var i of ze(e))
10
- Kt.call(e, i) && qt(t, i, e[i]);
7
+ Kt.call(e, i) && qt(t, i, e[i]);
8
+ if (We)
9
+ for (var i of We(e))
10
+ zt.call(e, i) && qt(t, i, e[i]);
11
11
  return t;
12
- }, zt = (t, e) => ln(t, un(e));
13
- var Wt = (t, e) => {
12
+ }, Wt = (t, e) => un(t, cn(e));
13
+ var Ht = (t, e) => {
14
14
  var i = {};
15
15
  for (var n in t)
16
- Gt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
17
- if (t != null && ze)
18
- for (var n of ze(t))
19
- e.indexOf(n) < 0 && Kt.call(t, n) && (i[n] = t[n]);
16
+ Kt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
17
+ if (t != null && We)
18
+ for (var n of We(t))
19
+ e.indexOf(n) < 0 && zt.call(t, n) && (i[n] = t[n]);
20
20
  return i;
21
21
  };
22
- import { options as Re, Component as cn, isValidElement as hn } from "preact";
23
- import { useRef as _i, useLayoutEffect as fn, useEffect as Te, useMemo as vn, useState as pe, useCallback as Et, render as fe, createRef as Jt } from "preact/compat";
24
- import { registerCanIUseContext as yn, invokeNative as yt, offNative as gn, onNative as wn } from "@jolibox/native-bridge";
25
- var mi = Object.defineProperty, An = Object.defineProperties, bn = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, pn = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, Xt = (t, e, i) => e in t ? mi(t, e, {
22
+ import { options as Te, Component as hn, isValidElement as fn } from "preact";
23
+ import { useRef as mi, useLayoutEffect as vn, useEffect as Ce, useMemo as yn, useState as _e, useCallback as kt, render as ye, createRef as Jt } from "preact/compat";
24
+ import { registerCanIUseContext as gn, invokeNative as gt, offNative as wn, onNative as An } from "@jolibox/native-bridge";
25
+ var Si = Object.defineProperty, bn = Object.defineProperties, pn = Object.getOwnPropertyDescriptors, Yt = Object.getOwnPropertySymbols, _n = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable, Xt = (t, e, i) => e in t ? Si(t, e, {
26
26
  enumerable: !0,
27
27
  configurable: !0,
28
28
  writable: !0,
29
29
  value: i
30
- }) : t[e] = i, mn = (t, e) => {
30
+ }) : t[e] = i, Sn = (t, e) => {
31
31
  for (var i in e || (e = {}))
32
- pn.call(e, i) && Xt(t, i, e[i]);
33
- if (Ht)
34
- for (var i of Ht(e))
35
- _n.call(e, i) && Xt(t, i, e[i]);
32
+ _n.call(e, i) && Xt(t, i, e[i]);
33
+ if (Yt)
34
+ for (var i of Yt(e))
35
+ mn.call(e, i) && Xt(t, i, e[i]);
36
36
  return t;
37
- }, Sn = (t, e) => An(t, bn(e)), En = (t, e) => {
37
+ }, En = (t, e) => bn(t, pn(e)), kn = (t, e) => {
38
38
  for (var i in e)
39
- mi(t, i, {
39
+ Si(t, i, {
40
40
  get: e[i],
41
41
  enumerable: !0
42
42
  });
43
- }, Si = (t, e, i, n) => {
43
+ }, Ei = (t, e, i, n) => {
44
44
  for (var r = e, o = t.length - 1, s; o >= 0; o--)
45
45
  (s = t[o]) && (r = s(r) || r);
46
46
  return r;
47
- }, kn = (t, e, i) => new Promise((n, r) => {
47
+ }, In = (t, e, i) => new Promise((n, r) => {
48
48
  var o = (d) => {
49
49
  try {
50
50
  a(i.next(d));
@@ -89,26 +89,26 @@ if (typeof window != "undefined" && !window.AbortController) {
89
89
  n.call(this, i);
90
90
  }, window.AbortController = t, window.AbortSignal = e;
91
91
  }
92
- function In(t) {
92
+ function xn(t) {
93
93
  return new Promise((e) => {
94
94
  setTimeout(() => {
95
95
  e();
96
96
  }, t);
97
97
  });
98
98
  }
99
- function xn(t) {
100
- return typeof t == "string";
101
- }
102
99
  function Rn(t) {
103
- return typeof t == "undefined";
100
+ return typeof t == "string";
104
101
  }
105
102
  function Tn(t) {
106
- return Rn(t) || t === null;
103
+ return typeof t == "undefined";
107
104
  }
108
105
  function Cn(t) {
106
+ return Tn(t) || t === null;
107
+ }
108
+ function On(t) {
109
109
  return typeof t == "function";
110
110
  }
111
- function Ei(t) {
111
+ function ki(t) {
112
112
  let e = t, i = null, n = function() {
113
113
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
114
114
  o[s] = arguments[s];
@@ -116,29 +116,29 @@ function Ei(t) {
116
116
  };
117
117
  return n.prototype = e.prototype, n;
118
118
  }
119
- var On = ((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))(On || {});
120
- function Ne(t) {
119
+ var Dn = ((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))(Dn || {});
120
+ function Le(t) {
121
121
  return function() {
122
122
  var e, i;
123
123
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
124
124
  };
125
125
  }
126
- var Dn = {
127
- log: Ne("log"),
128
- warn: Ne("warn"),
129
- info: Ne("info"),
130
- error: Ne("error"),
131
- debug: Ne("debug")
126
+ var Pn = {
127
+ log: Le("log"),
128
+ warn: Le("warn"),
129
+ info: Le("info"),
130
+ error: Le("error"),
131
+ debug: Le("debug")
132
132
  };
133
133
  Object.assign(globalThis, {
134
- logger: Dn
134
+ logger: Pn
135
135
  });
136
- var Yt = Symbol.for("Jolibox.canIUseMap"), Pn = {};
137
- globalThis[Yt] || (globalThis[Yt] = Pn);
138
- var Qt = Symbol.for("Jolibox.canIUseMap.native"), Nn = {};
136
+ var Qt = Symbol.for("Jolibox.canIUseMap"), Nn = {};
139
137
  globalThis[Qt] || (globalThis[Qt] = Nn);
140
- var ki = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(ki || {}), Ii = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Ii || {}), xi = ((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))(xi || {}), Zt = ["name", "params"], Ln = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Bn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
141
- function Ye(t, e) {
138
+ var Zt = Symbol.for("Jolibox.canIUseMap.native"), Ln = {};
139
+ globalThis[Zt] || (globalThis[Zt] = Ln);
140
+ var Ii = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Ii || {}), xi = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(xi || {}), Ri = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(Ri || {}), ei = ["name", "params"], Bn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Mn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
141
+ function Qe(t, e) {
142
142
  return e.map((i) => {
143
143
  if (i === "params" && t[i]) {
144
144
  let n = t[i];
@@ -147,18 +147,18 @@ function Ye(t, e) {
147
147
  return t[i];
148
148
  });
149
149
  }
150
- function Mn(t) {
151
- let e = t.location ? Ye(t.location, Zt) : null, i = t.target ? Ye(t.target, Zt) : null;
152
- return Ye(Sn(mn({}, t), {
150
+ function $n(t) {
151
+ let e = t.location ? Qe(t.location, ei) : null, i = t.target ? Qe(t.target, ei) : null;
152
+ return Qe(En(Sn({}, t), {
153
153
  location: e,
154
154
  target: i
155
- }), Ln);
155
+ }), Bn);
156
156
  }
157
- function $n(t) {
158
- let e = t.events.map((n) => Mn(n)), i = Ye(t.device, Bn);
157
+ function Fn(t) {
158
+ let e = t.events.map((n) => $n(n)), i = Qe(t.device, Mn);
159
159
  return [t.protocolVersion, e, i, t.project];
160
160
  }
161
- function Fn() {
161
+ function Un() {
162
162
  if (typeof window == "undefined")
163
163
  return {
164
164
  getItem: () => null,
@@ -191,16 +191,16 @@ function Fn() {
191
191
  return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
192
192
  }
193
193
  }
194
- Fn();
195
- var ke = typeof window == "undefined", ot = () => !ke && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
196
- !ke && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !ke && navigator.userAgent.includes("Android"), !ke && navigator.userAgent.includes("Mac"), !ke && navigator.userAgent.includes("FB_IAB"), !ke && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
197
- var kt = class It {
194
+ Un();
195
+ var Ie = typeof window == "undefined", st = () => !Ie && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
196
+ !Ie && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !Ie && navigator.userAgent.includes("Android"), !Ie && navigator.userAgent.includes("Mac"), !Ie && navigator.userAgent.includes("FB_IAB"), !Ie && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
197
+ var It = class xt {
198
198
  constructor(e) {
199
- this.element = e, this.next = It.Undefined, this.prev = It.Undefined;
199
+ this.element = e, this.next = xt.Undefined, this.prev = xt.Undefined;
200
200
  }
201
201
  };
202
- kt.Undefined = new kt(void 0);
203
- var D = kt, Un = class {
202
+ It.Undefined = new It(void 0);
203
+ var D = It, jn = class {
204
204
  constructor() {
205
205
  this._first = D.Undefined, this._last = D.Undefined, this._size = 0;
206
206
  }
@@ -266,17 +266,17 @@ var D = kt, Un = class {
266
266
  for (; t !== D.Undefined; )
267
267
  yield t.element, t = t.next;
268
268
  }
269
- }, jn = 0, Le = class {
269
+ }, Vn = 0, Be = class {
270
270
  constructor(e) {
271
- this.value = e, this.id = jn++;
271
+ this.value = e, this.id = Vn++;
272
272
  }
273
- }, Ue = class {
273
+ }, je = class {
274
274
  constructor(e) {
275
275
  this.options = e, this._size = 0;
276
276
  }
277
277
  dispose(e) {
278
278
  var i, n;
279
- this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Le && (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));
279
+ this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Be && (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));
280
280
  }
281
281
  get event() {
282
282
  return this._event != null || (this._event = (e, i) => {
@@ -286,11 +286,11 @@ var D = kt, Un = class {
286
286
  console.info("[Jolibox SDK] Emitter is _disposed");
287
287
  };
288
288
  i && (e = e.bind(i));
289
- let u = new Le(e);
290
- return this._listeners ? this._listeners instanceof Le ? this._listeners = [this._listeners, u] : this._listeners.push(u) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = u, (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++, () => {
289
+ let u = new Be(e);
290
+ return this._listeners ? this._listeners instanceof Be ? this._listeners = [this._listeners, u] : this._listeners.push(u) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = u, (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++, () => {
291
291
  var l, c, h, f;
292
292
  if (!this._disposed) {
293
- if (this._listeners instanceof Le)
293
+ if (this._listeners instanceof Be)
294
294
  this._listeners.id === u.id && (this._listeners = void 0, this._size = 0, (c = (l = this.options) == null ? void 0 : l.onDidRemoveLastListener) == null || c.call(l));
295
295
  else if (this._listeners) {
296
296
  let v = this._listeners.indexOf(u);
@@ -316,19 +316,19 @@ var D = kt, Un = class {
316
316
  }
317
317
  }
318
318
  fire(e) {
319
- this._listeners && (this._listeners instanceof Le ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
319
+ this._listeners && (this._listeners instanceof Be ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
320
320
  }
321
321
  hasListeners() {
322
322
  return this._size > 0;
323
323
  }
324
- }, Vn = class {
324
+ }, Gn = class {
325
325
  constructor() {
326
326
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
327
327
  }
328
328
  on(t, e) {
329
329
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
330
330
  var n;
331
- let r = (n = this.listeners.get(t)) != null ? n : new Ue(), o = (d) => e(...d.args), s = r.event(o);
331
+ let r = (n = this.listeners.get(t)) != null ? n : new je(), o = (d) => e(...d.args), s = r.event(o);
332
332
  this.listerHandlerMap.set(e, {
333
333
  handler: o,
334
334
  dispose: s
@@ -349,7 +349,7 @@ var D = kt, Un = class {
349
349
  let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
350
350
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
351
351
  r[o - 1] = arguments[o];
352
- i || (i = new Un(), this.cachedEventQueue.set(t, i)), i.push({
352
+ i || (i = new jn(), this.cachedEventQueue.set(t, i)), i.push({
353
353
  args: r
354
354
  }), e && e.fire({
355
355
  event: t,
@@ -363,20 +363,20 @@ var D = kt, Un = class {
363
363
  };
364
364
  this.on(t, n, !1);
365
365
  }
366
- }, xt = {};
367
- En(xt, {
366
+ }, Rt = {};
367
+ kn(Rt, {
368
368
  None: () => qn,
369
- filter: () => Kn,
370
- once: () => Ri,
371
- toPromise: () => Gn
369
+ filter: () => zn,
370
+ once: () => Ti,
371
+ toPromise: () => Kn
372
372
  });
373
373
  var qn = () => (console.log("[Jolibox SDK] None Event"), () => {
374
374
  console.log("[Jolibox SDK] None Event dispose");
375
375
  });
376
- function Gn(t) {
377
- return new Promise((e) => Ri(t)(e));
376
+ function Kn(t) {
377
+ return new Promise((e) => Ti(t)(e));
378
378
  }
379
- function Ri(t) {
379
+ function Ti(t) {
380
380
  return function(e) {
381
381
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
382
382
  return t((r) => {
@@ -385,52 +385,52 @@ function Ri(t) {
385
385
  }, null);
386
386
  };
387
387
  }
388
- function Kn(t, e) {
388
+ function zn(t, e) {
389
389
  return ((i) => {
390
390
  let n = {
391
391
  onWillAddFirstListener() {
392
392
  i(r.fire, r);
393
393
  }
394
- }, r = new Ue(n);
394
+ }, r = new je(n);
395
395
  return r.event;
396
396
  })(function(i) {
397
397
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
398
398
  return t((r) => e(r) && i.call(n, r), null);
399
399
  });
400
400
  }
401
- var gt = Symbol.for("Jolibox.hostEmitter"), zn = () => {
402
- let t = new Vn();
403
- return globalThis[gt] || (globalThis[gt] = {
401
+ var wt = Symbol.for("Jolibox.hostEmitter"), Wn = () => {
402
+ let t = new Gn();
403
+ return globalThis[wt] || (globalThis[wt] = {
404
404
  on: t.on.bind(t),
405
405
  off: t.off.bind(t),
406
406
  emit: t.emit.bind(t),
407
407
  once: t.once.bind(t)
408
- }), globalThis[gt];
408
+ }), globalThis[wt];
409
409
  };
410
- zn();
411
- function Wn(t, e) {
410
+ Wn();
411
+ function Hn(t, e) {
412
412
  let i = Math.min(t.length, e.length);
413
413
  for (let n = 0; n < i; n++)
414
414
  Jn(t[n], e[n]);
415
415
  }
416
416
  function Jn(t, e) {
417
- if (xn(e)) {
417
+ if (Rn(e)) {
418
418
  if (typeof t !== e)
419
419
  throw new Error(`argument does not match constraint: typeof ${e}`);
420
- } else if (Cn(e)) {
420
+ } else if (On(e)) {
421
421
  try {
422
422
  if (t instanceof e)
423
423
  return;
424
424
  } catch (i) {
425
425
  }
426
- if (!Tn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
426
+ if (!Cn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
427
427
  return;
428
428
  throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
429
429
  }
430
430
  }
431
- var Rt = class {
431
+ var Tt = class {
432
432
  constructor() {
433
- this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Ue(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
433
+ this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new je(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
434
434
  }
435
435
  registerCommand(t) {
436
436
  if (!t)
@@ -443,7 +443,7 @@ var Rt = class {
443
443
  t.handler = function() {
444
444
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
445
445
  o[s] = arguments[s];
446
- return Wn(o, i), n(...o);
446
+ return Hn(o, i), n(...o);
447
447
  };
448
448
  }
449
449
  let {
@@ -463,19 +463,19 @@ var Rt = class {
463
463
  return t;
464
464
  }
465
465
  };
466
- Rt = Si([Ei], Rt);
467
- var ei = class {
466
+ Tt = Ei([ki], Tt);
467
+ var ti = class {
468
468
  constructor() {
469
- this._onWillExecuteCommand = new Ue(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Ue(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new Rt(), this._starActivation = null;
469
+ this._onWillExecuteCommand = new je(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new je(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new Tt(), this._starActivation = null;
470
470
  }
471
471
  _activateStar() {
472
- return this._starActivation || (this._starActivation = In(3e4)), this._starActivation;
472
+ return this._starActivation || (this._starActivation = xn(3e4)), this._starActivation;
473
473
  }
474
474
  executeCommand(e) {
475
475
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
476
476
  n[r - 1] = arguments[r];
477
- return kn(this, null, function* () {
478
- return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), xt.toPromise(xt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
477
+ return In(this, null, function* () {
478
+ return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Rt.toPromise(Rt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
479
479
  });
480
480
  }
481
481
  executeCommandThowErr(e) {
@@ -521,11 +521,11 @@ var ei = class {
521
521
  }
522
522
  }
523
523
  };
524
- ei = Si([Ei], ei);
525
- function J(t, e, i) {
526
- return (e = Hn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
524
+ ti = Ei([ki], ti);
525
+ function H(t, e, i) {
526
+ return (e = Yn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
527
527
  }
528
- function Hn(t) {
528
+ function Yn(t) {
529
529
  var e = Xn(t, "string");
530
530
  return typeof e == "symbol" ? e : e + "";
531
531
  }
@@ -541,7 +541,7 @@ function Xn(t, e) {
541
541
  }
542
542
  return (e === "string" ? String : Number)(t);
543
543
  }
544
- const me = (t) => t ? function() {
544
+ const Se = (t) => t ? function() {
545
545
  try {
546
546
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
547
547
  i[n] = arguments[n];
@@ -552,9 +552,9 @@ const me = (t) => t ? function() {
552
552
  } : () => {
553
553
  console.log("wrapUserFunction: fn is undefined");
554
554
  };
555
- class Yn {
555
+ class Qn {
556
556
  constructor(e) {
557
- J(this, "context", void 0), J(this, "continueCallback", void 0), J(this, "adIsShowingCallback", void 0), J(this, "isBeforeAdCalled", !1), J(this, "isBeforeRewardCalled", !1), J(this, "isAdDismissedCalled", !1), J(this, "isAdViewedCalled", !1), J(this, "isAfterAdCalled", !1), J(this, "currentProvider", void 0), J(this, "currentClientParams", void 0), J(this, "adsHasResponse", !1), J(this, "videoChecker", window.document.createElement("video")), J(this, "contextInfo", void 0), J(this, "wrapShowAdFn", (i) => () => {
557
+ H(this, "context", void 0), H(this, "continueCallback", void 0), H(this, "adIsShowingCallback", void 0), H(this, "isBeforeAdCalled", !1), H(this, "isBeforeRewardCalled", !1), H(this, "isAdDismissedCalled", !1), H(this, "isAdViewedCalled", !1), H(this, "isAfterAdCalled", !1), H(this, "currentProvider", void 0), H(this, "currentClientParams", void 0), H(this, "adsHasResponse", !1), H(this, "videoChecker", window.document.createElement("video")), H(this, "contextInfo", void 0), H(this, "wrapShowAdFn", (i) => () => {
558
558
  var o, s, a;
559
559
  this.adsHasResponse = !0;
560
560
  let n = !1;
@@ -562,15 +562,15 @@ class Yn {
562
562
  n = !1;
563
563
  }), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
564
564
  userEvent: n
565
- }, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", vt({
565
+ }, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", yt({
566
566
  userEvent: n
567
- }, this.paramsToTrack)), ot() && this.context.track("mmp_ad_impression", {
567
+ }, this.paramsToTrack)), st() && this.context.track("mmp_ad_impression", {
568
568
  ad_network: (s = (o = this.currentProvider) == null ? void 0 : o.name) != null ? s : "",
569
569
  ad_format: "rewarded",
570
570
  module: "game",
571
571
  game_id: this.contextInfo.objectId
572
572
  }), (a = this.adIsShowingCallback) == null || a.call(this, !0);
573
- const r = me(i);
573
+ const r = Se(i);
574
574
  r == null || r();
575
575
  }), this.context = e, this.contextInfo = e.getContextInfo();
576
576
  }
@@ -595,8 +595,8 @@ class Yn {
595
595
  var i, n, r, o;
596
596
  if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD", this.paramsToTrack), !this.isBeforeAdCalled) {
597
597
  this.isBeforeAdCalled = !0;
598
- const s = me(e);
599
- s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), ot() && this.context.track("mmp_ad_impression", {
598
+ const s = Se(e);
599
+ s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), st() && this.context.track("mmp_ad_impression", {
600
600
  ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
601
601
  ad_format: "interstitial",
602
602
  module: "game",
@@ -614,7 +614,7 @@ class Yn {
614
614
  return () => {
615
615
  if (this.adsHasResponse = !0, !this.isAdDismissedCalled) {
616
616
  this.isAdDismissedCalled = !0;
617
- const i = me(e);
617
+ const i = Se(e);
618
618
  i == null || i();
619
619
  }
620
620
  };
@@ -623,7 +623,7 @@ class Yn {
623
623
  return () => {
624
624
  if (this.adsHasResponse = !0, !this.isAdViewedCalled) {
625
625
  this.isAdViewedCalled = !0;
626
- const i = me(e);
626
+ const i = Se(e);
627
627
  i == null || i();
628
628
  }
629
629
  };
@@ -632,7 +632,7 @@ class Yn {
632
632
  return () => {
633
633
  if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD", this.paramsToTrack), !this.isAfterAdCalled) {
634
634
  this.isAfterAdCalled = !0;
635
- const i = me(e);
635
+ const i = Se(e);
636
636
  i == null || i();
637
637
  }
638
638
  };
@@ -657,7 +657,7 @@ class Yn {
657
657
  case "ignored":
658
658
  case "dismissed":
659
659
  case "error": {
660
- const h = me(e);
660
+ const h = Se(e);
661
661
  h == null || h(i), (u = this.adIsShowingCallback) == null || u.call(this, !1), (l = this.continueCallback) == null || l.call(this, [!1, i]);
662
662
  break;
663
663
  }
@@ -728,14 +728,14 @@ class Yn {
728
728
  });
729
729
  }
730
730
  }
731
- function We(t, e, i) {
732
- return (e = Qn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
731
+ function He(t, e, i) {
732
+ return (e = Zn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
733
733
  }
734
- function Qn(t) {
735
- var e = Zn(t, "string");
734
+ function Zn(t) {
735
+ var e = er(t, "string");
736
736
  return typeof e == "symbol" ? e : e + "";
737
737
  }
738
- function Zn(t, e) {
738
+ function er(t, e) {
739
739
  if (typeof t != "object" || !t)
740
740
  return t;
741
741
  var i = t[Symbol.toPrimitive];
@@ -747,13 +747,13 @@ function Zn(t, e) {
747
747
  }
748
748
  return (e === "string" ? String : Number)(t);
749
749
  }
750
- class er {
750
+ class tr {
751
751
  constructor(e) {
752
- We(this, "context", void 0), We(this, "adBreakIsShowing", !1), We(this, "reportPageJumpOut", () => {
752
+ He(this, "context", void 0), He(this, "adBreakIsShowing", !1), He(this, "reportPageJumpOut", () => {
753
753
  this.context.track("AdBreakJumpOut", {
754
754
  context: "AdsActionDetection"
755
755
  });
756
- }), We(this, "reportPageHide", () => {
756
+ }), He(this, "reportPageHide", () => {
757
757
  this.context.track("AdBreakHide", {
758
758
  context: "AdsActionDetection"
759
759
  });
@@ -765,13 +765,13 @@ class er {
765
765
  }
766
766
  }
767
767
  function Je(t, e, i) {
768
- return (e = tr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
768
+ return (e = ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
769
769
  }
770
- function tr(t) {
771
- var e = ir(t, "string");
770
+ function ir(t) {
771
+ var e = nr(t, "string");
772
772
  return typeof e == "symbol" ? e : e + "";
773
773
  }
774
- function ir(t, e) {
774
+ function nr(t, e) {
775
775
  if (typeof t != "object" || !t)
776
776
  return t;
777
777
  var i = t[Symbol.toPrimitive];
@@ -783,7 +783,7 @@ function ir(t, e) {
783
783
  }
784
784
  return (e === "string" ? String : Number)(t);
785
785
  }
786
- class nr {
786
+ class rr {
787
787
  constructor(e) {
788
788
  Je(this, "configs", null), Je(this, "firstRun", !0), Je(this, "context", void 0), Je(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
789
789
  }
@@ -809,14 +809,14 @@ class nr {
809
809
  return this.firstRun = !1, e;
810
810
  }
811
811
  }
812
- function ae(t, e, i) {
813
- return (e = rr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
812
+ function de(t, e, i) {
813
+ return (e = or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
814
814
  }
815
- function rr(t) {
816
- var e = or(t, "string");
815
+ function or(t) {
816
+ var e = sr(t, "string");
817
817
  return typeof e == "symbol" ? e : e + "";
818
818
  }
819
- function or(t, e) {
819
+ function sr(t, e) {
820
820
  if (typeof t != "object" || !t)
821
821
  return t;
822
822
  var i = t[Symbol.toPrimitive];
@@ -828,28 +828,28 @@ function or(t, e) {
828
828
  }
829
829
  return (e === "string" ? String : Number)(t);
830
830
  }
831
- class sr {
831
+ class ar {
832
832
  /**
833
833
  * Internal constructor, should not be called directly
834
834
  */
835
835
  constructor(e, i) {
836
- ae(this, "name", "ADSENSE"), ae(this, "context", void 0), ae(this, "contextInfo", void 0), ae(this, "configured", !1), ae(this, "initParams", void 0), ae(this, "push", function() {
836
+ de(this, "name", "ADSENSE"), de(this, "context", void 0), de(this, "contextInfo", void 0), de(this, "configured", !1), de(this, "initParams", void 0), de(this, "push", function() {
837
837
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
838
838
  window.adsbygoogle.push(n);
839
- }), ae(this, "adConfig", (n) => {
839
+ }), de(this, "adConfig", (n) => {
840
840
  const s = n, {
841
841
  onReady: r
842
- } = s, o = Wt(s, [
842
+ } = s, o = Ht(s, [
843
843
  "onReady"
844
844
  ]);
845
845
  this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
846
- }), ae(this, "adBreak", (n) => {
846
+ }), de(this, "adBreak", (n) => {
847
847
  if (!this.contextInfo.objectId) {
848
848
  console.warn("Game ID is not set, skip calling adBreak");
849
849
  return;
850
850
  }
851
851
  this.push(n);
852
- }), ae(this, "adUnit", async (n) => {
852
+ }), de(this, "adUnit", async (n) => {
853
853
  var v, y, w, g;
854
854
  if (this.context.track("CallAdUnit", {
855
855
  adFormat: (y = (v = n.adFormat) == null ? void 0 : v.toString()) != null ? y : null,
@@ -906,18 +906,18 @@ class sr {
906
906
  }
907
907
  }
908
908
  }
909
- function ar(t) {
909
+ function dr(t) {
910
910
  if (t.sheet)
911
911
  return t.sheet;
912
912
  for (var e = 0; e < document.styleSheets.length; e++)
913
913
  if (document.styleSheets[e].ownerNode === t)
914
914
  return document.styleSheets[e];
915
915
  }
916
- function dr(t) {
916
+ function lr(t) {
917
917
  var e = document.createElement("style");
918
918
  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;
919
919
  }
920
- var lr = /* @__PURE__ */ function() {
920
+ var ur = /* @__PURE__ */ function() {
921
921
  function t(i) {
922
922
  var n = this;
923
923
  this._insertTag = function(r) {
@@ -929,10 +929,10 @@ var lr = /* @__PURE__ */ function() {
929
929
  return e.hydrate = function(n) {
930
930
  n.forEach(this._insertTag);
931
931
  }, e.insert = function(n) {
932
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(dr(this));
932
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(lr(this));
933
933
  var r = this.tags[this.tags.length - 1];
934
934
  if (this.isSpeedy) {
935
- var o = ar(r);
935
+ var o = dr(r);
936
936
  try {
937
937
  o.insertRule(n, o.cssRules.length);
938
938
  } catch (s) {
@@ -946,66 +946,66 @@ var lr = /* @__PURE__ */ function() {
946
946
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
947
947
  }), this.tags = [], this.ctr = 0;
948
948
  }, t;
949
- }(), V = "-ms-", st = "-moz-", x = "-webkit-", Ti = "comm", Bt = "rule", Mt = "decl", ur = "@import", Ci = "@keyframes", cr = "@layer", hr = Math.abs, ut = String.fromCharCode, fr = Object.assign;
950
- function vr(t, e) {
949
+ }(), V = "-ms-", at = "-moz-", x = "-webkit-", Ci = "comm", Mt = "rule", $t = "decl", cr = "@import", Oi = "@keyframes", hr = "@layer", fr = Math.abs, ct = String.fromCharCode, vr = Object.assign;
950
+ function yr(t, e) {
951
951
  return $(t, 0) ^ 45 ? (((e << 2 ^ $(t, 0)) << 2 ^ $(t, 1)) << 2 ^ $(t, 2)) << 2 ^ $(t, 3) : 0;
952
952
  }
953
- function Oi(t) {
953
+ function Di(t) {
954
954
  return t.trim();
955
955
  }
956
- function yr(t, e) {
956
+ function gr(t, e) {
957
957
  return (t = e.exec(t)) ? t[0] : t;
958
958
  }
959
959
  function R(t, e, i) {
960
960
  return t.replace(e, i);
961
961
  }
962
- function Tt(t, e) {
962
+ function Ct(t, e) {
963
963
  return t.indexOf(e);
964
964
  }
965
965
  function $(t, e) {
966
966
  return t.charCodeAt(e) | 0;
967
967
  }
968
- function je(t, e, i) {
968
+ function Ve(t, e, i) {
969
969
  return t.slice(e, i);
970
970
  }
971
- function oe(t) {
971
+ function se(t) {
972
972
  return t.length;
973
973
  }
974
- function $t(t) {
974
+ function Ft(t) {
975
975
  return t.length;
976
976
  }
977
- function He(t, e) {
977
+ function Ye(t, e) {
978
978
  return e.push(t), t;
979
979
  }
980
- function gr(t, e) {
980
+ function wr(t, e) {
981
981
  return t.map(e).join("");
982
982
  }
983
- var ct = 1, Ce = 1, Di = 0, X = 0, N = 0, Oe = "";
984
- function ht(t, e, i, n, r, o, s) {
985
- return { value: t, root: e, parent: i, type: n, props: r, children: o, line: ct, column: Ce, length: s, return: "" };
983
+ var ht = 1, Oe = 1, Pi = 0, Y = 0, N = 0, De = "";
984
+ function ft(t, e, i, n, r, o, s) {
985
+ return { value: t, root: e, parent: i, type: n, props: r, children: o, line: ht, column: Oe, length: s, return: "" };
986
986
  }
987
- function Be(t, e) {
988
- return fr(ht("", null, null, "", null, null, 0), t, { length: -t.length }, e);
987
+ function Me(t, e) {
988
+ return vr(ft("", null, null, "", null, null, 0), t, { length: -t.length }, e);
989
989
  }
990
- function wr() {
990
+ function Ar() {
991
991
  return N;
992
992
  }
993
- function Ar() {
994
- return N = X > 0 ? $(Oe, --X) : 0, Ce--, N === 10 && (Ce = 1, ct--), N;
993
+ function br() {
994
+ return N = Y > 0 ? $(De, --Y) : 0, Oe--, N === 10 && (Oe = 1, ht--), N;
995
995
  }
996
996
  function Z() {
997
- return N = X < Di ? $(Oe, X++) : 0, Ce++, N === 10 && (Ce = 1, ct++), N;
997
+ return N = Y < Pi ? $(De, Y++) : 0, Oe++, N === 10 && (Oe = 1, ht++), N;
998
998
  }
999
- function se() {
1000
- return $(Oe, X);
999
+ function ae() {
1000
+ return $(De, Y);
1001
1001
  }
1002
- function Qe() {
1003
- return X;
1002
+ function Ze() {
1003
+ return Y;
1004
1004
  }
1005
1005
  function qe(t, e) {
1006
- return je(Oe, t, e);
1006
+ return Ve(De, t, e);
1007
1007
  }
1008
- function Ve(t) {
1008
+ function Ge(t) {
1009
1009
  switch (t) {
1010
1010
  case 0:
1011
1011
  case 9:
@@ -1037,91 +1037,91 @@ function Ve(t) {
1037
1037
  }
1038
1038
  return 0;
1039
1039
  }
1040
- function Pi(t) {
1041
- return ct = Ce = 1, Di = oe(Oe = t), X = 0, [];
1042
- }
1043
1040
  function Ni(t) {
1044
- return Oe = "", t;
1041
+ return ht = Oe = 1, Pi = se(De = t), Y = 0, [];
1042
+ }
1043
+ function Li(t) {
1044
+ return De = "", t;
1045
1045
  }
1046
- function Ze(t) {
1047
- return Oi(qe(X - 1, Ct(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1046
+ function et(t) {
1047
+ return Di(qe(Y - 1, Ot(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1048
1048
  }
1049
- function br(t) {
1050
- for (; (N = se()) && N < 33; )
1049
+ function pr(t) {
1050
+ for (; (N = ae()) && N < 33; )
1051
1051
  Z();
1052
- return Ve(t) > 2 || Ve(N) > 3 ? "" : " ";
1052
+ return Ge(t) > 2 || Ge(N) > 3 ? "" : " ";
1053
1053
  }
1054
- function pr(t, e) {
1054
+ function _r(t, e) {
1055
1055
  for (; --e && Z() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
1056
1056
  ;
1057
- return qe(t, Qe() + (e < 6 && se() == 32 && Z() == 32));
1057
+ return qe(t, Ze() + (e < 6 && ae() == 32 && Z() == 32));
1058
1058
  }
1059
- function Ct(t) {
1059
+ function Ot(t) {
1060
1060
  for (; Z(); )
1061
1061
  switch (N) {
1062
1062
  case t:
1063
- return X;
1063
+ return Y;
1064
1064
  case 34:
1065
1065
  case 39:
1066
- t !== 34 && t !== 39 && Ct(N);
1066
+ t !== 34 && t !== 39 && Ot(N);
1067
1067
  break;
1068
1068
  case 40:
1069
- t === 41 && Ct(t);
1069
+ t === 41 && Ot(t);
1070
1070
  break;
1071
1071
  case 92:
1072
1072
  Z();
1073
1073
  break;
1074
1074
  }
1075
- return X;
1075
+ return Y;
1076
1076
  }
1077
- function _r(t, e) {
1077
+ function mr(t, e) {
1078
1078
  for (; Z() && t + N !== 57; )
1079
- if (t + N === 84 && se() === 47)
1079
+ if (t + N === 84 && ae() === 47)
1080
1080
  break;
1081
- return "/*" + qe(e, X - 1) + "*" + ut(t === 47 ? t : Z());
1081
+ return "/*" + qe(e, Y - 1) + "*" + ct(t === 47 ? t : Z());
1082
1082
  }
1083
- function mr(t) {
1084
- for (; !Ve(se()); )
1083
+ function Sr(t) {
1084
+ for (; !Ge(ae()); )
1085
1085
  Z();
1086
- return qe(t, X);
1086
+ return qe(t, Y);
1087
1087
  }
1088
- function Sr(t) {
1089
- return Ni(et("", null, null, null, [""], t = Pi(t), 0, [0], t));
1088
+ function Er(t) {
1089
+ return Li(tt("", null, null, null, [""], t = Ni(t), 0, [0], t));
1090
1090
  }
1091
- function et(t, e, i, n, r, o, s, a, d) {
1091
+ function tt(t, e, i, n, r, o, s, a, d) {
1092
1092
  for (var u = 0, l = 0, c = s, h = 0, f = 0, v = 0, y = 1, w = 1, g = 1, A = 0, S = "", p = r, _ = o, E = n, b = S; w; )
1093
1093
  switch (v = A, A = Z()) {
1094
1094
  case 40:
1095
1095
  if (v != 108 && $(b, c - 1) == 58) {
1096
- Tt(b += R(Ze(A), "&", "&\f"), "&\f") != -1 && (g = -1);
1096
+ Ct(b += R(et(A), "&", "&\f"), "&\f") != -1 && (g = -1);
1097
1097
  break;
1098
1098
  }
1099
1099
  case 34:
1100
1100
  case 39:
1101
1101
  case 91:
1102
- b += Ze(A);
1102
+ b += et(A);
1103
1103
  break;
1104
1104
  case 9:
1105
1105
  case 10:
1106
1106
  case 13:
1107
1107
  case 32:
1108
- b += br(v);
1108
+ b += pr(v);
1109
1109
  break;
1110
1110
  case 92:
1111
- b += pr(Qe() - 1, 7);
1111
+ b += _r(Ze() - 1, 7);
1112
1112
  continue;
1113
1113
  case 47:
1114
- switch (se()) {
1114
+ switch (ae()) {
1115
1115
  case 42:
1116
1116
  case 47:
1117
- He(Er(_r(Z(), Qe()), e, i), d);
1117
+ Ye(kr(mr(Z(), Ze()), e, i), d);
1118
1118
  break;
1119
1119
  default:
1120
1120
  b += "/";
1121
1121
  }
1122
1122
  break;
1123
1123
  case 123 * y:
1124
- a[u++] = oe(b) * g;
1124
+ a[u++] = se(b) * g;
1125
1125
  case 125 * y:
1126
1126
  case 59:
1127
1127
  case 0:
@@ -1130,147 +1130,147 @@ function et(t, e, i, n, r, o, s, a, d) {
1130
1130
  case 125:
1131
1131
  w = 0;
1132
1132
  case 59 + l:
1133
- g == -1 && (b = R(b, /\f/g, "")), f > 0 && oe(b) - c && He(f > 32 ? ii(b + ";", n, i, c - 1) : ii(R(b, " ", "") + ";", n, i, c - 2), d);
1133
+ g == -1 && (b = R(b, /\f/g, "")), f > 0 && se(b) - c && Ye(f > 32 ? ni(b + ";", n, i, c - 1) : ni(R(b, " ", "") + ";", n, i, c - 2), d);
1134
1134
  break;
1135
1135
  case 59:
1136
1136
  b += ";";
1137
1137
  default:
1138
- if (He(E = ti(b, e, i, u, l, r, a, S, p = [], _ = [], c), o), A === 123)
1138
+ if (Ye(E = ii(b, e, i, u, l, r, a, S, p = [], _ = [], c), o), A === 123)
1139
1139
  if (l === 0)
1140
- et(b, e, E, E, p, o, c, a, _);
1140
+ tt(b, e, E, E, p, o, c, a, _);
1141
1141
  else
1142
1142
  switch (h === 99 && $(b, 3) === 110 ? 100 : h) {
1143
1143
  case 100:
1144
1144
  case 108:
1145
1145
  case 109:
1146
1146
  case 115:
1147
- et(t, E, E, n && He(ti(t, E, E, 0, 0, r, a, S, r, p = [], c), _), r, _, c, a, n ? p : _);
1147
+ tt(t, E, E, n && Ye(ii(t, E, E, 0, 0, r, a, S, r, p = [], c), _), r, _, c, a, n ? p : _);
1148
1148
  break;
1149
1149
  default:
1150
- et(b, E, E, E, [""], _, 0, a, _);
1150
+ tt(b, E, E, E, [""], _, 0, a, _);
1151
1151
  }
1152
1152
  }
1153
1153
  u = l = f = 0, y = g = 1, S = b = "", c = s;
1154
1154
  break;
1155
1155
  case 58:
1156
- c = 1 + oe(b), f = v;
1156
+ c = 1 + se(b), f = v;
1157
1157
  default:
1158
1158
  if (y < 1) {
1159
1159
  if (A == 123)
1160
1160
  --y;
1161
- else if (A == 125 && y++ == 0 && Ar() == 125)
1161
+ else if (A == 125 && y++ == 0 && br() == 125)
1162
1162
  continue;
1163
1163
  }
1164
- switch (b += ut(A), A * y) {
1164
+ switch (b += ct(A), A * y) {
1165
1165
  case 38:
1166
1166
  g = l > 0 ? 1 : (b += "\f", -1);
1167
1167
  break;
1168
1168
  case 44:
1169
- a[u++] = (oe(b) - 1) * g, g = 1;
1169
+ a[u++] = (se(b) - 1) * g, g = 1;
1170
1170
  break;
1171
1171
  case 64:
1172
- se() === 45 && (b += Ze(Z())), h = se(), l = c = oe(S = b += mr(Qe())), A++;
1172
+ ae() === 45 && (b += et(Z())), h = ae(), l = c = se(S = b += Sr(Ze())), A++;
1173
1173
  break;
1174
1174
  case 45:
1175
- v === 45 && oe(b) == 2 && (y = 0);
1175
+ v === 45 && se(b) == 2 && (y = 0);
1176
1176
  }
1177
1177
  }
1178
1178
  return o;
1179
1179
  }
1180
- function ti(t, e, i, n, r, o, s, a, d, u, l) {
1181
- for (var c = r - 1, h = r === 0 ? o : [""], f = $t(h), v = 0, y = 0, w = 0; v < n; ++v)
1182
- for (var g = 0, A = je(t, c + 1, c = hr(y = s[v])), S = t; g < f; ++g)
1183
- (S = Oi(y > 0 ? h[g] + " " + A : R(A, /&\f/g, h[g]))) && (d[w++] = S);
1184
- return ht(t, e, i, r === 0 ? Bt : a, d, u, l);
1180
+ function ii(t, e, i, n, r, o, s, a, d, u, l) {
1181
+ for (var c = r - 1, h = r === 0 ? o : [""], f = Ft(h), v = 0, y = 0, w = 0; v < n; ++v)
1182
+ for (var g = 0, A = Ve(t, c + 1, c = fr(y = s[v])), S = t; g < f; ++g)
1183
+ (S = Di(y > 0 ? h[g] + " " + A : R(A, /&\f/g, h[g]))) && (d[w++] = S);
1184
+ return ft(t, e, i, r === 0 ? Mt : a, d, u, l);
1185
1185
  }
1186
- function Er(t, e, i) {
1187
- return ht(t, e, i, Ti, ut(wr()), je(t, 2, -2), 0);
1186
+ function kr(t, e, i) {
1187
+ return ft(t, e, i, Ci, ct(Ar()), Ve(t, 2, -2), 0);
1188
1188
  }
1189
- function ii(t, e, i, n) {
1190
- return ht(t, e, i, Mt, je(t, 0, n), je(t, n + 1, -1), n);
1189
+ function ni(t, e, i, n) {
1190
+ return ft(t, e, i, $t, Ve(t, 0, n), Ve(t, n + 1, -1), n);
1191
1191
  }
1192
- function xe(t, e) {
1193
- for (var i = "", n = $t(t), r = 0; r < n; r++)
1192
+ function Re(t, e) {
1193
+ for (var i = "", n = Ft(t), r = 0; r < n; r++)
1194
1194
  i += e(t[r], r, t, e) || "";
1195
1195
  return i;
1196
1196
  }
1197
- function kr(t, e, i, n) {
1197
+ function Ir(t, e, i, n) {
1198
1198
  switch (t.type) {
1199
- case cr:
1199
+ case hr:
1200
1200
  if (t.children.length)
1201
1201
  break;
1202
- case ur:
1203
- case Mt:
1202
+ case cr:
1203
+ case $t:
1204
1204
  return t.return = t.return || t.value;
1205
- case Ti:
1206
- return "";
1207
1205
  case Ci:
1208
- return t.return = t.value + "{" + xe(t.children, n) + "}";
1209
- case Bt:
1206
+ return "";
1207
+ case Oi:
1208
+ return t.return = t.value + "{" + Re(t.children, n) + "}";
1209
+ case Mt:
1210
1210
  t.value = t.props.join(",");
1211
1211
  }
1212
- return oe(i = xe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1212
+ return se(i = Re(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1213
1213
  }
1214
- function Ir(t) {
1215
- var e = $t(t);
1214
+ function xr(t) {
1215
+ var e = Ft(t);
1216
1216
  return function(i, n, r, o) {
1217
1217
  for (var s = "", a = 0; a < e; a++)
1218
1218
  s += t[a](i, n, r, o) || "";
1219
1219
  return s;
1220
1220
  };
1221
1221
  }
1222
- function xr(t) {
1222
+ function Rr(t) {
1223
1223
  return function(e) {
1224
1224
  e.root || (e = e.return) && t(e);
1225
1225
  };
1226
1226
  }
1227
- function Rr(t) {
1227
+ function Tr(t) {
1228
1228
  var e = /* @__PURE__ */ Object.create(null);
1229
1229
  return function(i) {
1230
1230
  return e[i] === void 0 && (e[i] = t(i)), e[i];
1231
1231
  };
1232
1232
  }
1233
- var Tr = function(e, i, n) {
1234
- for (var r = 0, o = 0; r = o, o = se(), r === 38 && o === 12 && (i[n] = 1), !Ve(o); )
1233
+ var Cr = function(e, i, n) {
1234
+ for (var r = 0, o = 0; r = o, o = ae(), r === 38 && o === 12 && (i[n] = 1), !Ge(o); )
1235
1235
  Z();
1236
- return qe(e, X);
1237
- }, Cr = function(e, i) {
1236
+ return qe(e, Y);
1237
+ }, Or = function(e, i) {
1238
1238
  var n = -1, r = 44;
1239
1239
  do
1240
- switch (Ve(r)) {
1240
+ switch (Ge(r)) {
1241
1241
  case 0:
1242
- r === 38 && se() === 12 && (i[n] = 1), e[n] += Tr(X - 1, i, n);
1242
+ r === 38 && ae() === 12 && (i[n] = 1), e[n] += Cr(Y - 1, i, n);
1243
1243
  break;
1244
1244
  case 2:
1245
- e[n] += Ze(r);
1245
+ e[n] += et(r);
1246
1246
  break;
1247
1247
  case 4:
1248
1248
  if (r === 44) {
1249
- e[++n] = se() === 58 ? "&\f" : "", i[n] = e[n].length;
1249
+ e[++n] = ae() === 58 ? "&\f" : "", i[n] = e[n].length;
1250
1250
  break;
1251
1251
  }
1252
1252
  default:
1253
- e[n] += ut(r);
1253
+ e[n] += ct(r);
1254
1254
  }
1255
1255
  while (r = Z());
1256
1256
  return e;
1257
- }, Or = function(e, i) {
1258
- return Ni(Cr(Pi(e), i));
1259
- }, ni = /* @__PURE__ */ new WeakMap(), Dr = function(e) {
1257
+ }, Dr = function(e, i) {
1258
+ return Li(Or(Ni(e), i));
1259
+ }, ri = /* @__PURE__ */ new WeakMap(), Pr = function(e) {
1260
1260
  if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
1261
1261
  // negative .length indicates that this rule has been already prefixed
1262
1262
  e.length < 1)) {
1263
1263
  for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
1264
1264
  if (n = n.parent, !n)
1265
1265
  return;
1266
- if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !ni.get(n)) && !r) {
1267
- ni.set(e, !0);
1268
- for (var o = [], s = Or(i, o), a = n.props, d = 0, u = 0; d < s.length; d++)
1266
+ if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !ri.get(n)) && !r) {
1267
+ ri.set(e, !0);
1268
+ for (var o = [], s = Dr(i, o), a = n.props, d = 0, u = 0; d < s.length; d++)
1269
1269
  for (var l = 0; l < a.length; l++, u++)
1270
1270
  e.props[u] = o[d] ? s[d].replace(/&\f/g, a[l]) : a[l] + " " + s[d];
1271
1271
  }
1272
1272
  }
1273
- }, Pr = function(e) {
1273
+ }, Nr = function(e) {
1274
1274
  if (e.type === "decl") {
1275
1275
  var i = e.value;
1276
1276
  // charcode for l
@@ -1278,8 +1278,8 @@ var Tr = function(e, i, n) {
1278
1278
  i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1279
1279
  }
1280
1280
  };
1281
- function Li(t, e) {
1282
- switch (vr(t, e)) {
1281
+ function Bi(t, e) {
1282
+ switch (yr(t, e)) {
1283
1283
  case 5103:
1284
1284
  return x + "print-" + t + t;
1285
1285
  case 5737:
@@ -1313,7 +1313,7 @@ function Li(t, e) {
1313
1313
  case 4810:
1314
1314
  case 6968:
1315
1315
  case 2756:
1316
- return x + t + st + t + V + t + t;
1316
+ return x + t + at + t + V + t + t;
1317
1317
  case 6828:
1318
1318
  case 4268:
1319
1319
  return x + t + V + t + t;
@@ -1357,22 +1357,22 @@ function Li(t, e) {
1357
1357
  case 5789:
1358
1358
  case 5021:
1359
1359
  case 4765:
1360
- if (oe(t) - 1 - e > 6)
1360
+ if (se(t) - 1 - e > 6)
1361
1361
  switch ($(t, e + 1)) {
1362
1362
  case 109:
1363
1363
  if ($(t, e + 4) !== 45)
1364
1364
  break;
1365
1365
  case 102:
1366
- return R(t, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + st + ($(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1366
+ return R(t, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + at + ($(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1367
1367
  case 115:
1368
- return ~Tt(t, "stretch") ? Li(R(t, "stretch", "fill-available"), e) + t : t;
1368
+ return ~Ct(t, "stretch") ? Bi(R(t, "stretch", "fill-available"), e) + t : t;
1369
1369
  }
1370
1370
  break;
1371
1371
  case 4949:
1372
1372
  if ($(t, e + 1) !== 115)
1373
1373
  break;
1374
1374
  case 6444:
1375
- switch ($(t, oe(t) - 3 - (~Tt(t, "!important") && 10))) {
1375
+ switch ($(t, se(t) - 3 - (~Ct(t, "!important") && 10))) {
1376
1376
  case 107:
1377
1377
  return R(t, ":", ":" + x) + t;
1378
1378
  case 101:
@@ -1392,38 +1392,38 @@ function Li(t, e) {
1392
1392
  }
1393
1393
  return t;
1394
1394
  }
1395
- var Nr = function(e, i, n, r) {
1395
+ var Lr = function(e, i, n, r) {
1396
1396
  if (e.length > -1 && !e.return)
1397
1397
  switch (e.type) {
1398
- case Mt:
1399
- e.return = Li(e.value, e.length);
1398
+ case $t:
1399
+ e.return = Bi(e.value, e.length);
1400
1400
  break;
1401
- case Ci:
1402
- return xe([Be(e, {
1401
+ case Oi:
1402
+ return Re([Me(e, {
1403
1403
  value: R(e.value, "@", "@" + x)
1404
1404
  })], r);
1405
- case Bt:
1405
+ case Mt:
1406
1406
  if (e.length)
1407
- return gr(e.props, function(o) {
1408
- switch (yr(o, /(::plac\w+|:read-\w+)/)) {
1407
+ return wr(e.props, function(o) {
1408
+ switch (gr(o, /(::plac\w+|:read-\w+)/)) {
1409
1409
  case ":read-only":
1410
1410
  case ":read-write":
1411
- return xe([Be(e, {
1412
- props: [R(o, /:(read-\w+)/, ":" + st + "$1")]
1411
+ return Re([Me(e, {
1412
+ props: [R(o, /:(read-\w+)/, ":" + at + "$1")]
1413
1413
  })], r);
1414
1414
  case "::placeholder":
1415
- return xe([Be(e, {
1415
+ return Re([Me(e, {
1416
1416
  props: [R(o, /:(plac\w+)/, ":" + x + "input-$1")]
1417
- }), Be(e, {
1418
- props: [R(o, /:(plac\w+)/, ":" + st + "$1")]
1419
- }), Be(e, {
1417
+ }), Me(e, {
1418
+ props: [R(o, /:(plac\w+)/, ":" + at + "$1")]
1419
+ }), Me(e, {
1420
1420
  props: [R(o, /:(plac\w+)/, V + "input-$1")]
1421
1421
  })], r);
1422
1422
  }
1423
1423
  return "";
1424
1424
  });
1425
1425
  }
1426
- }, Lr = [Nr], Br = function(e) {
1426
+ }, Br = [Lr], Mr = function(e) {
1427
1427
  var i = e.key;
1428
1428
  if (i === "css") {
1429
1429
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
@@ -1432,7 +1432,7 @@ var Nr = function(e, i, n, r) {
1432
1432
  w.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
1433
1433
  });
1434
1434
  }
1435
- var r = e.stylisPlugins || Lr, o = {}, s, a = [];
1435
+ var r = e.stylisPlugins || Br, o = {}, s, a = [];
1436
1436
  s = e.container || document.head, Array.prototype.forEach.call(
1437
1437
  // this means we will ignore elements which don't have a space in them which
1438
1438
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -1443,12 +1443,12 @@ var Nr = function(e, i, n, r) {
1443
1443
  a.push(y);
1444
1444
  }
1445
1445
  );
1446
- var d, u = [Dr, Pr];
1446
+ var d, u = [Pr, Nr];
1447
1447
  {
1448
- var l, c = [kr, xr(function(y) {
1448
+ var l, c = [Ir, Rr(function(y) {
1449
1449
  l.insert(y);
1450
- })], h = Ir(u.concat(r, c)), f = function(w) {
1451
- return xe(Sr(w), h);
1450
+ })], h = xr(u.concat(r, c)), f = function(w) {
1451
+ return Re(Er(w), h);
1452
1452
  };
1453
1453
  d = function(w, g, A, S) {
1454
1454
  l = A, f(w ? w + "{" + g.styles + "}" : g.styles), S && (v.inserted[g.name] = !0);
@@ -1456,7 +1456,7 @@ var Nr = function(e, i, n, r) {
1456
1456
  }
1457
1457
  var v = {
1458
1458
  key: i,
1459
- sheet: new lr({
1459
+ sheet: new ur({
1460
1460
  key: i,
1461
1461
  container: s,
1462
1462
  nonce: e.nonce,
@@ -1471,7 +1471,7 @@ var Nr = function(e, i, n, r) {
1471
1471
  };
1472
1472
  return v.sheet.hydrate(a), v;
1473
1473
  };
1474
- function Mr(t) {
1474
+ function $r(t) {
1475
1475
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
1476
1476
  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): */
1477
1477
  (i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
@@ -1490,7 +1490,7 @@ function Mr(t) {
1490
1490
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
1491
1491
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1492
1492
  }
1493
- var $r = {
1493
+ var Fr = {
1494
1494
  animationIterationCount: 1,
1495
1495
  aspectRatio: 1,
1496
1496
  borderImageOutset: 1,
@@ -1539,28 +1539,28 @@ var $r = {
1539
1539
  strokeMiterlimit: 1,
1540
1540
  strokeOpacity: 1,
1541
1541
  strokeWidth: 1
1542
- }, Fr = /[A-Z]|^ms/g, Ur = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Bi = function(e) {
1542
+ }, Ur = /[A-Z]|^ms/g, jr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Mi = function(e) {
1543
1543
  return e.charCodeAt(1) === 45;
1544
- }, ri = function(e) {
1544
+ }, oi = function(e) {
1545
1545
  return e != null && typeof e != "boolean";
1546
- }, wt = /* @__PURE__ */ Rr(function(t) {
1547
- return Bi(t) ? t : t.replace(Fr, "-$&").toLowerCase();
1548
- }), oi = function(e, i) {
1546
+ }, At = /* @__PURE__ */ Tr(function(t) {
1547
+ return Mi(t) ? t : t.replace(Ur, "-$&").toLowerCase();
1548
+ }), si = function(e, i) {
1549
1549
  switch (e) {
1550
1550
  case "animation":
1551
1551
  case "animationName":
1552
1552
  if (typeof i == "string")
1553
- return i.replace(Ur, function(n, r, o) {
1554
- return ge = {
1553
+ return i.replace(jr, function(n, r, o) {
1554
+ return Ae = {
1555
1555
  name: r,
1556
1556
  styles: o,
1557
- next: ge
1557
+ next: Ae
1558
1558
  }, r;
1559
1559
  });
1560
1560
  }
1561
- return $r[e] !== 1 && !Bi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1561
+ return Fr[e] !== 1 && !Mi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1562
1562
  };
1563
- function at(t, e, i) {
1563
+ function dt(t, e, i) {
1564
1564
  if (i == null)
1565
1565
  return "";
1566
1566
  var n = i;
@@ -1572,25 +1572,25 @@ function at(t, e, i) {
1572
1572
  case "object": {
1573
1573
  var r = i;
1574
1574
  if (r.anim === 1)
1575
- return ge = {
1575
+ return Ae = {
1576
1576
  name: r.name,
1577
1577
  styles: r.styles,
1578
- next: ge
1578
+ next: Ae
1579
1579
  }, r.name;
1580
1580
  var o = i;
1581
1581
  if (o.styles !== void 0) {
1582
1582
  var s = o.next;
1583
1583
  if (s !== void 0)
1584
1584
  for (; s !== void 0; )
1585
- ge = {
1585
+ Ae = {
1586
1586
  name: s.name,
1587
1587
  styles: s.styles,
1588
- next: ge
1588
+ next: Ae
1589
1589
  }, s = s.next;
1590
1590
  var a = o.styles + ";";
1591
1591
  return a;
1592
1592
  }
1593
- return jr(t, e, i);
1593
+ return Vr(t, e, i);
1594
1594
  }
1595
1595
  }
1596
1596
  var d = i;
@@ -1599,26 +1599,26 @@ function at(t, e, i) {
1599
1599
  var u = e[d];
1600
1600
  return u !== void 0 ? u : d;
1601
1601
  }
1602
- function jr(t, e, i) {
1602
+ function Vr(t, e, i) {
1603
1603
  var n = "";
1604
1604
  if (Array.isArray(i))
1605
1605
  for (var r = 0; r < i.length; r++)
1606
- n += at(t, e, i[r]) + ";";
1606
+ n += dt(t, e, i[r]) + ";";
1607
1607
  else
1608
1608
  for (var o in i) {
1609
1609
  var s = i[o];
1610
1610
  if (typeof s != "object") {
1611
1611
  var a = s;
1612
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : ri(a) && (n += wt(o) + ":" + oi(o, a) + ";");
1612
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : oi(a) && (n += At(o) + ":" + si(o, a) + ";");
1613
1613
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1614
1614
  for (var d = 0; d < s.length; d++)
1615
- ri(s[d]) && (n += wt(o) + ":" + oi(o, s[d]) + ";");
1615
+ oi(s[d]) && (n += At(o) + ":" + si(o, s[d]) + ";");
1616
1616
  else {
1617
- var u = at(t, e, s);
1617
+ var u = dt(t, e, s);
1618
1618
  switch (o) {
1619
1619
  case "animation":
1620
1620
  case "animationName": {
1621
- n += wt(o) + ":" + u + ";";
1621
+ n += At(o) + ":" + u + ";";
1622
1622
  break;
1623
1623
  }
1624
1624
  default:
@@ -1628,41 +1628,41 @@ function jr(t, e, i) {
1628
1628
  }
1629
1629
  return n;
1630
1630
  }
1631
- var si = /label:\s*([^\s;{]+)\s*(;|$)/g, ge;
1632
- function At(t, e, i) {
1631
+ var ai = /label:\s*([^\s;{]+)\s*(;|$)/g, Ae;
1632
+ function bt(t, e, i) {
1633
1633
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1634
1634
  return t[0];
1635
1635
  var n = !0, r = "";
1636
- ge = void 0;
1636
+ Ae = void 0;
1637
1637
  var o = t[0];
1638
1638
  if (o == null || o.raw === void 0)
1639
- n = !1, r += at(i, e, o);
1639
+ n = !1, r += dt(i, e, o);
1640
1640
  else {
1641
1641
  var s = o;
1642
1642
  r += s[0];
1643
1643
  }
1644
1644
  for (var a = 1; a < t.length; a++)
1645
- if (r += at(i, e, t[a]), n) {
1645
+ if (r += dt(i, e, t[a]), n) {
1646
1646
  var d = o;
1647
1647
  r += d[a];
1648
1648
  }
1649
- si.lastIndex = 0;
1650
- for (var u = "", l; (l = si.exec(r)) !== null; )
1649
+ ai.lastIndex = 0;
1650
+ for (var u = "", l; (l = ai.exec(r)) !== null; )
1651
1651
  u += "-" + l[1];
1652
- var c = Mr(r) + u;
1652
+ var c = $r(r) + u;
1653
1653
  return {
1654
1654
  name: c,
1655
1655
  styles: r,
1656
- next: ge
1656
+ next: Ae
1657
1657
  };
1658
1658
  }
1659
- function Mi(t, e, i) {
1659
+ function $i(t, e, i) {
1660
1660
  var n = "";
1661
1661
  return i.split(" ").forEach(function(r) {
1662
1662
  t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
1663
1663
  }), n;
1664
1664
  }
1665
- var Vr = function(e, i, n) {
1665
+ var Gr = function(e, i, n) {
1666
1666
  var r = e.key + "-" + i.name;
1667
1667
  // we only need to add the styles to the registered cache if the
1668
1668
  // class name could be used further down
@@ -1671,7 +1671,7 @@ var Vr = function(e, i, n) {
1671
1671
  // this improves memory usage since we can avoid storing the whole style string
1672
1672
  e.registered[r] === void 0 && (e.registered[r] = i.styles);
1673
1673
  }, qr = function(e, i, n) {
1674
- Vr(e, i);
1674
+ Gr(e, i);
1675
1675
  var r = e.key + "-" + i.name;
1676
1676
  if (e.inserted[i.name] === void 0) {
1677
1677
  var o = i;
@@ -1680,41 +1680,41 @@ var Vr = function(e, i, n) {
1680
1680
  while (o !== void 0);
1681
1681
  }
1682
1682
  };
1683
- function ai(t, e) {
1683
+ function di(t, e) {
1684
1684
  if (t.inserted[e.name] === void 0)
1685
1685
  return t.insert("", e, t.sheet, !0);
1686
1686
  }
1687
- function di(t, e, i) {
1688
- var n = [], r = Mi(t, n, i);
1687
+ function li(t, e, i) {
1688
+ var n = [], r = $i(t, n, i);
1689
1689
  return n.length < 2 ? i : r + e(n);
1690
1690
  }
1691
- var Gr = function(e) {
1692
- var i = Br(e);
1691
+ var Kr = function(e) {
1692
+ var i = Mr(e);
1693
1693
  i.sheet.speedy = function(a) {
1694
1694
  this.isSpeedy = a;
1695
1695
  }, i.compat = !0;
1696
1696
  var n = function() {
1697
1697
  for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
1698
1698
  u[l] = arguments[l];
1699
- var c = At(u, i.registered, void 0);
1699
+ var c = bt(u, i.registered, void 0);
1700
1700
  return qr(i, c), i.key + "-" + c.name;
1701
1701
  }, r = function() {
1702
1702
  for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
1703
1703
  u[l] = arguments[l];
1704
- var c = At(u, i.registered), h = "animation-" + c.name;
1705
- return ai(i, {
1704
+ var c = bt(u, i.registered), h = "animation-" + c.name;
1705
+ return di(i, {
1706
1706
  name: c.name,
1707
1707
  styles: "@keyframes " + h + "{" + c.styles + "}"
1708
1708
  }), h;
1709
1709
  }, o = function() {
1710
1710
  for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
1711
1711
  u[l] = arguments[l];
1712
- var c = At(u, i.registered);
1713
- ai(i, c);
1712
+ var c = bt(u, i.registered);
1713
+ di(i, c);
1714
1714
  }, s = function() {
1715
1715
  for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
1716
1716
  u[l] = arguments[l];
1717
- return di(i.registered, n, Kr(u));
1717
+ return li(i.registered, n, zr(u));
1718
1718
  };
1719
1719
  return {
1720
1720
  css: n,
@@ -1731,10 +1731,10 @@ var Gr = function(e) {
1731
1731
  },
1732
1732
  sheet: i.sheet,
1733
1733
  cache: i,
1734
- getRegisteredStyles: Mi.bind(null, i.registered),
1735
- merge: di.bind(null, i.registered, n)
1734
+ getRegisteredStyles: $i.bind(null, i.registered),
1735
+ merge: li.bind(null, i.registered, n)
1736
1736
  };
1737
- }, Kr = function t(e) {
1737
+ }, zr = function t(e) {
1738
1738
  for (var i = "", n = 0; n < e.length; n++) {
1739
1739
  var r = e[n];
1740
1740
  if (r != null) {
@@ -1759,78 +1759,78 @@ var Gr = function(e) {
1759
1759
  }
1760
1760
  }
1761
1761
  return i;
1762
- }, zr = Gr({
1762
+ }, Wr = Kr({
1763
1763
  key: "css"
1764
- }), q = zr.css, Ot, Q, bt, li, ui = 0, $i = [], B = Re, ci = B.__b, hi = B.__r, fi = B.diffed, vi = B.__c, yi = B.unmount, gi = B.__;
1765
- function Wr(t, e) {
1766
- B.__h && B.__h(Q, t, ui || e), ui = 0;
1764
+ }), G = Wr.css, Dt, Q, pt, ui, ci = 0, Fi = [], B = Te, hi = B.__b, fi = B.__r, vi = B.diffed, yi = B.__c, gi = B.unmount, wi = B.__;
1765
+ function Hr(t, e) {
1766
+ B.__h && B.__h(Q, t, ci || e), ci = 0;
1767
1767
  var i = Q.__H || (Q.__H = { __: [], __h: [] });
1768
1768
  return t >= i.__.length && i.__.push({}), i.__[t];
1769
1769
  }
1770
- function Fi(t, e) {
1771
- var i = Wr(Ot++, 7);
1770
+ function Ui(t, e) {
1771
+ var i = Hr(Dt++, 7);
1772
1772
  return Xr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1773
1773
  }
1774
1774
  function Jr() {
1775
- for (var t; t = $i.shift(); )
1775
+ for (var t; t = Fi.shift(); )
1776
1776
  if (t.__P && t.__H)
1777
1777
  try {
1778
- t.__H.__h.forEach(tt), t.__H.__h.forEach(Dt), t.__H.__h = [];
1778
+ t.__H.__h.forEach(it), t.__H.__h.forEach(Pt), t.__H.__h = [];
1779
1779
  } catch (e) {
1780
1780
  t.__H.__h = [], B.__e(e, t.__v);
1781
1781
  }
1782
1782
  }
1783
1783
  B.__b = function(t) {
1784
- Q = null, ci && ci(t);
1784
+ Q = null, hi && hi(t);
1785
1785
  }, B.__ = function(t, e) {
1786
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), gi && gi(t, e);
1786
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), wi && wi(t, e);
1787
1787
  }, B.__r = function(t) {
1788
- hi && hi(t), Ot = 0;
1788
+ fi && fi(t), Dt = 0;
1789
1789
  var e = (Q = t.__c).__H;
1790
- e && (bt === Q ? (e.__h = [], Q.__h = [], e.__.forEach(function(i) {
1790
+ e && (pt === Q ? (e.__h = [], Q.__h = [], e.__.forEach(function(i) {
1791
1791
  i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
1792
- })) : (e.__h.forEach(tt), e.__h.forEach(Dt), e.__h = [], Ot = 0)), bt = Q;
1792
+ })) : (e.__h.forEach(it), e.__h.forEach(Pt), e.__h = [], Dt = 0)), pt = Q;
1793
1793
  }, B.diffed = function(t) {
1794
- fi && fi(t);
1794
+ vi && vi(t);
1795
1795
  var e = t.__c;
1796
- e && e.__H && (e.__H.__h.length && ($i.push(e) !== 1 && li === B.requestAnimationFrame || ((li = B.requestAnimationFrame) || Hr)(Jr)), e.__H.__.forEach(function(i) {
1796
+ e && e.__H && (e.__H.__h.length && (Fi.push(e) !== 1 && ui === B.requestAnimationFrame || ((ui = B.requestAnimationFrame) || Yr)(Jr)), e.__H.__.forEach(function(i) {
1797
1797
  i.u && (i.__H = i.u), i.u = void 0;
1798
- })), bt = Q = null;
1798
+ })), pt = Q = null;
1799
1799
  }, B.__c = function(t, e) {
1800
1800
  e.some(function(i) {
1801
1801
  try {
1802
- i.__h.forEach(tt), i.__h = i.__h.filter(function(n) {
1803
- return !n.__ || Dt(n);
1802
+ i.__h.forEach(it), i.__h = i.__h.filter(function(n) {
1803
+ return !n.__ || Pt(n);
1804
1804
  });
1805
1805
  } catch (n) {
1806
1806
  e.some(function(r) {
1807
1807
  r.__h && (r.__h = []);
1808
1808
  }), e = [], B.__e(n, i.__v);
1809
1809
  }
1810
- }), vi && vi(t, e);
1810
+ }), yi && yi(t, e);
1811
1811
  }, B.unmount = function(t) {
1812
- yi && yi(t);
1812
+ gi && gi(t);
1813
1813
  var e, i = t.__c;
1814
1814
  i && i.__H && (i.__H.__.forEach(function(n) {
1815
1815
  try {
1816
- tt(n);
1816
+ it(n);
1817
1817
  } catch (r) {
1818
1818
  e = r;
1819
1819
  }
1820
1820
  }), i.__H = void 0, e && B.__e(e, i.__v));
1821
1821
  };
1822
- var wi = typeof requestAnimationFrame == "function";
1823
- function Hr(t) {
1822
+ var Ai = typeof requestAnimationFrame == "function";
1823
+ function Yr(t) {
1824
1824
  var e, i = function() {
1825
- clearTimeout(n), wi && cancelAnimationFrame(e), setTimeout(t);
1825
+ clearTimeout(n), Ai && cancelAnimationFrame(e), setTimeout(t);
1826
1826
  }, n = setTimeout(i, 100);
1827
- wi && (e = requestAnimationFrame(i));
1827
+ Ai && (e = requestAnimationFrame(i));
1828
1828
  }
1829
- function tt(t) {
1829
+ function it(t) {
1830
1830
  var e = Q, i = t.__c;
1831
1831
  typeof i == "function" && (t.__c = void 0, i()), Q = e;
1832
1832
  }
1833
- function Dt(t) {
1833
+ function Pt(t) {
1834
1834
  var e = Q;
1835
1835
  t.__c = t.__(), Q = e;
1836
1836
  }
@@ -1839,16 +1839,16 @@ function Xr(t, e) {
1839
1839
  return i !== t[n];
1840
1840
  });
1841
1841
  }
1842
- var Yr = Symbol.for("preact-signals");
1843
- function ft() {
1844
- if (we > 1)
1845
- we--;
1842
+ var Qr = Symbol.for("preact-signals");
1843
+ function vt() {
1844
+ if (be > 1)
1845
+ be--;
1846
1846
  else {
1847
- for (var t, e = !1; $e !== void 0; ) {
1848
- var i = $e;
1849
- for ($e = void 0, Pt++; i !== void 0; ) {
1847
+ for (var t, e = !1; Fe !== void 0; ) {
1848
+ var i = Fe;
1849
+ for (Fe = void 0, Nt++; i !== void 0; ) {
1850
1850
  var n = i.o;
1851
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && ji(i))
1851
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && Vi(i))
1852
1852
  try {
1853
1853
  i.c();
1854
1854
  } catch (r) {
@@ -1857,22 +1857,22 @@ function ft() {
1857
1857
  i = n;
1858
1858
  }
1859
1859
  }
1860
- if (Pt = 0, we--, e)
1860
+ if (Nt = 0, be--, e)
1861
1861
  throw t;
1862
1862
  }
1863
1863
  }
1864
1864
  function P(t) {
1865
- if (we > 0)
1865
+ if (be > 0)
1866
1866
  return t();
1867
- we++;
1867
+ be++;
1868
1868
  try {
1869
1869
  return t();
1870
1870
  } finally {
1871
- ft();
1871
+ vt();
1872
1872
  }
1873
1873
  }
1874
- var T = void 0, $e = void 0, we = 0, Pt = 0, dt = 0;
1875
- function Ui(t) {
1874
+ var T = void 0, Fe = void 0, be = 0, Nt = 0, lt = 0;
1875
+ function ji(t) {
1876
1876
  if (T !== void 0) {
1877
1877
  var e = t.n;
1878
1878
  if (e === void 0 || e.t !== T)
@@ -1884,7 +1884,7 @@ function Ui(t) {
1884
1884
  function U(t) {
1885
1885
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1886
1886
  }
1887
- U.prototype.brand = Yr;
1887
+ U.prototype.brand = Qr;
1888
1888
  U.prototype.h = function() {
1889
1889
  return !0;
1890
1890
  };
@@ -1899,7 +1899,7 @@ U.prototype.U = function(t) {
1899
1899
  };
1900
1900
  U.prototype.subscribe = function(t) {
1901
1901
  var e = this;
1902
- return Ke(function() {
1902
+ return ze(function() {
1903
1903
  var i = e.value, n = T;
1904
1904
  T = void 0;
1905
1905
  try {
@@ -1928,31 +1928,31 @@ U.prototype.peek = function() {
1928
1928
  }
1929
1929
  };
1930
1930
  Object.defineProperty(U.prototype, "value", { get: function() {
1931
- var t = Ui(this);
1931
+ var t = ji(this);
1932
1932
  return t !== void 0 && (t.i = this.i), this.v;
1933
1933
  }, set: function(t) {
1934
1934
  if (t !== this.v) {
1935
- if (Pt > 100)
1935
+ if (Nt > 100)
1936
1936
  throw new Error("Cycle detected");
1937
- this.v = t, this.i++, dt++, we++;
1937
+ this.v = t, this.i++, lt++, be++;
1938
1938
  try {
1939
1939
  for (var e = this.t; e !== void 0; e = e.x)
1940
1940
  e.t.N();
1941
1941
  } finally {
1942
- ft();
1942
+ vt();
1943
1943
  }
1944
1944
  }
1945
1945
  } });
1946
1946
  function k(t) {
1947
1947
  return new U(t);
1948
1948
  }
1949
- function ji(t) {
1949
+ function Vi(t) {
1950
1950
  for (var e = t.s; e !== void 0; e = e.n)
1951
1951
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1952
1952
  return !0;
1953
1953
  return !1;
1954
1954
  }
1955
- function Vi(t) {
1955
+ function Gi(t) {
1956
1956
  for (var e = t.s; e !== void 0; e = e.n) {
1957
1957
  var i = e.S.n;
1958
1958
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1968,19 +1968,19 @@ function qi(t) {
1968
1968
  }
1969
1969
  t.s = i;
1970
1970
  }
1971
- function De(t) {
1972
- U.call(this, void 0), this.x = t, this.s = void 0, this.g = dt - 1, this.f = 4;
1971
+ function Pe(t) {
1972
+ U.call(this, void 0), this.x = t, this.s = void 0, this.g = lt - 1, this.f = 4;
1973
1973
  }
1974
- (De.prototype = new U()).h = function() {
1974
+ (Pe.prototype = new U()).h = function() {
1975
1975
  if (this.f &= -3, 1 & this.f)
1976
1976
  return !1;
1977
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === dt))
1977
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === lt))
1978
1978
  return !0;
1979
- if (this.g = dt, this.f |= 1, this.i > 0 && !ji(this))
1979
+ if (this.g = lt, this.f |= 1, this.i > 0 && !Vi(this))
1980
1980
  return this.f &= -2, !0;
1981
1981
  var t = T;
1982
1982
  try {
1983
- Vi(this), T = this;
1983
+ Gi(this), T = this;
1984
1984
  var e = this.x();
1985
1985
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1986
1986
  } catch (i) {
@@ -1988,7 +1988,7 @@ function De(t) {
1988
1988
  }
1989
1989
  return T = t, qi(this), this.f &= -2, !0;
1990
1990
  };
1991
- De.prototype.S = function(t) {
1991
+ Pe.prototype.S = function(t) {
1992
1992
  if (this.t === void 0) {
1993
1993
  this.f |= 36;
1994
1994
  for (var e = this.s; e !== void 0; e = e.n)
@@ -1996,60 +1996,60 @@ De.prototype.S = function(t) {
1996
1996
  }
1997
1997
  U.prototype.S.call(this, t);
1998
1998
  };
1999
- De.prototype.U = function(t) {
1999
+ Pe.prototype.U = function(t) {
2000
2000
  if (this.t !== void 0 && (U.prototype.U.call(this, t), this.t === void 0)) {
2001
2001
  this.f &= -33;
2002
2002
  for (var e = this.s; e !== void 0; e = e.n)
2003
2003
  e.S.U(e);
2004
2004
  }
2005
2005
  };
2006
- De.prototype.N = function() {
2006
+ Pe.prototype.N = function() {
2007
2007
  if (!(2 & this.f)) {
2008
2008
  this.f |= 6;
2009
2009
  for (var t = this.t; t !== void 0; t = t.x)
2010
2010
  t.t.N();
2011
2011
  }
2012
2012
  };
2013
- Object.defineProperty(De.prototype, "value", { get: function() {
2013
+ Object.defineProperty(Pe.prototype, "value", { get: function() {
2014
2014
  if (1 & this.f)
2015
2015
  throw new Error("Cycle detected");
2016
- var t = Ui(this);
2016
+ var t = ji(this);
2017
2017
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2018
2018
  throw this.v;
2019
2019
  return this.v;
2020
2020
  } });
2021
- function Fe(t) {
2022
- return new De(t);
2021
+ function Ue(t) {
2022
+ return new Pe(t);
2023
2023
  }
2024
- function Gi(t) {
2024
+ function Ki(t) {
2025
2025
  var e = t.u;
2026
2026
  if (t.u = void 0, typeof e == "function") {
2027
- we++;
2027
+ be++;
2028
2028
  var i = T;
2029
2029
  T = void 0;
2030
2030
  try {
2031
2031
  e();
2032
2032
  } catch (n) {
2033
- throw t.f &= -2, t.f |= 8, Ft(t), n;
2033
+ throw t.f &= -2, t.f |= 8, Ut(t), n;
2034
2034
  } finally {
2035
- T = i, ft();
2035
+ T = i, vt();
2036
2036
  }
2037
2037
  }
2038
2038
  }
2039
- function Ft(t) {
2039
+ function Ut(t) {
2040
2040
  for (var e = t.s; e !== void 0; e = e.n)
2041
2041
  e.S.U(e);
2042
- t.x = void 0, t.s = void 0, Gi(t);
2042
+ t.x = void 0, t.s = void 0, Ki(t);
2043
2043
  }
2044
- function Qr(t) {
2044
+ function Zr(t) {
2045
2045
  if (T !== this)
2046
2046
  throw new Error("Out-of-order effect");
2047
- qi(this), T = t, this.f &= -2, 8 & this.f && Ft(this), ft();
2047
+ qi(this), T = t, this.f &= -2, 8 & this.f && Ut(this), vt();
2048
2048
  }
2049
- function Ge(t) {
2049
+ function Ke(t) {
2050
2050
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
2051
2051
  }
2052
- Ge.prototype.c = function() {
2052
+ Ke.prototype.c = function() {
2053
2053
  var t = this.S();
2054
2054
  try {
2055
2055
  if (8 & this.f || this.x === void 0)
@@ -2060,21 +2060,21 @@ Ge.prototype.c = function() {
2060
2060
  t();
2061
2061
  }
2062
2062
  };
2063
- Ge.prototype.S = function() {
2063
+ Ke.prototype.S = function() {
2064
2064
  if (1 & this.f)
2065
2065
  throw new Error("Cycle detected");
2066
- this.f |= 1, this.f &= -9, Gi(this), Vi(this), we++;
2066
+ this.f |= 1, this.f &= -9, Ki(this), Gi(this), be++;
2067
2067
  var t = T;
2068
- return T = this, Qr.bind(this, t);
2068
+ return T = this, Zr.bind(this, t);
2069
2069
  };
2070
- Ge.prototype.N = function() {
2071
- 2 & this.f || (this.f |= 2, this.o = $e, $e = this);
2070
+ Ke.prototype.N = function() {
2071
+ 2 & this.f || (this.f |= 2, this.o = Fe, Fe = this);
2072
2072
  };
2073
- Ge.prototype.d = function() {
2074
- this.f |= 8, 1 & this.f || Ft(this);
2073
+ Ke.prototype.d = function() {
2074
+ this.f |= 8, 1 & this.f || Ut(this);
2075
2075
  };
2076
- function Ke(t) {
2077
- var e = new Ge(t);
2076
+ function ze(t) {
2077
+ var e = new Ke(t);
2078
2078
  try {
2079
2079
  e.c();
2080
2080
  } catch (i) {
@@ -2082,33 +2082,33 @@ function Ke(t) {
2082
2082
  }
2083
2083
  return e.d.bind(e);
2084
2084
  }
2085
- var Ki, pt, zi = [];
2086
- Ke(function() {
2087
- Ki = this.N;
2085
+ var zi, _t, Wi = [];
2086
+ ze(function() {
2087
+ zi = this.N;
2088
2088
  })();
2089
- function Pe(t, e) {
2090
- Re[t] = e.bind(null, Re[t] || function() {
2089
+ function Ne(t, e) {
2090
+ Te[t] = e.bind(null, Te[t] || function() {
2091
2091
  });
2092
2092
  }
2093
- function lt(t) {
2094
- pt && pt(), pt = t && t.S();
2093
+ function ut(t) {
2094
+ _t && _t(), _t = t && t.S();
2095
2095
  }
2096
- function Wi(t) {
2096
+ function Hi(t) {
2097
2097
  var e = this, i = t.data, n = Ji(i);
2098
2098
  n.value = i;
2099
- var r = Fi(function() {
2099
+ var r = Ui(function() {
2100
2100
  for (var a = e, d = e.__v; d = d.__; )
2101
2101
  if (d.__c) {
2102
2102
  d.__c.__$f |= 4;
2103
2103
  break;
2104
2104
  }
2105
- var u = Fe(function() {
2105
+ var u = Ue(function() {
2106
2106
  var f = n.value.value;
2107
2107
  return f === 0 ? 0 : f === !0 ? "" : f || "";
2108
- }), l = Fe(function() {
2109
- return !Array.isArray(u.value) && !hn(u.value);
2110
- }), c = Ke(function() {
2111
- if (this.N = Hi, l.value) {
2108
+ }), l = Ue(function() {
2109
+ return !Array.isArray(u.value) && !fn(u.value);
2110
+ }), c = ze(function() {
2111
+ if (this.N = Yi, l.value) {
2112
2112
  var f = u.value;
2113
2113
  a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2114
2114
  }
@@ -2119,11 +2119,11 @@ function Wi(t) {
2119
2119
  }, []), o = r[0], s = r[1];
2120
2120
  return o.value ? s.peek() : s.value;
2121
2121
  }
2122
- Wi.displayName = "_st";
2123
- Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Wi }, props: { configurable: !0, get: function() {
2122
+ Hi.displayName = "_st";
2123
+ Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Hi }, props: { configurable: !0, get: function() {
2124
2124
  return { data: this };
2125
2125
  } }, __b: { configurable: !0, value: 1 } });
2126
- Pe("__b", function(t, e) {
2126
+ Ne("__b", function(t, e) {
2127
2127
  if (typeof e.type == "string") {
2128
2128
  var i, n = e.props;
2129
2129
  for (var r in n)
@@ -2134,23 +2134,23 @@ Pe("__b", function(t, e) {
2134
2134
  }
2135
2135
  t(e);
2136
2136
  });
2137
- Pe("__r", function(t, e) {
2138
- lt();
2137
+ Ne("__r", function(t, e) {
2138
+ ut();
2139
2139
  var i, n = e.__c;
2140
2140
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2141
2141
  var o;
2142
- return Ke(function() {
2142
+ return ze(function() {
2143
2143
  o = this;
2144
2144
  }), o.c = function() {
2145
2145
  n.__$f |= 1, n.setState({});
2146
2146
  }, o;
2147
- }())), lt(i), t(e);
2147
+ }())), ut(i), t(e);
2148
2148
  });
2149
- Pe("__e", function(t, e, i, n) {
2150
- lt(), t(e, i, n);
2149
+ Ne("__e", function(t, e, i, n) {
2150
+ ut(), t(e, i, n);
2151
2151
  });
2152
- Pe("diffed", function(t, e) {
2153
- lt();
2152
+ Ne("diffed", function(t, e) {
2153
+ ut();
2154
2154
  var i;
2155
2155
  if (typeof e.type == "string" && (i = e.__e)) {
2156
2156
  var n = e.__np, r = e.props;
@@ -2165,23 +2165,23 @@ Pe("diffed", function(t, e) {
2165
2165
  o = {}, i.U = o;
2166
2166
  for (var d in n) {
2167
2167
  var u = o[d], l = n[d];
2168
- u === void 0 ? (u = Zr(i, d, l, r), o[d] = u) : u.o(l, r);
2168
+ u === void 0 ? (u = eo(i, d, l, r), o[d] = u) : u.o(l, r);
2169
2169
  }
2170
2170
  }
2171
2171
  }
2172
2172
  t(e);
2173
2173
  });
2174
- function Zr(t, e, i, n) {
2174
+ function eo(t, e, i, n) {
2175
2175
  var r = e in t && t.ownerSVGElement === void 0, o = k(i);
2176
2176
  return { o: function(s, a) {
2177
2177
  o.value = s, n = a;
2178
- }, d: Ke(function() {
2179
- this.N = Hi;
2178
+ }, d: ze(function() {
2179
+ this.N = Yi;
2180
2180
  var s = o.value.value;
2181
2181
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2182
2182
  }) };
2183
2183
  }
2184
- Pe("unmount", function(t, e) {
2184
+ Ne("unmount", function(t, e) {
2185
2185
  if (typeof e.type == "string") {
2186
2186
  var i = e.__e;
2187
2187
  if (i) {
@@ -2203,10 +2203,10 @@ Pe("unmount", function(t, e) {
2203
2203
  }
2204
2204
  t(e);
2205
2205
  });
2206
- Pe("__h", function(t, e, i, n) {
2206
+ Ne("__h", function(t, e, i, n) {
2207
2207
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2208
2208
  });
2209
- cn.prototype.shouldComponentUpdate = function(t, e) {
2209
+ hn.prototype.shouldComponentUpdate = function(t, e) {
2210
2210
  var i = this.__$u, n = i && i.s !== void 0;
2211
2211
  for (var r in e)
2212
2212
  return !0;
@@ -2225,25 +2225,25 @@ cn.prototype.shouldComponentUpdate = function(t, e) {
2225
2225
  return !1;
2226
2226
  };
2227
2227
  function Ji(t) {
2228
- return Fi(function() {
2228
+ return Ui(function() {
2229
2229
  return k(t);
2230
2230
  }, []);
2231
2231
  }
2232
- var eo = function(t) {
2232
+ var to = function(t) {
2233
2233
  queueMicrotask(function() {
2234
2234
  queueMicrotask(t);
2235
2235
  });
2236
2236
  };
2237
- function to() {
2237
+ function io() {
2238
2238
  P(function() {
2239
- for (var t; t = zi.shift(); )
2240
- Ki.call(t);
2239
+ for (var t; t = Wi.shift(); )
2240
+ zi.call(t);
2241
2241
  });
2242
2242
  }
2243
- function Hi() {
2244
- zi.push(this) === 1 && (Re.requestAnimationFrame || eo)(to);
2243
+ function Yi() {
2244
+ Wi.push(this) === 1 && (Te.requestAnimationFrame || to)(io);
2245
2245
  }
2246
- const M = q`
2246
+ const M = G`
2247
2247
  inset: 0;
2248
2248
  clear: none;
2249
2249
  float: none;
@@ -2262,11 +2262,11 @@ const M = q`
2262
2262
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2263
2263
  'Helvetica Neue', sans-serif;
2264
2264
  `;
2265
- function io(t, e) {
2266
- const i = _i(t);
2267
- fn(() => {
2265
+ function no(t, e) {
2266
+ const i = mi(t);
2267
+ vn(() => {
2268
2268
  i.current = t;
2269
- }, [t]), Te(() => {
2269
+ }, [t]), Ce(() => {
2270
2270
  if (e === null)
2271
2271
  return;
2272
2272
  const n = setInterval(() => {
@@ -2277,20 +2277,20 @@ function io(t, e) {
2277
2277
  };
2278
2278
  }, [e]);
2279
2279
  }
2280
- var no = 0;
2280
+ var ro = 0;
2281
2281
  function m(t, e, i, n, r, o) {
2282
2282
  e || (e = {});
2283
2283
  var s, a, d = e;
2284
2284
  if ("ref" in d)
2285
2285
  for (a in d = {}, e)
2286
2286
  a == "ref" ? s = e[a] : d[a] = e[a];
2287
- var u = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --no, __i: -1, __u: 0, __source: r, __self: o };
2287
+ var u = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ro, __i: -1, __u: 0, __source: r, __self: o };
2288
2288
  if (typeof t == "function" && (s = t.defaultProps))
2289
2289
  for (a in s)
2290
2290
  d[a] === void 0 && (d[a] = s[a]);
2291
- return Re.vnode && Re.vnode(u), u;
2291
+ return Te.vnode && Te.vnode(u), u;
2292
2292
  }
2293
- const ro = q`
2293
+ const oo = G`
2294
2294
  ${M}
2295
2295
  position: fixed;
2296
2296
  top: 0;
@@ -2365,55 +2365,55 @@ const ro = q`
2365
2365
  }
2366
2366
  }
2367
2367
  }
2368
- `, ne = k(null), Nt = k(""), Lt = k(""), it = k(!1), oo = () => {
2368
+ `, ne = k(null), Lt = k(""), Bt = k(""), nt = k(!1), so = () => {
2369
2369
  var t;
2370
2370
  (t = ne.value) == null || t.call(ne, !1);
2371
- }, so = () => {
2371
+ }, ao = () => {
2372
2372
  var t;
2373
2373
  (t = ne.value) == null || t.call(ne, !0);
2374
- }, ao = async (t) => {
2374
+ }, lo = async (t) => {
2375
2375
  let {
2376
2376
  title: e,
2377
2377
  content: i
2378
2378
  } = t;
2379
2379
  return ne.value && (ne.value(!1), P(() => {
2380
- ne.value = null, it.value = !1;
2380
+ ne.value = null, nt.value = !1;
2381
2381
  })), P(() => {
2382
- Nt.value = e || "", Lt.value = i || "", it.value = !0;
2382
+ Lt.value = e || "", Bt.value = i || "", nt.value = !0;
2383
2383
  }), new Promise((n) => {
2384
2384
  ne.value = (r) => {
2385
2385
  P(() => {
2386
- ne.value = null, it.value = !1, Nt.value = "", Lt.value = "";
2386
+ ne.value = null, nt.value = !1, Lt.value = "", Bt.value = "";
2387
2387
  }), n(r);
2388
2388
  };
2389
2389
  });
2390
- }, lo = () => it.value ? m("div", {
2391
- className: ro,
2390
+ }, uo = () => nt.value ? m("div", {
2391
+ className: oo,
2392
2392
  children: m("div", {
2393
2393
  className: "card-wrapper",
2394
2394
  children: [m("div", {
2395
2395
  className: "body",
2396
2396
  children: [m("div", {
2397
2397
  className: "title",
2398
- children: Nt.value
2398
+ children: Lt.value
2399
2399
  }), m("div", {
2400
2400
  className: "content",
2401
- children: Lt.value
2401
+ children: Bt.value
2402
2402
  })]
2403
2403
  }), m("div", {
2404
2404
  className: "footer",
2405
2405
  children: [m("button", {
2406
- onClick: oo,
2406
+ onClick: so,
2407
2407
  className: "cancel-btn",
2408
2408
  children: "Cancel"
2409
2409
  }), m("button", {
2410
- onClick: so,
2410
+ onClick: ao,
2411
2411
  className: "confirm-btm",
2412
2412
  children: "Confirm"
2413
2413
  })]
2414
2414
  })]
2415
2415
  })
2416
- }) : null, uo = q`
2416
+ }) : null, co = G`
2417
2417
  ${M}
2418
2418
  position: relative;
2419
2419
  display: flex;
@@ -2446,7 +2446,7 @@ const ro = q`
2446
2446
  cursor: not-allowed;
2447
2447
  }
2448
2448
  }
2449
- `, co = () => {
2449
+ `, ho = () => {
2450
2450
  const t = k(!1), e = k(null);
2451
2451
  return {
2452
2452
  timerPaused: t,
@@ -2457,7 +2457,7 @@ const ro = q`
2457
2457
  });
2458
2458
  }
2459
2459
  };
2460
- }, ho = (t) => {
2460
+ }, fo = (t) => {
2461
2461
  let {
2462
2462
  countdown: e = 0,
2463
2463
  mode: i,
@@ -2468,25 +2468,25 @@ const ro = q`
2468
2468
  startTimestamp: o,
2469
2469
  timerPaused: s
2470
2470
  } = r, a = Ji(e);
2471
- io(() => {
2471
+ no(() => {
2472
2472
  a.value > 0 ? a.value -= 1 : P(() => {
2473
2473
  s.value = !0, a.value = 0;
2474
2474
  });
2475
2475
  }, s.value ? null : 1e3);
2476
- const d = Fe(() => {
2476
+ const d = Ue(() => {
2477
2477
  if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
2478
2478
  return !1;
2479
2479
  const f = Date.now() - o.value;
2480
2480
  return a.value > 0 && e - a.value >= 5 && f >= 5e3;
2481
- }), u = Fe(() => {
2481
+ }), u = Ue(() => {
2482
2482
  if (i === "interstitial")
2483
2483
  return !0;
2484
2484
  if (!o.value)
2485
2485
  return !1;
2486
2486
  const f = Date.now() - o.value;
2487
2487
  return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2488
- }), l = Fe(() => i === "interstitial" ? !1 : !d.value && !u.value), c = async () => {
2489
- if (s.value = !0, !await ao({
2488
+ }), l = Ue(() => i === "interstitial" ? !1 : !d.value && !u.value), c = async () => {
2489
+ if (s.value = !0, !await lo({
2490
2490
  title: "Are you sure?",
2491
2491
  content: "You will lose your reward if you dismiss this Ad."
2492
2492
  })) {
@@ -2502,7 +2502,7 @@ const ro = q`
2502
2502
  });
2503
2503
  };
2504
2504
  return m("div", {
2505
- className: uo,
2505
+ className: co,
2506
2506
  children: [a.value > 0 && i !== "interstitial" && m("div", {
2507
2507
  className: "timer",
2508
2508
  children: [a.value, "s"]
@@ -2535,7 +2535,7 @@ const ro = q`
2535
2535
  src: a,
2536
2536
  mode: d
2537
2537
  };
2538
- }, fo = q`
2538
+ }, vo = G`
2539
2539
  ${M}
2540
2540
  position: fixed;
2541
2541
  z-index: 2147483647;
@@ -2554,7 +2554,7 @@ const ro = q`
2554
2554
  width: 100%;
2555
2555
  height: 100%;
2556
2556
  }
2557
- `, Yi = (t) => {
2557
+ `, Qi = (t) => {
2558
2558
  let {
2559
2559
  state: e
2560
2560
  } = t;
@@ -2568,20 +2568,20 @@ const ro = q`
2568
2568
  countdown: d,
2569
2569
  src: u,
2570
2570
  mode: l
2571
- } = e, c = vn(() => co(), []), [h, f] = pe(!1), v = (w) => {
2571
+ } = e, c = yn(() => ho(), []), [h, f] = _e(!1), v = (w) => {
2572
2572
  var g, A, S, p;
2573
2573
  a.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((A = r.value) == null || A.call(r)), (S = i.value) == null || S.call(i), (p = o.value) == null || p.call(o), f(!1);
2574
- }, y = Et(() => {
2574
+ }, y = kt(() => {
2575
2575
  var w;
2576
2576
  h || (f(!0), (w = s.value) == null || w.call(s));
2577
2577
  }, [h]);
2578
- return Te(() => {
2578
+ return Ce(() => {
2579
2579
  h && (l.value === "reward" || l.value === "rewarded_insterstitial") && setTimeout(() => {
2580
2580
  c.startTimer();
2581
2581
  }, 100);
2582
2582
  }, [h, l.value]), a.value ? m("div", {
2583
- className: fo,
2584
- children: [m(ho, {
2583
+ className: vo,
2584
+ children: [m(fo, {
2585
2585
  mode: l.value,
2586
2586
  onClose: v,
2587
2587
  countdown: d.value,
@@ -2590,17 +2590,17 @@ const ro = q`
2590
2590
  src: u.value,
2591
2591
  onLoad: y,
2592
2592
  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"
2593
- }), m(lo, {})]
2593
+ }), m(uo, {})]
2594
2594
  }) : null;
2595
2595
  };
2596
- function de(t, e, i) {
2597
- return (e = vo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2596
+ function le(t, e, i) {
2597
+ return (e = yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2598
2598
  }
2599
- function vo(t) {
2600
- var e = yo(t, "string");
2599
+ function yo(t) {
2600
+ var e = go(t, "string");
2601
2601
  return typeof e == "symbol" ? e : e + "";
2602
2602
  }
2603
- function yo(t, e) {
2603
+ function go(t, e) {
2604
2604
  if (typeof t != "object" || !t)
2605
2605
  return t;
2606
2606
  var i = t[Symbol.toPrimitive];
@@ -2612,13 +2612,13 @@ function yo(t, e) {
2612
2612
  }
2613
2613
  return (e === "string" ? String : Number)(t);
2614
2614
  }
2615
- class go {
2615
+ class wo {
2616
2616
  constructor(e, i) {
2617
- de(this, "name", "OKSPIN"), de(this, "initialized", !1), de(this, "initCompleter", null), de(this, "context", void 0), de(this, "initParams", void 0), de(this, "adsOverlay", null), de(this, "adsIsShowing", !1), de(this, "lastUnDisplayedAdBreak", null), de(this, "state", Xi()), this.context = e, this.initParams = i;
2617
+ le(this, "name", "OKSPIN"), le(this, "initialized", !1), le(this, "initCompleter", null), le(this, "context", void 0), le(this, "initParams", void 0), le(this, "adsOverlay", null), le(this, "adsIsShowing", !1), le(this, "lastUnDisplayedAdBreak", null), le(this, "state", Xi()), this.context = e, this.initParams = i;
2618
2618
  }
2619
2619
  async init() {
2620
2620
  var e;
2621
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), fe(m(Yi, {
2621
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), ye(m(Qi, {
2622
2622
  state: this.state
2623
2623
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2624
2624
  }
@@ -2735,7 +2735,7 @@ class go {
2735
2735
  }
2736
2736
  }
2737
2737
  }
2738
- const wo = () => {
2738
+ const Ao = () => {
2739
2739
  const t = k(null), e = k(null), i = k(null), n = k(null), r = k(null), o = k(null), s = k(!1), a = k(null);
2740
2740
  return {
2741
2741
  afterAd: t,
@@ -2747,14 +2747,14 @@ const wo = () => {
2747
2747
  visible: s,
2748
2748
  payload: a
2749
2749
  };
2750
- }, Ao = q`
2750
+ }, bo = G`
2751
2751
  ${M}
2752
2752
  position: fixed;
2753
2753
  inset: 0;
2754
2754
  z-index: 2147483647;
2755
2755
  display: flex;
2756
2756
  background: #000000;
2757
- `, bo = q`
2757
+ `, po = G`
2758
2758
  ${M}
2759
2759
  position: relative;
2760
2760
  width: 100%;
@@ -2762,7 +2762,7 @@ const wo = () => {
2762
2762
  display: flex;
2763
2763
  flex-direction: column;
2764
2764
  color: #f7f9fc;
2765
- `, po = q`
2765
+ `, _o = G`
2766
2766
  position: absolute;
2767
2767
  top: 24px;
2768
2768
  left: 24px;
@@ -2773,15 +2773,15 @@ const wo = () => {
2773
2773
  border-radius: 999px;
2774
2774
  background: rgba(0, 0, 0, 0.65);
2775
2775
  border: 1px solid rgba(255, 255, 255, 0.08);
2776
- `, _o = q`
2776
+ `, mo = G`
2777
2777
  font-size: 11px;
2778
2778
  letter-spacing: 0.08em;
2779
2779
  text-transform: uppercase;
2780
2780
  color: #c7d4ef;
2781
- `, mo = q`
2781
+ `, So = G`
2782
2782
  font-size: 14px;
2783
2783
  font-weight: 500;
2784
- `, So = q`
2784
+ `, Eo = G`
2785
2785
  ${M}
2786
2786
  flex: 1;
2787
2787
  background: #050505;
@@ -2789,7 +2789,7 @@ const wo = () => {
2789
2789
  align-items: center;
2790
2790
  justify-content: center;
2791
2791
  padding: 0;
2792
- `, Ai = q`
2792
+ `, bi = G`
2793
2793
  width: 100%;
2794
2794
  height: 100%;
2795
2795
  border: 2px dashed rgba(255, 255, 255, 0.08);
@@ -2798,13 +2798,13 @@ const wo = () => {
2798
2798
  justify-content: center;
2799
2799
  color: #6e7da1;
2800
2800
  font-size: 14px;
2801
- `, Eo = q`
2801
+ `, ko = G`
2802
2802
  position: absolute;
2803
2803
  bottom: 32px;
2804
2804
  right: 32px;
2805
2805
  display: flex;
2806
2806
  gap: 12px;
2807
- `, ko = q`
2807
+ `, Io = G`
2808
2808
  min-width: 160px;
2809
2809
  min-height: 48px;
2810
2810
  border-radius: 999px;
@@ -2820,7 +2820,7 @@ const wo = () => {
2820
2820
  opacity: 0.4;
2821
2821
  cursor: not-allowed;
2822
2822
  }
2823
- `, Io = q`
2823
+ `, xo = G`
2824
2824
  min-width: 120px;
2825
2825
  min-height: 44px;
2826
2826
  border-radius: 999px;
@@ -2830,7 +2830,7 @@ const wo = () => {
2830
2830
  font-size: 14px;
2831
2831
  font-weight: 500;
2832
2832
  cursor: pointer;
2833
- `, xo = (t) => {
2833
+ `, Ro = (t) => {
2834
2834
  let {
2835
2835
  state: e
2836
2836
  } = t;
@@ -2843,14 +2843,14 @@ const wo = () => {
2843
2843
  adError: a,
2844
2844
  visible: d,
2845
2845
  payload: u
2846
- } = e, [l, c] = pe(!1), [h, f] = pe(0), [v, y] = pe(!1), [w, g] = pe(!1), [A, S] = pe("Loading next content..."), p = _i(null), _ = u.value, E = Et((L) => {
2847
- var C, W, G, I;
2848
- c(!1), d.value = !1, L === "dismiss" ? (C = n.value) == null || C.call(n) : (W = r.value) == null || W.call(r), (G = i.value) == null || G.call(i), (I = o.value) == null || I.call(o);
2849
- }, [d, n, r, i, o]), b = Et(() => {
2846
+ } = e, [l, c] = _e(!1), [h, f] = _e(0), [v, y] = _e(!1), [w, g] = _e(!1), [A, S] = _e("Loading next content..."), p = mi(null), _ = u.value, E = kt((L) => {
2847
+ var C, W, q, I;
2848
+ c(!1), d.value = !1, L === "dismiss" ? (C = n.value) == null || C.call(n) : (W = r.value) == null || W.call(r), (q = i.value) == null || q.call(i), (I = o.value) == null || I.call(o);
2849
+ }, [d, n, r, i, o]), b = kt(() => {
2850
2850
  var L;
2851
2851
  c(!1), d.value = !1, (L = a.value) == null || L.call(a);
2852
2852
  }, [d, a]);
2853
- if (Te(() => {
2853
+ if (Ce(() => {
2854
2854
  var I;
2855
2855
  if (!d.value || !_) {
2856
2856
  f(0), y(!1), g(!1), S("Loading next content...");
@@ -2860,14 +2860,14 @@ const wo = () => {
2860
2860
  if (f(C), g(_.mode === "reward" ? C === 0 : !0), y(_.mode === "interstitial" ? C === 0 : !1), C === 0)
2861
2861
  return;
2862
2862
  let W = C;
2863
- const G = window.setInterval(() => {
2864
- W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(G), _.mode === "reward" ? g(!0) : y(!0));
2863
+ const q = window.setInterval(() => {
2864
+ W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(q), _.mode === "reward" ? g(!0) : y(!0));
2865
2865
  }, 1e3);
2866
2866
  return () => {
2867
- window.clearInterval(G);
2867
+ window.clearInterval(q);
2868
2868
  };
2869
- }, [d.value, _, E]), Te(() => {
2870
- var G;
2869
+ }, [d.value, _, E]), Ce(() => {
2870
+ var q;
2871
2871
  if (!d.value || !_)
2872
2872
  return;
2873
2873
  const L = p.current;
@@ -2875,7 +2875,7 @@ const wo = () => {
2875
2875
  return;
2876
2876
  if (L.innerHTML = "", S("Loading next content..."), c(!1), _.testMode) {
2877
2877
  const I = document.createElement("div");
2878
- I.className = Ai, I.innerText = "Preview slot placeholder", L.appendChild(I), c(!0), (G = s.value) == null || G.call(s);
2878
+ I.className = bi, I.innerText = "Preview slot placeholder", L.appendChild(I), c(!0), (q = s.value) == null || q.call(s);
2879
2879
  return;
2880
2880
  }
2881
2881
  if (typeof window == "undefined") {
@@ -2885,9 +2885,9 @@ const wo = () => {
2885
2885
  const C = document.createElement("ins");
2886
2886
  C.className = "adsbygoogle", C.style.display = "block", C.style.width = "100%", C.style.height = "100%", C.setAttribute("data-ad-client", _.clientId), C.setAttribute("data-ad-slot", _.unitId), C.setAttribute("data-ad-format", "auto"), C.setAttribute("data-full-width-responsive", "true"), _.channelId && C.setAttribute("data-ad-channel", _.channelId), L.appendChild(C);
2887
2887
  const W = new MutationObserver(() => {
2888
- var Y;
2888
+ var X;
2889
2889
  const I = C.getAttribute("data-ad-status");
2890
- I === "filled" ? (c(!0), S(""), (Y = s.value) == null || Y.call(s), W.disconnect()) : I === "unfilled" && (S("Slot currently unavailable."), c(!1), W.disconnect());
2890
+ I === "filled" ? (c(!0), S(""), (X = s.value) == null || X.call(s), W.disconnect()) : I === "unfilled" && (S("Slot currently unavailable."), c(!1), W.disconnect());
2891
2891
  });
2892
2892
  W.observe(C, {
2893
2893
  attributes: !0,
@@ -2904,37 +2904,37 @@ const wo = () => {
2904
2904
  };
2905
2905
  }, [d.value, _, s, b]), !d.value || !_)
2906
2906
  return null;
2907
- const ee = _.mode === "reward" ? "Next content unlocking" : "Content paused", _e = h > 0 ? `Content resumes in ${h}s` : "Content ready";
2907
+ const ee = _.mode === "reward" ? "Next content unlocking" : "Content paused", me = h > 0 ? `Content resumes in ${h}s` : "Content ready";
2908
2908
  return m("div", {
2909
- className: Ao,
2909
+ className: bo,
2910
2910
  children: m("div", {
2911
- className: bo,
2911
+ className: po,
2912
2912
  children: [m("div", {
2913
- className: po,
2913
+ className: _o,
2914
2914
  children: [m("div", {
2915
- className: _o,
2915
+ className: mo,
2916
2916
  children: ee
2917
2917
  }), m("div", {
2918
- className: mo,
2919
- children: _e
2918
+ className: So,
2919
+ children: me
2920
2920
  })]
2921
2921
  }), m("div", {
2922
- className: So,
2922
+ className: Eo,
2923
2923
  ref: p,
2924
2924
  children: !l && m("div", {
2925
- className: Ai,
2925
+ className: bi,
2926
2926
  children: A
2927
2927
  })
2928
2928
  }), m("div", {
2929
- className: Eo,
2929
+ className: ko,
2930
2930
  children: _.mode === "reward" ? m("button", {
2931
- className: ko,
2931
+ className: Io,
2932
2932
  type: "button",
2933
2933
  onClick: () => E("viewed"),
2934
2934
  disabled: !w,
2935
2935
  children: w ? "Continue" : `Continue in ${h}s`
2936
2936
  }) : v && m("button", {
2937
- className: Io,
2937
+ className: xo,
2938
2938
  type: "button",
2939
2939
  onClick: () => E("viewed"),
2940
2940
  children: "Continue"
@@ -2944,13 +2944,13 @@ const wo = () => {
2944
2944
  });
2945
2945
  };
2946
2946
  function K(t, e, i) {
2947
- return (e = Ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2947
+ return (e = To(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2948
2948
  }
2949
- function Ro(t) {
2950
- var e = To(t, "string");
2949
+ function To(t) {
2950
+ var e = Co(t, "string");
2951
2951
  return typeof e == "symbol" ? e : e + "";
2952
2952
  }
2953
- function To(t, e) {
2953
+ function Co(t, e) {
2954
2954
  if (typeof t != "object" || !t)
2955
2955
  return t;
2956
2956
  var i = t[Symbol.toPrimitive];
@@ -2962,9 +2962,9 @@ function To(t, e) {
2962
2962
  }
2963
2963
  return (e === "string" ? String : Number)(t);
2964
2964
  }
2965
- class Co {
2965
+ class Oo {
2966
2966
  constructor(e, i) {
2967
- if (K(this, "name", "ADSENSE_BANNER_AS_AFG"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "contextInfo", void 0), K(this, "initParams", void 0), K(this, "defaultCountdown", 5), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "lastUnDisplayedAdBreak", null), K(this, "requestCounter", 0), K(this, "scriptPromise", null), K(this, "scriptReady", !1), K(this, "scriptFailed", !1), K(this, "state", wo()), this.context = e, this.contextInfo = this.context.getContextInfo(), this.initParams = i, typeof window != "undefined") {
2967
+ if (K(this, "name", "ADSENSE_BANNER_AS_AFG"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "contextInfo", void 0), K(this, "initParams", void 0), K(this, "defaultCountdown", 5), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "lastUnDisplayedAdBreak", null), K(this, "requestCounter", 0), K(this, "scriptPromise", null), K(this, "scriptReady", !1), K(this, "scriptFailed", !1), K(this, "state", Ao()), this.context = e, this.contextInfo = this.context.getContextInfo(), this.initParams = i, typeof window != "undefined") {
2968
2968
  const n = window;
2969
2969
  n.adsbygoogle = n.adsbygoogle || [];
2970
2970
  }
@@ -2972,7 +2972,7 @@ class Co {
2972
2972
  async init() {
2973
2973
  var e;
2974
2974
  if (typeof document != "undefined") {
2975
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), fe(m(xo, {
2975
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), ye(m(Ro, {
2976
2976
  state: this.state
2977
2977
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay);
2978
2978
  try {
@@ -3158,17 +3158,17 @@ class Co {
3158
3158
  }
3159
3159
  }
3160
3160
  }
3161
- const Ie = {};
3161
+ const xe = {};
3162
3162
  window.addEventListener("message", (t) => {
3163
- t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || Ie[t.data.type] && Ie[t.data.type].forEach((e) => {
3163
+ t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || xe[t.data.type] && xe[t.data.type].forEach((e) => {
3164
3164
  e(t.data.data);
3165
3165
  });
3166
3166
  });
3167
- const Se = (t, e) => {
3168
- Te(() => (Ie[t] || (Ie[t] = /* @__PURE__ */ new Set()), Ie[t].add(e), () => {
3169
- Ie[t].delete(e);
3167
+ const Ee = (t, e) => {
3168
+ Ce(() => (xe[t] || (xe[t] = /* @__PURE__ */ new Set()), xe[t].add(e), () => {
3169
+ xe[t].delete(e);
3170
3170
  }), [t, e]);
3171
- }, Qi = () => {
3171
+ }, Zi = () => {
3172
3172
  const t = k(), e = k(), i = k(), n = k(), r = k(), o = k(), s = k(), a = k(!1), d = k("");
3173
3173
  return {
3174
3174
  afterAd: t,
@@ -3181,7 +3181,7 @@ const Se = (t, e) => {
3181
3181
  visible: a,
3182
3182
  src: d
3183
3183
  };
3184
- }, Oo = q`
3184
+ }, Do = G`
3185
3185
  ${M}
3186
3186
  position: fixed;
3187
3187
  z-index: 2147483647;
@@ -3200,7 +3200,7 @@ const Se = (t, e) => {
3200
3200
  width: 100%;
3201
3201
  height: 100%;
3202
3202
  }
3203
- `, Zi = (t) => {
3203
+ `, en = (t) => {
3204
3204
  let {
3205
3205
  state: e
3206
3206
  } = t;
@@ -3213,18 +3213,18 @@ const Se = (t, e) => {
3213
3213
  adLinkClicked: a,
3214
3214
  visible: d,
3215
3215
  src: u
3216
- } = e, [l, c] = pe(!1), h = (v) => {
3216
+ } = e, [l, c] = _e(!1), h = (v) => {
3217
3217
  var y, w, g, A;
3218
3218
  c(!1), d.value = !1, v === "dismiss" ? (y = n.value) == null || y.call(n) : v === "viewed" && ((w = r.value) == null || w.call(r)), (g = i.value) == null || g.call(i), (A = o.value) == null || A.call(o);
3219
3219
  }, f = () => {
3220
3220
  var v;
3221
3221
  (v = s.value) == null || v.call(s);
3222
3222
  };
3223
- return Se("appsrockets_ad_dismissed", () => h("dismiss")), Se("appsrockets_ad_rewarded", () => h("viewed")), Se("appsrockets_ad_completed", () => h("viewed")), Se("appsrockets_ad_skipped", () => h("viewed")), Se("appsrockets_ad_clicked", (v) => {
3223
+ return Ee("appsrockets_ad_dismissed", () => h("dismiss")), Ee("appsrockets_ad_rewarded", () => h("viewed")), Ee("appsrockets_ad_completed", () => h("viewed")), Ee("appsrockets_ad_skipped", () => h("viewed")), Ee("appsrockets_ad_clicked", (v) => {
3224
3224
  var y;
3225
3225
  return (y = a.value) == null ? void 0 : y.call(a, v);
3226
- }), Se("appsrockets_ad_loaded", () => c(!0)), d.value ? m("div", {
3227
- className: Oo,
3226
+ }), Ee("appsrockets_ad_loaded", () => c(!0)), d.value ? m("div", {
3227
+ className: Do,
3228
3228
  style: {
3229
3229
  display: l ? "flex" : "none"
3230
3230
  },
@@ -3237,14 +3237,14 @@ const Se = (t, e) => {
3237
3237
  })
3238
3238
  }) : null;
3239
3239
  };
3240
- function le(t, e, i) {
3241
- return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3240
+ function ue(t, e, i) {
3241
+ return (e = Po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3242
3242
  }
3243
- function Do(t) {
3244
- var e = Po(t, "string");
3243
+ function Po(t) {
3244
+ var e = No(t, "string");
3245
3245
  return typeof e == "symbol" ? e : e + "";
3246
3246
  }
3247
- function Po(t, e) {
3247
+ function No(t, e) {
3248
3248
  if (typeof t != "object" || !t)
3249
3249
  return t;
3250
3250
  var i = t[Symbol.toPrimitive];
@@ -3256,9 +3256,9 @@ function Po(t, e) {
3256
3256
  }
3257
3257
  return (e === "string" ? String : Number)(t);
3258
3258
  }
3259
- class No {
3259
+ class Lo {
3260
3260
  constructor(e, i) {
3261
- le(this, "name", "APPSROCKETS"), le(this, "initialized", !1), le(this, "initCompleter", null), le(this, "context", void 0), le(this, "adsOverlay", null), le(this, "adsIsShowing", !1), le(this, "lastUnDisplayedAdBreak", null), le(this, "state", Qi()), le(this, "processUrl", (n, r) => {
3261
+ ue(this, "name", "APPSROCKETS"), ue(this, "initialized", !1), ue(this, "initCompleter", null), ue(this, "context", void 0), ue(this, "adsOverlay", null), ue(this, "adsIsShowing", !1), ue(this, "lastUnDisplayedAdBreak", null), ue(this, "state", Zi()), ue(this, "processUrl", (n, r) => {
3262
3262
  var d;
3263
3263
  const o = this.context.getContextInfo(), s = new URL(n), a = new URLSearchParams(s.search);
3264
3264
  return a.has("joliSource") || a.set("joliSource", o.joliSource), a.get("osType") || a.set("osType", o.osType), a.get("runtimeType") || a.set("runtimeType", o.runtimeType), a.get("mode") || a.set("mode", "AFG"), a.get("deviceId") || a.set("deviceId", o.deviceId), a.get("statusBarHeight") || a.set("statusBarHeight", ((d = this.context.getWindowInfo().statusBarHeight) != null ? d : 0).toString()), a.get("adsType") || a.set("adsType", r), s.search = a.toString(), s.toString();
@@ -3266,7 +3266,7 @@ class No {
3266
3266
  }
3267
3267
  async init() {
3268
3268
  var e;
3269
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), fe(m(Zi, {
3269
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), ye(m(en, {
3270
3270
  state: this.state
3271
3271
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
3272
3272
  }
@@ -3396,7 +3396,7 @@ class No {
3396
3396
  }
3397
3397
  }
3398
3398
  }
3399
- const en = () => {
3399
+ const tn = () => {
3400
3400
  window.googletag = window.googletag || {
3401
3401
  cmd: []
3402
3402
  }, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
@@ -3404,13 +3404,13 @@ const en = () => {
3404
3404
  });
3405
3405
  };
3406
3406
  function j(t, e, i) {
3407
- return (e = Lo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3407
+ return (e = Bo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3408
3408
  }
3409
- function Lo(t) {
3410
- var e = Bo(t, "string");
3409
+ function Bo(t) {
3410
+ var e = Mo(t, "string");
3411
3411
  return typeof e == "symbol" ? e : e + "";
3412
3412
  }
3413
- function Bo(t, e) {
3413
+ function Mo(t, e) {
3414
3414
  if (typeof t != "object" || !t)
3415
3415
  return t;
3416
3416
  var i = t[Symbol.toPrimitive];
@@ -3422,7 +3422,7 @@ function Bo(t, e) {
3422
3422
  }
3423
3423
  return (e === "string" ? String : Number)(t);
3424
3424
  }
3425
- let tn = class {
3425
+ let nn = class {
3426
3426
  constructor(e, i, n) {
3427
3427
  j(this, "adUnit", void 0), j(this, "project", void 0), j(this, "keyValue", void 0), j(this, "adsContext", null), j(this, "rewardedSlot", null), j(this, "rewardedPayload", null), j(this, "readyEvent", null), j(this, "withCommand", function() {
3428
3428
  googletag.cmd.push(...arguments);
@@ -3480,19 +3480,19 @@ let tn = class {
3480
3480
  }, 500);
3481
3481
  }
3482
3482
  });
3483
- }), this.adUnit = e, this.project = i, this.keyValue = n, en(), this.withCommand(() => {
3483
+ }), this.adUnit = e, this.project = i, this.keyValue = n, tn(), this.withCommand(() => {
3484
3484
  this.init();
3485
3485
  });
3486
3486
  }
3487
3487
  };
3488
- function H(t, e, i) {
3489
- return (e = Mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3488
+ function J(t, e, i) {
3489
+ return (e = $o(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3490
3490
  }
3491
- function Mo(t) {
3492
- var e = $o(t, "string");
3491
+ function $o(t) {
3492
+ var e = Fo(t, "string");
3493
3493
  return typeof e == "symbol" ? e : e + "";
3494
3494
  }
3495
- function $o(t, e) {
3495
+ function Fo(t, e) {
3496
3496
  if (typeof t != "object" || !t)
3497
3497
  return t;
3498
3498
  var i = t[Symbol.toPrimitive];
@@ -3504,31 +3504,31 @@ function $o(t, e) {
3504
3504
  }
3505
3505
  return (e === "string" ? String : Number)(t);
3506
3506
  }
3507
- class Fo {
3507
+ class Uo {
3508
3508
  constructor(e, i, n) {
3509
3509
  var r = this;
3510
- H(this, "adUnit", void 0), H(this, "project", void 0), H(this, "keyValue", void 0), H(this, "adsContext", null), H(this, "gamingInterstitialSlot", null), H(this, "readyEvent", null), H(this, "isRetrying", !1), H(this, "withCommand", function() {
3510
+ J(this, "adUnit", void 0), J(this, "project", void 0), J(this, "keyValue", void 0), J(this, "adsContext", null), J(this, "gamingInterstitialSlot", null), J(this, "readyEvent", null), J(this, "isRetrying", !1), J(this, "withCommand", function() {
3511
3511
  googletag.cmd.push(...arguments);
3512
- }), H(this, "init", () => {
3512
+ }), J(this, "init", () => {
3513
3513
  var o;
3514
3514
  this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((s) => {
3515
3515
  var a;
3516
3516
  (a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
3517
3517
  }), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
3518
- }), H(this, "destroy", function(o) {
3518
+ }), J(this, "destroy", function(o) {
3519
3519
  var a, d;
3520
3520
  (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), o !== "ignored" && (r.adsContext = null)), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
3521
- }), H(this, "reinit", function(o) {
3521
+ }), J(this, "reinit", function(o) {
3522
3522
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3523
3523
  r.destroy(o, s), r.init();
3524
- }), H(this, "handleSlotReady", (o) => {
3524
+ }), J(this, "handleSlotReady", (o) => {
3525
3525
  this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
3526
- }), H(this, "handleSlotClosed", (o) => {
3526
+ }), J(this, "handleSlotClosed", (o) => {
3527
3527
  var s, a;
3528
3528
  this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
3529
3529
  this.reinit("viewed");
3530
3530
  }));
3531
- }), H(this, "requestAds", (o) => {
3531
+ }), J(this, "requestAds", (o) => {
3532
3532
  this.withCommand(() => {
3533
3533
  var s, a, d;
3534
3534
  if (this.adsContext) {
@@ -3545,19 +3545,19 @@ class Fo {
3545
3545
  }), this.isRetrying = !1;
3546
3546
  }, 31e3)));
3547
3547
  });
3548
- }), en(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3548
+ }), tn(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3549
3549
  this.init();
3550
3550
  });
3551
3551
  }
3552
3552
  }
3553
- function Ae(t, e, i) {
3554
- return (e = Uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3553
+ function pe(t, e, i) {
3554
+ return (e = jo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3555
3555
  }
3556
- function Uo(t) {
3557
- var e = jo(t, "string");
3556
+ function jo(t) {
3557
+ var e = Vo(t, "string");
3558
3558
  return typeof e == "symbol" ? e : e + "";
3559
3559
  }
3560
- function jo(t, e) {
3560
+ function Vo(t, e) {
3561
3561
  if (typeof t != "object" || !t)
3562
3562
  return t;
3563
3563
  var i = t[Symbol.toPrimitive];
@@ -3569,9 +3569,9 @@ function jo(t, e) {
3569
3569
  }
3570
3570
  return (e === "string" ? String : Number)(t);
3571
3571
  }
3572
- class Vo {
3572
+ class Go {
3573
3573
  constructor(e, i) {
3574
- Ae(this, "name", "GOOGLE_GPT"), Ae(this, "context", void 0), Ae(this, "contextInfo", void 0), Ae(this, "initParams", void 0), Ae(this, "rewardAdManager", void 0), Ae(this, "interstitialManager", void 0), Ae(this, "insertScript", () => {
3574
+ pe(this, "name", "GOOGLE_GPT"), pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "initParams", void 0), pe(this, "rewardAdManager", void 0), pe(this, "interstitialManager", void 0), pe(this, "insertScript", () => {
3575
3575
  const n = "jolibox-google-gpt";
3576
3576
  let r = document.getElementById(n);
3577
3577
  r || (r = window.document.createElement("script"), r.id = n, r.async = !0, r.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", r.crossOrigin = "anonymous", document.head.appendChild(r));
@@ -3579,7 +3579,7 @@ class Vo {
3579
3579
  }
3580
3580
  async init() {
3581
3581
  const e = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : this.initParams.rewardedSlot, i = this.contextInfo.testAdsMode ? "/6355419/Travel/Europe/France/Paris" : this.initParams.interstitialSlot, r = `minigame-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
3582
- e && (this.rewardAdManager = new tn(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Fo(i, r, this.initParams.keyValue));
3582
+ e && (this.rewardAdManager = new nn(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Uo(i, r, this.initParams.keyValue));
3583
3583
  }
3584
3584
  adConfig(e, i) {
3585
3585
  }
@@ -3650,14 +3650,14 @@ class Vo {
3650
3650
  }
3651
3651
  }
3652
3652
  }
3653
- function _t(t, e, i) {
3653
+ function mt(t, e, i) {
3654
3654
  return (e = qo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3655
3655
  }
3656
3656
  function qo(t) {
3657
- var e = Go(t, "string");
3657
+ var e = Ko(t, "string");
3658
3658
  return typeof e == "symbol" ? e : e + "";
3659
3659
  }
3660
- function Go(t, e) {
3660
+ function Ko(t, e) {
3661
3661
  if (typeof t != "object" || !t)
3662
3662
  return t;
3663
3663
  var i = t[Symbol.toPrimitive];
@@ -3669,10 +3669,10 @@ function Go(t, e) {
3669
3669
  }
3670
3670
  return (e === "string" ? String : Number)(t);
3671
3671
  }
3672
- class Ko {
3672
+ class zo {
3673
3673
  constructor(e) {
3674
3674
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
3675
- _t(this, "context", void 0), _t(this, "placement", "GAME"), _t(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
3675
+ mt(this, "context", void 0), mt(this, "placement", "GAME"), mt(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
3676
3676
  }
3677
3677
  getLocation() {
3678
3678
  const e = new URLSearchParams(window.location.search), i = {};
@@ -3686,7 +3686,7 @@ class Ko {
3686
3686
  getDevice() {
3687
3687
  var e, i, n, r;
3688
3688
  return {
3689
- platform: (e = this.contextInfo.platform) != null ? e : xi.WebSDK,
3689
+ platform: (e = this.contextInfo.platform) != null ? e : Ri.WebSDK,
3690
3690
  os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
3691
3691
  appVersion: "1.0.0",
3692
3692
  // mock
@@ -3705,7 +3705,7 @@ class Ko {
3705
3705
  protocolVersion: "1.0.0",
3706
3706
  events: [{
3707
3707
  name: e,
3708
- type: ki.System,
3708
+ type: Ii.System,
3709
3709
  location: this.getLocation(),
3710
3710
  target: null,
3711
3711
  extra: i,
@@ -3713,19 +3713,19 @@ class Ko {
3713
3713
  userId: (o = this.contextInfo.userId) != null ? o : null
3714
3714
  }],
3715
3715
  device: this.getDevice(),
3716
- project: Ii.WebSDK
3716
+ project: xi.WebSDK
3717
3717
  };
3718
- return $n(r);
3718
+ return Fn(r);
3719
3719
  }
3720
3720
  }
3721
3721
  function z(t, e, i) {
3722
- return (e = zo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3722
+ return (e = Wo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3723
3723
  }
3724
- function zo(t) {
3725
- var e = Wo(t, "string");
3724
+ function Wo(t) {
3725
+ var e = Ho(t, "string");
3726
3726
  return typeof e == "symbol" ? e : e + "";
3727
3727
  }
3728
- function Wo(t, e) {
3728
+ function Ho(t, e) {
3729
3729
  if (typeof t != "object" || !t)
3730
3730
  return t;
3731
3731
  var i = t[Symbol.toPrimitive];
@@ -3737,9 +3737,9 @@ function Wo(t, e) {
3737
3737
  }
3738
3738
  return (e === "string" ? String : Number)(t);
3739
3739
  }
3740
- class Ut {
3740
+ class jt {
3741
3741
  constructor(e) {
3742
- z(this, "context", void 0), z(this, "adsTrackSerializer", void 0), z(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new Ko(this.context);
3742
+ z(this, "context", void 0), z(this, "adsTrackSerializer", void 0), z(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new zo(this.context);
3743
3743
  }
3744
3744
  getRequestContextData(e) {
3745
3745
  var r, o;
@@ -3775,7 +3775,7 @@ class Ut {
3775
3775
  };
3776
3776
  }
3777
3777
  }
3778
- class nn {
3778
+ class rn {
3779
3779
  constructor(e, i) {
3780
3780
  var n = this;
3781
3781
  z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "requestContext", void 0), z(this, "pendingAFGAdsInfo", {
@@ -3831,13 +3831,13 @@ class nn {
3831
3831
  return n.cacheAFVInfo(), o;
3832
3832
  } else
3833
3833
  return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
3834
- }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new Ut(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
3834
+ }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new jt(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
3835
3835
  }
3836
3836
  }
3837
3837
  function Jo(t, e, i) {
3838
- return (e = Ho(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3838
+ return (e = Yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3839
3839
  }
3840
- function Ho(t) {
3840
+ function Yo(t) {
3841
3841
  var e = Xo(t, "string");
3842
3842
  return typeof e == "symbol" ? e : e + "";
3843
3843
  }
@@ -3853,7 +3853,7 @@ function Xo(t, e) {
3853
3853
  }
3854
3854
  return (e === "string" ? String : Number)(t);
3855
3855
  }
3856
- const Yo = function(t) {
3856
+ const Qo = function(t) {
3857
3857
  for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
3858
3858
  i[n - 1] = arguments[n];
3859
3859
  if (t)
@@ -3863,12 +3863,12 @@ const Yo = function(t) {
3863
3863
  console.error("[JoliboxSDK] Callback error:", r);
3864
3864
  }
3865
3865
  };
3866
- class rn {
3866
+ class on {
3867
3867
  constructor(e) {
3868
3868
  this.context = e, Jo(this, "canIUseHelper", void 0), this.context = e;
3869
3869
  const {
3870
3870
  canIUseNative: i
3871
- } = yn(() => this.context.getContextInfo().deviceInfo.nativeSDKVersionCode || 1e6, () => this.context.getContextInfo().deviceInfo.platform || "h5");
3871
+ } = gn(() => this.context.getContextInfo().deviceInfo.nativeSDKVersionCode || 1e6, () => this.context.getContextInfo().deviceInfo.platform || "h5");
3872
3872
  this.canIUseHelper = i;
3873
3873
  }
3874
3874
  /**
@@ -3881,7 +3881,7 @@ class rn {
3881
3881
  const {
3882
3882
  errNo: i,
3883
3883
  errMsg: n
3884
- } = await yt("loadAdsAsync", {
3884
+ } = await gt("loadAdsAsync", {
3885
3885
  params: {
3886
3886
  providers: e.providers
3887
3887
  }
@@ -3901,7 +3901,7 @@ class rn {
3901
3901
  }
3902
3902
  }
3903
3903
  canIUse() {
3904
- return ot() && this.canIUseHelper("loadAdsAsync") && this.canIUseHelper("showAdAsync");
3904
+ return st() && this.canIUseHelper("loadAdsAsync") && this.canIUseHelper("showAdAsync");
3905
3905
  }
3906
3906
  /**
3907
3907
  * Show a loaded ad
@@ -3910,7 +3910,7 @@ class rn {
3910
3910
  */
3911
3911
  async showAdAsync(e) {
3912
3912
  try {
3913
- const i = await yt("showAdAsync", {
3913
+ const i = await gt("showAdAsync", {
3914
3914
  params: {
3915
3915
  providers: e.providers
3916
3916
  }
@@ -3925,15 +3925,15 @@ class rn {
3925
3925
  const r = e.timeout !== void 0 ? e.timeout : -1;
3926
3926
  let o = null;
3927
3927
  const s = () => {
3928
- gn("onAdsStateChange", a), o && (clearTimeout(o), o = null);
3928
+ wn("onAdsStateChange", a), o && (clearTimeout(o), o = null);
3929
3929
  }, a = (d) => {
3930
3930
  var l;
3931
3931
  if (d.UUID !== n)
3932
3932
  return;
3933
3933
  const u = (l = e.callbacks) == null ? void 0 : l[d.event];
3934
- u && Yo(u, d.data), ["onAdClosed", "onAdError", "onAdDismissed"].includes(d.event) && s();
3934
+ u && Qo(u, d.data), ["onAdClosed", "onAdError", "onAdDismissed"].includes(d.event) && s();
3935
3935
  };
3936
- wn("onAdsStateChange", a), r > 0 && (o = setTimeout(() => {
3936
+ An("onAdsStateChange", a), r > 0 && (o = setTimeout(() => {
3937
3937
  s(), console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${r}ms timeout`);
3938
3938
  }, r));
3939
3939
  }
@@ -3958,7 +3958,7 @@ class rn {
3958
3958
  const {
3959
3959
  errNo: i,
3960
3960
  data: n
3961
- } = yt("isAdsReadySync", {
3961
+ } = gt("isAdsReadySync", {
3962
3962
  params: {
3963
3963
  providers: e.providers
3964
3964
  }
@@ -3969,14 +3969,14 @@ class rn {
3969
3969
  }
3970
3970
  }
3971
3971
  }
3972
- function ue(t, e, i) {
3973
- return (e = Qo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3972
+ function ce(t, e, i) {
3973
+ return (e = Zo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3974
3974
  }
3975
- function Qo(t) {
3976
- var e = Zo(t, "string");
3975
+ function Zo(t) {
3976
+ var e = es(t, "string");
3977
3977
  return typeof e == "symbol" ? e : e + "";
3978
3978
  }
3979
- function Zo(t, e) {
3979
+ function es(t, e) {
3980
3980
  if (typeof t != "object" || !t)
3981
3981
  return t;
3982
3982
  var i = t[Symbol.toPrimitive];
@@ -3988,21 +3988,21 @@ function Zo(t, e) {
3988
3988
  }
3989
3989
  return (e === "string" ? String : Number)(t);
3990
3990
  }
3991
- class es {
3991
+ class ts {
3992
3992
  get isAdsReady() {
3993
3993
  return this._isAdsReady;
3994
3994
  }
3995
3995
  constructor(e, i) {
3996
- ue(this, "providers", void 0), ue(this, "helper", void 0), ue(this, "adsContext", null), ue(this, "_isAdsReady", !1), ue(this, "init", async () => {
3996
+ ce(this, "providers", void 0), ce(this, "helper", void 0), ce(this, "adsContext", null), ce(this, "_isAdsReady", !1), ce(this, "init", async () => {
3997
3997
  this.helper.canIUse() ? (await this.helper.loadAdsAsync({
3998
3998
  providers: this.providers
3999
3999
  })).code === "SUCCESS" ? this._isAdsReady = !0 : this._isAdsReady = !1 : this._isAdsReady = !1;
4000
- }), ue(this, "destroy", (n) => {
4000
+ }), ce(this, "destroy", (n) => {
4001
4001
  var r, o;
4002
4002
  this._isAdsReady = !1, (o = (r = this.adsContext) == null ? void 0 : r.adBreakDone) == null || o.call(r, n), n !== "ignored" && (this.adsContext = null);
4003
- }), ue(this, "reinit", async (n) => {
4003
+ }), ce(this, "reinit", async (n) => {
4004
4004
  this.destroy(n), await this.init();
4005
- }), ue(this, "requestAds", async (n, r) => {
4005
+ }), ce(this, "requestAds", async (n, r) => {
4006
4006
  if (this.adsContext) {
4007
4007
  this.destroy("ignored");
4008
4008
  return;
@@ -4013,7 +4013,7 @@ class es {
4013
4013
  } catch (o) {
4014
4014
  this.destroy("notReady");
4015
4015
  }
4016
- }), ue(this, "showAd", () => {
4016
+ }), ce(this, "showAd", () => {
4017
4017
  if (!this.adsContext) {
4018
4018
  this.destroy("error");
4019
4019
  return;
@@ -4047,17 +4047,17 @@ class es {
4047
4047
  callbacks: s
4048
4048
  })).code !== "SUCCESS" && this.reinit("noAdPreloaded");
4049
4049
  });
4050
- }), this.providers = i, this.helper = new rn(e), this.init();
4050
+ }), this.providers = i, this.helper = new on(e), this.init();
4051
4051
  }
4052
4052
  }
4053
- function ce(t, e, i) {
4054
- return (e = ts(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4053
+ function he(t, e, i) {
4054
+ return (e = is(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4055
4055
  }
4056
- function ts(t) {
4057
- var e = is(t, "string");
4056
+ function is(t) {
4057
+ var e = ns(t, "string");
4058
4058
  return typeof e == "symbol" ? e : e + "";
4059
4059
  }
4060
- function is(t, e) {
4060
+ function ns(t, e) {
4061
4061
  if (typeof t != "object" || !t)
4062
4062
  return t;
4063
4063
  var i = t[Symbol.toPrimitive];
@@ -4069,24 +4069,24 @@ function is(t, e) {
4069
4069
  }
4070
4070
  return (e === "string" ? String : Number)(t);
4071
4071
  }
4072
- class ns {
4072
+ class rs {
4073
4073
  get isAdsReady() {
4074
4074
  return this._isAdsReady;
4075
4075
  }
4076
4076
  constructor(e, i) {
4077
4077
  var n = this;
4078
- ce(this, "providers", void 0), ce(this, "helper", void 0), ce(this, "adsContext", null), ce(this, "_isAdsReady", !1), ce(this, "init", async () => {
4078
+ he(this, "providers", void 0), he(this, "helper", void 0), he(this, "adsContext", null), he(this, "_isAdsReady", !1), he(this, "init", async () => {
4079
4079
  this.helper.canIUse() && ((await this.helper.loadAdsAsync({
4080
4080
  providers: this.providers
4081
4081
  })).code === "SUCCESS" ? this._isAdsReady = !0 : this._isAdsReady = !1);
4082
- }), ce(this, "destroy", function(r) {
4082
+ }), he(this, "destroy", function(r) {
4083
4083
  var s, a;
4084
4084
  let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
4085
4085
  n._isAdsReady = !1, o && ((a = (s = n.adsContext) == null ? void 0 : s.onEnd) == null || a.call(s, r), r !== "ignored" && (n.adsContext = null));
4086
- }), ce(this, "reinit", async function(r) {
4086
+ }), he(this, "reinit", async function(r) {
4087
4087
  let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
4088
4088
  n.destroy(r, o), await n.init();
4089
- }), ce(this, "requestAds", async (r, o) => {
4089
+ }), he(this, "requestAds", async (r, o) => {
4090
4090
  if (this.adsContext) {
4091
4091
  this.destroy("ignored");
4092
4092
  return;
@@ -4097,7 +4097,7 @@ class ns {
4097
4097
  } catch (s) {
4098
4098
  this.destroy("notReady");
4099
4099
  }
4100
- }), ce(this, "showAd", async () => {
4100
+ }), he(this, "showAd", async () => {
4101
4101
  var d, u;
4102
4102
  if (!this.adsContext) {
4103
4103
  this.destroy("error");
@@ -4125,17 +4125,17 @@ class ns {
4125
4125
  providers: this.providers,
4126
4126
  callbacks: s
4127
4127
  })).code !== "SUCCESS" && this.reinit("noAdPreloaded");
4128
- }), this.providers = i, this.helper = new rn(e), this.init();
4128
+ }), this.providers = i, this.helper = new on(e), this.init();
4129
4129
  }
4130
4130
  }
4131
- function Me(t, e, i) {
4132
- return (e = rs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4131
+ function $e(t, e, i) {
4132
+ return (e = os(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4133
4133
  }
4134
- function rs(t) {
4135
- var e = os(t, "string");
4134
+ function os(t) {
4135
+ var e = ss(t, "string");
4136
4136
  return typeof e == "symbol" ? e : e + "";
4137
4137
  }
4138
- function os(t, e) {
4138
+ function ss(t, e) {
4139
4139
  if (typeof t != "object" || !t)
4140
4140
  return t;
4141
4141
  var i = t[Symbol.toPrimitive];
@@ -4147,11 +4147,11 @@ function os(t, e) {
4147
4147
  }
4148
4148
  return (e === "string" ? String : Number)(t);
4149
4149
  }
4150
- class ss {
4150
+ class as {
4151
4151
  constructor(e, i) {
4152
- Me(this, "name", "INTERNAL_NATIVE"), Me(this, "context", void 0), Me(this, "rewardAdManager", void 0), Me(this, "interstitialManager", void 0), Me(this, "initProviders", void 0), this.context = e, this.initProviders = i.providers;
4152
+ $e(this, "name", "INTERNAL_NATIVE"), $e(this, "context", void 0), $e(this, "rewardAdManager", void 0), $e(this, "interstitialManager", void 0), $e(this, "initProviders", void 0), this.context = e, this.initProviders = i.providers;
4153
4153
  const n = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL", "NATIVE"], i.providers), r = this.getConfigsByTypes(["INTERSTITIAL"], i.providers);
4154
- n.length > 0 && (this.rewardAdManager = new es(this.context, n)), r.length > 0 && (this.interstitialManager = new ns(this.context, r));
4154
+ n.length > 0 && (this.rewardAdManager = new ts(this.context, n)), r.length > 0 && (this.interstitialManager = new rs(this.context, r));
4155
4155
  }
4156
4156
  getConfigsByTypes(e, i, n) {
4157
4157
  const r = [];
@@ -4243,22 +4243,22 @@ class ss {
4243
4243
  }
4244
4244
  }
4245
4245
  }
4246
- const mt = "jolibox-nb-proxy";
4247
- let as = 0;
4248
- function bi(t, e, i, n) {
4246
+ const St = "jolibox-nb-proxy";
4247
+ let ds = 0;
4248
+ function pi(t, e, i, n) {
4249
4249
  return new Promise((r, o) => {
4250
4250
  if (!window.parent || window.parent === window) {
4251
4251
  o(new Error("[ParentProxy] No parent window"));
4252
4252
  return;
4253
4253
  }
4254
- const s = `${mt}-${++as}`, a = (u) => {
4254
+ const s = `${St}-${++ds}`, a = (u) => {
4255
4255
  const l = u.data;
4256
- (l == null ? void 0 : l.type) === `${mt}:response` && l.id === s && (window.removeEventListener("message", a), clearTimeout(d), l.error ? o(new Error(l.error)) : r(l.result));
4256
+ (l == null ? void 0 : l.type) === `${St}:response` && l.id === s && (window.removeEventListener("message", a), clearTimeout(d), l.error ? o(new Error(l.error)) : r(l.result));
4257
4257
  }, d = window.setTimeout(() => {
4258
4258
  window.removeEventListener("message", a), o(new Error(`[ParentProxy] Timeout: ${t.join(".")}.${e}`));
4259
4259
  }, 15e3);
4260
4260
  window.addEventListener("message", a), window.parent.postMessage({
4261
- type: `${mt}:request`,
4261
+ type: `${St}:request`,
4262
4262
  id: s,
4263
4263
  path: t,
4264
4264
  action: e,
@@ -4267,41 +4267,41 @@ function bi(t, e, i, n) {
4267
4267
  }, "*");
4268
4268
  });
4269
4269
  }
4270
- function on(t) {
4270
+ function sn(t) {
4271
4271
  return console.log("[JoliboxSDK] NewsBreak createProxyForPath basePath:", t), new Proxy(() => {
4272
4272
  }, {
4273
4273
  get(e, i) {
4274
4274
  if (console.log("[JoliboxSDK] NewsBreak createProxyForPath get:", i), !(i === "then" || i === "toJSON" || typeof i == "symbol"))
4275
- return on([...t, i]);
4275
+ return sn([...t, i]);
4276
4276
  },
4277
4277
  set(e, i, n) {
4278
- return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:", i), bi([...t, i], "set", void 0, n).catch((r) => {
4278
+ return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:", i), pi([...t, i], "set", void 0, n).catch((r) => {
4279
4279
  console.warn(`[ParentProxy] set ${[...t, i].join(".")} failed:`, r);
4280
4280
  }), !0;
4281
4281
  },
4282
4282
  apply(e, i, n) {
4283
- return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:", n), bi(t, "call", n);
4283
+ return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:", n), pi(t, "call", n);
4284
4284
  }
4285
4285
  });
4286
4286
  }
4287
- function ds(t) {
4288
- return on([t]);
4287
+ function ls(t) {
4288
+ return sn([t]);
4289
4289
  }
4290
- const nt = () => {
4290
+ const rt = () => {
4291
4291
  try {
4292
4292
  if (window.parent && window.parent !== window)
4293
- return ds("GameSDK");
4293
+ return ls("GameSDK");
4294
4294
  } catch (t) {
4295
4295
  }
4296
4296
  };
4297
- function ve(t, e, i) {
4298
- return (e = ls(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4297
+ function ge(t, e, i) {
4298
+ return (e = us(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4299
4299
  }
4300
- function ls(t) {
4301
- var e = us(t, "string");
4300
+ function us(t) {
4301
+ var e = cs(t, "string");
4302
4302
  return typeof e == "symbol" ? e : e + "";
4303
4303
  }
4304
- function us(t, e) {
4304
+ function cs(t, e) {
4305
4305
  if (typeof t != "object" || !t)
4306
4306
  return t;
4307
4307
  var i = t[Symbol.toPrimitive];
@@ -4313,11 +4313,11 @@ function us(t, e) {
4313
4313
  }
4314
4314
  return (e === "string" ? String : Number)(t);
4315
4315
  }
4316
- class cs {
4316
+ class hs {
4317
4317
  constructor() {
4318
- ve(this, "adsContext", null), ve(this, "_isReady", !1), ve(this, "_isAvailable", !1), ve(this, "init", async () => {
4318
+ ge(this, "adsContext", null), ge(this, "_isReady", !1), ge(this, "_isAvailable", !1), ge(this, "init", async () => {
4319
4319
  this._isReady = !1;
4320
- const e = nt();
4320
+ const e = rt();
4321
4321
  if (e)
4322
4322
  try {
4323
4323
  if (this._isAvailable = await e.isAvailable("rewarded"), console.log("[JoliboxSDK] NewsBreak init isAvailable", this._isAvailable), !this._isAvailable)
@@ -4329,18 +4329,18 @@ class cs {
4329
4329
  } catch (i) {
4330
4330
  this._isReady = !1;
4331
4331
  }
4332
- }), ve(this, "destroy", (e) => {
4332
+ }), ge(this, "destroy", (e) => {
4333
4333
  var i, n;
4334
4334
  this._isReady = !1, (n = (i = this.adsContext) == null ? void 0 : i.adBreakDone) == null || n.call(i, e), e !== "ignored" && (this.adsContext = null);
4335
- }), ve(this, "reinit", async (e) => {
4335
+ }), ge(this, "reinit", async (e) => {
4336
4336
  this.destroy(e), await this.init();
4337
- }), ve(this, "requestAds", (e) => {
4337
+ }), ge(this, "requestAds", (e) => {
4338
4338
  if (console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext", this.adsContext), this.adsContext) {
4339
4339
  this.destroy("ignored");
4340
4340
  return;
4341
4341
  }
4342
4342
  this.adsContext = e;
4343
- const i = nt();
4343
+ const i = rt();
4344
4344
  if (console.log("[JoliboxSDK] NewsBreak newsbreak sdk", i), !i) {
4345
4345
  this.destroy("notReady");
4346
4346
  return;
@@ -4360,7 +4360,7 @@ class cs {
4360
4360
  clearTimeout(r), this.reinit("noAdPreloaded");
4361
4361
  });
4362
4362
  }
4363
- }), ve(this, "showAd", () => {
4363
+ }), ge(this, "showAd", () => {
4364
4364
  if (!this.adsContext) {
4365
4365
  this.destroy("error");
4366
4366
  return;
@@ -4368,7 +4368,7 @@ class cs {
4368
4368
  this.adsContext.beforeReward(async () => {
4369
4369
  var i, n, r, o, s, a, d, u, l, c, h, f, v, y;
4370
4370
  (n = (i = this.adsContext) == null ? void 0 : i.beforeAd) == null || n.call(i);
4371
- const e = nt();
4371
+ const e = rt();
4372
4372
  if (!e) {
4373
4373
  (o = (r = this.adsContext) == null ? void 0 : r.afterAd) == null || o.call(r), this.reinit("error");
4374
4374
  return;
@@ -4387,14 +4387,14 @@ class cs {
4387
4387
  }), this.init();
4388
4388
  }
4389
4389
  }
4390
- function pi(t, e, i) {
4391
- return (e = hs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4390
+ function _i(t, e, i) {
4391
+ return (e = fs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4392
4392
  }
4393
- function hs(t) {
4394
- var e = fs(t, "string");
4393
+ function fs(t) {
4394
+ var e = vs(t, "string");
4395
4395
  return typeof e == "symbol" ? e : e + "";
4396
4396
  }
4397
- function fs(t, e) {
4397
+ function vs(t, e) {
4398
4398
  if (typeof t != "object" || !t)
4399
4399
  return t;
4400
4400
  var i = t[Symbol.toPrimitive];
@@ -4406,17 +4406,17 @@ function fs(t, e) {
4406
4406
  }
4407
4407
  return (e === "string" ? String : Number)(t);
4408
4408
  }
4409
- class vs {
4409
+ class ys {
4410
4410
  constructor() {
4411
- pi(this, "name", "NEWSBREAK"), pi(this, "rewardAdManager", void 0);
4411
+ _i(this, "name", "NEWSBREAK"), _i(this, "rewardAdManager", void 0);
4412
4412
  }
4413
4413
  async init() {
4414
- const e = nt();
4414
+ const e = rt();
4415
4415
  if (!e) {
4416
4416
  console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");
4417
4417
  return;
4418
4418
  }
4419
- e.onEnter(), this.rewardAdManager = new cs();
4419
+ e.onEnter(), this.rewardAdManager = new hs();
4420
4420
  }
4421
4421
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4422
4422
  adConfig(e, i) {
@@ -4460,13 +4460,13 @@ class vs {
4460
4460
  }
4461
4461
  }
4462
4462
  function te(t, e, i) {
4463
- return (e = ys(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4463
+ return (e = gs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4464
4464
  }
4465
- function ys(t) {
4466
- var e = gs(t, "string");
4465
+ function gs(t) {
4466
+ var e = ws(t, "string");
4467
4467
  return typeof e == "symbol" ? e : e + "";
4468
4468
  }
4469
- function gs(t, e) {
4469
+ function ws(t, e) {
4470
4470
  if (typeof t != "object" || !t)
4471
4471
  return t;
4472
4472
  var i = t[Symbol.toPrimitive];
@@ -4478,10 +4478,10 @@ function gs(t, e) {
4478
4478
  }
4479
4479
  return (e === "string" ? String : Number)(t);
4480
4480
  }
4481
- class Qs {
4481
+ class Zs {
4482
4482
  constructor(e) {
4483
4483
  if (te(this, "context", void 0), te(this, "contextInfo", void 0), te(this, "providers", {}), te(this, "channelPolicy", void 0), te(this, "adsActionDetection", void 0), te(this, "requestContext", void 0), te(this, "adsRequest", void 0), te(this, "initialized", !1), te(this, "adsIsShowing", !1), te(this, "lastAdBreak", void 0), te(this, "initializedTimeStamp", Date.now()), e)
4484
- this.context = e, this.channelPolicy = new nr(this.context), this.adsActionDetection = new er(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new nn(e), this.requestContext = new Ut(e);
4484
+ this.context = e, this.channelPolicy = new rr(this.context), this.adsActionDetection = new tr(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new rn(e), this.requestContext = new jt(e);
4485
4485
  else
4486
4486
  throw new Error("JoliboxAdsForGame requires a configuration object");
4487
4487
  }
@@ -4506,39 +4506,39 @@ class Qs {
4506
4506
  for (const a of s)
4507
4507
  switch (a.provider) {
4508
4508
  case "GOOGLE_GPT": {
4509
- const d = new Vo(this.context, a.params);
4509
+ const d = new Go(this.context, a.params);
4510
4510
  await d.init(), this.providers[a.provider] = d;
4511
4511
  break;
4512
4512
  }
4513
4513
  case "ADSENSE":
4514
4514
  case "ADSENSE_ADMOB": {
4515
- const d = new sr(this.context, a.params);
4515
+ const d = new ar(this.context, a.params);
4516
4516
  await d.init(), this.providers[a.provider] = d;
4517
4517
  break;
4518
4518
  }
4519
4519
  case "OKSPIN": {
4520
- const d = new go(this.context, a.params);
4520
+ const d = new wo(this.context, a.params);
4521
4521
  await d.init(), this.providers.OKSPIN = d;
4522
4522
  break;
4523
4523
  }
4524
4524
  case "APPSROCKETS": {
4525
- const d = new No(this.context, a.params);
4525
+ const d = new Lo(this.context, a.params);
4526
4526
  await d.init(), this.providers.APPSROCKETS = d;
4527
4527
  break;
4528
4528
  }
4529
4529
  case "ADSENSE_BANNER_AS_AFG": {
4530
- const d = new Co(this.context, a.params);
4530
+ const d = new Oo(this.context, a.params);
4531
4531
  await d.init(), this.providers.ADSENSE_BANNER_AS_AFG = d;
4532
4532
  break;
4533
4533
  }
4534
4534
  case "INTERNAL_NATIVE": {
4535
- const d = new ss(this.context, a.params);
4535
+ const d = new as(this.context, a.params);
4536
4536
  await d.init(), this.providers.INTERNAL_NATIVE = d;
4537
4537
  break;
4538
4538
  }
4539
4539
  case "NEWSBREAK": {
4540
4540
  console.log("[JoliboxSDK] NewsBreak Provider", a);
4541
- const d = new vs();
4541
+ const d = new ys();
4542
4542
  await d.init(), this.providers.NEWSBREAK = d;
4543
4543
  break;
4544
4544
  }
@@ -4611,8 +4611,8 @@ class Qs {
4611
4611
  }
4612
4612
  case "reward": {
4613
4613
  e.beforeReward(() => {
4614
- var b, ee, _e, L;
4615
- (b = e.beforeAd) == null || b.call(e), (ee = e.adViewed) == null || ee.call(e), (_e = e.afterAd) == null || _e.call(e), (L = e.adBreakDone) == null || L.call(e, {
4614
+ var b, ee, me, L;
4615
+ (b = e.beforeAd) == null || b.call(e), (ee = e.adViewed) == null || ee.call(e), (me = e.afterAd) == null || me.call(e), (L = e.adBreakDone) == null || L.call(e, {
4616
4616
  breakType: e.type,
4617
4617
  breakName: e.name,
4618
4618
  breakFormat: "reward",
@@ -4652,25 +4652,25 @@ class Qs {
4652
4652
  return;
4653
4653
  }
4654
4654
  let b = !0, ee = null;
4655
- const _e = new Yn(this.context);
4655
+ const me = new Qn(this.context);
4656
4656
  this.adsActionDetection.adBreakIsShowing = !0;
4657
- const L = _.filter((I) => I.isNative).sort((I, Y) => I.seq - Y.seq), C = _.filter((I) => !I.isNative).sort((I, Y) => I.seq - Y.seq), W = {
4657
+ const L = _.filter((I) => I.isNative).sort((I, X) => I.seq - X.seq), C = _.filter((I) => !I.isNative).sort((I, X) => I.seq - X.seq), W = {
4658
4658
  seq: (w = (y = L[0]) == null ? void 0 : y.seq) != null ? w : 0,
4659
4659
  provider: "INTERNAL_NATIVE",
4660
4660
  params: L
4661
4661
  };
4662
- let G;
4663
- for (L.length > 0 ? G = [W].concat(C) : G = C, G = G.sort((I, Y) => I.seq - Y.seq).map((I, Y) => zt(vt({}, I), {
4664
- seq: Y
4662
+ let q;
4663
+ for (L.length > 0 ? q = [W].concat(C) : q = C, q = q.sort((I, X) => I.seq - X.seq).map((I, X) => Wt(yt({}, I), {
4664
+ seq: X
4665
4665
  // re-assign seq
4666
- })); G.length > 0; ) {
4667
- const I = G.shift(), Y = this.providers[I.provider];
4668
- if (Y) {
4669
- const [sn, an] = await _e.callAdBreakAndContinue(Y, e, I, (jt) => {
4670
- var Vt;
4671
- this.adsIsShowing = jt, (Vt = this.context.eventEmitter) == null || Vt.emit("isAdShowing", jt);
4666
+ })); q.length > 0; ) {
4667
+ const I = q.shift(), X = this.providers[I.provider];
4668
+ if (X) {
4669
+ const [an, dn] = await me.callAdBreakAndContinue(X, e, I, (Vt) => {
4670
+ var Gt;
4671
+ this.adsIsShowing = Vt, (Gt = this.context.eventEmitter) == null || Gt.emit("isAdShowing", Vt);
4672
4672
  });
4673
- b = sn, ee = an;
4673
+ b = an, ee = dn;
4674
4674
  } else
4675
4675
  b = !0, ee = {
4676
4676
  breakType: e.type,
@@ -4698,13 +4698,13 @@ class Qs {
4698
4698
  }
4699
4699
  }
4700
4700
  function Xe(t, e, i) {
4701
- return (e = ws(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4701
+ return (e = As(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4702
4702
  }
4703
- function ws(t) {
4704
- var e = As(t, "string");
4703
+ function As(t) {
4704
+ var e = bs(t, "string");
4705
4705
  return typeof e == "symbol" ? e : e + "";
4706
4706
  }
4707
- function As(t, e) {
4707
+ function bs(t, e) {
4708
4708
  if (typeof t != "object" || !t)
4709
4709
  return t;
4710
4710
  var i = t[Symbol.toPrimitive];
@@ -4716,7 +4716,7 @@ function As(t, e) {
4716
4716
  }
4717
4717
  return (e === "string" ? String : Number)(t);
4718
4718
  }
4719
- class bs {
4719
+ class ps {
4720
4720
  constructor(e) {
4721
4721
  Xe(this, "context", void 0), Xe(this, "currentProvider", void 0), Xe(this, "continueCallback", void 0), Xe(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
4722
4722
  }
@@ -4739,7 +4739,7 @@ class bs {
4739
4739
  wrapAdPlaying(e) {
4740
4740
  return (i) => {
4741
4741
  var n, r;
4742
- this.context.track("CallAFVPlaying", this.paramsToTrack), ot() && this.context.track("mmp_ad_impression", {
4742
+ this.context.track("CallAFVPlaying", this.paramsToTrack), st() && this.context.track("mmp_ad_impression", {
4743
4743
  ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
4744
4744
  ad_format: "AFV",
4745
4745
  module: "drama",
@@ -4767,14 +4767,14 @@ class bs {
4767
4767
  });
4768
4768
  }
4769
4769
  }
4770
- function St(t, e, i) {
4771
- return (e = ps(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4770
+ function Et(t, e, i) {
4771
+ return (e = _s(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4772
4772
  }
4773
- function ps(t) {
4774
- var e = _s(t, "string");
4773
+ function _s(t) {
4774
+ var e = ms(t, "string");
4775
4775
  return typeof e == "symbol" ? e : e + "";
4776
4776
  }
4777
- function _s(t, e) {
4777
+ function ms(t, e) {
4778
4778
  if (typeof t != "object" || !t)
4779
4779
  return t;
4780
4780
  var i = t[Symbol.toPrimitive];
@@ -4788,7 +4788,7 @@ function _s(t, e) {
4788
4788
  }
4789
4789
  class F extends Error {
4790
4790
  constructor(e, i) {
4791
- super(e.message), St(this, "name", void 0), St(this, "type", void 0), St(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
4791
+ super(e.message), Et(this, "name", void 0), Et(this, "type", void 0), Et(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
4792
4792
  }
4793
4793
  static from(e, i) {
4794
4794
  switch (i) {
@@ -4800,13 +4800,13 @@ class F extends Error {
4800
4800
  }
4801
4801
  }
4802
4802
  function O(t, e, i) {
4803
- return (e = ms(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4803
+ return (e = Ss(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4804
4804
  }
4805
- function ms(t) {
4806
- var e = Ss(t, "string");
4805
+ function Ss(t) {
4806
+ var e = Es(t, "string");
4807
4807
  return typeof e == "symbol" ? e : e + "";
4808
4808
  }
4809
- function Ss(t, e) {
4809
+ function Es(t, e) {
4810
4810
  if (typeof t != "object" || !t)
4811
4811
  return t;
4812
4812
  var i = t[Symbol.toPrimitive];
@@ -4818,7 +4818,7 @@ function Ss(t, e) {
4818
4818
  }
4819
4819
  return (e === "string" ? String : Number)(t);
4820
4820
  }
4821
- class Es {
4821
+ class ks {
4822
4822
  constructor(e, i, n) {
4823
4823
  O(this, "adsLoader", void 0), O(this, "adDisplayContainer", void 0), O(this, "isAdPlaying", !1), O(this, "isContentFinished", !1), O(this, "videoContent", void 0), O(this, "adContainer", void 0), O(this, "adsManager", void 0), O(this, "intervalTimer", void 0), O(this, "completed", !1), O(this, "adTagUrl", void 0), O(this, "notifyRequestAd", void 0), O(this, "notifyLoaded", void 0), O(this, "notifyPlayingAd", void 0), O(this, "notifyCompleted", void 0), O(this, "notifyError", void 0), O(this, "destroy", () => {
4824
4824
  var r, o, s, a, d, u, l, c, h, f, v;
@@ -4884,8 +4884,8 @@ class Es {
4884
4884
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
4885
4885
  }
4886
4886
  }
4887
- var rt = /* @__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))(rt || {});
4888
- const ks = () => {
4887
+ var ot = /* @__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))(ot || {});
4888
+ const Is = () => {
4889
4889
  const t = k(!1), e = k(!1), i = k(null), n = Jt(), r = Jt();
4890
4890
  return {
4891
4891
  visible: t,
@@ -4894,7 +4894,7 @@ const ks = () => {
4894
4894
  videoRef: n,
4895
4895
  adContainerRef: r
4896
4896
  };
4897
- }, Is = q`
4897
+ }, xs = G`
4898
4898
  ${M}
4899
4899
  position: fixed;
4900
4900
  left: 0;
@@ -4939,7 +4939,7 @@ const ks = () => {
4939
4939
  cursor: pointer;
4940
4940
  }
4941
4941
  }
4942
- `, xs = (t) => {
4942
+ `, Rs = (t) => {
4943
4943
  let {
4944
4944
  onReady: e,
4945
4945
  state: i
@@ -4955,10 +4955,10 @@ const ks = () => {
4955
4955
  r.value = null, o.value = !1;
4956
4956
  }));
4957
4957
  };
4958
- return Te(() => {
4958
+ return Ce(() => {
4959
4959
  e();
4960
4960
  }, [e]), m("div", {
4961
- className: Is,
4961
+ className: xs,
4962
4962
  style: {
4963
4963
  display: n.value ? "block" : "none"
4964
4964
  },
@@ -5004,14 +5004,14 @@ const ks = () => {
5004
5004
  })
5005
5005
  });
5006
5006
  };
5007
- function he(t, e, i) {
5008
- return (e = Rs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5007
+ function fe(t, e, i) {
5008
+ return (e = Ts(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5009
5009
  }
5010
- function Rs(t) {
5011
- var e = Ts(t, "string");
5010
+ function Ts(t) {
5011
+ var e = Cs(t, "string");
5012
5012
  return typeof e == "symbol" ? e : e + "";
5013
5013
  }
5014
- function Ts(t, e) {
5014
+ function Cs(t, e) {
5015
5015
  if (typeof t != "object" || !t)
5016
5016
  return t;
5017
5017
  var i = t[Symbol.toPrimitive];
@@ -5023,9 +5023,9 @@ function Ts(t, e) {
5023
5023
  }
5024
5024
  return (e === "string" ? String : Number)(t);
5025
5025
  }
5026
- class Cs {
5026
+ class Os {
5027
5027
  constructor(e) {
5028
- he(this, "name", "GOOGLE_IMA"), he(this, "context", void 0), he(this, "adsOverlay", null), he(this, "initialized", !1), he(this, "ima", null), he(this, "state", ks()), he(this, "init", async (i) => {
5028
+ fe(this, "name", "GOOGLE_IMA"), fe(this, "context", void 0), fe(this, "adsOverlay", null), fe(this, "initialized", !1), fe(this, "ima", null), fe(this, "state", Is()), fe(this, "init", async (i) => {
5029
5029
  if (this.initialized)
5030
5030
  return;
5031
5031
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -5041,16 +5041,16 @@ class Cs {
5041
5041
  }, s.onerror = o, document.head.appendChild(s);
5042
5042
  }
5043
5043
  }), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
5044
- fe(m(xs, {
5044
+ ye(m(Rs, {
5045
5045
  state: this.state,
5046
5046
  onReady: () => {
5047
- this.ima = new Es(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
5047
+ this.ima = new ks(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
5048
5048
  }
5049
5049
  }), this.adsOverlay);
5050
5050
  }), this.initialized = !0;
5051
- }), he(this, "destroy", () => {
5052
- this.adsOverlay && (fe(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
5053
- }), he(this, "requestAd", (i, n) => {
5051
+ }), fe(this, "destroy", () => {
5052
+ this.adsOverlay && (ye(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
5053
+ }), fe(this, "requestAd", (i, n) => {
5054
5054
  var u;
5055
5055
  if (!this.adsOverlay || !this.ima || !this.initialized) {
5056
5056
  const l = F.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
@@ -5064,9 +5064,9 @@ class Cs {
5064
5064
  var h;
5065
5065
  let c = !1;
5066
5066
  switch (l.raw.getErrorCode()) {
5067
- case rt.AUTOPLAY_DISALLOWED:
5068
- case rt.VIDEO_PLAY_ERROR:
5069
- case rt.ADS_REQUEST_NETWORK_ERROR: {
5067
+ case ot.AUTOPLAY_DISALLOWED:
5068
+ case ot.VIDEO_PLAY_ERROR:
5069
+ case ot.ADS_REQUEST_NETWORK_ERROR: {
5070
5070
  c = !0;
5071
5071
  break;
5072
5072
  }
@@ -5099,13 +5099,13 @@ class Cs {
5099
5099
  }
5100
5100
  }
5101
5101
  function re(t, e, i) {
5102
- return (e = Os(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5102
+ return (e = Ds(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5103
5103
  }
5104
- function Os(t) {
5105
- var e = Ds(t, "string");
5104
+ function Ds(t) {
5105
+ var e = Ps(t, "string");
5106
5106
  return typeof e == "symbol" ? e : e + "";
5107
5107
  }
5108
- function Ds(t, e) {
5108
+ function Ps(t, e) {
5109
5109
  if (typeof t != "object" || !t)
5110
5110
  return t;
5111
5111
  var i = t[Symbol.toPrimitive];
@@ -5117,16 +5117,16 @@ function Ds(t, e) {
5117
5117
  }
5118
5118
  return (e === "string" ? String : Number)(t);
5119
5119
  }
5120
- class Ps {
5120
+ class Ns {
5121
5121
  constructor(e) {
5122
5122
  re(this, "name", "OKSPIN"), re(this, "initialized", !1), re(this, "initCompleter", null), re(this, "context", void 0), re(this, "adsOverlay", null), re(this, "adsIsShowing", !1), re(this, "state", Xi()), re(this, "init", async (i) => {
5123
5123
  var n;
5124
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), fe(m(Yi, {
5124
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), ye(m(Qi, {
5125
5125
  state: this.state
5126
5126
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
5127
5127
  }), re(this, "destroy", () => {
5128
5128
  var i;
5129
- this.adsOverlay && (fe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
5129
+ this.adsOverlay && (ye(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
5130
5130
  }), re(this, "requestAd", (i, n) => {
5131
5131
  var s, a, d, u;
5132
5132
  if (!this.adsOverlay || !this.initialized) {
@@ -5153,13 +5153,13 @@ class Ps {
5153
5153
  }
5154
5154
  }
5155
5155
  function ie(t, e, i) {
5156
- return (e = Ns(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5156
+ return (e = Ls(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5157
5157
  }
5158
- function Ns(t) {
5159
- var e = Ls(t, "string");
5158
+ function Ls(t) {
5159
+ var e = Bs(t, "string");
5160
5160
  return typeof e == "symbol" ? e : e + "";
5161
5161
  }
5162
- function Ls(t, e) {
5162
+ function Bs(t, e) {
5163
5163
  if (typeof t != "object" || !t)
5164
5164
  return t;
5165
5165
  var i = t[Symbol.toPrimitive];
@@ -5171,20 +5171,20 @@ function Ls(t, e) {
5171
5171
  }
5172
5172
  return (e === "string" ? String : Number)(t);
5173
5173
  }
5174
- class Bs {
5174
+ class Ms {
5175
5175
  constructor(e) {
5176
- ie(this, "name", "APPSROCKETS"), ie(this, "initialized", !1), ie(this, "initCompleter", null), ie(this, "context", void 0), ie(this, "adsOverlay", null), ie(this, "adsIsShowing", !1), ie(this, "state", Qi()), ie(this, "processUrl", (i) => {
5176
+ ie(this, "name", "APPSROCKETS"), ie(this, "initialized", !1), ie(this, "initCompleter", null), ie(this, "context", void 0), ie(this, "adsOverlay", null), ie(this, "adsIsShowing", !1), ie(this, "state", Zi()), ie(this, "processUrl", (i) => {
5177
5177
  var s;
5178
5178
  const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
5179
5179
  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()), o.get("adsType") || o.set("adsType", "REWARD_INTERSTITIAL"), r.search = o.toString(), r.toString();
5180
5180
  }), ie(this, "init", async (i) => {
5181
5181
  var n;
5182
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), fe(m(Zi, {
5182
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), ye(m(en, {
5183
5183
  state: this.state
5184
5184
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
5185
5185
  }), ie(this, "destroy", () => {
5186
5186
  var i;
5187
- this.adsOverlay && (fe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
5187
+ this.adsOverlay && (ye(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
5188
5188
  }), ie(this, "requestAd", (i, n) => {
5189
5189
  var d, u, l, c;
5190
5190
  if (!this.adsOverlay || !this.initialized) {
@@ -5215,14 +5215,14 @@ class Bs {
5215
5215
  }), this.context = e;
5216
5216
  }
5217
5217
  }
5218
- function ye(t, e, i) {
5219
- return (e = Ms(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5218
+ function we(t, e, i) {
5219
+ return (e = $s(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5220
5220
  }
5221
- function Ms(t) {
5222
- var e = $s(t, "string");
5221
+ function $s(t) {
5222
+ var e = Fs(t, "string");
5223
5223
  return typeof e == "symbol" ? e : e + "";
5224
5224
  }
5225
- function $s(t, e) {
5225
+ function Fs(t, e) {
5226
5226
  if (typeof t != "object" || !t)
5227
5227
  return t;
5228
5228
  var i = t[Symbol.toPrimitive];
@@ -5234,24 +5234,24 @@ function $s(t, e) {
5234
5234
  }
5235
5235
  return (e === "string" ? String : Number)(t);
5236
5236
  }
5237
- class Fs {
5237
+ class Us {
5238
5238
  constructor(e) {
5239
- ye(this, "name", "GOOGLE_GPT"), ye(this, "context", void 0), ye(this, "contextInfo", void 0), ye(this, "rewardAdManager", void 0), ye(this, "init", async (i) => {
5239
+ we(this, "name", "GOOGLE_GPT"), we(this, "context", void 0), we(this, "contextInfo", void 0), we(this, "rewardAdManager", void 0), we(this, "init", async (i) => {
5240
5240
  if (!this.rewardAdManager) {
5241
5241
  const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
5242
- this.rewardAdManager = new tn(n, o, i.params.keyValue);
5242
+ this.rewardAdManager = new nn(n, o, i.params.keyValue);
5243
5243
  }
5244
- }), ye(this, "insertScript", () => {
5244
+ }), we(this, "insertScript", () => {
5245
5245
  const i = "jolibox-google-gpt";
5246
5246
  let n = document.getElementById(i);
5247
5247
  n || (n = window.document.createElement("script"), n.id = i, n.async = !0, n.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", n.crossOrigin = "anonymous", document.head.appendChild(n));
5248
- }), ye(this, "destroy", () => {
5248
+ }), we(this, "destroy", () => {
5249
5249
  var i;
5250
5250
  (i = this.rewardAdManager) == null || i.withCommand(() => {
5251
5251
  var n;
5252
5252
  (n = this.rewardAdManager) == null || n.destroy("ignored");
5253
5253
  });
5254
- }), ye(this, "requestAd", (i, n) => {
5254
+ }), we(this, "requestAd", (i, n) => {
5255
5255
  var r;
5256
5256
  if (!this.rewardAdManager) {
5257
5257
  (r = i.onAdError) == null || r.call(i, F.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
@@ -5286,14 +5286,14 @@ class Fs {
5286
5286
  }), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
5287
5287
  }
5288
5288
  }
5289
- function be(t, e, i) {
5290
- return (e = Us(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5289
+ function oe(t, e, i) {
5290
+ return (e = js(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5291
5291
  }
5292
- function Us(t) {
5293
- var e = js(t, "string");
5292
+ function js(t) {
5293
+ var e = Vs(t, "string");
5294
5294
  return typeof e == "symbol" ? e : e + "";
5295
5295
  }
5296
- function js(t, e) {
5296
+ function Vs(t, e) {
5297
5297
  if (typeof t != "object" || !t)
5298
5298
  return t;
5299
5299
  var i = t[Symbol.toPrimitive];
@@ -5305,10 +5305,10 @@ function js(t, e) {
5305
5305
  }
5306
5306
  return (e === "string" ? String : Number)(t);
5307
5307
  }
5308
- class Zs {
5308
+ class ve {
5309
5309
  constructor(e) {
5310
- if (be(this, "context", void 0), be(this, "contextInfo", void 0), be(this, "providers", {}), be(this, "requestContext", void 0), be(this, "adsRequest", void 0), be(this, "initialized", !1), be(this, "preloadedAd", null), e)
5311
- this.context = e, this.requestContext = new Ut(e), this.adsRequest = new nn(e, {
5310
+ if (oe(this, "context", void 0), oe(this, "contextInfo", void 0), oe(this, "providers", {}), oe(this, "requestContext", void 0), oe(this, "adsRequest", void 0), oe(this, "initialized", !1), oe(this, "preloadedAd", null), oe(this, "shouldCache", !1), e)
5311
+ this.context = e, this.requestContext = new jt(e), this.adsRequest = new rn(e, {
5312
5312
  reward: !1,
5313
5313
  interstitial: !1,
5314
5314
  afv: !1
@@ -5317,48 +5317,72 @@ class Zs {
5317
5317
  throw new Error("JoliboxAdsForVideo requires a configuration object");
5318
5318
  }
5319
5319
  async init() {
5320
- const {
5321
- data: e
5322
- } = await this.context.httpClient.post("/api/ads/init", {
5320
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i;
5321
+ const n = sessionStorage.getItem(ve.STORAGE_KEY_INIT);
5322
+ if (n) {
5323
+ sessionStorage.removeItem(ve.STORAGE_KEY_INIT);
5324
+ try {
5325
+ i = JSON.parse(n);
5326
+ } catch (r) {
5327
+ }
5328
+ }
5329
+ if (i != null && i.length || (i = (await this.context.httpClient.post("/api/ads/init", {
5323
5330
  data: {
5324
5331
  contextData: this.requestContext.getRequestContextData("AdsAFVSDKInit"),
5325
5332
  bizParams: this.requestContext.getRequestBizParams(),
5326
5333
  testAdsMode: this.contextInfo.testAdsMode
5327
5334
  }
5328
- });
5329
- if ((e == null ? void 0 : e.length) > 0)
5330
- for (const i of e)
5331
- switch (i.provider) {
5335
+ })).data), e && (i != null && i.length))
5336
+ try {
5337
+ sessionStorage.setItem(ve.STORAGE_KEY_INIT, JSON.stringify(i));
5338
+ } catch (r) {
5339
+ }
5340
+ if ((i == null ? void 0 : i.length) > 0)
5341
+ for (const r of i)
5342
+ switch (r.provider) {
5332
5343
  case "GOOGLE_GPT": {
5333
- const n = new Fs(this.context);
5334
- await n.init(i), this.providers.GOOGLE_GPT = n;
5344
+ const o = new Us(this.context);
5345
+ await o.init(r), this.providers.GOOGLE_GPT = o;
5335
5346
  break;
5336
5347
  }
5337
5348
  case "GOOGLE_IMA": {
5338
- const n = new Cs(this.context);
5339
- await n.init(i), this.providers.GOOGLE_IMA = n;
5349
+ const o = new Os(this.context);
5350
+ await o.init(r), this.providers.GOOGLE_IMA = o;
5340
5351
  break;
5341
5352
  }
5342
5353
  case "OKSPIN": {
5343
- const n = new Ps(this.context);
5344
- await n.init(i), this.providers.OKSPIN = n;
5354
+ const o = new Ns(this.context);
5355
+ await o.init(r), this.providers.OKSPIN = o;
5345
5356
  break;
5346
5357
  }
5347
5358
  case "APPSROCKETS": {
5348
- const n = new Bs(this.context);
5349
- await n.init(i), this.providers.APPSROCKETS = n;
5359
+ const o = new Ms(this.context);
5360
+ await o.init(r), this.providers.APPSROCKETS = o;
5350
5361
  break;
5351
5362
  }
5352
5363
  }
5353
- this.adsRequest.cacheAFVInfo(), this.initialized = !0, this.preload();
5364
+ this.adsRequest.cacheAFVInfo(), this.initialized = !0, this.shouldCache = e, this.preload();
5354
5365
  }
5355
5366
  /**
5356
5367
  * Preload ads info and resolve provider options in advance.
5357
5368
  * If preload fails, requestAd() will fall back to the normal flow.
5358
5369
  */
5359
5370
  preload() {
5360
- this.adsRequest.getAFVAdsInfo(!0).then((e) => {
5361
- console.log("[JoliboxSDK] afv preload adsInfo:", e), this.preloadedAd = e;
5371
+ const e = sessionStorage.getItem(ve.STORAGE_KEY_INFO);
5372
+ if (e) {
5373
+ sessionStorage.removeItem(ve.STORAGE_KEY_INFO);
5374
+ try {
5375
+ this.preloadedAd = JSON.parse(e);
5376
+ return;
5377
+ } catch (i) {
5378
+ }
5379
+ }
5380
+ this.adsRequest.getAFVAdsInfo(!0).then((i) => {
5381
+ if (console.log("[JoliboxSDK] afv preload adsInfo:", i), this.preloadedAd = i, this.shouldCache && i)
5382
+ try {
5383
+ sessionStorage.setItem(ve.STORAGE_KEY_INFO, JSON.stringify(i));
5384
+ } catch (n) {
5385
+ }
5362
5386
  }).catch(() => {
5363
5387
  this.preloadedAd = null;
5364
5388
  });
@@ -5396,7 +5420,7 @@ class Zs {
5396
5420
  return;
5397
5421
  }
5398
5422
  let A = !0, S = null;
5399
- const p = new bs(this.context);
5423
+ const p = new ps(this.context);
5400
5424
  for (; g.length > 0; ) {
5401
5425
  const _ = g.shift(), E = this.providers[_.provider];
5402
5426
  if (E) {
@@ -5421,10 +5445,12 @@ class Zs {
5421
5445
  }
5422
5446
  }
5423
5447
  }
5424
- function Ee(t, e, i) {
5425
- return (e = Vs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5448
+ oe(ve, "STORAGE_KEY_INIT", "jolibox_afv_init_data");
5449
+ oe(ve, "STORAGE_KEY_INFO", "jolibox_afv_info_data");
5450
+ function ke(t, e, i) {
5451
+ return (e = Gs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5426
5452
  }
5427
- function Vs(t) {
5453
+ function Gs(t) {
5428
5454
  var e = qs(t, "string");
5429
5455
  return typeof e == "symbol" ? e : e + "";
5430
5456
  }
@@ -5442,19 +5468,19 @@ function qs(t, e) {
5442
5468
  }
5443
5469
  class ea extends Error {
5444
5470
  constructor(e) {
5445
- super(e), Ee(this, "name", void 0), Ee(this, "message", void 0), Ee(this, "errMsg", void 0), Ee(this, "code", void 0), Ee(this, "data", void 0), Ee(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
5471
+ super(e), ke(this, "name", void 0), ke(this, "message", void 0), ke(this, "errMsg", void 0), ke(this, "code", void 0), ke(this, "data", void 0), ke(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
5446
5472
  }
5447
5473
  }
5448
5474
  export {
5449
5475
  F as AFVWrappedError,
5450
- sr as GoogleAdSenseProvider,
5451
- Cs as GoogleIMAProvider,
5452
- Fo as InterstitialAdManager,
5453
- Qs as JoliboxAdsForGame,
5454
- Zs as JoliboxAdsForVideo,
5455
- go as OKSpinForGameProvider,
5456
- Ps as OKSpinForVideoProvider,
5476
+ ar as GoogleAdSenseProvider,
5477
+ Os as GoogleIMAProvider,
5478
+ Uo as InterstitialAdManager,
5479
+ Zs as JoliboxAdsForGame,
5480
+ ve as JoliboxAdsForVideo,
5481
+ wo as OKSpinForGameProvider,
5482
+ Ns as OKSpinForVideoProvider,
5457
5483
  ea as ResponseError,
5458
- tn as RewardAdManager,
5459
- en as initGPTServices
5484
+ nn as RewardAdManager,
5485
+ tn as initGPTServices
5460
5486
  };