/*! For license information please see nr-spa-1.248.0.min.js.LICENSE.txt */ "use strict";(self["webpackChunk:NRBA-1.248.0.PROD"]=self["webpackChunk:NRBA-1.248.0.PROD"]||[]).push([[111],{9139:(e,t,i)=>{let s;i.d(t,{m:()=>r});const n=new Promise((e=>{s=e})),r=Object.freeze({onReplayReady:s,sessionReplayInitialized:n})},1199:(e,t,i)=>{i.d(t,{R:()=>r,z:()=>n});var s=[];function n(e){if(0===s.length)return!0;if(void 0===e.hostname)return!1;for(var t=0;t0?(r=i.substring(0,n),a=i.substring(n)):(r=i,a="");let[o]=r.split(":");s.push({hostname:o,pathname:a})}}function a(e,t){return!(e.length>t.length)&&t.indexOf(e)===t.length-e.length}function o(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}},2573:(e,t,i)=>{i.d(t,{o:()=>c});var s=i(4247),n=i(1117),r=i(6291),a=i(8310),o=i(3860);class c extends n.w{constructor(e,t,i){super(i),this.endpoint=e,this.opts=t||{},this.started=!1,this.timeoutHandle=null,this.aborted=!1,this.harvest=new r.M(this.sharedContext),(0,a.L)(this.unload.bind(this)),this.sharedContext?.ee.on(o.wO.RESET,(()=>this.runHarvest({forceNoRetry:!0})))}unload(){this.aborted||(this.opts.onUnload&&this.opts.onUnload(),this.runHarvest({unload:!0}))}startTimer(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}stopTimer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.aborted=e,this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}scheduleHarvest(e,t){this.timeoutHandle||(null==e&&(e=this.interval),this.timeoutHandle=setTimeout((()=>{this.timeoutHandle=null,this.runHarvest(t)}),1e3*e))}runHarvest(e){if(this.aborted)return;const t=t=>{e?.forceNoRetry&&(t.retry=!1),this.onHarvestFinished(e,t)};let i,n,r=[];if(this.opts.getPayload){if(i=s.qD({isFinalHarvest:e?.unload}),!i)return!1;const t=!e?.unload&&i===s.Be;if(n=this.opts.getPayload({retry:t}),!n)return void(this.started&&this.scheduleHarvest());n="[object Array]"===Object.prototype.toString.call(n)?n:[n],r.push(...n)}let a=e=>this.harvest.sendX(e);r.length?a=this.opts.raw?e=>this.harvest._send(e):e=>this.harvest.send(e):r.push(void 0),r.forEach((s=>{a({endpoint:this.endpoint,payload:s,opts:e,submitMethod:i,cbFinished:t,customUrl:this.opts.customUrl,raw:this.opts.raw})})),this.started&&this.scheduleHarvest()}onHarvestFinished(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){const i=t.delay||this.opts.retryDelay;this.started&&i?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(i,e)):!this.started&&i&&this.scheduleHarvest(i,e)}}}},6291:(e,t,i)=>{i.d(t,{M:()=>y});var s=i(4420),n=i(4351),r=i(4247);function a(){return""+location}var o=i(234),c=i(4222),h=i(7894),u=i(3239),d=i(6141);function l(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return e&&"object"==typeof e?(Object.keys(e).forEach((n=>{"object"==typeof e[n]?l(e[n],t,i,s):typeof e[n]!==i||s.includes(n)||(e[n]=t(e[n]))})),e):e}var f=i(1117),p=i(6818),m=i(385),g=i(50);const v={};class y extends f.w{constructor(e){super(e),this.tooManyRequestsDelay=(0,o.Mt)(this.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,this.obfuscator=new d.RR(this.sharedContext),this._events={}}sendX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=r.qD({isFinalHarvest:e.opts?.unload}),i={retry:!e.opts?.unload&&t===r.Be,isFinalHarvest:!0===e.opts?.unload},s=this.createPayload(e.endpoint,i);return(this.obfuscator.shouldObfuscate()?this.obfuscateAndSend.bind(this):this._send.bind(this))({...e,payload:s,submitMethod:t})}send(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(this.obfuscator.shouldObfuscate()?this.obfuscateAndSend.bind(this):this._send.bind(this))(e)}obfuscateAndSend(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{payload:i={}}=t;return l(i,(function(){return e.obfuscator.obfuscateString(...arguments)}),"string",["e"]),this._send({...t,payload:i})}_send(e){let{endpoint:t,payload:i={},opts:a={},submitMethod:c,cbFinished:h,customUrl:d,raw:l,includeBaseParams:f=!0}=e;const p=(0,o.C5)(this.sharedContext.agentIdentifier);if(!p.errorBeacon)return!1;const y=(0,o.OP)(this.sharedContext.agentIdentifier);let{body:b,qs:T}=this.cleanPayload(i);if(0===Object.keys(b).length&&!a?.sendEmptyBody)return h&&h({sent:!1}),!1;const S=(0,o.P_)(this.sharedContext.agentIdentifier),w=!1===S.ssl?"http":"https",N=S.proxy.beacon||p.errorBeacon,R="rum"!==t?"/".concat(t):"";let E="".concat(w,"://").concat(N).concat(R,"/1/").concat(p.licenseKey);d&&(E=d),l&&(E="".concat(w,"://").concat(N,"/").concat(t));const A=!l&&f?this.baseQueryString():"";let I=(0,s.j6)(T,y.maxBytes);c||(c=r.qD({isFinalHarvest:a.unload})),""===A&&I.startsWith("&")&&(I=I.substring(1));const O="".concat(E,"?").concat(A).concat(I);!!T?.attributes?.includes("gzip")||(b="events"===t?b.e:(0,n.P)(b),b.length>75e4&&1===(v[t]=(v?.[t]||0)+1)&&(0,g.Z)("The Browser Agent is attempting to send a very large payload to /".concat(t,". This is usually tied to large amounts of custom attributes. Please check your configurations."))),b&&0!==b.length&&"{}"!==b&&"[]"!==b||(b="");const P=[];P.push({key:"content-type",value:"text/plain"});let M=c({url:O,body:b,sync:a.unload&&(m.v6||m.w1),headers:P});if(!a.unload&&h&&c===r.Be){const e=this;M.addEventListener("load",(function(){const t={sent:!0,status:this.status};429===this.status?(t.retry=!0,t.delay=e.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(t.retry=!0),a.needResponse&&(t.responseText=this.responseText),h(t)}),(0,u.m$)(!1))}return M}baseQueryString(){const e=(0,o.OP)(this.sharedContext.agentIdentifier),t=(0,o.C5)(this.sharedContext.agentIdentifier),i=(0,c.f)(a()),n=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(i):i;return["a="+t.applicationID,(0,s.wu)("sa",t.sa?""+t.sa:""),(0,s.wu)("v",p.q4),b(t),(0,s.wu)("ct",e.customTransaction),"&rst="+(0,h.z)(),"&ck=0","&s="+(e.session?.state.value||"0"),(0,s.wu)("ref",n),(0,s.wu)("ptid",e.ptid?""+e.ptid:"")].join("")}createPayload(e,t){const i=this._events[e],s={body:{},qs:{}};if(Array.isArray(i)&&i.length>0)for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};const t=e=>"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||Array.isArray(e)?e:"string"==typeof e?e.length>0?e:null:Object.entries(e||{}).reduce(((e,t)=>{let[i,s]=t;return("number"==typeof s||"string"==typeof s&&s.length>0||"object"==typeof s&&Object.keys(s||{}).length>0)&&(e[i]=s),e}),{});return{body:t(e.body),qs:t(e.qs)}}on(e,t){Array.isArray(this._events[e])||(this._events[e]=[]),this._events[e].push(t)}}function b(e){return e.transactionName?(0,s.wu)("to",e.transactionName):(0,s.wu)("t",e.tNamePlain||"Unnamed Transaction")}},214:(e,t,i)=>{i.d(t,{AG:()=>c,FX:()=>u,n1:()=>d,uR:()=>h});var s=i(1284),n=i(4351),r=i(6141),a=Object.prototype.hasOwnProperty,o=64;function c(e,t,i){return e||0===e||""===e?t(e)+(i?",":""):"!"}function h(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function u(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},i=0;return function(s){if(void 0===s||""===s)return"";var n=new r.RR({agentIdentifier:e});s=String(s),n.shouldObfuscate()&&(s=n.obfuscateString(s));return a.call(t,s)?h(t[s],!0):(t[s]=i++,function(e){return"'"+e.replace(l,"\\$1")}(s))}}function d(e,t){var i=[];return(0,s.D)(e,(function(e,s){if(!(i.length>=o)){var r,a=5;switch(e=t(e),typeof s){case"object":s?r=t((0,n.P)(s)):a=9;break;case"number":a=6,r=s%1?s:s+".";break;case"boolean":a=s?7:8;break;case"undefined":a=9;break;default:r=t(s)}i.push([a,e+(r?","+r:"")])}})),i}var l=/([,\\;])/g},3860:(e,t,i)=>{i.d(t,{IK:()=>b,wO:()=>S,uT:()=>w,$s:()=>N});var s=i(4402),n=i(50),r=i(4351),a=i(8325);class o{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}}var c=i(385),h=i(7056),u=i(7956),d=i(7872);class l extends o{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.remainingMs=void 0,e.refreshEvents||(e.refreshEvents=["click","keydown","scroll"]);try{this.abortController=new AbortController}catch(e){}if(c.il&&e.ee){if(e.ee){this.ee=e.ee;const t=(0,d.D)(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,u.N)((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(){this.refresh(),this.onResume()}refresh(e,t){this.clear(),this.timer=this.create(e,t),this.startTimestamp=Date.now(),this.remainingMs=void 0,this.onRefresh()}}var f=i(1214),p=i(9567),m=i(5546),g=i(3081),v=i(3325),y=i(3239);const b={OFF:0,FULL:1,ERROR:2},T={value:"",inactiveAt:0,expiresAt:0,updatedAt:Date.now(),sessionReplayMode:b.OFF,sessionReplaySentFirstChunk:!1,sessionTraceMode:b.OFF,traceHarvestStarted:!1,custom:{}},S={PAUSE:"session-pause",RESET:"session-reset",RESUME:"session-resume",UPDATE:"session-update"},w={SAME_TAB:"same-tab",CROSS_TAB:"cross-tab"};class N{constructor(e){const{agentIdentifier:t,key:i,storage:s}=e;if(!t||!i||!s)throw new Error("Missing required field(s):".concat(t?"":" agentID").concat(i?"":" key").concat(s?"":" storage"));this.agentIdentifier=t,this.storage=s,this.state={},this.key=i,this.ee=a.ee.get(t),(0,f.em)(this.ee),this.setup(e),c.il&&(0,y.bP)("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(S.UPDATE,[w.CROSS_TAB,this.state])}}))}setup(e){let{value:t=(0,s.ky)(16),expiresMs:i=h.oD,inactiveMs:n=h.Hb}=e;this.state={},this.sync(T),this.state.value=t,this.expiresMs=i,this.inactiveMs=n;const r=this.read();i?(this.state.expiresAt=r?.expiresAt||this.getFutureTimestamp(i),this.expiresTimer=new o({onEnd:()=>{this.collectSM("expired"),this.collectSM("duration"),this.reset()}},this.state.expiresAt-Date.now())):this.state.expiresAt=1/0,n?(this.state.inactiveAt=r?.inactiveAt||this.getFutureTimestamp(n),this.inactiveTimer=new l({onEnd:()=>{this.collectSM("inactive"),this.collectSM("duration"),this.reset()},onRefresh:this.refresh.bind(this),onResume:()=>{this.ee.emit(S.RESUME)},onPause:()=>{this.initialized&&this.ee.emit(S.PAUSE),this.write((0,p.D)(this.state,T))},ee:this.ee,refreshEvents:["click","keydown","scroll"]},this.state.inactiveAt-Date.now())):this.state.inactiveAt=1/0,this.isNew=!Object.keys(r).length,this.isNew?this.write((0,p.D)(this.state,T),!0):this.sync(r),this.initialized=!0}get lookupKey(){return"".concat(h.Bq,"_").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,n.Z)("Failed to read from storage API",e),{}}}write(e){try{if(!e||"object"!=typeof e)return;return e.updatedAt=Date.now(),this.sync(e),this.storage.set(this.lookupKey,(0,r.P)(this.state)),this.ee.emit(S.UPDATE,[w.SAME_TAB,this.state]),e}catch(e){return(0,n.Z)("Failed to write to the storage API",e),null}}reset(){try{return this.initialized&&this.ee.emit(S.RESET),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}),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(T).every((t=>Object.keys(e).includes(t)))}collectSM(e,t,i){let s,n;"duration"===e&&(s=this.getDuration(t,i),n="Session/Duration/Ms"),"expired"===e&&(n="Session/Expired/Seen"),"inactive"===e&&(n="Session/Inactive/Seen"),n&&(0,m.p)(g.xS,[n,s],void 0,v.D.metrics,this.ee)}getDuration(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state,t=arguments.length>1?arguments[1]:void 0;const i=e.expiresAt-this.expiresMs;return(t?Date.now():e.updatedAt)-i}getFutureTimestamp(e){return Date.now()+e}syncCustomAttribute(e,t){if(c.il)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})}}}},5998:(e,t,i)=>{i.d(t,{uB:()=>m,wu:()=>p,zJ:()=>f});var s="Start",n="End",r="unloadEvent",a="redirect",o="domainLookup",c="onnect",h="request",u="response",d="loadEvent",l="domContentLoadedEvent",f=[];function p(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t)return i.of=e,g(i.of,i,"n",!0),g(t[r+s],i,"u",f),g(t[a+s],i,"r",f),g(t[r+n],i,"ue",f),g(t[a+n],i,"re",f),g(t["fetch"+s],i,"f",f),g(t[o+s],i,"dn",f),g(t[o+n],i,"dne",f),g(t["c"+c+s],i,"c",f),g(t["secureC"+c+"ion"+s],i,"s",f),g(t["c"+c+n],i,"ce",f),g(t[h+s],i,"rq",f),g(t[u+s],i,"rp",f),g(t[u+n],i,"rpe",f),g(t.domLoading,i,"dl",f),g(t.domInteractive,i,"di",f),g(t[l+s],i,"ds",f),g(t[l+n],i,"de",f),g(t.domComplete,i,"dc",f),g(t[d+s],i,"l",f),g(t[d+n],i,"le",f),i}function m(e,t){var i;return g("number"==typeof(i=e.type)?i:{navigate:void 0,reload:1,back_forward:2,prerender:3}[i],t,"ty"),g(e.redirectCount,t,"rc"),t}function g(e,t,i,s){if("number"==typeof e&&e>0){if(s){const i=t?.of>0?t.of:0;e=Math.max(e-i,0)}e=Math.round(e),t[i]=e}f.push(e)}},8310:(e,t,i)=>{i.d(t,{L:()=>a});var s=i(3239),n=i(385),r=i(7956);if(n.v6){n._A.cleanupTasks=[];const e=n._A.close;n._A.close=()=>{for(let e of n._A.cleanupTasks)e();e()}}function a(e){n.il?((0,r.N)(e,!0),(0,s.bP)("pagehide",e)):n.v6&&n._A.cleanupTasks.push(e)}},4222:(e,t,i)=>{i.d(t,{f:()=>r});var s=/([^?#]*)[^#]*(#[^?]*|$).*/,n=/([^?#]*)().*/;function r(e,t){return e.replace(t?s:n,"$1$2")}},4420:(e,t,i)=>{i.d(t,{j6:()=>u,wu:()=>d});var s=i(1284),n=i(4351),r={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},a=(0,s.D)(r,(function(e){return e})),o=new RegExp(a.join("|"),"g");function c(e){return r[e]}function h(e){return null==e?"null":encodeURIComponent(e).replace(o,c)}function u(e,t){var i=0,r="";return(0,s.D)(e,(function(e,s){var a,o,c=[];if("string"==typeof s||!Array.isArray(s)&&null!=s&&s.toString().length)a="&"+e+"="+h(s),i+=a.length,r+=a;else if(Array.isArray(s)&&s.length){for(i+=9,o=0;o=t));o++)c.push(a);r+="&"+e+"=%5B"+c.join(",")+"%5D"}})),r}function d(e,t){return t&&"string"==typeof t?"&"+e+"="+h(t):""}},2271:(e,t,i)=>{i.d(t,{V:()=>n});var s=i(385);function n(){return Boolean("file:"===s._A?.location?.protocol)}},7872:(e,t,i)=>{function s(e){var t=this;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=s?.leading||!1;let r;return function(){for(var s=arguments.length,a=new Array(s),o=0;o{r=clearTimeout(r)}),i)),n||(clearTimeout(r),r=setTimeout((()=>{e.apply(t,a)}),i))}}function n(e){var t=this;let i=!1;return function(){if(!i){i=!0;for(var s=arguments.length,n=new Array(s),r=0;rs,Z:()=>n})},6141:(e,t,i)=>{i.d(t,{$c:()=>h,Ng:()=>u,RR:()=>c});var s=i(234),n=i(1117),r=i(2271),a=i(50),o={regex:/^file:\/\/(.*)/,replacement:atob("ZmlsZTovL09CRlVTQ0FURUQ=")};class c extends n.w{shouldObfuscate(){return h(this.sharedContext.agentIdentifier).length>0}obfuscateString(e){if(!e||"string"!=typeof e)return e;for(var t=h(this.sharedContext.agentIdentifier),i=e,s=0;s{i.d(t,{Be:()=>r,qD:()=>n});var s=i(385);function n(){let{isFinalHarvest:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&s.il&&s.Nk?a:r}function r(e){let{url:t,body:i=null,sync:s,method:n="POST",headers:r=[{key:"content-type",value:"text/plain"}]}=e;const a=new XMLHttpRequest;a.open(n,t,!s);try{"withCredentials"in a&&(a.withCredentials=!0)}catch(e){}return r.forEach((e=>{a.setRequestHeader(e.key,e.value)})),a.send(i),a}function a(e){let{url:t,body:i}=e;try{return window.navigator.sendBeacon.bind(window.navigator)(t,i)}catch(e){return!1}}},8158:(e,t,i)=>{i.d(t,{S:()=>s});const s={FIRST_PAINT:"fp",FIRST_CONTENTFUL_PAINT:"fcp",FIRST_INPUT_DELAY:"fi",LARGEST_CONTENTFUL_PAINT:"lcp",CUMULATIVE_LAYOUT_SHIFT:"cls",INTERACTION_TO_NEXT_PAINT:"inp",LONG_TASK:"lt",TIME_TO_FIRST_BYTE:"ttfb"}},6069:(e,t,i)=>{i.d(t,{y:()=>a});var s=i(8085),n=i(385),r=i(8158);const a=new(i(2094).U)(r.S.FIRST_CONTENTFUL_PAINT);if(n.il)if(n.ux)try{if(!n.iS){const e=performance.getEntriesByType("paint");e.forEach((t=>{"first-contentful-paint"===t.name&&a.update({value:Math.floor(t.startTime),entries:e})}))}}catch(e){}else(0,s.a4)((e=>{let{value:t,entries:i}=e;n.iS||a.isValid||a.update({value:t,entries:i})}))},8373:(e,t,i)=>{i.d(t,{U:()=>r});var s=i(385),n=i(8158);const r=new(i(2094).U)(n.S.FIRST_PAINT);if(s.il){const e=e=>{e.forEach((i=>{"first-paint"!==i.name||r.isValid||(t.disconnect(),r.update({value:i.startTime,entries:e}))}))};let t;try{PerformanceObserver.supportedEntryTypes.includes("paint")&&!s.iS&&(t=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))})),t.observe({type:"paint",buffered:!0}))}catch(e){}}},4806:(e,t,i)=>{i.d(t,{P:()=>o});var s=i(385),n=i(8158),r=i(2094),a=i(8085);const o=new r.U(n.S.TIME_TO_FIRST_BYTE);if(s.il&&"undefined"!=typeof PerformanceNavigationTiming&&!s.Tt)(0,a.mr)((e=>{let{value:t,entries:i}=e;o.isValid||o.update({value:t,entries:i})}));else if(!o.isValid){const e={};for(let t in s._A?.performance?.timing||{})e[t]=Math.max(s._A?.performance?.timing[t]-s.cv,0);o.update({value:e.responseStart,entries:[e]})}},2094:(e,t,i)=>{i.d(t,{U:()=>s});class s{#e=new Set;history=[];constructor(e,t){this.name=e,this.attrs={},this.roundingMethod="function"==typeof t?t:Math.floor}update(e){let{value:t,entries:i=[],attrs:s={}}=e;if(t<0)return;const n={value:this.roundingMethod(t),name:this.name,entries:i,attrs:s};this.history.push(n),this.#e.forEach((e=>{try{e(this.current)}catch(e){}}))}get current(){return this.history[this.history.length-1]||{value:void 0,name:this.name,entries:[],attrs:{}}}get isValid(){return this.current.value>=0}subscribe(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("function"==typeof e)return this.#e.add(e),this.isValid&&t&&this.history.forEach((t=>{e(t)})),()=>{this.#e.delete(e)}}}},4034:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>y});var s=i(4322),n=i(4351),r=i(214),a=i(5546),o=i(234),c=i(2573),h=i(1199),u=i(7825),d=i(3325),l=i(3081),f=i(2222);function p(){let{body:e,query:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e||t)try{const i=function(e){if(!e)return;Array.isArray(e)||(e=[e]);const t=[],i=[];for(let s of e){const e=m(s);e&&(t.push(e.operationName),i.push(e.operationType))}if(!i.length)return;return{operationName:t.join(","),operationType:i.join(","),operationFramework:"GraphQL"}}(g(e));if(i)return i;const s=m(function(e){if(!e||"string"!=typeof e)return;const t=new URLSearchParams(e);return g(Object.fromEntries(t))}(t));if(s)return s}catch(e){}}function m(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 g(e){let t;if(!e||"string"!=typeof e&&"object"!=typeof e)return;if(t="string"==typeof e?JSON.parse(e):e,i=t,i?.constructor!=={}.constructor&&!Array.isArray(t))return;var i;let s=!1;return s=Array.isArray(t)?t.some((e=>v(e))):v(t),s?t:void 0}function v(e){return!("object"!=typeof e||!e.query||"string"!=typeof e.query)}class y extends f.m{static featureName=u.t;constructor(e,t){super(e,t,u.t);const i=(0,o.P_)(e),f=!1!==i.ajax.enabled;if((0,s.X)("xhr",E,this.featureName,this.ee),!f)return void this.drain();const m=(0,o.OP)(e).denyList;(0,h.R)(m);let g=[],v={},y=[];const b=this.ee,T=i.ajax.harvestTimeSeconds||10,S=i.ajax.maxPayloadSize||1e6;this.storeXhr=E,this.prepareHarvest=A,this.getStoredEvents=function(){return{ajaxEvents:g,spaAjaxEvents:v}},b.on("interactionSaved",(e=>{v[e.id]&&delete v[e.id]})),b.on("interactionDiscarded",(e=>{v[e.id]&&(v[e.id].forEach((function(e){g.push(e)})),delete v[e.id])}));const w=new c.o("events",{onFinished:function(e){e.retry&&y.length>0&&(g.unshift(...y),y=[])},getPayload:A},this);b.on("drain-".concat(this.featureName),(()=>{w.startTimer(T)})),this.drain();const N=(0,o.C5)(e).errorBeacon,R=i.proxy.beacon;function E(e,i,s,r,o){var c;if(i.time=s,c=e.cat?(0,n.P)([e.status,e.cat]):(0,n.P)([e.status,e.host,e.pathname]),t.store("xhr",c,e,i),f)if((0,h.z)(e)){(0,a.p)("bstXhrAgg",["xhr",c,e,i],void 0,d.D.sessionTrace,b);var u=this,m={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:i.txSize,responseSize:i.rxSize,type:o,startTime:s,endTime:r,callbackDuration:i.cbTime};if(u.dt&&(m.spanId=u.dt.spanId,m.traceId=u.dt.traceId,m.spanTimestamp=u.dt.timestamp),m.gql=e.gql=p({body:this.body,query:this?.parsedOrigin?.search}),m.gql&&(0,a.p)(l.xS,["Ajax/Events/GraphQL/Bytes-Added",(0,n.P)(m.gql).length],void 0,d.D.metrics,b),this.spaNode){var y=this.spaNode.interaction.id;v[y]=v[y]||[],v[y].push(m)}else g.push(m)}else e.hostname===N||R&&e.hostname===R?(0,a.p)(l.xS,["Ajax/Events/Excluded/Agent"],void 0,d.D.metrics,b):(0,a.p)(l.xS,["Ajax/Events/Excluded/App"],void 0,d.D.metrics,b)}function A(e){if(e=e||{},0===g.length)return null;for(var t=I(g,e.maxPayloadSize||S),i=[],s=0;s0&&(a+=";"+c.join(";")),i+1e}}}}},1028:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>M});const s=/([a-z0-9]+)$/i;function n(e){if(!e)return;const t=e.match(s);return t?t[1]:void 0}var r=/^\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(r,"")}var o=i(385),c=i(4222);function h(e){if("string"!=typeof e)return"";const t=(0,c.f)(e);return t===(0,c.f)(o.FN)?"":t}var u=!1,d=/function (.+?)\s*\(/,l=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,f=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,p=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,m=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function g(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),s=t+": "+e.message+"\n at "+i;e.line&&(s+=":"+e.line,e.column&&(s+=":"+e.column));return{mode:"sourceline",name:t,message:e.message,stackString:s,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(f);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(p)||e.match(m)||"anonymous"===e)return{func:"evaluated code"}}(t);if(!i)return e.stackLines.push(t),e;var s;if((s=i.func)&&s.indexOf("nrWrapper")>=0&&(e.wrapperSeen=!0),!e.wrapperSeen){let s=h(i.url);s!==i.url&&(t=t.replace(i.url,s),i.url=s),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.onInteractionSaved(e))),this.ee.on("interactionDiscarded",(e=>this.onInteractionDiscarded(e))),(0,T.X)("err",(function(){return i.storeError(...arguments)}),this.featureName,this.ee),(0,T.X)("ierr",(function(){return i.storeError(...arguments)}),this.featureName,this.ee);const s=(0,E.Mt)(this.agentIdentifier,"jserrors.harvestTimeSeconds")||10,n=new S.o("jserrors",{onFinished:function(){return i.onHarvestFinished(...arguments)}},this);n.harvest.on("jserrors",(function(){return i.onHarvestStarted(...arguments)})),this.ee.on("drain-".concat(this.featureName),(()=>{this.blocked||n.startTimer(s)})),(0,T.X)("block-err",(()=>{this.blocked=!0,n.stopTimer(!0)}),this.featureName,this.ee),this.drain()}onHarvestStarted(e){var t=this.aggregator.take(["err","ierr","xhr"]);e.retry&&(this.currentBody=t);var i={body:t,qs:{}},s=(0,w.P)((0,E.OP)(this.agentIdentifier).releaseIds);return"{}"!==s&&(i.qs.ri=s),t&&t.err&&t.err.length&&!this.errorOnPage&&(i.qs.pve="1",this.errorOnPage=!0),i}onHarvestFinished(e){e.retry&&this.currentBody&&((0,R.D)(this.currentBody,((e,t)=>{for(var i=0;i65530?h.substr(0,65530):h,this.observedAt[u]=n.offset+t),c.releaseIds=(0,w.P)(n.releaseIds),this.pageviewReported[u]||(c.pageview=1,this.pageviewReported[u]=!0),n?.session?.state?.sessionReplayMode&&(c.hasReplay=!0),c.firstOccurrenceTimestamp=this.observedAt[u];var d=i?"ierr":"err",l={time:t};const f=[d,u,c,l];if((0,N.p)("errorAgg",f,void 0,O.D.sessionTrace,this.ee),(0,N.p)("errorAgg",f,void 0,O.D.spa,this.ee),(0,N.p)("errorAgg",f,void 0,O.D.sessionReplay,this.ee),!this.blocked){var p=(0,E.C5)(this.agentIdentifier).jsAttributes;if(null!=c._interactionId)this.errorCache[c._interactionId]=this.errorCache[c._interactionId]||[],this.errorCache[c._interactionId].push([d,u,c,l,p,s]);else{var m={};(0,R.D)(p,y),s&&(0,R.D)(s,y);var v=u+":"+b((0,w.P)(m));this.aggregator.store(d,v,c,l,m)}}function y(e,t){m[e]=t&&"object"==typeof t?(0,w.P)(t):t}}onInteractionSaved(e){this.errorCache[e.id]&&!this.blocked&&(this.errorCache[e.id].forEach((t=>{var i={},s=t[4],n=t[5];(0,R.D)(s,o),(0,R.D)(e.root.attrs.custom,o),(0,R.D)(n,o);var r=t[2];r.browserInteractionId=e.root.attrs.id,delete r._interactionId,r._interactionNodeId&&(r.parentNodeId=r._interactionNodeId.toString(),delete r._interactionNodeId);var a=t[1]+e.root.attrs.id+":"+b((0,w.P)(i));function o(e,t){i[e]=t&&"object"==typeof t?(0,w.P)(t):t}this.aggregator.store(t[0],a,r,t[3],i)})),delete this.errorCache[e.id])}onInteractionDiscarded(e){this.errorCache&&this.errorCache[e.id]&&!this.blocked&&(this.errorCache[e.id].forEach((t=>{var i={},s=t[4],n=t[5];(0,R.D)(s,o),(0,R.D)(e.root.attrs.custom,o),(0,R.D)(n,o);var r=t[2];delete r._interactionId,delete r._interactionNodeId;var a=t[1]+":"+b((0,w.P)(i));function o(e,t){i[e]=t&&"object"==typeof t?(0,w.P)(t):t}this.aggregator.store(t[0],a,t[2],t[3],i)})),delete this.errorCache[e.id])}}},8939:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>k});var s=i(234),n=i(4322),r=i(2573),a=i(3081),o=i(385);const c="React",h="NextJS",u="Vue",d="NuxtJS",l="Angular",f="AngularUniversal",p="Svelte",m="SvelteKit",g="Preact",v="PreactSSR",y="AngularJS",b="Backbone",T="Ember",S="Meteor",w="Zepto",N="Jquery",R="MooTools",E="Qwik",A="Electron";function I(){if(!o.il)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(m)),function(){try{return Object.prototype.hasOwnProperty.call(window,"preact")}catch(e){return!1}}()&&(e.push(g),function(){try{return document.querySelector('script[type="__PREACT_CLI_DATA__"]')}catch(e){return!1}}()&&e.push(v)),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(y),Object.prototype.hasOwnProperty.call(window,"Backbone")&&e.push(b),Object.prototype.hasOwnProperty.call(window,"Ember")&&e.push(T),Object.prototype.hasOwnProperty.call(window,"Meteor")&&e.push(S),Object.prototype.hasOwnProperty.call(window,"Zepto")&&e.push(w),Object.prototype.hasOwnProperty.call(window,"jQuery")&&e.push(N),Object.prototype.hasOwnProperty.call(window,"MooTools")&&e.push(R),Object.prototype.hasOwnProperty.call(window,"qwikevents")&&e.push(E),function(){try{return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}catch(e){return!1}}()&&e.push(A)}catch(e){}return e}var O=i(2271),P=i(6141),M=i(3960),x=i(3239),F=i(2222);class k extends F.m{static featureName=a.t9;constructor(e,t){let i;super(e,t,a.t9),(0,n.X)("block-err",(()=>{this.blocked=!0,i&&(i.aborted=!0)}),this.featureName,this.ee),(0,n.X)(a.xS,this.storeSupportabilityMetrics.bind(this),this.featureName,this.ee),(0,n.X)(a.vz,this.storeEventMetrics.bind(this),this.featureName,this.ee),this.singleChecks(),this.eachSessionChecks(),this.ee.on("drain-".concat(this.featureName),(()=>{i=new r.o("jserrors",{onUnload:()=>this.unload()},this),i.harvest.on("jserrors",(()=>({body:this.aggregator.take(["cm","sm"])})))})),this.drain()}storeSupportabilityMetrics(e,t){if(this.blocked)return;const i=a.mY,s={name:e};this.aggregator.storeMetric(i,e,s,t)}storeEventMetrics(e,t){if(this.blocked)return;const i=a.gF,s={name:e};this.aggregator.store(i,e,s,t)}singleChecks(){const{distMethod:e,loaderType:t}=(0,s.OP)(this.agentIdentifier);if(t&&this.storeSupportabilityMetrics("Generic/LoaderType/".concat(t,"/Detected")),e&&this.storeSupportabilityMetrics("Generic/DistMethod/".concat(e,"/Detected")),o.il){this.storeSupportabilityMetrics("Generic/Runtime/Browser/Detected");const e=document?.currentScript?.nonce;e&&""!==e&&this.storeSupportabilityMetrics("Generic/Runtime/Nonce/Detected"),(0,M.KB)((()=>{I().forEach((e=>{this.storeSupportabilityMetrics("Framework/"+e+"/Detected")}))}))}else o.v6?this.storeSupportabilityMetrics("Generic/Runtime/Worker/Detected"):this.storeSupportabilityMetrics("Generic/Runtime/Unknown/Detected");(0,O.V)()&&this.storeSupportabilityMetrics("Generic/FileProtocol/Detected");const i=(0,P.$c)(this.agentIdentifier);i.length>0&&this.storeSupportabilityMetrics("Generic/Obfuscate/Detected"),i.length>0&&!(0,P.Ng)(i)&&this.storeSupportabilityMetrics("Generic/Obfuscate/Invalid");const{proxy:n}=(0,s.P_)(this.agentIdentifier);n.assets&&this.storeSupportabilityMetrics("Config/AssetsUrl/Changed"),n.beacon&&this.storeSupportabilityMetrics("Config/BeaconUrl/Changed")}eachSessionChecks(){o.il&&(0,x.bP)("pageshow",(e=>{e.persisted&&this.storeSupportabilityMetrics("Generic/BFCache/PageRestored")}))}unload(){try{if(this.resourcesSent)return;this.resourcesSent=!0;const e=(0,s.OP)(this.agentIdentifier),t=["beacon","fetch","xmlhttprequest"],i=["nr-data.net","newrelic.com","nr-local.net","localhost"];function n(e){return t.includes(e.initiatorType)}if((performance?.getEntriesByType("resource")||[]).forEach((e=>{var t;t=e,i.some((e=>t.name.indexOf(e)>=0))?n(e)?this.storeSupportabilityMetrics("Generic/Resources/Ajax/Internal"):this.storeSupportabilityMetrics("Generic/Resources/Non-Ajax/Internal"):n(e)?this.storeSupportabilityMetrics("Generic/Resources/Ajax/External"):this.storeSupportabilityMetrics("Generic/Resources/Non-Ajax/External")})),e.ptid&&this.storeSupportabilityMetrics("PageSession/Feature/SessionTrace/DurationMs",Math.round(performance.now())),"undefined"!=typeof performance){const r=performance.getEntriesByType("mark"),a=performance.getEntriesByType("measure");this.storeSupportabilityMetrics("Generic/Performance/Mark/Seen",r.length),this.storeSupportabilityMetrics("Generic/Performance/Measure/Seen",a.length)}}catch(o){}}}},1832:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>l});var s=i(1284),n=i(4351),r=i(4322),a=i(2573),o=i(4222),c=i(234),h=i(4649),u=i(385),d=i(2222);class l extends d.m{static featureName=h.t;constructor(e,t){var i;super(e,t,h.t),i=this,this.eventsPerMinute=240,this.harvestTimeSeconds=(0,c.Mt)(this.agentIdentifier,"page_action.harvestTimeSeconds")||(0,c.Mt)(this.agentIdentifier,"ins.harvestTimeSeconds")||30,this.eventsPerHarvest=this.eventsPerMinute*this.harvestTimeSeconds/60,this.referrerUrl=void 0,this.currentEvents=void 0,this.events=[],this.att=(0,c.C5)(this.agentIdentifier).jsAttributes,u.il&&document.referrer&&(this.referrerUrl=(0,o.f)(document.referrer)),(0,r.X)("api-addPageAction",(function(){return i.addPageAction(...arguments)}),this.featureName,this.ee),this.waitForFlags(["ins"]).then((e=>{let[t]=e;if(t){const e=new a.o("ins",{onFinished:function(){return i.onHarvestFinished(...arguments)}},this);e.harvest.on("ins",(function(){return i.onHarvestStarted(...arguments)})),e.startTimer(this.harvestTimeSeconds,0)}else this.blocked=!0})),this.drain()}onHarvestStarted(e){const{userAttributes:t,atts:i}=(0,c.C5)(this.agentIdentifier);var s={qs:{ua:t,at:i},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],s}onHarvestFinished(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}addPageAction(e,t,i){if(!(this.events.length>=this.eventsPerHarvest||this.blocked)){var r,a,h={};u.il&&window.document.documentElement&&(r=window.document.documentElement.clientWidth,a=window.document.documentElement.clientHeight);var d={timestamp:e+(0,c.OP)(this.agentIdentifier).offset,timeSinceLoad:e/1e3,browserWidth:r,browserHeight:a,referrerUrl:this.referrerUrl,currentUrl:(0,o.f)(""+location),pageUrl:(0,o.f)((0,c.OP)(this.agentIdentifier).origin),eventType:"PageAction"};(0,s.D)(d,l),(0,s.D)((0,c.C5)(this.agentIdentifier).jsAttributes,l),i&&"object"==typeof i&&(0,s.D)(i,l),h.actionName=t||"",this.events.push(h)}function l(e,t){h[e]=t&&"object"==typeof t?(0,n.P)(t):t}}}},3609:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>y});var s=i(385),n=i(5998),r=i(4351),a=i(234),o=i(6291),c=i(7633),h=i(3325),u=i(8632);function d(e){const t=[],i=(0,u.fP)();try{Object.keys(i.initializedAgents[e].features).forEach((e=>{switch(e){case h.D.ajax:t.push("xhr");break;case h.D.jserrors:t.push("err");break;case h.D.pageAction:t.push("ins");break;case h.D.sessionTrace:t.push("stn");break;case h.D.spa:t.push("spa")}}))}catch(e){}return t}var l=i(2825),f=i(50),p=i(2222),m=i(6069),g=i(8373),v=i(4806);class y extends p.m{static featureName=c.t;constructor(e,t){super(e,t,c.t),this.timeToFirstByte=0,this.firstByteToWindowLoad=0,this.firstByteToDomContent=0,s.il?v.P.subscribe((e=>{let{value:t,entries:i}=e;const s=i[0];this.timeToFirstByte=Math.max(t,this.timeToFirstByte),this.firstByteToWindowLoad=Math.max(Math.round(s.loadEventEnd-this.timeToFirstByte),this.firstByteToWindowLoad),this.firstByteToDomContent=Math.max(Math.round(s.domContentLoadedEventEnd-this.timeToFirstByte),this.firstByteToDomContent),this.sendRum()})):this.sendRum()}sendRum(){const e=(0,a.C5)(this.agentIdentifier),t=(0,a.OP)(this.agentIdentifier),i=new o.M(this);if(!e.beacon)return;e.queueTime&&this.aggregator.store("measures","qt",{value:e.queueTime}),e.applicationTime&&this.aggregator.store("measures","ap",{value:e.applicationTime}),this.aggregator.store("measures","be",{value:this.timeToFirstByte}),this.aggregator.store("measures","fe",{value:this.firstByteToWindowLoad}),this.aggregator.store("measures","dc",{value:this.firstByteToDomContent});const c={tt:e.ttGuid,us:e.user,ac:e.account,pr:e.product,af:d(this.agentIdentifier).join(","),...Object.entries(this.aggregator.get("measures")||{}).reduce(((e,t)=>{let[i,s]=t;return e[i]=s.params?.value,e}),{}),xx:e.extra,ua:e.userAttributes,at:e.atts};let h;if(t.session&&(c.fsh=Number(t.session.isNew)),"object"==typeof e.jsAttributes&&Object.keys(e.jsAttributes).length>0&&(h={ja:e.jsAttributes}),s._A.performance)if("undefined"!=typeof PerformanceNavigationTiming){const e=s._A?.performance?.getEntriesByType("navigation")?.[0],i={timing:(0,n.wu)(t.offset,e,{}),navigation:(0,n.uB)(e,{})};c.perf=(0,r.P)(i)}else if("undefined"!=typeof PerformanceTiming){const e={timing:(0,n.wu)(t.offset,s._A.performance.timing,{},!0),navigation:(0,n.uB)(s._A.performance.navigation,{})};c.perf=(0,r.P)(e)}c.fp=g.U.current.value,c.fcp=m.y.current.value,i.send({endpoint:"rum",payload:{qs:c,body:h},opts:{needResponse:!0,sendEmptyBody:!0},cbFinished:e=>{let{status:t,responseText:i}=e;if(t>=400)this.ee.abort();else try{(0,l.N)(JSON.parse(i),this.agentIdentifier),this.drain()}catch(e){this.ee.abort(),(0,f.Z)("RUM call failed. Agent shutting down.")}}})}}},9766:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>A});var s=i(214),n=i(1284),r=i(2573),a=i(4322),o=i(5546),c=i(234),h=i(9251),u=i(3325),d=i(2222),l=i(8085),f=i(8158),p=i(2094),m=i(385);const g=new p.U(f.S.CUMULATIVE_LAYOUT_SHIFT,(e=>e));m.il&&(0,l.mw)((e=>{let{value:t,entries:i}=e;g.roundingMethod(t)!==g.current.value&&g.update({value:t,entries:i})}),{reportAllChanges:!0});var v=i(6069);const y=new p.U(f.S.FIRST_INPUT_DELAY);m.il&&(0,l.Fu)((e=>{let{value:t,entries:i}=e;m.iS||y.isValid||0===i.length||y.update({value:i[0].startTime,entries:i,attrs:{type:i[0].name,fid:Math.round(t)}})}));var b=i(8373);const T=new p.U(f.S.INTERACTION_TO_NEXT_PAINT);m.il&&(0,l.Yn)((e=>{let{value:t,entries:i,id:s}=e;T.update({value:t,entries:i,attrs:{metricId:s}})}));var S=i(4222);const w=new p.U(f.S.LARGEST_CONTENTFUL_PAINT);m.il&&(0,l.NO)((e=>{let{value:t,entries:i}=e;if(m.iS||w.isValid)return;const s=i[i.length-1];w.update({value:t,entries:i,...i.length>0&&{attrs:{size:s.size,eid:s.id,...!!s.url&&{elUrl:(0,S.f)(s.url)},...!!s.element?.tagName&&{elTag:s.element.tagName}}}})}));var N=i(4806),R=i(8310);const E=new p.U(f.S.LONG_TASK);if(m.il){const e=e=>{e.forEach((e=>{E.update({value:e.duration,entries:[e],attrs:{ltFrame:e.name,ltStart:e.startTime,ltCtr:e.attribution[0].containerType,..."window"!==e.attribution[0].containerType&&{ltCtrSrc:e.attribution[0].containerSrc,ltCtrId:e.attribution[0].containerId,ltCtrName:e.attribution[0].containerName}}})}))};let t;try{PerformanceObserver.supportedEntryTypes.includes("longtask")&&(t=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))})),t.observe({type:"longtask",buffered:!0}))}catch(e){}t&&(0,R.L)((()=>{e(t.takeRecords())}),!0)}class A extends d.m{static featureName=h.t;#t=e=>{let{name:t,value:i,attrs:s}=e;this.addTiming(t,i,s)};constructor(e,t){var i;super(e,t,h.t),i=this,this.timings=[],this.timingsSent=[],this.curSessEndRecorded=!1,b.U.subscribe(this.#t),v.y.subscribe(this.#t),y.subscribe(this.#t),w.subscribe(this.#t),T.subscribe(this.#t),N.P.subscribe((e=>{let{entries:t}=e;this.addTiming("load",Math.round(t[0].loadEventEnd))})),!0===(0,c.Mt)(this.agentIdentifier,"page_view_timing.long_task")&&E.subscribe(this.#t),(0,a.X)("docHidden",(e=>this.endCurrentSession(e)),this.featureName,this.ee),(0,a.X)("winPagehide",(e=>this.recordPageUnload(e)),this.featureName,this.ee);const s=(0,c.Mt)(this.agentIdentifier,"page_view_timing.initialHarvestSeconds")||10,n=(0,c.Mt)(this.agentIdentifier,"page_view_timing.harvestTimeSeconds")||30;this.ee.on("drain-".concat(this.featureName),(()=>{this.scheduler=new r.o("events",{onFinished:function(){return i.onHarvestFinished(...arguments)},getPayload:function(){return i.prepareHarvest(...arguments)}},this),this.scheduler.startTimer(n,s)})),this.drain()}endCurrentSession(e){this.curSessEndRecorded||(this.addTiming("pageHide",e,null),this.curSessEndRecorded=!0)}recordPageUnload(e){this.addTiming("unload",e,null),this.endCurrentSession(e)}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||{}),g.current.value>=0&&(i.cls=g.current.value),this.timings.push({name:e,value:t,attrs:i}),(0,o.p)("pvtAdded",[e,t,i],void 0,u.D.sessionTrace,this.ee)}onHarvestFinished(e){e.retry&&this.timingsSent.length>0&&(this.timings.unshift(...this.timingsSent),this.timingsSent=[])}appendGlobalCustomAttributes(e){var t=e.attrs||{},i=(0,c.C5)(this.agentIdentifier).jsAttributes||{},s=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];(0,n.D)(i,(function(e,i){s.indexOf(e)<0&&(t[e]=i)}))}prepareHarvest(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var i=0;i0&&(i+=(0,s.uR)(a.length)+";"+a.join(";")),n+1{i.r(t),i.d(t,{AVG_COMPRESSION:()=>b,Aggregate:()=>F,IDEAL_PAYLOAD_SIZE:()=>M,MAX_PAYLOAD_SIZE:()=>P,RRWEB_EVENT_TYPES:()=>T});var s=i(4322),n=i(2573),r=i(7144),a=i(4351),o=i(234),c=i(3860),h=i(2222),u=i(9139),d=i(4420),l=i(50),f=i(385),p=i(3081),m=i(5546),g=i(3325),v=i(6818),y=i(7894);const b=.12,T={DomContentLoaded:0,Load:1,FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Custom:5},S={message:"Session was reset",sm:"Reset"},w={message:"Recorder failed to import",sm:"Import"},N={message:"429: Too Many Requests",sm:"Too-Many"},R={message:"Payload was too large",sm:"Too-Big"},E={message:"Session Entity was set to OFF on another tab",sm:"Cross-Tab"};let A,I,O;const P=1e6,M=64e3,x={[c.IK.ERROR]:15e3,[c.IK.FULL]:3e5,[c.IK.OFF]:0};class F extends h.m{static featureName=r.t;constructor(e,t){super(e,t,r.t),this.events=[],this.backloggedEvents=[],this.harvestTimeSeconds=(0,o.Mt)(this.agentIdentifier,"session_replay.harvestTimeSeconds")||60,this.initialized=!1,this.errorNoticed=!1,this.mode=c.IK.OFF,this.blocked=!1,this.recording=!1,this.shouldCompress=!0,this.hasSnapshot=!1,this.hasMeta=!1,this.hasError=!1,this.cycleTimestamp=void 0,this.payloadBytesEstimation=0,this.lastMeta=void 0,this.entitled=!1;const i=!0===(0,o.Mt)(e,"privacy.cookies_enabled")&&!0===(0,o.Mt)(e,"session_trace.enabled");this.stopRecording=()=>{},i&&(this.ee.on(c.wO.RESET,(()=>{this.abort(S)})),this.ee.on(c.wO.PAUSE,(()=>{this.stopRecording()})),this.ee.on(c.wO.RESUME,(()=>{const{session:e}=(0,o.OP)(this.agentIdentifier);this.mode=e.state.sessionReplayMode,this.initialized&&this.mode!==c.IK.OFF&&this.startRecording()})),this.ee.on(c.wO.UPDATE,((e,t)=>{this.initialized&&!this.blocked&&e===c.uT.CROSS_TAB&&(this.mode!==c.IK.OFF&&t.sessionReplayMode===c.IK.OFF&&this.abort(E),this.mode=t.sessionReplay)})),this.scheduler=new n.o("browser/blobs",{onFinished:this.onHarvestFinished.bind(this),retryDelay:this.harvestTimeSeconds,getPayload:this.prepareHarvest.bind(this),raw:!0},this),(0,s.X)("recordReplay",(()=>{!this.blocked&&this.entitled&&(A?this.mode!==c.IK.FULL&&this.switchToFull():this.initializeRecording(!1,!0,!0))}),this.featureName,this.ee),(0,s.X)("pauseReplay",(()=>{this.forceStop(this.mode!==c.IK.ERROR)}),this.featureName,this.ee),(0,s.X)("errorAgg",(e=>{this.hasError=!0,this.errorNoticed=!0,this.mode===c.IK.ERROR&&"visible"===f._A?.document.visibilityState&&this.switchToFull()}),this.featureName,this.ee),this.waitForFlags(["sr"]).then((e=>{let[t]=e;this.entitled=t,this.initializeRecording(100*Math.random()<(0,o.Mt)(this.agentIdentifier,"session_replay.error_sampling_rate"),100*Math.random()<(0,o.Mt)(this.agentIdentifier,"session_replay.sampling_rate"))})).then((()=>u.m.onReplayReady(this.mode))),this.drain())}switchToFull(){this.mode=c.IK.FULL,A&&this.initialized&&(this.stopRecording(),this.startRecording(),this.scheduler.startTimer(this.harvestTimeSeconds),this.syncWithSessionManager({sessionReplayMode:this.mode}))}async initializeRecording(e,t,s){if(this.initialized=!0,!this.entitled||this.recording)return;const{session:n}=(0,o.OP)(this.agentIdentifier);if(n.isNew||s)if(t)this.mode=c.IK.FULL;else{if(!e)return;this.mode=c.IK.ERROR}else this.mode=n.state.sessionReplayMode;this.mode===c.IK.ERROR&&this.errorNoticed&&(this.mode=c.IK.FULL);try{A=(await i.e(433).then(i.bind(i,4019))).record}catch(e){return this.abort(w)}this.mode===c.IK.FULL&&this.scheduler.startTimer(this.harvestTimeSeconds);try{const{gzipSync:e,strToU8:t}=await i.e(164).then(i.bind(i,3778));I=e,O=t}catch(e){this.shouldCompress=!1}this.startRecording(),this.syncWithSessionManager({sessionReplayMode:this.mode})}prepareHarvest(){if(0===this.events.length||this.mode!==c.IK.FULL&&!this.blocked)return;const e=this.getHarvestContents();if(!e.body.length)return void this.clearBuffer();this.shouldCompress?(e.body=I(O((0,a.P)(e.body))),this.scheduler.opts.gzip=!0):this.scheduler.opts.gzip=!1;const{session:t}=(0,o.OP)(this.agentIdentifier);return t.state.sessionReplaySentFirstChunk||this.syncWithSessionManager({sessionReplaySentFirstChunk:!0}),this.clearBuffer(),[e]}getHarvestContents(){const e=(0,o.OP)(this.agentIdentifier),t=(0,o.C5)(this.agentIdentifier),i=t.jsAttributes?.["enduser.id"];this.backloggedEvents.length&&(this.events=[...this.backloggedEvents,...this.events]);this.events[0]?.type===T.FullSnapshot&&this.lastMeta&&(this.hasMeta=!0,this.events.unshift(this.lastMeta),this.lastMeta=void 0);this.events[this.events.length-1]?.type===T.Meta&&(this.lastMeta=this.events[this.events.length-1],this.events=this.events.slice(0,this.events.length-1),this.hasMeta=!!this.events.find((e=>e.type===T.Meta)));const s=(0,o.OP)(this.agentIdentifier).offset,n=(0,y.z)(),r=this.events[0]?.timestamp,a=this.events[this.events.length-1]?.timestamp,c=r||this.cycleTimestamp,h=a||s+n;return{qs:{browser_monitoring_key:t.licenseKey,type:"SessionReplay",app_id:t.applicationID,protocol_version:"0",attributes:(0,d.j6)({...this.shouldCompress&&{content_encoding:"gzip"},"replay.firstTimestamp":c,"replay.firstTimestampOffset":c-s,"replay.lastTimestamp":h,"replay.durationMs":h-c,"replay.nodes":this.events.length,"session.durationMs":e.session.getDuration(),agentVersion:e.version,session:e.session.state.value,rst:n,hasMeta:this.hasMeta,hasSnapshot:this.hasSnapshot,hasError:this.hasError,isFirstChunk:!1===e.session.state.sessionReplaySentFirstChunk,decompressedBytes:this.payloadBytesEstimation,"rrweb.version":v.lF,...i&&{"enduser.id":i}},5e3).substring(1)},body:this.events}}onHarvestFinished(e){429===e.status&&this.abort(N),this.blocked&&this.scheduler.stopTimer(!0)}clearBuffer(){this.mode===c.IK.ERROR?this.backloggedEvents=this.events:this.backloggedEvents=[],this.events=[],this.hasSnapshot=!1,this.hasMeta=!1,this.hasError=!1,this.payloadBytesEstimation=0,this.clearTimestamps()}startRecording(){if(!A)return(0,l.Z)("Recording library was never imported"),this.abort(w);this.recording=!0;const{block_class:e,ignore_class:t,mask_text_class:i,block_selector:s,mask_input_options:n,mask_text_selector:r,mask_all_inputs:a,inline_images:c,inline_stylesheet:h,collect_fonts:u}=(0,o.Mt)(this.agentIdentifier,"session_replay"),d=A({emit:this.store.bind(this),blockClass:e,ignoreClass:t,maskTextClass:i,blockSelector:s,maskInputOptions:n,maskTextSelector:r,maskAllInputs:a,inlineImages:c,inlineStylesheet:h,collectFonts:u,checkoutEveryNms:x[this.mode]});this.stopRecording=()=>{this.recording=!1,d()}}store(e,t){if(this.setTimestamps(),this.blocked)return;const i=(0,a.P)(e).length,s=this.getPayloadSize(i);if(s>P)return this.clearBuffer(),this.abort(R);this.mode===c.IK.ERROR&&t&&e.type===T.Meta&&this.clearBuffer(),e.type===T.Meta&&(this.hasMeta=!0),e.type===T.FullSnapshot&&(this.hasSnapshot=!0),this.events.push(e),this.payloadBytesEstimation+=i,s>M&&this.mode!==c.IK.ERROR&&this.scheduler.runHarvest()}takeFullSnapshot(){A&&A.takeFullSnapshot()}setTimestamps(){this.cycleTimestamp||(this.cycleTimestamp=(0,o.OP)(this.agentIdentifier).offset+f._A.performance.now())}clearTimestamps(){this.cycleTimestamp=void 0}getPayloadSize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.estimateCompression(this.payloadBytesEstimation+e)+5e3}forceStop(e){e&&this.scheduler.runHarvest(),this.mode=c.IK.OFF,this.stopRecording(),this.syncWithSessionManager({sessionReplayMode:this.mode})}abort(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.Z)("SR aborted -- ".concat(e.message)),(0,m.p)(p.xS,["SessionReplay/Abort/".concat(e.sm)],void 0,g.D.metrics,this.ee),this.blocked=!0,this.mode=c.IK.OFF,this.stopRecording(),this.syncWithSessionManager({sessionReplayMode:this.mode}),this.clearTimestamps(),this.ee.emit("REPLAY_ABORTED")}estimateCompression(e){return this.shouldCompress?e*b:e}syncWithSessionManager(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{session:t}=(0,o.OP)(this.agentIdentifier);t.write(e)}}},6209:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>v});var s=i(4322),n=i(2573),r=i(7243),a=i(234),o=i(7894),c=i(3614);class h{#i=void 0;#s=[];#n=setTimeout((()=>this.#r()),5e3);#a=!1;#o(){this.#s.forEach((e=>e())),this.#r()}#r(){this.#s=[],clearTimeout(this.#n)}settle(e){!1===this.#i||(void 0===this.#i?this.#s.push(e):e())}decide(e){this.#a||(this.#i=e,!1===e&&this.#r(),!0===e&&this.#o())}permanentlyDecide(e){this.#a||(this.decide(e),this.#a=!0)}}var u=i(3860),d=i(8632),l=i(9139);var f=i(2222);const p={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},m={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]},g=6e5;class v extends f.m{static featureName=c.FEATURE_NAME;#c;constructor(e,t,i){var n;if(super(e,t,c.FEATURE_NAME),n=this,this.agentRuntime=(0,a.OP)(e),!this.agentRuntime.xhrWrappable)return;this.resourceObserver=i?.resourceObserver,this.ptid="",this.trace={},this.nodeCount=0,this.sentTrace=null,this.harvestTimeSeconds=(0,a.Mt)(e,"session_trace.harvestTimeSeconds")||10,this.maxNodesPerHarvest=(0,a.Mt)(e,"session_trace.maxNodesPerHarvest")||1e3,this.isStandalone=!1;const r=new h,o=this.agentRuntime.session;this.operationalGate=r;const f=e=>{switch(e){case u.IK.ERROR:this.startTracing(r,!0);break;case u.IK.FULL:case!0:this.startTracing(r);break;case u.IK.OFF:default:r.decide(!1)}};let p,m=!1;this.ee.on(u.wO.UPDATE,((e,t)=>{t.sessionReplayMode===u.IK.FULL&&g()}));const g=()=>{if(this.agentRuntime?.session?.state?.sessionReplayMode===u.IK.FULL&&p!==u.IK.FULL){const e=p;p=u.IK.FULL,o.write({sessionTraceMode:p}),this.isStandalone=!1,e===u.IK.ERROR&&this.#c?(this.trimSTNs(3e4),this.#c.runHarvest({needResponse:!0})):f(u.IK.FULL)}};if(o){(0,s.X)("errorAgg",(()=>{m=!0,g()}),this.featureName,this.ee);const t=()=>{o.state.sessionTraceMode!==u.IK.OFF&&o.write({sessionTraceMode:u.IK.OFF}),r.permanentlyDecide(!1),p===u.IK.FULL&&this.#c?.runHarvest(),this.#c?.stopTimer(!0),this.#c=null};this.waitForFlags(["stn","sr"]).then((async i=>{let[s,n]=i;if(n)if(this.ee.on("REPLAY_ABORTED",(()=>t())),this.ee.on(u.wO.RESUME,(()=>{const e=o.state.sessionTraceMode;e===u.IK.OFF?t():e===u.IK.FULL&&this.#c&&!this.#c.started&&this.#c.runHarvest({needResponse:!0}),p=e})),this.ee.on(u.wO.PAUSE,(()=>{p=o.state.sessionTraceMode})),o.isNew){const t=await async function(e){try{const t=(0,d.fP)();if((0,a.Mt)(e,"session_replay.enabled")&&"object"==typeof t.initializedAgents[e].features.session_replay&&await t.initializedAgents[e].features.session_replay.onAggregateImported)return await l.m.sessionReplayInitialized}catch(e){}return u.IK.OFF}(e);let i;t===u.IK.OFF&&(this.isStandalone=!0),i=!0===s||t===u.IK.ERROR&&m?u.IK.FULL:t,o.write({sessionTraceMode:p=i}),f(i)}else o.state.sessionReplayMode===u.IK.OFF&&(this.isStandalone=!0),f(p=o.state.sessionTraceMode);else this.isStandalone=!0,f(s)}))}else this.isStandalone=!0,(0,s.X)("rumresp-stn",(e=>f(e)),this.featureName,this.ee);(0,s.X)("bst",(function(){for(var e=arguments.length,t=new Array(e),i=0;in.storeEvent(...t)))}),this.featureName,this.ee),(0,s.X)("bstResource",(function(){for(var e=arguments.length,t=new Array(e),i=0;in.storeResources(...t)))}),this.featureName,this.ee),(0,s.X)("bstHist",(function(){for(var e=arguments.length,t=new Array(e),i=0;in.storeHist(...t)))}),this.featureName,this.ee),(0,s.X)("bstXhrAgg",(function(){for(var e=arguments.length,t=new Array(e),i=0;in.storeXhrAgg(...t)))}),this.featureName,this.ee),(0,s.X)("bstApi",(function(){for(var e=arguments.length,t=new Array(e),i=0;in.storeSTN(...t)))}),this.featureName,this.ee),(0,s.X)("errorAgg",(function(){for(var e=arguments.length,t=new Array(e),i=0;in.storeErrorAgg(...t)))}),this.featureName,this.ee),(0,s.X)("pvtAdded",(function(){for(var e=arguments.length,t=new Array(e),i=0;in.processPVT(...t)))}),this.featureName,this.ee),this.drain()}startTracing(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"undefined"!=typeof PerformanceNavigationTiming?this.storeTiming(window.performance.getEntriesByType("navigation")[0]):this.storeTiming(window.performance.timing),this.#c=new n.o("resources",{onFinished:this.#h.bind(this),retryDelay:this.harvestTimeSeconds},this),this.#c.harvest.on("resources",this.#u.bind(this)),!1===t&&this.#c.runHarvest({needResponse:!0}),e.decide(!0)}#h(e){e.sent&&e.responseText&&!this.ptid&&(this.agentRuntime.ptid=this.ptid=e.responseText,this.#c.startTimer(this.harvestTimeSeconds)),e.sent&&e.retry&&this.sentTrace&&(Object.entries(this.sentTrace).forEach((e=>{let[t,i]=e;this.nodeCount>=this.maxNodesPerHarvest||(this.nodeCount+=i.length,this.trace[t]=this.trace[t]?i.concat(this.trace[t]):i)})),this.sentTrace=null)}#u(e){if(this.isStandalone){if(this.ptid&&(0,o.z)()>=g)e.isFinalHarvest=!0,this.operationalGate.permanentlyDecide(!1),this.#c.stopTimer(!0);else if(this.ptid&&this.nodeCount<=30&&!e.isFinalHarvest)return}else{const e=this.agentRuntime.session.state.sessionTraceMode;if(e===u.IK.OFF&&0===Object.keys(this.trace).length)return;if(e===u.IK.ERROR)return}return this.takeSTNs(e.retry)}processPVT(e,t,i){this.storeTiming({[e]:t}),function(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}(e,i)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+i.fid)}storeTiming(e){if(e)for(let t in e){let i=e[t];const s=t.toLowerCase();s.indexOf("size")>=0||s.indexOf("status")>=0||"number"==typeof i&&i>=0&&(i=Math.round(i),this.storeSTN({n:t,s:i,e:i,o:"document",t:"timing"}))}}storeEvent(e,t,i,s){if(this.shouldIgnoreEvent(e,t))return;const n={n:this.evtName(e.type),s:i,e:s,t:"event"};try{n.o=this.evtOrigin(e.target,t)}catch(e){n.o=this.evtOrigin(null,t)}this.storeSTN(n)}shouldIgnoreEvent(e,t){const i=this.evtOrigin(e.target,t);return e.type in p.global||(!(!p[i]||!p[i].ignoreAll)||!(!p[i]||!(e.type in p[i])))}evtName(e){switch(e){case"keydown":case"keyup":case"keypress":return"typing";case"mousemove":case"mouseenter":case"mouseleave":case"mouseover":case"mouseout":return"mousing";case"scroll":return"scrolling";case"touchstart":case"touchmove":case"touchend":case"touchcancel":case"touchenter":case"touchleave":return"touching";default:return e}}evtOrigin(e,t){let i="unknown";if(e&&e instanceof XMLHttpRequest){const t=this.ee.context(e).params;if(!(t&&t.status&&t.method&&t.host&&t.pathname))return"xhrOriginMissing";i=t.status+" "+t.method+": "+t.host+t.pathname}else if(e&&"string"==typeof e.tagName&&(i=e.tagName.toLowerCase(),e.id&&(i+="#"+e.id),e.className))for(let t=0;t{if((0|e.fetchStart)<=this.#d)return;const t=(0,r.e)(e.name),i={n:e.initiatorType,s:0|e.fetchStart,e:0|e.responseEnd,o:t.protocol+"://"+t.hostname+":"+t.port+t.pathname,t:e.entryType};this.storeSTN(i)})),this.#d=0|e[e.length-1].fetchStart)}storeErrorAgg(e,t,i,s){if("err"!==e)return;const n={n:"error",s:s.time,e:s.time,o:i.message,t:i.stackHash};this.storeSTN(n)}storeXhrAgg(e,t,i,s){if("xhr"!==e)return;const n={n:"Ajax",s:s.time,e:s.time+s.duration,o:i.status+" "+i.method+": "+i.host+i.pathname,t:"ajax"};this.storeSTN(n)}storeSTN(e){if(this.nodeCount>=this.maxNodesPerHarvest){if(this.isStandalone||this.agentRuntime.session.state.sessionTraceMode!==u.IK.ERROR)return;if(0===this.trimSTNs(3e4))return}this.isStandalone&&(0,o.z)()>=g||(this.trace[e.n]?this.trace[e.n].push(e):this.trace[e.n]=[e],this.nodeCount++)}trimSTNs(e){let t=0;const i=Math.max((0,o.z)()-e,0);return Object.keys(this.trace).forEach((e=>{const s=this.trace[e];let n=s.findIndex((e=>i<=e.e));0!==n&&(n<0?(n=s.length,delete this.trace[e]):s.splice(0,n),this.nodeCount-=n,t+=n)})),t}takeSTNs(e){this.resourceObserver||this.storeResources(window.performance.getEntriesByType("resource"));let t=1/0;const i=Object.entries(this.trace).flatMap((e=>{let[i,s]=e;const n=s.reduce(((e,t)=>!e||t.se.s-t.s)).reduce(r,{});return Object.values(a).flat()}),this);if(0===i.length)return{};let s;if(e&&(this.sentTrace=this.trace),this.trace={},this.nodeCount=0,this.agentRuntime.session){const e=!this.agentRuntime.session.state.traceHarvestStarted;s={fsh:Number(e)},e&&this.agentRuntime.session.write({traceHarvestStarted:!0})}return{qs:{st:this.agentRuntime.offset,hr:Number(!this.isStandalone),fts:this.agentRuntime.offset+t,n:i.length,...s},body:{res:i}}}smearEvtsByOrigin(e){const t=m[e][0],i=m[e][1],s={};return(n,r)=>{let a=n[r.o];a||(a=n[r.o]=[]);const o=s[r.o];return"scrolling"!==e||function(e){const t=4;return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.sr.s-t?o.e=r.e:(s[r.o]=r,a.push(r)):(s[r.o]=null,r.n="scroll",a.push(r)),n}}}},2782:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>Z});var s=i(4322),n=i(7243),r=i(1199),a=i(1284),o=i(5998),c=i(4402),h=i(234),u=i(8325),d=0;function l(e,t,i,s){Object.defineProperty(this,"interaction",{value:e,writable:!0}),this.parent=t,this.id=++d,this.type=i,this.children=[],this.end=null,this.jsEnd=this.start=s,this.jsTime=0,this.attrs={},this.cancelled=!1}var f=l.prototype;f.child=function(e,t,i,s){var n=this.interaction;if(n.end||n.nodes>=128)return null;n.onNodeAdded(this);var r=new l(n,this,e,t);return r.attrs.name=i,n.nodes++,s||n.remaining++,r},f.callback=function(e,t){var i=this;i.jsTime+=e,t>i.jsEnd&&(i.jsEnd=t,i.interaction.lastCb=t)},f.cancel=function(){this.cancelled=!0,this.interaction.remaining--},f.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 s=this.interaction;s.remaining--,s.lastFinish=e,s.checkFinish()};var p=h.Yu.ST,m=h.Yu.CT,g={};function v(e,t,i,s,n,r){this.agentIdentifier=r,this.ee=u.ee.get(r),g[r]=0,this.id=++g[r],this.eventName=e,this.nodes=0,this.remaining=0,this.finishTimer=null,this.checkingFinish=!1,this.lastCb=this.lastFinish=t,this.handlers=[],this.onFinished=n,this.done=!1;var a=(this.root=new l(this,null,"interaction",t)).attrs;a.trigger=e,a.initialPageURL=(0,h.OP)(r).origin,a.oldRoute=s,a.newURL=a.oldURL=i,a.custom={},a.store={}}var y=v.prototype;y.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))},y.setNewURL=function(e){this.root.attrs.newURL=e},y.setNewRoute=function(e){this.root.attrs.newRoute=e},y.onNodeAdded=function(){this._resetFinishCheck()},y._resetFinishCheck=function(){this.finishTimer&&(m(this.finishTimer),this.finishTimer=null,this.checkingFinish=!1)},y.finish=function(){var e=this,t=e.root;if(null===t.end){var i=Math.max(e.lastCb,e.lastFinish),s=t.attrs.custom;this.onFinished&&this.onFinished(this),(0,a.D)((0,h.C5)(e.agentIdentifier).jsAttributes,(function(e,t){e in s||(s[e]=t)})),t.end=i,e.ee.emit("interaction",[this])}};var b=i(3239),T=i(2573),S=i(4222),w=i(214),N=i(1117);class R extends N.w{constructor(e){super(e),this.firstTimestamp=void 0}serializeMultiple(e,t,i){const s=(0,h.C5)(this.sharedContext.agentIdentifier);var n=(0,w.FX)(this.sharedContext.agentIdentifier),r="bel.7";return e.forEach((e=>{r+=";"+this.serializeInteraction(e.root,t,i,e.routeChange,n,s)})),this.firstTimestamp=void 0,r}serializeSingle(e,t,i,s){const n=(0,h.C5)(this.sharedContext.agentIdentifier);var r=(0,w.FX)(this.sharedContext.agentIdentifier),a="bel.7;"+this.serializeInteraction(e,t,i,s,r,n);return this.firstTimestamp=void 0,a}serializeInteraction(e,t,i,s,n,r){t=t||0;var o="initialPageLoad"===e.attrs.trigger,c={interaction:1,ajax:2,customTracer:4},h=!0;const u=(e,d)=>{if("customEnd"===e.type)return d.push([3,(0,w.uR)(e.end-this.firstTimestamp)]);var l=e.type,f=c[l],p=e.start,m=e.children.length,g=0,v=r.atts,y=o&&i.length&&1===f,b=[],T=e.attrs,N=T.metrics,R=T.params,E=r.queueTime,A=r.applicationTime;void 0===this.firstTimestamp?(p+=t,this.firstTimestamp=p):p-=this.firstTimestamp;var I=[(0,w.uR)(p),(0,w.uR)(e.end-e.start),(0,w.uR)(e.jsEnd-e.end),(0,w.uR)(e.jsTime)];switch(f){case 1:I[2]=(0,w.uR)(e.jsEnd-this.firstTimestamp),I.push(n(T.trigger),n((0,S.f)(T.initialPageURL,h)),n((0,S.f)(T.oldURL,h)),n((0,S.f)(T.newURL,h)),n(T.customName),o?"":s?1:2,(0,w.AG)(o&&E,w.uR,!0)+(0,w.AG)(o&&A,w.uR,!0)+(0,w.AG)(T.oldRoute,n,!0)+(0,w.AG)(T.newRoute,n,!0)+n(T.id),n(e.id),(0,w.AG)(T.firstPaint,w.uR,!0)+(0,w.AG)(T.firstContentfulPaint,w.uR,!1));var O=(0,w.n1)(T.custom,n);b=b.concat(O),g=O.length,v&&(m++,b.push("a,"+n(v)));break;case 2:if(I.push(n(R.method),(0,w.uR)(R.status),n(R.host),n(R.pathname),(0,w.uR)(N.txSize),(0,w.uR)(N.rxSize),T.isFetch?1:T.isJSONP?2:"",n(e.id),(0,w.AG)(e.dt&&e.dt.spanId,n,!0)+(0,w.AG)(e.dt&&e.dt.traceId,n,!0)+(0,w.AG)(e.dt&&e.dt.timestamp,w.uR,!1)),Object.keys(R?.gql||{}).length){var P=(0,w.n1)(R.gql,n);b=b.concat(P),g=P.length}break;case 4:var M=T.tracedTime;I.push(n(T.name),(0,w.AG)(M,w.uR,!0)+n(e.id))}for(var x=0;x-1},this.serializer=new R(this);const{state:i,serializer:d}=this;let{blocked:l}=this;const f=u.ee.get(e),p=f.get("mutation"),m=f.get("promise"),g=f.get("history"),y=f.get("events"),S=f.get("timer"),w=f.get("fetch"),N=f.get("jsonp"),E=f.get("xhr"),I=f.get("tracer"),Z=new T.o("events",{onFinished:function(e){e.sent&&e.retry&&i.interactionsSent.length>0&&(i.interactionsSent.forEach((function(e){i.interactionsToHarvest.unshift(e)})),i.interactionsSent=[])},retryDelay:i.harvestTimeSeconds},{agentIdentifier:e,ee:f});if(Z.harvest.on("events",(function(e){if(0===i.interactionsToHarvest.length||l)return{};var t=d.serializeMultiple(i.interactionsToHarvest,0,o.zJ);e.retry&&i.interactionsToHarvest.forEach((function(e){i.interactionsSent.push(e)}));return i.interactionsToHarvest=[],{body:{e:t}}})),(0,s.X)("block-spa",(()=>{l=!0,Z.stopTimer(!0)}),this.featureName,f),!1!==(0,h.Mt)(e,"spa.enabled")){i.initialPageLoad=new v("initialPageLoad",0,i.lastSeenUrl,i.lastSeenRouteName,re,e),i.initialPageLoad.save=!0,i.prevInteraction=i.initialPageLoad,i.currentNode=i.initialPageLoad.root,i.initialPageLoad[B]++,(0,s.X)(j,Q,this.featureName,f),(0,s.X)(U,Q,this.featureName,m);var J={getCurrentNode:function(){return i.currentNode},setCurrentNode:ne};(0,s.X)("spa-register",(function(e){"function"==typeof e&&e(J)}),A.D.spa,f),(0,s.X)(D,ee,this.featureName,f),(0,s.X)("cb-end",ee,this.featureName,m),(0,s.X)(j,(function(t,s){var n=t[0],r=n.type,a=n["__nrNode:".concat(M.a)];if(!i.pageLoaded&&("load"===r&&s===window||x.LW)&&(i.pageLoaded=!0,this.prevNode=i.currentNode=null,i.initialPageLoad&&(a=i.initialPageLoad.root,i.initialPageLoad[B]=0,Y((function(){_.push("popstate")})))),a)ne(a);else if("hashchange"===r)ne(i.nodeOnLastHashUpdate),i.nodeOnLastHashUpdate=null;else if(s instanceof XMLHttpRequest)ne(f.context(s).spaNode);else if(!i.currentNode&&-1!==_.indexOf(r)){var o=new v(r,this[j],i.lastSeenUrl,i.lastSeenRouteName,re,e);if(i.prevInteraction=o,ne(o.root),"click"===r){var c=function(e){var t=e.tagName.toLowerCase();if(-1!==["a","button","input"].indexOf(t))return e.title||e.value||e.innerText}(n.target);c&&(i.currentNode.attrs.custom.actionText=c)}}n["__nrNode:".concat(M.a)]=i.currentNode}),this.featureName,y),(0,s.X)("setTimeout-end",(function(e,t,s){!i.currentNode||i.timerBudget-this.timerDuration<0||(!e||e[0]instanceof Function)&&(i.currentNode[X][B]++,this.timerId=s,i.timerMap[s]=i.currentNode,this.timerBudget=i.timerBudget-50)}),this.featureName,S),(0,s.X)("clearTimeout-start",(function(e){var t=e[0],s=i.timerMap[t];if(s){var n=s[X];n[B]--,n.checkFinish(),delete i.timerMap[t]}}),this.featureName,S),(0,s.X)(j,(function(){i.timerBudget=this.timerBudget||L;var e=this.timerId,t=i.timerMap[e];ne(t),delete i.timerMap[e],t&&t[X][B]--}),this.featureName,S),(0,s.X)(j,(function(){ne(this[z])}),this.featureName,E),(0,s.X)("new-xhr",(function(){if(!i.disableSpaFix&&!i.currentNode&&i.prevInteraction&&!i.prevInteraction.ignored){const e=i.prevInteraction;i.currentNode=e.root,e.root.end=null}i.currentNode&&(this[z]=i.currentNode.child("ajax",null,null,!0))}),this.featureName,E),(0,s.X)("send-xhr-start",(function(){var e=this[z];e&&!this.sent&&(this.sent=!0,e.dt=this.dt,e.jsEnd=e.start=this.startTime,e[X][B]++)}),this.featureName,E),(0,s.X)("xhr-resolved",(function(){var e=this[z];if(e){if(!(0,r.z)(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,f),(0,s.X)("new-jsonp",(function(e){i.currentNode&&((this[q]=i.currentNode.child("ajax",this[K])).start=this["new-jsonp"],this.url=e,this.status=null)}),this.featureName,N),(0,s.X)("cb-start",(function(e){var t=this[q];t&&(ne(t),this.status=200)}),this.featureName,N),(0,s.X)("jsonp-error",(function(){var e=this[q];e&&(ne(e),this.status=0)}),this.featureName,N),(0,s.X)(W,(function(){var e=this[q];if(e){if(null===this.status)return void e.cancel();var t=e.attrs,i=t.params={},s=(0,n.e)(this.url);i.method="GET",i.pathname=s.pathname,i.host=s.hostname+":"+s.port,i.status=this.status,t.metrics={txSize:0,rxSize:0},t.isJSONP=!0,e.jsEnd=this[W],e.jsTime=this[U]?this[W]-this[U]:0,e.finish(e.jsEnd)}}),this.featureName,N),(0,s.X)(K,(function(e,t){if(e){if(!i.disableSpaFix&&!i.currentNode&&i.prevInteraction&&!i.prevInteraction.ignored){const e=i.prevInteraction;i.currentNode=e.root,e.root.end=null}i.currentNode&&(this[z]=i.currentNode.child("ajax",this[K]),t&&this[z]&&(this[z].dt=t))}}),this.featureName,w),(0,s.X)(V+"start",(function(e){i.currentNode&&(this[z]=i.currentNode,i.currentNode[X][B]++)}),this.featureName,w),(0,s.X)(V+"end",(function(e,t,i){var s=this[z];s&&s[X][B]--}),this.featureName,w),(0,s.X)(G,(function(e,t){var i=this[z];if(i){if(e||!(0,r.z)(this.params))return void i.cancel();var s=i.attrs;s.params=this.params,s.metrics={txSize:this.txSize,rxSize:this.rxSize},s.isFetch=!0,i.finish(this[G])}}),this.featureName,w),(0,s.X)("newURL",(function(e,t){if(i.currentNode)i.currentNode[X].setNewURL(e);else if(i.prevInteraction&&!i.prevInteraction.ignored){const t=i.prevInteraction;t.setNewURL(e),t.root.end=null,ne(t.root)}i.currentNode&&(i.lastSeenUrl!==e&&(i.currentNode[X].routeChange=!0),t&&(i.nodeOnLastHashUpdate=i.currentNode)),i.lastSeenUrl=e}),this.featureName,g),N.on("dom-start",(function(e){if(i.currentNode){var t=e[0],s=t&&"SCRIPT"===t.nodeName&&""!==t.src,n=i.currentNode.interaction;s&&(n[B]++,t.addEventListener("load",(function(){n[B]--,n.checkFinish()}),(0,b.m$)(!1)),t.addEventListener("error",(function(){n[B]--,n.checkFinish()}),(0,b.m$)(!1)))}})),(0,s.X)(j,(function(){ne(i.prevNode)}),this.featureName,p),(0,s.X)("resolve-start",se,this.featureName,m),(0,s.X)("executor-err",se,this.featureName,m),(0,s.X)("propagate",(function(e,t){!t&&this[z]||(this[z]=i.currentNode)}),this.featureName,m),(0,s.X)(U,(function(){ne((this.getCtx?this.getCtx():this)[z])}),this.featureName,m),(0,s.X)(H+"get",(function(t){var s;s=this.ixn=i?.currentNode?.[X]?i.currentNode[X]:null===i?.prevNode?.end&&"initialPageLoad"!==i?.prevNode?.[X]?.root?.[X]?.eventName?i.prevNode[X]:new v("api",t,i.lastSeenUrl,i.lastSeenRouteName,re,e),i.currentNode||(s.checkFinish(),i.depth&&ne(s.root))}),this.featureName,f),(0,s.X)(H+"actionText",(function(e,t){var i=this.ixn.root.attrs.custom;t&&(i.actionText=t)}),this.featureName,f),(0,s.X)(H+"setName",(function(e,t,i){var s=this.ixn.root.attrs;t&&(s.customName=t),i&&(s.trigger=i)}),this.featureName,f),(0,s.X)(H+"setAttribute",(function(e,t,i){this.ixn.root.attrs.custom[t]=i}),this.featureName,f),(0,s.X)(H+"end",(function(e){var t=this.ixn,i=ie(t);ne(null),i.child("customEnd",e).finish(e),t.finish()}),this.featureName,f),(0,s.X)(H+"ignore",(function(e){this.ixn.ignored=!0}),this.featureName,f),(0,s.X)(H+"save",(function(e){this.ixn.save=!0}),this.featureName,f),(0,s.X)(H+"tracer",(function(e,t,i){var s=this.ixn,n=ie(s),r=f.context(i);if(!t)return r.inc=++s[B],r[z]=n;r[z]=n.child("customTracer",e,t)}),this.featureName,f),(0,s.X)(j,te,this.featureName,I),(0,s.X)("no-"+j,te,this.featureName,I),(0,s.X)(H+"getContext",(function(e,t){var i=this.ixn.root.attrs.store;setTimeout((function(){t(i)}),0)}),this.featureName,f),(0,s.X)(H+"onEnd",(function(e,t){this.ixn.handlers.push(t)}),this.featureName,f),(0,s.X)("api-routeName",(function(e,t){i.lastSeenRouteName=t,i.currentNode&&i.currentNode[X].setNewRoute(t)}),this.featureName,f),f.on("errorAgg",(function(e,t,s,n){i.currentNode&&(s._interactionId=i.currentNode.interaction.id,i.currentNode.type&&"interaction"!==i.currentNode.type&&(s._interactionNodeId=i.currentNode.id))})),f.on("interaction",(function(e){if(e.ignored||!e.save&&!e.routeChange)return void f.emit("interactionDiscarded",[e]);i.prevInteraction===e&&(i.prevInteraction=null);e.root.attrs.id=(0,c.Rl)(),"initialPageLoad"===e.root.attrs.trigger&&(e.root.attrs.firstPaint=P.U.current.value,e.root.attrs.firstContentfulPaint=O.y.current.value);f.emit("interactionSaved",[e]),i.interactionsToHarvest.push(e);let t="RouteChange";"initialPageLoad"===e.root?.attrs?.trigger?t="InitialPageLoad":"api"===e.root?.attrs?.trigger&&(t="Custom");(0,F.p)(k.xS,["Spa/Interaction/".concat(t,"/Duration/Ms"),Math.max((e.root?.end||0)-(e.root?.start||0),0)],void 0,A.D.metrics,f),Z.scheduleHarvest(0)})),this.drain()}function Q(){i.depth++,this.prevNode=i.currentNode,this.ct=i.childTime,i.childTime=0,i.timerBudget=L}function ee(){i.depth--;var e=this.jsTime||0,t=e-i.childTime;i.childTime=this.ct+e,i.currentNode&&(i.currentNode.callback(t,this[D]),this.isTraced&&(i.currentNode.attrs.tracedTime=t)),this.jsTime=i.currentNode?0:t,ne(this.prevNode),this.prevNode=null,i.timerBudget=L}function te(e,t,i){var s=this[z];if(s){var n=s[X],r=this.inc;this.isTraced=!0,r?n[B]--:s&&s.finish(e),i?ne(s):n.checkFinish()}}function ie(e){return i.currentNode&&i.currentNode[X]===e?i.currentNode:e.root}function se(){this.resolved||(this.resolved=!0,this[z]=i.currentNode)}function ne(e){i.pageLoaded||e||!i.initialPageLoad||(e=i.initialPageLoad.root),i.currentNode&&i.currentNode[X].checkFinish(),i.prevNode=i.currentNode,i.currentNode=e&&!e[X].root.end?e:null}function re(e){e===i.initialPageLoad&&(i.initialPageLoad=null);var t=e.root,s=t.attrs;i.currentNode=t,(0,a.D)(e.handlers,(function(e,t){t(s.store)})),ne(null)}}}},3228:(e,t,i)=>{i.d(t,{setupAgentSession:()=>d});var s=i(234),n=i(8e3),r=i(8325),a=i(4322),o=i(3860);class c{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){}}}class h{constructor(e){this.domain=e}get(e){try{var t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));if(t)return t[2]}catch(e){return""}}set(e,t){try{const i="".concat(e,"=").concat(t,"; Domain=").concat(this.domain,"; Path=/");document.cookie=i}catch(e){}}remove(e){try{document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; Domain=").concat(this.domain,"; Path=/")}catch(e){}}}let u=0;function d(e){const t=(0,s.OP)(e);if(u++)return t.session;const i=(0,s.P_)(e).session,d=i?.domain?new h(i.domain):new c;t.session=new o.$s({agentIdentifier:e,key:"SESSION",storage:d,expiresMs:i?.expiresMs,inactiveMs:i?.inactiveMs});const l=t.session.state.custom,f=(0,s.C5)(e);l&&(f.jsAttributes={...f.jsAttributes,...l});const p=r.ee.get(e);return(0,a.X)("api-setCustomAttribute",((e,i,s)=>{t.session.syncCustomAttribute(i,s)}),"session",p),(0,a.X)("api-setUserId",((e,i,s)=>{t.session.syncCustomAttribute(i,s)}),"session",p),(0,n.L)(e,"session"),t.session}},2222:(e,t,i)=>{i.d(t,{m:()=>h});var s=i(4322),n=i(5938),r=i(234),a=i(7530),o=i(8632),c=i(8e3);class h extends n.W{constructor(){super(...arguments),this.checkConfiguration()}waitForFlags(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Promise.all(e.map((e=>new Promise((t=>{(0,s.X)("rumresp-".concat(e),(e=>t(e)),this.featureName,this.ee)})))))}drain(){(0,c.L)(this.agentIdentifier,this.featureName)}checkConfiguration(){if(!(0,r.lF)(this.agentIdentifier)){let e={...(0,o.gG)().info?.jsAttributes};try{e={...e,...(0,r.C5)(this.agentIdentifier)?.jsAttributes}}catch(e){}(0,a.j)({agentIdentifier:this.agentIdentifier},{...(0,o.gG)(),info:{...(0,o.gG)().info,jsAttributes:e},runtime:(0,r.OP)(this.agentIdentifier)})}}}},8582:(e,t,i)=>{i.d(t,{lazyFeatureLoader:()=>n});var s=i(3325);function n(e,t){if("aggregate"===t)switch(e){case s.D.ajax:return i.e(111).then(i.bind(i,4034));case s.D.jserrors:return i.e(111).then(i.bind(i,1028));case s.D.metrics:return i.e(111).then(i.bind(i,8939));case s.D.pageAction:return i.e(111).then(i.bind(i,1832));case s.D.pageViewEvent:return i.e(111).then(i.bind(i,3609));case s.D.pageViewTiming:return i.e(111).then(i.bind(i,9766));case s.D.sessionReplay:return i.e(111).then(i.bind(i,9990));case s.D.sessionTrace:return i.e(111).then(i.bind(i,6209));case s.D.spa:return i.e(111).then(i.bind(i,2782));default:throw new Error("Attempted to load unsupported agent feature: ".concat(e," ").concat(t))}}},7438:(e,t,i)=>{i.r(t),i.d(t,{setAPI:()=>u});var s=i(3325),n=i(234),r=i(8325),a=i(5546),o=i(4322),c=i(7872),h=i(3081);function u(e){var t=r.ee.get(e),i={finished:(0,c.Z)((function(i,r){var o=r?r-(0,n.OP)(e).offset:i;(0,a.p)(h.vz,["finished",{time:o}],void 0,s.D.metrics,t),u(i,{name:"finished",start:o+(0,n.OP)(e).offset,origin:"nr"}),(0,a.p)("api-addPageAction",[o,"finished"],void 0,s.D.pageAction,t)})),setErrorHandler:function(t,i){(0,n.OP)(e).onerror=i},addToTrace:u,addRelease:function(t,i,s){if(++d>10)return;(0,n.OP)(e).releaseIds[i.slice(-200)]=(""+s).slice(-200)}};function u(i,r){if(r&&"object"==typeof r&&r.name&&r.start){var o={n:r.name,s:r.start-(0,n.OP)(e).offset,e:(r.end||r.start)-(0,n.OP)(e).offset,o:r.origin||"",t:"api"};(0,a.p)("bstApi",[o],void 0,s.D.sessionTrace,t)}}Object.entries(i).forEach((e=>{let[i,s]=e;return(0,o.X)("api-"+i,s,"api",t)}));var d=0}},8085:(e,t,i)=>{i.d(t,{Fu:()=>L,NO:()=>Q,Yn:()=>Y,a4:()=>A,mr:()=>ie,mw:()=>O});var s,n,r,a,o,c=-1,h=function(e){addEventListener("pageshow",(function(t){t.persisted&&(c=t.timeStamp,e(t))}),!0)},u=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=u();return e&&e.activationStart||0},l=function(e,t){var i=u(),s="navigate";return c>=0?s="back-forward-cache":i&&(s=document.prerendering||d()>0?"prerender":document.wasDiscarded?"restore":i.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:s}},f=function(e,t,i){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var s=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return s.observe(Object.assign({type:e,buffered:!0},i||{})),s}}catch(e){}},p=function(e,t,i,s){var n,r;return function(a){t.value>=0&&(a||s)&&((r=t.value-(n||0))||void 0===n)&&(n=t.value,t.delta=r,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()}))}))},g=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},v=function(e){var t=!1;return function(i){t||(e(i),t=!0)}},y=-1,b=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},T=function(e){"hidden"===document.visibilityState&&y>-1&&(y="visibilitychange"===e.type?e.timeStamp:0,w())},S=function(){addEventListener("visibilitychange",T,!0),addEventListener("prerenderingchange",T,!0)},w=function(){removeEventListener("visibilitychange",T,!0),removeEventListener("prerenderingchange",T,!0)},N=function(){return y<0&&(y=b(),S(),h((function(){setTimeout((function(){y=b(),S()}),0)}))),{get firstHiddenTime(){return y}}},R=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},E=[1800,3e3],A=function(e,t){t=t||{},R((function(){var i,s=N(),n=l("FCP"),r=f("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(r.disconnect(),e.startTimes.value&&(s.value=n,s.entries=r,i())},o=f("layout-shift",a);o&&(i=p(e,s,I,t.reportAllChanges),g((function(){a(o.takeRecords()),i(!0)})),h((function(){n=0,s=l("CLS",0),i=p(e,s,I,t.reportAllChanges),m((function(){return i()}))})),setTimeout(i,0))})))},P={passive:!0,capture:!0},M=new Date,x=function(e,t){s||(s=t,n=e,r=new Date,C(removeEventListener),F())},F=function(){if(n>=0&&n1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var i=function(){x(e,t),n()},s=function(){n()},n=function(){removeEventListener("pointerup",i,P),removeEventListener("pointercancel",s,P)};addEventListener("pointerup",i,P),addEventListener("pointercancel",s,P)}(t,e):x(t,e)}},C=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,k,P)}))},_=[100,300],L=function(e,t){t=t||{},R((function(){var i,r=N(),o=l("FID"),c=function(e){e.startTimet.latency){if(i)i.entries.push(e),i.latency=Math.max(i.latency,e.duration);else{var s={id:e.interactionId,latency:e.duration,entries:[e]};V[s.id]=s,G.push(s)}G.sort((function(e,t){return t.latency-e.latency})),G.splice(10).forEach((function(e){delete V[e.id]}))}},Y=function(e,t){t=t||{},R((function(){X();var i,s=l("INP"),n=function(e){e.forEach((function(e){e.interactionId&&W(e),"first-input"===e.entryType&&!G.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&W(e)}));var t,n=(t=Math.min(G.length-1,Math.floor(K()/50)),G[t]);n&&n.latency!==s.value&&(s.value=n.latency,s.entries=n.entries,i())},r=f("event",n,{durationThreshold:t.durationThreshold||40});i=p(e,s,z,t.reportAllChanges),r&&(r.observe({type:"first-input",buffered:!0}),g((function(){n(r.takeRecords()),s.value<0&&K()>0&&(s.value=0,s.entries=[]),i(!0)})),h((function(){G=[],q=B(),s=l("INP"),i=p(e,s,z,t.reportAllChanges)})))}))},Z=[2500,4e3],J={},Q=function(e,t){t=t||{},R((function(){var i,s=N(),n=l("LCP"),r=function(e){var t=e[e.length-1];t&&t.startTimeperformance.now())return;i.value=Math.max(r-d(),0),i.entries=[n],s(!0),h((function(){i=l("TTFB",0),(s=p(e,i,ee,t.reportAllChanges))(!0)}))}}))}}}]);