"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=s(u),l=new Set;function m(e){if(!l.has(e))throw new Promise(n=>{const t=new Image;t.src=e,t.onload=()=>{l.add(e),n(null)}})}function f({altText:e,className:n,imageRef:t,src:a,width:o,height:r,maxWidth:i}){return m(a),c.createElement("img",{className:n||void 0,src:a,alt:e,ref:t,style:{height:r,maxWidth:i,width:o}})}function g({src:e,altText:n,width:t,height:a,maxWidth:o}){const r=u.useRef(null);return c.createElement("div",null,c.createElement(f,{className:"",src:e,altText:n,imageRef:r,width:t,height:a,maxWidth:o}))}exports.default=g;
