import{E as e,W as t,Y as n,_ as r,c as i,g as a,h as o,tn as s,v as c}from"./vendor/json-editor-vue-ddj4xtqm.js";import{ot as l}from"#entry";import{t as u}from"./filepath-item-osqp88cx.js";var d={mt2:``,grid:`~ cols-[max-content_1fr] gap-x-4`,"font-mono":``},f={"text-right":``},p={"ws-nowrap":``},m=e({__name:`StacktraceList`,props:{stacktrace:{}},setup(e){let m=l();function h(e){try{let t=new URL(e).pathname;return t.startsWith(`/_nuxt/`)&&(t=t.slice(6)),t.startsWith(`/@id/virtual:nuxt:`)?`#build/${t.split(`/.nuxt/`)[1]}`.replace(/\.m?js$/,``):t.includes(`/@fs/`)?`/${t.split(`/@fs/`)[1]}`:(m.value?.rootDir||``)+t}catch{return e}}return(l,m)=>{let g=u;return t(),c(`div`,d,[(t(!0),c(i,null,n(e.stacktrace,(e,n)=>(t(),c(i,{key:n},[o(`div`,f,s(e.functionName||`(anonymous)`),1),o(`div`,p,[e.fileName?(t(),a(g,{key:0,filepath:`${h(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:``},null,8,[`filepath`])):r(``,!0)])],64))),128))])}}}),h=Object.assign(m,{__name:`StacktraceList`});export{h as t};