1/* eslint-disable */ 2// C0001 = stricly necessary cookies 3// C0002 = performance cookies 4// C0003 = functional cookies 5// C0004 = targeting cookies 6const PERFORMANCE_COOKIES_ID = "C0002" 7 8function getCookie(name) { 9 const value = "; " + document.cookie 10 const parts = value.split("; " + name + "=") 11 if (parts.length === 2) return parts.pop().split(";").shift() 12} 13 14function insertScript(src) { 15 let s 16 s = document.createElement("script") 17 s.src = src 18 document.head.appendChild(s) 19} 20 21function insertGtmTag(window, document, script, layer, gtmId) { 22 window[layer] = window[layer] || [] 23 window[layer].push({ 24 "gtm.start": new Date().getTime(), 25 event: "gtm.js", 26 }) 27 var firstScript = document.getElementsByTagName(script)[0] 28 var gtmScript = document.createElement(script) 29 var datalayer = layer !== "dataLayer" ? "&l=" + layer : "" 30 gtmScript.async = true 31 gtmScript.src = window._evri.gtmScript + "?id=" + gtmId + datalayer 32 if (firstScript && firstScript.parentNode) { 33 firstScript.parentNode.insertBefore(gtmScript, firstScript) 34 } 35} 36 37function insertGtmNoscriptTag() { 38 var noscriptTag = document.createElement("noscript") 39 var iframeTag = document.createElement("iframe") 40 41 iframeTag.src = window._evri.gtmNoscript + "?id=GTM-P8NK6Q4" 42 iframeTag.height = "0" 43 iframeTag.width = "0" 44 iframeTag.style.display = "none" 45 iframeTag.style.visibility = "hidden" 46 47 noscriptTag.appendChild(iframeTag) 48 49 var bodyTag = document.getElementsByTagName("body")[0] 50 if (bodyTag) { 51 bodyTag.insertBefore(noscriptTag, bodyTag.firstChild) 52 } 53} 54 55function insertScriptsAfterConsent() { 56 const appmode = getAppModeValues() 57 58 if (appmode.includes("clean")) return 59 60 if (!appmode.includes("nogtm")) { 61 insertGtmTag(window, document, "script", "dataLayer", "GTM-P8NK6Q4") 62 insertGtmNoscriptTag() 63 } 64 65 if (!appmode.includes("noabtasty")) { 66 insertScript(window._evri.abTasty) 67 } 68} 69 70function getAppModeValues() { 71 const params = new URLSearchParams(window.location.search) 72 73 const modeValue = params.get("appmode") ?? localStorage.getItem("appmode") 74 75 return modeValue?.split(",") ?? [] 76}
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.