@jolibox/ads 1.1.41-beta.1 → 1.1.43

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,222 +1,39 @@
1
- var wt = Object.getOwnPropertySymbols;
2
- var Ii = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable;
3
- var bt = (t, e) => {
1
+ var bt = Object.getOwnPropertySymbols;
2
+ var xi = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable;
3
+ var _t = (t, e) => {
4
4
  var i = {};
5
5
  for (var n in t)
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]);
6
+ xi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
7
+ if (t != null && bt)
8
+ for (var n of bt(t))
9
+ e.indexOf(n) < 0 && Ri.call(t, n) && (i[n] = t[n]);
10
10
  return i;
11
11
  };
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
- function F(t, e, i) {
15
- return (e = Pi(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
16
- }
17
- function Pi(t) {
18
- var e = Ni(t, "string");
19
- return typeof e == "symbol" ? e : e + "";
20
- }
21
- function Ni(t, e) {
22
- if (typeof t != "object" || !t)
23
- return t;
24
- var i = t[Symbol.toPrimitive];
25
- if (i !== void 0) {
26
- var n = i.call(t, e);
27
- if (typeof n != "object")
28
- return n;
29
- throw new TypeError("@@toPrimitive must return a primitive value.");
30
- }
31
- return (e === "string" ? String : Number)(t);
32
- }
33
- class Mi {
34
- constructor(e) {
35
- F(this, "context", void 0), F(this, "continueCallback", void 0), F(this, "adIsShowingCallback", void 0), F(this, "isBeforeAdCalled", !1), F(this, "isBeforeRewardCalled", !1), F(this, "isAdDismissedCalled", !1), F(this, "isAdViewedCalled", !1), F(this, "isAfterAdCalled", !1), F(this, "currentProvider", void 0), F(this, "currentClientParams", void 0), F(this, "adsHasResponse", !1), F(this, "videoChecker", window.document.createElement("video")), F(this, "wrapShowAdFn", (i) => () => {
36
- var r;
37
- this.adsHasResponse = !0;
38
- let n = !1;
39
- this.videoChecker.play().catch(() => {
40
- n = !1;
41
- }), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
42
- userEvent: n
43
- }, this.paramsToTrack)), (r = this.adIsShowingCallback) == null || r.call(this, !0), i();
44
- }), this.context = e;
45
- }
46
- get paramsToTrack() {
47
- var e, i, n, r, o, s;
48
- return {
49
- provider: (i = (e = this.currentProvider) == null ? void 0 : e.name) != null ? i : null,
50
- type: (n = this.currentClientParams) == null ? void 0 : n.type,
51
- name: ((r = this.currentClientParams) == null ? void 0 : r.type) === "preroll" ? null : (s = (o = this.currentClientParams) == null ? void 0 : o.name) != null ? s : ""
52
- };
53
- }
54
- wrapBeforeAd(e) {
55
- return () => {
56
- var i, n;
57
- this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.isBeforeAdCalled || (this.isBeforeAdCalled = !0, e == null || e(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0)));
58
- };
59
- }
60
- wrapBeforeReward(e) {
61
- return (i) => {
62
- this.adsHasResponse = !0, this.isBeforeRewardCalled ? this.wrapShowAdFn(i)() : (this.isBeforeRewardCalled = !0, e == null || e(this.wrapShowAdFn(i)));
63
- };
64
- }
65
- wrapAdDismissed(e) {
66
- return () => {
67
- this.adsHasResponse = !0, this.isAdDismissedCalled || (this.isAdDismissedCalled = !0, e == null || e());
68
- };
69
- }
70
- wrapAdViewed(e) {
71
- return () => {
72
- this.adsHasResponse = !0, this.isAdViewedCalled || (this.isAdViewedCalled = !0, e == null || e());
73
- };
74
- }
75
- wrapAfterAd(e) {
76
- return () => {
77
- this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.isAfterAdCalled || (this.isAfterAdCalled = !0, e == null || e());
78
- };
79
- }
80
- wrapAdBreakDone(e) {
81
- return (i) => {
82
- var n, r, o, s, a, d;
83
- switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
84
- provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
85
- breakType: i.breakType,
86
- breakName: (o = i.breakName) != null ? o : "",
87
- breakFormat: i.breakFormat,
88
- breakStatus: i.breakStatus
89
- }), i.breakStatus) {
90
- case "viewed":
91
- case "ignored":
92
- case "dismissed":
93
- case "error": {
94
- e == null || e(i), (s = this.adIsShowingCallback) == null || s.call(this, !1), (a = this.continueCallback) == null || a.call(this, [!1, i]);
95
- break;
96
- }
97
- default: {
98
- (d = this.continueCallback) == null || d.call(this, [!0, i]);
99
- break;
100
- }
101
- }
102
- };
103
- }
104
- /**
105
- * Manages ad break execution and continuation logic
106
- * @param adsProvider The ad provider implementation
107
- * @param clientParams Configuration for the ad break
108
- * @returns Promise resolving with continuation flag and last placement info
109
- */
110
- async callAdBreakAndContinue(e, i, n, r) {
111
- return this.currentProvider = e, this.currentClientParams = i, this.adsHasResponse = !1, new Promise((o) => {
112
- this.continueCallback = o, this.adIsShowingCallback = r;
113
- let s;
114
- switch (i.type) {
115
- case "preroll": {
116
- s = {
117
- type: i.type,
118
- adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
119
- };
120
- break;
121
- }
122
- case "reward": {
123
- s = {
124
- name: i.name,
125
- type: i.type,
126
- beforeAd: this.wrapBeforeAd(i.beforeAd),
127
- beforeReward: this.wrapBeforeReward(i.beforeReward),
128
- adDismissed: this.wrapAdDismissed(i.adDismissed),
129
- adViewed: this.wrapAdViewed(i.adViewed),
130
- afterAd: this.wrapAfterAd(i.afterAd),
131
- adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
132
- };
133
- break;
134
- }
135
- default: {
136
- s = {
137
- name: i.name,
138
- type: i.type,
139
- beforeAd: this.wrapBeforeAd(i.beforeAd),
140
- afterAd: this.wrapAfterAd(i.afterAd),
141
- adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
142
- };
143
- break;
144
- }
145
- }
146
- window.setTimeout(() => {
147
- var a, d, l, u, h;
148
- this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
149
- type: i.type,
150
- provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
151
- }), (u = this.continueCallback) == null || u.call(this, [!0, {
152
- breakType: i.type,
153
- breakName: i.type === "preroll" ? "" : (l = i.name) != null ? l : "",
154
- breakFormat: i.type === "reward" ? "reward" : "interstitial",
155
- breakStatus: "timeout"
156
- }]), (h = this.adIsShowingCallback) == null || h.call(this, !1));
157
- }, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), e.adBreak(s, n), window.JoliTesterBridge && console.log("joli-fullscreen-ad-show");
158
- });
159
- }
160
- }
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
- }
164
- function $i(t) {
165
- var e = ji(t, "string");
166
- return typeof e == "symbol" ? e : e + "";
167
- }
168
- function ji(t, e) {
169
- if (typeof t != "object" || !t)
170
- return t;
171
- var i = t[Symbol.toPrimitive];
172
- if (i !== void 0) {
173
- var n = i.call(t, e);
174
- if (typeof n != "object")
175
- return n;
176
- throw new TypeError("@@toPrimitive must return a primitive value.");
177
- }
178
- return (e === "string" ? String : Number)(t);
179
- }
180
- class Ui {
181
- constructor(e) {
182
- Re(this, "context", void 0), Re(this, "adBreakIsShowing", !1), Re(this, "reportPageJumpOut", () => {
183
- this.context.track("AdBreakJumpOut", {
184
- context: "AdsActionDetection"
185
- });
186
- }), Re(this, "reportPageHide", () => {
187
- this.context.track("AdBreakHide", {
188
- context: "AdsActionDetection"
189
- });
190
- }), this.context = e, window.addEventListener("visibilitychange", () => {
191
- document.hidden && this.adBreakIsShowing && this.reportPageHide();
192
- }), window.addEventListener("beforeunload", (i) => {
193
- this.adBreakIsShowing && this.reportPageJumpOut();
194
- });
195
- }
196
- }
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, {
12
+ import { options as ue, Component as Oi, isValidElement as Ti } from "preact";
13
+ import { useRef as Ci, useLayoutEffect as Di, useEffect as Ge, useMemo as Li, useState as qt, useCallback as Pi, render as re, createRef as At } from "preact/compat";
14
+ var Kt = Object.defineProperty, Ni = Object.defineProperties, Mi = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, ji = Object.prototype.propertyIsEnumerable, St = (t, e, i) => e in t ? Kt(t, e, {
198
15
  enumerable: !0,
199
16
  configurable: !0,
200
17
  writable: !0,
201
18
  value: i
202
- }) : t[e] = i, zi = (t, e) => {
19
+ }) : t[e] = i, Ui = (t, e) => {
203
20
  for (var i in e || (e = {}))
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]);
21
+ $i.call(e, i) && St(t, i, e[i]);
22
+ if (mt)
23
+ for (var i of mt(e))
24
+ ji.call(e, i) && St(t, i, e[i]);
208
25
  return t;
