@tonconnect/ui 2.0.1-beta.3 → 2.0.1-beta.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/tonconnect-ui.min.js +3 -3
- package/dist/tonconnect-ui.min.js.map +1 -1
- package/lib/index.cjs +39 -3
- package/lib/index.cjs.map +1 -1
- package/lib/index.mjs +39 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -37,9 +37,9 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
|
|
|
37
37
|
body.${An} ${Mn} *:focus {
|
|
38
38
|
outline: none;
|
|
39
39
|
}
|
|
40
|
-
`,{})};function $n(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function Pn(e){return e.toString()+"px"}var In={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",s="object",a="string",l="major",c="model",u="name",d="type",h="vendor",f="version",g="architecture",p="console",w="mobile",m="tablet",v="smarttv",y="wearable",b="embedded",C="Amazon",x="Apple",_="ASUS",k="BlackBerry",S="Browser",E="Chrome",R="Firefox",L="Google",M="Huawei",T="LG",A="Microsoft",O="Motorola",$="Opera",P="Samsung",I="Sharp",N="Sony",U="Xiaomi",W="Zebra",j="Facebook",B="Chromium OS",H="Mac OS",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===a&&-1!==F(t).indexOf(F(e))},F=function(e){return e.toLowerCase()},D=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},q=function(e,t){for(var n,i,a,l,c,u,d=0;d<t.length&&!c;){var h=t[d],f=t[d+1];for(n=i=0;n<h.length&&!c&&h[n];)if(c=h[n++].exec(e))for(a=0;a<f.length;a++)u=c[++i],typeof(l=f[a])===s&&l.length>0?2===l.length?typeof l[1]==o?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==o||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):r:this[l[0]]=u?l[1].call(this,u,l[2]):r:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):r):this[l]=u||r;d+=2}},z=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(V(t[n][o],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r:n;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,$+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[u,$]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],f],[/\bfocus\/([\w\.]+)/i],[f,[u,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,$+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,$+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[f,[u,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],f],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,E+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,E+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,f],[/(cobalt)\/([\w\.]+)/i],[u,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,F]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",F]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,F]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,P],[d,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,P],[d,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[h,x],[d,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,x],[d,m]],[/(macintosh);/i],[c,[h,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,I],[d,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,M],[d,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,M],[d,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,U],[d,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,U],[d,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[d,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[d,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[d,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,O],[d,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,O],[d,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,T],[d,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,T],[d,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[d,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[d,w]],[/(pixel c)\b/i],[c,[h,L],[d,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,L],[d,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,N],[d,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,N],[d,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[d,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,C],[d,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,C],[d,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[d,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,k],[d,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,_],[d,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,_],[d,w]],[/(nexus 9)/i],[c,[h,"HTC"],[d,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[d,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[d,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[d,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[d,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[d,m]],[/(surface duo)/i],[c,[h,A],[d,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[d,w]],[/(u304aa)/i],[c,[h,"AT&T"],[d,w]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[d,w]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[d,m]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[d,m]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[d,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[d,m]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[d,m]],[/\b(k88) b/i],[c,[h,"ZTE"],[d,m]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[d,w]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[d,w]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[d,m]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[d,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[d,m]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[d,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[d,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[d,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[d,w]],[/\b(ph-1) /i],[c,[h,"Essential"],[d,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[d,m]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[d,m]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[d,m]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[d,m]],[/(sprint) (\w+)/i],[h,c,[d,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,A],[d,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,W],[d,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,W],[d,w]],[/smart-tv.+(samsung)/i],[h,[d,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,P],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,T],[d,v]],[/(apple) ?tv/i],[h,[c,x+" TV"],[d,v]],[/crkey/i],[[c,E+"cast"],[h,L],[d,v]],[/droid.+aft(\w)( bui|\))/i],[c,[h,C],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,I],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,N],[d,v]],[/(mitv-\w{5}) bui/i],[c,[h,U],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[h,c,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,D],[c,D],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[d,p]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[d,p]],[/(playstation [345portablevi]+)/i],[c,[h,N],[d,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,A],[d,p]],[/((pebble))app/i],[h,c,[d,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[h,x],[d,y]],[/droid.+; (glass) \d/i],[c,[h,L],[d,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,W],[d,y]],[/(quest( 2| pro)?)/i],[c,[h,j],[d,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,b]],[/(aeobc)\b/i],[c,[h,C],[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[d,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[f,z,Z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[f,z,Z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[u,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[u,E+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,B],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,f]]},Y=function(e,t){if(typeof e===s&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var p=typeof n!==i&&n.navigator?n.navigator:r,v=e||(p&&p.userAgent?p.userAgent:""),y=p&&p.userAgentData?p.userAgentData:r,b=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,C=p&&p.userAgent==v;return this.getBrowser=function(){var e,t={};return t[u]=r,t[f]=r,q.call(t,v,b.browser),t[l]=typeof(e=t[f])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:r,C&&p&&p.brave&&typeof p.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[g]=r,q.call(e,v,b.cpu),e},this.getDevice=function(){var e={};return e[h]=r,e[c]=r,e[d]=r,q.call(e,v,b.device),C&&!e[d]&&y&&y.mobile&&(e[d]=w),C&&"Macintosh"==e[c]&&p&&typeof p.standalone!==i&&p.maxTouchPoints&&p.maxTouchPoints>2&&(e[c]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[u]=r,e[f]=r,q.call(e,v,b.engine),e},this.getOS=function(){var e={};return e[u]=r,e[f]=r,q.call(e,v,b.os),C&&!e[u]&&y&&"Unknown"!=y.platform&&(e[u]=y.platform.replace(/chrome os/i,B).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(e){return v=typeof e===a&&e.length>350?D(e,350):e,this},this.setUA(v),this};Y.VERSION="1.0.35",Y.BROWSER=K([u,f,l]),Y.CPU=K([g]),Y.DEVICE=K([c,h,d,p,w,v,m,y,b]),Y.ENGINE=Y.OS=K([u,f]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var Q=typeof n!==i&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var J=new Y;Q.ua=J.getResult(),Q.ua.get=function(){return J.getUA()},Q.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:c)}(In,In.exports);const Nn=In.exports,Un=class{constructor(){__publicField(this,"storage",{})}static getInstance(){return Un.instance||(Un.instance=new Un),Un.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let Wn=Un;__publicField(Wn,"instance");class jn extends I{constructor(...e){super(...e),Object.setPrototypeOf(this,jn.prototype)}}function Bn(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch(t){}}function Hn(e,t="_self"){Bn("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Kn(e){Hn(e,"_blank")}function Vn(e,t){const n=setTimeout((()=>{Yn("safari")||Gn("android")&&Yn("firefox")||t()}),200);window.addEventListener("blur",(()=>clearTimeout(n)),{once:!0}),Hn(e,"_self")}function Fn(e){return __async(this,null,(function*(){yield new Promise((e=>requestAnimationFrame(e))),e()}))}function Dn(e){"complete"!==document.readyState?window.addEventListener("load",(()=>Fn((()=>Dn(e)))),{once:!0}):e.forEach((e=>{(new window.Image).src=e}))}function qn(){if("undefined"!=typeof window)return window}function zn(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new jn("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Wn.getInstance()}function Zn(){var e,t;const n=(new Nn).getResult(),r=null==(e=n.os.name)?void 0:e.toLowerCase();let o;switch(!0){case"ios"===r:o="ios";break;case"android"===r:o="android";break;case"mac os"===r:o="macos";break;case"linux"===r:o="linux";break;case null==r?void 0:r.includes("windows"):o="windows"}const i=null==(t=n.browser.name)?void 0:t.toLowerCase();let s;switch(!0){case"chrome"===i:s="chrome";break;case"firefox"===i:s="firefox";break;case null==i?void 0:i.includes("safari"):s="safari";break;case null==i?void 0:i.includes("opera"):s="opera"}return{os:o,browser:s}}function Gn(...e){return e.includes(Zn().os)}function Yn(...e){return e.includes(Zn().browser)}function Qn(e,t){return t+new URL(e).search}class Jn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=zn()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class Xn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=zn()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class er{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=zn()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[tr,nr]=Ye({status:"closed",closeReason:null}),rr=et((()=>"opened"===tr().status)),[or,ir]=Ye({status:"closed",closeReason:null}),sr=et((()=>"opened"===or().status)),ar=et((()=>{const e=or();return"opened"===e.status?e.walletInfo:null}));let lr="undefined"!=typeof window?new er:void 0;const[cr,ur]=Ye((null==lr?void 0:lr.getLastSelectedWalletInfo())||null),dr=e=>{lr||(lr=new er),e?lr.setLastSelectedWalletInfo(e):lr.removeLastSelectedWalletInfo(),ur(e)},[hr,fr]=Ye(null),gr={common:{close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Копировать ссылку",linkCopied:"Ссылка скопирована",copied:"Ссылка скопирована",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},button:{connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},notifications:{confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."}},walletItem:{walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},walletModal:{loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете кошелёк для подключения",openWalletOnTelegram:"Открыть Wallet в Telegram",openLink:"Открыть ссылку",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueIn:"Продолжите в {{ name }}…",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",getWallet:"Скачать {{ name }}",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"}},actionModal:{confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}},pr={en:wr({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."}},walletItem:{walletOn:"Wallet On",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your wallet",openWalletOnTelegramOrSelect:"Open Wallet in Telegram or select your wallet to connect",openWalletOnTelegram:"Open Wallet in Telegram",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueIn:"Continue in {{ name }}…",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in {{ name }} on desktop…",openWalletOnTelegram:"Open Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"}},actionModal:{confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}}),ru:wr(gr)};function wr(e){const t=n=>{Object.entries(n).forEach((([r,o])=>{if("object"==typeof o&&o)return t(o);if("string"==typeof o){if("$"===o[0]){const t=o.slice(1).split(".");let i=e;t.forEach((e=>{if(!(e in i))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);i=i[e]})),n[r]=i}"\\$"===o.slice(0,2)&&(n[r]=o.slice(1))}}))};return t(e),e}const mr=st(),vr=Symbol("store-raw"),yr=Symbol("store-node"),br=Symbol("store-name");function Cr(e,t){let n=e[Pe];if(!n&&(Object.defineProperty(e,Pe,{value:n=new Proxy(e,Lr)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function xr(e){let t;return null!=e&&"object"==typeof e&&(e[Pe]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function _r(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[vr])return n;if(!xr(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,i=e.length;n<i;n++)o=e[n],(r=_r(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const n=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let a=0,l=n.length;a<l;a++)i=n[a],s[i].get||(o=e[i],(r=_r(o,t))!==o&&(e[i]=r))}return e}function kr(e){let t=e[yr];return t||Object.defineProperty(e,yr,{value:t={}}),t}function Sr(e,t,n){return e[t]||(e[t]=Rr(n))}function Er(e){if(it()){const t=kr(e);(t._||(t._=Rr()))()}}function Rr(e){const[t,n]=Ye(e,{equals:!1,internal:!0});return t.$=n,t}const Lr={get(e,t,n){if(t===vr)return e;if(t===Pe)return n;if(t===Ie)return Er(e),n;const r=kr(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===yr||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!it()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=Sr(r,t,i)())}return xr(i)?Cr(i):i},has(e,t){return t===vr||t===Pe||t===Ie||t===yr||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return Er(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Pe&&t!==yr&&t!==br?(delete n.value,delete n.writable,n.get=()=>e[Pe][t],n):n}};function Mr(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;void 0===n?delete e[t]:e[t]=n;let s,a=kr(e);(s=Sr(a,t,o))&&s.$((()=>n)),Array.isArray(e)&&e.length!==i&&(s=Sr(a,"length",i))&&s.$(e.length),(s=a._)&&s.$()}function Tr(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Mr(e,o,t[o])}}function Ar(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)Ar(e,[r[o]].concat(t),n);return}if(s&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&Ar(e,[o].concat(t),n);return}if(s&&"object"===i){const{from:o=0,to:i=e.length-1,by:s=1}=r;for(let r=o;r<=i;r+=s)Ar(e,[r].concat(t),n);return}if(t.length>1)return void Ar(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let i=t[0];"function"==typeof i&&(i=i(o,n),i===o)||void 0===r&&null==i||(i=_r(i),void 0===r||xr(o)&&xr(i)&&!Array.isArray(i)?Tr(o,i):Mr(e,r,i))}function Or(...[e,t]){const n=_r(e||{}),r=Array.isArray(n);return[Cr(n),function(...e){nt((()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=_r(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&Mr(e,n,r)}Mr(e,"length",r)}else Tr(e,t)}(n,e[0]):Ar(n,e)}))}]}const $r={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};var Pr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ir}(e)}(e)};var Ir="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Nr(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Hr((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ur(e,t,n){return e.concat(t).map((function(e){return Nr(e,n)}))}function Wr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function jr(e,t){try{return t in e}catch(n){return!1}}function Br(e,t,n){var r={};return n.isMergeableObject(e)&&Wr(e).forEach((function(t){r[t]=Nr(e[t],n)})),Wr(t).forEach((function(o){(function(e,t){return jr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(jr(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return Hr;var n=t.customMerge(e);return"function"==typeof n?n:Hr}(o,n)(e[o],t[o],n):r[o]=Nr(t[o],n))})),r}function Hr(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ur,n.isMergeableObject=n.isMergeableObject||Pr,n.cloneUnlessOtherwiseSpecified=Nr;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Br(e,t,n):Nr(t,n)}Hr.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Hr(e,n,t)}),{})};var Kr=Hr;function Vr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fr(e){var t,n;return!1!==Vr(e)&&(void 0===(t=e.constructor)||!1!==Vr(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Dr(e,t){if(!e)return t;return Kr(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Fr})}const[qr,zr]=Or({theme:un.LIGHT,colors:$r,borderRadius:"m"}),Zr={[un.LIGHT]:$r,[un.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Gr={[un.LIGHT]:void 0,[un.DARK]:void 0};function Yr(e,t){t&&(Gr[un.DARK]=Dr(t[un.DARK],Gr[un.DARK]),Gr[un.LIGHT]=Dr(t[un.LIGHT],Gr[un.LIGHT])),zr({theme:e,colors:Dr(Gr[e],Zr[e])})}const Qr=Rn.div`
|
|
40
|
+
`,{})};function $n(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function Pn(e){return e.toString()+"px"}var In={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",s="object",a="string",l="major",c="model",u="name",d="type",h="vendor",f="version",g="architecture",p="console",w="mobile",m="tablet",v="smarttv",y="wearable",b="embedded",C="Amazon",x="Apple",_="ASUS",k="BlackBerry",S="Browser",E="Chrome",R="Firefox",L="Google",M="Huawei",T="LG",A="Microsoft",O="Motorola",$="Opera",P="Samsung",I="Sharp",N="Sony",U="Xiaomi",W="Zebra",j="Facebook",B="Chromium OS",H="Mac OS",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===a&&-1!==F(t).indexOf(F(e))},F=function(e){return e.toLowerCase()},D=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},q=function(e,t){for(var n,i,a,l,c,u,d=0;d<t.length&&!c;){var h=t[d],f=t[d+1];for(n=i=0;n<h.length&&!c&&h[n];)if(c=h[n++].exec(e))for(a=0;a<f.length;a++)u=c[++i],typeof(l=f[a])===s&&l.length>0?2===l.length?typeof l[1]==o?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==o||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):r:this[l[0]]=u?l[1].call(this,u,l[2]):r:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):r):this[l]=u||r;d+=2}},z=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(V(t[n][o],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r:n;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,$+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[u,$]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],f],[/\bfocus\/([\w\.]+)/i],[f,[u,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,$+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,$+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[f,[u,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],f],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,E+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,E+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,f],[/(cobalt)\/([\w\.]+)/i],[u,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,F]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",F]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,F]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,P],[d,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,P],[d,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[h,x],[d,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,x],[d,m]],[/(macintosh);/i],[c,[h,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,I],[d,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,M],[d,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,M],[d,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,U],[d,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,U],[d,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[d,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[d,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[d,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,O],[d,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,O],[d,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,T],[d,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,T],[d,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[d,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[d,w]],[/(pixel c)\b/i],[c,[h,L],[d,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,L],[d,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,N],[d,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,N],[d,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[d,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,C],[d,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,C],[d,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[d,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,k],[d,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,_],[d,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,_],[d,w]],[/(nexus 9)/i],[c,[h,"HTC"],[d,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[d,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[d,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[d,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[d,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[d,m]],[/(surface duo)/i],[c,[h,A],[d,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[d,w]],[/(u304aa)/i],[c,[h,"AT&T"],[d,w]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[d,w]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[d,m]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[d,m]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[d,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[d,m]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[d,m]],[/\b(k88) b/i],[c,[h,"ZTE"],[d,m]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[d,w]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[d,w]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[d,m]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[d,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[d,m]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[d,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[d,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[d,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[d,w]],[/\b(ph-1) /i],[c,[h,"Essential"],[d,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[d,m]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[d,m]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[d,m]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[d,m]],[/(sprint) (\w+)/i],[h,c,[d,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,A],[d,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,W],[d,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,W],[d,w]],[/smart-tv.+(samsung)/i],[h,[d,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,P],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,T],[d,v]],[/(apple) ?tv/i],[h,[c,x+" TV"],[d,v]],[/crkey/i],[[c,E+"cast"],[h,L],[d,v]],[/droid.+aft(\w)( bui|\))/i],[c,[h,C],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,I],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,N],[d,v]],[/(mitv-\w{5}) bui/i],[c,[h,U],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[h,c,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,D],[c,D],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[d,p]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[d,p]],[/(playstation [345portablevi]+)/i],[c,[h,N],[d,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,A],[d,p]],[/((pebble))app/i],[h,c,[d,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[h,x],[d,y]],[/droid.+; (glass) \d/i],[c,[h,L],[d,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,W],[d,y]],[/(quest( 2| pro)?)/i],[c,[h,j],[d,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,b]],[/(aeobc)\b/i],[c,[h,C],[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[d,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[f,z,Z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[f,z,Z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[u,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[u,E+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,B],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,f]]},Y=function(e,t){if(typeof e===s&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var p=typeof n!==i&&n.navigator?n.navigator:r,v=e||(p&&p.userAgent?p.userAgent:""),y=p&&p.userAgentData?p.userAgentData:r,b=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,C=p&&p.userAgent==v;return this.getBrowser=function(){var e,t={};return t[u]=r,t[f]=r,q.call(t,v,b.browser),t[l]=typeof(e=t[f])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:r,C&&p&&p.brave&&typeof p.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[g]=r,q.call(e,v,b.cpu),e},this.getDevice=function(){var e={};return e[h]=r,e[c]=r,e[d]=r,q.call(e,v,b.device),C&&!e[d]&&y&&y.mobile&&(e[d]=w),C&&"Macintosh"==e[c]&&p&&typeof p.standalone!==i&&p.maxTouchPoints&&p.maxTouchPoints>2&&(e[c]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[u]=r,e[f]=r,q.call(e,v,b.engine),e},this.getOS=function(){var e={};return e[u]=r,e[f]=r,q.call(e,v,b.os),C&&!e[u]&&y&&"Unknown"!=y.platform&&(e[u]=y.platform.replace(/chrome os/i,B).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(e){return v=typeof e===a&&e.length>350?D(e,350):e,this},this.setUA(v),this};Y.VERSION="1.0.35",Y.BROWSER=K([u,f,l]),Y.CPU=K([g]),Y.DEVICE=K([c,h,d,p,w,v,m,y,b]),Y.ENGINE=Y.OS=K([u,f]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var Q=typeof n!==i&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var J=new Y;Q.ua=J.getResult(),Q.ua.get=function(){return J.getUA()},Q.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:c)}(In,In.exports);const Nn=In.exports,Un=class{constructor(){__publicField(this,"storage",{})}static getInstance(){return Un.instance||(Un.instance=new Un),Un.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let Wn=Un;__publicField(Wn,"instance");class jn extends I{constructor(...e){super(...e),Object.setPrototypeOf(this,jn.prototype)}}function Bn(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch(t){}}function Hn(e,t="_self"){Bn("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Kn(e){Hn(e,"_blank")}function Vn(e,t){const n=setTimeout((()=>{Yn("safari")||Gn("android")&&Yn("firefox")||t()}),200);window.addEventListener("blur",(()=>clearTimeout(n)),{once:!0}),Hn(e,"_self")}function Fn(e){return __async(this,null,(function*(){yield new Promise((e=>requestAnimationFrame(e))),e()}))}function Dn(e){"complete"!==document.readyState?window.addEventListener("load",(()=>Fn((()=>Dn(e)))),{once:!0}):e.forEach((e=>{(new window.Image).src=e}))}function qn(){if("undefined"!=typeof window)return window}function zn(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new jn("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Wn.getInstance()}function Zn(){var e,t,n;const r=(new Nn).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const s=null==(n=r.browser.name)?void 0:n.toLowerCase();let a;switch(!0){case"chrome"===s:a="chrome";break;case"firefox"===s:a="firefox";break;case null==s?void 0:s.includes("safari"):a="safari";break;case null==s?void 0:s.includes("opera"):a="opera"}return{os:i,browser:a}}function Gn(...e){return e.includes(Zn().os)}function Yn(...e){return e.includes(Zn().browser)}function Qn(e,t){return t+new URL(e).search}class Jn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=zn()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class Xn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=zn()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class er{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=zn()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[tr,nr]=Ye({status:"closed",closeReason:null}),rr=et((()=>"opened"===tr().status)),[or,ir]=Ye({status:"closed",closeReason:null}),sr=et((()=>"opened"===or().status)),ar=et((()=>{const e=or();return"opened"===e.status?e.walletInfo:null}));let lr="undefined"!=typeof window?new er:void 0;const[cr,ur]=Ye((null==lr?void 0:lr.getLastSelectedWalletInfo())||null),dr=e=>{lr||(lr=new er),e?lr.setLastSelectedWalletInfo(e):lr.removeLastSelectedWalletInfo(),ur(e)},[hr,fr]=Ye(null),gr={common:{close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Копировать ссылку",linkCopied:"Ссылка скопирована",copied:"Ссылка скопирована",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},button:{connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},notifications:{confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."}},walletItem:{walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},walletModal:{loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете кошелёк для подключения",openWalletOnTelegram:"Открыть Wallet в Telegram",openLink:"Открыть ссылку",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueIn:"Продолжите в {{ name }}…",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",getWallet:"Скачать {{ name }}",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"}},actionModal:{confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}},pr={en:wr({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."}},walletItem:{walletOn:"Wallet On",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your wallet",openWalletOnTelegramOrSelect:"Open Wallet in Telegram or select your wallet to connect",openWalletOnTelegram:"Open Wallet in Telegram",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueIn:"Continue in {{ name }}…",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in {{ name }} on desktop…",openWalletOnTelegram:"Open Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"}},actionModal:{confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}}),ru:wr(gr)};function wr(e){const t=n=>{Object.entries(n).forEach((([r,o])=>{if("object"==typeof o&&o)return t(o);if("string"==typeof o){if("$"===o[0]){const t=o.slice(1).split(".");let i=e;t.forEach((e=>{if(!(e in i))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);i=i[e]})),n[r]=i}"\\$"===o.slice(0,2)&&(n[r]=o.slice(1))}}))};return t(e),e}const mr=st(),vr=Symbol("store-raw"),yr=Symbol("store-node"),br=Symbol("store-name");function Cr(e,t){let n=e[Pe];if(!n&&(Object.defineProperty(e,Pe,{value:n=new Proxy(e,Lr)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function xr(e){let t;return null!=e&&"object"==typeof e&&(e[Pe]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function _r(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[vr])return n;if(!xr(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,i=e.length;n<i;n++)o=e[n],(r=_r(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const n=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let a=0,l=n.length;a<l;a++)i=n[a],s[i].get||(o=e[i],(r=_r(o,t))!==o&&(e[i]=r))}return e}function kr(e){let t=e[yr];return t||Object.defineProperty(e,yr,{value:t={}}),t}function Sr(e,t,n){return e[t]||(e[t]=Rr(n))}function Er(e){if(it()){const t=kr(e);(t._||(t._=Rr()))()}}function Rr(e){const[t,n]=Ye(e,{equals:!1,internal:!0});return t.$=n,t}const Lr={get(e,t,n){if(t===vr)return e;if(t===Pe)return n;if(t===Ie)return Er(e),n;const r=kr(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===yr||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!it()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=Sr(r,t,i)())}return xr(i)?Cr(i):i},has(e,t){return t===vr||t===Pe||t===Ie||t===yr||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return Er(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Pe&&t!==yr&&t!==br?(delete n.value,delete n.writable,n.get=()=>e[Pe][t],n):n}};function Mr(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;void 0===n?delete e[t]:e[t]=n;let s,a=kr(e);(s=Sr(a,t,o))&&s.$((()=>n)),Array.isArray(e)&&e.length!==i&&(s=Sr(a,"length",i))&&s.$(e.length),(s=a._)&&s.$()}function Tr(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Mr(e,o,t[o])}}function Ar(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)Ar(e,[r[o]].concat(t),n);return}if(s&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&Ar(e,[o].concat(t),n);return}if(s&&"object"===i){const{from:o=0,to:i=e.length-1,by:s=1}=r;for(let r=o;r<=i;r+=s)Ar(e,[r].concat(t),n);return}if(t.length>1)return void Ar(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let i=t[0];"function"==typeof i&&(i=i(o,n),i===o)||void 0===r&&null==i||(i=_r(i),void 0===r||xr(o)&&xr(i)&&!Array.isArray(i)?Tr(o,i):Mr(e,r,i))}function Or(...[e,t]){const n=_r(e||{}),r=Array.isArray(n);return[Cr(n),function(...e){nt((()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=_r(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&Mr(e,n,r)}Mr(e,"length",r)}else Tr(e,t)}(n,e[0]):Ar(n,e)}))}]}const $r={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};var Pr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ir}(e)}(e)};var Ir="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Nr(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Hr((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ur(e,t,n){return e.concat(t).map((function(e){return Nr(e,n)}))}function Wr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function jr(e,t){try{return t in e}catch(n){return!1}}function Br(e,t,n){var r={};return n.isMergeableObject(e)&&Wr(e).forEach((function(t){r[t]=Nr(e[t],n)})),Wr(t).forEach((function(o){(function(e,t){return jr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(jr(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return Hr;var n=t.customMerge(e);return"function"==typeof n?n:Hr}(o,n)(e[o],t[o],n):r[o]=Nr(t[o],n))})),r}function Hr(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ur,n.isMergeableObject=n.isMergeableObject||Pr,n.cloneUnlessOtherwiseSpecified=Nr;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Br(e,t,n):Nr(t,n)}Hr.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Hr(e,n,t)}),{})};var Kr=Hr;function Vr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fr(e){var t,n;return!1!==Vr(e)&&(void 0===(t=e.constructor)||!1!==Vr(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Dr(e,t){if(!e)return t;return Kr(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Fr})}const[qr,zr]=Or({theme:un.LIGHT,colors:$r,borderRadius:"m"}),Zr={[un.LIGHT]:$r,[un.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Gr={[un.LIGHT]:void 0,[un.DARK]:void 0};function Yr(e,t){t&&(Gr[un.DARK]=Dr(t[un.DARK],Gr[un.DARK]),Gr[un.LIGHT]=Dr(t[un.LIGHT],Gr[un.LIGHT])),zr({theme:e,colors:Dr(Gr[e],Zr[e])})}const Qr=Rn.div`
|
|
41
41
|
background-color: ${e=>e.theme.colors.background.secondary};
|
|
42
|
-
`,Jr=e=>{let t;const[n,r]=Ye(null);return Xe((()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",(()=>r(t))),()=>t.removeEventListener("load",(()=>r(t))))})),[Rt(Pt,{get when(){return n()},get children(){return n()}}),Rt(Pt,{get when(){return!n()},get children(){return Rt(Qr,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]};let Xr={};try{Xr=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=lo(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=lo(r),e=e.substr(n+1)}let r=function(e){let t={};if(!e.length)return t;let n,r,o,i,s=e.split("&");for(n=0;n<s.length;n++)r=s[n].split("="),o=lo(r[0]),i=null==r[1]?null:lo(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(Eu){}let eo="unknown";if((null==Xr?void 0:Xr.tgWebAppPlatform)&&(eo=null!=(t=Xr.tgWebAppPlatform)?t:"unknown"),"unknown"===eo){const e=qn();eo=null!=(o=null==(r=null==(n=null==e?void 0:e.Telegram)?void 0:n.WebApp)?void 0:r.platform)?o:"unknown"}let to="6.0";if((null==Xr?void 0:Xr.tgWebAppVersion)&&(to=Xr.tgWebAppVersion),!to){const e=qn();to=null!=(a=null==(s=null==(i=null==e?void 0:e.Telegram)?void 0:i.WebApp)?void 0:s.version)?a:"6.0"}function no(...e){return e.includes(eo)}function ro(){var e;return"unknown"!==eo||!!(null==(e=qn())?void 0:e.TelegramWebviewProxy)}function oo(){ao("web_app_expand",{})}function io(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new jn(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new jn(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;so()||function(e,t){"string"!=typeof e&&(e=""),"string"!=typeof t&&(t="");let n,r,o,i,s=e.replace(/^\s+|\s+$/g,"").split("."),a=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(s.length,a.length),r=0;r<n;r++)if(o=parseInt(s[r])||0,i=parseInt(a[r])||0,o!==i)return o>i?1:-1;return 0}(to,"6.1")>=0?ao("web_app_open_tg_link",{path_full:r}):Kn("https://t.me"+r)}function so(){try{const e=qn();return!!e&&(null!=e.parent&&e!==e.parent)}catch(Eu){return!1}}function ao(e,t){try{const n=qn();if(!n)throw new jn("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Bn("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Bn("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!so())throw new jn("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Bn("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(Eu){!function(...t){try{console.error("[TON_CONNECT_UI]",...t)}catch(e){}}(`Can't post event to parent window: ${Eu}`)}}function lo(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(Eu){return e}}const co={mobile:440,tablet:1020};function uo(e){const t=qn();if(!t)return"desktop"===e;if(no("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>co.tablet;case"tablet":return n>co.mobile;default:return n<=co.mobile||Gn("ios","android")}}function ho(e){switch(e){case"mobile":return`@media (max-width: ${co.mobile}px)`;case"tablet":return`@media (max-width: ${co.tablet}px) (min-width: ${co.mobile}px)`;default:return`@media (min-width: ${co.tablet}px)`}}const fo="@media (hover: none)",go="@media not all and (hover: none)",po={m:"100vh",s:"8px",none:"0"},wo={s:.02,m:.04},mo=Rn.button`
|
|
42
|
+
`,Jr=e=>{let t;const[n,r]=Ye(null);return Xe((()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",(()=>r(t))),()=>t.removeEventListener("load",(()=>r(t))))})),[Rt(Pt,{get when(){return n()},get children(){return n()}}),Rt(Pt,{get when(){return!n()},get children(){return Rt(Qr,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]};let Xr={};try{Xr=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=lo(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=lo(r),e=e.substr(n+1)}let r=function(e){let t={};if(!e.length)return t;let n,r,o,i,s=e.split("&");for(n=0;n<s.length;n++)r=s[n].split("="),o=lo(r[0]),i=null==r[1]?null:lo(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(Eu){}let eo="unknown";if((null==Xr?void 0:Xr.tgWebAppPlatform)&&(eo=null!=(t=Xr.tgWebAppPlatform)?t:"unknown"),"unknown"===eo){const e=qn();eo=null!=(o=null==(r=null==(n=null==e?void 0:e.Telegram)?void 0:n.WebApp)?void 0:r.platform)?o:"unknown"}let to="6.0";if((null==Xr?void 0:Xr.tgWebAppVersion)&&(to=Xr.tgWebAppVersion),!to){const e=qn();to=null!=(a=null==(s=null==(i=null==e?void 0:e.Telegram)?void 0:i.WebApp)?void 0:s.version)?a:"6.0"}function no(...e){return e.includes(eo)}function ro(){var e;return"unknown"!==eo||!!(null==(e=qn())?void 0:e.TelegramWebviewProxy)}function oo(){ao("web_app_expand",{})}function io(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new jn(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new jn(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;so()||function(e,t){"string"!=typeof e&&(e=""),"string"!=typeof t&&(t="");let n,r,o,i,s=e.replace(/^\s+|\s+$/g,"").split("."),a=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(s.length,a.length),r=0;r<n;r++)if(o=parseInt(s[r])||0,i=parseInt(a[r])||0,o!==i)return o>i?1:-1;return 0}(to,"6.1")>=0?ao("web_app_open_tg_link",{path_full:r}):Kn("https://t.me"+r)}function so(){try{const e=qn();return!!e&&(null!=e.parent&&e!==e.parent)}catch(Eu){return!1}}function ao(e,t){try{const n=qn();if(!n)throw new jn("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Bn("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Bn("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!so())throw new jn("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Bn("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(Eu){!function(...t){try{console.error("[TON_CONNECT_UI]",...t)}catch(e){}}(`Can't post event to parent window: ${Eu}`)}}function lo(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(Eu){return e}}const co={mobile:440,tablet:1020};function uo(e){const t=qn();if(!t)return"desktop"===e;if(no("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>co.tablet;case"tablet":return n>co.mobile;default:return n<=co.mobile||Gn("ios","android","ipad")}}function ho(e){switch(e){case"mobile":return`@media (max-width: ${co.mobile}px)`;case"tablet":return`@media (max-width: ${co.tablet}px) (min-width: ${co.mobile}px)`;default:return`@media (min-width: ${co.tablet}px)`}}const fo="@media (hover: none)",go="@media not all and (hover: none)",po={m:"100vh",s:"8px",none:"0"},wo={s:.02,m:.04},mo=Rn.button`
|
|
43
43
|
display: ${e=>e.leftIcon||e.rightIcon?"flex":"inline-block"};
|
|
44
44
|
gap: ${e=>e.leftIcon||e.rightIcon?"6px":"unset"};
|
|
45
45
|
align-items: ${e=>e.leftIcon||e.rightIcon?"center":"unset"};
|
|
@@ -732,7 +732,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
|
|
|
732
732
|
width: 32px;
|
|
733
733
|
height: 32px;
|
|
734
734
|
border-radius: ${e=>Nl[e.theme.borderRadius]};
|
|
735
|
-
`,Ql=e=>{const[t]=yi();return et((()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())}))};function Jl(e,t){let n;n="string"==typeof t?t:ro()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!re(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+oe(o)}function Xl(e,t){t=__spreadValues({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),ro())no("ios","android")?(t.returnStrategy="back",t.twaReturnUrl=void 0,io(Jl(r.toString(),t))):no("macos","tdesktop")||no("weba")?io(Jl(r.toString(),t)):no("web")?(t.returnStrategy="back",t.twaReturnUrl=void 0,io(Jl(r.toString(),t))):Kn(Jl(r.toString(),t));else if(Gn("ios")){"back"===t.returnStrategy&&(t.returnStrategy=location.href);const e=Yn("chrome"),n=Yn("firefox");if((e||n)&&!t.forceRedirect){const e=Jl(r.toString(),t.returnStrategy);Vn(tc(e),(()=>Kn(e)))}else{Kn(Jl(r.toString(),t.returnStrategy))}}else if(Gn("android")){t.returnStrategy="none";const e=Yn("chrome"),n=Yn("firefox");if((e||n)&&!t.forceRedirect){const e=Jl(r.toString(),t.returnStrategy);Vn(tc(e),(()=>Kn(e)))}else{Kn(Jl(r.toString(),t.returnStrategy))}}else if(Gn("macos","windows","linux"))if(t.returnStrategy="none",t.twaReturnUrl=void 0,t.forceRedirect)Kn(Jl(r.toString(),t));else{const e=Jl(r.toString(),t);Vn(tc(e),(()=>Kn(e)))}else Kn(Jl(r.toString(),t))}function ec(e,t,n,r){if(n=__spreadValues({},n),ro())if(no("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=Jl(e,n.returnStrategy);io(t,(()=>{r("universal-link"),Kn(t)}))}else if(no("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=Jl(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Vn(Qn(o,t),(()=>{r("universal-link"),Kn(o)}))):(r("universal-link"),Kn(o))}else if(no("weba")){"back"===n.returnStrategy&&(Yn("safari")?n.returnStrategy=location.href:Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Jl(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Vn(Qn(o,t),(()=>{r("universal-link"),Kn(o)}))):(r("universal-link"),Kn(o))}else if(no("web")){"back"===n.returnStrategy&&(Yn("safari")?n.returnStrategy=location.href:Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Jl(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Vn(Qn(o,t),(()=>{r("universal-link"),Kn(o)}))):(r("universal-link"),Kn(o))}else{r("universal-link");Kn(Jl(e,n.returnStrategy))}else if(Gn("ios"))"back"===n.returnStrategy&&(Yn("safari")?n.returnStrategy=location.href:Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Yn("chrome")?(r("universal-link"),Hn(Jl(e,n.returnStrategy),"_self")):(r("universal-link"),Kn(Jl(e,n.returnStrategy)));else if(Gn("android"))"back"===n.returnStrategy&&(Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Kn(Jl(e,n.returnStrategy));else if(Gn("macos","windows","linux")){"back"===n.returnStrategy&&(Yn("safari")?n.returnStrategy="none":Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Jl(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Vn(Qn(o,t),(()=>{r("universal-link"),Kn(o)}))):(r("universal-link"),Kn(o))}else r("universal-link"),Kn(Jl(e,n.returnStrategy))}function tc(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const nc=e=>{const[t,n]=Ye("mobile"),[r,o]=Ye(!1),[i,s]=Ye(),[a,l]=Ye(!0),c=at(mr);ot(c.onStatusChange((()=>{}),(()=>{e.wallet.appName!==Ns&&o(!0)})));const u=()=>{s(c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))};Xe((()=>{"extension"!==rt(t)&&(Sl(e.wallet)||kl(e.wallet))&&u()}));const d=()=>{o(!1),"extension"===t()&&u(),n("mobile"),dr(__spreadProps(__spreadValues({},e.wallet),{openMethod:"qrcode"}))},h=()=>{o(!1),"extension"===t()&&u(),n("desktop");const r=!a();l(!1),ec(i(),e.wallet.deepLink,{returnStrategy:bl.returnStrategy,forceRedirect:r},(t=>{dr(__spreadProps(__spreadValues({},e.wallet),{openMethod:t}))}))},f=()=>{const t=!a();l(!1),dr(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"})),Xl(i(),{returnStrategy:bl.returnStrategy,twaReturnUrl:bl.twaReturnUrl,forceRedirect:t})},g=()=>{o(!1),n("extension"),ye(e.wallet)&&(dr(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return Sl(e.wallet)?d():El(e.wallet)?g():h(),Rt(Ul,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[Rt(Pt,{get when(){return!e.backDisabled},get children(){return Rt(Kl,{icon:"arrow",onClick:()=>e.onBackClick()})}}),Rt(Bl,{get children(){return e.wallet.name}}),Rt(Pt,{get when(){return"mobile"===t()},get children(){return Rt(Hl,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",et((()=>e.wallet.name)),"’s camera"]}})}}),Rt(Wl,{get qr(){return"mobile"===t()},get children(){return Rt(It,{get children(){return[Rt(Nt,{get when(){return"mobile"===t()},get children(){return Rt(jl,{disableCopy:!1,get sourceUrl(){return Jl(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),Rt(Nt,{get when(){return r()},get children(){return[Rt(zl,{size:"s"}),Rt(Zl,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),Rt(Vl,{get children(){return Rt(yo,{get leftIcon(){return Rt(hs,{})},get onClick(){return"extension"===t()?g:h},get children(){return Rt(Ql,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Rt(Nt,{get when(){return"extension"===t()},get children(){return[Rt(Pt,{get when(){return ye(e.wallet)},get children(){return[Rt(ql,{size:"s"}),Rt(Zl,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",et((()=>e.wallet.name))," browser extension…"]}}),Rt(Vl,{get children(){return Rt(yo,{get leftIcon(){return Rt(hs,{})},onClick:g,get children(){return Rt(Ql,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Rt(Pt,{get when(){return!ye(e.wallet)},get children(){return[Rt(Zl,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",et((()=>e.wallet.name))," browser extension"]}}),Rt(Vl,{get children(){return Rt(Gs,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Rt(yo,{get rightIcon(){return Rt(gs,{})},onClick:g,get children(){return Rt(Ql,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",et((()=>e.wallet.name))]}})}})}})}})]}})]}}),Rt(Nt,{get when(){return"desktop"===t()},get children(){return[Rt(es,{size:"m"}),Rt(Zl,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",et((()=>e.wallet.name))," on desktop…"]}}),Rt(Vl,{get children(){return[Rt(yo,{get leftIcon(){return Rt(hs,{})},onClick:h,get children(){return Rt(Ql,{translationKey:"common.retry",children:"Retry"})}}),Rt(Gs,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Rt(yo,{get rightIcon(){return Rt(gs,{})},get children(){return Rt(Ql,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",et((()=>e.wallet.name))]}})}})}})]}})]}})]}})}}),Rt(Pt,{get when(){return e.wallet.appName===Ns},get children(){return Rt(Gl,{get rightIcon(){return Rt(Yl,{get src(){return Ws}})},scale:"s",onClick:f,get children(){return Rt(Ql,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),Rt(Pt,{get when(){return e.wallet.appName!==Ns},get children(){return Rt(Fl,{get children(){return[Rt(Pt,{get when(){return et((()=>"mobile"!==t()))()&&Sl(e.wallet)},get children(){return Rt(Dl,{appearance:"secondary",get leftIcon(){return Rt(ls,{})},onClick:d,get children(){return Rt(Ql,{translationKey:"common.mobile",children:"Mobile"})}})}}),Rt(Pt,{get when(){return et((()=>"extension"!==t()))()&&El(e.wallet)},get children(){return Rt(Dl,{appearance:"secondary",get leftIcon(){return Rt(ss,{})},onClick:g,get children(){return Rt(Ql,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),Rt(Pt,{get when(){return et((()=>"desktop"!==t()))()&&kl(e.wallet)},get children(){return Rt(Dl,{appearance:"secondary",get leftIcon(){return Rt(us,{})},onClick:h,get children(){return Rt(Ql,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},rc=Rn.div``,oc=Rn(Po)`
|
|
735
|
+
`,Ql=e=>{const[t]=yi();return et((()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())}))};function Jl(e,t){let n;n="string"==typeof t?t:ro()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!re(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+oe(o)}function Xl(e,t){t=__spreadValues({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),ro())no("ios","android")?(t.returnStrategy="back",t.twaReturnUrl=void 0,io(Jl(r.toString(),t))):no("macos","tdesktop")||no("weba")?io(Jl(r.toString(),t)):no("web")?(t.returnStrategy="back",t.twaReturnUrl=void 0,io(Jl(r.toString(),t))):Kn(Jl(r.toString(),t));else if(Gn("ios")){"back"===t.returnStrategy&&(t.returnStrategy=location.href);const e=Yn("chrome"),n=Yn("firefox");if((e||n)&&!t.forceRedirect){const e=Jl(r.toString(),t.returnStrategy);Vn(tc(e),(()=>Kn(e)))}else{Kn(Jl(r.toString(),t.returnStrategy))}}else if(Gn("android")){t.returnStrategy="none";const e=Yn("chrome"),n=Yn("firefox");if((e||n)&&!t.forceRedirect){const e=Jl(r.toString(),t.returnStrategy);Vn(tc(e),(()=>Kn(e)))}else{Kn(Jl(r.toString(),t.returnStrategy))}}else if(Gn("ipad")){"back"===t.returnStrategy&&(t.returnStrategy="back");const e=Yn("chrome"),n=Yn("firefox");if((e||n)&&!t.forceRedirect){const e=Jl(r.toString(),t.returnStrategy);Vn(tc(e),(()=>Kn(e)))}else{Kn(Jl(r.toString(),t.returnStrategy))}}else if(Gn("macos","windows","linux"))if(t.returnStrategy="none",t.twaReturnUrl=void 0,t.forceRedirect)Kn(Jl(r.toString(),t));else{const e=Jl(r.toString(),t);Vn(tc(e),(()=>Kn(e)))}else Kn(Jl(r.toString(),t))}function ec(e,t,n,r){if(n=__spreadValues({},n),ro())if(no("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=Jl(e,n.returnStrategy);io(t,(()=>{r("universal-link"),Kn(t)}))}else if(no("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=Jl(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Vn(Qn(o,t),(()=>{r("universal-link"),Kn(o)}))):(r("universal-link"),Kn(o))}else if(no("weba")){"back"===n.returnStrategy&&(Yn("safari")?n.returnStrategy=location.href:Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Jl(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Vn(Qn(o,t),(()=>{r("universal-link"),Kn(o)}))):(r("universal-link"),Kn(o))}else if(no("web")){"back"===n.returnStrategy&&(Yn("safari")?n.returnStrategy=location.href:Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Jl(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Vn(Qn(o,t),(()=>{r("universal-link"),Kn(o)}))):(r("universal-link"),Kn(o))}else{r("universal-link");Kn(Jl(e,n.returnStrategy))}else if(Gn("ios"))"back"===n.returnStrategy&&(Yn("safari")?n.returnStrategy=location.href:Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Yn("chrome")?(r("universal-link"),Hn(Jl(e,n.returnStrategy),"_self")):(r("universal-link"),Kn(Jl(e,n.returnStrategy)));else if(Gn("android"))"back"===n.returnStrategy&&(Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Kn(Jl(e,n.returnStrategy));else if(Gn("ipad"))"back"===n.returnStrategy&&(n.returnStrategy="back"),Yn("chrome")?(r("universal-link"),Hn(Jl(e,n.returnStrategy),"_self")):(r("universal-link"),Kn(Jl(e,n.returnStrategy)));else if(Gn("macos","windows","linux")){"back"===n.returnStrategy&&(Yn("safari")?n.returnStrategy="none":Yn("chrome")?n.returnStrategy="googlechrome://":Yn("firefox")?n.returnStrategy="firefox://":Yn("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Jl(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Vn(Qn(o,t),(()=>{r("universal-link"),Kn(o)}))):(r("universal-link"),Kn(o))}else r("universal-link"),Kn(Jl(e,n.returnStrategy))}function tc(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const nc=e=>{const[t,n]=Ye("mobile"),[r,o]=Ye(!1),[i,s]=Ye(),[a,l]=Ye(!0),c=at(mr);ot(c.onStatusChange((()=>{}),(()=>{e.wallet.appName!==Ns&&o(!0)})));const u=()=>{s(c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))};Xe((()=>{"extension"!==rt(t)&&(Sl(e.wallet)||kl(e.wallet))&&u()}));const d=()=>{o(!1),"extension"===t()&&u(),n("mobile"),dr(__spreadProps(__spreadValues({},e.wallet),{openMethod:"qrcode"}))},h=()=>{o(!1),"extension"===t()&&u(),n("desktop");const r=!a();l(!1),ec(i(),e.wallet.deepLink,{returnStrategy:bl.returnStrategy,forceRedirect:r},(t=>{dr(__spreadProps(__spreadValues({},e.wallet),{openMethod:t}))}))},f=()=>{const t=!a();l(!1),dr(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"})),Xl(i(),{returnStrategy:bl.returnStrategy,twaReturnUrl:bl.twaReturnUrl,forceRedirect:t})},g=()=>{o(!1),n("extension"),ye(e.wallet)&&(dr(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return Sl(e.wallet)?d():El(e.wallet)?g():h(),Rt(Ul,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[Rt(Pt,{get when(){return!e.backDisabled},get children(){return Rt(Kl,{icon:"arrow",onClick:()=>e.onBackClick()})}}),Rt(Bl,{get children(){return e.wallet.name}}),Rt(Pt,{get when(){return"mobile"===t()},get children(){return Rt(Hl,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",et((()=>e.wallet.name)),"’s camera"]}})}}),Rt(Wl,{get qr(){return"mobile"===t()},get children(){return Rt(It,{get children(){return[Rt(Nt,{get when(){return"mobile"===t()},get children(){return Rt(jl,{disableCopy:!1,get sourceUrl(){return Jl(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),Rt(Nt,{get when(){return r()},get children(){return[Rt(zl,{size:"s"}),Rt(Zl,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),Rt(Vl,{get children(){return Rt(yo,{get leftIcon(){return Rt(hs,{})},get onClick(){return"extension"===t()?g:h},get children(){return Rt(Ql,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Rt(Nt,{get when(){return"extension"===t()},get children(){return[Rt(Pt,{get when(){return ye(e.wallet)},get children(){return[Rt(ql,{size:"s"}),Rt(Zl,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",et((()=>e.wallet.name))," browser extension…"]}}),Rt(Vl,{get children(){return Rt(yo,{get leftIcon(){return Rt(hs,{})},onClick:g,get children(){return Rt(Ql,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Rt(Pt,{get when(){return!ye(e.wallet)},get children(){return[Rt(Zl,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",et((()=>e.wallet.name))," browser extension"]}}),Rt(Vl,{get children(){return Rt(Gs,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Rt(yo,{get rightIcon(){return Rt(gs,{})},onClick:g,get children(){return Rt(Ql,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",et((()=>e.wallet.name))]}})}})}})}})]}})]}}),Rt(Nt,{get when(){return"desktop"===t()},get children(){return[Rt(es,{size:"m"}),Rt(Zl,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",et((()=>e.wallet.name))," on desktop…"]}}),Rt(Vl,{get children(){return[Rt(yo,{get leftIcon(){return Rt(hs,{})},onClick:h,get children(){return Rt(Ql,{translationKey:"common.retry",children:"Retry"})}}),Rt(Gs,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Rt(yo,{get rightIcon(){return Rt(gs,{})},get children(){return Rt(Ql,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",et((()=>e.wallet.name))]}})}})}})]}})]}})]}})}}),Rt(Pt,{get when(){return e.wallet.appName===Ns},get children(){return Rt(Gl,{get rightIcon(){return Rt(Yl,{get src(){return Ws}})},scale:"s",onClick:f,get children(){return Rt(Ql,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),Rt(Pt,{get when(){return e.wallet.appName!==Ns},get children(){return Rt(Fl,{get children(){return[Rt(Pt,{get when(){return et((()=>"mobile"!==t()))()&&Sl(e.wallet)},get children(){return Rt(Dl,{appearance:"secondary",get leftIcon(){return Rt(ls,{})},onClick:d,get children(){return Rt(Ql,{translationKey:"common.mobile",children:"Mobile"})}})}}),Rt(Pt,{get when(){return et((()=>"extension"!==t()))()&&El(e.wallet)},get children(){return Rt(Dl,{appearance:"secondary",get leftIcon(){return Rt(ss,{})},onClick:g,get children(){return Rt(Ql,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),Rt(Pt,{get when(){return et((()=>"desktop"!==t()))()&&kl(e.wallet)},get children(){return Rt(Dl,{appearance:"secondary",get leftIcon(){return Rt(us,{})},onClick:h,get children(){return Rt(Ql,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},rc=Rn.div``,oc=Rn(Po)`
|
|
736
736
|
position: absolute;
|
|
737
737
|
top: 16px;
|
|
738
738
|
left: 16px;
|