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"); (function (window) { //Init var trackerName = objectExist(window['HeapAnalyticsObject']) && trimName(window['HeapAnalyticsObject']) || "eca"; var actions = window[trackerName].q || []; var DOMAIN = 'https://web.archive.org/web/20220106083650/https://ecomm.events'; var actionsProcessor = new ActionProcessor(); window[trackerName] = processAction; for (var i = 0; i < actions.length; i++) { processAction.apply( null, [].slice.call(actions[i])); } function processAction(actionType) { if (!actionsProcessor.hasOwnProperty(actionType)) { try {console.warn("Can't send action", actionType)} catch(e) {} return; } return actionsProcessor[actionType].apply(actionsProcessor, arguments) } function ActionProcessor() { var context = {}; init(); context.send = function() { send.apply(null, arguments); }; context.config = function() { config.apply(null,[].slice.call(arguments,1)); }; context.get = function() { return get.apply(null,[].slice.call(arguments,1)); } return context; function send() { var args = arguments; var json = args[1]; if (!!window.navigator.sendBeacon) { json.visitorId = context.visitorId; if (isExpired(context.sessionId)) { resetSession(); } json.sessionId = context.sessionId; window.navigator.sendBeacon(DOMAIN+"/register", JSON.stringify(json)); logger('send', json); } } function config(key, value) { logger('config', key + '=' + value); if (key === 'visitorId' && (value == null || typeof value == 'number')) { updateVisitorId(value); } if (key === 'sessionId' && (value == null || typeof value == 'number')) { updateSessionId(value); } if (key === 'allowCookies' && (typeof value == 'boolean')) { updateAllowCookies(value); } if (key === 'verbose' && (typeof value == 'boolean')) { updateVerbose(value); } if (key === 'revokeCookies') { revokeCookies(); } } function get(key) { if (key === 'visitorId') { return context.visitorId; } if (key === 'sessionId') { return context.sessionId; } } function init() { updateVerbose(false); updateAllowCookies(false); var currentVisitorId = getVisitorIdFromStorage(); updateVisitorId(currentVisitorId); var currentSessionId = getSessionIdFromStorage(); updateSessionId(currentSessionId); } function recoveryIds() { var currentVisitorId = context.visitorId; updateVisitorId(currentVisitorId); var currentSessionId = context.sessionId; updateSessionId(currentSessionId); } function updateAllowCookies(allowCookies) { context.allowCookies = allowCookies; if (allowCookies) { recoveryIds(); } } function revokeCookies() { logger('revokeCookies'); updateAllowCookies(false); removeStorage('__eca_v_id_'); removeStorage('__eca_s_id_'); updateVisitorId(null); updateSessionId(null); } function updateVisitorId(value) { logger('updateVisitorId', value); if (value == null) { resetVisitorId(); } else { context.visitorId = initStorage("__eca_v_id_", value); } } function updateSessionId(value) { logger('updateSessionId', value); if (value == null) { resetSession(); } else { context.sessionId = initStorage("__eca_s_id_", value); } if (!context.sessionId || isExpired(context.sessionId.substring(0, context.sessionId.length - 6))){ resetSession(); } } function updateVerbose(value) { context.verbose = value; } function isExpired(timestamp) { return (1 * (new Date())) - timestamp > 30 * 60 * 1000; } function resetSession() { logger('resetSession'); context.sessionId = initStorage("__eca_s_id_", generateIdValue()); } function resetVisitorId() { logger('resetVisitorId'); context.visitorId = initStorage("__eca_v_id_", generateIdValue()); } function initStorage(key, value) { if (!value) { value = generateIdValue(); } if (context.allowCookies) { try { logger('localStorage.setItem', key + '=' + value); localStorage.setItem(key, value); } catch (e) { logger('initStorage error', e); } } return value; } function removeStorage(key) { logger('removeStorage', key); try { localStorage.removeItem(key); } catch (e) { logger('removeStorage error', e); } } function logger(event, message) { if (context && context.verbose) { var snapshot = { visitorId: context.visitorId, sessionId: context.sessionId, allowCookies: context.allowCookies }; console.log(event, snapshot, message); } } } function getSessionIdFromStorage (){ try { return localStorage.getItem("__eca_s_id_"); } catch (e) { return null; } } function getVisitorIdFromStorage (){ try { return localStorage.getItem("__eca_v_id_"); } catch (e) { return null; } } function generateIdValue() { var random = Math.floor( Math.pow(10, 6) * Math.random()) + "" //pad left with zero while (random.length < 6) { random = "0" + random; } return 1 * (new Date()) + "" + random; } function objectExist(a) { return !!a && (a.constructor +"" === "String") } function trimName(a) { return !!a ? a.replace(/^[\s\xa0]+|[\s\xa0]+$/g, "") : "" } })(window); } /* FILE ARCHIVED ON 08:36:50 Jan 06, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 18:08:29 Oct 27, 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.596 exclusion.robots: 0.025 exclusion.robots.policy: 0.015 esindex: 0.01 cdx.remote: 20.998 LoadShardBlock: 246.673 (6) PetaboxLoader3.datanode: 299.869 (8) PetaboxLoader3.resolve: 369.449 (4) load_resource: 439.2 (2) */