!function(){function t(t,e){return u.t?.dataset?.[t]||e}function e(e){const n=t(e);return n?n.split(","):[]}function n(t){const e=()=>{"hidden"===document.visibilityState&&(document.removeEventListener("visibilitychange",e),t())};document.addEventListener("visibilitychange",e)}function i(){N=performance?.timing,A=N&&performance.getEntriesByType("navigation"),B=A?.[0]||{}}function o(t){function e(t){return t.map(t=>n[t]?.toString(36)??"").join("_")}i();const n={};if(A&&B.responseStart<0||B.responseStart>performance.now())return;const o=0===B.startTime?2:1,r=t.data.nt;let s=o+I;O.forEach(t=>{n[t]=(t=>{if("number"!=typeof N[t]||"number"!=typeof N.navigationStart)return;if(N[t]<=0||N.navigationStart<=0)return;const e=N[t]-N.navigationStart;return e>=0?e:void 0})(t)}),o>1&&B.secureConnectionStart>0&&(n.secureConnectionStart=Math.floor(B.secureConnectionStart)),s+=e(O),s+=I,o>1&&(k.forEach(t=>{const e=B[t];n[t]=e?Math.floor(e):e}),s+=e(k)),s+=I,o>1&&(s+=B.nextHopProtocol||""),t.data.nt=s,s!==r&&t.update()}function r(t,e){let n=new PerformanceObserver(t=>{t.getEntries().forEach(e)});return n.observe({type:t,buffered:!0}),()=>{n?.disconnect(),n=null}}function s(){q&&q(),x&&x()}function c(){(t=>{((t,e={})=>{let n=M("TTFB"),i=l(t,n,e.reportAllChanges);b(()=>{const o=m();o&&(n.value=Math.max(o.responseStart-v(),0),i(!0),g(()=>{n=M("TTFB",0),i=l(t,n,e.reportAllChanges),i(!0)}))})})(e=>{t.data.ttfb=Math.round(e.value),t.data.nav_type=e.navigationType,t.update()})})(f),(t=>{P(e=>{t.data.fcp=Math.round(e.value);const n=e.entries[e.entries.length-1]?.startTime;void 0!==n&&(t.data.fcp_raw=Math.round(n));for(const e of performance.getEntriesByType("paint"))"first-paint"===e.name&&(t.data.fp_raw=Math.round(e.startTime));t.update()})})(f),(t=>{if(i(),!N||!N.navigationStart)return;(t=>{const e=B.serverTiming;if(!e)return;const n=e.findIndex(t=>"a8c-cdn"===t.name);if(n<0||e.length=0&&(t.data.edge_dur=o.duration))})(t),o(t);const e=()=>setTimeout(()=>o(t));document.addEventListener("DOMContentLoaded",e),addEventListener("load",e),t.whenDone.then(()=>{document.removeEventListener("DOMContentLoaded",e),removeEventListener("load",e)})})(f),(t=>{J=e("customMeasuresPrefixes"),j=e("customMarksPrefixes"),J.push(F),j.push(F);const n=e=>{const n=e.name.replace(/^\d|\W/g,"_"),i="mark"===e.entryType;(i?j:J).some(t=>n.includes(t)||e.name.includes(t))&&((i?R:D)[n]=Math.round(i?e.startTime:e.duration)||0,Object.keys(R).length&&(t.data.marks=JSON.stringify(R)),Object.keys(D).length&&(t.data.measures=JSON.stringify(D)),t.update())};try{q=r("mark",n),x=r("measure",n)}catch(t){s()}t.whenDone.then(s)})(f),function(t){((t,e={})=>{const n=S();P(z(()=>{let i,o=M("CLS",0);const r=new H,s=t=>{for(const e of t)r.i(e);((t=!1)=>{r.o>o.value&&(o.value=r.o),i(t)})()},c=T(["layout-shift"],s);c&&(i=l(t,o,e.reportAllChanges),n.onHidden(()=>{s(c.takeRecords()),i(!0)}),g(()=>{o=M("CLS",0),r.o=0,i=l(t,o,e.reportAllChanges),w(i)}),setTimeout(i))}))})(e=>{t.data.cls=Math.round(1e3*e.value)/1e3,t.update()},{reportAllChanges:!0})}(f),function(t){((t,e={})=>{if(!window.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=S();y(()=>{X();let i,o=M("INP");const r=new Y,s=(t,e=!1)=>{Z(()=>{for(const e of t)r.i(e);(()=>{const t=r.h(o.navigationType);t&&t.u!==o.value&&(o.value=t.u,i())})(),e&&i(!0)})},c=T(["event","first-input"],s,{...e,durationThreshold:e.durationThreshold??40});i=l(t,o,e.reportAllChanges),c&&(n.onHidden(()=>{s(c.takeRecords(),!0)}),g(()=>{r.l(),o=M("INP"),i=l(t,o,e.reportAllChanges)}))})})(e=>{t.data.inp=Math.round(e.value),t.update()},{reportAllChanges:!0})}(f),function(t){((t,e={})=>{let n=!1;y(()=>{const i=S();let o,r=M("LCP");const s=T(["largest-contentful-paint"],t=>{e.reportAllChanges||(t=t.slice(-1));for(const e of t){if(!e)continue;const t=Math.max(e.startTime-v(),0);e.startTime{if(t.isTrusted&&!n){const t=r;Z(()=>{if(!n){s.disconnect();for(const t of i)removeEventListener(t,c,{capture:!0});t===r&&(n=!0,o(!0))}})}};for(const t of i)addEventListener(t,c,{capture:!0});g(i=>{r=M("LCP"),o=l(t,r,e.reportAllChanges),n=!1,o=l(t,r,e.reportAllChanges),w(()=>{r.value=performance.now()-i.timeStamp,n=!0,o(!0)})})}})})(e=>{const n=e.entries[e.entries.length-1]?.startTime;void 0!==n&&(t.data.lcp_raw=Math.round(n)),((t,e,n=!1)=>{t.data.lcp=Math.round(e.value),t.data.lcp_type=t.data.lcp_sel=t.data.lcp_res=t.data.lcp_load=t.data.lcp_prio=t.data.lcp_pre=t.data.lcp_res_delay=t.data.lcp_res_dur=t.data.lcp_render_delay=void 0;const i=e.entries[e.entries.length-1],o=i?.element,r=i?.url,s=r?((t,e)=>{const n=t.filter(t=>t.name===e.url&&t.startTime<=e.startTime);return 1===n.length?n[0]:void 0})(performance.getEntriesByType("resource"),i):void 0;if(r&&(t.data.lcp_res=r,s&&(t.data.lcp_pre="link"===s.initiatorType?1:0)),o){t.data.lcp_sel=(t=>{let e="";try{for(;9!==t?.nodeType;){const n=t,i=n.id?"#"+n.id:[$(n),...Array.from(n.classList??[]).sort()].join(".");if(e.length+i.length>99)return e||i;if(e=e?i+">"+e:i,n.id)break;t=n.parentNode}}catch{}return e})(o);const e=o.nodeName.toLowerCase();if("img"===e)t.data.lcp_type="img",t.data.lcp_load=o.getAttribute("loading")||void 0,t.data.lcp_prio=o.getAttribute("fetchpriority")||void 0;else if(r)if("video"===e)t.data.lcp_type="video-poster";else{const e=getComputedStyle(o).backgroundImage;t.data.lcp_type=e&&"none"!==e?"bg-img":"other-img"}else t.data.lcp_type="text"}n&&i&&((t,e,n)=>{const i=m();i&&Object.assign(t.data,((t,e,n,i=!1)=>{const o=e.activationStart??0,r=Math.max(0,e.responseStart-o);if(!Number.isFinite(t)||!Number.isFinite(r)||tt)return{};const s=Math.max(r,n.requestStart-o),c=Math.min(t,Math.max(s,n.responseEnd-o)),a={lcp_render_delay:Math.round(t)-Math.round(c)};return n.requestStart?{lcp_res_delay:Math.round(s)-Math.round(r),lcp_res_dur:Math.round(c)-Math.round(s),...a}:a})(e.value,i,n,"text"===t.data.lcp_type))})(t,e,s),t.update()})(t,e,!0)},{reportAllChanges:!0})}(f)}function a(t){return t>0||0===t}function h(){(t=>{try{const e=document.createNodeIterator(document,128,t=>t.nodeValue?.includes("served from batcache in")?1:2);t.data.batcache_hit=e.nextNode()?1:0}catch(t){}})(f),(e=>{e.data.provider=t("provider"),e.data.service=t("service"),e.data.site_tz=t("siteTz"),e.data.site_v=t("siteV"),e.data.custom_props=(t=>{let e;if(t)try{const n={},i=JSON.parse(t);for(const t in i)"string"==typeof i[t]&&(n[t]=i[t]);Object.keys(n).length&&(e=JSON.stringify(n))}catch(t){}return e})(u.t?.dataset?.customProps||u.t?.dataset?.customproperties)})(f),(t=>{const e=navigator.connection;e&&(a(e.rtt)&&(t.data.rtt=e.rtt),a(e.downlink)&&(t.data.downlink=Math.round(1e3*e.downlink)))})(f),(t=>{t.data.site_host=location.hostname,t.data.site_path=location.pathname;const e=location.pathname+location.search+location.hash;t.data.full_path=e.length>200?void 0:e})(f),(t=>{t.data.version="4.9.99"})(f),f.update(),c(),f.init("https://pixel.wp.com/boom.gif?bilmur=1",t("forceReporter"))}function d(){u.t=document.getElementById("bilmur");let e=!0;try{e=window.self!==window.top}catch(t){}e&&"true"!==t("allowIframe")||(document.prerendering?document.addEventListener("prerenderingchange",h,{once:!0}):h())}const u={};let f=new class{constructor(t={}){this.whenDone=new Promise(t=>{this.m=t}),this.data={...t}}v(){return void 0!==this.data.ttfb}init(t,e,i=36e5){if(this.p=t,this.M=i,this.data.reporter=this.L=e||("function"==typeof fetchLater?"fetchLater":"sendBeacon"),"sendBeacon"===this.L){const t=()=>{this._()||(this.C=!0,n(t))};n(t),this.S=setTimeout(()=>this._(),i)}}cancel(){"fetchLater"===this.L&&this.T(),clearTimeout(this.S),this.P=!0,this.m()}sendNow(){this.P||("fetchLater"===this.L&&(this.T(),this.P||(this.O(0),this.P=!0,this.m())),"sendBeacon"===this.L&&this.k())}update(){if(!this.P&&("fetchLater"===this.L&&(this.T(),this.P||this.O()),"sendBeacon"===this.L)){if(this.C){if("hidden"===document.visibilityState)return void this._();this.C=!1}clearTimeout(this.S),this.S=setTimeout(()=>this._(),this.M)}}I(){let t="";if(this.p&&this.v())for(const e in this.data){const n=this.data[e];void 0!==n&&(t+="&"+e+"="+encodeURIComponent(n))}return t&&this.p+t}O(t=this.M){const e=this.I();e&&(this.N=new AbortController,this.A=fetchLater(e,{signal:this.N.signal,activateAfter:t}))}T(){this.P||(this.A?.activated?(this.P=!0,this.m()):this.N?.abort())}_(){if(this.P)return!0;const t=this.I();return!!t&&(this.P=!0,this.m(),navigator.sendBeacon(t),!0)}k(){this._()||(this.P=!0,this.m())}};const l=(t,e,n)=>{let i,o;return r=>{e.value>=0&&(r||n)&&(o=e.value-(i??0),(o||void 0===i)&&(i=e.value,e.delta=o,t(e)))}},m=()=>{const t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStartm()?.activationStart??0;let p=-1;const g=t=>{addEventListener("pageshow",e=>{e.persisted&&(p=e.timeStamp,t(e))},!0)},M=(t,e=-1)=>{const n=m();let i="navigate";return p>=0?i="back-forward-cache":n&&(document.prerendering||v()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:t,value:e,delta:0,entries:[],navigationType:i}},y=t=>{document.prerendering?addEventListener("prerenderingchange",t,!0):t()},b=t=>{document.prerendering?y(()=>b(t)):"complete"!==document.readyState?addEventListener("load",()=>b(t),!0):setTimeout(t)},w=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))};let L=-1;const E=new Set,_=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,C=t=>{if("hidden"===document.visibilityState){if("visibilitychange"===t.type)for(const t of E)t();isFinite(L)||(L="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("prerenderingchange",C,!0))}},S=()=>{if(L<0){const t=v(),e=document.prerendering?void 0:window.performance.getEntriesByType("visibility-state").find(e=>"hidden"===e.name&&e.startTime>=t)?.startTime;L=e??_(),addEventListener("visibilitychange",C,!0),addEventListener("prerenderingchange",C,!0),g(()=>{setTimeout(()=>{L=_()})})}return{get firstHiddenTime(){return L},onHidden(t){E.add(t)}}},T=(t,e,n={})=>{try{const i=t.filter(t=>PerformanceObserver.supportedEntryTypes.includes(t));if(i.length>0){const t=new PerformanceObserver(t=>{queueMicrotask(()=>{const n=t.getEntries();i.length>1&&n.sort((t,e)=>t.startTime+t.duration-(e.startTime+e.duration)),e(n)})});for(const e of i)t.observe({type:e,buffered:!0,...n});return t}}catch{}},P=(t,e={})=>{y(()=>{const n=S();let i,o=M("FCP");const r=T(["paint"],t=>{for(const e of t)"first-contentful-paint"===e.name&&(r.disconnect(),e.startTime{o=M("FCP"),i=l(t,o,e.reportAllChanges),w(()=>{o.value=performance.now()-n.timeStamp,i(!0)})}))})},O=["unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],k=["activationStart","redirectCount","firstInterimResponseStart","finalResponseHeadersStart"],I="--";let N,A,B;const F="bilmur_";let q,x,j,J,R={},D={};class H{constructor(){this.o=0,this.B=0,this.F=0}i(t){t.hadRecentInput||(this.o&&t.startTime-this.F<1e3&&t.startTime-this.B<5e3?this.o+=t.value:(this.o=t.value,this.B=t.startTime),this.F=t.startTime)}}const z=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let U=0,V=1/0,W=0;const G=t=>{for(const e of t)e.interactionId&&(V=Math.min(V,e.interactionId),W=Math.max(W,e.interactionId),U=W?(W-V)/7+1:0)};let K;const Q=()=>K?U:performance.interactionCount??0,X=()=>{"interactionCount"in performance||K||(K=T(["event"],G,{durationThreshold:0}))};class Y{constructor(){this.q=0,this.j=[],this.J=new Map}R(){return Q()-this.q}l(){this.q=Q(),this.j.length=0,this.J.clear()}h(t){const e=this.R(),n=Math.min(this.j.length-1,Math.floor(e/50));return e&&-1===n&&"back-forward-cache"===t?{u:8,id:-1}:this.j[n]}i(t){if(!t.interactionId)return;const e=this.j.at(-1);let n=this.J.get(t.interactionId);if((n||this.j.length<10||t.duration>e.u)&&(n?t.duration>n.u&&(n.u=t.duration):(n={id:t.interactionId,u:t.duration},this.J.set(n.id,n),this.j.push(n)),this.j.sort((t,e)=>e.u-t.u),this.j.length>10)){const t=this.j.splice(10);for(const e of t)this.J.delete(e.id)}}}const Z=t=>{const e="requestIdleCallback"in window?1e3:0,n=window.requestIdleCallback||setTimeout,i=window.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)t();else{const o=z(t);let r=-1;const s=()=>{i(r),o()};addEventListener("visibilitychange",s,{once:!0,capture:!0}),r=n(()=>{removeEventListener("visibilitychange",s,{capture:!0}),o()},{timeout:e})}},$=t=>{const e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")};window.performance?.getEntriesByType&&("hidden"!==document.visibilityState||document.prerendering)&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d())}();