import{B as e,Bt as t,F as n,L as r,N as i,Nt as a,Pt as o,Vt as s,X as c,Y as l,_t as u,a as d,at as f,ft as p,g as m,it as h,o as g,ot as _,u as v,vt as y}from"./BT3KAag_.js";import"./t62M88qj.js";import"./BZnJ8tbJ.js";import{t as b}from"./DgyLeDN4.js";var x=e(`<title> </title>`),S=e(`<svg><!><path d="M2 26H30V28H2z"></path><path d="M25.4,9c0.8-0.8,0.8-2,0-2.8c0,0,0,0,0,0l-3.6-3.6c-0.8-0.8-2-0.8-2.8,0c0,0,0,0,0,0l-15,15V24h6.4L25.4,9z M20.4,4L24,7.6	l-3,3L17.4,7L20.4,4z M6,22v-3.6l10-10l3.6,3.6l-10,10H6z"></path></svg>`);function C(e,b){let C=d(b,[`children`,`$$slots`,`$$events`,`$$legacy`]),w=d(C,[`size`,`title`]);o(b,!1);let T=u(),E=u(),D=g(b,`size`,8,16),O=g(b,`title`,8,void 0);h(()=>(l(C),l(O())),()=>{y(T,C[`aria-label`]||C[`aria-labelledby`]||O())}),h(()=>(c(T),l(C)),()=>{y(E,{"aria-hidden":c(T)?void 0:!0,role:c(T)?`img`:void 0,focusable:Number(C.tabindex)===0?!0:void 0})}),f(),v();var k=S();m(k,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:D(),height:D(),...c(E),...w}));var A=p(k),j=e=>{var t=x(),i=p(t,!0);s(t),_(()=>n(i,O())),r(e,t)};i(A,e=>{O()&&e(j)}),t(2),s(k),r(e,k),a()}function w(e,t,n={}){let{typographic:r=!0}=n,i=new Set([`agent`]);for(let e of t)i.add(e);return(r?b(e):e).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/\n/g,`<br>`).replace(/@([a-z0-9_-]+)/gi,(e,t)=>i.has(t.toLowerCase())?`<span class="sg-mention">${e}</span>`:e)}function T(e,t){let n=new Set([`agent`]);for(let e of t)n.add(e);let r=0;return e.replace(/(<[^>]+>)|([^<]+)/g,(e,t,i)=>t?(/^<(code|pre|a)[\s/>]/i.test(t)?r++:/^<\/(code|pre|a)>/i.test(t)&&(r=Math.max(0,r-1)),t):!i||r>0?i??``:i.replace(/@([a-z0-9_-]+)/gi,(e,t)=>n.has(t.toLowerCase())?`<span class="sg-mention">${e}</span>`:e))}export{w as n,C as r,T as t};