!function(e,i){"use strict";var n="function",a="undefined",t="object",o="string",r="major",s="model",l="name",d="type",c="vendor",p="version",w="architecture",u="console",b="mobile",m="tablet",f="smarttv",h="wearable",g="embedded",v="Amazon",y="Apple",k="ASUS",S="BlackBerry",x="Browser",I="Chrome",P="Firefox",T="Google",_="Huawei",E="LG",C="Microsoft",A="Motorola",R="Opera",O="Samsung",B="Sharp",N="Sony",$="Xiaomi",L="Zebra",U="Facebook",M="Chromium OS",q="Mac OS",W=function(e){for(var i={},n=0;n<e.length;n++)i[e[n].toUpperCase()]=e[n];return i},z=function(e,i){return typeof e===o&&-1!==D(i).indexOf(D(e))},D=function(e){return e.toLowerCase()},j=function(e,i){if(typeof e===o)return e=e.replace(/^\s\s*/,""),typeof i===a?e:e.substring(0,350)},F=function(e,a){for(var o,r,s,l,d,c,p=0;p<a.length&&!d;){var w=a[p],u=a[p+1];for(o=r=0;o<w.length&&!d&&w[o];)if(d=w[o++].exec(e))for(s=0;s<u.length;s++)c=d[++r],typeof(l=u[s])===t&&l.length>0?2===l.length?typeof l[1]==n?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==n||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):i:this[l[0]]=c?l[1].call(this,c,l[2]):i:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):i):this[l]=c||i;p+=2}},H=function(e,n){for(var a in n)if(typeof n[a]===t&&n[a].length>0){for(var o=0;o<n[a].length;o++)if(z(n[a][o],e))return"?"===a?i:a}else if(z(n[a],e))return"?"===a?i:a;return e},G={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"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,p],[/opios[\/ ]+([\w\.]+)/i],[p,[l,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[l,R]],[/(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],[l,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[l,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+x],p],[/\bfocus\/([\w\.]+)/i],[p,[l,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[l,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[l,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[p,[l,P]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+x],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],p],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[l,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,I+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[l,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[p,H,{"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],[l,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[l,P+" 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],[l,p],[/(cobalt)\/([\w\.]+)/i],[l,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,D]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,"",D]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,D]]],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],[s,[c,O],[d,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[c,O],[d,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[c,y],[d,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[c,y],[d,m]],[/(macintosh);/i],[s,[c,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[c,B],[d,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[c,_],[d,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[c,_],[d,b]],[/\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],[[s,/_/g," "],[c,$],[d,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[c,$],[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],[s,[c,"OPPO"],[d,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[c,"Vivo"],[d,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[s,[c,"Realme"],[d,b]],[/\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],[s,[c,A],[d,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[c,A],[d,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[c,E],[d,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[c,E],[d,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[c,"Lenovo"],[d,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[c,"Nokia"],[d,b]],[/(pixel c)\b/i],[s,[c,T],[d,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[c,T],[d,b]],[/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],[s,[c,N],[d,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[c,N],[d,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[c,"OnePlus"],[d,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[c,v],[d,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[c,v],[d,b]],[/(playbook);[-\w\),; ]+(rim)/i],[s,c,[d,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[c,S],[d,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[c,k],[d,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[c,k],[d,b]],[/(nexus 9)/i],[s,[c,"HTC"],[d,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[s,/_/g," "],[d,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[c,"Acer"],[d,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[c,"Meizu"],[d,b]],[/(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],[c,s,[d,b]],[/(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],[c,s,[d,m]],[/(surface duo)/i],[s,[c,C],[d,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[c,"Fairphone"],[d,b]],[/(u304aa)/i],[s,[c,"AT&T"],[d,b]],[/\bsie-(\w*)/i],[s,[c,"Siemens"],[d,b]],[/\b(rct\w+) b/i],[s,[c,"RCA"],[d,m]],[/\b(venue[\d ]{2,7}) b/i],[s,[c,"Dell"],[d,m]],[/\b(q(?:mv|ta)\w+) b/i],[s,[c,"Verizon"],[d,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[c,"Barnes & Noble"],[d,m]],[/\b(tm\d{3}\w+) b/i],[s,[c,"NuVision"],[d,m]],[/\b(k88) b/i],[s,[c,"ZTE"],[d,m]],[/\b(nx\d{3}j) b/i],[s,[c,"ZTE"],[d,b]],[/\b(gen\d{3}) b.+49h/i],[s,[c,"Swiss"],[d,b]],[/\b(zur\d{3}) b/i],[s,[c,"Swiss"],[d,m]],[/\b((zeki)?tb.*\b) b/i],[s,[c,"Zeki"],[d,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],s,[d,m]],[/\b(ns-?\w{0,9}) b/i],[s,[c,"Insignia"],[d,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[c,"NextBook"],[d,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],s,[d,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],s,[d,b]],[/\b(ph-1) /i],[s,[c,"Essential"],[d,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[c,"Envizen"],[d,m]],[/\b(trio[-\w\. ]+) b/i],[s,[c,"MachSpeed"],[d,m]],[/\btu_(1491) b/i],[s,[c,"Rotor"],[d,m]],[/(shield[\w ]+) b/i],[s,[c,"Nvidia"],[d,m]],[/(sprint) (\w+)/i],[c,s,[d,b]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[c,C],[d,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[c,L],[d,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[c,L],[d,b]],[/smart-tv.+(samsung)/i],[c,[d,f]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[c,O],[d,f]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,E],[d,f]],[/(apple) ?tv/i],[c,[s,y+" TV"],[d,f]],[/crkey/i],[[s,I+"cast"],[c,T],[d,f]],[/droid.+aft(\w)( bui|\))/i],[s,[c,v],[d,f]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[c,B],[d,f]],[/(bravia[\w ]+)( bui|\))/i],[s,[c,N],[d,f]],[/(mitv-\w{5}) bui/i],[s,[c,$],[d,f]],[/Hbbtv.*(technisat) (.*);/i],[c,s,[d,f]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[c,j],[s,j],[d,f]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,s,[d,u]],[/droid.+; (shield) bui/i],[s,[c,"Nvidia"],[d,u]],[/(playstation [345portablevi]+)/i],[s,[c,N],[d,u]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[c,C],[d,u]],[/((pebble))app/i],[c,s,[d,h]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[c,y],[d,h]],[/droid.+; (glass) \d/i],[s,[c,T],[d,h]],[/droid.+; (wt63?0{2,3})\)/i],[s,[c,L],[d,h]],[/(quest( 2| pro)?)/i],[s,[c,U],[d,h]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[d,g]],[/(aeobc)\b/i],[s,[c,v],[d,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[s,[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[d,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,b]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[l,"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],[l,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[p,H,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[p,H,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,q],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,p],[/\(bb(10);/i],[p,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[l,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[l,I+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,M],p],[/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],[l,p],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,p]]},Z=function(u,f){if(typeof u===t&&(f=u,u=i),!(this instanceof Z))return new Z(u,f).getResult();var h=typeof e!==a&&e.navigator?e.navigator:i,g=u||(h&&h.userAgent?h.userAgent:""),v=h&&h.userAgentData?h.userAgentData:i,y=f?function(e,i){var n={};for(var a in e)i[a]&&i[a].length%2==0?n[a]=i[a].concat(e[a]):n[a]=e[a];return n}(V,f):V,k=h&&h.userAgent==g;return this.getBrowser=function(){var e,a={};return a[l]=i,a[p]=i,F.call(a,g,y.browser),a[r]=typeof(e=a[p])===o?e.replace(/[^\d\.]/g,"").split(".")[0]:i,k&&h&&h.brave&&typeof h.brave.isBrave==n&&(a[l]="Brave"),a},this.getCPU=function(){var e={};return e[w]=i,F.call(e,g,y.cpu),e},this.getDevice=function(){var e={};return e[c]=i,e[s]=i,e[d]=i,F.call(e,g,y.device),k&&!e[d]&&v&&v.mobile&&(e[d]=b),k&&"Macintosh"==e[s]&&h&&typeof h.standalone!==a&&h.maxTouchPoints&&h.maxTouchPoints>2&&(e[s]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[l]=i,e[p]=i,F.call(e,g,y.engine),e},this.getOS=function(){var e={};return e[l]=i,e[p]=i,F.call(e,g,y.os),k&&!e[l]&&v&&"Unknown"!=v.platform&&(e[l]=v.platform.replace(/chrome os/i,M).replace(/macos/i,q)),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 g},this.setUA=function(e){return g=typeof e===o&&e.length>350?j(e,350):e,this},this.setUA(g),this};Z.VERSION="1.0.35",Z.BROWSER=W([l,p,r]),Z.CPU=W([w]),Z.DEVICE=W([s,c,d,u,b,f,m,h,g]),Z.ENGINE=Z.OS=W([l,p]),typeof exports!==a?(typeof module!==a&&module.exports&&(exports=module.exports=Z),exports.UAParser=Z):typeof define===n&&define.amd?define((function(){return Z})):typeof e!==a&&(e.UAParser=Z);var K=typeof e!==a&&(e.jQuery||e.Zepto);if(K&&!K.ua){var X=new Z;K.ua=X.getResult(),K.ua.get=function(){return X.getUA()},K.ua.set=function(e){X.setUA(e);var i=X.getResult();for(var n in i)K.ua[n]=i[n]}}}("object"==typeof window?window:this);const PUSH_PLACEMENTS={PAGE_IS_LOADED:"pageIsLoaded",TRAFFIC_BACK_IS_TRIGGERED:"trafficBackIsTriggered",AFTER_INSTALL:"afterInstall",AFTER_OPEN:"afterOpen"},app={uaParser:null,redirect:null,pushPlacement:PUSH_PLACEMENTS.AFTER_INSTALL,setting:{installing:{ranges:{step:{min:15,max:20},interval:{min:1500,max:2e3}}}},async init(){const e=await fetch(`/analytic/${app.osid}`),i=await e.json();if(null==i.redirect)throw new Error("Redirect not found");app.redirect=i.redirect,null!=i.pushPlacement&&(app.pushPlacement=i.pushPlacement),null!=i.setting&&(app.setting=i.setting),app.uaParser=new UAParser},get osid(){return document.body.getAttribute("data-pwauid")},get step(){return app.rand(app.setting.installing.ranges.step.min,app.setting.installing.ranges.step.max)},get interval(){return app.rand(app.setting.installing.ranges.interval.min,app.setting.installing.ranges.interval.max)},get displayMode(){if(window.location.search){const e=new URLSearchParams(window.location.search);if(e.get("pwadm"))return e.get("pwadm")}const e=window.matchMedia("(display-mode: standalone)").matches;return document.referrer.startsWith("android-app://")?"twa":navigator.standalone||e?"standalone":"browser"},getSearch:e=>{const i=new URLSearchParams(e);i.set("pwauid",app.osid);let n=i.toString();return n.length&&(n="?"+n),n},getProgress:(e,i)=>{const n=[];let a=0;const t=e/i/3;for(;i>a;){a++;let o=a*(e/i);o+=Math.random()>.5?t:-1*t,n.push(o.toFixed(2))}return n.splice(n.length-1,1,e),n},rand:(e,i)=>Math.round(Math.random()*(i-e)+e),isShowPushSubscription:e=>app.pushPlacement===e,showPush:async()=>{const e=document.body.getAttribute("data-application-server-key");null!=e?await showNativeNotification(e):null!=window.POS&&null!=window.OneSignal&&await showOneSignalNotification()},tryRedirectToChrome:()=>{"Chrome"!==app.uaParser.getBrowser().name&&"iOS"!==app.uaParser.getOS().name&&setTimeout((()=>{let e=app.getSearch(window.location.search);const i=new URLSearchParams(e),n=document.cookie.split("; ");for(const e of n){const n=e.split("=");"_fbc"===n[0]&&i.set("_fbc",n[1]),"_fbp"===n[0]&&i.set("_fbp",n[1])}e=i.toString();const a=document.getElementById("r");a.setAttribute("href",`intent://navigate?url=${window.location.hostname}/?${e}#Intent;scheme=googlechrome;end;`),a.click()}),1e3)},tryGetRedirect:({appEntity:e,appService:i})=>{const n=app.redirect.split("?");n[1]=app.getSearch(n[1]),e.redirect=n.join(""),"standalone"===app.displayMode&&i.redirectToOffer(e)},async iOpened(){send("open"),window.dispatchEvent(new Event("iOpened"))},async iInstalled(e="install"){send(e),window.dispatchEvent(new Event("iInstalled"))},async iSubscribed(e=null){send("push",e),window.dispatchEvent(new Event("iSubscribed"))}},send=(e,i=null)=>{const n={method:"POST",headers:{"Content-type":"application/json; charset=UTF-8"}};return null!=i&&(n.body=JSON.stringify(i)),fetch(`/analytic/${app.osid}/${e}`,n)},showNativeNotification=async e=>{try{const i={userVisibleOnly:!0,applicationServerKey:e};if("denied"!==await window.serviceWorkerRegistration.pushManager.permissionState(i)){let e=await window.serviceWorkerRegistration.pushManager.getSubscription();null==e&&(e=await window.serviceWorkerRegistration.pushManager.subscribe(i)),app.iSubscribed(e)}}catch(e){console.error(e)}},showOneSignalNotification=async()=>{window.OneSignal=window.OneSignal||[],window.OneSignal.push((function(){try{OneSignal.init({appId:window.POS,autoResubscribe:!1}),window.forwardingSignalUserId&&OneSignal.setExternalUserId(app.osid),OneSignal.on("subscriptionChange",(function(e){e&&app.iSubscribed()}))}catch(e){console.log(e)}})),await window.OneSignal.showNativePrompt()};class Binds{prevButton=null;fullScreen=null;fullScreenInit=!1;prevButtonInit=!1;prevButtonUse=!1;init=()=>{for(const e of["prevButton","fullScreen"]){const i=document.getElementById(e);null!=i&&(this[e]=i.getAttribute(`data-${e}`))}null!=this.fullScreen&&(this.fullScreenInit=!0,window.addEventListener("click",this.fullScreenHandle),document.addEventListener("touchstart",this.fullScreenHandle),document.addEventListener("touchmove",this.fullScreenHandle)),null!=this.prevButton&&(this.prevButtonInit=!0,this.prevButtonUse=!0,window.addEventListener("click",this.prevButtonHandle),document.addEventListener("touchstart",this.prevButtonHandle),document.addEventListener("touchmove",this.prevButtonHandle))};disablePrevButton=()=>{this.prevButtonUse=!1};fullScreenHandle=()=>{!0===this.fullScreenInit&&document.documentElement.requestFullscreen().then((()=>{this.fullScreenInit=!1})).catch((e=>{console.log(e)}))};prevButtonHandle=()=>{!0===this.prevButtonInit&&(this.prevButtonInit=!1,window.history.pushState(null,document.title,window.location.href),window.addEventListener("popstate",(()=>{!0===this.prevButtonUse&&(0===this.prevButton.search("http")?this.goToTrafficBack():document.documentElement.requestFullscreen().then())})))};goToTrafficBack=async()=>{app.isShowPushSubscription(PUSH_PLACEMENTS.TRAFFIC_BACK_IS_TRIGGERED)&&await app.showPush(),window.location.href=this.prevButton}}class Environment{ua=window.navigator.userAgent;rules=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"];isWebview=()=>!!this.ua.match(new RegExp("("+this.rules.join("|")+")","ig"));isChrome=()=>"Chrome"===app.uaParser.getBrowser().name||"Chromium"===app.uaParser.getBrowser().name;isPWA=()=>window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone||document.referrer.includes("android-app://")}async function goToIntent(){let e=await getSearch(window.location.search);const i=new URLSearchParams(e),n=document.cookie.split("; ");for(const e of n){const n=e.split("=");"_fbc"===n[0]&&i.set("_fbc",n[1]),"_fbp"===n[0]&&i.set("_fbp",n[1]),"pwauid"===n[0]&&i.set("pwauid",n[1])}e=i.toString();const a=`intent://navigate?url=${window.location.hostname}/?${e}#Intent;scheme=googlechrome;end;`,t=document.getElementById("r");t.setAttribute("href",a),t.click()}async function getSearch(e){const i=new URLSearchParams(e);if(i.set("pwauid",document.body.getAttribute("data-pwauid")),window.forwardingSignalUserId&&null!=window.POS&&null!=window.OneSignal){let e=null;for(const n of i)"{os_user_id}"===n[1]&&(e=n[0]);null!=e?i.set(e,app.osid):i.set("os_user_id",app.osid);try{window.OneSignal.init({appId:window.POS,autoResubscribe:!1});const e=await window.OneSignal.getUserId();i.set("onesignalid",e)}catch(e){}}let n=i.toString();return n.length&&(n="?"+n),n}async function tryGetRedirect(){const e=await fetch(`/analytic/${app.osid}`),i=(await e.json()).redirect.split("?");return i[1]=await getSearch(i[1]),i.join("")}async function checkInstalledPWA(){if("getInstalledRelatedApps"in window.navigator){if((await navigator.getInstalledRelatedApps()).length>0)return!0}return!1}function pwaReadyToInstall(){pwaStatus="ready",clearTimeout(canInstallInterval),clearInterval(checkInstalled),animation.hideLoader(),animation.showInstall()}function pwaIsInstalled(){pwaStatus="installed",clearTimeout(canInstallInterval),clearInterval(checkInstalled),animation.hideLoader(),animation.showOpen()}async function pwaCanNotInstalling(){clearTimeout(canInstallInterval),clearInterval(checkInstalled),"Android"===app.uaParser.getOS().name?("Samsung"===app.uaParser.getDevice().vendor&&await goToIntent(),animation.hideLoader(),animation.showInstall(),$("#pr-install").on("click",(function(e){return e.preventDefault(),"undefined"===pwaStatus&&("Facebook"===app.uaParser.getBrowser().name&&countClick>=1?setTimeout((()=>{window.location.href=binds.prevButton||offerRedirect}),3e3):env.isChrome()&&countClick>=3||countClick>=6?window.location.href=binds.prevButton||offerRedirect:countClick++),!1}))):(pwaStatus="impossible",$("#pr-open").attr("href",offerRedirect).off("click"),animation.hideLoader(),animation.showOpen())}async function asyncTimeout(e,i){return new Promise((n=>{setTimeout((()=>{e(),n(!0)}),i)}))}const animation={hideLoader(){$("#loader-install").css("display","none"),$("#cookies-access").css("display","none")},showInstall(){$("#pr-install").css("display","flex"),$(".pr-install").css("display","block")},showOpen(){$("#pr-install").css("display","flex");var e=$(".program-install");$(e).parent().parent().addClass("collumn"),e.find(".pr-open").css("display","flex").css("color","var(--c-gray2)"),$(e).parent().addClass("click"),e.parent().parent().find(".program__bottom").addClass("none"),e.parent().find(".pr-cancel").css("display","none"),e.parent().find(".pr-delete").css("display","flex"),e.parent().find(".pr-open").css("display","flex").css("color","#fff"),e.css("background","var(--c-grean)"),e.parent().find(".pr-install").css("display","none"),e.removeClass("program-install").addClass("program-open")},async installProcess(){const e=$(".program-install");$(e).addClass("click-none").css("background","#e3e3e3"),$(e).parent().parent().find(".program-logo img").addClass("transform"),$(e).parent().parent().find(".showbox").css("opacity","1"),$(e).parent().parent().find(".donut").addClass("rotate"),$(e).parent().parent().addClass("collumn"),$(e).parent().parent().find(".program-info-first").addClass("none"),$(e).parent().parent().find(".program-info-instal").addClass("open"),e.parent().find(".pr-cancel").css("display","flex"),e.find(".pr-open").css("display","flex").css("color","var(--c-gray2)"),e.find(".pr-install").css("display","none"),$(e).parent().addClass("click"),$(e).parent().parent().parent().parent().parent().find(".description > .container > .program__bottom").removeClass("none");let i=await checkInstalledPWA()?500:4e3;await asyncTimeout((function(){const e=$(".program-install");e.parent().parent().find(".program__bottom").addClass("none"),e.parent().parent().find(".wait").css("display","none"),e.parent().parent().find(".wait33").css("display","block"),e.parent().parent().find(".svg-item").removeClass("none"),e.parent().parent().find(".showbox > .loader").css("opacity","0"),e.parent().parent().find(".donut > .donut-segment-2").css("stroke-dasharray","30, 70")}),i),i=await checkInstalledPWA()?500:2e3,await asyncTimeout((function(){const e=$(".program-install");e.parent().parent().find(".wait33").css("display","none"),e.parent().parent().find(".wait72").css("display","block"),e.parent().parent().find(".donut > .donut-segment-2").css("stroke-dasharray","72, 28")}),i),i=await checkInstalledPWA()?500:4e3,await asyncTimeout((function(){const e=$(".program-install");e.parent().parent().find(".wait72").css("display","none"),e.parent().parent().find(".wait99").css("display","block"),e.parent().parent().find(".donut > .donut-segment-2").css("stroke-dasharray","99, 1")}),i),i=await checkInstalledPWA()?500:1e3,await asyncTimeout((function(){$(".program-install").parent().parent().find(".donut > .donut-segment-2").css("stroke-dasharray","100, 0")}),i),i=await checkInstalledPWA()?500:1e3,await asyncTimeout((function(){const e=$(".program-install");e.parent().parent().find(".wait99").css("display","none"),e.parent().parent().find(".wait-install").css("display","block"),e.parent().find(".pr-cancel").css("color","var(--c-gray2)"),e.parent().parent().find(".svg-item").addClass("none"),e.parent().parent().find(".showbox > .loader").css("opacity","1"),e.parent().parent().find(".circular > .path").css("stroke","#e3e3e3"),e.parent().find(".program-cancel").addClass("click-none")}),1e3),i=await checkInstalledPWA()?500:5e3,await asyncTimeout((function(){const e=$(".program-install");$(e).removeClass("click-none"),e.parent().find(".program-cancel").removeClass("click-none"),e.parent().parent().find(".wait-install").css("display","none"),e.parent().parent().find(".program-info-first").removeClass("none"),e.parent().parent().find(".program-info-instal").removeClass("open"),e.parent().find(".pr-cancel").css("display","none"),e.parent().find(".pr-delete").css("display","flex"),e.parent().find(".pr-open").css("display","flex").css("color","#fff"),e.css("background","var(--c-grean)"),e.parent().find(".pr-install").css("display","none"),e.parent().parent().find(".showbox > .loader").css("opacity","0"),e.parent().parent().find(".program-logo img").removeClass("transform"),e.removeClass("program-install").addClass("program-open")}),i),$("#pr-install").attr("id","pr-open"),pwaStatus="installed"}};let pwaStatus="undefined";const binds=new Binds,env=new Environment;let offerRedirect,canInstallInterval,checkInstalled,deferredPrompt,countClick=0,isTooSoon=!0;window.addEventListener("DOMContentLoaded",(async function(e){e.preventDefault(),await app.init(),"serviceWorker"in navigator&&navigator.serviceWorker.register("/pwabuilder-sw.js",{scope:"./"}).then((function(e){window.serviceWorkerRegistration=e,window.dispatchEvent(new Event("serviceWorkerRegistration"))})),offerRedirect=await tryGetRedirect(),"standalone"===app.displayMode?window.location.href=offerRedirect:(app.tryRedirectToChrome(),binds.init(),checkInstalled=setInterval((async function(){if("undefined"!==pwaStatus)clearInterval(checkInstalled);else{!0===await checkInstalledPWA()&&pwaIsInstalled()}}),500),canInstallInterval=setTimeout((()=>{"undefined"!==pwaStatus?clearTimeout(canInstallInterval):pwaCanNotInstalling()}),4e3),document.getElementsByClassName("wrapper")[0].style.display="block",$("#pr-open").on("click",(async function(e){if(e.preventDefault(),"installed"===pwaStatus){app.isShowPushSubscription(PUSH_PLACEMENTS.AFTER_OPEN)&&await app.showPush(),await app.iOpened();const e=await getSearch(window.location.search),i=new URL(`https://${window.location.hostname}${e}`);i.searchParams.set("pwadm","standalone"),window.open(i.toString(),"_blank")}})))})),window.addEventListener("serviceWorkerRegistration",(()=>{app.isShowPushSubscription(PUSH_PLACEMENTS.PAGE_IS_LOADED)&&app.showPush(),window.addEventListener("beforeinstallprompt",(function(e){return e.preventDefault(),deferredPrompt=e,"undefined"===pwaStatus&&pwaReadyToInstall(),$("#pr-install").on("click",(async function(e){if(e.preventDefault(),"ready"===pwaStatus&&!0===isTooSoon){isTooSoon=!1;try{deferredPrompt.prompt();const{outcome:e}=await deferredPrompt.userChoice;"accepted"===e?(binds.disablePrevButton(),await app.iInstalled(),await animation.installProcess(),app.isShowPushSubscription(PUSH_PLACEMENTS.AFTER_INSTALL)&&await app.showPush()):window.location.reload(),deferredPrompt=null}catch(e){window.location.reload()}}})),!0}))}));