1"use strict";(self.webpackChunkwww_discover_com=self.webpackChunkwww_discover_com||[]).push([[133],{5580:(Ae,N,C)=>{C.d(N,{B:()=>B});var u=C(6732),h=C(5372),g=C(8515),M=C(8567),o=C(5506);let D;try{D=typeof Intl<"u"&&Intl.v8BreakIterator}catch(v){D=!1}let m=(()=>{var v;class _{constructor(){(0,u.A)(this,"_platformId",(0,h.inject)(h.PLATFORM_ID)),(0,u.A)(this,"isBrowser",this._platformId?(0,o.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document),(0,u.A)(this,"EDGE",this.isBrowser&&/(edge)/i.test(navigator.userAgent)),(0,u.A)(this,"TRIDENT",this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent)),(0,u.A)(this,"BLINK",this.isBrowser&&!(!window.chrome&&!D)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT),(0,u.A)(this,"WEBKIT",this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT),(0,u.A)(this,"IOS",this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window)),(0,u.A)(this,"FIREFOX",this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent)),(0,u.A)(this,"ANDROID",this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT),(0,u.A)(this,"SAFARI",this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT)}}return v=_,(0,u.A)(_,"\u0275fac",function(P){return new(P||v)}),(0,u.A)(_,"\u0275prov",h.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"})),_})();function f(v){return Array.isArray(v)?v:[v]}const p=new Set;let y,j=(()=>{var v;class _{constructor(){(0,u.A)(this,"_platform",(0,h.inject)(m)),(0,u.A)(this,"_nonce",(0,h.inject)(h.CSP_NONCE,{optional:!0})),(0,u.A)(this,"_matchMedia",void 0),this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$}matchMedia(P){return(this._platform.WEBKIT||this._platform.BLINK)&&function O(v,_){if(!p.has(v))try{y||(y=document.createElement("style"),_&&y.setAttribute("nonce",_),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule("@media ".concat(v," {body{ }}"),0),p.add(v))}catch(A){console.error(A)}}(P,this._nonce),this._matchMedia(P)}}return v=_,(0,u.A)(_,"\u0275fac",function(P){return new(P||v)}),(0,u.A)(_,"\u0275prov",h.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"})),_})();function $(v){return{matches:"all"===v||""===v,media:v,addListener:()=>{},removeListener:()=>{}}}let B=(()=>{var v;class _{constructor(){(0,u.A)(this,"_mediaMatcher",(0,h.inject)(j)),(0,u.A)(this,"_zone",(0,h.inject)(h.NgZone)),(0,u.A)(this,"_queries",new Map),(0,u.A)(this,"_destroySubject",new g.Subject)}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(P){return b(f(P)).some(x=>this._registerQuery(x).mql.matches)}observe(P){const x=b(f(P)).map(E=>this._registerQuery(E).observable);let T=(0,g.combineLatest)(x);return T=(0,g.concat)(T.pipe((0,M.take)(1)),T.pipe((0,M.skip)(1),(0,M.debounceTime)(0))),T.pipe((0,M.map)(E=>{const w={matches:!1,breakpoints:{}};return E.forEach(({matches:U,query:L})=>{w.matches=w.matches||U,w.breakpoints[L]=U}),w}))}_registerQuery(P){if(this._queries.has(P))return this._queries.get(P);const k=this._mediaMatcher.matchMedia(P),T={observable:new g.Observable(E=>{const w=U=>this._zone.run(()=>E.next(U));return k.addListener(w),()=>{k.removeListener(w)}}).pipe((0,M.startWith)(k),(0,M.map)(({matches:E})=>({query:P,matches:E})),(0,M.takeUntil)(this._destroySubject)),mql:k};return this._queries.set(P,T),T}}return v=_,(0,u.A)(_,"\u0275fac",function(P){return new(P||v)}),(0,u.A)(_,"\u0275prov",h.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"})),_})();function b(v){return v.map(_=>_.split(",")).reduce((_,A)=>_.concat(A)).map(_=>_.trim())}},7854:(Ae,N,C)=>{C.d(N,{O:()=>g});var u=C(5506),h=C(5372);let g=(()=>{var M;class o{constructor(m,f){this.document=m,this.platformId=f,this.documentIsAccessible=(0,u.isPlatformBrowser)(this.platformId)}static getCookieRegExp(m){const f=m.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+f+"|;\\s*"+f+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(m){try{return decodeURIComponent(m)}catch(f){return m}}check(m){return!!this.documentIsAccessible&&(m=encodeURIComponent(m),o.getCookieRegExp(m).test(this.document.cookie))}get(m){if(this.check(m)){m=encodeURIComponent(m);const p=o.getCookieRegExp(m).exec(this.document.cookie);return null!=p&&p[1]?o.safeDecodeURIComponent(p[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const m={},f=this.document;return f.cookie&&""!==f.cookie&&f.cookie.split(";").forEach(p=>{const[y,j]=p.split("=");m[o.safeDecodeURIComponent(y.replace(/^ /,""))]=o.safeDecodeURIComponent(j)}),m}set(m,f,p,y,j,O,$,B){if(!this.documentIsAccessible)return;if("number"==typeof p||p instanceof Date||y||j||O||$)return void this.set(m,f,{expires:p,path:y,domain:j,secure:O,sameSite:$||"Lax",partitioned:B});let b=encodeURIComponent(m)+"="+encodeURIComponent(f)+";";const v=p||{};v.expires&&(b+="number"==typeof v.expires?"expires="+new Date((new Date).getTime()+1e3*v.expires*60*60*24).toUTCString()+";":"expires="+v.expires.toUTCString()+";"),v.path&&(b+="path="+v.path+";"),v.domain&&(b+="domain="+v.domain+";"),!1===v.secure&&"None"===v.sameSite&&(v.secure=!0,console.warn("[ngx-cookie-service] Cookie ".concat(m," was forced with secure flag because sameSite=None.")+"More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130")),v.secure&&(b+="secure;"),v.sameSite||(v.sameSite="Lax"),b+="sameSite="+v.sameSite+";",v.partitioned&&(b+="Partitioned;"),this.document.cookie=b}delete(m,f,p,y,j="Lax"){this.documentIsAccessible&&this.set(m,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:f,domain:p,secure:y,sameSite:j})}deleteAll(m,f,p,y="Lax"){if(!this.documentIsAccessible)return;const j=this.getAll();for(const O in j)j.hasOwnProperty(O)&&this.delete(O,m,f,p,y)}}return(M=o).\u0275fac=function(m){return new(m||M)(h.\u0275\u0275inject(h.DOCUMENT),h.\u0275\u0275inject(h.PLATFORM_ID))},M.\u0275prov=h.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"}),o})()},8133:(Ae,N,C)=>{C.r(N),C.d(N,{ABTestingPlatform:()=>k,APP_COMPONENT_REGISTRY:()=>Ue,AdobeTargetOfferService:()=>De,AdobeTargetResolverService:()=>v,AdobeTargetService:()=>le,AnalyticsInterface:()=>A,AnalyticsService:()=>Fe,AppOwner:()=>J,AppRoutesToken:()=>Tt,BreCmsConfigService:()=>oe,BreCmsSdkService:()=>_e,COMPONENT_REGISTRY:()=>Be,CmsComponentMappingsService:()=>V,CmsConfigToken:()=>x,CmsRouteDataResolverService:()=>Pe,CmsSdkService:()=>he,ComponentMappingsToken:()=>me,ComponentModuleResolverService:()=>ze,ComponentObserverService:()=>jt,ComponentTestService:()=>ne,ContentInsightsService:()=>Ee,ContentServiceProviderToken:()=>kt,CustomErrorHandler:()=>Rt,DomainToken:()=>Ot,DynamicDataHandler:()=>Vt,DynamicDataTag:()=>rt,DynamicTagTypes:()=>be,EnterpriseCoreModule:()=>lt,EnvironmentService:()=>ve,EventName:()=>ue,ExperimentationArticleFolder:()=>Mt,ExperimentationConfig:()=>_,ExperimentationFolder:()=>wt,ExperimentationInterface:()=>b,ExperimentationVendors:()=>Q,GaService:()=>Re,GeographicalDataService:()=>xe,GrvMapService:()=>At,GtagActionEnum:()=>Je,GtagEventActionEnum:()=>Ze,GtagEventCategoryEnum:()=>Ye,GtagEventLabelEnum:()=>Ge,GtagEventNameEnum:()=>Xe,InternalLinkService:()=>L,IsProductionDomain:()=>Le,LinkUtilityService:()=>bt,LobName:()=>Y,LocalStorageService:()=>Z,MaskingService:()=>Bt,MemoryCache:()=>T,NewRelicService:()=>w,OfferType:()=>B,OneTagAppId:()=>de,OneTagService:()=>Oe,OptimizelyService:()=>it,PERSONALIZATION_META_PREFIX:()=>He,PageDataService:()=>Dt,PageViewHistoryService:()=>We,PageViewPersonalizationService:()=>G,Personalization:()=>H,PersonalizationStrategyService:()=>re,QUERY_PARAM_EXTENDER:()=>xt,QueryParamStorageService:()=>Et,QueryParams:()=>tt,ResponsiveSizes:()=>z,RouteDataResolverService:()=>Ke,ScEventName:()=>P,SharedCmsConfigService:()=>K,SharedCmsIntegrationModule:()=>_t,SharedCmsSdkService:()=>q,TimeOfDay:()=>R,TimeOfDayPersonalizationService:()=>ee,TrailingSlashUrlSerializer:()=>qe,UIAction:()=>ke,VideoHelperService:()=>Lt,ViewportPersonalizationService:()=>ie,WcmSdkService:()=>Ft,constructComponent:()=>Ne,containsDynamicData:()=>ae,experimentationServiceFactory:()=>Nt,findComponentByName:()=>fe,getComponentAlternates:()=>pe,getComponentList:()=>X,getCtaText:()=>yt,getFormattedArticleTime:()=>Ct,nestedObject:()=>It,parseMetaData:()=>Pt,setComponentInputs:()=>
1zt,siteCmsRegExp:()=>U,substitute:()=>nt});var u=C(954),h=C(9204),g=C(7238),M={};for(const i in g)["default","ABTestingPlatform","APP_COMPONENT_REGISTRY","AdobeTargetOfferService","AdobeTargetResolverService","AdobeTargetService","AnalyticsInterface","AnalyticsService","AppOwner","AppRoutesToken","BreCmsConfigService","BreCmsSdkService","COMPONENT_REGISTRY","CmsComponentMappingsService","CmsConfigToken","CmsRouteDataResolverService","CmsSdkService","ComponentMappingsToken","ComponentModuleResolverService","ComponentObserverService","ComponentTestService","ContentInsightsService","ContentServiceProviderToken","CustomErrorHandler","DomainToken","DynamicDataHandler","DynamicDataTag","DynamicTagTypes","EnterpriseCoreModule","EnvironmentService","EventName","ExperimentationArticleFolder","ExperimentationConfig","ExperimentationFolder","ExperimentationInterface","ExperimentationVendors","GaService","GeographicalDataService","GrvMapService","GtagActionEnum","GtagEventActionEnum","GtagEventCategoryEnum","GtagEventLabelEnum","GtagEventNameEnum","InternalLinkService","IsProductionDomain","LinkUtilityService","LobName","LocalStorageService","MaskingService","MemoryCache","NewRelicService","OfferType","OneTagAppId","OneTagService","OptimizelyService","PERSONALIZATION_META_PREFIX","PageDataService","PageViewHistoryService","PageViewPersonalizationService","Personalization","PersonalizationStrategyService","QUERY_PARAM_EXTENDER","QueryParamStorageService","QueryParams","ResponsiveSizes","RouteDataResolverService","ScEventName","SharedCmsConfigService","SharedCmsIntegrationModule","SharedCmsSdkService","TimeOfDay","TimeOfDayPersonalizationService","TrailingSlashUrlSerializer","UIAction","VideoHelperService","ViewportPersonalizationService","WcmSdkService","constructComponent","containsDynamicData","experimentationServiceFactory","findComponentByName","getComponentAlternates","getComponentList","getCtaText","getFormattedArticleTime","nestedObject","parseMetaData","setComponentInputs","siteCmsRegExp","substitute"].indexOf(i)<0&&(M[i]=()=>g[i]);C.d(N,M);var o=C(5372),D=C(4118),m=C(8567),f=C(5506),p=C(8515),y=C(7428),j=C(5580),O=C(7854);const $={bank:"bank","cap-one-tech":"enterprise",commercial:"commercial","content-only":"enterprise",homepage:"enterprise","learn-grow":"enterprise",military:"enterprise",card:"card","money-and-life":"money-and-life",privacy:"privacy",software:"software",acquisition:"acquisition","dfs-card-smarts":"dfs-card-smarts",travel:"travel","personal-loans":"personal-loans","dfs-personal-loans":"dfs-personal-loans","dfs-enterprise":"enterprise"};var B=function(i){return i.componentLevelTest="componentLevelTest",i.cardSiteRoute="cardSiteRoute",i.pageLevelTest="pageLevelTest",i.featureLevelTest="featureLevelTest",i.sequoia="sequoia",i}(B||{});let b=(()=>{var i;class s{}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),v=(()=>{var i;class s{constructor(e,t){this.experimentationService=e,this.router=t}resolve(e,t){var r=this;return(0,h.A)(function*(){return r.router.events.pipe((0,m.first)(n=>n instanceof D.NavigationEnd)).subscribe(()=>r.experimentationService.getAndApplyOffers(t.url))})()}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(b),o.\u0275\u0275inject(D.Router))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();const _=new o.InjectionToken("experimentationConfig");let A=(()=>{var i;class s{}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();var P=function(i){return i.clickTracking="clickTracking",i.trackAnalytics="trackAnalytics",i.initMarketing="initMarketing",i}(P||{}),k=function(i){return i.AdobeTarget="Target",i.Optimizely="Optimizely",i}(k||{});const x=new o.InjectionToken("cmsConfigToken");class T{constructor(s=null){this.cacheLimit=s,this.storage=new Map}isCacheValid(s){return null==s||(new Date).getTime()<=s}get(s){const c=this.storage.get(s);if(c&&this.storage.has(s)&&this.isCacheValid(c.expiration))return c.value;this.delete(s)}has(s){const c=this.storage.get(s);return!!(c&&this.storage.has(s)&&this.isCacheValid(c.expiration))||(this.delete(s),!1)}set(s,c){this.storage.set(s,{expiration:this.cacheLimit?(new Date).getTime()+this.cacheLimit:null,value:c})}delete(s){this.storage.delete(s)}}const E=["credit-cards","small-business/credit-cards","bank","commercial","military","auto-financing","small-business-bank","tech","learn-grow","cars","page-not-found","privacy","homepage","software","about","digital","updates","shopping","accessibility","trade-credit","power-of-attorney","partnerships","coders","lounges","help-center","capital-one-cup","examples","investor","dfs-card-smarts","travel","personal-loans","estates","dfs-enterprise"];let w=(()=>{var i;class s{constructor(e,t){this.platformId=e,this.document=t,this.isBrowser=(0,f.isPlatformBrowser)(this.platformId),this.isServer=(0,f.isPlatformServer)(this.platformId),this.scriptTag=this.document.createElement("script"),this.initialInteraction={save:()=>this.initialInteraction,setName:()=>this.initialInteraction},this.newRelic={setCustomAttribute:()=>{},setPageViewName:()=>{},noticeError:()=>{},interaction:()=>this.initialInteraction,addPageAction:()=>{}},this.isBrowser&&window.newrelic&&(this.newRelic=window.newrelic),this.insertScriptTag()}setCustomAttribute(e,t){if(this.isBrowser)this.newRelic.setCustomAttribute(e,t);else if(this.isServer){const r=this.sanitize(e);let n=t;"string"==typeof t&&(n=this.sanitize(t));const a=this.scriptTag.innerHTML;this.scriptTag.innerHTML="".concat(a.substring(0,a.length-5),'nr.setCustomAttribute("').concat(r,'", "').concat(n,'");\n})();')}}setPageViewName(e,t){this.newRelic.setPageViewName(e,t)}noticeError(e,t){this.newRelic.noticeError(e,t)}addPageAction(e,t){this.newRelic.addPageAction(e,t)}insertScriptTag(){if(!this.isServer)return;this.scriptTag.setAttribute("type","text/javascript"),this.scriptTag.setAttribute("id","new-relic-updates"),this.scriptTag.innerHTML="(function(){ var nr = window.newrelic; if (nr == undefined || nr.setCustomAttribute == undefined) { return; }\n})();";const e=this.document.getElementById("new-relic-init");e&&e.insertAdjacentElement("afterend",this.scriptTag)}save(e){const t=this.newRelic.interaction();return e&&t.setName(e),t.save()}sanitize(e){return e.replace(/\"/g,""").replace(/\''/g,"'").replace(/'/g,"'").replace(/"/g,""")}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();const U=/^(\/site\/)(?!_cmsinternal\/)/;let L=(()=>{var i;class s{constructor(e,t,r,n){this.document=e,this.cmsConfig=t,this.httpClient=r,this.newrelic=n,this.headCache=new T,this.cmsInternalRegExp=/^site\/_cmsinternal\//}fileExists(e){if(this.headCache.has(e))return this.headCache.get(e);const t=new Promise(r=>{this.httpClient.head(e,{observe:"response"}).toPromise().then(a=>{r(200===(null==a?void 0:a.status))}).catch(a=>{404!==a.status&&this.newrelic.noticeError(a),r(!1)}).finally(()=>{this.headCache.delete(e)})});return this.headCache.set(e,t),t}removeHomepageChannelFromUrl(e){const t=this.extractRelativePath(e);return this.formatPath(t).startsWith("site/homepage")?e.replace("homepage/",""):e}extractHashFragment(e){return e.split(/[#]/)[0]}extractHashFragmentAndQueryParams(e){return e.split(/[?#]/)[0]}hasMatchingHost(e){return!this.isValidUrl(e)||e.includes(this.document.location.host)}extractRelativePath(e=""){if(this.isValidUrl(e)){const t=e.split(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);
1t[4]===this.document.location.host&&(e=[t[5],t[6],t[8]].filter(Boolean).join(""))}return e}isValidUrl(e){return/^(https?:\/\/)|([a-z\d]\.)+[a-z]{2,}/i.test(e)}stripLeadingAndTrailingSlash(e){return e.replace(/^\/|\/$/g,"")}convertUrlToPathToJson(e){let t=this.formatPath(e),r="";const n=-1===t.indexOf("/");this.cmsInternalRegExp.test(t)&&(r="_cmsinternal/",t=t.replace(this.cmsInternalRegExp,""));const a=this.removePreviewSuffix(t.split("/")[0]),l=n?"root":t.split("/").splice(1).join("/");return this.cmsConfig.useCache?"/assets/shell/page_models/".concat(a,"/resourceapi/").concat(l,".json"):"".concat(this.cmsConfig.live.scheme,"://").concat(this.cmsConfig.live.hostname,":").concat(this.cmsConfig.live.port,"/site/").concat(r).concat(a,"/resourceapi/").concat(l)}formatPath(e){const t=this.extractHashFragmentAndQueryParams(e);return this.stripLeadingAndTrailingSlash(t)}removeInternalPrefix(e){const t=this.extractRelativePath(e);return U.test(t)?t.substring(5):e}removePreviewSuffix(e){const t=this.cmsConfig.live.previewSuffix;if(void 0!==t&&0===t.length)return e;const r=this.extractRelativePath(e);return r.startsWith("/"+this.cmsConfig.live.channelPath)?r.replace(t,""):e}isException(e){const t=this.extractRelativePath(e),r=this.removeInternalPrefix(t),n=this.formatPath(r);return E.some(a=>n.startsWith(a))}isInternalLink(e){var t=this;return(0,h.A)(function*(){if(e&&t.hasMatchingHost(e)){const r=t.extractRelativePath(e);if(t.isException(r))return!1;if(U.test(r))return!0;const n=t.convertUrlToPathToJson(r);if(yield t.fileExists(n))return!0}return!1})()}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(x),o.\u0275\u0275inject(y.HttpClient),o.\u0275\u0275inject(w))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),De=(()=>{var i;class s{constructor(e){this.newrelic=e}getComponentOffers(e){return this.getJsonOffers(e).content.filter(r=>Object.keys(r).includes(B.componentLevelTest)).flatMap(r=>{var n;return null!==(n=r.componentLevelTest)&&void 0!==n&&n.components?this.transformComponents(r.componentLevelTest.components,r.componentLevelTest.meta?r.componentLevelTest.meta:""):r.componentLevelTest?r.componentLevelTest:void 0})}transformComponents(e,t){return Array.isArray(e)?e.map(r=>({meta:t,name:r.name,variant:r.variant})):(this.newrelic.noticeError("Invalid AB test components: ".concat(JSON.stringify(e))),[])}getPageTests(e){const t=this.getJsonOffers(e);return this.parsePageOffers(t)||this.parseCardPageOffers(t)||this.parseOldPageOffers(t)}parseOldPageOffers(e){var t;const r=e.content.find(n=>{var a;return null===(a=n.sequoia)||void 0===a?void 0:a.page});return(null==r||null===(t=r.sequoia)||void 0===t?void 0:t.page)||null}parsePageOffers(e){const t=e.content.find(r=>r.pageLevelTest);return(null==t?void 0:t.pageLevelTest)||null}parseCardPageOffers(e){const t=e.content.find(r=>r.cardSiteRoute);return(null==t?void 0:t.cardSiteRoute)||null}getFeatureLevelTest(e){return this.getJsonOffers(e).content.filter(r=>Object.keys(r).includes(B.featureLevelTest)).flatMap(r=>r.featureLevelTest)}getJsonOffers(e){const t=e.find(r=>"setJson"===r.action);return this.parseJsonOffers(t)}getAllJsonOffers(e){return e.filter(t=>"setJson"===t.action).map(t=>this.parseJsonOffers(t))}parseJsonOffers(e){const t=Object.assign({content:[]},e);return Array.isArray(t.content)||(t.content=[]),t}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(w))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();const je="target-global-mbox",Te={loading:!1,offers:null};let le=(()=>{var i;class s{get adobeTarget(){return this.isBrowser&&this.enableTests()&&window.adobe?adobe.target:null}constructor(e,t,r,n,a){this.platformId=e,this.document=t,this.newrelic=r,this.offerService=n,this.expConfig=a,this.isBrowser=(0,f.isPlatformBrowser)(this.platformId),this.testData=this.isBrowser?(0,p.fromEvent)(this.document,"siteTestDataReady").pipe((0,m.map)(l=>l.detail.siteTestData)):p.NEVER,this.pageUrl="",this.pageOffers=new Promise(()=>{}),this.analyticsServ=(0,o.inject)(A),this.isBrowser&&!this.enableTests()&&console.log("Adobe Target disabled for localhost. Add query string \"at_preview_token\" to enable. In chrome dev c
1onsole location.search += 'at_preview_token'"),this.prerenderExpConfig(),this.analyticsServ.activeABTestingPlatform=k.AdobeTarget}getAndApplyOffers(e){var t=this;return(0,h.A)(function*(){const r=yield t.getPageOffers(e);t.isBrowser&&t.document.querySelector&&t.document.querySelectorAll(".exp-min-height").forEach(n=>{n.classList.remove("exp-min-height")}),null!==r&&null!==t.adobeTarget&&(t.adobeTarget.applyOffer({mbox:je,offer:r}),t.clearGlobalData())})()}checkForInvalidTests(e){var t=this;return(0,h.A)(function*(){const r=yield t.getPageOffers(e);if(!r)return;const n=r.map(d=>JSON.parse(JSON.stringify(d))),a=[];t.offerService.getAllJsonOffers(n).forEach(d=>{d.content.forEach((S={})=>{const I=t.removeValidTests(S);Object.keys(I).length&&a.push(I)})}),a.length&&t.newrelic.noticeError("Contains Invalid AB Test: ".concat(JSON.stringify(a)))})()}removeValidTests(e){var t,r,n,a;return(Array.isArray(null==e?void 0:e.componentLevelTest)||Array.isArray(null==e||null===(t=e.componentLevelTest)||void 0===t?void 0:t.components))&&delete e.componentLevelTest,null!=e&&null!==(r=e.sequoia)&&void 0!==r&&r.page&&delete e.sequoia,null!=e&&null!==(n=e.pageLevelTest)&&void 0!==n&&n.page&&delete e.pageLevelTest,null!=e&&null!==(a=e.cardSiteRoute)&&void 0!==a&&a.route&&delete e.cardSiteRoute,e}getTestUrl(e){var t=this;return(0,h.A)(function*(){const r=yield t.getPageOffers(e),n=L.prototype.extractHashFragmentAndQueryParams(e),a=r?t.offerService.getPageTests(r):{};return a&&(a.page||a.route||a[n])||e})()}getComponentTests(e){var t=this;return(0,h.A)(function*(){const r=yield t.getPageOffers(e);if(!r)return[];const n=t.offerService.getComponentOffers(r),a=new Set;return Array.isArray(n)?n.filter(l=>null!=l&&l.name?!a.has(l.name)&&(a.add(l.name),!0):(t.newrelic.noticeError("Component test is missing name: ".concat(JSON.stringify(l))),!1)):[]})()}getPageOffers(e){return this.pageUrl!==e&&(this.pageUrl=e,this.pageOffers=this.getOffers()),this.pageOffers}getOffers(){return this.adobeTarget?new Promise((e,t)=>{const r=window._sequoia&&window._sequoia.target?window._sequoia.target:Te;r.loading?(window.addEventListener("targetResolved",()=>{e(r.offers)}),window.addEventListener("targetRejected",()=>{e(null)})):r.offers?e(r.offers):this.fetchOffers(l=>{e(l)},(l,d)=>{this.newrelic.noticeError("Adobe Target GetOffer failed on ".concat(l," error: ").concat(d)),e(null)})}):(this.newrelic.noticeError("Adobe Target SDK not loaded"),Promise.resolve(null))}fetchOffers(e,t){const r={mbox:je,success:e,timeout:2e3,error:t};this.expConfig&&(r.params=this.expConfig),this.adobeTarget.getOffer(r)}prerenderExpConfig(){if(!this.isBrowser&&this.expConfig){const t=this.document.querySelector("#adobe-target-init"),r=this.document.createElement("script");var e;r.id="adobe-target-config",r.text=" function targetPageParams() {\n return ".concat(JSON.stringify(this.expConfig),";\n }\n "),t&&(null===(e=t.previousSibling)||void 0===e||e.after(r))}}clearGlobalData(){window._sequoia.target=Te}enableTests(){const e=this.document.location;return"localhost"!==e.hostname||"localhost"===e.hostname&&e.search.indexOf("at_preview_token")>0}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(w),o.\u0275\u0275inject(De),o.\u0275\u0275inject(_,8))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();const J=new o.InjectionToken("appOwnerToken"),Y=new o.InjectionToken("LobName"),de=new o.InjectionToken("oneTagAppId");let Oe=(()=>{var i;class s{constructor(e,t){this.platformId=e,this.appId=t,this.isBrowser=(0,f.isPlatformBrowser)(this.platformId),this.updateAppId(t)}canUpdateAppId(e){return this.isBrowser&&e&&window.oneTagConfig}updateAppId(e){this.canUpdateAppId(e)&&(window.oneTagConfig.app_id=e)}publishEvent(e,t){try{this.isBrowser&&window.oneTag.track(e,t)}catch(r){console.error("Error publishing to OneTag: "+r)}}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(de,8))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();var ue=function(i){return i.view="view",i.link="link",i}(ue||{}),ke=function(i){return i.click="click",i.linkClick="link_click",i.navigationClick="navigation_click",i.toggleClick="toggle_click",i.change="change",i.focus="focus",i.tooltip="tooltip",i}(ke||{});let ot=(()=>{var i;class s{constructor(e,t=""){this.document=e,this.appOwner=t,this._areLevelsWithDefaultsSet=!1,this._pageLevels={page_level_1:"",page_level_2:"",page_level_3:"",page_level_4:"",page_level_5:""},this._pageLevelsWithDefaults={page_level_1:"",page_level_2:"",page_level_3:"",page_level_4:"",page_level_5:""}}get defaultPageLevels(){const e=this.strippedPathname.split("/");return{page_level_1:this.appOwner||"enterprise",page_level_2:e[0]||"",page_level_3:this.isArticle?"article":"composed",page_level_4:e.length>1?e[e.length-1]:"",page_level_5:""}}get pageLevels(){return this._pageLevels}set pageLevels(e){e.page_level_1?(this._pageLevels.page_level_1=e.page_level_1,this._pageLevels.page_level_2=e.page_level_2,this._pageLevels.page_level_3=e.page_level_3,this._pageLevels.page_level_4=e.page_level_4,this._pageLevels.page_level_5=e.page_level_5):(this._pageLevels.page_level_1=e.level1,this._pageLevels.page_level_2=e.level2,this._pageLevels.page_level_3=e.level3,this._pageLevels.page_level_4=e.level4,this._pageLevels.page_level_5=e.level5)}get areLevelsWithDefaultsSet(){return this._areLevelsWithDefaultsSet}set areLevelsWithDefaultsSet(e){this._areLevelsWithDefaultsSet=e}get pageLevelsWithDefaults(){return this._pageLevelsWithDefaults}set pageLevelsWithDefaults(e){this.areLevelsWithDefaultsSet=!0,e.page_level_1?(this._pageLevelsWithDefaults.page_level_1=e.page_level_1,this._pageLevelsWithDefaults.page_level_2=e.page_level_2,this._pageLevelsWithDefaults.page_level_3=e.page_level_3,this._pageLevelsWithDefaults.page_level_4=e.page_level_4,this._pageLevelsWithDefaults.page_level_5=e.page_level_5):(this._pageLevelsWithDefaults.page_level_1=e.level1,this._pageLevelsWithDefaults.page_level_2=e.level2,this._pageLevelsWithDefaults.page_level_3=e.level3,this._pageLevelsWithDefaults.page_level_4=e.level4,this._pageLevelsWithDefaults.page_level_5=e.level5)}getPageLevelsConcat(e){return Object.entries(e).filter(([r,n])=>(r.includes("page_level")||r.includes("level"))&&""!==n).map(([,r])=>r).join(":")}get strippedPathname(){return this.document.location.pathname.replace(/^\/|\/$/g,"")}get isArticle(){var e,t;return"article"===(null!==(e=null===(t=this.component)||void 0===t||null===(t=t.routeData)||void 0===t?void 0:t.name)&&void 0!==e?e:null)}get component(){return this._component}set component(e){this._component=e}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(J,8))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),xe=(()=>{var i;class s{constructor(e){var t,r;this.platformId=e,this.isBrowser=(0,f.isPlatformBrowser)(e),this.geoVars=this.isBrowser&&null!==(t=null===(r=window)||void 0===r||null===(r=r.c1GeoVars)||void 0===r?void 0:r.geoInfo)&&void 0!==t?t:{}}get countryCode(){var e,t;return(null!==(e=null===(t=this.geoVars)||void 0===t?void 0:t.country_code)&&void 0!==e?e:"us").toLowerCase()}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();var z=function(i){return i[i.ExtraSmall=368]="ExtraSmall",i[i.Small=599]="Small",i[i.Medium=767]="Medium",i[i.MediumLarge=1024]="MediumLarge",i[i.Large=1199]="Large",i[i.ExtraLarge=1919]="ExtraLarge",i[i.LargeDisplay=9999]="LargeDisplay",i}(z||{});const st={environment:"prod"},Le=new o.InjectionToken("IsProductionDomain");let ve=(()=>{var i;class s{constructor(e,t,r,n,a){this.document=e,this.http=t,this.platformId=r,this.nodeIsProduction=n,this.isProductionDomain=a,this.environment={environment:""}}getEnvironment(){return this.environment}load(){var e=this;return(0,h.A)(function*(){if(e.isProduction())return e.environment=st,Promise.resolve();const t=(0,f.isPlatformServer)(e.platformId)||-1===window.location.hostname.indexOf("chariotwcmspa")?"/":"";try{const r=e.http.get("".concat(t,"assets/shell/environments/environment.qa.json")),n=yield(0,p.lastValueFrom)(r);e.environment=n}catch(r){}})()}isProduction(){return(0,f.isPlatformServer)(this.platformId)?this.nodeIsProduction:this.isProductionDomain}getAppVersionId(){return this.document.body.getAttribute("data-build-sha")}getCoreVersion(){return this.document.body.getAttribute("data-core")}getTimestamp(){return this.document.body.getAttribute("data-build-ts")}getCurrentDomain(){const{hostname:e}=this.document.location,[t,r]=e.split(".").reverse();return"".concat(r,".").concat(t)}isLocal(){const{hostname:t}=this.document.location;return/localhost/.test(t)}isPreview(){const{hostname:t}=this.document.location;return/\.cloud(dqt)?\.capitalone\.com$/.test(t)}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(y.HttpClient),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject("nodeIsProduction",8),o.\u0275\u0275inject(Le))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),Re=(()=>{var i;class s{constructor(e,t,r){this.platformId=e,this.document=t,this.environmentService=r,this.isBrowser=(0,f.isPlatformBrowser)(this.platformId)}getGaData(){let e={};return this.isBrowser&&(e={salesforce_marketing_cloud_id:this.getSfmcId(),cms_and_site_version:this.getCommitSha(),responsive_breakpoint:this.document.documentElement.clientWidth,domain_user_device_id:this.getCookie("C1_UDID")}),e}getSfmcId(){if(this.document.URL){const e=new URL(this.document.URL).searchParams.get("sfmc_id");if(e)return e}}getCommitSha(){return this.environmentService.getAppVersionId()||void 0}getViewportSize(){const e=this.document.documentElement.clientWidth;return e<=z.ExtraSmall?"extra small":e<=z.Small?"small":e<=z.Medium?"medium":e<=z.MediumLarge?"medium large":e<=z.Large?"large":e<=z.ExtraLarge?"extra large":"large display"}getCookie(e){const r=this.document.cookie.split("; ").find(n=>n.startsWith("".concat(e,"=")));if(r)return r.split("=")[1]}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(ve))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),Ee=(()=>{var i;class s{constructor(e,t){this.pageModelService=e,this.nrService=t}get insights(){const e=[],t=[];
1return[...new Set(this.extractInsights())].forEach(n=>{const a=n.split(",");e.push(a[0]),t.push(a[1])}),{contentId:this.contentId,contentMetadataId:e.join(","),contentMetadataName:t.join(",")}}get contentId(){try{var e,t,r;const n=this.pageModelService.getPageModel(),a=null===(e=n.page)||void 0===e||null===(e=e.components)||void 0===e?void 0:e.find(F=>"Page Content"===F.label),l=null===(t=n.page)||void 0===t||null===(t=t.components)||void 0===t?void 0:t.find(F=>"main"===F.name),d=null==l||null===(r=l.components)||void 0===r?void 0:r.find(F=>"Article Detail"===F.label);return this.pageModelService.getContentViaReference((a||d).models.document.$ref).id}catch(n){return this.nrService.noticeError("Content Insights: Unable to get content ID",n),""}}extractInsights(){var e;let t=[];const r=null===(e=this.pageModelService.getPageModel())||void 0===e?void 0:e.content;return r&&Object.values(r).forEach(n=>{var a;null!==(a=n.keys)&&void 0!==a&&a.length&&(t=t.concat(n.keys))}),t}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(g.PageModelService),o.\u0275\u0275inject(w))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),Fe=(()=>{var i;class s{constructor(e,t,r,n,a="",l,d,S){this.platformId=e,this.document=t,this.geoVarsService=r,this.gaService=n,this.appOwner=a,this.appId=l,this.lobName=d,this.contentInsightsService=S,this.activeABTestingPlatform=k.AdobeTarget,this.pageLevelsService=(0,o.inject)(ot),this.oneTagService=(0,o.inject)(Oe),this.oneTagService.updateAppId(l),this.isBrowser=(0,f.isPlatformBrowser)(this.platformId),this._activeComponentTests={components:null,recipe:null}}get component(){return this.pageLevelsService.component}set component(e){this.pageLevelsService.component=e}get activeComponentTests(){return this._activeComponentTests}set activeComponentTests(e){this._activeComponentTests=e}get pageLevels(){return this.pageLevelsService.pageLevels}set pageLevels(e){this.pageLevelsService.pageLevels=e}get areLevelsWithDefaultsSet(){return this.pageLevelsService.areLevelsWithDefaultsSet}get pageLevelsWithDefaults(){return this.pageLevelsService.pageLevelsWithDefaults}set pageLevelsWithDefaults(e){this.pageLevelsService.pageLevelsWithDefaults=e}getPageLevelsConcat(e){return this.pageLevelsService.getPageLevelsConcat(e)}get gaData(){return this.gaService.getGaData()}getPageViewDataObj(e,t,r){return this.pageLevelsWithDefaults=this.getPageLevelsWithDefaults(t),(0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)({event_name:"page_view",page_language:(null==t?void 0:t.language)||"english",site_country:this.geoVarsService.countryCode,propensity_score_upmarket:this.propensityScore,twenty_group:this.twentyGroup,twenty_five_group:this.twentyFiveGroup,page_title:this.getPageLevelsConcat(this.pageLevelsWithDefaults)},this.pageLevelsWithDefaults),this.getDeviceType(e)),this.aBTestData),this.gaData),r)}publishPageViewEvent(e,t,r){const n=this.getPageViewDataObj(e,t,r);return this.publishEvent(ue.view,n)}publishEvent(e,t){t=Object.assign({},t,{lob_identifier:this.getLobName}),this.oneTagService.publishEvent(e,t)}publishTrackedEvent(e,t){if(this.areLevelsWithDefaultsSet){const n=this.getPageLevelsConcat(this.pageLevelsWithDefaults);t.page_title=n}const r=this.getPageLevelsConcat(this.pageLevels);r&&(t.full_clickstream_path="".concat(r,":").concat(t.full_clickstream_path)),this.publishEvent(e,t)}getMetadataFields(e,t=null){var r;return this.pageLevels=e,{levelFields:(0,u.A)((0,u.A)({},this.pageLevels),{},{language:null!==(r=null==e?void 0:e.language)&&void 0!==r?r:"english"}),contextFields:this.getContextData(t)}}getPageLevelsWithDefaults(e){const t=this.pageLevelsService.defaultPageLevels;return e.level1?{level1:e.level1||t.page_level_1,level2:e.level2||t.page_level_2,level3:e.level3||t.page_level_3,level4:e.level4||t.page_level_4,level5:e.level5||t.page_level_5}:{level1:e.page_level_1||t.page_level_1,level2:e.page_level_2||t.page_level_2,level3:e.page_level_3||t.page_level_3,level4:e.page_level_4||t.page_level_4,level5:e.page_level_5||t.page_level_5}}getDeviceType(e){let t={};return e&&e.deviceInfo&&""!==e.deviceInfo.type&&(t={device_type:e.deviceInfo.type}),t}get aBTestData(){const e={ab_testing:[this.siteTestData]},t=this.generateABTestData();var r;return t&&(null===(r=e.ab_testing)||void 0===r||r.push(t)),e}generateABTestData(){const{components:e,recipe:t}=this._activeComponentTests,r=e||[];if(0===r.length)return null;const n=[],a=[];return r.forEach(l=>{null!=l&&l.variant&&n.push(l.variant),null!=l&&l.name&&a.push(l.name)}),{ab_testing_platform:this.activeABTestingPlatform,ab_testing_id:n.join("|"),ab_testing_name:a.join("|"),ab_testing_component_level_test:t||""}}get siteTestData(){const e=[],t=[],r=[],n=[];return this.isBrowser&&window.siteTestData&&window.siteTestData.forEach(({campaign:a,campaignId:l,experience:d,experienceId:S})=>{e.push(l),t.push(a),r.push("".concat(l,":").concat(S)),n.push("".concat(a,":").concat(l,":").concat(d,":").concat(S))}),{ab_testing_id:e.join("|"),ab_testing_name:t.join("|"),ab_testing_adobe_tnt:r.join("|"),ab_testing_akamai_test:n.join("|"),ab_testing_platform:this.activeABTestingPlatform}}get getLobName(){var e;return this.lobName||(null===(e=this.pageLevels)||void 0===e?void 0:e.page_level_1)||this.appOwner||void 0}getContextData(e){return null===e?e:{page_metadata_strategy_abstracted_code:this.getMetaInfo("strategy",e.metadata),page_metadata_intent_abstracted_code:this.getMetaInfo("intent",e.metadata),page_metadata_category_abstracted_code:this.buildCompositeFields("primaryCategory","secondaryCategory",e.metadata),page_metadata_topic_abstracted_code:this.buildCompositeFields("primaryTopics","secondaryTopics",e.metadata),page_metadata_content_type_abstracted_code:this.getMetaInfo("contentType",e.metadata),page_metadata_audience_abstracted_code:this.getMetaInfo("audience",e.metadata),page_metadata_producer_abstracted_code:this.getMetaInfo("producer",e.metadata),page_metadata_product_abstracted_code:this.getMetaInfo("product",e.metadata),page_metadata_author:e.author?"true":"N/A",page_metadata_keyword:e.metaKeywords?"true":"N/A",page_metadata_use_keyword:e.keywordDriven?"true":"N/A"}}buildCompositeFields(e,t,r){let n=this.getMetaInfo(e,r);return""!==this.getMetaInfo(t,r)&&(n+="|"+this.getMetaInfo(t,r)),n}getMetaInfo(e,t){let r="";return t.forEach((n,a,l)=>{n.key===e&&null!==n.value&&n.value.forEach(S=>{r+=S.code+"|"}),r=this.removeStringEndPipe(r)}),r}removeStringEndPipe(e){for(let t=e.length-1;t>=0&&"|"===e.slice(-1);t--)e=e.substring(0,e.length-1);return e}get twentyGroup(){var e;if(!this.isBrowser)return;const t=window.siteTestData;return null==t||null===(e=t[0])||void 0===e||null===(e=e.profile)||void 0===e?void 0:e.TwentyGroup}get twentyFiveGroup(){var e;if(!this.isBrowser)return;const t=window.siteTestData;return null==t||null===(e=t[0])||void 0===e||null===(e=e.profile)||void 0===e?void 0:e.TwentyFiveGroup}get propensityScore(){var e;if(!this.isBrowser)return;const t=window.siteTestData;return null==t||null===(e=t[0])||void 0===e||null===(e=e.details)||void 0===e?void 0:e.VIP_ntile_bucket}videoPlayerStateChange(e){}videoPlayerNavigateAway(e){}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(xe),o.\u0275\u0275inject(Re),o.\u0275\u0275inject(J,8),o.\u0275\u0275inject(de,8),o.\u0275\u0275inject(Y,8),o.\u0275\u0275inject(Ee,8))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),V=(()=>{var i;class s{constructor(){this._componentMappings={},this._sharedComponentMappings={}}getSharedComponentMappings(){return this._sharedComponentMappings}getComponentMappings(){return(0,u.A)((0,u.A)({},this._componentMappings),this._sharedComponentMappings)}setComponentMappings(e){Object.entries(e).forEach(([t,r])=>{this.isSharedComponent(r)?this._sharedComponentMappings[t]=r:this._componentMappings[t]=r})}getMappedComponent(e){return this.getComponentMappings()[e]}
1getMappedSharedComponent(e){return this.getSharedComponentMappings()[e]}isSharedComponent(e){return e.\u0275cmp.selectors[0][0].startsWith("shared")}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),he=(()=>{var i;class s{constructor(e,t,r,n,a,l,d,S){this.initializeSdkService=e,this.apiUrlsService=t,this.requestContextService=r,this.componentMappingsService=n,this.pageModelService=a,this.internalLinkService=l,this.document=d,this.platformId=S,this.contentCache=new T,this.isBrowser=(0,f.isPlatformBrowser)(this.platformId)}fetchRouteData(e,t,r,n){let a;const l=e;if(n){t.live=t.live||{},e=this.internalLinkService.extractHashFragmentAndQueryParams(e);const d=null!=t&&t.useRootPath?"/":"/".concat(t.live.channelPath,"/");e="/"===e||e===d?"/root.json":e.replace(d,"/").replace(/\/$/,"")+".json",a={live:{scheme:this.document.location.protocol.replace(":",""),hostname:this.document.location.hostname,port:parseInt(this.document.location.port)||443,channelPath:t.live.channelPath,contextPath:t.live.contextPath},useRootPath:null==t?void 0:t.useRootPath}}else a=t;if(this.apiUrlsService.setApiUrls(a),this.requestContextService.parseUrlPath(e),this.componentMappingsService.setComponentMappings(r),this.initializeSdkService.initialize({initializePageModel:!1,initializeRouterEvents:!1}),n&&this.contentCache.has(l)){const d=this.contentCache.get(l);return this.pageModelService.setPageModel(d),Promise.resolve((0,g.getComponentConfiguration)("",d))}return this.pageModelService.fetchPageModel().toPromise().then(d=>(d=this.updateAssetsPaths(n,this.apiUrlsService.getApiUrls(),d),d=this.removePreviewPaths(n,this.apiUrlsService.getApiUrls(),d),this.contentCache.set(l,d),this.pageModelService.setPageModel(d),this.isBrowser&&clearTimeout(window.entShellTimeout),(0,g.getComponentConfiguration)("",d)))}updateAssetsPaths(e,t,r){if(this.isBrowser&&!e&&this.document.location.origin!==t.live.baseUrl&&r){let a=JSON.stringify(r);return a=a.replace(/("|')\/site\/binaries\//gi,"$1".concat(t.live.baseUrl,"/site/binaries/")),JSON.parse(a)}return r}removePreviewPaths(e,t,r){const{baseUrl:n,previewSuffix:a}=t.live;if(this.isBrowser&&!e&&this.document.location.origin!==n&&r&&a&&a.length){const d=new RegExp("(\"|')/site/([a-z-]+)".concat(a,"/"),"ig");let S=JSON.stringify(r);return S=S.replace(d,I=>I.replace(a,"")),JSON.parse(S)}return r}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(g.InitializeSdkService),o.\u0275\u0275inject(g.ApiUrlsService),o.\u0275\u0275inject(g.RequestContextService),o.\u0275\u0275inject(V),o.\u0275\u0275inject(g.PageModelService),o.\u0275\u0275inject(L),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(o.PLATFORM_ID))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();const Be=new o.InjectionToken("component-registry"),Ue=new o.InjectionToken("app-component-registry");let ze=(()=>{var i;class s{constructor(e,t,r,n,a){this.pageModelService=e,this.breMappingsService=t,this.newRelic=r,this.sharedCompModulePaths=n,this.appCompModulePaths=a,this.componentModulePaths=void 0!==a?(0,u.A)((0,u.A)({},n),a):n}resolve(){var e=this;return(0,h.A)(function*(){const t=yield(0,p.firstValueFrom)(e.pageModelService.pageModelSubject.pipe((0,p.filter)(n=>null==n?void 0:n.page)));if(null==t||!t.page)return[];const r=e.getPageComponentList(t.page);return Promise.all(r.map(n=>{var a;const l=(null===(a=n._meta.paramsInfo)||void 0===a?void 0:a.layout)||"default";return e.loadModule(n.label,l)}))})()}loadModule(e,t){var r=this;return(0,h.A)(function*(){if(e in r.componentModulePaths)try{const n=yield r.componentModulePaths[e].importModule(t);if(n.componentMapping){const a=n.componentMapping[e];r.registerComponent({[e]:a})}else if(n.\u0275cmp){const a=n;r.registerComponent({["".concat(e,": ").concat(t)]:a})}else r.registerComponentLegacy(n)}catch(n){r.newRelic.noticeError("Component module load failed",n)}})()}getPageComponentList(e){return((null==e?void 0:e.components)||[]).reduce((t,{components:r})=>t.concat(r||[]),[])}registerComponent(e){this.breMappingsService.setComponentMappings(Object.assign({},this.breMappingsService.getComponentMappings(),e))}registerComponentLegacy(e){const t=(0,o.createNgModule)(e),r=this.breMappingsService.getComponentMappings();return this.breMappingsService.setComponentMappings((0,u.A)((0,u.A)({},r),null==t?void 0:t.instance.constructor.\u0275inj.providers.filter(n=>{var a;return"componentMappings"===(null==n||null===(a=n.provide)||void 0===a?void 0:a._desc)})[0].useValue)),t}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(g.PageModelService),o.\u0275\u0275inject(V),o.\u0275\u0275inject(w),o.\u
10275\u0275inject(Be),o.\u0275\u0275inject(Ue,8))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();function X(i){var s,c,e;null!==(s=i)&&void 0!==s&&s.page&&(i=null===(e=i)||void 0===e?void 0:e.page);const r=((null===(c=i)||void 0===c?void 0:c.components)||[]).find(a=>"CONTAINER_COMPONENT"===a.type&&"Main Container"===a.label);return(null==r?void 0:r.components)||[]}function pe(i){var s,c;return null!==(s=null==i||null===(c=i.models)||void 0===c?void 0:c.alternates)&&void 0!==s?s:[]}function fe(i,s){return i.find(c=>c.name===s)}function Ne(i,s,c){const e={models:(0,u.A)({},Ve(c,s)),_meta:{params:s,paramsInfo:(0,u.A)((0,u.A)({},ct(s)),{},{variantID:s.variantId})}};return Object.assign({},i,e)}function ct(i){return Object.entries(i).reduce((s,[c,e])=>{if("off"===e)s[c]=!1;else if("on"===e)s[c]=!0;else{if("document"===c)return s;s[c]=e}return s},{})}function Ve(i,s){return Object.entries(s).reduce((c,[e,t])=>(c[e]=["document","contentList","list","featuredArticle"].includes(e)?(0,u.A)((0,u.A)({},t),Ve(i,$e(i,t))):"documents"===e&&t?t.reduce((r,n)=>(r.push((0,u.A)((0,u.A)({},n),$e(i,n))),r),[]):t,c),{})}function $e(i,s){return s.$ref.split("/").reduce((c,e)=>e?null==c?void 0:c[e]:i,i)}let Z=(()=>{var i;class s{constructor(e,t){if(this.platformId=e,this.newRelic=t,this.cacheDuration=864e5,this.storagePrefix="enterprise",(0,f.isPlatformBrowser)(this.platformId))try{this.storage=window.localStorage}catch(r){}}createCache(e,t){if(!this.storage)return;const r=Date.now(),n=r+this.cacheDuration,a="".concat(this.storagePrefix,".").concat(e),l=this.generateCacheObj(t,r,r,n);this.storage.setItem(a,JSON.stringify(l))}cacheExists(e){var t;const r="".concat(this.storagePrefix,".").concat(e);return!(null===(t=this.storage)||void 0===t||!t.getItem(r))}cacheIsValid(e){var t;const r="".concat(this.storagePrefix,".").concat(e),n=null===(t=this.storage)||void 0===t?void 0:t.getItem(r);return!(!n||"string"!=typeof n)&&JSON.parse(n).expires>Date.now()}getExistingCache(e){var t;const r="".concat(this.storagePrefix,".").concat(e),n=null===(t=this.storage)||void 0===t?void 0:t.getItem(r);try{return n?JSON.parse(n):null}catch(a){return this.newRelic.noticeError("Unable to parse JSON string: ".concat(n)),console.warn(a),null}}updateCache(e,t,r){if(!this.storage)return;const n=Date.now(),a=n+this.cacheDuration;if(this.cacheExists(e)){const l=this.getExistingCache(e),d="".concat(this.storagePrefix,".").concat(e),S=this.generateCacheObj(t,r?n:l.created,n,r?a:l.expires);this.storage.setItem(d,JSON.stringify(S))}else this.createCache(e,t)}deleteExpired(e){if(!this.storage)return;const t=Date.now(),r="".concat(this.storagePrefix,".").concat(e),n=this.getExistingCache(e);n&&n.expires<=t&&this.storage.removeItem(r)}generateCacheObj(e,t,r,n){return{created:t,accessed:r,expires:n,value:e}}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(w))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),We=(()=>{var i;class s{constructor(e,t,r){this.localStorageService=e,this.platformId=t,this.document=r,this.storageKey="page_view_history",this.durationDays=30}get pageViewHistory(){var e;const t=null===(e=this.localStorageService.getExistingCache(this.storageKey))||void 0===e?void 0:e.value,r=t?JSON.parse(t):{};return this.removeExpiredPageViews(r)}set pageViewHistory(e){const t=this.removeExpiredPageViews(e);this.localStorageService.updateCache(this.storageKey,JSON.stringify(t),!0)}trackRoute(){if((0,f.isPlatformServer)(this.platformId))return;const{pathname:e,search:t}=this.document.location;this.pageViewHistory=(0,u.A)((0,u.A)({},this.pageViewHistory),{},{[e+t]:Date.now()})}getPageViews(e){const t=e&&e>=0?this.filterPageViewsByWindow(this.pageViewHistory,e):this.pageViewHistory;return Object.entries(t).sort(([,r],[,n])=>n-r).map(([r])=>r)}removeExpiredPageViews(e){return this.filterPageViewsByWindow(e,this.durationDays)}filterPageViewsByWindow(e,t){const r=1e3*t*60*60*24,n=Date.now();return Object.entries(e).reduce((a,[l,d])=>(n-d<r&&(a[l]=d),a),{})}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(Z),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),G=(()=>{var i;class s{constructor(e){this.pageViewHistoryService=e,this.pageViewHistoryWindow=14}getPersonalization(e){const t=this.formatRoutes(this.pageViewHistoryService.getPageViews(this.pageViewHistoryWindow)),r=e.reduce((n,a)=>(0,u.A)((0,u.A)({},n),{},{[a.characteristicValue]:a}),{});for(const n of t){const a=r[n];if(a)return a}}formatRoutes(e){return e.map(t=>t.toLowerCase().replace(/[^a-z0-9]/g,""))}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(We))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();var H=function(i){return i.PageViews="pageviews",i.TimeOfDay="time",i.Viewportsize="viewportsize",i}(H||{}),R=function(i){return i.EarlyMorning="earlymorning",i.Morning="morning",i.Midday="midday",i.EarlyAfternoon="earlyafternoon",i.LateAfternoon="lateafternoon",i.EarlyEvening="earlyevening",i.LateEvening="lateevening",i.Night="night",i}(R||{});let ee=(()=>{var i;class s{get timeOfDay(){const e=(new Date).getHours();return e>=7&&e<9?R.EarlyMorning:e>=9&&e<11?R.Morning:e>=11&&e<13?R.Midday:e>=13&&e<15?R.EarlyAfternoon:e>=15&&e<17?R.LateAfternoon:e>=17&&e<19?R.EarlyEvening:e>=19&&e<21?R.LateEvening:R.Night}getPersonalization(e){const t=this.timeOfDay;return e.find(r=>r.characteristicValue===t)}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();var te=function(i){return i.Mobile="mobile",i.Tablet="tablet",i.Desktop="desktop",i}(te||{}),ge=function(i){return i.small="(max-width: 599px)",i.smallMedium="(max-width: 767px)",
1i.medium="(min-width: 600px) and (max-width: 1023px)",i.large="(min-width: 1024px)",i}(ge||{});let ie=(()=>{var i;class s{constructor(e){this.breakpointObserver=e}getDeviceSize(){return this.breakpointObserver.isMatched(ge.large)?te.Desktop:this.breakpointObserver.isMatched(ge.medium)?te.Tablet:te.Mobile}getPersonalization(e){const t=this.getDeviceSize();return e.find(r=>r.characteristicValue===t)}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(j.B))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),re=(()=>{var i;class s{constructor(){this.platformId=(0,o.inject)(o.PLATFORM_ID),this.pageViewPersonalizationStrategy=(0,o.inject)(G),this.timeOfDayPersonalizationStrategy=(0,o.inject)(ee),this.viewportPersonalizationStrategy=(0,o.inject)(ie)}getPersonalization(e){if(!(0,f.isPlatformServer)(this.platformId)&&e.length)return e.find(t=>{if(t.characteristicName)switch(t.characteristicName){case H.PageViews:return this.pageViewPersonalizationStrategy.getPersonalization([t]);case H.TimeOfDay:return this.timeOfDayPersonalizationStrategy.getPersonalization([t]);case H.Viewportsize:return this.viewportPersonalizationStrategy.getPersonalization([t]);default:return}})}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();const He="ssc:";let ne=(()=>{var i;class s{constructor(e,t,r,n,a){this.requestContextService=e,this.pageModelService=t,this.newrelic=r,this.analyticsService=n,this.personalizationStrategyService=a,this.activeTests=null,this._recipe=null}get recipe(){return this._recipe}set recipe(e){this.newrelic.setCustomAttribute("componentTests",e||""),this._recipe=e}resetState(){this.recipe=null,this.activeTests=null}setState(e){this.recipe=this.generateComponentRecipe(e),this.activeTests=e,this.analyticsService.activeComponentTests={components:this.activeTests,recipe:this.recipe}}executeComponentLevelTests(e,t){if(this.resetState(),this.requestContextService.isPreviewRequest())return e;const r=X(e),n=this.getValidTests(r,t);return this.setState(n),this.applyComponentTests(e,n)}getValidTests(e,t){const r=this.getExperimentationTests(e,t);if(r.length>0)return r;const n=this.getPersonalizationTests(e);return n.length>0?n:[]}getExperimentationTests(e,t){return(null==t?void 0:t.length)>0?this.filterInvalidTests(e,t):[]}getPersonalizationTests(e){return e.reduce((t,r)=>{const n=pe(r),a=this.personalizationStrategyService.getPersonalization(n);return a?[...t,{name:r.name,variant:a.characteristicValue,meta:He.concat(a.characteristicName)}]:t},[])}applyComponentTests(e,t){const r=X(e);return t.filter(n=>!this.isControl(n)).forEach(n=>{const d=Ne(fe(r,n.name),this.findAlternate(r,n.name,n.variant),this.pageModelService.getPageModel());X(e)[this.getIndex(r,n.name)]=d}),e}getIndex(e,t){return e.findIndex(r=>r.name===t)}filterInvalidTests(e,t){return t.reduce((r,n)=>this.isControl(n)||this.findAlternate(e,n.name,n.variant)?[...r,n]:r,[])}isControl(e){return"control"===e.variant}findAlternate(e,t,r){return pe(fe(e,t)).find(l=>l.characteristicValue===r)}generateComponentRecipe(e){return e.map(t=>"".concat(t.meta,"%").concat(t.name,"%").concat(t.variant)).join("|")}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(g.RequestContextService),o.\u0275\u0275inject(g.PageModelService),o.\u0275\u0275inject(w),o.\u0275\u0275inject(A),o.\u0275\u0275inject(re))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();const me=new o.InjectionToken("componentMappings");let Ke=(()=>{var i;class s{constructor(e,t,r,n,a,l,d,S,I){this.cmsSdkService=e,this.cookieService=t,this.experimentationService=r,this.cmsConfig=n,this.componentMappings=a,this.router=l,this.componentTestService=d,this.newrelic=S,this.document=I}resolve(e,t){var r=this;return(0,h.A)(function*(){const n=e.params["content-channel"]||e.parent&&e.parent.params["content-channel"];r.cmsConfig.live&&n&&(r.cmsConfig.live.channelPath=n+(r.cmsConfig.useCache?"":r.cmsConfig.live.previewSuffix)),r.cmsConfig.preview&&n&&(r.cmsConfig.preview.channelPath=n+(r.cmsConfig.useCache?"":r.cmsConfig.preview.previewSuffix));let a=yield r.experimentationService.getTestUrl(t.url);const l=yield r.experimentationService.getComponentTests(t.url);a=r.removeChannelForPreview(a,r.cmsConfig);const d=Object.assign({},...r.componentMappings),S=yield r.cmsSdkService.fetchRouteData(a,r.cmsConfig,d,!!r.cmsConfig.useCache).catch(I=>{console.error("Failed to fetch route data",I),r.newrelic.noticeError(I),r.router.navigateByUrl("/page-not-found/")});return r.sendMetadataToNR(t,a),r.experimentationService.checkForInvalidTests(t.url),r.componentTestService.executeComponentLevelTests(S,l)})()}sendMetadataToNR(e,t){const r=this.cookieService.get("C1_CCID");this.newrelic.setPageViewName(e.url,this.document.location.origin),this.newrelic.setCustomAttribute("channel",this.cmsConfig.live?this.cmsConfig.live.channelPath:""),this.newrelic.setCustomAttribute("variantUrl",t),r&&this.newrelic.setCustomAttribute("C1_CCID",r)}removeChannelForPreview(e,t){if(e&&t.live&&t.live.channelPath&&t.live.previewSuffix){const r="/"+t.live.channelPath.replace(t.live.previewSuffix,"")+"/";e.startsWith(r)&&!t.useRootPath&&(e=e.substring(r.length-1))}return e}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(he),o.\u0275\u0275inject(O.O),o.\u0275\u0275inject(b),o.\u0275\u0275inject(x),o.\u0275\u0275inject(me),o.\u0275\u0275inject(D.Router),o.\u0275\u0275inject(ne),o.\u0275\u0275inject(w),o.\u
10275\u0275inject(o.DOCUMENT))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),qe=(()=>{var i;class s extends D.DefaultUrlSerializer{serialize(e){const t=super.serialize(e),r=t.indexOf("?")>-1?"?":"#",n=t.split(r);return n[0]&&!n[0].endsWith("/")&&(n[0]+="/"),n.join(r)}}return(i=s).\u0275fac=(()=>{let c;return function(t){return(c||(c=o.\u0275\u0275getInheritedFactory(i)))(t||i)}})(),i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),lt=(()=>{var i;class s{static forRoot(){return{ngModule:s,providers:[L,re,G,ee,ie,{provide:D.UrlSerializer,useClass:qe},(0,o.provideAppInitializer)(()=>function at(i){return()=>i.load()}((0,o.inject)(ve))())]}}static forLOB(e){return{ngModule:s,providers:[he,L,ne,{provide:A,useClass:Fe},{provide:b,useClass:le},{provide:Y,useValue:e},{provide:J,useValue:$[e]||"enterprise"},Ke,v,ze,re,G,ee,ie,V]}}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275mod=o.\u0275\u0275defineNgModule({type:i}),i.\u0275inj=o.\u0275\u0275defineInjector({}),s})(),oe=(()=>{var i;class s{constructor(e,t,r){this.internalLinkService=e,this.originalCmsConfig=t,this.document=r,this.config=Object.assign({},this.originalCmsConfig,{routeUrl:"",cacheKey:""})}updateCmsConfig(e,t){return this.config.routeUrl=t,this.setContentOnlyChannelPath(e),this.removeChannelNameForPreview(),this.cacheUpdates(),this.config.contentManagementEnvironment&&(this.config.contentManagementIndex="wcm-init"),this.config}get channelPath(){var e;return(null===(e=this.config.live)||void 0===e?void 0:e.channelPath)||""}get urlToFetch(){return this.config.cacheKey}get routeUrl(){return this.config.routeUrl||""}get cmsConfig(){return this.config}updateChannelPath(e){if(!e)return;const{live:t,preview:r}=this.config;t&&(t.channelPath=this.getChannelPath(e,t.previewSuffix)),r&&(r.channelPath=this.getChannelPath(e,r.previewSuffix)),this.config=Object.assign({},this.config,{live:t,preview:r})}setContentOnlyChannelPath(e){this.updateChannelPath(e.params["content-channel"]||e.parent&&e.parent.params["content-channel"])}getChannelPath(e,t){return e.concat(this.config.useCache?"":t)}removeChannelNameForPreview(){const{routeUrl:e,live:t,useRootPath:r}=this.config;if(!e||null==t||!t.channelPath||null==t||!t.previewSuffix)return;const n="/".concat(t.channelPath.replace(t.previewSuffix,""),"/");e.startsWith(n)&&!r&&(this.config.routeUrl=e.substring(n.length-1))}cacheUpdates(){this.setCacheKey(),this.config=Object.assign({},this.config,{routeUrl:this.cleanedRouteUrl}),this.config.useCache&&(this.updateRouteUrlForCache(),this.updateEnvironmentApiUrlsForCache())}get cleanedRouteUrl(){return this.config.useCache?this.internalLinkService.extractHashFragmentAndQueryParams(this.config.routeUrl):this.internalLinkService.extractHashFragment(this.config.routeUrl)}setCacheKey(){this.config=Object.assign({},this.config,{cacheKey:this.config.routeUrl})}updateRouteUrlForCache(){let{routeUrl:e}=this.config;const{useRootPath:t,live:r}=this.config,n=t?"/":"/".concat(null==r?void 0:r.channelPath,"/");e=e===n||"/"===e?"/root.json":e.replace(n,"/").replace(/\/$/,"")+".json",this.config=Object.assign({},this.config,{routeUrl:e})}updateEnvironmentApiUrlsForCache(){let{live:e}=this.config;e=Object.assign({},e,{scheme:this.document.location.protocol.replace(":",""),hostname:this.document.location.hostname,port:parseInt(this.document.location.port)||443}),this.config=Object.assign({},this.config,{live:e})}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(L),o.\u0275\u0275inject(x),o.\u0275\u0275inject(o.DOCUMENT))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),K=(()=>{var i;class s{}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),dt=(()=>{var i;class s extends oe{constructor(e,t,r){super(e,t,r)}updateChannelPath(){}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(L),o.\u0275\u0275inject(x),o.\u0275\u0275inject(o.DOCUMENT))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),ut=(()=>{var i;class s extends oe{constructor(e,t,r){super(e,t,r)}updateCmsConfig(e,t){const r=super.updateCmsConfig(e,t);return r.contentManagementIndex="wcm",r.resolveReferences=!0,r}updateChannelPath(){}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(L),o.\u
10275\u0275inject(x),o.\u0275\u0275inject(o.DOCUMENT))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),Se=(()=>{var i;class s{constructor(e){this.http=e}fetchPageModelFromCache({channelPath:e,routeUrl:t}){const r="assets/shell/page_models/".concat(e,"/resourceapi"),n="/".concat(r,"/").concat(t);return this.http.get(n)}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(y.HttpClient))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),_e=(()=>{var i;class s{constructor(e,t,r,n,a,l,d,S){this.apiUrlsService=e,this.requestContextService=t,this.componentMappingsService=r,this.initializeSdkService=n,this.pageModelService=a,this.imageUrlService=l,this.platformId=d,this.document=S,this.contentCache=new T,this.isBrowser=(0,f.isPlatformBrowser)(this.platformId)}get isPlatformBrowser(){return this.isBrowser}fetchRouteData(e,t){var r=this;return(0,h.A)(function*(){let n;return r.cmsSetup(e,t),e.useCache&&r.contentCache.has(e.cacheKey)?n=r.contentCache.get(e.cacheKey):(n=yield r.getPageModelFromCms(e),r.contentCache.set(e.cacheKey,n)),r.pageModelService.setPageModel(n),r.isBrowser&&clearTimeout(window.entShellTimeout),(0,g.getComponentConfiguration)("",n)})()}cmsSetup(e,t){const r=e.routeUrl,n=Object.assign({},...t);this.apiUrlsService.setApiUrls(e),this.requestContextService.parseUrlPath(r),this.componentMappingsService.setComponentMappings(n),this.initializeSdkService.initialize({initializePageModel:!1,initializeRouterEvents:!1})}getPageModelFromCms(e){var t=this;return(0,h.A)(function*(){let r=yield t.fetchPageModel(e);const n=t.getApiUrls(e);return t.isBrowser&&!e.useCache&&t.isBrowser&&t.document.location.origin!==n.live.baseUrl&&(r=function vt(i,s){if(!i.useCache&&s){var c;let e=JSON.stringify(s);return e=e.replace(/("|')\/site\/binaries\//gi,"$1".concat(null===(c=i.live)||void 0===c?void 0:c.baseUrl,"/site/binaries/")),JSON.parse(e)}return s}(n,r),r=function ht(i,s){const{previewSuffix:c}=i.live;if(s&&!i.useCache&&(null==c?void 0:c.length)){const t=new RegExp("(\"|')/site/([a-z-]+)".concat(c,"/"),"ig");let r=JSON.stringify(s);return r=r.replace(t,n=>n.replace(c,"")),JSON.parse(r)}return s}(n,r)),r})()}fetchPageModel(e){var t=this;return(0,h.A)(function*(){return e.useCache&&(t.pageModelService.httpGetOptions=(0,u.A)((0,u.A)({},t.pageModelService.httpGetOptions),{},{withCredentials:!1})),yield t.pageModelService.fetchPageModel().toPromise()})()}getPageModel(){return this.pageModelService.getPageModel()}getContentViaReference(e){return this.pageModelService.getContentViaReference(e)}getPageModelSubject(){return this.pageModelService.getPageModelSubject()}getImageUrl(e,t){return this.imageUrlService.getImageUrl({$ref:e},t)}getComponentConfiguration(e,t){return(0,g.getComponentConfiguration)(e,t)}isPreviewRequest(){return this.requestContextService.isPreviewRequest()}getApiUrls(e){const t=this.apiUrlsService.getApiUrls();return Object.assign({},e,t)}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(g.ApiUrlsService),o.\u0275\u0275inject(g.RequestContextService),o.\u0275\u0275inject(V),o.\u0275\u0275inject(g.InitializeSdkService),o.\u0275\u0275inject(g.PageModelService),o.\u0275\u0275inject(g.ImageUrlService),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();function Ce(i){const{live:s,useRootPath:c,routeUrl:e}=i,[t]=e.split("?"),r=c?"/":"/".concat(null==s?void 0:s.channelPath,"/");return t===r||"/"===e||"/"===t?"root":e.replace(r,"/").split("?")[0].slice(1).replace(/\/$/,"")}let ye=(()=>{var i;class s{constructor(e,t){this.http=e,this.localStorage=t}fetchPageModelFromApi(e){var t=this;return(0,h.A)(function*(){const r=t.getRequestUrl(e),n=yield t.getHeaders(e),a=t.getRequestParam
1s(e);return yield(0,p.lastValueFrom)(t.http.get(r,{headers:n,params:a}))})()}getRequestUrl(e){const t="content-hub/enterprise/content-management/documents",{contentHubHost:r,usePreviewProxy:n}=e;return n?"https://".concat(r,"/").concat(t):"/".concat(t)}getHeaders(e){return(0,h.A)(function*(){var t;const r=e.contentManagementEnvironment||"",n=e.contentManagementIndex||"";return{"Accept-Encoding":"application/zip","Content-Management-Domain":(e.live.channelPath||"").replace((null===(t=e.live)||void 0===t?void 0:t.previewSuffix)||"",""),"Content-Management-Environment":r,"Content-Type":"application/json;v=7","Content-Management-Index":n,"Content-Management-Cache":"bypass",Accept:"application/json;v=7"}})()}getRequestParams(e){const t=Ce(e),r=function pt(i){var s;const[c,e]=(null==i||null===(s=i.routeUrl)||void 0===s?void 0:s.split("?"))||[],t=(null==e?void 0:e.split("&"))||[];if(null!=t&&t.length){var r;const n=t.findIndex(d=>null==d?void 0:d.includes("experimentPath")),[a,l]=n>-1&&(null===(r=t[n])||void 0===r?void 0:r.split("="))||[];if(l)return l}return""}(e);let n=(new y.HttpParams).appendAll({documentPath:t,resolveReferences:!0});return r&&(n=n.set("experimentPath",r)),n}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(y.HttpClient),o.\u0275\u0275inject(Z))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),ft=(()=>{var i;class s extends _e{constructor(e,t,r,n,a,l,d,S,I,F){super(e,t,r,n,a,l,d,S),this.contentHubFetchService=I,this.assetsFolderFetchService=F}fetchPageModel(e){var t=()=>super.fetchPageModel,r=this;return(0,h.A)(function*(){var n;if(r.isPreviewRequest()||!r.isPlatformBrowser||!e.contentManagementEnvironment)return yield t().call(r,e);const a=null===(n=e.live)||void 0===n?void 0:n.channelPath;return null!=e&&e.routeUrl&&a?e.useCache?yield r.fetchFromAssetsFolder(e):yield r.fetchFromApi(e):Promise.reject("Config values are missing: routeUrl: ".concat(null==e?void 0:e.routeUrl,", channelPath: ").concat(a))})()}fetchFromApi(e){var t=this;return(0,h.A)(function*(){const r=yield t.contentHubFetchService.fetchPageModelFromApi(e);return t.convertContentHubResponse(r)})()}fetchFromAssetsFolder(e){var t=this;return(0,h.A)(function*(){var r;const n=Ce(e),a=(null===(r=e.live)||void 0===r?void 0:r.channelPath)||"";return yield t.assetsFolderFetchService.fetchPageModelFromCache({channelPath:a,routeUrl:n}).pipe((0,m.map)(l=>n.includes("stubs/pageModelStub.json")?l:t.convertContentHubResponse(l))).toPromise()})()}convertContentHubResponse(e){let t=e;var r;return null!=e&&e.documents&&(t=null==e||null===(r=e.documents)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.documentStructure)||void 0===r||null===(r=r.documentStructurePayload)||void 0===r||null===(r=r.bloomreachContent)||void 0===r?void 0:r.content),t}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(g.ApiUrlsService),o.\u0275\u0275inject(g.RequestContextService),o.\u0275\u0275inject(V),o.\u0275\u0275inject(g.InitializeSdkService),o.\u0275\u0275inject(g.PageModelService),o.\u0275\u0275inject(g.ImageUrlService),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(ye),o.\u0275\u0275inject(Se))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),q=(()=>{var i;class s{}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),gt=(()=>{var i;class s{constructor(e,t,r,n){this.assetsFolderFetchService=e,this.componentMappingsService=t,this.platformId=r,this.contentHubFetchService=n,this.contentCache=new T,this.isBrowser=(0,f.isPlatformBrowser)(this.platformId),this.pageModel={},this.pageModelSubject=new p.BehaviorSubject(this.pageModel)}get isPlatformBrowser(){return this.isBrowser}fetchRouteData(e,t){var r=this;return(0,h.A)(function*(){const n=Object.assign({},...t);if(r.componentMappingsService.setComponentMappings(n),e.useCache&&r.contentCache.has(e.cacheKey))return r.contentCache.get(e.cacheKey);if(e.useCache)return yield r.fetchFromAssetsFolder(e);const a=yield r.contentHubFetchService.fetchPageModelFromApi(e),l=r.convertContentHubResponse(a
1);return r.contentCache.set(e.cacheKey,l),r.pageModel=l,r.pageModelSubject.next(l),l})()}getPageModel(){return this.pageModel}getPageModelSubject(){return this.pageModelSubject}convertContentHubResponse(e){let t=e;var r;return null!=e&&e.documents&&(t=null==e||null===(r=e.documents)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.documentStructure)||void 0===r?void 0:r.documentStructurePayload),t}fetchFromAssetsFolder(e){var t=this;return(0,h.A)(function*(){var r;const n=Ce(e),a=(null===(r=e.live)||void 0===r?void 0:r.channelPath)||"",l=yield(0,p.firstValueFrom)(t.assetsFolderFetchService.fetchPageModelFromCache({channelPath:a,routeUrl:n}));return n.includes("stubs/pageModelStub.json"),l})()}getContentViaReference(e){throw new Error("getContentViaReference method not implemented for ecm page models.")}getImageUrl(e,t){throw new Error("getImageUrl method not implemented for ecm page models.")}getComponentConfiguration(e,t){throw new Error("getComponentConfiguration method not implemented for ecm page models.")}isPreviewRequest(){throw new Error("isPreviewRequest method not implemented for ecm page models.")}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(Se),o.\u0275\u0275inject(V),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(ye))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),Pe=(()=>{var i;class s{constructor(e,t,r,n,a,l,d,S,I){this.cookieService=e,this.experimentationService=t,this.sharedCmsSdkService=r,this.sharedCmsConfigService=n,this.router=a,this.componentTestService=l,this.newrelic=d,this.componentMappings=S,this.document=I}resolve(e,t){var r=this;return(0,h.A)(function*(){const n=yield r.experimentationService.getTestUrl(t.url),a=yield r.experimentationService.getComponentTests(t.url),l=r.sharedCmsConfigService.updateCmsConfig(e,n),d=yield r.fetchRouteData(l);return r.sendMetadataToNR(t),r.componentTestService.executeComponentLevelTests(d,a)})()}fetchRouteData(e){var t=this;return(0,h.A)(function*(){try{return yield t.sharedCmsSdkService.fetchRouteData(e,t.componentMappings)}catch(n){var r;if(console.error("Failed to fetch route data",n),null!=n&&null!==(r=n.url)&&void 0!==r&&r.includes("page-not-found"))return;t.router.navigateByUrl("/page-not-found/")}})()}sendMetadataToNR(e){const t=this.cookieService.get("C1_CCID");this.newrelic.setPageViewName(e.url,this.document.location.origin),this.newrelic.setCustomAttribute("channel",this.sharedCmsConfigService.channelPath),this.newrelic.setCustomAttribute("variantUrl",this.sharedCmsConfigService.urlToFetch),t&&this.newrelic.setCustomAttribute("C1_CCID",t),this.experimentationService.checkForInvalidTests(e.url)}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(O.O),o.\u0275\u0275inject(b),o.\u0275\u0275inject(q),o.\u0275\u0275inject(K),o.\u0275\u0275inject(D.Router),o.\u0275\u0275inject(ne),o.\u0275\u0275inject(w),o.\u0275\u0275inject(me),o.\u0275\u0275inject(o.DOCUMENT))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();const we=[{provide:q,useClass:_e},{provide:K,useClass:oe}],Me=[...we,Pe],Qe=[{provide:q,useClass:ft},ye,Se,Pe],mt=[...Qe,{provide:K,useClass:dt}],St=[...Qe,{provide:K,useClass:ut},{provide:q,useClass:gt}];let _t=(()=>{var i;class s{static forRoot(){return{ngModule:s,providers:Me}}static forRouteData(e,t=!1){return{ngModule:s,providers:Me}}static forCmsMethod(e="bre"){let t;switch(e){case"bre-content-hub":t=mt;break;case"ecm-content-hub":t=St;break;default:t=Me}return{ngModule:s,providers:t}}static getCmsProviders(e="bre"){let t;return t=we,t}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275mod=o.\u0275\u0275defineNgModule({type:i}),i.\u0275inj=o.\u0275\u0275defineInjector({imports:[f.CommonModule,D.RouterModule,g.BloomreachExperienceNgSdkModule]}),s})();const Ct=(i,s)=>{const c={article:"min read",video:"min video",audio:"min listen"};return i&&s&&c[s]&&s?"".concat(i," ").concat(c[s]):i||""},yt=i=>null!=i&&{article:"Read More",audio:"Listen Now",video:"Watch Now"}[i]||"Read More";var Je=function(i){return i.PageView="page_view",i.Conversion="conversion",i.ConversionIntent="conversion_intent",i.DownloadClick="download_click",i.NavigationClick="navigation_click",i.CtaClick="cta_click",i.ApplicationStart="application_start",i.ApplicationStepView="application_step_view",i.ApplicationSubmitAttempt="application_submit_attempt",i.ApplicationSubmitFailure="application_submit_failure",i.ApplicationSubmitComplete="application_submit_complete",i.EmailLink="email_link",i.PhoneLink="phone_link",i.SocialLink="social_link",i.ExternalLink="external_link",i.SiteSearch="site_search",i.RegistrationAttempt="registration_attempt",i.RegistrationFailure="registration_failure",i.RegistrationComplete="registration_complete",i.LoginAttempt="login_attempt",i.LoginFail="login_fail",i.LoginComplete="login_complete",i.SocialShare="social_share",i.AppStoreLinkClick="app_store_link_click",i.Error404="404_error",i.FormStart="form_start",i.FormComplete="form_complete",i.SendAdditionalData="send_additonal_data",i}(Je||{}),Ye=function(i){return i.Download="download",i.Navigation="navigation",i.ConversionIntent="conversion intent",i.Application="application",i.ExternalLink="external link",i.SiteSearch="site search",i.Registration="registration",i.Login="login",i.Error="error",i.Form="form",i.Cta="cta",i.SendAdditionalData="send additional data",i}(Ye||{}),Xe=function(i){return i.Conversion="GA Event - Conversion Intent",i.ConversionIntent="conversion_GA Event - Conversion Intent",i.DownloadClick="GA Event - Download Click",i.NavigationClick="GA Event - Navigation Click",i.CtaClick="GA Event - CTA Click",i.ApplicationSubmit="GA Event - Application Submit",i.EmailLink="GA Event - External Email Link Click",i.PhoneLink="GA Event - External Phone Link Click",i.SocialLink="GA Event - External Social Link Click",i.ExternalLink="GA Event - External General Link Click",i.SiteSearch="GA Event - Site Search",i.Registration="GA Event - Registration",i.Login="GA Event - Login",i.SocialShare="GA Event - Social Share Link",i.AppStoreLinkClick="GA Event - App Store Link Click",i.Error404="GA Event - 404 Error Page View",i.Form="GA Event - Forms",i.SendAdditionalData="GA Event - Send Additional Data",i}(Xe||{}),Ze=function(i){return i.ApplicationStart="start",i.ApplicationAttempt="submit attempt",i.ApplicationComplete="submit c
1omplete",i.EmailLink="email link",i.PhoneLink="phone link",i.SocialLink="social link",i.GeneralLink="general link",i.RegistrationAttempt="attempt",i.RegistrationComplete="complete",i.LoginAttempt="login_attempt",i.LoginComplete="login_complete",i.SocialShare="social share intent",i.AppStoreLink="app store link",i.FormStart="form_start",i.FormComplete="form_complete",i.Error404="error 404",i.CaptureGaCid="capture ga cid",i}(Ze||{}),Ge=function(i){return i.Registration="username registration",i.Login="username login",i}(Ge||{});const Pt=i=>{const s={};return Array.isArray(i)&&i.forEach(({key:c,value:e}={})=>{if(Array.isArray(e)){const{name:t}=e[0];s[c]=t}}),s},wt="/tests/",Mt="/article-tests/";var Q=function(i){return i.AdobeTarget="target",i.Optimizely="optimizely",i}(Q||{});let bt=(()=>{var i;class s{constructor(){}getTopicLabel(e){if(!e)return"";const t=e.split("/");let r=t[t.length-2].replace(/-/g," ").toLowerCase()||"";return-1!==["tech innovation","privacy security"].indexOf(r)&&(r=r.replace(" "," & ")),r}getTopicUrl(e){if(!e)return e;const t=e.split("/");return"".concat(t.length<4?t.join("/"):t.slice(0,-1).join("/"),"/")}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();function It(i,s,c=null){return s.reduce((e,t)=>e&&e[t]?e[t]:c,i)}var se=function(i){return i.left="grv-row--sm-start",i.center="grv-row--sm-center",i.right="grv-row--sm-end",i}(se||{});let At=(()=>{var i;class s{getGrvAlignmentClass(e){return e&&se.hasOwnProperty(e)?this.getGravityAlignmentClass(e):se.left}getGravityAlignmentClass(e){return se[e]}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();const et={};let Dt=(()=>{var i;class s{constructor(){this.pageComponents$=new p.BehaviorSubject([])}setValue(e,t){et[e]=t}getValue(e){return et[e]}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),jt=(()=>{var i;class s{constructor(){this.actionAlertSource=new p.Subject,this.topicPageFilterState=new p.BehaviorSubject(!1),this.filterArrayObserver=new p.BehaviorSubject([]),this.blogFiltersObserver=new p.BehaviorSubject({topics:[],technologies:[],disciplines:[],count:0}),this.articlesCountObserver=new p.BehaviorSubject(0),this.isBlogFilterObserver=new p.BehaviorSubject(!1),this.actionAlert$=this.actionAlertSource.asObservable(),this.topicPageFilterState$=this.topicPageFilterState.asObservable(),this.filterArray$=this.filterArrayObserver.asObservable(),this.blogFilters$=this.blogFiltersObserver.asObservable(),this.matchedArticlesCount$=this.articlesCountObserver.asObservable(),this.isBlogFilter$=this.isBlogFilterObserver.asObservable()}sendAlert(e){this.actionAlertSource.next(e)}toggleTopicPageFilterClass(){!1===this.topicPageFilterState.getValue()?this.topicPageFilterState.next(!0):this.topicPageFilterState.next(!1)}filterArraySend(e){this.filterArrayObserver.next(e)}setActiveFilters(e){this.blogFiltersObserver.next(e)}setMatchedArticlesCount(e){this.articlesCountObserver.next(e)}sendIsBlogFilter(e){this.isBlogFilterObserver.next(e)}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();const tt=new o.InjectionToken("queryParams"),Tt=new o.InjectionToken("appRoutesToken"),Ot=new o.InjectionToken("domainToken"),kt=new o.InjectionToken("contentServiceProviderToken"),xt=new o.InjectionToken("Query Param Extender");let Lt=(()=>{var i;class s{constructor(e){this.platformId=e,this.videoComponentRefs=[],this._isScriptInjected=!1,this.isServer=(0,f.isPlatformServer)(this.platformId),this.windowYouTubeProperty="YT"}get isScriptInjected(){return this._isScriptInjected}set isScriptInjected(e){this._isScriptInjected=e}static getVideoReference(e,t){return t.reduce((r,n)=>null==r?void 0:r[n],e)}static extractVideoId(e){const r=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return-1!==e.indexOf("http")&&null!==r&&r.length?r[2]:e}static onPlayerStateChange(e,t,r){t.playerEvents=e,t.videoTime=e.target.getCurrentTime(),t.videoLe
1ngth=e.target.getDuration(),r.videoPlayerStateChange(t)}static unloadHandler(e,t,r,n){t.playerEvents=window["player-".concat(r)],t.videoTime=window["player-".concat(r)].getCurrentTime(),t.videoLength=window["player-".concat(r)].getDuration(),n.videoPlayerNavigateAway(t)}static getPlayerConfig(e){return e.isBrowser&&e.videoId?{height:"100%",width:"100%",videoId:e.videoId,playerVars:{rel:0,controls:2,enablejsapi:1},host:"https://www.youtube-nocookie.com",events:{onStateChange:e.onPlayerStateChange.bind(e),onReady:e.onPlayerReady.bind(e)}}:null}addComponentRef(e){this.videoComponentRefs.push(e)}insertIframes(){if(!this.isServer){if(window[this.windowYouTubeProperty])return void this.createYouTubePlayer();window.onYouTubeIframeAPIReady=()=>{this.createYouTubePlayer()}}}setYouTubeSDK(){this.isScriptInjected=!0;const e=window.document,t=e.createElement("script");t.type="text/javascript",t.src="//www.youtube.com/iframe_api",e.head.appendChild(t)}videoSetup(e,t,r){e&&t&&!this.isScriptInjected&&this.setYouTubeSDK(),t&&this.addComponentRef(r),this.insertIframes()}createYouTubePlayer(){this.isServer||this.videoComponentRefs.forEach(e=>{const t=s.getPlayerConfig(e);t&&(window["player-".concat(t.videoId)]=new window.YT.Player(t.videoId,t))})}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),Rt=(()=>{var i;class s extends o.ErrorHandler{constructor(e){super(),this.newRelic=e}handleError(e){this.newRelic.noticeError(this.getErrorMessage(e),(0,u.A)({},e)),console.warn(e)}getErrorMessage(e){if("object"==typeof e&&null!==e){const t=["rejection","message"],r=Object.keys(e).find(n=>t.includes(n));return r?e[r]:e}return e}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(w))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),Et=(()=>{var i;class s{constructor(e,t,r,n){this.activeRoute=e,this.cacheStorage=t,this.lobName=r,this.persistedQueryParams=n,this.parameterMapKey="parameterMap",t.storagePrefix=this.lobName}initializeLocalStorage(){this.cacheStorage.deleteExpired(this.parameterMapKey),this.storeQueryParams()}getQueryParams(){return this.storeQueryParams(),this.getCachedParams()}getQueryParamString(){return this.generateQueryParamString(this.getQueryParams())}getSpecificQueryParam(e,t=""){return this.getQueryParams()[e]||t}removeKeysFromCache(e){if(this.cacheStorage.cacheExists(this.parameterMapKey)){const t=this.getCachedParams(),r=Object.entries(t).reduce((n,[a,l])=>(e.includes(a)||(n[a]=l),n),{});this.cacheStorage.createCache(this.parameterMapKey,r)}}getCachedParams(){var e;const t=null===(e=this.cacheStorage.getExistingCache(this.parameterMapKey))||void 0===e?void 0:e.value;return t?this.getPersistedQueryParams(t):{}}storeQueryParams(){const e=this.getPersistedQueryParams(this.activeRoute.snapshot.queryParams);if(this.shouldPersistQueryParams(e)){const t=this.getCachedParams(),r=(0,u.A)((0,u.A)({},t),e);this.cacheStorage.updateCache(this.parameterMapKey,r,!0)}}getPersistedQueryParams(e){return Object.keys(e).filter(t=>this.persistedQueryParams.includes(t)).reduce((t,r)=>(t[r]=e[r],t),{})}shouldPersistQueryParams(e){return 0!==Object.keys(e).length}generateQueryParamString(e){const t=new y.HttpParams({fromObject:e});return t.keys().length?"?".concat(t.toString()):""}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(D.ActivatedRoute),o.\u0275\u0275inject(Z),o.\u0275\u0275inject(Y),o.\u0275\u0275inject(tt))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})(),Ft=(()=>{var i;class s{constructor(e,t,r,n){this.pageModelService=e,this.imageUrlService=t,this.requestContextService=r,this.apiUrlsService=n}getDocContentViaRef(e,t){var r,n;const a=t||(null==e?void 0:e.$ref)||(null==e||null===(r=e.models)||void 0===r||null===(r=r.document)||void 0===r?void 0:r.$ref)||(null==e||null===(n=e.models)||void 0===n||null===(n=n.content)||void 0===n?void 0:n.$ref);return this.pageModelService.getContentViaReference(a)}getImageUrlByPath(e){var t,r;if(!e||e.match("^https?://"))return e;const n=this.requestContextService.isPreviewRequest(),a=this.apiUrlsService.getApiUrls(),l=n?null===(t=a.preview)||void 0===t?void 0:t.baseUrl:null===(r=a.live)||void 0===r?void 0:r.baseUrl;return"".concat(l).concat(e)}getImageUrl(e,t){if(!e)return"";const r=this.imageUrlService.getImageUrl(e)||"",n=this.imageUrlService.getImageUrl(e,t),a=!r.includes(".gif")&&this.imageUrlService.getImageUrl(e,"rdesktop");return t?n:a||r}getPageModelData(){return this.pageModelService.pageModel}getPageModelSubject(){return this.pageModelService.pageModelSubject}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(g.PageModelService),o.\u0275\u0275inject(g.ImageUrlService),o.\u0275\u0275inject(g.RequestContextService),o.\u0275\u0275inject(g.ApiUrlsService))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})(),Bt=(()=>{var i;class s{constructor(){}mask(e,t){let r="";
1const a=(0,u.A)((0,u.A)({},{npi:"mask",injection:"sanitize"}),t),l=W=>W.replace(/\d/g,"x").replace(Ie,"x".repeat(W.length)),d=W=>W.replace(/\d/g,"").replace(Ie,""),Ie=/(<|<)[^>]*?(>|>)/g,Wt={npi:[/[2-6]\d{3}.?\d{4}.?\d{4}.?\d{4}/g,/[2-6]\d{3}.?\d{6}.?\d{5}/g,/\d{9,14}/g],injection:[Ie]};for(const[W,ce]of Object.entries(a)){if("ignore"===ce)continue;const Ht="mask"===ce?l:d;r=Wt[W].reduce((Kt,qt)=>Kt.replace(qt,Ht),r||e)}return r||""}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),s})();const Ut={pageTest:null,componentTests:[]};let it=(()=>{var i;class s{constructor(e,t,r,n){var a=this;this.platformId=e,this.document=t,this.newRelicService=r,this.isBrowser=(0,f.isPlatformBrowser)(this.platformId),this.winRef=this.isBrowser?window:null,this._optimizelyRef=new p.Subject,this.optimizelyRef$=this._optimizelyRef.asObservable(),this._globalOptimizelyRef=void 0,this._isInitialized=!1,this.optimizely=(0,h.A)(function*(){return yield a.initializeOptimizely(),a._globalOptimizelyRef}),this.isBrowser&&!this.enableTests()&&console.log('Optimizely disabled for localhost. Add query string "optimizely_token" to enable.'),n.activeABTestingPlatform=k.Optimizely}initializeOptimizely(){var e=this;return(0,h.A)(function*(){var t;if(!e._isInitialized){if(e._isInitialized=!0,!0===(null===(t=e.winRef)||void 0===t||null===(t=t._sequoia)||void 0===t||null===(t=t.optimizely)||void 0===t?void 0:t.loading)&&e.isBrowser)(0,p.fromEvent)(e.winRef,"optimizelyResolved",{once:!0}).subscribe(()=>{(0,p.timer)(0).subscribe(()=>{var a;e._optimizelyRef.next(null===(a=e.winRef)||void 0===a?void 0:a.optimizely)})});else{var r,n;if("function"==typeof(null===(r=e.winRef)||void 0===r||null===(r=r.optimizely)||void 0===r?void 0:r.get)||!e.isBrowser||(null===(n=e.winRef)||void 0===n||null===(n=n._sequoia)||void 0===n?void 0:n.experimentationVendor)!==Q.Optimizely)return(0,p.timer)(0).subscribe(()=>{var a;return e._optimizelyRef.next(null===(a=e.winRef)||void 0===a?void 0:a.optimizely)}),void(e._globalOptimizelyRef=yield(0,p.firstValueFrom)(e.optimizelyRef$));e.isBrowser&&(0,p.fromEvent)(e.winRef,"experimentationVendorResolved",{once:!0}).subscribe(()=>{(0,p.timer)(0).subscribe(()=>{var a;return e._optimizelyRef.next(null===(a=e.winRef)||void 0===a?void 0:a.optimizely)})})}e._globalOptimizelyRef=yield(0,p.firstValueFrom)(e.optimizelyRef$.pipe((0,p.timeout)({first:2e3}),(0,p.catchError)(()=>(e.newRelicService.noticeError("Optimizely not loaded"),console.log("Optimizely not loaded"),(0,p.of)(void 0)))))}})()}enableTests(){const e=this.document.location;return"localhost"!==e.hostname||"localhost"===e.hostname&&e.search.indexOf("optimizely_token")>0}getAndApplyOffers(e){var t=this;return(0,h.A)(function*(){if(yield t.getOffers(),t.isBrowser){var r;null===(r=t.document)||void 0===r||r.querySelectorAll(".exp-min-height").forEach(a=>{a.classList.remove("exp-min-height")});const n=yield t.siteTestData();n.length>0&&n.forEach(a=>{t.newRelicService.addPageAction("webExperimentApplied",(0,u.A)((0,u.A)({},a),{},{experimentationVendor:Q.Optimizely}))})}})()}getTestUrl(e){var t=this;return(0,h.A)(function*(){const r=yield t.getOffers();return null!=r&&r.pageTest?r.pageTest:e})()}getComponentTests(e){var t=this;return(0,h.A)(function*(){const r=yield t.getOffers();return null!=r&&r.componentTests?r.componentTests:[]})()}checkForInvalidTests(e){return(0,h.A)(function*(){})()}siteTestData(){var e=this;return(0,h.A)(function*(){var t;const r=yield e.optimizely(),n=null==r||null===(t=r.get("state"))||void 0===t?void 0:t.getCampaignStates({isActive:!0}),a=[];return e.isBrowser&&n&&Object.entries(n).forEach(([l,d,S])=>{d&&a.push({campaignId:d.experiment.id,campaign:d.experiment.name,experience:d.isInCampaignHoldback?"Holdback_experience":d.variation.name,experienceId:d.isInCampaignHoldback?"Holdback_variant":d.variation.id})}),a})()}getOffers(){var e=this;return(0,h.A)(function*(){if(!e.isBrowser||!e.enableTests())return null;const t=yield e.siteTestData();return new Promise((r,n)=>{var a;const l=(null===(a=window)||void 0===a||null===(a=a._sequoia)||void 0===a?void 0:a.optimizely)||Ut;window.siteTestData=t,r({pageTest:l.pageTest||null,componentTests:l.componentTests||[]})})})()}}return(i=s).\u0275fac=function(e){return new(e||i)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(w),o.\u
10275\u0275inject(A))},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})();function zt(i,s){Object.entries(s).forEach(([c,e])=>{i.setInput(c,e);const t=i.instance;if("function"!=typeof t[c])try{t[c]=e}catch(r){}})}const Nt=()=>{var i;return(null===(i=globalThis._sequoia)||void 0===i?void 0:i.experimentationVendor)===Q.Optimizely?(0,o.inject)(it):(0,o.inject)(le)};var be=function(i){return i.approvedProduct="approvedProduct",i.approvedProducts="approvedProducts",i.approvedOffer="approvedOffer",i.autoRefi="auto_refi",i.contract="contract",i.contractWithBrandName="contract-with-brand-name",i.contractWithFootnote="contract-with-footnote",i.contractWithFootnoteAndDynamicBrand="contract-with-footnote-and-dynamic-brand",i.counterOfferApprovedProductWithAdjustedSuffix="counter-offer-approved-product-with-adjusted-suffix",i.counterOfferApprovedProductWithSuffix="counter-offer-approved-product-with-suffix",i.counterOfferDeclinedProductWithSuffix="counter-offer-declined-product-with-suffix",i.credit="credit",i.creditOffer="credit-offer",i.creditOffersFootnote="credit-offers-footnote",i.creditOffersFootnoteSnippet="credit-offers-footnote-snippet",i.date="date",i.dynamicField="dynamicField",i.dynamicFootnote="dynamic-footnote",i.footnote="footnote",i.form="form",i.location="location",i.modal="modal",i.modalLink="modal-link",i.offers="offers",i.product="product",i.rates="rates",i.scroll="scroll",i.tooltip="tooltip",i.referrals="referrals",i.dynamicProductSnippet="dynamicProductSnippet",i.ltoText="lto-text",i.offerAcceptProduct="offerAcceptProduct",i.approvedDisclosuresFootnote="approvedDisclosuresFootnote",i.rateAndFeeModalLink="rate-and-fee-modal-link",i}(be||{});class rt{constructor(s){this.source="";const[c,e,...t]=s.split(":");this.validateTag(c,e),this.source=s,this.tagType=c,this.value=e,this.extras=t}validateTag(s,c){s&&c?Object.values(be).includes(s)||console.error('Tag type "'.concat(s,'" not recognized. Please only use supported tag types')):console.error("Invalid dynamic data format: tagType:".concat(s," value:").concat(c,". Are you prefixing your dynamic data snippet with the correct tag type? (e.g. ${modal:/your-route/})"))}}function nt(i,s){return(i||"").replace(/[$@]{(.*?)}/g,(c,e)=>s(new rt(e)))}function ae(i){return!!i&&/[$@]{(.*?)}/.test(i)}let Vt=(()=>{var i;class s{dataSourceForSnippet$(e){return this.dataSource$()}getSubstitutionResult(e,t,r){return e||"${".concat(t.source,"}")}updateInnerHtml(e,t){e.nativeElement.innerHTML=ae(t)?"":t}updateInputValue(e,t){e.nativeElement.value=ae(t)?"":t}updateAlt(e,t){e.nativeElement.alt=ae(t)?"":t}transformSnippet(e,t){return nt(e,r=>this.substituteValue(r,t))}}return(i=s).\u0275fac=function(e){return new(e||i)},i.\u0275prov=o.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),s})()}}]); 2//# sourceMappingURL=133.04dc16478a5e8165.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.