/*! For license information please see nr-spa-1.301.0.min.js.LICENSE.txt */ "use strict";(self["webpackChunk:NRBA-1.301.0.PROD"]=self["webpackChunk:NRBA-1.301.0.PROD"]||[]).push([[478],{1083:(e,t,i)=>{i.d(t,{w:()=>r});const r={FIRST_PAINT:"fp",FIRST_CONTENTFUL_PAINT:"fcp",FIRST_INTERACTION:"fi",LARGEST_CONTENTFUL_PAINT:"lcp",CUMULATIVE_LAYOUT_SHIFT:"cls",INTERACTION_TO_NEXT_PAINT:"inp",TIME_TO_FIRST_BYTE:"ttfb"}},1528:(e,t,i)=>{function r(e,t,i){let r="unknown";if(e&&e instanceof XMLHttpRequest){const t=i.context(e).params;if(!(t&&t.status&&t.method&&t.host&&t.pathname))return"xhrOriginMissing";r=t.status+" "+t.method+": "+t.host+t.pathname}else if(e&&"string"==typeof e.tagName&&(r=e.tagName.toLowerCase(),e.id&&(r+="#"+e.id),e.className))for(let t=0;tr})},1630:(e,t,i)=>{i.d(t,{r:()=>_});var r=i(4234),s=i(2555),n=i(5205),a=i(384),o=i(1687),c=i(5701),h=i(4284),u=i(944);class d{constructor(e){this.agentRef=e,this.warnedRegexMissing=!1,this.warnedInvalidRegex=!1,this.warnedInvalidReplacement=!1}get obfuscateConfigRules(){return this.agentRef.init.obfuscate||[]}obfuscateString(e){if("string"!=typeof e||0===e.trim().length)return e;const t=this.obfuscateConfigRules.map(e=>this.validateObfuscationRule(e));return(0,h.p)()&&t.push({regex:/^file:\/\/(.*)/,replacement:atob("ZmlsZTovL09CRlVTQ0FURUQ=")}),t.filter(e=>e.isValid).reduce((e,t)=>{const{rule:i}=t;return e.replace(i.regex,i.replacement||"*")},e)}validateObfuscationRule(e){const t=Boolean(void 0===e.regex),i=Boolean(void 0!==e.regex&&"string"!=typeof e.regex&&!(e.regex instanceof RegExp)),r=Boolean(e.replacement&&"string"!=typeof e.replacement);return t&&!this.warnedRegexMissing?((0,u.R)(12,e),this.warnedRegexMissing=!0):i&&!this.warnedInvalidRegex&&((0,u.R)(13,e),this.warnedInvalidRegex=!0),r&&!this.warnedInvalidReplacement&&((0,u.R)(14,e),this.warnedInvalidReplacement=!0),{rule:e,isValid:!t&&!i&&!r,errors:{regexMissingDetected:t,invalidRegexDetected:i,invalidReplacementDetected:r}}}}var l=i(860),p=i(7699),f=i(3496);class g{constructor(e,t,i,r){this.agentRef=e,this.entityManager=e.runtime.entityManager,this.StorageClass=t,this.appStorageMap=new Map([[p.uh,new this.StorageClass(p.It,r)]]),this.featureAgg=r,this.setEventStore(i)}#e(e=p.uh){return this.appStorageMap.has(e)||this.setEventStore(e),this.appStorageMap.get(e)}setEventStore(e){if(!e)return;const t=(0,f.A)(this.entityManager.get(e),this.agentRef)?this.appStorageMap.get(p.uh):new this.StorageClass(p.It,this.featureAgg);this.appStorageMap.set(e,t)}get length(){return this.#e().length}merge(e,t,i){return this.#e(i).merge(e,t)}isEmpty(e,t){if(t)return this.#e(t).isEmpty(e);for(const t of this.appStorageMap.values())if(!t.isEmpty(e))return!1;return!0}add(e,t){return this.#e(t).add(e)}addMetric(e,t,i,r){return this.#e().addMetric(e,t,i,r)}get(e,t){if(t)return[{targetApp:this.entityManager.get(t),data:this.#e(t).get(e)}];const i=[];return this.appStorageMap.forEach((t,r)=>{if(r===p.uh)return;const s=this.entityManager.get(r);s&&i.push({targetApp:s,data:t.get(e)})}),i}byteSize(e){return this.#e(e).byteSize()}wouldExceedMaxSize(e,t){return this.#e(t).wouldExceedMaxSize(e)}save(e,t){if(t)return this.#e(t).save(e);this.appStorageMap.forEach(t=>t.save(e))}clear(e,t){if(t)return this.#e(t).clear(e);this.appStorageMap.forEach(t=>t.clear(e))}reloadSave(e,t){return this.#e(t).reloadSave(e)}clearSave(e,t){return this.#e(t).clearSave(e)}}var m=i(8154),v=i(9324),y=i(6154),b=i(9908),S=i(3878),T=i(1863),R=i(2843);if(y.bv){y.gm.cleanupTasks=[];const e=y.gm.close;y.gm.close=()=>{for(let e of y.gm.cleanupTasks)e();e()}}var w=i(9119),E=i(3762),N=i(3304);function A({url:e,body:t=null,method:i="POST",headers:r=[{key:"content-type",value:"text/plain"}]}){const s={};for(const e of r)s[e.key]=e.value;return fetch(e,{headers:s,method:i,body:t,credentials:"include"})}function M({url:e,body:t=null,sync:i,method:r="POST",headers:s=[{key:"content-type",value:"text/plain"}]}){const n=new XMLHttpRequest;n.open(r,e,!i);try{"withCredentials"in n&&(n.withCredentials=!0)}catch(e){}return s.forEach(e=>{n.setRequestHeader(e.key,e.value)}),n.send(t),n}function k({url:e,body:t}){try{return window.navigator.sendBeacon.bind(window.navigator)(e,t)}catch(e){return!1}}var I=i(3241);class C{#t=!1;initializedAggregates=[];constructor(e){var t,i;this.agentRef=e,t=()=>{this.initializedAggregates.forEach(e=>{"function"==typeof e.harvestOpts.beforeUnload&&e.harvestOpts.beforeUnload()}),this.initializedAggregates.forEach(e=>this.triggerHarvestFor(e,{isFinalHarvest:!0}))},i=!1,y.RI?(0,R.u)(t,!0,i):y.bv&&y.gm.cleanupTasks.push(t)}startTimer(e=this.agentRef.init.harvest.interval){if(this.#t)return;this.#t=!0;const t=()=>{this.initializedAggregates.forEach(e=>this.triggerHarvestFor(e)),setTimeout(t,1e3*e)};setTimeout(t,1e3*e)}triggerHarvestFor(e,t={}){if(e.blocked)return!1;const i=function({isFinalHarvest:e=!1}={}){return e&&y.RI?k:"undefined"!=typeof XMLHttpRequest?M:A}(t);if(!i)return!1;const r=!t.isFinalHarvest&&i===M;let s,n=!1;if(t.directSend)s=[t.directSend];else if(s=e.makeHarvestPayload(r,t),!s)return!1;return s.forEach(({targetApp:r,payload:s})=>{s&&(!function(e,{endpoint:t,targetApp:i,payload:r,localOpts:s={},submitMethod:n,cbFinished:a,raw:o,featureName:h}){if(!e.info.errorBeacon)return!1;let{body:d,qs:p}=function(e={}){const t=e=>"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||Array.isArray(e)||"string"==typeof e?e:Object.entries(e||{}).reduce((e,[t,i])=>(("number"==typeof i||"string"==typeof i&&i.length>0||"object"==typeof i&&Object.keys(i||{}).length>0)&&(e[t]=i),e),{});return{body:t(e.body),qs:t(e.qs)}}(r);if(0===Object.keys(d).length&&!s.sendEmptyBody)return a&&a({sent:!1,targetApp:i}),!1;const f=!1===e.init.ssl?"http":"https",g=e.init.proxy.beacon||e.info.errorBeacon,m=o?"".concat(f,"://").concat(g,"/").concat(t):"".concat(f,"://").concat(g).concat(t!==l.v4?"/"+t:"","/1/").concat(i.licenseKey),R=o?"":function(e,t,i,r){const s=e.runtime.obfuscator.obfuscateString((0,w.L)(""+y.gm.location)),n=e.runtime.session,a=!!n?.state.sessionReplaySentFirstChunk&&1===n?.state.sessionReplayMode&&i!==l.XX,o=!!n?.state.traceHarvestStarted&&1===n?.state.sessionTraceMode&&![l.Yy,l.df].includes(i),c=["a="+r,(0,E.uR)("sa",e.info.sa?""+e.info.sa:""),(0,E.uR)("v",v.xv),h(),(0,E.uR)("ct",e.runtime.customTransaction),"&rst="+(0,T.t)(),"&ck=0","&s="+(n?.state.value||"0"),(0,E.uR)("ref",s),(0,E.uR)("ptid",e.runtime.ptid?""+e.runtime.ptid:"")];a&&c.push((0,E.uR)("hr","1",t));o&&c.push((0,E.uR)("ht","1",t));return c.join("");function h(){return e.info.transactionName?(0,E.uR)("to",e.info.transactionName):(0,E.uR)("t",e.info.tNamePlain||"Unnamed Transaction")}}(e,p,t,i.applicationID);let k=(0,E.WL)(p,e.runtime.maxBytes);""===R&&k.startsWith("&")&&(k=k.substring(1));const C="".concat(m,"?").concat(R).concat(k);let O=p?.attributes?.includes("gzip")||t===l.qY?d:(0,N.A)(d);O&&0!==O.length&&"{}"!==O&&"[]"!==O||(O="");t!==l.df&&O.length>75e4&&1===(x[t]=(x[t]||0)+1)&&(0,u.R)(28,t);const F=[{key:"content-type",value:"text/plain"}];let L=n({url:C,body:O,sync:s.isFinalHarvest&&y.bv,headers:F});if(!s.isFinalHarvest&&a){function D(){try{if(h===l.K7.jserrors&&!d?.err)return;const t=R.includes("hr=1"),i=R.includes("ht=1"),r=p?.attributes?.includes("hasError=true");(0,b.p)("harvest-metadata",[{[h]:{...t&&{hasReplay:t},...i&&{hasTrace:i},...r&&{hasError:r}}}],void 0,l.K7.metrics,e.ee)}catch(e){}}n===M?L.addEventListener("loadend",function(){const e={sent:0!==this.status,status:this.status,retry:P(this.status),fullUrl:C,xhr:this,targetApp:i};s.needResponse&&(e.responseText=this.responseText),a(e),P(this.status)||D()},(0,S.jT)(!1)):n===A&&L.then(async function(e){const t=e.status,r={sent:!0,status:t,retry:P(t),fullUrl:C,fetchResponse:e,targetApp:i};s.needResponse&&(r.responseText=await e.text()),a(r),P(t)||D()})}return(0,I.W)({agentIdentifier:e.agentIdentifier,drained:!!c.B?.[e.agentIdentifier],type:"data",name:"harvest",feature:h,data:{endpoint:t,headers:F,targetApp:i,payload:r,submitMethod:j(),raw:o,synchronousXhr:!(!s.isFinalHarvest||!y.bv)}}),!0;function P(e){switch(e){case 408:case 429:case 500:return!0}return e>=502&&e<=504||e>=512&&e<=530}function j(){return n===M?"xhr":n===A?"fetch":"beacon"}}(this.agentRef,{endpoint:l.$J[e.featureName],targetApp:r,payload:s,localOpts:t,submitMethod:i,cbFinished:a,raw:e.harvestOpts.raw,featureName:e.featureName}),n=!0)}),n;function a(i){e.harvestOpts.prevAttemptCode&&((0,b.p)(m.xV,[(i.retry?"Harvester/Retry/Failed/":"Harvester/Retry/Succeeded/")+e.harvestOpts.prevAttemptCode],void 0,l.K7.metrics,e.ee),delete e.harvestOpts.prevAttemptCode),i.retry&&(e.harvestOpts.prevAttemptCode=i.status),t.forceNoRetry&&(i.retry=!1),e.postHarvestCleanup(i)}}}const x={};class O{#i=new Map;#r={};constructor(e){this.agentRef=e,this.#i.set(p.uh,{licenseKey:e.info.licenseKey,applicationID:e.info.applicationID})}get(e=p.uh){return this.#i.get(e)}getEntityGuidFor(e,t){if(this.#r[e]&&this.#r[t])return this.#r[e].filter(e=>this.#r[t].includes(e))[0]}set(e,t){this.#i.has(e)||(this.#i.set(e,t),this.#r[t.licenseKey]??=[],this.#r[t.licenseKey].push(e),this.#r[t.applicationID]??=[],this.#r[t.applicationID].push(e),this.agentRef.ee.emit("entity-added",[t]))}clear(){this.#i.clear()}setDefaultEntity(e){this.#i.set(p.uh,e)}}var F=i(8771);class L{constructor(){this.aggregatedData={}}store(e,t,i,r,s){var n=this.#s(e,t,i,s);return n.metrics=function(e,t){t||(t={count:0});return t.count+=1,Object.entries(e||{}).forEach(([e,i])=>{t[e]=P(i,t[e])}),t}(r,n.metrics),n}merge(e,t,i,r,s,n=!1){var a=this.#s(e,t,r,s);if(n&&(a.params=r),a.metrics){var o=a.metrics;o.count+=i.count,Object.keys(i||{}).forEach(e=>{if("count"!==e){var t=o[e],r=i[e];r&&!r.c?o[e]=P(r.t,t):o[e]=function(e,t){if(!t)return e;t.c||(t=j(t.t));return t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t}(r,o[e])}})}else a.metrics=i}storeMetric(e,t,i,r){var s=this.#s(e,t,i);return s.stats=P(r,s.stats),s}take(e,t=!0){for(var i={},r="",s=!1,n=0;nt.max&&(t.max=e),e!this.#n.aggregatedData[e]):0===Object.keys(this.#n.aggregatedData).length}add([e,t,i,r,s]){return this.#n.store(e,t,i,r,s),!0}addMetric(e,t,i,r){return this.#n.storeMetric(e,t,i,r),!0}save({aggregatorTypes:e}){const t=e.toString(),i={};e.forEach(e=>i[e]=this.#n.aggregatedData[e]),this.#a[t]=i}get(e){const t=Array.isArray(e)?e:e.aggregatorTypes;return this.#n.take(t,!1)}clear({aggregatorTypes:e}={}){e?e.forEach(e=>delete this.#n.aggregatedData[e]):this.#n.aggregatedData={}}reloadSave({aggregatorTypes:e}){const t=e.toString(),i=this.#a[t];e.forEach(e=>{Object.keys(i[e]||{}).forEach(t=>{const r=i[e][t];this.#n.merge(e,t,r.metrics,r.params,r.custom,!0)})})}clearSave({aggregatorTypes:e}){const t=e.toString();delete this.#a[t]}}class _ extends r.W{constructor(e,t){super(e.agentIdentifier,t),this.agentRef=e,this.checkConfiguration(e),this.doOnceForAllAggregate(e),this.customAttributesAreSeparate=!1,this.canHarvestEarly=!0,this.isRetrying=!1,this.harvestOpts={};const i=this.agentRef?.runtime?.appMetadata?.agents?.[0]?.entityGuid;this.#o(i),i||this.ee.on("entity-added",e=>{this.events?.setEventStore?.(e.entityGuid)})}#o(e){if(!this.events)switch(this.featureName){case l.K7.sessionReplay:break;case l.K7.jserrors:case l.K7.metrics:this.events=this.agentRef.sharedAggregator??=new g(this.agentRef,D,e,{featureName:"shared_aggregator"});break;default:this.events=new g(this.agentRef,F.Z,e,this)}}decideEarlyHarvest(){if(!this.canHarvestEarly||this.blocked||this.isRetrying)return;const e=this.events.byteSize()+(this.customAttributesAreSeparate?this.agentRef.runtime.jsAttributesMetadata.bytes:0);e>p.No&&(this.agentRef.runtime.harvester.triggerHarvestFor(this),this.reportSupportabilityMetric("".concat(this.featureName,"/Harvest/Early/Seen"),e))}waitForFlags(e=[]){return new Promise((t,i)=>{function r(t){return e.map(e=>t[e]?t[e]:0)}c.B[this.agentIdentifier]?t(r(c.B[this.agentIdentifier])):this.ee.on("rumresp",(e={})=>{t(r(e))})}).catch(e=>{this.ee.emit("internal-error",[e]),this.blocked=!0,this.deregisterDrain()})}drain(){(0,o.Ze)(this.agentIdentifier,this.featureName),this.drained=!0}preHarvestChecks(e){return!this.blocked}makeHarvestPayload(e=!1,t={}){if(!this.events||this.events.isEmpty(this.harvestOpts,t.targetEntityGuid))return;if(this.preHarvestChecks&&!this.preHarvestChecks(t))return;e&&this.events.save(this.harvestOpts,t.targetEntityGuid);const i=this.events.get(this.harvestOpts,t.targetEntityGuid);return i.length?(this.events.clear(this.harvestOpts,t.targetEntityGuid),i.map(({targetApp:e,data:t})=>{const i={body:this.serializer?this.serializer(t,e?.entityGuid):t};return this.queryStringsBuilder&&(i.qs=this.queryStringsBuilder(t,e?.entityGuid)),{targetApp:e,payload:i}})):(0,u.R)(52)}postHarvestCleanup(e={}){this.isRetrying=e.sent&&e.retry,this.isRetrying&&this.events.reloadSave(this.harvestOpts,e.targetApp?.entityGuid),this.events.clearSave(this.harvestOpts,e.targetApp?.entityGuid)}checkConfiguration(e){if(!(0,s.f)(e.info)){const t=(0,a.pV)();let i={...t.info?.jsAttributes};try{i={...i,...e.info?.jsAttributes}}catch(e){}(0,n.j)(e,{...t,info:{...t.info,jsAttributes:i},runtime:e.runtime},e.runtime.loaderType)}}doOnceForAllAggregate(e){e.runtime.obfuscator||(e.runtime.obfuscator=new d(e)),this.obfuscator=e.runtime.obfuscator,e.runtime.entityManager||(e.runtime.entityManager=new O(this.agentRef)),e.runtime.harvester||(e.runtime.harvester=new C(e))}reportSupportabilityMetric(e,t){(0,b.p)(m.xV,[e,t],void 0,l.K7.metrics,this.ee)}}},1983:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>w});var r=i(6154),s=i(2733),n=i(3304),a=i(2555),o=i(6630),c=i(860),h=i(384);function u(e){const t=[],i=(0,h.Zm)();try{Object.keys(i.initializedAgents[e].features).forEach(e=>{switch(e){case c.K7.ajax:t.push("xhr");break;case c.K7.jserrors:t.push("err");break;case c.K7.genericEvents:t.push("ins");break;case c.K7.sessionTrace:t.push("stn");break;case c.K7.softNav:case c.K7.spa:t.push("spa")}})}catch(e){}return t}var d=i(5701),l=i(944),p=i(1630),f=i(5344),g=i(5181),m=i(8779),v=i(1863),y=i(1910);class b{#c;#h;#u;#d=!1;constructor(e){this.#c=e,this.processStoredDiff(),(0,y.i)(performance.now,Date.now)}get ready(){return this.#d}get correctedOriginTime(){return this.#h}get localTimeDiff(){return this.#u}processRumRequest(e,t,i,s){if(this.processStoredDiff(),this.#d)return;if(!s)throw new Error("nrServerTime not found");const n=t+(i-t)/2;if(this.#h=Math.floor(s-n),this.#u=r.WN-this.#h,isNaN(this.#h))throw new Error("Failed to correct browser time to server time");this.#c?.write({serverTimeDiff:this.#u}),this.#d=!0}convertRelativeTimestamp(e){return r.WN+e}convertAbsoluteTimestamp(e){return e-r.WN}correctAbsoluteTimestamp(e){return e-this.#u}correctRelativeTimestamp(e){return this.correctAbsoluteTimestamp(this.convertRelativeTimestamp(e))}processStoredDiff(){if(this.#d)return;const e=this.#c?.read()?.serverTimeDiff;"number"!=typeof e||isNaN(e)||(this.#u=e,this.#h=r.WN-this.#u,this.#d=!0)}}var S=i(3311),T=i(3606),R=i(3496);class w extends p.r{static featureName=o.T;constructor(e){if(super(e,o.T),this.timeToFirstByte=0,this.firstByteToWindowLoad=0,this.firstByteToDomContent=0,(0,T.i)("send-rum",(e,t)=>{this.sendRum(e,t)},this.featureName,this.ee),!(0,a.f)(e.info))return this.ee.abort(),(0,l.R)(43);e.runtime.timeKeeper=new b(e.runtime.session),r.RI?m.j.subscribe(({value:e,attrs:t})=>{const i=t.navigationEntry;this.timeToFirstByte=Math.max(e,this.timeToFirstByte),this.firstByteToWindowLoad=Math.max(Math.round(i.loadEventEnd-this.timeToFirstByte),this.firstByteToWindowLoad),this.firstByteToDomContent=Math.max(Math.round(i.domContentLoadedEventEnd-this.timeToFirstByte),this.firstByteToDomContent),this.sendRum()}):this.sendRum()}sendRum(e=this.agentRef.info.jsAttributes,t={licenseKey:this.agentRef.info.licenseKey,applicationID:this.agentRef.info.applicationID}){const i=this.agentRef.info,a={};i.queueTime&&(a.qt=i.queueTime),i.applicationTime&&(a.ap=i.applicationTime),a.be=this.timeToFirstByte,a.fe=this.firstByteToWindowLoad,a.dc=this.firstByteToDomContent;const o={tt:i.ttGuid,us:i.user,ac:i.account,pr:i.product,af:u(this.agentIdentifier).join(","),...a,xx:i.extra,ua:i.userAttributes,at:i.atts};let c;if(this.agentRef.runtime.session&&(o.fsh=Number(this.agentRef.runtime.session.isNew)),"object"==typeof e&&Object.keys(e).length>0&&(c=(0,S.G)({ja:e},this.obfuscator.obfuscateString.bind(this.obfuscator),"string")),r.gm.performance)if("undefined"!=typeof PerformanceNavigationTiming){const e=r.gm?.performance?.getEntriesByType("navigation")?.[0],t={timing:(0,s.eM)(r.WN,e,{}),navigation:(0,s.si)(e,{})};o.perf=(0,n.A)(t)}else if("undefined"!=typeof PerformanceTiming){const e={timing:(0,s.eM)(r.WN,r.gm.performance.timing,{},!0),navigation:(0,s.si)(r.gm.performance.navigation,{})};o.perf=(0,n.A)(e)}o.fp=g.J.current.value,o.fcp=f.j.current.value;const h=this.agentRef.runtime.timeKeeper;h?.ready&&(o.timestamp=Math.floor(h.correctRelativeTimestamp((0,v.t)()))),this.rumStartTime=(0,v.t)(),this.agentRef.runtime.harvester.triggerHarvestFor(this,{directSend:{targetApp:t,payload:{qs:o,body:c}},needResponse:!0,sendEmptyBody:!0})}postHarvestCleanup({status:e,responseText:t,xhr:i,targetApp:r}){const s=(0,v.t)();let n,a;try{({app:n,...a}=JSON.parse(t)),this.processEntities(n.agents,r)}catch(e){(0,l.R)(53,e)}if((0,R.A)(r,this.agentRef)){if(e>=400||0===e)return(0,l.R)(18,e),void this.ee.abort();try{const e=this.agentRef.runtime.timeKeeper.ready;if(this.agentRef.runtime.timeKeeper.processRumRequest(i,this.rumStartTime,s,n.nrServerTime),!this.agentRef.runtime.timeKeeper.ready)throw new Error("TimeKeeper not ready");const t=this.agentRef.runtime.timeKeeper.correctedOriginTime-n.nrServerTime;e&&t>0&&this.reportSupportabilityMetric("Generic/TimeKeeper/InvalidTimestamp/Seen",t)}catch(e){return this.ee.abort(),void(0,l.R)(17,e)}Object.keys(this.agentRef.runtime.appMetadata).length||(this.agentRef.runtime.appMetadata=n),this.drain(),this.agentRef.runtime.harvester.startTimer(),(0,d.t)(a,this.agentRef)}}processEntities(e,t){e&&t&&e.forEach(e=>{const i=this.agentRef.runtime.entityManager,r=e.entityGuid;i.get(r)||((0,R.A)(t,this.agentRef)&&i.setDefaultEntity({...t,entityGuid:r}),i.set(e.entityGuid,{...t,entityGuid:r}))})}}},2123:(e,t,i)=>{function r(e){return!!e&&e.self!==e.top}i.d(t,{v:()=>r})},2176:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>O});const r=/([a-z0-9]+)$/i;function s(e){if(!e)return;const t=e.match(r);return t?t[1]:void 0}var n=/^\n+|\n+$/g;function a(e){return function(e){var t;if(e.length>100){var i=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+i+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(e).replace(n,"")}var o=i(6154),c=i(9119);function h(e){if("string"!=typeof e)return"";const t=(0,c.L)(e);return t===(0,c.L)(o.m)?"":t}var u=!1,d=/function (.+?)\s*\(/,l=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,p=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,f=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,g=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function m(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t=e.stack.split("\n").reduce(v,{frames:[],stackLines:[],wrapperSeen:!1});return t.frames.length?{mode:"stack",name:e.name||y(e),message:e.message,stackString:a(t.stackLines),frames:t.frames}:null}(e),t)return t}catch(e){u}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||y(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:t+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var i=h(e.sourceURL),r=t+": "+e.message+"\n at "+i;e.line&&(r+=":"+e.line,e.column&&(r+=":"+e.column));return{mode:"sourceline",name:t,message:e.message,stackString:r,frames:[{url:i,line:e.line,column:e.column}]}}(e),t)return t}catch(e){u}try{if(t=function(e){var t=e.name||y(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){u}return{mode:"failed",stackString:"",frames:[]}}function v(e,t){let i=function(e){var t=e.match(p);t||(t=e.match(l));if(t)return{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null};if(e.match(f)||e.match(g)||"anonymous"===e)return{func:"evaluated code"}}(t);if(!i)return e.stackLines.push(t),e;var r;if((r=i.func)&&r.indexOf("nrWrapper")>=0&&(e.wrapperSeen=!0),!e.wrapperSeen){let r=h(i.url);r!==i.url&&(t=t.replace(i.url,r),i.url=r),e.stackLines.push(t),e.frames.push(i)}return e}function y(e){var t=d.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function b(e){var t=0;if(!e||!e.length)return t;for(var i=0;ithis.onInteractionDone(e,t)),(0,S.i)("err",(...e)=>this.storeError(...e),this.featureName,this.ee),(0,S.i)("ierr",(...e)=>this.storeError(...e),this.featureName,this.ee),(0,S.i)("softNavFlush",(e,t,i,r)=>this.onSoftNavNotification(e,t,i,r),this.featureName,this.ee),this.harvestOpts.aggregatorTypes=["err","ierr","xhr"],this.waitForFlags(["err"]).then(([e])=>{e?this.drain():(this.blocked=!0,this.deregisterDrain())})}serializer(e){return(0,M.G)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(e){const t={},i=(0,T.A)(this.agentRef.runtime.releaseIds);return"{}"!==i&&(t.ri=i),e?.err?.length&&(this.errorOnPage||(t.pve="1",this.errorOnPage=!0),this.agentRef.features?.[E.K7.sessionReplay]?.featAggregate?.replayIsActive()||e.err.forEach(e=>delete e.params.hasReplay)),t}buildCanonicalStackString(e){for(var t="",i=0;i65530?v.substr(0,65530):v,this.observedAt[y]=Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(t))),g.releaseIds=(0,T.A)(this.agentRef.runtime.releaseIds),this.pageviewReported[y]||(g.pageview=1,this.pageviewReported[y]=!0),g.firstOccurrenceTimestamp=this.observedAt[y],g.timestamp=Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(t));const S=["err",y,g,{time:t},r];if(this.shouldAllowMainAgentToCapture(a)&&(0,R.p)("trace-jserror",S,void 0,E.K7.sessionTrace,this.ee),!this.blocked){if(e?.__newrelic?.[this.agentIdentifier]&&(g._interactionId=e.__newrelic[this.agentIdentifier].interactionId,g._interactionNodeId=e.__newrelic[this.agentIdentifier].interactionNodeId),this.shouldAllowMainAgentToCapture(a)){Boolean(this.agentRef.features?.[E.K7.softNav])?(0,R.p)("jserror",[g,t],void 0,E.K7.softNav,this.ee):(0,R.p)("spa-jserror",S,void 0,E.K7.spa,this.ee),g.browserInteractionId&&!g._softNavFinished?(this.bufferedErrorsUnderSpa[g.browserInteractionId]??=[],this.bufferedErrorsUnderSpa[g.browserInteractionId].push(S)):null!=g._interactionId?(this.bufferedErrorsUnderSpa[g._interactionId]=this.bufferedErrorsUnderSpa[g._interactionId]||[],this.bufferedErrorsUnderSpa[g._interactionId].push(S)):this.#l(S,void 0!==g.browserInteractionId,g._softNavAttributes)}a&&this.#l([...S,a],!1,g._softNavAttributes)}}#l(e,t,i={}){let[r,s,n,a,o,c]=e;const h={};t?(Object.entries(i).forEach(([e,t])=>d(e,t)),s+=n.browserInteractionId,delete n._softNavAttributes,delete n._softNavFinished):(Object.entries(this.agentRef.info.jsAttributes).forEach(([e,t])=>d(e,t)),delete n.browserInteractionId),o&&Object.entries(o).forEach(([e,t])=>d(e,t));const u=s+":"+b((0,T.A)(h));function d(e,t){h[e]=t&&"object"==typeof t?(0,T.A)(t):t}this.events.add([r,u,n,a,h],c)}shouldAllowMainAgentToCapture(e){return!e||this.agentRef.init.api.duplicate_registered_data}onInteractionDone(e,t){this.bufferedErrorsUnderSpa[e.id]&&!this.blocked&&(this.bufferedErrorsUnderSpa[e.id].forEach(i=>{var r={};const s=i[4];Object.entries(e.root.attrs.custom||{}).forEach(o),Object.entries(s||{}).forEach(o);var n=i[2];t&&(n.browserInteractionId=e.root.attrs.id,n._interactionNodeId&&(n.parentNodeId=n._interactionNodeId.toString())),delete n._interactionId,delete n._interactionNodeId;var a=(t?i[1]+e.root.attrs.id:i[1])+":"+b((0,T.A)(r));function o([e,t]){r[e]=t&&"object"==typeof t?(0,T.A)(t):t}this.events.add([i[0],a,n,i[3],r],i[5])}),delete this.bufferedErrorsUnderSpa[e.id])}onSoftNavNotification(e,t,i,r){this.blocked||(this.bufferedErrorsUnderSpa[e]?.forEach(e=>{if(!t)return this.#l(e,!1,i);return e[3].time>r?this.#l(e,!1,i):this.#l(e,!0,i)}),delete this.bufferedErrorsUnderSpa[e])}}},2733:(e,t,i)=>{i.d(t,{eM:()=>f,si:()=>g,ss:()=>p});var r="Start",s="End",n="unloadEvent",a="redirect",o="domainLookup",c="onnect",h="request",u="response",d="loadEvent",l="domContentLoadedEvent";const p=[];function f(e,t,i={},p=!1){if(t)return i.of=e,m(i.of,i,"n",!0),m(t[n+r],i,"u",p),m(t[a+r],i,"r",p),m(t[n+s],i,"ue",p),m(t[a+s],i,"re",p),m(t["fetch"+r],i,"f",p),m(t[o+r],i,"dn",p),m(t[o+s],i,"dne",p),m(t["c"+c+r],i,"c",p),m(t["secureC"+c+"ion"+r],i,"s",p),m(t["c"+c+s],i,"ce",p),m(t[h+r],i,"rq",p),m(t[u+r],i,"rp",p),m(t[u+s],i,"rpe",p),m(t.domLoading,i,"dl",p),m(t.domInteractive,i,"di",p),m(t[l+r],i,"ds",p),m(t[l+s],i,"de",p),m(t.domComplete,i,"dc",p),m(t[d+r],i,"l",p),m(t[d+s],i,"le",p),i}function g(e,t){var i;return m("number"==typeof(i=e.type)?i:{navigate:void 0,reload:1,back_forward:2,prerender:3}[i],t,"ty"),m(e.redirectCount,t,"rc"),t}function m(e,t,i,r){if("number"==typeof e&&e>0){if(r){const i=t?.of>0?t.of:0;e=Math.max(e-i,0)}e=Math.round(e),t[i]=e,p.push(e)}else p.push(void 0)}},3311:(e,t,i)=>{function r(e,t,i="string",s=[]){return e&&"object"==typeof e?(Object.keys(e).forEach(n=>{"object"==typeof e[n]?r(e[n],t,i,s):typeof e[n]!==i||s.includes(n)||(e[n]=t(e[n]))}),e):e}i.d(t,{G:()=>r})},3762:(e,t,i)=>{i.d(t,{WL:()=>h,uR:()=>u});var r=i(3304),s={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},n=Object.keys(s),a=new RegExp(n.join("|"),"g");function o(e){return s[e]}function c(e){return null==e?"null":encodeURIComponent(e).replace(a,o)}function h(e,t){var i=0,s="";return Object.entries(e||{}).forEach(([e,n])=>{var a,o,h=[];if("string"==typeof n||!Array.isArray(n)&&null!=n&&n.toString().length)a="&"+e+"="+c(n),i+=a.length,s+=a;else if(Array.isArray(n)&&n.length){for(i+=9,o=0;o=t));o++)h.push(a);s+="&"+e+"=%5B"+h.join(",")+"%5D"}}),s}function u(e,t,i={}){return Object.keys(i).includes(e)?"":t&&"string"==typeof t?"&"+e+"="+c(t):""}},3845:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>v});var r=i(3606),s=i(3304),n=i(9908),a=i(7295),o=i(9300),c=i(860),h=i(1630),u=i(5436);function d({body:e,query:t}={}){if(e||t)try{const i=function(e){if(!e)return;Array.isArray(e)||(e=[e]);const t=[],i=[];for(let r of e){const e=l(r);e&&(t.push(e.operationName),i.push(e.operationType))}if(!i.length)return;return{operationName:t.join(","),operationType:i.join(","),operationFramework:"GraphQL"}}(p(e));if(i)return i;const r=l(function(e){if(!e||"string"!=typeof e)return;const t=new URLSearchParams(e);return p(Object.fromEntries(t))}(t));if(r)return r}catch(e){}}function l(e){if("object"!=typeof e||!e.query||"string"!=typeof e.query)return;const t=e.query.trim().match(/^(query|mutation|subscription)\s?(\w*)/),i=t?.[1];if(!i)return;return{operationName:e.operationName||t?.[2]||"Anonymous",operationType:i,operationFramework:"GraphQL"}}function p(e){let t;if(!e||"string"!=typeof e&&"object"!=typeof e)return;if(t="string"==typeof e?JSON.parse(e):e,!(0,u.a)(t)&&!Array.isArray(t))return;let i=!1;return i=Array.isArray(t)?t.some(e=>f(e)):f(t),i?t:void 0}function f(e){return!("object"!=typeof e||!e.query||"string"!=typeof e.query)}var g=i(5519),m=i(384);class v extends h.r{static featureName=o.T;constructor(e){super(e,o.T),(0,a.Xv)(e.runtime.denyList),this.underSpaEvents={};const t=this;e.init.ajax.block_internal?super.customAttributesAreSeparate=!0:super.canHarvestEarly=!1,this.ee.on("interactionDone",(e,t)=>{this.underSpaEvents[e.id]&&(t||this.underSpaEvents[e.id].forEach(e=>this.events.add(e)),delete this.underSpaEvents[e.id])}),(0,r.i)("returnAjax",e=>this.events.add(e),this.featureName,this.ee),(0,r.i)("xhr",function(){t.storeXhr(...arguments,this)},this.featureName,this.ee),this.ee.on("long-task",(e,t)=>{if(t instanceof(0,m.dV)().o.XHR){this.ee.context(t).latestLongtaskEnd=e.end}}),this.waitForFlags([]).then(()=>this.drain())}storeXhr(e,t,i,r,o,h){let u;t.time=i,u=e.cat?(0,s.A)([e.status,e.cat]):(0,s.A)([e.status,e.host,e.pathname]);const l=(0,a.gX)(e),p=this.agentRef.init.feature_flags?.includes("ajax_metrics_deny_list");if(!Boolean(this.agentRef.features?.[c.K7.jserrors])||!l&&p||this.agentRef.sharedAggregator?.add(["xhr",u,e,t]),!l)return void(e.hostname===this.agentRef.info.errorBeacon||this.agentRef.init.proxy?.beacon&&e.hostname===this.agentRef.init.proxy.beacon?(this.reportSupportabilityMetric("Ajax/Events/Excluded/Agent"),p&&this.reportSupportabilityMetric("Ajax/Metrics/Excluded/Agent")):(this.reportSupportabilityMetric("Ajax/Events/Excluded/App"),p&&this.reportSupportabilityMetric("Ajax/Metrics/Excluded/App")));(0,n.p)("bstXhrAgg",["xhr",u,e,t],void 0,c.K7.sessionTrace,this.ee);const f={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:o,startTime:i,endTime:r,callbackDuration:t.cbTime};h.dt&&(f.spanId=h.dt.spanId,f.traceId=h.dt.traceId,f.spanTimestamp=Math.floor(this.agentRef.runtime.timeKeeper.correctAbsoluteTimestamp(h.dt.timestamp))),f.gql=e.gql=d({body:h.body,query:h.parsedOrigin?.search}),f.gql&&this.reportSupportabilityMetric("Ajax/Events/GraphQL/Bytes-Added",(0,s.A)(f.gql).length);if(Boolean(this.agentRef.features?.[c.K7.softNav]))(0,n.p)("ajax",[f,h],void 0,c.K7.softNav,this.ee);else if(h.spaNode){const e=h.spaNode.interaction.id;this.underSpaEvents[e]??=[],this.underSpaEvents[e].push(f)}else this.events.add(f)}serializer(e){if(!e.length)return;const t=(0,g.uJ)(this.agentRef.runtime.obfuscator);let i="bel.7;";for(let r=0;r0&&(a+=";"+c.join(";")),r+1{i.d(t,{p:()=>s});var r=i(6154);function s(){return Boolean("file:"===r.gm?.location?.protocol)}},4393:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>w});var r=i(9908),s=i(3606),n=i(6389),a=i(8779),o=i(860),c=i(1630),h=i(3962),u=i(5519);let d=0;class l{belType;children=[];start;end;callbackEnd=0;callbackDuration=0;nodeId=++d;addChild(e){this.children.push(e)}serialize(){}}class p extends l{constructor(e,t){super(),this.belType=h.Qu.AJAX,this.method=e.method,this.status=e.status,this.domain=e.domain,this.path=e.path,this.txSize=e.requestSize,this.rxSize=e.responseSize,this.requestedWith="fetch"===e.type?1:"",this.spanId=e.spanId,this.traceId=e.traceId,this.spanTimestamp=e.spanTimestamp,this.gql=e.gql,this.start=e.startTime,this.end=e.endTime,t?.latestLongtaskEnd?(this.callbackEnd=Math.max(t.latestLongtaskEnd,this.end),this.callbackDuration=this.callbackEnd-this.end):this.callbackEnd=this.end}serialize(e,t){const i=(0,u.uJ)(t.runtime.obfuscator),r=[],s=[(0,u.sH)(this.belType),0,(0,u.sH)(this.start-e),(0,u.sH)(this.end-this.start),(0,u.sH)(this.callbackEnd-this.end),(0,u.sH)(this.callbackDuration),i(this.method),(0,u.sH)(this.status),i(this.domain),i(this.path),(0,u.sH)(this.txSize),(0,u.sH)(this.rxSize),this.requestedWith,i(this.nodeId),(0,u.me)(this.spanId,i,!0)+(0,u.me)(this.traceId,i,!0)+(0,u.me)(this.spanTimestamp,u.sH)];let n=[];return"object"==typeof this.gql&&(n=(0,u.AQ)(this.gql,i)),this.children.forEach(e=>n.push(e.serialize())),s[1]=(0,u.sH)(n.length),r.push(s),n.length&&r.push(n.join(";")),r.join(";")}}var f=i(2733),g=i(6154),m=i(9566),v=i(1863),y=i(9119);class b extends l{id=(0,m.bz)();initialPageURL=g.m;customName;customAttributes={};customDataByApi={};queueTime;appTime;newRoute;status=h.ih.IP;domTimestamp=0;historyTimestamp=0;createdByApi=!1;keepOpenUntilEndApi=!1;onDone=[];customEnd=0;cancellationTimer;watchLongtaskTimer;constructor(e,t,i,r){super(),this.belType=h.Qu.INTERACTION,this.trigger=e,this.start=t,this.oldRoute=i,this.eventSubscription=new Map([["finished",[]],["cancelled",[]]]),this.forceSave=this.forceIgnore=!1,this.trigger===h.AM&&(this.createdByApi=!0),this.newURL=this.oldURL=r||g.gm?.location.href}updateHistory(e,t){this.domTimestamp>0||t&&t!==this.oldURL&&(this.newURL=t,this.historyTimestamp=e||(0,v.t)())}updateDom(e){!this.historyTimestamp||e0&&this.domTimestamp>this.historyTimestamp&&(this.status===h.ih.PF||(this.status=h.ih.PF,clearTimeout(this.cancellationTimer),this.watchLongtaskTimer??=setTimeout(()=>this.done(),h.wD)),!0)}on(e,t){if(!this.eventSubscription.has(e))throw new Error("Cannot subscribe to non pre-defined events.");if("function"!=typeof t)throw new Error("Must supply function as callback.");this.eventSubscription.get(e).push(t)}done(e=this.customEnd,t=!1){return!(this.keepOpenUntilEndApi&&!t)&&(this.status===h.ih.FIN||this.status===h.ih.CAN||(clearTimeout(this.cancellationTimer),clearTimeout(this.watchLongtaskTimer),this.onDone.forEach(e=>e(this.customDataByApi)),this.forceIgnore?this.#p():this.status===h.ih.PF?this.#f(e):this.forceSave?this.#f(e||performance.now()):this.#p()),!0)}#f(e){this.end=Math.max(this.domTimestamp,this.historyTimestamp,e),this.status=h.ih.FIN;this.eventSubscription.get("finished").forEach(e=>e())}#p(){this.status=h.ih.CAN;this.eventSubscription.get("cancelled").forEach(e=>e())}isActiveDuring(e){return this.status===h.ih.IP||this.status===h.ih.PF?this.start<=e:this.status===h.ih.FIN&&this.start<=e&&ec.push(r.serialize(i?this.start:e,t))),a[1]=(0,u.sH)(c.length),s.push(a),c.length&&s.push(c.join(";")),this.navTiming?s.push(this.navTiming):s.push(""),s.join(";")}}var S=i(5181),T=i(5344);class R extends b{constructor(e){super(h.pP,0,null),this.queueTime=e.info.queueTime,this.appTime=e.info.applicationTime,this.oldURL=document.referrer||void 0}get firstPaint(){return S.J.current.value}get firstContentfulPaint(){return T.j.current.value}get navTiming(){if(!f.ss.length)return;let e=",",t="b",i=0;return f.ss.slice(1,21).forEach(r=>{void 0!==r?(t+=e+(0,u.sH)(r-i),e=",",i=r):(t+=e+"!",e="")}),t}}class w extends c.r{static featureName=h.TZ;constructor(e,{domObserver:t}){super(e,h.TZ),super.customAttributesAreSeparate=!0,this.interactionsToHarvest=this.events,this.domObserver=t,this.initialPageLoadInteraction=new R(e),this.initialPageLoadInteraction.onDone.push(()=>{e.runtime.session?.isNew&&(this.initialPageLoadInteraction.customAttributes.isFirstOfSession=!0),this.initialPageLoadInteraction.forceSave=!0;const t=this.initialPageLoadInteraction;this.events.add(t),this.initialPageLoadInteraction=null}),a.j.subscribe(({attrs:e})=>{const t=e.navigationEntry.loadEventEnd;this.initialPageLoadInteraction.done(t),this.reportSupportabilityMetric("SoftNav/Interaction/InitialPageLoad/Duration/Ms",Math.round(t))}),this.latestRouteSetByApi=null,this.interactionInProgress=null,this.latestHistoryUrl=window.location.href,this.harvestOpts.beforeUnload=()=>this.interactionInProgress?.done(),this.waitForFlags(["spa"]).then(([t])=>{t?(this.drain(),setTimeout(()=>e.runtime.harvester.triggerHarvestFor(this),0)):(this.blocked=!0,this.deregisterDrain())}),(0,s.i)("newUIEvent",e=>this.startUIInteraction(e.type,Math.floor(e.timeStamp),e.target),this.featureName,this.ee),(0,s.i)("newURL",(e,t)=>{this.latestHistoryUrl=t,this.interactionInProgress?.updateHistory(e,t)},this.featureName,this.ee),(0,s.i)("newDom",e=>{this.interactionInProgress?.updateDom(e),this.interactionInProgress?.checkHistoryAndDomChange()},this.featureName,this.ee),this.ee.on("long-task",e=>{this.interactionInProgress?.watchLongtaskTimer&&(clearTimeout(this.interactionInProgress.watchLongtaskTimer),this.interactionInProgress.customEnd=e.end,this.interactionInProgress.watchLongtaskTimer=setTimeout(()=>this.interactionInProgress.done(),h.wD),this.reportSupportabilityMetric("SoftNav/Interaction/Extended"))}),this.#g(),(0,s.i)("ajax",this.#m.bind(this),this.featureName,this.ee),(0,s.i)("jserror",this.#v.bind(this),this.featureName,this.ee)}serializer(e){let t;const i=[];for(const r of e)i.push(r.serialize(t,this.agentRef)),void 0===t&&(t=Math.floor(r.start));return"bel.7;".concat(i.join(";"))}startUIInteraction(e,t,i){if(this.interactionInProgress?.createdByApi)return;if(e===h.OV&&this.interactionInProgress?.trigger!==h.OV&&t-this.interactionInProgress?.start<=h.t1)return;if(!1===this.interactionInProgress?.done())return;const r=e===h.OV?this.latestHistoryUrl:void 0;if(this.interactionInProgress=new b(e,t,this.latestRouteSetByApi,r),e===h.tC[0]){const e=function(e){const t=e.tagName.toLowerCase();if(["a","button","input"].includes(t))return e.title||e.value||e.innerText}(i);e&&(this.interactionInProgress.customAttributes.actionText=e)}this.interactionInProgress.cancellationTimer=setTimeout(()=>{this.interactionInProgress.done(),this.reportSupportabilityMetric("SoftNav/Interaction/TimeOut")},3e4),this.setClosureHandlers()}setClosureHandlers(){this.interactionInProgress.on("finished",()=>{const e=this.interactionInProgress;this.events.add(this.interactionInProgress),this.interactionInProgress=null,this.domObserver.disconnect(),this.reportSupportabilityMetric("SoftNav/Interaction/".concat(e.newURL!==e.oldURL?"RouteChange":"Custom","/Duration/Ms"),Math.round(e.end-e.start))}),this.interactionInProgress.on("cancelled",()=>{this.interactionInProgress=null,this.domObserver.disconnect()})}getInteractionFor(e){if(this.interactionInProgress?.isActiveDuring(e))return this.interactionInProgress;let t;const i=this.interactionsToHarvest.get()?.[0]?.data;if(i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.isActiveDuring(e)){if(s.trigger!==h.pP)return s;t=s}}return t||(this.initialPageLoadInteraction?.isActiveDuring(e)?this.initialPageLoadInteraction:void 0)}}#m(e,t){const i=this.getInteractionFor(e.startTime);function s(e,t,i){const s=i.end;if(e.startTime>s)return void(0,r.p)("returnAjax",[e],void 0,o.K7.ajax,this.ee);const n=new p(e,t);i.addChild(n)}i?i.status===h.ih.FIN?s.call(this,e,t,i):(i.on("finished",()=>s.call(this,e,t,i)),i.on("cancelled",()=>(0,r.p)("returnAjax",[e],void 0,o.K7.ajax,this.ee))):(0,r.p)("returnAjax",[e],void 0,o.K7.ajax,this.ee)}#v(e,t){const i=this.getInteractionFor(t);i&&(e.browserInteractionId=i.id,i.status===h.ih.FIN?(e._softNavFinished=!0,e._softNavAttributes=i.customAttributes):(i.on("finished",(0,n.J)(()=>(0,r.p)("softNavFlush",[i.id,!0,i.customAttributes,i.end],void 0,o.K7.jserrors,this.ee))),i.on("cancelled",(0,n.J)(()=>(0,r.p)("softNavFlush",[i.id,!1,void 0],void 0,o.K7.jserrors,this.ee)))))}#g(){const e="api-ixn-",t=this;(0,s.i)(e+"get",function(e,{waitForEnd:i}={}){this.associatedInteraction=t.getInteractionFor(e),this.associatedInteraction?.trigger===h.pP&&(this.associatedInteraction=null),this.associatedInteraction||(this.associatedInteraction=t.interactionInProgress=new b(h.AM,e,t.latestRouteSetByApi),t.domObserver.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),t.setClosureHandlers()),!0===i&&(this.associatedInteraction.keepOpenUntilEndApi=!0,clearTimeout(this.associatedInteraction.cancellationTimer))},t.featureName,t.ee),(0,s.i)(e+"end",function(e){this.associatedInteraction.done(e,!0)},t.featureName,t.ee),(0,s.i)(e+"save",function(){this.associatedInteraction.forceSave=!0},t.featureName,t.ee),(0,s.i)(e+"ignore",function(){this.associatedInteraction.forceIgnore=!0},t.featureName,t.ee),(0,s.i)(e+"getContext",function(e,t){"function"==typeof t&&setTimeout(()=>t(this.associatedInteraction.customDataByApi),0)},t.featureName,t.ee),(0,s.i)(e+"onEnd",function(e,t){"function"==typeof t&&this.associatedInteraction.onDone.push(t)},t.featureName,t.ee),(0,s.i)(e+"actionText",function(e,t){t&&(this.associatedInteraction.customAttributes.actionText=t)},t.featureName,t.ee),(0,s.i)(e+"setName",function(e,t,i){t&&(this.associatedInteraction.customName=t),i&&(this.associatedInteraction.trigger=i)},t.featureName,t.ee),(0,s.i)(e+"setAttribute",function(e,t,i){this.associatedInteraction.customAttributes[t]=i},t.featureName,t.ee),(0,s.i)(e+"routeName",function(e,i){t.latestRouteSetByApi=i,t.interactionInProgress&&(t.interactionInProgress.newRoute=i)},t.featureName,t.ee)}}},5181:(e,t,i)=>{i.d(t,{J:()=>n});var r=i(6154),s=i(1083);const n=new(i(6773).x)(s.w.FIRST_PAINT);if(r.RI){const e=e=>{e.forEach(e=>{"first-paint"!==e.name||n.isValid||(t.disconnect(),n.update({value:e.startTime}))})};let t;try{PerformanceObserver.supportedEntryTypes.includes("paint")&&!r.mw&&(t=new PerformanceObserver(t=>{Promise.resolve().then(()=>{e(t.getEntries())})}),t.observe({type:"paint",buffered:!0}))}catch(e){}}},5288:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>v});var r=i(3606),s=i(944),n=i(3304),a=i(1630),o=i(993),c=i(6154),h=i(9119);class u{timestamp;message;attributes;level;constructor(e,t,i={},r=o.p_.INFO){this.timestamp=e,this.message=t,this.attributes={...i,pageUrl:(0,h.L)(""+c.m)},this.level=r.toUpperCase()}}var d=i(3785),l=i(3311),p=i(3496),f=i(2614),g=i(6344),m=i(7767);class v extends a.r{static featureName=o.TZ;constructor(e){super(e,o.TZ),this.isSessionTrackingEnabled=(0,m.V)(e.init)&&e.runtime.session,super.customAttributesAreSeparate=!0,this.ee.on(f.tS.RESET,()=>{this.abort(g.bc.RESET)}),this.ee.on(f.tS.UPDATE,(e,t)=>{this.blocked||e!==f.iL.CROSS_TAB||(this.loggingMode!==o.A$.OFF&&t.loggingMode===o.A$.OFF?this.abort(g.bc.CROSS_TAB):this.loggingMode=t.loggingMode)}),this.harvestOpts.raw=!0,this.waitForFlags(["log"]).then(([t])=>{const i=this.agentRef.runtime.session??{};if(this.loggingMode===o.A$.OFF||i.isNew&&t===o.A$.OFF)return this.blocked=!0,void this.deregisterDrain();i.isNew||!this.isSessionTrackingEnabled?this.updateLoggingMode(t):this.loggingMode=i.state.loggingMode,(0,r.i)(o.ET,this.handleLog.bind(this),this.featureName,this.ee),this.drain(),e.runtime.harvester.triggerHarvestFor(this)})}updateLoggingMode(e){this.loggingMode=e,this.syncWithSessionManager({loggingMode:this.loggingMode})}handleLog(e,t,i={},r=o.p_.INFO,a){if(!this.agentRef.runtime.entityManager.get(a))return(0,s.R)(56,this.featureName);if(this.blocked||!this.loggingMode)return;if(i&&"object"==typeof i||(i={}),"string"==typeof r&&(r=r.toUpperCase()),!(0,d.b)(r))return(0,s.R)(30,r);if(this.loggingMode<(o.A$[r]||1/0))return void this.reportSupportabilityMetric("Logging/Event/Dropped/Sampling");try{if("string"!=typeof t){const e=(0,n.A)(t);t=e&&"{}"!==e?e:String(t)}}catch(e){return(0,s.R)(16,t),void this.reportSupportabilityMetric("Logging/Event/Dropped/Casting")}if("string"!=typeof t||!t)return(0,s.R)(32);const c=new u(Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(e)),t,i,r);this.events.add(c,a)}serializer(e,t){const i=this.agentRef.runtime.entityManager.get(t),r=this.agentRef.runtime.session;return[{common:{attributes:{...this.agentRef.info.jsAttributes,"entity.guid":i.entityGuid,...r&&{session:r.state.value||"0",hasReplay:1===r.state.sessionReplayMode&&(0,p.A)(i,this.agentRef),hasTrace:1===r.state.sessionTraceMode},ptid:this.agentRef.runtime.ptid,appId:i.applicationID||this.agentRef.info.applicationID,standalone:Boolean(this.agentRef.info.sa),agentVersion:this.agentRef.runtime.version,"instrumentation.provider":"browser","instrumentation.version":this.agentRef.runtime.version,"instrumentation.name":this.agentRef.runtime.loaderType}},logs:(0,l.G)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}]}queryStringsBuilder(e,t){return{browser_monitoring_key:this.agentRef.runtime.entityManager.get(t).licenseKey}}abort(e={}){this.reportSupportabilityMetric("Logging/Abort/".concat(e.sm)),this.blocked=!0,this.events&&(this.events.clear(),this.events.clearSave()),this.updateLoggingMode(o.A$.OFF),this.deregisterDrain()}syncWithSessionManager(e={}){this.isSessionTrackingEnabled&&this.agentRef.runtime.session.write(e)}}},5344:(e,t,i)=>{i.d(t,{j:()=>a});var r=i(7226),s=i(6154),n=i(1083);const a=new(i(6773).x)(n.w.FIRST_CONTENTFUL_PAINT);if(s.RI)if(s.sb)try{if(!s.mw){performance.getEntriesByType("paint").forEach(e=>{"first-contentful-paint"===e.name&&a.update({value:Math.floor(e.startTime)})})}}catch(e){}else(0,r.zB)(({value:e,attribution:t})=>{if(s.mw||a.isValid)return;const i={timeToFirstByte:t.timeToFirstByte,firstByteToFCP:t.firstByteToFCP,loadState:t.loadState};a.update({value:e,attrs:i})})},5436:(e,t,i)=>{function r(e){return e?.constructor==={}.constructor}i.d(t,{a:()=>r})},5519:(e,t,i)=>{i.d(t,{AQ:()=>h,me:()=>a,sH:()=>o,uJ:()=>c});var r=i(3304),s=Object.prototype.hasOwnProperty,n=64;function a(e,t,i){return e||0===e||""===e?t(e)+(i?",":""):"!"}function o(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function c(e){let t=0;const i=Object.prototype.hasOwnProperty.call(Object,"create")?Object.create(null):{};return function(r){if(void 0===r||""===r)return"";return r=e.obfuscateString(String(r)),s.call(i,r)?o(i[r],!0):(i[r]=t++,function(e){return"'"+e.replace(u,"\\$1")}(r))}}function h(e,t){var i=[];return Object.entries(e||{}).forEach(([e,s])=>{if(!(i.length>=n)){var a,o=5;switch(e=t(e),typeof s){case"object":s?a=t((0,r.A)(s)):o=9;break;case"number":o=6,a=s%1?s:s+".";break;case"boolean":o=s?7:8;break;case"undefined":o=9;break;default:a=t(s)}i.push([o,e+(a?","+a:"")])}}),i}var u=/([,\\;])/g},5592:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>J});var r=i(3606),s=i(7485),n=i(7295),a=i(2733),o=i(9566),c=i(6154),h=i(384),u=0;function d(e,t,i,r){Object.defineProperty(this,"interaction",{value:e,writable:!0}),this.parent=t,this.id=++u,this.type=i,this.children=[],this.end=null,this.jsEnd=this.start=r,this.jsTime=0,this.attrs={},this.cancelled=!1}var l=d.prototype;l.child=function(e,t,i,r){var s=this.interaction;if(s.end||s.nodes>=128)return null;s.onNodeAdded(this);var n=new d(s,this,e,t);return n.attrs.name=i,s.nodes++,r||s.remaining++,n},l.callback=function(e,t){var i=this;i.jsTime+=e,t>i.jsEnd&&(i.jsEnd=t,i.interaction.lastCb=t)},l.cancel=function(){this.cancelled=!0,this.interaction.remaining--},l.finish=function(e){var t=this;if(t.end)return;t.end=e;let i=t.parent;for(;i?.cancelled;)i=i.parent;i&&i.children.push(t),t.parent=null;var r=this.interaction;r.remaining--,r.lastFinish=e,r.checkFinish()};var p=(0,h.dV)().o.ST,f=(0,h.dV)().o.CT,g={};function m(e,t,i,r,s,n){this.agentRef=n,g[n.agentIdentifier]=0,this.id=++g[n.agentIdentifier],this.eventName=e,this.nodes=0,this.remaining=0,this.finishTimer=null,this.checkingFinish=!1,this.lastCb=this.lastFinish=t,this.handlers=[],this.onFinished=s,this.done=!1;var a=(this.root=new d(this,null,"interaction",t)).attrs;a.trigger=e,a.initialPageURL=c.m,a.oldRoute=r,a.newURL=i,a.oldURL="initialPageLoad"===e?document.referrer||void 0:i,a.custom={},a.store={}}var v=m.prototype;v.checkFinish=function(){var e=this;e.remaining>0?e._resetFinishCheck():e.checkingFinish||null===e.root.end&&(e._resetFinishCheck(),e.checkingFinish=!0,e.finishTimer=p(()=>{e.checkingFinish=!1,e.finishTimer=p(()=>{e.finishTimer=null,e.remaining<=0&&e.finish()},1)},0))},v.setNewURL=function(e){this.root.attrs.newURL=e},v.setNewRoute=function(e){this.root.attrs.newRoute=e},v.onNodeAdded=function(){this._resetFinishCheck()},v._resetFinishCheck=function(){this.finishTimer&&(f(this.finishTimer),this.finishTimer=null,this.checkingFinish=!1)},v.finish=function(){var e=this,t=e.root;if(null===t.end){var i=Math.max(e.lastCb,e.lastFinish),r=t.attrs.custom;this.onFinished&&this.onFinished(this),Object.entries(e.agentRef.info.jsAttributes||{}).forEach(([e,t])=>{e in r||(r[e]=t)}),t.end=i,e.agentRef.ee.emit("interaction",[this])}};var y=i(3878),b=i(9119),S=i(5519);class T{constructor(e){this.obfuscator=e.runtime.obfuscator,this.info=e.info,this.firstTimestamp=void 0}serializeMultiple(e,t,i){var r=(0,S.uJ)(this.obfuscator),s="bel.7";return e.forEach(e=>{s+=";"+this.serializeInteraction(e.root,t,i,e.routeChange,r,this.info)}),this.firstTimestamp=void 0,s}serializeSingle(e,t,i,r){var s=(0,S.uJ)(this.obfuscator),n="bel.7;"+this.serializeInteraction(e,t,i,r,s,this.info);return this.firstTimestamp=void 0,n}serializeInteraction(e,t,i,r,s,n){t=t||0;var a="initialPageLoad"===e.attrs.trigger,o={interaction:1,ajax:2,customTracer:4},c=!0;const h=(e,u)=>{if("customEnd"===e.type)return u.push([3,(0,S.sH)(e.end-this.firstTimestamp)]);var d=e.type,l=o[d],p=e.start,f=e.children.length,g=0,m=n.atts,v=a&&i.length&&1===l,y=[],T=e.attrs,R=T.metrics,w=T.params,E=n.queueTime,N=n.applicationTime;void 0===this.firstTimestamp?(p+=t,this.firstTimestamp=p):p-=this.firstTimestamp;var A=[(0,S.sH)(p),(0,S.sH)(e.end-e.start),(0,S.sH)(e.jsEnd-e.end),(0,S.sH)(e.jsTime)];switch(l){case 1:A[2]=(0,S.sH)(e.jsEnd-this.firstTimestamp),A.push(s(T.trigger),s((0,b.L)(T.initialPageURL,c)),s((0,b.L)(T.oldURL,c)),s((0,b.L)(T.newURL,c)),s(T.customName),a?"":r?1:2,(0,S.me)(a&&E,S.sH,!0)+(0,S.me)(a&&N,S.sH,!0)+(0,S.me)(T.oldRoute,s,!0)+(0,S.me)(T.newRoute,s,!0)+s(T.id),s(e.id),(0,S.me)(T.firstPaint,S.sH,!0)+(0,S.me)(T.firstContentfulPaint,S.sH,!1));var M=(0,S.AQ)(T.custom,s);y=y.concat(M),g=M.length,m&&(f++,y.push("a,"+s(m)));break;case 2:if(A.push(s(w.method),(0,S.sH)(w.status),s(w.host),s(w.pathname),(0,S.sH)(R.txSize),(0,S.sH)(R.rxSize),T.isFetch?1:T.isJSONP?2:"",s(e.id),(0,S.me)(e.dt&&e.dt.spanId,s,!0)+(0,S.me)(e.dt&&e.dt.traceId,s,!0)+(0,S.me)(e.dt&&e.dt.timestamp,S.sH,!1)),Object.keys(w?.gql||{}).length){var k=(0,S.AQ)(w.gql,s);y=y.concat(k),g=k.length}break;case 4:var I=T.tracedTime;A.push(s(T.name),(0,S.me)(I,S.sH,!0)+s(e.id))}for(var C=0;C{void 0!==e?(O+=x+(0,S.sH)(e-F),x=",",F=e):(O+=x+"!",x="")}),u.push(O)}else 1===l&&u.push("");return u};return h(e,[]).join(";")}}var R=i(7836),w=i(7378),E=i(860),N=i(1630),A=i(5344),M=i(5181),k=i(5607),I=i(9908),C=i(8154),x=i(944);const{TZ:O,NC:F,xq:L,uP:P,Lc:j,rw:D,SG:_,l9:H,dT:B,oW:U,U6:z,op:K,UT:q,gx:G,BR:V,L3:W}=w;class J extends N.r{static featureName=O;constructor(e){super(e,O);const t=this.state={initialPageURL:c.m,lastSeenUrl:c.m,lastSeenRouteName:null,timerMap:{},timerBudget:L,currentNode:null,prevNode:null,nodeOnLastHashUpdate:null,initialPageLoad:null,pageLoaded:!1,childTime:0,depth:0,disableSpaFix:(e.init.feature_flags||[]).indexOf("disable-spa-fix")>-1};this.spaSerializerClass=new T(e);const i=this,a=R.ee.get(e.agentIdentifier),h=a.get("mutation"),u=a.get("promise"),d=a.get("history"),l=a.get("events"),p=a.get("timer"),f=a.get("fetch"),g=a.get("jsonp"),v=a.get("xhr"),b=a.get("tracer");let S;if(this.waitForFlags(["spa"]).then(([t])=>{t?(S=e.runtime.harvester,this.drain()):(this.blocked=!0,this.deregisterDrain())}),!0===e.init.spa.enabled){t.initialPageLoad=new m("initialPageLoad",0,t.lastSeenUrl,t.lastSeenRouteName,ee,e),t.initialPageLoad.save=!0,e.runtime.session?.isNew&&(t.initialPageLoad.root.attrs.custom.isFirstOfSession=!0),t.prevInteraction=t.initialPageLoad,t.currentNode=t.initialPageLoad.root,t.initialPageLoad[H]++,(0,r.i)(P,N,this.featureName,a),(0,r.i)(D,N,this.featureName,u);var w={getCurrentNode:function(){return t.currentNode},setCurrentNode:Y};(0,r.i)("spa-register",function(e){"function"==typeof e&&e(w)},E.K7.spa,a),(0,r.i)(j,J,this.featureName,a),(0,r.i)("cb-end",J,this.featureName,u),(0,r.i)(P,function(i,r){var s=i[0],n=s.type,o=s["__nrNode:".concat(k.W)];if(!t.pageLoaded&&("load"===n&&r===window||c.A4)&&(t.pageLoaded=!0,this.prevNode=t.currentNode=null,t.initialPageLoad&&(o=t.initialPageLoad.root,t.initialPageLoad[H]=0,W(function(){F.push("popstate")}))),o)Y(o);else if("hashchange"===n)Y(t.nodeOnLastHashUpdate),t.nodeOnLastHashUpdate=null;else if(r instanceof XMLHttpRequest)Y(a.context(r).spaNode);else if(!t.currentNode&&-1!==F.indexOf(n)){var h=new m(n,this[P],t.lastSeenUrl,t.lastSeenRouteName,ee,e);if(t.prevInteraction=h,Y(h.root),"click"===n){var u=function(e){var t=e.tagName.toLowerCase();if(-1!==["a","button","input"].indexOf(t))return e.title||e.value||e.innerText}(s.target);u&&(t.currentNode.attrs.custom.actionText=u)}}s["__nrNode:".concat(k.W)]=t.currentNode},this.featureName,l),(0,r.i)("setTimeout-end",function(e,i,r){!t.currentNode||t.timerBudget-this.timerDuration<0||(!e||e[0]instanceof Function)&&(t.currentNode[B][H]++,this.timerId=r,t.timerMap[r]=t.currentNode,this.timerBudget=t.timerBudget-50)},this.featureName,p),(0,r.i)("clearTimeout-start",function(e){var i=e[0],r=t.timerMap[i];if(r){var s=r[B];s[H]--,s.checkFinish(),delete t.timerMap[i]}},this.featureName,p),(0,r.i)(P,function(){t.timerBudget=this.timerBudget||L;var e=this.timerId,i=t.timerMap[e];Y(i),delete t.timerMap[e],i&&i[B][H]--},this.featureName,p),(0,r.i)(P,function(){Y(this[U])},this.featureName,v),(0,r.i)("new-xhr",function(){if(!t.disableSpaFix&&!t.currentNode&&t.prevInteraction&&!t.prevInteraction.ignored){const e=t.prevInteraction;t.currentNode=e.root,e.root.end=null}t.currentNode&&(this[U]=t.currentNode.child("ajax",null,null,!0))},this.featureName,v),(0,r.i)("send-xhr-start",function(){var t=this[U];t&&!this.sent&&(this.sent=!0,t.dt=this.dt,t.dt?.timestamp&&(t.dt.timestamp=e.runtime.timeKeeper.correctAbsoluteTimestamp(t.dt.timestamp)),t.jsEnd=t.start=this.startTime,t[B][H]++)},this.featureName,v),(0,r.i)("xhr-resolved",function(){var e=this[U];if(e){if(!(0,n.gX)(this.params))return void e.cancel();var t=e.attrs;t.params=this.params,t.metrics=this.metrics,e.finish(this.endTime),this.currentNode&&this.currentNode.interaction&&this.currentNode.interaction.checkFinish()}},this.featureName,a),(0,r.i)("new-jsonp",function(e){t.currentNode&&((this[z]=t.currentNode.child("ajax",this[K])).start=this["new-jsonp"],this.url=e,this.status=null)},this.featureName,g),(0,r.i)("cb-start",function(e){var t=this[z];t&&(Y(t),this.status=200)},this.featureName,g),(0,r.i)("jsonp-error",function(){var e=this[z];e&&(Y(e),this.status=0)},this.featureName,g),(0,r.i)(V,function(){var e=this[z];if(e){if(null===this.status)return void e.cancel();var t=e.attrs,i=t.params={},r=(0,s.D)(this.url);i.method="GET",i.pathname=r.pathname,i.host=r.hostname+":"+r.port,i.status=this.status,t.metrics={txSize:0,rxSize:0},t.isJSONP=!0,e.jsEnd=this[V],e.jsTime=this[D]?this[V]-this[D]:0,e.finish(e.jsEnd)}},this.featureName,g),(0,r.i)(K,function(i,r){if(i){if(!t.disableSpaFix&&!t.currentNode&&t.prevInteraction&&!t.prevInteraction.ignored){const e=t.prevInteraction;t.currentNode=e.root,e.root.end=null}t.currentNode&&(this[U]=t.currentNode.child("ajax",this[K]),r&&this[U]&&(this[U].dt=r,this[U].dt?.timestamp&&(this[U].dt.timestamp=e.runtime.timeKeeper.correctAbsoluteTimestamp(this[U].dt.timestamp))))}},this.featureName,f),(0,r.i)(G+"start",function(e){t.currentNode&&(this[U]=t.currentNode,t.currentNode[B][H]++)},this.featureName,f),(0,r.i)(G+"end",function(e,t,i){var r=this[U];r&&r[B][H]--},this.featureName,f),(0,r.i)(q,function(e,t){var i=this[U];if(i){if(e||!(0,n.gX)(this.params))return void i.cancel();var r=i.attrs;r.params=this.params,r.metrics={txSize:this.txSize,rxSize:this.rxSize},r.isFetch=!0,i.finish(this[q])}},this.featureName,f),(0,r.i)("newURL",function(e,i){if(t.currentNode)t.currentNode[B].setNewURL(e);else if(t.prevInteraction&&!t.prevInteraction.ignored){const i=t.prevInteraction;i.setNewURL(e),i.root.end=null,Y(i.root)}t.currentNode&&(t.lastSeenUrl!==e&&(t.currentNode[B].routeChange=!0),i&&(t.nodeOnLastHashUpdate=t.currentNode)),t.lastSeenUrl=e},this.featureName,d),g.on("dom-start",function(e){if(t.currentNode){var i=e[0],r=i&&"SCRIPT"===i.nodeName&&""!==i.src,s=t.currentNode.interaction;r&&(s[H]++,i.addEventListener("load",function(){s[H]--,s.checkFinish()},(0,y.jT)(!1)),i.addEventListener("error",function(){s[H]--,s.checkFinish()},(0,y.jT)(!1)))}}),(0,r.i)(P,function(){Y(t.prevNode)},this.featureName,h),(0,r.i)("resolve-start",Q,this.featureName,u),(0,r.i)("executor-err",Q,this.featureName,u),(0,r.i)("propagate",function(e,i){!i&&this[U]||(this[U]=t.currentNode)},this.featureName,u),(0,r.i)(D,function(){Y((this.getCtx?this.getCtx():this)[U])},this.featureName,u),(0,r.i)(_+"get",function(i){var r;r=this.ixn=t?.currentNode?.[B]?t.currentNode[B]:null===t?.prevNode?.end&&"initialPageLoad"!==t?.prevNode?.[B]?.root?.[B]?.eventName?t.prevNode[B]:new m("api",i,t.lastSeenUrl,t.lastSeenRouteName,ee,e),t.currentNode||(r.checkFinish(),t.depth&&Y(r.root))},this.featureName,a),(0,r.i)(_+"actionText",function(e,t){var i=this.ixn.root.attrs.custom;t&&(i.actionText=t)},this.featureName,a),(0,r.i)(_+"setName",function(e,t,i){var r=this.ixn.root.attrs;t&&(r.customName=t),i&&(r.trigger=i)},this.featureName,a),(0,r.i)(_+"setAttribute",function(e,t,i){this.ixn.root.attrs.custom[t]=i},this.featureName,a),(0,r.i)(_+"end",function(e){var t=this.ixn,i=Z(t);Y(null),i.child("customEnd",e)?.finish(e),t.finish()},this.featureName,a),(0,r.i)(_+"ignore",function(e){this.ixn.ignored=!0},this.featureName,a),(0,r.i)(_+"save",function(e){this.ixn.save=!0},this.featureName,a),(0,r.i)(_+"tracer",function(e,t,i){var r=this.ixn,s=Z(r),n=a.context(i);if(!t)return n.inc=++r[H],n[U]=s;n[U]=s.child("customTracer",e,t)},this.featureName,a),(0,r.i)(P,X,this.featureName,b),(0,r.i)("no-"+P,X,this.featureName,b),(0,r.i)(_+"getContext",function(e,t){var i=this.ixn.root.attrs.store;setTimeout(function(){t(i)},0)},this.featureName,a),(0,r.i)(_+"onEnd",function(e,t){this.ixn.handlers.push(t)},this.featureName,a),(0,r.i)("api-routeName",function(e,i){t.lastSeenRouteName=i,t.currentNode&&t.currentNode[B].setNewRoute(i)},this.featureName,a),a.on("spa-jserror",function(e,i,r,s){t.currentNode&&(r._interactionId=t.currentNode.interaction.id,t.currentNode.type&&"interaction"!==t.currentNode.type&&(r._interactionNodeId=t.currentNode.id))}),(0,r.i)("function-err",function(i,r,s){t.currentNode&&(s.__newrelic??={},s.__newrelic[e.agentIdentifier]={interactionId:t.currentNode.interaction.id},t.currentNode.type&&"interaction"!==t.currentNode.type&&(s.__newrelic[e.agentIdentifier].interactionNodeId=t.currentNode.id))},this.featureName,a),a.on("interaction",function(e){if(e.ignored||!e.save&&!e.routeChange)return void a.emit("interactionDone",[e,!1]);t.prevInteraction===e&&(t.prevInteraction=null);e.root.attrs.id=(0,o.bz)(),"initialPageLoad"===e.root.attrs.trigger&&(e.root.attrs.firstPaint=M.J.current.value,e.root.attrs.firstContentfulPaint=A.j.current.value);let r;a.emit("interactionDone",[e,!0]),i.events.add(e),r="initialPageLoad"===e.root?.attrs?.trigger?"InitialPageLoad":e.routeChange?"RouteChange":"Custom";if((0,I.p)(C.xV,["Spa/Interaction/".concat(r,"/Duration/Ms"),Math.max((e.root?.end||0)-(e.root?.start||0),0)],void 0,E.K7.metrics,a),!S)return void(0,x.R)(19);S.triggerHarvestFor(i)})}function N(){t.depth++,this.prevNode=t.currentNode,this.ct=t.childTime,t.childTime=0,t.timerBudget=L}function J(){t.depth--;var e=this.jsTime||0,i=e-t.childTime;t.childTime=this.ct+e,t.currentNode&&(t.currentNode.callback(i,this[j]),this.isTraced&&(t.currentNode.attrs.tracedTime=i)),this.jsTime=t.currentNode?0:i,Y(this.prevNode),this.prevNode=null,t.timerBudget=L}function X(e,t,i){var r=this[U];if(r){var s=r[B],n=this.inc;this.isTraced=!0,n?s[H]--:r&&r.finish(e),i?Y(r):s.checkFinish()}}function Z(e){return t.currentNode&&t.currentNode[B]===e?t.currentNode:e.root}function Q(){this.resolved||(this.resolved=!0,this[U]=t.currentNode)}function Y(e){t.pageLoaded||e||!t.initialPageLoad||(e=t.initialPageLoad.root),t.currentNode&&t.currentNode[B].checkFinish(),t.prevNode=t.currentNode,t.currentNode=e&&!e[B].root.end?e:null}function ee(e){e===t.initialPageLoad&&(t.initialPageLoad=null);var i=e.root,r=i.attrs;t.currentNode=i,Object.values(e.handlers||{}).forEach(function(e){e(r.store)}),Y(null)}}serializer(e){return this.spaSerializerClass.serializeMultiple(e,0,a.ss)}}},5851:(e,t,i)=>{i.d(t,{m:()=>n});var r=i(384),s=i(6154);const n=new class{#y=new WeakSet;#b=[];invalidStylesheetsDetected=!1;failedToFix=0;evaluate(){let e=0;if(this.#b=[],s.RI)for(let t=0;tthis.#S(e))),this.#b=[];const e=this.failedToFix;return this.failedToFix=0,e}async#S(e){if(e?.href)try{const t=await(0,r.dV)().o.FETCH.bind(window)(e.href);if(!t.ok)return void this.failedToFix++;const i=await t.text();try{const t=new CSSStyleSheet;await t.replace(i),Object.defineProperty(e,"cssRules",{get:()=>t.cssRules}),Object.defineProperty(e,"rules",{get:()=>t.rules})}catch(t){Object.defineProperty(e,"cssText",{get:()=>i}),this.failedToFix++}}catch(e){this.failedToFix++}}}},6167:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>S});var r=i(3606),s=i(6344),n=i(1630);let a;const o=new Promise(e=>{a=e}),c=Object.freeze({onReplayReady:a,sessionReplayInitialized:o});var h=i(3762),u=i(944),d=i(6154),l=i(9324),p=i(2614),f=i(3304),g=i(5851),m=i(1863),v=i(7699),y=i(9119),b=i(7767);class S extends n.r{static featureName=s.TZ;mode=p.g.OFF;constructor(e,t){super(e,s.TZ),this.initialized=!1,this.blocked=!1,this.gzipper=void 0,this.u8=void 0,this.entitled=!1,this.timeKeeper=void 0,this.instrumentClass=t,this.recorder=this.instrumentClass?.recorder,this.harvestOpts.raw=!0,this.isSessionTrackingEnabled=(0,b.V)(e.init)&&!!e.runtime.session,this.reportSupportabilityMetric("Config/SessionReplay/Enabled"),this.ee.on(p.tS.RESET,()=>{this.abort(s.bc.RESET)}),this.ee.on(p.tS.PAUSE,()=>{this.recorder?.stopRecording()}),this.ee.on(p.tS.RESUME,()=>{this.recorder&&(this.mode=e.runtime.session.state.sessionReplayMode,this.initialized&&this.mode!==p.g.OFF&&this.recorder?.startRecording(s.Qb.RESUME,this.mode))}),this.ee.on(p.tS.UPDATE,(e,t)=>{this.recorder&&this.initialized&&!this.blocked&&e===p.iL.CROSS_TAB&&(this.mode!==p.g.OFF&&t.sessionReplayMode===p.g.OFF&&this.abort(s.bc.CROSS_TAB),this.mode=t.sessionReplayMode)}),(0,r.i)(s.G4.PAUSE,()=>{this.forceStop(this.mode===p.g.FULL)},this.featureName,this.ee),(0,r.i)(s.G4.ERROR_DURING_REPLAY,e=>{this.handleError(e)},this.featureName,this.ee);const{error_sampling_rate:i,sampling_rate:n,autoStart:a,block_selector:o,mask_text_selector:h,mask_all_inputs:u,inline_images:d,collect_fonts:l}=e.init.session_replay;this.waitForFlags(["srs","sr"]).then(([e,t])=>{if(this.entitled=!!t,!this.entitled)return this.deregisterDrain(),void(this.agentRef.runtime.isRecording&&(this.abort(s.bc.ENTITLEMENTS),this.reportSupportabilityMetric("SessionReplay/EnabledNotEntitled/Detected")));this.initializeRecording(e).then(()=>{this.drain()})}).then(()=>{if(this.mode===p.g.OFF)for(this.recorder?.stopRecording();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.();c.onReplayReady(this.mode)}),a||this.reportSupportabilityMetric("Config/SessionReplay/AutoStart/Modified"),!0===l&&this.reportSupportabilityMetric("Config/SessionReplay/CollectFonts/Modified"),!0===d&&this.reportSupportabilityMetric("Config/SessionReplay/InlineImages/Modifed"),!0!==u&&this.reportSupportabilityMetric("Config/SessionReplay/MaskAllInputs/Modified"),"[data-nr-block]"!==o&&this.reportSupportabilityMetric("Config/SessionReplay/BlockSelector/Modified"),"*"!==h&&this.reportSupportabilityMetric("Config/SessionReplay/MaskTextSelector/Modified"),this.reportSupportabilityMetric("Config/SessionReplay/SamplingRate/Value",n),this.reportSupportabilityMetric("Config/SessionReplay/ErrorSamplingRate/Value",i)}replayIsActive(){return Boolean(this.recorder&&this.mode===p.g.FULL&&!this.blocked&&this.entitled)}handleError(e){this.recorder&&(this.recorder.events.hasError=!0),this.mode===p.g.ERROR&&"visible"===d.gm?.document.visibilityState&&this.switchToFull()}switchToFull(){this.entitled&&!this.blocked&&(this.mode=p.g.FULL,this.recorder&&this.initialized?(this.agentRef.runtime.isRecording||this.recorder.startRecording(s.Qb.SWITCH_TO_FULL,this.mode),this.syncWithSessionManager({sessionReplayMode:this.mode})):this.initializeRecording(p.g.FULL,!0,s.Qb.SWITCH_TO_FULL))}async initializeRecording(e,t,i=s.Qb.INITIALIZE){if(this.initialized=!0,!this.entitled)return;const{session:r,timeKeeper:n}=this.agentRef.runtime;if(this.timeKeeper=n,this.recorder?.trigger===s.Qb.API&&this.agentRef.runtime.isRecording?this.mode=p.g.FULL:r.isNew||t?this.mode=e:this.mode=r.state.sessionReplayMode,this.mode!==p.g.OFF){try{this.recorder??=await this.instrumentClass.importRecorder()}catch(e){return this.abort(s.bc.IMPORT,e)}this.mode===p.g.ERROR&&this.instrumentClass.errorNoticed&&(this.mode=p.g.FULL),await this.prepUtils(),this.agentRef.runtime.isRecording||this.recorder.startRecording(i,this.mode),this.syncWithSessionManager({sessionReplayMode:this.mode})}}async prepUtils(){try{const{gzipSync:e,strToU8:t}=await i.e(212).then(i.bind(i,9861));this.gzipper=e,this.u8=t}catch(e){}}makeHarvestPayload(e){const t={targetApp:void 0,payload:void 0};if(this.mode!==p.g.FULL||this.blocked)return;if(!this.recorder||!this.timeKeeper?.ready||!this.recorder.hasSeenSnapshot)return;const i=this.recorder.getEvents();if(!i.events.length)return;const r=this.getHarvestContents(i);if(!r.body.length)return this.recorder.clearBuffer(),[t];this.reportSupportabilityMetric("SessionReplay/Harvest/Attempts");let n=0;if(this.gzipper&&this.u8)r.body=this.gzipper(this.u8("[".concat(r.body.map(({__serialized:e})=>e).join(","),"]"))),n=r.body.length;else{for(let e in r.body)delete r.body[e].__serialized;n=(0,f.A)(r.body).length}return n>v.It?(this.abort(s.bc.TOO_BIG,n),[t]):(this.agentRef.runtime.session.state.sessionReplaySentFirstChunk||this.syncWithSessionManager({sessionReplaySentFirstChunk:!0}),this.recorder.clearBuffer(),"preloaded"===i.type&&this.agentRef.runtime.harvester.triggerHarvestFor(this),t.payload=r,this.agentRef.runtime.session.state.traceHarvestStarted||(0,u.R)(59,JSON.stringify(this.agentRef.runtime.session.state)),[t])}getFirstAndLastNodes(e=[]){const t={firstEvent:e[0],lastEvent:e[e.length-1]};return e.forEach(e=>{const i=e?.timestamp;(!t.firstEvent?.timestamp||(i||1/0)t.lastEvent.timestamp)&&(t.lastEvent=e)}),t}getHarvestContents(e){e??=this.recorder.getEvents();let t=e.events;const i=this.agentRef.runtime,r=this.agentRef.info.jsAttributes?.["enduser.id"];t?.[0]?.type===s._s.FullSnapshot&&this.recorder.lastMeta&&(e.hasMeta=!0,t.unshift(this.recorder.lastMeta),this.recorder.lastMeta=void 0);t[t.length-1]?.type===s._s.Meta&&(this.recorder.lastMeta=t[t.length-1],t=t.slice(0,t.length-1),e.hasMeta=!!t.find(e=>e.type===s._s.Meta));const n=(0,m.t)(),{firstEvent:a,lastEvent:o}=this.getFirstAndLastNodes(t),c=a?.timestamp||Math.floor(this.timeKeeper.correctAbsoluteTimestamp(e.cycleTimestamp)),u=o?.timestamp||Math.floor(this.timeKeeper.correctRelativeTimestamp(n)),d=i.appMetadata?.agents?.[0]||{};return{qs:{browser_monitoring_key:this.agentRef.info.licenseKey,type:"SessionReplay",app_id:this.agentRef.info.applicationID,protocol_version:"0",timestamp:c,attributes:(0,h.WL)({...!!this.gzipper&&!!this.u8&&{content_encoding:"gzip"},...d.entityGuid&&{entityGuid:d.entityGuid},harvestId:[i.session?.state.value,i.ptid,i.harvestCount].filter(e=>e).join("_"),"replay.firstTimestamp":c,"replay.lastTimestamp":u,"replay.nodes":t.length,"session.durationMs":i.session.getDuration(),agentVersion:i.version,session:i.session.state.value,rst:n,hasMeta:e.hasMeta||!1,hasSnapshot:e.hasSnapshot||!1,hasError:e.hasError||!1,isFirstChunk:!1===i.session.state.sessionReplaySentFirstChunk,decompressedBytes:e.payloadBytesEstimation,invalidStylesheetsDetected:g.m.invalidStylesheetsDetected,inlinedAllStylesheets:e.inlinedAllStylesheets,"rrweb.version":l.AJ+"@"+l.Yq,"payload.type":e.type,...r&&{"enduser.id":this.obfuscator.obfuscateString(r)},currentUrl:this.obfuscator.obfuscateString((0,y.L)(""+location))},s.BB).substring(1)},body:t}}postHarvestCleanup(e){429===e.status&&this.abort(s.bc.TOO_MANY)}forceStop(e){e&&this.agentRef.runtime.harvester.triggerHarvestFor(this),this.mode=p.g.OFF,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode})}abort(e={},t){for((0,u.R)(33,e.message),this.reportSupportabilityMetric("SessionReplay/Abort/".concat(e.sm),t),this.blocked=!0,this.mode=p.g.OFF,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode}),this.recorder?.clearTimestamps?.();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.()}syncWithSessionManager(e={}){this.isSessionTrackingEnabled&&this.agentRef.runtime.session.write(e)}}},6555:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>O});var r=i(3606),s=i(8154),n=i(6154);const a="React",o="NextJS",c="Vue",h="NuxtJS",u="Angular",d="AngularUniversal",l="Svelte",p="SvelteKit",f="Preact",g="PreactSSR",m="AngularJS",v="Backbone",y="Ember",b="Meteor",S="Zepto",T="Jquery",R="MooTools",w="Qwik",E="Flutter",N="Electron";function A(){if(!n.RI)return[];const e=[];try{(function(){try{return Object.prototype.hasOwnProperty.call(window,"React")||Object.prototype.hasOwnProperty.call(window,"ReactDOM")||Object.prototype.hasOwnProperty.call(window,"ReactRedux")||document.querySelector("[data-reactroot], [data-reactid]")||(()=>{const e=document.querySelectorAll("body > div");for(let t=0;te.startsWith("__sveltekit"))}catch(e){return!1}}()&&e.push(p)),function(){try{return Object.prototype.hasOwnProperty.call(window,"preact")}catch(e){return!1}}()&&(e.push(f),function(){try{return document.querySelector('script[type="__PREACT_CLI_DATA__"]')}catch(e){return!1}}()&&e.push(g)),function(){try{return Object.prototype.hasOwnProperty.call(window,"angular")||document.querySelector(".ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]")||document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')}catch(e){return!1}}()&&e.push(m),Object.prototype.hasOwnProperty.call(window,"Backbone")&&e.push(v),Object.prototype.hasOwnProperty.call(window,"Ember")&&e.push(y),Object.prototype.hasOwnProperty.call(window,"Meteor")&&e.push(b),Object.prototype.hasOwnProperty.call(window,"Zepto")&&e.push(S),Object.prototype.hasOwnProperty.call(window,"jQuery")&&e.push(T),Object.prototype.hasOwnProperty.call(window,"MooTools")&&e.push(R),Object.prototype.hasOwnProperty.call(window,"qwikevents")&&e.push(w),Object.hasOwn(window,"_flutter")&&e.push(E),function(){try{return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}catch(e){return!1}}()&&e.push(N)}catch(e){}return e}var M=i(4284),k=i(5289),I=i(3878),C=i(1630),x=i(2123);class O extends C.r{static featureName=s.TZ;constructor(e){super(e,s.TZ),this.harvestOpts.aggregatorTypes=["cm","sm"],this.harvestMetadata={},this.harvestOpts.beforeUnload=()=>{(function(e){try{const t=[],i=(...e)=>e.join("/");function r(e,r,s,n){const a="audit";s?n?t.push(i(a,e,r,"true","positive")):t.push(i(a,e,r,"false","positive")):n?t.push(i(a,e,r,"false","negative")):t.push(i(a,e,r,"true","negative"))}return e.page_view_event&&(r("page_view","hasReplay",e.page_view_event.hasReplay,!!e.session_replay),r("page_view","hasTrace",e.page_view_event.hasTrace,!!e.session_trace)),e.session_replay&&r("session_replay","hasError",e.session_replay.hasError,!!e.jserrors),t}catch(s){return[]}})(this.harvestMetadata).forEach(e=>{this.storeSupportabilityMetrics(e)})},this.agentNonce=n.RI&&document.currentScript?.nonce,this.waitForFlags(["err"]).then(([e])=>{e?(this.singleChecks(),this.eachSessionChecks(),this.drain()):(this.blocked=!0,this.deregisterDrain())}),(0,r.i)(s.xV,this.storeSupportabilityMetrics.bind(this),this.featureName,this.ee),(0,r.i)(s.XG,this.storeEventMetrics.bind(this),this.featureName,this.ee)}preHarvestChecks(e){return this.drained&&e.isFinalHarvest}storeSupportabilityMetrics(e,t){if(this.blocked)return;const i=s.rs,r={name:e};this.events.addMetric(i,e,r,t)}storeEventMetrics(e,t){if(this.blocked)return;const i=s.z_,r={name:e};this.events.add([i,e,r,t])}singleChecks(){const{distMethod:e,loaderType:t}=this.agentRef.runtime,{proxy:i,privacy:s}=this.agentRef.init;if(t&&this.storeSupportabilityMetrics("Generic/LoaderType/".concat(t,"/Detected")),e&&this.storeSupportabilityMetrics("Generic/DistMethod/".concat(e,"/Detected")),n.RI?(this.storeSupportabilityMetrics("Generic/Runtime/Browser/Detected"),this.agentNonce&&""!==this.agentNonce&&this.storeSupportabilityMetrics("Generic/Runtime/Nonce/Detected"),(0,k.sB)(()=>{A().forEach(e=>{this.storeSupportabilityMetrics("Framework/"+e+"/Detected")})}),s.cookies_enabled||this.storeSupportabilityMetrics("Config/SessionTracking/Disabled")):n.bv?this.storeSupportabilityMetrics("Generic/Runtime/Worker/Detected"):this.storeSupportabilityMetrics("Generic/Runtime/Unknown/Detected"),(0,M.p)()&&this.storeSupportabilityMetrics("Generic/FileProtocol/Detected"),this.obfuscator.obfuscateConfigRules.length>0&&this.storeSupportabilityMetrics("Generic/Obfuscate/Detected"),i.assets&&this.storeSupportabilityMetrics("Config/AssetsUrl/Changed"),i.beacon&&this.storeSupportabilityMetrics("Config/BeaconUrl/Changed"),n.RI&&window.MutationObserver){(0,x.v)(window)&&this.storeSupportabilityMetrics("Generic/Runtime/IFrame/Detected");const e=window.document.querySelectorAll("video").length;e&&this.storeSupportabilityMetrics("Generic/VideoElement/Added",e);const t=window.document.querySelectorAll("iframe").length;t&&this.storeSupportabilityMetrics("Generic/IFrame/Added",t);new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof HTMLVideoElement&&this.storeSupportabilityMetrics("Generic/VideoElement/Added",1),e instanceof HTMLIFrameElement&&this.storeSupportabilityMetrics("Generic/IFrame/Added",1)})})}).observe(window.document.body,{childList:!0,subtree:!0})}navigator.webdriver&&this.storeSupportabilityMetrics("Generic/WebDriver/Detected"),(0,r.i)("harvest-metadata",(e={})=>{try{Object.keys(e).forEach(t=>{Object.assign(this.harvestMetadata[t]??={},e[t])})}catch(e){}},this.featureName,this.ee)}eachSessionChecks(){n.RI&&(0,I.sp)("pageshow",e=>{e?.persisted&&this.storeSupportabilityMetrics("Generic/BFCache/PageRestored")})}}},6773:(e,t,i)=>{i.d(t,{x:()=>r});class r{#T=new Set;history=[];constructor(e,t){this.name=e,this.attrs={},this.roundingMethod="function"==typeof t?t:Math.floor}update({value:e,attrs:t={}}){if(null==e||e<0)return;const i={value:this.roundingMethod(e),name:this.name,attrs:t};this.history.push(i),this.#T.forEach(e=>{try{e(i)}catch(e){}})}get current(){return this.history[this.history.length-1]||{value:void 0,name:this.name,attrs:{}}}get isValid(){return this.current.value>=0}subscribe(e,t=!0){if("function"==typeof e)return this.#T.add(e),this.isValid&&t&&this.history.forEach(t=>{e(t)}),()=>{this.#T.delete(e)}}}},6974:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>T});var r=i(3606),s=i(3738),n=i(1630),a=i(2614),o=i(1863),c=i(7485),h=i(1528);class u{constructor(e,t,i,r,s){this.n=e,this.s=t,this.e=i,this.o=r,this.t=s}}const d={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},l={typing:"typing",scrolling:"scrolling",mousing:"mousing",touching:"touching"},p={[l.typing]:1e3,[l.scrolling]:100,[l.mousing]:1e3,[l.touching]:1e3},f={[l.typing]:2e3,[l.scrolling]:1e3,[l.mousing]:2e3,[l.touching]:2e3};class g{prevStoredEvents=new Set;constructor(e){this.parent=e}#R(e){return e.n in l}#w(e){const t={e:e.e};return this.parent.events.merge(t=>!(t.o!==e.o||t.n!==e.n||e.s-t.se.s-p[e.o]),t)}#E(e){if(e.n in d.global)return!0;const t=e.o;return!(!d[t]?.ignoreAll&&!d[t]?.[e.n])||"xhrOriginMissing"===t&&"Ajax"===e.n}#N(){if(this.parent.blocked)return!1;if(this.parent.events.length>=s.jx){if(this.parent.mode!==a.g.ERROR)return!1;this.trimSTNsByTime(),this.parent.events.length>=s.jx&&this.trimSTNsByIndex(1)}return!0}#A(e){return!(this.#E(e)||!this.#N())&&(this.#R(e)&&this.#w(e)||this.parent.events.add(e),!0)}storeNode(e){return this.#A(e)}processPVT(e,t,i){return this.storeTiming({[e]:t})}storeTiming(e,t=!1){if(!e)return!1;let i=!0;for(let r in e){let s=e[r];const n=r.toLowerCase();n.indexOf("size")>=0||n.indexOf("status")>=0||"number"==typeof s&&s>=0&&(s=Math.round(s),this.parent.timeKeeper&&this.parent.timeKeeper.ready&&t&&(s=this.parent.timeKeeper.convertAbsoluteTimestamp(Math.floor(this.parent.timeKeeper.correctAbsoluteTimestamp(s)))),this.#A(new u(r,s,s,"document","timing"))||(i=!1))}return i}storeEvent(e,t,i,r){if(this.prevStoredEvents.has(e)||!this.#N())return!1;this.prevStoredEvents.add(e);const s=new u(function(e){switch(e){case"keydown":case"keyup":case"keypress":return"typing";case"mousemove":case"mouseenter":case"mouseleave":case"mouseover":case"mouseout":return"mousing";case"touchstart":case"touchmove":case"touchend":case"touchcancel":case"touchenter":case"touchleave":return"touching";case"scroll":case"scrollend":return"scrolling";default:return e}}(e.type),i,r,void 0,"event");try{s.o=(0,h.t)(e.target,t,this.parent.ee)}catch(e){s.o=(0,h.t)(null,t,this.parent.ee)}return this.#A(s)}storeHist(e,t,i){return this.#A(new u("history.pushState",i,i,e,t))}storeResources(e){if(!e||0===e.length)return!1;let t=!0;for(let i=0;ithis.initialize(e,t))}initialize(e,t,i){return this.entitled??=t,this.entitled||(this.blocked=!0),this.blocked?this.deregisterDrain():(this.initialized||(this.initialized=!0,this.ptid=this.agentRef.runtime.ptid,this.sessionId=this.agentRef.runtime.session?.state.value,this.ee.on(a.tS.RESET,()=>{this.blocked||this.abort(1)}),this.ee.on(a.tS.UPDATE,(e,t)=>{this.blocked||(this.mode===a.g.FULL||t.sessionReplayMode!==a.g.FULL&&t.sessionTraceMode!==a.g.FULL||this.switchToFull(),(this.sessionId!==t.value||"cross-tab"===e&&t.sessionTraceMode===a.g.OFF)&&this.abort(2))}),"undefined"!=typeof PerformanceNavigationTiming?this.traceStorage.storeTiming(v.gm.performance?.getEntriesByType?.("navigation")[0]):this.traceStorage.storeTiming(v.gm.performance?.timing,!0)),this.agentRef.runtime.session.isNew||i?this.mode=e:this.mode=this.agentRef.runtime.session.state.sessionTraceMode,this.mode===a.g.OFF?this.deregisterDrain():(this.timeKeeper??=this.agentRef.runtime.timeKeeper,(0,r.i)("bst",(...e)=>this.traceStorage.storeEvent(...e),this.featureName,this.ee),(0,r.i)("bstResource",(...e)=>this.traceStorage.storeResources(...e),this.featureName,this.ee),(0,r.i)("bstHist",(...e)=>this.traceStorage.storeHist(...e),this.featureName,this.ee),(0,r.i)("bstXhrAgg",(...e)=>this.traceStorage.storeXhrAgg(...e),this.featureName,this.ee),(0,r.i)("bstApi",(...e)=>this.traceStorage.storeNode(...e),this.featureName,this.ee),(0,r.i)("trace-jserror",(...e)=>this.traceStorage.storeErrorAgg(...e),this.featureName,this.ee),(0,r.i)("pvtAdded",(...e)=>this.traceStorage.processPVT(...e),this.featureName,this.ee),this.mode!==a.g.FULL&&(0,r.i)("trace-jserror",()=>{this.mode===a.g.ERROR&&this.switchToFull()},this.featureName,this.ee),this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.drain(),void this.agentRef.runtime.harvester.triggerHarvestFor(this)))}preHarvestChecks(){if(!this.blocked&&this.mode===a.g.FULL&&this.timeKeeper?.ready&&this.agentRef.runtime.session){if(this.sessionId===this.agentRef.runtime.session.state.value&&this.ptid===this.agentRef.runtime.ptid)return!0;this.abort(3)}}serializer(e){if(e.length)return this.everHarvested=!0,(0,y.G)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(e){const t=!this.agentRef.runtime.session.state.traceHarvestStarted;t&&this.agentRef.runtime.session.write({traceHarvestStarted:!0});const i=1===this.agentRef.runtime.session.state.sessionReplayMode,r=this.agentRef.info.jsAttributes["enduser.id"],s=this.agentRef.runtime.appMetadata.agents?.[0]?.entityGuid,n=e.reduce((e,t)=>Math.min(e,t.s),1/0),a=e.reduce((e,t)=>Math.max(e,t.s),-1/0);return{browser_monitoring_key:this.agentRef.info.licenseKey,type:"BrowserSessionChunk",app_id:this.agentRef.info.applicationID,protocol_version:"0",timestamp:Math.floor(this.timeKeeper.correctRelativeTimestamp(n)),attributes:(0,m.WL)({...s&&{entityGuid:s},harvestId:"".concat(this.agentRef.runtime.session.state.value,"_").concat(this.agentRef.runtime.ptid,"_").concat(this.agentRef.runtime.harvestCount),"trace.firstTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(n)),"trace.lastTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(a)),"trace.nodes":e.length,"trace.originTimestamp":this.timeKeeper.correctedOriginTime,agentVersion:this.agentRef.runtime.version,...t&&{firstSessionHarvest:t},...i&&{hasReplay:i},ptid:"".concat(this.ptid),session:"".concat(this.sessionId),...r&&{"enduser.id":this.obfuscator.obfuscateString(r)},currentUrl:this.obfuscator.obfuscateString((0,b.L)(""+location))},5e3).substring(1)}}switchToFull(){if(this.mode===a.g.FULL||!this.entitled||this.blocked)return;const e=this.mode;if(this.mode=a.g.FULL,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),e===a.g.OFF||!this.initialized)return this.initialize(this.mode,this.entitled);this.initialized&&(this.traceStorage.trimSTNsByTime(),this.agentRef.runtime.harvester.triggerHarvestFor(this))}abort(e){(0,S.R)(60,e),this.blocked=!0,this.mode=a.g.OFF,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.events.clear()}postHarvestCleanup(e){this.traceStorage.clear(),super.postHarvestCleanup(e)}}},7226:(e,t,i)=>{i.d(t,{Ck:()=>he,IN:()=>I,fK:()=>ne,rH:()=>ie,zB:()=>C});var r,s,n=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart(t||100)-1)return i||s;if(i=i?s+">"+i:s,r.id)break;e=r.parentNode}}catch(e){}return i},h=-1,u=function(){return h},d=function(e){addEventListener("pageshow",function(t){t.persisted&&(h=t.timeStamp,e(t))},!0)},l=function(){var e=n();return e&&e.activationStart||0},p=function(e,t){var i=n(),r="navigate";return u()>=0?r="back-forward-cache":i&&(document.prerendering||l()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},f=function(e,t,i){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},i||{})),r}}catch(e){}},g=function(e,t,i,r){var s,n;return function(a){t.value>=0&&(a||r)&&((n=t.value-(s||0))||void 0===s)&&(s=t.value,t.delta=n,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,i),e(t))}},m=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},v=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},y=function(e){var t=!1;return function(){t||(e(),t=!0)}},b=-1,S=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},T=function(e){"hidden"===document.visibilityState&&b>-1&&(b="visibilitychange"===e.type?e.timeStamp:0,w())},R=function(){addEventListener("visibilitychange",T,!0),addEventListener("prerenderingchange",T,!0)},w=function(){removeEventListener("visibilitychange",T,!0),removeEventListener("prerenderingchange",T,!0)},E=function(){return b<0&&(b=S(),R(),d(function(){setTimeout(function(){b=S(),R()},0)})),{get firstHiddenTime(){return b}}},N=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},A=[1800,3e3],M=function(e,t){t=t||{},N(function(){var i,r=E(),s=p("FCP"),n=f("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(n.disconnect(),e.startTimer.value&&(r.value=s,r.entries=n,i())},o=f("layout-shift",a);o&&(i=g(e,r,k,t.reportAllChanges),v(function(){a(o.takeRecords()),i(!0)}),d(function(){s=0,r=p("CLS",0),i=g(e,r,k,t.reportAllChanges),m(function(){return i()})}),setTimeout(i,0))}))}(function(t){var i=function(e){var t,i={};if(e.entries.length){var r=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(r&&r.sources&&r.sources.length){var s=(t=r.sources).find(function(e){return e.node&&1===e.node.nodeType})||t[0];s&&(i={largestShiftTarget:c(s.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:s,largestShiftEntry:r,loadState:a(r.startTime)})}}return Object.assign(e,{attribution:i})}(t);e(i)},t)},C=function(e,t){M(function(t){var i=function(e){var t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:a(u())};if(e.entries.length){var i=n(),r=e.entries[e.entries.length-1];if(i){var s=i.activationStart||0,o=Math.max(0,i.responseStart-s);t={timeToFirstByte:o,firstByteToFCP:e.value-o,loadState:a(e.entries[0].startTime),navigationEntry:i,fcpEntry:r}}}return Object.assign(e,{attribution:t})}(t);e(i)},t)},x=0,O=1/0,F=0,L=function(e){e.forEach(function(e){e.interactionId&&(O=Math.min(O,e.interactionId),F=Math.max(F,e.interactionId),x=F?(F-O)/7+1:0)})},P=function(){return r?x:performance.interactionCount||0},j=function(){"interactionCount"in performance||r||(r=f("event",L,{type:"event",buffered:!0,durationThreshold:0}))},D=[],_=new Map,H=0,B=[],U=function(e){if(B.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=D[D.length-1],i=_.get(e.interactionId);if(i||D.length<10||e.duration>t.latency){if(i)e.duration>i.latency?(i.entries=[e],i.latency=e.duration):e.duration===i.latency&&e.startTime===i.entries[0].startTime&&i.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};_.set(r.id,r),D.push(r)}D.sort(function(e,t){return t.latency-e.latency}),D.length>10&&D.splice(10).forEach(function(e){return _.delete(e.id)})}}},z=function(e){var t=self.requestIdleCallback||self.setTimeout,i=-1;return e=y(e),"hidden"===document.visibilityState?e():(i=t(e),v(e)),i},K=[200,500],q=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},N(function(){var i;j();var r,s=p("INP"),n=function(e){z(function(){e.forEach(U);var t=function(){var e=Math.min(D.length-1,Math.floor((P()-H)/50));return D[e]}();t&&t.latency!==s.value&&(s.value=t.latency,s.entries=t.entries,r())})},a=f("event",n,{durationThreshold:null!==(i=t.durationThreshold)&&void 0!==i?i:40});r=g(e,s,K,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),v(function(){n(a.takeRecords()),r(!0)}),d(function(){H=P(),D.length=0,_.clear(),s=p("INP"),r=g(e,s,K,t.reportAllChanges)}))}))},G=[],V=[],W=0,J=new WeakMap,X=new Map,Z=-1,Q=function(e){G=G.concat(e),Y()},Y=function(){Z<0&&(Z=z(ee))},ee=function(){X.size>10&&X.forEach(function(e,t){_.has(t)||X.delete(t)});var e=D.map(function(e){return J.get(e.entries[0])}),t=V.length-50;V=V.filter(function(i,r){return r>=t||e.includes(i)});for(var i=new Set,r=0;rW&&t>n||i.has(e)}),Z=-1};B.push(function(e){e.interactionId&&e.target&&!X.has(e.interactionId)&&X.set(e.interactionId,e.target)},function(e){var t,i=e.startTime+e.duration;W=Math.max(W,e.processingEnd);for(var r=V.length-1;r>=0;r--){var s=V[r];if(Math.abs(i-s.renderTime)<=8){(t=s).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:i,entries:[e]},V.push(t)),(e.interactionId||"first-input"===e.entryType)&&J.set(e,t),Y()});var te=function(e,t){for(var i,r=[],s=0;i=G[s];s++)if(!(i.startTime+i.durationt)break;r.push(i)}return r},ie=function(e,t){s||(s=f("long-animation-frame",Q)),q(function(t){var i=function(e){var t=e.entries[0],i=J.get(t),r=t.processingStart,s=i.processingEnd,n=i.entries.sort(function(e,t){return e.processingStart-t.processingStart}),o=te(t.startTime,s),h=e.entries.find(function(e){return e.target}),u=h&&h.target||X.get(t.interactionId),d=[t.startTime+t.duration,s].concat(o.map(function(e){return e.startTime+e.duration})),l=Math.max.apply(Math,d),p={interactionTarget:c(u),interactionTargetElement:u,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:l,processedEventEntries:n,longAnimationFrameEntries:o,inputDelay:r-t.startTime,processingDuration:s-r,presentationDelay:Math.max(l-s,0),loadState:a(t.startTime)};return Object.assign(e,{attribution:p})}(t);e(i)},t)},re=[2500,4e3],se={},ne=function(e,t){!function(e,t){t=t||{},N(function(){var i,r=E(),s=p("LCP"),n=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach(function(e){e.startTime{i.r(t),i.d(t,{Aggregate:()=>S});var r=i(3304),s=i(9119),n=i(3333),a=i(6154),o=i(1630),c=i(944),h=i(1863),u=i(3606),d=i(3311);function l(e,t){const{id:i,localName:r}=e;return[r,i?"#".concat(i):"",t?">".concat(t):""].join("")}function p(e){return"tagName"===e&&(e="tag"),"className"===e&&(e="class"),"nearest".concat(e.charAt(0).toUpperCase()+e.slice(1))}class f{constructor(e,t){this.event=e,this.count=1,this.originMs=Math.floor(e.timeStamp),this.relativeMs=[0],this.selectorPath=t.path,this.rageClick=void 0,this.nearestTargetFields=t.nearestFields,this.currentUrl=(0,s.L)(""+location),this.deadClick=!1,this.errorClick=!1}aggregate(e){this.count++,this.relativeMs.push(Math.floor(e.timeStamp-this.originMs)),this.isRageClick()&&(this.rageClick=!0)}isRageClick(){const e=this.relativeMs.length;return"click"===this.event.type&&e>=n.nf&&this.relativeMs[e-1]-this.relativeMs[e-n.nf]{const i={path:void 0,nearestFields:{},hasButton:!1,hasLink:!1};if(!e)return i;if(e===window)return i.path="window",i;if(e===document)return i.path="document",i;let r="";const s=function(e){try{let t=1;const{tagName:i}=e;for(;e.previousElementSibling;)e.previousElementSibling.tagName===i&&t++,e=e.previousElementSibling;return t}catch(e){}}(e);try{for(;e?.tagName;){const s=e.tagName.toLowerCase();i.hasLink||="a"===s,i.hasButton||="button"===s||"input"===s&&"button"===e.type.toLowerCase(),t.forEach(t=>{i.nearestFields[p(t)]||=e[t]?.baseVal||e[t]}),r=l(e,r),e=e.parentNode}}catch(e){}return i.path=r?s?"".concat(r,":nth-of-type(").concat(s,")"):r:void 0,i})(n.qN.includes(e.type)?window:e.target,t),r=function(e,t){let i=e.type;"scrollend"!==e.type&&(i+="-"+t);return i}(e,i.path);if(!r||r!==this.#k){const t=this.#M;return this.#I&&(this.#F(),this.#L()),this.#k=r,this.#M=new f(e,i),this.#I&&"click"===e.type&&(i.hasButton||i.hasLink)&&(this.#P(this.#M),this.#j()),t}this.#M.aggregate(e)}markAsErrorClick(){this.#M&&this.#O&&(this.#M.errorClick=!0,this.#L())}#j(){this.#O=new g.M({onEnd:()=>{this.#L()}},n.Xh)}#L(){this.#O?.clear(),this.#O=void 0}#P(e){!this.#D()&&this.#x&&(this.#x.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.#C=new g.M({onEnd:()=>{e.deadClick=!0,this.#F()}},n.Xh))}#F(){this.#x?.disconnect(),this.#C?.clear(),this.#C=void 0}#D(){return void 0!==this.#C}isLiveClick(){this.#D()&&this.#F()}}var y=i(2123),b=i(5436);class S extends o.r{static featureName=n.TZ;#_;constructor(e){super(e,n.TZ),this.referrerUrl=a.RI&&document.referrer?(0,s.L)(document.referrer):void 0,this.waitForFlags(["ins"]).then(([t])=>{if(!t)return this.blocked=!0,void this.deregisterDrain();this.#H(),(0,u.i)("api-recordCustomEvent",(e,t,i)=>{if(n.kd.includes(t))return(0,c.R)(46);this.addEvent({eventType:t,timestamp:this.toEpoch(e),...i})},this.featureName,this.ee),e.init.page_action.enabled&&(0,u.i)("api-addPageAction",(e,t,i,r)=>{if(!this.agentRef.runtime.entityManager.get(r))return(0,c.R)(56,this.featureName);this.addEvent({...i,eventType:"PageAction",timestamp:this.toEpoch(e),timeSinceLoad:e/1e3,actionName:t,referrerUrl:this.referrerUrl,...a.RI&&{browserWidth:window.document.documentElement?.clientWidth,browserHeight:window.document.documentElement?.clientHeight}},r)},this.featureName,this.ee);let i=()=>{};a.RI&&e.init.user_actions.enabled&&(this.#_=new v(e.init.feature_flags.includes("user_frustrations")),this.harvestOpts.beforeUnload=()=>i?.(this.#_.aggregationEvent),i=e=>{try{if(e?.event){const{target:t,timeStamp:i,type:r}=e.event,s={eventType:"UserAction",timestamp:this.toEpoch(i),action:r,actionCount:e.count,actionDuration:e.relativeMs[e.relativeMs.length-1],actionMs:e.relativeMs,rageClick:e.rageClick,target:e.selectorPath,currentUrl:e.currentUrl,...(0,y.v)(window)&&{iframe:!0},...this.agentRef.init.user_actions.elementAttributes.reduce((i,r)=>{var s;return s=r,"window"!==e.selectorPath&&"document"!==e.selectorPath&&t instanceof HTMLElement&&t?.[s]&&(i[n(r)]=String(t[r]).trim().slice(0,128)),i},{}),...e.nearestTargetFields,...e.deadClick&&{deadClick:!0},...e.errorClick&&{errorClick:!0}};function n(e){return"tagName"===e&&(e="tag"),"className"===e&&(e="class"),"target".concat(e.charAt(0).toUpperCase()+e.slice(1))}this.addEvent(s),this.#B(s)}}catch(a){}},(0,u.i)("ua",e=>{i(this.#_.process(e,this.agentRef.init.user_actions.elementAttributes))},this.featureName,this.ee),(0,u.i)("navChange",()=>{this.#_.isLiveClick()},this.featureName,this.ee),(0,u.i)("uaXhr",()=>{this.#_.isLiveClick()},this.featureName,this.ee),(0,u.i)("uaErr",()=>this.#_.markAsErrorClick(),this.featureName,this.ee));const r=[...e.init.performance.capture_marks?["mark"]:[],...e.init.performance.capture_measures?["measure"]:[]];if(r.length)try{r.forEach(t=>{if(PerformanceObserver.supportedEntryTypes.includes(t)){new PerformanceObserver(i=>{i.getEntries().forEach(i=>{try{this.reportSupportabilityMetric("Generic/Performance/"+t+"/Seen");const r=e.init.performance.capture_detail?s(i.detail):{};function s(e){return null==e?{}:(0,b.a)(e)?function e(t,i="entryDetail"){let r={};return null==t||Object.keys(t).forEach(s=>{let n=i+"."+s;(0,b.a)(t[s])?Object.assign(r,e(t[s],n)):null!==t[s]&&void 0!==t[s]&&(r[n]=t[s])}),r}(e):{entryDetail:e}}this.addEvent({...r,eventType:"BrowserPerformance",timestamp:this.toEpoch(i.startTime),entryName:i.name,entryDuration:i.duration,entryType:t})}catch(n){}})}).observe({buffered:!0,type:t})}})}catch(e){}a.RI&&e.init.performance.resources.enabled&&(0,u.i)("browserPerformance.resource",t=>{try{const{name:i,duration:r,...n}=t.toJSON();let o=!1;try{const t=new URL(i).hostname,r=t.includes("newrelic.com")||t.includes("nr-data.net")||t.includes("nr-local.net");if(this.agentRef.init.performance.resources.ignore_newrelic&&r)return;if(this.agentRef.init.performance.resources.asset_types.length&&!this.agentRef.init.performance.resources.asset_types.includes(n.initiatorType))return;o=t===a.gm?.location.hostname||e.init.performance.resources.first_party_domains.includes(t),o&&this.reportSupportabilityMetric("Generic/Performance/FirstPartyResource/Seen"),r&&this.reportSupportabilityMetric("Generic/Performance/NrResource/Seen")}catch(e){}this.reportSupportabilityMetric("Generic/Performance/Resource/Seen");const c={...n,eventType:"BrowserPerformance",timestamp:Math.floor(e.runtime.timeKeeper.correctRelativeTimestamp(n.startTime)),entryName:(0,s.L)(i),entryDuration:r,firstParty:o};this.addEvent(c)}catch(e){this.ee.emit("internal-error",[e,"GenericEvents-Resource"])}},this.featureName,this.ee),(0,u.i)("api-measure",(t,i)=>{const{start:r,duration:s,customAttributes:n}=t,a={...n,eventType:"BrowserPerformance",timestamp:Math.floor(e.runtime.timeKeeper.correctRelativeTimestamp(r)),entryName:i,entryDuration:s,entryType:"measure"};this.addEvent(a)},this.featureName,this.ee),e.runtime.harvester.triggerHarvestFor(this),this.drain()})}addEvent(e={},t){if(!e||!Object.keys(e).length)return;if(!e.eventType)return void(0,c.R)(44);for(let t in e){let i=e[t];e[t]=i&&"object"==typeof i?(0,r.A)(i):i}const i={timestamp:Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp((0,h.t)())),pageUrl:(0,s.L)(""+a.m),currentUrl:(0,s.L)(""+location)},n={...this.agentRef.info.jsAttributes||{},...i,...e};this.events.add(n,t)}serializer(e){return(0,d.G)({ins:e},this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(){return{ua:this.agentRef.info.userAttributes,at:this.agentRef.info.atts}}toEpoch(e){return Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(e))}#H(){const e="Config/Performance/";this.agentRef.init.performance.capture_marks&&this.reportSupportabilityMetric(e+"CaptureMarks/Enabled"),this.agentRef.init.performance.capture_measures&&this.reportSupportabilityMetric(e+"CaptureMeasures/Enabled"),this.agentRef.init.performance.resources.enabled&&this.reportSupportabilityMetric(e+"Resources/Enabled"),0!==this.agentRef.init.performance.resources.asset_types?.length&&this.reportSupportabilityMetric(e+"Resources/AssetTypes/Changed"),0!==this.agentRef.init.performance.resources.first_party_domains?.length&&this.reportSupportabilityMetric(e+"Resources/FirstPartyDomains/Changed"),!1===this.agentRef.init.performance.resources.ignore_newrelic&&this.reportSupportabilityMetric(e+"Resources/IgnoreNewrelic/Changed")}#B(e){e.rageClick&&this.reportSupportabilityMetric("UserAction/RageClick/Seen"),e.deadClick&&this.reportSupportabilityMetric("UserAction/DeadClick/Seen"),e.errorClick&&this.reportSupportabilityMetric("UserAction/ErrorClick/Seen")}}},8766:(e,t,i)=>{i.d(t,{setupAgentSession:()=>A});var r=i(1687),s=i(7836),n=i(3606),a=i(9566),o=i(944),c=i(3304),h=i(9579),u=i(6154),d=i(2614),l=i(2843),p=i(6389);class f extends h.M{constructor(e,t){super(e,t),this.onPause="function"==typeof e.onPause?e.onPause:()=>{},this.onRefresh="function"==typeof e.onRefresh?e.onRefresh:()=>{},this.onResume="function"==typeof e.onResume?e.onResume:()=>{},this.readStorage=e.readStorage,this.remainingMs=void 0,e.refreshEvents||(e.refreshEvents=["click","keydown","scroll"]);try{this.abortController=new AbortController}catch(e){}if(u.RI&&e.ee){if(e.ee){this.ee=e.ee;const t=(0,p.s)(this.refresh.bind(this),500,{leading:!0});this.refreshHandler=i=>{e.refreshEvents.includes(i?.[0]?.type)&&t()},e.ee.on("fn-end",this.refreshHandler)}(0,l.u)(e=>{"hidden"===e?this.pause():this.resume()},!1,!1,this.abortController?.signal)}}abort(){this.clear(),this.abortController?.abort(),this.refreshHandler&&(this.ee.removeEventListener("fn-end",this.refreshHandler),this.refreshHandler=this.ee=null)}pause(){this.onPause(),clearTimeout(this.timer),this.remainingMs=this.initialMs-(Date.now()-this.startTimestamp)}resume(){try{const t=this.readStorage(),i="string"==typeof t?JSON.parse(t):t;e(i.expiresAt)||e(i.inactiveAt)?this.end():(this.refresh(),this.onResume())}catch(e){this.end()}function e(e){return Date.now()>e}}refresh(e,t){this.clear(),this.timer=this.create(e,t),this.startTimestamp=Date.now(),this.remainingMs=void 0,this.onRefresh()}}var g=i(8139),m=i(8122),v=i(9908),y=i(8154),b=i(860),S=i(3878),T=i(993);const R={value:"",inactiveAt:0,expiresAt:0,updatedAt:Date.now(),sessionReplayMode:d.g.OFF,sessionReplaySentFirstChunk:!1,sessionTraceMode:d.g.OFF,traceHarvestStarted:!1,loggingMode:T.A$.OFF,serverTimeDiff:null,custom:{},numOfResets:0};class w{constructor(e){const{agentIdentifier:t,key:i,storage:r}=e;if(!t||!i||!r)throw new Error("Missing required field(s):".concat(t?"":" agentID").concat(i?"":" key").concat(r?"":" storage"));this.agentIdentifier=t,this.storage=r,this.state={},this.key=i,this.ee=s.ee.get(t),(0,g.u)(this.ee),this.setup(e),u.RI&&(0,S.sp)("storage",e=>{if(e.key===this.lookupKey){const t="string"==typeof e.newValue?JSON.parse(e.newValue):e.newValue;this.sync(t),this.ee.emit(d.tS.UPDATE,[d.iL.CROSS_TAB,this.state])}})}setup({value:e=(0,a.LA)(16),expiresMs:t=d.wk,inactiveMs:i=d.BB,numOfResets:r=0}){const s={serverTimeDiff:this.state.serverTimeDiff||R.serverTimeDiff};this.state={},this.sync({...R,...s}),this.state.value=e,this.expiresMs=t,this.inactiveMs=i;const n=this.read();t?(this.state.expiresAt=n?.expiresAt||this.getFutureTimestamp(t),this.state.numOfResets=n?.numOfResets||r,this.expiresTimer=new h.M({onEnd:()=>{this.collectSM("expired"),this.collectSM("duration"),this.reset()}},this.state.expiresAt-Date.now())):this.state.expiresAt=1/0,i?(this.state.inactiveAt=n?.inactiveAt||this.getFutureTimestamp(i),this.inactiveTimer=new f({onEnd:()=>{this.collectSM("inactive"),this.collectSM("duration"),this.reset()},onRefresh:this.refresh.bind(this),onResume:()=>{this.ee.emit(d.tS.RESUME)},onPause:()=>{this.initialized&&this.ee.emit(d.tS.PAUSE),this.write((0,m.a)(this.state,R))},ee:this.ee,refreshEvents:["click","keydown","scroll"],readStorage:()=>this.storage.get(this.lookupKey)},this.state.inactiveAt-Date.now())):this.state.inactiveAt=1/0,this.isNew||=!Object.keys(n).length,this.isNew?this.write((0,m.a)(this.state,R),!0):this.sync(n),this.initialized=!0,this.ee.emit(d.tS.STARTED,[this.isNew])}get lookupKey(){return"".concat(d.H3,"_").concat(this.key)}sync(e){Object.assign(this.state,e)}read(){try{const e=this.storage.get(this.lookupKey);if(!e)return{};const t="string"==typeof e?JSON.parse(e):e;return this.isInvalid(t)?{}:this.isExpired(t.expiresAt)?(this.collectSM("expired"),this.collectSM("duration",t,!0),this.reset()):this.isExpired(t.inactiveAt)?(this.collectSM("inactive"),this.collectSM("duration",t,!0),this.reset()):t}catch(e){return(0,o.R)(10,e),{}}}write(e){try{if(!e||"object"!=typeof e)return;return e.updatedAt=Date.now(),this.sync(e),this.storage.set(this.lookupKey,(0,c.A)(this.state)),this.ee.emit(d.tS.UPDATE,[d.iL.SAME_TAB,this.state]),e}catch(e){return(0,o.R)(11,e),null}}reset(){try{return this.initialized&&(this.ee.emit(d.tS.RESET),this.state.numOfResets++),this.storage.remove(this.lookupKey),this.inactiveTimer?.abort?.(),this.expiresTimer?.clear?.(),delete this.isNew,this.setup({agentIdentifier:this.agentIdentifier,key:this.key,storage:this.storage,expiresMs:this.expiresMs,inactiveMs:this.inactiveMs,numOfResets:this.state.numOfResets}),this.read()}catch(e){return{}}}refresh(){const e=this.read();this.write({...e,inactiveAt:this.getFutureTimestamp(this.inactiveMs)})}isExpired(e){return Date.now()>e}isInvalid(e){return!Object.keys(R).every(t=>Object.keys(e).includes(t))}collectSM(e,t,i){let r,s;"duration"===e&&(r=this.getDuration(t,i),s="Session/Duration/Ms"),"expired"===e&&(s="Session/Expired/Seen"),"inactive"===e&&(s="Session/Inactive/Seen"),s&&(0,v.p)(y.xV,[s,r],void 0,b.K7.metrics,this.ee)}getDuration(e=this.state,t){const i=e.expiresAt-this.expiresMs;return(t?Date.now():e.updatedAt)-i}getFutureTimestamp(e){return Date.now()+e}syncCustomAttribute(e,t){if(u.RI)if(null===t){const t=this.read();t.custom&&(delete t.custom[e],this.write({...t}))}else{const i=this.read();this.custom={...i?.custom||{},[e]:t},this.write({...i,custom:this.custom})}}}class E{get(e){try{return localStorage.getItem(e)||void 0}catch(e){return""}}set(e,t){try{return null==t?this.remove(e):localStorage.setItem(e,t)}catch(e){}}remove(e){try{localStorage.removeItem(e)}catch(e){}}}var N=i(2555);function A(e){if(e.runtime.session)return e.runtime.session;const t=e.init.session;e.runtime.session=new w({agentIdentifier:e.agentIdentifier,key:d.uh,storage:new E,expiresMs:t?.expiresMs,inactiveMs:t?.inactiveMs});const i=e.runtime.session.state.custom;i&&Object.keys(i).length&&(e.info=(0,N.D)({...e.info,jsAttributes:{...i,...e.info.jsAttributes}})),e.runtime.jsAttributesMetadata=function(e,t){const i=e[t]??={},r={bytes:Object.keys(i).reduce((e,t)=>e+t.length+(0,c.A)(i[t]).length,0)};return e[t]=new Proxy(i,{set:(e,t,i)=>(r.bytes+=t.length+(0,c.A)(i).length,e[t]=i,!0),deleteProperty:(e,t)=>(r.bytes-=t.length+(0,c.A)(e[t]).length,delete e[t])}),r}(e.info,"jsAttributes");const a=s.ee.get(e.agentIdentifier);return(0,n.i)("api-setCustomAttribute",(t,i,r)=>{e.runtime.session.syncCustomAttribute(i,r)},"session",a),(0,n.i)("api-setUserId",(t,i,r)=>{e.runtime.session.syncCustomAttribute(i,r)},"session",a),(0,r.Ze)(e.agentIdentifier,"session"),e.runtime.session}},8771:(e,t,i)=>{i.d(t,{Z:()=>n});var r=i(3304),s=i(7699);class n{#U=[];#z=0;#K;#q;constructor(e=s.It,t){this.maxPayloadSize=e,this.featureAgg=t}get length(){return this.#U.length}isEmpty(){return 0===this.#U.length}get(){return this.#U}byteSize(){return this.#z}wouldExceedMaxSize(e){return this.#z+e>this.maxPayloadSize}add(e,t){const i=t||(0,r.A)(e)?.length||0;if(this.#z+i>this.maxPayloadSize){const e=e=>"EventBuffer/".concat(e,"/Dropped/Bytes");return this.featureAgg?.reportSupportabilityMetric(e(this.featureAgg.featureName),i),this.featureAgg?.reportSupportabilityMetric(e("Combined"),i),!1}return this.#U.push(e),this.#z+=i,this.featureAgg?.decideEarlyHarvest(),!0}merge(e,t){if(this.isEmpty()||!e)return!1;const i=this.#U.findIndex(e);return!(i<0)&&(this.#U[i]={...this.#U[i],...t},!0)}clear(e={}){void 0!==e.clearBeforeTime&&e.timestampKey?this.#U=this.#U.filter(t=>t[e.timestampKey]>=e.clearBeforeTime):void 0!==e.clearBeforeIndex?this.#U=this.#U.slice(e.clearBeforeIndex):this.#U=[],this.#z=this.#U.length&&(0,r.A)(this.#U)?.length||0}save(){this.#K=this.#U,this.#q=this.#z}clearSave(){this.#K=void 0,this.#q=void 0}reloadSave(){this.#K&&(this.#q+this.#z>this.maxPayloadSize||(this.#U=[...this.#K,...this.#U],this.#z=this.#q+this.#z))}}},8779:(e,t,i)=>{i.d(t,{j:()=>o});var r=i(6154),s=i(1083),n=i(6773),a=i(7226);const o=new n.x(s.w.TIME_TO_FIRST_BYTE);if(r.RI&&"undefined"!=typeof PerformanceNavigationTiming&&!r.OF&&window===window.parent)(0,a.Ck)(({value:e,attribution:t})=>{o.isValid||o.update({value:e,attrs:{navigationEntry:t.navigationEntry}})});else if(!o.isValid){const e={};for(let t in r.gm?.performance?.timing||{})e[t]=Math.max(r.gm?.performance?.timing[t]-r.WN,0);o.update({value:e.responseStart,attrs:{navigationEntry:e}})}},9119:(e,t,i)=>{i.d(t,{L:()=>n});var r=/([^?#]*)[^#]*(#[^?]*|$).*/,s=/([^?#]*)().*/;function n(e,t){return e?e.replace(t?r:s,"$1$2"):e}},9579:(e,t,i)=>{i.d(t,{M:()=>r});class r{constructor(e,t){if(!e.onEnd)throw new Error("onEnd handler is required");if(!t)throw new Error("ms duration is required");this.onEnd=e.onEnd,this.initialMs=t,this.startTimestamp=Date.now(),this.timer=this.create(this.onEnd,t)}create(e,t){return this.timer&&this.clear(),setTimeout(()=>e?e():this.onEnd(),t||this.initialMs)}clear(){clearTimeout(this.timer),this.timer=null}end(){this.clear(),this.onEnd()}isValid(){return this.initialMs-(Date.now()-this.startTimestamp)>0}}},9917:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>R});var r=i(5519),s=i(3606),n=i(9908),a=i(782),o=i(860),c=i(1630),h=i(7226),u=i(1083),d=i(6773),l=i(6154);const p=new d.x(u.w.CUMULATIVE_LAYOUT_SHIFT,e=>e);l.RI&&(0,h.IN)(({value:e,attribution:t,id:i})=>{const r={metricId:i,largestShiftTarget:t.largestShiftTarget,largestShiftTime:t.largestShiftTime,largestShiftValue:t.largestShiftValue,loadState:t.loadState};p.update({value:e,attrs:r})},{reportAllChanges:!0});var f=i(5344),g=i(5181);const m=new d.x(u.w.INTERACTION_TO_NEXT_PAINT);l.RI&&(0,h.rH)(({value:e,attribution:t,id:i})=>{const r={metricId:i,eventTarget:t.interactionTarget,eventTime:t.interactionTime,interactionTarget:t.interactionTarget,interactionTime:t.interactionTime,interactionType:t.interactionType,inputDelay:t.inputDelay,nextPaintTime:t.nextPaintTime,processingDuration:t.processingDuration,presentationDelay:t.presentationDelay,loadState:t.loadState};m.update({value:e,attrs:r})});var v=i(9119);const y=new d.x(u.w.LARGEST_CONTENTFUL_PAINT);l.RI&&(0,h.fK)(({value:e,attribution:t})=>{if(l.mw||y.isValid)return;let i;const r=t.lcpEntry;r&&(i={size:r.size,eid:r.id,element:t.element,timeToFirstByte:t.timeToFirstByte,resourceLoadDelay:t.resourceLoadDelay,resourceLoadDuration:t.resourceLoadDuration,resourceLoadTime:t.resourceLoadDuration,elementRenderDelay:t.elementRenderDelay,...t.navigationEntry&&{pageUrl:(0,v.L)(t.navigationEntry.name)}},t.url&&(i.elUrl=(0,v.L)(t.url)),r.element?.tagName&&(i.elTag=r.element.tagName)),y.update({value:e,attrs:i})});var b=i(8779),S=i(2843),T=i(1528);class R extends c.r{static featureName=a.T;#G=({name:e,value:t,attrs:i})=>{this.addTiming(e,t,i)};constructor(e){super(e,a.T),this.curSessEndRecorded=!1,this.firstIxnRecorded=!1,super.customAttributesAreSeparate=!0,(0,s.i)("docHidden",e=>this.endCurrentSession(e),this.featureName,this.ee),(0,s.i)("winPagehide",e=>this.addTiming("unload",e,null),this.featureName,this.ee),this.waitForFlags([]).then(()=>{g.J.subscribe(this.#G),f.j.subscribe(this.#G),y.subscribe(this.#G),m.subscribe(this.#G),b.j.subscribe(({attrs:e})=>{this.addTiming("load",Math.round(e.navigationEntry.loadEventEnd))}),(0,S.u)(()=>{const{name:e,value:t,attrs:i}=p.current;void 0!==t&&this.addTiming(e,1e3*t,i)},!0,!0),this.drain()})}endCurrentSession(e){this.curSessEndRecorded||(this.addTiming("pageHide",e,null),this.curSessEndRecorded=!0)}addTiming(e,t,i){(function(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!t)return;t.type&&(e["net-type"]=t.type);t.effectiveType&&(e["net-etype"]=t.effectiveType);t.rtt&&(e["net-rtt"]=t.rtt);t.downlink&&(e["net-dlink"]=t.downlink)})(i=i||{}),e!==u.w.CUMULATIVE_LAYOUT_SHIFT&&p.current.value>=0&&(i.cls=p.current.value);const r={name:e,value:t,attrs:i};return this.events.add(r),(0,n.p)("pvtAdded",[e,t,i],void 0,o.K7.sessionTrace,this.ee),this.checkForFirstInteraction(),r}checkForFirstInteraction(){if(this.firstIxnRecorded||l.mw||!performance)return;const e=performance.getEntriesByType("first-input")[0];e&&(this.firstIxnRecorded=!0,this.addTiming("fi",e.startTime,{type:e.name,eventTarget:(0,T.t)(e.target),loadState:document.readyState}))}appendGlobalCustomAttributes(e){var t=e.attrs||{},i=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];Object.entries(this.agentRef.info.jsAttributes||{}).forEach(([e,r])=>{i.indexOf(e)<0&&(t[e]=r)})}preHarvestChecks(){return this.checkForFirstInteraction(),super.preHarvestChecks()}serializer(e){if(!e?.length)return"";for(var t=(0,r.uJ)(this.agentRef.runtime.obfuscator),i="bel.6;",s=0;s0&&(i+=(0,r.sH)(a.length)+";"+a.join(";")),s+1