/*@preserve ***Version 2.44.1*** */ /*@license * Copyright 2002 - 2018 Qualtrics, LLC. * All rights reserved. * * Notice: All code, text, concepts, and other information herein (collectively, the * "Materials") are the sole property of Qualtrics, LLC, except to the extent * otherwise indicated. The Materials are proprietary to Qualtrics and are protected * under all applicable laws, including copyright, patent (as applicable), trade * secret, and contract law. Disclosure or reproduction of any Materials is strictly * prohibited without the express prior written consent of an authorized signatory * of Qualtrics. For disclosure requests, please contact notice@qualtrics.com. */ try { (window["WAFQualtricsWebpackJsonP-cloud-2.44.1"]=window["WAFQualtricsWebpackJsonP-cloud-2.44.1"]||[]).push([[10],{13:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u}));n(29);var i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},r=function(e,t){for(var n=0,i=t.length,r=e.length;n0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},o=function(){function e(t,n){var o=this;this.components=e.components,this.overallLatencyStartTime=null,this.overallLatency=null,this.componentStartTimes={},this.componentLatencies={},this.componentStatuses={},this.isDuplicateScriptExecution=!1,this.setRequestId=function(e){o.requestId=e},this.startTimer=function(){o.latencyStartTime=Date.now()},this.endTimer=function(){null!==o.latencyStartTime?o.overallLatency=Date.now()-o.latencyStartTime:o.debugLog.e("Tried to log overall end time without a start time.")},this.startComponentTimer=function(e){o.componentStartTimes[e]=Date.now()},this.endComponentTimer=function(e){var t=o.componentStartTimes[e];void 0!==t?(o.componentLatencies[e]=Date.now()-t,o.debugLog.safeConsole("log","Component "+e+" loaded in "+o.componentLatencies[e]+"ms")):o.debugLog.e("Tried to log a component end time without a component start time. Component name: "+e)},this.setComponentStatus=function(e,t){o.componentStatuses[e]=t},this.markComponentAlreadyFetched=function(t){o.componentLatencies[t]||(o.componentLatencies[t]=e.alreadyFetchedMarker)},this.markDuplicateScriptExecution=function(){o.isDuplicateScriptExecution=!0},this.getPerformanceResourceTiming=function(){try{var e={},t=0,n=window.QSI.global,i=n.baseURL,o=n.hostedJSLocation,a=window.QSI.Orchestrator.scriptSrc;if(!i||!o||!a)return null;var s=new RegExp(a.split("?")[0]),l=new RegExp(o),c=new RegExp(i),u=new RegExp(l.source+"|"+c.source+"|"+s.source);return performance.getEntriesByType("resource").filter((function(e){return e.name.match(u)})).forEach((function(n){var i=n.name.split("?")[0],o=!1,a=i.match(l),c=i.match(s)&&"script"===n.initiatorType,u=i.match(/(Asset|Targeting)\.php/);if(a)i=i.split("dxjsmodule/")[1],o=!0;else if(c)i="Orchestrator",o=!0;else{if(!u)return;i=r(u,1)[0]}var d=n.transferSize,p=n.duration,g=n.decodedBodySize,f=n.domainLookupStart,h=n.domainLookupEnd;o&&(t+=d),e[i]={transferSize:d,decodedBodySize:g,totalLatency:p,dnsLatency:h-f}})),t>0&&(e.totalJSTransfer=t),e}catch(e){return null}},this.send=function(e){try{if(null===o.overallLatency)return void o.debugLog.e("Incomplete Latency Data Provided");var t=i.a.baseURL+"Ajax.php?action=LatencyLog&"+i.a.getClientVersionQueryString(),n=o.buildLoggingData(e);QSI.util.sendHttpRequest({type:"POST",url:t,header:{"Content-type":"application/x-www-form-urlencoded"},includeCookies:!1,data:QSI.util.buildQueryString({LoggingData:JSON.stringify(n)})})}catch(e){o.debugLog.e(e)}},this.buildLoggingData=function(e){if(e&&e.length>0){var t={},n={};return e.forEach((function(e){e in o.componentLatencies&&(t[e]=o.componentLatencies[e]),e in o.componentStatuses&&(n[e]=o.componentStatuses[e])})),{MetricName:o.metricName,Latency:-1,ComponentLatencies:t,ComponentStatuses:n,AdditionalData:{RequestID:o.requestId,UserAgent:navigator.userAgent,BrandID:i.a.global.brandID,BrandDC:i.a.global.brandDC,OtherRequestIDsExecuted:[],IsDuplicateScriptExecution:!1}}}var r=[];for(var a in i.a.Request)Object.prototype.hasOwnProperty.call(i.a.Request,a)&&a!==o.requestId&&r.push(a);var s={};for(var l in o.componentLatencies)l.startsWith(o.components.SR)||(s[l]=o.componentLatencies[l]);var c={};for(var l in o.componentStatuses)l.startsWith(o.components.SR)||(c[l]=o.componentStatuses[l]);var u={MetricName:o.metricName,Latency:o.overallLatency,ComponentLatencies:s,ComponentStatuses:c,AdditionalData:{RequestID:o.requestId,UserAgent:navigator.userAgent,BrandID:i.a.global.brandID,BrandDC:i.a.global.brandDC,OtherRequestIDsExecuted:r,IsDuplicateScriptExecution:o.isDuplicateScriptExecution}},d=o.getPerformanceResourceTiming();return d&&Object.keys(d).length&&(u.PerformanceResourceTiming=d),u},this.sampledSend=function(e){try{Math.random()<=e/100&&o.send()}catch(e){o.debugLog.e(e)}},this.sampledComponentSend=function(e,t){try{Math.random()<=e/100&&o.send(t)}catch(e){o.debugLog.e(e)}},this.debugLog=t,this.metricName=null!=n?n:"si.SILatency"}return e.alreadyFetchedMarker="ALREADY_FETCHED",e.components={CORE_MODULE:"coreModuleRequest",TARGETING:"targetingRequest",DPR_TARGETING:"dprTargetingRequest",XMD_DEBUG_TARGETING:"xmdDebugTargetingRequest",ASSETS_AND_MODULES:"allAssetDefinitionsAndJSModules",CONTACT_FREQUENCY:"contactFrequencyCheck",SR:"sessionReplayRequest"},e}()},29:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=[],r=function(e,t,n,r){void 0===r&&(r=!1),e&&(i.push({elementToObserve:e,eventName:t,eventHandler:n,preventRemove:r||!1}),e.addEventListener(t,n,!1))},o=function(e,t,n){e.removeEventListener(t,n,!1)}},3:function(e,t,n){"use strict";n.r(t);n(49),n(50),n(51);var i=n(29),r=n(13),o=function(){var e=this;this.trackElements=function(){if(0==e.loaded){e.loadCounts();var t=window.QSI,n=t.dbg,r=t.global.eventTrackers;Object.keys(r).forEach((function(t){var n=r[t];e.trackElement(n,t)})),Object(i.a)(window,"beforeunload",(function(){try{e.storeCounts()}catch(e){void 0!==window.QSI&&n&&n.e&&n.e(e)}})),Object(i.a)(window,"pagehide",(function(){try{e.storeCounts()}catch(e){void 0!==window.QSI&&n&&n.e&&n.e(e)}})),e.loaded=!0}},this.trackElement=function(t,n){var o=window.QSI.dbg,a=Object(r.a)(t);a&&Object(i.a)(a,"click",(function(){try{e.track(n)}catch(e){void 0!==window.QSI&&o&&o.e&&o.e(e)}}))},this.track=function(t){e.clicked=!0,e.counts[t]?e.counts[t]++:e.counts[t]=1},this.storeCounts=function(){if(!0===e.clicked){var t=window.QSI.cookie,n=JSON.stringify(e.counts);t.set(e.cookieName,n)}},this.loadCounts=function(){var t=window.QSI.cookie.get(e.cookieName);t&&(e.counts=JSON.parse(t))},this.get=function(t){return e.counts[t]?e.counts[t]:0},this.incrementEventList=function(){if("_qsie"in window&&Object(r.c)(window._qsie))for(var t=0,n=window._qsie.length;tt;){var n=decodeURIComponent(e).split("|");n.splice(0,1),e=n.join("|"),e=encodeURIComponent(e)}return e},e.prototype.get=function(){var e=this.historyStorage.getHistorySessionData();return e||(e=[]),e=this.limitSize(e),decodeURIComponent(e)},e.prototype.logCurrentURL=function(){var e=window.location.href,t=+new Date;this.logSite(e,t)},e.prototype.getReferrer=function(){return document.referrer},e.prototype.logSearch=function(){var e=this.getReferrer();if(e.search(/(google.com)|(bing.com)|(yahoo.com)/)>=0){var t=e.search(/(google.com)|(bing.com)/)>=0?/q=(.*?)&/:/p=(.*?)&/,n=e.match(t),i=decodeURIComponent((null==n?void 0:n[1])||"");window.QSI.profile.set("History","SearchTerm",i)}},e.prototype.logReferrer=function(){var e=this.getReferrer();e&&(window.QSI.util.build("a",{href:e}).hostname!==document.location.host&&window.QSI.profile.set("History","SiteReferrer",e),window.QSI.profile.set("History","PageReferrer",e))},e.prototype.logIntercept=function(e,t){t&&this.logActionSet(t)},e.prototype.logActionSet=function(e){if(e.search("AS_")>=0){var t=+new Date;window.QSI.profile.set("ActionSetHistory",e,t),window.QSI.profile.set("ActionSetHistory",e,t,1)}},e.prototype.logSurvey=function(e,t){window.QSI.profile.set("QualtricsSurveyHistory",e,t,1)},e.prototype.getSiteReferrer=function(){return window.QSI.profile.get("History","SiteReferrer")},e.prototype.getPageReferrer=function(){return window.QSI.profile.get("History","PageReferrer")},e.prototype.getSearch=function(){var e=window.QSI.profile.get("History","SearchTerm");return e||(e=""),e},e.prototype.getTimeOnSite=function(){var e=this.focusTime;return e+this.blurTime+"|"+e},e.prototype.getFocusTimeFromBrowserStorage=function(){var e=window.QSI.profile.get("History","FocusTime");return e||(e=0),e},e.prototype.getBlurTimeFromBrowserStorage=function(){var e=window.QSI.profile.get("History","BlurTime");return e||(e=0),e},e.prototype.getActionSetHistory=function(e,t){var n=window.QSI.profile.get("ActionSetHistory",e,t);return n||(n=0),n},e.prototype.getPageCount=function(){var e=this.historyStorage.getHistorySessionData(),t=0,n=[];if(e){for(var i=(e=decodeURIComponent(e)).split("|"),r=0;r0?l/t:0,u="HistoryCookieUtilization brandId="+a+" clientVersion="+(window.QSI.global&&window.QSI.global.clientVersion||"unknown")+" useCookie="+s+" useBytes="+l+" limitBytes="+t+" utilization="+c.toFixed(4);null===(i=null===(n=window.QSI)||void 0===n?void 0:n.dbg)||void 0===i||i.log(u,!1,"info")}catch(e){null===(o=null===(r=window.QSI)||void 0===r?void 0:r.dbg)||void 0===o||o.e(e)}},e}(),f=n(37),h=function(){function e(){}return e.prototype.increment=function(e){try{window.QSI.EventTracker.track(e)}catch(e){window.QSI.dbg.e(e)}},e.prototype.count=function(e){try{return window.QSI.EventTracker.get(e)}catch(e){window.QSI.dbg.e(e)}},e.prototype.push=function(e){try{window.QSI.EventTracker.track(e)}catch(e){window.QSI.dbg.e(e)}},e}(),S=function(){return(S=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},R=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},C=function(){function e(){var e=this;this.unloading=!1,this.Events=new h,this.SessionRecording=new b,this.load=function(){try{var t=window.QSI.Orchestrator.Deferred(),n=t.promise();return window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0?window.QSI.PendingQueue.push(e.loadHelper.bind(e,t)):e.loadHelper.bind(e,t)(),n}catch(e){window.QSI.dbg.e(e)}finally{window.QSI.dbg.c("DXJSAPIEvents: QSI.API.load()")}},this.unloadForSPA=function(t){window.QSI.global.featureFlags["DX.DXA_Auto_SPA"]&&t&&window.QSI.API.SessionRecording.pause(),e.unloadBase(!0)},this.unload=function(){e.unloadBase(!1)},this.unloadBase=function(t){void 0===t&&(t=!1),window.QSI.DataLayerHelper=void 0,window.QSI.InterceptReevaluator=new f.a;try{if(window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0)return void(t?window.QSI.PendingQueue.push(window.QSI.API.unloadForSPA):window.QSI.PendingQueue.push(window.QSI.API.unload));if(e.unloading=!0,window.QSI.SR&&!t){window.QSI.API.SessionRecording.pause();var n=document.getElementById("QSI_TestSessionToolbar");n&&n.parentNode&&n.parentNode.removeChild(n)}if(window.QSI.reg&&(window.QSI.util.forOwn(window.QSI.reg,(function(e,t){window.QSI.reg[t].remove()})),window.QSI.util.removeObservers(),window.QSI.util.removeTimeouts()),window.QSI.debug&&(window.QSI.util.remove(window.QSI.util.$("QSI_Debug")),window.QSI.debuggerHasDisplayed=!1),window.QSI.styleElements)for(var i=window.QSI.styleElements,r=0;r0)return void window.QSI.PendingQueue.push((function(){window.QSI.API.run(t)}));window.QSI.InterceptsRan||void 0===window.QSI.reg||(window.QSI.runOptions=t,e.shouldRunWithOptions(t)?(e.prepareForEvaluationWithOptions(),window.QSI.InterceptReevaluator.debouncedEvaluateAndRun()):window.QSI.RunIntercepts(null,!0))}catch(e){window.QSI.dbg.e(e)}finally{window.QSI.dbg.c("DXJSAPIEvents: QSI.API.run()")}},this.prepareForEvaluationWithOptions=function(){var e,t;try{for(var n=D(Object.entries(window.QSI.Request)),i=n.next();!i.done;i=n.next()){R(i.value,2)[1].Intercepts={}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}window.QSI.InterceptReevaluator.resetInterceptHasRun(),window.QSI.InterceptReevaluator.resetEvaluationResults()},this.shouldRunWithOptions=function(e){var t=null==e?void 0:e.jsExpressionValues;return t&&"object"==typeof t&&Object.keys(t).length>0},this.getIntercept=function(e){return new Promise((function(e,t){try{window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0?window.QSI.PendingQueue.push((function(){e()})):e()}catch(e){t(e)}})).then((function(){var t=R(window.QSI.Orchestrator.getInterceptFromSiResponse(e),2),n=t[0],i=t[1];if(!n)throw e+" is not a valid Intercept ID";return w.getInstance(m({},n),i?m({},i):null)})).catch((function(e){throw window.QSI.dbg.e(e),e})).finally((function(){window.QSI.dbg.log("DXJSAPIEvents: QSI.API.getIntercept()",!1,"info")}))}}return e.prototype.loadHelper=function(e){try{if(window.QSI.reg||this.unloading)return void e.reject();void 0===window.QSI.reg&&(window.QSI.reg={}),void 0===window.QSI.ed&&(window.QSI.ed={}),void 0===window.QSI.reqID&&(window.QSI.reqID={}),void 0===window.QSI.Request&&(window.QSI.Request={}),void 0===window.QSI.styleElements&&(window.QSI.styleElements=[]),window.QSI.util.forOwn(window.QSI.reqID,(function(t,n){var i={loadingFromAPI:!0};i.id=n,"Editing"===window.QSI.version&&(i.version="0"),void 0!==window.QSI.global.clientVersion&&null!==window.QSI.global.clientVersion&&(i.Q_CLIENTVERSION=window.QSI.global.clientVersion),void 0!==window.QSI.global.clientType&&null!==window.QSI.global.clientType&&(i.Q_CLIENTTYPE=window.QSI.global.clientType,void 0!==window.QSI.clientTypeVariant&&(i.Q_CLIENTTYPE+=window.QSI.clientTypeVariant)),0===n.search(/ZN/)?i.ZoneID=n:i.InterceptID=n,window.QSI.isDebug&&(i.Q_DEBUG=null),i.deferred=e,window.QSI.Orchestrator.load(i,!1)}))}catch(e){window.QSI.dbg.e(e)}},e}();function E(e){var t=new l;window.QSI&&window.QSI.closelyLoadedMultiZoneInfo&&(t.c("Multiple zone detected with info "+window.QSI.closelyLoadedMultiZoneInfo),window.QSI.closelyLoadedMultiZoneInfo=void 0);var n=new s.a(t);window.QSI.API=window.QSI.API||new C,window.QSI.ClientLog=new c,window.QSI.dbg=t,window.QSI.LatencyLog=n,window.QSI.EventTracker=new o,window.QSI.cookie=new u.a,window.QSI.CookieStorage=new d,window.QSI.history||(window.QSI.historyStorage=new p,window.QSI.history=new g(window.QSI.historyStorage)),window.QSI.history,window.QSI.Orchestrator=new a.a,window.QSI.Orchestrator.init(n,t,e)}n.d(t,"initialize",(function(){return E}))},35:function(e,t,n){"use strict";var i,r,o,a,s,l,c=n(26),u=!1,d=function(){function e(e){if(!u&&e.push){u=!0;var t=e.push;e.push=function(){for(var e,n,i,r,o,a,s,l=[],c=0;c, "+(null!==(s=null===(a=null==e?void 0:e.toString)||void 0===a?void 0:a.call(e))&&void 0!==s?s:e))}return u}}}return e.prototype.get=function(e,t){void 0===t&&(t=function(){return null});try{var n=window.QSI.config.gtmContainerID;if(!n)throw new Error("Data layer value retrieval failed because of missing Google Tag Manager container id");if(!window.google_tag_manager[n])throw new Error("Google Tag Manager container with id '"+n+"' does not exist");return window.google_tag_manager[n].dataLayer.get(e)}catch(e){return t()}},e}(),p=function(){var e;if(window.QSI.DataLayerHelper)return window.QSI.InterceptReevaluator.isActive()||window.QSI.InterceptReevaluator.activate(),window.QSI.DataLayerHelper;var t=window.QSI.config.gtmContainerID;if(!t)throw new Error("Google Tag Manager container ID was not provided and is needed for the Qualtrics data layer integration");var n=null===(e=window.google_tag_manager)||void 0===e?void 0:e[t];if(!n)throw new Error("Google Tag Manager container '"+t+"' does not exist");var i=n.dataLayer.name;if(!i)throw new Error("Google Tag Manager container '"+t+"' does not have a data layer name");var r=window[i];if(!r)throw new Error("Data layer '"+i+"' does not exist on window");return window.QSI.DataLayerHelper=new d(r),window.QSI.InterceptReevaluator.isActive()||window.QSI.InterceptReevaluator.activate(),window.QSI.DataLayerHelper},g=n(37),f=function(){function e(e,t,n){this.retryerName=e,this.retryLimit=t,this.retryBackoff=n,this.retryCount=0}return e.prototype.backOffAndRetry=function(e){this.retryCount0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e,t,i,r,o){var a=this;this.scZIndex=window.QSI.global.currentZIndex++,this.isScreenCaptureCancelled=!1,this.scCapturingScreen=null,this.scScreen=null,this.screenCaptureAnnotationsMap={},this.defaultTimeout=1e4,this.DX_SCREEN_CAPTURE_API_PATH=window.QSI.global.brandBaseUrl+"/dx-screencapture",this.currentController=null,this.QSI=window.QSI,this.elementsToRestoreAfterScreenshot=[],this.alreadyProcessedBlobUrls=new Map,this.screenCaptureTimeout=this.QSI.overrides.screenCaptureTimeout?this.QSI.overrides.screenCaptureTimeout:this.defaultTimeout,this.decompressPng=function(e){return"data:image/jpeg;base64,"+e},this.compressEvents=function(e){return(new w.a).encode(e)},this.captureScreen=function(e){return v(a,void 0,void 0,(function(){var t,n,i,r,o,a,s,l,c,u,d,p,g,f,h,S,I,w=this;return y(this,(function(v){switch(v.label){case 0:this.currentController&&this.currentController.abort(),this.currentController=new AbortController,t=null,n=null,v.label=1;case 1:return v.trys.push([1,6,7,8]),this.setInterceptVisibilty("hidden"),t=window.setTimeout((function(){return w.currentController.abort()}),this.screenCaptureTimeout),[4,this.findAndReplaceBlobs()];case 2:return n=v.sent(),[4,this.takeDOMSnapshotAndSerialize()];case 3:return i=v.sent(),n&&(n(),n=null),this.showCapturingScreen(),r=this.compressEvents(i),o={viewport:{width:window.innerWidth,height:window.innerHeight},resolutionRatio:1},a={serializedDOM:r,config:o},[4,fetch(this.DX_SCREEN_CAPTURE_API_PATH,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),mode:"cors",signal:this.currentController.signal})];case 4:if(s=v.sent(),this.currentController.signal.aborted)return[2];if(!s.ok)throw new Error("HTTP "+s.status);return[4,s.json()];case 5:return l=v.sent().imageData,this.currentController.signal.aborted?[2]:(c=this.decompressPng(l),this.succeededScreenCapture(e,c,this.translations),[3,8]);case 6:if(u=v.sent(),this.isScreenCaptureCancelled)return this.isScreenCaptureCancelled=!1,[2];if(n){try{n()}catch(e){null===(f=null===(g=this.QSI.dbg)||void 0===g?void 0:g.e)||void 0===f||f.call(g,"Failed to restore blob URLs: "+e)}n=null}return"AbortError"===(null==u?void 0:u.name)?(null!==t&&clearTimeout(t),d="Screen capture request timed out after "+this.screenCaptureTimeout+"ms",this.failedScreenCapture(d,this.translations),[2,u]):(p="Screen capture failed: "+(null!==(h=null==u?void 0:u.message)&&void 0!==h?h:u),this.failedScreenCapture(p,this.translations),[2,u]);case 7:if(n)try{n()}catch(e){null===(I=null===(S=this.QSI.dbg)||void 0===S?void 0:S.e)||void 0===I||I.call(S,"Failed to restore blob URLs in finally: "+e)}return null!==t&&clearTimeout(t),[7];case 8:return[2]}}))}))},this.transformBlobUrlToDataUrl=function(e){return v(a,void 0,void 0,(function(){var t,n,i,r;return y(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,o.sent().blob()];case 2:return t=o.sent(),[2,new Promise((function(e,n){var i=new FileReader;i.onloadend=function(){return e(i.result)},i.onerror=n,i.readAsDataURL(t)}))];case 3:return n=o.sent(),null===(r=null===(i=this.QSI.dbg)||void 0===i?void 0:i.e)||void 0===r||r.call(i,"Failed to convert blob URL to data URL: "+n),[2,e];case 4:return[2]}}))}))},this.extractBlobUrl=function(e){var t=e.replace(/"/g,'"').replace(/"/g,'"').match(/blob:(?:https?:\/\/[^\s"')]+|[^\s"')]+)/);return t?t[0]:null},this.processBlobImg=function(){return v(a,void 0,void 0,(function(){var e,t,n,i,r,o,a,s,l,c;return y(this,(function(u){switch(u.label){case 0:e=document.querySelectorAll("img"),u.label=1;case 1:u.trys.push([1,7,8,9]),t=b(Array.from(e)),n=t.next(),u.label=2;case 2:return n.done?[3,6]:(i=n.value,(o=(r=i).src)&&o.startsWith("blob:")?(this.elementsToRestoreAfterScreenshot.push({element:r,property:"src",originalValue:o}),(a=this.alreadyProcessedBlobUrls.get(o))?[3,4]:[4,this.transformBlobUrlToDataUrl(o)]):[3,5]);case 3:a=u.sent(),this.alreadyProcessedBlobUrls.set(o,a),u.label=4;case 4:r.src=a,u.label=5;case 5:return n=t.next(),[3,2];case 6:return[3,9];case 7:return s=u.sent(),l={error:s},[3,9];case 8:try{n&&!n.done&&(c=t.return)&&c.call(t)}finally{if(l)throw l.error}return[7];case 9:return[2]}}))}))},this.processBlobStyles=function(){return v(a,void 0,void 0,(function(){var e,t,n,i,r,o,a,s,l,c,u,d,p;return y(this,(function(g){switch(g.label){case 0:e=document.querySelectorAll("*"),g.label=1;case 1:g.trys.push([1,7,8,9]),t=b(Array.from(e)),n=t.next(),g.label=2;case 2:return n.done?[3,6]:(i=n.value,r=i,o=window.getComputedStyle(r),(a=o.backgroundImage)&&"none"!==a&&a.includes("blob:")&&(s=this.extractBlobUrl(a))?(l=r.style.backgroundImage||"",this.elementsToRestoreAfterScreenshot.push({element:r,property:"backgroundImage",originalValue:l}),(c=this.alreadyProcessedBlobUrls.get(s))?[3,4]:[4,this.transformBlobUrlToDataUrl(s)]):[3,5]);case 3:c=g.sent(),this.alreadyProcessedBlobUrls.set(s,c),g.label=4;case 4:r.style.backgroundImage='url("'+c+'")',g.label=5;case 5:return n=t.next(),[3,2];case 6:return[3,9];case 7:return u=g.sent(),d={error:u},[3,9];case 8:try{n&&!n.done&&(p=t.return)&&p.call(t)}finally{if(d)throw d.error}return[7];case 9:return[2]}}))}))},this.findAndReplaceBlobs=function(){return v(a,void 0,void 0,(function(){var e=this;return y(this,(function(t){switch(t.label){case 0:return[4,this.processBlobImg()];case 1:return t.sent(),[4,this.processBlobStyles()];case 2:return t.sent(),[2,function(){var t,n;try{for(var i=b(e.elementsToRestoreAfterScreenshot),r=i.next();!r.done;r=i.next()){var o=r.value,a=o.element,s=o.property,l=o.originalValue;"src"===s?a.src=l:"backgroundImage"===s&&(a.style.backgroundImage=l||"")}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}]}}))}))},this.takeDOMSnapshotAndSerialize=function(){return v(a,void 0,void 0,(function(){var e,t,i=this;return y(this,(function(r){switch(r.label){case 0:return[4,n.e(5).then(n.bind(null,30))];case 1:return e=r.sent().record,t=[],[2,new Promise((function(n,r){var o=!1,a=function(){};try{a=e({emit:function(e){t.push(e)},maskAllInputs:!0,blockSelector:"",maskTextSelector:""}),setTimeout((function(){o||(o=!0,a(),n(t))}),100)}catch(e){return void r(e)}setTimeout((function(){var e,t;if(!o){o=!0;try{a()}catch(n){null===(t=null===(e=i.QSI.dbg)||void 0===e?void 0:e.e)||void 0===t||t.call(e,n)}i.failedScreenCapture("Failed to capture serialized DOM",i.translations),r(new Error("Failed to capture serialized DOM"))}}),i.screenCaptureTimeout)}))]}}))}))},this.createCapturingScreen=function(e){var t=a.QSI.util.build("div",{"data-qsi-sc-class":"qsi_sc_backdrop",style:{width:"100%",height:"100%",backgroundColor:"black",opacity:"0.7",filter:"alpha(opacity=70)",position:"fixed",top:"0px",left:"0px",zIndex:""+(a.scZIndex-1)}},[]),n=a.QSI.util.build("img",{"data-qsi-sc-class":"qsi_sc_loading_icon",src:a.QSI.baseURL+"../WRQualtricsShared/Graphics/siteintercept/building_preview.gif",style:{width:"100px"},alt:""},[]),i=a.QSI.util.build("img",{"data-qsi-sc-class":"qsi_sc_cancel_capture_button",src:a.QSI.baseURL+"../WRQualtricsShared/Graphics/siteintercept/remove_screen_capture.png",title:"Cancel Capturing Screen",style:{webkitFilter:"brightness(0) invert(1)",filter:"brightness(0) invert(1)",display:"block",width:"15px",height:"15px",marginLeft:"100px",cursor:"pointer"},alt:"Cancel"},[]);a.isScreenCaptureCancelled=!1,a.QSI.util.observe(i,"click",(function(){try{a.currentController&&(a.currentController.abort(),a.isScreenCaptureCancelled=!0),a.hideCapturingScreen()}catch(e){void 0!==a.QSI&&a.QSI.dbg&&a.QSI.dbg.e&&a.QSI.dbg.e(e)}}));var r=a.QSI.util.build("div",{"data-qsi-sc-class":"qsi_sc_building_preview_text",style:{color:"white"}},[]);r.innerText=e.ScreenCaptureBuilding||"Building Preview ...";var o=window.innerWidth,s=window.innerHeight;a.scCapturingScreen=a.QSI.util.build("div",{"data-qsi-sc-class":"qsi_sc_capturing_screen",style:{position:"fixed",top:s/2+"px",left:o/2+"px",marginTop:"-50px",marginLeft:"-50px",zIndex:""+a.scZIndex}},[i,n,r]),a.scScreen=a.QSI.util.build("div",{className:"QSI_ScreenCapture",style:{visibility:"hidden"}},[t,a.scCapturingScreen]),document.body.appendChild(a.scScreen)},this.showCapturingScreen=function(){a.setInterceptVisibilty("hidden"),a.scScreen.style.visibility="visible"},this.hideCapturingScreen=function(){a.setInterceptVisibilty("visible"),a.scScreen.style.visibility="hidden"},this.setInterceptVisibilty=function(e){if(a.intercept.container?a.intercept.container.style.visibility=e:a.intercept.link&&"FeedbackLink"===a.intercept.type?a.intercept.link.style.visibility=e:a.intercept.bar?a.intercept.bar.style.visibility=e:a.intercept.setVisibility&&a.intercept.setVisibility(e),a.intercept.embeddedWindows)for(var t=0;t0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},P=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){for(var n=0,i=t.length,r=e.length;n0){var u=JSON.stringify(c);t+="&contactEmbeddedData="+encodeURIComponent(u)}}else this.debugLog.e("Contact embedded data input exceeds character limit: {"+T.ContactEmbeddedData+"}, will be dropped in targeting evaluation.")}t+="&xmdRetryCount="+encodeURIComponent(e);var d=this.formatHasAnalyticsConsent();return t+="&hasAnalyticsConsent="+encodeURIComponent(d),t+=this.getCJAEventData()},e.prototype.xmdContactInfoIsValid=function(e,t){return e.length<=t},e.prototype.getCJAEventData=function(){var e=new Date;return"&Timestamp="+encodeURIComponent(e.toISOString())+this.getCjaCustomValues()},e.prototype.getCjaCustomValues=function(){var e=S.a.config.customCjaData;if(null!==e&&"object"==typeof e&&!Array.isArray(e)){var t={};for(var n in e){if(Object.keys(t).length>=20)break;var i=e[n],r="string"==typeof n?n:JSON.stringify(n),o="string"==typeof i?i:JSON.stringify(i);r.length>100||o.length>100||(t[r]=o)}if(0!==Object.keys(t).length)return"&customCjaData="+encodeURIComponent(JSON.stringify(t))}return""},e.prototype.formatHasAnalyticsConsent=function(){var e=S.a.config.hasAnalyticsConsent;if(!(null==e)){var t=e.toString().toLowerCase();if("true"==t||"false"==t)return t}return null},e.prototype.reduceContactEmbeddedDataToLegalSize=function(e,t){var n,i,r=Object.entries(e).slice(0,t),o={};try{for(var a=P(r),s=a.next();!s.done;s=a.next()){var l=O(s.value,2),c=l[0],u=l[1];o[c]=u}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},e.prototype.generateTargetingURL=function(e){var t=S.a.baseURL+"Targeting.php?",n=[];e.InterceptID&&n.push("Q_InterceptID="+e.InterceptID),e.ZoneID&&n.push("Q_ZoneID="+e.ZoneID),e.Q_XMD_DEBUG?n.push("Q_XMD_DEBUG"):(null===e.Q_DEBUG&&(n.push("Q_DEBUG"),S.a.isDebug=!0),null===e.Q_BOOKMARKLET&&n.push("Q_BOOKMARKLET")),null===e.Q_NOCACHE&&n.push("Q_NOCACHE"),void 0!==e.version&&null!==e.version&&n.push("Version="+e.version);var i=window.QSI.profile.get("QualtricsSurveyHistory","",1);if(i){var r=encodeURIComponent(Object.keys(i).toString());n.push("Q_QualtricsSurveyTaken="+r)}return void 0!==e.Q_CLIENTVERSION&&null!==e.Q_CLIENTVERSION&&n.push("Q_CLIENTVERSION="+e.Q_CLIENTVERSION),void 0!==e.Q_CLIENTTYPE&&null!==e.Q_CLIENTTYPE&&n.push("Q_CLIENTTYPE="+e.Q_CLIENTTYPE),e.Q_EXT_REF&&n.push("Q_EXT_REF"),t+n.join("&")},e.prototype.isMessageEventOriginAllowed=function(e){if(S.a.reg)for(var t in S.a.reg)if(Object.prototype.hasOwnProperty.call(S.a.reg,t)&&S.a.reg[t]&&S.a.reg[t].options){var n=S.a.reg[t].options;if(n.targetURLOrigin===e)return!0;if(n.target&&n.target.OriginalURLOrigin===e)return!0}return!1},e.prototype.doCSTargetingEvaluation=function(e,t){return L(this,void 0,void 0,(function(){var n;return _(this,(function(i){switch(i.label){case 0:return Array.isArray(e.ClientSideIntercepts)?[4,this.computeCSTargetingEvaluation(e.ClientSideIntercepts)]:[2];case 1:return n=i.sent(),this.applyCSTargetingEvaluationResult(e,t,n),[2]}}))}))},e.prototype.computeCSTargetingEvaluation=function(e){return L(this,void 0,void 0,(function(){var t,n,i,r,o,a,s,l,u=this;return _(this,(function(d){switch(d.label){case 0:return t=window.QSI.ClientSideTargeting,n={Intercepts:{},Type:S.a.config.editing?"Editing":"Published"},i={FirstDCFInterceptPassed:!1},r=[],o=[],a=[],s=[],l=e.map((function(e){return L(u,void 0,void 0,(function(){var l,u,d;return _(this,(function(p){switch(p.label){case 0:return e?e.Error?(this.debugLog.log(e.Message),[3,3]):[3,1]:[3,3];case 1:return[4,new Promise((function(e){return setTimeout(e,0)}))];case 2:p.sent(),l=void 0,this.usePreviousEvaluationResult(e.InterceptID)?l=window.QSI.InterceptReevaluator.getInterceptEvaluationResult(e.InterceptID):(l=t.evaluateIntercept(e,i,S.a.isDebug),s.push({interceptId:e.InterceptID,result:l})),u=l.interceptEntry,d=l.interceptDebugInfo,n.Intercepts[e.InterceptID]=d,u&&(window.QSI.InterceptReevaluator.isActive()&&window.QSI.InterceptReevaluator.hasInterceptAlreadyRun(u.InterceptID)||(a.push({interceptId:e.InterceptID,targeting:u}),r.push(u),u.Decision.Creative&&(u.Decision.Creative.Type&&o.push(u.Decision.Creative.Type),u.Decision.PopUnderTarget&&o.push(c.e.PopUnder)),u.Decision.Target&&u.Decision.Target.DisplayType===c.h.EMBEDDED_TARGET&&o.push(c.e.EmbeddedTarget))),p.label=3;case 3:return[2]}}))}))})),[4,Promise.all(l)];case 1:return d.sent(),r.length>0&&o.push(c.e.ScreenCapture),[2,{intercepts:r,modulesToAdd:o,debugInfo:n,requestInterceptUpdates:a,evaluationResultsToStore:s}]}}))}))},e.prototype.applyCSTargetingEvaluationResult=function(e,t,n){var i,r,o,a,s,l,c,u;e.Intercepts=n.intercepts;try{for(var d=P(n.modulesToAdd),p=d.next();!p.done;p=d.next()){var g=p.value;e.Modules[g]=S.a.global.clientVersion}}catch(e){i={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}delete e.Modules.DependencyResolver,S.a.isDebug&&n.debugInfo&&(e.DebugInfo=JSON.stringify(n.debugInfo));try{for(var f=P(n.requestInterceptUpdates),h=f.next();!h.done;h=f.next()){var I=h.value,w=I.interceptId,v=I.targeting;t.Intercepts[w]={},t.Intercepts[w].Targeting=v}}catch(e){o={error:e}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}try{for(var y=P(n.evaluationResultsToStore),b=y.next();!b.done;b=y.next()){var m=b.value,D=(w=m.interceptId,m.result);window.QSI.InterceptReevaluator.setInterceptEvaluationResult(w,D)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(l=y.return)&&l.call(y)}finally{if(s)throw s.error}}try{for(var R=P(n.intercepts),C=R.next();!C.done;C=R.next()){var E=C.value.InterceptID;window.QSI.InterceptReevaluator.setInterceptHasRun(E)}}catch(e){c={error:e}}finally{try{C&&!C.done&&(u=R.return)&&u.call(R)}finally{if(c)throw c.error}}},e.prototype.usePreviousEvaluationResult=function(e){var t=window.QSI.InterceptReevaluator;return!!t.isActive()&&(!!t.hasInterceptAlreadyRun(e)||!window.QSI.DataLayerHelper&&(null!=window.QSI.InterceptReevaluator.getInterceptEvaluationResult(e)&&!t.hasFrustrationSignalLogic(e)))},e.prototype.doStartTrackingMatrixCheck=function(e){var t=this.formatHasAnalyticsConsent(),n=null!=t?"true"===t:null,i=e.SRConfiguration.recordByDefault;return n||i&&null==n},e.prototype.canStartRegularSession=function(e){return!!e.RequestData.ID&&!!e.SRConfiguration&&!this.isSRThrottled(e.RequestData.ID)&&this.doStartTrackingMatrixCheck(e)},e.prototype.canStartTestSession=function(e){return!!e.RequestData.ID&&!!e.SRTestConfiguration&&!e.RequestData.isDebug&&"Editing"!==e.RequestData.bVersion},e.prototype.getExistingSessionTypeFromCookie=function(e){var t=window.QSI.cookie,n="QSI_ReplaySession_Info_"+e,i=JSON.parse(t.get(n));return null===i?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("No active session info cookie found called: "+n),"No_Active_Session"):!0===i.isTestSession?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Found test session info cookie called: "+n),"Test_Session"):!1===i.isTestSession?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Found regular session info cookie called: "+n),window.QSI.SRGlobalConfiguration.isTestSession&&(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Deleting regular session info cookie called: "+n+" to make way for test session"),t.erase(n,S.a.CookieDomain)),"Regular_Session"):void 0},e.prototype.getMillisecondsToDelay=function(){var e=S.a.config.clientSideDelayMilliseconds;return"number"!=typeof e||!e&&0!==e||e>=72e6||e<0?window.QSI.global.featureFlags["DX.DXA_No_Delay"]?0:this.defaultClientSideDelayMilliseconds:e},e.prototype.convertIsolationStatus=function(e){switch(e){case c.g.NOT_ISOLATED:return c.f.NOT_ISOLATED;case c.g.ISOLATED_V1:return c.f.ISOLATED_V1;default:throw new Error("Invalid isolation status: "+e)}},e.prototype.setSRGlobalConfiguration=function(e){var t=window.QSI.util;!e.SRTestConfiguration&&window.QSI.SRGlobalConfiguration||(window.QSI.SRGlobalConfiguration={brandId:e.RequestData.brandID,brandDc:t.getBrandDC(e.RequestData.brandDC),zoneId:e.RequestData.ID,validatedIdentifierRules:e.RequestData.validatedIdentifierRules,zoneIdentifierRules:e.RequestData.zoneIdentifierRules,srBaseUrl:S.a.getSRBaseURLFromConfigAndOverrides(t.getBrandDC(e.RequestData.brandDC)),cookieDomain:e.RequestData.cookieDomain,configuration:e.SRConfiguration||e.SRTestConfiguration,brandBaseUrl:e.RequestData.brandBaseUrl,isTestSession:!!e.SRTestConfiguration,isolationStatus:void 0!==e.RequestData.isolationStatus?this.convertIsolationStatus(e.RequestData.isolationStatus):void 0})},e.prototype.canStartSR=function(e){var t,n,i,r,o,a,s,l=window.QSI.global;return!(!e.SRConfiguration&&!e.SRTestConfiguration)&&(e.RequestData&&(null===(t=e.RequestData)||void 0===t?void 0:t.ID)&&(null===(i=null===(n=e.RequestData)||void 0===n?void 0:n.ID)||void 0===i?void 0:i.startsWith("ZN_"))?!!this.evaluateSRConditionalTargeting(e)&&(e.RequestData.isolationStatus!==c.g.ISOLATION_ERROR&&(e.SRConfiguration&&(null===(r=window.QSI.SR)||void 0===r?void 0:r.zoneId)?((null===(o=window.QSI.SR)||void 0===o?void 0:o.zoneId)!==e.RequestData.ID&&(l.srMultiZoneErrors+=1,this.debugLog.e("Multiple SR Zones Detected on page. "+(null===(a=window.QSI.SR)||void 0===a?void 0:a.zoneId)+" is already initialized, "+e.RequestData.ID+" attempted to initialize after. To resolve, please use only one zone snippet per page."),1==l.srMultiZoneErrors&&console.error("Qualtrics: Multiple Zones Detected on page. "+(null===(s=window.QSI.SR)||void 0===s?void 0:s.zoneId)+" is already initialized, "+e.RequestData.ID+" attempted to initialize after. To resolve, please use only one zone snippet per page.")),!1):!e.SRConfiguration||!e.RequestData||"SR_ENABLED_FOR_WEB_ONLY"===e.RequestData.srEnabled||"SR_ENABLED_FOR_WEB_AND_MOBILE"===e.RequestData.srEnabled)):(this.debugLog.e("Missing or incorrectly formatted request data in targeting response"),!1))},e.prototype.evaluateSRConditionalTargeting=function(e){if(window.QSI.global.featureFlags["DX.DXAConditionalTargeting_EA"]){if(!e)return!1;if(e.SRConfiguration){if(!e.SRConfiguration.logicTree||e.SRConfiguration.logicTree.Type!==o.VALUE_NODE)return this.debugLog.log("Brand "+e.RequestData.brandID+", zone "+e.SRConfiguration.zoneId+" does not have a valid conditional targeting logic tree, skipping SR"),!1;if(!(t=e.SRConfiguration.logicTree)||!t.Value)return this.debugLog.log("Brand "+e.RequestData.brandID+", zone "+e.SRConfiguration.zoneId+" conditional targeting logic tree evaluated false, skipping SR"),!1}else if(e.SRTestConfiguration){if(!e.SRTestConfiguration.logicTree||e.SRTestConfiguration.logicTree.Type!==o.VALUE_NODE)return this.debugLog.log("Brand "+e.RequestData.brandID+", zone "+e.SRTestConfiguration.zoneId+" does not have a valid test conditional targeting logic tree, skipping SR"),!1;var t;if(!(t=e.SRTestConfiguration.logicTree)||!t.Value)return this.debugLog.log("Brand "+e.RequestData.brandID+", zone "+e.SRTestConfiguration.zoneId+" test conditional targeting logic tree evaluated false, skipping SR"),!1}}return!0},e.prototype.startSR=function(e){var t=this,i=window.QSI,r=i.API,o=i.SR,a=i.SRGlobalConfiguration,s=this.canStartRegularSession(e),l=this.canStartTestSession(e),c=this.getExistingSessionTypeFromCookie(a.zoneId);l&&Promise.all([n.e(2),n.e(18)]).then(n.bind(null,83)).then((function(e){var n=e.RenderTestSessionComponents;o&&"No_Active_Session"===c&&(window.QSI.SR=null),n({zoneId:a.zoneId,brandBaseUrl:a.brandBaseUrl,isTestSessionActive:"Test_Session"===c,errorCallback:t.debugLog.e})})),(s||l&&"Test_Session"===c)&&r.SessionRecording.start()},e.prototype.handleTargetingResponse=function(e,t){var i=this,r=window.QSI,o=r.AssetManager,a=r.API,s=r.EventTracker,l=r.history;try{var c;if("SampleRejected"===t)return;try{c=JSON.parse(t)}catch(e){return void this.debugLog.e("Failed to parse JSON of targeting response: "+t)}if(c.Error)return void this.debugLog.e(c.Message);if("XMD_RETRY"===c.Message)return void this.targetingRetryer.backOffAndRetry((function(){i.load(e,!0)}));var u=c.Modules;this.setGlobalVars(c);var d=this.isBrowserSupported();if("EXTREF_RETRY"===c.Message){if(u.Core&&d)o.promiseLoadScript("Core",u.Core,S.a,this.latencyLog).then((function(){return L(i,void 0,void 0,(function(){return _(this,(function(t){return this.evaluateAndSetExternalReference(c),this.load(A(A({},e),{Q_EXT_REF:!0}),!1),[2]}))}))}));return}if(c.RequestData&&c.RequestData.reevaluateInterceptOnUrlChange&&this.handleSPAEvaluation({onHashChange:!0,onUrlPathChange:!0}),l.logVisit(),this.canStartSR(c)&&(this.setSRGlobalConfiguration(c),setTimeout((function(){i.startSR(c)}),this.getMillisecondsToDelay())),Q.start(c),!S.a.Request[e.id].hasDependencies&&S.a.Request[e.id].hasBeenResolved||(s.trackElements(),s.incrementEventList(),window._qsie=a.Events),this.csTargetingParams={targetingResponse:c,targetingRequest:S.a.Request[e.id],assetLoadingParams:e},u.Core&&d)o.promiseLoadScript("Core",u.Core,S.a,this.latencyLog).then((function(){return L(i,void 0,void 0,(function(){var t,i,r=this;return _(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),t=window.QSI.ClientSideTargeting,S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&c.ClientSideIntercepts&&c.ClientSideIntercepts.length>0?(t.setEnabled(!0),[4,this.doCSTargetingEvaluation(c,S.a.Request[e.id])]):[3,2];case 1:return o.sent(),[3,3];case 2:c.Intercepts&&c.Intercepts.forEach((function(t){t&&(t.Error?r.debugLog.log(t.Message):(S.a.Request[e.id].Intercepts[t.InterceptID]={},S.a.Request[e.id].Intercepts[t.InterceptID].Targeting=t))})),o.label=3;case 3:return!c.Dependencies||S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&c.ClientSideIntercepts&&c.ClientSideIntercepts.length>0?(n.e(6).then(n.bind(null,36)).then((function(e){(0,e.addPopunderEmbeddedDataHandler)(e.updatePopunderEDCallback)})),this.shouldMakeXMDDebugCall()?(e.Q_XMD_DEBUG=!0,this.handleXMDDebug(e,c)):this.loadModules(e,c)):this.handleDependencyResolver(e,c),[3,5];case 4:return i=o.sent(),this.debugLog.e(i),[3,5];case 5:return[2]}}))}))}),(function(){}));else this.doneLoading(e,c)}catch(e){this.debugLog.e(e)}},e.prototype.evaluateAndSetExternalReference=function(e){var t,n=e.RequestData.extRefType,i=e.RequestData.extRefValue;switch(n){case"JS":t=window.QSI.EmbeddedData.getJavaScriptValue(i).toString();break;case"Cookie":t=window.QSI.EmbeddedData.getCookieVal(i);break;case"HTML":t=window.QSI.EmbeddedData.getHTMLFromDOM(i);break;case"StaticValue":t=i;break;default:return void this.debugLog.log("Invalid type when evaluating external reference of type "+n+" and value "+i+" in "+e.RequestData.ID)}t&&(S.a.config.externalReference=t)},e.prototype.shouldMakeXMDDebugCall=function(){return!window.QSI.ClientSideTargeting.isEnabled()&&(!!S.a.config.externalReference&&S.a.isDebug)},e.prototype.handleDependencyResolver=function(e,t){var n=this,i=window.QSI.AssetManager;e.BrandDC=t.RequestData.brandDC;var r=this.generateTargetingURL(e);r+="&t="+(new Date).getTime(),r+="&Q_VSI="+encodeURIComponent(JSON.stringify(t.RequestData.validIntercepts)),r+="&Q_DPR=true",this.latencyLog.startComponentTimer(h.a.components.DPR_TARGETING);var o="";for(var a in t.Dependencies)Object.prototype.hasOwnProperty.call(t.Dependencies,a)&&("SiteCatalyst"===a&&(QSI["Resolve"+a].rootName=S.a.adobeVar),o+=QSI["Resolve"+a].prepare(t.Dependencies[a]));o+="&"+this.getTargetingPostData(),i.promiseFetch("POST",r,o).then((function(){this.latencyLog.endComponentTimer(h.a.components.DPR_TARGETING)})).then(this.handleTargetingResponse.bind(this,e),(function(t){n.debugLog.e(t.Message),e.deferred&&e.deferred.reject()}))},e.prototype.handleXMDDebug=function(e,t){var n=this,i=window.QSI.AssetManager,r={};t.Intercepts.forEach((function(e){if(e.Decision&&e.Decision.ActionSetID){var t=e.InterceptID,n=e.Decision.ActionSetID;r[t]=n}})),e.BrandDC=t.RequestData.brandDC;var o=this.generateTargetingURL(e),a="";a+=this.getTargetingPostData();var s=""+h.a.components.XMD_DEBUG_TARGETING+this.xmdDebugRetryer.getRetryCount();this.latencyLog.startComponentTimer(s),i.promiseFetch("POST",o,a).then((function(i){n.latencyLog.endComponentTimer(s),n.handleXMDDebugResponse(e,t,r,i)}))},e.prototype.handleXMDDebugResponse=function(e,t,n,i){var r,o,a=this;try{r=JSON.parse(i)}catch(e){return void this.debugLog.e("Failed to parse JSON of Q_XMD_DEBUG targeting response: "+i)}if(S.a.isDebug)try{o=JSON.parse(t.DebugInfo)}catch(e){return void this.debugLog.e("Failed to parse debugInfo JSON of Q_DEBUG targeting response: "+t)}S.a.isDebug&&(r.Intercepts.forEach((function(e){if(e){var t=e.InterceptID;Object.prototype.hasOwnProperty.call(o.Intercepts,t)&&Object.prototype.hasOwnProperty.call(n,t)&&e.Error&&a.debugLog.log(e.Message)}})),r.DebugInfo=JSON.stringify(o),r.Modules.Debug=S.a.global.clientVersion),r.Intercepts.forEach((function(n){if(n)if(n.Error)a.debugLog.log(n.Message);else{for(var i=void 0,r=0;r0?i.latencyLog.send():i.latencyLog.sampledSend(S.a.global.latencySamplePercentage)),i.setGlobalIncludes(e,t);var r=S.a.Request[e.id].displayInterceptType,o=S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&t.ClientSideIntercepts&&t.ClientSideIntercepts.length>0;("manual"!==r&&!S.a.Request[e.id].zoneManualDisplay||S.a.Request[e.id].hasDependencies&&!o)&&n(e.id,!1),i.doneLoading(e,t),e.deferred&&e.deferred.resolve()}))},e.prototype.isBrowserSupported=function(){return!("Chrome"===window.QSI.Browser.name&&window.QSI.Browser.version<=20)&&(!("Firefox"===window.QSI.Browser.name&&window.QSI.Browser.version<=59)&&!("Internet Explorer"===window.QSI.Browser.name&&window.QSI.Browser.version<=10))},e.prototype.setGlobalIncludes=function(e,t){S.a.isDebug&&t.DebugInfo&&(S.a.Request[e.id].Debug={debugInfo:JSON.parse(t.DebugInfo),version:t.RequestData.bVersion}),S.a.version=t.RequestData.bVersion,S.a.InterceptsRan=!1,S.a.Request[e.id].hasDependencies=t.RequestData.hasDependencies,S.a.Request[e.id].hasBeenResolved=t.RequestData.hasBeenResolved,S.a.Request[e.id].displayInterceptType=t.RequestData.displayInterceptType,S.a.Request[e.id].zoneManualDisplay=t.RequestData.zoneManualDisplay},e.prototype.setGlobalVars=function(e){window.QSI.Browser={name:e.RequestData.browser,version:e.RequestData.browserVersion,isMobile:e.RequestData.isMobile,isBrowserSupported:e.RequestData.isBrowserSupported},window.QSI.CORSOrigin=e.RequestData.CORSOrigin,window.QSI.OS={name:e.RequestData.osName,version:e.RequestData.osVersion},window.QSI.config.gtmContainerID=e.RequestData.googleDataLayerVariable,window.QSI.config.customJavaScriptPermission=e.RequestData.customJavaScriptPermission,S.a.global.brandID=e.RequestData.brandID,S.a.global.brandDC=e.RequestData.brandDC,S.a.global.geo=e.RequestData.geo,S.a.global.graphicPath=S.a.overrides.graphicPath||"https://"+S.a.global.brandDC+"/WRQualtricsSiteIntercept/Graphic.php?IM=",S.a.global.imagePath=S.a.global.baseURL+"/WRQualtricsShared/Graphics",S.a.global.maxCookieSize=e.RequestData.maxCookieSize,S.a.global.featureFlags=e.FeatureFlags,S.a.global.screenCaptureServiceBaseURL=e.RequestData.screenCaptureServiceBaseURL,S.a.global.brandBaseUrl=e.RequestData.brandBaseUrl,S.a.global.eventTrackers=e.RequestData.eventTrackers,S.a.adobeVar=e.RequestData.adobeSCVariable,S.a.id=e.RequestData.ID,S.a.reqID[e.RequestData.ID]=!0,S.a.CookieDomain=e.RequestData.cookieDomain,S.a.historyStorageType=e.RequestData.historyStorageType,S.a.historyStorageSize=e.RequestData.historyStorageSize,S.a.currentURL=window.location.href.split("?")[0],function(){var e=document.createElement("div");e.className="scrollbar-measure",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-99999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;S.a.scrollbarWidth=t,document.body.removeChild(e)}()},e.prototype.parseQueryString=function(e){var t={};if(e&&-1!==e.indexOf("?"))for(var n=e.split("?",2)[1].split("&"),i=0;i1?n:i.createArrayFromArguments(N([n],O(r))),--a||s.resolve(t)}};if(o>1)for(var c=0;c0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0?(n.e(6).then(n.bind(null,36)).then((function(e){(0,e.addPopunderEmbeddedDataHandler)(e.updatePopunderEDCallback)})),g=l.Deferred(),p.deferred=g,l.loadModules(p,u),[2,new Promise((function(e,t){g.promise().then(e).fail((function(e){var n,i,r,o,a;null===(r=null===(i=null===(n=window.QSI)||void 0===n?void 0:n.dbg)||void 0===i?void 0:i.e)||void 0===r||r.call(i,"Error in , "+(null!==(a=null===(o=null==e?void 0:e.toString)||void 0===o?void 0:o.call(e))&&void 0!==a?a:e)),t(e)}))}))]):[3,4];case 3:return f=o.sent(),null===(i=null===(t=null===(e=window.QSI)||void 0===e?void 0:e.dbg)||void 0===t?void 0:t.e)||void 0===i||i.call(t,"Error in , "+(null!==(s=null===(a=null==f?void 0:f.toString)||void 0===a?void 0:a.call(f))&&void 0!==s?s:f)),[3,4];case 4:return[2]}}))}))},e.prototype.refreshDebug=function(e){var t=this.oldEvaluationResults,n=this.evaluationResults;if(JSON.stringify(t)!==JSON.stringify(n)){var i={debugInfo:JSON.parse(e.DebugInfo)},r=window.QSI;r.debuggerHasDisplayed=!1,window.QSI.debugHandlerInstance=new r.DebugHandler(i),r.debuggerHasDisplayed=!0}else window.QSI.debugHandlerInstance&&window.QSI.foundFrustrationLogic&&window.QSI.InterceptReevaluator.isActive()&&window.QSI.debugHandlerInstance.refreshFrustrationSignalCounts();this.setOldEvaluationResults(n)},e.evaluateDebounceTimeout=100,e}()},38:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(0),r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=["^QSI_ReplaySession_Info_ZN_.*"],a=function(){function e(){var e=this;this.cookieSize=0,document.cookie.split(";").forEach((function(t){var n=t.indexOf("QSI");~n&&(e.cookieSize+=t.length-n)}))}return e.prototype.set=function(e,t,n){void 0===n&&(n={});var r=n.force,o=n.erase,a=n.secure,s=n.daysToExpire,l=n.domain,c=n.shouldEncode,u=void 0!==c&&c,d=i.a.global.maxCookieSize,p=this.get(e),g=this.getCookieSize();p&&(g-=(e+"="+p).length);var f="";if(s){var h=new Date;h.setTime(h.getTime()+864e5*s),f="; expires="+h.toUTCString()}var S="";l?S="domain="+l:i.a.CookieDomain&&(S="domain="+i.a.CookieDomain);var I=e+"="+(u?this.encode(t):t),w=g+I.length;if(!(r||null!==d&&w<=d||null===d))throw new Error("Cannot exceed the specified maximum cookie size");this.cookieSize=o?g:w;var v=""+I+f+"; path=/; "+S;("https:"===location.protocol||a)&&(v+="; secure"),document.cookie=v},e.prototype.get=function(e){for(var t=document.cookie.split(";"),n=0;n=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},s=function(e){var t,n,s={},l=r.b.ContactEmbeddedDataKey,c=r.b.ContactEmbeddedDataValue;try{for(var u=o(Object.entries(e)),d=u.next();!d.done;d=u.next()){var p=a(d.value,2),g=p[0],f=p[1];null!=f&&g.length<=l&&f.toString().length<=c?s[g.trim()]=f.toString().trim():Object(i.a)("Drop illegal item due to exceeding size limit (key > "+l+" characters, value > "+c+" characters or contains undefined value for key: "+g+")")}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return s}},49:function(e,t){QSI.profile&&!window.QTestLib||(QSI.profile={namespace:"QSI_",set:function(e,t,n,i){if(void 0===e||void 0===t||void 0===n)throw new Error("To few arguments");try{var r=this.getStorage(i),o=this.namespace+e,a=r.getItem(o);(a=a?JSON.parse(a):{})[t]=n,a=JSON.stringify(a),r.setItem(o,a)}catch(e){QSI.dbg.e("error setting profile item"),QSI.dbg.e(e)}},get:function(e,t,n){var i=this.getStorage(n),r=this.namespace+e,o=i.getItem(r);return o?(o=JSON.parse(o),t?o[t]?o[t]:null:o):null},erase:function(e,t,n){var i=this.getStorage(n),r=this.namespace+e;if(t){var o=JSON.parse(i.getItem(r));delete o[t],o=JSON.stringify(o),i.setItem(r,o)}else i.removeItem(r)},getStorage:function(e){if(this.hasSessionStorage())return e?localStorage:sessionStorage;if(QSI.UserDataStorage){var t=QSI.UserDataStorage;return e?t.isPermanent(!0):t.isPermanent(!1),t}return QSI.CookieStorage},hasSessionStorage:function(){try{var e="qualtricssessionstoragetestkey",t=window.sessionStorage;return t.setItem(e,e),t.removeItem(e),!0}catch(e){return!1}}})},50:function(module,exports){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}void 0===QSI.util&&(QSI.util={$:function(e){return"string"==typeof e&&(e=document.getElementById(e)),e},forOwn:function(e,t){if(e&&e instanceof Object&&this.isFunction(t))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)},build:function(e,t,n){var i=document.createElement(e);if(t){var r=this;QSI.util.forOwn(t,(function(e,n){switch(n){case"style":r.setStyle(i,t[n]);break;case"className":i.className=t[n];break;case"id":i.id=t[n];break;default:i.setAttribute(n,t[n])}}))}if(n)if(QSI.util.isString(n))"style"===e&&i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(String(n)));else if(QSI.util.isArray(n))for(var o=0,a=n.length;oNumber(t.style.zIndex)?1:0}));for(var n=0;nNumber(t.position.left)?1:0})),t=QSI.util.stableSort(t,(function(e,t){return Number(e.position.top)Number(t.position.top)?1:0})),e.Options.elements.Elements=t,e}return e}}}}]); } catch(e) { if (typeof QSI !== 'undefined' && QSI.dbg && QSI.dbg.e) { QSI.dbg.e(e); } }