gearboxdownloadmodal 9.5.15 → 9.5.17

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import Ki, { useState as M, useEffect as mi, useRef as me, createContext as il, useReducer as ts, useDebugValue as el, useCallback as ho, useContext as tl, forwardRef as al, isValidElement as Fe, cloneElement as fa, useLayoutEffect as ol } from "react";
1
+ import Ki, { useState as M, useEffect as qi, useRef as me, createContext as il, useReducer as ts, useDebugValue as el, useCallback as ho, useContext as tl, forwardRef as al, isValidElement as Fe, cloneElement as fa, useLayoutEffect as ol } from "react";
2
2
  import rl from "react-dom";
3
3
  import './index.css';function sl(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -81,13 +81,13 @@ function Al() {
81
81
  switch (Z) {
82
82
  case K:
83
83
  return "Fragment";
84
- case E:
84
+ case U:
85
85
  return "Profiler";
86
86
  case S:
87
87
  return "StrictMode";
88
88
  case G:
89
89
  return "Suspense";
90
- case x:
90
+ case F:
91
91
  return "SuspenseList";
92
92
  case X:
93
93
  return "Activity";
@@ -103,14 +103,14 @@ function Al() {
103
103
  case W:
104
104
  return (Z._context.displayName || "Context") + ".Consumer";
105
105
  case h:
106
- var U = Z.render;
107
- return Z = Z.displayName, Z || (Z = U.displayName || U.name || "", Z = Z !== "" ? "ForwardRef(" + Z + ")" : "ForwardRef"), Z;
106
+ var R = Z.render;
107
+ return Z = Z.displayName, Z || (Z = R.displayName || R.name || "", Z = Z !== "" ? "ForwardRef(" + Z + ")" : "ForwardRef"), Z;
108
108
  case Q:
109
- return U = Z.displayName || null, U !== null ? U : e(Z.type) || "Memo";
109
+ return R = Z.displayName || null, R !== null ? R : e(Z.type) || "Memo";
110
110
  case T:
111
- U = Z._payload, Z = Z._init;
111
+ R = Z._payload, Z = Z._init;
112
112
  try {
113
- return e(Z(U));
113
+ return e(Z(R));
114
114
  } catch {
115
115
  }
116
116
  }
@@ -122,17 +122,17 @@ function Al() {
122
122
  function t(Z) {
123
123
  try {
124
124
  i(Z);
125
- var U = !1;
125
+ var R = !1;
126
126
  } catch {
127
- U = !0;
127
+ R = !0;
128
128
  }
129
- if (U) {
130
- U = console;
131
- var b = U.error, R = typeof Symbol == "function" && Symbol.toStringTag && Z[Symbol.toStringTag] || Z.constructor.name || "Object";
129
+ if (R) {
130
+ R = console;
131
+ var b = R.error, E = typeof Symbol == "function" && Symbol.toStringTag && Z[Symbol.toStringTag] || Z.constructor.name || "Object";
132
132
  return b.call(
133
- U,
133
+ R,
134
134
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
135
- R
135
+ E
136
136
  ), i(Z);
137
137
  }
138
138
  }
@@ -142,8 +142,8 @@ function Al() {
142
142
  if (typeof Z == "object" && Z !== null && Z.$$typeof === T)
143
143
  return "<...>";
144
144
  try {
145
- var U = e(Z);
146
- return U ? "<" + U + ">" : "<...>";
145
+ var R = e(Z);
146
+ return R ? "<" + R + ">" : "<...>";
147
147
  } catch {
148
148
  return "<...>";
149
149
  }
@@ -157,17 +157,17 @@ function Al() {
157
157
  }
158
158
  function s(Z) {
159
159
  if (P.call(Z, "key")) {
160
- var U = Object.getOwnPropertyDescriptor(Z, "key").get;
161
- if (U && U.isReactWarning)
160
+ var R = Object.getOwnPropertyDescriptor(Z, "key").get;
161
+ if (R && R.isReactWarning)
162
162
  return !1;
163
163
  }
164
164
  return Z.key !== void 0;
165
165
  }
166
- function n(Z, U) {
166
+ function n(Z, R) {
167
167
  function b() {
168
168
  Y || (Y = !0, console.error(
169
169
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
170
- U
170
+ R
171
171
  ));
172
172
  }
173
173
  b.isReactWarning = !0, Object.defineProperty(Z, "key", {
@@ -181,14 +181,14 @@ function Al() {
181
181
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
182
182
  )), Z = this.props.ref, Z !== void 0 ? Z : null;
183
183
  }
184
- function A(Z, U, b, R, f, O) {
184
+ function A(Z, R, b, E, f, O) {
185
185
  var N = b.ref;
186
186
  return Z = {
187
187
  $$typeof: c,
188
188
  type: Z,
189
- key: U,
189
+ key: R,
190
190
  props: b,
191
- _owner: R
191
+ _owner: E
192
192
  }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(Z, "ref", {
193
193
  enumerable: !1,
194
194
  get: l
@@ -214,13 +214,13 @@ function Al() {
214
214
  value: O
215
215
  }), Object.freeze && (Object.freeze(Z.props), Object.freeze(Z)), Z;
216
216
  }
217
- function m(Z, U, b, R, f, O) {
218
- var N = U.children;
217
+ function m(Z, R, b, E, f, O) {
218
+ var N = R.children;
219
219
  if (N !== void 0)
220
- if (R)
220
+ if (E)
221
221
  if (g(N)) {
222
- for (R = 0; R < N.length; R++)
223
- p(N[R]);
222
+ for (E = 0; E < N.length; E++)
223
+ p(N[E]);
224
224
  Object.freeze && Object.freeze(N);
225
225
  } else
226
226
  console.error(
@@ -228,30 +228,30 @@ function Al() {
228
228
  );
229
229
  else
230
230
  p(N);
231
- if (P.call(U, "key")) {
231
+ if (P.call(R, "key")) {
232
232
  N = e(Z);
233
- var H = Object.keys(U).filter(function(ii) {
233
+ var H = Object.keys(R).filter(function(ii) {
234
234
  return ii !== "key";
235
235
  });
236
- R = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", k[N + R] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
236
+ E = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", k[N + E] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
237
237
  `A props object containing a "key" prop is being spread into JSX:
238
238
  let props = %s;
239
239
  <%s {...props} />
240
240
  React keys must be passed directly to JSX without using spread:
241
241
  let props = %s;
242
242
  <%s key={someKey} {...props} />`,
243
- R,
243
+ E,
244
244
  N,
245
245
  H,
246
246
  N
247
- ), k[N + R] = !0);
247
+ ), k[N + E] = !0);
248
248
  }
249
- if (N = null, b !== void 0 && (t(b), N = "" + b), s(U) && (t(U.key), N = "" + U.key), "key" in U) {
249
+ if (N = null, b !== void 0 && (t(b), N = "" + b), s(R) && (t(R.key), N = "" + R.key), "key" in R) {
250
250
  b = {};
251
- for (var $ in U)
252
- $ !== "key" && (b[$] = U[$]);
251
+ for (var $ in R)
252
+ $ !== "key" && (b[$] = R[$]);
253
253
  } else
254
- b = U;
254
+ b = R;
255
255
  return N && n(
256
256
  b,
257
257
  typeof Z == "function" ? Z.displayName || Z.name || "Unknown" : Z
@@ -270,7 +270,7 @@ React keys must be passed directly to JSX without using spread:
270
270
  function u(Z) {
271
271
  return typeof Z == "object" && Z !== null && Z.$$typeof === c;
272
272
  }
273
- var I = Ki, c = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), K = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), V = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), v = I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, g = Array.isArray, L = console.createTask ? console.createTask : function() {
273
+ var I = Ki, c = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), K = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), V = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), v = I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, g = Array.isArray, L = console.createTask ? console.createTask : function() {
274
274
  return null;
275
275
  };
276
276
  I = {
@@ -282,25 +282,25 @@ React keys must be passed directly to JSX without using spread:
282
282
  I,
283
283
  r
284
284
  )(), D = L(a(r)), k = {};
285
- $e.Fragment = K, $e.jsx = function(Z, U, b) {
286
- var R = 1e4 > v.recentlyCreatedOwnerStacks++;
285
+ $e.Fragment = K, $e.jsx = function(Z, R, b) {
286
+ var E = 1e4 > v.recentlyCreatedOwnerStacks++;
287
287
  return m(
288
288
  Z,
289
- U,
289
+ R,
290
290
  b,
291
291
  !1,
292
- R ? Error("react-stack-top-frame") : J,
293
- R ? L(a(Z)) : D
292
+ E ? Error("react-stack-top-frame") : J,
293
+ E ? L(a(Z)) : D
294
294
  );
295
- }, $e.jsxs = function(Z, U, b) {
296
- var R = 1e4 > v.recentlyCreatedOwnerStacks++;
295
+ }, $e.jsxs = function(Z, R, b) {
296
+ var E = 1e4 > v.recentlyCreatedOwnerStacks++;
297
297
  return m(
298
298
  Z,
299
- U,
299
+ R,
300
300
  b,
301
301
  !0,
302
- R ? Error("react-stack-top-frame") : J,
303
- R ? L(a(Z)) : D
302
+ E ? Error("react-stack-top-frame") : J,
303
+ E ? L(a(Z)) : D
304
304
  );
305
305
  };
306
306
  }()), $e;
@@ -309,7 +309,7 @@ process.env.NODE_ENV === "production" ? Xa.exports = ll() : Xa.exports = Al();
309
309
  var q = Xa.exports;
310
310
  const as = ({ children: e }) => {
311
311
  const [i, t] = M(window.innerWidth);
312
- return mi(() => {
312
+ return qi(() => {
313
313
  const a = () => {
314
314
  t(window.innerWidth);
315
315
  };
@@ -683,10 +683,10 @@ const Bl = (e) => {
683
683
  asap: Xl,
684
684
  isIterable: vl
685
685
  };
686
- function oi(e, i, t, a, o) {
686
+ function ri(e, i, t, a, o) {
687
687
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", i && (this.code = i), t && (this.config = t), a && (this.request = a), o && (this.response = o, this.status = o.status ? o.status : null);
688
688
  }
689
- y.inherits(oi, Error, {
689
+ y.inherits(ri, Error, {
690
690
  toJSON: function() {
691
691
  return {
692
692
  // Standard
@@ -707,7 +707,7 @@ y.inherits(oi, Error, {
707
707
  };
708
708
  }
709
709
  });
710
- const ps = oi.prototype, us = {};
710
+ const ps = ri.prototype, us = {};
711
711
  [
712
712
  "ERR_BAD_OPTION_VALUE",
713
713
  "ERR_BAD_OPTION",
@@ -725,15 +725,15 @@ const ps = oi.prototype, us = {};
725
725
  ].forEach((e) => {
726
726
  us[e] = { value: e };
727
727
  });
728
- Object.defineProperties(oi, us);
728
+ Object.defineProperties(ri, us);
729
729
  Object.defineProperty(ps, "isAxiosError", { value: !0 });
730
- oi.from = (e, i, t, a, o, r) => {
730
+ ri.from = (e, i, t, a, o, r) => {
731
731
  const s = Object.create(ps);
732
732
  y.toFlatObject(e, s, function(m) {
733
733
  return m !== Error.prototype;
734
734
  }, (A) => A !== "isAxiosError");
735
735
  const n = e && e.message ? e.message : "Error", l = i == null && e ? e.code : i;
736
- return oi.call(s, n, l, t, a, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", r && Object.assign(s, r), s;
736
+ return ri.call(s, n, l, t, a, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", r && Object.assign(s, r), s;
737
737
  };
738
738
  const Hl = null;
739
739
  function Ha(e) {
@@ -774,7 +774,7 @@ function ma(e, i, t) {
774
774
  if (y.isBoolean(c))
775
775
  return c.toString();
776
776
  if (!l && y.isBlob(c))
777
- throw new oi("Blob is not supported. Use a Buffer instead.");
777
+ throw new ri("Blob is not supported. Use a Buffer instead.");
778
778
  return y.isArrayBuffer(c) || y.isTypedArray(c) ? l && typeof Blob == "function" ? new Blob([c]) : Buffer.from(c) : c;
779
779
  }
780
780
  function m(c, d, K) {
@@ -802,14 +802,14 @@ function ma(e, i, t) {
802
802
  if (!y.isUndefined(c)) {
803
803
  if (p.indexOf(c) !== -1)
804
804
  throw Error("Circular reference detected in " + d.join("."));
805
- p.push(c), y.forEach(c, function(S, E) {
805
+ p.push(c), y.forEach(c, function(S, U) {
806
806
  (!(y.isUndefined(S) || S === null) && o.call(
807
807
  i,
808
808
  S,
809
- y.isString(E) ? E.trim() : E,
809
+ y.isString(U) ? U.trim() : U,
810
810
  d,
811
811
  u
812
- )) === !0 && I(S, d ? d.concat(E) : [E]);
812
+ )) === !0 && I(S, d ? d.concat(U) : [U]);
813
813
  }), p.pop();
814
814
  }
815
815
  }
@@ -1026,7 +1026,7 @@ const yo = {
1026
1026
  return JSON.parse(i, this.parseReviver);
1027
1027
  } catch (n) {
1028
1028
  if (s)
1029
- throw n.name === "SyntaxError" ? oi.from(n, oi.ERR_BAD_RESPONSE, this, null, this.response) : n;
1029
+ throw n.name === "SyntaxError" ? ri.from(n, ri.ERR_BAD_RESPONSE, this, null, this.response) : n;
1030
1030
  }
1031
1031
  }
1032
1032
  return i;
@@ -1270,16 +1270,16 @@ function hs(e) {
1270
1270
  return !!(e && e.__CANCEL__);
1271
1271
  }
1272
1272
  function Te(e, i, t) {
1273
- oi.call(this, e ?? "canceled", oi.ERR_CANCELED, i, t), this.name = "CanceledError";
1273
+ ri.call(this, e ?? "canceled", ri.ERR_CANCELED, i, t), this.name = "CanceledError";
1274
1274
  }
1275
- y.inherits(Te, oi, {
1275
+ y.inherits(Te, ri, {
1276
1276
  __CANCEL__: !0
1277
1277
  });
1278
1278
  function Ss(e, i, t) {
1279
1279
  const a = t.config.validateStatus;
1280
- !t.status || !a || a(t.status) ? e(t) : i(new oi(
1280
+ !t.status || !a || a(t.status) ? e(t) : i(new ri(
1281
1281
  "Request failed with status code " + t.status,
1282
- [oi.ERR_BAD_REQUEST, oi.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
1282
+ [ri.ERR_BAD_REQUEST, ri.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
1283
1283
  t.config,
1284
1284
  t.request,
1285
1285
  t
@@ -1499,25 +1499,25 @@ const gs = (e) => {
1499
1499
  config: e,
1500
1500
  request: K
1501
1501
  };
1502
- Ss(function(x) {
1503
- t(x), d();
1504
- }, function(x) {
1505
- a(x), d();
1502
+ Ss(function(F) {
1503
+ t(F), d();
1504
+ }, function(F) {
1505
+ a(F), d();
1506
1506
  }, h), K = null;
1507
1507
  }
1508
1508
  "onloadend" in K ? K.onloadend = S : K.onreadystatechange = function() {
1509
1509
  !K || K.readyState !== 4 || K.status === 0 && !(K.responseURL && K.responseURL.indexOf("file:") === 0) || setTimeout(S);
1510
1510
  }, K.onabort = function() {
1511
- K && (a(new oi("Request aborted", oi.ECONNABORTED, e, K)), K = null);
1511
+ K && (a(new ri("Request aborted", ri.ECONNABORTED, e, K)), K = null);
1512
1512
  }, K.onerror = function(V) {
1513
- const h = V && V.message ? V.message : "Network Error", G = new oi(h, oi.ERR_NETWORK, e, K);
1513
+ const h = V && V.message ? V.message : "Network Error", G = new ri(h, ri.ERR_NETWORK, e, K);
1514
1514
  G.event = V || null, a(G), K = null;
1515
1515
  }, K.ontimeout = function() {
1516
1516
  let V = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1517
1517
  const h = o.transitional || ds;
1518
- o.timeoutErrorMessage && (V = o.timeoutErrorMessage), a(new oi(
1518
+ o.timeoutErrorMessage && (V = o.timeoutErrorMessage), a(new ri(
1519
1519
  V,
1520
- h.clarifyTimeoutError ? oi.ETIMEDOUT : oi.ECONNABORTED,
1520
+ h.clarifyTimeoutError ? ri.ETIMEDOUT : ri.ECONNABORTED,
1521
1521
  e,
1522
1522
  K
1523
1523
  )), K = null;
@@ -1526,9 +1526,9 @@ const gs = (e) => {
1526
1526
  }), y.isUndefined(o.withCredentials) || (K.withCredentials = !!o.withCredentials), n && n !== "json" && (K.responseType = o.responseType), A && ([u, c] = Bt(A, !0), K.addEventListener("progress", u)), l && K.upload && ([p, I] = Bt(l), K.upload.addEventListener("progress", p), K.upload.addEventListener("loadend", I)), (o.cancelToken || o.signal) && (m = (W) => {
1527
1527
  K && (a(!W || W.type ? new Te(null, e, K) : W), K.abort(), K = null);
1528
1528
  }, o.cancelToken && o.cancelToken.subscribe(m), o.signal && (o.signal.aborted ? m() : o.signal.addEventListener("abort", m)));
1529
- const E = hA(o.url);
1530
- if (E && Gi.protocols.indexOf(E) === -1) {
1531
- a(new oi("Unsupported protocol " + E + ":", oi.ERR_BAD_REQUEST, e));
1529
+ const U = hA(o.url);
1530
+ if (U && Gi.protocols.indexOf(U) === -1) {
1531
+ a(new ri("Unsupported protocol " + U + ":", ri.ERR_BAD_REQUEST, e));
1532
1532
  return;
1533
1533
  }
1534
1534
  K.send(r || null);
@@ -1541,11 +1541,11 @@ const gs = (e) => {
1541
1541
  if (!o) {
1542
1542
  o = !0, n();
1543
1543
  const m = A instanceof Error ? A : this.reason;
1544
- a.abort(m instanceof oi ? m : new Te(m instanceof Error ? m.message : m));
1544
+ a.abort(m instanceof ri ? m : new Te(m instanceof Error ? m.message : m));
1545
1545
  }
1546
1546
  };
1547
1547
  let s = i && setTimeout(() => {
1548
- s = null, r(new oi(`timeout ${i} of ms exceeded`, oi.ETIMEDOUT));
1548
+ s = null, r(new ri(`timeout ${i} of ms exceeded`, ri.ETIMEDOUT));
1549
1549
  }, i);
1550
1550
  const n = () => {
1551
1551
  e && (s && clearTimeout(s), s = null, e.forEach((A) => {
@@ -1650,7 +1650,7 @@ const gs = (e) => {
1650
1650
  let S = d && d[c];
1651
1651
  if (S)
1652
1652
  return S.call(d);
1653
- throw new oi(`Response type '${c}' is not supported`, oi.ERR_NOT_SUPPORT, K);
1653
+ throw new ri(`Response type '${c}' is not supported`, ri.ERR_NOT_SUPPORT, K);
1654
1654
  });
1655
1655
  });
1656
1656
  const u = async (c) => {
@@ -1676,18 +1676,18 @@ const gs = (e) => {
1676
1676
  url: d,
1677
1677
  method: K,
1678
1678
  data: S,
1679
- signal: E,
1679
+ signal: U,
1680
1680
  cancelToken: W,
1681
1681
  timeout: V,
1682
1682
  onDownloadProgress: h,
1683
1683
  onUploadProgress: G,
1684
- responseType: x,
1684
+ responseType: F,
1685
1685
  headers: Q,
1686
1686
  withCredentials: T = "same-origin",
1687
1687
  fetchOptions: X
1688
1688
  } = gs(c), B = i || fetch;
1689
- x = x ? (x + "").toLowerCase() : "text";
1690
- let v = EA([E, W && W.toAbortSignal()], V), P = null;
1689
+ F = F ? (F + "").toLowerCase() : "text";
1690
+ let v = EA([U, W && W.toAbortSignal()], V), P = null;
1691
1691
  const g = v && v.unsubscribe && (() => {
1692
1692
  v.unsubscribe();
1693
1693
  });
@@ -1698,13 +1698,13 @@ const gs = (e) => {
1698
1698
  method: "POST",
1699
1699
  body: S,
1700
1700
  duplex: "half"
1701
- }), U;
1702
- if (y.isFormData(S) && (U = Z.headers.get("content-type")) && Q.setContentType(U), Z.body) {
1703
- const [b, R] = ir(
1701
+ }), R;
1702
+ if (y.isFormData(S) && (R = Z.headers.get("content-type")) && Q.setContentType(R), Z.body) {
1703
+ const [b, E] = ir(
1704
1704
  L,
1705
1705
  Bt(er(G))
1706
1706
  );
1707
- S = ar(Z.body, or, b, R);
1707
+ S = ar(Z.body, or, b, E);
1708
1708
  }
1709
1709
  }
1710
1710
  y.isString(T) || (T = T ? "include" : "omit");
@@ -1719,27 +1719,27 @@ const gs = (e) => {
1719
1719
  };
1720
1720
  P = r && new t(d, C);
1721
1721
  let J = await (r ? B(P, X) : B(d, C));
1722
- const D = m && (x === "stream" || x === "response");
1722
+ const D = m && (F === "stream" || F === "response");
1723
1723
  if (m && (h || D && g)) {
1724
1724
  const Z = {};
1725
1725
  ["status", "statusText", "headers"].forEach((f) => {
1726
1726
  Z[f] = J[f];
1727
1727
  });
1728
- const U = y.toFiniteNumber(J.headers.get("content-length")), [b, R] = h && ir(
1729
- U,
1728
+ const R = y.toFiniteNumber(J.headers.get("content-length")), [b, E] = h && ir(
1729
+ R,
1730
1730
  Bt(er(h), !0)
1731
1731
  ) || [];
1732
1732
  J = new a(
1733
1733
  ar(J.body, or, b, () => {
1734
- R && R(), g && g();
1734
+ E && E(), g && g();
1735
1735
  }),
1736
1736
  Z
1737
1737
  );
1738
1738
  }
1739
- x = x || "text";
1740
- let k = await p[y.findKey(p, x) || "text"](J, c);
1741
- return !D && g && g(), await new Promise((Z, U) => {
1742
- Ss(Z, U, {
1739
+ F = F || "text";
1740
+ let k = await p[y.findKey(p, F) || "text"](J, c);
1741
+ return !D && g && g(), await new Promise((Z, R) => {
1742
+ Ss(Z, R, {
1743
1743
  data: k,
1744
1744
  headers: Hi.from(J.headers),
1745
1745
  status: J.status,
@@ -1750,11 +1750,11 @@ const gs = (e) => {
1750
1750
  });
1751
1751
  } catch (Y) {
1752
1752
  throw g && g(), Y && Y.name === "TypeError" && /Load failed|fetch/i.test(Y.message) ? Object.assign(
1753
- new oi("Network Error", oi.ERR_NETWORK, c, P),
1753
+ new ri("Network Error", ri.ERR_NETWORK, c, P),
1754
1754
  {
1755
1755
  cause: Y.cause || Y
1756
1756
  }
1757
- ) : oi.from(Y, Y && Y.code, c, P);
1757
+ ) : ri.from(Y, Y && Y.code, c, P);
1758
1758
  }
1759
1759
  };
1760
1760
  }, bA = /* @__PURE__ */ new Map(), ys = (e) => {
@@ -1796,7 +1796,7 @@ function jA(e, i) {
1796
1796
  a = e[s];
1797
1797
  let n;
1798
1798
  if (o = a, !QA(a) && (o = Vo[(n = String(a)).toLowerCase()], o === void 0))
1799
- throw new oi(`Unknown adapter '${n}'`);
1799
+ throw new ri(`Unknown adapter '${n}'`);
1800
1800
  if (o && (y.isFunction(o) || (o = o.get(i))))
1801
1801
  break;
1802
1802
  r[n || "#" + s] = o;
@@ -1808,7 +1808,7 @@ function jA(e, i) {
1808
1808
  let n = t ? s.length > 1 ? `since :
1809
1809
  ` + s.map(lr).join(`
1810
1810
  `) : " " + lr(s[0]) : "as no adapter specified";
1811
- throw new oi(
1811
+ throw new ri(
1812
1812
  "There is no suitable adapter to dispatch the request " + n,
1813
1813
  "ERR_NOT_SUPPORT"
1814
1814
  );
@@ -1862,9 +1862,9 @@ pa.transitional = function(i, t, a) {
1862
1862
  }
1863
1863
  return (r, s, n) => {
1864
1864
  if (i === !1)
1865
- throw new oi(
1865
+ throw new ri(
1866
1866
  o(s, " has been removed" + (t ? " in " + t : "")),
1867
- oi.ERR_DEPRECATED
1867
+ ri.ERR_DEPRECATED
1868
1868
  );
1869
1869
  return t && !mr[s] && (mr[s] = !0, console.warn(
1870
1870
  o(
@@ -1879,7 +1879,7 @@ pa.spelling = function(i) {
1879
1879
  };
1880
1880
  function NA(e, i, t) {
1881
1881
  if (typeof e != "object")
1882
- throw new oi("options must be an object", oi.ERR_BAD_OPTION_VALUE);
1882
+ throw new ri("options must be an object", ri.ERR_BAD_OPTION_VALUE);
1883
1883
  const a = Object.keys(e);
1884
1884
  let o = a.length;
1885
1885
  for (; o-- > 0; ) {
@@ -1887,11 +1887,11 @@ function NA(e, i, t) {
1887
1887
  if (s) {
1888
1888
  const n = e[r], l = n === void 0 || s(n, r, e);
1889
1889
  if (l !== !0)
1890
- throw new oi("option " + r + " must be " + l, oi.ERR_BAD_OPTION_VALUE);
1890
+ throw new ri("option " + r + " must be " + l, ri.ERR_BAD_OPTION_VALUE);
1891
1891
  continue;
1892
1892
  }
1893
1893
  if (t !== !0)
1894
- throw new oi("Unknown option " + r, oi.ERR_BAD_OPTION);
1894
+ throw new ri("Unknown option " + r, ri.ERR_BAD_OPTION);
1895
1895
  }
1896
1896
  }
1897
1897
  const Qt = {
@@ -2187,27 +2187,27 @@ function Js(e) {
2187
2187
  return Js(Ue(e, o));
2188
2188
  }, t;
2189
2189
  }
2190
- const Mi = Js(ko);
2191
- Mi.Axios = jt;
2192
- Mi.CanceledError = Te;
2193
- Mi.CancelToken = FA;
2194
- Mi.isCancel = hs;
2195
- Mi.VERSION = Vs;
2196
- Mi.toFormData = ma;
2197
- Mi.AxiosError = oi;
2198
- Mi.Cancel = Mi.CanceledError;
2199
- Mi.all = function(i) {
2190
+ const Ei = Js(ko);
2191
+ Ei.Axios = jt;
2192
+ Ei.CanceledError = Te;
2193
+ Ei.CancelToken = FA;
2194
+ Ei.isCancel = hs;
2195
+ Ei.VERSION = Vs;
2196
+ Ei.toFormData = ma;
2197
+ Ei.AxiosError = ri;
2198
+ Ei.Cancel = Ei.CanceledError;
2199
+ Ei.all = function(i) {
2200
2200
  return Promise.all(i);
2201
2201
  };
2202
- Mi.spread = xA;
2203
- Mi.isAxiosError = OA;
2204
- Mi.mergeConfig = Ue;
2205
- Mi.AxiosHeaders = Hi;
2206
- Mi.formToJSON = (e) => Zs(y.isHTMLForm(e) ? new FormData(e) : e);
2207
- Mi.getAdapter = ks.getAdapter;
2208
- Mi.HttpStatusCode = zA;
2209
- Mi.default = Mi;
2210
- const wA = Mi;
2202
+ Ei.spread = xA;
2203
+ Ei.isAxiosError = OA;
2204
+ Ei.mergeConfig = Ue;
2205
+ Ei.AxiosHeaders = Hi;
2206
+ Ei.formToJSON = (e) => Zs(y.isHTMLForm(e) ? new FormData(e) : e);
2207
+ Ei.getAdapter = ks.getAdapter;
2208
+ Ei.HttpStatusCode = zA;
2209
+ Ei.default = Ei;
2210
+ const wA = Ei;
2211
2211
  /*! typescript-cookie v1.0.6 | MIT */
2212
2212
  const Ws = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Ms = (e) => encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent), Wo = decodeURIComponent, Mo = (e) => (e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent));
2213
2213
  function TA(e) {
@@ -2292,22 +2292,22 @@ async function io(e, i, t) {
2292
2292
  let pr = null;
2293
2293
  const fA = ({ name: e, versionId: i, api: t, onNameChange: a }) => {
2294
2294
  const [o, r] = M(e), [s, n] = M(!1), l = me(e), A = window.innerWidth < 768, m = window.innerWidth >= 768 && window.innerWidth < 1440, p = e !== "Flex";
2295
- mi(() => {
2295
+ qi(() => {
2296
2296
  r(e), l.current = e;
2297
2297
  }, [e]);
2298
2298
  const u = (S) => {
2299
2299
  clearTimeout(pr), pr = setTimeout(() => {
2300
2300
  i && t && S !== l.current && io(i, { name: S }, t).then(() => {
2301
2301
  l.current = S, console.log("Version name updated successfully"), a && a(i, S);
2302
- }).catch((E) => {
2303
- console.error("Error updating version name:", E);
2302
+ }).catch((U) => {
2303
+ console.error("Error updating version name:", U);
2304
2304
  });
2305
2305
  }, 1e3);
2306
2306
  }, I = () => {
2307
2307
  n(!0);
2308
2308
  }, c = (S) => {
2309
- const E = S.target.value;
2310
- r(E), u(E);
2309
+ const U = S.target.value;
2310
+ r(U), u(U);
2311
2311
  }, d = () => {
2312
2312
  n(!1);
2313
2313
  }, K = (S) => {
@@ -2406,7 +2406,7 @@ function XA() {
2406
2406
  if (ur)
2407
2407
  return Zi;
2408
2408
  ur = 1;
2409
- var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, n = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, A = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, I = e ? Symbol.for("react.memo") : 60115, c = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, K = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
2409
+ var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, n = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, A = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, I = e ? Symbol.for("react.memo") : 60115, c = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, K = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
2410
2410
  function W(h) {
2411
2411
  if (typeof h == "object" && h !== null) {
2412
2412
  var G = h.$$typeof;
@@ -2465,7 +2465,7 @@ function XA() {
2465
2465
  }, Zi.isSuspense = function(h) {
2466
2466
  return W(h) === p;
2467
2467
  }, Zi.isValidElementType = function(h) {
2468
- return typeof h == "string" || typeof h == "function" || h === a || h === A || h === r || h === o || h === p || h === u || typeof h == "object" && h !== null && (h.$$typeof === c || h.$$typeof === I || h.$$typeof === s || h.$$typeof === n || h.$$typeof === m || h.$$typeof === K || h.$$typeof === S || h.$$typeof === E || h.$$typeof === d);
2468
+ return typeof h == "string" || typeof h == "function" || h === a || h === A || h === r || h === o || h === p || h === u || typeof h == "object" && h !== null && (h.$$typeof === c || h.$$typeof === I || h.$$typeof === s || h.$$typeof === n || h.$$typeof === m || h.$$typeof === K || h.$$typeof === S || h.$$typeof === U || h.$$typeof === d);
2469
2469
  }, Zi.typeOf = W, Zi;
2470
2470
  }
2471
2471
  var hi = {};
@@ -2480,10 +2480,10 @@ var hi = {};
2480
2480
  var Ir;
2481
2481
  function vA() {
2482
2482
  return Ir || (Ir = 1, process.env.NODE_ENV !== "production" && function() {
2483
- var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, n = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, A = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, I = e ? Symbol.for("react.memo") : 60115, c = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, K = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
2483
+ var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, n = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, A = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, u = e ? Symbol.for("react.suspense_list") : 60120, I = e ? Symbol.for("react.memo") : 60115, c = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, K = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
2484
2484
  function W(j) {
2485
2485
  return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2486
- j === a || j === A || j === r || j === o || j === p || j === u || typeof j == "object" && j !== null && (j.$$typeof === c || j.$$typeof === I || j.$$typeof === s || j.$$typeof === n || j.$$typeof === m || j.$$typeof === K || j.$$typeof === S || j.$$typeof === E || j.$$typeof === d);
2486
+ j === a || j === A || j === r || j === o || j === p || j === u || typeof j == "object" && j !== null && (j.$$typeof === c || j.$$typeof === I || j.$$typeof === s || j.$$typeof === n || j.$$typeof === m || j.$$typeof === K || j.$$typeof === S || j.$$typeof === U || j.$$typeof === d);
2487
2487
  }
2488
2488
  function V(j) {
2489
2489
  if (typeof j == "object" && j !== null) {
@@ -2500,14 +2500,14 @@ function vA() {
2500
2500
  case p:
2501
2501
  return w;
2502
2502
  default:
2503
- var ri = w && w.$$typeof;
2504
- switch (ri) {
2503
+ var ai = w && w.$$typeof;
2504
+ switch (ai) {
2505
2505
  case n:
2506
2506
  case m:
2507
2507
  case c:
2508
2508
  case I:
2509
2509
  case s:
2510
- return ri;
2510
+ return ai;
2511
2511
  default:
2512
2512
  return di;
2513
2513
  }
@@ -2517,7 +2517,7 @@ function vA() {
2517
2517
  }
2518
2518
  }
2519
2519
  }
2520
- var h = l, G = A, x = n, Q = s, T = i, X = m, B = a, v = c, P = I, g = t, L = r, Y = o, C = p, J = !1;
2520
+ var h = l, G = A, F = n, Q = s, T = i, X = m, B = a, v = c, P = I, g = t, L = r, Y = o, C = p, J = !1;
2521
2521
  function D(j) {
2522
2522
  return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(j) || V(j) === l;
2523
2523
  }
@@ -2527,13 +2527,13 @@ function vA() {
2527
2527
  function Z(j) {
2528
2528
  return V(j) === n;
2529
2529
  }
2530
- function U(j) {
2530
+ function R(j) {
2531
2531
  return V(j) === s;
2532
2532
  }
2533
2533
  function b(j) {
2534
2534
  return typeof j == "object" && j !== null && j.$$typeof === i;
2535
2535
  }
2536
- function R(j) {
2536
+ function E(j) {
2537
2537
  return V(j) === m;
2538
2538
  }
2539
2539
  function f(j) {
@@ -2557,7 +2557,7 @@ function vA() {
2557
2557
  function ci(j) {
2558
2558
  return V(j) === p;
2559
2559
  }
2560
- hi.AsyncMode = h, hi.ConcurrentMode = G, hi.ContextConsumer = x, hi.ContextProvider = Q, hi.Element = T, hi.ForwardRef = X, hi.Fragment = B, hi.Lazy = v, hi.Memo = P, hi.Portal = g, hi.Profiler = L, hi.StrictMode = Y, hi.Suspense = C, hi.isAsyncMode = D, hi.isConcurrentMode = k, hi.isContextConsumer = Z, hi.isContextProvider = U, hi.isElement = b, hi.isForwardRef = R, hi.isFragment = f, hi.isLazy = O, hi.isMemo = N, hi.isPortal = H, hi.isProfiler = $, hi.isStrictMode = ii, hi.isSuspense = ci, hi.isValidElementType = W, hi.typeOf = V;
2560
+ hi.AsyncMode = h, hi.ConcurrentMode = G, hi.ContextConsumer = F, hi.ContextProvider = Q, hi.Element = T, hi.ForwardRef = X, hi.Fragment = B, hi.Lazy = v, hi.Memo = P, hi.Portal = g, hi.Profiler = L, hi.StrictMode = Y, hi.Suspense = C, hi.isAsyncMode = D, hi.isConcurrentMode = k, hi.isContextConsumer = Z, hi.isContextProvider = R, hi.isElement = b, hi.isForwardRef = E, hi.isFragment = f, hi.isLazy = O, hi.isMemo = N, hi.isPortal = H, hi.isProfiler = $, hi.isStrictMode = ii, hi.isSuspense = ci, hi.isValidElementType = W, hi.typeOf = V;
2561
2561
  }()), hi;
2562
2562
  }
2563
2563
  var Kr;
@@ -2712,14 +2712,14 @@ function _A() {
2712
2712
  object: S("object"),
2713
2713
  string: S("string"),
2714
2714
  symbol: S("symbol"),
2715
- any: E(),
2715
+ any: U(),
2716
2716
  arrayOf: W,
2717
2717
  element: V(),
2718
2718
  elementType: h(),
2719
2719
  instanceOf: G,
2720
2720
  node: X(),
2721
2721
  objectOf: Q,
2722
- oneOf: x,
2722
+ oneOf: F,
2723
2723
  oneOfType: T,
2724
2724
  shape: v,
2725
2725
  exact: P
@@ -2733,7 +2733,7 @@ function _A() {
2733
2733
  d.prototype = Error.prototype;
2734
2734
  function K(k) {
2735
2735
  if (process.env.NODE_ENV !== "production")
2736
- var Z = {}, U = 0;
2736
+ var Z = {}, R = 0;
2737
2737
  function b(f, O, N, H, $, ii, ci) {
2738
2738
  if (H = H || u, ii = ii || N, ci !== t) {
2739
2739
  if (l) {
@@ -2744,23 +2744,23 @@ function _A() {
2744
2744
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2745
2745
  var di = H + ":" + N;
2746
2746
  !Z[di] && // Avoid spamming the console because they are often not actionable except for lib authors
2747
- U < 3 && (r(
2747
+ R < 3 && (r(
2748
2748
  "You are manually calling a React.PropTypes validation function for the `" + ii + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2749
- ), Z[di] = !0, U++);
2749
+ ), Z[di] = !0, R++);
2750
2750
  }
2751
2751
  }
2752
2752
  return O[N] == null ? f ? O[N] === null ? new d("The " + $ + " `" + ii + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new d("The " + $ + " `" + ii + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : k(O, N, H, $, ii);
2753
2753
  }
2754
- var R = b.bind(null, !1);
2755
- return R.isRequired = b.bind(null, !0), R;
2754
+ var E = b.bind(null, !1);
2755
+ return E.isRequired = b.bind(null, !0), E;
2756
2756
  }
2757
2757
  function S(k) {
2758
- function Z(U, b, R, f, O, N) {
2759
- var H = U[b], $ = Y(H);
2758
+ function Z(R, b, E, f, O, N) {
2759
+ var H = R[b], $ = Y(H);
2760
2760
  if ($ !== k) {
2761
2761
  var ii = C(H);
2762
2762
  return new d(
2763
- "Invalid " + f + " `" + O + "` of type " + ("`" + ii + "` supplied to `" + R + "`, expected ") + ("`" + k + "`."),
2763
+ "Invalid " + f + " `" + O + "` of type " + ("`" + ii + "` supplied to `" + E + "`, expected ") + ("`" + k + "`."),
2764
2764
  { expectedType: k }
2765
2765
  );
2766
2766
  }
@@ -2768,20 +2768,20 @@ function _A() {
2768
2768
  }
2769
2769
  return K(Z);
2770
2770
  }
2771
- function E() {
2771
+ function U() {
2772
2772
  return K(s);
2773
2773
  }
2774
2774
  function W(k) {
2775
- function Z(U, b, R, f, O) {
2775
+ function Z(R, b, E, f, O) {
2776
2776
  if (typeof k != "function")
2777
- return new d("Property `" + O + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
2778
- var N = U[b];
2777
+ return new d("Property `" + O + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
2778
+ var N = R[b];
2779
2779
  if (!Array.isArray(N)) {
2780
2780
  var H = Y(N);
2781
- return new d("Invalid " + f + " `" + O + "` of type " + ("`" + H + "` supplied to `" + R + "`, expected an array."));
2781
+ return new d("Invalid " + f + " `" + O + "` of type " + ("`" + H + "` supplied to `" + E + "`, expected an array."));
2782
2782
  }
2783
2783
  for (var $ = 0; $ < N.length; $++) {
2784
- var ii = k(N, $, R, f, O + "[" + $ + "]", t);
2784
+ var ii = k(N, $, E, f, O + "[" + $ + "]", t);
2785
2785
  if (ii instanceof Error)
2786
2786
  return ii;
2787
2787
  }
@@ -2790,64 +2790,64 @@ function _A() {
2790
2790
  return K(Z);
2791
2791
  }
2792
2792
  function V() {
2793
- function k(Z, U, b, R, f) {
2794
- var O = Z[U];
2793
+ function k(Z, R, b, E, f) {
2794
+ var O = Z[R];
2795
2795
  if (!n(O)) {
2796
2796
  var N = Y(O);
2797
- return new d("Invalid " + R + " `" + f + "` of type " + ("`" + N + "` supplied to `" + b + "`, expected a single ReactElement."));
2797
+ return new d("Invalid " + E + " `" + f + "` of type " + ("`" + N + "` supplied to `" + b + "`, expected a single ReactElement."));
2798
2798
  }
2799
2799
  return null;
2800
2800
  }
2801
2801
  return K(k);
2802
2802
  }
2803
2803
  function h() {
2804
- function k(Z, U, b, R, f) {
2805
- var O = Z[U];
2804
+ function k(Z, R, b, E, f) {
2805
+ var O = Z[R];
2806
2806
  if (!e.isValidElementType(O)) {
2807
2807
  var N = Y(O);
2808
- return new d("Invalid " + R + " `" + f + "` of type " + ("`" + N + "` supplied to `" + b + "`, expected a single ReactElement type."));
2808
+ return new d("Invalid " + E + " `" + f + "` of type " + ("`" + N + "` supplied to `" + b + "`, expected a single ReactElement type."));
2809
2809
  }
2810
2810
  return null;
2811
2811
  }
2812
2812
  return K(k);
2813
2813
  }
2814
2814
  function G(k) {
2815
- function Z(U, b, R, f, O) {
2816
- if (!(U[b] instanceof k)) {
2817
- var N = k.name || u, H = D(U[b]);
2818
- return new d("Invalid " + f + " `" + O + "` of type " + ("`" + H + "` supplied to `" + R + "`, expected ") + ("instance of `" + N + "`."));
2815
+ function Z(R, b, E, f, O) {
2816
+ if (!(R[b] instanceof k)) {
2817
+ var N = k.name || u, H = D(R[b]);
2818
+ return new d("Invalid " + f + " `" + O + "` of type " + ("`" + H + "` supplied to `" + E + "`, expected ") + ("instance of `" + N + "`."));
2819
2819
  }
2820
2820
  return null;
2821
2821
  }
2822
2822
  return K(Z);
2823
2823
  }
2824
- function x(k) {
2824
+ function F(k) {
2825
2825
  if (!Array.isArray(k))
2826
2826
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
2827
2827
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2828
2828
  ) : r("Invalid argument supplied to oneOf, expected an array.")), s;
2829
- function Z(U, b, R, f, O) {
2830
- for (var N = U[b], H = 0; H < k.length; H++)
2829
+ function Z(R, b, E, f, O) {
2830
+ for (var N = R[b], H = 0; H < k.length; H++)
2831
2831
  if (c(N, k[H]))
2832
2832
  return null;
2833
2833
  var $ = JSON.stringify(k, function(ci, j) {
2834
2834
  var di = C(j);
2835
2835
  return di === "symbol" ? String(j) : j;
2836
2836
  });
2837
- return new d("Invalid " + f + " `" + O + "` of value `" + String(N) + "` " + ("supplied to `" + R + "`, expected one of " + $ + "."));
2837
+ return new d("Invalid " + f + " `" + O + "` of value `" + String(N) + "` " + ("supplied to `" + E + "`, expected one of " + $ + "."));
2838
2838
  }
2839
2839
  return K(Z);
2840
2840
  }
2841
2841
  function Q(k) {
2842
- function Z(U, b, R, f, O) {
2842
+ function Z(R, b, E, f, O) {
2843
2843
  if (typeof k != "function")
2844
- return new d("Property `" + O + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
2845
- var N = U[b], H = Y(N);
2844
+ return new d("Property `" + O + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
2845
+ var N = R[b], H = Y(N);
2846
2846
  if (H !== "object")
2847
- return new d("Invalid " + f + " `" + O + "` of type " + ("`" + H + "` supplied to `" + R + "`, expected an object."));
2847
+ return new d("Invalid " + f + " `" + O + "` of type " + ("`" + H + "` supplied to `" + E + "`, expected an object."));
2848
2848
  for (var $ in N)
2849
2849
  if (a(N, $)) {
2850
- var ii = k(N, $, R, f, O + "." + $, t);
2850
+ var ii = k(N, $, E, f, O + "." + $, t);
2851
2851
  if (ii instanceof Error)
2852
2852
  return ii;
2853
2853
  }
@@ -2859,15 +2859,15 @@ function _A() {
2859
2859
  if (!Array.isArray(k))
2860
2860
  return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), s;
2861
2861
  for (var Z = 0; Z < k.length; Z++) {
2862
- var U = k[Z];
2863
- if (typeof U != "function")
2862
+ var R = k[Z];
2863
+ if (typeof R != "function")
2864
2864
  return r(
2865
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(U) + " at index " + Z + "."
2865
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(R) + " at index " + Z + "."
2866
2866
  ), s;
2867
2867
  }
2868
- function b(R, f, O, N, H) {
2868
+ function b(E, f, O, N, H) {
2869
2869
  for (var $ = [], ii = 0; ii < k.length; ii++) {
2870
- var ci = k[ii], j = ci(R, f, O, N, H, t);
2870
+ var ci = k[ii], j = ci(E, f, O, N, H, t);
2871
2871
  if (j == null)
2872
2872
  return null;
2873
2873
  j.data && a(j.data, "expectedType") && $.push(j.data.expectedType);
@@ -2878,26 +2878,26 @@ function _A() {
2878
2878
  return K(b);
2879
2879
  }
2880
2880
  function X() {
2881
- function k(Z, U, b, R, f) {
2882
- return g(Z[U]) ? null : new d("Invalid " + R + " `" + f + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
2881
+ function k(Z, R, b, E, f) {
2882
+ return g(Z[R]) ? null : new d("Invalid " + E + " `" + f + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
2883
2883
  }
2884
2884
  return K(k);
2885
2885
  }
2886
- function B(k, Z, U, b, R) {
2886
+ function B(k, Z, R, b, E) {
2887
2887
  return new d(
2888
- (k || "React class") + ": " + Z + " type `" + U + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
2888
+ (k || "React class") + ": " + Z + " type `" + R + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
2889
2889
  );
2890
2890
  }
2891
2891
  function v(k) {
2892
- function Z(U, b, R, f, O) {
2893
- var N = U[b], H = Y(N);
2892
+ function Z(R, b, E, f, O) {
2893
+ var N = R[b], H = Y(N);
2894
2894
  if (H !== "object")
2895
- return new d("Invalid " + f + " `" + O + "` of type `" + H + "` " + ("supplied to `" + R + "`, expected `object`."));
2895
+ return new d("Invalid " + f + " `" + O + "` of type `" + H + "` " + ("supplied to `" + E + "`, expected `object`."));
2896
2896
  for (var $ in k) {
2897
2897
  var ii = k[$];
2898
2898
  if (typeof ii != "function")
2899
- return B(R, f, O, $, C(ii));
2900
- var ci = ii(N, $, R, f, O + "." + $, t);
2899
+ return B(E, f, O, $, C(ii));
2900
+ var ci = ii(N, $, E, f, O + "." + $, t);
2901
2901
  if (ci)
2902
2902
  return ci;
2903
2903
  }
@@ -2906,21 +2906,21 @@ function _A() {
2906
2906
  return K(Z);
2907
2907
  }
2908
2908
  function P(k) {
2909
- function Z(U, b, R, f, O) {
2910
- var N = U[b], H = Y(N);
2909
+ function Z(R, b, E, f, O) {
2910
+ var N = R[b], H = Y(N);
2911
2911
  if (H !== "object")
2912
- return new d("Invalid " + f + " `" + O + "` of type `" + H + "` " + ("supplied to `" + R + "`, expected `object`."));
2913
- var $ = i({}, U[b], k);
2912
+ return new d("Invalid " + f + " `" + O + "` of type `" + H + "` " + ("supplied to `" + E + "`, expected `object`."));
2913
+ var $ = i({}, R[b], k);
2914
2914
  for (var ii in $) {
2915
2915
  var ci = k[ii];
2916
2916
  if (a(k, ii) && typeof ci != "function")
2917
- return B(R, f, O, ii, C(ci));
2917
+ return B(E, f, O, ii, C(ci));
2918
2918
  if (!ci)
2919
2919
  return new d(
2920
- "Invalid " + f + " `" + O + "` key `" + ii + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(U[b], null, " ") + `
2920
+ "Invalid " + f + " `" + O + "` key `" + ii + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(R[b], null, " ") + `
2921
2921
  Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
2922
2922
  );
2923
- var j = ci(N, ii, R, f, O + "." + ii, t);
2923
+ var j = ci(N, ii, E, f, O + "." + ii, t);
2924
2924
  if (j)
2925
2925
  return j;
2926
2926
  }
@@ -2943,15 +2943,15 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
2943
2943
  return !0;
2944
2944
  var Z = p(k);
2945
2945
  if (Z) {
2946
- var U = Z.call(k), b;
2946
+ var R = Z.call(k), b;
2947
2947
  if (Z !== k.entries) {
2948
- for (; !(b = U.next()).done; )
2948
+ for (; !(b = R.next()).done; )
2949
2949
  if (!g(b.value))
2950
2950
  return !1;
2951
2951
  } else
2952
- for (; !(b = U.next()).done; ) {
2953
- var R = b.value;
2954
- if (R && !g(R[1]))
2952
+ for (; !(b = R.next()).done; ) {
2953
+ var E = b.value;
2954
+ if (E && !g(E[1]))
2955
2955
  return !1;
2956
2956
  }
2957
2957
  } else
@@ -3347,12 +3347,12 @@ var rm = Ns, vi = {
3347
3347
  EXP_TABLE: new Array(256),
3348
3348
  LOG_TABLE: new Array(256)
3349
3349
  };
3350
- for (var Ri = 0; Ri < 8; Ri++)
3351
- vi.EXP_TABLE[Ri] = 1 << Ri;
3352
- for (var Ri = 8; Ri < 256; Ri++)
3353
- vi.EXP_TABLE[Ri] = vi.EXP_TABLE[Ri - 4] ^ vi.EXP_TABLE[Ri - 5] ^ vi.EXP_TABLE[Ri - 6] ^ vi.EXP_TABLE[Ri - 8];
3354
- for (var Ri = 0; Ri < 255; Ri++)
3355
- vi.LOG_TABLE[vi.EXP_TABLE[Ri]] = Ri;
3350
+ for (var Li = 0; Li < 8; Li++)
3351
+ vi.EXP_TABLE[Li] = 1 << Li;
3352
+ for (var Li = 8; Li < 256; Li++)
3353
+ vi.EXP_TABLE[Li] = vi.EXP_TABLE[Li - 4] ^ vi.EXP_TABLE[Li - 5] ^ vi.EXP_TABLE[Li - 6] ^ vi.EXP_TABLE[Li - 8];
3354
+ for (var Li = 0; Li < 255; Li++)
3355
+ vi.LOG_TABLE[vi.EXP_TABLE[Li]] = Li;
3356
3356
  var Fs = vi, ye = Fs;
3357
3357
  function Nt(e, i) {
3358
3358
  if (e.length == null)
@@ -3395,7 +3395,7 @@ var xs = Nt, zi = Qs, gr = xs, sm = Fs, Ie = {
3395
3395
  PATTERN101: 5,
3396
3396
  PATTERN110: 6,
3397
3397
  PATTERN111: 7
3398
- }, Ui = {
3398
+ }, Ri = {
3399
3399
  PATTERN_POSITION_TABLE: [
3400
3400
  [],
3401
3401
  [6, 18],
@@ -3442,13 +3442,13 @@ var xs = Nt, zi = Qs, gr = xs, sm = Fs, Ie = {
3442
3442
  G18: 7973,
3443
3443
  G15_MASK: 21522,
3444
3444
  getBCHTypeInfo: function(e) {
3445
- for (var i = e << 10; Ui.getBCHDigit(i) - Ui.getBCHDigit(Ui.G15) >= 0; )
3446
- i ^= Ui.G15 << Ui.getBCHDigit(i) - Ui.getBCHDigit(Ui.G15);
3447
- return (e << 10 | i) ^ Ui.G15_MASK;
3445
+ for (var i = e << 10; Ri.getBCHDigit(i) - Ri.getBCHDigit(Ri.G15) >= 0; )
3446
+ i ^= Ri.G15 << Ri.getBCHDigit(i) - Ri.getBCHDigit(Ri.G15);
3447
+ return (e << 10 | i) ^ Ri.G15_MASK;
3448
3448
  },
3449
3449
  getBCHTypeNumber: function(e) {
3450
- for (var i = e << 12; Ui.getBCHDigit(i) - Ui.getBCHDigit(Ui.G18) >= 0; )
3451
- i ^= Ui.G18 << Ui.getBCHDigit(i) - Ui.getBCHDigit(Ui.G18);
3450
+ for (var i = e << 12; Ri.getBCHDigit(i) - Ri.getBCHDigit(Ri.G18) >= 0; )
3451
+ i ^= Ri.G18 << Ri.getBCHDigit(i) - Ri.getBCHDigit(Ri.G18);
3452
3452
  return e << 12 | i;
3453
3453
  },
3454
3454
  getBCHDigit: function(e) {
@@ -3457,7 +3457,7 @@ var xs = Nt, zi = Qs, gr = xs, sm = Fs, Ie = {
3457
3457
  return i;
3458
3458
  },
3459
3459
  getPatternPosition: function(e) {
3460
- return Ui.PATTERN_POSITION_TABLE[e - 1];
3460
+ return Ri.PATTERN_POSITION_TABLE[e - 1];
3461
3461
  },
3462
3462
  getMask: function(e, i, t) {
3463
3463
  switch (e) {
@@ -3555,7 +3555,7 @@ var xs = Nt, zi = Qs, gr = xs, sm = Fs, Ie = {
3555
3555
  var p = Math.abs(100 * m / i / i - 50) / 5;
3556
3556
  return t += p * 10, t;
3557
3557
  }
3558
- }, nm = Ui, lm = am, Os = om, zs = rm, Se = nm, Am = xs;
3558
+ }, nm = Ri, lm = am, Os = om, zs = rm, Se = nm, Am = xs;
3559
3559
  function oe(e, i) {
3560
3560
  this.typeNumber = e, this.errorCorrectLevel = i, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
3561
3561
  }
@@ -4441,8 +4441,8 @@ class Pt extends ca {
4441
4441
  }
4442
4442
  const p = this.resolve(i, t);
4443
4443
  let u = p && p.res;
4444
- const I = p && p.usedKey || s, c = p && p.exactUsedKey || s, d = Object.prototype.toString.apply(u), K = ["[object Number]", "[object Function]", "[object RegExp]"], S = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, W = !ei(u) && typeof u != "boolean" && typeof u != "number";
4445
- if (E && u && W && K.indexOf(d) < 0 && !(ei(S) && Array.isArray(u))) {
4444
+ const I = p && p.usedKey || s, c = p && p.exactUsedKey || s, d = Object.prototype.toString.apply(u), K = ["[object Number]", "[object Function]", "[object RegExp]"], S = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, U = !this.i18nFormat || this.i18nFormat.handleAsObject, W = !ei(u) && typeof u != "boolean" && typeof u != "number";
4445
+ if (U && u && W && K.indexOf(d) < 0 && !(ei(S) && Array.isArray(u))) {
4446
4446
  if (!t.returnObjects && !this.options.returnObjects) {
4447
4447
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
4448
4448
  const V = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(I, u, {
@@ -4453,26 +4453,26 @@ class Pt extends ca {
4453
4453
  }
4454
4454
  if (r) {
4455
4455
  const V = Array.isArray(u), h = V ? [] : {}, G = V ? c : I;
4456
- for (const x in u)
4457
- if (Object.prototype.hasOwnProperty.call(u, x)) {
4458
- const Q = `${G}${r}${x}`;
4459
- h[x] = this.translate(Q, {
4456
+ for (const F in u)
4457
+ if (Object.prototype.hasOwnProperty.call(u, F)) {
4458
+ const Q = `${G}${r}${F}`;
4459
+ h[F] = this.translate(Q, {
4460
4460
  ...t,
4461
4461
  joinArrays: !1,
4462
4462
  ns: n
4463
- }), h[x] === Q && (h[x] = u[x]);
4463
+ }), h[F] === Q && (h[F] = u[F]);
4464
4464
  }
4465
4465
  u = h;
4466
4466
  }
4467
- } else if (E && ei(S) && Array.isArray(u))
4467
+ } else if (U && ei(S) && Array.isArray(u))
4468
4468
  u = u.join(S), u && (u = this.extendTranslation(u, i, t, a));
4469
4469
  else {
4470
4470
  let V = !1, h = !1;
4471
- const G = t.count !== void 0 && !ei(t.count), x = Pt.hasDefaultValue(t), Q = G ? this.pluralResolver.getSuffix(A, t.count, t) : "", T = t.ordinal && G ? this.pluralResolver.getSuffix(A, t.count, {
4471
+ const G = t.count !== void 0 && !ei(t.count), F = Pt.hasDefaultValue(t), Q = G ? this.pluralResolver.getSuffix(A, t.count, t) : "", T = t.ordinal && G ? this.pluralResolver.getSuffix(A, t.count, {
4472
4472
  ordinal: !1
4473
4473
  }) : "", X = G && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), B = X && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${Q}`] || t[`defaultValue${T}`] || t.defaultValue;
4474
- !this.isValidLookup(u) && x && (V = !0, u = B), this.isValidLookup(u) || (h = !0, u = s);
4475
- const P = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && h ? void 0 : u, g = x && B !== u && this.options.updateMissing;
4474
+ !this.isValidLookup(u) && F && (V = !0, u = B), this.isValidLookup(u) || (h = !0, u = s);
4475
+ const P = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && h ? void 0 : u, g = F && B !== u && this.options.updateMissing;
4476
4476
  if (h || V || g) {
4477
4477
  if (this.logger.log(g ? "updateKey" : "missingKey", A, l, s, g ? B : u), r) {
4478
4478
  const J = this.resolve(s, {
@@ -4489,7 +4489,7 @@ class Pt extends ca {
4489
4489
  else
4490
4490
  this.options.saveMissingTo === "all" ? L = this.languageUtils.toResolveHierarchy(t.lng || this.language) : L.push(t.lng || this.language);
4491
4491
  const C = (J, D, k) => {
4492
- const Z = x && k !== u ? k : P;
4492
+ const Z = F && k !== u ? k : P;
4493
4493
  this.options.missingKeyHandler ? this.options.missingKeyHandler(J, l, D, Z, g, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(J, l, D, Z, g, t), this.emit("missingKey", J, l, D, u);
4494
4494
  };
4495
4495
  this.options.saveMissing && (this.options.saveMissingPlurals && G ? L.forEach((J) => {
@@ -4564,20 +4564,20 @@ class Pt extends ca {
4564
4564
  if (this.isValidLookup(a))
4565
4565
  return;
4566
4566
  s = S;
4567
- const E = [m];
4567
+ const U = [m];
4568
4568
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
4569
- this.i18nFormat.addLookupKeys(E, m, S, K, t);
4569
+ this.i18nFormat.addLookupKeys(U, m, S, K, t);
4570
4570
  else {
4571
4571
  let V;
4572
4572
  u && (V = this.pluralResolver.getSuffix(S, t.count, t));
4573
4573
  const h = `${this.options.pluralSeparator}zero`, G = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
4574
- if (u && (E.push(m + V), t.ordinal && V.indexOf(G) === 0 && E.push(m + V.replace(G, this.options.pluralSeparator)), I && E.push(m + h)), c) {
4575
- const x = `${m}${this.options.contextSeparator}${t.context}`;
4576
- E.push(x), u && (E.push(x + V), t.ordinal && V.indexOf(G) === 0 && E.push(x + V.replace(G, this.options.pluralSeparator)), I && E.push(x + h));
4574
+ if (u && (U.push(m + V), t.ordinal && V.indexOf(G) === 0 && U.push(m + V.replace(G, this.options.pluralSeparator)), I && U.push(m + h)), c) {
4575
+ const F = `${m}${this.options.contextSeparator}${t.context}`;
4576
+ U.push(F), u && (U.push(F + V), t.ordinal && V.indexOf(G) === 0 && U.push(F + V.replace(G, this.options.pluralSeparator)), I && U.push(F + h));
4577
4577
  }
4578
4578
  }
4579
4579
  let W;
4580
- for (; W = E.pop(); )
4580
+ for (; W = U.pop(); )
4581
4581
  this.isValidLookup(a) || (r = W, a = this.getResource(S, K, W, t));
4582
4582
  }));
4583
4583
  });
@@ -4927,9 +4927,9 @@ class aq {
4927
4927
  nestingSuffixEscaped: d,
4928
4928
  nestingOptionsSeparator: K,
4929
4929
  maxReplaces: S,
4930
- alwaysFormat: E
4930
+ alwaysFormat: U
4931
4931
  } = i.interpolation;
4932
- this.escape = t !== void 0 ? t : Bm, this.escapeValue = a !== void 0 ? a : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = r ? Qe(r) : s || "{{", this.suffix = n ? Qe(n) : l || "}}", this.formatSeparator = A || ",", this.unescapePrefix = m ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : m || "", this.nestingPrefix = u ? Qe(u) : I || Qe("$t("), this.nestingSuffix = c ? Qe(c) : d || Qe(")"), this.nestingOptionsSeparator = K || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
4932
+ this.escape = t !== void 0 ? t : Bm, this.escapeValue = a !== void 0 ? a : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = r ? Qe(r) : s || "{{", this.suffix = n ? Qe(n) : l || "}}", this.formatSeparator = A || ",", this.unescapePrefix = m ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : m || "", this.nestingPrefix = u ? Qe(u) : I || Qe("$t("), this.nestingSuffix = c ? Qe(c) : d || Qe(")"), this.nestingOptionsSeparator = K || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = U !== void 0 ? U : !1, this.resetRegExp();
4933
4933
  }
4934
4934
  reset() {
4935
4935
  this.options && this.init(this.options);
@@ -5780,7 +5780,7 @@ const ip = (e, i, ...t) => i.read(...t), ep = (e, i, ...t) => i.write(...t), tp
5780
5780
  return K;
5781
5781
  K.d.clear();
5782
5782
  let S = !0;
5783
- function E() {
5783
+ function U() {
5784
5784
  r.has(i) && (d(e, i), u(e), p(e));
5785
5785
  }
5786
5786
  function W(Q) {
@@ -5798,7 +5798,7 @@ const ip = (e, i, ...t) => i.read(...t), ep = (e, i, ...t) => i.write(...t), tp
5798
5798
  try {
5799
5799
  return _t(X);
5800
5800
  } finally {
5801
- K.d.set(Q, X.n), tn(K.v) && an(i, K.v, X), (T = r.get(Q)) == null || T.t.add(i), S || E();
5801
+ K.d.set(Q, X.n), tn(K.v) && an(i, K.v, X), (T = r.get(Q)) == null || T.t.add(i), S || U();
5802
5802
  }
5803
5803
  }
5804
5804
  let V, h;
@@ -5816,14 +5816,14 @@ const ip = (e, i, ...t) => i.read(...t), ep = (e, i, ...t) => i.write(...t), tp
5816
5816
  }
5817
5817
  }), h;
5818
5818
  }
5819
- }, x = K.n;
5819
+ }, F = K.n;
5820
5820
  try {
5821
5821
  const Q = A(e, i, W, G);
5822
- return ea(e, i, Q), ia(Q) && (ao(Q, () => V == null ? void 0 : V.abort()), Q.then(E, E)), (t = l.r) == null || t.call(l, i), K;
5822
+ return ea(e, i, Q), ia(Q) && (ao(Q, () => V == null ? void 0 : V.abort()), Q.then(U, U)), (t = l.r) == null || t.call(l, i), K;
5823
5823
  } catch (Q) {
5824
5824
  return delete K.v, K.e = Q, ++K.n, K;
5825
5825
  } finally {
5826
- S = !1, x !== K.n && s.get(i) === x && (s.set(i, K.n), n.add(i), (a = l.c) == null || a.call(l, i));
5826
+ S = !1, F !== K.n && s.get(i) === F && (s.set(i, K.n), n.add(i), (a = l.c) == null || a.call(l, i));
5827
5827
  }
5828
5828
  }, lp = (e, i) => {
5829
5829
  const t = bi(e), a = t[1], o = t[2], r = t[11], s = [i];
@@ -5838,14 +5838,14 @@ const ip = (e, i, ...t) => i.read(...t), ep = (e, i, ...t) => i.write(...t), tp
5838
5838
  const a = bi(e), o = a[3], r = a[6], s = a[8], n = a[11], l = a[12], A = a[13], m = a[14], p = a[15], u = a[17];
5839
5839
  let I = !0;
5840
5840
  const c = (K) => _t(m(e, K)), d = (K, ...S) => {
5841
- var E;
5841
+ var U;
5842
5842
  const W = n(e, K);
5843
5843
  try {
5844
5844
  if (K === i) {
5845
5845
  if (!$s(K))
5846
5846
  throw new Error("atom not writable");
5847
5847
  const V = W.n, h = S[0];
5848
- ea(e, K, h), u(e, K), V !== W.n && (o.add(K), (E = r.c) == null || E.call(r, K), p(e, K));
5848
+ ea(e, K, h), u(e, K), V !== W.n && (o.add(K), (U = r.c) == null || U.call(r, K), p(e, K));
5849
5849
  return;
5850
5850
  } else
5851
5851
  return rn(e, K, ...S);
@@ -5889,19 +5889,19 @@ const ip = (e, i, ...t) => i.read(...t), ep = (e, i, ...t) => i.write(...t), tp
5889
5889
  }, o.set(i, c), (t = s.m) == null || t.call(s, i), en(i)) {
5890
5890
  const d = () => {
5891
5891
  let K = !0;
5892
- const S = (...E) => {
5892
+ const S = (...U) => {
5893
5893
  try {
5894
- return u(e, i, ...E);
5894
+ return u(e, i, ...U);
5895
5895
  } finally {
5896
5896
  K || (m(e), A(e));
5897
5897
  }
5898
5898
  };
5899
5899
  try {
5900
- const E = n(e, i, S);
5901
- E && (c.u = () => {
5900
+ const U = n(e, i, S);
5901
+ U && (c.u = () => {
5902
5902
  K = !0;
5903
5903
  try {
5904
- E();
5904
+ U();
5905
5905
  } finally {
5906
5906
  K = !1;
5907
5907
  }
@@ -6086,7 +6086,7 @@ function gp(e, i) {
6086
6086
  () => [o.get(e), o, e]
6087
6087
  );
6088
6088
  let A = r;
6089
- if ((s !== o || n !== e) && (l(), A = o.get(e)), mi(() => {
6089
+ if ((s !== o || n !== e) && (l(), A = o.get(e)), qi(() => {
6090
6090
  const m = o.sub(e, () => {
6091
6091
  if (a)
6092
6092
  try {
@@ -6166,15 +6166,15 @@ const da = Ct(""), Za = Ct(!1), Ge = Ct([]), ha = Ct([
6166
6166
  null,
6167
6167
  !1,
6168
6168
  { urlType: A }
6169
- ).then(async (E) => {
6170
- var h, G, x, Q;
6169
+ ).then(async (U) => {
6170
+ var h, G, F, Q;
6171
6171
  const W = new URL("/preview", o);
6172
6172
  if (W.searchParams.set("versionId", e), W.searchParams.set(t.toLowerCase(), "true"), i && (t === "Playable" || t === "Ready")) {
6173
- const T = await Go(i, a), X = (G = (h = T == null ? void 0 : T.data) == null ? void 0 : h.globalProps) == null ? void 0 : G.defaultLandscape, B = (Q = (x = T == null ? void 0 : T.data) == null ? void 0 : x.globalProps) == null ? void 0 : Q.defaultPhoneIndex;
6173
+ const T = await Go(i, a), X = (G = (h = T == null ? void 0 : T.data) == null ? void 0 : h.globalProps) == null ? void 0 : G.defaultLandscape, B = (Q = (F = T == null ? void 0 : T.data) == null ? void 0 : F.globalProps) == null ? void 0 : Q.defaultPhoneIndex;
6174
6174
  X && W.searchParams.append("landscape", "true"), B !== void 0 && W.searchParams.append("phoneIndex", B.toString());
6175
6175
  }
6176
6176
  Be(W.toString()) ? (I(!0), setTimeout(() => I(!1), 2e3)) : r(W.toString()), p(!1);
6177
- }).catch((E) => {
6177
+ }).catch((U) => {
6178
6178
  p(!1);
6179
6179
  });
6180
6180
  };
@@ -6264,11 +6264,11 @@ const da = Ct(""), Za = Ct(!1), Ge = Ct([]), ha = Ct([
6264
6264
  onClick: () => {
6265
6265
  !m && !u && S();
6266
6266
  },
6267
- onMouseEnter: (E) => {
6268
- !m && !u ? E.currentTarget.style.backgroundColor = "#1D4ED8" : u && (E.currentTarget.style.backgroundColor = "#15803D");
6267
+ onMouseEnter: (U) => {
6268
+ !m && !u ? U.currentTarget.style.backgroundColor = "#1D4ED8" : u && (U.currentTarget.style.backgroundColor = "#15803D");
6269
6269
  },
6270
- onMouseLeave: (E) => {
6271
- u ? E.currentTarget.style.backgroundColor = "#16A34A" : E.currentTarget.style.backgroundColor = "#2563EB";
6270
+ onMouseLeave: (U) => {
6271
+ u ? U.currentTarget.style.backgroundColor = "#16A34A" : U.currentTarget.style.backgroundColor = "#2563EB";
6272
6272
  },
6273
6273
  children: m ? /* @__PURE__ */ q.jsx(
6274
6274
  "img",
@@ -6316,15 +6316,15 @@ const da = Ct(""), Za = Ct(!1), Ge = Ct([]), ha = Ct([
6316
6316
  onNameChange: u
6317
6317
  }) => {
6318
6318
  const [I, c] = M(window.innerWidth), [d, K] = M(window.innerHeight);
6319
- return console.log("iosLink", A), mi(() => {
6319
+ return console.log("iosLink", A), qi(() => {
6320
6320
  console.log("re add event listener");
6321
- function S(E) {
6322
- console.log(E), E.data === "cta" && (console.log("Received 'cta' message from iframe"), A && window.open(A, "_blank"));
6321
+ function S(U) {
6322
+ console.log(U), U.data === "cta" && (console.log("Received 'cta' message from iframe"), A && window.open(A, "_blank"));
6323
6323
  }
6324
6324
  return window.addEventListener("message", S, !1), () => {
6325
6325
  window.removeEventListener("message", S);
6326
6326
  };
6327
- }, [A, m]), mi(() => {
6327
+ }, [A, m]), qi(() => {
6328
6328
  const S = () => {
6329
6329
  c(window.innerWidth), K(window.innerHeight);
6330
6330
  };
@@ -6861,7 +6861,7 @@ qu.default.subscribe(Ku);
6861
6861
  return function(L, Y, C) {
6862
6862
  return Y && g(L.prototype, Y), C && g(L, C), L;
6863
6863
  };
6864
- }(), r = Ki, s = Ia, n = h(s), l = $i, A = V(l), m = Qp, p = h(m), u = ie, I = V(u), c = De, d = V(c), K = Pi, S = h(K), E = fe, W = h(E);
6864
+ }(), r = Ki, s = Ia, n = h(s), l = $i, A = V(l), m = Qp, p = h(m), u = ie, I = V(u), c = De, d = V(c), K = Pi, S = h(K), U = fe, W = h(U);
6865
6865
  function V(g) {
6866
6866
  if (g && g.__esModule)
6867
6867
  return g;
@@ -6878,7 +6878,7 @@ qu.default.subscribe(Ku);
6878
6878
  if (!(g instanceof L))
6879
6879
  throw new TypeError("Cannot call a class as a function");
6880
6880
  }
6881
- function x(g, L) {
6881
+ function F(g, L) {
6882
6882
  if (!g)
6883
6883
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6884
6884
  return L && (typeof L == "object" || typeof L == "function") ? L : g;
@@ -6899,14 +6899,14 @@ qu.default.subscribe(Ku);
6899
6899
  Q(L, g);
6900
6900
  function L(Y) {
6901
6901
  G(this, L);
6902
- var C = x(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, Y));
6902
+ var C = F(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, Y));
6903
6903
  return C.setOverlayRef = function(J) {
6904
6904
  C.overlay = J, C.props.overlayRef && C.props.overlayRef(J);
6905
6905
  }, C.setContentRef = function(J) {
6906
6906
  C.content = J, C.props.contentRef && C.props.contentRef(J);
6907
6907
  }, C.afterClose = function() {
6908
- var J = C.props, D = J.appElement, k = J.ariaHideApp, Z = J.htmlOpenClassName, U = J.bodyOpenClassName, b = J.parentSelector, R = b && b().ownerDocument || document;
6909
- U && d.remove(R.body, U), Z && d.remove(R.getElementsByTagName("html")[0], Z), k && v > 0 && (v -= 1, v === 0 && I.show(D)), C.props.shouldFocusAfterRender && (C.props.shouldReturnFocusAfterClose ? (A.returnFocus(C.props.preventScroll), A.teardownScopedFocus()) : A.popWithoutFocus()), C.props.onAfterClose && C.props.onAfterClose(), W.default.deregister(C);
6908
+ var J = C.props, D = J.appElement, k = J.ariaHideApp, Z = J.htmlOpenClassName, R = J.bodyOpenClassName, b = J.parentSelector, E = b && b().ownerDocument || document;
6909
+ R && d.remove(E.body, R), Z && d.remove(E.getElementsByTagName("html")[0], Z), k && v > 0 && (v -= 1, v === 0 && I.show(D)), C.props.shouldFocusAfterRender && (C.props.shouldReturnFocusAfterClose ? (A.returnFocus(C.props.preventScroll), A.teardownScopedFocus()) : A.popWithoutFocus()), C.props.onAfterClose && C.props.onAfterClose(), W.default.deregister(C);
6910
6910
  }, C.open = function() {
6911
6911
  C.beforeOpen(), C.state.afterOpen && C.state.beforeClose ? (clearTimeout(C.closeTimer), C.setState({ beforeClose: !1 })) : (C.props.shouldFocusAfterRender && (A.setupScopedFocus(C.node), A.markForFocusLater()), C.setState({ isOpen: !0 }, function() {
6912
6912
  C.openAnimationFrame = requestAnimationFrame(function() {
@@ -6986,20 +6986,20 @@ qu.default.subscribe(Ku);
6986
6986
  }, {
6987
6987
  key: "beforeOpen",
6988
6988
  value: function() {
6989
- var C = this.props, J = C.appElement, D = C.ariaHideApp, k = C.htmlOpenClassName, Z = C.bodyOpenClassName, U = C.parentSelector, b = U && U().ownerDocument || document;
6989
+ var C = this.props, J = C.appElement, D = C.ariaHideApp, k = C.htmlOpenClassName, Z = C.bodyOpenClassName, R = C.parentSelector, b = R && R().ownerDocument || document;
6990
6990
  Z && d.add(b.body, Z), k && d.add(b.getElementsByTagName("html")[0], k), D && (v += 1, I.hide(J)), W.default.register(this);
6991
6991
  }
6992
6992
  // Don't steal focus from inner elements
6993
6993
  }, {
6994
6994
  key: "render",
6995
6995
  value: function() {
6996
- var C = this.props, J = C.id, D = C.className, k = C.overlayClassName, Z = C.defaultStyles, U = C.children, b = D ? {} : Z.content, R = k ? {} : Z.overlay;
6996
+ var C = this.props, J = C.id, D = C.className, k = C.overlayClassName, Z = C.defaultStyles, R = C.children, b = D ? {} : Z.content, E = k ? {} : Z.overlay;
6997
6997
  if (this.shouldBeClosed())
6998
6998
  return null;
6999
6999
  var f = {
7000
7000
  ref: this.setOverlayRef,
7001
7001
  className: this.buildClassName("overlay", k),
7002
- style: t({}, R, this.props.style.overlay),
7002
+ style: t({}, E, this.props.style.overlay),
7003
7003
  onClick: this.handleOverlayOnClick,
7004
7004
  onMouseDown: this.handleOverlayOnMouseDown
7005
7005
  }, O = t({
@@ -7016,7 +7016,7 @@ qu.default.subscribe(Ku);
7016
7016
  "aria-label": this.props.contentLabel
7017
7017
  }, this.attributesFromObject("aria", t({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
7018
7018
  "data-testid": this.props.testId
7019
- }), N = this.props.contentElement(O, U);
7019
+ }), N = this.props.contentElement(O, R);
7020
7020
  return this.props.overlayElement(f, N);
7021
7021
  }
7022
7022
  }]), L;
@@ -7416,11 +7416,11 @@ function Ca(e) {
7416
7416
  let { children: n, position: l, preventExitTransition: A, done: m, nodeRef: p, isIn: u } = s;
7417
7417
  const I = a ? `${i}--${l}` : i, c = a ? `${t}--${l}` : t, d = me(0);
7418
7418
  return ol(() => {
7419
- const K = p.current, S = I.split(" "), E = (W) => {
7420
- W.target === p.current && (K.dispatchEvent(new Event("d")), K.removeEventListener("animationend", E), K.removeEventListener("animationcancel", E), d.current === 0 && W.type !== "animationcancel" && K.classList.remove(...S));
7419
+ const K = p.current, S = I.split(" "), U = (W) => {
7420
+ W.target === p.current && (K.dispatchEvent(new Event("d")), K.removeEventListener("animationend", U), K.removeEventListener("animationcancel", U), d.current === 0 && W.type !== "animationcancel" && K.classList.remove(...S));
7421
7421
  };
7422
- K.classList.add(...S), K.addEventListener("animationend", E), K.addEventListener("animationcancel", E);
7423
- }, []), mi(() => {
7422
+ K.classList.add(...S), K.addEventListener("animationend", U), K.addEventListener("animationcancel", U);
7423
+ }, []), qi(() => {
7424
7424
  const K = p.current, S = () => {
7425
7425
  K.removeEventListener("animationend", S), o ? Gu(K, m, r) : m();
7426
7426
  };
@@ -7483,17 +7483,17 @@ function bu(e) {
7483
7483
  return !o.current || n.props.enableMultiContainer && v.containerId !== n.props.containerId || r.has(v.toastId) && v.updateId == null;
7484
7484
  }(S))
7485
7485
  return;
7486
- const { toastId: E, updateId: W, data: V } = S, { props: h } = n, G = () => A(E), x = W == null;
7487
- x && n.count++;
7486
+ const { toastId: U, updateId: W, data: V } = S, { props: h } = n, G = () => A(U), F = W == null;
7487
+ F && n.count++;
7488
7488
  const Q = { ...h, style: h.toastStyle, key: n.toastKey++, ...Object.fromEntries(Object.entries(S).filter((v) => {
7489
7489
  let [P, g] = v;
7490
7490
  return g != null;
7491
- })), toastId: E, updateId: W, data: V, closeToast: G, isIn: !1, className: xt(S.className || h.toastClassName), bodyClassName: xt(S.bodyClassName || h.bodyClassName), progressClassName: xt(S.progressClassName || h.progressClassName), autoClose: !S.isLoading && (T = S.autoClose, X = h.autoClose, T === !1 || nt(T) && T > 0 ? T : X), deleteToast() {
7492
- const v = wr(r.get(E), "removed");
7493
- r.delete(E), Ti.emit(4, v);
7491
+ })), toastId: U, updateId: W, data: V, closeToast: G, isIn: !1, className: xt(S.className || h.toastClassName), bodyClassName: xt(S.bodyClassName || h.bodyClassName), progressClassName: xt(S.progressClassName || h.progressClassName), autoClose: !S.isLoading && (T = S.autoClose, X = h.autoClose, T === !1 || nt(T) && T > 0 ? T : X), deleteToast() {
7492
+ const v = wr(r.get(U), "removed");
7493
+ r.delete(U), Ti.emit(4, v);
7494
7494
  const P = n.queue.length;
7495
- if (n.count = E == null ? n.count - n.displayedToast : n.count - 1, n.count < 0 && (n.count = 0), P > 0) {
7496
- const g = E == null ? n.props.limit : 1;
7495
+ if (n.count = U == null ? n.count - n.displayedToast : n.count - 1, n.count < 0 && (n.count = 0), P > 0) {
7496
+ const g = U == null ? n.props.limit : 1;
7497
7497
  if (P === 1 || g === 1)
7498
7498
  n.displayedToast++, m();
7499
7499
  else {
@@ -7512,7 +7512,7 @@ function bu(e) {
7512
7512
  return Y === !1 || (Ni(Y) ? C = Y(J) : Fe(Y) ? C = fa(Y, J) : Ye(Y) || nt(Y) ? C = Y : L ? C = Oa.spinner() : ((D) => D in Oa)(g) && (C = Oa[g](J))), C;
7513
7513
  }(Q), Ni(S.onOpen) && (Q.onOpen = S.onOpen), Ni(S.onClose) && (Q.onClose = S.onClose), Q.closeButton = h.closeButton, S.closeButton === !1 || xa(S.closeButton) ? Q.closeButton = S.closeButton : S.closeButton === !0 && (Q.closeButton = !xa(h.closeButton) || h.closeButton);
7514
7514
  let B = I;
7515
- Fe(I) && !Ye(I.type) ? B = fa(I, { closeToast: G, toastProps: Q, data: V }) : Ni(I) && (B = I({ closeToast: G, toastProps: Q, data: V })), h.limit && h.limit > 0 && n.count > h.limit && x ? n.queue.push({ toastContent: B, toastProps: Q, staleId: K }) : nt(d) ? setTimeout(() => {
7515
+ Fe(I) && !Ye(I.type) ? B = fa(I, { closeToast: G, toastProps: Q, data: V }) : Ni(I) && (B = I({ closeToast: G, toastProps: Q, data: V })), h.limit && h.limit > 0 && n.count > h.limit && F ? n.queue.push({ toastContent: B, toastProps: Q, staleId: K }) : nt(d) ? setTimeout(() => {
7516
7516
  u(B, Q, K);
7517
7517
  }, d) : u(B, Q, K);
7518
7518
  }
@@ -7520,11 +7520,11 @@ function bu(e) {
7520
7520
  const { toastId: K } = c;
7521
7521
  d && r.delete(d);
7522
7522
  const S = { content: I, props: c };
7523
- r.set(K, S), a((E) => [...E, K].filter((W) => W !== d)), Ti.emit(4, wr(S, S.props.updateId == null ? "added" : "updated"));
7523
+ r.set(K, S), a((U) => [...U, K].filter((W) => W !== d)), Ti.emit(4, wr(S, S.props.updateId == null ? "added" : "updated"));
7524
7524
  }
7525
- return mi(() => (n.containerId = e.containerId, Ti.cancelEmit(3).on(0, p).on(1, (I) => o.current && A(I)).on(5, l).emit(2, n), () => {
7525
+ return qi(() => (n.containerId = e.containerId, Ti.cancelEmit(3).on(0, p).on(1, (I) => o.current && A(I)).on(5, l).emit(2, n), () => {
7526
7526
  r.clear(), Ti.emit(3, n);
7527
- }), []), mi(() => {
7527
+ }), []), qi(() => {
7528
7528
  n.props = e, n.isToastActive = s, n.displayedToast = t.length;
7529
7529
  }), { getToastToRender: function(I) {
7530
7530
  const c = /* @__PURE__ */ new Map(), d = Array.from(r.values());
@@ -7544,15 +7544,15 @@ function Qu(e) {
7544
7544
  const [i, t] = M(!1), [a, o] = M(!1), r = me(null), s = me({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, n = me(e), { autoClose: l, pauseOnHover: A, closeToast: m, onClick: p, closeOnClick: u } = e;
7545
7545
  function I(V) {
7546
7546
  if (e.draggable) {
7547
- V.nativeEvent.type === "touchstart" && V.nativeEvent.preventDefault(), s.didMove = !1, document.addEventListener("mousemove", S), document.addEventListener("mouseup", E), document.addEventListener("touchmove", S), document.addEventListener("touchend", E);
7547
+ V.nativeEvent.type === "touchstart" && V.nativeEvent.preventDefault(), s.didMove = !1, document.addEventListener("mousemove", S), document.addEventListener("mouseup", U), document.addEventListener("touchmove", S), document.addEventListener("touchend", U);
7548
7548
  const h = r.current;
7549
7549
  s.canCloseOnClick = !0, s.canDrag = !0, s.boundingRect = h.getBoundingClientRect(), h.style.transition = "", s.x = Tr(V.nativeEvent), s.y = Br(V.nativeEvent), e.draggableDirection === "x" ? (s.start = s.x, s.removalDistance = h.offsetWidth * (e.draggablePercent / 100)) : (s.start = s.y, s.removalDistance = h.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent / 100));
7550
7550
  }
7551
7551
  }
7552
7552
  function c(V) {
7553
7553
  if (s.boundingRect) {
7554
- const { top: h, bottom: G, left: x, right: Q } = s.boundingRect;
7555
- V.nativeEvent.type !== "touchend" && e.pauseOnHover && s.x >= x && s.x <= Q && s.y >= h && s.y <= G ? K() : d();
7554
+ const { top: h, bottom: G, left: F, right: Q } = s.boundingRect;
7555
+ V.nativeEvent.type !== "touchend" && e.pauseOnHover && s.x >= F && s.x <= Q && s.y >= h && s.y <= G ? K() : d();
7556
7556
  }
7557
7557
  }
7558
7558
  function d() {
@@ -7565,8 +7565,8 @@ function Qu(e) {
7565
7565
  const h = r.current;
7566
7566
  s.canDrag && h && (s.didMove = !0, i && K(), s.x = Tr(V), s.y = Br(V), s.delta = e.draggableDirection === "x" ? s.x - s.start : s.y - s.start, s.start !== s.x && (s.canCloseOnClick = !1), h.style.transform = `translate${e.draggableDirection}(${s.delta}px)`, h.style.opacity = "" + (1 - Math.abs(s.delta / s.removalDistance)));
7567
7567
  }
7568
- function E() {
7569
- document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", E), document.removeEventListener("touchmove", S), document.removeEventListener("touchend", E);
7568
+ function U() {
7569
+ document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", U), document.removeEventListener("touchmove", S), document.removeEventListener("touchend", U);
7570
7570
  const V = r.current;
7571
7571
  if (s.canDrag && s.didMove && V) {
7572
7572
  if (s.canDrag = !1, Math.abs(s.delta) > s.removalDistance)
@@ -7574,12 +7574,12 @@ function Qu(e) {
7574
7574
  V.style.transition = "transform 0.2s, opacity 0.2s", V.style.transform = `translate${e.draggableDirection}(0)`, V.style.opacity = "1";
7575
7575
  }
7576
7576
  }
7577
- mi(() => {
7577
+ qi(() => {
7578
7578
  n.current = e;
7579
- }), mi(() => (r.current && r.current.addEventListener("d", d, { once: !0 }), Ni(e.onOpen) && e.onOpen(Fe(e.children) && e.children.props), () => {
7579
+ }), qi(() => (r.current && r.current.addEventListener("d", d, { once: !0 }), Ni(e.onOpen) && e.onOpen(Fe(e.children) && e.children.props), () => {
7580
7580
  const V = n.current;
7581
7581
  Ni(V.onClose) && V.onClose(Fe(V.children) && V.children.props);
7582
- }), []), mi(() => (e.pauseOnFocusLoss && (document.hasFocus() || K(), window.addEventListener("focus", d), window.addEventListener("blur", K)), () => {
7582
+ }), []), qi(() => (e.pauseOnFocusLoss && (document.hasFocus() || K(), window.addEventListener("focus", d), window.addEventListener("blur", K)), () => {
7583
7583
  e.pauseOnFocusLoss && (window.removeEventListener("focus", d), window.removeEventListener("blur", K));
7584
7584
  }), [e.pauseOnFocusLoss]);
7585
7585
  const W = { onMouseDown: I, onTouchStart: I, onMouseUp: c, onTouchEnd: c };
@@ -7603,9 +7603,9 @@ function ju(e) {
7603
7603
  } });
7604
7604
  }
7605
7605
  const Nu = (e) => {
7606
- const { isRunning: i, preventExitTransition: t, toastRef: a, eventHandlers: o } = Qu(e), { closeButton: r, children: s, autoClose: n, onClick: l, type: A, hideProgressBar: m, closeToast: p, transition: u, position: I, className: c, style: d, bodyClassName: K, bodyStyle: S, progressClassName: E, progressStyle: W, updateId: V, role: h, progress: G, rtl: x, toastId: Q, deleteToast: T, isIn: X, isLoading: B, iconOut: v, closeOnClick: P, theme: g } = e, L = ce("Toastify__toast", `Toastify__toast-theme--${g}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": P }), Y = Ni(c) ? c({ rtl: x, position: I, type: A, defaultClassName: L }) : ce(L, c), C = !!G || !n, J = { closeToast: p, type: A, theme: g };
7606
+ const { isRunning: i, preventExitTransition: t, toastRef: a, eventHandlers: o } = Qu(e), { closeButton: r, children: s, autoClose: n, onClick: l, type: A, hideProgressBar: m, closeToast: p, transition: u, position: I, className: c, style: d, bodyClassName: K, bodyStyle: S, progressClassName: U, progressStyle: W, updateId: V, role: h, progress: G, rtl: F, toastId: Q, deleteToast: T, isIn: X, isLoading: B, iconOut: v, closeOnClick: P, theme: g } = e, L = ce("Toastify__toast", `Toastify__toast-theme--${g}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": F }, { "Toastify__toast--close-on-click": P }), Y = Ni(c) ? c({ rtl: F, position: I, type: A, defaultClassName: L }) : ce(L, c), C = !!G || !n, J = { closeToast: p, type: A, theme: g };
7607
7607
  let D = null;
7608
- return r === !1 || (D = Ni(r) ? r(J) : Fe(r) ? fa(r, J) : Sn(J)), Ki.createElement(u, { isIn: X, done: T, position: I, preventExitTransition: t, nodeRef: a }, Ki.createElement("div", { id: Q, onClick: l, className: Y, ...o, style: d, ref: a }, Ki.createElement("div", { ...X && { role: h }, className: Ni(K) ? K({ type: A }) : ce("Toastify__toast-body", K), style: S }, v != null && Ki.createElement("div", { className: ce("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B }) }, v), Ki.createElement("div", null, s)), D, Ki.createElement(ju, { ...V && !C ? { key: `pb-${V}` } : {}, rtl: x, theme: g, delay: n, isRunning: i, isIn: X, closeToast: p, hide: m, type: A, style: W, className: E, controlledProgress: C, progress: G || 0 })));
7608
+ return r === !1 || (D = Ni(r) ? r(J) : Fe(r) ? fa(r, J) : Sn(J)), Ki.createElement(u, { isIn: X, done: T, position: I, preventExitTransition: t, nodeRef: a }, Ki.createElement("div", { id: Q, onClick: l, className: Y, ...o, style: d, ref: a }, Ki.createElement("div", { ...X && { role: h }, className: Ni(K) ? K({ type: A }) : ce("Toastify__toast-body", K), style: S }, v != null && Ki.createElement("div", { className: ce("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B }) }, v), Ki.createElement("div", null, s)), D, Ki.createElement(ju, { ...V && !C ? { key: `pb-${V}` } : {}, rtl: F, theme: g, delay: n, isRunning: i, isIn: X, closeToast: p, hide: m, type: A, style: W, className: U, controlledProgress: C, progress: G || 0 })));
7609
7609
  }, ga = function(e, i) {
7610
7610
  return i === void 0 && (i = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: i };
7611
7611
  }, Fu = Ca(ga("bounce", !0));
@@ -7618,7 +7618,7 @@ const ra = al((e, i) => {
7618
7618
  const p = ce("Toastify__toast-container", `Toastify__toast-container--${m}`, { "Toastify__toast-container--rtl": n });
7619
7619
  return Ni(r) ? r({ position: m, rtl: n, defaultClassName: p }) : ce(p, xt(r));
7620
7620
  }
7621
- return mi(() => {
7621
+ return qi(() => {
7622
7622
  i && (i.current = a.current);
7623
7623
  }, []), Ki.createElement("div", { ref: a, className: "Toastify", id: l }, t((m, p) => {
7624
7624
  const u = p.length ? { ...s } : { ...s, pointerEvents: "none" };
@@ -7751,14 +7751,14 @@ const wu = {
7751
7751
  versionId: r,
7752
7752
  customerId: s
7753
7753
  }) => {
7754
- const [n, l] = M([]), [A, m] = M([]), [p, u] = M(!1), [I, c] = M(!1), [d, K] = M(null), [S, E] = Ci(Ge), W = () => ui[o] || ui.Playable, V = () => Kt[o] || "red", h = () => ({
7754
+ const [n, l] = M([]), [A, m] = M([]), [p, u] = M(!1), [I, c] = M(!1), [d, K] = M(null), [S, U] = Ci(Ge), W = () => ui[o] || ui.Playable, V = () => Kt[o] || "red", h = () => ({
7755
7755
  Ready: "#E0F2FE",
7756
7756
  Playable: "#FFF7ED",
7757
7757
  Import: "#E0F2FE",
7758
7758
  Flex: "#F3E8FF",
7759
7759
  Fusion: "#F5F5F5"
7760
- })[o] || "#FFF7ED", G = W(), x = V(), Q = h();
7761
- mi(() => {
7760
+ })[o] || "#FFF7ED", G = W(), F = V(), Q = h();
7761
+ qi(() => {
7762
7762
  e && T();
7763
7763
  }, [e]);
7764
7764
  const T = async () => {
@@ -7815,7 +7815,7 @@ const wu = {
7815
7815
  const L = await yn(t, o, r);
7816
7816
  if (L) {
7817
7817
  const Y = L.map((C) => (C.name = C.id, C));
7818
- E(Y);
7818
+ U(Y);
7819
7819
  }
7820
7820
  gn("Networks updated successfully"), i();
7821
7821
  } catch (g) {
@@ -8199,7 +8199,7 @@ const wu = {
8199
8199
  transition: "background-color 0.2s"
8200
8200
  },
8201
8201
  onMouseEnter: (g) => {
8202
- I || (g.currentTarget.style.backgroundColor = x);
8202
+ I || (g.currentTarget.style.backgroundColor = F);
8203
8203
  },
8204
8204
  onMouseLeave: (g) => {
8205
8205
  I || (g.currentTarget.style.backgroundColor = G);
@@ -8225,7 +8225,7 @@ const wu = {
8225
8225
  customerId: s
8226
8226
  }) => {
8227
8227
  const [n, l] = M(!1), [A, m] = M(!1);
8228
- return mi(() => {
8228
+ return qi(() => {
8229
8229
  (async () => {
8230
8230
  try {
8231
8231
  const u = await Zn(s, a);
@@ -8789,7 +8789,7 @@ const fu = () => /* @__PURE__ */ q.jsxs("svg", { width: "24", height: "24", view
8789
8789
  );
8790
8790
  }, $u = ({ checked: e, typeOfProduct: i, id: t }) => {
8791
8791
  const [a, o] = M(e), r = ui[i];
8792
- mi(() => {
8792
+ qi(() => {
8793
8793
  o(e);
8794
8794
  }, [e]);
8795
8795
  const s = () => {
@@ -9704,27 +9704,27 @@ const rI = ({
9704
9704
  setIsConfirmActive: d,
9705
9705
  creditDownload: K,
9706
9706
  getDownloadCount: S,
9707
- disabled: E,
9707
+ disabled: U,
9708
9708
  user: W,
9709
9709
  setSafariCopyLink: V,
9710
9710
  isTest: h,
9711
9711
  urlType: G,
9712
- setCdnModal: x,
9712
+ setCdnModal: F,
9713
9713
  generateCDN: Q,
9714
9714
  cdnUrl: T,
9715
9715
  selectedVersionIds: X
9716
9716
  }) => {
9717
- const [B, v] = M(!1), [P, g] = M(""), [L, Y] = M(!1), [C, J] = M(!1), [D, k] = M(!1), [Z, U] = M("download"), [b, R] = M(!1), [f, O] = M(!1), [N, H] = M(!1), [$, ii] = M(!1), [ci, j] = M(!1), [di, w] = M(!1), [ri, ki] = M(!1), [Vi, F] = M(!1), [z, _] = M(!1), [qi, ni] = Ci(Ge), [Li, si] = Ci(Ce), ai = l === "Playable" ? Li : !0, yi = {
9717
+ const [B, v] = M(!1), [P, g] = M(""), [L, Y] = M(!1), [C, J] = M(!1), [D, k] = M(!1), [Z, R] = M("download"), [b, E] = M(!1), [f, O] = M(!1), [N, H] = M(!1), [$, ii] = M(!1), [ci, j] = M(!1), [di, w] = M(!1), [ai, ki] = M(!1), [Vi, z] = M(!1), [x, _] = M(!1), [ni, li] = Ci(Ge), [Ji, si] = Ci(Ce), oi = l === "Playable" ? Ji : !0, yi = {
9718
9718
  cdn: "Generate Link",
9719
9719
  adikteev: "Copy CDN"
9720
- }, li = () => {
9720
+ }, Ai = () => {
9721
9721
  t(e);
9722
- }, Di = async (pi, Ei, Ji) => {
9722
+ }, Di = async (pi, Ui, Wi) => {
9723
9723
  if (v(!0), l === "Flex" && W.flex === !1 && W.customer !== "playableFactoryInternal") {
9724
9724
  p("|ACCESS|"), v(!1);
9725
9725
  return;
9726
9726
  }
9727
- if (X && X.length > 0 && Ei === "download")
9727
+ if (X && X.length > 0 && Ui === "download")
9728
9728
  try {
9729
9729
  if (!c || !c._id)
9730
9730
  throw new Error("Game data is required for multi-version download");
@@ -9742,54 +9742,54 @@ const rI = ({
9742
9742
  urlType: G,
9743
9743
  responsiveType: "responsive"
9744
9744
  };
9745
- if (pe ? Ei === "copy" ? (O(!0), Ei = "download", be.molocoGenerateHtml = !0) : R(!0) : ue && (be.responsiveType = Ji), console.log("getVersion", pi, Ei, be), pi === "cdn") {
9746
- x(!0), await Q(!0), v(!1);
9745
+ if (pe ? Ui === "copy" ? (O(!0), Ui = "download", be.molocoGenerateHtml = !0) : E(!0) : ue && (be.responsiveType = Wi), console.log("getVersion", pi, Ui, be), pi === "cdn") {
9746
+ F(!0), await Q(!0), v(!1);
9747
9747
  return;
9748
9748
  }
9749
- return pi === "adikteev" && (Ei = "copy"), new Promise((ee, He) => {
9749
+ return pi === "adikteev" && (Ui = "copy"), new Promise((ee, He) => {
9750
9750
  qe(
9751
9751
  A,
9752
9752
  pi,
9753
- ai ? I : null,
9754
- Ei,
9753
+ oi ? I : null,
9754
+ Ui,
9755
9755
  h,
9756
9756
  be
9757
9757
  ).then((le) => {
9758
- v(!1), ee(le), O(!1), R(!1);
9758
+ v(!1), ee(le), O(!1), E(!1);
9759
9759
  }).catch((le) => {
9760
- v(!1), p(le.message, le), He(le), O(!1), R(!1);
9760
+ v(!1), p(le.message, le), He(le), O(!1), E(!1);
9761
9761
  });
9762
9762
  });
9763
9763
  }, Va = async (pi = !1) => {
9764
- pi ? O(!0) : R(!0);
9765
- const Ei = {
9764
+ pi ? O(!0) : E(!0);
9765
+ const Ui = {
9766
9766
  molocoGenerateHtml: !1
9767
9767
  };
9768
- if (pi && (Ei.molocoGenerateHtml = !0), X && X.length > 0)
9768
+ if (pi && (Ui.molocoGenerateHtml = !0), X && X.length > 0)
9769
9769
  try {
9770
9770
  if (!c || !c._id)
9771
9771
  throw new Error("Game data is required for multi-version download");
9772
- const Ji = await ct(m, c._id, {
9772
+ const Wi = await ct(m, c._id, {
9773
9773
  networks: ["moloco"],
9774
9774
  versions: X,
9775
- extras: Ei
9776
- }), be = u + "/" + Ji.url, He = await (await fetch(be)).blob(), le = window.URL.createObjectURL(He), ge = document.createElement("a");
9777
- return ge.href = le, ge.download = Ji.url.split("/").pop() || "download.zip", document.body.appendChild(ge), ge.click(), window.URL.revokeObjectURL(le), document.body.removeChild(ge), v(!1), pi ? O(!1) : R(!1), k(!1), Ji.url;
9778
- } catch (Ji) {
9779
- console.log("multi-version single network download error", Ji), v(!1), p(Ji.message, Ji);
9775
+ extras: Ui
9776
+ }), be = u + "/" + Wi.url, He = await (await fetch(be)).blob(), le = window.URL.createObjectURL(He), ge = document.createElement("a");
9777
+ return ge.href = le, ge.download = Wi.url.split("/").pop() || "download.zip", document.body.appendChild(ge), ge.click(), window.URL.revokeObjectURL(le), document.body.removeChild(ge), v(!1), pi ? O(!1) : E(!1), k(!1), Wi.url;
9778
+ } catch (Wi) {
9779
+ console.log("multi-version single network download error", Wi), v(!1), p(Wi.message, Wi);
9780
9780
  return;
9781
9781
  }
9782
- qe(A, o, ai ? I : null, "download", h, Ei).then((Ji) => {
9783
- pi ? O(!1) : R(!1), k(!1);
9784
- }).catch((Ji) => {
9785
- p(Ji.message, Ji);
9782
+ qe(A, o, oi ? I : null, "download", h, Ui).then((Wi) => {
9783
+ pi ? O(!1) : E(!1), k(!1);
9784
+ }).catch((Wi) => {
9785
+ p(Wi.message, Wi);
9786
9786
  });
9787
9787
  }, Ja = async () => {
9788
9788
  H(!0);
9789
9789
  const pi = await aI(m, A, o, l);
9790
- let Ei = `${u}/${pi == null ? void 0 : pi.url}`;
9791
- Be(Ei) ? (ii(!0), setTimeout(() => ii(!1), 2e3), H(!1)) : (V(Ei), H(!1));
9792
- }, pe = o === "moloco" || o === "molocoV2", ue = o === "google", Bo = qi.find((pi) => pi.name === o);
9790
+ let Ui = `${u}/${pi == null ? void 0 : pi.url}`;
9791
+ Be(Ui) ? (ii(!0), setTimeout(() => ii(!1), 2e3), H(!1)) : (V(Ui), H(!1));
9792
+ }, pe = o === "moloco" || o === "molocoV2", ue = o === "google", Bo = ni.find((pi) => pi.name === o);
9793
9793
  return /* @__PURE__ */ q.jsxs(q.Fragment, { children: [
9794
9794
  /* @__PURE__ */ q.jsxs(
9795
9795
  "div",
@@ -9810,7 +9810,7 @@ const rI = ({
9810
9810
  cursor: "pointer"
9811
9811
  },
9812
9812
  className: "border-hover-" + l,
9813
- onClick: li,
9813
+ onClick: Ai,
9814
9814
  children: [
9815
9815
  /* @__PURE__ */ q.jsxs(
9816
9816
  "div",
@@ -9889,7 +9889,7 @@ const rI = ({
9889
9889
  /* @__PURE__ */ q.jsx(
9890
9890
  "img",
9891
9891
  {
9892
- onClick: li,
9892
+ onClick: Ai,
9893
9893
  style: {
9894
9894
  width: "30rem",
9895
9895
  // Equivalent to 120/4 = 30rem
@@ -9926,8 +9926,8 @@ const rI = ({
9926
9926
  w(!0);
9927
9927
  else {
9928
9928
  g("download");
9929
- const Ei = I.iosUrl, Ji = I.googleUrl;
9930
- o === "cdn" && K && K.willSpendCredit && !T || o !== "cdn" && K && K.willSpendCredit ? (d(!0), U("download"), Y(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!Ei || !Ji) ? (d(!0), J(!0)) : (J(!1), Y(!1), await Di(o, "download"));
9929
+ const Ui = I.iosUrl, Wi = I.googleUrl;
9930
+ o === "cdn" && K && K.willSpendCredit && !T || o !== "cdn" && K && K.willSpendCredit ? (d(!0), R("download"), Y(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!Ui || !Wi) ? (d(!0), J(!0)) : (J(!1), Y(!1), await Di(o, "download"));
9931
9931
  }
9932
9932
  },
9933
9933
  children: pe ? /* @__PURE__ */ q.jsxs(q.Fragment, { children: [
@@ -9983,10 +9983,10 @@ const rI = ({
9983
9983
  if (pi.stopPropagation(), ci)
9984
9984
  return;
9985
9985
  g("copyLink");
9986
- const Ei = I.iosUrl, Ji = I.googleUrl;
9987
- K && (K != null && K.willSpendCredit) ? (U("copy"), d(!0), Y(!0)) : l !== "Import" && (!Ei || !Ji) ? (d(!0), J(!0)) : (Y(!1), J(!1), await Di(o, "copy"), j(!0), setTimeout(() => j(!1), 2e3));
9986
+ const Ui = I.iosUrl, Wi = I.googleUrl;
9987
+ K && (K != null && K.willSpendCredit) ? (R("copy"), d(!0), Y(!0)) : l !== "Import" && (!Ui || !Wi) ? (d(!0), J(!0)) : (Y(!1), J(!1), await Di(o, "copy"), j(!0), setTimeout(() => j(!1), 2e3));
9988
9988
  },
9989
- disabled: E,
9989
+ disabled: U,
9990
9990
  isCopied: ci,
9991
9991
  children: /* @__PURE__ */ q.jsx(Yo, { className: "h-4 w-4 stroke-dark-full" })
9992
9992
  }
@@ -9998,10 +9998,10 @@ const rI = ({
9998
9998
  typeOfProduct: l,
9999
9999
  onClickDonwload: async (pi) => {
10000
10000
  pi.stopPropagation(), g("copyLink");
10001
- const Ei = I.iosUrl, Ji = I.googleUrl;
10002
- K && (K != null && K.willSpendCredit) ? (U("download"), d(!0), Y(!0)) : l !== "Import" && (!Ei || !Ji) ? (d(!0), J(!0)) : (Y(!1), J(!1), await Va(!0));
10001
+ const Ui = I.iosUrl, Wi = I.googleUrl;
10002
+ K && (K != null && K.willSpendCredit) ? (R("download"), d(!0), Y(!0)) : l !== "Import" && (!Ui || !Wi) ? (d(!0), J(!0)) : (Y(!1), J(!1), await Va(!0));
10003
10003
  },
10004
- disabled: E,
10004
+ disabled: U,
10005
10005
  children: [
10006
10006
  !f && /* @__PURE__ */ q.jsxs(q.Fragment, { children: [
10007
10007
  /* @__PURE__ */ q.jsx(
@@ -10088,11 +10088,11 @@ const rI = ({
10088
10088
  w(!1);
10089
10089
  },
10090
10090
  handleDownload: async (pi) => {
10091
- pi === "portrait" ? ki(!0) : pi === "landscape" ? F(!0) : _(!0), await Di(o, "download", pi), pi === "portrait" ? ki(!1) : pi === "landscape" ? F(!1) : _(!1);
10091
+ pi === "portrait" ? ki(!0) : pi === "landscape" ? z(!0) : _(!0), await Di(o, "download", pi), pi === "portrait" ? ki(!1) : pi === "landscape" ? z(!1) : _(!1);
10092
10092
  },
10093
- downloadingPortrait: ri,
10093
+ downloadingPortrait: ai,
10094
10094
  downloadingLandscape: Vi,
10095
- downloadingResponsive: z,
10095
+ downloadingResponsive: x,
10096
10096
  typeOfProduct: l
10097
10097
  }
10098
10098
  )
@@ -10576,57 +10576,57 @@ const rI = ({
10576
10576
  urlType: d,
10577
10577
  allNetworksSelected: K,
10578
10578
  cdnModal: S,
10579
- setCdnModal: E,
10579
+ setCdnModal: U,
10580
10580
  cdnUrl: W,
10581
10581
  setCdnUrl: V,
10582
10582
  customer: h,
10583
10583
  selectedVersionIds: G
10584
10584
  }) => {
10585
- const [x, Q] = M([]), [T, X] = M([]), [B, v] = M(!1), [P, g] = M(""), [L, Y] = M(!1), [C, J] = M(!1), [D, k] = M("download"), [Z, U] = M(!1), [b, R] = M(!1), [f, O] = M(!1), [N, H] = Ci(da), [$, ii] = Ci(Za), [ci] = Ci(Ge), [j, di] = Ci(Ce), w = o === "Playable" ? j : !0, ri = async (z = !1) => {
10586
- z && W || f || (O(!0), qe(a, "cdn", w ? A : null, null, !1, {}).then((_) => {
10585
+ const [F, Q] = M([]), [T, X] = M([]), [B, v] = M(!1), [P, g] = M(""), [L, Y] = M(!1), [C, J] = M(!1), [D, k] = M("download"), [Z, R] = M(!1), [b, E] = M(!1), [f, O] = M(!1), [N, H] = Ci(da), [$, ii] = Ci(Za), [ci] = Ci(Ge), [j, di] = Ci(Ce), w = o === "Playable" ? j : !0, ai = async (x = !1) => {
10586
+ x && W || f || (O(!0), qe(a, "cdn", w ? A : null, null, !1, {}).then((_) => {
10587
10587
  V(_.url), O(!1);
10588
10588
  }).catch((_) => {
10589
10589
  n(_.message, _), O(!1);
10590
10590
  }));
10591
- }, ki = async (z) => {
10592
- if (z === "adikteev" || z === "cdn")
10591
+ }, ki = async (x) => {
10592
+ if (x === "adikteev" || x === "cdn")
10593
10593
  return;
10594
- const _ = [...x];
10595
- if (x.includes(z)) {
10596
- const qi = _.findIndex((ni) => ni === z);
10597
- _.splice(qi, 1), Q(_);
10594
+ const _ = [...F];
10595
+ if (F.includes(x)) {
10596
+ const ni = _.findIndex((li) => li === x);
10597
+ _.splice(ni, 1), Q(_);
10598
10598
  } else
10599
- _.push(z), Q([...x, z]);
10600
- ci.filter((qi) => [..._].includes(qi.id)).map((qi) => qi.name);
10601
- }, Vi = async () => new Promise(async (z, _) => {
10602
- const qi = ci.filter((ni) => [...x].includes(ni.id)).map((ni) => ni.name);
10599
+ _.push(x), Q([...F, x]);
10600
+ ci.filter((ni) => [..._].includes(ni.id)).map((ni) => ni.name);
10601
+ }, Vi = async () => new Promise(async (x, _) => {
10602
+ const ni = ci.filter((li) => [...F].includes(li.id)).map((li) => li.name);
10603
10603
  if (Y(!0), G && G.length > 0)
10604
10604
  try {
10605
10605
  if (!m || !m._id)
10606
10606
  throw new Error("Game data is required for multi-version download");
10607
- const ni = await ct(r, m._id, {
10608
- networks: qi,
10607
+ const li = await ct(r, m._id, {
10608
+ networks: ni,
10609
10609
  versions: G
10610
- }), Li = l + "/" + ni.url, ai = await (await fetch(Li)).blob(), yi = window.URL.createObjectURL(ai), li = document.createElement("a");
10611
- li.href = yi, li.download = ni.url.split("/").pop() || "download.zip", document.body.appendChild(li), li.click(), window.URL.revokeObjectURL(yi), document.body.removeChild(li), Y(!1), z(ni.url);
10612
- } catch (ni) {
10613
- console.log("multi-version download error", ni), Y(!1), n(ni.message, ni), _(ni);
10610
+ }), Ji = l + "/" + li.url, oi = await (await fetch(Ji)).blob(), yi = window.URL.createObjectURL(oi), Ai = document.createElement("a");
10611
+ Ai.href = yi, Ai.download = li.url.split("/").pop() || "download.zip", document.body.appendChild(Ai), Ai.click(), window.URL.revokeObjectURL(yi), document.body.removeChild(Ai), Y(!1), x(li.url);
10612
+ } catch (li) {
10613
+ console.log("multi-version download error", li), Y(!1), n(li.message, li), _(li);
10614
10614
  }
10615
10615
  else
10616
- fs(a, A, qi, { urlType: d }).then((ni) => {
10617
- Y(!1), z(ni);
10618
- }).catch((ni) => {
10619
- console.log("get multi download err"), Y(!1), n(ni.message, ni), _(ni);
10616
+ fs(a, A, ni, { urlType: d }).then((li) => {
10617
+ Y(!1), x(li);
10618
+ }).catch((li) => {
10619
+ console.log("get multi download err"), Y(!1), n(li.message, li), _(li);
10620
10620
  });
10621
- }), F = async () => {
10622
- A.iosUrl, A.googleUrl, i && i.willSpendCredit ? (J(!0), k("download"), U(!0)) : (U(!1), await Vi());
10621
+ }), z = async () => {
10622
+ A.iosUrl, A.googleUrl, i && i.willSpendCredit ? (J(!0), k("download"), R(!0)) : (R(!1), await Vi());
10623
10623
  };
10624
- return mi(() => {
10625
- const z = ci.filter((_) => {
10626
- var qi;
10627
- return G && G.length > 0 ? !0 : i && ((qi = i == null ? void 0 : i.networks) == null ? void 0 : qi.length) > 0 ? typeof _ == "string" ? i == null ? void 0 : i.networks.includes(_) : i == null ? void 0 : i.networks.includes(_.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((ni) => ni.status === "paid").some((ni) => ni.name === _.name) : _ ? !0 : e == null ? void 0 : e.networks.includes(_);
10624
+ return qi(() => {
10625
+ const x = ci.filter((_) => {
10626
+ var ni;
10627
+ return G && G.length > 0 ? !0 : i && ((ni = i == null ? void 0 : i.networks) == null ? void 0 : ni.length) > 0 ? typeof _ == "string" ? i == null ? void 0 : i.networks.includes(_) : i == null ? void 0 : i.networks.includes(_.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((li) => li.status === "paid").some((li) => li.name === _.name) : _ ? !0 : e == null ? void 0 : e.networks.includes(_);
10628
10628
  }).filter((_) => _.name === "voodoo" ? s.customer === "customer:20" : !0).filter((_) => _.id !== "adikteev" && _.id !== "cdn").map((_) => _.id);
10629
- console.log("networks", z), Q(K ? z : []);
10629
+ console.log("networks", x), Q(K ? x : []);
10630
10630
  }, [K, G, ci, i, o, e, m, s.customer]), /* @__PURE__ */ q.jsxs(
10631
10631
  "div",
10632
10632
  {
@@ -10647,7 +10647,7 @@ const rI = ({
10647
10647
  overflowY: C ? "hidden" : "auto",
10648
10648
  padding: "1.5rem",
10649
10649
  paddingTop: "0",
10650
- paddingBottom: x.length > 0 ? "5rem" : "1.5rem"
10650
+ paddingBottom: F.length > 0 ? "5rem" : "1.5rem"
10651
10651
  },
10652
10652
  children: /* @__PURE__ */ q.jsx(
10653
10653
  "div",
@@ -10658,37 +10658,37 @@ const rI = ({
10658
10658
  gap: "0.75rem",
10659
10659
  maxWidth: "100%"
10660
10660
  },
10661
- children: t && ci.filter((z) => {
10661
+ children: t && ci.filter((x) => {
10662
10662
  var _;
10663
10663
  if (G && G.length > 0)
10664
10664
  return !0;
10665
10665
  if (i && ((_ = i == null ? void 0 : i.networks) == null ? void 0 : _.length) > 0)
10666
- return typeof z == "string" ? i == null ? void 0 : i.networks.includes(z) : i == null ? void 0 : i.networks.includes(z.name);
10666
+ return typeof x == "string" ? i == null ? void 0 : i.networks.includes(x) : i == null ? void 0 : i.networks.includes(x.name);
10667
10667
  if (o === "Import")
10668
- return e == null ? void 0 : e.networks.filter((qi) => qi.status === "paid").some((qi) => qi.name === z.name);
10669
- if (!z)
10670
- e == null || e.networks.includes(z);
10668
+ return e == null ? void 0 : e.networks.filter((ni) => ni.status === "paid").some((ni) => ni.name === x.name);
10669
+ if (!x)
10670
+ e == null || e.networks.includes(x);
10671
10671
  else
10672
- return z;
10672
+ return x;
10673
10673
  }).filter(
10674
- (z) => z.name === "voodoo" ? s.customer === "customer:20" : !0
10675
- ).map((z) => {
10676
- let _ = z.imageSrc;
10677
- if (z.name === "web") {
10678
- let qi = "web_" + o.toLowerCase() + ".png";
10679
- _ = _.replace("web.png", qi);
10674
+ (x) => x.name === "voodoo" ? s.customer === "customer:20" : !0
10675
+ ).map((x) => {
10676
+ let _ = x.imageSrc;
10677
+ if (x.name === "web") {
10678
+ let ni = "web_" + o.toLowerCase() + ".png";
10679
+ _ = _.replace("web.png", ni);
10680
10680
  }
10681
10681
  return /* @__PURE__ */ q.jsx(
10682
10682
  rI,
10683
10683
  {
10684
- id: z.id,
10685
- name: z.name,
10684
+ id: x.id,
10685
+ name: x.name,
10686
10686
  imageUrl: _,
10687
- selected: x.includes(z.id),
10687
+ selected: F.includes(x.id),
10688
10688
  handleCardClick: ki,
10689
10689
  networkVersionSize: T,
10690
10690
  fileSizeLoading: B,
10691
- showCheckBox: z.id !== "adikteev" && z.id !== "cdn",
10691
+ showCheckBox: x.id !== "adikteev" && x.id !== "cdn",
10692
10692
  typeOfProduct: o,
10693
10693
  versionId: a,
10694
10694
  api: r,
@@ -10704,19 +10704,19 @@ const rI = ({
10704
10704
  setSafariCopyLink: I,
10705
10705
  isTest: c,
10706
10706
  urlType: d,
10707
- setCdnModal: E,
10708
- generateCDN: ri,
10707
+ setCdnModal: U,
10708
+ generateCDN: ai,
10709
10709
  cdnUrl: W,
10710
10710
  selectedVersionIds: G
10711
10711
  },
10712
- z.id
10712
+ x.id
10713
10713
  );
10714
10714
  })
10715
10715
  }
10716
10716
  )
10717
10717
  }
10718
10718
  ),
10719
- x.length > 0 && (o === "Playable" || o === "Ready" || o === "Flex") && /* @__PURE__ */ q.jsx(
10719
+ F.length > 0 && (o === "Playable" || o === "Ready" || o === "Flex") && /* @__PURE__ */ q.jsx(
10720
10720
  "div",
10721
10721
  {
10722
10722
  style: {
@@ -10731,11 +10731,11 @@ const rI = ({
10731
10731
  children: /* @__PURE__ */ q.jsx(
10732
10732
  sI,
10733
10733
  {
10734
- onClickMultiDownload: F,
10734
+ onClickMultiDownload: z,
10735
10735
  networksVersionTotalSize: P,
10736
10736
  typeOfProduct: o,
10737
10737
  multiDownloading: L,
10738
- selectedCount: x.length
10738
+ selectedCount: F.length
10739
10739
  }
10740
10740
  )
10741
10741
  }
@@ -10744,7 +10744,7 @@ const rI = ({
10744
10744
  Un,
10745
10745
  {
10746
10746
  onClose: () => {
10747
- E(!1), p();
10747
+ U(!1), p();
10748
10748
  },
10749
10749
  versionId: a,
10750
10750
  urls: A,
@@ -10754,14 +10754,14 @@ const rI = ({
10754
10754
  generateCDN: async () => {
10755
10755
  if (!f) {
10756
10756
  if (!(i != null && i.willSpendCredit)) {
10757
- ri();
10757
+ ai();
10758
10758
  return;
10759
10759
  }
10760
10760
  if (s.customer === "playableFactoryInternal") {
10761
- ri();
10761
+ ai();
10762
10762
  return;
10763
10763
  }
10764
- R(!0);
10764
+ E(!0);
10765
10765
  }
10766
10766
  },
10767
10767
  cdnUploading: f,
@@ -10787,10 +10787,10 @@ const rI = ({
10787
10787
  handleCopyLink: async () => {
10788
10788
  },
10789
10789
  download: async () => {
10790
- U(!1), R(!1), ri();
10790
+ R(!1), E(!1), ai();
10791
10791
  },
10792
10792
  onClose: () => {
10793
- U(!1), R(!1), O(!1);
10793
+ R(!1), E(!1), O(!1);
10794
10794
  },
10795
10795
  getDownloadCount: p,
10796
10796
  typeOfProduct: o
@@ -10803,10 +10803,10 @@ const rI = ({
10803
10803
  handleCopyLink: async () => {
10804
10804
  },
10805
10805
  download: async () => {
10806
- U(!1), J(!1), await Vi();
10806
+ R(!1), J(!1), await Vi();
10807
10807
  },
10808
10808
  onClose: () => {
10809
- U(!1), J(!1);
10809
+ R(!1), J(!1);
10810
10810
  },
10811
10811
  getDownloadCount: p,
10812
10812
  typeOfProduct: o
@@ -10886,119 +10886,119 @@ const lI = ({
10886
10886
  setIosLink: d,
10887
10887
  setAndroidLink: K,
10888
10888
  urlType: S,
10889
- setUrlType: E,
10889
+ setUrlType: U,
10890
10890
  selectedVersionIds: W
10891
10891
  }) => {
10892
- const [V, h] = M(null), [G, x] = M(null), [Q, T] = M(null), [X, B] = M(!1), [v, P] = M(!0), [g, L] = M(window.innerWidth), [Y, C] = M(!1), [J, D] = M(!1), [k, Z] = M("");
10892
+ const [V, h] = M(null), [G, F] = M(null), [Q, T] = M(null), [X, B] = M(!1), [v, P] = M(!0), [g, L] = M(window.innerWidth), [Y, C] = M(!1), [J, D] = M(!1), [k, Z] = M("");
10893
10893
  Ci(da), Ci(Za);
10894
- const [U, b] = Ci(ha), [R, f] = Ci(Ce);
10895
- mi(() => {
10896
- !k && a !== "Fusion" && vs(i).then((F) => {
10897
- F != null && F.exist && Z(F.uploadPath);
10894
+ const [R, b] = Ci(ha), [E, f] = Ci(Ce);
10895
+ qi(() => {
10896
+ !k && a !== "Fusion" && vs(i).then((z) => {
10897
+ z != null && z.exist && Z(z.uploadPath);
10898
10898
  });
10899
10899
  }, [k]);
10900
10900
  const [O, N] = M(!1);
10901
- mi(() => {
10902
- }, [O]), mi(() => {
10903
- const F = () => {
10901
+ qi(() => {
10902
+ }, [O]), qi(() => {
10903
+ const z = () => {
10904
10904
  L(window.innerWidth);
10905
10905
  };
10906
- return window.addEventListener("resize", F), () => {
10907
- window.removeEventListener("resize", F);
10906
+ return window.addEventListener("resize", z), () => {
10907
+ window.removeEventListener("resize", z);
10908
10908
  };
10909
10909
  }, []);
10910
10910
  const H = async () => {
10911
10911
  B(!0);
10912
- const F = await Go(e, r);
10913
- return F != null && F.networks || (F.networks = Dr), h(F), F;
10914
- }, $ = (F, z) => {
10912
+ const z = await Go(e, r);
10913
+ return z != null && z.networks || (z.networks = Dr), h(z), z;
10914
+ }, $ = (z, x) => {
10915
10915
  clearTimeout(fr), fr = setTimeout(() => {
10916
- if (a === "Playable" && !R)
10916
+ if (a === "Playable" && !E)
10917
10917
  return;
10918
- (W && W.length > 0 ? W : [i]).forEach((qi) => {
10919
- Nm(qi, { iosUrl: F, googleUrl: z }, { urlType: S });
10918
+ (W && W.length > 0 ? W : [i]).forEach((ni) => {
10919
+ Nm(ni, { iosUrl: z, googleUrl: x }, { urlType: S });
10920
10920
  });
10921
10921
  }, 1e3);
10922
- }, ii = (F) => {
10923
- d(F), $(F, c);
10924
- }, ci = (F) => {
10925
- K(F), $(I, F);
10926
- }, j = async (F, z) => {
10927
- var _, qi;
10922
+ }, ii = (z) => {
10923
+ d(z), $(z, c);
10924
+ }, ci = (z) => {
10925
+ K(z), $(I, z);
10926
+ }, j = async (z, x) => {
10927
+ var _, ni;
10928
10928
  try {
10929
- let ni;
10929
+ let li;
10930
10930
  if (a === "Playable" || a === "Ready") {
10931
- const Li = await Gn(i, r);
10932
- if (Li) {
10933
- d(Li.iosLink), K(Li.androidLink), B(!1);
10931
+ const Ji = await Gn(i, r);
10932
+ if (Ji) {
10933
+ d(Ji.iosLink), K(Ji.androidLink), B(!1);
10934
10934
  return;
10935
10935
  }
10936
- if (F && (F.iosUrl || F.googleUrl)) {
10937
- d(F.iosUrl), K(F.googleUrl), B(!1);
10936
+ if (z && (z.iosUrl || z.googleUrl)) {
10937
+ d(z.iosUrl), K(z.googleUrl), B(!1);
10938
10938
  return;
10939
10939
  }
10940
- if (z && z.html) {
10941
- const si = `${A}/${z.html}?t=${Date.now()}`;
10942
- let ai = await fetch(si).then((Di) => Di.text());
10943
- const yi = ((_ = ai.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : _.at(1)) || "";
10940
+ if (x && x.html) {
10941
+ const si = `${A}/${x.html}?t=${Date.now()}`;
10942
+ let oi = await fetch(si).then((Di) => Di.text());
10943
+ const yi = ((_ = oi.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : _.at(1)) || "";
10944
10944
  d(yi);
10945
- const li = ((qi = ai.match(/var\s+androidLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : qi.at(1)) || "";
10946
- K(li), B(!1);
10945
+ const Ai = ((ni = oi.match(/var\s+androidLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : ni.at(1)) || "";
10946
+ K(Ai), B(!1);
10947
10947
  } else
10948
10948
  K(""), d(""), B(!1);
10949
10949
  } else if (a === "Flex") {
10950
- const Li = await bn(i, r);
10951
- if (Li.googleUrl || Li.iosUrl) {
10952
- K(Li.googleUrl), d(Li.iosUrl), B(!1);
10950
+ const Ji = await bn(i, r);
10951
+ if (Ji.googleUrl || Ji.iosUrl) {
10952
+ K(Ji.googleUrl), d(Ji.iosUrl), B(!1);
10953
10953
  return;
10954
10954
  }
10955
- F && (F.iosUrl || F.googleUrl) ? (d(F.iosUrl), K(F.googleUrl), B(!1)) : (K(""), d(""), B(!1));
10955
+ z && (z.iosUrl || z.googleUrl) ? (d(z.iosUrl), K(z.googleUrl), B(!1)) : (K(""), d(""), B(!1));
10956
10956
  } else
10957
- a === "Fusion" && (F && (F.iosUrl || F.googleUrl) ? (d(F.iosUrl), K(F.googleUrl), B(!1)) : (K(""), d(""), B(!1)));
10958
- } catch (ni) {
10959
- l(ni.response.data.error.msg);
10957
+ a === "Fusion" && (z && (z.iosUrl || z.googleUrl) ? (d(z.iosUrl), K(z.googleUrl), B(!1)) : (K(""), d(""), B(!1)));
10958
+ } catch (li) {
10959
+ l(li.response.data.error.msg);
10960
10960
  }
10961
10961
  }, di = async () => {
10962
10962
  B(!0);
10963
- let F;
10964
- a === "Flex" ? F = await Ln({ _id: i }, r) : a === "Ready" && (F = await jn({ _id: i }, r)), F && (["admin", "pm", "tester", "sales"].includes(s.role) ? T({
10965
- ...F,
10966
- networks: U
10967
- }) : (console.log("result", F), a === "Ready" && !F.canDownload ? T({
10968
- ...F,
10963
+ let z;
10964
+ a === "Flex" ? z = await Ln({ _id: i }, r) : a === "Ready" && (z = await jn({ _id: i }, r)), z && (["admin", "pm", "tester", "sales"].includes(s.role) ? T({
10965
+ ...z,
10966
+ networks: R
10967
+ }) : (console.log("result", z), a === "Ready" && !z.canDownload ? T({
10968
+ ...z,
10969
10969
  networks: Dr
10970
- }) : (console.log("result", F), T({
10971
- ...F,
10972
- networks: F.networks
10970
+ }) : (console.log("result", z), T({
10971
+ ...z,
10972
+ networks: z.networks
10973
10973
  })))), B(!1);
10974
- }, w = async () => await Yn(t, r), [ri, ki] = M(null), Vi = async (F) => await Nn(F, r);
10975
- return mi(() => {
10976
- o || (h(null), x(null), T(null), p(null), ki(null)), o && (a === "Playable" ? w().then((F) => {
10977
- x(F), F && Vi(F.customer).then((z) => {
10978
- ki(z || null);
10979
- }), H().then((z) => {
10980
- j(null, z);
10974
+ }, w = async () => await Yn(t, r), [ai, ki] = M(null), Vi = async (z) => await Nn(z, r);
10975
+ return qi(() => {
10976
+ o || (h(null), F(null), T(null), p(null), ki(null)), o && (a === "Playable" ? w().then((z) => {
10977
+ F(z), z && Vi(z.customer).then((x) => {
10978
+ ki(x || null);
10979
+ }), H().then((x) => {
10980
+ j(null, x);
10981
10981
  }), P(!1);
10982
- }) : a === "Ready" ? di().then((F) => {
10983
- H().then((z) => {
10984
- j(null, z), P(!1), z != null && z.customer && Vi(z.customer).then((_) => {
10982
+ }) : a === "Ready" ? di().then((z) => {
10983
+ H().then((x) => {
10984
+ j(null, x), P(!1), x != null && x.customer && Vi(x.customer).then((_) => {
10985
10985
  ki(_ || null);
10986
10986
  });
10987
10987
  });
10988
- }) : a === "Flex" ? di().then((F) => {
10989
- P(!1), w().then((z) => {
10990
- o && (j(z, null), P(!1), x(z), z && Vi(z.customer).then((_) => {
10988
+ }) : a === "Flex" ? di().then((z) => {
10989
+ P(!1), w().then((x) => {
10990
+ o && (j(x, null), P(!1), F(x), x && Vi(x.customer).then((_) => {
10991
10991
  ki(_ || null);
10992
10992
  }));
10993
10993
  });
10994
- }) : a === "Import" ? Qn(i, r).then((F) => {
10995
- h(F), d(F.iosUrl || ""), K(F.googleUrl || ""), B(!1), P(!1);
10996
- }) : a === "Fusion" && (P(!1), w().then((F) => {
10997
- o && (j(F, null), P(!1), x({
10998
- ...F,
10999
- networks: U.filter((z) => z !== "cdn")
11000
- }), F && Vi(F.customer).then((z) => {
11001
- ki(z || null);
10994
+ }) : a === "Import" ? Qn(i, r).then((z) => {
10995
+ h(z), d(z.iosUrl || ""), K(z.googleUrl || ""), B(!1), P(!1);
10996
+ }) : a === "Fusion" && (P(!1), w().then((z) => {
10997
+ o && (j(z, null), P(!1), F({
10998
+ ...z,
10999
+ networks: R.filter((x) => x !== "cdn")
11000
+ }), z && Vi(z.customer).then((x) => {
11001
+ ki(x || null);
11002
11002
  }));
11003
11003
  })));
11004
11004
  }, [t, e, i, o]), /* @__PURE__ */ q.jsxs(
@@ -11044,11 +11044,11 @@ const lI = ({
11044
11044
  isTest: Y,
11045
11045
  setIsTest: C,
11046
11046
  urlType: S,
11047
- setUrlType: E,
11047
+ setUrlType: U,
11048
11048
  allNetworksSelected: O,
11049
11049
  setAllNetworksSelected: N,
11050
11050
  versionId: i,
11051
- customerId: (ri == null ? void 0 : ri._id) || ""
11051
+ customerId: (ai == null ? void 0 : ai._id) || ""
11052
11052
  }
11053
11053
  ),
11054
11054
  X ? /* @__PURE__ */ q.jsx(
@@ -11086,7 +11086,7 @@ const lI = ({
11086
11086
  setCdnModal: D,
11087
11087
  cdnUrl: k,
11088
11088
  setCdnUrl: Z,
11089
- customer: ri ?? void 0,
11089
+ customer: ai ?? void 0,
11090
11090
  selectedVersionIds: W
11091
11091
  }
11092
11092
  )
@@ -11102,7 +11102,7 @@ async function Fn(e, i = !1, t) {
11102
11102
  }
11103
11103
  const AI = ({ selectedVersionIds: e, api: i, fetchFileUrl: t }) => {
11104
11104
  const [a, o] = M([]);
11105
- return mi(() => {
11105
+ return qi(() => {
11106
11106
  const r = e.map((n) => ({
11107
11107
  versionId: n,
11108
11108
  versionName: "Loading...",
@@ -11457,25 +11457,25 @@ function dI(e, i) {
11457
11457
  });
11458
11458
  }
11459
11459
  const Bn = 4;
11460
- function Wi(e) {
11460
+ function Mi(e) {
11461
11461
  if (e)
11462
11462
  return ZI(e);
11463
11463
  }
11464
11464
  function ZI(e) {
11465
- for (var i in Wi.prototype)
11466
- e[i] = Wi.prototype[i];
11465
+ for (var i in Mi.prototype)
11466
+ e[i] = Mi.prototype[i];
11467
11467
  return e;
11468
11468
  }
11469
- Wi.prototype.on = Wi.prototype.addEventListener = function(e, i) {
11469
+ Mi.prototype.on = Mi.prototype.addEventListener = function(e, i) {
11470
11470
  return this._callbacks = this._callbacks || {}, (this._callbacks["$" + e] = this._callbacks["$" + e] || []).push(i), this;
11471
11471
  };
11472
- Wi.prototype.once = function(e, i) {
11472
+ Mi.prototype.once = function(e, i) {
11473
11473
  function t() {
11474
11474
  this.off(e, t), i.apply(this, arguments);
11475
11475
  }
11476
11476
  return t.fn = i, this.on(e, t), this;
11477
11477
  };
11478
- Wi.prototype.off = Wi.prototype.removeListener = Wi.prototype.removeAllListeners = Wi.prototype.removeEventListener = function(e, i) {
11478
+ Mi.prototype.off = Mi.prototype.removeListener = Mi.prototype.removeAllListeners = Mi.prototype.removeEventListener = function(e, i) {
11479
11479
  if (this._callbacks = this._callbacks || {}, arguments.length == 0)
11480
11480
  return this._callbacks = {}, this;
11481
11481
  var t = this._callbacks["$" + e];
@@ -11490,7 +11490,7 @@ Wi.prototype.off = Wi.prototype.removeListener = Wi.prototype.removeAllListeners
11490
11490
  }
11491
11491
  return t.length === 0 && delete this._callbacks["$" + e], this;
11492
11492
  };
11493
- Wi.prototype.emit = function(e) {
11493
+ Mi.prototype.emit = function(e) {
11494
11494
  this._callbacks = this._callbacks || {};
11495
11495
  for (var i = new Array(arguments.length - 1), t = this._callbacks["$" + e], a = 1; a < arguments.length; a++)
11496
11496
  i[a - 1] = arguments[a];
@@ -11501,11 +11501,11 @@ Wi.prototype.emit = function(e) {
11501
11501
  }
11502
11502
  return this;
11503
11503
  };
11504
- Wi.prototype.emitReserved = Wi.prototype.emit;
11505
- Wi.prototype.listeners = function(e) {
11504
+ Mi.prototype.emitReserved = Mi.prototype.emit;
11505
+ Mi.prototype.listeners = function(e) {
11506
11506
  return this._callbacks = this._callbacks || {}, this._callbacks["$" + e] || [];
11507
11507
  };
11508
- Wi.prototype.hasListeners = function(e) {
11508
+ Mi.prototype.hasListeners = function(e) {
11509
11509
  return !!this.listeners(e).length;
11510
11510
  };
11511
11511
  const ya = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (i) => Promise.resolve().then(i) : (i, t) => t(i, 0))(), Bi = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())(), hI = "arraybuffer";
@@ -11548,7 +11548,7 @@ class WI extends Error {
11548
11548
  super(i), this.description = t, this.context = a, this.type = "TransportError";
11549
11549
  }
11550
11550
  }
11551
- class zo extends Wi {
11551
+ class zo extends Mi {
11552
11552
  /**
11553
11553
  * Transport abstract constructor.
11554
11554
  *
@@ -11788,7 +11788,7 @@ class RI extends MI {
11788
11788
  }), this.pollXhr = i;
11789
11789
  }
11790
11790
  }
11791
- class se extends Wi {
11791
+ class se extends Mi {
11792
11792
  /**
11793
11793
  * Request constructor
11794
11794
  *
@@ -12084,7 +12084,7 @@ const Io = typeof addEventListener == "function" && typeof removeEventListener =
12084
12084
  Io && addEventListener("offline", () => {
12085
12085
  zt.forEach((e) => e());
12086
12086
  }, !1);
12087
- class he extends Wi {
12087
+ class he extends Mi {
12088
12088
  /**
12089
12089
  * Socket constructor.
12090
12090
  *
@@ -12512,10 +12512,10 @@ const PI = [
12512
12512
  "removeListener"
12513
12513
  // used by the Node.js EventEmitter
12514
12514
  ], _I = 5;
12515
- var Ai;
12515
+ var mi;
12516
12516
  (function(e) {
12517
12517
  e[e.CONNECT = 0] = "CONNECT", e[e.DISCONNECT = 1] = "DISCONNECT", e[e.EVENT = 2] = "EVENT", e[e.ACK = 3] = "ACK", e[e.CONNECT_ERROR = 4] = "CONNECT_ERROR", e[e.BINARY_EVENT = 5] = "BINARY_EVENT", e[e.BINARY_ACK = 6] = "BINARY_ACK";
12518
- })(Ai || (Ai = {}));
12518
+ })(mi || (mi = {}));
12519
12519
  class $I {
12520
12520
  /**
12521
12521
  * Encoder constructor
@@ -12532,8 +12532,8 @@ class $I {
12532
12532
  * @param {Object} obj - packet object
12533
12533
  */
12534
12534
  encode(i) {
12535
- return (i.type === Ai.EVENT || i.type === Ai.ACK) && wt(i) ? this.encodeAsBinary({
12536
- type: i.type === Ai.EVENT ? Ai.BINARY_EVENT : Ai.BINARY_ACK,
12535
+ return (i.type === mi.EVENT || i.type === mi.ACK) && wt(i) ? this.encodeAsBinary({
12536
+ type: i.type === mi.EVENT ? mi.BINARY_EVENT : mi.BINARY_ACK,
12537
12537
  nsp: i.nsp,
12538
12538
  data: i.data,
12539
12539
  id: i.id
@@ -12544,7 +12544,7 @@ class $I {
12544
12544
  */
12545
12545
  encodeAsString(i) {
12546
12546
  let t = "" + i.type;
12547
- return (i.type === Ai.BINARY_EVENT || i.type === Ai.BINARY_ACK) && (t += i.attachments + "-"), i.nsp && i.nsp !== "/" && (t += i.nsp + ","), i.id != null && (t += i.id), i.data != null && (t += JSON.stringify(i.data, this.replacer)), t;
12547
+ return (i.type === mi.BINARY_EVENT || i.type === mi.BINARY_ACK) && (t += i.attachments + "-"), i.nsp && i.nsp !== "/" && (t += i.nsp + ","), i.id != null && (t += i.id), i.data != null && (t += JSON.stringify(i.data, this.replacer)), t;
12548
12548
  }
12549
12549
  /**
12550
12550
  * Encode packet as 'buffer sequence' by removing blobs, and
@@ -12559,7 +12559,7 @@ class $I {
12559
12559
  function _r(e) {
12560
12560
  return Object.prototype.toString.call(e) === "[object Object]";
12561
12561
  }
12562
- class To extends Wi {
12562
+ class To extends Mi {
12563
12563
  /**
12564
12564
  * Decoder constructor
12565
12565
  *
@@ -12579,8 +12579,8 @@ class To extends Wi {
12579
12579
  if (this.reconstructor)
12580
12580
  throw new Error("got plaintext data when reconstructing a packet");
12581
12581
  t = this.decodeString(i);
12582
- const a = t.type === Ai.BINARY_EVENT;
12583
- a || t.type === Ai.BINARY_ACK ? (t.type = a ? Ai.EVENT : Ai.ACK, this.reconstructor = new iK(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
12582
+ const a = t.type === mi.BINARY_EVENT;
12583
+ a || t.type === mi.BINARY_ACK ? (t.type = a ? mi.EVENT : mi.ACK, this.reconstructor = new iK(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
12584
12584
  } else if (wo(i) || i.base64)
12585
12585
  if (this.reconstructor)
12586
12586
  t = this.reconstructor.takeBinaryData(i), t && (this.reconstructor = null, super.emitReserved("decoded", t));
@@ -12600,9 +12600,9 @@ class To extends Wi {
12600
12600
  const a = {
12601
12601
  type: Number(i.charAt(0))
12602
12602
  };
12603
- if (Ai[a.type] === void 0)
12603
+ if (mi[a.type] === void 0)
12604
12604
  throw new Error("unknown packet type " + a.type);
12605
- if (a.type === Ai.BINARY_EVENT || a.type === Ai.BINARY_ACK) {
12605
+ if (a.type === mi.BINARY_EVENT || a.type === mi.BINARY_ACK) {
12606
12606
  const r = t + 1;
12607
12607
  for (; i.charAt(++t) !== "-" && t != i.length; )
12608
12608
  ;
@@ -12650,17 +12650,17 @@ class To extends Wi {
12650
12650
  }
12651
12651
  static isPayloadValid(i, t) {
12652
12652
  switch (i) {
12653
- case Ai.CONNECT:
12653
+ case mi.CONNECT:
12654
12654
  return _r(t);
12655
- case Ai.DISCONNECT:
12655
+ case mi.DISCONNECT:
12656
12656
  return t === void 0;
12657
- case Ai.CONNECT_ERROR:
12657
+ case mi.CONNECT_ERROR:
12658
12658
  return typeof t == "string" || _r(t);
12659
- case Ai.EVENT:
12660
- case Ai.BINARY_EVENT:
12659
+ case mi.EVENT:
12660
+ case mi.BINARY_EVENT:
12661
12661
  return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && PI.indexOf(t[0]) === -1);
12662
- case Ai.ACK:
12663
- case Ai.BINARY_ACK:
12662
+ case mi.ACK:
12663
+ case mi.BINARY_ACK:
12664
12664
  return Array.isArray(t);
12665
12665
  }
12666
12666
  }
@@ -12702,7 +12702,7 @@ const eK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12702
12702
  Decoder: To,
12703
12703
  Encoder: $I,
12704
12704
  get PacketType() {
12705
- return Ai;
12705
+ return mi;
12706
12706
  },
12707
12707
  protocol: _I
12708
12708
  }, Symbol.toStringTag, { value: "Module" }));
@@ -12720,7 +12720,7 @@ const tK = Object.freeze({
12720
12720
  newListener: 1,
12721
12721
  removeListener: 1
12722
12722
  });
12723
- class _n extends Wi {
12723
+ class _n extends Mi {
12724
12724
  /**
12725
12725
  * `Socket` constructor.
12726
12726
  */
@@ -12841,7 +12841,7 @@ class _n extends Wi {
12841
12841
  if (t.unshift(i), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
12842
12842
  return this._addToQueue(t), this;
12843
12843
  const s = {
12844
- type: Ai.EVENT,
12844
+ type: mi.EVENT,
12845
12845
  data: t
12846
12846
  };
12847
12847
  if (s.options = {}, s.options.compress = this.flags.compress !== !1, typeof t[t.length - 1] == "function") {
@@ -12949,7 +12949,7 @@ class _n extends Wi {
12949
12949
  */
12950
12950
  _sendConnectPacket(i) {
12951
12951
  this.packet({
12952
- type: Ai.CONNECT,
12952
+ type: mi.CONNECT,
12953
12953
  data: this._pid ? Object.assign({ pid: this._pid, offset: this._lastOffset }, i) : i
12954
12954
  });
12955
12955
  }
@@ -12995,21 +12995,21 @@ class _n extends Wi {
12995
12995
  onpacket(i) {
12996
12996
  if (i.nsp === this.nsp)
12997
12997
  switch (i.type) {
12998
- case Ai.CONNECT:
12998
+ case mi.CONNECT:
12999
12999
  i.data && i.data.sid ? this.onconnect(i.data.sid, i.data.pid) : this.emitReserved("connect_error", new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));
13000
13000
  break;
13001
- case Ai.EVENT:
13002
- case Ai.BINARY_EVENT:
13001
+ case mi.EVENT:
13002
+ case mi.BINARY_EVENT:
13003
13003
  this.onevent(i);
13004
13004
  break;
13005
- case Ai.ACK:
13006
- case Ai.BINARY_ACK:
13005
+ case mi.ACK:
13006
+ case mi.BINARY_ACK:
13007
13007
  this.onack(i);
13008
13008
  break;
13009
- case Ai.DISCONNECT:
13009
+ case mi.DISCONNECT:
13010
13010
  this.ondisconnect();
13011
13011
  break;
13012
- case Ai.CONNECT_ERROR:
13012
+ case mi.CONNECT_ERROR:
13013
13013
  this.destroy();
13014
13014
  const a = new Error(i.data.message);
13015
13015
  a.data = i.data.data, this.emitReserved("connect_error", a);
@@ -13044,7 +13044,7 @@ class _n extends Wi {
13044
13044
  let a = !1;
13045
13045
  return function(...o) {
13046
13046
  a || (a = !0, t.packet({
13047
- type: Ai.ACK,
13047
+ type: mi.ACK,
13048
13048
  id: i,
13049
13049
  data: o
13050
13050
  }));
@@ -13113,7 +13113,7 @@ class _n extends Wi {
13113
13113
  * @return self
13114
13114
  */
13115
13115
  disconnect() {
13116
- return this.connected && this.packet({ type: Ai.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
13116
+ return this.connected && this.packet({ type: mi.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
13117
13117
  }
13118
13118
  /**
13119
13119
  * Alias for {@link disconnect()}.
@@ -13335,7 +13335,7 @@ ve.prototype.setMax = function(e) {
13335
13335
  ve.prototype.setJitter = function(e) {
13336
13336
  this.jitter = e;
13337
13337
  };
13338
- class Zo extends Wi {
13338
+ class Zo extends Mi {
13339
13339
  constructor(i, t) {
13340
13340
  var a;
13341
13341
  super(), this.nsps = {}, this.subs = [], i && typeof i == "object" && (t = i, i = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t, ka(this, t), this.reconnection(t.reconnection !== !1), this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor((a = t.randomizationFactor) !== null && a !== void 0 ? a : 0.5), this.backoff = new ve({
@@ -13609,7 +13609,7 @@ const Yt = 5, rK = ({
13609
13609
  api: m
13610
13610
  }) => {
13611
13611
  const [p, u] = M(!1), [I, c] = M(!1);
13612
- mi(() => {
13612
+ qi(() => {
13613
13613
  const h = Tt(l, {
13614
13614
  path: "/socket.io"
13615
13615
  });
@@ -13618,8 +13618,8 @@ const Yt = 5, rK = ({
13618
13618
  }), h.on("video-compressing", async (G) => {
13619
13619
  if (console.log(G), G.userId === n._id && G.isSuccess) {
13620
13620
  console.log("Video compress successfull");
13621
- const x = await oK({ _id: o }, m);
13622
- s(x.size), e(!1);
13621
+ const F = await oK({ _id: o }, m);
13622
+ s(F.size), e(!1);
13623
13623
  }
13624
13624
  }), h.on("error", (G) => {
13625
13625
  console.error("Socket error:", G);
@@ -13641,7 +13641,7 @@ const Yt = 5, rK = ({
13641
13641
  } catch (h) {
13642
13642
  console.error("Error compressing video:", h), t(!1), i();
13643
13643
  }
13644
- }, S = ui[a], E = Kt[a], W = r - Yt, V = Yt / r * 100;
13644
+ }, S = ui[a], U = Kt[a], W = r - Yt, V = Yt / r * 100;
13645
13645
  return /* @__PURE__ */ q.jsxs(
13646
13646
  It,
13647
13647
  {
@@ -14063,7 +14063,7 @@ const Yt = 5, rK = ({
14063
14063
  boxShadow: "none"
14064
14064
  },
14065
14065
  onMouseEnter: (h) => {
14066
- h.currentTarget.style.backgroundColor = E;
14066
+ h.currentTarget.style.backgroundColor = U;
14067
14067
  },
14068
14068
  onMouseLeave: (h) => {
14069
14069
  h.currentTarget.style.backgroundColor = S;
@@ -14219,7 +14219,7 @@ const Yt = 5, rK = ({
14219
14219
  fusionData: d,
14220
14220
  onNameChange: K
14221
14221
  }) => {
14222
- const [S, E] = M(window.innerWidth), [W, V] = M(!1), [h, G] = M(p), [x, Q] = M(!1), [T, X] = M(!0), [B, v] = M(null), [P, g] = M(""), [L, Y] = M("Loading..."), [C, J] = M("Loading..."), [D, k] = M("game"), [Z, U] = Ci(Ge), [b, R] = Ci(ha);
14222
+ const [S, U] = M(window.innerWidth), [W, V] = M(!1), [h, G] = M(p), [F, Q] = M(!1), [T, X] = M(!0), [B, v] = M(null), [P, g] = M(""), [L, Y] = M("Loading..."), [C, J] = M("Loading..."), [D, k] = M("game"), [Z, R] = Ci(Ge), [b, E] = Ci(ha);
14223
14223
  Xs(n, l, g, I, d);
14224
14224
  const f = async () => {
14225
14225
  let O = await yn(l, n, t);
@@ -14227,17 +14227,17 @@ const Yt = 5, rK = ({
14227
14227
  At("Networks not found");
14228
14228
  return;
14229
14229
  }
14230
- O = O.map((N) => (N.name = N.id, N)), U(O), R(
14230
+ O = O.map((N) => (N.name = N.id, N)), R(O), E(
14231
14231
  O.map((N) => N.id).filter((N) => N !== "default")
14232
14232
  ), qe(t, "preview", null, null, !1).then((N) => {
14233
14233
  V(!0), G(I + "/" + N.url), (n === "Flex" || n === "Ready" || n === "Playable" || n === "Fusion") && (N.size >= 5 ? Q(!0) : Q(!1), v(N.size)), X(!1);
14234
14234
  });
14235
14235
  };
14236
- return mi(() => {
14236
+ return qi(() => {
14237
14237
  e ? W || (f(), V(!0)) : (V(!1), G(""));
14238
- }, [e]), mi(() => {
14238
+ }, [e]), qi(() => {
14239
14239
  const O = () => {
14240
- E(window.innerWidth);
14240
+ U(window.innerWidth);
14241
14241
  };
14242
14242
  return window.addEventListener("resize", O), () => {
14243
14243
  window.removeEventListener("resize", O);
@@ -14309,7 +14309,7 @@ const Yt = 5, rK = ({
14309
14309
  O.stopPropagation();
14310
14310
  },
14311
14311
  children: [
14312
- x && e && /* @__PURE__ */ q.jsx(
14312
+ F && e && /* @__PURE__ */ q.jsx(
14313
14313
  rK,
14314
14314
  {
14315
14315
  setIsExceedingFileSizeAccepted: Q,
@@ -14325,7 +14325,7 @@ const Yt = 5, rK = ({
14325
14325
  api: l
14326
14326
  }
14327
14327
  ),
14328
- !x && /* @__PURE__ */ q.jsxs(
14328
+ !F && /* @__PURE__ */ q.jsxs(
14329
14329
  It,
14330
14330
  {
14331
14331
  isOpen: e,
@@ -14545,7 +14545,7 @@ const Yt = 5, rK = ({
14545
14545
  }
14546
14546
  ), $n = ({ checked: e, id: i, checkedColor: t, className: a }) => {
14547
14547
  const [o, r] = M(e);
14548
- mi(() => {
14548
+ qi(() => {
14549
14549
  r(e);
14550
14550
  }, [e]);
14551
14551
  const s = () => {
@@ -14574,7 +14574,7 @@ const Yt = 5, rK = ({
14574
14574
  "input",
14575
14575
  {
14576
14576
  type: "checkbox",
14577
- className: ` rounded-md ${a} ${o ? t ?? "bg-cyan-500" : "bg-slate-700"}`,
14577
+ className: ` ${a != null && a.includes("rounded") ? a : "rounded-md"} ${o ? t ?? "bg-cyan-500" : "bg-slate-700"}`,
14578
14578
  style: {
14579
14579
  border: "0px",
14580
14580
  position: "relative",
@@ -14652,10 +14652,10 @@ function nK({
14652
14652
  versionId: d,
14653
14653
  isTest: K,
14654
14654
  isGoogle: S,
14655
- submitCustomUrls: E,
14655
+ submitCustomUrls: U,
14656
14656
  selectedGtmThresholds: W
14657
14657
  }) {
14658
- return async (h, G, x) => {
14658
+ return async (h, G, F) => {
14659
14659
  if (console.log("downloadids", r), console.log("selectedGtmThresholds", W), i == null || i(!0), a === "Flex" && t.flex === !1 && t.customer !== "playableFactoryInternal") {
14660
14660
  o("|ACCESS|"), i == null || i(!1);
14661
14661
  return;
@@ -14681,7 +14681,7 @@ function nK({
14681
14681
  urlType: l,
14682
14682
  responsiveType: "responsive"
14683
14683
  };
14684
- if (A ? G === "copy" ? (u == null || u(!0), G = "download", Q.molocoGenerateHtml = !0) : I == null || I(!0) : S && (Q.responsiveType = x), h === "cdn") {
14684
+ if (A ? G === "copy" ? (u == null || u(!0), G = "download", Q.molocoGenerateHtml = !0) : I == null || I(!0) : S && (Q.responsiveType = F), h === "cdn") {
14685
14685
  m(!0), await p(!0), i == null || i(!1);
14686
14686
  return;
14687
14687
  }
@@ -14690,7 +14690,7 @@ function nK({
14690
14690
  qe(
14691
14691
  d,
14692
14692
  h,
14693
- E ? c : null,
14693
+ U ? c : null,
14694
14694
  G,
14695
14695
  K,
14696
14696
  Q
@@ -14721,12 +14721,12 @@ const lK = ({
14721
14721
  setIsConfirmActive: d,
14722
14722
  creditDownload: K,
14723
14723
  getDownloadCount: S,
14724
- disabled: E,
14724
+ disabled: U,
14725
14725
  user: W,
14726
14726
  setSafariCopyLink: V,
14727
14727
  isTest: h,
14728
14728
  urlType: G,
14729
- setCdnModal: x,
14729
+ setCdnModal: F,
14730
14730
  generateCDN: Q,
14731
14731
  cdnUrl: T,
14732
14732
  selectedVersionIds: X,
@@ -14736,11 +14736,11 @@ const lK = ({
14736
14736
  }) => {
14737
14737
  const [g, L] = M(!1), [Y, C] = M(""), [J, D] = M(!1), [k, Z] = M(!1);
14738
14738
  M(!1);
14739
- const [U, b] = M("download"), [R, f] = M(!1), [O, N] = M(!1);
14739
+ const [R, b] = M("download"), [E, f] = M(!1), [O, N] = M(!1);
14740
14740
  M(!1), M(!1);
14741
- const [H, $] = M(!1), [ii, ci] = Ci(Ge), [j, di] = Ci(Ce), w = l === "Playable" ? j : !0, ri = () => {
14742
- t(e);
14743
- }, ki = o === "moloco" || o === "molocoV2", Vi = o === "google", F = ii.find((_) => _.name === o), z = nK({
14741
+ const [H, $] = M(!1), [ii, ci] = Ci(Ge), [j, di] = Ci(Ce), w = l === "Playable" ? j : !0, ai = !(e === "adikteev" || e === "cdn"), ki = () => {
14742
+ ai && t(e);
14743
+ }, Vi = o === "moloco" || o === "molocoV2", z = o === "google", x = ii.find((ni) => ni.name === o), _ = nK({
14744
14744
  api: m,
14745
14745
  shouldDownloadMultipleIds: B,
14746
14746
  downloadState: L,
@@ -14752,9 +14752,9 @@ const lK = ({
14752
14752
  urlType: G,
14753
14753
  urls: I,
14754
14754
  selectedGtmThresholds: P,
14755
- isMoloco: ki,
14756
- isGoogle: Vi,
14757
- setCdnModal: x,
14755
+ isMoloco: Vi,
14756
+ isGoogle: z,
14757
+ setCdnModal: F,
14758
14758
  setDownloadingMoloco: f,
14759
14759
  setDownloadingMolocoHtml: N,
14760
14760
  versionId: A,
@@ -14770,11 +14770,10 @@ const lK = ({
14770
14770
  position: "relative",
14771
14771
  display: "flex",
14772
14772
  flexDirection: "column",
14773
- cursor: "pointer",
14774
14773
  pointerEvents: "auto"
14775
14774
  },
14776
- className: `gap-3 w-58 rounded-xl h-[6.2rem] transition-all border ${a ? "border-cyan-500/50 hover:border-cyan-400/50" : "border-slate-700/50 hover:border-slate-600"}`,
14777
- onClick: ri,
14775
+ className: `gap-3 cursor-default w-58 rounded-xl h-[6.2rem] transition-all border ${a ? "border-cyan-500/50 hover:border-cyan-400/50" : "border-slate-700/50 hover:border-slate-600"}`,
14776
+ onClick: ki,
14778
14777
  children: [
14779
14778
  /* @__PURE__ */ q.jsxs(
14780
14779
  "div",
@@ -14784,8 +14783,8 @@ const lK = ({
14784
14783
  display: "flex"
14785
14784
  },
14786
14785
  children: [
14787
- /* @__PURE__ */ q.jsx("p", { className: "justify-start text-white font-medium", children: F != null && F.name ? F.name[0].toUpperCase() + F.name.slice(1) : "" }),
14788
- /* @__PURE__ */ q.jsx($n, { checked: a, id: e })
14786
+ /* @__PURE__ */ q.jsx("p", { className: "justify-start text-white font-medium", children: x != null && x.name ? x.name[0].toUpperCase() + x.name.slice(1) : "" }),
14787
+ ai && /* @__PURE__ */ q.jsx($n, { checked: a, id: e })
14789
14788
  ]
14790
14789
  }
14791
14790
  ),
@@ -14802,12 +14801,12 @@ const lK = ({
14802
14801
  /* @__PURE__ */ q.jsx(
14803
14802
  $r,
14804
14803
  {
14805
- className: "flex h-10 items-center justify-center border-0 duration-200 w-full rounded-xl text-white font-medium text-xs hover:shadow-lg hover:shadow-cyan-500/25 transition-all ",
14804
+ className: "flex cursor-pointer h-10 items-center justify-center border-0 duration-200 w-full rounded-xl text-white font-medium text-xs hover:shadow-lg hover:shadow-cyan-500/25 transition-all ",
14806
14805
  downloading: g,
14807
- onClickDownload: async (_) => {
14808
- _.stopPropagation(), console.log("user in onclickdownload", W), C("download");
14809
- const qi = I.iosUrl, ni = I.googleUrl;
14810
- o === "cdn" && K && K.willSpendCredit && !T || o !== "cdn" && K && K.willSpendCredit ? (d(!0), b("download"), D(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!qi || !ni) ? (d(!0), Z(!0)) : (Z(!1), D(!1), await z(o, "download"));
14806
+ onClickDownload: async (ni) => {
14807
+ ni.stopPropagation(), console.log("user in onclickdownload", W), C("download");
14808
+ const li = I.iosUrl, Ji = I.googleUrl;
14809
+ o === "cdn" && K && K.willSpendCredit && !T || o !== "cdn" && K && K.willSpendCredit ? (d(!0), b("download"), D(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!li || !Ji) ? (d(!0), Z(!0)) : (Z(!1), D(!1), await _(o, "download"));
14811
14810
  },
14812
14811
  children: g ? /* @__PURE__ */ q.jsx(Ze, {}) : /* @__PURE__ */ q.jsxs("div", { className: "flex flex-row gap-1", children: [
14813
14812
  /* @__PURE__ */ q.jsx(mt, { className: "w-5 h-5" }),
@@ -14815,19 +14814,19 @@ const lK = ({
14815
14814
  ] })
14816
14815
  }
14817
14816
  ),
14818
- F && F.downloadType.includes("copy") && /* @__PURE__ */ q.jsx(
14817
+ x && x.downloadType.includes("copy") && /* @__PURE__ */ q.jsx(
14819
14818
  $r,
14820
14819
  {
14821
- className: "flex items-center justify-center rounded-xl border-0 text-sm font-medium transition-all duration-200 bg-slate-700 hover:bg-slate-600 w-[4.2rem] h-10 text-white ",
14820
+ className: "flex cursor-pointer items-center justify-center rounded-xl border-0 text-sm font-medium transition-all duration-200 bg-slate-700 hover:bg-slate-600 w-[4.2rem] h-10 text-white ",
14822
14821
  variant: "secondary",
14823
- onClickDownload: async (_) => {
14824
- if (_.stopPropagation(), H)
14822
+ onClickDownload: async (ni) => {
14823
+ if (ni.stopPropagation(), H)
14825
14824
  return;
14826
14825
  C("copyLink");
14827
- const qi = I.iosUrl, ni = I.googleUrl;
14828
- K && (K != null && K.willSpendCredit) ? (b("copy"), d(!0), D(!0)) : l !== "Import" && (!qi || !ni) ? (d(!0), Z(!0)) : (D(!1), Z(!1), await z(o, "copy"), $(!0), setTimeout(() => $(!1), 2e3));
14826
+ const li = I.iosUrl, Ji = I.googleUrl;
14827
+ K && (K != null && K.willSpendCredit) ? (b("copy"), d(!0), D(!0)) : l !== "Import" && (!li || !Ji) ? (d(!0), Z(!0)) : (D(!1), Z(!1), await _(o, "copy"), $(!0), setTimeout(() => $(!1), 2e3));
14829
14828
  },
14830
- disabled: E,
14829
+ disabled: U,
14831
14830
  isCopied: H,
14832
14831
  children: /* @__PURE__ */ q.jsx(Yo, { className: "h-5 w-5 ", style: { color: "#a9b4c2" } })
14833
14832
  }
@@ -14841,12 +14840,12 @@ const lK = ({
14841
14840
  J && /* @__PURE__ */ q.jsx(
14842
14841
  ze,
14843
14842
  {
14844
- creditConfirmType: U,
14843
+ creditConfirmType: R,
14845
14844
  handleCopyLink: async () => {
14846
- Z(!1), d(!1), await z(o, "copy");
14845
+ Z(!1), d(!1), await _(o, "copy");
14847
14846
  },
14848
14847
  download: async () => {
14849
- Z(!1), d(!1), await z(o, "download");
14848
+ Z(!1), d(!1), await _(o, "download");
14850
14849
  },
14851
14850
  onClose: () => {
14852
14851
  D(!1), d(!1);
@@ -14945,56 +14944,56 @@ const lK = ({
14945
14944
  urlType: d,
14946
14945
  cdnModal: K,
14947
14946
  setCdnModal: S,
14948
- cdnUrl: E,
14947
+ cdnUrl: U,
14949
14948
  setCdnUrl: W,
14950
14949
  customer: V,
14951
14950
  selectedVersionIds: h,
14952
14951
  downloadableVersionIds: G,
14953
- setDownloadableVersionIds: x,
14952
+ setDownloadableVersionIds: F,
14954
14953
  selectedGtmThresholds: Q
14955
14954
  }) => {
14956
- const [T, X] = M([]), [B, v] = M([]), [P, g] = M(!1), [L, Y] = M(""), [C, J] = M(!1), [D, k] = M(!1), [Z, U] = M("download"), [b, R] = M(!1), [f, O] = M(!1), [N, H] = M(!1), [$, ii] = Ci(da), [ci, j] = Ci(Za), [di] = Ci(Ge), [w, ri] = Ci(Ce), ki = o === "Playable" ? w : !0, [Vi, F] = M(!1), z = async (si = !1) => {
14957
- si && E || N || (H(!0), qe(a, "cdn", ki ? A : null, null, !1, {}).then((ai) => {
14958
- W(ai.url), H(!1);
14959
- }).catch((ai) => {
14960
- n(ai.message, ai), H(!1);
14955
+ const [T, X] = M([]), [B, v] = M([]), [P, g] = M(!1), [L, Y] = M(""), [C, J] = M(!1), [D, k] = M(!1), [Z, R] = M("download"), [b, E] = M(!1), [f, O] = M(!1), [N, H] = M(!1), [$, ii] = Ci(da), [ci, j] = Ci(Za), [di] = Ci(Ge), [w, ai] = Ci(Ce), ki = o === "Playable" ? w : !0, [Vi, z] = M(!1), x = async (si = !1) => {
14956
+ si && U || N || (H(!0), qe(a, "cdn", ki ? A : null, null, !1, {}).then((oi) => {
14957
+ W(oi.url), H(!1);
14958
+ }).catch((oi) => {
14959
+ n(oi.message, oi), H(!1);
14961
14960
  }));
14962
14961
  }, _ = async (si) => {
14963
14962
  if (si === "adikteev" || si === "cdn")
14964
14963
  return;
14965
- const ai = [...T];
14964
+ const oi = [...T];
14966
14965
  if (T.includes(si)) {
14967
- const yi = ai.findIndex((li) => li === si);
14968
- ai.splice(yi, 1), X(ai);
14966
+ const yi = oi.findIndex((Ai) => Ai === si);
14967
+ oi.splice(yi, 1), X(oi);
14969
14968
  } else
14970
- ai.push(si), X([...T, si]);
14971
- di.filter((yi) => [...ai].includes(yi.id)).map((yi) => yi.name);
14972
- }, qi = async () => new Promise(async (si, ai) => {
14973
- const yi = di.filter((li) => [...T].includes(li.id)).map((li) => li.name);
14969
+ oi.push(si), X([...T, si]);
14970
+ di.filter((yi) => [...oi].includes(yi.id)).map((yi) => yi.name);
14971
+ }, ni = async () => new Promise(async (si, oi) => {
14972
+ const yi = di.filter((Ai) => [...T].includes(Ai.id)).map((Ai) => Ai.name);
14974
14973
  if (J(!0), h && h.length > 0)
14975
14974
  try {
14976
14975
  if (!m || !m._id)
14977
14976
  throw new Error("Game data is required for multi-version download");
14978
- const li = await ct(r, m._id, {
14977
+ const Ai = await ct(r, m._id, {
14979
14978
  networks: yi,
14980
14979
  versions: h
14981
- }), Di = l + "/" + li.url, Ja = await (await fetch(Di)).blob(), pe = window.URL.createObjectURL(Ja), ue = document.createElement("a");
14982
- ue.href = pe, ue.download = li.url.split("/").pop() || "download.zip", document.body.appendChild(ue), ue.click(), window.URL.revokeObjectURL(pe), document.body.removeChild(ue), J(!1), si(li.url);
14983
- } catch (li) {
14984
- console.log("multi-version download error", li), J(!1), n(li.message, li), ai(li);
14980
+ }), Di = l + "/" + Ai.url, Ja = await (await fetch(Di)).blob(), pe = window.URL.createObjectURL(Ja), ue = document.createElement("a");
14981
+ ue.href = pe, ue.download = Ai.url.split("/").pop() || "download.zip", document.body.appendChild(ue), ue.click(), window.URL.revokeObjectURL(pe), document.body.removeChild(ue), J(!1), si(Ai.url);
14982
+ } catch (Ai) {
14983
+ console.log("multi-version download error", Ai), J(!1), n(Ai.message, Ai), oi(Ai);
14985
14984
  }
14986
14985
  else
14987
- fs(a, A, yi, { urlType: d }).then((li) => {
14988
- J(!1), si(li);
14989
- }).catch((li) => {
14990
- console.log("get multi download err"), J(!1), n(li.message, li), ai(li);
14986
+ fs(a, A, yi, { urlType: d }).then((Ai) => {
14987
+ J(!1), si(Ai);
14988
+ }).catch((Ai) => {
14989
+ console.log("get multi download err"), J(!1), n(Ai.message, Ai), oi(Ai);
14991
14990
  });
14992
- }), ni = async () => {
14993
- A.iosUrl, A.googleUrl, i && i.willSpendCredit ? (k(!0), U("download"), R(!0)) : (R(!1), await qi());
14994
- }, Li = ho(() => di.filter((ai) => {
14991
+ }), li = async () => {
14992
+ A.iosUrl, A.googleUrl, i && i.willSpendCredit ? (k(!0), R("download"), E(!0)) : (E(!1), await ni());
14993
+ }, Ji = ho(() => di.filter((oi) => {
14995
14994
  var yi;
14996
- return h && h.length > 0 ? !0 : i && ((yi = i == null ? void 0 : i.networks) == null ? void 0 : yi.length) > 0 ? typeof ai == "string" ? i == null ? void 0 : i.networks.includes(ai) : i == null ? void 0 : i.networks.includes(ai.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((li) => li.status === "paid").some((li) => li.name === ai.name) : ai ? !0 : e == null ? void 0 : e.networks.includes(ai);
14997
- }).filter((ai) => ai.name === "voodoo" ? s.customer === "customer:20" : !0).filter((ai) => ai.id !== "adikteev" && ai.id !== "cdn").map((ai) => ai.id), [
14995
+ return h && h.length > 0 ? !0 : i && ((yi = i == null ? void 0 : i.networks) == null ? void 0 : yi.length) > 0 ? typeof oi == "string" ? i == null ? void 0 : i.networks.includes(oi) : i == null ? void 0 : i.networks.includes(oi.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((Ai) => Ai.status === "paid").some((Ai) => Ai.name === oi.name) : oi ? !0 : e == null ? void 0 : e.networks.includes(oi);
14996
+ }).filter((oi) => oi.name === "voodoo" ? s.customer === "customer:20" : !0).filter((oi) => oi.id !== "adikteev" && oi.id !== "cdn").map((oi) => oi.id), [
14998
14997
  Vi,
14999
14998
  h,
15000
14999
  di,
@@ -15004,8 +15003,8 @@ const lK = ({
15004
15003
  m,
15005
15004
  s.customer
15006
15005
  ]);
15007
- return mi(() => {
15008
- const si = Li();
15006
+ return qi(() => {
15007
+ const si = Ji();
15009
15008
  X(Vi ? si : []);
15010
15009
  }, [
15011
15010
  Vi,
@@ -15034,9 +15033,9 @@ const lK = ({
15034
15033
  "button",
15035
15034
  {
15036
15035
  onClick: () => {
15037
- F(!Vi);
15036
+ z(!Vi);
15038
15037
  },
15039
- className: "flex items-center gap-1.5 px-4 mr-5 py-2.5 rounded-lg bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-white transition-all text-sm font-medium",
15038
+ className: "flex items-center cursor-pointer gap-1.5 px-4 mr-5 py-2.5 rounded-lg bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-white transition-all text-sm font-medium",
15040
15039
  children: [
15041
15040
  Vi ? /* @__PURE__ */ q.jsx(is, { className: "w-4 h-4", fill: "#ffffff" }) : /* @__PURE__ */ q.jsx(is, { className: "w-4 h-4", fill: "#ffffff" }),
15042
15041
  Vi ? "Deselect All" : "Select All"
@@ -15055,10 +15054,10 @@ const lK = ({
15055
15054
  paddingBottom: "1.5rem"
15056
15055
  },
15057
15056
  children: /* @__PURE__ */ q.jsx("div", { className: "h-full w-full grid grid-cols-3 gap-4", children: t && di.filter((si) => {
15058
- var ai;
15057
+ var oi;
15059
15058
  if (h && h.length > 0)
15060
15059
  return !0;
15061
- if (i && ((ai = i == null ? void 0 : i.networks) == null ? void 0 : ai.length) > 0)
15060
+ if (i && ((oi = i == null ? void 0 : i.networks) == null ? void 0 : oi.length) > 0)
15062
15061
  return typeof si == "string" ? i == null ? void 0 : i.networks.includes(si) : i == null ? void 0 : i.networks.includes(si.name);
15063
15062
  if (o === "Import")
15064
15063
  return e == null ? void 0 : e.networks.filter((yi) => yi.status === "paid").some((yi) => yi.name === si.name);
@@ -15069,17 +15068,17 @@ const lK = ({
15069
15068
  }).filter(
15070
15069
  (si) => si.name === "voodoo" ? s.customer === "customer:20" : !0
15071
15070
  ).map((si) => {
15072
- let ai = si.imageSrc;
15071
+ let oi = si.imageSrc;
15073
15072
  if (si.name === "web") {
15074
15073
  let yi = "web_" + o.toLowerCase() + ".png";
15075
- ai = ai.replace("web.png", yi);
15074
+ oi = oi.replace("web.png", yi);
15076
15075
  }
15077
15076
  return /* @__PURE__ */ q.jsx(
15078
15077
  lK,
15079
15078
  {
15080
15079
  id: si.id,
15081
15080
  name: si.name,
15082
- imageUrl: ai,
15081
+ imageUrl: oi,
15083
15082
  selected: T.includes(si.id),
15084
15083
  handleCardClick: _,
15085
15084
  networkVersionSize: B,
@@ -15101,11 +15100,11 @@ const lK = ({
15101
15100
  isTest: c,
15102
15101
  urlType: d,
15103
15102
  setCdnModal: S,
15104
- generateCDN: z,
15105
- cdnUrl: E,
15103
+ generateCDN: x,
15104
+ cdnUrl: U,
15106
15105
  selectedVersionIds: h,
15107
15106
  downloadableVersionIds: G,
15108
- setDownloadableVersionIds: x,
15107
+ setDownloadableVersionIds: F,
15109
15108
  selectedGtmThresholds: Q
15110
15109
  },
15111
15110
  si.id
@@ -15116,7 +15115,7 @@ const lK = ({
15116
15115
  T.length > 0 && /* @__PURE__ */ q.jsx(
15117
15116
  AK,
15118
15117
  {
15119
- onClickMultiDownload: ni,
15118
+ onClickMultiDownload: li,
15120
15119
  networksVersionTotalSize: L,
15121
15120
  typeOfProduct: o,
15122
15121
  multiDownloading: C,
@@ -15132,16 +15131,16 @@ const lK = ({
15132
15131
  versionId: a,
15133
15132
  urls: A,
15134
15133
  handleDownloadError: n,
15135
- cdnUrl: E,
15134
+ cdnUrl: U,
15136
15135
  setCdnUrl: W,
15137
15136
  generateCDN: async () => {
15138
15137
  if (!N) {
15139
15138
  if (!(i != null && i.willSpendCredit)) {
15140
- z();
15139
+ x();
15141
15140
  return;
15142
15141
  }
15143
15142
  if (s.customer === "playableFactoryInternal") {
15144
- z();
15143
+ x();
15145
15144
  return;
15146
15145
  }
15147
15146
  O(!0);
@@ -15170,10 +15169,10 @@ const lK = ({
15170
15169
  handleCopyLink: async () => {
15171
15170
  },
15172
15171
  download: async () => {
15173
- R(!1), O(!1), z();
15172
+ E(!1), O(!1), x();
15174
15173
  },
15175
15174
  onClose: () => {
15176
- R(!1), O(!1), H(!1);
15175
+ E(!1), O(!1), H(!1);
15177
15176
  },
15178
15177
  getDownloadCount: p,
15179
15178
  typeOfProduct: o
@@ -15186,10 +15185,10 @@ const lK = ({
15186
15185
  handleCopyLink: async () => {
15187
15186
  },
15188
15187
  download: async () => {
15189
- R(!1), k(!1), await qi();
15188
+ E(!1), k(!1), await ni();
15190
15189
  },
15191
15190
  onClose: () => {
15192
- R(!1), k(!1);
15191
+ E(!1), k(!1);
15193
15192
  },
15194
15193
  getDownloadCount: p,
15195
15194
  typeOfProduct: o
@@ -15237,20 +15236,20 @@ const lK = ({
15237
15236
  setIosLink: d,
15238
15237
  setAndroidLink: K,
15239
15238
  urlType: S,
15240
- setUrlType: E,
15239
+ setUrlType: U,
15241
15240
  selectedVersionIds: W,
15242
15241
  downloadableVersionIds: V,
15243
15242
  setDownloadableVersionIds: h,
15244
15243
  selectedGtmThresholds: G
15245
15244
  }) => {
15246
- const [x, Q] = M(null), [T, X] = M(null), [B, v] = M(null), [P, g] = M(!1), [L, Y] = M(!0), [C, J] = M(window.innerWidth), [D, k] = M(!1), [Z, U] = M(!1), [b, R] = M("");
15245
+ const [F, Q] = M(null), [T, X] = M(null), [B, v] = M(null), [P, g] = M(!1), [L, Y] = M(!0), [C, J] = M(window.innerWidth), [D, k] = M(!1), [Z, R] = M(!1), [b, E] = M("");
15247
15246
  Ci(da), Ci(Za);
15248
15247
  const [f, O] = Ci(ha);
15249
- Ci(Ce), mi(() => {
15248
+ Ci(Ce), qi(() => {
15250
15249
  !b && a !== "Fusion" && vs(i).then((w) => {
15251
- w != null && w.exist && R(w.uploadPath);
15250
+ w != null && w.exist && E(w.uploadPath);
15252
15251
  });
15253
- }, [b]), mi(() => {
15252
+ }, [b]), qi(() => {
15254
15253
  const w = () => {
15255
15254
  J(window.innerWidth);
15256
15255
  };
@@ -15262,40 +15261,40 @@ const lK = ({
15262
15261
  g(!0);
15263
15262
  const w = await Go(e, r);
15264
15263
  return w != null && w.networks || (w.networks = es), Q(w), w;
15265
- }, H = async (w, ri) => {
15264
+ }, H = async (w, ai) => {
15266
15265
  var ki, Vi;
15267
15266
  try {
15268
- let F;
15267
+ let z;
15269
15268
  if (a === "Playable" || a === "Ready") {
15270
- const z = await Gn(i, r);
15271
- if (z) {
15272
- d(z.iosLink), K(z.androidLink), g(!1);
15269
+ const x = await Gn(i, r);
15270
+ if (x) {
15271
+ d(x.iosLink), K(x.androidLink), g(!1);
15273
15272
  return;
15274
15273
  }
15275
15274
  if (w && (w.iosUrl || w.googleUrl)) {
15276
15275
  d(w.iosUrl), K(w.googleUrl), g(!1);
15277
15276
  return;
15278
15277
  }
15279
- if (ri && ri.html) {
15280
- const _ = `${A}/${ri.html}?t=${Date.now()}`;
15281
- let qi = await fetch(_).then((si) => si.text());
15282
- const ni = ((ki = qi.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : ki.at(1)) || "";
15283
- d(ni);
15284
- const Li = ((Vi = qi.match(/var\s+androidLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : Vi.at(1)) || "";
15285
- K(Li), g(!1);
15278
+ if (ai && ai.html) {
15279
+ const _ = `${A}/${ai.html}?t=${Date.now()}`;
15280
+ let ni = await fetch(_).then((si) => si.text());
15281
+ const li = ((ki = ni.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : ki.at(1)) || "";
15282
+ d(li);
15283
+ const Ji = ((Vi = ni.match(/var\s+androidLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : Vi.at(1)) || "";
15284
+ K(Ji), g(!1);
15286
15285
  } else
15287
15286
  K(""), d(""), g(!1);
15288
15287
  } else if (a === "Flex") {
15289
- const z = await bn(i, r);
15290
- if (z.googleUrl || z.iosUrl) {
15291
- K(z.googleUrl), d(z.iosUrl), g(!1);
15288
+ const x = await bn(i, r);
15289
+ if (x.googleUrl || x.iosUrl) {
15290
+ K(x.googleUrl), d(x.iosUrl), g(!1);
15292
15291
  return;
15293
15292
  }
15294
15293
  w && (w.iosUrl || w.googleUrl) ? (d(w.iosUrl), K(w.googleUrl), g(!1)) : (K(""), d(""), g(!1));
15295
15294
  } else
15296
15295
  a === "Fusion" && (w && (w.iosUrl || w.googleUrl) ? (d(w.iosUrl), K(w.googleUrl), g(!1)) : (K(""), d(""), g(!1)));
15297
- } catch (F) {
15298
- l(F.response.data.error.msg);
15296
+ } catch (z) {
15297
+ l(z.response.data.error.msg);
15299
15298
  }
15300
15299
  }, $ = async () => {
15301
15300
  g(!0);
@@ -15311,22 +15310,22 @@ const lK = ({
15311
15310
  networks: w.networks
15312
15311
  })))), g(!1);
15313
15312
  }, ii = async () => await Yn(t, r), [ci, j] = M(null), di = async (w) => await Nn(w, r);
15314
- return mi(() => {
15313
+ return qi(() => {
15315
15314
  o || (Q(null), X(null), v(null), p(null), j(null)), o && (a === "Playable" ? ii().then((w) => {
15316
- X(w), w && di(w.customer).then((ri) => {
15317
- j(ri || null);
15318
- }), N().then((ri) => {
15319
- H(null, ri);
15315
+ X(w), w && di(w.customer).then((ai) => {
15316
+ j(ai || null);
15317
+ }), N().then((ai) => {
15318
+ H(null, ai);
15320
15319
  }), Y(!1);
15321
15320
  }) : a === "Ready" ? $().then((w) => {
15322
- N().then((ri) => {
15323
- H(null, ri), Y(!1), ri != null && ri.customer && di(ri.customer).then((ki) => {
15321
+ N().then((ai) => {
15322
+ H(null, ai), Y(!1), ai != null && ai.customer && di(ai.customer).then((ki) => {
15324
15323
  j(ki || null);
15325
15324
  });
15326
15325
  });
15327
15326
  }) : a === "Flex" ? $().then((w) => {
15328
- Y(!1), ii().then((ri) => {
15329
- o && (H(ri, null), Y(!1), X(ri), ri && di(ri.customer).then((ki) => {
15327
+ Y(!1), ii().then((ai) => {
15328
+ o && (H(ai, null), Y(!1), X(ai), ai && di(ai.customer).then((ki) => {
15330
15329
  j(ki || null);
15331
15330
  }));
15332
15331
  });
@@ -15335,9 +15334,9 @@ const lK = ({
15335
15334
  }) : a === "Fusion" && (Y(!1), ii().then((w) => {
15336
15335
  o && (H(w, null), Y(!1), X({
15337
15336
  ...w,
15338
- networks: f.filter((ri) => ri !== "cdn")
15339
- }), w && di(w.customer).then((ri) => {
15340
- j(ri || null);
15337
+ networks: f.filter((ai) => ai !== "cdn")
15338
+ }), w && di(w.customer).then((ai) => {
15339
+ j(ai || null);
15341
15340
  }));
15342
15341
  })));
15343
15342
  }, [t, e, i, o]), /* @__PURE__ */ q.jsx("div", { className: "p-4 rounded-xl bg-slate-800/50 border border-slate-700/50 h-fit", children: /* @__PURE__ */ q.jsx(
@@ -15365,10 +15364,10 @@ const lK = ({
15365
15364
  },
15366
15365
  children: /* @__PURE__ */ q.jsx(Ze, { isNetworksLoading: !0, isLight: !1 })
15367
15366
  }
15368
- ) : (x || B) && !P && /* @__PURE__ */ q.jsx(
15367
+ ) : (F || B) && !P && /* @__PURE__ */ q.jsx(
15369
15368
  mK,
15370
15369
  {
15371
- playable: x,
15370
+ playable: F,
15372
15371
  creditDownload: B,
15373
15372
  visible: o,
15374
15373
  versionId: i,
@@ -15385,9 +15384,9 @@ const lK = ({
15385
15384
  isTest: D,
15386
15385
  urlType: S,
15387
15386
  cdnModal: Z,
15388
- setCdnModal: U,
15387
+ setCdnModal: R,
15389
15388
  cdnUrl: b,
15390
- setCdnUrl: R,
15389
+ setCdnUrl: E,
15391
15390
  customer: ci ?? void 0,
15392
15391
  selectedVersionIds: W,
15393
15392
  downloadableVersionIds: V,
@@ -15403,9 +15402,9 @@ function pK({
15403
15402
  onSelectStateChange: i
15404
15403
  }) {
15405
15404
  const [t, a] = M(!0);
15406
- return mi(() => {
15405
+ return qi(() => {
15407
15406
  i == null || i({ id: e.versionId, state: t });
15408
- }, [t]), /* @__PURE__ */ q.jsxs("div", { className: "overflow-x-hidden flex items-start justify-start gap-2 flex-row w-full h-full px-3 py-3 rounded-lg text-base font-medium transition-all bg-slate-800 text-slate-300 border border-slate-700 hover:border-slate-600 hover:text-white", children: [
15407
+ }, [t]), /* @__PURE__ */ q.jsxs("div", { className: "overflow-x-hidden cursor-pointer flex items-start justify-start gap-2 flex-row w-full h-full px-3 py-3 rounded-lg text-base font-medium transition-all bg-slate-800 text-slate-300 border border-slate-700 hover:border-slate-600 hover:text-white", children: [
15409
15408
  /* @__PURE__ */ q.jsx(
15410
15409
  $n,
15411
15410
  {
@@ -15437,7 +15436,7 @@ const uK = ({
15437
15436
  setDownloadableVersionIds: o
15438
15437
  }) => {
15439
15438
  const [r, s] = M([]);
15440
- mi(() => {
15439
+ qi(() => {
15441
15440
  const l = e.map((m) => ({
15442
15441
  versionId: m,
15443
15442
  versionName: "Loading...",
@@ -15522,7 +15521,7 @@ const uK = ({
15522
15521
  const [t, a] = M(
15523
15522
  e.length * (i.length > 0 ? i.length : 1)
15524
15523
  );
15525
- return mi(() => {
15524
+ return qi(() => {
15526
15525
  a(
15527
15526
  e.length * (i.length > 0 ? i.length : 1)
15528
15527
  );
@@ -15559,7 +15558,7 @@ const uK = ({
15559
15558
  (o) => a ? o.filter((r) => r !== t) : [...o, t]
15560
15559
  );
15561
15560
  },
15562
- className: `px-3 py-2 rounded-lg text-base font-medium transition-all ${a ? "bg-cyan-500 text-white border border-cyan-400" : "bg-slate-800 text-slate-300 border border-slate-700 hover:border-slate-600 hover:text-white"}`,
15561
+ className: `px-3 py-2 rounded-lg text-base font-medium transition-all cursor-pointer ${a ? "bg-cyan-500 text-white border border-cyan-400" : "bg-slate-800 text-slate-300 border border-slate-700 hover:border-slate-600 hover:text-white"}`,
15563
15562
  children: [
15564
15563
  t,
15565
15564
  " clicks"
@@ -15615,42 +15614,42 @@ const gK = ({
15615
15614
  onNameChange: c
15616
15615
  }) => {
15617
15616
  Xs("Playable", n, "", I, void 0);
15618
- const [d, K] = M(window.innerWidth), [S, E] = M(!1), [W, V] = M(m);
15617
+ const [d, K] = M(window.innerWidth), [S, U] = M(!1), [W, V] = M(m);
15619
15618
  M(!1), M(!1);
15620
- const [h, G] = M(null), [x, Q] = M(""), [T, X] = M("Loading..."), [B, v] = M("Loading..."), [P, g] = M("game"), [L, Y] = Ci(Ge), [C, J] = Ci(ha), [D, k] = M(
15619
+ const [h, G] = M(null), [F, Q] = M(""), [T, X] = M("Loading..."), [B, v] = M("Loading..."), [P, g] = M("game"), [L, Y] = Ci(Ge), [C, J] = Ci(ha), [D, k] = M(
15621
15620
  a || []
15622
- ), [Z, U] = M([]);
15623
- me(null), mi(() => {
15621
+ ), [Z, R] = M([]);
15622
+ me(null), qi(() => {
15624
15623
  k(a || []);
15625
15624
  }, [a]);
15626
15625
  const b = async () => {
15627
- let R = await kn(n);
15628
- if (!R) {
15626
+ let E = await kn(n);
15627
+ if (!E) {
15629
15628
  At("Networks not found");
15630
15629
  return;
15631
15630
  }
15632
- R = R.map((f) => (f.name = f.id, f)), Y(R), J(
15633
- R.map((f) => f.id).filter((f) => f !== "default")
15631
+ E = E.map((f) => f), console.log(E), Y(E), J(
15632
+ E.map((f) => f.id).filter((f) => f !== "default")
15634
15633
  );
15635
15634
  };
15636
- return mi(() => {
15637
- e ? S || (b(), E(!0)) : (E(!1), V(""));
15638
- }, [e]), mi(() => {
15639
- const R = () => {
15635
+ return qi(() => {
15636
+ e ? S || (b(), U(!0)) : (U(!1), V(""));
15637
+ }, [e]), qi(() => {
15638
+ const E = () => {
15640
15639
  K(window.innerWidth);
15641
15640
  };
15642
- return window.addEventListener("resize", R), () => {
15643
- window.removeEventListener("resize", R);
15641
+ return window.addEventListener("resize", E), () => {
15642
+ window.removeEventListener("resize", E);
15644
15643
  };
15645
15644
  }, []), /* @__PURE__ */ q.jsx(
15646
15645
  "div",
15647
15646
  {
15648
15647
  className: "BPL TRPBASO",
15649
- onMouseDown: (R) => {
15650
- R.stopPropagation();
15648
+ onMouseDown: (E) => {
15649
+ E.stopPropagation();
15651
15650
  },
15652
- onMouseUp: (R) => {
15653
- R.stopPropagation();
15651
+ onMouseUp: (E) => {
15652
+ E.stopPropagation();
15654
15653
  },
15655
15654
  children: /* @__PURE__ */ q.jsx(
15656
15655
  It,
@@ -15715,11 +15714,11 @@ const gK = ({
15715
15714
  transition: "background-color 0.2s",
15716
15715
  backgroundColor: "transparent"
15717
15716
  },
15718
- onMouseEnter: (R) => {
15719
- R.currentTarget.style.backgroundColor = "#F3F4F6";
15717
+ onMouseEnter: (E) => {
15718
+ E.currentTarget.style.backgroundColor = "#F3F4F6";
15720
15719
  },
15721
- onMouseLeave: (R) => {
15722
- R.currentTarget.style.backgroundColor = "transparent";
15720
+ onMouseLeave: (E) => {
15721
+ E.currentTarget.style.backgroundColor = "transparent";
15723
15722
  },
15724
15723
  children: /* @__PURE__ */ q.jsxs(
15725
15724
  "svg",
@@ -15764,7 +15763,7 @@ const gK = ({
15764
15763
  {
15765
15764
  downloadableVersionIds: D,
15766
15765
  selectedGtmThresholds: Z,
15767
- setSelectedGtmThresholds: U,
15766
+ setSelectedGtmThresholds: R,
15768
15767
  gearboxAINetworkComponent: /* @__PURE__ */ q.jsx(
15769
15768
  qK,
15770
15769
  {