var isScriptPresent=function(e){return document.querySelector('head script[src="'+e+'"]')!==null};var injectScriptSrc=function(e){var r=e.src,t=e.onInit,n=e.onLoad;var c;if(isScriptPresent(r))return;var i=document.createElement("script");i.setAttribute("src",r);t===null||t===void 0?void 0:t();i.addEventListener("load",n);(c=document.querySelector("head"))===null||c===void 0?void 0:c.appendChild(i)};var createPlotContainer=function(e){var r=document.createElement("div");var t=e.querySelector("picture");var n=t!==null&&t!==void 0?t:e;n.appendChild(r);return r};export{createPlotContainer as c,injectScriptSrc as i};
//# sourceMappingURL=imageDynamicUtils-6a80d9cc.js.map