!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):(e=e||self).cytoscape=t()}(this,function(){"use strict";functione(t){return(e="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(t)}functiont(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionn(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}functionr(e,t,r){returnt&&n(e.prototype,t),r&&n(e,r),e}functioni(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiona(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varn=[],r=!0,i=!1,a=void0;try{for(varo,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throwa}}returnn}(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance")}()}varo="undefined"==typeofwindow?null:window,s=o?o.navigator:null,l=(o&&o.document,e("")),u=e({}),c=e(function(){}),d="undefined"==typeofHTMLElement?"undefined":e(HTMLElement),h=function(e){returne&&e.instanceString&&f(e.instanceString)?e.instanceString():null},p=function(t){returnnull!=t&&e(t)==l},f=function(t){returnnull!=t&&e(t)===c},g=function(e){returnArray.isArray?Array.isArray(e):null!=e&&einstanceofArray},v=function(t){returnnull!=t&&e(t)===u&&!g(t)&&t.constructor===Object},y=function(t){returnnull!=t&&e(t)===e(1)&&!isNaN(t)},m=function(e){return"undefined"===d?void0:null!=e&&einstanceofHTMLElement},b=function(e){returnx(e)||w(e)},x=function(e){return"collection"===h(e)&&e._private.single},w=function(e){return"collection"===h(e)&&!e._private.single},E=function(e){return"core"===h(e)},k=function(e){return"stylesheet"===h(e)},C=function(e){returnnull==e||!(""!==e&&!e.match(/^\s+$/))},S=function(t){returnfunction(t){returnnull!=t&&e(t)===u}(t)&&f(t.then)},P=function(){returns&&s.userAgent.match(/msie|trident|edge/i)},D=function(e,t){t||(t=function(){if(1===arguments.length)returnarguments[0];if(0===arguments.length)return"undefined";for(vare=[],t=0;t<arguments.length;t++)e.push(arguments[t]);returne.join("$")});varn=functionn(){varr,i=this,a=arguments,o=t.apply(i,a),s=n.cache;return(r=s[o])||(r=s[o]=e.apply(i,a)),r};returnn.cache={},n},T=D(function(e){returne.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),M=D(function(e){returne.replace(/(-\w)/g,function(e){returne[1].toUpperCase()})}),B=D(function(e,t){returne+t[0].toUpperCase()+t.substring(1)},function(e,t){returne+"$"+t}),_=function(e){returnC(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},N="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",z=function(e,t){returne<t?-1:e>t?1:0},I=null!=Object.assign?Object.assign.bind(Object):function(e){for(vart=arguments,n=1;n<t.length;n++){varr=t[n];if(null!=r)for(vari=Object.keys(r),a=0;a<i.length;a++){varo=i[a];e[o]=r[o]}}returne},L=function(e){return(g(e)?e:null)||function(e){returnA[e.toLowerCase()]}(e)||function(e){if((4===e.length||7===e.length)&&"#"===e[0]){vart,n,r;return4===e.length?(t=parseInt(e[1]+e[1],16),n=parseInt(e[2]+e[2],16),r=parseInt(e[3]+e[3],16)):(t=parseInt(e[1]+e[2],16),n=parseInt(e[3]+e[4],16),r=parseInt(e[5]+e[6],16)),[t,n,r]}}(e)||function(e){vart,n=newRegExp("^rgb[a]?\\(((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)(?:\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)$").exec(e);if(n){t=[];for(varr=[],i=1;i<=3;i++){vara=n[i];if("%"===a[a.length-1]&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}varo=r[1]||r[2