(function() { function bxBootstrap() { var re = /bot|crawl|slurp|spider|mediapartners|headlesschrome|snap-prefetch|remotasks|woorank|uptime\.com|facebookexternalhit|facebookcatalog/i; if (re.test(navigator.userAgent) || navigator.userAgent == '') { return; } if (!(window.bouncex&&bouncex.website)) { var pushedData = []; if(window.bouncex && bouncex.push && bouncex.length){ pushedData = bouncex; } window.bouncex = {}; bouncex.pushedData = pushedData; bouncex.website = {"id":4981,"name":"The Bay","cookie_name":"bounceClientVisit4981","domain":"thebay.com","ct":"fp_local_storage","ally":0,"ei":0,"tcjs":"","cjs":"// enable.feature.PERSISTENT_COUPONS","force_https":false,"waypoints":false,"content_width":900,"gai":"","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":0,"gmp":0,"whitelist_check":1},"burls":[],"ple":false,"fbe":true,"mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"/* --------------------------------- HELPERS -------------------------------- */\nvar ADD_COLOR = \"-COLOR-\";\n\nfunction getUrl() {\n return bouncex.utils.url.allowParams('q');\n}\n\nfunction setVarAndCookie(varName, value) {\n bouncex.setVar(varName, value);\n bouncex.setBounceCookie();\n\n return;\n}\n\nfunction slugify(text) {\n return text.toString().toLowerCase()\n .replace(/\\s+/g, '-') // Replace spaces with -\n .replace(/[^\\w\\-]+/g, '') // Remove all non-word chars\n .replace(/\\-\\-+/g, '-') // Replace multiple - with single -\n .replace(/^-+/, '') // Trim - from start of text\n .replace(/-+$/, ''); // Trim - from end of text\n}\n\nfunction getGroupIdFromUrl(url) {\n var urlNoParams = url ? bouncex.utils.url.allowParams([], url) : \"\";\n return urlNoParams.split(\"/\").pop().split(\"-\").pop().replace(/.html/g, \"\");\n}\n\nfunction buildColorizedId(itemId, color) {\n var groupId = getGroupIdFromItemId(itemId);\n if (!color) {\n return groupId;\n }\n\n var decodedColor = slugify(decodeURIComponent(color));\n\n return decodedColor && decodedColor !== \"undefined\" ? groupId + ADD_COLOR + decodedColor : groupId + ADD_COLOR + color.toLowerCase();\n}\n\n// removes -COLOR- if old item ID contains it\nfunction getGroupIdFromItemId(itemId) {\n return itemId ? itemId.split(ADD_COLOR)[0] : \"\";\n}\n\nfunction getGroupId() {\n return jQuery(\".product-detail\").attr(\"data-masterid\");\n}\n\nfunction getColorParam(url) {\n var colorParam = \"_color=\";\n\n if (!url || url.indexOf(colorParam) < 0) {\n return \"\";\n }\n\n return url.split(\"?\").pop().split(colorParam).pop().split(\"&\")[0];\n}\n\n// returns first color if none exist\nfunction getSelectedColor() {\n var $colors = jQuery(\".color-value\"),\n colorAttribute = \"data-attr-value\",\n urlFromSwatch = jQuery(\"fieldset a[href*='_color=']\").attr(\"href\") || \"\";\n\n return $colors.filter(\".selected\").first().attr(colorAttribute)\n || $colors.first().attr(colorAttribute)\n || jQuery(\"[class*='colorlink'].selected\").first().text().trim()\n || getColorParam(urlFromSwatch);\n}\n\nfunction isEnglish(s) {\n s = s || \"\";\n var pattern = /^[\\sa-zA-Z0-9™®©!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*$/;\n return !!s.match(pattern);\n}\n\n/* ------------------------------ ITEM TRACKING ----------------------------- */\n\nfunction getItem() {\n var url = getUrl(),\n category = lastBreadcrumb = jQuery('.breadcrumb-item a').last().text().trim().toLowerCase(),\n imageUrl = jQuery(\".primary-thumbnail img\").first().attr(\"src\"),\n groupId = getGroupId(),\n color = '';\n\n if(jQuery('.color-wrapper > li').length > 0 || jQuery('.custom-color-dropdown').length > 0) {\n color = getSelectedColor();\n }\n\n return {\n id: buildColorizedId(groupId, color),\n copy: jQuery('.product-name').text().trim(),\n category: category !== \"home\" ? category : \"global\",\n url: url && groupId && color ? url + \"?dwvar_\" + groupId + \"_color=\" + color.replace(/ /g, \"_\") : url,\n imageurl: imageUrl ? bouncex.utils.url.allowParams([], imageUrl) : \"\",\n price: bouncex.vars.prod_price || jQuery('.js-final-sale-price').eq(0).text().replace(/[^0-9.]/g, ''),\n instock: isInStock()\n };\n}\n\nfunction fireItemEvents(item, groupId) {\n bouncex.push(['item', item]);\n fireViewItem(item.id, groupId);\n}\n\nfunction fireViewItem(itemId) {\n bouncex.push(['view item', {\n 'item:id': itemId,\n 'item:itemgroupid': getGroupIdFromItemId(itemId)\n }]);\n setVarAndCookie(\"last_viewed_item_id\", itemId);\n return;\n}\n\nfunction isExcluded(item) {\n return item.url.indexOf('gift-card') > -1;\n}\n\nfunction isInStock(){\n var skus = bouncex.utils.getNestedProp('pageDataObj.products', '')[0].skus;\n \n for (i = 0; i < skus.length; i++){\n if (Number(skus[i].available_dc) !== 0){\n return true;\n break;\n }\n }\n\n return false\n}\n\nfunction initializeItemEvents() {\n var item;\n\n bouncex.et.onTrue(\n function () {\n item = getItem();\n return itemLoaded(item);\n },\n function () {\n if (isExcluded(item)) {\n return;\n }\n fireItemEvents(item);\n item.groupid = getGroupId();\n\n if (\n bouncex.utils.getNestedProp(\"prods[0].skus\", []).length === 1\n || jQuery(\".attribute .size\").text().toLowerCase().indexOf(\"one size\") > -1\n ) {\n fireSelectSku(item.id, item.groupid, jQuery('.product-detail').attr('data-pid'))\n }\n initSkuAndItemChangeEvents(item);\n return;\n },\n 10\n );\n\n return;\n}\n\nfunction itemLoaded(item) {\n return !!item.id &&\n !!item.copy &&\n !!item.category &&\n !!item.price &&\n !!item.url &&\n !!item.imageurl &&\n isEnglish(item.copy);\n}\n\nfunction isNotOldItem(item, newItem) {\n return item.imageurl !== newItem.imageurl\n && item.id !== newItem.id\n && item.url !== newItem.url;\n}\n\n/* ------------------------------ SKU TRACKING ------------------------------ */\nfunction fireSelectSku(itemId, groupId, skuId) {\n if (itemId && groupId && skuId && groupId !== skuId) {\n bouncex.push([\n 'select_sku',\n {\n 'item:id': itemId,\n 'item:itemgroupid': groupId,\n 'item:feedid': skuId\n }\n ]);\n }\n return;\n}\n\n\nfunction initSkuAndItemChangeEvents(item) {\n var lastFiredId = item.id,\n groupId = item.groupid,\n lastFiredSku;\n\n bouncex.et.on(jQuery(document), 'ajaxComplete.bx', function (e, xhr, settings) {\n if (settings.type !== 'GET' || xhr.status !== 200) {\n return\n }\n // item/view item listener for color changes\n if (settings.url.indexOf(\"/Product-Variation\") > -1) {\n var prodColor = getColorParam(settings.url),\n thisItemId = buildColorizedId(lastFiredId, prodColor);\n // we are setting lastFiredId here, b/c the select_sku listener will fire before we get our entire item\n if (thisItemId != lastFiredId) {\n lastFiredId = thisItemId;\n var newItem;\n bouncex.setTimeout2(function () {\n bouncex.et.onTrue(function () {\n newItem = getItem();\n return itemLoaded(newItem) && isNotOldItem(item, newItem);\n }, function () {\n fireItemEvents(newItem);\n item = newItem;\n }, 5);\n }, 1000);\n }\n return;\n }\n // select_sku listener\n if (settings.url.indexOf('/Wishlist-GetWishlistProduct') > -1) {\n var skuId = bouncex.utils.url.getParam(\"pid\", settings.url);\n if (skuId && lastFiredSku !== skuId) {\n lastFiredSku = skuId;\n fireSelectSku(lastFiredId, groupId, lastFiredSku);\n }\n }\n });\n return;\n}\n\n/* ---------------------------- CATEGORY TRACKING --------------------------- */\n\nfunction getItemIdsCat() {\n var ids = [];\n\n jQuery('[data-variantgroupcode]').each(function (i, e) {\n var id = jQuery(e).attr('data-variantgroupcode'),\n $urls = jQuery(e).find('a[href*=\"/product/\"][href*=\"_color=\"]'),\n color = getColorParam($urls.filter('.selected').attr('href')) || getColorParam($urls.first().attr('href'));\n if (color) {\n id = id + ADD_COLOR + color;\n }\n\n\n if (id && ids.indexOf(id) < 0) {\n ids.push(id);\n }\n });\n\n return ids.join(',');\n}\n\nfunction getCategoryObject() {\n return {\n 'page:url': getUrl(),\n 'items:ids': getItemIdsCat()\n };\n}\n\nfunction initializeViewItemQuickView() {\n bouncex.et.onVisible(\".product-quickview\", function (e) {\n var $target = jQuery(e),\n url = $target.find(\"a[href*='_color=']\").attr(\"href\") || \"\",\n color = getColorParam(url) || getSelectedColor(),\n itemId = buildColorizedId($target.attr(\"data-master-pid\"), color);\n\n if (itemId) {\n fireViewItem(itemId);\n initializeModalColorSelector(itemId);\n }\n });\n}\n\nfunction initializeModalColorSelector(lastFiredId) {\n var buttonSelector = \"button.color-attribute[data-url*='_color=']\";\n bouncex.off(jQuery(buttonSelector), \"click.bx\");\n bouncex.et.on(jQuery(buttonSelector), \"click.bx\", function (e) {\n var color = getColorParam(jQuery(e.currentTarget).attr(\"data-url\")),\n groupId = getGroupIdFromItemId(lastFiredId),\n newItemId = buildColorizedId(groupId, color);\n\n if (lastFiredId !== newItemId && newItemId) {\n fireViewItem(newItemId);\n lastFiredId = newItemId;\n }\n });\n}\n\nfunction initializeViewItemSkuChanges() {\n var lastFiredSku;\n bouncex.et.on(jQuery(document), 'ajaxComplete.bx', function (e, xhr, settings) {\n var $modal = jQuery(\".product-quickview:visible\");\n if (\n settings.url.indexOf('/Wishlist-GetWishlistProduct') > -1\n && settings.type === 'GET'\n && xhr.status === 200\n && !!$modal.length\n ) {\n var skuId = bouncex.utils.url.getParam(\"pid\", settings.url),\n groupId = $modal.attr(\"data-master-pid\") || getGroupIdFromItemId(bouncex.vars.last_viewed_item_id);\n\n if (skuId && lastFiredSku != skuId) {\n lastFiredSku = skuId;\n fireSelectSku(bouncex.vars.last_viewed_item_id, groupId, skuId);\n }\n return;\n }\n });\n}\n\n// We are setting last_viewed_item_id so our AJAX listener can access it.\nfunction initializeLastViewedRTVListPageListener() {\n bouncex.et.on(jQuery(document), \"click.bx\", function (e) {\n var $target = jQuery(e.target),\n targetClass = $target.attr(\"class\") || \"\";\n if ($target.is(\"button\") && targetClass.indexOf(\"add-to-cart\") > -1) {\n var $productCard = $target.parents(\".product\"),\n url = $productCard.find(\"a[href*='/product/'][href*='_color=']\").attr(\"href\") || \"\",\n color = getColorParam(url),\n itemId = buildColorizedId(getGroupIdFromUrl(url), color);\n\n if (itemId) {\n setVarAndCookie(\"last_viewed_item_id\", itemId);\n }\n }\n });\n}\n\nfunction initializeCategoryEvents() {\n var categoryObj;\n\n bouncex.et.onTrue(\n function () {\n categoryObj = getCategoryObject();\n return !!categoryObj['items:ids'].length &&\n !!categoryObj['page:url'];\n },\n function () {\n bouncex.push(['view category', categoryObj]);\n },\n 10\n );\n\n initializeViewItemQuickView();\n initializeViewItemSkuChanges();\n initializeLastViewedRTVListPageListener();\n return;\n}\n\n/* ------------------------------- CART EVENTS ------------------------------ */\nfunction fireAddToCart(itemId, replenItem) {\n bouncex.push([\n 'add to cart',\n {\n 'item:id': itemId,\n 'cart:item': bouncex.stringify(replenItem)\n }\n ]);\n\n if (!bouncex.vars.cart) {\n setVarAndCookie('cart', true);\n }\n\n return;\n}\n\nfunction trackAJAXCart(e, xhr, settings) {\n if (bouncex.utils.url.getParam('bx_cart') || settings.type !== 'POST' || xhr.status !== 200) {\n return;\n }\n\n if (settings.url.indexOf('/Cart-Add') > -1) {\n var isOffer = settings.url.indexOf(\"AddOffer\") > -1,\n replenItem = {\n pid: bouncex.utils.url.getParam('pid', settings.data),\n quantity: bouncex.utils.url.getParam('quantity', settings.data) || \"1\",\n options: bouncex.utils.url.getParam('options', settings.data) || [],\n offer: isOffer,\n operatorProductId: bouncex.utils.url.getParam('operatorProductId', settings.data) || \"\",\n atcInfo: isOffer ? bouncex.utils.url.getParam('addToCartInfo', decodeURIComponent(settings.data)) : \"\"\n };\n\n if (!bouncex.vars.last_viewed_item_id || !replenItem.pid || !replenItem.quantity || !replenItem.options) {\n return;\n }\n\n fireAddToCart(bouncex.vars.last_viewed_item_id, replenItem);\n }\n\n return;\n}\n\nfunction emptyCart() {\n bouncex.et.onVarChange('cart_qty', function (oldVal, newVal) {\n if (bouncex.vars.cart && newVal === 0 && oldVal > 0) {\n bouncex.push(['empty_cart']);\n setVarAndCookie('cart', false);\n }\n\n return;\n });\n\n return;\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenishmentType: 'ajax',\n replenish: function (cart) {\n var $deferreds = [];\n\n cart.items.forEach(function (item) {\n $deferreds.push(makeAjaxATCFunc(item));\n });\n\n $deferreds\n .reduce(\n function (promise, func) {\n return promise.then(function () {\n return func();\n });\n },\n jQuery.Deferred().resolve([])\n )\n .then(replenComplete);\n\n return;\n }\n });\n\n function makeAjaxATCFunc(replenItem) {\n if (replenItem.offer) {\n var atcInfo = bouncex.parseJSON(replenItem.atcInfo);\n atcInfo.channels = '[\"CAD\"]';\n return function () {\n bouncex.log(atcInfo)\n jQuery.ajax({\n type: 'POST',\n url: \"https://www.thebay.com/on/demandware.store/Sites-TheBay-Site/en_CA/Cart-AddOffer\",\n data: {\n pid: parseInt(bouncex.utils.getNestedProp(\"pid\", \"0\", atcInfo)),\n price: parseInt(bouncex.utils.getNestedProp(\"price.sales.value\", \"0\", atcInfo)),\n channels: bouncex.utils.getNestedProp(\"channels\", \"0\", atcInfo),\n listPrice: null,\n quantity: 1,\n operatorProductId: replenItem.operatorProductId,\n shopName: bouncex.utils.getNestedProp(\"shopName\", \"\", atcInfo),\n offerState: bouncex.utils.getNestedProp(\"offerState\", \"\", atcInfo),\n shopId: parseInt(bouncex.utils.getNestedProp(\"shopId\", \"0\", atcInfo)),\n priceInfo: null,\n addToCartInfo: JSON.stringify(atcInfo)\n }\n });\n };\n } else {\n return function () {\n return jQuery.ajax({\n type: 'POST',\n url: \"https://www.thebay.com/on/demandware.store/Sites-TheBay-Site/en_CA/Cart-AddProduct\",\n data: 'pid=' +\n replenItem.pid +\n \"&quantity=\" +\n replenItem.quantity +\n \"&options=\" +\n replenItem.options\n });\n };\n }\n }\n\n function replenComplete() {\n window.location.href = window.location.origin +\n window.location.pathname +\n '?bx_replen=true';\n\n return;\n }\n\n bouncex.et.on(jQuery(document), 'ajaxComplete.bx', trackAJAXCart);\n\n emptyCart();\n\n return;\n}\n\n/* ------------------------------ USER TRACKING ----------------------------- */\n\nfunction getUserEmail() {\n return bouncex.parseJSON(jQuery(\".customer-details[data-customer]\").attr(\"data-customer\"), { email: \"\" }).email;\n}\n\nfunction initializeUserTracking() {\n var userEmail;\n\n if (!bouncex.vars.logged_in || !!bouncex.vars.logged_in_identified) {\n return;\n }\n\n userEmail = getUserEmail();\n\n if (!bouncex.utils.validate.email(userEmail)) {\n return;\n }\n\n bouncex.push([\n 'user',\n {\n 'email': userEmail,\n 'source': 'LoggedIn'\n }\n ]);\n setVarAndCookie('logged_in_identified', true);\n\n return;\n}\n\n/* --------------------------- INITIALIZE TRACKING -------------------------- */\n\nfunction isValidDomain() {\n return getUrl().indexOf('www.thebay.com') > -1;\n}\n\nfunction isEn() {\n return jQuery('html').attr('lang') === 'en';\n}\n\nfunction isValidForTracking() {\n return isValidDomain() && isEn();\n}\n\nfunction init() {\n if (!isValidForTracking()) {\n return;\n }\n\n initializeUserTracking();\n initializeCartEvents();\n\n switch (bouncex.website.pts) {\n case 'category':\n case 'search':\n initializeCategoryEvents();\n break;\n case 'product':\n initializeItemEvents();\n break;\n default:\n break;\n }\n\n return;\n}\n\ninit();\n","dge":true,"bxidLoadFirst":false,"pie":true,"cme":true,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('pageData.page.type', '') === 'shopping bag';"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"stage.thebay"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"dev.thebay"}]]},"category":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('pageData.page.type', '') === 'product array';"}]]},"checkout":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('pageData.page.type', '') === 'checkout';"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"stage.thebay"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"dev.thebay"}]]},"home":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('pageData.page.type', '') === 'home page';"}],[{"activation":"current_page_url","prop":"not_contains","prop2":"","prop3":"","val":"stage.thebay"}]]},"product":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('pageData.page.type', '') === 'product detail';"}]]},"search":{"testmode":false,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"bouncex.utils.getNestedProp('pageData.page.type', '') === 'search';"}]]}},"els":{"blank_site_element":""},"vars":[{"name":"logged_in","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"(function() {\n var accountID;\n var KPinfo = bouncex.utils.getNestedProp('KPCustomerInfo.attachment.body', '{}');\n KPinfoParsed = JSON.parse(KPinfo).customer_account_info;\n if (KPinfoParsed && KPinfoParsed[0]) {\n accountID = KPinfoParsed[0].unique_account_identifier\n }\n \n var customerEmail = JSON.parse(jQuery('.customer-details[data-customer]').attr('data-customer') || '{}').email;\n return !!(customerEmail || accountID);\n})();","trigger":""},{"name":"ever_logged_in","polling":"all","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"bouncex.vars.logged_in || null;","trigger":""},{"name":"cart_qty","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"0","code":"Number(jQuery('.minicart-quantity, .bag-count-holder').eq(0).text().replace(/[^0-9.]/g,''));","trigger":""},{"name":"cart_value","polling":"all","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function() {\n if (jQuery('.minicart-quantity').length && Number(jQuery('.minicart-quantity').text().replace(/[^0-9.]/g,'')) === 0) {\n return 0;\n } else if (bouncex.website.pts === 'cart' || bouncex.website.pts === 'checkout') {\n return Number(jQuery('.sub-total').text().replace(/[^0-9.]/g,''));\n } else if (jQuery('.mini-sub-total').length > 0) {\n return Number(jQuery('.mini-sub-total').eq(0).text().replace(/[^0-9.]/g,''));\n }\n return null;\n})();","trigger":""},{"name":"prod_price","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"Number(jQuery('.product-detail .product-secondary-section .formatted_sale_price').text().replace(/[^0-9.]/g,''));","trigger":""},{"name":"prod_name","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.product-secondary-section .product-name').text().trim();","trigger":""},{"name":"in_stock","polling":"all","persist":"no","page_types":["product"],"testmode":false,"default":"false","code":"jQuery('.add-to-cart').text() !== \"Find A Location\";","trigger":""},{"name":"submitted_onsite","polling":"none","persist":"permanent","page_types":[],"testmode":true,"default":"false","code":"","trigger":""},{"name":"page_url","polling":"none","persist":"no","page_types":["category","search"],"testmode":true,"default":"false","code":"","trigger":""},{"name":"cart_token","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart_items","polling":"none","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"cart","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"cookie_modal_present","polling":"all","persist":"no","page_types":[],"testmode":true,"default":"false","code":"null;","trigger":"pageload"},{"name":"page_type","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"bouncex.website.pts","trigger":"pageload"},{"name":"logged_in_identified","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"},{"name":"last_viewed_item_id","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":0,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":{"bxid":"espemailid"},"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":0,"spatm":1,"preinit_cjs":"","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"","eventSharing":false,"shqId":"","enabled":0},"pde":true,"fmc":["CA"],"fme":true,"fmx":"","sdk":{"android":{"enabled":false,"enabledVersions":[],"eventModifications":null},"ios":{"enabled":false,"enabledVersions":[],"eventModifications":null}},"onsite":{"enabled":1},"ads":{"enabled":0},"pubs":{"enabled":0},"websdk":{"enabled":0},"ga4_property_id":"","ga4_measurement_id":""} ; bouncex.tag = 'tag3'; bouncex.$ = window.jQuery; bouncex.env = 'production'; bouncex.restrictedTlds = {"casl":{"ca":1},"gdpr":{"ad":1,"al":1,"at":1,"ax":1,"ba":1,"be":1,"bg":1,"by":1,"xn--90ais":1,"ch":1,"cy":1,"cz":1,"de":1,"dk":1,"ee":1,"es":1,"eu":1,"fi":1,"fo":1,"fr":1,"uk":1,"gb":1,"gg":1,"gi":1,"gr":1,"hr":1,"hu":1,"ie":1,"im":1,"is":1,"it":1,"je":1,"li":1,"lt":1,"lu":1,"lv":1,"mc":1,"md":1,"me":1,"mk":1,"xn--d1al":1,"mt":1,"nl":1,"no":1,"pl":1,"pt":1,"ro":1,"rs":1,"xn--90a3ac":1,"ru":1,"su":1,"xn--p1ai":1,"se":1,"si":1,"sj":1,"sk":1,"sm":1,"ua":1,"xn--j1amh":1,"va":1,"tr":1}}; bouncex.client = { supportsBrotli: 0 }; bouncex.assets = {"ads":"f6ef5f3573bdc7473184a65f6e98703e","creativesBaseStyles":"a53944a2","inbox":"02aca5df0e176b8810a86da97ac05424","onsite":"0e56ab6ba004ee080ce3deb3edae35e9","sms":"e39203556bab2366e56296ce42e974a7","websdk":"0704dae1eb637cbeb4a847506058402d"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_6459738026535cda4232dc813c61447d.js'); runtime.setAttribute('async', 'async'); runtime.setAttribute('onload', 'bouncex.initializeTag()'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/main-v2_d49d982a8e116dabad949c3944ed85a3.js'); script.setAttribute('async', 'async'); document.body.appendChild(script); var deviceGraphScript = document.createElement('script'); deviceGraphScript.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/cjs_min_3a843477d8e318f67237a66d0a58c542.js'); deviceGraphScript.setAttribute('async', 'async'); var dgAttrs = [{"Key":"id","Value":"c.js"},{"Key":"async","Value":"true"},{"Key":"data-apikey","Value":"2^HIykD"},{"Key":"data-cb","Value":"bouncex.dg.initPostDeviceGraph"},{"Key":"data-bx","Value":"1"},{"Key":"data-gm","Value":"1"},{"Key":"data-fire","Value":"1"}]; if (dgAttrs) { for (var i = 0; i < dgAttrs.length; i++) { deviceGraphScript.setAttribute(dgAttrs[i].Key, dgAttrs[i].Value); } } document.body.appendChild(deviceGraphScript); bouncex.initializeTag = function() {}; }; document.body.appendChild(runtime); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();