209
- }, qi = (t, e) => Bi(t, Fi(e)), Ki = (t, e) => {
26
+ }, Bi = (t, e) => Ni(t, Mi(e)), Fi = (t, e) => {
210
27
  for (var i in e)
211
- qt(t, i, {
28
+ Kt(t, i, {
212
29
  get: e[i],
213
30
  enumerable: !0
214
31
  });
215
- }, Kt = (t, e, i, n) => {
32
+ }, Ht = (t, e, i, n) => {
216
33
  for (var r = e, o = t.length - 1, s; o >= 0; o--)
217
34
  (s = t[o]) && (r = s(r) || r);
218
35
  return r;
219
- }, Hi = (t, e, i) => new Promise((n, r) => {
36
+ }, Vi = (t, e, i) => new Promise((n, r) => {
220
37
  var o = (d) => {
221
38
  try {
222
39
  a(i.next(d));
@@ -261,26 +78,26 @@ if (typeof window != "undefined" && !window.AbortController) {
261
78
  n.call(this, i);
262
79
  }, window.AbortController = t, window.AbortSignal = e;
263
80
  }
264
- function Wi(t) {
81
+ function Gi(t) {
265
82
  return new Promise((e) => {
266
83
  setTimeout(() => {
267
84
  e();
268
85
  }, t);
269
86
  });
270
87
  }
271
- function Ji(t) {
88
+ function zi(t) {
272
89
  return typeof t == "string";
273
90
  }
274
- function Yi(t) {
91
+ function qi(t) {
275
92
  return typeof t == "undefined";
276
93
  }
277
- function Xi(t) {
278
- return Yi(t) || t === null;
94
+ function Ki(t) {
95
+ return qi(t) || t === null;
279
96
  }
280
- function Qi(t) {
97
+ function Hi(t) {
281
98
  return typeof t == "function";
282
99
  }
283
- function Ht(t) {
100
+ function Wt(t) {
284
101
  let e = t, i = null, n = function() {
285
102
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
286
103
  o[s] = arguments[s];
@@ -288,14 +105,14 @@ function Ht(t) {
288
105
  };
289
106
  return n.prototype = e.prototype, n;
290
107
  }
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 || {});
108
+ var Wi = ((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))(Wi || {});
292
109
  function ye(t) {
293
110
  return function() {
294
111
  var e, i;
295
112
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
296
113
  };
297
114
  }
298
- var en = {
115
+ var Ji = {
299
116
  log: ye("log"),
300
117
  warn: ye("warn"),
301
118
  info: ye("info"),
@@ -303,14 +120,14 @@ var en = {
303
120
  debug: ye("debug")
304
121
  };
305
122
  Object.assign(globalThis, {
306
- logger: en
123
+ logger: Ji
307
124
  });
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) {
125
+ var Et = Symbol.for("Jolibox.canIUseMap"), Yi = {};
126
+ globalThis[Et] || (globalThis[Et] = Yi);
127
+ var kt = Symbol.for("Jolibox.canIUseMap.native"), Xi = {};
128
+ globalThis[kt] || (globalThis[kt] = Xi);
129
+ var Jt = ((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))(Jt || {}), Yt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Yt || {}), Xt = ((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))(Xt || {}), It = ["name", "params"], Qi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Zi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
130
+ function De(t, e) {
314
131
  return e.map((i) => {
315
132
  if (i === "params" && t[i]) {
316
133
  let n = t[i];
@@ -319,18 +136,18 @@ function Ce(t, e) {
319
136
  return t[i];
320
137
  });
321
138
  }
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), {
139
+ function en(t) {
140
+ let e = t.location ? De(t.location, It) : null, i = t.target ? De(t.target, It) : null;
141
+ return De(Bi(Ui({}, t), {
325
142
  location: e,
326
143
  target: i
327
- }), rn);
144
+ }), Qi);
328
145
  }
329
- function an(t) {
330
- let e = t.events.map((n) => sn(n)), i = Ce(t.device, on);
146
+ function tn(t) {
147
+ let e = t.events.map((n) => en(n)), i = De(t.device, Zi);
331
148
  return [t.protocolVersion, e, i, t.project];
332
149
  }
333
- function dn() {
150
+ function nn() {
334
151
  try {
335
152
  if (window.__joliboxLocalStorage__)
336
153
  return window.__joliboxLocalStorage__;
@@ -351,15 +168,16 @@ function dn() {
351
168
  return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
352
169
  }
353
170
  }
354
- dn();
171
+ nn();
172
+ var tt = () => !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
355
173
  navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS"), navigator.userAgent.includes("Android"), navigator.userAgent.includes("Mac"), navigator.userAgent.includes("FB_IAB"), !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
356
- var tt = class it {
174
+ var it = class nt {
357
175
  constructor(e) {
358
- this.element = e, this.next = it.Undefined, this.prev = it.Undefined;
176
+ this.element = e, this.next = nt.Undefined, this.prev = nt.Undefined;
359
177
  }
360
178
  };
361
- tt.Undefined = new tt(void 0);
362
- var x = tt, ln = class {
179
+ it.Undefined = new it(void 0);
180
+ var x = it, rn = class {
363
181
  constructor() {
364
182
  this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
365
183
  }
@@ -425,9 +243,9 @@ var x = tt, ln = class {
425
243
  for (; t !== x.Undefined; )
426
244
  yield t.element, t = t.next;
427
245
  }
428
- }, un = 0, pe = class {
246
+ }, on = 0, pe = class {
429
247
  constructor(t) {
430
- this.value = t, this.id = un++;
248
+ this.value = t, this.id = on++;
431
249
  }
432
250
  }, me = class {
433
251
  constructor(e) {
@@ -480,7 +298,7 @@ var x = tt, ln = class {
480
298
  hasListeners() {
481
299
  return this._size > 0;
482
300
  }
483
- }, cn = class {
301
+ }, sn = class {
484
302
  constructor() {
485
303
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
486
304
  }
@@ -508,7 +326,7 @@ var x = tt, ln = class {
508
326
  let i = this.listeners.get(e), n = this.cachedEventQueue.get(e);
509
327
  for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
510
328
  o[s - 1] = arguments[s];
511
- n || (n = new ln(), this.cachedEventQueue.set(e, n)), n.push({
329
+ n || (n = new rn(), this.cachedEventQueue.set(e, n)), n.push({
512
330
  args: o
513
331
  }), i && i.fire({
514
332
  event: e,
@@ -522,20 +340,20 @@ var x = tt, ln = class {
522
340
  };
523
341
  this.on(e, r, !1);
524
342
  }
525
- }, nt = {};
526
- Ki(nt, {
527
- None: () => hn,
528
- filter: () => vn,
529
- once: () => Xt,
530
- toPromise: () => fn
343
+ }, rt = {};
344
+ Fi(rt, {
345
+ None: () => an,
346
+ filter: () => ln,
347
+ once: () => Qt,
348
+ toPromise: () => dn
531
349
  });
532
- var hn = () => (console.log("[Jolibox SDK] None Event"), () => {
350
+ var an = () => (console.log("[Jolibox SDK] None Event"), () => {
533
351
  console.log("[Jolibox SDK] None Event dispose");
534
352
  });
535
- function fn(t) {
536
- return new Promise((e) => Xt(t)(e));
353
+ function dn(t) {
354
+ return new Promise((e) => Qt(t)(e));
537
355
  }
538
- function Xt(t) {
356
+ function Qt(t) {
539
357
  return function(e) {
540
358
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
541
359
  return t((r) => {
@@ -544,7 +362,7 @@ function Xt(t) {
544
362
  }, null);
545
363
  };
546
364
  }
547
- function vn(t, e) {
365
+ function ln(t, e) {
548
366
  return ((i) => {
549
367
  let n = {
550
368
  onWillAddFirstListener() {
@@ -557,37 +375,37 @@ function vn(t, e) {
557
375
  return t((r) => e(r) && i.call(n, r), null);
558
376
  });
559
377
  }
560
- var He = Symbol.for("Jolibox.hostEmitter"), gn = () => {
561
- let t = new cn();
562
- return globalThis[He] || (globalThis[He] = {
378
+ var We = Symbol.for("Jolibox.hostEmitter"), un = () => {
379
+ let t = new sn();
380
+ return globalThis[We] || (globalThis[We] = {
563
381
  on: t.on.bind(t),
564
382
  off: t.off.bind(t),
565
383
  emit: t.emit.bind(t),
566
384
  once: t.once.bind(t)
567
- }), globalThis[He];
385
+ }), globalThis[We];
568
386
  };
569
- gn();
570
- function yn(t, e) {
387
+ un();
388
+ function cn(t, e) {
571
389
  let i = Math.min(t.length, e.length);
572
390
  for (let n = 0; n < i; n++)
573
- pn(t[n], e[n]);
391
+ hn(t[n], e[n]);
574
392
  }
575
- function pn(t, e) {
576
- if (Ji(e)) {
393
+ function hn(t, e) {
394
+ if (zi(e)) {
577
395
  if (typeof t !== e)
578
396
  throw new Error(`argument does not match constraint: typeof ${e}`);
579
- } else if (Qi(e)) {
397
+ } else if (Hi(e)) {
580
398
  try {
581
399
  if (t instanceof e)
582
400
  return;
583
401
  } catch (i) {
584
402
  }
585
- if (!Xi(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
403
+ if (!Ki(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
586
404
  return;
587
405
  throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
588
406
  }
589
407
  }
590
- var rt = class {
408
+ var ot = class {
591
409
  constructor() {
592
410
  this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new me(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
593
411
  }
@@ -602,7 +420,7 @@ var rt = class {
602
420
  e.handler = function() {
603
421
  for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
604
422
  s[a] = arguments[a];
605
- return yn(s, n), r(...s);
423
+ return cn(s, n), r(...s);
606
424
  };
607
425
  }
608
426
  let {
@@ -622,19 +440,19 @@ var rt = class {
622
440
  return e;
623
441
  }
624
442
  };
625
- rt = Kt([Ht], rt);
626
- var It = class {
443
+ ot = Ht([Wt], ot);
444
+ var xt = class {
627
445
  constructor() {
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;
446
+ this._onWillExecuteCommand = new me(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new me(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new ot(), this._starActivation = null;
629
447
  }
630
448
  _activateStar() {
631
- return this._starActivation || (this._starActivation = Wi(3e4)), this._starActivation;
449
+ return this._starActivation || (this._starActivation = Gi(3e4)), this._starActivation;
632
450
  }
633
451
  executeCommand(e) {
634
452
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
635
453
  n[r - 1] = arguments[r];
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));
454
+ return Vi(this, null, function* () {
455
+ return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), rt.toPromise(rt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
638
456
  });
639
457
  }
640
458
  executeCommandThowErr(e) {
@@ -680,15 +498,172 @@ var It = class {
680
498
  }
681
499
  }
682
500
  };
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;
501
+ xt = Ht([Wt], xt);
502
+ function U(t, e, i) {
503
+ return (e = fn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
504
+ }
505
+ function fn(t) {
506
+ var e = vn(t, "string");
507
+ return typeof e == "symbol" ? e : e + "";
508
+ }
509
+ function vn(t, e) {
510
+ if (typeof t != "object" || !t)
511
+ return t;
512
+ var i = t[Symbol.toPrimitive];
513
+ if (i !== void 0) {
514
+ var n = i.call(t, e);
515
+ if (typeof n != "object")
516
+ return n;
517
+ throw new TypeError("@@toPrimitive must return a primitive value.");
518
+ }
519
+ return (e === "string" ? String : Number)(t);
520
+ }
521
+ class gn {
522
+ constructor(e) {
523
+ U(this, "context", void 0), U(this, "continueCallback", void 0), U(this, "adIsShowingCallback", void 0), U(this, "isBeforeAdCalled", !1), U(this, "isBeforeRewardCalled", !1), U(this, "isAdDismissedCalled", !1), U(this, "isAdViewedCalled", !1), U(this, "isAfterAdCalled", !1), U(this, "currentProvider", void 0), U(this, "currentClientParams", void 0), U(this, "adsHasResponse", !1), U(this, "videoChecker", window.document.createElement("video")), U(this, "contextInfo", void 0), U(this, "wrapShowAdFn", (i) => () => {
524
+ var r, o, s;
525
+ this.adsHasResponse = !0;
526
+ let n = !1;
527
+ this.videoChecker.play().catch(() => {
528
+ n = !1;
529
+ }), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
530
+ userEvent: n
531
+ }, this.paramsToTrack)), tt() && this.context.track("mmp_ad_impression", {
532
+ ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
533
+ ad_format: "rewarded",
534
+ module: "game",
535
+ game_id: this.contextInfo.objectId
536
+ }), (s = this.adIsShowingCallback) == null || s.call(this, !0), i();
537
+ }), this.context = e, this.contextInfo = e.getContextInfo();
538
+ }
539
+ get paramsToTrack() {
540
+ var e, i, n, r, o, s;
541
+ return {
542
+ provider: (i = (e = this.currentProvider) == null ? void 0 : e.name) != null ? i : null,
543
+ type: (n = this.currentClientParams) == null ? void 0 : n.type,
544
+ name: ((r = this.currentClientParams) == null ? void 0 : r.type) === "preroll" ? null : (s = (o = this.currentClientParams) == null ? void 0 : o.name) != null ? s : ""
545
+ };
546
+ }
547
+ wrapBeforeAd(e) {
548
+ return () => {
549
+ var i, n, r, o;
550
+ this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.isBeforeAdCalled || (this.isBeforeAdCalled = !0, e == null || e(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), tt() && this.context.track("mmp_ad_impression", {
551
+ ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
552
+ ad_format: "interstitial",
553
+ module: "game",
554
+ game_id: this.contextInfo.objectId
555
+ })));
556
+ };
557
+ }
558
+ wrapBeforeReward(e) {
559
+ return (i) => {
560
+ this.adsHasResponse = !0, this.isBeforeRewardCalled ? this.wrapShowAdFn(i)() : (this.isBeforeRewardCalled = !0, e == null || e(this.wrapShowAdFn(i)));
561
+ };
562
+ }
563
+ wrapAdDismissed(e) {
564
+ return () => {
565
+ this.adsHasResponse = !0, this.isAdDismissedCalled || (this.isAdDismissedCalled = !0, e == null || e());
566
+ };
567
+ }
568
+ wrapAdViewed(e) {
569
+ return () => {
570
+ this.adsHasResponse = !0, this.isAdViewedCalled || (this.isAdViewedCalled = !0, e == null || e());
571
+ };
572
+ }
573
+ wrapAfterAd(e) {
574
+ return () => {
575
+ this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.isAfterAdCalled || (this.isAfterAdCalled = !0, e == null || e());
576
+ };
577
+ }
578
+ wrapAdBreakDone(e) {
579
+ return (i) => {
580
+ var n, r, o, s, a, d;
581
+ switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
582
+ provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
583
+ breakType: i.breakType,
584
+ breakName: (o = i.breakName) != null ? o : "",
585
+ breakFormat: i.breakFormat,
586
+ breakStatus: i.breakStatus
587
+ }), i.breakStatus) {
588
+ case "viewed":
589
+ case "ignored":
590
+ case "dismissed":
591
+ case "error": {
592
+ e == null || e(i), (s = this.adIsShowingCallback) == null || s.call(this, !1), (a = this.continueCallback) == null || a.call(this, [!1, i]);
593
+ break;
594
+ }
595
+ default: {
596
+ (d = this.continueCallback) == null || d.call(this, [!0, i]);
597
+ break;
598
+ }
599
+ }
600
+ };
601
+ }
602
+ /**
603
+ * Manages ad break execution and continuation logic
604
+ * @param adsProvider The ad provider implementation
605
+ * @param clientParams Configuration for the ad break
606
+ * @returns Promise resolving with continuation flag and last placement info
607
+ */
608
+ async callAdBreakAndContinue(e, i, n, r) {
609
+ return this.currentProvider = e, this.currentClientParams = i, this.adsHasResponse = !1, new Promise((o) => {
610
+ this.continueCallback = o, this.adIsShowingCallback = r;
611
+ let s;
612
+ switch (i.type) {
613
+ case "preroll": {
614
+ s = {
615
+ type: i.type,
616
+ adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
617
+ };
618
+ break;
619
+ }
620
+ case "reward": {
621
+ s = {
622
+ name: i.name,
623
+ type: i.type,
624
+ beforeAd: this.wrapBeforeAd(i.beforeAd),
625
+ beforeReward: this.wrapBeforeReward(i.beforeReward),
626
+ adDismissed: this.wrapAdDismissed(i.adDismissed),
627
+ adViewed: this.wrapAdViewed(i.adViewed),
628
+ afterAd: this.wrapAfterAd(i.afterAd),
629
+ adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
630
+ };
631
+ break;
632
+ }
633
+ default: {
634
+ s = {
635
+ name: i.name,
636
+ type: i.type,
637
+ beforeAd: this.wrapBeforeAd(i.beforeAd),
638
+ afterAd: this.wrapAfterAd(i.afterAd),
639
+ adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
640
+ };
641
+ break;
642
+ }
643
+ }
644
+ window.setTimeout(() => {
645
+ var a, d, l, u, h;
646
+ this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
647
+ type: i.type,
648
+ provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
649
+ }), (u = this.continueCallback) == null || u.call(this, [!0, {
650
+ breakType: i.type,
651
+ breakName: i.type === "preroll" ? "" : (l = i.name) != null ? l : "",
652
+ breakFormat: i.type === "reward" ? "reward" : "interstitial",
653
+ breakStatus: "timeout"
654
+ }]), (h = this.adIsShowingCallback) == null || h.call(this, !1));
655
+ }, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), e.adBreak(s, n), window.JoliTesterBridge && console.log("joli-fullscreen-ad-show");
656
+ });
657
+ }
658
+ }
659
+ function Re(t, e, i) {
660
+ return (e = yn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
686
661
  }
687
- function wn(t) {
688
- var e = bn(t, "string");
662
+ function yn(t) {
663
+ var e = pn(t, "string");
689
664
  return typeof e == "symbol" ? e : e + "";
690
665
  }
691
- function bn(t, e) {
666
+ function pn(t, e) {
692
667
  if (typeof t != "object" || !t)
693
668
  return t;
694
669
  var i = t[Symbol.toPrimitive];
@@ -700,10 +675,46 @@ function bn(t, e) {
700
675
  }
701
676
  return (e === "string" ? String : Number)(t);
702
677
  }
703
- class Qt {
678
+ class wn {
679
+ constructor(e) {
680
+ Re(this, "context", void 0), Re(this, "adBreakIsShowing", !1), Re(this, "reportPageJumpOut", () => {
681
+ this.context.track("AdBreakJumpOut", {
682
+ context: "AdsActionDetection"
683
+ });
684
+ }), Re(this, "reportPageHide", () => {
685
+ this.context.track("AdBreakHide", {
686
+ context: "AdsActionDetection"
687
+ });
688
+ }), this.context = e, window.addEventListener("visibilitychange", () => {
689
+ document.hidden && this.adBreakIsShowing && this.reportPageHide();
690
+ }), window.addEventListener("beforeunload", (i) => {
691
+ this.adBreakIsShowing && this.reportPageJumpOut();
692
+ });
693
+ }
694
+ }
695
+ function Je(t, e, i) {
696
+ return (e = bn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
697
+ }
698
+ function bn(t) {
699
+ var e = _n(t, "string");
700
+ return typeof e == "symbol" ? e : e + "";
701
+ }
702
+ function _n(t, e) {
703
+ if (typeof t != "object" || !t)
704
+ return t;
705
+ var i = t[Symbol.toPrimitive];
706
+ if (i !== void 0) {
707
+ var n = i.call(t, e);
708
+ if (typeof n != "object")
709
+ return n;
710
+ throw new TypeError("@@toPrimitive must return a primitive value.");
711
+ }
712
+ return (e === "string" ? String : Number)(t);
713
+ }
714
+ class Zt {
704
715
  constructor(e) {
705
716
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
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();
717
+ Je(this, "context", void 0), Je(this, "placement", "GAME"), Je(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
707
718
  }
708
719
  getLocation() {
709
720
  const e = new URLSearchParams(window.location.search), i = {};
@@ -717,7 +728,7 @@ class Qt {
717
728
  getDevice() {
718
729
  var e, i, n, r;
719
730
  return {
720
- platform: (e = this.contextInfo.platform) != null ? e : Yt.WebSDK,
731
+ platform: (e = this.contextInfo.platform) != null ? e : Xt.WebSDK,
721
732
  os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
722
733
  appVersion: "1.0.0",
723
734
  // mock
@@ -736,7 +747,7 @@ class Qt {
736
747
  protocolVersion: "1.0.0",
737
748
  events: [{
738
749
  name: e,
739
- type: Wt.System,
750
+ type: Jt.System,
740
751
  location: this.getLocation(),
741
752
  target: null,
742
753
  extra: i,
@@ -744,19 +755,19 @@ class Qt {
744
755
  userId: (o = this.contextInfo.userId) != null ? o : null
745
756
  }],
746
757
  device: this.getDevice(),
747
- project: Jt.WebSDK
758
+ project: Yt.WebSDK
748
759
  };
749
- return an(r);
760
+ return tn(r);
750
761
  }
751
762
  }
752
763
  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;
764
+ return (e = An(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
754
765
  }
755
- function _n(t) {
756
- var e = An(t, "string");
766
+ function An(t) {
767
+ var e = mn(t, "string");
757
768
  return typeof e == "symbol" ? e : e + "";
758
769
  }
759
- function An(t, e) {
770
+ function mn(t, e) {
760
771
  if (typeof t != "object" || !t)
761
772
  return t;
762
773
  var i = t[Symbol.toPrimitive];
@@ -768,7 +779,7 @@ function An(t, e) {
768
779
  }
769
780
  return (e === "string" ? String : Number)(t);
770
781
  }
771
- class mn {
782
+ class Sn {
772
783
  constructor(e) {
773
784
  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
785
  }
@@ -795,13 +806,13 @@ class mn {
795
806
  }
796
807
  }
797
808
  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;
809
+ return (e = En(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
799
810
  }
800
- function Sn(t) {
801
- var e = En(t, "string");
811
+ function En(t) {
812
+ var e = kn(t, "string");
802
813
  return typeof e == "symbol" ? e : e + "";
803
814
  }
804
- function En(t, e) {
815
+ function kn(t, e) {
805
816
  if (typeof t != "object" || !t)
806
817
  return t;
807
818
  var i = t[Symbol.toPrimitive];
@@ -813,7 +824,7 @@ function En(t, e) {
813
824
  }
814
825
  return (e === "string" ? String : Number)(t);
815
826
  }
816
- class kn {
827
+ class In {
817
828
  /**
818
829
  * Internal constructor, should not be called directly
819
830
  */
@@ -824,7 +835,7 @@ class kn {
824
835
  }), X(this, "adConfig", (n) => {
825
836
  const s = n, {
826
837
  onReady: r
827
- } = s, o = bt(s, [
838
+ } = s, o = _t(s, [
828
839
  "onReady"
829
840
  ]);
830
841
  this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
@@ -891,18 +902,18 @@ class kn {
891
902
  }
892
903
  }
893
904
  }
894
- function In(t) {
905
+ function xn(t) {
895
906
  if (t.sheet)
896
907
  return t.sheet;
897
908
  for (var e = 0; e < document.styleSheets.length; e++)
898
909
  if (document.styleSheets[e].ownerNode === t)
899
910
  return document.styleSheets[e];
900
911
  }
901
- function xn(t) {
912
+ function Rn(t) {
902
913
  var e = document.createElement("style");
903
914
  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
915
  }
905
- var Rn = /* @__PURE__ */ function() {
916
+ var On = /* @__PURE__ */ function() {
906
917
  function t(i) {
907
918
  var n = this;
908
919
  this._insertTag = function(r) {
@@ -914,10 +925,10 @@ var Rn = /* @__PURE__ */ function() {
914
925
  return e.hydrate = function(n) {
915
926
  n.forEach(this._insertTag);
916
927
  }, e.insert = function(n) {
917
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(xn(this));
928
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Rn(this));
918
929
  var r = this.tags[this.tags.length - 1];
919
930
  if (this.isSpeedy) {
920
- var o = In(r);
931
+ var o = xn(r);
921
932
  try {
922
933
  o.insertRule(n, o.cssRules.length);
923
934
  } catch (s) {
@@ -931,20 +942,20 @@ var Rn = /* @__PURE__ */ function() {
931
942
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
932
943
  }), this.tags = [], this.ctr = 0;
933
944
  }, t;
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) {
945
+ }(), M = "-ms-", Ue = "-moz-", A = "-webkit-", ei = "comm", ft = "rule", vt = "decl", Tn = "@import", ti = "@keyframes", Cn = "@layer", Dn = Math.abs, ze = String.fromCharCode, Ln = Object.assign;
946
+ function Pn(t, e) {
936
947
  return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
937
948
  }
938
- function ti(t) {
949
+ function ii(t) {
939
950
  return t.trim();
940
951
  }
941
- function Pn(t, e) {
952
+ function Nn(t, e) {
942
953
  return (t = e.exec(t)) ? t[0] : t;
943
954
  }
944
955
  function m(t, e, i) {
945
956
  return t.replace(e, i);
946
957
  }
947
- function ot(t, e) {
958
+ function st(t, e) {
948
959
  return t.indexOf(e);
949
960
  }
950
961
  function D(t, e) {
@@ -956,36 +967,36 @@ function Se(t, e, i) {
956
967
  function J(t) {
957
968
  return t.length;
958
969
  }
959
- function vt(t) {
970
+ function gt(t) {
960
971
  return t.length;
961
972
  }
962
973
  function Te(t, e) {
963
974
  return e.push(t), t;
964
975
  }
965
- function Nn(t, e) {
976
+ function Mn(t, e) {
966
977
  return t.map(e).join("");
967
978
  }
968
- var ze = 1, ce = 1, ii = 0, B = 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: "" };
979
+ var qe = 1, ce = 1, ni = 0, F = 0, R = 0, he = "";
980
+ function Ke(t, e, i, n, r, o, s) {
981
+ return { value: t, root: e, parent: i, type: n, props: r, children: o, line: qe, column: ce, length: s, return: "" };
971
982
  }
972
983
  function we(t, e) {
973
- return Dn(qe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
984
+ return Ln(Ke("", null, null, "", null, null, 0), t, { length: -t.length }, e);
974
985
  }
975
- function Mn() {
986
+ function $n() {
976
987
  return R;
977
988
  }
978
- function $n() {
979
- return R = B > 0 ? D(he, --B) : 0, ce--, R === 10 && (ce = 1, ze--), R;
989
+ function jn() {
990
+ return R = F > 0 ? D(he, --F) : 0, ce--, R === 10 && (ce = 1, qe--), R;
980
991
  }
981
992
  function G() {
982
- return R = B < ii ? D(he, B++) : 0, ce++, R === 10 && (ce = 1, ze++), R;
993
+ return R = F < ni ? D(he, F++) : 0, ce++, R === 10 && (ce = 1, qe++), R;
983
994
  }
984
995
  function Y() {
985
- return D(he, B);
996
+ return D(he, F);
986
997
  }
987
- function De() {
988
- return B;
998
+ function Le() {
999
+ return F;
989
1000
  }
990
1001
  function ke(t, e) {
991
1002
  return Se(he, t, e);
@@ -1022,84 +1033,84 @@ function Ee(t) {
1022
1033
  }
1023
1034
  return 0;
1024
1035
  }
1025
- function ni(t) {
1026
- return ze = ce = 1, ii = J(he = t), B = 0, [];
1027
- }
1028
1036
  function ri(t) {
1037
+ return qe = ce = 1, ni = J(he = t), F = 0, [];
1038
+ }
1039
+ function oi(t) {
1029
1040
  return he = "", t;
1030
1041
  }
1031
- function Le(t) {
1032
- return ti(ke(B - 1, st(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1042
+ function Pe(t) {
1043
+ return ii(ke(F - 1, at(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1033
1044
  }
1034
- function jn(t) {
1045
+ function Un(t) {
1035
1046
  for (; (R = Y()) && R < 33; )
1036
1047
  G();
1037
1048
  return Ee(t) > 2 || Ee(R) > 3 ? "" : " ";
1038
1049
  }
1039
- function Un(t, e) {
1050
+ function Bn(t, e) {
1040
1051
  for (; --e && G() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
1041
1052
  ;
1042
- return ke(t, De() + (e < 6 && Y() == 32 && G() == 32));
1053
+ return ke(t, Le() + (e < 6 && Y() == 32 && G() == 32));
1043
1054
  }
1044
- function st(t) {
1055
+ function at(t) {
1045
1056
  for (; G(); )
1046
1057
  switch (R) {
1047
1058
  case t:
1048
- return B;
1059
+ return F;
1049
1060
  case 34:
1050
1061
  case 39:
1051
- t !== 34 && t !== 39 && st(R);
1062
+ t !== 34 && t !== 39 && at(R);
1052
1063
  break;
1053
1064
  case 40:
1054
- t === 41 && st(t);
1065
+ t === 41 && at(t);
1055
1066
  break;
1056
1067
  case 92:
1057
1068
  G();
1058
1069
  break;
1059
1070
  }
1060
- return B;
1071
+ return F;
1061
1072
  }
1062
- function Bn(t, e) {
1073
+ function Fn(t, e) {
1063
1074
  for (; G() && t + R !== 57; )
1064
1075
  if (t + R === 84 && Y() === 47)
1065
1076
  break;
1066
- return "/*" + ke(e, B - 1) + "*" + Ge(t === 47 ? t : G());
1077
+ return "/*" + ke(e, F - 1) + "*" + ze(t === 47 ? t : G());
1067
1078
  }
1068
- function Fn(t) {
1079
+ function Vn(t) {
1069
1080
  for (; !Ee(Y()); )
1070
1081
  G();
1071
- return ke(t, B);
1082
+ return ke(t, F);
1072
1083
  }
1073
- function Vn(t) {
1074
- return ri(Pe("", null, null, null, [""], t = ni(t), 0, [0], t));
1084
+ function Gn(t) {
1085
+ return oi(Ne("", null, null, null, [""], t = ri(t), 0, [0], t));
1075
1086
  }
1076
- function Pe(t, e, i, n, r, o, s, a, d) {
1087
+ function Ne(t, e, i, n, r, o, s, a, d) {
1077
1088
  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
1089
  switch (g = p, p = G()) {
1079
1090
  case 40:
1080
1091
  if (g != 108 && D(E, h - 1) == 58) {
1081
- ot(E += m(Le(p), "&", "&\f"), "&\f") != -1 && (y = -1);
1092
+ st(E += m(Pe(p), "&", "&\f"), "&\f") != -1 && (y = -1);
1082
1093
  break;
1083
1094
  }
1084
1095
  case 34:
1085
1096
  case 39:
1086
1097
  case 91:
1087
- E += Le(p);
1098
+ E += Pe(p);
1088
1099
  break;
1089
1100
  case 9:
1090
1101
  case 10:
1091
1102
  case 13:
1092
1103
  case 32:
1093
- E += jn(g);
1104
+ E += Un(g);
1094
1105
  break;
1095
1106
  case 92:
1096
- E += Un(De() - 1, 7);
1107
+ E += Bn(Le() - 1, 7);
1097
1108
  continue;
1098
1109
  case 47:
1099
1110
  switch (Y()) {
1100
1111
  case 42:
1101
1112
  case 47:
1102
- Te(Gn(Bn(G(), De()), e, i), d);
1113
+ Te(zn(Fn(G(), Le()), e, i), d);
1103
1114
  break;
1104
1115
  default:
1105
1116
  E += "/";
@@ -1115,24 +1126,24 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1115
1126
  case 125:
1116
1127
  w = 0;
1117
1128
  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);
1129
+ y == -1 && (E = m(E, /\f/g, "")), f > 0 && J(E) - h && Te(f > 32 ? Ot(E + ";", n, i, h - 1) : Ot(m(E, " ", "") + ";", n, i, h - 2), d);
1119
1130
  break;
1120
1131
  case 59:
1121
1132
  E += ";";
1122
1133
  default:
1123
- if (Te(z = xt(E, e, i, l, u, r, a, b, j = [], P = [], h), o), p === 123)
1134
+ if (Te(z = Rt(E, e, i, l, u, r, a, b, j = [], P = [], h), o), p === 123)
1124
1135
  if (u === 0)
1125
- Pe(E, e, z, z, j, o, h, a, P);
1136
+ Ne(E, e, z, z, j, o, h, a, P);
1126
1137
  else
1127
1138
  switch (c === 99 && D(E, 3) === 110 ? 100 : c) {
1128
1139
  case 100:
1129
1140
  case 108:
1130
1141
  case 109:
1131
1142
  case 115:
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);
1143
+ Ne(t, z, z, n && Te(Rt(t, z, z, 0, 0, r, a, b, r, j = [], h), P), r, P, h, a, n ? j : P);
1133
1144
  break;
1134
1145
  default:
1135
- Pe(E, z, z, z, [""], P, 0, a, P);
1146
+ Ne(E, z, z, z, [""], P, 0, a, P);
1136
1147
  }
1137
1148
  }
1138
1149
  l = u = f = 0, v = y = 1, b = E = "", h = s;
@@ -1143,10 +1154,10 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1143
1154
  if (v < 1) {
1144
1155
  if (p == 123)
1145
1156
  --v;
1146
- else if (p == 125 && v++ == 0 && $n() == 125)
1157
+ else if (p == 125 && v++ == 0 && jn() == 125)
1147
1158
  continue;
1148
1159
  }
1149
- switch (E += Ge(p), p * v) {
1160
+ switch (E += ze(p), p * v) {
1150
1161
  case 38:
1151
1162
  y = u > 0 ? 1 : (E += "\f", -1);
1152
1163
  break;
@@ -1154,7 +1165,7 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1154
1165
  a[l++] = (J(E) - 1) * y, y = 1;
1155
1166
  break;
1156
1167
  case 64:
1157
- Y() === 45 && (E += Le(G())), c = Y(), u = h = J(b = E += Fn(De())), p++;
1168
+ Y() === 45 && (E += Pe(G())), c = Y(), u = h = J(b = E += Vn(Le())), p++;
1158
1169
  break;
1159
1170
  case 45:
1160
1171
  g === 45 && J(E) == 2 && (v = 0);
@@ -1162,72 +1173,72 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1162
1173
  }
1163
1174
  return o;
1164
1175
  }
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);
1176
+ function Rt(t, e, i, n, r, o, s, a, d, l, u) {
1177
+ for (var h = r - 1, c = r === 0 ? o : [""], f = gt(c), g = 0, v = 0, w = 0; g < n; ++g)
1178
+ for (var y = 0, p = Se(t, h + 1, h = Dn(v = s[g])), b = t; y < f; ++y)
1179
+ (b = ii(v > 0 ? c[y] + " " + p : m(p, /&\f/g, c[y]))) && (d[w++] = b);
1180
+ return Ke(t, e, i, r === 0 ? ft : a, d, l, u);
1170
1181
  }
1171
- function Gn(t, e, i) {
1172
- return qe(t, e, i, Zt, Ge(Mn()), Se(t, 2, -2), 0);
1182
+ function zn(t, e, i) {
1183
+ return Ke(t, e, i, ei, ze($n()), Se(t, 2, -2), 0);
1173
1184
  }
1174
- function Rt(t, e, i, n) {
1175
- return qe(t, e, i, ft, Se(t, 0, n), Se(t, n + 1, -1), n);
1185
+ function Ot(t, e, i, n) {
1186
+ return Ke(t, e, i, vt, Se(t, 0, n), Se(t, n + 1, -1), n);
1176
1187
  }
1177
1188
  function le(t, e) {
1178
- for (var i = "", n = vt(t), r = 0; r < n; r++)
1189
+ for (var i = "", n = gt(t), r = 0; r < n; r++)
1179
1190
  i += e(t[r], r, t, e) || "";
1180
1191
  return i;
1181
1192
  }
1182
- function zn(t, e, i, n) {
1193
+ function qn(t, e, i, n) {
1183
1194
  switch (t.type) {
1184
- case Tn:
1195
+ case Cn:
1185
1196
  if (t.children.length)
1186
1197
  break;
1187
- case On:
1188
- case ft:
1198
+ case Tn:
1199
+ case vt:
1189
1200
  return t.return = t.return || t.value;
1190
- case Zt:
1191
- return "";
1192
1201
  case ei:
1202
+ return "";
1203
+ case ti:
1193
1204
  return t.return = t.value + "{" + le(t.children, n) + "}";
1194
- case ht:
1205
+ case ft:
1195
1206
  t.value = t.props.join(",");
1196
1207
  }
1197
1208
  return J(i = le(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1198
1209
  }
1199
- function qn(t) {
1200
- var e = vt(t);
1210
+ function Kn(t) {
1211
+ var e = gt(t);
1201
1212
  return function(i, n, r, o) {
1202
1213
  for (var s = "", a = 0; a < e; a++)
1203
1214
  s += t[a](i, n, r, o) || "";
1204
1215
  return s;
1205
1216
  };
1206
1217
  }
1207
- function Kn(t) {
1218
+ function Hn(t) {
1208
1219
  return function(e) {
1209
1220
  e.root || (e = e.return) && t(e);
1210
1221
  };
1211
1222
  }
1212
- function Hn(t) {
1223
+ function Wn(t) {
1213
1224
  var e = /* @__PURE__ */ Object.create(null);
1214
1225
  return function(i) {
1215
1226
  return e[i] === void 0 && (e[i] = t(i)), e[i];
1216
1227
  };
1217
1228
  }
1218
- var Wn = function(e, i, n) {
1229
+ var Jn = function(e, i, n) {
1219
1230
  for (var r = 0, o = 0; r = o, o = Y(), r === 38 && o === 12 && (i[n] = 1), !Ee(o); )
1220
1231
  G();
1221
- return ke(e, B);
1222
- }, Jn = function(e, i) {
1232
+ return ke(e, F);
1233
+ }, Yn = function(e, i) {
1223
1234
  var n = -1, r = 44;
1224
1235
  do
1225
1236
  switch (Ee(r)) {
1226
1237
  case 0:
1227
- r === 38 && Y() === 12 && (i[n] = 1), e[n] += Wn(B - 1, i, n);
1238
+ r === 38 && Y() === 12 && (i[n] = 1), e[n] += Jn(F - 1, i, n);
1228
1239
  break;
1229
1240
  case 2:
1230
- e[n] += Le(r);
1241
+ e[n] += Pe(r);
1231
1242
  break;
1232
1243
  case 4:
1233
1244
  if (r === 44) {
@@ -1235,27 +1246,27 @@ var Wn = function(e, i, n) {
1235
1246
  break;
1236
1247
  }
1237
1248
  default:
1238
- e[n] += Ge(r);
1249
+ e[n] += ze(r);
1239
1250
  }
1240
1251
  while (r = G());
1241
1252
  return e;
1242
- }, Yn = function(e, i) {
1243
- return ri(Jn(ni(e), i));
1244
- }, Ot = /* @__PURE__ */ new WeakMap(), Xn = function(e) {
1253
+ }, Xn = function(e, i) {
1254
+ return oi(Yn(ri(e), i));
1255
+ }, Tt = /* @__PURE__ */ new WeakMap(), Qn = function(e) {
1245
1256
  if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
1246
1257
  // negative .length indicates that this rule has been already prefixed
1247
1258
  e.length < 1)) {
1248
1259
  for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
1249
1260
  if (n = n.parent, !n)
1250
1261
  return;
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++)
1262
+ if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Tt.get(n)) && !r) {
1263
+ Tt.set(e, !0);
1264
+ for (var o = [], s = Xn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1254
1265
  for (var u = 0; u < a.length; u++, l++)
1255
1266
  e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
1256
1267
  }
1257
1268
  }
1258
- }, Qn = function(e) {
1269
+ }, Zn = function(e) {
1259
1270
  if (e.type === "decl") {
1260
1271
  var i = e.value;
1261
1272
  // charcode for l
@@ -1263,8 +1274,8 @@ var Wn = function(e, i, n) {
1263
1274
  i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1264
1275
  }
1265
1276
  };
1266
- function oi(t, e) {
1267
- switch (Ln(t, e)) {
1277
+ function si(t, e) {
1278
+ switch (Pn(t, e)) {
1268
1279
  case 5103:
1269
1280
  return A + "print-" + t + t;
1270
1281
  case 5737:
@@ -1298,7 +1309,7 @@ function oi(t, e) {
1298
1309
  case 4810:
1299
1310
  case 6968:
1300
1311
  case 2756:
1301
- return A + t + je + t + M + t + t;
1312
+ return A + t + Ue + t + M + t + t;
1302
1313
  case 6828:
1303
1314
  case 4268:
1304
1315
  return A + t + M + t + t;
@@ -1348,16 +1359,16 @@ function oi(t, e) {
1348
1359
  if (D(t, e + 4) !== 45)
1349
1360
  break;
1350
1361
  case 102:
1351
- return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + je + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1362
+ return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Ue + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1352
1363
  case 115:
1353
- return ~ot(t, "stretch") ? oi(m(t, "stretch", "fill-available"), e) + t : t;
1364
+ return ~st(t, "stretch") ? si(m(t, "stretch", "fill-available"), e) + t : t;
1354
1365
  }
1355
1366
  break;
1356
1367
  case 4949:
1357
1368
  if (D(t, e + 1) !== 115)
1358
1369
  break;
1359
1370
  case 6444:
1360
- switch (D(t, J(t) - 3 - (~ot(t, "!important") && 10))) {
1371
+ switch (D(t, J(t) - 3 - (~st(t, "!important") && 10))) {
1361
1372
  case 107:
1362
1373
  return m(t, ":", ":" + A) + t;
1363
1374
  case 101:
@@ -1377,30 +1388,30 @@ function oi(t, e) {
1377
1388
  }
1378
1389
  return t;
1379
1390
  }
1380
- var Zn = function(e, i, n, r) {
1391
+ var er = function(e, i, n, r) {
1381
1392
  if (e.length > -1 && !e.return)
1382
1393
  switch (e.type) {
1383
- case ft:
1384
- e.return = oi(e.value, e.length);
1394
+ case vt:
1395
+ e.return = si(e.value, e.length);
1385
1396
  break;
1386
- case ei:
1397
+ case ti:
1387
1398
  return le([we(e, {
1388
1399
  value: m(e.value, "@", "@" + A)
1389
1400
  })], r);
1390
- case ht:
1401
+ case ft:
1391
1402
  if (e.length)
1392
- return Nn(e.props, function(o) {
1393
- switch (Pn(o, /(::plac\w+|:read-\w+)/)) {
1403
+ return Mn(e.props, function(o) {
1404
+ switch (Nn(o, /(::plac\w+|:read-\w+)/)) {
1394
1405
  case ":read-only":
1395
1406
  case ":read-write":
1396
1407
  return le([we(e, {
1397
- props: [m(o, /:(read-\w+)/, ":" + je + "$1")]
1408
+ props: [m(o, /:(read-\w+)/, ":" + Ue + "$1")]
1398
1409
  })], r);
1399
1410
  case "::placeholder":
1400
1411
  return le([we(e, {
1401
1412
  props: [m(o, /:(plac\w+)/, ":" + A + "input-$1")]
1402
1413
  }), we(e, {
1403
- props: [m(o, /:(plac\w+)/, ":" + je + "$1")]
1414
+ props: [m(o, /:(plac\w+)/, ":" + Ue + "$1")]
1404
1415
  }), we(e, {
1405
1416
  props: [m(o, /:(plac\w+)/, M + "input-$1")]
1406
1417
  })], r);
@@ -1408,7 +1419,7 @@ var Zn = function(e, i, n, r) {
1408
1419
  return "";
1409
1420
  });
1410
1421
  }
1411
- }, er = [Zn], tr = function(e) {
1422
+ }, tr = [er], ir = function(e) {
1412
1423
  var i = e.key;
1413
1424
  if (i === "css") {
1414
1425
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
@@ -1417,7 +1428,7 @@ var Zn = function(e, i, n, r) {
1417
1428
  w.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1418
1429
  });
1419
1430
  }
1420
- var r = e.stylisPlugins || er, o = {}, s, a = [];
1431
+ var r = e.stylisPlugins || tr, o = {}, s, a = [];
1421
1432
  s = e.container || document.head, Array.prototype.forEach.call(
1422
1433
  // this means we will ignore elements which don't have a space in them which
1423
1434
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -1428,12 +1439,12 @@ var Zn = function(e, i, n, r) {
1428
1439
  a.push(v);
1429
1440
  }
1430
1441
  );
1431
- var d, l = [Xn, Qn];
1442
+ var d, l = [Qn, Zn];
1432
1443
  {
1433
- var u, h = [zn, Kn(function(v) {
1444
+ var u, h = [qn, Hn(function(v) {
1434
1445
  u.insert(v);
1435
- })], c = qn(l.concat(r, h)), f = function(w) {
1436
- return le(Vn(w), c);
1446
+ })], c = Kn(l.concat(r, h)), f = function(w) {
1447
+ return le(Gn(w), c);
1437
1448
  };
1438
1449
  d = function(w, y, p, b) {
1439
1450
  u = p, f(w ? w + "{" + y.styles + "}" : y.styles), b && (g.inserted[y.name] = !0);
@@ -1441,7 +1452,7 @@ var Zn = function(e, i, n, r) {
1441
1452
  }
1442
1453
  var g = {
1443
1454
  key: i,
1444
- sheet: new Rn({
1455
+ sheet: new On({
1445
1456
  key: i,
1446
1457
  container: s,
1447
1458
  nonce: e.nonce,
@@ -1456,7 +1467,7 @@ var Zn = function(e, i, n, r) {
1456
1467
  };
1457
1468
  return g.sheet.hydrate(a), g;
1458
1469
  };
1459
- function ir(t) {
1470
+ function nr(t) {
1460
1471
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
1461
1472
  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
1473
  (i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
@@ -1475,7 +1486,7 @@ function ir(t) {
1475
1486
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
1476
1487
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1477
1488
  }
1478
- var nr = {
1489
+ var rr = {
1479
1490
  animationIterationCount: 1,
1480
1491
  aspectRatio: 1,
1481
1492
  borderImageOutset: 1,
@@ -1524,18 +1535,18 @@ var nr = {
1524
1535
  strokeMiterlimit: 1,
1525
1536
  strokeOpacity: 1,
1526
1537
  strokeWidth: 1
1527
- }, rr = /[A-Z]|^ms/g, or = /_EMO_([^_]+?)_([^]*?)_EMO_/g, si = function(e) {
1538
+ }, or = /[A-Z]|^ms/g, sr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ai = function(e) {
1528
1539
  return e.charCodeAt(1) === 45;
1529
- }, Tt = function(e) {
1540
+ }, Ct = function(e) {
1530
1541
  return e != null && typeof e != "boolean";
1531
- }, Je = /* @__PURE__ */ Hn(function(t) {
1532
- return si(t) ? t : t.replace(rr, "-$&").toLowerCase();
1533
- }), Ct = function(e, i) {
1542
+ }, Ye = /* @__PURE__ */ Wn(function(t) {
1543
+ return ai(t) ? t : t.replace(or, "-$&").toLowerCase();
1544
+ }), Dt = function(e, i) {
1534
1545
  switch (e) {
1535
1546
  case "animation":
1536
1547
  case "animationName":
1537
1548
  if (typeof i == "string")
1538
- return i.replace(or, function(n, r, o) {
1549
+ return i.replace(sr, function(n, r, o) {
1539
1550
  return ie = {
1540
1551
  name: r,
1541
1552
  styles: o,
@@ -1543,9 +1554,9 @@ var nr = {
1543
1554
  }, r;
1544
1555
  });
1545
1556
  }
1546
- return nr[e] !== 1 && !si(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1557
+ return rr[e] !== 1 && !ai(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1547
1558
  };
1548
- function Ue(t, e, i) {
1559
+ function Be(t, e, i) {
1549
1560
  if (i == null)
1550
1561
  return "";
1551
1562
  var n = i;
@@ -1575,7 +1586,7 @@ function Ue(t, e, i) {
1575
1586
  var a = o.styles + ";";
1576
1587
  return a;
1577
1588
  }
1578
- return sr(t, e, i);
1589
+ return ar(t, e, i);
1579
1590
  }
1580
1591
  }
1581
1592
  var d = i;
@@ -1584,26 +1595,26 @@ function Ue(t, e, i) {
1584
1595
  var l = e[d];
1585
1596
  return l !== void 0 ? l : d;
1586
1597
  }
1587
- function sr(t, e, i) {
1598
+ function ar(t, e, i) {
1588
1599
  var n = "";
1589
1600
  if (Array.isArray(i))
1590
1601
  for (var r = 0; r < i.length; r++)
1591
- n += Ue(t, e, i[r]) + ";";
1602
+ n += Be(t, e, i[r]) + ";";
1592
1603
  else
1593
1604
  for (var o in i) {
1594
1605
  var s = i[o];
1595
1606
  if (typeof s != "object") {
1596
1607
  var a = s;
1597
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Tt(a) && (n += Je(o) + ":" + Ct(o, a) + ";");
1608
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Ct(a) && (n += Ye(o) + ":" + Dt(o, a) + ";");
1598
1609
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1599
1610
  for (var d = 0; d < s.length; d++)
1600
- Tt(s[d]) && (n += Je(o) + ":" + Ct(o, s[d]) + ";");
1611
+ Ct(s[d]) && (n += Ye(o) + ":" + Dt(o, s[d]) + ";");
1601
1612
  else {
1602
- var l = Ue(t, e, s);
1613
+ var l = Be(t, e, s);
1603
1614
  switch (o) {
1604
1615
  case "animation":
1605
1616
  case "animationName": {
1606
- n += Je(o) + ":" + l + ";";
1617
+ n += Ye(o) + ":" + l + ";";
1607
1618
  break;
1608
1619
  }
1609
1620
  default:
@@ -1613,41 +1624,41 @@ function sr(t, e, i) {
1613
1624
  }
1614
1625
  return n;
1615
1626
  }
1616
- var Dt = /label:\s*([^\s;{]+)\s*(;|$)/g, ie;
1617
- function Ye(t, e, i) {
1627
+ var Lt = /label:\s*([^\s;{]+)\s*(;|$)/g, ie;
1628
+ function Xe(t, e, i) {
1618
1629
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1619
1630
  return t[0];
1620
1631
  var n = !0, r = "";
1621
1632
  ie = void 0;
1622
1633
  var o = t[0];
1623
1634
  if (o == null || o.raw === void 0)
1624
- n = !1, r += Ue(i, e, o);
1635
+ n = !1, r += Be(i, e, o);
1625
1636
  else {
1626
1637
  var s = o;
1627
1638
  r += s[0];
1628
1639
  }
1629
1640
  for (var a = 1; a < t.length; a++)
1630
- if (r += Ue(i, e, t[a]), n) {
1641
+ if (r += Be(i, e, t[a]), n) {
1631
1642
  var d = o;
1632
1643
  r += d[a];
1633
1644
  }
1634
- Dt.lastIndex = 0;
1635
- for (var l = "", u; (u = Dt.exec(r)) !== null; )
1645
+ Lt.lastIndex = 0;
1646
+ for (var l = "", u; (u = Lt.exec(r)) !== null; )
1636
1647
  l += "-" + u[1];
1637
- var h = ir(r) + l;
1648
+ var h = nr(r) + l;
1638
1649
  return {
1639
1650
  name: h,
1640
1651
  styles: r,
1641
1652
  next: ie
1642
1653
  };
1643
1654
  }
1644
- function ai(t, e, i) {
1655
+ function di(t, e, i) {
1645
1656
  var n = "";
1646
1657
  return i.split(" ").forEach(function(r) {
1647
1658
  t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
1648
1659
  }), n;
1649
1660
  }
1650
- var ar = function(e, i, n) {
1661
+ var dr = function(e, i, n) {
1651
1662
  var r = e.key + "-" + i.name;
1652
1663
  // we only need to add the styles to the registered cache if the
1653
1664
  // class name could be used further down
@@ -1655,8 +1666,8 @@ var ar = function(e, i, n) {
1655
1666
  // so we don't have to add it to registered cache.
1656
1667
  // this improves memory usage since we can avoid storing the whole style string
1657
1668
  e.registered[r] === void 0 && (e.registered[r] = i.styles);
1658
- }, dr = function(e, i, n) {
1659
- ar(e, i);
1669
+ }, lr = function(e, i, n) {
1670
+ dr(e, i);
1660
1671
  var r = e.key + "-" + i.name;
1661
1672
  if (e.inserted[i.name] === void 0) {
1662
1673
  var o = i;
@@ -1665,41 +1676,41 @@ var ar = function(e, i, n) {
1665
1676
  while (o !== void 0);
1666
1677
  }
1667
1678
  };
1668
- function Lt(t, e) {
1679
+ function Pt(t, e) {
1669
1680
  if (t.inserted[e.name] === void 0)
1670
1681
  return t.insert("", e, t.sheet, !0);
1671
1682
  }
1672
- function Pt(t, e, i) {
1673
- var n = [], r = ai(t, n, i);
1683
+ function Nt(t, e, i) {
1684
+ var n = [], r = di(t, n, i);
1674
1685
  return n.length < 2 ? i : r + e(n);
1675
1686
  }
1676
- var lr = function(e) {
1677
- var i = tr(e);
1687
+ var ur = function(e) {
1688
+ var i = ir(e);
1678
1689
  i.sheet.speedy = function(a) {
1679
1690
  this.isSpeedy = a;
1680
1691
  }, i.compat = !0;
1681
1692
  var n = function() {
1682
1693
  for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1683
1694
  l[u] = arguments[u];
1684
- var h = Ye(l, i.registered, void 0);
1685
- return dr(i, h), i.key + "-" + h.name;
1695
+ var h = Xe(l, i.registered, void 0);
1696
+ return lr(i, h), i.key + "-" + h.name;
1686
1697
  }, r = function() {
1687
1698
  for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1688
1699
  l[u] = arguments[u];
1689
- var h = Ye(l, i.registered), c = "animation-" + h.name;
1690
- return Lt(i, {
1700
+ var h = Xe(l, i.registered), c = "animation-" + h.name;
1701
+ return Pt(i, {
1691
1702
  name: h.name,
1692
1703
  styles: "@keyframes " + c + "{" + h.styles + "}"
1693
1704
  }), c;
1694
1705
  }, o = function() {
1695
1706
  for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1696
1707
  l[u] = arguments[u];
1697
- var h = Ye(l, i.registered);
1698
- Lt(i, h);
1708
+ var h = Xe(l, i.registered);
1709
+ Pt(i, h);
1699
1710
  }, s = function() {
1700
1711
  for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1701
1712
  l[u] = arguments[u];
1702
- return Pt(i.registered, n, ur(l));
1713
+ return Nt(i.registered, n, cr(l));
1703
1714
  };
1704
1715
  return {
1705
1716
  css: n,
@@ -1716,10 +1727,10 @@ var lr = function(e) {
1716
1727
  },
1717
1728
  sheet: i.sheet,
1718
1729
  cache: i,
1719
- getRegisteredStyles: ai.bind(null, i.registered),
1720
- merge: Pt.bind(null, i.registered, n)
1730
+ getRegisteredStyles: di.bind(null, i.registered),
1731
+ merge: Nt.bind(null, i.registered, n)
1721
1732
  };
1722
- }, ur = function t(e) {
1733
+ }, cr = function t(e) {
1723
1734
  for (var i = "", n = 0; n < e.length; n++) {
1724
1735
  var r = e[n];
1725
1736
  if (r != null) {
@@ -1744,96 +1755,96 @@ var lr = function(e) {
1744
1755
  }
1745
1756
  }
1746
1757
  return i;
1747
- }, cr = lr({
1758
+ }, hr = ur({
1748
1759
  key: "css"
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;
1760
+ }), fe = hr.css, dt, V, Qe, Mt, $t = 0, li = [], T = ue, jt = T.__b, Ut = T.__r, Bt = T.diffed, Ft = T.__c, Vt = T.unmount, Gt = T.__;
1761
+ function fr(t, e) {
1762
+ T.__h && T.__h(V, t, $t || e), $t = 0;
1752
1763
  var i = V.__H || (V.__H = { __: [], __h: [] });
1753
1764
  return t >= i.__.length && i.__.push({}), i.__[t];
1754
1765
  }
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.__;
1766
+ function ui(t, e) {
1767
+ var i = fr(dt++, 7);
1768
+ return yr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1758
1769
  }
1759
- function fr() {
1760
- for (var t; t = di.shift(); )
1770
+ function vr() {
1771
+ for (var t; t = li.shift(); )
1761
1772
  if (t.__P && t.__H)
1762
1773
  try {
1763
- t.__H.__h.forEach(Ne), t.__H.__h.forEach(dt), t.__H.__h = [];
1774
+ t.__H.__h.forEach(Me), t.__H.__h.forEach(lt), t.__H.__h = [];
1764
1775
  } catch (e) {
1765
1776
  t.__H.__h = [], T.__e(e, t.__v);
1766
1777
  }
1767
1778
  }
1768
1779
  T.__b = function(t) {
1769
- V = null, $t && $t(t);
1780
+ V = null, jt && jt(t);
1770
1781
  }, T.__ = function(t, e) {
1771
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Vt && Vt(t, e);
1782
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Gt && Gt(t, e);
1772
1783
  }, T.__r = function(t) {
1773
- jt && jt(t), at = 0;
1784
+ Ut && Ut(t), dt = 0;
1774
1785
  var e = (V = t.__c).__H;
1775
- e && (Xe === V ? (e.__h = [], V.__h = [], e.__.forEach(function(i) {
1786
+ e && (Qe === V ? (e.__h = [], V.__h = [], e.__.forEach(function(i) {
1776
1787
  i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
1777
- })) : (e.__h.forEach(Ne), e.__h.forEach(dt), e.__h = [], at = 0)), Xe = V;
1788
+ })) : (e.__h.forEach(Me), e.__h.forEach(lt), e.__h = [], dt = 0)), Qe = V;
1778
1789
  }, T.diffed = function(t) {
1779
- Ut && Ut(t);
1790
+ Bt && Bt(t);
1780
1791
  var e = t.__c;
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) {
1792
+ e && e.__H && (e.__H.__h.length && (li.push(e) !== 1 && Mt === T.requestAnimationFrame || ((Mt = T.requestAnimationFrame) || gr)(vr)), e.__H.__.forEach(function(i) {
1782
1793
  i.u && (i.__H = i.u), i.u = void 0;
1783
- })), Xe = V = null;
1794
+ })), Qe = V = null;
1784
1795
  }, T.__c = function(t, e) {
1785
1796
  e.some(function(i) {
1786
1797
  try {
1787
- i.__h.forEach(Ne), i.__h = i.__h.filter(function(n) {
1788
- return !n.__ || dt(n);
1798
+ i.__h.forEach(Me), i.__h = i.__h.filter(function(n) {
1799
+ return !n.__ || lt(n);
1789
1800
  });
1790
1801
  } catch (n) {
1791
1802
  e.some(function(r) {
1792
1803
  r.__h && (r.__h = []);
1793
1804
  }), e = [], T.__e(n, i.__v);
1794
1805
  }
1795
- }), Bt && Bt(t, e);
1806
+ }), Ft && Ft(t, e);
1796
1807
  }, T.unmount = function(t) {
1797
- Ft && Ft(t);
1808
+ Vt && Vt(t);
1798
1809
  var e, i = t.__c;
1799
1810
  i && i.__H && (i.__H.__.forEach(function(n) {
1800
1811
  try {
1801
- Ne(n);
1812
+ Me(n);
1802
1813
  } catch (r) {
1803
1814
  e = r;
1804
1815
  }
1805
1816
  }), i.__H = void 0, e && T.__e(e, i.__v));
1806
1817
  };
1807
- var Gt = typeof requestAnimationFrame == "function";
1808
- function vr(t) {
1818
+ var zt = typeof requestAnimationFrame == "function";
1819
+ function gr(t) {
1809
1820
  var e, i = function() {
1810
- clearTimeout(n), Gt && cancelAnimationFrame(e), setTimeout(t);
1821
+ clearTimeout(n), zt && cancelAnimationFrame(e), setTimeout(t);
1811
1822
  }, n = setTimeout(i, 100);
1812
- Gt && (e = requestAnimationFrame(i));
1823
+ zt && (e = requestAnimationFrame(i));
1813
1824
  }
1814
- function Ne(t) {
1825
+ function Me(t) {
1815
1826
  var e = V, i = t.__c;
1816
1827
  typeof i == "function" && (t.__c = void 0, i()), V = e;
1817
1828
  }
1818
- function dt(t) {
1829
+ function lt(t) {
1819
1830
  var e = V;
1820
1831
  t.__c = t.__(), V = e;
1821
1832
  }
1822
- function gr(t, e) {
1833
+ function yr(t, e) {
1823
1834
  return !t || t.length !== e.length || e.some(function(i, n) {
1824
1835
  return i !== t[n];
1825
1836
  });
1826
1837
  }
1827
- var yr = Symbol.for("preact-signals");
1828
- function Ke() {
1838
+ var pr = Symbol.for("preact-signals");
1839
+ function He() {
1829
1840
  if (ne > 1)
1830
1841
  ne--;
1831
1842
  else {
1832
1843
  for (var t, e = !1; _e !== void 0; ) {
1833
1844
  var i = _e;
1834
- for (_e = void 0, lt++; i !== void 0; ) {
1845
+ for (_e = void 0, ut++; i !== void 0; ) {
1835
1846
  var n = i.o;
1836
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && ci(i))
1847
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && hi(i))
1837
1848
  try {
1838
1849
  i.c();
1839
1850
  } catch (r) {
@@ -1842,7 +1853,7 @@ function Ke() {
1842
1853
  i = n;
1843
1854
  }
1844
1855
  }
1845
- if (lt = 0, ne--, e)
1856
+ if (ut = 0, ne--, e)
1846
1857
  throw t;
1847
1858
  }
1848
1859
  }
@@ -1853,11 +1864,11 @@ function O(t) {
1853
1864
  try {
1854
1865
  return t();
1855
1866
  } finally {
1856
- Ke();
1867
+ He();
1857
1868
  }
1858
1869
  }
1859
- var k = void 0, _e = void 0, ne = 0, lt = 0, Be = 0;
1860
- function ui(t) {
1870
+ var k = void 0, _e = void 0, ne = 0, ut = 0, Fe = 0;
1871
+ function ci(t) {
1861
1872
  if (k !== void 0) {
1862
1873
  var e = t.n;
1863
1874
  if (e === void 0 || e.t !== k)
@@ -1869,7 +1880,7 @@ function ui(t) {
1869
1880
  function L(t) {
1870
1881
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1871
1882
  }
1872
- L.prototype.brand = yr;
1883
+ L.prototype.brand = pr;
1873
1884
  L.prototype.h = function() {
1874
1885
  return !0;
1875
1886
  };
@@ -1913,31 +1924,31 @@ L.prototype.peek = function() {
1913
1924
  }
1914
1925
  };
1915
1926
  Object.defineProperty(L.prototype, "value", { get: function() {
1916
- var t = ui(this);
1927
+ var t = ci(this);
1917
1928
  return t !== void 0 && (t.i = this.i), this.v;
1918
1929
  }, set: function(t) {
1919
1930
  if (t !== this.v) {
1920
- if (lt > 100)
1931
+ if (ut > 100)
1921
1932
  throw new Error("Cycle detected");
1922
- this.v = t, this.i++, Be++, ne++;
1933
+ this.v = t, this.i++, Fe++, ne++;
1923
1934
  try {
1924
1935
  for (var e = this.t; e !== void 0; e = e.x)
1925
1936
  e.t.N();
1926
1937
  } finally {
1927
- Ke();
1938
+ He();
1928
1939
  }
1929
1940
  }
1930
1941
  } });
1931
1942
  function S(t) {
1932
1943
  return new L(t);
1933
1944
  }
1934
- function ci(t) {
1945
+ function hi(t) {
1935
1946
  for (var e = t.s; e !== void 0; e = e.n)
1936
1947
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1937
1948
  return !0;
1938
1949
  return !1;
1939
1950
  }
1940
- function hi(t) {
1951
+ function fi(t) {
1941
1952
  for (var e = t.s; e !== void 0; e = e.n) {
1942
1953
  var i = e.S.n;
1943
1954
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1946,7 +1957,7 @@ function hi(t) {
1946
1957
  }
1947
1958
  }
1948
1959
  }
1949
- function fi(t) {
1960
+ function vi(t) {
1950
1961
  for (var e = t.s, i = void 0; e !== void 0; ) {
1951
1962
  var n = e.p;
1952
1963
  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;
@@ -1954,24 +1965,24 @@ function fi(t) {
1954
1965
  t.s = i;
1955
1966
  }
1956
1967
  function ve(t) {
1957
- L.call(this, void 0), this.x = t, this.s = void 0, this.g = Be - 1, this.f = 4;
1968
+ L.call(this, void 0), this.x = t, this.s = void 0, this.g = Fe - 1, this.f = 4;
1958
1969
  }
1959
1970
  (ve.prototype = new L()).h = function() {
1960
1971
  if (this.f &= -3, 1 & this.f)
1961
1972
  return !1;
1962
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Be))
1973
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Fe))
1963
1974
  return !0;
1964
- if (this.g = Be, this.f |= 1, this.i > 0 && !ci(this))
1975
+ if (this.g = Fe, this.f |= 1, this.i > 0 && !hi(this))
1965
1976
  return this.f &= -2, !0;
1966
1977
  var t = k;
1967
1978
  try {
1968
- hi(this), k = this;
1979
+ fi(this), k = this;
1969
1980
  var e = this.x();
1970
1981
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1971
1982
  } catch (i) {
1972
1983
  this.v = i, this.f |= 16, this.i++;
1973
1984
  }
1974
- return k = t, fi(this), this.f &= -2, !0;
1985
+ return k = t, vi(this), this.f &= -2, !0;
1975
1986
  };
1976
1987
  ve.prototype.S = function(t) {
1977
1988
  if (this.t === void 0) {
@@ -1998,7 +2009,7 @@ ve.prototype.N = function() {
1998
2009
  Object.defineProperty(ve.prototype, "value", { get: function() {
1999
2010
  if (1 & this.f)
2000
2011
  throw new Error("Cycle detected");
2001
- var t = ui(this);
2012
+ var t = ci(this);
2002
2013
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2003
2014
  throw this.v;
2004
2015
  return this.v;
@@ -2006,7 +2017,7 @@ Object.defineProperty(ve.prototype, "value", { get: function() {
2006
2017
  function Ae(t) {
2007
2018
  return new ve(t);
2008
2019
  }
2009
- function vi(t) {
2020
+ function gi(t) {
2010
2021
  var e = t.u;
2011
2022
  if (t.u = void 0, typeof e == "function") {
2012
2023
  ne++;
@@ -2015,21 +2026,21 @@ function vi(t) {
2015
2026
  try {
2016
2027
  e();
2017
2028
  } catch (n) {
2018
- throw t.f &= -2, t.f |= 8, gt(t), n;
2029
+ throw t.f &= -2, t.f |= 8, yt(t), n;
2019
2030
  } finally {
2020
- k = i, Ke();
2031
+ k = i, He();
2021
2032
  }
2022
2033
  }
2023
2034
  }
2024
- function gt(t) {
2035
+ function yt(t) {
2025
2036
  for (var e = t.s; e !== void 0; e = e.n)
2026
2037
  e.S.U(e);
2027
- t.x = void 0, t.s = void 0, vi(t);
2038
+ t.x = void 0, t.s = void 0, gi(t);
2028
2039
  }
2029
- function pr(t) {
2040
+ function wr(t) {
2030
2041
  if (k !== this)
2031
2042
  throw new Error("Out-of-order effect");
2032
- fi(this), k = t, this.f &= -2, 8 & this.f && gt(this), Ke();
2043
+ vi(this), k = t, this.f &= -2, 8 & this.f && yt(this), He();
2033
2044
  }
2034
2045
  function Ie(t) {
2035
2046
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
@@ -2048,15 +2059,15 @@ Ie.prototype.c = function() {
2048
2059
  Ie.prototype.S = function() {
2049
2060
  if (1 & this.f)
2050
2061
  throw new Error("Cycle detected");
2051
- this.f |= 1, this.f &= -9, vi(this), hi(this), ne++;
2062
+ this.f |= 1, this.f &= -9, gi(this), fi(this), ne++;
2052
2063
  var t = k;
2053
- return k = this, pr.bind(this, t);
2064
+ return k = this, wr.bind(this, t);
2054
2065
  };
2055
2066
  Ie.prototype.N = function() {
2056
2067
  2 & this.f || (this.f |= 2, this.o = _e, _e = this);
2057
2068
  };
2058
2069
  Ie.prototype.d = function() {
2059
- this.f |= 8, 1 & this.f || gt(this);
2070
+ this.f |= 8, 1 & this.f || yt(this);
2060
2071
  };
2061
2072
  function xe(t) {
2062
2073
  var e = new Ie(t);
@@ -2067,21 +2078,21 @@ function xe(t) {
2067
2078
  }
2068
2079
  return e.d.bind(e);
2069
2080
  }
2070
- var gi, Qe, yi = [];
2081
+ var yi, Ze, pi = [];
2071
2082
  xe(function() {
2072
- gi = this.N;
2083
+ yi = this.N;
2073
2084
  })();
2074
2085
  function ge(t, e) {
2075
2086
  ue[t] = e.bind(null, ue[t] || function() {
2076
2087
  });
2077
2088
  }
2078
- function Fe(t) {
2079
- Qe && Qe(), Qe = t && t.S();
2089
+ function Ve(t) {
2090
+ Ze && Ze(), Ze = t && t.S();
2080
2091
  }
2081
- function pi(t) {
2082
- var e = this, i = t.data, n = wi(i);
2092
+ function wi(t) {
2093
+ var e = this, i = t.data, n = bi(i);
2083
2094
  n.value = i;
2084
- var r = li(function() {
2095
+ var r = ui(function() {
2085
2096
  for (var a = e, d = e.__v; d = d.__; )
2086
2097
  if (d.__c) {
2087
2098
  d.__c.__$f |= 4;
@@ -2091,9 +2102,9 @@ function pi(t) {
2091
2102
  var f = n.value.value;
2092
2103
  return f === 0 ? 0 : f === !0 ? "" : f || "";
2093
2104
  }), u = Ae(function() {
2094
- return !Array.isArray(l.value) && !Oi(l.value);
2105
+ return !Array.isArray(l.value) && !Ti(l.value);
2095
2106
  }), h = xe(function() {
2096
- if (this.N = bi, u.value) {
2107
+ if (this.N = _i, u.value) {
2097
2108
  var f = l.value;
2098
2109
  a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2099
2110
  }
@@ -2104,8 +2115,8 @@ function pi(t) {
2104
2115
  }, []), o = r[0], s = r[1];
2105
2116
  return o.value ? s.peek() : s.value;
2106
2117
  }
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() {
2118
+ wi.displayName = "_st";
2119
+ Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: wi }, props: { configurable: !0, get: function() {
2109
2120
  return { data: this };
2110
2121
  } }, __b: { configurable: !0, value: 1 } });
2111
2122
  ge("__b", function(t, e) {
@@ -2120,7 +2131,7 @@ ge("__b", function(t, e) {
2120
2131
  t(e);
2121
2132
  });
2122
2133
  ge("__r", function(t, e) {
2123
- Fe();
2134
+ Ve();
2124
2135
  var i, n = e.__c;
2125
2136
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2126
2137
  var o;
@@ -2129,13 +2140,13 @@ ge("__r", function(t, e) {
2129
2140
  }), o.c = function() {
2130
2141
  n.__$f |= 1, n.setState({});
2131
2142
  }, o;
2132
- }())), Fe(i), t(e);
2143
+ }())), Ve(i), t(e);
2133
2144
  });
2134
2145
  ge("__e", function(t, e, i, n) {
2135
- Fe(), t(e, i, n);
2146
+ Ve(), t(e, i, n);
2136
2147
  });
2137
2148
  ge("diffed", function(t, e) {
2138
- Fe();
2149
+ Ve();
2139
2150
  var i;
2140
2151
  if (typeof e.type == "string" && (i = e.__e)) {
2141
2152
  var n = e.__np, r = e.props;
@@ -2150,18 +2161,18 @@ ge("diffed", function(t, e) {
2150
2161
  o = {}, i.U = o;
2151
2162
  for (var d in n) {
2152
2163
  var l = o[d], u = n[d];
2153
- l === void 0 ? (l = wr(i, d, u, r), o[d] = l) : l.o(u, r);
2164
+ l === void 0 ? (l = br(i, d, u, r), o[d] = l) : l.o(u, r);
2154
2165
  }
2155
2166
  }
2156
2167
  }
2157
2168
  t(e);
2158
2169
  });
2159
- function wr(t, e, i, n) {
2170
+ function br(t, e, i, n) {
2160
2171
  var r = e in t && t.ownerSVGElement === void 0, o = S(i);
2161
2172
  return { o: function(s, a) {
2162
2173
  o.value = s, n = a;
2163
2174
  }, d: xe(function() {
2164
- this.N = bi;
2175
+ this.N = _i;
2165
2176
  var s = o.value.value;
2166
2177
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2167
2178
  }) };
@@ -2191,7 +2202,7 @@ ge("unmount", function(t, e) {
2191
2202
  ge("__h", function(t, e, i, n) {
2192
2203
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2193
2204
  });
2194
- Ri.prototype.shouldComponentUpdate = function(t, e) {
2205
+ Oi.prototype.shouldComponentUpdate = function(t, e) {
2195
2206
  var i = this.__$u, n = i && i.s !== void 0;
2196
2207
  for (var r in e)
2197
2208
  return !0;
@@ -2209,24 +2220,24 @@ Ri.prototype.shouldComponentUpdate = function(t, e) {
2209
2220
  return !0;
2210
2221
  return !1;
2211
2222
  };
2212
- function wi(t) {
2213
- return li(function() {
2223
+ function bi(t) {
2224
+ return ui(function() {
2214
2225
  return S(t);
2215
2226
  }, []);
2216
2227
  }
2217
- var br = function(t) {
2228
+ var _r = function(t) {
2218
2229
  queueMicrotask(function() {
2219
2230
  queueMicrotask(t);
2220
2231
  });
2221
2232
  };
2222
- function _r() {
2233
+ function Ar() {
2223
2234
  O(function() {
2224
- for (var t; t = yi.shift(); )
2225
- gi.call(t);
2235
+ for (var t; t = pi.shift(); )
2236
+ yi.call(t);
2226
2237
  });
2227
2238
  }
2228
- function bi() {
2229
- yi.push(this) === 1 && (ue.requestAnimationFrame || br)(_r);
2239
+ function _i() {
2240
+ pi.push(this) === 1 && (ue.requestAnimationFrame || _r)(Ar);
2230
2241
  }
2231
2242
  const $ = fe`
2232
2243
  inset: 0;
@@ -2247,11 +2258,11 @@ const $ = fe`
2247
2258
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2248
2259
  'Helvetica Neue', sans-serif;
2249
2260
  `;
2250
- function Ar(t, e) {
2251
- const i = Ti(t);
2252
- Ci(() => {
2261
+ function mr(t, e) {
2262
+ const i = Ci(t);
2263
+ Di(() => {
2253
2264
  i.current = t;
2254
- }, [t]), Ve(() => {
2265
+ }, [t]), Ge(() => {
2255
2266
  if (e === null)
2256
2267
  return;
2257
2268
  const n = setInterval(() => {
@@ -2262,20 +2273,20 @@ function Ar(t, e) {
2262
2273
  };
2263
2274
  }, [e]);
2264
2275
  }
2265
- var mr = 0;
2276
+ var Sr = 0;
2266
2277
  function _(t, e, i, n, r, o) {
2267
2278
  e || (e = {});
2268
2279
  var s, a, d = e;
2269
2280
  if ("ref" in d)
2270
2281
  for (a in d = {}, e)
2271
2282
  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: --mr, __i: -1, __u: 0, __source: r, __self: o };
2283
+ var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Sr, __i: -1, __u: 0, __source: r, __self: o };
2273
2284
  if (typeof t == "function" && (s = t.defaultProps))
2274
2285
  for (a in s)
2275
2286
  d[a] === void 0 && (d[a] = s[a]);
2276
2287
  return ue.vnode && ue.vnode(l), l;
2277
2288
  }
2278
- const Sr = fe`
2289
+ const Er = fe`
2279
2290
  ${$}
2280
2291
  position: fixed;
2281
2292
  top: 0;
@@ -2350,55 +2361,55 @@ const Sr = fe`
2350
2361
  }
2351
2362
  }
2352
2363
  }
2353
- `, K = S(null), ut = S(""), ct = S(""), Me = S(!1), Er = () => {
2364
+ `, K = S(null), ct = S(""), ht = S(""), $e = S(!1), kr = () => {
2354
2365
  var t;
2355
2366
  (t = K.value) == null || t.call(K, !1);
2356
- }, kr = () => {
2367
+ }, Ir = () => {
2357
2368
  var t;
2358
2369
  (t = K.value) == null || t.call(K, !0);
2359
- }, Ir = async (t) => {
2370
+ }, xr = async (t) => {
2360
2371
  let {
2361
2372
  title: e,
2362
2373
  content: i
2363
2374
  } = t;
2364
2375
  return K.value && (K.value(!1), O(() => {
2365
- K.value = null, Me.value = !1;
2376
+ K.value = null, $e.value = !1;
2366
2377
  })), O(() => {
2367
- ut.value = e || "", ct.value = i || "", Me.value = !0;
2378
+ ct.value = e || "", ht.value = i || "", $e.value = !0;
2368
2379
  }), new Promise((n) => {
2369
2380
  K.value = (r) => {
2370
2381
  O(() => {
2371
- K.value = null, Me.value = !1, ut.value = "", ct.value = "";
2382
+ K.value = null, $e.value = !1, ct.value = "", ht.value = "";
2372
2383
  }), n(r);
2373
2384
  };
2374
2385
  });
2375
- }, xr = () => Me.value ? _("div", {
2376
- className: Sr,
2386
+ }, Rr = () => $e.value ? _("div", {
2387
+ className: Er,
2377
2388
  children: _("div", {
2378
2389
  className: "card-wrapper",
2379
2390
  children: [_("div", {
2380
2391
  className: "body",
2381
2392
  children: [_("div", {
2382
2393
  className: "title",
2383
- children: ut.value
2394
+ children: ct.value
2384
2395
  }), _("div", {
2385
2396
  className: "content",
2386
- children: ct.value
2397
+ children: ht.value
2387
2398
  })]
2388
2399
  }), _("div", {
2389
2400
  className: "footer",
2390
2401
  children: [_("button", {
2391
- onClick: Er,
2402
+ onClick: kr,
2392
2403
  className: "cancel-btn",
2393
2404
  children: "Cancel"
2394
2405
  }), _("button", {
2395
- onClick: kr,
2406
+ onClick: Ir,
2396
2407
  className: "confirm-btm",
2397
2408
  children: "Confirm"
2398
2409
  })]
2399
2410
  })]
2400
2411
  })
2401
- }) : null, Rr = fe`
2412
+ }) : null, Or = fe`
2402
2413
  ${$}
2403
2414
  position: relative;
2404
2415
  display: flex;
@@ -2431,7 +2442,7 @@ const Sr = fe`
2431
2442
  cursor: not-allowed;
2432
2443
  }
2433
2444
  }
2434
- `, Or = () => {
2445
+ `, Tr = () => {
2435
2446
  const t = S(!1), e = S(null);
2436
2447
  return {
2437
2448
  timerPaused: t,
@@ -2442,7 +2453,7 @@ const Sr = fe`
2442
2453
  });
2443
2454
  }
2444
2455
  };
2445
- }, Tr = (t) => {
2456
+ }, Cr = (t) => {
2446
2457
  let {
2447
2458
  countdown: e = 0,
2448
2459
  mode: i,
@@ -2452,8 +2463,8 @@ const Sr = fe`
2452
2463
  const {
2453
2464
  startTimestamp: o,
2454
2465
  timerPaused: s
2455
- } = r, a = wi(e);
2456
- Ar(() => {
2466
+ } = r, a = bi(e);
2467
+ mr(() => {
2457
2468
  a.value > 0 ? a.value -= 1 : O(() => {
2458
2469
  s.value = !0, a.value = 0;
2459
2470
  });
@@ -2471,7 +2482,7 @@ const Sr = fe`
2471
2482
  const f = Date.now() - o.value;
2472
2483
  return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2473
2484
  }), u = Ae(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2474
- if (s.value = !0, !await Ir({
2485
+ if (s.value = !0, !await xr({
2475
2486
  title: "Are you sure?",
2476
2487
  content: "You will lose your reward if you dismiss this Ad."
2477
2488
  })) {
@@ -2487,7 +2498,7 @@ const Sr = fe`
2487
2498
  });
2488
2499
  };
2489
2500
  return _("div", {
2490
- className: Rr,
2501
+ className: Or,
2491
2502
  children: [a.value > 0 && i !== "interstitial" && _("div", {
2492
2503
  className: "timer",
2493
2504
  children: [a.value, "s"]
@@ -2507,7 +2518,7 @@ const Sr = fe`
2507
2518
  })
2508
2519
  })]
2509
2520
  });
2510
- }, _i = () => {
2521
+ }, Ai = () => {
2511
2522
  const t = S(), e = S(), i = S(), n = S(), r = S(), o = S(!1), s = S(15), a = S(""), d = S("reward");
2512
2523
  return {
2513
2524
  afterAd: t,
@@ -2520,7 +2531,7 @@ const Sr = fe`
2520
2531
  src: a,
2521
2532
  mode: d
2522
2533
  };
2523
- }, Cr = fe`
2534
+ }, Dr = fe`
2524
2535
  ${$}
2525
2536
  position: fixed;
2526
2537
  z-index: 2147483647;
@@ -2539,7 +2550,7 @@ const Sr = fe`
2539
2550
  width: 100%;
2540
2551
  height: 100%;
2541
2552
  }
2542
- `, Ai = (t) => {
2553
+ `, mi = (t) => {
2543
2554
  let {
2544
2555
  state: e
2545
2556
  } = t;
@@ -2553,20 +2564,20 @@ const Sr = fe`
2553
2564
  countdown: d,
2554
2565
  src: l,
2555
2566
  mode: u
2556
- } = e, h = Di(() => Or(), []), [c, f] = zt(!1), g = (w) => {
2567
+ } = e, h = Li(() => Tr(), []), [c, f] = qt(!1), g = (w) => {
2557
2568
  var y, p, b, j;
2558
2569
  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(() => {
2570
+ }, v = Pi(() => {
2560
2571
  var w;
2561
2572
  c || (f(!0), (w = s.value) == null || w.call(s));
2562
2573
  }, [c]);
2563
- return Ve(() => {
2574
+ return Ge(() => {
2564
2575
  c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
2565
2576
  h.startTimer();
2566
2577
  }, 100);
2567
2578
  }, [c, u.value]), a.value ? _("div", {
2568
- className: Cr,
2569
- children: [_(Tr, {
2579
+ className: Dr,
2580
+ children: [_(Cr, {
2570
2581
  mode: u.value,
2571
2582
  onClose: g,
2572
2583
  countdown: d.value,
@@ -2575,17 +2586,17 @@ const Sr = fe`
2575
2586
  src: l.value,
2576
2587
  onLoad: v,
2577
2588
  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
- }), _(xr, {})]
2589
+ }), _(Rr, {})]
2579
2590
  }) : null;
2580
2591
  };
2581
2592
  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;
2593
+ return (e = Lr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2583
2594
  }
2584
- function Dr(t) {
2585
- var e = Lr(t, "string");
2595
+ function Lr(t) {
2596
+ var e = Pr(t, "string");
2586
2597
  return typeof e == "symbol" ? e : e + "";
2587
2598
  }
2588
- function Lr(t, e) {
2599
+ function Pr(t, e) {
2589
2600
  if (typeof t != "object" || !t)
2590
2601
  return t;
2591
2602
  var i = t[Symbol.toPrimitive];
@@ -2597,13 +2608,13 @@ function Lr(t, e) {
2597
2608
  }
2598
2609
  return (e === "string" ? String : Number)(t);
2599
2610
  }
2600
- class Pr {
2611
+ class Nr {
2601
2612
  constructor(e, 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;
2613
+ 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", Ai()), this.context = e, this.initParams = i;
2603
2614
  }
2604
2615
  async init() {
2605
2616
  var e;
2606
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), re(_(Ai, {
2617
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), re(_(mi, {
2607
2618
  state: this.state
2608
2619
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2609
2620
  }
@@ -2727,10 +2738,10 @@ window.addEventListener("message", (t) => {
2727
2738
  });
2728
2739
  });
2729
2740
  const se = (t, e) => {
2730
- Ve(() => (de[t] || (de[t] = /* @__PURE__ */ new Set()), de[t].add(e), () => {
2741
+ Ge(() => (de[t] || (de[t] = /* @__PURE__ */ new Set()), de[t].add(e), () => {
2731
2742
  de[t].delete(e);
2732
2743
  }), [t, e]);
2733
- }, mi = () => {
2744
+ }, Si = () => {
2734
2745
  const t = S(), e = S(), i = S(), n = S(), r = S(), o = S(), s = S(), a = S(!1), d = S("");
2735
2746
  return {
2736
2747
  afterAd: t,
@@ -2743,7 +2754,7 @@ const se = (t, e) => {
2743
2754
  visible: a,
2744
2755
  src: d
2745
2756
  };
2746
- }, Nr = fe`
2757
+ }, Mr = fe`
2747
2758
  ${$}
2748
2759
  position: fixed;
2749
2760
  z-index: 2147483647;
@@ -2762,7 +2773,7 @@ const se = (t, e) => {
2762
2773
  width: 100%;
2763
2774
  height: 100%;
2764
2775
  }
2765
- `, Si = (t) => {
2776
+ `, Ei = (t) => {
2766
2777
  let {
2767
2778
  state: e
2768
2779
  } = t;
@@ -2775,7 +2786,7 @@ const se = (t, e) => {
2775
2786
  adLinkClicked: a,
2776
2787
  visible: d,
2777
2788
  src: l
2778
- } = e, [u, h] = zt(!1), c = (g) => {
2789
+ } = e, [u, h] = qt(!1), c = (g) => {
2779
2790
  var v, w, y, p;
2780
2791
  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
2792
  }, f = () => {
@@ -2786,7 +2797,7 @@ const se = (t, e) => {
2786
2797
  var v;
2787
2798
  return (v = a.value) == null ? void 0 : v.call(a, g);
2788
2799
  }), se("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
2789
- className: Nr,
2800
+ className: Mr,
2790
2801
  style: {
2791
2802
  display: u ? "flex" : "none"
2792
2803
  },
@@ -2800,13 +2811,13 @@ const se = (t, e) => {
2800
2811
  }) : null;
2801
2812
  };
2802
2813
  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;
2814
+ return (e = $r(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2804
2815
  }
2805
- function Mr(t) {
2806
- var e = $r(t, "string");
2816
+ function $r(t) {
2817
+ var e = jr(t, "string");
2807
2818
  return typeof e == "symbol" ? e : e + "";
2808
2819
  }
2809
- function $r(t, e) {
2820
+ function jr(t, e) {
2810
2821
  if (typeof t != "object" || !t)
2811
2822
  return t;
2812
2823
  var i = t[Symbol.toPrimitive];
@@ -2818,9 +2829,9 @@ function $r(t, e) {
2818
2829
  }
2819
2830
  return (e === "string" ? String : Number)(t);
2820
2831
  }
2821
- class jr {
2832
+ class Ur {
2822
2833
  constructor(e, i) {
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) => {
2834
+ 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", Si()), Z(this, "processUrl", (n) => {
2824
2835
  var a;
2825
2836
  const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
2826
2837
  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 +2839,7 @@ class jr {
2828
2839
  }
2829
2840
  async init() {
2830
2841
  var e;
2831
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), re(_(Si, {
2842
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), re(_(Ei, {
2832
2843
  state: this.state
2833
2844
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2834
2845
  }
@@ -2958,7 +2969,7 @@ class jr {
2958
2969
  }
2959
2970
  }
2960
2971
  }
2961
- const Ei = () => {
2972
+ const ki = () => {
2962
2973
  window.googletag = window.googletag || {
2963
2974
  cmd: []
2964
2975
  }, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
@@ -2966,13 +2977,13 @@ const Ei = () => {
2966
2977
  });
2967
2978
  };
2968
2979
  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;
2980
+ return (e = Br(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2970
2981
  }
2971
- function Ur(t) {
2972
- var e = Br(t, "string");
2982
+ function Br(t) {
2983
+ var e = Fr(t, "string");
2973
2984
  return typeof e == "symbol" ? e : e + "";
2974
2985
  }
2975
- function Br(t, e) {
2986
+ function Fr(t, e) {
2976
2987
  if (typeof t != "object" || !t)
2977
2988
  return t;
2978
2989
  var i = t[Symbol.toPrimitive];
@@ -2984,7 +2995,7 @@ function Br(t, e) {
2984
2995
  }
2985
2996
  return (e === "string" ? String : Number)(t);
2986
2997
  }
2987
- class ki {
2998
+ class Ii {
2988
2999
  constructor(e, i, n) {
2989
3000
  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
3001
  googletag.cmd.push(...arguments);
@@ -3038,19 +3049,19 @@ class ki {
3038
3049
  }, 500);
3039
3050
  }
3040
3051
  });
3041
- }), this.adUnit = e, this.project = i, this.keyValue = n, Ei(), this.withCommand(() => {
3052
+ }), this.adUnit = e, this.project = i, this.keyValue = n, ki(), this.withCommand(() => {
3042
3053
  this.init();
3043
3054
  });
3044
3055
  }
3045
3056
  }
3046
- function U(t, e, i) {
3047
- return (e = Fr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3057
+ function B(t, e, i) {
3058
+ return (e = Vr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3048
3059
  }
3049
- function Fr(t) {
3050
- var e = Vr(t, "string");
3060
+ function Vr(t) {
3061
+ var e = Gr(t, "string");
3051
3062
  return typeof e == "symbol" ? e : e + "";
3052
3063
  }
3053
- function Vr(t, e) {
3064
+ function Gr(t, e) {
3054
3065
  if (typeof t != "object" || !t)
3055
3066
  return t;
3056
3067
  var i = t[Symbol.toPrimitive];
@@ -3062,31 +3073,31 @@ function Vr(t, e) {
3062
3073
  }
3063
3074
  return (e === "string" ? String : Number)(t);
3064
3075
  }
3065
- class Gr {
3076
+ class zr {
3066
3077
  constructor(e, i, n) {
3067
3078
  var r = this;
3068
- U(this, "adUnit", void 0), U(this, "project", void 0), U(this, "keyValue", void 0), U(this, "adsContext", null), U(this, "gamingInterstitialSlot", null), U(this, "readyEvent", null), U(this, "isRetrying", !1), U(this, "withCommand", function() {
3079
+ B(this, "adUnit", void 0), B(this, "project", void 0), B(this, "keyValue", void 0), B(this, "adsContext", null), B(this, "gamingInterstitialSlot", null), B(this, "readyEvent", null), B(this, "isRetrying", !1), B(this, "withCommand", function() {
3069
3080
  googletag.cmd.push(...arguments);
3070
- }), U(this, "init", () => {
3081
+ }), B(this, "init", () => {
3071
3082
  var o;
3072
3083
  this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((s) => {
3073
3084
  var a;
3074
3085
  (a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
3075
3086
  }), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
3076
- }), U(this, "destroy", function(o) {
3087
+ }), B(this, "destroy", function(o) {
3077
3088
  var a, d;
3078
3089
  (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), r.adsContext = null), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
3079
- }), U(this, "reinit", function(o) {
3090
+ }), B(this, "reinit", function(o) {
3080
3091
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3081
3092
  r.destroy(o, s), r.init();
3082
- }), U(this, "handleSlotReady", (o) => {
3093
+ }), B(this, "handleSlotReady", (o) => {
3083
3094
  this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
3084
- }), U(this, "handleSlotClosed", (o) => {
3095
+ }), B(this, "handleSlotClosed", (o) => {
3085
3096
  var s, a;
3086
3097
  this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
3087
3098
  this.reinit("viewed");
3088
3099
  }));
3089
- }), U(this, "requestAds", (o) => {
3100
+ }), B(this, "requestAds", (o) => {
3090
3101
  this.withCommand(() => {
3091
3102
  var s, a, d;
3092
3103
  if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = o, !this.gamingInterstitialSlot) {
@@ -3099,19 +3110,19 @@ class Gr {
3099
3110
  }), this.isRetrying = !1;
3100
3111
  }, 31e3)));
3101
3112
  });
3102
- }), Ei(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3113
+ }), ki(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3103
3114
  this.init();
3104
3115
  });
3105
3116
  }
3106
3117
  }
3107
3118
  function oe(t, e, i) {
3108
- return (e = zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3119
+ return (e = qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3109
3120
  }
3110
- function zr(t) {
3111
- var e = qr(t, "string");
3121
+ function qr(t) {
3122
+ var e = Kr(t, "string");
3112
3123
  return typeof e == "symbol" ? e : e + "";
3113
3124
  }
3114
- function qr(t, e) {
3125
+ function Kr(t, e) {
3115
3126
  if (typeof t != "object" || !t)
3116
3127
  return t;
3117
3128
  var i = t[Symbol.toPrimitive];
@@ -3123,7 +3134,7 @@ function qr(t, e) {
3123
3134
  }
3124
3135
  return (e === "string" ? String : Number)(t);
3125
3136
  }
3126
- class Kr {
3137
+ class Hr {
3127
3138
  constructor(e, i) {
3128
3139
  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", () => {
3129
3140
  const n = "jolibox-google-gpt";
@@ -3133,7 +3144,7 @@ class Kr {
3133
3144
  }
3134
3145
  async init() {
3135
3146
  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"}`;
3136
- this.rewardAdManager = new ki(e, r, this.initParams.keyValue), this.interstitialManager = new Gr(i, r, this.initParams.keyValue);
3147
+ this.rewardAdManager = new Ii(e, r, this.initParams.keyValue), this.interstitialManager = new zr(i, r, this.initParams.keyValue);
3137
3148
  }
3138
3149
  adConfig(e, i) {
3139
3150
  }
@@ -3196,13 +3207,13 @@ class Kr {
3196
3207
  }
3197
3208
  }
3198
3209
  function H(t, e, i) {
3199
- return (e = Hr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3210
+ return (e = Wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3200
3211
  }
3201
- function Hr(t) {
3202
- var e = Wr(t, "string");
3212
+ function Wr(t) {
3213
+ var e = Jr(t, "string");
3203
3214
  return typeof e == "symbol" ? e : e + "";
3204
3215
  }
3205
- function Wr(t, e) {
3216
+ function Jr(t, e) {
3206
3217
  if (typeof t != "object" || !t)
3207
3218
  return t;
3208
3219
  var i = t[Symbol.toPrimitive];
@@ -3214,10 +3225,10 @@ function Wr(t, e) {
3214
3225
  }
3215
3226
  return (e === "string" ? String : Number)(t);
3216
3227
  }
3217
- class To {
3228
+ class Co {
3218
3229
  constructor(e) {
3219
3230
  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)
3220
- 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();
3231
+ this.context = e, this.channelPolicy = new Sn(this.context), this.adsActionDetection = new wn(this.context), this.adsTrackSerializer = new Zt(this.context), this.contextInfo = this.context.getContextInfo();
3221
3232
  else
3222
3233
  throw new Error("JoliboxAdsForGame requires a configuration object");
3223
3234
  }
@@ -3268,23 +3279,23 @@ class To {
3268
3279
  for (const n of i)
3269
3280
  switch (n.provider) {
3270
3281
  case "GOOGLE_GPT": {
3271
- const r = new Kr(this.context, n.params);
3282
+ const r = new Hr(this.context, n.params);
3272
3283
  await r.init(), this.providers[n.provider] = r;
3273
3284
  break;
3274
3285
  }
3275
3286
  case "ADSENSE":
3276
3287
  case "ADSENSE_ADMOB": {
3277
- const r = new kn(this.context, n.params);
3288
+ const r = new In(this.context, n.params);
3278
3289
  await r.init(), this.providers[n.provider] = r;
3279
3290
  break;
3280
3291
  }
3281
3292
  case "OKSPIN": {
3282
- const r = new Pr(this.context, n.params);
3293
+ const r = new Nr(this.context, n.params);
3283
3294
  await r.init(), this.providers.OKSPIN = r;
3284
3295
  break;
3285
3296
  }
3286
3297
  case "APPSROCKETS": {
3287
- const r = new jr(this.context, n.params);
3298
+ const r = new Ur(this.context, n.params);
3288
3299
  await r.init(), this.providers.APPSROCKETS = r;
3289
3300
  break;
3290
3301
  }
@@ -3375,13 +3386,13 @@ class To {
3375
3386
  return;
3376
3387
  }
3377
3388
  let y = !0, p = null;
3378
- const b = new Mi(this.context);
3389
+ const b = new gn(this.context);
3379
3390
  for (this.adsActionDetection.adBreakIsShowing = !0; w.length > 0; ) {
3380
3391
  const j = w.shift(), P = this.providers[j.provider];
3381
3392
  if (P) {
3382
- const [z, E] = await b.callAdBreakAndContinue(P, e, j, (yt) => {
3383
- var pt;
3384
- this.adsIsShowing = yt, (pt = this.context.eventEmitter) == null || pt.emit("isAdShowing", yt);
3393
+ const [z, E] = await b.callAdBreakAndContinue(P, e, j, (pt) => {
3394
+ var wt;
3395
+ this.adsIsShowing = pt, (wt = this.context.eventEmitter) == null || wt.emit("isAdShowing", pt);
3385
3396
  });
3386
3397
  y = z, p = E;
3387
3398
  } else
@@ -3410,14 +3421,14 @@ class To {
3410
3421
  console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
3411
3422
  }
3412
3423
  }
3413
- function Ze(t, e, i) {
3414
- return (e = Jr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3424
+ function Ce(t, e, i) {
3425
+ return (e = Yr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3415
3426
  }
3416
- function Jr(t) {
3417
- var e = Yr(t, "string");
3427
+ function Yr(t) {
3428
+ var e = Xr(t, "string");
3418
3429
  return typeof e == "symbol" ? e : e + "";
3419
3430
  }
3420
- function Yr(t, e) {
3431
+ function Xr(t, e) {
3421
3432
  if (typeof t != "object" || !t)
3422
3433
  return t;
3423
3434
  var i = t[Symbol.toPrimitive];
@@ -3429,9 +3440,9 @@ function Yr(t, e) {
3429
3440
  }
3430
3441
  return (e === "string" ? String : Number)(t);
3431
3442
  }
3432
- class Xr {
3443
+ class Qr {
3433
3444
  constructor(e) {
3434
- Ze(this, "context", void 0), Ze(this, "currentProvider", void 0), Ze(this, "continueCallback", void 0), this.context = e;
3445
+ Ce(this, "context", void 0), Ce(this, "currentProvider", void 0), Ce(this, "continueCallback", void 0), Ce(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
3435
3446
  }
3436
3447
  get paramsToTrack() {
3437
3448
  var e, i;
@@ -3451,7 +3462,13 @@ class Xr {
3451
3462
  }
3452
3463
  wrapAdPlaying(e) {
3453
3464
  return (i) => {
3454
- this.context.track("CallAFVPlaying", this.paramsToTrack), e == null || e(i);
3465
+ var n, r;
3466
+ this.context.track("CallAFVPlaying", this.paramsToTrack), tt() && this.context.track("mmp_ad_impression", {
3467
+ ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
3468
+ ad_format: "AFV",
3469
+ module: "drama",
3470
+ game_id: this.contextInfo.objectId
3471
+ }), e == null || e(i);
3455
3472
  };
3456
3473
  }
3457
3474
  wrapAdCompleted(e) {
@@ -3475,13 +3492,13 @@ class Xr {
3475
3492
  }
3476
3493
  }
3477
3494
  function et(t, e, i) {
3478
- return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3495
+ return (e = Zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3479
3496
  }
3480
- function Qr(t) {
3481
- var e = Zr(t, "string");
3497
+ function Zr(t) {
3498
+ var e = eo(t, "string");
3482
3499
  return typeof e == "symbol" ? e : e + "";
3483
3500
  }
3484
- function Zr(t, e) {
3501
+ function eo(t, e) {
3485
3502
  if (typeof t != "object" || !t)
3486
3503
  return t;
3487
3504
  var i = t[Symbol.toPrimitive];
@@ -3507,13 +3524,13 @@ class C extends Error {
3507
3524
  }
3508
3525
  }
3509
3526
  function I(t, e, i) {
3510
- return (e = eo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3527
+ return (e = to(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3511
3528
  }
3512
- function eo(t) {
3513
- var e = to(t, "string");
3529
+ function to(t) {
3530
+ var e = io(t, "string");
3514
3531
  return typeof e == "symbol" ? e : e + "";
3515
3532
  }
3516
- function to(t, e) {
3533
+ function io(t, e) {
3517
3534
  if (typeof t != "object" || !t)
3518
3535
  return t;
3519
3536
  var i = t[Symbol.toPrimitive];
@@ -3525,7 +3542,7 @@ function to(t, e) {
3525
3542
  }
3526
3543
  return (e === "string" ? String : Number)(t);
3527
3544
  }
3528
- class io {
3545
+ class no {
3529
3546
  constructor(e, i, n) {
3530
3547
  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", () => {
3531
3548
  var r, o, s, a, d, l, u, h, c, f, g;
@@ -3590,9 +3607,9 @@ class io {
3590
3607
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
3591
3608
  }
3592
3609
  }
3593
- 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 || {});
3594
- const no = () => {
3595
- const t = S(!1), e = S(!1), i = S(null), n = _t(), r = _t();
3610
+ var je = /* @__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))(je || {});
3611
+ const ro = () => {
3612
+ const t = S(!1), e = S(!1), i = S(null), n = At(), r = At();
3596
3613
  return {
3597
3614
  visible: t,
3598
3615
  canRetry: e,
@@ -3600,7 +3617,7 @@ const no = () => {
3600
3617
  videoRef: n,
3601
3618
  adContainerRef: r
3602
3619
  };
3603
- }, ro = fe`
3620
+ }, oo = fe`
3604
3621
  ${$}
3605
3622
  position: fixed;
3606
3623
  left: 0;
@@ -3649,7 +3666,7 @@ const no = () => {
3649
3666
  cursor: pointer;
3650
3667
  }
3651
3668
  }
3652
- `, oo = (t) => {
3669
+ `, so = (t) => {
3653
3670
  let {
3654
3671
  onReady: e,
3655
3672
  state: i
@@ -3665,10 +3682,10 @@ const no = () => {
3665
3682
  r.value = null, o.value = !1;
3666
3683
  }));
3667
3684
  };
3668
- return Ve(() => {
3685
+ return Ge(() => {
3669
3686
  e();
3670
3687
  }, [e]), _("div", {
3671
- className: ro,
3688
+ className: oo,
3672
3689
  "data-visible": n.value,
3673
3690
  children: _("div", {
3674
3691
  className: "ads-wrapper",
@@ -3705,13 +3722,13 @@ const no = () => {
3705
3722
  });
3706
3723
  };
3707
3724
  function ee(t, e, i) {
3708
- return (e = so(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3725
+ return (e = ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3709
3726
  }
3710
- function so(t) {
3711
- var e = ao(t, "string");
3727
+ function ao(t) {
3728
+ var e = lo(t, "string");
3712
3729
  return typeof e == "symbol" ? e : e + "";
3713
3730
  }
3714
- function ao(t, e) {
3731
+ function lo(t, e) {
3715
3732
  if (typeof t != "object" || !t)
3716
3733
  return t;
3717
3734
  var i = t[Symbol.toPrimitive];
@@ -3723,9 +3740,9 @@ function ao(t, e) {
3723
3740
  }
3724
3741
  return (e === "string" ? String : Number)(t);
3725
3742
  }
3726
- class lo {
3743
+ class uo {
3727
3744
  constructor(e) {
3728
- 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) => {
3745
+ 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", ro()), ee(this, "init", async (i) => {
3729
3746
  if (this.initialized)
3730
3747
  return;
3731
3748
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -3741,10 +3758,10 @@ class lo {
3741
3758
  }, s.onerror = o, document.head.appendChild(s);
3742
3759
  }
3743
3760
  }), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
3744
- re(_(oo, {
3761
+ re(_(so, {
3745
3762
  state: this.state,
3746
3763
  onReady: () => {
3747
- this.ima = new io(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3764
+ this.ima = new no(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3748
3765
  }
3749
3766
  }), this.adsOverlay);
3750
3767
  }), this.initialized = !0;
@@ -3766,9 +3783,9 @@ class lo {
3766
3783
  r = !0;
3767
3784
  let c = !1;
3768
3785
  switch (h.raw.getErrorCode()) {
3769
- case $e.AUTOPLAY_DISALLOWED:
3770
- case $e.VIDEO_PLAY_ERROR:
3771
- case $e.ADS_REQUEST_NETWORK_ERROR: {
3786
+ case je.AUTOPLAY_DISALLOWED:
3787
+ case je.VIDEO_PLAY_ERROR:
3788
+ case je.ADS_REQUEST_NETWORK_ERROR: {
3772
3789
  c = !0;
3773
3790
  break;
3774
3791
  }
@@ -3810,13 +3827,13 @@ class lo {
3810
3827
  }
3811
3828
  }
3812
3829
  function W(t, e, i) {
3813
- return (e = uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3830
+ return (e = co(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3814
3831
  }
3815
- function uo(t) {
3816
- var e = co(t, "string");
3832
+ function co(t) {
3833
+ var e = ho(t, "string");
3817
3834
  return typeof e == "symbol" ? e : e + "";
3818
3835
  }
3819
- function co(t, e) {
3836
+ function ho(t, e) {
3820
3837
  if (typeof t != "object" || !t)
3821
3838
  return t;
3822
3839
  var i = t[Symbol.toPrimitive];
@@ -3828,11 +3845,11 @@ function co(t, e) {
3828
3845
  }
3829
3846
  return (e === "string" ? String : Number)(t);
3830
3847
  }
3831
- class ho {
3848
+ class fo {
3832
3849
  constructor(e) {
3833
- 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) => {
3850
+ 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", Ai()), W(this, "init", async (i) => {
3834
3851
  var n;
3835
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), re(_(Ai, {
3852
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), re(_(mi, {
3836
3853
  state: this.state
3837
3854
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3838
3855
  }), W(this, "destroy", () => {
@@ -3864,13 +3881,13 @@ class ho {
3864
3881
  }
3865
3882
  }
3866
3883
  function q(t, e, i) {
3867
- return (e = fo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3884
+ return (e = vo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3868
3885
  }
3869
- function fo(t) {
3870
- var e = vo(t, "string");
3886
+ function vo(t) {
3887
+ var e = go(t, "string");
3871
3888
  return typeof e == "symbol" ? e : e + "";
3872
3889
  }
3873
- function vo(t, e) {
3890
+ function go(t, e) {
3874
3891
  if (typeof t != "object" || !t)
3875
3892
  return t;
3876
3893
  var i = t[Symbol.toPrimitive];
@@ -3882,15 +3899,15 @@ function vo(t, e) {
3882
3899
  }
3883
3900
  return (e === "string" ? String : Number)(t);
3884
3901
  }
3885
- class go {
3902
+ class yo {
3886
3903
  constructor(e) {
3887
- 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) => {
3904
+ 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", Si()), q(this, "processUrl", (i) => {
3888
3905
  var s;
3889
3906
  const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
3890
3907
  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();
3891
3908
  }), q(this, "init", async (i) => {
3892
3909
  var n;
3893
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), re(_(Si, {
3910
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), re(_(Ei, {
3894
3911
  state: this.state
3895
3912
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
3896
3913
  }), q(this, "destroy", () => {
@@ -3927,13 +3944,13 @@ class go {
3927
3944
  }
3928
3945
  }
3929
3946
  function te(t, e, i) {
3930
- return (e = yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3947
+ return (e = po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3931
3948
  }
3932
- function yo(t) {
3933
- var e = po(t, "string");
3949
+ function po(t) {
3950
+ var e = wo(t, "string");
3934
3951
  return typeof e == "symbol" ? e : e + "";
3935
3952
  }
3936
- function po(t, e) {
3953
+ function wo(t, e) {
3937
3954
  if (typeof t != "object" || !t)
3938
3955
  return t;
3939
3956
  var i = t[Symbol.toPrimitive];
@@ -3945,12 +3962,12 @@ function po(t, e) {
3945
3962
  }
3946
3963
  return (e === "string" ? String : Number)(t);
3947
3964
  }
3948
- class wo {
3965
+ class bo {
3949
3966
  constructor(e) {
3950
3967
  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) => {
3951
3968
  if (!this.rewardAdManager) {
3952
3969
  const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minigame-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
3953
- this.rewardAdManager = new ki(n, o, i.params.keyValue);
3970
+ this.rewardAdManager = new Ii(n, o, i.params.keyValue);
3954
3971
  }
3955
3972
  }), te(this, "insertScript", () => {
3956
3973
  const i = "jolibox-google-gpt";
@@ -3998,13 +4015,13 @@ class wo {
3998
4015
  }
3999
4016
  }
4000
4017
  function be(t, e, i) {
4001
- return (e = bo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4018
+ return (e = _o(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4002
4019
  }
4003
- function bo(t) {
4004
- var e = _o(t, "string");
4020
+ function _o(t) {
4021
+ var e = Ao(t, "string");
4005
4022
  return typeof e == "symbol" ? e : e + "";
4006
4023
  }
4007
- function _o(t, e) {
4024
+ function Ao(t, e) {
4008
4025
  if (typeof t != "object" || !t)
4009
4026
  return t;
4010
4027
  var i = t[Symbol.toPrimitive];
@@ -4016,10 +4033,10 @@ function _o(t, e) {
4016
4033
  }
4017
4034
  return (e === "string" ? String : Number)(t);
4018
4035
  }
4019
- class Co {
4036
+ class Do {
4020
4037
  constructor(e) {
4021
4038
  if (be(this, "context", void 0), be(this, "contextInfo", void 0), be(this, "providers", {}), be(this, "adsTrackSerializer", void 0), be(this, "initialized", !1), e)
4022
- this.context = e, this.adsTrackSerializer = new Qt(e), this.contextInfo = this.context.getContextInfo();
4039
+ this.context = e, this.adsTrackSerializer = new Zt(e), this.contextInfo = this.context.getContextInfo();
4023
4040
  else
4024
4041
  throw new Error("JoliboxAdsForVideo requires a configuration object");
4025
4042
  }
@@ -4070,22 +4087,22 @@ class Co {
4070
4087
  for (const i of e)
4071
4088
  switch (i.provider) {
4072
4089
  case "GOOGLE_GPT": {
4073
- const n = new wo(this.context);
4090
+ const n = new bo(this.context);
4074
4091
  await n.init(i), this.providers.GOOGLE_GPT = n;
4075
4092
  break;
4076
4093
  }
4077
4094
  case "GOOGLE_IMA": {
4078
- const n = new lo(this.context);
4095
+ const n = new uo(this.context);
4079
4096
  await n.init(i), this.providers.GOOGLE_IMA = n;
4080
4097
  break;
4081
4098
  }
4082
4099
  case "OKSPIN": {
4083
- const n = new ho(this.context);
4100
+ const n = new fo(this.context);
4084
4101
  await n.init(i), this.providers.OKSPIN = n;
4085
4102
  break;
4086
4103
  }
4087
4104
  case "APPSROCKETS": {
4088
- const n = new go(this.context);
4105
+ const n = new yo(this.context);
4089
4106
  await n.init(i), this.providers.APPSROCKETS = n;
4090
4107
  break;
4091
4108
  }
@@ -4132,7 +4149,7 @@ class Co {
4132
4149
  return;
4133
4150
  }
4134
4151
  let c = !0, f = null;
4135
- const g = new Xr(this.context);
4152
+ const g = new Qr(this.context);
4136
4153
  for (; h.length > 0; ) {
4137
4154
  const v = h.shift(), w = this.providers[v.provider];
4138
4155
  if (w) {
@@ -4154,13 +4171,13 @@ class Co {
4154
4171
  }
4155
4172
  }
4156
4173
  function ae(t, e, i) {
4157
- return (e = Ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4174
+ return (e = mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4158
4175
  }
4159
- function Ao(t) {
4160
- var e = mo(t, "string");
4176
+ function mo(t) {
4177
+ var e = So(t, "string");
4161
4178
  return typeof e == "symbol" ? e : e + "";
4162
4179
  }
4163
- function mo(t, e) {
4180
+ function So(t, e) {
4164
4181
  if (typeof t != "object" || !t)
4165
4182
  return t;
4166
4183
  var i = t[Symbol.toPrimitive];
@@ -4172,18 +4189,21 @@ function mo(t, e) {
4172
4189
  }
4173
4190
  return (e === "string" ? String : Number)(t);
4174
4191
  }
4175
- class Do extends Error {
4192
+ class Lo extends Error {
4176
4193
  constructor(e) {
4177
4194
  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;
4178
4195
  }
4179
4196
  }
4180
4197
  export {
4181
4198
  C as AFVWrappedError,
4182
- kn as GoogleAdSenseProvider,
4183
- lo as GoogleIMAProvider,
4184
- To as JoliboxAdsForGame,
4185
- Co as JoliboxAdsForVideo,
4186
- Pr as OKSpinForGameProvider,
4187
- ho as OKSpinForVideoProvider,
4188
- Do as ResponseError
4199
+ In as GoogleAdSenseProvider,
4200
+ uo as GoogleIMAProvider,
4201
+ zr as InterstitialAdManager,
4202
+ Co as JoliboxAdsForGame,
4203
+ Do as JoliboxAdsForVideo,
4204
+ Nr as OKSpinForGameProvider,
4205
+ fo as OKSpinForVideoProvider,
4206
+ Lo as ResponseError,
4207
+ Ii as RewardAdManager,
4208
+ ki as initGPTServices
4189
4209
  };