@tma.js/sdk 3.1.3 → 3.1.4
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/dts/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +3 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +310 -308
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (r, e, s) =>
|
|
1
|
+
var Pe = Object.defineProperty;
|
|
2
|
+
var Oe = (r, e, s) => e in r ? Pe(r, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[e] = s;
|
|
3
|
+
var t = (r, e, s) => Oe(r, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import { batch as Ct, signal as j, computed as F } from "@tma.js/signals";
|
|
5
|
-
import { supports as ot, isTMAFp as
|
|
6
|
-
import { CancelledError as
|
|
7
|
-
import { throwifyFpFn as yt, throwifyAnyEither as le, getStorageValue as
|
|
8
|
-
import { BetterPromise as
|
|
9
|
-
import { toRGBFullFp as
|
|
10
|
-
import { isAnyRGB as
|
|
5
|
+
import { supports as ot, isTMAFp as De, postEventFp as Ue, off as lt, on as Z, requestFp as Ge, request2Fp as je, invokeCustomMethodFp as He, retrieveRawInitDataFp as We, retrieveLaunchParamsFp as vt, captureSameReq as Ke, logger as oe } from "@tma.js/bridge";
|
|
6
|
+
import { CancelledError as ei, InvalidLaunchParamsError as ri, InvokeCustomMethodFailedError as si, LaunchParamsRetrieveError as ni, MethodParameterUnsupportedError as oi, MethodUnsupportedError as ii, TimeoutError as ai, UnknownEnvError as ui, applyPolyfills as ci, createLogger as pi, createPostEvent as li, createStartParam as hi, createStartParamFp as di, debug as fi, decodeBase64Url as _i, decodeBase64UrlFp as mi, decodeStartParam as bi, decodeStartParamFp as gi, deepSnakeToCamelObjKeys as Fi, emitEvent as wi, encodeBase64Url as Ci, getReleaseVersion as vi, isSafeToCreateStartParam as Si, isTMA as yi, isTMAFp as ki, logger as Ii, mockTelegramEnv as Ei, off as Ai, offAll as $i, on as xi, retrieveLaunchParams as qi, retrieveLaunchParamsFp as Bi, retrieveRawInitData as Mi, retrieveRawInitDataFp as Ti, retrieveRawLaunchParams as Vi, retrieveRawLaunchParamsFp as Ri, setDebug as Li, setTargetOrigin as Pi, supports as Oi, targetOrigin as Di } from "@tma.js/bridge";
|
|
7
|
+
import { throwifyFpFn as yt, throwifyAnyEither as le, getStorageValue as Ne, setStorageValue as Qe, snakeToKebab as ze, createCbCollector as Rt, camelToKebab as he, BetterTaskEither as xt } from "@tma.js/toolkit";
|
|
8
|
+
import { BetterPromise as de } from "better-promises";
|
|
9
|
+
import { toRGBFullFp as Je, isRGB as It, pipeQueryToSchema as Ye, pipeJsonToSchema as Ze } from "@tma.js/transformers";
|
|
10
|
+
import { isAnyRGB as Gi, isRGB as ji, isRGBA as Hi, isRGBAShort as Wi, isRGBShort as Ki, parseInitDataQuery as Ni, parseInitDataQueryFp as Qi, parseLaunchParamsQuery as zi, parseLaunchParamsQueryFp as Ji, serializeInitDataQuery as Yi, serializeLaunchParamsQuery as Zi, toRGB as Xi, toRGBFp as ta, toRGBFull as ea, toRGBFullFp as ra } from "@tma.js/transformers";
|
|
11
11
|
import { errorClassWithData as Lt, errorClass as W } from "error-kid";
|
|
12
|
-
import { parse as ie, record as
|
|
13
|
-
var
|
|
12
|
+
import { parse as ie, record as Xe, string as Y, array as tr, safeParse as qt, looseObject as ae, pipe as fe, transform as _e, date as me, optional as er, number as be, integer as rr } from "valibot";
|
|
13
|
+
var sr = function(r, e, s) {
|
|
14
14
|
if (s || arguments.length === 2) for (var n = 0, i = e.length, o; n < i; n++)
|
|
15
15
|
(o || !(n in e)) && (o || (o = Array.prototype.slice.call(e, 0, n)), o[n] = e[n]);
|
|
16
16
|
return r.concat(o || Array.prototype.slice.call(e));
|
|
17
17
|
};
|
|
18
|
-
function
|
|
18
|
+
function ge(r, e, s, n, i, o, u, a, l) {
|
|
19
19
|
switch (arguments.length) {
|
|
20
20
|
case 1:
|
|
21
21
|
return r;
|
|
@@ -87,19 +87,19 @@ var ht = function(r, e) {
|
|
|
87
87
|
return function() {
|
|
88
88
|
var n = Array.from(arguments);
|
|
89
89
|
return s(arguments) ? e.apply(this, n) : function(i) {
|
|
90
|
-
return e.apply(void 0,
|
|
90
|
+
return e.apply(void 0, sr([i], n, !1));
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
},
|
|
93
|
+
}, nr = { _tag: "None" }, or = function(r) {
|
|
94
94
|
return { _tag: "Some", value: r };
|
|
95
|
-
},
|
|
95
|
+
}, ir = function(r) {
|
|
96
96
|
return r._tag === "Left";
|
|
97
|
-
}, ge = function(r) {
|
|
98
|
-
return { _tag: "Left", left: r };
|
|
99
97
|
}, Fe = function(r) {
|
|
98
|
+
return { _tag: "Left", left: r };
|
|
99
|
+
}, we = function(r) {
|
|
100
100
|
return { _tag: "Right", right: r };
|
|
101
101
|
}, Pt = {};
|
|
102
|
-
function
|
|
102
|
+
function ar(r, e) {
|
|
103
103
|
return function(s) {
|
|
104
104
|
return function(n) {
|
|
105
105
|
return r.ap(r.map(n, function(i) {
|
|
@@ -110,7 +110,7 @@ function ir(r, e) {
|
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ur(r, e) {
|
|
114
114
|
return function(s) {
|
|
115
115
|
return function(n) {
|
|
116
116
|
return r.map(n, function(i) {
|
|
@@ -131,47 +131,47 @@ function Ot(r) {
|
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
var M =
|
|
134
|
+
var M = Fe, $ = we, cr = /* @__PURE__ */ ht(2, function(r, e) {
|
|
135
135
|
return st(r) ? r : e(r.right);
|
|
136
136
|
}), Dt = function(r, e) {
|
|
137
137
|
return c(r, D(e));
|
|
138
|
-
},
|
|
139
|
-
return c(r,
|
|
138
|
+
}, Ce = function(r, e) {
|
|
139
|
+
return c(r, dr(e));
|
|
140
140
|
}, Ut = "Either", D = function(r) {
|
|
141
141
|
return function(e) {
|
|
142
142
|
return st(e) ? e : $(r(e.right));
|
|
143
143
|
};
|
|
144
|
-
},
|
|
144
|
+
}, pr = {
|
|
145
145
|
URI: Ut,
|
|
146
146
|
map: Dt
|
|
147
|
-
},
|
|
147
|
+
}, lr = $, hr = function(r) {
|
|
148
148
|
return function(e) {
|
|
149
149
|
return st(e) ? e : st(r) ? r : $(e.right(r.right));
|
|
150
150
|
};
|
|
151
|
-
},
|
|
151
|
+
}, dr = hr, fr = {
|
|
152
152
|
URI: Ut,
|
|
153
153
|
map: Dt,
|
|
154
|
-
ap:
|
|
155
|
-
},
|
|
154
|
+
ap: Ce
|
|
155
|
+
}, _r = {
|
|
156
156
|
URI: Ut,
|
|
157
157
|
map: Dt,
|
|
158
|
-
ap:
|
|
159
|
-
chain:
|
|
160
|
-
},
|
|
158
|
+
ap: Ce,
|
|
159
|
+
chain: cr
|
|
160
|
+
}, mr = function(r, e) {
|
|
161
161
|
return function(s) {
|
|
162
162
|
return st(s) ? M(r(s.left)) : $(e(s.right));
|
|
163
163
|
};
|
|
164
|
-
}, st =
|
|
164
|
+
}, st = ir, ve = function(r, e) {
|
|
165
165
|
return function(s) {
|
|
166
166
|
return st(s) ? r(s.left) : e(s.right);
|
|
167
167
|
};
|
|
168
|
-
}, dt =
|
|
168
|
+
}, dt = ve, br = function(r, e) {
|
|
169
169
|
try {
|
|
170
170
|
return $(r());
|
|
171
171
|
} catch (s) {
|
|
172
172
|
return M(e(s));
|
|
173
173
|
}
|
|
174
|
-
},
|
|
174
|
+
}, gr = /* @__PURE__ */ lr(Pt), Fr = /* @__PURE__ */ Ot(_r), ue = Fr;
|
|
175
175
|
function U(r) {
|
|
176
176
|
return typeof r == "function" ? r() : r;
|
|
177
177
|
}
|
|
@@ -259,39 +259,39 @@ class tt {
|
|
|
259
259
|
function z(r, e) {
|
|
260
260
|
return F(() => ot(r, U(e)));
|
|
261
261
|
}
|
|
262
|
-
var it =
|
|
263
|
-
return c(r,
|
|
264
|
-
},
|
|
265
|
-
return c(r,
|
|
266
|
-
},
|
|
262
|
+
var it = nr, _t = or, wr = function(r, e) {
|
|
263
|
+
return c(r, Sr(e));
|
|
264
|
+
}, Cr = function(r, e) {
|
|
265
|
+
return c(r, kr(e));
|
|
266
|
+
}, vr = "Option", Sr = function(r) {
|
|
267
267
|
return function(e) {
|
|
268
268
|
return pt(e) ? it : _t(r(e.value));
|
|
269
269
|
};
|
|
270
|
-
},
|
|
270
|
+
}, yr = _t, kr = function(r) {
|
|
271
271
|
return function(e) {
|
|
272
272
|
return pt(e) || pt(r) ? it : _t(e.value(r.value));
|
|
273
273
|
};
|
|
274
|
-
},
|
|
274
|
+
}, Ir = /* @__PURE__ */ ht(2, function(r, e) {
|
|
275
275
|
return pt(r) ? it : e(r.value);
|
|
276
|
-
}),
|
|
277
|
-
URI:
|
|
278
|
-
map:
|
|
279
|
-
ap:
|
|
280
|
-
chain:
|
|
276
|
+
}), Er = {
|
|
277
|
+
URI: vr,
|
|
278
|
+
map: wr,
|
|
279
|
+
ap: Cr,
|
|
280
|
+
chain: Ir
|
|
281
281
|
}, pt = function(r) {
|
|
282
282
|
return r._tag === "None";
|
|
283
|
-
},
|
|
283
|
+
}, Ar = function(r, e) {
|
|
284
284
|
return function(s) {
|
|
285
285
|
return pt(s) ? r() : e(s.value);
|
|
286
286
|
};
|
|
287
|
-
},
|
|
287
|
+
}, Se = Ar, $r = /* @__PURE__ */ yr(Pt), ce = /* @__PURE__ */ Ot(Er);
|
|
288
288
|
// @__NO_SIDE_EFFECTS__
|
|
289
289
|
function h(r) {
|
|
290
290
|
return Object.assign(yt(r), {
|
|
291
291
|
ifAvailable(...e) {
|
|
292
292
|
return c(
|
|
293
293
|
r.ifAvailable(...e),
|
|
294
|
-
|
|
294
|
+
Se(
|
|
295
295
|
() => ({ ok: !1 }),
|
|
296
296
|
(s) => ({
|
|
297
297
|
ok: !0,
|
|
@@ -302,31 +302,31 @@ function h(r) {
|
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
function $r(r) {
|
|
306
|
-
return be($, r.of);
|
|
307
|
-
}
|
|
308
305
|
function xr(r) {
|
|
309
|
-
return
|
|
306
|
+
return ge($, r.of);
|
|
310
307
|
}
|
|
311
308
|
function qr(r) {
|
|
312
|
-
return
|
|
309
|
+
return ge(M, r.of);
|
|
313
310
|
}
|
|
314
311
|
function Br(r) {
|
|
315
|
-
return
|
|
312
|
+
return ur(r, pr);
|
|
316
313
|
}
|
|
317
314
|
function Mr(r) {
|
|
315
|
+
return ar(r, fr);
|
|
316
|
+
}
|
|
317
|
+
function Tr(r) {
|
|
318
318
|
return function(e, s) {
|
|
319
319
|
return r.chain(e, function(n) {
|
|
320
320
|
return st(n) ? r.of(n) : s(n.right);
|
|
321
321
|
});
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Vr(r) {
|
|
325
325
|
return function(e, s, n) {
|
|
326
|
-
return r.map(e,
|
|
326
|
+
return r.map(e, mr(s, n));
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Rr(r) {
|
|
330
330
|
return function(e, s) {
|
|
331
331
|
return function(n) {
|
|
332
332
|
return r.map(n, dt(e, s));
|
|
@@ -334,16 +334,16 @@ function Vr(r) {
|
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
336
|
var Gt = function(r, e) {
|
|
337
|
-
return c(r, Rr(e));
|
|
338
|
-
}, Se = function(r, e) {
|
|
339
337
|
return c(r, Lr(e));
|
|
340
|
-
},
|
|
338
|
+
}, ye = function(r, e) {
|
|
339
|
+
return c(r, Pr(e));
|
|
340
|
+
}, Lr = function(r) {
|
|
341
341
|
return function(e) {
|
|
342
342
|
return function() {
|
|
343
343
|
return Promise.resolve().then(e).then(r);
|
|
344
344
|
};
|
|
345
345
|
};
|
|
346
|
-
},
|
|
346
|
+
}, Pr = function(r) {
|
|
347
347
|
return function(e) {
|
|
348
348
|
return function() {
|
|
349
349
|
return Promise.all([Promise.resolve().then(e), Promise.resolve().then(r)]).then(function(s) {
|
|
@@ -356,7 +356,7 @@ var Gt = function(r, e) {
|
|
|
356
356
|
return function() {
|
|
357
357
|
return Promise.resolve(r);
|
|
358
358
|
};
|
|
359
|
-
},
|
|
359
|
+
}, Or = /* @__PURE__ */ ht(2, function(r, e) {
|
|
360
360
|
return function() {
|
|
361
361
|
return Promise.resolve().then(r).then(function(s) {
|
|
362
362
|
return e(s)();
|
|
@@ -365,19 +365,19 @@ var Gt = function(r, e) {
|
|
|
365
365
|
}), Ht = "Task", Wt = {
|
|
366
366
|
URI: Ht,
|
|
367
367
|
map: Gt
|
|
368
|
-
},
|
|
368
|
+
}, ke = {
|
|
369
369
|
of: jt
|
|
370
|
-
},
|
|
370
|
+
}, Dr = {
|
|
371
371
|
URI: Ht,
|
|
372
372
|
map: Gt,
|
|
373
|
-
ap:
|
|
374
|
-
},
|
|
373
|
+
ap: ye
|
|
374
|
+
}, Ur = {
|
|
375
375
|
URI: Ht,
|
|
376
376
|
map: Gt,
|
|
377
377
|
of: jt,
|
|
378
|
-
ap:
|
|
379
|
-
chain:
|
|
380
|
-
},
|
|
378
|
+
ap: ye,
|
|
379
|
+
chain: Or
|
|
380
|
+
}, Gr = function(r, e, s, n) {
|
|
381
381
|
function i(o) {
|
|
382
382
|
return o instanceof s ? o : new s(function(u) {
|
|
383
383
|
u(o);
|
|
@@ -403,7 +403,7 @@ var Gt = function(r, e) {
|
|
|
403
403
|
}
|
|
404
404
|
p((n = n.apply(r, e || [])).next());
|
|
405
405
|
});
|
|
406
|
-
},
|
|
406
|
+
}, jr = function(r, e) {
|
|
407
407
|
var s = { label: 0, sent: function() {
|
|
408
408
|
if (o[0] & 1) throw o[1];
|
|
409
409
|
return o[1];
|
|
@@ -462,18 +462,18 @@ var Gt = function(r, e) {
|
|
|
462
462
|
if (p[0] & 5) throw p[1];
|
|
463
463
|
return { value: p[0] ? p[1] : void 0, done: !0 };
|
|
464
464
|
}
|
|
465
|
-
}, T = /* @__PURE__ */
|
|
465
|
+
}, T = /* @__PURE__ */ qr(ke), x = /* @__PURE__ */ xr(ke), Ie = jt, Hr = /* @__PURE__ */ Rr(Wt), Wr = function(r, e) {
|
|
466
466
|
return function() {
|
|
467
|
-
return
|
|
467
|
+
return Gr(void 0, void 0, void 0, function() {
|
|
468
468
|
var s;
|
|
469
|
-
return
|
|
469
|
+
return jr(this, function(n) {
|
|
470
470
|
switch (n.label) {
|
|
471
471
|
case 0:
|
|
472
|
-
return n.trys.push([0, 2, , 3]), [4, r().then(
|
|
472
|
+
return n.trys.push([0, 2, , 3]), [4, r().then(we)];
|
|
473
473
|
case 1:
|
|
474
474
|
return [2, n.sent()];
|
|
475
475
|
case 2:
|
|
476
|
-
return s = n.sent(), [2,
|
|
476
|
+
return s = n.sent(), [2, Fe(e(s))];
|
|
477
477
|
case 3:
|
|
478
478
|
return [
|
|
479
479
|
2
|
|
@@ -483,16 +483,16 @@ var Gt = function(r, e) {
|
|
|
483
483
|
});
|
|
484
484
|
});
|
|
485
485
|
};
|
|
486
|
-
}, Wr = function(r, e) {
|
|
487
|
-
return c(r, k(e));
|
|
488
486
|
}, Kr = function(r, e) {
|
|
489
|
-
return c(r,
|
|
490
|
-
},
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
487
|
+
return c(r, k(e));
|
|
488
|
+
}, Nr = function(r, e) {
|
|
489
|
+
return c(r, Qr(e));
|
|
490
|
+
}, k = /* @__PURE__ */ Br(Wt), Kt = /* @__PURE__ */ ht(3, Vr(Wt)), Qr = /* @__PURE__ */ Mr(Dr), Nt = /* @__PURE__ */ ht(2, Tr(Ur)), zr = x, Jr = "TaskEither", Yr = {
|
|
491
|
+
URI: Jr,
|
|
492
|
+
map: Kr,
|
|
493
|
+
ap: Nr,
|
|
494
494
|
chain: Nt
|
|
495
|
-
},
|
|
495
|
+
}, Zr = /* @__PURE__ */ zr(Pt), Xr = /* @__PURE__ */ Ot(Yr), Ft = Xr, K = Nt, at = Nt;
|
|
496
496
|
function nt(r) {
|
|
497
497
|
return [r];
|
|
498
498
|
}
|
|
@@ -507,11 +507,11 @@ class Qt extends (/* @__PURE__ */ W(
|
|
|
507
507
|
"CSS variables are already bound"
|
|
508
508
|
)) {
|
|
509
509
|
}
|
|
510
|
-
class
|
|
510
|
+
class ts extends (/* @__PURE__ */ Lt("DeviceStorageMethodError", (e) => ({ error: e }), (e) => [e])) {
|
|
511
511
|
}
|
|
512
|
-
class
|
|
512
|
+
class es extends (/* @__PURE__ */ Lt("SecureStorageMethodError", (e) => ({ error: e }), (e) => [e])) {
|
|
513
513
|
}
|
|
514
|
-
class
|
|
514
|
+
class rs extends (/* @__PURE__ */ W(
|
|
515
515
|
"NotAvailableError",
|
|
516
516
|
nt
|
|
517
517
|
)) {
|
|
@@ -521,7 +521,7 @@ class po extends (/* @__PURE__ */ W(
|
|
|
521
521
|
nt
|
|
522
522
|
)) {
|
|
523
523
|
}
|
|
524
|
-
class
|
|
524
|
+
class ss extends (/* @__PURE__ */ W(
|
|
525
525
|
"FunctionNotAvailableError",
|
|
526
526
|
nt
|
|
527
527
|
)) {
|
|
@@ -536,27 +536,27 @@ class zt extends (/* @__PURE__ */ W(
|
|
|
536
536
|
nt
|
|
537
537
|
)) {
|
|
538
538
|
}
|
|
539
|
-
class
|
|
539
|
+
class ns extends (/* @__PURE__ */ W(
|
|
540
540
|
"SetEmojiStatusError",
|
|
541
541
|
(e) => [`Failed to set emoji status: ${e}`]
|
|
542
542
|
)) {
|
|
543
543
|
}
|
|
544
|
-
class
|
|
544
|
+
class Ee extends (/* @__PURE__ */ W(
|
|
545
545
|
"AccessDeniedError",
|
|
546
546
|
nt
|
|
547
547
|
)) {
|
|
548
548
|
}
|
|
549
|
-
class
|
|
549
|
+
class os extends (/* @__PURE__ */ W(
|
|
550
550
|
"FullscreenFailedError",
|
|
551
551
|
nt
|
|
552
552
|
)) {
|
|
553
553
|
}
|
|
554
|
-
class
|
|
554
|
+
class is extends (/* @__PURE__ */ W(
|
|
555
555
|
"ShareMessageError",
|
|
556
556
|
nt
|
|
557
557
|
)) {
|
|
558
558
|
}
|
|
559
|
-
class
|
|
559
|
+
class as extends (/* @__PURE__ */ W(
|
|
560
560
|
"UnknownThemeParamsKeyError",
|
|
561
561
|
(e) => [`Unknown theme params key passed: ${e}`]
|
|
562
562
|
)) {
|
|
@@ -583,9 +583,9 @@ function A(r, e) {
|
|
|
583
583
|
}, m = F(() => !l()), d = F(() => s() !== "0.0"), w = F(() => e.isMounted ? e.isMounted() : !0), g = F(
|
|
584
584
|
() => n() && d() && m() && w()
|
|
585
585
|
), v = (_) => {
|
|
586
|
-
const b = new
|
|
586
|
+
const b = new ss(_);
|
|
587
587
|
return ["task", "promise"].includes(e.returns) ? T(b) : M(b);
|
|
588
|
-
}, S = (..._) => o === "plain" ?
|
|
588
|
+
}, S = (..._) => o === "plain" ? br(() => r(..._), (b) => b) : o === "promise" ? Wr(() => r(..._), (b) => b) : r(..._);
|
|
589
589
|
return Object.assign(
|
|
590
590
|
(..._) => {
|
|
591
591
|
var L;
|
|
@@ -761,7 +761,7 @@ class kt {
|
|
|
761
761
|
return F(() => this.state()[e]);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
class
|
|
764
|
+
class us {
|
|
765
765
|
constructor(e) {
|
|
766
766
|
/**
|
|
767
767
|
* Signal indicating if the component is currently visible.
|
|
@@ -854,7 +854,7 @@ class as {
|
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
function C() {
|
|
857
|
-
return { isTma: F(() =>
|
|
857
|
+
return { isTma: F(() => De()) };
|
|
858
858
|
}
|
|
859
859
|
function ut(r) {
|
|
860
860
|
return (e) => ({ ...e, ...U(r) });
|
|
@@ -863,28 +863,28 @@ function ut(r) {
|
|
|
863
863
|
function mt(r, e) {
|
|
864
864
|
return j(r, e);
|
|
865
865
|
}
|
|
866
|
-
const
|
|
866
|
+
const Ae = /* @__PURE__ */ mt(Ue), ct = (...r) => Ae()(...r), cs = (...r) => le(ct(...r)), R = ut({
|
|
867
867
|
postEvent: ct
|
|
868
868
|
});
|
|
869
|
-
function
|
|
869
|
+
function ps(r) {
|
|
870
870
|
return {
|
|
871
|
-
get: () =>
|
|
871
|
+
get: () => Ne(r),
|
|
872
872
|
set(e) {
|
|
873
|
-
|
|
873
|
+
Qe(r, e);
|
|
874
874
|
}
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function ls() {
|
|
878
878
|
return performance.getEntriesByType("navigation")[0];
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
const r =
|
|
880
|
+
function hs() {
|
|
881
|
+
const r = ls();
|
|
882
882
|
return !!r && r.type === "reload";
|
|
883
883
|
}
|
|
884
884
|
function et(r) {
|
|
885
885
|
return ut({
|
|
886
|
-
storage:
|
|
887
|
-
isPageReload:
|
|
886
|
+
storage: ps(r),
|
|
887
|
+
isPageReload: hs
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
890
|
const Mt = /* @__PURE__ */ mt("0.0"), y = ut({ version: Mt });
|
|
@@ -905,7 +905,7 @@ function Jt(r, e) {
|
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
const lo = /* @__PURE__ */ new
|
|
908
|
+
const lo = /* @__PURE__ */ new us(
|
|
909
909
|
/* @__PURE__ */ Jt("backButton", "back_button_pressed")
|
|
910
910
|
);
|
|
911
911
|
class Yt {
|
|
@@ -950,13 +950,13 @@ class Yt {
|
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
function pe() {
|
|
953
|
-
return new
|
|
953
|
+
return new rs("Biometry is not available");
|
|
954
954
|
}
|
|
955
955
|
function At(r) {
|
|
956
956
|
let e = !1, s = !1, n = "", i = !1, o = "", u = !1;
|
|
957
957
|
return r.available && (e = !0, s = r.token_saved, n = r.device_id, i = r.access_requested, o = r.type, u = r.access_granted), { available: e, tokenSaved: s, deviceId: n, type: o, accessGranted: u, accessRequested: i };
|
|
958
958
|
}
|
|
959
|
-
class
|
|
959
|
+
class ds {
|
|
960
960
|
constructor({
|
|
961
961
|
version: e,
|
|
962
962
|
request: s,
|
|
@@ -1119,15 +1119,15 @@ class hs {
|
|
|
1119
1119
|
}), this.authenticate = /* @__PURE__ */ h(this.authenticateFp), this.openSettings = /* @__PURE__ */ h(this.openSettingsFp), this.requestAccess = /* @__PURE__ */ h(this.requestAccessFp), this.updateToken = /* @__PURE__ */ h(this.updateTokenFp), this.mount = /* @__PURE__ */ h(this.mountFp);
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const fs = (r, e, s) => Ge(r, e, {
|
|
1123
1123
|
postEvent: ct,
|
|
1124
1124
|
...s
|
|
1125
|
-
}),
|
|
1125
|
+
}), $e = (r, e, s) => je(r, e, {
|
|
1126
1126
|
postEvent: ct,
|
|
1127
1127
|
...s
|
|
1128
|
-
}), ho = (...r) =>
|
|
1128
|
+
}), ho = (...r) => de.fn(() => fs(...r)()), fo = (...r) => de.fn(() => $e(...r)()), P = ut({ request: $e });
|
|
1129
1129
|
function _s() {
|
|
1130
|
-
return new
|
|
1130
|
+
return new ds({
|
|
1131
1131
|
...c(
|
|
1132
1132
|
C(),
|
|
1133
1133
|
R,
|
|
@@ -1143,7 +1143,7 @@ function _s() {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const _o = /* @__PURE__ */ _s();
|
|
1147
1147
|
class ms {
|
|
1148
1148
|
constructor({ postEvent: e, storage: s, isTma: n, isPageReload: i }) {
|
|
1149
1149
|
/**
|
|
@@ -1216,7 +1216,7 @@ function bs() {
|
|
|
1216
1216
|
R
|
|
1217
1217
|
));
|
|
1218
1218
|
}
|
|
1219
|
-
const
|
|
1219
|
+
const mo = /* @__PURE__ */ bs();
|
|
1220
1220
|
class gs {
|
|
1221
1221
|
constructor({ version: e, isTma: s, invokeCustomMethod: n }) {
|
|
1222
1222
|
/**
|
|
@@ -1309,11 +1309,11 @@ class gs {
|
|
|
1309
1309
|
k((a) => ({
|
|
1310
1310
|
// Fulfill the response with probably missing keys.
|
|
1311
1311
|
...o.reduce((l, p) => (l[p] = "", l), {}),
|
|
1312
|
-
...ie(
|
|
1312
|
+
...ie(Xe(Y(), Y()), a)
|
|
1313
1313
|
}))
|
|
1314
1314
|
)), this.getKeysFp = i((o) => c(
|
|
1315
1315
|
n("getStorageKeys", {}, o),
|
|
1316
|
-
k((u) => ie(
|
|
1316
|
+
k((u) => ie(tr(Y()), u))
|
|
1317
1317
|
)), this.setItemFp = i((o, u, a) => c(
|
|
1318
1318
|
n("saveStorageValue", { key: o, value: u }, a),
|
|
1319
1319
|
k(() => {
|
|
@@ -1326,7 +1326,7 @@ function Zt() {
|
|
|
1326
1326
|
return $t.set($t() + 1), $t().toString();
|
|
1327
1327
|
}
|
|
1328
1328
|
function Fs(r, e, s) {
|
|
1329
|
-
return
|
|
1329
|
+
return He(r, e, Zt(), {
|
|
1330
1330
|
...s || {},
|
|
1331
1331
|
postEvent: ct
|
|
1332
1332
|
});
|
|
@@ -1341,7 +1341,7 @@ function ws() {
|
|
|
1341
1341
|
Xt
|
|
1342
1342
|
));
|
|
1343
1343
|
}
|
|
1344
|
-
const
|
|
1344
|
+
const bo = /* @__PURE__ */ ws();
|
|
1345
1345
|
class Cs {
|
|
1346
1346
|
constructor({ isTma: e, request: s, version: n, createRequestId: i }) {
|
|
1347
1347
|
/**
|
|
@@ -1392,7 +1392,7 @@ class Cs {
|
|
|
1392
1392
|
params: { ...p, req_id: m },
|
|
1393
1393
|
capture: (d) => "payload" in d ? d.payload.req_id === m : !0
|
|
1394
1394
|
}),
|
|
1395
|
-
K((d) => d.event === "device_storage_failed" ? T(new
|
|
1395
|
+
K((d) => d.event === "device_storage_failed" ? T(new ts(d.payload.error || "UNKNOWN_ERROR")) : x(d.payload))
|
|
1396
1396
|
);
|
|
1397
1397
|
};
|
|
1398
1398
|
this.getItemFp = o((a) => c(
|
|
@@ -1409,16 +1409,16 @@ class Cs {
|
|
|
1409
1409
|
)), this.getItem = /* @__PURE__ */ h(this.getItemFp), this.setItem = /* @__PURE__ */ h(this.setItemFp), this.deleteItem = /* @__PURE__ */ h(this.deleteItemFp), this.clear = /* @__PURE__ */ h(this.clearFp);
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
|
-
const
|
|
1412
|
+
const xe = ut({ createRequestId: Zt });
|
|
1413
1413
|
function vs() {
|
|
1414
1414
|
return new Cs(c(
|
|
1415
1415
|
C(),
|
|
1416
1416
|
y,
|
|
1417
1417
|
P,
|
|
1418
|
-
|
|
1418
|
+
xe
|
|
1419
1419
|
));
|
|
1420
1420
|
}
|
|
1421
|
-
const
|
|
1421
|
+
const go = /* @__PURE__ */ vs();
|
|
1422
1422
|
function Ss({ request: r, ...e }) {
|
|
1423
1423
|
return A((s) => c(
|
|
1424
1424
|
r("web_app_request_emoji_status_access", "emoji_status_access_requested", s),
|
|
@@ -1433,7 +1433,7 @@ function ys() {
|
|
|
1433
1433
|
P
|
|
1434
1434
|
));
|
|
1435
1435
|
}
|
|
1436
|
-
const ks = /* @__PURE__ */ ys(),
|
|
1436
|
+
const ks = /* @__PURE__ */ ys(), Fo = /* @__PURE__ */ h(ks);
|
|
1437
1437
|
function Is({ request: r, ...e }) {
|
|
1438
1438
|
return A((s, n) => c(
|
|
1439
1439
|
r("web_app_set_emoji_status", ["emoji_status_set", "emoji_status_failed"], {
|
|
@@ -1443,7 +1443,7 @@ function Is({ request: r, ...e }) {
|
|
|
1443
1443
|
},
|
|
1444
1444
|
...n
|
|
1445
1445
|
}),
|
|
1446
|
-
at((i) => i.event === "emoji_status_failed" ? T(new
|
|
1446
|
+
at((i) => i.event === "emoji_status_failed" ? T(new ns(i.payload.error)) : x(void 0))
|
|
1447
1447
|
), {
|
|
1448
1448
|
...e,
|
|
1449
1449
|
requires: "web_app_set_emoji_status",
|
|
@@ -1458,7 +1458,7 @@ function Es() {
|
|
|
1458
1458
|
y
|
|
1459
1459
|
));
|
|
1460
1460
|
}
|
|
1461
|
-
const As = /* @__PURE__ */ Es(),
|
|
1461
|
+
const As = /* @__PURE__ */ Es(), wo = /* @__PURE__ */ h(As);
|
|
1462
1462
|
class $s {
|
|
1463
1463
|
constructor({ postEvent: e, isTma: s, version: n }) {
|
|
1464
1464
|
/**
|
|
@@ -1517,7 +1517,7 @@ function xs() {
|
|
|
1517
1517
|
y
|
|
1518
1518
|
));
|
|
1519
1519
|
}
|
|
1520
|
-
const
|
|
1520
|
+
const Co = /* @__PURE__ */ xs();
|
|
1521
1521
|
function qs({ postEvent: r, ...e }) {
|
|
1522
1522
|
return A(() => r("web_app_add_to_home_screen"), { ...e, requires: "web_app_add_to_home_screen", returns: "either" });
|
|
1523
1523
|
}
|
|
@@ -1529,7 +1529,7 @@ function Bs() {
|
|
|
1529
1529
|
R
|
|
1530
1530
|
));
|
|
1531
1531
|
}
|
|
1532
|
-
const Ms = /* @__PURE__ */ Bs(),
|
|
1532
|
+
const Ms = /* @__PURE__ */ Bs(), vo = /* @__PURE__ */ h(Ms);
|
|
1533
1533
|
function Ts({ request: r, ...e }) {
|
|
1534
1534
|
return A((s) => c(
|
|
1535
1535
|
r("web_app_check_home_screen", "home_screen_checked", s),
|
|
@@ -1544,7 +1544,7 @@ function Vs() {
|
|
|
1544
1544
|
P
|
|
1545
1545
|
));
|
|
1546
1546
|
}
|
|
1547
|
-
const Rs = /* @__PURE__ */ Vs(),
|
|
1547
|
+
const Rs = /* @__PURE__ */ Vs(), So = /* @__PURE__ */ h(Rs);
|
|
1548
1548
|
class Ls {
|
|
1549
1549
|
constructor({ retrieveInitData: e }) {
|
|
1550
1550
|
t(this, "_state", j());
|
|
@@ -1619,7 +1619,7 @@ class Ls {
|
|
|
1619
1619
|
t(this, "restore");
|
|
1620
1620
|
this.restoreFp = () => c(
|
|
1621
1621
|
e(),
|
|
1622
|
-
D(
|
|
1622
|
+
D(Se(() => {
|
|
1623
1623
|
}, ({ raw: s, obj: n }) => {
|
|
1624
1624
|
this._state.set(n), this._raw.set(s);
|
|
1625
1625
|
}))
|
|
@@ -1636,14 +1636,14 @@ function Ps() {
|
|
|
1636
1636
|
return new Ls({
|
|
1637
1637
|
retrieveInitData() {
|
|
1638
1638
|
return c(
|
|
1639
|
-
|
|
1639
|
+
gr,
|
|
1640
1640
|
ue("obj", () => c(
|
|
1641
1641
|
vt(),
|
|
1642
1642
|
D(({ tgWebAppData: r }) => r ? _t(r) : it)
|
|
1643
1643
|
)),
|
|
1644
|
-
ue("raw",
|
|
1644
|
+
ue("raw", We),
|
|
1645
1645
|
D(({ obj: r, raw: e }) => c(
|
|
1646
|
-
|
|
1646
|
+
$r,
|
|
1647
1647
|
ce("obj", () => r),
|
|
1648
1648
|
ce("raw", () => e)
|
|
1649
1649
|
))
|
|
@@ -1651,7 +1651,7 @@ function Ps() {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
});
|
|
1653
1653
|
}
|
|
1654
|
-
const
|
|
1654
|
+
const yo = /* @__PURE__ */ Ps();
|
|
1655
1655
|
class Os {
|
|
1656
1656
|
constructor({ version: e, request: s, isTma: n }) {
|
|
1657
1657
|
/**
|
|
@@ -1718,7 +1718,7 @@ class Os {
|
|
|
1718
1718
|
function Ds() {
|
|
1719
1719
|
return new Os(c(C(), P, y));
|
|
1720
1720
|
}
|
|
1721
|
-
const
|
|
1721
|
+
const ko = /* @__PURE__ */ Ds();
|
|
1722
1722
|
function Us({ postEvent: r, ...e }) {
|
|
1723
1723
|
return A((s, n = {}) => {
|
|
1724
1724
|
if (typeof s == "string")
|
|
@@ -1738,7 +1738,7 @@ function Us({ postEvent: r, ...e }) {
|
|
|
1738
1738
|
function Gs() {
|
|
1739
1739
|
return Us(c(C(), R));
|
|
1740
1740
|
}
|
|
1741
|
-
const js = /* @__PURE__ */ Gs(),
|
|
1741
|
+
const js = /* @__PURE__ */ Gs(), Io = /* @__PURE__ */ h(js);
|
|
1742
1742
|
function Hs({ postEvent: r, version: e, ...s }) {
|
|
1743
1743
|
return A((n) => {
|
|
1744
1744
|
const i = n.toString();
|
|
@@ -1753,7 +1753,7 @@ function Ws() {
|
|
|
1753
1753
|
y
|
|
1754
1754
|
));
|
|
1755
1755
|
}
|
|
1756
|
-
const
|
|
1756
|
+
const qe = /* @__PURE__ */ Ws(), Eo = /* @__PURE__ */ h(qe);
|
|
1757
1757
|
function Ks({ openTelegramLink: r, ...e }) {
|
|
1758
1758
|
return A((s, n) => r(
|
|
1759
1759
|
"https://t.me/share/url?" + new URLSearchParams({ url: s, text: n || "" }).toString().replace(/\+/g, "%20")
|
|
@@ -1763,10 +1763,10 @@ function Ks({ openTelegramLink: r, ...e }) {
|
|
|
1763
1763
|
function Ns() {
|
|
1764
1764
|
return Ks({
|
|
1765
1765
|
...C(),
|
|
1766
|
-
openTelegramLink:
|
|
1766
|
+
openTelegramLink: qe
|
|
1767
1767
|
});
|
|
1768
1768
|
}
|
|
1769
|
-
const Qs = /* @__PURE__ */ Ns(),
|
|
1769
|
+
const Qs = /* @__PURE__ */ Ns(), Ao = /* @__PURE__ */ h(Qs);
|
|
1770
1770
|
function zs(r) {
|
|
1771
1771
|
let e = !1, s, n;
|
|
1772
1772
|
return r.available && (e = !0, s = r.access_requested, n = r.access_granted), {
|
|
@@ -1892,7 +1892,7 @@ function Ys() {
|
|
|
1892
1892
|
et("locationManager")
|
|
1893
1893
|
));
|
|
1894
1894
|
}
|
|
1895
|
-
const
|
|
1895
|
+
const $o = /* @__PURE__ */ Ys();
|
|
1896
1896
|
class Zs {
|
|
1897
1897
|
constructor({ defaults: e, ...s }) {
|
|
1898
1898
|
//#region Properties.
|
|
@@ -2127,7 +2127,7 @@ function ee(r) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
function Xs(r) {
|
|
2129
2129
|
return c(
|
|
2130
|
-
|
|
2130
|
+
Je(r),
|
|
2131
2131
|
D((e) => Math.sqrt(
|
|
2132
2132
|
[0.299, 0.587, 0.114].reduce((s, n, i) => {
|
|
2133
2133
|
const o = parseInt(e.slice(1 + i * 2, 1 + (i + 1) * 2), 16);
|
|
@@ -2136,7 +2136,7 @@ function Xs(r) {
|
|
|
2136
2136
|
) < 120)
|
|
2137
2137
|
);
|
|
2138
2138
|
}
|
|
2139
|
-
const
|
|
2139
|
+
const Be = yt(Xs);
|
|
2140
2140
|
class tn {
|
|
2141
2141
|
constructor({
|
|
2142
2142
|
initialState: e,
|
|
@@ -2226,7 +2226,7 @@ class tn {
|
|
|
2226
2226
|
*/
|
|
2227
2227
|
t(this, "isDark", F(() => {
|
|
2228
2228
|
const e = this.bgColor();
|
|
2229
|
-
return !e ||
|
|
2229
|
+
return !e || Be(e);
|
|
2230
2230
|
}));
|
|
2231
2231
|
//#endregion
|
|
2232
2232
|
//#region Mounting.
|
|
@@ -2268,7 +2268,7 @@ class tn {
|
|
|
2268
2268
|
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 = p.isMounted, this.bindCssVarsFp = w((g) => {
|
|
2269
2269
|
if (this._isCssVarsBound())
|
|
2270
2270
|
return M(new Qt());
|
|
2271
|
-
g || (g = (_) => `--tg-theme-${
|
|
2271
|
+
g || (g = (_) => `--tg-theme-${ze(_)}`);
|
|
2272
2272
|
const v = (_) => {
|
|
2273
2273
|
Object.entries(a.state()).forEach(([b, f]) => {
|
|
2274
2274
|
f && _(b, f);
|
|
@@ -2303,14 +2303,14 @@ function en() {
|
|
|
2303
2303
|
}
|
|
2304
2304
|
const St = /* @__PURE__ */ en();
|
|
2305
2305
|
// @__NO_SIDE_EFFECTS__
|
|
2306
|
-
function
|
|
2306
|
+
function Me(r, e, s) {
|
|
2307
2307
|
return c(
|
|
2308
2308
|
/* @__PURE__ */ Jt(r, e),
|
|
2309
2309
|
(n) => ({ ...n, defaults: s })
|
|
2310
2310
|
);
|
|
2311
2311
|
}
|
|
2312
|
-
const
|
|
2313
|
-
/* @__PURE__ */
|
|
2312
|
+
const xo = /* @__PURE__ */ new Zs(
|
|
2313
|
+
/* @__PURE__ */ Me("mainButton", "main_button_pressed", {
|
|
2314
2314
|
bgColor: F(() => St.buttonColor() || "#2481cc"),
|
|
2315
2315
|
textColor: F(() => St.buttonTextColor() || "#ffffff")
|
|
2316
2316
|
})
|
|
@@ -2336,7 +2336,7 @@ class rn {
|
|
|
2336
2336
|
*/
|
|
2337
2337
|
t(this, "isDark", F(() => {
|
|
2338
2338
|
const e = this.bgColorRgb();
|
|
2339
|
-
return e ?
|
|
2339
|
+
return e ? Be(e) : !1;
|
|
2340
2340
|
}));
|
|
2341
2341
|
/**
|
|
2342
2342
|
* Signal indicating if the mini app is currently active.
|
|
@@ -2579,7 +2579,7 @@ class rn {
|
|
|
2579
2579
|
);
|
|
2580
2580
|
const N = g(O);
|
|
2581
2581
|
return c(
|
|
2582
|
-
N ? i(V, { color: N }) : M(new
|
|
2582
|
+
N ? i(V, { color: N }) : M(new as(O)),
|
|
2583
2583
|
D(() => {
|
|
2584
2584
|
w.setState({ [f]: O });
|
|
2585
2585
|
})
|
|
@@ -2717,7 +2717,7 @@ class an {
|
|
|
2717
2717
|
});
|
|
2718
2718
|
this.isSupported = z("web_app_open_popup", e), this.isOpened = F(i), this.showFp = u((a) => c(
|
|
2719
2719
|
this.isOpened() ? T(new zt("A popup is already opened")) : x(void 0),
|
|
2720
|
-
at(() =>
|
|
2720
|
+
at(() => Ie(on(a))),
|
|
2721
2721
|
K((l) => (i.set(!0), n("web_app_open_popup", "popup_closed", {
|
|
2722
2722
|
...a,
|
|
2723
2723
|
params: l
|
|
@@ -2732,7 +2732,7 @@ class an {
|
|
|
2732
2732
|
function un() {
|
|
2733
2733
|
return new an(c(C(), P, y));
|
|
2734
2734
|
}
|
|
2735
|
-
const
|
|
2735
|
+
const qo = /* @__PURE__ */ un();
|
|
2736
2736
|
function cn({ request: r, ...e }) {
|
|
2737
2737
|
return A((s) => c(
|
|
2738
2738
|
r("web_app_request_phone", "phone_requested", s),
|
|
@@ -2747,7 +2747,7 @@ function pn() {
|
|
|
2747
2747
|
P
|
|
2748
2748
|
));
|
|
2749
2749
|
}
|
|
2750
|
-
const
|
|
2750
|
+
const Te = /* @__PURE__ */ pn(), Bo = /* @__PURE__ */ h(Te);
|
|
2751
2751
|
function ln({
|
|
2752
2752
|
invokeCustomMethod: r,
|
|
2753
2753
|
requestPhoneAccess: e,
|
|
@@ -2765,18 +2765,18 @@ function ln({
|
|
|
2765
2765
|
if (!l.output)
|
|
2766
2766
|
return x(void 0);
|
|
2767
2767
|
const p = qt(
|
|
2768
|
-
|
|
2768
|
+
Ye(
|
|
2769
2769
|
ae({
|
|
2770
|
-
contact:
|
|
2771
|
-
user_id:
|
|
2770
|
+
contact: Ze(ae({
|
|
2771
|
+
user_id: be(),
|
|
2772
2772
|
phone_number: Y(),
|
|
2773
2773
|
first_name: Y(),
|
|
2774
|
-
last_name:
|
|
2774
|
+
last_name: er(Y())
|
|
2775
2775
|
})),
|
|
2776
|
-
auth_date:
|
|
2776
|
+
auth_date: fe(
|
|
2777
2777
|
Y(),
|
|
2778
|
-
|
|
2779
|
-
|
|
2778
|
+
_e((m) => new Date(Number(m) * 1e3)),
|
|
2779
|
+
me()
|
|
2780
2780
|
),
|
|
2781
2781
|
hash: Y()
|
|
2782
2782
|
})
|
|
@@ -2787,7 +2787,7 @@ function ln({
|
|
|
2787
2787
|
})
|
|
2788
2788
|
), i = (u) => c(
|
|
2789
2789
|
n(u),
|
|
2790
|
-
|
|
2790
|
+
Hr(
|
|
2791
2791
|
// All other errors except validation ones should be ignored. Receiving validation error
|
|
2792
2792
|
// means that we have some data, but we are unable to parse it properly. So, there is no
|
|
2793
2793
|
// need to make some more requests further, the problem is local.
|
|
@@ -2813,7 +2813,7 @@ function ln({
|
|
|
2813
2813
|
i(a),
|
|
2814
2814
|
K((l) => l ? x(l) : c(
|
|
2815
2815
|
e(a),
|
|
2816
|
-
at((p) => p === "sent" ? o(a) : T(new
|
|
2816
|
+
at((p) => p === "sent" ? o(a) : T(new Ee("User denied access")))
|
|
2817
2817
|
))
|
|
2818
2818
|
), u), { ...s, returns: "task", requires: "web_app_request_phone" });
|
|
2819
2819
|
}
|
|
@@ -2821,7 +2821,7 @@ function ln({
|
|
|
2821
2821
|
function hn() {
|
|
2822
2822
|
return ln({
|
|
2823
2823
|
...c(C(), Xt, y),
|
|
2824
|
-
requestPhoneAccess:
|
|
2824
|
+
requestPhoneAccess: Te
|
|
2825
2825
|
});
|
|
2826
2826
|
}
|
|
2827
2827
|
function dn({ requestContact: r, ...e }) {
|
|
@@ -2836,13 +2836,13 @@ function fn() {
|
|
|
2836
2836
|
...c(C(), y),
|
|
2837
2837
|
requestContact(r) {
|
|
2838
2838
|
return c(
|
|
2839
|
-
|
|
2839
|
+
Ve(r),
|
|
2840
2840
|
k((e) => e.parsed)
|
|
2841
2841
|
);
|
|
2842
2842
|
}
|
|
2843
2843
|
});
|
|
2844
2844
|
}
|
|
2845
|
-
const
|
|
2845
|
+
const Ve = /* @__PURE__ */ hn(), Mo = /* @__PURE__ */ h(Ve), _n = /* @__PURE__ */ fn(), To = /* @__PURE__ */ h(_n);
|
|
2846
2846
|
function mn({ request: r, ...e }) {
|
|
2847
2847
|
return A((s) => c(
|
|
2848
2848
|
r("web_app_request_write_access", "write_access_requested", s),
|
|
@@ -2857,7 +2857,7 @@ function bn() {
|
|
|
2857
2857
|
P
|
|
2858
2858
|
));
|
|
2859
2859
|
}
|
|
2860
|
-
const gn = /* @__PURE__ */ bn(),
|
|
2860
|
+
const gn = /* @__PURE__ */ bn(), Vo = /* @__PURE__ */ h(gn);
|
|
2861
2861
|
class Fn {
|
|
2862
2862
|
constructor({
|
|
2863
2863
|
version: e,
|
|
@@ -2995,7 +2995,7 @@ function wn() {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
});
|
|
2997
2997
|
}
|
|
2998
|
-
const
|
|
2998
|
+
const Ro = /* @__PURE__ */ wn();
|
|
2999
2999
|
class Cn {
|
|
3000
3000
|
constructor({ defaults: e, ...s }) {
|
|
3001
3001
|
//#region Properties.
|
|
@@ -3260,13 +3260,13 @@ class Cn {
|
|
|
3260
3260
|
}
|
|
3261
3261
|
function vn() {
|
|
3262
3262
|
return new Cn(
|
|
3263
|
-
/* @__PURE__ */
|
|
3263
|
+
/* @__PURE__ */ Me("secondaryButton", "secondary_button_pressed", {
|
|
3264
3264
|
bgColor: F(() => nn.bottomBarColorRgb() || "#000000"),
|
|
3265
3265
|
textColor: F(() => St.buttonColor() || "#2481cc")
|
|
3266
3266
|
})
|
|
3267
3267
|
);
|
|
3268
3268
|
}
|
|
3269
|
-
const
|
|
3269
|
+
const Lo = /* @__PURE__ */ vn();
|
|
3270
3270
|
class Sn {
|
|
3271
3271
|
constructor({ isTma: e, request: s, version: n, createRequestId: i }) {
|
|
3272
3272
|
/**
|
|
@@ -3326,7 +3326,7 @@ class Sn {
|
|
|
3326
3326
|
params: { ...p, req_id: m },
|
|
3327
3327
|
capture: (d) => "payload" in d ? d.payload.req_id === m : !0
|
|
3328
3328
|
}),
|
|
3329
|
-
K((d) => d.event === "secure_storage_failed" ? T(new
|
|
3329
|
+
K((d) => d.event === "secure_storage_failed" ? T(new es(d.payload.error || "UNKNOWN_ERROR")) : x(d.payload))
|
|
3330
3330
|
);
|
|
3331
3331
|
};
|
|
3332
3332
|
this.getItemFp = o((a) => c(
|
|
@@ -3354,10 +3354,10 @@ function yn() {
|
|
|
3354
3354
|
C(),
|
|
3355
3355
|
y,
|
|
3356
3356
|
P,
|
|
3357
|
-
|
|
3357
|
+
xe
|
|
3358
3358
|
));
|
|
3359
3359
|
}
|
|
3360
|
-
const
|
|
3360
|
+
const Po = /* @__PURE__ */ yn();
|
|
3361
3361
|
class kn {
|
|
3362
3362
|
constructor(e) {
|
|
3363
3363
|
/**
|
|
@@ -3450,7 +3450,7 @@ class kn {
|
|
|
3450
3450
|
this.isVisible = s.stateGetter("isVisible"), this.isMounted = s.isMounted, this.isSupported = s.isSupported, [[this.hide, this.hideFp], [this.show, this.showFp]] = s.stateBoolSetters("isVisible"), this.onClick = s.onClick, this.onClickFp = s.onClickFp, this.offClick = s.offClick, this.offClickFp = s.offClickFp, this.mount = s.mount, this.mountFp = s.mountFp, this.unmount = s.unmount;
|
|
3451
3451
|
}
|
|
3452
3452
|
}
|
|
3453
|
-
const
|
|
3453
|
+
const Oo = /* @__PURE__ */ new kn(
|
|
3454
3454
|
/* @__PURE__ */ Jt("settingsButton", "settings_button_pressed")
|
|
3455
3455
|
);
|
|
3456
3456
|
class In {
|
|
@@ -3539,8 +3539,8 @@ function En() {
|
|
|
3539
3539
|
et("swipeBehavior")
|
|
3540
3540
|
));
|
|
3541
3541
|
}
|
|
3542
|
-
const
|
|
3543
|
-
async function
|
|
3542
|
+
const Do = /* @__PURE__ */ En();
|
|
3543
|
+
async function Uo(r) {
|
|
3544
3544
|
try {
|
|
3545
3545
|
const { clipboard: s } = navigator;
|
|
3546
3546
|
if (s)
|
|
@@ -3562,7 +3562,7 @@ function An({ request: r, ...e }) {
|
|
|
3562
3562
|
"file_download_requested",
|
|
3563
3563
|
{ ...i, params: { url: s, file_name: n } }
|
|
3564
3564
|
),
|
|
3565
|
-
K((o) => o.status === "downloading" ? x(void 0) : T(new
|
|
3565
|
+
K((o) => o.status === "downloading" ? x(void 0) : T(new Ee("User denied the action")))
|
|
3566
3566
|
), { ...e, requires: "web_app_request_file_download", returns: "task" });
|
|
3567
3567
|
}
|
|
3568
3568
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -3573,13 +3573,13 @@ function $n() {
|
|
|
3573
3573
|
y
|
|
3574
3574
|
));
|
|
3575
3575
|
}
|
|
3576
|
-
const xn = /* @__PURE__ */ $n(),
|
|
3576
|
+
const xn = /* @__PURE__ */ $n(), Go = /* @__PURE__ */ h(xn);
|
|
3577
3577
|
function qn({ invokeCustomMethod: r, ...e }) {
|
|
3578
3578
|
return A((s) => c(
|
|
3579
3579
|
r("getCurrentTime", {}, s),
|
|
3580
3580
|
K((n) => {
|
|
3581
3581
|
const i = qt(
|
|
3582
|
-
|
|
3582
|
+
fe(be(), rr(), _e((o) => new Date(o * 1e3)), me()),
|
|
3583
3583
|
n
|
|
3584
3584
|
);
|
|
3585
3585
|
return i.success ? x(i.output) : T(new wt(n, i.issues));
|
|
@@ -3594,7 +3594,7 @@ function Bn() {
|
|
|
3594
3594
|
y
|
|
3595
3595
|
));
|
|
3596
3596
|
}
|
|
3597
|
-
const Mn = /* @__PURE__ */ Bn(),
|
|
3597
|
+
const Mn = /* @__PURE__ */ Bn(), jo = /* @__PURE__ */ h(Mn);
|
|
3598
3598
|
function Tn({ postEvent: r, ...e }) {
|
|
3599
3599
|
return A(() => r("web_app_hide_keyboard"), { ...e, returns: "either", requires: "web_app_hide_keyboard" });
|
|
3600
3600
|
}
|
|
@@ -3606,7 +3606,7 @@ function Vn() {
|
|
|
3606
3606
|
y
|
|
3607
3607
|
));
|
|
3608
3608
|
}
|
|
3609
|
-
const Rn = /* @__PURE__ */ Vn(),
|
|
3609
|
+
const Rn = /* @__PURE__ */ Vn(), Ho = /* @__PURE__ */ h(Rn);
|
|
3610
3610
|
function Ln({ request: r, createRequestId: e, ...s }) {
|
|
3611
3611
|
return A((n) => {
|
|
3612
3612
|
const i = e();
|
|
@@ -3614,7 +3614,7 @@ function Ln({ request: r, createRequestId: e, ...s }) {
|
|
|
3614
3614
|
r("web_app_read_text_from_clipboard", "clipboard_text_received", {
|
|
3615
3615
|
...n,
|
|
3616
3616
|
params: { req_id: i },
|
|
3617
|
-
capture:
|
|
3617
|
+
capture: Ke(i)
|
|
3618
3618
|
}),
|
|
3619
3619
|
k(({ data: o = null }) => o)
|
|
3620
3620
|
);
|
|
@@ -3631,7 +3631,7 @@ function Pn() {
|
|
|
3631
3631
|
createRequestId: Zt
|
|
3632
3632
|
});
|
|
3633
3633
|
}
|
|
3634
|
-
const On = /* @__PURE__ */ Pn(),
|
|
3634
|
+
const On = /* @__PURE__ */ Pn(), Wo = /* @__PURE__ */ h(On);
|
|
3635
3635
|
function Dn(r) {
|
|
3636
3636
|
const e = {}, s = r.match(/Telegram-Android(?:\/([^ ]+))?(?: (\([^)]+\))?|$)/);
|
|
3637
3637
|
if (s) {
|
|
@@ -3648,7 +3648,7 @@ function Dn(r) {
|
|
|
3648
3648
|
}
|
|
3649
3649
|
return e;
|
|
3650
3650
|
}
|
|
3651
|
-
function
|
|
3651
|
+
function Ko() {
|
|
3652
3652
|
return Dn(navigator.userAgent);
|
|
3653
3653
|
}
|
|
3654
3654
|
function Un({ postEvent: r, ...e }) {
|
|
@@ -3663,7 +3663,7 @@ function Un({ postEvent: r, ...e }) {
|
|
|
3663
3663
|
function Gn() {
|
|
3664
3664
|
return Un(c(C(), R));
|
|
3665
3665
|
}
|
|
3666
|
-
const jn = /* @__PURE__ */ Gn(),
|
|
3666
|
+
const jn = /* @__PURE__ */ Gn(), No = /* @__PURE__ */ h(jn);
|
|
3667
3667
|
function Hn({ request: r, ...e }) {
|
|
3668
3668
|
return A((s, n) => c(
|
|
3669
3669
|
r(
|
|
@@ -3674,7 +3674,7 @@ function Hn({ request: r, ...e }) {
|
|
|
3674
3674
|
params: { id: s }
|
|
3675
3675
|
}
|
|
3676
3676
|
),
|
|
3677
|
-
K((i) => i.event === "prepared_message_failed" ? T(new
|
|
3677
|
+
K((i) => i.event === "prepared_message_failed" ? T(new is(i.payload.error)) : x(void 0))
|
|
3678
3678
|
), { ...e, requires: "web_app_send_prepared_message", returns: "task" });
|
|
3679
3679
|
}
|
|
3680
3680
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -3685,7 +3685,7 @@ function Wn() {
|
|
|
3685
3685
|
y
|
|
3686
3686
|
));
|
|
3687
3687
|
}
|
|
3688
|
-
const Kn = /* @__PURE__ */ Wn(),
|
|
3688
|
+
const Kn = /* @__PURE__ */ Wn(), Qo = /* @__PURE__ */ h(Kn);
|
|
3689
3689
|
function Nn({ postEvent: r, ...e }) {
|
|
3690
3690
|
return A((s, n = {}) => r("web_app_share_to_story", {
|
|
3691
3691
|
text: n.text,
|
|
@@ -3701,7 +3701,7 @@ function Qn() {
|
|
|
3701
3701
|
y
|
|
3702
3702
|
));
|
|
3703
3703
|
}
|
|
3704
|
-
const zn = /* @__PURE__ */ Qn(),
|
|
3704
|
+
const zn = /* @__PURE__ */ Qn(), zo = /* @__PURE__ */ h(zn), Vt = /* @__PURE__ */ mt(!1);
|
|
3705
3705
|
function Jn({ isInlineMode: r, postEvent: e, ...s }) {
|
|
3706
3706
|
return A((n, i) => e("web_app_switch_inline_query", {
|
|
3707
3707
|
query: n,
|
|
@@ -3725,7 +3725,7 @@ function Yn() {
|
|
|
3725
3725
|
isInlineMode: Vt
|
|
3726
3726
|
});
|
|
3727
3727
|
}
|
|
3728
|
-
const Zn = /* @__PURE__ */ Yn(),
|
|
3728
|
+
const Zn = /* @__PURE__ */ Yn(), Jo = /* @__PURE__ */ h(Zn);
|
|
3729
3729
|
class Xn {
|
|
3730
3730
|
constructor({
|
|
3731
3731
|
storage: e,
|
|
@@ -3961,9 +3961,9 @@ class Xn {
|
|
|
3961
3961
|
const rt = (J) => () => {
|
|
3962
3962
|
const [X, H] = J === "safe-area" ? ["web_app_request_safe_area", "safe_area_changed"] : ["web_app_request_content_safe_area", "content_safe_area_changed"];
|
|
3963
3963
|
return ot(X, U(S)) ? d(X, H, E) : x({ top: 0, left: 0, right: 0, bottom: 0 });
|
|
3964
|
-
}, B = (J) => () => typeof J == "boolean" ? x(J) :
|
|
3964
|
+
}, B = (J) => () => typeof J == "boolean" ? x(J) : Ie(J());
|
|
3965
3965
|
return c(
|
|
3966
|
-
|
|
3966
|
+
Zr,
|
|
3967
3967
|
Ft("safeAreaInsets", rt("safe-area")),
|
|
3968
3968
|
Ft("contentSafeAreaInsets", rt("content-safe-area")),
|
|
3969
3969
|
Ft("isFullscreen", B(g)),
|
|
@@ -3996,25 +3996,25 @@ class Xn {
|
|
|
3996
3996
|
restoreState: e.get
|
|
3997
3997
|
}), N = (E) => F(() => this.safeAreaInsets()[E]), bt = (E) => F(() => this.contentSafeAreaInsets()[E]);
|
|
3998
3998
|
this.state = f.state, this.height = f.getter("height"), this.stableHeight = f.getter("stableHeight"), this.width = f.getter("width"), this.isExpanded = f.getter("isExpanded"), this.safeAreaInsets = f.getter("safeAreaInsets"), this.safeAreaInsetTop = N("top"), this.safeAreaInsetBottom = N("bottom"), this.safeAreaInsetLeft = N("left"), this.safeAreaInsetRight = N("right"), this.contentSafeAreaInsets = f.getter("contentSafeAreaInsets"), this.contentSafeAreaInsetTop = bt("top"), this.contentSafeAreaInsetBottom = bt("bottom"), this.contentSafeAreaInsetLeft = bt("left"), this.contentSafeAreaInsetRight = bt("right");
|
|
3999
|
-
const
|
|
3999
|
+
const Re = I({ isTma: v, returns: "task" }), re = I({
|
|
4000
4000
|
isTma: v,
|
|
4001
4001
|
returns: "either"
|
|
4002
|
-
}),
|
|
4002
|
+
}), Le = I({
|
|
4003
4003
|
isTma: v,
|
|
4004
4004
|
requires: "web_app_request_fullscreen",
|
|
4005
4005
|
version: S,
|
|
4006
4006
|
returns: "task"
|
|
4007
|
-
}), se = (E) =>
|
|
4007
|
+
}), se = (E) => Le((rt) => c(
|
|
4008
4008
|
d(
|
|
4009
4009
|
E ? "web_app_request_fullscreen" : "web_app_exit_fullscreen",
|
|
4010
4010
|
["fullscreen_changed", "fullscreen_failed"],
|
|
4011
4011
|
rt
|
|
4012
4012
|
),
|
|
4013
|
-
K((B) => B.event === "fullscreen_failed" && B.payload.error !== "ALREADY_FULLSCREEN" ? T(new
|
|
4013
|
+
K((B) => B.event === "fullscreen_failed" && B.payload.error !== "ALREADY_FULLSCREEN" ? T(new os(B.payload.error)) : (f.setState({
|
|
4014
4014
|
isFullscreen: "is_fullscreen" in B.payload ? B.payload.is_fullscreen : !0
|
|
4015
4015
|
}), x(void 0)))
|
|
4016
4016
|
));
|
|
4017
|
-
this.isMounted = O.isMounted, this.mountFp =
|
|
4017
|
+
this.isMounted = O.isMounted, this.mountFp = Re(O.mount), this.mount = /* @__PURE__ */ h(this.mountFp), this.isFullscreen = f.getter("isFullscreen"), this.requestFullscreenFp = se(!0), this.requestFullscreen = /* @__PURE__ */ h(this.requestFullscreenFp), this.exitFullscreenFp = se(!1), this.exitFullscreen = /* @__PURE__ */ h(this.exitFullscreenFp);
|
|
4018
4018
|
const gt = j(!1);
|
|
4019
4019
|
this.isCssVarsBound = F(gt), this.bindCssVarsFp = re(
|
|
4020
4020
|
(E) => {
|
|
@@ -4088,7 +4088,7 @@ function to() {
|
|
|
4088
4088
|
onViewportChanged: e.on
|
|
4089
4089
|
});
|
|
4090
4090
|
}
|
|
4091
|
-
const
|
|
4091
|
+
const Yo = /* @__PURE__ */ to();
|
|
4092
4092
|
function eo(r = {}) {
|
|
4093
4093
|
const {
|
|
4094
4094
|
version: e,
|
|
@@ -4098,7 +4098,7 @@ function eo(r = {}) {
|
|
|
4098
4098
|
if (e && typeof s == "boolean" && n)
|
|
4099
4099
|
Mt.set(e), Vt.set(s), Tt.set(n);
|
|
4100
4100
|
else {
|
|
4101
|
-
const a = c(vt(),
|
|
4101
|
+
const a = c(vt(), ve(
|
|
4102
4102
|
(l) => l,
|
|
4103
4103
|
(l) => {
|
|
4104
4104
|
Mt.set(e || l.tgWebAppVersion), Vt.set(typeof s == "boolean" ? s : !!l.tgWebAppBotInline), Tt.set(n || l.tgWebAppThemeParams);
|
|
@@ -4107,10 +4107,10 @@ function eo(r = {}) {
|
|
|
4107
4107
|
if (a)
|
|
4108
4108
|
return M(a);
|
|
4109
4109
|
}
|
|
4110
|
-
r.postEvent &&
|
|
4110
|
+
r.postEvent && Ae.set(r.postEvent);
|
|
4111
4111
|
const [i, o] = Rt(
|
|
4112
4112
|
Z("reload_iframe", () => {
|
|
4113
|
-
oe().log("Received a request to reload the page"),
|
|
4113
|
+
oe().log("Received a request to reload the page"), cs("iframe_will_reload"), window.location.reload();
|
|
4114
4114
|
})
|
|
4115
4115
|
), { acceptCustomStyles: u = !0 } = r;
|
|
4116
4116
|
if (u) {
|
|
@@ -4129,165 +4129,167 @@ function eo(r = {}) {
|
|
|
4129
4129
|
D(() => (oe().log("The package was initialized"), o))
|
|
4130
4130
|
);
|
|
4131
4131
|
}
|
|
4132
|
-
const
|
|
4132
|
+
const Zo = yt(eo);
|
|
4133
4133
|
export {
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4134
|
+
Ee as AccessDeniedError,
|
|
4135
|
+
us as BackButton,
|
|
4136
|
+
ds as Biometry,
|
|
4137
4137
|
Qt as CSSVarsBoundError,
|
|
4138
|
-
|
|
4138
|
+
ei as CancelledError,
|
|
4139
4139
|
ms as ClosingBehavior,
|
|
4140
4140
|
gs as CloudStorage,
|
|
4141
4141
|
zt as ConcurrentCallError,
|
|
4142
4142
|
Cs as DeviceStorage,
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4143
|
+
ts as DeviceStorageMethodError,
|
|
4144
|
+
os as FullscreenFailedError,
|
|
4145
|
+
ss as FunctionUnavailableError,
|
|
4146
4146
|
$s as HapticFeedback,
|
|
4147
4147
|
Ls as InitData,
|
|
4148
4148
|
Q as InvalidArgumentsError,
|
|
4149
4149
|
po as InvalidEnvError,
|
|
4150
|
-
|
|
4150
|
+
ri as InvalidLaunchParamsError,
|
|
4151
4151
|
Os as Invoice,
|
|
4152
|
-
|
|
4153
|
-
|
|
4152
|
+
si as InvokeCustomMethodFailedError,
|
|
4153
|
+
ni as LaunchParamsRetrieveError,
|
|
4154
4154
|
Js as LocationManager,
|
|
4155
4155
|
Zs as MainButton,
|
|
4156
|
-
|
|
4157
|
-
|
|
4156
|
+
oi as MethodParameterUnsupportedError,
|
|
4157
|
+
ii as MethodUnsupportedError,
|
|
4158
4158
|
rn as MiniApp,
|
|
4159
|
-
|
|
4159
|
+
rs as NotAvailableError,
|
|
4160
4160
|
an as Popup,
|
|
4161
4161
|
Fn as QrScanner,
|
|
4162
4162
|
Cn as SecondaryButton,
|
|
4163
4163
|
Sn as SecureStorage,
|
|
4164
|
-
|
|
4165
|
-
|
|
4164
|
+
es as SecureStorageMethodError,
|
|
4165
|
+
ns as SetEmojiStatusError,
|
|
4166
4166
|
kn as SettingsButton,
|
|
4167
|
-
|
|
4167
|
+
is as ShareMessageError,
|
|
4168
4168
|
In as SwipeBehavior,
|
|
4169
4169
|
tn as ThemeParams,
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4170
|
+
ai as TimeoutError,
|
|
4171
|
+
ui as UnknownEnvError,
|
|
4172
|
+
as as UnknownThemeParamsKeyError,
|
|
4173
4173
|
wt as ValidationError,
|
|
4174
4174
|
Xn as Viewport,
|
|
4175
|
-
|
|
4175
|
+
vo as addToHomeScreen,
|
|
4176
4176
|
Ms as addToHomeScreenFp,
|
|
4177
|
-
|
|
4177
|
+
ci as applyPolyfills,
|
|
4178
4178
|
lo as backButton,
|
|
4179
|
-
|
|
4180
|
-
|
|
4179
|
+
_o as biometry,
|
|
4180
|
+
So as checkHomeScreenStatus,
|
|
4181
4181
|
Rs as checkHomeScreenStatusFp,
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4182
|
+
mo as closingBehavior,
|
|
4183
|
+
bo as cloudStorage,
|
|
4184
|
+
Uo as copyTextToClipboard,
|
|
4185
|
+
pi as createLogger,
|
|
4186
|
+
li as createPostEvent,
|
|
4187
4187
|
Zt as createRequestId,
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4188
|
+
hi as createStartParam,
|
|
4189
|
+
di as createStartParamFp,
|
|
4190
|
+
fi as debug,
|
|
4191
|
+
_i as decodeBase64Url,
|
|
4192
|
+
mi as decodeBase64UrlFp,
|
|
4193
|
+
bi as decodeStartParam,
|
|
4194
|
+
gi as decodeStartParamFp,
|
|
4195
|
+
Fi as deepSnakeToCamelObjKeys,
|
|
4196
|
+
go as deviceStorage,
|
|
4197
|
+
Go as downloadFile,
|
|
4198
4198
|
xn as downloadFileFp,
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4199
|
+
wi as emitEvent,
|
|
4200
|
+
Ci as encodeBase64Url,
|
|
4201
|
+
jo as getCurrentTime,
|
|
4202
4202
|
Mn as getCurrentTimeFp,
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4203
|
+
vi as getReleaseVersion,
|
|
4204
|
+
Co as hapticFeedback,
|
|
4205
|
+
Ho as hideKeyboard,
|
|
4206
4206
|
Rn as hideKeyboardFp,
|
|
4207
|
-
|
|
4208
|
-
|
|
4207
|
+
Zo as init,
|
|
4208
|
+
yo as initData,
|
|
4209
4209
|
eo as initFp,
|
|
4210
|
-
|
|
4210
|
+
ko as invoice,
|
|
4211
4211
|
Fs as invokeCustomMethod,
|
|
4212
|
-
|
|
4213
|
-
|
|
4212
|
+
Gi as isAnyRGB,
|
|
4213
|
+
Be as isColorDark,
|
|
4214
4214
|
Xs as isColorDarkFp,
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4215
|
+
ji as isRGB,
|
|
4216
|
+
Hi as isRGBA,
|
|
4217
|
+
Wi as isRGBAShort,
|
|
4218
|
+
Ki as isRGBShort,
|
|
4219
|
+
Si as isSafeToCreateStartParam,
|
|
4220
|
+
yi as isTMA,
|
|
4221
|
+
ki as isTMAFp,
|
|
4222
|
+
$o as locationManager,
|
|
4223
|
+
Ii as logger,
|
|
4224
|
+
xo as mainButton,
|
|
4225
4225
|
nn as miniApp,
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4226
|
+
Ei as mockTelegramEnv,
|
|
4227
|
+
Ai as off,
|
|
4228
|
+
$i as offAll,
|
|
4229
|
+
xi as on,
|
|
4230
|
+
Io as openLink,
|
|
4231
4231
|
js as openLinkFp,
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4232
|
+
Eo as openTelegramLink,
|
|
4233
|
+
qe as openTelegramLinkFp,
|
|
4234
|
+
Ni as parseInitDataQuery,
|
|
4235
|
+
Qi as parseInitDataQueryFp,
|
|
4236
|
+
zi as parseLaunchParamsQuery,
|
|
4237
|
+
Ji as parseLaunchParamsQueryFp,
|
|
4238
|
+
qo as popup,
|
|
4239
|
+
cs as postEvent,
|
|
4240
4240
|
ct as postEventFp,
|
|
4241
|
-
|
|
4242
|
-
|
|
4241
|
+
Ro as qrScanner,
|
|
4242
|
+
Wo as readTextFromClipboard,
|
|
4243
4243
|
On as readTextFromClipboardFp,
|
|
4244
4244
|
ho as request,
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4245
|
+
fo as request2,
|
|
4246
|
+
$e as request2Fp,
|
|
4247
|
+
To as requestContact,
|
|
4248
|
+
Mo as requestContactComplete,
|
|
4249
|
+
Ve as requestContactCompleteFp,
|
|
4248
4250
|
_n as requestContactFp,
|
|
4249
|
-
|
|
4251
|
+
Fo as requestEmojiStatusAccess,
|
|
4250
4252
|
ks as requestEmojiStatusAccessFp,
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4253
|
+
fs as requestFp,
|
|
4254
|
+
Bo as requestPhoneAccess,
|
|
4255
|
+
Te as requestPhoneAccessFp,
|
|
4256
|
+
Vo as requestWriteAccess,
|
|
4255
4257
|
gn as requestWriteAccessFp,
|
|
4256
|
-
|
|
4258
|
+
Ko as retrieveAndroidDeviceData,
|
|
4257
4259
|
Dn as retrieveAndroidDeviceDataFrom,
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4260
|
+
qi as retrieveLaunchParams,
|
|
4261
|
+
Bi as retrieveLaunchParamsFp,
|
|
4262
|
+
Mi as retrieveRawInitData,
|
|
4263
|
+
Ti as retrieveRawInitDataFp,
|
|
4264
|
+
Vi as retrieveRawLaunchParams,
|
|
4265
|
+
Ri as retrieveRawLaunchParamsFp,
|
|
4266
|
+
Lo as secondaryButton,
|
|
4267
|
+
Po as secureStorage,
|
|
4268
|
+
No as sendData,
|
|
4267
4269
|
jn as sendDataFp,
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4270
|
+
Yi as serializeInitDataQuery,
|
|
4271
|
+
Zi as serializeLaunchParamsQuery,
|
|
4272
|
+
Li as setDebug,
|
|
4273
|
+
wo as setEmojiStatus,
|
|
4272
4274
|
As as setEmojiStatusFp,
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4275
|
+
Pi as setTargetOrigin,
|
|
4276
|
+
Oo as settingsButton,
|
|
4277
|
+
Qo as shareMessage,
|
|
4276
4278
|
Kn as shareMessageFp,
|
|
4277
|
-
|
|
4279
|
+
zo as shareStory,
|
|
4278
4280
|
zn as shareStoryFp,
|
|
4279
|
-
|
|
4281
|
+
Ao as shareURL,
|
|
4280
4282
|
Qs as shareURLFp,
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4283
|
+
Oi as supports,
|
|
4284
|
+
Do as swipeBehavior,
|
|
4285
|
+
Jo as switchInlineQuery,
|
|
4284
4286
|
Zn as switchInlineQueryFp,
|
|
4285
|
-
|
|
4287
|
+
Di as targetOrigin,
|
|
4286
4288
|
St as themeParams,
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4289
|
+
Xi as toRGB,
|
|
4290
|
+
ta as toRGBFp,
|
|
4291
|
+
ea as toRGBFull,
|
|
4292
|
+
ra as toRGBFullFp,
|
|
4293
|
+
Yo as viewport
|
|
4292
4294
|
};
|
|
4293
4295
|
//# sourceMappingURL=index.js.map
|