(function(){function cfg(n){var e=document.getElementById("wpc-cfg-"+n);if(!e)return null;try{return JSON.parse(e.textContent)}catch(x){return null}}function wl(t,f,o){if(t==="load"&&document.readyState==="complete"){setTimeout(f,0);return}if(o&&o.once&&window.wpcAfterHeroGesture===1&&/^(?:pointerdown|keydown|touchstart|wheel|scroll|mousemove)$/.test(t)){f();return}window.addEventListener.apply(window,arguments)}try{var cl=cfg("lf");if(cl){(function(ag,hh){function faceRanges(range){ var parts=String(range||"").split(","),ranges=[]; for(var i=0;i=ranges[i][0]&&cp<=ranges[i][1])return cp;} } return -1; } function primaryFamily(stack){ return (stack||"").match(/^\s*(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[^,]*)/)[0].replace(/["']/g,"").trim().toLowerCase(); } function loadFace(face){try{return face.load();}catch(e){return Promise.reject(e);}} function privateUseRange(ranges){return ranges.length>0&&ranges.every(function(r){return r[0]<=r[1]&&((r[0]>=0xe000&&r[1]<=0xf8ff)||(r[0]>=0xf0000&&r[1]<=0x10ffff));});} function iconCandidate(face,ranges,families){ var family=String(face.family||"").replace(/["']/g,"").trim().toLowerCase(); var glyphs=families[family]||(families[family]=Object.create(null)); return {face:face,ranges:ranges,glyphs:glyphs}; } function iconUsed(candidate){return faceCodepoint(candidate.ranges,candidate.glyphs)!==-1;} function scanIconUse(families,ready,readText,held){ function record(text,glyphs,puaOnly){ var chars=text.match(puaOnly?/[\ue000-\uf8ff]|[\udb80-\udbff][\udc00-\udfff]/g:/[\ud800-\udbff][\udc00-\udfff]|[\s\S]/g); for(var i=0;chars&&i0x10ffff||(cp>=0xd800&&cp<=0xdfff))return "\ufffd"; if(cp<=0xffff)return String.fromCharCode(cp); cp-=0x10000; return String.fromCharCode(0xd800+(cp>>10),0xdc00+(cp&0x3ff)); }); record(text,glyphs); } } } var started=window.performance&&performance.now?performance.now():0,body=document.body,elements=[],i=body?-1:0,hidden=null; try{elements=document.querySelectorAll("body *");}catch(e){} var limit=Math.min(elements.length,2000+i); function step(){ try{ var end=Math.min(i+120,limit); for(;i=0&&i<600&&family)readText(style,stack,family); if(hidden&&hidden.contains(el))continue; hidden=style.display==="none"||style.contentVisibility==="hidden"?el:null; if(hidden)continue; var glyphs=families[family]; if(glyphs&&style.visibility!=="hidden"&&style.visibility!=="collapse"){ for(var node=el.firstChild;node;node=node.nextSibling){if(node.nodeType===3)record(node.nodeValue,glyphs,true);} } readPseudo(el,"::before"); readPseudo(el,"::after"); } }catch(e){i=limit;} if(i=48&&!(c>=8192&&c<=8303)&&!(c>=55296&&c<=57343)&&c!==9676&&!(c>=65024&&c<=65039)){tx[c]=1}}}catch(e){}return tx};var pk=function(rg,ranges){return !rg||rg==="U+0-10FFFF"?77:faceCodepoint(ranges,ts(),32)};var ux=null;var noteFontUse=function(g,sk,fm){if(fm)ux[fm+"|"+g.fontWeight+"|"+g.fontStyle]=sk.indexOf(fm+" fallback")!==-1?2:1};var us=function(){if(ux)return ux;ux={};try{var e2=document.querySelectorAll("body *");for(var i=0;i=lo-100&&w<=hi+100&&u[k]===2)return true}}return false};var lfm=null;var lfn=function(v){return String(v||"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase()};var lfk=function(fa3,wt,st,ur,sr){var w=lfn(wt),s4=lfn(sr);return lfn(fa3)+"|"+(w===""||w==="normal"?"400":w)+"|"+(lfn(st)||"normal")+"|"+(lfn(ur)||"u+0-10ffff").split(" ").join("")+"|"+(s4===""||s4==="normal"?"100%":s4)};var lfy=function(f){return lfk(f.family,f.weight,f.style,f.unicodeRange,f.stretch)};var lfs=function(f){if(!lfm){lfm={};try{var ss=document.styleSheets;for(var i=0;ss&&i=wn3[ky[i]][1])wn3[ky[i]]=[i,at]}}catch(e){}}for(var m=0;m=sl[s2][0]&&uw<=sl[s2][1])return}if(!used[fm])nu++;used[fm]=1;(uws[fm]=uws[fm]||{})[uw]=1};if(ag){for(var g=0;gvh||r.bottom<0)continue;k++;var cs=getComputedStyle(el),fm=pf(cs.fontFamily);if(!fm)continue;ad(fm,wn2(cs.fontWeight))}}var lk=document.querySelectorAll("link[data-wpc-lf]");for(var q=0;q0);if(lf!==null){var fs=lf.split(",");for(var x=0;x0)o[bd[i].slice(0,p).trim().toLowerCase()]=bd[i].slice(p+1).trim()}return o};var families=Object.create(null),waiters=[],heldIcons=[];for(var hk in held){(function(fk,rs){var fl=[],loads=[],icons=[],uw=uws[fk]||{};for(var i=0;i=lo&&+w<=hi){hit=true;break}}if(!hit||!d.src)continue;var range=d["unicode-range"],ranges=faceRanges(range),icon=privateUseRange(ranges);if(!icon&&pk(range,ranges)===-1)continue;try{var f=new FontFace((d["font-family"]||"").replace(/["']/g,"").trim(),d.src,{weight:d["font-weight"]||"400",style:d["font-style"]||"normal",unicodeRange:range||"U+0-10FFFF",display:d["font-display"]||"auto"});fl.push(f);if(icon){var ic=iconCandidate(f,ranges,families);icons.push(ic);heldIcons.push(ic)}else{loads.push(loadFace(f))}}catch(e){}}var asCss=function(){ins(rs.join(""),"wpc-late-faces-atf-"+fk.replace(/[^a-z0-9]/g,""))};if(!fl.length){asCss();return}if(icons.length){loads.push(new Promise(function(resolve){waiters.push(resolve)}).then(function(){return Promise.all(icons.filter(iconUsed).map(function(icon){return loadFace(icon.face)}))}))}Promise.all(loads).then(function(){for(var i=0;i-1)}catch(x){}if(ok){try{po=new PerformanceObserver(function(l){var a=l.getEntries();for(var i=0;i-1){go("entry");return}}});po.observe({type:"largest-contentful-paint",buffered:!0})}catch(x){po=0}}var ld=function(){setTimeout(function(){go("load")},100)};if(document.readyState==="complete"){ld()}else{window.addEventListener("load",ld,{once:!0})}tm=setTimeout(function(){go("timeout")},+hh.t>0?+hh.t:3000)};(hh&&hh.u&&hh.u.length?l1g(fa):fa());var f=function(){var e=document.getElementById("wpc-late-faces");if(!window.wpcSwapLateBarrier){var lk=document.querySelectorAll("link[data-wpc-lf]");for(var q=0;q=1)return; var atf=[],lcp=null,sent=0,hu=0,cen=null; var gestures=['pointerdown','keydown','touchstart','wheel','scroll','mousemove']; function noteGesture(e){ if(!e||e.isTrusted!==true)return; if(e.type==='scroll'&&!(navigator.userActivation&&navigator.userActivation.hasBeenActive))return; hu=1; gestures.forEach(function(ev){window.removeEventListener(ev,noteGesture,true)}); } if(navigator.userActivation&&navigator.userActivation.hasBeenActive)hu=1; else gestures.forEach(function(ev){ (window.wpcNativeAddEventListener||addEventListener).call(window,ev,noteGesture,{passive:true,capture:true}); }); requestAnimationFrame(function(){var vh=innerHeight,vw=innerWidth,xs=document.images,i,im,r; for(i=0;i=vh||r.left>=vw)continue; atf.push({classes:String(im.className||'').split(/\s+/).slice(0,2),slot_w:Math.round(r.width),slot_h:Math.round(r.height),intrinsic_w:im.naturalWidth||0,current_src:rumUrl(im.currentSrc||im.src,300),loading:im.getAttribute('loading')||''})}}); try{new PerformanceObserver(function(l){var e=l.getEntries();if(!e.length)return;var x=e[e.length-1],el=x.element; var sel=el?el.tagName.toLowerCase()+(el.className?'.'+String(el.className).split(/\s+/).slice(0,2).join('.'):''):''; var rr=el&&el.getBoundingClientRect?el.getBoundingClientRect():{width:0,height:0,x:0,y:0}; lcp={selector:sel.slice(0,120),url:x.url?String(x.url):null,rect:{w:Math.round(rr.width),h:Math.round(rr.height),x:Math.round(rr.x),y:Math.round(rr.y)},t_ms:Math.round(x.startTime)};}).observe({type:'largest-contentful-paint',buffered:true})}catch(e){} function fontsUsed(){var fu=[];try{document.fonts.forEach(function(f){if(f.status==='loaded'){var k=(f.family+'|'+f.weight+'|'+f.style).slice(0,120);if(fu.indexOf(k)<0&&fu.length<64)fu.push(k)}})}catch(e){}return fu} function census(done){try{var vh=innerHeight,vw=innerWidth,all=document.body.getElementsByTagName('*'),els=[],ids=[],i,e,r; for(i=0;i=vh||r.left>=vw||r.right<=0)continue;els.push(e);if(e.id&&ids.length<200)ids.push(String(e.id).slice(0,80))} var sels=[],seen={},trunc=false,sheets=[].slice.call(document.styleSheets),si=0,ori=location.origin,shr=0,shc=0; function rules(list){var k,rl,st,j,m,p,parts,hit;for(k=0;k=2000){trunc=true;return} if(rl.type===1&&rl.selectorText){st=String(rl.selectorText);if(st.length>300||seen[st])continue;parts=st.split(',');hit=false; for(j=0;j=2000){trunc=true;break}} if(si0))continue; x=((u.pathname.match(/\.([a-z0-9]+)$/i)||[])[1]||'').toLowerCase(); t=/^(woff2?|ttf|otf|eot)$/.test(x)?'font':x==='css'?'css':/^m?js$/.test(x)?'js':/^(jpe?g|png|gif|webp|avif|svg|bmp|ico)$/.test(x)?'img':e.initiatorType==='script'?'js':e.initiatorType==='img'?'img':''; if(!t)continue; f={type:t,path:rumPath(u.pathname,200),ttfb_ms:Math.max(0,Math.round(e.responseStart-(e.requestStart||e.startTime))),dl_ms:Math.max(0,Math.round(e.responseEnd-e.responseStart)),transfer:e.transferSize||0,body:e.encodedBodySize||0,lcp:!!lu&&String(e.name)===lu}; if(f.lcp)fs.unshift(f);else fs.push(f)} fs=fs.slice(0,10);o={lcp_ms:lcp?lcp.t_ms:0,lcp_cdn:z(lh),files:fs}; if(navigator.connection&&navigator.connection.effectiveType)o.ect=String(navigator.connection.effectiveType); while(fs.length&&JSON.stringify(o).length>2048)fs.pop(); return fs.length||o.lcp_cdn?o:null}catch(q){return null}} function body(){var dev=(matchMedia('(max-width:767px)').matches||/Mobi|Android/i.test(navigator.userAgent))?'mobile':'desktop'; var ph='0'+(lcp?'1':'')+(cen?'2':''),shs=cen&&cen.sheets?cen.sheets:{total:0,readable:0,cors_blocked:0}; var o={v:2,url:rumPageUrl(),sr:cr.r,device:dev,device_ua:cr.du,gen_uuid:cr.gu,plugin_version:cr.pv,phases:ph,sheets:shs,selector_source:cen&&shs.readable>0?'cssRules':'none',viewport:{w:innerWidth,h:innerHeight,dpr:devicePixelRatio||1},lcp:lcp&&Object.assign({},lcp,{url:rumUrl(lcp.url,300)||null}),atf_images:atf,fonts_used:fontsUsed(),atf_selectors:cen?cen.atf_selectors:[],atf_ids:cen?cen.atf_ids:[],truncated:cen?!!cen.truncated:true};return o} function form(s){return new Blob(['d='+encodeURIComponent(btoa(s))],{type:'application/x-www-form-urlencoded'})} function bin(ab){var u=new Uint8Array(ab),s='',i;for(i=0;i=0?Math.min(2147483647,Math.round(value)):null; } function rtKb(bytes){return Math.min(2147483647,Math.round(bytes/1024*10)/10)} function preHero(entries,hero){ var n=0,total=0,hosts=Object.create(null),hostCount=0,top=[]; var types=['script','css','link','img','image','font','video']; for(var i=0;ihero)continue; var u; try{u=new URL(e.name)}catch(x){continue} if(!/^https?:$/.test(u.protocol))continue; var bytes=e.transferSize||e.encodedBodySize||0,host=u.hostname; if(!Number.isFinite(bytes)||bytes<0)bytes=0; n++;total+=bytes; if(!hosts[host]){hosts[host]=true;hostCount++} var at=0; while(at=bytes)at++; if(at<3){ top.splice(at,0,{host:host.slice(0,253),path:rumPath(u.pathname,200),bytes:bytes,type:e.initiatorType}); if(top.length>3)top.pop(); } } return {n:rtInt(n),kb:rtKb(total),hosts:rtInt(hostCount),top3:top.map(function(f){return {host:f.host,path:f.path,kb:rtKb(f.bytes),type:f.type}})}; } function armedNames(rt){ var baked=null,names=[]; try{ var stamp=document.getElementById('wpc-cfg-runtime'); if(stamp)baked=JSON.parse(stamp.textContent); }catch(x){} [baked,rt.armed].forEach(function(list){ if(!Array.isArray(list))return; for(var i=0;i=0?release.cause:null; var iconMs=rtInt(icon.ms); facts={pv:('00000000'+Math.floor(Math.random()*4294967296).toString(16)).slice(-8),cdn:cdnB(entries),runtime:{ delay_release_ms:ms,release_cause:cause,swaps_before_hero:hero===null?null:rtInt(rt.swaps),hero_paint_ms:hero, icon_faces_release_ms:iconMs,icon_faces_n:iconMs===null?null:rtInt(icon.n),video_release_ms:rtInt(video.ms), pre_hero:hero===null?null:preHero(entries,hero),armed:armedNames(rt) }}; } o.pv=facts.pv; o.runtime=facts.runtime; if(facts.cdn)o.cdn=facts.cdn; return o; } function postBeacon(blob,kind){ if(!cok())return false; try{if(navigator.sendBeacon(endpoint+(kind==='gzip'?'&enc=gz':''),blob)===true)return true}catch(e){} var rt=window.__wpcRt||(window.__wpcRt={}); var rejected=rt.beacon_rejections||(rt.beacon_rejections={}); rejected[kind]=(rejected[kind]||0)+1; return false; } function postCensus(blob,gzip){ if(sent||!postBeacon(blob,gzip?'gzip':'census'))return; sent=1;pendingCensus=null; } function fitCensus(o,gzip){ var lists=['atf_selectors','atf_ids','fonts_used','atf_images'],at=0; for(;;){ o.bytes=JSON.stringify(o).length; var json=JSON.stringify(o),blob; if(gzip){ blob=new Blob([json]); if(blob.size<524288)return blob; }else{ var raw=utf8(json); if(raw.length<=30000){ blob=form(raw); if(blob.size<=46000)return blob; } } while(at300){o.atf_selectors=o.atf_selectors.slice(0,300);o.truncated=true} var blob=fitCensus(o,false); if(blob)postCensus(blob,false); } function send(closing){try{ if(!hu||sent||(!atf.length&&!lcp&&!cen)||!cok()||!navigator.sendBeacon)return; if(pendingCensus){if(closing)plainCensus(pendingCensus);return} var o=pendingCensus=withRuntime(body()); if(!closing&&window.CompressionStream&&window.Response){ var input=fitCensus(o,true); if(!input)return; new Response(input.stream().pipeThrough(new CompressionStream('gzip'))).arrayBuffer().then(function(ab){ if(sent||!cok())return; var blob=ab.byteLength<=32768?form(bin(ab)):null; if(blob&&blob.size<=46000)postCensus(blob,true);else plainCensus(o); }).catch(function(){plainCensus(o)}); }else plainCensus(o); }catch(e){if(!sent&&pendingCensus)plainCensus(pendingCensus)}} function close(){ send(true); try{ if((!hu&&cr.closeAny!==1)||cdnSent||!cok()||!navigator.sendBeacon)return; var dev=(matchMedia('(max-width:767px)').matches||/Mobi|Android/i.test(navigator.userAgent))?'mobile':'desktop'; var o=withRuntime({v:2,kind:'cdn',url:rumPageUrl(),sr:cr.r, device:dev,device_ua:cr.du,gen_uuid:cr.gu,plugin_version:cr.pv,viewport:{w:innerWidth,h:innerHeight,dpr:devicePixelRatio||1}}); var blob=form(utf8(JSON.stringify(o))); if(blob.size<51200)cdnSent=postBeacon(blob,'cdn'); }catch(e){} } function afterLoad(){ ('requestIdleCallback'in window?requestIdleCallback:function(f){setTimeout(f,2e3)})(function(){census(function(c){cen=c;setTimeout(send,1200)})}); } var listen=window.wpcNativeAddEventListener||addEventListener; if(document.readyState==='complete')setTimeout(afterLoad,0); else listen.call(window,'load',afterLoad,{once:true}); listen.call(window,'pagehide',close); }catch(e){}})();})(wl)}}catch(x){}})();if(window.wpcVitals){function wpcVSend(e,b,c){try{var u=e.u,f=e.a||"";try{if(f&&localStorage.getItem("wpcVCh")==="a"){u=f;f=""}}catch(x){}if("hidden"===document.visibilityState&&navigator.sendBeacon&&navigator.sendBeacon(u,new Blob([b],{type:c})))return;var p=function(t,d){return fetch(t,{method:"POST",body:d,keepalive:!0,headers:{"Content-Type":c}})};var q=function(){if(f){p(f,b+"&fb=1");try{localStorage.setItem("wpcVCh","a")}catch(x){}}};if(!window.fetch||!f){navigator.sendBeacon?navigator.sendBeacon(u,new Blob([b],{type:c})):window.fetch&&p(u,b);return}p(u,b).then(function(r){r.ok||q()}).catch(q)}catch(x){}} var webVitals=function(e){"use strict";let t=-1;const n=e=>{addEventListener("pageshow",(n=>{n.persisted&&(t=n.timeStamp,e(n))}),!0)},i=(e,t,n,i)=>{let r,s;return a=>{t.value>=0&&(a||i)&&(s=t.value-(r??0),(s||void 0===r)&&(r=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},r=e=>{requestAnimationFrame((()=>requestAnimationFrame(e)))},s=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStarts()?.activationStart??0,o=(e,n=-1)=>{const i=s();let r="navigate";return t>=0?r="back-forward-cache":i&&(document.prerendering||a()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},c=new WeakMap;function l(e,t){let n=c.get(t);return n||(n=new WeakMap,c.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}class d{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}const u=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{queueMicrotask((()=>{t(e.getEntries())}))}));return i.observe({type:e,buffered:!0,...n}),i}}catch{}},h=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let p=-1;const m=new Set,f=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,v=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of m)e();isFinite(p)||(p="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",v,!0))}},g=()=>{if(p<0){const e=a(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find((t=>"hidden"===t.name&&t.startTime>=e))?.startTime;p=t??f(),addEventListener("visibilitychange",v,!0),addEventListener("prerenderingchange",v,!0),n((()=>{setTimeout((()=>{p=f()}))}))}return{get firstHiddenTime(){return p},onHidden(e){m.add(e)}}},T=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},b=[1800,3e3],y=(e,t={})=>{T((()=>{const s=g();let c,l=o("FCP");const d=u("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime{l=o("FCP"),c=i(e,l,b,t.reportAllChanges),r((()=>{l.value=performance.now()-n.timeStamp,c(!0)}))})))}))},w=[.1,.25];let C=0,L=1/0,E=0;const M=e=>{for(const t of e)t.interactionId&&(L=Math.min(L,t.interactionId),E=Math.max(E,t.interactionId),C=E?(E-L)/7+1:0)};let S;const P=()=>S?C:performance.interactionCount??0;let I=0;class A{l=[];u=new Map;m;p;v(){I=P(),this.l.length=0,this.u.clear()}T(){const e=Math.min(this.l.length-1,Math.floor((P()-I)/50));return this.l[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this.l.at(-1);let n=this.u.get(e.interactionId);if(n||this.l.length<10||e.duration>t.L){if(n?e.duration>n.L?(n.entries=[e],n.L=e.duration):e.duration===n.L&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],L:e.duration},this.u.set(n.id,n),this.l.push(n)),this.l.sort(((e,t)=>t.L-e.L)),this.l.length>10){const e=this.l.splice(10);for(const t of e)this.u.delete(t.id)}this.p?.(n)}}}const F=e=>{const t=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const i=h(e);let r=-1;const s=()=>{n(r),i()};addEventListener("visibilitychange",s,{once:!0,capture:!0}),r=t((()=>{removeEventListener("visibilitychange",s,{capture:!0}),i()}))}},k=[200,500];class B{m;h(e){this.m?.(e)}}const V=[2500,4e3],N=[800,1800],x=e=>{document.prerendering?T((()=>x(e))):"complete"!==document.readyState?addEventListener("load",(()=>x(e)),!0):setTimeout(e)};return e.CLSThresholds=w,e.FCPThresholds=b,e.INPThresholds=k,e.LCPThresholds=V,e.TTFBThresholds=N,e.onCLS=(e,t={})=>{const s=g();y(h((()=>{let a,c=o("CLS",0);const h=l(t,d),p=e=>{for(const t of e)h.h(t);h.i>c.value&&(c.value=h.i,c.entries=h.o,a())},m=u("layout-shift",p);m&&(a=i(e,c,w,t.reportAllChanges),s.onHidden((()=>{p(m.takeRecords()),a(!0)})),n((()=>{h.i=0,c=o("CLS",0),a=i(e,c,w,t.reportAllChanges),r(a)})),setTimeout(a))})))},e.onFCP=y,e.onINP=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=g();T((()=>{"interactionCount"in performance||S||(S=u("event",M,{durationThreshold:0}));let s,a=o("INP");const c=l(t,A),d=e=>{F((()=>{for(const t of e)c.h(t);const t=c.T();t&&t.L!==a.value&&(a.value=t.L,a.entries=t.entries,s())}))},h=u("event",d,{durationThreshold:t.durationThreshold??40});s=i(e,a,k,t.reportAllChanges),h&&(h.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{d(h.takeRecords()),s(!0)})),n((()=>{c.v(),a=o("INP"),s=i(e,a,k,t.reportAllChanges)})))}))},e.onLCP=(e,t={})=>{T((()=>{const s=g();let c,d=o("LCP");const p=l(t,B),m=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)p.h(t),t.startTime{m(f.takeRecords()),f.disconnect(),c(!0)})),a=e=>{e.isTrusted&&(F(s),removeEventListener(e.type,a,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])addEventListener(e,a,{capture:!0});n((n=>{d=o("LCP"),c=i(e,d,V,t.reportAllChanges),r((()=>{d.value=performance.now()-n.timeStamp,c(!0)}))}))}}))},e.onTTFB=(e,t={})=>{let r=o("TTFB"),c=i(e,r,N,t.reportAllChanges);x((()=>{const l=s();l&&(r.value=Math.max(l.responseStart-a(),0),r.entries=[l],c(!0),n((()=>{r=o("TTFB",0),c=i(e,r,N,t.reportAllChanges),c(!0)})))}))},e}({});!function(){"use strict";var e=window.wpcVitals;if(e&&e.u&&e.t&&window.webVitals&&navigator.sendBeacon&&!0!==navigator.webdriver){var t=Number(e.s)||1;if(!(t>1&&Math.random()>=1/t)){var HU=window.wpcAfterHeroGesture===1;["pointerdown","keydown","touchstart","wheel","scroll","mousemove"].forEach(function(ev){addEventListener(ev,function(){HU=!0},{once:!0,passive:!0,capture:!0})});var n={},i=!1,r=function(e){return function(t){n[e]=t.value}};try{webVitals.onLCP(r("lcp")),webVitals.onCLS(r("cls")),webVitals.onINP(r("inp")),webVitals.onTTFB(r("ttfb")),webVitals.onFCP(r("fcp"))}catch(e){}addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&a()}),!0),addEventListener("pagehide",a,!0),addEventListener("pageshow",(function(e){e.persisted&&(i=!1,n={})}),!0)}}function s(){try{var t=function(){try{return performance.getEntriesByType("navigation")[0]||null}catch(e){return null}}();if(t&&t.serverTiming&&t.serverTiming.length){for(var n=0,i=0;i0)return Date.now()/1e3-n>300?1:0}var s=Number(e.m)||0;if(s>0&&Date.now()/1e3-s>300)return 1}catch(e){}return 0}function a(){if(HU&&!i){i=!0;try{var t="v=1&t="+encodeURIComponent(e.t)+(e.b?"&b=1":"")+"&d="+(Math.min(window.innerWidth||1024,window.screen&&screen.width||1024)<768?"m":"d")+"&e="+(r=navigator.userAgent,(/Firefox\//.test(r)?"f":/Chrome\/|Chromium\/|Edg\//.test(r)?"c":/Safari\//.test(r)&&/Version\//.test(r)?"s":"o")+"&h=")+s();null!=n.lcp&&(t+="&lcp="+Math.round(n.lcp)),null!=n.cls&&(t+="&cls="+Math.round(1e3*n.cls)),null!=n.inp&&(t+="&inp="+Math.round(n.inp)),null!=n.ttfb&&(t+="&ttfb="+Math.round(n.ttfb)),null!=n.fcp&&(t+="&fcp="+Math.round(n.fcp)),wpcVSend(e,t,"application/x-www-form-urlencoded")}catch(e){}var r}}}();(function(){try{var e=window.wpcVitals;if(!e||!e.u||!e.t)return;if(navigator.webdriver)return;var t=Number(e.s)||1;if(Math.random()>=1/t)return;var n=window.matchMedia&&matchMedia("(max-width: 767.98px)").matches?"m":"d",i=Number(e.m)||0,r=function(){try{var t=performance.getEntriesByType("navigation")[0];if(t&&t.serverTiming&&t.serverTiming.length){for(var n=0,j=0;j0)return Date.now()/1e3-n>300?"1":"0"}}catch(c){}return i&&Math.floor(Date.now()/1e3)-i>300?"1":"0"}(),o="t="+encodeURIComponent(e.t)+(e.b?"&b=1":"")+"&k=p&d="+n+"&h="+r,a=function(){try{wpcVSend(e,o,"application/x-www-form-urlencoded")}catch(c){}};var HU2=window.wpcAfterHeroGesture===1;["pointerdown","keydown","touchstart","wheel","scroll","mousemove"].forEach(function(ev){addEventListener(ev,function(){HU2=!0},{once:!0,passive:!0,capture:!0})});var s=!1,g=function(){HU2&&(s||(s=!0,a()))},L=function(){setTimeout(g,8e3)};addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&g()},!0),addEventListener("pagehide",g,!0),"complete"===document.readyState?L():addEventListener("load",L,{once:!0})}catch(c){}})(); (function(){try{if(!window.PerformanceObserver||!localStorage)return;if(window.wpcVitals&&window.wpcVitals.b)return;var e=0,t=function(){try{e>0&&localStorage.setItem("wpcVitalsYou",JSON.stringify({lcp:Math.round(e),t:Math.floor(Date.now()/1e3)}))}catch(n){}};new PerformanceObserver((function(t){var n=t.getEntries();n.length&&(e=n[n.length-1].startTime)})).observe({type:"largest-contentful-paint",buffered:!0}),addEventListener("load",(function(){setTimeout(t,2e3)}),{once:!0}),addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t()}),!0)}catch(n){}})(); }