@xyz-fe/log 4.0.0 → 4.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 +2 -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 +2 -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 +2 -1
- package/dist/web-hw.js +3 -3
- package/dist/web-hw.min.js +3 -3
- package/dist/web-hw.mjs +2 -2
- package/dist/web.d.ts +2 -1
- package/dist/web.js +2 -2
- package/dist/web.min.js +2 -2
- package/dist/web.mjs +2 -2
- package/package.json +14 -5
package/dist/web.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @xyz-fe/log v4.
|
|
2
|
+
* @xyz-fe/log v4.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,n=arguments.length;o<n;o++)for(var t in i=arguments[o])Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t]);return e},i.apply(this,arguments)},o="XYZ_LOG_";function n(e){return void 0!==typeof localStorage?localStorage.getItem(o+e):null}function t(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(""),n=[],t=Math.random,r=e,a=i||o.length,s=0;s<r;s++)n[s]=o[0|t()*a];return n.join("")}function a(e){void 0===e&&(e="UID");var i=n(e);return i||t(e,i=r()),i}function s(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),n=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(n=Number(n)<10?"0"+n:n)}function c(e,o){var n=i({},e),t=i({},o);return Object.keys(n).forEach((function(e){t[e]||delete t[e]})),i(i({},n),t)}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,n){var t="function",r="undefined",a="object",s="string",c="model",u="name",l="type",d="vendor",p="version",m="architecture",b="console",f="mobile",w="tablet",h="smarttv",v="wearable",g="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",S="Firefox",P="Google",O="Huawei",C="LG",A="Microsoft",N="Motorola",q="Opera",T="Samsung",E="Sony",U="Xiaomi",j="Zebra",M="Facebook",L=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},z=function(e,i){return typeof e===s&&-1!==R(i).indexOf(R(e))},R=function(e){return e.toLowerCase()},I=function(e,i){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof i===r?e:e.substring(0,255)},B=function(e,i){for(var o,r,s,c,u,l,d=0;d<i.length&&!u;){var p=i[d],m=i[d+1];for(o=r=0;o<p.length&&!u;)if(u=p[o++].exec(e))for(s=0;s<m.length;s++)l=u[++r],typeof(c=m[s])===a&&c.length>0?2===c.length?typeof c[1]==t?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==t||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):n:this[c[0]]=l?c[1].call(this,l,c[2]):n:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):n):this[c]=l||n;d+=2}},D=function(e,i){for(var o in i)if(typeof i[o]===a&&i[o].length>0){for(var t=0;t<i[o].length;t++)if(z(i[o][t],e))return"?"===o?n:o}else if(z(i[o],e))return"?"===o?n:o;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},F={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[u,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,M],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,D,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,R]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",R]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[d,T],[l,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,T],[l,f]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[d,_],[l,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,_],[l,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,O],[l,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[d,O],[l,f]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[d,U],[l,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,U],[l,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[l,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[l,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[l,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],[c,[d,N],[l,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,N],[l,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,C],[l,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,C],[l,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[l,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[l,f]],[/(pixel c)\b/i],[c,[d,P],[l,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,P],[l,f]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,E],[l,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,E],[l,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[l,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,y],[l,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,y],[l,f]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[l,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,k],[l,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,x],[l,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,x],[l,f]],[/(nexus 9)/i],[c,[d,"HTC"],[l,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[l,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[l,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[l,f]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,"Sharp"],[l,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[l,f]],[/(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],[d,c,[l,w]],[/(surface duo)/i],[c,[d,A],[l,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[l,f]],[/(u304aa)/i],[c,[d,"AT&T"],[l,f]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[l,f]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[l,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[l,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[l,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[l,w]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[l,w]],[/\b(k88) b/i],[c,[d,"ZTE"],[l,w]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[l,f]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[l,f]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[l,w]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[l,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[l,w]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[l,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[l,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[l,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[l,f]],[/\b(ph-1) /i],[c,[d,"Essential"],[l,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[l,w]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[l,w]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[l,w]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[l,w]],[/(sprint) (\w+)/i],[d,c,[l,f]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,A],[l,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,j],[l,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,j],[l,f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[l,b]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[l,b]],[/(playstation [345portablevi]+)/i],[c,[d,E],[l,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,A],[l,b]],[/smart-tv.+(samsung)/i],[d,[l,h]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,T],[l,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,C],[l,h]],[/(apple) ?tv/i],[d,[c,"Apple TV"],[l,h]],[/crkey/i],[[c,"Chromecast"],[d,P],[l,h]],[/droid.+aft(\w)( bui|\))/i],[c,[d,y],[l,h]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[l,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,I],[c,I],[l,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,h]],[/((pebble))app/i],[d,c,[l,v]],[/droid.+; (glass) \d/i],[c,[d,P],[l,v]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,j],[l,v]],[/(quest( 2)?)/i],[c,[d,M],[l,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,w]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,f]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,D,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,D,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},V=function(e,i){if(typeof e===a&&(i=e,e=n),!(this instanceof V))return new V(e,i).getResult();var t=e||(typeof o!==r&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),c=i?function(e,i){var o={};for(var n in e)i[n]&&i[n].length%2==0?o[n]=i[n].concat(e[n]):o[n]=e[n];return o}(F,i):F;return this.getBrowser=function(){var e,i={};return i.name=n,i.version=n,B.call(i,t,c.browser),i.major=typeof(e=i.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:n,i},this.getCPU=function(){var e={};return e.architecture=n,B.call(e,t,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=n,e.model=n,e.type=n,B.call(e,t,c.device),e},this.getEngine=function(){var e={};return e.name=n,e.version=n,B.call(e,t,c.engine),e},this.getOS=function(){var e={};return e.name=n,e.version=n,B.call(e,t,c.os),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 t},this.setUA=function(e){return t=typeof e===s&&e.length>255?I(e,255):e,this},this.setUA(t),this};V.VERSION="1.0.2",V.BROWSER=L([u,p,"major"]),V.CPU=L([m]),V.DEVICE=L([c,d,l,b,f,h,w,v,g]),V.ENGINE=V.OS=L([u,p]),e.exports&&(i=e.exports=V),i.UAParser=V;var X=typeof o!==r&&(o.jQuery||o.Zepto);if(X&&!X.ua){var W=new V;X.ua=W.getResult(),X.ua.get=function(){return W.getUA()},X.ua.set=function(e){W.setUA(e);var i=W.getResult();for(var o in i)X.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 m=d.getEngine();m.name,m.version;var b=function(){var e=(0,d.getOS)();return{os:e.name,osversion:e.version}}(),f=b.os,w=b.osversion,h=function(){var e=(0,d.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),v=h.device,g=h.devicebrand;f=f||"",w=w||"",v=v||"",g=g||"";var y={exports:{}},_={exports:{}},x=1e3,k=60*x,S=60*k,P=24*S,O=365.25*P,C=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 A(e,P,"day")||A(e,S,"hour")||A(e,k,"minute")||A(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 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 n(e){function n(){if(n.enabled){var e=n,t=+new Date,r=t-(o||t);e.diff=r,e.prev=o,e.curr=t,o=t;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,n){if("%%"===o)return o;c++;var t=i.formatters[n];if("function"==typeof t){var r=a[c];o=t.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a);var u=n.log||i.log||console.log.bind(console);u.apply(e,a)}}return n.namespace=e,n.enabled=i.enabled(e),n.useColors=i.useColors(),n.color=function(e){var o,n=0;for(o in e)n=(n<<5)-n+e.charCodeAt(o),n|=0;return i.colors[Math.abs(n)%i.colors.length]}(e),"function"==typeof i.init&&i.init(n),n}(i=e.exports=n.debug=n.default=n).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,]+/),n=o.length,t=0;t<n;t++)o[t]&&("-"===(e=o[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,n;for(o=0,n=i.skips.length;o<n;o++)if(i.skips[o].test(e))return!1;for(o=0,n=i.names.length;o<n;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=C,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 n="color: "+this.color;e.splice(1,0,n,"color: inherit");var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(t++,"%c"===e&&(r=t))})),e.splice(r,0,n)},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 N=y.exports("jsonp"),q=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var n,t,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&&(t=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){n.parentNode&&n.parentNode.removeChild(n),window[a]=E,t&&clearTimeout(t)}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),(n=document.createElement("script")).src=e,l.parentNode.insertBefore(n,l),function(){window[a]&&d()}},T=0;function E(){}function U(e,i){return void 0===i&&(i={}),new Promise((function(o,n){var t;q("".concat(e,"?").concat((t=i,Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__")},(function(e,i){e?n(e):o(i)}))}))}var j,M="4.0.0",L="organic";e.EGender=void 0,(j=e.EGender||(e.EGender={}))[j.Unknown=0]="Unknown",j[j.Male=1]="Male",j[j.Female=2]="Female";var z=function(){function e(e){var i=e.domain,o=e.commonParams,n=e.isPro,t=void 0===n||n,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version=M,this.buildDate="3/7/2025, 6:00:43 PM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),n={};return o&&o.split("&").forEach((function(e){n[e.split("=")[0]]=e.split("=")[1]})),Object.keys(n).forEach((function(i){e.includes(i)&&delete n[i]})),n}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=t,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"},n=i(i({},o),e);return{openUrl:"https://".concat(n.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(n.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(n.act,"/gamefunction_logs/applet/activity")}},e.prototype._cacheCommonParams=function(e){t("COMMON_PARAMS",JSON.stringify(e))},e.prototype._getInitParams=function(){return{os:f,osversion:w,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=n("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 n={};if(this._commonParams.userinfo)try{n=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(i(i({querystring:this._urlParams},n),o))},e.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var n in e){var t=e[n];o.includes(n)&&t&&(i[n]=t)}}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:M});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,n=arguments.length;o<n;o++)for(var t in i=arguments[o])Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t]);return e},i.apply(this,arguments)},o="XYZ_LOG_";function n(e){return void 0!==typeof localStorage?localStorage.getItem(o+e):null}function t(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(""),n=[],t=Math.random,r=e,a=i||o.length,s=0;s<r;s++)n[s]=o[0|t()*a];return n.join("")}function a(e){void 0===e&&(e="UID");var i=n(e);return i||t(e,i=r()),i}function s(){var e=new Date,i=e.getFullYear().toString(),o=(e.getMonth()+1).toString(),n=e.getDate().toString();return(i=i.toString().substr(-2))+(o=Number(o)<10?"0"+o:o)+(n=Number(n)<10?"0"+n:n)}function c(e,o){var n=i({},e),t=i({},o);return Object.keys(n).forEach((function(e){t[e]||delete t[e]})),i(i({},n),t)}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,n){var t="function",r="undefined",a="object",s="string",c="model",u="name",l="type",d="vendor",p="version",m="architecture",b="console",f="mobile",w="tablet",h="smarttv",v="wearable",g="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",S="Firefox",P="Google",O="Huawei",C="LG",A="Microsoft",N="Motorola",q="Opera",T="Samsung",E="Sony",U="Xiaomi",j="Zebra",M="Facebook",L=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},z=function(e,i){return typeof e===s&&-1!==R(i).indexOf(R(e))},R=function(e){return e.toLowerCase()},I=function(e,i){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof i===r?e:e.substring(0,255)},B=function(e,i){for(var o,r,s,c,u,l,d=0;d<i.length&&!u;){var p=i[d],m=i[d+1];for(o=r=0;o<p.length&&!u;)if(u=p[o++].exec(e))for(s=0;s<m.length;s++)l=u[++r],typeof(c=m[s])===a&&c.length>0?2===c.length?typeof c[1]==t?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==t||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):n:this[c[0]]=l?c[1].call(this,l,c[2]):n:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):n):this[c]=l||n;d+=2}},D=function(e,i){for(var o in i)if(typeof i[o]===a&&i[o].length>0){for(var t=0;t<i[o].length;t++)if(z(i[o][t],e))return"?"===o?n:o}else if(z(i[o],e))return"?"===o?n:o;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},F={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[u,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,M],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,D,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,R]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",R]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[d,T],[l,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,T],[l,f]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[d,_],[l,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,_],[l,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,O],[l,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[d,O],[l,f]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[d,U],[l,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,U],[l,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[l,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[l,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[l,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],[c,[d,N],[l,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,N],[l,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,C],[l,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,C],[l,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[l,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[l,f]],[/(pixel c)\b/i],[c,[d,P],[l,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,P],[l,f]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,E],[l,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,E],[l,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[l,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,y],[l,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,y],[l,f]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[l,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,k],[l,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,x],[l,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,x],[l,f]],[/(nexus 9)/i],[c,[d,"HTC"],[l,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[l,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[l,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[l,f]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,"Sharp"],[l,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[l,f]],[/(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],[d,c,[l,w]],[/(surface duo)/i],[c,[d,A],[l,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[l,f]],[/(u304aa)/i],[c,[d,"AT&T"],[l,f]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[l,f]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[l,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[l,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[l,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[l,w]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[l,w]],[/\b(k88) b/i],[c,[d,"ZTE"],[l,w]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[l,f]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[l,f]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[l,w]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[l,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[l,w]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[l,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[l,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[l,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[l,f]],[/\b(ph-1) /i],[c,[d,"Essential"],[l,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[l,w]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[l,w]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[l,w]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[l,w]],[/(sprint) (\w+)/i],[d,c,[l,f]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,A],[l,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,j],[l,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,j],[l,f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[l,b]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[l,b]],[/(playstation [345portablevi]+)/i],[c,[d,E],[l,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,A],[l,b]],[/smart-tv.+(samsung)/i],[d,[l,h]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,T],[l,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,C],[l,h]],[/(apple) ?tv/i],[d,[c,"Apple TV"],[l,h]],[/crkey/i],[[c,"Chromecast"],[d,P],[l,h]],[/droid.+aft(\w)( bui|\))/i],[c,[d,y],[l,h]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[l,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,I],[c,I],[l,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,h]],[/((pebble))app/i],[d,c,[l,v]],[/droid.+; (glass) \d/i],[c,[d,P],[l,v]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,j],[l,v]],[/(quest( 2)?)/i],[c,[d,M],[l,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,w]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,f]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,D,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,D,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},V=function(e,i){if(typeof e===a&&(i=e,e=n),!(this instanceof V))return new V(e,i).getResult();var t=e||(typeof o!==r&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),c=i?function(e,i){var o={};for(var n in e)i[n]&&i[n].length%2==0?o[n]=i[n].concat(e[n]):o[n]=e[n];return o}(F,i):F;return this.getBrowser=function(){var e,i={};return i.name=n,i.version=n,B.call(i,t,c.browser),i.major=typeof(e=i.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:n,i},this.getCPU=function(){var e={};return e.architecture=n,B.call(e,t,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=n,e.model=n,e.type=n,B.call(e,t,c.device),e},this.getEngine=function(){var e={};return e.name=n,e.version=n,B.call(e,t,c.engine),e},this.getOS=function(){var e={};return e.name=n,e.version=n,B.call(e,t,c.os),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 t},this.setUA=function(e){return t=typeof e===s&&e.length>255?I(e,255):e,this},this.setUA(t),this};V.VERSION="1.0.2",V.BROWSER=L([u,p,"major"]),V.CPU=L([m]),V.DEVICE=L([c,d,l,b,f,h,w,v,g]),V.ENGINE=V.OS=L([u,p]),e.exports&&(i=e.exports=V),i.UAParser=V;var X=typeof o!==r&&(o.jQuery||o.Zepto);if(X&&!X.ua){var W=new V;X.ua=W.getResult(),X.ua.get=function(){return W.getUA()},X.ua.set=function(e){W.setUA(e);var i=W.getResult();for(var o in i)X.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 m=d.getEngine();m.name,m.version;var b=function(){var e=(0,d.getOS)();return{os:e.name,osversion:e.version}}(),f=b.os,w=b.osversion,h=function(){var e=(0,d.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),v=h.device,g=h.devicebrand;f=f||"",w=w||"",v=v||"",g=g||"";var y={exports:{}},_={exports:{}},x=1e3,k=60*x,S=60*k,P=24*S,O=365.25*P,C=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 A(e,P,"day")||A(e,S,"hour")||A(e,k,"minute")||A(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 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 n(e){function n(){if(n.enabled){var e=n,t=+new Date,r=t-(o||t);e.diff=r,e.prev=o,e.curr=t,o=t;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,n){if("%%"===o)return o;c++;var t=i.formatters[n];if("function"==typeof t){var r=a[c];o=t.call(e,r),a.splice(c,1),c--}return o})),i.formatArgs.call(e,a);var u=n.log||i.log||console.log.bind(console);u.apply(e,a)}}return n.namespace=e,n.enabled=i.enabled(e),n.useColors=i.useColors(),n.color=function(e){var o,n=0;for(o in e)n=(n<<5)-n+e.charCodeAt(o),n|=0;return i.colors[Math.abs(n)%i.colors.length]}(e),"function"==typeof i.init&&i.init(n),n}(i=e.exports=n.debug=n.default=n).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,]+/),n=o.length,t=0;t<n;t++)o[t]&&("-"===(e=o[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")))},i.enabled=function(e){var o,n;for(o=0,n=i.skips.length;o<n;o++)if(i.skips[o].test(e))return!1;for(o=0,n=i.names.length;o<n;o++)if(i.names[o].test(e))return!0;return!1},i.humanize=C,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 n="color: "+this.color;e.splice(1,0,n,"color: inherit");var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(t++,"%c"===e&&(r=t))})),e.splice(r,0,n)},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 N=y.exports("jsonp"),q=function(e,i,o){"function"==typeof i&&(o=i,i={});i||(i={});var n,t,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&&(t=setTimeout((function(){d(),o&&o(new Error("Timeout"))}),c));function d(){n.parentNode&&n.parentNode.removeChild(n),window[a]=E,t&&clearTimeout(t)}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),(n=document.createElement("script")).src=e,l.parentNode.insertBefore(n,l),function(){window[a]&&d()}},T=0;function E(){}function U(e,i){return void 0===i&&(i={}),new Promise((function(o,n){var t;q("".concat(e,"?").concat((t=i,Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&"))),{param:"jsonp",name:"__jsonp_cb_".concat(Date.now(),"__")},(function(e,i){e?n(e):o(i)}))}))}var j,M="4.2.0",L="organic";e.EGender=void 0,(j=e.EGender||(e.EGender={}))[j.Unknown=0]="Unknown",j[j.Male=1]="Male",j[j.Female=2]="Female";var z=function(){function e(e){var i=e.domain,o=e.commonParams,n=e.isPro,t=void 0===n||n,r=e.sendOpenLog,a=void 0===r||r,s=e.consoleLog,c=void 0===s||s;this.version=M,this.buildDate="3/13/2025, 5:16:49 PM",this._urlParams=function(e,i){void 0===e&&(e=[]),void 0===i&&(i=location.href);var o=new URL(i).search.substring(1),n={};return o&&o.split("&").forEach((function(e){n[e.split("=")[0]]=e.split("=")[1]})),Object.keys(n).forEach((function(i){e.includes(i)&&delete n[i]})),n}(),this._commonParams={},this._isPro=!0,this._sendOpenLog=!0,this._consoleLog=!0,this._isPro=t,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"},n=i(i({},o),e);return{openUrl:"https://".concat(n.open,"/gamefunction_logs/applet/open"),eventUrl:"https://".concat(n.event,"/gamefunction_logs/applet/event"),actUrl:"https://".concat(n.act,"/gamefunction_logs/applet/activity")}},e.prototype._cacheCommonParams=function(e){t("COMMON_PARAMS",JSON.stringify(e))},e.prototype._getInitParams=function(){return{os:f,osversion:w,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=n("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 n={};if(this._commonParams.userinfo)try{n=JSON.parse(this._commonParams.userinfo)}catch(e){console.error("[XLOG] parse error",e)}return JSON.stringify(i(i({querystring:this._urlParams},n),o))},e.prototype._filterParams=function(e){var i={};if(e){var o=["accid","apptypeid","appcqid","srcqid","appver","userinfo"];for(var n in e){var t=e[n];o.includes(n)&&t&&(i[n]=t)}}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:M});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})}));
|
|
7
7
|
//# sourceMappingURL=web.min.js.map
|
package/dist/web.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @xyz-fe/log v4.
|
|
2
|
+
* @xyz-fe/log v4.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 i(e){return void 0!==typeof localStorage?localStorage.getItem("XYZ_LOG_"+e):null}function o(e,i){void 0!==typeof localStorage&&localStorage.setItem("XYZ_LOG_"+e,i)}function t(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 n(e){void 0===e&&(e="UID");var n=i(e);return n||o(e,n=t()),n}function r(){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 a(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 s,c,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={exports:{}};s=l,c=l.exports,function(e,i){var o="function",t="undefined",n="object",r="string",a="model",u="name",l="type",d="vendor",p="version",m="architecture",b="console",w="mobile",f="tablet",h="smarttv",v="wearable",g="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",S="Firefox",P="Google",O="Huawei",C="LG",A="Microsoft",N="Motorola",q="Opera",T="Samsung",U="Sony",E="Xiaomi",L="Zebra",M="Facebook",j=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},z=function(e,i){return typeof e===r&&-1!==R(i).indexOf(R(e))},R=function(e){return e.toLowerCase()},I=function(e,i){if(typeof e===r)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof i===t?e:e.substring(0,255)},B=function(e,t){for(var r,a,s,c,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(r=a=0;r<p.length&&!u;)if(u=p[r++].exec(e))for(s=0;s<m.length;s++)l=u[++a],typeof(c=m[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}},D=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(z(o[t][r],e))return"?"===t?i:t}else if(z(o[t],e))return"?"===t?i:t;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[u,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,M],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,D,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,R]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",R]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[d,T],[l,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[d,T],[l,w]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[d,_],[l,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[d,_],[l,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[d,O],[l,f]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[a,[d,O],[l,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[d,E],[l,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[d,E],[l,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[d,"OPPO"],[l,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[d,"Vivo"],[l,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[d,"Realme"],[l,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[d,N],[l,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[d,N],[l,f]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[d,C],[l,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[d,C],[l,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[d,"Lenovo"],[l,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[d,"Nokia"],[l,w]],[/(pixel c)\b/i],[a,[d,P],[l,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[d,P],[l,w]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[d,U],[l,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[d,U],[l,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[d,"OnePlus"],[l,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[d,y],[l,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[d,y],[l,w]],[/(playbook);[-\w\),; ]+(rim)/i],[a,d,[l,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[d,k],[l,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[d,x],[l,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[d,x],[l,w]],[/(nexus 9)/i],[a,[d,"HTC"],[l,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[a,/_/g," "],[l,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[d,"Acer"],[l,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[d,"Meizu"],[l,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[d,"Sharp"],[l,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,a,[l,w]],[/(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],[d,a,[l,f]],[/(surface duo)/i],[a,[d,A],[l,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[d,"Fairphone"],[l,w]],[/(u304aa)/i],[a,[d,"AT&T"],[l,w]],[/\bsie-(\w*)/i],[a,[d,"Siemens"],[l,w]],[/\b(rct\w+) b/i],[a,[d,"RCA"],[l,f]],[/\b(venue[\d ]{2,7}) b/i],[a,[d,"Dell"],[l,f]],[/\b(q(?:mv|ta)\w+) b/i],[a,[d,"Verizon"],[l,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[d,"Barnes & Noble"],[l,f]],[/\b(tm\d{3}\w+) b/i],[a,[d,"NuVision"],[l,f]],[/\b(k88) b/i],[a,[d,"ZTE"],[l,f]],[/\b(nx\d{3}j) b/i],[a,[d,"ZTE"],[l,w]],[/\b(gen\d{3}) b.+49h/i],[a,[d,"Swiss"],[l,w]],[/\b(zur\d{3}) b/i],[a,[d,"Swiss"],[l,f]],[/\b((zeki)?tb.*\b) b/i],[a,[d,"Zeki"],[l,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],a,[l,f]],[/\b(ns-?\w{0,9}) b/i],[a,[d,"Insignia"],[l,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[d,"NextBook"],[l,f]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],a,[l,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],a,[l,w]],[/\b(ph-1) /i],[a,[d,"Essential"],[l,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[d,"Envizen"],[l,f]],[/\b(trio[-\w\. ]+) b/i],[a,[d,"MachSpeed"],[l,f]],[/\btu_(1491) b/i],[a,[d,"Rotor"],[l,f]],[/(shield[\w ]+) b/i],[a,[d,"Nvidia"],[l,f]],[/(sprint) (\w+)/i],[d,a,[l,w]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[d,A],[l,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[d,L],[l,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[d,L],[l,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,a,[l,b]],[/droid.+; (shield) bui/i],[a,[d,"Nvidia"],[l,b]],[/(playstation [345portablevi]+)/i],[a,[d,U],[l,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[d,A],[l,b]],[/smart-tv.+(samsung)/i],[d,[l,h]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[d,T],[l,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,C],[l,h]],[/(apple) ?tv/i],[d,[a,"Apple TV"],[l,h]],[/crkey/i],[[a,"Chromecast"],[d,P],[l,h]],[/droid.+aft(\w)( bui|\))/i],[a,[d,y],[l,h]],[/\(dtv[\);].+(aquos)/i],[a,[d,"Sharp"],[l,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,I],[a,I],[l,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,h]],[/((pebble))app/i],[d,a,[l,v]],[/droid.+; (glass) \d/i],[a,[d,P],[l,v]],[/droid.+; (wt63?0{2,3})\)/i],[a,[d,L],[l,v]],[/(quest( 2)?)/i],[a,[d,M],[l,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[l,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[l,f]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,f]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,w]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,D,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,D,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},F=function(o,a){if(typeof o===n&&(a=o,o=i),!(this instanceof F))return new F(o,a).getResult();var s=o||(typeof e!==t&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:""),c=a?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}(X,a):X;return this.getBrowser=function(){var e,o={};return o.name=i,o.version=i,B.call(o,s,c.browser),o.major=typeof(e=o.version)===r?e.replace(/[^\d\.]/g,"").split(".")[0]:i,o},this.getCPU=function(){var e={};return e.architecture=i,B.call(e,s,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=i,e.model=i,e.type=i,B.call(e,s,c.device),e},this.getEngine=function(){var e={};return e.name=i,e.version=i,B.call(e,s,c.engine),e},this.getOS=function(){var e={};return e.name=i,e.version=i,B.call(e,s,c.os),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 s},this.setUA=function(e){return s=typeof e===r&&e.length>255?I(e,255):e,this},this.setUA(s),this};F.VERSION="1.0.2",F.BROWSER=j([u,p,"major"]),F.CPU=j([m]),F.DEVICE=j([a,d,l,b,w,h,f,v,g]),F.ENGINE=F.OS=j([u,p]),s.exports&&(c=s.exports=F),c.UAParser=F;var V=typeof e!==t&&(e.jQuery||e.Zepto);if(V&&!V.ua){var Z=new F;V.ua=Z.getResult(),V.ua.get=function(){return Z.getUA()},V.ua.set=function(e){Z.setUA(e);var i=Z.getResult();for(var o in i)V.ua[o]=i[o]}}}("object"==typeof window?window:u);var d=new l.exports.UAParser,p=d.getBrowser();p.name,p.version;var m=d.getEngine();m.name,m.version;var b=function(){var e=(0,d.getOS)();return{os:e.name,osversion:e.version}}(),w=b.os,f=b.osversion,h=function(){var e=(0,d.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),v=h.device,g=h.devicebrand;w=w||"",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,C=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 A(e,P,"day")||A(e,S,"hour")||A(e,k,"minute")||A(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 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);var u=t.log||i.log||console.log.bind(console);u.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=_.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=C,i.names=[],i.skips=[],i.formatters={}}(0,_.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 N=y.exports("jsonp"),q=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]=U,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()}},T=0;function U(){}function E(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;q("".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(),"__")},(function(e,i){e?t(e):o(i)}))}))}var L;!function(e){e[e.Unknown=0]="Unknown",e[e.Male=1]="Male",e[e.Female=2]="Female"}(L||(L={}));var M=function(){function s(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="4.0.0",this.buildDate="3/7/2025, 6:00:43 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(s.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),s.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)}))},s.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)},s.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},s.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"},s.prototype._getBatchId=function(){var e,i=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem("XYZ_LOG_"+e):null);return i||function(e,i){void 0!==typeof sessionStorage&&sessionStorage.setItem("XYZ_LOG_"+e,i)}("BATCH_ID",i=t()),i},s.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},s.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")}},s.prototype._cacheCommonParams=function(e){o("COMMON_PARAMS",JSON.stringify(e))},s.prototype._getInitParams=function(){return{os:w,osversion:f,device:v,devicebrand:g,platform:7,openid:n(),appcqid:"organic",appqid:"organic"+r(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},s.prototype._initCommonParams=function(){var o=this._getInitParams(),t=i("COMMON_PARAMS");t&&(o=e(e({},o),JSON.parse(t))),o=a(o,this._commonParams),this._updateCommonParams(e(e({},o),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},s.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))},s.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},s.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},s.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+r()),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=a(this._commonParams,e),this._cacheCommonParams(this._commonParams)},s.prototype._getAppqid=function(){return this._commonParams.appcqid+r()},s.prototype._request=function(e,i){!function(e,i){E(e,i)}(e,i)},s.prototype._open=function(i){if(this._sendOpenLog){var o=e(e({},this._commonParams),{openway:i,appqid:this._getAppqid(),xmlog:"4.0.0"});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},s.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)},s.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)},s}();export{L as EGender,M 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 i(e){return void 0!==typeof localStorage?localStorage.getItem("XYZ_LOG_"+e):null}function o(e,i){void 0!==typeof localStorage&&localStorage.setItem("XYZ_LOG_"+e,i)}function t(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 n(e){void 0===e&&(e="UID");var n=i(e);return n||o(e,n=t()),n}function r(){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 a(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 s,c,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={exports:{}};s=l,c=l.exports,function(e,i){var o="function",t="undefined",n="object",r="string",a="model",u="name",l="type",d="vendor",p="version",m="architecture",b="console",w="mobile",f="tablet",h="smarttv",v="wearable",g="embedded",y="Amazon",_="Apple",x="ASUS",k="BlackBerry",S="Firefox",P="Google",O="Huawei",C="LG",A="Microsoft",N="Motorola",q="Opera",T="Samsung",U="Sony",E="Xiaomi",L="Zebra",M="Facebook",j=function(e){for(var i={},o=0;o<e.length;o++)i[e[o].toUpperCase()]=e[o];return i},z=function(e,i){return typeof e===r&&-1!==R(i).indexOf(R(e))},R=function(e){return e.toLowerCase()},I=function(e,i){if(typeof e===r)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof i===t?e:e.substring(0,255)},B=function(e,t){for(var r,a,s,c,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(r=a=0;r<p.length&&!u;)if(u=p[r++].exec(e))for(s=0;s<m.length;s++)l=u[++a],typeof(c=m[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}},D=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(z(o[t][r],e))return"?"===t?i:t}else if(z(o[t],e))return"?"===t?i:t;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[u,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[u,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,M],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,D,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,R]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",R]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[d,T],[l,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[d,T],[l,w]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[d,_],[l,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[d,_],[l,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[d,O],[l,f]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[a,[d,O],[l,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[d,E],[l,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[d,E],[l,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[d,"OPPO"],[l,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[d,"Vivo"],[l,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[d,"Realme"],[l,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[d,N],[l,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[d,N],[l,f]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[d,C],[l,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[d,C],[l,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[d,"Lenovo"],[l,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[d,"Nokia"],[l,w]],[/(pixel c)\b/i],[a,[d,P],[l,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[d,P],[l,w]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[d,U],[l,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[d,U],[l,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[d,"OnePlus"],[l,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[d,y],[l,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[d,y],[l,w]],[/(playbook);[-\w\),; ]+(rim)/i],[a,d,[l,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[d,k],[l,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[d,x],[l,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[d,x],[l,w]],[/(nexus 9)/i],[a,[d,"HTC"],[l,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[d,[a,/_/g," "],[l,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[d,"Acer"],[l,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[d,"Meizu"],[l,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[d,"Sharp"],[l,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,a,[l,w]],[/(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],[d,a,[l,f]],[/(surface duo)/i],[a,[d,A],[l,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[d,"Fairphone"],[l,w]],[/(u304aa)/i],[a,[d,"AT&T"],[l,w]],[/\bsie-(\w*)/i],[a,[d,"Siemens"],[l,w]],[/\b(rct\w+) b/i],[a,[d,"RCA"],[l,f]],[/\b(venue[\d ]{2,7}) b/i],[a,[d,"Dell"],[l,f]],[/\b(q(?:mv|ta)\w+) b/i],[a,[d,"Verizon"],[l,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[d,"Barnes & Noble"],[l,f]],[/\b(tm\d{3}\w+) b/i],[a,[d,"NuVision"],[l,f]],[/\b(k88) b/i],[a,[d,"ZTE"],[l,f]],[/\b(nx\d{3}j) b/i],[a,[d,"ZTE"],[l,w]],[/\b(gen\d{3}) b.+49h/i],[a,[d,"Swiss"],[l,w]],[/\b(zur\d{3}) b/i],[a,[d,"Swiss"],[l,f]],[/\b((zeki)?tb.*\b) b/i],[a,[d,"Zeki"],[l,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],a,[l,f]],[/\b(ns-?\w{0,9}) b/i],[a,[d,"Insignia"],[l,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[d,"NextBook"],[l,f]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],a,[l,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],a,[l,w]],[/\b(ph-1) /i],[a,[d,"Essential"],[l,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[d,"Envizen"],[l,f]],[/\b(trio[-\w\. ]+) b/i],[a,[d,"MachSpeed"],[l,f]],[/\btu_(1491) b/i],[a,[d,"Rotor"],[l,f]],[/(shield[\w ]+) b/i],[a,[d,"Nvidia"],[l,f]],[/(sprint) (\w+)/i],[d,a,[l,w]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[d,A],[l,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[d,L],[l,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[d,L],[l,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,a,[l,b]],[/droid.+; (shield) bui/i],[a,[d,"Nvidia"],[l,b]],[/(playstation [345portablevi]+)/i],[a,[d,U],[l,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[d,A],[l,b]],[/smart-tv.+(samsung)/i],[d,[l,h]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[d,T],[l,h]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,C],[l,h]],[/(apple) ?tv/i],[d,[a,"Apple TV"],[l,h]],[/crkey/i],[[a,"Chromecast"],[d,P],[l,h]],[/droid.+aft(\w)( bui|\))/i],[a,[d,y],[l,h]],[/\(dtv[\);].+(aquos)/i],[a,[d,"Sharp"],[l,h]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,I],[a,I],[l,h]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,h]],[/((pebble))app/i],[d,a,[l,v]],[/droid.+; (glass) \d/i],[a,[d,P],[l,v]],[/droid.+; (wt63?0{2,3})\)/i],[a,[d,L],[l,v]],[/(quest( 2)?)/i],[a,[d,M],[l,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[l,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[l,f]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,f]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,w]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,D,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,D,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},F=function(o,a){if(typeof o===n&&(a=o,o=i),!(this instanceof F))return new F(o,a).getResult();var s=o||(typeof e!==t&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:""),c=a?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}(X,a):X;return this.getBrowser=function(){var e,o={};return o.name=i,o.version=i,B.call(o,s,c.browser),o.major=typeof(e=o.version)===r?e.replace(/[^\d\.]/g,"").split(".")[0]:i,o},this.getCPU=function(){var e={};return e.architecture=i,B.call(e,s,c.cpu),e},this.getDevice=function(){var e={};return e.vendor=i,e.model=i,e.type=i,B.call(e,s,c.device),e},this.getEngine=function(){var e={};return e.name=i,e.version=i,B.call(e,s,c.engine),e},this.getOS=function(){var e={};return e.name=i,e.version=i,B.call(e,s,c.os),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 s},this.setUA=function(e){return s=typeof e===r&&e.length>255?I(e,255):e,this},this.setUA(s),this};F.VERSION="1.0.2",F.BROWSER=j([u,p,"major"]),F.CPU=j([m]),F.DEVICE=j([a,d,l,b,w,h,f,v,g]),F.ENGINE=F.OS=j([u,p]),s.exports&&(c=s.exports=F),c.UAParser=F;var V=typeof e!==t&&(e.jQuery||e.Zepto);if(V&&!V.ua){var Z=new F;V.ua=Z.getResult(),V.ua.get=function(){return Z.getUA()},V.ua.set=function(e){Z.setUA(e);var i=Z.getResult();for(var o in i)V.ua[o]=i[o]}}}("object"==typeof window?window:u);var d=new l.exports.UAParser,p=d.getBrowser();p.name,p.version;var m=d.getEngine();m.name,m.version;var b=function(){var e=(0,d.getOS)();return{os:e.name,osversion:e.version}}(),w=b.os,f=b.osversion,h=function(){var e=(0,d.getDevice)();return{device:e.model,devicebrand:e.vendor}}(),v=h.device,g=h.devicebrand;w=w||"",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,C=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 A(e,P,"day")||A(e,S,"hour")||A(e,k,"minute")||A(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 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);var u=t.log||i.log||console.log.bind(console);u.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=_.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=C,i.names=[],i.skips=[],i.formatters={}}(0,_.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 N=y.exports("jsonp"),q=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]=U,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()}},T=0;function U(){}function E(e,i){return void 0===i&&(i={}),new Promise((function(o,t){var n;q("".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(),"__")},(function(e,i){e?t(e):o(i)}))}))}var L;!function(e){e[e.Unknown=0]="Unknown",e[e.Male=1]="Male",e[e.Female=2]="Female"}(L||(L={}));var M=function(){function s(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="4.2.0",this.buildDate="3/13/2025, 5:16:49 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(s.prototype,"commonParams",{get:function(){return this._commonParams},enumerable:!1,configurable:!0}),s.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)}))},s.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)},s.prototype._getScreen=function(){var e=window.screen,i=e.width,o=e.height;return"".concat(i,"*").concat(o)},s.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"},s.prototype._getBatchId=function(){var e,i=(e="BATCH_ID",void 0!==typeof sessionStorage?sessionStorage.getItem("XYZ_LOG_"+e):null);return i||function(e,i){void 0!==typeof sessionStorage&&sessionStorage.setItem("XYZ_LOG_"+e,i)}("BATCH_ID",i=t()),i},s.prototype._coldStartUp=function(){var e=0;""==window.name?(e=0,window.name="isReload"):"isReload"==window.name&&(e=1),this._open(e)},s.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")}},s.prototype._cacheCommonParams=function(e){o("COMMON_PARAMS",JSON.stringify(e))},s.prototype._getInitParams=function(){return{os:w,osversion:f,device:v,devicebrand:g,platform:7,openid:n(),appcqid:"organic",appqid:"organic"+r(),pixel:this._getScreen(),userinfo:this._getUserInfo()}},s.prototype._initCommonParams=function(){var o=this._getInitParams(),t=i("COMMON_PARAMS");t&&(o=e(e({},o),JSON.parse(t))),o=a(o,this._commonParams),this._updateCommonParams(e(e({},o),{obatchid:this._getBatchId(),network:this._getNetWorkType()}))},s.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))},s.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},s.prototype.setParams=function(e){e&&(this._consoleLog&&console.log("[XLOG] setParams",e),e=this._filterParams(e),this._updateCommonParams(e))},s.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+r()),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=a(this._commonParams,e),this._cacheCommonParams(this._commonParams)},s.prototype._getAppqid=function(){return this._commonParams.appcqid+r()},s.prototype._request=function(e,i){!function(e,i){E(e,i)}(e,i)},s.prototype._open=function(i){if(this._sendOpenLog){var o=e(e({},this._commonParams),{openway:i,appqid:this._getAppqid(),xmlog:"4.2.0"});this._consoleLog&&console.log("[XLOG] PARAMS(OPEN)",o),this._request(this._openUrl,o)}},s.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)},s.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)},s}();export{L as EGender,M as XLog};
|
|
7
7
|
//# sourceMappingURL=web.mjs.map
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyz-fe/log",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "A log sdk for xyz",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
8
8
|
"browser": "dist/web.min.js",
|
|
9
9
|
"types": "index.d.ts",
|
|
10
|
-
"keywords": [
|
|
10
|
+
"keywords": [
|
|
11
|
+
"xyz",
|
|
12
|
+
"log"
|
|
13
|
+
],
|
|
11
14
|
"exports": {
|
|
12
15
|
".": {
|
|
13
16
|
"require": "./dist/index.js",
|
|
@@ -28,16 +31,22 @@
|
|
|
28
31
|
},
|
|
29
32
|
"typesVersions": {
|
|
30
33
|
"*": {
|
|
31
|
-
"*": [
|
|
34
|
+
"*": [
|
|
35
|
+
"./dist/*"
|
|
36
|
+
]
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
|
-
"files": [
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"!dist/**/*.map",
|
|
42
|
+
"*.d.ts"
|
|
43
|
+
],
|
|
35
44
|
"engines": {
|
|
36
45
|
"node": ">=14"
|
|
37
46
|
},
|
|
38
47
|
"publishConfig": {
|
|
39
48
|
"access": "public",
|
|
40
|
-
"registry": "https://registry.npmjs.org"
|
|
49
|
+
"registry": "https://registry.npmjs.org/"
|
|
41
50
|
},
|
|
42
51
|
"scripts": {
|
|
43
52
|
"clean": "rimraf dist",
|