import{t as e}from"./jsx-runtime-By8HlURe.js";import{i as t,o as n,s as r}from"./imeta-AKViBfwk.js";var i=e();function a({url:e,encryption:a,enabled:o,noticeClassName:s,noticeFill:c,onError:l,...u}){let d=r(e),f=n(e,a,{enabled:o});return f.encrypted&&!f.src?(0,i.jsx)(t,{fill:c,loading:f.loading,unsupported:f.unsupported,tooLarge:f.tooLarge,byteSize:f.byteSize,onDecryptAnyway:f.decryptAnyway,className:s}):(0,i.jsx)(`img`,{...u,src:f.encrypted?f.src:d.src,onError:e=>{f.encrypted||d.onError(),l?.(e)}})}export{a as t};