PageSourceSearch

https://app.middleware.io/static/DZLOMfkp.production.bundle.min.js

js middleware.io collected 2026-10-02 03:34:42 UTC 5,577 bytes, 1 lines download raw bytes

1import{r,M as x,j as E,F as b}from"./CZzrexQa.production.bundle.min.js";import{A}from"./owG9NO0W.production.bundle.min.js";import{u as L}from"./9eHdvLN4.production.bundle.min.js";import{cl as O,cm as S}from"./DeceMiF-.production.bundle.min.js";import{A as B}from"./W-nmv59D.production.bundle.min.js";import"./Ch78CD0x.production.bundle.min.js";import"./DFn2u8qh.production.bundle.min.js";import"./DGYQp8fe.production.bundle.min.js";import"./D4lvmK5r.production.bundle.min.js";import"./Bm1LOIPR.production.bundle.min.js";import"./kkIr59yR.production.bundle.min.js";import"./BmBjCq8D.production.bundle.min.js";import"./CHClG9UV.production.bundle.min.js";import"./Dsqj8S3w.production.bundle.min.js";import"./D0x1Z4HE.production.bundle.min.js";import"./CUZmxn9S.production.bundle.min.js";import"./DvLd3evF.production.bundle.min.js";import"./E6csxmgU.production.bundle.min.js";import"./tkddr5kZ.production.bundle.min.js";import"./3wIbuO__.production.bundle.min.js";import"./C_cH1u9D.production.bundle.min.js";import"./DGAisTA8.production.bundle.min.js";import"./D8sKcCdJ.production.bundle.min.js";import"./DtpVAsok.production.bundle.min.js";import"./2mZBARql.production.bundle.min.js";import"./vhNSgALD.production.bundle.min.js";import"./YCM_kEyP.production.bundle.min.js";import"./DWUNlcjA.production.bundle.min.js";import"./Ci_hGDFV.production.bundle.min.js";import"./B0uEge7d.production.bundle.min.js";import"./CiD4UJCU.production.bundle.min.js";import"./b2Mkg01q.production.bundle.min.js";import"./DwmhJbxl.production.bundle.min.js";import"./D-90pMQ7.production.bundle.min.js";import"./DQegFpUo.production.bundle.min.js";import"./Y4Ob0Is8.production.bundle.min.js";import"./oN3AJijl.production.bundle.min.js";import"./CXT9N8xZ.production.bundle.min.js";import"./C_Ln3svq.production.bundle.min.js";import"./7LcJfZNO.production.bundle.min.js";import"./CNsPFEJO.production.bundle.min.js";import"./CJIgguc4.production.bundle.min.js";import"./zzLyrqbE.production.bundle.min.js";import"./CpVN2k6O.production.bundle.min.js";import"./B7Fri_dM.production.bundle.min.js";import"./CLBsRoPD.production.bundle.min.js";import"./D1TNtnEv.production.bundle.min.js";import"./DnQqxH0F.production.bundle.min.js";const k={"memory:alloc_objects:count::":"Object Allocation","memory:alloc_space:bytes::":"Memory Allocation","memory:inuse_objects:count::":"Objects in Use","memory:inuse_space:bytes::":"Memory in Use","process_cpu:cpu:nanoseconds:cpu:nanoseconds":"CPU Usage",pyroscope_app:"Applications","wall:wall:nanoseconds:cpu:nanoseconds":"Wall-clock time","block:contentions:count::":"Blocking Contentions","block:delay:nanoseconds::":"Blocking Delays","memory:alloc_in_new_tlab_bytes:bytes::":"Bytes Allocated (TLAB)","memory:alloc_outside_tlab_bytes:bytes::":"Bytes Allocated (Outside TLAB)","memory:alloc_outside_tlab_objects:count::":"Objects Allocated (Outside TLAB)","memory:alloc_in_new_tlab_objects:count::":"Objects Allocated (TLAB)"},h=p=>{var u;return(u=Object.entries(k).find(([d,c])=>c===p))==null?void 0:u[0]},xe=()=>{const p=r.useContext(x),u=L(),[d,c]=r.useState([]),[f,_]=r.useState("");r.useEffect(()=>{g()},[]);const g=r.useCallback(()=>{u(O((e,o)=>{var i;if(e&&Array.isArray(o.data)&&((i=o.data)==null?void 0:i.length)>0){const t=o.data.map((l,a)=>({title:k[l],items:[{title:"All services",rawTitle:"all",isChecked:a===0,key:l,type:A.Checkbox}],isLoading:!0,isActive:!0,key:l}));c(t);const s={};s.profiling={operator:b.Equal,values:[o.data[0]]},p.actions.handleApplyFilters(s),o.data.forEach(l=>{C(l)})}}))},[]),C=r.useCallback(e=>{const o=JSON.stringify({matchers:[`{__profile_type__="${e}"}`]});u(S(o,(i,t)=>{if(i&&Object.keys(t.data).length>0){const s=F(t.data.labelsSet,e);c(l=>l.map(a=>h(a.title)===e?{...a,isActive:!0,items:[...(a.items||[]).filter(n=>n.rawTitle==="all"),...s],isLoading:!1}:a))}}))},[]);r.useEffect(()=>()=>{p.actions.handleApplyFilters({})},[]);const F=r.useCallback((e,o)=>e.map(i=>{const t=i.labels.find(s=>s.name==="pyroscope_app");return{title:t?t.value:"",rawTitle:t?t.value:"",isChecked:!1,key:o,type:A.Checkbox}}).filter(i=>i.title!==""),[]),v=r.useCallback(()=>{c(e=>e.map(o=>{var i;return{...o,items:(i=o.items)==null?void 0:i.map(t=>({...t,isChecked:!1}
1))}}))},[]),w=r.useCallback(e=>{_(e)},[]),T=()=>f===""?d:d.map(e=>{var i;const o=(i=e.items)==null?void 0:i.filter(t=>{var s;return(s=t==null?void 0:t.title)==null?void 0:s.toLowerCase().includes(f==null?void 0:f.toLowerCase())});return{...e,items:o}}),j=(e,o)=>{var l;const t=((l=p.params.appliedFilters.profiling)==null?void 0:l.values)||[],s=o;if(e.rawTitle==="all")p.actions.handleApplyFilters({profiling:{operator:b.Equal,values:[s]}});else if(e.rawTitle){const a=t.slice(1);if(t[0]===s){const n=a.includes(e.rawTitle)?a.filter(y=>y!==e.rawTitle):[...a,e.rawTitle];p.actions.handleApplyFilters({profiling:{operator:b.Equal,values:[s,...n]}})}else p.actions.handleApplyFilters({profiling:{operator:b.Equal,values:[s,e.rawTitle]}})}};return r.useEffect(()=>{var i;const{appliedFilters:e}=p.params,o=((i=e.profiling)==null?void 0:i.values)??[];if(o.length>0){const t=o[0]||"",s=o.slice(1),l=d.map(a=>{var n,y;return h(a.title)===t?{...a,items:(n=a.items)==null?void 0:n.map(m=>m.rawTitle==="all"?{...m,isChecked:s.length===0}:{...m,isChecked:s.includes(m.rawTitle||"")})}:{...a,items:(y=a.items)==null?void 0:y.map(m=>({...m,isChecked:!1}))}});c(l)}else{const t=d.map(s=>{var l;return{...s,items:(l=s.items)==null?void 0:l.map(a=>({...a,isChecked:!1}))}});c(t)}},[p.params.appliedFilters]),E.jsx(B,{data:T(),clearAll:v,handleOnCheckboxClick:j,handleSearch:w})};export{xe as default};

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.