/* .txt file to suppress Error detection on output placeholder */
window.tagNS = true;
var _dsgTag = function(config) {
    try {
        var w=w||{};w.scope={};w.arrayIteratorImpl=function(e){var g=0;return function(){return g<e.length?{done:!1,value:e[g++]}:{done:!0}}};w.arrayIterator=function(e){return{next:w.arrayIteratorImpl(e)}};w.ASSUME_ES5=!1;w.ASSUME_NO_NATIVE_MAP=!1;w.ASSUME_NO_NATIVE_SET=!1;w.SIMPLE_FROUND_POLYFILL=!1;w.defineProperty=w.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,g,c){e!=Array.prototype&&e!=Object.prototype&&(e[g]=c.value)};
w.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};w.global=w.getGlobal(this);w.SYMBOL_PREFIX="jscomp_symbol_";w.initSymbol=function(){w.initSymbol=function(){};w.global.Symbol||(w.global.Symbol=w.Symbol)};w.Symbol=function(){var e=0;return function(g){return w.SYMBOL_PREFIX+(g||"")+e++}}();
w.initSymbolIterator=function(){w.initSymbol();var e=w.global.Symbol.iterator;e||(e=w.global.Symbol.iterator=w.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&w.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return w.iteratorPrototype(w.arrayIteratorImpl(this))}});w.initSymbolIterator=function(){}};
w.initSymbolAsyncIterator=function(){w.initSymbol();var e=w.global.Symbol.asyncIterator;e||(e=w.global.Symbol.asyncIterator=w.global.Symbol("asyncIterator"));w.initSymbolAsyncIterator=function(){}};w.iteratorPrototype=function(e){w.initSymbolIterator();e={next:e};e[w.global.Symbol.iterator]=function(){return this};return e};
w.polyfill=function(e,g){if(g){var c=w.global;e=e.split(".");for(var d=0;d<e.length-1;d++){var f=e[d];f in c||(c[f]={});c=c[f]}e=e[e.length-1];d=c[e];g=g(d);g!=d&&null!=g&&w.defineProperty(c,e,{configurable:!0,writable:!0,value:g})}};w.polyfill("Number.isFinite",function(e){return e?e:function(e){return"number"!==typeof e?!1:!isNaN(e)&&Infinity!==e&&-Infinity!==e}},"es6","es3");
w.polyfill("Number.isInteger",function(e){return e?e:function(e){return Number.isFinite(e)?e===Math.floor(e):!1}},"es6","es3");w.makeIterator=function(e){var g="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return g?g.call(e):w.arrayIterator(e)};w.FORCE_POLYFILL_PROMISE=!1;
w.polyfill("Promise",function(e){function g(c){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var d=this.createResolveAndReject_();try{c(d.resolve,d.reject)}catch(h){d.reject(h)}}function c(){this.batch_=null}function d(c){return c instanceof g?c:new g(function(d){d(c)})}if(e&&!w.FORCE_POLYFILL_PROMISE)return e;c.prototype.asyncExecute=function(c){if(null==this.batch_){this.batch_=[];var d=this;this.asyncExecuteFunction(function(){d.executeBatch_()})}this.batch_.push(c)};var f=w.global.setTimeout;
c.prototype.asyncExecuteFunction=function(c){f(c,0)};c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var c=this.batch_;this.batch_=[];for(var d=0;d<c.length;++d){var f=c[d];c[d]=null;try{f()}catch(t){this.asyncThrow_(t)}}}this.batch_=null};c.prototype.asyncThrow_=function(c){this.asyncExecuteFunction(function(){throw c;})};g.prototype.createResolveAndReject_=function(){function c(c){return function(e){f||(f=!0,c.call(d,e))}}var d=this,f=!1;return{resolve:c(this.resolveTo_),
reject:c(this.reject_)}};g.prototype.resolveTo_=function(c){if(c===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(c instanceof g)this.settleSameAsPromise_(c);else{a:switch(typeof c){case "object":var d=null!=c;break a;case "function":d=!0;break a;default:d=!1}d?this.resolveToNonPromiseObj_(c):this.fulfill_(c)}};g.prototype.resolveToNonPromiseObj_=function(c){var d=void 0;try{d=c.then}catch(h){this.reject_(h);return}"function"==typeof d?this.settleSameAsThenable_(d,
c):this.fulfill_(c)};g.prototype.reject_=function(c){this.settle_(2,c)};g.prototype.fulfill_=function(c){this.settle_(1,c)};g.prototype.settle_=function(c,d){if(0!=this.state_)throw Error("Cannot settle("+c+", "+d+"): Promise already settled in state"+this.state_);this.state_=c;this.result_=d;this.executeOnSettledCallbacks_()};g.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var c=0;c<this.onSettledCallbacks_.length;++c)n.asyncExecute(this.onSettledCallbacks_[c]);
this.onSettledCallbacks_=null}};var n=new c;g.prototype.settleSameAsPromise_=function(c){var d=this.createResolveAndReject_();c.callWhenSettled_(d.resolve,d.reject)};g.prototype.settleSameAsThenable_=function(c,d){var f=this.createResolveAndReject_();try{c.call(d,f.resolve,f.reject)}catch(t){f.reject(t)}};g.prototype.then=function(c,d){function f(c,d){return"function"==typeof c?function(d){try{e(c(d))}catch(A){n(A)}}:d}var e,n,k=new g(function(c,d){e=c;n=d});this.callWhenSettled_(f(c,e),f(d,n));return k};
g.prototype.catch=function(c){return this.then(void 0,c)};g.prototype.callWhenSettled_=function(c,d){function f(){switch(e.state_){case 1:c(e.result_);break;case 2:d(e.result_);break;default:throw Error("Unexpected state: "+e.state_);}}var e=this;null==this.onSettledCallbacks_?n.asyncExecute(f):this.onSettledCallbacks_.push(f)};g.resolve=d;g.reject=function(c){return new g(function(d,f){f(c)})};g.race=function(c){return new g(function(f,e){for(var h=w.makeIterator(c),g=h.next();!g.done;g=h.next())d(g.value).callWhenSettled_(f,
e)})};g.all=function(c){var f=w.makeIterator(c),e=f.next();return e.done?d([]):new g(function(c,h){function g(d){return function(f){t[d]=f;n--;0==n&&c(t)}}var t=[],n=0;do t.push(void 0),n++,d(e.value).callWhenSettled_(g(t.length-1),h),e=f.next();while(!e.done)})};return g},"es6","es3");
w.polyfill("Array.from",function(e){return e?e:function(e,c,d){c=null!=c?c:function(c){return c};var f=[],g="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof g){e=g.call(e);for(var k=0;!(g=e.next()).done;)f.push(c.call(d,g.value,k++))}else for(g=e.length,k=0;k<g;k++)f.push(c.call(d,e[k],k));return f}},"es6","es3");
w.checkStringArgs=function(e,g,c){if(null==e)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(g instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return e+""};
w.polyfill("String.prototype.repeat",function(e){return e?e:function(e){var c=w.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var d="";e;)if(e&1&&(d+=c),e>>>=1)c+=c;return d}},"es6","es3");w.stringPadding=function(e,g){e=void 0!==e?String(e):" ";return 0<g&&e?e.repeat(Math.ceil(g/e.length)).substring(0,g):""};
w.polyfill("String.prototype.padStart",function(e){return e?e:function(e,c){var d=w.checkStringArgs(this,null,"padStart");return w.stringPadding(c,e-d.length)+d}},"es8","es3");w.iteratorFromArray=function(e,g){w.initSymbolIterator();e instanceof String&&(e+="");var c=0,d={next:function(){if(c<e.length){var f=c++;return{value:g(f,e[f]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};
w.polyfill("Array.prototype.keys",function(e){return e?e:function(){return w.iteratorFromArray(this,function(e){return e})}},"es6","es3");w.polyfill("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991},"es6","es3");w.owns=function(e,g){return Object.prototype.hasOwnProperty.call(e,g)};w.assign="function"==typeof Object.assign?Object.assign:function(e,g){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var f in d)w.owns(d,f)&&(e[f]=d[f])}return e};
w.polyfill("Object.assign",function(e){return e||w.assign},"es6","es3");w.checkEs6ConformanceViaProxy=function(){try{var e={},g=Object.create(new w.global.Proxy(e,{get:function(c,d,f){return c==e&&"q"==d&&f==g}}));return!0===g.q}catch(c){return!1}};w.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;w.ES6_CONFORMANCE=w.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&w.checkEs6ConformanceViaProxy();
w.polyfill("WeakMap",function(e){function g(c){this.id_=(q+=Math.random()+1).toString();if(c){c=w.makeIterator(c);for(var d;!(d=c.next()).done;)d=d.value,this.set(d[0],d[1])}}function c(){if(!e||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),f=new e([[c,2],[d,3]]);if(2!=f.get(c)||3!=f.get(d))return!1;f.delete(c);f.set(d,4);return!f.has(c)&&4==f.get(d)}catch(v){return!1}}function d(){}function f(c){if(!w.owns(c,k)){var f=new d;w.defineProperty(c,k,{value:f})}}function n(c){var e=
Object[c];e&&(Object[c]=function(c){if(c instanceof d)return c;f(c);return e(c)})}if(w.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&w.ES6_CONFORMANCE)return e}else if(c())return e;var k="$jscomp_hidden_"+Math.random();n("freeze");n("preventExtensions");n("seal");var q=0;g.prototype.set=function(c,d){f(c);if(!w.owns(c,k))throw Error("WeakMap key fail: "+c);c[k][this.id_]=d;return this};g.prototype.get=function(c){return w.owns(c,k)?c[k][this.id_]:void 0};g.prototype.has=function(c){return w.owns(c,
k)&&w.owns(c[k],this.id_)};g.prototype.delete=function(c){return w.owns(c,k)&&w.owns(c[k],this.id_)?delete c[k][this.id_]:!1};return g},"es6","es3");w.MapEntry=function(){};
w.polyfill("Map",function(e){function g(){var c={};return c.previous=c.next=c.head=c}function c(c,d){var f=c.head_;return w.iteratorPrototype(function(){if(f){for(;f.head!=c.head_;)f=f.previous;for(;f.next!=f.head;)return f=f.next,{done:!1,value:d(f)};f=null}return{done:!0,value:void 0}})}function d(c,d){var f=d&&typeof d;"object"==f||"function"==f?k.has(d)?f=k.get(d):(f=""+ ++q,k.set(d,f)):f="p_"+d;var e=c.data_[f];if(e&&w.owns(c.data_,f))for(c=0;c<e.length;c++){var h=e[c];if(d!==d&&h.key!==h.key||
d===h.key)return{id:f,list:e,index:c,entry:h}}return{id:f,list:e,index:-1,entry:void 0}}function f(c){this.data_={};this.head_=g();this.size=0;if(c){c=w.makeIterator(c);for(var d;!(d=c.next()).done;)d=d.value,this.set(d[0],d[1])}}function n(){if(w.ASSUME_NO_NATIVE_MAP||!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new e(w.makeIterator([[c,"s"]]));if("s"!=d.get(c)||1!=d.size||d.get({x:4})||d.set({x:4},"t")!=d||2!=d.size)return!1;
var f=d.entries(),g=f.next();if(g.done||g.value[0]!=c||"s"!=g.value[1])return!1;g=f.next();return g.done||4!=g.value[0].x||"t"!=g.value[1]||!f.next().done?!1:!0}catch(B){return!1}}if(w.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&w.ES6_CONFORMANCE)return e}else if(n())return e;w.initSymbolIterator();var k=new WeakMap;f.prototype.set=function(c,f){c=0===c?0:c;var e=d(this,c);e.list||(e.list=this.data_[e.id]=[]);e.entry?e.entry.value=f:(e.entry={next:this.head_,previous:this.head_.previous,head:this.head_,
key:c,value:f},e.list.push(e.entry),this.head_.previous.next=e.entry,this.head_.previous=e.entry,this.size++);return this};f.prototype.delete=function(c){c=d(this,c);return c.entry&&c.list?(c.list.splice(c.index,1),c.list.length||delete this.data_[c.id],c.entry.previous.next=c.entry.next,c.entry.next.previous=c.entry.previous,c.entry.head=null,this.size--,!0):!1};f.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=g();this.size=0};f.prototype.has=function(c){return!!d(this,c).entry};
f.prototype.get=function(c){return(c=d(this,c).entry)&&c.value};f.prototype.entries=function(){return c(this,function(c){return[c.key,c.value]})};f.prototype.keys=function(){return c(this,function(c){return c.key})};f.prototype.values=function(){return c(this,function(c){return c.value})};f.prototype.forEach=function(c,d){for(var f=this.entries(),e;!(e=f.next()).done;)e=e.value,c.call(d,e[1],e[0],this)};f.prototype[Symbol.iterator]=f.prototype.entries;var q=0;return f},"es6","es3");
w.underscoreProtoCanBeSet=function(){var e={a:!0},g={};try{return g.__proto__=e,g.a}catch(c){}return!1};w.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:w.underscoreProtoCanBeSet()?function(e,g){e.__proto__=g;if(e.__proto__!==g)throw new TypeError(e+" is not extensible");return e}:null;w.polyfill("Object.setPrototypeOf",function(e){return e||w.setPrototypeOf},"es6","es5");
w.polyfill("String.prototype.padEnd",function(e){return e?e:function(e,c){var d=w.checkStringArgs(this,null,"padStart");return d+w.stringPadding(c,e-d.length)}},"es8","es3");w.polyfill("Object.entries",function(e){return e?e:function(e){var c=[],d;for(d in e)w.owns(e,d)&&c.push([d,e[d]]);return c}},"es8","es3");
w.polyfill("Set",function(e){function g(c){this.map_=new Map;if(c){c=w.makeIterator(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size}function c(){if(w.ASSUME_NO_NATIVE_SET||!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),f=new e(w.makeIterator([c]));if(!f.has(c)||1!=f.size||f.add(c)!=f||1!=f.size||f.add({x:4})!=f||2!=f.size)return!1;var g=f.entries(),k=g.next();if(k.done||k.value[0]!=c||k.value[1]!=c)return!1;
k=g.next();return k.done||k.value[0]==c||4!=k.value[0].x||k.value[1]!=k.value[0]?!1:g.next().done}catch(q){return!1}}if(w.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&w.ES6_CONFORMANCE)return e}else if(c())return e;w.initSymbolIterator();g.prototype.add=function(c){c=0===c?0:c;this.map_.set(c,c);this.size=this.map_.size;return this};g.prototype.delete=function(c){c=this.map_.delete(c);this.size=this.map_.size;return c};g.prototype.clear=function(){this.map_.clear();this.size=0};g.prototype.has=function(c){return this.map_.has(c)};
g.prototype.entries=function(){return this.map_.entries()};g.prototype.values=function(){return this.map_.values()};g.prototype.keys=g.prototype.values;g.prototype[Symbol.iterator]=g.prototype.values;g.prototype.forEach=function(c,f){var d=this;this.map_.forEach(function(e){return c.call(f,e,e,d)})};return g},"es6","es3");w.polyfill("Object.is",function(e){return e?e:function(e,c){return e===c?0!==e||1/e===1/c:e!==e&&c!==c}},"es6","es3");
w.polyfill("Array.prototype.includes",function(e){return e?e:function(e,c){var d=this;d instanceof String&&(d=String(d));var f=d.length;c=c||0;for(0>c&&(c=Math.max(c+f,0));c<f;c++){var g=d[c];if(g===e||Object.is(g,e))return!0}return!1}},"es7","es3");w.polyfill("String.prototype.includes",function(e){return e?e:function(e,c){return-1!==w.checkStringArgs(this,e,"includes").indexOf(e,c||0)}},"es6","es3");
w.polyfill("Array.prototype.values",function(e){return e?e:function(){return w.iteratorFromArray(this,function(e,c){return c})}},"es8","es3");window._dsgTag={};window._dsgTag.tagVersion="20250506183912-ns";
try{window._dsgTag.taggingIsSynchronous=!document.querySelector("body"),window._dsgTag.taggingIsSynchronous||config.wasPrerendered||(console.error(" *************************************** ERROR *************************************** "),console.error(" ********** utag.js is NOT being loaded synchronously in the <head> element ********** "),console.error(" This will cause serious issues with analytics, optimization flags, and other features "),console.error(" *************************************** ERROR *************************************** "))}catch(e){}
window._dsgTag.AdobeID="989E1CFE5329630F0A490D45@AdobeOrg";window._dsgTag.taggingInitTimestamp=Date.now();window._dsgTag.Websites={};
window._dsgTag.AEPDataStreamIDs={cartAbandonDataStreamID:{prod:"82f399da-cb87-45b6-9cae-722e25a6789f",stage:"82f399da-cb87-45b6-9cae-722e25a6789f:stage",dev:"55e9cddc-ce46-4b5f-a9c4-f06310bf2fa5"},capiDataStreamID:{prod:"07330d93-f0ad-4a5f-b9e3-2ab1a45cf657",stage:"87722caf-af3a-4975-8829-ff14c43c2b46",dev:"87722caf-af3a-4975-8829-ff14c43c2b46"},analyticsDataStreamID:{DSG:{prod:"39b513f8-4ee4-4b2d-910b-5848811e39f4",stage:"9f02c9be-c017-4c67-960d-443ab2b62cf5",dev:"9f02c9be-c017-4c67-960d-443ab2b62cf5"},
GGXY:{prod:"27d06bdf-7e66-4599-a87d-fe02e7c9bf73",stage:"78570821-22e8-4813-89dc-7c71bc582404",dev:"78570821-22e8-4813-89dc-7c71bc582404"},PBL:{prod:"970744e6-996e-44c0-8839-a705d7c7b3da",stage:"c8218d70-1be2-4816-9d7a-fd0919643084",dev:"c8218d70-1be2-4816-9d7a-fd0919643084"},GONE:{prod:"ebce5ff3-470e-4de4-9f4b-e26e136602f7",stage:"f6eb759b-422a-4f29-99b0-6ed021537aeb",dev:"f6eb759b-422a-4f29-99b0-6ed021537aeb"}},cjaDataStreamID:{prod:"50e18a64-c44e-4b56-9f32-1dcb059b34fb",stage:"591f7efa-3986-43c1-8837-8e3efa2aa311",
dev:"591f7efa-3986-43c1-8837-8e3efa2aa311"}};window._dsgTag.Websites.DicksSportingGoods={Abbreviation:"DSG",Domain:"dickssportinggoods.com",RegEx:/dickssportinggoods|dsg|dks-|dsgcep|myscorecard|elasticbeanstalk|where2stageit|adobeaemcloud/,ProdRegEx:/^((((www|t|m(2|4|aos)?|sso|aos|stores|storelocator|launch|reviews|protips|weeklyad|tag|solepanel-dks|cmm)\.)?((dickssportinggoods)|(m3mobile|dsg|myscorecardaccount))\.(com))|(mobile\.where2getit\.com)|(dsgcep\.custhelp\.com)|(associatekioskweb\.dcsg\.com))$/};
window._dsgTag.Websites.GolfGalaxy={Abbreviation:"GGXY",Domain:"golfgalaxy.com",RegEx:/golfgalaxy|gga?-|ggcep/,ProdRegEx:/^((((www|t|m|aos|sso|kiosk|stores|storelocator|launch|reviews|weeklyad|tag|solepanel-gg|cmm)\.)?(golfgalaxy)\.(com))|(mobile\.where2getit\.com)|(ggcep\.custhelp\.com))$/};window._dsgTag.Websites.PublicLands={Abbreviation:"PBL",Domain:"publiclands.com",RegEx:/publiclands/,ProdRegEx:/^((((www|t|m|aos|sso|kiosk|stores|storelocator|launch|reviews|weeklyad|tag|solepanel-pl|cmm)\.)?(publiclands)\.(com)))$/};
window._dsgTag.Websites.GoingGoingGone={Abbreviation:"GONE",Domain:"goinggoinggone.com",RegEx:/goinggoinggone/,ProdRegEx:/^((((www|sso|stores|launch|cmm).)?(goinggoinggone).(com)))$/};window._dsgTag.Websites.Moosejaw={Abbreviation:"MJ",Domain:"moosejaw.com",RegEx:/moosejaw/,ProdRegEx:/^((((www|sso|stores|launch|cmm).)?(moosejaw).(com)))$/};
window._dsgTag.Websites.InvestorRelations={Abbreviation:"INVR",Domain:"dicks.com",RegEx:/(investors\.dicks\.com)|(q4web)/,ProdRegEx:/^investors\.dicks\.com$/,CustomTrackingServerDomain:"dickssportinggoods.com",DontGetLaneJSON:!0};window._dsgTag.Websites.SportsMatter={Abbreviation:"SM",Domain:"sportsmatter.org",RegEx:/(www\.sportsmatter\.org)/,ProdRegEx:/^www\.sportsmatter\.org$/,CustomTrackingServerDomain:"dickssportinggoods.com",DontGetLaneJSON:!0};
window._dsgTag.PageTypes={Unknown:{Name:"Unknown",MatchRules:{FunctionTest:function(){return!1}}},InvestorRelations:{Name:"Investor Relations",AutoTriggerPageView:!0,RestrictTags:!0,MatchRules:{HostRegExTest:/(dicks|q4web)\.com$/i}},SportsMatter:{Name:"Sports Matter",AutoTriggerPageView:!0,RestrictTags:!0,MatchRules:{HostRegExTest:/sportsmatter\.org$/i}},MyAccountSignInAuth0:{Name:"My Account Sign In Auth0",AutoTriggerPageView:!1,RestrictTags:!0,MatchRules:{HostRegExTest:/^sso\./i,PathRegExTest:/\/login/i}},
OauthCallbackPage:{Name:"Sign In Callback Redirect",AutoTriggerPageView:!1,RestrictTags:!0,BlockMarketingChannels:!0,MatchRules:{PathRegExTest:/\/oauthcallbackpage/i}},CMMTeamPacket:{Name:"CMM Team Packet",AutoTriggerPageView:!0,MatchRules:{HostRegExTest:/^cmm\./i,PathRegExTest:/\/getoffer.aspx/i}},Scorecard:{Name:"Scorecard",AutoTriggerPageView:!0,MatchRules:{HostRegExTest:/myscorecardaccount/i}},Protips:{Name:"Protips",AutoTriggerPageView:!0,MatchRules:{HostRegExTest:/protips/i}},NarvarRedirect:{Name:"Narvar Redirect",
MatchRules:{PathRegExTest:/\/s\/narvar/i}},PelotonRedirect:{Name:"Peloton Redirect",MaskPage:!0,MatchRules:{PathRegExTest:/\/s\/peloton-app-signup/i}},StoreLocatorIFrame:{Name:"Store Locator IFrame",MatchRules:{HostRegExTest:/storelocator|(hosted|mobile).where2(get|stage)it/i}},ChatConversation:{Name:"Chat Conversation",MatchRules:{HostRegExTest:/custhelp.com/i,PathRegExTest:/\/chat_landing/i}},ChatForm:{Name:"Chat Form",MatchRules:{HostRegExTest:/custhelp.com/i,PathRegExTest:/\/chat_launch|\/app/i}},
Category:{Name:"Category",MatchRules:{PathRegExTest:/^\/c\//i}},Family:{Name:"Family",MatchRules:{PathRegExTest:/^\/f\//i}},OptiversalFamily:{Name:"Optiversal Family",AutoTriggerPageView:!0,MatchRules:{PathRegExTest:/\/o\//i}},ResourceCenter:{Name:"Resource Center",MatchRules:{PathRegExTest:/\/rc\//i}},Search:{Name:"Search",MatchRules:{PathRegExTest:/\/search\//i}},ProductDetails:{Name:"Product Details",MatchRules:{PathRegExTest:/\/p\//i}},ProductReview:{Name:"ProductReview",MatchRules:{PathRegExTest:/\/dsghostedcontainer/i}},
Cart:{Name:"Cart",MatchRules:{PathRegExTest:/\/((ajax)?orderitemdisplay(view)?|cart)/i}},CheckoutSinglePage:{Name:"Checkout",RestrictTags:!0,MatchRules:{PathRegExTest:/\/SinglePageCheckout/i}},CheckoutSignIn:{Name:"Checkout Sign In",MatchRules:{PathRegExTest:/\/checkoutsigninview/i}},CheckoutBillingShippingAddress:{Name:"Checkout Billing Shipping Address",MatchRules:{PathRegExTest:/\/ordershippingbillingview/i}},CheckoutBillingAddress:{Name:"Checkout Billing Address",MatchRules:{PathRegExTest:/\/dsgbillingaddressview/i}},
CheckoutShippingAddress:{Name:"Checkout Shipping Address",MatchRules:{PathRegExTest:/\/dsgshippingaddressview/i}},CheckoutDelivery:{Name:"Checkout Delivery",MatchRules:{PathRegExTest:/\/dsgdeliveryview/i}},CheckoutPayment:{Name:"Checkout Payment",RestrictTags:!0,MatchRules:{PathRegExTest:/\/dsgpaymentview(cmd)?/i}},CheckoutReview:{Name:"Checkout Review",MatchRules:{PathRegExTest:/\/singleshipmentordersummaryview/i}},OrderConfirmation:{Name:"Order Confirmation",MatchRules:{PathRegExTest:/\/(ordershippingbillingconfirmationview|dsgordersubmit)/i}},
WeeklyAd:{Name:"Weekly Ad",MatchRules:{PathRegExTest:/\/s\/weekly-ad/i}},SchedulingService:{Name:"SchedulingService",MatchRules:{PathRegExTest:/\/s\/scheduling/i}},BrandShop:{Name:"BrandShop",MatchRules:{PathRegExTest:/\/s\/brand-shop\//i}},Static:{Name:"Static",MatchRules:{PathRegExTest:/\/s\//i}},Proxy:{Name:"Proxy",MatchRules:{PathRegExTest:/\/products\//i}},StoreLocatorIndex:{Name:"Store Locator Index",AutoTriggerPageView:!0,MatchRules:{HostRegExTest:/stores|locations.where2stageit/i,PathRegExTest:/^(\/(dickssportinggoods|golfgalaxy))?\/?([a-zA-Z]{2}\/([^\/]+\/)?)?$/i}},
StoreLocatorLocalStore:{Name:"Store Locator Local Store",AutoTriggerPageView:!0,MatchRules:{HostRegExTest:/stores|locations.where2stageit/i,PathRegExTest:/^((\/(dickssportinggoods|golfgalaxy))?\/([a-zA-Z]{2})\/([^\/]+)\/(\d+)\/)$/i}},OrderTracking:{Name:"Order Tracking",MatchRules:{PathRegExTest:/(\/trackorderstatus)|(\/myaccount\/onlineorderhistory)/i}},OrderDetails:{Name:"Order Details",MatchRules:{PathRegExTest:/\/orderdetail/i}},GuestOrderTracking:{Name:"Guest Order Tracking",MatchRules:{PathRegExTest:/\/trackorder/i}},
MyAccount:{Name:"My Account",MatchRules:{PathRegExTest:/(\/myaccount\/accountsummary)|(\/(ajax)?logonform)|(\/my-account)/i,FunctionTest:function(e){return _dsgTag.DataLayer?0>_dsgTag.DataLayer.GetValue("PageURL",e).toLowerCase().indexOf("logonform")&&_dsgTag.DataLayer.GetValue("SignedInBoolean",e):!1}}},MyAccountSignIn:{Name:"My Account Sign In",RestrictTags:!0,MatchRules:{PathRegExTest:/\/((ajax)?logonform)|(\/u\/login)/i}},MyAccountLink:{Name:"My Account Link",RestrictTags:!0,BlockMarketingChannels:!0,
MatchRules:{PathRegExTest:/\/accountlink/i}},MyAccountRegistration:{Name:"My Account Registration",RestrictTags:!0,MatchRules:{PathRegExTest:/(\/userregistrationform)|(\/u\/signup)/i}},MyAccountResetPassword:{Name:"My Account Reset Password",RestrictTags:!0,MatchRules:{PathRegExTest:/\/u\/reset-password/i}},MyAccountOTPChallenge:{Name:"My Account Email OTP Challenge",RestrictTags:!0,MatchRules:{PathRegExTest:/\/u\/email-identifier\/challenge/i}},MyAccountListLanding:{Name:"List Landing",MatchRules:{PathRegExTest:/\/MyAccount\/Lists$/i}},
MyAccountListContents:{Name:"List Contents",MatchRules:{PathRegExTest:/\/MyAccount\/Lists\/.+$/i}},MyAccountAppointments:{Name:"My Account Appointments",MatchRules:{PathRegExTest:/\/MyAccount\/Appointments/i}},SharedList:{Name:"Shared List",MatchRules:{PathRegExTest:/\/(Favorites|Lists)\/shared/i}},AddressBook:{Name:"Address Book",MatchRules:{PathRegExTest:/\/addressbookform/i}},BlogArticle:{Name:"Blog Article",MatchRules:{PathRegExTest:/\/blog\/a\//i}},BlogTopics:{Name:"Blog Topics",MatchRules:{PathRegExTest:/\/blog\/t\//i}},
BlogHome:{Name:"Blog",MatchRules:{PathRegExTest:/\/blog/i}},AdeptmindProductDetails:{Name:"Adeptmind Product Details",MatchRules:{PathRegExTest:/\/a\/hpdp/i}},AdeptmindFamily:{Name:"Adeptmind Family",AutoTriggerPageView:!0,MatchRules:{PathRegExTest:/^\/a\//i}},ProtipsBlog:{Name:"Protips",MatchRules:{PathRegExTest:/^\/protips/i}},InStoreDisplay:{Name:"In Store Display",MatchRules:{PathRegExTest:/\/media\/.+/i}},SiteDown:{Name:"Site Down",AutoTriggerPageView:!0,MatchRules:{PathRegExTest:/^\/down/i}},
Error:{Name:"Error",AutoTriggerPageView:!0,MatchRules:{FunctionTest:function(e){return _dsgTag.DataLayer&&("error"===_dsgTag.DataLayer.GetValue("PageType",e).toLowerCase()||"site down"===_dsgTag.DataLayer.GetValue("PageName",e).toLowerCase()||_dsgTag.pageType===_dsgTag.PageTypes.Unknown&&"site down"===_dsgTag.DataLayer.GetValue("PageName",e).toLowerCase()||_dsgTag.pageType===_dsgTag.PageTypes.ProductDetails&&"Search"===_dsgTag.DataLayer.GetValue("PageType",e)||_dsgTag.pageType===_dsgTag.PageTypes.ProtipsBlog&&
"site down"===_dsgTag.DataLayer.GetValue("PageName",e).toLowerCase())||"undefined"!==typeof e&&"undefined"!==typeof e.Page&&("Error Page"==e.Page||"404 Error"==e.Page)||"undefined"!==typeof e&&"undefined"!==typeof e.ErrorID&&0<e.ErrorID.length&&0<=e.ErrorID.indexOf("Site Down")||"undefined"!==typeof e&&"error"===e.PageType||window.location.pathname.match(/404$|500$/)||"Generic Error"==document.title}}},Home:{Name:"Home",MatchRules:{PathRegExTest:/^\/$/i}}};window._dsgTag.brandsToTrack="adidas;Allbirds;ASICS;Brooks;CALIA;Callaway;Carhartt;chubbies;Columbia;DSG;FP Movement;Hoka;Igloo;Lotto;Maxfli;Moolah Kicks;New Balance;Nike;On;Patagonia;Speedo;Stanley;TaylorMade;The North Face;Titleist;Under Armour;Vans;VRST;Walter Hagen;YETI".split(";");
window._dsgTag.excludedDNSCategories=[];"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});window._dsgTag.LogLevels={Error:"0",Warning:"1",Info:"2",Verbose:"3"};
window._dsgTag.HelperFunctions={GetQueryStringValue:function(e,g){g=g?0<=g.indexOf("?")?"?"+g.split("?")[1]:"":location.search;e=(new RegExp("[?&]"+e+"=([^&#]*)","i")).exec(g);return null===e||2>e.length?null:0>decodeURIComponent(e[1].replace(/\+/g," ")).indexOf("@")?decodeURIComponent(e[1].replace(/\+/g," ")):null},StandardizeValueName:function(e){return"TAG_"+e.replace(/^tag_?/i,"")},SaveValue:function(e,g,c){try{if(_dsgTag.HelperFunctions.DeleteCookie(e,!0),_dsgTag.HelperFunctions.DeleteCookie(e,
!1),"undefined"!==typeof Storage&&"undefined"!==typeof window.localStorage&&"undefined"!==typeof window.sessionStorage)try{return c?sessionStorage.setItem(_dsgTag.HelperFunctions.StandardizeValueName(e),g):localStorage.setItem(_dsgTag.HelperFunctions.StandardizeValueName(e),g),!0}catch(d){_dsgTag.HelperFunctions.DebugLog("Error saving "+e+" to local storage; using cookie instead.",!0),_dsgTag.HelperFunctions.WriteCookieValue(e,g)}else _dsgTag.HelperFunctions.WriteCookieValue(e,g)}catch(d){console.error("Error saving value ("+
e+",v):"+d.message)}return!1},GetValue:function(e){try{if("undefined"!==typeof Storage&&"undefined"!==typeof window.localStorage&&"undefined"!==typeof window.sessionStorage){var g=_dsgTag.HelperFunctions.GetCookieValue(e);if(g)if(_dsgTag.HelperFunctions.SaveValue(e,g))_dsgTag.HelperFunctions.DeleteCookie(e,!0),_dsgTag.HelperFunctions.DeleteCookie(e,!1);else return g;return sessionStorage.getItem(_dsgTag.HelperFunctions.StandardizeValueName(e))||localStorage.getItem(_dsgTag.HelperFunctions.StandardizeValueName(e))}return _dsgTag.HelperFunctions.GetCookieValue(e)}catch(c){console.error("Error getting value ("+
e+"):"+c.message)}return null},DeleteValue:function(e){try{"undefined"!==typeof window.localStorage&&"undefined"!==typeof window.sessionStorage&&(localStorage.removeItem(_dsgTag.HelperFunctions.StandardizeValueName(e)),sessionStorage.removeItem(_dsgTag.HelperFunctions.StandardizeValueName(e)))}catch(g){console.error("Error deleting value ("+e+"):"+g.message)}_dsgTag.HelperFunctions.DeleteCookie(e,!0)},GetCookieValue:function(e,g){e=(new RegExp("(?:^|;)\\s*"+e+"=([^;]*)")).exec(g||document.cookie);
return null===e?null:e[1]},DeleteCookie:function(e,g){var c="; expires="+(new Date).toGMTString();var d=_dsgTag.s__host.split(".");document.cookie=e+"=DELETE"+c+"; path=/"+(g&&2<=d.length?";domain="+d[d.length-2]+"."+d[d.length-1]:"")},WriteCookieValue:function(e,g,c,d){var f="";c&&"function"==typeof c.toGMTString?f="; expires="+c.toGMTString():"number"==typeof c?f="; expires="+(new Date((new Date).setDate((new Date).getDate()+parseInt(c)))).toGMTString():"boolean"==typeof c&&"undefined"==typeof d&&
(d=c);d&&_dsgTag.HelperFunctions.DeleteCookie(e);c=_dsgTag.s__host.split(".");document.cookie=e+"="+g.toString().replace(/[^\x00-\x7F]/g,"")+f+"; path=/"+(d&&2<=c.length?";domain="+c[c.length-2]+"."+c[c.length-1]:"")},GetValOnce:function(e,g,c){var d=!1;c*=6E4;var f=_dsgTag.HelperFunctions.GetValue(g);f&&(f=f.split("|"),Date.now()<parseInt(f[1])+c&&(d=f[0]==e));_dsgTag.HelperFunctions.SaveValue(g,e+"|"+Date.now());return d?"":e},ToProperCase:function(e){if("undefined"!==typeof e&&e){e=e.split(" ");
for(var g=0;g<e.length;g++)e[g]=e[g].charAt(0).toUpperCase()+e[g].substring(1).toLowerCase();e=e.join(" ")}return e},DeepExtend:function(e){e=e||{};for(var g=1;g<arguments.length;g++){var c=arguments[g];if(c)for(var d in c)if(c.hasOwnProperty(d))if("object"===typeof c[d])if(Array.isArray(c[d])){e[d]=[];for(var f=0;f<c[d].length;f++)e[d][f]="object"===typeof c[d][f]?_dsgTag.HelperFunctions.DeepExtend(e[d][f],c[d][f]):c[d][f]}else e[d]=_dsgTag.HelperFunctions.DeepExtend(e[d],c[d]);else e[d]=c[d]}return e},
DebugLog:function(e,g){try{Array.isArray(e)||(e=[e]);var c=g||_dsgTag.LogLevels.Info;c=!0===c?_dsgTag.LogLevels.Error:c;Number.isInteger(c)&&(c=2===c?_dsgTag.LogLevels.Error:1===c?_dsgTag.LogLevels.Warning:_dsgTag.LogLevels.Info);var d=window._dsgTag.HelperFunctions.GetValue("Debug");d&&"true"==d.toLowerCase()&&(d=_dsgTag.LogLevels.Info,window._dsgTag.HelperFunctions.SaveValue("Debug",_dsgTag.LogLevels.Info));if(d&&parseInt(d)>=parseInt(c)||c===_dsgTag.LogLevels.Error||c===_dsgTag.LogLevels.Warning){g=
[];var f="background: #"+(c===_dsgTag.LogLevels.Warning?"413C26":c===_dsgTag.LogLevels.Error?"4E3534":"222")+"; color:rgb(2, 162, 4)";g.push("%c[Tagging]");g.push(f);for(f=0;f<e.length;f++)d="",d="object"===typeof e[f]?_dsgTag.HelperFunctions.DeepExtend({},e[f]):e[f],g.push(d);c===_dsgTag.LogLevels.Warning?console.warn.apply(null,g):c===_dsgTag.LogLevels.Error?console.error.apply(null,g):console.log.apply(null,g)}}catch(n){console.error("Error using tagging debug log: "+n.message);console.error("Original message: ");
try{"object"===typeof e?pa?console.error(_dsgTag.HelperFunctions.DeepExtend({},e)):console.log(_dsgTag.HelperFunctions.DeepExtend({},e)):pa?console.error(e):console.log(e)}catch(k){console.error("Unable to log original message: "+k.message)}}},SendDebugPixel:function(e){try{var g="https://smetrics.dickssportinggoods.com/b/ss/dsgsbox/10/JS-2.17.0/s"+parseInt(1E5*Math.random()).toString();g+="?g="+encodeURIComponent(window.location.href);g+="&v44="+encodeURIComponent(e);var c=document.createElement("script");
c.src=g;document.body.appendChild(c)}catch(d){}},DividerLog:function(e){try{var g=_dsgTag.HelperFunctions.GetValue("Debug");if(("true"==g||"2"==g||"3"==g)&&"undefined"!==typeof String.prototype.repeat&&"string"===typeof e){var c="*".repeat(parseInt((100-e.length)/2));console.log("%c[Tagging] "+c+" "+e+" "+c,"color:rgb(2, 162, 4)")}}catch(d){}},removeURLParameters:function(e,g){var c=e.split("?")[0],d=-1!==e.indexOf("?")?e.split("?")[1]:"";e=[];g="string"===typeof g?g.split(","):g;if(""!==d){e=d.split("&");
for(var f=g.length-1;0<=f;f--){var n=g[f];"function"===typeof String.prototype.trim&&(n=n.trim());for(var k=e.length-1;0<=k;k--)d=e[k].split("=")[0],d===n&&e.splice(k,1)}}0<e.length&&(c=c+"?"+e.join("&"));return c},GetPageTypeByURL:function(e,g){function c(c){var d=!0;_dsgTag.PageTypes[c].MatchRules.HostRegExTest&&(d=_dsgTag.PageTypes[c].MatchRules.HostRegExTest.test(f));d&&_dsgTag.PageTypes[c].MatchRules.PathRegExTest&&(d=_dsgTag.PageTypes[c].MatchRules.PathRegExTest.test(n));if(d&&_dsgTag.PageTypes[c].MatchRules.FunctionTest)try{d=
_dsgTag.PageTypes[c].MatchRules.FunctionTest(g)}catch(t){_dsgTag.HelperFunctions.DebugLog("Page Type function test crashed: "+t.message,1),d=!1}return d}var d=_dsgTag.PageTypes.Unknown;e=e||window.location.href;var f=e.split("/").slice(2,3).join("/"),n="/"+e.split("#")[0].split("?")[0].split("/").slice(3).join("/"),k;for(k in _dsgTag.PageTypes)if(c(k)){d=_dsgTag.PageTypes[k];break}d=c("Error")?_dsgTag.PageTypes.Error:d;!_dsgTag.EventHandlers||!d.AutoTriggerPageView||_dsgTag.AutoTriggerPageView||_dsgTag.EventHandlers.initialPageViewPreFired||
_dsgTag.EventHandlers.initialPageViewFired||(_dsgTag.EventHandlers.AddWindowLoadEventHandler(function(){if(!_dsgTag.EventHandlers.initialPageViewPreFired&&!_dsgTag.EventHandlers.initialPageViewFired){_dsgTag.HelperFunctions.DebugLog("Auto Triggering Pageview");var c=_dsgTag.HelperFunctions.DeepExtend({wasAutoTriggered:!0},window.siteData);_dsgTag.EventHandlers.TriggerEvent("NewPageView",c)}}),_dsgTag.AutoTriggerPageView=!0);return d},GetStandardizedDKSTime:function(){var e=null,g=_dsgTag.DataLayer.GetValue("ServerTimestamp");
g||(g=Date.now());g&&(g=new Date(g),e=new Date(g),g=new Date(g.setMinutes(g.getMinutes()+g.getTimezoneOffset())),g=new Date(g),g.setHours(g.getHours()-4-(function(c){DSTInfo={2020:"3/8,11/1",2021:"3/14,11/7",2022:"3/13,11/6",2023:"3/12,11/5",2024:"3/10,11/3",2025:"3/9,11/2",2026:"3/8,11/1",2027:"3/14,11/7",2028:"3/12,11/5",2029:"3/11,11/4",2030:"3/10,11/3"};var d=DSTInfo[c.getFullYear()].split(/,/);ds=new Date(d[0]+"/"+c.getFullYear());de=new Date(d[1]+"/"+c.getFullYear());return c>ds&&c<de?!0:!1}(g)?
0:1)),e=[g,e]);return e},GetSimpleTimestamp:function(){var e=_dsgTag.HelperFunctions.GetStandardizedDKSTime(),g=e[0].getFullYear(),c=e[0].getMonth()+1;c=(9>=c?"0":"")+c;var d=e[0].getDate();d=(9>=d?"0":"")+d;var f=e[0].getHours();f=(9>=f?"0":"")+f;e=e[0].getMinutes();return""+g+c+d+f+((9>=e?"0":"")+e)},LoadScriptAsyncAndCallFunction:function(e,g,c,d){var f=document.createElement("script");f.src=e;f.async=!0;d&&(f.id=d);if(c){_dsgTag.ScriptCallbackFunctions=_dsgTag.ScriptCallbackFunctions||{};for(var n;!n||
"undefined"!==typeof _dsgTag.ScriptCallbackFunctions[n];)n="_"+1E3*Math.random();_dsgTag.ScriptCallbackFunctions[n]=function(){try{c();delete _dsgTag.ScriptCallbackFunctions[n];var d=JSON.parse(_dsgTag.HelperFunctions.GetValue("TagErrorList"))||[];0<=d.indexOf(g)&&d.splice(d.indexOf(g),1);_dsgTag.HelperFunctions.SaveValue("TagErrorList",JSON.stringify(d))}catch(q){_dsgTag.HelperFunctions.DebugLog("Error running callback function for "+g)}};f.onload=_dsgTag.ScriptCallbackFunctions[n];f.onerror=function(){try{var c=
JSON.parse(_dsgTag.HelperFunctions.GetValue("TagErrorList"))||[];0>c.indexOf(g)&&c.push(g);c.sort();_dsgTag.HelperFunctions.SaveValue("TagErrorList",JSON.stringify(c))}catch(q){_dsgTag.HelperFunctions.DebugLog("Error handling onerror for "+g)}}}(e=document.querySelectorAll("head > script")[0])||(e=document.head.children[0]);e.parentNode.insertBefore(f,e)},PullJSONFromURL:function(e,g){try{var c="";c=0===e.indexOf("https")?e:"https://tag."+_dsgTag.currentWebsite.Domain+"/"+e;var d=new XMLHttpRequest;
d.open("GET",c,!0);d.setRequestHeader("Content-Type","application/json");d.onreadystatechange=function(){if(4===this.readyState)if(200<=this.status&&400>this.status){var c=this.responseText;try{var d=JSON.parse(c);g(d)}catch(k){_dsgTag.HelperFunctions.DebugLog("Error while parsing JSON file:"+k.message,!0)}}else _dsgTag.HelperFunctions.DebugLog("Error while pulling JSON file:"+filename,!0)};d.send();d=null}catch(f){}},BindDocumentClickEventWithAdditionalSelector:function(e,g){document.addEventListener("click",
function(c){try{for(var d=c.target,f=0;d&&200>f;){if("function"===typeof d.matches&&d.matches(e)||"function"===typeof d.msMatchesSelector&&d.msMatchesSelector(e)){g(d);return}d=d.parentNode;f++}if("undefined"!==typeof c.path&&0<c.path.length){d=c.target;individualSelectors=e.split(",");for(var n=0;n<individualSelectors.length;n++)if(1<(nodeSelectors=individualSelectors[n].trim().split(" ")).length){nodeSelectors.reverse();for(var k=0,q=0,h,t,u;k<c.path.length&&q<nodeSelectors.length;){t=c.path[k];
u=nodeSelectors[q];if("function"===typeof Element.prototype.matches&&t.matches(u)||"function"===typeof Element.prototype.msMatchesSelector&&t.msMatchesSelector(u))h||(h=t),q++;k++}if(q>=nodeSelectors.length){g(h);return}}}var v=document.querySelectorAll(e);for(n=0;n<v.length;n++)for(d=c.target,f=0;d&&200>f;){if(v[n]===d){g(v[n]);return}d=d.parentNode;f++}}catch(B){}})},ScrapeTextViaSelector:function(e){return(e=document.querySelector(e))?e.innerText.trim():""},HideObjectViaCSS:function(e,g){try{document.head.appendChild(node=
document.createElement("style"),node.innerText=e+" "+(g?"{visibility:hidden":"{display:none")+" !important}",node)}catch(c){}},IsInLane:function(e,g){try{g=g||0;var c=_dsgTag.customerLanes[g];if("number"===typeof e)return c===e;if("boolean"===typeof e)return e;if("string"===typeof e){var d=!1,f=e.split(","),n=e.split("-");if(Number(e.trim()))return _dsgTag.HelperFunctions.IsInLane(Number(e.trim()),g);if(1<f.length){for(var k=0;k<f.length&&!d;k++)d=_dsgTag.HelperFunctions.IsInLane(f[k].trim(),g);return d}if(2===
n.length){for(k=Number(n[0].trim());k<=Number(n[1].trim())&&!d;k++)d=_dsgTag.HelperFunctions.IsInLane(k,g);return d}if("even"===e.toLowerCase())return 0==c%2;if("odd"===e.toLowerCase())return 1==c%2;if("true"===e.toLowerCase())return!0;e.toLowerCase()}}catch(q){_dsgTag.HelperFunctions.DebugLog("Error occured parsing Lane logic '"+e+"':"+q.message,!0)}return!1},CompareValues:function(e,g,c){try{var d=function(c,d,f){switch(f.toLowerCase()){case "=":return c==d;case "!=":return c!=d;case "^=":return 0==
c.toLowerCase().indexOf(d.toLowerCase());case "^!=":return 0!=c.toLowerCase().indexOf(d.toLowerCase());case "$=":return c.toLowerCase().indexOf(d.toLowerCase())==c.length-d.length;case "*=":return 0<=c.toLowerCase().indexOf(d.toLowerCase());case "*!=":return 0>c.toLowerCase().indexOf(d.toLowerCase())}},f=0<=c.indexOf("!"),n=f;Array.isArray(g)||(g=[g]);for(var k=0;k<g.length;k++){var q=d(e.toString().toLowerCase(),g[k].toString().toLowerCase(),c);n=f?n&&q:n||q}return n}catch(h){}return!1},TriggerFunctionWhenVisible:function(e,
g,c){try{var d=!1,f=new IntersectionObserver(function(f){try{f.forEach(function(f){try{!(0<f.intersectionRatio)||d&&c||(g(),d=!0)}catch(h){_dsgTag.HelperFunctions.DebugLog("Error executing callback for visibility trigger: "+h.message,!0)}})}catch(q){_dsgTag.HelperFunctions.DebugLog("Error executing visibility trigger: "+q.message,!0)}});"string"===typeof e?e=document.querySelectorAll(e):"undefined"===typeof e.length&&(e=[e]);for(var n=0;n<e.length;n++)f.observe(e[n])}catch(k){_dsgTag.HelperFunctions.DebugLog("Error setting up visibility trigger: "+
k.message,!0)}},PollForElementsAndCallback:function(e,g){if("undefined"!==typeof window)try{var c=document.querySelectorAll(e);0<c.length?g(c):setTimeout(_dsgTag.HelperFunctions.PollForElementsAndCallback,100,e,g)}catch(d){}},ProcessLanesAndFlags:function(e){try{var g={};_dsgTag.TestEvents=_dsgTag.TestEvents||[];_dsgTag.HelperFunctions.SaveValue("LaneJSON",JSON.stringify(_dsgTag.savedLaneData));try{for(var c=0;c<e.length;c++)if(!e[c].nonProd||!_dsgTag.isProduction){var d=!0,f=!0,n=!0,k=!1;e[c].sites&&
(d=0<=e[c].sites.indexOf(_dsgTag.currentWebsite.Abbreviation));e[c].pageTypes&&(f=0<=e[c].pageTypes.indexOf(_dsgTag.HelperFunctions.GetPageTypeByURL().Name));e[c].lanes&&(n=_dsgTag.HelperFunctions.IsInLane(e[c].lanes,e[c].pool));e[c].solepanelAllowed&&(k="true"===e[c].solepanelAllowed.toLowerCase());if(d&&f&&n&&!_dsgTag.isLaunch&&("CVCC"!==_dsgTag.experience||k)&&(_dsgTag.EnabledTests=_dsgTag.EnabledTests||[],0>_dsgTag.EnabledTests.indexOf(e[c].name))){_dsgTag.EnabledTests.push(e[c].name);var q=e[c].flags;
for(d=0;d<q.split(",").length;d++){var h=q.split(",")[d];g[h]=!e[c].toggle}if(e[c].additionalValues&&Array.isArray(e[c].additionalValues))for(d=0;d<e[c].additionalValues.length;d++)g[e[c].additionalValues[d].key]=e[c].additionalValues[d].value;e[c].events&&(_dsgTag.TestEvents=_dsgTag.TestEvents.concat(e[c].events));e[c].hiddenLanes&&e[c].hiddenLanesSelector&&_dsgTag.HelperFunctions.IsInLane(e[c].hiddenLanes,e[c].pool)&&_dsgTag.HelperFunctions.HideObjectViaCSS(e[c].hiddenLanesSelector)}}}catch(z){_dsgTag.HelperFunctions.DebugLog("Error processing Test Lane Flag data: "+
z.message,!0)}try{if(!_dsgTag.HelperFunctions.GetQueryStringValue("camp")){var t=window.location.search;e=/(?:\?|&)([^=]+)=(?:[^&]+)/ig;for(var u;u=e.exec(t);){var v=/^flag_(.+)/ig.exec(u[1]);v&&1<v.length&&"true"==_dsgTag.HelperFunctions.GetQueryStringValue(u[1])&&(g[v[1]]=!0)}}}catch(z){}_dsgTag.flagData=g;for(var B in g)window[B]=g[B];clearTimeout(_dsgTag.laneJSONPending);_dsgTag.laneJSONPending=!1;if("undefined"!==typeof _dsgTag.pendingTags&&0<_dsgTag.pendingTags.length)for(c=0;c<_dsgTag.pendingTags.length;c++)_dsgTag.pendingTags[c]();
var D=new CustomEvent("WindowFlagsEvent",{detail:g});document.dispatchEvent(D)}catch(z){_dsgTag.HelperFunctions.DebugLog("Error importing Test Lane Flag data: "+z.message,!0)}},GenerateRandomString:function(e){for(var g="",c=0;c<e;c++)g+="0123456789".charAt(Math.floor(10*Math.random()));return g},DebugTimer:function(e,g){if("function"===typeof g){var c=Date.now();g();_dsgTag.HelperFunctions.DebugLog("Timer: "+e+" - "+(Date.now()-c).toString()+"ms",_dsgTag.LogLevels.Verbose)}else _dsgTag.HelperFunctions.DebugLog("Timer: "+
e+" - "+(Date.now()-_dsgTag.taggingInitTimestamp).toString()+"ms",_dsgTag.LogLevels.Verbose)},SHA256Hash:function(e){return new Promise(function(g){var c=(new TextEncoder).encode(e);window.crypto.subtle.digest("SHA-256",c).then(function(c){c=Array.from(new Uint8Array(c)).map(function(c){return c.toString(16).padStart(2,"0")}).join("");g(c)})})},IsKnownBot:function(){var e=!1;if(navigator&&navigator.userAgent)for(var g=[/googlebot/i,/google-inspectiontool/i],c=0;c<g.length&&!e;c++)e=g[c].test(navigator.userAgent);
return e},ToMoney:function(e){try{return parseFloat(parseFloat(e).toFixed(2))}catch(g){return _dsgTag.HelperFunctions.DebugLog("Error converting "+e.toString()+" to money value: "+g.message,_dsgTag.LogLevels.Error),e}},GetMarketingChannelInfo:function(){var e={Channel:"",ReferringDomain:"",Campaign:"",URL:""},g=[];for(d in _dsgTag.Websites)g.push(_dsgTag.Websites[d].Domain);var c='{"360.cn":{"d":["360.cn"],"q":["q"]},"Startsiden":{"d":["abcsok.no"],"q":["q"]},"Alhea":{"d":["alhea.com"],"q":["q"]},"Alot":{"d":["search.alot.com","alot.com"],"q":["q"]},"AltaVista":{"d":["altavista.co","altavista.de"],"q":["q","r"]},"AOL":{"d":["search.aol.","suche.aolsvc.de"],"q":["q","query"]},"Ask":{"d":["ask.jp","ask.co"],"q":["q","ask"]},"AVG":{"d":["isearch.avg.com"],"q":["q"]},"Baidu":{"d":["baidu.com"],"q":["word","wd"]},"Blekko":{"d":["blekko.com"],"q":["q"]},"Bing":{"d":["bing.com"],"q":["q"]},"CNN Web Search":{"d":["search.cnn.com"],"q":["query"]},"Comcast":{"d":["search.xfinity.com"],"q":["q"]},"Contenko":{"d":["contenko.com"],"q":["q"]},"Daum":{"d":["daum.net","search.daum.net"],"q":["q"]},"Dictionary":{"d":["ask.reference.com"],"q":["q"]},"DogPile":{"d":["dogpile.com"],"q":["q"]},"DuckDuckGo":{"d":["duckduckgo.com"],"q":["q"]},"Earthlink":{"d":["search.earthlink.net"],"q":["q"]},"Excite":{"d":["excite.co","msxml.excite.com"],"q":["search","q"]},"Good Search":{"d":["goodsearch.com"],"q":["keywords"]},"Google":{"d":["google.","googlesyndication.com",".googleadservices.com"],"q":["q","as_q"]},"icq":{"d":["icqit.com"],"q":["q"]},"Info.com":{"d":["info.com"],"q":["qkw"]},"InfoSpace":{"d":["search.infospace.com","infospace.com"],"q":["q"]},"ixquick.com":{"d":["ixquick.com"],"q":["query"]},"libero.it":{"d":["libero.it"],"q":["query"]},"Lycos":{"d":["search.lycos.com"],"q":["q"]},"Mail.ru":{"d":["mail.ru"],"q":["q"]},"MSN":{"d":["msn.com"],"q":["q"]},"MyWebSearch":{"d":[".mywebsearch.com","mywebsearch.com"],"q":["searchfor"]},"MyWay.com":{"d":["myway.com"],"q":["searchfor"]},"Naver":{"d":["naver.com","search.naver.com"],"q":["query"]},"Netscape Search":{"d":["netscape.com"],"q":["query","search"]},"Optimum Search":{"d":["optimum.net"],"q":["q"]},"Reference.com":{"d":["reference.com"],"q":["q"]},"RoadRunner Search":{"d":["search.rr.com"],"q":["qs"]},"Search Results.com":{"d":["search-results.com"],"q":["q"]},"seznam.cz":{"d":["seznam.cz"],"q":["q"]},"so.com":{"d":["so.com"],"q":["q"]},"sogou.com":{"d":["sogou.com"],"q":["query"]},"Tiscali":{"d":["tiscali.it","www.tiscali.co.uk"],"q":["key","query"]},"Virgilio":{"d":["virgilio.it"],"q":["qs"]},"Yandex.ru":{"d":["yandex"],"q":["text"]},"WebCrawler":{"d":["webcrawler.com"],"q":["q"]},"Wow":{"d":["wow.com"],"q":["q"]},"Yahoo!":{"d":["yahoo.com","search.yahoo.com","yahoo.co.jp"],"q":["p","va"]},"Yahoo! - Link Referral":{"d":["r.search.yahoo.com"],"q":["p"]},"Zen Search":{"d":["zensearch.com"],"q":["q"]}}';
var d='{"SNS":[{"d":"t.co","x":true},{"d":"facebook.com","x":false},{"d":"wanelo.com","x":false},{"d":"linkedin.com","x":false},{"d":"twitter.com","x":false},{"d":"orkut.com","x":false},{"d":"friendster.com","x":false},{"d":"livejournal.com","x":false},{"d":"blogspot.com","x":false},{"d":"wordpress.com","x":false},{"d":"friendfeed.com","x":false},{"d":"digg.com","x":false},{"d":"reddit.com","x":false},{"d":"stumbleupon.com","x":false},{"d":"twine.com","x":false},{"d":"yelp.com","x":false},{"d":"mixx.com","x":false},{"d":"delicious.com","x":false},{"d":"tumblr.com","x":false},{"d":"disqus.com","x":false},{"d":"intensedebate.com","x":false},{"d":"plurk.com","x":false},{"d":"slideshare.net","x":false},{"d":"backtype.com","x":false},{"d":"netvibes.com","x":false},{"d":"mister-wong.com","x":false},{"d":"diigo.com","x":false},{"d":"flixster.com","x":false},{"d":"youtube.com","x":false},{"d":"vimeo.com","x":false},{"d":"12seconds.tv","x":false},{"d":"zooomr.com","x":false},{"d":"identi.ca","x":false},{"d":"jaiku.com","x":false},{"d":"flickr.com","x":false},{"d":"imeem.com","x":false},{"d":"dailymotion.com","x":false},{"d":"photobucket.com","x":false},{"d":"fotolog.com","x":false},{"d":"smugmug.com","x":false},{"d":"classmates.com","x":false},{"d":"myyearbook.com","x":false},{"d":"mylife.com","x":false},{"d":"tagged.com","x":false},{"d":"brightkite.com","x":false},{"d":"ning.com","x":false},{"d":"bebo.com","x":false},{"d":"hi5.com","x":false},{"d":"yuku.com","x":false},{"d":"cafemom.com","x":false},{"d":"xanga.com","x":false},{"d":"pinterest.com","x":false},{"d":"foursquare.com","x":false},{"d":"instagram.com","x":false},{"d":"like2b.uy","x":false},{"d":"myspace.com","x":false}],"PAR":[{"d":"maxfli.com","x":false},{"d":"nickentgolf.com","x":false},{"d":"topflite.com","x":false},{"d":"epicfit.com","x":false},{"d":"koppen.prod.tracylocke.com","x":false}]}';
try{var f=_dsgTag.DataLayer.GetValue("ReferringPageURL"),n=_dsgTag.HelperFunctions.GetQueryStringValue("camp");f||n||!_dsgTag.HelperFunctions.GetQueryStringValue("srsltid")||(n="OPA:"+_dsgTag.HelperFunctions.GetQueryStringValue("srsltid"),f="https://www.google.com");n?(n=decodeURIComponent(n),e.Campaign=n):e.Campaign="n/a";var k=new Date;k.setTime(k.getTime()+18E5);var q=_dsgTag.HelperFunctions.GetCookieValue("TAG_Direct");!q||(Date.now(),parseInt(q));_dsgTag.HelperFunctions.WriteCookieValue("TAG_Direct",
Date.now().toString(),k,!0);if(f){var h=f.split("/")[2].toLowerCase();e.ReferringDomain=h;k=!1;var t="javascript:,tel:,"+_dsgTag.linkInternalFilters;t+=","+window.location.hostname.toLowerCase();for(var u=t.split(",").concat(JSON.parse('["mycustomizer.com","associatekiosk.dcsg.com","dsgcep.custhelp.com","ggcep.custhelp.com","dickssportinggoodsonline.com","dsgn.dcsg.com","investors.dicks.com","maxfli.com","mobile.where2getit.com","myw2.dcsg.com","paypal.com","app.dcsg.com","bbhosted.com","brandingbrand.com","dcsg.com","gsipartners.com","where2getit.com","where2stageit.com","453andahalf.com","cardinalcommerce.com","cashstar.com","conxport.com","dicks.com","dicksmvp.com","dickssportinggoods.jobs","dicksteamgear.com","dsg.com","dsgcorpevents.com","easy2.com","golfgalaxyjobs.com","golfgalaxylessons.com","m3mobile.com","mydickssportinggoods.com","mygolfgalaxy.com","myscorecardaccount.com","reviewmyaccount.com","savvis.net","sombreropay.com","sombrerosport.com","bluesombrero.com","sportsmansadvantageclub.com","sportsmatter.com","sportsmatter.org","truerunner.com"]')).concat(g),
v=0;v<u.length&&!k;v++){var B=u[v].toLowerCase();k=0<=h.indexOf(B)}if(k&&!n)return{Channel:"",ReferringDomain:"",Campaign:"",URL:""};g=!1;c=JSON.parse(c);for(var D in c){var z=c[D].d;for(t=0;t<z.length&&!g;t++){var A=z[t].toLowerCase();g=0<=h.indexOf(A)}if(g){e.Channel=n?"SEM":"SEO";break}}D=!1;d=JSON.parse(d);for(var C in d){var p=d[C];for(v=0;v<p.length&&!D;v++){var l=p[v].d.toLowerCase();D=p[v].x?h==l:0<=h.indexOf(l)}if(D){e.Channel=C;break}}}else e.ReferringDomain="n/a";if(n){var G=e.Campaign.match(/^aff(?::.*?){5}/i);
if(G)e.Channel="AFF",e.Campaign=G[0];else{var F=/^([a-zA-Z]{1,3}).*/gi.exec(n);if(1<F.length){F=F[1].toUpperCase();d=JSON.parse('{"DSP":["DIS", "ESP"], "EML": ["EMA", "PRO", "TRI", "201"], "SEM": ["PPC"], "SNS": ["SNT", "SN", "SN:"], "TXT": ["TEX"], "SEO": ["OPA"]}');h=!1;for(var I in d){var K=d[I];for(v=0;v<K.length;v++)if(0==n.toLowerCase().indexOf(K[v].toLowerCase())){F=I;h=!0;break}if(h)break}e.Channel=F;e.Campaign=n}}}e.Channel||(f?e.Channel="RFD":(e.Channel="DRT",e.ReferringDomain="drt"));if(e.Channel){var J=
_dsgTag.DataLayer.GetValue("PageURL");f="acq tsa channel sl param gmb pdp seo".split(" ");for(v=0;v<f.length;v++)(value=_dsgTag.HelperFunctions.GetQueryStringValue(f[v]))?f[v]=f[v]+"="+_dsgTag.HelperFunctions.GetQueryStringValue(f[v]):(f.splice(v,1),v--);J=J.split("?")[0]+(0<f.length?"?"+f.join("&"):"");if(0===J.indexOf("http")){var R=J.split(".")[0];f=["stores","storelocator","protips","myscorecard"];n=!0;for(v=0;v<f.length&&n;v++)n=0>R.indexOf(f[v]);n&&(J=J.split(".").splice(1).join("."))}e.URL=
J}}catch(N){_dsgTag.HelperFunctions.DebugLog("Error occurred in GetMarketingChannelInfo: "+N.message,!0)}return e}};_dsgTag.HelperFunctions.DebugLog("Tagging Initializing - v."+_dsgTag.tagVersion);_dsgTag.s__host=window.location.hostname.toLowerCase();_dsgTag.s__path=window.location.pathname.toLowerCase();_dsgTag.s__website={Abbreviation:"Unknown",Domain:"Unknown",RegEx:/^$/,ProdRegEx:/^$/,CustomTrackingServerDomain:"dickssportinggoods.com"};_dsgTag.s__experience="Unknown";
_dsgTag.s__isProduction=!1;_dsgTag.s__linkInternalFilters;for(key in _dsgTag.Websites)if(_dsgTag.Websites[key].RegEx.test(_dsgTag.s__host)){_dsgTag.s__website=_dsgTag.Websites[key];break}
if((_dsgTag.HelperFunctions.GetPageTypeByURL()===_dsgTag.PageTypes.MyAccountSignIn||_dsgTag.HelperFunctions.GetPageTypeByURL()===_dsgTag.PageTypes.MyAccountSignInAuth0)&&document.referrer)try{for(key in _dsgTag.Websites){var qa=document.referrer.split("/")[2];if(_dsgTag.Websites[key].RegEx.test(qa)){_dsgTag.websiteOverride=_dsgTag.Websites[key];break}}}catch(e){}
0<=_dsgTag.s__host.toLowerCase().indexOf("where2getit")&&(0<=_dsgTag.s__path.toLowerCase().indexOf("dickssportinggoods")?_dsgTag.s__website=window._dsgTag.Websites.DicksSportingGoods:0<=_dsgTag.s__path.toLowerCase().indexOf("golfgalaxy")&&(_dsgTag.s__website=window._dsgTag.Websites.GolfGalaxy));
0<=_dsgTag.s__host.toLowerCase().indexOf("solepanel-")&&(0<=_dsgTag.s__host.toLowerCase().indexOf("-dks")?_dsgTag.s__website=window._dsgTag.Websites.DicksSportingGoods:0<=_dsgTag.s__host.toLowerCase().indexOf("-gg")?_dsgTag.s__website=window._dsgTag.Websites.GolfGalaxy:0<=_dsgTag.s__host.toLowerCase().indexOf("-pl")&&(_dsgTag.s__website=window._dsgTag.Websites.PublicLands));_dsgTag.s__prodMatchResults=_dsgTag.s__website.ProdRegEx.exec(_dsgTag.s__host);
if(_dsgTag.s__prodMatchResults){_dsgTag.s__isProduction=!0;_dsgTag.s__linkInternalFilters=_dsgTag.s__prodMatchResults[1];switch(_dsgTag.s__host.split(".")[0]){case "www":_dsgTag.s__experience="Desktop";break;case "t":_dsgTag.s__experience="Tablet";break;case "mobile":case "m":_dsgTag.s__experience="Mobile";break;case "m2":_dsgTag.s__experience="Mobile App";break;case "maos":case "m4":_dsgTag.s__experience="In Store Mobile";break;case "kiosk":case "associatekioskweb":case "aos":_dsgTag.s__experience=
"Kiosk";break;default:_dsgTag.s__experience="Desktop"}0<=_dsgTag.s__host.toLowerCase().indexOf("solepanel")&&(_dsgTag.s__experience="CVCC");"Desktop"===_dsgTag.s__experience&&_dsgTag.HelperFunctions.GetCookieValue("dih")&&("mobile"===_dsgTag.HelperFunctions.GetCookieValue("dih").toLowerCase()?_dsgTag.s__experience="Mobile":"tablet"===_dsgTag.HelperFunctions.GetCookieValue("dih").toLowerCase()&&(_dsgTag.s__experience="Mobile"))}else{if(0<=_dsgTag.s__host.indexOf("localhost")||0<=_dsgTag.s__host.indexOf("local.charles")||
/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(_dsgTag.s__host))_dsgTag.s__website=_dsgTag.Websites.DicksSportingGoods;_dsgTag.s__isProduction=!1;_dsgTag.s__linkInternalFilters=/.+\.(.+\..+)/.exec(_dsgTag.s__host);_dsgTag.s__linkInternalFilters&&1<_dsgTag.s__linkInternalFilters.length?(_dsgTag.s__linkInternalFilters=_dsgTag.s__linkInternalFilters[1],/(m|dsgr(-(dev0|qa|beta)\d?)?)(-qa\d)?\.uat|m-(dks|gg|qa)|bbhosted|m1?\./.test(_dsgTag.s__host)?
_dsgTag.s__experience="Mobile":/m2\.uat|m2-(dks|gg|qa)/.test(_dsgTag.s__host)?_dsgTag.s__experience="Mobile App":/m4\.uat|m4-(dks|gg|qa)/.test(_dsgTag.s__host)?_dsgTag.s__experience="In Store Mobile":/theta|tt\d|t\.uat|t-(dks|gg|qa)/.test(_dsgTag.s__host)?_dsgTag.s__experience="Tablet":/maos/.test(_dsgTag.s__host)?_dsgTag.s__experience="In Store Mobile":/aos/.test(_dsgTag.s__host)?_dsgTag.s__experience="Kiosk":/associatekioskwebdev/.test(_dsgTag.s__host)?_dsgTag.s__experience="Kiosk":/solepanel/.test(_dsgTag.s__host)?
_dsgTag.s__experience="CVCC":_dsgTag.s__experience="Desktop"):(_dsgTag.s__linkInternalFilters=_dsgTag.s__host,_dsgTag.s__experience="Desktop")}"Desktop"===_dsgTag.s__experience&&(0<=document.cookie.indexOf("DSG_ADID")||0<=window.location.search.toLowerCase().indexOf("ad_id=kiosk"))&&(_dsgTag.s__experience="Kiosk");window._dsgTag.currentWebsite=_dsgTag.s__website;window._dsgTag.experience=_dsgTag.s__experience;window._dsgTag.isProduction=_dsgTag.s__isProduction;window._dsgTag.linkInternalFilters=_dsgTag.s__linkInternalFilters;
window._dsgTag.isLaunch=window.location.host&&"launch"===window.location.host.split(".")[0].toLowerCase();window._dsgTag.isAOS="Kiosk"===window._dsgTag.experience||"In Store Mobile"===window._dsgTag.experience||"CVCC"===window._dsgTag.experience;var Fa=window._dsgTag,Ga;try{Ga=window.self!==window.top}catch(e){Ga=!0}Fa.isIFrame=Ga;window._dsgTag.HelperFunctions.DeleteCookie("TagLane");window._dsgTag.customerLane=-1;window._dsgTag.customerLanes=[];var Ha="";
_dsgTag.currentWebsite===_dsgTag.Websites.DicksSportingGoods?Ha=_dsgTag.HelperFunctions.GetCookieValue("swimlane_as_exp_dsg"):_dsgTag.currentWebsite===_dsgTag.Websites.GolfGalaxy?Ha=_dsgTag.HelperFunctions.GetCookieValue("swimlane_as_exp_gg"):_dsgTag.currentWebsite===_dsgTag.Websites.PublicLands?Ha=_dsgTag.HelperFunctions.GetCookieValue("swimlane_as_exp_publiclands"):_dsgTag.currentWebsite===_dsgTag.Websites.GoingGoingGone?Ha=_dsgTag.HelperFunctions.GetCookieValue("swimlane_as_exp_goinggoing"):_dsgTag.currentWebsite===
_dsgTag.Websites.Moosejaw&&(Ha=_dsgTag.HelperFunctions.GetCookieValue("swimlane_as_exp_moosejaw"));var Ma=["akaas_AS_Exp_Desktop","akaas_AS_Exp_Desktop_1","akaas_AS_Exp_Mobile","akaas_AS_Exp_Mobile_1"];if(Ha&&(value=parseInt(Ha))){window._dsgTag.customerLane=value;for(var M=0;M<Ma.length;M++)_dsgTag.HelperFunctions.DeleteCookie(Ma[M])}
try{var Na=[];if(_dsgTag.HelperFunctions.GetCookieValue("AdditionalLanes"))for(Na=_dsgTag.HelperFunctions.GetCookieValue("AdditionalLanes").split(","),M=0;M<Na.length;M++)Na[M]=parseInt(Na[M])||-1;for(;7>Na.length;)Na.push(-1);_dsgTag.customerLanes=[_dsgTag.customerLane].concat(Na)}catch(e){}
try{if(_dsgTag.HelperFunctions.GetValue("SavedLanes")){var Oa=JSON.parse(_dsgTag.HelperFunctions.GetValue("SavedLanes"));for(M=0;M<Oa.length;M++)if(_dsgTag.customerLanes[M]&&_dsgTag.customerLanes[M]!=Oa[M]){_dsgTag.HelperFunctions.SaveValue("LaneChanged",!0);break}}_dsgTag.HelperFunctions.SaveValue("SavedLanes",JSON.stringify(window._dsgTag.customerLanes));_dsgTag.HelperFunctions.DeleteValue("SavedAkamaiLane")}catch(e){window._dsgTag.customerLanes&&_dsgTag.HelperFunctions.SaveValue("SavedLanes",JSON.stringify(window._dsgTag.customerLanes))}
try{parseInt(_dsgTag.HelperFunctions.GetQueryStringValue("TagForceLane"))&&_dsgTag.HelperFunctions.SaveValue("TagForceLane",_dsgTag.HelperFunctions.GetQueryStringValue("TagForceLane"))}catch(e){_dsgTag.HelperFunctions.DebugLog("Error reading lane query string: "+e.message,!0)}var Pa=_dsgTag.HelperFunctions.GetValue("TagForceLane");if(Pa)for(window._dsgTag.customerLane=parseInt(Pa),M=0;M<_dsgTag.customerLanes.length;M++)_dsgTag.customerLanes[M]=parseInt(Pa);
_dsgTag.currentWebsite==_dsgTag.Websites.GoingGoingGone&&_dsgTag.HelperFunctions.IsInLane("1-8")&&(_dsgTag.HelperFunctions.DebugLog("[VisitorID Test] Loading WebSDK Early"),!function(e,g){g.forEach(function(c){e[c]||((e.__alloyNS=e.__alloyNS||[]).push(c),e[c]=function(){var d=arguments;return new Promise(function(f,g){e[c].q.push([f,g,d])})},e[c].q=[])})}(window,["alloy"]),_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://tag."+_dsgTag.currentWebsite.Domain+"/scripts/alloy.2.24.0.min.js",
"WebSDK"));_dsgTag.laneJSONPending=!1;
if(!_dsgTag.currentWebsite.DontGetLaneJSON)try{_dsgTag.savedLaneData=JSON.parse(_dsgTag.HelperFunctions.GetValue("LaneJSON")),!_dsgTag.savedLaneData||_dsgTag.savedLaneData.lastPulled+3E5<Date.now()?(_dsgTag.savedLaneData=_dsgTag.savedLaneData||{},window._dsgTag.taggingIsSynchronous?(_dsgTag.savedLaneData.lastPulled=Date.now(),document.write("<script id='laneJSONScript' type='text/javascript' src='https://tag."+_dsgTag.currentWebsite.Domain+"/scripts/LaneJSON"+(_dsgTag.HelperFunctions.GetValue("OptDev")?
"-dev":"")+".js'>\x3c/script>"),_dsgTag.laneJSONPending=setTimeout(function(){_dsgTag.savedLaneData.data?_dsgTag.HelperFunctions.ProcessLanesAndFlags(_dsgTag.savedLaneData.data):_dsgTag.HelperFunctions.ProcessLanesAndFlags([])},5E3)):_dsgTag.savedLaneData.data&&_dsgTag.HelperFunctions.ProcessLanesAndFlags(_dsgTag.savedLaneData.data)):_dsgTag.HelperFunctions.ProcessLanesAndFlags(_dsgTag.savedLaneData.data)}catch(e){_dsgTag.HelperFunctions.DebugLog("Error setting up Lane JSON: "+e.message,!0)}
try{_dsgTag.CONST_NewVisitTimeDifference=18E5;_dsgTag.CONST_OrderHistoryRollingWindow=2592E6;_dsgTag.CONST_MaxOrderHistoryLength=10;_dsgTag.visitor=_dsgTag.HelperFunctions.GetValue("Visitor");_dsgTag.visitor?(_dsgTag.visitor=JSON.parse(_dsgTag.visitor),_dsgTag.visitor.pageCount?_dsgTag.visitor.pageCount++:_dsgTag.visitor.pageCount=1,_dsgTag.visitor.timeOnPreviousPage=parseInt((Date.now()-_dsgTag.visitor.lastTouch)/1E3)):(_dsgTag.visitor={},_dsgTag.visitor.visitCount=1,_dsgTag.visitor.pageCount=1,
_dsgTag.visitor.orderHistory=[],_dsgTag.visitor.lastTouch=Date.now(),_dsgTag.visitor.timeOnPreviousPage=-1);Date.now()-_dsgTag.visitor.lastTouch>=_dsgTag.CONST_NewVisitTimeDifference&&(_dsgTag.visitor.visitCount++,_dsgTag.visitor.pageCount=1,_dsgTag.visitor.timeOnPreviousPage=-1);_dsgTag.visitor.lastTouch=Date.now();var Va=Date.now()-_dsgTag.CONST_OrderHistoryRollingWindow;for(M=0;M<_dsgTag.visitor.orderHistory.length;M++)parseInt(_dsgTag.visitor.orderHistory[M].Date)<Va&&(_dsgTag.visitor.orderHistory.splice(M,
1),M--);_dsgTag.VisitCount=_dsgTag.visitor.visitCount;_dsgTag.PageCount=_dsgTag.visitor.pageCount;_dsgTag.OrderHistory=_dsgTag.visitor.orderHistory;_dsgTag.HelperFunctions.SaveValue("Visitor",JSON.stringify(_dsgTag.visitor),!1)}catch(e){_dsgTag.HelperFunctions.SaveValue("Visitor",JSON.stringify({}),!1),_dsgTag.HelperFunctions.DebugLog("Error loading visitor data: "+e.message,!0)}
try{var Wa=_dsgTag.HelperFunctions.GetValue("Referrer");_dsgTag.previousLocation={};if(Wa)try{_dsgTag.previousLocation=JSON.parse(Wa)}catch(e){_dsgTag.previousLocation=JSON.parse(JSON.stringify(window.location)),_dsgTag.previousLocation.href=Wa}_dsgTag.referrer="";document.referrer&&0<document.referrer.indexOf(_dsgTag.currentWebsite.Domain)?_dsgTag.referrer=_dsgTag.previousLocation.href:document.referrer&&(_dsgTag.referrer=document.referrer);_dsgTag.HelperFunctions.SaveValue("Referrer",JSON.stringify(window.location));
document.addEventListener("at-request-succeeded",function(e){try{e.detail.redirect&&_dsgTag.HelperFunctions.SaveValue("TargetRedirect",_dsgTag.referrer)}catch(g){}});_dsgTag.HelperFunctions.GetValue("TargetRedirect")&&(_dsgTag.previousLocation.targetRedirectReferrer=_dsgTag.HelperFunctions.GetValue("TargetRedirect"),_dsgTag.HelperFunctions.DeleteValue("TargetRedirect"))}catch(e){}_dsgTag.FunctionRepository={};_dsgTag.registeredTags=[];
_dsgTag.InitTimings={Immediate:1,DOMLoaded:2,WindowComplete:3,FirstInteractionPostWindowComplete:4,PageCustomTrigger:5,Page3rdPartySignal:6};_dsgTag.pendingTags=[];_dsgTag.blockedTags=[];_dsgTag.DoNotSell=_dsgTag.HelperFunctions.GetCookieValue("ccpa")&&"true"==_dsgTag.HelperFunctions.GetCookieValue("ccpa").toString().toLowerCase();_dsgTag.HelperFunctions.GetCookieValue("BlockedTags")&&(_dsgTag.blockedTags=_dsgTag.blockedTags.concat(_dsgTag.HelperFunctions.GetCookieValue("BlockedTags").split(",")));
_dsgTag.FunctionRepository.RegisterTag=function(e,g,c,d){try{"function"===typeof c&&"undefined"===typeof d&&(d=c,c=!1);var f=function(c,f){for(var e=!1,h=0;h<_dsgTag.blockedTags.length;h++)e=e||c==_dsgTag.blockedTags[h];var n=_dsgTag.pageType.RestrictTags||!1;if(f)for(h=0;h<f.length;h++){var k=f[h],q=k.t.toLowerCase(),z=k.c;k=k.v;var A=!1;"bypass-restricted"==q&&"true"==k.toString().toLowerCase()&&(n=!1);if("dns"==q&&(e=e||_dsgTag.DoNotSell,!e&&_dsgTag.HelperFunctions.GetPageTypeByURL()===_dsgTag.PageTypes.ProductDetails)){e=
!0;var C=!1;_dsgTag.EventHandlers.AddEventHandler("NewPageView",function(e,l){if(!C){C=!0;e=!1;try{var p="",h=l.ProductDetails[0].ProductDescriptiveAttributes;if(h){for(l=0;l<h.length;l++)if("sx srchierarchy"===h[l].name.toLowerCase()){p=h[l].value;break}h=!1;for(l=0;l<window._dsgTag.excludedDNSCategories.length&&!h;l++)h=0<=p.indexOf(window._dsgTag.excludedDNSCategories[l]);e=!h}else e=!0}catch(I){e=!0,_dsgTag.HelperFunctions.DebugLog("Error re-evaluating DNS tag: "+I.message,!0)}if(e){e=[];for(l=
0;l<f.length;l++)"dns"!==f[l].t.toLowerCase()&&e.push(f[l]);_dsgTag.FunctionRepository.RegisterTag(c,g,e,d)}}},"RegisterPDPTagDNSCheck")}if("lanes"==q)e=e||!_dsgTag.HelperFunctions.IsInLane(k);else if("env"==q)switch(k){case "prod-only":e=e||!_dsgTag.isProduction;break;case "nonprod-only":e=e||_dsgTag.isProduction}else"flag"==q?e=e||"undefined"===typeof window[k]||1==!window[k]:("domain"==q?A=window.location.host:"site"==q?A=_dsgTag.currentWebsite.Abbreviation.toLowerCase():"page"==q?A=_dsgTag.pageType.Name.toLowerCase():
"aos"==q?A=_dsgTag.isAOS.toString():"iframe"==q&&(A=_dsgTag.isIFrame.toString()),A&&(e=e||!_dsgTag.HelperFunctions.CompareValues(A,k,z)))}n&&(e=!0);1==window["blocktag_"+c]&&(e=!0);_dsgTag.HelperFunctions.GetQueryStringValue("addcreditcardnumber")&&(e=!0);return e},n=function(){_dsgTag.laneJSONPending?_dsgTag.pendingTags.push(n):f(e,c)||(_dsgTag.registeredTags.push(e),_dsgTag.HelperFunctions.DebugTimer("Time to init "+e,function(){d({Name:e,AddEventHandler:function(c,d,f,g){_dsgTag.EventHandlers.AddEventHandler(c,
d,e,f,g)}})}))};if(g===_dsgTag.InitTimings.Immediate)n();else if(g===_dsgTag.InitTimings.DOMLoaded)_dsgTag.EventHandlers.AddDocumentReadyEventHandler(n);else if(g===_dsgTag.InitTimings.WindowComplete)_dsgTag.EventHandlers.AddWindowLoadEventHandler(n);else if(g===_dsgTag.InitTimings.Page3rdPartySignal)_dsgTag.pageType.WaitFor3rdPartyEvent?_dsgTag.EventHandlers.AddPage3rdPartyLoadEventHandler(n):(_dsgTag.HelperFunctions.DebugLog("Page "+_dsgTag.pageType.Name+" is not set to wait for 3rd Party Event; falling back to Window Loaded",
_dsgTag.LogLevels.Verbose),_dsgTag.EventHandlers.AddWindowLoadEventHandler(n));else if(g===_dsgTag.InitTimings.FirstInteractionPostWindowComplete)_dsgTag.EventHandlers.AddWindowLoadEventHandler(function(){_dsgTag.EventHandlers.AddFirstInteractionEventHandler(n)});else if(g===_dsgTag.InitTimings.PageCustomTrigger){var k=_dsgTag.pageType;"function"===typeof k.CustomTagTrigger?k.CustomTagTrigger(n):(_dsgTag.HelperFunctions.DebugLog("Page "+k.Name+" has no custom tag trigger; falling back to Window Loaded"),
_dsgTag.EventHandlers.AddWindowLoadEventHandler(n))}}catch(q){_dsgTag.HelperFunctions.DebugLog("Error while registering tag "+e+": "+q.message,!0)}};_dsgTag.WindowLoadEvents=[];_dsgTag.FirstInteractionEvents=[];_dsgTag.EventHandlers={};_dsgTag.EventHandlers.EventNames=config.eventNames;_dsgTag.EventHandlers.Events={};_dsgTag.EventHandlers.initialPageViewPreFired=!1;_dsgTag.EventHandlers.initialPageViewFired=!1;_dsgTag.EventHandlers.delayedPageViewEvents=[];
_dsgTag.EventHandlers.LaunchHandler=function(e,g,c,d,f,n){try{var k=function(){try{_dsgTag.EventHandlers.initialPageViewFired||!f?_dsgTag.HelperFunctions.DebugTimer(d,function(){e(g,c)}):(_dsgTag.EventHandlers.delayedPageViewEvents.push({Handler:e,Event:g,Data:c}),_dsgTag.HelperFunctions.DebugLog(g.type+" attempted to fire before Page View; delaying until after."))}catch(q){g?_dsgTag.HelperFunctions.DebugLog("Error executing "+g.type+" handler: "+q.message,!0):_dsgTag.HelperFunctions.DebugLog("Error executing handler: "+
q.message,!0)}};n?k():setTimeout(k,10)}catch(q){g?_dsgTag.HelperFunctions.DebugLog("Error preparing to execute "+g.type+" handler: "+q.message,!0):_dsgTag.HelperFunctions.DebugLog("Error preparing to execute handler: "+q.message,!0)}};
_dsgTag.EventHandlers.AddEventHandler=function(e,g,c,d,f){try{if("undefined"==typeof _dsgTag.EventHandlers.Events[e])try{_dsgTag.EventHandlers.Events[e]={firedValues:[],handlers:[]};if(config.prerenderingEvents&&config.prerenderingEvents[e])for(var n=0;n<config.prerenderingEvents[e].length;n++)_dsgTag.EventHandlers.Events[e].firedValues.push(config.prerenderingEvents[e][n]);document.addEventListener(e,function(c,d){try{var f=d||("undefined"!==typeof c?"undefined"!==typeof c.detail?c.detail:"undefined"!==
typeof c.originalEvent?c.originalEvent.detail:null:null);try{f=f?_dsgTag.HelperFunctions.DeepExtend({},f):window.siteData?_dsgTag.HelperFunctions.DeepExtend({},window.siteData):{}}catch(t){_dsgTag.HelperFunctions.DebugLog("Error deep extending event data",!0)}f.taggingEventID=_dsgTag.HelperFunctions.GenerateRandomString(20);try{0>c.type.indexOf("reporting:")&&_dsgTag.HelperFunctions.DebugLog(["Event: "+c.type,f,"Executing "+_dsgTag.EventHandlers.Events[e].handlers.length+" handler(s) for "+c.type])}catch(t){_dsgTag.HelperFunctions.DebugLog("Error occurred logging/bucketing for "+
c.type+" handler: "+t.message,!0)}_dsgTag.EventHandlers.Events[c.type].firedValues.push({object:c,data:f});for(d=0;d<_dsgTag.EventHandlers.Events[e].handlers.length;d++)_dsgTag.EventHandlers.LaunchHandler(_dsgTag.EventHandlers.Events[e].handlers[d].handler,c,f,"Handling event: "+e+" ["+_dsgTag.EventHandlers.Events[e].handlers[d].tagname+"]",_dsgTag.EventHandlers.Events[e].handlers[d].delayUntilPageView,_dsgTag.EventHandlers.Events[e].handlers[d].synchronous)}catch(t){_dsgTag.HelperFunctions.DebugLog("Error executing document level listener for event "+
c.type+": "+t.message,!0)}})}catch(k){_dsgTag.HelperFunctions.DebugLog("Error setting up base document level listener for event "+e+": "+k.message,!0)}if(g&&(_dsgTag.EventHandlers.Events[e].handlers.push({handler:g,tagname:c,delayUntilPageView:d,synchronous:f}),"undefined"!==typeof _dsgTag.EventHandlers.Events[e]&&"undefined"!==typeof _dsgTag.EventHandlers.Events[e].firedValues))for(n=0;n<_dsgTag.EventHandlers.Events[e].firedValues.length;n++)_dsgTag.EventHandlers.LaunchHandler(g,_dsgTag.EventHandlers.Events[e].firedValues[n].object,
_dsgTag.EventHandlers.Events[e].firedValues[n].data,"Handling event: "+e+" ["+c+"]",d,f)}catch(k){_dsgTag.HelperFunctions.DebugLog("Error adding new event handler "+e+": "+k.message,!0)}};for(M=0;M<_dsgTag.EventHandlers.EventNames.length;M++)_dsgTag.EventHandlers.AddEventHandler(_dsgTag.EventHandlers.EventNames[M],null,"Logger");
_dsgTag.EventHandlers.TriggerEvent=function(e,g){try{myEvent=new CustomEvent(e,{detail:g||null}),document.dispatchEvent(myEvent)}catch(c){_dsgTag.HelperFunctions.DebugLog("Failed to trigger Event '"+e+"':"+c.message,!0)}};_dsgTag.EventHandlers.AddDocumentReadyEventHandler=function(e){_dsgTag.EventHandlers.AddEventHandler("DocumentReady",e,"Base")};document.addEventListener("DOMContentLoaded",function(){_dsgTag.HelperFunctions.DividerLog("Document Loaded");_dsgTag.EventHandlers.TriggerEvent("DocumentReady")});
_dsgTag.EventHandlers.AddWindowLoadEventHandler=function(e){_dsgTag.EventHandlers.AddEventHandler("WindowLoaded",e,"Base")};_dsgTag.windowLoadLooper=setInterval(function(){"complete"===document.readyState&&(clearInterval(_dsgTag.windowLoadLooper),_dsgTag.HelperFunctions.DividerLog("Window Loaded"),_dsgTag.EventHandlers.TriggerEvent("WindowLoaded"))},100);_dsgTag.EventHandlers.AddPage3rdPartyLoadEventHandler=function(e){_dsgTag.EventHandlers.AddEventHandler("Load3rdPartyTags",e)};
_dsgTag.FirstInteractionOccurred=!1;_dsgTag.EventHandlers.AddFirstInteractionEventHandler=function(e){_dsgTag.EventHandlers.AddEventHandler("FirstInteractionOccurred",e,"Base")};
(function(){try{var e=function(){_dsgTag.FirstInteractionOccurred||(_dsgTag.FirstInteractionOccurred=!0,_dsgTag.HelperFunctions.DividerLog("First Interaction Occurred"),_dsgTag.EventHandlers.TriggerEvent("FirstInteractionOccurred"))};document.addEventListener("mousemove",e);document.addEventListener("scroll",e);document.addEventListener("keydown",e);document.addEventListener("click",e);document.addEventListener("touchstart",e)}catch(g){}})();
_dsgTag.EventHandlers.AddEventHandler("AddToCart",function(e,g){"undefined"===typeof g.ProductsAddedToCart&&("undefined"!==typeof g.data?(g={ProductsAddedToCart:[g.data],NewCart:"N"},_dsgTag.HelperFunctions.DebugLog("Incorrect AddToCart data format (Quickview); retriggering."),_dsgTag.EventHandlers.TriggerEvent("AddToCart",g)):"undefined"!==typeof g&&"Cart-SaveForLater"===g.CartAdditionSource?(g={ProductsAddedToCart:[g],NewCart:"N"},_dsgTag.HelperFunctions.DebugLog("Incorrect AddToCart data format (Save For Later); retriggering."),
_dsgTag.EventHandlers.TriggerEvent("AddToCart",g)):"undefined"!==typeof g&&"Cart-UndoSaveForLater"===g.CartAdditionSource&&(g={ProductsAddedToCart:[g],NewCart:"N"},_dsgTag.HelperFunctions.DebugLog("Incorrect AddToCart data format (Undo Save For Later); retriggering."),_dsgTag.EventHandlers.TriggerEvent("AddToCart",g)))},"Base");
_dsgTag.FunctionRepository.UpdatePageType=function(e,g){_dsgTag.pageType&&_dsgTag.pageType===_dsgTag.PageTypes.Error||(e=_dsgTag.HelperFunctions.GetPageTypeByURL(_dsgTag.DataLayer?_dsgTag.DataLayer.GetValue("PageURL"):"",g),_dsgTag.pageType=e===_dsgTag.PageTypes.Unknown?_dsgTag.pageType||e:e);_dsgTag.HelperFunctions.DebugLog("Page Type Updated: "+_dsgTag.pageType.Name);_dsgTag.pageType.MaskPage&&_dsgTag.HelperFunctions.HideObjectViaCSS("body")};_dsgTag.FunctionRepository.UpdatePageType();_dsgTag.EventHandlers.AddDocumentReadyEventHandler(_dsgTag.FunctionRepository.UpdatePageType);
_dsgTag.EventHandlers.AddEventHandler("NewPageView",_dsgTag.FunctionRepository.UpdatePageType,"Base");_dsgTag.EventHandlers.AddWindowLoadEventHandler(_dsgTag.FunctionRepository.UpdatePageType);
document.addEventListener("reporting:update",function(e){try{_dsgTag.DataLayer.PassValuesToFunction(["EventType"],function(g){var c="undefined"!==typeof e?"undefined"!==typeof e.detail?e.detail:"undefined"!==typeof e.originalEvent?e.originalEvent.detail:null:null;g&&(_dsgTag.HelperFunctions.DebugLog("reporting:update being re-triggered as "+g,_dsgTag.LogLevels.Warning),_dsgTag.EventHandlers.TriggerEvent(g,c))})}catch(g){_dsgTag.HelperFunctions.DebugLog("Error occurred in ReportingUpdate processor: "+
g.message,!0)}});document.addEventListener("reporting:PagePostRender",function(e){_dsgTag.HelperFunctions.DebugLog("reporting:PagePostRender being re-triggered as NewPageView",_dsgTag.LogLevels.Warning);_dsgTag.EventHandlers.TriggerEvent("NewPageView",e.detail)});
_dsgTag.FunctionRepository.AdblockPlus=new function(){this.detect=function(e,g){try{var c=function(){--n||(f=!k&&q)},d=function(c,e){0==n||1E3<e?c(0==n&&f):setTimeout(function(){d(c,2*e)},2*e)},f=!1,n=2,k=!1,q=!1;if("function"==typeof g){e+="?ch=<check>&rn=<random>";var h=11*Math.random(),t=new Image;t.onload=c;t.onerror=function(){k=!0;c()};t.src=e.replace("<check>",1).replace("<random>",h);var u=new Image;u.onload=c;u.onerror=function(){q=!0;c()};u.src=e.replace("<check>",2).replace("<random>",
h);d(g,250)}}catch(v){_dsgTag.HelperFunctions.DebugLog("Eyeo Failed: "+v.message)}}};try{null==_dsgTag.HelperFunctions.GetValue("eyeo")||Date.now()>parseInt(_dsgTag.HelperFunctions.GetValue("eyeo").split("|")[1])?_dsgTag.FunctionRepository.AdblockPlus.detect("https://tag."+_dsgTag.currentWebsite.Domain+"/scripts/px.gif",function(e){_dsgTag.suspectedAB=e;_dsgTag.HelperFunctions.SaveValue("eyeo",e.toString()+"|"+(Date.now()+864E5))}):_dsgTag.suspectedAB="true"==_dsgTag.HelperFunctions.GetValue("eyeo").split("|")[0]}catch(e){_dsgTag.HelperFunctions.DeleteValue("eyeo")}_dsgTag.HelperFunctions.DebugTimer("Global Helpers Done");window._dsgTag.DataLayer=function(){var e={};this.dataNameList=[];this.AddExtractor=function(c,d){e[c]=d};this.GetValue=function(c,d){try{if("undefined"===typeof d||null==d||0===Object.keys(d).length)d=window.siteData||{};return e[c](d)}catch(f){return _dsgTag.HelperFunctions.DebugLog("Error resolving data value '"+c+"': "+f.message,!0),null}};this.PassValuesToFunction=function(c,d,f){try{dataValues=[];var e=0;if("ALL"===c)for(;e<this.dataNameList.length;e++){var g=this.GetValue(this.dataNameList[e],
f);dataValues.push(g)}else for(;e<c.length;e++)g=this.GetValue(c[e],f),dataValues.push(g);d.apply(null,dataValues)}catch(q){_dsgTag.HelperFunctions.DebugLog("Error resolving data value list: "+q.message,!0)}};e.AddressCount=function(c){var d="0";"undefined"!==typeof c&&"undefined"!==typeof c.TotalAddressCount&&(d=c.TotalAddressCount);return d};e.AOSStoreID=function(){return _dsgTag.HelperFunctions.GetValue("AOSStoreID")};e.AppID=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.appID&&
(d=c.appID);return d};e.AppointmentCount=function(c){var d=0;"undefined"!==typeof c&&"undefined"!==typeof c.appointmentsPresent&&(d=c.appointmentsPresent);return d};e.AppointmentTab=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.appointmentsTab&&(d=c.appointmentsTab.toLowerCase());return d};e.BillingState=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.BillingState&&(d=c.BillingState);return d};e.BillingZip=function(c){if("undefined"!==typeof c&&"undefined"!==
typeof c.BillingZIP)c=c.BillingZIP;else if("undefined"!==typeof c&&"undefined"!==typeof c.BillingZip)c=c.BillingZip;else{c=_dsgTag.HelperFunctions.ScrapeTextViaSelector("#WC_CheckoutPaymentAndBillingAddressSummaryf_div_2_1");var d=c.indexOf("US ");c=c.substring(d+3,d+8)}return c};e.BrandShopName=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.BrandShop?d=c.BrandShop:"undefined"!==typeof c&&"undefined"!==typeof c.PageName&&(d=c.PageName);return d};e.CartCookieSKUList=function(){var c=
[];if(_dsgTag.HelperFunctions.GetCookieValue("DCSG-CART"))try{for(var d=JSON.parse(window.atob(_dsgTag.HelperFunctions.GetCookieValue("DCSG-CART"))).contents,f=0;f<d.length;f++)c.push(d[f].sku)}catch(n){_dsgTag.HelperFunctions.DebugLog("Failed to parse cart quantity from DCSG-CART cookie: "+n.message,!0)}return c};e.CartID=function(c){c="undefined"!==typeof c&&"undefined"!==typeof c.CartID?c.CartID:_dsgTag.HelperFunctions.ScrapeTextViaSelector(".ref-number,body > div.off-canvas-wrap > div > section > div.cart-content > h1 > span");
!c&&_dsgTag.HelperFunctions.GetValue("TagCartID")&&(c=decodeURI(_dsgTag.HelperFunctions.GetValue("TagCartID")).split("|")[0]);return c};e.CartItemQuantity=function(c){var d=null;if("undefined"!==typeof c&&"undefined"!==typeof c.ProductArray&&0<=("undefined"!==typeof c.PageURL?c.PageURL:window.location.href).toLowerCase().indexOf("orderitemdisplay"))for(var f=d=0;f<c.ProductArray.length;f++)d+=parseInt(c.ProductArray[f].ProductQty);else if("undefined"!==typeof c&&"undefined"!==typeof c.checkout)try{for(f=
d=0;f<c.checkout.cart.items.length;f++)d+=c.checkout.cart.items[f].quantity}catch(k){}else if("undefined"!==typeof c&&"undefined"!==typeof c.Quantity)try{d=parseInt(c.Quantity)}catch(k){}else if(_dsgTag.HelperFunctions.GetCookieValue("DCSG-CART"))try{d=0;var e=JSON.parse(window.atob(_dsgTag.HelperFunctions.GetCookieValue("DCSG-CART"))).contents;for(f=0;f<e.length;f++)d+=e[f].qty?parseInt(e[f].qty):1}catch(k){_dsgTag.HelperFunctions.DebugLog("Failed to parse cart quantity from DCSG-CART cookie: "+
k.message,!0)}else if(_dsgTag.HelperFunctions.GetCookieValue("DSG_CartQTY"))try{d=parseInt(_dsgTag.HelperFunctions.GetCookieValue("DSG_CartQTY"))}catch(k){_dsgTag.HelperFunctions.DebugLog("Failed to parse cart quantity from DSG_CartQTY cookie: "+k.message,!0)}else try{d=parseInt(_dsgTag.HelperFunctions.ScrapeTextViaSelector(".cart-count-value, #OrderQty, #layout-content > ng-include:nth-child(1) > header > nav > ul > li:nth-child(5) > a > div > div.minicart-icon.animate-scale-active > i > span, .cart_icon, #layout-content > ng-include:nth-child(1) > header > div > nav > div > div:nth-child(3) > div > div.col-xs-5 > a > i > mini-cart, #cartCount, .cart-item-count"))}catch(k){}return d};
e.CartSKUEcodeLookup=function(c){var d={};if("undefined"!==typeof c&&"undefined"!==typeof c.checkout&&"undefined"!==typeof c.checkout.cart&&"undefined"!==typeof c.checkout.cart.items&&"undefined"!==typeof c.checkout.cart.items.length)for(var f=0;f<c.checkout.cart.items.length;f++)d[c.checkout.cart.items[f].sku]=c.checkout.cart.items[f].ecode;else _dsgTag.HelperFunctions.GetValue("TagCartProducts")&&(d=JSON.parse(_dsgTag.HelperFunctions.GetValue("TagCartProducts")));return d};e.CategoryID=function(c){var d=
"";"undefined"!==typeof c&&"undefined"!==typeof c.CategoryID&&(d=c.CategoryID);""===d&&"undefined"!==typeof c&&"undefined"!==typeof c.DepartmentID&&(d=c.DepartmentID);return d};e.CategoryName=function(c){var d="undefined"!==typeof c&&"undefined"!==typeof c.CategoryName?c.CategoryName:_dsgTag.HelperFunctions.ScrapeTextViaSelector("#navigation > div.content_wrapper_position > div > div.content_left_shadow > div > div > div.widget_title_container_position > div > h1");""===d&&"undefined"!==typeof c&&
"undefined"!==typeof c.DepartmentName&&(d=c.DepartmentName);""===d&&"undefined"!==typeof c&&"string"===typeof c.Page&&-1!==document.URL.indexOf("/products/")&&(d=c.Page.split(" : ")[c.Page.split(" : ").length-1],""===d&&(d=_dsgTag.HelperFunctions.ScrapeTextViaSelector("#page > div.content_wrapper_position > div > div.content_left_shadow > div > div > h1")));return d};e.CCPADoNotSell=function(){return _dsgTag.HelperFunctions.GetCookieValue("ccpa")&&"true"==_dsgTag.HelperFunctions.GetCookieValue("ccpa").toLowerCase()?
"T":"F"};e.CheckoutSummary=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.checkout&&(d=c.checkout);return d};e.CheckoutCardStatus=function(c){var d=!1;"undefined"!==typeof c&&"undefined"!==typeof c.checkoutCardStatus&&(d=c.checkoutCardStatus);return d};e.CheckoutGuestVsRegistered=function(c){var d="Unkown";"undefined"!==typeof c&&("undefined"!==typeof c.RegisteredCheckoutEvent?d="Y"===c.RegisteredCheckoutEvent.toUpperCase()?"Registered":"Guest":"undefined"!==typeof c.LoggedIn?
d="true"===c.LoggedIn.toString().toLowerCase()?"Registered":"Guest":_dsgTag.DataLayer.GetValue("SignedInBoolean",c)?"Registered":"Guest");return d};e.CompareItemQuantity=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.ProductIDList&&"undefined"!==typeof c.ProductIDList.length?(d=c.ProductIDList.length,1==d&&"undefined"!==typeof c.PriceList&&"undefined"!==typeof c.PriceList.length&&0===c.PriceList.length&&(d="0")):"undefined"!==typeof c&&"undefined"!==typeof c.ProductArray&&"undefined"!==
typeof c.ProductArray.length&&(d=c.ProductArray.length.toString());"0"===d&&(d="Zero");return d};e.CreateAccountLinkShown=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.CreateAccountShown&&(d=c.CreateAccountShown);return d};e.CrossSellClickDetail=function(c){var d="";if(_dsgTag.previousPageValues.StyliticsClick||c.ReferringPage&&"stylitics"===c.ReferringPage.toLowerCase()){d="stylitics_";var f=JSON.parse(_dsgTag.previousPageValues.StyliticsClick);f?f.itemData&&(d={pid:f.previousPageID||
"unknown",ofi:f.itemData.bundle.id,cat:f.itemData.item.category.replace(" ","-"),bnd:f.itemData.item.brand.replace(" ","-"),mdl:"on-model-tag"==f.itemData.bundle.relative_boost?"t":"f",pre:_dsgTag.previousPageValues.v28.replace(" ","-")},d=s.BuldDelmitedKeyValueString(d,":","stylitics")):_dsgTag.DataLayer.GetValue("ProductID")&&(d+=_dsgTag.DataLayer.GetValue("ProductID"),d+="_"+_dsgTag.previousPageValues.v28.replace(" ","-"));d=d.toLowerCase()}else if(_dsgTag.previousPageValues.MonetateClick||c.ReferringPage&&
"monetate"===c.ReferringPage.toLowerCase())d=_dsgTag.previousPageValues.MonetateClick?_dsgTag.previousPageValues.MonetateClick.toLowerCase():c.AdditionalData;else if(_dsgTag.previousPageValues.CertonaClick||c.ReferringPage&&"certona"===c.ReferringPage.toLowerCase())d=_dsgTag.previousPageValues.CertonaClick?_dsgTag.previousPageValues.CertonaClick.toLowerCase():c.AdditionalData;else if(_dsgTag.previousPageValues.Scene7Click)d="scene7_"+_dsgTag.previousPageValues.Scene7Click;else if(_dsgTag.previousPageValues.bambuser)d=
"bambuser_"+_dsgTag.previousPageValues.bambuser;else if(_dsgTag.previousPageValues.PIQClick)d=("piq_"+_dsgTag.previousPageValues.v28+"_"+(_dsgTag.previousPageValues.pageRowCol?"grid":"carousel")).toLowerCase();else if(_dsgTag.HelperFunctions.GetQueryStringValue("zoovu")||_dsgTag.previousPageValues.ZoovuClick||c.ReferringPage&&"zoovu"===c.ReferringPage.toLowerCase())d="zoovu",d=_dsgTag.HelperFunctions.GetQueryStringValue("sku")?d+("-"+_dsgTag.HelperFunctions.GetQueryStringValue("sku").replace("-",
"_").toLowerCase()):d+"-n/a",_dsgTag.HelperFunctions.GetQueryStringValue("z_type")&&(d+="-"+_dsgTag.HelperFunctions.GetQueryStringValue("z_type").replace("-","_").toLowerCase());else if(_dsgTag.previousPageValues.DataScienceRecClick||c.ReferringPage&&"datasciencerecs"===c.ReferringPage.toLowerCase())_dsgTag.previousPageValues.DataScienceRecClick?d=_dsgTag.previousPageValues.DataScienceRecClick.toLowerCase():(d="DS_"+_dsgTag.pageType.Name,f=c.AdditionalData.DSPlacementId,c=c.AdditionalData.DSPosition.toString(),
d+="_"+(f?f:"none")+"_"+(c?c:"none"));else if(_dsgTag.HelperFunctions.GetQueryStringValue("recid"))d=_dsgTag.HelperFunctions.GetQueryStringValue("recid"),0<=d.indexOf(":")&&(d=(_dsgTag.previousPageValues.v28?_dsgTag.previousPageValues.v28:"Entry Page").replaceAll(" ","")+":"+d,0>d.indexOf("v1e8mm3")&&(d={sce:d.split(":")[2],rsi:d.split(":")[3],pre:_dsgTag.previousPageValues.v28.replace(" ","-")},d=s.BuldDelmitedKeyValueString(d,":","monetate")));else if(_dsgTag.HelperFunctions.GetQueryStringValue("sponsorrecid"))d=
_dsgTag.HelperFunctions.GetQueryStringValue("sponsorrecid");else if(_dsgTag.previousPageValues.CuralateClick)d="curalate_"+_dsgTag.previousPageValues.CuralateClick.link;else if(_dsgTag.previousPageValues.ReadyForNextRoundAddOns||c.ReferringPage&&"readyfornextroundaddons"===c.ReferringPage.toLowerCase())d="ReadyForNextRoundAddOns";return d};e.DataLayerExists=function(c){return("undefined"!==typeof c).toString()};e.EDDInformation=function(c){var d=[];"undefined"!==typeof c&&"undefined"!==typeof c.EDDMessage&&
(d=c.EDDMessage);return d};e.ErrorMessage=function(c){var d=[];if("undefined"!==typeof c&&"undefined"!==typeof c.ErrorMessage)if("string"==typeof c.ErrorMessage)d=[c.ErrorMessage];else for(var f=0;f<c.ErrorMessage.length;f++)message=c.ErrorMessage[f],("undefined"===typeof d.indexOf||0>d.indexOf(message))&&d.push(message);"undefined"!==typeof c&&"undefined"!==typeof c.ProductsInFamily&&"0"==c.ProductsInFamily&&d.push("No products match your filter criteria try adjusting your filters.");return d.join(",")};
e.EventType=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.EventType&&(d=c.EventType);return d};e.FamilyID=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.FamilyID?d=c.FamilyID:"undefined"!==typeof c&&"undefined"!==typeof c.CategoryID&&(d=c.CategoryID);return d};e.FamilyName=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.FamilyName?c.FamilyName:"undefined"!==typeof c&&"undefined"!==typeof c.CategoryName?c.CategoryName:_dsgTag.HelperFunctions.ScrapeTextViaSelector("#navigation > div.content_wrapper_position > div > div.content_left_shadow > div > div > div.widget_title_container_position > div > h1")};
e.FamilyProductCount=function(c){var d=0;"undefined"!==typeof c&&"undefined"!==typeof c.ProductsInFamily&&(d=parseInt(c.ProductsInFamily),isNaN(d)&&(d=0));return d};e.GiftingEnabled=function(c){var d=!1;"undefined"!==typeof c&&"undefined"!==typeof c.checkout&&"undefined"!==typeof c.checkout.gift&&"undefined"!==typeof c.checkout.gift.gifting_enabled&&(d=c.checkout.gift.gifting_enabled);return d};e.HashedEmailAddress=function(c){var d="";"string"===typeof c.EAthlete?d=c.EAthlete.toUpperCase():"undefined"==
typeof c.checkout||"undefined"==typeof c.checkout.shopper||"undefined"==typeof c.checkout.shopper.analytics||"undefined"==typeof c.checkout.shopper.analytics.hashed_identifier&&"undefined"==typeof c.checkout.shopper.analytics.hashedIdentifier?_dsgTag.HelperFunctions.GetQueryStringValue("customerkey")&&64===_dsgTag.HelperFunctions.GetQueryStringValue("customerkey").length&&(d=_dsgTag.HelperFunctions.GetQueryStringValue("customerkey")):d=(c.checkout.shopper.analytics.hashed_identifier||c.checkout.shopper.analytics.hashedIdentifier).toUpperCase();
return d};e.InternalSearchDYM=function(c){var d="";_dsgTag.SearchTestData&&(c=_dsgTag.SearchTestData);var f=_dsgTag.DataLayer.GetValue("InternalSearchTerm",c);if("undefined"!==typeof c&&"Y"===(c.DYMUsed||("undefined"!==typeof c.DYMType&&"N/A"!==c.DYMType?"Y":"N"))&&"undefined"!==typeof c.DYMTerm&&""!==c.DYMTerm&&f){try{term=c.DYMTerm.toLowerCase(),term=decodeURIComponent(decodeURIComponent(term))}catch(n){}d=term+"|"+f}return d};e.InternalSearchResultsCount=function(c){var d="";_dsgTag.SearchTestData?
d=_dsgTag.SearchTestData.SearchResultCount.toString():0<=window.location.pathname.indexOf("/s/no-search-results-found")?d="0":"undefined"!==typeof c&&"undefined"!==typeof c.ResultsCount&&""!==c.ResultsCount?d=c.ResultsCount:"undefined"!==typeof c&&"undefined"!==typeof c.SearchResultCount&&""!==c.SearchResultCount?d=c.SearchResultCount:"undefined"!==typeof c&&"undefined"!==typeof c.ProductsInFamily&&""!==c.ProductsInFamily?d=c.ProductsInFamily:0<=window.location.pathname.indexOf("/p/")&&(d="1");return d};
e.InternalSearchTerm=function(c){var d="";c.pageTypeOverride||(_dsgTag.SearchTestData?d=_dsgTag.SearchTestData.EnteredSearchTerm:"undefined"!==typeof c&&"undefined"!==typeof c.EnteredSearchTerm&&""!==c.EnteredSearchTerm?d=c.EnteredSearchTerm:_dsgTag.HelperFunctions.GetQueryStringValue("searchTerm")?d="Category"===_dsgTag.HelperFunctions.GetQueryStringValue("SearchType")&&"undefined"!==typeof c.CategoryName?c.CategoryName:"Category"===_dsgTag.HelperFunctions.GetQueryStringValue("SearchType")&&"undefined"!==
typeof c.FamilyName?c.FamilyName:"Category"===_dsgTag.HelperFunctions.GetQueryStringValue("ddSearchType")&&"undefined"!==typeof c.CategoryName?c.CategoryName:"Category"===_dsgTag.HelperFunctions.GetQueryStringValue("ddSearchType")&&"undefined"!==typeof c.FamilyName?c.FamilyName:_dsgTag.HelperFunctions.GetQueryStringValue("searchTerm"):_dsgTag.HelperFunctions.GetQueryStringValue("enteredSearchTerm")?d="Category"===_dsgTag.HelperFunctions.GetQueryStringValue("SearchType")&&"undefined"!==typeof c.CategoryName?
c.CategoryName:"Category"===_dsgTag.HelperFunctions.GetQueryStringValue("SearchType")&&"undefined"!==typeof c.FamilyName?c.FamilyName:"Category"===_dsgTag.HelperFunctions.GetQueryStringValue("ddSearchType")&&"undefined"!==typeof c.CategoryName?c.CategoryName:"Category"===_dsgTag.HelperFunctions.GetQueryStringValue("ddSearchType")&&"undefined"!==typeof c.FamilyName?c.FamilyName:_dsgTag.HelperFunctions.GetQueryStringValue("enteredSearchTerm"):_dsgTag.HelperFunctions.GetQueryStringValue("manufacturer")?
d="Brand: "+_dsgTag.HelperFunctions.GetQueryStringValue("manufacturer"):"ProductSuggest"!==_dsgTag.HelperFunctions.GetQueryStringValue("Product")&&"SuggestedPinnedProduct"!==_dsgTag.HelperFunctions.GetQueryStringValue("Product")||"undefined"===typeof c.ProductName||(d=c.ProductName),d=decodeURIComponent(d).replace(/\+/g," ").toLowerCase());return d};e.InternalSearchType=function(c){var d="";_dsgTag.SearchTestData&&(c=_dsgTag.SearchTestData);if("undefined"!==typeof c){var f=_dsgTag.DataLayer.GetValue("InternalSearchTerm",
c),e=_dsgTag.DataLayer.GetValue("InternalSearchResultsCount",c),g=c.ReferringPageURL||document.referrer,q=c.DYMUsed||("undefined"!==typeof c.DYMType&&""!==c.DYMType&&"N/A"!==c.DYMType?"Y":"N");if(f&&(!_dsgTag.previousPageValues.v1||-1===g.indexOf("SearchDisplay")||"Y"===q)){d="Keyword";if(e&&"0"==e)d="Failed";else if("undefined"!==typeof c.SearchType&&""!==c.SearchType){d=c.SearchType;"DYMAuto"===c.DYMType||"DYM Auto"===c.DYMType?d="DYM Auto":"DYMClicked"===c.DYMType||"DYM Clicked"===c.DYMType?d=
"DYM Clicked":c.FuzzyMatch&&(d="Fuzzy Search");e=[];if("undefined"!==typeof c.ProductDetails)for(g=0;g<c.ProductDetails.length;g++)for(e.push(c.ProductDetails[g].ProductID),q=0;q<c.ProductDetails[g].ProductSKUDetails.length;q++)e.push(c.ProductDetails[g].ProductSKUDetails[q].ProductSKU);(e=e.join(";"))&&("undefined"!==typeof Array.prototype.indexOf&&0<=e.indexOf(f)||/^\d+$/g.test(f))&&(d="Search By Product ID")}else _dsgTag.HelperFunctions.GetQueryStringValue("urlRequestType")?"Search Page"===c.PageType?
d="Keyword Searches - Brand":"Product Page"===c.PageType&&(d="Keyword Searches - Success Suggested"):"Y"===q?d=0<=c.DYMType.toLowerCase().indexOf("auto")?"DYM Auto":"DYM Clicked":"undefined"!==typeof c.SuggestionSelected&&"Y"===c.SuggestionSelected?d="Keyword Searches - Success Suggested":"ProductSuggest"===_dsgTag.HelperFunctions.GetQueryStringValue("Product")?d="Suggested Product":"SuggestedPinnedProduct"===_dsgTag.HelperFunctions.GetQueryStringValue("Product")?d="Suggested Pinned Product":c&&("Product Page"===
c.PageType||"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length)?d="Search By Product ID":!c||"Category Page"!==c.PageType&&"Family Page"!==c.PageType?_dsgTag.HelperFunctions.GetQueryStringValue("SearchType")?d="Suggested "+_dsgTag.HelperFunctions.GetQueryStringValue("SearchType"):_dsgTag.HelperFunctions.GetQueryStringValue("ddSearchType")&&(d="Suggested "+_dsgTag.HelperFunctions.GetQueryStringValue("ddSearchType")):d="Keyword Searches - Success Suggested";"Keyword"===d&&_dsgTag.HelperFunctions.GetQueryStringValue("DSGSearchType")&&
(d=_dsgTag.HelperFunctions.GetQueryStringValue("DSGSearchType"))}"undefined"!==typeof c&&d&&(c.MLRank||c.MLSpelling||c.MLRewrite)&&(d="ML_"+d)}return d.replace(/\+/g," ")};e.IsQuickView=function(c){return"undefined"!==typeof c&&_dsgTag.DataLayer.GetValue("ProductPageTemplateType",c)&&0<=_dsgTag.DataLayer.GetValue("ProductPageTemplateType",c).toLowerCase().indexOf("quickview")};e.LoginID=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.IdentityId?c.IdentityId:""};e.LoyaltyID=function(c){var d=
"";"undefined"!==typeof c&&"undefined"!==typeof c.LoyaltyID?d=c.LoyaltyID:"undefined"!==typeof c&&"undefined"!==typeof c.RewardsCardNumber?d=c.RewardsCardNumber:"undefined"!==typeof c&&"undefined"!==typeof c.checkout&&"undefined"!==typeof c.checkout.score_card&&"undefined"!==typeof c.checkout.score_card.number&&(d=c.checkout.score_card.number);d=/^\w+$/i.test(d)?d:"";"NA"===d&&(d="");return d};e.LoyaltyIDNoFilter=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.LoyaltyID?d=c.LoyaltyID:
"undefined"!==typeof c&&"undefined"!==typeof c.RewardsCardNumber?d=c.RewardsCardNumber:"undefined"!==typeof c&&"undefined"!==typeof c.checkout&&"undefined"!==typeof c.checkout.score_card&&"undefined"!==typeof c.checkout.score_card.number&&(d=c.checkout.score_card.number);"NA"===d&&(d="");return d};e.LoyaltyPoints=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.PointsBalance?d=c.PointsBalance:"undefined"!==typeof c&&"undefined"!==typeof c.LoyaltyPointsBalance&&(d=c.LoyaltyPointsBalance);
return d};e.MCSalesCatalogDetails=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.MCSalesCatalogDetails?c.MCSalesCatalogDetails:[]};e.MachineLearningSearchValues=function(c){a=[];"undefined"!==typeof c&&(c.MLGroup||c.MLBypass||c.MLRank||c.MLRewrite||c.MLSpelling)&&(a.push(c.MLGroup),a.push(c.MLBypass),a.push(c.MLRank),a.push(c.MLRewrite),a.push(c.MLSpelling));return a};e.MobileCustomerID=function(){a="";_dsgTag.HelperFunctions.GetQueryStringValue("customer_identifier")&&(a=_dsgTag.HelperFunctions.GetQueryStringValue("customer_identifier"));
return a};e.NikeConnected=function(c){var d="";if(_dsgTag.HelperFunctions.GetValue("NikeConnected"))return"true"==_dsgTag.HelperFunctions.GetValue("NikeConnected");"undefined"!==typeof c&&"undefined"!==typeof c.nikeConnected&&(d=c.nikeConnected);return d};e.NikeConnectedProduct=function(c){var d=!1;"undefined"!==typeof c&&"undefined"!==typeof c.nikeConnectedProduct&&(d=c.nikeConnectedProduct);return d};e.OrderDiscountTotal=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.DiscountTotal?
d=c.DiscountTotal.toString().replace(",",""):"undefined"!==typeof c&&"undefined"!==typeof c.TotalOrderDiscount&&(d=c.TotalOrderDiscount.toString().replace(",",""));return d};e.OrderFirstNameBilling=function(c){var d="";if(c.checkout&&c.checkout.addresses)if(c.checkout.addresses.BILLING)d=c.checkout.addresses.BILLING.first_name;else if(c.checkout.addresses.SHIPPINGBILLING)d=c.checkout.addresses.SHIPPINGBILLING.first_name;else for(var f=0;f<Object.keys(c.checkout.addresses).length&&!d;f++)d=c.checkout.addresses[Object.keys(c.checkout.addresses)[f]].first_name;
return d};e.OrderLastNameBilling=function(c){var d="";if(c.checkout&&c.checkout.addresses)if(c.checkout.addresses.BILLING)d=c.checkout.addresses.BILLING.last_name;else if(c.checkout.addresses.SHIPPINGBILLING)d=c.checkout.addresses.SHIPPINGBILLING.last_name;else for(var f=0;f<Object.keys(c.checkout.addresses).length&&!d;f++)d=c.checkout.addresses[Object.keys(c.checkout.addresses)[f]].last_name;return d};e.OrderID=function(c){var d="";if(0<=window.location.pathname.toLowerCase().indexOf("myaccount/orderdetail/"))try{d=
window.location.pathname.split("/")[3]}catch(f){}else"undefined"!==typeof c&&"undefined"!==typeof c.OrderID?d=c.OrderID:_dsgTag.HelperFunctions.GetQueryStringValue("orderId")&&(d=_dsgTag.HelperFunctions.GetQueryStringValue("orderId"),/^\d+$/g.test(d)||(d=""));return d};e.OrderLevelPromoCodes=function(c){var d=[];"undefined"!==typeof c&&"undefined"!==typeof c.OrderLevelPromoCodes&&(d=c.OrderLevelPromoCodes);return d};e.OrderPaymentMethods=function(c){var d=[];if(_dsgTag.previousPageValues.AfterPay)return["AFTERPAY"];
if("undefined"!==typeof c)if("undefined"!==typeof c.PaymentMethod||"undefined"!==typeof c.PaymentType){for(var f=c.PaymentMethod||c.PaymentType,e=0;e<f.length;e++)val=f[e],_dsgTag.previousPageValues.Affirm&&0<=val.toLowerCase().indexOf("visa")&&(val+=" (AFFIRM)"),("undefined"===typeof d.indexOf||0>d.indexOf(val))&&d.push(val);d.sort()}else c.checkout&&c.checkout.payment&&c.checkout.payment.payment_processor&&c.checkout.payment.payment_processor.processor&&("paypal"===c.checkout.payment.payment_processor.processor.toLowerCase()?
d=["PAYPAL"]:"applepay"===c.checkout.payment.payment_processor.processor.toLowerCase()&&c.checkout.payment.payment_processor.payment_type&&(d=[c.checkout.payment.payment_processor.payment_type]));""===d&&"undefined"!==typeof c&&"object"===typeof c.PromoCodesList&&0<c.PromoCodesList.length&&c.PromoCodesList[0].match(/^RWD|CC|CS|FSH/i)&&(d=["No Tender Required"]);return d};e.OrderSameBillingAndShipping=function(c){var d=!1;"undefined"!==typeof c&&c.checkout&&c.checkout.shipping&&c.checkout.shipping.sameBillingShipping&&
(d="true"==c.checkout.shipping.sameBillingShipping.toString());return d};e.OrderShippingDiscount=function(c){var d="0.00";"undefined"!==typeof c&&"undefined"!==typeof c.ShipDiscountAmount?d=Math.abs(c.ShipDiscountAmount.toString().replace(",","")):"undefined"!==typeof c&&"undefined"!==typeof c.ShippingDiscountAmount&&(d=Math.abs(c.ShippingDiscountAmount.toString().replace(",","")));return d};e.OrderShippingMethod=function(c){var d="";if("undefined"!==typeof c&&"undefined"!==typeof c.ShipMethod)d=
c.ShipMethod;else if("undefined"!==typeof c&&"undefined"!==typeof c.ShippingMethod){c=c.ShippingMethod;d=[];for(var f=0;f<c.length;f++)val=c[f],("undefined"===typeof d.indexOf||0>d.indexOf(val))&&d.push(val);d.sort();d=d.join(": ")}return d};e.OrderShippingRevenue=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.ShipAmount?d=c.ShipAmount.toString().replace(",",""):"undefined"!==typeof c&&"undefined"!==typeof c.ShippingTotal&&(d=c.ShippingTotal.toString().replace(",",""));return d};
e.OrderTax=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.TaxAmount?d=c.TaxAmount.toString().replace(",",""):"undefined"!==typeof c&&"undefined"!==typeof c.TaxTotal?d=c.TaxTotal.toString().replace(",",""):"undefined"!==typeof c&&"undefined"!==typeof c.checkout&&(d=c.checkout.pricing.total_tax.toString().replace(",",""));return d};e.OrderTip=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.TipAmount&&(d=c.TipAmount.toString().replace(",",""));return d};e.OrderTotal=
function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.OrderTotal&&(d=c.OrderTotal.toString().replace(",",""));return d};e.PageName=function(c){var d="";"undefined"!==typeof c&&("undefined"!==typeof c.Page?d=c.Page:"undefined"!==typeof c.PageName&&(d=c.PageName));return d};e.PageType=function(c){var d="";"undefined"!==typeof c&&("undefined"!==typeof c.PageType?d=c.PageType:"undefined"!==typeof c.EventType&&"CheckoutStep"===c.EventType&&"undefined"!==typeof c.CheckoutStep&&(d=c.CheckoutStep));
return d};e.PageTypeOverride=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.pageTypeOverride&&(d=c.pageTypeOverride);return d};e.PageURL=function(c){if("undefined"!==typeof c&&"undefined"!==typeof c.PageURL&&""!==c.PageURL){var d=c.PageURL;0>c.PageURL.indexOf(window.location.protocol)&&(d=window.location.protocol+d)}else"undefined"!==typeof c&&"undefined"!==typeof c.PageUrl&&""!==c.PageUrl?(d=c.PageUrl,0>c.PageUrl.indexOf(window.location.protocol)&&(d=window.location.protocol+
d)):d=window.location.href;return d.toLowerCase()};e.PDPPaypalEligible=function(c){var d=!1;"undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length&&"undefined"!==typeof c.ProductDetails[0].PayPaylEliglible&&(d=c.ProductDetails[0].PayPaylEliglible);return d};e.PDPPeopleViewing=function(c){var d=0;"undefined"!==typeof c&&"undefined"!==typeof c.PageViews&&(d=c.PageViews);return d};e.PDPPromoMessage=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.PromoMessage?
c.PromoMessage:[]};e.PLPEventID=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.PLP_event_id?c.PLP_event_id:""};e.PriceRange=function(c){var d="";if("undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length&&"undefined"!==typeof c.ProductDetails[0].ProductSKUDetails){d=9999999;for(var f=0,e=0;e<c.ProductDetails[0].ProductSKUDetails.length;e++){var g=parseFloat(c.ProductDetails[0].ProductSKUDetails[e].SKUCurrentPrice);if(isNaN(g))return"Price in Cart";
f=g>f?g:f;d=g<d?g:d}d=(d+(d<f?" - "+f:"")).toString()}return d.toLowerCase()};e.PriceType=function(c){function d(c,d){var f="Price Unavailable";if(-1<c.toString().toLowerCase().indexOf("see"))return"Price in Cart";d=d||0;c=parseFloat(c);d=parseFloat(d);if(0<c)switch(c.toFixed(2).split(".")[1]){case "02":case "92":case "93":case "97":f="Clearance";break;case "98":f="Sale";break;default:f=c<d?"Offer Less Than List":"Regular"}return f}var f="";if("undefined"!==typeof c&&"undefined"!==typeof c.CurrentPrice)f=
d(c.CurrentPrice.toString());else if("undefined"!==typeof c&&"undefined"!==typeof c.CurrentPricePerUnit&&"undefined"!==typeof c.ListPricePerUnit)f=d(c.CurrentPricePerUnit.toString(),c.ListPricePerUnit.toString());else if("undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length&&"undefined"!==typeof c.ProductDetails[0].ProductSKUDetails){var e=!1,g=-1;f=[];for(var q=0;q<c.ProductDetails[0].ProductSKUDetails.length;q++){var h=c.ProductDetails[0].ProductSKUDetails[q].SKUCurrentPrice,
t=d(h,c.ProductDetails[0].ProductSKUDetails[q].SKUListPrice);if("Price in Cart"===t){f=[t];e=!1;break}e=e||0<g&&g!==h;g=h;f.push(t)}c=[];for(q=0;q<f.length;q++)"undefined"!==typeof c.indexOf&&-1!==c.indexOf(f[q])||c.push(f[q]);f=c.sort().join("-");e&&(f="Range: "+f)}return f};e.ProductAvailability=function(c){var d="";if("undefined"!==typeof c)if("undefined"!==typeof c.ProductAvailability)d=c.ProductAvailability;else if("undefined"!==typeof c.ProductDetails){d=!1;try{d=0<c.ProductDetails.length&&
0<c.ProductDetails[0].ProductSKUDetails.length}catch(f){}d=d?"true":"Out of Stock"}else"undefined"===typeof c.ProductDetails&&(d="Out of Stock");return d};e.ProductBrand=function(c){return"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length&&"undefined"!==typeof c.ProductDetails[0].ProductBrand?c.ProductDetails[0].ProductBrand:""};e.ProductBuyable=function(c){var d="";if("undefined"!==typeof c&&"undefined"!==typeof c.Buyable)d="n"!=c.Buyable.toLowerCase();else if("undefined"!==typeof c&&
"undefined"!==typeof c.ProductDetails){d=!1;for(var f=0;f<c.ProductDetails.length&&!d;f++)for(var e=0;e<c.ProductDetails[f].ProductSKUDetails.length&&!d;e++)d="undefined"!==typeof c.ProductDetails[f].ProductSKUDetails[e].AddtoCartAvailable&&"true"===c.ProductDetails[f].ProductSKUDetails[e].AddtoCartAvailable.toString().toLowerCase()||"undefined"!==typeof c.ProductDetails[f].ProductSKUDetails[e].BOPISAvailable&&"true"===c.ProductDetails[f].ProductSKUDetails[e].BOPISAvailable.toString().toLowerCase()}return d};
e.ProductCurrentPriceList=function(c){var d=[];if("undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails){d=[];for(var f=0;f<c.ProductDetails.length;f++)for(var e=0;e<c.ProductDetails[f].ProductSKUDetails.length;e++)d.push(c.ProductDetails[f].ProductSKUDetails[e].SKUCurrentPrice)}return d};e.ProductDetails=function(c){var d={};"undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails&&(d=c.ProductDetails);return d};e.ProductSKUEdd=function(c){var d=[];"undefined"!==typeof c&&"undefined"!==
typeof c.AllSkuEDD&&(d=c.AllSkuEDD);return d};e.ProductFindingMethod=function(c){var d="Browse";if("undefined"!==typeof window.s){var f=_dsgTag.previousPageValues.v27,e="";"undefined"!==typeof c&&"undefined"!==typeof c.ReferringPageURL?e=c.ReferringPageURL:document.referrer&&(e=document.referrer);_dsgTag.DataLayer.GetValue("IsQuickView",c)?(d="Quick View - "+_dsgTag.pageType.Name,c.ReferringPage&&(d+=" - "+c.ReferringPage),"aempl"==c.ReferringPage.toLowerCase()&&c.AdditionalData&&(d+=":"+c.AdditionalData)):
_dsgTag.previousPageValues.Refinement?f&&-1<f.indexOf("Search: Results")?d="Search Page Refinement":f&&-1<f.indexOf("Family:")&&(d="Family Page Refinement"):(c=_dsgTag.HelperFunctions.GetQueryStringValue("recid")||_dsgTag.previousPageValues.CertonaClick)?(c=c.toLowerCase(),d="Other",-1<c.indexOf("category_rr")?d="Category Page - Recently Viewed":-1<c.indexOf("category")?d="Category Page":-1<c.indexOf("family1")?d="Family Page - Recently Viewed":-1<c.indexOf("family_rr")?d="Family Page - Recommendations":
-1<c.indexOf("family")?d="Family Page":-1<c.indexOf("oosproduct_rr")?d="OOS Product - Similar Products":-1<c.indexOf("oosproduct2_rr")?d="OOS Product - Recommendations":-1<c.indexOf("oosproduct3_rr")?d="OOS Product - Recently Viewed":-1<c.indexOf("oosproduct")?d="OOS Product":-1<c.indexOf("product1_rr")||-1<c.indexOf("product1landing_rr")?d="Product Page - Recently Viewed":-1<c.indexOf("product2_rr")||-1<c.indexOf("product2landing_rr")?d="Product Page - Customers Also Bought":-1<c.indexOf("product_rr")||
-1<c.indexOf("productlanding_rr")?d="Product Page - Recommendations":-1<c.indexOf("pdplanding_rr")?d="Product Page - External Land Recommendations":-1<c.indexOf("product")?d="Product Page":-1<c.indexOf("rechub")?d="Recommendation Hub":-1<c.indexOf("nosearch1_rr")?d="Failed Search Results - Recently Viewed":-1<c.indexOf("nosearch_rr")?d="Failed Search Results - Recommendations":-1<c.indexOf("nosearch")?d="Failed Search Results":-1<c.indexOf("search_rr")?d="Search Results - Recently Viewed":-1<c.indexOf("search2_rr")?
d="Search Results - Recommendations":-1<c.indexOf("search")?d="Search Results":-1<c.indexOf("store")?d="Store Page":-1<c.indexOf("email")?d="Email":-1<c.indexOf("cartmodal")?d="Cart Modal":-1<c.indexOf("cart")?d="Shopping Cart":-1<c.indexOf("home_rr")||-1<c.indexOf("homeratings_rr")?d="Home Page - Recommendations":-1<c.indexOf("home1_rr")||-1<c.indexOf("home3_rr")?d="Home Page - Recently Viewed":-1<c.indexOf("home")?d="Home Page":-1<c.indexOf("orderconfirm")||-1<f.indexOf("Final Purchase")?d="Order Confirmation":
-1<c.indexOf("nativeapphome")?d="Native App":-1<c.indexOf("collections")?d="BOPIS Page":-1<c.indexOf("backinstock_rr")?d="Notify Me Modal":-1<c.indexOf("ds_my account favorites")&&(d="Data Driven Lists"),d="Cross Sell: "+d):(c=_dsgTag.HelperFunctions.GetQueryStringValue("sponsorrecid"))?(c=c.toLowerCase(),d="Other",-1<c.indexOf("homepage")?d="Home Page":-1<c.indexOf("catpage")?d="Category Page":-1<c.indexOf("browsepage")?d="Family Page":-1<c.indexOf("nullsearchpage")?d="Failed Search":-1<c.indexOf("searchpage")?
d="Search":-1<c.indexOf("prodpage")&&"Product Detail"===_dsgTag.previousPageValues.v28&&_dsgTag.HelperFunctions.GetValue("prevPageOosPDP")?d="OOS PDP":-1<c.indexOf("prodpage")?d="Product Page":-1<c.indexOf("rechub")&&(d="Recommendation Hub"),d="Sponsored: "+d):_dsgTag.HelperFunctions.GetQueryStringValue("compare")||_dsgTag.previousPageValues.CompareClick?d="Compare":_dsgTag.HelperFunctions.GetQueryStringValue("zoovu")||_dsgTag.previousPageValues.ZoovuClick?d="Zoovu":_dsgTag.HelperFunctions.GetQueryStringValue("ReferringPage")&&
"saveforlater"===_dsgTag.HelperFunctions.GetQueryStringValue("ReferringPage").toLowerCase()?d="SaveForLater":_dsgTag.previousPageValues.DataScienceRecClick?d="DataScienceRecs":_dsgTag.previousPageValues.StyliticsClick?d="Stylitics":_dsgTag.previousPageValues.Scene7Click?d="Scene7":_dsgTag.previousPageValues.PIQClick?d="PIQ":_dsgTag.previousPageValues.bambuser?d="Bambuser":_dsgTag.previousPageValues.CuralateClick?d="Curalate":_dsgTag.previousPageValues.ReadyForNextRoundAddOns?d="ReadyForNextRoundAddOns":
_dsgTag.HelperFunctions.GetQueryStringValue.AEMpl?d="AEMpl:"+_dsgTag.HelperFunctions.GetQueryStringValue.AEMpl:_dsgTag.HelperFunctions.GetQueryStringValue("camp")?d="External Campaign":s.getReferringInternalSite()?d="Referring Internal Website":f&&-1<f.indexOf("My Account: View List")||_dsgTag.previousPageValues.OtherFullPDPClick&&"list contents"===_dsgTag.previousPageValues.OtherFullPDPClick.toLowerCase()?d="List Contents":f&&-1<f.indexOf("My Account: Shared Favorites")||_dsgTag.previousPageValues.OtherFullPDPClick&&
"shared favorites"===_dsgTag.previousPageValues.OtherFullPDPClick.toLowerCase()?d="Shared Favorites":f&&-1<f.indexOf("Shopping Bag: Cart")?d="Shopping Cart":f&&-1<f.indexOf("Search: Results")||_dsgTag.DataLayer.GetValue("InternalSearchType")?d="Internal Search":e&&-1<e.indexOf("weeklyad.")?d="Online Circular":_dsgTag.previousPageValues.v1||s.eVar1?d="Internal Campaign":e&&-1<e.indexOf("/products/")?d="Browse: SearchDex":e&&0>e.split("/")[2].indexOf(s.server)&&(d="External Source")}return d};e.ProductGender=
function(c){if("undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length&&c.ProductDetails[0].ProductGender)return c.ProductDetails[0].ProductGender};e.ProductID=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.ProductID&&(d=c.ProductID);d||"undefined"===typeof c||"undefined"===typeof c.PageName||2<=c.PageName.split(" : ").length&&(d=c.PageName.split(" : ")[1]);!d&&(results=/(?:(?:\/p\/[^\/]+)|(?:\/a\/hpdp))\/([^?#]+)/g.exec(window.location.href))&&
(d=results[1]);return d.toUpperCase()};e.ProductIDList=function(c){var d="";if("undefined"!==typeof c)if("undefined"!==typeof c.ProductIDList)d=c.ProductIDList;else if("undefined"!==typeof c.ProductArray){d=[];for(var f=0;f<c.ProductArray.length;f++)d.push(c.ProductArray[f].ProductID)}return d};e.ProductLevelDiscountList=function(c){var d="";if("undefined"!==typeof c)if("undefined"!==typeof c.TotalDiscountByProduct)d=c.TotalDiscountByProduct;else if("undefined"!==typeof c.ProductArray){d=[];for(var f=
0;f<c.ProductArray.length;f++)d.push(parseFloat(c.ProductArray[f].ItemDiscountPerUnit)+parseFloat(c.ProductArray[f].DistributedOrderDiscountPerUnit))}return d};e.ProductListArray=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.ProductArray?c.ProductArray:[]};e.ProductListExists=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.ProductArray};e.ProductListPriceList=function(c){var d="";if("undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails){d=[];for(var f=0;f<
c.ProductDetails.length;f++)for(var e=0;e<c.ProductDetails[f].ProductSKUDetails.length;e++)d.push(c.ProductDetails[f].ProductSKUDetails[e].SKUListPrice)}return d};e.ProductName=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.ProductName&&(d=c.ProductName);d||"undefined"===typeof c||"undefined"===typeof c.PageName||3<=c.PageName.split(" : ").length&&(d=c.PageName.split(" : ")[2]);return d};e.ProductNameList=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.ProductNameList&&
(d=c.ProductNameList);return d};e.ProductOmniStatus=function(c){var d="";if("undefined"!==typeof c&&(d="Not Available for Purchase ","undefined"!==typeof c.ProductDetails)){var f=!1,e=!1,g=!1;for(d=0;d<c.ProductDetails.length&&!(f&&e&&g);d++)for(var q=0;q<c.ProductDetails[d].ProductSKUDetails.length&&!(f&&e&&g);q++)g=g||"undefined"!==typeof c.ProductDetails[d].ProductSKUDetails[q].AddtoCartAvailable&&"true"===c.ProductDetails[d].ProductSKUDetails[q].AddtoCartAvailable.toString().toLowerCase(),f=f||
"undefined"!==typeof c.ProductDetails[d].ProductSKUDetails[q].ISAAvailable&&"true"===c.ProductDetails[d].ProductSKUDetails[q].ISAAvailable.toString().toLowerCase(),e=e||"undefined"!==typeof c.ProductDetails[d].ProductSKUDetails[q].BOPISAvailable&&"true"===c.ProductDetails[d].ProductSKUDetails[q].BOPISAvailable.toString().toLowerCase();d="Unknown/Invalid Status";f&&e&&g?d="All Channels":f&&e&&!g?d="Not Shippable Online":f&&!e&&g?d="BOPIS Unavailable":!f||e||g?f||e||!g?f||e||g||(d="Not Available for Purchase "):
d="Online Only":d="Displayable Not Buyable"}return d};e.ProductPagePricingGroups=function(c){var d=[];if("undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length){if("undefined"!==typeof c.ProductDetails[0].SKUPriceingOptions&&"undefined"!==typeof c.ProductDetails[0].SKUPriceingOptions.bucketCount){var f=c.ProductDetails[0].SKUPriceingOptions.bucketCount;f.Clearancearray&&0<f.Clearancearray.length&&d.push(f.Clearancearray);f.MarkDownArray&&0<f.MarkDownArray.length&&
d.push(f.MarkDownArray);f.RegularArray&&0<f.RegularArray.length&&d.push(f.RegularArray)}if(0===d.length){f=[];for(var e=0;e<c.ProductDetails[0].ProductSKUDetails.length;e++)f.push(c.ProductDetails[0].ProductSKUDetails[e].ProductSKU);d.push(f)}}return d};e.ProductPageTemplateType=function(c){var d="";_dsgTag.DataLayer.GetValue("ProductQuickViewTemplate",c)?d="QuickView - "+_dsgTag.DataLayer.GetValue("ProductQuickViewTemplate",c):"undefined"!==typeof c&&"undefined"!==typeof c.PageTemplate&&(d=c.PageTemplate);
return d};e.ProductPriceList=function(c){var d="";if("undefined"!==typeof c)if("undefined"!==typeof c.PriceList)d=c.PriceList;else if("undefined"!==typeof c.ListPricePerProductIDList&&0<c.ListPricePerProductIDList.length&&c.ListPricePerProductIDList[0])d=c.ListPricePerProductIDList;else if("undefined"!==typeof c.UnitPricePerProductIDList&&0<c.UnitPricePerProductIDList.length&&c.UnitPricePerProductIDList[0])d=c.UnitPricePerProductIDList;else if("undefined"!==typeof c.ProductArray){d=[];for(var e=0;e<
c.ProductArray.length;e++){var g=c.ProductArray[e].CurrentPricePerUnit;"undefined"!==typeof c.ProductArray[e].DistributedOrderDiscountPerUnit&&(g-=c.ProductArray[e].DistributedOrderDiscountPerUnit);d.push(g)}}else if("undefined"!==typeof c.ProductDetails)for(d=[],e=0;e<c.ProductDetails.length;e++)for(g=0;g<c.ProductDetails[e].ProductSKUDetails.length;g++)d.push(c.ProductDetails[e].ProductSKUDetails[g].SKUCurrentPrice);return d};e.ProductQuantityList=function(c){var d="";if("undefined"!==typeof c)if("undefined"!==
typeof c.QtyPerProductIDList)d=c.QtyPerProductIDList;else if("undefined"!==typeof c.ProductArray){d=[];for(var e=0;e<c.ProductArray.length;e++)"undefined"!==typeof c.ProductArray[e].ProductQty&&d.push(c.ProductArray[e].ProductQty.toString().replace(",",""))}return d};e.ProductQuickViewTemplate=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.QuickViewTemplate?c.QuickViewTemplate:""};e.ProductReturnsArray=function(c){return"undefined"!==typeof c&&"undefined"!==typeof c.Products?c.Products:
[]};e.ProductSKU=function(c){return _dsgTag.HelperFunctions.GetQueryStringValue("sku")?_dsgTag.HelperFunctions.GetQueryStringValue("sku"):"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length&&"undefined"!==typeof c.ProductDetails[0].ProductSKUDetails&&1==c.ProductDetails[0].ProductSKUDetails.length?c.ProductDetails[0].ProductSKUDetails[0].ProductSKU:""};e.ProductSKUList=function(c){var d="";if("undefined"!==typeof c)if(c.data&&(c=c.data),"undefined"!==typeof c.ProductSKUList)d=c.ProductSKUList;
else if("undefined"!==typeof c.ProductSkuList)d=c.ProductSkuList;else if("undefined"!==typeof c.ProductArray){d=[];for(var e=0;e<c.ProductArray.length;e++)d.push(c.ProductArray[e].ProductSKU)}else if("undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length&&"undefined"!==typeof c.ProductDetails[0].ProductSKUDetails)for(d=[],e=0;e<c.ProductDetails[0].ProductSKUDetails.length;e++)d.push(c.ProductDetails[0].ProductSKUDetails[e].ProductSKU);return d};e.ProductsPerPage=function(c){var d="";_dsgTag.productsPerPage?
d=_dsgTag.productsPerPage:"undefined"!==typeof c&&"undefined"!==typeof c.ProductPerPage&&(d=c.ProductPerPage);return d};e.ProductType=function(c){if("undefined"!==typeof c&&"undefined"!==typeof c.ProductDetails&&0<c.ProductDetails.length&&c.ProductDetails[0].ProductType)return c.ProductDetails[0].ProductType};e.Random100=function(){if(_dsgTag.HelperFunctions.GetCookieValue("MedalliaAB2")){var c=_dsgTag.HelperFunctions.GetCookieValue("MedalliaAB2");_dsgTag.HelperFunctions.DeleteCookie("MedalliaAB2");
_dsgTag.HelperFunctions.DeleteValue("MedalliaAB2");_dsgTag.HelperFunctions.WriteCookieValue("r100",c,365,!0)}else _dsgTag.HelperFunctions.GetCookieValue("r100")?c=_dsgTag.HelperFunctions.GetCookieValue("r100"):(c=(Math.floor(100*Math.random())/100).toFixed(2),_dsgTag.HelperFunctions.WriteCookieValue("r100",c,365,!0));return c};e.RegistrationOccured=function(c){var d=!1;"undefined"!==typeof c&&"undefined"!==typeof c.RegistrationOccured&&(d="true"===c.RegistrationOccured.toString().toLowerCase());return d};
e.ReferringPageURL=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.ReferringPageURL&&""!==c.ReferringPageURL?(d=c.ReferringPageURL,0>c.ReferringPageURL.indexOf(window.location.protocol)&&(d=window.location.protocol+d)):"undefined"!==typeof c&&"undefined"!==typeof c.ReferringPageUrl&&""!==c.ReferringPageUrl?(d=c.ReferringPageUrl,0>c.ReferringPageUrl.indexOf(window.location.protocol)&&(d=window.location.protocol+d)):document.referrer&&(d=document.referrer);_dsgTag.previousLocation.targetRedirectReferrer&&
(d=_dsgTag.previousLocation.targetRedirectReferrer);return d.toLowerCase()};e.ReviewAverage=function(){var c="",d=document.querySelector(".bv-rating [itemprop='ratingValue'], div.reviews > p > span");if(d)c=d.innerText,""===c&&(c=d.getAttribute("style").match(/ ([\d]+)%/)[1]/100,c=Math.round(50*c)/10);else if(0<(angularRatings=document.querySelectorAll(".star-rating")).length)for(d=c=0;d<angularRatings.length;d++)c+=0<=angularRatings[d].className.indexOf("fa-star-half-o")?.5:0<=angularRatings[d].className.indexOf("star-filled")?
1:0;return c};e.ReviewCount=function(){var c="",d=document.querySelector(".bv-rating-ratio-count [itemprop='reviewCount'], div.reviews > span, .bv_count");d&&(c=d.innerText.replace(/[()]/g,""));(c=parseInt(c))||(c="");return c.toString()};e.ReviewStarsProducts=function(c){var d=0;"undefined"!==typeof c&&"undefined"!==typeof c.ReviewStarsProducts&&(d=parseInt(c.ReviewStarsProducts),isNaN(d)&&(d=0));return d};e.SavedStoreNumber=function(){var c="";if(storeCookieValue=_dsgTag.HelperFunctions.GetCookieValue("setStoreCookie"))c=
(c=/_(\d+)/g.exec(storeCookieValue))&&0<c.length?c[1]:"";return c};e.SearchData=function(c){var d=[{name:"boost",value:"Maching Learning"},{name:"searchrule",value:"Manual Configurations"},{name:"pinning",value:"Manual Configurations"},{name:"landing_page",value:"Manual Configurations"},{name:"mlspelling",value:"Spelling Correction"},{name:"dym",value:"Automated Configurations"},{name:"fuzzy",value:"Automated Configurations"},{name:"no_results",value:"No Search Results"}],e="No Trigger",g=Number.MAX_SAFE_INTEGER;
if("undefined"!==typeof c&&"undefined"!==typeof c.SearchData&&"undefined"!==typeof c.SearchData.length){for(var k=0;k<c.SearchData.length;k++)for(var q=0;q<d.length&&q<g;q++)c.SearchData[k].toLowerCase()==d[q].name.toLowerCase()&&(g=q);g<Number.MAX_SAFE_INTEGER&&(e=d[g].value)}return e};e.ServerTimestamp=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.ServerDate&&"undefined"!==typeof c.ServerTime&&(d=c.ServerDate.split("-")[2]+"-"+c.ServerDate.split("-")[0]+"-"+c.ServerDate.split("-")[1]+
"T"+c.ServerTime+"Z");return d};e.ServiceName=function(c){var d="";c.bookingInProgress&&c.bookingInProgress.experience&&c.bookingInProgress.experience.name?d=c.bookingInProgress.experience.name:c.appointment&&c.appointment.experience&&c.appointment.experience.name&&(d=c.appointment.experience.name);return d};e.ServiceOrderID=function(c){var d="";if(c=c.selectedServiceFamily||c.selectedService||c.appointment)d=c.id;return d};e.ServiceRevenue=function(c){var d="";(c=c.selectedServiceFamily||c.selectedService||
c.appointment)&&c.price&&(d=parseFloat(c.price.replace(/[^0-9.]/g,"")));return d};e.ServiceStoreNumber=function(c){var d="";c.bookingInProgress&&c.bookingInProgress.store&&c.bookingInProgress.store.number?d=c.bookingInProgress.store.number:c.store&&c.store.number&&(d=c.store.number);return d};e.ShouldBeLoggedIn=function(){var c="Should Be Logged Out";"true"===_dsgTag.HelperFunctions.GetCookieValue("SA_ShouldBeLoggedIn")&&(c="Should Be Logged In");return c};e.SignedInBoolean=function(c){var d=null,
e=_dsgTag.HelperFunctions.GetValue("AuthState");"undefined"!==typeof c&&"undefined"!==typeof c.isAuthenticated?d="true"===c.isAuthenticated.toString().toLowerCase():"true"==_dsgTag.HelperFunctions.GetQueryStringValue("oauthRedirect")?d=!0:null!==e&&(d="true"===e.toLowerCase());return d};e.SignedInEventBoolean=function(){var c=!1;document.referrer&&/\/oauthcallbackpage/i.test(document.referrer)&&(c=!0);return c};e.SignedUpBoolean=function(c){var d=!1;"undefined"!==typeof c&&"undefined"!==typeof c.MyAccountSignUp&&
(d="Yes"===c.MyAccountSignUp);"undefined"!==typeof c&&"undefined"!==typeof c.RegistrationOccured&&(d="true"===c.RegistrationOccured);return d};e.SortMethod=function(c){var d="";"undefined"!==typeof c&&"undefined"!==typeof c.SortMethod&&(d=c.SortMethod);return d};e.StaticPageID=function(c){var d="";"undefined"===typeof c||"undefined"===typeof c.StaticPageID&&"undefined"===typeof c.StaticID||(d=c.StaticPageID||c.StaticID);return d};e.StoreLocatorStoreAddress=function(c){var d="";"undefined"!==typeof c&&
"undefined"!==typeof c.StoreAddress?d=c.StoreAddress:(div=document.querySelector(".nap-address-wrapper"))&&4==div.innerText.split("\n").length?d=div.innerText.split("\n")[2]+", "+div.innerText.split("\n")[3]:(div=document.querySelector(".address-inner"))&&4==div.innerText.split("\n").length&&(d=div.innerText.split("\n")[1]+", "+div.innerText.split("\n")[2]);return d};e.StoreLocatorStoreNumber=function(c){var d="";if("undefined"!==typeof c&&"undefined"!==typeof c.StoreNumber)d=c.StoreNumber;else if(urlVal=
/stores\.\w+\.com\/\w{2}\/[\w\-]+\/(\d+)/gi.exec(window.location.href))d=urlVal[1];return d};e.TSATraffic=function(){var c="";null!==_dsgTag.HelperFunctions.GetQueryStringValue("TSA")?c="TSA="+_dsgTag.HelperFunctions.GetQueryStringValue("TSA"):null!==_dsgTag.HelperFunctions.GetQueryStringValue("ACQ")&&(c="ACQ="+_dsgTag.HelperFunctions.GetQueryStringValue("ACQ"));return c};e.WebstoreID=function(c){var d="";"undefined"!==typeof c&&_dsgTag.DataLayer.GetValue("OrderID",c)&&(d=_dsgTag.DataLayer.GetValue("OrderID",
c));return d};e.ZipCodeEstimation=function(){var c="";if(storeCookieValue=_dsgTag.HelperFunctions.GetCookieValue("whereabouts"))c=storeCookieValue;return c};for(var g in e)this.dataNameList.push(g)};_dsgTag.DataLayer=new _dsgTag.DataLayer;_dsgTag.HelperFunctions.DebugTimer("Datalayer Done");/*

 Adobe Visitor API for JavaScript version: 4.3.0
 Copyright 2019 Adobe, Inc. All Rights Reserved
 More info available at https://marketing.adobe.com/resources/help/en_US/mcvid/
*/
_dsgTag.FunctionRepository.GetIdentityData=function(e){var g={};_dsgTag.CustomerIDs.AdobeMCVID&&(g.ECID=e?[{id:_dsgTag.CustomerIDs.AdobeMCVID,authenticatedState:_dsgTag.DataLayer.GetValue("SignedInBoolean")?"authenticated":"loggedOut",primary:!_dsgTag.CustomerIDs.AthleteID}]:_dsgTag.CustomerIDs.AdobeMCVID);_dsgTag.CustomerIDs.AthleteID&&(g.athleteId=e?[{id:_dsgTag.CustomerIDs.AthleteID,authenticatedState:_dsgTag.DataLayer.GetValue("SignedInBoolean")?"authenticated":"loggedOut",primary:!0}]:_dsgTag.CustomerIDs.AthleteID);
_dsgTag.CustomerIDs.HashedEmail&&(g.emailHash=e?[{id:_dsgTag.CustomerIDs.HashedEmail,authenticatedState:_dsgTag.DataLayer.GetValue("SignedInBoolean")?"authenticated":"loggedOut",primary:!1}]:_dsgTag.CustomerIDs.HashedEmail);return g};
_dsgTag.FunctionRepository.ConfigureWebSDK=function(){function e(c){var d=_dsgTag.FunctionRepository.GetIdentityData(!1);if("undefined"===typeof d.ECID)return!1;c.xdm._dsg=c.xdm._dsg||{};c.xdm._dsg.identity=d}var g=_dsgTag.isProduction?_dsgTag.HelperFunctions.GetValue("cdpStage")?"stage":"prod":"dev",c=_dsgTag.currentWebsite;c={datastreamId:function(c,e){return e?_dsgTag.AEPDataStreamIDs[c][e][g]:_dsgTag.AEPDataStreamIDs[c][g]}("analyticsDataStreamID",c.Abbreviation),orgId:_dsgTag.AdobeID,debugEnabled:!_dsgTag.isProduction,
onBeforeEventSend:function(c){e(c);c.data&&c.data.__adobe&&c.data.__adobe.analytics&&s.preTrackCallbackList.push(function(){s.logContentsOfSObject(c.data.__adobe.analytics)});s.processPreTrackCallbacks()},edgeDomain:"aem."+("undefined"!==typeof c.CustomTrackingServerDomain?c.CustomTrackingServerDomain:c.Domain),clickCollectionEnabled:!1};alloy("configure",c)};
if(_dsgTag.currentWebsite===_dsgTag.Websites.GoingGoingGone&&_dsgTag.HelperFunctions.IsInLane("1-8"))_dsgTag.HelperFunctions.DebugLog("[VisitorID Test] Skipped VisitorID Service; Configuring WebSDK"),_dsgTag.FunctionRepository.ConfigureWebSDK();else{_dsgTag.HelperFunctions.DebugLog("[VisitorID Test] Loading VisitorID Service");var pa=function(){function e(c,d,e){function f(c){return function(d){d=d||u.location.href;try{var e=m._extractParamFromUri(d,c);if(e)return z.parsePipeDelimetedKeyValues(e)}catch(Ya){}}}
function l(c){c=c||{};m._supplementalDataIDCurrent=c.supplementalDataIDCurrent||"";m._supplementalDataIDCurrentConsumed=c.supplementalDataIDCurrentConsumed||{};m._supplementalDataIDLast=c.supplementalDataIDLast||"";m._supplementalDataIDLastConsumed=c.supplementalDataIDLastConsumed||{}}function p(c){return function(c){var d=z.getTimestampInSeconds();return c=c?c+="|":c,c+("TS="+d)}(c.reduce(function(c,d){var e=d[0];d=d[1];if(null!=d&&d!==ca){var f=c;c=(f=f?f+="|":f,f+(e+"="+encodeURIComponent(d)))}return c},
""))}function h(){return m.configs.isIabContext?t.optIn.isApproved(t.optIn.Categories.ECID)&&n:t.optIn.isApproved(t.optIn.Categories.ECID)}if(!e||e.split("").reverse().join("")!==c)throw Error("Please use `Visitor.getInstance` to instantiate Visitor.");var m=this,t=window.adobe,k="",n=!1,q=!1;m.version="4.3.0";var u=E,v=u.Visitor;v.version=m.version;v.AuthState=ka;v.OptOut=ua;u.s_c_in||(u.s_c_il=[],u.s_c_in=0);m._c="Visitor";m._il=u.s_c_il;m._in=u.s_c_in;m._il[m._in]=m;u.s_c_in++;m._instanceType=
"regular";m._log={requests:[]};m.marketingCloudOrgID=c;m.cookieName="AMCV_"+c;m.sessionCookieName="AMCVS_"+c;m.cookieDomain=K();m.cookieDomain===u.location.hostname&&(m.cookieDomain="");m.loadSSL=0<=u.location.protocol.toLowerCase().indexOf("https");m.loadTimeout=3E4;m.CORSErrors=[];m.marketingCloudServer=m.audienceManagerServer="dpm.demdex.net";m.sdidParamExpiry=30;var B=null,ca="NONE",ma=F(m);m.FIELDS=ra;m.cookieRead=function(c){return ha.get(c)};m.cookieWrite=function(c,d,e){var f=m.cookieLifetime?
(""+m.cookieLifetime).toUpperCase():"",l=!1;return m.configs&&m.configs.secureCookie&&"https:"===location.protocol&&(l=!0),ha.set(c,""+d,{expires:e,domain:m.cookieDomain,cookieLifetime:f,secure:l})};m.resetState=function(c){c?m._mergeServerState(c):l()};m._isAllowedDone=!1;m._isAllowedFlag=!1;m.isAllowed=function(){return m._isAllowedDone||(m._isAllowedDone=!0,(m.cookieRead(m.cookieName)||m.cookieWrite(m.cookieName,"T",1))&&(m._isAllowedFlag=!0)),"T"===m.cookieRead(m.cookieName)&&m._helpers.removeCookie(m.cookieName),
m._isAllowedFlag};m.setMarketingCloudVisitorID=function(c){m._setMarketingCloudFields(c)};m._use1stPartyMarketingCloudServer=!1;m.getMarketingCloudVisitorID=function(c,d){m.marketingCloudServer&&0>m.marketingCloudServer.indexOf(".demdex.net")&&(m._use1stPartyMarketingCloudServer=!0);var e=m._getAudienceManagerURLData("_setMarketingCloudFields");return m._getRemoteField("MCMID",e.url,c,d,e)};m.getVisitorValues=function(c,d){var e={MCMID:{fn:m.getMarketingCloudVisitorID,args:[!0],context:m},MCOPTOUT:{fn:m.isOptedOut,
args:[void 0,!0],context:m},MCAID:{fn:m.getAnalyticsVisitorID,args:[!0],context:m},MCAAMLH:{fn:m.getAudienceManagerLocationHint,args:[!0],context:m},MCAAMB:{fn:m.getAudienceManagerBlob,args:[!0],context:m}};d=d&&d.length?O.pluck(e,d):e;J(d,c)};m._currentCustomerIDs={};m._customerIDsHashChanged=!1;m._newCustomerIDsHash="";m.setCustomerIDs=function(c){function d(){m._customerIDsHashChanged=!1}if(!m.isOptedOut()&&c){if(!O.isObject(c)||O.isObjectEmpty(c))return!1;m._readVisitor();var e,f;for(e in c)if(!Object.prototype[e]&&
(f=c[e]))if("object"===W(f)){var l={};f.id&&(l.id=f.id);void 0!=f.authState&&(l.authState=f.authState);m._currentCustomerIDs[e]=l}else m._currentCustomerIDs[e]={id:f};c=m.getCustomerIDs();l=m._getField("MCCIDH");var g="";l||(l=0);for(e in c)!Object.prototype[e]&&(f=c[e],g+=(g?"|":"")+e+"|"+(f.id?f.id:"")+(f.authState?f.authState:""));m._newCustomerIDsHash=String(m._hash(g));m._newCustomerIDsHash!==l&&(m._customerIDsHashChanged=!0,m._mapCustomerIDs(d))}};m.getCustomerIDs=function(){m._readVisitor();
var c,d,e={};for(c in m._currentCustomerIDs)!Object.prototype[c]&&(d=m._currentCustomerIDs[c],e[c]||(e[c]={}),d.id&&(e[c].id=d.id),void 0!=d.authState?e[c].authState=d.authState:e[c].authState=v.AuthState.UNKNOWN);return e};m.setAnalyticsVisitorID=function(c){m._setAnalyticsFields(c)};m.getAnalyticsVisitorID=function(c,d,e){if(!z.isTrackingServerPopulated()&&!e)return m._callCallback(c,[""]),"";var f="";if(e||(f=m.getMarketingCloudVisitorID(function(){m.getAnalyticsVisitorID(c,!0)})),f||e){var l=
e?m.marketingCloudServer:m.trackingServer,g="";m.loadSSL&&(e?m.marketingCloudServerSecure&&(l=m.marketingCloudServerSecure):m.trackingServerSecure&&(l=m.trackingServerSecure));var p={};if(l){l="http"+(m.loadSSL?"s":"")+"://"+l+"/id";f="d_visid_ver="+m.version+"&mcorgid="+encodeURIComponent(m.marketingCloudOrgID)+(f?"&mid="+encodeURIComponent(f):"")+(m.idSyncDisable3rdPartySyncing||m.disableThirdPartyCookies?"&d_coppa=true":"");var h=["s_c_il",m._in,"_set"+(e?"MarketingCloud":"Analytics")+"Fields"];
g=l+"?"+f+"&callback=s_c_il%5B"+m._in+"%5D._set"+(e?"MarketingCloud":"Analytics")+"Fields";p.corsUrl=l+"?"+f;p.callback=h}return p.url=g,m._getRemoteField(e?"MCMID":"MCAID",g,c,d,p)}return""};m.getAudienceManagerLocationHint=function(c,d){if(m.getMarketingCloudVisitorID(function(){m.getAudienceManagerLocationHint(c,!0)})){var e=m._getField("MCAID");if(!e&&z.isTrackingServerPopulated()&&(e=m.getAnalyticsVisitorID(function(){m.getAudienceManagerLocationHint(c,!0)})),e||!z.isTrackingServerPopulated())return e=
m._getAudienceManagerURLData(),m._getRemoteField("MCAAMLH",e.url,c,d,e)}return""};m.getLocationHint=m.getAudienceManagerLocationHint;m.getAudienceManagerBlob=function(c,d){if(m.getMarketingCloudVisitorID(function(){m.getAudienceManagerBlob(c,!0)})){var e=m._getField("MCAID");if(!e&&z.isTrackingServerPopulated()&&(e=m.getAnalyticsVisitorID(function(){m.getAudienceManagerBlob(c,!0)})),e||!z.isTrackingServerPopulated()){e=m._getAudienceManagerURLData();var f=e.url;return m._customerIDsHashChanged&&m._setFieldExpire("MCAAMB",
-1),m._getRemoteField("MCAAMB",f,c,d,e)}}return""};m._supplementalDataIDCurrent="";m._supplementalDataIDCurrentConsumed={};m._supplementalDataIDLast="";m._supplementalDataIDLastConsumed={};m.getSupplementalDataID=function(c,d){m._supplementalDataIDCurrent||d||(m._supplementalDataIDCurrent=m._generateID(1));var e=m._supplementalDataIDCurrent;return m._supplementalDataIDLast&&!m._supplementalDataIDLastConsumed[c]?(e=m._supplementalDataIDLast,m._supplementalDataIDLastConsumed[c]=!0):e&&(m._supplementalDataIDCurrentConsumed[c]&&
(m._supplementalDataIDLast=m._supplementalDataIDCurrent,m._supplementalDataIDLastConsumed=m._supplementalDataIDCurrentConsumed,m._supplementalDataIDCurrent=e=d?"":m._generateID(1),m._supplementalDataIDCurrentConsumed={}),e&&(m._supplementalDataIDCurrentConsumed[c]=!0)),e};var A=!1;m._liberatedOptOut=null;m.getOptOut=function(c,d){var e=m._getAudienceManagerURLData("_setMarketingCloudFields"),f=e.url;if(h())return m._getRemoteField("MCOPTOUT",f,c,d,e);if(m._registerCallback("liberatedOptOut",c),null!==
m._liberatedOptOut)return m._callAllCallbacks("liberatedOptOut",[m._liberatedOptOut]),A=!1,m._liberatedOptOut;if(A)return null;A=!0;return e.corsUrl=e.corsUrl.replace(/dpm\.demdex\.net\/id\?/,"dpm.demdex.net/optOutStatus?"),e.callback=["liberatedGetOptOut"],E.liberatedGetOptOut=function(c){if(c===Object(c)){c=O.parseOptOut(c,d,ca);var d=c.optOut;c=1E3*c.d_ottl;m._liberatedOptOut=d;setTimeout(function(){m._liberatedOptOut=null},c)}m._callAllCallbacks("liberatedOptOut",[d]);A=!1},ma.fireCORS(e),null};
m.isOptedOut=function(c,d,e){d||(d=v.OptOut.GLOBAL);return(e=m.getOptOut(function(e){e=e===v.OptOut.GLOBAL||0<=e.indexOf(d);m._callCallback(c,[e])},e))?e===v.OptOut.GLOBAL||0<=e.indexOf(d):null};m._fields=null;m._fieldsExpired=null;m._hash=function(c){var d,e=0;if(c)for(d=0;d<c.length;d++){var f=c.charCodeAt(d);e=(e<<5)-e+f;e&=e}return e};m._generateID=I;m._generateLocalMID=function(){var c=m._generateID(0);return da.isClientSideMarketingCloudVisitorID=!0,c};m._callbackList=null;m._callCallback=function(c,
d){try{"function"==typeof c?c.apply(u,d):c[1].apply(c[0],d)}catch(Ra){}};m._registerCallback=function(c,d){d&&(null==m._callbackList&&(m._callbackList={}),void 0==m._callbackList[c]&&(m._callbackList[c]=[]),m._callbackList[c].push(d))};m._callAllCallbacks=function(c,d){if(null!=m._callbackList&&(c=m._callbackList[c]))for(;0<c.length;)m._callCallback(c.shift(),d)};m._addQuerystringParam=function(c,d,e,f){d=encodeURIComponent(d)+"="+encodeURIComponent(e);e=z.parseHash(c);c=z.hashlessUrl(c);if(-1===
c.indexOf("?"))return c+"?"+d+e;c=c.split("?");return c[0]+"?"+z.addQueryParamAtLocation(c[1],d,f)+e};m._extractParamFromUri=function(c,d){if((c=(new RegExp("[\\?&#]"+d+"=([^&#]*)")).exec(c))&&c.length)return decodeURIComponent(c[1])};m._parseAdobeMcFromUrl=f("adobe_mc");m._parseAdobeMcSdidFromUrl=f("adobe_mc_sdid");m._attemptToPopulateSdidFromUrl=function(d){d=m._parseAdobeMcSdidFromUrl(d);var e=1E9;d&&d.TS&&(e=z.getTimestampInSeconds()-d.TS);d&&d.SDID&&d.MCORGID===c&&e<m.sdidParamExpiry&&(m._supplementalDataIDCurrent=
d.SDID,m._supplementalDataIDCurrentConsumed.SDID_URL_PARAM=!0)};m._attemptToPopulateIdsFromUrl=function(){var d=m._parseAdobeMcFromUrl();if(d&&d.TS){var e=z.getTimestampInSeconds()-d.TS;if(!(5<Math.floor(e/60)||d.MCORGID!==c)){e=d.MCMID;var f=m.setMarketingCloudVisitorID;e&&e.match(sa)&&(q=!0,f(e));m._setFieldExpire("MCAAMB",-1);d=d.MCAID;e=m.setAnalyticsVisitorID;d&&d.match(sa)&&e(d)}}};m._mergeServerState=function(c){if(c)try{if(c=function(c){return z.isObject(c)?c:JSON.parse(c)}(c),c[m.marketingCloudOrgID]){var d=
c[m.marketingCloudOrgID];!function(c){z.isObject(c)&&m.setCustomerIDs(c)}(d.customerIDs);l(d.sdid)}}catch(Ra){throw Error("`serverState` has an invalid format.");}};m._timeout=null;m._loadData=function(c,d,e,f){m._addQuerystringParam(d,"d_fieldgroup",c,1);f.url=m._addQuerystringParam(f.url,"d_fieldgroup",c,1);f.corsUrl=m._addQuerystringParam(f.corsUrl,"d_fieldgroup",c,1);da.fieldGroupObj[c]=!0;f===Object(f)&&f.corsUrl&&"XMLHttpRequest"===ma.corsMetadata.corsType&&ma.fireCORS(f,e,c)};m._clearTimeout=
function(c){null!=m._timeout&&m._timeout[c]&&(clearTimeout(m._timeout[c]),m._timeout[c]=0)};m._settingsDigest=0;m._getSettingsDigest=function(){if(!m._settingsDigest){var c=m.version;m.audienceManagerServer&&(c+="|"+m.audienceManagerServer);m.audienceManagerServerSecure&&(c+="|"+m.audienceManagerServerSecure);m._settingsDigest=m._hash(c)}return m._settingsDigest};m._readVisitorDone=!1;m._readVisitor=function(){if(!m._readVisitorDone){m._readVisitorDone=!0;var c,d,e;var f=m._getSettingsDigest();var l=
!1,g=m.cookieRead(m.cookieName),p=new Date;if(g||q||m.discardTrackingServerECID||(g=m.cookieRead("s_ecid")),null==m._fields&&(m._fields={}),g&&"T"!==g)for(g=g.split("|"),g[0].match(/^[\-0-9]+$/)&&(parseInt(g[0],10)!==f&&(l=!0),g.shift()),1==g.length%2&&g.pop(),c=0;c<g.length;c+=2){f=g[c].split("-");var h=f[0];var t=g[c+1];1<f.length?(d=parseInt(f[1],10),e=0<f[1].indexOf("s")):(d=0,e=!1);l&&("MCCIDH"===h&&(t=""),0<d&&(d=p.getTime()/1E3-60));h&&t&&(m._setField(h,t,1),0<d&&(m._fields["expire"+h]=d+(e?
"s":""),(p.getTime()>=1E3*d||e&&!m.cookieRead(m.sessionCookieName))&&(m._fieldsExpired||(m._fieldsExpired={}),m._fieldsExpired[h]=!0)))}!m._getField("MCAID")&&z.isTrackingServerPopulated()&&(g=m.cookieRead("s_vi"))&&(g=g.split("|"),1<g.length&&0<=g[0].indexOf("v1")&&(t=g[1],c=t.indexOf("["),0<=c&&(t=t.substring(0,c)),t&&t.match(sa)&&m._setField("MCAID",t)))}};m._appendVersionTo=function(c){var d="vVersion|"+m.version,e=c?m._getCookieVersion(c):null;return e?V.areVersionsDifferent(e,m.version)&&(c=
c.replace(Ia,d)):c+=(c?"|":"")+d,c};m._writeVisitor=function(){var c,d,e=m._getSettingsDigest();for(c in m._fields)!Object.prototype[c]&&m._fields[c]&&"expire"!==c.substring(0,6)&&(d=m._fields[c],e+=(e?"|":"")+c+(m._fields["expire"+c]?"-"+m._fields["expire"+c]:"")+"|"+d);e=m._appendVersionTo(e);m.cookieWrite(m.cookieName,e,1)};m._getField=function(c,d){return null==m._fields||!d&&m._fieldsExpired&&m._fieldsExpired[c]?null:m._fields[c]};m._setField=function(c,d,e){null==m._fields&&(m._fields={});m._fields[c]=
d;e||m._writeVisitor()};m._getFieldList=function(c,d){return(c=m._getField(c,d))?c.split("*"):null};m._setFieldList=function(c,d,e){m._setField(c,d?d.join("*"):"",e)};m._getFieldMap=function(c,d){if(c=m._getFieldList(c,d)){var e={};for(d=0;d<c.length;d+=2)e[c[d]]=c[d+1];return e}return null};m._setFieldMap=function(c,d,e){var f,l=null;if(d)for(f in l=[],d)!Object.prototype[f]&&(l.push(f),l.push(d[f]));m._setFieldList(c,l,e)};m._setFieldExpire=function(c,d,e){var f=new Date;f.setTime(f.getTime()+1E3*
d);null==m._fields&&(m._fields={});m._fields["expire"+c]=Math.floor(f.getTime()/1E3)+(e?"s":"");0>d?(m._fieldsExpired||(m._fieldsExpired={}),m._fieldsExpired[c]=!0):m._fieldsExpired&&(m._fieldsExpired[c]=!1);e&&(m.cookieRead(m.sessionCookieName)||m.cookieWrite(m.sessionCookieName,"1"))};m._findVisitorID=function(c){return c&&("object"===W(c)&&(c=c.d_mid?c.d_mid:c.visitorID?c.visitorID:c.id?c.id:c.uuid?c.uuid:""+c),c&&"NOTARGET"===(c=c.toUpperCase())&&(c=ca),c&&(c===ca||c.match(sa))||(c="")),c};m._setFields=
function(c,d){if(m._clearTimeout(c),null!=m._loading&&(m._loading[c]=!1),da.fieldGroupObj[c]&&da.setState(c,!1),"MC"===c){!0!==da.isClientSideMarketingCloudVisitorID&&(da.isClientSideMarketingCloudVisitorID=!1);var e=m._getField("MCMID");if(!e||m.overwriteCrossDomainMCIDAndAID){if(!(e="object"===W(d)&&d.mid?d.mid:m._findVisitorID(d))){if(m._use1stPartyMarketingCloudServer&&!m.tried1stPartyMarketingCloudServer)return m.tried1stPartyMarketingCloudServer=!0,void m.getAnalyticsVisitorID(null,!1,!0);e=
m._generateLocalMID()}m._setField("MCMID",e)}e&&e!==ca||(e="");"object"===W(d)&&((d.d_region||d.dcs_region||d.d_blob||d.blob)&&m._setFields("AAM",d),m._use1stPartyMarketingCloudServer&&d.mid&&m._setFields("A",{id:d.id}));m._callAllCallbacks("MCMID",[e])}if("AAM"===c&&"object"===W(d)){e=604800;void 0!=d.id_sync_ttl&&d.id_sync_ttl&&(e=parseInt(d.id_sync_ttl,10));var f=H.getRegionAndCheckIfChanged(d,e);m._callAllCallbacks("MCAAMLH",[f]);f=m._getField("MCAAMB");(d.d_blob||d.blob)&&(f=d.d_blob,f||(f=d.blob),
m._setFieldExpire("MCAAMB",e),m._setField("MCAAMB",f));f||(f="");m._callAllCallbacks("MCAAMB",[f]);!d.error_msg&&m._newCustomerIDsHash&&m._setField("MCCIDH",m._newCustomerIDsHash)}"A"===c&&((c=m._getField("MCAID"))&&!m.overwriteCrossDomainMCIDAndAID||(c=m._findVisitorID(d),c?c!==ca&&m._setFieldExpire("MCAAMB",-1):c=ca,m._setField("MCAID",c)),c&&c!==ca||(c=""),m._callAllCallbacks("MCAID",[c]));m.idSyncDisableSyncs||m.disableIdSyncs?H.idCallNotProcesssed=!0:(H.idCallNotProcesssed=!1,c={},c.ibs=d.ibs,
c.subdomain=d.subdomain,H.processIDCallData(c));if(d===Object(d)){var l;h()&&m.isAllowed()&&(l=m._getField("MCOPTOUT"));d=O.parseOptOut(d,l,ca);l=d.optOut;m._setFieldExpire("MCOPTOUT",d.d_ottl,!0);m._setField("MCOPTOUT",l);m._callAllCallbacks("MCOPTOUT",[l])}};m._loading=null;m._getRemoteField=function(c,d,e,f,l){var g,p="",t=z.isFirstPartyAnalyticsVisitorIDCall(c),k={MCAAMLH:!0,MCAAMB:!0};if(h()&&m.isAllowed())if(m._readVisitor(),p=m._getField(c,!0===k[c]),!(!p||m._fieldsExpired&&m._fieldsExpired[c])||
m.disableThirdPartyCalls&&!t)p||("MCMID"===c?(m._registerCallback(c,e),p=m._generateLocalMID(),m.setMarketingCloudVisitorID(p)):"MCAID"===c?(m._registerCallback(c,e),p="",m.setAnalyticsVisitorID(p)):(p="",f=!0));else if("MCMID"===c||"MCOPTOUT"===c?g="MC":"MCAAMLH"===c||"MCAAMB"===c?g="AAM":"MCAID"===c&&(g="A"),g)return!d||null!=m._loading&&m._loading[g]||(null==m._loading&&(m._loading={}),m._loading[g]=!0,m._loadData(g,d,function(d){m._getField(c)||(d&&da.setState(g,!0),d="","MCMID"===c?d=m._generateLocalMID():
"AAM"===g&&(d={error_msg:"timeout"}),m._setFields(g,d))},l)),m._registerCallback(c,e),p||(d||m._setFields(g,{id:ca}),"");return"MCMID"!==c&&"MCAID"!==c||p!==ca||(p="",f=!0),e&&f&&m._callCallback(e,[p]),p};m._setMarketingCloudFields=function(c){m._readVisitor();m._setFields("MC",c)};m._mapCustomerIDs=function(c){m.getAudienceManagerBlob(c,!0)};m._setAnalyticsFields=function(c){m._readVisitor();m._setFields("A",c)};m._setAudienceManagerFields=function(c){m._readVisitor();m._setFields("AAM",c)};m._getAudienceManagerURLData=
function(c){var d=m.audienceManagerServer,e="",f=m._getField("MCMID"),l=m._getField("MCAAMB",!0),g=m._getField("MCAID");g=g&&g!==ca?"&d_cid_ic=AVID%01"+encodeURIComponent(g):"";if(m.loadSSL&&m.audienceManagerServerSecure&&(d=m.audienceManagerServerSecure),d){var p,h,t=m.getCustomerIDs();if(t)for(p in t)!Object.prototype[p]&&(h=t[p],g+="&d_cid_ic="+encodeURIComponent(p)+"%01"+encodeURIComponent(h.id?h.id:"")+(h.authState?"%01"+h.authState:""));c||(c="_setAudienceManagerFields");d="http"+(m.loadSSL?
"s":"")+"://"+d+"/id";f="d_visid_ver="+m.version+(k&&-1!==d.indexOf("demdex.net")?"&gdpr=1&gdpr_force=1&gdpr_consent="+k:"")+"&d_rtbd=json&d_ver=2"+(!f&&m._use1stPartyMarketingCloudServer?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(m.marketingCloudOrgID)+"&d_nsid="+(m.idSyncContainerID||0)+(f?"&d_mid="+encodeURIComponent(f):"")+(m.idSyncDisable3rdPartySyncing||m.disableThirdPartyCookies?"&d_coppa=true":"")+(!0===B?"&d_coop_safe=1":!1===B?"&d_coop_unsafe=1":"")+(l?"&d_blob="+encodeURIComponent(l):
"")+g;l=["s_c_il",m._in,c];return e=d+"?"+f+"&d_cb=s_c_il%5B"+m._in+"%5D."+c,{url:e,corsUrl:d+"?"+f,callback:l}}return{url:e}};m.appendVisitorIDsTo=function(c){try{var d=[["MCMID",m._getField("MCMID")],["MCAID",m._getField("MCAID")],["MCORGID",m.marketingCloudOrgID]];return m._addQuerystringParam(c,"adobe_mc",p(d))}catch(Ra){return c}};m.appendSupplementalDataIDTo=function(c,d){if(!(d=d||m.getSupplementalDataID(z.generateRandomString(),!0)))return c;try{var e=p([["SDID",d],["MCORGID",m.marketingCloudOrgID]]);
return m._addQuerystringParam(c,"adobe_mc_sdid",e)}catch(Ya){return c}};var z={parseHash:function(c){var d=c.indexOf("#");return 0<d?c.substr(d):""},hashlessUrl:function(c){var d=c.indexOf("#");return 0<d?c.substr(0,d):c},addQueryParamAtLocation:function(c,d,e){c=c.split("&");return e=null!=e?e:c.length,c.splice(e,0,d),c.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(c,d,e){if("MCAID"!==c)return!1;var f;return d||(d=m.trackingServer),e||(e=m.trackingServerSecure),!("string"!=typeof(f=m.loadSSL?
e:d)||!f.length)&&0>f.indexOf("2o7.net")&&0>f.indexOf("omtrdc.net")},isObject:function(c){return!(!c||c!==Object(c))},removeCookie:function(c){ha.remove(c,{domain:m.cookieDomain})},isTrackingServerPopulated:function(){return!!m.trackingServer||!!m.trackingServerSecure},getTimestampInSeconds:function(){return Math.round((new Date).getTime()/1E3)},parsePipeDelimetedKeyValues:function(c){return c.split("|").reduce(function(c,d){d=d.split("=");return c[d[0]]=decodeURIComponent(d[1]),c},{})},generateRandomString:function(c){c=
c||5;for(var d="";c--;)d+="abcdefghijklmnopqrstuvwxyz0123456789"[Math.floor(36*Math.random())];return d},normalizeBoolean:function(c){return"true"===c||"false"!==c&&c},parseBoolean:function(c){return"true"===c||"false"!==c&&null},replaceMethodsWithFunction:function(c,d){for(var e in c)c.hasOwnProperty(e)&&"function"==typeof c[e]&&(c[e]=d);return c}};m._helpers=z;var H=G(m,v);m._destinationPublishing=H;m.timeoutMetricsLog=[];var da={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,
AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(c,d){switch(c){case "MC":!1===d?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=d;break;case "A":!1===d?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=d;break;case "AAM":!1===d?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=d}}};m.isClientSideMarketingCloudVisitorID=function(){return da.isClientSideMarketingCloudVisitorID};m.MCIDCallTimedOut=
function(){return da.MCIDCallTimedOut};m.AnalyticsIDCallTimedOut=function(){return da.AnalyticsIDCallTimedOut};m.AAMIDCallTimedOut=function(){return da.AAMIDCallTimedOut};m.idSyncGetOnPageSyncInfo=function(){return m._readVisitor(),m._getField("MCSYNCSOP")};m.idSyncByURL=function(c){if(!m.isOptedOut()){var d=c||{};var e=d.minutesToLive,f="";d=((m.idSyncDisableSyncs||m.disableIdSyncs)&&(f=f||"Error: id syncs have been disabled"),"string"==typeof d.dpid&&d.dpid.length||(f=f||"Error: config.dpid is empty"),
"string"==typeof d.url&&d.url.length||(f=f||"Error: config.url is empty"),void 0===e?e=20160:(e=parseInt(e,10),(isNaN(e)||0>=e)&&(f=f||"Error: config.minutesToLive needs to be a positive number")),{error:f,ttl:e});if(d.error)return d.error;var l,g;e=c.url;f=encodeURIComponent;var p=H;return e=e.replace(/^https:/,"").replace(/^http:/,""),l=O.encodeAndBuildRequest(["",c.dpid,c.dpuuid||""],","),g=["ibs",f(c.dpid),"img",f(e),d.ttl,"",l],p.addMessage(g.join("|")),p.requestToProcess(),"Successfully queued"}};
m.idSyncByDataSource=function(c){if(!m.isOptedOut())return c===Object(c)&&"string"==typeof c.dpuuid&&c.dpuuid.length?(c.url="//dpm.demdex.net/ibs:dpid="+c.dpid+"&dpuuid="+c.dpuuid,m.idSyncByURL(c)):"Error: config or config.dpuuid is empty"};g(m,H);m._getCookieVersion=function(c){c=c||m.cookieRead(m.cookieName);return(c=Ia.exec(c))&&1<c.length?c[1]:null};m._resetAmcvCookie=function(c){var d=m._getCookieVersion();d&&!V.isLessThan(d,c)||z.removeCookie(m.cookieName)};m.setAsCoopSafe=function(){B=!0};
m.setAsCoopUnsafe=function(){B=!1};(function(){if(m.configs=Object.create(null),z.isObject(d))for(var c in d)!Object.prototype[c]&&(m[c]=d[c],m.configs[c]=d[c])})();(function(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach(function(c){var d=c[0],e=2===c.length?c[1]:"",f=m[d];m[d]=function(c){return h()&&m.isAllowed()?f.apply(m,arguments):("function"==typeof c&&m._callCallback(c,
[e]),e)}})})();m.init=function(){if(!m.configs.doesOptInApply||t.optIn.isComplete&&h())!function(){if(z.isObject(d)){m.idSyncContainerID=m.idSyncContainerID||0;B="boolean"==typeof m.isCoopSafe?m.isCoopSafe:z.parseBoolean(m.isCoopSafe);m.resetBeforeVersion&&m._resetAmcvCookie(m.resetBeforeVersion);m._attemptToPopulateIdsFromUrl();m._attemptToPopulateSdidFromUrl();m._readVisitor();var c=m._getField("MCIDTS"),e=Math.ceil((new Date).getTime()/864E5);m.idSyncDisableSyncs||m.disableIdSyncs||!H.canMakeSyncIDCall(c,
e)||(m._setFieldExpire("MCAAMB",-1),m._setField("MCIDTS",e));m.getMarketingCloudVisitorID();m.getAudienceManagerLocationHint();m.getAudienceManagerBlob();m._mergeServerState(m.serverState)}else m._attemptToPopulateIdsFromUrl(),m._attemptToPopulateSdidFromUrl()}(),function(){if(!m.idSyncDisableSyncs&&!m.disableIdSyncs){H.checkDPIframeSrc();u.addEventListener("load",function(){v.windowLoaded=!0;var c=H;c.readyToAttachIframe()&&c.attachIframe()});try{va.receiveMessage(function(c){H.receiveMessage(c.data)},
H.iframeHost)}catch(cb){}}}(),function(){m.whitelistIframeDomains&&ia&&(m.whitelistIframeDomains=m.whitelistIframeDomains instanceof Array?m.whitelistIframeDomains:[m.whitelistIframeDomains],m.whitelistIframeDomains.forEach(function(d){var e=new X(c,d);e=R(m,e);va.receiveMessage(e,d)}))}();else var e=t.optIn.fetchPermissions(function(){t.optIn.isApproved(t.optIn.Categories.ECID)&&(m.configs.isIabContext?t.optIn.execute({command:"iabPlugin.fetchConsentData",callback:function(c,d){if(n=!0,c)throw Error("[IAB plugin] : "+
c);d.gdprApplies&&(k=d.consentString);m.init();e()}}):(m.init(),e()))},!0)}}function g(c,d){c.publishDestinations=function(e,f,l){var g=l;try{g="function"==typeof g?g:e.callback}catch(Ta){g=function(){}}if(!d.readyToAttachIframePreliminary())return void g({error:"The destination publishing iframe is disabled in the Visitor library."});if("string"==typeof e){if(!e.length)return void g({error:"subdomain is not a populated string."});if(!(f instanceof Array&&f.length))return void g({error:"messages is not a populated array."});
var p=!1;if(f.forEach(function(c){"string"==typeof c&&c.length&&(d.addMessage(c),p=!0)}),!p)return void g({error:"None of the messages are populated strings."})}else{if(!O.isObject(e))return void g({error:"Invalid parameters passed."});f=e;if("string"!=typeof(e=f.subdomain)||!e.length)return void g({error:"config.subdomain is not a populated string."});f=f.urlDestinations;if(!(f instanceof Array&&f.length))return void g({error:"config.urlDestinations is not a populated array."});var h=[];f.forEach(function(c){O.isObject(c)&&
(c.hideReferrer?c.message&&d.addMessage(c.message):h.push(c))});!function za(){h.length&&setTimeout(function(){var c=new Image,e=h.shift();c.src=e.url;d.onPageDestinationsFired.push(e);za()},100)}()}d.iframe?(g({message:"The destination publishing iframe is already attached and loaded."}),d.requestToProcess()):!c.subdomain&&c._getField("MCMID")?(d.subdomain=e,d.doAttachIframe=!0,d.url=d.getUrl(),d.readyToAttachIframe()?(d.iframeLoadedCallbacks.push(function(c){g({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+
(c.message||"no result")})}),d.attachIframe()):g({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):d.iframeLoadedCallbacks.push(function(c){g({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(c.message||"no result")})})}}function c(c){return function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=d.command,f=d.params;f=void 0===f?{}:
f;d=d.callback;d=void 0===d?k:d;if(!e||-1===e.indexOf("."))throw Error("[OptIn.execute] Please provide a valid command.");try{var l=e.split("."),g=c[l[0]],p=l[1];if(!g||"function"!=typeof g[p])throw Error("Make sure the plugin and API name exist.");var h=Object.assign(f,{callback:d});g[p].call(g,h)}catch(Ta){Aa.error("[execute] Something went wrong: "+Ta.message)}}}function d(c){return f(c).filter(function(c,d,e){return e.indexOf(c)===d})}function f(c){return Object.keys(c).map(function(d){return c[d]})}
function n(c){return"function"===W(c)?c():c}function k(){}function q(c){return null!==c&&"object"===W(c)&&!1===Array.isArray(c)}function h(c){var d;if(!(d=void 0===c)){if(q(c))var e=B(Object.keys(c));else try{var f=JSON.parse(c);e=!!c&&"string"===W(c)&&B(Object.keys(f))}catch(Sa){e=!1}d=e}return d}function t(c){if(q(c))return c;try{return JSON.parse(c)}catch(da){return{}}}function u(c){return"[object Array]"===Object.prototype.toString.call(c)&&!c.length}function v(c,d){return c.reduce(function(c,
e){return c[e]=d,c},{})}function B(c){return!(!c||u(c))&&z(c).every(function(c){return-1<Da.indexOf(c)})}function D(c){var d=Object.keys(c);return!!d.length&&d.every(function(d){return!0===c[d]})}function z(c,d){return c instanceof Array?c:"string"===W(c)?[c]:d||[]}function A(c,d,e){return e()?function(){var e=window.console;if(e&&"function"==typeof e[c]){e=arguments.length;for(var f=Array(e),l=0;l<e;l++)f[l]=arguments[l];console[c].apply(console,[d].concat(f))}}:C}function C(){}function p(){var c=
{};return c.callbacks=Object.create(null),c.add=function(d,e){if(!("function"==typeof e||e instanceof Array&&e.length))throw Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");c.callbacks[d]=c.callbacks[d]||[];var f=c.callbacks[d].push(e)-1;return function(){c.callbacks[d].splice(f,1)}},c.execute=function(d,e){if(c.callbacks[d]){e=void 0===e?[]:e;e=e instanceof Array?e:[e];try{for(;c.callbacks[d].length;){var f=c.callbacks[d].shift();"function"==typeof f?
f.apply(null,e):f instanceof Array&&f[1].apply(f[0],e)}delete c.callbacks[d]}catch(Sa){}}},c.executeAll=function(d,e){(e||d&&(d!==Object(d)||0!==Object.keys(d).length))&&Object.keys(c.callbacks).forEach(function(e){c.execute(e,void 0!==d[e]?d[e]:"")},c)},c.hasCallbacks=function(){return!!Object.keys(c.callbacks).length},c}function l(c){var d={};return c.on=function(c,e,f){if(!e||"function"!=typeof e)throw Error("[ON] Callback should be a function.");d.hasOwnProperty(c)||(d[c]=[]);var l=d[c].push({callback:e,
context:f})-1;return function(){d[c].splice(l,1);d[c].length||delete d[c]}},c.publish=function(c){if(d.hasOwnProperty(c)){var e=[].slice.call(arguments,1);d[c].slice(0).forEach(function(c){c.callback.apply(c.context,e)})}},c.publish}function G(c,d){var e=E.document;return{THROTTLE_START:3E4,MAX_SYNCS_LENGTH:649,throttleTimerSet:!1,id:null,onPagePixels:[],iframeHost:null,getIframeHost:function(c){if("string"==typeof c)return c=c.split("/"),c[0]+"//"+c[2]},subdomain:null,url:null,getUrl:function(){var d,
f="http://fast.",l="?d_nsid="+c.idSyncContainerID+"#"+encodeURIComponent(e.location.origin);return this.subdomain||(this.subdomain="nosubdomainreturned"),c.loadSSL&&(f=c.idSyncSSLUseAkamai?"https://fast.":"https://"),d=f+this.subdomain+".demdex.net/dest5.html"+l,this.iframeHost=this.getIframeHost(d),this.id="destination_publishing_iframe_"+this.subdomain+"_"+c.idSyncContainerID,d},checkDPIframeSrc:function(){var d="?d_nsid="+c.idSyncContainerID+"#"+encodeURIComponent(e.location.href);"string"==typeof c.dpIframeSrc&&
c.dpIframeSrc.length&&(this.id="destination_publishing_iframe_"+(c._subdomain||this.subdomain||(new Date).getTime())+"_"+c.idSyncContainerID,this.iframeHost=this.getIframeHost(c.dpIframeSrc),this.url=c.dpIframeSrc+d)},idCallNotProcesssed:null,doAttachIframe:!1,startedAttachingIframe:!1,iframeHasLoaded:null,iframeIdChanged:null,newIframeCreated:null,originalIframeHasLoadedAlready:null,iframeLoadedCallbacks:[],regionChanged:!1,timesRegionChanged:0,sendingMessages:!1,messages:[],messagesPosted:[],messagesReceived:[],
messageSendingInterval:ia?null:100,onPageDestinationsFired:[],jsonForComparison:[],jsonDuplicates:[],jsonWaiting:[],jsonProcessed:[],canSetThirdPartyCookies:!0,receivedThirdPartyCookiesNotification:!1,readyToAttachIframePreliminary:function(){return!(c.idSyncDisableSyncs||c.disableIdSyncs||c.idSyncDisable3rdPartySyncing||c.disableThirdPartyCookies||c.disableThirdPartyCalls)},readyToAttachIframe:function(){return this.readyToAttachIframePreliminary()&&(this.doAttachIframe||c._doAttachIframe)&&(this.subdomain&&
"nosubdomainreturned"!==this.subdomain||c._subdomain)&&this.url&&!this.startedAttachingIframe},attachIframe:function(){function c(){l=e.createElement("iframe");l.sandbox="allow-scripts allow-same-origin";l.title="Adobe ID Syncing iFrame";l.id=f.id;l.name=f.id+"_name";l.style.cssText="display: none; width: 0; height: 0;";l.src=f.url;f.newIframeCreated=!0;d();e.body.appendChild(l)}function d(c){l.addEventListener("load",function(){l.className="aamIframeLoaded";f.iframeHasLoaded=!0;f.fireIframeLoadedCallbacks(c);
f.requestToProcess()})}this.startedAttachingIframe=!0;var f=this,l=e.getElementById(this.id);l?"IFRAME"!==l.nodeName?(this.id+="_2",this.iframeIdChanged=!0,c()):(this.newIframeCreated=!1,"aamIframeLoaded"!==l.className?(this.originalIframeHasLoadedAlready=!1,d("The destination publishing iframe already exists from a different library, but hadn't loaded yet.")):(this.originalIframeHasLoadedAlready=!0,this.iframeHasLoaded=!0,this.iframe=l,this.fireIframeLoadedCallbacks("The destination publishing iframe already exists from a different library, and had loaded alresady."),
this.requestToProcess())):c();this.iframe=l},fireIframeLoadedCallbacks:function(c){this.iframeLoadedCallbacks.forEach(function(d){"function"==typeof d&&d({message:c||"The destination publishing iframe was attached and loaded successfully."})});this.iframeLoadedCallbacks=[]},requestToProcess:function(d){function e(){l.jsonForComparison.push(d);l.jsonWaiting.push(d);l.processSyncOnPage(d)}var f,l=this;if(d===Object(d)&&d.ibs)if(f=JSON.stringify(d.ibs||[]),this.jsonForComparison.length){var g,p,h=!1;
var t=0;for(g=this.jsonForComparison.length;t<g;t++)if(p=this.jsonForComparison[t],f===JSON.stringify(p.ibs||[])){h=!0;break}h?this.jsonDuplicates.push(d):e()}else e();(this.receivedThirdPartyCookiesNotification||!ia||this.iframeHasLoaded)&&this.jsonWaiting.length&&(f=this.jsonWaiting.shift(),this.process(f),this.requestToProcess());c.idSyncDisableSyncs||c.disableIdSyncs||!this.iframeHasLoaded||!this.messages.length||this.sendingMessages||(this.throttleTimerSet||(this.throttleTimerSet=!0,setTimeout(function(){l.messageSendingInterval=
ia?null:150},this.THROTTLE_START)),this.sendingMessages=!0,this.sendMessages())},getRegionAndCheckIfChanged:function(d,e){var f=c._getField("MCAAMLH");d=d.d_region||d.dcs_region;return f?d&&(c._setFieldExpire("MCAAMLH",e),c._setField("MCAAMLH",d),parseInt(f,10)!==d&&(this.regionChanged=!0,this.timesRegionChanged++,c._setField("MCSYNCSOP",""),c._setField("MCSYNCS",""),f=d)):(f=d)&&(c._setFieldExpire("MCAAMLH",e),c._setField("MCAAMLH",f)),f||(f=""),f},processSyncOnPage:function(c){var d,e;if((d=c.ibs)&&
d instanceof Array&&(e=d.length))for(c=0;c<e;c++){var f=d[c];f.syncOnPage&&this.checkFirstPartyCookie(f,"","syncOnPage")}},process:function(c){var d,e,f,l=encodeURIComponent,g=!1;if((d=c.ibs)&&d instanceof Array&&(e=d.length))for(g=!0,f=0;f<e;f++){var p=d[f];var h=[l("ibs"),l(p.id||""),l(p.tag||""),O.encodeAndBuildRequest(p.url||[],","),l(p.ttl||""),"","",p.fireURLSync?"true":"false"];p.syncOnPage||(this.canSetThirdPartyCookies?this.addMessage(h.join("|")):p.fireURLSync&&this.checkFirstPartyCookie(p,
h.join("|")))}g&&this.jsonProcessed.push(c)},checkFirstPartyCookie:function(d,e,f){var l=(f="syncOnPage"===f)?"MCSYNCSOP":"MCSYNCS";c._readVisitor();var g,p,h=c._getField(l),t=!1,k=!1,n=Math.ceil((new Date).getTime()/864E5);h?(g=h.split("*"),p=this.pruneSyncData(g,d.id,n),t=p.dataPresent,k=p.dataValid,t&&k||this.fireSync(f,d,e,g,l,n)):(g=[],this.fireSync(f,d,e,g,l,n))},pruneSyncData:function(c,d,e){var f,l=!1,g=!1;for(f=0;f<c.length;f++){var p=c[f];var h=parseInt(p.split("-")[1],10);p.match("^"+d+
"-")?(l=!0,e<h?g=!0:(c.splice(f,1),f--)):e>=h&&(c.splice(f,1),f--)}return{dataPresent:l,dataValid:g}},manageSyncsSize:function(c){if(c.join("*").length>this.MAX_SYNCS_LENGTH)for(c.sort(function(c,d){return parseInt(c.split("-")[1],10)-parseInt(d.split("-")[1],10)});c.join("*").length>this.MAX_SYNCS_LENGTH;)c.shift()},fireSync:function(d,e,f,l,g,p){var h=this;if(d){if("img"===e.tag){var t=e.url,k=c.loadSSL?"https:":"http:";d=0;for(f=t.length;d<f;d++){l=t[d];var m=/^\/\//.test(l);var n=new Image;n.addEventListener("load",
function(d,e,f,l){return function(){h.onPagePixels[d]=null;c._readVisitor();var p=c._getField(g);var t=[];if(p){p=p.split("*");var k;var m=0;for(k=p.length;m<k;m++){var n=p[m];n.match("^"+e.id+"-")||t.push(n)}}h.setSyncTrackingData(t,e,f,l)}}(this.onPagePixels.length,e,g,p));n.src=(m?k:"")+l;this.onPagePixels.push(n)}}}else this.addMessage(f),this.setSyncTrackingData(l,e,g,p)},addMessage:function(d){var e=encodeURIComponent(c._enableErrorReporting?"---destpub-debug---":"---destpub---");this.messages.push((ia?
"":e)+d)},setSyncTrackingData:function(d,e,f,l){d.push(e.id+"-"+(l+Math.ceil(e.ttl/60/24)));this.manageSyncsSize(d);c._setField(f,d.join("*"))},sendMessages:function(){var c,d=this,e="",f=encodeURIComponent;this.regionChanged&&(e=f("---destpub-clear-dextp---"),this.regionChanged=!1);this.messages.length?ia?(c=e+f("---destpub-combined---")+this.messages.join("%01"),this.postMessage(c),this.messages=[],this.sendingMessages=!1):(c=this.messages.shift(),this.postMessage(e+c),setTimeout(function(){d.sendMessages()},
this.messageSendingInterval)):this.sendingMessages=!1},postMessage:function(c){va.postMessage(c,this.url,this.iframe.contentWindow);this.messagesPosted.push(c)},receiveMessage:function(c){var d,e=/^---destpub-to-parent---/;"string"==typeof c&&e.test(c)&&(d=c.replace(e,"").split("|"),"canSetThirdPartyCookies"===d[0]&&(this.canSetThirdPartyCookies="true"===d[1],this.receivedThirdPartyCookiesNotification=!0,this.requestToProcess()),this.messagesReceived.push(c))},processIDCallData:function(f){(null==
this.url||f.subdomain&&"nosubdomainreturned"===this.subdomain)&&("string"==typeof c._subdomain&&c._subdomain.length?this.subdomain=c._subdomain:this.subdomain=f.subdomain||"",this.url=this.getUrl());f.ibs instanceof Array&&f.ibs.length&&(this.doAttachIframe=!0);this.readyToAttachIframe()&&(c.idSyncAttachIframeOnWindowLoad?(d.windowLoaded||"complete"===e.readyState||"loaded"===e.readyState)&&this.attachIframe():this.attachIframeASAP());"function"==typeof c.idSyncIDCallResult?c.idSyncIDCallResult(f):
this.requestToProcess(f);"function"==typeof c.idSyncAfterIDCallResult&&c.idSyncAfterIDCallResult(f)},canMakeSyncIDCall:function(d,e){return c._forceSyncIDCall||!d||1<e-d},attachIframeASAP:function(){function c(){d.startedAttachingIframe||(e.body?d.attachIframe():setTimeout(c,30))}var d=this;c()}}}function F(c){return{corsMetadata:function(){var c="none",d=!0;return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?c="XMLHttpRequest":
"undefined"!=typeof XDomainRequest&&XDomainRequest===Object(XDomainRequest)&&(d=!1),0<Object.prototype.toString.call(E.HTMLElement).indexOf("Constructor")&&(d=!1)),{corsType:c,corsCookiesEnabled:d}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new E[this.corsMetadata.corsType]},fireCORS:function(d,e){var f=this;e&&(d.loadErrorHandler=e);try{var l=this.getCORSInstance();l.open("get",d.corsUrl+"&ts="+(new Date).getTime(),!0);"XMLHttpRequest"===this.corsMetadata.corsType&&
(l.withCredentials=!0,l.timeout=c.loadTimeout,l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.onreadystatechange=function(){if(4===this.readyState&&200===this.status)a:{var c;try{if((c=JSON.parse(this.responseText))!==Object(c)){f.handleCORSError(d,null,"Response is not JSON");break a}}catch(za){f.handleCORSError(d,za,"Error parsing response as JSON");break a}try{for(var e=d.callback,l=E,g=0;g<e.length;g++)l=l[e[g]];l(c)}catch(za){f.handleCORSError(d,za,"Error forming callback function")}}});
l.onerror=function(c){f.handleCORSError(d,c,"onerror")};l.ontimeout=function(c){f.handleCORSError(d,c,"ontimeout")};l.send();c._log.requests.push(d.corsUrl)}catch(Ca){this.handleCORSError(d,Ca,"try-catch")}},handleCORSError:function(d,e,f){c.CORSErrors.push({corsData:d,error:e,description:f});d.loadErrorHandler&&("ontimeout"===f?d.loadErrorHandler(!0):d.loadErrorHandler(!1))}}}function I(c){var d="0123456789",e="",f="",l=8,g=10,p=10;if(1==c){d+="ABCDEF";for(c=0;16>c;c++){var h=Math.floor(Math.random()*
l);e+=d.substring(h,h+1);h=Math.floor(Math.random()*l);f+=d.substring(h,h+1);l=16}return e+"-"+f}for(c=0;19>c;c++)h=Math.floor(Math.random()*g),e+=d.substring(h,h+1),0===c&&9==h?g=3:(1==c||2==c)&&10!=g&&2>h?g=10:2<c&&(g=10),h=Math.floor(Math.random()*p),f+=d.substring(h,h+1),0===c&&9==h?p=3:(1==c||2==c)&&10!=p&&2>h?p=10:2<c&&(p=10);return e+f}function K(c){var d;if(!c&&E.location&&(c=E.location.hostname),d=c)if(/^[0-9.]+$/.test(d))d="";else{c=d.split(".");var e=c.length-1,f=e-1;if(1<e&&2>=c[e].length&&
(2===c[e-1].length||0>",ac,ad,ae,af,ag,ai,al,am,an,ao,aq,ar,as,at,au,aw,ax,az,ba,bb,be,bf,bg,bh,bi,bj,bm,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,cl,cm,cn,co,cr,cu,cv,cw,cx,cz,de,dj,dk,dm,do,dz,ec,ee,eg,es,et,eu,fi,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,im,in,io,iq,ir,is,it,je,jo,jp,kg,ki,km,kn,kp,kr,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mg,mh,mk,ml,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,na,nc,ne,nf,ng,nl,no,nr,nu,nz,om,pa,pe,pf,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,su,sv,sx,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tp,tr,tt,tv,tw,tz,ua,ug,uk,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,yt,".indexOf(","+
c[e]+","))&&f--,0<f)for(d="";e>=f;)d=c[e]+(d?".":"")+d,e--}return d}function J(c,d){function e(c){return function(e){f[c]=e;l++;l===g&&d(f)}}var f={},l=0,g=Object.keys(c).length;Object.keys(c).forEach(function(d){var f=c[d];if(f.fn){var l=f.args||[];l.unshift(e(d));f.fn.apply(f.context||null,l)}})}function R(c,d){function e(){var d={};return Object.keys(H).forEach(function(e){var f=c[H[e]]();O.isValueEmpty(f)||(d[e]=f)}),d}function f(){var d=[];return c._loading&&Object.keys(c._loading).forEach(function(e){c._loading[e]&&
d.push(ma[e])}),d.length?d:null}function l(d){return function Za(){var e=f();if(e)c[fa[e[0]]](Za,!0);else d()}}function g(c){h(c);var f=ba.HANDSHAKE,l=e();d.send(c,f,l)}function p(c){l(function(){var f=ba.PARENTSTATE,l=e();d.send(c,f,l)})()}function h(e){var f=c.setCustomerIDs;c.setCustomerIDs=function(l){f.call(c,l);d.send(e,ba.PARENTSTATE,{CUSTOMERIDS:c.getCustomerIDs()})}}return function(c){d.isInvalid(c)||(d.parse(c).prefix===ba.HANDSHAKE?g:p)(c.source)}}function N(c,d,e,f){function l(c){q.isInvalid(c)||
(u=!1,c=q.parse(c),k.setStateAndPublish(c.state))}function g(c){!u&&n&&(u=!0,q.send(f,c))}function p(){Object.assign(k,new Ba(e._generateID));k.getMarketingCloudVisitorID();k.callbackRegistry.executeAll(k.state,!0);E.removeEventListener("message",h)}function h(c){q.isInvalid(c)||(c=q.parse(c),u=!1,E.clearTimeout(k._handshakeTimeout),E.removeEventListener("message",h),Object.assign(k,new Q(k)),E.addEventListener("message",l),k.setStateAndPublish(c.state),k.callbackRegistry.hasCallbacks()&&g(ba.GETSTATE))}
function t(){Object.keys(e).forEach(function(c){0!==c.indexOf("_")&&"function"==typeof e[c]&&(k[c]=function(){})});k.getSupplementalDataID=e.getSupplementalDataID;k.isAllowed=function(){return!0}}var k=this,n=d.whitelistParentDomain;k.state={ALLFIELDS:{}};k.version=e.version;k.marketingCloudOrgID=c;k.cookieDomain=e.cookieDomain||"";k._instanceType="child";var u=!1,q=new X(c,n);k.callbackRegistry=Ea();k.init=function(){E.s_c_in||(E.s_c_il=[],E.s_c_in=0);k._c="Visitor";k._il=E.s_c_il;k._in=E.s_c_in;
k._il[k._in]=k;E.s_c_in++;t();Object.assign(k,new S(k));n&&postMessage?(E.addEventListener("message",h),g(ba.HANDSHAKE),k._handshakeTimeout=setTimeout(p,250)):p()};k.findField=function(c,d){if(k.state[c])return d(k.state[c]),k.state[c]};k.messageParent=g;k.setStateAndPublish=function(c){Object.assign(k.state,c);Object.assign(k.state.ALLFIELDS,c);k.callbackRegistry.executeAll(k.state)}}function X(c,d){this.parse=function(c){try{var d={};return c.data.split("|").forEach(function(c,e){void 0!==c&&(d[wa[e]]=
2!==e?c:JSON.parse(c))}),d}catch(Sa){}};this.isInvalid=function(e){var f=this.parse(e);if(!f||2>Object.keys(f).length)return!0;var l=c!==f.orgID;e=!d||e.origin!==d;f=-1===Object.keys(ba).indexOf(f.prefix);return l||e||f};this.send=function(e,f,l){f=f+"|"+c;l&&l===Object(l)&&(f+="|"+JSON.stringify(l));try{e.postMessage(f,d)}catch(Ca){}}}function S(){Object.keys(fa).forEach(function(c){this[fa[c]]=function(d){this.callbackRegistry.add(c,d)}},this)}function Q(){function c(){}function d(c,d){var e=this;
return function(){return e.callbackRegistry.add(c,d),e.messageParent(ba.GETSTATE),""}}Object.keys(fa).forEach(function(e){this[fa[e]]=function(f){f=f||c;var l=this.findField(e,f);f=d.call(this,e,f);return void 0!==l?l:f()}},this);Object.keys(ta).forEach(function(d){this[ta[d]]=function(){return this.findField(d,c)||{}}},this)}function Ba(c){function d(){}function e(d,e){var f=this;return function(){var l=c(0,d),g={};return g[d]=l,f.setStateAndPublish(g),e(l),l}}var f=this;this.getMarketingCloudVisitorID=
function(c){c=c||d;var f=this.findField("MCMID",c);c=e.call(this,"MCMID",c);return void 0!==f?f:c()};this.getVisitorValues=function(c){f.getMarketingCloudVisitorID(function(d){c({MCMID:d})})}}function W(c){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(c)}function na(c,d,e){return d in c?Object.defineProperty(c,d,{value:e,enumerable:!0,
configurable:!0,writable:!0}):c[d]=e,c}function P(c,d){if(c===d)return 0;c=c.toString().split(".");d=d.toString().split(".");a:{var e=c.concat(d);for(var f=/^\d+$/,l=0,g=e.length;l<g;l++)if(!f.test(e[l])){e=!1;break a}e=!0}if(e){for(;c.length<d.length;)c.push("0");for(;d.length<c.length;)d.push("0");a:{for(e=0;e<c.length;e++){f=parseInt(c[e],10);l=parseInt(d[e],10);if(f>l){c=1;break a}if(l>f){c=-1;break a}}c=0}}else c=NaN;return c}function aa(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
{},d=c.cookieName,e=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).cookies;return c.isEnabled&&d&&e?{remove:function(){e.remove(d)},get:function(){var c=e.get(d),f={};try{f=JSON.parse(c)}catch(Ca){f={}}return f},set:function(c,f){f=f||{};e.set(d,JSON.stringify(c),{domain:f.optInCookieDomain||"",cookieLifetime:f.optInStorageExpiry||3419E4,expires:!0})}}:{get:k,set:k,remove:k}}function T(c){this.name=this.constructor.name;this.message=c;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,
this.constructor):this.stack=Error(c).stack}function xa(){function d(c,d){c=z(c);return c.length?c.every(function(c){return!!d[c]}):D(d)}function e(){K=V;Q=la.COMPLETE;X(H.status,H.permissions);A.set(H.permissions,{optInCookieDomain:m,optInStorageExpiry:F});S.execute(ya)}function f(c){return function(d,f){if(!B(d))throw Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return Q=la.CHANGED,Object.assign(V,v(z(d),c)),f||e(),H}}var g=0<arguments.length&&void 0!==arguments[0]?
arguments[0]:{},u=g.doesOptInApply,q=g.preOptInApprovals,G=g.isOptInStorageEnabled,m=g.optInCookieDomain,F=g.optInStorageExpiry,ma=g.isIabContext,I=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).cookies;g=n(g.previousPermissions);h(g)||Aa.error("".concat("Invalid `previousPermissions`!"));h(q)||Aa.error("".concat("Invalid `preOptInApprovals`!"));var A=aa({isEnabled:!!G,cookieName:"adobeujs-optin"},{cookies:I}),H=this,X=l(H),S=p();G=t(g);var C=t(q);I=A.get();var wa={},Q=function(c,d){return h(c)||
d&&h(d)?la.COMPLETE:la.PENDING}(G,I),K=function(c,d,e){var f=v(Da,!u);return u?Object.assign({},f,c,d,e):f}(C,G,I),V=JSON.parse(JSON.stringify(K));H.deny=f(!1);H.approve=f(!0);H.denyAll=H.deny.bind(H,Da);H.approveAll=H.approve.bind(H,Da);H.isApproved=function(c){return d(c,H.permissions)};H.isPreApproved=function(c){return d(c,C)};H.fetchPermissions=function(c){var d=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=d?H.on(la.COMPLETE,c):k;return!u||u&&H.isComplete||q?setTimeout(c(H.permissions),
0):d||S.add(ya,function(){return c(H.permissions)}),e};H.complete=function(){H.status===la.CHANGED&&e()};H.registerPlugin=function(c){if(!c||!c.name||"function"!=typeof c.onRegister)throw Error(Ja);wa[c.name]||(wa[c.name]=c,c.onRegister.call(c,H))};H.execute=c(wa);Object.defineProperties(H,{permissions:{get:function(){return K}},status:{get:function(){return Q}},Categories:{get:function(){return oa}},doesOptInApply:{get:function(){return!!u}},isPending:{get:function(){return H.status===la.PENDING}},
isComplete:{get:function(){return H.status===la.COMPLETE}},__plugins:{get:function(){return Object.keys(wa)}},isIabContext:{get:function(){return ma}}})}function U(c,d){if(void 0===d)return c;var e=setTimeout(function(){e=null;c.call(c,new T("The call took longer than you wanted!"))},d);return function(){e&&(clearTimeout(e),c.apply(c,arguments))}}function Y(){if(window.__cmp)return window.__cmp;var c=window;if(c===window.top)return void Aa.error("__cmp not found");for(var d;!d;){c=c.parent;try{c.frames.__cmpLocator&&
(d=c)}catch(Qa){}if(c===window.top)break}if(!d)return void Aa.error("__cmp not found");var e={};return window.__cmp=function(c,f,l){var g=Math.random()+"";c={__cmpCall:{command:c,parameter:f,callId:g}};e[g]=l;d.postMessage(c,"*")},window.addEventListener("message",function(c){var d=c.data;if("string"==typeof d)try{d=JSON.parse(c.data)}catch(Ca){}d.__cmpReturn&&(c=d.__cmpReturn,e[c.callId]&&(e[c.callId](c.returnValue,c.success),delete e[c.callId]))},!1),window.__cmp}function ea(c,d,e){c=null==c?void 0:
c[d];return void 0===c?e:c}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Object.assign=Object.assign||function(c){for(var d,e,f=1;f<arguments.length;++f)for(d in e=arguments[f],e)Object.prototype.hasOwnProperty.call(e,d)&&(c[d]=e[d]);return c};var L,Z,ba={HANDSHAKE:"HANDSHAKE",GETSTATE:"GETSTATE",PARENTSTATE:"PARENTSTATE"},fa={MCMID:"getMarketingCloudVisitorID",MCAID:"getAnalyticsVisitorID",MCAAMB:"getAudienceManagerBlob",
MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"getOptOut",ALLFIELDS:"getVisitorValues"},ra={MCMID:"MCMID",MCOPTOUT:"MCOPTOUT",MCAID:"MCAID",MCAAMLH:"MCAAMLH",MCAAMB:"MCAAMB"},ka={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2},ua={GLOBAL:"global"},ta={CUSTOMERIDS:"getCustomerIDs"},O=function(c,d){return d={exports:{}},c(d,d.exports),d.exports}(function(c,d){d.isObjectEmpty=function(c){return c===Object(c)&&0===Object.keys(c).length};d.isValueEmpty=function(c){return""===c||d.isObjectEmpty(c)};d.getIeVersion=
function(){if(document.documentMode)return document.documentMode;for(var c=7;4<c;c--){var d=document.createElement("div");if(d.innerHTML="\x3c!--[if IE "+c+"]><span></span><![endif]--\x3e",d.getElementsByTagName("span").length)return c}return null};d.encodeAndBuildRequest=function(c,d){return c.map(encodeURIComponent).join(d)};d.isObject=function(c){return null!==c&&"object"===W(c)&&!1===Array.isArray(c)};d.defineGlobalNamespace=function(){return window.adobe=d.isObject(window.adobe)?window.adobe:
{},window.adobe};d.pluck=function(c,d){return d.reduce(function(d,e){return c[e]&&(d[e]=c[e]),d},Object.create(null))};d.parseOptOut=function(c,d,e){d||(d=e,c.d_optout&&c.d_optout instanceof Array&&(d=c.d_optout.join(",")));c=parseInt(c.d_ottl,10);return isNaN(c)&&(c=7200),{optOut:d,d_ottl:c}};d.normalizeBoolean=function(c){var d=c;return"true"===c?d=!0:"false"===c&&(d=!1),d}}),Ea=(O.isObjectEmpty,O.isValueEmpty,O.getIeVersion,O.encodeAndBuildRequest,O.isObject,O.defineGlobalNamespace,O.pluck,O.parseOptOut,
O.normalizeBoolean,function(){return{callbacks:{},add:function(c,d){this.callbacks[c]=this.callbacks[c]||[];var e=this.callbacks[c].push(d)-1,f=this;return function(){f.callbacks[c].splice(e,1)}},execute:function(c,d){if(this.callbacks[c]){d=void 0===d?[]:d;d=d instanceof Array?d:[d];try{for(;this.callbacks[c].length;){var e=this.callbacks[c].shift();"function"==typeof e?e.apply(null,d):e instanceof Array&&e[1].apply(e[0],d)}delete this.callbacks[c]}catch(Qa){}}},executeAll:function(c,d){(d||c&&!O.isObjectEmpty(c))&&
Object.keys(this.callbacks).forEach(function(d){this.execute(d,void 0!==c[d]?c[d]:"")},this)},hasCallbacks:function(){return!!Object.keys(this.callbacks).length}}}),wa={0:"prefix",1:"orgID",2:"state"},H={MCMID:"getMarketingCloudVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"getOptOut",MCAID:"getAnalyticsVisitorID",CUSTOMERIDS:"getCustomerIDs",ALLFIELDS:"getVisitorValues"},ma={MC:"MCMID",A:"MCAID",AAM:"MCAAMB"},V={compare:P,isLessThan:function(c,d){return 0>
P(c,d)},areVersionsDifferent:function(c,d){return 0!==P(c,d)},isGreaterThan:function(c,d){return 0<P(c,d)},isEqual:function(c,d){return 0===P(c,d)}},ja=!!E.postMessage,va={postMessage:function(c,d,e){var f=1;d&&(ja?e.postMessage(c,d.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):d&&(e.location=d.replace(/#.*$/,"")+"#"+ +new Date+f++ +"&"+c))},receiveMessage:function(c,d){var e;try{ja&&(c&&(e=function(e){if("string"==typeof d&&e.origin!==d||"[object Function]"===Object.prototype.toString.call(d)&&!1===d(e.origin))return!1;
c(e)}),E.addEventListener?E[c?"addEventListener":"removeEventListener"]("message",e):E[c?"attachEvent":"detachEvent"]("onmessage",e))}catch(Qa){}}},ia=!!E.postMessage,sa=/^[0-9a-fA-F\-]+$/,Ia=/vVersion\|((\d+\.)?(\d+\.)?(\*|\d+))(?=$|\|)/,Ua={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{},disableThirdPartyCalls:{},discardTrackingServerECID:{},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{},idSyncContainerID:{},
idSyncDisable3rdPartySyncing:{},disableThirdPartyCookies:{},idSyncDisableSyncs:{},disableIdSyncs:{},idSyncIDCallResult:{},idSyncSSLUseAkamai:{},isCoopSafe:{},isIabContext:{},isOptInStorageEnabled:{},loadSSL:{},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{},takeTimeoutMetrics:{},
trackingServer:{},trackingServerSecure:{},whitelistIframeDomains:{},whitelistParentDomain:{}},Ka={getConfigNames:function(){return Object.keys(Ua)},getConfigs:function(){return Ua},normalizeConfig:function(c){return"function"!=typeof c?c:c()}},la={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},oa={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",VIDEO_ANALYTICS:"videoaa"},La=(L={},na(L,oa.AAM,565),na(L,oa.ECID,565),L),$a=(Z={},
na(Z,oa.AAM,[1,2,5]),na(Z,oa.ECID,[1,2,5]),Z),Da=function(c){return Object.keys(c).map(function(d){return c[d]})}(oa),Aa=new function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){return!0};this.log=A("log",c,d);this.warn=A("warn",c,d);this.error=A("error",c,d)}("[ADOBE OPT-IN]");T.prototype=Object.create(Error.prototype);T.prototype.constructor=T;var ya="fetchPermissions",Ja="[OptIn#registerPlugin] Plugin is invalid.";
xa.Categories=oa;xa.TimeoutError=T;L=Object.freeze({OptIn:xa,IabPlugin:function(){function c(c){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return!!(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{})[La[c]]&&function(){return $a[c].every(function(c){return d[c]})}()}function e(c){var e=d(La),f=Y();f&&f("getVendorConsents",e,c)}function f(c){var d=Y();d&&d("getConsentData",null,c)}function l(c){c=c.callback;if(k.allConsentData)return c(null,k.allConsentData);t.add("FETCH_CONSENT_DATA",
c);var d={};e(function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=c.purposeConsents,l=c.gdprApplies;c=c.vendorConsents;1<arguments.length&&arguments[1]&&(d={purposeConsents:e,gdprApplies:l,vendorConsents:c},g("allConsentData",d));f(function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};1<arguments.length&&arguments[1]&&(d.consentString=c.consentData,g("allConsentData",d));t.execute("FETCH_CONSENT_DATA",[null,k.allConsentData])})})}function g(c){return k[c]=
1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}}var h=this;h.name="iabPlugin";h.version="0.0.1";var t=p(),k={allConsentData:null};h.fetchConsentData=function(c){c=U(c.callback,c.timeout);l({callback:c})};h.isApproved=function(d){var e=d.callback,f=d.category;d=d.timeout;if(k.allConsentData)return e(null,c(f,k.allConsentData.vendorConsents,k.allConsentData.purposeConsents));d=U(function(d){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e(d,c(f,l.vendorConsents,l.purposeConsents))},
d);l({category:f,callback:d})};h.onRegister=function(d){var e=Object.keys(La);h.fetchConsentData({callback:function(f){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},g=l.purposeConsents,p=l.gdprApplies,h=l.vendorConsents;!f&&p&&h&&g&&(e.forEach(function(e){var f=c(e,h,g);d[f?"approve":"deny"](e,!0)}),d.complete())}})}}});var ha={get:function(c){c=encodeURIComponent(c);var d=(";"+document.cookie).split(" ").join(";"),e=d.indexOf(";"+c+"="),f=0>e?e:d.indexOf(";",e+1);return 0>e?"":
decodeURIComponent(d.substring(e+2+c.length,0>f?d.length:f))},set:function(c,d,e){var f=ea(e,"cookieLifetime"),l=ea(e,"expires"),g=ea(e,"domain");e=ea(e,"secure")?"Secure":"";if(l&&"SESSION"!==f&&"NONE"!==f){var p=""!==d?parseInt(f||0,10):-60;p?(l=new Date,l.setTime(l.getTime()+1E3*p)):1===l&&(l=new Date,p=l.getYear(),l.setYear(p+2+(1900>p?1900:0)))}else l=0;return c&&"NONE"!==f?(document.cookie=encodeURIComponent(c)+"="+encodeURIComponent(d)+"; path=/;"+(l?" expires="+l.toGMTString()+";":"")+(g?
" domain="+g+";":"")+e,this.get(c)===d):0},remove:function(c,d){d=(d=ea(d,"domain"))?" domain="+d+";":"";document.cookie=encodeURIComponent(c)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+d}};Z=L.OptIn;O.defineGlobalNamespace();window.adobe.OptInCategories=Z.Categories;e.config=Ka;E.Visitor=e;var ab=L.OptIn,bb=L.IabPlugin;return e.getInstance=function(c,d){if(!c)throw Error("Visitor requires Adobe Marketing Cloud Org ID.");0>c.indexOf("@")&&(c+="@AdobeOrg");var f=function(){var d=E.s_c_il;
if(d)for(var e=0;e<d.length;e++){var f=d[e];if(f&&"Visitor"===f._c&&f.marketingCloudOrgID===c)return f}}();if(f)return f;var l=function(){if(O.isObject(d))return Object.keys(d).reduce(function(c,e){var f="doesOptInApply"!==e?d[e]:Ka.normalizeConfig(d[e]);f=O.normalizeBoolean(f);return c[e]=f,c},Object.create(null))}();!function(c){var d=E.adobe,e;(e=E.adobe.optIn)||(e=O.pluck(c,"doesOptInApply previousPermissions preOptInApprovals isOptInStorageEnabled optInStorageExpiry isIabContext".split(" ")),
c=(c=c.optInCookieDomain||c.cookieDomain)||K(),c=c===window.location.hostname?"":c,e.optInCookieDomain=c,c=new ab(e,{cookies:ha}),e.isIabContext&&(e=new bb(window.__cmp),c.registerPlugin(e)),e=c);d.optIn=e}(l||{});var g=c.split("").reverse().join("");f=new e(c,null,g);O.isObject(l)&&l.cookieDomain&&(f.cookieDomain=l.cookieDomain);E.s_c_il.splice(--E.s_c_in,1);var p=O.getIeVersion();if("number"==typeof p&&10>p)return f._helpers.replaceMethodsWithFunction(f,function(){});try{var h=E.self!==E.parent}catch(m){h=
!0}h=h&&!function(c){return c.cookieWrite("TEST_AMCV_COOKIE","T",1),"T"===c.cookieRead("TEST_AMCV_COOKIE")&&(c._helpers.removeCookie("TEST_AMCV_COOKIE"),!0)}(f)&&E.parent?new N(c,l,f,E.parent):new e(c,l,g);return f=null,h.init(),h},function(){function c(){e.windowLoaded=!0}E.addEventListener?E.addEventListener("load",c):E.attachEvent&&E.attachEvent("onload",c);e.codeLoadEnd=(new Date).getTime()}(),e}(),Xa=Visitor.getInstance(window._dsgTag.AdobeID,{trackingServer:"metrics."+("undefined"!==typeof _dsgTag.currentWebsite.CustomTrackingServerDomain?
_dsgTag.currentWebsite.CustomTrackingServerDomain:window._dsgTag.currentWebsite.Domain),trackingServerSecure:"smetrics."+("undefined"!==typeof _dsgTag.currentWebsite.CustomTrackingServerDomain?_dsgTag.currentWebsite.CustomTrackingServerDomain:window._dsgTag.currentWebsite.Domain),marketingCloudServer:"metrics."+("undefined"!==typeof _dsgTag.currentWebsite.CustomTrackingServerDomain?_dsgTag.currentWebsite.CustomTrackingServerDomain:window._dsgTag.currentWebsite.Domain),marketingCloudServerSecure:"smetrics."+
("undefined"!==typeof _dsgTag.currentWebsite.CustomTrackingServerDomain?_dsgTag.currentWebsite.CustomTrackingServerDomain:window._dsgTag.currentWebsite.Domain),resetBeforeVersion:"3.1.2"});window.visitor=Xa;window.Visitor=Visitor;_dsgTag.manuallyLoadAlloy=!0;_dsgTag.HelperFunctions.DebugTimer("Adobe VisitorID Done")};window._dsgTag.CustomerIDs=function(){function e(c){try{_dsgTag.CustomerInfo.lastUpdated=Date.now();if(c){for(key in c)c[key]=null===c[key]?"":c[key];var d=JSON.stringify(_dsgTag.CustomerInfo.data)!==JSON.stringify(c);_dsgTag.CustomerInfo.data=c;var e=_dsgTag.HelperFunctions.DeepExtend({},_dsgTag.CustomerInfo,{updated:d});_dsgTag.EventHandlers.TriggerEvent("CustomerInfoReady",e)}_dsgTag.HelperFunctions.SaveValue("CustomerInfo",JSON.stringify(_dsgTag.CustomerInfo))}catch(F){_dsgTag.DebugLog("Error handling AthleteInfo API Response: "+
F.message)}}function g(){if(window.useGCPAthleteInfoLookup)if(_dsgTag.CustomerInfo=JSON.parse(_dsgTag.HelperFunctions.GetValue("CustomerInfo"))||{},_dsgTag.CustomerIDs.AthleteID&&(!_dsgTag.CustomerInfo||!_dsgTag.CustomerInfo.lastAPICheck||864E5<Date.now()-_dsgTag.CustomerInfo.lastAPICheck))_dsgTag.CustomerInfo=_dsgTag.CustomerInfo||{},_dsgTag.CustomerInfo.lastAPICheck=Date.now(),_dsgTag.HelperFunctions.SaveValue("CustomerInfo",JSON.stringify(_dsgTag.CustomerInfo)),_dsgTag.HelperFunctions.PullJSONFromURL(z.replace("<ID>",
_dsgTag.CustomerIDs.AthleteID),e);else if(_dsgTag.CustomerInfo&&_dsgTag.CustomerInfo.data){var c=_dsgTag.HelperFunctions.DeepExtend({},_dsgTag.CustomerInfo,{updated:!1});_dsgTag.EventHandlers.TriggerEvent("CustomerInfoReady",c)}}function c(c){try{var d="",e="";c.athleteID||c.athleteId?(d="AthleteID",e=c.athleteID||c.athleteId):c.athleteIdList&&0<c.athleteIdList.length&&(d="AthleteID",e=c.athleteIdList[0].athleteId);d&&e&&(_dsgTag.CustomerIDs.UpdateCustomerIDFromParameter(d,e,"API"),_dsgTag.EventHandlers.TriggerEvent("CustomerIDApiUsed",
{type:d,newID:e}))}catch(F){_dsgTag.DebugLog("Error handling AthleteID API Response: "+F.message)}}function d(d){try{h[d.Type].lastAPICheck=Date.now();n();var e=new XMLHttpRequest;e.open("GET",d.URL,!0);e.setRequestHeader("partner_key",d.Partner);d.Secret&&e.setRequestHeader("secret_key",d.Secret);d.Key&&e.setRequestHeader("x-CentraSite-APIKey",d.Key);e.onreadystatechange=function(){4===this.readyState&&(200<=this.status&&400>this.status?c(JSON.parse(this.responseText)):_dsgTag.HelperFunctions.DebugLog("Error hitting AthleteID API",
!0))};e.send();e=null}catch(G){}}function f(e,f,g){if((!f||"undefined"===typeof h[e.Type].lastAPICheck||Date.now()-h[e.Type].lastAPICheck>("undefined"!==h[e.Type].ID?6048E5:864E5))&&"undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent&&0>navigator.userAgent.toLowerCase().indexOf("prerender")&&"Kiosk"!==window._dsgTag.experience&&"In Store Mobile"!==window._dsgTag.experience){if(g)var l=g;else{f=window.useGCPAthleteIDLookup;g=_dsgTag.currentWebsite;if(h.Loyalty.ID){l=parseInt(h.Loyalty.ID)?
h.Loyalty.ID.substring(0,8):h.Loyalty.ID.substring(h.Loyalty.ID.length-8);var p=f?"loyalty":v[g.Abbreviation]||"0";0<=l.toString().indexOf("*")&&(l="")}else h.CustomerKey.ID?(l=h.CustomerKey.ID.split("-")[0],p="undefined"!==typeof h.CustomerKey.ID&&0<=h.CustomerKey.ID.indexOf("-")?h.CustomerKey.ID.split("-")[1]:"0"):h.HashedEmail.ID?(l=h.HashedEmail.ID,p=f?"hashed_email":"<HashedEmail>"):h.Webstore.ID&&0>h.Webstore.ID.indexOf("-")&&(l=h.Webstore.ID,p=f?"webstore":B[g.Abbreviation]||"0");l={ID:l,type:p}}l.ID&&
"0"!==l.type&&(e={Type:e.Type,URL:e.URL,Key:e.Key,Secret:e.Secret,Partner:e.Partner},_dsgTag.currentWebsite===_dsgTag.Websites.GoingGoingGone&&(e.URL=e.URL.replace("goinggoinggone","dickssportinggoods")),e.URL=e.URL.replace("<ID>",l.ID).replace("<Type>",l.type).replace("<Site>",_dsgTag.currentWebsite.Abbreviation),window.useGCPAthleteIDLookup?(h[e.Type].lastAPICheck=Date.now(),_dsgTag.HelperFunctions.PullJSONFromURL(e.URL,c)):("<HashedEmail>"===l.type&&"AthleteID"===e.Type&&(e.URL=e.URL.replace("<HashedEmail>/",
"")),d(e)))}}function n(){_dsgTag.HelperFunctions.SaveValue("TagIDs",JSON.stringify(h))}function k(c){h[c].get().then(h[c].set).catch(function(){})}function q(c){var d="<DELETE>"===c.id,e=!h[c.name].lastUpdated;if(c.id!=h[c.name].ID||e)_dsgTag.CustomerIDs[c.name]=d?"":c.id,h[c.name].lastUpdated=Date.now(),h[c.name].source=c.source?c.source:"Local",h[c.name].ID=d?"":c.id,n(),"function"===typeof u.indexOf&&0<=u.indexOf(c.name)&&(e&&"Webstore"==c.name?(h.AthleteID.lastAPICheck=Date.now(),n()):window.useGCPAthleteIDLookup?
f(D,!1,{type:c.name,ID:c.id}):f(D,!1))}var h={},t="CustomerKey HashedEmail Loyalty Webstore DeviceID AdobeMCVID AthleteID".split(" "),u=["CustomerKey","Loyalty","Webstore","HashedEmail"],v={DSG:"1",GGXY:"1",PBL:"1",GONE:"1",MJ:"1"},B={DSG:"18",GGXY:"11",PBL:"24",GONE:"26"};var D=window.useGCPAthleteIDLookup?{Type:"AthleteID",URL:"https://tag."+_dsgTag.currentWebsite.Domain+"/api/athlete-id?pd=2&t=<Type>&v=<ID>&s=<Site>"}:{Type:"AthleteID",URL:"https://"+(_dsgTag.isProduction?"www.":window.location.host.split(".")[0]+
".")+_dsgTag.currentWebsite.Domain+"/myaccount/services/redirectingservice/athleteprofileservice/v1/profile/<Type>/<ID>",Key:"",Secret:"joysk5zjhPmn5b4UYaH1",Partner:"ecom_analytics"};for(var z="https://tag."+_dsgTag.currentWebsite.Domain+"/api/athlete-info?pd=2&v=<ID>",A=0;A<t.length;A++){var C=t[A];this[C]="";h[C]={};h[C].ID="";h[C].lastUpdated=""}this.isGold=!1;h.Loyalty.isGold=!1;h.Loyalty.get=function(){return new Promise(function(c,d){var e=_dsgTag.DataLayer.GetValue("LoyaltyID");if(e)c({name:"Loyalty",
id:e});else try{"undefined"!==typeof window.authFunctions&&"function"===typeof window.authFunctions.getScorecard?window.authFunctions.getScorecard().then(function(e){e?c({name:"Loyalty",id:e,source:"Page Promise"}):d()}):d()}catch(F){d(F)}})};h.Loyalty.set=function(c){0<=c.id.indexOf("*")&&(c.id="");q(c);(c=_dsgTag.HelperFunctions.GetCookieValue("lg"))&&"gold"===c.toLowerCase()?this.SetGoldStatus(!0):"undefined"!==typeof h.Loyalty&&h.Loyalty.goldExpires&&new Date>new Date(h.Loyalty.goldExpires)?this.SetGoldStatus(!1):
this.isGold=h.Loyalty.isGold||!1};h.Webstore.get=function(){return new Promise(function(c,d){var e=_dsgTag.DataLayer.GetValue("WebstoreID");e?c({name:"Webstore",id:e}):d()})};h.Webstore.set=q;h.CustomerKey.get=function(){return new Promise(function(c,d){var e=_dsgTag.HelperFunctions.GetQueryStringValue("customerkey");if(e&&64!==e.length&&0>e.indexOf("-")){var f=B[_dsgTag.currentWebsite.Abbreviation]||"";f&&(e=e+"-"+f)}e?c({name:"CustomerKey",id:e}):d()})};h.CustomerKey.set=q;h.HashedEmail.get=function(){return new Promise(function(c,
d){var e="",f=_dsgTag.DataLayer.GetValue("HashedEmailAddress"),l=_dsgTag.HelperFunctions.GetQueryStringValue("customerkey");l&&64===l.length?e=l:f&&(e=f);if(e)c({name:"HashedEmail",id:e});else if(_dsgTag.pageType===_dsgTag.PageTypes.MyAccount)try{window.authFunctions&&"function"===typeof window.authFunctions.getEmailAddress&&window.authFunctions.getEmailAddress().then(function(d){_dsgTag.HelperFunctions.SHA256Hash(d).then(function(d){c({name:"HashedEmail",id:d.toUpperCase()})})})}catch(K){_dsgTag.HelperFunctions.DebugLog("Errorusing getEmailAddress in My Account: "+
K.message,!0)}else d()})};h.HashedEmail.set=q;h.DeviceID.get=function(){return new Promise(function(c,d){var e=_dsgTag.HelperFunctions.GetQueryStringValue("res_trackingid")||"";e?c({name:"DeviceID",id:e}):d()})};h.DeviceID.set=q;h.AdobeMCVID.get=function(){return new Promise(function(c,d){var e=window.visitor?Xa.getMarketingCloudVisitorID():"";e?c({name:"AdobeMCVID",id:e}):window.alloy&&"function"===typeof window.alloy?alloy("getIdentity").then(function(e){e&&e.identity&&e.identity.ECID?c({name:"AdobeMCVID",
id:e.identity.ECID}):d()}).catch(function(c){_dsgTag.HelperFunctions.DebugLog("Issue getting ECID via Alloy: "+c)}):d()})};h.AdobeMCVID.set=q;h.AthleteID.get=function(){return new Promise(function(c,d){var e=_dsgTag.HelperFunctions.GetQueryStringValue("AthleteID");e?c({name:"AthleteID",id:e}):d()})};h.AthleteID.set=function(c){q(c);g()};this.UpdateAllCustomerIDs=function(){try{this.PopulateIDsFromStorage();for(var c=0;c<t.length;c++)k(t[c]);f(D,!0);g()}catch(l){_dsgTag.HelperFunctions.DebugLog("Error occured in UpdateAllCustomerIDs: "+
l.message,!0)}};this.UpdateCustomerIDFromParameter=function(c,d,e){try{!d||d===h[c].ID&&"undefined"!==typeof h[c].lastUpdated||h[c].set({name:c,id:d,source:e})}catch(F){_dsgTag.HelperFunctions.DebugLog("Error occured in UpdateCustomerID: "+F.message,!0)}};this.SetGoldStatus=function(c){h.Loyalty&&((this.isGold=h.Loyalty.isGold=c)?(c=new Date((new Date).getFullYear()+1,0,1),h.Loyalty.goldExpires=c.getTime()):delete h.Loyalty.goldExpires,n())};this.PopulateIDsFromStorage=function(){var c=_dsgTag.HelperFunctions.GetValue("TagIDs");
if(null!==c){try{var d=JSON.parse(c)}catch(G){d={}}for(c=0;c<t.length;c++)"undefined"!==typeof d[t[c]]&&(this[t[c]]=d[t[c]].ID,Object.assign(h[t[c]],d[t[c]]),"undefined"!==typeof h[t[c]].isGold&&(this.isGold=h[t[c]].isGold))}else n()};this.UpdateAllCustomerIDs()};try{_dsgTag.CustomerIDs=new _dsgTag.CustomerIDs}catch(e){_dsgTag.HelperFunctions.DebugLog("Error occured initializing customerID object: "+e.message,!0),_dsgTag.CustomerIDs={}}
_dsgTag.isIFrame?_dsgTag.CustomerIDs=window._dsgTag.CustomerIDs||{}:_dsgTag.EventHandlers.AddEventHandler("NewPageView",function(){_dsgTag.CustomerIDs.UpdateAllCustomerIDs()},"CustomerIDService");
try{_dsgTag.EventHandlers.AddEventHandler("readyToParty",function(){try{window.party.getPartyAttributes("tagging",_dsgTag.isProduction?"kXonzmlg82wWo2wRdF7R":"rduZN4petfg9sTXxESQ5").then(function(e){if(e&&e.attributes){_dsgTag.HelperFunctions.DebugLog("Party response: "+JSON.stringify(e));for(var g=!1,c,d,f=0;f<e.attributes.length;f++){switch(e.attributes[f].id){case "nike_connected":c="true"===_dsgTag.HelperFunctions.GetValue("NikeConnected");d="true"===e.attributes[f].value;_dsgTag.HelperFunctions.SaveValue("NikeConnected",
d);break;case "gold":c=_dsgTag.CustomerIDs.isGold,d="true"===e.attributes[f].value,_dsgTag.CustomerIDs.SetGoldStatus(d)}g=g||c!=d}}_dsgTag.EventHandlers.initialPageViewPreFired&&g&&_dsgTag.EventHandlers.TriggerEvent("UpdateCustomerInfo")},function(e){_dsgTag.HelperFunctions.DebugLog("Party failed: "+e.toString())})}catch(e){_dsgTag.HelperFunctions.DebugLog("Error setting up getPartyAttributes promise:"+e.message,!0)}},"CustomerIDService")}catch(e){_dsgTag.HelperFunctions.DebugLog("Error setting up readyToParty:"+
e.message,!0)}_dsgTag.HelperFunctions.DebugTimer("CustomerID Done");if("CVCC"==_dsgTag.experience||"Kiosk"==_dsgTag.experience)window.guestScoreCardSignInEnabled=!1;window.GGBotTestCookie&&_dsgTag.HelperFunctions.WriteCookieValue("reimab","true");_dsgTag.HelperFunctions.DebugTimer("LTH Done");_dsgTag.FunctionRepository.RegisterTag("ElkRum",_dsgTag.InitTimings.DOMLoaded,[{t:"bypass-restricted",v:"true"}],function(){try{if("undefined"===typeof window.elkRUM&&_dsgTag.currentWebsite===_dsgTag.Websites.DicksSportingGoods){var e="//tag.dickssportinggoods.com/rumrunner/rumrunner-dickssportinggoods-0sbwnp4ny6iit38vptggon030n.min.js";_dsgTag.isProduction&&(e="//tag.dickssportinggoods.com/rumrunner/rumrunner-dickssportinggoods-c1ypssw9ukc76na6cdjsg7030p.min.js");_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction(e)}"undefined"===
typeof window.elkRUM&&_dsgTag.currentWebsite===_dsgTag.Websites.GolfGalaxy&&(e="//tag.dickssportinggoods.com/rumrunner/rumrunner-golfgalaxy-un7opgeiwyp4hn78hzcaiv030n.min.js",_dsgTag.isProduction&&(e="//tag.dickssportinggoods.com/rumrunner/rumrunner-golfgalaxy-pq0km0l45pwpwr4r6cg3030p.min.js"),_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction(e));"undefined"===typeof window.elkRUM&&_dsgTag.currentWebsite===_dsgTag.Websites.GoingGoingGone&&(e="//tag.dickssportinggoods.com/rumrunner/rumrunner-G3-j165e7xgvqkwvvdwi04lwj030n.min.js",
_dsgTag.isProduction&&(e="//tag.dickssportinggoods.com/rumrunner/rumrunner-G3-j165e7xgvqkwvvdwi04lwj030p.min.js"),_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction(e));"undefined"===typeof window.elkRUM&&_dsgTag.currentWebsite===_dsgTag.Websites.PublicLands&&(e="//tag.dickssportinggoods.com/rumrunner/rumrunner-PublicLands-0djwb5tf3vkjfuhrvlb2fua030n.min.js",_dsgTag.isProduction&&(e="//tag.dickssportinggoods.com/rumrunner/rumrunner-PublicLands-0djwb5tf3vkjfuhrvlb2fua030p.min.js"),_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction(e))}catch(g){}});
_dsgTag.HelperFunctions.DebugTimer("Elkrum Done");try{(function(){function e(d){var f=c[d];if(void 0!==f)return f.exports;f=c[d]={exports:{}};return g[d].call(f.exports,f,f.exports,e),f.exports}var g={34:function(c,e,g){var d=this&&this.__createBinding||(Object.create?function(c,d,e,f){void 0===f&&(f=e);var g=Object.getOwnPropertyDescriptor(d,e);g&&("get"in g?d.__esModule:!g.writable&&!g.configurable)||(g={enumerable:!0,get:function(){return d[e]}});Object.defineProperty(c,f,g)}:function(c,d,e,f){void 0===f&&(f=e);c[f]=d[e]});c=this&&this.__exportStar||
function(c,e){for(var f in c)"default"===f||Object.prototype.hasOwnProperty.call(e,f)||d(e,c,f)};Object.defineProperty(e,"__esModule",{value:!0});c(g(872),e);c(g(93),e);c(g(757),e);c(g(870),e);c(g(591),e)},59:function(c,e){Object.defineProperty(e,"__esModule",{value:!0})},85:function(c,e,g){var d=this&&this.__createBinding||(Object.create?function(c,d,e,f){void 0===f&&(f=e);var g=Object.getOwnPropertyDescriptor(d,e);g&&("get"in g?d.__esModule:!g.writable&&!g.configurable)||(g={enumerable:!0,get:function(){return d[e]}});
Object.defineProperty(c,f,g)}:function(c,d,e,f){void 0===f&&(f=e);c[f]=d[e]});c=this&&this.__exportStar||function(c,e){for(var f in c)"default"===f||Object.prototype.hasOwnProperty.call(e,f)||d(e,c,f)};Object.defineProperty(e,"__esModule",{value:!0});c(g(919),e);c(g(483),e);c(g(34),e);c(g(962),e);c(g(671),e)},93:function(c,e){Object.defineProperty(e,"__esModule",{value:!0})},98:function(c,e,g){Object.defineProperty(e,"__esModule",{value:!0});e.FeaturesConfigurationHandler=void 0;var d=g(919);c=function(){function c(){this.features=
new Map}return c.prototype.configFeature=function(c){d.Logger.debug("Configuring feature",c);c=Object.assign({},c);if(void 0!==c.initialized)throw new d.PZError("Feature configuration must have 'initialized' set to undefined.");c.initialized=!0;var e=this.features.get(c.key);return e?(e.config=c,this.notifyListeners(c.key),!0):(this.createFeatureEntry(c.key,c),this.notifyListeners(c.key),!1)},c.prototype.configFeatures=function(c){var e=this;d.Logger.debug("Configuring features",c);var f=!1;return c.forEach(function(c){e.configFeature(c)&&
(f=!0)}),f},c.prototype.addConfigurationListener=function(c,e){d.Logger.debug("Adding listener to:",c);var f=this.features.get(c);return f?(f.listeners.push(e),!!f.config.initialized&&(e(f.config),!0)):(this.createFeatureEntry(c,{key:c,initialized:!1},[e]),!1)},c.prototype.removeListener=function(c,e){d.Logger.debug("Removing listener to:",c);if(c=this.features.get(c))if(e=c.listeners.indexOf(e),-1!==e)return c.listeners.splice(e,1),!0;return!1},c.prototype.getConfiguration=function(c,e){d.Logger.debug("Getting config:",
c);var f=this.features.get(c);return f?(e&&f.listeners.push(e),d.Logger.debug("Obtained config:",f.config),f.config):(this.createFeatureEntry(c,{key:c,initialized:!1},e?[e]:[]),null)},c.prototype.notifyListeners=function(c){d.Logger.debug("Notifiying listeners:",c);var e=this.features.get(c);e&&e.listeners.forEach(function(c){return c(e.config)})},c.prototype.createFeatureEntry=function(c,d,e){void 0===e&&(e=[]);this.features.set(c,{config:d,listeners:e})},c}();e.FeaturesConfigurationHandler=c},156:function(c,
e,g){Object.defineProperty(e,"__esModule",{value:!0});e.EventsHandler=void 0;var d=g(919),f=g(758);c=function(){function c(){this.events=new Map}return c.prototype.getKeys=function(){return f.FlagsHandler.isLogDebugEnabled()?Array.from(this.events.keys()):[]},c.prototype.addHandler=function(c,e){d.Logger.debug("Adding handler for ".concat(c));this.events.has(c)||this.events.set(c,[]);this.events.get(c).push(e)},c.prototype.removeHandler=function(c,e){if(d.Logger.debug("Removing handler for ".concat(c)),
this.events.has(c)){var f=this.events.get(c).filter(function(c){return c!==e});return this.events.set(c,f),!0}return!1},c.prototype.emit=function(c,e){d.Logger.debug("Emmited ".concat(c," with data:"),e);this.events.has(c)?this.events.get(c).forEach(function(d){return d(e,new CustomEvent(c,{detail:e}))}):this.events.set(c,[])},c}();e.EventsHandler=c},251:function(c,e,g){var d=this&&this.__awaiter||function(c,d,e,f){return new (e||(e=Promise))(function(g,h){function p(c){try{k(f.next(c))}catch(I){h(I)}}
function l(c){try{k(f.throw(c))}catch(I){h(I)}}function k(c){var d;c.done?g(c.value):(d=c.value,d instanceof e?d:new e(function(c){c(d)})).then(p,l)}k((f=f.apply(c,d||[])).next())})},f=this&&this.__generator||function(c,d){function e(e){return function(k){return function(e){if(f)throw new TypeError("Generator is already executing.");for(;l&&(l=0,e[0]&&(p=0)),p;)try{if(f=1,g&&(h=2&e[0]?g.return:e[0]?g.throw||((h=g.return)&&h.call(g),0):g.next)&&!(h=h.call(g,e[1])).done)return h;switch(g=0,h&&(e=[2&
e[0],h.value]),e[0]){case 0:case 1:h=e;break;case 4:return p.label++,{value:e[1],done:!1};case 5:p.label++;g=e[1];e=[0];continue;case 7:e=p.ops.pop();p.trys.pop();continue;default:if(!(h=p.trys,(h=0<h.length&&h[h.length-1])||6!==e[0]&&2!==e[0])){p=0;continue}if(3===e[0]&&(!h||e[1]>h[0]&&e[1]<h[3]))p.label=e[1];else if(6===e[0]&&p.label<h[1])p.label=h[1],h=e;else if(h&&p.label<h[2])p.label=h[2],p.ops.push(e);else{h[2]&&p.ops.pop();p.trys.pop();continue}}e=d.call(c,p)}catch(K){e=[6,K],g=0}finally{f=
h=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,k])}}var f,g,h,p={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);w.initSymbol();w.initSymbol();w.initSymbolIterator();return l.next=e(0),l.throw=e(1),l.return=e(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l};Object.defineProperty(e,"__esModule",{value:!0});e.ScriptsHandler=void 0;var h=g(919),t=g(979),
n=g(758);c=function(){function c(){this.itemsMap=new Map;this.loadPromises=new Map;this.preloadPromises=new Map}return c.prototype.set=function(c,d){return this.itemsMap.has(c)?(h.Logger.warn("".concat(this.getItemType()," ").concat(c," already existing, skipping")),!1):(this.itemsMap.set(c,d),!0)},c.prototype.loadScript=function(c,e){return d(this,void 0,void 0,function(){var g,k=this;return f(this,function(q){switch(q.label){case 0:if(this.loadPromises.has(c))return h.Logger.debug("Waiting for existing load of ".concat(this.getItemType(),
" ").concat(c)),[2,this.loadPromises.get(c)];g=new Promise(function(g,l){return d(k,void 0,void 0,function(){var d,p,k,q,u,v;return f(this,function(f){switch(f.label){case 0:return d=null!==(v=null==e?void 0:e.environment)&&void 0!==v?v:n.FlagsHandler.getEnvironment(),h.Logger.debug("Loading ".concat(this.getItemType()," ").concat(c," from environment ").concat(d)),(p=this.itemsMap.get(c))?(h.Logger.debug("".concat(this.getItemType()," ").concat(c," obtained from cache.")),g(p),[3,6]):[3,1];case 1:k=
this.getScriptPath(c,d),h.Logger.debug("Getting ".concat(k)),f.label=2;case 2:return f.trys.push([2,4,,5]),[4,t.ScriptLoader.loadScript(k)];case 3:return f.sent(),[3,5];case 4:return q=f.sent(),h.Logger.error("Error loading ".concat(c),q),l(q),[2];case 5:(u=this.itemsMap.get(c))?(h.Logger.debug("".concat(this.getItemType()," ").concat(c," loaded.")),(null==e?void 0:e.onLoad)&&e.onLoad(u),g(u)):l(new h.PZError("Function for ".concat(this.getItemType()," ").concat(c," not found after script load."))),
f.label=6;case 6:return[2]}})})});this.loadPromises.set(c,g);q.label=1;case 1:return q.trys.push([1,,3,4]),[4,g];case 2:return[2,q.sent()];case 3:return this.loadPromises.delete(c),[7];case 4:return[2]}})})},c.prototype.preloadScript=function(c,e){return d(this,void 0,void 0,function(){var g,k=this;return f(this,function(q){switch(q.label){case 0:if(this.preloadPromises.has(c))return h.Logger.debug("Waiting for existing preload of ".concat(this.getItemType()," ").concat(c)),[2,this.preloadPromises.get(c)];
g=new Promise(function(g,l){return d(k,void 0,void 0,function(){var d,p,k,q,u;return f(this,function(f){switch(f.label){case 0:d=null!==(u=null==e?void 0:e.environment)&&void 0!==u?u:n.FlagsHandler.getEnvironment(),h.Logger.debug("Preloading ".concat(this.getItemType()," ").concat(c," from environment ").concat(d)),p=this.getScriptPath(c,d),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,t.ScriptLoader.preloadScript(p)];case 2:return k=f.sent(),g(k),[3,4];case 3:return q=f.sent(),h.Logger.error("Error preloading ".concat(p),
q),l(q),[3,4];case 4:return[2]}})})});this.preloadPromises.set(c,g);q.label=1;case 1:return q.trys.push([1,,3,4]),[4,g];case 2:return[2,q.sent()];case 3:return this.preloadPromises.delete(c),[7];case 4:return[2]}})})},c}();e.ScriptsHandler=c},330:function(c){c.exports={rE:"1.0.2"}},347:function(c,e){var d,f=this&&this.__extends||(d=function(c,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,
e)&&(c[e]=d[e])},d(c,e)},function(c,e){function f(){this.constructor=c}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");d(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)});Object.defineProperty(e,"__esModule",{value:!0});e.PZError=void 0;c=function(c){function d(e){e=c.call(this,e)||this;return e.name="PZError",Object.setPrototypeOf(e,d.prototype),e}return f(d,c),d}(Error);e.PZError=c},391:function(c,
e){Object.defineProperty(e,"__esModule",{value:!0})},449:function(c,e,g){Object.defineProperty(e,"__esModule",{value:!0});e.Logger=void 0;e.initializeDcsgPz=function(){var c=window;if(void 0!==c&&void 0===c.dcsgPz){e.Logger.info("PZ Web Core ".concat(t," initializing window.dcsgPz"));var g=new h.Orchestrator,k={coreVersion:t,features:{configFeature:g.configFeature.bind(g),configFeatures:g.configFeatures.bind(g),getConfig:g.getConfiguration.bind(g),addConfigChangeHandler:g.addConfigChangeHandler.bind(g),
removeConfigChangeHandler:g.removeConfigChangeHandler.bind(g),setFeature:g.setFeature.bind(g),runFeature:g.runFeature.bind(g),runFeatures:g.runFeatures.bind(g),preloadFeature:g.preloadFeature.bind(g)},logger:f.PZLogger,services:{loadService:g.loadService.bind(g),preloadService:g.preloadService.bind(g),setService:g.setService.bind(g)},events:{subscribe:g.addEventListener.bind(g),unsubscribe:g.removeEventListener.bind(g),dispatch:g.dispatchEvent.bind(g),getKeys:g.getEventKeys.bind(g)},data:{addDataHandler:g.addDataHandler.bind(g),
removeDataHandler:g.removeDataHandler.bind(g),getValue:g.getValue.bind(g),setValue:g.setValue.bind(g),getKeys:g.getDataKeys.bind(g)},featuresHandler:{getFeature:function(d,f){return e.Logger.warn("window.dcsgPz.featuresHandler is deprecated, update to window.dcsgPz.features.getConfig"),c.dcsgPz.features.getConfig(d,f)}},configFeature:function(d){return e.Logger.warn("window.dcsgPz.configFeature is deprecated, update to window.dcsgPz.features.configFeature"),c.dcsgPz.features.configFeature(d)},configFeatures:function(d){return e.Logger.warn("window.dcsgPz.configFeatures is deprecated, update to window.dcsgPz.features.configFeatures"),
c.dcsgPz.features.configFeatures(d)}};c.dcsgPz=k;d.FlagsHandler.init();e.Logger.info("PZ Web Core ".concat(t," initialized"));g.loadService("CoreService")}};var d=g(85),f=g(657),h=g(992),t=g(330).rE;e.Logger=new f.PZLogger("Core")},455:function(c,e){Object.defineProperty(e,"__esModule",{value:!0})},479:function(c,e){Object.defineProperty(e,"__esModule",{value:!0})},483:function(c,e,g){var d=this&&this.__createBinding||(Object.create?function(c,d,e,f){void 0===f&&(f=e);var g=Object.getOwnPropertyDescriptor(d,
e);g&&("get"in g?d.__esModule:!g.writable&&!g.configurable)||(g={enumerable:!0,get:function(){return d[e]}});Object.defineProperty(c,f,g)}:function(c,d,e,f){void 0===f&&(f=e);c[f]=d[e]});c=this&&this.__exportStar||function(c,e){for(var f in c)"default"===f||Object.prototype.hasOwnProperty.call(e,f)||d(e,c,f)};Object.defineProperty(e,"__esModule",{value:!0});c(g(98),e);c(g(934),e);c(g(707),e);c(g(156),e);c(g(758),e);c(g(839),e)},591:function(c,e){Object.defineProperty(e,"__esModule",{value:!0})},606:function(c,
e){Object.defineProperty(e,"__esModule",{value:!0});e.StorageType=void 0;c=e.StorageType={};c.LOCAL_STORAGE="localStorage";c.SESSION_STORAGE="sessionStorage";c.MEMORY="memory"},657:function(c,e,g){var d=this&&this.__spreadArray||function(c,d,e){if(e||2===arguments.length)for(var f,g=0,h=d.length;g<h;g++)!f&&g in d||(f||(f=Array.prototype.slice.call(d,0,g)),f[g]=d[g]);return c.concat(f||Array.prototype.slice.call(d))};Object.defineProperty(e,"__esModule",{value:!0});e.PZLogger=e.LogStyles=void 0;var f=
g(483);e.LogStyles={error:"color: red; background: #ffebee; font-weight: bold;",warn:"color: orange; background: #fff3e0; font-weight: bold;",info:"color: blue; background: #e0f7fa; font-weight: bold;",log:"color: #9b59b6; background:rgb(247, 222, 239); font-weight: bold;",debug:"color:rgb(153, 151, 151); border-radius: 3px;",trace:"color:rgb(134, 146, 182); border-radius: 3px;"};c=function(){function c(c){var d=this;this.logLevelHeaders=new Map;this.scriptId=c;var f=Math.max.apply(Math,Object.keys(e.LogStyles).map(function(c){return c.length}));
Object.keys(e.LogStyles).forEach(function(c){var e=c.toUpperCase().padEnd(f," ");d.logLevelHeaders.set(c,e)})}return c.prototype.formatPrefix=function(c){return["%c[PZ][".concat(this.logLevelHeaders.get(c),"][").concat(this.scriptId,"]"),e.LogStyles[c]]},c.prototype.getCallerInfo=function(){if(!f.FlagsHandler.isLogDebugEnabled())return"";var c=Error().stack;return c?(c=c.split("\n"),c[3]?"\n"+c[3].trim():""):""},c.prototype.customLog=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];
console.log.apply(console,c)},c.prototype.log=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];console.log.apply(console,d(d(d([],this.formatPrefix("log"),!1),c,!1),[this.getCallerInfo()],!1))},c.prototype.info=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];console.info.apply(console,d(d(d([],this.formatPrefix("info"),!1),c,!1),[this.getCallerInfo()],!1))},c.prototype.trace=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];f.FlagsHandler.isLogDebugEnabled()&&
console.trace.apply(console,d(d([],this.formatPrefix("trace"),!1),c,!1))},c.prototype.debug=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];f.FlagsHandler.isLogDebugEnabled()&&console.debug.apply(console,d(d(d([],this.formatPrefix("debug"),!1),c,!1),[this.getCallerInfo()],!1))},c.prototype.warn=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];console.warn.apply(console,d(d(d([],this.formatPrefix("warn"),!1),c,!1),[this.getCallerInfo()],!1))},c.prototype.error=
function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];console.error.apply(console,d(d(d([],this.formatPrefix("error"),!1),c,!1),[this.getCallerInfo()],!1))},c}();e.PZLogger=c},671:function(c,e,g){var d=this&&this.__createBinding||(Object.create?function(c,d,e,f){void 0===f&&(f=e);var g=Object.getOwnPropertyDescriptor(d,e);g&&("get"in g?d.__esModule:!g.writable&&!g.configurable)||(g={enumerable:!0,get:function(){return d[e]}});Object.defineProperty(c,f,g)}:function(c,d,e,f){void 0===
f&&(f=e);c[f]=d[e]});c=this&&this.__exportStar||function(c,e){for(var f in c)"default"===f||Object.prototype.hasOwnProperty.call(e,f)||d(e,c,f)};Object.defineProperty(e,"__esModule",{value:!0});c(g(455),e);c(g(479),e);c(g(59),e);c(g(606),e);c(g(391),e)},707:function(c,e,g){var d,f=this&&this.__extends||(d=function(c,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(c[e]=d[e])},d(c,
e)},function(c,e){function f(){this.constructor=c}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");d(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}),h=this&&this.__awaiter||function(c,d,e,f){return new (e||(e=Promise))(function(g,p){function l(c){try{k(f.next(c))}catch(K){p(K)}}function h(c){try{k(f.throw(c))}catch(K){p(K)}}function k(c){var d;c.done?g(c.value):(d=c.value,d instanceof e?d:new e(function(c){c(d)})).then(l,
h)}k((f=f.apply(c,d||[])).next())})},n=this&&this.__generator||function(c,d){function e(e){return function(k){return function(e){if(f)throw new TypeError("Generator is already executing.");for(;h&&(h=0,e[0]&&(l=0)),l;)try{if(f=1,g&&(p=2&e[0]?g.return:e[0]?g.throw||((p=g.return)&&p.call(g),0):g.next)&&!(p=p.call(g,e[1])).done)return p;switch(g=0,p&&(e=[2&e[0],p.value]),e[0]){case 0:case 1:p=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++;g=e[1];e=[0];continue;case 7:e=l.ops.pop();
l.trys.pop();continue;default:if(!(p=l.trys,(p=0<p.length&&p[p.length-1])||6!==e[0]&&2!==e[0])){l=0;continue}if(3===e[0]&&(!p||e[1]>p[0]&&e[1]<p[3]))l.label=e[1];else if(6===e[0]&&l.label<p[1])l.label=p[1],p=e;else if(p&&l.label<p[2])l.label=p[2],l.ops.push(e);else{p[2]&&l.ops.pop();l.trys.pop();continue}}e=d.call(c,l)}catch(J){e=[6,J],g=0}finally{f=p=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,k])}}var f,g,p,l={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],
ops:[]},h=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);w.initSymbol();w.initSymbol();w.initSymbolIterator();return h.next=e(0),h.throw=e(1),h.return=e(2),"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),h};Object.defineProperty(e,"__esModule",{value:!0});e.ServicesHandler=void 0;var u=g(919),v=g(758);c=function(c){function d(){return null!==c&&c.apply(this,arguments)||this}return f(d,c),d.prototype.getItemType=function(){return"Service"},d.prototype.getScriptPath=
function(c,d){return"production"===d?"/pz/assets/js/services/".concat(c).concat(v.FlagsHandler.isDebugSourcesEnabled()?"":".min",".js"):"/pz/".concat(d,"/assets/js/services/").concat(c).concat(v.FlagsHandler.isDebugSourcesEnabled()?"":".min",".js")},d.prototype.loadService=function(c,d){return h(this,void 0,void 0,function(){var e=this;return n(this,function(){return[2,new Promise(function(f,g){return h(e,void 0,void 0,function(){var e,l,h;return n(this,function(p){switch(p.label){case 0:e=function(d){d.init();
u.Logger.info("Service ".concat(c," initialized"))},p.label=1;case 1:return p.trys.push([1,3,,4]),u.Logger.info("Loading service: ".concat(c)),[4,this.loadScript(c,{environment:null==d?void 0:d.environment,onLoad:e})];case 2:return l=p.sent(),u.Logger.info("Loaded service: ".concat(c)),(null==d?void 0:d.forceInit)&&(u.Logger.debug("Forcing init service: ".concat(c)),e(l)),f(l),[3,4];case 3:return h=p.sent(),u.Logger.error("Error while initializing service ".concat(c),h),g(h),[3,4];case 4:return[2]}})})})]})})},
d.prototype.preloadService=function(c){return h(this,void 0,void 0,function(){var d=this;return n(this,function(){return[2,new Promise(function(e,f){return h(d,void 0,void 0,function(){var d,g;return n(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),u.Logger.info("Preloading service: ".concat(c)),[4,this.preloadScript(c,{environment:v.FlagsHandler.getEnvironment()})];case 1:return d=l.sent(),u.Logger.info("Preloaded service: ".concat(c)),e(d),[3,3];case 2:return g=l.sent(),u.Logger.error("Error while preloading service ".concat(c),
g),f(g),[3,3];case 3:return[2]}})})})]})})},d}(g(251).ScriptsHandler);e.ServicesHandler=c},757:function(c,e){Object.defineProperty(e,"__esModule",{value:!0})},758:function(c,e,g){Object.defineProperty(e,"__esModule",{value:!0});e.FlagsHandler=void 0;var d=g(919);c=function(){function c(){}return c.init=function(){var c=new URLSearchParams(window.location.search);this.setBooleanFlag("PZDebugLog",c);this.setBooleanFlag("PZDebugSources",c);this.setStringFlag("PZEnvironment",c)},c.setBooleanFlag=function(c,
d){d=d.get(c);d="false"!==d&&""!==d&&("true"===d||"true"===sessionStorage.getItem(c)||null);this.logFlagValue(c,d);d?(sessionStorage.setItem(c,String(d)),this.flags.set(c,!0)):(sessionStorage.removeItem(c),this.flags.delete(c))},c.setStringFlag=function(c,d){var e;d=d.get(c);var f=sessionStorage.getItem(c);d=null!==(e=null!=d?d:f)&&void 0!==e?e:"";this.logFlagValue(c,d);""!==d?(sessionStorage.setItem(c,String(d)),this.flags.set(c,d)):(sessionStorage.removeItem(c),this.flags.delete(c))},c.logFlagValue=
function(c,e){null===e||""===e?d.Logger.info("Defaulting flag: ".concat(c)):d.Logger.info("Flag: ".concat(c,"=").concat(e))},c.getEnvironment=function(){var c;return null!==(c=this.flags.get("PZEnvironment"))&&void 0!==c?c:"production"},c.isLogDebugEnabled=function(){var c;return null!==(c=this.flags.get("PZDebugLog"))&&void 0!==c&&c},c.isDebugSourcesEnabled=function(){var c;return null!==(c=this.flags.get("PZDebugSources"))&&void 0!==c&&c},c.flags=new Map,c}();e.FlagsHandler=c},839:function(c,e,
g){var d,f=this&&this.__extends||(d=function(c,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(c[e]=d[e])},d(c,e)},function(c,e){function f(){this.constructor=c}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");d(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)});Object.defineProperty(e,
"__esModule",{value:!0});e.DataHandler=void 0;var h=g(919),n=g(606);c=g(156);var u=g(758);g=function(c){function d(){var d=null!==c&&c.apply(this,arguments)||this;return d.memoryStore=new Map,d.PZ_DATA_KEY="PZData",d}return f(d,c),d.prototype.getKeys=function(){return u.FlagsHandler.isLogDebugEnabled()?Array.from(this.memoryStore.keys()):[]},d.prototype.setValue=function(c,d,e){switch(this.memoryStore.delete(c),this.removeLocal(c),this.removeSession(c),this.memoryStore.set(c,d),null==e?void 0:e.storage){case n.StorageType.MEMORY:break;
case n.StorageType.LOCAL_STORAGE:this.persistLocal(c,d);break;case n.StorageType.SESSION_STORAGE:this.persistSession(c,d);break;default:h.Logger.debug("No valid storage defined for ".concat(c,", defaulting to sessionStorage")),this.persistSession(c,d)}this.emit(c,d)},d.prototype.on=function(c,d){this.addHandler(c,d);var e=this.getValue(c);e&&d(e,new CustomEvent(c,{detail:e}))},d.prototype.init=function(){var c,d,e=this;h.Logger.info("DataHandler: restoring");var f=JSON.parse(null!==(c=localStorage.getItem(this.PZ_DATA_KEY))&&
void 0!==c?c:"{}");localStorage.setItem(this.PZ_DATA_KEY,"{}");Object.entries(f).forEach(function(c){e.setValue(c[0],c[1],{storage:n.StorageType.LOCAL_STORAGE})});c=JSON.parse(null!==(d=sessionStorage.getItem(this.PZ_DATA_KEY))&&void 0!==d?d:"{}");sessionStorage.setItem(this.PZ_DATA_KEY,"{}");Object.entries(c).forEach(function(c){e.setValue(c[0],c[1],{storage:n.StorageType.SESSION_STORAGE})});h.Logger.info("DataHandler: restored")},d.prototype.getValue=function(c){var d;return null!==(d=this.memoryStore.get(c))&&
void 0!==d?d:null},d.prototype.persistLocal=function(c,d){var e,f=JSON.parse(null!==(e=localStorage.getItem(this.PZ_DATA_KEY))&&void 0!==e?e:"{}");f[c]=d;localStorage.setItem(this.PZ_DATA_KEY,JSON.stringify(f))},d.prototype.persistSession=function(c,d){var e,f=JSON.parse(null!==(e=sessionStorage.getItem(this.PZ_DATA_KEY))&&void 0!==e?e:"{}");f[c]=d;sessionStorage.setItem(this.PZ_DATA_KEY,JSON.stringify(f))},d.prototype.removeLocal=function(c){var d,e=JSON.parse(null!==(d=localStorage.getItem(this.PZ_DATA_KEY))&&
void 0!==d?d:"{}");delete e[c];localStorage.setItem(this.PZ_DATA_KEY,JSON.stringify(e))},d.prototype.removeSession=function(c){var d,e=JSON.parse(null!==(d=sessionStorage.getItem(this.PZ_DATA_KEY))&&void 0!==d?d:"{}");delete e[c];sessionStorage.setItem(this.PZ_DATA_KEY,JSON.stringify(e))},d}(c.EventsHandler);e.DataHandler=g},870:function(c,e){Object.defineProperty(e,"__esModule",{value:!0})},872:function(c,e){Object.defineProperty(e,"__esModule",{value:!0})},919:function(c,e,g){var d=this&&this.__createBinding||
(Object.create?function(c,d,e,f){void 0===f&&(f=e);var g=Object.getOwnPropertyDescriptor(d,e);g&&("get"in g?d.__esModule:!g.writable&&!g.configurable)||(g={enumerable:!0,get:function(){return d[e]}});Object.defineProperty(c,f,g)}:function(c,d,e,f){void 0===f&&(f=e);c[f]=d[e]});c=this&&this.__exportStar||function(c,e){for(var f in c)"default"===f||Object.prototype.hasOwnProperty.call(e,f)||d(e,c,f)};Object.defineProperty(e,"__esModule",{value:!0});c(g(347),e);c(g(657),e);c(g(449),e)},934:function(c,
e,g){var d,f=this&&this.__extends||(d=function(c,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(c[e]=d[e])},d(c,e)},function(c,e){function f(){this.constructor=c}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");d(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}),h=this&&this.__awaiter||
function(c,d,e,f){return new (e||(e=Promise))(function(g,p){function l(c){try{k(f.next(c))}catch(K){p(K)}}function h(c){try{k(f.throw(c))}catch(K){p(K)}}function k(c){var d;c.done?g(c.value):(d=c.value,d instanceof e?d:new e(function(c){c(d)})).then(l,h)}k((f=f.apply(c,d||[])).next())})},n=this&&this.__generator||function(c,d){function e(e){return function(k){return function(e){if(f)throw new TypeError("Generator is already executing.");for(;h&&(h=0,e[0]&&(l=0)),l;)try{if(f=1,g&&(p=2&e[0]?g.return:
e[0]?g.throw||((p=g.return)&&p.call(g),0):g.next)&&!(p=p.call(g,e[1])).done)return p;switch(g=0,p&&(e=[2&e[0],p.value]),e[0]){case 0:case 1:p=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++;g=e[1];e=[0];continue;case 7:e=l.ops.pop();l.trys.pop();continue;default:if(!(p=l.trys,(p=0<p.length&&p[p.length-1])||6!==e[0]&&2!==e[0])){l=0;continue}if(3===e[0]&&(!p||e[1]>p[0]&&e[1]<p[3]))l.label=e[1];else if(6===e[0]&&l.label<p[1])l.label=p[1],p=e;else if(p&&l.label<p[2])l.label=p[2],
l.ops.push(e);else{p[2]&&l.ops.pop();l.trys.pop();continue}}e=d.call(c,l)}catch(J){e=[6,J],g=0}finally{f=p=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,k])}}var f,g,p,l={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]},h=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);w.initSymbol();w.initSymbol();w.initSymbolIterator();return h.next=e(0),h.throw=e(1),h.return=e(2),"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),
h};Object.defineProperty(e,"__esModule",{value:!0});e.FeaturesHandler=void 0;c=g(251);var u=g(758),v=g(919);g=function(c){function d(){return null!==c&&c.apply(this,arguments)||this}return f(d,c),d.prototype.getItemType=function(){return"Feature"},d.prototype.getScriptPath=function(c,d){return"production"===d?"/pz/assets/js/features/".concat(c).concat(u.FlagsHandler.isDebugSourcesEnabled()?"":".min",".js"):"/pz/".concat(d,"/assets/js/features/").concat(c).concat(u.FlagsHandler.isDebugSourcesEnabled()?
"":".min",".js")},d.prototype.runFeature=function(c){return h(this,void 0,void 0,function(){var d,e=this;return n(this,function(){return!1===c.enabled?(v.Logger.log("Skipping disabled feature ".concat(c.key),c),[2,Promise.resolve()]):[2,this.loadScript(c.key,{environment:null===(d=c.metadata)||void 0===d?void 0:d.environment}).then(function(d){return h(e,void 0,void 0,function(){var e;return n(this,function(f){switch(f.label){case 0:v.Logger.info("Loaded feature ".concat(c.key,". Running with config:"),
c),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,d(c)];case 2:return f.sent(),v.Logger.info("Feature started succesfully ".concat(c.key)),[2,Promise.resolve()];case 3:return e=f.sent(),v.Logger.error("Error while running feature ".concat(c.key),e),[3,4];case 4:return[2]}})})}).catch(function(){v.Logger.error("Error trying to run feature ".concat(c.key," because wasn't loaded"))})]})})},d.prototype.runFeatures=function(c){return h(this,void 0,void 0,function(){var d,e,f,g;return n(this,function(l){switch(l.label){case 0:d=
0,e=c,l.label=1;case 1:if(!(d<e.length))return[3,6];f=e[d];l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.runFeature(f)];case 3:return l.sent(),[3,5];case 4:return g=l.sent(),v.Logger.error("Error while running feature ".concat(f.key),g),[3,5];case 5:return d++,[3,1];case 6:return[2]}})})},d.prototype.preloadFeature=function(c){return h(this,void 0,void 0,function(){var d=this;return n(this,function(){return[2,new Promise(function(e,f){return h(d,void 0,void 0,function(){var d,g;return n(this,
function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),v.Logger.info("Preloading feature: ".concat(c)),[4,this.preloadScript(c,{environment:u.FlagsHandler.getEnvironment()})];case 1:return d=l.sent(),v.Logger.info("Preloaded feature: ".concat(c)),e(d),[3,3];case 2:return g=l.sent(),v.Logger.error("Error while preloading feature ".concat(c),g),f(g),[3,3];case 3:return[2]}})})})]})})},d}(c.ScriptsHandler);e.FeaturesHandler=g},962:function(c,e,g){var d=this&&this.__createBinding||(Object.create?
function(c,d,e,f){void 0===f&&(f=e);var g=Object.getOwnPropertyDescriptor(d,e);g&&("get"in g?d.__esModule:!g.writable&&!g.configurable)||(g={enumerable:!0,get:function(){return d[e]}});Object.defineProperty(c,f,g)}:function(c,d,e,f){void 0===f&&(f=e);c[f]=d[e]});c=this&&this.__exportStar||function(c,e){for(var f in c)"default"===f||Object.prototype.hasOwnProperty.call(e,f)||d(e,c,f)};Object.defineProperty(e,"__esModule",{value:!0});c(g(992),e)},979:function(c,e,g){var d=this&&this.__awaiter||function(c,
d,e,f){return new (e||(e=Promise))(function(g,h){function k(c){try{p(f.next(c))}catch(G){h(G)}}function n(c){try{p(f.throw(c))}catch(G){h(G)}}function p(c){var d;c.done?g(c.value):(d=c.value,d instanceof e?d:new e(function(c){c(d)})).then(k,n)}p((f=f.apply(c,d||[])).next())})},f=this&&this.__generator||function(c,d){function e(e){return function(l){return function(e){if(f)throw new TypeError("Generator is already executing.");for(;n&&(n=0,e[0]&&(k=0)),k;)try{if(f=1,g&&(h=2&e[0]?g.return:e[0]?g.throw||
((h=g.return)&&h.call(g),0):g.next)&&!(h=h.call(g,e[1])).done)return h;switch(g=0,h&&(e=[2&e[0],h.value]),e[0]){case 0:case 1:h=e;break;case 4:return k.label++,{value:e[1],done:!1};case 5:k.label++;g=e[1];e=[0];continue;case 7:e=k.ops.pop();k.trys.pop();continue;default:if(!(h=k.trys,(h=0<h.length&&h[h.length-1])||6!==e[0]&&2!==e[0])){k=0;continue}if(3===e[0]&&(!h||e[1]>h[0]&&e[1]<h[3]))k.label=e[1];else if(6===e[0]&&k.label<h[1])k.label=h[1],h=e;else if(h&&k.label<h[2])k.label=h[2],k.ops.push(e);
else{h[2]&&k.ops.pop();k.trys.pop();continue}}e=d.call(c,k)}catch(F){e=[6,F],g=0}finally{f=h=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,l])}}var f,g,h,k={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);w.initSymbol();w.initSymbol();w.initSymbolIterator();return n.next=e(0),n.throw=e(1),n.return=e(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n};Object.defineProperty(e,
"__esModule",{value:!0});e.ScriptLoader=void 0;var h=g(919);c=function(){function c(){}return c.loadScript=function(c){return d(this,void 0,void 0,function(){var d,e=this;return f(this,function(){return this.loadedScripts.has(c)?(h.Logger.debug("".concat(c," already loaded")),[2,!1]):this.pendingLoads.has(c)?(h.Logger.debug("".concat(c," is currently loading")),[2,!1]):(h.Logger.debug("Loading ".concat(c)),d=new Promise(function(d,f){var g=document.createElement("script");g.src=c;g.async=!0;g.onload=
function(){h.Logger.debug("".concat(c," loaded successfully"));e.loadedScripts.add(c);e.pendingLoads.delete(c);d(!0)};g.onerror=function(){e.pendingLoads.delete(c);f(new h.PZError("Failed to load script: ".concat(c)))};document.head.appendChild(g)}),this.pendingLoads.set(c,d),[2,d])})})},c.preloadScript=function(c){return d(this,void 0,void 0,function(){var d,e=this;return f(this,function(){return this.loadedScripts.has(c)?(h.Logger.debug("".concat(c," already loaded")),[2,!1]):this.preloadedScripts.has(c)?
(h.Logger.debug("".concat(c," already preloaded")),[2,!1]):this.pendingPreloads.has(c)?(h.Logger.debug("".concat(c," is currently being preloaded")),[2,!1]):(h.Logger.debug("Preloading ".concat(c)),d=new Promise(function(d,f){var g=document.createElement("link");g.rel="preload";g.href=c;g.as="script";g.onload=function(){h.Logger.debug("".concat(c," preloaded successfully"));e.preloadedScripts.add(c);e.pendingPreloads.delete(c);d(!0)};g.onerror=function(){e.pendingPreloads.delete(c);f(new h.PZError("Failed to preload script: ".concat(c)))};
document.head.appendChild(g)}),this.pendingPreloads.set(c,d),[2,d])})})},c.preloadedScripts=new Set,c.pendingPreloads=new Map,c.loadedScripts=new Set,c.pendingLoads=new Map,c}();e.ScriptLoader=c},992:function(c,e,g){Object.defineProperty(e,"__esModule",{value:!0});e.Orchestrator=void 0;var d=g(483);c=function(){function c(){this.configurationsHandler=new d.FeaturesConfigurationHandler;this.featuresHandler=new d.FeaturesHandler;this.servicesHandler=new d.ServicesHandler;this.dataHandler=new d.DataHandler;
this.dataHandler.init();this.eventsHandler=new d.EventsHandler}return c.prototype.getDataKeys=function(){return this.dataHandler.getKeys()},c.prototype.getEventKeys=function(){return this.eventsHandler.getKeys()},c.prototype.addDataHandler=function(c,d){this.dataHandler.addHandler(c,d)},c.prototype.removeDataHandler=function(c,d){this.dataHandler.removeHandler(c,d)},c.prototype.setValue=function(c,d,e){this.dataHandler.setValue(c,d,e)},c.prototype.getValue=function(c){return this.dataHandler.getValue(c)},
c.prototype.configFeature=function(c){return this.configurationsHandler.configFeature(c)},c.prototype.configFeatures=function(c){return this.configurationsHandler.configFeatures(c)},c.prototype.getConfiguration=function(c,d){return this.configurationsHandler.getConfiguration(c,d)},c.prototype.addConfigChangeHandler=function(c,d){return this.configurationsHandler.addConfigurationListener(c,d)},c.prototype.removeConfigChangeHandler=function(c,d){return this.configurationsHandler.removeListener(c,d)},
c.prototype.setFeature=function(c,d){return this.featuresHandler.set(c,d)},c.prototype.runFeature=function(c){return this.featuresHandler.runFeature(c)},c.prototype.preloadFeature=function(c){return this.featuresHandler.preloadFeature(c)},c.prototype.runFeatures=function(c){return this.featuresHandler.runFeatures(c)},c.prototype.loadService=function(c,d){return this.servicesHandler.loadService(c,d)},c.prototype.preloadService=function(c){return this.servicesHandler.preloadService(c)},c.prototype.setService=
function(c,d){return this.servicesHandler.set(c,d)},c.prototype.addEventListener=function(c,d){return this.eventsHandler.addHandler(c,d)},c.prototype.removeEventListener=function(c,d){return this.eventsHandler.removeHandler(c,d)},c.prototype.dispatchEvent=function(c,d){this.eventsHandler.emit(c,d)},c}();e.Orchestrator=c}},c={};(0,e(85).initializeDcsgPz)()})()}catch(e){_dsgTag.HelperFunctions.DebugLog("Error initializing Target configuration functions",2)}_dsgTag.HelperFunctions.DebugTimer("Target Config Function Done");_dsgTag.FunctionRepository.SetupAdobeAnalyticsFunctions=function(){s.SetAbort=function(c){s.abort=s.abort||c};s.getReferringInternalSite=function(){return null!==(b=s._internalSitesRegEx.exec(document.referrer))?b[0]:""};s.preTrackCallbackList=[];s.processPreTrackCallbacks=function(){for(var c=0;c<s.preTrackCallbackList.length;c++)try{s.preTrackCallbackList[c]()}catch(d){_dsgTag.HelperFunctions.DebugLog("Error handling pre-track callbacks: "+d.message,!0)}s.preTrackCallbackList=[]};s.postTrackCallbackList=
[];s.processPostTrackCallbacks=function(c){for(var d=0;d<s.postTrackCallbackList.length;d++)try{s.postTrackCallbackList[d](c)}catch(f){_dsgTag.HelperFunctions.DebugLog("Error handling post-track callbacks: "+f.message,!0)}s.postTrackCallbackList=[]};s.dsgPageNameLookup=function(){if("undefined"!==typeof s.pageNamingMap){var c=window.location.href.toLowerCase();for(key in s.pageNamingMap)if(-1<c.indexOf(key))return{name:_dsgTag.currentWebsite.Abbreviation+": "+s.pageNamingMap[key].n,type:s.pageNamingMap[key].t||
s.pageNamingMap[key].n.split(":")[0]}}};s.pageNamingMap={"/myaccount/settings":{n:"My Account: Account Settings"},"/myaccount/accountsummary":{n:"My Account: Summary"},"/myaccount/addresses":{n:"My Account: Addresses"},"/myaccount/athletesettings":{n:"My Account: Settings"},"/myaccount/orderdetail":{n:"My Account: Order Info: Order Details"},"/myaccount/orders":{n:"My Account: Purchase History"},"/myaccount/personalinformation":{n:"My Account: Personal Information"},"/myaccount/preferences":{n:"My Account: Preference Center"},
"/myaccount/purchases":{n:"My Account: Purchase History"},"/myaccount/reservations":{n:"My Account: Reservations"},"/myaccount/rewards":{n:"My Account: My Rewards"},"/myaccount/scorecard":{n:"My Account: ScoreCard"},"/completeprofile":{n:"My Account: Account Creation Complete Profile"},"/trackorder":{n:"Help Desk: Track Order"}};s.fulfillmentMethodConstants={Standard:{name:"Ship to Customer",matches:"STH;standard;expedited;express;shipToMe;ship to customer;parcel;large;verylarge".split(";")},BOPIS:{name:"In Store Pickup (BOPIS)",
matches:["BOPIS","In Store Pickup (BOPIS)","In Store Pick Up (BOPIS)","In Store Pickup","Pickup in store"]},BOPL:{name:"Ship to Store",matches:["BOPL","In Store Pickup (BOPL)","Ship to store"]},SameDay:{name:"Same Day Fulfillment",matches:["SAMEDAY"]}};s.DetermineFulfillmentMethod=function(c){for(key in s.fulfillmentMethodConstants)for(var d=0;d<s.fulfillmentMethodConstants[key].matches.length;d++)if(c.toLowerCase()==s.fulfillmentMethodConstants[key].matches[d].toLowerCase())return s.fulfillmentMethodConstants[key];
return{name:"Unrecognized: "+c,matches:[]}};s.contentHierProps=function(){var c=s.pageName;if("undefined"!==typeof c){var d="",e="",g="";c=c.split(": ");var k=c.length;2<k&&(d=e=g=c[0]+": "+c[1]);3<k&&(e=g=d+": "+c[2]);4<k&&(g=e+": "+c[3]);s.prop4=e;s.prop5=g}};s.saveValueForNextPageView=function(c,d){var e=JSON.parse(window._dsgTag.HelperFunctions.GetValue("PreviousPageValues"))||{};e[c]=d;_dsgTag.HelperFunctions.SaveValue("PreviousPageValues",JSON.stringify(e));_dsgTag.subdomainChangeLinkClick&&
(_dsgTag.HelperFunctions.WriteCookieValue("PreviousPageValues",JSON.stringify(e),!0),_dsgTag.subdomainChangeLinkClick=!1)};s.processDataEmTag=function(c){if(c=c.getAttribute("data-em"))if(!/^(plp|srlp|productcard|productview|header_search)/i.test(c))s.saveValueForNextPageView("v1",c);else if(/^(plp|srlp)/i.test(c))try{if(c=c.split("_"),2<=c.length&&/\d+/.test(c[1])){var d=document.querySelectorAll("[data-em^='plp_']"),e=parseInt(_dsgTag.pagination)||(_dsgTag.HelperFunctions.GetQueryStringValue("pageNumber")?
parseInt(_dsgTag.HelperFunctions.GetQueryStringValue("pageNumber"))+1:1),g=parseInt(_dsgTag.DataLayer.GetValue("ProductsPerPage"))||d.length,k=((e-1)*g+parseInt(c[1])).toFixed(0),q=s.prop2+":"+e+":"+k;4<=c.length&&"pinned"===c[3].toLowerCase()&&(q+=":pinned");s.saveValueForNextPageView("pageRowCol",q)}}catch(h){_dsgTag.HelperFunctions.DebugLog("Error occured recording page/row/col for v4: "+h.message,!0)}};s.bindDataEmTags=function(){_dsgTag.HelperFunctions.BindDocumentClickEventWithAdditionalSelector("[data-em]",
s.processDataEmTag)};(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?s.bindDataEmTags():_dsgTag.EventHandlers.AddDocumentReadyEventHandler(s.bindDataEmTags);s.logContentsOfSObject=function(c){c=c||window.s;try{var d=_dsgTag.HelperFunctions.GetValue("Debug");if("true"==d||"2"==d||"3"==d){d={};for(var e=c.pev2||c.linkName||"",g=e?c.linkTrackVars.split(","):"pageName purchaseID transactionID server events products prop eVar list campaign pageType".split(" "),k=
0;k<g.length;k++)if(c[g[k]]){var q=c[g[k]];if(e&&"events"===g[k]){q=q.split(",");for(var h=c.linkTrackEvents.split(","),t=0;t<q.length;t++)"undefined"!==typeof Array.prototype.indexOf&&0>h.indexOf(q[t].replace(/=\d+(\.\d+)?/g,""))&&q.splice(t--,1);q=q.join(",")}d[g[k]]=q;if("products"===g[k])for(products=q.split(","),t=0;t<products.length;t++){var u=products[t].split(";"),v=u[1];u[2]&&(d[t+"."+v+".units"]=u[2]);u[3]&&(d[t+"."+v+".revenue"]=u[3]);if(u[4]&&(events=u[4].split("|")))for(var B=0;B<events.length;B++)event=
events[B],d[t+"."+v+".event"+/event(\d+)/g.exec(event)[1]]=/event\d+=(.*)/g.exec(event)[1];if(u[5]&&(evars=u[5].split("|")))for(B=0;B<evars.length;B++)evar=evars[B],d[t+"."+v+".eVar"+/evar(\d+)/g.exec(evar)[1]]=/evar\d+=(.*)/g.exec(evar)[1]}}else if("prop"===g[k]||"eVar"===g[k]||"list"===g[k]){var D={prop:75,eVar:250,list:3};for(t=1;t<=D[g[k]];t++)c[g[k]+t]&&(d[g[k]+t]=c[g[k]+t])}if("undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent&&0<=navigator.userAgent.toLowerCase().indexOf("edge")){g=
[];for(var z in d)g.push({Name:z,Value:d[z]});d=g}if(_dsgTag.subdomainChangeLinkClick)_dsgTag.HelperFunctions.DividerLog("Exit Link pixel fired");else return _dsgTag.HelperFunctions.DividerLog(e?e+" pixel fired":"Page View pixel fired"),console.table(d),d}}catch(A){_dsgTag.HelperFunctions.DebugLog("Failed to log s object.")}};_dsgTag.FunctionRepository.TriggerAnalyticsEventAsPromise=function(c,d,e){return new Promise(function(f,g){"undefined"===typeof _dsgTag.EventHandlers.Events[c]&&g("Event does not exist");
var k=setTimeout(function(){g("Pixel timed out")},e);s.postTrackCallbackList.push(function(){clearTimeout(k);f()});_dsgTag.EventHandlers.TriggerEvent(c,d)})};s.BuldDelmitedKeyValueString=function(c,d,e){e=e?[e]:[];for(var f in c){if(0<=f.indexOf(d)||0<=c[f].toString().indexOf(d))return _dsgTag.HelperFunctions.DebugLog("Key/value pair contains delimiter: "+f+"="+c[f],!0),"";e.push(f+"="+c[f])}return e.join(d)};s.buildProductString=function(c,d,e,g,k){d=d||0;e=e||0;g=g||[];k=k||[];try{d=parseInt(d,
10)}catch(h){d=0}try{e=parseFloat(e,10)}catch(h){e=0}try{var f=/(?:event|evar)(\d+)/;g.sort(function(c,d){return parseInt(f.exec(c)[1])-parseInt(f.exec(d)[1])});k.sort(function(c,d){return parseInt(f.exec(c)[1])-parseInt(f.exec(d)[1])})}catch(h){_dsgTag.HelperFunctions.DebugLog("Error occured while sorting product string variables.",!0)}CONST_FirstDelimiter=",";CONST_SecondDelimiter=";";CONST_ThirdDelimiter="|";replaceRegEx=new RegExp("["+CONST_FirstDelimiter+CONST_SecondDelimiter+CONST_ThirdDelimiter+
"]","g");output="";if(c=c.replace(replaceRegEx,"")){output=[];output.push("");output.push(c);output.push("number"===typeof d&&0<d?d.toFixed(0):"");output.push("number"===typeof e&&0<e?e.toFixed(2):"");c=0;for(d=g.length;c<d;c++)g[c]&&/event\d+(=\d+)?/.test(g[c])?(g[c]=g[c].replace(replaceRegEx,""),s.events=s.apl(s.events,"event"+/event(\d+)/.exec(g[c])[1],",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event"+/event(\d+)/.exec(g[c])[1],",",2)):(g.splice(c,1),c--,d--);output.push(g.join(CONST_ThirdDelimiter));
c=0;for(d=k.length;c<d;c++)k[c]&&/evar\d+=\w+/.test(k[c])?k[c]=k[c].replace(replaceRegEx,""):(k.splice(c,1),c--,d--);output.push(k.join(CONST_ThirdDelimiter));output=output.join(CONST_SecondDelimiter)}return output};_dsgTag.thirdPartyOrderList=[];var e=null;_dsgTag.FunctionRepository.Track3rdPartyOrder=function(c,d){try{window["trackorders_"+d]&&(e&&clearTimeout(e),e=setTimeout(function(){_dsgTag.EventHandlers.TriggerEvent("3rdPartyOrder")},750),0===_dsgTag.thirdPartyOrderList.length&&_dsgTag.thirdPartyOrderList.push(c),
_dsgTag.thirdPartyOrderList.push(d))}catch(f){}};s.marketingChannelsSet=!1;s.populateMarketingChannelVariables=function(){try{if(_dsgTag.pageType.BlockMarketingChannels||"true"==_dsgTag.HelperFunctions.GetQueryStringValue("zoovu"))return!1;var c=_dsgTag.HelperFunctions.GetValue("ChannelInfo")?_dsgTag.HelperFunctions.GetValue("ChannelInfo").split("|")[0]:"",d=c?JSON.parse(c):{},e=c?d.Channel+"|"+d.ReferringDomain.toLowerCase()+"|"+d.Campaign.toLowerCase()+"|"+d.URL:"";d=!1;var g=_dsgTag.HelperFunctions.GetMarketingChannelInfo(),
k="";g.Channel&&_dsgTag.previousLocation&&"DRT"===g.Channel&&window.location.origin+window.location.pathname==_dsgTag.previousLocation.origin+_dsgTag.previousLocation.pathname&&(g={});var q="";if(g.Channel){var h='{"Channel":"'+g.Channel+'","ReferringDomain":"'+g.ReferringDomain+'","Campaign":"'+g.Campaign+'","URL":"'+g.URL+'"}';d=c!=h;g=JSON.parse(h);k=g.Channel+"|"+g.ReferringDomain.toLowerCase()+"|"+g.Campaign.toLowerCase()+"|"+g.URL;q=_dsgTag.HelperFunctions.GetValOnce(h,"ChannelInfo",30)}c=!1;
!s.marketingChannelsSet&&q&&(s.campaign="n/a"!=g.Campaign?g.Campaign:"",s.eVar173=k,s.eVar174="D=v173",_dsgTag.HelperFunctions.GetQueryStringValue("gclid")&&(s.eVar94=_dsgTag.HelperFunctions.GetQueryStringValue("gclid"),s.eVar95="D=v94"),c=!0,s.marketingChannelsSet=!0);s.eVar92=k||e;s.eVar93="D=v92";d&&(s.events=s.apl(s.events,"event101"),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event101",",",2));return c}catch(t){_dsgTag.HelperFunctions.DebugLog("Error occurred setting marketing channel data in AllPageDeployments: "+
t.message,!0)}};s.SetUniversalAnatlyticsValues=function(){try{s.events = s.apl(s.events, "event106"), s.linkTrackVars = s.apl(s.linkTrackVars, "events", ",", 2), s.linkTrackEvents = s.apl(s.linkTrackEvents, "event106", ",", 2);var c=[],d=[];s.pageName&&(s.pageName=s.pageName.replace(/'|"/g,""));c.push({Name:"dsgPageNameLookup",Handler:function(){if(!s.pageName){var c=s.dsgPageNameLookup();c&&(s.pageName=c.name,s.prop2=c.type)}}});c.push({Name:"contentHierProps",Handler:function(){s.contentHierProps()}});c.push({Name:"_previousPageName",Handler:function(){_dsgTag.previousPageValues&&(s.eVar27=_dsgTag.previousPageValues.v27,s.eVar28=_dsgTag.previousPageValues.v28,
s.eVar27||(s.eVar27="Entry Page"),s.eVar28||(s.eVar28="Entry Page"));s.pageName&&s.prop2&&(s.saveValueForNextPageView("v27",s.friendlyPageName||s.pageName),s.saveValueForNextPageView("v28",s.prop2),s.friendlyPageName="")}});c.push({Name:"Queue",Handler:function(){0<=document.title.toLowerCase().indexOf("waiting room")&&(s.pageName=_dsgTag.currentWebsite.Abbreviation+": Special Product Queue",s.prop2="Special Product Queue")}});c.push({Name:"emptyProducts",Handler:function(){s.events&&(s.eVar2||s.eVar3||
s.eVar4||s.eVar63||s.eVar148)&&!s.products&&(s.products=";")}});c.push({Name:"referrer",Handler:function(){document.referrer&&0<=document.referrer.indexOf("krypto=")&&(s.referrer=_dsgTag.HelperFunctions.removeURLParameters(document.referrer,"krypto"))}});c.push({Name:"prop8",Handler:function(){s.eVar2&&(s.prop8="D=v2",s.events=s.apl(s.events,"event2"))}});c.push({Name:"prop22",Handler:function(){s.prop22=config.wasPrerendered.toString()}});c.push({Name:"prop33",Handler:function(){for(var c="",d=["dsg",
"gg","cs"],e=0;e<d.length&&!c;e++)c=_dsgTag.HelperFunctions.GetCookieValue(d[e]+"_perf_analysis");c&&(s.prop33=c)}});c.push({Name:"prop41",Handler:function(){"Y"===_dsgTag.HelperFunctions.GetCookieValue("locationAllowed")?s.prop41="true":s.prop41="false"}});c.push({Name:"prop42",Handler:function(){s.prop42=s.getDaysSinceLastVisit("lv")}});c.push({Name:"prop54",Handler:function(){s.prop54=("undefined"!==typeof siteData).toString()}});c.push({Name:"prop56",Handler:function(){var c=[];c.push(_dsgTag.tagVersion?
_dsgTag.tagVersion:"Unknown");c.push((tagScript=document.querySelector("script[src*='utag.js']"))?tagScript.src.toLowerCase().replace("/utag.js",""):"Unknown");s.prop56=c.join("|")}});c.push({Name:"prop60",Handler:function(){"undefined"!==typeof _dsgTag.OrderHistory&&(s.prop60=_dsgTag.OrderHistory.length.toString())}});c.push({Name:"prop62",Handler:function(){s.prop62=_dsgTag.HelperFunctions.GetCookieValue("NNC")}});c.push({Name:"prop65",Handler:function(){s.prop65=_dsgTag.HelperFunctions.GetCookieValue("yanni")?
"Y":"N"}});c.push({Name:"eVar6",Handler:function(){s.eVar6="+1"}});c.push({Name:"eVar22",Handler:function(){_dsgTag.HelperFunctions.GetQueryStringValue("customerkey")&&(s.eVar22=_dsgTag.CustomerIDs.CustomerKey)}});c.push({Name:"eVar24",Handler:function(){function c(c){dayNames="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ");var d=0===c.getHours()%12?12:c.getHours()%12;d+=":"+(10>c.getMinutes()?"0":"")+c.getMinutes()+" ";d+=12<=c.getHours()?"PM":"AM";return d+="|"+dayNames[c.getDay()]}
var d=_dsgTag.HelperFunctions.GetStandardizedDKSTime();d&&1<d.length&&(s.eVar24=c(d[0]),s.eVar25=c(d[1]))}});c.push({Name:"eVar29",Handler:function(){_dsgTag.HelperFunctions.GetQueryStringValue("AthleteID")&&_dsgTag.CustomerIDs.AthleteID&&(s.eVar29=_dsgTag.CustomerIDs.AthleteID)}});c.push({Name:"eVar36",Handler:function(){_dsgTag.HelperFunctions.GetQueryStringValue("source")&&(s.eVar36=_dsgTag.HelperFunctions.GetQueryStringValue("source"),s.eVar36=s.getValOnce(s.eVar36,"v36",30,"m"),s.eVar36&&(s.events=
s.apl(s.events,"event21")));s.eVar36&&(s.eVar36=s.eVar36.toString().replace(/(^(")|(")$)/g,""))}});c.push({Name:"eVar42",Handler:function(){s.eVar42="D=User-Agent";try{/\t/gi.test(navigator.userAgent)&&(s.eVar42=navigator.userAgent.replace(/\t/gi," "))}catch(k){}}});c.push({Name:"eVar43",Handler:function(){s.eVar43=_dsgTag.CustomerIDs.AdobeMCVID||window.visitor&&Xa.getMarketingCloudVisitorID()}});c.push({Name:"eVar44",Handler:function(){s.eVar44&&(s.prop55="D=v44",s.prop23||("undefined"!==typeof s.pageName&&
0<=s.pageName.indexOf("D=")?s.prop23=s.pageName:s.prop23="D=pageName",s.prop23||(s.prop23=_dsgTag.previousPageValues.v27)),s.prop24||(s.prop24="D=c2"),s.events=s.apl(s.events,"event20"))}});c.push({Name:"eVar45",Handler:function(){s.eVar45=_dsgTag.currentWebsite.Abbreviation}});c.push({Name:"eVar47",Handler:function(){s.eVar47="D=r"}});c.push({Name:"eVar50",Handler:function(){s.eVar50=_dsgTag.customerLane}});c.push({Name:"eVar64",Handler:function(){s.eVar64=_dsgTag.experience}});c.push({Name:"eVar65",
Handler:function(){if(s.eVar1&&0<=s.eVar1.toLowerCase().indexOf("topnav")||s.eVar2)s.eVar2?(s.eVar65='D="Search|"+v2',s.prop63='D="Search|"+v2'):(s.eVar65='D="Top Navigation|"+v1',s.prop63='D="Top Navigation|"+v1',s.events=s.apl(s.events,"event76"))}});c.push({Name:"eVar73",Handler:function(){s.eVar27&&0<=s.eVar27.toLowerCase().indexOf("home page")&&s.eVar1&&(s.eVar73="D=v1",s.prop67="D=v1",s.events=s.apl(s.events,"event77"))}});c.push({Name:"eVar74",Handler:function(){s.pageName&&(s.eVar74="D=pageName")}});
c.push({Name:"eVar75",Handler:function(){0>window.location.search.indexOf("@")&&0>window.location.hash.indexOf("@")?(s.prop75="D=g",s.eVar75="D=g"):(s.prop75="D=v75",s.eVar75="PII-Email")}});c.push({Name:"eVar83",Handler:function(){s.eVar83=_dsgTag.HelperFunctions.GetCookieValue("QuantumMetricUserID")}});c.push({Name:"eVar84",Handler:function(){s.eVar84=_dsgTag.HelperFunctions.GetCookieValue("QuantumMetricSessionID")}});c.push({Name:"eVar130",Handler:function(){s.eVar130=_dsgTag.HelperFunctions.GetCookieValue("_mitata")?
_dsgTag.HelperFunctions.GetCookieValue("_mitata").substring(_dsgTag.HelperFunctions.GetCookieValue("_mitata").length-3):""}});c.push({Name:"eVar132",Handler:function(){s.eVar132=_dsgTag.PageCount}});c.push({Name:"eVar134",Handler:function(){s.eVar134=window.Yo?Yo.rum.get().optState:""}});c.push({Name:"eVar138",Handler:function(){s.eVar138=_dsgTag.HelperFunctions.GetCookieValue("adbinf")||"Cookie not Set"}});c.push({Name:"eVar139",Handler:function(){s.eVar139=_dsgTag.HelperFunctions.GetCookieValue("modern")||
"Cookie not Set"}});c.push({Name:"eVar142",Handler:function(){s.eVar142=_dsgTag.HelperFunctions.GetValue("ErrorList")?JSON.parse(_dsgTag.HelperFunctions.GetValue("ErrorList")).join(","):""}});c.push({Name:"eVar152",Handler:function(){s.eVar152=_dsgTag.HelperFunctions.GetValue("eyeo")?_dsgTag.HelperFunctions.GetValue("eyeo").split("|")[0]:"";s.baseLinkTrackVars=s.apl(s.baseLinkTrackVars,"eVar152",",",2)}});c.push({Name:"Lane Variables",Handler:function(){for(var c=["168","169","170"],d=0;d<c.length;d++){var e=
_dsgTag.customerLanes.slice(3*d,3*d+3);s["eVar"+c[d]]=e.join(",")}}});c.push({Name:"event226",Handler:function(){_dsgTag.taggingIsSynchronous||(s.events=s.apl(s.events,"event226"),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event226",",",2))}});for(var e=0;e<c.length;e++)try{c[e].Handler()}catch(k){var g=c[e].Name;"function"===typeof d.indexOf&&0>d.indexOf(g)&&(d.push(g),_dsgTag.HelperFunctions.DebugLog("Failed to set universal pixel value: "+g+
": "+k.message,!0))}"undefined"!==typeof s.eVar18&&"0"==s.eVar18.toString()&&(s.eVar18="Zero");s.ForceVariablesToLowerCase();s.SetVariableCopies()}catch(k){_dsgTag.HelperFunctions.DebugLog("Error setting universal pixel value: "+k.message,!0)}};s.GetFullVariableName=function(c){return c.replace(/^c(\d+)$/g,"prop$1").replace(/^v(\d+)$/g,"eVar$1")};s.ForceVariablesToLowerCase=function(){for(var c="campaign v1 v2 v5 c10 c11".split(" "),d=0;d<c.length;d++){var e=s.GetFullVariableName(c[d]);s[e]&&(s[e]=
s[e].toString().toLowerCase())}};s.SetVariableCopies=function(){var c={purchaseID:"v16",transactionID:"v16",c8:"v2",c28:"v28",c45:"v45",c55:"v44",c57:"v64",c58:"v54",c64:"v27",c66:"v1",v93:"v92",v95:"v94"},d;for(d in c)s[s.GetFullVariableName(c[d])]&&(s[s.GetFullVariableName(d)]="D="+c[d]);"undefined"!==typeof s.events&&null!==s.events&&s.events.match(/event67=(\d+)/)&&(s.prop9=s.events.match(/event67=(\d+)/)[1]);s.eVar11&&(s.events=s.apl(s.events,"event44="+s.eVar11))};s.AddEventsToTL=function(c){"undefined"===
typeof c.length&&(c=[c]);for(var d=0;d<c.length;d++)s.events=s.apl(s.events,"event"+c[d].toString(),",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event"+c[d].toString(),",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2)};s.triggerPageView=function(){try{try{s.populateMarketingChannelVariables(),s.SetUniversalAnatlyticsValues()}catch(c){}s.triggerAEPAnalyticsEvent()}catch(c){_dsgTag.HelperFunctions.DebugLog("Exception occured while triggering page view pixel: "+c.message,!0)}};s.triggerEvent=
function(c){try{try{s.populateMarketingChannelVariables()&&(s.linkTrackVars=s.apl(s.linkTrackVars,"eVar173",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar174",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar94",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar95",",",2)),s.SetUniversalAnatlyticsValues(),s.prop49=_dsgTag.EventHandlers.initialPageViewFired.toString(),s.linkTrackVars=s.apl(s.linkTrackVars,"prop49",",",2)}catch(d){}s.triggerAEPAnalyticsEvent(c);s.linkTrackEvents="None";s.linkTrackVars=
s.baseLinkTrackVars}catch(d){_dsgTag.HelperFunctions.DebugLog("Exception occured while triggering event pixel: "+d.message,!0)}};var g=!1;s.triggerAEPAnalyticsEvent=function(c,d){try{var e=d||s.CreateAEPDataObject(c);_dsgTag.FunctionRepository.SendXDMEventAnalytics?_dsgTag.FunctionRepository.SendXDMEventAnalytics(e):(_dsgTag.PendingAnalyticsDataObjects=_dsgTag.PendingAnalyticsDataObjects||[],_dsgTag.PendingAnalyticsDataObjects.push(e))}catch(n){_dsgTag.HelperFunctions.DebugLog("Error sending AEP analytics event: "+
n.message,_dsgTag.LogLevels.Error),g||(g=!0,_dsgTag.EventHandlers.TriggerEvent("SiteError",{ErrorMessage:"Error sending AEP analytics event."}))}};s.CreateAEPDataObject=function(c){var d={__adobe:{}};s.currencyCode="USD";try{for(var e={},n=c?s.linkTrackVars.split(","):"pageName purchaseID transactionID server events products prop eVar list campaign pageType currencyCode".split(" "),k=0;k<n.length;k++)if(s[n[k]]){var q=s[n[k]];if(c&&"events"===n[k]){q=q.split(",");for(var h=s.linkTrackEvents.split(","),
t=0;t<q.length;t++)"undefined"!==typeof Array.prototype.indexOf&&0>h.indexOf(q[t].replace(/=\d+(\.\d+)?/g,""))&&q.splice(t--,1);q=q.join(",")}e[n[k]]=q}else if("prop"===n[k]||"eVar"===n[k]||"list"===n[k]){var u={prop:75,eVar:250,list:3};for(t=1;t<=u[n[k]];t++)s[n[k]+t]&&(e[n[k]+t]=s[n[k]+t])}c&&(e.linkName=c,e.linkType="o",e.linkTrackVars=s.linkTrackVars,e.linkTrackEvents=s.linkTrackEvents);d.__adobe.analytics=e}catch(v){e="Failed to build analytics object for AEP.",_dsgTag.HelperFunctions.DebugLog(e,
0),g||(g=!0,_dsgTag.EventHandlers.TriggerEvent("SiteError",{ErrorMessage:e}))}try{e={},e=_dsgTag.FunctionRepository.targetPageParams(c),delete e.mbox3rdPartyId,d.__adobe.target=e}catch(v){e="Failed to build target object for AEP.",_dsgTag.HelperFunctions.DebugLog(e,0),g||(g=!0,_dsgTag.EventHandlers.TriggerEvent("SiteError",{ErrorMessage:e}))}return d};s.tl=function(){var c=_dsgTag.HelperFunctions.DeepExtend({},window.s),d="feedback_submitted form_displayed invite_triggered feedback_submitted Invite_rejected Thankyou_displayed Thankyou_close".split(" "),
e=c.contextData;e&&0<=d.indexOf(e.eventName)&&("14547"!=e.formId||"form_displayed"!=e.eventName)&&_dsgTag.EventHandlers.TriggerEvent("NebulaCX_Activity",e);c.events&&0<=c.events.indexOf("event63")&&_dsgTag.EventHandlers.TriggerEvent("BazaarVoiceInteraction",c)};s.noPageViewTimeout=setTimeout(function(){try{_dsgTag.isIFrame||_dsgTag.FunctionRepository.TriggerBasicAnalyticsEvent("NewPageViewTimeout",88)}catch(c){_dsgTag.HelperFunctions.DebugLog("Error recording NoPageViewDetected event: "+c.message)}},
1E4)};_dsgTag.FunctionRepository.SetupAdobePageCode=function(e){(function(){function g(c,d){try{if("string"===typeof c){var e="function"===typeof d?d():d;window.s[c]="undefined"===typeof e?"":e}}catch(V){_dsgTag.HelperFunctions.DebugLog("Error occurred in "+c+" handler: "+V.message,!0)}}function c(c,d){for(var e=0;e<d.length;e++)if(d[e].Name==c)return d[e].Value;return null}function d(){for(var d=[],e=0;e<arguments.length;e++)d.push({Name:_dsgTag.DataLayer.dataNameList[e],Value:arguments[e]});try{var g=
c("PageURL",d);s.pageURL=g;s.manageVars("clearVars");s.tnt="";s.pe="";s.pev2="";s.linkName="";s.linkType="";s.pageType="";g=[];g.push(f);var V=_dsgTag.pageType;c("PageTypeOverride",d)&&(V=_dsgTag.PageTypes[c("PageTypeOverride",d)]);switch(V){case _dsgTag.PageTypes.Error:g.push(n);break;case _dsgTag.PageTypes.Home:g.push(k);break;case _dsgTag.PageTypes.Category:case _dsgTag.PageTypes.Family:g.push(q);break;case _dsgTag.PageTypes.ResourceCenter:g.push(Z);break;case _dsgTag.PageTypes.Search:g.push(h);
break;case _dsgTag.PageTypes.ProductDetails:g.push(t);break;case _dsgTag.PageTypes.Cart:g.push(u);break;case _dsgTag.PageTypes.CheckoutSinglePage:g.push(v);break;case _dsgTag.PageTypes.CheckoutBillingShippingAddress:case _dsgTag.PageTypes.CheckoutBillingAddress:case _dsgTag.PageTypes.CheckoutShippingAddress:case _dsgTag.PageTypes.CheckoutDelivery:case _dsgTag.PageTypes.CheckoutPayment:case _dsgTag.PageTypes.CheckoutReview:g.push(B);break;case _dsgTag.PageTypes.OrderConfirmation:g.push(D);break;case _dsgTag.PageTypes.Proxy:g.push(A);
break;case _dsgTag.PageTypes.Static:case _dsgTag.PageTypes.BrandShop:g.push(z);break;case _dsgTag.PageTypes.WeeklyAd:g.push(G);break;case _dsgTag.PageTypes.OrderTracking:g.push(F);break;case _dsgTag.PageTypes.OrderDetails:g.push(I);break;case _dsgTag.PageTypes.GuestOrderTracking:g.push(K);break;case _dsgTag.PageTypes.MyAccountOTPChallenge:g.push(R);case _dsgTag.PageTypes.MyAccountSignIn:case _dsgTag.PageTypes.MyAccountSignInAuth0:g.push(N);break;case _dsgTag.PageTypes.MyAccount:g.push(S);break;case _dsgTag.PageTypes.MyAccountRegistration:g.push(X);
break;case _dsgTag.PageTypes.MyAccountListLanding:g.push(Q);break;case _dsgTag.PageTypes.MyAccountListContents:g.push(Ba);break;case _dsgTag.PageTypes.MyAccountAppointments:g.push(W);break;case _dsgTag.PageTypes.SharedList:g.push(na);break;case _dsgTag.PageTypes.AddressBook:g.push(J);break;case _dsgTag.PageTypes.StoreLocatorIndex:g.push(C);break;case _dsgTag.PageTypes.StoreLocatorLocalStore:g.push(p);break;case _dsgTag.PageTypes.StoreLocatorIFrame:g.push(l);break;case _dsgTag.PageTypes.ChatForm:case _dsgTag.PageTypes.ChatConversation:g.push(P);
break;case _dsgTag.PageTypes.Protips:case _dsgTag.PageTypes.ProtipsBlog:g.push(aa);break;case _dsgTag.PageTypes.Scorecard:g.push(T);break;case _dsgTag.PageTypes.ProductReview:g.push(xa);break;case _dsgTag.PageTypes.OptiversalFamily:case _dsgTag.PageTypes.AdeptmindFamily:g.push(U);break;case _dsgTag.PageTypes.AdeptmindProductDetails:g.push(Y);break;case _dsgTag.PageTypes.NarvarRedirect:g.push(ea);break;case _dsgTag.PageTypes.PelotonRedirect:g.push(E);break;case _dsgTag.PageTypes.BlogHome:case _dsgTag.PageTypes.BlogTopics:case _dsgTag.PageTypes.BlogArticle:g.push(L);
break;case _dsgTag.PageTypes.SchedulingService:g.push(ba);break;case _dsgTag.PageTypes.CMMTeamPacket:g.push(fa);break;case _dsgTag.PageTypes.InvestorRelations:g.push(ra);break;case _dsgTag.PageTypes.SportsMatter:g.push(ka);break;case _dsgTag.PageTypes.InStoreDisplay:g.push(ua)}V=!1;for(e=0;e<g.length;e++)try{V=g[e](d)||V}catch(ja){_dsgTag.HelperFunctions.DebugLog("Error occurred in ProcessPageView "+g[e].name+": "+ja.message,!0)}s.server=window.location.hostname.toLowerCase();s.preTrackCallbackList.push(function(){_dsgTag.EventHandlers.initialPageViewPreFired=
!0;clearTimeout(s.noPageViewTimeout)});s.postTrackCallbackList.push(function(){if(!_dsgTag.EventHandlers.initialPageViewFired&&(_dsgTag.EventHandlers.initialPageViewFired=!0,0<_dsgTag.EventHandlers.delayedPageViewEvents.length)){for(var c=[],d=0;d<_dsgTag.EventHandlers.delayedPageViewEvents.length;d++)c.push(_dsgTag.EventHandlers.delayedPageViewEvents[d].Event.type);_dsgTag.HelperFunctions.DebugLog("Now handling "+_dsgTag.EventHandlers.delayedPageViewEvents.length+" delayed event(s): "+c.join(", "));
for(d=0;d<_dsgTag.EventHandlers.delayedPageViewEvents.length;d++)c=_dsgTag.EventHandlers.delayedPageViewEvents[d],_dsgTag.EventHandlers.LaunchHandler(c.Handler,c.Event,c.Data,"Handling delayed event: "+c.Event.type+" [AdobeAnalytics]")}});V?(clearTimeout(s.noPageViewTimeout),_dsgTag.HelperFunctions.SaveValue("PreviousPageValues",JSON.stringify(_dsgTag.previousPageValues))):s.triggerPageView();s.linkTrackEvents="None"}catch(ja){_dsgTag.HelperFunctions.DebugLog("Error occurred in PagePostRender processor: "+
ja.message,!0)}}function f(d){s.LoadAudienceManagerCustomizations?s.LoadAudienceManagerCustomizations():!0;g("prop7",function(){return c("MachineLearningSearchValues",d).join("|")});g("prop17",function(){return c("AppID",d)});g("prop20",c("Random100",d));g("prop35",_dsgTag.HelperFunctions.GetCookieValue("segment"));g("prop38",_dsgTag.HelperFunctions.GetCookieValue("ChkReboot"));g("prop40","undefined"!==typeof _dsgTag.pageType&&"undefined"!==typeof _dsgTag.pageType.Name?_dsgTag.pageType.Name:"Unknown");
g("prop46",function(){var c="";_dsgTag.HelperFunctions.GetValue("DerivativeKeyword")&&(c=_dsgTag.HelperFunctions.GetValue("DerivativeKeyword"),_dsgTag.HelperFunctions.DeleteValue("DerivativeKeyword"));return c});g("prop48",function(){var c=_dsgTag.HelperFunctions.GetCookieValue("JSESSIONID")||"";return c.substring(c.indexOf(":")+1)});g("prop66",function(){var c="";_dsgTag.previousPageValues.c66&&(c=_dsgTag.previousPageValues.c66);return c});g("prop71",function(){return c("LoyaltyPoints",d)});g("eVar1",
function(){var c="";_dsgTag.previousPageValues.v1?c=_dsgTag.previousPageValues.v1.replace("\\'","'"):"byondxr-store"==_dsgTag.HelperFunctions.GetQueryStringValue("utm_source")&&(c="byondxr-store");return c});g("eVar2",function(){return c("InternalSearchTerm",d)});g("eVar3",function(){return c("InternalSearchType",d)});g("eVar7",function(){return s.getReferringInternalSite()});g("eVar18",function(){return c("CartItemQuantity",d)});g("eVar21",function(){return c("LoyaltyID",d)});g("eVar22",function(){return c("HashedEmailAddress",
d)});g("eVar38",function(){return c("SavedStoreNumber",d)});g("eVar44",function(){return c("ErrorMessage",d)});g("eVar56",function(){return c("MobileCustomerID",d)});g("eVar57",function(){return c("AOSStoreID",d)});g("eVar59",function(){var e=c("SignedInBoolean",d);return null!==e?"Logged "+(e?"In":"Out"):"Undefined"});g("eVar60",function(){return c("InternalSearchTerm",d)?c("SearchData",d):""});g("eVar63",function(){return c("InternalSearchDYM",d)});g("eVar67",function(){var c="";_dsgTag.currentWebsite===
_dsgTag.Websites.DicksSportingGoods&&"Kiosk"===_dsgTag.experience&&(c=_dsgTag.HelperFunctions.GetQueryStringValue("associateId")||"");return c});g("eVar85",function(){return _dsgTag.HelperFunctions.GetCookieValue("promoId")});g("eVar88",function(){return _dsgTag.HelperFunctions.GetCookieValue("DSG_UID")});g("eVar101",function(){for(var c=[],d=[],e=/([^ =;]*promo[^=]+=)/gi;null!==(match=e.exec(document.cookie));)d.push(match[1]);for(e=0;e<d.length;e++){var f=d[e].substring(0,d[e].length-1),g=_dsgTag.HelperFunctions.GetCookieValue(f);
g&&c.push(f+":"+g)}c=c.sort();return c.join("|")});g("eVar111",function(){return c("CCPADoNotSell",d)});g("eVar118",function(){return c("LoginID",d)});g("eVar135",function(){if(_dsgTag.timestamps){var c=[];for(key in _dsgTag.timestamps)c.push(key+": "+_dsgTag.timestamps[key]);return c.join(",")}});g("eVar136",function(){return c("NikeConnected",d).toString()});g("eVar137",function(){return _dsgTag.CustomerIDs.isGold.toString()});g("eVar144",function(){return _dsgTag.visitor.timeOnPreviousPage});g("eVar145",
function(){return _dsgTag.visitor.pageCount});g("eVar147",function(){return _dsgTag.HelperFunctions.GetQueryStringValue("Audience_Name")});g("events",function(){var e=s.events,f=c("InternalSearchTerm",d),g=c("InternalSearchResultsCount",d);!f||""!==_dsgTag.previousPageValues.v1&&-1!==document.referrer.indexOf("SearchDisplay")&&""!==_dsgTag.HelperFunctions.GetQueryStringValue("searchType")&&""===_dsgTag.HelperFunctions.GetQueryStringValue("urlRequestType")||(e=s.apl(e,"event2",",",2),0<parseInt(g)&&
(e=s.apl(e,"event67="+g,",",2)),"0"==g&&(e=s.apl(e,"event3",",",2)));s.eVar1&&(e=s.apl(e,"event68"),0<=s.eVar1.indexOf("_ScoreCard_Login")&&(e=s.apl(e,"event157")));_dsgTag.HelperFunctions.GetValue("LSTest")||(_dsgTag.HelperFunctions.SaveValue("LSTest","x"),"x"!==_dsgTag.HelperFunctions.GetValue("LSTest")&&(e=s.apl(e,"event225")));_dsgTag.HelperFunctions.GetValue("LaneChanged")&&"true"==_dsgTag.HelperFunctions.GetValue("LaneChanged")&&(e=s.apl(e,"event7"),_dsgTag.HelperFunctions.DeleteValue("LaneChanged"));
_dsgTag.currentWebsite===_dsgTag.Websites.PublicLands&&"mjtopl"===_dsgTag.HelperFunctions.GetQueryStringValue("segment")&&(e=s.apl(e,"event254",",",2));return e});g("list2",function(){var e=[],f=c("MCSalesCatalogDetails",d);if(0<f.length)for(var g=0;g<f.length;g++)if(f[g].ParentCodes&&0<f[g].ParentCodes.length)for(var l=0;l<f[g].ParentCodes.length;l++)e.push(f[g].ParentCodes[l].ParentCode);e=e.join(",");0<e.length&&((e=e.match(/[^,]+-\d{6,}/g))?(e=e.slice(0,5),e=e.join(",")):e="");return e})}function n(c){c=
_dsgTag.DataLayer.GetValue("PageName",c)||"404";var d=_dsgTag.currentWebsite.Abbreviation+": Error: "+c;s.friendlyPageName=d+": "+window.location.href;g("pageName","D='"+d+": '+g");g("prop2","Error");g("pageType","errorPage");g("eVar44",c)}function k(){g("pageName",function(){return _dsgTag.currentWebsite.Abbreviation+": Home Page: Home"});g("prop2","Home Page")}function q(d){g("pageName",function(){var e="",f=_dsgTag.currentWebsite.Abbreviation+": Shopping: ",g=c("PageURL",d).split("/")[3],l=c("CategoryID",
d),p=c("CategoryName",d),h=c("FamilyID",d),k=c("FamilyName",d),n="",q="";switch(g){case "c":n="Category";break;case "f":n="Family"}l&&p?q=l+" - "+p:h&&k&&(q=h+" - "+k);(suffix=n+": "+q)&&(e=f+suffix);return e});g("prop2",function(){var e="",f=c("PageURL",d).split("/")[3];"c"===f||"d"===f?e="Category":"f"===f&&(e="Family");f=c("PageType",d);"superfamily"==f.toLowerCase()?e="SuperFamily":"hyper-category"==f.toLowerCase()&&(e="Hyper-Category");return e});g("events",function(){var e=s.events;if(_dsgTag.pageType===
_dsgTag.PageTypes.Family){e=s.apl(e,"event105",",",2);var f=c("FamilyProductCount",d);e=0<f?s.apl(e,"event151="+f,",",2):s.apl(e,"event155",",",2)}return e});g("eVar54",_dsgTag.DataLayer.GetValue("SortMethod"));g("eVar148",_dsgTag.DataLayer.GetValue("PLPEventID"));g("eVar159",_dsgTag.DataLayer.GetValue("ReviewStarsProducts"))}function h(){g("pageName",function(){return _dsgTag.currentWebsite.Abbreviation+": Shopping: Search: Results"});g("prop2","Search Results");g("eVar54",_dsgTag.DataLayer.GetValue("SortMethod"));
g("eVar148",_dsgTag.DataLayer.GetValue("PLPEventID"));g("eVar159",_dsgTag.DataLayer.GetValue("ReviewStarsProducts"))}function t(d){var e=c("IsQuickView",d),f,l;_dsgTag.FunctionRepository.GetAvailabilityStringFromSKUArray=function(c){try{for(var d="",e=0,g=0,p=0,h,k=0;k<c.length;k++)h=!1,c[k].AvailabletoShip&&"true"===c[k].AvailabletoShip.toString().toLowerCase()&&(e++,h=!0),c[k].AvailableForPickup&&"true"===c[k].AvailableForPickup.toString().toLowerCase()&&(g++,h=!0),h&&p++;d+=p.toString()+"_"+f+
"_"+parseInt(100*(parseFloat(p)/parseFloat(f)));d+=":"+e.toString()+"_"+f+"_"+parseInt(100*(parseFloat(e)/parseFloat(f)));d+=":"+g.toString()+"_"+f+"_"+parseInt(100*(parseFloat(g)/parseFloat(f)));d+=":"+p.toString()+"_"+l+"_"+parseInt(100*(parseFloat(p)/parseFloat(l)));d+=":"+e.toString()+"_"+l+"_"+parseInt(100*(parseFloat(e)/parseFloat(l)));return d+=":"+g.toString()+"_"+l+"_"+parseInt(100*(parseFloat(g)/parseFloat(l)))}catch(oa){}};g("products",function(){var g="",p=c("ProductDetails",d);if(0<p.length){g=
[];var h=c("ProductID",d);_dsgTag.previousPageValues.pageRowCol?g.push("evar4="+_dsgTag.previousPageValues.pageRowCol):_dsgTag.previousPageValues.plaPosition&&g.push("evar4="+_dsgTag.previousPageValues.plaPosition);var k=c("ReviewAverage",d)||"0",n=c("ReviewCount",d)||"0";g.push("evar55="+(k+":"+n));if(k=c("CrossSellClickDetail",d))g.push("evar52="+k),(k=/\/p\/[^\/]+\/([^?]+)/.exec(document.referrer))&&g.push("evar31="+k[1].trim().toUpperCase());k=c("ProductPageTemplateType",d)||"Standard";"false"==
c("ProductBuyable",d)&&(k="Displayable Not Buyable");n=c("ProductFindingMethod",d);"search by product id"!==c("InternalSearchType",d).toLowerCase()||e||(n="Internal Search");g.push("evar33="+n);"Shopping Cart"!==n&&g.push("evar58="+n);var q=c("PDPPromoMessage",d);if(0<q.length){var t=[];for(n=0;n<q.length;n++){valueType="";switch(q[n].type.toLowerCase()){case "productlevelpromotion":valueType="P";break;case "shippingpromotion":valueType="S"}t.push({id:q[n].promotionId,type:valueType})}t.sort(function(c,
d){return parseInt(c.id)-parseInt(d.id)});for(n=0;n<t.length;n++)t[n]=t[n].type+":"+t[n].id;g.push("evar70="+t.join("-"))}(n=c("PDPPeopleViewing",d))&&g.push("evar102="+n);if(1==p.length){p=p[0];f=p.ProductSKUDetails.length||1;q=0;l=1;for(n=0;n<p.ProductAttributeList.length;n++)"color"===p.ProductAttributeList[n].Name.toLowerCase()&&(q=p.ProductAttributeList[n].CountOfOptions),l*=p.ProductAttributeList[n].CountOfOptions;t=c("ProductOmniStatus",d);g.push("evar35="+t);0<q&&g.push("evar37="+q);(q=c("PriceType",
d))||(q="Out of Stock");g.push("evar49="+q);q=c("ProductCurrentPriceList",d);t="";if(0<q.length){t=Number.MAX_VALUE;var u=!0;for(n=0;n<q.length;n++){var v=parseFloat(q[n]);isNaN(v)||(t=v<t?v:t,u=!1)}t=u?"Price in Cart":t.toFixed(2)}g.push("evar62="+t);q=c("ProductPagePricingGroups",d);g.push("evar66="+q.length);g.push("evar68="+_dsgTag.FunctionRepository.GetAvailabilityStringFromSKUArray(p.ProductSKUDetails));try{var G=new Date(0);for(n=0;n<p.ProductSKUDetails.length;n++){var X=new Date(p.ProductSKUDetails[n].WebActiveDate);
G=X>G?X:G}var F=(Date.now()-G)/1E3/60/60/24;var S=1>F?"Launch Day":7>F?"Day 1-7":30>F?"Day 8-30":90>F?"Day 31-90":180>F?"Day 91-180":"Day 180+";g.push("evar89="+G.getFullYear()+(10>G.getMonth()+1?"0":"")+(G.getMonth()+1)+(10>G.getDate()?"0":"")+G.getDate()+":"+S)}catch(Ja){_dsgTag.HelperFunctions.DebugLog("Error calculating v89:"+Ja.message,!0)}g.push("evar131="+c("NikeConnectedProduct",d).toString())}else g.push("evar35=Bundle"),g.push("evar37=Bundle"),g.push("evar49=Bundle"),g.push("evar62=Bundle"),
g.push("evar66=Bundle");g.push("evar32="+k);g=s.buildProductString(h,0,0,[],g)}return g});g("prop2","Product Detail");g("events",function(){var f=s.events,g=c("ProductID",d),l=c("ProductAvailability",d),p=c("InternalSearchTerm",d),h=c("CrossSellClickDetail",d);if(g){if(f=s.apl(f,"event1",",",2),l&&"Out of Stock"===l?(f=s.apl(f,"event10",",",2),_dsgTag.currentWebsite===_dsgTag.Websites.DicksSportingGoods&&_dsgTag.HelperFunctions.SaveValue("prevPageOosPDP","1",!0)):_dsgTag.currentWebsite===_dsgTag.Websites.DicksSportingGoods&&
_dsgTag.HelperFunctions.DeleteValue("prevPageOosPDP"),p&&(f=s.apl(f,"event67=1",",",2)),h&&(f=s.apl(f,"event6",",",2)),e&&(f=s.apl(f,"event150",",",2)),_dsgTag.previousPageValues.pageRowCol)try{4>=parseInt(_dsgTag.previousPageValues.pageRowCol.split(":")[3])&&(f=s.apl(f,"event12",",",2))}catch(Ka){}}else _dsgTag.currentWebsite===_dsgTag.Websites.DicksSportingGoods&&_dsgTag.HelperFunctions.DeleteValue("prevPageOosPDP");return f});g("pageName",function(){var e=_dsgTag.currentWebsite.Abbreviation+": Product: PDP: ",
f=c("ProductID",d),g=c("ProductName",d);return f&&g?e+(f+" - "+g):e+"Unknown"});g("prop14",function(){var e=[];try{var f=c("ProductDetails",d);if(0<f.length)for(var g=0;g<f[0].ProductSKUDetails.length;g++)"undefined"!==typeof Array.prototype.indexOf&&0>e.indexOf(f[0].ProductSKUDetails[g].ShipClass.toLowerCase())&&e.push(f[0].ProductSKUDetails[g].ShipClass.toLowerCase())}catch(Ia){}return e.sort().join(":")});g("prop50",function(){return c("PDPPaypalEligible",d)});var p=_dsgTag.DataLayer.GetValue("PageName");
if("Product Hide"===p||"Sold Out"===p||""===s.products)g("pageName",_dsgTag.currentWebsite.Abbreviation+": Product: PDP: "+p+" - "+c("ProductID",d)),g("events","event1,event10"),g("products",s.buildProductString(c("ProductID",d),0,0,[],["evar68=0_1_0:0_1_0:0_1_0:0_1_0:0_1_0:0_1_0","evar89=Not Available"]))}function u(d){function f(){_dsgTag.EventHandlers.TriggerEvent("ExternalCheckout",{Paypal:"Yes"})}e.AddEventHandler("NewPageView",function(){_dsgTag.HelperFunctions.BindDocumentClickEventWithAdditionalSelector("#paypal-btn-bottom, a.paypal-btn-bottom, .paypal-btn-action, .paypal-btn-wrapper-react",
f);for(var c=document.querySelectorAll(".paypal-image, [alt='Paypal Button']"),d=0;d<c.length;d++)c[d].addEventListener("click",f)});g("pageName",function(){return _dsgTag.currentWebsite.Abbreviation+": Shopping Bag: Cart"});g("prop2","Shopping Bag");g("eVar13",function(){var e=c("CartID",d);!e||_dsgTag.HelperFunctions.GetValue("TagCartID")&&decodeURI(_dsgTag.HelperFunctions.GetValue("TagCartID")).split("|")[0]==e||(cookieString=e+"|0000",_dsgTag.HelperFunctions.SaveValue("TagCartID",cookieString));
return e});g("eVar18",function(){return _dsgTag.DataLayer.GetValue("CartItemQuantity")});g("products",function(){if(_dsgTag.CartSanitizationProducts){var c=_dsgTag.CartSanitizationProducts.join(",");delete _dsgTag.CartSanitizationProducts;return c}return""})}function v(d){var e=c("CheckoutCardStatus",d);if(e){var f={contactinfo:{serialEvent:236,nonSerialEvent:237,stepIndex:0,pageName:"Contact Info"},billingaddress:{serialEvent:79,nonSerialEvent:89,stepIndex:1,pageName:"Billing & Shipping"},shippingaddress:{serialEvent:80,
nonSerialEvent:90,stepIndex:2,pageName:"Shipping"},sameday:{serialEvent:234,nonSerialEvent:235,stepIndex:3,pageName:"SDD Tip/Payment"},payment:{serialEvent:81,nonSerialEvent:91,stepIndex:4,pageName:"Payment"}};B(d);g("pageName","");g("events","");var l=_dsgTag.DataLayer.GetValue("CartID"),p=[],h=_dsgTag.HelperFunctions.GetValue("TagCheckoutProgress");if(h){h=JSON.parse(h);try{for(key in h)"undefined"===typeof e[key]&&delete h[key]}catch(la){h={}}}else h={},p.push("scCheckout:"+l),p.push("event87");
var k,n;for(k in e)if("dsg_uid"!=k.toLowerCase()){var q=!1;for(n in f)if(k.toLowerCase()==n.toLowerCase()){q=!0;var t=e[k].status;h[n]=t;if("open"==t||"complete"==t)for(var u=f[n].stepIndex;0<=u;u--)for(cardName in f)f[cardName].stepIndex===u&&p.push("event"+f[cardName].serialEvent+":"+l);if("open"==t||"revise"==t)p.push("event"+f[n].nonSerialEvent),s.pageName=_dsgTag.currentWebsite.Abbreviation+": Checkout: "+f[n].pageName}q||console.error("Unrecognized checkout card name: "+k)}g("eVar79",function(){var e=
"Unknown",f=c("CheckoutSummary",d);(f=f.checkout_key||f.checkoutKey)&&(e=0<=f.indexOf("-")?"Legacy Checkout":"Modern Checkout");return e});g("eVar117",function(){var c=[];for(key in h)c.push(key+":"+h[key]);return c=c.sort(function(c,d){return f[c.split(":")[0]].stepIndex-f[d.split(":")[0]].stepIndex}).join(",")});g("eVar123",function(){return c("OrderTip",d)});_dsgTag.HelperFunctions.SaveValue("TagCheckoutProgress",JSON.stringify(h));for(u=0;u<p.length;u++)g("events",s.apl(s.events,p[u],",",2))}else return!0}
function B(d){if("undefined"!==typeof varResponsive&&(_dsgTag.pageType===_dsgTag.PageTypes.CheckoutBillingShippingAddress||_dsgTag.pageType===_dsgTag.PageTypes.CheckoutBillingAddress)){var e=function(){if(_dsgTag.DataLayer.GetValue("CheckoutSummary")&&"undefined"!==typeof _dsgTag.DataLayer.GetValue("CheckoutSummary").shipping.information){var c={ActionType:"radiobutton:delivery methods:default"};c.checkout=_dsgTag.DataLayer.GetValue("CheckoutSummary");_dsgTag.EventHandlers.TriggerEvent("CheckoutAction",
c)}else setTimeout(e,500)};setTimeout(e,500)}g("eVar11",function(){var e=c("OrderTotal",d),f=c("OrderShippingRevenue",d),g=c("OrderTax",d);subtotal=e-g-f;isNaN(subtotal)&&(subtotal=0);return subtotal.toFixed(2)});g("eVar53",function(){var e=c("OrderTax",d);return parseFloat(e).toFixed(2)});g("eVar96",function(){return c("OrderShippingRevenue",d)});g("eVar97",function(){return c("OrderShippingDiscount",d)});g("eVar13",function(){var e=c("CartID",d);!e||_dsgTag.HelperFunctions.GetValue("TagCartID")&&
decodeURI(_dsgTag.HelperFunctions.GetValue("TagCartID")).split("|")[0]==e||(cookieString=e+"|0000",_dsgTag.HelperFunctions.SaveValue("TagCartID",cookieString));return e});g("eVar17",function(){var e=c("CheckoutGuestVsRegistered",d);if(0<=document.referrer.indexOf("paypal.com")||_dsgTag.HelperFunctions.GetQueryStringValue("ddkey")&&0<=_dsgTag.HelperFunctions.GetQueryStringValue("ddkey").indexOf("DSGReturnFromPayPalExpressCheckoutCmd")||_dsgTag.HelperFunctions.GetQueryStringValue("token")&&0===_dsgTag.HelperFunctions.GetQueryStringValue("token").indexOf("EC")||
_dsgTag.HelperFunctions.GetQueryStringValue("paymentType")&&0<=_dsgTag.HelperFunctions.GetQueryStringValue("paymentType").toLowerCase().indexOf("paypal"))e+=" - "+(_dsgTag.previousPageValues.ExternalCheckout?_dsgTag.previousPageValues.ExternalCheckout:"Paypal Express"),s.saveValueForNextPageView("ExternalCheckout",_dsgTag.previousPageValues.ExternalCheckout);return e});g("pageName",function(){var c="";switch(_dsgTag.pageType){case _dsgTag.PageTypes.CheckoutBillingShippingAddress:case _dsgTag.PageTypes.CheckoutBillingAddress:c=
"Step1 - Billing & Shipping";break;case _dsgTag.PageTypes.CheckoutShippingAddress:c="Step1 - Billing & Shipping - Ship to Other";break;case _dsgTag.PageTypes.CheckoutDelivery:c="Step2 - Shipping Methods";break;case _dsgTag.PageTypes.CheckoutPayment:c="Step3 - Payment";break;case _dsgTag.PageTypes.CheckoutReview:c="Step4 - Review & Submit Order";break;case _dsgTag.PageTypes.CheckoutSinglePage:c="Single Page Checkout"}return c=_dsgTag.currentWebsite.Abbreviation+": Checkout: "+c});g("products",function(){var e=
"",f=_dsgTag.DataLayer.GetValue("ProductListArray"),g=[];if(0<f.length)for(var l=0;l<f.length;l++){id=f[l].ProductID;quantity=f[l].ProductQty;revenue=(f[l].CurrentPricePerUnit-f[l].DistributedOrderDiscountPerUnit)*f[l].ProductQty;itemDiscount=f[l].ItemDiscountPerUnit*f[l].ProductQty;distributedOrderDiscount="undefined"!==typeof f[l].DistributedOrderDiscountPerUnit?f[l].DistributedOrderDiscountPerUnit*f[l].ProductQty:0;h=f[l].ProductSKU;shippingRevenue=f[l].ShippingPaidPerUnit*f[l].ProductQty;shippingDiscount=
f[l].ShippingDiscountPerUnit*f[l].ProductQty;metrics=[];evars=[];evars.push("evar61="+h);if("undefined"!==typeof f[l].PromotionsApplied&&0<f[l].PromotionsApplied.length){h=[];for(var p=0;p<f[l].PromotionsApplied.length;p++){valueType="";switch(f[l].PromotionsApplied[p].OrderVsItemLevel.toLowerCase()){case "item":valueType="I";break;case "order":valueType="O"}h.push({id:f[l].PromotionsApplied[p].PromoID,type:valueType})}h.sort(function(c,d){return parseInt(c.id)-parseInt(d.id)});for(p=0;p<h.length;p++)h[p]=
h[p].type+":"+h[p].id;evars.push("evar70="+h.join("-"))}"undefined"!==typeof f[l].FulfillmentMethod&&(h=s.DetermineFulfillmentMethod(f[l].FulfillmentMethod))&&(evars.push("evar51="+h.name),(h===s.fulfillmentMethodConstants.BOPIS||h===s.fulfillmentMethodConstants.BOPL)&&f[l].FulfillmentStore&&evars.push("evar40="+f[l].FulfillmentStore));0<shippingRevenue&&evars.push("evar98="+shippingRevenue.toFixed(2));0<quantity&&evars.push("evar10="+quantity);0<revenue&&evars.push("evar99="+revenue.toFixed(2));
0<shippingDiscount&&evars.push("evar100="+shippingDiscount.toFixed(2));g.push(s.buildProductString(f[l].ProductID,0,0,metrics,evars))}else if(checkout=c("CheckoutSummary",d))for(l=0;l<checkout.cart.items.length;l++)g.push(s.buildProductString(checkout.cart.items[l].ecode,0,0,[],["evar61="+checkout.cart.items[l].sku,"evar99="+parseFloat(checkout.cart.items[l].unit_price).toFixed(2)]));else if(_dsgTag.HelperFunctions.GetValue("TagCartProducts")){f=JSON.parse(_dsgTag.HelperFunctions.GetValue("TagCartProducts"));
for(var h in f)g.push(s.buildProductString(f[h],0,0,[],[]))}g&&(e=g.join(","));return e});g("events",function(){var c=s.events,d=_dsgTag.HelperFunctions.GetValue("TagCartID");if(d){d=decodeURI(d);var e=d.split("|")[0];d=d.split("|")[1].split("");var f="";switch(_dsgTag.pageType){case _dsgTag.PageTypes.CheckoutReview:f=f||"event92","0"==d[3]&&(c=s.apl(c,"event82:"+e,",",2),d[3]="1");case _dsgTag.PageTypes.CheckoutPayment:f=f||"event91","0"==d[2]&&(c=s.apl(c,"event81:"+e,",",2),d[2]="1");case _dsgTag.PageTypes.CheckoutDelivery:f=
f||"event90","0"==d[1]&&(c=s.apl(c,"event80:"+e,",",2),d[1]="1");case _dsgTag.PageTypes.CheckoutBillingShippingAddress:case _dsgTag.PageTypes.CheckoutBillingAddress:f=f||"event89","0"==d[0]&&(document.referrer&&0>document.referrer.toLowerCase().indexOf("checkoutsigninview")&&(c=s.apl(c,"scCheckout:"+e,",",2),c=s.apl(c,"event87",",",2)),c=s.apl(c,"event79:"+e,",",2),d[0]="1");case _dsgTag.PageTypes.CheckoutShippingAddress:f=f||"event88"}c=s.apl(c,f,",",2);_dsgTag.HelperFunctions.SaveValue("TagCartID",
e+"|"+d.join(""))}0<document.querySelectorAll("div.sign-in-text, p.sign-in-message-text").length&&(c=s.apl(c,"event170",",",2));return c});g("prop2","Checkout");g("eVar14",function(){return c("OrderPaymentMethods",d).join(": ")});g("eVar53",function(){var e=c("OrderTax",d);if(e)return parseFloat(e).toFixed(2)})}function D(d){try{var e=c("OrderID",d);if(e){for(var f=!1,l=0;l<_dsgTag.visitor.orderHistory.length&&!f;l++)f=e===_dsgTag.visitor.orderHistory[l].ID;f||_dsgTag.visitor.orderHistory.push({ID:e,
Date:Date.now()});_dsgTag.visitor.orderHistory.length>_dsgTag.CONST_MaxOrderHistoryLength&&_dsgTag.visitor.orderHistory.splice(_dsgTag.CONST_MaxOrderHistoryLength);_dsgTag.OrderHistory=_dsgTag.visitor.orderHistory;_dsgTag.HelperFunctions.SaveValue("Visitor",JSON.stringify(_dsgTag.visitor),!1)}}catch(ja){_dsgTag.HelperFunctions.DebugLog("Error adding order to visitor data: "+ja.message,!0)}g("eVar48",function(){return c("BillingZip",d)});g("eVar14",function(){return c("OrderPaymentMethods",d).join(": ")});
g("prop16",function(){return c("OrderID",d)});g("eVar16",function(){return c("OrderID",d)});g("eVar15",function(){return c("OrderShippingMethod",d)});g("eVar20",function(){var e=c("WebstoreID",d);return e?_dsgTag.currentWebsite.Abbreviation+":"+e:""});g("eVar117","Complete");g("pageName",function(){return _dsgTag.currentWebsite.Abbreviation+": Checkout: Step5 - Final Purchase"});g("products",function(){var e="";if(c("OrderID",d)){for(var f=parseFloat(c("OrderTax",d)),g=parseFloat(c("OrderShippingRevenue",
d)),l=parseFloat(c("OrderShippingDiscount",d)),p=c("ProductListArray",d),h=[],k,n,q=0;q<p.length;q++){k=[];n=[];k.push("event19="+(p[q].ItemDiscountPerUnit*p[q].ProductQty).toFixed(2));"undefined"!==typeof p[q].DistributedOrderDiscountPerUnit&&k.push("event13="+(p[q].DistributedOrderDiscountPerUnit*p[q].ProductQty).toFixed(2));n.push("evar61="+p[q].ProductSKU);if("undefined"!==typeof p[q].FulfillmentMethod){var t=s.DetermineFulfillmentMethod(p[q].FulfillmentMethod);t&&(n.push("evar51="+t.name),(t===
s.fulfillmentMethodConstants.BOPIS||t===s.fulfillmentMethodConstants.BOPL)&&p[q].FulfillmentStore&&n.push("evar40="+p[q].FulfillmentStore))}h.push(s.buildProductString(p[q].ProductID,p[q].ProductQty,(p[q].CurrentPricePerUnit-p[q].DistributedOrderDiscountPerUnit)*p[q].ProductQty,k,n));"undefined"!==typeof p[q].Warranty&&"true"===p[q].Warranty.toLowerCase()&&"undefined"!==typeof p[q].WarrantyAmount&&h.push(s.buildProductString(p[q].ProductID+"-Warranty",0,0,["event30="+(p[q].WarrantyAmount*p[q].ProductQty).toFixed(2)]))}f&&
h.push(s.buildProductString("Tax",0,0,["event32="+f.toFixed(2)]));(g||l)&&h.push(s.buildProductString("Shipping",0,0,["event8="+g.toFixed(2),"event9="+l.toFixed(2)]));h&&(e=h.join(","))}return e});g("events",function(){var e=s.events;if(c("OrderID",d)){var f=parseFloat(c("OrderTax",d)),g=parseFloat(c("OrderShippingRevenue",d)),l=parseFloat(c("OrderShippingDiscount",d)),p=c("LoyaltyIDNoFilter",d),h=c("GiftingEnabled",d),k=c("OrderSameBillingAndShipping",d),n=c("ProductListArray",d);e=s.apl(e,"purchase",
",",2);f&&(e=s.apl(e,"event32",",",2));g&&(e=s.apl(e,"event8",",",2));l&&(e=s.apl(e,"event9",",",2));p&&(e=s.apl(e,"event86",",",2));k||(e=s.apl(e,"event113",",",2));h&&(e=s.apl(e,"event230",",",2));for(f=0;f<n.length;f++)"undefined"!==typeof n[f].ItemDiscountPerUnit&&0<n[f].ItemDiscountPerUnit&&(e=s.apl(e,"event19",",",2)),"undefined"!==typeof n[f].DistributedOrderDiscountPerUnit&&0<n[f].DistributedOrderDiscountPerUnit&&(e=s.apl(e,"event13",",",2)),"undefined"!==typeof n[f].Warranty&&"true"===n[f].Warranty.toLowerCase()&&
(e=s.apl(e,"event30",",",2))}return e});g("prop2","Checkout");g("eVar17",function(){var e=c("CheckoutGuestVsRegistered",d);var f=c("CheckoutSummary",d);try{_dsgTag.previousPageValues.ExternalCheckout?e+=" - "+_dsgTag.previousPageValues.ExternalCheckout:f&&"undefined"!==typeof f.payment&&"applepay"===f.payment.payment_processor.processor.toLowerCase()&&(e+=" - ApplePay")}catch(ia){}return e});g("eVar13",function(){return c("CartID",d)});_dsgTag.HelperFunctions.DeleteValue("TagCheckoutProgress")}function z(d){g("pageName",
function(){var e="",f=c("StaticPageID",d),g=c("PageName",d)||document.title;g&&(e=_dsgTag.currentWebsite.Abbreviation+": Static: "+(f?f+" - ":"")+g);return e});g("prop2","Static");var e=new Date(Date.now());e.setSeconds(e.getSeconds()+15);_dsgTag.HelperFunctions.WriteCookieValue("TAG_Static",s.pageName+"|"+s.prop2,e,!0)}function A(d){g("pageName",function(){var e="",f=c("CategoryID",d),g=c("CategoryName",d),l=c("FamilyID",d),p=c("FamilyName",d),h=c("PageType",d).toLowerCase();if(h)switch(h){case "category":case "category page":case "department page":case "department":h=
"Category";break;case "family":case "family page":h="Family";break;case "custom landing - family":h="Custom Landing";break;case "hyper category - family":h="Hyper-Category";break;default:h="Index"}else h="Index";if(f&&0==f.indexOf("hc")||l&&0==l.indexOf("hc"))h="Hyper-Category";else if(f&&0==f.indexOf("clp")||l&&0==l.indexOf("clp"))h="Custom Landing";f&&g&&h?(e=_dsgTag.currentWebsite.Abbreviation+": Shopping: ",e+=h+": "+f+" - "+g):l&&p&&h?(e=_dsgTag.currentWebsite.Abbreviation+": Shopping: ",e+=
h+": "+l+" - "+p):g&&h?(e=_dsgTag.currentWebsite.Abbreviation+": Shopping: ",e+=h+": "+g):p&&h?(e=_dsgTag.currentWebsite.Abbreviation+": Shopping: ",e+=h+": "+p):h&&(e=_dsgTag.currentWebsite.Abbreviation+": Shopping: ",e+=h);return e});g("prop2",function(){var e=c("PageType",d).toLowerCase();var f=c("CategoryID",d),g=c("FamilyID",d);if(e)switch(e){case "category":case "category page":case "department page":case "department":e="Proxy Category";break;case "family":case "family page":e="Proxy Family";
break;case "custom landing - family":case "custom landing - family page":e="Proxy Custom Landing";break;case "hyper category - family":case "hyper category - family page":e="Proxy Hyper-Category";break;default:e="Proxy Index"}else e="Proxy Index";if(f&&0==f.indexOf("hc")||g&&0==g.indexOf("hc"))e="Hyper-Category";else if(f&&0==f.indexOf("clp")||g&&0==g.indexOf("clp"))e="Custom Landing";return e})}function C(){g("pageName",function(){var c=_dsgTag.currentWebsite.Abbreviation+": Store Locator: Index: ",
d=window.location.pathname;d=d.replace("/golfgalaxy","");(d=d.replace(/(^(\/)|(\/)$)/g,""))?(d=d.split("/"),0<d.length&&(c+=d[0].toUpperCase()),1<d.length&&(c+=" - "+d[1].replace(/\b[a-z]/g,function(c){return c.toUpperCase()}))):c+="Entire USA";return c});g("prop2","Store Locator")}function p(){g("eVar38",function(){return _dsgTag.DataLayer.GetValue("StoreLocatorStoreNumber")});g("events",function(){var c=s.events;return c=s.apl(c,"event34",",",2)});g("pageName",function(){if("true"===_dsgTag.DataLayer.GetValue("StoreLocatorStoreAddress"))return"";
var c=_dsgTag.currentWebsite.Abbreviation+": Store Locator: Local: ",d="",e="",f=_dsgTag.DataLayer.GetValue("StoreLocatorStoreAddress").split(",");2==f.length?(splitResults=/ (.+) (\w{2} \d{5})/.exec(f[1]),2<splitResults.length&&(f[1]=splitResults[1],f[2]=splitResults[2])):3<f.length&&(f=[f.slice(0,f.length-2).join(","),f[f.length-2],f[f.length-1]]);if(3==f.length){baseCity=f[1].trim();e=f[2].trim().split(" ");2==e.length&&(d=e[0].trim());cityWords=baseCity.split(" ");for(e=0;e<cityWords.length;e++)cityWords[e]=
cityWords[e].charAt(0).toUpperCase()+cityWords[e].substring(1).toLowerCase();e=cityWords.join(" ")}return c+=d+": "+e+": Store "+_dsgTag.DataLayer.GetValue("StoreLocatorStoreNumber")});g("prop2","Store Locator")}function l(){if(0<document.querySelectorAll("#search_address").length){if("undefined"!==typeof jQuery)jQuery(window).on("AJAXStoreSearch",function(c,d){"undefined"===typeof d&&"undefined"!==typeof c.originalEvent&&"undefined"!==typeof c.originalEvent.detail&&(d=c.originalEvent.detail);_dsgTag.EventHandlers.TriggerEvent(c.type,
d)});var c=_dsgTag.HelperFunctions.GetCookieValue("TAG_Static");_dsgTag.HelperFunctions.DeleteCookie("TAG_Static");c&&(s.saveValueForNextPageView("v27",c.split("|")[0]),s.saveValueForNextPageView("v28",c.split("|")[1]));return!0}_dsgTag.isIFrame=!1;_dsgTag.CustomerIDs.UpdateAllCustomerIDs();g("pageName",_dsgTag.currentWebsite.Abbreviation+": Store Locator: "+document.title)}function G(){g("pageName",function(){return _dsgTag.currentWebsite.Abbreviation+": Online Circular"});g("prop2","Weekly Ad")}
function F(d){g("prop16",function(){return c("OrderID",d)});g("pageName",function(){return _dsgTag.currentWebsite.Abbreviation+": My Account: Order Info: Order Tracking"});g("prop2","My Account")}function I(d){g("prop16",function(){return c("OrderID",d)});g("prop2","My Account")}function K(){g("pageName",function(){return _dsgTag.currentWebsite.Abbreviation+": Help Desk: Track Order"});g("prop2","Help Desk")}function J(d){g("prop74",function(){return c("AddressCount",d)})}function R(){g("pageName",
_dsgTag.currentWebsite.Abbreviation+": My Account: Email OTP Challenge");g("prop2","My Account")}function N(){var c=window.location.pathname.split("/"),d=_dsgTag.currentWebsite.Abbreviation+": My Account: Account Log On";c[3]&&("identifier"==c[3].toLowerCase()?d+=" - Identifier":"password"==c[3].toLowerCase()&&(d+=" - Password"));g("pageName",d);g("prop2","My Account")}function X(){var c=window.location.pathname.split("/"),d=_dsgTag.currentWebsite.Abbreviation+": My Account: Account Creation";c[3]&&
("identifier"==c[3].toLowerCase()?d+=" - Identifier":"password"==c[3].toLowerCase()&&(d+=" - Password"));g("pageName",d);g("prop2","My Account");g("eVar30","Web Store");g("events",s.apl(s.events,"event18",",",2))}function S(){g("pageName",function(){var c=s.dsgPageNameLookup();return c?c.name:_dsgTag.currentWebsite.Abbreviation+": My Account: Summary"});g("prop2","My Account")}function Q(){g("pageName",_dsgTag.currentWebsite.Abbreviation+": My Account: Lists");g("prop2","My Account")}function Ba(){g("pageName",
_dsgTag.currentWebsite.Abbreviation+": My Account: View List");g("prop2","My Account")}function W(d){"upcoming"===c("AppointmentTab",d)?g("pageName",_dsgTag.currentWebsite.Abbreviation+": My Account: Upcoming Appointments"):"past"===c("AppointmentTab",d)&&g("pageName",_dsgTag.currentWebsite.Abbreviation+": My Account: Past Appointments");g("prop72","appointmentsPresent|"+c("AppointmentCount",d));g("prop2","My Account")}function na(){g("pageName",_dsgTag.currentWebsite.Abbreviation+": My Account: Shared List");
g("prop2","My Account");_dsgTag.HelperFunctions.GetQueryStringValue("listid")&&g("eVar158",_dsgTag.HelperFunctions.GetQueryStringValue("listid"))}function P(){g("pageName",function(){return _dsgTag.currentWebsite.Abbreviation+": Help Desk: "+_dsgTag.pageType.Name});g("prop2","Chat");g("prop16",function(){scrapedOrderID="";for(var c=document.querySelectorAll("script:not([src])"),d=0;d<c.length&&!scrapedOrderID;d++)(scrapedScript=/"Incident_CustomFields_c_ordernum_dsg":"(\d{11})"/.exec(c[d].innerHTML))&&
1<scrapedScript.length&&(scrapedOrderID=scrapedScript[1]);return scrapedOrderID});g("eVar46",function(){a="";0<=window.location.href.indexOf("chat_landing")&&(a="Oracle Chat");return""});g("eVar57",function(){var c="";if(0<=window.location.href.indexOf("aos_")||0<=window.location.href.indexOf("AssociateKioskDSG"))c="unknown: 000000";return c});g("eVar64",function(){var c="";if(0<=window.location.href.indexOf("aos_")||0<=window.location.href.indexOf("AssociateKioskDSG"))_dsgTag.experience=c="Kiosk";
return c});g("events",function(){events="";0<=window.location.href.indexOf("chat_landing")&&(events="event47");return""})}function aa(){g("pageName",function(){try{var c="Unknown",d=document.title.indexOf(" | ");c=0>d?document.title:document.title.substring(0,d);return"DSG: ProTips: "+c}catch(ma){return"err"}});g("prop2","ProTips")}function T(){g("pageName",function(){var c=window.location.pathname;return 2<=c.split(/[/.]/).length?"DKS: ScoreCard: "+(""!==c.split(/[/.]/)[1]?c.split(/[/.]/)[1]:"Home"):
""});g("prop2","ScoreCard")}function xa(){return!0}function U(d){var e=document.title.split("|")[0].trim();switch(c("PageURL",d).split("/")[3]){case "a":var f="SEO Family Page";break;case "o":f="SEO Landing Page"}g("pageName",_dsgTag.currentWebsite.Abbreviation+": "+f+": "+e);g("prop2",f)}function Y(d){var e=c("PageURL",d).split("/")[3];t(d);switch(e){case "a":var f="Adeptmind Product Details"}g("pageName",_dsgTag.currentWebsite.Abbreviation+": "+f+": "+c("ProductID",d)+" - "+c("ProductName",d));
g("prop2",f)}function ea(){function c(){window.location.href=k}var d=_dsgTag.HelperFunctions.GetQueryStringValue("carrier_moniker"),e=_dsgTag.HelperFunctions.GetQueryStringValue("order_number");g("pageName",_dsgTag.currentWebsite.Abbreviation+": Order Tracking Redirect");g("prop2","Order Tracking Redirect");e&&g("prop16",e);var f=window.location.search.substring(1).split("&");e=[];for(var l=0;l<f.length;l++){var p=f[l].split("=")[0],h=f[l].split("=")[1];"carrier_moniker"!=p&&("tracking_number"==p&&
(p="tracking_numbers"),"undefined"!==typeof h&&e.push(p+"="+h))}e=e.join("&");f="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:f="dickssportinggoods";break;case _dsgTag.Websites.GolfGalaxy:f="golfgalaxy"}var k="https://tracking.narvar.com/"+f+"/tracking/"+d+(e?"?"+e:"");s.postTrackCallbackList.push(c);setTimeout(c,5E3)}function E(){function c(){window.location.href=e}var d=_dsgTag.HelperFunctions.GetQueryStringValue("utm_source")||"unknown";g("pageName",_dsgTag.currentWebsite.Abbreviation+
": Peloton Redirect");g("prop2","Peloton Redirect");var e="https://onepeloton.com/benefits/dicks-sporting-goods/get-started?token=dsg&utm_source="+d;s.postTrackCallbackList.push(c);setTimeout(c,5E3)}function L(){g("pageName",_dsgTag.currentWebsite.Abbreviation+": "+_dsgTag.pageType.Name+": "+document.title);g("prop2","Blog")}function Z(){g("pageName",_dsgTag.currentWebsite.Abbreviation+": "+_dsgTag.pageType.Name+": "+document.title);g("prop2",_dsgTag.pageType.Name)}function ba(d){g("prop2","Services");
g("pageName",function(){var c=_dsgTag.currentWebsite.Abbreviation+": Services: ",d=window.location.pathname.split("s/scheduling/");(d=2===d.length?d[1]:null)?/s\/\d+/i.test(d)?c+="Family Selection":/f\/[\-\w\d]+/i.test(d)?c+="Details Selection":/book\/contact/i.test(d)?c+="Participant Information":/book\/questions/i.test(d)?c+="Questions":/book\/waiver/i.test(d)?c+="Waiver":/book\/review/i.test(d)?c+="Review":/book/i.test(d)?c+="Details Selection":/a\/[\-\w\d]+\/reschedule/i.test(d)?c+="Reschedule Appointment":
/a\/[\-\w\d]+\/cancel/i.test(d)?c+="Cancel Appointment":/a\/[\-\w\d]+/i.test(d)&&(c+="Manage Appointment"):c+="Store Search";return c});g("eVar110",function(){return c("ServiceName",d)});g("eVar155",function(){return c("ServiceStoreNumber",d)})}function fa(){g("pageName",function(){var c=_dsgTag.HelperFunctions.GetQueryStringValue("offer_entity_code");_dsgTag.currentWebsite.Abbreviation+": Team Packet"+(c?": "+c:"")});g("prop2","Promotion")}function ra(){g("pageName",function(){for(var c=document.title.split("-"),
d=_dsgTag.currentWebsite.Abbreviation+": Investor Relations",e=1;e<c.length;e++)d+=": "+c[e].trim();return d});g("prop2","Investor Relations")}function ka(){g("pageName",function(){var c=document.title.split("|"),d=_dsgTag.currentWebsite.Abbreviation+": Sports Matter";1<c.length&&(d+=": "+c[0].trim());return d});g("prop2","Sports Matter")}function ua(){return!0}var ta=!1,O=0;_dsgTag.FunctionRepository.ProcessPagePostRender=function(c,e){if(ta)_dsgTag.HelperFunctions.DebugLog("ProcessPageRender ignoring page view event!"),
ta=!1;else{window._dsgTag.previousPageValues={};try{var f=JSON.parse(window._dsgTag.HelperFunctions.GetValue("PreviousPageValues"));f&&(window._dsgTag.previousPageValues=f)}catch(V){_dsgTag.HelperFunctions.DebugLog("Error parsing PreviousPageValues from local storage: "+V.message,!0)}window._dsgTag.HelperFunctions.DeleteValue("PreviousPageValues");_dsgTag.DataLayer.PassValuesToFunction("ALL",d,e);O++}};_dsgTag.isAOS&&!_dsgTag.HelperFunctions.GetValue("AOSStoreID")&&(ta=!0,clearTimeout(s.noPageViewTimeout));
if(1==window.EnableQuickPageHit){var Ea=_dsgTag.pageType.Name+" QuickPageHit";s.events=s.apl(s.events,"event97",",",2);s.prop1=Ea;s.linkTrackVars=s.apl(s.linkTrackVars,"prop1",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event97",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(Ea)}_dsgTag.pageType!==_dsgTag.PageTypes.Home||_dsgTag.isAOS||(_dsgTag.FunctionRepository.ProcessPagePostRender(),ta=!0);e.AddEventHandler("NewPageView",_dsgTag.FunctionRepository.ProcessPagePostRender)})()};_dsgTag.FunctionRepository.SetupAdobeEventCode=function(e){(function(){function g(c){try{_dsgTag.HelperFunctions.DebugLog("Manually Triggering ShippingMethodUpdated");var d=[],e,f,g;c=JSON.parse(JSON.stringify(c));if(c.checkout)for(c.checkout.shipping&&"undefined"!==typeof c.EDD&&(c.checkout.shipping.information=c.EDD),c=c.checkout.shipping,e=0;e<c.available.groups.length;e++){var p=c.available.groups[e],h,k;for(f=0;f<c.selected.groups.length;f++)c.selected.groups[f].group_number==p.group_number&&
(h=c.selected.groups[f]);c.information.estimated_delivery&&"string"===typeof c.information.estimated_delivery.analytics?c.information.estimated_delivery.analytics=JSON.parse(c.information.estimated_delivery.analytics):"string"===typeof c.information.analytics&&(c.information.estimated_delivery={},c.information.estimated_delivery.analytics=JSON.parse(c.information.analytics));for(f=0;f<c.information.estimated_delivery.groups.length;f++)c.information.estimated_delivery.groups[f].group_number==p.group_number&&
(k=c.information.estimated_delivery.groups[f]);for(f=0;f<p.items.length;f++){var n=p.items[f].sku,q=h.mode.description,t=-1,u="",v={};for(g=0;g<p.modes.length;g++)if(p.modes[g].description===q){t=g;break}if("undefined"!==typeof k.dates)u=k.dates[t];else if("undefined"!==typeof k.edd_skus)for(var B=0;B<k.edd_skus.length;B++)if(k.edd_skus[B].sku===n&&(u=k.edd_skus[B].dates[t],"undefined"!==typeof c.information.estimated_delivery.analytics)){var A=c.information.estimated_delivery.analytics.analyticsList||
c.information.estimated_delivery.analytics.lines;v.version=c.information.estimated_delivery.analytics.lines?"v2":"v1";for(var P=0;P<A.length;P++)k.edd_skus[B].sku.toString()===A[P].sku.toString()&&(v=A[P])}u&&(u?(0<=u.indexOf("Est. Delivery:")?(u=u.split(":")[1],u=u.trim().split("-")[1]||u,u=u.trim().split(" ")[1]):0<=u.indexOf(",")&&(u=u.split(",")[1]),month=parseInt(u.split("/")[0])-1,day=parseInt(u.split("/")[1]),today=new Date(Date.now()),u=new Date(today.getFullYear()+(month<today.getMonth()?
1:0),month,day),u=u.getMonth()+1+"/"+u.getDate()+"/"+u.getFullYear()):u="Not Available",d.push({ProductID:n.trim(),ShippingMethod:q.trim(),EstimatedDeliveryDate:u.trim(),EDDReduction:"",AdditionalAnalyticsInfo:v}))}}try{if(c&&c.EDD&&c.EDD.sku_estimated_delivery_list){g=[];for(e=0;e<c.EDD.sku_estimated_delivery_list.length;e++){var z=c.EDD.sku_estimated_delivery_list[e].sku,C=c.EDD.sku_estimated_delivery_list[e].estimated_delivery_list;p="";for(f=0;f<c.ProductArray.length;f++)if(c.ProductArray[f].ProductSKU===
z){p=c.ProductArray[f].ProductID;break}if(p&&z&&C)for(f=0;f<C.length;f++)if("standard"==C[f].shipping_mode_service_level.toLowerCase()){var D=(new Date(C[f].promise_start_edd_date)).getTime(),U=(new Date(C[f].promise_end_edd_date)).getTime();if(!D&&U>Date.now()||D&&U>D&&D>Date.now()){var Y=Math.ceil((D-Date.now())/864E5),ea=Math.ceil((U-Date.now())/864E5);g.push(s.buildProductString(p,0,0,[],["evar61="+z,"evar90="+(Y?Y+"-":"")+ea+" days"]))}break}}0<g.length&&(s.products=g.join(","),s.linkTrackVars=
s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent("CheckoutAction"))}}catch(E){_dsgTag.HelperFunctions.DebugLog("Error calculating v90 shipping estimate: "+E.message,!0)}_dsgTag.EventHandlers.TriggerEvent("ShippingMethodUpdated",{ProductShippingMethods:d})}catch(E){_dsgTag.HelperFunctions.DebugLog("Error triggering fake ShippingMethodUpdated event: "+E.message,!0)}}function c(c){var d=JSON.parse(JSON.stringify(c)),e="string"==typeof d.EDD.analytics?JSON.parse(d.EDD.analytics):!1,f=_dsgTag.DataLayer.GetValue("CartSKUEcodeLookup");
for(sku in f)f[sku]={ecode:f[sku]};for(var g=0;g<d.EDD.sku_estimated_delivery_list.length;g++){for(var p={},h=0;h<d.EDD.sku_estimated_delivery_list[g].estimated_delivery_list.length;h++)d.EDD.sku_estimated_delivery_list[g].estimated_delivery_list[h].shipping_mode_service_level&&(p[d.EDD.sku_estimated_delivery_list[g].estimated_delivery_list[h].shipping_mode_service_level.toLowerCase()]=d.EDD.sku_estimated_delivery_list[g].estimated_delivery_list[h]);f[d.EDD.sku_estimated_delivery_list[g].sku].deliveryData=
p}for(g=0;e&&g<e.lines.length;g++)h=e.lines[g],f[h.sku].additionalData=f[h.sku].additionalData||{},f[h.sku].additionalData[h.serviceLevel]=h;e=[];for(sku in f){d=null;for(g=0;g<c.checkout.shipping.available.groups.length;g++)for(h=0;h<c.checkout.shipping.available.groups[g].items.length;h++)if(c.checkout.shipping.available.groups[g].items[h].sku==sku)for(p=0;p<c.checkout.shipping.selected.groups.length;p++)c.checkout.shipping.selected.groups[p].group_number==c.checkout.shipping.available.groups[g].group_number&&
(d=c.checkout.shipping.selected.groups[p].mode);d&&f[sku].deliveryData&&f[sku].additionalData&&(g={ecode:f[sku].ecode},_dsgTag.HelperFunctions.DeepExtend(g,f[sku].deliveryData[d.description.toLowerCase()],f[sku].additionalData[f[sku].deliveryData[d.description.toLowerCase()].edd_service_level]),e.push(g))}_dsgTag.HelperFunctions.DebugLog("Manually Triggering ShippingMethodUpdatedV2");_dsgTag.EventHandlers.TriggerEvent("ShippingMethodUpdatedV2",{ShipData:e})}function d(d,e){if("undefined"!=typeof e&&
"undefined"!=typeof e.ActionType){var f=e.ActionType,l=!1;if(3===f.split(":").length&&/^group \d+/i.test(f.split(":")[2]))f=f.replace(/group \d+ /ig,"");else if(2===f.split(":").length&&/promo/i.test(f.split(":")[0])){var h=f.split(":")[0],p=f.split(":")[1];f=h=h.replace(new RegExp(p,"gi"),"<CODE>")}else 2===f.split(":").length&&"card type applied"===f.split(":")[0].toLowerCase()?(h=f.split(":")[1].toUpperCase(),s.eVar14=h,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar14",",",2),f=f.split(":")[0],l=
!0,"afterpay"===h.toLowerCase()&&s.saveValueForNextPageView("AfterPay",!0)):2===f.split(":").length&&"updated tip amount"===f.split(":")[0].toLowerCase()&&e.TipAmount&&(s.eVar123=e.TipAmount,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar123",",",2),f=f=f.split(":")[0],l=!0);h=[{n:"AddAdditionalPickupPersonSuccess"},{n:"AddAdditionalPickupPersonSuccess"},{n:"AddAdditionalPickupPersonClick"},{n:"Adding gift card failed"},{n:"ApplyPickYourPointsDay"},{n:"ApplyPromoCodeClick"},{n:"ApplyReward",f:function(){s.events=
s.apl(s.events,"event159",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event159",",",2);s.events=s.apl(s.events,"event21",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event21",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);return!0}},{n:"Attempt to add gift card initiated"},{n:"Attempt to add promo"},{n:"Attempt to remove gift card initiated"},{n:"AvsV2:SuggestedAddress:ModalDisplayed"},{n:"BillingAddressChangeClick"},{n:"Button:Clicked:Login",p3:0,f:function(){_dsgTag.HelperFunctions.WriteCookieValue("v1",
"Checkout_ScoreCard_Login",!0)}},{n:"Card type applied"},{n:"Checkbox:BillingShipping Same:CHECKED"},{n:"Checkbox:BillingShipping Same:UNCHECKED"},{n:"CheckoutHeaderCartClick"},{n:"CheckoutHeaderLogoClick"},{n:"CheckoutSignIn:Button:Login:Clicked"},{n:"Delete shipping address : clicked"},{n:"EasyRewardApply:Button:Login:Clicked"},{n:"edd data ready",p3:0,f:function(){g(e)}},{n:"edd_v2 data ready",p3:0,f:function(){c(e)}},{n:"easyrewardsshown",p3:0,f:function(){s.events=s.apl(s.events,"event138",",",
2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event138",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);return!0}},{n:"Edit shipping address : clicked"},{n:"Failed to Apply promo",f:function(){var c=e.ActionType.split(":")[1];_dsgTag.EventHandlers.TriggerEvent("PromotionEntered",{PromotionCode:c,PromotionSuccess:"N"})}},{n:"FormGroup:Valid:Contact",p3:0,f:function(){_dsgTag.CustomerIDs.UpdateAllCustomerIDs()}},{n:"Gift Card code is empty"},{n:"Gift Card form is empty"},{n:"Gift Card pin is empty"},
{n:"Giftcard added successfully"},{n:"Giftcard removed successfully"},{n:"GiftingEnabled",f:function(){s.events=s.apl(s.events,"event221",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event221",",",2);e.GiftMessage&&"true"==e.GiftMessage.toString().toLowerCase()&&(s.events=s.apl(s.events,"event117",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event117",",",2));s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);return!0}},{n:"MarketingOptIn: true"},{n:"Opted in to Marketing updates on confirmation"},
{n:"Opted in to SMS updates on confirmation"},{n:"payment page - paypal payment cancelled",p3:0,f:function(){s.eVar17=_dsgTag.DataLayer.GetValue("SignedInBoolean")?"Registered":"Guest";s.saveValueForNextPageView("ExternalCheckout","");s.linkTrackVars=s.apl(s.linkTrackVars,"eVar17",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);return!0}},{n:"PLACE ORDER Button : clicked"},{n:"PickupContactChangeClick"},{n:"po box edd message displayed"},{n:"PromoRewards:Button:Login:Clicked"},{n:"RadioButton:Delivery Methods: Expedited"},
{n:"RadioButton:Delivery Methods: Express"},{n:"RadioButton:Delivery Methods: Standard"},{n:"Remove giftcard failed"},{n:"RemovePickYourPointsDay"},{n:"Save same day : clicked"},{n:"Save shipping address : clicked"},{n:"Save shipping address clicked: After entering valid address information"},{n:"Save shipping address clicked: Without completing address information"},{n:"Save this address checked: After entering valid address information"},{n:"Save this address checked: With invalid address information"},
{n:"Save this address unchecked: After entering valid address information"},{n:"Save this address unchecked: With invalid address information"},{n:"SaveCreditCardCheckOff-AthleteUnchecked"},{n:"SaveCreditCardCheckOff-InitialLoad"},{n:"SaveCreditCardCheckOn-AthleteChecked"},{n:"SavePaymentForm-InitialLoad"},{n:"SaveThisAddress:Checked:FromAddSavedAddressWithInvalidAddressInformation"},{n:"SaveThisAddress:Checked:FromAddSavedAddressWithValidAddressInformation"},{n:"SaveThisAddress:Unchecked:FromAddSavedAddressWithInvalidAddressInformation"},
{n:"SaveThisAddress:Unchecked:FromAddSavedAddressWithValidAddressInformation"},{n:"SavedPaymentForm-PendingShipment"},{n:"SavedPaymentForm-SavedPaymentRemoved"},{n:"ScoreCard:applyScoreCardByCard:fail"},{n:"ScoreCard:applyScoreCardByCard:success"},{n:"ScoreCard:applyScoreCardByPhone:fail"},{n:"ScoreCard:applyScoreCardByPhone:success"},{n:"ScoreCard:deleteScoreCard:success"},{n:"shipmodechangeclick",p3:0,f:function(){e.EDD.analytics?c(e):g(e)}},{n:"Shipping address from saved address list : selected"},
{n:"ShippingAddressChangeClick"},{n:"ShippingResiliency",f:function(){f=f+=":"+("undefined"!==typeof e.ShippingResiliencyFallback?e.ShippingResiliencyFallback.toString():"unknown")}},{n:"SmsOptIn: true"},{n:"stockqty ready",p3:0,f:function(){_dsgTag.EventHandlers.TriggerEvent("CheckoutStockReady",e)}},{n:"Successfully Applied Promo",f:function(){var c=e.ActionType.split(":")[1];_dsgTag.EventHandlers.TriggerEvent("PromotionEntered",{PromotionCode:c,PromotionSuccess:"Y"})}},{n:"Successfully Removed Promo"},
{n:"Updated tip amount"},{n:"User Qualified for Create Account Form"},{n:"User Successfully Submitted Create Account Form on Order Confirmation Page"}];for(p=0;p<h.length;p++)if(0<=f.toLowerCase().indexOf(h[p].n.toLowerCase())){if("undefined"===typeof h[p].p3||"function"===typeof h[p].f){if("function"===typeof h[p].f){var k=h[p].f();l=l||k}"undefined"===typeof h[p].p3&&(s.prop3=f.toLowerCase(),s.linkTrackVars=s.apl(s.linkTrackVars,"prop3",",",2),l=!0);l&&s.triggerEvent(d.type)}break}}}var f=[],n=
{ReviewSummaryClick:{eventID:103,dedupe:!1},CartAddToReachSignInButtonClick:{eventID:104,dedupe:!1},BOPISTestAvailable:{eventID:160,dedupe:!1},OrderCancel:{eventID:23,dedupe:!1},HasCombinedAccounts:{eventID:48,dedupe:!1},StartSearch:{eventID:64,dedupe:!0},SuccessfulSignIn:{eventID:93,dedupe:!0},AEMSurveyComplete:{eventID:98,dedupe:!1},CopyCode:{eventID:114,dedupe:!1},GetNextOrderHistoryPage:{eventID:115,dedupe:!1},ViewReward:{eventID:116,dedupe:!1},GetNextPointsHistoryPage:{eventID:121,dedupe:!1},
SubscriptionsSave:{eventID:123,dedupe:!1},ManageLoginEmailSave:{eventID:124,dedupe:!1},"ApplePay-ButtonClicked":{eventID:135,dedupe:!1},ShowProductOptions:{eventID:139,dedupe:!0},"ApplePay-ButtonRender":{eventID:146,dedupe:!1},"ApplePay-SessionCancelled":{eventID:147,dedupe:!1},"ApplePay-SessionAborted":{eventID:148,dedupe:!1},TapAheadClick:{eventID:152,dedupe:!1},SignInClick:{eventID:158,dedupe:!1,delay:!1},LearnMoreClick:{eventID:163,dedupe:!1},ManageAccountClick:{eventID:164,dedupe:!1},ApplyTodayClick:{eventID:165,
dedupe:!1},SameDayDeliverySelected:{eventID:172,dedupe:!1},SameDayDeliveryEnabled:{eventID:173,dedupe:!1},SameDayDeliveryATC:{eventID:174,dedupe:!1},SponsoredProductsShown:{eventID:175,dedupe:!1},EmptyCartSignInLinkClick:{eventID:195,dedupe:!1},EmptyCartSignUpLinkClick:{eventID:196,dedupe:!1},CloseTicker:{eventID:202,dedupe:!1},CartAltSignInPlacementButtonClick:{eventID:220,dedupe:!1},CartGiftingToggled:{eventID:221,dedupe:!1},ChatEnded:{eventID:227,dedupe:!1},AppClientId:{eventID:228,dedupe:!1},
WebClientId:{eventID:229,dedupe:!1},CartOpenZipConfirmPanel:{eventID:231,dedupe:!1},CartZipConfirmationCancel:{eventID:232,dedupe:!1},CartConfirmAndCheckout:{eventID:233,dedupe:!1},"Cart Active PYPD: true":{eventID:240,dedupe:!1},"Cart Active PYPD: false":{eventID:241,dedupe:!1},"Checkout Active PYPD: true":{eventID:242,dedupe:!1},"Checkout Active PYPD: false":{eventID:243,dedupe:!1},socialSignInGoogleLoginClick:{eventID:244,dedupe:!1},socialSignInAppleLoginClick:{eventID:245,dedupe:!1},socialSignInGoogleCreateAccountClick:{eventID:246,
dedupe:!1},socialSignInAppleCreateAccountClick:{eventID:247,dedupe:!1},cancelLinkEvent:{eventID:248,dedupe:!1},continueLinkEvent:{eventID:249,dedupe:!1}};if(_dsgTag.TestEvents)for(var k=0;k<_dsgTag.TestEvents.length;k++)n[_dsgTag.TestEvents[k].eventName]={eventID:_dsgTag.TestEvents[k].eventID,dedupe:"undefined"!==typeof _dsgTag.TestEvents[k].dedupeEvent?_dsgTag.TestEvents[k].dedupeEvent:!1};_dsgTag.FunctionRepository.TriggerBasicAnalyticsEvent=function(c,d){try{var e="event"+d.toString();s.events=
s.apl(s.events,e,",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,e,",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c);s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}catch(F){_dsgTag.HelperFunctions.DebugLog("Error triggering basic analytics event: "+F.message,!0)}};var q=[],h;for(h in n)(function(c){var d=n[c].eventID,e=n[c].dedupe;f.push({name:c,delay:"undefined"!==typeof n[c].delay?n[c].delay:!0,handler:function(c){if(!e||"function"==typeof q.indexOf&&
0>q.indexOf(d))_dsgTag.FunctionRepository.TriggerBasicAnalyticsEvent(c.type,d),q.push(d)}})})(h);f.push({name:"3rdPartyOrder",delay:!0,handler:function(c){_dsgTag.thirdPartyOrderList&&0<_dsgTag.thirdPartyOrderList.length&&(s.eVar140=_dsgTag.thirdPartyOrderList[0]+":"+_dsgTag.thirdPartyOrderList.slice(1).join(","),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar140",",",2),s.triggerEvent(c.type))}});f.push({name:"AddOnsShown",delay:!0,handler:function(c,d){c=d.eCodes;"string"===typeof c&&(c=c.split(","),
s.prop31=c.slice(0,3).join(","),s.linkTrackVars=s.apl(s.linkTrackVars,"prop31",",",2),s.linkTrackEvents="None",s.linkTrackVars=s.baseLinkTrackVars)}});f.push({name:"AddToCart",delay:!0,handler:function(c,d){if("undefined"!=typeof d){a:{try{var e=d.ItemsAddedToCart||d.ProductsAddedToCart;if("undefined"!==typeof e){"undefined"===typeof e.length&&(e=[e]);var f=[];if(0<e.length){for(h=0;h<e.length;h++){var g=e[h],l=g.ProductID,p=g.ProductSku||g.ProductSKU,k=parseInt(g.ProductQty),n=g.CurrentPricePerUnit.toString().replace(/[^0-9.]/g,
"")*k,q=g.CartAddSource||g.CartAdditionSource,t=[],u=[];if("undefined"===typeof g.IsMainItem||g.IsMainItem)u.push("evar82=Main"),"PDP"===q&&(q="Product Detail Page");else{var v="";if(_dsgTag.pageType===_dsgTag.PageTypes.ProductDetails){v="PDP";q="Product Page Add On";var B=_dsgTag.DataLayer.GetValue("ProductID");u.push("evar31="+B);u.push("Bundle"==_dsgTag.DataLayer.GetValue("ProductPageTemplateType")?"evar52=Product_PageElement_product4_rr":"evar52=Product_PageElement_product3_rr")}else _dsgTag.pageType===
_dsgTag.PageTypes.Cart&&(v="Cart",q="Cart Page Add On",u.push("evar52=Cart_PageElement_cart2_rr"));u.push("evar82=Add On");u.push("evar49="+_dsgTag.DataLayer.GetValue("PriceType",g));v="Cross Sell: "+v+" Add On";u.push("evar32="+v);u.push("evar33="+v);u.push("evar58="+v)}u.push("evar12="+q);u.push("evar61="+p);if("undefined"!==typeof g.FulfillmentMethod){var A=s.DetermineFulfillmentMethod(g.FulfillmentMethod);A&&(u.push("evar51="+A.name),A===s.fulfillmentMethodConstants.BOPIS?"undefined"!==typeof g.FulfillmentStore&&
(u.push("evar40="+g.FulfillmentStore),"undefined"!==typeof _dsgTag.LowStockBOPISStore&&""!==_dsgTag.LowStockBOPISStore&&u.push("evar41=ChangeStore:"+_dsgTag.LowStockBOPISStore.toString()+":"+g.FulfillmentStore.toString()+":"+_dsgTag.LowStockBOPISStoreSuggestionCount.toString())):A===s.fulfillmentMethodConstants.BOPL&&"undefined"!==typeof g.FulfillmentStore&&u.push("evar40="+g.FulfillmentStore))}0<k&&u.push("evar10="+k);0<n&&(u.push("evar99="+n.toFixed(2)),t.push("event43="+n.toFixed(2)));s.eVar18&&
(v=0,parseInt(s.eVar18)&&(v=parseInt(s.eVar18)),s.eVar18=v+k);g.wasSaveForLater&&(s.events=s.apl(s.events,"event184",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event184",",",2));"undefined"!==typeof g.AvailableQTY&&1<=g.AvailableQTY&&10>=g.AvailableQTY&&u.push("evar26="+g.FulfillmentMethod+":"+g.AvailableQTY);var P=_dsgTag.DataLayer.GetValue("PDPPeopleViewing",d);P&&u.push("evar102="+P);f.push(s.buildProductString(l,0,0,t,u))}d.CartID&&(s.linkTrackVars=s.apl(s.linkTrackVars,"eVar13",",",2),
!(s.eVar13=d.CartID)||_dsgTag.HelperFunctions.GetValue("TagCartID")&&decodeURI(_dsgTag.HelperFunctions.GetValue("TagCartID")).split("|")[0]==d.CartID||(cookieString=d.CartID+"|0000",_dsgTag.HelperFunctions.SaveValue("TagCartID",cookieString)));s.products=f.join(",");s.events=s.apl(s.events,"scAdd",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"scAdd",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);if("y"===d.NewCart.toLowerCase()||
"true"===d.NewCart.toLowerCase())s.events=s.apl(s.events,"scOpen",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"scOpen",",",2);var z=!0;break a}}}catch(T){_dsgTag.HelperFunctions.DebugLog("Failed to process Add To Cart event: "+T.message,!0);z=!1;break a}z=void 0}z&&s.triggerEvent(c.type)}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"AddToFavorites",delay:!0,handler:function(c,d){_dsgTag.EventHandlers.TriggerEvent("AddToList",d)}});f.push({name:"AddToList",delay:!0,
handler:function(c,d){var e,f;"undefined"!=typeof d.AddedFavoriteID?/^\d+$/.test(d.AddedFavoriteID)?f=d.AddedFavoriteID:e=d.AddedFavoriteID:"undefined"!=typeof d.ProductID&&(e=d.ProductID,f=d.ProductSku);d=d.NumberOfLists||0;e||(e=_dsgTag.DataLayer.GetValue("ProductID"));if(e){var g=[];f&&(g.push("evar61="+f),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar61",",",2));d&&(g.push("evar149="+d.toString()),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar149",",",2));s.products=s.buildProductString(e,0,0,[],g);
s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.triggerEvent(c.type)}}});f.push({name:"AJAXStoreSearch",delay:!1,handler:function(c,d){"undefined"!=typeof d&&_dsgTag.queuedStoreSearches.push(d)}});f.push({name:"AlternativeInStockProduct",delay:!0,handler:function(c){s.prop44="Alternative";s.linkTrackVars=s.apl(s.linkTrackVars,"prop44",",",2);s.triggerEvent(c.type)}});f.push({name:"aosStoreInformationPopupCompleted",delay:!1,handler:function(c,d){c=d.StoreNumber;_dsgTag.HelperFunctions.GetValue("AOSStoreID")||
(s.eVar57=c,_dsgTag.HelperFunctions.SaveValue("AOSStoreID",c),_dsgTag.EventHandlers.TriggerEvent("NewPageView"))}});f.push({name:"AnyRoadIframeMessage",delay:!1,handler:function(c,d){"undefined"!=typeof d&&(s.eVar105=d.ecommerce[d.event].products[0].id,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar105",",",2),"purchase"===d.event&&(s.eVar106=d.ecommerce[d.event].actionField.id,s.events=s.apl(s.events,"event201",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event201",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,
"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar106",",",2)),s.triggerEvent(c.type))}});var t=!0;f.push({name:"AnyRoadLoaded",delay:!1,handler:function(){t&&(window.addEventListener("message",function(c){"https://app.anyroad.com"===c.origin&&"object"===typeof c.data&&_dsgTag.EventHandlers.TriggerEvent("AnyRoadIframeMessage",c.data)},!1),t=!1)}});f.push({name:"ApplePay-ButtonClicked",delay:!0,handler:function(){_dsgTag.EventHandlers.TriggerEvent("ExternalCheckout",{type:"ApplePay"})}});
f.push({name:"AthleteConnectionType",delay:!0,handler:function(c,d){if(d.connection){var e=_dsgTag.HelperFunctions.GetValue("AccountConnectionType");e&&e===d.connection||(s.eVar126=d.connection,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar126",",",2),s.triggerEvent(c.type),_dsgTag.HelperFunctions.SaveValue("AccountConnectionType",d.connection))}}});f.push({name:"attentiveEvent",delay:!0,handler:function(c,d){var e=d.event;d=d.creative_id;e&&(s.prop1="attentiveEvent:"+e+":"+d,s.linkTrackVars=s.apl(s.linkTrackVars,
"prop1",",",2),s.triggerEvent(c.type))}});var u=[];f.push({name:"AttributeSelected",delay:!0,handler:function(c,d){"undefined"!=typeof d&&(c=d.Type,"function"==typeof u.indexOf&&0>u.indexOf(c)&&(u.push(c),s.prop73=c,s.linkTrackVars=s.apl(s.linkTrackVars,"prop73",",",2),s.events=s.apl(s.events,"event156",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event156",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2)));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"BatFinderResults",
delay:!0,handler:function(c,d){"undefined"!=typeof d&&(eventName="true"===d.Success?"event56":"event57",s.events=s.apl(s.events,eventName,",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,eventName,",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"BazaarVoiceInteraction",delay:!0,handler:function(c){s.linkTrackVars=s.baseLinkTrackVars+","+s.linkTrackVars;s.triggerEvent(c.type)}});f.push({name:"CancelRequestSubmit",
delay:!0,handler:function(c,d){s.events="";"undefined"!=typeof d&&"undefined"!==typeof d.OrderCancelRequestSuccess&&(d.OrderCancelRequestSuccess&&(s.prop16=d.OrderID,s.linkTrackVars=s.apl(s.linkTrackVars,"prop16",",",2)),s.prop53=d.OrderCancelRequestSuccess.toString(),s.linkTrackVars=s.apl(s.linkTrackVars,"prop53",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CartAction",delay:!0,handler:d});f.push({name:"CartAddToSaveForLater",delay:!0,
handler:function(c,d){s.events="";"undefined"!=typeof d&&(s.products=s.buildProductString(d.ProductID,0,0,[],["evar151="+d.Source]),s.events=s.apl(s.events,"event183",",",2),s.events=s.apl(s.events,"scRemove",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"scRemove",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event183",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar151",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),
s._ignoreCartRemove=!0,s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CartDataUpdated",delay:!0,handler:function(c){s.events="";_dsgTag.DataLayer.PassValuesToFunction(["ProductListArray"],function(c){try{for(var d={},e=0;e<c.length;e++)d[c[e].ProductSKU]=c[e].ProductID;_dsgTag.HelperFunctions.SaveValue("TagCartProducts",JSON.stringify(d))}catch(I){}});_dsgTag.DataLayer.PassValuesToFunction("OrderTotal OrderTax OrderShippingRevenue OrderShippingDiscount ProductListExists CartItemQuantity LoyaltyID CartID".split(" "),
function(c,d,e,f,g,h,p,k){function l(c,d){n.push({name:c,handler:d})}var n=[];l("products",function(){for(var c="",d=_dsgTag.DataLayer.GetValue("ProductListArray"),e=[],f=0;f<d.length;f++){var g=d[f].ProductQty,l=(d[f].CurrentPricePerUnit-d[f].DistributedOrderDiscountPerUnit)*d[f].ProductQty,h=d[f].ShippingPaidPerUnit*d[f].ProductQty,p=d[f].ShippingDiscountPerUnit*d[f].ProductQty,k=d[f].Editable||!1,n=[];n.push("evar61="+d[f].ProductSKU);if("undefined"!==typeof d[f].FulfillmentMethod){var q=s.DetermineFulfillmentMethod(d[f].FulfillmentMethod);
q&&(n.push("evar51="+q.name),(q===s.fulfillmentMethodConstants.BOPIS||q===s.fulfillmentMethodConstants.BOPL)&&d[f].FulfillmentStore&&n.push("evar40="+d[f].FulfillmentStore))}0<h&&n.push("evar98="+h.toFixed(2));0<g&&n.push("evar10="+g);0<l&&n.push("evar99="+l.toFixed(2));0<p&&n.push("evar100="+p.toFixed(2));n.push("evar143="+k.toString());e.push(s.buildProductString(d[f].ProductID,0,0,[],n))}e&&(c=e.join(","));return c});l("eVar11",function(){return g?(subtotal=c-d-e,isNaN(subtotal)&&(subtotal=0),
subtotal.toFixed(2)):""});l("eVar13",function(){!k||_dsgTag.HelperFunctions.GetValue("TagCartID")&&decodeURI(_dsgTag.HelperFunctions.GetValue("TagCartID")).split("|")[0]==k||(cookieString=k+"|0000",_dsgTag.HelperFunctions.SaveValue("TagCartID",cookieString));return k});l("eVar18",function(){return g?h:""});l("eVar21",function(){return p?(_dsgTag.CustomerIDs.UpdateCustomerIDFromParameter("Loyalty",p,"Local"),p):""});l("eVar53",function(){return isNaN(parseFloat(d))?"":parseFloat(d).toFixed(2)});l("eVar96",
function(){return isNaN(parseFloat(e))?"":parseFloat(e).toFixed(2)});l("eVar97",function(){return isNaN(parseFloat(f))?"":parseFloat(f).toFixed(2)});l("eVar118",function(){return _dsgTag.DataLayer.GetValue("LoginID")});0<document.querySelectorAll("div.sign-in-text, p.sign-in-message-text").length&&l("events",function(){return s.apl(s.events,"event170",",",2)});for(var q=0;q<n.length;q++)try{s[n[q].name]=n[q].handler()}catch(Ba){_dsgTag.HelperFunctions.DebugLog("Error processing CartDataUpdated analytics value: "+
Ba.message,!0)}});s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar10",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar11",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar13",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar18",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar40",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar51",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar53",",",
2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar61",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar70",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar96",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar97",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar98",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar99",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar100",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar118",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event44",",",2);s.linkTrackEvents=
s.apl(s.linkTrackEvents,"event170",",",2);s.triggerEvent(c.type);s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CartEditProduct",delay:!0,handler:function(c,d){"undefined"!=typeof d&&(s.products=";"+d.EditedProductID,NaN+d.EditedProductSKU,s.events=s.apl(s.events,"event71",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event71",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type))}});
f.push({name:"CartFulfillmentChanged",delay:!0,handler:function(c,d){s.events="";if("undefined"!=typeof d){var e=d.NewFulfillmentMethod,f=d.UpdateProductId,g=d.UpdateProductSku;Array.isArray(f)&&(f=f[0],g=g[0]);d=[];d.push("evar61="+g);"undefined"!==typeof e&&(e=s.DetermineFulfillmentMethod(e))&&(d.push("evar51="+e.name),e===s.fulfillmentMethodConstants.Standard?d.push("evar40=Ship To Customer"):(e===s.fulfillmentMethodConstants.BOPIS||e===s.fulfillmentMethodConstants.BOPL)&&d.push("evar40=Unknown"));
s.products=s.buildProductString(f,0,0,[],d);s.events=s.apl(s.events,"event52",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event52",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type)}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CartQuantityChanged",delay:!0,handler:function(){s.events="";s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CartRemoveProduct",
delay:!0,handler:function(c,d){s.events="";"undefined"!=typeof d&!s._ignoreCartRemove&&(s.products=";"+d.RemovedProductID,s.eVar18=_dsgTag.DataLayer.GetValue("CartItemQuantity",d),s.events=s.apl(s.events,"scRemove",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"scRemove",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar18",",",2),s.triggerEvent(c.type),s.linkTrackEvents="None",s.linkTrackVars=
s.baseLinkTrackVars);s._ignoreCartRemove=!1;s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CartSanitizationAction",delay:!1,handler:function(c,d){s.events="";if("undefined"!=typeof d){var e=d.ProductID||"UNKNOWN",f=d.ProductSKU||"UNKNOWN",g=d.Action||"UNKNOWN",l=d.ActionReason||"UNKNOWN",h=d.Message||"UNKNOWN";d="undefined"!==typeof d.ProductOOS?d.ProductOOS:"UNKNOWN";h=h.replace(/\d{8}/g,"<sku>");var p=[];p.push("evar61="+f);"undefined"!=typeof g&&"undefined"!=typeof l&&
p.push("evar134="+("CartSanitization:"+g+":"+l+":"+h+":ProductOOS="+d.toString()));e=s.buildProductString(e,0,0,[],p);_dsgTag.EventHandlers.initialPageViewPreFired?(s.products=e,s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type)):(_dsgTag.CartSanitizationProducts=_dsgTag.CartSanitizationProducts||[],_dsgTag.CartSanitizationProducts.push(e))}}});f.push({name:"ChangeDeliveryLocationEvent",delay:!0,handler:function(c,d){s.events="";"undefined"!=typeof d&&(s.eVar121=d.zipcode,
s.events=s.apl(s.events,"event224",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event224",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar121",",",2),s.triggerEvent(c.type))}});f.push({name:"ChangeMyStoreEvent",delay:!0,handler:function(c,d){s.events="";if("undefined"!=typeof d){var e=d.CollectionCount;s.eVar9="My Store Search";s.events=s.apl(s.events,"event33",",",2);s.events=s.apl(s.events,"event67="+e,",",2);0<e&&(s.eVar5=d.ZipCode,s.linkTrackVars=
s.apl(s.linkTrackVars,"eVar5",",",2));s.linkTrackEvents=s.apl(s.linkTrackEvents,"event33",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event67",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar9",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop9",",",2);s.triggerEvent(c.type)}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"ChangePreferredStore",delay:!0,handler:function(c,d){c="";d&&"undefined"!==typeof d.NewStoreID?
c=d.NewStoreID:_dsgTag.HelperFunctions.GetCookieValue("setStoreCookie")&&(c=_dsgTag.HelperFunctions.GetCookieValue("setStoreCookie"),c=(c=/_(\d+)$/g.exec(c))&&0<c.length?c[1]:"");if(c&&(s.eVar38=c,s.events=s.apl(s.events,"event17",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event17",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar38",",",2),"undefined"!==typeof d.ProductID&&"undefined"!==typeof d.ProductSKUDetails)){c=_dsgTag.DataLayer.GetValue("ProductDetails")[0].ProductSKUDetails;
for(var e=0;e<d.ProductSKUDetails.length;e++)for(var f=0;f<c.length;f++)d.ProductSKUDetails[e].ProductSKU==c[f].ProductSKU&&(d.ProductSKUDetails[e].AvailabletoShip=c[f].AvailabletoShip);s.products=s.buildProductString(d.ProductID,0,0,[],["evar68="+_dsgTag.FunctionRepository.GetAvailabilityStringFromSKUArray(d.ProductSKUDetails)]);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar68",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2)}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});
f.push({name:"ChatDataUpdated",delay:!0,handler:function(c,d){d.conversationId&&(s.eVar87=d.conversationId,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar87",",",2),s.triggerEvent(c.type))}});f.push({name:"ChatStarted",delay:!0,handler:function(c,d){s.events=s.apl(s.events,"event47",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event47",",",2);d.engagmentID&&(s.eVar87=d.engagmentID,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar87",",",2));s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type)}});
f.push({name:"CheckoutAction",delay:!0,handler:d});f.push({name:"Checkout Card State",delay:!1,handler:function(c,d){d&&(delete d.taggingEventID,c={checkoutCardStatus:d},_dsgTag.HelperFunctions.DeepExtend(c,window.siteData,c),_dsgTag.EventHandlers.TriggerEvent("NewPageView",c))}});f.push({name:"CheckoutStockReady",delay:!0,handler:function(c,d){if("undefined"!=typeof d&&"undefined"!=typeof d.stockQty){for(var e=[],f=_dsgTag.DataLayer.GetValue("CartSKUEcodeLookup",d),g=0;g<d.stockQty.length;g++){var l=
d.stockQty[g].sku;if("undefined"!==typeof f[l]){l=f[l];var h=[];d.stockQty[g].STHLowStockMessageShown&&h.push("STH:"+d.stockQty[g].STHLowStockQty);d.stockQty[g].BOPISLowStockMessageShown&&h.push("BOPIS:"+d.stockQty[g].BOPISLowStockQty);0<h.length&&(h=h.join("-"),e.push(s.buildProductString(l,0,0,[],["evar86="+h])))}}0<e.length&&(s.products=e.join(","),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar86",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type))}s.linkTrackEvents=
"None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CheckStoreAvailabilitySearch",delay:!0,handler:function(c,d){s.events="";if("undefined"!=typeof d){var e=d.SearchStoreList.length;s.products=";"+(d.SearchProductID||"")+";;;";s.eVar9="Store Inventory Search";s.events=s.apl(s.events,"event33",",",2);s.events=s.apl(s.events,"event67="+e,",",2);if(0<e){s.eVar5=d.SearchZip;for(var f=e=0;f<d.SearchStoreList.length;f++){var g=parseFloat(d.SearchStoreList[f].StoreDistance||d.SearchStoreList[f].distance);
if(!e||g<e)e=g}s.prop6=e;s.linkTrackVars=s.apl(s.linkTrackVars,"eVar5",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop6",",",2)}else s.events=s.apl(s.events,"event35",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event35",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event33",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event67",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,
"eVar9",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop9",",",2);s.triggerEvent(c.type)}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CompareOpened",delay:!0,handler:function(c,d){if("undefined"!=typeof d){if(d.ProductArray)for(var e=[],f=0;f<d.ProductArray.length;f++)e.push(s.buildProductString(d.ProductArray[f].ProductID,0,0,[],["evar150="+d.ProductArray[f].CompareSource]));e&&(s.prop21=d.ProductArray.length,s.products=e.join(","),s.linkTrackVars=s.apl(s.linkTrackVars,
"prop21",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar150",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type))}}});f.push({name:"ContentTabView",delay:!0,handler:function(c,d){"undefined"!=typeof d&&(s.eVar1=d.TabCode,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar1",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"prop66",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CreateAccountClick",delay:!1,handler:function(c){s.eVar30=
"Web Store";s.events=s.apl(s.events,"event171",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar30",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event171",",",2);s.triggerEvent(c.type)}});f.push({name:"CreateAccountSuccess",delay:!1,handler:function(c){s.events=s.apl(s.events,"event94",",",2);s.eVar30="Web Store";s.linkTrackEvents="event94";s.linkTrackVars=s.apl(s.linkTrackVars,"eVar30",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",
",",2);s.triggerEvent(c.type)}});f.push({name:"CurbsideCheckIn",delay:!0,handler:function(c,d){"undefined"!=typeof d&&(s.prop16=_dsgTag.DataLayer.GetValue("OrderID"),s.events=s.apl(s.events,"event14",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event14",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"prop16",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"CustomerInfoReady",delay:!0,
handler:function(c,d){if(d.updated){var e=[];e.push(d.data.ath_has_3X_available.toString());e=e.join(":");s.eVar128=e;s.linkTrackVars=s.apl(s.linkTrackVars,"eVar128",",",2);s.triggerEvent(c.type)}window.target&&window.target.$getAndApplyOffers&&window.target.$getAndApplyOffers({parameters:d.data}).then(function(c){_dsgTag.HelperFunctions.DebugLog(c)}).catch(function(c){_dsgTag.HelperFunctions.DebugLog(c,2)})}});f.push({name:"CustomerIDApiUsed",delay:!0,handler:function(c,d){s.events=s.apl(s.events,
"event129",",",2);d.type&&"AthleteID"===d.type&&(s.eVar29=d.newID,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar29",",",2));s.linkTrackEvents=s.apl(s.linkTrackEvents,"event129",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar92",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar93",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type);s.eVar92=s.eVar93=""}});f.push({name:"DoNotSellBox",delay:!0,handler:function(c,d){"undefined"!=typeof d&&(eventName="true"===d.BoxChecked.toString().toLowerCase()?
"event181":"event182",s.events=s.apl(s.events,eventName,",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,eventName,",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"EmailSignup",delay:!0,handler:function(c,d){s.events=s.apl(s.events,"event18",",",2);s.events=s.apl(s.events,"event94",",",2);s.eVar30="Email Newsletter";s.linkTrackEvents=s.apl(s.linkTrackEvents,"event18",",",2);s.linkTrackEvents=
s.apl(s.linkTrackEvents,"event94",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar30",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);var e=_dsgTag.DataLayer.GetValue("HashedEmailAddress",d);e&&(s.eVar22=e,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar22",",",2),_dsgTag.CustomerIDs.UpdateCustomerIDFromParameter("HashedEmail",e,"Event"));"undefined"!==typeof d.SignUpMessage&&(0<=d.SignUpMessage.toLowerCase().indexOf("username@domain.com")?(s.events=s.apl(s.events,"event45",",",2),s.linkTrackEvents=
s.apl(s.linkTrackEvents,"event45",",",2)):0<=d.SignUpMessage.toLowerCase().indexOf("first-time")&&(s.events=s.apl(s.events,"event46",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event46",",",2)));s.triggerEvent(c.type);s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"ExternalCheckout",delay:!0,handler:function(c,d){var e="";"undefined"==typeof d.type?"Yes"===d.Paypal&&(e="PayPal Express"):e=d.type;e&&(s.eVar17=(_dsgTag.DataLayer.GetValue("SignedInBoolean")?"Registered":
"Guest")+" - "+e,s.saveValueForNextPageView("ExternalCheckout",e),s.events=s.apl(s.events,"scCheckout",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"scCheckout",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar17",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type))}});f.push({name:"FilterClicked",delay:!0,handler:function(c,d){s.eVar1=d.Name;s.linkTrackVars=s.apl(s.linkTrackVars,"eVar1",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop66",",",2);s.triggerEvent(c.type);
s.linkTrackVars=s.baseLinkTrackVars;_dsgTag.HelperFunctions.DeleteValue("v1")}});f.push({name:"FinderResults",delay:!0,handler:function(c,d){"undefined"!=typeof d&&(eventName="true"===d.Success?"event56":"event57",s.events=s.apl(s.events,eventName,",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,eventName,",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"FreeShipThreshold",delay:!0,handler:function(c,
d){if("undefined"!=typeof d){s.events="";var e=d.ThresholdMet,f=d.OversizedItem;"undefined"===typeof d.CartValue||e||f||(s.events=s.apl(s.events,"event136",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event136",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar11",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type))}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"GameTimeDataCollection",delay:!0,handler:function(c,d){"undefined"!=
typeof d&&"undefined"!==typeof d.eventType&&(s.prop39=d.eventType,s.linkTrackVars=s.apl(s.linkTrackVars,"prop39",",",2),s.triggerEvent(c.type))}});f.push({name:"GametimeCancelSuccess",delay:!0,handler:function(c,d){s.eVar110=d.appointment.experience.name;s.eVar155=d.appointment.storeNumber;s.events=s.apl(s.events,"event112",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar110",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar155",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackEvents=
s.apl(s.linkTrackEvents,"event112",",",2);s.triggerEvent(c.type)}});f.push({name:"GametimeRescheduleSuccess",delay:!0,handler:function(c,d){s.eVar110=d.appointment.experience.name;s.eVar155=d.appointment.storeNumber;s.events=s.apl(s.events,"event111",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar110",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar155",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event111",",",2);s.triggerEvent(c.type)}});
f.push({name:"GametimeSchedulingSuccess",delay:!0,handler:function(c,d){s.eVar110=d.appointment.experience.name;s.eVar155=d.appointment.storeNumber;s.events=s.apl(s.events,"event203",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar110",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar155",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event203",",",2);s.triggerEvent(c.type)}});f.push({name:"GrandopenenrollEvent",delay:!1,handler:function(c,
d){"undefined"!=typeof d&&"undefined"!==typeof d.Type&&"undefined"!==typeof d.StoreNumber&&(s.prop1=c.type+d.Type+":"+d.StoreNumber,s.linkTrackVars=s.apl(s.linkTrackVars,"prop1",",",2),s.triggerEvent(c.type))}});var v=[];f.push({name:"low_stock_event",delay:!0,handler:function(c,d){v.push(d);d=_dsgTag.DataLayer.GetValue("ProductListArray");if("undefined"!==typeof d&&v.length===d.length){d=[];for(var e=0;e<v.length;e++){var f=v[e],g=f.ecode;if(g){var l=[];f.STHLowStockMessageShown&&0<f.STHStockQuantity&&
l.push("STH:"+f.STHStockQuantity);f.BOPISLowStockMessageShown&&0<f.BOPISStockQuantity&&l.push("BOPIS:"+f.BOPISStockQuantity);0<l.length&&(l=l.join("-"),d.push(s.buildProductString(g,0,0,[],["evar86="+l])))}}0<d.length&&(v=[],s.products=d.join(","),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar86",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}}});f.push({name:"LowStock",delay:!0,handler:function(c,d){_dsgTag.EventHandlers.TriggerEvent("SKUResolve",
d)}});f.push({name:"MetricalReplacementTriggered",delay:!0,handler:function(c,d){s.eVar153=d.campaignID;s.eVar154=d.experience;s.prop36=d.pred;s.prop37=d.decile;s.linkTrackVars=s.apl(s.linkTrackVars,"eVar153",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar154",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop36",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop37",",",2);s.triggerEvent(c.type)}});f.push({name:"ModalOpen",delay:!0,handler:function(c,d){if(d.ModalName&&"generic"!==d.ModalName){c=
s.pageName;for(var e=s.prop2,f=_dsgTag.previousPageValues.v27,g=_dsgTag.previousPageValues.v28,l=s.linkTrackVars.split(","),h={},k=0;k<l.length;k++)h[l[k]]=window.s[l[k]];s.manageVars("clearVars");for(var p in h)h.hasOwnProperty(p)&&(window.s[p]=h[p]);s.pageName=_dsgTag.currentWebsite.Abbreviation+": Modal: "+d.ModalName;s.prop2="Modal";p=JSON.parse(window._dsgTag.HelperFunctions.GetValue("PreviousPageValues"));p.c66&&(s.prop66=p.c66,delete p.c66,_dsgTag.HelperFunctions.SaveValue("PreviousPageValues",
JSON.stringify(p)));_dsgTag.previousPageValues.v27=c;_dsgTag.previousPageValues.v28=e;"write a review"===d.ModalName.toLowerCase()&&(d=_dsgTag.HelperFunctions.GetQueryStringValue("bvcampaignid"),p=_dsgTag.HelperFunctions.GetQueryStringValue("bvproductId"),d&&"bv_pie"===d.toLowerCase()?(s.prop29="Email Review",p&&(s.products=";"+p.toUpperCase()+";;;;")):(s.prop29="PDP Review",_dsgTag.DataLayer.GetValue("ProductID")?s.products=";"+_dsgTag.DataLayer.GetValue("ProductID")+";;;;":p&&(s.products=";"+p.toUpperCase()+
";;;;")));s.triggerPageView();s.pageName=c;s.prop2=e;_dsgTag.previousPageValues.v27=f;_dsgTag.previousPageValues.v28=g;s.saveValueForNextPageView("v27",s.pageName);s.saveValueForNextPageView("v28",s.prop2)}}});f.push({name:"multiUseAnalyticsEvent",delay:!0,handler:function(c,d){c=d.event;var e=d.value;d=d.details;["getSkippedReason","getNotDisplayed","getDismissedReason"].includes(c)||(d=c+(e?":"+e.toString()+(d?":"+d.toString():""):""),s.prop1=d,s.linkTrackVars=s.apl(s.linkTrackVars,"prop1",",",
2),s.triggerEvent(c),"affirmcardentered:true"===d.toLowerCase()&&s.saveValueForNextPageView("Affirm",!0))}});f.push({name:"NebulaCX_Activity",delay:!0,handler:function(c,d){d.feedbackUUID&&(s.eVar19=d.feedbackUUID,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar19",",",2));d.formId&&(s.eVar34=d.formId,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar34",",",2));d.q_dsg_csat_satisfaction_faces&&(s.eVar77=d.q_dsg_csat_satisfaction_faces,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar77",",",2));"form_displayed"==
d.eventName&&(s.events=s.apl(s.events,"event96",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event96",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2));"feedback_submitted"==d.eventName&&(s.events=s.apl(s.events,"event95",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event95",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2));"Thankyou_displayed"==d.eventName&&(s.events=s.apl(s.events,"event84",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event84",",",2),s.linkTrackVars=
s.apl(s.linkTrackVars,"events",",",2));"Thankyou_close"==d.eventName&&(s.events=s.apl(s.events,"event85",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event85",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2));s.triggerEvent(c.type)}});f.push({name:"NikeConnectComplete",delay:!0,handler:function(c,d){d="true"==d.connected.toString().toLowerCase()?222:223;s.events=s.apl(s.events,"event"+d,",",2);s.linkTrackEvents="event"+d;s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type)}});
f.push({name:"NoDefaultShipping",delay:!0,handler:function(){_dsgTag.EventHandlers.TriggerEvent("SiteError",{ErrorMessage:"No Default Shipping"})}});f.push({name:"nonMerchLinkTracking",delay:!0,synchronous:!0,handler:function(c,d){s.saveValueForNextPageView("c66",d.dataEm||d.name)}});f.push({name:"NotifyMeStock",delay:!0,handler:function(c,d){if("undefined"!==typeof d){var e=[],f=s.DetermineFulfillmentMethod(d.shipMode);f&&e.push(f.name);0<e.length&"undefined"!=typeof d.ecode&&(s.prop51=e.join(":"),
s.products=s.buildProductString(d.ecode,0,0,[],["evar61="+(d.sku.id||d.sku.partNumber)]),s.linkTrackVars=s.apl(s.linkTrackVars,"prop51",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar61",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type))}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"OOSRecProduct",delay:!0,handler:function(c){s.prop44="Original";s.linkTrackVars=s.apl(s.linkTrackVars,"prop44",",",2);s.triggerEvent(c.type)}});f.push({name:"OrderSubmitted",
delay:!0,handler:function(c,d){if(d=_dsgTag.DataLayer.GetValue("OrderPaymentMethods",d))_dsgTag.HelperFunctions.DeleteValue("TagCheckoutProgress"),s.eVar14=d.join(": "),s.eVar117="Complete",s.linkTrackVars=s.apl(s.linkTrackVars,"eVar14",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar117",",",2),s.triggerEvent(c.type)}});f.push({name:"PDPPayPalClicked",delay:!0,handler:function(c,d){if("undefined"!==typeof d&&"undefined"!==typeof d.clickOriginated){if("PayPal"===d.clickOriginated){if(s.events=s.apl(s.events,
"event50",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event50",",",2),"undefined"!==typeof d.PayPalProductsBuyNow){var e=d.PayPalProductsBuyNow.ProductSKU,f=d.PayPalProductsBuyNow.CurrentPricePerUnit*d.PayPalProductsBuyNow.ProductQty;productEvents=[];merchEvars=[];0<f&&(merchEvars.push("evar99="+f.toFixed(2)),productEvents.push("event43="+f.toFixed(2)));e&&merchEvars.push("evar61="+e);d=s.buildProductString(d.ProductID,0,0,productEvents,merchEvars);s.products=d;s.linkTrackVars=s.apl(s.linkTrackVars,
"products",",",2)}}else"ATC"===d.clickOriginated&&(s.events=s.apl(s.events,"event51",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event51",",",2));s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type)}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"PDPPeopleView",delay:!0,handler:function(c,d){"undefined"!==typeof d&&(s.eVar102="1",s.linkTrackVars=s.apl(s.linkTrackVars,"eVar102",",",2),s.triggerEvent(c.type))}});f.push({name:"PDPSignInRequest",
delay:!0,handler:function(){_dsgTag.HelperFunctions.WriteCookieValue("v1","PDP_ScoreCard_Login",!0)}});f.push({name:"ProductQuickView",delay:!0,handler:function(c,d){if("undefined"!=typeof d){_dsgTag.fullPDPClick={};if("quickview"!==d.data.PageTemplate.toLowerCase())return;if(c=d.data.ReferringPage?d.data.ReferringPage.toLowerCase():_dsgTag.pageType.Name.toLowerCase())try{var e="",f="";switch(c){case "compare":e="CompareClick";f=d.data.AdditionalData;break;case "monetate":e="MonetateClick";f=d.data.AdditionalData;
break;case "certona":e="CertonaClick";f=d.data.AdditionalData;break;case "stylitics":e="StyliticsClick";f=JSON.parse(_dsgTag.HelperFunctions.GetValue("PreviousPageValues")).StyliticsClick;break;case "zoovu":e="ZoovuClick";f="true";break;case "datasciencerecs":e="DataScienceRecClick";f="DS_"+_dsgTag.pageType.Name+"_"+d.data.AdditionalData.DSPlacementId+"_"+d.data.AdditionalData.DSPosition.toString();break;case "aempl":e="AEMpl";f=d.data.AdditionalData;break;case "readyfornextroundaddons":e="ReadyForNextRoundAddOns";
f=d.data.AdditionalData;break;default:e="OtherFullPDPClick",f=c}e&&f&&(_dsgTag.fullPDPClick.nextPageViewName=e,_dsgTag.fullPDPClick.nextPageViewValue=f)}catch(I){_dsgTag.HelperFunctions.DebugLog("Error saving "+c+" quickview full product click: "+I.message,!0)}s.manageVars("clearVars");d=d.data;d.pageTypeOverride="ProductDetails";_dsgTag.EventHandlers.TriggerEvent("NewPageView",d)}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"PromotionEntered",delay:!0,handler:function(c,
d){if("undefined"!=typeof d){s.eVar36=d.PromotionCodeEntered||d.PromotionCode;if("Y"===d.PromotionCodeValid||"Y"===d.PromotionSuccess)s.events=s.apl(s.events,"event21",",",2),s.linkTrackEvents="event21";else if("N"===d.PromotionCodeValid||"N"===d.PromotionSuccess)s.events=s.apl(s.events,"event22",",",2),s.linkTrackEvents="event22";else return"";s.linkTrackVars=s.apl(s.linkTrackVars,"eVar36",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type)}s.linkTrackEvents="None";
s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"QuickViewFullPDPClick",delay:!0,handler:function(){_dsgTag.fullPDPClick&&_dsgTag.fullPDPClick.nextPageViewName&&_dsgTag.fullPDPClick.nextPageViewValue&&s.saveValueForNextPageView(_dsgTag.fullPDPClick.nextPageViewName,_dsgTag.fullPDPClick.nextPageViewValue)}});f.push({name:"RegistrationOccured",delay:!0,handler:function(c){s.events=s.apl(s.events,"event94",",",2);s.eVar30="Web Store";s.linkTrackEvents="event94";s.linkTrackVars=s.apl(s.linkTrackVars,
"eVar30",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type);s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"RemoveFromCart",delay:!0,handler:function(c,d){if("undefined"!=typeof d){s.products=";"+d.RemovedProductID;s.events=s.apl(s.events,"scRemove",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"scRemove",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type);
s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars;d=parseFloat(_dsgTag.DataLayer.GetValue("OrderTotal"));var e=parseFloat(_dsgTag.DataLayer.GetValue("OrderShippingRevenue")),f=parseFloat(_dsgTag.DataLayer.GetValue("OrderTax"));subtotal=d-f-e;isNaN(subtotal)&&(subtotal=0);s.eVar11=subtotal.toFixed(2);s.eVar18=_dsgTag.DataLayer.GetValue("CartItemQuantity");s.eVar96=_dsgTag.DataLayer.GetValue("OrderShippingRevenue");s.eVar97=_dsgTag.DataLayer.GetValue("OrderShippingDiscount");s.products=_dsgTag.FunctionRepository.GetCartProductString();
s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar11",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar18",",",2);s.triggerEvent(c.type);s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}}});f.push({name:"RemoveFromFavorites",delay:!0,handler:function(){}});f.push({name:"RemoveFromList",delay:!0,handler:function(c,d){var e,f;"undefined"!=typeof d.RemovedFavoriteID?/^\d+$/.test(d.RemovedFavoriteID)?f=d.RemovedFavoriteID:e=d.RemovedFavoriteID:
"undefined"!=typeof d.ProductID&&(e=d.ProductID,f=d.ProductSku);d=d.NumberOfLists||0;e||(e=_dsgTag.DataLayer.GetValue("ProductID"));if(e){var g=[];f&&(g.push("evar61="+f),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar61",",",2));d&&(g.push("evar149="+d.toString()),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar149",",",2));s.products=s.buildProductString(e,0,0,[],g);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.triggerEvent(c.type)}}});f.push({name:"ResultsViewUpdate",delay:!0,handler:function(c,
d){s.events="";if("undefined"!=typeof d){s.eVar148=_dsgTag.DataLayer.GetValue("PLPEventID",d);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar148",",",2);var e=d.Action||d.UpdateType;d=d.Detail||d.UpdateValue;switch(e){case "Sort":case "SortChange":case "SortMethod":s.eVar54="Sort: "+d;s.prop58="D=v54";s.linkTrackVars=s.apl(s.linkTrackVars,"prop58",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar54",",",2);s.triggerEvent(c.type);break;case "Pagination":typeof d==Object?(s.eVar54=1==d.pageNumber&&48<
d.pageSize?"ProductsPerPage: View All":e+": Page "+d.pageNumber,_dsgTag.pagination=d.pageNumber):(s.eVar54=e+": Page "+d,_dsgTag.pagination=d);s.prop58="D=v54";s.linkTrackVars=s.apl(s.linkTrackVars,"prop58",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar54",",",2);s.triggerEvent(c.type);break;case "ProductPerPage":_dsgTag.productsPerPage=d;s.eVar54="ProductsPerPage: "+d;s.prop58="D=v54";s.linkTrackVars=s.apl(s.linkTrackVars,"prop58",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar54",",",2);
s.triggerEvent(c.type);break;case "FiltersApplied":case "Refinement":case "GuidedDiscovery":case "ProductCardAttribute":"undefined"===typeof d.length&&(d=[d]);if(0<d.length){for(var f=-1,g,h,l=0;l<d.length&&0>f;l++){var k=!0;g=d[l].FilterName||d[l].RefinementAttribute;h=d[l].FilterValue||d[l].RefinementValue;h||(d[l].RefinementValue=h=d[l].RefinementAttribute,d[l].RefinementAttribute=g=e);if(g&&h){for(var p=0;p<_dsgTag.prevRefinements.length&&k;p++){var n=_dsgTag.prevRefinements[p].FilterValue||_dsgTag.prevRefinements[p].RefinementValue;
g===(_dsgTag.prevRefinements[p].FilterName||_dsgTag.prevRefinements[p].RefinementAttribute)&&h===n&&(k=!1)}k&&(f=l)}}0<=f&&(e=0,"undefined"!==typeof d[f].ProductCountTotal&&(e=d[f].ProductCountTotal),l=!1,"undefined"!==typeof d[f].Conversational&&(l="yes"==d[f].Conversational.toString().toLowerCase()),_dsgTag.prevRefinements=d,s.prop10=g,s.prop11=g+": "+h,s.prop12=s.pageName?'D=c10+": "+pageName':'D=c10+": "+Page Name Not Set',s.prop13=s.pageName?'D=c11+": "+pageName':'D=c11+": "+Page Name Not Set',
s.linkTrackVars=s.apl(s.linkTrackVars,"prop10",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"prop11",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"prop12",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"prop13",",",2),s.events=s.apl(s.events,"event5",",",2),0<e?(s.events=s.apl(s.events,"event153="+e,",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event153",",",2)):_dsgTag.pageType===_dsgTag.PageTypes.Search?(s.events=s.apl(s.events,"event3"+e,",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event3",
",",2)):_dsgTag.pageType===_dsgTag.PageTypes.Family&&(s.events=s.apl(s.events,"event155"+e,",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event155",",",2)),0<=s.pageName.indexOf("Search: Results")&&(s.events=s.apl(s.events,"event24",",",2),s.products=";",s.linkTrackEvents=s.apl(s.linkTrackEvents,"event24",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2)),l&&(s.events=s.apl(s.events,"event154",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event154",",",2)),s.linkTrackEvents=s.apl(s.linkTrackEvents,
"event5",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.saveValueForNextPageView("Refinement","Y"),s.triggerEvent(c.type))}break;case "FiltersRemoved":return}s.events=s.prop10=s.prop11=s.prop12=s.prop13=s.eVar54=s.prop58=""}}});f.push({name:"SaveForLaterAddToCart",delay:!0,handler:function(c,d){s.events="";"undefined"!=typeof d&&(d.wasSaveForLater=!0,_dsgTag.EventHandlers.TriggerEvent("AddToCart",d))}});f.push({name:"SaveForLaterRemoveProduct",delay:!0,handler:function(c,d){s.events=
"";"undefined"!=typeof d&&(s.products=";"+d.RemovedProductID,s.events=s.apl(s.events,"event189",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event189",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"ScoreCardEntered",delay:!0,handler:function(c,d){"undefined"!==typeof d&&"undefined"!==typeof d.ApplySuccess&&"y"===d.ApplySuccess.toLowerCase()&&
(s.events=s.apl(s.events,"event26",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event26",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type),s.linkTrackEvents="None",s.linkTrackVars=s.baseLinkTrackVars)}});f.push({name:"ShareProduct",delay:!0,handler:function(c){var d=_dsgTag.DataLayer.GetValue("ProductID");d&&(s.events=s.apl(s.events,"event162",",",2),s.products=s.buildProductString(d,0,0,["event162=1"],[]),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event162",
",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type))}});f.push({name:"ShippingMethodUpdated",delay:!0,handler:function(c,d){if("undefined"!==typeof d&&"undefined"!==typeof d.ProductShippingMethods&&0<d.ProductShippingMethods.length){for(var e=_dsgTag.HelperFunctions.GetStandardizedDKSTime()[0],f=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate(),g=e.getDay(),h=_dsgTag.DataLayer.GetValue("CartSKUEcodeLookup"),
l=[],k=0;k<d.ProductShippingMethods.length;k++)if("undefined"!==typeof h[d.ProductShippingMethods[k].ProductID]){var p=d.ProductShippingMethods[k].EstimatedDeliveryDate,n="N/A",q="N/A";"Invalid Date"!=(EDD=new Date(p))&&(EDD.setTime(EDD.getTime()+6E4*EDD.getTimezoneOffset()),p=EDD.getFullYear()+"-"+(EDD.getMonth()+1)+"-"+EDD.getDate(),n=EDD.getDay(),q=Math.ceil((EDD.getTime()-e.getTime())/864E5));p=f+":"+g+":"+p+":"+n+":"+q+":"+d.ProductShippingMethods[k].ShippingMethod+":"+(d.ProductShippingMethods[k].EDDReduction||
"NotUsed");if(d.ProductShippingMethods[k].AdditionalAnalyticsInfo)for(n="v2"===d.ProductShippingMethods[k].AdditionalAnalyticsInfo.version?"isAfterCutoff calendarDayOffset? nonSourceAwareDeliveryDays? saturdayUsed? sourceAwareTransitDays sourceAwareEligible? sourceAwareSuccessful? isSourceAware".split(" "):"afterCutoff calendarDayOffset nonSourceAwareDeliveryDays saturdayUsed sourceAwareDeliveryDays sourceAwareEligible sourceAwareSuccessful sourceAwareUsed".split(" "),q=0;q<n.length;q++){var u=d.ProductShippingMethods[k].AdditionalAnalyticsInfo[n[q]];
p+=":"+("undefined"!==typeof u?u.toString():"N/A")}l.push(";"+h[d.ProductShippingMethods[k].ProductID]+";;;;evar78="+p)}s.products=l.join(",");s.events=s.apl(s.events,"event99",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event99",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.triggerEvent(c.type);s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}}});f.push({name:"ShippingMethodUpdatedV2",delay:!0,handler:function(c,
d){if("undefined"!==typeof d&&"undefined"!==typeof d.ShipData&&0<d.ShipData.length){for(var e=_dsgTag.HelperFunctions.GetStandardizedDKSTime()[0],f=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate(),g=e.getDay(),h=[],l=0;l<d.ShipData.length;l++){var k=d.ShipData[l],p=k.promise_end_edd_date,n="N/A",q="N/A";"Invalid Date"!=(EDD=new Date(p))&&(EDD.setTime(EDD.getTime()+6E4*EDD.getTimezoneOffset()),p=EDD.getFullYear()+"-"+(EDD.getMonth()+1)+"-"+EDD.getDate(),n=EDD.getDay(),q=Math.ceil((EDD.getTime()-
e.getTime())/864E5));var u=k.shipping_mode_service_level.toLowerCase();p=f+":"+g+":"+p+":"+n+":"+q+":"+u+":NotUsed";n="isAfterCutoff N/A staticTransitDays N/A sourceAwareTransitDays isSourceAware isSourceAware isSourceAware".split(" ");for(q=0;q<n.length;q++)u=k[n[q]],p+=":"+("undefined"!==typeof u?u.toString():"N/A");h.push(";"+k.ecode+";;;;evar78="+p)}s.products=h.join(",");s.events=s.apl(s.events,"event99",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event99",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,
"events",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.triggerEvent(c.type)}}});f.push({name:"ShowMoreColors",delay:!0,handler:function(c,d){"undefined"!==typeof d&&"undefined"!==typeof d.ecode&&(s.products=s.buildProductString(d.ecode,0,0,["event145=1"],[]),s.events=s.apl(s.events,"event145",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event145",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2),s.triggerEvent(c.type),
s.linkTrackEvents="None",s.linkTrackVars=s.baseLinkTrackVars)}});f.push({name:"SignInCreateAccountClick",delay:!0,handler:function(c){s.eVar30="Web Store";s.events=s.apl(s.events,"event18",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar30",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event18",",",2);s.triggerEvent(c.type)}});f.push({name:"SignInSuccess",delay:!1,handler:function(c){s.eVar59="Logged In";s.linkTrackVars=s.apl(s.linkTrackVars,
"eVar59",",",2);s.triggerEvent(c.type);_dsgTag.HelperFunctions.SaveValue("AuthState",!0)}});f.push({name:"SiteError",delay:!1,handler:function(c,d){function e(c){output=c;return output=output.replace(/\u00A0/g," ")}if(/^CMN|BNPL/i.test(d.ErrorMessage))return"";var f=s.events;s.events=s.apl(s.events,"event20",",",2);var g=d.ErrorMessage;"string"===typeof g&&(g=[g]);var l=[];for(h=0;h<g.length;h++)val=g[h],-1===l.indexOf(val)&&l.push(e(val));"undefined"!==typeof s.pageName&&0<=s.pageName.indexOf("Product: PDP:")&&
(g=_dsgTag.DataLayer.GetValue("ProductID"),s.products=";"+g+";;;;",s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2));s.eVar44=l.join(",")+("undefined"!==typeof d.ClickOriginated&&"PayPal"===d.ClickOriginated?":PayPal":"");s.prop23=s.pageName;s.prop24=s.prop2;s.linkTrackEvents=s.apl(s.linkTrackEvents,"event20",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar44",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop55",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop23",",",2);s.linkTrackVars=
s.apl(s.linkTrackVars,"prop24",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent(c.type);s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars;s.events=f;s.eVar44=""}});var B="";f.push({name:"skuEDD",delay:!0,handler:function(c,d){eventsFired=[];var e=_dsgTag.DataLayer.GetValue("ProductID");if("undefined"!==typeof d.skuEDD){var f=d.skuEDD;f!==B&&(B=f,merchEvars=["evar61="+d.id,"evar90="+f],s.products=s.buildProductString(e,0,0,[],merchEvars),s.linkTrackVars=s.apl(s.linkTrackVars,
"products",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar61",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar90",",",2),s.triggerEvent(c.type))}}});var D=!1,z="";f.push({name:"SKUResolve",delay:!0,handler:function(c,d){s.origEvents=s.events;eventsFired=[];var e=d.ecode;if("undefined"!==typeof d.sku){var f=d.sku.id||d.sku.partNumber;D||!d.lowStockShipMessageShown&&!d.lowStockBopisMessageShown||(D=!0);"undefined"!==typeof d.lowStockNearbyStoresCount&&0<d.lowStockNearbyStoresCount&&!d.lowStockBopisMessageShown?
(_dsgTag.LowStockBOPISStore=d.lowStockNearbyStoresCurrentStoreNumber,_dsgTag.LowStockBOPISStoreSuggestionCount=d.lowStockNearbyStoresCount):f!==z&&(_dsgTag.LowStockBOPISStore="",_dsgTag.LowStockBOPISStoreSuggestionCount="");d.AvailableToShip||d.AvailableForPickup||eventsFired.push(161);z=f;if(0<eventsFired.length){eventsVar=[];for(d=0;d<eventsFired.length;d++)s.events=s.apl(s.events,"event"+eventsFired[d],",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event"+eventsFired[d],",",2),eventsVar.push("event"+
eventsFired[d]+"=1");s.products=s.buildProductString(e,0,0,eventsVar,["evar61="+f]);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.triggerEvent(c.type)}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars;s.events=s.origEvents}}});f.push({name:"LaunchCalendarReleaseSetReminder",delay:!0,handler:function(c,d){"undefined"!=typeof d&&(s.events=s.apl(s.events,"event185",",",2),s.eVar1=("Sneaker Release Calendar"==_dsgTag.DataLayer.GetValue("PageName")?
"Shoe":"Release")+"Calendar:"+d.ProductName,s.linkTrackEvents=s.apl(s.linkTrackEvents,"event185",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar1",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"prop66",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type));s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"LaunchCalendarAddToCalendar",delay:!0,handler:function(c,d){if("undefined"!=typeof d){switch(d.CalendarType.toString().toLowerCase()){case "google":eventName=
"event186";break;case "apple":eventName="event187";break;case "yahoo":eventName="event188";break;default:eventName=""}eventName&&(s.events=s.apl(s.events,eventName,",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,eventName,",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2),s.triggerEvent(c.type))}s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"styliticsShopClicked",delay:!0,handler:function(c,d){try{c={},_dsgTag.DataLayer.GetValue("ProductID",d)?c.previousPageID=
_dsgTag.DataLayer.GetValue("ProductID",d):c.previousPageID=window.location.pathname.split("/")[window.location.pathname.split("/").length-1].toLowerCase(),c.itemData={bundle:d.bundle,item:d.item},s.saveValueForNextPageView("StyliticsClick",JSON.stringify(c))}catch(G){}}});f.push({name:"tabbedComponentClicked",delay:!0,handler:function(c,d){if("undefined"===typeof d.isDefault||0==d.isDefault)s.prop1=c.type+":"+d.value,s.linkTrackVars=s.apl(s.linkTrackVars,"prop1",",",2),s.triggerEvent(c.type)}});f.push({name:"TimeSinceInit",
delay:!1,handler:function(c,d){if(_dsgTag.taggingInitTimestamp&&d&&d.timestamp&&(_dsgTag.timestamps=_dsgTag.timestamps||{},!_dsgTag.timestamps[d.source])){var e=d.source;d=d.timestamp-_dsgTag.taggingInitTimestamp;_dsgTag.timestamps[e]=d;_dsgTag.EventHandlers.initialPageViewPreFired&&(s.eVar135=e+": "+d,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar135",",",2),s.triggerEvent(c.type))}}});f.push({name:"TopNavView",delay:!0,handler:function(c,d){s.events=s.apl(s.events,"event31",",",2);s.linkTrackEvents=
s.apl(s.linkTrackEvents,"event31",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);d.TopNavViewSource&&(s.prop1=d.TopNavViewSource,s.linkTrackVars=s.apl(s.linkTrackVars,"prop1",",",2));s.triggerEvent(c.type)}});f.push({name:"TrackOrder",delay:!0,handler:function(c,d){s.prop16=d.OrderID;s.events=s.apl(s.events,"event11",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event11",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop16",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",
2);s.triggerEvent(c.type);s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}});f.push({name:"UpdateCustomerInfo",delay:!0,handler:function(c){s.eVar136=_dsgTag.DataLayer.GetValue("NikeConnected").toString();s.eVar137=_dsgTag.CustomerIDs.isGold.toString();s.linkTrackVars=s.apl(s.linkTrackVars,"eVar136",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar137",",",2);s.triggerEvent(c.type)}});f.push({name:"UserAuthenticated",delay:!0,handler:function(c,d){var e=_dsgTag.HelperFunctions.GetValue("AuthState"),
f=_dsgTag.DataLayer.GetValue("SignedInBoolean",d);if(null!==f){if(null==e||"true"===e!==f)s.eVar104=_dsgTag.DataLayer.GetValue("ShouldBeLoggedIn",d),s.eVar59="Logged "+(f?"In":"Out"),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar59",",",2),s.linkTrackVars=s.apl(s.linkTrackVars,"eVar104",",",2),s.triggerEvent(c.type);_dsgTag.HelperFunctions.SaveValue("AuthState",f)}else _dsgTag.HelperFunctions.DeleteValue("AuthState");window.target&&window.target.$getAndApplyOffers&&window.target.$getAndApplyOffers({parameters:{loggedIn:null!=
f?f.toString():"Unknown"}}).then(function(c){_dsgTag.HelperFunctions.DebugLog(c)}).catch(function(c){_dsgTag.HelperFunctions.DebugLog(c,2)})}});f.push({name:"VideoMilestoneReached",delay:!0,handler:function(c,d){s.prop15=d.videoVendor;s.prop18=d.percentage;s.eVar120=d.videoID;s.linkTrackVars=s.apl(s.linkTrackVars,"prop15",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop18",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar120",",",2);s.triggerEvent(c.type)}});f.push({name:"VideoPlay",delay:!0,handler:function(c,
d){s.prop15=d.videoVendor;s.prop18=d.percentage;s.eVar120=d.videoID;s.events=s.apl(s.events,"event29",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop15",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar120",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event29",",",2);s.triggerEvent(c.type)}});for(k=0;k<f.length;k++){var A=f[k];e.AddEventHandler(A.name,A.handler,A.delay,A.synchronous)}_dsgTag.prevRefinements=[];_dsgTag.queuedStoreSearches=
[];_dsgTag.searchEventPagePixelFired=!1;_dsgTag.searchEventMboxFired=!1;(function(){for(var c="AccountSummaryCopyRewardCode AccountSummaryViewRewardClick AddAddressClick CancelDeleteAdditionalAddressClick CancelEditAccountDetailsClick CancelEditAdditionalAddressClick CancelEditContactDetailsClick CancelEditPrimaryAddressClick CancelResetEmailClick ChangeEmailPromotionsFrequencyClick ConfirmDeleteAdditionalAddressClick ConfirmResetEmailClick CopyHolidayOfferTriplePointsCode CopyTriplePointsCode CreditMyAccInStorePurchaseClick CreditMyAccOnlinePurchaseClick CreditMyAccountCancelClick CreditMyAccountClick CreditMyAccountSubmitClick CurbsideCheckIn DeleteAdditionalAddressClick EditAccountDetailsClick EditAdditionalAddressClick EditContactDetailsClick EditPrimaryAddressClick GoldOfferDetailsCollapse GoldOfferDetailsExpand GoldTooltipClick HelpDeskClick MailedPromotionsOptInClick MailedPromotionsOptOutClick NikeConnectClickAccountSettings NikeDisconnectClickAccountSettings NikeLearnMoreClickAccountSummary OrderNumberClick OrderTrackingNumberClick PanelHeaderClicked PrintRewardQrCodeClick ResetEmailClick ResetPasswordClicked ReturnsAndExchangesClick RewardDeliverySave RewardEmailDeliveryClick RewardMailDeliveryClick SaveAccountDetailsClick SaveContactDetailsClick SaveUpdatedAdditionalAddressClick SaveUpdatedPrimaryAddressClick ScoreCardCopyRewardCode ScoreCardFaqClick ScoreCardViewRewardClick ScoreRewardsCardApplyTodayClick ScoreRewardsLearnMoreClickAccountSummary ScoreRewardsManageAccountClickAccountSummary SignOut_AddToFavorites SignOut_AddToList SignOutClickEvent StartReturnClick SubscriptionsSave TextAlertOptInClick TextAlertOptOutClick TrackOrderClick TrackPackageClick TrackPackageLinkClicked ViewInStoreOrderDetailsClick ViewMorePointsHistory ViewOnlineOrderDetailsClick".split(" "),
d=0;d<c.length;d++)e.AddEventHandler(c[d],function(c){s.prop72=c.type;s.linkTrackVars=s.apl(s.linkTrackVars,"prop72",",",2);s.triggerEvent(c.type)})})();_dsgTag.chatData={};e.AddEventHandler("NewPageView",function(){function c(){window.lpTag?(lpTag.events.bind("*","state",function(c){c.state&&"init"==c.state&&_dsgTag.EventHandlers.TriggerEvent("ChatStarted",_dsgTag.chatData)}),lpTag.events.bind("*","conversationInfo",function(c){_dsgTag.EventHandlers.TriggerEvent("ChatDataUpdated",c)}),lpTag.events.bind("*",
"engagementData",function(){}),lpTag.events.bind("*","START",function(c){_dsgTag.chatData=c}),lpTag.events.bind("*","windowClosed",function(){_dsgTag.EventHandlers.TriggerEvent("ChatEnded",{})})):100>d&&(d++,setTimeout(c,100))}var d=0;c()});var C=0;setInterval(function(){if(_dsgTag.queuedStoreSearches.length>C){var c=_dsgTag.queuedStoreSearches[C];if("undefined"!=typeof c){s.events="";s.events=s.apl(s.events,"event2",",",2);s.events=s.apl(s.events,"event33",",",2);var d=1<=c.ServedStoreDistances.length?
c.ServedStoreDistances[0]:"",e=1<=c.ServedStoreList.length?c.ServedStoreList[0]:"";c.LocationSearchCity.toLowerCase();c.LocationSearchState.toLowerCase();var f=c.LocationSearchZip.toLowerCase(),g=c.ServedStoreCount;0==g&&(s.events=s.apl(s.events,"event35",",",2),s.linkTrackEvents=s.apl(s.linkTrackEvents,"event35",",",2));s.products=";";s.prop6=d;s.eVar9="Store Locator Search";s.eVar5=f;"Auto"===c.LocationSearchType&&(s.eVar5+=" (Auto)");s.eVar38=e;s.events=s.apl(s.events,"event67="+g,",",2);s.linkTrackEvents=
s.apl(s.linkTrackEvents,"event2",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event33",",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,"event67",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"prop6",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar9",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar5",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"eVar38",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"products",",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);s.triggerEvent("AJAXStoreSearch")}s.linkTrackEvents=
"None";s.linkTrackVars=s.baseLinkTrackVars;C++}},500);_dsgTag.HelperFunctions.BindDocumentClickEventWithAdditionalSelector("input.store-pickup-store-select-radio, .set-store-btn, .set-store, .store-pickup, div.store-details button.ng-star-inserted",function(){_dsgTag.EventHandlers.TriggerEvent("ChangePreferredStore")});e.AddEventHandler("NewPageView",function(){if("undefined"!==typeof S7dmUtils){var c=function(){var d=!1,e;for(e in S7dmUtils)if(0==e.indexOf("dynamicmedia")||0==e.indexOf("interactivemedia"))d=
!0,S7dmUtils[e].handlers.trackEvent=function(c,d,e,f,g){_dsgTag.HelperFunctions.DebugLog(g);c=S7dmUtils[c].mediaSet.component.asset;e=g.split(",")[0].toLowerCase();g=g.split(",")[1].toLowerCase();d={videoID:c,videoVendor:"Scene7"};switch(e){case "play":_dsgTag.EventHandlers.TriggerEvent("VideoPlay",d);break;case "milestone":d.percentage=g;_dsgTag.EventHandlers.TriggerEvent("VideoMilestoneReached",d);break;case "interactive_swatch":s.saveValueForNextPageView("Scene7Click",c)}};d||setTimeout(c,100)};
c()}});_dsgTag.HelperFunctions.IsInLane("53-66,93-94,97-100")&&e.AddEventHandler("NewPageView",function(){var c=document.querySelectorAll("div.full-long-description.pdp-section-spacing");(c=0<c.length?c[0]:null)&&_dsgTag.HelperFunctions.TriggerFunctionWhenVisible(c,function(){_dsgTag.EventHandlers.TriggerEvent("ProductInfoViewed")},!0)})})();e.AddEventHandler("CuralateInitialized",function(){try{var e=document.querySelector("[data-crl8-container-id]").getAttribute("data-crl8-container-id"),c=[],d=
-1,f=function(c){crl8.getExperience(e).then(function(d){s.saveValueForNextPageView("CuralateClick",d.store.getState().dataSource.data.media[c]);s.saveValueForNextPageView("v1","Curalate")})},n=function(d){if("true"!==d.getAttribute("dsgAnalytics")){var e=d.getAttribute("data-crl8-item-id");d.setAttribute("dsgAnalytics","true");c.push(e);d.childNodes[0].childNodes[0].addEventListener("click",function(){h(e)},!0)}},k=!1,q=function(){k||(k=!0,setInterval(function(){for(var e=document.querySelectorAll("#crl8-homepage-carousel-modal a[href*='/p/']"),
g=0;g<e.length;g++)"true"!==e[g].getAttribute("dsgAnalytics")&&(e[g].setAttribute("dsgAnalytics","true"),e[g].addEventListener("click",function(){f(c[d])}))},100),setInterval(function(){var e=document.querySelector("button[aria-label='Previous post']"),f=document.querySelector("button[aria-label='Next post']");e&&"true"!==e.getAttribute("dsgAnalytics")&&(e.setAttribute("dsgAnalytics","true"),e.addEventListener("click",function(){h(c[--d])}));f&&"true"!==f.getAttribute("dsgAnalytics")&&(f.setAttribute("dsgAnalytics",
"true"),f.addEventListener("click",function(){h(c[++d])}))},100))},h=function(e){e?(d=c.indexOf(e),q()):setTimeout(function(){h(c[d])},250)},t=function(){var c=document.querySelectorAll("div[data-crl8-item-id]");if(0<c.length)for(var d=0;d<c.length;d++)n(c[d]);setTimeout(t,250)};t()}catch(u){}})};_dsgTag.FunctionRepository.RegisterTag("AdobeAnalyticsAEP",_dsgTag.InitTimings.Immediate,[{t:"bypass-restricted",v:"true"}],function(e){window.s={};_dsgTag.FunctionRepository.targetPageParams=function(c){var d={};try{var e=function(c,e){e&&(d[c]=e)};e("AkamaiSwimlane",_dsgTag.customerLanes[0]);for(var g=0;g<_dsgTag.customerLanes.length;g++)e("SwimlanePool"+String.fromCharCode(65+g),window._dsgTag.customerLanes[g].toString());_dsgTag.CustomerIDs.AthleteID&&(e("mbox3rdPartyId",_dsgTag.CustomerIDs.AthleteID),
e("profile.id",_dsgTag.CustomerIDs.AthleteID));c||_dsgTag.pageType!==_dsgTag.PageTypes.ProductDetails||(e("entity.id",_dsgTag.DataLayer.GetValue("ProductID")),e("entity.name",_dsgTag.DataLayer.GetValue("ProductName")),e("entity.brandName",_dsgTag.DataLayer.GetValue("ProductBrand")),e("entity.productShippingRestriction",window.siteData?"true"===window.siteData.ProductShippingRestriction?"true":"false":null));c||_dsgTag.pageType!==_dsgTag.PageTypes.Category&&_dsgTag.pageType!==_dsgTag.PageTypes.Family||
(e("entity.pageType",_dsgTag.pageType.Name),e("entity.id",_dsgTag.DataLayer.GetValue("CategoryID")||_dsgTag.DataLayer.GetValue("FamilyID")),e("entity.name",_dsgTag.DataLayer.GetValue("CategoryName")||_dsgTag.DataLayer.GetValue("FamilyName")))}catch(k){_dsgTag.HelperFunctions.DebugLog("Error creating Target data object: "+k.message)}return d};try{(function(){s.c_r=function(c){return _dsgTag.HelperFunctions.GetCookieValue(c,decodeURIComponent(_dsgTag.HelperFunctions.GetCookieValue("s_pers")))||""};
s.c_w=function(c,d){var e=s.c_p(decodeURIComponent(_dsgTag.HelperFunctions.GetCookieValue("s_pers")));e[c]=d;c=[];for(key in e)c.push(key+"="+e[key]);_dsgTag.HelperFunctions.WriteCookieValue("s_pers",encodeURIComponent(c.join(";")),400,!0)};s.c_p=function(c){var d={},e=c.split(";");for(c=0;c<e.length;c++)currentVal=e[c].split("="),d[currentVal[0]]=currentVal[1];return d};s.apl=function(c,d,e,g){e=e?e:",";this.inList(c,d,e,g)||(c=c?c+e+d:d);return c};s.inList=function(c,d,e,g){if("string"!=typeof d)return!1;
if("string"==typeof c)c=c.split(e?e:",");else if("object"!=typeof c)return!1;e=0;for(var f=c.length;e<f;e++)if("undefined"!=typeof g&&1==g&&d==c[e]||d.toLowerCase()==c[e].toLowerCase())return!0;return!1};s.getPreviousValue=function(c,d,e){var f=new Date,g="",q=1;d=d?d:"s_gpv";f.setTime(f.getTime()+18E5);if(e){q=0;e=e.split(",");var h=this.events?this.events.split(","):"";for(var t=0,u=e.length;t<u;t++){for(var v=0,B=h.length;v<B;v++)if(e[t]==h[v]){q=1;break}if(1==q)break}}1==q&&(this.c_r(d)&&(g=this.c_r(d)),
c?this.c_w(d,c,f):this.c_w(d,"no value",f));return g};s.manageVars=function(c,d,e){d=d?d:"";e=e?e:1;if(!this[c])return!1;var f="pageName,purchaseID,channel,server,pageType,campaign,state,zip,events,products,transactionID";for(var g=1;76>g;g++)f+=",prop"+g;for(g=1;251>g;g++)f+=",eVar"+g;for(g=1;6>g;g++)f+=",hier"+g;for(g=1;4>g;g++)f+=",list"+g;for(g in this.contextData)f+=",contextData."+g;if(!d||1!=e&&2!=e)return""==d&&1==e?(this.pt(f,",",c,0),!0):!1;1==e&&(f=d.replace("['",".").replace("']",""));
if(2==e){d=d.split(",");e=f.split(",");f="";for(x in d)for(y in-1<d[x].indexOf("contextData")&&(lax=d[x].split("'"),d[x]="contextData."+lax[1]),e)d[x]==e[y]&&(e[y]="");for(y in e)f+=e[y]?","+e[y]:""}this.pt(f,",",c,0);return!0};s.clearVars=function(c){-1==c.indexOf("contextData")?this[c]="":-1<c.indexOf("contextData")&&(c=c.substring(c.indexOf(".")+1),this.contextData[c]="")};s.lowercaseVars=function(c){"events"!=c&&-1==c.indexOf("contextData")&&this[c]?(this[c]=this[c].toString(),0!=this[c].indexOf("D=")&&
(this[c]=this[c].toLowerCase())):-1<c.indexOf("contextData")&&(c=c.substring(c.indexOf(".")+1),this.contextData[c]&&(this.contextData[c]=this.contextData[c].toString(),this.contextData[c]=this.contextData[c].toLowerCase()))};s.pt=function(c,d,e,g){for(var f=c,n=0,h;f;){h=f.indexOf(d);h=0>h?f.length:h;f=f.substring(0,h);if(f=this[e](f,g))return f;n+=h+d.length;f=c.substring(n,c.length);f=n<c.length?f:""}return""};s.getValOnce=function(c,d,e,g){var f=new Date;c=c?c:"";d=d?d:"s_gvo";e=e?e:0;g="m"==g?
6E4:864E5;var n=this.c_r(d);c&&(f.setTime(f.getTime()+e*g),this.c_w(d,c,0==e?0:f));return c==n?"":c};s.getDaysSinceLastVisit=function(c){valCookie=c+"_s";visitCookie=c+"_c";now=(new Date).getTime();thirtyMinutes=18E5;twelveHours=432E5;oneDay=864E5;threeYears=1095*oneDay;thirtyMinFromNow=new Date;twelveHoursFromNow=new Date;threeYearsFromNow=new Date;thirtyMinFromNow.setTime(now+thirtyMinutes);twelveHoursFromNow.setTime(now+twelveHours);threeYearsFromNow.setTime(now+threeYears);var d=this.c_r(c);prevValue=
this.c_r(valCookie);visitStart=this.c_r(visitCookie);if(0==d.length)this.c_w(c,now,threeYearsFromNow),this.c_w(visitCookie,now,twelveHoursFromNow),this.c_w(valCookie,"First visit",thirtyMinFromNow);else{d=now-d;var e=parseInt(d/oneDay);18E5<d||0==visitStart.length?(this.c_w(c,now,threeYearsFromNow),this.c_w(visitCookie,now,twelveHoursFromNow),this.c_w(valCookie,e,thirtyMinFromNow)):(this.c_w(c,now,threeYearsFromNow),this.c_w(valCookie,prevValue,thirtyMinFromNow))}c=this.c_r(valCookie);return 0==c.length?
"Cookies Not Supported":c}})();for(M=1;250>=M;M++)s["eVar"+M]="";for(M=1;75>=M;M++)s["prop"+M]="";s.tnt="";s.pe="";s.pev2="";s.linkName="";s.linkType="";s.currencyCode="USD";s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx";s.baseLinkTrackVars="pageName,server,prop2,prop17,prop22,prop33,prop45,prop54,prop56,prop57,prop59,prop60,prop61,prop71,eVar8,eVar18,eVar20,eVar21,eVar24,eVar25,eVar29,eVar42,eVar45,eVar50,eVar57,eVar59,eVar64,eVar74,eVar75,eVar92,eVar93,eVar130,eVar136,eVar137,eVar135,eVar142,eVar168,eVar169,eVar170";
s.linkInternalFilters="javascript:,tel:,"+_dsgTag.linkInternalFilters;s.linkInternalFilters+=","+window.location.hostname.toLowerCase();s.linkTrackVars=s.baseLinkTrackVars;s.linkTrackEvents="";s.server=window.location.hostname.toLowerCase();s._internalSites="453andahalf custhelp dicks.careers dicks.reviews dickssportinggoods.jobs dicksteamgear dsg dsgcarriers dsgcorpevents dsgfreight dsgn.dcsg epicfit golfgalaxy.careers golfgalaxyjobs golfgalaxylessons investors.dicks koppen.prod.tracylocke maxfli mydickssportinggoods mygolfgalaxy nickentgolf ralphmaltby sombreropay sombrerosport sportsmansadvantageclub sportsmatter topflite truerunner".split(" ");
for(var g in _dsgTag.Websites)_dsgTag.Websites[g]!==_dsgTag.currentWebsite&&s._internalSites.push(_dsgTag.Websites[g].Domain.replace(".com",""));s._internalSitesRegEx=new RegExp("("+s._internalSites.join("|").replace(/\./g,"\\.")+")\\.com");_dsgTag.FunctionRepository.SetupAdobeAnalyticsFunctions(e);_dsgTag.FunctionRepository.SetupAdobePageCode(e);_dsgTag.FunctionRepository.SetupAdobeEventCode(e);_dsgTag.HelperFunctions.BindDocumentClickEventWithAdditionalSelector("a",function(c){try{if(c.href&&0>
c.href.toLowerCase().indexOf("javascript:")&&0>c.href.toLowerCase().indexOf("tel:")){var d=window.location.host,e=d.substring(d.indexOf(".")+1),g=d.split(".")[0],k=c.href.split("/")[2],q=k.substring(k.indexOf(".")+1),h=k.split(".")[0],t=!1,u=c.href.split("?")[0].split("#")[0];u=u.split("/")[u.split("/").length-1];for(var v=0;v<s.linkDownloadFileTypes.split(",").length&&!t;v++)t=0<=u.indexOf(s.linkDownloadFileTypes.split(",")[v]);if(t)for(u=c.href.split("?")[0].split("#")[0],u=u.split("/")[u.split("/").length-
1],v=0;v<s.linkDownloadFileTypes.split(",").length;v++){if(0<=u.indexOf(s.linkDownloadFileTypes.split(",")[v])){var B={xdm:{eventType:"web.webinteraction.linkClicks",web:{webInteraction:{name:c.href,type:"download",URL:c.href,linkClicks:{value:1}}}}};s.triggerAEPAnalyticsEvent("downloadLink",B)}}else if(k!=d&&(B={xdm:{eventType:"web.webinteraction.linkClicks",web:{webInteraction:{name:c.href,type:"exit",URL:c.href,linkClicks:{value:1}}}},documentUnloading:!0},s.triggerAEPAnalyticsEvent("exitLink",
B),e===q&&g!==h)){_dsgTag.subdomainChangeLinkClick=!0;var D=_dsgTag.HelperFunctions.GetValue("PreviousPageValues");_dsgTag.HelperFunctions.DeleteValue("PreviousPageValues");_dsgTag.HelperFunctions.WriteCookieValue("PreviousPageValues",D,!0)}}}catch(z){_dsgTag.HelperFunctions.DebugLog("Error handling AEP Exit Link: "+z.message,_dsgTag.LogLevels.Error)}})}catch(c){_dsgTag.HelperFunctions.DebugLog("Error initilizing analytics: "+c.message,_dsgTag.LogLevels.Error)}});_dsgTag.FunctionRepository.RegisterTag("AdobeExperienceManager",_dsgTag.InitTimings.Immediate,[{t:"site",c:"=",v:"DSG GGXY PBL GONE INVR SM".split(" ")},{t:"page",c:"^!=",v:"Chat"},{t:"bypass-restricted",v:"true"}],function(e){function g(c,d){var e={};_dsgTag.DataLayer.PassValuesToFunction(["OrderID","OrderTotal","OrderTax","OrderShippingRevenue","ProductListArray"],function(c,d,f,g,h){d=[];if("undefined"!==typeof h&&0<h.length)for(key=0;key<h.length;key++){var l=h[key],k=l.ProductName,n=l.ProductSku||
l.ProductSKU,p=parseInt(l.ProductQty);l={sku:n,name:k,ecode:l.ProductID,quantity:p,unitPrice:R(l.CurrentPricePerUnit),distributedOrderDiscountPerUnit:R(l.DistributedOrderDiscountPerUnit)};d.push(l)}try{e={orderDetails:{orderID:c,taxPaid:R(f),shippingPaid:R(g)},productDetailsList:d}}catch(Y){}},d);return e}function c(c,d){c=_dsgTag.DataLayer.GetValue("ProductDetails",d)[0];return{productDetailsList:[{name:c.ProductName,ecode:c.ProductID}]}}function d(d,e){var h={environment:{}};h.environment.browserDetails=
{userAgent:navigator.userAgent};var l={web:{}};l.web.webPageDetails={name:document.title,siteSection:_dsgTag.pageType.Name};var k=[];h=_dsgTag.HelperFunctions.DeepExtend({},h,l);k.push(f("web.webPageDetails.pageViews"));switch(_dsgTag.pageType){case _dsgTag.PageTypes.ProductDetails:k.push(f("commerce.productViews",c,d,e));break;case _dsgTag.PageTypes.OrderConfirmation:k.push(f("commerce.purchases",g,d,e))}for(d=0;d<k.length;d++)e=_dsgTag.HelperFunctions.DeepExtend({},h,k[d]),e=_dsgTag.HelperFunctions.DeepExtend(e),
alloy("sendEvent",{xdm:e,edgeConfigOverrides:{datastreamId:G("cjaDataStreamID")}})}function f(c,d,e,f){var g={eventType:c,_dsg:{},identityMap:_dsgTag.FunctionRepository.GetIdentityData(!0)},h={chain:_dsgTag.currentWebsite.Abbreviation};try{"function"===typeof d&&_dsgTag.HelperFunctions.DeepExtend(h,d(e,f))}catch(na){_dsgTag.HelperFunctions.DebugLog("Error building event data for "+c+": "+na.message,_dsgTag.LogLevels.Error)}g._dsg.cjaData=h;return g}function n(c,d){c={};try{c={eventType:"leadOperation.newLead"}}catch(S){}z(c,
d.taggingEventID)}function k(c,d){c={};try{var e=d.ItemsAddedToCart||d.ProductsAddedToCart;if("undefined"!==typeof e&&("undefined"===typeof e.length&&(e=[e]),0<e.length))for(key=0;key<e.length;key++){var f=e[key],g=f.ProductName,h=f.ProductSku||f.ProductSKU,l=parseInt(f.ProductQty),k=f.CurrentPricePerUnit.toString().replace(/[^0-9.]/g,"")*l,n="y"===d.NewCart.toLowerCase()||"true"===d.NewCart.toLowerCase();c={eventType:"commerce.productListAdds",commerce:{productListAdds:{id:h,value:parseFloat(k.toFixed(2))}},
productListItems:[{SKU:h,currencyCode:"USD",name:g,priceTotal:parseFloat(k.toFixed(2)),product:f.ProductID,productAddMethod:"web",quantity:l,unitOfMeasureCode:""}]};z(c,d.taggingEventID);n&&(c={eventType:"commerce.productListOpens",commerce:{productListOpens:{id:"",value:0}}},z(c,d.taggingEventID))}}catch(T){}}function q(c,d){_dsgTag.DataLayer.PassValuesToFunction(["OrderID","OrderTotal","OrderTax","OrderShippingRevenue","ProductListArray"],function(c,d,e,f,g){var h=[],l=0;if("undefined"!==typeof g&&
0<g.length)for(key=0;key<g.length;key++){var k=g[key],n=k.ProductName,p=k.ProductSku||k.ProductSKU,q=parseInt(k.ProductQty),t=(k.CurrentPricePerUnit-k.DistributedOrderDiscountPerUnit).toFixed(2).replace(/[^0-9.]/g,"")*q,u=k.ProductBrand;k={SKU:p,currencyCode:"USD",name:n,priceTotal:parseFloat(t.toFixed(2)),productAddMethod:"web",product:k.ProductID,quantity:q,unitOfMeasureCode:"",_dsg:{brand:u}};h.push(k);if(u)for(n=0;n<_dsgTag.brandsToTrack.length;n++)u.toLowerCase()===_dsgTag.brandsToTrack[n].toLowerCase()&&
z({eventType:"commerce.brandPurchase",productListItems:[k]},c+"-"+n)}d&&e&&f&&(l=parseFloat((d-e-f).toFixed(2)));d={};try{d={eventType:"commerce.purchases",web:{webPageDetails:{name:window.s.pageName}},order:{orderID:c,priceTotal:l},productListItems:h}}catch(L){}z(d,c)},d)}function h(c,d){var e={};try{e={eventType:"web.webPageDetails.pageViews",web:{webPageDetails:{name:window.s.pageName,siteSection:_dsgTag.pageType.Name}}}}catch(Q){}z(e,d.taggingEventID);switch(_dsgTag.pageType){case _dsgTag.PageTypes.Search:c=
{};try{c={eventType:"web.webinteraction.search",web:{webPageDetails:{name:window.s.pageName}},search:{keywords:d.EnteredSearchTerm}}}catch(Q){}z(c,d.taggingEventID);break;case _dsgTag.PageTypes.ProductDetails:c={};try{c={eventType:"commerce.productViews",web:{webPageDetails:{name:window.s.pageName}},commerce:{productViews:{id:_dsgTag.DataLayer.GetValue("ProductID",d),value:0,_dsg:{brand:_dsgTag.DataLayer.GetValue("ProductBrand",d),name:_dsgTag.DataLayer.GetValue("ProductName",d)}}}}}catch(Q){}z(c,
d.taggingEventID);break;case _dsgTag.PageTypes.OrderConfirmation:q(c,d)}}function t(){_dsgTag.DataLayer.PassValuesToFunction(["OrderID","OrderTotal","OrderTax","OrderShippingRevenue","ProductListArray"],function(c,d,e,f,g){var h=[],l=0;if("undefined"!==typeof g&&0<g.length)for(key=0;key<g.length;key++){var k=g[key],n=k.ProductName,q=k.ProductSku||k.ProductSKU,t=parseInt(k.ProductQty);k=(k.CurrentPricePerUnit-k.DistributedOrderDiscountPerUnit).toFixed(2).replace(/[^0-9.]/g,"")*t;h.push({SKU:q,currencyCode:"USD",
name:n,priceTotal:parseFloat(k.toFixed(2)),productAddMethod:"web",quantity:t,unitOfMeasureCode:""})}d&&e&&f&&(l=parseFloat(d-e-f));dataObject={_dsg:{brand:{brand:J[I.Abbreviation]}},eventType:"commerce.purchases",commerce:{purchases:{id:c,value:parseFloat(l.toFixed(2))}},productListItems:h};p(dataObject)})}function u(c,d){c=d.RemovedProductSKU;"undefined"!==typeof c&&(dataObject={_dsg:{brand:{brand:J[I.Abbreviation]}},eventType:"commerce.productListRemovals",commerce:{productListRemovals:{id:c,value:0}},
productListItems:D()},p(dataObject))}function v(c,d){c=d.ItemsAddedToCart||d.ProductsAddedToCart;if("undefined"!==typeof c&&("undefined"===typeof c.length&&(c=[c]),0<c.length))for(key=0;key<c.length;key++){var e=c[key],f=e.ProductSku||e.ProductSKU,g=parseInt(e.ProductQty);e=e.CurrentPricePerUnit.toString().replace(/[^0-9.]/g,"")*g;g="y"===d.NewCart.toLowerCase()||"true"===d.NewCart.toLowerCase();dataObject={_dsg:{brand:{brand:J[I.Abbreviation]}},eventType:"commerce.productListAdds",commerce:{productListAdds:{id:f,
value:parseFloat(e.toFixed(2))}},productListItems:D()};p(dataObject);g&&(dataObject={_dsg:{brand:{brand:J[I.Abbreviation]}},eventType:"commerce.productListOpens",commerce:{productListOpens:{id:"",value:0}}},p(dataObject))}}function B(c,d){switch(_dsgTag.pageType){case _dsgTag.PageTypes.ProductDetails:dataObject={_dsg:{brand:{brand:J[I.Abbreviation]}},eventType:"commerce.productViews",commerce:{productViews:{id:_dsgTag.DataLayer.GetValue("ProductID"),value:0}}};p(dataObject);break;case _dsgTag.PageTypes.OrderConfirmation:t(c,
d)}c={};try{c={_dsg:{brand:{brand:J[I.Abbreviation]}},eventType:"web.webPageDetails.pageViews",web:{webPageDetails:{name:window.s.pageName,siteSection:window.location.pathname.split("/")[window.location.pathname.split("/").length-1]}}},_dsgTag.pageType===_dsgTag.PageTypes.Category?(c.web.webPageDetails._dsg={},c.web.webPageDetails._dsg.categoryName=_dsgTag.DataLayer.GetValue("CategoryName")):_dsgTag.pageType===_dsgTag.PageTypes.Family&&(c.web.webPageDetails._dsg={},c.web.webPageDetails._dsg.familyName=
_dsgTag.DataLayer.GetValue("FamilyName"))}catch(S){}p(c)}function D(){var c=_dsgTag.DataLayer.GetValue("CartCookieSKUList"),d=[];if(c)for(var e=0;e<c.length;e++)d.push({SKU:c[e]});return d}function z(c,d){_dsgTag.DoNotSell||(d={_dsg:{capiEventID:d}},_dsgTag.HelperFunctions.GetCookieValue("_fbp")&&(d._dsg.fbBrowserID=_dsgTag.HelperFunctions.GetCookieValue("_fbp")),_dsgTag.HelperFunctions.GetCookieValue("_scid")&&(d._dsg.snapchatID=_dsgTag.HelperFunctions.GetCookieValue("_scid")),c=_dsgTag.HelperFunctions.DeepExtend(c,
d),_dsgTag.isAOS||alloy("sendEvent",{xdm:c,edgeConfigOverrides:{datastreamId:G("capiDataStreamID")}}))}function A(c){c={data:{__adobe:{target:c}},type:"decisioning.propositionFetch",renderDecisions:!0,personalization:{sendDisplayEvent:!1}};_dsgTag.CustomerIDs.AthleteID&&(c.xdm={identityMap:{AthleteId:[{id:_dsgTag.CustomerIDs.AthleteID,authenticatedState:"authenticated"}]}});_dsgTag.targetData=_dsgTag.targetData||[];s.postTrackCallbackList.push(function(c){c.propositions&&c.propositions.forEach(function(c){c.renderAttempted&&
c.items.forEach(function(c){if(c.meta){for(var d=!1,e=0;e<_dsgTag.targetData.length&&!d;e++)d=_dsgTag.targetData[e]["activity.name"]==c.meta["activity.name"];d||_dsgTag.targetData.push(c.meta)}})})});alloy("sendEvent",c).then(function(c){s.processPostTrackCallbacks(c)}).catch(function(c){_dsgTag.HelperFunctions.DebugLog("Error sending Target to AEP: "+c.message,_dsgTag.LogLevels.Error)})}function C(c){if(!_dsgTag.HelperFunctions.IsKnownBot()){var d={};c&&(d.data=c);d.renderDecisions=!0;d.personalization=
{includeRenderedPropositions:!0};_dsgTag.CustomerIDs.AthleteID&&(d.xdm={identityMap:{AthleteId:[{id:_dsgTag.CustomerIDs.AthleteID,authenticatedState:"authenticated"}]}});alloy("sendEvent",d).then(function(c){s.processPostTrackCallbacks(c)}).catch(function(c){_dsgTag.HelperFunctions.DebugLog("Error sending analytics to AEP: "+c.message,_dsgTag.LogLevels.Error)})}}function p(c){c={xdm:c,edgeConfigOverrides:{datastreamId:G("cartAbandonDataStreamID")}};_dsgTag.isAOS||alloy("sendEvent",c)}function l(){if(_dsgTag.CustomerIDs.AdobeMCVID){if(A(_dsgTag.FunctionRepository.targetPageParams()),
e.AddEventHandler("NewPageView",B),e.AddEventHandler("AddToCart",v),e.AddEventHandler("CartRemoveProduct",u),e.AddEventHandler("NewPageView",h),e.AddEventHandler("AddToCart",k),e.AddEventHandler("EmailSignup",n),_dsgTag.currentWebsite==_dsgTag.Websites.GoingGoingGone&&_dsgTag.HelperFunctions.IsInLane("1-4,9-12")&&(_dsgTag.HelperFunctions.DebugLog("[VisitorID Test] Enabling CJA"),e.AddEventHandler("NewPageView",d)),_dsgTag.FunctionRepository.SendXDMEventAnalytics=C,_dsgTag.PendingAnalyticsDataObjects)for(var c=
0;c<_dsgTag.PendingAnalyticsDataObjects.length;c++)C(_dsgTag.PendingAnalyticsDataObjects[c])}else setTimeout(l,50)}function G(c,d){return d?_dsgTag.AEPDataStreamIDs[c][d][F]:_dsgTag.AEPDataStreamIDs[c][F]}var F=_dsgTag.isProduction?_dsgTag.HelperFunctions.GetValue("cdpStage")?"stage":"prod":"dev",I=_dsgTag.currentWebsite;if("SM"===_dsgTag.currentWebsite.Abbreviation||"INVR"==_dsgTag.currentWebsite.Abbreviation)I=_dsgTag.Websites.DicksSportingGoods;var K=_dsgTag.HelperFunctions.GetValue("cdp");_dsgTag.AEPDataStreamIDs.cartAbandonDataStreamID[K]&&
(F=K);var J={DSG:"DSG",GGXY:"GG",PBL:"PL",MJ:"MJ"},R=_dsgTag.HelperFunctions.ToMoney;(function(){_dsgTag.manuallyLoadAlloy?(_dsgTag.HelperFunctions.DebugLog("[VisitorID Test] Loading WebSDK as Normal; Configuring WebSDK"),!function(c,d){d.forEach(function(d){c[d]||((c.__alloyNS=c.__alloyNS||[]).push(d),c[d]=function(){var e=arguments;return new Promise(function(f,g){c[d].q.push([f,g,e])})},c[d].q=[])})}(window,["alloy"]),_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://tag."+_dsgTag.currentWebsite.Domain+
"/scripts/alloy.2.24.0.min.js","WebSDK",function(){_dsgTag.FunctionRepository.ConfigureWebSDK();_dsgTag.CustomerIDs.UpdateAllCustomerIDs();l()})):(_dsgTag.CustomerIDs.UpdateAllCustomerIDs(),l())})()});_dsgTag.FunctionRepository.RegisterTag("Attentive",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE","MJ"]},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(e){function g(c,d){d&&d.ProductsAddedToCart&&(c={productId:d.ProductsAddedToCart[0].ProductID,productVariantId:d.ProductsAddedToCart[0].ProductSKU,name:d.ProductsAddedToCart[0].ProductName,price:{value:parseFloat(d.ProductsAddedToCart[0].CurrentPricePerUnit),currency:"USD"},quantity:parseInt(d.ProductsAddedToCart[0].ProductQty)},
window.attentive.analytics.addToCart({items:[c]}))}function c(c,d){window.attentive.analytics.productView({items:[{productId:d.ecode,productVariantId:d.sku.id||d.sku.partNumber,price:{value:(d.sku.price||d.sku.prices).offerPrice,currency:"USD"}}]})}var d="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:d="dsg";break;case _dsgTag.Websites.GolfGalaxy:d="gg";break;case _dsgTag.Websites.GoingGoingGone:d="mgone";break;case _dsgTag.Websites.PublicLands:d="pl";break;case _dsgTag.Websites.Moosejaw:d=
"mj"}d&&_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("//cdn.attn.tv/"+d+"/dtag.js",e.Name,function(){e.AddEventHandler("NewPageView",function(c,d){switch(_dsgTag.pageType){case _dsgTag.PageTypes.OrderConfirmation:c=[];for(var e=_dsgTag.DataLayer.GetValue("ProductListArray",d),f=0;f<e.length;f++)c.push({productId:e[f].ProductID,productVariantId:e[f].ProductSKU,name:e[f].ProductName,price:{value:parseFloat((e[f].CurrentPricePerUnit-e[f].DistributedOrderDiscountPerUnit).toFixed(2)),currency:"USD"},
quantity:parseInt(e[f].ProductQty)});window.attentive.analytics.purchase({items:c,order:{orderId:_dsgTag.DataLayer.GetValue("OrderID",d)}})}});e.AddEventHandler("AddToCart",g);e.AddEventHandler("SKUResolve",c)})});_dsgTag.FunctionRepository.RegisterTag("BazaarVoice",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY"]},{t:"aos",c:"=",v:!1},{t:"page",c:"=",v:"Order Confirmation"}],function(e){function g(d){_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://apps.bazaarvoice.com/deployments/"+c+"/main_site/"+(_dsgTag.isProduction?"production":"staging")+"/en_US/bv.js",e.Name,function(){_dsgTag.DataLayer.PassValuesToFunction("OrderID ProductListArray OrderTotal OrderTax OrderShippingRevenue BillingState".split(" "),
function(c,d,e,g,h,t){for(var f=[],k,n=0;n<d.length;n++)k={},"undefined"!==typeof d[n]&&"undefined"!==typeof d[n].ProductID&&(k.sku=d[n].ProductID),"undefined"!==typeof d[n]&&"undefined"!==typeof d[n].ProductName&&(k.name=d[n].ProductName),"undefined"!==typeof d[n]&&d[n].CurrentPricePerUnit&&d[n].DistributedOrderDiscountPerUnit&&(k.price=parseFloat(d[n].CurrentPricePerUnit-d[n].DistributedOrderDiscountPerUnit).toFixed(2)),"undefined"!==typeof d[n]&&"undefined"!==typeof d[n].ProductQty&&(k.quantity=
d[n].ProductQty),f.push(k);c={orderId:c,currency:"USD",items:f,tax:parseFloat(g).toFixed(2),shipping:parseFloat(h).toFixed(2),total:(parseFloat(e)-parseFloat(g)-parseFloat(h)).toFixed(2),email:"test@test.com",state:t};try{BV.pixel.trackTransaction(c)}catch(D){_dsgTag.HelperFunctions.DebugLog("BazaarVoice ROI pixel - problem sending order info to BV: "+D.message,!0)}},d)})}var c="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c="dsg";break;case _dsgTag.Websites.GolfGalaxy:c=
"golfgalaxy"}c&&e.AddEventHandler("NewPageView",function(c,e){_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&g(e)})});_dsgTag.FunctionRepository.RegisterTag("Bing",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE","MJ"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="5566415";break;case _dsgTag.Websites.GolfGalaxy:g="5599825";break;case _dsgTag.Websites.PublicLands:g="36004533";break;case _dsgTag.Websites.GoingGoingGone:g="36004539";break;
case _dsgTag.Websites.Moosejaw:g="4015288"}if(g){var c=function(c){switch(_dsgTag.pageType){case _dsgTag.PageTypes.Home:c={ecomm_prodid:"",ecomm_pagetype:"home"};window.uetq=window.uetq||[];window.uetq.push("event","",c);break;case _dsgTag.PageTypes.Search:c={ecomm_prodid:"",ecomm_pagetype:"searchresults"};window.uetq=window.uetq||[];window.uetq.push("event","",c);break;case _dsgTag.PageTypes.Category:case _dsgTag.PageTypes.Family:c={ecomm_prodid:"",ecomm_pagetype:"category"};window.uetq=window.uetq||
[];window.uetq.push("event","",c);break;case _dsgTag.PageTypes.ProductDetails:_dsgTag.DataLayer.PassValuesToFunction(["ProductDetails"],function(c){if(c&&c.length&&0<c.length){var d={};d.ecomm_prodid=c[0].ProductID;d.ecomm_pagetype="product";window.uetq=window.uetq||[];window.uetq.push("event","",d)}},c);break;case _dsgTag.PageTypes.Cart:_dsgTag.DataLayer.PassValuesToFunction(["ProductIDList"],function(c){var d={};c&&0<c.length&&(d.ecomm_prodid=c);d.ecomm_pagetype="cart";window.uetq=window.uetq||
[];window.uetq.push("event","",d)},c);break;case _dsgTag.PageTypes.OrderConfirmation:_dsgTag.DataLayer.PassValuesToFunction(["ProductIDList"],function(c){var d={};c&&0<c.length&&(d.ecomm_prodid=c);d.ecomm_pagetype="purchase";window.uetq=window.uetq||[];window.uetq.push("event","",d)},c),_dsgTag.DataLayer.PassValuesToFunction(["OrderTotal","OrderTax","OrderShippingRevenue"],function(c,d,e){revenue=parseFloat(c-d-e).toFixed(2);c={currency:"USD"};c.revenue_value=revenue;window.uetq=window.uetq||[];window.uetq.push("event",
"",c)},c)}};_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://bat.bing.com/bat.js",e.Name,function(){e.AddEventHandler("NewPageView",function(d,e){d={ti:g};d.q=window.uetq;window.uetq=new UET(d);window.uetq.push("pageLoad");c(e)})})}});_dsgTag.FunctionRepository.RegisterTag("BlueTriangle",_dsgTag.InitTimings.Immediate,[{t:"bypass-restricted",v:"true"}],function(){var e="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:switch(_dsgTag.experience){case "Kiosk":e="dsg2aos";break;case "Mobile App":e="dsg2app";break;default:e=_dsgTag.isProduction?"dsg2":0==window.location.hostname.indexOf("preview.")?"dsgpreview500z":"dksperf"}break;case _dsgTag.Websites.GolfGalaxy:e="golfgalaxy2";break;case _dsgTag.Websites.GoingGoingGone:e=
"g3v500z";break;case _dsgTag.Websites.PublicLands:e="publiclands500z";break;case _dsgTag.Websites.Moosejaw:e="moosejaw500z"}e&&_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("//"+e+".btttag.com/btt.js")});_dsgTag.FunctionRepository.RegisterTag("Branch",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"domain",c:"*!=",v:"custhelp"},{t:"page",c:"^!=",v:"Chat"},{t:"site",c:"*=",v:["DSG","GGXY"]},{t:"iframe",c:"=",v:"false"}],function(){var e="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:e=_dsgTag.isProduction?"key_live_ha4Fjjyi2wV5D2EEXnwktkbaFBdevCjn":"key_test_in8tgmyh2zSYAYBtXoJ5pmfawxokBxeA";break;case _dsgTag.Websites.GolfGalaxy:e=_dsgTag.isProduction?"key_live_bp0CfkBl7CHWLSCIhYW59iglwvigy2qk":
"key_test_hb1rffEb2zS0SPDHxfzTljapuxlgxZEv"}e&&function(){(function(e,c,d,f,n,k,q,h,t,u){if(!e[f]||!e[f]._q){for(;h<q.length;)n(k,q[h++]);t=c.createElement(d);t.async=1;t.src="https://cdn.branch.io/branch-latest.min.js";u=c.getElementsByTagName(d)[0];u.parentNode.insertBefore(t,u);e[f]=k}})(window,document,"script","branch",function(e,c){e[c]=function(){e._q.push([c,arguments])}},{_q:[],_v:1},"addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent logEvent disableTracking".split(" "),
0);branch.init(e,function(){})}()});_dsgTag.FunctionRepository.RegisterTag("Certona",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE"]},{t:"domain",c:"*!=",v:"Protips"},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(e){function g(c,d){c={rrelem:"ordertracking_rr;ordertracking1_rr"};if("undefined"!==typeof d.ProductArray){for(var e=[],f=0;f<d.ProductArray.length;f++)e.push(l?d.ProductArray[f].ProductSKU:d.ProductArray[f].ProductID);c.itemid=e.join(";")}v(c)}
function c(c,d){c={};"cartoos"===d.value.toLowerCase()?(c.rrelem="cart2_rr",c.itemid=d.ecode,d.ProductSKU&&(c.itemid=d.ProductSKU),v(c)):"calia"===d.value.toLowerCase()?(c.rrelem="rechub1_rr",v(c)):"vrst"===d.value.toLowerCase()?(c.rrelem="rechub2_rr",v(c)):"recently viewed"===d.value.toLowerCase()?(c.rrelem="cart1_rr",v(c)):"listoos"===d.value.toLowerCase()&&(c.event="favorites",c.rrelem="favorites_rr",c.itemid=d.ecode,d.ProductSKU&&(c.itemid=d.ProductSKU),v(c))}function d(c,d){c={};N||(c.event=
"viewcart",N=!0);if("undefined"!==typeof d.ProductArray){var e=[],f=[],g=!1;c.rrqs=[];c.rrqs.push("pagelocation=Cart");for(var h=0;h<d.ProductArray.length;h++)e.push(l?d.ProductArray[h].ProductSKU:d.ProductArray[h].ProductID),f.push(parseFloat(d.ProductArray[h].CurrentPricePerUnit)*parseInt(d.ProductArray[h].ProductQty)),d.ProductArray[h].FulfillmentStore&&!g&&(c.rrqs.push("storeno="+d.ProductArray[h].FulfillmentStore),g=!0);c.itemid=e.join(";");try{c.rrqs.push("carttotal="+(parseFloat(d.OrderTotal)-
parseFloat(d.TaxTotal)-parseFloat(d.ShippingTotal)).toFixed(2))}catch(P){}c.rrqs=c.rrqs.join("&")}v(c)}function f(c,d){c={};var e=!1,f=[],g=[];c.rrqs=[];c.event="addtocart_op";var h=!1;if("undefined"!==typeof d.ProductsAddedToCart)for(var k=0;k<d.ProductsAddedToCart.length;k++)e=e||"undefined"===typeof d.ProductsAddedToCart[k].IsMainItem||d.ProductsAddedToCart[k].IsMainItem,f.push(d.ProductsAddedToCart[k].ProductID),h=h||"quickview"===d.ProductsAddedToCart[k].CartAdditionSource.toLowerCase(),l&&f.push(d.ProductsAddedToCart[k].ProductSKU),
d.ProductsAddedToCart[k].FulfillmentStore&&g.push(d.ProductsAddedToCart[k].FulfillmentStore);h&&J&&(c.event+="r");0<f.length&&(c.rrqs.push("pagelocation=CartModal"),c.itemid=f.join(";"),0<g.length&&c.rrqs.push("storeid="+g.join(";")),e&&(c.rrelem="cartmodal1_rr"),c.rrqs=c.rrqs.join("&"),v(c))}function n(c,d){c={rrelem:"backinstock_rr"};c.itemid=d.ecode;var e=[];e.push("pagelocation=NotifyMe");if("undefined"!==typeof d.sku.defAttributes&&"undefined"!==typeof d.sku.defAttributes.length)for(var f=0;f<
d.sku.defAttributes.length;f++)if(0<=d.sku.defAttributes[f].name.toLowerCase().indexOf("size")){e.push("size="+d.sku.defAttributes[f].value);break}"undefined"!==typeof d.bopisNotification&&d.store&&e.push("storeid="+d.store);for(f=0;f<e;f++)e[f]=encodeURIComponent(e[f]);c.rrqs=e.join("&");v(c)}function k(c,d){c={rrelem:"skuoos2_rr"};var e=[];e.push("pagelocation=OOSSku");var f={Size:"Size","Shoe Size":"eComShoeSize","Shoe Width":"eComShoeWidth",Inseam:"Inseam",Length:"PantLength"},g;for(g in d)d[g].ecode?
c.itemid=d[g].ecode:d[g].name&&d[g].value&&f[d[g].name]&&e.push(f[d[g].name]+"="+d[g].value);for(d=0;d<e;d++)e[d]=encodeURIComponent(e[d]);c.rrqs=e.join("&");v(c)}function q(c,d){c={event:"product"};var e=d.sku.id||d.sku.partNumber;c.itemid=e;var f=R?e==R:!1;d=A===_dsgTag.Websites.DicksSportingGoods&&!d.AvailableToShip&&!d.AvailableForPickup;var g=1===_dsgTag.DataLayer.GetValue("ProductSKUList").length;d&&(c.rrelem="skuoos_rr",c.rrqs="pagelocation=OOSSKU");if(!g&&!f||d)v(c),R=e}function h(c,d){d=
d.data||d;if(_dsgTag.DataLayer.GetValue("IsQuickView",d)){c={event:"quickview_op"};"certona"===d.ReferringPage.toLowerCase()?(c.event+="r",J=!0):J=!1;var e=1===d.ProductDetails[0].ProductSKUDetails.length?d.ProductDetails[0].ProductSKUDetails[0].ProductSKU:"";c.itemid=d.ProductDetails[0].ProductID;l&&e&&(c.itemid+=";"+e);v(c)}}function t(c,d){if(d&&d.responseTokens)for(c=0;c<d.responseTokens.length;c++)if(_dsgTag.pageType===_dsgTag.PageTypes.Home&&0<=d.responseTokens[c]["activity.name"].toLowerCase().indexOf("mastertm")){var e=
d.responseTokens[c]["experience.name"];e=e.replace(/\d+$/g,"");0==K.length&&(K.push(e),v({rrqs:"teammaster="+e,rrelem:"home4_rr;home5_rr"}))}}function u(c,d){return"function"===typeof c[d]?c[d]():c[d]}function v(c){window.resx={};resx.host="true"===_dsgTag.HelperFunctions.GetQueryStringValue("certona_qa")?"qa.res-x.com":"www.res-x.com";resx.appid=G.I;if(id=_dsgTag.CustomerIDs.AthleteID||_dsgTag.CustomerIDs.DeviceID)resx.customerid=id;resx.top1=1E5;resx.top2=1E5;for(var d in c)"undefined"!==typeof c[d]&&
(resx[d]=c[d]);resx.rrelem&&(resx.rrnum=20,resx.rrec=!0,resx.rrcall="_dsgTag.FunctionRepository.HandleCertonaResponse");_dsgTag.resxPixels=_dsgTag.resxPixels||[];_dsgTag.resxPixels.push(resx);certonaResx.run();"purchase"===c.event&&_dsgTag.FunctionRepository.Track3rdPartyOrder(c.transactionid,e.Name)}function B(c){for(var d in c.P){if("undefined"!==typeof _dsgTag.PageTypes[d]&&_dsgTag.pageType===_dsgTag.PageTypes[d])return c.P[d];if(c.P[d].T)if("function"===typeof c.P[d].T){if(c.P[d].T())return c.P[d]}else if(c.P[d].T instanceof
RegExp&&c.P[d].T.test(p))return c.P[d]}return null}function D(){var c=window._dsgTag.Websites,d={};d.P={Home:{RecID:"home"},Category:{RecID:"category",D:["CategoryID"],EV:function(){return"true"==_dsgTag.HelperFunctions.GetQueryStringValue("rrec")?"category_r":"category"}},Family:{RecID:"family",D:["FamilyID"],EV:function(){return"true"==_dsgTag.HelperFunctions.GetQueryStringValue("rrec")?"category_r":"category"}},Search:{RecID:function(){return 0<_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?
"search":"nosearch"},D:["InternalSearchTerm"]},ProductDetails:{RecID:function(){return"Out of Stock"===z("ProductAvailability")?"OOSPDP":"Product"},D:function(){return l?["ProductID","ProductSKU","ProductPageTemplateType","ProductDetails"]:["ProductID","ProductPageTemplateType","ProductDetails"]},EV:function(){return"true"==_dsgTag.HelperFunctions.GetQueryStringValue("rrec")?"product_r":"product"}},MyAccount:{},OrderTracking:{RecID:"OrderTracking",T:/\/TrackOrder/i,E:"ordertracking_rr;ordertracking1_rr"},
StoreLocatorLocalStore:{RecID:"store",D:["StoreLocatorStoreNumber"]},Cart:{RecID:"CartEmpty",EN:function(){return 0==_dsgTag.DataLayer.GetValue("CartItemQuantity")},EV:"viewcart",E:"cartempty_rr"},OrderConfirmation:{RecID:"OrderConfirm",D:"ProductIDList ProductSKUList OrderID ProductQuantityList ProductPriceList OrderTax OrderShippingRevenue OrderTotal".split(" "),E:A===c.DicksSportingGoods&&"Desktop"===C?"":"orderconfirm_rr",EV:"purchase"},Proxy:{D:function(){return z("CategoryID")?["CategoryName",
"CategoryID"]:z("FamilyID")?["FamilyName","FamilyID"]:[]},EV:function(){return"true"==_dsgTag.HelperFunctions.GetQueryStringValue("rrec")?"category_r":"category"}},RecHubMarketing:{RecID:"rechub",T:/\/marketing\/recommended-for-you/i,E:"rechub3_rr;rechub6_rr;rechub11_rr;rechub4_rr;rechub5_rr"},RecHub:{RecID:"rechub",T:/\/recommended-for-you/i,E:"rechub3_rr;rechub1_rr;rechub2_rr;rechub4_rr;rechub5_rr;rechub6_rr;rechub7_rr;rechub8_rr;rechub9_rr;rechub10_rr;rechub11_rr;rechub12_rr;rechub13_rr"},Finder:{T:/\/((\w|-)+)-finder$/i},
FinderResults:{RecID:function(){return/\/((\w|-)+)-finder-results/i.exec(p)[1]+"Finder"},T:/\/((\w|-)+)-finder-results/i,E:function(){switch(/\/((\w|-)+)-finder-results/i.exec(p)[1].toLowerCase()){case "bat":return"DSGFinder2_rr";case "backpack":return"BackpackFinder2_rr";case "sports-bra":return"sportsbrafinder2_rr"}return""},I:function(){switch(/\/((\w|-)+)-finder-results/i.exec(p)[1].toLowerCase()){case "bat":return"Desktop"===C?"Bat_Finder":"Bat_Finder_Mobile";case "backpack":return"Desktop"===
C?"Backpack_Finder":"Backpack_Finder_Mobile";case "sports-bra":return"Desktop"===C?"sportsbra_finder":"sportsbra_finder_mobile"}return""},EV:"surveyresults"},Holiday:{RecID:"holiday",T:/\/s\/(holiday|cyber-week|black-friday|starts-here|back-to-school)/i,E:"holiday3_rr;holiday_rr;holiday2_rr;holiday4_rr;holiday5_rr;holiday6_rr"},GiftOfSport:{RecID:"holiday",T:/\/s\/gift-of-sport/i,E:"holiday_rr;holiday2_rr;holiday3_rr"},GolfHoliday:{RecID:"holiday",T:/\/s\/(golf-gifts)/i,E:"holiday_rr"},Graduation:{RecID:"graduation",
T:/\/s\/seasonal\/graduation-gifts/i,E:"holiday_rr"},FathersDay:{RecID:"FathersDay",T:/\/s\/fathers-day/i,E:"holiday_rr"},Coupons:{RecID:"coupon",T:/\/s\/((promotion-)?coupons)/i,E:"coupon_rr;coupon2_rr"},EmailSignup:{RecID:"signup",T:/\/s\/(marketing\/)?text-program-details/i,E:"signup_rr"},InStorePickup:{RecID:"BOPIS",T:/\/s\/in-store-pickup/i,E:"collections1_rr,collections2_rr,collections3_rr,collections4_rr,collections5_rr,collections6_rr"},WomensDay:{RecID:"WomensDay",T:/\/s\/(international-womens-day|shop-outerwear)/i,
E:"golf_rr"},ShopRunGear:{RecID:"ShopRunGear",T:/\/s\/shop-running-gear/i,E:"coupon3_rr;coupon4_rr"},SummerShop:{RecID:"SummerShop",T:/\/s\/seasonal\/summer-shop/i,E:"holiday2_rr"},GiftGuide:{RecID:"GiftGuide",T:/\/s\/gift-guide/i,E:"holiday_rr;holiday2_rr"},WomensSports:{RecID:"WomensSports",T:/\/s\/female-athlete-gear-apparel/i,E:"sports_rr"},WVolleyball:{RecID:"WVolleyball",T:/\/s\/volleyball-gear-apparel/i,E:"volleyball_rr"},WTennis:{RecID:"WTennis",T:/\/s\/womens-racquet/i,E:"tennis_rr"},WFieldHockey:{RecID:"WFieldHockey",
T:/\/s\/Womens-field-hockey-gear-apparel/i,E:"fieldhockey_rr"},WLacrosse:{RecID:"WLacrosse",T:/\/s\/womens-lacrosse/i,E:"lacrosse_rr"},GymDanceCheer:{RecID:"GymDanceCheer",T:/\/s\/cheer-dance-gymnastics-equipment-apparel/i,E:"dance_rr"},WSoftball:{RecID:"WSoftball",T:/\/s\/womens-fastpitch-softball-gear-equipment/i,E:"softball_rr"},WBasketball:{RecID:"WBasketball",T:/\/s\/womens-basketball/i,E:"basketball_rr"},WSoccer:{RecID:"WSoccer",T:/\/s\/womens-soccer-gear-apparel/i,E:"soccer_rr"},WGolf:{RecID:"WGolf",
T:/\/s\/womens-and-girls-golf/i,E:"womensgolf_rr"},ShopMensOuter:{RecID:"ShopMensOuter",T:/\/s\/shop-mens-outerwear/i,E:"event_rr"},ShopWomensOuter:{RecID:"ShopWomensOuter",T:/\/s\/shop-womens-outerwear/i,E:"event2_rr"},ShopKidsOuter:{RecID:"ShopKidsOuter",T:/\/s\/shop-kids-outerwear/i,E:"event3_rr"},GolfTour:{RecID:"GolfTour",T:/\/s\/golf-tour-apparel-gear/i,E:"tour_rr"},SoftballProGloves:{RecID:"SoftballProGloves",T:/\/s\/sports\/softball\/softball-pro-gloves/i,E:"softball_rr"},SoloStoveBrand:{RecID:"Brand",
T:/\/s\/brand-shop\/shop-solo-stove/i,E:"Coupon3_rr",D:["PageURL","PageName"]},PerfectGameBrand:{RecID:"Brand",T:/\/s\/perfect-game/i,E:"sports_rr",D:["PageURL","PageName"]},Brand:{RecID:"Brand",T:/\/s\/(taylormade-golf-clubs-and-equipment|callaway-golf-brand-shop|maxfli-elevated-brand-shop|easton-ghost-bats|titleist-tsr-woods|shop-mens-swim|shop-the-north-face|sports\/baseball\/baseball-pro-gloves)/i,E:"brand_rr",D:["PageURL","PageName"]},Brand1:{RecID:"Brand1",T:/\/s\/(vans|howler-brothers|hestra-gloves|snow-peak-gear|zpacks-gear|askov-finlayson|hyperlite-mountain-gear|simms-fishing|sorel|free-people-clothing|altra|cannondale|shop-all-cannondale-bikes|hoka-one-one|birkenstock|parks-project|beyond-yoga)/i,
E:"brand1_rr",D:["PageURL","PageName"]},DSGHouseBrand:{RecID:"DSGBrand",T:/\/s\/(brand-shop\/)?dsg-brand-clothing-gear/i,E:"category2_rr",D:["PageURL","PageName"]},MJtoPBL:{RecID:"MJtoPBL",T:/\/s\/marketing\/welcome-to-public-lands/i,E:"home_rr",D:["PageURL","PageName"]},GolfClubhouse:{RecID:"GolfClubhouse",T:/\/s\/brand-shop\/emerging-brands-golf-apparel-footwear/i,E:"golf_rr",D:["PageURL","PageName"]},StPatricksDay:{RecID:"StPatricksDay",T:/\/s\/seasonal\/st-patricks-day/i,E:"holiday2_rr",D:["PageURL",
"PageName"]},Easter:{RecID:"Easter",T:/\/s\/seasonal\/easter-gifts/i,E:"holiday2_rr",D:["PageURL","PageName"]},BrandShop:{RecID:"BrandShop",T:/\/s\/brand-shop\//i,E:"brand_rr;brand1_rr",D:["PageURL","PageName","BrandShopName"]},GenericStatic:{RecID:"Static",T:/\/s\/fitness\/fitness-pooled-campaign/i,E:"static_rr ",D:["PageURL","PageName"]}};c=[{S:c.DicksSportingGoods,E:"Desktop",I:"dickssportinggoods04",P:{Home:{E:"home3_rr;home4_rr;home_rr;home1_rr;home2_rr;contenthome1_rr;holiday_rr"},Category:{E:"category_rr"},
Family:{E:"family1_rr;family2_rr;family4_rr;deals_rr"},Search:{E:function(){return 0<_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?"search_rr":"nosearch1_rr;nosearch_rr;contentsearch1_rr"}},ProductDetails:{E:function(){if("Out of Stock"===z("ProductAvailability"))return"oosproduct_rr;oosproduct2_rr;oosproduct3_rr";var c=(/^(CSE|SEM|SNS):/i.test(_dsgTag.HelperFunctions.GetQueryStringValue("camp"))||0<=_dsgTag.DataLayer.GetValue("ReferringPageURL").toLowerCase().indexOf("google")||"true"==
_dsgTag.HelperFunctions.GetQueryStringValue("EmailPLA"))&&!window.turnOffPLASchemes||window.forcePLASchemes?window.isNewPLATemplateEnabled?"product3landing_rr;product4landing_rr;product5landing_rr":"product1landing_rr;pdplanding_rr;product3_rr;productlanding_rr;product2landing_rr":"product1_rr;product3_rr;product_rr;product2_rr";"Bundle"==z("ProductPageTemplateType")&&(c=c.replace("product_rr","product4_rr"));return c+";product5_rr"}},StoreLocatorLocalStore:{E:"store_rr"},Proxy:{E:function(){return z("CategoryID")?
"sdcategory_rr":z("FamilyID")?"sdfamily1_rr":[]}},DSGBrand:{RecID:"DSGBrand",T:/\/s\/(taylormade-stealth|callaway-paradym|shop-ooni|shop-blackstone)/i,E:"brand_rr",D:["PageURL","PageName"]}}},{S:c.DicksSportingGoods,E:"Mobile",I:"dickssportinggoods05",P:{Home:{E:"home3_rr;home4_rr;home_rr;home1_rr;home2_rr;mcontenthome1_rr;holiday_rr"},Category:{E:"category_rr"},Family:{E:"family1_rr;family_rr;family2_rr;family4_rr;deals_rr"},Search:{E:function(){return 0<_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?
"search_rr;search2_rr":"nosearch1_rr;nosearch_rr;mcontentsearch1_rr"}},ProductDetails:{E:function(){if("Out of Stock"===z("ProductAvailability"))return"oosproduct_rr;oosproduct2_rr;oosproduct3_rr;product1_rr;product_rr;product2_rr";var c=(/^(CSE|SEM|SNS):/i.test(_dsgTag.HelperFunctions.GetQueryStringValue("camp"))||0<=_dsgTag.DataLayer.GetValue("ReferringPageURL").toLowerCase().indexOf("google")||"true"==_dsgTag.HelperFunctions.GetQueryStringValue("EmailPLA"))&&!window.turnOffPLASchemes||window.forcePLASchemes?
window.isNewPLATemplateEnabled?"product3landing_rr;product4landing_rr;product5landing_rr":"product1landing_rr;pdplanding_rr;product3_rr;productlanding_rr;product2landing_rr":"product1_rr;product3_rr;product_rr;product2_rr";"Bundle"==z("ProductPageTemplateType")&&(c=c.replace("product_rr","product4_rr"));return c+";product5_rr"}},StoreLocatorLocalStore:{E:"store_rr"},Proxy:{E:function(){return z("CategoryID")?"sdcategory_rr":z("FamilyID")?"sdfamily1_rr":[]}},DSGBrand:{RecID:"DSGBrand",T:/\/s\/(taylormade-stealth|callaway-paradym|shop-ooni|shop-blackstone)/i,
E:"brand_rr",D:["PageURL","PageName"]}}},{S:c.GolfGalaxy,E:"Desktop",I:"golfgalaxy01",P:{Home:{E:"home1_rr;homeratings_rr;home_rr"},Category:{E:"category_rr"},Family:{E:"family1_rr;family_rr;deals_rr"},Search:{E:function(){return 0==_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?"nosearch1_rr;nosearch_rr":""}},ProductDetails:{E:function(){return"Out of Stock"!==z("ProductAvailability")?"product1_rr;product3_rr;product_rr;product2_rr;product5_rr":"product1_rr;oosproduct_rr;product_rr;product2_rr"}},
StoreLocatorLocalStore:{E:"store_rr"},GGXYBrand:{RecID:"GGXYBrand",T:/\/s\/(taylormade-stealth|callaway-paradym)/i,E:"golf_rr",D:["PageURL","PageName"]}}},{S:c.GolfGalaxy,E:"Mobile",I:"golfgalaxy02",P:{Home:{E:"home1_rr;homeratings_rr;home_rr"},Search:{E:function(){return 0<_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?"search_rr;search2_rr":"nosearch1_rr;nosearch_rr"}},ProductDetails:{E:function(){return"Out of Stock"!==z("ProductAvailability")?"product1_rr;product3_rr;product_rr;product2_rr;product5_rr":
"product1_rr;oosproduct_rr;product_rr;product2_rr"}},StoreLocatorLocalStore:{E:"store_rr"},GGXYBrand:{RecID:"GGXYBrand",T:/\/s\/(taylormade-stealth|callaway-paradym)/i,E:"golf_rr",D:["PageURL","PageName"]}}},{S:c.PublicLands,I:"publiclands01",E:"Desktop",P:{Home:{E:"home3_rr;home_rr;home1_rr;home2_rr;contenthome1_rr"},Category:{E:"category_rr"},Family:{E:"family1_rr;family2_rr;family4_rr;deals_rr"},Search:{E:function(){return 0<_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?"search_rr":
"nosearch1_rr;nosearch_rr;contentsearch1_rr"}},ProductDetails:{E:function(){if("Out of Stock"===z("ProductAvailability"))return"oosproduct_rr;oosproduct2_rr;oosproduct3_rr";var c=/^(CSE|SEM|SNS):/i.test(_dsgTag.HelperFunctions.GetQueryStringValue("camp"))||0<=_dsgTag.DataLayer.GetValue("ReferringPageURL").toLowerCase().indexOf("google")||"true"==_dsgTag.HelperFunctions.GetQueryStringValue("EmailPLA")?"product1landing_rr;pdplanding_rr;product3_rr;productlanding_rr;product2landing_rr":"product1_rr;product3_rr;product_rr;product2_rr";
"Bundle"==z("ProductPageTemplateType")&&(c=c.replace("product_rr","product4_rr"));return c+";product5_rr"}},StoreLocatorLocalStore:{E:"store_rr"},Proxy:{E:function(){return z("CategoryID")?"sdcategory_rr":z("FamilyID")?"sdfamily1_rr":[]}},PBLBrand:{RecID:"PBLBrand",T:/\/s\/(shop-ooni|shop-blackstone)/i,E:"brand1_rr",D:["PageURL","PageName"]}}},{S:c.PublicLands,I:"publiclands02",E:"Mobile",P:{Home:{E:"home3_rr;home_rr;home1_rr;home2_rr;contenthome1_rr"},Category:{E:"category_rr"},Family:{E:"family1_rr;family2_rr;family4_rr;deals_rr"},
Search:{E:function(){return 0<_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?"search_rr":"nosearch1_rr;nosearch_rr;contentsearch1_rr"}},ProductDetails:{E:function(){if("Out of Stock"===z("ProductAvailability"))return"oosproduct_rr;oosproduct2_rr;oosproduct3_rr";var c=/^(CSE|SEM|SNS):/i.test(_dsgTag.HelperFunctions.GetQueryStringValue("camp"))||0<=_dsgTag.DataLayer.GetValue("ReferringPageURL").toLowerCase().indexOf("google")||"true"==_dsgTag.HelperFunctions.GetQueryStringValue("EmailPLA")?
"product1landing_rr;pdplanding_rr;product3_rr;productlanding_rr;product2landing_rr":"product1_rr;product3_rr;product_rr;product2_rr";"Bundle"==z("ProductPageTemplateType")&&(c=c.replace("product_rr","product4_rr"));return c+";product5_rr"}},StoreLocatorLocalStore:{E:"store_rr"},Proxy:{E:function(){return z("CategoryID")?"sdcategory_rr":z("FamilyID")?"sdfamily1_rr":[]}},PBLBrand:{RecID:"PBLBrand",T:/\/s\/(shop-ooni|shop-blackstone)/i,E:"brand1_rr",D:["PageURL","PageName"]}}},{S:c.GoingGoingGone,I:"goinggoinggone01",
E:"Desktop",P:{Home:{E:"home3_rr;home_rr;home1_rr;home2_rr;contenthome1_rr"},Category:{E:"category_rr"},Family:{E:"family1_rr;family2_rr;family4_rr;deals_rr"},Search:{E:function(){return 0<_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?"search_rr":"nosearch1_rr;nosearch_rr;contentsearch1_rr"}},ProductDetails:{E:function(){if("Out of Stock"===z("ProductAvailability"))return"oosproduct_rr;oosproduct2_rr;oosproduct3_rr";var c=(/^(CSE|SEM|SNS):/i.test(_dsgTag.HelperFunctions.GetQueryStringValue("camp"))||
0<=_dsgTag.DataLayer.GetValue("ReferringPageURL").toLowerCase().indexOf("google")||"true"==_dsgTag.HelperFunctions.GetQueryStringValue("EmailPLA"))&&!window.turnOffPLASchemes?window.isNewPLATemplateEnabled?"product3landing_rr;product4landing_rr;product5landing_rr":"product1landing_rr;pdplanding_rr;product3_rr;productlanding_rr;product2landing_rr":"product1_rr;product3_rr;product_rr;product2_rr";"Bundle"==z("ProductPageTemplateType")&&(c=c.replace("product_rr","product4_rr"));return c+";product5_rr"}},
StoreLocatorLocalStore:{E:"store_rr"},Proxy:{E:function(){return z("CategoryID")?"sdcategory_rr":z("FamilyID")?"sdfamily1_rr":[]}}}},{S:c.GoingGoingGone,I:"goinggoinggone02",E:"Mobile",P:{Home:{E:"home3_rr;home_rr;home1_rr;home2_rr;contenthome1_rr"},Category:{E:"category_rr"},Family:{E:"family1_rr;family2_rr;family4_rr;deals_rr"},Search:{E:function(){return 0<_dsgTag.DataLayer.GetValue("InternalSearchResultsCount")?"search_rr":"nosearch1_rr;nosearch_rr;contentsearch1_rr"}},ProductDetails:{E:function(){if("Out of Stock"===
z("ProductAvailability"))return"oosproduct_rr;oosproduct2_rr;oosproduct3_rr";var c=(/^(CSE|SEM|SNS):/i.test(_dsgTag.HelperFunctions.GetQueryStringValue("camp"))||0<=_dsgTag.DataLayer.GetValue("ReferringPageURL").toLowerCase().indexOf("google")||"true"==_dsgTag.HelperFunctions.GetQueryStringValue("EmailPLA"))&&!window.turnOffPLASchemes?window.isNewPLATemplateEnabled?"product3landing_rr;product4landing_rr;product5landing_rr":"product1landing_rr;pdplanding_rr;product3_rr;productlanding_rr;product2landing_rr":
"product1_rr;product3_rr;product_rr;product2_rr";"Bundle"==z("ProductPageTemplateType")&&(c=c.replace("product_rr","product4_rr"));return c+";product5_rr"}},StoreLocatorLocalStore:{E:"store_rr"},Proxy:{E:function(){return z("CategoryID")?"sdcategory_rr":z("FamilyID")?"sdfamily1_rr":[]}}}}];for(var e in c)if(!(c[e].S!==A&&"undefined"!==typeof c[e].S||c[e].E!==C&&"undefined"!==typeof c[e].E)){d.I=c[e].I;d.C=c[e].C;for(var f in c[e].P)for(var g in c[e].P[f])"undefined"===typeof d.P[f]&&(d.P[f]={}),d.P[f][g]=
c[e].P[f][g];break}return d}(function(){var c=function(){function d(c){return void 0!==c&&null!==c&&"null"!==c&&""!==c?!0:!1}function e(){try{return resx.rrelem}catch(H){}return""}function f(c){try{var e=null,f;if(d(c))if(e=[],d(document.getElementById(c)))e[0]=c;else{var g=c.replace(/[,;]/g,".").split(".");for(f=0;f<g.length;f+=1)""!==g[f]&&d(document.getElementById(g[f]))?e[f]=g[f]:e[f]=""}return e}catch(va){}return null}function g(){try{var c;if(void 0!==resx.rrelem){var g=f(e());if(void 0!==g&&
null!==g)for(c=0;c<g.length;c+=1){var h=""!==g[c]?document.getElementById(g[c]):null;d(h)&&(h.style.visibility="visible")}}}catch(ja){}}function h(c,d){try{A||(A=!0,u=c+"|"+(void 0!==d.number?d.number:"undefined")+"|"+(void 0!==d.name?d.name:"undefined")+"|"+(void 0!==d.description?d.description:"undefined"))}catch(V){}finally{g()}}function k(c){try{if(0<document.cookie.length){var d=document.cookie;var e=d.indexOf(c+"=");if(-1!==e){e+=c.length+1;var f=d.indexOf(";",e);-1===f&&(f=d.length);return decodeURIComponent(d.slice(e,
f))}}}catch(va){h("",va)}return null}function l(c,e,f,g){try{var k=new Date;null!==f&&k.setTime(k.getTime()+36E5*f);document.cookie=c+"="+encodeURIComponent(e)+(null!==f?"; expires="+k.toGMTString():"")+"; path=/"+(d(g)?"; domain="+g:"")}catch(ia){h("",ia)}}function p(){try{if(-1===navigator.userAgent.toLowerCase().indexOf("mac")){var c=Math.floor(1E15*Math.random());c+=""}else{var d=Math.floor(1E6*Math.random());var e=new Date;var f=e.getTime();a:{e=f+"";try{var g;f="";e+="";for(g=e.length-1;0<=
g;--g)f+=e.charAt(g);var k=f;break a}catch(sa){}k=""}c=d+""+k.slice(0,11)}return c}catch(sa){h("guid",sa)}return""}function n(c){try{var n={callback:!1},q;if(void 0===c)c=n;else for(q=0;q<n.length;q+=1)void 0===c[q]&&(c[q]=n[q]);A=!1;I=u="";J=-1;K=!1;G=D=F="";B=v=C=z=!1;t=0;a:{try{var P=window.location.hostname;if(d(P)){if(!P.match(/(\d{1,3}\.){3}\d{1,3}/)){var E=P.split(".");if(1<E.length){P="."+E[E.length-2]+"."+E[E.length-1];var H=/\.co\.\w{2}$|\.com\.\w{2}$|\.\w{2}\.com$/;P.toLowerCase().match(H)&&
2<E.length&&(P="."+E[E.length-3]+P)}}var aa=P;break a}}catch(ha){h("gsd",ha)}aa=null}var U=!1;d(resx.dnt)&&(0===resx.dnt&&(d(resx.trackingid)&&(I=String(resx.trackingid)),U=!0,J=0),1===resx.dnt&&(I=d(resx.trackingid)?String(resx.trackingid):"000000000000000",U=!0,J=1),d(I)||(U=!1,J=-1,K=!0));U||(I=d(resx.trackingid)?String(resx.trackingid):k("RES_TRACKINGID"),d(I)||(I=p()));F=d(resx.segment)?String(resx.segment):"";d(F)?z=!0:F="1";K||(U?l("RES_TRACKINGID",I,-1,aa):0<I.length&&(l("RES_TRACKINGID",
I,9490,aa),d(k("RES_TRACKINGID"))||l("RES_TRACKINGID",I,null,aa)));D=d(resx.pageid)?resx.pageid:p();var L=void 0!==resx.links?String(resx.links):"";if(d(L)){var S=L.replace(/,/g,";").replace(/\|/g,"%7C").split(";",50);for(q=0;q<S.length;q+=1)G+=S[q]+";"}if("string"===typeof c.callback&&"certonaResx.showResponse"!==c.callback||!1===c.callback||d(resx.rrcall)&&"certonaResx.showResponse"!==resx.rrcall)B=!0;a:{try{var Q,T;if(T=void 0!==resx.rrec&&(!0===resx.rrec||"true"===resx.rrec)&&("1"===F||z)&&d(resx.rrelem)&&
!A){if(!B){T=!1;var N=f(e());if(void 0!==N&&null!==N)for(Q=0;Q<N.length;Q+=1)if(d(N[Q])){T=!0;break}}if(T&&!d(resx.useitems)&&(T=!1,void 0!==resx.rrnum)){var X=resx.rrnum;X+="";X=X.replace(/,/g,";");var Y=X.split(";");for(Q=0;Q<Y.length;Q+=1){var R;if(R=!isNaN(Y[Q])){b:{try{var O=parseInt(Y[Q],10);break b}catch(ha){}O=void 0}R=0<O}if(R){T=!0;break}}}}var W=T;break a}catch(ha){}W=!1}(C=W&&d(I)&&d(D))||g()}catch(ha){h("pv",ha)}}function q(f){try{var g;if(("1"===F||z)&&!K){C&&window.setTimeout(c.checkCallback,
50);var k="https:"===window.location.protocol.toLowerCase()?"https://":"http://";var l="www.res-x.com";d(resx.host)&&(l=resx.host);var p=window.location.href.slice(0,400);d(resx.href)&&(p=resx.href);var n=document.referrer;d(resx.referrer)&&(n=resx.referrer);var q=g="appid="+(void 0!==resx.appid?resx.appid:"")+"&tk="+(d(I)?I:"")+"&pg="+(d(D)?D:"")+"&sg="+(d(F)?F:""),t=(void 0!==resx.event?"&ev="+resx.event:"")+(void 0!==resx.itemid?"&ei="+resx.itemid:"")+(void 0!==resx.qty?"&qty="+resx.qty:"")+(void 0!==
resx.price?"&pr="+resx.price:"")+(void 0!==resx.shipping?"&sh="+resx.shipping:"")+(void 0!==resx.total?"&tt="+resx.total:"")+(void 0!==resx.currencycode?"&cc="+resx.currencycode:"")+(d(resx.customerid)&&0!==J&&1!==J?"&cu="+resx.customerid:"")+(void 0!==resx.transactionid?"&tr="+resx.transactionid:"")+(void 0!==resx.keyword?"&kwd="+resx.keyword:"");a:{try{var v,B="";for(v=0;51>v;v+=1)if(void 0!==resx["cv"+v]){var P=resx["cv"+v];P+="";P=P.replace(/\+/g,"%2B");B+="&cv"+v+"="+encodeURIComponent(P)}var E=
B;break a}catch(ya){h("gcv",ya)}E=""}g=q+(t+E+(d(G)?"&plk="+G:""));q=g+=0===J||1===J?"&dnt="+J:"";t="&bx="+C;if(C)a:{try{var aa;v=E="";var H="";if(d(resx.rrelem)){var U=e().replace(/[,;]/g,".").split(".");if(null!==U)for(aa=0;aa<U.length;aa+=1)H+="&sc="+U[aa]}"boolean"===typeof f&&!0===f?E=d(resx.rrcall)?resx.rrcall:"certonaResx.showResponse":"string"===typeof f&&(E=f);0<E.length&&(v="certonaResx.showResponse"===E?"&cb=":"&ccb=",v+=E);var L=H+(d(resx.useitems)?"&ui="+resx.useitems:"&no="+resx.rrnum)+
(d(resx.rrqs)?"&"+resx.rrqs:"")+(d(resx.rrnav)?"&nav="+resx.rrnav:"")+(d(resx.exitemid)?"&ex="+resx.exitemid:"")+v;break a}catch(ya){}L=""}else L="";g=q+(t+L);g+="&vr=5.11x&url="+encodeURIComponent(p)+"&ref="+encodeURIComponent(n)+(!0===A?"&er="+A+"&em="+encodeURIComponent(u):"");return(k+l+"/ws/r2/Resonance.aspx?"+g).slice(0,2013)}}catch(ya){}return""}var t,u="",v,B,A=!1,z,C,D,G,F,I,J,K;return{checkCallback:function(){try{v||B||(2E3>t?(t+=10,window.setTimeout(c.checkCallback,10)):(B=!0,g()))}catch(H){g()}},
showResponse:function(c){try{v=!0;var e;if(!B){for(e=0;e<c.Resonance.Response.length;e+=1){var f=!1;var h=c.Resonance.Response[e].scheme;if("yes"===c.Resonance.Response[e].display){f=!0;var k=document.getElementById(h);d(k)&&(k.innerHTML=c.Resonance.Response[e].output)}"function"===typeof resonanceResponseLoaded&&resonanceResponseLoaded(h,f)}"function"===typeof resonanceResponseLoadedAll&&resonanceResponseLoadedAll()}}catch(ia){}finally{g()}},getURL:function(c){n(c);var d={callback:!1},e;if(void 0===
c)c=d;else for(e=0;e<d.length;e+=1)void 0===c[e]&&(c[e]=d[e]);return q(c.callback)},run:function(){n({callback:!0});var c=q(!0);try{if(""!==c){var d=document.createElement("script"),e=document.getElementsByTagName("script")[0];d.type="text/javascript";d.async=!0;d.src=c;e.parentNode.insertBefore(d,e)}}catch(ja){}}}}(),d=function(){function c(){if(!g.isReady){try{document.documentElement.doScroll("left")}catch(aa){setTimeout(c,1);return}g.ready()}}var d,e,f={"[object Boolean]":"boolean","[object Number]":"number",
"[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},g={isReady:!1,readyWait:1,holdReady:function(c){c?g.readyWait++:g.ready(!0)},ready:function(c){if(!0===c&&!--g.readyWait||!0!==c&&!g.isReady){if(!document.body)return setTimeout(g.ready,1);g.isReady=!0;!0!==c&&0<--g.readyWait||d.resolveWith(document,[g])}},bindReady:function(){if(!d){d=g._Deferred();if("complete"===document.readyState)return setTimeout(g.ready,
1);if(document.addEventListener)document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",g.ready,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",e);window.attachEvent("onload",g.ready);var f=!1;try{f=null==window.frameElement}catch(T){}document.documentElement.doScroll&&f&&c()}}},_Deferred:function(){var c=[],d,e,f,h={done:function(){if(!f){var e=arguments,k,l;d&&(l=d,d=0);var p=0;for(k=e.length;p<k;p++){var n=e[p];var q=g.type(n);"array"===q?h.done.apply(h,
n):"function"===q&&c.push(n)}l&&h.resolveWith(l[0],l[1])}return this},resolveWith:function(g,h){if(!f&&!d&&!e){h=h||[];e=1;try{for(;c[0];)c.shift().apply(g,h)}finally{d=[g,h],e=0}}return this},resolve:function(){h.resolveWith(this,arguments);return this},isResolved:function(){return!(!e&&!d)},cancel:function(){f=1;c=[];return this}};return h},type:function(c){return null==c?String(c):f[Object.prototype.toString.call(c)]||"object"}};document.addEventListener?e=function(){document.removeEventListener("DOMContentLoaded",
e,!1);g.ready()}:document.attachEvent&&(e=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",e),g.ready())});return function(c){g.bindReady();g.type(c);d.done(c)}}();window.certonaResx=c;window.ready=d})();var z=_dsgTag.DataLayer.GetValue,A=_dsgTag.currentWebsite,C=_dsgTag.experience,p=z("PageURL"),l=A===_dsgTag.Websites.DicksSportingGoods||A===_dsgTag.Websites.PublicLands||A===_dsgTag.Websites.GoingGoingGone,G,F;"Mobile App"===C&&(C="Mobile");"Kiosk"===C&&(C=
"Desktop");var I=!1,K=[],J=!1,R="",N=!1;_dsgTag.FunctionRepository.AddCertonaResponseHandler(function(c){for(var d=0;d<c.resonance.schemes.length;d++){var e=c.resonance.schemes[d];"cart1_rr"==e.scheme&&"no"==e.display&&_dsgTag.EventHandlers.TriggerEvent("multiUseAnalyticsEvent",{event:"Certona scheme did not display",value:e.scheme})}});e.AddEventHandler("NewPageView",function(A,C){if(!C||!C.pageTypeOverride){p=z("PageURL");G=D();F=B(G);if(null!==F&&(A=u(F,"EN"),"undefined"==typeof A||A)){var J=u(F,
"D")||[];J.push("AOSStoreID","SavedStoreNumber","ZipCodeEstimation");_dsgTag.DataLayer.PassValuesToFunction(J,function(){try{for(var c={},d=0;d<arguments.length;d++)c[J[d]]=arguments[d];var f=c.AOSStoreID,g=c.SavedStoreNumber,h={},k=[],p=[];h.rrelem=u(F,"E");h.event=u(F,"EV");h.itemid=u(F,"I");h.externalPageHit=!document.referrer||0>document.referrer.indexOf(_dsgTag.currentWebsite.Domain);f&&(h.storeNumber=f);g&&!c.StoreLocatorStoreNumber&&"surveyresults"!==h.event&&k.push("storeid="+g);u(F,"RecID")&&
k.push("pagelocation="+u(F,"RecID"));f={lia:/^CSE\|.*?\|.*?(lia|mk_pla_454).*?\|/i,pla:/^CSE\|.*?\|.*?(PLA|pla|bingshoppingpaid).*?\|/i,sem:/^SEM/i,seo:/^SEO/i,dabasocial:/^SNS\|.*?\|.*?(daba).*?\|/i,dpasocial:/^SNS\|.*?\|.*?(dpa).*?\|/i,othersocial:/^SNS/i};var n=_dsgTag.HelperFunctions.GetMarketingChannelInfo();n=n.Channel+"|"+n.ReferringDomain.toLowerCase()+"|"+n.Campaign.toLowerCase()+"|"+n.URL;for(var q in f)if(f[q].test(n)){k.push("entrancesource="+q);break}if(c){c.InternalSearchTerm&&k.push("SearchTerm="+
c.InternalSearchTerm);c.FamilyID?(k.push("categoryid="+c.FamilyID),h.itemid=c.FamilyID+("category_r"===h.event?";"+(_dsgTag.HelperFunctions.GetQueryStringValue("contentid")?_dsgTag.HelperFunctions.GetQueryStringValue("contentid"):""):"")):c.CategoryID&&(k.push("categoryid="+c.CategoryID),h.itemid=c.CategoryID+("category_r"===h.event?";"+(_dsgTag.HelperFunctions.GetQueryStringValue("contentid")?_dsgTag.HelperFunctions.GetQueryStringValue("contentid"):""):""));c.ProductID?p.push(c.ProductID):c.ProductIDList&&
p.push.apply(p,c.ProductIDList);l&&(F!==G.P.ProductDetails&&(p=[]),c.ProductSKU?(p.push(c.ProductSKU),R=c.ProductSKU):c.ProductSKUList&&p.push.apply(p,c.ProductSKUList));if(c.ProductPageTemplateType&&"bundle"===c.ProductPageTemplateType.toLowerCase()&&c.ProductDetails&&1<c.ProductDetails.length)for(d=0;d<c.ProductDetails.length;d++)p.push(c.ProductDetails[d].ProductID);c.StoreLocatorStoreNumber&&k.push("storeid="+c.StoreLocatorStoreNumber);c.ProductQuantityList&&(h.qty=c.ProductQuantityList.join(";"));
if(c.ProductPriceList&&c.ProductQuantityList){prices=c.ProductPriceList;for(n=0;n<prices.length;n++)prices[n]*=c.ProductQuantityList[n];currentValue=prices.join(";");h.price=currentValue}c.OrderTotal&&c.OrderTax&&c.OrderShippingRevenue&&(h.total=(parseFloat(c.OrderTotal)-c.OrderTax-c.OrderShippingRevenue).toFixed(2));c.OrderID&&(h.transactionid=c.OrderID);if(c.ProductReturnsArray){h.itemid=[];if("undefined"!==typeof c.ProductReturnsArray.product)h.itemid.push(c.ProductReturnsArray.product.sku);else if("undefined"!==
typeof c.ProductReturnsArray.length)for(d=0;d<c.ProductReturnsArray.length;d++)h.itemid.push(c.ProductReturnsArray[d].sku);h.itemid=h.itemid.join(";")}if(u(F,"RecID")&&0<=u(F,"RecID").toLowerCase().indexOf("brand")&&(c.PageURL||c.PageName)){n={"free-people-clothing":"FP Movement by Free People","dsg-brand-clothing-gear":"DSG","taylormade-golf-clubs-and-equipment":"Taylormade","callaway-golf-brand-shop":"Callaway","maxfli-elevated-brand-shop":"Maxfli","easton-ghost-bats":"Easton Sports","titleist-tsr-woods":"Titleist",
"baseball-pro-gloves":"Pro Series Gloves","perfect-game":"perfectgame","shop-solo-stove":"solo"};var t=c.BrandShopName,B=c.PageURL;t=t||document.querySelector(".cmp-title__text").innerText.toLowerCase();for(q in n)if(0<=B.toLowerCase().indexOf(q.toLowerCase())){t=n[q];break}t?k.push("brand="+t):_dsgTag.HelperFunctions.DebugLog("Couldn't determine brand name for Certona!",2)}}for(d=0;d<k;d++)k[d]=encodeURIComponent(k[d]);h.rrqs=k.join("&");0<p.length&&(h.itemid=p.join(";"));if(!_dsgTag.isProduction&&
_dsgTag.pageType==_dsgTag.PageTypes.ProductDetails){c=[];k=[];if(h.rrelem){h.rrelem=h.rrelem.split(";");for(d=0;d<h.rrelem.length;d++)if("undefined"!==typeof Array.prototype.indexOf&&0<=k.indexOf(h.rrelem[d])){c.push(h.rrelem.splice(d,1));break}h.rrelem=h.rrelem.join(";")}if("undefined"!==typeof Object.assign&&0<c.length){var A=Object.assign({},h);A.rrelem=c.join(";");d=[];for(var z in A)if("undefined"!==typeof A[z])switch(z){case "itemid":d.push("ei="+A[z]);break;case "rrelem":d.push("sc="+A[z])}d.push("no=10");
var C="https://main-productrecommendations.apps.an01.pcf.dcsg.com/recommendations?"+d.join("&");_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction(C,e.Name)}}F.C&&(G.C=F.C)}catch(ua){_dsgTag.HelperFunctions.DebugLog("Error in Process Certona: "+ua.message,2)}v(h)},C)}if(!I){e.AddEventHandler("ProductQuickView",h);e.AddEventHandler("AddToCart",f);l&&e.AddEventHandler("SKUResolve",q);e.AddEventHandler("tabbedComponentClicked",c);e.AddEventHandler("CartDataUpdated",d);e.AddEventHandler("TrackOrder",
g);e.AddEventHandler("NotifyMeStock",n);e.AddEventHandler("AlternativeInStockProduct",k);e.AddEventHandler("AdobeTargetRequestSucceeded",t);"undefined"!==typeof window.DSGShoppingPathJS&&"function"==typeof window.DSGShoppingPathJS.certonaRecommendations&&_dsgTag.FunctionRepository.AddCertonaResponseHandler(window.DSGShoppingPathJS.certonaRecommendations);"function"==typeof window.certonaRecommendations&&_dsgTag.FunctionRepository.AddCertonaResponseHandler(window.certonaRecommendations);var K=[],N=
0,S=function(){try{if(window.adobeDataLayer){for(var c=0;window.adobeDataLayer[c]&&0==K.length;){if(window.adobeDataLayer[c].component)for(var d=Object.getOwnPropertyNames(window.adobeDataLayer[c].component),e=0;e<d.length;e++)(0==d[e].toLowerCase().indexOf("dynamicproductplacement")||0<=window.adobeDataLayer[c].component[d[e]]["@type"].toLowerCase().indexOf("productplacement"))&&window.adobeDataLayer[c].component[d[e]].productSKUList&&(K=window.adobeDataLayer[c].component[d[e]].productSKUList);c++}0<
K.length&&(c=K,d={rrelem:"article_rr;article2_rr"},0<c.length&&(d.itemid=c.join(";"),v(d)))}else 10>N&&(N++,setTimeout(S,500))}catch(xa){}};S()}I=!0}})});_dsgTag.certonaResponseHandlers=[];_dsgTag.certonaData=[];_dsgTag.FunctionRepository.HandleCertonaResponse=function(e){e.source="Certona";_dsgTag.certonaData.push(e);for(var g=0;g<_dsgTag.certonaResponseHandlers.length;g++)_dsgTag.certonaResponseHandlers[g](e)};
_dsgTag.FunctionRepository.AddCertonaResponseHandler=function(e){_dsgTag.certonaResponseHandlers.push(e);for(var g=0;g<_dsgTag.certonaData.length;g++)e(_dsgTag.certonaData[g])};_dsgTag.FunctionRepository.RegisterTag("CommissionJunction",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:var g=482772;var c=1583679;var d=972974011589;break;case _dsgTag.Websites.GolfGalaxy:g=482912;c=1583739;d=973786998200;break;case _dsgTag.Websites.PublicLands:g=482892;c=1583740;
d=973778043146;break;case _dsgTag.Websites.GoingGoingGone:g=482913,c=1583741,d=973793807439}if(c){var f="https://www.mczbf.com/tags/"+d.toString()+"/tag.js",n=function(){_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction(f,e.Name,null,"cjapitag")},k=function(){var c="";switch(_dsgTag.pageType){case _dsgTag.PageTypes.Home:c="homepage";break;case _dsgTag.PageTypes.Search:c="searchResults";break;case _dsgTag.PageTypes.Category:c="category";break;case _dsgTag.PageTypes.Family:c="subcategory";break;
case _dsgTag.PageTypes.ProductDetails:c="productDetail";break;case _dsgTag.PageTypes.Cart:c="cart";break;case _dsgTag.PageTypes.MyAccount:c="accountCenter";break;case _dsgTag.PageTypes.MyAccountRegistration:c="accountSignup";break;case _dsgTag.PageTypes.Static:0<=window.location.href.indexOf("/s/stores")&&(c="storeLocator")}return c};e.AddEventHandler("NewPageView",function(d,e){window.cj||(window.cj={});if(_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation)_dsgTag.DataLayer.PassValuesToFunction(["OrderID",
"OrderTotal","OrderTax","OrderShippingRevenue","ProductListArray"],function(d,e,f,h,k){var q="0.00";e&&f&&h&&(q=parseFloat(e-f-h).toFixed(2));cj.order={enterpriseId:c,pageType:"conversionConfirmation",orderId:d,actionTrackerId:g,currency:"USD",amount:q,items:[]};_dsgTag.HelperFunctions.GetCookieValue("cje")&&(cj.order.cjeventOrder=_dsgTag.HelperFunctions.GetCookieValue("cje"));for(d=0;d<k.length;d++)e={},e.itemId=k[d].ProductSKU,e.quantity=k[d].ProductQty,e.unitPrice=k[d].CurrentPricePerUnit,e.discount=
(k[d].DistributedOrderDiscountPerUnit*k[d].ProductQty).toFixed(2),15<k[d].ProductQty&&!cj.order.category&&(cj.order.category="reseller"),cj.order.items.push(e);_dsgTag.CustomerIDs.AthleteID&&(cj.order.userId=_dsgTag.CustomerIDs.AthleteID);_dsgTag.CustomerIDs.HashedEmail&&(cj.order.emailHash=_dsgTag.CustomerIDs.HashedEmail);if(k=_dsgTag.HelperFunctions.GetValue("CJChannel")?JSON.parse(_dsgTag.HelperFunctions.GetValue("CJChannel")):"")cj.order.bypassChannel=k;n()},e);else{d=k();var f=_dsgTag.HelperFunctions.GetMarketingChannelInfo();
if(e=_dsgTag.HelperFunctions.GetValue("CJChannel"))e=JSON.parse(e),2592E5<=Date.now()-Date.parse(e.timestamp)&&(e=null,_dsgTag.HelperFunctions.DeleteValue("CJChannel"));if(f&&f.Channel){var h="";switch(f.Channel){case "AFF":h="CJ";break;case "DRT":h="Direct";break;case "DSP":h="Display";break;case "SNS":h="Social";break;case "SEM":case "SEO":h="Search";break;case "EML":h="Email";break;default:h="Other"}h&&(f={name:h,timestamp:(new Date(Date.now())).toISOString()},e&&"Direct"===h||_dsgTag.HelperFunctions.SaveValue("CJChannel",
JSON.stringify(f)))}d&&(cj.sitePage={enterpriseId:c,pageType:d},_dsgTag.CustomerIDs.AthleteID&&(cj.sitePage.userId=_dsgTag.CustomerIDs.AthleteID),_dsgTag.CustomerIDs.HashedEmail&&(cj.sitePage.emailHash=_dsgTag.CustomerIDs.HashedEmail),n())}})}});_dsgTag.FunctionRepository.RegisterTag("CriteoRemarketing",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","MJ"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="",c="",d=!1;switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:d=!0;g="25953";break;case _dsgTag.Websites.GolfGalaxy:g="35855";break;case _dsgTag.Websites.PublicLands:g="88190";d=!0;break;case _dsgTag.Websites.Moosejaw:g="88190",
d=!0,c="ui_moosejaw"}g&&(_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("//dynamic.criteo.com/js/ld/ld.js?a="+g,e.Name,function(){}),window.criteo_q=window.criteo_q||[],window.criteo_q.push({event:"setAccount",account:g},{event:"setSiteType",type:"Desktop"===_dsgTag.experience?"d":"Mobile"===_dsgTag.experience||"Mobile App"===_dsgTag.experience?"m":"Tablet"===_dsgTag.experience?"t":""},{event:"setEmail",email:_dsgTag.CustomerIDs.HashedEmail,hash_method:"sha256"}),c&&(g={event:"setData"},g[c]=
"yes",window.criteo_q.push(g)),e.AddEventHandler("NewPageView",function(c,e){switch(_dsgTag.pageType){case _dsgTag.PageTypes.Home:window.criteo_q.push({event:"viewHome"});break;case _dsgTag.PageTypes.Family:case _dsgTag.PageTypes.Search:window.criteo_q.push({event:"viewList"});break;case _dsgTag.PageTypes.ProductDetails:_dsgTag.DataLayer.PassValuesToFunction(["ProductID","ProductSKU"],function(c,e){window.criteo_q.push({event:"viewItem",item:d?e||c:c})},e);break;case _dsgTag.PageTypes.OrderConfirmation:_dsgTag.DataLayer.PassValuesToFunction(["ProductListArray",
"OrderID"],function(c,e){items=[];if(c)for(var f=0;f<c.length;f++)items.push({id:d?c[f].ProductSKU:c[f].ProductID,price:parseFloat(c[f].CurrentPricePerUnit-c[f].DistributedOrderDiscountPerUnit).toFixed(2),quantity:c[f].ProductQty});window.criteo_q.push({event:"trackTransaction",id:e,item:items})},e);break;default:window.criteo_q.push({event:"viewPage"})}}),e.AddEventHandler("AddToCart",function(c,e){if(e&&e.ProductsAddedToCart&&0<e.ProductsAddedToCart.length){c=[];if(e&&e.ProductsAddedToCart&&"object"===
typeof e.ProductsAddedToCart&&0<e.ProductsAddedToCart.length)for(var f=0;f<e.ProductsAddedToCart.length;f++)e.ProductsAddedToCart[f]&&e.ProductsAddedToCart[f].ProductID&&c.push({id:d?e.ProductsAddedToCart[f].ProductSKU:e.ProductsAddedToCart[f].ProductID,price:e.ProductsAddedToCart[f].CurrentPricePerUnit,quantity:e.ProductsAddedToCart[f].ProductQty});0<c.length&&window.criteo_q.push({event:"addToCart",item:c})}}),e.AddEventHandler("CartDataUpdated",function(c,e){_dsgTag.DataLayer.PassValuesToFunction(["ProductListArray"],
function(c){items=[];if(c)for(var e=0;e<c.length;e++)items.push({id:d?c[e].ProductSKU:c[e].ProductID,price:c[e].CurrentPricePerUnit,quantity:c[e].ProductQty});window.criteo_q.push({event:"viewBasket",item:items})},e)}))});_dsgTag.FunctionRepository.RegisterTag("CriteoSponsored",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="421"}g&&_dsgTag.pageType!==_dsgTag.PageTypes.Category&&_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("//"+(_dsgTag.isProduction?"www.hlserve.com":"uat1.hlserve.com")+"/Delivery/ClientPaths/Library/hook.js?cid="+
g,e.Name,function(){if(window.HLLibrary){var c=_dsgTag.experience,d="",f={},g="",k="",q="",h="",t=function(e){e.setProperty("shopper-account-id",_dsgTag.CustomerIDs.CustomerKey);e.setProperty("shopper-browser-id",_dsgTag.CustomerIDs.AdobeMCVID);d&&(e.setPageId("DSG"+("Mobile"===c||"Tablet"===c||"Mobile App"===c?"Mobile":"")+d),e.submit())};e.AddEventHandler("NewPageView",function(c,e){var f=HLLibrary.newRequest();switch(_dsgTag.pageType){case _dsgTag.PageTypes.Home:d="Homepage";t(f);break;case _dsgTag.PageTypes.Category:_dsgTag.DataLayer.PassValuesToFunction(["CategoryID"],
function(c){d="CatPage";g=c;f.setProperty("category",g);t(f)},e);break;case _dsgTag.PageTypes.Family:_dsgTag.DataLayer.PassValuesToFunction(["FamilyID","FamilyProductCount","SortMethod"],function(c,e,h){d="BrowsePage";g=c;q=e;f.setProperty("category",g);f.setProperty("list-size",q);k="Price Low to High"===h?"price_asc":"Price High to Low"===h?"price_des":"other";f.setProperty("sort",k);t(f)},e);break;case _dsgTag.PageTypes.Search:_dsgTag.DataLayer.PassValuesToFunction(["InternalSearchResultsCount",
"InternalSearchTerm"],function(c,e){d=0<c?"SearchPage":"NullSearchPage";h=e;q=c;k="other";0<c?f.setProperty("keyword",h):f.setProperty("category","homepage");f.setProperty("list-size",q);f.setProperty("sort",k);t(f)},e);break;case _dsgTag.PageTypes.Static:"No Search Results Found"===_dsgTag.DataLayer.GetValue("PageName",e)?(d="NullSearchPage",f.setProperty("category","homepage"),f.setProperty("list-size",0),f.setProperty("sort","other"),t(f)):"Recommended For You"===_dsgTag.DataLayer.GetValue("PageName",
e)&&(d="HomepageRecHub",f.setProperty("category","homepage"),t(f));break;case _dsgTag.PageTypes.ProductDetails:_dsgTag.DataLayer.PassValuesToFunction(["ProductID","ProductAvailability","ProductPriceList","ProductListPriceList"],function(c,e,g,h){d="ProdPage";f.setProperty("category","");f.setProperty("viewed-sku-parent",c);for(var k=c=0,l=0;l<g.length;l++)c=parseFloat(g[l])>c?parseFloat(g[l]):c;for(l=0;l<h.length;l++)k=parseFloat(h[l])>k?parseFloat(h[l]):k;f.setProperty("current-price",c.toFixed(2));
f.setProperty("list-price",k.toFixed(2));f.setProperty("in-stock","true"===e?"1":"0");t(f)},e);break;case _dsgTag.PageTypes.OrderConfirmation:_dsgTag.DataLayer.PassValuesToFunction(["OrderID","ProductListArray"],function(c,e){d="Conf";f.setProperty("order-id",c);c=[];for(var g=[],h=[],k=0;k<e.length;k++)c.push(e[k].ProductSKU),g.push(e[k].ProductQty),h.push(e[k].CurrentPricePerUnit-e[k].DistributedOrderDiscountPerUnit);f.setProperty("event-sku",c.join("|"));f.setProperty("price",h.join("|"));f.setProperty("quantity",
g.join("|"));t(f)},e)}});e.AddEventHandler("AddToCart",function(c,d){"undefined"!==typeof d.ProductsAddedToCart&&0<d.ProductsAddedToCart.length&&(c=HLLibrary.newRequest(),c.setProperty("shopper-account-id",_dsgTag.CustomerIDs.CustomerKey),c.setProperty("shopper-browser-id",_dsgTag.CustomerIDs.Webstore),c.setProperty("event","AddToCart"),c.setProperty("event-sku",d.ProductsAddedToCart[0].ProductSKU),c.setProperty("price",d.ProductsAddedToCart[0].CurrentPricePerUnit),c.setProperty("quantity",d.ProductsAddedToCart[0].ProductQty),
t(c))});e.AddEventHandler("ResultsViewUpdate",function(c,e){c=HLLibrary.newRequest();c.setProperty("shopper-account-id",_dsgTag.CustomerIDs.CustomerKey);c.setProperty("shopper-browser-id",_dsgTag.CustomerIDs.Webstore);if("SortMethod"===e.UpdateType)c.setProperty("event","Sort"),k="Price Low to High"===e.UpdateValue?"price_asc":"Price High to Low"===e.UpdateValue?"price_des":"other",c.setProperty("sort",k);else if("Refinement"===e.UpdateType){filterValue={Name:e.UpdateValue.RefinementAttribute,Value:e.UpdateValue.RefinementValue};
"PRICE"===filterValue.Name||"X_BazaarVoice_ratings_DSG"===filterValue.Name?f[filterValue.Name]=filterValue.Value:(f[filterValue.Name]||(f[filterValue.Name]=[]),0>f[filterValue.Name].indexOf(filterValue.Value)&&f[filterValue.Name].push(filterValue.Value));filterCalls=[];for(var n in f)values=f[n],comparator="eq","PRICE"===n?(n="price",0<=values.indexOf("under")?(values=values.replace("under $",""),filterCalls.push({Name:n,Comparator:"lt",Values:values})):0<=values.indexOf("-")&&(values=/\$(\d+) - \$(\d+)/.exec(values).splice(1),
filterCalls.push({Name:n,Comparator:"ge",Values:values[0]}),filterCalls.push({Name:n,Comparator:"le",Values:values[1]}))):("X_BazaarVoice_ratings_DSG"===n?(n="rating",comparator="ge",values=values.replace("X_BazaarVoice_ratings_DSG","")):("Brand"===n&&(n="brand"),values=values.join("|")),filterCalls.push({Name:n,Comparator:comparator,Values:values}));for(e=0;e<filterCalls.length;e++)c.setFilter(filterCalls[e].Name,filterCalls[e].Comparator,filterCalls[e].Values);"BrowsePage"===d?c.setProperty("category",
g):"SearchPage"===d&&c.setProperty("keyword",h);c.setProperty("sort",k)}t(c)})}})});_dsgTag.FunctionRepository.RegisterTag("Epsilon",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"aos",c:"=",v:!1},{t:"page",c:"=",v:"Order Confirmation"}],function(e){function g(c){_dsgTag.DataLayer.PassValuesToFunction(["OrderID","ProductQuantityList","OrderTotal","OrderTax","OrderShippingRevenue"],function(c,e,g,k,q){var d=(new Date).toISOString();d=d.substring(0,19)+"Z";for(var f=_dsgTag.currentWebsite.Domain,n=0,v=0;v<e.length;v++)n+=parseInt(e[v],10);n=n.toString();e=parseFloat(g-k-q).toFixed(2);
pixelURL="https://e."+f+"/C?hEventName=Purchase&hAmount="+e+"&hQuantity="+n+"&hOrderId="+c+"&hCustomerTransactionId="+c+"&hDateTime="+encodeURIComponent(d);document.createElement("img").src=pixelURL},c)}e.AddEventHandler("NewPageView",function(c,d){_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&g(d)})});_dsgTag.FunctionRepository.RegisterTag("Facebook",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE","MJ"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="",c="",d="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="135094900296930";c="2790099174426551";d="443467580009962";break;case _dsgTag.Websites.GolfGalaxy:g="837841406319460";break;case _dsgTag.Websites.PublicLands:g=
"1380756192320784";break;case _dsgTag.Websites.GoingGoingGone:g="1127232681100669";break;case _dsgTag.Websites.Moosejaw:g="1295173757833128"}if(g){(function(c){window.fbq||(c=window.fbq=function(){c.callMethod?c.callMethod.apply(c,arguments):c.queue.push(arguments)},window._fbq||(window._fbq=c),c.push=c,c.loaded=!0,c.version="2.0",c.queue=[],_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://connect.facebook.net/en_US/fbevents.js",e.Name))})();var f=function(c){_dsgTag.DataLayer.PassValuesToFunction("OrderID OrderTotal OrderTax OrderShippingRevenue ProductListArray OrderPaymentMethods OrderShippingMethod".split(" "),
function(c,e,f,n,q,D,z){var h="0.00",t=0;e&&f&&n&&(h=parseFloat(e-f-n).toFixed(2));e=[];f=0;n=!1;if(q)for(var p,l=0;l<q.length;l++){isNaN(Number(q[l].ProductQty))||(t+=Number(q[l].ProductQty));p={content_type:"product"};p.content_id=q[l].ProductSKU;p.currency="USD";p.value=parseFloat(q[l].CurrentPricePerUnit-q[l].DistributedOrderDiscountPerUnit).toFixed(2);p.brand=q[l].ProductBrand;1>f&&"undefined"!==typeof q[l].FulfillmentMethod&&q[l].FulfillmentMethod.match(/BOPIS/)&&(f=1);n="23sojuphnhldrbgxxtrm"===
q[l].ProductID.toLowerCase()||n;if(p.brand)for(var u=0;u<_dsgTag.brandsToTrack.length;u++)p.brand.toLowerCase()===_dsgTag.brandsToTrack[u].toLowerCase()&&k("trackCustom","BrandPurchase",p,c+"-"+u);e.push({id:q[l].ProductSKU,quantity:q[l].ProductQty})}c&&h&&0<e.length&&(q={},q.order_id=c,q.value=h,q.contents=e,q.content_type="product",q.currency="USD",q.num_items=t.toString(),q.bopis=f.toString(),q.delivery_category=0<=z.toLowerCase().indexOf("sameday")?"same_day":1===f?"in_store":"home_delivery",
q.synchrony=(0<=D.join(",").toLowerCase().indexOf("plcc")).toString(),k("trackSingle",g,"Purchase",q,c),d&&n&&k("trackSingle",d,"Dicks_GC_StreamKit_KPI_Purchase",c))},c)},n=!1,k=function(){if(!n&&!n){var e={};_dsgTag.CustomerIDs.HashedEmail&&(e.em=_dsgTag.CustomerIDs.HashedEmail);fbq("init",g,e);c&&fbq("init",c,e);d&&fbq("init",d,e);n=!0}e=arguments[0];switch(e){case "track":case "trackCustom":4==arguments.length?fbq(e,arguments[1],arguments[2],{eventID:arguments[3]}):_dsgTag.HelperFunctions.DebugLog("Incorrect argument count for Facebook type "+
e,!0);break;case "trackSingle":5==arguments.length?fbq(e,arguments[1],arguments[2],arguments[3],{eventID:arguments[4]}):_dsgTag.HelperFunctions.DebugLog("Incorrect argument count for Facebook type "+e,!0)}};e.AddEventHandler("NewPageView",function(c,e){c={};_dsgTag.HelperFunctions.GetQueryStringValue("CONNECTION_STATUS")&&"success"==_dsgTag.HelperFunctions.GetQueryStringValue("CONNECTION_STATUS").toLowerCase()&&(c={NikeConnected:!0});k("track","PageView",c,e.taggingEventID);if(_dsgTag.pageType===
_dsgTag.PageTypes.ProductDetails){c=_dsgTag.DataLayer.GetValue("ProductID",e);c=c.split(",");var h={};c&&(h.content_ids=c);h.content_type="product_group";k("trackSingle",g,"ViewContent",h,e.taggingEventID);d&&"/p/gamechanger-streaming-kit-w-fence-mount-tripod-23sojuphnhldrbgxxtrm/23sojuphnhldrbgxxtrm"===window.location.pathname&&k("trackSingle",d,"Dicks_GC_StreamKit_PageView",{},e.taggingEventID)}else _dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&f(e)});e.AddEventHandler("AddToCart",function(c,
e){if(e&&e.ProductsAddedToCart&&0<e.ProductsAddedToCart.length){c=[];var f=0,h=!1;try{if(e&&e.ProductsAddedToCart&&"object"===typeof e.ProductsAddedToCart&&0<e.ProductsAddedToCart.length)for(var n=0;n<e.ProductsAddedToCart.length;n++)e.ProductsAddedToCart[n]&&e.ProductsAddedToCart[n].ProductSKU&&(f+=e.ProductsAddedToCart[n].CurrentPricePerUnit*e.ProductsAddedToCart[n].ProductQty,c.push({id:e.ProductsAddedToCart[n].ProductSKU,quantity:e.ProductsAddedToCart[n].ProductQty}),h="23sojuphnhldrbgxxtrm"===
e.ProductsAddedToCart[n].ProductID.toLowerCase()||h)}catch(B){_dsgTag.HelperFunctions.DebugLog("Facebook AddToCart Pixel - Error while parsing product info",!0)}0<c.length&&(n={},n.value=f.toFixed(2),n.content=c,n.content_type="product",n.currency="USD",k("trackSingle",g,"AddToCart",n,e.taggingEventID),d&&h&&k("trackSingle",d,"Dicks_GC_StreamKit_AddToCart",n,e.taggingEventID))}});e.AddEventHandler("EmailSignup",function(c){k("trackSingle",g,"Lead",{currency:"USD",value:0},c.taggingEventID)})}});_dsgTag.FunctionRepository.RegisterTag("Google",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE","MJ"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){function g(g,t){function h(c){return"undefined"!==typeof c.FulfillmentMethod&&c.FulfillmentMethod.match(/bopis/gi)}window._gTagData=window._gTagData||[];c("js",new Date);c("config",f);var v=1<document.title.split("|").length?document.title.split("|")[0]:document.title;
v=v.replace(/[^\x00-\x7F]+/g,"");_dsgTag.DataLayer.PassValuesToFunction(["PageURL"],function(f){var g="/"+f.split("/").splice(3).join("/");g=g.toLowerCase();switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c("event","conversion",{send_to:"AW-1001247795/VkXCCM3y9AYQs6i33QM",aw_remarketing_only:!0});c("event","conversion",{send_to:"DC-4845927/dsgsi0/retar0+standard",allow_custom_scripts:!0});c("event","conversion",{send_to:"DC-10419326/dsglu0/dsg-g0+unique",u1:window.location.href,
allow_custom_scripts:!0});e.AddEventHandler("EmailSignup",function(){c("event","conversion",{send_to:"DC-4351555/dsg20001/sitev0+standard",allow_custom_scripts:!0,u11:v,u14:"1",u16:_dsgTag.suspectedAB})});break;case _dsgTag.Websites.GolfGalaxy:c("event","conversion",{send_to:"AW-991675069/9SmjCJu33gkQvYXv2AM",aw_remarketing_only:!0});break;case _dsgTag.Websites.PublicLands:c("event","conversion",{allow_custom_scripts:!0,send_to:"DC-4351555/publi0/publi0+per_session",u16:_dsgTag.suspectedAB});break;
case _dsgTag.Websites.GoingGoingGone:c("event","conversion",{allow_custom_scripts:!0,send_to:"DC-4351555/going0/gggsi0+per_session",u16:_dsgTag.suspectedAB})}if(_dsgTag.pageType===_dsgTag.PageTypes.Home)switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c("event","conversion",{u2:"undefined"===typeof window.adobeDataLayer?"homr":"aem",u11:v,send_to:"DC-11687796/dsghj0/dsg_h0+standard",u16:_dsgTag.suspectedAB});break;case _dsgTag.Websites.GolfGalaxy:c("event","conversion",{send_to:"DC-4351555/golfg000/golfg0+standard",
allow_custom_scripts:!0,u11:v,u16:_dsgTag.suspectedAB})}else if(_dsgTag.pageType===_dsgTag.PageTypes.Search)d("view_search_results",n,{page_type:"Search Results"});else if(_dsgTag.pageType===_dsgTag.PageTypes.Category)switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:f="",0<=g.indexOf("/c/golf-equipment")?f="dsg-g00+unique":0<=g.indexOf("/c/shop-all-mens-apparel-footwear")?f="dsg-m0+unique":0<=g.indexOf("/c/shop-all-womens-apparel-footwear")&&(f="dsg-w0+unique"),f&&c("event",
"conversion",{send_to:"DC-10419326/dsglu0/"+f,allow_custom_scripts:!0,u1:window.location.href})}else if(_dsgTag.pageType===_dsgTag.PageTypes.Family)d("view_item_list",n,{page_type:"Family"});else if(_dsgTag.pageType===_dsgTag.PageTypes.ProductDetails)_dsgTag.DataLayer.PassValuesToFunction(["ProductID"],function(e){d("view_item",n,{page_type:"PDP",items:[{id:e,google_business_vertical:"retail"}]});switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c("event","conversion",{send_to:"DC-4351555/dsg20001/shopp0+standard",
allow_custom_scripts:!0,u4:e,u11:v,u16:_dsgTag.suspectedAB}),c("event","conversion",{send_to:"DC-4351555/dsg20001/produ0+unique",allow_custom_scripts:!0,u4:e,u11:v,u16:_dsgTag.suspectedAB}),"23SOJUPHNHLDRBGXXTRM"==e.toUpperCase()&&c("event","conversion",{allow_custom_scripts:!0,u1:window.location.href,send_to:"DC-10552827/gc_st0/dicks0+standard"})}},t);else if(_dsgTag.pageType===_dsgTag.PageTypes.Cart)e.AddEventHandler("CartDataUpdated",function(f,g){_dsgTag.DataLayer.PassValuesToFunction("ProductListArray LoyaltyID OrderLevelPromoCodes OrderTotal OrderTax OrderShippingRevenue".split(" "),
function(f,g,k,q,t,u){q=parseFloat(parseFloat(q-t-u).toFixed(2));u=[];var l=[],p=[];t=[];for(var A=0,z=0,B=0;B<f.length;B++)"undefined"!==typeof f[B].ProductID&&(u.push(f[B].ProductID),l.push(f[B].ProductSKU),p.push(f[B].ProductID+":"+f[B].ProductSKU),t.push({id:f[B].ProductSKU,google_business_vertical:"retail"})),h(f[B])?A+=1:z+=1;var C="2";0===A?C="3":0===z&&(C="1");var G="0";"undefined"!==typeof g&&""!==g&&(G="1");f="0";0<k.length&&k[0]&&(f="1");d("add_to_cart",n,{page_type:"Cart",value:q,items:t});
switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c("event","conversion",{send_to:"DC-4351555/dsg20001/shopp0+standard",allow_custom_scripts:!0,u4:l.join(","),u5:C,u8:G,u9:f,u11:v,u16:_dsgTag.suspectedAB});e.AddEventHandler("CheckStoreAvailabilitySearch",function(){c("event","conversion",{send_to:"DC-4351555/dsg20001/sitev0+standard",allow_custom_scripts:!0,u4:l.join(","),u5:C,u8:G,u11:v,u13:"1",u16:_dsgTag.suspectedAB})});break;case _dsgTag.Websites.GolfGalaxy:c("event","conversion",
{send_to:"AW-991675069/9SmjCJu33gkQvYXv2AM",aw_remarketing_only:!0}),c("event","conversion",{send_to:"DC-4351555/golfg001/golfg0+standard",allow_custom_scripts:!0,u4:l.join(","),u5:C,u8:G,u9:f,u11:v,u16:_dsgTag.suspectedAB})}},g)});else if(_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation)_dsgTag.DataLayer.PassValuesToFunction("ProductListArray OrderID OrderTotal OrderTax OrderShippingRevenue OrderDiscountTotal BillingZip BillingState LoyaltyID OrderLevelPromoCodes OrderPaymentMethods OrderShippingMethod HashedEmailAddress CheckoutSummary".split(" "),
function(e,f,g,l,t,u,B,z,D,R,N,X,S,Q){function p(d){for(brand in d)if(d[brand][_dsgTag.currentWebsite.Abbreviation]){var g=e.filter(function(c){return"all"==brand.toLowerCase()?!0:"afterpay"==brand.toLowerCase()&&0<=ka.indexOf("afterpay")?!0:"affirm"==brand.toLowerCase()&&0<=ka.indexOf("affirm")?!0:"plcc"==brand.toLowerCase()&&0<=ka.indexOf("plcc")?!0:c.ProductBrand.toLowerCase()==brand.toLowerCase()});if(0<g.length){var k=0,l=[],n=[],p=[],q=[],t=[],u=0,A=0,C=0,G;g.forEach(function(c){G=parseFloat(c.CurrentPricePerUnit-
c.DistributedOrderDiscountPerUnit);l.push(c.ProductID);n.push(c.ProductSKU);p.push(c.ProductQty);q.push(G.toFixed(2));t.push(c.ProductBrand);k+=parseFloat((G*c.ProductQty).toFixed(2));h(c)?A+=1:C+=1});u="2";0===A?u="3":0===C&&(u="1");g={send_to:d[brand][_dsgTag.currentWebsite.Abbreviation],allow_custom_scripts:!0,value:k,transaction_id:f,u1:f,u4:l.join(","),u5:u,u6:B,u7:z,u8:fa,u9:ra,u11:v,u12:"all"===brand.toLowerCase()?X:"",u13:_dsgTag.currentWebsite.Domain,u16:_dsgTag.suspectedAB,u18:"all"===brand.toLowerCase()?
t:brand,u19:n.join(","),u20:ka.join(","),u21:p.join(","),u22:q.join(",")};c("event","purchase",g)}}}function A(d,e){d={send_to:d,value:C,transaction_id:f,currency:"USD",discount:u,aw_merchant_id:e,aw_feed_country:"US",aw_feed_language:"EN",items:J};!Z&&S&&(d.user_data=d.userData||{},d.user_data.email=S);c("event","purchase",d)}var C=parseFloat(parseFloat(g-l-t).toFixed(2)),G=[];l=[];var I=[];t=[];var F=[],J=[],K=0,Y=0,ea=0;g=!1;for(var E,L=0;L<e.length;L++)"undefined"!==typeof e[L].ProductID&&(G.push(e[L].ProductID),
l.push(e[L].ProductSKU),I.push(e[L].ProductID+":"+e[L].ProductSKU),t.push(e[L].ProductQty),ea+=e[L].ProductQty,E=parseFloat(e[L].CurrentPricePerUnit-e[L].DistributedOrderDiscountPerUnit).toFixed(2),F.push(E),g="23sojuphnhldrbgxxtrm"===e[L].ProductID.toLowerCase()||g),h(e[L])?K+=1:Y+=1,J.push({id:e[L].ProductSKU,quantity:e[L].ProductQty,price:E,google_business_vertical:"retail"});var Z=!1;try{for(L=0;L<Q.cart.items.length&&!Z;L++){var ba=Q.cart.items[L].attributes.display[0].values;for(E=0;E<ba.length&&
!Z;E++)Z=Z||0<=q.indexOf(ba[0])}}catch(ua){}Q="2";0===K?Q="3":0===Y&&(Q="1");var fa="0";"undefined"!==typeof D&&""!==D&&(fa="1");var ra="0";0<R.length&&R[0]&&(ra="1");var ka=[];for(L=0;L<N.length;L++)ka.push(N[L].replace(/\(.+\)/gi,"").trim().toLowerCase());D={allow_custom_scripts:!0,value:C,transaction_id:f,items:J,u1:f,u2:ea.toString(),u3:C,u4:l.join(","),u5:Q,u6:B,u7:z,u8:fa,u9:ra,u11:v,u16:_dsgTag.suspectedAB,u20:F.join(","),u21:t.join(",")};!Z&&S&&(D.user_data=D.userData||{},D.user_data.email=
S);d("purchase",n,{page_type:"Order Confirmation",value:C,items:J});switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:A("AW-1006136630/z7F-CMqB_AYQttrh3wM",7972);d("purchase",k,D,"/dsg20002/confi0+transactions");c("event","purchase",{send_to:"DC-4845927/dsgon0/dsgsh0+transactions",allow_custom_scripts:!0,value:C,transaction_id:f});c("event","conversion",{allow_custom_scripts:!0,send_to:"DC-10419326/dsglu0/dsg-p0+unique"});g&&c("event","purchase",{allow_custom_scripts:!0,value:C,
transaction_id:f,u1:window.location.href,send_to:"DC-10552827/sales0/dicks0+transactions"});_dsgTag.HelperFunctions.PullJSONFromURL("scripts/rmn-brands.json",p);break;case _dsgTag.Websites.GolfGalaxy:A("AW-986469690/GJMrCP60yQgQuqqx1gM",106997);d("purchase",k,D,"/golfg001/golfg004+transactions");_dsgTag.HelperFunctions.PullJSONFromURL("scripts/rmn-brands.json",p);break;case _dsgTag.Websites.PublicLands:A("AW-347384067/aO-7CIT_-O4CEIPS0qUB",477117549);d("purchase",k,D,"/publi00/publi0+transactions");
break;case _dsgTag.Websites.GoingGoingGone:A("AW-347384043/WymNCO6g0O4CEOvR0qUB",507778641);d("purchase",k,D,"/going00/gggor0+transactions");break;case _dsgTag.Websites.Moosejaw:A("AW-1059669297/nBIYCMuH-AEQsYql-QM",30663),d("purchase",k,D,"/auto_tra/moose0+transactions")}},t);else if(_dsgTag.pageType===_dsgTag.PageTypes.StoreLocatorIFrame)switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:e.AddEventHandler("AJAXStoreSearch",function(){c("event","conversion",{send_to:"DC-4351555/dsg20001/sitev0+standard",
allow_custom_scripts:!0,u11:v,u13:"1",u16:_dsgTag.suspectedAB})})}else if(_dsgTag.pageType===_dsgTag.PageTypes.InStoreDisplay){f=window.location.pathname.split("/")[window.location.pathname.split("/").length-1].toLowerCase();f={"trackman-custom-page":"DC-11687796/trackma0/track0+standard"}[f];g=_dsgTag.HelperFunctions.GetQueryStringValue("store")||"";var u=_dsgTag.HelperFunctions.GetQueryStringValue("bay")||"";f&&c("event","conversion",{allow_custom_scripts:!0,u11:v,u13:_dsgTag.currentWebsite.Domain,
u14:g,u15:u,u16:_dsgTag.suspectedAB,send_to:f})}else if(0<=g.indexOf("/s/holiday")||0<=g.indexOf("/s/special-offer-promo-omni"))switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c("event","conversion",{send_to:"AW-1006136630/feZDCLzTuosBELba4d8D",value:1,currency:"USD"})}else if(0<=g.indexOf("/s/email-sign-up"))switch(_dsgTag.currentWebsite){case _dsgTag.Websites.GolfGalaxy:c("event","conversion",{send_to:"DC-4351555/golfg000/golfg002+standard",allow_custom_scripts:!0,u11:v,
u16:_dsgTag.suspectedAB})}else if(0<=g.indexOf("/s/golf-services"))switch(_dsgTag.currentWebsite){case _dsgTag.Websites.GolfGalaxy:c("event","conversion",{send_to:"DC-4351555/golfg000/golfg00+standard",allow_custom_scripts:!0,u11:v,u16:_dsgTag.suspectedAB})}else if(0<=g.indexOf("/s/our-top-deals"))switch(_dsgTag.currentWebsite){case _dsgTag.Websites.GolfGalaxy:c("event","conversion",{send_to:"DC-4351555/golfg000/golfg001+standard",allow_custom_scripts:!0,u11:v,u16:_dsgTag.suspectedAB})}else if(0<=
g.indexOf("/s/golf-events-and-in-store-golf-demonstrations"))switch(_dsgTag.currentWebsite){case _dsgTag.Websites.GolfGalaxy:c("event","conversion",{send_to:"DC-4351555/golfg000/golfg000+standard",allow_custom_scripts:!0,u11:v,u16:_dsgTag.suspectedAB})}else 0<=g.indexOf("/s/scheduling/confirmedservice")?_dsgTag.DataLayer.PassValuesToFunction(["ServiceName","ServiceOrderID","ServiceRevenue"],function(d,e,f){var g={DSG:"DC-4351555/auto_act/gamet0+standard",GGXY:"DC-4351555/GolfG0/golfg001+standard"};
g[_dsgTag.currentWebsite.Abbreviation]&&c("event","conversion",{allow_custom_scripts:!0,u1:e,u2:1,u4:d,u11:v,u15:f.toFixed(2),u16:_dsgTag.suspectedAB,send_to:g[_dsgTag.currentWebsite.Abbreviation]})},t):0<=g.indexOf("/s/taylormade-tp5-2022")?_dsgTag.currentWebsite===_dsgTag.Websites.DicksSportingGoods&&c("event","conversion",{allow_custom_scripts:!0,send_to:"DC-9666466/dsgtp5/2023t0+standard"}):_dsgTag.DataLayer.PassValuesToFunction(["LoyaltyID","RegistrationOccured"],function(d,e){switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:var f=
0,g="0";"undefined"!==typeof d&&""!==d&&(g="1");e&&(f=1);c("event","conversion",{send_to:"DC-4351555/dsg20001/sitev0+standard",allow_custom_scripts:!0,u8:g,u10:f,u11:v,u16:_dsgTag.suspectedAB});break;case _dsgTag.Websites.GolfGalaxy:c("event","conversion",{send_to:"DC-4351555/golfg000/golfg0+standard",allow_custom_scripts:!0,u11:v,u16:_dsgTag.suspectedAB})}},t);e.AddEventHandler("AddToCart",function(e,f){e=[];var g=0,h=!1;if("undefined"!==typeof f.ProductsAddedToCart&&0<f.ProductsAddedToCart.length){for(var k=
0;k<f.ProductsAddedToCart.length;k++)g+=parseFloat(f.ProductsAddedToCart[k].CurrentPricePerUnit)*parseInt(f.ProductsAddedToCart[k].ProductQty),e.push({id:f.ProductsAddedToCart[k].ProductSKU,google_business_vertical:"retail"}),h="23sojuphnhldrbgxxtrm"===f.ProductsAddedToCart[k].ProductID.toLowerCase()||h;d("add_to_cart",n,{page_type:"Add To Cart",value:g,items:e});switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c("event","conversion",{allow_custom_scripts:!0,send_to:"DC-10419326/dsglu0/dsg-a0+unique",
u1:window.location.href});h&&c("event","conversion",{allow_custom_scripts:!0,u1:window.location.href,send_to:"DC-10552827/gc_st0/dicks00+standard"});break;case _dsgTag.Websites.PublicLands:c("event","conversion",{allow_custom_scripts:!0,send_to:"DC-4351555/publi0/publi00+standard",u16:_dsgTag.suspectedAB});break;case _dsgTag.Websites.GoingGoingGone:c("event","conversion",{allow_custom_scripts:!0,send_to:"DC-4351555/going0/gggad0+standard",u16:_dsgTag.suspectedAB})}}});_dsgTag.HelperFunctions.GetQueryStringValue("CONNECTION_STATUS")&&
"success"==_dsgTag.HelperFunctions.GetQueryStringValue("CONNECTION_STATUS").toLowerCase()&&c("event","conversion",{send_to:"DC-11687796/nike50/nike_000+standard",allow_custom_scripts:!0,u11:v,u16:_dsgTag.suspectedAB});_dsgTag.HelperFunctions.BindDocumentClickEventWithAdditionalSelector(".affirm-modal-trigger",function(){c("event","conversion",{send_to:"DC-10419326/dsglu0/dsg-a00+unique",allow_custom_scripts:!0})});0<=window.location.href.indexOf("/s/connected")&&_dsgTag.HelperFunctions.BindDocumentClickEventWithAdditionalSelector("button#panel-trigger",
function(){c("event","conversion",{allow_custom_scripts:!0,u11:v,u18:"Nike",send_to:"DC-11687796/nike50/nike_001+standard",u16:_dsgTag.suspectedAB})});0<=window.location.href.indexOf("/s/scorerewards-credit-card")&&_dsgTag.HelperFunctions.BindDocumentClickEventWithAdditionalSelector("[href*='apply.syf.com']",function(){c("event","conversion",{allow_custom_scripts:!0,u11:v,u18:"Synchrony",send_to:"DC-11687796/synch0/synch0+standard",u16:_dsgTag.suspectedAB})});e.AddEventHandler("AnyRoadIframeMessage",
function(d,e){d=["/s/knoxville-schedule-events-services","/s/victor-schedule-events-services","/s/minnetonka-schedule-events-services"];for(var f=!1,g=0;g<d.length&&!f;g++)f=0<=window.location.href.indexOf(d[g]);f&&"purchase"===e.event&&(c("event","conversion",{send_to:"AW-1006136630/PxqkCJXL_4oYELba4d8D",value:1,currency:"USD"}),c("event","conversion",{send_to:"AW-1006136630/3_8vCI6BkIsYELba4d8D"}))})},t)}function c(){_gTagData.push(arguments)}function d(d,e,f,g){e[_dsgTag.currentWebsite.Abbreviation]&&
(f.send_to=e[_dsgTag.currentWebsite.Abbreviation]+(g||""))&&c("event",d,f)}var f="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:f="AW-1006136630";break;case _dsgTag.Websites.GolfGalaxy:f="AW-986469690";break;case _dsgTag.Websites.PublicLands:f="AW-347384067";break;case _dsgTag.Websites.GoingGoingGone:f="AW-347384043";break;case _dsgTag.Websites.Moosejaw:f="AW-1059669297"}var n={DSG:"AW-1006136630",GONE:"AW-768872558",GGXY:"AW-17980030",PBL:"AW-769539972",MJ:"AW-1059669297"},
k={DSG:"DC-4351555",GONE:"DC-4351555",GGXY:"DC-4351555",PBL:"DC-4351555",MJ:"DC-4351555"},q="200-001-002-001 200-001-002-002 200-001-002-003 200-001-002-004 200-001-002-005 200-002-001-001 200-002-002-001 200-002-003-001 200-002-004-001 200-003-006-001 200-003-006-002 200-003-007-001 200-003-007-002 200-003-007-003 200-003-008-001 200-004-002-003 200-006-001-001 200-006-001-002 200-006-001-003 200-008-001-001 205-001-001-001 205-001-002-001 205-001-002-002 205-001-003-001 205-001-003-002 205-001-004-001 205-001-004-002 205-001-004-003 205-001-005-001 205-001-006-001 205-001-006-003 205-001-006-004 205-001-007-001 205-001-007-002 205-001-008-001 205-001-009-001 205-001-0010-001 205-099-001-001 220-001-001-001 220-001-001-002 220-001-001-003 220-001-001-004 220-001-007-001 220-002-001-001 220-002-001-003 220-002-002-001 220-002-002-002 220-002-002-003 220-002-003-001 220-002-003-002 220-002-004-001 220-002-004-002 220-003-001-001 220-003-002-001 220-005-001-001 220-005-002-001 222-001-001-001 222-001-002-001 225-001-001-001 225-001-002-001 225-002-001-001 225-002-002-001 230-001-001-001 230-002-001-001 230-003-001-001".split(" ");
f&&_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://www.googletagmanager.com/gtag/js?l=_gTagData&id="+f,e.Name,function(){e.AddEventHandler("NewPageView",g)})});_dsgTag.FunctionRepository.RegisterTag("GoogleAds",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){function g(d,e){window.googletag=window.googletag||{cmd:[]};googletag.cmd.push(function(){var d=[[728,90],[320,50],"fluid"],f=googletag.sizeMapping().addSize([0,0],[[320,50],"fluid"]).addSize([900,200],[[728,90],"fluid"]).build(),g=[],h=e.AdSpotIDs;"undefined"===typeof h&&
(h=e);if(!Array.isArray(h))if("string"===typeof h)h=[h];else if("object"===typeof h){newSourceData=[];for(l in h)0<=parseInt(l)&&(newSourceData[parseInt(l)]=h[l]);h=newSourceData}for(var t=0;t<h.length;t++)g.push({name:"undefined"!==typeof h[t].name?h[t].name:"string"===typeof h[t]?h[t]:"",size:"undefined"!==typeof h[t].size?h[t].size:""});if(0<g.length)for(googletag.pubads().enableSingleRequest(),googletag.pubads().collapseEmptyDivs(),googletag.pubads().setCentering(!0),_dsgTag.CustomerIDs.AthleteID&&
googletag.pubads().setPublisherProvidedId(_dsgTag.CustomerIDs.AthleteID),googletag.enableServices(),t=0;t<g.length;t++)if(h=[c],g[t].name){var u=g[t].name;var v=function(c){return c.toString().toLowerCase().replace(/[^\w\d\- ]/gi,"").replace(/ +/gi,"-")},B={};_dsgTag.CustomerIDs.AthleteID&&(B.dks_aid=_dsgTag.CustomerIDs.AthleteID);_dsgTag.CustomerIDs.AdobeMCVID&&(B.dks_ecid=_dsgTag.CustomerIDs.AdobeMCVID);B.AdBlocker_DMN="undefined"!==typeof _dsgTag.suspectedAB?_dsgTag.suspectedAB.toString():"false";
var D=window.location.pathname.split("/")[window.location.pathname.split("/").length-1];B.URLPath=D;if(_dsgTag.pageType===_dsgTag.PageTypes.Home){var z=["fluid"];h.push("home")}else if(_dsgTag.pageType===_dsgTag.PageTypes.Category){var A=f;z=d;h.push("category_lp");document.querySelector("meta[name='keywords']")&&(B.metaKeywords=document.querySelector("meta[name='keywords']").content);_dsgTag.DataLayer.GetValue("CategoryID")&&(B.categoryID=_dsgTag.DataLayer.GetValue("CategoryID"));_dsgTag.DataLayer.GetValue("CategoryName")&&
(B.categoryName=_dsgTag.DataLayer.GetValue("CategoryName"));if(e.Breadcrumbs&&1<e.Breadcrumbs.length){D=[];for(var C=[],p=0;p<e.Breadcrumbs.length-1;p++)D.push(v(e.Breadcrumbs[p].name)),C.push(v(e.Breadcrumbs[p].categoryId));B.parentName=D;B.parentID=C}}else if(_dsgTag.pageType===_dsgTag.PageTypes.Family){if(A=f,z=d,h.push("product_lp"),_dsgTag.DataLayer.GetValue("FamilyID")&&(B.familyID=_dsgTag.DataLayer.GetValue("FamilyID")),_dsgTag.DataLayer.GetValue("FamilyName")&&(B.familyName=_dsgTag.DataLayer.GetValue("FamilyName")),
e.Breadcrumbs&&1<e.Breadcrumbs.length){D=[];C=[];for(p=0;p<e.Breadcrumbs.length-1;p++)D.push(v(e.Breadcrumbs[p].name)),C.push(v(e.Breadcrumbs[p].categoryId));B.parentName=D;B.parentID=C}}else if(_dsgTag.pageType===_dsgTag.PageTypes.Search)A=f,z=d,h.push("search"),_dsgTag.DataLayer.GetValue("InternalSearchTerm")&&(B.searchTerm=_dsgTag.DataLayer.GetValue("InternalSearchTerm").toLowerCase().trim().replace(/\s/g,"-").replace(/'s/g,""));else if(_dsgTag.pageType===_dsgTag.PageTypes.ProductDetails)A=f,z=
d,h.push("product_detail"),_dsgTag.DataLayer.GetValue("ProductID")&&(B.productSKU=_dsgTag.DataLayer.GetValue("ProductID")),_dsgTag.DataLayer.GetValue("ProductName")&&(B.productName=_dsgTag.DataLayer.GetValue("ProductName")),_dsgTag.DataLayer.GetValue("ProductGender")&&(B.Gender=_dsgTag.DataLayer.GetValue("ProductGender")),_dsgTag.DataLayer.GetValue("ProductType")&&(B.ProductType=_dsgTag.DataLayer.GetValue("ProductType")),_dsgTag.DataLayer.GetValue("ProductBrand")&&(B.ProductBrand=_dsgTag.DataLayer.GetValue("ProductBrand"));
else if(_dsgTag.pageType===_dsgTag.PageTypes.Static&&0<=window.location.href.indexOf("/s/stores"))A=f,z=d,h.push("stores");else if(_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation)A=f,z=d,h.push("order_confirmation");else if(_dsgTag.pageType===_dsgTag.PageTypes.MyAccount)z=["fluid"],h.push("account/summary");else if(_dsgTag.pageType===_dsgTag.PageTypes.BlogArticle)z=["fluid"],h.push("custom_landing/"+D);else if(_dsgTag.pageType===_dsgTag.PageTypes.InStoreDisplay)z=["fluid"],h.push("custom_landing/"+
D),B.StoreNumber=_dsgTag.HelperFunctions.GetQueryStringValue("store"),B.BayNumber=_dsgTag.HelperFunctions.GetQueryStringValue("bay");else if(_dsgTag.pageType===_dsgTag.PageTypes.Static||_dsgTag.pageType===_dsgTag.PageTypes.BrandShop)z=["fluid"],h.push("custom_landing");"undefined"!==typeof g[t].size&&g[t].size&&(z=[g[t].size]);for(var l in B)"string"==typeof B[l]?googletag.pubads().setTargeting(l,v(B[l])):Array.isArray(B[l])&&googletag.pubads().setTargeting(l,B[l]);h.push(u);3==h.length&&z&&(h=googletag.defineSlot(h.join("/"),
z,u),A&&(h=h.defineSizeMapping(A)),h.addService(googletag.pubads()),googletag.cmd.push(function(){googletag.display(u)}))}})}var c="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c="/22686202263/"+(_dsgTag.isProduction?"dickssportinggoods":"dickssportinggoodstest");break;case _dsgTag.Websites.GolfGalaxy:c="/22686202263/"+(_dsgTag.isProduction?"golfgalaxy":"golf_galaxy_test")}_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://securepubads.g.doubleclick.net/tag/js/gpt.js",
e.Name,function(){e.AddEventHandler("AdSpotsReady",g)})});_dsgTag.FunctionRepository.RegisterTag("LivePerson",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","MJ"]},{t:"aos",c:"=",v:!1},{t:"page",c:"=",v:"Order Confirmation"}],function(e){e.AddEventHandler("NewPageView",function(e,c){_dsgTag.DataLayer.PassValuesToFunction(["OrderID","ProductListArray","OrderTotal","OrderTax","OrderShippingRevenue"],function(c,e,g,k,q){function d(){window.lpTag?window.lpTag.sdes.push(f):setTimeout(d,500)}var f={type:"purchase",currency:"USD",
total:parseFloat(g-k-q).toFixed(2),orderId:c,cart:{products:[]}};if(e)for(c={},g=0;g<e.length;g++)c={},c.quantity=e[g].ProductQty,c.product={},c.product.name=e[g].ProductName,c.product.sku=e[g].ProductSKU,c.product.price=parseFloat(e[g].CurrentPricePerUnit-e[g].DistributedOrderDiscountPerUnit).toFixed(2),f.cart.products.push(c);d()},c)})});_dsgTag.FunctionRepository.RegisterTag("LiveRamp",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG"]},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){function g(c,e){_dsgTag.DataLayer.PassValuesToFunction("OrderID OrderTotal OrderTax OrderShippingRevenue ProductListArray OrderPaymentMethods".split(" "),function(c,d,e,f,g){var h=_dsgTag.CustomerIDs.AthleteID,k=[];if(g)for(var n=0;n<g.length;n++)k.push(g[n].ProductID);g="0.00";d&&e&&f&&(g=parseFloat(d-e-
f).toFixed(2));!function(c,d,e){var f=window;f.DPMSendSingleTransactionEvent&&f.DPMSendSingleTransactionEvent(c,d,e);f.dpmContext=f.dpmContext?f.dpmContext:{};f.dpmContext[(new Date).getTime()]=function(){f.DPMSendSingleTransactionEvent(c,d,e)}}(""+c,""+h,""+g)},e)}var c="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c="dickssportinggoods-1bfa9100-54ca-4d75-ba54-e6f6f7ed96e4"}c&&_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://c.tvpixel.com/js/current/dpm_pixel_min.js?aid="+
c,e.Name,function(){_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&e.AddEventHandler("NewPageView",g)})});_dsgTag.FunctionRepository.RegisterTag("Medallia",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE","MJ"]},{t:"bypass-restricted",v:"true"},{t:"domain",c:"*!=",v:"custhelp"},{t:"page",c:"^!=",v:"Chat"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(){var e="";switch(_dsgTag.websiteOverride||_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:e="117139";break;case _dsgTag.Websites.GolfGalaxy:e="117277";break;case _dsgTag.Websites.PublicLands:e="140583";
break;case _dsgTag.Websites.GoingGoingGone:e="140721";break;case _dsgTag.Websites.Moosejaw:e="355782"}e&&(window.medallia_ab=_dsgTag.DataLayer.GetValue("Random100"),_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://resources.digital-cloud.medallia.com/wdcus/"+e+"/onsite/embed.js"))});_dsgTag.FunctionRepository.RegisterTag("Metrical",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"domain",c:"*!=",v:"custhelp"},{t:"page",c:"^!=",v:"Chat"},{t:"site",c:"*=",v:["DSG","GGXY","PBL"]},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(e){var g="",c="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g=".com.dickssportinggoods.acconfig";c=".getmetrical.com/js/metrical.abandon.cart.dsg.js";var d=!0;break;case _dsgTag.Websites.GolfGalaxy:g=".com.golfgalaxy.acconfig";
c=".getmetrical.com/js/metrical.abandon.cart.golfgalaxy.js";d=!0;break;case _dsgTag.Websites.PublicLands:g=".com.publiclands.acconfig",c=".getmetrical.com/js/metrical.abandon.cart.publiclands.js",d=!0}if(g){g=(_dsgTag.isProduction?"prod":"stage")+g;var f=function(c){return"["+c.join("+")+"]"},n=function(c,e){var g=_dsgTag.DataLayer.GetValue("ProductQuantityList",e);c=parseFloat(_dsgTag.DataLayer.GetValue("OrderTotal",e));var h=parseFloat(_dsgTag.DataLayer.GetValue("OrderTax",e)),k=parseFloat(_dsgTag.DataLayer.GetValue("OrderShippingRevenue",
e)),n=parseFloat(_dsgTag.DataLayer.GetValue("OrderDiscountTotal",e)),q=_dsgTag.DataLayer.GetValue("ProductSKUList",e),t=_dsgTag.DataLayer.GetValue("ProductPriceList",e),p=_dsgTag.DataLayer.GetValue("ProductIDList",e),l=0,u=null,F=parseFloat(c-h-k),I=null,K=0,J=0,R=null;Array.isArray(q)&&(J=q.length,I=q,q=f(q));Array.isArray(t)&&(t=f(t));Array.isArray(p)&&(p=f(p));if(Array.isArray(g)){u=f(g);l+=1;for(var N=0;N<g.length;N++)isNaN(Number(g[N]))||(K+=Number(g[N]))}N=g={isloggedin:_dsgTag.DataLayer.GetValue("SignedInBoolean",
e),customerid:_dsgTag.CustomerIDs.Loyalty,athleteid:_dsgTag.CustomerIDs.AthleteID,pagetype:_dsgTag.pageType.Name};switch(_dsgTag.pageType){case _dsgTag.PageTypes.ProductDetails:N=_dsgTag.HelperFunctions.DeepExtend(g,{itemname:_dsgTag.DataLayer.GetValue("ProductName",e),itemid:_dsgTag.DataLayer.GetValue("ProductID",e),itemprice:t,itemcategory:_dsgTag.DataLayer.GetValue("CategoryName",e),numskusavailable:J,numreviews:_dsgTag.DataLayer.GetValue("ReviewCount",e),customerrating:_dsgTag.DataLayer.GetValue("ReviewAverage",
e),sku:I});break;case _dsgTag.PageTypes.CheckoutBillingShippingAddress:case _dsgTag.PageTypes.CheckoutBillingAddress:case _dsgTag.PageTypes.CheckoutShippingAddress:case _dsgTag.PageTypes.CheckoutDelivery:case _dsgTag.PageTypes.CheckoutPayment:case _dsgTag.PageTypes.CheckoutReview:case _dsgTag.PageTypes.Cart:N=_dsgTag.HelperFunctions.DeepExtend(g,{numuniqueitemsincart:l,totalnumitemsincart:K,cartskulist:q,cartqtylist:u,cartpricelist:t,cartidlist:p,cartid:_dsgTag.DataLayer.GetValue("CartID",e),subtotalcartvalue:F,
totalcartvalue:c});break;case _dsgTag.PageTypes.OrderConfirmation:N=_dsgTag.HelperFunctions.DeepExtend(g,{currency:"USD",zipcode:_dsgTag.DataLayer.GetValue("ZipCodeEstimation",e),billstate:_dsgTag.DataLayer.GetValue("BillingState",e),billzip:_dsgTag.DataLayer.GetValue("BillingZip",e),tax:h,shippingcost:k,numuniqueitemsincart:l,totalnumitemsincart:K,cartskulist:q,cartqtylist:u,cartpricelist:t,cartidlist:p,cartid:_dsgTag.DataLayer.GetValue("CartID",e),subtotalcartvalue:F,totalcartvalue:c,orderid:_dsgTag.DataLayer.GetValue("OrderID",
e),discountvalue:n});break;default:N=g}_MetricalAbandonCart.cart&&(R=_MetricalAbandonCart.cart.usermetaValues());c=null!=R?Object.assign({},N,R):Object.assign({},N);d?_MetricalAbandonCart.EventBus.publish(_MetricalAbandonCart.EventBus.constants.topics.ACTION_PAGE_LOAD,{usermeta:c}):_MetricalAbandonCart.record({action:"Page Load",usermeta:c});0==_dsgTag.DataLayer.GetValue("CartItemQuantity",e)&&_MetricalAbandonCart.observe("postInit",function(){_MetricalAbandonCart.cart.clear()})},k=function(c,e){if(e&&
e.ProductsAddedToCart&&0<e.ProductsAddedToCart.length){console.log("Metrical - Add To Cart");var f=e.ProductsAddedToCart,g=c="",h=0,k=0,n=0;Array.isArray(f)&&f[0]&&(c=f[0].ProductID,g=f[0].ProductSKU,k=f[0].CurrentPricePerUnit,n=f[0].ProductQty,k&&n&&(h=Number(k)*Number(n)));e={itemname:_dsgTag.DataLayer.GetValue("ProductName",e),itemid:c,itemprice:h,sku:g};d?_MetricalAbandonCart.EventBus.publish(_MetricalAbandonCart.EventBus.constants.topics.ACTION_ADD_TO_CART,{usermeta:e,add:{id:c,quantity:parseInt(n),
price:Number(k),sku:g}}):(_MetricalAbandonCart.cart.add(c,parseInt(n),Number(k),g),c=_MetricalAbandonCart.cart.usermetaValues(),_MetricalAbandonCart.updateUserMeta(Object.assign({},e,c)),_MetricalAbandonCart.recordInteraction("Add To Cart"))}},q=function(c,d){if(d&&d.sku){console.log("Metrical SKUResolve");c=d.sku;var e=c.price||c.prices,f={};f[d.ecode+"-"+(c.id||c.partNumber)]={"productId-sku":c.id||c.partNumber,bopis:c.bopisable||c.bopisFlag,currentPrice:e.offerPrice,listPrice:e.listPrice,atsInventory:c.atsInventory||
c.shipQty,"lowStock*Fields":{bopisMessageShown:d.lowStockBopisMessageShown,bopisQuantityAvailable:d.lowStockBopisQuantityAvailable,floorMessageShown:d.lowStockFloorMessageShown||!1,nearbyStoresCount:d.lowStockNearbyStoresCount||0,nearbyStoresCurrentStoreNumber:d.lowStockNearbyStoresCurrentStoreNumber,nearbyStoresMessageShown:d.lowStockNearbyStoresMessageShown,shipMessageShown:d.lowStockShipMessageShown,shipQuantityAvailable:d.lowStockShipQuantityAvailable},avaialbleForPickup:d.AvailableForPickup,
availableInStore:d.AvailableInStore,availalbleToShip:d.AvailableToShip};_MetricalAbandonCart.dataPoints.record(f)}},h=function(c,e){if(e&&e){console.log("Metrical CartRemoveProduct");c=e.RemovedProductSKU;var f=e.RemovedProductID;e={};var g={id:f,sku:c};d?_MetricalAbandonCart.EventBus.publish(_MetricalAbandonCart.EventBus.constants.topics.ACTION_REMOVE_FROM_CART,{usermeta:e,remove:g}):(_MetricalAbandonCart.cart.remove(f,c),c=_MetricalAbandonCart.cart.usermetaValues(),_MetricalAbandonCart.updateUserMeta(Object.assign({},
e,c)),_MetricalAbandonCart.recordInteraction("Remove From Cart"))}};_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://content"+(_dsgTag.isProduction?"":"-stage")+c,e.Name,function(){if(_MetricalAbandonCart){_MetricalAbandonCart.init({abandoncartid:g,usermeta:{}});var c=d?_MetricalAbandonCart.EventBus:_MetricalOfferFlow.pubsub;_MetricalAbandonCart.observe("postInit",function(){_dsgTag.pageType!==_dsgTag.PageTypes.Cart?e.AddEventHandler("NewPageView",n):e.AddEventHandler("CartDataUpdated",
n);e.AddEventHandler("AddToCart",k);e.AddEventHandler("SKUResolve",q);e.AddEventHandler("CartRemoveProduct",h)});"undefined"!==typeof window.s&&(c.subscribe(d?_MetricalAbandonCart.EventBus.constants.topics.OFFERFLOW_OFFER_PRESENTED:"offer-presented",function(c){console.log("offer-presented published");console.log(c);var d="event"+(190).toString();s.events=s.apl(s.events,d,",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,d,",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);c.offer_presented.id&&
(s.eVar107=c.offer_presented.id,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar107",",",2));s.eVar108=c.offer_flow_guid;s.linkTrackVars=s.apl(s.linkTrackVars,"eVar108",",",2);c.testgroup&&(s.eVar109=c.testgroup,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar109",",",2));s.triggerEvent("MetricalOfferPresented");s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}),c.subscribe(d?_MetricalAbandonCart.EventBus.constants.topics.OFFERFLOW_OFFER_NOT_PRESENTED:"offer-not-presented",function(c){console.log("offer-not-presented published");
console.log(c);var d="event"+(199).toString();s.events=s.apl(s.events,d,",",2);s.linkTrackEvents=s.apl(s.linkTrackEvents,d,",",2);s.linkTrackVars=s.apl(s.linkTrackVars,"events",",",2);c.offer_presented.id&&(s.eVar107=c.offer_presented.id,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar107",",",2));s.eVar108=c.offer_flow_guid;s.linkTrackVars=s.apl(s.linkTrackVars,"eVar108",",",2);c.testgroup&&(s.eVar109=c.testgroup,s.linkTrackVars=s.apl(s.linkTrackVars,"eVar109",",",2));s.triggerEvent("MetricalOfferNotPresented");
s.linkTrackEvents="None";s.linkTrackVars=s.baseLinkTrackVars}))}else _dsgTag.HelperFunctions.DebugLog("Metrical failed to initialize",2)})}});_dsgTag.FunctionRepository.RegisterTag("Monetate",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE"]},{t:"domain",c:"*!=",v:"Protips"},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(e){function g(c,d){if(d&&d.responseTokens)for(c=0;c<d.responseTokens.length;c++)if(_dsgTag.pageType===_dsgTag.PageTypes.Home&&0<=d.responseTokens[c]["activity.name"].toLowerCase().indexOf("mastertm")){var e=d.responseTokens[c]["experience.name"];
e=e.replace(/\d+$/g,"");0==D.length&&(D.push(e),A&&(C.push(["setCustomVariables",[{name:"teammaster",value:D[0]}]]),t(A,C,d)))}}function c(c,d){d.ThresholdValue&&(c=[],c.push(["minofferprice",d.ThresholdValue]),t("product",c,d))}function d(c,d){d.type&&"AthleteID"===d.type&&!z&&(window.monetateQ=window.monetateQ||[],window.monetateQ.push(["setCustomVariables",[{name:"AthleteID",value:d.newID}]]),window.monetateQ.push(["trackData"]))}function f(c,d){if("undefined"!==typeof d.ProductsAddedToCart){c=
"addtocart";var e=[],f=[];if("undefined"!==typeof d.ProductsAddedToCart)for(var g=0;g<d.ProductsAddedToCart.length;g++)e.push({productId:d.ProductsAddedToCart[g].ProductID,quantity:d.ProductsAddedToCart[g].ProductQty,unitPrice:d.ProductsAddedToCart[g].CurrentPricePerUnit,sku:d.ProductsAddedToCart[g].ProductSKU,currency:"USD"}),f=[{productId:d.ProductsAddedToCart[g].ProductID,sku:d.ProductsAddedToCart[g].ProductSKU}],"quickview"==d.ProductsAddedToCart[g].CartAdditionSource.toLowerCase()&&(c="quickview");
t(c,[["addCartRows",e],["setCustomVariables",B],["addProductDetails",f]],d)}}function n(c,d){c=d.sku.id||d.sku.partNumber;var e=[];e.push(["addProductDetails",[{productId:_dsgTag.DataLayer.GetValue("ProductID",d),sku:c}]]);e.push(["setCustomVariables",B]);t("product",e,d)}function k(c,d){c="";var e=[],f={Size:"Size","Shoe Size":"eComShoeSize","Shoe Width":"eComShoeWidth",Inseam:"Inseam",Length:"PantLength"};for(g in d)d[g].ecode?c=d[g].ecode:d[g].name&&d[g].value&&certonaKeyLookup[d[g].name]&&e.push({name:f[d[g].name],
value:data[g].value});var g=[];c&&g.push(["addProductDetails",[{productId:c}]]);e&&g.push(["setCustomVariables",e]);t("oossku",g,d)}function q(c,d){try{if(d=d.data||d,_dsgTag.DataLayer.GetValue("IsQuickView",d)){var e=_dsgTag.DataLayer.GetValue("ProductSKUList",d);sku=e[parseInt(Math.floor(Math.random()*e.length))];t("quickview",[["addProductDetails",[{productId:d.ProductID,sku:sku}]]],d)}}catch(F){}}function h(c,d){if(!d||!d.pageTypeOverride){switch(_dsgTag.pageType){case _dsgTag.PageTypes.Home:A=
"home";break;case _dsgTag.PageTypes.Category:A="category";C.push(["setCustomVariables",[{name:"categoryID",value:_dsgTag.DataLayer.GetValue("CategoryID",d)}]]);C.push(["addCategories",[_dsgTag.DataLayer.GetValue("CategoryID",d),_dsgTag.DataLayer.GetValue("CategoryName",d)]]);break;case _dsgTag.PageTypes.Family:A="plp";C.push(["setCustomVariables",[{name:"categoryID",value:_dsgTag.DataLayer.GetValue("FamilyID",d)}]]);C.push(["addCategories",[_dsgTag.DataLayer.GetValue("FamilyID",d),_dsgTag.DataLayer.GetValue("FamilyName",
d)]]);break;case _dsgTag.PageTypes.Search:var f=_dsgTag.DataLayer.GetValue("InternalSearchResultsCount",d),g=_dsgTag.DataLayer.GetValue("InternalSearchTerm",d);A=parseInt(f)?"search":"nosearch";C.push(["addSearch",{searchTerm:g,searchType:"site"}]);"nosearch"===A&&C.push(["setCustomVariables",[{name:"searchTerm",value:g}]]);break;case _dsgTag.PageTypes.ProductDetails:f="";try{_dsgTag.DataLayer.GetValue("ProductSKU",d)?f=_dsgTag.DataLayer.GetValue("ProductSKU",d):(g=_dsgTag.DataLayer.GetValue("ProductSKUList",
d),f=g[parseInt(Math.floor(Math.random()*g.length))])}catch(J){}A=f?"product":"oosproduct";C.push(["addProductDetails",[{productId:_dsgTag.DataLayer.GetValue("ProductID",d),sku:f}]]);f=function(c){var e=d.ProductDetails[0].ProductDescriptiveAttributes;if(e)for(var f=0;f<e.length;f++){var g=e[f];if("storeId"===c&&"Dick's Sporting Goods Store"===g.name)return g.storeId;if(g.name.toLowerCase()===c.toLowerCase())return g.value}};g=[{ourName:"",monetateName:""},{ourName:"Brand",monetateName:"brand"},{ourName:"Gender by Age",
monetateName:"gender"},{ourName:"Product Type",monetateName:"producttype"},{ourName:"Activity",monetateName:"activity"},{ourName:"PRIMARY_CATEGORY_DSG",monetateName:"categoryidlevel0"},{ourName:"storeId",monetateName:"storeId"}];c=[];for(currentAttribute in g){var h=f(g[currentAttribute].ourName);h&&c.push({name:g[currentAttribute].monetateName,value:h})}B=c;C.push(["setCustomVariables",c]);break;case _dsgTag.PageTypes.Cart:var k=setTimeout(function(){t("emptycart",[],d)},5E3);_dsgTag.EventHandlers.AddEventHandler("CartDataUpdated",
function(c,d){clearInterval(k);A="cart";c=[];var e=[],f=_dsgTag.DataLayer.GetValue("ProductListArray",d);if(f)for(var g=0;g<f.length;g++)c.push({productId:f[g].ProductID,quantity:f[g].ProductQty,unitPrice:f[g].CurrentPricePerUnit,sku:f[g].ProductSKU,currency:"USD"});else A="emptycart";e.push(["addCartRows",c]);t(A,e,d)});break;case _dsgTag.PageTypes.OrderConfirmation:A="purchase";f=_dsgTag.DataLayer.GetValue("OrderID",d);g=[];if(c=_dsgTag.DataLayer.GetValue("ProductListArray",d))for(h=0;h<c.length;h++)g.push({purchaseId:f,
productId:c[h].ProductID,quantity:c[h].ProductQty,unitPrice:(c[h].CurrentPricePerUnit-c[h].DistributedOrderDiscountPerUnit).toFixed(2),sku:c[h].ProductSKU,currency:"USD"});C.push(["addPurchaseRows",g]);_dsgTag.FunctionRepository.Track3rdPartyOrder(f,e.Name);break;case _dsgTag.PageTypes.BlogArticle:A="article";break;case _dsgTag.PageTypes.Static:A="static";break;case _dsgTag.PageTypes.BrandShop:A="brand";g=_dsgTag.DataLayer.GetValue("BrandShopName",d).toLowerCase();h="taylormade-golf-clubs-and-equipment callaway-golf-brand-shop maxfli-elevated-brand-shop easton-ghost-bats titleist-tsr-woods shop-mens-swim shop-the-north-face sports/baseball/baseball-pro-gloves vans howler-brothers hestra-gloves snow-peak-gear zpacks-gear askov-finlayson hyperlite-mountain-gear simms-fishing sorel free-people-clothing altra cannondale shop-all-cannondale-bikes hoka-one-one birkenstock parks-project beyond-yoga".split(" ");
if((c=/\/s\/(.*)$/i.exec(window.location.pathname.toLowerCase())[1])&&-1<h.indexOf(c)){g=_dsgTag.DataLayer.GetValue("BrandShopName",d).toLowerCase();h={"free-people-clothing":"FP Movement by Free People","dsg-brand-clothing-gear":"DSG","taylormade-golf-clubs-and-equipment":"Taylormade","callaway-golf-brand-shop":"Callaway","maxfli-elevated-brand-shop":"Maxfli","easton-ghost-bats":"Easton Sports","titleist-tsr-woods":"Titleist","baseball-pro-gloves":"Pro Series Gloves","perfect-game":"perfectgame",
"shop-solo-stove":"solo"};for(f in h)if(0<=c.toLowerCase().indexOf(f.toLowerCase())){g=h[f];break}g=g||document.querySelector(".cmp-title__text").innerText.toLowerCase()}g&&(C.push(["setCustomVariables",[{name:"brand",value:g}]]),A="brand");break;case _dsgTag.PageTypes.StoreLocatorLocalStore:A="store";C.push(["setCustomVariables",[{name:"storeid",value:_dsgTag.DataLayer.GetValue("StoreLocatorStoreNumber",d)}]]);break;case _dsgTag.PageTypes.GuestOrderTracking:A="ordertracking"}0<D.length&&C.push(["setCustomVariables",
[{name:"teammaster",value:D[0]}]]);A&&t(A,C,d)}}function t(c,d,f){window.monetateQ=window.monetateQ||[];_dsgTag.CustomerIDs.AthleteID&&(window.monetateQ.push(["setCustomVariables",[{name:"AthleteID",value:_dsgTag.CustomerIDs.AthleteID}]]),z=!0);"store"!==c&&window.monetateQ.push(["setCustomVariables",[{name:"storeid",value:_dsgTag.DataLayer.GetValue("SavedStoreNumber",f)}]]);window.monetateQ.push(["setPageType",c]);for(c=0;c<d.length;c++)window.monetateQ.push(d[c]);window.monetateQ.push(["trackData"]);
v||_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://se.monetate.net/js/2/"+u+"/custom.js",e.Name,function(){v=!0})}var u="",v=!1;switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:u="a-728f5db3/p/dickssportinggoods.com";break;case _dsgTag.Websites.GolfGalaxy:u="a-728f5db3/p/golfgalaxy.com";break;case _dsgTag.Websites.GoingGoingGone:u="a-728f5db3/p/goinggoinggone.com";break;case _dsgTag.Websites.PublicLands:u="a-728f5db3/p/publiclands.com"}var B=[],D=[],z=!1,A="",
C=[];u&&(window.monetateT=(new Date).getTime(),e.AddEventHandler("NewPageView",h),e.AddEventHandler("ProductQuickView",q),e.AddEventHandler("SKUResolve",n),e.AddEventHandler("AddToCart",f),e.AddEventHandler("CustomerIDApiUsed",d),e.AddEventHandler("AdobeTargetRequestSucceeded",g),e.AddEventHandler("atcAtrViewSuggestedItems ",c),e.AddEventHandler("AlternativeInStockProduct",k))});_dsgTag.monetateResponseHandlers=[];_dsgTag.monetateData=[];
_dsgTag.FunctionRepository.HandleMonetateResponse=function(e){e.source="Monetate";_dsgTag.monetateData.push(e);for(var g=0;g<_dsgTag.monetateResponseHandlers.length;g++)_dsgTag.monetateResponseHandlers[g](e)};_dsgTag.FunctionRepository.AddMonetateResponseHandler=function(e){_dsgTag.monetateResponseHandlers.push(e);for(var g=0;g<_dsgTag.monetateData.length;g++)e(_dsgTag.monetateData[g])};
if("true"===_dsgTag.HelperFunctions.GetQueryStringValue("monetate")||_dsgTag.currentWebsite===_dsgTag.Websites.GoingGoingGone||_dsgTag.currentWebsite===_dsgTag.Websites.PublicLands||_dsgTag.currentWebsite===_dsgTag.Websites.GolfGalaxy)_dsgTag.FunctionRepository.HandleCertonaResponse=function(){_dsgTag.HelperFunctions.DebugLog("Ignoring Certona response")},_dsgTag.FunctionRepository.AddCertonaResponseHandler=_dsgTag.FunctionRepository.AddMonetateResponseHandler,_dsgTag.monetateResponseHandlers=_dsgTag.certonaResponseHandlers;_dsgTag.FunctionRepository.RegisterTag("MovableInk",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL","GONE"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(e){var g="mi."+_dsgTag.currentWebsite.Domain;if(g){var c=function(c){_dsgTag.DataLayer.PassValuesToFunction(["ProductListArray","OrderID","OrderTotal","OrderTax","OrderShippingRevenue"],function(c,d,e,g,h){for(var f=0;f<c.length;f++){var k=c[f];if("undefined"!==typeof mitr&&
"undefined"!==typeof k&&"undefined"!==typeof k.ProductSKU&&"undefined"!==typeof k.ProductName&&"undefined"!==typeof k.CurrentPricePerUnit&&"undefined"!==typeof k.DistributedOrderDiscountPerUnit&&"undefined"!==typeof k.ProductQty){var n=k.CurrentPricePerUnit,q=k.DistributedOrderDiscountPerUnit;"string"==typeof n&&(n=n.replace(",",""));"string"==typeof q&&(q=q.replace(",",""));pricePerUnit=parseFloat(n-q).toFixed(2);mitr("addProduct",{sku:k.ProductID,name:k.ProductName,price:pricePerUnit,quantity:k.ProductQty,
other:""})}}c=parseFloat(e-g-h).toFixed(2);"undefined"!==typeof mitr&&d&&mitr("send","conversion",{revenue:c,identifier:d})},c)};(function(c,e,g,k,q,h,t){"undefined"===typeof c.MovableInkTrack&&(c.MovableInkTrack=q,h=e.createElement(g),t=e.getElementsByTagName(g)[0],h.type="text/javascript",h.async=!0,h.src="//"+k+"/p/js/1.js",c[q]=c[q]||function(){(c[q].q=c[q].q||[]).push(arguments)},t.parentNode.insertBefore(h,t))})(window,document,"script",g,"mitr");e.AddEventHandler("NewPageView",function(d,e){_dsgTag.pageType===
_dsgTag.PageTypes.OrderConfirmation&&c(e)})}});_dsgTag.FunctionRepository.RegisterTag("NextDoor",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="172d48c1-5bc9-4736-8b6b-59a8b69bef40";break;case _dsgTag.Websites.GolfGalaxy:g="ec76ed3f-2483-4e86-8ce0-79e0a0d60108"}if(g){var c=function(c){_dsgTag.DataLayer.PassValuesToFunction(["OrderID",
"OrderTotal","OrderTax","OrderShippingRevenue","ProductListArray"],function(c,d,g,q,h){var f="0.00";d&&g&&q&&(f=parseFloat(d-g-q).toFixed(2));d=[];if(h)for(q=0;q<h.length;q++)g={},g.id=h[q].ProductSKU,g.quantity=h[q].ProductQty,g.item_price=parseFloat(h[q].CurrentPricePerUnit-h[q].DistributedOrderDiscountPerUnit).toFixed(2),d.push(g);ndp("track","PURCHASE",{},{order_id:c,order_value:f});_dsgTag.FunctionRepository.Track3rdPartyOrder(c,e.Name)},c)};(function(c,e,n){if(!c.ndp){var d=c.ndp=function(){d.handleRequest?
d.handleRequest.apply(d,arguments):d.queue.push(arguments)};d.queue=[];c=e.createElement("script");c.async=!0;c.src=n;e=e.getElementsByTagName("script")[0];e.parentNode.insertBefore(c,e);e=_dsgTag.CustomerIDs.HashedEmail?{user_email_hash:_dsgTag.CustomerIDs.HashedEmail.toLowerCase()}:{};ndp("init",g,e)}})(window,document,"https://ads.nextdoor.com/public/pixel/ndp.js");e.AddEventHandler("NewPageView",function(d,e){ndp("track","PAGE_VIEW");_dsgTag.pageType===_dsgTag.PageTypes.ProductDetails?ndp("track",
"CUSTOM_CONVERSION_1"):_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&c(e)});e.AddEventHandler("AddToCart",function(c,e){e.ProductsAddedToCart&&ndp("track","CUSTOM_CONVERSION_2")})}});_dsgTag.FunctionRepository.RegisterTag("Pinterest",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="2612562523200";break;case _dsgTag.Websites.GolfGalaxy:g="2617409700622"}if(g){!function(c){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};
var d=window.pintrk;d.queue=[];d.version="3.0";d=document.createElement("script");d.async=!0;d.src=c;c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(d,c)}}("https://s.pinimg.com/ct/core.js");pintrk("load",g,{em:_dsgTag.CustomerIDs.HashedEmail});pintrk("page");var c="";e.AddEventHandler("EmailSignup",function(c,e){pintrk("track","signup",{event_id:e.taggingEventID,lead_type:"Email"})});e.AddEventHandler("NewPageView",function(d,e){_dsgTag.DataLayer.PassValuesToFunction(["PageURL"],
function(){switch(_dsgTag.pageType){case _dsgTag.PageTypes.Category:case _dsgTag.PageTypes.Family:var d=1<document.title.split("|").length?document.title.split("|")[0]:document.title;d=d.trim();pintrk("track","viewcategory",{event_id:e.taggingEventID,line_items:[{Product_name:d}]});break;case _dsgTag.PageTypes.Search:_dsgTag.DataLayer.PassValuesToFunction(["InternalSearchTerm"],function(c){pintrk("track","search",{event_id:e.taggingEventID,search_query:c})},e);break;case _dsgTag.PageTypes.ProductDetails:_dsgTag.DataLayer.PassValuesToFunction(["ProductDetails"],
function(d){try{if(0<d.length){c=d[0].ProductBrand;var f=d[0].ProductID;pintrk("track","pagevisit",{event_id:e.taggingEventID,line_items:[{product_id:f,product_brand:c,product_name:f+" - "+d[0].ProductName}]})}}catch(h){}},e);break;case _dsgTag.PageTypes.OrderConfirmation:_dsgTag.DataLayer.PassValuesToFunction("ProductListArray OrderID OrderTotal OrderTax OrderShippingRevenue OrderLevelPromoCodes".split(" "),function(c,d,e,f,g,n){e=parseFloat(parseFloat(e-f-g).toFixed(2));f=0;g=[];for(var h,k=0;k<
c.length;k++)currentProduct=c[k],h={},h.product_id=currentProduct.ProductID,h.product_name=currentProduct.ProductID+" - "+currentProduct.ProductName,h.product_quantity=currentProduct.ProductQty,h.product_brand=currentProduct.ProductBrand,h.product_price=parseFloat(currentProduct.CurrentPricePerUnit-currentProduct.DistributedOrderDiscountPerUnit).toFixed(2),g.push(h);0<n.length&&n[0]&&(f=1);pintrk("track","checkout",{event_id:d,value:e,currency:"USD",order_id:d,promo_code:f,line_items:g})},e)}})});
e.AddEventHandler("AddToCart",function(d,e){if("undefined"!==typeof e.ProductsAddedToCart&&0<e.ProductsAddedToCart.length){d=0;for(var f=[],g,q=0;q<e.ProductsAddedToCart.length;q++)g={},g.product_id=e.ProductsAddedToCart[q].ProductID,c&&(g.product_brand=c),g.product_name=e.ProductsAddedToCart[q].ProductID+" - "+e.ProductsAddedToCart[q].ProductName,g.product_quantity=e.ProductsAddedToCart[q].ProductQty,f.push(g),d=parseFloat(parseFloat(d)+parseFloat(e.ProductsAddedToCart[q].CurrentPricePerUnit)*parseFloat(e.ProductsAddedToCart[q].ProductQty)).toFixed(2);
pintrk("track","addtocart",{event_id:e.taggingEventID,value:parseFloat(d),currency:"USD",line_items:f})}})}});_dsgTag.FunctionRepository.RegisterTag("PromoteIQ",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:"DSG"},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="16"}if(g){var c=function(c){_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://cdn.tagdelivery.com/data/client/standard.js",e.Name,function(){_dsgTag.DataLayer.PassValuesToFunction(["OrderID",
"OrderTotal","OrderTax","OrderShippingRevenue","ProductListArray"],function(c,d,e,q,h){var f="0.00";d&&e&&q&&(f=parseFloat(d-e-q).toFixed(2));d=[];if(h)for(var k,n=0;n<h.length;n++)k={},k.pid=g,k.txnid=c,k.sku=h[n].ProductID,k.customer=_dsgTag.CustomerIDs.AdobeMCVID,k.qty=h[n].ProductQty,k.price=parseFloat(h[n].CurrentPricePerUnit-h[n].DistributedOrderDiscountPerUnit).toFixed(2),k.currency="USD",k.brand=h[n].ProductBrand,d.push(k);h={};h.user=_dsgTag.CustomerIDs.AthleteID;h.pid=g;h.txnid=c;h.customer=
_dsgTag.CustomerIDs.AdobeMCVID;h.revenue=f;h.shipping=q;h.tax=e;h.currency="USD";h.items=d;TagDeliveryData.collect("conversion:summary",h)},c)})};e.AddEventHandler("NewPageView",function(d,e){_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&c(e)});_dsgTag.HelperFunctions.BindDocumentClickEventWithAdditionalSelector("a[href*='tagdelivery.com']",function(){try{s.saveValueForNextPageView("PIQClick","piq")}catch(d){}})}});_dsgTag.FunctionRepository.RegisterTag("QuantumMetric",_dsgTag.InitTimings.Immediate,[{t:"bypass-restricted",v:"true"},{t:"site",c:"=",v:["DSG","GGXY"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(){var e=document.createElement("script");e.type="text/javascript";e.async=1;e.src="https://cdn.quantummetric.com/qscripts/quantum-dickssportinggoods.js";var g=document.getElementsByTagName("script")[0];!window.QuantumMetricAPI&&g.parentNode.insertBefore(e,
g)});_dsgTag.FunctionRepository.RegisterTag("Riskified",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(e){var g=!0;(function(){(function(){var c="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:c="dcsg.com";break;case _dsgTag.Websites.GolfGalaxy:c="ggxy.com"}if(c){var d=("https:"==document.location.protocol?"https://":"http://")+"beacon.riskified.com?shop="+
((_dsgTag.isProduction?"":"np5.")+c)+"&sid="+_dsgTag.CustomerIDs.AdobeMCVID;c=document.createElement("script");c.type="text/javascript";c.async=!0;c.src=d;d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d)}e.AddEventHandler("NewPageView",function(c,d){if(!g)try{RISKX.go(_dsgTag.DataLayer.GetValue("PageURL"),d)}catch(k){}g=!1})})()})()});_dsgTag.FunctionRepository.RegisterTag("Rokt",_dsgTag.InitTimings.WindowComplete,[{t:"site",c:"=",v:["DSG","GGXY"]},{t:"page",c:"=",v:"Order Confirmation"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){function g(c,d){_dsgTag.DataLayer.PassValuesToFunction("HashedEmailAddress OrderID ProductListArray OrderTotal OrderTax OrderShippingRevenue BillingZip OrderPaymentMethods OrderFirstNameBilling OrderLastNameBilling".split(" "),function(c,e,f,g,n,v,B,D,z,A){g=parseFloat(g-
n-v).toFixed(2);n=[];if(f)for(var h=0;h<f.length;h++)v={},v.productName=f[h].ProductName,v.sku=f[h].ProductSKU,v.price=parseFloat(f[h].CurrentPricePerUnit-f[h].DistributedOrderDiscountPerUnit).toFixed(2),v.quantity=f[h].ProductQty,n.push(v);d.selectPlacements({identifier:"OrderConfirmation",attributes:{confirmationref:e,emailsha256:c,amount:g,currency:"USD",country:"US",language:"EN",conversionType:"order",cartItems:n,zipcode:B,paymenttype:D.join(","),firstname:z,lastname:A}})},c)}function c(){_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://apps.rokt.com/wsdk/integrations/launcher.js",
e.Name,function(){window.Rokt&&window.Rokt.createLauncher({accountId:d,sandbox:!_dsgTag.isProduction}).then(function(c){e.AddEventHandler("NewPageView",function(d,e){_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&g(e,c)})})})}var d="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:d="2589334344373137579";break;case _dsgTag.Websites.GolfGalaxy:d="3228332436141392955"}d&&c()});_dsgTag.FunctionRepository.RegisterTag("Snapchat",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL"]},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="26683e68-9921-4109-b8a3-6385a3ccb259";break;case _dsgTag.Websites.GolfGalaxy:g="547907da-9dc9-4f12-a362-f39cd6e944a5";break;case _dsgTag.Websites.PublicLands:g="8086eb0f-4346-4aee-960f-5d28250d48cb"}if(g){(function(c,
e,g){if(!c.snaptr){var d=c.snaptr=function(){d.handleRequest?d.handleRequest.apply(d,arguments):d.queue.push(arguments)};d.queue=[];r=e.createElement("script");r.async=!0;r.src=g;c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(r,c)}})(window,document,"https://sc-static.net/scevent.min.js");_dsgTag.CustomerIDs.HashedEmail?snaptr("init",g,{user_hashed_email:_dsgTag.CustomerIDs.HashedEmail}):snaptr("init",g);var c="";e.AddEventHandler("AddToCart",function(d,e){if("undefined"!=typeof e&&
"undefined"!==typeof e.ProductsAddedToCart){d=[];for(var f=[],g=0;g<e.ProductsAddedToCart.length;g++)d.push(e.ProductsAddedToCart[g].ProductID),f.push(_dsgTag.DataLayer.GetValue("ProductBrand")||c);snaptr("track","ADD_CART",{item_ids:d,brands:f,client_dedup_id:e.taggingEventID})}});e.AddEventHandler("NewPageView",function(d,e){if(_dsgTag.pageType===_dsgTag.PageTypes.ProductDetails||_dsgTag.PageTypes[_dsgTag.DataLayer.GetValue("PageTypeOverride",e)]===_dsgTag.PageTypes.ProductDetails){e=e.data||e;
if(!_dsgTag.DataLayer.GetValue("IsQuickView",e))return;c=_dsgTag.DataLayer.GetValue("ProductBrand",e);snaptr("track","VIEW_CONTENT",{item_ids:[_dsgTag.DataLayer.GetValue("ProductID",e)],brands:[c],client_dedup_id:e.taggingEventID+"vc"})}else if(_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation){d=_dsgTag.DataLayer.GetValue("ProductListArray",e);for(var f=[],g=[],q=[],h=[],t=0;t<d.length;t++)f.push(d[t].ProductID),g.push(d[t].ProductBrand),q.push(parseFloat(d[t].CurrentPricePerUnit-d[t].DistributedOrderDiscountPerUnit).toFixed(2)),
h.push(d[t].ProductQty);snaptr("track","PURCHASE",{currency:"USD",price:q,number_items:h,transaction_id:_dsgTag.DataLayer.GetValue("OrderID",e),item_ids:f,brands:g,client_dedup_id:_dsgTag.DataLayer.GetValue("OrderID",e)})}snaptr("track","PAGE_VIEW",{client_dedup_id:e.taggingEventID})})}});_dsgTag.FunctionRepository.RegisterTag("Stylitics",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL"]},{t:"page",c:"=",v:"Order Confirmation"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="dickssportinggoods";break;case _dsgTag.Websites.GolfGalaxy:g="golfgalaxy";break;case _dsgTag.Websites.PublicLands:g="publiclands"}g&&_dsgTag.HelperFunctions.LoadScriptAsyncAndCallFunction("https://web-assets.stylitics.com/purchase-tracking/latest/purchase_tracking_iife.js",
e.Name,function(){e.AddEventHandler("NewPageView",function(c,d){_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&_dsgTag.DataLayer.PassValuesToFunction(["OrderID","OrderTotal","OrderTax","OrderShippingRevenue","ProductListArray"],function(c,d,e,q,h){var f=0;d&&e&&q&&(f=parseFloat(d-e-q).toFixed(2));d={};_dsgTag.isProduction||(d.environment="staging");d.client=g;d.orderId=c;d.orderTotal=parseFloat(f);d.items=[];if(h)for(f=0;f<h.length;f++)for(c={},c.id=h[f].ProductSKU,c.price=parseFloat((h[f].CurrentPricePerUnit-
h[f].DistributedOrderDiscountPerUnit).toFixed(2)),e=0;e<h[f].ProductQty;e++)d.items.push(c);StyliticsPixel(d)},d)})})});_dsgTag.FunctionRepository.RegisterTag("TikTok",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL"]},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="C8JLLECO0T91FSTH1G5G";break;case _dsgTag.Websites.GolfGalaxy:g="CHHSDN3C77UCQ06LT9C0";break;case _dsgTag.Websites.PublicLands:g="CH95GNJC77UEQOU9ECO0"}if(g){!function(c,d,e){c.TiktokAnalyticsObject=
e;var f=c[e]=c[e]||[];f.methods="page track identify instances debug on off once ready alias group enableCookie disableCookie".split(" ");f.setAndDefer=function(c,d){c[d]=function(){c.push([d].concat(Array.prototype.slice.call(arguments,0)))}};for(c=0;c<f.methods.length;c++)f.setAndDefer(f,f.methods[c]);f.instance=function(c){c=f._i[c]||[];for(var d=0;d<f.methods.length;d++)f.setAndDefer(c,f.methods[d]);return c};f.load=function(c,d){f._i=f._i||{};f._i[c]=[];f._i[c]._u="https://analytics.tiktok.com/i18n/pixel/events.js";
f._t=f._t||{};f._t[c]=+new Date;f._o=f._o||{};f._o[c]=d||{};d=document.createElement("script");d.type="text/javascript";d.async=!0;d.src="https://analytics.tiktok.com/i18n/pixel/events.js?sdkid="+c+"&lib="+e;c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(d,c)};f.load(g)}(window,document,"ttq");var c="",d=!1,f=function(){_dsgTag.CustomerIDs.HashedEmail&&!d&&(ttq.identify({sha256_email:_dsgTag.CustomerIDs.HashedEmail}),d=!0)},n=function(){_dsgTag.DataLayer.PassValuesToFunction(["OrderID",
"OrderTotal","OrderTax","OrderShippingRevenue","ProductListArray"],function(c,d,e,g,n){var h="0.00",k=[];d&&e&&g&&(h=parseFloat(d-e-g).toFixed(2));if(n)for(d=0;d<n.length;d++)e=n[d],k.push({content_id:e.ProductID,content_type:"product",content_name:e.ProductName,quantity:e.ProductQty,price:parseFloat(e.CurrentPricePerUnit-e.DistributedOrderDiscountPerUnit).toFixed(2),brand:e.ProductBrand});n={};n.contents=k;n.value=h;n.currency="USD";c={event_id:c};f();ttq.track("CompletePayment",n,c)})};e.AddEventHandler("NewPageView",
function(d,e){f();ttq.page({event_id:e.taggingEventID});if(_dsgTag.pageType===_dsgTag.PageTypes.ProductDetails||_dsgTag.DataLayer.GetValue("IsQuickView",e)){if(d=e,d=d.data||d,!d.pageTypeOverride||_dsgTag.DataLayer.GetValue("IsQuickView",d)){e={content_id:_dsgTag.DataLayer.GetValue("ProductID",d),content_type:"product",content_name:_dsgTag.DataLayer.GetValue("ProductName",d),brand:_dsgTag.DataLayer.GetValue("ProductBrand",d)};var g={event_id:d.taggingEventID};f();ttq.track("ViewContent",e,g);c=_dsgTag.DataLayer.GetValue("ProductBrand",
d)}}else _dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&n(d,e)});e.AddEventHandler("AddToCart",function(d,e){if(e&&e.ProductsAddedToCart&&0<e.ProductsAddedToCart.length){d=[];var g=0;try{if(e&&e.ProductsAddedToCart&&"object"===typeof e.ProductsAddedToCart&&0<e.ProductsAddedToCart.length)for(var k=0;k<e.ProductsAddedToCart.length;k++)if(e.ProductsAddedToCart[k]&&e.ProductsAddedToCart[k].ProductSKU){var n=e.ProductsAddedToCart[k],q=n.CurrentPricePerUnit*n.ProductQty;g+=q;d.push({content_id:n.ProductID,
content_type:"product",content_name:n.ProductName,quantity:n.ProductQty,price:q,brand:_dsgTag.DataLayer.GetValue("ProductBrand")||c})}}catch(B){_dsgTag.HelperFunctions.DebugLog("TikTok AddToCart Pixel - Error while parsing product info",!0)}0<d.length&&(n={},n.contents=d,n.value=g,n.currency="USD",e={event_id:e.taggingEventID},f(),ttq.track("AddToCart",n,e))}})}});_dsgTag.FunctionRepository.RegisterTag("TrueFit",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY","PBL"]},{t:"page",c:"=",v:"Order Confirmation"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"}],function(e){var g="";switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g="dsg";break;case _dsgTag.Websites.GolfGalaxy:g="ggx";break;case _dsgTag.Websites.PublicLands:g="pbl"}if(g){var c=function(c){_dsgTag.DataLayer.PassValuesToFunction(["OrderID","ProductListArray"],
function(c,d){var e=[];if(d)for(var f,g=0;g<d.length;g++)f={},f.productId=d[g].ProductID,f.sku=d[g].ProductSKU,f.quantity=parseInt(d[g].ProductQty),f.price=parseFloat((d[g].CurrentPricePerUnit-d[g].DistributedOrderDiscountPerUnit).toFixed(2)),f.currency="USD",e.push(f);d={};d.userId=_dsgTag.CustomerIDs.AthleteID;d.orderId=c;d.locale="en_US";d.products=e;tfcapi("track","checkout",d)},c)};(function(){(function(){function c(c){e[c]=function(d,e,f){var g=window,h=document,k=[],n;g.tfcapi=n=g.tfcapi||
function(){n.q=n.q||[];n.q.push(arguments)};f&&!0===f.forceMobile&&k.push("deviceType=mobile");f&&!1===f.autoCalculate&&k.push("autoCalculate=false");f=h.getElementsByTagName("script")[0];h=h.createElement("script");h.type="text/javascript";h.async=!0;h.src="https://"+d+"-cdn"+("dev"===e||"staging"===e?"."+e:"")+".truefitcorp.com/fitrec/"+d+"/js/"+c+".js?"+k.join("&");f.parentNode.insertBefore(h,f)}}var e={};c("fitrec");c("tracker");return e})().tracker(g,_dsgTag.isProduction?"prod":"staging")})();
e.AddEventHandler("NewPageView",function(d,e){_dsgTag.pageType===_dsgTag.PageTypes.OrderConfirmation&&c(e)})}});_dsgTag.FunctionRepository.RegisterTag("Twitter",_dsgTag.InitTimings.Page3rdPartySignal,[{t:"site",c:"=",v:["DSG","GGXY"]},{t:"page",c:"*!=",v:"Protips"},{t:"page",c:"^!=",v:"Chat"},{t:"aos",c:"=",v:"false"},{t:"iframe",c:"=",v:"false"},{t:"dns"}],function(e){var g=[];switch(_dsgTag.currentWebsite){case _dsgTag.Websites.DicksSportingGoods:g.push({account:"nv4gu",pageView:"oc7co",pdp:"oc7cp",atc:"oc7cr",order:"nv4gw"});break;case _dsgTag.Websites.GolfGalaxy:g.push({account:"o5rhl",pageView:"oc7cx",
pdp:"oc7cy",atc:"oc7cz",order:"oeykv"})}if(0<g.length){!function(c,d,e,g,h,t){c.twq||(g=c.twq=function(){g.exe?g.exe.apply(g,arguments):g.queue.push(arguments)},g.version="1.1",g.queue=[],h=d.createElement(e),h.async=!0,h.src="https://static.ads-twitter.com/uwt.js",t=d.getElementsByTagName(e)[0],t.parentNode.insertBefore(h,t))}(window,document,"script");var c=function(c,d){var e="init"==c;d=d||{};for(var f=0;f<g.length;f++)twq(e?"config":"event",e?g[f].account:"tw-"+g[f].account+"-"+g[f][c],d)};c("init");
var d=function(d,e){_dsgTag.DataLayer.PassValuesToFunction(["OrderID","ProductListArray","OrderTotal","OrderTax","OrderShippingRevenue"],function(d,e,f,g,n){f&&g&&n&&(revenue=parseFloat(f-g-n).toFixed(2));f=[];if(e)for(g=0;g<e.length;g++)f.push({content_name:e[g].ProductName,content_id:e[g].ProductSKU,num_items:parseInt(e[g].ProductQty),content_price:parseFloat((e[g].CurrentPricePerUnit-e[g].DistributedOrderDiscountPerUnit).toFixed(2)),content_group_id:e[g].ProductID});e={currency:"USD"};revenue&&
(e.value=revenue);d&&(e.conversion_id=d);0<f.length&&(e.contents=f);c("order",e)},e)};e.AddEventHandler("NewPageView",function(e,g){c("pageView");switch(_dsgTag.pageType){case _dsgTag.PageTypes.ProductDetails:e={};g=_dsgTag.DataLayer.GetValue("ProductDetails");0<g[0].ProductSKUDetails.length&&(e.contents=[{content_name:_dsgTag.DataLayer.GetValue("ProductName",void 0),content_group_id:_dsgTag.DataLayer.GetValue("ProductID",void 0),content_id:g[0].ProductSKUDetails[0].ProductSKU,content_price:parseFloat(g[0].ProductSKUDetails[0].SKUCurrentPrice),
num_items:1}],c("pdp",e));break;case _dsgTag.PageTypes.OrderConfirmation:d(g)}});e.AddEventHandler("AddToCart",function(d,e){e&&e.ProductsAddedToCart&&(d={},e=e.ProductsAddedToCart[0],d.contents=[{content_name:e.ProductName,content_id:e.ProductSKU,num_items:parseInt(e.ProductQty),content_price:parseFloat(e.CurrentPricePerUnit),content_group_id:e.ProductID}],c("atc",d))})}});
        
        _dsgTag.HelperFunctions.DebugTimer("Bottom of utag");
    } catch (ex) {
        console.error("Error initializing tagging: " + ex.message);
    }
};

(function(){
    if (!window) {
        console.log("Not initializing tagging; window does not exist");
        return;
    }

    var taggingConfig = {"wasPrerendered": false};
    taggingConfig.eventNames = ["DocumentReady", "WindowLoaded", "Load3rdPartyTags", "FirstInteractionOccurred", "NewPageView", "AddOnsShown", "AddToCart", "AddToFavorites", "AdobeTargetRequestSucceeded", "AdSpotsReady", "AJAXStoreSearch", "AthleteConnectionType", "AttributeSelected", "CancelRequestSubmit", "CartAction", "CartAddToSaveForLater", "CartDataUpdated", "CartEditProduct", "CartFulfillmentChanged", "CartQuantityChanged", "CartRemoveProduct", "CartSanitizationAction", "ChangeMyStoreEvent", "ChangePreferredStore", "Chat", "ChatClicked", "CheckoutAction", "CheckoutStockReady", "CheckStoreAvailabilitySearch", "ContentTabView", "CopyCode", "CreateAccountClick", "CreatePasswordClick", "CreatePasswordSuccess", "CuralateInitialized", "CurbsideCheckIn", "CustomerInfoReady", "EmailResetLinkClick", "EmailSignup", "ExternalCheckout", "FBTShown", "FilterClicked", "FinderResults", "FreeShipThreshold", "GetNextPointsHistoryPage", "HasCombinedAccounts", "ImageViewer", "LearnMoreClick", "low_stock_event", "ManageAccountClick", "ManageLoginEmailSave", "CustomerIDApiUsed", "ModalOpen", "NikeConnectComplete", "NoAddOnsShown", "NotifyMeStock", "OrderCancel", "PDPPayPalClicked", "PDPPeopleView", "PDPSignInRequest", "PostReview", "PromotionEntered", "PromotionRemoved", "readyToParty", "RegistrationOccured", "RemoveFromCart", "RemoveFromFavorites", "ResetPasswordSuccess", "ResultsViewUpdate", "ReturnItemSelected", "RewardDeliverySave", "SaveForLaterAddToCart", "SaveForLaterRemoveProduct", "Scene7Event", "ScoreCardApply", "ScoreCardEntered", "ScoreCardGoldLearnMoreExpand", "SearchEventAnalytics", "ShareProduct", "ShippingMethodUpdated", "ShowMoreColors", "ShowProductOptions", "SignInClick", "SignInCreateAccountClick", "SiteError", "SKUResolve", "StartSearch", "StickyATCImpression", "SubscriptionsSave", "SuccessfulSignIn", "tabbedComponentClicked", "TapAheadClick", "TimeSinceInit", "TopNavView", "TrackOrder", "UpdatePasswordClick", "UserAuthenticated", "ViewMore", "ViewReward", "WeeklyAdEvent", "WindowFlagsEvent", "reporting:update", "reporting:PagePostRender"];

    if (document.prerendering) {
        var GenerateRandomString = function(length) {
            var result = "";
            var characters = "0123456789";
            var charactersLength = characters.length;
            for (var i$25 = 0; i$25 < length; i$25++)
                result += characters.charAt(Math.floor(Math.random() * charactersLength));
            return result
        }
        
        taggingConfig.wasPrerendered = true;
        var renderComplete = false;

        _dsgTag.prerenderingEvents = {};
        for (var i = 0; i < taggingConfig.eventNames.length; i++) {
            document.addEventListener(taggingConfig.eventNames[i], function(eventObject, eventData) {
                try {
                    if (!renderComplete) {
                        var data = eventData || (typeof eventObject !== "undefined" ? (typeof eventObject.detail !== "undefined" ? eventObject.detail : (typeof eventObject.originalEvent !== "undefined" ? eventObject.originalEvent.detail : null)) : null);
                        data = data || {};
                        var type = eventObject.type == "reporting:update" ? data.EventType : (eventObject.type == "reporting:PagePostRender" ? "NewPageView" : eventObject.type);

                        if (type) {
                            data.taggingEventID = GenerateRandomString(20);
                            _dsgTag.prerenderingEvents[type] = _dsgTag.prerenderingEvents[type] || [];
                            _dsgTag.prerenderingEvents[type].push({"object": eventObject, "data": data});
                        }
                    }
                } catch (ex) {
                    console.error("Error occurred in PreRender Event Listener for " + eventObject.type + ": " + ex.message);
                }
            });
        }       

        document.addEventListener("prerenderingchange", function() {renderComplete = true; taggingConfig.prerenderingEvents = _dsgTag.prerenderingEvents; _dsgTag(taggingConfig)}, {once: true});
    } else {
        _dsgTag(taggingConfig);
    }
})();
