@xyz-fe/log 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +29 -1
- package/dist/index.js +3 -3
- package/dist/index.min.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/mp.d.ts +29 -1
- package/dist/mp.js +2 -2
- package/dist/mp.min.js +2 -2
- package/dist/mp.mjs +2 -2
- package/dist/web-hw.d.ts +27 -1
- package/dist/web-hw.js +3 -3
- package/dist/web-hw.min.js +3 -3
- package/dist/web-hw.mjs +3 -3
- package/dist/web.d.ts +27 -1
- package/dist/web.js +2 -2
- package/dist/web.min.js +2 -2
- package/dist/web.mjs +2 -2
- package/package.json +1 -1
package/dist/web.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @xyz-fe/log v5.
|
|
2
|
+
* @xyz-fe/log v5.2.0
|
|
3
3
|
* (c) lizhigao <lizhigao@021.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){return e=Object.assign||function(e){for(var i,o=1,t=arguments.length;o<t;o++)for(var n in i=arguments[o])Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},e.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var i="XYZ_LOG_";function o(e){return void 0!==typeof localStorage?localStorage.getItem(i+e):null}function t(e,o){void 0!==typeof localStorage&&localStorage.setItem(i+e,o)}function n(e,i){void 0===e&&(e=18),void 0===i&&(i=0);for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],n=Math.random,r=e,a=i||o.length,s=0;s<r;s++)t[s]=o[0|n()*a];return t.join("")}function r(e){void 0===e&&(e="UID");var i=o(e);return i||t(e,i=n()),i}function a(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),t=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(t=Number(t)<10?"0"+t:t)}function s(i,o){var t=e({},i),n=e({},o);return Object.keys(t).forEach((function(e){n[e]||delete n[e]})),e(e({},t),n)}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u={exports:{}};!function(e,i){!function(o,t){var n="function",r="undefined",a="object",s="string",c="major",u="model",l="name",d="type",p="vendor",b="version",w="architecture",m="console",f="mobile",h="tablet",v="smarttv",g="wearable",y="embedded",_="Amazon",x="Apple",k="ASUS",S="BlackBerry",P="Browser",O="Chrome",A="Firefox",q="Google",C="Huawei",N="LG",T="Microsoft",E="Motorola",U="Opera",M="Samsung",j="Sharp",L="Sony",z="Xiaomi",I="Zebra",R="Facebook",B="Chromium OS",D="Mac OS",G=" Browser",X=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},V=function(e,i){return typeof e===s&&-1!==F(i).indexOf(F(e))},F=function(e){return e.toLowerCase()},J=function(e,i){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof i===r?e:e.substring(0,500)},H=function(e,i){for(var o,r,s,c,u,l,d=0;d<i.length&&!u;){var p=i[d],b=i[d+1];for(o=r=0;o<p.length&&!u&&p[o];)if(u=p[o++].exec(e))for(s=0;s<b.length;s++)l=u[++r],typeof(c=b[s])===a&&c.length>0?2===c.length?typeof c[1]==n?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==n||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):t:this[c[0]]=l?c[1].call(this,l,c[2]):t:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):t):this[c]=l||t;d+=2}},W=function(e,i){for(var o in i)if(typeof i[o]===a&&i[o].length>0){for(var n=0;n<i[o].length;n++)if(V(i[o][n],e))return"?"===o?t:o}else if(V(i[o],e))return"?"===o?t:o;return i.hasOwnProperty("*")?i["*"]: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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,b],[/opios[\/ ]+([\w\.]+)/i],[b,[l,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[l,U+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[l,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[l,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[l,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+P],b],[/\bfocus\/([\w\.]+)/i],[b,[l,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[l,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[l,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[l,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[b,[l,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+G],b],[/samsungbrowser\/([\w\.]+)/i],[b,[l,M+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,R],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[l,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[b,W,{"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,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[l,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,F]],[/((?: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/,"",F]],[/(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,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],[u,[p,M],[d,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[p,M],[d,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[p,x],[d,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[p,x],[d,h]],[/(macintosh);/i],[u,[p,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[p,j],[d,f]],[/(?:honor)([-\w ]+)[;\)]/i],[u,[p,"Honor"],[d,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[p,C],[d,h]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[p,C],[d,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[u,/_/g," "],[p,z],[d,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[p,z],[d,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[p,"OPPO"],[d,f]],[/\b(opd2\d{3}a?) bui/i],[u,[p,"OPPO"],[d,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[p,"Vivo"],[d,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[p,"Realme"],[d,f]],[/\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],[u,[p,E],[d,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[p,E],[d,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[p,N],[d,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[p,N],[d,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[p,"Lenovo"],[d,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[p,"Nokia"],[d,f]],[/(pixel c)\b/i],[u,[p,q],[d,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[p,q],[d,f]],[/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],[u,[p,L],[d,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[p,L],[d,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[p,"OnePlus"],[d,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[p,_],[d,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[p,_],[d,f]],[/(playbook);[-\w\),; ]+(rim)/i],[u,p,[d,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[p,S],[d,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[p,k],[d,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[p,k],[d,f]],[/(nexus 9)/i],[u,[p,"HTC"],[d,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[u,/_/g," "],[d,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[p,"TCL"],[d,h]],[/(itel) ((\w+))/i],[[p,F],u,[d,W,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[p,"Acer"],[d,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[p,"Meizu"],[d,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[p,"Ulefone"],[d,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[p,"Energizer"],[d,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[p,"Cat"],[d,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[p,"Smartfren"],[d,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[p,"Nothing"],[d,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,u,[d,f]],[/(imo) (tab \w+)/i,/(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],[p,u,[d,h]],[/(surface duo)/i],[u,[p,T],[d,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[p,"Fairphone"],[d,f]],[/(u304aa)/i],[u,[p,"AT&T"],[d,f]],[/\bsie-(\w*)/i],[u,[p,"Siemens"],[d,f]],[/\b(rct\w+) b/i],[u,[p,"RCA"],[d,h]],[/\b(venue[\d ]{2,7}) b/i],[u,[p,"Dell"],[d,h]],[/\b(q(?:mv|ta)\w+) b/i],[u,[p,"Verizon"],[d,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[p,"Barnes & Noble"],[d,h]],[/\b(tm\d{3}\w+) b/i],[u,[p,"NuVision"],[d,h]],[/\b(k88) b/i],[u,[p,"ZTE"],[d,h]],[/\b(nx\d{3}j) b/i],[u,[p,"ZTE"],[d,f]],[/\b(gen\d{3}) b.+49h/i],[u,[p,"Swiss"],[d,f]],[/\b(zur\d{3}) b/i],[u,[p,"Swiss"],[d,h]],[/\b((zeki)?tb.*\b) b/i],[u,[p,"Zeki"],[d,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],u,[d,h]],[/\b(ns-?\w{0,9}) b/i],[u,[p,"Insignia"],[d,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[p,"NextBook"],[d,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],u,[d,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],u,[d,f]],[/\b(ph-1) /i],[u,[p,"Essential"],[d,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[p,"Envizen"],[d,h]],[/\b(trio[-\w\. ]+) b/i],[u,[p,"MachSpeed"],[d,h]],[/\btu_(1491) b/i],[u,[p,"Rotor"],[d,h]],[/(shield[\w ]+) b/i],[u,[p,"Nvidia"],[d,h]],[/(sprint) (\w+)/i],[p,u,[d,f]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[p,T],[d,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[p,I],[d,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[p,I],[d,f]],[/smart-tv.+(samsung)/i],[p,[d,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[p,M],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,N],[d,v]],[/(apple) ?tv/i],[p,[u,x+" TV"],[d,v]],[/crkey/i],[[u,O+"cast"],[p,q],[d,v]],[/droid.+aft(\w+)( bui|\))/i],[u,[p,_],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[p,j],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[u,[p,L],[d,v]],[/(mitv-\w{5}) bui/i],[u,[p,z],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[p,u,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,J],[u,J],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,u,[d,m]],[/droid.+; (shield) bui/i],[u,[p,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[u,[p,L],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[p,T],[d,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[u,[p,M],[d,g]],[/((pebble))app/i],[p,u,[d,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[p,x],[d,g]],[/droid.+; (glass) \d/i],[u,[p,q],[d,g]],[/droid.+; (wt63?0{2,3})\)/i],[u,[p,I],[d,g]],[/droid.+; (glass) \d/i],[u,[p,q],[d,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,u,[d,g]],[/; (quest( \d| pro)?)/i],[u,[p,R],[d,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,y]],[/(aeobc)\b/i],[u,[p,_],[d,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[d,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,f]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[b,W,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,W,Z],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,D],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,b],[/\(bb(10);/i],[b,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[l,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[l,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,B],b],[/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,b],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,b]]},Y=function(e,i){if(typeof e===a&&(i=e,e=t),!(this instanceof Y))return new Y(e,i).getResult();var m=typeof o!==r&&o.navigator?o.navigator:t,v=e||(m&&m.userAgent?m.userAgent:""),g=m&&m.userAgentData?m.userAgentData:t,y=i?function(e,i){var o={};for(var t in e)i[t]&&i[t].length%2==0?o[t]=i[t].concat(e[t]):o[t]=e[t];return o}($,i):$,_=m&&m.userAgent==v;return this.getBrowser=function(){var e,i={};return i[l]=t,i[b]=t,H.call(i,v,y.browser),i[c]=typeof(e=i[b])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:t,_&&m&&m.brave&&typeof m.brave.isBrave==n&&(i[l]="Brave"),i},this.getCPU=function(){var e={};return e[w]=t,H.call(e,v,y.cpu),e},this.getDevice=function(){var e={};return e[p]=t,e[u]=t,e[d]=t,H.call(e,v,y.device),_&&!e[d]&&g&&g.mobile&&(e[d]=f),_&&"Macintosh"==e[u]&&m&&typeof m.standalone!==r&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[d]=h),e},this.getEngine=function(){var e={};return e[l]=t,e[b]=t,H.call(e,v,y.engine),e},this.getOS=function(){var e={};return e[l]=t,e[b]=t,H.call(e,v,y.os),_&&!e[l]&&g&&g.platform&&"Unknown"!=g.platform&&(e[l]=g.platform.replace(/chrome os/i,B).replace(/macos/i,D)),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===s&&e.length>500?J(e,500):e,this},this.setUA(v),this};Y.VERSION="1.0.40",Y.BROWSER=X([l,b,c]),Y.CPU=X([w]),Y.DEVICE=X([u,p,d,m,f,v,h,g,y]),Y.ENGINE=Y.OS=X([l,b]),e.exports&&(i=e.exports=Y),i.UAParser=Y;var K=typeof o!==r&&(o.jQuery||o.Zepto);if(K&&!K.ua){var Q=new Y;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var i=Q.getResult();for(var o in i)K.ua[o]=i[o]}}}("object"==typeof window?window:c)}(u,u.exports);var l=new u.exports.UAParser,d=l.getBrowser();d.name,d.version;var p=l.getEngine();p.name,p.version;var b=function(){var e=(0,l.getOS)();return{os:e.name,osversion:e.version}}(),w=b.os,m=b.osversion,f=function(){var e=(0,l.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),h=f.device,v=f.devicebrand;w=w||"",m=m||"",h=h||"",v=v||"";var g={exports:{}},y={exports:{}},_=1e3,x=60*_,k=60*x,S=24*k,P=365.25*S,O=function(e,i){i=i||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*P;case"days":case"day":case"d":return o*S;case"hours":case"hour":case"hrs":case"hr":case"h":return o*k;case"minutes":case"minute":case"mins":case"min":case"m":return o*x;case"seconds":case"second":case"secs":case"sec":case"s":return o*_;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===o&&!1===isNaN(e))return i.long?function(e){return A(e,S,"day")||A(e,k,"hour")||A(e,x,"minute")||A(e,_,"second")||e+" ms"}(e):function(e){if(e>=S)return Math.round(e/S)+"d";if(e>=k)return Math.round(e/k)+"h";if(e>=x)return Math.round(e/x)+"m";if(e>=_)return Math.round(e/_)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function A(e,i,o){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+o:Math.ceil(e/i)+" "+o+"s"}!function(e,i){var o;function t(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(o||n);e.diff=r,e.prev=o,e.curr=n,o=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=i.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(o,t){if("%%"===o)return o;c++;var n=i.formatters[t];if("function"==typeof n){var r=a[c];o=n.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a),(t.log||i.log||console.log.bind(console)).apply(e,a)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=function(e){var o,t=0;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return i.colors[Math.abs(t)%i.colors.length]}(e),"function"==typeof i.init&&i.init(t),t}(i=y.exports=t.debug=t.default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){i.enable("")},i.enable=function(e){i.save(e),i.names=[],i.skips=[];for(var o=("string"==typeof e?e:"").split(/[\s,]+/),t=o.length,n=0;n<t;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,t;for(o=0,t=i.skips.length;o<t;o++)if(i.skips[o].test(e))return!1;for(o=0,t=i.names.length;o<t;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=O,i.names=[],i.skips=[],i.formatters={}}(0,y.exports),function(e,i){function o(){var e;try{e=i.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(i=e.exports=y.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+i.humanize(this.diff),!o)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=o,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(o())}(g,g.exports);var q=g.exports("jsonp"),C=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var t,n,r=i.prefix||"__jp",a=i.name||r+N++,s=i.param||"callback",c=null!=i.timeout?i.timeout:6e4,u=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;c&&(n=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){t.parentNode&&t.parentNode.removeChild(t),window[a]=T,n&&clearTimeout(n)}return window[a]=function(e){q("jsonp got",e),d(),o&&o(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+u(a)).replace("?&","?"),q('jsonp req "%s"',e),(t=document.createElement("script")).src=e,l.parentNode.insertBefore(t,l),function(){window[a]&&d()}},N=0;function T(){}function E(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;C("".concat(e,"?").concat((n=i,Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__"),timeout:0},(function(e,i){e?t(e):o(i)}))}))}var U,M="5.1.0",j="organic";exports.EGender=void 0,(U=exports.EGender||(exports.EGender={}))[U.Unknown=0]="Unknown",U[U.Male=1]="Male",U[U.Female=2]="Female";var L=function(){function c(e){var i=e.domain,o=e.commonParams,t=e.isPro,n=void 0===t||t,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version=M,this.buildDate="2/27/2026, 10:04:29 AM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),t={};return o&&o.split("&").forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]})),Object.keys(t).forEach((function(i){e.includes(i)&&delete t[i]})),t}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=n,this._sendOpenLog=a,this._consoleLog=c;var u=this._getApis(i),l=u.openUrl,d=u.eventUrl,p=u.actUrl;this._openUrl=l,this._eventUrl=d,this._actUrl=p,this._updateCommonParams(this._filterParams(o)),this._init()}return Object.defineProperty(c.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),c.prototype._init=function(){var e=this;this._initCommonParams(),this._coldStartUp(),this._visibilityChange((function(){e._updateCommonParams({network:e._getNetWorkType()}),e._open(1)}),(function(){e._open(5)}))},c.prototype._visibilityChange=function(e,i){void 0===e&&(e=function(){}),void 0===i&&(i=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():i()}),!1)},c.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},c.prototype._getNetWorkType=function(){var e=window.navigator,i=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==i?void 0:i.type)||(null==i?void 0:i.effectiveType)||"other"},c.prototype._getBatchId=function(){var e,o=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem(i+e):null);return o||function(e,o){void 0!==typeof sessionStorage&&sessionStorage.setItem(i+e,o)}("BATCH_ID",o=n()),o},c.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},c.prototype._getApis=function(i){var o=this._isPro?{open:"webopen-inside.tt.cn",event:"webevent-inside.tt.cn",act:"webact-inside.tt.cn"}:{open:"test-webopen-inside.tt.cn",event:"test-webevent-inside.tt.cn",act:"test-webact-inside.tt.cn"},t=e(e({},o),i);return{openUrl:"https://".concat(t.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(t.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(t.act,"/gamefunction_logs/applet/activity")}},c.prototype._cacheCommonParams=function(e){t("COMMON_PARAMS",JSON.stringify(e))},c.prototype._getInitParams=function(){return{os:w,osversion:m,device:h,devicebrand:v,platform:7,openid:r(),appcqid:j,appqid:j+a(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},c.prototype._initCommonParams=function(){var i=this._getInitParams(),t=o("COMMON_PARAMS");t&&(i=e(e({},i),JSON.parse(t))),i=s(i,this._commonParams),this._updateCommonParams(e(e({},i),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},c.prototype._getUserInfo=function(i){var o={};if(i)try{o=JSON.parse(i)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var t={};if(this._commonParams.userinfo)try{t=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(e(e({querystring:this._urlParams},t),o))},c.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var t in e){var n=e[t];o.includes(t)&&n&&(i[t]=n)}}return i},c.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},c.prototype._updateCommonParams=function(e){this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo&&(e.userinfo=this._getUserInfo(e.userinfo)),e.appcqid&&(e.appqid=e.appcqid+a()),e.appver&&(e.appverint=function(e){try{return e&&"string"==typeof e?e.split(".").map((function(e){return 1===e.length?"0"+e:e})).join(""):""}catch(i){return console.error('[transferVersion] ver("'.concat(e,'")格式异常:'),i),""}}(e.appver)),this._commonParams=s(this._commonParams,e),this._cacheCommonParams(this._commonParams)},c.prototype._getAppqid=function(){return this._commonParams.appcqid+a()},c.prototype._request=function(e,i){!function(e,i){E(e,i)}(e,i)},c.prototype._open=function(i){if(this._sendOpenLog){var o=e(e({},this._commonParams),{openway:i,appqid:this._getAppqid(),xmlog:M});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},c.prototype.event=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),event1:i.event1||"",event2:i.event2||"",event3:i.event3||"",event4:i.event4||"",value1:i.value1||"",value2:i.value2||"",value3:i.value3||"",value4:i.value4||""});this._consoleLog&&console.log("[XLOG] PARAMS(EVENT)",o),this._request(this._eventUrl,o)},c.prototype.act=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),actentryid:i.actentryid||"",subactid:i.subactid||"",type:i.type||"",custom:i.custom||"",batchid:i.batchid||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",o),this._request(this._actUrl,o)},c}();exports.XLog=L;
|
|
6
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){return e=Object.assign||function(e){for(var i,o=1,t=arguments.length;o<t;o++)for(var n in i=arguments[o])Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},e.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var i="XYZ_LOG_";function o(e){return void 0!==typeof localStorage?localStorage.getItem(i+e):null}function t(e,o){void 0!==typeof localStorage&&localStorage.setItem(i+e,o)}function n(e,i){void 0===e&&(e=18),void 0===i&&(i=0);for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],n=Math.random,r=e,a=i||o.length,s=0;s<r;s++)t[s]=o[0|n()*a];return t.join("")}function r(e){void 0===e&&(e="UID");var i=o(e);return i||t(e,i=n()),i}function a(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),t=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(t=Number(t)<10?"0"+t:t)}function s(i,o){var t=e({},i),n=e({},o);return Object.keys(t).forEach((function(e){n[e]||delete n[e]})),e(e({},t),n)}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u={exports:{}};!function(e,i){!function(o,t){var n="function",r="undefined",a="object",s="string",c="major",u="model",l="name",d="type",p="vendor",b="version",w="architecture",m="console",f="mobile",h="tablet",v="smarttv",g="wearable",y="embedded",_="Amazon",x="Apple",k="ASUS",S="BlackBerry",P="Browser",O="Chrome",A="Firefox",q="Google",C="Huawei",N="LG",T="Microsoft",E="Motorola",U="Opera",M="Samsung",j="Sharp",L="Sony",z="Xiaomi",I="Zebra",R="Facebook",B="Chromium OS",D="Mac OS",G=" Browser",X=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},V=function(e,i){return typeof e===s&&-1!==F(i).indexOf(F(e))},F=function(e){return e.toLowerCase()},J=function(e,i){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof i===r?e:e.substring(0,500)},H=function(e,i){for(var o,r,s,c,u,l,d=0;d<i.length&&!u;){var p=i[d],b=i[d+1];for(o=r=0;o<p.length&&!u&&p[o];)if(u=p[o++].exec(e))for(s=0;s<b.length;s++)l=u[++r],typeof(c=b[s])===a&&c.length>0?2===c.length?typeof c[1]==n?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==n||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):t:this[c[0]]=l?c[1].call(this,l,c[2]):t:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):t):this[c]=l||t;d+=2}},W=function(e,i){for(var o in i)if(typeof i[o]===a&&i[o].length>0){for(var n=0;n<i[o].length;n++)if(V(i[o][n],e))return"?"===o?t:o}else if(V(i[o],e))return"?"===o?t:o;return i.hasOwnProperty("*")?i["*"]: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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,b],[/opios[\/ ]+([\w\.]+)/i],[b,[l,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[l,U+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[l,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[l,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[l,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+P],b],[/\bfocus\/([\w\.]+)/i],[b,[l,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[l,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[l,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[l,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[b,[l,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+G],b],[/samsungbrowser\/([\w\.]+)/i],[b,[l,M+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,R],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[l,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[b,W,{"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,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[l,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,F]],[/((?: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/,"",F]],[/(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,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],[u,[p,M],[d,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[p,M],[d,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[p,x],[d,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[p,x],[d,h]],[/(macintosh);/i],[u,[p,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[p,j],[d,f]],[/(?:honor)([-\w ]+)[;\)]/i],[u,[p,"Honor"],[d,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[p,C],[d,h]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[p,C],[d,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[u,/_/g," "],[p,z],[d,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[p,z],[d,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[p,"OPPO"],[d,f]],[/\b(opd2\d{3}a?) bui/i],[u,[p,"OPPO"],[d,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[p,"Vivo"],[d,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[p,"Realme"],[d,f]],[/\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],[u,[p,E],[d,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[p,E],[d,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[p,N],[d,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[p,N],[d,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[p,"Lenovo"],[d,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[p,"Nokia"],[d,f]],[/(pixel c)\b/i],[u,[p,q],[d,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[p,q],[d,f]],[/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],[u,[p,L],[d,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[p,L],[d,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[p,"OnePlus"],[d,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[p,_],[d,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[p,_],[d,f]],[/(playbook);[-\w\),; ]+(rim)/i],[u,p,[d,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[p,S],[d,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[p,k],[d,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[p,k],[d,f]],[/(nexus 9)/i],[u,[p,"HTC"],[d,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[u,/_/g," "],[d,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[p,"TCL"],[d,h]],[/(itel) ((\w+))/i],[[p,F],u,[d,W,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[p,"Acer"],[d,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[p,"Meizu"],[d,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[p,"Ulefone"],[d,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[p,"Energizer"],[d,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[p,"Cat"],[d,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[p,"Smartfren"],[d,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[p,"Nothing"],[d,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,u,[d,f]],[/(imo) (tab \w+)/i,/(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],[p,u,[d,h]],[/(surface duo)/i],[u,[p,T],[d,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[p,"Fairphone"],[d,f]],[/(u304aa)/i],[u,[p,"AT&T"],[d,f]],[/\bsie-(\w*)/i],[u,[p,"Siemens"],[d,f]],[/\b(rct\w+) b/i],[u,[p,"RCA"],[d,h]],[/\b(venue[\d ]{2,7}) b/i],[u,[p,"Dell"],[d,h]],[/\b(q(?:mv|ta)\w+) b/i],[u,[p,"Verizon"],[d,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[p,"Barnes & Noble"],[d,h]],[/\b(tm\d{3}\w+) b/i],[u,[p,"NuVision"],[d,h]],[/\b(k88) b/i],[u,[p,"ZTE"],[d,h]],[/\b(nx\d{3}j) b/i],[u,[p,"ZTE"],[d,f]],[/\b(gen\d{3}) b.+49h/i],[u,[p,"Swiss"],[d,f]],[/\b(zur\d{3}) b/i],[u,[p,"Swiss"],[d,h]],[/\b((zeki)?tb.*\b) b/i],[u,[p,"Zeki"],[d,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],u,[d,h]],[/\b(ns-?\w{0,9}) b/i],[u,[p,"Insignia"],[d,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[p,"NextBook"],[d,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],u,[d,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],u,[d,f]],[/\b(ph-1) /i],[u,[p,"Essential"],[d,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[p,"Envizen"],[d,h]],[/\b(trio[-\w\. ]+) b/i],[u,[p,"MachSpeed"],[d,h]],[/\btu_(1491) b/i],[u,[p,"Rotor"],[d,h]],[/(shield[\w ]+) b/i],[u,[p,"Nvidia"],[d,h]],[/(sprint) (\w+)/i],[p,u,[d,f]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[p,T],[d,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[p,I],[d,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[p,I],[d,f]],[/smart-tv.+(samsung)/i],[p,[d,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[p,M],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,N],[d,v]],[/(apple) ?tv/i],[p,[u,x+" TV"],[d,v]],[/crkey/i],[[u,O+"cast"],[p,q],[d,v]],[/droid.+aft(\w+)( bui|\))/i],[u,[p,_],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[p,j],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[u,[p,L],[d,v]],[/(mitv-\w{5}) bui/i],[u,[p,z],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[p,u,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,J],[u,J],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,u,[d,m]],[/droid.+; (shield) bui/i],[u,[p,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[u,[p,L],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[p,T],[d,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[u,[p,M],[d,g]],[/((pebble))app/i],[p,u,[d,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[p,x],[d,g]],[/droid.+; (glass) \d/i],[u,[p,q],[d,g]],[/droid.+; (wt63?0{2,3})\)/i],[u,[p,I],[d,g]],[/droid.+; (glass) \d/i],[u,[p,q],[d,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,u,[d,g]],[/; (quest( \d| pro)?)/i],[u,[p,R],[d,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,y]],[/(aeobc)\b/i],[u,[p,_],[d,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[d,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,f]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[b,W,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,W,Z],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,D],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,b],[/\(bb(10);/i],[b,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[l,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[l,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,B],b],[/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,b],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,b]]},Y=function(e,i){if(typeof e===a&&(i=e,e=t),!(this instanceof Y))return new Y(e,i).getResult();var m=typeof o!==r&&o.navigator?o.navigator:t,v=e||(m&&m.userAgent?m.userAgent:""),g=m&&m.userAgentData?m.userAgentData:t,y=i?function(e,i){var o={};for(var t in e)i[t]&&i[t].length%2==0?o[t]=i[t].concat(e[t]):o[t]=e[t];return o}($,i):$,_=m&&m.userAgent==v;return this.getBrowser=function(){var e,i={};return i[l]=t,i[b]=t,H.call(i,v,y.browser),i[c]=typeof(e=i[b])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:t,_&&m&&m.brave&&typeof m.brave.isBrave==n&&(i[l]="Brave"),i},this.getCPU=function(){var e={};return e[w]=t,H.call(e,v,y.cpu),e},this.getDevice=function(){var e={};return e[p]=t,e[u]=t,e[d]=t,H.call(e,v,y.device),_&&!e[d]&&g&&g.mobile&&(e[d]=f),_&&"Macintosh"==e[u]&&m&&typeof m.standalone!==r&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[d]=h),e},this.getEngine=function(){var e={};return e[l]=t,e[b]=t,H.call(e,v,y.engine),e},this.getOS=function(){var e={};return e[l]=t,e[b]=t,H.call(e,v,y.os),_&&!e[l]&&g&&g.platform&&"Unknown"!=g.platform&&(e[l]=g.platform.replace(/chrome os/i,B).replace(/macos/i,D)),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===s&&e.length>500?J(e,500):e,this},this.setUA(v),this};Y.VERSION="1.0.40",Y.BROWSER=X([l,b,c]),Y.CPU=X([w]),Y.DEVICE=X([u,p,d,m,f,v,h,g,y]),Y.ENGINE=Y.OS=X([l,b]),e.exports&&(i=e.exports=Y),i.UAParser=Y;var K=typeof o!==r&&(o.jQuery||o.Zepto);if(K&&!K.ua){var Q=new Y;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var i=Q.getResult();for(var o in i)K.ua[o]=i[o]}}}("object"==typeof window?window:c)}(u,u.exports);var l=new u.exports.UAParser,d=l.getBrowser();d.name,d.version;var p=l.getEngine();p.name,p.version;var b=function(){var e=(0,l.getOS)();return{os:e.name,osversion:e.version}}(),w=b.os,m=b.osversion,f=function(){var e=(0,l.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),h=f.device,v=f.devicebrand;w=w||"",m=m||"",h=h||"",v=v||"";var g={exports:{}},y={exports:{}},_=1e3,x=60*_,k=60*x,S=24*k,P=365.25*S,O=function(e,i){i=i||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*P;case"days":case"day":case"d":return o*S;case"hours":case"hour":case"hrs":case"hr":case"h":return o*k;case"minutes":case"minute":case"mins":case"min":case"m":return o*x;case"seconds":case"second":case"secs":case"sec":case"s":return o*_;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===o&&!1===isNaN(e))return i.long?function(e){return A(e,S,"day")||A(e,k,"hour")||A(e,x,"minute")||A(e,_,"second")||e+" ms"}(e):function(e){if(e>=S)return Math.round(e/S)+"d";if(e>=k)return Math.round(e/k)+"h";if(e>=x)return Math.round(e/x)+"m";if(e>=_)return Math.round(e/_)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function A(e,i,o){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+o:Math.ceil(e/i)+" "+o+"s"}!function(e,i){var o;function t(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(o||n);e.diff=r,e.prev=o,e.curr=n,o=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=i.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(o,t){if("%%"===o)return o;c++;var n=i.formatters[t];if("function"==typeof n){var r=a[c];o=n.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a),(t.log||i.log||console.log.bind(console)).apply(e,a)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=function(e){var o,t=0;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return i.colors[Math.abs(t)%i.colors.length]}(e),"function"==typeof i.init&&i.init(t),t}(i=y.exports=t.debug=t.default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){i.enable("")},i.enable=function(e){i.save(e),i.names=[],i.skips=[];for(var o=("string"==typeof e?e:"").split(/[\s,]+/),t=o.length,n=0;n<t;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,t;for(o=0,t=i.skips.length;o<t;o++)if(i.skips[o].test(e))return!1;for(o=0,t=i.names.length;o<t;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=O,i.names=[],i.skips=[],i.formatters={}}(0,y.exports),function(e,i){function o(){var e;try{e=i.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(i=e.exports=y.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+i.humanize(this.diff),!o)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=o,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(o())}(g,g.exports);var q=g.exports("jsonp"),C=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var t,n,r=i.prefix||"__jp",a=i.name||r+N++,s=i.param||"callback",c=null!=i.timeout?i.timeout:6e4,u=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;c&&(n=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){t.parentNode&&t.parentNode.removeChild(t),window[a]=T,n&&clearTimeout(n)}return window[a]=function(e){q("jsonp got",e),d(),o&&o(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+u(a)).replace("?&","?"),q('jsonp req "%s"',e),(t=document.createElement("script")).src=e,l.parentNode.insertBefore(t,l),function(){window[a]&&d()}},N=0;function T(){}function E(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;C("".concat(e,"?").concat((n=i,Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__"),timeout:0},(function(e,i){e?t(e):o(i)}))}))}var U,M="5.2.0",j="organic";exports.EGender=void 0,(U=exports.EGender||(exports.EGender={}))[U.Unknown=0]="Unknown",U[U.Male=1]="Male",U[U.Female=2]="Female";var L=function(){function c(e){var i=e.domain,o=e.commonParams,t=e.isPro,n=void 0===t||t,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version=M,this.buildDate="3/10/2026, 3:32:13 PM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),t={};return o&&o.split("&").forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]})),Object.keys(t).forEach((function(i){e.includes(i)&&delete t[i]})),t}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=n,this._sendOpenLog=a,this._consoleLog=c;var u=this._getApis(i),l=u.openUrl,d=u.eventUrl,p=u.actUrl;this._openUrl=l,this._eventUrl=d,this._actUrl=p,this._updateCommonParams(this._filterParams(o)),this._init()}return Object.defineProperty(c.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),c.prototype._init=function(){var e=this;this._initCommonParams(),this._coldStartUp(),this._visibilityChange((function(){e._updateCommonParams({network:e._getNetWorkType()}),e._open(1)}),(function(){e._open(5)}))},c.prototype._visibilityChange=function(e,i){void 0===e&&(e=function(){}),void 0===i&&(i=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():i()}),!1)},c.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},c.prototype._getNetWorkType=function(){var e=window.navigator,i=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==i?void 0:i.type)||(null==i?void 0:i.effectiveType)||"other"},c.prototype._getBatchId=function(){var e,o=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem(i+e):null);return o||function(e,o){void 0!==typeof sessionStorage&&sessionStorage.setItem(i+e,o)}("BATCH_ID",o=n()),o},c.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},c.prototype._getApis=function(i){var o=this._isPro?{open:"webopen-inside.tt.cn",event:"webevent-inside.tt.cn",act:"webact-inside.tt.cn"}:{open:"test-webopen-inside.tt.cn",event:"test-webevent-inside.tt.cn",act:"test-webact-inside.tt.cn"},t=e(e({},o),i);return{openUrl:"https://".concat(t.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(t.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(t.act,"/gamefunction_logs/applet/activity")}},c.prototype._cacheCommonParams=function(e){t("COMMON_PARAMS",JSON.stringify(e))},c.prototype._getInitParams=function(){return{os:w,osversion:m,device:h,devicebrand:v,platform:7,openid:r(),appcqid:j,appqid:j+a(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},c.prototype._initCommonParams=function(){var i=this._getInitParams(),t=o("COMMON_PARAMS");t&&(i=e(e({},i),JSON.parse(t))),i=s(i,this._commonParams),this._updateCommonParams(e(e({},i),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},c.prototype._getUserInfo=function(i){var o={};if(i)try{o=JSON.parse(i)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var t={};if(this._commonParams.userinfo)try{t=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(e(e({querystring:this._urlParams},t),o))},c.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var t in e){var n=e[t];o.includes(t)&&n&&(i[t]=n)}}return i},c.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},c.prototype._updateCommonParams=function(e){this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo&&(e.userinfo=this._getUserInfo(e.userinfo)),e.appcqid&&(e.appqid=e.appcqid+a()),e.appver&&(e.appverint=function(e){try{return e&&"string"==typeof e?e.split(".").map((function(e){return 1===e.length?"0"+e:e})).join(""):""}catch(i){return console.error('[transferVersion] ver("'.concat(e,'")格式异常:'),i),""}}(e.appver)),this._commonParams=s(this._commonParams,e),this._cacheCommonParams(this._commonParams)},c.prototype._getAppqid=function(){return this._commonParams.appcqid+a()},c.prototype._request=function(e,i){!function(e,i){E(e,i)}(e,i)},c.prototype._open=function(i){if(this._sendOpenLog){var o=e(e({},this._commonParams),{openway:i,appqid:this._getAppqid(),xmlog:M});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},c.prototype.event=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),event1:i.event1||"",event2:i.event2||"",event3:i.event3||"",event4:i.event4||"",value1:i.value1||"",value2:i.value2||"",value3:i.value3||"",value4:i.value4||""});this._consoleLog&&console.log("[XLOG] PARAMS(EVENT)",o),this._request(this._eventUrl,o)},c.prototype.act=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),actentryid:i.actentryid||"",subactid:i.subactid||"",type:i.type||"",custom:i.custom||"",batchid:i.batchid||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",o),this._request(this._actUrl,o)},c}();exports.XLog=L;
|
package/dist/web.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @xyz-fe/log v5.
|
|
2
|
+
* @xyz-fe/log v5.2.0
|
|
3
3
|
* (c) lizhigao <lizhigao@021.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((e="undefined"!=typeof globalThis?globalThis:e||self).web={})}(this,(function(e){"use strict";var i=function(){return i=Object.assign||function(e){for(var i,o=1,t=arguments.length;o<t;o++)for(var n in i=arguments[o])Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},i.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var o="XYZ_LOG_";function t(e){return void 0!==typeof localStorage?localStorage.getItem(o+e):null}function n(e,i){void 0!==typeof localStorage&&localStorage.setItem(o+e,i)}function r(e,i){void 0===e&&(e=18),void 0===i&&(i=0);for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],n=Math.random,r=e,a=i||o.length,s=0;s<r;s++)t[s]=o[0|n()*a];return t.join("")}function a(e){void 0===e&&(e="UID");var i=t(e);return i||n(e,i=r()),i}function s(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),t=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(t=Number(t)<10?"0"+t:t)}function c(e,o){var t=i({},e),n=i({},o);return Object.keys(t).forEach((function(e){n[e]||delete n[e]})),i(i({},t),n)}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={exports:{}};!function(e,i){!function(o,t){var n="function",r="undefined",a="object",s="string",c="major",u="model",l="name",d="type",p="vendor",b="version",w="architecture",m="console",f="mobile",h="tablet",v="smarttv",g="wearable",y="embedded",_="Amazon",x="Apple",k="ASUS",S="BlackBerry",P="Browser",O="Chrome",A="Firefox",q="Google",C="Huawei",N="LG",T="Microsoft",E="Motorola",U="Opera",M="Samsung",j="Sharp",L="Sony",z="Xiaomi",I="Zebra",R="Facebook",B="Chromium OS",D="Mac OS",G=" Browser",X=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},V=function(e,i){return typeof e===s&&-1!==F(i).indexOf(F(e))},F=function(e){return e.toLowerCase()},J=function(e,i){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof i===r?e:e.substring(0,500)},H=function(e,i){for(var o,r,s,c,u,l,d=0;d<i.length&&!u;){var p=i[d],b=i[d+1];for(o=r=0;o<p.length&&!u&&p[o];)if(u=p[o++].exec(e))for(s=0;s<b.length;s++)l=u[++r],typeof(c=b[s])===a&&c.length>0?2===c.length?typeof c[1]==n?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==n||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):t:this[c[0]]=l?c[1].call(this,l,c[2]):t:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):t):this[c]=l||t;d+=2}},W=function(e,i){for(var o in i)if(typeof i[o]===a&&i[o].length>0){for(var n=0;n<i[o].length;n++)if(V(i[o][n],e))return"?"===o?t:o}else if(V(i[o],e))return"?"===o?t:o;return i.hasOwnProperty("*")?i["*"]: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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,b],[/opios[\/ ]+([\w\.]+)/i],[b,[l,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[l,U+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[l,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[l,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[l,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+P],b],[/\bfocus\/([\w\.]+)/i],[b,[l,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[l,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[l,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[l,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[b,[l,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+G],b],[/samsungbrowser\/([\w\.]+)/i],[b,[l,M+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,R],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[l,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[b,W,{"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,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[l,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,F]],[/((?: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/,"",F]],[/(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,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],[u,[p,M],[d,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[p,M],[d,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[p,x],[d,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[p,x],[d,h]],[/(macintosh);/i],[u,[p,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[p,j],[d,f]],[/(?:honor)([-\w ]+)[;\)]/i],[u,[p,"Honor"],[d,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[p,C],[d,h]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[p,C],[d,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[u,/_/g," "],[p,z],[d,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[p,z],[d,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[p,"OPPO"],[d,f]],[/\b(opd2\d{3}a?) bui/i],[u,[p,"OPPO"],[d,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[p,"Vivo"],[d,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[p,"Realme"],[d,f]],[/\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],[u,[p,E],[d,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[p,E],[d,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[p,N],[d,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[p,N],[d,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[p,"Lenovo"],[d,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[p,"Nokia"],[d,f]],[/(pixel c)\b/i],[u,[p,q],[d,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[p,q],[d,f]],[/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],[u,[p,L],[d,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[p,L],[d,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[p,"OnePlus"],[d,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[p,_],[d,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[p,_],[d,f]],[/(playbook);[-\w\),; ]+(rim)/i],[u,p,[d,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[p,S],[d,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[p,k],[d,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[p,k],[d,f]],[/(nexus 9)/i],[u,[p,"HTC"],[d,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[u,/_/g," "],[d,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[p,"TCL"],[d,h]],[/(itel) ((\w+))/i],[[p,F],u,[d,W,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[p,"Acer"],[d,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[p,"Meizu"],[d,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[p,"Ulefone"],[d,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[p,"Energizer"],[d,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[p,"Cat"],[d,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[p,"Smartfren"],[d,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[p,"Nothing"],[d,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,u,[d,f]],[/(imo) (tab \w+)/i,/(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],[p,u,[d,h]],[/(surface duo)/i],[u,[p,T],[d,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[p,"Fairphone"],[d,f]],[/(u304aa)/i],[u,[p,"AT&T"],[d,f]],[/\bsie-(\w*)/i],[u,[p,"Siemens"],[d,f]],[/\b(rct\w+) b/i],[u,[p,"RCA"],[d,h]],[/\b(venue[\d ]{2,7}) b/i],[u,[p,"Dell"],[d,h]],[/\b(q(?:mv|ta)\w+) b/i],[u,[p,"Verizon"],[d,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[p,"Barnes & Noble"],[d,h]],[/\b(tm\d{3}\w+) b/i],[u,[p,"NuVision"],[d,h]],[/\b(k88) b/i],[u,[p,"ZTE"],[d,h]],[/\b(nx\d{3}j) b/i],[u,[p,"ZTE"],[d,f]],[/\b(gen\d{3}) b.+49h/i],[u,[p,"Swiss"],[d,f]],[/\b(zur\d{3}) b/i],[u,[p,"Swiss"],[d,h]],[/\b((zeki)?tb.*\b) b/i],[u,[p,"Zeki"],[d,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],u,[d,h]],[/\b(ns-?\w{0,9}) b/i],[u,[p,"Insignia"],[d,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[p,"NextBook"],[d,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],u,[d,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],u,[d,f]],[/\b(ph-1) /i],[u,[p,"Essential"],[d,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[p,"Envizen"],[d,h]],[/\b(trio[-\w\. ]+) b/i],[u,[p,"MachSpeed"],[d,h]],[/\btu_(1491) b/i],[u,[p,"Rotor"],[d,h]],[/(shield[\w ]+) b/i],[u,[p,"Nvidia"],[d,h]],[/(sprint) (\w+)/i],[p,u,[d,f]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[p,T],[d,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[p,I],[d,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[p,I],[d,f]],[/smart-tv.+(samsung)/i],[p,[d,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[p,M],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,N],[d,v]],[/(apple) ?tv/i],[p,[u,x+" TV"],[d,v]],[/crkey/i],[[u,O+"cast"],[p,q],[d,v]],[/droid.+aft(\w+)( bui|\))/i],[u,[p,_],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[p,j],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[u,[p,L],[d,v]],[/(mitv-\w{5}) bui/i],[u,[p,z],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[p,u,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,J],[u,J],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,u,[d,m]],[/droid.+; (shield) bui/i],[u,[p,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[u,[p,L],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[p,T],[d,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[u,[p,M],[d,g]],[/((pebble))app/i],[p,u,[d,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[p,x],[d,g]],[/droid.+; (glass) \d/i],[u,[p,q],[d,g]],[/droid.+; (wt63?0{2,3})\)/i],[u,[p,I],[d,g]],[/droid.+; (glass) \d/i],[u,[p,q],[d,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,u,[d,g]],[/; (quest( \d| pro)?)/i],[u,[p,R],[d,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,y]],[/(aeobc)\b/i],[u,[p,_],[d,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[d,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,f]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[b,W,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,W,Z],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,D],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,b],[/\(bb(10);/i],[b,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[l,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[l,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,B],b],[/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,b],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,b]]},Y=function(e,i){if(typeof e===a&&(i=e,e=t),!(this instanceof Y))return new Y(e,i).getResult();var m=typeof o!==r&&o.navigator?o.navigator:t,v=e||(m&&m.userAgent?m.userAgent:""),g=m&&m.userAgentData?m.userAgentData:t,y=i?function(e,i){var o={};for(var t in e)i[t]&&i[t].length%2==0?o[t]=i[t].concat(e[t]):o[t]=e[t];return o}($,i):$,_=m&&m.userAgent==v;return this.getBrowser=function(){var e,i={};return i[l]=t,i[b]=t,H.call(i,v,y.browser),i[c]=typeof(e=i[b])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:t,_&&m&&m.brave&&typeof m.brave.isBrave==n&&(i[l]="Brave"),i},this.getCPU=function(){var e={};return e[w]=t,H.call(e,v,y.cpu),e},this.getDevice=function(){var e={};return e[p]=t,e[u]=t,e[d]=t,H.call(e,v,y.device),_&&!e[d]&&g&&g.mobile&&(e[d]=f),_&&"Macintosh"==e[u]&&m&&typeof m.standalone!==r&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[d]=h),e},this.getEngine=function(){var e={};return e[l]=t,e[b]=t,H.call(e,v,y.engine),e},this.getOS=function(){var e={};return e[l]=t,e[b]=t,H.call(e,v,y.os),_&&!e[l]&&g&&g.platform&&"Unknown"!=g.platform&&(e[l]=g.platform.replace(/chrome os/i,B).replace(/macos/i,D)),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===s&&e.length>500?J(e,500):e,this},this.setUA(v),this};Y.VERSION="1.0.40",Y.BROWSER=X([l,b,c]),Y.CPU=X([w]),Y.DEVICE=X([u,p,d,m,f,v,h,g,y]),Y.ENGINE=Y.OS=X([l,b]),e.exports&&(i=e.exports=Y),i.UAParser=Y;var K=typeof o!==r&&(o.jQuery||o.Zepto);if(K&&!K.ua){var Q=new Y;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var i=Q.getResult();for(var o in i)K.ua[o]=i[o]}}}("object"==typeof window?window:u)}(l,l.exports);var d=new l.exports.UAParser,p=d.getBrowser();p.name,p.version;var b=d.getEngine();b.name,b.version;var w=function(){var e=(0,d.getOS)();return{os:e.name,osversion:e.version}}(),m=w.os,f=w.osversion,h=function(){var e=(0,d.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),v=h.device,g=h.devicebrand;m=m||"",f=f||"",v=v||"",g=g||"";var y={exports:{}},_={exports:{}},x=1e3,k=60*x,S=60*k,P=24*S,O=365.25*P,A=function(e,i){i=i||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*O;case"days":case"day":case"d":return o*P;case"hours":case"hour":case"hrs":case"hr":case"h":return o*S;case"minutes":case"minute":case"mins":case"min":case"m":return o*k;case"seconds":case"second":case"secs":case"sec":case"s":return o*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===o&&!1===isNaN(e))return i.long?function(e){return q(e,P,"day")||q(e,S,"hour")||q(e,k,"minute")||q(e,x,"second")||e+" ms"}(e):function(e){if(e>=P)return Math.round(e/P)+"d";if(e>=S)return Math.round(e/S)+"h";if(e>=k)return Math.round(e/k)+"m";if(e>=x)return Math.round(e/x)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function q(e,i,o){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+o:Math.ceil(e/i)+" "+o+"s"}!function(e,i){var o;function t(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(o||n);e.diff=r,e.prev=o,e.curr=n,o=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=i.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(o,t){if("%%"===o)return o;c++;var n=i.formatters[t];if("function"==typeof n){var r=a[c];o=n.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a),(t.log||i.log||console.log.bind(console)).apply(e,a)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=function(e){var o,t=0;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return i.colors[Math.abs(t)%i.colors.length]}(e),"function"==typeof i.init&&i.init(t),t}(i=e.exports=t.debug=t.default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){i.enable("")},i.enable=function(e){i.save(e),i.names=[],i.skips=[];for(var o=("string"==typeof e?e:"").split(/[\s,]+/),t=o.length,n=0;n<t;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,t;for(o=0,t=i.skips.length;o<t;o++)if(i.skips[o].test(e))return!1;for(o=0,t=i.names.length;o<t;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=A,i.names=[],i.skips=[],i.formatters={}}(_,_.exports),function(e,i){function o(){var e;try{e=i.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(i=e.exports=_.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+i.humanize(this.diff),!o)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=o,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(o())}(y,y.exports);var C=y.exports("jsonp"),N=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var t,n,r=i.prefix||"__jp",a=i.name||r+T++,s=i.param||"callback",c=null!=i.timeout?i.timeout:6e4,u=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;c&&(n=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){t.parentNode&&t.parentNode.removeChild(t),window[a]=E,n&&clearTimeout(n)}return window[a]=function(e){C("jsonp got",e),d(),o&&o(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+u(a)).replace("?&","?"),C('jsonp req "%s"',e),(t=document.createElement("script")).src=e,l.parentNode.insertBefore(t,l),function(){window[a]&&d()}},T=0;function E(){}function U(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;N("".concat(e,"?").concat((n=i,Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__"),timeout:0},(function(e,i){e?t(e):o(i)}))}))}var M,j="5.1.0",L="organic";e.EGender=void 0,(M=e.EGender||(e.EGender={}))[M.Unknown=0]="Unknown",M[M.Male=1]="Male",M[M.Female=2]="Female";var z=function(){function e(e){var i=e.domain,o=e.commonParams,t=e.isPro,n=void 0===t||t,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version=j,this.buildDate="2/27/2026, 10:04:29 AM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),t={};return o&&o.split("&").forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]})),Object.keys(t).forEach((function(i){e.includes(i)&&delete t[i]})),t}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=n,this._sendOpenLog=a,this._consoleLog=c;var u=this._getApis(i),l=u.openUrl,d=u.eventUrl,p=u.actUrl;this._openUrl=l,this._eventUrl=d,this._actUrl=p,this._updateCommonParams(this._filterParams(o)),this._init()}return Object.defineProperty(e.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),e.prototype._init=function(){var e=this;this._initCommonParams(),this._coldStartUp(),this._visibilityChange((function(){e._updateCommonParams({network:e._getNetWorkType()}),e._open(1)}),(function(){e._open(5)}))},e.prototype._visibilityChange=function(e,i){void 0===e&&(e=function(){}),void 0===i&&(i=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():i()}),!1)},e.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},e.prototype._getNetWorkType=function(){var e=window.navigator,i=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==i?void 0:i.type)||(null==i?void 0:i.effectiveType)||"other"},e.prototype._getBatchId=function(){var e,i=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem(o+e):null);return i||function(e,i){void 0!==typeof sessionStorage&&sessionStorage.setItem(o+e,i)}("BATCH_ID",i=r()),i},e.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},e.prototype._getApis=function(e){var o=this._isPro?{open:"webopen-inside.tt.cn",event:"webevent-inside.tt.cn",act:"webact-inside.tt.cn"}:{open:"test-webopen-inside.tt.cn",event:"test-webevent-inside.tt.cn",act:"test-webact-inside.tt.cn"},t=i(i({},o),e);return{openUrl:"https://".concat(t.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(t.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(t.act,"/gamefunction_logs/applet/activity")}},e.prototype._cacheCommonParams=function(e){n("COMMON_PARAMS",JSON.stringify(e))},e.prototype._getInitParams=function(){return{os:m,osversion:f,device:v,devicebrand:g,platform:7,openid:a(),appcqid:L,appqid:L+s(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},e.prototype._initCommonParams=function(){var e=this._getInitParams(),o=t("COMMON_PARAMS");o&&(e=i(i({},e),JSON.parse(o))),e=c(e,this._commonParams),this._updateCommonParams(i(i({},e),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},e.prototype._getUserInfo=function(e){var o={};if(e)try{o=JSON.parse(e)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var t={};if(this._commonParams.userinfo)try{t=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(i(i({querystring:this._urlParams},t),o))},e.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var t in e){var n=e[t];o.includes(t)&&n&&(i[t]=n)}}return i},e.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},e.prototype._updateCommonParams=function(e){this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo&&(e.userinfo=this._getUserInfo(e.userinfo)),e.appcqid&&(e.appqid=e.appcqid+s()),e.appver&&(e.appverint=function(e){try{return e&&"string"==typeof e?e.split(".").map((function(e){return 1===e.length?"0"+e:e})).join(""):""}catch(i){return console.error('[transferVersion] ver("'.concat(e,'")格式异常:'),i),""}}(e.appver)),this._commonParams=c(this._commonParams,e),this._cacheCommonParams(this._commonParams)},e.prototype._getAppqid=function(){return this._commonParams.appcqid+s()},e.prototype._request=function(e,i){!function(e,i){U(e,i)}(e,i)},e.prototype._open=function(e){if(this._sendOpenLog){var o=i(i({},this._commonParams),{openway:e,appqid:this._getAppqid(),xmlog:j});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},e.prototype.event=function(e){var o=i(i({},this._commonParams),{appqid:this._getAppqid(),event1:e.event1||"",event2:e.event2||"",event3:e.event3||"",event4:e.event4||"",value1:e.value1||"",value2:e.value2||"",value3:e.value3||"",value4:e.value4||""});this._consoleLog&&console.log("[XLOG] PARAMS(EVENT)",o),this._request(this._eventUrl,o)},e.prototype.act=function(e){var o=i(i({},this._commonParams),{appqid:this._getAppqid(),actentryid:e.actentryid||"",subactid:e.subactid||"",type:e.type||"",custom:e.custom||"",batchid:e.batchid||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",o),this._request(this._actUrl,o)},e}();e.XLog=z,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
6
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((e="undefined"!=typeof globalThis?globalThis:e||self).web={})}(this,(function(e){"use strict";var i=function(){return i=Object.assign||function(e){for(var i,o=1,t=arguments.length;o<t;o++)for(var n in i=arguments[o])Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},i.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var o="XYZ_LOG_";function t(e){return void 0!==typeof localStorage?localStorage.getItem(o+e):null}function n(e,i){void 0!==typeof localStorage&&localStorage.setItem(o+e,i)}function r(e,i){void 0===e&&(e=18),void 0===i&&(i=0);for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],n=Math.random,r=e,a=i||o.length,s=0;s<r;s++)t[s]=o[0|n()*a];return t.join("")}function a(e){void 0===e&&(e="UID");var i=t(e);return i||n(e,i=r()),i}function s(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),t=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(t=Number(t)<10?"0"+t:t)}function c(e,o){var t=i({},e),n=i({},o);return Object.keys(t).forEach((function(e){n[e]||delete n[e]})),i(i({},t),n)}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={exports:{}};!function(e,i){!function(o,t){var n="function",r="undefined",a="object",s="string",c="major",u="model",l="name",d="type",p="vendor",b="version",w="architecture",m="console",f="mobile",h="tablet",v="smarttv",g="wearable",y="embedded",_="Amazon",x="Apple",k="ASUS",S="BlackBerry",P="Browser",O="Chrome",A="Firefox",q="Google",C="Huawei",N="LG",T="Microsoft",E="Motorola",U="Opera",M="Samsung",j="Sharp",L="Sony",z="Xiaomi",I="Zebra",R="Facebook",B="Chromium OS",D="Mac OS",G=" Browser",X=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},V=function(e,i){return typeof e===s&&-1!==F(i).indexOf(F(e))},F=function(e){return e.toLowerCase()},J=function(e,i){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof i===r?e:e.substring(0,500)},H=function(e,i){for(var o,r,s,c,u,l,d=0;d<i.length&&!u;){var p=i[d],b=i[d+1];for(o=r=0;o<p.length&&!u&&p[o];)if(u=p[o++].exec(e))for(s=0;s<b.length;s++)l=u[++r],typeof(c=b[s])===a&&c.length>0?2===c.length?typeof c[1]==n?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==n||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):t:this[c[0]]=l?c[1].call(this,l,c[2]):t:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):t):this[c]=l||t;d+=2}},W=function(e,i){for(var o in i)if(typeof i[o]===a&&i[o].length>0){for(var n=0;n<i[o].length;n++)if(V(i[o][n],e))return"?"===o?t:o}else if(V(i[o],e))return"?"===o?t:o;return i.hasOwnProperty("*")?i["*"]: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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,b],[/opios[\/ ]+([\w\.]+)/i],[b,[l,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[l,U+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[l,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[l,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[l,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+P],b],[/\bfocus\/([\w\.]+)/i],[b,[l,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[l,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[l,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[l,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[b,[l,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+G],b],[/samsungbrowser\/([\w\.]+)/i],[b,[l,M+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,R],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[l,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[b,W,{"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,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[l,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,F]],[/((?: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/,"",F]],[/(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,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],[u,[p,M],[d,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[p,M],[d,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[p,x],[d,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[p,x],[d,h]],[/(macintosh);/i],[u,[p,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[p,j],[d,f]],[/(?:honor)([-\w ]+)[;\)]/i],[u,[p,"Honor"],[d,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[p,C],[d,h]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[p,C],[d,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[u,/_/g," "],[p,z],[d,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[p,z],[d,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[p,"OPPO"],[d,f]],[/\b(opd2\d{3}a?) bui/i],[u,[p,"OPPO"],[d,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[p,"Vivo"],[d,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[p,"Realme"],[d,f]],[/\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],[u,[p,E],[d,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[p,E],[d,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[p,N],[d,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[p,N],[d,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[p,"Lenovo"],[d,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[p,"Nokia"],[d,f]],[/(pixel c)\b/i],[u,[p,q],[d,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[p,q],[d,f]],[/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],[u,[p,L],[d,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[p,L],[d,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[p,"OnePlus"],[d,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[p,_],[d,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[p,_],[d,f]],[/(playbook);[-\w\),; ]+(rim)/i],[u,p,[d,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[p,S],[d,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[p,k],[d,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[p,k],[d,f]],[/(nexus 9)/i],[u,[p,"HTC"],[d,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[u,/_/g," "],[d,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[p,"TCL"],[d,h]],[/(itel) ((\w+))/i],[[p,F],u,[d,W,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[p,"Acer"],[d,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[p,"Meizu"],[d,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[p,"Ulefone"],[d,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[p,"Energizer"],[d,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[p,"Cat"],[d,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[p,"Smartfren"],[d,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[p,"Nothing"],[d,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,u,[d,f]],[/(imo) (tab \w+)/i,/(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],[p,u,[d,h]],[/(surface duo)/i],[u,[p,T],[d,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[p,"Fairphone"],[d,f]],[/(u304aa)/i],[u,[p,"AT&T"],[d,f]],[/\bsie-(\w*)/i],[u,[p,"Siemens"],[d,f]],[/\b(rct\w+) b/i],[u,[p,"RCA"],[d,h]],[/\b(venue[\d ]{2,7}) b/i],[u,[p,"Dell"],[d,h]],[/\b(q(?:mv|ta)\w+) b/i],[u,[p,"Verizon"],[d,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[p,"Barnes & Noble"],[d,h]],[/\b(tm\d{3}\w+) b/i],[u,[p,"NuVision"],[d,h]],[/\b(k88) b/i],[u,[p,"ZTE"],[d,h]],[/\b(nx\d{3}j) b/i],[u,[p,"ZTE"],[d,f]],[/\b(gen\d{3}) b.+49h/i],[u,[p,"Swiss"],[d,f]],[/\b(zur\d{3}) b/i],[u,[p,"Swiss"],[d,h]],[/\b((zeki)?tb.*\b) b/i],[u,[p,"Zeki"],[d,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],u,[d,h]],[/\b(ns-?\w{0,9}) b/i],[u,[p,"Insignia"],[d,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[p,"NextBook"],[d,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],u,[d,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],u,[d,f]],[/\b(ph-1) /i],[u,[p,"Essential"],[d,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[p,"Envizen"],[d,h]],[/\b(trio[-\w\. ]+) b/i],[u,[p,"MachSpeed"],[d,h]],[/\btu_(1491) b/i],[u,[p,"Rotor"],[d,h]],[/(shield[\w ]+) b/i],[u,[p,"Nvidia"],[d,h]],[/(sprint) (\w+)/i],[p,u,[d,f]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[p,T],[d,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[p,I],[d,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[p,I],[d,f]],[/smart-tv.+(samsung)/i],[p,[d,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[p,M],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,N],[d,v]],[/(apple) ?tv/i],[p,[u,x+" TV"],[d,v]],[/crkey/i],[[u,O+"cast"],[p,q],[d,v]],[/droid.+aft(\w+)( bui|\))/i],[u,[p,_],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[p,j],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[u,[p,L],[d,v]],[/(mitv-\w{5}) bui/i],[u,[p,z],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[p,u,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,J],[u,J],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,u,[d,m]],[/droid.+; (shield) bui/i],[u,[p,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[u,[p,L],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[p,T],[d,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[u,[p,M],[d,g]],[/((pebble))app/i],[p,u,[d,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[p,x],[d,g]],[/droid.+; (glass) \d/i],[u,[p,q],[d,g]],[/droid.+; (wt63?0{2,3})\)/i],[u,[p,I],[d,g]],[/droid.+; (glass) \d/i],[u,[p,q],[d,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,u,[d,g]],[/; (quest( \d| pro)?)/i],[u,[p,R],[d,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,y]],[/(aeobc)\b/i],[u,[p,_],[d,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[d,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,f]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[b,W,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,W,Z],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,D],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,b],[/\(bb(10);/i],[b,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[l,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[l,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,B],b],[/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,b],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,b]]},Y=function(e,i){if(typeof e===a&&(i=e,e=t),!(this instanceof Y))return new Y(e,i).getResult();var m=typeof o!==r&&o.navigator?o.navigator:t,v=e||(m&&m.userAgent?m.userAgent:""),g=m&&m.userAgentData?m.userAgentData:t,y=i?function(e,i){var o={};for(var t in e)i[t]&&i[t].length%2==0?o[t]=i[t].concat(e[t]):o[t]=e[t];return o}($,i):$,_=m&&m.userAgent==v;return this.getBrowser=function(){var e,i={};return i[l]=t,i[b]=t,H.call(i,v,y.browser),i[c]=typeof(e=i[b])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:t,_&&m&&m.brave&&typeof m.brave.isBrave==n&&(i[l]="Brave"),i},this.getCPU=function(){var e={};return e[w]=t,H.call(e,v,y.cpu),e},this.getDevice=function(){var e={};return e[p]=t,e[u]=t,e[d]=t,H.call(e,v,y.device),_&&!e[d]&&g&&g.mobile&&(e[d]=f),_&&"Macintosh"==e[u]&&m&&typeof m.standalone!==r&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[d]=h),e},this.getEngine=function(){var e={};return e[l]=t,e[b]=t,H.call(e,v,y.engine),e},this.getOS=function(){var e={};return e[l]=t,e[b]=t,H.call(e,v,y.os),_&&!e[l]&&g&&g.platform&&"Unknown"!=g.platform&&(e[l]=g.platform.replace(/chrome os/i,B).replace(/macos/i,D)),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===s&&e.length>500?J(e,500):e,this},this.setUA(v),this};Y.VERSION="1.0.40",Y.BROWSER=X([l,b,c]),Y.CPU=X([w]),Y.DEVICE=X([u,p,d,m,f,v,h,g,y]),Y.ENGINE=Y.OS=X([l,b]),e.exports&&(i=e.exports=Y),i.UAParser=Y;var K=typeof o!==r&&(o.jQuery||o.Zepto);if(K&&!K.ua){var Q=new Y;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var i=Q.getResult();for(var o in i)K.ua[o]=i[o]}}}("object"==typeof window?window:u)}(l,l.exports);var d=new l.exports.UAParser,p=d.getBrowser();p.name,p.version;var b=d.getEngine();b.name,b.version;var w=function(){var e=(0,d.getOS)();return{os:e.name,osversion:e.version}}(),m=w.os,f=w.osversion,h=function(){var e=(0,d.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),v=h.device,g=h.devicebrand;m=m||"",f=f||"",v=v||"",g=g||"";var y={exports:{}},_={exports:{}},x=1e3,k=60*x,S=60*k,P=24*S,O=365.25*P,A=function(e,i){i=i||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*O;case"days":case"day":case"d":return o*P;case"hours":case"hour":case"hrs":case"hr":case"h":return o*S;case"minutes":case"minute":case"mins":case"min":case"m":return o*k;case"seconds":case"second":case"secs":case"sec":case"s":return o*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===o&&!1===isNaN(e))return i.long?function(e){return q(e,P,"day")||q(e,S,"hour")||q(e,k,"minute")||q(e,x,"second")||e+" ms"}(e):function(e){if(e>=P)return Math.round(e/P)+"d";if(e>=S)return Math.round(e/S)+"h";if(e>=k)return Math.round(e/k)+"m";if(e>=x)return Math.round(e/x)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function q(e,i,o){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+o:Math.ceil(e/i)+" "+o+"s"}!function(e,i){var o;function t(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(o||n);e.diff=r,e.prev=o,e.curr=n,o=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=i.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(o,t){if("%%"===o)return o;c++;var n=i.formatters[t];if("function"==typeof n){var r=a[c];o=n.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a),(t.log||i.log||console.log.bind(console)).apply(e,a)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=function(e){var o,t=0;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return i.colors[Math.abs(t)%i.colors.length]}(e),"function"==typeof i.init&&i.init(t),t}(i=e.exports=t.debug=t.default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){i.enable("")},i.enable=function(e){i.save(e),i.names=[],i.skips=[];for(var o=("string"==typeof e?e:"").split(/[\s,]+/),t=o.length,n=0;n<t;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,t;for(o=0,t=i.skips.length;o<t;o++)if(i.skips[o].test(e))return!1;for(o=0,t=i.names.length;o<t;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=A,i.names=[],i.skips=[],i.formatters={}}(_,_.exports),function(e,i){function o(){var e;try{e=i.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(i=e.exports=_.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+i.humanize(this.diff),!o)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=o,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(o())}(y,y.exports);var C=y.exports("jsonp"),N=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var t,n,r=i.prefix||"__jp",a=i.name||r+T++,s=i.param||"callback",c=null!=i.timeout?i.timeout:6e4,u=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;c&&(n=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){t.parentNode&&t.parentNode.removeChild(t),window[a]=E,n&&clearTimeout(n)}return window[a]=function(e){C("jsonp got",e),d(),o&&o(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+u(a)).replace("?&","?"),C('jsonp req "%s"',e),(t=document.createElement("script")).src=e,l.parentNode.insertBefore(t,l),function(){window[a]&&d()}},T=0;function E(){}function U(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;N("".concat(e,"?").concat((n=i,Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__"),timeout:0},(function(e,i){e?t(e):o(i)}))}))}var M,j="5.2.0",L="organic";e.EGender=void 0,(M=e.EGender||(e.EGender={}))[M.Unknown=0]="Unknown",M[M.Male=1]="Male",M[M.Female=2]="Female";var z=function(){function e(e){var i=e.domain,o=e.commonParams,t=e.isPro,n=void 0===t||t,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version=j,this.buildDate="3/10/2026, 3:32:13 PM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),t={};return o&&o.split("&").forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]})),Object.keys(t).forEach((function(i){e.includes(i)&&delete t[i]})),t}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=n,this._sendOpenLog=a,this._consoleLog=c;var u=this._getApis(i),l=u.openUrl,d=u.eventUrl,p=u.actUrl;this._openUrl=l,this._eventUrl=d,this._actUrl=p,this._updateCommonParams(this._filterParams(o)),this._init()}return Object.defineProperty(e.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),e.prototype._init=function(){var e=this;this._initCommonParams(),this._coldStartUp(),this._visibilityChange((function(){e._updateCommonParams({network:e._getNetWorkType()}),e._open(1)}),(function(){e._open(5)}))},e.prototype._visibilityChange=function(e,i){void 0===e&&(e=function(){}),void 0===i&&(i=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():i()}),!1)},e.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},e.prototype._getNetWorkType=function(){var e=window.navigator,i=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==i?void 0:i.type)||(null==i?void 0:i.effectiveType)||"other"},e.prototype._getBatchId=function(){var e,i=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem(o+e):null);return i||function(e,i){void 0!==typeof sessionStorage&&sessionStorage.setItem(o+e,i)}("BATCH_ID",i=r()),i},e.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},e.prototype._getApis=function(e){var o=this._isPro?{open:"webopen-inside.tt.cn",event:"webevent-inside.tt.cn",act:"webact-inside.tt.cn"}:{open:"test-webopen-inside.tt.cn",event:"test-webevent-inside.tt.cn",act:"test-webact-inside.tt.cn"},t=i(i({},o),e);return{openUrl:"https://".concat(t.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(t.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(t.act,"/gamefunction_logs/applet/activity")}},e.prototype._cacheCommonParams=function(e){n("COMMON_PARAMS",JSON.stringify(e))},e.prototype._getInitParams=function(){return{os:m,osversion:f,device:v,devicebrand:g,platform:7,openid:a(),appcqid:L,appqid:L+s(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},e.prototype._initCommonParams=function(){var e=this._getInitParams(),o=t("COMMON_PARAMS");o&&(e=i(i({},e),JSON.parse(o))),e=c(e,this._commonParams),this._updateCommonParams(i(i({},e),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},e.prototype._getUserInfo=function(e){var o={};if(e)try{o=JSON.parse(e)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var t={};if(this._commonParams.userinfo)try{t=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(i(i({querystring:this._urlParams},t),o))},e.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var t in e){var n=e[t];o.includes(t)&&n&&(i[t]=n)}}return i},e.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},e.prototype._updateCommonParams=function(e){this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo&&(e.userinfo=this._getUserInfo(e.userinfo)),e.appcqid&&(e.appqid=e.appcqid+s()),e.appver&&(e.appverint=function(e){try{return e&&"string"==typeof e?e.split(".").map((function(e){return 1===e.length?"0"+e:e})).join(""):""}catch(i){return console.error('[transferVersion] ver("'.concat(e,'")格式异常:'),i),""}}(e.appver)),this._commonParams=c(this._commonParams,e),this._cacheCommonParams(this._commonParams)},e.prototype._getAppqid=function(){return this._commonParams.appcqid+s()},e.prototype._request=function(e,i){!function(e,i){U(e,i)}(e,i)},e.prototype._open=function(e){if(this._sendOpenLog){var o=i(i({},this._commonParams),{openway:e,appqid:this._getAppqid(),xmlog:j});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},e.prototype.event=function(e){var o=i(i({},this._commonParams),{appqid:this._getAppqid(),event1:e.event1||"",event2:e.event2||"",event3:e.event3||"",event4:e.event4||"",value1:e.value1||"",value2:e.value2||"",value3:e.value3||"",value4:e.value4||""});this._consoleLog&&console.log("[XLOG] PARAMS(EVENT)",o),this._request(this._eventUrl,o)},e.prototype.act=function(e){var o=i(i({},this._commonParams),{appqid:this._getAppqid(),actentryid:e.actentryid||"",subactid:e.subactid||"",type:e.type||"",custom:e.custom||"",batchid:e.batchid||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",o),this._request(this._actUrl,o)},e}();e.XLog=z,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/dist/web.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @xyz-fe/log v5.
|
|
2
|
+
* @xyz-fe/log v5.2.0
|
|
3
3
|
* (c) lizhigao <lizhigao@021.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var e=function(){return e=Object.assign||function(e){for(var i,o=1,t=arguments.length;o<t;o++)for(var n in i=arguments[o])Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},e.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var i="XYZ_LOG_";function o(e){return void 0!==typeof localStorage?localStorage.getItem(i+e):null}function t(e,o){void 0!==typeof localStorage&&localStorage.setItem(i+e,o)}function n(e,i){void 0===e&&(e=18),void 0===i&&(i=0);for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],n=Math.random,r=e,a=i||o.length,s=0;s<r;s++)t[s]=o[0|n()*a];return t.join("")}function r(e){void 0===e&&(e="UID");var i=o(e);return i||t(e,i=n()),i}function a(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),t=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(t=Number(t)<10?"0"+t:t)}function s(i,o){var t=e({},i),n=e({},o);return Object.keys(t).forEach((function(e){n[e]||delete n[e]})),e(e({},t),n)}var c,u,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d={exports:{}};c=d,u=d.exports,function(e,i){var o="function",t="undefined",n="object",r="string",a="major",s="model",l="name",d="type",p="vendor",b="version",w="architecture",m="console",f="mobile",h="tablet",v="smarttv",g="wearable",y="embedded",_="Amazon",x="Apple",k="ASUS",S="BlackBerry",P="Browser",O="Chrome",A="Firefox",q="Google",C="Huawei",N="LG",T="Microsoft",U="Motorola",E="Opera",M="Samsung",j="Sharp",L="Sony",z="Xiaomi",I="Zebra",R="Facebook",B="Chromium OS",D="Mac OS",G=" Browser",V=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},X=function(e,i){return typeof e===r&&-1!==F(i).indexOf(F(e))},F=function(e){return e.toLowerCase()},J=function(e,i){if(typeof e===r)return e=e.replace(/^\s\s*/,""),typeof i===t?e:e.substring(0,500)},H=function(e,t){for(var r,a,s,c,u,l,d=0;d<t.length&&!u;){var p=t[d],b=t[d+1];for(r=a=0;r<p.length&&!u&&p[r];)if(u=p[r++].exec(e))for(s=0;s<b.length;s++)l=u[++a],typeof(c=b[s])===n&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):i:this[c[0]]=l?c[1].call(this,l,c[2]):i:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):i):this[c]=l||i;d+=2}},W=function(e,o){for(var t in o)if(typeof o[t]===n&&o[t].length>0){for(var r=0;r<o[t].length;r++)if(X(o[t][r],e))return"?"===t?i:t}else if(X(o[t],e))return"?"===t?i:t;return o.hasOwnProperty("*")?o["*"]: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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,b],[/opios[\/ ]+([\w\.]+)/i],[b,[l,E+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[l,E+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[l,E]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[l,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[l,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+P],b],[/\bfocus\/([\w\.]+)/i],[b,[l,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[l,E+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[l,E+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[l,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[b,[l,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+G],b],[/samsungbrowser\/([\w\.]+)/i],[b,[l,M+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,R],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[l,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[b,W,{"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,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[l,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,F]],[/((?: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/,"",F]],[/(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,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],[s,[p,M],[d,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[p,M],[d,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[p,x],[d,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[p,x],[d,h]],[/(macintosh);/i],[s,[p,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[p,j],[d,f]],[/(?:honor)([-\w ]+)[;\)]/i],[s,[p,"Honor"],[d,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[p,C],[d,h]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[p,C],[d,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[s,/_/g," "],[p,z],[d,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[p,z],[d,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[p,"OPPO"],[d,f]],[/\b(opd2\d{3}a?) bui/i],[s,[p,"OPPO"],[d,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[p,"Vivo"],[d,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[p,"Realme"],[d,f]],[/\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,[p,U],[d,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[p,U],[d,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[p,N],[d,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[p,N],[d,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[p,"Lenovo"],[d,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[p,"Nokia"],[d,f]],[/(pixel c)\b/i],[s,[p,q],[d,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[p,q],[d,f]],[/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,[p,L],[d,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[p,L],[d,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[p,"OnePlus"],[d,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[p,_],[d,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[p,_],[d,f]],[/(playbook);[-\w\),; ]+(rim)/i],[s,p,[d,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[p,S],[d,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[p,k],[d,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[p,k],[d,f]],[/(nexus 9)/i],[s,[p,"HTC"],[d,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[s,/_/g," "],[d,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[p,"TCL"],[d,h]],[/(itel) ((\w+))/i],[[p,F],s,[d,W,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[p,"Acer"],[d,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[p,"Meizu"],[d,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[p,"Ulefone"],[d,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[p,"Energizer"],[d,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[p,"Cat"],[d,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[p,"Smartfren"],[d,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[p,"Nothing"],[d,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,s,[d,f]],[/(imo) (tab \w+)/i,/(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],[p,s,[d,h]],[/(surface duo)/i],[s,[p,T],[d,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[p,"Fairphone"],[d,f]],[/(u304aa)/i],[s,[p,"AT&T"],[d,f]],[/\bsie-(\w*)/i],[s,[p,"Siemens"],[d,f]],[/\b(rct\w+) b/i],[s,[p,"RCA"],[d,h]],[/\b(venue[\d ]{2,7}) b/i],[s,[p,"Dell"],[d,h]],[/\b(q(?:mv|ta)\w+) b/i],[s,[p,"Verizon"],[d,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[p,"Barnes & Noble"],[d,h]],[/\b(tm\d{3}\w+) b/i],[s,[p,"NuVision"],[d,h]],[/\b(k88) b/i],[s,[p,"ZTE"],[d,h]],[/\b(nx\d{3}j) b/i],[s,[p,"ZTE"],[d,f]],[/\b(gen\d{3}) b.+49h/i],[s,[p,"Swiss"],[d,f]],[/\b(zur\d{3}) b/i],[s,[p,"Swiss"],[d,h]],[/\b((zeki)?tb.*\b) b/i],[s,[p,"Zeki"],[d,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],s,[d,h]],[/\b(ns-?\w{0,9}) b/i],[s,[p,"Insignia"],[d,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[p,"NextBook"],[d,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],s,[d,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],s,[d,f]],[/\b(ph-1) /i],[s,[p,"Essential"],[d,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[p,"Envizen"],[d,h]],[/\b(trio[-\w\. ]+) b/i],[s,[p,"MachSpeed"],[d,h]],[/\btu_(1491) b/i],[s,[p,"Rotor"],[d,h]],[/(shield[\w ]+) b/i],[s,[p,"Nvidia"],[d,h]],[/(sprint) (\w+)/i],[p,s,[d,f]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[p,T],[d,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[p,I],[d,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[p,I],[d,f]],[/smart-tv.+(samsung)/i],[p,[d,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[p,M],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,N],[d,v]],[/(apple) ?tv/i],[p,[s,x+" TV"],[d,v]],[/crkey/i],[[s,O+"cast"],[p,q],[d,v]],[/droid.+aft(\w+)( bui|\))/i],[s,[p,_],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[p,j],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[p,L],[d,v]],[/(mitv-\w{5}) bui/i],[s,[p,z],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[p,s,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,J],[s,J],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,s,[d,m]],[/droid.+; (shield) bui/i],[s,[p,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[s,[p,L],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[p,T],[d,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[s,[p,M],[d,g]],[/((pebble))app/i],[p,s,[d,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[p,x],[d,g]],[/droid.+; (glass) \d/i],[s,[p,q],[d,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[p,I],[d,g]],[/droid.+; (glass) \d/i],[s,[p,q],[d,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,s,[d,g]],[/; (quest( \d| pro)?)/i],[s,[p,R],[d,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,y]],[/(aeobc)\b/i],[s,[p,_],[d,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[d,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[d,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,f]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[b,W,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,W,Z],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,D],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,b],[/\(bb(10);/i],[b,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[l,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[l,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,B],b],[/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,b],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,b]]},Y=function(c,u){if(typeof c===n&&(u=c,c=i),!(this instanceof Y))return new Y(c,u).getResult();var m=typeof e!==t&&e.navigator?e.navigator:i,v=c||(m&&m.userAgent?m.userAgent:""),g=m&&m.userAgentData?m.userAgentData:i,y=u?function(e,i){var o={};for(var t in e)i[t]&&i[t].length%2==0?o[t]=i[t].concat(e[t]):o[t]=e[t];return o}($,u):$,_=m&&m.userAgent==v;return this.getBrowser=function(){var e,t={};return t[l]=i,t[b]=i,H.call(t,v,y.browser),t[a]=typeof(e=t[b])===r?e.replace(/[^\d\.]/g,"").split(".")[0]:i,_&&m&&m.brave&&typeof m.brave.isBrave==o&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[w]=i,H.call(e,v,y.cpu),e},this.getDevice=function(){var e={};return e[p]=i,e[s]=i,e[d]=i,H.call(e,v,y.device),_&&!e[d]&&g&&g.mobile&&(e[d]=f),_&&"Macintosh"==e[s]&&m&&typeof m.standalone!==t&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[s]="iPad",e[d]=h),e},this.getEngine=function(){var e={};return e[l]=i,e[b]=i,H.call(e,v,y.engine),e},this.getOS=function(){var e={};return e[l]=i,e[b]=i,H.call(e,v,y.os),_&&!e[l]&&g&&g.platform&&"Unknown"!=g.platform&&(e[l]=g.platform.replace(/chrome os/i,B).replace(/macos/i,D)),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===r&&e.length>500?J(e,500):e,this},this.setUA(v),this};Y.VERSION="1.0.40",Y.BROWSER=V([l,b,a]),Y.CPU=V([w]),Y.DEVICE=V([s,p,d,m,f,v,h,g,y]),Y.ENGINE=Y.OS=V([l,b]),c.exports&&(u=c.exports=Y),u.UAParser=Y;var K=typeof e!==t&&(e.jQuery||e.Zepto);if(K&&!K.ua){var Q=new Y;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var i=Q.getResult();for(var o in i)K.ua[o]=i[o]}}}("object"==typeof window?window:l);var p=new d.exports.UAParser,b=p.getBrowser();b.name,b.version;var w=p.getEngine();w.name,w.version;var m=function(){var e=(0,p.getOS)();return{os:e.name,osversion:e.version}}(),f=m.os,h=m.osversion,v=function(){var e=(0,p.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),g=v.device,y=v.devicebrand;f=f||"",h=h||"",g=g||"",y=y||"";var _={exports:{}},x={exports:{}},k=1e3,S=60*k,P=60*S,O=24*P,A=365.25*O,q=function(e,i){i=i||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*A;case"days":case"day":case"d":return o*O;case"hours":case"hour":case"hrs":case"hr":case"h":return o*P;case"minutes":case"minute":case"mins":case"min":case"m":return o*S;case"seconds":case"second":case"secs":case"sec":case"s":return o*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===o&&!1===isNaN(e))return i.long?function(e){return C(e,O,"day")||C(e,P,"hour")||C(e,S,"minute")||C(e,k,"second")||e+" ms"}(e):function(e){if(e>=O)return Math.round(e/O)+"d";if(e>=P)return Math.round(e/P)+"h";if(e>=S)return Math.round(e/S)+"m";if(e>=k)return Math.round(e/k)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function C(e,i,o){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+o:Math.ceil(e/i)+" "+o+"s"}!function(e,i){var o;function t(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(o||n);e.diff=r,e.prev=o,e.curr=n,o=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=i.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(o,t){if("%%"===o)return o;c++;var n=i.formatters[t];if("function"==typeof n){var r=a[c];o=n.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a),(t.log||i.log||console.log.bind(console)).apply(e,a)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=function(e){var o,t=0;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return i.colors[Math.abs(t)%i.colors.length]}(e),"function"==typeof i.init&&i.init(t),t}(i=x.exports=t.debug=t.default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){i.enable("")},i.enable=function(e){i.save(e),i.names=[],i.skips=[];for(var o=("string"==typeof e?e:"").split(/[\s,]+/),t=o.length,n=0;n<t;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,t;for(o=0,t=i.skips.length;o<t;o++)if(i.skips[o].test(e))return!1;for(o=0,t=i.names.length;o<t;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=q,i.names=[],i.skips=[],i.formatters={}}(0,x.exports),function(e,i){function o(){var e;try{e=i.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(i=e.exports=x.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+i.humanize(this.diff),!o)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=o,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(o())}(_,_.exports);var N=_.exports("jsonp"),T=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var t,n,r=i.prefix||"__jp",a=i.name||r+U++,s=i.param||"callback",c=null!=i.timeout?i.timeout:6e4,u=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;c&&(n=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){t.parentNode&&t.parentNode.removeChild(t),window[a]=E,n&&clearTimeout(n)}return window[a]=function(e){N("jsonp got",e),d(),o&&o(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+u(a)).replace("?&","?"),N('jsonp req "%s"',e),(t=document.createElement("script")).src=e,l.parentNode.insertBefore(t,l),function(){window[a]&&d()}},U=0;function E(){}function M(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;T("".concat(e,"?").concat((n=i,Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__"),timeout:0},(function(e,i){e?t(e):o(i)}))}))}var j,L="5.1.0",z="organic";!function(e){e[e.Unknown=0]="Unknown",e[e.Male=1]="Male",e[e.Female=2]="Female"}(j||(j={}));var I=function(){function c(e){var i=e.domain,o=e.commonParams,t=e.isPro,n=void 0===t||t,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version=L,this.buildDate="2/27/2026, 10:04:29 AM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),t={};return o&&o.split("&").forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]})),Object.keys(t).forEach((function(i){e.includes(i)&&delete t[i]})),t}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=n,this._sendOpenLog=a,this._consoleLog=c;var u=this._getApis(i),l=u.openUrl,d=u.eventUrl,p=u.actUrl;this._openUrl=l,this._eventUrl=d,this._actUrl=p,this._updateCommonParams(this._filterParams(o)),this._init()}return Object.defineProperty(c.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),c.prototype._init=function(){var e=this;this._initCommonParams(),this._coldStartUp(),this._visibilityChange((function(){e._updateCommonParams({network:e._getNetWorkType()}),e._open(1)}),(function(){e._open(5)}))},c.prototype._visibilityChange=function(e,i){void 0===e&&(e=function(){}),void 0===i&&(i=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():i()}),!1)},c.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},c.prototype._getNetWorkType=function(){var e=window.navigator,i=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==i?void 0:i.type)||(null==i?void 0:i.effectiveType)||"other"},c.prototype._getBatchId=function(){var e,o=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem(i+e):null);return o||function(e,o){void 0!==typeof sessionStorage&&sessionStorage.setItem(i+e,o)}("BATCH_ID",o=n()),o},c.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},c.prototype._getApis=function(i){var o=this._isPro?{open:"webopen-inside.tt.cn",event:"webevent-inside.tt.cn",act:"webact-inside.tt.cn"}:{open:"test-webopen-inside.tt.cn",event:"test-webevent-inside.tt.cn",act:"test-webact-inside.tt.cn"},t=e(e({},o),i);return{openUrl:"https://".concat(t.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(t.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(t.act,"/gamefunction_logs/applet/activity")}},c.prototype._cacheCommonParams=function(e){t("COMMON_PARAMS",JSON.stringify(e))},c.prototype._getInitParams=function(){return{os:f,osversion:h,device:g,devicebrand:y,platform:7,openid:r(),appcqid:z,appqid:z+a(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},c.prototype._initCommonParams=function(){var i=this._getInitParams(),t=o("COMMON_PARAMS");t&&(i=e(e({},i),JSON.parse(t))),i=s(i,this._commonParams),this._updateCommonParams(e(e({},i),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},c.prototype._getUserInfo=function(i){var o={};if(i)try{o=JSON.parse(i)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var t={};if(this._commonParams.userinfo)try{t=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(e(e({querystring:this._urlParams},t),o))},c.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var t in e){var n=e[t];o.includes(t)&&n&&(i[t]=n)}}return i},c.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},c.prototype._updateCommonParams=function(e){this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo&&(e.userinfo=this._getUserInfo(e.userinfo)),e.appcqid&&(e.appqid=e.appcqid+a()),e.appver&&(e.appverint=function(e){try{return e&&"string"==typeof e?e.split(".").map((function(e){return 1===e.length?"0"+e:e})).join(""):""}catch(i){return console.error('[transferVersion] ver("'.concat(e,'")格式异常:'),i),""}}(e.appver)),this._commonParams=s(this._commonParams,e),this._cacheCommonParams(this._commonParams)},c.prototype._getAppqid=function(){return this._commonParams.appcqid+a()},c.prototype._request=function(e,i){!function(e,i){M(e,i)}(e,i)},c.prototype._open=function(i){if(this._sendOpenLog){var o=e(e({},this._commonParams),{openway:i,appqid:this._getAppqid(),xmlog:L});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},c.prototype.event=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),event1:i.event1||"",event2:i.event2||"",event3:i.event3||"",event4:i.event4||"",value1:i.value1||"",value2:i.value2||"",value3:i.value3||"",value4:i.value4||""});this._consoleLog&&console.log("[XLOG] PARAMS(EVENT)",o),this._request(this._eventUrl,o)},c.prototype.act=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),actentryid:i.actentryid||"",subactid:i.subactid||"",type:i.type||"",custom:i.custom||"",batchid:i.batchid||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",o),this._request(this._actUrl,o)},c}();export{j as EGender,I as XLog};
|
|
6
|
+
var e=function(){return e=Object.assign||function(e){for(var i,o=1,t=arguments.length;o<t;o++)for(var n in i=arguments[o])Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},e.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var i="XYZ_LOG_";function o(e){return void 0!==typeof localStorage?localStorage.getItem(i+e):null}function t(e,o){void 0!==typeof localStorage&&localStorage.setItem(i+e,o)}function n(e,i){void 0===e&&(e=18),void 0===i&&(i=0);for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),t=[],n=Math.random,r=e,a=i||o.length,s=0;s<r;s++)t[s]=o[0|n()*a];return t.join("")}function r(e){void 0===e&&(e="UID");var i=o(e);return i||t(e,i=n()),i}function a(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),t=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(t=Number(t)<10?"0"+t:t)}function s(i,o){var t=e({},i),n=e({},o);return Object.keys(t).forEach((function(e){n[e]||delete n[e]})),e(e({},t),n)}var c,u,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d={exports:{}};c=d,u=d.exports,function(e,i){var o="function",t="undefined",n="object",r="string",a="major",s="model",l="name",d="type",p="vendor",b="version",w="architecture",m="console",f="mobile",h="tablet",v="smarttv",g="wearable",y="embedded",_="Amazon",x="Apple",k="ASUS",S="BlackBerry",P="Browser",O="Chrome",A="Firefox",q="Google",C="Huawei",N="LG",T="Microsoft",U="Motorola",E="Opera",M="Samsung",j="Sharp",L="Sony",z="Xiaomi",I="Zebra",R="Facebook",B="Chromium OS",D="Mac OS",G=" Browser",V=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},X=function(e,i){return typeof e===r&&-1!==F(i).indexOf(F(e))},F=function(e){return e.toLowerCase()},J=function(e,i){if(typeof e===r)return e=e.replace(/^\s\s*/,""),typeof i===t?e:e.substring(0,500)},H=function(e,t){for(var r,a,s,c,u,l,d=0;d<t.length&&!u;){var p=t[d],b=t[d+1];for(r=a=0;r<p.length&&!u&&p[r];)if(u=p[r++].exec(e))for(s=0;s<b.length;s++)l=u[++a],typeof(c=b[s])===n&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):i:this[c[0]]=l?c[1].call(this,l,c[2]):i:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):i):this[c]=l||i;d+=2}},W=function(e,o){for(var t in o)if(typeof o[t]===n&&o[t].length>0){for(var r=0;r<o[t].length;r++)if(X(o[t][r],e))return"?"===t?i:t}else if(X(o[t],e))return"?"===t?i:t;return o.hasOwnProperty("*")?o["*"]: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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,b],[/opios[\/ ]+([\w\.]+)/i],[b,[l,E+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[l,E+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[l,E]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[l,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[l,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+P],b],[/\bfocus\/([\w\.]+)/i],[b,[l,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[l,E+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[l,E+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[l,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[b,[l,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+G],b],[/samsungbrowser\/([\w\.]+)/i],[b,[l,M+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,R],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[l,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[b,W,{"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,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[l,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,F]],[/((?: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/,"",F]],[/(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,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],[s,[p,M],[d,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[p,M],[d,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[p,x],[d,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[p,x],[d,h]],[/(macintosh);/i],[s,[p,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[p,j],[d,f]],[/(?:honor)([-\w ]+)[;\)]/i],[s,[p,"Honor"],[d,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[p,C],[d,h]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[p,C],[d,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[s,/_/g," "],[p,z],[d,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[p,z],[d,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[p,"OPPO"],[d,f]],[/\b(opd2\d{3}a?) bui/i],[s,[p,"OPPO"],[d,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[p,"Vivo"],[d,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[p,"Realme"],[d,f]],[/\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,[p,U],[d,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[p,U],[d,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[p,N],[d,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[p,N],[d,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[p,"Lenovo"],[d,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[p,"Nokia"],[d,f]],[/(pixel c)\b/i],[s,[p,q],[d,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[p,q],[d,f]],[/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,[p,L],[d,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[p,L],[d,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[p,"OnePlus"],[d,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[p,_],[d,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[p,_],[d,f]],[/(playbook);[-\w\),; ]+(rim)/i],[s,p,[d,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[p,S],[d,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[p,k],[d,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[p,k],[d,f]],[/(nexus 9)/i],[s,[p,"HTC"],[d,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[s,/_/g," "],[d,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[p,"TCL"],[d,h]],[/(itel) ((\w+))/i],[[p,F],s,[d,W,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[p,"Acer"],[d,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[p,"Meizu"],[d,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[p,"Ulefone"],[d,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[p,"Energizer"],[d,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[p,"Cat"],[d,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[p,"Smartfren"],[d,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[p,"Nothing"],[d,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,s,[d,f]],[/(imo) (tab \w+)/i,/(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],[p,s,[d,h]],[/(surface duo)/i],[s,[p,T],[d,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[p,"Fairphone"],[d,f]],[/(u304aa)/i],[s,[p,"AT&T"],[d,f]],[/\bsie-(\w*)/i],[s,[p,"Siemens"],[d,f]],[/\b(rct\w+) b/i],[s,[p,"RCA"],[d,h]],[/\b(venue[\d ]{2,7}) b/i],[s,[p,"Dell"],[d,h]],[/\b(q(?:mv|ta)\w+) b/i],[s,[p,"Verizon"],[d,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[p,"Barnes & Noble"],[d,h]],[/\b(tm\d{3}\w+) b/i],[s,[p,"NuVision"],[d,h]],[/\b(k88) b/i],[s,[p,"ZTE"],[d,h]],[/\b(nx\d{3}j) b/i],[s,[p,"ZTE"],[d,f]],[/\b(gen\d{3}) b.+49h/i],[s,[p,"Swiss"],[d,f]],[/\b(zur\d{3}) b/i],[s,[p,"Swiss"],[d,h]],[/\b((zeki)?tb.*\b) b/i],[s,[p,"Zeki"],[d,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],s,[d,h]],[/\b(ns-?\w{0,9}) b/i],[s,[p,"Insignia"],[d,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[p,"NextBook"],[d,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],s,[d,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],s,[d,f]],[/\b(ph-1) /i],[s,[p,"Essential"],[d,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[p,"Envizen"],[d,h]],[/\b(trio[-\w\. ]+) b/i],[s,[p,"MachSpeed"],[d,h]],[/\btu_(1491) b/i],[s,[p,"Rotor"],[d,h]],[/(shield[\w ]+) b/i],[s,[p,"Nvidia"],[d,h]],[/(sprint) (\w+)/i],[p,s,[d,f]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[p,T],[d,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[p,I],[d,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[p,I],[d,f]],[/smart-tv.+(samsung)/i],[p,[d,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[p,M],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,N],[d,v]],[/(apple) ?tv/i],[p,[s,x+" TV"],[d,v]],[/crkey/i],[[s,O+"cast"],[p,q],[d,v]],[/droid.+aft(\w+)( bui|\))/i],[s,[p,_],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[p,j],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[p,L],[d,v]],[/(mitv-\w{5}) bui/i],[s,[p,z],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[p,s,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,J],[s,J],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,s,[d,m]],[/droid.+; (shield) bui/i],[s,[p,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[s,[p,L],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[p,T],[d,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[s,[p,M],[d,g]],[/((pebble))app/i],[p,s,[d,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[p,x],[d,g]],[/droid.+; (glass) \d/i],[s,[p,q],[d,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[p,I],[d,g]],[/droid.+; (glass) \d/i],[s,[p,q],[d,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,s,[d,g]],[/; (quest( \d| pro)?)/i],[s,[p,R],[d,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,y]],[/(aeobc)\b/i],[s,[p,_],[d,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[d,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[d,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,f]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[b,W,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,W,Z],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,D],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,b],[/\(bb(10);/i],[b,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[l,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[l,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,B],b],[/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,b],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,b]]},Y=function(c,u){if(typeof c===n&&(u=c,c=i),!(this instanceof Y))return new Y(c,u).getResult();var m=typeof e!==t&&e.navigator?e.navigator:i,v=c||(m&&m.userAgent?m.userAgent:""),g=m&&m.userAgentData?m.userAgentData:i,y=u?function(e,i){var o={};for(var t in e)i[t]&&i[t].length%2==0?o[t]=i[t].concat(e[t]):o[t]=e[t];return o}($,u):$,_=m&&m.userAgent==v;return this.getBrowser=function(){var e,t={};return t[l]=i,t[b]=i,H.call(t,v,y.browser),t[a]=typeof(e=t[b])===r?e.replace(/[^\d\.]/g,"").split(".")[0]:i,_&&m&&m.brave&&typeof m.brave.isBrave==o&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[w]=i,H.call(e,v,y.cpu),e},this.getDevice=function(){var e={};return e[p]=i,e[s]=i,e[d]=i,H.call(e,v,y.device),_&&!e[d]&&g&&g.mobile&&(e[d]=f),_&&"Macintosh"==e[s]&&m&&typeof m.standalone!==t&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[s]="iPad",e[d]=h),e},this.getEngine=function(){var e={};return e[l]=i,e[b]=i,H.call(e,v,y.engine),e},this.getOS=function(){var e={};return e[l]=i,e[b]=i,H.call(e,v,y.os),_&&!e[l]&&g&&g.platform&&"Unknown"!=g.platform&&(e[l]=g.platform.replace(/chrome os/i,B).replace(/macos/i,D)),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===r&&e.length>500?J(e,500):e,this},this.setUA(v),this};Y.VERSION="1.0.40",Y.BROWSER=V([l,b,a]),Y.CPU=V([w]),Y.DEVICE=V([s,p,d,m,f,v,h,g,y]),Y.ENGINE=Y.OS=V([l,b]),c.exports&&(u=c.exports=Y),u.UAParser=Y;var K=typeof e!==t&&(e.jQuery||e.Zepto);if(K&&!K.ua){var Q=new Y;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var i=Q.getResult();for(var o in i)K.ua[o]=i[o]}}}("object"==typeof window?window:l);var p=new d.exports.UAParser,b=p.getBrowser();b.name,b.version;var w=p.getEngine();w.name,w.version;var m=function(){var e=(0,p.getOS)();return{os:e.name,osversion:e.version}}(),f=m.os,h=m.osversion,v=function(){var e=(0,p.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),g=v.device,y=v.devicebrand;f=f||"",h=h||"",g=g||"",y=y||"";var _={exports:{}},x={exports:{}},k=1e3,S=60*k,P=60*S,O=24*P,A=365.25*O,q=function(e,i){i=i||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var o=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*A;case"days":case"day":case"d":return o*O;case"hours":case"hour":case"hrs":case"hr":case"h":return o*P;case"minutes":case"minute":case"mins":case"min":case"m":return o*S;case"seconds":case"second":case"secs":case"sec":case"s":return o*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}(e);if("number"===o&&!1===isNaN(e))return i.long?function(e){return C(e,O,"day")||C(e,P,"hour")||C(e,S,"minute")||C(e,k,"second")||e+" ms"}(e):function(e){if(e>=O)return Math.round(e/O)+"d";if(e>=P)return Math.round(e/P)+"h";if(e>=S)return Math.round(e/S)+"m";if(e>=k)return Math.round(e/k)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function C(e,i,o){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+o:Math.ceil(e/i)+" "+o+"s"}!function(e,i){var o;function t(e){function t(){if(t.enabled){var e=t,n=+new Date,r=n-(o||n);e.diff=r,e.prev=o,e.curr=n,o=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=i.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(o,t){if("%%"===o)return o;c++;var n=i.formatters[t];if("function"==typeof n){var r=a[c];o=n.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a),(t.log||i.log||console.log.bind(console)).apply(e,a)}}return t.namespace=e,t.enabled=i.enabled(e),t.useColors=i.useColors(),t.color=function(e){var o,t=0;for(o in e)t=(t<<5)-t+e.charCodeAt(o),t|=0;return i.colors[Math.abs(t)%i.colors.length]}(e),"function"==typeof i.init&&i.init(t),t}(i=x.exports=t.debug=t.default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){i.enable("")},i.enable=function(e){i.save(e),i.names=[],i.skips=[];for(var o=("string"==typeof e?e:"").split(/[\s,]+/),t=o.length,n=0;n<t;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,t;for(o=0,t=i.skips.length;o<t;o++)if(i.skips[o].test(e))return!1;for(o=0,t=i.names.length;o<t;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=q,i.names=[],i.skips=[],i.formatters={}}(0,x.exports),function(e,i){function o(){var e;try{e=i.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(i=e.exports=x.exports).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+i.humanize(this.diff),!o)return;var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,t)},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=o,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(o())}(_,_.exports);var N=_.exports("jsonp"),T=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var t,n,r=i.prefix||"__jp",a=i.name||r+U++,s=i.param||"callback",c=null!=i.timeout?i.timeout:6e4,u=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;c&&(n=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){t.parentNode&&t.parentNode.removeChild(t),window[a]=E,n&&clearTimeout(n)}return window[a]=function(e){N("jsonp got",e),d(),o&&o(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+s+"="+u(a)).replace("?&","?"),N('jsonp req "%s"',e),(t=document.createElement("script")).src=e,l.parentNode.insertBefore(t,l),function(){window[a]&&d()}},U=0;function E(){}function M(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;T("".concat(e,"?").concat((n=i,Object.keys(n).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__"),timeout:0},(function(e,i){e?t(e):o(i)}))}))}var j,L="5.2.0",z="organic";!function(e){e[e.Unknown=0]="Unknown",e[e.Male=1]="Male",e[e.Female=2]="Female"}(j||(j={}));var I=function(){function c(e){var i=e.domain,o=e.commonParams,t=e.isPro,n=void 0===t||t,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version=L,this.buildDate="3/10/2026, 3:32:13 PM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),t={};return o&&o.split("&").forEach((function(e){t[e.split("=")[0]]=e.split("=")[1]})),Object.keys(t).forEach((function(i){e.includes(i)&&delete t[i]})),t}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=n,this._sendOpenLog=a,this._consoleLog=c;var u=this._getApis(i),l=u.openUrl,d=u.eventUrl,p=u.actUrl;this._openUrl=l,this._eventUrl=d,this._actUrl=p,this._updateCommonParams(this._filterParams(o)),this._init()}return Object.defineProperty(c.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),c.prototype._init=function(){var e=this;this._initCommonParams(),this._coldStartUp(),this._visibilityChange((function(){e._updateCommonParams({network:e._getNetWorkType()}),e._open(1)}),(function(){e._open(5)}))},c.prototype._visibilityChange=function(e,i){void 0===e&&(e=function(){}),void 0===i&&(i=function(){});document.addEventListener("visibilitychange",(function(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)?e():i()}),!1)},c.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},c.prototype._getNetWorkType=function(){var e=window.navigator,i=(null==e?void 0:e.connection)||(null==e?void 0:e.mozConnection)||(null==e?void 0:e.webkitConnection);return(null==i?void 0:i.type)||(null==i?void 0:i.effectiveType)||"other"},c.prototype._getBatchId=function(){var e,o=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem(i+e):null);return o||function(e,o){void 0!==typeof sessionStorage&&sessionStorage.setItem(i+e,o)}("BATCH_ID",o=n()),o},c.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},c.prototype._getApis=function(i){var o=this._isPro?{open:"webopen-inside.tt.cn",event:"webevent-inside.tt.cn",act:"webact-inside.tt.cn"}:{open:"test-webopen-inside.tt.cn",event:"test-webevent-inside.tt.cn",act:"test-webact-inside.tt.cn"},t=e(e({},o),i);return{openUrl:"https://".concat(t.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(t.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(t.act,"/gamefunction_logs/applet/activity")}},c.prototype._cacheCommonParams=function(e){t("COMMON_PARAMS",JSON.stringify(e))},c.prototype._getInitParams=function(){return{os:f,osversion:h,device:g,devicebrand:y,platform:7,openid:r(),appcqid:z,appqid:z+a(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},c.prototype._initCommonParams=function(){var i=this._getInitParams(),t=o("COMMON_PARAMS");t&&(i=e(e({},i),JSON.parse(t))),i=s(i,this._commonParams),this._updateCommonParams(e(e({},i),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},c.prototype._getUserInfo=function(i){var o={};if(i)try{o=JSON.parse(i)}catch(e){console.error('[XLOG] The parameter "userinfo" is not in JSON string format!')}var t={};if(this._commonParams.userinfo)try{t=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(e(e({querystring:this._urlParams},t),o))},c.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var t in e){var n=e[t];o.includes(t)&&n&&(i[t]=n)}}return i},c.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},c.prototype._updateCommonParams=function(e){this._consoleLog&&console.log("[XLOG] _updateCommonParams",e),e.userinfo&&(e.userinfo=this._getUserInfo(e.userinfo)),e.appcqid&&(e.appqid=e.appcqid+a()),e.appver&&(e.appverint=function(e){try{return e&&"string"==typeof e?e.split(".").map((function(e){return 1===e.length?"0"+e:e})).join(""):""}catch(i){return console.error('[transferVersion] ver("'.concat(e,'")格式异常:'),i),""}}(e.appver)),this._commonParams=s(this._commonParams,e),this._cacheCommonParams(this._commonParams)},c.prototype._getAppqid=function(){return this._commonParams.appcqid+a()},c.prototype._request=function(e,i){!function(e,i){M(e,i)}(e,i)},c.prototype._open=function(i){if(this._sendOpenLog){var o=e(e({},this._commonParams),{openway:i,appqid:this._getAppqid(),xmlog:L});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},c.prototype.event=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),event1:i.event1||"",event2:i.event2||"",event3:i.event3||"",event4:i.event4||"",value1:i.value1||"",value2:i.value2||"",value3:i.value3||"",value4:i.value4||""});this._consoleLog&&console.log("[XLOG] PARAMS(EVENT)",o),this._request(this._eventUrl,o)},c.prototype.act=function(i){var o=e(e({},this._commonParams),{appqid:this._getAppqid(),actentryid:i.actentryid||"",subactid:i.subactid||"",type:i.type||"",custom:i.custom||"",batchid:i.batchid||""});this._consoleLog&&console.log("[XLOG] PARAMS(ACT)",o),this._request(this._actUrl,o)},c}();export{j as EGender,I as XLog};
|