@driplane/web
Advanced tools
Comparing version 1.0.0-beta.11 to 1.0.0-beta.12
@@ -1,1 +0,1 @@ | ||
import{a as yi,b as Ei}from"./chunk-NLMHZ7JJ.js";var ui=yi((M,D)=>{(function(p,d){"use strict";var j="1.0.2",g="",z="?",S="function",k="undefined",_="object",y="string",V="major",o="model",a="name",i="type",e="vendor",r="version",m="architecture",x="console",b="mobile",t="tablet",f="smarttv",O="wearable",ei="embedded",$=255,F="Amazon",G="Apple",oi="ASUS",ai="BlackBerry",E="Browser",C="Chrome",gi="Edge",U="Firefox",q="Google",ri="Huawei",H="LG",W="Microsoft",ti="Motorola",P="Opera",Y="Samsung",Z="Sony",si="Xiaomi",X="Zebra",ni="Facebook",ki=function(s,l){var n={};for(var u in s)l[u]&&l[u].length%2===0?n[u]=l[u].concat(s[u]):n[u]=s[u];return n},B=function(s){for(var l={},n=0;n<s.length;n++)l[s[n].toUpperCase()]=s[n];return l},bi=function(s,l){return typeof s===y?A(l).indexOf(A(s))!==-1:!1},A=function(s){return s.toLowerCase()},xi=function(s){return typeof s===y?s.replace(/[^\d\.]/g,g).split(".")[0]:d},K=function(s,l){if(typeof s===y)return s=s.replace(/^\s\s*/,g).replace(/\s\s*$/,g),typeof l===k?s:s.substring(0,$)},N=function(s,l){for(var n=0,u,w,I,c,R,v;n<l.length&&!R;){var ci=l[n],di=l[n+1];for(u=w=0;u<ci.length&&!R;)if(R=ci[u++].exec(s),R)for(I=0;I<di.length;I++)v=R[++w],c=di[I],typeof c===_&&c.length>0?c.length===2?typeof c[1]==S?this[c[0]]=c[1].call(this,v):this[c[0]]=c[1]:c.length===3?typeof c[1]===S&&!(c[1].exec&&c[1].test)?this[c[0]]=v?c[1].call(this,v,c[2]):d:this[c[0]]=v?v.replace(c[1],c[2]):d:c.length===4&&(this[c[0]]=v?c[3].call(this,v.replace(c[1],c[2])):d):this[c]=v||d;n+=2}},J=function(s,l){for(var n in l)if(typeof l[n]===_&&l[n].length>0){for(var u=0;u<l[n].length;u++)if(bi(l[n][u],s))return n===z?d:n}else if(bi(l[n],s))return n===z?d:n;return s},_i={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},wi={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"},li={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[r,[a,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[r,[a,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[a,r],[/opios[\/ ]+([\w\.]+)/i],[r,[a,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[r,[a,P]],[/(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],[a,r],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[r,[a,"UC"+E]],[/\bqbcore\/([\w\.]+)/i],[r,[a,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[r,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[r,[a,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[r,[a,"IE"]],[/yabrowser\/([\w\.]+)/i],[r,[a,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure "+E],r],[/\bfocus\/([\w\.]+)/i],[r,[a,U+" Focus"]],[/\bopt\/([\w\.]+)/i],[r,[a,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[r,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[r,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[r,[a,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[r,[a,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[r,[a,U]],[/\bqihu|(qi?ho?o?|360)browser/i],[[a,"360 "+E]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1 "+E],r],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],r],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[a,r],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[a],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[a,ni],r],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[a,r],[/\bgsa\/([\w\.]+) .*safari\//i],[r,[a,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[r,[a,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[a,C+" WebView"],r],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[r,[a,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[a,r],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[r,[a,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[r,a],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[a,[r,J,_i]],[/(webkit|khtml)\/([\w\.]+)/i],[a,r],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[a,"Netscape"],r],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[r,[a,U+" 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],[a,r]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,A]],[/((?: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/,g,A]],[/(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,A]]],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],[o,[e,Y],[i,t]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[o,[e,Y],[i,b]],[/\((ip(?:hone|od)[\w ]*);/i],[o,[e,G],[i,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[o,[e,G],[i,t]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[o,[e,ri],[i,t]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[o,[e,ri],[i,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[o,/_/g," "],[e,si],[i,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[o,/_/g," "],[e,si],[i,t]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[o,[e,"OPPO"],[i,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[o,[e,"Vivo"],[i,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[o,[e,"Realme"],[i,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[o,[e,ti],[i,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[o,[e,ti],[i,t]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[o,[e,H],[i,t]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[o,[e,H],[i,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[o,[e,"Lenovo"],[i,t]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[o,/_/g," "],[e,"Nokia"],[i,b]],[/(pixel c)\b/i],[o,[e,q],[i,t]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[o,[e,q],[i,b]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[e,Z],[i,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[o,"Xperia Tablet"],[e,Z],[i,t]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[o,[e,"OnePlus"],[i,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[o,[e,F],[i,t]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[o,/(.+)/g,"Fire Phone $1"],[e,F],[i,b]],[/(playbook);[-\w\),; ]+(rim)/i],[o,e,[i,t]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[o,[e,ai],[i,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[o,[e,oi],[i,t]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[o,[e,oi],[i,b]],[/(nexus 9)/i],[o,[e,"HTC"],[i,t]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[e,[o,/_/g," "],[i,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[o,[e,"Acer"],[i,t]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[o,[e,"Meizu"],[i,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[o,[e,"Sharp"],[i,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[e,o,[i,b]],[/(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],[e,o,[i,t]],[/(surface duo)/i],[o,[e,W],[i,t]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[o,[e,"Fairphone"],[i,b]],[/(u304aa)/i],[o,[e,"AT&T"],[i,b]],[/\bsie-(\w*)/i],[o,[e,"Siemens"],[i,b]],[/\b(rct\w+) b/i],[o,[e,"RCA"],[i,t]],[/\b(venue[\d ]{2,7}) b/i],[o,[e,"Dell"],[i,t]],[/\b(q(?:mv|ta)\w+) b/i],[o,[e,"Verizon"],[i,t]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[o,[e,"Barnes & Noble"],[i,t]],[/\b(tm\d{3}\w+) b/i],[o,[e,"NuVision"],[i,t]],[/\b(k88) b/i],[o,[e,"ZTE"],[i,t]],[/\b(nx\d{3}j) b/i],[o,[e,"ZTE"],[i,b]],[/\b(gen\d{3}) b.+49h/i],[o,[e,"Swiss"],[i,b]],[/\b(zur\d{3}) b/i],[o,[e,"Swiss"],[i,t]],[/\b((zeki)?tb.*\b) b/i],[o,[e,"Zeki"],[i,t]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[e,"Dragon Touch"],o,[i,t]],[/\b(ns-?\w{0,9}) b/i],[o,[e,"Insignia"],[i,t]],[/\b((nxa|next)-?\w{0,9}) b/i],[o,[e,"NextBook"],[i,t]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[e,"Voice"],o,[i,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[e,"LvTel"],o,[i,b]],[/\b(ph-1) /i],[o,[e,"Essential"],[i,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[o,[e,"Envizen"],[i,t]],[/\b(trio[-\w\. ]+) b/i],[o,[e,"MachSpeed"],[i,t]],[/\btu_(1491) b/i],[o,[e,"Rotor"],[i,t]],[/(shield[\w ]+) b/i],[o,[e,"Nvidia"],[i,t]],[/(sprint) (\w+)/i],[e,o,[i,b]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[e,W],[i,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[o,[e,X],[i,t]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[o,[e,X],[i,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[e,o,[i,x]],[/droid.+; (shield) bui/i],[o,[e,"Nvidia"],[i,x]],[/(playstation [345portablevi]+)/i],[o,[e,Z],[i,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[o,[e,W],[i,x]],[/smart-tv.+(samsung)/i],[e,[i,f]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[e,Y],[i,f]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[e,H],[i,f]],[/(apple) ?tv/i],[e,[o,G+" TV"],[i,f]],[/crkey/i],[[o,C+"cast"],[e,q],[i,f]],[/droid.+aft(\w)( bui|\))/i],[o,[e,F],[i,f]],[/\(dtv[\);].+(aquos)/i],[o,[e,"Sharp"],[i,f]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[e,K],[o,K],[i,f]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,f]],[/((pebble))app/i],[e,o,[i,O]],[/droid.+; (glass) \d/i],[o,[e,q],[i,O]],[/droid.+; (wt63?0{2,3})\)/i],[o,[e,X],[i,O]],[/(quest( 2)?)/i],[o,[e,ni],[i,O]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[e,[i,ei]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[o,[i,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[o,[i,t]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,t]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[i,b]],[/(android[-\w\. ]{0,9});.+buil/i],[o,[e,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[r,[a,gi+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[r,[a,"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],[a,r],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[r,a]],os:[[/microsoft (windows) (vista|xp)/i],[a,r],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[a,[r,J,wi]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[a,"Windows"],[r,J,wi]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[r,/_/g,"."],[a,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[a,"Mac OS"],[r,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[r,a],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[a,r],[/\(bb(10);/i],[r,[a,ai]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[r,[a,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[r,[a,U+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[r,[a,"webOS"]],[/crkey\/([\d\.]+)/i],[r,[a,C+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[a,"Chromium OS"],r],[/(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],[a,r],[/(sunos) ?([\w\.\d]*)/i],[[a,"Solaris"],r],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[a,r]]},h=function(s,l){if(typeof s===_&&(l=s,s=d),!(this instanceof h))return new h(s,l).getResult();var n=s||(typeof p!==k&&p.navigator&&p.navigator.userAgent?p.navigator.userAgent:g),u=l?ki(li,l):li;return this.getBrowser=function(){var w={};return w[a]=d,w[r]=d,N.call(w,n,u.browser),w.major=xi(w.version),w},this.getCPU=function(){var w={};return w[m]=d,N.call(w,n,u.cpu),w},this.getDevice=function(){var w={};return w[e]=d,w[o]=d,w[i]=d,N.call(w,n,u.device),w},this.getEngine=function(){var w={};return w[a]=d,w[r]=d,N.call(w,n,u.engine),w},this.getOS=function(){var w={};return w[a]=d,w[r]=d,N.call(w,n,u.os),w},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 n},this.setUA=function(w){return n=typeof w===y&&w.length>$?K(w,$):w,this},this.setUA(n),this};h.VERSION=j,h.BROWSER=B([a,r,V]),h.CPU=B([m]),h.DEVICE=B([o,e,i,x,b,f,t,O,ei]),h.ENGINE=h.OS=B([a,r]),typeof M!==k?(typeof D!==k&&D.exports&&(M=D.exports=h),M.UAParser=h):typeof define===S&&define.amd?define(function(){return h}):typeof p!==k&&(p.UAParser=h);var T=typeof p!==k&&(p.jQuery||p.Zepto);if(T&&!T.ua){var L=new h;T.ua=L.getResult(),T.ua.get=function(){return L.getUA()},T.ua.set=function(s){L.setUA(s);var l=L.getResult();for(var n in l)T.ua[n]=l[n]}}})(typeof window=="object"?window:M)});var mi=Ei(ui()),Q=new mi.default,ii=new Headers;ii.append("Content-Type","application/json");var pi=p=>new URL(p),Ti="https://driplane.io";var hi=p=>{let d=window.btoa(`${p}:`);ii.set("Authorization",`Basic ${d}`)},Si=async(p,d={})=>{let{href:j,host:g,pathname:z,protocol:S}=pi(location.href),{href:k,host:_}=document.referrer?pi(document.referrer):{href:"",host:""},{getClientId:y}=await import("./client-id-3VGDERJD.js"),V=await y(),{name:o,version:a}=Q.getBrowser(),{name:i,version:e}=Q.getOS(),{model:r,type:m}=Q.getDevice(),x={ua_br:o,ua_br_v:a,ua_os:i,ua_os_v:e,ua_dv:r,ua_dv_t:m,url:j,url_host:g,url_path:z,url_prot:S,lang:navigator.language,sh:`${screen.height}`,sw:`${screen.width}`,ref:k,ref_host:_,ref_ext:g!==_?1:0,cid:V};return fetch(`${Ti}/events/${p}`,{method:"POST",headers:ii,body:JSON.stringify({...x,...d})})},fi=async(p={})=>Si("page_view",p);var vi=document?.querySelector("script[data-driplane-token]");vi?.dataset.driplaneToken?(hi(vi?.dataset.driplaneToken),fi()):console.warn("[Driplane] No token given");export{hi as setToken,fi as trackPageview}; | ||
import{a as Ti,b as Si}from"./chunk-NLMHZ7JJ.js";var ui=Ti((M,D)=>{(function(p,d){"use strict";var j="1.0.2",g="",z="?",S="function",k="undefined",_="object",y="string",V="major",o="model",a="name",i="type",e="vendor",r="version",m="architecture",x="console",b="mobile",t="tablet",f="smarttv",O="wearable",ei="embedded",$=255,F="Amazon",G="Apple",oi="ASUS",ai="BlackBerry",E="Browser",C="Chrome",xi="Edge",U="Firefox",q="Google",ri="Huawei",H="LG",W="Microsoft",ti="Motorola",P="Opera",Y="Samsung",Z="Sony",si="Xiaomi",X="Zebra",ni="Facebook",_i=function(s,l){var n={};for(var u in s)l[u]&&l[u].length%2===0?n[u]=l[u].concat(s[u]):n[u]=s[u];return n},B=function(s){for(var l={},n=0;n<s.length;n++)l[s[n].toUpperCase()]=s[n];return l},bi=function(s,l){return typeof s===y?A(l).indexOf(A(s))!==-1:!1},A=function(s){return s.toLowerCase()},yi=function(s){return typeof s===y?s.replace(/[^\d\.]/g,g).split(".")[0]:d},K=function(s,l){if(typeof s===y)return s=s.replace(/^\s\s*/,g).replace(/\s\s*$/,g),typeof l===k?s:s.substring(0,$)},N=function(s,l){for(var n=0,u,w,I,c,R,v;n<l.length&&!R;){var ci=l[n],di=l[n+1];for(u=w=0;u<ci.length&&!R;)if(R=ci[u++].exec(s),R)for(I=0;I<di.length;I++)v=R[++w],c=di[I],typeof c===_&&c.length>0?c.length===2?typeof c[1]==S?this[c[0]]=c[1].call(this,v):this[c[0]]=c[1]:c.length===3?typeof c[1]===S&&!(c[1].exec&&c[1].test)?this[c[0]]=v?c[1].call(this,v,c[2]):d:this[c[0]]=v?v.replace(c[1],c[2]):d:c.length===4&&(this[c[0]]=v?c[3].call(this,v.replace(c[1],c[2])):d):this[c]=v||d;n+=2}},J=function(s,l){for(var n in l)if(typeof l[n]===_&&l[n].length>0){for(var u=0;u<l[n].length;u++)if(bi(l[n][u],s))return n===z?d:n}else if(bi(l[n],s))return n===z?d:n;return s},Ei={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},wi={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"},li={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[r,[a,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[r,[a,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[a,r],[/opios[\/ ]+([\w\.]+)/i],[r,[a,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[r,[a,P]],[/(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],[a,r],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[r,[a,"UC"+E]],[/\bqbcore\/([\w\.]+)/i],[r,[a,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[r,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[r,[a,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[r,[a,"IE"]],[/yabrowser\/([\w\.]+)/i],[r,[a,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure "+E],r],[/\bfocus\/([\w\.]+)/i],[r,[a,U+" Focus"]],[/\bopt\/([\w\.]+)/i],[r,[a,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[r,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[r,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[r,[a,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[r,[a,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[r,[a,U]],[/\bqihu|(qi?ho?o?|360)browser/i],[[a,"360 "+E]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1 "+E],r],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],r],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[a,r],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[a],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[a,ni],r],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[a,r],[/\bgsa\/([\w\.]+) .*safari\//i],[r,[a,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[r,[a,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[a,C+" WebView"],r],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[r,[a,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[a,r],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[r,[a,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[r,a],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[a,[r,J,Ei]],[/(webkit|khtml)\/([\w\.]+)/i],[a,r],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[a,"Netscape"],r],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[r,[a,U+" 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],[a,r]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,A]],[/((?: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/,g,A]],[/(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,A]]],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],[o,[e,Y],[i,t]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[o,[e,Y],[i,b]],[/\((ip(?:hone|od)[\w ]*);/i],[o,[e,G],[i,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[o,[e,G],[i,t]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[o,[e,ri],[i,t]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[o,[e,ri],[i,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[o,/_/g," "],[e,si],[i,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[o,/_/g," "],[e,si],[i,t]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[o,[e,"OPPO"],[i,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[o,[e,"Vivo"],[i,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[o,[e,"Realme"],[i,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[o,[e,ti],[i,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[o,[e,ti],[i,t]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[o,[e,H],[i,t]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[o,[e,H],[i,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[o,[e,"Lenovo"],[i,t]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[o,/_/g," "],[e,"Nokia"],[i,b]],[/(pixel c)\b/i],[o,[e,q],[i,t]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[o,[e,q],[i,b]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[e,Z],[i,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[o,"Xperia Tablet"],[e,Z],[i,t]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[o,[e,"OnePlus"],[i,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[o,[e,F],[i,t]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[o,/(.+)/g,"Fire Phone $1"],[e,F],[i,b]],[/(playbook);[-\w\),; ]+(rim)/i],[o,e,[i,t]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[o,[e,ai],[i,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[o,[e,oi],[i,t]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[o,[e,oi],[i,b]],[/(nexus 9)/i],[o,[e,"HTC"],[i,t]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[e,[o,/_/g," "],[i,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[o,[e,"Acer"],[i,t]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[o,[e,"Meizu"],[i,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[o,[e,"Sharp"],[i,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[e,o,[i,b]],[/(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],[e,o,[i,t]],[/(surface duo)/i],[o,[e,W],[i,t]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[o,[e,"Fairphone"],[i,b]],[/(u304aa)/i],[o,[e,"AT&T"],[i,b]],[/\bsie-(\w*)/i],[o,[e,"Siemens"],[i,b]],[/\b(rct\w+) b/i],[o,[e,"RCA"],[i,t]],[/\b(venue[\d ]{2,7}) b/i],[o,[e,"Dell"],[i,t]],[/\b(q(?:mv|ta)\w+) b/i],[o,[e,"Verizon"],[i,t]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[o,[e,"Barnes & Noble"],[i,t]],[/\b(tm\d{3}\w+) b/i],[o,[e,"NuVision"],[i,t]],[/\b(k88) b/i],[o,[e,"ZTE"],[i,t]],[/\b(nx\d{3}j) b/i],[o,[e,"ZTE"],[i,b]],[/\b(gen\d{3}) b.+49h/i],[o,[e,"Swiss"],[i,b]],[/\b(zur\d{3}) b/i],[o,[e,"Swiss"],[i,t]],[/\b((zeki)?tb.*\b) b/i],[o,[e,"Zeki"],[i,t]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[e,"Dragon Touch"],o,[i,t]],[/\b(ns-?\w{0,9}) b/i],[o,[e,"Insignia"],[i,t]],[/\b((nxa|next)-?\w{0,9}) b/i],[o,[e,"NextBook"],[i,t]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[e,"Voice"],o,[i,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[e,"LvTel"],o,[i,b]],[/\b(ph-1) /i],[o,[e,"Essential"],[i,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[o,[e,"Envizen"],[i,t]],[/\b(trio[-\w\. ]+) b/i],[o,[e,"MachSpeed"],[i,t]],[/\btu_(1491) b/i],[o,[e,"Rotor"],[i,t]],[/(shield[\w ]+) b/i],[o,[e,"Nvidia"],[i,t]],[/(sprint) (\w+)/i],[e,o,[i,b]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[e,W],[i,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[o,[e,X],[i,t]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[o,[e,X],[i,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[e,o,[i,x]],[/droid.+; (shield) bui/i],[o,[e,"Nvidia"],[i,x]],[/(playstation [345portablevi]+)/i],[o,[e,Z],[i,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[o,[e,W],[i,x]],[/smart-tv.+(samsung)/i],[e,[i,f]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[e,Y],[i,f]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[e,H],[i,f]],[/(apple) ?tv/i],[e,[o,G+" TV"],[i,f]],[/crkey/i],[[o,C+"cast"],[e,q],[i,f]],[/droid.+aft(\w)( bui|\))/i],[o,[e,F],[i,f]],[/\(dtv[\);].+(aquos)/i],[o,[e,"Sharp"],[i,f]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[e,K],[o,K],[i,f]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,f]],[/((pebble))app/i],[e,o,[i,O]],[/droid.+; (glass) \d/i],[o,[e,q],[i,O]],[/droid.+; (wt63?0{2,3})\)/i],[o,[e,X],[i,O]],[/(quest( 2)?)/i],[o,[e,ni],[i,O]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[e,[i,ei]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[o,[i,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[o,[i,t]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,t]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[i,b]],[/(android[-\w\. ]{0,9});.+buil/i],[o,[e,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[r,[a,xi+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[r,[a,"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],[a,r],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[r,a]],os:[[/microsoft (windows) (vista|xp)/i],[a,r],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[a,[r,J,wi]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[a,"Windows"],[r,J,wi]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[r,/_/g,"."],[a,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[a,"Mac OS"],[r,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[r,a],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[a,r],[/\(bb(10);/i],[r,[a,ai]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[r,[a,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[r,[a,U+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[r,[a,"webOS"]],[/crkey\/([\d\.]+)/i],[r,[a,C+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[a,"Chromium OS"],r],[/(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],[a,r],[/(sunos) ?([\w\.\d]*)/i],[[a,"Solaris"],r],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[a,r]]},h=function(s,l){if(typeof s===_&&(l=s,s=d),!(this instanceof h))return new h(s,l).getResult();var n=s||(typeof p!==k&&p.navigator&&p.navigator.userAgent?p.navigator.userAgent:g),u=l?_i(li,l):li;return this.getBrowser=function(){var w={};return w[a]=d,w[r]=d,N.call(w,n,u.browser),w.major=yi(w.version),w},this.getCPU=function(){var w={};return w[m]=d,N.call(w,n,u.cpu),w},this.getDevice=function(){var w={};return w[e]=d,w[o]=d,w[i]=d,N.call(w,n,u.device),w},this.getEngine=function(){var w={};return w[a]=d,w[r]=d,N.call(w,n,u.engine),w},this.getOS=function(){var w={};return w[a]=d,w[r]=d,N.call(w,n,u.os),w},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 n},this.setUA=function(w){return n=typeof w===y&&w.length>$?K(w,$):w,this},this.setUA(n),this};h.VERSION=j,h.BROWSER=B([a,r,V]),h.CPU=B([m]),h.DEVICE=B([o,e,i,x,b,f,t,O,ei]),h.ENGINE=h.OS=B([a,r]),typeof M!==k?(typeof D!==k&&D.exports&&(M=D.exports=h),M.UAParser=h):typeof define===S&&define.amd?define(function(){return h}):typeof p!==k&&(p.UAParser=h);var T=typeof p!==k&&(p.jQuery||p.Zepto);if(T&&!T.ua){var L=new h;T.ua=L.getResult(),T.ua.get=function(){return L.getUA()},T.ua.set=function(s){L.setUA(s);var l=L.getResult();for(var n in l)T.ua[n]=l[n]}}})(typeof window=="object"?window:M)});var mi=Si(ui()),Q=new mi.default,ii=new Headers;ii.append("Content-Type","application/json");var pi=p=>new URL(p),hi="https://driplane.io",Oi=p=>{hi=p},fi=p=>{let d=window.btoa(`${p}:`);ii.set("Authorization",`Basic ${d}`)},vi=async(p,d={})=>{let{href:j,host:g,pathname:z,protocol:S}=pi(location.href),{href:k,host:_}=document.referrer?pi(document.referrer):{href:"",host:""},{getClientId:y}=await import("./client-id-3VGDERJD.js"),V=await y(),{name:o,version:a}=Q.getBrowser(),{name:i,version:e}=Q.getOS(),{model:r,type:m}=Q.getDevice(),x={ua_br:o,ua_br_v:a,ua_os:i,ua_os_v:e,ua_dv:r,ua_dv_t:m,url:j,url_host:g,url_path:z,url_prot:S,lang:navigator.language,sh:`${screen.height}`,sw:`${screen.width}`,ref:k,ref_host:_,ref_ext:g!==_?1:0,cid:V};return fetch(`${hi}/events/${p}`,{method:"POST",headers:ii,body:JSON.stringify({...x,...d})})},gi=async(p={})=>vi("page_view",p);var ki=document?.querySelector("script[data-driplane-token]");ki?.dataset.driplaneToken?(fi(ki?.dataset.driplaneToken),gi()):console.warn("[Driplane] No token given");export{Oi as setServer,fi as setToken,vi as trackEvent,gi as trackPageview}; |
{ | ||
"name": "@driplane/web", | ||
"version": "1.0.0-beta.11", | ||
"version": "1.0.0-beta.12", | ||
"description": "Driplane web tracker", | ||
@@ -5,0 +5,0 @@ "main": "./dist/driplane.js", |
@@ -1,2 +0,2 @@ | ||
import { setToken, trackPageview } from './event'; | ||
import { setToken, setServer, trackEvent, trackPageview } from './event'; | ||
@@ -12,2 +12,2 @@ const script = document?.querySelector<HTMLElement>('script[data-driplane-token]'); | ||
export { setToken, trackPageview }; | ||
export { setToken, setServer, trackEvent, trackPageview }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22198