@tma.js/sdk 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ var Le = (s, e, r) => e in s ? $e(s, e, { enumerable: !0, configurable: !0, writ
3
3
  var t = (s, e, r) => Le(s, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { computed as w, signal as j, batch as Ct } from "@tma.js/signals";
5
5
  import { supports as ot, isTMAFp as Re, postEventFp as Pe, off as ct, on as Y, requestFp as Oe, invokeCustomMethodFp as De, retrieveRawInitDataFp as Ue, retrieveLaunchParamsFp as St, captureSameReq as Ge, logger as re } from "@tma.js/bridge";
6
- import { CancelledError as lo, InvalidLaunchParamsError as po, InvokeCustomMethodFailedError as ho, LaunchParamsRetrieveError as fo, MethodParameterUnsupportedError as _o, MethodUnsupportedError as mo, TimeoutError as bo, UnknownEnvError as go, applyPolyfills as wo, createLogger as Fo, createPostEvent as Co, createStartParam as So, createStartParamFp as vo, debug as yo, decodeBase64Url as ko, decodeBase64UrlFp as Eo, decodeStartParam as Ao, decodeStartParamFp as Io, deepSnakeToCamelObjKeys as Bo, emitEvent as xo, encodeBase64Url as qo, getReleaseVersion as Mo, isSafeToCreateStartParam as Vo, isTMA as To, isTMAFp as $o, logger as Lo, mockTelegramEnv as Ro, off as Po, offAll as Oo, on as Do, retrieveLaunchParams as Uo, retrieveLaunchParamsFp as Go, retrieveRawInitData as jo, retrieveRawInitDataFp as Ho, retrieveRawLaunchParams as Wo, retrieveRawLaunchParamsFp as Ko, setDebug as Qo, setTargetOrigin as zo, supports as No, targetOrigin as Jo } from "@tma.js/bridge";
7
- import { throwifyFpFn as yt, throwifyAnyEither as ce, getStorageValue as je, setStorageValue as He, snakeToKebab as We, createCbCollector as Lt, camelToKebab as le, BetterTaskEither as xt } from "@tma.js/toolkit";
6
+ import { CancelledError as lo, InvalidLaunchParamsError as po, InvokeCustomMethodFailedError as ho, LaunchParamsRetrieveError as fo, MethodParameterUnsupportedError as _o, MethodUnsupportedError as mo, TimeoutError as bo, UnknownEnvError as go, applyPolyfills as wo, createLogger as Fo, createPostEvent as Co, createStartParam as So, createStartParamFp as vo, debug as yo, decodeBase64Url as ko, decodeBase64UrlFp as Eo, decodeStartParam as Ao, decodeStartParamFp as Io, deepSnakeToCamelObjKeys as xo, emitEvent as Bo, encodeBase64Url as qo, getReleaseVersion as Mo, isSafeToCreateStartParam as Vo, isTMA as To, isTMAFp as $o, logger as Lo, mockTelegramEnv as Ro, off as Po, offAll as Oo, on as Do, retrieveLaunchParams as Uo, retrieveLaunchParamsFp as Go, retrieveRawInitData as jo, retrieveRawInitDataFp as Ho, retrieveRawLaunchParams as Wo, retrieveRawLaunchParamsFp as Ko, setDebug as Qo, setTargetOrigin as zo, supports as No, targetOrigin as Jo } from "@tma.js/bridge";
7
+ import { throwifyFpFn as yt, throwifyAnyEither as ce, getStorageValue as je, setStorageValue as He, snakeToKebab as We, createCbCollector as Lt, camelToKebab as le, BetterTaskEither as Bt } from "@tma.js/toolkit";
8
8
  import { BetterPromise as Ke } from "better-promises";
9
9
  import { toRGBFullFp as Qe, isRGB as Et, pipeQueryToSchema as ze, pipeJsonToSchema as Ne } from "@tma.js/transformers";
10
10
  import { isAnyRGB as Zo, isRGB as Xo, isRGBA as ti, isRGBAShort as ei, isRGBShort as si, parseInitDataQuery as ri, parseInitDataQueryFp as ni, parseLaunchParamsQuery as oi, parseLaunchParamsQueryFp as ii, serializeInitDataQuery as ai, serializeLaunchParamsQuery as ui, toRGB as ci, toRGBFp as li, toRGBFull as pi, toRGBFullFp as hi } from "@tma.js/transformers";
@@ -207,10 +207,10 @@ var it = ss, ht = rs, gs = function(s, e) {
207
207
  function Is(s) {
208
208
  return _e(I, s.of);
209
209
  }
210
- function Bs(s) {
210
+ function xs(s) {
211
211
  return _e(V, s.of);
212
212
  }
213
- function xs(s) {
213
+ function Bs(s) {
214
214
  return is(s, us);
215
215
  }
216
216
  function qs(s) {
@@ -364,7 +364,7 @@ var Ut = function(s, e) {
364
364
  if (l[0] & 5) throw l[1];
365
365
  return { value: l[0] ? l[1] : void 0, done: !0 };
366
366
  }
367
- }, $ = /* @__PURE__ */ Bs(Se), q = /* @__PURE__ */ Is(Se), ve = Gt, Gs = /* @__PURE__ */ Ts(Ht), js = function(s, e) {
367
+ }, $ = /* @__PURE__ */ xs(Se), q = /* @__PURE__ */ Is(Se), ve = Gt, Gs = /* @__PURE__ */ Ts(Ht), js = function(s, e) {
368
368
  return function() {
369
369
  return Ds(void 0, void 0, void 0, function() {
370
370
  var r;
@@ -386,10 +386,10 @@ var Ut = function(s, e) {
386
386
  });
387
387
  };
388
388
  }, Hs = function(s, e) {
389
- return c(s, x(e));
389
+ return c(s, B(e));
390
390
  }, Ws = function(s, e) {
391
391
  return c(s, Ks(e));
392
- }, x = /* @__PURE__ */ xs(Ht), Wt = /* @__PURE__ */ lt(3, Vs(Ht)), Ks = /* @__PURE__ */ qs(Ps), Kt = /* @__PURE__ */ lt(2, Ms(Os)), Qs = q, zs = "TaskEither", Ns = {
392
+ }, B = /* @__PURE__ */ Bs(Ht), Wt = /* @__PURE__ */ lt(3, Vs(Ht)), Ks = /* @__PURE__ */ qs(Ps), Kt = /* @__PURE__ */ lt(2, Ms(Os)), Qs = q, zs = "TaskEither", Ns = {
393
393
  URI: zs,
394
394
  map: Hs,
395
395
  ap: Ws,
@@ -469,9 +469,9 @@ function A(s, e) {
469
469
  if (!u)
470
470
  return;
471
471
  const [f, b] = "every" in u ? ["every", u.every] : ["some", u.some];
472
- for (let h = 0; h < b.length; h++) {
473
- const B = b[h], R = typeof B == "function" ? B() : ot(B, r()) ? void 0 : `it is unsupported in Mini Apps version ${r()}`;
474
- if (R && (f === "every" || h === b.length - 1))
472
+ for (let d = 0; d < b.length; d++) {
473
+ const x = b[d], R = typeof x == "function" ? x() : ot(x, r()) ? void 0 : `it is unsupported in Mini Apps version ${r()}`;
474
+ if (R && (f === "every" || d === b.length - 1))
475
475
  return R;
476
476
  }
477
477
  }, l = (...f) => {
@@ -492,12 +492,12 @@ function A(s, e) {
492
492
  return y(`${b} it can't be called outside Mini Apps`);
493
493
  if (!_())
494
494
  return y(`${b} the SDK was not initialized. Use the SDK init() function`);
495
- const h = p();
496
- if (h)
497
- return y(`${b} ${h}`);
498
- const B = l(...f);
499
- if (B)
500
- return y(`${b} ${B}`);
495
+ const d = p();
496
+ if (d)
497
+ return y(`${b} ${d}`);
498
+ const x = l(...f);
499
+ if (x)
500
+ return y(`${b} ${x}`);
501
501
  if (!g()) {
502
502
  const T = (R = e.isMounting) != null && R.call(e) ? "mounting. Wait for the mount completion" : "unmounted. Use the mount() method";
503
503
  return y(`${b} the component is ${T}`);
@@ -518,7 +518,7 @@ function A(s, e) {
518
518
  function E(s) {
519
519
  return (e) => A(e, s);
520
520
  }
521
- function d(s) {
521
+ function h(s) {
522
522
  return Object.assign(yt(s), {
523
523
  ifAvailable(...e) {
524
524
  return c(
@@ -733,18 +733,18 @@ class kt {
733
733
  _.setState(b);
734
734
  })
735
735
  ) : I(void 0);
736
- }), this.setState = d(this.setStateFp), this.onClickFp = y(n), this.onClick = d(this.onClickFp), this.offClickFp = y(i), this.offClick = d(this.offClickFp), this.mountFp = y(() => {
736
+ }), this.setState = h(this.setStateFp), this.onClickFp = y(n), this.onClick = h(this.onClickFp), this.offClickFp = y(i), this.offClick = h(this.offClickFp), this.mountFp = y(() => {
737
737
  const f = () => {
738
738
  };
739
739
  return c(g.mount(), pt(f, f));
740
- }), this.mount = d(this.mountFp), this.unmount = g.unmount, this.stateSetters = (f) => {
741
- const b = S((h) => this.setStateFp({ [f]: h }));
742
- return [d(b), b];
740
+ }), this.mount = h(this.mountFp), this.unmount = g.unmount, this.stateSetters = (f) => {
741
+ const b = S((d) => this.setStateFp({ [f]: d }));
742
+ return [h(b), b];
743
743
  }, this.stateBoolSetters = (f) => {
744
- const [, b] = this.stateSetters(f), h = S(() => b(!1)), B = S(() => b(!0));
744
+ const [, b] = this.stateSetters(f), d = S(() => b(!1)), x = S(() => b(!0));
745
745
  return [
746
- [d(h), h],
747
- [d(B), B]
746
+ [h(d), d],
747
+ [h(x), x]
748
748
  ];
749
749
  };
750
750
  }
@@ -927,7 +927,7 @@ class Jt {
927
927
  const a = P(o) ? n() : void 0;
928
928
  return c(
929
929
  a ? q(a) : e(u),
930
- x((p) => {
930
+ B((p) => {
931
931
  this._isMounted() || Ct(() => {
932
932
  this._isMounted.set(!0), r == null || r(p);
933
933
  });
@@ -1059,7 +1059,7 @@ class cr {
1059
1059
  initialState(f) {
1060
1060
  return c(
1061
1061
  r("web_app_biometry_get_info", "biometry_info_received", f),
1062
- x(It)
1062
+ B(It)
1063
1063
  );
1064
1064
  },
1065
1065
  isPageReload: p,
@@ -1086,15 +1086,15 @@ class cr {
1086
1086
  ...f,
1087
1087
  params: { reason: ((f || {}).reason || "").trim() }
1088
1088
  }),
1089
- x((b) => (m.setState({ token: b.token }), b))
1089
+ B((b) => (m.setState({ token: b.token }), b))
1090
1090
  ) : $(ue)), this.openSettingsFp = C(() => n("web_app_biometry_open_settings")), this.requestAccessFp = S((f) => c(
1091
1091
  r("web_app_biometry_request_access", "biometry_info_received", {
1092
1092
  ...f,
1093
1093
  params: { reason: ((f || {}).reason || "").trim() }
1094
1094
  }),
1095
1095
  Z((b) => {
1096
- const h = It(b);
1097
- return h.available ? (m.setState(h), q(h.accessRequested)) : $(ue);
1096
+ const d = It(b);
1097
+ return d.available ? (m.setState(d), q(d.accessRequested)) : $(ue);
1098
1098
  })
1099
1099
  )), this.updateTokenFp = S((f = {}) => {
1100
1100
  var b;
@@ -1103,9 +1103,9 @@ class cr {
1103
1103
  ...f,
1104
1104
  params: { token: f.token || "", reason: (b = f.reason) == null ? void 0 : b.trim() }
1105
1105
  }),
1106
- x((h) => h.status)
1106
+ B((d) => d.status)
1107
1107
  );
1108
- }), this.authenticate = d(this.authenticateFp), this.openSettings = d(this.openSettingsFp), this.requestAccess = d(this.requestAccessFp), this.updateToken = d(this.updateTokenFp), this.mount = d(this.mountFp);
1108
+ }), this.authenticate = h(this.authenticateFp), this.openSettings = h(this.openSettingsFp), this.requestAccess = h(this.requestAccessFp), this.updateToken = h(this.updateTokenFp), this.mount = h(this.mountFp);
1109
1109
  }
1110
1110
  }
1111
1111
  const Ee = (s, e, r) => Oe(s, e, {
@@ -1190,7 +1190,7 @@ class lr {
1190
1190
  const _ = () => {
1191
1191
  };
1192
1192
  return c(u.mount(), pt(_, _));
1193
- }), this.unmount = u.unmount, this.disableConfirmation = d(this.disableConfirmationFp), this.enableConfirmation = d(this.enableConfirmationFp), this.mount = d(this.mountFp);
1193
+ }), this.unmount = u.unmount, this.disableConfirmation = h(this.disableConfirmationFp), this.enableConfirmation = h(this.enableConfirmationFp), this.mount = h(this.mountFp);
1194
1194
  }
1195
1195
  }
1196
1196
  const An = new lr(c(
@@ -1279,32 +1279,32 @@ class pr {
1279
1279
  const a = Array.isArray(o) ? o : [o];
1280
1280
  return c(
1281
1281
  a.length ? n("deleteStorageValues", { keys: a }, u) : q(void 0),
1282
- x(() => {
1282
+ B(() => {
1283
1283
  })
1284
1284
  );
1285
1285
  }), this.getItemFp = i((o, u) => c(
1286
1286
  this.getItemsFp([o], u),
1287
- x((a) => a[o] || "")
1287
+ B((a) => a[o] || "")
1288
1288
  )), this.getItemsFp = i((o, u) => c(
1289
1289
  o.length ? n("getStorageValues", { keys: o }, u) : q({}),
1290
- x((a) => ({
1290
+ B((a) => ({
1291
1291
  // Fulfill the response with probably missing keys.
1292
1292
  ...o.reduce((p, l) => (p[l] = "", p), {}),
1293
1293
  ...ne(Ye(J(), J()), a)
1294
1294
  }))
1295
1295
  )), this.getKeysFp = i((o) => c(
1296
1296
  n("getStorageKeys", {}, o),
1297
- x((u) => ne(Ze(J()), u))
1297
+ B((u) => ne(Ze(J()), u))
1298
1298
  )), this.setItemFp = i((o, u, a) => c(
1299
1299
  n("saveStorageValue", { key: o, value: u }, a),
1300
- x(() => {
1300
+ B(() => {
1301
1301
  })
1302
- )), this.clearFp = i((o) => c(this.getKeysFp(o), Z(this.deleteItemFp))), this.deleteItem = d(this.deleteItemFp), this.getItem = d(this.getItemFp), this.getItems = d(this.getItemsFp), this.getKeys = d(this.getKeysFp), this.setItem = d(this.setItemFp), this.clear = d(this.clearFp);
1302
+ )), this.clearFp = i((o) => c(this.getKeysFp(o), Z(this.deleteItemFp))), this.deleteItem = h(this.deleteItemFp), this.getItem = h(this.getItemFp), this.getItems = h(this.getItemsFp), this.getKeys = h(this.getKeysFp), this.setItem = h(this.setItemFp), this.clear = h(this.clearFp);
1303
1303
  }
1304
1304
  }
1305
- const Bt = /* @__PURE__ */ _t(0);
1305
+ const xt = /* @__PURE__ */ _t(0);
1306
1306
  function Ae() {
1307
- return Bt.set(Bt() + 1), Bt().toString();
1307
+ return xt.set(xt() + 1), xt().toString();
1308
1308
  }
1309
1309
  function hr(s, e, r) {
1310
1310
  return De(s, e, Ae(), {
@@ -1322,14 +1322,14 @@ const Yt = ft({
1322
1322
  function dr({ request: s, ...e }) {
1323
1323
  return A((r) => c(
1324
1324
  s("web_app_request_emoji_status_access", "emoji_status_access_requested", r),
1325
- x((n) => n.status)
1325
+ B((n) => n.status)
1326
1326
  ), { ...e, requires: "web_app_request_emoji_status_access", returns: "task" });
1327
1327
  }
1328
1328
  const fr = dr(c(
1329
1329
  F(),
1330
1330
  v,
1331
1331
  U
1332
- )), Bn = d(fr);
1332
+ )), xn = h(fr);
1333
1333
  function _r({ request: s, ...e }) {
1334
1334
  return A((r, n) => c(
1335
1335
  s("web_app_set_emoji_status", ["emoji_status_set", "emoji_status_failed"], {
@@ -1350,7 +1350,7 @@ const mr = _r(c(
1350
1350
  F(),
1351
1351
  U,
1352
1352
  v
1353
- )), xn = d(mr);
1353
+ )), Bn = h(mr);
1354
1354
  class br {
1355
1355
  constructor({ postEvent: e, isTma: r, version: n }) {
1356
1356
  /**
@@ -1399,7 +1399,7 @@ class br {
1399
1399
  version: n,
1400
1400
  returns: "plain"
1401
1401
  });
1402
- this.isSupported = z(i, n), this.impactOccurredFp = o((u) => e(i, { type: "impact", impact_style: u })), this.notificationOccurredFp = o((u) => e(i, { type: "notification", notification_type: u })), this.selectionChangedFp = o(() => e(i, { type: "selection_change" })), this.impactOccurred = d(this.impactOccurredFp), this.notificationOccurred = d(this.notificationOccurredFp), this.selectionChanged = d(this.selectionChangedFp);
1402
+ this.isSupported = z(i, n), this.impactOccurredFp = o((u) => e(i, { type: "impact", impact_style: u })), this.notificationOccurredFp = o((u) => e(i, { type: "notification", notification_type: u })), this.selectionChangedFp = o(() => e(i, { type: "selection_change" })), this.impactOccurred = h(this.impactOccurredFp), this.notificationOccurred = h(this.notificationOccurredFp), this.selectionChanged = h(this.selectionChangedFp);
1403
1403
  }
1404
1404
  }
1405
1405
  const qn = new br(c(
@@ -1414,18 +1414,18 @@ const wr = gr(c(
1414
1414
  F(),
1415
1415
  v,
1416
1416
  L
1417
- )), Mn = d(wr);
1417
+ )), Mn = h(wr);
1418
1418
  function Fr({ request: s, ...e }) {
1419
1419
  return A((r) => c(
1420
1420
  s("web_app_check_home_screen", "home_screen_checked", r),
1421
- x((n) => n.status || "unknown")
1421
+ B((n) => n.status || "unknown")
1422
1422
  ), { ...e, requires: "web_app_check_home_screen", returns: "task" });
1423
1423
  }
1424
1424
  const Cr = Fr(c(
1425
1425
  F(),
1426
1426
  v,
1427
1427
  U
1428
- )), Vn = d(Cr);
1428
+ )), Vn = h(Cr);
1429
1429
  class Sr {
1430
1430
  constructor({ retrieveInitData: e }) {
1431
1431
  t(this, "_state", j());
@@ -1590,7 +1590,7 @@ class vr {
1590
1590
  return _ ? this.openSlugFp(_[2], p) : $(new Q(
1591
1591
  'Expected to receive a link with a pathname in format "/invoice/{slug}" or "/${slug}"'
1592
1592
  ));
1593
- }), this.openUrl = d(this.openUrlFp), this.openSlug = d(this.openSlugFp);
1593
+ }), this.openUrl = h(this.openUrlFp), this.openSlug = h(this.openSlugFp);
1594
1594
  }
1595
1595
  }
1596
1596
  const $n = new vr(c(F(), U, v));
@@ -1612,7 +1612,7 @@ function yr({ postEvent: s, ...e }) {
1612
1612
  const kr = yr(c(
1613
1613
  F(),
1614
1614
  L
1615
- )), Ln = d(kr);
1615
+ )), Ln = h(kr);
1616
1616
  function Er({ postEvent: s, version: e, ...r }) {
1617
1617
  return A((n) => {
1618
1618
  const i = n.toString();
@@ -1623,7 +1623,7 @@ const Ie = Er(c(
1623
1623
  F(),
1624
1624
  L,
1625
1625
  v
1626
- )), Rn = d(Ie);
1626
+ )), Rn = h(Ie);
1627
1627
  function Ar({ openTelegramLink: s, ...e }) {
1628
1628
  return A((r, n) => s(
1629
1629
  "https://t.me/share/url?" + new URLSearchParams({ url: r, text: n || "" }).toString().replace(/\+/g, "%20")
@@ -1632,8 +1632,8 @@ function Ar({ openTelegramLink: s, ...e }) {
1632
1632
  const Ir = Ar({
1633
1633
  ...F(),
1634
1634
  openTelegramLink: Ie
1635
- }), Pn = d(Ir);
1636
- function Br(s) {
1635
+ }), Pn = h(Ir);
1636
+ function xr(s) {
1637
1637
  let e = !1, r, n;
1638
1638
  return s.available && (e = !0, r = s.access_requested, n = s.access_granted), {
1639
1639
  available: e,
@@ -1641,7 +1641,7 @@ function Br(s) {
1641
1641
  accessRequested: r || !1
1642
1642
  };
1643
1643
  }
1644
- class xr {
1644
+ class Br {
1645
1645
  constructor({
1646
1646
  version: e,
1647
1647
  request: r,
@@ -1724,7 +1724,7 @@ class xr {
1724
1724
  initialState(C) {
1725
1725
  return c(
1726
1726
  r("web_app_check_location", "location_checked", C),
1727
- x(Br)
1727
+ B(xr)
1728
1728
  );
1729
1729
  }
1730
1730
  }), l = { version: e, requires: "web_app_check_location", isTma: o }, m = E({
@@ -1740,16 +1740,16 @@ class xr {
1740
1740
  });
1741
1741
  this.isAvailable = a.getter("available"), this.isAccessRequested = a.getter("accessRequested"), this.isAccessGranted = a.getter("accessGranted"), this.isSupported = z("web_app_check_location", e), this.isMounted = p.isMounted, this.state = a.state, this.unmount = p.unmount, this.mountFp = _(p.mount), this.openSettingsFp = m(() => n("web_app_open_location_settings")), this.requestLocationFp = g((C) => c(
1742
1742
  r("web_app_request_location", "location_requested", C),
1743
- x((y) => {
1743
+ B((y) => {
1744
1744
  if (!y.available)
1745
1745
  return a.setState({ available: !1 }), null;
1746
1746
  const { available: S, ...f } = y;
1747
1747
  return f;
1748
1748
  })
1749
- )), this.mount = d(this.mountFp), this.openSettings = d(this.openSettingsFp), this.requestLocation = d(this.requestLocationFp);
1749
+ )), this.mount = h(this.mountFp), this.openSettings = h(this.openSettingsFp), this.requestLocation = h(this.requestLocationFp);
1750
1750
  }
1751
1751
  }
1752
- const On = new xr(c(
1752
+ const On = new Br(c(
1753
1753
  F(),
1754
1754
  L,
1755
1755
  v,
@@ -1982,7 +1982,7 @@ class qr {
1982
1982
  }
1983
1983
  //#endregion
1984
1984
  }
1985
- function Be(s, e, r) {
1985
+ function xe(s, e, r) {
1986
1986
  return c(
1987
1987
  Nt(s, e),
1988
1988
  (n) => ({ ...n, defaults: r })
@@ -2006,7 +2006,7 @@ function Mr(s) {
2006
2006
  ) < 120)
2007
2007
  );
2008
2008
  }
2009
- const xe = yt(Mr);
2009
+ const Be = yt(Mr);
2010
2010
  class Vr {
2011
2011
  constructor({
2012
2012
  initialState: e,
@@ -2096,7 +2096,7 @@ class Vr {
2096
2096
  */
2097
2097
  t(this, "isDark", w(() => {
2098
2098
  const e = this.bgColor();
2099
- return !e || xe(e);
2099
+ return !e || Be(e);
2100
2100
  }));
2101
2101
  //#endregion
2102
2102
  //#region Mounting.
@@ -2140,8 +2140,8 @@ class Vr {
2140
2140
  return V(new Qt());
2141
2141
  C || (C = (f) => `--tg-theme-${We(f)}`);
2142
2142
  const y = (f) => {
2143
- Object.entries(a.state()).forEach(([b, h]) => {
2144
- h && f(b, h);
2143
+ Object.entries(a.state()).forEach(([b, d]) => {
2144
+ d && f(b, d);
2145
2145
  });
2146
2146
  }, S = () => {
2147
2147
  y((f, b) => {
@@ -2151,7 +2151,7 @@ class Vr {
2151
2151
  return S(), a.state.sub(S), this._isCssVarsBound.set(!0), I(() => {
2152
2152
  y(Xt), a.state.unsub(S), this._isCssVarsBound.set(!1);
2153
2153
  });
2154
- }), this.mountFp = _(l.mount), this.unmount = l.unmount, this.bindCssVars = d(this.bindCssVarsFp), this.mount = d(this.mountFp);
2154
+ }), this.mountFp = _(l.mount), this.unmount = l.unmount, this.bindCssVars = h(this.bindCssVarsFp), this.mount = h(this.mountFp);
2155
2155
  }
2156
2156
  //#endregion
2157
2157
  }
@@ -2168,7 +2168,7 @@ const vt = new Vr({
2168
2168
  },
2169
2169
  initialState: Tt
2170
2170
  }), Dn = new qr(
2171
- Be("mainButton", "main_button_pressed", {
2171
+ xe("mainButton", "main_button_pressed", {
2172
2172
  bgColor: w(() => vt.buttonColor() || "#2481cc"),
2173
2173
  textColor: w(() => vt.buttonTextColor() || "#ffffff")
2174
2174
  })
@@ -2194,7 +2194,7 @@ class Tr {
2194
2194
  */
2195
2195
  t(this, "isDark", w(() => {
2196
2196
  const e = this.bgColorRgb();
2197
- return e ? xe(e) : !1;
2197
+ return e ? Be(e) : !1;
2198
2198
  }));
2199
2199
  /**
2200
2200
  * Signal indicating if the mini app is currently active.
@@ -2352,33 +2352,32 @@ class Tr {
2352
2352
  * @see readyFp
2353
2353
  */
2354
2354
  t(this, "ready");
2355
- const l = (h) => {
2356
- g.setState({ isActive: h.is_visible });
2357
- }, m = (h) => {
2355
+ const l = (d) => {
2356
+ g.setState({ isActive: d.is_visible });
2357
+ }, m = (d) => {
2358
2358
  [
2359
2359
  [this.headerColor, "web_app_set_header_color"],
2360
2360
  [this.bgColor, "web_app_set_background_color"],
2361
2361
  [this.bottomBarColor, "web_app_set_bottom_bar_color"]
2362
- ].forEach(([B, R]) => {
2363
- const T = B();
2362
+ ].forEach(([x, R]) => {
2363
+ const T = x();
2364
2364
  if (!Et(T) && (R === "web_app_set_header_color" || !["bg_color", "secondary_bg_color"].includes(T))) {
2365
- const O = h[T];
2365
+ const O = d[T];
2366
2366
  O && i(R, { color: O });
2367
2367
  }
2368
2368
  });
2369
2369
  }, _ = new dt({
2370
2370
  initialState() {
2371
- const h = P(u);
2372
2371
  return I({
2373
- bgColor: h.bg_color || "bg_color",
2374
- headerColor: h.header_bg_color || "header_bg_color",
2375
- bottomBarColor: h.bottom_bar_bg_color || "bottom_bar_bg_color",
2372
+ bgColor: "bg_color",
2373
+ headerColor: "header_bg_color",
2374
+ bottomBarColor: "bottom_bar_bg_color",
2376
2375
  isActive: !0
2377
2376
  });
2378
2377
  },
2379
2378
  isPageReload: r,
2380
- onMounted: (h) => {
2381
- this.setBgColorFp.ifAvailable(h.bgColor), this.setBottomBarColorFp.ifAvailable(h.bottomBarColor), this.setHeaderColorFp.ifAvailable(h.headerColor), a(l), u.sub(m), g.setState(h);
2379
+ onMounted: (d) => {
2380
+ a(l), u.sub(m), g.setState(d);
2382
2381
  },
2383
2382
  onUnmounted() {
2384
2383
  p(l), u.unsub(m);
@@ -2386,10 +2385,10 @@ class Tr {
2386
2385
  restoreState: e.get
2387
2386
  });
2388
2387
  this.isMounted = _.isMounted, this.mountFp = A(() => {
2389
- const h = () => {
2388
+ const d = () => {
2390
2389
  };
2391
- return c(_.mount(), pt(h, h));
2392
- }, { isTma: o, returns: "plain" }), this.mount = d(this.mountFp), this.unmount = _.unmount;
2390
+ return c(_.mount(), pt(d, d));
2391
+ }, { isTma: o, returns: "plain" }), this.mount = h(this.mountFp), this.unmount = _.unmount;
2393
2392
  const g = new tt({
2394
2393
  initialState: {
2395
2394
  bgColor: "bg_color",
@@ -2400,34 +2399,34 @@ class Tr {
2400
2399
  onChange: e.set
2401
2400
  });
2402
2401
  this.state = g.state;
2403
- const C = (h) => Et(h) ? h : P(u)[h], y = (h) => w(() => C(h()));
2402
+ const C = (d) => Et(d) ? d : P(u)[d], y = (d) => w(() => C(d()));
2404
2403
  this.isActive = g.getter("isActive"), this.isSupported = w(() => [
2405
2404
  "web_app_set_header_color",
2406
2405
  "web_app_set_background_color",
2407
2406
  "web_app_set_bottom_bar_color"
2408
- ].some((h) => ot(h, P(n))));
2407
+ ].some((d) => ot(d, P(n))));
2409
2408
  const S = j(!1);
2410
- this.isCssVarsBound = w(S), this.bindCssVarsFp = A((h) => {
2409
+ this.isCssVarsBound = w(S), this.bindCssVarsFp = A((d) => {
2411
2410
  if (S())
2412
2411
  return V(new Qt());
2413
- const [B, R] = Lt(() => {
2412
+ const [x, R] = Lt(() => {
2414
2413
  S.set(!1);
2415
2414
  }), T = (O, G) => {
2416
2415
  const H = () => {
2417
2416
  Zt(O, G() || null);
2418
2417
  };
2419
- H(), B(G.sub(H), Xt.bind(null, O));
2418
+ H(), x(G.sub(H), Xt.bind(null, O));
2420
2419
  };
2421
- return h || (h = (O) => `--tg-${le(O)}`), T(h("bgColor"), this.bgColorRgb), T(h("bottomBarColor"), this.bottomBarColorRgb), T(h("headerColor"), this.headerColorRgb), S.set(!0), I(R);
2422
- }, { isTma: o, returns: "either", isMounted: this.isMounted }), this.bindCssVars = d(this.bindCssVarsFp);
2423
- const f = (h) => {
2424
- const B = g.getter(h), R = y(B), T = {
2420
+ return d || (d = (O) => `--tg-${le(O)}`), T(d("bgColor"), this.bgColorRgb), T(d("bottomBarColor"), this.bottomBarColorRgb), T(d("headerColor"), this.headerColorRgb), S.set(!0), I(R);
2421
+ }, { isTma: o, returns: "either", isMounted: this.isMounted }), this.bindCssVars = h(this.bindCssVarsFp);
2422
+ const f = (d) => {
2423
+ const x = g.getter(d), R = y(x), T = {
2425
2424
  headerColor: "web_app_set_header_color",
2426
2425
  bgColor: "web_app_set_background_color",
2427
2426
  bottomBarColor: "web_app_set_bottom_bar_color"
2428
- }[h], O = A(
2427
+ }[d], O = A(
2429
2428
  (G) => {
2430
- if (G === B())
2429
+ if (G === x())
2431
2430
  return I(void 0);
2432
2431
  if (T === "web_app_set_header_color" && (G === "bg_color" || G === "secondary_bg_color"))
2433
2432
  return i("web_app_set_header_color", { color_key: G });
@@ -2435,7 +2434,7 @@ class Tr {
2435
2434
  return c(
2436
2435
  H ? i(T, { color: H }) : V(new rr(G)),
2437
2436
  D(() => {
2438
- g.setState({ [h]: H });
2437
+ g.setState({ [d]: H });
2439
2438
  })
2440
2439
  );
2441
2440
  },
@@ -2445,7 +2444,7 @@ class Tr {
2445
2444
  requires: T,
2446
2445
  isMounted: this.isMounted,
2447
2446
  returns: "either",
2448
- supports: h === "headerColor" ? {
2447
+ supports: d === "headerColor" ? {
2449
2448
  rgb: {
2450
2449
  method: "web_app_set_header_color",
2451
2450
  param: "color",
@@ -2454,7 +2453,7 @@ class Tr {
2454
2453
  } : void 0
2455
2454
  }
2456
2455
  );
2457
- return [B, R, d(O), O];
2456
+ return [x, R, h(O), O];
2458
2457
  };
2459
2458
  [
2460
2459
  this.bgColor,
@@ -2473,7 +2472,7 @@ class Tr {
2473
2472
  this.setBottomBarColorFp
2474
2473
  ] = f("bottomBarColor");
2475
2474
  const b = E({ isTma: o, returns: "either" });
2476
- this.closeFp = b((h) => i("web_app_close", { return_back: h })), this.close = d(this.closeFp), this.readyFp = b(() => i("web_app_ready")), this.ready = d(this.readyFp);
2475
+ this.closeFp = b((d) => i("web_app_close", { return_back: d })), this.close = h(this.closeFp), this.readyFp = b(() => i("web_app_ready")), this.ready = h(this.readyFp);
2477
2476
  }
2478
2477
  //#endregion
2479
2478
  }
@@ -2577,21 +2576,21 @@ class Rr {
2577
2576
  (p) => (o(), p),
2578
2577
  (p) => (o(), p.button_id)
2579
2578
  )
2580
- )), this.show = d(this.showFp);
2579
+ )), this.show = h(this.showFp);
2581
2580
  }
2582
2581
  }
2583
2582
  const Un = new Rr(c(F(), U, v));
2584
2583
  function Pr({ request: s, ...e }) {
2585
2584
  return A((r) => c(
2586
2585
  s("web_app_request_phone", "phone_requested", r),
2587
- x((n) => n.status)
2586
+ B((n) => n.status)
2588
2587
  ), { ...e, requires: "web_app_request_phone", returns: "task" });
2589
2588
  }
2590
2589
  const qe = Pr(c(
2591
2590
  F(),
2592
2591
  v,
2593
2592
  U
2594
- )), Gn = d(qe);
2593
+ )), Gn = h(qe);
2595
2594
  function Or({
2596
2595
  invokeCustomMethod: s,
2597
2596
  requestPhoneAccess: e,
@@ -2638,7 +2637,7 @@ function Or({
2638
2637
  (a) => Ft.is(a) ? V(a) : I(void 0),
2639
2638
  (a) => I(a)
2640
2639
  )
2641
- ), o = (u) => xt(
2640
+ ), o = (u) => Bt(
2642
2641
  async (a, p, l) => {
2643
2642
  let m = 50;
2644
2643
  for (; !l.isRejected; ) {
@@ -2652,7 +2651,7 @@ function Or({
2652
2651
  },
2653
2652
  u
2654
2653
  );
2655
- return A((u) => xt.fn((a) => c(
2654
+ return A((u) => Bt.fn((a) => c(
2656
2655
  // Try to get the requested contact. Probably, we already requested it before.
2657
2656
  i(a),
2658
2657
  Z((p) => p ? q(p) : c(
@@ -2670,26 +2669,26 @@ function Dr({ requestContact: s, ...e }) {
2670
2669
  const Me = Or({
2671
2670
  ...c(F(), Yt, v),
2672
2671
  requestPhoneAccess: qe
2673
- }), jn = d(Me), Ur = Dr({
2672
+ }), jn = h(Me), Ur = Dr({
2674
2673
  ...c(F(), v),
2675
2674
  requestContact(s) {
2676
2675
  return c(
2677
2676
  Me(s),
2678
- x((e) => e.parsed)
2677
+ B((e) => e.parsed)
2679
2678
  );
2680
2679
  }
2681
- }), Hn = d(Ur);
2680
+ }), Hn = h(Ur);
2682
2681
  function Gr({ request: s, ...e }) {
2683
2682
  return A((r) => c(
2684
2683
  s("web_app_request_write_access", "write_access_requested", r),
2685
- x((n) => n.status)
2684
+ B((n) => n.status)
2686
2685
  ), { ...e, requires: "web_app_request_write_access", returns: "task" });
2687
2686
  }
2688
2687
  const jr = Gr(c(
2689
2688
  F(),
2690
2689
  v,
2691
2690
  U
2692
- )), Wn = d(jr);
2691
+ )), Wn = h(jr);
2693
2692
  class Hr {
2694
2693
  constructor({
2695
2694
  version: e,
@@ -2716,7 +2715,7 @@ class Hr {
2716
2715
  * @since Mini Apps v6.4
2717
2716
  * @example
2718
2717
  * pipe(
2719
- * qrScanner.captureOneFp({
2718
+ * qrScanner.captureFp({
2720
2719
  * capture(scannedQr) {
2721
2720
  * return scannedQr === 'any expected by me qr';
2722
2721
  * }
@@ -2789,20 +2788,20 @@ class Hr {
2789
2788
  _.capture(C) && (g = C, this.close());
2790
2789
  }
2791
2790
  }),
2792
- x(() => g)
2791
+ B(() => g)
2793
2792
  );
2794
2793
  }), this.closeFp = a(() => c(o("web_app_close_scan_qr_popup"), D(m))), this.openFp = p((_) => c(
2795
2794
  this.isOpened() ? $(new zt("The QR Scanner is already opened")) : async () => o("web_app_open_scan_qr_popup", { text: _.text }),
2796
2795
  at(() => {
2797
2796
  const [g, C] = Lt(), y = (S) => (C(), S);
2798
2797
  return c(
2799
- xt((S) => {
2798
+ Bt((S) => {
2800
2799
  g(r(S), n(_.onCaptured));
2801
2800
  }, _),
2802
2801
  Wt(y, y)
2803
2802
  );
2804
2803
  })
2805
- )), this.open = d(this.openFp), this.capture = d(this.captureFp), this.close = d(this.closeFp);
2804
+ )), this.open = h(this.openFp), this.capture = h(this.captureFp), this.close = h(this.closeFp);
2806
2805
  }
2807
2806
  }
2808
2807
  const Kn = new Hr({
@@ -3079,7 +3078,7 @@ class Wr {
3079
3078
  //#endregion
3080
3079
  }
3081
3080
  const Qn = new Wr(
3082
- Be("secondaryButton", "secondary_button_pressed", {
3081
+ xe("secondaryButton", "secondary_button_pressed", {
3083
3082
  bgColor: w(() => $r.bottomBarColorRgb() || "#000000"),
3084
3083
  textColor: w(() => vt.buttonColor() || "#2481cc")
3085
3084
  })
@@ -3254,7 +3253,7 @@ class Qr {
3254
3253
  const g = () => {
3255
3254
  };
3256
3255
  return c(a.mount(), pt(g, g));
3257
- }), this.unmount = a.unmount, this.disableVertical = d(this.disableVerticalFp), this.enableVertical = d(this.enableVerticalFp), this.mount = d(this.mountFp);
3256
+ }), this.unmount = a.unmount, this.disableVertical = h(this.disableVerticalFp), this.enableVertical = h(this.enableVerticalFp), this.mount = h(this.mountFp);
3258
3257
  }
3259
3258
  }
3260
3259
  const Nn = new Qr(c(
@@ -3292,7 +3291,7 @@ const Nr = zr(c(
3292
3291
  F(),
3293
3292
  U,
3294
3293
  v
3295
- )), Yn = d(Nr);
3294
+ )), Yn = h(Nr);
3296
3295
  function Jr({ invokeCustomMethod: s, ...e }) {
3297
3296
  return A((r) => c(
3298
3297
  s("getCurrentTime", {}, r),
@@ -3309,7 +3308,7 @@ const Yr = Jr(c(
3309
3308
  F(),
3310
3309
  Yt,
3311
3310
  v
3312
- )), Zn = d(Yr);
3311
+ )), Zn = h(Yr);
3313
3312
  function Zr({ postEvent: s, ...e }) {
3314
3313
  return A(() => s("web_app_hide_keyboard"), { ...e, returns: "either", requires: "web_app_hide_keyboard" });
3315
3314
  }
@@ -3317,7 +3316,7 @@ const Xr = Zr(c(
3317
3316
  F(),
3318
3317
  L,
3319
3318
  v
3320
- )), Xn = d(Xr);
3319
+ )), Xn = h(Xr);
3321
3320
  function tn({ request: s, createRequestId: e, ...r }) {
3322
3321
  return A((n) => {
3323
3322
  const i = e();
@@ -3327,7 +3326,7 @@ function tn({ request: s, createRequestId: e, ...r }) {
3327
3326
  params: { req_id: i },
3328
3327
  capture: Ge(i)
3329
3328
  }),
3330
- x(({ data: o = null }) => o)
3329
+ B(({ data: o = null }) => o)
3331
3330
  );
3332
3331
  }, { ...r, requires: "web_app_read_text_from_clipboard", returns: "task" });
3333
3332
  }
@@ -3338,7 +3337,7 @@ const en = tn({
3338
3337
  U
3339
3338
  ),
3340
3339
  createRequestId: Ae
3341
- }), to = d(en);
3340
+ }), to = h(en);
3342
3341
  function sn(s) {
3343
3342
  const e = {}, r = s.match(/Telegram-Android(?:\/([^ ]+))?(?: (\([^)]+\))?|$)/);
3344
3343
  if (r) {
@@ -3366,7 +3365,7 @@ function rn({ postEvent: s, ...e }) {
3366
3365
  ) : s("web_app_data_send", { data: r });
3367
3366
  }, { ...e, returns: "either" });
3368
3367
  }
3369
- const nn = rn(c(F(), L)), so = d(nn);
3368
+ const nn = rn(c(F(), L)), so = h(nn);
3370
3369
  function on({ request: s, ...e }) {
3371
3370
  return A((r, n) => c(
3372
3371
  s(
@@ -3384,7 +3383,7 @@ const an = on(c(
3384
3383
  F(),
3385
3384
  U,
3386
3385
  v
3387
- )), ro = d(an);
3386
+ )), ro = h(an);
3388
3387
  function un({ postEvent: s, ...e }) {
3389
3388
  return A((r, n = {}) => s("web_app_share_to_story", {
3390
3389
  text: n.text,
@@ -3396,7 +3395,7 @@ const cn = un(c(
3396
3395
  F(),
3397
3396
  L,
3398
3397
  v
3399
- )), no = d(cn), $t = /* @__PURE__ */ _t(!1);
3398
+ )), no = h(cn), $t = /* @__PURE__ */ _t(!1);
3400
3399
  function ln({ isInlineMode: s, postEvent: e, ...r }) {
3401
3400
  return A((n, i) => e("web_app_switch_inline_query", {
3402
3401
  query: n,
@@ -3416,7 +3415,7 @@ const pn = ln({
3416
3415
  v
3417
3416
  ),
3418
3417
  isInlineMode: $t
3419
- }), oo = d(pn);
3418
+ }), oo = h(pn);
3420
3419
  class hn {
3421
3420
  constructor({
3422
3421
  storage: e,
@@ -3623,7 +3622,7 @@ class hn {
3623
3622
  * @see expandFp
3624
3623
  */
3625
3624
  t(this, "expand");
3626
- const b = { top: 0, right: 0, left: 0, bottom: 0 }, h = new tt({
3625
+ const b = { top: 0, right: 0, left: 0, bottom: 0 }, d = new tt({
3627
3626
  initialState: {
3628
3627
  contentSafeAreaInsets: b,
3629
3628
  height: 0,
@@ -3634,19 +3633,19 @@ class hn {
3634
3633
  width: 0
3635
3634
  },
3636
3635
  onChange: e.set
3637
- }), B = (k) => {
3638
- h.setState({
3636
+ }), x = (k) => {
3637
+ d.setState({
3639
3638
  isExpanded: k.is_expanded,
3640
3639
  height: k.height,
3641
3640
  width: k.width,
3642
3641
  stableHeight: k.is_state_stable ? k.height : void 0
3643
3642
  });
3644
3643
  }, R = (k) => {
3645
- h.setState({ isFullscreen: k.is_fullscreen });
3644
+ d.setState({ isFullscreen: k.is_fullscreen });
3646
3645
  }, T = (k) => {
3647
- h.setState({ safeAreaInsets: k });
3646
+ d.setState({ safeAreaInsets: k });
3648
3647
  }, O = (k) => {
3649
- h.setState({ contentSafeAreaInsets: k });
3648
+ d.setState({ contentSafeAreaInsets: k });
3650
3649
  }, G = new Jt({
3651
3650
  initialState(k) {
3652
3651
  const st = (N) => () => {
@@ -3667,7 +3666,7 @@ class hn {
3667
3666
  width: window.innerWidth
3668
3667
  }) : c(
3669
3668
  _("web_app_request_viewport", "viewport_changed", k),
3670
- x((W) => ({
3669
+ B((W) => ({
3671
3670
  ...X,
3672
3671
  height: W.height,
3673
3672
  isExpanded: W.is_expanded,
@@ -3679,14 +3678,14 @@ class hn {
3679
3678
  },
3680
3679
  isPageReload: r,
3681
3680
  onMounted(k) {
3682
- o(B), u(R), i(T), n(O), h.setState(k);
3681
+ o(x), u(R), i(T), n(O), d.setState(k);
3683
3682
  },
3684
3683
  onUnmounted() {
3685
- m(B), p(R), l(T), a(O);
3684
+ m(x), p(R), l(T), a(O);
3686
3685
  },
3687
3686
  restoreState: e.get
3688
3687
  }), H = (k) => w(() => this.safeAreaInsets()[k]), bt = (k) => w(() => this.contentSafeAreaInsets()[k]);
3689
- this.state = h.state, this.height = h.getter("height"), this.stableHeight = h.getter("stableHeight"), this.width = h.getter("width"), this.isExpanded = h.getter("isExpanded"), this.safeAreaInsets = h.getter("safeAreaInsets"), this.safeAreaInsetTop = H("top"), this.safeAreaInsetBottom = H("bottom"), this.safeAreaInsetLeft = H("left"), this.safeAreaInsetRight = H("right"), this.contentSafeAreaInsets = h.getter("contentSafeAreaInsets"), this.contentSafeAreaInsetTop = bt("top"), this.contentSafeAreaInsetBottom = bt("bottom"), this.contentSafeAreaInsetLeft = bt("left"), this.contentSafeAreaInsetRight = bt("right");
3688
+ this.state = d.state, this.height = d.getter("height"), this.stableHeight = d.getter("stableHeight"), this.width = d.getter("width"), this.isExpanded = d.getter("isExpanded"), this.safeAreaInsets = d.getter("safeAreaInsets"), this.safeAreaInsetTop = H("top"), this.safeAreaInsetBottom = H("bottom"), this.safeAreaInsetLeft = H("left"), this.safeAreaInsetRight = H("right"), this.contentSafeAreaInsets = d.getter("contentSafeAreaInsets"), this.contentSafeAreaInsetTop = bt("top"), this.contentSafeAreaInsetBottom = bt("bottom"), this.contentSafeAreaInsetLeft = bt("left"), this.contentSafeAreaInsetRight = bt("right");
3690
3689
  const Ve = E({ isTma: y, returns: "task" }), te = E({
3691
3690
  isTma: y,
3692
3691
  returns: "either"
@@ -3701,9 +3700,9 @@ class hn {
3701
3700
  ["fullscreen_changed", "fullscreen_failed"],
3702
3701
  st
3703
3702
  ),
3704
- Z((M) => "error" in M && M.error !== "ALREADY_FULLSCREEN" ? $(new er(M.error)) : (h.setState({ isFullscreen: "is_fullscreen" in M ? M.is_fullscreen : !0 }), q(void 0)))
3703
+ Z((M) => "error" in M && M.error !== "ALREADY_FULLSCREEN" ? $(new er(M.error)) : (d.setState({ isFullscreen: "is_fullscreen" in M ? M.is_fullscreen : !0 }), q(void 0)))
3705
3704
  ));
3706
- this.isMounted = G.isMounted, this.mountFp = Ve(G.mount), this.mount = d(this.mountFp), this.isFullscreen = h.getter("isFullscreen"), this.requestFullscreenFp = ee(!0), this.requestFullscreen = d(this.requestFullscreenFp), this.exitFullscreenFp = ee(!1), this.exitFullscreen = d(this.exitFullscreenFp);
3705
+ this.isMounted = G.isMounted, this.mountFp = Ve(G.mount), this.mount = h(this.mountFp), this.isFullscreen = d.getter("isFullscreen"), this.requestFullscreenFp = ee(!0), this.requestFullscreen = h(this.requestFullscreenFp), this.exitFullscreenFp = ee(!1), this.exitFullscreen = h(this.exitFullscreenFp);
3707
3706
  const gt = j(!1);
3708
3707
  this.isCssVarsBound = w(gt), this.bindCssVarsFp = te(
3709
3708
  (k) => {
@@ -3740,7 +3739,7 @@ class hn {
3740
3739
  }), gt.set(!1);
3741
3740
  });
3742
3741
  }
3743
- ), this.bindCssVars = d(this.bindCssVarsFp), this.expandFp = te(() => f("web_app_expand")), this.expand = d(this.expandFp);
3742
+ ), this.bindCssVars = h(this.bindCssVarsFp), this.expandFp = te(() => f("web_app_expand")), this.expand = h(this.expandFp);
3744
3743
  }
3745
3744
  //#endregion
3746
3745
  }
@@ -3838,7 +3837,7 @@ export {
3838
3837
  vr as Invoice,
3839
3838
  ho as InvokeCustomMethodFailedError,
3840
3839
  fo as LaunchParamsRetrieveError,
3841
- xr as LocationManager,
3840
+ Br as LocationManager,
3842
3841
  qr as MainButton,
3843
3842
  _o as MethodParameterUnsupportedError,
3844
3843
  mo as MethodUnsupportedError,
@@ -3877,10 +3876,10 @@ export {
3877
3876
  Eo as decodeBase64UrlFp,
3878
3877
  Ao as decodeStartParam,
3879
3878
  Io as decodeStartParamFp,
3880
- Bo as deepSnakeToCamelObjKeys,
3879
+ xo as deepSnakeToCamelObjKeys,
3881
3880
  Yn as downloadFile,
3882
3881
  Nr as downloadFileFp,
3883
- xo as emitEvent,
3882
+ Bo as emitEvent,
3884
3883
  qo as encodeBase64Url,
3885
3884
  Zn as getCurrentTime,
3886
3885
  Yr as getCurrentTimeFp,
@@ -3894,7 +3893,7 @@ export {
3894
3893
  $n as invoice,
3895
3894
  hr as invokeCustomMethod,
3896
3895
  Zo as isAnyRGB,
3897
- xe as isColorDark,
3896
+ Be as isColorDark,
3898
3897
  Mr as isColorDarkFp,
3899
3898
  Xo as isRGB,
3900
3899
  ti as isRGBA,
@@ -3930,7 +3929,7 @@ export {
3930
3929
  jn as requestContactComplete,
3931
3930
  Me as requestContactCompleteFp,
3932
3931
  Ur as requestContactFp,
3933
- Bn as requestEmojiStatusAccess,
3932
+ xn as requestEmojiStatusAccess,
3934
3933
  fr as requestEmojiStatusAccessFp,
3935
3934
  Ee as requestFp,
3936
3935
  Gn as requestPhoneAccess,
@@ -3951,7 +3950,7 @@ export {
3951
3950
  ai as serializeInitDataQuery,
3952
3951
  ui as serializeLaunchParamsQuery,
3953
3952
  Qo as setDebug,
3954
- xn as setEmojiStatus,
3953
+ Bn as setEmojiStatus,
3955
3954
  mr as setEmojiStatusFp,
3956
3955
  zo as setTargetOrigin,
3957
3956
  zn as settingsButton,