function t(e){const n=[["Edge",/Edg(?:e|A|iOS)?\/([\d.]+)/,"Blink"],["Opera",/OPR\/([\d.]+)/,"Blink"],["Samsung Internet",/SamsungBrowser\/([\d.]+)/,"Blink"],["Firefox",/Firefox\/([\d.]+)/,"Gecko"],["Chrome",/(?:Chrome|CriOS)\/([\d.]+)/,"Blink"],["Safari",/Version\/([\d.]+).*Safari/,"WebKit"]];for(const[r,o,s]of n){const i=e.match(o);if(i)return{browser:r,version:i[1],engine:s}}return{browser:"Unknown",version:"",engine:"Unknown"}}function a(e,n){let r;return(r=e.match(/Windows NT ([\d.]+)/))?{os:"Windows",osVersion:{"10.0":"10/11","6.3":"8.1","6.2":"8","6.1":"7"}[r[1]]??r[1]}:(r=e.match(/Mac OS X ([\d_]+)/))?{os:"macOS",osVersion:r[1].replace(/_/g,".")}:(r=e.match(/Android ([\d.]+)/))?{os:"Android",osVersion:r[1]}:(r=e.match(/(?:iPhone|iPad); CPU.*OS ([\d_]+)/))?{os:"iOS",osVersion:r[1].replace(/_/g,".")}:/Linux/.test(e)||/Linux/.test(n)?{os:"Linux",osVersion:""}:/CrOS/.test(e)?{os:"ChromeOS",osVersion:""}:{os:n||"Unknown",osVersion:""}}function c(e){const{browser:n,version:r,engine:o}=t(e.userAgent),{os:s,osVersion:i}=a(e.userAgent,e.platform);return{browser:n,browserVersion:r,engine:o,platform:e.platform,os:s,osVersion:i,userAgent:e.userAgent,viewport:{width:e.innerWidth,height:e.innerHeight},resolution:{width:e.screenWidth,height:e.screenHeight},devicePixelRatio:e.devicePixelRatio,language:e.language,languages:[...e.languages],timezone:e.timezone,deviceMemoryGB:e.deviceMemory??null,hardwareConcurrency:e.hardwareConcurrency??null,touchPoints:e.maxTouchPoints??0}}function d(){const e=navigator;let n="UTC";try{n=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{}return c({userAgent:e.userAgent,platform:e.platform,language:e.language,languages:e.languages??[e.language],hardwareConcurrency:e.hardwareConcurrency,deviceMemory:e.deviceMemory,maxTouchPoints:e.maxTouchPoints,timezone:n,innerWidth:window.innerWidth,innerHeight:window.innerHeight,screenWidth:screen.width,screenHeight:screen.height,devicePixelRatio:window.devicePixelRatio})}export{d as r};
//# sourceMappingURL=chunk-CoYD1fGq.js.map
