1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[193],{45777:function(e,t,s){s.d(t,{_:function(){return i}});function i(e,t,s){let i="unknown";if(e&&e instanceof XMLHttpRequest){let t=s.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<e.classList.length;t++)i+="."+e.classList[t];return"unknown"===i&&("string"==typeof t?i=t:t===document?i="document":t===window?i="window":t instanceof FileReader&&(i="FileReader")),i}},81666:function(e,t,s){s.d(t,{R:function(){return function e(t,s,i="string",r=[]){return t&&"object"==typeof t&&Object.keys(t).forEach(n=>{"object"==typeof t[n]?e(t[n],s,i,r):typeof t[n]!==i||r.includes(n)||(t[n]=s(t[n]))}),t}}})},95033:function(e,t,s){s.r(t),s.d(t,{Aggregate:function(){return N}});var i=s(90991),r=s(28407),n=s(30947),a=s(69862),o=s(75308),h=s(5614),c=s(61929),u=s(45777);class m{constructor(e,t,s,i,r){this.n=e,this.s=t,this.e=s,this.o=i,this.t=r}}let l="function"==typeof a._A.PerformanceObserver,d={global:{mouseup:!0,mousedown:!0,mousemove:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},p={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]};class f{nodeCount=0;trace={};earliestTimeStamp=1/0;latestTimeStamp=0;prevStoredEvents=new Set;#e;constructor(e){this.parent=e}#t(){return!this.parent.blocked&&(!(this.nodeCount>=r.c)||this.parent.mode===o.IK.ERROR&&0!==this.trimSTNs(3e4))}#s(e){this.trace[e.n]?this.trace[e.n].push(e):this.trace[e.n]=[e],e.s<this.earliestTimeStamp&&(this.earliestTimeStamp=e.s),e.s>this.latestTimeStamp&&(this.latestTimeStamp=e.s),this.nodeCount++}trimSTNs(e){let t=0,s=Math.max((0,h.z)()-e,0);return Object.keys(this.trace).forEach(e=>{let i=this.trace[e],r=i.findIndex(e=>s<=e.e);0!==r&&(r<0?(r=i.length,delete this.trace[e]):i.splice(0,r),this.nodeCount-=r,t+=r)}),t}takeSTNs(){return l||this.storeResources(a._A.performance?.getEntriesByType?.("resource")),{stns:Object.entries(this.trace).flatMap(([e,t])=>{if(!(e in p))return t;let s=this.smearEvtsByOrigin(e);return Object.values(t.sort((e,t)=>e.s-t.s).reduce(s,{})).flat()},this),earliestTimeStamp:this.earliestTimeStamp,latestTimeStamp:this.latestTimeStamp}}smearEvtsByOrigin(e){let t=p[e][0],s=p[e][1],i={};return(r,n)=>{let a=r[n.o];a||(a=r[n.o]=[]);let o=i[n.o];return"scrolling"!==e||n&&"number"==typeof n.e&&"number"==typeof n.s&&n.e-n.s<4?o&&n.s-o.s<s&&o.e>n.s-t?o.e=n.e:(i[n.o]=n,a.push(n)):(i[n.o]=null,n.n="scroll",a.push(n)),r}}storeNode(e){this.#t()&&this.#s(e)}processPVT(e,t,s){this.storeTiming({[e]:t})}storeTiming(e,t=!1){if(e)for(let s in e){let i=e[s],r=s.toLowerCase();if(!(r.indexOf("size")>=0||r.indexOf("status")>=0)&&"number"==typeof i&&i>=0){if(i=Math.round(i),this.parent.timeKeeper&&this.parent.timeKeeper.ready&&t&&(i=this.parent.timeKeeper.convertAbsoluteTimestamp(Math.floor(this.parent.timeKeeper.correctAbsoluteTimestamp(i)))),!this.#t())return;this.#s(new m(s,i,i,"document","timing"))}}}storeEvent(e,t,s,i){if(this.shouldIgnoreEvent(e,t)||!this.#t()||this.prevStoredEvents.has(e))return;this.prevStoredEvents.add(e);let r=new m(this.evtName(e.type),s,i,void 0,"event");try{r.o=(0,u._)(e.target,t,this.parent.ee)}catch(e){r.o=(0,u._)(null,t,this.parent.ee)}this.#s(r)}shouldIgnoreEvent(e,t){if(e.type in d.global)return!0;let s=(0,u._)(e.target,t,this.parent.ee);return!!d[s]&&!!d[s].ignoreAll||!!(d[s]&&e.type in d[s])}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}}storeHist(e,t,s){this.#t()&&this.#s(new m("history.pushState",s,s,e,t))}#i=0;storeResources(e){if(e&&0!==e.length){for(let t=0;t<e.length;t++){let s=e[t];if((0|s.fetchStart)<=this.#i)continue;if(!this.#t())break;let{initiatorType:i,fetchStart:r,responseEnd:n,entryType:a}=s,{protocol:o,hostname:h,port:u,pathname:l}=(0,c.e)(s.name),d=new m(i,0|r,0|n,"".concat(o,"://").concat(h,":").concat(u).
1concat(l),a);this.#s(d)}this.#i=0|e[e.length-1].fetchStart}}storeErrorAgg(e,t,s,i){"err"===e&&this.#t()&&this.#s(new m("error",i.time,i.time,s.message,s.stackHash))}storeXhrAgg(e,t,s,i){"xhr"===e&&this.#t()&&this.#s(new m("Ajax",i.time,i.time+i.duration,"".concat(s.status," ").concat(s.method,": ").concat(s.host).concat(s.pathname),"ajax"))}isEmpty(){return 0===this.nodeCount}save(){this.#e=this.trace}get(){return[{targetApp:this.parent.agentRef.runtime.entityManager.get(),data:this.takeSTNs()}]}clear(){this.trace={},this.nodeCount=0,this.prevStoredEvents.clear(),this.earliestTimeStamp=1/0,this.latestTimeStamp=0}reloadSave(){for(let e of Object.values(this.#e))for(let t of e){if(!this.#t())return;this.#s(t)}}clearSave(){this.#e=void 0}}var g=s(16219),v=s(81666),T=s(34614),b=s(45285);class N extends n.m{static featureName=r.FEATURE_NAME;constructor(e){super(e,r.FEATURE_NAME),this.harvestOpts.raw=!0,this.entitled=void 0,this.everHarvested=!1,this.harvesting=!1,this.events=new f(this),this.waitForFlags(["sts","st"]).then(([e,t])=>this.initialize(e,t))}initialize(e,t,s){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(o.wO.RESET,()=>{this.blocked||this.abort(1)}),this.ee.on(o.wO.UPDATE,(e,t)=>{this.blocked||(this.mode!==o.IK.FULL&&(t.sessionReplayMode===o.IK.FULL||t.sessionTraceMode===o.IK.FULL)&&this.switchToFull(),(this.sessionId!==t.value||"cross-tab"===e&&t.sessionTraceMode===o.IK.OFF)&&this.abort(2))}),"undefined"!=typeof PerformanceNavigationTiming?this.events.storeTiming(a._A.performance?.getEntriesByType?.("navigation")[0]):this.events.storeTiming(a._A.performance?.timing,!0)),this.agentRef.runtime.session.isNew||s?this.mode=e:this.mode=this.agentRef.runtime.session.state.sessionTraceMode,this.mode===o.IK.OFF)?this.deregisterDrain():void(this.timeKeeper??=this.agentRef.runtime.timeKeeper,(0,i.X)("bst",(...e)=>this.events.storeEvent(...e),this.featureName,this.ee),(0,i.X)("bstResource",(...e)=>this.events.storeResources(...e),this.featureName,this.ee),(0,i.X)("bstHist",(...e)=>this.events.storeHist(...e),this.featureName,this.ee),(0,i.X)("bstXhrAgg",(...e)=>this.events.storeXhrAgg(...e),this.featureName,this.ee),(0,i.X)("bstApi",(...e)=>this.events.storeNode(...e),this.featureName,this.ee),(0,i.X)("trace-jserror",(...e)=>this.events.storeErrorAgg(...e),this.featureName,this.ee),(0,i.X)("pvtAdded",(...e)=>this.events.processPVT(...e),this.featureName,this.ee),this.mode!==o.IK.FULL&&(0,i.X)("trace-jserror",()=>{this.mode===o.IK.ERROR&&this.switchToFull()},this.featureName,this.ee),this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.drain(),this.agentRef.runtime.harvester.triggerHarvestFor(this))}preHarvestChecks(){if(!this.blocked&&this.mode===o.IK.FULL&&this.timeKeeper?.ready&&this.agentRef.runtime.session){if(this.sessionId!==this.agentRef.runtime.session.state.value||this.ptid!==this.agentRef.runtime.ptid){this.abort(3);return}return!0}}serializer({stns:e}){if(e.length)return this.everHarvested=!0,(0,v.R)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder({stns:e,earliestTimeStamp:t,latestTimeStamp:s}){let i=!this.agentRef.runtime.session.state.traceHarvestStarted;i&&this.agentRef.runtime.session.write({traceHarvestStarted:!0});let r=1===this.agentRef.runtime.session.state.sessionReplayMode,n=this.agentRef.info.jsAttributes["enduser.id"],a=this.agentRef.runtime.appMetadata.agents?.[0]?.entityGuid;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(t)),attributes:(0,g.j6)({...a&&{entityGuid:a},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(t)),"trace.lastTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(s)),"trace.nodes":e.length,"trace.originTimestamp":this.timeKeeper.correctedOriginTime,agentVersion:this.agentRef.runtime.version,...i&&{firstSessionHarvest:i},...r&&{hasReplay:r},ptid:"".concat(this.ptid),session:"".concat(this.sessionId),...n&&{"enduser.id":this.obfuscator.obfuscateString(n)},currentUrl:this.obfuscator.obfuscateString((0,T.f)(""+location))},5e3).substring(1)}}switchToFull(){if(this.mode===o.IK.FULL||!this.entitled||this.blocked)return;let e=this.mode;if(this.mode=o.IK.FULL,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),e===o.IK.OFF||!this.initialized)return this.initialize(this.mode,this.entitled);this.initialized&&(this.events.trimSTNs(3e4),this.agentRef.runtime.harvester.triggerHarvestFor(this))}abort(e){(0,b.Z)(60,e),this.blocked=!0,this.mode=o.IK.OFF,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.events.clear()}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.