=p)throw O;console.warn(`** reconcile attempt ${d} failed **`,O),await new Promise(_=>setTimeout(_,m)),m*=2}}};ei.exports={reconcile:Mh}});var nn=b((TA,ti)=>{i();c();u();l();var Jh=z(),rn=Promise.resolve(),Bh=(e,t="queued")=>{rn=rn.then(e).catch(r=>{Jh.log(`error in [${t}] job:`,r)})},$h=()=>rn;ti.exports={add:Bh,complete:$h}});var ui=b((NA,ci)=>{i();c();u();l();var on=Y(),{codecFor:Wh,bestAvailableCodec:sn}=ie(),{oneYearInSeconds:ii}=oe(),{log:ot}=z(),Hh=V(),{deepClone:Gh}=G(),Vh=tn(),zh=Z(),{get:ri,pick:ni}=G(),oi=nn(),Yh=e=>!e||typeof e.cnts!="object"||!Array.isArray(e.urls),Kh=(e,t)=>!t.urls.includes(e),Qh=(e,t,r)=>e.cnts[t]>=r,Zh=(e,t,r)=>{t.urls.push(e),t.cnts[r]=(t.cnts[r]||0)+1,t.uat=Date.now()},Xh={newRecord:"NEW RECORD",matched:"MATCHED",unmatched:"CONFLICT"},si=()=>new Promise((e,t)=>{let r=zh.whenFingerprintIDEventOccurs(({payload:{fingerprintID:n}={}}={})=>{n&&(n.startsWith("ERROR")&&t(n),e(n),r())})}),ai=({clientCredentials:e,serviceURL:t,initialClientState:r,nextState:n,fingerprintID:o,signature:a,key:s,tokenName:p,paymentNegotiation:d})=>Vh.reconcile({client:window.fetch,clientCredentials:e,serviceURL:t,initialClientState:r,nextState:n,fingerprintID:o}).then(({request:m,response:S})=>{if(!S||S.status!==Xh.unmatched||!ri(S,"currState.visitorState")||!sn({signature:a,key:s}))return;let T=ri(S,"currState.visitorState"),E=sn({signature:a,key:s});return Hh.add({type:"visitIQ",id:"CONFLICT",request:ni(m,["fid","currState","nextState"]),response:ni(S,["currState"])}),E.encode({payload:T,signature:a,key:s}).then(q=>{on.write(p,q,ii),d()}).catch(q=>{ot("** Journey error: Token Encoding **",q)})}).catch(m=>{ot("** Journey error: visitiq reconcile request **",m)}),eg=({signature:e,key:t,props:{counter:r="all",max:n=4},fsmp:{clientCredentials:o,serviceURL:a,paymentNegotiation:s}})=>{if(n==0)return;let p=window.location.pathname,d="pay_ent_fsmp",m=on.read(d),S,T;if(m&&(S=Wh({token:m}).decode({token:m,signature:e}),T=Gh(S)),Yh(S)){let E=Date.now();S={cnts:{},urls:[],iat:E,uat:E,iss:"journey"},T=void 0}if(Kh(p,S)){if(Qh(S,r,n)){si().then(E=>{oi.add(()=>ai({clientCredentials:o,serviceURL:a,initialClientState:T,nextState:S,fingerprintID:E,signature:e,key:t,tokenName:d,paymentNegotiation:s}))}).catch(E=>{ot("** FingerprintID error: **",E)});return}Zh(p,S,r)}return async()=>{let E=sn({signature:e,key:t});if(!!E)return E.encode({payload:S,signature:e,key:t}).then(q=>(q!==m&&on.write(d,q,ii),si().then(N=>{oi.add(()=>ai({clientCredentials:o,serviceURL:a,initialClientState:T,nextState:S,fingerprintID:N,signature:e,key:t,tokenName:d,paymentNegotiation:s}))}).catch(N=>{ot("** FingerprintID error: **",N)}),{count:S.cnts[r]})).catch(q=>{ot("** Journey error: Token Encoding **",q)})}};ci.exports={fsmp:eg}});var an=b((IA,li)=>{i();c();u();l();var{pass:tg}=Ua(),{sub:rg}=Ja(),{sample:ng}=Wa(),{msmp:og}=Va(),{free:sg}=Ya(),{sess:ag}=Qa(),{access:ig}=Xa(),{fsmp:cg}=ui();li.exports={pass:tg,sub:rg,sample:ng,msmp:og,fsmp:cg,free:sg,sess:ag,access:ig}});var pi=b((MA,di)=>{i();c();u();l();di.exports=y});var hi=b((HA,yi)=>{i();c();u();l();var ug=Te(),Je=an(),fi=pi(),mi=["sample","sub","pass","sess","asmp","usmp","msmp","fsmp","tmp","paid_ref","access"],lg=({payment:e={}})=>{let t=ug.tokens(),r=o=>t[o]||e[o],n={};return mi.filter(o=>r(o)).forEach(o=>n[o]=r(o)),n},dg=({user:e={},payment:t={},configuration:r=fi.configuration||{}})=>{var d,m,S;let n=((d=r.payment)==null?void 0:d.acceptableForms)||[],o=n.includes("sub"),a=n.includes("pass"),s=((m=r.payment)==null?void 0:m.acceptableScopes)||[],p=((S=r.access)==null?void 0:S.receipts)||[];return!!(e.isEntitled||Je.access({receipts:p})||o&&Je.sub()||a&&Je.pass({acceptableScopes:s})||o&&t.form==="sub"||a&&t.form==="pass"&&s.includes(t.scope))},pg=({user:e={},payment:t={},configuration:r=fi.configuration||{}})=>{var m,S,T;let n=((m=r.payment)==null?void 0:m.acceptableForms)||[],o=n.includes("sub"),a=n.includes("pass"),s=((S=r.payment)==null?void 0:S.acceptableScopes)||[],p=((T=r.access)==null?void 0:T.receipts)||[],d=[];return e.isEntitled&&d.push("verso"),Je.access({receipts:p})&&d.push("access token"),o&&Je.sub()&&d.push("sub token"),a&&Je.pass({acceptableScopes:s})&&d.push("pass token"),o&&t.form==="sub"&&d.push("sub payment"),a&&t.form==="pass"&&s.includes(t.scope)&&d.push("pass payment"),d};yi.exports={determine:dg,providers:pg,state:lg,knownForms:mi}});var vi=b(cn=>{i();c();u();l();var gi;(function(e){typeof DO_NOT_EXPORT_CRC>"u"?typeof cn=="object"?e(cn):typeof define=="function"&&define.amd?define(function(){var t={};return e(t),t}):e(gi={}):e(gi={})})(function(e){e.version="1.2.2";function t(){for(var P=0,W=new Array(256),x=0;x!=256;++x)P=x,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,W[x]=P;return typeof Int32Array<"u"?new Int32Array(W):W}var r=t();function n(P){var W=0,x=0,w=0,k=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(w=0;w!=256;++w)k[w]=P[w];for(w=0;w!=256;++w)for(x=P[w],W=256+w;W<4096;W+=256)x=k[W]=x>>>8^P[x&255];var A=[];for(w=1;w!=16;++w)A[w-1]=typeof Int32Array<"u"?k.subarray(w*256,w*256+256):k.slice(w*256,w*256+256);return A}var o=n(r),a=o[0],s=o[1],p=o[2],d=o[3],m=o[4],S=o[5],T=o[6],E=o[7],q=o[8],N=o[9],O=o[10],_=o[11],D=o[12],R=o[13],M=o[14];function U(P,W){for(var x=W^-1,w=0,k=P.length;w
")}],Nv=e=>typeof e!="string"?e:kn(e,/^\\{2}/)?Zt(e,/\\{2}/):Pv.reduce((t,{searcher:r,replacer:n})=>t.replace(r,n),e);oc.exports={apply:Nv}});var fc=b((AP,pc)=>{i();c();u();l();var Fv=Qe(),ac=sc(),{get:uc,escape:Ov}=G(),lc=Jt(),dc=(e,t=lc.viewport)=>typeof e=="object"&&(e.desktop||e.tablet||e.mobile)?e[t]:e,_v=({styles:e={}})=>{let r=Object.values(e).join("").replace(/(<([^>]+)>)/gi,"");return r?``:""},Rv=e=>{let t;try{let o=e.match(/^\//);t=new URL(o?`${window.location.origin}${e}`:e)}catch{return e}let{origin:r,pathname:n}=window.location;return t.searchParams.set("redirectURL",`${r}${n}`),t.href},ic={addRedirectURL:Rv},cc=(e,t)=>{let[r,n]=e.match(/[^()\s]+/g).reverse(),o=dc(uc(t,r));return ic[n]&&(o=ic[n](o)),o},Iv=(e,t)=>e.replace(/{{(\^|#)\s*(.*?)\s*}}([\s\S]*?){{\/\s*(\2)\s*}}/gm,(r,n,o,a)=>!dc(uc(t,o))^n==="#"?a:"").replace(/{{{\s*(.*?)\s*}}}/g,(r,n)=>ac.apply(cc(n,t)||"")).replace(/{{\s*(.*?)\s*}}/g,(r,n)=>ac.apply(Ov(cc(n,t)))).concat(_v(t));pc.exports={render:(e,t)=>Iv(e,{...t,bridge:Fv.name,templateData:JSON.stringify(t),viewport:lc.viewport})}});var Tn=b((OP,hc)=>{i();c();u();l();var Dv=ve(),jv=we(),Lv=jv.storageFor("unitRenderTimestamps"),mc={minute:6e4,hour:36e5,day:864e5,week:6048e5},yc=({configuration:{frequencyCap:e}={}})=>!!(e&&e.times&&e.multiplier&&e.timeFrame&&typeof e.times=="number"&&typeof e.multiplier=="number"&&mc[e.timeFrame]),Uv=(e,{read:t,isDisabled:r}=Lv)=>{if(!yc(e))return!1;if(!Dv.userHasConsentedTo("targeting")||r())return!0;let{frequencyCap:n}=e.configuration,o=t(e.key)||{};return o.lastRenderTimestamp?Date.now()-o.lastRenderTimestamp<=mc[n.timeFrame]/(n.times/n.multiplier):!1};hc.exports={hasValidFrequencyCap:yc,hasReachedRenderLimit:Uv}});var vc=b((jP,gc)=>{i();c();u();l();var Mv=we(),{hasValidFrequencyCap:Jv}=Tn(),Bv=Mv.storageFor("unitRenderTimestamps"),$v=(e,{read:t,write:r,isDisabled:n}=Bv)=>{if(!Jv(e)||n())return;let o=t(e.key)||{};o.lastRenderTimestamp=Date.now(),r(e.key,o)};gc.exports={track:$v}});var Xt=b((BP,wc)=>{i();c();u();l();var Wv=vc(),Hv=Tn();wc.exports={...Wv,...Hv}});var Sc=b((VP,bc)=>{i();c();u();l();var Gv=e=>{Array.from(e.getElementsByTagName("script")).forEach(r=>{let n=document.createElement("script"),o=document.getElementsByTagName("script")[0]||document.documentElement;n.text=r.text?`(() => {${r.text}})();`:"",o.parentNode.insertBefore(n,o)})};bc.exports={execute:Gv}});var kc=b((ZP,Ec)=>{i();c();u();l();var qc=e=>Array.prototype.slice.apply(e),Vv=(e,t)=>{let r;return function(){let n=this,o=arguments;clearTimeout(r),r=setTimeout(()=>e.apply(n,o),t)}},zv=(e,t)=>{let r,n=[];return function(){let o=this;n.push(qc(arguments)),clearTimeout(r),r=setTimeout(()=>{e.apply(o,[qc(n)]),n.length=0},t)}};Ec.exports={debounce:Vv,cumulativeArgumentDebounce:zv}});var xc=b((nN,Tc)=>{i();c();u();l();var{cumulativeArgumentDebounce:Yv}=kc(),Kv=1e3,Qv=e=>{!e.configuration.waypointEvent||xn.fireWaypoint(e.configuration.waypointEvent)},Zv=e=>{let t={...e,_topic:"waypoint.journey"};xn.sendEvent(t)},Xv=Yv(e=>{let t=e.map(a=>a[0]),r=JSON.stringify(t)||"",n="/martech/api/funnel?_topic=waypoint.journey&api_key=d3Jlbg",o=!1;if(navigator&&typeof navigator.sendBeacon=="function"&&typeof window.Blob=="function"&&(o=navigator.sendBeacon(n,r)),!o)if(r.length<1500){let a=`${n}&data=${encodeURIComponent(r)}`,s=new Image;s.src=a}else{let a=new XMLHttpRequest;a.open("POST",n,!0),a.setRequestHeader("Content-type","application/json"),a.send(r)}},Kv),xn={fire:Qv,fireWaypoint:Zv,sendEvent:Xv};Tc.exports=xn});var Cc=b((cN,Ac)=>{i();c();u();l();var ew=e=>{let t=e.payment,{[t]:{cnt:r,cnts:n,max:o}={}}=e;return t==="free"?{}:{paywall:{exceededMax:t==="",...r&&{cnt:r},...n&&{cnts:n},...o&&{max:o}}}};Ac.exports={paywallPayloadGenerator:ew}});var Nc=b((fN,Pc)=>{i();c();u();l();var tw=e=>{let t=e.payment,{cnt:r,max:n}=e.usmp||e.asmp||{};return t==="free"?{}:{paywall:{exceededMax:t==="",...r&&{cnt:r},...n&&{max:n}}}};Pc.exports={cniPaymentPayloadGenerator:tw}});var Oc=b((vN,Fc)=>{i();c();u();l();var rw=e=>{let t=e.payment,{[t]:{cnt:r,cnts:n}={}}=e,o;return t==="free"?{}:((n||r)&&(o=n?Object.entries(n).map(([a,s])=>({name:a,count:s})):[{count:r}]),{is_exceeded:t==="",...o&&{meter:o}})};Fc.exports={snowplowPayloadGenerator:rw}});var Rc=b((EN,_c)=>{i();c();u();l();var nw={...Cc(),...Nc(),...Oc()},ow=e=>nw[e];_c.exports={generatorFor:ow}});var $e=b((CN,jc)=>{i();c();u();l();var{matchesType:Ic}=Ue(),sw=Z(),aw=rt(),iw=we(),{isAPresentationUnit:cw,isAnActionUnit:uw}=ue(),lw=iw.storageFor("journey"),Dc=()=>lw.read("paywall-suppression")===!1||new URL(window.location).searchParams.get("journey-paywall-suppression")==="false",dw=e=>!!cw(e)&&Ic(e,["paywall"])||!!uw(e)&&Ic(e,["hide-content"]),pw=({unit:e,rules:t,suppressOnRoadblock:r=!1})=>(r||aw.isEnabled({rule:"commercialSuppression",rules:t}))&&!Dc()&&dw(e)&&sw.hasRoadblockBeenDetected();jc.exports={isPaywallSuppressionDisabled:Dc,ofPaywall:pw}});var Mc=b((_N,Uc)=>{i();c();u();l();var fw=$e(),mw=jt(),yw=ue(),{isUniq:hw}=G(),{unitTypes:gw}=Ue(),vw=e=>!fw.ofPaywall({unit:e}),Lc=({campaign:e,campaigns:t,state:r,filter:n=()=>!0})=>mw.resolveUnits({type:yw.isAPresentationUnit,campaign:e,campaigns:t,state:r}).filter(n).map(gw).flat().filter(hw),ww=e=>Lc(e),bw=e=>Lc({...e,filter:vw});Uc.exports={features:ww,activeFeatures:bw}});var An=b((LN,Gc)=>{i();c();u();l();var{generatorFor:Jc}=Rc(),Sw=Ar(),Wc=V(),qw=Z(),{getCurrentState:Ew}=bn(),{log:Hc}=z(),{activeFeatures:kw}=Mc(),Tw=["type","selector","payload","name"],er={expanded:"expanded",collapsed:"collapsed"},xw=(e,t={})=>{(window.dataLayer||[]).push({event:`${e.name}-${e.type}`,...t})},Aw=(e,t={})=>{Wc.add({type:"analytics-event",event:e,...t})},Cw=(e,t={})=>{if(!!window.trackSelfDescribingEvent)try{let r={schema:"iglu:com.condenast/messaging_unit_event/jsonschema/3-0-3",data:{campaign_key:e.campaignKey,campaign_name:e.campaignName,is_paywalled:e.isPaywalled,paywall_pageview_id:e.pageviewId,paywall_source:e.paywallSource,subject:e.name,type:e.type,state:e.state,...t}};window.trackSelfDescribingEvent({event:r}),Wc.add({type:"snowplow-event",event:r})}catch(r){Hc("** Journey error: Failed to send Snowplow Event **",r)}},Pw=(e,t)=>{if(!!window.snowplowQueue)try{window.snowplowQueue.push(()=>Cw(e,t))}catch(r){Hc("** Journey error: Failed to add event to Snowplow Queue **",r)}},Bc=e=>{if(!e)return"";let t=/[?&]source=([^&]+).*$/,r=a=>t.test(decodeURIComponent(a.getAttribute("href"))),n;if(r(e)?n=e:n=Array.from(e.querySelectorAll("a[href]")).find(r),!n)return"";let o=decodeURIComponent(n.getAttribute("href")).match(t);return o?o[1]:""},tr=(e,t)=>{let r=Jc(e.payload),n=r?r(t):{};Object.entries(e).filter(([o])=>!Tw.includes(o)).forEach(([o,a])=>n[o]=a),xw(e,n),Aw(e,n),Pw(e,Jc("snowplowPayloadGenerator")(t))},$c=(e,t=null)=>{if(!e)return;let r=e.querySelector("[aria-expanded]");if(!r)return;let n=r.getAttribute("aria-expanded")==="true";return(t?t.getAttribute("aria-expanded")!==null:!1)?n?er.collapsed:er.expanded:n?er.expanded:er.collapsed},Nw=(e,t,r,n,o=[])=>{var N,O;let{configuration:a,component:s,slot:p}=e;if(!a)return;let{analytics:{impressionEvent:d,clickEvent:m}={}}=a,S=(O=(N=window==null?void 0:window.cns)==null?void 0:N.library)==null?void 0:O.runtimeId,E=kw({campaign:n,campaigns:o,state:r}).includes("paywall"),q=()=>{let _=Bc(t.firstChild),D=$c(t);return{type:"impression",...d,...S&&{pageviewId:S},..._&&{paywallSource:_},campaignKey:n.key,campaignName:n.name,...D&&{state:D},isPaywalled:E}};if(d)if(s&&p==="NavRollover"){let _=qw.whenJourneyComponentNavRolloverAppears(()=>{!_||(tr(q(),Ew()),_())})}else Sw.onElementAppearance(t.firstChild,()=>tr(q(),r));if(m){let _=[];s&&p==="PaywallBar"&&(_=[{name:"paywall-bar-chevron-button",selector:"[class*=PaywallBarChevronButton]"}]),[].concat(m,_).forEach(R=>{let M=new WeakSet,U=()=>{(t.querySelectorAll(R.selector)||[]).forEach(P=>{M.has(P)||(P.addEventListener("click",()=>{let W=Bc(P),x=$c(t,P),w={type:"click",...R,...S&&{pageviewId:S},...W&&{paywallSource:W},campaignKey:n.key,campaignName:n.name,...x&&{state:x},isPaywalled:E};tr(w,r)}),M.add(P))})};U(),new MutationObserver(U).observe(t,{childList:!0,subtree:!0})})}};Gc.exports={send:tr,setup:Nw}});var Qc=b(($N,Kc)=>{i();c();u();l();var Fw=Xi(),rr=it(),Vc=Ce(),Ow=fc(),_w=ue(),Rw=ve(),Iw=Xt(),Dw=Sc(),jw=xc(),Lw=An(),{containerFor:ct}=Qr(),{log:zc}=z(),Uw=V(),Mw=$e(),Jw=v,Bw=e=>_w.isATemplatePresentationUnit(e),Yc=e=>{let t=ct(e.slot);if(!!t)return t.locateElement()},$w=e=>{let t=ct(e.slot);if(!!t)return t.createElement()},Ww=e=>ct(e)&&ct(e).isElementPresent(),Hw=(e,t,r,n,o)=>{try{let a=e.template.classname;if(!Ww(a))return;if(Mw.ofPaywall({unit:e,rules:n})){Uw.add({type:"suppressed-unit",name:e.name});return}rr.unitRendering(e,r);let s=Yc(e)||$w(e);if(!s)return;let p=e.template.markup||Jw[e.template.name];if(!p)return;Rw.userHasConsentedTo("targeting")&&Iw.track(e);let d=Fw.toHTMLText(p),m={...e.data,state:t};return s.innerHTML=Ow.render(d,m),Lw.setup(e,s,t,r,o),Dw.execute(s),jw.fire(e),Vc.add(e,s),rr.unitRendered(e,r),s}catch(a){zc(`** CM Error ${e.name} **`,a)}},Gw=(e,t,r)=>{try{rr.slotEmptying(t,r),Vc.empty(e);let n=ct(e);if(!n)return;let o=n.locateElement();if(!o)return;o.innerHTML="",rr.slotEmptied(t,r)}catch(n){zc(`** CM Error ${t.name} **`,n)}};Kc.exports={isSupported:Bw,locateElement:Yc,render:Hw,empty:Gw}});var tu=b((zN,eu)=>{i();c();u();l();var Vw=An(),Zc=Z(),nr=it(),Cn=Ce(),zw=ve(),Yw=ue(),Kw=Xt(),{log:Xc}=z(),Qw=V(),Zw=$e(),Xw=e=>Yw.isAComponentPresentationUnit(e),eb=()=>{},tb=(e,t,r,n,o)=>{try{if(Zw.ofPaywall({unit:e,rules:n})){Qw.add({type:"suppressed-unit",name:e.name});return}Cn.add(e);let a;a=Zc.whenJourneyUnitRenderEnds(({payload:s})=>{if(!a)return;let{element:p,unit:d}=s;e.name===d.name&&(zw.userHasConsentedTo("targeting")&&Kw.track(e),Cn.add(e,p),nr.unitRendered(e,r,{emit:!1}),Vw.setup(e,p,t,r,o),s.keepAlive||a())}),nr.unitRendering(e,r)}catch(a){Xc(`** CM Error ${e.name} **`,a)}},rb=(e,t,r)=>{try{let n;n=Zc.whenJourneyUnitEmptyEnds(({payload:o})=>{if(!n)return;let{unit:a}=o;t.name===a.name&&(Cn.empty(e),nr.slotEmptied(t,r,{emit:!1}),n())}),nr.slotEmptying(t,r)}catch(n){Xc(`** CM Error ${t.name} **`,n)}};eu.exports={isSupported:Xw,locateElement:eb,render:tb,empty:rb}});var ou=b((XN,nu)=>{i();c();u();l();var nb=Qc(),ob=tu(),ru=Ce(),sb=[nb,ob],Pn=e=>sb.find(t=>t.isSupported(e)),ab=e=>Pn(e).locateElement(e),ib=(e,...t)=>Pn(e).render(e,...t),cb=(e,...t)=>{if(ru.isEmpty(e))return;let r=ru.unitIn(e);return Pn(r).empty(e,r,...t)};nu.exports={locateElement:ab,render:ib,empty:cb}});var au=b((o1,su)=>{i();c();u();l();var ub=e=>{!window.paywallGateway||typeof window.paywallGateway.truncateContent!="function"||window.paywallGateway.truncateContent(e)};su.exports={truncateContent:ub}});var cu=b((u1,iu)=>{i();c();u();l();var lb=Ce(),db=({mark:e,selector:t,items:r})=>{let n=document;if(e&&(n=document.querySelector(`[data-journey-hook="${e}"]`),!n))return;let o=()=>{let s;if(t?s=n.querySelectorAll(t):s=n.children,!s)return;let p=lb.elements();Array.from(s).forEach((d,m)=>{!p.some(S=>d.contains(S))&&m>=r&&d&&(d.matches('[class*="NewsletterSubscribeFormWrapper"], [class*="NewsletterSubscribeFormWrapper"] + p')?(d.innerHTML="",d.style.display="none"):d.remove&&d.remove())})};o(),new MutationObserver((s=[])=>{!s.some(({addedNodes:p=[]})=>p.length)||o()}).observe(n,{childList:!0,subtree:!0})};iu.exports={truncateMarkedContent:db}});var lu=b((m1,uu)=>{i();c();u();l();var pb=({selector:e,items:t})=>{let r=document;if(e){let n=window.innerWidth,o=180;n<=767?o=320:n<=1023&&(o=254);let a=r.getElementsByClassName(e);a=Array.from(a);let s=[];a.forEach(T=>{T.classList.length===1&&s.push(T)}),a=s[t];let p=r.documentElement.scrollHeight,d=function(E){E.map(q=>{q.isIntersecting&&(p=window.pageYOffset+o,window.scrollTo(0,p))})},m={threshold:0};new IntersectionObserver(d,m).observe(a),window.onscroll=function(){window.pageYOffset>p&&window.scrollTo(0,p)};return}};uu.exports={limitScrolling:pb}});var fu=b((w1,pu)=>{i();c();u();l();var fb=Fr(),mb=oe(),du=e=>(t,r)=>mb.now().getTime()-t[e]>fb(r),yb={created:du("iat"),updated:du("uat")},hb=(e,{since:t,time:r})=>yb[t](e,r);pu.exports={isExpired:hb}});var yu=b((k1,mu)=>{i();c();u();l();var or=oe(),gb=/([0-9]{4}|\*)[/-]([0-9]{1,2}|\*)[/-]([0-9]{1,2}|\*)/,vb=({dateCreated:e,year:t,month:r,day:n})=>{let o=or.now();return o.setHours(0,0,0,0),n!=="*"&&o.setDate(parseInt(n)),r!=="*"&&o.setMonth(parseInt(r)-1),t!=="*"&&o.setFullYear(parseInt(t)),n==="*"&&r!=="*"&&t!=="*"&&(o.setDate(e.getDate()),o.getMonth()===e.getMonth()&&o.getFullYear()===e.getFullYear()&&o.setDate(o.getDate()+1)),r==="*"&&n!=="*"&&(o.setMonth(e.getMonth()),o.getDate()<=e.getDate()&&o.getFullYear()===e.getFullYear()&&o.setMonth(o.getMonth()+1)),t==="*"&&n!=="*"&&(o.setFullYear(e.getFullYear()),o.getMonth()<=e.getMonth()&&o.getDate()<=e.getDate()&&o.setFullYear(o.getFullYear()+1)),o},wb=(e,t)=>{let[,r,n,o]=e.match(gb);if(r!=="*"&&n!=="*"&&o!=="*")return or.from({dateString:e});let a=or.from({timestamp:t.iat});return vb({dateCreated:a,year:r,month:n,day:o})},bb=(e,{date:t})=>{if(t){let r=or.now();r.setHours(0,0,0,0);let n=wb(t,e);return n.setHours(0,0,0,0),r>=n}};mu.exports={isExpired:bb}});var ut=b((P1,hu)=>{i();c();u();l();var Sb=fu(),qb=yu();hu.exports={after:Sb,on:qb}});var wu=b((R1,vu)=>{i();c();u();l();var Eb=ut(),kb=V(),gu=Te(),Tb=({rule:e,args:t})=>{let r=gu.payloadFor("sample"),{isExpired:n}=Eb[e];!r||!n(r,t)||(gu.remove("sample"),kb.add({type:"sample-expired",payload:r}))};vu.exports={execute:Tb}});var qu=b((U1,Su)=>{i();c();u();l();var xb=ut(),Ab=V(),bu=Te(),Cb=({rule:e,args:t})=>{let r=bu.payloadFor("msmp"),{isExpired:n}=xb[e];!r||!n(r,t)||(bu.remove("msmp"),Ab.add({type:"msmp-expired",payload:r}))};Su.exports={execute:Cb}});var Tu=b((W1,ku)=>{i();c();u();l();var Pb=ut(),Nb=V(),Eu=Te(),Fb=({rule:e,args:t})=>{let r=Eu.payloadFor("tmp"),{isExpired:n}=Pb[e];!r||!n(r,t)||(Eu.remove("tmp"),Nb.add({type:"tmp-expired",payload:r}))};ku.exports={execute:Fb}});var Cu=b((Y1,Au)=>{i();c();u();l();var Ob=ut(),_b=V(),xu=Te(),Rb=tn(),Ib=nn(),Db=({rule:e,state:{fingerprintID:t},args:r})=>{let n=xu.payloadFor("fsmp"),{isExpired:o}=Ob[e];if(!n||!o(n,r))return;xu.remove("fsmp");let{clientCredentials:a,serviceURL:s}=r;Ib.add(()=>Rb.reconcile({client:window.fetch,clientCredentials:a,serviceURL:s,initialClientState:n,nextState:{},fingerprintID:t}),"token-expiry-reconcile"),_b.add({type:"fsmp-expired",payload:n})};Au.exports={execute:Db}});var Nu=b((eF,Pu)=>{i();c();u();l();var jb=wu(),Lb=qu(),Ub=Tu(),Mb=Cu();Pu.exports={sample:jb,msmp:Lb,fsmp:Mb,tmp:Ub}});var Ou=b((sF,Fu)=>{i();c();u();l();var Jb=Nu(),Bb=e=>Jb[e],$b=({paymentForm:e,rule:t,state:r,...n})=>{Bb(e).execute({rule:t,args:n,state:r})};Fu.exports={tokenExpiration:$b}});var Iu=b((lF,Ru)=>{i();c();u();l();var Wb=Y(),_u=oe(),{bestAvailableCodec:Hb}=ie(),{log:Gb}=z(),Vb=({name:e,payload:t,signature:r,key:n,expirationInSeconds:o=_u.oneYearInSeconds})=>{let a=_u.now().getTime(),s=Hb({key:n,signature:r});if(!!s)return s.encode({payload:{...t,iat:a,uat:a},key:n,signature:r}).then(p=>{!p||Wb.write(e,p,o)}).catch(p=>{Gb("** Journey error: token encoding failure **",p)})};Ru.exports={issueToken:Vb}});var ju=b((yF,Du)=>{i();c();u();l();var zb=({selector:e})=>{let t=window.document.querySelector(e);!t||(t.style.cssText+="display: none;")};Du.exports={hideDOMElement:zb}});var Uu=b((bF,Lu)=>{i();c();u();l();var sr=Y(),{codecFor:Yb}=ie(),{log:Kb}=z(),Qb=({tokens:e,key:t,signature:r})=>{let n=({name:s,token:p,codec:d})=>d.verify({token:p,key:t,signature:r}).then(m=>{m||sr.remove(s)}).catch(m=>{Kb("** Journey error: Invalid token **",m),sr.remove(s)}),o=e.map(s=>({name:s,token:sr.read(s)})).map(({name:s,token:p})=>({name:s,token:p,codec:Yb({token:p})}));o.filter(({codec:s})=>!s).forEach(({name:s})=>sr.remove(s));let a=o.filter(({codec:s})=>!!s).map(n);return Promise.all(a)};Lu.exports={verifyTokenSignature:Qb}});var lt=b((TF,Mu)=>{i();c();u();l();Mu.exports={access:"CN_access",auth:"CN_userAuth",openid:"CN_token_id",openaccess:"CN_token_access",smp:"pay_ent_smp",asmp:"pay_ent_asmp",usmp:"pay_ent_usmp",msmp:"pay_ent_msmp",sub:"pay_ent_sub",pass:"pay_ent_pass",sess:"pay_ent_sess",tmp:"pay_ent_tmp",events:"pay_events",audit:"pay_audit"}});var $u=b((NF,Bu)=>{i();c();u();l();var Nn=lt(),Fn=Y(),{codecFor:Zb}=ie(),{log:Xb}=z(),Ju=e=>{let t=Fn.read(Nn[e]);if(!t)return;let r=Zb({token:t}).decode({token:t});if(!r||!r.exp||r.iss==="Journey")return;let n=r.exp.toString().length,o=new Date(Date.now()),a=o.getUTCFullYear()*1e4+(o.getUTCMonth()+1)*100+o.getUTCDate(),s=Number(r.exp);return n===8&&a>s||n===6&&a>s*100+31},eS=({client:e,payload:t={}})=>{let r="/api/payment/revalidate",n={method:"POST",headers:{accept:"application/json","content-type":"application/json"},credentials:"same-origin",cache:"no-cache",body:JSON.stringify(t)};return e(r,n).then(o=>o.json()).then(o=>(o&&!o.requestSuccess&&console.warn(`Revalidate request: ${o.message}`),o)).catch(o=>{Xb("** Journey error: Revalidation **",o)})},tS=({client:e=fetch,acceptableForms:t,acceptableScopes:r})=>{let n=t.filter(Ju);if(n.length===0)return Promise.resolve();let o={openid:Fn.read(Nn.openid)};return n.forEach(a=>o[a]=Fn.read(Nn[a])),eS({client:e,payload:{tokens:o,acceptableForms:t,acceptableScopes:r}})};Bu.exports={requiresRevalidation:Ju,revalidateEntitlementTokens:tS}});var Hu=b((IF,Wu)=>{i();c();u();l();var We=lt(),He=Y(),{log:rS}=z(),nS=2419200,oS=({client:e,payload:t={}})=>{let r="/api/payment/validate",n={method:"POST",headers:{accept:"application/json","content-type":"application/json"},credentials:"same-origin",cache:"no-cache",body:JSON.stringify(t)};return e(r,n).then(o=>o.json()).then(o=>(o&&!o.requestSuccess&&console.warn(`Validate request: ${o.message}`),He.write(We.audit,1,nS),o)).catch(o=>{rS("** Journey error: Validation **",o)})},sS=({client:e=fetch,acceptableForms:t,acceptableScopes:r})=>{if(He.read(We.audit)||!He.read(We.openid))return Promise.resolve();let a=t.filter(p=>!He.read(We[p]));if(a.length===0)return Promise.resolve();let s={openid:He.read(We.openid)};return a.forEach(p=>s[p]=He.read(We[p])),oS({client:e,payload:{tokens:s,acceptableForms:t,acceptableScopes:r}})};Wu.exports={auditEntitlementTokens:sS}});var Zu=b((MF,Qu)=>{i();c();u();l();var zu=lt(),Yu=Y(),{log:aS}=z(),On=V(),Ku=e=>Yu.read(zu[e]),dt=e=>!!Ku(e),Gu=e=>Yu.remove(zu[e]),Vu=()=>{!dt("access")||(dt("sub")&&(Gu("sub"),On.add({type:"token-exchange",event:{id:"remove-token",token:"sub"}})),dt("pass")&&(Gu("pass"),On.add({type:"token-exchange",event:{id:"remove-token",token:"pass"}})))},iS=({client:e,openaccess:t})=>{let r="/api/access/revalidate",n={method:"GET",headers:{accept:"application/json","content-type":"application/json",Authorization:`Bearer ${t}`,"user-agent":"Journey/1.0.0"},credentials:"same-origin",cache:"no-cache"};return e(r,n).then(o=>(On.add({type:"token-exchange",event:{id:"new-token",token:"access"}}),o.json())).catch(o=>{aS("** Journey error: Request Martech Access Token **",o)})},cS=({client:e=fetch,rollout:t=100})=>{t