import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{O as n,b as r,dn as i,x as a,xt as o,y as s}from"./app-initial~avatarOverlayCompositionSurface~index-9fQ9wihu~index-BFCcxPM5~mapbox-gl-DVWlwqb~kppdhley-CabsBVhy.js";import{bo as c,w as l}from"./app-initial~avatarOverlayCompositionSurface~artifact-tab-content.electron~notebook-preview-~ngwudnyz-D_QFwR2V.js";import{Gs as u,Ws as d}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~business-checkout~oxnpxkxc-CRvN_72X.js";import{n as f,t as p}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~settings-command-~kt7wj8fo-CamRq96C.js";function m(e){return g(e,`editedFilePaths`)}function h(e){return g(e,`referencedFilePaths`)}function g(e,t){let n=[],r=new Set;for(let i of e)for(let e of d(i)[t])r.has(e)||(r.add(e),n.push(e));return n}var _=e((()=>{u()}));function v(){return n(T)}function y(){return c.isInternal(p())}function b(e,t){let n=`[non-serializable title]`;return typeof t.title==`string`?n=t.title:(0,w.isValidElement)(t.title)&&(n=``),{id:e,titleText:n,lines:t.lines}}function x(e,t,n){let r=b(t,n);e.set(T,e=>[...e.filter(e=>e.id!==t),r])}function S(e,t){e.set(T,e=>e.filter(e=>e.id!==t))}function C(){if(typeof crypto<`u`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID();let e=E;return E+=1,`debug-panel-${e}`}var w,T,E,D=e((()=>{a(),l(),w=t(i(),1),r(),f(),T=o(s,[]),E=0}));export{y as a,h as c,x as i,_ as l,D as n,v as o,S as r,m as s,C as t};
//# sourceMappingURL=use-debug-panel-ib-bCja1.js.map