void0!==arguments[0]&&(u.sequenceConfig=arguments[0]),e=arguments[1]):e=arguments[0];varn=void0;"function"==typeofarguments[arguments.length-1]?(n=arguments[arguments.length-1],a.logger.debug("Callback function found")):void0!==t.mermaid&&("function"==typeoft.mermaid.callback?(n=t.mermaid.callback,a.logger.debug("Callback function found")):a.logger.debug("No Callback function found")),e=void0===e?document.querySelectorAll(".mermaid"):"string"==typeofe?document.querySelectorAll(e):einstanceofwindow.Node?[e]:e,a.logger.debug("Start On Load before: "+u.startOnLoad),void0!==u.startOnLoad&&(a.logger.debug("Start On Load inner: "+u.startOnLoad),i.default.initialize({startOnLoad:u.startOnLoad})),void0!==u.ganttConfig&&i.default.initialize({gantt:u.ganttConfig});for(varo=void0,s=function(t){vara=e[t];
/*! Check if previously processed */if(a.getAttribute("data-processed"))return"continue";a.setAttribute("data-processed",!0);vars="mermaid-"+Date.now();o=a.innerHTML,o=r.default.decode(o).trim().replace(/<br>/gi,"<br/>"),i.default.render(s,o,function(t,e){a.innerHTML=t,void0!==n&&n(s),e(a)},a)},c=0;c<e.length;c++)s(c)},initialize:function(t){a.logger.debug("Initializing mermaid"),void0!==t.mermaid&&(void0!==t.mermaid.startOnLoad&&(u.startOnLoad=t.mermaid.startOnLoad),void0!==t.mermaid.htmlLabels&&(u.htmlLabels=t.mermaid.htmlLabels)),i.default.initialize(t)},contentLoaded:s};e.default=u}]).default});