var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); 'use strict'; /* eslint-disable quotes, prefer-template */ const searchEngines = ['google', 'bing', 'yahoo', 'duckduckgo', 'ask', 'yandex', 'baidu', 'naver', 'sogou', 'aol', 'seznam', 'rambler', 'so', 'babylon', 'daum', 'kvasir']; function getObjectFromWebStorage(key, storage) { storage = window[(storage || 'local') + 'Storage']; if (!storage) return null; const item = storage.getItem(key); return item ? JSON.parse(item) : {}; } class FdcTrackingClass { constructor() { this.source = ''; this.visits = {}; this.pages = {}; this.utm = {}; } onPageChange() { if (navigator.doNotTrack === 1) return; const pages = getObjectFromWebStorage('fdc4_pages', 'session'); const currentUrl = window.location.href; if (!pages.first) { pages.first = currentUrl; } pages.previous = pages.current || ''; pages.current = currentUrl; pages.total = pages.total ? pages.total + 1 : 1; this.pages = pages; sessionStorage.setItem('fdc4_pages', JSON.stringify(pages)); } onLoad() { if (navigator.doNotTrack === 1) return; let source = sessionStorage.getItem('fdc4_source'); const visits = getObjectFromWebStorage('fdc4_visits'); const utm = getObjectFromWebStorage('fdc4_utm', 'session'); if (!source) { source = document.referrer || window.location.href; sessionStorage.setItem('fdc4_source', source); const currentDate = JSON.stringify(new Date()); if (!visits.total) visits.total = 0; visits.total++; if (!visits.first) visits.first = currentDate; visits.previous = visits.current || ''; visits.current = currentDate; localStorage.setItem('fdc4_visits', JSON.stringify(visits)); const utmMap = ['source', 'medium', 'campaign', 'term', 'content']; const urlSearchParams = (new URL(document.location)).searchParams; let utmPresent = false; utmMap.forEach(utmKey => { const utmValue = urlSearchParams.get('utm_' + utmKey) || utm[utmKey] || null; if (utmValue) { utmPresent = true; } utm[utmKey] = utmValue; }); if (!utmPresent && source) { const hostname = (new URL(source)).hostname; utm.medium = 'referral'; utm.content = source; utm.source = !hostname || hostname === window.location.hostname ? `fueled` : hostname; if (utm.source === 'fueled') utm.medium = 'direct'; else if (searchEngines.indexOf(utm.source) > -1) utm.medium = 'organic'; } localStorage.setItem('fdc4_utm', JSON.stringify(utm)); } this.source = source; this.visits = visits; this.utm = utm; this.onPageChange(); } } const FdcTracking = new FdcTrackingClass(); FdcTracking.onLoad(); } /* FILE ARCHIVED ON 19:49:13 Apr 01, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:48:00 Nov 17, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.456 exclusion.robots: 0.022 exclusion.robots.policy: 0.012 esindex: 0.01 cdx.remote: 14.272 LoadShardBlock: 121.593 (3) PetaboxLoader3.datanode: 95.402 (5) PetaboxLoader3.resolve: 160.305 (3) load_resource: 209.36 (2) */