"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[816],{20816:function(M,m,e){e.r(m),e.d(m,{default:function(){return A}});var y=e(84203),p=e(34138),j=e.n(p),x=e(97857),C=e.n(x),o=e(4737);function k(u,I){o.o.initialize(C()({securityLevel:"loose"},I));function L(n){return n.split(/\s+/g)[0]}var l=u.renderer.rules.fence;function R(n,c,E,F,s){var v=n[c],f=v.info.trim(),H=f?L(f):"";if(["mermaid","{mermaid}"].indexOf(H)===-1)return l!==void 0?l(n,c,E,F,s):"";var g="",r=[],a=document.createElement("div");document.body.appendChild(a);try{var h="mermaid-container";o.o.mermaidAPI.render(h,v.content,function(d){var i=document.getElementById(h);i!==null&&r.push(["style","max-width:".concat(i.style.maxWidth,";max-height:").concat(i.style.maxHeight)]),g=d},a)}catch(d){return'<div class="alert alert-danger">'.concat(d,"</div>")}finally{a.remove()}return r.push(["src","data:image/svg+xml,".concat(encodeURIComponent(g))]),"<img ".concat(s.renderAttrs({attrs:r}),">")}u.renderer.rules.fence=R}var t=new y.Z({html:!0,linkify:!0,typographer:!0,breaks:!0});t.use(j()),t.use(k);var A=t}}]);
