!function(n,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define([],t):"object"==typeofexports?exports.MERMAID_ELK=t():n.MERMAID_ELK=t()}(self,(()=>(()=>{"use strict";varn={109:(n,t,e)=>{e.d(t,{a:()=>s,b:()=>h,c:()=>f,d:()=>l});vara=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,s=(n,t)=>i(n,"name",{value:t,configurable:!0}),h=(n=>typeofrequire<"u"?require:typeofProxy<"u"?newProxy(n,{get:(n,t)=>(typeofrequire<"u"?require:n)[t]}):n)((function(n){if(typeofrequire<"u")returnrequire.apply(this,arguments);throwError('Dynamic require of "'+n+'" is not supported')})),f=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),l=(n,t,e)=>(e=null!=n?a(o(n)):{},((n,t,e,a)=>{if(t&&"object"==typeoft||"function"==typeoft)for(leteofc(t))!u.call(n,e)&&undefined!==e&&i(n,e,{get:()=>t[e],enumerable:!(a=r(t,e))||a.enumerable});returnn})(!t&&n&&n.__esModule?e:i(e,"default",{value:n,enumerable:!0}),n))},804:(n,t,e)=>{e.r(t),e.d(t,{render:()=>Ii});vara=e(109),i=(0,a.c)(((n,t)=>{!function(e){"object"==typeofn&&typeoft<"u"?t.exports=e():"function"==typeofdefine&&define.amd?define([],e):(typeofwindow<"u"?window:typeofglobal<"u"?global:typeofself<"u"?self:this).ELK=e()}((function(){returnfunction(){functionn(t,e,i){functionr(o,u){if(!e[o]){if(!t[o]){vars="function"==typeofa.b&&a.b;if(!u&&s)returns(o,!0);if(c)returnc(o,!0);varh=newError("Cannot find module '"+o+"'");throwh.code="MODULE_NOT_FOUND",h}varf=e[o]={exports:{}};t[o][0].call(f.exports,(function(n){returnr(t[o][1][n]||n)}),f,f.exports,n,t,e,i)}returne[o].exports}(0,a.a)(r,"o");for(varc="function"==typeofa.b&&a.b,o=0;o<i.length;o++)r(i[o]);returnr}return(0,a.a)(n,"r"),n}()({1:[function(n,t,e){Object.defineProperty(e,"__esModule",{value:!0});vari=function(){functionn(n,t){for(vare=0;e<t.length;e++){vara=t[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}return(0,a.a)(n,"defineProperties"),function(t,e,a){returne&&n(t.prototype,e),a&&n(t,a),t}}();functionr(n,t){if(!(ninstanceoft))thrownewTypeError("Cannot call a class as a function")}(0,a.a)(r,"_classCallCheck");varc=function(){functionn(){vart=this,e=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},i=e.defaultLayoutOptions,c=void0===i?{}:i,u=e.algorithms,s=void0===u?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:u,h=e.workerFactory,f=e.workerUrl;if(r(this,n),this.defaultLayoutOptions=c,this.initialized=!1,typeoff>"u"&&typeofh>"u")thrownewError("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");varl=h;typeoff<"u"&&typeofh>"u"&&(l=(0,a.a)((function(n){returnnewWorker(n)}),"factory"));varb=l(f);if("function"!=typeofb.postMessage)thrownewTypeError("Created worker does not provide the required 'postMessage' function.");this.worker=newo(b),this.worker.postMessage({cmd:"register",algorithms:s}).then((function(n){returnt.initialized=!0})).catch(console.err)}return(0,a.a)(n,"ELK"),i(n,[{key:"layout",value:(0,a.a)((function(n){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},e=t.layoutOptions,a=void0===e?this.defaultLayoutOptions:e,i=t.logging,r=void0!==i&&i,c=t.measureExecutionTime,o=void0!==c&&c;returnn?this.worker.postMessage({cmd:"layout",graph:n,layoutOptions:a,options:{logging:r,measureExecutionTime:o}}):Promise.reject(newError("Missing mandatory parameter 'graph'."))}),"layout")},{key:"knownLayoutAlgorithms",value:(0,a.a)((function(){returnthis.worker.postMessage({cmd:"algorithms"})}),"knownLayoutAlgorithms")},{key:"knownLayoutOptions",value:(0,a.a)((function(){returnthis.worker.postMessage({cmd:"options"})}),"knownLayoutOptions")},{key:"knownLayoutCategories",value:(0,a.a)((function(){returnthis.worker.postMessage({cmd:"categories"})}),"knownLayoutCategories")},{key:"terminateWorker",value:(0,a.a)((function(){this.worker&&this.worke