var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire1a8f;(0,e.register)("kEpyF",function(t,i){Object.defineProperty(t.exports,"DeviceWeb",{get:function(){return r},set:void 0,enumerable:!0,configurable:!0});var n=e("1zdLe");class r extends n.WebPlugin{async getId(){return{identifier:this.getUid()}}async getInfo(){if("undefined"==typeof navigator||!navigator.userAgent)throw this.unavailable("Device API not available in this browser");let e=navigator.userAgent,t=this.parseUa(e);return{model:t.model,platform:"web",operatingSystem:t.operatingSystem,osVersion:t.osVersion,manufacturer:navigator.vendor,isVirtual:!1,webViewVersion:t.browserVersion}}async getBatteryInfo(){if("undefined"==typeof navigator||!navigator.getBattery)throw this.unavailable("Device API not available in this browser");let e={};try{e=await navigator.getBattery()}catch(e){}return{batteryLevel:e.level,isCharging:e.charging}}async getLanguageCode(){return{value:navigator.language.split("-")[0].toLowerCase()}}async getLanguageTag(){return{value:navigator.language}}parseUa(e){let t={},i=e.indexOf("(")+1,n=e.indexOf(") AppleWebKit");-1!==e.indexOf(") Gecko")&&(n=e.indexOf(") Gecko"));let r=e.substring(i,n);if(-1!==e.indexOf("Android")){let e=r.replace("; wv","").split("; ").pop();e&&(t.model=e.split(" Build")[0]),t.osVersion=r.split("; ")[1]}else if(t.model=r.split("; ")[0],"undefined"!=typeof navigator&&navigator.oscpu)t.osVersion=navigator.oscpu;else if(-1!==e.indexOf("Windows"))t.osVersion=r;else{let e=r.split("; ").pop();if(e){let i=e.replace(" like Mac OS X","").split(" ");t.osVersion=i[i.length-1].replace(/_/g,".")}}/android/i.test(e)?t.operatingSystem="android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?t.operatingSystem="ios":/Win/.test(e)?t.operatingSystem="windows":/Mac/i.test(e)?t.operatingSystem="mac":t.operatingSystem="unknown";let o=!!window.ApplePaySession,a=!!window.chrome,s=/Firefox/.test(e),l=/Edg/.test(e),d=/FxiOS/.test(e),g=/CriOS/.test(e),u=/EdgiOS/.test(e);if(o||a&&!l||d||g||u){let i;for(let n of(i=d?"FxiOS":g?"CriOS":u?"EdgiOS":o?"Version":"Chrome",e.split(" ")))n.includes(i)&&(t.browserVersion=n.split("/")[1])}else(s||l)&&(t.browserVersion=e.split("").reverse().join("").split("/")[0].split("").reverse().join(""));return t}getUid(){if("undefined"!=typeof window&&window.localStorage){let e=window.localStorage.getItem("_capuid");return e||(e=this.uuid4(),window.localStorage.setItem("_capuid",e)),e}return this.uuid4()}uuid4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}});