1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3b20bc8f-3f8d-4298-9427-456983d50066",e._sentryDebugIdIdentifier="sentry-dbid-3b20bc8f-3f8d-4298-9427-456983d50066")}catch(e){}}(),(this.webpackChunkweb=this.webpackChunkweb||[]).push([[606],{606:(e,n,t)=>{t.r(n),t.d(n,{BotKind:()=>r,BotdError:()=>a,collect:()=>u,default:()=>_,detect:()=>s,detectors:()=>v,load:()=>b,sources:()=>h});var o=t(68622),i="2.0.0";const r={Awesomium:"awesomium",Cef:"cef",CefSharp:"cefsharp",CoachJS:"coachjs",Electron:"electron",FMiner:"fminer",Geb:"geb",NightmareJS:"nightmarejs",Phantomas:"phantomas",PhantomJS:"phantomjs",Rhino:"rhino",Selenium:"selenium",Sequentum:"sequentum",SlimerJS:"slimerjs",WebDriverIO:"webdriverio",WebDriver:"webdriver",HeadlessChrome:"headless_chrome",Unknown:"unknown"};class a extends Error{constructor(e,n){super(n),this.state=e,this.name="BotdError",Object.setPrototypeOf(this,a.prototype)}}function s(e,n){const t={};let o={bot:!1};for(const i in n){const a=(0,n[i])(e);let s={bot:!1};"string"===typeof a?s={bot:!0,botKind:a}:a&&(s={bot:!0,botKind:r.Unknown}),t[i]=s,s.bot&&(o=s)}return[t,o]}async function u(e){const n={},t=Object.keys(e);return await Promise.all(t.map((async t=>{const o=e[t];try{n[t]={value:await o(),state:0}}catch(i){n[t]=i instanceof a?{state:i.state,error:"".concat(i.name,": ").concat(i.message)}:{state:-3,error:i instanceof Error?"".concat(i.name,": ").concat(i.message):String(i)}}}))),n}function c(e,n){return-1!==e.indexOf(n)}function d(e,n){return-1!==e.indexOf(n)}function l(e,n){if("find"in e)return e.find(n);for(let t=0;t<e.length;t++)if(n(e[t],t,e))return e[t]}function f(e){return Object.getOwnPropertyNames(e)}function w(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];for(const i of t)if("string"===typeof i){if(c(e,i))return!0}else{if(null!=l(e,(e=>i.test(e))))return!0}return!1}function m(e){return e.reduce(((e,n)=>e+(n?1:0)),0)}const v={detectAppVersion:function(e){let n=e.appVersion;return 0===n.state&&(/headless/i.test(n.value)?r.HeadlessChrome:/electron/i.test(n.value)?r.Electron:/slimerjs/i.test(n.value)?r.SlimerJS:void 0)},detectDocumentAttributes:function(e){let n=e.documentElementKeys;return 0===n.state&&(w(n.value,"selenium","webdriver","driver")?r.Selenium:void 0)},detectErrorTrace:function(e){let n=e.errorTrace;return 0===n.state&&(/PhantomJS/i.test(n.value)?r.PhantomJS:void 0)},detectEvalLengthInconsistency:function(e){let n=e.evalLength,t=e.browserKind,o=e.browserEngineKind;if(0!==n.state||0!==t.state||0!==o.state)return;const i=n.value;return"unknown"!==o.value&&(37===i&&!c(["webkit","gecko"],o.value)||39===i&&!c(["internet_explorer"],t.value)||33===i&&!c(["chromium"],o.value))},detectFunctionBind:function(e){if(-2===e.functionBind.state)return r.PhantomJS},detectLanguagesLengthInconsistency:function(e){let n=e.languages;if(0===n.state&&0===n.value.length)return r.HeadlessChrome},detectNotificationPermissions:function(e){let n=e.notificationPermissions,t=e.browserKind;return 0===t.state&&"chrome"===t.value&&(0===n.state&&n.value?r.HeadlessChrome:void 0)},detectPluginsArray:function(e){let n=e.pluginsArray;if(0===n.state&&!n.value)return r.HeadlessChrome},detectPluginsLengthInconsistency:function(e){let n=e.pluginsLength,t=e.android,o=e.browserKind,i=e.browserEngineKind;if(0===n.state&&0===t.state&&0===o.state&&0===i.state&&"chrome"===o.value&&!t.value&&"chromium"===i.value)return 0===n.value?r.HeadlessChrome:void 0},detectProcess:function(e){let n=e.process;var t;return 0===n.state&&("renderer"===n.value.type||null!=(null===(t=n.value.versions)||void 0===t?void 0:t.electron)?r.Electron:void 0)},detectUserAgent:function(e){let n=e.userAgent;return 0===n.state&&(/PhantomJS/i.test(n.value)?r.PhantomJS:/Headless/i.test(n.value)?r.HeadlessChrome:/Electron/i.test(n.value)?r.Electron:/slimerjs/i.test(n.value)?r.SlimerJS:void 0)},detectWebDriver:function(e){let n=e.webDriver;if(0===n.state&&n.value)return r.HeadlessChrome},detectWebGL:function(e){let n=e.webGL;if(0===n.state){const e=n.value,t=e.vendor,o=e.renderer;if("Brian Paul"==t&&"Mesa OffScreen"==o)return r.HeadlessChrome}},detectWindowExternal:function(e){let n=e.windowExternal;return 0===n.state&&(/Sequentum/i.test(n.value)?r.Sequentum:void 0)},detectWindowSize:function(e){let n=e.windowSize,t=e.documentFocus;if(0!==n.state||0!==t.state)return!1;const o=n.value,i=o.outerWidth,a=o.outerHeight;return t.value&&0===i&&0===a?r.HeadlessChrome:void 0},detectMimeTypesConsistent:function(e){let n=e.mimeTypesConsistent;if(0===n.state&&!n.value)return r.Unknown},detectProductSub:function(e){let n=e.productSub,t=e.browserKind;return 0===n.state&&0===t.state&&("chrome"!==t.value&&"safari"!==t.value&&"opera"!==t.value&&"wechat"!==t.value||"20030107"===n.value?void 0:r.Unknown)},detectDistinctiveProperties:function(e){let n=e.distinctiveProps;if(0!==n.state)return!1;const t=n.value;let o;for(o in t)if(t[o])return o}};function g(){var e,n;const t=window,o=navigator;return m(["webkitPersistentStorage"in o,"webkitTemporaryStorage"in o,0===o.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5?"chromium":m(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===o.vendor.indexOf("Apple"),"getStorageUpdates"in o,"WebKitMediaKeys"in t])>=4?"webkit":m(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4?"gecko":"unknown"}const h={android:function(){const e=g(),n="gecko"===e,t=window,o=navigator,i="connection";return"chromium"===e?m([!("SharedWorker"in t),o[i]&&"ontypechange"in o[i],!("sinkId"in new Audio)])>=2:!!n&&m(["onorientationchange"in t,"orientation"in t,/android/i.test(o.appVersion)])>=2},browserKind:function(){var e;const n=null===(e=navigator.userAgent)||void 0===e?void 0:e.toLowerCase();return d(n,"edg/")?"edge":d(n,"trident")||d(n,"msie")?"internet_explorer":d(n,"wechat")?"wechat":d(n,"firefox")?"firefox":d(n,"opera")||d(n,"opr")?"opera":d(n,"chrome")?"chrome":d(n,"safari")?"safari":"unknown"},browserEngineKind:g,documentFocus:function(){return void 0!==document.hasFocus&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){const e=navigator.appVersion;if(void 0==e)throw new a(-1,"navigator.appVersion is undefined");return e},rtt:function(){if(void 0===navigator.connection)throw new a(-1,"navigator.connection is undefined");if(void 0===navigator.connection.rtt)throw new a(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},pluginsLength:function(){if(void 0===navigator.plugins)throw new a(-1,"navigator.plugins is undefined");if(void 0===navigator.plugins.length)throw new a(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(void 0===navigator.plugins)throw new a(-1,"navigator.plugins is undefined");if(void 0===window.PluginArray)throw new a(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(e){if(e instanceof Error&&null!=e.stack)return e.stack.toString()}throw new a(-3,"errorTrace signal unexpected behaviour")},productSub:function(){const e=navigator.productSub;if(void 0===e)throw new a(-1,"navigator.productSub is undefined");return e},windowExternal:function(){if(void 0===window.external)throw new a(-1,"window.external is undefined");const e=window.external;if("function"!==typeof e.toString)throw new a(-2,"window.external.toString is not a function");return e.toString()},mimeTypesConsistent:function(){if(void 0===navigator.mimeTypes)throw new a(-1,"navigator.mimeTypes is undefined");const e=navigator.mimeTypes;let n=Object.getPrototypeOf(e)===MimeTypeArray.prototype;for(let t=0;t<e.length;t++)n&&(n=Object.getPrototypeOf(e[t])===MimeType.prototype);return n},evalLength:function(){return eval.toString().length},webGL:function(){const e=document.createElement("canvas");if("function"!==typeof e.getContext)throw new a(-2,"HTMLCanvasElement.getContext is not a function");const n=e.getContext("webgl");
1if(null===n)throw new a(-4,"WebGLRenderingContext is null");if("function"!==typeof n.getParameter)throw new a(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:n.getParameter(n.VENDOR),renderer:n.getParameter(n.RENDERER)}},webDriver:function(){if(void 0==navigator.webdriver)throw new a(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){const e=navigator,n=[],t=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==t&&n.push([t]),Array.isArray(e.languages)){"chromium"===g()&&function(){const e=window;return m([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl==="[object Intl]",""+e.Reflect==="[object Reflect]"])>=3}()||n.push(e.languages)}else if("string"===typeof e.languages){const t=e.languages;t&&n.push(t.split(","))}return n},notificationPermissions:async function(){if(void 0===window.Notification)throw new a(-1,"window.Notification is undefined");if(void 0===navigator.permissions)throw new a(-1,"navigator.permissions is undefined");const e=navigator.permissions;
1if("function"!==typeof e.query)throw new a(-2,"navigator.permissions.query is not a function");try{const n=await e.query({name:"notifications"});return"denied"===window.Notification.permission&&"prompt"===n.state}catch(n){throw new a(-3,"notificationPermissions signal unexpected behaviour")}},documentElementKeys:function(){if(void 0===document.documentElement)throw new a(-1,"document.documentElement is undefined");const e=document.documentElement;if("function"!==typeof e.getAttributeNames)throw new a(-2,"document.documentElement.getAttributeNames is not a function");return e.getAttributeNames()},functionBind:function(){if(void 0===Function.prototype.bind)throw new a(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){const e=window.process,n="window.process is";if(void 0===e)throw new a(-1,"".concat(n," undefined"));if(e&&"object"!==typeof e)throw new a(-3,"".concat(n," not an object"));return e},distinctiveProps:function(){const e={[r.Awesomium]:{window:["awesomium"]},[r.Cef]:{window:["RunPerfTest"]},[r.CefSharp]:{window:["CefSharp"]},[r.CoachJS]:{window:["emit"]},[r.FMiner]:{window:["fmget_targets"]},[r.Geb]:{window:["geb"]}
1,[r.NightmareJS]:{window:["__nightmare","nightmare"]},[r.Phantomas]:{window:["__phantomas"]},[r.PhantomJS]:{window:["callPhantom","_phantom"]},[r.Rhino]:{window:["spawn"]},[r.Selenium]:{window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},[r.WebDriverIO]:{window:["wdioElectron"]},[r.WebDriver]:{window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},[r.HeadlessChrome]:{window:["domAutomation","domAutomationController"]}};let n;const t={},o=f(window);let i=[];for(n in void 0!==window.document&&(i=f(window.document)),e){const r=e[n];if(void 0!==r){const e=void 0!==r.window&&w(o,...r.window),a=!(void 0===r.document||!i.length)&&w(i,...r.document);t[n]=e||a}}return t}};class p{constructor(){this.components=void 0,this.detections=void 0}getComponents(){return this.components}getDetections(){return this.detections}detect(){if(void 0===this.components)throw new Error("BotDetector.detect can't be called before BotDetector.collect");const e=s(this.components,v),n=(0,o.A)(e,2),t=n[0],i=n[1];return this.detections=t,i}async collect(){return this.components=await u(h),this.components}}async function b(){let e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).monitoring;(void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{const e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/botd/v".concat(i,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}();const n=new p;return await n.collect(),n}var _={load:b}}}]); 2//# sourceMappingURL=606.c362fc0c.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.