YUI.add("liferay-browser-selectors",(e=>{const r=/\./g,o="yui3-js-enabled",s=["0","0"],i=function getVersion(e,o){return function parseVersionNumber(e){let o=0;return parseFloat(e.replace(r,(()=>1==o++?"":".")))}((o.match(e)||s)[1])},n=["ie","opera","chrome","edge","aol","camino","firefox","flock","mozilla","netscape","icab","konqueror","safari"],t={macintosh:"mac",windows:"win"},a=navigator,c=e.config,l=c.doc,u=a.userAgent,d=e.UA,f=d.os,m={agent:u,aol:0,browser:0,camino:0,firefox:0,flock:0,icab:0,konqueror:0,mozilla:0,netscape:0,safari:0};m.mac="macintosh"===f,m.rhino="rhino"===f,m.win="windows"===f;const g={getSelectors(){if(!d.selectors){if(-1!==u.indexOf("Edge")&&(m.edge=i(/Edge\/([^\s]*)/,u)),d.ie){m.aol=i(/America Online Browser ([^\s]*);/,u);const e=l.documentMode;e&&(d.browser=d.ie,d.ie=e)}else d.gecko?(m.netscape=i(/(Netscape|Navigator)\/([^\s]*)/,u),m.flock=i(/Flock\/([^\s]*)/,u),m.camino=i(/Camino\/([^\s]*)/,u),m.firefox=i(/Firefox\/([^\s]*)/,u)):d.webkit?m.safari=i(/Version\/([^\s]*) Safari/,u):(m.icab=i(/iCab(?:\/|\s)?([^\s]*)/,u),m.konqueror=i(/Konqueror\/([^\s]*)/,u));if(!m.win&&!m.mac){const e=/Linux/.test(u),r=/Solaris|SunOS/.test(u);e?(d.os="linux",m.linux=e):r&&(d.os="sun",m.sun=r)}const r=d.touchEnabled;m.touch=r,m.touchMobile=r&&!!d.mobile,e.mix(d,m);const o=[];let s,a,f,g,h=0;const b={major:h,string:""};let p=n.length;for(;p--;)s=n[p],g=d[s],g>0&&(h=parseInt(g,10),a=s+h,f=s+g,String(g).indexOf(".")>-1?f=f.replace(/\.(\d).*/,"-$1"):f+="-0",o.push(s,a,f),b.string=s+"",b.major=h);d.version=b,d.renderer="",d.ie?d.renderer="trident":d.edge?d.renderer="edgeHTML":d.gecko?d.renderer="gecko":d.webkit?d.renderer="webkit":d.opera&&(d.renderer="presto"),e.UA=d;const w=[d.renderer,"js"].concat(o),k=t[d.os]||d.os;let x,S;if(w.push(k),d.mobile&&w.push("mobile"),d.secure&&w.push("secure"),d.touch&&w.push("touch"),d.selectors=w.join(" "),S=!(x=!(!c.win.SVGAngle&&!l.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))),S){let e=l.createElement("div");e.innerHTML='<v:shape adj="1"/>';const r=e.firstChild;r.style.behavior="url(#default#VML)",r&&"object"==typeof r.adj||(S=!1),e=null}YUI._VML=S,YUI._SVG=x,d.vml=YUI._VML,d.svg=YUI._SVG}return d.selectors},run(){const e=l.documentElement;let r=this.getSelectors();d.dir=e.getAttribute("dir")||"ltr",-1===e.className.indexOf(d.dir)&&(r+=" "+d.dir),-1===e.className.indexOf(o)&&-1===r.indexOf(o)&&(r+=" yui3-js-enabled"),e.className+=" "+r}};Liferay.BrowserSelectors=g}),"",{requires:["yui-base"]});
//# sourceMappingURL=browser_selectors.js.map