@telegram-apps/analytics
Advanced tools
Comparing version 1.1.9 to 1.2.0
@@ -1,1 +0,1 @@ | ||
var telegramAnalytics=function(){"use strict";const t=n;function n(t,r){const s=e();return(n=function(t,n){return s[t-=305]})(t,r)}function e(){const t=["disconnection","hBuEK","POpFy","PpHaO","3855018TFSmaq","593860rWrCsI","transaction-sent-for-signature","https://tganalytics.xyz/","145tXPvVv","WwlWH","EONoU","split","30yQWLCt","iIzMU","uIKCN","INIT","QESST","WALLET_CONNECT_ERROR","TRANSACTION_SENT_FOR_SIGNATURE","12|10|9|3|2|7|1|0|6|11|8|4|5","connection-started","custom-event","PrrXv","351LEYOGB","WALLET_CONNECT_STARTED","LXofb","app-hide","44236lAOUzV","connection-completed","KHOhd","445969wazEez","connection-restoring-completed","CONNECTION_RESTORING_ERROR","716254JLAkYV","transaction-signed","CONNECTION_RESTORING_SUCCESS","135288dPbKYj","6106792CjMNTo","WALLET_DISCONNECT","connection-error","HIDE","DAAeu"];return(e=function(){return t})()}!function(t,e){const r=n,s=t();for(;;)try{if(430596===parseInt(r(310))/1+parseInt(r(316))/2*(parseInt(r(334))/3)+parseInt(r(307))/4*(parseInt(r(330))/5)+parseInt(r(326))/6+-parseInt(r(313))/7+parseInt(r(317))/8+-parseInt(r(345))/9*(parseInt(r(327))/10))break;s.push(s.shift())}catch(o){s.push(s.shift())}}(e);const r=t(329);var s=(n=>{const e=t,r={kEjih:e(341),QESST:e(312),KHOhd:"connection-restoring-error",hBuEK:e(315),PrrXv:e(311),DAAeu:e(308),WwlWH:e(346),uIKCN:e(342),PpHaO:e(322),POpFy:e(328),IZjDA:e(339),LXofb:e(319),EONoU:e(343),iIzMU:e(320),uDDAv:e(306),BQDXx:e(314),ZaxPl:e(337)},s=r.kEjih[e(333)]("|");let o=0;for(;;){switch(s[o++]){case"0":n[r[e(338)]]=r[e(309)];continue;case"1":n[r[e(323)]]=r[e(344)];continue;case"2":n.WALLET_CONNECT_SUCCESS=r[e(321)];continue;case"3":n[r[e(331)]]=r[e(336)];continue;case"4":n[e(318)]=r[e(325)];continue;case"5":return n;case"6":n[e(340)]=r[e(324)];continue;case"7":n[r.IZjDA]=r[e(305)];continue;case"8":n.TRANSACTION_SIGNING_FAILED="transaction-signing-failed";continue;case"9":n.CUSTOM_EVENT=r[e(332)];continue;case"10":n[r[e(335)]]=r.uDDAv;continue;case"11":n.TRANSACTION_SIGNED=r.BQDXx;continue;case"12":n[r.ZaxPl]="app-init";continue}break}})(s||{});const o=i;function i(t,n){const e=a();return(i=function(t,n){return e[t-=468]})(t,n)}function a(){const t=["addEventListener","TRANSACTION_SIGNING_FAILED","analyticsController","67515ERMqSp","3116538IGvCrU","events","101748CrICUJ","TRANSACTION_SENT_FOR_SIGNATURE","Attach ","type","uiScope","60lEtxSN","log","ton-connect-","tonConnectUiEvents","1092312MowOBL","tonConnectSdkEvents","CONNECTION_RESTORING_STARTED","138gQEDuV","sdkScope","event ","WALLET_DISCONNECT","1672730rGRWsF","WALLET_CONNECT_ERROR","CONNECTION_RESTORING_SUCCESS","init","CUSTOM_EVENT","CONNECTION_RESTORING_ERROR","1460292aujhri","69063eWGquv","TRANSACTION_SIGNED","collectEvent","detail"];return(a=function(){return t})()}!function(t,n){const e=i,r=t();for(;;)try{if(411085===parseInt(e(494))/1+parseInt(e(483))/2+parseInt(e(484))/3*(parseInt(e(499))/4)+-parseInt(e(477))/5+-parseInt(e(473))/6*(parseInt(e(491))/7)+parseInt(e(470))/8+-parseInt(e(492))/9)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(a);class c{constructor(t){const n=i,e={Srbth:n(468)};this[n(471)]=[s[n(481)],s.WALLET_CONNECT_SUCCESS,s[n(478)],s[n(472)],s[n(479)],s[n(482)],s[n(495)],s[n(485)],s[n(489)],s[n(476)]],this[n(469)]=[s.WALLET_CONNECT_STARTED,s[n(478)],s[n(489)]],this[n(498)]="ton-connect-ui-",this[n(474)]=e.Srbth,this[n(490)]=t}[o(480)](){const t=o;for(let n of this[t(493)])console[t(500)](t(496)+n+" listener"),window[t(488)](n,(e=>{const r=t;console[r(500)](r(475)+n+" received",e[r(487)]);const{type:s,...o}=e[r(487)];this[r(490)][r(486)](e.detail[r(497)],{...o})}))}get[o(493)](){const t=o;return[...this[t(469)].map((t=>""+this.uiScope+t)),...this[t(471)].map((n=>""+this[t(474)]+n))]}}function u(t,n){const e=p();return(u=function(t,n){return e[t-=411]})(t,n)}function p(){const t=["kPSdv","HIDE","624JZyATU","20bJUoWh","114PRtdPc","visibilityState","116557sGoMPO","14236tOVQKE","9KnAaph","analyticsController","zZfOc","633yfiLVy","nsrRR","collectEvent","3621810IoxxCx","pJZKd","3421627XIPCDA","5245144qRZlOS","216437HcZwGb","addEventListener","1509732DWWuiH","1wQwPhX","documentEvents","nyvZd"];return(p=function(){return t})()}!function(t,n){const e=u,r=t();for(;;)try{if(434193===-parseInt(e(416))/1*(parseInt(e(415))/2)+-parseInt(e(430))/3*(parseInt(e(426))/4)+parseInt(e(433))/5+parseInt(e(423))/6*(parseInt(e(425))/7)+parseInt(e(412))/8*(parseInt(e(427))/9)+-parseInt(e(422))/10*(parseInt(e(411))/11)+parseInt(e(421))/12*(parseInt(e(413))/13))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(p);class h{constructor(t){const n=u,e=function(t,n){return t===n};this[n(417)]={visibilitychange:()=>{const t=n;e(document[t(424)],"hidden")&&this.analyticsController[t(432)](s[t(420)],void 0)}},this[n(428)]=t}init(){const t=u,n={pJZKd:function(t,n){return t===n},zZfOc:t(418),kPSdv:t(431)};for(let[e,r]of Object.entries(this[t(417)]))n[t(429)]!==n[t(419)]?document[t(414)](e,r):(this[t(417)]={visibilitychange:()=>{const e=t;n[e(434)](_0x176e69.visibilityState,"hidden")&&this[e(428)][e(432)](_0x482063[e(420)],void 0)}},this[t(428)]=_0x532116)}}var f=I;function l(){var t=["3602970DySgTc","9UAzQsI","tonConnectObserver","34WogaVm","2431275cAfUXd","1831gRVGaL","appModule","2272dwcBGZ","4888888nzIrwU","2152506hXWTrd","init","2515dxtxVo","recordEvent","documentObserver","collectEvent","937731tZkJrG"];return(l=function(){return t})()}function I(t,n){var e=l();return(I=function(t,n){return e[t-=493]})(t,n)}!function(t,n){for(var e=I,r=t();;)try{if(353426===-parseInt(e(506))/1*(parseInt(e(504))/2)+-parseInt(e(500))/3+parseInt(e(508))/4*(-parseInt(e(496))/5)+parseInt(e(494))/6+-parseInt(e(505))/7+parseInt(e(493))/8*(parseInt(e(502))/9)+parseInt(e(501))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(l);class d{constructor(t){var n=I;this[n(507)]=t,this[n(498)]=new h(this),this[n(503)]=new c(this)}[f(495)](){var t=f;this.documentObserver.init(),this[t(503)][t(495)]()}[f(497)](t,n){var e=f;this[e(507)][e(497)](t,n).catch((t=>console.error(t)))}[f(499)](t,n){var e=f;this[e(507)][e(499)](t,n)}}!function(t,n){const e=S,r=t();for(;;)try{if(823573===-parseInt(e(251))/1+parseInt(e(245))/2+parseInt(e(243))/3+parseInt(e(256))/4+parseInt(e(253))/5*(parseInt(e(247))/6)+-parseInt(e(244))/7+parseInt(e(242))/8)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(E);const m=t=>{throw new Error(t)};var g=(t=>{const n=S,e={hlahr:n(255),FwsSm:"Token is not provided.",lnjEV:n(250),tTiTh:n(246)};return t[e[n(252)]]=e[n(249)],t[e[n(248)]]=e[n(254)],t})(g||{});function S(t,n){const e=E();return(S=function(t,n){return e[t-=242]})(t,n)}function E(){const t=["10970896HTmnMT","1008714KlDrZM","3510493zpuMqx","404474qnpRBp","Telegram User data is not provided.","48FZGHqY","lnjEV","FwsSm","USER_DATA_IS_NOT_PROVIDED","1637497MUmlzL","hlahr","48440rNNYSl","tTiTh","TOKEN_IS_NOT_PROVIDED","3900912RHWytH"];return(E=function(){return t})()}var T=N;function N(t,n){var e=y();return(N=function(t,n){return e[t-=337]})(t,n)}function y(){var t=["assign","events","30SebdAC","recordEvent","973734cfNYKG","TOKEN_IS_NOT_PROVIDED","Gidzj","zEoBr","init","application/json","kqQJf","ULNBb","LXGzr","hvgWf","19119726cdJGUM","102292PqqtaZ","custom_data","4CJJMGb","ANIhz","1724960kzQgeA","appModule","BACKEND_URL","xdksD","stringify","ZDtPa","eEnCm","2977560dmVXLW","getApiToken","ZqbTT","2108239nErkEG","assembleEventSession","POST","373190zlCIEN"];return(y=function(){return t})()}!function(t,n){for(var e=N,r=t();;)try{if(366813===-parseInt(e(352))/1+parseInt(e(337))/2*(-parseInt(e(357))/3)+-parseInt(e(368))/4*(parseInt(e(355))/5)+-parseInt(e(346))/6+-parseInt(e(349))/7+parseInt(e(339))/8+parseInt(e(367))/9)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(y);class _{constructor(t){var n=N;this[n(341)]=r,this[n(340)]=t,!this[n(340)].getApiToken()&&m(g[n(358)])}[T(361)](){}async recordEvents(t){var n=T,e={ZDtPa:function(t,n,e){return t(n,e)},Gidzj:function(t,n){return t+n},xdksD:n(351),ULNBb:"application/json"};return await e[n(344)](fetch,e[n(359)](this[n(341)],n(354)),{method:e[n(342)],headers:{"TGA-Auth-Token":this[n(340)][n(347)](),"Content-Type":e[n(364)]},body:JSON.stringify(t)})}async[T(356)](t,n,e){var r=T,s={hvgWf:r(360),ANIhz:function(t,n){return t===n},ZqbTT:r(363),eEnCm:function(t,n,e){return t(n,e)},LXGzr:function(t,n){return t+n},ejaoP:r(362)};(null==n?void 0:n.custom_data)&&(s[r(366)]==s[r(366)]?e?s[r(338)](s[r(348)],s.ZqbTT)?e=Object[r(353)](n.custom_data,e):_0x158f8e=_0x26ffe3[r(369)]:e=n.custom_data:_0x5b0d0e?_0x5ad3b0=_0x1a9362.assign(_0x42439f.custom_data,_0x4ef6b8):_0x3ec9f2=_0x4eb7fe[r(369)]),await s[r(345)](fetch,s[r(365)](this.BACKEND_URL,r(354)),{method:r(351),headers:{"TGA-Auth-Token":this[r(340)][r(347)](),"Content-Type":s.ejaoP},body:JSON[r(343)]({...n,event_name:t,custom_data:e,...this[r(340)][r(350)]()})})}}class v extends Error{constructor(t,n,e){super(n,{cause:e}),this.type=t,Object.setPrototypeOf(this,v.prototype)}}function b(t,n,e){return new v(t,n,e)}const A="ERR_UNEXPECTED_TYPE",O="ERR_PARSE";function C(){return b(A,"Value has unexpected type")}class x{constructor(t,n,e){this.parser=t,this.isOptional=n,this.type=e}parse(t){if(!this.isOptional||void 0!==t)try{return this.parser(t)}catch(n){throw b(O,"Unable to parse value"+(this.type?` as ${this.type}`:""),n)}}optional(){return this.isOptional=!0,this}}function w(t,n){return()=>new x(t,!1,n)}const R=w((t=>{if("boolean"==typeof t)return t;const n=String(t);if("1"===n||"true"===n)return!0;if("0"===n||"false"===n)return!1;throw C()}),"boolean");function P(t,n){const e={};for(const s in t){const o=t[s];if(!o)continue;let i,a;if("function"==typeof o||"parse"in o)i=s,a="function"==typeof o?o:o.parse.bind(o);else{const{type:t}=o;i=o.from||s,a="function"==typeof t?t:t.parse.bind(t)}try{const t=a(n(i));void 0!==t&&(e[s]=t)}catch(r){throw b(O,`Unable to parse field "${s}"`,r)}}return e}function U(t){let n=t;if("string"==typeof n&&(n=JSON.parse(n)),"object"!=typeof n||null===n||Array.isArray(n))throw C();return n}function D(t,n){return new x((n=>{const e=U(n);return P(t,(t=>e[t]))}),!1,n)}const k=w((t=>{if("number"==typeof t)return t;if("string"==typeof t){const n=Number(t);if(!Number.isNaN(n))return n}throw C()}),"number"),L=w((t=>{if("string"==typeof t||"number"==typeof t)return t.toString();throw C()}),"string");D({req_id:L(),data:t=>null===t?t:L().optional().parse(t)}),D({req_id:L(),result:t=>t,error:L().optional()}),D({height:k(),width:t=>null==t?window.innerWidth:k().parse(t),is_state_stable:R(),is_expanded:R()});const G=w((t=>t instanceof Date?t:new Date(1e3*k().parse(t))),"Date");function W(t,n){return new x((n=>{if("string"!=typeof n&&!(n instanceof URLSearchParams))throw C();const e="string"==typeof n?new URLSearchParams(n):n;return P(t,(t=>{const n=e.get(t);return null===n?void 0:n}))}),!1,n)}const Z=D({id:k(),type:L(),title:L(),photoUrl:{type:L().optional(),from:"photo_url"},username:L().optional()},"Chat").optional(),M=D({addedToAttachmentMenu:{type:R().optional(),from:"added_to_attachment_menu"},allowsWriteToPm:{type:R().optional(),from:"allows_write_to_pm"},firstName:{type:L(),from:"first_name"},id:k(),isBot:{type:R().optional(),from:"is_bot"},isPremium:{type:R().optional(),from:"is_premium"},languageCode:{type:L().optional(),from:"language_code"},lastName:{type:L().optional(),from:"last_name"},photoUrl:{type:L().optional(),from:"photo_url"},username:L().optional()},"User").optional();const J=w((t=>function(t){const n=t.replace(/\s/g,"").toLowerCase();if(function(t){return/^#[\da-f]{6}$/i.test(t)}(n))return n;if(function(t){return/^#[\da-f]{3}$/i.test(t)}(n)){let t="#";for(let e=0;e<3;e+=1)t+=n[1+e].repeat(2);return t}const e=n.match(/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/)||n.match(/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),\d{1,3}\)$/);if(!e)throw new Error(`Value "${t}" does not satisfy any of known RGB formats.`);return e.slice(1).reduce(((t,n)=>{const e=parseInt(n,10).toString(16);return t+(1===e.length?"0":"")+e}),"#")}(L().parse(t))),"rgb");function V(t){return t.replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`))}const q=w((t=>{const n=J().optional();return Object.entries(U(t)).reduce(((t,[e,r])=>(t[function(t){return t.replace(/_[a-z]/g,(t=>t[1].toUpperCase()))}(e)]=n.parse(r),t)),{})}),"ThemeParams");function Q(t){return W({botInline:{type:R().optional(),from:"tgWebAppBotInline"},initData:{type:W({authDate:{type:G(),from:"auth_date"},canSendAfter:{type:k().optional(),from:"can_send_after"},chat:Z,chatInstance:{type:L().optional(),from:"chat_instance"},chatType:{type:L().optional(),from:"chat_type"},hash:L(),queryId:{type:L().optional(),from:"query_id"},receiver:M,startParam:{type:L().optional(),from:"start_param"},user:M},"InitData").optional(),from:"tgWebAppData"},initDataRaw:{type:L().optional(),from:"tgWebAppData"},platform:{type:L(),from:"tgWebAppPlatform"},showSettings:{type:R().optional(),from:"tgWebAppShowSettings"},startParam:{type:L().optional(),from:"tgWebAppStartParam"},themeParams:{type:q(),from:"tgWebAppThemeParams"},version:{type:L(),from:"tgWebAppVersion"}}).parse(t)}function X(t){return Q(t.replace(/^[^?#]*[?#]/,"").replace(/[?#]/g,"&"))}function B(){return X(window.location.href)}function K(){const t=performance.getEntriesByType("navigation")[0];if(!t)throw new Error("Unable to get first navigation entry.");return X(t.name)}function j(t){return`telegram-apps/${t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}`}function H(){return Q(function(t){const n=sessionStorage.getItem(j(t));try{return n?JSON.parse(n):void 0}catch{}}("launchParams")||"")}function z(t){const{initDataRaw:n,themeParams:e,platform:r,version:s,showSettings:o,startParam:i,botInline:a}=t,c=new URLSearchParams;return c.set("tgWebAppPlatform",r),c.set("tgWebAppThemeParams",function(t){return JSON.stringify(Object.fromEntries(Object.entries(t).map((([t,n])=>[V(t),n]))))}(e)),c.set("tgWebAppVersion",s),n&&c.set("tgWebAppData",n),i&&c.set("tgWebAppStartParam",i),"boolean"==typeof o&&c.set("tgWebAppShowSettings",o?"1":"0"),"boolean"==typeof a&&c.set("tgWebAppBotInline",a?"1":"0"),c.toString()}function F(t){!function(t,n){sessionStorage.setItem(j(t),JSON.stringify(n))}("launchParams",z(t))}function Y(){for(const t of[B,K,H])try{const n=t();return F(n),n}catch{}throw new Error("Unable to retrieve launch parameters from any known source.")}function $(){const t=["4434IPQfPd","nqIQu","FxWXX","iWEqx","541NLVJvS","pwCwx","7655nyfFIg","length","194jVTTkH","2365880TGjcuY","floor","LTxoL","10476347ZynJQE","replace","sNtoG","slice","18549560zagYOK","11oIbraY","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","977748sYSunN","MlmUL","543060evnYBR","XMCyJ","6pZpgpe","FXgig"];return($=function(){return t})()}function tt(t,n){const e=$();return(tt=function(t,n){return e[t-=373]})(t,n)}function nt(t){const n=tt,e={BhRGG:function(t,n){return t+n},FxWXX:function(t,n){return t-n},pwCwx:function(t,n){return t<<n},SQeTl:function(t,n){return t|n},FXgig:function(t,n){return t%n},XMCyJ:function(t,n){return t+n},LTxoL:function(t,n,e){return t(n,e)},MlmUL:function(t,n){return t/n},Gkjev:function(t,n){return t==n},sNtoG:function(t,n){return t|n},WhSVH:function(t,n){return t&n},MtCgv:n(384),nqIQu:function(t,n){return t+n},iWEqx:function(t,n){return t<n}};let r=e.MtCgv,s=(new Date).getTime();let o=function(t){const r=n;let s=0;for(let n=0;n<t[r(373)];n++){const o=t.charCodeAt(n);s=e.BhRGG(e[r(393)](e[r(396)](s,5),s),o),s|=0}return s}(e[n(392)](t,s)).toString(16);for(;e[n(394)](o[n(373)],32);)o+=o;o=o[n(381)](0,32);let i=0;return r[n(379)](/[xy]/g,(function(t){const r=n,a=e.SQeTl(e[r(390)](e[r(388)](s,e[r(377)](parseInt,o[i],16)),16),0);return s=Math[r(376)](e[r(386)](s,16)),i++,(e.Gkjev(t,"x")?a:e[r(380)](e.WhSVH(a,3),8)).toString(16)}))}function et(){const t=["25304TzNocO","getSessionId","TwutR","userId","getUserLocale","languageCode","now","441549hxcatI","init","678475mFaZqn","6XjYTIr","sessionId","130543hooAGH","platform","user","46204eCSfSi","isPremium","145eHyRlJ","uZTsQ","2290iPOtFj","729YoiPfj","2kVRKJI","userData","lastName","userLocale","startParam","qKCxV","initData","appModule","getUserIsPremium","dsiXW","getPlatform","getWebAppStartParam","webAppStartParam","getUserData","17004vGXNVk","getAppName","getUserId","username","firstName","USER_DATA_IS_NOT_PROVIDED","624ABYUQQ","11561MxTZpz"];return(et=function(){return t})()}!function(t,n){const e=tt,r=t();for(;;)try{if(853396===-parseInt(e(395))/1*(parseInt(e(374))/2)+-parseInt(e(389))/3*(-parseInt(e(385))/4)+parseInt(e(397))/5*(parseInt(e(391))/6)+parseInt(e(378))/7+-parseInt(e(375))/8+-parseInt(e(387))/9+parseInt(e(382))/10*(-parseInt(e(383))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}($);const rt=st;function st(t,n){const e=et();return(st=function(t,n){return e[t-=162]})(t,n)}!function(t,n){const e=st,r=t();for(;;)try{if(174172===parseInt(e(194))/1*(parseInt(e(203))/2)+-parseInt(e(189))/3+-parseInt(e(197))/4*(parseInt(e(199))/5)+-parseInt(e(192))/6*(-parseInt(e(191))/7)+parseInt(e(182))/8*(parseInt(e(202))/9)+parseInt(e(201))/10*(parseInt(e(181))/11)+parseInt(e(174))/12*(-parseInt(e(180))/13))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(et);class ot{constructor(t){this[st(167)]=t}[rt(190)](){var t;const n=rt,e={dsiXW:function(t){return t()},uZTsQ:function(t,n){return t(n)}},r=e[n(169)](Y),s=r[n(166)],o=null==(t=r[n(166)])?void 0:t[n(196)];!o&&e[n(200)](m,g[n(179)]),this[n(204)]={id:o.id,is_premium:o[n(198)],first_name:o[n(178)],is_bot:o.isBot,last_name:o[n(162)],language_code:o.languageCode,photo_url:o.photoUrl,username:o[n(177)]},this[n(185)]=o.id,this[n(163)]=o[n(187)],this[n(172)]=s[n(164)],this.platform=r[n(195)],this[n(193)]=e[n(200)](nt,e[n(200)](String,this[n(176)]()))}[rt(183)](){return this[rt(193)]}[rt(176)](){return this[rt(185)]}[rt(171)](){return this[rt(172)]}[rt(170)](){return this.platform}[rt(186)](){return this[rt(163)]}getUserData(){return this.userData}getUserIsPremium(){const t=rt,n=this[t(173)]();return{qKCxV:function(t,n){return t(n)}}[t(165)](Boolean,null==n?void 0:n.is_premium)}assembleEventSession(){const t=rt;return{session_id:this.getSessionId(),user_id:this[t(176)](),app_name:this[t(167)][t(175)](),is_premium:this[t(168)](),platform:this.getPlatform(),locale:this[t(186)](),start_param:this[t(171)](),client_timestamp:{TwutR:function(t,n){return t(n)}}[t(184)](String,Date[t(188)]())}}}const it=ct;function at(){const t=["11208550pLpKUo","storage","getItem","localStorage","sessionStorage","stringify","4646mQguYJ","496508lNMlFP","1111194xLcalV","filter","setItem","parse","addToStorage","includes","719610eAtKUF","6OuEkyp","MUKQs","key","push","vHiZp","null","persist","386848fGMZYB","402XWRKop","1107585arJbQU","117OVwYpw","getBatch"];return(at=function(){return t})()}function ct(t,n){const e=at();return(ct=function(t,n){return e[t-=172]})(t,n)}!function(t,n){const e=ct,r=t();for(;;)try{if(600017===parseInt(e(196))/1+-parseInt(e(188))/2*(-parseInt(e(178))/3)+parseInt(e(189))/4+-parseInt(e(179))/5*(parseInt(e(197))/6)+parseInt(e(190))/7+parseInt(e(177))/8*(parseInt(e(180))/9)+-parseInt(e(182))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(at);class ut{constructor(t){const n=ct,e={vHiZp:n(175)};this[n(186)]=window.sessionStorage,this[n(185)]=window[n(185)],navigator[n(183)][n(176)](),this[n(172)]=t;const r=this.localStorage[n(184)](this[n(172)]);[null,e[n(174)]][n(195)](r)?this.setItem([]):this[n(192)](JSON[n(193)](r))}[it(181)](){const t=it,n={MUKQs:t(175)};return[null,n.MUKQs].includes(this[t(186)].getItem(this[t(172)]))&&[null,n[t(198)]][t(195)](this[t(185)][t(184)](this[t(172)]))?this.setItem([]):this[t(192)](JSON[t(193)](this[t(185)][t(184)](this[t(172)]))),this.setItem([...JSON[t(193)](this[t(186)][t(184)](this.key)),...JSON[t(193)](this.localStorage[t(184)](this.key))][t(191)](((n,e,r)=>r.findIndex((e=>JSON[t(187)](e)===JSON[t(187)](n)))===e))),JSON[t(193)](this[t(186)][t(184)](this[t(172)]))}[it(194)](t,n){const e=it,r=this[e(181)]();r[e(173)]({event_name:t,...n}),this.setItem(r)}[it(192)](t){const n=it;this.localStorage[n(192)](this[n(172)],JSON[n(187)](t)),this[n(186)][n(192)](this[n(172)],JSON[n(187)](t))}}function pt(){const t=["20NlHqzK","VGbcv","OUmxd","setInterval","1|0|2|3|5|4","FcRsH","length","vZbdQ","462674VAcTuB","appModule","stringify","filter","backoff","log","addToStorage","onLine","7225855YREWsV","some","GkqpM","abprE","yAhQs","init","5275161cXzpIE","qHSxF","CQgTw","jhJbg","DOMContentLoaded","5172128HpJXWe","224193maiJmk","collect","getApiToken","qUvft","VcXeR","UYzEK","slice","YPueU","startBatching","sendBatch","68aTGdAG","5ZqxIhD","navigator","Fxouq","BATCH_KEY","then","stopBatching","storage","readyState","batchInterval","2619252rZQcUF","status","ZfdFd","XYGBc","INIT","split","intervalId","recordEvents","collectEvent","2290674iAkAtQ"];return(pt=function(){return t})()}const ht=ft;function ft(t,n){const e=pt();return(ft=function(t,n){return e[t-=313]})(t,n)}!function(t,n){const e=ft,r=t();for(;;)try{if(666415===-parseInt(e(318))/1+-parseInt(e(358))/2+-parseInt(e(338))/3*(-parseInt(e(348))/4)+parseInt(e(349))/5*(parseInt(e(367))/6)+-parseInt(e(326))/7+parseInt(e(337))/8+parseInt(e(332))/9*(parseInt(e(368))/10))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(pt);class lt{constructor(t){const n=ft,e={qUvft:n(314),abprE:function(t,n){return t+n}},r=e[n(341)][n(363)]("|");let s=0;for(;;){switch(r[s++]){case"0":this[n(364)]=null;continue;case"1":this[n(322)]=1;continue;case"2":this[n(357)]=2e3;continue;case"3":this[n(352)]="TGA-Batch-Requests";continue;case"4":this[n(355)]=new ut(e[n(329)](this.BATCH_KEY,"-")+this.appModule[n(340)]());continue;case"5":this[n(319)]=t;continue}break}}[ht(331)](){const t=ht,n={yAhQs:function(t,n){return t!==n},xPqHM:"loading",CQgTw:function(t,n){return t!==n},VGbcv:t(370)};n[t(330)](document[t(356)],n.xPqHM)?(this[t(319)][t(366)](s[t(362)]),this[t(346)]()):n[t(334)](n[t(369)],"OUmxd")?(_0x483953.log(_0x3463c1),this[t(346)]()):document.addEventListener(t(336),(()=>{const n=t;this[n(319)][n(366)](s.INIT),this[n(346)]()}))}[ht(354)](){const t=ht,n={PzmWj:function(t,n){return t!==n},Fxouq:t(342)};n.PzmWj(this[t(364)],null)&&("VcXeR"===n[t(351)]?(clearInterval(this[t(364)]),this[t(364)]=null):(this[t(319)][t(366)](_0x447b45.INIT),this[t(346)]()))}[ht(339)](t,n){const e=ht;this[e(355)][e(324)](t,n)}[ht(346)](){const t=ht;this[t(364)]===null&&(this.intervalId=window[t(313)]((()=>this.processQueue()),this.batchInterval))}processQueue(){const t=ht,n=this.storage.getBatch();({ZfdFd:function(t,n){return t!==n}})[t(360)](n[t(316)],0)&&window[t(350)][t(325)]&&this[t(347)](n[t(344)](0,20))}[ht(347)](t){const n=ht,e={vZbdQ:function(t,n){return t===n},GkqpM:function(t,n){return t(n)},UYzEK:n(361),NKxhc:function(t,n){return t===n},YPueU:function(t,n){return t<n},jhJbg:function(t,n){return t!==n},yANuX:n(333),FcRsH:function(t,n){return t*n}};this[n(354)](),this.appModule[n(365)](t)[n(353)]((r=>{const s=n;if(e[s(317)](e[s(328)](String,r.status)[0],"4")){if(!e.vZbdQ(e[s(343)],"pcEHm"))return;this[s(319)][s(366)](_0x3e25b8[s(362)]),this[s(346)]()}e.NKxhc(e.GkqpM(String,r[s(359)])[0],"5")?e[s(345)](this[s(322)],5)&&(e[s(335)](s(333),e.yANuX)?this.storage[s(324)](_0x4d0c3d,_0x2119e7):(this[s(322)]++,this.batchInterval=e[s(315)](this[s(357)],2.71),console.log(this[s(357)]),this[s(346)]())):(this[s(322)]=1,this[s(357)]=2e3,this[s(355)].setItem(this.storage.getBatch()[s(321)]((n=>!t[s(327)]((t=>JSON[s(320)](n)===JSON[s(320)](t)))))),this[s(346)]())}),(t=>{const e=n;console[e(323)](t),this[e(346)]()}))}}function It(t,n){var e=mt();return(It=function(t,n){return e[t-=161]})(t,n)}var dt=It;function mt(){var t=["sessionController","networkController","recordEvents","801kOUZms","3691905enCQHu","split","123672ZKLscT","1450088yhVYrg","550626AZLmHP","5|2|0|3|1|4","kxTeO","batchService","collectEvent","init","analyticsController","recordEvent","145371ADVYFe","getApiToken","1538FfIClP","20LQEmue","appName","assembleEventSession","apiToken","6004809fYYUer"];return(mt=function(){return t})()}!function(t,n){for(var e=It,r=t();;)try{if(326495===-parseInt(e(184))/1+-parseInt(e(162))/2*(parseInt(e(171))/3)+parseInt(e(174))/4+-parseInt(e(163))/5*(parseInt(e(176))/6)+parseInt(e(172))/7+-parseInt(e(175))/8+parseInt(e(167))/9)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(mt);class gt{constructor(t,n){for(var e=It,r={kxTeO:e(177)}[e(178)][e(173)]("|"),s=0;;){switch(r[s++]){case"0":this[e(168)]=new ot(this);continue;case"1":this[e(182)]=new d(this);continue;case"2":this[e(164)]=n;continue;case"3":this[e(169)]=new _(this);continue;case"4":this[e(179)]=new lt(this);continue;case"5":this[e(166)]=t;continue}break}}async[dt(181)](){var t=dt;this[t(169)].init(),this[t(168)][t(181)](),this.analyticsController[t(181)](),this.batchService[t(181)]()}[dt(165)](){return this[dt(168)].assembleEventSession()}[dt(183)](t,n,e){var r=dt;return this[r(169)][r(183)](t,n,e)}[dt(170)](t){var n=dt;return this[n(169)][n(170)](t)}[dt(180)](t,n){var e=dt;this.batchService.collect(t,{...n,...this[e(165)]()})}[dt(161)](){return this[dt(166)]}getAppName(){return this.appName}}function St(){const t=["1320264szSaRP","5636WeAKDM","18KbRqXv","4839944BZmCgL","803958kFEjsJ","489IGxgkO","20NlfqjY","810100fHjcxi","574727EapkXe","88326IEEGMX"];return(St=function(){return t})()}function Et(t,n){const e=St();return(Et=function(t,n){return e[t-=105]})(t,n)}!function(t,n){const e=Et,r=t();for(;;)try{if(498199===parseInt(e(108))/1+parseInt(e(110))/2+-parseInt(e(105))/3*(-parseInt(e(111))/4)+-parseInt(e(106))/5*(parseInt(e(114))/6)+parseInt(e(109))/7+-parseInt(e(113))/8+-parseInt(e(112))/9*(-parseInt(e(107))/10))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(St);return{init:async function({token:t,appName:n}){new gt(t,n).init()}}}(); | ||
var telegramAnalytics=function(){"use strict";function t(){const n=["qJgUr","3561471XUkRug","https://tganalytics.xyz/","transaction-signed","CONNECTION_RESTORING_SUCCESS","HIDE","rBbgu","TRANSACTION_SENT_FOR_SIGNATURE","1613934bdZdxP","OHOcq","transaction-sent-for-signature","WALLET_CONNECT_SUCCESS","connection-completed","12AHVWNT","TRANSACTION_SIGNING_FAILED","split","WALLET_CONNECT_ERROR","CONNECTION_RESTORING_STARTED","VKpRp","connection-error","QhvoW","INIT","1578315UygvxK","ahXbw","2CcVYZD","RztBc","YcKwj","JqxdK","WALLET_CONNECT_STARTED","PkxoJ","eCtJE","1|6|2|7|13|9|8|10|5|3|0|12|4|11","tPqIG","app-hide","connection-started","1087251NPwItq","connection-restoring-error","CUSTOM_EVENT","dDCIZ","TRANSACTION_SIGNED","2488dRRlSZ","transaction-signing-failed","CONNECTION_RESTORING_ERROR","NkUez","1070592RgZVBr","knTSc","app-init","WALLET_DISCONNECT","11697rTjqUZ","4946650IEtKMZ"];return(t=function(){return n})()}const n=e;function e(n,r){const s=t();return(e=function(t,n){return s[t-=210]})(n,r)}!function(t,n){const r=e,s=t();for(;;)try{if(553393===-parseInt(r(249))/1*(parseInt(r(238))/2)+-parseInt(r(222))/3+-parseInt(r(227))/4*(-parseInt(r(236))/5)+-parseInt(r(258))/6+-parseInt(r(212))/7*(-parseInt(r(254))/8)+parseInt(r(215))/9+parseInt(r(213))/10)break;s.push(s.shift())}catch(o){s.push(s.shift())}}(t);const r=n(216);var s=(t=>{const e=n,r={ahXbw:e(253),knTSc:e(235),PkxoJ:e(210),tPqIG:e(251),dDCIZ:e(221),YcKwj:e(211),OHOcq:"disconnection",qJgUr:e(256),plUCU:e(250),NkUez:e(219),OHlbc:e(247),VKpRp:e(242),rBbgu:e(248),jRdMI:e(231),JzVgz:"connection-restoring-started",dcMNW:e(230),eCtJE:e(233),RztBc:e(228),JqxdK:e(225),QhvoW:e(226)},s=e(245)[e(229)]("|");let o=0;for(;;){switch(s[o++]){case"0":t[r[e(237)]]=e(217);continue;case"1":t[r[e(259)]]=r[e(243)];continue;case"2":t[r[e(246)]]="custom-event";continue;case"3":t[r[e(252)]]=e(224);continue;case"4":t[r[e(240)]]=r[e(223)];continue;case"5":t[r[e(214)]]=r.plUCU;continue;case"6":t[r[e(257)]]=r.OHlbc;continue;case"7":t[r[e(232)]]=r[e(220)];continue;case"8":t[r.jRdMI]=r.JzVgz;continue;case"9":t[r.dcMNW]=r[e(244)];continue;case"10":t[e(218)]="connection-restoring-completed";continue;case"11":return t;case"12":t[r[e(239)]]=e(255);continue;case"13":t[r[e(241)]]=r[e(234)];continue}break}})(s||{});const o=i;function i(t,n){const e=a();return(i=function(t,n){return e[t-=210]})(t,n)}function a(){const t=["800393jYOXmd","10394bzfBTy","WALLET_CONNECT_STARTED","analyticsController","TRANSACTION_SENT_FOR_SIGNATURE","init","1777307NrOTJD","detail","10JKEpjA"," listener","log","28193385XWCGRq","tonConnectSdkEvents","kkEWC","CUSTOM_EVENT","VSGJf","xVzMG","sdkScope","CONNECTION_RESTORING_SUCCESS","addEventListener","3911365jfnapq","WALLET_CONNECT_ERROR","120688CQjhCD","collectEvent","CONNECTION_RESTORING_ERROR","type","dQdaH","TRANSACTION_SIGNING_FAILED","4FLpdGs","TRANSACTION_SIGNED","split","dxsvK","ton-connect-ui-","map","7100670hmWbZF","729ZxuzYK","uiScope","WALLET_CONNECT_SUCCESS","Attach ","219FczuGT"," received","tonConnectUiEvents","events","WALLET_DISCONNECT"];return(a=function(){return t})()}!function(t,n){const e=i,r=t();for(;;)try{if(809026===parseInt(e(231))/1+-parseInt(e(232))/2*(-parseInt(e(226))/3)+-parseInt(e(215))/4*(parseInt(e(251))/5)+-parseInt(e(221))/6+parseInt(e(237))/7+-parseInt(e(253))/8*(parseInt(e(222))/9)+parseInt(e(239))/10*(parseInt(e(242))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(a);class c{constructor(t){const n=i,e={xVzMG:"4|3|2|0|1",TjMDU:"ton-connect-",kkEWC:n(219)},r=e[n(247)][n(217)]("|");let o=0;for(;;){switch(r[o++]){case"0":this[n(248)]=e.TjMDU;continue;case"1":this[n(234)]=t;continue;case"2":this[n(223)]=e[n(244)];continue;case"3":this[n(228)]=[s[n(233)],s[n(252)],s[n(214)]];continue;case"4":this[n(243)]=[s[n(245)],s[n(224)],s.WALLET_CONNECT_ERROR,s[n(249)],s[n(211)],s[n(235)],s[n(216)],s[n(214)],s[n(230)]];continue}break}}[o(236)](){const t=o,n={VSGJf:function(t,n){return t!==n},dQdaH:t(218)};for(let e of this[t(229)])console[t(241)]("Attach "+e+t(240)),window[t(250)](e,(r=>{const s=t;if(n[s(246)](n[s(213)],n.dQdaH))_0x50835b[s(241)](s(225)+_0x35e652+s(240)),_0x142f1e[s(250)](_0x312566,(t=>{const n=s;_0x21860b[n(241)]("event "+_0x577221+n(227),t[n(238)]);const{type:e,...r}=t[n(238)];this.analyticsController[n(210)](t[n(238)][n(212)],{...r})}));else{console[s(241)]("event "+e+s(227),r[s(238)]);const{type:t,...n}=r[s(238)];this[s(234)][s(210)](r[s(238)][s(212)],{...n})}}))}get[o(229)](){const t=o;return[...this[t(228)].map((n=>""+this[t(223)]+n)),...this[t(243)][t(220)]((t=>""+this.sdkScope+t))]}}function u(){const t=["HIDE","EZikB","693852xSmElL","init","documentEvents","8991190ovFDxs","collectEvent","analyticsController","106654nFlbDv","51dtNUaK","visibilityState","hidden","14QCmDdI","88LyAkJt","addEventListener","mosfo","644319xrsKZp","5204342cpDAEJ","fyltO","4MEmKMn","zaFpt","1720415FWcOgr","973103uNurKb","LQeuy","nkRUi","WOvvc","entries","WLGRp"];return(u=function(){return t})()}const p=h;function h(t,n){const e=u();return(h=function(t,n){return e[t-=375]})(t,n)}!function(t,n){const e=h,r=t();for(;;)try{if(630995===-parseInt(e(380))/1+-parseInt(e(394))/2*(-parseInt(e(395))/3)+-parseInt(e(377))/4*(-parseInt(e(379))/5)+parseInt(e(388))/6*(-parseInt(e(398))/7)+parseInt(e(399))/8*(-parseInt(e(402))/9)+parseInt(e(391))/10+parseInt(e(375))/11)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(u);class f{constructor(t){const n=h,e={EZikB:function(t,n){return t===n},LQeuy:n(397),nkRUi:n(385)};this[n(390)]={visibilitychange:()=>{const t=n;e[t(387)](document[t(396)],e[t(381)])&&(t(376)===e[t(382)]?this.analyticsController.collectEvent(_0x4951c5[t(386)],void 0):this[t(393)].collectEvent(s.HIDE,void 0))}},this[n(393)]=t}[p(389)](){const t=p,n={zaFpt:t(397),TjmVb:t(383)};for(let[e,r]of Object[t(384)](this[t(390)]))if("slUBJ"===n.TjmVb){const e={mosfo:n[t(378)]};this[t(390)]={visibilitychange:()=>{const n=t;_0x318356[n(396)]===e[n(401)]&&this.analyticsController[n(392)](_0x48d9fa[n(386)],void 0)}},this[t(393)]=_0x3421c6}else document[t(400)](e,r)}}var l=d;function I(){var t=["857294QFeaId","appModule","recordEvent","25YtOFVn","init","10935312gwvMDF","9981252LDiUKL","7759619oJmabt","collectEvent","1633482FAZDAM","9ryqTtB","1326171pIQxVZ","error","708380shxAfn","tonConnectObserver","catch"];return(I=function(){return t})()}function d(t,n){var e=I();return(d=function(t,n){return e[t-=310]})(t,n)}!function(t,n){for(var e=d,r=t();;)try{if(712945===-parseInt(e(324))/1+parseInt(e(313))/2*(parseInt(e(323))/3)+parseInt(e(310))/4*(-parseInt(e(316))/5)+parseInt(e(322))/6+parseInt(e(320))/7+parseInt(e(318))/8+-parseInt(e(319))/9)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(I);class m{constructor(t){this[d(314)]=t,this.documentObserver=new f(this),this.tonConnectObserver=new c(this)}[l(317)](){var t=l;this.documentObserver[t(317)](),this[t(311)].init()}[l(315)](t,n){var e=l;this[e(314)][e(315)](t,n)[e(312)]((t=>console[e(325)](t)))}[l(321)](t,n){var e=l;this[e(314)][e(321)](t,n)}}function g(){const t=["Telegram User data is not provided.","64792czZUkN","NtzBn","3dcZhgZ","USER_DATA_IS_NOT_PROVIDED","755130qVAYDz","10182rYvALq","KAjoE","290362bbNuyc","2418576ZlEBeJ","1757SdFbvh","Token is not provided.","184OWJVXe","TOKEN_IS_NOT_PROVIDED","10525CfLaSp","3431808Vetxnu"];return(g=function(){return t})()}function y(t,n){const e=g();return(y=function(t,n){return e[t-=405]})(t,n)}!function(t,n){const e=y,r=t();for(;;)try{if(252205===parseInt(e(415))/1+parseInt(e(406))/2*(-parseInt(e(417))/3)+parseInt(e(410))/4*(-parseInt(e(412))/5)+parseInt(e(420))/6*(parseInt(e(408))/7)+-parseInt(e(407))/8+parseInt(e(413))/9+-parseInt(e(419))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(g);const S=t=>{throw new Error(t)};var E=(t=>{const n=y,e={KAjoE:n(411),NtzBn:n(414)};return t[e[n(405)]]=n(409),t[n(418)]=e[n(416)],t})(E||{});const v=N;function b(){const t=["encoder","custom_data","LTMhK","getApiToken","clone","hLAbm","603144IVslIr","21EQOxYT","1297560wKGWol","getNewArgs","GsOOe","init","VMBYY","taskSolution","419646ftGtPu","BACKEND_URL","eBTUQ","lVGGt","TOKEN_IS_NOT_PROVIDED","WveDS","4408110nnjXdg","KTtzv","POST","1JoUUJm","appModule","encode","SmYwl","stringify","3619835BsIdiF","then","1940326FAZugR","assign","1577864cqGkpZ","okYIh","PKPnc","zfCLz","application/json","recordEvents","json","Content","eBtvP","CRxUm","recordEvent"];return(b=function(){return t})()}function N(t,n){const e=b();return(N=function(t,n){return e[t-=128]})(t,n)}!function(t,n){const e=N,r=t();for(;;)try{if(533592===-parseInt(e(169))/1*(-parseInt(e(133))/2)+-parseInt(e(154))/3+-parseInt(e(135))/4+parseInt(e(131))/5+-parseInt(e(160))/6+-parseInt(e(153))/7*(-parseInt(e(152))/8)+-parseInt(e(166))/9)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(b);class _{constructor(t){const n=N;this.BACKEND_URL=r,this[n(170)]=t,!this[n(170)][n(149)]()&&{eBtvP:function(t,n){return t(n)}}[n(143)](S,E[n(164)])}[v(157)](){}async[v(140)](t){const n=v,e={eBTUQ:n(142),SmYwl:function(t,n,e){return t(n,e)},yNhBv:"events",PKPnc:function(t,n){return t(n)}};return await e[n(129)](fetch,this[n(161)]+e.yNhBv,{method:n(168),headers:{"TGA-Auth-Token":this[n(170)][n(149)](),"Content-Type":n(139),Content:e[n(137)](String,this[n(170)][n(146)][n(128)](JSON[n(130)](this[n(170)].taskSolution)))},body:JSON[n(130)](t)})[n(132)]((async t=>{const r=n,s=t[r(150)](),o=await s[r(141)]();return this[r(170)][r(155)](o[e[r(162)]]),t}),(async t=>{const e=n,r=t[e(150)](),s=await r.json();return this.appModule[e(155)](s.Content),t}))}async[v(145)](t,n,e){const r=v,s={hLAbm:function(t,n){return t(n)},nDcEJ:"Content",lVGGt:function(t,n){return t!==n},WveDS:r(167),CRxUm:r(148),GsOOe:function(t,n){return t+n},okYIh:"events",VMBYY:r(139)};(null==n?void 0:n[r(147)])&&(e?s[r(163)](r(138),s[r(144)])?e=Object.assign(n[r(147)],e):(this[r(161)]=_0x1af422,this[r(170)]=_0x2b626a,!this.appModule[r(149)]()&&s[r(151)](_0x1bef6c,_0x17da20.TOKEN_IS_NOT_PROVIDED)):e=n[r(147)]),await fetch(s[r(156)](this[r(161)],s[r(136)]),{method:r(168),headers:{"TGA-Auth-Token":this[r(170)][r(149)](),"Content-Type":s[r(158)],Content:String(this.appModule.encoder[r(128)](JSON.stringify(this[r(170)][r(159)])))},body:JSON.stringify({...n,event_name:t,custom_data:e,...this[r(170)].assembleEventSession()})})[r(132)]((async t=>{const n=r,e=t[n(150)](),o=await e[n(141)]();return this[n(170)][n(155)](o[s.nDcEJ]),t}),(async t=>{const n=r;if(s[n(163)]("KoHpV",s[n(165)])){const e=t[n(150)](),r=await e.json();return this[n(170)][n(155)](r[s.nDcEJ]),t}_0x37f919?_0x1896ec=_0x2621e1[n(134)](_0x34f3b7.custom_data,_0x2de69a):_0x2eecc1=_0x3aa49b.custom_data}))}}class T extends Error{constructor(t,n,e){super(n,{cause:e}),this.type=t,Object.setPrototypeOf(this,T.prototype)}}function C(t,n,e){return new T(t,n,e)}const O="ERR_UNEXPECTED_TYPE",x="ERR_PARSE";function A(){return C(O,"Value has unexpected type")}class w{constructor(t,n,e){this.parser=t,this.isOptional=n,this.type=e}parse(t){if(!this.isOptional||void 0!==t)try{return this.parser(t)}catch(n){throw C(x,"Unable to parse value"+(this.type?` as ${this.type}`:""),n)}}optional(){return this.isOptional=!0,this}}function R(t,n){return()=>new w(t,!1,n)}const k=R((t=>{if("boolean"==typeof t)return t;const n=String(t);if("1"===n||"true"===n)return!0;if("0"===n||"false"===n)return!1;throw A()}),"boolean");function U(t,n){const e={};for(const s in t){const o=t[s];if(!o)continue;let i,a;if("function"==typeof o||"parse"in o)i=s,a="function"==typeof o?o:o.parse.bind(o);else{const{type:t}=o;i=o.from||s,a="function"==typeof t?t:t.parse.bind(t)}try{const t=a(n(i));void 0!==t&&(e[s]=t)}catch(r){throw C(x,`Unable to parse field "${s}"`,r)}}return e}function B(t){let n=t;if("string"==typeof n&&(n=JSON.parse(n)),"object"!=typeof n||null===n||Array.isArray(n))throw A();return n}function D(t,n){return new w((n=>{const e=B(n);return U(t,(t=>e[t]))}),!1,n)}const L=R((t=>{if("number"==typeof t)return t;if("string"==typeof t){const n=Number(t);if(!Number.isNaN(n))return n}throw A()}),"number"),P=R((t=>{if("string"==typeof t||"number"==typeof t)return t.toString();throw A()}),"string");D({req_id:P(),data:t=>null===t?t:P().optional().parse(t)}),D({req_id:P(),result:t=>t,error:P().optional()}),D({height:L(),width:t=>null==t?window.innerWidth:L().parse(t),is_state_stable:k(),is_expanded:k()});const W=R((t=>t instanceof Date?t:new Date(1e3*L().parse(t))),"Date");function J(t,n){return new w((n=>{if("string"!=typeof n&&!(n instanceof URLSearchParams))throw A();const e="string"==typeof n?new URLSearchParams(n):n;return U(t,(t=>{const n=e.get(t);return null===n?void 0:n}))}),!1,n)}const M=D({id:L(),type:P(),title:P(),photoUrl:{type:P().optional(),from:"photo_url"},username:P().optional()},"Chat").optional(),V=D({addedToAttachmentMenu:{type:k().optional(),from:"added_to_attachment_menu"},allowsWriteToPm:{type:k().optional(),from:"allows_write_to_pm"},firstName:{type:P(),from:"first_name"},id:L(),isBot:{type:k().optional(),from:"is_bot"},isPremium:{type:k().optional(),from:"is_premium"},languageCode:{type:P().optional(),from:"language_code"},lastName:{type:P().optional(),from:"last_name"},photoUrl:{type:P().optional(),from:"photo_url"},username:P().optional()},"User").optional();const G=R((t=>function(t){const n=t.replace(/\s/g,"").toLowerCase();if(function(t){return/^#[\da-f]{6}$/i.test(t)}(n))return n;if(function(t){return/^#[\da-f]{3}$/i.test(t)}(n)){let t="#";for(let e=0;e<3;e+=1)t+=n[1+e].repeat(2);return t}const e=n.match(/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/)||n.match(/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),\d{1,3}\)$/);if(!e)throw new Error(`Value "${t}" does not satisfy any of known RGB formats.`);return e.slice(1).reduce(((t,n)=>{const e=parseInt(n,10).toString(16);return t+(1===e.length?"0":"")+e}),"#")}(P().parse(t))),"rgb");function j(t){return t.replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`))}const z=R((t=>{const n=G().optional();return Object.entries(B(t)).reduce(((t,[e,r])=>(t[function(t){return t.replace(/_[a-z]/g,(t=>t[1].toUpperCase()))}(e)]=n.parse(r),t)),{})}),"ThemeParams");function K(t){return J({botInline:{type:k().optional(),from:"tgWebAppBotInline"},initData:{type:J({authDate:{type:W(),from:"auth_date"},canSendAfter:{type:L().optional(),from:"can_send_after"},chat:M,chatInstance:{type:P().optional(),from:"chat_instance"},chatType:{type:P().optional(),from:"chat_type"},hash:P(),queryId:{type:P().optional(),from:"query_id"},receiver:V,startParam:{type:P().optional(),from:"start_param"},user:V},"InitData").optional(),from:"tgWebAppData"},initDataRaw:{type:P().optional(),from:"tgWebAppData"},platform:{type:P(),from:"tgWebAppPlatform"},showSettings:{type:k().optional(),from:"tgWebAppShowSettings"},startParam:{type:P().optional(),from:"tgWebAppStartParam"},themeParams:{type:z(),from:"tgWebAppThemeParams"},version:{type:P(),from:"tgWebAppVersion"}}).parse(t)}function q(t){return K(t.replace(/^[^?#]*[?#]/,"").replace(/[?#]/g,"&"))}function Y(){return q(window.location.href)}function Z(){const t=performance.getEntriesByType("navigation")[0];if(!t)throw new Error("Unable to get first navigation entry.");return q(t.name)}function Q(t){return`telegram-apps/${t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}`}function F(){return K(function(t){const n=sessionStorage.getItem(Q(t));try{return n?JSON.parse(n):void 0}catch{}}("launchParams")||"")}function H(t){const{initDataRaw:n,themeParams:e,platform:r,version:s,showSettings:o,startParam:i,botInline:a}=t,c=new URLSearchParams;return c.set("tgWebAppPlatform",r),c.set("tgWebAppThemeParams",function(t){return JSON.stringify(Object.fromEntries(Object.entries(t).map((([t,n])=>[j(t),n]))))}(e)),c.set("tgWebAppVersion",s),n&&c.set("tgWebAppData",n),i&&c.set("tgWebAppStartParam",i),"boolean"==typeof o&&c.set("tgWebAppShowSettings",o?"1":"0"),"boolean"==typeof a&&c.set("tgWebAppBotInline",a?"1":"0"),c.toString()}function X(t){!function(t,n){sessionStorage.setItem(Q(t),JSON.stringify(n))}("launchParams",H(t))}function $(){for(const t of[Y,Z,F])try{const n=t();return X(n),n}catch{}throw new Error("Unable to retrieve launch parameters from any known source.")}function tt(t,n){const e=nt();return(tt=function(t,n){return e[t-=457]})(t,n)}function nt(){const t=["2410793lnMNbg","JTELM","KqSfA","46385600FoAGmj","QzSrW","KRUaG","replace","MwQcV","slice","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","toString","36dFtSEW","charCodeAt","169800QlGKml","36hXPsJJ","711695hlsfbX","qbnSZ","16GPhcpa","5361402UelRdn","length","3023910mMkNuU","XnYBC","84274DLgcVr"];return(nt=function(){return t})()}function et(t){const n=tt,e={qbnSZ:function(t,n){return t<n},KqSfA:function(t,n){return t+n},KRUaG:function(t,n,e){return t(n,e)},XnYBC:function(t,n){return t/n},QzSrW:function(t,n){return t==n},JTELM:function(t,n){return t&n},MwQcV:function(t,n){return t(n)}};let r=n(464),s=(new Date).getTime();const o=t+s;let i=e[n(462)]((function(t){const r=n;let s=0;for(let n=0;e[r(471)](n,t[r(474)]);n++){const o=t[r(467)](n);s=e[r(457)]((s<<5)-s,o),s|=0}return s}),o)[n(465)](16);for(;i[n(474)]<32;)i+=i;i=i[n(463)](0,32);let a=0;return r[n(461)](/[xy]/g,(function(t){const r=n,o=(s+e[r(460)](parseInt,i[a],16))%16|0;return s=Math.floor(e[r(476)](s,16)),a++,(e[r(459)](t,"x")?o:8|e[r(479)](o,3))[r(465)](16)}))}function rt(t,n){const e=ot();return(rt=function(t,n){return e[t-=372]})(t,n)}!function(t,n){const e=tt,r=t();for(;;)try{if(763710===-parseInt(e(468))/1+-parseInt(e(477))/2*(parseInt(e(469))/3)+parseInt(e(466))/4*(-parseInt(e(470))/5)+-parseInt(e(473))/6+parseInt(e(478))/7*(-parseInt(e(472))/8)+-parseInt(e(475))/9+parseInt(e(458))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(nt);const st=rt;function ot(){const t=["826658sOCaVp","6rXqify","userId","520680vYOxeb","93790dGFYcU","getSessionId","getAppName","4yFOCgj","PMRjV","yLzKb","languageCode","getWebAppStartParam","init","isPremium","sessionId","6012RNbkBT","userLocale","102cotPmf","SrbEe","webAppStartParam","getUserData","18WRvRCN","platform","NKREj","AkkwE","USER_DATA_IS_NOT_PROVIDED","userData","getUserLocale","90494mMoQfY","1276mchCiZ","firstName","photoUrl","getPlatform","is_premium","appModule","getUserIsPremium","startParam","1989608kzecEx","getUserId","username","isBot","assembleEventSession","initData","user","lastName","2930500bcUfWE"];return(ot=function(){return t})()}!function(t,n){const e=rt,r=t();for(;;)try{if(272434===-parseInt(e(392))/1*(-parseInt(e(411))/2)+-parseInt(e(413))/3*(parseInt(e(417))/4)+parseInt(e(414))/5*(parseInt(e(381))/6)+parseInt(e(410))/7+parseInt(e(401))/8*(-parseInt(e(385))/9)+parseInt(e(409))/10+-parseInt(e(393))/11*(parseInt(e(379))/12))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(ot);class it{constructor(t){this[rt(398)]=t}[st(376)](){var t;const n=st,e={dtADm:function(t){return t()},NKREj:function(t,n){return t!==n},AkkwE:"JaWpG",yLzKb:function(t,n){return t(n)},SoHMf:function(t,n){return t(n)},SrbEe:function(t,n){return t(n)}},r=e.dtADm($),s=r[n(406)],o=null==(t=r.initData)?void 0:t[n(407)];if(!o){if(e[n(387)](e[n(388)],e[n(388)]))return this[n(380)];e[n(373)](S,E[n(389)])}this[n(390)]={id:o.id,is_premium:o[n(377)],first_name:o[n(394)],is_bot:o[n(404)],last_name:o[n(408)],language_code:o[n(374)],photo_url:o[n(395)],username:o[n(403)]},this[n(412)]=o.id,this[n(380)]=o[n(374)],this[n(383)]=s[n(400)],this[n(386)]=r[n(386)],this[n(378)]=e.SoHMf(et,e[n(382)](String,this.getUserId()))}getSessionId(){return this[st(378)]}[st(402)](){return this[st(412)]}[st(375)](){return this[st(383)]}[st(396)](){return this[st(386)]}[st(391)](){return this[st(380)]}[st(384)](){return this[st(390)]}getUserIsPremium(){const t=st,n=this[t(384)]();return Boolean(null==n?void 0:n[t(397)])}[st(405)](){const t=st;return{session_id:this[t(415)](),user_id:this[t(402)](),app_name:this.appModule[t(416)](),is_premium:this[t(399)](),platform:this[t(396)](),locale:this[t(391)](),start_param:this[t(375)](),client_timestamp:{PMRjV:function(t,n){return t(n)}}[t(372)](String,Date.now())}}}function at(){const t=["stringify","hlvWh","1456679uxaEcx","includes","2757RwFeDC","null","kytdN","localStorage","parse","614pHOCMS","persist","260450UCNCMJ","11vouJYL","220119befpdb","getBatch","storage","key","setItem","8nrlmBI","sessionStorage","KTBCc","767334TUWjPu","216980QEqZUn","findIndex","filter","24dQdVHp","WdaQu","AllGq","fnQMB","getItem","1065204JSxIDx"];return(at=function(){return t})()}function ct(t,n){const e=at();return(ct=function(t,n){return e[t-=290]})(t,n)}const ut=ct;!function(t,n){const e=ct,r=t();for(;;)try{if(149871===-parseInt(e(302))/1+-parseInt(e(298))/2*(-parseInt(e(293))/3)+-parseInt(e(314))/4*(-parseInt(e(311))/5)+parseInt(e(310))/6+parseInt(e(291))/7*(-parseInt(e(307))/8)+-parseInt(e(319))/9+-parseInt(e(300))/10*(-parseInt(e(301))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(at);class pt{constructor(t){const n=ct;this[n(308)]=window.sessionStorage,this[n(296)]=window[n(296)],navigator[n(304)][n(299)](),this[n(305)]=t;const e=this[n(296)].getItem(this[n(305)]);[null,n(294)][n(292)](e)?this.setItem([]):this.setItem(JSON[n(297)](e))}[ut(303)](){const t=ut,n={AllGq:t(294),hlvWh:function(t,n){return t!==n},fnQMB:"NkHIU",kytdN:function(t,n){return t!==n},KTBCc:t(315)};return[null,"null"][t(292)](this.sessionStorage.getItem(this[t(305)]))&&[null,n[t(316)]][t(292)](this[t(296)].getItem(this[t(305)]))?n[t(290)]("JtLsC",n[t(317)])?this[t(306)]([]):this.setItem(_0x441cb1[t(297)](this.localStorage[t(318)](this[t(305)]))):n[t(295)](n[t(309)],n[t(309)])?this[t(306)](_0x1a0fb6.parse(_0x3e6f74)):this[t(306)](JSON[t(297)](this.localStorage[t(318)](this[t(305)]))),this[t(306)]([...JSON[t(297)](this.sessionStorage[t(318)](this.key)),...JSON.parse(this.localStorage.getItem(this[t(305)]))][t(313)](((n,e,r)=>r[t(312)]((e=>JSON[t(320)](e)===JSON[t(320)](n)))===e))),JSON[t(297)](this.sessionStorage.getItem(this.key))}addToStorage(t,n){const e=ut,r=this[e(303)]();r.push({event_name:t,...n}),this[e(306)](r)}[ut(306)](t){const n=ut;this[n(296)].setItem(this[n(305)],JSON[n(320)](t)),this[n(308)].setItem(this.key,JSON[n(320)](t))}}function ht(t,n){const e=lt();return(ht=function(t,n){return e[t-=228]})(t,n)}const ft=ht;function lt(){const t=["getApiToken","CRRve","RXNBr","3083424HsMkDH","taskRetry","bsiRb","MPllP","onreadystatechange","status","GMKAl","EySBQ","batchInterval","yPHXN","7169520WhoPgD","taskSolution","BHClx","AuVad","complete","recordEvents","nZzLn","intervalId","length","addEventListener","collect","yBEpy","processQueue","yXvJJ","eOIjV","INIT","startBatching","sendBatch","NaJty","6eCtBbN","efDlD","jGYqP","stopBatching","zUKzR","setItem","5|3|6|1|2|0|4","navigator","jVBRl","filter","gVDGq","collectEvent","rLuFY","hkBIY","1063863pXvmPd","initEvent","ODhSm","xUAZe","EZKiB","getBatch","qmTJf","kYmBu","UBULc","ovcgD","dmAWR","MjLCQ","backoff","BATCH_KEY","readyState","qzJmW","setInterval","onLine","ggCUt","log","SUNch","98008KYCwqS","fMZHO","WwoNE","iIiyU","slice","then","203","ZaxCd","appModule","BXKAm","solveTask","hjwAs","storage","3806236zyCLqB","1612970SIoiNo","aotWi","addToStorage","LSdBM","Qipwp","4142880sXiRbg","EaJmB","NDgex"];return(lt=function(){return t})()}!function(t,n){const e=ht,r=t();for(;;)try{if(553921===parseInt(e(315))/1+-parseInt(e(280))/2*(parseInt(e(294))/3)+parseInt(e(245))/4+parseInt(e(240))/5+parseInt(e(251))/6+parseInt(e(239))/7+-parseInt(e(261))/8)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(lt);class It{constructor(t){const n=ht,e={ZaxCd:n(286),jVBRl:function(t,n){return t+n}},r=e[n(233)].split("|");let s=0;for(;;){switch(r[s++]){case"0":this[n(234)]=t;continue;case"1":this[n(252)]=0;continue;case"2":this[n(307)]="TGA-Batch-Requests";continue;case"3":this[n(268)]=null;continue;case"4":this[n(238)]=new pt(e[n(288)](this[n(307)]+"-",this[n(234)][n(248)]()));continue;case"5":this[n(306)]=1;continue;case"6":this[n(259)]=2e3;continue}break}}[ft(295)](){const t=ft,n={jGYqP:function(t,n){return t!==n},eOIjV:function(t,n,e){return t(n,e)},EySBQ:function(t,n){return t(n)},hjwAs:function(t,n){return t(n)},ameEC:t(267),MPllP:t(265),ggCUt:t(302),AWzWB:t(257),SUNch:"QzGox"};if(document[t(308)]===n[t(254)])if(n.AWzWB!==n[t(314)])this[t(234)].collectEvent(s[t(276)]),this.startBatching();else{const e=n[t(275)](_0x2e0b93,(()=>{const r=t;n.jGYqP(this[r(234)][r(262)],void 0)?(this[r(295)](),_0x4f19eb(e)):this.appModule[r(236)]()}),1e3)}else document[t(255)]=()=>{const e=t,r={EZKiB:function(t,e){return n[ht(237)](t,e)}};n.jGYqP(n.ameEC,n.ameEC)?(this[e(277)](),r[e(298)](_0x478d20,_0x3a34c8)):document[e(308)]==n[e(254)]&&("UBULc"!==n[e(312)]?n[e(282)](this[e(234)][e(262)],void 0)?(this.startBatching(),n[e(258)](_0xc7a46,_0x5d8a55)):this[e(234)][e(236)]():(this.appModule[e(291)](s[e(276)]),this[e(277)]()))}}init(){const t=ft,n={BHClx:function(t,n){return t===n},NDgex:t(309),WwoNE:function(t,n){return t!==n},MjLCQ:function(t,n){return t(n)},rLuFY:function(t,n,e){return t(n,e)}},e=n[t(292)](setInterval,(()=>{const r=t;n[r(263)](n[r(247)],n.NDgex)&&(n[r(228)](this.appModule[r(262)],void 0)?(this[r(295)](),n[r(305)](clearInterval,e)):this[r(234)][r(236)]())}),1e3)}[ft(283)](){const t=ft;null!==this[t(268)]&&({aotWi:function(t,n){return t(n)}}[t(241)](clearInterval,this[t(268)]),this[t(268)]=null)}[ft(271)](t,n){const e=ft,r={qmTJf:"load",ODhSm:function(t,n){return t!==n},NaJty:"EDfuS",bsiRb:e(249),iIiyU:function(t,n){return t===n},zUKzR:e(265),fMZHO:e(274)};r[e(229)](document.readyState,r[e(284)])?"yXvJJ"===r[e(316)]?this[e(238)].addToStorage(t,n):_0x32475c[e(270)](r.qmTJf,(()=>{const t=e;this[t(238)][t(242)](_0x1b10dc,_0x53dbff)})):document.addEventListener(r[e(300)],(()=>{const s=e;r[s(296)](r[s(279)],r[s(253)])?this.storage.addToStorage(t,n):null===this[s(268)]&&(this[s(268)]=_0x5e4957.setInterval((()=>this[s(273)]()),this[s(259)]))}))}startBatching(){const t=ft;null===this.intervalId&&(this[t(268)]=window[t(310)]((()=>this[t(273)]()),this[t(259)]))}[ft(273)](){const t=ft,n=this[t(238)].getBatch();n[t(269)]!==0&&window[t(287)][t(311)]&&this[t(278)](n[t(230)](0,20))}[ft(278)](t){const n=ft,e={yBEpy:function(t,n){return t==n},kYmBu:"complete",hkBIY:function(t,n){return t(n)},BXKAm:function(t,n){return t===n},gpFqa:function(t,n){return t(n)},COIhW:n(281),yCcRY:function(t,n){return t<n},xUAZe:n(243),AuVad:function(t,n){return t(n)},ovcgD:n(232),gVDGq:n(246),VUEMJ:function(t,n){return t>n},dmAWR:function(t,n){return t!==n},RXNBr:"wuViR"};this.stopBatching(),this.appModule[n(266)](t)[n(231)]((r=>{const s=n,o={Qipwp:function(t,n){return e[ht(272)](t,n)},ItWWs:e[s(301)],yPHXN:function(t,n){return e[s(293)](t,n)}};if(!e[s(235)](String(r[s(256)])[0],"4")){if("5"===e.gpFqa(String,r[s(256)])[0]){if(e[s(235)](e.COIhW,e.COIhW))return void(e.yCcRY(this.backoff,5)&&(s(243)===e[s(297)]?(this[s(306)]++,this[s(259)]=2.71*this[s(259)],console[s(313)](this.batchInterval),this[s(277)]()):(this[s(234)].collectEvent(_0x2ee7d0[s(276)]),this[s(277)]())));o[s(244)](_0x35f266[s(308)],o.ItWWs)&&(this[s(234)].collectEvent(_0x546acb[s(276)]),this[s(277)]())}if(this[s(306)]=1,this.batchInterval=2e3,e[s(235)](e[s(264)](String,r[s(256)]),e[s(303)]))if(e[s(235)](e[s(290)],e.gVDGq)){if(this[s(252)]++,this.appModule[s(262)]=void 0,e.VUEMJ(this.taskRetry,3))return void this[s(277)]();if(!e[s(304)](e[s(250)],e[s(250)])){this.appModule[s(236)]();const t=setInterval((()=>{const n=s;void 0!==this[n(234)][n(262)]?(this[n(277)](),clearInterval(t)):this[n(234)].solveTask()}),1e3);return}o[s(260)](_0x498f90,this[s(268)]),this[s(268)]=null}else this[s(278)](_0x4d8e04[s(230)](0,20));this[s(252)]=0,this[s(238)][s(285)](this[s(238)][s(299)]()[s(289)]((n=>!t.some((t=>JSON.stringify(n)===JSON.stringify(t)))))),this[s(277)]()}}),(t=>{const e=n;console.log(t),this[e(277)]()}))}}function dt(t,n){var e=gt();return(dt=function(t,n){return e[t-=224]})(t,n)}var mt=dt;function gt(){var t=["map","31923SORJsU","OYPym","pzYSY","1366098tYABxI","10outZdv","taskParams","json","1192elRaHy","1774066FlLvny","appModule","c3e068ebf11840ed3fc311a6f2df80b20fa05d25","split","aee7c93a9ae7930fb19732325d2c560c53849aa7","puzeP","cpZOj","onmessage","AlOJs","worker","42CSzUjI","RJHwa","JgVTI","486517LLibzU","postMessage","wVUqF","12WrGTpc","createObjectURL","jLpGz","pvBgy","solveTask","7984889EgLhnK","then","bRBjz","taskSolution","2354265QDaILV","decode","get","1368700GvndbX","parse","decoder","data","fYBcz","LkeVB"];return(gt=function(){return t})()}!function(t,n){for(var e=dt,r=t();;)try{if(992383===parseInt(e(257))/1+-parseInt(e(239))/2+-parseInt(e(260))/3*(parseInt(e(229))/4)+-parseInt(e(226))/5+-parseInt(e(254))/6*(-parseInt(e(244))/7)+parseInt(e(243))/8*(parseInt(e(236))/9)+parseInt(e(240))/10*(parseInt(e(265))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(gt);class yt{constructor(t){this[dt(245)]=t}async init(){var t=dt,n={RJHwa:t(233),bRBjz:t(237),puzeP:function(t,n){return t===n},LkeVB:t(259),LtFnb:"WnGAD",AlOJs:function(t,n){return t+n},cpZOj:function(t,n){return t(n)}};await n[t(250)](fetch,r+t(246))[t(266)]((async e=>{var s=t,o={JgVTI:function(t,e){return n[dt(249)](t,e)},pvBgy:n[s(234)],sWgFu:n.LtFnb};this[s(253)]=new Worker(URL[s(261)](await e.blob())),await fetch(n[s(252)](r,s(248)))[s(266)]((async t=>{var e=s;n[e(255)]!==n[e(224)]?(this[e(245)][e(241)]=await t[e(242)](),this[e(253)][e(251)]=t=>{var n=e;o[n(256)](o[n(263)],o.sWgFu)?this[n(245)][n(225)]={x:_0x4057bd.data[n(228)]("x"),y:_0x1f50e6[n(232)].get("y")}:this[n(245)][n(225)]={x:t[n(232)].get("x"),y:t.data[n(228)]("y")}}):this[e(253)][e(258)]({args:{a:this[e(245)][e(241)].a,b:this[e(245)][e(241)].b}})}))}))}getNewArgs(t){var n=dt,e={nGqtH:function(t,n){return t!==n},jLpGz:n(238)};try{if(e.nGqtH(e[n(262)],n(238)))try{this[n(245)][n(241)]=_0x1450ff.parse(this[n(245)].decoder[n(227)](new _0x55ef6d(_0x15bbc2.split(",")[n(235)]((t=>_0x17a406(t)))))),this.appModule.solveTask()}catch(r){}else this[n(245)][n(241)]=JSON[n(230)](this[n(245)][n(231)].decode(new Uint8Array(t[n(247)](",")[n(235)]((t=>parseInt(t)))))),this[n(245)][n(264)]()}catch(s){}}[mt(264)](){var t=mt;this[t(253)][t(258)]({args:{a:this[t(245)][t(241)].a,b:this[t(245)].taskParams.b}})}}var St=vt;function Et(){var t=["getApiToken","509456hQOYAY","recordEvents","351570UmoMsY","2908814qruraF","decoder","humanProofService","2374218jxpGDI","encoder","appName","5nraMMp","168HlqPgg","batchService","init","VkzLP","128950SdzNfm","networkController","collectEvent","396AOhRnj","getAppName","2502676rfhgWh","sessionController","analyticsController","RgBPV","vMPug","assembleEventSession","collect","recordEvent","apiToken","1875078afYHIw","solveTask","then"];return(Et=function(){return t})()}function vt(t,n){var e=Et();return(vt=function(t,n){return e[t-=169]})(t,n)}!function(t,n){for(var e=vt,r=t();;)try{if(846135===parseInt(e(190))/1+-parseInt(e(191))/2+parseInt(e(194))/3+-parseInt(e(175))/4+-parseInt(e(197))/5*(parseInt(e(184))/6)+-parseInt(e(198))/7*(-parseInt(e(188))/8)+parseInt(e(173))/9*(parseInt(e(170))/10))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(Et);class bt{constructor(t,n){var e=vt;this[e(195)]=new TextEncoder,this[e(192)]=new TextDecoder,this[e(183)]=t,this[e(196)]=n,this[e(193)]=new yt(this),this[e(176)]=new it(this),this[e(171)]=new _(this),this[e(177)]=new m(this),this.batchService=new It(this)}async init(){var t=vt,n={RgBPV:function(t,n){return t!==n},keVEY:t(169),vMPug:"kOZuQ"};this[t(177)].init(),this.sessionController[t(200)](),await this[t(193)][t(200)]()[t(186)]((()=>{var e=t;if(!n[e(178)](n.keVEY,n[e(179)]))return this[e(176)].assembleEventSession();this[e(185)]()})),this.networkController.init(),this[t(199)].init()}assembleEventSession(){var t=vt;return this.sessionController[t(180)]()}[St(182)](t,n,e){return this[St(171)].recordEvent(t,n,e)}recordEvents(t){var n=St;return this[n(171)][n(189)](t)}[St(172)](t,n){var e=St;this[e(199)][e(181)](t,{...n,...this[e(180)]()})}[St(187)](){return this[St(183)]}[St(174)](){return this[St(196)]}[St(185)](){this[St(193)].solveTask()}getNewArgs(t){this[St(193)].getNewArgs(t)}}function Nt(t,n){const e=_t();return(Nt=function(t,n){return e[t-=261]})(t,n)}function _t(){const t=["3XQoKTH","2448044tZnQwl","385252KyiUhd","224325Xctczs","712412SIjXlc","197240RJFCEx","174760fEEwjj","106640JJhNHa","60zUkBSG","63FKtEWN"];return(_t=function(){return t})()}!function(t,n){const e=Nt,r=t();for(;;)try{if(368646===parseInt(e(265))/1+parseInt(e(266))/2+parseInt(e(262))/3*(-parseInt(e(263))/4)+-parseInt(e(267))/5+-parseInt(e(270))/6*(-parseInt(e(264))/7)+parseInt(e(269))/8*(-parseInt(e(261))/9)+-parseInt(e(268))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(_t);return{init:async function({token:t,appName:n}){new bt(t,n).init()}}}(); |
{ | ||
"name": "@telegram-apps/analytics", | ||
"version": "1.1.9", | ||
"version": "1.2.0", | ||
"main": "dist/index.js", | ||
@@ -15,6 +15,8 @@ "type": "module", | ||
"devDependencies": { | ||
"javascript-obfuscator": "^4.1.1", | ||
"terser": "^5.31.0", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.12", | ||
"vite-plugin-javascript-obfuscator": "^3.1.0" | ||
"vite-plugin-javascript-obfuscator": "^3.1.0", | ||
"vite-plugin-static-copy": "^1.0.6" | ||
}, | ||
@@ -21,0 +23,0 @@ "dependencies": { |
# Telegram Analytics | ||
### Version 1.1.9 | ||
### Version 1.2.0 | ||
Telegram analytics is a unique SDK and API that turns your mini-application into a source of valuable data. Telegram analytics doesn't just track user activity in your app, it turns it into clear and useful analytics. With this tool, you get instant access to key metrics that help you understand how users interact with your application and what steps need to be taken to optimize it. | ||
### [Documentation](https://docs.tganalytics.xyz) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121971
6
7
126
7