import{g as i}from"./@babel-ynFNPEB3.js";var e,o,a,r={exports:{}};const n=i((e||(e=1,o=r,a=r.exports,function(i,e){var r="function",n="undefined",t="object",s="string",b="major",w="model",d="name",l="type",c="vendor",u="version",m="architecture",p="console",h="mobile",f="tablet",v="smarttv",g="wearable",x="embedded",k="Amazon",y="Apple",_="ASUS",T="BlackBerry",S="Browser",q="Chrome",z="Firefox",N="Google",A="Huawei",O="LG",C="Microsoft",E="Motorola",j="Opera",U="Samsung",P="Sharp",B="Sony",M="Xiaomi",R="Zebra",D="Facebook",V="Chromium OS",I="Mac OS",G=" Browser",L=function(i){for(var e={},o=0;o0?2===b.length?typeof b[1]==r?this[b[0]]=b[1].call(this,d):this[b[0]]=b[1]:3===b.length?typeof b[1]!==r||b[1].exec&&b[1].test?this[b[0]]=d?d.replace(b[1],b[2]):e:this[b[0]]=d?b[1].call(this,d,b[2]):e:4===b.length&&(this[b[0]]=d?b[3].call(this,d.replace(b[1],b[2])):e):this[b]=d||e;l+=2}},$=function(i,o){for(var a in o)if(typeof o[a]===t&&o[a].length>0){for(var r=0;r2&&(i[w]="iPad",i[l]=f),i},this.getEngine=function(){var i={};return i[d]=e,i[u]=e,Z.call(i,v,x.engine),i},this.getOS=function(){var i={};return i[d]=e,i[u]=e,Z.call(i,v,x.os),k&&!i[d]&&g&&g.platform&&"Unknown"!=g.platform&&(i[d]=g.platform.replace(/chrome os/i,V).replace(/macos/i,I)),i},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(i){return v=typeof i===s&&i.length>500?W(i,500):i,this},this.setUA(v),this};Q.VERSION="1.0.40",Q.BROWSER=L([d,u,b]),Q.CPU=L([m]),Q.DEVICE=L([w,c,l,p,h,v,f,g,x]),Q.ENGINE=Q.OS=L([d,u]),o.exports&&(a=o.exports=Q),a.UAParser=Q;var Y=typeof i!==n&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var J=new Q;Y.ua=J.getResult(),Y.ua.get=function(){return J.getUA()},Y.ua.set=function(i){J.setUA(i);var e=J.getResult();for(var o in e)Y.ua[o]=e[o]}}}("object"==typeof window?window:r.exports)),r.exports));export{n as W};