import{A as e,B as t,Bt as n,F as r,L as i,N as a,Nt as o,Pt as s,Vt as c,X as l,Y as u,_t as d,a as f,at as p,bt as m,ft as h,g,it as _,o as v,ot as y,u as b,vt as x,z as S}from"./BT3KAag_.js";import"./t62M88qj.js";import"./BZnJ8tbJ.js";var C=[{exts:[`.md`],label:`Markdown`},{exts:[`.txt`],label:`Plain text`},{exts:[`.csv`],label:`CSV datasets`},{exts:[`.pdf`],label:`PDF documents`},{exts:[`.docx`],label:`Word documents`},{exts:[`.xlsx`],label:`Spreadsheets (uploaded as assets)`},{exts:[`.html`],label:`Browser bookmarks`},{exts:[`.jpg`,`.png`,`.gif`,`.webp`,`.svg`],label:`Images`}],w=S(`<span class="filetype-pill svelte-1ktoue2"> </span>`),T=S(`<div class="filetypes-list svelte-1ktoue2"></div>`);function E(t){var n=T();e(n,5,()=>C,e=>e.label,(e,t)=>{var n=w(),a=h(n);c(n),y(e=>r(a,`${l(t).label??``} (${e??``})`),[()=>l(t).exts.join(`, `)]),i(e,n)}),c(n),i(t,n)}var D=t(`<title> </title>`),O=t(`<svg><!><path d="M26,2H8A2,2,0,0,0,6,4V8H4v2H6v5H4v2H6v5H4v2H6v4a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V4A2,2,0,0,0,26,2Zm0,26H8V24h2V22H8V17h2V15H8V10h2V8H8V4H26Z"></path><path d="M14 8H22V10H14z"></path><path d="M14 15H22V17H14z"></path><path d="M14 22H22V24H14z"></path></svg>`);function k(e,t){let m=f(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=f(m,[`size`,`title`]);s(t,!1);let C=d(),w=d(),T=v(t,`size`,8,16),E=v(t,`title`,8,void 0);_(()=>(u(m),u(E())),()=>{x(C,m[`aria-label`]||m[`aria-labelledby`]||E())}),_(()=>(l(C),u(m)),()=>{x(w,{"aria-hidden":l(C)?void 0:!0,role:l(C)?`img`:void 0,focusable:Number(m.tabindex)===0?!0:void 0})}),p(),b();var k=O();g(k,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...l(w),...S}));var A=h(k),j=e=>{var t=D(),n=h(t,!0);c(t),y(()=>r(n,E())),i(e,t)};a(A,e=>{E()&&e(j)}),n(4),c(k),i(e,k),o()}var A=t(`<title> </title>`),j=t(`<svg><!><path d="M15 10H17V18H15z"></path><path d="M20 14H22V18H20z"></path><path d="M10 12H12V18H10z"></path><path d="M25,4H17V2H15V4H7A2,2,0,0,0,5,6V20a2,2,0,0,0,2,2h8v6H11v2H21V28H17V22h8a2,2,0,0,0,2-2V6A2,2,0,0,0,25,4Zm0,16H7V6H25Z"></path></svg>`);function M(e,t){let m=f(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=f(m,[`size`,`title`]);s(t,!1);let C=d(),w=d(),T=v(t,`size`,8,16),E=v(t,`title`,8,void 0);_(()=>(u(m),u(E())),()=>{x(C,m[`aria-label`]||m[`aria-labelledby`]||E())}),_(()=>(l(C),u(m)),()=>{x(w,{"aria-hidden":l(C)?void 0:!0,role:l(C)?`img`:void 0,focusable:Number(m.tabindex)===0?!0:void 0})}),p(),b();var D=j();g(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...l(w),...S}));var O=h(D),k=e=>{var t=A(),n=h(t,!0);c(t),y(()=>r(n,E())),i(e,t)};a(O,e=>{E()&&e(k)}),n(4),c(D),i(e,D),o()}var N=t(`<title> </title>`),P=t(`<svg><!><path d="M6 18 7.41 19.41 15 11.83 15 30 17 30 17 11.83 24.59 19.41 26 18 16 8 6 18z"></path><path d="M6,8V4H26V8h2V4a2,2,0,0,0-2-2H6A2,2,0,0,0,4,4V8Z"></path></svg>`);function F(e,t){let m=f(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),S=f(m,[`size`,`title`]);s(t,!1);let C=d(),w=d(),T=v(t,`size`,8,16),E=v(t,`title`,8,void 0);_(()=>(u(m),u(E())),()=>{x(C,m[`aria-label`]||m[`aria-labelledby`]||E())}),_(()=>(l(C),u(m)),()=>{x(w,{"aria-hidden":l(C)?void 0:!0,role:l(C)?`img`:void 0,focusable:Number(m.tabindex)===0?!0:void 0})}),p(),b();var D=P();g(D,()=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`,width:T(),height:T(),...l(w),...S}));var O=h(D),k=e=>{var t=N(),n=h(t,!0);c(t),y(()=>r(n,E())),i(e,t)};a(O,e=>{E()&&e(k)}),n(2),c(D),i(e,D),o()}function I(){let e=m(null),t=m(!1),n=m(!1),r=m(0);return{get result(){return l(e)},get capturing(){return l(t)},get importing(){return l(n)},get focusTick(){return l(r)},set(t){x(e,t,!0)},clear(){x(e,null)},setCapturing(n){x(t,n,!0),n&&x(e,null)},setImporting(t){x(n,t,!0),t&&x(e,null)},requestFocus(){x(r,l(r)+1)}}}var L=I();export{E as a,k as i,F as n,M as r,L as t};