@jolibox/ads 1.1.37 → 1.1.39

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,24 +1,24 @@
1
- var vt = Object.getOwnPropertySymbols;
2
- var bi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable;
3
- var pt = (t, e) => {
1
+ var wt = Object.getOwnPropertySymbols;
2
+ var Ii = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable;
3
+ var bt = (t, e) => {
4
4
  var i = {};
5
5
  for (var n in t)
6
- bi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
- if (t != null && vt)
8
- for (var n of vt(t))
9
- e.indexOf(n) < 0 && Ai.call(t, n) && (i[n] = t[n]);
6
+ Ii.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
+ if (t != null && wt)
8
+ for (var n of wt(t))
9
+ e.indexOf(n) < 0 && xi.call(t, n) && (i[n] = t[n]);
10
10
  return i;
11
11
  };
12
- import { options as se, Component as mi, isValidElement as Si } from "preact";
13
- import { useRef as Ei, useLayoutEffect as ki, useEffect as Ue, useMemo as Ii, useState as jt, useCallback as xi, render as te, createRef as yt } from "preact/compat";
12
+ import { options as ue, Component as Ri, isValidElement as Oi } from "preact";
13
+ import { useRef as Ti, useLayoutEffect as Ci, useEffect as Ve, useMemo as Di, useState as zt, useCallback as Li, render as re, createRef as _t } from "preact/compat";
14
14
  function B(t, e, i) {
15
- return (e = Ri(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
15
+ return (e = Pi(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
16
16
  }
17
- function Ri(t) {
18
- var e = Oi(t, "string");
17
+ function Pi(t) {
18
+ var e = Ni(t, "string");
19
19
  return typeof e == "symbol" ? e : e + "";
20
20
  }
21
- function Oi(t, e) {
21
+ function Ni(t, e) {
22
22
  if (typeof t != "object" || !t)
23
23
  return t;
24
24
  var i = t[Symbol.toPrimitive];
@@ -30,7 +30,7 @@ function Oi(t, e) {
30
30
  }
31
31
  return (e === "string" ? String : Number)(t);
32
32
  }
33
- class Ti {
33
+ class Mi {
34
34
  constructor(e) {
35
35
  B(this, "context", void 0), B(this, "continueCallback", void 0), B(this, "adIsShowingCallback", void 0), B(this, "isBeforeAdCalled", !1), B(this, "isBeforeRewardCalled", !1), B(this, "isAdDismissedCalled", !1), B(this, "isAdViewedCalled", !1), B(this, "isAfterAdCalled", !1), B(this, "currentProvider", void 0), B(this, "currentClientParams", void 0), B(this, "adsHasResponse", !1), B(this, "videoChecker", window.document.createElement("video")), B(this, "wrapShowAdFn", (i) => () => {
36
36
  var r;
@@ -144,11 +144,11 @@ class Ti {
144
144
  }
145
145
  }
146
146
  window.setTimeout(() => {
147
- var a, d, l, c, h;
147
+ var a, d, l, u, h;
148
148
  this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
149
149
  type: i.type,
150
150
  provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
151
- }), (c = this.continueCallback) == null || c.call(this, [!0, {
151
+ }), (u = this.continueCallback) == null || u.call(this, [!0, {
152
152
  breakType: i.type,
153
153
  breakName: i.type === "preroll" ? "" : (l = i.name) != null ? l : "",
154
154
  breakFormat: i.type === "reward" ? "reward" : "interstitial",
@@ -158,14 +158,14 @@ class Ti {
158
158
  });
159
159
  }
160
160
  }
161
- function Ee(t, e, i) {
162
- return (e = Di(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
161
+ function Re(t, e, i) {
162
+ return (e = $i(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
163
163
  }
164
- function Di(t) {
165
- var e = Ci(t, "string");
164
+ function $i(t) {
165
+ var e = ji(t, "string");
166
166
  return typeof e == "symbol" ? e : e + "";
167
167
  }
168
- function Ci(t, e) {
168
+ function ji(t, e) {
169
169
  if (typeof t != "object" || !t)
170
170
  return t;
171
171
  var i = t[Symbol.toPrimitive];
@@ -177,13 +177,13 @@ function Ci(t, e) {
177
177
  }
178
178
  return (e === "string" ? String : Number)(t);
179
179
  }
180
- class Li {
180
+ class Ui {
181
181
  constructor(e) {
182
- Ee(this, "context", void 0), Ee(this, "adBreakIsShowing", !1), Ee(this, "reportPageJumpOut", () => {
182
+ Re(this, "context", void 0), Re(this, "adBreakIsShowing", !1), Re(this, "reportPageJumpOut", () => {
183
183
  this.context.track("AdBreakJumpOut", {
184
184
  context: "AdsActionDetection"
185
185
  });
186
- }), Ee(this, "reportPageHide", () => {
186
+ }), Re(this, "reportPageHide", () => {
187
187
  this.context.track("AdBreakHide", {
188
188
  context: "AdsActionDetection"
189
189
  });
@@ -194,29 +194,29 @@ class Li {
194
194
  });
195
195
  }
196
196
  }
197
- var Ft = Object.defineProperty, Ni = Object.defineProperties, Pi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, gt = (t, e, i) => e in t ? Ft(t, e, {
197
+ var qt = Object.defineProperty, Bi = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Vi = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, mt = (t, e, i) => e in t ? qt(t, e, {
198
198
  enumerable: !0,
199
199
  configurable: !0,
200
200
  writable: !0,
201
201
  value: i
202
- }) : t[e] = i, Ui = (t, e) => {
202
+ }) : t[e] = i, zi = (t, e) => {
203
203
  for (var i in e || (e = {}))
204
- Mi.call(e, i) && gt(t, i, e[i]);
205
- if (_t)
206
- for (var i of _t(e))
207
- $i.call(e, i) && gt(t, i, e[i]);
204
+ Vi.call(e, i) && mt(t, i, e[i]);
205
+ if (At)
206
+ for (var i of At(e))
207
+ Gi.call(e, i) && mt(t, i, e[i]);
208
208
  return t;
209
- }, Bi = (t, e) => Ni(t, Pi(e)), ji = (t, e) => {
209
+ }, qi = (t, e) => Bi(t, Fi(e)), Ki = (t, e) => {
210
210
  for (var i in e)
211
- Ft(t, i, {
211
+ qt(t, i, {
212
212
  get: e[i],
213
213
  enumerable: !0
214
214
  });
215
- }, Vt = (t, e, i, n) => {
215
+ }, Kt = (t, e, i, n) => {
216
216
  for (var r = e, o = t.length - 1, s; o >= 0; o--)
217
217
  (s = t[o]) && (r = s(r) || r);
218
218
  return r;
219
- }, Fi = (t, e, i) => new Promise((n, r) => {
219
+ }, Hi = (t, e, i) => new Promise((n, r) => {
220
220
  var o = (d) => {
221
221
  try {
222
222
  a(i.next(d));
@@ -261,26 +261,26 @@ if (typeof window != "undefined" && !window.AbortController) {
261
261
  n.call(this, i);
262
262
  }, window.AbortController = t, window.AbortSignal = e;
263
263
  }
264
- function Vi(t) {
264
+ function Wi(t) {
265
265
  return new Promise((e) => {
266
266
  setTimeout(() => {
267
267
  e();
268
268
  }, t);
269
269
  });
270
270
  }
271
- function zi(t) {
271
+ function Ji(t) {
272
272
  return typeof t == "string";
273
273
  }
274
- function Ki(t) {
274
+ function Yi(t) {
275
275
  return typeof t == "undefined";
276
276
  }
277
- function Gi(t) {
278
- return Ki(t) || t === null;
277
+ function Xi(t) {
278
+ return Yi(t) || t === null;
279
279
  }
280
- function qi(t) {
280
+ function Qi(t) {
281
281
  return typeof t == "function";
282
282
  }
283
- function zt(t) {
283
+ function Ht(t) {
284
284
  let e = t, i = null, n = function() {
285
285
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
286
286
  o[s] = arguments[s];
@@ -288,29 +288,29 @@ function zt(t) {
288
288
  };
289
289
  return n.prototype = e.prototype, n;
290
290
  }
291
- var Hi = ((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))(Hi || {});
292
- function he(t) {
291
+ var Zi = ((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))(Zi || {});
292
+ function ye(t) {
293
293
  return function() {
294
294
  var e, i;
295
295
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
296
296
  };
297
297
  }
298
- var Wi = {
299
- log: he("log"),
300
- warn: he("warn"),
301
- info: he("info"),
302
- error: he("error"),
303
- debug: he("debug")
298
+ var en = {
299
+ log: ye("log"),
300
+ warn: ye("warn"),
301
+ info: ye("info"),
302
+ error: ye("error"),
303
+ debug: ye("debug")
304
304
  };
305
305
  Object.assign(globalThis, {
306
- logger: Wi
306
+ logger: en
307
307
  });
308
- var wt = Symbol.for("Jolibox.canIUseMap"), Ji = {};
309
- globalThis[wt] || (globalThis[wt] = Ji);
310
- var bt = Symbol.for("Jolibox.canIUseMap.native"), Yi = {};
311
- globalThis[bt] || (globalThis[bt] = Yi);
312
- var Kt = ((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))(Kt || {}), Gt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Gt || {}), qt = ((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))(qt || {}), At = ["name", "params"], Xi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Qi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
313
- function xe(t, e) {
308
+ var St = Symbol.for("Jolibox.canIUseMap"), tn = {};
309
+ globalThis[St] || (globalThis[St] = tn);
310
+ var Et = Symbol.for("Jolibox.canIUseMap.native"), nn = {};
311
+ globalThis[Et] || (globalThis[Et] = nn);
312
+ var Wt = ((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))(Wt || {}), Jt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Jt || {}), Yt = ((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))(Yt || {}), kt = ["name", "params"], rn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], on = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
313
+ function Ce(t, e) {
314
314
  return e.map((i) => {
315
315
  if (i === "params" && t[i]) {
316
316
  let n = t[i];
@@ -319,18 +319,18 @@ function xe(t, e) {
319
319
  return t[i];
320
320
  });
321
321
  }
322
- function Zi(t) {
323
- let e = t.location ? xe(t.location, At) : null, i = t.target ? xe(t.target, At) : null;
324
- return xe(Bi(Ui({}, t), {
322
+ function sn(t) {
323
+ let e = t.location ? Ce(t.location, kt) : null, i = t.target ? Ce(t.target, kt) : null;
324
+ return Ce(qi(zi({}, t), {
325
325
  location: e,
326
326
  target: i
327
- }), Xi);
327
+ }), rn);
328
328
  }
329
- function en(t) {
330
- let e = t.events.map((n) => Zi(n)), i = xe(t.device, Qi);
329
+ function an(t) {
330
+ let e = t.events.map((n) => sn(n)), i = Ce(t.device, on);
331
331
  return [t.protocolVersion, e, i, t.project];
332
332
  }
333
- function tn() {
333
+ function dn() {
334
334
  try {
335
335
  if (window.__joliboxLocalStorage__)
336
336
  return window.__joliboxLocalStorage__;
@@ -351,15 +351,15 @@ function tn() {
351
351
  return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
352
352
  }
353
353
  }
354
- tn();
354
+ dn();
355
355
  navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS"), navigator.userAgent.includes("Android"), navigator.userAgent.includes("Mac"), navigator.userAgent.includes("FB_IAB"), !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
356
- var Xe = class Qe {
356
+ var tt = class it {
357
357
  constructor(e) {
358
- this.element = e, this.next = Qe.Undefined, this.prev = Qe.Undefined;
358
+ this.element = e, this.next = it.Undefined, this.prev = it.Undefined;
359
359
  }
360
360
  };
361
- Xe.Undefined = new Xe(void 0);
362
- var x = Xe, nn = class {
361
+ tt.Undefined = new tt(void 0);
362
+ var x = tt, ln = class {
363
363
  constructor() {
364
364
  this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
365
365
  }
@@ -425,17 +425,17 @@ var x = Xe, nn = class {
425
425
  for (; t !== x.Undefined; )
426
426
  yield t.element, t = t.next;
427
427
  }
428
- }, rn = 0, fe = class {
428
+ }, un = 0, pe = class {
429
429
  constructor(t) {
430
- this.value = t, this.id = rn++;
430
+ this.value = t, this.id = un++;
431
431
  }
432
- }, ge = class {
432
+ }, me = class {
433
433
  constructor(e) {
434
434
  this.options = e, this._size = 0;
435
435
  }
436
436
  dispose(e) {
437
437
  var i, n;
438
- this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof fe && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
438
+ this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof pe && (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));
439
439
  }
440
440
  get event() {
441
441
  return this._event != null || (this._event = (e, i) => {
@@ -445,15 +445,15 @@ var x = Xe, nn = class {
445
445
  console.info("[Jolibox SDK] Emitter is _disposed");
446
446
  };
447
447
  i && (e = e.bind(i));
448
- let l = new fe(e);
449
- return this._listeners ? this._listeners instanceof fe ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
450
- var c, h, u, f;
448
+ let l = new pe(e);
449
+ return this._listeners ? this._listeners instanceof pe ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
450
+ var u, h, c, f;
451
451
  if (!this._disposed) {
452
- if (this._listeners instanceof fe)
453
- this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || h.call(c));
452
+ if (this._listeners instanceof pe)
453
+ this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || h.call(u));
454
454
  else if (this._listeners) {
455
- let y = this._listeners.indexOf(l);
456
- y >= 0 && (this._listeners.splice(y, 1), this._size--, this._size === 0 && ((f = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || f.call(u)));
455
+ let g = this._listeners.indexOf(l);
456
+ g >= 0 && (this._listeners.splice(g, 1), this._size--, this._size === 0 && ((f = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || f.call(c)));
457
457
  }
458
458
  }
459
459
  };
@@ -475,19 +475,19 @@ var x = Xe, nn = class {
475
475
  }
476
476
  }
477
477
  fire(e) {
478
- this._listeners && (this._listeners instanceof fe ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
478
+ this._listeners && (this._listeners instanceof pe ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
479
479
  }
480
480
  hasListeners() {
481
481
  return this._size > 0;
482
482
  }
483
- }, on = class {
483
+ }, cn = class {
484
484
  constructor() {
485
485
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
486
486
  }
487
487
  on(e, i) {
488
488
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
489
489
  var r;
490
- let o = (r = this.listeners.get(e)) != null ? r : new ge(), s = (l) => i(...l.args), a = o.event(s);
490
+ let o = (r = this.listeners.get(e)) != null ? r : new me(), s = (l) => i(...l.args), a = o.event(s);
491
491
  this.listerHandlerMap.set(i, {
492
492
  handler: s,
493
493
  dispose: a
@@ -508,7 +508,7 @@ var x = Xe, nn = class {
508
508
  let i = this.listeners.get(e), n = this.cachedEventQueue.get(e);
509
509
  for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
510
510
  o[s - 1] = arguments[s];
511
- n || (n = new nn(), this.cachedEventQueue.set(e, n)), n.push({
511
+ n || (n = new ln(), this.cachedEventQueue.set(e, n)), n.push({
512
512
  args: o
513
513
  }), i && i.fire({
514
514
  event: e,
@@ -522,20 +522,20 @@ var x = Xe, nn = class {
522
522
  };
523
523
  this.on(e, r, !1);
524
524
  }
525
- }, Ze = {};
526
- ji(Ze, {
527
- None: () => sn,
528
- filter: () => dn,
529
- once: () => Ht,
530
- toPromise: () => an
525
+ }, nt = {};
526
+ Ki(nt, {
527
+ None: () => hn,
528
+ filter: () => vn,
529
+ once: () => Xt,
530
+ toPromise: () => fn
531
531
  });
532
- var sn = () => (console.log("[Jolibox SDK] None Event"), () => {
532
+ var hn = () => (console.log("[Jolibox SDK] None Event"), () => {
533
533
  console.log("[Jolibox SDK] None Event dispose");
534
534
  });
535
- function an(t) {
536
- return new Promise((e) => Ht(t)(e));
535
+ function fn(t) {
536
+ return new Promise((e) => Xt(t)(e));
537
537
  }
538
- function Ht(t) {
538
+ function Xt(t) {
539
539
  return function(e) {
540
540
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
541
541
  return t((r) => {
@@ -544,52 +544,52 @@ function Ht(t) {
544
544
  }, null);
545
545
  };
546
546
  }
547
- function dn(t, e) {
547
+ function vn(t, e) {
548
548
  return ((i) => {
549
549
  let n = {
550
550
  onWillAddFirstListener() {
551
551
  i(r.fire, r);
552
552
  }
553
- }, r = new ge(n);
553
+ }, r = new me(n);
554
554
  return r.event;
555
555
  })(function(i) {
556
556
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
557
557
  return t((r) => e(r) && i.call(n, r), null);
558
558
  });
559
559
  }
560
- var ze = Symbol.for("Jolibox.hostEmitter"), ln = () => {
561
- let t = new on();
562
- return globalThis[ze] || (globalThis[ze] = {
560
+ var He = Symbol.for("Jolibox.hostEmitter"), gn = () => {
561
+ let t = new cn();
562
+ return globalThis[He] || (globalThis[He] = {
563
563
  on: t.on.bind(t),
564
564
  off: t.off.bind(t),
565
565
  emit: t.emit.bind(t),
566
566
  once: t.once.bind(t)
567
- }), globalThis[ze];
567
+ }), globalThis[He];
568
568
  };
569
- ln();
570
- function cn(t, e) {
569
+ gn();
570
+ function yn(t, e) {
571
571
  let i = Math.min(t.length, e.length);
572
572
  for (let n = 0; n < i; n++)
573
- un(t[n], e[n]);
573
+ pn(t[n], e[n]);
574
574
  }
575
- function un(t, e) {
576
- if (zi(e)) {
575
+ function pn(t, e) {
576
+ if (Ji(e)) {
577
577
  if (typeof t !== e)
578
578
  throw new Error(`argument does not match constraint: typeof ${e}`);
579
- } else if (qi(e)) {
579
+ } else if (Qi(e)) {
580
580
  try {
581
581
  if (t instanceof e)
582
582
  return;
583
583
  } catch (i) {
584
584
  }
585
- if (!Gi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
585
+ if (!Xi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
586
586
  return;
587
587
  throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
588
588
  }
589
589
  }
590
- var et = class {
590
+ var rt = class {
591
591
  constructor() {
592
- this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new ge(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
592
+ this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new me(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
593
593
  }
594
594
  registerCommand(e) {
595
595
  if (!e)
@@ -602,7 +602,7 @@ var et = class {
602
602
  e.handler = function() {
603
603
  for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
604
604
  s[a] = arguments[a];
605
- return cn(s, n), r(...s);
605
+ return yn(s, n), r(...s);
606
606
  };
607
607
  }
608
608
  let {
@@ -622,19 +622,19 @@ var et = class {
622
622
  return e;
623
623
  }
624
624
  };
625
- et = Vt([zt], et);
626
- var mt = class {
625
+ rt = Kt([Ht], rt);
626
+ var It = class {
627
627
  constructor() {
628
- this._onWillExecuteCommand = new ge(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ge(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new et(), this._starActivation = null;
628
+ this._onWillExecuteCommand = new me(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new me(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new rt(), this._starActivation = null;
629
629
  }
630
630
  _activateStar() {
631
- return this._starActivation || (this._starActivation = Vi(3e4)), this._starActivation;
631
+ return this._starActivation || (this._starActivation = Wi(3e4)), this._starActivation;
632
632
  }
633
633
  executeCommand(e) {
634
634
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
635
635
  n[r - 1] = arguments[r];
636
- return Fi(this, null, function* () {
637
- return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Ze.toPromise(Ze.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
636
+ return Hi(this, null, function* () {
637
+ return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), nt.toPromise(nt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
638
638
  });
639
639
  }
640
640
  executeCommandThowErr(e) {
@@ -680,15 +680,15 @@ var mt = class {
680
680
  }
681
681
  }
682
682
  };
683
- mt = Vt([zt], mt);
684
- function Ke(t, e, i) {
685
- return (e = hn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
683
+ It = Kt([Ht], It);
684
+ function We(t, e, i) {
685
+ return (e = wn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
686
686
  }
687
- function hn(t) {
688
- var e = fn(t, "string");
687
+ function wn(t) {
688
+ var e = bn(t, "string");
689
689
  return typeof e == "symbol" ? e : e + "";
690
690
  }
691
- function fn(t, e) {
691
+ function bn(t, e) {
692
692
  if (typeof t != "object" || !t)
693
693
  return t;
694
694
  var i = t[Symbol.toPrimitive];
@@ -700,10 +700,10 @@ function fn(t, e) {
700
700
  }
701
701
  return (e === "string" ? String : Number)(t);
702
702
  }
703
- class Wt {
703
+ class Qt {
704
704
  constructor(e) {
705
705
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
706
- Ke(this, "context", void 0), Ke(this, "placement", "GAME"), Ke(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
706
+ We(this, "context", void 0), We(this, "placement", "GAME"), We(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
707
707
  }
708
708
  getLocation() {
709
709
  const e = new URLSearchParams(window.location.search), i = {};
@@ -717,7 +717,7 @@ class Wt {
717
717
  getDevice() {
718
718
  var e, i, n, r;
719
719
  return {
720
- platform: (e = this.contextInfo.platform) != null ? e : qt.WebSDK,
720
+ platform: (e = this.contextInfo.platform) != null ? e : Yt.WebSDK,
721
721
  os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
722
722
  appVersion: "1.0.0",
723
723
  // mock
@@ -736,7 +736,7 @@ class Wt {
736
736
  protocolVersion: "1.0.0",
737
737
  events: [{
738
738
  name: e,
739
- type: Kt.System,
739
+ type: Wt.System,
740
740
  location: this.getLocation(),
741
741
  target: null,
742
742
  extra: i,
@@ -744,19 +744,19 @@ class Wt {
744
744
  userId: (o = this.contextInfo.userId) != null ? o : null
745
745
  }],
746
746
  device: this.getDevice(),
747
- project: Gt.WebSDK
747
+ project: Jt.WebSDK
748
748
  };
749
- return en(r);
749
+ return an(r);
750
750
  }
751
751
  }
752
- function ke(t, e, i) {
753
- return (e = vn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
752
+ function Oe(t, e, i) {
753
+ return (e = _n(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
754
754
  }
755
- function vn(t) {
756
- var e = pn(t, "string");
755
+ function _n(t) {
756
+ var e = An(t, "string");
757
757
  return typeof e == "symbol" ? e : e + "";
758
758
  }
759
- function pn(t, e) {
759
+ function An(t, e) {
760
760
  if (typeof t != "object" || !t)
761
761
  return t;
762
762
  var i = t[Symbol.toPrimitive];
@@ -768,9 +768,9 @@ function pn(t, e) {
768
768
  }
769
769
  return (e === "string" ? String : Number)(t);
770
770
  }
771
- class yn {
771
+ class mn {
772
772
  constructor(e) {
773
- ke(this, "configs", null), ke(this, "firstRun", !0), ke(this, "context", void 0), ke(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
773
+ Oe(this, "configs", null), Oe(this, "firstRun", !0), Oe(this, "context", void 0), Oe(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
774
774
  }
775
775
  async init() {
776
776
  try {
@@ -794,14 +794,14 @@ class yn {
794
794
  return this.firstRun = !1, e;
795
795
  }
796
796
  }
797
- function J(t, e, i) {
798
- return (e = _n(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
797
+ function X(t, e, i) {
798
+ return (e = Sn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
799
799
  }
800
- function _n(t) {
801
- var e = gn(t, "string");
800
+ function Sn(t) {
801
+ var e = En(t, "string");
802
802
  return typeof e == "symbol" ? e : e + "";
803
803
  }
804
- function gn(t, e) {
804
+ function En(t, e) {
805
805
  if (typeof t != "object" || !t)
806
806
  return t;
807
807
  var i = t[Symbol.toPrimitive];
@@ -813,32 +813,32 @@ function gn(t, e) {
813
813
  }
814
814
  return (e === "string" ? String : Number)(t);
815
815
  }
816
- class wn {
816
+ class kn {
817
817
  /**
818
818
  * Internal constructor, should not be called directly
819
819
  */
820
820
  constructor(e, i) {
821
- J(this, "name", "ADSENSE"), J(this, "context", void 0), J(this, "contextInfo", void 0), J(this, "configured", !1), J(this, "initParams", void 0), J(this, "push", function() {
821
+ X(this, "name", "ADSENSE"), X(this, "context", void 0), X(this, "contextInfo", void 0), X(this, "configured", !1), X(this, "initParams", void 0), X(this, "push", function() {
822
822
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
823
823
  window.adsbygoogle.push(n);
824
- }), J(this, "adConfig", (n) => {
824
+ }), X(this, "adConfig", (n) => {
825
825
  const s = n, {
826
826
  onReady: r
827
- } = s, o = pt(s, [
827
+ } = s, o = bt(s, [
828
828
  "onReady"
829
829
  ]);
830
830
  this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
831
- }), J(this, "adBreak", (n) => {
831
+ }), X(this, "adBreak", (n) => {
832
832
  if (!this.contextInfo.objectId) {
833
833
  console.warn("Game ID is not set, skip calling adBreak");
834
834
  return;
835
835
  }
836
836
  this.push(n);
837
- }), J(this, "adUnit", async (n) => {
838
- var y, v, g, p;
837
+ }), X(this, "adUnit", async (n) => {
838
+ var g, v, w, y;
839
839
  if (this.context.track("CallAdUnit", {
840
- adFormat: (v = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? v : null,
841
- fullWidthResponsive: (g = n.fullWidthResponsive) != null ? g : null
840
+ adFormat: (v = (g = n.adFormat) == null ? void 0 : g.toString()) != null ? v : null,
841
+ fullWidthResponsive: (w = n.fullWidthResponsive) != null ? w : null
842
842
  }), document.querySelector("#jolibox-ads")) {
843
843
  console.warn("Ad unit already set, skipping");
844
844
  return;
@@ -855,24 +855,24 @@ class wn {
855
855
  throw new Error("targeting element is required");
856
856
  if (typeof r == "string" ? l = document.querySelector(r) : l = r, !l)
857
857
  throw new Error("targeting element not found");
858
- let c = o;
859
- if (c || (c = this.initParams.unitId), !c)
858
+ let u = o;
859
+ if (u || (u = this.initParams.unitId), !u)
860
860
  throw new Error("slot is required");
861
- const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, u = document.createElement("ins");
862
- if (u.className = "adsbygoogle", u.id = "jolibox-ads", u.style.display = "block", u.setAttribute("data-ad-client", this.initParams.clientId), u.setAttribute("data-ad-slot", c), h && u.setAttribute("data-ad-format", h), a && u.setAttribute("data-full-width-responsive", a), d && u.setAttribute("style", d), (p = this.contextInfo.testAdsMode) != null ? p : !1) {
863
- const _ = document.createElement("div");
864
- _.style.position = "absolute", _.style.top = "0", _.style.left = "0", _.style.width = "100%", _.style.height = "100%", _.style.display = "flex", _.style.justifyContent = "center", _.style.alignItems = "center", _.style.backgroundColor = "rgba(0, 0, 0, 0.5)", _.style.color = "white", _.innerHTML = "Test Ad", u.style.position = "relative", l.appendChild(u), u.appendChild(_);
861
+ const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, c = document.createElement("ins");
862
+ if (c.className = "adsbygoogle", c.id = "jolibox-ads", c.style.display = "block", c.setAttribute("data-ad-client", this.initParams.clientId), c.setAttribute("data-ad-slot", u), h && c.setAttribute("data-ad-format", h), a && c.setAttribute("data-full-width-responsive", a), d && c.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
863
+ const p = document.createElement("div");
864
+ p.style.position = "absolute", p.style.top = "0", p.style.left = "0", p.style.width = "100%", p.style.height = "100%", p.style.display = "flex", p.style.justifyContent = "center", p.style.alignItems = "center", p.style.backgroundColor = "rgba(0, 0, 0, 0.5)", p.style.color = "white", p.innerHTML = "Test Ad", c.style.position = "relative", l.appendChild(c), c.appendChild(p);
865
865
  } else
866
- l.appendChild(u), new MutationObserver((w) => {
867
- w.forEach((M) => {
868
- if (M.type === "attributes" && M.attributeName === "data-ad-status") {
869
- const L = u.getAttribute("data-ad-status");
866
+ l.appendChild(c), new MutationObserver((b) => {
867
+ b.forEach((j) => {
868
+ if (j.type === "attributes" && j.attributeName === "data-ad-status") {
869
+ const P = c.getAttribute("data-ad-status");
870
870
  this.context.track("AdSenseUnitStatusChanged", {
871
- status: L != null ? L : "null"
871
+ status: P != null ? P : "null"
872
872
  });
873
873
  }
874
874
  });
875
- }).observe(u, {
875
+ }).observe(c, {
876
876
  attributes: !0,
877
877
  attributeFilter: ["data-ad-status"]
878
878
  }), this.push({});
@@ -891,18 +891,18 @@ class wn {
891
891
  }
892
892
  }
893
893
  }
894
- function bn(t) {
894
+ function In(t) {
895
895
  if (t.sheet)
896
896
  return t.sheet;
897
897
  for (var e = 0; e < document.styleSheets.length; e++)
898
898
  if (document.styleSheets[e].ownerNode === t)
899
899
  return document.styleSheets[e];
900
900
  }
901
- function An(t) {
901
+ function xn(t) {
902
902
  var e = document.createElement("style");
903
903
  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;
904
904
  }
905
- var mn = /* @__PURE__ */ function() {
905
+ var Rn = /* @__PURE__ */ function() {
906
906
  function t(i) {
907
907
  var n = this;
908
908
  this._insertTag = function(r) {
@@ -914,10 +914,10 @@ var mn = /* @__PURE__ */ function() {
914
914
  return e.hydrate = function(n) {
915
915
  n.forEach(this._insertTag);
916
916
  }, e.insert = function(n) {
917
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(An(this));
917
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(xn(this));
918
918
  var r = this.tags[this.tags.length - 1];
919
919
  if (this.isSpeedy) {
920
- var o = bn(r);
920
+ var o = In(r);
921
921
  try {
922
922
  o.insertRule(n, o.cssRules.length);
923
923
  } catch (s) {
@@ -931,66 +931,66 @@ var mn = /* @__PURE__ */ function() {
931
931
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
932
932
  }), this.tags = [], this.ctr = 0;
933
933
  }, t;
934
- }(), N = "-ms-", Ne = "-moz-", A = "-webkit-", Jt = "comm", dt = "rule", lt = "decl", Sn = "@import", Yt = "@keyframes", En = "@layer", kn = Math.abs, Be = String.fromCharCode, In = Object.assign;
935
- function xn(t, e) {
934
+ }(), M = "-ms-", je = "-moz-", A = "-webkit-", Zt = "comm", ht = "rule", ft = "decl", On = "@import", ei = "@keyframes", Tn = "@layer", Cn = Math.abs, Ge = String.fromCharCode, Dn = Object.assign;
935
+ function Ln(t, e) {
936
936
  return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
937
937
  }
938
- function Xt(t) {
938
+ function ti(t) {
939
939
  return t.trim();
940
940
  }
941
- function Rn(t, e) {
941
+ function Pn(t, e) {
942
942
  return (t = e.exec(t)) ? t[0] : t;
943
943
  }
944
944
  function m(t, e, i) {
945
945
  return t.replace(e, i);
946
946
  }
947
- function tt(t, e) {
947
+ function ot(t, e) {
948
948
  return t.indexOf(e);
949
949
  }
950
950
  function D(t, e) {
951
951
  return t.charCodeAt(e) | 0;
952
952
  }
953
- function we(t, e, i) {
953
+ function Se(t, e, i) {
954
954
  return t.slice(e, i);
955
955
  }
956
- function H(t) {
956
+ function J(t) {
957
957
  return t.length;
958
958
  }
959
- function ct(t) {
959
+ function vt(t) {
960
960
  return t.length;
961
961
  }
962
- function Ie(t, e) {
962
+ function Te(t, e) {
963
963
  return e.push(t), t;
964
964
  }
965
- function On(t, e) {
965
+ function Nn(t, e) {
966
966
  return t.map(e).join("");
967
967
  }
968
- var je = 1, ae = 1, Qt = 0, U = 0, R = 0, de = "";
969
- function Fe(t, e, i, n, r, o, s) {
970
- return { value: t, root: e, parent: i, type: n, props: r, children: o, line: je, column: ae, length: s, return: "" };
968
+ var ze = 1, ce = 1, ii = 0, U = 0, R = 0, he = "";
969
+ function qe(t, e, i, n, r, o, s) {
970
+ return { value: t, root: e, parent: i, type: n, props: r, children: o, line: ze, column: ce, length: s, return: "" };
971
971
  }
972
- function ve(t, e) {
973
- return In(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
972
+ function we(t, e) {
973
+ return Dn(qe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
974
974
  }
975
- function Tn() {
975
+ function Mn() {
976
976
  return R;
977
977
  }
978
- function Dn() {
979
- return R = U > 0 ? D(de, --U) : 0, ae--, R === 10 && (ae = 1, je--), R;
978
+ function $n() {
979
+ return R = U > 0 ? D(he, --U) : 0, ce--, R === 10 && (ce = 1, ze--), R;
980
980
  }
981
- function F() {
982
- return R = U < Qt ? D(de, U++) : 0, ae++, R === 10 && (ae = 1, je++), R;
981
+ function G() {
982
+ return R = U < ii ? D(he, U++) : 0, ce++, R === 10 && (ce = 1, ze++), R;
983
983
  }
984
- function W() {
985
- return D(de, U);
984
+ function Y() {
985
+ return D(he, U);
986
986
  }
987
- function Re() {
987
+ function De() {
988
988
  return U;
989
989
  }
990
- function Ae(t, e) {
991
- return we(de, t, e);
990
+ function ke(t, e) {
991
+ return Se(he, t, e);
992
992
  }
993
- function be(t) {
993
+ function Ee(t) {
994
994
  switch (t) {
995
995
  case 0:
996
996
  case 9:
@@ -1022,240 +1022,240 @@ function be(t) {
1022
1022
  }
1023
1023
  return 0;
1024
1024
  }
1025
- function Zt(t) {
1026
- return je = ae = 1, Qt = H(de = t), U = 0, [];
1025
+ function ni(t) {
1026
+ return ze = ce = 1, ii = J(he = t), U = 0, [];
1027
1027
  }
1028
- function ei(t) {
1029
- return de = "", t;
1028
+ function ri(t) {
1029
+ return he = "", t;
1030
1030
  }
1031
- function Oe(t) {
1032
- return Xt(Ae(U - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1031
+ function Le(t) {
1032
+ return ti(ke(U - 1, st(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1033
1033
  }
1034
- function Cn(t) {
1035
- for (; (R = W()) && R < 33; )
1036
- F();
1037
- return be(t) > 2 || be(R) > 3 ? "" : " ";
1034
+ function jn(t) {
1035
+ for (; (R = Y()) && R < 33; )
1036
+ G();
1037
+ return Ee(t) > 2 || Ee(R) > 3 ? "" : " ";
1038
1038
  }
1039
- function Ln(t, e) {
1040
- for (; --e && F() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
1039
+ function Un(t, e) {
1040
+ for (; --e && G() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
1041
1041
  ;
1042
- return Ae(t, Re() + (e < 6 && W() == 32 && F() == 32));
1042
+ return ke(t, De() + (e < 6 && Y() == 32 && G() == 32));
1043
1043
  }
1044
- function it(t) {
1045
- for (; F(); )
1044
+ function st(t) {
1045
+ for (; G(); )
1046
1046
  switch (R) {
1047
1047
  case t:
1048
1048
  return U;
1049
1049
  case 34:
1050
1050
  case 39:
1051
- t !== 34 && t !== 39 && it(R);
1051
+ t !== 34 && t !== 39 && st(R);
1052
1052
  break;
1053
1053
  case 40:
1054
- t === 41 && it(t);
1054
+ t === 41 && st(t);
1055
1055
  break;
1056
1056
  case 92:
1057
- F();
1057
+ G();
1058
1058
  break;
1059
1059
  }
1060
1060
  return U;
1061
1061
  }
1062
- function Nn(t, e) {
1063
- for (; F() && t + R !== 57; )
1064
- if (t + R === 84 && W() === 47)
1062
+ function Bn(t, e) {
1063
+ for (; G() && t + R !== 57; )
1064
+ if (t + R === 84 && Y() === 47)
1065
1065
  break;
1066
- return "/*" + Ae(e, U - 1) + "*" + Be(t === 47 ? t : F());
1066
+ return "/*" + ke(e, U - 1) + "*" + Ge(t === 47 ? t : G());
1067
1067
  }
1068
- function Pn(t) {
1069
- for (; !be(W()); )
1070
- F();
1071
- return Ae(t, U);
1068
+ function Fn(t) {
1069
+ for (; !Ee(Y()); )
1070
+ G();
1071
+ return ke(t, U);
1072
1072
  }
1073
- function Mn(t) {
1074
- return ei(Te("", null, null, null, [""], t = Zt(t), 0, [0], t));
1073
+ function Vn(t) {
1074
+ return ri(Pe("", null, null, null, [""], t = ni(t), 0, [0], t));
1075
1075
  }
1076
- function Te(t, e, i, n, r, o, s, a, d) {
1077
- for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0, w = "", M = r, L = o, V = n, E = w; g; )
1078
- switch (y = _, _ = F()) {
1076
+ function Pe(t, e, i, n, r, o, s, a, d) {
1077
+ for (var l = 0, u = 0, h = s, c = 0, f = 0, g = 0, v = 1, w = 1, y = 1, p = 0, b = "", j = r, P = o, z = n, E = b; w; )
1078
+ switch (g = p, p = G()) {
1079
1079
  case 40:
1080
- if (y != 108 && D(E, h - 1) == 58) {
1081
- tt(E += m(Oe(_), "&", "&\f"), "&\f") != -1 && (p = -1);
1080
+ if (g != 108 && D(E, h - 1) == 58) {
1081
+ ot(E += m(Le(p), "&", "&\f"), "&\f") != -1 && (y = -1);
1082
1082
  break;
1083
1083
  }
1084
1084
  case 34:
1085
1085
  case 39:
1086
1086
  case 91:
1087
- E += Oe(_);
1087
+ E += Le(p);
1088
1088
  break;
1089
1089
  case 9:
1090
1090
  case 10:
1091
1091
  case 13:
1092
1092
  case 32:
1093
- E += Cn(y);
1093
+ E += jn(g);
1094
1094
  break;
1095
1095
  case 92:
1096
- E += Ln(Re() - 1, 7);
1096
+ E += Un(De() - 1, 7);
1097
1097
  continue;
1098
1098
  case 47:
1099
- switch (W()) {
1099
+ switch (Y()) {
1100
1100
  case 42:
1101
1101
  case 47:
1102
- Ie($n(Nn(F(), Re()), e, i), d);
1102
+ Te(Gn(Bn(G(), De()), e, i), d);
1103
1103
  break;
1104
1104
  default:
1105
1105
  E += "/";
1106
1106
  }
1107
1107
  break;
1108
1108
  case 123 * v:
1109
- a[l++] = H(E) * p;
1109
+ a[l++] = J(E) * y;
1110
1110
  case 125 * v:
1111
1111
  case 59:
1112
1112
  case 0:
1113
- switch (_) {
1113
+ switch (p) {
1114
1114
  case 0:
1115
1115
  case 125:
1116
- g = 0;
1117
- case 59 + c:
1118
- p == -1 && (E = m(E, /\f/g, "")), f > 0 && H(E) - h && Ie(f > 32 ? Et(E + ";", n, i, h - 1) : Et(m(E, " ", "") + ";", n, i, h - 2), d);
1116
+ w = 0;
1117
+ case 59 + u:
1118
+ y == -1 && (E = m(E, /\f/g, "")), f > 0 && J(E) - h && Te(f > 32 ? Rt(E + ";", n, i, h - 1) : Rt(m(E, " ", "") + ";", n, i, h - 2), d);
1119
1119
  break;
1120
1120
  case 59:
1121
1121
  E += ";";
1122
1122
  default:
1123
- if (Ie(V = St(E, e, i, l, c, r, a, w, M = [], L = [], h), o), _ === 123)
1124
- if (c === 0)
1125
- Te(E, e, V, V, M, o, h, a, L);
1123
+ if (Te(z = xt(E, e, i, l, u, r, a, b, j = [], P = [], h), o), p === 123)
1124
+ if (u === 0)
1125
+ Pe(E, e, z, z, j, o, h, a, P);
1126
1126
  else
1127
- switch (u === 99 && D(E, 3) === 110 ? 100 : u) {
1127
+ switch (c === 99 && D(E, 3) === 110 ? 100 : c) {
1128
1128
  case 100:
1129
1129
  case 108:
1130
1130
  case 109:
1131
1131
  case 115:
1132
- Te(t, V, V, n && Ie(St(t, V, V, 0, 0, r, a, w, r, M = [], h), L), r, L, h, a, n ? M : L);
1132
+ Pe(t, z, z, n && Te(xt(t, z, z, 0, 0, r, a, b, r, j = [], h), P), r, P, h, a, n ? j : P);
1133
1133
  break;
1134
1134
  default:
1135
- Te(E, V, V, V, [""], L, 0, a, L);
1135
+ Pe(E, z, z, z, [""], P, 0, a, P);
1136
1136
  }
1137
1137
  }
1138
- l = c = f = 0, v = p = 1, w = E = "", h = s;
1138
+ l = u = f = 0, v = y = 1, b = E = "", h = s;
1139
1139
  break;
1140
1140
  case 58:
1141
- h = 1 + H(E), f = y;
1141
+ h = 1 + J(E), f = g;
1142
1142
  default:
1143
1143
  if (v < 1) {
1144
- if (_ == 123)
1144
+ if (p == 123)
1145
1145
  --v;
1146
- else if (_ == 125 && v++ == 0 && Dn() == 125)
1146
+ else if (p == 125 && v++ == 0 && $n() == 125)
1147
1147
  continue;
1148
1148
  }
1149
- switch (E += Be(_), _ * v) {
1149
+ switch (E += Ge(p), p * v) {
1150
1150
  case 38:
1151
- p = c > 0 ? 1 : (E += "\f", -1);
1151
+ y = u > 0 ? 1 : (E += "\f", -1);
1152
1152
  break;
1153
1153
  case 44:
1154
- a[l++] = (H(E) - 1) * p, p = 1;
1154
+ a[l++] = (J(E) - 1) * y, y = 1;
1155
1155
  break;
1156
1156
  case 64:
1157
- W() === 45 && (E += Oe(F())), u = W(), c = h = H(w = E += Pn(Re())), _++;
1157
+ Y() === 45 && (E += Le(G())), c = Y(), u = h = J(b = E += Fn(De())), p++;
1158
1158
  break;
1159
1159
  case 45:
1160
- y === 45 && H(E) == 2 && (v = 0);
1160
+ g === 45 && J(E) == 2 && (v = 0);
1161
1161
  }
1162
1162
  }
1163
1163
  return o;
1164
1164
  }
1165
- function St(t, e, i, n, r, o, s, a, d, l, c) {
1166
- for (var h = r - 1, u = r === 0 ? o : [""], f = ct(u), y = 0, v = 0, g = 0; y < n; ++y)
1167
- for (var p = 0, _ = we(t, h + 1, h = kn(v = s[y])), w = t; p < f; ++p)
1168
- (w = Xt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = w);
1169
- return Fe(t, e, i, r === 0 ? dt : a, d, l, c);
1165
+ function xt(t, e, i, n, r, o, s, a, d, l, u) {
1166
+ for (var h = r - 1, c = r === 0 ? o : [""], f = vt(c), g = 0, v = 0, w = 0; g < n; ++g)
1167
+ for (var y = 0, p = Se(t, h + 1, h = Cn(v = s[g])), b = t; y < f; ++y)
1168
+ (b = ti(v > 0 ? c[y] + " " + p : m(p, /&\f/g, c[y]))) && (d[w++] = b);
1169
+ return qe(t, e, i, r === 0 ? ht : a, d, l, u);
1170
1170
  }
1171
- function $n(t, e, i) {
1172
- return Fe(t, e, i, Jt, Be(Tn()), we(t, 2, -2), 0);
1171
+ function Gn(t, e, i) {
1172
+ return qe(t, e, i, Zt, Ge(Mn()), Se(t, 2, -2), 0);
1173
1173
  }
1174
- function Et(t, e, i, n) {
1175
- return Fe(t, e, i, lt, we(t, 0, n), we(t, n + 1, -1), n);
1174
+ function Rt(t, e, i, n) {
1175
+ return qe(t, e, i, ft, Se(t, 0, n), Se(t, n + 1, -1), n);
1176
1176
  }
1177
- function oe(t, e) {
1178
- for (var i = "", n = ct(t), r = 0; r < n; r++)
1177
+ function le(t, e) {
1178
+ for (var i = "", n = vt(t), r = 0; r < n; r++)
1179
1179
  i += e(t[r], r, t, e) || "";
1180
1180
  return i;
1181
1181
  }
1182
- function Un(t, e, i, n) {
1182
+ function zn(t, e, i, n) {
1183
1183
  switch (t.type) {
1184
- case En:
1184
+ case Tn:
1185
1185
  if (t.children.length)
1186
1186
  break;
1187
- case Sn:
1188
- case lt:
1187
+ case On:
1188
+ case ft:
1189
1189
  return t.return = t.return || t.value;
1190
- case Jt:
1190
+ case Zt:
1191
1191
  return "";
1192
- case Yt:
1193
- return t.return = t.value + "{" + oe(t.children, n) + "}";
1194
- case dt:
1192
+ case ei:
1193
+ return t.return = t.value + "{" + le(t.children, n) + "}";
1194
+ case ht:
1195
1195
  t.value = t.props.join(",");
1196
1196
  }
1197
- return H(i = oe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1197
+ return J(i = le(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1198
1198
  }
1199
- function Bn(t) {
1200
- var e = ct(t);
1199
+ function qn(t) {
1200
+ var e = vt(t);
1201
1201
  return function(i, n, r, o) {
1202
1202
  for (var s = "", a = 0; a < e; a++)
1203
1203
  s += t[a](i, n, r, o) || "";
1204
1204
  return s;
1205
1205
  };
1206
1206
  }
1207
- function jn(t) {
1207
+ function Kn(t) {
1208
1208
  return function(e) {
1209
1209
  e.root || (e = e.return) && t(e);
1210
1210
  };
1211
1211
  }
1212
- function Fn(t) {
1212
+ function Hn(t) {
1213
1213
  var e = /* @__PURE__ */ Object.create(null);
1214
1214
  return function(i) {
1215
1215
  return e[i] === void 0 && (e[i] = t(i)), e[i];
1216
1216
  };
1217
1217
  }
1218
- var Vn = function(e, i, n) {
1219
- for (var r = 0, o = 0; r = o, o = W(), r === 38 && o === 12 && (i[n] = 1), !be(o); )
1220
- F();
1221
- return Ae(e, U);
1222
- }, zn = function(e, i) {
1218
+ var Wn = function(e, i, n) {
1219
+ for (var r = 0, o = 0; r = o, o = Y(), r === 38 && o === 12 && (i[n] = 1), !Ee(o); )
1220
+ G();
1221
+ return ke(e, U);
1222
+ }, Jn = function(e, i) {
1223
1223
  var n = -1, r = 44;
1224
1224
  do
1225
- switch (be(r)) {
1225
+ switch (Ee(r)) {
1226
1226
  case 0:
1227
- r === 38 && W() === 12 && (i[n] = 1), e[n] += Vn(U - 1, i, n);
1227
+ r === 38 && Y() === 12 && (i[n] = 1), e[n] += Wn(U - 1, i, n);
1228
1228
  break;
1229
1229
  case 2:
1230
- e[n] += Oe(r);
1230
+ e[n] += Le(r);
1231
1231
  break;
1232
1232
  case 4:
1233
1233
  if (r === 44) {
1234
- e[++n] = W() === 58 ? "&\f" : "", i[n] = e[n].length;
1234
+ e[++n] = Y() === 58 ? "&\f" : "", i[n] = e[n].length;
1235
1235
  break;
1236
1236
  }
1237
1237
  default:
1238
- e[n] += Be(r);
1238
+ e[n] += Ge(r);
1239
1239
  }
1240
- while (r = F());
1240
+ while (r = G());
1241
1241
  return e;
1242
- }, Kn = function(e, i) {
1243
- return ei(zn(Zt(e), i));
1244
- }, kt = /* @__PURE__ */ new WeakMap(), Gn = function(e) {
1242
+ }, Yn = function(e, i) {
1243
+ return ri(Jn(ni(e), i));
1244
+ }, Ot = /* @__PURE__ */ new WeakMap(), Xn = function(e) {
1245
1245
  if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
1246
1246
  // negative .length indicates that this rule has been already prefixed
1247
1247
  e.length < 1)) {
1248
1248
  for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
1249
1249
  if (n = n.parent, !n)
1250
1250
  return;
1251
- if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !kt.get(n)) && !r) {
1252
- kt.set(e, !0);
1253
- for (var o = [], s = Kn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1254
- for (var c = 0; c < a.length; c++, l++)
1255
- e.props[l] = o[d] ? s[d].replace(/&\f/g, a[c]) : a[c] + " " + s[d];
1251
+ if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Ot.get(n)) && !r) {
1252
+ Ot.set(e, !0);
1253
+ for (var o = [], s = Yn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1254
+ for (var u = 0; u < a.length; u++, l++)
1255
+ e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
1256
1256
  }
1257
1257
  }
1258
- }, qn = function(e) {
1258
+ }, Qn = function(e) {
1259
1259
  if (e.type === "decl") {
1260
1260
  var i = e.value;
1261
1261
  // charcode for l
@@ -1263,8 +1263,8 @@ var Vn = function(e, i, n) {
1263
1263
  i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1264
1264
  }
1265
1265
  };
1266
- function ti(t, e) {
1267
- switch (xn(t, e)) {
1266
+ function oi(t, e) {
1267
+ switch (Ln(t, e)) {
1268
1268
  case 5103:
1269
1269
  return A + "print-" + t + t;
1270
1270
  case 5737:
@@ -1298,24 +1298,24 @@ function ti(t, e) {
1298
1298
  case 4810:
1299
1299
  case 6968:
1300
1300
  case 2756:
1301
- return A + t + Ne + t + N + t + t;
1301
+ return A + t + je + t + M + t + t;
1302
1302
  case 6828:
1303
1303
  case 4268:
1304
- return A + t + N + t + t;
1304
+ return A + t + M + t + t;
1305
1305
  case 6165:
1306
- return A + t + N + "flex-" + t + t;
1306
+ return A + t + M + "flex-" + t + t;
1307
1307
  case 5187:
1308
- return A + t + m(t, /(\w+).+(:[^]+)/, A + "box-$1$2" + N + "flex-$1$2") + t;
1308
+ return A + t + m(t, /(\w+).+(:[^]+)/, A + "box-$1$2" + M + "flex-$1$2") + t;
1309
1309
  case 5443:
1310
- return A + t + N + "flex-item-" + m(t, /flex-|-self/, "") + t;
1310
+ return A + t + M + "flex-item-" + m(t, /flex-|-self/, "") + t;
1311
1311
  case 4675:
1312
- return A + t + N + "flex-line-pack" + m(t, /align-content|flex-|-self/, "") + t;
1312
+ return A + t + M + "flex-line-pack" + m(t, /align-content|flex-|-self/, "") + t;
1313
1313
  case 5548:
1314
- return A + t + N + m(t, "shrink", "negative") + t;
1314
+ return A + t + M + m(t, "shrink", "negative") + t;
1315
1315
  case 5292:
1316
- return A + t + N + m(t, "basis", "preferred-size") + t;
1316
+ return A + t + M + m(t, "basis", "preferred-size") + t;
1317
1317
  case 6060:
1318
- return A + "box-" + m(t, "-grow", "") + A + t + N + m(t, "grow", "positive") + t;
1318
+ return A + "box-" + m(t, "-grow", "") + A + t + M + m(t, "grow", "positive") + t;
1319
1319
  case 4554:
1320
1320
  return A + m(t, /([^-])(transform)/g, "$1" + A + "$2") + t;
1321
1321
  case 6187:
@@ -1324,7 +1324,7 @@ function ti(t, e) {
1324
1324
  case 3959:
1325
1325
  return m(t, /(image-set\([^]*)/, A + "$1$`$1");
1326
1326
  case 4968:
1327
- return m(m(t, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + N + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + t + t;
1327
+ return m(m(t, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + M + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + t + t;
1328
1328
  case 4095:
1329
1329
  case 3583:
1330
1330
  case 4068:
@@ -1342,106 +1342,106 @@ function ti(t, e) {
1342
1342
  case 5789:
1343
1343
  case 5021:
1344
1344
  case 4765:
1345
- if (H(t) - 1 - e > 6)
1345
+ if (J(t) - 1 - e > 6)
1346
1346
  switch (D(t, e + 1)) {
1347
1347
  case 109:
1348
1348
  if (D(t, e + 4) !== 45)
1349
1349
  break;
1350
1350
  case 102:
1351
- return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Ne + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1351
+ return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + je + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1352
1352
  case 115:
1353
- return ~tt(t, "stretch") ? ti(m(t, "stretch", "fill-available"), e) + t : t;
1353
+ return ~ot(t, "stretch") ? oi(m(t, "stretch", "fill-available"), e) + t : t;
1354
1354
  }
1355
1355
  break;
1356
1356
  case 4949:
1357
1357
  if (D(t, e + 1) !== 115)
1358
1358
  break;
1359
1359
  case 6444:
1360
- switch (D(t, H(t) - 3 - (~tt(t, "!important") && 10))) {
1360
+ switch (D(t, J(t) - 3 - (~ot(t, "!important") && 10))) {
1361
1361
  case 107:
1362
1362
  return m(t, ":", ":" + A) + t;
1363
1363
  case 101:
1364
- return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (D(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + N + "$2box$3") + t;
1364
+ return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (D(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + M + "$2box$3") + t;
1365
1365
  }
1366
1366
  break;
1367
1367
  case 5936:
1368
1368
  switch (D(t, e + 11)) {
1369
1369
  case 114:
1370
- return A + t + N + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
1370
+ return A + t + M + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
1371
1371
  case 108:
1372
- return A + t + N + m(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
1372
+ return A + t + M + m(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
1373
1373
  case 45:
1374
- return A + t + N + m(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
1374
+ return A + t + M + m(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
1375
1375
  }
1376
- return A + t + N + t + t;
1376
+ return A + t + M + t + t;
1377
1377
  }
1378
1378
  return t;
1379
1379
  }
1380
- var Hn = function(e, i, n, r) {
1380
+ var Zn = function(e, i, n, r) {
1381
1381
  if (e.length > -1 && !e.return)
1382
1382
  switch (e.type) {
1383
- case lt:
1384
- e.return = ti(e.value, e.length);
1383
+ case ft:
1384
+ e.return = oi(e.value, e.length);
1385
1385
  break;
1386
- case Yt:
1387
- return oe([ve(e, {
1386
+ case ei:
1387
+ return le([we(e, {
1388
1388
  value: m(e.value, "@", "@" + A)
1389
1389
  })], r);
1390
- case dt:
1390
+ case ht:
1391
1391
  if (e.length)
1392
- return On(e.props, function(o) {
1393
- switch (Rn(o, /(::plac\w+|:read-\w+)/)) {
1392
+ return Nn(e.props, function(o) {
1393
+ switch (Pn(o, /(::plac\w+|:read-\w+)/)) {
1394
1394
  case ":read-only":
1395
1395
  case ":read-write":
1396
- return oe([ve(e, {
1397
- props: [m(o, /:(read-\w+)/, ":" + Ne + "$1")]
1396
+ return le([we(e, {
1397
+ props: [m(o, /:(read-\w+)/, ":" + je + "$1")]
1398
1398
  })], r);
1399
1399
  case "::placeholder":
1400
- return oe([ve(e, {
1400
+ return le([we(e, {
1401
1401
  props: [m(o, /:(plac\w+)/, ":" + A + "input-$1")]
1402
- }), ve(e, {
1403
- props: [m(o, /:(plac\w+)/, ":" + Ne + "$1")]
1404
- }), ve(e, {
1405
- props: [m(o, /:(plac\w+)/, N + "input-$1")]
1402
+ }), we(e, {
1403
+ props: [m(o, /:(plac\w+)/, ":" + je + "$1")]
1404
+ }), we(e, {
1405
+ props: [m(o, /:(plac\w+)/, M + "input-$1")]
1406
1406
  })], r);
1407
1407
  }
1408
1408
  return "";
1409
1409
  });
1410
1410
  }
1411
- }, Wn = [Hn], Jn = function(e) {
1411
+ }, er = [Zn], tr = function(e) {
1412
1412
  var i = e.key;
1413
1413
  if (i === "css") {
1414
1414
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
1415
1415
  Array.prototype.forEach.call(n, function(v) {
1416
- var g = v.getAttribute("data-emotion");
1417
- g.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1416
+ var w = v.getAttribute("data-emotion");
1417
+ w.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1418
1418
  });
1419
1419
  }
1420
- var r = e.stylisPlugins || Wn, o = {}, s, a = [];
1420
+ var r = e.stylisPlugins || er, o = {}, s, a = [];
1421
1421
  s = e.container || document.head, Array.prototype.forEach.call(
1422
1422
  // this means we will ignore elements which don't have a space in them which
1423
1423
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1424
1424
  document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
1425
1425
  function(v) {
1426
- for (var g = v.getAttribute("data-emotion").split(" "), p = 1; p < g.length; p++)
1427
- o[g[p]] = !0;
1426
+ for (var w = v.getAttribute("data-emotion").split(" "), y = 1; y < w.length; y++)
1427
+ o[w[y]] = !0;
1428
1428
  a.push(v);
1429
1429
  }
1430
1430
  );
1431
- var d, l = [Gn, qn];
1431
+ var d, l = [Xn, Qn];
1432
1432
  {
1433
- var c, h = [Un, jn(function(v) {
1434
- c.insert(v);
1435
- })], u = Bn(l.concat(r, h)), f = function(g) {
1436
- return oe(Mn(g), u);
1433
+ var u, h = [zn, Kn(function(v) {
1434
+ u.insert(v);
1435
+ })], c = qn(l.concat(r, h)), f = function(w) {
1436
+ return le(Vn(w), c);
1437
1437
  };
1438
- d = function(g, p, _, w) {
1439
- c = _, f(g ? g + "{" + p.styles + "}" : p.styles), w && (y.inserted[p.name] = !0);
1438
+ d = function(w, y, p, b) {
1439
+ u = p, f(w ? w + "{" + y.styles + "}" : y.styles), b && (g.inserted[y.name] = !0);
1440
1440
  };
1441
1441
  }
1442
- var y = {
1442
+ var g = {
1443
1443
  key: i,
1444
- sheet: new mn({
1444
+ sheet: new Rn({
1445
1445
  key: i,
1446
1446
  container: s,
1447
1447
  nonce: e.nonce,
@@ -1454,9 +1454,9 @@ var Hn = function(e, i, n, r) {
1454
1454
  registered: {},
1455
1455
  insert: d
1456
1456
  };
1457
- return y.sheet.hydrate(a), y;
1457
+ return g.sheet.hydrate(a), g;
1458
1458
  };
1459
- function Yn(t) {
1459
+ function ir(t) {
1460
1460
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
1461
1461
  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): */
1462
1462
  (i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
@@ -1475,7 +1475,7 @@ function Yn(t) {
1475
1475
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
1476
1476
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1477
1477
  }
1478
- var Xn = {
1478
+ var nr = {
1479
1479
  animationIterationCount: 1,
1480
1480
  aspectRatio: 1,
1481
1481
  borderImageOutset: 1,
@@ -1524,28 +1524,28 @@ var Xn = {
1524
1524
  strokeMiterlimit: 1,
1525
1525
  strokeOpacity: 1,
1526
1526
  strokeWidth: 1
1527
- }, Qn = /[A-Z]|^ms/g, Zn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ii = function(e) {
1527
+ }, rr = /[A-Z]|^ms/g, or = /_EMO_([^_]+?)_([^]*?)_EMO_/g, si = function(e) {
1528
1528
  return e.charCodeAt(1) === 45;
1529
- }, It = function(e) {
1529
+ }, Tt = function(e) {
1530
1530
  return e != null && typeof e != "boolean";
1531
- }, Ge = /* @__PURE__ */ Fn(function(t) {
1532
- return ii(t) ? t : t.replace(Qn, "-$&").toLowerCase();
1533
- }), xt = function(e, i) {
1531
+ }, Je = /* @__PURE__ */ Hn(function(t) {
1532
+ return si(t) ? t : t.replace(rr, "-$&").toLowerCase();
1533
+ }), Ct = function(e, i) {
1534
1534
  switch (e) {
1535
1535
  case "animation":
1536
1536
  case "animationName":
1537
1537
  if (typeof i == "string")
1538
- return i.replace(Zn, function(n, r, o) {
1539
- return Z = {
1538
+ return i.replace(or, function(n, r, o) {
1539
+ return ie = {
1540
1540
  name: r,
1541
1541
  styles: o,
1542
- next: Z
1542
+ next: ie
1543
1543
  }, r;
1544
1544
  });
1545
1545
  }
1546
- return Xn[e] !== 1 && !ii(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1546
+ return nr[e] !== 1 && !si(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1547
1547
  };
1548
- function Pe(t, e, i) {
1548
+ function Ue(t, e, i) {
1549
1549
  if (i == null)
1550
1550
  return "";
1551
1551
  var n = i;
@@ -1557,25 +1557,25 @@ function Pe(t, e, i) {
1557
1557
  case "object": {
1558
1558
  var r = i;
1559
1559
  if (r.anim === 1)
1560
- return Z = {
1560
+ return ie = {
1561
1561
  name: r.name,
1562
1562
  styles: r.styles,
1563
- next: Z
1563
+ next: ie
1564
1564
  }, r.name;
1565
1565
  var o = i;
1566
1566
  if (o.styles !== void 0) {
1567
1567
  var s = o.next;
1568
1568
  if (s !== void 0)
1569
1569
  for (; s !== void 0; )
1570
- Z = {
1570
+ ie = {
1571
1571
  name: s.name,
1572
1572
  styles: s.styles,
1573
- next: Z
1573
+ next: ie
1574
1574
  }, s = s.next;
1575
1575
  var a = o.styles + ";";
1576
1576
  return a;
1577
1577
  }
1578
- return er(t, e, i);
1578
+ return sr(t, e, i);
1579
1579
  }
1580
1580
  }
1581
1581
  var d = i;
@@ -1584,26 +1584,26 @@ function Pe(t, e, i) {
1584
1584
  var l = e[d];
1585
1585
  return l !== void 0 ? l : d;
1586
1586
  }
1587
- function er(t, e, i) {
1587
+ function sr(t, e, i) {
1588
1588
  var n = "";
1589
1589
  if (Array.isArray(i))
1590
1590
  for (var r = 0; r < i.length; r++)
1591
- n += Pe(t, e, i[r]) + ";";
1591
+ n += Ue(t, e, i[r]) + ";";
1592
1592
  else
1593
1593
  for (var o in i) {
1594
1594
  var s = i[o];
1595
1595
  if (typeof s != "object") {
1596
1596
  var a = s;
1597
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : It(a) && (n += Ge(o) + ":" + xt(o, a) + ";");
1597
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Tt(a) && (n += Je(o) + ":" + Ct(o, a) + ";");
1598
1598
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1599
1599
  for (var d = 0; d < s.length; d++)
1600
- It(s[d]) && (n += Ge(o) + ":" + xt(o, s[d]) + ";");
1600
+ Tt(s[d]) && (n += Je(o) + ":" + Ct(o, s[d]) + ";");
1601
1601
  else {
1602
- var l = Pe(t, e, s);
1602
+ var l = Ue(t, e, s);
1603
1603
  switch (o) {
1604
1604
  case "animation":
1605
1605
  case "animationName": {
1606
- n += Ge(o) + ":" + l + ";";
1606
+ n += Je(o) + ":" + l + ";";
1607
1607
  break;
1608
1608
  }
1609
1609
  default:
@@ -1613,41 +1613,41 @@ function er(t, e, i) {
1613
1613
  }
1614
1614
  return n;
1615
1615
  }
1616
- var Rt = /label:\s*([^\s;{]+)\s*(;|$)/g, Z;
1617
- function qe(t, e, i) {
1616
+ var Dt = /label:\s*([^\s;{]+)\s*(;|$)/g, ie;
1617
+ function Ye(t, e, i) {
1618
1618
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1619
1619
  return t[0];
1620
1620
  var n = !0, r = "";
1621
- Z = void 0;
1621
+ ie = void 0;
1622
1622
  var o = t[0];
1623
1623
  if (o == null || o.raw === void 0)
1624
- n = !1, r += Pe(i, e, o);
1624
+ n = !1, r += Ue(i, e, o);
1625
1625
  else {
1626
1626
  var s = o;
1627
1627
  r += s[0];
1628
1628
  }
1629
1629
  for (var a = 1; a < t.length; a++)
1630
- if (r += Pe(i, e, t[a]), n) {
1630
+ if (r += Ue(i, e, t[a]), n) {
1631
1631
  var d = o;
1632
1632
  r += d[a];
1633
1633
  }
1634
- Rt.lastIndex = 0;
1635
- for (var l = "", c; (c = Rt.exec(r)) !== null; )
1636
- l += "-" + c[1];
1637
- var h = Yn(r) + l;
1634
+ Dt.lastIndex = 0;
1635
+ for (var l = "", u; (u = Dt.exec(r)) !== null; )
1636
+ l += "-" + u[1];
1637
+ var h = ir(r) + l;
1638
1638
  return {
1639
1639
  name: h,
1640
1640
  styles: r,
1641
- next: Z
1641
+ next: ie
1642
1642
  };
1643
1643
  }
1644
- function ni(t, e, i) {
1644
+ function ai(t, e, i) {
1645
1645
  var n = "";
1646
1646
  return i.split(" ").forEach(function(r) {
1647
1647
  t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
1648
1648
  }), n;
1649
1649
  }
1650
- var tr = function(e, i, n) {
1650
+ var ar = function(e, i, n) {
1651
1651
  var r = e.key + "-" + i.name;
1652
1652
  // we only need to add the styles to the registered cache if the
1653
1653
  // class name could be used further down
@@ -1655,8 +1655,8 @@ var tr = function(e, i, n) {
1655
1655
  // so we don't have to add it to registered cache.
1656
1656
  // this improves memory usage since we can avoid storing the whole style string
1657
1657
  e.registered[r] === void 0 && (e.registered[r] = i.styles);
1658
- }, ir = function(e, i, n) {
1659
- tr(e, i);
1658
+ }, dr = function(e, i, n) {
1659
+ ar(e, i);
1660
1660
  var r = e.key + "-" + i.name;
1661
1661
  if (e.inserted[i.name] === void 0) {
1662
1662
  var o = i;
@@ -1665,41 +1665,41 @@ var tr = function(e, i, n) {
1665
1665
  while (o !== void 0);
1666
1666
  }
1667
1667
  };
1668
- function Ot(t, e) {
1668
+ function Lt(t, e) {
1669
1669
  if (t.inserted[e.name] === void 0)
1670
1670
  return t.insert("", e, t.sheet, !0);
1671
1671
  }
1672
- function Tt(t, e, i) {
1673
- var n = [], r = ni(t, n, i);
1672
+ function Pt(t, e, i) {
1673
+ var n = [], r = ai(t, n, i);
1674
1674
  return n.length < 2 ? i : r + e(n);
1675
1675
  }
1676
- var nr = function(e) {
1677
- var i = Jn(e);
1676
+ var lr = function(e) {
1677
+ var i = tr(e);
1678
1678
  i.sheet.speedy = function(a) {
1679
1679
  this.isSpeedy = a;
1680
1680
  }, i.compat = !0;
1681
1681
  var n = function() {
1682
- for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1683
- l[c] = arguments[c];
1684
- var h = qe(l, i.registered, void 0);
1685
- return ir(i, h), i.key + "-" + h.name;
1682
+ for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1683
+ l[u] = arguments[u];
1684
+ var h = Ye(l, i.registered, void 0);
1685
+ return dr(i, h), i.key + "-" + h.name;
1686
1686
  }, r = function() {
1687
- for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1688
- l[c] = arguments[c];
1689
- var h = qe(l, i.registered), u = "animation-" + h.name;
1690
- return Ot(i, {
1687
+ for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1688
+ l[u] = arguments[u];
1689
+ var h = Ye(l, i.registered), c = "animation-" + h.name;
1690
+ return Lt(i, {
1691
1691
  name: h.name,
1692
- styles: "@keyframes " + u + "{" + h.styles + "}"
1693
- }), u;
1692
+ styles: "@keyframes " + c + "{" + h.styles + "}"
1693
+ }), c;
1694
1694
  }, o = function() {
1695
- for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1696
- l[c] = arguments[c];
1697
- var h = qe(l, i.registered);
1698
- Ot(i, h);
1695
+ for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1696
+ l[u] = arguments[u];
1697
+ var h = Ye(l, i.registered);
1698
+ Lt(i, h);
1699
1699
  }, s = function() {
1700
- for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
1701
- l[c] = arguments[c];
1702
- return Tt(i.registered, n, rr(l));
1700
+ for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1701
+ l[u] = arguments[u];
1702
+ return Pt(i.registered, n, ur(l));
1703
1703
  };
1704
1704
  return {
1705
1705
  css: n,
@@ -1716,10 +1716,10 @@ var nr = function(e) {
1716
1716
  },
1717
1717
  sheet: i.sheet,
1718
1718
  cache: i,
1719
- getRegisteredStyles: ni.bind(null, i.registered),
1720
- merge: Tt.bind(null, i.registered, n)
1719
+ getRegisteredStyles: ai.bind(null, i.registered),
1720
+ merge: Pt.bind(null, i.registered, n)
1721
1721
  };
1722
- }, rr = function t(e) {
1722
+ }, ur = function t(e) {
1723
1723
  for (var i = "", n = 0; n < e.length; n++) {
1724
1724
  var r = e[n];
1725
1725
  if (r != null) {
@@ -1744,96 +1744,96 @@ var nr = function(e) {
1744
1744
  }
1745
1745
  }
1746
1746
  return i;
1747
- }, or = nr({
1747
+ }, cr = lr({
1748
1748
  key: "css"
1749
- }), le = or.css, nt, j, He, Dt, Ct = 0, ri = [], O = se, Lt = O.__b, Nt = O.__r, Pt = O.diffed, Mt = O.__c, $t = O.unmount, Ut = O.__;
1750
- function sr(t, e) {
1751
- O.__h && O.__h(j, t, Ct || e), Ct = 0;
1752
- var i = j.__H || (j.__H = { __: [], __h: [] });
1749
+ }), fe = cr.css, at, V, Xe, Nt, Mt = 0, di = [], T = ue, $t = T.__b, jt = T.__r, Ut = T.diffed, Bt = T.__c, Ft = T.unmount, Vt = T.__;
1750
+ function hr(t, e) {
1751
+ T.__h && T.__h(V, t, Mt || e), Mt = 0;
1752
+ var i = V.__H || (V.__H = { __: [], __h: [] });
1753
1753
  return t >= i.__.length && i.__.push({}), i.__[t];
1754
1754
  }
1755
- function oi(t, e) {
1756
- var i = sr(nt++, 7);
1757
- return lr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1755
+ function li(t, e) {
1756
+ var i = hr(at++, 7);
1757
+ return gr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1758
1758
  }
1759
- function ar() {
1760
- for (var t; t = ri.shift(); )
1759
+ function fr() {
1760
+ for (var t; t = di.shift(); )
1761
1761
  if (t.__P && t.__H)
1762
1762
  try {
1763
- t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
1763
+ t.__H.__h.forEach(Ne), t.__H.__h.forEach(dt), t.__H.__h = [];
1764
1764
  } catch (e) {
1765
- t.__H.__h = [], O.__e(e, t.__v);
1765
+ t.__H.__h = [], T.__e(e, t.__v);
1766
1766
  }
1767
1767
  }
1768
- O.__b = function(t) {
1769
- j = null, Lt && Lt(t);
1770
- }, O.__ = function(t, e) {
1771
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Ut && Ut(t, e);
1772
- }, O.__r = function(t) {
1773
- Nt && Nt(t), nt = 0;
1774
- var e = (j = t.__c).__H;
1775
- e && (He === j ? (e.__h = [], j.__h = [], e.__.forEach(function(i) {
1768
+ T.__b = function(t) {
1769
+ V = null, $t && $t(t);
1770
+ }, T.__ = function(t, e) {
1771
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Vt && Vt(t, e);
1772
+ }, T.__r = function(t) {
1773
+ jt && jt(t), at = 0;
1774
+ var e = (V = t.__c).__H;
1775
+ e && (Xe === V ? (e.__h = [], V.__h = [], e.__.forEach(function(i) {
1776
1776
  i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
1777
- })) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], nt = 0)), He = j;
1778
- }, O.diffed = function(t) {
1779
- Pt && Pt(t);
1777
+ })) : (e.__h.forEach(Ne), e.__h.forEach(dt), e.__h = [], at = 0)), Xe = V;
1778
+ }, T.diffed = function(t) {
1779
+ Ut && Ut(t);
1780
1780
  var e = t.__c;
1781
- e && e.__H && (e.__H.__h.length && (ri.push(e) !== 1 && Dt === O.requestAnimationFrame || ((Dt = O.requestAnimationFrame) || dr)(ar)), e.__H.__.forEach(function(i) {
1781
+ e && e.__H && (e.__H.__h.length && (di.push(e) !== 1 && Nt === T.requestAnimationFrame || ((Nt = T.requestAnimationFrame) || vr)(fr)), e.__H.__.forEach(function(i) {
1782
1782
  i.u && (i.__H = i.u), i.u = void 0;
1783
- })), He = j = null;
1784
- }, O.__c = function(t, e) {
1783
+ })), Xe = V = null;
1784
+ }, T.__c = function(t, e) {
1785
1785
  e.some(function(i) {
1786
1786
  try {
1787
- i.__h.forEach(De), i.__h = i.__h.filter(function(n) {
1788
- return !n.__ || rt(n);
1787
+ i.__h.forEach(Ne), i.__h = i.__h.filter(function(n) {
1788
+ return !n.__ || dt(n);
1789
1789
  });
1790
1790
  } catch (n) {
1791
1791
  e.some(function(r) {
1792
1792
  r.__h && (r.__h = []);
1793
- }), e = [], O.__e(n, i.__v);
1793
+ }), e = [], T.__e(n, i.__v);
1794
1794
  }
1795
- }), Mt && Mt(t, e);
1796
- }, O.unmount = function(t) {
1797
- $t && $t(t);
1795
+ }), Bt && Bt(t, e);
1796
+ }, T.unmount = function(t) {
1797
+ Ft && Ft(t);
1798
1798
  var e, i = t.__c;
1799
1799
  i && i.__H && (i.__H.__.forEach(function(n) {
1800
1800
  try {
1801
- De(n);
1801
+ Ne(n);
1802
1802
  } catch (r) {
1803
1803
  e = r;
1804
1804
  }
1805
- }), i.__H = void 0, e && O.__e(e, i.__v));
1805
+ }), i.__H = void 0, e && T.__e(e, i.__v));
1806
1806
  };
1807
- var Bt = typeof requestAnimationFrame == "function";
1808
- function dr(t) {
1807
+ var Gt = typeof requestAnimationFrame == "function";
1808
+ function vr(t) {
1809
1809
  var e, i = function() {
1810
- clearTimeout(n), Bt && cancelAnimationFrame(e), setTimeout(t);
1810
+ clearTimeout(n), Gt && cancelAnimationFrame(e), setTimeout(t);
1811
1811
  }, n = setTimeout(i, 100);
1812
- Bt && (e = requestAnimationFrame(i));
1812
+ Gt && (e = requestAnimationFrame(i));
1813
1813
  }
1814
- function De(t) {
1815
- var e = j, i = t.__c;
1816
- typeof i == "function" && (t.__c = void 0, i()), j = e;
1814
+ function Ne(t) {
1815
+ var e = V, i = t.__c;
1816
+ typeof i == "function" && (t.__c = void 0, i()), V = e;
1817
1817
  }
1818
- function rt(t) {
1819
- var e = j;
1820
- t.__c = t.__(), j = e;
1818
+ function dt(t) {
1819
+ var e = V;
1820
+ t.__c = t.__(), V = e;
1821
1821
  }
1822
- function lr(t, e) {
1822
+ function gr(t, e) {
1823
1823
  return !t || t.length !== e.length || e.some(function(i, n) {
1824
1824
  return i !== t[n];
1825
1825
  });
1826
1826
  }
1827
- var cr = Symbol.for("preact-signals");
1828
- function Ve() {
1829
- if (ee > 1)
1830
- ee--;
1827
+ var yr = Symbol.for("preact-signals");
1828
+ function Ke() {
1829
+ if (ne > 1)
1830
+ ne--;
1831
1831
  else {
1832
- for (var t, e = !1; ye !== void 0; ) {
1833
- var i = ye;
1834
- for (ye = void 0, ot++; i !== void 0; ) {
1832
+ for (var t, e = !1; _e !== void 0; ) {
1833
+ var i = _e;
1834
+ for (_e = void 0, lt++; i !== void 0; ) {
1835
1835
  var n = i.o;
1836
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && ai(i))
1836
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && ci(i))
1837
1837
  try {
1838
1838
  i.c();
1839
1839
  } catch (r) {
@@ -1842,22 +1842,22 @@ function Ve() {
1842
1842
  i = n;
1843
1843
  }
1844
1844
  }
1845
- if (ot = 0, ee--, e)
1845
+ if (lt = 0, ne--, e)
1846
1846
  throw t;
1847
1847
  }
1848
1848
  }
1849
- function T(t) {
1850
- if (ee > 0)
1849
+ function O(t) {
1850
+ if (ne > 0)
1851
1851
  return t();
1852
- ee++;
1852
+ ne++;
1853
1853
  try {
1854
1854
  return t();
1855
1855
  } finally {
1856
- Ve();
1856
+ Ke();
1857
1857
  }
1858
1858
  }
1859
- var k = void 0, ye = void 0, ee = 0, ot = 0, Me = 0;
1860
- function si(t) {
1859
+ var k = void 0, _e = void 0, ne = 0, lt = 0, Be = 0;
1860
+ function ui(t) {
1861
1861
  if (k !== void 0) {
1862
1862
  var e = t.n;
1863
1863
  if (e === void 0 || e.t !== k)
@@ -1866,25 +1866,25 @@ function si(t) {
1866
1866
  return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
1867
1867
  }
1868
1868
  }
1869
- function C(t) {
1869
+ function L(t) {
1870
1870
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1871
1871
  }
1872
- C.prototype.brand = cr;
1873
- C.prototype.h = function() {
1872
+ L.prototype.brand = yr;
1873
+ L.prototype.h = function() {
1874
1874
  return !0;
1875
1875
  };
1876
- C.prototype.S = function(t) {
1876
+ L.prototype.S = function(t) {
1877
1877
  this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
1878
1878
  };
1879
- C.prototype.U = function(t) {
1879
+ L.prototype.U = function(t) {
1880
1880
  if (this.t !== void 0) {
1881
1881
  var e = t.e, i = t.x;
1882
1882
  e !== void 0 && (e.x = i, t.e = void 0), i !== void 0 && (i.e = e, t.x = void 0), t === this.t && (this.t = i);
1883
1883
  }
1884
1884
  };
1885
- C.prototype.subscribe = function(t) {
1885
+ L.prototype.subscribe = function(t) {
1886
1886
  var e = this;
1887
- return Se(function() {
1887
+ return xe(function() {
1888
1888
  var i = e.value, n = k;
1889
1889
  k = void 0;
1890
1890
  try {
@@ -1894,16 +1894,16 @@ C.prototype.subscribe = function(t) {
1894
1894
  }
1895
1895
  });
1896
1896
  };
1897
- C.prototype.valueOf = function() {
1897
+ L.prototype.valueOf = function() {
1898
1898
  return this.value;
1899
1899
  };
1900
- C.prototype.toString = function() {
1900
+ L.prototype.toString = function() {
1901
1901
  return this.value + "";
1902
1902
  };
1903
- C.prototype.toJSON = function() {
1903
+ L.prototype.toJSON = function() {
1904
1904
  return this.value;
1905
1905
  };
1906
- C.prototype.peek = function() {
1906
+ L.prototype.peek = function() {
1907
1907
  var t = k;
1908
1908
  k = void 0;
1909
1909
  try {
@@ -1912,32 +1912,32 @@ C.prototype.peek = function() {
1912
1912
  k = t;
1913
1913
  }
1914
1914
  };
1915
- Object.defineProperty(C.prototype, "value", { get: function() {
1916
- var t = si(this);
1915
+ Object.defineProperty(L.prototype, "value", { get: function() {
1916
+ var t = ui(this);
1917
1917
  return t !== void 0 && (t.i = this.i), this.v;
1918
1918
  }, set: function(t) {
1919
1919
  if (t !== this.v) {
1920
- if (ot > 100)
1920
+ if (lt > 100)
1921
1921
  throw new Error("Cycle detected");
1922
- this.v = t, this.i++, Me++, ee++;
1922
+ this.v = t, this.i++, Be++, ne++;
1923
1923
  try {
1924
1924
  for (var e = this.t; e !== void 0; e = e.x)
1925
1925
  e.t.N();
1926
1926
  } finally {
1927
- Ve();
1927
+ Ke();
1928
1928
  }
1929
1929
  }
1930
1930
  } });
1931
1931
  function S(t) {
1932
- return new C(t);
1932
+ return new L(t);
1933
1933
  }
1934
- function ai(t) {
1934
+ function ci(t) {
1935
1935
  for (var e = t.s; e !== void 0; e = e.n)
1936
1936
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1937
1937
  return !0;
1938
1938
  return !1;
1939
1939
  }
1940
- function di(t) {
1940
+ function hi(t) {
1941
1941
  for (var e = t.s; e !== void 0; e = e.n) {
1942
1942
  var i = e.S.n;
1943
1943
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1946,95 +1946,95 @@ function di(t) {
1946
1946
  }
1947
1947
  }
1948
1948
  }
1949
- function li(t) {
1949
+ function fi(t) {
1950
1950
  for (var e = t.s, i = void 0; e !== void 0; ) {
1951
1951
  var n = e.p;
1952
1952
  e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
1953
1953
  }
1954
1954
  t.s = i;
1955
1955
  }
1956
- function ce(t) {
1957
- C.call(this, void 0), this.x = t, this.s = void 0, this.g = Me - 1, this.f = 4;
1956
+ function ve(t) {
1957
+ L.call(this, void 0), this.x = t, this.s = void 0, this.g = Be - 1, this.f = 4;
1958
1958
  }
1959
- (ce.prototype = new C()).h = function() {
1959
+ (ve.prototype = new L()).h = function() {
1960
1960
  if (this.f &= -3, 1 & this.f)
1961
1961
  return !1;
1962
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Me))
1962
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Be))
1963
1963
  return !0;
1964
- if (this.g = Me, this.f |= 1, this.i > 0 && !ai(this))
1964
+ if (this.g = Be, this.f |= 1, this.i > 0 && !ci(this))
1965
1965
  return this.f &= -2, !0;
1966
1966
  var t = k;
1967
1967
  try {
1968
- di(this), k = this;
1968
+ hi(this), k = this;
1969
1969
  var e = this.x();
1970
1970
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1971
1971
  } catch (i) {
1972
1972
  this.v = i, this.f |= 16, this.i++;
1973
1973
  }
1974
- return k = t, li(this), this.f &= -2, !0;
1974
+ return k = t, fi(this), this.f &= -2, !0;
1975
1975
  };
1976
- ce.prototype.S = function(t) {
1976
+ ve.prototype.S = function(t) {
1977
1977
  if (this.t === void 0) {
1978
1978
  this.f |= 36;
1979
1979
  for (var e = this.s; e !== void 0; e = e.n)
1980
1980
  e.S.S(e);
1981
1981
  }
1982
- C.prototype.S.call(this, t);
1982
+ L.prototype.S.call(this, t);
1983
1983
  };
1984
- ce.prototype.U = function(t) {
1985
- if (this.t !== void 0 && (C.prototype.U.call(this, t), this.t === void 0)) {
1984
+ ve.prototype.U = function(t) {
1985
+ if (this.t !== void 0 && (L.prototype.U.call(this, t), this.t === void 0)) {
1986
1986
  this.f &= -33;
1987
1987
  for (var e = this.s; e !== void 0; e = e.n)
1988
1988
  e.S.U(e);
1989
1989
  }
1990
1990
  };
1991
- ce.prototype.N = function() {
1991
+ ve.prototype.N = function() {
1992
1992
  if (!(2 & this.f)) {
1993
1993
  this.f |= 6;
1994
1994
  for (var t = this.t; t !== void 0; t = t.x)
1995
1995
  t.t.N();
1996
1996
  }
1997
1997
  };
1998
- Object.defineProperty(ce.prototype, "value", { get: function() {
1998
+ Object.defineProperty(ve.prototype, "value", { get: function() {
1999
1999
  if (1 & this.f)
2000
2000
  throw new Error("Cycle detected");
2001
- var t = si(this);
2001
+ var t = ui(this);
2002
2002
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2003
2003
  throw this.v;
2004
2004
  return this.v;
2005
2005
  } });
2006
- function _e(t) {
2007
- return new ce(t);
2006
+ function Ae(t) {
2007
+ return new ve(t);
2008
2008
  }
2009
- function ci(t) {
2009
+ function vi(t) {
2010
2010
  var e = t.u;
2011
2011
  if (t.u = void 0, typeof e == "function") {
2012
- ee++;
2012
+ ne++;
2013
2013
  var i = k;
2014
2014
  k = void 0;
2015
2015
  try {
2016
2016
  e();
2017
2017
  } catch (n) {
2018
- throw t.f &= -2, t.f |= 8, ut(t), n;
2018
+ throw t.f &= -2, t.f |= 8, gt(t), n;
2019
2019
  } finally {
2020
- k = i, Ve();
2020
+ k = i, Ke();
2021
2021
  }
2022
2022
  }
2023
2023
  }
2024
- function ut(t) {
2024
+ function gt(t) {
2025
2025
  for (var e = t.s; e !== void 0; e = e.n)
2026
2026
  e.S.U(e);
2027
- t.x = void 0, t.s = void 0, ci(t);
2027
+ t.x = void 0, t.s = void 0, vi(t);
2028
2028
  }
2029
- function ur(t) {
2029
+ function pr(t) {
2030
2030
  if (k !== this)
2031
2031
  throw new Error("Out-of-order effect");
2032
- li(this), k = t, this.f &= -2, 8 & this.f && ut(this), Ve();
2032
+ fi(this), k = t, this.f &= -2, 8 & this.f && gt(this), Ke();
2033
2033
  }
2034
- function me(t) {
2034
+ function Ie(t) {
2035
2035
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
2036
2036
  }
2037
- me.prototype.c = function() {
2037
+ Ie.prototype.c = function() {
2038
2038
  var t = this.S();
2039
2039
  try {
2040
2040
  if (8 & this.f || this.x === void 0)
@@ -2045,21 +2045,21 @@ me.prototype.c = function() {
2045
2045
  t();
2046
2046
  }
2047
2047
  };
2048
- me.prototype.S = function() {
2048
+ Ie.prototype.S = function() {
2049
2049
  if (1 & this.f)
2050
2050
  throw new Error("Cycle detected");
2051
- this.f |= 1, this.f &= -9, ci(this), di(this), ee++;
2051
+ this.f |= 1, this.f &= -9, vi(this), hi(this), ne++;
2052
2052
  var t = k;
2053
- return k = this, ur.bind(this, t);
2053
+ return k = this, pr.bind(this, t);
2054
2054
  };
2055
- me.prototype.N = function() {
2056
- 2 & this.f || (this.f |= 2, this.o = ye, ye = this);
2055
+ Ie.prototype.N = function() {
2056
+ 2 & this.f || (this.f |= 2, this.o = _e, _e = this);
2057
2057
  };
2058
- me.prototype.d = function() {
2059
- this.f |= 8, 1 & this.f || ut(this);
2058
+ Ie.prototype.d = function() {
2059
+ this.f |= 8, 1 & this.f || gt(this);
2060
2060
  };
2061
- function Se(t) {
2062
- var e = new me(t);
2061
+ function xe(t) {
2062
+ var e = new Ie(t);
2063
2063
  try {
2064
2064
  e.c();
2065
2065
  } catch (i) {
@@ -2067,75 +2067,75 @@ function Se(t) {
2067
2067
  }
2068
2068
  return e.d.bind(e);
2069
2069
  }
2070
- var ui, We, hi = [];
2071
- Se(function() {
2072
- ui = this.N;
2070
+ var gi, Qe, yi = [];
2071
+ xe(function() {
2072
+ gi = this.N;
2073
2073
  })();
2074
- function ue(t, e) {
2075
- se[t] = e.bind(null, se[t] || function() {
2074
+ function ge(t, e) {
2075
+ ue[t] = e.bind(null, ue[t] || function() {
2076
2076
  });
2077
2077
  }
2078
- function $e(t) {
2079
- We && We(), We = t && t.S();
2078
+ function Fe(t) {
2079
+ Qe && Qe(), Qe = t && t.S();
2080
2080
  }
2081
- function fi(t) {
2082
- var e = this, i = t.data, n = vi(i);
2081
+ function pi(t) {
2082
+ var e = this, i = t.data, n = wi(i);
2083
2083
  n.value = i;
2084
- var r = oi(function() {
2084
+ var r = li(function() {
2085
2085
  for (var a = e, d = e.__v; d = d.__; )
2086
2086
  if (d.__c) {
2087
2087
  d.__c.__$f |= 4;
2088
2088
  break;
2089
2089
  }
2090
- var l = _e(function() {
2090
+ var l = Ae(function() {
2091
2091
  var f = n.value.value;
2092
2092
  return f === 0 ? 0 : f === !0 ? "" : f || "";
2093
- }), c = _e(function() {
2094
- return !Array.isArray(l.value) && !Si(l.value);
2095
- }), h = Se(function() {
2096
- if (this.N = pi, c.value) {
2093
+ }), u = Ae(function() {
2094
+ return !Array.isArray(l.value) && !Oi(l.value);
2095
+ }), h = xe(function() {
2096
+ if (this.N = bi, u.value) {
2097
2097
  var f = l.value;
2098
2098
  a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2099
2099
  }
2100
- }), u = e.__$u.d;
2100
+ }), c = e.__$u.d;
2101
2101
  return e.__$u.d = function() {
2102
- h(), u.call(this);
2103
- }, [c, l];
2102
+ h(), c.call(this);
2103
+ }, [u, l];
2104
2104
  }, []), o = r[0], s = r[1];
2105
2105
  return o.value ? s.peek() : s.value;
2106
2106
  }
2107
- fi.displayName = "_st";
2108
- Object.defineProperties(C.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: fi }, props: { configurable: !0, get: function() {
2107
+ pi.displayName = "_st";
2108
+ Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: pi }, props: { configurable: !0, get: function() {
2109
2109
  return { data: this };
2110
2110
  } }, __b: { configurable: !0, value: 1 } });
2111
- ue("__b", function(t, e) {
2111
+ ge("__b", function(t, e) {
2112
2112
  if (typeof e.type == "string") {
2113
2113
  var i, n = e.props;
2114
2114
  for (var r in n)
2115
2115
  if (r !== "children") {
2116
2116
  var o = n[r];
2117
- o instanceof C && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2117
+ o instanceof L && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2118
2118
  }
2119
2119
  }
2120
2120
  t(e);
2121
2121
  });
2122
- ue("__r", function(t, e) {
2123
- $e();
2122
+ ge("__r", function(t, e) {
2123
+ Fe();
2124
2124
  var i, n = e.__c;
2125
2125
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2126
2126
  var o;
2127
- return Se(function() {
2127
+ return xe(function() {
2128
2128
  o = this;
2129
2129
  }), o.c = function() {
2130
2130
  n.__$f |= 1, n.setState({});
2131
2131
  }, o;
2132
- }())), $e(i), t(e);
2132
+ }())), Fe(i), t(e);
2133
2133
  });
2134
- ue("__e", function(t, e, i, n) {
2135
- $e(), t(e, i, n);
2134
+ ge("__e", function(t, e, i, n) {
2135
+ Fe(), t(e, i, n);
2136
2136
  });
2137
- ue("diffed", function(t, e) {
2138
- $e();
2137
+ ge("diffed", function(t, e) {
2138
+ Fe();
2139
2139
  var i;
2140
2140
  if (typeof e.type == "string" && (i = e.__e)) {
2141
2141
  var n = e.__np, r = e.props;
@@ -2149,24 +2149,24 @@ ue("diffed", function(t, e) {
2149
2149
  else
2150
2150
  o = {}, i.U = o;
2151
2151
  for (var d in n) {
2152
- var l = o[d], c = n[d];
2153
- l === void 0 ? (l = hr(i, d, c, r), o[d] = l) : l.o(c, r);
2152
+ var l = o[d], u = n[d];
2153
+ l === void 0 ? (l = wr(i, d, u, r), o[d] = l) : l.o(u, r);
2154
2154
  }
2155
2155
  }
2156
2156
  }
2157
2157
  t(e);
2158
2158
  });
2159
- function hr(t, e, i, n) {
2159
+ function wr(t, e, i, n) {
2160
2160
  var r = e in t && t.ownerSVGElement === void 0, o = S(i);
2161
2161
  return { o: function(s, a) {
2162
2162
  o.value = s, n = a;
2163
- }, d: Se(function() {
2164
- this.N = pi;
2163
+ }, d: xe(function() {
2164
+ this.N = bi;
2165
2165
  var s = o.value.value;
2166
2166
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2167
2167
  }) };
2168
2168
  }
2169
- ue("unmount", function(t, e) {
2169
+ ge("unmount", function(t, e) {
2170
2170
  if (typeof e.type == "string") {
2171
2171
  var i = e.__e;
2172
2172
  if (i) {
@@ -2188,10 +2188,10 @@ ue("unmount", function(t, e) {
2188
2188
  }
2189
2189
  t(e);
2190
2190
  });
2191
- ue("__h", function(t, e, i, n) {
2191
+ ge("__h", function(t, e, i, n) {
2192
2192
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2193
2193
  });
2194
- mi.prototype.shouldComponentUpdate = function(t, e) {
2194
+ Ri.prototype.shouldComponentUpdate = function(t, e) {
2195
2195
  var i = this.__$u, n = i && i.s !== void 0;
2196
2196
  for (var r in e)
2197
2197
  return !0;
@@ -2209,26 +2209,26 @@ mi.prototype.shouldComponentUpdate = function(t, e) {
2209
2209
  return !0;
2210
2210
  return !1;
2211
2211
  };
2212
- function vi(t) {
2213
- return oi(function() {
2212
+ function wi(t) {
2213
+ return li(function() {
2214
2214
  return S(t);
2215
2215
  }, []);
2216
2216
  }
2217
- var fr = function(t) {
2217
+ var br = function(t) {
2218
2218
  queueMicrotask(function() {
2219
2219
  queueMicrotask(t);
2220
2220
  });
2221
2221
  };
2222
- function vr() {
2223
- T(function() {
2224
- for (var t; t = hi.shift(); )
2225
- ui.call(t);
2222
+ function _r() {
2223
+ O(function() {
2224
+ for (var t; t = yi.shift(); )
2225
+ gi.call(t);
2226
2226
  });
2227
2227
  }
2228
- function pi() {
2229
- hi.push(this) === 1 && (se.requestAnimationFrame || fr)(vr);
2228
+ function bi() {
2229
+ yi.push(this) === 1 && (ue.requestAnimationFrame || br)(_r);
2230
2230
  }
2231
- const P = le`
2231
+ const $ = fe`
2232
2232
  inset: 0;
2233
2233
  clear: none;
2234
2234
  float: none;
@@ -2247,11 +2247,11 @@ const P = le`
2247
2247
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2248
2248
  'Helvetica Neue', sans-serif;
2249
2249
  `;
2250
- function pr(t, e) {
2251
- const i = Ei(t);
2252
- ki(() => {
2250
+ function Ar(t, e) {
2251
+ const i = Ti(t);
2252
+ Ci(() => {
2253
2253
  i.current = t;
2254
- }, [t]), Ue(() => {
2254
+ }, [t]), Ve(() => {
2255
2255
  if (e === null)
2256
2256
  return;
2257
2257
  const n = setInterval(() => {
@@ -2262,21 +2262,21 @@ function pr(t, e) {
2262
2262
  };
2263
2263
  }, [e]);
2264
2264
  }
2265
- var yr = 0;
2266
- function b(t, e, i, n, r, o) {
2265
+ var mr = 0;
2266
+ function _(t, e, i, n, r, o) {
2267
2267
  e || (e = {});
2268
2268
  var s, a, d = e;
2269
2269
  if ("ref" in d)
2270
2270
  for (a in d = {}, e)
2271
2271
  a == "ref" ? s = e[a] : d[a] = e[a];
2272
- var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --yr, __i: -1, __u: 0, __source: r, __self: o };
2272
+ var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --mr, __i: -1, __u: 0, __source: r, __self: o };
2273
2273
  if (typeof t == "function" && (s = t.defaultProps))
2274
2274
  for (a in s)
2275
2275
  d[a] === void 0 && (d[a] = s[a]);
2276
- return se.vnode && se.vnode(l), l;
2276
+ return ue.vnode && ue.vnode(l), l;
2277
2277
  }
2278
- const _r = le`
2279
- ${P}
2278
+ const Sr = fe`
2279
+ ${$}
2280
2280
  position: fixed;
2281
2281
  top: 0;
2282
2282
  left: 0;
@@ -2289,7 +2289,7 @@ const _r = le`
2289
2289
  height: 100vh;
2290
2290
 
2291
2291
  .card-wrapper {
2292
- ${P}
2292
+ ${$}
2293
2293
  position: relative;
2294
2294
  display: flex;
2295
2295
  flex-direction: column;
@@ -2303,7 +2303,7 @@ const _r = le`
2303
2303
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
2304
2304
 
2305
2305
  .body {
2306
- ${P}
2306
+ ${$}
2307
2307
  display: flex;
2308
2308
  flex-direction: column;
2309
2309
  width: 100%;
@@ -2312,7 +2312,7 @@ const _r = le`
2312
2312
  box-sizing: border-box;
2313
2313
  justify-content: center;
2314
2314
  .title {
2315
- ${P}
2315
+ ${$}
2316
2316
  text-align: center;
2317
2317
  font-size: 16px;
2318
2318
  font-weight: bold;
@@ -2320,7 +2320,7 @@ const _r = le`
2320
2320
  }
2321
2321
 
2322
2322
  .content {
2323
- ${P}
2323
+ ${$}
2324
2324
  font-size: 14px;
2325
2325
  color: #888;
2326
2326
  margin-bottom: 16px;
@@ -2328,13 +2328,13 @@ const _r = le`
2328
2328
  }
2329
2329
 
2330
2330
  .footer {
2331
- ${P}
2331
+ ${$}
2332
2332
  display: flex;
2333
2333
  align-items: center;
2334
2334
  width: 100%;
2335
2335
  height: 40px;
2336
2336
  button {
2337
- ${P}
2337
+ ${$}
2338
2338
  border: none;
2339
2339
  outline: none;
2340
2340
  height: 100%;
@@ -2350,56 +2350,56 @@ const _r = le`
2350
2350
  }
2351
2351
  }
2352
2352
  }
2353
- `, K = S(null), st = S(""), at = S(""), Ce = S(!1), gr = () => {
2353
+ `, K = S(null), ut = S(""), ct = S(""), Me = S(!1), Er = () => {
2354
2354
  var t;
2355
2355
  (t = K.value) == null || t.call(K, !1);
2356
- }, wr = () => {
2356
+ }, kr = () => {
2357
2357
  var t;
2358
2358
  (t = K.value) == null || t.call(K, !0);
2359
- }, br = async (t) => {
2359
+ }, Ir = async (t) => {
2360
2360
  let {
2361
2361
  title: e,
2362
2362
  content: i
2363
2363
  } = t;
2364
- return K.value && (K.value(!1), T(() => {
2365
- K.value = null, Ce.value = !1;
2366
- })), T(() => {
2367
- st.value = e || "", at.value = i || "", Ce.value = !0;
2364
+ return K.value && (K.value(!1), O(() => {
2365
+ K.value = null, Me.value = !1;
2366
+ })), O(() => {
2367
+ ut.value = e || "", ct.value = i || "", Me.value = !0;
2368
2368
  }), new Promise((n) => {
2369
2369
  K.value = (r) => {
2370
- T(() => {
2371
- K.value = null, Ce.value = !1, st.value = "", at.value = "";
2370
+ O(() => {
2371
+ K.value = null, Me.value = !1, ut.value = "", ct.value = "";
2372
2372
  }), n(r);
2373
2373
  };
2374
2374
  });
2375
- }, Ar = () => Ce.value ? b("div", {
2376
- className: _r,
2377
- children: b("div", {
2375
+ }, xr = () => Me.value ? _("div", {
2376
+ className: Sr,
2377
+ children: _("div", {
2378
2378
  className: "card-wrapper",
2379
- children: [b("div", {
2379
+ children: [_("div", {
2380
2380
  className: "body",
2381
- children: [b("div", {
2381
+ children: [_("div", {
2382
2382
  className: "title",
2383
- children: st.value
2384
- }), b("div", {
2383
+ children: ut.value
2384
+ }), _("div", {
2385
2385
  className: "content",
2386
- children: at.value
2386
+ children: ct.value
2387
2387
  })]
2388
- }), b("div", {
2388
+ }), _("div", {
2389
2389
  className: "footer",
2390
- children: [b("button", {
2391
- onClick: gr,
2390
+ children: [_("button", {
2391
+ onClick: Er,
2392
2392
  className: "cancel-btn",
2393
2393
  children: "Cancel"
2394
- }), b("button", {
2395
- onClick: wr,
2394
+ }), _("button", {
2395
+ onClick: kr,
2396
2396
  className: "confirm-btm",
2397
2397
  children: "Confirm"
2398
2398
  })]
2399
2399
  })]
2400
2400
  })
2401
- }) : null, mr = le`
2402
- ${P}
2401
+ }) : null, Rr = fe`
2402
+ ${$}
2403
2403
  position: relative;
2404
2404
  display: flex;
2405
2405
  align-items: center;
@@ -2417,7 +2417,7 @@ const _r = le`
2417
2417
  }
2418
2418
 
2419
2419
  button {
2420
- ${P}
2420
+ ${$}
2421
2421
  padding: 0 20px;
2422
2422
  height: 30px;
2423
2423
  line-height: 30px;
@@ -2431,18 +2431,18 @@ const _r = le`
2431
2431
  cursor: not-allowed;
2432
2432
  }
2433
2433
  }
2434
- `, Sr = () => {
2434
+ `, Or = () => {
2435
2435
  const t = S(!1), e = S(null);
2436
2436
  return {
2437
2437
  timerPaused: t,
2438
2438
  startTimestamp: e,
2439
2439
  startTimer: () => {
2440
- T(() => {
2440
+ O(() => {
2441
2441
  e.value = Date.now(), t.value = !1;
2442
2442
  });
2443
2443
  }
2444
2444
  };
2445
- }, Er = (t) => {
2445
+ }, Tr = (t) => {
2446
2446
  let {
2447
2447
  countdown: e = 0,
2448
2448
  mode: i,
@@ -2452,62 +2452,62 @@ const _r = le`
2452
2452
  const {
2453
2453
  startTimestamp: o,
2454
2454
  timerPaused: s
2455
- } = r, a = vi(e);
2456
- pr(() => {
2457
- a.value > 0 ? a.value -= 1 : T(() => {
2455
+ } = r, a = wi(e);
2456
+ Ar(() => {
2457
+ a.value > 0 ? a.value -= 1 : O(() => {
2458
2458
  s.value = !0, a.value = 0;
2459
2459
  });
2460
2460
  }, s.value ? null : 1e3);
2461
- const d = _e(() => {
2461
+ const d = Ae(() => {
2462
2462
  if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
2463
2463
  return !1;
2464
2464
  const f = Date.now() - o.value;
2465
2465
  return a.value > 0 && e - a.value >= 5 && f >= 5e3;
2466
- }), l = _e(() => {
2466
+ }), l = Ae(() => {
2467
2467
  if (i === "interstitial")
2468
2468
  return !0;
2469
2469
  if (!o.value)
2470
2470
  return !1;
2471
2471
  const f = Date.now() - o.value;
2472
2472
  return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2473
- }), c = _e(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2474
- if (s.value = !0, !await br({
2473
+ }), u = Ae(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2474
+ if (s.value = !0, !await Ir({
2475
2475
  title: "Are you sure?",
2476
2476
  content: "You will lose your reward if you dismiss this Ad."
2477
2477
  })) {
2478
2478
  s.value = !1;
2479
2479
  return;
2480
2480
  }
2481
- n("dismiss"), T(() => {
2481
+ n("dismiss"), O(() => {
2482
2482
  s.value = !0, a.value = 0, o.value = null;
2483
2483
  });
2484
- }, u = () => {
2485
- n("viewed"), T(() => {
2484
+ }, c = () => {
2485
+ n("viewed"), O(() => {
2486
2486
  s.value = !0, a.value = 0, o.value = null;
2487
2487
  });
2488
2488
  };
2489
- return b("div", {
2490
- className: mr,
2491
- children: [a.value > 0 && i !== "interstitial" && b("div", {
2489
+ return _("div", {
2490
+ className: Rr,
2491
+ children: [a.value > 0 && i !== "interstitial" && _("div", {
2492
2492
  className: "timer",
2493
2493
  children: [a.value, "s"]
2494
- }), b("button", {
2495
- onClick: d.value ? h : l.value ? u : void 0,
2496
- disabled: c.value,
2497
- children: b("svg", {
2494
+ }), _("button", {
2495
+ onClick: d.value ? h : l.value ? c : void 0,
2496
+ disabled: u.value,
2497
+ children: _("svg", {
2498
2498
  width: "12",
2499
2499
  height: "12",
2500
2500
  viewBox: "0 0 14 14",
2501
2501
  fill: "none",
2502
2502
  xmlns: "http://www.w3.org/2000/svg",
2503
- children: b("path", {
2503
+ children: _("path", {
2504
2504
  d: "M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",
2505
2505
  fill: "white"
2506
2506
  })
2507
2507
  })
2508
2508
  })]
2509
2509
  });
2510
- }, yi = () => {
2510
+ }, _i = () => {
2511
2511
  const t = S(), e = S(), i = S(), n = S(), r = S(), o = S(!1), s = S(15), a = S(""), d = S("reward");
2512
2512
  return {
2513
2513
  afterAd: t,
@@ -2520,8 +2520,8 @@ const _r = le`
2520
2520
  src: a,
2521
2521
  mode: d
2522
2522
  };
2523
- }, kr = le`
2524
- ${P}
2523
+ }, Cr = fe`
2524
+ ${$}
2525
2525
  position: fixed;
2526
2526
  z-index: 2147483647;
2527
2527
  background: white;
@@ -2531,7 +2531,7 @@ const _r = le`
2531
2531
  flex-direction: column;
2532
2532
 
2533
2533
  iframe {
2534
- ${P}
2534
+ ${$}
2535
2535
  flex: 1;
2536
2536
  position: relative;
2537
2537
  display: block;
@@ -2539,7 +2539,7 @@ const _r = le`
2539
2539
  width: 100%;
2540
2540
  height: 100%;
2541
2541
  }
2542
- `, _i = (t) => {
2542
+ `, Ai = (t) => {
2543
2543
  let {
2544
2544
  state: e
2545
2545
  } = t;
@@ -2552,40 +2552,40 @@ const _r = le`
2552
2552
  visible: a,
2553
2553
  countdown: d,
2554
2554
  src: l,
2555
- mode: c
2556
- } = e, h = Ii(() => Sr(), []), [u, f] = jt(!1), y = (g) => {
2557
- var p, _, w, M;
2558
- a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (w = i.value) == null || w.call(i), (M = o.value) == null || M.call(o), f(!1);
2559
- }, v = xi(() => {
2560
- var g;
2561
- u || (f(!0), (g = s.value) == null || g.call(s));
2562
- }, [u]);
2563
- return Ue(() => {
2564
- u && (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
2555
+ mode: u
2556
+ } = e, h = Di(() => Or(), []), [c, f] = zt(!1), g = (w) => {
2557
+ var y, p, b, j;
2558
+ a.value = !1, w === "dismiss" ? (y = n.value) == null || y.call(n) : w === "viewed" && ((p = r.value) == null || p.call(r)), (b = i.value) == null || b.call(i), (j = o.value) == null || j.call(o), f(!1);
2559
+ }, v = Li(() => {
2560
+ var w;
2561
+ c || (f(!0), (w = s.value) == null || w.call(s));
2562
+ }, [c]);
2563
+ return Ve(() => {
2564
+ c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
2565
2565
  h.startTimer();
2566
2566
  }, 100);
2567
- }, [u, c.value]), a.value ? b("div", {
2568
- className: kr,
2569
- children: [b(Er, {
2570
- mode: c.value,
2571
- onClose: y,
2567
+ }, [c, u.value]), a.value ? _("div", {
2568
+ className: Cr,
2569
+ children: [_(Tr, {
2570
+ mode: u.value,
2571
+ onClose: g,
2572
2572
  countdown: d.value,
2573
2573
  state: h
2574
- }), a.value && b("iframe", {
2574
+ }), a.value && _("iframe", {
2575
2575
  src: l.value,
2576
2576
  onLoad: v,
2577
2577
  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"
2578
- }), b(Ar, {})]
2578
+ }), _(xr, {})]
2579
2579
  }) : null;
2580
2580
  };
2581
- function Y(t, e, i) {
2582
- return (e = Ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2581
+ function Q(t, e, i) {
2582
+ return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2583
2583
  }
2584
- function Ir(t) {
2585
- var e = xr(t, "string");
2584
+ function Dr(t) {
2585
+ var e = Lr(t, "string");
2586
2586
  return typeof e == "symbol" ? e : e + "";
2587
2587
  }
2588
- function xr(t, e) {
2588
+ function Lr(t, e) {
2589
2589
  if (typeof t != "object" || !t)
2590
2590
  return t;
2591
2591
  var i = t[Symbol.toPrimitive];
@@ -2597,13 +2597,13 @@ function xr(t, e) {
2597
2597
  }
2598
2598
  return (e === "string" ? String : Number)(t);
2599
2599
  }
2600
- class Rr {
2600
+ class Pr {
2601
2601
  constructor(e, i) {
2602
- Y(this, "name", "OKSPIN"), Y(this, "initialized", !1), Y(this, "initCompleter", null), Y(this, "context", void 0), Y(this, "initParams", void 0), Y(this, "adsOverlay", null), Y(this, "adsIsShowing", !1), Y(this, "lastUnDisplayedAdBreak", null), Y(this, "state", yi()), this.context = e, this.initParams = i;
2602
+ Q(this, "name", "OKSPIN"), Q(this, "initialized", !1), Q(this, "initCompleter", null), Q(this, "context", void 0), Q(this, "initParams", void 0), Q(this, "adsOverlay", null), Q(this, "adsIsShowing", !1), Q(this, "lastUnDisplayedAdBreak", null), Q(this, "state", _i()), this.context = e, this.initParams = i;
2603
2603
  }
2604
2604
  async init() {
2605
2605
  var e;
2606
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(b(_i, {
2606
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), re(_(Ai, {
2607
2607
  state: this.state
2608
2608
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2609
2609
  }
@@ -2619,7 +2619,7 @@ class Rr {
2619
2619
  };
2620
2620
  }
2621
2621
  async adBreak(e, i) {
2622
- var n, r, o, s, a, d, l, c;
2622
+ var n, r, o, s, a, d, l, u;
2623
2623
  if (!this.initialized || !this.adsOverlay || !i.params.url) {
2624
2624
  (n = e.adBreakDone) == null || n.call(e, {
2625
2625
  breakType: e.type,
@@ -2656,7 +2656,7 @@ class Rr {
2656
2656
  const h = () => {
2657
2657
  var f;
2658
2658
  this.adsIsShowing = !1, (f = e.afterAd) == null || f.call(e);
2659
- }, u = () => {
2659
+ }, c = () => {
2660
2660
  var f;
2661
2661
  this.adsIsShowing = !1, (f = e.adBreakDone) == null || f.call(e, {
2662
2662
  breakType: e.type,
@@ -2665,8 +2665,8 @@ class Rr {
2665
2665
  breakStatus: "viewed"
2666
2666
  });
2667
2667
  };
2668
- T(() => {
2669
- this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = u, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
2668
+ O(() => {
2669
+ this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = c, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
2670
2670
  });
2671
2671
  break;
2672
2672
  }
@@ -2678,30 +2678,30 @@ class Rr {
2678
2678
  breakStatus: "ignored"
2679
2679
  }), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
2680
2680
  const h = () => {
2681
- var p;
2682
- this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
2683
- }, u = {
2681
+ var y;
2682
+ this.adsIsShowing = !1, (y = e.afterAd) == null || y.call(e);
2683
+ }, c = {
2684
2684
  breakType: e.type,
2685
2685
  breakName: e.name,
2686
2686
  breakFormat: "reward",
2687
2687
  breakStatus: "ignored"
2688
2688
  }, f = () => {
2689
- var p;
2690
- this.adsIsShowing = !1, u.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
2691
- }, y = () => {
2692
- var p;
2693
- this.adsIsShowing = !1, u.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
2689
+ var y;
2690
+ this.adsIsShowing = !1, c.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
2691
+ }, g = () => {
2692
+ var y;
2693
+ this.adsIsShowing = !1, c.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
2694
2694
  }, v = () => {
2695
- var p;
2696
- this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, u);
2695
+ var y;
2696
+ this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, c);
2697
2697
  };
2698
- T(() => {
2699
- this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
2698
+ O(() => {
2699
+ this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = g, this.state.adBreakDone.value = v;
2700
2700
  });
2701
- const g = () => {
2702
- var p;
2701
+ const w = () => {
2702
+ var y;
2703
2703
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2704
- (p = e.adBreakDone) == null || p.call(e, {
2704
+ (y = e.adBreakDone) == null || y.call(e, {
2705
2705
  breakType: e.type,
2706
2706
  breakName: e.name,
2707
2707
  breakFormat: "reward",
@@ -2709,28 +2709,28 @@ class Rr {
2709
2709
  });
2710
2710
  return;
2711
2711
  }
2712
- this.adsIsShowing = !0, T(() => {
2713
- var _;
2714
- this.state.countdown.value = (_ = i.params.countdown) != null ? _ : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2712
+ this.adsIsShowing = !0, O(() => {
2713
+ var p;
2714
+ this.state.countdown.value = (p = i.params.countdown) != null ? p : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2715
2715
  });
2716
2716
  };
2717
- this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, g);
2717
+ this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, w);
2718
2718
  break;
2719
2719
  }
2720
2720
  }
2721
2721
  }
2722
2722
  }
2723
- const re = {};
2723
+ const de = {};
2724
2724
  window.addEventListener("message", (t) => {
2725
- t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || re[t.data.type] && re[t.data.type].forEach((e) => {
2725
+ t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || de[t.data.type] && de[t.data.type].forEach((e) => {
2726
2726
  e(t.data.data);
2727
2727
  });
2728
2728
  });
2729
- const ie = (t, e) => {
2730
- Ue(() => (re[t] || (re[t] = /* @__PURE__ */ new Set()), re[t].add(e), () => {
2731
- re[t].delete(e);
2729
+ const se = (t, e) => {
2730
+ Ve(() => (de[t] || (de[t] = /* @__PURE__ */ new Set()), de[t].add(e), () => {
2731
+ de[t].delete(e);
2732
2732
  }), [t, e]);
2733
- }, gi = () => {
2733
+ }, mi = () => {
2734
2734
  const t = S(), e = S(), i = S(), n = S(), r = S(), o = S(), s = S(), a = S(!1), d = S("");
2735
2735
  return {
2736
2736
  afterAd: t,
@@ -2743,8 +2743,8 @@ const ie = (t, e) => {
2743
2743
  visible: a,
2744
2744
  src: d
2745
2745
  };
2746
- }, Or = le`
2747
- ${P}
2746
+ }, Nr = fe`
2747
+ ${$}
2748
2748
  position: fixed;
2749
2749
  z-index: 2147483647;
2750
2750
  background: white;
@@ -2754,7 +2754,7 @@ const ie = (t, e) => {
2754
2754
  flex-direction: column;
2755
2755
 
2756
2756
  iframe {
2757
- ${P}
2757
+ ${$}
2758
2758
  flex: 1;
2759
2759
  position: relative;
2760
2760
  display: block;
@@ -2762,7 +2762,7 @@ const ie = (t, e) => {
2762
2762
  width: 100%;
2763
2763
  height: 100%;
2764
2764
  }
2765
- `, wi = (t) => {
2765
+ `, Si = (t) => {
2766
2766
  let {
2767
2767
  state: e
2768
2768
  } = t;
@@ -2775,22 +2775,22 @@ const ie = (t, e) => {
2775
2775
  adLinkClicked: a,
2776
2776
  visible: d,
2777
2777
  src: l
2778
- } = e, [c, h] = jt(!1), u = (y) => {
2779
- var v, g, p, _;
2780
- h(!1), d.value = !1, y === "dismiss" ? (v = n.value) == null || v.call(n) : y === "viewed" && ((g = r.value) == null || g.call(r)), (p = i.value) == null || p.call(i), (_ = o.value) == null || _.call(o);
2778
+ } = e, [u, h] = zt(!1), c = (g) => {
2779
+ var v, w, y, p;
2780
+ h(!1), d.value = !1, g === "dismiss" ? (v = n.value) == null || v.call(n) : g === "viewed" && ((w = r.value) == null || w.call(r)), (y = i.value) == null || y.call(i), (p = o.value) == null || p.call(o);
2781
2781
  }, f = () => {
2782
- var y;
2783
- (y = s.value) == null || y.call(s);
2782
+ var g;
2783
+ (g = s.value) == null || g.call(s);
2784
2784
  };
2785
- return ie("appsrockets_ad_dismissed", () => u("dismiss")), ie("appsrockets_ad_rewarded", () => u("viewed")), ie("appsrockets_ad_completed", () => u("viewed")), ie("appsrockets_ad_skipped", () => u("viewed")), ie("appsrockets_ad_clicked", (y) => {
2785
+ return se("appsrockets_ad_dismissed", () => c("dismiss")), se("appsrockets_ad_rewarded", () => c("viewed")), se("appsrockets_ad_completed", () => c("viewed")), se("appsrockets_ad_skipped", () => c("viewed")), se("appsrockets_ad_clicked", (g) => {
2786
2786
  var v;
2787
- return (v = a.value) == null ? void 0 : v.call(a, y);
2788
- }), ie("appsrockets_ad_loaded", () => h(!0)), d.value ? b("div", {
2789
- className: Or,
2787
+ return (v = a.value) == null ? void 0 : v.call(a, g);
2788
+ }), se("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
2789
+ className: Nr,
2790
2790
  style: {
2791
- display: c ? "flex" : "none"
2791
+ display: u ? "flex" : "none"
2792
2792
  },
2793
- children: d.value && b("iframe", {
2793
+ children: d.value && _("iframe", {
2794
2794
  src: l.value,
2795
2795
  onLoad: f,
2796
2796
  allowFullScreen: !0,
@@ -2799,14 +2799,14 @@ const ie = (t, e) => {
2799
2799
  })
2800
2800
  }) : null;
2801
2801
  };
2802
- function X(t, e, i) {
2803
- return (e = Tr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2802
+ function Z(t, e, i) {
2803
+ return (e = Mr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2804
2804
  }
2805
- function Tr(t) {
2806
- var e = Dr(t, "string");
2805
+ function Mr(t) {
2806
+ var e = $r(t, "string");
2807
2807
  return typeof e == "symbol" ? e : e + "";
2808
2808
  }
2809
- function Dr(t, e) {
2809
+ function $r(t, e) {
2810
2810
  if (typeof t != "object" || !t)
2811
2811
  return t;
2812
2812
  var i = t[Symbol.toPrimitive];
@@ -2818,9 +2818,9 @@ function Dr(t, e) {
2818
2818
  }
2819
2819
  return (e === "string" ? String : Number)(t);
2820
2820
  }
2821
- class Cr {
2821
+ class jr {
2822
2822
  constructor(e, i) {
2823
- X(this, "name", "APPSROCKETS"), X(this, "initialized", !1), X(this, "initCompleter", null), X(this, "context", void 0), X(this, "adsOverlay", null), X(this, "adsIsShowing", !1), X(this, "lastUnDisplayedAdBreak", null), X(this, "state", gi()), X(this, "processUrl", (n) => {
2823
+ Z(this, "name", "APPSROCKETS"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state", mi()), Z(this, "processUrl", (n) => {
2824
2824
  var a;
2825
2825
  const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
2826
2826
  return s.has("joliSource") || s.set("joliSource", r.joliSource), s.get("osType") || s.set("osType", r.osType), s.get("runtimeType") || s.set("runtimeType", r.runtimeType), s.get("mode") || s.set("mode", "AFG"), s.get("deviceId") || s.set("deviceId", r.deviceId), s.get("statusBarHeight") || s.set("statusBarHeight", ((a = this.context.getWindowInfo().statusBarHeight) != null ? a : 0).toString()), o.search = s.toString(), o.toString();
@@ -2828,7 +2828,7 @@ class Cr {
2828
2828
  }
2829
2829
  async init() {
2830
2830
  var e;
2831
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(b(wi, {
2831
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), re(_(Si, {
2832
2832
  state: this.state
2833
2833
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2834
2834
  }
@@ -2844,7 +2844,7 @@ class Cr {
2844
2844
  };
2845
2845
  }
2846
2846
  adBreak(e, i) {
2847
- var r, o, s, a, d, l, c, h;
2847
+ var r, o, s, a, d, l, u, h;
2848
2848
  if (!this.initialized || !this.adsOverlay || !i.params.url) {
2849
2849
  (r = e.adBreakDone) == null || r.call(e, {
2850
2850
  breakType: e.type,
@@ -2863,9 +2863,9 @@ class Cr {
2863
2863
  });
2864
2864
  return;
2865
2865
  }
2866
- const n = (u) => {
2867
- var f, y;
2868
- (y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
2866
+ const n = (c) => {
2867
+ var f, g;
2868
+ (g = (f = this.context).handleLinkClicked) == null || g.call(f, c);
2869
2869
  };
2870
2870
  switch (e.type) {
2871
2871
  case "preroll": {
@@ -2882,7 +2882,7 @@ class Cr {
2882
2882
  case "next":
2883
2883
  case "pause": {
2884
2884
  (a = e.beforeAd) == null || a.call(e);
2885
- const u = () => {
2885
+ const c = () => {
2886
2886
  var v;
2887
2887
  this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
2888
2888
  }, f = () => {
@@ -2893,7 +2893,7 @@ class Cr {
2893
2893
  breakFormat: "interstitial",
2894
2894
  breakStatus: "viewed"
2895
2895
  });
2896
- }, y = () => {
2896
+ }, g = () => {
2897
2897
  var v;
2898
2898
  this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
2899
2899
  breakType: e.type,
@@ -2902,8 +2902,8 @@ class Cr {
2902
2902
  breakStatus: "noAdPreloaded"
2903
2903
  });
2904
2904
  };
2905
- T(() => {
2906
- this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = y, this.state.visible.value = !0;
2905
+ O(() => {
2906
+ this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = g, this.state.visible.value = !0;
2907
2907
  });
2908
2908
  break;
2909
2909
  }
@@ -2913,34 +2913,34 @@ class Cr {
2913
2913
  breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
2914
2914
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2915
2915
  breakStatus: "ignored"
2916
- }), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
2917
- const u = () => {
2918
- var w;
2919
- this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
2916
+ }), this.lastUnDisplayedAdBreak = null), (u = e.beforeAd) == null || u.call(e);
2917
+ const c = () => {
2918
+ var b;
2919
+ this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
2920
2920
  }, f = {
2921
2921
  breakType: e.type,
2922
2922
  breakName: e.name,
2923
2923
  breakFormat: "reward",
2924
2924
  breakStatus: "ignored"
2925
- }, y = () => {
2926
- var w;
2927
- this.adsIsShowing = !1, f.breakStatus = "dismissed", (w = e.adDismissed) == null || w.call(e);
2928
- }, v = () => {
2929
- var w;
2930
- this.adsIsShowing = !1, f.breakStatus = "viewed", (w = e.adViewed) == null || w.call(e);
2931
2925
  }, g = () => {
2932
- var w;
2933
- this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, f);
2934
- }, p = () => {
2926
+ var b;
2927
+ this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
2928
+ }, v = () => {
2929
+ var b;
2930
+ this.adsIsShowing = !1, f.breakStatus = "viewed", (b = e.adViewed) == null || b.call(e);
2931
+ }, w = () => {
2932
+ var b;
2933
+ this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
2934
+ }, y = () => {
2935
2935
  this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
2936
2936
  };
2937
- T(() => {
2938
- this.state.afterAd.value = u, this.state.adDismissed.value = y, this.state.adViewed.value = v, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = p;
2937
+ O(() => {
2938
+ this.state.afterAd.value = c, this.state.adDismissed.value = g, this.state.adViewed.value = v, this.state.adBreakDone.value = w, this.state.adLinkClicked.value = n, this.state.adError.value = y;
2939
2939
  });
2940
- const _ = () => {
2941
- var w;
2940
+ const p = () => {
2941
+ var b;
2942
2942
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2943
- (w = e.adBreakDone) == null || w.call(e, {
2943
+ (b = e.adBreakDone) == null || b.call(e, {
2944
2944
  breakType: e.type,
2945
2945
  breakName: e.name,
2946
2946
  breakFormat: "reward",
@@ -2948,24 +2948,256 @@ class Cr {
2948
2948
  });
2949
2949
  return;
2950
2950
  }
2951
- this.adsIsShowing = !0, T(() => {
2951
+ this.adsIsShowing = !0, O(() => {
2952
2952
  this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
2953
2953
  });
2954
2954
  };
2955
- this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, _);
2955
+ this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, p);
2956
+ break;
2957
+ }
2958
+ }
2959
+ }
2960
+ }
2961
+ const Ei = () => {
2962
+ window.googletag = window.googletag || {
2963
+ cmd: []
2964
+ }, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
2965
+ window.googletag.enableServices();
2966
+ });
2967
+ };
2968
+ function N(t, e, i) {
2969
+ return (e = Ur(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2970
+ }
2971
+ function Ur(t) {
2972
+ var e = Br(t, "string");
2973
+ return typeof e == "symbol" ? e : e + "";
2974
+ }
2975
+ function Br(t, e) {
2976
+ if (typeof t != "object" || !t)
2977
+ return t;
2978
+ var i = t[Symbol.toPrimitive];
2979
+ if (i !== void 0) {
2980
+ var n = i.call(t, e);
2981
+ if (typeof n != "object")
2982
+ return n;
2983
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2984
+ }
2985
+ return (e === "string" ? String : Number)(t);
2986
+ }
2987
+ class ki {
2988
+ constructor(e, i, n) {
2989
+ N(this, "adUnit", void 0), N(this, "project", void 0), N(this, "keyValue", void 0), N(this, "adsContext", null), N(this, "rewardedSlot", null), N(this, "rewardedPayload", null), N(this, "readyEvent", null), N(this, "withCommand", function() {
2990
+ googletag.cmd.push(...arguments);
2991
+ }), N(this, "init", () => {
2992
+ var r;
2993
+ this.rewardedSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.REWARDED), this.rewardedSlot && (this.rewardedSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().addEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().addEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.keyValue && (Object.keys(this.keyValue).forEach((o) => {
2994
+ var s;
2995
+ (s = this.rewardedSlot) == null || s.setTargeting(o, this.keyValue[o]);
2996
+ }), Object.keys(this.keyValue).includes("project") || (r = this.rewardedSlot) == null || r.setTargeting("project", this.project)), googletag.display(this.rewardedSlot));
2997
+ }), N(this, "destroy", (r) => {
2998
+ var o, s;
2999
+ this.rewardedPayload = null, this.readyEvent = null, googletag.pubads().removeEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().removeEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().removeEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().removeEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.rewardedSlot && (googletag.destroySlots([this.rewardedSlot]), this.rewardedSlot = null), (s = (o = this.adsContext) == null ? void 0 : o.adBreakDone) == null || s.call(o, r), this.adsContext = null;
3000
+ }), N(this, "reinit", (r) => {
3001
+ this.destroy(r), this.init();
3002
+ }), N(this, "handleSlotReady", (r) => {
3003
+ r.slot === this.rewardedSlot && (this.readyEvent = r);
3004
+ }), N(this, "handleSlotClosed", (r) => {
3005
+ var o, s;
3006
+ if (this.adsContext && r.slot === this.rewardedSlot) {
3007
+ const a = this.rewardedPayload ? "viewed" : "dismissed";
3008
+ a === "viewed" ? this.adsContext.adViewed() : this.adsContext.adDismissed(), (s = (o = this.adsContext).afterAd) == null || s.call(o), this.withCommand(() => {
3009
+ this.reinit(a);
3010
+ });
3011
+ }
3012
+ }), N(this, "handleSlotGranted", (r) => {
3013
+ this.adsContext && r.slot === this.rewardedSlot && (this.rewardedPayload = r.payload);
3014
+ }), N(this, "handleSlotRenderEnded", (r) => {
3015
+ r.slot === this.rewardedSlot && r.isEmpty && this.adsContext && this.withCommand(() => {
3016
+ this.reinit("frequencyCapped");
3017
+ });
3018
+ }), N(this, "requestAds", (r) => {
3019
+ this.withCommand(() => {
3020
+ if (this.adsContext && this.reinit("ignored"), this.rewardedSlot || this.init(), this.adsContext = r, !this.rewardedSlot) {
3021
+ this.reinit("notReady");
3022
+ return;
3023
+ }
3024
+ if (this.readyEvent)
3025
+ this.adsContext.beforeReward(() => {
3026
+ var o, s, a;
3027
+ (s = (o = this.adsContext) == null ? void 0 : o.beforeAd) == null || s.call(o), (a = this.readyEvent) == null || a.makeRewardedVisible();
3028
+ });
3029
+ else {
3030
+ const o = (s) => {
3031
+ var a, d;
3032
+ s.slot === this.rewardedSlot && this.adsContext && (googletag.pubads().removeEventListener("rewardedSlotReady", o), this.readyEvent = s, (d = (a = this.adsContext).beforeAd) == null || d.call(a), this.adsContext.beforeReward(() => {
3033
+ var l;
3034
+ (l = this.readyEvent) == null || l.makeRewardedVisible();
3035
+ }));
3036
+ };
3037
+ googletag.pubads().addEventListener("rewardedSlotReady", o), window.setTimeout(() => {
3038
+ this.readyEvent || (this.reinit("timeout"), googletag.pubads().removeEventListener("rewardedSlotReady", o));
3039
+ }, 500);
3040
+ }
3041
+ });
3042
+ }), this.adUnit = e, this.project = i, this.keyValue = n, Ei(), this.withCommand(() => {
3043
+ this.init();
3044
+ });
3045
+ }
3046
+ }
3047
+ function F(t, e, i) {
3048
+ return (e = Fr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3049
+ }
3050
+ function Fr(t) {
3051
+ var e = Vr(t, "string");
3052
+ return typeof e == "symbol" ? e : e + "";
3053
+ }
3054
+ function Vr(t, e) {
3055
+ if (typeof t != "object" || !t)
3056
+ return t;
3057
+ var i = t[Symbol.toPrimitive];
3058
+ if (i !== void 0) {
3059
+ var n = i.call(t, e);
3060
+ if (typeof n != "object")
3061
+ return n;
3062
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3063
+ }
3064
+ return (e === "string" ? String : Number)(t);
3065
+ }
3066
+ class Gr {
3067
+ constructor(e, i, n) {
3068
+ F(this, "adUnit", void 0), F(this, "project", void 0), F(this, "keyValue", void 0), F(this, "adsContext", null), F(this, "gamingInterstitialSlot", null), F(this, "readyEvent", null), F(this, "withCommand", function() {
3069
+ googletag.cmd.push(...arguments);
3070
+ }), F(this, "init", () => {
3071
+ var r;
3072
+ 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((o) => {
3073
+ var s;
3074
+ (s = this.gamingInterstitialSlot) == null || s.setTargeting(o, this.keyValue[o]);
3075
+ }), Object.keys(this.keyValue).includes("project") || (r = this.gamingInterstitialSlot) == null || r.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
3076
+ }), F(this, "destroy", (r) => {
3077
+ var o, s;
3078
+ (s = (o = this.adsContext) == null ? void 0 : o.onEnd) == null || s.call(o, r), this.adsContext = null, googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.gamingInterstitialSlot && (googletag.destroySlots([this.gamingInterstitialSlot]), this.gamingInterstitialSlot = null, this.readyEvent = null);
3079
+ }), F(this, "reinit", (r) => {
3080
+ this.destroy(r), this.init();
3081
+ }), F(this, "handleSlotReady", (r) => {
3082
+ this.gamingInterstitialSlot === r.slot && (this.readyEvent = r);
3083
+ }), F(this, "handleSlotClosed", (r) => {
3084
+ var o, s;
3085
+ this.adsContext && this.gamingInterstitialSlot === r.slot && ((s = (o = this.adsContext).afterAd) == null || s.call(o), this.withCommand(() => {
3086
+ this.reinit("viewed");
3087
+ }));
3088
+ }), F(this, "requestAds", (r) => {
3089
+ this.withCommand(() => {
3090
+ var o, s, a;
3091
+ if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = r, !this.gamingInterstitialSlot) {
3092
+ this.reinit("notReady");
3093
+ return;
3094
+ }
3095
+ this.readyEvent ? ((o = r.beforeAd) == null || o.call(r), this.readyEvent.makeGameManualInterstitialVisible()) : ((a = (s = this.adsContext).onEnd) == null || a.call(s, "frequencyCapped"), this.adsContext = null, googletag.pubads().refresh([this.gamingInterstitialSlot]));
3096
+ });
3097
+ }), Ei(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3098
+ this.init();
3099
+ });
3100
+ }
3101
+ }
3102
+ function oe(t, e, i) {
3103
+ return (e = zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3104
+ }
3105
+ function zr(t) {
3106
+ var e = qr(t, "string");
3107
+ return typeof e == "symbol" ? e : e + "";
3108
+ }
3109
+ function qr(t, e) {
3110
+ if (typeof t != "object" || !t)
3111
+ return t;
3112
+ var i = t[Symbol.toPrimitive];
3113
+ if (i !== void 0) {
3114
+ var n = i.call(t, e);
3115
+ if (typeof n != "object")
3116
+ return n;
3117
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3118
+ }
3119
+ return (e === "string" ? String : Number)(t);
3120
+ }
3121
+ class Kr {
3122
+ constructor(e, i) {
3123
+ oe(this, "name", "GOOGLE_GPT"), oe(this, "context", void 0), oe(this, "contextInfo", void 0), oe(this, "initParams", void 0), oe(this, "rewardAdManager", void 0), oe(this, "interstitialManager", void 0), oe(this, "insertScript", () => {
3124
+ const n = "jolibox-google-gpt";
3125
+ let r = document.getElementById(n);
3126
+ 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));
3127
+ }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.initParams = i, this.insertScript();
3128
+ }
3129
+ async init() {
3130
+ 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"}`;
3131
+ this.rewardAdManager = new ki(e, r, this.initParams.keyValue), this.interstitialManager = new Gr(i, r, this.initParams.keyValue);
3132
+ }
3133
+ adConfig(e, i) {
3134
+ }
3135
+ adBreak(e, i) {
3136
+ var n, r;
3137
+ if (!this.rewardAdManager || !this.interstitialManager) {
3138
+ (n = e.adBreakDone) == null || n.call(e, {
3139
+ breakName: e.type === "preroll" ? "" : e.name,
3140
+ breakType: e.type,
3141
+ breakFormat: e.type === "reward" ? "reward" : "interstitial",
3142
+ breakStatus: "error"
3143
+ });
3144
+ return;
3145
+ }
3146
+ switch (e.type) {
3147
+ case "preroll": {
3148
+ (r = e.adBreakDone) == null || r.call(e, {
3149
+ breakType: "preroll",
3150
+ breakFormat: "interstitial",
3151
+ breakStatus: "noAdPreloaded"
3152
+ });
3153
+ break;
3154
+ }
3155
+ case "reward": {
3156
+ this.rewardAdManager.requestAds({
3157
+ beforeAd: e.beforeAd,
3158
+ afterAd: e.afterAd,
3159
+ adDismissed: e.adDismissed,
3160
+ adViewed: e.adViewed,
3161
+ beforeReward: e.beforeReward,
3162
+ adBreakDone: (o) => {
3163
+ var s;
3164
+ (s = e.adBreakDone) == null || s.call(e, {
3165
+ breakName: e.name,
3166
+ breakType: e.type,
3167
+ breakFormat: "reward",
3168
+ breakStatus: o
3169
+ });
3170
+ }
3171
+ });
3172
+ break;
3173
+ }
3174
+ default: {
3175
+ this.interstitialManager.requestAds({
3176
+ beforeAd: e.beforeAd,
3177
+ afterAd: e.afterAd,
3178
+ onEnd: (o) => {
3179
+ var s;
3180
+ (s = e.adBreakDone) == null || s.call(e, {
3181
+ breakName: e.name,
3182
+ breakType: e.type,
3183
+ breakFormat: "interstitial",
3184
+ breakStatus: o
3185
+ });
3186
+ }
3187
+ });
2956
3188
  break;
2957
3189
  }
2958
3190
  }
2959
3191
  }
2960
3192
  }
2961
- function G(t, e, i) {
2962
- return (e = Lr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3193
+ function H(t, e, i) {
3194
+ return (e = Hr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2963
3195
  }
2964
- function Lr(t) {
2965
- var e = Nr(t, "string");
3196
+ function Hr(t) {
3197
+ var e = Wr(t, "string");
2966
3198
  return typeof e == "symbol" ? e : e + "";
2967
3199
  }
2968
- function Nr(t, e) {
3200
+ function Wr(t, e) {
2969
3201
  if (typeof t != "object" || !t)
2970
3202
  return t;
2971
3203
  var i = t[Symbol.toPrimitive];
@@ -2977,10 +3209,10 @@ function Nr(t, e) {
2977
3209
  }
2978
3210
  return (e === "string" ? String : Number)(t);
2979
3211
  }
2980
- class fo {
3212
+ class To {
2981
3213
  constructor(e) {
2982
- if (G(this, "context", void 0), G(this, "contextInfo", void 0), G(this, "providers", {}), G(this, "channelPolicy", void 0), G(this, "adsActionDetection", void 0), G(this, "adsTrackSerializer", void 0), G(this, "initialized", !1), G(this, "adsIsShowing", !1), G(this, "lastAdBreak", void 0), G(this, "initializedTimeStamp", Date.now()), e)
2983
- this.context = e, this.channelPolicy = new yn(this.context), this.adsActionDetection = new Li(this.context), this.adsTrackSerializer = new Wt(this.context), this.contextInfo = this.context.getContextInfo();
3214
+ if (H(this, "context", void 0), H(this, "contextInfo", void 0), H(this, "providers", {}), H(this, "channelPolicy", void 0), H(this, "adsActionDetection", void 0), H(this, "adsTrackSerializer", void 0), H(this, "initialized", !1), H(this, "adsIsShowing", !1), H(this, "lastAdBreak", void 0), H(this, "initializedTimeStamp", Date.now()), e)
3215
+ this.context = e, this.channelPolicy = new mn(this.context), this.adsActionDetection = new Ui(this.context), this.adsTrackSerializer = new Qt(this.context), this.contextInfo = this.context.getContextInfo();
2984
3216
  else
2985
3217
  throw new Error("JoliboxAdsForGame requires a configuration object");
2986
3218
  }
@@ -3030,19 +3262,24 @@ class fo {
3030
3262
  if ((i == null ? void 0 : i.length) > 0)
3031
3263
  for (const n of i)
3032
3264
  switch (n.provider) {
3265
+ case "GOOGLE_GPT": {
3266
+ const r = new Kr(this.context, n.params);
3267
+ await r.init(), this.providers[n.provider] = r;
3268
+ break;
3269
+ }
3033
3270
  case "ADSENSE":
3034
3271
  case "ADSENSE_ADMOB": {
3035
- const r = new wn(this.context, n.params);
3272
+ const r = new kn(this.context, n.params);
3036
3273
  await r.init(), this.providers[n.provider] = r;
3037
3274
  break;
3038
3275
  }
3039
3276
  case "OKSPIN": {
3040
- const r = new Rr(this.context, n.params);
3277
+ const r = new Pr(this.context, n.params);
3041
3278
  await r.init(), this.providers.OKSPIN = r;
3042
3279
  break;
3043
3280
  }
3044
3281
  case "APPSROCKETS": {
3045
- const r = new Cr(this.context, n.params);
3282
+ const r = new jr(this.context, n.params);
3046
3283
  await r.init(), this.providers.APPSROCKETS = r;
3047
3284
  break;
3048
3285
  }
@@ -3053,7 +3290,7 @@ class fo {
3053
3290
  this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
3054
3291
  }
3055
3292
  async adBreak(e) {
3056
- var r, o, s, a, d, l, c, h, u, f;
3293
+ var r, o, s, a, d, l, u, h, c, f;
3057
3294
  const i = Date.now();
3058
3295
  if (i - this.initializedTimeStamp < 3e3) {
3059
3296
  (r = e.adBreakDone) == null || r.call(e, {
@@ -3102,7 +3339,7 @@ class fo {
3102
3339
  }
3103
3340
  try {
3104
3341
  const {
3105
- data: y,
3342
+ data: g,
3106
3343
  code: v
3107
3344
  } = await this.context.httpClient.post("/api/ads/info", {
3108
3345
  data: {
@@ -3122,9 +3359,9 @@ class fo {
3122
3359
  });
3123
3360
  return;
3124
3361
  } else {
3125
- const g = y == null ? void 0 : y.sort((M, L) => M.seq - L.seq);
3126
- if (g.length === 0) {
3127
- (c = e.adBreakDone) == null || c.call(e, {
3362
+ const w = g == null ? void 0 : g.sort((j, P) => j.seq - P.seq);
3363
+ if (w.length === 0) {
3364
+ (u = e.adBreakDone) == null || u.call(e, {
3128
3365
  breakType: e.type,
3129
3366
  breakName: e.type === "preroll" ? void 0 : e.name,
3130
3367
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
@@ -3132,30 +3369,30 @@ class fo {
3132
3369
  });
3133
3370
  return;
3134
3371
  }
3135
- let p = !0, _ = null;
3136
- const w = new Ti(this.context);
3137
- for (this.adsActionDetection.adBreakIsShowing = !0; g.length > 0; ) {
3138
- const M = g.shift(), L = this.providers[M.provider];
3139
- if (L) {
3140
- const [V, E] = await w.callAdBreakAndContinue(L, e, M, (ht) => {
3141
- var ft;
3142
- this.adsIsShowing = ht, (ft = this.context.eventEmitter) == null || ft.emit("isAdShowing", ht);
3372
+ let y = !0, p = null;
3373
+ const b = new Mi(this.context);
3374
+ for (this.adsActionDetection.adBreakIsShowing = !0; w.length > 0; ) {
3375
+ const j = w.shift(), P = this.providers[j.provider];
3376
+ if (P) {
3377
+ const [z, E] = await b.callAdBreakAndContinue(P, e, j, (yt) => {
3378
+ var pt;
3379
+ this.adsIsShowing = yt, (pt = this.context.eventEmitter) == null || pt.emit("isAdShowing", yt);
3143
3380
  });
3144
- p = V, _ = E;
3381
+ y = z, p = E;
3145
3382
  } else
3146
- p = !0, _ = {
3383
+ y = !0, p = {
3147
3384
  breakType: e.type,
3148
3385
  breakName: e.type === "preroll" ? void 0 : e.name,
3149
3386
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
3150
3387
  breakStatus: "notReady"
3151
3388
  };
3152
- if (!p)
3389
+ if (!y)
3153
3390
  break;
3154
3391
  }
3155
- p && _ && ((h = e.adBreakDone) == null || h.call(e, _));
3392
+ y && p && ((h = e.adBreakDone) == null || h.call(e, p));
3156
3393
  }
3157
- } catch (y) {
3158
- (u = e.adBreakDone) == null || u.call(e, {
3394
+ } catch (g) {
3395
+ (c = e.adBreakDone) == null || c.call(e, {
3159
3396
  breakType: e.type,
3160
3397
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
3161
3398
  breakStatus: "noAdPreloaded"
@@ -3168,14 +3405,14 @@ class fo {
3168
3405
  console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
3169
3406
  }
3170
3407
  }
3171
- function Je(t, e, i) {
3172
- return (e = Pr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3408
+ function Ze(t, e, i) {
3409
+ return (e = Jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3173
3410
  }
3174
- function Pr(t) {
3175
- var e = Mr(t, "string");
3411
+ function Jr(t) {
3412
+ var e = Yr(t, "string");
3176
3413
  return typeof e == "symbol" ? e : e + "";
3177
3414
  }
3178
- function Mr(t, e) {
3415
+ function Yr(t, e) {
3179
3416
  if (typeof t != "object" || !t)
3180
3417
  return t;
3181
3418
  var i = t[Symbol.toPrimitive];
@@ -3187,9 +3424,9 @@ function Mr(t, e) {
3187
3424
  }
3188
3425
  return (e === "string" ? String : Number)(t);
3189
3426
  }
3190
- class $r {
3427
+ class Xr {
3191
3428
  constructor(e) {
3192
- Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), this.context = e;
3429
+ Ze(this, "context", void 0), Ze(this, "currentProvider", void 0), Ze(this, "continueCallback", void 0), this.context = e;
3193
3430
  }
3194
3431
  get paramsToTrack() {
3195
3432
  var e, i;
@@ -3232,14 +3469,14 @@ class $r {
3232
3469
  });
3233
3470
  }
3234
3471
  }
3235
- function Ye(t, e, i) {
3236
- return (e = Ur(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3472
+ function et(t, e, i) {
3473
+ return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3237
3474
  }
3238
- function Ur(t) {
3239
- var e = Br(t, "string");
3475
+ function Qr(t) {
3476
+ var e = Zr(t, "string");
3240
3477
  return typeof e == "symbol" ? e : e + "";
3241
3478
  }
3242
- function Br(t, e) {
3479
+ function Zr(t, e) {
3243
3480
  if (typeof t != "object" || !t)
3244
3481
  return t;
3245
3482
  var i = t[Symbol.toPrimitive];
@@ -3251,27 +3488,27 @@ function Br(t, e) {
3251
3488
  }
3252
3489
  return (e === "string" ? String : Number)(t);
3253
3490
  }
3254
- class $ extends Error {
3491
+ class C extends Error {
3255
3492
  constructor(e, i) {
3256
- super(e.message), Ye(this, "name", void 0), Ye(this, "type", void 0), Ye(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
3493
+ 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;
3257
3494
  }
3258
3495
  static from(e, i) {
3259
3496
  switch (i) {
3260
3497
  case "GOOGLE_IMA_ERROR":
3261
- return new $(e, i);
3498
+ return new C(e, i);
3262
3499
  case "JOLIBOX_IMA_ERROR":
3263
- return new $(e, i);
3500
+ return new C(e, i);
3264
3501
  }
3265
3502
  }
3266
3503
  }
3267
3504
  function I(t, e, i) {
3268
- return (e = jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3505
+ return (e = eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3269
3506
  }
3270
- function jr(t) {
3271
- var e = Fr(t, "string");
3507
+ function eo(t) {
3508
+ var e = to(t, "string");
3272
3509
  return typeof e == "symbol" ? e : e + "";
3273
3510
  }
3274
- function Fr(t, e) {
3511
+ function to(t, e) {
3275
3512
  if (typeof t != "object" || !t)
3276
3513
  return t;
3277
3514
  var i = t[Symbol.toPrimitive];
@@ -3283,16 +3520,16 @@ function Fr(t, e) {
3283
3520
  }
3284
3521
  return (e === "string" ? String : Number)(t);
3285
3522
  }
3286
- class Vr {
3523
+ class io {
3287
3524
  constructor(e, i, n) {
3288
3525
  I(this, "adsLoader", void 0), I(this, "adDisplayContainer", void 0), I(this, "isAdPlaying", !1), I(this, "isContentFinished", !1), I(this, "videoContent", void 0), I(this, "adContainer", void 0), I(this, "adsManager", void 0), I(this, "intervalTimer", void 0), I(this, "completed", !1), I(this, "adTagUrl", void 0), I(this, "notifyRequestAd", void 0), I(this, "notifyLoaded", void 0), I(this, "notifyPlayingAd", void 0), I(this, "notifyCompleted", void 0), I(this, "notifyError", void 0), I(this, "destroy", () => {
3289
- var r, o, s, a, d, l, c, h, u, f, y;
3290
- this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (y = this.adsManager) == null || y.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
3526
+ var r, o, s, a, d, l, u, h, c, f, g;
3527
+ this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (g = this.adsManager) == null || g.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
3291
3528
  }), I(this, "requestAds", async (r, o) => {
3292
- var c;
3529
+ var u;
3293
3530
  this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
3294
- var u;
3295
- return (u = r.onAdError) == null ? void 0 : u.call(r, $.from(h, "GOOGLE_IMA_ERROR"));
3531
+ var c;
3532
+ return (c = r.onAdError) == null ? void 0 : c.call(r, C.from(h, "GOOGLE_IMA_ERROR"));
3296
3533
  }, this.adsLoader = new window.google.ima.AdsLoader(this.adDisplayContainer), this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1), this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1);
3297
3534
  const s = () => {
3298
3535
  var h;
@@ -3302,11 +3539,11 @@ class Vr {
3302
3539
  const a = new window.google.ima.AdsRequest();
3303
3540
  let d = "";
3304
3541
  Object.keys(o.params).forEach((h) => {
3305
- const u = window.encodeURIComponent(o.params[h]);
3306
- d += `&${h}=${u}`;
3542
+ const c = window.encodeURIComponent(o.params[h]);
3543
+ d += `&${h}=${c}`;
3307
3544
  });
3308
3545
  const l = `${this.adTagUrl}${d}`;
3309
- a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (c = this.notifyRequestAd) == null || c.call(this);
3546
+ a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (u = this.notifyRequestAd) == null || u.call(this);
3310
3547
  }), I(this, "createAdDisplayContainer", () => {
3311
3548
  this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
3312
3549
  }), I(this, "playAds", () => {
@@ -3348,9 +3585,9 @@ class Vr {
3348
3585
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
3349
3586
  }
3350
3587
  }
3351
- var Le = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(Le || {});
3352
- const zr = () => {
3353
- const t = S(!1), e = S(!1), i = S(null), n = yt(), r = yt();
3588
+ var $e = /* @__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))($e || {});
3589
+ const no = () => {
3590
+ const t = S(!1), e = S(!1), i = S(null), n = _t(), r = _t();
3354
3591
  return {
3355
3592
  visible: t,
3356
3593
  canRetry: e,
@@ -3358,8 +3595,8 @@ const zr = () => {
3358
3595
  videoRef: n,
3359
3596
  adContainerRef: r
3360
3597
  };
3361
- }, Kr = le`
3362
- ${P}
3598
+ }, ro = fe`
3599
+ ${$}
3363
3600
  position: fixed;
3364
3601
  left: 0;
3365
3602
  top: 0;
@@ -3374,7 +3611,7 @@ const zr = () => {
3374
3611
  }
3375
3612
 
3376
3613
  .ads-wrapper {
3377
- ${P}
3614
+ ${$}
3378
3615
  position: relative;
3379
3616
  width: 100%;
3380
3617
  height: 100%;
@@ -3397,7 +3634,7 @@ const zr = () => {
3397
3634
  }
3398
3635
 
3399
3636
  .retry-button {
3400
- ${P}
3637
+ ${$}
3401
3638
  position: absolute;
3402
3639
  width: 100%;
3403
3640
  height: 100%;
@@ -3407,7 +3644,7 @@ const zr = () => {
3407
3644
  cursor: pointer;
3408
3645
  }
3409
3646
  }
3410
- `, Gr = (t) => {
3647
+ `, oo = (t) => {
3411
3648
  let {
3412
3649
  onReady: e,
3413
3650
  state: i
@@ -3419,41 +3656,41 @@ const zr = () => {
3419
3656
  videoRef: s,
3420
3657
  adContainerRef: a
3421
3658
  } = i, d = () => {
3422
- r.value && (r.value(), T(() => {
3659
+ r.value && (r.value(), O(() => {
3423
3660
  r.value = null, o.value = !1;
3424
3661
  }));
3425
3662
  };
3426
- return Ue(() => {
3663
+ return Ve(() => {
3427
3664
  e();
3428
- }, [e]), b("div", {
3429
- className: Kr,
3665
+ }, [e]), _("div", {
3666
+ className: ro,
3430
3667
  "data-visible": n.value,
3431
- children: b("div", {
3668
+ children: _("div", {
3432
3669
  className: "ads-wrapper",
3433
- children: [b("video", {
3670
+ children: [_("video", {
3434
3671
  ref: s,
3435
3672
  width: "100%",
3436
3673
  height: "100%",
3437
3674
  playsInline: !0
3438
- }), b("div", {
3675
+ }), _("div", {
3439
3676
  id: "ad-container",
3440
3677
  ref: a
3441
- }), o.value ? b("div", {
3678
+ }), o.value ? _("div", {
3442
3679
  className: "retry-button",
3443
3680
  onClick: d,
3444
- children: b("svg", {
3681
+ children: _("svg", {
3445
3682
  width: "64",
3446
3683
  height: "64",
3447
3684
  viewBox: "0 0 64 64",
3448
3685
  fill: "none",
3449
3686
  xmlns: "http://www.w3.org/2000/svg",
3450
- children: [b("circle", {
3687
+ children: [_("circle", {
3451
3688
  cx: "32",
3452
3689
  cy: "32",
3453
3690
  r: "32",
3454
3691
  fill: "#141416",
3455
3692
  fillOpacity: "0.3"
3456
- }), b("path", {
3693
+ }), _("path", {
3457
3694
  d: "M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",
3458
3695
  fill: "white"
3459
3696
  })]
@@ -3462,14 +3699,14 @@ const zr = () => {
3462
3699
  })
3463
3700
  });
3464
3701
  };
3465
- function Q(t, e, i) {
3466
- return (e = qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3702
+ function ee(t, e, i) {
3703
+ return (e = so(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3467
3704
  }
3468
- function qr(t) {
3469
- var e = Hr(t, "string");
3705
+ function so(t) {
3706
+ var e = ao(t, "string");
3470
3707
  return typeof e == "symbol" ? e : e + "";
3471
3708
  }
3472
- function Hr(t, e) {
3709
+ function ao(t, e) {
3473
3710
  if (typeof t != "object" || !t)
3474
3711
  return t;
3475
3712
  var i = t[Symbol.toPrimitive];
@@ -3481,9 +3718,9 @@ function Hr(t, e) {
3481
3718
  }
3482
3719
  return (e === "string" ? String : Number)(t);
3483
3720
  }
3484
- class Wr {
3721
+ class lo {
3485
3722
  constructor(e) {
3486
- Q(this, "name", "GOOGLE_IMA"), Q(this, "context", void 0), Q(this, "adsOverlay", null), Q(this, "initialized", !1), Q(this, "ima", null), Q(this, "state", zr()), Q(this, "init", async (i) => {
3723
+ ee(this, "name", "GOOGLE_IMA"), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "initialized", !1), ee(this, "ima", null), ee(this, "state", no()), ee(this, "init", async (i) => {
3487
3724
  if (this.initialized)
3488
3725
  return;
3489
3726
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -3499,65 +3736,82 @@ class Wr {
3499
3736
  }, s.onerror = o, document.head.appendChild(s);
3500
3737
  }
3501
3738
  }), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
3502
- te(b(Gr, {
3739
+ re(_(oo, {
3503
3740
  state: this.state,
3504
3741
  onReady: () => {
3505
- this.ima = new Vr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3742
+ this.ima = new io(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3506
3743
  }
3507
3744
  }), this.adsOverlay);
3508
3745
  }), this.initialized = !0;
3509
- }), Q(this, "destroy", () => {
3510
- this.adsOverlay && (te(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
3511
- }), Q(this, "requestAd", (i, n) => {
3512
- var a;
3746
+ }), ee(this, "destroy", () => {
3747
+ this.adsOverlay && (re(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
3748
+ }), ee(this, "requestAd", (i, n) => {
3749
+ var u;
3513
3750
  if (!this.adsOverlay || !this.ima || !this.initialized) {
3514
- const d = $.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3515
- (a = i.onAdError) == null || a.call(i, d);
3751
+ const h = C.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3752
+ (u = i.onAdError) == null || u.call(i, h);
3516
3753
  return;
3517
3754
  }
3518
- const r = (d) => {
3519
- var l;
3520
- this.ima.destroy(), this.state.visible.value = !1, (l = i.onAdCompleted) == null || l.call(i, d);
3521
- }, o = (d) => {
3755
+ let r = !1;
3756
+ const o = (h) => {
3522
3757
  var c;
3523
- let l = !1;
3524
- switch (d.raw.getErrorCode()) {
3525
- case Le.AUTOPLAY_DISALLOWED:
3526
- case Le.VIDEO_PLAY_ERROR:
3527
- case Le.ADS_REQUEST_NETWORK_ERROR: {
3528
- l = !0;
3758
+ r = !0, this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, h);
3759
+ }, s = (h) => {
3760
+ var f;
3761
+ r = !0;
3762
+ let c = !1;
3763
+ switch (h.raw.getErrorCode()) {
3764
+ case $e.AUTOPLAY_DISALLOWED:
3765
+ case $e.VIDEO_PLAY_ERROR:
3766
+ case $e.ADS_REQUEST_NETWORK_ERROR: {
3767
+ c = !0;
3529
3768
  break;
3530
3769
  }
3531
3770
  default: {
3532
- l = !1;
3771
+ c = !1;
3533
3772
  break;
3534
3773
  }
3535
3774
  }
3536
- if (!l)
3537
- this.ima.destroy(), T(() => {
3775
+ if (!c)
3776
+ this.ima.destroy(), O(() => {
3538
3777
  this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
3539
- }), (c = i.onAdError) == null || c.call(i, d);
3778
+ }), (f = i.onAdError) == null || f.call(i, h);
3540
3779
  else {
3541
- const h = () => {
3780
+ const g = () => {
3542
3781
  this.ima.destroy(), this.requestAd(i, n);
3543
3782
  };
3544
- T(() => {
3545
- this.state.canRetry.value = !0, this.state.retry.value = h;
3783
+ O(() => {
3784
+ this.state.canRetry.value = !0, this.state.retry.value = g;
3546
3785
  });
3547
3786
  }
3548
- }, s = Object.assign({}, i);
3549
- s.onAdCompleted = r, s.onAdError = o, this.ima.requestAds(s, n), this.state.visible.value = !0;
3787
+ }, a = (h) => {
3788
+ var c;
3789
+ r = !0, this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, h);
3790
+ }, d = (h) => {
3791
+ var c;
3792
+ r = !0, (c = i.onAdPlaying) == null || c.call(i, h);
3793
+ }, l = Object.assign({}, i);
3794
+ l.onAdCompleted = o, l.onAdError = s, l.onAdLoaded = a, l.onAdPlaying = d, this.ima.requestAds(l, n), window.setTimeout(() => {
3795
+ var h, c;
3796
+ if (!r) {
3797
+ O(() => {
3798
+ this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
3799
+ });
3800
+ const f = C.from(new Error("Ad server not responded"), "GOOGLE_IMA_ERROR");
3801
+ (h = i.onAdError) == null || h.call(i, f), (c = this.ima) == null || c.destroy();
3802
+ }
3803
+ }, 5e3);
3550
3804
  }), this.context = e;
3551
3805
  }
3552
3806
  }
3553
- function q(t, e, i) {
3554
- return (e = Jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3807
+ function W(t, e, i) {
3808
+ return (e = uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3555
3809
  }
3556
- function Jr(t) {
3557
- var e = Yr(t, "string");
3810
+ function uo(t) {
3811
+ var e = co(t, "string");
3558
3812
  return typeof e == "symbol" ? e : e + "";
3559
3813
  }
3560
- function Yr(t, e) {
3814
+ function co(t, e) {
3561
3815
  if (typeof t != "object" || !t)
3562
3816
  return t;
3563
3817
  var i = t[Symbol.toPrimitive];
@@ -3569,49 +3823,49 @@ function Yr(t, e) {
3569
3823
  }
3570
3824
  return (e === "string" ? String : Number)(t);
3571
3825
  }
3572
- class Xr {
3826
+ class ho {
3573
3827
  constructor(e) {
3574
- q(this, "name", "OKSPIN"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "state", yi()), q(this, "init", async (i) => {
3828
+ W(this, "name", "OKSPIN"), W(this, "initialized", !1), W(this, "initCompleter", null), W(this, "context", void 0), W(this, "adsOverlay", null), W(this, "adsIsShowing", !1), W(this, "state", _i()), W(this, "init", async (i) => {
3575
3829
  var n;
3576
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(b(_i, {
3830
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), re(_(Ai, {
3577
3831
  state: this.state
3578
3832
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3579
- }), q(this, "destroy", () => {
3833
+ }), W(this, "destroy", () => {
3580
3834
  var i;
3581
- this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3582
- }), q(this, "requestAd", (i, n) => {
3835
+ this.adsOverlay && (re(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3836
+ }), W(this, "requestAd", (i, n) => {
3583
3837
  var s, a, d, l;
3584
3838
  if (!this.adsOverlay || !this.initialized) {
3585
- (s = i.onAdError) == null || s.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3839
+ (s = i.onAdError) == null || s.call(i, C.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3586
3840
  return;
3587
3841
  }
3588
3842
  if (this.adsIsShowing) {
3589
- (a = i.onAdError) == null || a.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3843
+ (a = i.onAdError) == null || a.call(i, C.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3590
3844
  return;
3591
3845
  }
3592
3846
  (d = i.onAdRequested) == null || d.call(i);
3593
3847
  const r = () => {
3594
- var c;
3595
- this.adsIsShowing = !1, (c = i.onAdCompleted) == null || c.call(i, void 0);
3848
+ var u;
3849
+ this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
3596
3850
  }, o = () => {
3597
- var c;
3598
- (c = i.onAdLoaded) == null || c.call(i, void 0);
3851
+ var u;
3852
+ (u = i.onAdLoaded) == null || u.call(i, void 0);
3599
3853
  };
3600
- this.adsIsShowing = !0, T(() => {
3601
- var c;
3602
- this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (c = n.params.countdown) != null ? c : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
3854
+ this.adsIsShowing = !0, O(() => {
3855
+ var u;
3856
+ this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (u = n.params.countdown) != null ? u : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
3603
3857
  }), (l = i.onAdPlaying) == null || l.call(i, void 0);
3604
3858
  }), this.context = e;
3605
3859
  }
3606
3860
  }
3607
- function z(t, e, i) {
3608
- return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3861
+ function q(t, e, i) {
3862
+ return (e = fo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3609
3863
  }
3610
- function Qr(t) {
3611
- var e = Zr(t, "string");
3864
+ function fo(t) {
3865
+ var e = vo(t, "string");
3612
3866
  return typeof e == "symbol" ? e : e + "";
3613
3867
  }
3614
- function Zr(t, e) {
3868
+ function vo(t, e) {
3615
3869
  if (typeof t != "object" || !t)
3616
3870
  return t;
3617
3871
  var i = t[Symbol.toPrimitive];
@@ -3623,58 +3877,129 @@ function Zr(t, e) {
3623
3877
  }
3624
3878
  return (e === "string" ? String : Number)(t);
3625
3879
  }
3626
- class eo {
3880
+ class go {
3627
3881
  constructor(e) {
3628
- z(this, "name", "APPSROCKETS"), z(this, "initialized", !1), z(this, "initCompleter", null), z(this, "context", void 0), z(this, "adsOverlay", null), z(this, "adsIsShowing", !1), z(this, "state", gi()), z(this, "processUrl", (i) => {
3882
+ q(this, "name", "APPSROCKETS"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "state", mi()), q(this, "processUrl", (i) => {
3629
3883
  var s;
3630
3884
  const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
3631
3885
  return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), r.search = o.toString(), r.toString();
3632
- }), z(this, "init", async (i) => {
3886
+ }), q(this, "init", async (i) => {
3633
3887
  var n;
3634
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(b(wi, {
3888
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), re(_(Si, {
3635
3889
  state: this.state
3636
3890
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3637
- }), z(this, "destroy", () => {
3891
+ }), q(this, "destroy", () => {
3638
3892
  var i;
3639
- this.adsOverlay && (te(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3640
- }), z(this, "requestAd", (i, n) => {
3641
- var d, l, c, h;
3893
+ this.adsOverlay && (re(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
3894
+ }), q(this, "requestAd", (i, n) => {
3895
+ var d, l, u, h;
3642
3896
  if (!this.adsOverlay || !this.initialized) {
3643
- (d = i.onAdError) == null || d.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3897
+ (d = i.onAdError) == null || d.call(i, C.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3644
3898
  return;
3645
3899
  }
3646
3900
  if (this.adsIsShowing) {
3647
- (l = i.onAdError) == null || l.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3901
+ (l = i.onAdError) == null || l.call(i, C.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3648
3902
  return;
3649
3903
  }
3650
- (c = i.onAdRequested) == null || c.call(i);
3904
+ (u = i.onAdRequested) == null || u.call(i);
3651
3905
  const r = () => {
3652
- var u;
3653
- this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
3906
+ var c;
3907
+ this.adsIsShowing = !1, (c = i.onAdCompleted) == null || c.call(i, void 0);
3654
3908
  }, o = () => {
3655
- var u;
3656
- (u = i.onAdLoaded) == null || u.call(i, void 0);
3657
- }, s = (u) => {
3658
- var f, y;
3659
- (y = (f = this.context).handleLinkClicked) == null || y.call(f, u);
3909
+ var c;
3910
+ (c = i.onAdLoaded) == null || c.call(i, void 0);
3911
+ }, s = (c) => {
3912
+ var f, g;
3913
+ (g = (f = this.context).handleLinkClicked) == null || g.call(f, c);
3660
3914
  }, a = () => {
3661
- var u;
3662
- (u = i.onAdError) == null || u.call(i, $.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
3915
+ var c;
3916
+ (c = i.onAdError) == null || c.call(i, C.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
3663
3917
  };
3664
- this.adsIsShowing = !0, T(() => {
3918
+ this.adsIsShowing = !0, O(() => {
3665
3919
  this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
3666
3920
  }), (h = i.onAdPlaying) == null || h.call(i, void 0);
3667
3921
  }), this.context = e;
3668
3922
  }
3669
3923
  }
3670
- function pe(t, e, i) {
3671
- return (e = to(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3924
+ function te(t, e, i) {
3925
+ return (e = yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3926
+ }
3927
+ function yo(t) {
3928
+ var e = po(t, "string");
3929
+ return typeof e == "symbol" ? e : e + "";
3930
+ }
3931
+ function po(t, e) {
3932
+ if (typeof t != "object" || !t)
3933
+ return t;
3934
+ var i = t[Symbol.toPrimitive];
3935
+ if (i !== void 0) {
3936
+ var n = i.call(t, e);
3937
+ if (typeof n != "object")
3938
+ return n;
3939
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3940
+ }
3941
+ return (e === "string" ? String : Number)(t);
3942
+ }
3943
+ class wo {
3944
+ constructor(e) {
3945
+ te(this, "name", "GOOGLE_GPT"), te(this, "context", void 0), te(this, "contextInfo", void 0), te(this, "rewardAdManager", void 0), te(this, "init", async (i) => {
3946
+ if (!this.rewardAdManager) {
3947
+ const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minigame-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
3948
+ this.rewardAdManager = new ki(n, o, i.params.keyValue);
3949
+ }
3950
+ }), te(this, "insertScript", () => {
3951
+ const i = "jolibox-google-gpt";
3952
+ let n = document.getElementById(i);
3953
+ 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));
3954
+ }), te(this, "destroy", () => {
3955
+ var i;
3956
+ (i = this.rewardAdManager) == null || i.withCommand(() => {
3957
+ var n;
3958
+ (n = this.rewardAdManager) == null || n.destroy("ignored");
3959
+ });
3960
+ }), te(this, "requestAd", (i, n) => {
3961
+ var r;
3962
+ if (!this.rewardAdManager) {
3963
+ (r = i.onAdError) == null || r.call(i, C.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
3964
+ return;
3965
+ }
3966
+ this.rewardAdManager.requestAds({
3967
+ beforeAd: i.onAdRequested,
3968
+ beforeReward: (o) => {
3969
+ var s, a;
3970
+ (s = i.onAdLoaded) == null || s.call(i, void 0), o(), (a = i.onAdPlaying) == null || a.call(i, void 0);
3971
+ },
3972
+ adDismissed: () => {
3973
+ },
3974
+ adViewed: () => {
3975
+ },
3976
+ adBreakDone: (o) => {
3977
+ var s, a;
3978
+ switch (o) {
3979
+ case "viewed": {
3980
+ (s = i.onAdCompleted) == null || s.call(i, void 0);
3981
+ break;
3982
+ }
3983
+ case "ignored":
3984
+ break;
3985
+ default: {
3986
+ (a = i.onAdError) == null || a.call(i, C.from(new Error(o), "JOLIBOX_IMA_ERROR"));
3987
+ break;
3988
+ }
3989
+ }
3990
+ }
3991
+ });
3992
+ }), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
3993
+ }
3672
3994
  }
3673
- function to(t) {
3674
- var e = io(t, "string");
3995
+ function be(t, e, i) {
3996
+ return (e = bo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3997
+ }
3998
+ function bo(t) {
3999
+ var e = _o(t, "string");
3675
4000
  return typeof e == "symbol" ? e : e + "";
3676
4001
  }
3677
- function io(t, e) {
4002
+ function _o(t, e) {
3678
4003
  if (typeof t != "object" || !t)
3679
4004
  return t;
3680
4005
  var i = t[Symbol.toPrimitive];
@@ -3686,15 +4011,16 @@ function io(t, e) {
3686
4011
  }
3687
4012
  return (e === "string" ? String : Number)(t);
3688
4013
  }
3689
- class vo {
4014
+ class Co {
3690
4015
  constructor(e) {
3691
- if (pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "providers", {}), pe(this, "adsTrackSerializer", void 0), pe(this, "initialized", !1), e)
3692
- this.context = e, this.adsTrackSerializer = new Wt(e), this.contextInfo = this.context.getContextInfo();
4016
+ if (be(this, "context", void 0), be(this, "contextInfo", void 0), be(this, "providers", {}), be(this, "adsTrackSerializer", void 0), be(this, "initialized", !1), e)
4017
+ this.context = e, this.adsTrackSerializer = new Qt(e), this.contextInfo = this.context.getContextInfo();
3693
4018
  else
3694
4019
  throw new Error("JoliboxAdsForVideo requires a configuration object");
3695
4020
  }
3696
4021
  getRequestContextData(e) {
3697
4022
  var r, o;
4023
+ this.contextInfo = this.context.getContextInfo();
3698
4024
  const {
3699
4025
  width: i,
3700
4026
  height: n
@@ -3738,18 +4064,23 @@ class vo {
3738
4064
  if ((e == null ? void 0 : e.length) > 0)
3739
4065
  for (const i of e)
3740
4066
  switch (i.provider) {
4067
+ case "GOOGLE_GPT": {
4068
+ const n = new wo(this.context);
4069
+ await n.init(i), this.providers.GOOGLE_GPT = n;
4070
+ break;
4071
+ }
3741
4072
  case "GOOGLE_IMA": {
3742
- const n = new Wr(this.context);
4073
+ const n = new lo(this.context);
3743
4074
  await n.init(i), this.providers.GOOGLE_IMA = n;
3744
4075
  break;
3745
4076
  }
3746
4077
  case "OKSPIN": {
3747
- const n = new Xr(this.context);
4078
+ const n = new ho(this.context);
3748
4079
  await n.init(i), this.providers.OKSPIN = n;
3749
4080
  break;
3750
4081
  }
3751
4082
  case "APPSROCKETS": {
3752
- const n = new eo(this.context);
4083
+ const n = new go(this.context);
3753
4084
  await n.init(i), this.providers.APPSROCKETS = n;
3754
4085
  break;
3755
4086
  }
@@ -3768,14 +4099,14 @@ class vo {
3768
4099
  async requestAd(e) {
3769
4100
  var i, n, r, o, s, a, d;
3770
4101
  if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
3771
- const l = $.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
4102
+ const l = C.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
3772
4103
  (n = e.onAdError) == null || n.call(e, l);
3773
4104
  return;
3774
4105
  }
3775
4106
  try {
3776
4107
  const {
3777
4108
  data: l,
3778
- code: c
4109
+ code: u
3779
4110
  } = await this.context.httpClient.post("/api/ads/info", {
3780
4111
  data: {
3781
4112
  contextData: this.getRequestContextData("AdsAFVSDKRequest"),
@@ -3784,47 +4115,47 @@ class vo {
3784
4115
  adsType: "REWARD_INTERSTITIAL"
3785
4116
  }
3786
4117
  });
3787
- if (c !== "SUCCESS") {
3788
- const h = $.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
4118
+ if (u !== "SUCCESS") {
4119
+ const h = C.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
3789
4120
  (r = e.onAdError) == null || r.call(e, h);
3790
4121
  return;
3791
4122
  } else {
3792
- const h = l == null ? void 0 : l.sort((v, g) => v.seq - g.seq);
4123
+ const h = l == null ? void 0 : l.sort((v, w) => v.seq - w.seq);
3793
4124
  if (h.length === 0) {
3794
- const v = $.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
4125
+ const v = C.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
3795
4126
  (o = e.onAdError) == null || o.call(e, v);
3796
4127
  return;
3797
4128
  }
3798
- let u = !0, f = null;
3799
- const y = new $r(this.context);
4129
+ let c = !0, f = null;
4130
+ const g = new Xr(this.context);
3800
4131
  for (; h.length > 0; ) {
3801
- const v = h.shift(), g = this.providers[v.provider];
3802
- if (g) {
3803
- const [p, _] = await y.callAdRequestAndContinue(g, e, v);
3804
- u = p, f = _;
4132
+ const v = h.shift(), w = this.providers[v.provider];
4133
+ if (w) {
4134
+ const [y, p] = await g.callAdRequestAndContinue(w, e, v);
4135
+ c = y, f = p;
3805
4136
  } else
3806
- u = !0, f = $.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
3807
- if (!u)
4137
+ c = !0, f = C.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
4138
+ if (!c)
3808
4139
  break;
3809
4140
  }
3810
- u && f && ((s = e.onAdError) == null || s.call(e, f));
4141
+ c && f && ((s = e.onAdError) == null || s.call(e, f));
3811
4142
  }
3812
4143
  } catch (l) {
3813
- const c = $.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
3814
- (a = e.onAdError) == null || a.call(e, c);
4144
+ const u = C.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
4145
+ (a = e.onAdError) == null || a.call(e, u);
3815
4146
  } finally {
3816
4147
  (d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
3817
4148
  }
3818
4149
  }
3819
4150
  }
3820
- function ne(t, e, i) {
3821
- return (e = no(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4151
+ function ae(t, e, i) {
4152
+ return (e = Ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3822
4153
  }
3823
- function no(t) {
3824
- var e = ro(t, "string");
4154
+ function Ao(t) {
4155
+ var e = mo(t, "string");
3825
4156
  return typeof e == "symbol" ? e : e + "";
3826
4157
  }
3827
- function ro(t, e) {
4158
+ function mo(t, e) {
3828
4159
  if (typeof t != "object" || !t)
3829
4160
  return t;
3830
4161
  var i = t[Symbol.toPrimitive];
@@ -3836,18 +4167,18 @@ function ro(t, e) {
3836
4167
  }
3837
4168
  return (e === "string" ? String : Number)(t);
3838
4169
  }
3839
- class po extends Error {
4170
+ class Do extends Error {
3840
4171
  constructor(e) {
3841
- super(e), ne(this, "name", void 0), ne(this, "message", void 0), ne(this, "errMsg", void 0), ne(this, "code", void 0), ne(this, "data", void 0), ne(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
4172
+ super(e), ae(this, "name", void 0), ae(this, "message", void 0), ae(this, "errMsg", void 0), ae(this, "code", void 0), ae(this, "data", void 0), ae(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
3842
4173
  }
3843
4174
  }
3844
4175
  export {
3845
- $ as AFVWrappedError,
3846
- wn as GoogleAdSenseProvider,
3847
- Wr as GoogleIMAProvider,
3848
- fo as JoliboxAdsForGame,
3849
- vo as JoliboxAdsForVideo,
3850
- Rr as OKSpinForGameProvider,
3851
- Xr as OKSpinForVideoProvider,
3852
- po as ResponseError
4176
+ C as AFVWrappedError,
4177
+ kn as GoogleAdSenseProvider,
4178
+ lo as GoogleIMAProvider,
4179
+ To as JoliboxAdsForGame,
4180
+ Co as JoliboxAdsForVideo,
4181
+ Pr as OKSpinForGameProvider,
4182
+ ho as OKSpinForVideoProvider,
4183
+ Do as ResponseError
3853
4184
  };