1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{24539:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>f,createRumProfiler:()=>m});var s=n(42236),r=n(35428),i=n(13938),a=n(32068),o=n(74349),u=n(90198),l=n(74613);let c=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,p=(e,t)=>e||function(e){return e?e.replace(c,"/?"):"/"}(t);var d=n(87780);let f={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function m(e,t,n,c,v,g,h,w=f){let b,k=(0,l.wP)(e,t,g,6),I=[],_={state:"stopped",stateReason:"initializing"};function M(){if("running"===_.state)return;let t=h.findView();b=t?{startClocks:t.startClocks,viewId:t.id,viewName:p(t.name,document.location.pathname)}:void 0,I.push((0,s.q)(e,window,"visibilitychange",D).stop,(0,s.q)(e,window,"beforeunload",C).stop),y()}function S(e){(function(e){if("paused"===_.state){_={state:"stopped",stateReason:e};return}if("running"!==_.state)return;let t=_;_={state:"stopped",stateReason:e},t.cleanupTasks.forEach(e=>e()),E(t)})(e),I.forEach(e=>e()),c.set({status:"stopped",error_reason:void 0})}function y(){let e,n=(0,r.VZ)().Profiler;if(!n)throw c.set({status:"error",error_reason:"not-supported-by-browser"}),Error("RUM Profiler is not supported in this browser.");"running"===_.state&&E(_);let{cleanupTasks:s}=function(e){if("running"===e.state)return{cleanupTasks:e.cleanupTasks};let n=[];return n.push(t.subscribe(2,e=>{let t={viewId:e.id,viewName:p(e.name,document.location.pathname),startClocks:e.startClocks};P(t),b=t}).unsubscribe),{cleanupTasks:n}}(_);try{e=new n({sampleInterval:w.sampleIntervalMs,maxBufferSize:Math.round(1.5*w.collectIntervalMs/w.sampleIntervalMs)})}catch(e){e instanceof Error&&e.message.includes("disabled by Document Policy")?(i.Vy.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",e),c.set({status:"error",error_reason:"missing-document-policy-header"})):c.set({status:"error",error_reason:"unexpected-exception"});return}c.set({status:"running",error_reason:void 0}),_={state:"running",startClocks:(0,a.M8)(),profiler:e,timeoutId:(0,o.wg)(y,w.collectIntervalMs),views:[],cleanupTasks:s,longTasks:[]},P(b),e.addEventListener("samplebufferfull",T)}function E(t){(0,o.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",T);let{startClocks:s,views:r}=t;t.profiler.stop().then(t=>{let i=(0,a.M8)(),o=(0,a.vk)(s.timeStamp,i.timeStamp),u=v.findLongTasks(s.relative,o),l=o<w.minProfileDurationMs,c=function(e){let t=0;for(let n of e)void 0!==n.stackId&&t++;return t}(t.samples)<w.minNumberOfSamples;0===u.length&&(l||c)||function(t){var s;let r={event:function(e,t,n){let s=(0,d.m5)(t),r=function(e,t,n){let{ids:s,names:r}=function(e){let t={ids:[],names:[]};for(let n of e)t.ids.push(n.viewId),n.viewName&&t.names.push(n.viewName);return t.names=Array.from(new Set(t.names)),t}(e.views),i=e.longTasks.map(e=>e.id).filter(e=>void 0!==e),a={application:{id:t}};return n&&(a.session={id:n}),s.length&&(a.view={id:s,name:r}),i.length&&(a.long_task={id:i}),a}(e,t.applicationId,n),i=s.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]);return{...r,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:i.join(","),_dd:{clock_drift:(0,a.TP)()}}}(t,e,null==(s=n.findTrackedSession())?void 0:s.id),"wall-time.json":t};k.send(r)}(Object.assign(t,{startClocks:s,endClocks:i,clocksOrigin:(0,a.Oc)(),longTasks:u,views:r,sampleInterval:w.sampleIntervalMs}))}).catch(u.Dx)}function P(e){"running"===_.state&&e&&_.views.push(e)}function T(){y()}function D(){"hidden"===document.visibilityState&&"running"===_.state?function(){if("running"!==_.state)return;let e=_;_={state:"paused"},e.cleanupTasks.forEach(e=>e()),E(e)}():"visible"===document.visibilityState&&"paused"===_.state&&y()}function C(){y()}return t.subscribe(9,()=>{S("session-expired")}),t.subscribe(10,()=>{"stopped"===_.state&&"session-expired"===_.stateReason&&M()}),{start:M,stop:function(){S("stopped-by-user")},isStopped:function(){return"stopped"===_.state},isRunning:function(){return"running"===_.state},isPaused:function(){return"paused"===_.state}}}}}]);
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.