1import{dg as g,g as y,A as o,dh as b,di as m,dj as t,x as w}from"./7sqbLYD6.js";function h(){const c=t("clipboard-read"),i=t("clipboard-write"),p=w(""),{copy:l,isSupported:n}=g({source:p,legacy:!0}),{t:e}=y();return{handleCopy:(s,a=!0)=>(console.log(`Clipboard Permission: read ${c.value} | write ${i.value}`),console.log("isSupported",n.value),n.value?(l(s),a&&o.success(e("copy.success")),!0):(a&&o.warning(e("copy.notSupport")),!1)),handleCopyImage:async(s,a=()=>{},u=()=>{})=>{const r=b(s);if(navigator.clipboard&&navigator.clipboard.write){const d=[new ClipboardItem({[r.type||"image/png"]:r})];navigator.clipboard.write(d).then(()=>{a(),o.success(e("copy.success"))},()=>{u(),o.warning(e("copy.notSupport"))})}else m(s,"image.png"),o.success(e("download.success"))}}}export{h as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.