"function"!=typeof DIL&&(DIL=function(n,t){var c=[],e,h,o,f,l,b,tt,p,a,g,k,it,rt;if(n!==Object(n)&&(n={}),o=n.partner,f=n.containerNSID,l=n.iframeAttachmentDelay,b=!!n.disableDestinationPublishingIframe,tt=n.iframeAkamaiHTTPS,p=n.mappings,a=n.uuidCookie,g=!0===n.enableErrorReporting,k=n.visitorService,it=!0===n.disableScriptAttachment,rt=!0===n.removeFinishedScriptsAndCallbacks,g&&DIL.errorModule.activate(),(e=t)&&c.push(e+""),!o||"string"!=typeof o)return e="DIL partner is invalid or not specified in initConfig",DIL.errorModule.handleError({name:"error",message:e,filename:"dil.js"}),Error(e);if(e="DIL containerNSID is invalid or not specified in initConfig, setting to default of 0",(f||"number"==typeof f)&&(f=parseInt(f,10),!isNaN(f)&&0<=f&&(e="")),e&&(f=0,c.push(e),e=""),h=DIL.getDil(o,f),h instanceof DIL&&h.api.getPartner()==o&&h.api.getContainerNSID()==f)return h;if(this instanceof DIL)DIL.registerDil(this,o,f);else return new DIL(n,"DIL was not instantiated with the 'new' operator, returning a valid instance with partner = "+o+" and containerNSID = "+f);var v={IS_HTTPS:"https:"==document.location.protocol,POST_MESSAGE_ENABLED:!!window.postMessage,COOKIE_MAX_EXPIRATION_DATE:"Tue, 19 Jan 2038 03:14:07 UTC"},nt={stuffed:{}},r={},u={firingQueue:[],fired:[],firing:!1,sent:[],errored:[],reservedKeys:{sids:!0,pdata:!0,logdata:!0,callback:!0,postCallbackFn:!0,useImageRequest:!0},callbackPrefix:"demdexRequestCallback",firstRequestHasFired:!1,useJSONP:!0,abortRequests:!1,num_of_jsonp_responses:0,num_of_jsonp_errors:0,num_of_img_responses:0,num_of_img_errors:0,toRemove:[],removed:[],readyToRemove:!1,adms:{TIME_TO_CATCH_ALL_REQUESTS_RELEASE:2e3,calledBack:!1,uuid:null,noADMS:!1,instanceType:null,releaseType:"no ADMS",admsProcessingStarted:!1,process:function(n){try{if(!this.admsProcessingStarted){var t=this,u,i,f,r;if("function"==typeof n&&"function"==typeof n.getDefault&&"function"==typeof n.getInstance&&(k===Object(k)&&(u=k.namespace)&&"string"==typeof u?(this.instanceType="namespace: "+u,i=n.getInstance(u)):(this.instanceType="default",i=n.getDefault()),i===Object(i)&&"function"==typeof i.getVisitorID)){if(this.admsProcessingStarted=!0,f=function(n){"ADMS"!=t.releaseType&&(t.uuid=n,t.releaseType="ADMS",t.releaseRequests())},r=i.getVisitorID(f),-1==r){this.releaseType="failed ADMS";this.releaseRequests();return}if("string"==typeof r&&r.length){f(r);return}setTimeout(function(){"ADMS"!=t.releaseType&&(t.releaseType="timeout",t.releaseRequests())},this.TIME_TO_CATCH_ALL_REQUESTS_RELEASE);return}this.noADMS=!0;this.releaseRequests()}}catch(e){this.releaseRequests()}},releaseRequests:function(){this.calledBack=!0;u.registerRequest()}},registerRequest:function(n){var t=this.firingQueue;n===Object(n)&&t.push(n);!this.firing&&t.length&&(this.adms.calledBack?(n=t.shift(),w.fireRequest(n),this.firstRequestHasFired||"script"!=n.tag)||(this.firstRequestHasFired=!0):this.processADMS())},processADMS:function(){this.adms.process(window.ADMS)},requestRemoval:function(n){if(!rt)return"removeFinishedScriptsAndCallbacks is not boolean true";var r=this.toRemove,t,i;if(n===Object(n)&&(t=n.script,i=n.callbackName,(t===Object(t)&&"SCRIPT"==t.nodeName||"no script created"==t)&&"string"==typeof i&&i.length&&r.push(n)),this.readyToRemove&&r.length){i=r.shift();t=i.script;i=i.callbackName;"no script created"!=t?(n=t.src,t.parentNode.removeChild(t)):n=t;window[i]=null;try{delete window[i]}catch(u){}return this.removed.push({scriptSrc:n,callbackName:i}),DIL.variables.scriptsRemoved.push(n),DIL.variables.callbacksRemoved.push(i),this.requestRemoval()}return"requestRemoval() processed"}};h=function(){var n="http://fast.";return v.IS_HTTPS&&(n=!0===tt?"https://fast.":"https://"),n+o+".demdex.net/dest4.html?d_nsid="+f+"#"+encodeURIComponent(document.location.href)};var y={THROTTLE_START:3e4,throttleTimerSet:!1,id:"destination_publishing_iframe_"+o+"_"+f,url:h(),iframe:null,iframeHasLoaded:!1,sendingMessages:!1,messages:[],messagesPosted:[],messageSendingInterval:v.POST_MESSAGE_ENABLED?15:100,jsonProcessed:[],attachIframe:function(){var t=this,n=document.createElement("iframe");n.id=this.id;n.style.cssText="display: none; width: 0; height: 0;";n.src=this.url;i.addListener(n,"load",function(){t.iframeHasLoaded=!0;t.requestToProcess()});document.body.appendChild(n);this.iframe=n},requestToProcess:function(n){var t=this;n&&!s.isEmptyObject(n)&&this.process(n);this.iframeHasLoaded&&this.messages.length&&!this.sendingMessages&&(this.throttleTimerSet||(this.throttleTimerSet=!0,setTimeout(function(){t.messageSendingInterval=v.POST_MESSAGE_ENABLED?15:150},this.THROTTLE_START)),this.sendingMessages=!0,this.sendMessages())},process:function(n){var r=encodeURIComponent,u,o,f,t,e;if((u=n.dests)&&u instanceof Array&&(o=u.length))for(f=0;f<o;f++)t=u[f],t=[r("dests"),r(t.id||""),r(t.y||""),r(t.c||"")],this.addMessage(t.join("|"));if((u=n.ibs)&&u instanceof Array&&(o=u.length))for(f=0;f<o;f++)t=u[f],t=[r("ibs"),r(t.id||""),r(t.tag||""),i.encodeAndBuildRequest(t.url||[],","),r(t.ttl||"")],this.addMessage(t.join("|"));if((u=n.dpcalls)&&u instanceof Array&&(o=u.length))for(f=0;f<o;f++)t=u[f],e=t.callback||{},e=[e.obj||"",e.fn||"",e.key||"",e.tag||"",e.url||""],t=[r("dpm"),r(t.id||""),r(t.tag||""),i.encodeAndBuildRequest(t.url||[],","),r(t.ttl||""),i.encodeAndBuildRequest(e,",")],this.addMessage(t.join("|"));this.jsonProcessed.push(n)},addMessage:function(n){var t=encodeURIComponent;this.messages.push((g?t("---destpub-debug---"):t("---destpub---"))+n)},sendMessages:function(){var t=this,n;this.messages.length?(n=this.messages.shift(),DIL.xd.postMessage(n,this.url,this.iframe.contentWindow),this.messagesPosted.push(n),setTimeout(function(){t.sendMessages()},this.messageSendingInterval)):this.sendingMessages=!1}},ut={traits:function(n){return s.isValidPdata(n)&&(r.sids instanceof Array||(r.sids=[]),i.extendArray(r.sids,n)),this},pixels:function(n){return s.isValidPdata(n)&&(r.pdata instanceof Array||(r.pdata=[]),i.extendArray(r.pdata,n)),this},logs:function(n){return s.isValidLogdata(n)&&(r.logdata!==Object(r.logdata)&&(r.logdata={}),i.extendObject(r.logdata,n)),this},customQueryParams:function(n){return s.isEmptyObject(n)||i.extendObject(r,n,u.reservedKeys),this},signals:function(n,t){var f,e=n;if(!s.isEmptyObject(e)){if(t&&"string"==typeof t)for(f in e={},n)n.hasOwnProperty(f)&&(e[t+f]=n[f]);i.extendObject(r,e,u.reservedKeys)}return this},result:function(n){return"function"==typeof n&&(r.callback=n),this},afterResult:function(n){return"function"==typeof n&&(r.postCallbackFn=n),this},useImageRequest:function(){return r.useImageRequest=!0,this},clearData:function(){return r={},this},submit:function(){return w.submitRequest(r),r={},this},getPartner:function(){return o},getContainerNSID:function(){return f},getEventLog:function(){return c},getState:function(){var n={},t={};return i.extendObject(n,u,{callbackPrefix:!0,useJSONP:!0,registerRequest:!0}),i.extendObject(t,y,{attachIframe:!0,requestToProcess:!0,process:!0,sendMessages:!0}),{pendingRequest:r,otherRequestInfo:n,destinationPublishingInfo:t}},idSync:function(n){if(n!==Object(n)||"string"!=typeof n.dpid||!n.dpid.length)return"Error: config or config.dpid is empty";if("string"!=typeof n.url||!n.url.length)return"Error: config.url is empty";var i=n.url,t=n.minutesToLive,r=encodeURIComponent,i=i.replace(/^https:/,"").replace(/^http:/,"");if("undefined"==typeof t)t=20160;else if(t=parseInt(t,10),isNaN(t)||0>=t)return"Error: config.minutesToLive needs to be a positive number";return n=["ibs",r(n.dpid),"img",r(i),t],y.addMessage(n.join("|")),u.firstRequestHasFired&&y.requestToProcess(),"Successfully queued"},aamIdSync:function(n){return n!==Object(n)||"string"!=typeof n.dpuuid||!n.dpuuid.length?"Error: config or config.dpuuid is empty":(n.url="//dpm.demdex.net/ibs:dpid="+n.dpid+"&dpuuid="+n.dpuuid,this.idSync(n))}},w={submitRequest:function(n){return u.registerRequest(w.createQueuedRequest(n)),!0},createQueuedRequest:function(n){var l=u,h,c=n.callback,a="img",r,t,e;if(!s.isEmptyObject(p))for(r in p)!p.hasOwnProperty(r)||(t=p[r],null==t||""===t||!(r in n)||t in n||t in u.reservedKeys)||(e=n[r],null==e||""===e||(n[t]=e));return s.isValidPdata(n.sids)||(n.sids=[]),s.isValidPdata(n.pdata)||(n.pdata=[]),s.isValidLogdata(n.logdata)||(n.logdata={}),n.logdataArray=i.convertObjectToKeyValuePairs(n.logdata,"=",!0),n.logdataArray.push("_ts="+(new Date).getTime()),"function"!=typeof c&&(c=this.defaultCallback),(l.useJSONP=!n.useImageRequest||"boolean"!=typeof n.useImageRequest)&&(a="script",h=l.callbackPrefix+"_"+o+"_"+f+"_"+(new Date).getTime()),{tag:a,src:w.makeRequestSrc(n,h),internalCallbackName:h,callbackFn:c,postCallbackFn:n.postCallbackFn,useImageRequest:n.useImageRequest,requestData:n}},defaultCallback:function(n){var t,o,r,f,c,h,e,l,v;if((t=n.stuff)&&t instanceof Array&&(o=t.length))for(r=0;r<o;r++)(f=t[r])&&f===Object(f)&&(c=f.cn,h=f.cv,e=f.ttl,("undefined"==typeof e||""===e)&&(e=Math.floor(i.getMaxCookieExpiresInMinutes()/1440)),l=f.dmn||"."+document.domain,v=f.type,c&&(h||"number"==typeof h)&&("var"!=v&&(e=parseInt(e,10))&&!isNaN(e)&&i.setCookie(c,h,1440*e,"/",l,!1),nt.stuffed[c]=h));t=n.uuid;"string"==typeof t&&t.length&&!s.isEmptyObject(a)&&(o=a.path,"string"==typeof o&&o.length||(o="/"),r=parseInt(a.days,10),isNaN(r)&&(r=100),i.setCookie(a.name||"aam_did",t,1440*r,o,a.domain||"."+document.domain,!0===a.secure));b||u.abortRequests||y.requestToProcess(n)},makeRequestSrc:function(n,t){var w,e,r,h,c,b;n.sids=s.removeEmptyArrayValues(n.sids||[]);n.pdata=s.removeEmptyArrayValues(n.pdata||[]);var l=u,a=i.encodeAndBuildRequest(n.sids,","),y=i.encodeAndBuildRequest(n.pdata,","),p=(n.logdataArray||[]).join("&");delete n.logdataArray;w=v.IS_HTTPS?"https://":"http://";e=[];for(r in n)if(!(r in l.reservedKeys)&&n.hasOwnProperty(r))if(h=n[r],r=encodeURIComponent(r),h instanceof Array)for(c=0,b=h.length;c<b;c++)e.push(r+"="+encodeURIComponent(h[c]));else e.push(r+"="+encodeURIComponent(h));return e=e.length?"&"+e.join("&"):"",w+o+".demdex.net/event?d_nsid="+f+(a.length?"&d_sid="+a:"")+(y.length?"&d_px="+y:"")+(p.length?"&d_ld="+encodeURIComponent(p):"")+e+(l.useJSONP?"&d_rtbd=json&d_jsonv="+DIL.jsonVersion+"&d_dst=1&d_cts=1&d_cb="+(t||""):"")},fireRequest:function(n){"img"==n.tag?this.fireImage(n):"script"==n.tag&&this.fireScript(n)},fireImage:function(n){var t=u,i,r;t.abortRequests||(t.firing=!0,i=new Image(0,0),t.sent.push(n),i.onload=function(){t.firing=!1;t.fired.push(n);t.num_of_img_responses++;t.registerRequest()},r=function(i){e="imgAbortOrErrorHandler received the event of type "+i.type;c.push(e);t.abortRequests=!0;t.firing=!1;t.errored.push(n);t.num_of_img_errors++;t.registerRequest()},i.addEventListener?(i.addEventListener("error",r,!1),i.addEventListener("abort",r,!1)):i.attachEvent&&(i.attachEvent("onerror",r),i.attachEvent("onabort",r)),i.src=n.src)},fireScript:function(n){var a=this,t=u,f,i,h=n.src,s=n.postCallbackFn,l="function"==typeof s,r=n.internalCallbackName;t.abortRequests||(t.firing=!0,window[r]=function(u){try{u||(u={});var h=n.callbackFn;t.firing=!1;t.fired.push(n);t.num_of_jsonp_responses++;h(u);l&&s(u)}catch(f){f.message="DIL jsonp callback caught error with message "+f.message;e=f.message;c.push(e);f.filename=f.filename||"dil.js";f.partner=o;DIL.errorModule.handleError(f);try{h({error:f.name+"|"+f.message});l&&s({error:f.name+"|"+f.message})}catch(a){}}finally{t.requestRemoval({script:i,callbackName:r});t.registerRequest()}},it?(t.firing=!1,t.requestRemoval({script:"no script created",callbackName:r})):(i=document.createElement("script"),i.addEventListener&&i.addEventListener("error",function(u){t.requestRemoval({script:i,callbackName:r});e="jsonp script tag error listener received the event of type "+u.type+" with src "+h;a.handleScriptError(e,n)},!1),i.type="text/javascript",i.src=h,f=DIL.variables.scriptNodeList[0],f.parentNode.insertBefore(i,f)),t.sent.push(n))},handleScriptError:function(n,t){var i=u;c.push(n);i.abortRequests=!0;i.firing=!1;i.errored.push(t);i.num_of_jsonp_errors++;i.registerRequest()}},s={isValidPdata:function(n){return n instanceof Array&&this.removeEmptyArrayValues(n).length?!0:!1},isValidLogdata:function(n){return!this.isEmptyObject(n)},isEmptyObject:function(n){if(n!==Object(n))return!0;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},removeEmptyArrayValues:function(n){for(var t=0,u=n.length,i,r=[],t=0;t<u;t++)i=n[t],"undefined"!=typeof i&&null!=i&&r.push(i);return r},isPopulatedString:function(n){return"string"==typeof n&&n.length}},i={addListener:function(){return document.addEventListener?function(n,t,i){n.addEventListener(t,function(n){"function"==typeof i&&i(n)},!1)}:document.attachEvent?function(n,t,i){n.attachEvent("on"+t,function(n){"function"==typeof i&&i(n)})}:void 0}(),convertObjectToKeyValuePairs:function(n,t,i){var f=[],t=t||"=",u,r;for(u in n)r=n[u],"undefined"!=typeof r&&null!=r&&f.push(u+t+(i?encodeURIComponent(r):r));return f},encodeAndBuildRequest:function(n,t){return this.map(n,function(n){return encodeURIComponent(n)}).join(t)},map:function(n,t){var r,u,f,i;if(Array.prototype.map)return n.map(t);if(void 0===n||null===n)throw new TypeError;if(r=Object(n),u=r.length>>>0,"function"!=typeof t)throw new TypeError;for(f=Array(u),i=0;i<u;i++)i in r&&(f[i]=t.call(t,r[i],i,r));return f},filter:function(n,t){var r,e,u,i,f;if(!Array.prototype.filter){if(void 0===n||null===n)throw new TypeError;if(r=Object(n),e=r.length>>>0,"function"!=typeof t)throw new TypeError;for(u=[],i=0;i<e;i++)i in r&&(f=r[i],t.call(t,f,i,r)&&u.push(f));return u}return n.filter(t)},getCookie:function(n){for(var n=n+"=",r=document.cookie.split(";"),t,i=0,u=r.length;i<u;i++){for(t=r[i];" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(n))return decodeURIComponent(t.substring(n.length,t.length))}return null},setCookie:function(n,t,i,r,u,f){var e=new Date;i&&(i*=6e4);document.cookie=n+"="+encodeURIComponent(t)+(i?";expires="+new Date(e.getTime()+i).toUTCString():"")+(r?";path="+r:"")+(u?";domain="+u:"")+(f?";secure":"")},extendArray:function(n,t){return n instanceof Array&&t instanceof Array?(Array.prototype.push.apply(n,t),!0):!1},extendObject:function(n,t,i){var r;if(n===Object(n)&&t===Object(t)){for(r in t)!t.hasOwnProperty(r)||!s.isEmptyObject(i)&&r in i||(n[r]=t[r]);return!0}return!1},getMaxCookieExpiresInMinutes:function(){return(new Date(v.COOKIE_MAX_EXPIRATION_DATE).getTime()-(new Date).getTime())/6e4}};"error"==o&&0==f&&i.addListener(window,"load",function(){DIL.windowLoaded=!0});var d=function(){et();b||u.abortRequests||y.attachIframe();u.readyToRemove=!0;u.requestRemoval()},et=function(){b||setTimeout(function(){u.firstRequestHasFired||u.adms.admsProcessingStarted||u.adms.calledBack||ut.submit()},DIL.constants.TIME_TO_DEFAULT_REQUEST)},ft=document;"error"!=o&&(DIL.windowLoaded?d():"complete"!=ft.readyState&&"loaded"!=ft.readyState?i.addListener(window,"load",d):DIL.isAddedPostWindowLoadWasCalled?i.addListener(window,"load",d):(l="number"==typeof l?parseInt(l,10):0,0>l&&(l=0),setTimeout(d,l||DIL.constants.TIME_TO_CATCH_ALL_DP_IFRAME_ATTACHMENT)));this.api=ut;this.getStuffedVariable=function(n){var t=nt.stuffed[n];return t||"number"==typeof t||(t=i.getCookie(n),!t&&"number"!=typeof t&&(t="")),t};this.validators=s;this.helpers=i;this.constants=v;this.log=c;window._dil_unit_tests&&(this.pendingRequest=r,this.requestController=u,this.setDestinationPublishingUrl=h,this.destinationPublishing=y,this.requestProcs=w,this.variables=nt)},function(){var n=document,t;null==n.readyState&&n.addEventListener&&(n.readyState="loading",n.addEventListener("DOMContentLoaded",t=function(){n.removeEventListener("DOMContentLoaded",t,!1);n.readyState="complete"},!1))}(),DIL.extendStaticPropertiesAndMethods=function(n){var t;if(n===Object(n))for(t in n)n.hasOwnProperty(t)&&(this[t]=n[t])},DIL.extendStaticPropertiesAndMethods({version:"3.4",jsonVersion:1,constants:{TIME_TO_DEFAULT_REQUEST:50,TIME_TO_CATCH_ALL_DP_IFRAME_ATTACHMENT:500},variables:{scriptNodeList:document.getElementsByTagName("script"),scriptsRemoved:[],callbacksRemoved:[]},windowLoaded:!1,dils:{},isAddedPostWindowLoadWasCalled:!1,isAddedPostWindowLoad:function(n){this.isAddedPostWindowLoadWasCalled=!0;this.windowLoaded="function"==typeof n?!!n():"boolean"==typeof n?n:!0},create:function(n){try{return new DIL(n)}catch(t){return new Image(0,0).src="http://error.demdex.net/event?d_nsid=0&d_px=14137&d_ld=name%3Derror%26filename%3Ddil.js%26partner%3Dno_partner%26message%3DError%2520in%2520attempt%2520to%2520create%2520DIL%2520instance%2520with%2520DIL.create()%26_ts%3D"+(new Date).getTime(),Error("Error in attempt to create DIL instance with DIL.create()")}},registerDil:function(n,t,i){t=t+"$"+i;t in this.dils||(this.dils[t]=n)},getDil:function(n,t){var i;return"string"!=typeof n&&(n=""),t||(t=0),i=n+"$"+t,i in this.dils?this.dils[i]:Error("The DIL instance with partner = "+n+" and containerNSID = "+t+" was not found")},dexGetQSVars:function(n,t,i){return t=this.getDil(t,i),t instanceof this?t.getStuffedVariable(n):""},xd:{postMessage:function(n,t,i){var r=1;t&&(window.postMessage?i.postMessage(n,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(i.location=t.replace(/#.*$/,"")+"#"+ +new Date+r+++"&"+n))}}}),DIL.errorModule=function(){var i=DIL.create({partner:"error",containerNSID:0,disableDestinationPublishingIframe:!0}),n={harvestererror:14138,destpuberror:14139,dpmerror:14140,generalerror:14137,error:14137,noerrortypedefined:15021,evalerror:15016,rangeerror:15017,referenceerror:15018,typeerror:15019,urierror:15020},t=!1;return{activate:function(){t=!0},handleError:function(r){if(!t)return"DIL error module has not been activated";r!==Object(r)&&(r={});var u=r.name?new String(r.name).toLowerCase():"",f=[],r={name:u,filename:r.filename?r.filename+"":"",partner:r.partner?r.partner+"":"no_partner",site:r.site?r.site+"":document.location.href,message:r.message?r.message+"":""};return f.push(u in n?n[u]:n.noerrortypedefined),i.api.pixels(f).logs(r).useImageRequest().submit(),"DIL error report sent"},pixelMap:n}}(),DIL.tools={},DIL.modules={});DIL.tools.getSearchReferrer=function(n,t){var f=DIL.getDil("error"),r=DIL.tools.decomposeURI(n||document.referrer),i="",e="",u={queryParam:"q"},i=f.helpers.filter([t===Object(t)?t:{},{hostPattern:/aol\./},{hostPattern:/ask\./},{hostPattern:/bing\./},{hostPattern:/google\./},{hostPattern:/yahoo\./,queryParam:"p"}],function(n){return!(!n.hasOwnProperty("hostPattern")||!r.hostname.match(n.hostPattern))}).shift();return i?{valid:!0,name:r.hostname,keywords:(f.helpers.extendObject(u,i),e=u.queryPattern?(i=(""+r.search).match(u.queryPattern))?i[1]:"":r.uriParams[u.queryParam],decodeURIComponent(e||"").replace(/\+|%20/g," "))}:{valid:!1,name:"",keywords:""}};DIL.tools.decomposeURI=function(n){var i=DIL.getDil("error"),t=document.createElement("a");return t.href=n||document.referrer,{hash:t.hash,host:t.host.split(":").shift(),hostname:t.hostname,href:t.href,pathname:t.pathname.replace(/^\//,""),protocol:t.protocol,search:t.search,uriParams:function(n,t){return i.helpers.map(t.split("&"),function(t){t=t.split("=");n[t.shift()]=t.shift()}),n}({},t.search.replace(/^(\/|\?)?|\/$/g,""))}};DIL.tools.getMetaTags=function(){for(var u={},f=document.getElementsByTagName("meta"),t,i,r,n=0,e=arguments.length;n<e;n++)if(i=arguments[n],null!==i)for(t=0;t<f.length;t++)if(r=f[t],r.name==i){u[i]=r.content;break}return u};DIL.modules.siteCatalyst={init:function(n,t,i){try{var e=this,u={name:"DIL Site Catalyst Module Error"},r=function(n){return u.message=n,DIL.errorModule.handleError(u),n};if(!(t instanceof DIL))return r("dilInstance is not a valid instance of DIL");if(u.partner=t.api.getPartner(),n!==Object(n))return r("siteCatalystReportingSuite is not an object");if("function"!=typeof n.m_i||"function"!=typeof n.loadModule)return r("s.m_i is not a function or s.loadModule is not a function");if(n.m_DIL=function(n){if(n=n.m_i("DIL"),n!==Object(n))return r("m is not an object");n.trackVars=e.constructTrackVars(i);n.d=0;n._t=function(){var t,i,e=","+this.trackVars+",",n=this.s,u,f=[],o,s;if(u=[],o={},s=!1,n!==Object(n)||!(n.va_t instanceof Array))return r("Error in m._t function: s is not an object or s.va_t is not an array");if(this.d){if(n.lightProfileID?(t=n.lightTrackVars)&&(t=","+t+","+n.vl_mr+","):(n.pe||n.linkType)&&(t=n.linkTrackVars,n.pe&&(i=n.pe.substring(0,1).toUpperCase()+n.pe.substring(1),n[i])&&(t=n[i].trackVars),t&&(t=","+t+","+n.vl_l+","+n.vl_l2+",")),t){for(i=0,f=t.split(",");i<f.length;i++)0<=e.indexOf(","+f[i]+",")&&u.push(f[i]);u.length&&(e=","+u.join(",")+",")}for(u=0,i=n.va_t.length;u<i;u++)t=n.va_t[u],0<=e.indexOf(","+t+",")&&null!=n[t]&&""!==n[t]&&(o[t]=n[t],s=!0);s&&this.d.api.signals(o,"c_").submit()}};n.setup=function(){this.d=t}},n.loadModule("DIL"),n.DIL!==Object(n.DIL)||"function"!=typeof n.DIL.setup)return r("s.DIL is not an object or s.DIL.setup is not a function");if(n.DIL.setup(),u.message)return u.message}catch(f){return f.message="DIL Site Catalyst module caught error with message "+f.message,t instanceof DIL&&(f.partner=t.api.getPartner()),DIL.errorModule.handleError(f),f.message}},constructTrackVars:function(n){var u=[],t,i,f,r,e;if(n===Object(n)){if(t=n.names,t instanceof Array&&(f=t.length))for(i=0;i<f;i++)r=t[i],"string"==typeof r&&r.length&&u.push(r);if(n=n.iteratedNames,n instanceof Array&&(f=n.length))for(i=0;i<f;i++)if(t=n[i],t===Object(t)&&(r=t.name,e=parseInt(t.maxIndex,10),"string"==typeof r&&r.length&&!isNaN(e)&&0<=e))for(t=0;t<=e;t++)u.push(r+t);if(u.length)return u.join(",")}return this.constructTrackVars({names:"pageName,channel,campaign,products,events,pe,pev1,pev2,pev3".split(","),iteratedNames:[{name:"prop",maxIndex:75},{name:"eVar",maxIndex:75}]})}};DIL.modules.GA={dil:null,arr:null,tv:null,errorMessage:"",defaultTrackVars:["_setAccount","_setCustomVar","_addItem","_addTrans","_trackSocial"],defaultTrackVarsObj:null,signals:{},hasSignals:!1,init:function(n,t,i){try{this.tv=this.arr=this.dil=null;this.errorMessage="";this.signals={};this.hasSignals=!1;var r={name:"DIL GA Module Error"},u="";t instanceof DIL?(this.dil=t,r.partner=this.dil.api.getPartner()):(u="dilInstance is not a valid instance of DIL",r.message=u,DIL.errorModule.handleError(r));!(n instanceof Array)||!n.length?(u="gaArray is not an array or is empty",r.message=u,DIL.errorModule.handleError(r)):this.arr=n;this.tv=this.constructTrackVars(i);this.errorMessage=u}catch(f){f.message="DIL GA module caught error with message "+f.message;t instanceof DIL&&(f.partner=t.api.getPartner());DIL.errorModule.handleError(f);this.errorMessage=f.message}finally{return this}},constructTrackVars:function(n){var f=[],t,u,i,r;if(this.defaultTrackVarsObj!==Object(this.defaultTrackVarsObj)){for(i=this.defaultTrackVars,r={},t=0,u=i.length;t<u;t++)r[i[t]]=!0;this.defaultTrackVarsObj=r}else r=this.defaultTrackVarsObj;if(n===Object(n)){if(n=n.names,n instanceof Array&&(u=n.length))for(t=0;t<u;t++)i=n[t],"string"==typeof i&&i.length&&i in r&&f.push(i);if(f.length)return f}return this.defaultTrackVars},constructGAObj:function(n){for(var r={},n=n instanceof Array?n:this.arr,i,t,u=0,f=n.length;u<f;u++)i=n[u],i instanceof Array&&i.length&&(t=i.shift(),"string"==typeof t&&t.length&&(r[t]instanceof Array||(r[t]=[]),r[t].push(i)));return r},addToSignals:function(n,t){return"string"!=typeof n||""===n||null==t||""===t?!1:(this.signals[n]instanceof Array||(this.signals[n]=[]),this.signals[n].push(t),this.hasSignals=!0)},constructSignals:function(){for(var u=this.constructGAObj(),f={_setAccount:function(n){this.addToSignals("c_accountId",n)},_setCustomVar:function(n,t,i){"string"==typeof t&&t.length&&this.addToSignals("c_"+t,i)},_addItem:function(n,t,i,r,u,f){this.addToSignals("c_itemOrderId",n);this.addToSignals("c_itemSku",t);this.addToSignals("c_itemName",i);this.addToSignals("c_itemCategory",r);this.addToSignals("c_itemPrice",u);this.addToSignals("c_itemQuantity",f)},_addTrans:function(n,t,i,r,u,f,e,o){this.addToSignals("c_transOrderId",n);this.addToSignals("c_transAffiliation",t);this.addToSignals("c_transTotal",i);this.addToSignals("c_transTax",r);this.addToSignals("c_transShipping",u);this.addToSignals("c_transCity",f);this.addToSignals("c_transState",e);this.addToSignals("c_transCountry",o)},_trackSocial:function(n,t,i,r){this.addToSignals("c_socialNetwork",n);this.addToSignals("c_socialAction",t);this.addToSignals("c_socialTarget",i);this.addToSignals("c_socialPagePath",r)}},e=this.tv,n,i,s,r,t=0,o=e.length;t<o;t++)if(n=e[t],u.hasOwnProperty(n)&&f.hasOwnProperty(n)&&(r=u[n],r instanceof Array))for(i=0,s=r.length;i<s;i++)f[n].apply(this,r[i])},submit:function(){try{return""!==this.errorMessage?this.errorMessage:(this.constructSignals(),this.hasSignals?(this.dil.api.signals(this.signals).submit(),"Signals sent: "+this.dil.helpers.convertObjectToKeyValuePairs(this.signals,"=",!0)+this.dil.log):"No signals present")}catch(n){return n.message="DIL GA module caught error with message "+n.message,this.dil instanceof DIL&&(n.partner=this.dil.api.getPartner()),DIL.errorModule.handleError(n),this.errorMessage=n.message}}};DIL.modules.Peer39={aid:"",dil:null,optionals:null,errorMessage:"",calledBack:!1,script:null,scriptsSent:[],returnedData:[],init:function(n,t,i){try{this.dil=null;this.errorMessage="";this.calledBack=!1;this.optionals=i===Object(i)?i:{};var i={name:"DIL Peer39 Module Error"},f=[],r="";this.isSecurePageButNotEnabled(document.location.protocol)&&(r="Module has not been enabled for a secure page",f.push(r),i.message=r,DIL.errorModule.handleError(i));t instanceof DIL?(this.dil=t,i.partner=this.dil.api.getPartner()):(r="dilInstance is not a valid instance of DIL",f.push(r),i.message=r,DIL.errorModule.handleError(i));"string"!=typeof n||!n.length?(r="aid is not a string or is empty",f.push(r),i.message=r,DIL.errorModule.handleError(i)):this.aid=n;this.errorMessage=f.join("\n")}catch(u){u.message="DIL Peer39 module init() caught error with message "+u.message;t instanceof DIL&&(u.partner=t.api.getPartner());DIL.errorModule.handleError(u);this.errorMessage=u.message}finally{return this}},isSecurePageButNotEnabled:function(n){return"https:"==n&&!0!==this.optionals.enableHTTPS?!0:!1},constructSignals:function(){var n=this,t=this.constructScript(),i=DIL.variables.scriptNodeList[0];return window["afterFinished_"+this.aid]=function(){try{var t=n.processData(p39_KVP_Short("c_p","|").split("|"));t.hasSignals&&n.dil.api.signals(t.signals).submit()}catch(i){}finally{n.calledBack=!0;"function"==typeof n.optionals.afterResult&&n.optionals.afterResult()}},i.parentNode.insertBefore(t,i),this.scriptsSent.push(t),"Request sent to Peer39"},processData:function(n){var r,f,t,i,u={},e=!1;if(this.returnedData.push(n),n instanceof Array)for(r=0,f=n.length;r<f;r++)t=n[r].split("="),i=t[0],t=t[1],i&&isFinite(t)&&!isNaN(parseInt(t,10))&&(u[i]instanceof Array||(u[i]=[]),u[i].push(t),e=!0);return{hasSignals:e,signals:u}},constructScript:function(){var t=document.createElement("script"),n=this.optionals,i=n.scriptId,r=n.scriptSrc,n=n.scriptParams;return t.id="string"==typeof i&&i.length?i:"peer39ScriptLoader",t.type="text/javascript","string"==typeof r&&r.length?t.src=r:(t.src=(this.dil.constants.IS_HTTPS?"https:":"http:")+"//stags.peer39.net/"+this.aid+"/trg_"+this.aid+".js","string"==typeof n&&n.length&&(t.src+="?"+n)),t},submit:function(){try{return""!==this.errorMessage?this.errorMessage:this.constructSignals()}catch(n){return n.message="DIL Peer39 module submit() caught error with message "+n.message,this.dil instanceof DIL&&(n.partner=this.dil.api.getPartner()),DIL.errorModule.handleError(n),this.errorMessage=n.message}}};var _scObj=s_gi(s_account),kbbDil=DIL.create({partner:"cam",containerNSID:124,removeFinishedScriptsAndCallbacks:!0,mappings:{c_zip:"d_zc"},uuidCookie:{name:"aam_uuid",days:30}});DIL.modules.siteCatalyst.init(_scObj,kbbDil,{names:["pageName","channel","campaign","products","events","pe","referrer","server","purchaseID","zip","state"],iteratedNames:[{name:"eVar",maxIndex:75},{name:"prop",maxIndex:75},{name:"pev",maxIndex:3},{name:"hier",maxIndex:4}]})