From 92fa3980aa8c04381dce5af7592c139d1a7f5c1c Mon Sep 17 00:00:00 2001
From: mumuy <>
Date: Mon, 11 Nov 2024 22:42:43 +0800
Subject: [PATCH] =?UTF-8?q?updated=20=E6=B7=BB=E5=8A=A0facebook?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 3 ++-
dist/browser.min.js | 2 +-
dist/browser.min.mjs | 2 +-
src/module/browser-parser.js | 3 ++-
src/module/browser/Facebook.js | 11 +++++++++++
5 files changed, 17 insertions(+), 4 deletions(-)
create mode 100644 src/module/browser/Facebook.js
diff --git a/README.md b/README.md
index e88b923..9632771 100644
--- a/README.md
+++ b/README.md
@@ -127,7 +127,7 @@ console.log('[浏览器指纹]',data.value);
OnePlus | 一加浏览器 |
Samsung | 三星浏览器 |
Lenovo | 联想浏览器 |
- 客户端 | QQ | QQ客户端 |
+ 客户端 | QQ | QQ客户端 |
Wechat | 微信手机客户端 |
WechatWork | 企业微信客户端 |
Taobao | 淘宝手机客户端 |
@@ -139,6 +139,7 @@ console.log('[浏览器指纹]',data.value);
DingTalk | 钉钉手机客户端 |
Douyin | 抖音客户端 |
Toutiao | 头条客户端 |
+ Facebook | Facebook客户端 |
爬虫 | Googlebot | 谷歌爬虫 |
Baiduspider | 百度爬虫 |
Sogouspider | 搜狗爬虫 |
diff --git a/dist/browser.min.js b/dist/browser.min.js
index 029c47e..7abb442 100644
--- a/dist/browser.min.js
+++ b/dist/browser.min.js
@@ -10,4 +10,4 @@
*
* Created on: 2024-11-11
*/
-!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).browser=n()}(this,(function(){"use strict";let e={};"undefined"!=typeof globalThis?e=globalThis:"undefined"!=typeof self?e=self:"undefined"!=typeof window?e=window:"undefined"!=typeof global&&(e=global);var n,i=e,r=null==i||null===(n=i.navigator)||void 0===n?void 0:n.userAgent,a={name:"Safari",parse(e=r){var n;return{is:e.includes("Safari"),version:(null===(n=e.match(/Version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},o={name:"Chrome",parse(e=r){var n,i;return{is:e.includes("Chrome")||e.includes("CriOS"),version:(null===(n=e.match(/Chrome\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/CriOS\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},t={name:"Edge",parse(e=r){var n,i,a,o;return{is:e.includes("Edge")||e.includes("Edg/")||e.includes("EdgA")||e.includes("EdgiOS"),version:(null===(n=e.match(/Edge\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Edg\/([\d.]+)/))||void 0===i?void 0:i[1])||(null===(a=e.match(/EdgA\/([\d.]+)/))||void 0===a?void 0:a[1])||(null===(o=e.match(/EdgiOS\/([\d.]+)/))||void 0===o?void 0:o[1])||""}}},s={name:"IE",parse(e=r){var n,i;return{is:e.includes("MSIE")||e.includes("Trident"),version:(null===(n=e.match(/MSIE ([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/rv:([\d.]+)/))||void 0===i?void 0:i[1])||""}}},l={name:"Firefox",parse(e=r){var n,i;return{is:e.includes("Firefox")||e.includes("FxiOS"),version:(null===(n=e.match(/Firefox\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/FxiOS\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},d={name:"Firefox Focus",parse(e=r){var n;return{is:e.includes("Focus"),version:(null===(n=e.match(/Focus\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},u={name:"Chromium",parse(e=r){var n;return{is:e.includes("Chromium"),version:(null===(n=e.match(/Chromium\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},c={name:"Opera",parse(e=r){var n,i;return{is:e.includes("Opera")||e.includes("OPR"),version:(null===(n=e.match(/Opera\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/OPR\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},v={name:"Opera GX",parse(e=r){let n=!1;return c.parse(e).is&&(n=e.includes("Edition GX")),{is:n,version:c.parse(e).version}}},m={name:"Vivaldi",parse(e=r){var n,i;return{is:e.includes("Vivaldi"),version:(null===(n=e.match(/Vivaldi\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Chrome\/([\d.]+)/))||void 0===i?void 0:i[1])||""}},async is(){let e=this.parse().is;return new Promise((function(n){e?n(!1):fetch("chrome-extension://jffbochibkahlbbmanpmndnhmeliecah/config.json").then((function(){n(!0)})).catch((function(){n(!1)}))}))}},p={name:"Yandex",parse(e=r){var n;return{is:e.includes("YaBrowser"),version:(null===(n=e.match(/YaBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},h={name:"Brave",parse(e=r){var n;return{is:e.includes("Brave"),version:(null===(n=e.match(/Chrome\/([\d.]+)/))||void 0===n?void 0:n[1])||""}},is:async function(){var e;return!!(this.parse().is||null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.brave)}},g={name:"Arora",parse(e=r){var n;return{is:e.includes("Arora"),version:(null===(n=e.match(/Arora\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},f={name:"Lunascape",parse(e=r){var n;return{is:e.includes("Lunascape"),version:(null===(n=e.match(/Lunascape[\/\s]([\d.]+)/))||void 0===n?void 0:n[1])||""}}},b={name:"QupZilla",parse(e=r){var n;return{is:e.includes("QupZilla"),version:(null===(n=e.match(/QupZilla[\/\s]([\d.]+)/))||void 0===n?void 0:n[1])||""}}},w={name:"Coc Coc",parse(e=r){var n;return{is:e.includes("coc_coc_browser"),version:(null===(n=e.match(/coc_coc_browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},S={name:"Kindle",parse(e=r){var n;return{is:e.includes("Kindle")||e.includes("Silk/"),version:(null===(n=e.match(/Version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},y={name:"Iceweasel",parse(e=r){var n;return{is:e.includes("Iceweasel"),version:(null===(n=e.match(/Iceweasel\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},B={name:"Konqueror",parse(e=r){var n;return{is:e.includes("Konqueror"),version:(null===(n=e.match(/Konqueror\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},A={name:"SeaMonkey",parse(e=r){var n;return{is:e.includes("SeaMonkey"),version:(null===(n=e.match(/SeaMonkey\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},C={name:"Epiphany",parse(e=r){var n;return{is:e.includes("Epiphany"),version:(null===(n=e.match(/Epiphany\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},E={name:"Huawei",parse(e=r){var n,i,a;return{is:e.includes("HuaweiBrowser")||e.includes("HBPC/"),version:(null===(n=e.match(/HuaweiBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/HBPC\/([\d.]+)/))||void 0===i?void 0:i[1])||(null===(a=e.match(/Version\/([\d.]+)/))||void 0===a?void 0:a[1])||""}}},T={name:"OPPO",parse(e=r){var n;return{is:e.includes("HeyTapBrowser")||e.includes("OPPO"),version:(null===(n=e.match(/HeyTapBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},x={name:"Vivo",parse(e=r){var n;return{is:e.includes("VivoBrowser"),version:(null===(n=e.match(/VivoBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},P={name:"Xiaomi",parse(e=r){var n;return{is:e.includes("MiuiBrowser"),version:(null===(n=e.match(/115Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},M={name:"Meizu",parse(e=r){var n;return{is:e.includes("MZBrowser"),version:(null===(n=e.match(/MZBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},I={name:"OnePlus",parse:(e=r)=>({is:e.includes("ONEPLUS"),version:""})},O={name:"Samsung",parse(e=r){var n;return{is:e.includes("SamsungBrowser"),version:(null===(n=e.match(/SamsungBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}};function D(e,n){var i;let r=null===globalThis||void 0===globalThis||null===(i=globalThis.navigator)||void 0===i?void 0:i.mimeTypes;for(let i in r)if(r[i][e]&&r[i][e]==n)return r[i];return null}var k={name:"360",parse(e=r){var n,i;return{is:e.includes("QihooBrowser")||e.includes("QHBrowser")||e.includes(" 360 "),version:(null===(n=e.match(/QihooBrowser(HD)?\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Browser \(v([\d.]+)/))||void 0===i?void 0:i[1])||""}},async is(){let e=this.parse().is;if(null!=i&&i.chrome){let n=parseInt(o.parse().version);D("type","application/360softmgrplugin")||D("type","application/mozilla-npqihooquicklogin")||D("type","application/npjlgplayer3-chrome-jlp")||n>36&&null!=i&&i.showModalDialog?e=!0:n>45&&(e=D("type","application/vnd.chromium.remoting-viewer"),!e&&n>=69&&(e=D("type","application/asx")))}return e}},R={name:"360SE",parse(e=r){let n=parseInt(o.parse(e).version);return{is:e.includes("360SE"),version:{122:"15.3",114:"15.0",108:"14.0",86:"13.0",78:"12.0",69:"11.0",63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[n]||""}},async is(){let e=!1;var n;await k.is()&&((D("type","application/gameplugin")||null!=i&&null!==(n=i.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.filter((e=>"Not.A/Brand"==e.brand)).length)&&(e=!0));return e||new Promise((function(e){fetch("chrome-extension://fjbbmgamncjadhlpmffehlmmkdnkiadk/css/content.css").then((function(){e(!0)})).catch((function(){e(!1)}))}))}},W={name:"360EE",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("360EE"),version:(null===(n=e.match(/Browser \(v([\d.]+)/))||void 0===n?void 0:n[1])||{122:"22.3",119:"22.0",108:"14.0",95:"21.0",86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[i]||""}},async is(){let e=this.parse().is;if(D("type","application/cenroll.cenroll.version.1")||D("type","application/hwepass2001.installepass2001"))e=!0;else if(await k.is()){var n;null!==globalThis&&void 0!==globalThis&&null!==(n=globalThis.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.find((e=>"Not A(Brand"==e.brand||"Not?A_Brand"==e.brand))&&(e=!0)}return e}},L={name:"360AI",parse(e=r){let n=parseInt(o.parse(e).version);return{is:e.includes("360SEAI"),version:{114:"1.0"}[n]||""}},async is(){let e=this.parse().is;var n;await k.is()&&(null!=i&&null!==(n=i.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.filter((e=>"Not.A/Brand"==e.brand)).length&&!D("type","application/gameplugin")&&(e=!0));return e}},H={name:"360AI",parse(e=r){var n;return{is:e.includes("360EEAI"),version:(null===(n=e.match(/360EE\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}};const V=()=>new Promise((e=>{var n;if(null==i||null===(n=i.webkit)||void 0===n||null===(n=n.messageHandlers)||void 0===n||!n.excuteCmd)return e({});{const n=`cv_${Date.now()%1e5}${100*Math.floor(Math.random())}`,r={key:"GetDeviceInfo",data:{},callback:n},a=JSON.stringify(r);i.webkit.messageHandlers.excuteCmd.postMessage(a),i[n]=function(r){delete i[n],e(JSON.parse(r||"{}"))}}}));var U={name:"360EE",parse:()=>({is:!1,version:""}),is:async()=>V().then((function(e){return"360csexm"==(null==e?void 0:e.pid)||!1})),version:async()=>V().then((function(e){return(null==e?void 0:e.module_version)||""}))},_={name:"360ENT",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("360ENT"),version:(null===(n=e.match(/Browser \(v([\d.]+)/))||void 0===n?void 0:n[1])||{86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[i]||""}}},F={name:"UC",parse(e=r){var n;return{is:e.includes("UCBrowser")||e.includes(" UBrowser")||e.includes("UCWEB"),version:(null===(n=e.match(/UC?Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},N={name:"QQBrowser",parse(e=r){var n;return{is:e.includes("QQBrowser"),version:(null===(n=e.match(/QQBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},Q={name:"QQ",parse(e=r){var n;return{is:e.includes("QQ/"),version:(null===(n=e.match(/QQ\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},G={name:"Baidu",parse(e=r){var n,i;return{is:e.includes("Baidu")||e.includes("BIDUBrowser")||e.includes("baidubrowser")||e.includes("baiduboxapp")||e.includes("BaiduD"),version:(null===(n=e.match(/BIDUBrowser[\s\/]([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/baiduboxapp\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},Y={name:"Maxthon",parse(e=r){var n,i;let a=parseInt(o.parse(e).version);return{is:e.includes("Maxthon"),version:(null===(n=e.match(/Maxthon\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Version\/([\d.]+)/))||void 0===i?void 0:i[1])||{109:"7.0",78:"6.0"}[a]||""}},is(){return this.parse().is||(null==i?void 0:i.maxthon)}},j={name:"Sogou",parse(e=r){var n,i,a=parseInt(o.parse(e).version);return{is:e.includes("MetaSr")||e.includes("Sogou"),version:(null===(n=e.match(/SogouMobileBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/SogouMSE\/([\d.]+)/))||void 0===i?void 0:i[1])||{94:"12.0",80:"11.0"}[a]||""}}},q={name:"Liebao",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("LBBROWSER")||e.includes("LieBaoFast"),version:(null===(n=e.match(/LieBaoFast\/([\d.]+)/))||void 0===n?void 0:n[1])||{112:"9.0",79:"8.0",57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[i]||""}},is(){return this.parse().is||(null==i?void 0:i.liebao)}},z={name:"2345Explorer",parse(e=r){var n,i;let a=parseInt(o.parse(e).version);return{is:e.includes("2345Explorer")||e.includes("Mb2345Browser")||e.includes("2345chrome"),version:(null===(n=e.match(/2345Explorer\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Mb2345Browser\/([\d.]+)/))||void 0===i?void 0:i[1])||{109:"13.0",69:"10.0",55:"9.9"}[a]||""}},async is(){let e=this.parse().is;var n,r;e||(e=(null==i?void 0:i.chrome)&&((null==i||null===(n=i.chrome)||void 0===n?void 0:n.adblock2345)||(null==i||null===(r=i.chrome)||void 0===r?void 0:r.common2345)));return e}},K={name:"115Browser",parse(e=r){var n;return{is:e.includes("115Browser"),version:(null===(n=e.match(/115Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},X={name:"TheWorld",parse(e=r){var n;return{is:e.includes("TheWorld"),version:(null===(n=e.match(/TheWorld ([\d.]+)/))||void 0===n?void 0:n[1])||""}}},$={name:"Quark",parse(e=r){var n,i;return{is:e.includes("Quark"),version:(null===(n=e.match(/Quark\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/QuarkPC\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},Z={name:"Qiyu",parse(e=r){var n;return{is:e.includes("Qiyu"),version:(null===(n=e.match(/Qiyu\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},J={name:"Lenovo",parse(e=r){var n;return{is:e.includes("SLBrowser"),version:(null===(n=e.match(/SLBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ee={name:"Wechat",parse(e=r){var n;return{is:e.includes("MicroMessenger"),version:(null===(n=e.match(/MicroMessenger\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ne={name:"WechatWork",parse(e=r){var n;return{is:e.includes("wxwork"),version:(null===(n=e.match(/wxwork\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ie={name:"Taobao",parse(e=r){var n;return{is:e.includes("AliApp(TB"),version:(null===(n=e.match(/AliApp\(TB\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},re={name:"Alipay",parse(e=r){var n;return{is:e.includes("AliApp(AP"),version:(null===(n=e.match(/AliApp\(AP\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ae={name:"Weibo",parse(e=r){var n;return{is:e.includes("Weibo"),version:(null===(n=e.match(/weibo__([\d.]+)/))||void 0===n?void 0:n[1])||""}}},oe={name:"Douban",parse(e=r){var n;return{is:e.includes("com.douban.frodo"),version:(null===(n=e.match(/com.douban.frodo\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},te={name:"Toutiao",parse(e=r){var n;return{is:e.includes("NewsArticle"),version:(null===(n=e.match(/NewsArticle\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},se={name:"WebKit",parse:(e=r)=>({is:e.includes("AppleWebKit")})},le={name:"Trident",parse:(e=r)=>({is:e.includes("Trident")||e.includes("NET CLR")})},de={name:"Gecko",parse:(e=r)=>({is:e.includes("Gecko/")})},ue={name:"Servo",parse:(e=r)=>({is:e.includes("Servo/")})},ce={name:"Presto",parse:(e=r)=>({is:e.includes("Presto")})},ve={name:"KHTML",parse:(e=r)=>({is:e.includes("KHTML/")})};let me=[a,o,t,s,l,d,u,c,v,m,p,h,g,f,b,w,S,y,B,A,C,E,T,x,P,M,I,O,k,W,R,U,L,H,_,F,N,Q,G,Y,j,q,z,K,X,$,Z,J,ee,ne,ie,re,ae,oe,{name:"Suning",parse(e=r){var n;return{is:e.includes("SNEBUY-APP"),version:(null===(n=e.match(/SNEBUY-APP([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"iQIYI",parse(e=r){var n;return{is:e.includes("IqiyiApp"),version:(null===(n=e.match(/IqiyiVersion\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"DingTalk",parse(e=r){var n;return{is:e.includes("DingTalk"),version:(null===(n=e.match(/DingTalk\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Douyin",parse(e=r){var n;return{is:e.includes("aweme"),version:(null===(n=e.match(/app_version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},te,{name:"Googlebot",parse(e=r){var n;return{is:e.includes("Googlebot"),version:(null===(n=e.match(/Googlebot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Baiduspider",parse(e=r){var n;return{is:e.includes("Baiduspider"),version:(null===(n=e.match(/Baiduspider(-render)?\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Sogouspider",parse(e=r){var n;return{is:e.match(/Sogou (\S+) Spider\/([\d.]+)/i),version:(null===(n=e.match(/Sogou (\S+) Spider\/([\d.]+)/i))||void 0===n?void 0:n[1])||""}}},{name:"Bingbot",parse(e=r){var n;return{is:e.includes("bingbot"),version:(null===(n=e.match(/bingbot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"360Spider",parse:(e=r)=>({is:e.includes("360Spider")||e.includes("HaosouSpider"),version:""})},{name:"Bytespider",parse:(e=r)=>({is:e.includes("Bytespider"),version:""})},{name:"YisouSpider",parse(e=r){var n;return{is:e.includes("YisouSpider"),version:(null===(n=e.match(/YisouSpider\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"YodaoBot",parse(e=r){var n;return{is:e.includes("YodaoBot"),version:(null===(n=e.match(/YodaoBot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"YandexBot",parse(e=r){var n;return{is:e.includes("YandexBot"),version:(null===(n=e.match(/YandexBot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Headless",parse(e=r){var n;return{is:e.includes("HeadlessChrome/"),version:(null===(n=e.match(/HeadlessChrome\/([\d.]+)/))||void 0===n?void 0:n[1])||""}},async is(){return this.parse().is??""==(null==i?void 0:i.navigator)}}];me.forEach((e=>{e.is||(e.is=async function(){return e.parse().is}),e.version||(e.version=async function(){return e.parse().version})}));let pe=[se,le,de,ue,ce,ve];pe.forEach((e=>{e.is||(e.is=async function(){return e.parse().is})}));var he={name:"browser",parse(e=r){let n="",i="";me.forEach((function(r){r.parse(e).is&&(n=r.name,i=r.parse(e).version)}));let a="";var s,l;(pe.forEach((function(n){n.parse(e).is&&(a=n.name)})),"Chrome"==n&&e.match(/\S+Browser/)&&(n=e.match(/\S+Browser/)[0]),"Chrome"==n&&e.match(/\S+Browser/))&&(i=(null===(s=e.replace(/^.*Browser\/([\d.]+).*$/))||void 0===s?void 0:s[1])||"");i||(i=(null===(l=e.match(/Version\/([\d.]+)/))||void 0===l?void 0:l[1])||"");t.parse(e).is?a=parseInt(t.parse(e).version)>75?"Blink":"EdgeHTML":o.parse(e).is&&parseInt(o.parse(e).version)>27&&(a="Blink");let d=e.includes("; wv)"),u=["Googlebot","Baiduspider","Sogouspider","Bingbot","360Spider","Bytespider","YandexBot"].includes(n);return{browser:n,browserVersion:i,engine:a,isWebview:d,isRobot:u}},async getInfo(){var e;let{browser:n,browserVersion:i,engine:a,isWebview:o,isRobot:t}=this.parse();for(let e of me)await e.is()&&(n=e.name,i=await e.version());let s=r;var l,d;("Chrome"==n&&s.match(/\S+Browser/)&&(n=s.match(/\S+Browser/)[0]),"Chrome"==n&&s.match(/\S+Browser/))&&(i=(null===(l=s.replace(/^.*Browser\/([\d.]+).*$/))||void 0===l?void 0:l[1])||"");i||(i=(null===(d=s.match(/Version\/([\d.]+)/))||void 0===d?void 0:d[1])||"");return{browser:n,browserVersion:i,engine:a,isWebview:o,isRobot:t,cookieEnabled:null===globalThis||void 0===globalThis||null===(e=globalThis.navigator)||void 0===e?void 0:e.cookieEnabled,userAgent:s}}},ge={name:"Windows",parse(e=r){var n;let i=(null===(n=e.match(/^Mozilla\/\d.0 \(Windows NT ([\d.]+)[;)].*$/))||void 0===n?void 0:n[1])||"";return{is:e.includes("Windows"),version:{"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"}[i]||i}},async version(){let e=this.parse().version;return new Promise((function(n){var r;null!=i&&null!==(r=i.navigator)&&void 0!==r&&r.userAgentData?i.navigator.userAgentData.getHighEntropyValues(["platformVersion"]).then((function(e){let r="";if("Windows"===i.navigator.userAgentData.platform){r=parseInt(e.platformVersion.split(".")[0])>=13?"11":"10"}n(r)})):n(e)}))}};let fe=[ge,{name:"Linux",parse:(e=r)=>({is:e.includes("Linux")||e.includes("X11"),version:""})},{name:"macOS",parse(e=r){var n;return{is:e.includes("Macintosh"),version:(null===(n=e.match(/Mac OS X -?([\d_]+)/))||void 0===n?void 0:n[1].replace(/_/g,"."))||""}}},{name:"Android",parse(e=r){var n;return{is:e.includes("Android")||e.includes("Adr"),version:(null===(n=e.match(/Android ([\d.]+);/))||void 0===n?void 0:n[1])||""}}},{name:"HarmonyOS",parse(e=r){var n,i;let a=(null===(n=e.match(/HarmonyOS (\d+.\d+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/OpenHarmony(\d+.\d+)/))||void 0===i?void 0:i[1])||"";if(!a){var o,t;let n=+(null===(o=e.match(/HMSCore (\d+.\d+)/))||void 0===o?void 0:o[1])||0;n>=6.1?a="4.0":n>=6?a="3.0":n>=5?a="2.0":n>=4&&(a="1.0"),a={10:"3.0",12:"4.0"}[(null===(t=e.match(/Android (\d+);/))||void 0===t?void 0:t[1])||0]??a}return{is:e.includes("HarmonyOS")||e.includes("OpenHarmony")||e.includes("ArkWeb"),version:a}}},{name:"Ubuntu",parse:(e=r)=>({is:e.includes("Ubuntu"),version:""})},{name:"FreeBSD",parse:(e=r)=>({is:e.includes("FreeBSD"),version:""})},{name:"Debian",parse(e=r){var n;return{is:e.includes("Debian"),version:(null===(n=e.match(/Debian\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"iOS",parse(e=r){var n;return{is:e.includes("like Mac OS X"),version:(null===(n=e.match(/OS ([\d_]+) like/))||void 0===n?void 0:n[1].replace(/_/g,"."))||""}}},{name:"Windows Phone",parse(e=r){var n;return{is:e.includes("IEMobile")||e.includes("Windows Phone"),version:(null===(n=e.match(/Windows Phone( OS)? ([\d.]+);/))||void 0===n?void 0:n[2])||""}}},{name:"BlackBerry",parse:(e=r)=>({is:e.includes("BlackBerry")||e.includes("RIM"),version:""})},{name:"MeeGo",parse:(e=r)=>({is:e.includes("MeeGo"),version:""})},{name:"Symbian",parse(e=r){var n;return{is:e.includes("Symbian"),version:(null===(n=e.match(/Series60\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Chrome OS",parse(e=r){var n,i;return{is:e.includes("CrOS"),version:(null===(n=e.match(/MSIE ([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/rv:([\d.]+)/))||void 0===i?void 0:i[1])||""}}},{name:"WebOS",parse(e=r){var n;return{is:e.includes("hpwOS"),version:(null===(n=e.match(/hpwOS\/([\d.]+);/))||void 0===n?void 0:n[1])||""}}},{name:"UOS",parse(e=r){var n;return{is:e.includes("UOS"),version:(null===(n=e.match(/UOS\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}}];fe.forEach((e=>{e.is||(e.is=async function(){return e.parse().is}),e.version||(e.version=async function(){return e.parse().version})}));var be={name:"system",parse(e=r){let n="",i="";fe.forEach((function(r){r.parse(e).is&&(n=r.name,i=r.parse(e).version)}));let a="";e.match(/(Win64|x64|WOW64|x86_64)/i)?a="Win64":e.match(/(Win32|x86|WOW32)/i)?a="Win32":e.match(/aarch64|arm64/)?a="ARM64":e.match(/arm32/)?a="ARM32":e.match(/iPhone/)?a="iPhone":e.match(/iPad/)?a="iPad":e.match(/iPod/)?a="iPod":e.match(/Android/)&&(a="Android");let o="",t=e+"|"+a;o=t.match(/armv?\d+/i)||t.match(/aarch64/)?"arm":t.match(/loongarch64/)?"loongarch":"x86";let s=e.match(/Win64|x64|WOW64|x86_64|aarch64|arm64|loongarch64/i)?64:32;return{system:n,systemVersion:i,platform:a,architecture:o,bitness:s}},async getInfo(){var e,n;let{system:r,systemVersion:a,platform:o,architecture:t,bitness:s}=this.parse();for(let e of fe)await e.is()&&(r=e.name,a=await e.version());var l,d;(null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.platform&&(o=i.navigator.platform),null!=i&&null!==(n=i.navigator)&&void 0!==n&&n.userAgentData)&&(t=await(null===(l=i.navigator.userAgentData)||void 0===l?void 0:l.getHighEntropyValues(["architecture"]).then((e=>e.architecture||t))),s=await(null===(d=i.navigator.userAgentData)||void 0===d?void 0:d.getHighEntropyValues(["bitness"]).then((e=>+e.bitness||s))));return{system:r,systemVersion:a,platform:o,architecture:t,bitness:s}}};let we=[{name:"Mobile",parse:(e=r)=>({is:e.includes("Mobi")||e.includes("iPh")||e.includes("480")})},{name:"Tablet",parse:(e=r)=>({is:e.includes("Tablet")||e.includes("Pad")||e.includes("Nexus 7")}),async is(){return this.parse().is||"MacIntel"===(null==i?void 0:i.navigator.platform)&&(null==i?void 0:i.navigator.maxTouchPoints)>1}}];we.forEach((e=>{e.is||(e.is=async function(){return e.parse().is})}));var Se={name:"device",parse(e=r){let n="Desktop";return we.forEach((function(i){i.parse(e).is&&(n=i.name)})),{device:n}},async getInfo(){var e;let n=(null===globalThis||void 0===globalThis?void 0:globalThis.devicePixelRatio)||1,i=(null===globalThis||void 0===globalThis||null===(e=globalThis.navigator)||void 0===e?void 0:e.deviceMemory)||4;return Object.assign({devicePixelRatio:n,deviceMemory:i},this.parse())}},ye={name:"gpu",parse:()=>({}),async getInfo(){let e="",n="";if(null!=i&&i.document){let o=i.document.createElement("canvas").getContext("experimental-webgl");if(o){var r,a;let i=o.getExtension("WEBGL_debug_renderer_info"),t=o.getParameter(i.UNMASKED_RENDERER_WEBGL);e=(null===(r=t.match(/ANGLE \((.+?),/))||void 0===r?void 0:r[1])||"",n=(null===(a=t.match(/, (.+?) (\(|vs_)/))||void 0===a?void 0:a[1])||""}}return{gpu:e,gpuModel:n}}};const Be=/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/,Ae=/\b(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}\b/i;let Ce=globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection;var Ee={name:"network",parse:()=>({}),async getInfo(){var e,n;let r="unknown",a=null==i||null===(e=i.navigator)||void 0===e?void 0:e.connection;return a&&(r=a.type||a.effectiveType,"2"!=r&&"unknown"!=r||(r="wifi")),{network:r,isOnline:(null==i||null===(n=i.navigator)||void 0===n?void 0:n.onLine)||!1,ip:await async function(){const e=new Set,n=n=>{var i;const r=null==n||null===(i=n.candidate)||void 0===i?void 0:i.candidate;if(r)for(const n of[Be,Ae]){const i=r.match(n);i&&e.add(i[0])}};return new Promise((function(i,r){const a=new Ce({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun.services.mozilla.com"}]});a.addEventListener("icecandidate",n),a.createDataChannel(""),a.createOffer().then((e=>a.setLocalDescription(e)),r);let o=20,t=null,s=function(){try{a.removeEventListener("icecandidate",n),a.close()}catch{}t&&clearInterval(t)};t=setInterval((function(){let n=[...e];n.length?(s(),i(n[0])):o?o--:(s(),i(""))}),100)}))}()}}},Te={name:"battery",parse:()=>({}),async getInfo(){var e;let n=!0,r=1;return null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.getBattery&&(n=await i.navigator.getBattery().then((e=>null==e?void 0:e.charging)),r=await i.navigator.getBattery().then((e=>+(null==e?void 0:e.level)||-1))),{isCharging:n,battery:r}}};var xe={name:"screen",parse:()=>({}),async getInfo(){var e,n,r,a,o,t,s;return{screenWidth:(null==i||null===(e=i.screen)||void 0===e?void 0:e.width)||0,screenHeight:(null==i||null===(n=i.screen)||void 0===n?void 0:n.height)||0,clientWidth:(null==i||null===(r=i.document)||void 0===r||null===(r=r.documentElement)||void 0===r?void 0:r.clientWidth)||(null==i||null===(a=i.document)||void 0===a||null===(a=a.body)||void 0===a?void 0:a.clientWidth)||0,clientHeight:(null==i||null===(o=i.document)||void 0===o||null===(o=o.documentElement)||void 0===o?void 0:o.clientHeight)||(null==i||null===(t=i.document)||void 0===t||null===(t=t.body)||void 0===t?void 0:t.clientHeight)||0,screenFPS:await async function(){return new Promise((function(e){let n=0,i=1,r=[],a=function(o){if(n>0)if(i<12)r.push(o-n),n=o,i++,requestAnimationFrame(a);else{r.sort(),r=r.slice(1,11);let n=r.reduce(((e,n)=>e+n));const i=10*Math.round(1e4/n/10);e(i)}else n=o,requestAnimationFrame(a)};requestAnimationFrame(a)}))}(),screenColorDepth:null==i?void 0:i.screen.colorDepth,screenPixelDepth:null==i?void 0:i.screen.pixelDepth,isTouch:(null==i||null===(s=i.navigator)||void 0===s?void 0:s.maxTouchPoints)>0||!1}}},Pe={name:"language",parse:()=>({}),async getInfo(){var e,n,r;let a=(null==i||null===(e=i.navigator)||void 0===e?void 0:e.language)||(null==i||null===(n=i.navigator)||void 0===n?void 0:n.browserLanguage)||(null==i||null===(r=i.navigator)||void 0===r?void 0:r.systemLanguage);if("string"!=typeof a)return"Unknown language";let o=a.split("-");return o[1]&&(o[1]=o[1].toUpperCase()),{language:o.join("_")}}},Me={name:"timezone",parse:()=>({}),async getInfo(){var e;return{timezone:null===(e=Intl)||void 0===e||null===(e=e.DateTimeFormat())||void 0===e||null===(e=e.resolvedOptions())||void 0===e?void 0:e.timeZone}}};let Ie=function(e,n){return e<>>32-n},Oe=function(e,n){let i,r,a,o,t;return a=2147483648&e,o=2147483648&n,i=1073741824&e,r=1073741824&n,t=(1073741823&e)+(1073741823&n),i&r?2147483648^t^a^o:i|r?1073741824&t?3221225472^t^a^o:1073741824^t^a^o:t^a^o},De=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e&n|~e&i}(n,i,r),a),t)),Oe(Ie(e,o),n)},ke=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e&i|n&~i}(n,i,r),a),t)),Oe(Ie(e,o),n)},Re=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e^n^i}(n,i,r),a),t)),Oe(Ie(e,o),n)},We=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return n^(e|~i)}(n,i,r),a),t)),Oe(Ie(e,o),n)},Le=function(e){let n,i,r="",a="";for(i=0;i<=3;i++)n=e>>>8*i&255,a="0"+n.toString(16),r+=a.substr(a.length-2,2);return r};function He(e){let n,i,r,a,o,t,s,l,d,u=Array();for(e=function(e){e=e.replace(/\x0d\x0a/g,"\n");let n="";for(let i=0;i127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}(e),u=function(e){let n,i=e.length,r=i+8,a=16*((r-r%64)/64+1),o=Array(a-1),t=0,s=0;for(;s>>29,o}(e),t=1732584193,s=4023233417,l=2562383102,d=271733878,n=0;nnew Promise((function(e,n){let i=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,44100,44100),r=i.createOscillator();r.type="triangle",r.frequency.setValueAtTime(1e4,i.currentTime);let a=i.createDynamicsCompressor();[["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]].forEach((function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]].setValueAtTime&&a[e[0]].setValueAtTime(e[1],i.currentTime)})),r.connect(a),a.connect(i.destination),r.start(0),i.startRendering();let o=setTimeout((function(){i.oncomplete=function(){},i=null,e(He("audio Timeout"))}),1e3);i.oncomplete=function(n){o&&clearTimeout(o);let i=n.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,n){return e+Math.abs(n)}),0).toString();r.disconnect(),a.disconnect(),e(He(i))}}))},Qe={name:"webgl",is(){if(null==i||!i.document)return!1;const e=i.document.createElement("canvas"),n=e.getContext("webgl")||e.getContext("experimental-webgl");return n&&n instanceof WebGLRenderingContext}};return{parse(e){let n={};return[he,be,Se].forEach((i=>{n=Object.assign(n,i.parse(e))})),n},async getInfo(e=["browser","system","device","gpu","network","battery","screen","language","timezone"]){let n={},i=[he,be,Se,ye,Ee,Te,xe,Pe,Me].filter((n=>e.includes(n.name)));for(let e of i)n=Object.assign(n,await e.getInfo());return n},async getFingerprint(e=["webgl","canvas","font","audio"]){let n={},i=[Ve,Ue,Fe,Ne].filter((n=>e.includes(n.name))),a=[r];for(let e of i)n[e.name]=await e.getInfo(),a.push(n[e.name]);return n.value=He(a.join(",")),n},isSupport(e,n){let i=[_e,Qe].find((n=>e==n.name));return!!i&&i.is(n)}}}));
+!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).browser=n()}(this,(function(){"use strict";let e={};"undefined"!=typeof globalThis?e=globalThis:"undefined"!=typeof self?e=self:"undefined"!=typeof window?e=window:"undefined"!=typeof global&&(e=global);var n,i=e,r=null==i||null===(n=i.navigator)||void 0===n?void 0:n.userAgent,a={name:"Safari",parse(e=r){var n;return{is:e.includes("Safari"),version:(null===(n=e.match(/Version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},o={name:"Chrome",parse(e=r){var n,i;return{is:e.includes("Chrome")||e.includes("CriOS"),version:(null===(n=e.match(/Chrome\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/CriOS\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},t={name:"Edge",parse(e=r){var n,i,a,o;return{is:e.includes("Edge")||e.includes("Edg/")||e.includes("EdgA")||e.includes("EdgiOS"),version:(null===(n=e.match(/Edge\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Edg\/([\d.]+)/))||void 0===i?void 0:i[1])||(null===(a=e.match(/EdgA\/([\d.]+)/))||void 0===a?void 0:a[1])||(null===(o=e.match(/EdgiOS\/([\d.]+)/))||void 0===o?void 0:o[1])||""}}},s={name:"IE",parse(e=r){var n,i;return{is:e.includes("MSIE")||e.includes("Trident"),version:(null===(n=e.match(/MSIE ([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/rv:([\d.]+)/))||void 0===i?void 0:i[1])||""}}},l={name:"Firefox",parse(e=r){var n,i;return{is:e.includes("Firefox")||e.includes("FxiOS"),version:(null===(n=e.match(/Firefox\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/FxiOS\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},d={name:"Firefox Focus",parse(e=r){var n;return{is:e.includes("Focus"),version:(null===(n=e.match(/Focus\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},u={name:"Chromium",parse(e=r){var n;return{is:e.includes("Chromium"),version:(null===(n=e.match(/Chromium\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},c={name:"Opera",parse(e=r){var n,i;return{is:e.includes("Opera")||e.includes("OPR"),version:(null===(n=e.match(/Opera\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/OPR\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},v={name:"Opera GX",parse(e=r){let n=!1;return c.parse(e).is&&(n=e.includes("Edition GX")),{is:n,version:c.parse(e).version}}},m={name:"Vivaldi",parse(e=r){var n,i;return{is:e.includes("Vivaldi"),version:(null===(n=e.match(/Vivaldi\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Chrome\/([\d.]+)/))||void 0===i?void 0:i[1])||""}},async is(){let e=this.parse().is;return new Promise((function(n){e?n(!1):fetch("chrome-extension://jffbochibkahlbbmanpmndnhmeliecah/config.json").then((function(){n(!0)})).catch((function(){n(!1)}))}))}},p={name:"Yandex",parse(e=r){var n;return{is:e.includes("YaBrowser"),version:(null===(n=e.match(/YaBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},h={name:"Brave",parse(e=r){var n;return{is:e.includes("Brave"),version:(null===(n=e.match(/Chrome\/([\d.]+)/))||void 0===n?void 0:n[1])||""}},is:async function(){var e;return!!(this.parse().is||null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.brave)}},g={name:"Arora",parse(e=r){var n;return{is:e.includes("Arora"),version:(null===(n=e.match(/Arora\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},f={name:"Lunascape",parse(e=r){var n;return{is:e.includes("Lunascape"),version:(null===(n=e.match(/Lunascape[\/\s]([\d.]+)/))||void 0===n?void 0:n[1])||""}}},b={name:"QupZilla",parse(e=r){var n;return{is:e.includes("QupZilla"),version:(null===(n=e.match(/QupZilla[\/\s]([\d.]+)/))||void 0===n?void 0:n[1])||""}}},w={name:"Coc Coc",parse(e=r){var n;return{is:e.includes("coc_coc_browser"),version:(null===(n=e.match(/coc_coc_browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},S={name:"Kindle",parse(e=r){var n;return{is:e.includes("Kindle")||e.includes("Silk/"),version:(null===(n=e.match(/Version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},y={name:"Iceweasel",parse(e=r){var n;return{is:e.includes("Iceweasel"),version:(null===(n=e.match(/Iceweasel\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},B={name:"Konqueror",parse(e=r){var n;return{is:e.includes("Konqueror"),version:(null===(n=e.match(/Konqueror\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},A={name:"SeaMonkey",parse(e=r){var n;return{is:e.includes("SeaMonkey"),version:(null===(n=e.match(/SeaMonkey\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},C={name:"Epiphany",parse(e=r){var n;return{is:e.includes("Epiphany"),version:(null===(n=e.match(/Epiphany\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},E={name:"Huawei",parse(e=r){var n,i,a;return{is:e.includes("HuaweiBrowser")||e.includes("HBPC/"),version:(null===(n=e.match(/HuaweiBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/HBPC\/([\d.]+)/))||void 0===i?void 0:i[1])||(null===(a=e.match(/Version\/([\d.]+)/))||void 0===a?void 0:a[1])||""}}},T={name:"OPPO",parse(e=r){var n;return{is:e.includes("HeyTapBrowser")||e.includes("OPPO"),version:(null===(n=e.match(/HeyTapBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},x={name:"Vivo",parse(e=r){var n;return{is:e.includes("VivoBrowser"),version:(null===(n=e.match(/VivoBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},P={name:"Xiaomi",parse(e=r){var n;return{is:e.includes("MiuiBrowser"),version:(null===(n=e.match(/115Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},M={name:"Meizu",parse(e=r){var n;return{is:e.includes("MZBrowser"),version:(null===(n=e.match(/MZBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},I={name:"OnePlus",parse:(e=r)=>({is:e.includes("ONEPLUS"),version:""})},O={name:"Samsung",parse(e=r){var n;return{is:e.includes("SamsungBrowser"),version:(null===(n=e.match(/SamsungBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}};function k(e,n){var i;let r=null===globalThis||void 0===globalThis||null===(i=globalThis.navigator)||void 0===i?void 0:i.mimeTypes;for(let i in r)if(r[i][e]&&r[i][e]==n)return r[i];return null}var D={name:"360",parse(e=r){var n,i;return{is:e.includes("QihooBrowser")||e.includes("QHBrowser")||e.includes(" 360 "),version:(null===(n=e.match(/QihooBrowser(HD)?\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Browser \(v([\d.]+)/))||void 0===i?void 0:i[1])||""}},async is(){let e=this.parse().is;if(null!=i&&i.chrome){let n=parseInt(o.parse().version);k("type","application/360softmgrplugin")||k("type","application/mozilla-npqihooquicklogin")||k("type","application/npjlgplayer3-chrome-jlp")||n>36&&null!=i&&i.showModalDialog?e=!0:n>45&&(e=k("type","application/vnd.chromium.remoting-viewer"),!e&&n>=69&&(e=k("type","application/asx")))}return e}},R={name:"360SE",parse(e=r){let n=parseInt(o.parse(e).version);return{is:e.includes("360SE"),version:{122:"15.3",114:"15.0",108:"14.0",86:"13.0",78:"12.0",69:"11.0",63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[n]||""}},async is(){let e=!1;var n;await D.is()&&((k("type","application/gameplugin")||null!=i&&null!==(n=i.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.filter((e=>"Not.A/Brand"==e.brand)).length)&&(e=!0));return e||new Promise((function(e){fetch("chrome-extension://fjbbmgamncjadhlpmffehlmmkdnkiadk/css/content.css").then((function(){e(!0)})).catch((function(){e(!1)}))}))}},W={name:"360EE",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("360EE"),version:(null===(n=e.match(/Browser \(v([\d.]+)/))||void 0===n?void 0:n[1])||{122:"22.3",119:"22.0",108:"14.0",95:"21.0",86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[i]||""}},async is(){let e=this.parse().is;if(k("type","application/cenroll.cenroll.version.1")||k("type","application/hwepass2001.installepass2001"))e=!0;else if(await D.is()){var n;null!==globalThis&&void 0!==globalThis&&null!==(n=globalThis.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.find((e=>"Not A(Brand"==e.brand||"Not?A_Brand"==e.brand))&&(e=!0)}return e}},L={name:"360AI",parse(e=r){let n=parseInt(o.parse(e).version);return{is:e.includes("360SEAI"),version:{114:"1.0"}[n]||""}},async is(){let e=this.parse().is;var n;await D.is()&&(null!=i&&null!==(n=i.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.filter((e=>"Not.A/Brand"==e.brand)).length&&!k("type","application/gameplugin")&&(e=!0));return e}},V={name:"360AI",parse(e=r){var n;return{is:e.includes("360EEAI"),version:(null===(n=e.match(/360EE\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}};const H=()=>new Promise((e=>{var n;if(null==i||null===(n=i.webkit)||void 0===n||null===(n=n.messageHandlers)||void 0===n||!n.excuteCmd)return e({});{const n=`cv_${Date.now()%1e5}${100*Math.floor(Math.random())}`,r={key:"GetDeviceInfo",data:{},callback:n},a=JSON.stringify(r);i.webkit.messageHandlers.excuteCmd.postMessage(a),i[n]=function(r){delete i[n],e(JSON.parse(r||"{}"))}}}));var F={name:"360EE",parse:()=>({is:!1,version:""}),is:async()=>H().then((function(e){return"360csexm"==(null==e?void 0:e.pid)||!1})),version:async()=>H().then((function(e){return(null==e?void 0:e.module_version)||""}))},U={name:"360ENT",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("360ENT"),version:(null===(n=e.match(/Browser \(v([\d.]+)/))||void 0===n?void 0:n[1])||{86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[i]||""}}},_={name:"UC",parse(e=r){var n;return{is:e.includes("UCBrowser")||e.includes(" UBrowser")||e.includes("UCWEB"),version:(null===(n=e.match(/UC?Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},N={name:"QQBrowser",parse(e=r){var n;return{is:e.includes("QQBrowser"),version:(null===(n=e.match(/QQBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},Q={name:"QQ",parse(e=r){var n;return{is:e.includes("QQ/"),version:(null===(n=e.match(/QQ\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},G={name:"Baidu",parse(e=r){var n,i;return{is:e.includes("Baidu")||e.includes("BIDUBrowser")||e.includes("baidubrowser")||e.includes("baiduboxapp")||e.includes("BaiduD"),version:(null===(n=e.match(/BIDUBrowser[\s\/]([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/baiduboxapp\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},Y={name:"Maxthon",parse(e=r){var n,i;let a=parseInt(o.parse(e).version);return{is:e.includes("Maxthon"),version:(null===(n=e.match(/Maxthon\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Version\/([\d.]+)/))||void 0===i?void 0:i[1])||{109:"7.0",78:"6.0"}[a]||""}},is(){return this.parse().is||(null==i?void 0:i.maxthon)}},j={name:"Sogou",parse(e=r){var n,i,a=parseInt(o.parse(e).version);return{is:e.includes("MetaSr")||e.includes("Sogou"),version:(null===(n=e.match(/SogouMobileBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/SogouMSE\/([\d.]+)/))||void 0===i?void 0:i[1])||{94:"12.0",80:"11.0"}[a]||""}}},q={name:"Liebao",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("LBBROWSER")||e.includes("LieBaoFast"),version:(null===(n=e.match(/LieBaoFast\/([\d.]+)/))||void 0===n?void 0:n[1])||{112:"9.0",79:"8.0",57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[i]||""}},is(){return this.parse().is||(null==i?void 0:i.liebao)}},z={name:"2345Explorer",parse(e=r){var n,i;let a=parseInt(o.parse(e).version);return{is:e.includes("2345Explorer")||e.includes("Mb2345Browser")||e.includes("2345chrome"),version:(null===(n=e.match(/2345Explorer\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Mb2345Browser\/([\d.]+)/))||void 0===i?void 0:i[1])||{109:"13.0",69:"10.0",55:"9.9"}[a]||""}},async is(){let e=this.parse().is;var n,r;e||(e=(null==i?void 0:i.chrome)&&((null==i||null===(n=i.chrome)||void 0===n?void 0:n.adblock2345)||(null==i||null===(r=i.chrome)||void 0===r?void 0:r.common2345)));return e}},K={name:"115Browser",parse(e=r){var n;return{is:e.includes("115Browser"),version:(null===(n=e.match(/115Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},X={name:"TheWorld",parse(e=r){var n;return{is:e.includes("TheWorld"),version:(null===(n=e.match(/TheWorld ([\d.]+)/))||void 0===n?void 0:n[1])||""}}},$={name:"Quark",parse(e=r){var n,i;return{is:e.includes("Quark"),version:(null===(n=e.match(/Quark\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/QuarkPC\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},Z={name:"Qiyu",parse(e=r){var n;return{is:e.includes("Qiyu"),version:(null===(n=e.match(/Qiyu\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},J={name:"Lenovo",parse(e=r){var n;return{is:e.includes("SLBrowser"),version:(null===(n=e.match(/SLBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ee={name:"Wechat",parse(e=r){var n;return{is:e.includes("MicroMessenger"),version:(null===(n=e.match(/MicroMessenger\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ne={name:"WechatWork",parse(e=r){var n;return{is:e.includes("wxwork"),version:(null===(n=e.match(/wxwork\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ie={name:"Taobao",parse(e=r){var n;return{is:e.includes("AliApp(TB"),version:(null===(n=e.match(/AliApp\(TB\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},re={name:"Alipay",parse(e=r){var n;return{is:e.includes("AliApp(AP"),version:(null===(n=e.match(/AliApp\(AP\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ae={name:"Weibo",parse(e=r){var n;return{is:e.includes("Weibo"),version:(null===(n=e.match(/weibo__([\d.]+)/))||void 0===n?void 0:n[1])||""}}},oe={name:"Douban",parse(e=r){var n;return{is:e.includes("com.douban.frodo"),version:(null===(n=e.match(/com.douban.frodo\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},te={name:"Toutiao",parse(e=r){var n;return{is:e.includes("NewsArticle"),version:(null===(n=e.match(/NewsArticle\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},se={name:"WebKit",parse:(e=r)=>({is:e.includes("AppleWebKit")})},le={name:"Trident",parse:(e=r)=>({is:e.includes("Trident")||e.includes("NET CLR")})},de={name:"Gecko",parse:(e=r)=>({is:e.includes("Gecko/")})},ue={name:"Servo",parse:(e=r)=>({is:e.includes("Servo/")})},ce={name:"Presto",parse:(e=r)=>({is:e.includes("Presto")})},ve={name:"KHTML",parse:(e=r)=>({is:e.includes("KHTML/")})};let me=[a,o,t,s,l,d,u,c,v,m,p,h,g,f,b,w,S,y,B,A,C,E,T,x,P,M,I,O,D,W,R,F,L,V,U,_,N,Q,G,Y,j,q,z,K,X,$,Z,J,ee,ne,ie,re,ae,oe,{name:"Suning",parse(e=r){var n;return{is:e.includes("SNEBUY-APP"),version:(null===(n=e.match(/SNEBUY-APP([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"iQIYI",parse(e=r){var n;return{is:e.includes("IqiyiApp"),version:(null===(n=e.match(/IqiyiVersion\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"DingTalk",parse(e=r){var n;return{is:e.includes("DingTalk"),version:(null===(n=e.match(/DingTalk\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Douyin",parse(e=r){var n;return{is:e.includes("aweme"),version:(null===(n=e.match(/app_version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},te,{name:"Facebook",parse(e=r){var n;return{is:e.includes("Facebook")||e.includes("FBAV/"),version:(null===(n=e.match(/FBAV\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Googlebot",parse(e=r){var n;return{is:e.includes("Googlebot"),version:(null===(n=e.match(/Googlebot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Baiduspider",parse(e=r){var n;return{is:e.includes("Baiduspider"),version:(null===(n=e.match(/Baiduspider(-render)?\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Sogouspider",parse(e=r){var n;return{is:e.match(/Sogou (\S+) Spider\/([\d.]+)/i),version:(null===(n=e.match(/Sogou (\S+) Spider\/([\d.]+)/i))||void 0===n?void 0:n[1])||""}}},{name:"Bingbot",parse(e=r){var n;return{is:e.includes("bingbot"),version:(null===(n=e.match(/bingbot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"360Spider",parse:(e=r)=>({is:e.includes("360Spider")||e.includes("HaosouSpider"),version:""})},{name:"Bytespider",parse:(e=r)=>({is:e.includes("Bytespider"),version:""})},{name:"YisouSpider",parse(e=r){var n;return{is:e.includes("YisouSpider"),version:(null===(n=e.match(/YisouSpider\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"YodaoBot",parse(e=r){var n;return{is:e.includes("YodaoBot"),version:(null===(n=e.match(/YodaoBot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"YandexBot",parse(e=r){var n;return{is:e.includes("YandexBot"),version:(null===(n=e.match(/YandexBot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Headless",parse(e=r){var n;return{is:e.includes("HeadlessChrome/"),version:(null===(n=e.match(/HeadlessChrome\/([\d.]+)/))||void 0===n?void 0:n[1])||""}},async is(){return this.parse().is??""==(null==i?void 0:i.navigator)}}];me.forEach((e=>{e.is||(e.is=async function(){return e.parse().is}),e.version||(e.version=async function(){return e.parse().version})}));let pe=[se,le,de,ue,ce,ve];pe.forEach((e=>{e.is||(e.is=async function(){return e.parse().is})}));var he={name:"browser",parse(e=r){let n="",i="";me.forEach((function(r){r.parse(e).is&&(n=r.name,i=r.parse(e).version)}));let a="";var s,l;(pe.forEach((function(n){n.parse(e).is&&(a=n.name)})),"Chrome"==n&&e.match(/\S+Browser/)&&(n=e.match(/\S+Browser/)[0]),"Chrome"==n&&e.match(/\S+Browser/))&&(i=(null===(s=e.replace(/^.*Browser\/([\d.]+).*$/))||void 0===s?void 0:s[1])||"");i||(i=(null===(l=e.match(/Version\/([\d.]+)/))||void 0===l?void 0:l[1])||"");t.parse(e).is?a=parseInt(t.parse(e).version)>75?"Blink":"EdgeHTML":o.parse(e).is&&parseInt(o.parse(e).version)>27&&(a="Blink");let d=e.includes("; wv)"),u=["Googlebot","Baiduspider","Sogouspider","Bingbot","360Spider","Bytespider","YandexBot"].includes(n);return{browser:n,browserVersion:i,engine:a,isWebview:d,isRobot:u}},async getInfo(){var e;let{browser:n,browserVersion:i,engine:a,isWebview:o,isRobot:t}=this.parse();for(let e of me)await e.is()&&(n=e.name,i=await e.version());let s=r;var l,d;("Chrome"==n&&s.match(/\S+Browser/)&&(n=s.match(/\S+Browser/)[0]),"Chrome"==n&&s.match(/\S+Browser/))&&(i=(null===(l=s.replace(/^.*Browser\/([\d.]+).*$/))||void 0===l?void 0:l[1])||"");i||(i=(null===(d=s.match(/Version\/([\d.]+)/))||void 0===d?void 0:d[1])||"");return{browser:n,browserVersion:i,engine:a,isWebview:o,isRobot:t,cookieEnabled:null===globalThis||void 0===globalThis||null===(e=globalThis.navigator)||void 0===e?void 0:e.cookieEnabled,userAgent:s}}},ge={name:"Windows",parse(e=r){var n;let i=(null===(n=e.match(/^Mozilla\/\d.0 \(Windows NT ([\d.]+)[;)].*$/))||void 0===n?void 0:n[1])||"";return{is:e.includes("Windows"),version:{"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"}[i]||i}},async version(){let e=this.parse().version;return new Promise((function(n){var r;null!=i&&null!==(r=i.navigator)&&void 0!==r&&r.userAgentData?i.navigator.userAgentData.getHighEntropyValues(["platformVersion"]).then((function(e){let r="";if("Windows"===i.navigator.userAgentData.platform){r=parseInt(e.platformVersion.split(".")[0])>=13?"11":"10"}n(r)})):n(e)}))}};let fe=[ge,{name:"Linux",parse:(e=r)=>({is:e.includes("Linux")||e.includes("X11"),version:""})},{name:"macOS",parse(e=r){var n;return{is:e.includes("Macintosh"),version:(null===(n=e.match(/Mac OS X -?([\d_]+)/))||void 0===n?void 0:n[1].replace(/_/g,"."))||""}}},{name:"Android",parse(e=r){var n;return{is:e.includes("Android")||e.includes("Adr"),version:(null===(n=e.match(/Android ([\d.]+);/))||void 0===n?void 0:n[1])||""}}},{name:"HarmonyOS",parse(e=r){var n,i;let a=(null===(n=e.match(/HarmonyOS (\d+.\d+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/OpenHarmony(\d+.\d+)/))||void 0===i?void 0:i[1])||"";if(!a){var o,t;let n=+(null===(o=e.match(/HMSCore (\d+.\d+)/))||void 0===o?void 0:o[1])||0;n>=6.1?a="4.0":n>=6?a="3.0":n>=5?a="2.0":n>=4&&(a="1.0"),a={10:"3.0",12:"4.0"}[(null===(t=e.match(/Android (\d+);/))||void 0===t?void 0:t[1])||0]??a}return{is:e.includes("HarmonyOS")||e.includes("OpenHarmony")||e.includes("ArkWeb"),version:a}}},{name:"Ubuntu",parse:(e=r)=>({is:e.includes("Ubuntu"),version:""})},{name:"FreeBSD",parse:(e=r)=>({is:e.includes("FreeBSD"),version:""})},{name:"Debian",parse(e=r){var n;return{is:e.includes("Debian"),version:(null===(n=e.match(/Debian\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"iOS",parse(e=r){var n;return{is:e.includes("like Mac OS X"),version:(null===(n=e.match(/OS ([\d_]+) like/))||void 0===n?void 0:n[1].replace(/_/g,"."))||""}}},{name:"Windows Phone",parse(e=r){var n;return{is:e.includes("IEMobile")||e.includes("Windows Phone"),version:(null===(n=e.match(/Windows Phone( OS)? ([\d.]+);/))||void 0===n?void 0:n[2])||""}}},{name:"BlackBerry",parse:(e=r)=>({is:e.includes("BlackBerry")||e.includes("RIM"),version:""})},{name:"MeeGo",parse:(e=r)=>({is:e.includes("MeeGo"),version:""})},{name:"Symbian",parse(e=r){var n;return{is:e.includes("Symbian"),version:(null===(n=e.match(/Series60\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Chrome OS",parse(e=r){var n,i;return{is:e.includes("CrOS"),version:(null===(n=e.match(/MSIE ([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/rv:([\d.]+)/))||void 0===i?void 0:i[1])||""}}},{name:"WebOS",parse(e=r){var n;return{is:e.includes("hpwOS"),version:(null===(n=e.match(/hpwOS\/([\d.]+);/))||void 0===n?void 0:n[1])||""}}},{name:"UOS",parse(e=r){var n;return{is:e.includes("UOS"),version:(null===(n=e.match(/UOS\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}}];fe.forEach((e=>{e.is||(e.is=async function(){return e.parse().is}),e.version||(e.version=async function(){return e.parse().version})}));var be={name:"system",parse(e=r){let n="",i="";fe.forEach((function(r){r.parse(e).is&&(n=r.name,i=r.parse(e).version)}));let a="";e.match(/(Win64|x64|WOW64|x86_64)/i)?a="Win64":e.match(/(Win32|x86|WOW32)/i)?a="Win32":e.match(/aarch64|arm64/)?a="ARM64":e.match(/arm32/)?a="ARM32":e.match(/iPhone/)?a="iPhone":e.match(/iPad/)?a="iPad":e.match(/iPod/)?a="iPod":e.match(/Android/)&&(a="Android");let o="",t=e+"|"+a;o=t.match(/armv?\d+/i)||t.match(/aarch64/)?"arm":t.match(/loongarch64/)?"loongarch":"x86";let s=e.match(/Win64|x64|WOW64|x86_64|aarch64|arm64|loongarch64/i)?64:32;return{system:n,systemVersion:i,platform:a,architecture:o,bitness:s}},async getInfo(){var e,n;let{system:r,systemVersion:a,platform:o,architecture:t,bitness:s}=this.parse();for(let e of fe)await e.is()&&(r=e.name,a=await e.version());var l,d;(null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.platform&&(o=i.navigator.platform),null!=i&&null!==(n=i.navigator)&&void 0!==n&&n.userAgentData)&&(t=await(null===(l=i.navigator.userAgentData)||void 0===l?void 0:l.getHighEntropyValues(["architecture"]).then((e=>e.architecture||t))),s=await(null===(d=i.navigator.userAgentData)||void 0===d?void 0:d.getHighEntropyValues(["bitness"]).then((e=>+e.bitness||s))));return{system:r,systemVersion:a,platform:o,architecture:t,bitness:s}}};let we=[{name:"Mobile",parse:(e=r)=>({is:e.includes("Mobi")||e.includes("iPh")||e.includes("480")})},{name:"Tablet",parse:(e=r)=>({is:e.includes("Tablet")||e.includes("Pad")||e.includes("Nexus 7")}),async is(){return this.parse().is||"MacIntel"===(null==i?void 0:i.navigator.platform)&&(null==i?void 0:i.navigator.maxTouchPoints)>1}}];we.forEach((e=>{e.is||(e.is=async function(){return e.parse().is})}));var Se={name:"device",parse(e=r){let n="Desktop";return we.forEach((function(i){i.parse(e).is&&(n=i.name)})),{device:n}},async getInfo(){var e;let n=(null===globalThis||void 0===globalThis?void 0:globalThis.devicePixelRatio)||1,i=(null===globalThis||void 0===globalThis||null===(e=globalThis.navigator)||void 0===e?void 0:e.deviceMemory)||4;return Object.assign({devicePixelRatio:n,deviceMemory:i},this.parse())}},ye={name:"gpu",parse:()=>({}),async getInfo(){let e="",n="";if(null!=i&&i.document){let o=i.document.createElement("canvas").getContext("experimental-webgl");if(o){var r,a;let i=o.getExtension("WEBGL_debug_renderer_info"),t=o.getParameter(i.UNMASKED_RENDERER_WEBGL);e=(null===(r=t.match(/ANGLE \((.+?),/))||void 0===r?void 0:r[1])||"",n=(null===(a=t.match(/, (.+?) (\(|vs_)/))||void 0===a?void 0:a[1])||""}}return{gpu:e,gpuModel:n}}};const Be=/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/,Ae=/\b(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}\b/i;let Ce=globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection;var Ee={name:"network",parse:()=>({}),async getInfo(){var e,n;let r="unknown",a=null==i||null===(e=i.navigator)||void 0===e?void 0:e.connection;return a&&(r=a.type||a.effectiveType,"2"!=r&&"unknown"!=r||(r="wifi")),{network:r,isOnline:(null==i||null===(n=i.navigator)||void 0===n?void 0:n.onLine)||!1,ip:await async function(){const e=new Set,n=n=>{var i;const r=null==n||null===(i=n.candidate)||void 0===i?void 0:i.candidate;if(r)for(const n of[Be,Ae]){const i=r.match(n);i&&e.add(i[0])}};return new Promise((function(i,r){const a=new Ce({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun.services.mozilla.com"}]});a.addEventListener("icecandidate",n),a.createDataChannel(""),a.createOffer().then((e=>a.setLocalDescription(e)),r);let o=20,t=null,s=function(){try{a.removeEventListener("icecandidate",n),a.close()}catch{}t&&clearInterval(t)};t=setInterval((function(){let n=[...e];n.length?(s(),i(n[0])):o?o--:(s(),i(""))}),100)}))}()}}},Te={name:"battery",parse:()=>({}),async getInfo(){var e;let n=!0,r=1;return null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.getBattery&&(n=await i.navigator.getBattery().then((e=>null==e?void 0:e.charging)),r=await i.navigator.getBattery().then((e=>+(null==e?void 0:e.level)||-1))),{isCharging:n,battery:r}}};var xe={name:"screen",parse:()=>({}),async getInfo(){var e,n,r,a,o,t,s;return{screenWidth:(null==i||null===(e=i.screen)||void 0===e?void 0:e.width)||0,screenHeight:(null==i||null===(n=i.screen)||void 0===n?void 0:n.height)||0,clientWidth:(null==i||null===(r=i.document)||void 0===r||null===(r=r.documentElement)||void 0===r?void 0:r.clientWidth)||(null==i||null===(a=i.document)||void 0===a||null===(a=a.body)||void 0===a?void 0:a.clientWidth)||0,clientHeight:(null==i||null===(o=i.document)||void 0===o||null===(o=o.documentElement)||void 0===o?void 0:o.clientHeight)||(null==i||null===(t=i.document)||void 0===t||null===(t=t.body)||void 0===t?void 0:t.clientHeight)||0,screenFPS:await async function(){return new Promise((function(e){let n=0,i=1,r=[],a=function(o){if(n>0)if(i<12)r.push(o-n),n=o,i++,requestAnimationFrame(a);else{r.sort(),r=r.slice(1,11);let n=r.reduce(((e,n)=>e+n));const i=10*Math.round(1e4/n/10);e(i)}else n=o,requestAnimationFrame(a)};requestAnimationFrame(a)}))}(),screenColorDepth:null==i?void 0:i.screen.colorDepth,screenPixelDepth:null==i?void 0:i.screen.pixelDepth,isTouch:(null==i||null===(s=i.navigator)||void 0===s?void 0:s.maxTouchPoints)>0||!1}}},Pe={name:"language",parse:()=>({}),async getInfo(){var e,n,r;let a=(null==i||null===(e=i.navigator)||void 0===e?void 0:e.language)||(null==i||null===(n=i.navigator)||void 0===n?void 0:n.browserLanguage)||(null==i||null===(r=i.navigator)||void 0===r?void 0:r.systemLanguage);if("string"!=typeof a)return"Unknown language";let o=a.split("-");return o[1]&&(o[1]=o[1].toUpperCase()),{language:o.join("_")}}},Me={name:"timezone",parse:()=>({}),async getInfo(){var e;return{timezone:null===(e=Intl)||void 0===e||null===(e=e.DateTimeFormat())||void 0===e||null===(e=e.resolvedOptions())||void 0===e?void 0:e.timeZone}}};let Ie=function(e,n){return e<>>32-n},Oe=function(e,n){let i,r,a,o,t;return a=2147483648&e,o=2147483648&n,i=1073741824&e,r=1073741824&n,t=(1073741823&e)+(1073741823&n),i&r?2147483648^t^a^o:i|r?1073741824&t?3221225472^t^a^o:1073741824^t^a^o:t^a^o},ke=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e&n|~e&i}(n,i,r),a),t)),Oe(Ie(e,o),n)},De=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e&i|n&~i}(n,i,r),a),t)),Oe(Ie(e,o),n)},Re=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e^n^i}(n,i,r),a),t)),Oe(Ie(e,o),n)},We=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return n^(e|~i)}(n,i,r),a),t)),Oe(Ie(e,o),n)},Le=function(e){let n,i,r="",a="";for(i=0;i<=3;i++)n=e>>>8*i&255,a="0"+n.toString(16),r+=a.substr(a.length-2,2);return r};function Ve(e){let n,i,r,a,o,t,s,l,d,u=Array();for(e=function(e){e=e.replace(/\x0d\x0a/g,"\n");let n="";for(let i=0;i127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}(e),u=function(e){let n,i=e.length,r=i+8,a=16*((r-r%64)/64+1),o=Array(a-1),t=0,s=0;for(;s>>29,o}(e),t=1732584193,s=4023233417,l=2562383102,d=271733878,n=0;nnew Promise((function(e,n){let i=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,44100,44100),r=i.createOscillator();r.type="triangle",r.frequency.setValueAtTime(1e4,i.currentTime);let a=i.createDynamicsCompressor();[["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]].forEach((function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]].setValueAtTime&&a[e[0]].setValueAtTime(e[1],i.currentTime)})),r.connect(a),a.connect(i.destination),r.start(0),i.startRendering();let o=setTimeout((function(){i.oncomplete=function(){},i=null,e(Ve("audio Timeout"))}),1e3);i.oncomplete=function(n){o&&clearTimeout(o);let i=n.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,n){return e+Math.abs(n)}),0).toString();r.disconnect(),a.disconnect(),e(Ve(i))}}))},Qe={name:"webgl",is(){if(null==i||!i.document)return!1;const e=i.document.createElement("canvas"),n=e.getContext("webgl")||e.getContext("experimental-webgl");return n&&n instanceof WebGLRenderingContext}};return{parse(e){let n={};return[he,be,Se].forEach((i=>{n=Object.assign(n,i.parse(e))})),n},async getInfo(e=["browser","system","device","gpu","network","battery","screen","language","timezone"]){let n={},i=[he,be,Se,ye,Ee,Te,xe,Pe,Me].filter((n=>e.includes(n.name)));for(let e of i)n=Object.assign(n,await e.getInfo());return n},async getFingerprint(e=["webgl","canvas","font","audio"]){let n={},i=[He,Fe,_e,Ne].filter((n=>e.includes(n.name))),a=[r];for(let e of i)n[e.name]=await e.getInfo(),a.push(n[e.name]);return n.value=Ve(a.join(",")),n},isSupport(e,n){let i=[Ue,Qe].find((n=>e==n.name));return!!i&&i.is(n)}}}));
diff --git a/dist/browser.min.mjs b/dist/browser.min.mjs
index d459972..fd68ae9 100644
--- a/dist/browser.min.mjs
+++ b/dist/browser.min.mjs
@@ -10,4 +10,4 @@
*
* Created on: 2024-11-11
*/
-let e={};"undefined"!=typeof globalThis?e=globalThis:"undefined"!=typeof self?e=self:"undefined"!=typeof window?e=window:"undefined"!=typeof global&&(e=global);var n,i=e,r=null==i||null===(n=i.navigator)||void 0===n?void 0:n.userAgent,a={name:"Safari",parse(e=r){var n;return{is:e.includes("Safari"),version:(null===(n=e.match(/Version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},o={name:"Chrome",parse(e=r){var n,i;return{is:e.includes("Chrome")||e.includes("CriOS"),version:(null===(n=e.match(/Chrome\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/CriOS\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},t={name:"Edge",parse(e=r){var n,i,a,o;return{is:e.includes("Edge")||e.includes("Edg/")||e.includes("EdgA")||e.includes("EdgiOS"),version:(null===(n=e.match(/Edge\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Edg\/([\d.]+)/))||void 0===i?void 0:i[1])||(null===(a=e.match(/EdgA\/([\d.]+)/))||void 0===a?void 0:a[1])||(null===(o=e.match(/EdgiOS\/([\d.]+)/))||void 0===o?void 0:o[1])||""}}},s={name:"IE",parse(e=r){var n,i;return{is:e.includes("MSIE")||e.includes("Trident"),version:(null===(n=e.match(/MSIE ([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/rv:([\d.]+)/))||void 0===i?void 0:i[1])||""}}},l={name:"Firefox",parse(e=r){var n,i;return{is:e.includes("Firefox")||e.includes("FxiOS"),version:(null===(n=e.match(/Firefox\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/FxiOS\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},d={name:"Firefox Focus",parse(e=r){var n;return{is:e.includes("Focus"),version:(null===(n=e.match(/Focus\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},u={name:"Chromium",parse(e=r){var n;return{is:e.includes("Chromium"),version:(null===(n=e.match(/Chromium\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},c={name:"Opera",parse(e=r){var n,i;return{is:e.includes("Opera")||e.includes("OPR"),version:(null===(n=e.match(/Opera\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/OPR\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},v={name:"Opera GX",parse(e=r){let n=!1;return c.parse(e).is&&(n=e.includes("Edition GX")),{is:n,version:c.parse(e).version}}},m={name:"Vivaldi",parse(e=r){var n,i;return{is:e.includes("Vivaldi"),version:(null===(n=e.match(/Vivaldi\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Chrome\/([\d.]+)/))||void 0===i?void 0:i[1])||""}},async is(){let e=this.parse().is;return new Promise((function(n){e?n(!1):fetch("chrome-extension://jffbochibkahlbbmanpmndnhmeliecah/config.json").then((function(){n(!0)})).catch((function(){n(!1)}))}))}},p={name:"Yandex",parse(e=r){var n;return{is:e.includes("YaBrowser"),version:(null===(n=e.match(/YaBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},h={name:"Brave",parse(e=r){var n;return{is:e.includes("Brave"),version:(null===(n=e.match(/Chrome\/([\d.]+)/))||void 0===n?void 0:n[1])||""}},is:async function(){var e;return!!(this.parse().is||null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.brave)}},g={name:"Arora",parse(e=r){var n;return{is:e.includes("Arora"),version:(null===(n=e.match(/Arora\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},f={name:"Lunascape",parse(e=r){var n;return{is:e.includes("Lunascape"),version:(null===(n=e.match(/Lunascape[\/\s]([\d.]+)/))||void 0===n?void 0:n[1])||""}}},b={name:"QupZilla",parse(e=r){var n;return{is:e.includes("QupZilla"),version:(null===(n=e.match(/QupZilla[\/\s]([\d.]+)/))||void 0===n?void 0:n[1])||""}}},w={name:"Coc Coc",parse(e=r){var n;return{is:e.includes("coc_coc_browser"),version:(null===(n=e.match(/coc_coc_browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},S={name:"Kindle",parse(e=r){var n;return{is:e.includes("Kindle")||e.includes("Silk/"),version:(null===(n=e.match(/Version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},y={name:"Iceweasel",parse(e=r){var n;return{is:e.includes("Iceweasel"),version:(null===(n=e.match(/Iceweasel\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},B={name:"Konqueror",parse(e=r){var n;return{is:e.includes("Konqueror"),version:(null===(n=e.match(/Konqueror\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},A={name:"SeaMonkey",parse(e=r){var n;return{is:e.includes("SeaMonkey"),version:(null===(n=e.match(/SeaMonkey\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},C={name:"Epiphany",parse(e=r){var n;return{is:e.includes("Epiphany"),version:(null===(n=e.match(/Epiphany\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},E={name:"Huawei",parse(e=r){var n,i,a;return{is:e.includes("HuaweiBrowser")||e.includes("HBPC/"),version:(null===(n=e.match(/HuaweiBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/HBPC\/([\d.]+)/))||void 0===i?void 0:i[1])||(null===(a=e.match(/Version\/([\d.]+)/))||void 0===a?void 0:a[1])||""}}},x={name:"OPPO",parse(e=r){var n;return{is:e.includes("HeyTapBrowser")||e.includes("OPPO"),version:(null===(n=e.match(/HeyTapBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},T={name:"Vivo",parse(e=r){var n;return{is:e.includes("VivoBrowser"),version:(null===(n=e.match(/VivoBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},P={name:"Xiaomi",parse(e=r){var n;return{is:e.includes("MiuiBrowser"),version:(null===(n=e.match(/115Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},M={name:"Meizu",parse(e=r){var n;return{is:e.includes("MZBrowser"),version:(null===(n=e.match(/MZBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},I={name:"OnePlus",parse:(e=r)=>({is:e.includes("ONEPLUS"),version:""})},O={name:"Samsung",parse(e=r){var n;return{is:e.includes("SamsungBrowser"),version:(null===(n=e.match(/SamsungBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}};function D(e,n){var i;let r=null===globalThis||void 0===globalThis||null===(i=globalThis.navigator)||void 0===i?void 0:i.mimeTypes;for(let i in r)if(r[i][e]&&r[i][e]==n)return r[i];return null}var k={name:"360",parse(e=r){var n,i;return{is:e.includes("QihooBrowser")||e.includes("QHBrowser")||e.includes(" 360 "),version:(null===(n=e.match(/QihooBrowser(HD)?\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Browser \(v([\d.]+)/))||void 0===i?void 0:i[1])||""}},async is(){let e=this.parse().is;if(null!=i&&i.chrome){let n=parseInt(o.parse().version);D("type","application/360softmgrplugin")||D("type","application/mozilla-npqihooquicklogin")||D("type","application/npjlgplayer3-chrome-jlp")||n>36&&null!=i&&i.showModalDialog?e=!0:n>45&&(e=D("type","application/vnd.chromium.remoting-viewer"),!e&&n>=69&&(e=D("type","application/asx")))}return e}},R={name:"360SE",parse(e=r){let n=parseInt(o.parse(e).version);return{is:e.includes("360SE"),version:{122:"15.3",114:"15.0",108:"14.0",86:"13.0",78:"12.0",69:"11.0",63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[n]||""}},async is(){let e=!1;var n;await k.is()&&((D("type","application/gameplugin")||null!=i&&null!==(n=i.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.filter((e=>"Not.A/Brand"==e.brand)).length)&&(e=!0));return e||new Promise((function(e){fetch("chrome-extension://fjbbmgamncjadhlpmffehlmmkdnkiadk/css/content.css").then((function(){e(!0)})).catch((function(){e(!1)}))}))}},W={name:"360EE",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("360EE"),version:(null===(n=e.match(/Browser \(v([\d.]+)/))||void 0===n?void 0:n[1])||{122:"22.3",119:"22.0",108:"14.0",95:"21.0",86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[i]||""}},async is(){let e=this.parse().is;if(D("type","application/cenroll.cenroll.version.1")||D("type","application/hwepass2001.installepass2001"))e=!0;else if(await k.is()){var n;null!==globalThis&&void 0!==globalThis&&null!==(n=globalThis.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.find((e=>"Not A(Brand"==e.brand||"Not?A_Brand"==e.brand))&&(e=!0)}return e}},L={name:"360AI",parse(e=r){let n=parseInt(o.parse(e).version);return{is:e.includes("360SEAI"),version:{114:"1.0"}[n]||""}},async is(){let e=this.parse().is;var n;await k.is()&&(null!=i&&null!==(n=i.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.filter((e=>"Not.A/Brand"==e.brand)).length&&!D("type","application/gameplugin")&&(e=!0));return e}},H={name:"360AI",parse(e=r){var n;return{is:e.includes("360EEAI"),version:(null===(n=e.match(/360EE\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}};const V=()=>new Promise((e=>{var n;if(null==i||null===(n=i.webkit)||void 0===n||null===(n=n.messageHandlers)||void 0===n||!n.excuteCmd)return e({});{const n=`cv_${Date.now()%1e5}${100*Math.floor(Math.random())}`,r={key:"GetDeviceInfo",data:{},callback:n},a=JSON.stringify(r);i.webkit.messageHandlers.excuteCmd.postMessage(a),i[n]=function(r){delete i[n],e(JSON.parse(r||"{}"))}}}));var U={name:"360EE",parse:()=>({is:!1,version:""}),is:async()=>V().then((function(e){return"360csexm"==(null==e?void 0:e.pid)||!1})),version:async()=>V().then((function(e){return(null==e?void 0:e.module_version)||""}))},_={name:"360ENT",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("360ENT"),version:(null===(n=e.match(/Browser \(v([\d.]+)/))||void 0===n?void 0:n[1])||{86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[i]||""}}},F={name:"UC",parse(e=r){var n;return{is:e.includes("UCBrowser")||e.includes(" UBrowser")||e.includes("UCWEB"),version:(null===(n=e.match(/UC?Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},N={name:"QQBrowser",parse(e=r){var n;return{is:e.includes("QQBrowser"),version:(null===(n=e.match(/QQBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},Q={name:"QQ",parse(e=r){var n;return{is:e.includes("QQ/"),version:(null===(n=e.match(/QQ\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},G={name:"Baidu",parse(e=r){var n,i;return{is:e.includes("Baidu")||e.includes("BIDUBrowser")||e.includes("baidubrowser")||e.includes("baiduboxapp")||e.includes("BaiduD"),version:(null===(n=e.match(/BIDUBrowser[\s\/]([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/baiduboxapp\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},Y={name:"Maxthon",parse(e=r){var n,i;let a=parseInt(o.parse(e).version);return{is:e.includes("Maxthon"),version:(null===(n=e.match(/Maxthon\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Version\/([\d.]+)/))||void 0===i?void 0:i[1])||{109:"7.0",78:"6.0"}[a]||""}},is(){return this.parse().is||(null==i?void 0:i.maxthon)}},j={name:"Sogou",parse(e=r){var n,i,a=parseInt(o.parse(e).version);return{is:e.includes("MetaSr")||e.includes("Sogou"),version:(null===(n=e.match(/SogouMobileBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/SogouMSE\/([\d.]+)/))||void 0===i?void 0:i[1])||{94:"12.0",80:"11.0"}[a]||""}}},q={name:"Liebao",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("LBBROWSER")||e.includes("LieBaoFast"),version:(null===(n=e.match(/LieBaoFast\/([\d.]+)/))||void 0===n?void 0:n[1])||{112:"9.0",79:"8.0",57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[i]||""}},is(){return this.parse().is||(null==i?void 0:i.liebao)}},z={name:"2345Explorer",parse(e=r){var n,i;let a=parseInt(o.parse(e).version);return{is:e.includes("2345Explorer")||e.includes("Mb2345Browser")||e.includes("2345chrome"),version:(null===(n=e.match(/2345Explorer\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Mb2345Browser\/([\d.]+)/))||void 0===i?void 0:i[1])||{109:"13.0",69:"10.0",55:"9.9"}[a]||""}},async is(){let e=this.parse().is;var n,r;e||(e=(null==i?void 0:i.chrome)&&((null==i||null===(n=i.chrome)||void 0===n?void 0:n.adblock2345)||(null==i||null===(r=i.chrome)||void 0===r?void 0:r.common2345)));return e}},K={name:"115Browser",parse(e=r){var n;return{is:e.includes("115Browser"),version:(null===(n=e.match(/115Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},X={name:"TheWorld",parse(e=r){var n;return{is:e.includes("TheWorld"),version:(null===(n=e.match(/TheWorld ([\d.]+)/))||void 0===n?void 0:n[1])||""}}},$={name:"Quark",parse(e=r){var n,i;return{is:e.includes("Quark"),version:(null===(n=e.match(/Quark\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/QuarkPC\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},Z={name:"Qiyu",parse(e=r){var n;return{is:e.includes("Qiyu"),version:(null===(n=e.match(/Qiyu\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},J={name:"Lenovo",parse(e=r){var n;return{is:e.includes("SLBrowser"),version:(null===(n=e.match(/SLBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ee={name:"Wechat",parse(e=r){var n;return{is:e.includes("MicroMessenger"),version:(null===(n=e.match(/MicroMessenger\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ne={name:"WechatWork",parse(e=r){var n;return{is:e.includes("wxwork"),version:(null===(n=e.match(/wxwork\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ie={name:"Taobao",parse(e=r){var n;return{is:e.includes("AliApp(TB"),version:(null===(n=e.match(/AliApp\(TB\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},re={name:"Alipay",parse(e=r){var n;return{is:e.includes("AliApp(AP"),version:(null===(n=e.match(/AliApp\(AP\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ae={name:"Weibo",parse(e=r){var n;return{is:e.includes("Weibo"),version:(null===(n=e.match(/weibo__([\d.]+)/))||void 0===n?void 0:n[1])||""}}},oe={name:"Douban",parse(e=r){var n;return{is:e.includes("com.douban.frodo"),version:(null===(n=e.match(/com.douban.frodo\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},te={name:"Toutiao",parse(e=r){var n;return{is:e.includes("NewsArticle"),version:(null===(n=e.match(/NewsArticle\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},se={name:"WebKit",parse:(e=r)=>({is:e.includes("AppleWebKit")})},le={name:"Trident",parse:(e=r)=>({is:e.includes("Trident")||e.includes("NET CLR")})},de={name:"Gecko",parse:(e=r)=>({is:e.includes("Gecko/")})},ue={name:"Servo",parse:(e=r)=>({is:e.includes("Servo/")})},ce={name:"Presto",parse:(e=r)=>({is:e.includes("Presto")})},ve={name:"KHTML",parse:(e=r)=>({is:e.includes("KHTML/")})};let me=[a,o,t,s,l,d,u,c,v,m,p,h,g,f,b,w,S,y,B,A,C,E,x,T,P,M,I,O,k,W,R,U,L,H,_,F,N,Q,G,Y,j,q,z,K,X,$,Z,J,ee,ne,ie,re,ae,oe,{name:"Suning",parse(e=r){var n;return{is:e.includes("SNEBUY-APP"),version:(null===(n=e.match(/SNEBUY-APP([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"iQIYI",parse(e=r){var n;return{is:e.includes("IqiyiApp"),version:(null===(n=e.match(/IqiyiVersion\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"DingTalk",parse(e=r){var n;return{is:e.includes("DingTalk"),version:(null===(n=e.match(/DingTalk\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Douyin",parse(e=r){var n;return{is:e.includes("aweme"),version:(null===(n=e.match(/app_version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},te,{name:"Googlebot",parse(e=r){var n;return{is:e.includes("Googlebot"),version:(null===(n=e.match(/Googlebot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Baiduspider",parse(e=r){var n;return{is:e.includes("Baiduspider"),version:(null===(n=e.match(/Baiduspider(-render)?\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Sogouspider",parse(e=r){var n;return{is:e.match(/Sogou (\S+) Spider\/([\d.]+)/i),version:(null===(n=e.match(/Sogou (\S+) Spider\/([\d.]+)/i))||void 0===n?void 0:n[1])||""}}},{name:"Bingbot",parse(e=r){var n;return{is:e.includes("bingbot"),version:(null===(n=e.match(/bingbot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"360Spider",parse:(e=r)=>({is:e.includes("360Spider")||e.includes("HaosouSpider"),version:""})},{name:"Bytespider",parse:(e=r)=>({is:e.includes("Bytespider"),version:""})},{name:"YisouSpider",parse(e=r){var n;return{is:e.includes("YisouSpider"),version:(null===(n=e.match(/YisouSpider\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"YodaoBot",parse(e=r){var n;return{is:e.includes("YodaoBot"),version:(null===(n=e.match(/YodaoBot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"YandexBot",parse(e=r){var n;return{is:e.includes("YandexBot"),version:(null===(n=e.match(/YandexBot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Headless",parse(e=r){var n;return{is:e.includes("HeadlessChrome/"),version:(null===(n=e.match(/HeadlessChrome\/([\d.]+)/))||void 0===n?void 0:n[1])||""}},async is(){return this.parse().is??""==(null==i?void 0:i.navigator)}}];me.forEach((e=>{e.is||(e.is=async function(){return e.parse().is}),e.version||(e.version=async function(){return e.parse().version})}));let pe=[se,le,de,ue,ce,ve];pe.forEach((e=>{e.is||(e.is=async function(){return e.parse().is})}));var he={name:"browser",parse(e=r){let n="",i="";me.forEach((function(r){r.parse(e).is&&(n=r.name,i=r.parse(e).version)}));let a="";var s,l;(pe.forEach((function(n){n.parse(e).is&&(a=n.name)})),"Chrome"==n&&e.match(/\S+Browser/)&&(n=e.match(/\S+Browser/)[0]),"Chrome"==n&&e.match(/\S+Browser/))&&(i=(null===(s=e.replace(/^.*Browser\/([\d.]+).*$/))||void 0===s?void 0:s[1])||"");i||(i=(null===(l=e.match(/Version\/([\d.]+)/))||void 0===l?void 0:l[1])||"");t.parse(e).is?a=parseInt(t.parse(e).version)>75?"Blink":"EdgeHTML":o.parse(e).is&&parseInt(o.parse(e).version)>27&&(a="Blink");let d=e.includes("; wv)"),u=["Googlebot","Baiduspider","Sogouspider","Bingbot","360Spider","Bytespider","YandexBot"].includes(n);return{browser:n,browserVersion:i,engine:a,isWebview:d,isRobot:u}},async getInfo(){var e;let{browser:n,browserVersion:i,engine:a,isWebview:o,isRobot:t}=this.parse();for(let e of me)await e.is()&&(n=e.name,i=await e.version());let s=r;var l,d;("Chrome"==n&&s.match(/\S+Browser/)&&(n=s.match(/\S+Browser/)[0]),"Chrome"==n&&s.match(/\S+Browser/))&&(i=(null===(l=s.replace(/^.*Browser\/([\d.]+).*$/))||void 0===l?void 0:l[1])||"");i||(i=(null===(d=s.match(/Version\/([\d.]+)/))||void 0===d?void 0:d[1])||"");return{browser:n,browserVersion:i,engine:a,isWebview:o,isRobot:t,cookieEnabled:null===globalThis||void 0===globalThis||null===(e=globalThis.navigator)||void 0===e?void 0:e.cookieEnabled,userAgent:s}}},ge={name:"Windows",parse(e=r){var n;let i=(null===(n=e.match(/^Mozilla\/\d.0 \(Windows NT ([\d.]+)[;)].*$/))||void 0===n?void 0:n[1])||"";return{is:e.includes("Windows"),version:{"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"}[i]||i}},async version(){let e=this.parse().version;return new Promise((function(n){var r;null!=i&&null!==(r=i.navigator)&&void 0!==r&&r.userAgentData?i.navigator.userAgentData.getHighEntropyValues(["platformVersion"]).then((function(e){let r="";if("Windows"===i.navigator.userAgentData.platform){r=parseInt(e.platformVersion.split(".")[0])>=13?"11":"10"}n(r)})):n(e)}))}};let fe=[ge,{name:"Linux",parse:(e=r)=>({is:e.includes("Linux")||e.includes("X11"),version:""})},{name:"macOS",parse(e=r){var n;return{is:e.includes("Macintosh"),version:(null===(n=e.match(/Mac OS X -?([\d_]+)/))||void 0===n?void 0:n[1].replace(/_/g,"."))||""}}},{name:"Android",parse(e=r){var n;return{is:e.includes("Android")||e.includes("Adr"),version:(null===(n=e.match(/Android ([\d.]+);/))||void 0===n?void 0:n[1])||""}}},{name:"HarmonyOS",parse(e=r){var n,i;let a=(null===(n=e.match(/HarmonyOS (\d+.\d+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/OpenHarmony(\d+.\d+)/))||void 0===i?void 0:i[1])||"";if(!a){var o,t;let n=+(null===(o=e.match(/HMSCore (\d+.\d+)/))||void 0===o?void 0:o[1])||0;n>=6.1?a="4.0":n>=6?a="3.0":n>=5?a="2.0":n>=4&&(a="1.0"),a={10:"3.0",12:"4.0"}[(null===(t=e.match(/Android (\d+);/))||void 0===t?void 0:t[1])||0]??a}return{is:e.includes("HarmonyOS")||e.includes("OpenHarmony")||e.includes("ArkWeb"),version:a}}},{name:"Ubuntu",parse:(e=r)=>({is:e.includes("Ubuntu"),version:""})},{name:"FreeBSD",parse:(e=r)=>({is:e.includes("FreeBSD"),version:""})},{name:"Debian",parse(e=r){var n;return{is:e.includes("Debian"),version:(null===(n=e.match(/Debian\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"iOS",parse(e=r){var n;return{is:e.includes("like Mac OS X"),version:(null===(n=e.match(/OS ([\d_]+) like/))||void 0===n?void 0:n[1].replace(/_/g,"."))||""}}},{name:"Windows Phone",parse(e=r){var n;return{is:e.includes("IEMobile")||e.includes("Windows Phone"),version:(null===(n=e.match(/Windows Phone( OS)? ([\d.]+);/))||void 0===n?void 0:n[2])||""}}},{name:"BlackBerry",parse:(e=r)=>({is:e.includes("BlackBerry")||e.includes("RIM"),version:""})},{name:"MeeGo",parse:(e=r)=>({is:e.includes("MeeGo"),version:""})},{name:"Symbian",parse(e=r){var n;return{is:e.includes("Symbian"),version:(null===(n=e.match(/Series60\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Chrome OS",parse(e=r){var n,i;return{is:e.includes("CrOS"),version:(null===(n=e.match(/MSIE ([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/rv:([\d.]+)/))||void 0===i?void 0:i[1])||""}}},{name:"WebOS",parse(e=r){var n;return{is:e.includes("hpwOS"),version:(null===(n=e.match(/hpwOS\/([\d.]+);/))||void 0===n?void 0:n[1])||""}}},{name:"UOS",parse(e=r){var n;return{is:e.includes("UOS"),version:(null===(n=e.match(/UOS\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}}];fe.forEach((e=>{e.is||(e.is=async function(){return e.parse().is}),e.version||(e.version=async function(){return e.parse().version})}));var be={name:"system",parse(e=r){let n="",i="";fe.forEach((function(r){r.parse(e).is&&(n=r.name,i=r.parse(e).version)}));let a="";e.match(/(Win64|x64|WOW64|x86_64)/i)?a="Win64":e.match(/(Win32|x86|WOW32)/i)?a="Win32":e.match(/aarch64|arm64/)?a="ARM64":e.match(/arm32/)?a="ARM32":e.match(/iPhone/)?a="iPhone":e.match(/iPad/)?a="iPad":e.match(/iPod/)?a="iPod":e.match(/Android/)&&(a="Android");let o="",t=e+"|"+a;o=t.match(/armv?\d+/i)||t.match(/aarch64/)?"arm":t.match(/loongarch64/)?"loongarch":"x86";let s=e.match(/Win64|x64|WOW64|x86_64|aarch64|arm64|loongarch64/i)?64:32;return{system:n,systemVersion:i,platform:a,architecture:o,bitness:s}},async getInfo(){var e,n;let{system:r,systemVersion:a,platform:o,architecture:t,bitness:s}=this.parse();for(let e of fe)await e.is()&&(r=e.name,a=await e.version());var l,d;(null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.platform&&(o=i.navigator.platform),null!=i&&null!==(n=i.navigator)&&void 0!==n&&n.userAgentData)&&(t=await(null===(l=i.navigator.userAgentData)||void 0===l?void 0:l.getHighEntropyValues(["architecture"]).then((e=>e.architecture||t))),s=await(null===(d=i.navigator.userAgentData)||void 0===d?void 0:d.getHighEntropyValues(["bitness"]).then((e=>+e.bitness||s))));return{system:r,systemVersion:a,platform:o,architecture:t,bitness:s}}};let we=[{name:"Mobile",parse:(e=r)=>({is:e.includes("Mobi")||e.includes("iPh")||e.includes("480")})},{name:"Tablet",parse:(e=r)=>({is:e.includes("Tablet")||e.includes("Pad")||e.includes("Nexus 7")}),async is(){return this.parse().is||"MacIntel"===(null==i?void 0:i.navigator.platform)&&(null==i?void 0:i.navigator.maxTouchPoints)>1}}];we.forEach((e=>{e.is||(e.is=async function(){return e.parse().is})}));var Se={name:"device",parse(e=r){let n="Desktop";return we.forEach((function(i){i.parse(e).is&&(n=i.name)})),{device:n}},async getInfo(){var e;let n=(null===globalThis||void 0===globalThis?void 0:globalThis.devicePixelRatio)||1,i=(null===globalThis||void 0===globalThis||null===(e=globalThis.navigator)||void 0===e?void 0:e.deviceMemory)||4;return Object.assign({devicePixelRatio:n,deviceMemory:i},this.parse())}},ye={name:"gpu",parse:()=>({}),async getInfo(){let e="",n="";if(null!=i&&i.document){let o=i.document.createElement("canvas").getContext("experimental-webgl");if(o){var r,a;let i=o.getExtension("WEBGL_debug_renderer_info"),t=o.getParameter(i.UNMASKED_RENDERER_WEBGL);e=(null===(r=t.match(/ANGLE \((.+?),/))||void 0===r?void 0:r[1])||"",n=(null===(a=t.match(/, (.+?) (\(|vs_)/))||void 0===a?void 0:a[1])||""}}return{gpu:e,gpuModel:n}}};const Be=/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/,Ae=/\b(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}\b/i;let Ce=globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection;var Ee={name:"network",parse:()=>({}),async getInfo(){var e,n;let r="unknown",a=null==i||null===(e=i.navigator)||void 0===e?void 0:e.connection;return a&&(r=a.type||a.effectiveType,"2"!=r&&"unknown"!=r||(r="wifi")),{network:r,isOnline:(null==i||null===(n=i.navigator)||void 0===n?void 0:n.onLine)||!1,ip:await async function(){const e=new Set,n=n=>{var i;const r=null==n||null===(i=n.candidate)||void 0===i?void 0:i.candidate;if(r)for(const n of[Be,Ae]){const i=r.match(n);i&&e.add(i[0])}};return new Promise((function(i,r){const a=new Ce({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun.services.mozilla.com"}]});a.addEventListener("icecandidate",n),a.createDataChannel(""),a.createOffer().then((e=>a.setLocalDescription(e)),r);let o=20,t=null,s=function(){try{a.removeEventListener("icecandidate",n),a.close()}catch{}t&&clearInterval(t)};t=setInterval((function(){let n=[...e];n.length?(s(),i(n[0])):o?o--:(s(),i(""))}),100)}))}()}}},xe={name:"battery",parse:()=>({}),async getInfo(){var e;let n=!0,r=1;return null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.getBattery&&(n=await i.navigator.getBattery().then((e=>null==e?void 0:e.charging)),r=await i.navigator.getBattery().then((e=>+(null==e?void 0:e.level)||-1))),{isCharging:n,battery:r}}};var Te={name:"screen",parse:()=>({}),async getInfo(){var e,n,r,a,o,t,s;return{screenWidth:(null==i||null===(e=i.screen)||void 0===e?void 0:e.width)||0,screenHeight:(null==i||null===(n=i.screen)||void 0===n?void 0:n.height)||0,clientWidth:(null==i||null===(r=i.document)||void 0===r||null===(r=r.documentElement)||void 0===r?void 0:r.clientWidth)||(null==i||null===(a=i.document)||void 0===a||null===(a=a.body)||void 0===a?void 0:a.clientWidth)||0,clientHeight:(null==i||null===(o=i.document)||void 0===o||null===(o=o.documentElement)||void 0===o?void 0:o.clientHeight)||(null==i||null===(t=i.document)||void 0===t||null===(t=t.body)||void 0===t?void 0:t.clientHeight)||0,screenFPS:await async function(){return new Promise((function(e){let n=0,i=1,r=[],a=function(o){if(n>0)if(i<12)r.push(o-n),n=o,i++,requestAnimationFrame(a);else{r.sort(),r=r.slice(1,11);let n=r.reduce(((e,n)=>e+n));const i=10*Math.round(1e4/n/10);e(i)}else n=o,requestAnimationFrame(a)};requestAnimationFrame(a)}))}(),screenColorDepth:null==i?void 0:i.screen.colorDepth,screenPixelDepth:null==i?void 0:i.screen.pixelDepth,isTouch:(null==i||null===(s=i.navigator)||void 0===s?void 0:s.maxTouchPoints)>0||!1}}},Pe={name:"language",parse:()=>({}),async getInfo(){var e,n,r;let a=(null==i||null===(e=i.navigator)||void 0===e?void 0:e.language)||(null==i||null===(n=i.navigator)||void 0===n?void 0:n.browserLanguage)||(null==i||null===(r=i.navigator)||void 0===r?void 0:r.systemLanguage);if("string"!=typeof a)return"Unknown language";let o=a.split("-");return o[1]&&(o[1]=o[1].toUpperCase()),{language:o.join("_")}}},Me={name:"timezone",parse:()=>({}),async getInfo(){var e;return{timezone:null===(e=Intl)||void 0===e||null===(e=e.DateTimeFormat())||void 0===e||null===(e=e.resolvedOptions())||void 0===e?void 0:e.timeZone}}};let Ie=function(e,n){return e<>>32-n},Oe=function(e,n){let i,r,a,o,t;return a=2147483648&e,o=2147483648&n,i=1073741824&e,r=1073741824&n,t=(1073741823&e)+(1073741823&n),i&r?2147483648^t^a^o:i|r?1073741824&t?3221225472^t^a^o:1073741824^t^a^o:t^a^o},De=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e&n|~e&i}(n,i,r),a),t)),Oe(Ie(e,o),n)},ke=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e&i|n&~i}(n,i,r),a),t)),Oe(Ie(e,o),n)},Re=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e^n^i}(n,i,r),a),t)),Oe(Ie(e,o),n)},We=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return n^(e|~i)}(n,i,r),a),t)),Oe(Ie(e,o),n)},Le=function(e){let n,i,r="",a="";for(i=0;i<=3;i++)n=e>>>8*i&255,a="0"+n.toString(16),r+=a.substr(a.length-2,2);return r};function He(e){let n,i,r,a,o,t,s,l,d,u=Array();for(e=function(e){e=e.replace(/\x0d\x0a/g,"\n");let n="";for(let i=0;i127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}(e),u=function(e){let n,i=e.length,r=i+8,a=16*((r-r%64)/64+1),o=Array(a-1),t=0,s=0;for(;s>>29,o}(e),t=1732584193,s=4023233417,l=2562383102,d=271733878,n=0;nnew Promise((function(e,n){let i=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,44100,44100),r=i.createOscillator();r.type="triangle",r.frequency.setValueAtTime(1e4,i.currentTime);let a=i.createDynamicsCompressor();[["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]].forEach((function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]].setValueAtTime&&a[e[0]].setValueAtTime(e[1],i.currentTime)})),r.connect(a),a.connect(i.destination),r.start(0),i.startRendering();let o=setTimeout((function(){i.oncomplete=function(){},i=null,e(He("audio Timeout"))}),1e3);i.oncomplete=function(n){o&&clearTimeout(o);let i=n.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,n){return e+Math.abs(n)}),0).toString();r.disconnect(),a.disconnect(),e(He(i))}}))},Qe={name:"webgl",is(){if(null==i||!i.document)return!1;const e=i.document.createElement("canvas"),n=e.getContext("webgl")||e.getContext("experimental-webgl");return n&&n instanceof WebGLRenderingContext}},Ge={parse(e){let n={};return[he,be,Se].forEach((i=>{n=Object.assign(n,i.parse(e))})),n},async getInfo(e=["browser","system","device","gpu","network","battery","screen","language","timezone"]){let n={},i=[he,be,Se,ye,Ee,xe,Te,Pe,Me].filter((n=>e.includes(n.name)));for(let e of i)n=Object.assign(n,await e.getInfo());return n},async getFingerprint(e=["webgl","canvas","font","audio"]){let n={},i=[Ve,Ue,Fe,Ne].filter((n=>e.includes(n.name))),a=[r];for(let e of i)n[e.name]=await e.getInfo(),a.push(n[e.name]);return n.value=He(a.join(",")),n},isSupport(e,n){let i=[_e,Qe].find((n=>e==n.name));return!!i&&i.is(n)}};export{Ge as default};
+let e={};"undefined"!=typeof globalThis?e=globalThis:"undefined"!=typeof self?e=self:"undefined"!=typeof window?e=window:"undefined"!=typeof global&&(e=global);var n,i=e,r=null==i||null===(n=i.navigator)||void 0===n?void 0:n.userAgent,a={name:"Safari",parse(e=r){var n;return{is:e.includes("Safari"),version:(null===(n=e.match(/Version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},o={name:"Chrome",parse(e=r){var n,i;return{is:e.includes("Chrome")||e.includes("CriOS"),version:(null===(n=e.match(/Chrome\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/CriOS\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},t={name:"Edge",parse(e=r){var n,i,a,o;return{is:e.includes("Edge")||e.includes("Edg/")||e.includes("EdgA")||e.includes("EdgiOS"),version:(null===(n=e.match(/Edge\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Edg\/([\d.]+)/))||void 0===i?void 0:i[1])||(null===(a=e.match(/EdgA\/([\d.]+)/))||void 0===a?void 0:a[1])||(null===(o=e.match(/EdgiOS\/([\d.]+)/))||void 0===o?void 0:o[1])||""}}},s={name:"IE",parse(e=r){var n,i;return{is:e.includes("MSIE")||e.includes("Trident"),version:(null===(n=e.match(/MSIE ([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/rv:([\d.]+)/))||void 0===i?void 0:i[1])||""}}},l={name:"Firefox",parse(e=r){var n,i;return{is:e.includes("Firefox")||e.includes("FxiOS"),version:(null===(n=e.match(/Firefox\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/FxiOS\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},d={name:"Firefox Focus",parse(e=r){var n;return{is:e.includes("Focus"),version:(null===(n=e.match(/Focus\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},u={name:"Chromium",parse(e=r){var n;return{is:e.includes("Chromium"),version:(null===(n=e.match(/Chromium\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},c={name:"Opera",parse(e=r){var n,i;return{is:e.includes("Opera")||e.includes("OPR"),version:(null===(n=e.match(/Opera\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/OPR\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},v={name:"Opera GX",parse(e=r){let n=!1;return c.parse(e).is&&(n=e.includes("Edition GX")),{is:n,version:c.parse(e).version}}},m={name:"Vivaldi",parse(e=r){var n,i;return{is:e.includes("Vivaldi"),version:(null===(n=e.match(/Vivaldi\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Chrome\/([\d.]+)/))||void 0===i?void 0:i[1])||""}},async is(){let e=this.parse().is;return new Promise((function(n){e?n(!1):fetch("chrome-extension://jffbochibkahlbbmanpmndnhmeliecah/config.json").then((function(){n(!0)})).catch((function(){n(!1)}))}))}},p={name:"Yandex",parse(e=r){var n;return{is:e.includes("YaBrowser"),version:(null===(n=e.match(/YaBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},h={name:"Brave",parse(e=r){var n;return{is:e.includes("Brave"),version:(null===(n=e.match(/Chrome\/([\d.]+)/))||void 0===n?void 0:n[1])||""}},is:async function(){var e;return!!(this.parse().is||null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.brave)}},g={name:"Arora",parse(e=r){var n;return{is:e.includes("Arora"),version:(null===(n=e.match(/Arora\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},f={name:"Lunascape",parse(e=r){var n;return{is:e.includes("Lunascape"),version:(null===(n=e.match(/Lunascape[\/\s]([\d.]+)/))||void 0===n?void 0:n[1])||""}}},b={name:"QupZilla",parse(e=r){var n;return{is:e.includes("QupZilla"),version:(null===(n=e.match(/QupZilla[\/\s]([\d.]+)/))||void 0===n?void 0:n[1])||""}}},w={name:"Coc Coc",parse(e=r){var n;return{is:e.includes("coc_coc_browser"),version:(null===(n=e.match(/coc_coc_browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},S={name:"Kindle",parse(e=r){var n;return{is:e.includes("Kindle")||e.includes("Silk/"),version:(null===(n=e.match(/Version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},y={name:"Iceweasel",parse(e=r){var n;return{is:e.includes("Iceweasel"),version:(null===(n=e.match(/Iceweasel\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},B={name:"Konqueror",parse(e=r){var n;return{is:e.includes("Konqueror"),version:(null===(n=e.match(/Konqueror\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},A={name:"SeaMonkey",parse(e=r){var n;return{is:e.includes("SeaMonkey"),version:(null===(n=e.match(/SeaMonkey\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},C={name:"Epiphany",parse(e=r){var n;return{is:e.includes("Epiphany"),version:(null===(n=e.match(/Epiphany\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},E={name:"Huawei",parse(e=r){var n,i,a;return{is:e.includes("HuaweiBrowser")||e.includes("HBPC/"),version:(null===(n=e.match(/HuaweiBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/HBPC\/([\d.]+)/))||void 0===i?void 0:i[1])||(null===(a=e.match(/Version\/([\d.]+)/))||void 0===a?void 0:a[1])||""}}},x={name:"OPPO",parse(e=r){var n;return{is:e.includes("HeyTapBrowser")||e.includes("OPPO"),version:(null===(n=e.match(/HeyTapBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},T={name:"Vivo",parse(e=r){var n;return{is:e.includes("VivoBrowser"),version:(null===(n=e.match(/VivoBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},P={name:"Xiaomi",parse(e=r){var n;return{is:e.includes("MiuiBrowser"),version:(null===(n=e.match(/115Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},M={name:"Meizu",parse(e=r){var n;return{is:e.includes("MZBrowser"),version:(null===(n=e.match(/MZBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},I={name:"OnePlus",parse:(e=r)=>({is:e.includes("ONEPLUS"),version:""})},O={name:"Samsung",parse(e=r){var n;return{is:e.includes("SamsungBrowser"),version:(null===(n=e.match(/SamsungBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}};function k(e,n){var i;let r=null===globalThis||void 0===globalThis||null===(i=globalThis.navigator)||void 0===i?void 0:i.mimeTypes;for(let i in r)if(r[i][e]&&r[i][e]==n)return r[i];return null}var D={name:"360",parse(e=r){var n,i;return{is:e.includes("QihooBrowser")||e.includes("QHBrowser")||e.includes(" 360 "),version:(null===(n=e.match(/QihooBrowser(HD)?\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Browser \(v([\d.]+)/))||void 0===i?void 0:i[1])||""}},async is(){let e=this.parse().is;if(null!=i&&i.chrome){let n=parseInt(o.parse().version);k("type","application/360softmgrplugin")||k("type","application/mozilla-npqihooquicklogin")||k("type","application/npjlgplayer3-chrome-jlp")||n>36&&null!=i&&i.showModalDialog?e=!0:n>45&&(e=k("type","application/vnd.chromium.remoting-viewer"),!e&&n>=69&&(e=k("type","application/asx")))}return e}},R={name:"360SE",parse(e=r){let n=parseInt(o.parse(e).version);return{is:e.includes("360SE"),version:{122:"15.3",114:"15.0",108:"14.0",86:"13.0",78:"12.0",69:"11.0",63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[n]||""}},async is(){let e=!1;var n;await D.is()&&((k("type","application/gameplugin")||null!=i&&null!==(n=i.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.filter((e=>"Not.A/Brand"==e.brand)).length)&&(e=!0));return e||new Promise((function(e){fetch("chrome-extension://fjbbmgamncjadhlpmffehlmmkdnkiadk/css/content.css").then((function(){e(!0)})).catch((function(){e(!1)}))}))}},W={name:"360EE",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("360EE"),version:(null===(n=e.match(/Browser \(v([\d.]+)/))||void 0===n?void 0:n[1])||{122:"22.3",119:"22.0",108:"14.0",95:"21.0",86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[i]||""}},async is(){let e=this.parse().is;if(k("type","application/cenroll.cenroll.version.1")||k("type","application/hwepass2001.installepass2001"))e=!0;else if(await D.is()){var n;null!==globalThis&&void 0!==globalThis&&null!==(n=globalThis.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.find((e=>"Not A(Brand"==e.brand||"Not?A_Brand"==e.brand))&&(e=!0)}return e}},L={name:"360AI",parse(e=r){let n=parseInt(o.parse(e).version);return{is:e.includes("360SEAI"),version:{114:"1.0"}[n]||""}},async is(){let e=this.parse().is;var n;await D.is()&&(null!=i&&null!==(n=i.navigator)&&void 0!==n&&null!==(n=n.userAgentData)&&void 0!==n&&n.brands.filter((e=>"Not.A/Brand"==e.brand)).length&&!k("type","application/gameplugin")&&(e=!0));return e}},V={name:"360AI",parse(e=r){var n;return{is:e.includes("360EEAI"),version:(null===(n=e.match(/360EE\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}};const H=()=>new Promise((e=>{var n;if(null==i||null===(n=i.webkit)||void 0===n||null===(n=n.messageHandlers)||void 0===n||!n.excuteCmd)return e({});{const n=`cv_${Date.now()%1e5}${100*Math.floor(Math.random())}`,r={key:"GetDeviceInfo",data:{},callback:n},a=JSON.stringify(r);i.webkit.messageHandlers.excuteCmd.postMessage(a),i[n]=function(r){delete i[n],e(JSON.parse(r||"{}"))}}}));var F={name:"360EE",parse:()=>({is:!1,version:""}),is:async()=>H().then((function(e){return"360csexm"==(null==e?void 0:e.pid)||!1})),version:async()=>H().then((function(e){return(null==e?void 0:e.module_version)||""}))},U={name:"360ENT",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("360ENT"),version:(null===(n=e.match(/Browser \(v([\d.]+)/))||void 0===n?void 0:n[1])||{86:"13.0",78:"12.0",69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[i]||""}}},_={name:"UC",parse(e=r){var n;return{is:e.includes("UCBrowser")||e.includes(" UBrowser")||e.includes("UCWEB"),version:(null===(n=e.match(/UC?Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},N={name:"QQBrowser",parse(e=r){var n;return{is:e.includes("QQBrowser"),version:(null===(n=e.match(/QQBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},Q={name:"QQ",parse(e=r){var n;return{is:e.includes("QQ/"),version:(null===(n=e.match(/QQ\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},G={name:"Baidu",parse(e=r){var n,i;return{is:e.includes("Baidu")||e.includes("BIDUBrowser")||e.includes("baidubrowser")||e.includes("baiduboxapp")||e.includes("BaiduD"),version:(null===(n=e.match(/BIDUBrowser[\s\/]([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/baiduboxapp\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},Y={name:"Maxthon",parse(e=r){var n,i;let a=parseInt(o.parse(e).version);return{is:e.includes("Maxthon"),version:(null===(n=e.match(/Maxthon\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Version\/([\d.]+)/))||void 0===i?void 0:i[1])||{109:"7.0",78:"6.0"}[a]||""}},is(){return this.parse().is||(null==i?void 0:i.maxthon)}},j={name:"Sogou",parse(e=r){var n,i,a=parseInt(o.parse(e).version);return{is:e.includes("MetaSr")||e.includes("Sogou"),version:(null===(n=e.match(/SogouMobileBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/SogouMSE\/([\d.]+)/))||void 0===i?void 0:i[1])||{94:"12.0",80:"11.0"}[a]||""}}},q={name:"Liebao",parse(e=r){var n;let i=parseInt(o.parse(e).version);return{is:e.includes("LBBROWSER")||e.includes("LieBaoFast"),version:(null===(n=e.match(/LieBaoFast\/([\d.]+)/))||void 0===n?void 0:n[1])||{112:"9.0",79:"8.0",57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[i]||""}},is(){return this.parse().is||(null==i?void 0:i.liebao)}},z={name:"2345Explorer",parse(e=r){var n,i;let a=parseInt(o.parse(e).version);return{is:e.includes("2345Explorer")||e.includes("Mb2345Browser")||e.includes("2345chrome"),version:(null===(n=e.match(/2345Explorer\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/Mb2345Browser\/([\d.]+)/))||void 0===i?void 0:i[1])||{109:"13.0",69:"10.0",55:"9.9"}[a]||""}},async is(){let e=this.parse().is;var n,r;e||(e=(null==i?void 0:i.chrome)&&((null==i||null===(n=i.chrome)||void 0===n?void 0:n.adblock2345)||(null==i||null===(r=i.chrome)||void 0===r?void 0:r.common2345)));return e}},K={name:"115Browser",parse(e=r){var n;return{is:e.includes("115Browser"),version:(null===(n=e.match(/115Browser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},X={name:"TheWorld",parse(e=r){var n;return{is:e.includes("TheWorld"),version:(null===(n=e.match(/TheWorld ([\d.]+)/))||void 0===n?void 0:n[1])||""}}},$={name:"Quark",parse(e=r){var n,i;return{is:e.includes("Quark"),version:(null===(n=e.match(/Quark\/([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/QuarkPC\/([\d.]+)/))||void 0===i?void 0:i[1])||""}}},Z={name:"Qiyu",parse(e=r){var n;return{is:e.includes("Qiyu"),version:(null===(n=e.match(/Qiyu\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},J={name:"Lenovo",parse(e=r){var n;return{is:e.includes("SLBrowser"),version:(null===(n=e.match(/SLBrowser\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ee={name:"Wechat",parse(e=r){var n;return{is:e.includes("MicroMessenger"),version:(null===(n=e.match(/MicroMessenger\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ne={name:"WechatWork",parse(e=r){var n;return{is:e.includes("wxwork"),version:(null===(n=e.match(/wxwork\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ie={name:"Taobao",parse(e=r){var n;return{is:e.includes("AliApp(TB"),version:(null===(n=e.match(/AliApp\(TB\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},re={name:"Alipay",parse(e=r){var n;return{is:e.includes("AliApp(AP"),version:(null===(n=e.match(/AliApp\(AP\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},ae={name:"Weibo",parse(e=r){var n;return{is:e.includes("Weibo"),version:(null===(n=e.match(/weibo__([\d.]+)/))||void 0===n?void 0:n[1])||""}}},oe={name:"Douban",parse(e=r){var n;return{is:e.includes("com.douban.frodo"),version:(null===(n=e.match(/com.douban.frodo\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},te={name:"Toutiao",parse(e=r){var n;return{is:e.includes("NewsArticle"),version:(null===(n=e.match(/NewsArticle\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},se={name:"WebKit",parse:(e=r)=>({is:e.includes("AppleWebKit")})},le={name:"Trident",parse:(e=r)=>({is:e.includes("Trident")||e.includes("NET CLR")})},de={name:"Gecko",parse:(e=r)=>({is:e.includes("Gecko/")})},ue={name:"Servo",parse:(e=r)=>({is:e.includes("Servo/")})},ce={name:"Presto",parse:(e=r)=>({is:e.includes("Presto")})},ve={name:"KHTML",parse:(e=r)=>({is:e.includes("KHTML/")})};let me=[a,o,t,s,l,d,u,c,v,m,p,h,g,f,b,w,S,y,B,A,C,E,x,T,P,M,I,O,D,W,R,F,L,V,U,_,N,Q,G,Y,j,q,z,K,X,$,Z,J,ee,ne,ie,re,ae,oe,{name:"Suning",parse(e=r){var n;return{is:e.includes("SNEBUY-APP"),version:(null===(n=e.match(/SNEBUY-APP([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"iQIYI",parse(e=r){var n;return{is:e.includes("IqiyiApp"),version:(null===(n=e.match(/IqiyiVersion\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"DingTalk",parse(e=r){var n;return{is:e.includes("DingTalk"),version:(null===(n=e.match(/DingTalk\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Douyin",parse(e=r){var n;return{is:e.includes("aweme"),version:(null===(n=e.match(/app_version\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},te,{name:"Facebook",parse(e=r){var n;return{is:e.includes("Facebook")||e.includes("FBAV/"),version:(null===(n=e.match(/FBAV\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Googlebot",parse(e=r){var n;return{is:e.includes("Googlebot"),version:(null===(n=e.match(/Googlebot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Baiduspider",parse(e=r){var n;return{is:e.includes("Baiduspider"),version:(null===(n=e.match(/Baiduspider(-render)?\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Sogouspider",parse(e=r){var n;return{is:e.match(/Sogou (\S+) Spider\/([\d.]+)/i),version:(null===(n=e.match(/Sogou (\S+) Spider\/([\d.]+)/i))||void 0===n?void 0:n[1])||""}}},{name:"Bingbot",parse(e=r){var n;return{is:e.includes("bingbot"),version:(null===(n=e.match(/bingbot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"360Spider",parse:(e=r)=>({is:e.includes("360Spider")||e.includes("HaosouSpider"),version:""})},{name:"Bytespider",parse:(e=r)=>({is:e.includes("Bytespider"),version:""})},{name:"YisouSpider",parse(e=r){var n;return{is:e.includes("YisouSpider"),version:(null===(n=e.match(/YisouSpider\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"YodaoBot",parse(e=r){var n;return{is:e.includes("YodaoBot"),version:(null===(n=e.match(/YodaoBot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"YandexBot",parse(e=r){var n;return{is:e.includes("YandexBot"),version:(null===(n=e.match(/YandexBot\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Headless",parse(e=r){var n;return{is:e.includes("HeadlessChrome/"),version:(null===(n=e.match(/HeadlessChrome\/([\d.]+)/))||void 0===n?void 0:n[1])||""}},async is(){return this.parse().is??""==(null==i?void 0:i.navigator)}}];me.forEach((e=>{e.is||(e.is=async function(){return e.parse().is}),e.version||(e.version=async function(){return e.parse().version})}));let pe=[se,le,de,ue,ce,ve];pe.forEach((e=>{e.is||(e.is=async function(){return e.parse().is})}));var he={name:"browser",parse(e=r){let n="",i="";me.forEach((function(r){r.parse(e).is&&(n=r.name,i=r.parse(e).version)}));let a="";var s,l;(pe.forEach((function(n){n.parse(e).is&&(a=n.name)})),"Chrome"==n&&e.match(/\S+Browser/)&&(n=e.match(/\S+Browser/)[0]),"Chrome"==n&&e.match(/\S+Browser/))&&(i=(null===(s=e.replace(/^.*Browser\/([\d.]+).*$/))||void 0===s?void 0:s[1])||"");i||(i=(null===(l=e.match(/Version\/([\d.]+)/))||void 0===l?void 0:l[1])||"");t.parse(e).is?a=parseInt(t.parse(e).version)>75?"Blink":"EdgeHTML":o.parse(e).is&&parseInt(o.parse(e).version)>27&&(a="Blink");let d=e.includes("; wv)"),u=["Googlebot","Baiduspider","Sogouspider","Bingbot","360Spider","Bytespider","YandexBot"].includes(n);return{browser:n,browserVersion:i,engine:a,isWebview:d,isRobot:u}},async getInfo(){var e;let{browser:n,browserVersion:i,engine:a,isWebview:o,isRobot:t}=this.parse();for(let e of me)await e.is()&&(n=e.name,i=await e.version());let s=r;var l,d;("Chrome"==n&&s.match(/\S+Browser/)&&(n=s.match(/\S+Browser/)[0]),"Chrome"==n&&s.match(/\S+Browser/))&&(i=(null===(l=s.replace(/^.*Browser\/([\d.]+).*$/))||void 0===l?void 0:l[1])||"");i||(i=(null===(d=s.match(/Version\/([\d.]+)/))||void 0===d?void 0:d[1])||"");return{browser:n,browserVersion:i,engine:a,isWebview:o,isRobot:t,cookieEnabled:null===globalThis||void 0===globalThis||null===(e=globalThis.navigator)||void 0===e?void 0:e.cookieEnabled,userAgent:s}}},ge={name:"Windows",parse(e=r){var n;let i=(null===(n=e.match(/^Mozilla\/\d.0 \(Windows NT ([\d.]+)[;)].*$/))||void 0===n?void 0:n[1])||"";return{is:e.includes("Windows"),version:{"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"}[i]||i}},async version(){let e=this.parse().version;return new Promise((function(n){var r;null!=i&&null!==(r=i.navigator)&&void 0!==r&&r.userAgentData?i.navigator.userAgentData.getHighEntropyValues(["platformVersion"]).then((function(e){let r="";if("Windows"===i.navigator.userAgentData.platform){r=parseInt(e.platformVersion.split(".")[0])>=13?"11":"10"}n(r)})):n(e)}))}};let fe=[ge,{name:"Linux",parse:(e=r)=>({is:e.includes("Linux")||e.includes("X11"),version:""})},{name:"macOS",parse(e=r){var n;return{is:e.includes("Macintosh"),version:(null===(n=e.match(/Mac OS X -?([\d_]+)/))||void 0===n?void 0:n[1].replace(/_/g,"."))||""}}},{name:"Android",parse(e=r){var n;return{is:e.includes("Android")||e.includes("Adr"),version:(null===(n=e.match(/Android ([\d.]+);/))||void 0===n?void 0:n[1])||""}}},{name:"HarmonyOS",parse(e=r){var n,i;let a=(null===(n=e.match(/HarmonyOS (\d+.\d+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/OpenHarmony(\d+.\d+)/))||void 0===i?void 0:i[1])||"";if(!a){var o,t;let n=+(null===(o=e.match(/HMSCore (\d+.\d+)/))||void 0===o?void 0:o[1])||0;n>=6.1?a="4.0":n>=6?a="3.0":n>=5?a="2.0":n>=4&&(a="1.0"),a={10:"3.0",12:"4.0"}[(null===(t=e.match(/Android (\d+);/))||void 0===t?void 0:t[1])||0]??a}return{is:e.includes("HarmonyOS")||e.includes("OpenHarmony")||e.includes("ArkWeb"),version:a}}},{name:"Ubuntu",parse:(e=r)=>({is:e.includes("Ubuntu"),version:""})},{name:"FreeBSD",parse:(e=r)=>({is:e.includes("FreeBSD"),version:""})},{name:"Debian",parse(e=r){var n;return{is:e.includes("Debian"),version:(null===(n=e.match(/Debian\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"iOS",parse(e=r){var n;return{is:e.includes("like Mac OS X"),version:(null===(n=e.match(/OS ([\d_]+) like/))||void 0===n?void 0:n[1].replace(/_/g,"."))||""}}},{name:"Windows Phone",parse(e=r){var n;return{is:e.includes("IEMobile")||e.includes("Windows Phone"),version:(null===(n=e.match(/Windows Phone( OS)? ([\d.]+);/))||void 0===n?void 0:n[2])||""}}},{name:"BlackBerry",parse:(e=r)=>({is:e.includes("BlackBerry")||e.includes("RIM"),version:""})},{name:"MeeGo",parse:(e=r)=>({is:e.includes("MeeGo"),version:""})},{name:"Symbian",parse(e=r){var n;return{is:e.includes("Symbian"),version:(null===(n=e.match(/Series60\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}},{name:"Chrome OS",parse(e=r){var n,i;return{is:e.includes("CrOS"),version:(null===(n=e.match(/MSIE ([\d.]+)/))||void 0===n?void 0:n[1])||(null===(i=e.match(/rv:([\d.]+)/))||void 0===i?void 0:i[1])||""}}},{name:"WebOS",parse(e=r){var n;return{is:e.includes("hpwOS"),version:(null===(n=e.match(/hpwOS\/([\d.]+);/))||void 0===n?void 0:n[1])||""}}},{name:"UOS",parse(e=r){var n;return{is:e.includes("UOS"),version:(null===(n=e.match(/UOS\/([\d.]+)/))||void 0===n?void 0:n[1])||""}}}];fe.forEach((e=>{e.is||(e.is=async function(){return e.parse().is}),e.version||(e.version=async function(){return e.parse().version})}));var be={name:"system",parse(e=r){let n="",i="";fe.forEach((function(r){r.parse(e).is&&(n=r.name,i=r.parse(e).version)}));let a="";e.match(/(Win64|x64|WOW64|x86_64)/i)?a="Win64":e.match(/(Win32|x86|WOW32)/i)?a="Win32":e.match(/aarch64|arm64/)?a="ARM64":e.match(/arm32/)?a="ARM32":e.match(/iPhone/)?a="iPhone":e.match(/iPad/)?a="iPad":e.match(/iPod/)?a="iPod":e.match(/Android/)&&(a="Android");let o="",t=e+"|"+a;o=t.match(/armv?\d+/i)||t.match(/aarch64/)?"arm":t.match(/loongarch64/)?"loongarch":"x86";let s=e.match(/Win64|x64|WOW64|x86_64|aarch64|arm64|loongarch64/i)?64:32;return{system:n,systemVersion:i,platform:a,architecture:o,bitness:s}},async getInfo(){var e,n;let{system:r,systemVersion:a,platform:o,architecture:t,bitness:s}=this.parse();for(let e of fe)await e.is()&&(r=e.name,a=await e.version());var l,d;(null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.platform&&(o=i.navigator.platform),null!=i&&null!==(n=i.navigator)&&void 0!==n&&n.userAgentData)&&(t=await(null===(l=i.navigator.userAgentData)||void 0===l?void 0:l.getHighEntropyValues(["architecture"]).then((e=>e.architecture||t))),s=await(null===(d=i.navigator.userAgentData)||void 0===d?void 0:d.getHighEntropyValues(["bitness"]).then((e=>+e.bitness||s))));return{system:r,systemVersion:a,platform:o,architecture:t,bitness:s}}};let we=[{name:"Mobile",parse:(e=r)=>({is:e.includes("Mobi")||e.includes("iPh")||e.includes("480")})},{name:"Tablet",parse:(e=r)=>({is:e.includes("Tablet")||e.includes("Pad")||e.includes("Nexus 7")}),async is(){return this.parse().is||"MacIntel"===(null==i?void 0:i.navigator.platform)&&(null==i?void 0:i.navigator.maxTouchPoints)>1}}];we.forEach((e=>{e.is||(e.is=async function(){return e.parse().is})}));var Se={name:"device",parse(e=r){let n="Desktop";return we.forEach((function(i){i.parse(e).is&&(n=i.name)})),{device:n}},async getInfo(){var e;let n=(null===globalThis||void 0===globalThis?void 0:globalThis.devicePixelRatio)||1,i=(null===globalThis||void 0===globalThis||null===(e=globalThis.navigator)||void 0===e?void 0:e.deviceMemory)||4;return Object.assign({devicePixelRatio:n,deviceMemory:i},this.parse())}},ye={name:"gpu",parse:()=>({}),async getInfo(){let e="",n="";if(null!=i&&i.document){let o=i.document.createElement("canvas").getContext("experimental-webgl");if(o){var r,a;let i=o.getExtension("WEBGL_debug_renderer_info"),t=o.getParameter(i.UNMASKED_RENDERER_WEBGL);e=(null===(r=t.match(/ANGLE \((.+?),/))||void 0===r?void 0:r[1])||"",n=(null===(a=t.match(/, (.+?) (\(|vs_)/))||void 0===a?void 0:a[1])||""}}return{gpu:e,gpuModel:n}}};const Be=/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/,Ae=/\b(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}\b/i;let Ce=globalThis.RTCPeerConnection||globalThis.mozRTCPeerConnection||globalThis.webkitRTCPeerConnection;var Ee={name:"network",parse:()=>({}),async getInfo(){var e,n;let r="unknown",a=null==i||null===(e=i.navigator)||void 0===e?void 0:e.connection;return a&&(r=a.type||a.effectiveType,"2"!=r&&"unknown"!=r||(r="wifi")),{network:r,isOnline:(null==i||null===(n=i.navigator)||void 0===n?void 0:n.onLine)||!1,ip:await async function(){const e=new Set,n=n=>{var i;const r=null==n||null===(i=n.candidate)||void 0===i?void 0:i.candidate;if(r)for(const n of[Be,Ae]){const i=r.match(n);i&&e.add(i[0])}};return new Promise((function(i,r){const a=new Ce({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun.services.mozilla.com"}]});a.addEventListener("icecandidate",n),a.createDataChannel(""),a.createOffer().then((e=>a.setLocalDescription(e)),r);let o=20,t=null,s=function(){try{a.removeEventListener("icecandidate",n),a.close()}catch{}t&&clearInterval(t)};t=setInterval((function(){let n=[...e];n.length?(s(),i(n[0])):o?o--:(s(),i(""))}),100)}))}()}}},xe={name:"battery",parse:()=>({}),async getInfo(){var e;let n=!0,r=1;return null!=i&&null!==(e=i.navigator)&&void 0!==e&&e.getBattery&&(n=await i.navigator.getBattery().then((e=>null==e?void 0:e.charging)),r=await i.navigator.getBattery().then((e=>+(null==e?void 0:e.level)||-1))),{isCharging:n,battery:r}}};var Te={name:"screen",parse:()=>({}),async getInfo(){var e,n,r,a,o,t,s;return{screenWidth:(null==i||null===(e=i.screen)||void 0===e?void 0:e.width)||0,screenHeight:(null==i||null===(n=i.screen)||void 0===n?void 0:n.height)||0,clientWidth:(null==i||null===(r=i.document)||void 0===r||null===(r=r.documentElement)||void 0===r?void 0:r.clientWidth)||(null==i||null===(a=i.document)||void 0===a||null===(a=a.body)||void 0===a?void 0:a.clientWidth)||0,clientHeight:(null==i||null===(o=i.document)||void 0===o||null===(o=o.documentElement)||void 0===o?void 0:o.clientHeight)||(null==i||null===(t=i.document)||void 0===t||null===(t=t.body)||void 0===t?void 0:t.clientHeight)||0,screenFPS:await async function(){return new Promise((function(e){let n=0,i=1,r=[],a=function(o){if(n>0)if(i<12)r.push(o-n),n=o,i++,requestAnimationFrame(a);else{r.sort(),r=r.slice(1,11);let n=r.reduce(((e,n)=>e+n));const i=10*Math.round(1e4/n/10);e(i)}else n=o,requestAnimationFrame(a)};requestAnimationFrame(a)}))}(),screenColorDepth:null==i?void 0:i.screen.colorDepth,screenPixelDepth:null==i?void 0:i.screen.pixelDepth,isTouch:(null==i||null===(s=i.navigator)||void 0===s?void 0:s.maxTouchPoints)>0||!1}}},Pe={name:"language",parse:()=>({}),async getInfo(){var e,n,r;let a=(null==i||null===(e=i.navigator)||void 0===e?void 0:e.language)||(null==i||null===(n=i.navigator)||void 0===n?void 0:n.browserLanguage)||(null==i||null===(r=i.navigator)||void 0===r?void 0:r.systemLanguage);if("string"!=typeof a)return"Unknown language";let o=a.split("-");return o[1]&&(o[1]=o[1].toUpperCase()),{language:o.join("_")}}},Me={name:"timezone",parse:()=>({}),async getInfo(){var e;return{timezone:null===(e=Intl)||void 0===e||null===(e=e.DateTimeFormat())||void 0===e||null===(e=e.resolvedOptions())||void 0===e?void 0:e.timeZone}}};let Ie=function(e,n){return e<>>32-n},Oe=function(e,n){let i,r,a,o,t;return a=2147483648&e,o=2147483648&n,i=1073741824&e,r=1073741824&n,t=(1073741823&e)+(1073741823&n),i&r?2147483648^t^a^o:i|r?1073741824&t?3221225472^t^a^o:1073741824^t^a^o:t^a^o},ke=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e&n|~e&i}(n,i,r),a),t)),Oe(Ie(e,o),n)},De=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e&i|n&~i}(n,i,r),a),t)),Oe(Ie(e,o),n)},Re=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return e^n^i}(n,i,r),a),t)),Oe(Ie(e,o),n)},We=function(e,n,i,r,a,o,t){return e=Oe(e,Oe(Oe(function(e,n,i){return n^(e|~i)}(n,i,r),a),t)),Oe(Ie(e,o),n)},Le=function(e){let n,i,r="",a="";for(i=0;i<=3;i++)n=e>>>8*i&255,a="0"+n.toString(16),r+=a.substr(a.length-2,2);return r};function Ve(e){let n,i,r,a,o,t,s,l,d,u=Array();for(e=function(e){e=e.replace(/\x0d\x0a/g,"\n");let n="";for(let i=0;i127&&r<2048?(n+=String.fromCharCode(r>>6|192),n+=String.fromCharCode(63&r|128)):(n+=String.fromCharCode(r>>12|224),n+=String.fromCharCode(r>>6&63|128),n+=String.fromCharCode(63&r|128))}return n}(e),u=function(e){let n,i=e.length,r=i+8,a=16*((r-r%64)/64+1),o=Array(a-1),t=0,s=0;for(;s>>29,o}(e),t=1732584193,s=4023233417,l=2562383102,d=271733878,n=0;nnew Promise((function(e,n){let i=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,44100,44100),r=i.createOscillator();r.type="triangle",r.frequency.setValueAtTime(1e4,i.currentTime);let a=i.createDynamicsCompressor();[["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]].forEach((function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]].setValueAtTime&&a[e[0]].setValueAtTime(e[1],i.currentTime)})),r.connect(a),a.connect(i.destination),r.start(0),i.startRendering();let o=setTimeout((function(){i.oncomplete=function(){},i=null,e(Ve("audio Timeout"))}),1e3);i.oncomplete=function(n){o&&clearTimeout(o);let i=n.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,n){return e+Math.abs(n)}),0).toString();r.disconnect(),a.disconnect(),e(Ve(i))}}))},Qe={name:"webgl",is(){if(null==i||!i.document)return!1;const e=i.document.createElement("canvas"),n=e.getContext("webgl")||e.getContext("experimental-webgl");return n&&n instanceof WebGLRenderingContext}},Ge={parse(e){let n={};return[he,be,Se].forEach((i=>{n=Object.assign(n,i.parse(e))})),n},async getInfo(e=["browser","system","device","gpu","network","battery","screen","language","timezone"]){let n={},i=[he,be,Se,ye,Ee,xe,Te,Pe,Me].filter((n=>e.includes(n.name)));for(let e of i)n=Object.assign(n,await e.getInfo());return n},async getFingerprint(e=["webgl","canvas","font","audio"]){let n={},i=[He,Fe,_e,Ne].filter((n=>e.includes(n.name))),a=[r];for(let e of i)n[e.name]=await e.getInfo(),a.push(n[e.name]);return n.value=Ve(a.join(",")),n},isSupport(e,n){let i=[Ue,Qe].find((n=>e==n.name));return!!i&&i.is(n)}};export{Ge as default};
diff --git a/src/module/browser-parser.js b/src/module/browser-parser.js
index 5e46e74..7e6a79a 100644
--- a/src/module/browser-parser.js
+++ b/src/module/browser-parser.js
@@ -58,6 +58,7 @@ import _Suning from './browser/Suning.js';
import _iQIYI from './browser/iQIYI.js';
import _DingTalk from './browser/DingTalk.js';
import _Douyin from './browser/Douyin.js';
+import _Facebook from './browser/Facebook.js';
import _Googlebot from './browser/Googlebot.js';
import _Baiduspider from './browser/Baiduspider.js';
import _Sogouspider from './browser/Sogouspider.js';
@@ -78,7 +79,7 @@ import _KHTML from './engine/KHTML.js';
import userAgent from './runtime/userAgent.js';
-let browserList = [_Safari, _Chrome, _Edge, _IE, _Firefox, _Firefox_Focus, _Chromium, _Opera, _Opera_GX, _Vivaldi, _Yandex, _Brave, _Arora, _Lunascape, _QupZilla, _Coc_Coc, _Kindle, _Iceweasel, _Konqueror, _SeaMonkey, _Epiphany, _Huawei, _OPPO, _Vivo, _Xiaomi, _Meizu, _OnePlus, _Samsung, _360, _360EE, _360SE, _360EE_macOS, _360AI, _360AI_macOS, _360ENT, _UC, _QQBrowser, _QQ, _Baidu, _Maxthon, _Sogou, _Liebao, _2345Explorer, _115Browser, _TheWorld, _Quark, _Qiyu, _Lenovo, _Wechat, _WechatWork, _Taobao, _Alipay, _Weibo, _Douban, _Suning, _iQIYI, _DingTalk, _Douyin, _Toutiao, _Googlebot, _Baiduspider, _Sogouspider, _Bingbot, _360Spider, _Bytespider, _YisouSpider, _YodaoBot, _YandexBot, _Headless];
+let browserList = [_Safari, _Chrome, _Edge, _IE, _Firefox, _Firefox_Focus, _Chromium, _Opera, _Opera_GX, _Vivaldi, _Yandex, _Brave, _Arora, _Lunascape, _QupZilla, _Coc_Coc, _Kindle, _Iceweasel, _Konqueror, _SeaMonkey, _Epiphany, _Huawei, _OPPO, _Vivo, _Xiaomi, _Meizu, _OnePlus, _Samsung, _360, _360EE, _360SE, _360EE_macOS, _360AI, _360AI_macOS, _360ENT, _UC, _QQBrowser, _QQ, _Baidu, _Maxthon, _Sogou, _Liebao, _2345Explorer, _115Browser, _TheWorld, _Quark, _Qiyu, _Lenovo, _Wechat, _WechatWork, _Taobao, _Alipay, _Weibo, _Douban, _Suning, _iQIYI, _DingTalk, _Douyin, _Toutiao, _Facebook, _Googlebot, _Baiduspider, _Sogouspider, _Bingbot, _360Spider, _Bytespider, _YisouSpider, _YodaoBot, _YandexBot, _Headless];
browserList.forEach(item=>{
if(!item.is){
item.is = async function(){
diff --git a/src/module/browser/Facebook.js b/src/module/browser/Facebook.js
new file mode 100644
index 0000000..5e592eb
--- /dev/null
+++ b/src/module/browser/Facebook.js
@@ -0,0 +1,11 @@
+import userAgent from '../runtime/userAgent.js';
+
+export default {
+ name:'Facebook',
+ parse(ua = userAgent){
+ return {
+ is:ua.includes('Facebook')||ua.includes('FBAV/'),
+ version:ua.match(/FBAV\/([\d.]+)/)?.[1]||''
+ };
+ }
+}
\ No newline at end of file