1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{94341:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>_,createRumProfiler:()=>I});var i=n(39307),s=n(3049),r=n(97089),a=n(37165),l=n(86739),o=n(8450),u=n(78005),d=n(57952);let c=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,p=(e,t)=>e||function(e){return e?e.replace(c,"/?"):"/"}(t);var f=n(65795),v=n(56842),m=n(97730);let b=v.AQ;function g(e){let t=(0,m.qj)({expireDelay:b});return e.subscribe(12,({rawRumEvent:e,startClocks:n,duration:i})=>{"long_task"===e.type&&t.add({id:e.long_task.id,startClocks:n,duration:i,entryType:e.long_task.entry_type===d.K.LONG_TASK?d.do.LONG_TASK:d.do.LONG_ANIMATION_FRAME},n.relative).close((0,l.Gw)(n.relative,i))}),t}let h=v.AQ;function w(e){let t=(0,m.qj)({expireDelay:h});return e.subscribe(15,e=>{t.add({id:e.id,label:"",startClocks:e.startClocks,duration:void 0},e.startClocks.relative)}),e.subscribe(12,({rawRumEvent:e,startClocks:n,duration:i})=>{if("action"===e.type){let s=t.getEntries(n.relative).find(t=>t.value.id===e.action.id),r=null!=i?i:0;s?(s.value.duration=r,s.close((0,l.Gw)(n.relative,r))):t.add({id:e.action.id,label:"",startClocks:n,duration:i},n.relative).close((0,l.Gw)(n.relative,r))}}),t}let k=v.AQ;function y(e){let t=(0,m.qj)({expireDelay:k});return e.subscribe(16,e=>{t.add({id:e.id,startClocks:e.startClocks,duration:void 0,label:e.name},e.startClocks.relative)}),e.subscribe(12,({rawRumEvent:e,startClocks:n,duration:i})=>{if("vital"===e.type){let s=t.getEntries(n.relative).find(t=>t.value.id===e.vital.id);s?(s.value.duration=i,s.close((0,l.Gw)(n.relative,i))):t.add({id:e.vital.id,startClocks:n,duration:i,label:e.vital.name},n.relative).close((0,l.Gw)(n.relative,i))}}),t}let _={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function I(e,t,n,c,v,m,b=_){let h,k=(0,d.wP)(e,t,v,6),M=[],S=(0,i.B)(g)(t),C=(0,i.B)(w)(t),A=(0,i.B)(y)(t),E={state:"stopped",stateReason:"initializing"};function N(){if("running"===E.state)return;let t=m.findView();h=t?{startClocks:t.startClocks,viewId:t.id,viewName:p(t.name,document.location.pathname)}:void 0,M.push((0,s.q)(e,window,"visibilitychange",j).stop,(0,s.q)(e,window,"beforeunload",x).stop),D()}function T(e){(function(e){if("running"!==E.state){("paused"===E.state||"stopped"===E.state&&"stopped-by-user"===e)&&(E={state:"stopped",stateReason:e});return}let t=E;E={state:"stopped",stateReason:e},t.cleanupTasks.forEach(e=>e()),O(t)})(e),M.forEach(e=>e()),M.length=0,c.set({status:"stopped",error_reason:void 0})}function D(){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"===E.state&&O(E);let{cleanupTasks:i}=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),h=t}).unsubscribe),{cleanupTasks:n}}(E);try{e=new n({sampleInterval:b.sampleIntervalMs,maxBufferSize:Math.round(1.5*b.collectIntervalMs/b.sampleIntervalMs)})}catch(e){e instanceof Error&&e.message.includes("disabled by Document Policy")?(a.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}),E={state:"running",startClocks:(0,l.M8)(),profiler:e,timeoutId:(0,o.wg)(D,b.collectIntervalMs),views:[],cleanupTasks:i,longTasks:[]},P(h),e.addEventListener("samplebufferfull",R)}function O(t){(0,o.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",R);let{startClocks:i,views:s}=t;t.profiler.stop().then(t=>{let r=(0,l.M8)(),a=(0,l.vk)(i.relative,r.relative),o=S.findAll(i.relative,a),u=C.findAll(i.relative,a),d=A.findAll(i.relative,a),c=a<b.minProfileDurationMs,p=function(e){let t=0;for(let n of e)void 0!==n.stackId&&t++;return t}(t.samples)<b.minNumberOfSamples;0===o.length&&(c||p)||function(t){var i;let s={event:function(e,t,n){let i=(0,f.m5)(t),s=function(e,t,n){var i,s;let{ids:r,names:a}=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),l=e.longTasks.map(e=>e.id).filter(e=>void 0!==e),o=null!=(s=null==(i=e.actions)?void 0:i.map(e=>e.id).filter(e=>void 0!==e))?s:[],{ids:u,labels:d}=function(e){let t={ids:[],labels:[]};if(!e)return t;for(let n of e)t.ids.push(n.id),t.labels.push(n.label);return t.labels=Array.from(new Set(t.labels)),t}(e.vitals),c={application:{id:t}};return n&&(c.session={id:n}),r.length&&(c.view={id:r,name:a}),l.length&&(c.long_task={id:l}),o.length&&(c.action={id:o,label:[]}),u.length&&(c.vital={id:u,label:d}),c}(e,t.applicationId,n),r=i.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]);return{...s,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:r.join(","),_dd:{clock_drift:(0,l.TP)()}}}(t,e,null==(i=n.findTrackedSession())?void 0:i.id),"wall-time.json":t};k.send(s)}(Object.assign(t,{startClocks:i,endClocks:r,clocksOrigin:(0,l.Oc)(),longTasks:o,actions:u,vitals:d,views:s,sampleInterval:b.sampleIntervalMs}))}).catch(u.Dx)}function P(e){"running"===E.state&&e&&E.views.push(e)}function R(){D()}function j(){"hidden"===document.visibilityState&&"running"===E.state?function(){if("running"!==E.state)return;let e=E;E={state:"paused"}
1,e.cleanupTasks.forEach(e=>e()),O(e)}():"visible"===document.visibilityState&&"paused"===E.state&&D()}function x(){D()}return t.subscribe(9,()=>{T("session-expired")}),t.subscribe(10,()=>{"stopped"===E.state&&"session-expired"===E.stateReason&&N()}),{start:N,stop:function(){T("stopped-by-user")},isStopped:function(){return"stopped"===E.state},isRunning:function(){return"running"===E.state},isPaused:function(){return"paused"===E.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.