@tma.js/sdk 3.0.6 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -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
- }, L = /* @__PURE__ */ xs(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;
@@ -470,45 +470,45 @@ function A(s, e) {
470
470
  return;
471
471
  const [f, b] = "every" in u ? ["every", u.every] : ["some", u.some];
472
472
  for (let d = 0; d < b.length; d++) {
473
- const x = b[d], $ = typeof x == "function" ? x() : ot(x, r()) ? void 0 : `it is unsupported in Mini Apps version ${r()}`;
474
- if ($ && (f === "every" || d === b.length - 1))
475
- return $;
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
+ return R;
476
476
  }
477
477
  }, l = (...f) => {
478
478
  for (const b in e.supports)
479
479
  if (e.supports[b].shouldCheck(...f) && !a(b))
480
480
  return `option ${b} is not supported in Mini Apps version ${r()}`;
481
- }, m = w(() => !p()), _ = w(() => r() !== "0.0"), g = w(() => e.isMounted ? e.isMounted() : !0), C = w(
482
- () => n() && _() && m() && g()
483
- ), y = (f) => {
481
+ }, m = w(() => !p()), _ = w(() => r() !== "0.0"), F = w(() => e.isMounted ? e.isMounted() : !0), g = w(
482
+ () => n() && _() && m() && F()
483
+ ), S = (f) => {
484
484
  const b = new Xs(f);
485
- return ["task", "promise"].includes(e.returns) ? L(b) : V(b);
486
- }, S = (...f) => o === "plain" ? _s(() => s(...f), (b) => b) : o === "promise" ? js(() => s(...f), (b) => b) : s(...f);
485
+ return ["task", "promise"].includes(e.returns) ? $(b) : V(b);
486
+ }, v = (...f) => o === "plain" ? _s(() => s(...f), (b) => b) : o === "promise" ? js(() => s(...f), (b) => b) : s(...f);
487
487
  return Object.assign(
488
488
  (...f) => {
489
- var $;
489
+ var R;
490
490
  const b = "Unable to call function:";
491
491
  if (!n())
492
- return y(`${b} it can't be called outside Mini Apps`);
492
+ return S(`${b} it can't be called outside Mini Apps`);
493
493
  if (!_())
494
- return y(`${b} the SDK was not initialized. Use the SDK init() function`);
494
+ return S(`${b} the SDK was not initialized. Use the SDK init() function`);
495
495
  const d = p();
496
496
  if (d)
497
- return y(`${b} ${d}`);
497
+ return S(`${b} ${d}`);
498
498
  const x = l(...f);
499
499
  if (x)
500
- return y(`${b} ${x}`);
501
- if (!g()) {
502
- const T = ($ = e.isMounting) != null && $.call(e) ? "mounting. Wait for the mount completion" : "unmounted. Use the mount() method";
503
- return y(`${b} the component is ${T}`);
500
+ return S(`${b} ${x}`);
501
+ if (!F()) {
502
+ const T = (R = e.isMounting) != null && R.call(e) ? "mounting. Wait for the mount completion" : "unmounted. Use the mount() method";
503
+ return S(`${b} the component is ${T}`);
504
504
  }
505
- return S(...f);
505
+ return v(...f);
506
506
  },
507
507
  s,
508
508
  {
509
- isAvailable: C,
509
+ isAvailable: g,
510
510
  ifAvailable(...f) {
511
- return C() ? ht(S(...f)) : it;
511
+ return g() ? ht(v(...f)) : it;
512
512
  }
513
513
  },
514
514
  u ? { isSupported: m } : {},
@@ -712,20 +712,20 @@ class kt {
712
712
  onChange(f) {
713
713
  r.set(f);
714
714
  }
715
- }), g = new dt({
715
+ }), F = new dt({
716
716
  initialState: o,
717
717
  isPageReload: u,
718
718
  onMounted: _.setState,
719
719
  restoreState: r.get
720
- }), C = { version: m, requires: l, isTma: e }, y = E({
721
- ...C,
720
+ }), g = { version: m, requires: l, isTma: e }, S = E({
721
+ ...g,
722
722
  returns: "plain"
723
- }), S = E({
724
- ...C,
723
+ }), v = E({
724
+ ...g,
725
725
  returns: "either",
726
- isMounted: g.isMounted
726
+ isMounted: F.isMounted
727
727
  });
728
- this.isMounted = g.isMounted, this.isSupported = z(l, m), this.state = _.state, this.setStateFp = S((f) => {
728
+ this.isMounted = F.isMounted, this.isSupported = z(l, m), this.state = _.state, this.setStateFp = v((f) => {
729
729
  const b = { ...this.state(), ...Mt(f) };
730
730
  return _.hasDiff(b) ? c(
731
731
  a(l, p(b)),
@@ -733,15 +733,15 @@ class kt {
733
733
  _.setState(b);
734
734
  })
735
735
  ) : I(void 0);
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(() => {
736
+ }), this.setState = h(this.setStateFp), this.onClickFp = S(n), this.onClick = h(this.onClickFp), this.offClickFp = S(i), this.offClick = h(this.offClickFp), this.mountFp = S(() => {
737
737
  const f = () => {
738
738
  };
739
- return c(g.mount(), pt(f, f));
740
- }), this.mount = h(this.mountFp), this.unmount = g.unmount, this.stateSetters = (f) => {
741
- const b = S((d) => this.setStateFp({ [f]: d }));
739
+ return c(F.mount(), pt(f, f));
740
+ }), this.mount = h(this.mountFp), this.unmount = F.unmount, this.stateSetters = (f) => {
741
+ const b = v((d) => this.setStateFp({ [f]: d }));
742
742
  return [h(b), b];
743
743
  }, this.stateBoolSetters = (f) => {
744
- const [, b] = this.stateSetters(f), d = S(() => b(!1)), x = S(() => b(!0));
744
+ const [, b] = this.stateSetters(f), d = v(() => b(!1)), x = v(() => b(!0));
745
745
  return [
746
746
  [h(d), d],
747
747
  [h(x), x]
@@ -848,7 +848,7 @@ class nr {
848
848
  this.isVisible = r.stateGetter("isVisible"), this.isMounted = r.isMounted, this.isSupported = r.isSupported, [[this.hide, this.hideFp], [this.show, this.showFp]] = r.stateBoolSetters("isVisible"), this.onClick = r.onClick, this.onClickFp = r.onClickFp, this.offClick = r.offClick, this.offClickFp = r.offClickFp, this.mount = r.mount, this.mountFp = r.mountFp, this.unmount = r.unmount;
849
849
  }
850
850
  }
851
- function F() {
851
+ function C() {
852
852
  return { isTma: w(() => Re()) };
853
853
  }
854
854
  function or(s) {
@@ -879,15 +879,15 @@ function et(s) {
879
879
  function _t(s, e) {
880
880
  return j(s, e);
881
881
  }
882
- const ke = /* @__PURE__ */ _t(Pe), mt = (...s) => ke()(...s), ur = (...s) => ce(mt(...s)), R = ft({
882
+ const ke = /* @__PURE__ */ _t(Pe), mt = (...s) => ke()(...s), ur = (...s) => ce(mt(...s)), L = ft({
883
883
  postEvent: mt
884
- }), Vt = /* @__PURE__ */ _t("0.0"), v = ft({ version: Vt });
884
+ }), Vt = /* @__PURE__ */ _t("0.0"), y = ft({ version: Vt });
885
885
  function Nt(s, e) {
886
886
  return {
887
887
  ...c(
888
- F(),
889
- R,
890
- v,
888
+ C(),
889
+ L,
890
+ y,
891
891
  et(s)
892
892
  ),
893
893
  onClick(r, n) {
@@ -1070,33 +1070,33 @@ class cr {
1070
1070
  u(l);
1071
1071
  },
1072
1072
  restoreState: i.get
1073
- }), g = { version: e, requires: "web_app_biometry_request_auth", isTma: a }, C = E({
1074
- ...g,
1073
+ }), F = { version: e, requires: "web_app_biometry_request_auth", isTma: a }, g = E({
1074
+ ...F,
1075
1075
  returns: "either"
1076
- }), y = E({
1077
- ...g,
1078
- returns: "task"
1079
1076
  }), S = E({
1080
- ...g,
1077
+ ...F,
1078
+ returns: "task"
1079
+ }), v = E({
1080
+ ...F,
1081
1081
  isMounted: _.isMounted,
1082
1082
  returns: "task"
1083
1083
  });
1084
- this.isAvailable = m.getter("available"), this.isMounted = _.isMounted, this.isSupported = z("web_app_biometry_request_auth", e), this.state = m.state, this.unmount = _.unmount, this.mountFp = y(_.mount), this.authenticateFp = S((f) => this.isAvailable() ? c(
1084
+ this.isAvailable = m.getter("available"), this.isMounted = _.isMounted, this.isSupported = z("web_app_biometry_request_auth", e), this.state = m.state, this.unmount = _.unmount, this.mountFp = S(_.mount), this.authenticateFp = v((f) => this.isAvailable() ? c(
1085
1085
  r("web_app_biometry_request_auth", "biometry_auth_requested", {
1086
1086
  ...f,
1087
1087
  params: { reason: ((f || {}).reason || "").trim() }
1088
1088
  }),
1089
1089
  B((b) => (m.setState({ token: b.token }), b))
1090
- ) : L(ue)), this.openSettingsFp = C(() => n("web_app_biometry_open_settings")), this.requestAccessFp = S((f) => c(
1090
+ ) : $(ue)), this.openSettingsFp = g(() => n("web_app_biometry_open_settings")), this.requestAccessFp = v((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
1096
  const d = It(b);
1097
- return d.available ? (m.setState(d), q(d.accessRequested)) : L(ue);
1097
+ return d.available ? (m.setState(d), q(d.accessRequested)) : $(ue);
1098
1098
  })
1099
- )), this.updateTokenFp = S((f = {}) => {
1099
+ )), this.updateTokenFp = v((f = {}) => {
1100
1100
  var b;
1101
1101
  return c(
1102
1102
  r("web_app_biometry_update_token", "biometry_token_updated", {
@@ -1115,9 +1115,9 @@ const Ee = (s, e, r) => Oe(s, e, {
1115
1115
  request: Ee
1116
1116
  }), En = new cr({
1117
1117
  ...c(
1118
- F(),
1119
- R,
1120
- v,
1118
+ C(),
1119
+ L,
1120
+ y,
1121
1121
  G,
1122
1122
  et("biometry")
1123
1123
  ),
@@ -1194,9 +1194,9 @@ class lr {
1194
1194
  }
1195
1195
  }
1196
1196
  const An = new lr(c(
1197
- F(),
1197
+ C(),
1198
1198
  et("closingBehavior"),
1199
- R
1199
+ L
1200
1200
  ));
1201
1201
  class pr {
1202
1202
  constructor({ version: e, isTma: r, invokeCustomMethod: n }) {
@@ -1315,8 +1315,8 @@ function hr(s, e, r) {
1315
1315
  const Yt = ft({
1316
1316
  invokeCustomMethod: hr
1317
1317
  }), In = new pr(c(
1318
- F(),
1319
- v,
1318
+ C(),
1319
+ y,
1320
1320
  Yt
1321
1321
  ));
1322
1322
  function dr({ request: s, ...e }) {
@@ -1326,8 +1326,8 @@ function dr({ request: s, ...e }) {
1326
1326
  ), { ...e, requires: "web_app_request_emoji_status_access", returns: "task" });
1327
1327
  }
1328
1328
  const fr = dr(c(
1329
- F(),
1330
- v,
1329
+ C(),
1330
+ y,
1331
1331
  G
1332
1332
  )), xn = h(fr);
1333
1333
  function _r({ request: s, ...e }) {
@@ -1339,7 +1339,7 @@ function _r({ request: s, ...e }) {
1339
1339
  },
1340
1340
  ...n
1341
1341
  }),
1342
- at((i) => i && "error" in i ? L(new tr(i.error)) : q(void 0))
1342
+ at((i) => i && "error" in i ? $(new tr(i.error)) : q(void 0))
1343
1343
  ), {
1344
1344
  ...e,
1345
1345
  requires: "web_app_set_emoji_status",
@@ -1347,9 +1347,9 @@ function _r({ request: s, ...e }) {
1347
1347
  });
1348
1348
  }
1349
1349
  const mr = _r(c(
1350
- F(),
1350
+ C(),
1351
1351
  G,
1352
- v
1352
+ y
1353
1353
  )), Bn = h(mr);
1354
1354
  class br {
1355
1355
  constructor({ postEvent: e, isTma: r, version: n }) {
@@ -1403,17 +1403,17 @@ class br {
1403
1403
  }
1404
1404
  }
1405
1405
  const qn = new br(c(
1406
- F(),
1407
- R,
1408
- v
1406
+ C(),
1407
+ L,
1408
+ y
1409
1409
  ));
1410
1410
  function gr({ postEvent: s, ...e }) {
1411
1411
  return A(() => s("web_app_add_to_home_screen"), { ...e, requires: "web_app_add_to_home_screen", returns: "either" });
1412
1412
  }
1413
1413
  const wr = gr(c(
1414
- F(),
1415
- v,
1416
- R
1414
+ C(),
1415
+ y,
1416
+ L
1417
1417
  )), Mn = h(wr);
1418
1418
  function Fr({ request: s, ...e }) {
1419
1419
  return A((r) => c(
@@ -1422,8 +1422,8 @@ function Fr({ request: s, ...e }) {
1422
1422
  ), { ...e, requires: "web_app_check_home_screen", returns: "task" });
1423
1423
  }
1424
1424
  const Cr = Fr(c(
1425
- F(),
1426
- v,
1425
+ C(),
1426
+ y,
1427
1427
  G
1428
1428
  )), Vn = h(Cr);
1429
1429
  class Sr {
@@ -1575,7 +1575,7 @@ class vr {
1575
1575
  o.set(!1);
1576
1576
  };
1577
1577
  this.isSupported = z("web_app_open_invoice", e), this.isOpened = w(o), this.openSlugFp = i((a, p) => c(
1578
- this.isOpened() ? L(new zt("Invoice is already opened")) : q(void 0),
1578
+ this.isOpened() ? $(new zt("Invoice is already opened")) : q(void 0),
1579
1579
  Z(() => (o.set(!0), r("web_app_open_invoice", "invoice_closed", {
1580
1580
  ...p,
1581
1581
  params: { slug: a },
@@ -1585,15 +1585,15 @@ class vr {
1585
1585
  )), this.openUrlFp = i((a, p) => {
1586
1586
  const { hostname: l, pathname: m } = new URL(a, window.location.href);
1587
1587
  if (l !== "t.me")
1588
- return L(new Q(`Link has unexpected hostname: ${l}`));
1588
+ return $(new Q(`Link has unexpected hostname: ${l}`));
1589
1589
  const _ = m.match(/^\/(\$|invoice\/)([A-Za-z0-9\-_=]+)$/);
1590
- return _ ? this.openSlugFp(_[2], p) : L(new Q(
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
1593
  }), this.openUrl = h(this.openUrlFp), this.openSlug = h(this.openSlugFp);
1594
1594
  }
1595
1595
  }
1596
- const $n = new vr(c(F(), G, v));
1596
+ const $n = new vr(c(C(), G, y));
1597
1597
  function yr({ postEvent: s, ...e }) {
1598
1598
  return A((r, n = {}) => {
1599
1599
  if (typeof r == "string")
@@ -1610,8 +1610,8 @@ function yr({ postEvent: s, ...e }) {
1610
1610
  }, { ...e, returns: "either" });
1611
1611
  }
1612
1612
  const kr = yr(c(
1613
- F(),
1614
- R
1613
+ C(),
1614
+ L
1615
1615
  )), Ln = h(kr);
1616
1616
  function Er({ postEvent: s, version: e, ...r }) {
1617
1617
  return A((n) => {
@@ -1620,9 +1620,9 @@ function Er({ postEvent: s, version: e, ...r }) {
1620
1620
  }, { ...r, returns: "either" });
1621
1621
  }
1622
1622
  const Ie = Er(c(
1623
- F(),
1624
- R,
1625
- v
1623
+ C(),
1624
+ L,
1625
+ y
1626
1626
  )), Rn = h(Ie);
1627
1627
  function Ar({ openTelegramLink: s, ...e }) {
1628
1628
  return A((r, n) => s(
@@ -1630,7 +1630,7 @@ function Ar({ openTelegramLink: s, ...e }) {
1630
1630
  ), { ...e, returns: "either" });
1631
1631
  }
1632
1632
  const Ir = Ar({
1633
- ...F(),
1633
+ ...C(),
1634
1634
  openTelegramLink: Ie
1635
1635
  }), Pn = h(Ir);
1636
1636
  function xr(s) {
@@ -1721,9 +1721,9 @@ class Br {
1721
1721
  isPageReload: u,
1722
1722
  restoreState: i.get,
1723
1723
  onMounted: a.setState,
1724
- initialState(C) {
1724
+ initialState(g) {
1725
1725
  return c(
1726
- r("web_app_check_location", "location_checked", C),
1726
+ r("web_app_check_location", "location_checked", g),
1727
1727
  B(xr)
1728
1728
  );
1729
1729
  }
@@ -1733,26 +1733,26 @@ class Br {
1733
1733
  }), _ = E({
1734
1734
  ...l,
1735
1735
  returns: "task"
1736
- }), g = E({
1736
+ }), F = E({
1737
1737
  ...l,
1738
1738
  returns: "task",
1739
1739
  isMounted: p.isMounted
1740
1740
  });
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
- r("web_app_request_location", "location_requested", C),
1743
- B((y) => {
1744
- if (!y.available)
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 = F((g) => c(
1742
+ r("web_app_request_location", "location_requested", g),
1743
+ B((S) => {
1744
+ if (!S.available)
1745
1745
  return a.setState({ available: !1 }), null;
1746
- const { available: S, ...f } = y;
1746
+ const { available: v, ...f } = S;
1747
1747
  return f;
1748
1748
  })
1749
1749
  )), this.mount = h(this.mountFp), this.openSettings = h(this.openSettingsFp), this.requestLocation = h(this.requestLocationFp);
1750
1750
  }
1751
1751
  }
1752
1752
  const On = new Br(c(
1753
- F(),
1754
- R,
1755
- v,
1753
+ C(),
1754
+ L,
1755
+ y,
1756
1756
  G,
1757
1757
  et("locationManager")
1758
1758
  ));
@@ -2119,37 +2119,37 @@ class Vr {
2119
2119
  const a = new tt({
2120
2120
  initialState: {},
2121
2121
  onChange: o.set
2122
- }), p = (C) => {
2123
- a.setState(C.theme_params);
2122
+ }), p = (g) => {
2123
+ a.setState(g.theme_params);
2124
2124
  }, l = new dt({
2125
2125
  initialState: () => I(O(e)),
2126
2126
  isPageReload: u,
2127
- onMounted(C) {
2128
- a.setState(C), r(p);
2127
+ onMounted(g) {
2128
+ a.setState(g), r(p);
2129
2129
  },
2130
2130
  onUnmounted() {
2131
2131
  n(p);
2132
2132
  },
2133
2133
  restoreState: o.get
2134
- }), m = { isTma: i, returns: "either" }, _ = E(m), g = E({
2134
+ }), m = { isTma: i, returns: "either" }, _ = E(m), F = E({
2135
2135
  ...m,
2136
2136
  isMounted: l.isMounted
2137
2137
  });
2138
- this.accentTextColor = a.getter("accent_text_color"), this.bgColor = a.getter("bg_color"), this.buttonColor = a.getter("button_color"), this.buttonTextColor = a.getter("button_text_color"), this.bottomBarBgColor = a.getter("bottom_bar_bg_color"), this.destructiveTextColor = a.getter("destructive_text_color"), this.headerBgColor = a.getter("header_bg_color"), this.hintColor = a.getter("hint_color"), this.linkColor = a.getter("link_color"), this.secondaryBgColor = a.getter("secondary_bg_color"), this.sectionBgColor = a.getter("section_bg_color"), this.sectionHeaderTextColor = a.getter("section_header_text_color"), this.sectionSeparatorColor = a.getter("section_separator_color"), this.subtitleTextColor = a.getter("subtitle_text_color"), this.textColor = a.getter("text_color"), this.state = a.state, this.isMounted = l.isMounted, this.bindCssVarsFp = g((C) => {
2138
+ this.accentTextColor = a.getter("accent_text_color"), this.bgColor = a.getter("bg_color"), this.buttonColor = a.getter("button_color"), this.buttonTextColor = a.getter("button_text_color"), this.bottomBarBgColor = a.getter("bottom_bar_bg_color"), this.destructiveTextColor = a.getter("destructive_text_color"), this.headerBgColor = a.getter("header_bg_color"), this.hintColor = a.getter("hint_color"), this.linkColor = a.getter("link_color"), this.secondaryBgColor = a.getter("secondary_bg_color"), this.sectionBgColor = a.getter("section_bg_color"), this.sectionHeaderTextColor = a.getter("section_header_text_color"), this.sectionSeparatorColor = a.getter("section_separator_color"), this.subtitleTextColor = a.getter("subtitle_text_color"), this.textColor = a.getter("text_color"), this.state = a.state, this.isMounted = l.isMounted, this.bindCssVarsFp = F((g) => {
2139
2139
  if (this._isCssVarsBound())
2140
2140
  return V(new Qt());
2141
- C || (C = (f) => `--tg-theme-${We(f)}`);
2142
- const y = (f) => {
2141
+ g || (g = (f) => `--tg-theme-${We(f)}`);
2142
+ const S = (f) => {
2143
2143
  Object.entries(a.state()).forEach(([b, d]) => {
2144
2144
  d && f(b, d);
2145
2145
  });
2146
- }, S = () => {
2147
- y((f, b) => {
2148
- Zt(C(f), b);
2146
+ }, v = () => {
2147
+ S((f, b) => {
2148
+ Zt(g(f), b);
2149
2149
  });
2150
2150
  };
2151
- return S(), a.state.sub(S), this._isCssVarsBound.set(!0), I(() => {
2152
- y(Xt), a.state.unsub(S), this._isCssVarsBound.set(!1);
2151
+ return v(), a.state.sub(v), this._isCssVarsBound.set(!0), I(() => {
2152
+ S(Xt), a.state.unsub(v), this._isCssVarsBound.set(!1);
2153
2153
  });
2154
2154
  }), this.mountFp = _(l.mount), this.unmount = l.unmount, this.bindCssVars = h(this.bindCssVarsFp), this.mount = h(this.mountFp);
2155
2155
  }
@@ -2157,7 +2157,7 @@ class Vr {
2157
2157
  }
2158
2158
  const vt = new Vr({
2159
2159
  ...c(
2160
- F(),
2160
+ C(),
2161
2161
  et("themeParams")
2162
2162
  ),
2163
2163
  offChange(s) {
@@ -2353,17 +2353,17 @@ class Tr {
2353
2353
  */
2354
2354
  t(this, "ready");
2355
2355
  const l = (d) => {
2356
- g.setState({ isActive: d.is_visible });
2356
+ F.setState({ isActive: d.is_visible });
2357
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(([x, $]) => {
2362
+ ].forEach(([x, R]) => {
2363
2363
  const T = x();
2364
- if (console.log(T, $), !Et(T) && ($ !== "web_app_set_header_color" || !["bg_color", "secondary_bg_color"].includes(T))) {
2364
+ if (!Et(T) && (R !== "web_app_set_header_color" || !["bg_color", "secondary_bg_color"].includes(T))) {
2365
2365
  const D = d[T];
2366
- D && i($, { color: D });
2366
+ D && i(R, { color: D });
2367
2367
  }
2368
2368
  });
2369
2369
  }, _ = new dt({
@@ -2377,7 +2377,7 @@ class Tr {
2377
2377
  },
2378
2378
  isPageReload: r,
2379
2379
  onMounted: (d) => {
2380
- a(l), u.sub(m), g.setState(d);
2380
+ a(l), u.sub(m), F.setState(d);
2381
2381
  },
2382
2382
  onUnmounted() {
2383
2383
  p(l), u.unsub(m);
@@ -2389,7 +2389,7 @@ class Tr {
2389
2389
  };
2390
2390
  return c(_.mount(), pt(d, d));
2391
2391
  }, { isTma: o, returns: "plain" }), this.mount = h(this.mountFp), this.unmount = _.unmount;
2392
- const g = new tt({
2392
+ const F = new tt({
2393
2393
  initialState: {
2394
2394
  bgColor: "bg_color",
2395
2395
  bottomBarColor: "bottom_bar_bg_color",
@@ -2398,29 +2398,29 @@ class Tr {
2398
2398
  },
2399
2399
  onChange: e.set
2400
2400
  });
2401
- this.state = g.state;
2402
- const C = (d) => Et(d) ? d : O(u)[d], y = (d) => w(() => C(d()));
2403
- this.isActive = g.getter("isActive"), this.isSupported = w(() => [
2401
+ this.state = F.state;
2402
+ const g = (d) => Et(d) ? d : O(u)[d], S = (d) => w(() => g(d()));
2403
+ this.isActive = F.getter("isActive"), this.isSupported = w(() => [
2404
2404
  "web_app_set_header_color",
2405
2405
  "web_app_set_background_color",
2406
2406
  "web_app_set_bottom_bar_color"
2407
2407
  ].some((d) => ot(d, O(n))));
2408
- const S = j(!1);
2409
- this.isCssVarsBound = w(S), this.bindCssVarsFp = A((d) => {
2410
- if (S())
2408
+ const v = j(!1);
2409
+ this.isCssVarsBound = w(v), this.bindCssVarsFp = A((d) => {
2410
+ if (v())
2411
2411
  return V(new Qt());
2412
- const [x, $] = Lt(() => {
2413
- S.set(!1);
2412
+ const [x, R] = Lt(() => {
2413
+ v.set(!1);
2414
2414
  }), T = (D, U) => {
2415
2415
  const H = () => {
2416
2416
  Zt(D, U() || null);
2417
2417
  };
2418
2418
  H(), x(U.sub(H), Xt.bind(null, D));
2419
2419
  };
2420
- return d || (d = (D) => `--tg-${le(D)}`), T(d("bgColor"), this.bgColorRgb), T(d("bottomBarColor"), this.bottomBarColorRgb), T(d("headerColor"), this.headerColorRgb), S.set(!0), I($);
2420
+ return d || (d = (D) => `--tg-${le(D)}`), T(d("bgColor"), this.bgColorRgb), T(d("bottomBarColor"), this.bottomBarColorRgb), T(d("headerColor"), this.headerColorRgb), v.set(!0), I(R);
2421
2421
  }, { isTma: o, returns: "either", isMounted: this.isMounted }), this.bindCssVars = h(this.bindCssVarsFp);
2422
2422
  const f = (d) => {
2423
- const x = g.getter(d), $ = y(x), T = {
2423
+ const x = F.getter(d), R = S(x), T = {
2424
2424
  headerColor: "web_app_set_header_color",
2425
2425
  bgColor: "web_app_set_background_color",
2426
2426
  bottomBarColor: "web_app_set_bottom_bar_color"
@@ -2432,14 +2432,14 @@ class Tr {
2432
2432
  return c(
2433
2433
  i("web_app_set_header_color", { color_key: U }),
2434
2434
  P(() => {
2435
- g.setState({ [d]: U });
2435
+ F.setState({ [d]: U });
2436
2436
  })
2437
2437
  );
2438
- const H = C(U);
2438
+ const H = g(U);
2439
2439
  return c(
2440
2440
  H ? i(T, { color: H }) : V(new rr(U)),
2441
2441
  P(() => {
2442
- g.setState({ [d]: H });
2442
+ F.setState({ [d]: H });
2443
2443
  })
2444
2444
  );
2445
2445
  },
@@ -2458,7 +2458,7 @@ class Tr {
2458
2458
  } : void 0
2459
2459
  }
2460
2460
  );
2461
- return [x, $, h(D), D];
2461
+ return [x, R, h(D), D];
2462
2462
  };
2463
2463
  [
2464
2464
  this.bgColor,
@@ -2483,9 +2483,9 @@ class Tr {
2483
2483
  }
2484
2484
  const $r = new Tr({
2485
2485
  ...c(
2486
- F(),
2487
- R,
2488
- v,
2486
+ C(),
2487
+ L,
2488
+ y,
2489
2489
  et("miniApp")
2490
2490
  ),
2491
2491
  offVisibilityChanged(s) {
@@ -2571,7 +2571,7 @@ class Rr {
2571
2571
  returns: "task"
2572
2572
  });
2573
2573
  this.isSupported = z("web_app_open_popup", e), this.isOpened = w(i), this.showFp = u((a) => c(
2574
- this.isOpened() ? L(new zt("A popup is already opened")) : q(void 0),
2574
+ this.isOpened() ? $(new zt("A popup is already opened")) : q(void 0),
2575
2575
  at(() => ve(Lr(a))),
2576
2576
  Z((p) => (i.set(!0), n("web_app_open_popup", "popup_closed", {
2577
2577
  ...a,
@@ -2584,7 +2584,7 @@ class Rr {
2584
2584
  )), this.show = h(this.showFp);
2585
2585
  }
2586
2586
  }
2587
- const Un = new Rr(c(F(), G, v));
2587
+ const Un = new Rr(c(C(), G, y));
2588
2588
  function Pr({ request: s, ...e }) {
2589
2589
  return A((r) => c(
2590
2590
  s("web_app_request_phone", "phone_requested", r),
@@ -2592,8 +2592,8 @@ function Pr({ request: s, ...e }) {
2592
2592
  ), { ...e, requires: "web_app_request_phone", returns: "task" });
2593
2593
  }
2594
2594
  const qe = Pr(c(
2595
- F(),
2596
- v,
2595
+ C(),
2596
+ y,
2597
2597
  G
2598
2598
  )), Gn = h(qe);
2599
2599
  function Or({
@@ -2609,7 +2609,7 @@ function Or({
2609
2609
  at((a) => {
2610
2610
  const p = qt(J(), a);
2611
2611
  if (!p.success)
2612
- return L(new Ft(a, p.issues));
2612
+ return $(new Ft(a, p.issues));
2613
2613
  if (!p.output)
2614
2614
  return q(void 0);
2615
2615
  const l = qt(
@@ -2631,7 +2631,7 @@ function Or({
2631
2631
  ),
2632
2632
  p.output
2633
2633
  );
2634
- return l.success ? q({ raw: p.output, parsed: l.output }) : L(new Ft(p.output, l.issues));
2634
+ return l.success ? q({ raw: p.output, parsed: l.output }) : $(new Ft(p.output, l.issues));
2635
2635
  })
2636
2636
  ), i = (u) => c(
2637
2637
  n(u),
@@ -2651,7 +2651,7 @@ function Or({
2651
2651
  return p(_.left);
2652
2652
  if (_.right)
2653
2653
  return a(_.right);
2654
- await new Promise((g) => setTimeout(g, m)), m += 50;
2654
+ await new Promise((F) => setTimeout(F, m)), m += 50;
2655
2655
  }
2656
2656
  },
2657
2657
  u
@@ -2661,7 +2661,7 @@ function Or({
2661
2661
  i(a),
2662
2662
  Z((p) => p ? q(p) : c(
2663
2663
  e(a),
2664
- at((l) => l === "sent" ? o(a) : L(new ye("User denied access")))
2664
+ at((l) => l === "sent" ? o(a) : $(new ye("User denied access")))
2665
2665
  ))
2666
2666
  ), u), { ...r, returns: "task", requires: "web_app_request_phone" });
2667
2667
  }
@@ -2672,10 +2672,10 @@ function Dr({ requestContact: s, ...e }) {
2672
2672
  );
2673
2673
  }
2674
2674
  const Me = Or({
2675
- ...c(F(), Yt, v),
2675
+ ...c(C(), Yt, y),
2676
2676
  requestPhoneAccess: qe
2677
2677
  }), jn = h(Me), Ur = Dr({
2678
- ...c(F(), v),
2678
+ ...c(C(), y),
2679
2679
  requestContact(s) {
2680
2680
  return c(
2681
2681
  Me(s),
@@ -2690,8 +2690,8 @@ function Gr({ request: s, ...e }) {
2690
2690
  ), { ...e, requires: "web_app_request_write_access", returns: "task" });
2691
2691
  }
2692
2692
  const jr = Gr(c(
2693
- F(),
2694
- v,
2693
+ C(),
2694
+ y,
2695
2695
  G
2696
2696
  )), Wn = h(jr);
2697
2697
  class Hr {
@@ -2785,32 +2785,32 @@ class Hr {
2785
2785
  l.set(!1);
2786
2786
  };
2787
2787
  this.isSupported = z("web_app_open_scan_qr_popup", e), this.isOpened = w(l), this.captureFp = p((_) => {
2788
- let g;
2788
+ let F;
2789
2789
  return c(
2790
2790
  this.openFp({
2791
2791
  ..._,
2792
- onCaptured: (C) => {
2793
- _.capture(C) && (g = C, this.close());
2792
+ onCaptured: (g) => {
2793
+ _.capture(g) && (F = g, this.close());
2794
2794
  }
2795
2795
  }),
2796
- B(() => g)
2796
+ B(() => F)
2797
2797
  );
2798
2798
  }), this.closeFp = a(() => c(o("web_app_close_scan_qr_popup"), P(m))), this.openFp = p((_) => c(
2799
- this.isOpened() ? L(new zt("The QR Scanner is already opened")) : async () => o("web_app_open_scan_qr_popup", { text: _.text }),
2799
+ this.isOpened() ? $(new zt("The QR Scanner is already opened")) : async () => o("web_app_open_scan_qr_popup", { text: _.text }),
2800
2800
  at(() => {
2801
- const [g, C] = Lt(), y = (S) => (C(), S);
2801
+ const [F, g] = Lt(), S = (v) => (g(), v);
2802
2802
  return c(
2803
- Bt((S) => {
2804
- g(r(S), n(_.onCaptured));
2803
+ Bt((v) => {
2804
+ F(r(v), n(_.onCaptured));
2805
2805
  }, _),
2806
- Wt(y, y)
2806
+ Wt(S, S)
2807
2807
  );
2808
2808
  })
2809
2809
  )), this.open = h(this.openFp), this.capture = h(this.captureFp), this.close = h(this.closeFp);
2810
2810
  }
2811
2811
  }
2812
2812
  const Kn = new Hr({
2813
- ...c(F(), R, v),
2813
+ ...c(C(), L, y),
2814
2814
  onClosed(s) {
2815
2815
  return Y("scan_qr_popup_closed", s);
2816
2816
  },
@@ -3228,43 +3228,43 @@ class Qr {
3228
3228
  * @see enableVerticalFp
3229
3229
  */
3230
3230
  t(this, "enableVertical");
3231
- const u = new tt({
3232
- initialState: { isVerticalEnabled: !1 },
3231
+ const u = { isVerticalEnabled: !0 }, a = new tt({
3232
+ initialState: u,
3233
3233
  onChange(g) {
3234
3234
  r.set(g);
3235
3235
  }
3236
- }), a = new dt({
3237
- initialState: { isVerticalEnabled: !1 },
3236
+ }), p = new dt({
3237
+ initialState: u,
3238
3238
  isPageReload: i,
3239
- onMounted: u.setState,
3239
+ onMounted: a.setState,
3240
3240
  restoreState: r.get
3241
- }), p = { requires: "web_app_setup_swipe_behavior", isTma: n, version: o }, l = E({
3242
- ...p,
3241
+ }), l = { requires: "web_app_setup_swipe_behavior", isTma: n, version: o }, m = E({
3242
+ ...l,
3243
3243
  returns: "plain"
3244
- }), m = E({
3245
- ...p,
3246
- isMounted: a.isMounted,
3244
+ }), _ = E({
3245
+ ...l,
3246
+ isMounted: p.isMounted,
3247
3247
  returns: "either"
3248
- }), _ = (g) => {
3249
- const C = { isVerticalEnabled: g };
3250
- return u.hasDiff(C) ? c(
3248
+ }), F = (g) => {
3249
+ const S = { isVerticalEnabled: g };
3250
+ return a.hasDiff(S) ? c(
3251
3251
  e("web_app_setup_swipe_behavior", { allow_vertical_swipe: g }),
3252
3252
  P(() => {
3253
- u.setState(C);
3253
+ a.setState(S);
3254
3254
  })
3255
3255
  ) : I(void 0);
3256
3256
  };
3257
- this.isSupported = z("web_app_setup_swipe_behavior", o), this.isVerticalEnabled = u.getter("isVerticalEnabled"), this.isMounted = a.isMounted, this.disableVerticalFp = m(() => _(!1)), this.enableVerticalFp = m(() => _(!0)), this.mountFp = l(() => {
3257
+ this.isSupported = z("web_app_setup_swipe_behavior", o), this.isVerticalEnabled = a.getter("isVerticalEnabled"), this.isMounted = p.isMounted, this.disableVerticalFp = _(() => F(!1)), this.enableVerticalFp = _(() => F(!0)), this.mountFp = m(() => {
3258
3258
  const g = () => {
3259
3259
  };
3260
- return c(a.mount(), pt(g, g));
3261
- }), this.unmount = a.unmount, this.disableVertical = h(this.disableVerticalFp), this.enableVertical = h(this.enableVerticalFp), this.mount = h(this.mountFp);
3260
+ return c(p.mount(), pt(g, g));
3261
+ }), this.unmount = p.unmount, this.disableVertical = h(this.disableVerticalFp), this.enableVertical = h(this.enableVerticalFp), this.mount = h(this.mountFp);
3262
3262
  }
3263
3263
  }
3264
3264
  const Nn = new Qr(c(
3265
- F(),
3266
- R,
3267
- v,
3265
+ C(),
3266
+ L,
3267
+ y,
3268
3268
  et("swipeBehavior")
3269
3269
  ));
3270
3270
  async function Jn(s) {
@@ -3289,13 +3289,13 @@ function zr({ request: s, ...e }) {
3289
3289
  "file_download_requested",
3290
3290
  { ...i, params: { url: r, file_name: n } }
3291
3291
  ),
3292
- Z((o) => o.status === "downloading" ? q(void 0) : L(new ye("User denied the action")))
3292
+ Z((o) => o.status === "downloading" ? q(void 0) : $(new ye("User denied the action")))
3293
3293
  ), { ...e, requires: "web_app_request_file_download", returns: "task" });
3294
3294
  }
3295
3295
  const Nr = zr(c(
3296
- F(),
3296
+ C(),
3297
3297
  G,
3298
- v
3298
+ y
3299
3299
  )), Yn = h(Nr);
3300
3300
  function Jr({ invokeCustomMethod: s, ...e }) {
3301
3301
  return A((r) => c(
@@ -3305,22 +3305,22 @@ function Jr({ invokeCustomMethod: s, ...e }) {
3305
3305
  pe(fe(), ts(), he((o) => new Date(o * 1e3)), de()),
3306
3306
  n
3307
3307
  );
3308
- return i.success ? q(i.output) : L(new Ft(n, i.issues));
3308
+ return i.success ? q(i.output) : $(new Ft(n, i.issues));
3309
3309
  })
3310
3310
  ), { ...e, requires: "web_app_invoke_custom_method", returns: "task" });
3311
3311
  }
3312
3312
  const Yr = Jr(c(
3313
- F(),
3313
+ C(),
3314
3314
  Yt,
3315
- v
3315
+ y
3316
3316
  )), Zn = h(Yr);
3317
3317
  function Zr({ postEvent: s, ...e }) {
3318
3318
  return A(() => s("web_app_hide_keyboard"), { ...e, returns: "either", requires: "web_app_hide_keyboard" });
3319
3319
  }
3320
3320
  const Xr = Zr(c(
3321
- F(),
3322
- R,
3323
- v
3321
+ C(),
3322
+ L,
3323
+ y
3324
3324
  )), Xn = h(Xr);
3325
3325
  function tn({ request: s, createRequestId: e, ...r }) {
3326
3326
  return A((n) => {
@@ -3337,8 +3337,8 @@ function tn({ request: s, createRequestId: e, ...r }) {
3337
3337
  }
3338
3338
  const en = tn({
3339
3339
  ...c(
3340
- F(),
3341
- v,
3340
+ C(),
3341
+ y,
3342
3342
  G
3343
3343
  ),
3344
3344
  createRequestId: Ae
@@ -3370,7 +3370,7 @@ function rn({ postEvent: s, ...e }) {
3370
3370
  ) : s("web_app_data_send", { data: r });
3371
3371
  }, { ...e, returns: "either" });
3372
3372
  }
3373
- const nn = rn(c(F(), R)), so = h(nn);
3373
+ const nn = rn(c(C(), L)), so = h(nn);
3374
3374
  function on({ request: s, ...e }) {
3375
3375
  return A((r, n) => c(
3376
3376
  s(
@@ -3381,13 +3381,13 @@ function on({ request: s, ...e }) {
3381
3381
  params: { id: r }
3382
3382
  }
3383
3383
  ),
3384
- Z((i) => i && "error" in i ? L(new sr(i.error)) : q(void 0))
3384
+ Z((i) => i && "error" in i ? $(new sr(i.error)) : q(void 0))
3385
3385
  ), { ...e, requires: "web_app_send_prepared_message", returns: "task" });
3386
3386
  }
3387
3387
  const an = on(c(
3388
- F(),
3388
+ C(),
3389
3389
  G,
3390
- v
3390
+ y
3391
3391
  )), ro = h(an);
3392
3392
  function un({ postEvent: s, ...e }) {
3393
3393
  return A((r, n = {}) => s("web_app_share_to_story", {
@@ -3397,9 +3397,9 @@ function un({ postEvent: s, ...e }) {
3397
3397
  }), { ...e, requires: "web_app_share_to_story", returns: "either" });
3398
3398
  }
3399
3399
  const cn = un(c(
3400
- F(),
3401
- R,
3402
- v
3400
+ C(),
3401
+ L,
3402
+ y
3403
3403
  )), no = h(cn), $t = /* @__PURE__ */ _t(!1);
3404
3404
  function ln({ isInlineMode: s, postEvent: e, ...r }) {
3405
3405
  return A((n, i) => e("web_app_switch_inline_query", {
@@ -3415,9 +3415,9 @@ function ln({ isInlineMode: s, postEvent: e, ...r }) {
3415
3415
  }
3416
3416
  const pn = ln({
3417
3417
  ...c(
3418
- F(),
3419
- R,
3420
- v
3418
+ C(),
3419
+ L,
3420
+ y
3421
3421
  ),
3422
3422
  isInlineMode: $t
3423
3423
  }), oo = h(pn);
@@ -3434,10 +3434,10 @@ class hn {
3434
3434
  offSafeAreaInsetsChanged: l,
3435
3435
  offViewportChanged: m,
3436
3436
  request: _,
3437
- isViewportStable: g,
3438
- isFullscreen: C,
3439
- isTma: y,
3440
- version: S,
3437
+ isViewportStable: F,
3438
+ isFullscreen: g,
3439
+ isTma: S,
3440
+ version: v,
3441
3441
  postEvent: f
3442
3442
  }) {
3443
3443
  //#region Other properties.
@@ -3645,7 +3645,7 @@ class hn {
3645
3645
  width: k.width,
3646
3646
  stableHeight: k.is_state_stable ? k.height : void 0
3647
3647
  });
3648
- }, $ = (k) => {
3648
+ }, R = (k) => {
3649
3649
  d.setState({ isFullscreen: k.is_fullscreen });
3650
3650
  }, T = (k) => {
3651
3651
  d.setState({ safeAreaInsets: k });
@@ -3655,14 +3655,14 @@ class hn {
3655
3655
  initialState(k) {
3656
3656
  const st = (N) => () => {
3657
3657
  const [X, W] = N === "safe-area" ? ["web_app_request_safe_area", "safe_area_changed"] : ["web_app_request_content_safe_area", "content_safe_area_changed"];
3658
- return ot(X, O(S)) ? _(X, W, k) : q({ top: 0, left: 0, right: 0, bottom: 0 });
3658
+ return ot(X, O(v)) ? _(X, W, k) : q({ top: 0, left: 0, right: 0, bottom: 0 });
3659
3659
  }, M = (N) => () => typeof N == "boolean" ? q(N) : ve(N());
3660
3660
  return c(
3661
3661
  Js,
3662
3662
  wt("safeAreaInsets", st("safe-area")),
3663
3663
  wt("contentSafeAreaInsets", st("content-safe-area")),
3664
- wt("isFullscreen", M(C)),
3665
- wt("isViewportStable", M(g)),
3664
+ wt("isFullscreen", M(g)),
3665
+ wt("isViewportStable", M(F)),
3666
3666
  at(({ isViewportStable: N, ...X }) => N ? q({
3667
3667
  ...X,
3668
3668
  height: window.innerHeight,
@@ -3683,21 +3683,21 @@ class hn {
3683
3683
  },
3684
3684
  isPageReload: r,
3685
3685
  onMounted(k) {
3686
- o(x), u($), i(T), n(D), d.setState(k);
3686
+ o(x), u(R), i(T), n(D), d.setState(k);
3687
3687
  },
3688
3688
  onUnmounted() {
3689
- m(x), p($), l(T), a(D);
3689
+ m(x), p(R), l(T), a(D);
3690
3690
  },
3691
3691
  restoreState: e.get
3692
3692
  }), H = (k) => w(() => this.safeAreaInsets()[k]), bt = (k) => w(() => this.contentSafeAreaInsets()[k]);
3693
3693
  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");
3694
- const Ve = E({ isTma: y, returns: "task" }), te = E({
3695
- isTma: y,
3694
+ const Ve = E({ isTma: S, returns: "task" }), te = E({
3695
+ isTma: S,
3696
3696
  returns: "either"
3697
3697
  }), Te = E({
3698
- isTma: y,
3698
+ isTma: S,
3699
3699
  requires: "web_app_request_fullscreen",
3700
- version: S,
3700
+ version: v,
3701
3701
  returns: "task"
3702
3702
  }), ee = (k) => Te((st) => c(
3703
3703
  _(
@@ -3705,7 +3705,7 @@ class hn {
3705
3705
  ["fullscreen_changed", "fullscreen_failed"],
3706
3706
  st
3707
3707
  ),
3708
- Z((M) => "error" in M && M.error !== "ALREADY_FULLSCREEN" ? L(new er(M.error)) : (d.setState({ isFullscreen: "is_fullscreen" in M ? M.is_fullscreen : !0 }), q(void 0)))
3708
+ 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)))
3709
3709
  ));
3710
3710
  this.isMounted = U.isMounted, this.mountFp = Ve(U.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);
3711
3711
  const gt = j(!1);
@@ -3759,10 +3759,10 @@ function dn() {
3759
3759
  }), e = s("viewport_changed"), r = s("fullscreen_changed"), n = s("safe_area_changed"), i = s("content_safe_area_changed");
3760
3760
  return new hn({
3761
3761
  ...c(
3762
- F(),
3762
+ C(),
3763
3763
  et("viewport"),
3764
- v,
3765
- R,
3764
+ y,
3765
+ L,
3766
3766
  G
3767
3767
  ),
3768
3768
  isFullscreen() {