import{Mt as o}from"./cells-B6jS0AIj.js";import{t}from"./createLucideIcon-DA8ZBm4D.js";import{n as r,r as c,t as p}from"./file-video-camera-DxgiJa0r.js";import{t as i}from"./file-text-Cng4_CT2.js";import{t as d}from"./file-CEq0dl8f.js";var m=t("file-audio",[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]]),s=t("file-code",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]),h=t("folder-archive",[["circle",{cx:"15",cy:"19",r:"2",key:"u2pros"}],["path",{d:"M20.9 19.8A2 2 0 0 0 22 18V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h5.1",key:"1jj40k"}],["path",{d:"M15 11v-1",key:"cntcp"}],["path",{d:"M15 17v-2",key:"1279jj"}]]),f=t("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);function u(a){let n=a.split(".").pop();if(n===void 0)return"unknown";switch(n.toLowerCase()){case"py":return"python";case"txt":case"md":case"qmd":return"text";case"png":case"jpg":case"jpeg":case"gif":return"image";case"csv":return"data";case"json":return"json";case"js":case"ts":case"tsx":case"html":case"css":case"toml":case"yaml":case"yml":case"wasm":return"code";case"mp3":case"m4a":case"m4v":case"ogg":case"wav":return"audio";case"mp4":case"webm":case"mkv":return"video";case"pdf":return"pdf";case"zip":case"tar":case"gz":return"zip";default:return"unknown"}}const v={directory:f,python:s,json:r,code:s,text:i,image:c,audio:m,video:p,pdf:s,zip:h,data:o,unknown:d};var e="    ";const y={directory:a=>`os.listdir("${a}")`,python:a=>`with open("${a}", "r") as _f:
${e}...
`,json:a=>`with open("${a}", "r") as _f:
${e}_data = json.load(_f)
`,code:a=>`with open("${a}", "r") as _f:
${e}...
`,text:a=>`with open("${a}", "r") as _f:
${e}...
`,image:a=>`mo.image("${a}")`,audio:a=>`mo.audio("${a}")`,video:a=>`mo.video("${a}")`,pdf:a=>`with open("${a}", "rb") as _f:
${e}...
`,zip:a=>`with open("${a}", "rb") as _f:
${e}...
`,data:a=>`with open("${a}", "r") as _f:
${e}...
`,unknown:a=>`with open("${a}", "r") as _f:
${e}...
`};export{y as n,u as r,v as t};
