PageSourceSearch

https://alma-prod-cdn.helloalma.com/bundles/js/datadogProfiler.3519309f.chunk.min.js

js helloalma.com collected 2026-09-24 18:47:51 UTC 6,070 bytes, 1 lines download raw bytes

1"use strict";(globalThis.rspackChunkcove=globalThis.rspackChunkcove||[]).push([[1201],{76794(e,t,i){i.d(t,{createRumProfiler:()=>_});var s=i(66216),n=i(80886),r=i(7813),a=i(32234),l=i(29336),o=i(93001),u=i(42182),d=i(89487);let c=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,p=(e,t)=>e||(t?t.replace(c,"/?"):"/");var f=i(62360),v=i(72765),m=i(44193);let b=v.AQ;function g(e){let t=(0,m.qj)({expireDelay:b});return e.subscribe(12,({rawRumEvent:e,startClocks:i,duration:s})=>{"long_task"===e.type&&t.add({id:e.long_task.id,startClocks:i,duration:s,entryType:e.long_task.entry_type===d.K.LONG_TASK?d.do.LONG_TASK:d.do.LONG_ANIMATION_FRAME},i.relative).close((0,l.Gw)(i.relative,s))}),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:i,duration:s})=>{if("action"===e.type){let n=t.getEntries(i.relative).find(t=>t.value.id===e.action.id),r=s??0;n?(n.value.duration=r,n.close((0,l.Gw)(i.relative,r))):t.add({id:e.action.id,label:"",startClocks:i,duration:s},i.relative).close((0,l.Gw)(i.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:i,duration:s})=>{if("vital"===e.type){let n=t.getEntries(i.relative).find(t=>t.value.id===e.vital.id);n?(n.value.duration=s,n.close((0,l.Gw)(i.relative,s))):t.add({id:e.vital.id,startClocks:i,duration:s,label:e.vital.name},i.relative).close((0,l.Gw)(i.relative,s))}}),t}let I={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function _(e,t,i,c,v,m,b=I){let h,k=(0,d.wP)(e,t,v,6),M=[],S=(0,s.B)(g)(t),C=(0,s.B)(w)(t),T=(0,s.B)(y)(t),A={state:"stopped",stateReason:"initializing"};function D(){if("running"===A.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,n.q)(e,window,"visibilitychange",x).stop,(0,n.q)(e,window,"beforeunload",G).stop),N()}function E(e){(function(e){if("running"!==A.state){("paused"===A.state||"stopped"===A.state&&"stopped-by-user"===e)&&(A={state:"stopped",stateReason:e});return}let t=A;A={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 N(){let e,i=(0,r.VZ)().Profiler;if(!i)throw c.set({status:"error",error_reason:"not-supported-by-browser"}),Error("RUM Profiler is not supported in this browser.");"running"===A.state&&O(A);let{cleanupTasks:s}=function(e){if("running"===e.state)return{cleanupTasks:e.cleanupTasks};let i=[];return i.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:i}}(A);try{e=new i({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}),A={state:"running",startClocks:(0,l.M8)(),profiler:e,timeoutId:(0,o.wg)(N,b.collectIntervalMs),views:[],cleanupTasks:s,longTasks:[]},P(h),e.addEventListener("samplebufferfull",j)}function O(t){(0,o.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",j);let{startClocks:s,views:n}=t;t.profiler.stop().then(t=>{let r=(0,l.M8)(),a=(0,l.vk)(s.relative,r.relative),o=S.findAll(s.relative,a),u=C.findAll(s.relative,a),d=T.findAll(s.relative,a),c=a<b.minProfileDurationMs,p=function(e){let t=0;for(let i of e)void 0!==i.stackId&&t++;return t}(t.samples)<b.minNumberOfSamples;0===o.length&&(c||p)||function(t){var s,n,r;let a,o,u,d=i.findTrackedSession()?.id,c={event:(s=t,n=e,r=d,a=(0,f.m5)(n),o=function(e,t,i){let{ids:s,names:n}=function(e){let t={ids:[],names:[]};for(let i of e)t.ids.push(i.viewId),i.viewName&&t.names.push(i.viewName);return t.names=Array.from(new Set(t.names)),t}(e.views),r=e.longTasks.map(e=>e.id).filter(e=>void 0!==e),a=e.actions?.map(e=>e.id).filter(e=>void 0!==e)??[],{ids:l,labels:o}=function(e){let t={ids:[],labels:[]};if(!e)return t;for(let i of e)t.ids.push(i.id),t.labels.push(i.label);return t.labels=Array.from(new Set(t.labels)),t}(e.vitals),u={application:{id:t}};return i&&(u.session={id:i}),s.length&&(u.view={id:s,name:n}),r.length&&(u.long_task={id:r}),a.length&&(u.action={id:a,label:[]}),l.length&&(u.vital={id:l,label:o}),u}(s,n.applicationId,r),u=a.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]),{...o,attachments:["wall-time.json"],start:new Date(s.startClocks.timeStamp).toISOString(),end:new Date(s.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:u.join(","),_dd:{clock_drift:(0,l.TP)()}}),"wall-time.json":t};k.send(c)}(Object.assign(t,{startClocks:s,endClocks:r,clocksOrigin:(0,l.Oc)(),longTasks:o,actions:u,vitals:d,views:n,sampleInterval:b.sampleIntervalMs}))}).catch(u.Dx)}function P(e){"running"===A.state&&e&&A.views.push(e)}function j(){N()}function x(){"hidden"===document.visibilityState&&"running"===A.state?function(){if("running"!==A.state)return;let e=A;A={state:"paused"}
1,e.cleanupTasks.forEach(e=>e()),O(e)}():"visible"===document.visibilityState&&"paused"===A.state&&N()}function G(){N()}return t.subscribe(9,()=>{E("session-expired")}),t.subscribe(10,()=>{"stopped"===A.state&&"session-expired"===A.stateReason&&D()}),{start:D,stop:function(){E("stopped-by-user")},isStopped:function(){return"stopped"===A.state},isRunning:function(){return"running"===A.state},isPaused:function(){return"paused"===A.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.