(function(){const config={"snippetKey":"hnwxRDUdza0T","sendTo":"https://data.debugbear.com","version":5,"sampling":1,"includeSubdomains":true,"deployedAt":1750542363261,"privacy":{"text":true,"selectors":true,"queryParams":true,"engagement":true},"hasProxy":false,"mappings":[],"pageGroups":[{"id":9801,"paths":[],"sampling":0,"type":"url","cssSelector":null,"urlRegExps":[]}]};"use strict";(()=>{var cn=typeof config<"u"?config:typeof _dbbRumConfig<"u"?_dbbRumConfig:{},y=cn;function Mt(){return y.privacy?.queryParams!==!1}var un=140;function Rt(t){return Math.round(t*1e3)/1e3}function rt(){return Math.round(document.documentElement?.scrollTop??0)}function x(t){window.__dbbRumDebug&&console.log(t)}function v(t,e){return t.slice().sort((n,r)=>e(n)-e(r))}function ot(t){return P(t,200)}function P(t,e){if(!t)return;let n=t.split("?");return Mt()?n[1]&&(t=n[0]+"?"+X(n[1])):t=n[0],t.startsWith("data:")?t.slice(0,20):t.length{let o=r.toLowerCase();["password","token","code","fbclid","twclid","gclid","state"].includes(o)||o.includes("token")||mn(n)||e.push(r+(n?"="+n:""))}),w(e.join("&"),un)}function mn(t){return/.*@.*\..*/.test(t)}function se(t){return`${t.toString(36)}${(Math.random()*Number.MAX_SAFE_INTEGER).toString(36)}`}var fn=/[A-Za-z0-9.+]+@[A-Za-z0-9.]+\.[a-zA-Z]+/g;function _(t){return t.includes("@")?t.replace(fn,"[email]"):t}function C(t){return typeof performance.getEntriesByType!="function"?[]:performance.getEntriesByType(t)||[]}function it(){return[...C("resource"),...C("navigation")]}var st="setTimeout";function ae(t){return t&&t.trim?t.trim():t}var kt=80,z=200,A=Math.round(performance.timeOrigin??window.performance?.timing?.connectStart),pn=navigator.connection?.downlink||null,dn=w(location.pathname,z),ue=null;try{ue=new URL(document.referrer).hostname}catch{}var me=C("navigation")[0],gn=me?.notRestoredReasons?.reasons?.[0]?.reason,Nt=location.search,le=y.privacy?.queryParams===!1?void 0:new URLSearchParams(location.search)?.get("utm_campaign"),Lt=navigator.connection?.rtt;typeof Lt!="number"&&(Lt=void 0);var f={id:se(A),date:A,origin:location.origin.slice(0,kt),path:dn,query:X(Nt),uc:le?w(le,60):void 0,screenWidth:screen.width,dpr:Math.round(window.devicePixelRatio*100)/100,windowWidth:Math.round(window.outerWidth/10)*10,windowHeight:Math.round(window.outerHeight/10)*10,navigationType:null,nrr:gn,visibilityState:document.visibilityState,pageTitle:xt(),deployedAt:y.deployedAt,snippetVersion:33,configVersion:y.version,sendIndex:0,conn:{bw:pn,rtt:Lt,type:navigator.connection?.effectiveType},memory:navigator?.deviceMemory||null,cpu:navigator?.hardwareConcurrency||null,rd:ue,userAgent:navigator.userAgent.slice(0,160),sentAt:Date.now(),nhp:me?.nextHopProtocol||null},ce=location.hash.slice(1);ce&&(f.hash=ce.slice(0,100));function xt(){return _(document.title||"").slice(0,100)}var pe=3,de=60,ge=1,D=1e3,hn=/[ \n]+/g;function O(t,e){let n=e?.privacy?.text!==!1;if(!t||!n)return null;if(t.tagName==="BODY")return"(BODY)";let r=Tn(t);return!r&&t.alt?t.alt:r?r.replace(hn," ").slice(0,de):t.children?.length>0?he(t):null}function Tn(t){return Pt(t,0).text}var yn=/\s+/g;function Pt(t,e,n=!1){let r=t?.tagName,o="",s=null;try{s=t?.labels?.[0]}catch{}let i="";if(!n&&s){let a=Pt(s,e,!0);e+=a.iterations,i=a.text+" "}return r==="SCRIPT"||r==="STYLE"?o="":!n&&r==="TEXTAREA"?o=i+"[textarea]":!n&&r==="INPUT"?o=i+"[input:"+t.type.toLowerCase()+"]":t instanceof SVGElement?o="(svg)":t.childNodes.forEach(a=>{if(e++,e>D||o.trim().length>=de)return;let c=a.nodeType;if(c===pe)o+=a.nodeValue||"";else if(c===ge){let u=Pt(a,e,n);e=u.iterations,o+=u.text}}),o=_(o.trim().replace(yn," ")||""),{text:o,iterations:e}}function he(t){let e=0;for(let n of t.children){if(e++,e>D)return"";let r=fe(n);if(r){let o="";for(let s of n.children){if(e++,e>D)return"";let i=fe(s);if(i){o=i;break}}return"HTML: "+[r,o].filter(s=>!!s).join(", ")}else{let o=he(n);if(o)return o}}}function F(t,e){let n=e?.privacy?.selectors!==!1;return!t||!n?null:En(t).join(">")}function En(t){let e=[],n=0,r=0,o=0;for(;t&&(n++,!(n>D));){if(t instanceof SVGElement&&t.tagName!=="svg"){t=t.parentNode;continue}if(t.tagName==="BODY"){e.length===0&&e.push("body");break}if(e.length>30)break;if(t.nodeType===ge){let s=t.tagName.toLowerCase(),c=!(e.length>0&&s.length>10)&&e.length<6?s:"*",u=J(t);t.id&&t.id.length<40?(c+=`#${t.id}`,r++):u&&u.length<25&&(o<3||e.length%4===0)&&(c+=`.${u}`,o++);let g=t.parentNode?.children||[];if(g.length>1&&(c+=`:${Array.from(g).indexOf(t)+1}`),e.push(c),r>=2||r>=1&&o>=3)break}t=t.parentNode}for(e=e.reverse();e[0]==="*"&&(n++,!(n>D));)e.shift();return e}function fe(t){if(t.id)return"#"+t.id;let e=J(t);return e?"."+e:null}function J(t){let e=t.className;if(typeof e!="string")return null;let n=e.split(" ")[0];return ae(n).slice(0,35)}function bn(t){let e=0,n=t;for(;t instanceof SVGElement&&t.tagName!=="svg"&&(e++,!(e>D));)t=t.parentNode;return t||(t=n),t}function U(t,e){let n=0,r=e?.privacy?.selectors!==!1;if(!t||!r)return null;t.nodeType===pe&&(t=t.parentNode),t=bn(t);let o=!1,s=!1,i=t.tagName.toLowerCase();t.id?(i+="#"+t.id,s=!0):J(t)&&(i+="."+J(t),o=!0);let a=t.parentNode,c=[];for(;a&&(n++,!(n>D));){let u=J(a);if(a.id&&(!s||a.id.length<30&&!(s&&o))){c.push("#"+a.id),s=!0;break}else if(["HEADER","FOOTER","NAV"].includes(a.tagName)){c.push(a.tagName.toLowerCase());break}else u&&!o&&(c.push("."+u),o=!0);a=a.parentNode}return(c.reverse().join(" ")+" "+i).trim()}function B(t){return function(...e){try{t(...e)}catch(n){vn(n)}}}function vn(t){It({error:{message:t.message,stack:t.stack,experience:f}},"fetch")}var Te=y.sendTo||"https://data.debugbear.com/",It=B(function t(e,n){let r=JSON.stringify(e);if(navigator.sendBeacon&&n==="beacon")try{navigator.sendBeacon(Te,r)}catch{t(e,"fetch")}else fetch(Te,{method:"POST",headers:{"Content-Type":"application/json"},mode:"no-cors",body:r})});var _t=y?.privacy?.engagement!==!1,qt=[],K=[],at=[],At=location.pathname,Dt=location.search.slice(1);function ye(){return{navigations:at,clickEvents:be(K),nonClickEvents:qt}}function Ee(){_t&&(wn(),Cn(),Sn())}function Sn(){window.navigation?.addEventListener("navigate",t=>{let e=t.destination.url;try{let n=new URL(e),r=n.pathname,o=X(n.search);if(r===At&&o===Dt)return;let s=Date.now()-A;at=at.filter(a=>s-a.ms>100);let i=r!==At?w(r,z):void 0;at.push({ms:s,path:i,query:o!==Dt?o:void 0,timeStampMs:Math.round(t.timeStamp),navigationType:t.navigationType}),At=r,Dt=o}catch{}})}function wn(){let t=null,e=250;if(_t){let n=()=>{t&&clearTimeout(t),t=setTimeout(r,e)},r=()=>{let o=document.documentElement.scrollHeight;if(o<500)return;let s=rt()/o;s>.5&&(qt.push({type:"scroll50",ms:Date.now()-A-e}),window.removeEventListener("scroll",n)),s>.9&&(qt.push({type:"scroll90",ms:Date.now()-A-e}),window.removeEventListener("scroll",n))};window.addEventListener("scroll",n)}}function Cn(){if(_t){let t=B(function(n){let r=n.target,o=Math.round(n.timeStamp);if(!r.closest)return;let s=r.closest("a,button"),i=s||r,a=s?"click":"oc",c=!K.find(d=>d.type===a),u=f.inp?.value;if(!c&&u){let E=(Date.now()-A-o)*4;if(u>E)return}let g={type:a,ms:o,...Rn(i)};K.push(g),Mn()});window.addEventListener("click",t)}}function be(t){let e=t.find(i=>i.type==="click"),n=t.find(i=>i.type==="oc"),r=null,o=f.inp?.startTime,s=f.inp?.value;if(o&&s){let i=o+s;r=t.filter(c=>oc.ms)[0]}return t.filter(i=>i===e||i===n||i===r)}var Bt=null;function Mn(){Bt&&clearTimeout(Bt),Bt=setTimeout(()=>{K=be(K)},2e3)}function Rn(t){let e=Date.now(),n=[],r=U(t,y);n.push(Date.now()-e),e=Date.now();let o=O(t,y);n.push(Date.now()-e),e=Date.now();let s=F(t,y);return n.push(Date.now()-e),{selector:r,text:o,path:s,_dur:n}}var ct=class{t;o=0;i=[];u(e){if(e.hadRecentInput)return;let n=this.i[0],r=this.i.at(-1);this.o&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),this.t?.(e)}},W=()=>{let t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart{if(document.readyState==="loading")return"loading";{let e=W();if(e){if(t{let e=t.nodeName;return t.nodeType===1?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},Vt=t=>{let e="";try{for(;t?.nodeType!==9;){let n=t,r=n.id?"#"+n.id:[Ln(n),...Array.from(n.classList).sort()].join(".");if(e.length+r.length>99)return e||r;if(e=e?r+">"+e:r,n.id)break;t=n.parentNode}}catch{}return e},Ot=new WeakMap;function H(t,e){return Ot.get(t)||Ot.set(t,new e),Ot.get(t)}var Pe=-1,Ie=()=>Pe,j=t=>{addEventListener("pageshow",e=>{e.persisted&&(Pe=e.timeStamp,t(e))},!0)},M=(t,e,n,r)=>{let o,s;return i=>{e.value>=0&&(i||r)&&(s=e.value-(o??0),(s||o===void 0)&&(o=e.value,e.delta=s,e.rating=((a,c)=>a>c[1]?"poor":a>c[0]?"needs-improvement":"good")(e.value,n),t(e)))}},Wt=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},Q=()=>W()?.activationStart??0,R=(t,e=-1)=>{let n=W(),r="navigate";return Ie()>=0?r="back-forward-cache":n&&(document.prerendering||Q()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},V=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{e(o.getEntries())})});return r.observe({type:t,buffered:!0,...n}),r}}catch{}},jt=t=>{let e=!1;return()=>{e||(t(),e=!0)}},G=-1,ve=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,mt=t=>{document.visibilityState==="hidden"&&G>-1&&(G=t.type==="visibilitychange"?t.timeStamp:0,kn())},Se=()=>{addEventListener("visibilitychange",mt,!0),addEventListener("prerenderingchange",mt,!0)},kn=()=>{removeEventListener("visibilitychange",mt,!0),removeEventListener("prerenderingchange",mt,!0)},Ae=()=>{if(G<0){let t=Q();G=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>t)[0]?.startTime)??ve(),Se(),j(()=>{setTimeout(()=>{G=ve(),Se()})})}return{get firstHiddenTime(){return G}}},dt=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},we=[1800,3e3],De=(t,e={})=>{dt(()=>{let n=Ae(),r,o=R("FCP"),s=V("paint",i=>{for(let a of i)a.name==="first-contentful-paint"&&(s.disconnect(),a.startTime{o=R("FCP"),r=M(t,o,we,e.reportAllChanges),Wt(()=>{o.value=performance.now()-i.timeStamp,r(!0)})}))})},Ce=[.1,.25],Me=t=>t.find(e=>e.node?.nodeType===1)||t[0],Be=(t,e={})=>{let n=H(e=Object.assign({},e),ct),r=new WeakMap;n.t=o=>{if(o?.sources?.length){let s=Me(o.sources);if(s){let i=(e.generateTarget??Vt)(s.node);r.set(s,i)}}},((o,s={})=>{De(jt(()=>{let i,a=R("CLS",0),c=H(s,ct),u=d=>{for(let E of d)c.u(E);c.o>a.value&&(a.value=c.o,a.entries=c.i,i())},g=V("layout-shift",u);g&&(i=M(o,a,Ce,s.reportAllChanges),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(u(g.takeRecords()),i(!0))}),j(()=>{c.o=0,a=R("CLS",0),i=M(o,a,Ce,s.reportAllChanges),Wt(()=>i())}),setTimeout(i))}))})(o=>{let s=(i=>{let a={};if(i.entries.length){let c=i.entries.reduce((u,g)=>u.value>g.value?u:g);if(c?.sources?.length){let u=Me(c.sources);u&&(a={largestShiftTarget:r.get(u),largestShiftTime:c.startTime,largestShiftValue:c.value,largestShiftSource:u,largestShiftEntry:c,loadState:ut(c.startTime)})}}return Object.assign(i,{attribution:a})})(o);t(s)},e)},qe=(t,e={})=>{De(n=>{let r=(o=>{let s={timeToFirstByte:0,firstByteToFCP:o.value,loadState:ut(Ie())};if(o.entries.length){let i=W(),a=o.entries.at(-1);if(i){let c=i.activationStart||0,u=Math.max(0,i.responseStart-c);s={timeToFirstByte:u,firstByteToFCP:o.value-u,loadState:ut(o.entries[0].startTime),navigationEntry:i,fcpEntry:a}}}return Object.assign(o,{attribution:s})})(n);t(r)},e)},_e=0,Ft=1/0,lt=0,Nn=t=>{for(let e of t)e.interactionId&&(Ft=Math.min(Ft,e.interactionId),lt=Math.max(lt,e.interactionId),_e=lt?(lt-Ft)/7+1:0)},Ut,Re=()=>Ut?_e:performance.interactionCount??0,xn=()=>{"interactionCount"in performance||Ut||(Ut=V("event",Nn,{type:"event",buffered:!0,durationThreshold:0}))},Le=0,ft=class{l=[];h=new Map;m;p;v(){Le=Re(),this.l.length=0,this.h.clear()}M(){let e=Math.min(this.l.length-1,Math.floor((Re()-Le)/50));return this.l[e]}u(e){if(this.m?.(e),!e.interactionId&&e.entryType!=="first-input")return;let n=this.l.at(-1),r=this.h.get(e.interactionId);if(r||this.l.length<10||e.duration>n.T){if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.h.set(r.id,r),this.l.push(r)),this.l.sort((o,s)=>s.T-o.T),this.l.length>10){let o=this.l.splice(10);for(let s of o)this.h.delete(s.id)}this.p?.(r)}}},Gt=t=>{let e=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?t():(t=jt(t),document.addEventListener("visibilitychange",t,{once:!0}),e(()=>{t(),document.removeEventListener("visibilitychange",t)}))},ke=[200,500],Oe=(t,e={})=>{let n=H(e=Object.assign({},e),ft),r=[],o=[],s=0,i=new WeakMap,a=new WeakMap,c=!1,u=()=>{c||(Gt(g),c=!0)},g=()=>{let p=n.l.map(T=>i.get(T.entries[0])),m=o.length-50;o=o.filter((T,b)=>b>=m||p.includes(T));let l=new Set;for(let T of o){let b=d(T.startTime,T.processingEnd);for(let I of b)l.add(I)}let h=r.length-1-50;r=r.filter((T,b)=>T.startTime>s&&b>h||l.has(T)),c=!1};n.m=p=>{let m=p.startTime+p.duration,l;s=Math.max(s,p.processingEnd);for(let h=o.length-1;h>=0;h--){let T=o[h];if(Math.abs(m-T.renderTime)<=8){l=T,l.startTime=Math.min(p.startTime,l.startTime),l.processingStart=Math.min(p.processingStart,l.processingStart),l.processingEnd=Math.max(p.processingEnd,l.processingEnd),l.entries.push(p);break}}l||(l={startTime:p.startTime,processingStart:p.processingStart,processingEnd:p.processingEnd,renderTime:m,entries:[p]},o.push(l)),(p.interactionId||p.entryType==="first-input")&&i.set(p,l),u()},n.p=p=>{if(!a.get(p)){let m=(e.generateTarget??Vt)(p.entries[0].target);a.set(p,m)}};let d=(p,m)=>{let l=[];for(let h of r)if(!(h.startTime+h.durationm)break;l.push(h)}return l},E=p=>{let m=p.entries[0],l=i.get(m),h=m.processingStart,T=Math.max(m.startTime+m.duration,h),b=Math.min(l.processingEnd,T),I=l.entries.sort((S,N)=>S.processingStart-N.processingStart),Tt=d(m.startTime,b),q=n.h.get(m.interactionId),tt={interactionTarget:a.get(q),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:T,processedEventEntries:I,longAnimationFrameEntries:Tt,inputDelay:h-m.startTime,processingDuration:b-h,presentationDelay:T-b,loadState:ut(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let N=S.interactionTime,yt=S.inputDelay,ne=S.processingDuration,Et,bt,vt=0,$=0,St=0,wt=0;for(let et of S.longAnimationFrameEntries){$=$+et.startTime+et.duration-et.styleAndLayoutStart;for(let L of et.scripts){let oe=L.startTime+L.duration;if(oewt&&(bt=L.startTime=N+yt+ne?"presentation-delay":"processing-duration",Et=L,wt=nt)}}let Ct=S.longAnimationFrameEntries.at(-1),re=Ct?Ct.startTime+Ct.duration:0;re>=N+yt+ne&&(St=S.nextPaintTime-re),Et&&bt&&(S.longestScript={entry:Et,subpart:bt,intersectingDuration:wt}),S.totalScriptDuration=vt,S.totalStyleAndLayoutDuration=$,S.totalPaintDuration=St,S.totalUnattributedDuration=S.nextPaintTime-N-vt-$-St})(tt),Object.assign(p,{attribution:tt})};V("long-animation-frame",p=>{r=r.concat(p),u()}),((p,m={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&dt(()=>{xn();let l,h=R("INP"),T=H(m,ft),b=Tt=>{Gt(()=>{for(let tt of Tt)T.u(tt);let q=T.M();q&&q.T!==h.value&&(h.value=q.T,h.entries=q.entries,l())})},I=V("event",b,{durationThreshold:m.durationThreshold??40});l=M(p,h,ke,m.reportAllChanges),I&&(I.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(b(I.takeRecords()),l(!0))}),j(()=>{T.v(),h=R("INP"),l=M(p,h,ke,m.reportAllChanges)}))})})(p=>{let m=E(p);t(m)},e)},pt=class{m;u(e){this.m?.(e)}},Ne=[2500,4e3],Fe=(t,e={})=>{let n=H(e=Object.assign({},e),pt),r=new WeakMap;n.m=o=>{if(o.element){let s=(e.generateTarget??Vt)(o.element);r.set(o,s)}},((o,s={})=>{dt(()=>{let i=Ae(),a,c=R("LCP"),u=H(s,pt),g=E=>{s.reportAllChanges||(E=E.slice(-1));for(let p of E)u.u(p),p.startTime{g(d.takeRecords()),d.disconnect(),a(!0)});for(let p of["keydown","click","visibilitychange"])addEventListener(p,()=>Gt(E),{capture:!0,once:!0});j(p=>{c=R("LCP"),a=M(o,c,Ne,s.reportAllChanges),Wt(()=>{c.value=performance.now()-p.timeStamp,a(!0)})})}})})(o=>{let s=(i=>{let a={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:i.value};if(i.entries.length){let c=W();if(c){let u=c.activationStart||0,g=i.entries.at(-1),d=g.url&&performance.getEntriesByType("resource").filter(l=>l.name===g.url)[0],E=Math.max(0,c.responseStart-u),p=Math.max(E,d?(d.requestStart||d.startTime)-u:0),m=Math.min(i.value,Math.max(p,d?d.responseEnd-u:0));a={target:r.get(g),timeToFirstByte:E,resourceLoadDelay:p-E,resourceLoadDuration:m-p,elementRenderDelay:i.value-m,navigationEntry:c,lcpEntry:g},g.url&&(a.url=g.url),d&&(a.lcpResourceEntry=d)}}return Object.assign(i,{attribution:a})})(o);t(s)},e)},xe=[800,1800],Ht=t=>{document.prerendering?dt(()=>Ht(t)):document.readyState!=="complete"?addEventListener("load",()=>Ht(t),!0):setTimeout(t)},Ue=(t,e={})=>{((n,r={})=>{let o=R("TTFB"),s=M(n,o,xe,r.reportAllChanges);Ht(()=>{let i=W();i&&(o.value=Math.max(i.responseStart-Q(),0),o.entries=[i],s(!0),j(()=>{o=R("TTFB",0),s=M(n,o,xe,r.reportAllChanges),s(!0)}))})})(n=>{let r=(o=>{let s={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(o.entries.length){let i=o.entries[0],a=i.activationStart||0,c=Math.max((i.workerStart||i.fetchStart)-a,0),u=Math.max(i.domainLookupStart-a,0),g=Math.max(i.connectStart-a,0),d=Math.max(i.connectEnd-a,0);s={waitingDuration:c,cacheDuration:u-c,dnsDuration:g-u,connectionDuration:d-g,requestDuration:o.value-d,navigationEntry:i}}return Object.assign(o,{attribution:s})})(n);t(r)},e)};function $t(t,e){t=t.filter(i=>i.startTime>e-1e4);let n=v(t,i=>-i.duration).slice(0,6);if(n.length===0)return;let r=n.reduce((i,a)=>i+a.scripts.length,0),o=r<12?6:3,s=r<12?2:10;return v(n,i=>i.startTime).map(i=>Pn(i,o,s))}function Pn(t,e,n){let r=t.scripts.filter(i=>i.duration>=n),o=v(r,i=>r.indexOf(i)===r.length-1?-1e6:-i.duration),s=v(o.slice(0,e),i=>i.startTime);return{sT:Math.round(t.startTime),d:Math.round(t.duration),ui:Math.round(t.firstUIEventTimestamp),sc:r.length,rs:Math.round(t.renderStart),sls:Math.round(t.styleAndLayoutStart),scr:s.map(i=>{let a=i.sourceFunctionName;return{sT:Math.round(i.startTime),d:i.duration,p:Math.round(i.pauseDuration),sl:Math.round(i.forcedStyleAndLayoutDuration),n:P(i.invoker,175),l:i.sourceURL?[typeof a=="string"?a.slice(0,80):a,typeof i.sourceURL=="string"?P(i.sourceURL,175):i.sourceURL,i.sourceCharPosition]:i.sourceLocation,t:i.invokerType||i.type}})}}function Ge(t,e){t=v(t,r=>-r.duration);let n=null;if(e){let r=t.find(o=>{let s=o.startTime+o.duration;return o.startTime<=e&&s>=e});if(r)n=r;else{let o=v(t,s=>Math.abs(e-s.startTime))[0];o&&Math.abs(e-o.startTime)<75&&(n=o)}}return n?$t([n],6):[]}var He=null;function Ve(t){He=t}function Xt(t){return t.renderBlockingStatus==="blocking"}var In={img:1,link:2,script:3,css:4,xmlhttprequest:5,fetch:6,other:7};function An(t){let e=zt(t),n=t.name,r=t.initiatorType,o=In[r]||0,s=Xt(t),i=0;s&&(i|=1);let a=n.startsWith(location.origin);function c(m,l=!1){if(l)try{m=decodeURIComponent(m)}catch{}return CSS.escape(m)}function u(m=!1){let l=`="${c(n,m)}"`;if(a)try{let h=new URL(n),T=h.pathname+(n.includes("?")?h.search:"");l=`$="${c(T,m)}"`}catch(h){x(h)}return l}function g(m){let l=m==="link"?"href":"src";function h(T=!1){return`${m}[${l}${u(T)}]`}return document.querySelector(`${h()},${h(!0)}`)}if(r==="link"){let m=g("link");m&&(m.rel==="preload"&&(i|=2),m.fetchPriority==="high"&&(i|=8))}if(r==="img"){let m=g("img");m&&m.fetchPriority==="high"&&(i|=8)}r==="css"&&(i|=4);let d=We(t);d&&(i|=16),t.deliveryType==="cache"&&(i|=32);let E=d,p=n.slice(0,20);try{if(E)p=ot(n);else{let m=new URL(n),l=m.hostname.slice(0,25),h;if(m.pathname.length<30)h=m.pathname;else{let T=m.pathname.split("/").slice(-2),b=T[1]?T[1]:T[0];h="\u2026/"+(b.length<30?b:b.slice(0,10)+"\u2026"+b.slice(-18))}p=l+(h.startsWith("/")?h:"/"+h)}}catch(m){return x(m),null}return{array:[p,e.start,e.sw+e.redirect,e.dns,e.tcp,e.tls,e.req,e.download,i,t.transferSize,o],isBlocking:s,isLcp:d,entry:t}}function zt(t){let e=Math.round(t.domainLookupEnd-t.domainLookupStart),n=t.secureConnectionStart?t.secureConnectionStart:t.connectEnd,r=Math.round(n-t.connectStart),o=t.secureConnectionStart?Math.round(t.connectEnd-t.secureConnectionStart):0,s=Math.round(t.responseStart-(t.connectEnd?t.connectEnd:t.requestStart)),i=Math.max(0,Math.round(t.responseEnd-(t.responseStart||t.startTime))),a=Math.round(t.redirectEnd),c=t.redirectEnd?Math.round((t.domainLookupStart||t.fetchStart)-t.redirectEnd-t.startTime):Math.round((t.domainLookupStart||t.fetchStart)-t.startTime);return{start:Math.round(t.startTime),sw:c,redirect:a,dns:e,tcp:r,tls:o,req:s,download:i}}function We(t){return t.name===He}function je(t){let e=C("resource").filter(l=>l.name!==""),n=e.filter(l=>{if(l.startTime>8e3)return!1;let h=t.lcp?.value;if(h){let T=l.startTime+l.duration,b=h+1e3;return TWe(l)),s=v(n.filter(l=>Xt(l)),l=>l.responseEnd).reverse().slice(0,3),i=v(n.filter(l=>Xt(l)),l=>l.duration).reverse().slice(0,2),a=v(n,l=>l.duration).reverse().slice(0,2),c=v(n,l=>l.transferSize).reverse().slice(0,2),u=n.find(l=>l.initiatorType==="img"),g=n.find(l=>l.initiatorType==="script"),d=t.inp?.startTime,E=t.inp?.value,p=d?e.filter(l=>l.startTime>d&&l.startTimem.has(l)).map(l=>An(l)?.array).filter(Boolean)}var Jt=18e4,Qt={ttfb:(t,e,n)=>{let r=Math.round(t.value),o=n.fcp?.value;if(o&&r>o||r>Jt)return;e.value=r;let s=t.entries[0];if(n.navigationType=t.navigationType,s){let{sw:i,redirect:a,dns:c,tcp:u,tls:g,req:d,download:E}=zt(s);e.sw=i,e.redirect=a,e.dns=c,e.tcp=u,e.tls=g,e.req=d,e.download=E,e.transferSize=Math.round(s.transferSize)}return e},cls:(t,e)=>{e.value=Rt(t.value);let{attribution:n}=t,{largestShiftSource:r}=n;if(r){if(e.startTime=n.largestShiftTime?Math.round(n.largestShiftTime):void 0,n.largestShiftTarget){let o=Kt(n.largestShiftTarget);e.text=o.text,e.selector=o.selector,e.path=o.path}return e.shift=$e(r.previousRect).join(",")+"-"+$e(r.currentRect).join(","),e.mainValue=Rt(n.largestShiftValue),e.scrollTop=rt(),e}},lcp:(t,e)=>{let n=t.value;if(n>Jt)return;e.value=Math.round(n);let r=t.entries[0];if(r){Ve(r.url),e.url=ot(r.url);let o=t.attribution.target;if(o){let s=Kt(o);e.selector=s.selector,e.text=s.text,e.path=s.path}}return e},inp:(t,e)=>{let n=t.value;if(n>12e4||(e.value=Math.round(n),t.entries.length===0))return;let{attribution:r}=t;e.breakdown=[r.inputDelay,r.processingDuration,r.presentationDelay].map(a=>Math.round(a));let o=Kt(r.interactionTarget),s=Math.round(r.interactionTime);e.name=r.interactionType,e.startTime=s,e.selector=o.selector,e.text=o.text,e.path=o.path;let i=r.longAnimationFrameEntries;return e.loafs=$t(i,s),e},fcp:(t,e,n)=>{let r=Math.round(t.value),o=n.lcp?.value;if(!(o&&oJt))return e.value=r,e}};function $e(t){return[t.left,t.top,t.right,t.bottom]}function Kt(t){return JSON.parse(t)}var Dn=B(function(e){x(e);let n=e.name.toLowerCase();if(!(n==="inp"&&e.entries.length===0)){if(typeof Qt[n]!="function")throw new Error(`No handler for ${n}`);f[n]=Qt[n](e,f[n]??{},f)}});function Xe(){[Ue,qe,Fe,Be,Oe].map(t=>t(Dn,{reportAllChanges:!0,generateTarget:e=>{let n={selector:null,path:null,text:null};return e&&(n.text=O(e,y),n.selector=U(e,y),n.path=F(e,y)),JSON.stringify(n)}}))}function ze(){let t=it().filter(o=>o.renderBlockingStatus==="blocking"),e=0;t.forEach(o=>{o.responseEnd>e&&(e=o.responseEnd)});let n=t.find(o=>o.responseEnd===e),r;return n&&(r={start:Math.round(n.startTime),end:Math.round(n.responseEnd),size:n.decodedBodySize,url:P(n.name,kt+z),type:n.initiatorType}),{last:r,count:t.length}}function Je(t,e,n,r,o=null){return r.find(s=>{let{type:i,paths:a,cssSelector:c,urlRegExps:u}=s;if(i==="url")return a.length===0?!1:a.some(g=>Bn(g).test(e));if(i==="urlRegExp"){let g=t+e+(n&&"?"+n);return u.some(d=>qn(d,g))}else if(i==="selector"&&c&&o)return!!o(c)})}function Bn(t){let e="^"+t.replace(/(\*\*?)/g,function(n){return n==="**"?".*":"[^/]*"})+"/?$";return new RegExp(e)}function qn(t,e){try{return new RegExp(t).test(e)}catch{return!1}}var _n=y.pageGroups||[],gt=()=>Je(location.hostname,location.pathname,location.search.slice(1),_n,document.querySelector.bind(document));function Ke(){let t={};return[...performance?.getEntriesByType?.("navigation")??[],...performance?.getEntriesByType?.("resource")??[]].forEach(e=>{if(!e.name?.includes(location.origin))return;let r=e.transferSize,o=On(e);t[o]=t[o]||null,t[o]=(t[o]??0)+r}),["html","css","script","image","media","font","fetch","other"].map(e=>t[e]||0)}function On(t){let{initiatorType:e,contentType:n,name:r}=t;return e==="navigation"||n&&n.includes("html")?"html":n&&n.includes("css")||e==="link"&&r?.includes("css")?"css":n&&n.includes("font")?"font":e==="script"?"script":e==="img"?"image":e==="fetch"||e==="xmlhttprequest"?"fetch":e==="audio"||e==="video"?"media":"other"}var Qe=35;function Ye(t,e,n,r){let o=[],s=[];if(n){let u=n+r,g=e.filter(d=>d.startTime+d.duration>=n&&d.startTime<=u);o=v(g,d=>-d.duration).slice(0,4),s=t.filter(d=>d.startTime>=n&&d.startTime<=u).slice(0,3)}let i=v(e,u=>-u.duration).slice(0,3),a=t.slice(0,4);return[t.filter(u=>a.includes(u)||s.includes(u)).map(u=>[w(u.name,Qe),Math.round(u.startTime)]),e.filter(u=>o.includes(u)||i.includes(u)).map(u=>[w(u.name,Qe),Math.round(u.startTime),Math.round(u.duration)])]}function Ze(t,e){let n=t?.domains;return!Array.isArray(n)||!n.length||!e?!0:n.some(o=>{let s=o.toLowerCase(),i=e.toLowerCase();return!!(i===s||i.endsWith("."+s)&&t.includeSubdomains)})}var Fn=location.href,Un=3;function Gn(t){return typeof t=="object"&&t!==null&&"message"in t}function Hn(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"}function tn(t){let e=Yt(t)?t.error:t.reason;return e==null?"message"in t?t.message:"Message unknown":Hn(e)?String(e):Gn(e)?String(e.message):JSON.stringify(e)}function Vn(t){let e=null;Yt(t)?e=t.error?.stack??null:e=t.reason?.stack??null;function n(r){let o=r.split(` `);return o[0].includes(tn(t))&&o.shift(),o.join(` `).replace(/^ +/g,"").replace(/\n +/g,` `)}return e&&n(e)}function Wn(t){if("lineno"in t&&t.lineno&&"colno"in t&&t.colno)return{lineNo:t.lineno,colNo:t.colno};let e=(Yt(t)?t.error:t.reason)?.stack;if(e){let n=e.split(` `).slice(1,2).join(` `).match(/:(\d+):(\d+)/);if(n)return{lineNo:parseInt(n[1],10),colNo:parseInt(n[2],10)}}return{lineNo:null,colNo:null}}function jn(t,e){let n=null;if("filename"in t&&t.filename&&t.filename!=="undefined")n=t.filename.replace(/ line \d+.*?$/,"");else if(e){let r=e.split(` `)[0].match(/(at )?(.*):\d+:\d+/);if(r){let o="([^\\s\\t]*@)",s=".*?\\(";n=r[2].replace(new RegExp(`^${o}|${s}`),"")}}return n===Fn&&(n="Inline Script"),n}function $n(t){if(!t)return null;let e=t.split(` `)[0],n=e.match(/(at )(([^(]+) \()?/);return n?n[3]||null:e.includes("@")&&e.split("@")[0]||null}function Xn(t){let e=Vn(t),n=$n(e),r=jn(t,e),o=Wn(t);return[Math.round(t.timeStamp),w(_(tn(t)),120),r?P(r,100)??null:null,n?w(n,80):null,o.lineNo,o.colNo]}function Yt(t){return t instanceof ErrorEvent}function en(t,e,n=0){let r=Xn(t);return{errors:(e?.length??0)>=Un?e:[...e||[],r],errorCount:n+1}}var nn=gt(),Y,rn=100;if(typeof nn?.sampling=="number")Y=nn.sampling;else{let t=y.sampling;Y=typeof t=="number"?t:100}var Zt=[],k={push:function(...t){return t.forEach(([e,n])=>{if(x([e,n]),e==="sampling"&&(Y=n),e==="presampling"&&(rn=n),["tag1","tag2","tag3","tag4","tag5"].includes(e)&&(f[e]=(n+"").slice(0,140)),["metric1","metric2","metric3","metric4","metric5"].includes(e)&&(f[e]=Math.round(n*100)/100),e==="error"||e==="unhandledrejection"){let{errors:r,errorCount:o}=en(n,f.err,f.ec);f.err=r,f.ec=o}e==="beforeSend"&&Zt.push(n)}),0}},ht;function on(){let t=window.dbbRum;t?.forEach&&t.forEach(n=>{k.push(n)});let e=Y/rn*100;ht=Math.random()*100>100-e,x({sampling:Y,isIncludedInSample:ht}),k._getNodeText=O,k._getNodePath=F,k._getNodeSelector=U,k._experience=f,k._sendExperience=Z,k._prep=te,k._sample=ht,window.dbbRum=k}function sn(){return ht}var zn=Ze(y,location.hostname),ee=null,an,Z=B(function(e){if(!sn()||!["https:","http:"].includes(location.protocol)||f.sendIndex>10)return;let n=ee&&new Date().valueOf()-ee.valueOf();if(n&&n<80||!zn)return;Zt.forEach(o=>{try{o()}catch(s){console.error(s)}}),Jn(),te();let r=JSON.stringify({...f,sendIndex:void 0,sendTrigger:void 0,sentAt:void 0,requests:f.requests?{...f.requests,count:void 0}:f.requests});r!==an&&(an=r,ee=new Date,f.sendTrigger=e,It(f,e===st?"fetch":"beacon"),f.sendIndex++)});function Jn(){if(!y.mappings)return;let t=function(n,r){return performance.getEntriesByType(n).slice(0,1e3).find(o=>o.name.includes(r))},e={urlQueryParam:n=>new URLSearchParams(Nt).get(n),requestStartTime:n=>t("resource",n)?.startTime,requestEndTime:n=>{let r=t("resource",n);return r?r.startTime+r.duration:null},requestDuration:n=>t("resource",n)?.duration,performanceMark:n=>t("mark",n)?.startTime,performanceMeasure:n=>t("measure",n)?.duration};y.mappings.forEach(n=>{if(f[n.mapping])return;let r=n.autoCollectionType,o=n.autoCollectionParam,s=e[r]?e[r](o):void 0;(typeof s=="string"||typeof s=="number")&&window.dbbRum.push([n.mapping,s])})}var ln=!1;function te(){if(f.sentAt=Date.now(),!ln){let a=gt();a&&a.type==="selector"&&(f.pgId=a.id)}let t=ye();f.navigationCount=t.navigations.length,f.navigations=t.navigations.slice(0,6);let e=C("navigation")[0];f.dcl=Math.round(e?.domContentLoadedEventStart),f.load=Math.round(e?.loadEventStart);let n=it(),o=n?.[0]&&"deliveryType"in n[0]?n.filter(a=>a.deliveryType==="cache").length:null;f.requests={blocking:ze(),count:n.length,cache:o},f.reqs||(f.reqs=je(f)),f.pageTitle||(f.pageTitle=xt());let s=C("mark"),i=C("measure");if(f.ut=Ye(s,i,f.inp?.startTime,f.inp?.value),f.inp&&(!f.inp?.loafs||f.inp.loafs.length===0)){let a=Ge(performance.getEntriesByName("long-animation-frame")||[],f.inp?.startTime);a.length>0&&(f.inp.loafs=a)}f.fppw=Ke(),f.events=v([...t.nonClickEvents,...t.clickEvents],a=>a.ms),ln=!0}Ee();y.snippetKey&&(f.snippetKey=y.snippetKey);on();Kn(Xe);function Kn(t){if(typeof requestIdleCallback=="function")return requestIdleCallback(t);setTimeout(t,10)}setTimeout(()=>{Z(st)},8e3);addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Z("visibilitychange")});})(); })();