Skip to content

Instantly share code, notes, and snippets.

@BriSeven
Created January 14, 2020 06:11
Show Gist options
  • Save BriSeven/bb42265100169d3435a1e8c806d49690 to your computer and use it in GitHub Desktop.
Save BriSeven/bb42265100169d3435a1e8c806d49690 to your computer and use it in GitHub Desktop.
qaballah graph visjs dot playgrownd
<!DOCTYPE html> <html><!--
Page saved with SingleFile
url: https://visjs.github.io/vis-network/examples/network/data/dotLanguage/dotPlayground.html
saved date: Mon Jan 13 2020 14:13:11 GMT+1100 (Australian Eastern Daylight Time)
--><meta charset=utf-8>
<title>Vis Network | Data | DOT language playground</title>
<link type=image/x-icon rel="shortcut icon" href="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="></head>
<body>
<div id=header>
<h1>DOT language playground</h1>
<div>
<button id=draw title="Draw the DOT graph (Ctrl+Enter)">Draw</button>
<span id=error></span>
</div>
</div>
<div id=contents style=height:515px>
<div id=left>
<textarea id=data>digraph {
node [shape=circle fontsize=16]
edge [length=100, color=gray, fontcolor=black]
Keter -&gt; Chokhmah [ label="א" ];
Keter -&gt; Binah [ label="ב" ];
Keter -&gt; Tiferet [ label="ג" ];
Chokhmah -&gt; Binah [ label="ד" ];
Chokhmah -&gt; Tiferet [ label="ה" ];
Chokhmah -&gt; Chesed [ label="ו" ];
Binah -&gt; Tiferet [ label="ז" ];
Binah -&gt; Gevurah [ label="ח" ];
Chesed -&gt; Gevurah [ label="ט" ];
Chesed -&gt; Tiferet [ label="י" ];
Chesed -&gt; Netzach [ label="כ,ך" ];
Gevurah -&gt; Tiferet [ label="ל" ];
Gevurah -&gt; Hod [ label="מ,ם" ];
Tiferet -&gt; Netzach [ label="נ,ן" ];
Tiferet -&gt; Yesod [ label="ס" ];
Tiferet -&gt; Hod [ label="ע" ];
Netzach -&gt; Hod [ label="פ,ף" ];
Netzach -&gt; Yesod [ label="צ,ץ" ];
Netzach -&gt; Malchut [ label="ק" ];
Hod -&gt; Yesod [ label="ר" ];
Hod -&gt; Malchut [ label="ש" ];
Yesod -&gt; Malchut [ label="ת" ];
}
</textarea>
</div>
<div id=right>
<div id=mynetwork>
<div class=vis-network tabindex=900 width=1232 height=986></canvas></div></div>
</div>
</div>
<style>.vis-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}div.vis-network div.vis-navigation div.vis-button{width:34px;height:34px;-moz-border-radius:17px;border-radius:17px;position:absolute;display:inline-block;background-position:2px 2px;background-repeat:no-repeat;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-navigation div.vis-button:hover{box-shadow:0 0 3px 3px rgba(56,207,21,.3)}div.vis-network div.vis-navigation div.vis-button:active{box-shadow:0 0 1px 3px rgba(56,207,21,.95)}div.vis-network div.vis-navigation div.vis-button.vis-up{background-image:url(" up.png");bottom:50px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-down{background-image:url(" down.png");bottom:10px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-left{background-image:url(" left.png");bottom:10px;left:15px}div.vis-network div.vis-navigation div.vis-button.vis-right{background-image:url(" right.png");bottom:10px;left:95px}div.vis-network div.vis-navigation div.vis-button.vis-zoomIn{background-image:url(" plus.png");bottom:10px;right:15px}div.vis-network div.vis-navigation div.vis-button.vis-zoomOut{background-image:url(" minus.png");bottom:10px;right:55px}div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends{background-image:url(" zoom.png");bottom:50px;right:15px}div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,.2);pointer-events:none;z-index:5}div.vis-network div.vis-manipulation{box-sizing:content-box;border:0 solid #d6d9d8;border-bottom:1px;background:#fff;background:-moz-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(48%,#fcfcfc),color-stop(50%,#fafafa),color-stop(100%,#fcfcfc));background:-webkit-linear-gradient(top,#fff,#fcfcfc 48%,#fafafa 50%,#fcfcfc);background:-o-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-ms-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:linear-gradient(180deg,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#fcfcfc",GradientType=0);padding-top:4px;position:absolute;left:0;top:0;width:100%;height:28px}div.vis-network div.vis-edit-mode{position:absolute;left:0;top:5px;height:30px}div.vis-network div.vis-close{position:absolute;right:0;top:0;width:30px;height:30px;background-position:20px 3px;background-repeat:no-repeat;background-image:url(" x.png");cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-close:hover{opacity:.6}div.vis-network div.vis-edit-mode div.vis-button,div.vis-network div.vis-manipulation div.vis-button{float:left;font-family:verdana;font-size:12px;-moz-border-radius:15px;border-radius:15px;display:inline-block;background-position:0 0;background-repeat:no-repeat;height:24px;margin-left:10px;cursor:pointer;padding:0 8px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-manipulation div.vis-button:hover{box-shadow:1px 1px 8px rgba(0,0,0,.2)}div.vis-network div.vis-manipulation div.vis-button:active{box-shadow:1px 1px 8px rgba(0,0,0,.5)}div.vis-network div.vis-manipulation div.vis-button.vis-back{background-image:url(" back.png")}div.vis-network div.vis-manipulation div.vis-button.vis-none:hover{box-shadow:1px 1px 8px transparent;cursor:default}div.vis-network div.vis-manipulation div.vis-button.vis-none:active{box-shadow:1px 1px 8px transparent}div.vis-network div.vis-manipulation div.vis-button.vis-none{padding:0}div.vis-network div.vis-manipulation div.notification{margin:2px;font-weight:700}div.vis-network div.vis-manipulation div.vis-button.vis-add{background-image:url(" plus.png")}div.vis-network div.vis-edit-mode div.vis-button.vis-edit,div.vis-network div.vis-manipulation div.vis-button.vis-edit{background-image:url(" edit.png")}div.vis-network div.vis-edit-mode div.vis-button.vis-edit.vis-edit-mode{background-color:#fcfcfc;border:1px solid #ccc}div.vis-network div.vis-manipulation div.vis-button.vis-connect{background-image:url(" north-east.png")}div.vis-network div.vis-manipulation div.vis-button.vis-delete{background-image:url(" X.png")}div.vis-network div.vis-edit-mode div.vis-label,div.vis-network div.vis-manipulation div.vis-label{margin:0 0 0 23px;line-height:25px}div.vis-network div.vis-manipulation div.vis-separator-line{float:left;display:inline-block;width:1px;height:21px;background-color:#bdbdbd;margin:0 7px 0 15px}div.vis-configuration{position:relative;display:block;float:left;font-size:12px}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper:after{clear:both;content:"";display:block}div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-header{font-size:18px;font-weight:700}div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}div.vis-configuration.vis-config-label.vis-config-s3{width:110px}div.vis-configuration.vis-config-label.vis-config-s4{width:100px}div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}input.vis-configuration.vis-config-checkbox{left:-5px}input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid #fff;background-color:transparent;width:300px;height:20px}input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#dedede",endColorstr="#c8c8c8",GradientType=0);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2,#385380);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(180deg,#3876c2 0,#385380);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#3876c2",endColorstr="#385380",GradientType=0);box-shadow:0 0 1px 0 #111927;margin-top:-7px}input.vis-configuration.vis-config-range:focus{outline:none}input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(180deg,#9d9d9d 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#9d9d9d",endColorstr="#c8c8c8",GradientType=0)}input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#dedede",endColorstr="#c8c8c8",GradientType=0);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-moz-range-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:transparent;border-color:transparent;border-width:6px 0;color:transparent}input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.vis-configuration.vis-config-range::-ms-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.vis-configuration-popup{position:absolute;background:rgba(57,76,89,.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.vis-configuration-popup:after,.vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.vis-configuration-popup:after{border-color:rgba(136,183,213,0) rgba(136,183,213,0) rgba(136,183,213,0) rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.vis-configuration-popup:before{border-color:rgba(194,225,245,0) rgba(194,225,245,0) rgba(194,225,245,0) #f2faff;border-width:12px;margin-top:-12px}div.vis-color-picker{position:absolute;top:0;left:30px;margin-top:-140px;margin-left:30px;width:310px;height:444px;z-index:1;padding:10px;border-radius:15px;background-color:#fff;display:none;box-shadow:0 0 10px 0 rgba(0,0,0,.5)}div.vis-color-picker div.vis-arrow{position:absolute;top:147px;left:5px}div.vis-color-picker div.vis-arrow:after,div.vis-color-picker div.vis-arrow:before{right:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}div.vis-color-picker div.vis-arrow:after{border-color:hsla(0,0%,100%,0) #fff hsla(0,0%,100%,0) hsla(0,0%,100%,0);border-width:30px;margin-top:-30px}div.vis-color-picker div.vis-color{position:absolute;width:289px;height:289px;cursor:pointer}div.vis-color-picker div.vis-brightness{position:absolute;top:313px}div.vis-color-picker div.vis-opacity{position:absolute;top:350px}div.vis-color-picker div.vis-selector{position:absolute;top:137px;left:137px;width:15px;height:15px;border-radius:15px;border:1px solid #fff;background:#4c4c4c;background:-moz-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4c4c4c),color-stop(12%,#595959),color-stop(25%,#666),color-stop(39%,#474747),color-stop(50%,#2c2c2c),color-stop(51%,#000),color-stop(60%,#111),color-stop(76%,#2b2b2b),color-stop(91%,#1c1c1c),color-stop(100%,#131313));background:-webkit-linear-gradient(top,#4c4c4c,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313);background:-o-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-ms-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:linear-gradient(180deg,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#4c4c4c",endColorstr="#131313",GradientType=0)}div.vis-color-picker div.vis-new-color{left:159px;text-align:right;padding-right:2px}div.vis-color-picker div.vis-initial-color,div.vis-color-picker div.vis-new-color{position:absolute;width:140px;height:20px;border:1px solid rgba(0,0,0,.1);border-radius:5px;top:380px;font-size:10px;color:rgba(0,0,0,.4);vertical-align:middle;line-height:20px}div.vis-color-picker div.vis-initial-color{left:10px;text-align:left;padding-left:2px}div.vis-color-picker div.vis-label{position:absolute;width:300px;left:10px}div.vis-color-picker div.vis-label.vis-brightness{top:300px}div.vis-color-picker div.vis-label.vis-opacity{top:338px}div.vis-color-picker div.vis-button{position:absolute;width:68px;height:25px;border-radius:10px;vertical-align:middle;text-align:center;line-height:25px;top:410px;border:2px solid #d9d9d9;background-color:#f7f7f7;cursor:pointer}div.vis-color-picker div.vis-button.vis-cancel{left:5px}div.vis-color-picker div.vis-button.vis-load{left:82px}div.vis-color-picker div.vis-button.vis-apply{left:159px}div.vis-color-picker div.vis-button.vis-save{left:236px}div.vis-color-picker input.vis-range{width:290px;height:20px}body,html{font:10pt sans;line-height:1.5em;;width:100%;height:100%;padding:0;margin:0;color:#4d4d4d;box-sizing:border-box;overflow:hidden}#header{margin:0;padding:10px;box-sizing:border-box}#contents{height:100%;margin:0;padding:0;box-sizing:border-box;position:relative}#left,#right{position:absolute;width:50%;height:100%;margin:0;padding:10px;box-sizing:border-box;display:inline-block}#left{top:0;left:0}#right{top:0;right:0}#error{color:red}#data{width:100%;height:100%;border:1px solid #d3d3d3;box-sizing:border-box;resize:none}#draw{padding:5px 15px}#mynetwork{width:100%;height:100%;border:1px solid #d3d3d3;box-sizing:border-box}a:hover{color:red}</style>
<script>
/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\xA0]+|[\s\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0;
}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return c=d.getElementsByTagName("body")[0],c&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],W=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function X(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&U.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var Y=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)Y(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/<tbody/i;function ia(a){Z.test(a.type)&&(a.defaultChecked=a.checked)}function ja(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ca(b),q=[],r=0;o>r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?"<table>"!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ma.test(f)?this.mouseHooks:la.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ra()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ra()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&("undefined"==typeof a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?pa:qa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:qa,isPropagationStopped:qa,isImmediatePropagationStopped:qa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=pa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=pa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=pa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){return ka.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ka.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!ka.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return sa(this,a,b,c,d)},one:function(a,b,c,d){return sa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=qa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ta=/ jQuery\d+="(?:null|\d+)"/g,ua=new RegExp("<(?:"+ba+")[\\s/>]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/<script|<style|<link/i,xa=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=/^true\/(.*)/,za=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ja[0].contentWindow||Ja[0].contentDocument).document,b.write(),b.close(),c=La(a,b),Ja.detach()),Ka[a]=c),c}var Na=/^margin/,Oa=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Pa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Qa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");if(j.style){j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}});function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="<table><tr><td></td><td>t</td></tr></table>",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",f=0===k[0].offsetHeight,f&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}}}();var Ra,Sa,Ta=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Oa.test(g)&&Na.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Qa.currentStyle&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Oa.test(g)&&!Ta.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ua(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Va=/alpha\([^)]*\)/i,Wa=/opacity\s*=\s*([^)]*)/i,Xa=/^(none|table(?!-c[ea]).+)/,Ya=new RegExp("^("+T+")(.*)$","i"),Za={position:"absolute",visibility:"hidden",display:"block"},$a={letterSpacing:"0",fontWeight:"400"},_a=["Webkit","O","Moz","ms"],ab=d.createElement("div").style;function bb(a){if(a in ab)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=_a.length;while(c--)if(a=_a[c]+b,a in ab)return a}function cb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&W(d)&&(f[g]=n._data(d,"olddisplay",Ma(d.nodeName)))):(e=W(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function db(a,b,c){var d=Ya.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function eb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+V[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+V[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+V[f]+"Width",!0,e))):(g+=n.css(a,"padding"+V[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+V[f]+"Width",!0,e)));return g}function fb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Sa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Oa.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+eb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Sa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=U.exec(c))&&e[1]&&(c=X(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Sa(a,b,d)),"normal"===f&&b in $a&&(f=$a[b]),""===c||c?(e=parseFloat(f),c===!0||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Xa.test(n.css(a,"display"))&&0===a.offsetWidth?Pa(a,Za,function(){return fb(a,b,d)}):fb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return db(a,c,d?eb(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Wa.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Va,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Va.test(f)?f.replace(Va,e):f+" "+e)}}),n.cssHooks.marginRight=Ua(l.reliableMarginRight,function(a,b){return b?Pa(a,{display:"inline-block"},Sa,[a,"marginRight"]):void 0}),n.cssHooks.marginLeft=Ua(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Sa(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Pa(a,{
marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+V[d]+b]=f[d]||f[d-2]||f[0];return e}},Na.test(a)||(n.cssHooks[a+b].set=db)}),n.fn.extend({css:function(a,b){return Y(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return cb(this,!0)},hide:function(){return cb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){W(this)?n(this).show():n(this).hide()})}});function gb(a,b,c,d,e){return new gb.prototype.init(a,b,c,d,e)}n.Tween=gb,gb.prototype={constructor:gb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=gb.propHooks[this.prop];return a&&a.get?a.get(this):gb.propHooks._default.get(this)},run:function(a){var b,c=gb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):gb.propHooks._default.set(this),this}},gb.prototype.init.prototype=gb.prototype,gb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},gb.propHooks.scrollTop=gb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=gb.prototype.init,n.fx.step={};var hb,ib,jb=/^(?:toggle|show|hide)$/,kb=/queueHooks$/;function lb(){return a.setTimeout(function(){hb=void 0}),hb=n.now()}function mb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=V[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function nb(a,b,c){for(var d,e=(qb.tweeners[b]||[]).concat(qb.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ob(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&W(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k="none"===j?n._data(a,"olddisplay")||Ma(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==Ma(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],jb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?Ma(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=nb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function pb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function qb(a,b,c){var d,e,f=0,g=qb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=hb||lb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:hb||lb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(pb(k,j.opts.specialEasing);g>f;f++)if(d=qb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,nb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(qb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return X(c.elem,a,U.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],qb.tweeners[c]=qb.tweeners[c]||[],qb.tweeners[c].unshift(b)},prefilters:[ob],prefilter:function(a,b){b?qb.prefilters.unshift(a):qb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(W).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=qb(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&kb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(mb(b,!0),a,d,e)}}),n.each({slideDown:mb("show"),slideUp:mb("hide"),slideToggle:mb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(hb=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),hb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ib||(ib=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(ib),ib=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var rb=/\r/g,sb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(sb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var tb,ub,vb=n.expr.attrHandle,wb=/^(?:checked|selected)$/i,xb=l.getSetAttribute,yb=l.input;n.fn.extend({attr:function(a,b){return Y(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ub:tb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?yb&&xb||!wb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(xb?c:d)}}),ub={set:function(a,b,c){return b===!1?n.removeAttr(a,c):yb&&xb||!wb.test(c)?a.setAttribute(!xb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=vb[b]||n.find.attr;yb&&xb||!wb.test(b)?vb[b]=function(a,b,d){var e,f;return d||(f=vb[b],vb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,vb[b]=f),e}:vb[b]=function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),yb&&xb||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):tb&&tb.set(a,b,c)}}),xb||(tb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},vb.id=vb.name=vb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:tb.set},n.attrHooks.contenteditable={set:function(a,b,c){tb.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var zb=/^(?:input|select|textarea|button|object)$/i,Ab=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return Y(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):zb.test(a.nodeName)||Ab.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Bb=/[\t\r\n\f]/g;function Cb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Cb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Cb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Cb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Cb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||a===!1?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Cb(c)+" ").replace(Bb," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Db=a.location,Eb=n.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Hb=/#.*$/,Ib=/([?&])_=[^&]*/,Jb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Kb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lb=/^(?:GET|HEAD)$/,Mb=/^\/\//,Nb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ob={},Pb={},Qb="*/".concat("*"),Rb=Db.href,Sb=Nb.exec(Rb.toLowerCase())||[];function Tb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Ub(a,b,c,d){var e={},f=a===Pb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Vb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Wb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Xb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rb,type:"GET",isLocal:Kb.test(Sb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Vb(Vb(a,n.ajaxSettings),b):Vb(n.ajaxSettings,a)},ajaxPrefilter:Tb(Ob),ajaxTransport:Tb(Pb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Jb.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),y(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Rb)+"").replace(Hb,"").replace(Mb,Sb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(G)||[""],null==l.crossDomain&&(d=Nb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Sb[1]&&d[2]===Sb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Sb[3]||("http:"===Sb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Ub(Ob,l,c,w),2===u)return w;i=n.event&&l.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Lb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ib.test(f)?f.replace(Ib,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Qb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,w,l)===!1||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Ub(Pb,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,y)}catch(x){if(!(2>u))throw x;y(-1,x)}}else y(-1,"No Transport");function y(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&300>b||304===b,d&&(v=Wb(l,w,d)),v=Xb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),x=w.getResponseHeader("etag"),x&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Yb(a){return a.style&&a.style.display||n.css(a,"display")}function Zb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Yb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Zb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var $b=/%20/g,_b=/\[\]$/,ac=/\r?\n/g,bc=/^(?:submit|button|image|reset|file)$/i,cc=/^(?:input|select|textarea|keygen)/i;function dc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||_b.test(a)?d(a,e):dc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)dc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)dc(c,a[c],b,e);return d.join("&").replace($b,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&cc.test(this.nodeName)&&!bc.test(a)&&(this.checked||!Z.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(ac,"\r\n")}}):{name:b.name,value:c.replace(ac,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?ic():d.documentMode>8?hc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&hc()||ic()}:hc;var ec=0,fc={},gc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in fc)fc[a](void 0,!0)}),l.cors=!!gc&&"withCredentials"in gc,gc=l.ajax=!!gc,gc&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++ec;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete fc[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=fc[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function hc(){try{return new a.XMLHttpRequest}catch(b){}}function ic(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var jc=[],kc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=jc.pop()||n.expando+"_"+Eb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(kc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&kc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(kc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,jc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ja([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var lc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&lc)return lc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function mc(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?("undefined"!=typeof e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=mc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Qa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return Y(this,function(a,d,e){var f=mc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ua(l.pixelPosition,function(a,c){return c?(c=Sa(a,b),Oa.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({
padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Y(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var nc=a.jQuery,oc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=oc),b&&a.jQuery===n&&(a.jQuery=nc),n},b||(a.jQuery=a.$=n),n});
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 0.0.0-no-version
* @date 2020-01-12T20:56:00.197Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
!function(t,g){"object"==typeof exports&&"undefined"!=typeof module?g(exports):"function"==typeof define&&define.amd?define(["exports"],g):g((t=t||self).vis=t.vis||{})}(this,(function(t){"use strict";var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,g){return t(g={exports:{}},g.exports),g.exports}function A(t){return t&&t.default||t}var I=function(t){return t&&t.Math==Math&&t},C=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof g&&g)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},n=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s={f:r&&!o.call({1:2},1)?function(t){var g=r(this,t);return!!g&&g.enumerable}:o},a=function(t,g){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:g}},l={}.toString,d=function(t){return l.call(t).slice(8,-1)},c="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?c.call(t,""):Object(t)}:Object,u=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},f=function(t){return h(u(t))},p=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t,g){if(!p(t))return t;var e,A;if(g&&"function"==typeof(e=t.toString)&&!p(A=e.call(t)))return A;if("function"==typeof(e=t.valueOf)&&!p(A=e.call(t)))return A;if(!g&&"function"==typeof(e=t.toString)&&!p(A=e.call(t)))return A;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,m=function(t,g){return y.call(t,g)},b=C.document,w=p(b)&&p(b.createElement),x=function(t){return w?b.createElement(t):{}},k=!n&&!i((function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a})),D=Object.getOwnPropertyDescriptor,O={f:n?D:function(t,g){if(t=f(t),g=v(g,!0),k)try{return D(t,g)}catch(t){}if(m(t,g))return a(!s.f.call(t,g),t[g])}},N=/#|\.prototype\./,E=function(t,g){var e=M[Z(t)];return e==G||e!=T&&("function"==typeof g?i(g):!!g)},Z=E.normalize=function(t){return String(t).replace(N,".").toLowerCase()},M=E.data={},T=E.NATIVE="N",G=E.POLYFILL="P",B=E,R={},S=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},F=function(t,g,e){if(S(t),void 0===g)return t;switch(e){case 0:return function(){return t.call(g)};case 1:return function(e){return t.call(g,e)};case 2:return function(e,A){return t.call(g,e,A)};case 3:return function(e,A,I){return t.call(g,e,A,I)}}return function(){return t.apply(g,arguments)}},L=function(t){if(!p(t))throw TypeError(String(t)+" is not an object");return t},Q=Object.defineProperty,Y={f:n?Q:function(t,g,e){if(L(t),g=v(g,!0),L(e),k)try{return Q(t,g,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[g]=e.value),t}},W=n?function(t,g,e){return Y.f(t,g,a(1,e))}:function(t,g,e){return t[g]=e,t},z=O.f,j=function(t){var g=function(g,e,A){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(g);case 2:return new t(g,e)}return new t(g,e,A)}return t.apply(this,arguments)};return g.prototype=t.prototype,g},P=function(t,g){var e,A,I,i,n,o,r,s,a=t.target,l=t.global,d=t.stat,c=t.proto,h=l?C:d?C[a]:(C[a]||{}).prototype,u=l?R:R[a]||(R[a]={}),f=u.prototype;for(I in g)e=!B(l?I:a+(d?".":"#")+I,t.forced)&&h&&m(h,I),n=u[I],e&&(o=t.noTargetGet?(s=z(h,I))&&s.value:h[I]),i=e&&o?o:g[I],e&&typeof n==typeof i||(r=t.bind&&e?F(i,C):t.wrap&&e?j(i):c&&"function"==typeof i?F(Function.call,i):i,(t.sham||i&&i.sham||n&&n.sham)&&W(r,"sham",!0),u[I]=r,c&&(m(R,A=a+"Prototype")||W(R,A,{}),R[A][I]=i,t.real&&f&&!f[I]&&W(f,I,i)))},V=[].slice,X={},U=function(t,g,e){if(!(g in X)){for(var A=[],I=0;I<g;I++)A[I]="a["+I+"]";X[g]=Function("C,a","return new C("+A.join(",")+")")}return X[g](t,e)},_=Function.bind||function(t){var g=S(this),e=V.call(arguments,1),A=function(){var I=e.concat(V.call(arguments));return this instanceof A?U(g,I.length,I):g.apply(t,I)};return p(g.prototype)&&(A.prototype=g.prototype),A};P({target:"Function",proto:!0},{bind:_});var H=function(t){return R[t+"Prototype"]},J=H("Function").bind,K=Function.prototype,q=function(t){var g=t.bind;return t===K||t instanceof Function&&g===K.bind?J:g};function $(t,g,e,A){t.beginPath(),t.arc(g,e,A,0,2*Math.PI,!1),t.closePath()}function tt(t,g,e,A,I,C){var i=Math.PI/180;A-2*C<0&&(C=A/2),I-2*C<0&&(C=I/2),t.beginPath(),t.moveTo(g+C,e),t.lineTo(g+A-C,e),t.arc(g+A-C,e+C,C,270*i,360*i,!1),t.lineTo(g+A,e+I-C),t.arc(g+A-C,e+I-C,C,0,90*i,!1),t.lineTo(g+C,e+I),t.arc(g+C,e+I-C,C,90*i,180*i,!1),t.lineTo(g,e+C),t.arc(g+C,e+C,C,180*i,270*i,!1),t.closePath()}function gt(t,g,e,A,I){var C=A/2*.5522848,i=I/2*.5522848,n=g+A,o=e+I,r=g+A/2,s=e+I/2;t.beginPath(),t.moveTo(g,s),t.bezierCurveTo(g,s-i,r-C,e,r,e),t.bezierCurveTo(r+C,e,n,s-i,n,s),t.bezierCurveTo(n,s+i,r+C,o,r,o),t.bezierCurveTo(r-C,o,g,s+i,g,s),t.closePath()}function et(t,g,e,A,I){var C=I*(1/3),i=A/2*.5522848,n=C/2*.5522848,o=g+A,r=e+C,s=g+A/2,a=e+C/2,l=e+(I-C/2),d=e+I;t.beginPath(),t.moveTo(o,a),t.bezierCurveTo(o,a+n,s+i,r,s,r),t.bezierCurveTo(s-i,r,g,a+n,g,a),t.bezierCurveTo(g,a-n,s-i,e,s,e),t.bezierCurveTo(s+i,e,o,a-n,o,a),t.lineTo(o,l),t.bezierCurveTo(o,l+n,s+i,d,s,d),t.bezierCurveTo(s-i,d,g,l+n,g,l),t.lineTo(g,a)}function At(t,g,e,A,I,C){t.beginPath(),t.moveTo(g,e);for(var i=C.length,n=A-g,o=I-e,r=o/n,s=Math.sqrt(n*n+o*o),a=0,l=!0,d=0,c=+C[0];s>=.1;)(c=+C[a++%i])>s&&(c=s),d=Math.sqrt(c*c/(1+r*r)),g+=d=n<0?-d:d,e+=r*d,!0===l?t.lineTo(g,e):t.moveTo(g,e),s-=c,l=!l}var It={circle:$,dashedLine:At,database:et,diamond:function(t,g,e,A){t.beginPath(),t.lineTo(g,e+A),t.lineTo(g+A,e),t.lineTo(g,e-A),t.lineTo(g-A,e),t.closePath()},ellipse:gt,ellipse_vis:gt,hexagon:function(t,g,e,A){t.beginPath();var I=2*Math.PI/6;t.moveTo(g+A,e);for(var C=1;C<6;C++)t.lineTo(g+A*Math.cos(I*C),e+A*Math.sin(I*C));t.closePath()},roundRect:tt,square:function(t,g,e,A){t.beginPath(),t.rect(g-A,e-A,2*A,2*A),t.closePath()},star:function(t,g,e,A){t.beginPath(),e+=.1*(A*=.82);for(var I=0;I<10;I++){var C=I%2==0?1.3*A:.5*A;t.lineTo(g+C*Math.sin(2*I*Math.PI/10),e-C*Math.cos(2*I*Math.PI/10))}t.closePath()},triangle:function(t,g,e,A){t.beginPath(),e+=.275*(A*=1.15);var I=2*A,C=I/2,i=Math.sqrt(3)/6*I,n=Math.sqrt(I*I-C*C);t.moveTo(g,e-(n-i)),t.lineTo(g+C,e+i),t.lineTo(g-C,e+i),t.lineTo(g,e-(n-i)),t.closePath()},triangleDown:function(t,g,e,A){t.beginPath(),e-=.275*(A*=1.15);var I=2*A,C=I/2,i=Math.sqrt(3)/6*I,n=Math.sqrt(I*I-C*C);t.moveTo(g,e+(n-i)),t.lineTo(g+C,e-i),t.lineTo(g-C,e-i),t.lineTo(g,e+(n-i)),t.closePath()}};var Ct=e((function(t){function g(t){if(t)return function(t){for(var e in g.prototype)t[e]=g.prototype[e];return t}(t)}t.exports=g,g.prototype.on=g.prototype.addEventListener=function(t,g){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(g),this},g.prototype.once=function(t,g){function e(){this.off(t,e),g.apply(this,arguments)}return e.fn=g,this.on(t,e),this},g.prototype.off=g.prototype.removeListener=g.prototype.removeAllListeners=g.prototype.removeEventListener=function(t,g){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var e,A=this._callbacks["$"+t];if(!A)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var I=0;I<A.length;I++)if((e=A[I])===g||e.fn===g){A.splice(I,1);break}return 0===A.length&&delete this._callbacks["$"+t],this},g.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var g=new Array(arguments.length-1),e=this._callbacks["$"+t],A=1;A<arguments.length;A++)g[A-1]=arguments[A];if(e){A=0;for(var I=(e=e.slice(0)).length;A<I;++A)e[A].apply(this,g)}return this},g.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},g.prototype.hasListeners=function(t){return!!this.listeners(t).length}})),it="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
/**
* vis-util
* https://github.com/visjs/vis-util
*
* utilitie collection for visjs
*
* @version 2.1.0
* @date 2020-01-12T20:17:27.848Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
function nt(t,g){return t(g={exports:{}},g.exports),g.exports}var ot=function(t){return t&&t.Math==Math&&t},rt=ot("object"==typeof globalThis&&globalThis)||ot("object"==typeof window&&window)||ot("object"==typeof self&&self)||ot("object"==typeof it&&it)||Function("return this")(),st=function(t){try{return!!t()}catch(t){return!0}},at=!st((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),lt={}.propertyIsEnumerable,dt=Object.getOwnPropertyDescriptor,ct={f:dt&&!lt.call({1:2},1)?function(t){var g=dt(this,t);return!!g&&g.enumerable}:lt},ht=function(t,g){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:g}},ut={}.toString,ft=function(t){return ut.call(t).slice(8,-1)},pt="".split,vt=st((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==ft(t)?pt.call(t,""):Object(t)}:Object,yt=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},mt=function(t){return vt(yt(t))},bt=function(t){return"object"==typeof t?null!==t:"function"==typeof t},wt=function(t,g){if(!bt(t))return t;var e,A;if(g&&"function"==typeof(e=t.toString)&&!bt(A=e.call(t)))return A;if("function"==typeof(e=t.valueOf)&&!bt(A=e.call(t)))return A;if(!g&&"function"==typeof(e=t.toString)&&!bt(A=e.call(t)))return A;throw TypeError("Can't convert object to primitive value")},xt={}.hasOwnProperty,kt=function(t,g){return xt.call(t,g)},Dt=rt.document,Ot=bt(Dt)&&bt(Dt.createElement),Nt=function(t){return Ot?Dt.createElement(t):{}},Et=!at&&!st((function(){return 7!=Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),Zt=Object.getOwnPropertyDescriptor,Mt={f:at?Zt:function(t,g){if(t=mt(t),g=wt(g,!0),Et)try{return Zt(t,g)}catch(t){}if(kt(t,g))return ht(!ct.f.call(t,g),t[g])}},Tt=/#|\.prototype\./,Gt=function(t,g){var e=Rt[Bt(t)];return e==Ft||e!=St&&("function"==typeof g?st(g):!!g)},Bt=Gt.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Rt=Gt.data={},St=Gt.NATIVE="N",Ft=Gt.POLYFILL="P",Lt=Gt,Qt={},Yt=function(t,g,e){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===g)return t;switch(e){case 0:return function(){return t.call(g)};case 1:return function(e){return t.call(g,e)};case 2:return function(e,A){return t.call(g,e,A)};case 3:return function(e,A,I){return t.call(g,e,A,I)}}return function(){return t.apply(g,arguments)}},Wt=function(t){if(!bt(t))throw TypeError(String(t)+" is not an object");return t},zt=Object.defineProperty,jt={f:at?zt:function(t,g,e){if(Wt(t),g=wt(g,!0),Wt(e),Et)try{return zt(t,g,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[g]=e.value),t}},Pt=at?function(t,g,e){return jt.f(t,g,ht(1,e))}:function(t,g,e){return t[g]=e,t},Vt=Mt.f,Xt=function(t){var g=function(g,e,A){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(g);case 2:return new t(g,e)}return new t(g,e,A)}return t.apply(this,arguments)};return g.prototype=t.prototype,g},Ut=function(t,g){var e,A,I,C,i,n,o,r,s=t.target,a=t.global,l=t.stat,d=t.proto,c=a?rt:l?rt[s]:(rt[s]||{}).prototype,h=a?Qt:Qt[s]||(Qt[s]={}),u=h.prototype;for(I in g)e=!Lt(a?I:s+(l?".":"#")+I,t.forced)&&c&&kt(c,I),i=h[I],e&&(n=t.noTargetGet?(r=Vt(c,I))&&r.value:c[I]),C=e&&n?n:g[I],e&&typeof i==typeof C||(o=t.bind&&e?Yt(C,rt):t.wrap&&e?Xt(C):d&&"function"==typeof C?Yt(Function.call,C):C,(t.sham||C&&C.sham||i&&i.sham)&&Pt(o,"sham",!0),h[I]=o,d&&(kt(Qt,A=s+"Prototype")||Pt(Qt,A,{}),Qt[A][I]=C,t.real&&u&&!u[I]&&Pt(u,I,C)))},_t=Array.isArray||function(t){return"Array"==ft(t)};Ut({target:"Array",stat:!0},{isArray:_t});var Ht=Qt.Array.isArray,Jt=Ht;var Kt=function(t){if(Jt(t))return t},qt={},$t=rt["__core-js_shared__"]||function(t,g){try{Pt(rt,t,g)}catch(e){rt[t]=g}return g}("__core-js_shared__",{}),tg=Function.toString;"function"!=typeof $t.inspectSource&&($t.inspectSource=function(t){return tg.call(t)});var gg,eg,Ag,Ig=$t.inspectSource,Cg=rt.WeakMap,ig="function"==typeof Cg&&/native code/.test(Ig(Cg)),ng=nt((function(t){(t.exports=function(t,g){return $t[t]||($t[t]=void 0!==g?g:{})})("versions",[]).push({version:"3.6.0",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),og=0,rg=Math.random(),sg=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++og+rg).toString(36)},ag=ng("keys"),lg=function(t){return ag[t]||(ag[t]=sg(t))},dg={},cg=rt.WeakMap;if(ig){var hg=new cg,ug=hg.get,fg=hg.has,pg=hg.set;gg=function(t,g){return pg.call(hg,t,g),g},eg=function(t){return ug.call(hg,t)||{}},Ag=function(t){return fg.call(hg,t)}}else{var vg=lg("state");dg[vg]=!0,gg=function(t,g){return Pt(t,vg,g),g},eg=function(t){return kt(t,vg)?t[vg]:{}},Ag=function(t){return kt(t,vg)}}var yg,mg,bg,wg={set:gg,get:eg,has:Ag,enforce:function(t){return Ag(t)?eg(t):gg(t,{})},getterFor:function(t){return function(g){var e;if(!bt(g)||(e=eg(g)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},xg=function(t){return Object(yt(t))},kg=!st((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Dg=lg("IE_PROTO"),Og=Object.prototype,Ng=kg?Object.getPrototypeOf:function(t){return t=xg(t),kt(t,Dg)?t[Dg]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Og:null},Eg=!!Object.getOwnPropertySymbols&&!st((function(){return!String(Symbol())})),Zg=Eg&&!Symbol.sham&&"symbol"==typeof Symbol(),Mg=ng("wks"),Tg=rt.Symbol,Gg=Zg?Tg:sg,Bg=function(t){return kt(Mg,t)||(Eg&&kt(Tg,t)?Mg[t]=Tg[t]:Mg[t]=Gg("Symbol."+t)),Mg[t]},Rg=(Bg("iterator"),!1);[].keys&&("next"in(bg=[].keys())?(mg=Ng(Ng(bg)))!==Object.prototype&&(yg=mg):Rg=!0),null==yg&&(yg={});var Sg,Fg={IteratorPrototype:yg,BUGGY_SAFARI_ITERATORS:Rg},Lg=Math.ceil,Qg=Math.floor,Yg=function(t){return isNaN(t=+t)?0:(t>0?Qg:Lg)(t)},Wg=Math.min,zg=function(t){return t>0?Wg(Yg(t),9007199254740991):0},jg=Math.max,Pg=Math.min,Vg=function(t,g){var e=Yg(t);return e<0?jg(e+g,0):Pg(e,g)},Xg=function(t){return function(g,e,A){var I,C=mt(g),i=zg(C.length),n=Vg(A,i);if(t&&e!=e){for(;i>n;)if((I=C[n++])!=I)return!0}else for(;i>n;n++)if((t||n in C)&&C[n]===e)return t||n||0;return!t&&-1}},Ug={includes:Xg(!0),indexOf:Xg(!1)},_g=Ug.indexOf,Hg=function(t,g){var e,A=mt(t),I=0,C=[];for(e in A)!kt(dg,e)&&kt(A,e)&&C.push(e);for(;g.length>I;)kt(A,e=g[I++])&&(~_g(C,e)||C.push(e));return C},Jg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kg=Object.keys||function(t){return Hg(t,Jg)},qg=at?Object.defineProperties:function(t,g){Wt(t);for(var e,A=Kg(g),I=A.length,C=0;I>C;)jt.f(t,e=A[C++],g[e]);return t},$g=function(t){return"function"==typeof t?t:void 0},te=function(t,g){return arguments.length<2?$g(Qt[t])||$g(rt[t]):Qt[t]&&Qt[t][g]||rt[t]&&rt[t][g]},ge=te("document","documentElement"),ee=lg("IE_PROTO"),Ae=function(){},Ie=function(t){return"<script>"+t+"<\/script>"},Ce=function(){try{Sg=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,g;Ce=Sg?function(t){t.write(Ie("")),t.close();var g=t.parentWindow.Object;return t=null,g}(Sg):((g=Nt("iframe")).style.display="none",ge.appendChild(g),g.src=String("javascript:"),(t=g.contentWindow.document).open(),t.write(Ie("document.F=Object")),t.close(),t.F);for(var e=Jg.length;e--;)delete Ce.prototype[Jg[e]];return Ce()};dg[ee]=!0;var ie=Object.create||function(t,g){var e;return null!==t?(Ae.prototype=Wt(t),e=new Ae,Ae.prototype=null,e[ee]=t):e=Ce(),void 0===g?e:qg(e,g)},ne={};ne[Bg("toStringTag")]="z";var oe="[object z]"===String(ne),re=Bg("toStringTag"),se="Arguments"==ft(function(){return arguments}()),ae=oe?ft:function(t){var g,e,A;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,g){try{return t[g]}catch(t){}}(g=Object(t),re))?e:se?ft(g):"Object"==(A=ft(g))&&"function"==typeof g.callee?"Arguments":A},le=oe?{}.toString:function(){return"[object "+ae(this)+"]"},de=jt.f,ce=Bg("toStringTag"),he=function(t,g,e,A){if(t){var I=e?t:t.prototype;kt(I,ce)||de(I,ce,{configurable:!0,value:g}),A&&!oe&&Pt(I,"toString",le)}},ue=Fg.IteratorPrototype,fe=function(){return this},pe=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,g=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),g=e instanceof Array}catch(t){}}(),function(t,g,e,A){A&&A.enumerable?t[g]=e:Pt(t,g,e)}),ve=Fg.IteratorPrototype,ye=Fg.BUGGY_SAFARI_ITERATORS,me=Bg("iterator"),be=function(){return this},we=function(t,g,e,A,I,C,i){!function(t,g,e){var A=g+" Iterator";t.prototype=ie(ue,{next:ht(1,e)}),he(t,A,!1,!0),qt[A]=fe}(e,g,A);var n,o,r,s=function(t){if(t===I&&h)return h;if(!ye&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},a=g+" Iterator",l=!1,d=t.prototype,c=d[me]||d["@@iterator"]||I&&d[I],h=!ye&&c||s(I),u="Array"==g&&d.entries||c;if(u&&(n=Ng(u.call(new t)),ve!==Object.prototype&&n.next&&(he(n,a,!0,!0),qt[a]=be)),"values"==I&&c&&"values"!==c.name&&(l=!0,h=function(){return c.call(this)}),i&&d[me]!==h&&Pt(d,me,h),qt[g]=h,I)if(o={values:s("values"),keys:C?h:s("keys"),entries:s("entries")},i)for(r in o)!ye&&!l&&r in d||pe(d,r,o[r]);else Ut({target:g,proto:!0,forced:ye||l},o);return o},xe=wg.set,ke=wg.getterFor("Array Iterator");we(Array,"Array",(function(t,g){xe(this,{type:"Array Iterator",target:mt(t),index:0,kind:g})}),(function(){var t=ke(this),g=t.target,e=t.kind,A=t.index++;return!g||A>=g.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:A,done:!1}:"values"==e?{value:g[A],done:!1}:{value:[A,g[A]],done:!1}}),"values");qt.Arguments=qt.Array;var De=Bg("toStringTag");for(var Oe in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Ne=rt[Oe],Ee=Ne&&Ne.prototype;Ee&&!Ee[De]&&Pt(Ee,De,Oe),qt[Oe]=qt.Array}var Ze=function(t){return function(g,e){var A,I,C=String(yt(g)),i=Yg(e),n=C.length;return i<0||i>=n?t?"":void 0:(A=C.charCodeAt(i))<55296||A>56319||i+1===n||(I=C.charCodeAt(i+1))<56320||I>57343?t?C.charAt(i):A:t?C.slice(i,i+2):I-56320+(A-55296<<10)+65536}},Me={codeAt:Ze(!1),charAt:Ze(!0)}.charAt,Te=wg.set,Ge=wg.getterFor("String Iterator");we(String,"String",(function(t){Te(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,g=Ge(this),e=g.string,A=g.index;return A>=e.length?{value:void 0,done:!0}:(t=Me(e,A),g.index+=t.length,{value:t,done:!1})}));var Be=Bg("iterator"),Re=function(t){if(null!=t)return t[Be]||t["@@iterator"]||qt[ae(t)]},Se=function(t){var g=Re(t);if("function"!=typeof g)throw TypeError(String(t)+" is not iterable");return Wt(g.call(t))},Fe=Bg("iterator"),Le=function(t){var g=Object(t);return void 0!==g[Fe]||"@@iterator"in g||qt.hasOwnProperty(ae(g))};var Qe=function(t,g){if(Le(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var e=[],A=!0,I=!1,C=void 0;try{for(var i,n=Se(t);!(A=(i=n.next()).done)&&(e.push(i.value),!g||e.length!==g);A=!0);}catch(t){I=!0,C=t}finally{try{A||null==n.return||n.return()}finally{if(I)throw C}}return e}};var Ye=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var We=function(t,g){return Kt(t)||Qe(t,g)||Ye()};Ut({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var ze=Qt.Date.now;Ut({target:"Object",stat:!0,forced:!at,sham:!at},{defineProperty:jt.f});var je=nt((function(t){var g=Qt.Object,e=t.exports=function(t,e,A){return g.defineProperty(t,e,A)};g.defineProperty.sham&&(e.sham=!0)})),Pe=je;Ut({target:"Object",stat:!0,forced:!at,sham:!at},{defineProperties:qg});var Ve=nt((function(t){var g=Qt.Object,e=t.exports=function(t,e){return g.defineProperties(t,e)};g.defineProperties.sham&&(e.sham=!0)})),Xe=Jg.concat("length","prototype"),Ue={f:Object.getOwnPropertyNames||function(t){return Hg(t,Xe)}},_e={f:Object.getOwnPropertySymbols},He=te("Reflect","ownKeys")||function(t){var g=Ue.f(Wt(t)),e=_e.f;return e?g.concat(e(t)):g},Je=function(t,g,e){var A=wt(g);A in t?jt.f(t,A,ht(0,e)):t[A]=e};Ut({target:"Object",stat:!0,sham:!at},{getOwnPropertyDescriptors:function(t){for(var g,e,A=mt(t),I=Mt.f,C=He(A),i={},n=0;C.length>n;)void 0!==(e=I(A,g=C[n++]))&&Je(i,g,e);return i}});var Ke=Qt.Object.getOwnPropertyDescriptors,qe=Mt.f,$e=st((function(){qe(1)}));Ut({target:"Object",stat:!0,forced:!at||$e,sham:!at},{getOwnPropertyDescriptor:function(t,g){return qe(mt(t),g)}});var tA=nt((function(t){var g=Qt.Object,e=t.exports=function(t,e){return g.getOwnPropertyDescriptor(t,e)};g.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),gA=Ue.f,eA={}.toString,AA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],IA={f:function(t){return AA&&"[object Window]"==eA.call(t)?function(t){try{return gA(t)}catch(t){return AA.slice()}}(t):gA(mt(t))}},CA={f:Bg},iA=jt.f,nA=function(t){var g=Qt.Symbol||(Qt.Symbol={});kt(g,t)||iA(g,t,{value:CA.f(t)})},oA=Bg("species"),rA=function(t,g){var e;return _t(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!_t(e.prototype)?bt(e)&&null===(e=e[oA])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===g?0:g)},sA=[].push,aA=function(t){var g=1==t,e=2==t,A=3==t,I=4==t,C=6==t,i=5==t||C;return function(n,o,r,s){for(var a,l,d=xg(n),c=vt(d),h=Yt(o,r,3),u=zg(c.length),f=0,p=s||rA,v=g?p(n,u):e?p(n,0):void 0;u>f;f++)if((i||f in c)&&(l=h(a=c[f],f,d),t))if(g)v[f]=l;else if(l)switch(t){case 3:return!0;case 5:return a;case 6:return f;case 2:sA.call(v,a)}else if(I)return!1;return C?-1:A||I?I:v}},lA={forEach:aA(0),map:aA(1),filter:aA(2),some:aA(3),every:aA(4),find:aA(5),findIndex:aA(6)},dA=lA.forEach,cA=lg("hidden"),hA=Bg("toPrimitive"),uA=wg.set,fA=wg.getterFor("Symbol"),pA=Object.prototype,vA=rt.Symbol,yA=te("JSON","stringify"),mA=Mt.f,bA=jt.f,wA=IA.f,xA=ct.f,kA=ng("symbols"),DA=ng("op-symbols"),OA=ng("string-to-symbol-registry"),NA=ng("symbol-to-string-registry"),EA=ng("wks"),ZA=rt.QObject,MA=!ZA||!ZA.prototype||!ZA.prototype.findChild,TA=at&&st((function(){return 7!=ie(bA({},"a",{get:function(){return bA(this,"a",{value:7}).a}})).a}))?function(t,g,e){var A=mA(pA,g);A&&delete pA[g],bA(t,g,e),A&&t!==pA&&bA(pA,g,A)}:bA,GA=function(t,g){var e=kA[t]=ie(vA.prototype);return uA(e,{type:"Symbol",tag:t,description:g}),at||(e.description=g),e},BA=Eg&&"symbol"==typeof vA.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof vA},RA=function(t,g,e){t===pA&&RA(DA,g,e),Wt(t);var A=wt(g,!0);return Wt(e),kt(kA,A)?(e.enumerable?(kt(t,cA)&&t[cA][A]&&(t[cA][A]=!1),e=ie(e,{enumerable:ht(0,!1)})):(kt(t,cA)||bA(t,cA,ht(1,{})),t[cA][A]=!0),TA(t,A,e)):bA(t,A,e)},SA=function(t,g){Wt(t);var e=mt(g),A=Kg(e).concat(YA(e));return dA(A,(function(g){at&&!FA.call(e,g)||RA(t,g,e[g])})),t},FA=function(t){var g=wt(t,!0),e=xA.call(this,g);return!(this===pA&&kt(kA,g)&&!kt(DA,g))&&(!(e||!kt(this,g)||!kt(kA,g)||kt(this,cA)&&this[cA][g])||e)},LA=function(t,g){var e=mt(t),A=wt(g,!0);if(e!==pA||!kt(kA,A)||kt(DA,A)){var I=mA(e,A);return!I||!kt(kA,A)||kt(e,cA)&&e[cA][A]||(I.enumerable=!0),I}},QA=function(t){var g=wA(mt(t)),e=[];return dA(g,(function(t){kt(kA,t)||kt(dg,t)||e.push(t)})),e},YA=function(t){var g=t===pA,e=wA(g?DA:mt(t)),A=[];return dA(e,(function(t){!kt(kA,t)||g&&!kt(pA,t)||A.push(kA[t])})),A};if(Eg||(pe((vA=function(){if(this instanceof vA)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=sg(t),e=function(t){this===pA&&e.call(DA,t),kt(this,cA)&&kt(this[cA],g)&&(this[cA][g]=!1),TA(this,g,ht(1,t))};return at&&MA&&TA(pA,g,{configurable:!0,set:e}),GA(g,t)}).prototype,"toString",(function(){return fA(this).tag})),ct.f=FA,jt.f=RA,Mt.f=LA,Ue.f=IA.f=QA,_e.f=YA,at&&bA(vA.prototype,"description",{configurable:!0,get:function(){return fA(this).description}})),Zg||(CA.f=function(t){return GA(Bg(t),t)}),Ut({global:!0,wrap:!0,forced:!Eg,sham:!Eg},{Symbol:vA}),dA(Kg(EA),(function(t){nA(t)})),Ut({target:"Symbol",stat:!0,forced:!Eg},{for:function(t){var g=String(t);if(kt(OA,g))return OA[g];var e=vA(g);return OA[g]=e,NA[e]=g,e},keyFor:function(t){if(!BA(t))throw TypeError(t+" is not a symbol");if(kt(NA,t))return NA[t]},useSetter:function(){MA=!0},useSimple:function(){MA=!1}}),Ut({target:"Object",stat:!0,forced:!Eg,sham:!at},{create:function(t,g){return void 0===g?ie(t):SA(ie(t),g)},defineProperty:RA,defineProperties:SA,getOwnPropertyDescriptor:LA}),Ut({target:"Object",stat:!0,forced:!Eg},{getOwnPropertyNames:QA,getOwnPropertySymbols:YA}),Ut({target:"Object",stat:!0,forced:st((function(){_e.f(1)}))},{getOwnPropertySymbols:function(t){return _e.f(xg(t))}}),yA){var WA=!Eg||st((function(){var t=vA();return"[null]"!=yA([t])||"{}"!=yA({a:t})||"{}"!=yA(Object(t))}));Ut({target:"JSON",stat:!0,forced:WA},{stringify:function(t,g,e){for(var A,I=[t],C=1;arguments.length>C;)I.push(arguments[C++]);if(A=g,(bt(g)||void 0!==t)&&!BA(t))return _t(g)||(g=function(t,g){if("function"==typeof A&&(g=A.call(this,t,g)),!BA(g))return g}),I[1]=g,yA.apply(null,I)}})}vA.prototype[hA]||Pt(vA.prototype,hA,vA.prototype.valueOf),he(vA,"Symbol"),dg[cA]=!0;var zA=Qt.Object.getOwnPropertySymbols;Ut({target:"Object",stat:!0,sham:!at},{create:ie});var jA=Qt.Object,PA=function(t,g){return jA.create(t,g)},VA=je;var XA=function(t,g,e){return g in t?VA(t,g,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[g]=e,t},UA=st((function(){Kg(1)}));Ut({target:"Object",stat:!0,forced:UA},{keys:function(t){return Kg(xg(t))}});var _A,HA=Qt.Object.keys,JA="\t\n\v\f\r                 \u2028\u2029\ufeff",KA="["+JA+"]",qA=RegExp("^"+KA+KA+"*"),$A=RegExp(KA+KA+"*$"),tI=function(t){return function(g){var e=String(yt(g));return 1&t&&(e=e.replace(qA,"")),2&t&&(e=e.replace($A,"")),e}},gI={start:tI(1),end:tI(2),trim:tI(3)},eI=gI.trim;Ut({target:"String",proto:!0,forced:(_A="trim",st((function(){return!!JA[_A]()||"​…᠎"!="​…᠎"[_A]()||JA[_A].name!==_A})))},{trim:function(){return eI(this)}});var AI=function(t){return Qt[t+"Prototype"]},II=AI("String").trim,CI=String.prototype,iI=function(t){var g=t.trim;return"string"==typeof t||t===CI||t instanceof String&&g===CI.trim?II:g},nI=function(t,g){var e=[][t];return!e||!st((function(){e.call(null,g||function(){throw 1},1)}))},oI=lA.forEach,rI=nI("forEach")?function(t){return oI(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;Ut({target:"Array",proto:!0,forced:[].forEach!=rI},{forEach:rI});var sI,aI,lI=AI("Array").forEach,dI=Array.prototype,cI={DOMTokenList:!0,NodeList:!0},hI=function(t){var g=t.forEach;return t===dI||t instanceof Array&&g===dI.forEach||cI.hasOwnProperty(ae(t))?lI:g},uI=te("navigator","userAgent")||"",fI=rt.process,pI=fI&&fI.versions,vI=pI&&pI.v8;vI?aI=(sI=vI.split("."))[0]+sI[1]:uI&&(!(sI=uI.match(/Edge\/(\d+)/))||sI[1]>=74)&&(sI=uI.match(/Chrome\/(\d+)/))&&(aI=sI[1]);var yI=aI&&+aI,mI=Bg("species"),bI=function(t){return yI>=51||!st((function(){var g=[];return(g.constructor={})[mI]=function(){return{foo:1}},1!==g[t](Boolean).foo}))},wI=lA.map,xI=bI("map"),kI=xI&&!st((function(){[].map.call({length:-1,0:1},(function(t){throw t}))}));Ut({target:"Array",proto:!0,forced:!xI||!kI},{map:function(t){return wI(this,t,arguments.length>1?arguments[1]:void 0)}});var DI=AI("Array").map,OI=Array.prototype,NI=function(t){var g=t.map;return t===OI||t instanceof Array&&g===OI.map?DI:g},EI=gI.trim,ZI=rt.parseInt,MI=/^[+-]?0[Xx]/,TI=8!==ZI(JA+"08")||22!==ZI(JA+"0x16")?function(t,g){var e=EI(String(t));return ZI(e,g>>>0||(MI.test(e)?16:10))}:ZI;Ut({global:!0,forced:parseInt!=TI},{parseInt:TI});var GI=Qt.parseInt,BI=ct.f,RI=function(t){return function(g){for(var e,A=mt(g),I=Kg(A),C=I.length,i=0,n=[];C>i;)e=I[i++],at&&!BI.call(A,e)||n.push(t?[e,A[e]]:A[e]);return n}},SI={entries:RI(!0),values:RI(!1)}.values;Ut({target:"Object",stat:!0},{values:function(t){return SI(t)}});var FI=Qt.Object.values,LI=lA.filter,QI=bI("filter"),YI=QI&&!st((function(){[].filter.call({length:-1,0:1},(function(t){throw t}))}));Ut({target:"Array",proto:!0,forced:!QI||!YI},{filter:function(t){return LI(this,t,arguments.length>1?arguments[1]:void 0)}});var WI=AI("Array").filter,zI=Array.prototype,jI=function(t){var g=t.filter;return t===zI||t instanceof Array&&g===zI.filter?WI:g},PI=Bg("isConcatSpreadable"),VI=yI>=51||!st((function(){var t=[];return t[PI]=!1,t.concat()[0]!==t})),XI=bI("concat"),UI=function(t){if(!bt(t))return!1;var g=t[PI];return void 0!==g?!!g:_t(t)};Ut({target:"Array",proto:!0,forced:!VI||!XI},{concat:function(t){var g,e,A,I,C,i=xg(this),n=rA(i,0),o=0;for(g=-1,A=arguments.length;g<A;g++)if(C=-1===g?i:arguments[g],UI(C)){if(o+(I=zg(C.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<I;e++,o++)e in C&&Je(n,o,C[e])}else{if(o>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Je(n,o++,C)}return n.length=o,n}});var _I=AI("Array").concat,HI=Array.prototype,JI=function(t){var g=t.concat;return t===HI||t instanceof Array&&g===HI.concat?_I:g};var KI=function(t){if(Jt(t)){for(var g=0,e=new Array(t.length);g<t.length;g++)e[g]=t[g];return e}},qI=function(t,g,e,A){try{return A?g(Wt(e)[0],e[1]):g(e)}catch(g){var I=t.return;throw void 0!==I&&Wt(I.call(t)),g}},$I=Bg("iterator"),tC=Array.prototype,gC=function(t){return void 0!==t&&(qt.Array===t||tC[$I]===t)},eC=Bg("iterator"),AC=!1;try{var IC=0,CC={next:function(){return{done:!!IC++}},return:function(){AC=!0}};CC[eC]=function(){return this},Array.from(CC,(function(){throw 2}))}catch(t){}var iC=!function(t,g){if(!g&&!AC)return!1;var e=!1;try{var A={};A[eC]=function(){return{next:function(){return{done:e=!0}}}},t(A)}catch(t){}return e}((function(t){Array.from(t)}));Ut({target:"Array",stat:!0,forced:iC},{from:function(t){var g,e,A,I,C,i=xg(t),n="function"==typeof this?this:Array,o=arguments.length,r=o>1?arguments[1]:void 0,s=void 0!==r,a=0,l=Re(i);if(s&&(r=Yt(r,o>2?arguments[2]:void 0,2)),null==l||n==Array&&gC(l))for(e=new n(g=zg(i.length));g>a;a++)Je(e,a,s?r(i[a],a):i[a]);else for(C=(I=l.call(i)).next,e=new n;!(A=C.call(I)).done;a++)Je(e,a,s?qI(I,r,[A.value,a],!0):A.value);return e.length=a,e}});var nC=Qt.Array.from;var oC=function(t){if(Le(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return nC(t)};var rC=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var sC=function(t){return KI(t)||oC(t)||rC()},aC=Bg("species"),lC=[].slice,dC=Math.max;Ut({target:"Array",proto:!0,forced:!bI("slice")},{slice:function(t,g){var e,A,I,C=mt(this),i=zg(C.length),n=Vg(t,i),o=Vg(void 0===g?i:g,i);if(_t(C)&&("function"!=typeof(e=C.constructor)||e!==Array&&!_t(e.prototype)?bt(e)&&null===(e=e[aC])&&(e=void 0):e=void 0,e===Array||void 0===e))return lC.call(C,n,o);for(A=new(void 0===e?Array:e)(dC(o-n,0)),I=0;n<o;n++,I++)n in C&&Je(A,I,C[n]);return A.length=I,A}});var cC=AI("Array").slice,hC=Array.prototype,uC=function(t){var g=t.slice;return t===hC||t instanceof Array&&g===hC.slice?cC:g},fC=st((function(){Ng(1)}));Ut({target:"Object",stat:!0,forced:fC,sham:!kg},{getPrototypeOf:function(t){return Ng(xg(t))}});var pC=Qt.Object.getPrototypeOf,vC=Ug.indexOf,yC=[].indexOf,mC=!!yC&&1/[1].indexOf(1,-0)<0,bC=nI("indexOf");Ut({target:"Array",proto:!0,forced:mC||bC},{indexOf:function(t){return mC?yC.apply(this,arguments)||0:vC(this,t,arguments.length>1?arguments[1]:void 0)}});var wC=AI("Array").indexOf,xC=Array.prototype,kC=function(t){var g=t.indexOf;return t===xC||t instanceof Array&&g===xC.indexOf?wC:g},DC=Ht,OC=Object.assign,NC=Object.defineProperty,EC=!OC||st((function(){if(at&&1!==OC({b:1},OC(NC({},"a",{enumerable:!0,get:function(){NC(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},g={},e=Symbol();return t[e]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){g[t]=t})),7!=OC({},t)[e]||"abcdefghijklmnopqrst"!=Kg(OC({},g)).join("")}))?function(t,g){for(var e=xg(t),A=arguments.length,I=1,C=_e.f,i=ct.f;A>I;)for(var n,o=vt(arguments[I++]),r=C?Kg(o).concat(C(o)):Kg(o),s=r.length,a=0;s>a;)n=r[a++],at&&!i.call(o,n)||(e[n]=o[n]);return e}:OC;Ut({target:"Object",stat:!0,forced:Object.assign!==EC},{assign:EC});var ZC=Qt.Object.assign;nA("iterator");var MC=CA.f("iterator");nA("asyncIterator"),nA("hasInstance"),nA("isConcatSpreadable"),nA("match"),nA("matchAll"),nA("replace"),nA("search"),nA("species"),nA("split"),nA("toPrimitive"),nA("toStringTag"),nA("unscopables"),he(Math,"Math",!0),he(rt.JSON,"JSON",!0);var TC=Qt.Symbol;nA("asyncDispose"),nA("dispose"),nA("observable"),nA("patternMatch"),nA("replaceAll");for(var GC=TC,BC=nt((function(t){function g(e){return t.exports=g="function"==typeof GC&&"symbol"==typeof MC?function(t){return typeof t}:function(t){return t&&"function"==typeof GC&&t.constructor===GC&&t!==GC.prototype?"symbol":typeof t},g(e)}t.exports=g})),RC=[],SC=0;SC<256;SC++)RC[SC]=(SC+256).toString(16).substr(1);for(var FC=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var g=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),g[e]=t>>>((3&e)<<3)&255;return g}}(),LC=[],QC=0;QC<256;QC++)LC[QC]=(QC+256).toString(16).substr(1);var YC=FC();YC[0],YC[1],YC[2],YC[3],YC[4],YC[5],YC[6],YC[7];function WC(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,A=g&&e||0;"string"==typeof t&&(g="binary"===t?new Array(16):void 0,t={});var I=t.random||(t.rng||FC)();if(I[6]=15&I[6]|64,I[8]=63&I[8]|128,g)for(var C=0;C<16;C++)g[A+C]=I[C];return g||function(t,g){var e=g||0,A=RC;return A[t[e++]]+A[t[e++]]+A[t[e++]]+A[t[e++]]+"-"+A[t[e++]]+A[t[e++]]+"-"+A[t[e++]]+A[t[e++]]+"-"+A[t[e++]]+A[t[e++]]+"-"+A[t[e++]]+A[t[e++]]+A[t[e++]]+A[t[e++]]+A[t[e++]]+A[t[e++]]}(I)}function zC(t,g){var e=HA(t);if(zA){var A=zA(t);g&&(A=jI(A).call(A,(function(g){return tA(t,g).enumerable}))),e.push.apply(e,A)}return e}var jC=/^\/?Date\((-?\d+)/i,PC=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,VC=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,XC=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,UC=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function _C(t){return t instanceof Number||"number"==typeof t}function HC(t){if(t)for(;!0===t.hasChildNodes();){var g=t.firstChild;g&&(HC(g),t.removeChild(g))}}function JC(t){return t instanceof String||"string"==typeof t}function KC(t){return"object"===BC(t)&&null!==t}function qC(t){if(t instanceof Date)return!0;if(JC(t)){if(jC.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function $C(t,g,e,A){var I=!1;!0===A&&(I=null===g[e]&&void 0!==t[e]),I?delete t[e]:t[e]=g[e]}function ti(t,g){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var A in t)if(void 0!==g[A])if(null===g[A]||"object"!==BC(g[A]))$C(t,g,A,e);else{var I=t[A],C=g[A];KC(I)&&KC(C)&&ti(I,C,e)}}var gi=ZC;function ei(t,g){if(!DC(t))throw new Error("Array with property names expected as first argument");for(var e=arguments.length,A=new Array(e>2?e-2:0),I=2;I<e;I++)A[I-2]=arguments[I];for(var C=0,i=A;C<i.length;C++)for(var n=i[C],o=0;o<t.length;o++){var r=t[o];n&&Object.prototype.hasOwnProperty.call(n,r)&&(g[r]=n[r])}return g}function Ai(t,g,e){var A=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(DC(e))throw new TypeError("Arrays are not supported by deepExtend");for(var I=0;I<t.length;I++){var C=t[I];if(Object.prototype.hasOwnProperty.call(e,C))if(e[C]&&e[C].constructor===Object)void 0===g[C]&&(g[C]={}),g[C].constructor===Object?Ci(g[C],e[C],!1,A):$C(g,e,C,A);else{if(DC(e[C]))throw new TypeError("Arrays are not supported by deepExtend");$C(g,e,C,A)}}return g}function Ii(t,g,e){var A=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(DC(e))throw new TypeError("Arrays are not supported by deepExtend");for(var I in e)if(Object.prototype.hasOwnProperty.call(e,I)&&-1===kC(t).call(t,I))if(e[I]&&e[I].constructor===Object)void 0===g[I]&&(g[I]={}),g[I].constructor===Object?Ci(g[I],e[I]):$C(g,e,I,A);else if(DC(e[I])){g[I]=[];for(var C=0;C<e[I].length;C++)g[I].push(e[I][C])}else $C(g,e,I,A);return g}function Ci(t,g){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var I in g)if(Object.prototype.hasOwnProperty.call(g,I)||!0===e)if("object"===BC(g[I])&&null!==g[I]&&pC(g[I])===Object.prototype)void 0===t[I]?t[I]=Ci({},g[I],e):"object"===BC(t[I])&&null!==t[I]&&pC(t[I])===Object.prototype?Ci(t[I],g[I],e):$C(t,g,I,A);else if(DC(g[I])){var C;t[I]=uC(C=g[I]).call(C)}else $C(t,g,I,A);return t}function ii(t,g){if(t.length!==g.length)return!1;for(var e=0,A=t.length;e<A;e++)if(t[e]!=g[e])return!1;return!0}function ni(t){var g=BC(t);return"object"===g?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":DC(t)?"Array":t instanceof Date?"Date":"Object":"number"===g?"Number":"boolean"===g?"Boolean":"string"===g?"String":void 0===g?"undefined":g}function oi(t,g){var e;return JI(e=[]).call(e,sC(t),[g])}function ri(t){return uC(t).call(t)}function si(t){return t.getBoundingClientRect().left}function ai(t){return t.getBoundingClientRect().right}function li(t){return t.getBoundingClientRect().top}function di(t,g){var e=t.className.split(" "),A=g.split(" ");e=JI(e).call(e,jI(A).call(A,(function(t){return kC(e).call(e,t)<0}))),t.className=e.join(" ")}function ci(t,g){var e=t.className.split(" "),A=g.split(" ");e=jI(e).call(e,(function(t){return kC(A).call(A,t)<0})),t.className=e.join(" ")}function hi(t,g){if(DC(t))for(var e=t.length,A=0;A<e;A++)g(t[A],A,t);else for(var I in t)Object.prototype.hasOwnProperty.call(t,I)&&g(t[I],I,t)}var ui=FI;function fi(t,g,e){return t[g]!==e&&(t[g]=e,!0)}function pi(t){var g=!1;return function(){g||(g=!0,requestAnimationFrame((function(){g=!1,t()})))}}function vi(t,g,e,A){var I;t.addEventListener?(void 0===A&&(A=!1),"mousewheel"===g&&kC(I=navigator.userAgent).call(I,"Firefox")>=0&&(g="DOMMouseScroll"),t.addEventListener(g,e,A)):t.attachEvent("on"+g,e)}function yi(t,g,e,A){var I;t.removeEventListener?(void 0===A&&(A=!1),"mousewheel"===g&&kC(I=navigator.userAgent).call(I,"Firefox")>=0&&(g="DOMMouseScroll"),t.removeEventListener(g,e,A)):t.detachEvent("on"+g,e)}function mi(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function bi(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,g=null;return t&&(t.target?g=t.target:t.srcElement&&(g=t.srcElement)),g instanceof Element&&(null==g.nodeType||3!=g.nodeType||(g=g.parentNode)instanceof Element)?g:null}function wi(t,g){for(var e=t;e;){if(e===g)return!0;if(!e.parentNode)return!1;e=e.parentNode}return!1}var xi={asBoolean:function(t,g){return"function"==typeof t&&(t=t()),null!=t?0!=t:g||null},asNumber:function(t,g){return"function"==typeof t&&(t=t()),null!=t?Number(t)||g||null:g||null},asString:function(t,g){return"function"==typeof t&&(t=t()),null!=t?String(t):g||null},asSize:function(t,g){return"function"==typeof t&&(t=t()),JC(t)?t:_C(t)?t+"px":g||null},asElement:function(t,g){return"function"==typeof t&&(t=t()),t||g||null}};function ki(t){var g;switch(t.length){case 3:case 4:return(g=VC.exec(t))?{r:GI(g[1]+g[1],16),g:GI(g[2]+g[2],16),b:GI(g[3]+g[3],16)}:null;case 6:case 7:return(g=PC.exec(t))?{r:GI(g[1],16),g:GI(g[2],16),b:GI(g[3],16)}:null;default:return null}}function Di(t,g){if(-1!==kC(t).call(t,"rgba"))return t;if(-1!==kC(t).call(t,"rgb")){var e=t.substr(kC(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+e[0]+","+e[1]+","+e[2]+","+g+")"}var A=ki(t);return null==A?t:"rgba("+A.r+","+A.g+","+A.b+","+g+")"}function Oi(t,g,e){var A;return"#"+uC(A=((1<<24)+(t<<16)+(g<<8)+e).toString(16)).call(A,1)}function Ni(t,g){if(JC(t)){var e=t;if(Fi(e)){var A,I=NI(A=e.substr(4).substr(0,e.length-5).split(",")).call(A,(function(t){return GI(t)}));e=Oi(I[0],I[1],I[2])}if(!0===Si(e)){var C=Ri(e),i={h:C.h,s:.8*C.s,v:Math.min(1,1.02*C.v)},n={h:C.h,s:Math.min(1,1.25*C.s),v:.8*C.v},o=Bi(n.h,n.s,n.v),r=Bi(i.h,i.s,i.v);return{background:e,border:o,highlight:{background:r,border:o},hover:{background:r,border:o}}}return{background:e,border:e,highlight:{background:e,border:e},hover:{background:e,border:e}}}return g?{background:t.background||g.background,border:t.border||g.border,highlight:JC(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||g.highlight.background,border:t.highlight&&t.highlight.border||g.highlight.border},hover:JC(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||g.hover.border,background:t.hover&&t.hover.background||g.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:JC(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:JC(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function Ei(t,g,e){t/=255,g/=255,e/=255;var A=Math.min(t,Math.min(g,e)),I=Math.max(t,Math.max(g,e));return A===I?{h:0,s:0,v:A}:{h:60*((t===A?3:e===A?1:5)-(t===A?g-e:e===A?t-g:e-t)/(I-A))/360,s:(I-A)/I,v:I}}var Zi={split:function(t){var g,e={};return hI(g=t.split(";")).call(g,(function(t){if(""!=iI(t).call(t)){var g,A,I=t.split(":"),C=iI(g=I[0]).call(g),i=iI(A=I[1]).call(A);e[C]=i}})),e},join:function(t){var g;return NI(g=HA(t)).call(g,(function(g){return g+": "+t[g]})).join("; ")}};function Mi(t,g){var e=function(t){for(var g=1;g<arguments.length;g++){var e,A=null!=arguments[g]?arguments[g]:{};if(g%2)hI(e=zC(Object(A),!0)).call(e,(function(g){XA(t,g,A[g])}));else if(Ke)Ve(t,Ke(A));else{var I;hI(I=zC(Object(A))).call(I,(function(g){Pe(t,g,tA(A,g))}))}}return t}({},Zi.split(t.style.cssText),{},Zi.split(g));t.style.cssText=Zi.join(e)}function Ti(t,g){var e=Zi.split(t.style.cssText),A=Zi.split(g);for(var I in A)Object.prototype.hasOwnProperty.call(A,I)&&delete e[I];t.style.cssText=Zi.join(e)}function Gi(t,g,e){var A,I,C,i=Math.floor(6*t),n=6*t-i,o=e*(1-g),r=e*(1-n*g),s=e*(1-(1-n)*g);switch(i%6){case 0:A=e,I=s,C=o;break;case 1:A=r,I=e,C=o;break;case 2:A=o,I=e,C=s;break;case 3:A=o,I=r,C=e;break;case 4:A=s,I=o,C=e;break;case 5:A=e,I=o,C=r}return{r:Math.floor(255*A),g:Math.floor(255*I),b:Math.floor(255*C)}}function Bi(t,g,e){var A=Gi(t,g,e);return Oi(A.r,A.g,A.b)}function Ri(t){var g=ki(t);if(!g)throw new TypeError("'".concat(t,"' is not a valid color."));return Ei(g.r,g.g,g.b)}function Si(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Fi(t){return XC.test(t)}function Li(t){return UC.test(t)}function Qi(t,g){if(null!==g&&"object"===BC(g)){for(var e=PA(g),A=0;A<t.length;A++)Object.prototype.hasOwnProperty.call(g,t[A])&&"object"==BC(g[t[A]])&&(e[t[A]]=Yi(g[t[A]]));return e}return null}function Yi(t){if(null===t||"object"!==BC(t))return null;if(t instanceof Element)return t;var g=PA(t);for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&"object"==BC(t[e])&&(g[e]=Yi(t[e]));return g}function Wi(t,g){for(var e=0;e<t.length;e++){var A=t[e],I=void 0;for(I=e;I>0&&g(A,t[I-1])<0;I--)t[I]=t[I-1];t[I]=A}return t}function zi(t,g,e){var A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},I=function(t){return null!=t},C=function(t){return null!==t&&"object"===BC(t)};if(!C(t))throw new Error("Parameter mergeTarget must be an object");if(!C(g))throw new Error("Parameter options must be an object");if(!I(e))throw new Error("Parameter option must have a value");if(!C(A))throw new Error("Parameter globalOptions must be an object");var i=g[e],n=C(A)&&!function(t){for(var g in t)if(Object.prototype.hasOwnProperty.call(t,g))return!1;return!0}(A)?A[e]:void 0,o=n?n.enabled:void 0;if(void 0!==i){if("boolean"==typeof i)return C(t[e])||(t[e]={}),void(t[e].enabled=i);if(null===i&&!C(t[e])){if(!I(n))return;t[e]=PA(n)}if(C(i)){var r=!0;void 0!==i.enabled?r=i.enabled:void 0!==o&&(r=n.enabled),function(t,g,e){C(t[e])||(t[e]={});var A=g[e],I=t[e];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(I[i]=A[i])}(t,g,e),t[e].enabled=r}}}function ji(t,g,e,A){for(var I=0,C=0,i=t.length-1;C<=i&&I<1e4;){var n=Math.floor((C+i)/2),o=t[n],r=g(void 0===A?o[e]:o[e][A]);if(0==r)return n;-1==r?C=n+1:i=n-1,I++}return-1}function Pi(t,g,e,A,I){var C,i,n,o,r=0,s=0,a=t.length-1;for(I=null!=I?I:function(t,g){return t==g?0:t<g?-1:1};s<=a&&r<1e4;){if(o=Math.floor(.5*(a+s)),C=t[Math.max(0,o-1)][e],i=t[o][e],n=t[Math.min(t.length-1,o+1)][e],0==I(i,g))return o;if(I(C,g)<0&&I(i,g)>0)return"before"==A?Math.max(0,o-1):o;if(I(i,g)<0&&I(n,g)>0)return"before"==A?o:Math.min(t.length-1,o+1);I(i,g)<0?s=o+1:a=o-1,r++}return-1}var Vi={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Xi(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var g=document.createElement("div");g.style.position="absolute",g.style.top="0px",g.style.left="0px",g.style.visibility="hidden",g.style.width="200px",g.style.height="150px",g.style.overflow="hidden",g.appendChild(t),document.body.appendChild(g);var e=t.offsetWidth;g.style.overflow="scroll";var A=t.offsetWidth;return e==A&&(A=g.clientWidth),document.body.removeChild(g),e-A}function Ui(t,g){var e;DC(g)||(g=[g]);var A=!0,I=!1,C=void 0;try{for(var i,n=Se(t);!(A=(i=n.next()).done);A=!0){var o=i.value;if(o){e=o[g[0]];for(var r=1;r<g.length;r++)e&&(e=e[g[r]]);if(void 0!==e)break}}}catch(t){I=!0,C=t}finally{try{A||null==n.return||n.return()}finally{if(I)throw C}}return e}var _i=Object.freeze({__proto__:null,isNumber:_C,recursiveDOMDelete:HC,isString:JC,isObject:KC,isDate:qC,fillIfDefined:ti,extend:gi,selectiveExtend:ei,selectiveDeepExtend:Ai,selectiveNotDeepExtend:Ii,deepExtend:Ci,equalArray:ii,getType:ni,copyAndExtendArray:oi,copyArray:ri,getAbsoluteLeft:si,getAbsoluteRight:ai,getAbsoluteTop:li,addClassName:di,removeClassName:ci,forEach:hi,toArray:ui,updateProperty:fi,throttle:pi,addEventListener:vi,removeEventListener:yi,preventDefault:mi,getTarget:bi,hasParent:wi,option:xi,hexToRGB:ki,overrideOpacity:Di,RGBToHex:Oi,parseColor:Ni,RGBToHSV:Ei,addCssText:Mi,removeCssText:Ti,HSVToRGB:Gi,HSVToHex:Bi,hexToHSV:Ri,isValidHex:Si,isValidRGB:Fi,isValidRGBA:Li,selectiveBridgeObject:Qi,bridgeObject:Yi,insertSort:Wi,mergeOptions:zi,binarySearchCustom:ji,binarySearchValue:Pi,easingFunctions:Vi,getScrollBarWidth:Xi,topMost:Ui,randomUUID:WC}),Hi=Object.freeze({__proto__:null,default:_i,Alea:function(){for(var t=arguments.length,g=new Array(t),e=0;e<t;e++)g[e]=arguments[e];return function(t){var g=function(){for(var t=function(){var t=4022871197;return function(g){for(var e=g.toString(),A=0;A<e.length;A++){var I=.02519603282416938*(t+=e.charCodeAt(A));I-=t=I>>>0,t=(I*=t)>>>0,t+=4294967296*(I-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),g=t(" "),e=t(" "),A=t(" "),I=0;I<arguments.length;I++)(g-=t(I<0||arguments.length<=I?void 0:arguments[I]))<0&&(g+=1),(e-=t(I<0||arguments.length<=I?void 0:arguments[I]))<0&&(e+=1),(A-=t(I<0||arguments.length<=I?void 0:arguments[I]))<0&&(A+=1);return[g,e,A]}(t),e=We(g,3),A=e[0],I=e[1],C=e[2],i=1,n=function(){var t=2091639*A+2.3283064365386963e-10*i;return A=I,I=C,C=t-(i=0|t)};return n.uint32=function(){return 4294967296*n()},n.fract53=function(){return n()+11102230246251565e-32*(2097152*n()|0)},n.algorithm="Alea",n.seed=t,n.version="0.9",n}(g.length?g:[ze()])},HSVToHex:Bi,HSVToRGB:Gi,RGBToHSV:Ei,RGBToHex:Oi,addClassName:di,addCssText:Mi,addEventListener:vi,binarySearchCustom:ji,binarySearchValue:Pi,bridgeObject:Yi,copyAndExtendArray:oi,copyArray:ri,deepExtend:Ci,easingFunctions:Vi,equalArray:ii,extend:gi,fillIfDefined:ti,forEach:hi,getAbsoluteLeft:si,getAbsoluteRight:ai,getAbsoluteTop:li,getScrollBarWidth:Xi,getTarget:bi,getType:ni,hasParent:wi,hexToHSV:Ri,hexToRGB:ki,insertSort:Wi,isDate:qC,isNumber:_C,isObject:KC,isString:JC,isValidHex:Si,isValidRGB:Fi,isValidRGBA:Li,mergeOptions:zi,option:xi,overrideOpacity:Di,parseColor:Ni,preventDefault:mi,randomUUID:WC,recursiveDOMDelete:HC,removeClassName:ci,removeCssText:Ti,removeEventListener:yi,selectiveBridgeObject:Qi,selectiveDeepExtend:Ai,selectiveExtend:ei,selectiveNotDeepExtend:Ii,throttle:pi,toArray:ui,topMost:Ui,updateProperty:fi}),Ji={},Ki=C["__core-js_shared__"]||function(t,g){try{W(C,t,g)}catch(e){C[t]=g}return g}("__core-js_shared__",{}),qi=Function.toString;"function"!=typeof Ki.inspectSource&&(Ki.inspectSource=function(t){return qi.call(t)});var $i,tn,gn,en=Ki.inspectSource,An=C.WeakMap,In="function"==typeof An&&/native code/.test(en(An)),Cn=e((function(t){(t.exports=function(t,g){return Ki[t]||(Ki[t]=void 0!==g?g:{})})("versions",[]).push({version:"3.6.3",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),nn=0,on=Math.random(),rn=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++nn+on).toString(36)},sn=Cn("keys"),an=function(t){return sn[t]||(sn[t]=rn(t))},ln={},dn=C.WeakMap;if(In){var cn=new dn,hn=cn.get,un=cn.has,fn=cn.set;$i=function(t,g){return fn.call(cn,t,g),g},tn=function(t){return hn.call(cn,t)||{}},gn=function(t){return un.call(cn,t)}}else{var pn=an("state");ln[pn]=!0,$i=function(t,g){return W(t,pn,g),g},tn=function(t){return m(t,pn)?t[pn]:{}},gn=function(t){return m(t,pn)}}var vn,yn,mn,bn={set:$i,get:tn,has:gn,enforce:function(t){return gn(t)?tn(t):$i(t,{})},getterFor:function(t){return function(g){var e;if(!p(g)||(e=tn(g)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},wn=function(t){return Object(u(t))},xn=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),kn=an("IE_PROTO"),Dn=Object.prototype,On=xn?Object.getPrototypeOf:function(t){return t=wn(t),m(t,kn)?t[kn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Dn:null},Nn=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),En=Nn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zn=Cn("wks"),Mn=C.Symbol,Tn=En?Mn:Mn&&Mn.withoutSetter||rn,Gn=function(t){return m(Zn,t)||(Nn&&m(Mn,t)?Zn[t]=Mn[t]:Zn[t]=Tn("Symbol."+t)),Zn[t]},Bn=(Gn("iterator"),!1);[].keys&&("next"in(mn=[].keys())?(yn=On(On(mn)))!==Object.prototype&&(vn=yn):Bn=!0),null==vn&&(vn={});var Rn,Sn={IteratorPrototype:vn,BUGGY_SAFARI_ITERATORS:Bn},Fn=Math.ceil,Ln=Math.floor,Qn=function(t){return isNaN(t=+t)?0:(t>0?Ln:Fn)(t)},Yn=Math.min,Wn=function(t){return t>0?Yn(Qn(t),9007199254740991):0},zn=Math.max,jn=Math.min,Pn=function(t,g){var e=Qn(t);return e<0?zn(e+g,0):jn(e,g)},Vn=function(t){return function(g,e,A){var I,C=f(g),i=Wn(C.length),n=Pn(A,i);if(t&&e!=e){for(;i>n;)if((I=C[n++])!=I)return!0}else for(;i>n;n++)if((t||n in C)&&C[n]===e)return t||n||0;return!t&&-1}},Xn={includes:Vn(!0),indexOf:Vn(!1)},Un=Xn.indexOf,_n=function(t,g){var e,A=f(t),I=0,C=[];for(e in A)!m(ln,e)&&m(A,e)&&C.push(e);for(;g.length>I;)m(A,e=g[I++])&&(~Un(C,e)||C.push(e));return C},Hn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jn=Object.keys||function(t){return _n(t,Hn)},Kn=n?Object.defineProperties:function(t,g){L(t);for(var e,A=Jn(g),I=A.length,C=0;I>C;)Y.f(t,e=A[C++],g[e]);return t},qn=function(t){return"function"==typeof t?t:void 0},$n=function(t,g){return arguments.length<2?qn(R[t])||qn(C[t]):R[t]&&R[t][g]||C[t]&&C[t][g]},to=$n("document","documentElement"),go=an("IE_PROTO"),eo=function(){},Ao=function(t){return"<script>"+t+"<\/script>"},Io=function(){try{Rn=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,g;Io=Rn?function(t){t.write(Ao("")),t.close();var g=t.parentWindow.Object;return t=null,g}(Rn):((g=x("iframe")).style.display="none",to.appendChild(g),g.src=String("javascript:"),(t=g.contentWindow.document).open(),t.write(Ao("document.F=Object")),t.close(),t.F);for(var e=Hn.length;e--;)delete Io.prototype[Hn[e]];return Io()};ln[go]=!0;var Co=Object.create||function(t,g){var e;return null!==t?(eo.prototype=L(t),e=new eo,eo.prototype=null,e[go]=t):e=Io(),void 0===g?e:Kn(e,g)},io={};io[Gn("toStringTag")]="z";var no="[object z]"===String(io),oo=Gn("toStringTag"),ro="Arguments"==d(function(){return arguments}()),so=no?d:function(t){var g,e,A;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,g){try{return t[g]}catch(t){}}(g=Object(t),oo))?e:ro?d(g):"Object"==(A=d(g))&&"function"==typeof g.callee?"Arguments":A},ao=no?{}.toString:function(){return"[object "+so(this)+"]"},lo=Y.f,co=Gn("toStringTag"),ho=function(t,g,e,A){if(t){var I=e?t:t.prototype;m(I,co)||lo(I,co,{configurable:!0,value:g}),A&&!no&&W(I,"toString",ao)}},uo=Sn.IteratorPrototype,fo=function(){return this},po=Object.setPrototypeOf||("__proto__"in{}?function(){var t,g=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),g=e instanceof Array}catch(t){}return function(e,A){return L(e),function(t){if(!p(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(A),g?t.call(e,A):e.__proto__=A,e}}():void 0),vo=function(t,g,e,A){A&&A.enumerable?t[g]=e:W(t,g,e)},yo=Sn.IteratorPrototype,mo=Sn.BUGGY_SAFARI_ITERATORS,bo=Gn("iterator"),wo=function(){return this},xo=function(t,g,e,A,I,C,i){!function(t,g,e){var A=g+" Iterator";t.prototype=Co(uo,{next:a(1,e)}),ho(t,A,!1,!0),Ji[A]=fo}(e,g,A);var n,o,r,s=function(t){if(t===I&&u)return u;if(!mo&&t in c)return c[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},l=g+" Iterator",d=!1,c=t.prototype,h=c[bo]||c["@@iterator"]||I&&c[I],u=!mo&&h||s(I),f="Array"==g&&c.entries||h;if(f&&(n=On(f.call(new t)),yo!==Object.prototype&&n.next&&(ho(n,l,!0,!0),Ji[l]=wo)),"values"==I&&h&&"values"!==h.name&&(d=!0,u=function(){return h.call(this)}),i&&c[bo]!==u&&W(c,bo,u),Ji[g]=u,I)if(o={values:s("values"),keys:C?u:s("keys"),entries:s("entries")},i)for(r in o)!mo&&!d&&r in c||vo(c,r,o[r]);else P({target:g,proto:!0,forced:mo||d},o);return o},ko=bn.set,Do=bn.getterFor("Array Iterator");xo(Array,"Array",(function(t,g){ko(this,{type:"Array Iterator",target:f(t),index:0,kind:g})}),(function(){var t=Do(this),g=t.target,e=t.kind,A=t.index++;return!g||A>=g.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:A,done:!1}:"values"==e?{value:g[A],done:!1}:{value:[A,g[A]],done:!1}}),"values");Ji.Arguments=Ji.Array;var Oo=Gn("toStringTag");for(var No in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Eo=C[No],Zo=Eo&&Eo.prototype;Zo&&so(Zo)!==Oo&&W(Zo,Oo,No),Ji[No]=Ji.Array}var Mo=Array.isArray||function(t){return"Array"==d(t)},To=Gn("species"),Go=function(t,g){var e;return Mo(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Mo(e.prototype)?p(e)&&null===(e=e[To])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===g?0:g)},Bo=[].push,Ro=function(t){var g=1==t,e=2==t,A=3==t,I=4==t,C=6==t,i=5==t||C;return function(n,o,r,s){for(var a,l,d=wn(n),c=h(d),u=F(o,r,3),f=Wn(c.length),p=0,v=s||Go,y=g?v(n,f):e?v(n,0):void 0;f>p;p++)if((i||p in c)&&(l=u(a=c[p],p,d),t))if(g)y[p]=l;else if(l)switch(t){case 3:return!0;case 5:return a;case 6:return p;case 2:Bo.call(y,a)}else if(I)return!1;return C?-1:A||I?I:y}},So={forEach:Ro(0),map:Ro(1),filter:Ro(2),some:Ro(3),every:Ro(4),find:Ro(5),findIndex:Ro(6)},Fo=function(t,g){var e=[][t];return!!e&&i((function(){e.call(null,g||function(){throw 1},1)}))},Lo=Object.defineProperty,Qo=function(t){throw t},Yo=function(t,g){g||(g={});var e=[][t],A=!!m(g,"ACCESSORS")&&g.ACCESSORS,I=m(g,0)?g[0]:Qo,C=m(g,1)?g[1]:void 0;return!!e&&!i((function(){if(A&&!n)return!0;var t={length:-1},g=function(g){A?Lo(t,g,{enumerable:!0,get:Qo}):t[g]=1};g(1),g(2147483646),g(4294967294),e.call(t,I,C)}))},Wo=So.forEach,zo=Fo("forEach"),jo=Yo("forEach"),Po=zo&&jo?[].forEach:function(t){return Wo(this,t,arguments.length>1?arguments[1]:void 0)};P({target:"Array",proto:!0,forced:[].forEach!=Po},{forEach:Po});var Vo=H("Array").forEach,Xo=Array.prototype,Uo={DOMTokenList:!0,NodeList:!0},_o=function(t){var g=t.forEach;return t===Xo||t instanceof Array&&g===Xo.forEach||Uo.hasOwnProperty(so(t))?Vo:g};P({target:"Array",stat:!0},{isArray:Mo});var Ho,Jo,Ko=R.Array.isArray,qo=Ko,$o=function(t,g,e){var A=v(g);A in t?Y.f(t,A,a(0,e)):t[A]=e},tr=$n("navigator","userAgent")||"",gr=C.process,er=gr&&gr.versions,Ar=er&&er.v8;Ar?Jo=(Ho=Ar.split("."))[0]+Ho[1]:tr&&(!(Ho=tr.match(/Edge\/(\d+)/))||Ho[1]>=74)&&(Ho=tr.match(/Chrome\/(\d+)/))&&(Jo=Ho[1]);var Ir=Jo&&+Jo,Cr=Gn("species"),ir=function(t){return Ir>=51||!i((function(){var g=[];return(g.constructor={})[Cr]=function(){return{foo:1}},1!==g[t](Boolean).foo}))},nr=ir("splice"),or=Yo("splice",{ACCESSORS:!0,0:0,1:2}),rr=Math.max,sr=Math.min;P({target:"Array",proto:!0,forced:!nr||!or},{splice:function(t,g){var e,A,I,C,i,n,o=wn(this),r=Wn(o.length),s=Pn(t,r),a=arguments.length;if(0===a?e=A=0:1===a?(e=0,A=r-s):(e=a-2,A=sr(rr(Qn(g),0),r-s)),r+e-A>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(I=Go(o,A),C=0;C<A;C++)(i=s+C)in o&&$o(I,C,o[i]);if(I.length=A,e<A){for(C=s;C<r-A;C++)n=C+e,(i=C+A)in o?o[n]=o[i]:delete o[n];for(C=r;C>r-A+e;C--)delete o[C-1]}else if(e>A)for(C=r-A;C>s;C--)n=C+e-1,(i=C+A-1)in o?o[n]=o[i]:delete o[n];for(C=0;C<e;C++)o[C+s]=arguments[C+2];return o.length=r-A+e,I}});var ar=H("Array").splice,lr=Array.prototype,dr=function(t){var g=t.splice;return t===lr||t instanceof Array&&g===lr.splice?ar:g},cr=Xn.includes,hr=Yo("indexOf",{ACCESSORS:!0,1:0});P({target:"Array",proto:!0,forced:!hr},{includes:function(t){return cr(this,t,arguments.length>1?arguments[1]:void 0)}});var ur=H("Array").includes,fr=Gn("match"),pr=function(t){if(function(t){var g;return p(t)&&(void 0!==(g=t[fr])?!!g:"RegExp"==d(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},vr=Gn("match");P({target:"String",proto:!0,forced:!function(t){var g=/./;try{"/./"[t](g)}catch(e){try{return g[vr]=!1,"/./"[t](g)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(u(this)).indexOf(pr(t),arguments.length>1?arguments[1]:void 0)}});var yr=H("String").includes,mr=Array.prototype,br=String.prototype,wr=function(t){var g=t.includes;return t===mr||t instanceof Array&&g===mr.includes?ur:"string"==typeof t||t===br||t instanceof String&&g===br.includes?yr:g},xr=Xn.indexOf,kr=[].indexOf,Dr=!!kr&&1/[1].indexOf(1,-0)<0,Or=Fo("indexOf"),Nr=Yo("indexOf",{ACCESSORS:!0,1:0});P({target:"Array",proto:!0,forced:Dr||!Or||!Nr},{indexOf:function(t){return Dr?kr.apply(this,arguments)||0:xr(this,t,arguments.length>1?arguments[1]:void 0)}});var Er=H("Array").indexOf,Zr=Array.prototype,Mr=function(t){var g=t.indexOf;return t===Zr||t instanceof Array&&g===Zr.indexOf?Er:g};P({target:"Object",stat:!0,sham:!n},{create:Co});var Tr=R.Object,Gr=function(t,g){return Tr.create(t,g)},Br=Gr;function Rr(t){return Yr=t,function(){var t={};Wr=0,void(zr=Yr.charAt(0)),ts(),"strict"===jr&&(t.strict=!0,ts());"graph"!==jr&&"digraph"!==jr||(t.type=jr,ts());Pr===Lr.IDENTIFIER&&(t.id=jr,ts());if("{"!=jr)throw is("Angle bracket { expected");if(ts(),gs(t),"}"!=jr)throw is("Angle bracket } expected");if(ts(),""!==jr)throw is("End of file expected");return ts(),delete t.node,delete t.edge,delete t.graph,t}()}var Sr={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},Fr=Br(Sr);Fr.color="color.color",Fr.style="dashes";var Lr={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3},Qr={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Yr="",Wr=0,zr="",jr="",Pr=Lr.NULL;function Vr(){Wr++,zr=Yr.charAt(Wr)}function Xr(){return Yr.charAt(Wr+1)}var Ur=/[a-zA-Z_0-9.:#]/;function _r(t){return Ur.test(t)}function Hr(t,g){if(t||(t={}),g)for(var e in g)g.hasOwnProperty(e)&&(t[e]=g[e]);return t}function Jr(t,g,e){for(var A=g.split("."),I=t;A.length;){var C=A.shift();A.length?(I[C]||(I[C]={}),I=I[C]):I[C]=e}}function Kr(t,g){for(var e,A,I=null,C=[t],i=t;i.parent;)C.push(i.parent),i=i.parent;if(i.nodes)for(e=0,A=i.nodes.length;e<A;e++)if(g.id===i.nodes[e].id){I=i.nodes[e];break}for(I||(I={id:g.id},t.node&&(I.attr=Hr(I.attr,t.node))),e=C.length-1;e>=0;e--){var n,o=C[e];o.nodes||(o.nodes=[]),-1===Mr(n=o.nodes).call(n,I)&&o.nodes.push(I)}g.attr&&(I.attr=Hr(I.attr,g.attr))}function qr(t,g){if(t.edges||(t.edges=[]),t.edges.push(g),t.edge){var e=Hr({},t.edge);g.attr=Hr(e,g.attr)}}function $r(t,g,e,A,I){var C={from:g,to:e,type:A};return t.edge&&(C.attr=Hr({},t.edge)),C.attr=Hr(C.attr||{},I),null!=I&&I.hasOwnProperty("arrows")&&null!=I.arrows&&(C.arrows={to:{enabled:!0,type:I.arrows.type}},I.arrows=null),C}function ts(){for(Pr=Lr.NULL,jr="";" "===zr||"\t"===zr||"\n"===zr||"\r"===zr;)Vr();do{var t=!1;if("#"===zr){for(var g=Wr-1;" "===Yr.charAt(g)||"\t"===Yr.charAt(g);)g--;if("\n"===Yr.charAt(g)||""===Yr.charAt(g)){for(;""!=zr&&"\n"!=zr;)Vr();t=!0}}if("/"===zr&&"/"===Xr()){for(;""!=zr&&"\n"!=zr;)Vr();t=!0}if("/"===zr&&"*"===Xr()){for(;""!=zr;){if("*"===zr&&"/"===Xr()){Vr(),Vr();break}Vr()}t=!0}for(;" "===zr||"\t"===zr||"\n"===zr||"\r"===zr;)Vr()}while(t);if(""!==zr){var e=zr+Xr();if(Qr[e])return Pr=Lr.DELIMITER,jr=e,Vr(),void Vr();if(Qr[zr])return Pr=Lr.DELIMITER,jr=zr,void Vr();if(_r(zr)||"-"===zr){for(jr+=zr,Vr();_r(zr);)jr+=zr,Vr();return"false"===jr?jr=!1:"true"===jr?jr=!0:isNaN(Number(jr))||(jr=Number(jr)),void(Pr=Lr.IDENTIFIER)}if('"'===zr){for(Vr();""!=zr&&('"'!=zr||'"'===zr&&'"'===Xr());)'"'===zr?(jr+=zr,Vr()):"\\"===zr&&"n"===Xr()?(jr+="\n",Vr()):jr+=zr,Vr();if('"'!=zr)throw is('End of string " expected');return Vr(),void(Pr=Lr.IDENTIFIER)}for(Pr=Lr.UNKNOWN;""!=zr;)jr+=zr,Vr();throw new SyntaxError('Syntax error in part "'+ns(jr,30)+'"')}Pr=Lr.DELIMITER}function gs(t){for(;""!==jr&&"}"!=jr;)es(t),";"===jr&&ts()}function es(t){var g=As(t);if(g)Is(t,g);else if(!function(t){if("node"===jr)return ts(),t.node=Cs(),"node";if("edge"===jr)return ts(),t.edge=Cs(),"edge";if("graph"===jr)return ts(),t.graph=Cs(),"graph";return null}(t)){if(Pr!=Lr.IDENTIFIER)throw is("Identifier expected");var e=jr;if(ts(),"="===jr){if(ts(),Pr!=Lr.IDENTIFIER)throw is("Identifier expected");t[e]=jr,ts()}else!function(t,g){var e={id:g},A=Cs();A&&(e.attr=A);Kr(t,e),Is(t,g)}(t,e)}}function As(t){var g=null;if("subgraph"===jr&&((g={}).type="subgraph",ts(),Pr===Lr.IDENTIFIER&&(g.id=jr,ts())),"{"===jr){if(ts(),g||(g={}),g.parent=t,g.node=t.node,g.edge=t.edge,g.graph=t.graph,gs(g),"}"!=jr)throw is("Angle bracket } expected");ts(),delete g.node,delete g.edge,delete g.graph,delete g.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(g)}return g}function Is(t,g){for(;"->"===jr||"--"===jr;){var e,A=jr;ts();var I=As(t);if(I)e=I;else{if(Pr!=Lr.IDENTIFIER)throw is("Identifier or subgraph expected");Kr(t,{id:e=jr}),ts()}qr(t,$r(t,g,e,A,Cs())),g=e}}function Cs(){for(var t,g,e=null,A={dashed:!0,solid:!1,dotted:[1,5]},I={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},C=new Array,i=new Array;"["===jr;){for(ts(),e={};""!==jr&&"]"!=jr;){if(Pr!=Lr.IDENTIFIER)throw is("Attribute name expected");var n=jr;if(ts(),"="!=jr)throw is("Equal sign = expected");if(ts(),Pr!=Lr.IDENTIFIER)throw is("Attribute value expected");var o=jr;"style"===n&&(o=A[o]),"arrowhead"===n&&(n="arrows",o={to:{enabled:!0,type:I[o]}}),"arrowtail"===n&&(n="arrows",o={from:{enabled:!0,type:I[o]}}),C.push({attr:e,name:n,value:o}),i.push(n),ts(),","==jr&&ts()}if("]"!=jr)throw is("Bracket ] expected");ts()}if(wr(i).call(i,"dir")){var r={arrows:{}};for(t=0;t<C.length;t++)if("arrows"===C[t].name)if(null!=C[t].value.to)r.arrows.to=t;else{if(null==C[t].value.from)throw is("Invalid value of arrows");r.arrows.from=t}else"dir"===C[t].name&&(r.dir=t);var s,a,l=C[r.dir].value;if(!wr(i).call(i,"arrows"))if("both"===l)C.push({attr:C[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=C.length-1,C.push({attr:C[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=C.length-1;else if("forward"===l)C.push({attr:C[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=C.length-1;else if("back"===l)C.push({attr:C[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=C.length-1;else{if("none"!==l)throw is('Invalid dir type "'+l+'"');C.push({attr:C[r.dir].attr,name:"arrows",value:""}),r.arrows.to=C.length-1}if("both"===l)r.arrows.to&&r.arrows.from?(a=C[r.arrows.to].value.to.type,s=C[r.arrows.from].value.from.type,C[r.arrows.to]={attr:C[r.arrows.to].attr,name:C[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}},dr(C).call(C,r.arrows.from,1)):r.arrows.to?(a=C[r.arrows.to].value.to.type,s="arrow",C[r.arrows.to]={attr:C[r.arrows.to].attr,name:C[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="arrow",s=C[r.arrows.from].value.from.type,C[r.arrows.from]={attr:C[r.arrows.from].attr,name:C[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}});else if("back"===l)r.arrows.to&&r.arrows.from?(a="",s=C[r.arrows.from].value.from.type,C[r.arrows.from]={attr:C[r.arrows.from].attr,name:C[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.to?(a="",s="arrow",r.arrows.from=r.arrows.to,C[r.arrows.from]={attr:C[r.arrows.from].attr,name:C[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="",s=C[r.arrows.from].value.from.type,C[r.arrows.to]={attr:C[r.arrows.from].attr,name:C[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}),C[r.arrows.from]={attr:C[r.arrows.from].attr,name:C[r.arrows.from].name,value:{from:{enabled:!0,type:C[r.arrows.from].value.from.type}}};else if("none"===l){var d;C[d=r.arrows.to?r.arrows.to:r.arrows.from]={attr:C[d].attr,name:C[d].name,value:""}}else{if("forward"!==l)throw is('Invalid dir type "'+l+'"');r.arrows.to&&r.arrows.from?(a=C[r.arrows.to].value.to.type,s="",C[r.arrows.to]={attr:C[r.arrows.to].attr,name:C[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.to?(a=C[r.arrows.to].value.to.type,s="",C[r.arrows.to]={attr:C[r.arrows.to].attr,name:C[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="arrow",s="",r.arrows.to=r.arrows.from,C[r.arrows.to]={attr:C[r.arrows.to].attr,name:C[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}),C[r.arrows.to]={attr:C[r.arrows.to].attr,name:C[r.arrows.to].name,value:{to:{enabled:!0,type:C[r.arrows.to].value.to.type}}}}dr(C).call(C,r.dir,1)}if(wr(i).call(i,"penwidth")){var c=[];for(g=C.length,t=0;t<g;t++)"width"!==C[t].name&&("penwidth"===C[t].name&&(C[t].name="width"),c.push(C[t]));C=c}for(g=C.length,t=0;t<g;t++)Jr(C[t].attr,C[t].name,C[t].value);return e}function is(t){return new SyntaxError(t+', got "'+ns(jr,30)+'" (char '+Wr+")")}function ns(t,g){return t.length<=g?t:t.substr(0,27)+"..."}function os(t,g,e){for(var A=g.split("."),I=A.pop(),C=t,i=0;i<A.length;i++){var n=A[i];n in C||(C[n]={}),C=C[n]}return C[I]=e,t}function rs(t,g){var e={};for(var A in t)if(t.hasOwnProperty(A)){var I=g[A];qo(I)?_o(I).call(I,(function(g){os(e,g,t[A])})):os(e,"string"==typeof I?I:A,t[A])}return e}var ss=Rr,as=function(t){var g,e=Rr(t),A={nodes:[],edges:[],options:{}};if(e.nodes&&_o(g=e.nodes).call(g,(function(t){var g={id:t.id,label:String(t.label||t.id)};Hr(g,rs(t.attr,Sr)),g.image&&(g.shape="image"),A.nodes.push(g)})),e.edges){var I,C=function(t){var g={from:t.from,to:t.to};return Hr(g,rs(t.attr,Fr)),null==g.arrows&&"->"===t.type&&(g.arrows="to"),g};_o(I=e.edges).call(I,(function(t){var g,e,I,i,n,o,r;(g=t.from instanceof Object?t.from.nodes:{id:t.from},e=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges)&&_o(I=t.from.edges).call(I,(function(t){var g=C(t);A.edges.push(g)}));(n=e,o=function(g,e){var I=$r(A,g.id,e.id,t.type,t.attr),i=C(I);A.edges.push(i)},qo(i=g)?_o(i).call(i,(function(t){qo(n)?_o(n).call(n,(function(g){o(t,g)})):o(t,n)})):qo(n)?_o(n).call(n,(function(t){o(i,t)})):o(i,n),t.to instanceof Object&&t.to.edges)&&_o(r=t.to.edges).call(r,(function(t){var g=C(t);A.edges.push(g)}))}))}return e.attr&&(A.options=e.attr),A},ls={parseDOT:ss,DOTToGraph:as},ds=Object.freeze({__proto__:null,default:ls,__moduleExports:ls,parseDOT:ss,DOTToGraph:as}),cs=So.map,hs=ir("map"),us=Yo("map");P({target:"Array",proto:!0,forced:!hs||!us},{map:function(t){return cs(this,t,arguments.length>1?arguments[1]:void 0)}});var fs=H("Array").map,ps=Array.prototype,vs=function(t){var g=t.map;return t===ps||t instanceof Array&&g===ps.map?fs:g};function ys(t,g){var e,A={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=g&&(null!=g.fixed&&(A.nodes.fixed=g.fixed),null!=g.parseColor&&(A.nodes.parseColor=g.parseColor),null!=g.inheritColor&&(A.edges.inheritColor=g.inheritColor));var I=t.edges,C=vs(I).call(I,(function(t){var g={from:t.source,id:t.id,to:t.target};return null!=t.attributes&&(g.attributes=t.attributes),null!=t.label&&(g.label=t.label),null!=t.attributes&&null!=t.attributes.title&&(g.title=t.attributes.title),"Directed"===t.type&&(g.arrows="to"),t.color&&!1===A.edges.inheritColor&&(g.color=t.color),g}));return{nodes:vs(e=t.nodes).call(e,(function(t){var g={id:t.id,fixed:A.nodes.fixed&&null!=t.x&&null!=t.y};return null!=t.attributes&&(g.attributes=t.attributes),null!=t.label&&(g.label=t.label),null!=t.size&&(g.size=t.size),null!=t.attributes&&null!=t.attributes.title&&(g.title=t.attributes.title),null!=t.title&&(g.title=t.title),null!=t.x&&(g.x=t.x),null!=t.y&&(g.y=t.y),null!=t.color&&(!0===A.nodes.parseColor?g.color=t.color:g.color={background:t.color,border:t.color,highlight:{background:t.color,border:t.color},hover:{background:t.color,border:t.color}}),g})),edges:C}}var ms=Object.freeze({__proto__:null,parseGephi:ys});function bs(t,g){void 0===g&&(g={});var e=g.insertAt;if(t&&"undefined"!=typeof document){var A=document.head||document.getElementsByTagName("head")[0],I=document.createElement("style");I.type="text/css","top"===e&&A.firstChild?A.insertBefore(I,A.firstChild):A.appendChild(I),I.styleSheet?I.styleSheet.cssText=t:I.appendChild(document.createTextNode(t))}}var ws=".vis-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}\n/*# sourceMapping */";bs(ws);var xs=Object.freeze({__proto__:null,default:ws}),ks=e((function(t,g){t.exports=function(t){var g,e=t&&t.preventDefault||!1,A=t&&t.container||window,I={},C={keydown:{},keyup:{}},i={};for(g=97;g<=122;g++)i[String.fromCharCode(g)]={code:g-97+65,shift:!1};for(g=65;g<=90;g++)i[String.fromCharCode(g)]={code:g,shift:!0};for(g=0;g<=9;g++)i[""+g]={code:48+g,shift:!1};for(g=1;g<=12;g++)i["F"+g]={code:111+g,shift:!1};for(g=0;g<=9;g++)i["num"+g]={code:96+g,shift:!1};i["num*"]={code:106,shift:!1},i["num+"]={code:107,shift:!1},i["num-"]={code:109,shift:!1},i["num/"]={code:111,shift:!1},i["num."]={code:110,shift:!1},i.left={code:37,shift:!1},i.up={code:38,shift:!1},i.right={code:39,shift:!1},i.down={code:40,shift:!1},i.space={code:32,shift:!1},i.enter={code:13,shift:!1},i.shift={code:16,shift:void 0},i.esc={code:27,shift:!1},i.backspace={code:8,shift:!1},i.tab={code:9,shift:!1},i.ctrl={code:17,shift:!1},i.alt={code:18,shift:!1},i.delete={code:46,shift:!1},i.pageup={code:33,shift:!1},i.pagedown={code:34,shift:!1},i["="]={code:187,shift:!1},i["-"]={code:189,shift:!1},i["]"]={code:221,shift:!1},i["["]={code:219,shift:!1};var n=function(t){r(t,"keydown")},o=function(t){r(t,"keyup")},r=function(t,g){if(void 0!==C[g][t.keyCode]){for(var A=C[g][t.keyCode],I=0;I<A.length;I++)void 0===A[I].shift?A[I].fn(t):1==A[I].shift&&1==t.shiftKey?A[I].fn(t):0==A[I].shift&&0==t.shiftKey&&A[I].fn(t);1==e&&t.preventDefault()}};return I.bind=function(t,g,e){if(void 0===e&&(e="keydown"),void 0===i[t])throw new Error("unsupported key: "+t);void 0===C[e][i[t].code]&&(C[e][i[t].code]=[]),C[e][i[t].code].push({fn:g,shift:i[t].shift})},I.bindAll=function(t,g){for(var e in void 0===g&&(g="keydown"),i)i.hasOwnProperty(e)&&I.bind(e,t,g)},I.getKey=function(t){for(var g in i)if(i.hasOwnProperty(g)){if(1==t.shiftKey&&1==i[g].shift&&t.keyCode==i[g].code)return g;if(0==t.shiftKey&&0==i[g].shift&&t.keyCode==i[g].code)return g;if(t.keyCode==i[g].code&&"shift"==g)return g}return"unknown key, currently not supported"},I.unbind=function(t,g,e){if(void 0===e&&(e="keydown"),void 0===i[t])throw new Error("unsupported key: "+t);if(void 0!==g){var A=[],I=C[e][i[t].code];if(void 0!==I)for(var n=0;n<I.length;n++)I[n].fn==g&&I[n].shift==i[t].shift||A.push(C[e][i[t].code][n]);C[e][i[t].code]=A}else C[e][i[t].code]=[]},I.reset=function(){C={keydown:{},keyup:{}}},I.destroy=function(){C={keydown:{},keyup:{}},A.removeEventListener("keydown",n,!0),A.removeEventListener("keyup",o,!0)},A.addEventListener("keydown",n,!0),A.addEventListener("keyup",o,!0),I}}));function Ds(){return(Ds=Object.assign||function(t){for(var g=1;g<arguments.length;g++){var e=arguments[g];for(var A in e)Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A])}return t}).apply(this,arguments)}function Os(t,g){t.prototype=Object.create(g.prototype),t.prototype.constructor=t,t.__proto__=g}function Ns(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Es,Zs="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(t),e=1;e<arguments.length;e++){var A=arguments[e];if(null!=A)for(var I in A)A.hasOwnProperty(I)&&(g[I]=A[I])}return g}:Object.assign,Ms=["","webkit","Moz","MS","ms","o"],Ts="undefined"==typeof document?{style:{}}:document.createElement("div"),Gs="function",Bs=Math.round,Rs=Math.abs,Ss=Date.now;function Fs(t,g){for(var e,A,I=g[0].toUpperCase()+g.slice(1),C=0;C<Ms.length;){if((A=(e=Ms[C])?e+I:g)in t)return A;C++}}Es="undefined"==typeof window?{}:window;var Ls=Fs(Ts.style,"touchAction"),Qs=void 0!==Ls;var Ys="auto",Ws="manipulation",zs="none",js="pan-x",Ps="pan-y",Vs=function(){if(!Qs)return!1;var t={},g=Es.CSS&&Es.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(e){return t[e]=!g||Es.CSS.supports("touch-action",e)})),t}(),Xs="ontouchstart"in Es,Us=void 0!==Fs(Es,"PointerEvent"),_s=Xs&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Hs="touch",Js="mouse",Ks=25,qs=1,$s=2,ta=4,ga=8,ea=1,Aa=2,Ia=4,Ca=8,ia=16,na=Aa|Ia,oa=Ca|ia,ra=na|oa,sa=["x","y"],aa=["clientX","clientY"];function la(t,g,e){var A;if(t)if(t.forEach)t.forEach(g,e);else if(void 0!==t.length)for(A=0;A<t.length;)g.call(e,t[A],A,t),A++;else for(A in t)t.hasOwnProperty(A)&&g.call(e,t[A],A,t)}function da(t,g){return typeof t===Gs?t.apply(g&&g[0]||void 0,g):t}function ca(t,g){return t.indexOf(g)>-1}var ha=function(){function t(t,g){this.manager=t,this.set(g)}var g=t.prototype;return g.set=function(t){"compute"===t&&(t=this.compute()),Qs&&this.manager.element.style&&Vs[t]&&(this.manager.element.style[Ls]=t),this.actions=t.toLowerCase().trim()},g.update=function(){this.set(this.manager.options.touchAction)},g.compute=function(){var t=[];return la(this.manager.recognizers,(function(g){da(g.options.enable,[g])&&(t=t.concat(g.getTouchAction()))})),function(t){if(ca(t,zs))return zs;var g=ca(t,js),e=ca(t,Ps);return g&&e?zs:g||e?g?js:Ps:ca(t,Ws)?Ws:Ys}(t.join(" "))},g.preventDefaults=function(t){var g=t.srcEvent,e=t.offsetDirection;if(this.manager.session.prevented)g.preventDefault();else{var A=this.actions,I=ca(A,zs)&&!Vs[zs],C=ca(A,Ps)&&!Vs[Ps],i=ca(A,js)&&!Vs[js];if(I){var n=1===t.pointers.length,o=t.distance<2,r=t.deltaTime<250;if(n&&o&&r)return}if(!i||!C)return I||C&&e&na||i&&e&oa?this.preventSrc(g):void 0}},g.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function ua(t,g){for(;t;){if(t===g)return!0;t=t.parentNode}return!1}function fa(t){var g=t.length;if(1===g)return{x:Bs(t[0].clientX),y:Bs(t[0].clientY)};for(var e=0,A=0,I=0;I<g;)e+=t[I].clientX,A+=t[I].clientY,I++;return{x:Bs(e/g),y:Bs(A/g)}}function pa(t){for(var g=[],e=0;e<t.pointers.length;)g[e]={clientX:Bs(t.pointers[e].clientX),clientY:Bs(t.pointers[e].clientY)},e++;return{timeStamp:Ss(),pointers:g,center:fa(g),deltaX:t.deltaX,deltaY:t.deltaY}}function va(t,g,e){e||(e=sa);var A=g[e[0]]-t[e[0]],I=g[e[1]]-t[e[1]];return Math.sqrt(A*A+I*I)}function ya(t,g,e){e||(e=sa);var A=g[e[0]]-t[e[0]],I=g[e[1]]-t[e[1]];return 180*Math.atan2(I,A)/Math.PI}function ma(t,g){return t===g?ea:Rs(t)>=Rs(g)?t<0?Aa:Ia:g<0?Ca:ia}function ba(t,g,e){return{x:g/t||0,y:e/t||0}}function wa(t,g){var e=t.session,A=g.pointers,I=A.length;e.firstInput||(e.firstInput=pa(g)),I>1&&!e.firstMultiple?e.firstMultiple=pa(g):1===I&&(e.firstMultiple=!1);var C=e.firstInput,i=e.firstMultiple,n=i?i.center:C.center,o=g.center=fa(A);g.timeStamp=Ss(),g.deltaTime=g.timeStamp-C.timeStamp,g.angle=ya(n,o),g.distance=va(n,o),function(t,g){var e=g.center,A=t.offsetDelta||{},I=t.prevDelta||{},C=t.prevInput||{};g.eventType!==qs&&C.eventType!==ta||(I=t.prevDelta={x:C.deltaX||0,y:C.deltaY||0},A=t.offsetDelta={x:e.x,y:e.y}),g.deltaX=I.x+(e.x-A.x),g.deltaY=I.y+(e.y-A.y)}(e,g),g.offsetDirection=ma(g.deltaX,g.deltaY);var r,s,a=ba(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=a.x,g.overallVelocityY=a.y,g.overallVelocity=Rs(a.x)>Rs(a.y)?a.x:a.y,g.scale=i?(r=i.pointers,va((s=A)[0],s[1],aa)/va(r[0],r[1],aa)):1,g.rotation=i?function(t,g){return ya(g[1],g[0],aa)+ya(t[1],t[0],aa)}(i.pointers,A):0,g.maxPointers=e.prevInput?g.pointers.length>e.prevInput.maxPointers?g.pointers.length:e.prevInput.maxPointers:g.pointers.length,function(t,g){var e,A,I,C,i=t.lastInterval||g,n=g.timeStamp-i.timeStamp;if(g.eventType!==ga&&(n>Ks||void 0===i.velocity)){var o=g.deltaX-i.deltaX,r=g.deltaY-i.deltaY,s=ba(n,o,r);A=s.x,I=s.y,e=Rs(s.x)>Rs(s.y)?s.x:s.y,C=ma(o,r),t.lastInterval=g}else e=i.velocity,A=i.velocityX,I=i.velocityY,C=i.direction;g.velocity=e,g.velocityX=A,g.velocityY=I,g.direction=C}(e,g);var l,d=t.element,c=g.srcEvent;ua(l=c.composedPath?c.composedPath()[0]:c.path?c.path[0]:c.target,d)&&(d=l),g.target=d}function xa(t,g,e){var A=e.pointers.length,I=e.changedPointers.length,C=g&qs&&A-I==0,i=g&(ta|ga)&&A-I==0;e.isFirst=!!C,e.isFinal=!!i,C&&(t.session={}),e.eventType=g,wa(t,e),t.emit("hammer.input",e),t.recognize(e),t.session.prevInput=e}function ka(t){return t.trim().split(/\s+/g)}function Da(t,g,e){la(ka(g),(function(g){t.addEventListener(g,e,!1)}))}function Oa(t,g,e){la(ka(g),(function(g){t.removeEventListener(g,e,!1)}))}function Na(t){var g=t.ownerDocument||t;return g.defaultView||g.parentWindow||window}var Ea=function(){function t(t,g){var e=this;this.manager=t,this.callback=g,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(g){da(t.options.enable,[t])&&e.handler(g)},this.init()}var g=t.prototype;return g.handler=function(){},g.init=function(){this.evEl&&Da(this.element,this.evEl,this.domHandler),this.evTarget&&Da(this.target,this.evTarget,this.domHandler),this.evWin&&Da(Na(this.element),this.evWin,this.domHandler)},g.destroy=function(){this.evEl&&Oa(this.element,this.evEl,this.domHandler),this.evTarget&&Oa(this.target,this.evTarget,this.domHandler),this.evWin&&Oa(Na(this.element),this.evWin,this.domHandler)},t}();function Za(t,g,e){if(t.indexOf&&!e)return t.indexOf(g);for(var A=0;A<t.length;){if(e&&t[A][e]==g||!e&&t[A]===g)return A;A++}return-1}var Ma={pointerdown:qs,pointermove:$s,pointerup:ta,pointercancel:ga,pointerout:ga},Ta={2:Hs,3:"pen",4:Js,5:"kinect"},Ga="pointerdown",Ba="pointermove pointerup pointercancel";Es.MSPointerEvent&&!Es.PointerEvent&&(Ga="MSPointerDown",Ba="MSPointerMove MSPointerUp MSPointerCancel");var Ra=function(t){function g(){var e,A=g.prototype;return A.evEl=Ga,A.evWin=Ba,(e=t.apply(this,arguments)||this).store=e.manager.session.pointerEvents=[],e}return Os(g,t),g.prototype.handler=function(t){var g=this.store,e=!1,A=t.type.toLowerCase().replace("ms",""),I=Ma[A],C=Ta[t.pointerType]||t.pointerType,i=C===Hs,n=Za(g,t.pointerId,"pointerId");I&qs&&(0===t.button||i)?n<0&&(g.push(t),n=g.length-1):I&(ta|ga)&&(e=!0),n<0||(g[n]=t,this.callback(this.manager,I,{pointers:g,changedPointers:[t],pointerType:C,srcEvent:t}),e&&g.splice(n,1))},g}(Ea);function Sa(t){return Array.prototype.slice.call(t,0)}function Fa(t,g,e){for(var A=[],I=[],C=0;C<t.length;){var i=g?t[C][g]:t[C];Za(I,i)<0&&A.push(t[C]),I[C]=i,C++}return e&&(A=g?A.sort((function(t,e){return t[g]>e[g]})):A.sort()),A}var La={touchstart:qs,touchmove:$s,touchend:ta,touchcancel:ga},Qa="touchstart touchmove touchend touchcancel",Ya=function(t){function g(){var e;return g.prototype.evTarget=Qa,(e=t.apply(this,arguments)||this).targetIds={},e}return Os(g,t),g.prototype.handler=function(t){var g=La[t.type],e=Wa.call(this,t,g);e&&this.callback(this.manager,g,{pointers:e[0],changedPointers:e[1],pointerType:Hs,srcEvent:t})},g}(Ea);function Wa(t,g){var e,A,I=Sa(t.touches),C=this.targetIds;if(g&(qs|$s)&&1===I.length)return C[I[0].identifier]=!0,[I,I];var i=Sa(t.changedTouches),n=[],o=this.target;if(A=I.filter((function(t){return ua(t.target,o)})),g===qs)for(e=0;e<A.length;)C[A[e].identifier]=!0,e++;for(e=0;e<i.length;)C[i[e].identifier]&&n.push(i[e]),g&(ta|ga)&&delete C[i[e].identifier],e++;return n.length?[Fa(A.concat(n),"identifier",!0),n]:void 0}var za={mousedown:qs,mousemove:$s,mouseup:ta},ja="mousedown",Pa="mousemove mouseup",Va=function(t){function g(){var e,A=g.prototype;return A.evEl=ja,A.evWin=Pa,(e=t.apply(this,arguments)||this).pressed=!1,e}return Os(g,t),g.prototype.handler=function(t){var g=za[t.type];g&qs&&0===t.button&&(this.pressed=!0),g&$s&&1!==t.which&&(g=ta),this.pressed&&(g&ta&&(this.pressed=!1),this.callback(this.manager,g,{pointers:[t],changedPointers:[t],pointerType:Js,srcEvent:t}))},g}(Ea),Xa=2500,Ua=25;function _a(t){var g=t.changedPointers[0];if(g.identifier===this.primaryTouch){var e={x:g.clientX,y:g.clientY},A=this.lastTouches;this.lastTouches.push(e);setTimeout((function(){var t=A.indexOf(e);t>-1&&A.splice(t,1)}),Xa)}}function Ha(t,g){t&qs?(this.primaryTouch=g.changedPointers[0].identifier,_a.call(this,g)):t&(ta|ga)&&_a.call(this,g)}function Ja(t){for(var g=t.srcEvent.clientX,e=t.srcEvent.clientY,A=0;A<this.lastTouches.length;A++){var I=this.lastTouches[A],C=Math.abs(g-I.x),i=Math.abs(e-I.y);if(C<=Ua&&i<=Ua)return!0}return!1}var Ka=function(){return function(t){function g(g,e){var A;return(A=t.call(this,g,e)||this).handler=function(t,g,e){var I=e.pointerType===Hs,C=e.pointerType===Js;if(!(C&&e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents)){if(I)Ha.call(Ns(Ns(A)),g,e);else if(C&&Ja.call(Ns(Ns(A)),e))return;A.callback(t,g,e)}},A.touch=new Ya(A.manager,A.handler),A.mouse=new Va(A.manager,A.handler),A.primaryTouch=null,A.lastTouches=[],A}return Os(g,t),g.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},g}(Ea)}();function qa(t,g,e){return!!Array.isArray(t)&&(la(t,e[g],e),!0)}var $a=1,tl=2,gl=4,el=8,Al=el,Il=16,Cl=1;function il(t,g){var e=g.manager;return e?e.get(t):t}function nl(t){return t&Il?"cancel":t&el?"end":t&gl?"move":t&tl?"start":""}var ol=function(){function t(t){void 0===t&&(t={}),this.options=Ds({enable:!0},t),this.id=Cl++,this.manager=null,this.state=$a,this.simultaneous={},this.requireFail=[]}var g=t.prototype;return g.set=function(t){return Zs(this.options,t),this.manager&&this.manager.touchAction.update(),this},g.recognizeWith=function(t){if(qa(t,"recognizeWith",this))return this;var g=this.simultaneous;return g[(t=il(t,this)).id]||(g[t.id]=t,t.recognizeWith(this)),this},g.dropRecognizeWith=function(t){return qa(t,"dropRecognizeWith",this)?this:(t=il(t,this),delete this.simultaneous[t.id],this)},g.requireFailure=function(t){if(qa(t,"requireFailure",this))return this;var g=this.requireFail;return-1===Za(g,t=il(t,this))&&(g.push(t),t.requireFailure(this)),this},g.dropRequireFailure=function(t){if(qa(t,"dropRequireFailure",this))return this;t=il(t,this);var g=Za(this.requireFail,t);return g>-1&&this.requireFail.splice(g,1),this},g.hasRequireFailures=function(){return this.requireFail.length>0},g.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},g.emit=function(t){var g=this,e=this.state;function A(e){g.manager.emit(e,t)}e<el&&A(g.options.event+nl(e)),A(g.options.event),t.additionalEvent&&A(t.additionalEvent),e>=el&&A(g.options.event+nl(e))},g.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},g.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|$a)))return!1;t++}return!0},g.recognize=function(t){var g=Zs({},t);if(!da(this.options.enable,[this,g]))return this.reset(),void(this.state=32);this.state&(Al|Il|32)&&(this.state=$a),this.state=this.process(g),this.state&(tl|gl|el|Il)&&this.tryEmit(g)},g.process=function(t){},g.getTouchAction=function(){},g.reset=function(){},t}(),rl=function(t){function g(g){var e;return void 0===g&&(g={}),(e=t.call(this,Ds({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},g))||this).pTime=!1,e.pCenter=!1,e._timer=null,e._input=null,e.count=0,e}Os(g,t);var e=g.prototype;return e.getTouchAction=function(){return[Ws]},e.process=function(t){var g=this,e=this.options,A=t.pointers.length===e.pointers,I=t.distance<e.threshold,C=t.deltaTime<e.time;if(this.reset(),t.eventType&qs&&0===this.count)return this.failTimeout();if(I&&C&&A){if(t.eventType!==ta)return this.failTimeout();var i=!this.pTime||t.timeStamp-this.pTime<e.interval,n=!this.pCenter||va(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,n&&i?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){g.state=Al,g.tryEmit()}),e.interval),tl):Al}return 32},e.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=32}),this.options.interval),32},e.reset=function(){clearTimeout(this._timer)},e.emit=function(){this.state===Al&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},g}(ol),sl=function(t){function g(g){return void 0===g&&(g={}),t.call(this,Ds({pointers:1},g))||this}Os(g,t);var e=g.prototype;return e.attrTest=function(t){var g=this.options.pointers;return 0===g||t.pointers.length===g},e.process=function(t){var g=this.state,e=t.eventType,A=g&(tl|gl),I=this.attrTest(t);return A&&(e&ga||!I)?g|Il:A||I?e&ta?g|el:g&tl?g|gl:tl:32},g}(ol);function al(t){return t===ia?"down":t===Ca?"up":t===Aa?"left":t===Ia?"right":""}var ll=function(t){function g(g){var e;return void 0===g&&(g={}),(e=t.call(this,Ds({event:"pan",threshold:10,pointers:1,direction:ra},g))||this).pX=null,e.pY=null,e}Os(g,t);var e=g.prototype;return e.getTouchAction=function(){var t=this.options.direction,g=[];return t&na&&g.push(Ps),t&oa&&g.push(js),g},e.directionTest=function(t){var g=this.options,e=!0,A=t.distance,I=t.direction,C=t.deltaX,i=t.deltaY;return I&g.direction||(g.direction&na?(I=0===C?ea:C<0?Aa:Ia,e=C!==this.pX,A=Math.abs(t.deltaX)):(I=0===i?ea:i<0?Ca:ia,e=i!==this.pY,A=Math.abs(t.deltaY))),t.direction=I,e&&A>g.threshold&&I&g.direction},e.attrTest=function(t){return sl.prototype.attrTest.call(this,t)&&(this.state&tl||!(this.state&tl)&&this.directionTest(t))},e.emit=function(g){this.pX=g.deltaX,this.pY=g.deltaY;var e=al(g.direction);e&&(g.additionalEvent=this.options.event+e),t.prototype.emit.call(this,g)},g}(sl),dl=function(t){function g(g){return void 0===g&&(g={}),t.call(this,Ds({event:"swipe",threshold:10,velocity:.3,direction:na|oa,pointers:1},g))||this}Os(g,t);var e=g.prototype;return e.getTouchAction=function(){return ll.prototype.getTouchAction.call(this)},e.attrTest=function(g){var e,A=this.options.direction;return A&(na|oa)?e=g.overallVelocity:A&na?e=g.overallVelocityX:A&oa&&(e=g.overallVelocityY),t.prototype.attrTest.call(this,g)&&A&g.offsetDirection&&g.distance>this.options.threshold&&g.maxPointers===this.options.pointers&&Rs(e)>this.options.velocity&&g.eventType&ta},e.emit=function(t){var g=al(t.offsetDirection);g&&this.manager.emit(this.options.event+g,t),this.manager.emit(this.options.event,t)},g}(sl),cl=function(t){function g(g){return void 0===g&&(g={}),t.call(this,Ds({event:"pinch",threshold:0,pointers:2},g))||this}Os(g,t);var e=g.prototype;return e.getTouchAction=function(){return[zs]},e.attrTest=function(g){return t.prototype.attrTest.call(this,g)&&(Math.abs(g.scale-1)>this.options.threshold||this.state&tl)},e.emit=function(g){if(1!==g.scale){var e=g.scale<1?"in":"out";g.additionalEvent=this.options.event+e}t.prototype.emit.call(this,g)},g}(sl),hl=function(t){function g(g){return void 0===g&&(g={}),t.call(this,Ds({event:"rotate",threshold:0,pointers:2},g))||this}Os(g,t);var e=g.prototype;return e.getTouchAction=function(){return[zs]},e.attrTest=function(g){return t.prototype.attrTest.call(this,g)&&(Math.abs(g.rotation)>this.options.threshold||this.state&tl)},g}(sl),ul=function(t){function g(g){var e;return void 0===g&&(g={}),(e=t.call(this,Ds({event:"press",pointers:1,time:251,threshold:9},g))||this)._timer=null,e._input=null,e}Os(g,t);var e=g.prototype;return e.getTouchAction=function(){return[Ys]},e.process=function(t){var g=this,e=this.options,A=t.pointers.length===e.pointers,I=t.distance<e.threshold,C=t.deltaTime>e.time;if(this._input=t,!I||!A||t.eventType&(ta|ga)&&!C)this.reset();else if(t.eventType&qs)this.reset(),this._timer=setTimeout((function(){g.state=Al,g.tryEmit()}),e.time);else if(t.eventType&ta)return Al;return 32},e.reset=function(){clearTimeout(this._timer)},e.emit=function(t){this.state===Al&&(t&&t.eventType&ta?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Ss(),this.manager.emit(this.options.event,this._input)))},g}(ol),fl={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},pl=[[hl,{enable:!1}],[cl,{enable:!1},["rotate"]],[dl,{direction:na}],[ll,{direction:na},["swipe"]],[rl],[rl,{event:"doubletap",taps:2},["tap"]],[ul]];function vl(t,g){var e,A=t.element;A.style&&(la(t.options.cssProps,(function(I,C){e=Fs(A.style,C),g?(t.oldCssProps[e]=A.style[e],A.style[e]=I):A.style[e]=t.oldCssProps[e]||""})),g||(t.oldCssProps={}))}var yl=function(){function t(t,g){var e,A=this;this.options=Zs({},fl,g||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((e=this).options.inputClass||(Us?Ra:_s?Ya:Xs?Ka:Va))(e,xa),this.touchAction=new ha(this,this.options.touchAction),vl(this,!0),la(this.options.recognizers,(function(t){var g=A.add(new t[0](t[1]));t[2]&&g.recognizeWith(t[2]),t[3]&&g.requireFailure(t[3])}),this)}var g=t.prototype;return g.set=function(t){return Zs(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},g.stop=function(t){this.session.stopped=t?2:1},g.recognize=function(t){var g=this.session;if(!g.stopped){var e;this.touchAction.preventDefaults(t);var A=this.recognizers,I=g.curRecognizer;(!I||I&&I.state&Al)&&(g.curRecognizer=null,I=null);for(var C=0;C<A.length;)e=A[C],2===g.stopped||I&&e!==I&&!e.canRecognizeWith(I)?e.reset():e.recognize(t),!I&&e.state&(tl|gl|el)&&(g.curRecognizer=e,I=e),C++}},g.get=function(t){if(t instanceof ol)return t;for(var g=this.recognizers,e=0;e<g.length;e++)if(g[e].options.event===t)return g[e];return null},g.add=function(t){if(qa(t,"add",this))return this;var g=this.get(t.options.event);return g&&this.remove(g),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},g.remove=function(t){if(qa(t,"remove",this))return this;var g=this.get(t);if(t){var e=this.recognizers,A=Za(e,g);-1!==A&&(e.splice(A,1),this.touchAction.update())}return this},g.on=function(t,g){if(void 0===t||void 0===g)return this;var e=this.handlers;return la(ka(t),(function(t){e[t]=e[t]||[],e[t].push(g)})),this},g.off=function(t,g){if(void 0===t)return this;var e=this.handlers;return la(ka(t),(function(t){g?e[t]&&e[t].splice(Za(e[t],g),1):delete e[t]})),this},g.emit=function(t,g){this.options.domEvents&&function(t,g){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.gesture=g,g.target.dispatchEvent(e)}(t,g);var e=this.handlers[t]&&this.handlers[t].slice();if(e&&e.length){g.type=t,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var A=0;A<e.length;)e[A](g),A++}},g.destroy=function(){this.element&&vl(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),ml={touchstart:qs,touchmove:$s,touchend:ta,touchcancel:ga},bl="touchstart",wl="touchstart touchmove touchend touchcancel",xl=function(t){function g(){var e,A=g.prototype;return A.evTarget=bl,A.evWin=wl,(e=t.apply(this,arguments)||this).started=!1,e}return Os(g,t),g.prototype.handler=function(t){var g=ml[t.type];if(g===qs&&(this.started=!0),this.started){var e=kl.call(this,t,g);g&(ta|ga)&&e[0].length-e[1].length==0&&(this.started=!1),this.callback(this.manager,g,{pointers:e[0],changedPointers:e[1],pointerType:Hs,srcEvent:t})}},g}(Ea);function kl(t,g){var e=Sa(t.touches),A=Sa(t.changedTouches);return g&(ta|ga)&&(e=Fa(e.concat(A),"identifier",!0)),[e,A]}function Dl(t,g,e){var A="DEPRECATED METHOD: "+g+"\n"+e+" AT \n";return function(){var g=new Error("get-stack-trace"),e=g&&g.stack?g.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",I=window.console&&(window.console.warn||window.console.log);return I&&I.call(window.console,A,e),t.apply(this,arguments)}}var Ol=Dl((function(t,g,e){for(var A=Object.keys(g),I=0;I<A.length;)(!e||e&&void 0===t[A[I]])&&(t[A[I]]=g[A[I]]),I++;return t}),"extend","Use `assign`."),Nl=Dl((function(t,g){return Ol(t,g,!0)}),"merge","Use `assign`.");function El(t,g,e){var A,I=g.prototype;(A=t.prototype=Object.create(I)).constructor=t,A._super=I,e&&Zs(A,e)}function Zl(t,g){return function(){return t.apply(g,arguments)}}var Ml=function(){var t=function(t,g){return void 0===g&&(g={}),new yl(t,Ds({recognizers:pl.concat()},g))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=ra,t.DIRECTION_DOWN=ia,t.DIRECTION_LEFT=Aa,t.DIRECTION_RIGHT=Ia,t.DIRECTION_UP=Ca,t.DIRECTION_HORIZONTAL=na,t.DIRECTION_VERTICAL=oa,t.DIRECTION_NONE=ea,t.DIRECTION_DOWN=ia,t.INPUT_START=qs,t.INPUT_MOVE=$s,t.INPUT_END=ta,t.INPUT_CANCEL=ga,t.STATE_POSSIBLE=$a,t.STATE_BEGAN=tl,t.STATE_CHANGED=gl,t.STATE_ENDED=el,t.STATE_RECOGNIZED=Al,t.STATE_CANCELLED=Il,t.STATE_FAILED=32,t.Manager=yl,t.Input=Ea,t.TouchAction=ha,t.TouchInput=Ya,t.MouseInput=Va,t.PointerEventInput=Ra,t.TouchMouseInput=Ka,t.SingleTouchInput=xl,t.Recognizer=ol,t.AttrRecognizer=sl,t.Tap=rl,t.Pan=ll,t.Swipe=dl,t.Pinch=cl,t.Rotate=hl,t.Press=ul,t.on=Da,t.off=Oa,t.each=la,t.merge=Nl,t.extend=Ol,t.bindFn=Zl,t.assign=Zs,t.inherit=El,t.bindFn=Zl,t.prefixed=Fs,t.toArray=Sa,t.inArray=Za,t.uniqueArray=Fa,t.splitStr=ka,t.boolOrFn=da,t.hasParent=ua,t.addEventListeners=Da,t.removeEventListeners=Oa,t.defaults=Zs({},fl,{preset:pl}),t}(),Tl=Ml.defaults,Gl=A(Object.freeze({__proto__:null,default:Ml,INPUT_START:qs,INPUT_MOVE:$s,INPUT_END:ta,INPUT_CANCEL:ga,STATE_POSSIBLE:$a,STATE_BEGAN:tl,STATE_CHANGED:gl,STATE_ENDED:el,STATE_RECOGNIZED:Al,STATE_CANCELLED:Il,STATE_FAILED:32,DIRECTION_NONE:ea,DIRECTION_LEFT:Aa,DIRECTION_RIGHT:Ia,DIRECTION_UP:Ca,DIRECTION_DOWN:ia,DIRECTION_HORIZONTAL:na,DIRECTION_VERTICAL:oa,DIRECTION_ALL:ra,Manager:yl,Input:Ea,TouchAction:ha,TouchInput:Ya,MouseInput:Va,PointerEventInput:Ra,TouchMouseInput:Ka,SingleTouchInput:xl,Recognizer:ol,AttrRecognizer:sl,Tap:rl,Pan:ll,Swipe:dl,Pinch:cl,Rotate:hl,Press:ul,on:Da,off:Oa,each:la,merge:Nl,extend:Ol,assign:Zs,inherit:El,bindFn:Zl,prefixed:Fs,toArray:Sa,inArray:Za,uniqueArray:Fa,splitStr:ka,boolOrFn:da,hasParent:ua,addEventListeners:Da,removeEventListeners:Oa,defaults:Tl})),Bl=e((function(t){if("undefined"!=typeof window){var g=window.Hammer||Gl;t.exports=g}else t.exports=function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(g){return{set:t}}};var t}}));function Rl(t){var g,e,A=this;this.active=!1,this.dom={container:t},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=Bl(this.dom.overlay),this.hammer.on("tap",q(g=this._onTapOverlay).call(g,this));var I=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];_o(I).call(I,(function(t){A.hammer.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this.onClick=function(g){(function(t,g){for(;t;){if(t===g)return!0;t=t.parentNode}return!1})(g.target,t)||A.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=ks(),this.escListener=q(e=this.deactivate).call(e,this)}A(xs),Ct(Rl.prototype),Rl.current=null,Rl.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},Rl.prototype.activate=function(){var t;Rl.current&&Rl.current.deactivate(),Rl.current=this,this.active=!0,this.dom.overlay.style.display="none",_i.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),q(t=this.keycharm).call(t,"esc",this.escListener)},Rl.prototype.deactivate=function(){this.active=!1,this.dom.overlay.style.display="block",_i.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},Rl.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Sl=Rl,Fl=e((function(t,g){g.en={edit:"Edit",del:"Delete selected",back:"Back",addNode:"Add Node",addEdge:"Add Edge",editNode:"Edit Node",editEdge:"Edit Edge",addDescription:"Click in an empty space to place a new node.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",createEdgeError:"Cannot link edges to a cluster.",deleteClusterError:"Clusters cannot be deleted.",editClusterError:"Clusters cannot be edited."},g.en_EN=g.en,g.en_US=g.en,g.de={edit:"Editieren",del:"Lösche Auswahl",back:"Zurück",addNode:"Knoten hinzufügen",addEdge:"Kante hinzufügen",editNode:"Knoten editieren",editEdge:"Kante editieren",addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",deleteClusterError:"Cluster können nicht gelöscht werden.",editClusterError:"Cluster können nicht editiert werden."},g.de_DE=g.de,g.es={edit:"Editar",del:"Eliminar selección",back:"Atrás",addNode:"Añadir nodo",addEdge:"Añadir arista",editNode:"Editar nodo",editEdge:"Editar arista",addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",createEdgeError:"No se puede conectar una arista a un grupo.",deleteClusterError:"No es posible eliminar grupos.",editClusterError:"No es posible editar grupos."},g.es_ES=g.es,g.it={edit:"Modifica",del:"Cancella la selezione",back:"Indietro",addNode:"Aggiungi un nodo",addEdge:"Aggiungi un vertice",editNode:"Modifica il nodo",editEdge:"Modifica il vertice",addDescription:"Clicca per aggiungere un nuovo nodo",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",createEdgeError:"Non si possono collegare vertici ad un cluster",deleteClusterError:"I cluster non possono essere cancellati",editClusterError:"I clusters non possono essere modificati."},g.it_IT=g.it,g.nl={edit:"Wijzigen",del:"Selectie verwijderen",back:"Terug",addNode:"Node toevoegen",addEdge:"Link toevoegen",editNode:"Node wijzigen",editEdge:"Link wijzigen",addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",createEdgeError:"Kan geen link maken naar een cluster.",deleteClusterError:"Clusters kunnen niet worden verwijderd.",editClusterError:"Clusters kunnen niet worden aangepast."},g.nl_NL=g.nl,g.nl_BE=g.nl,g["pt-br"]={edit:"Editar",del:"Remover selecionado",back:"Voltar",addNode:"Adicionar nó",addEdge:"Adicionar aresta",editNode:"Editar nó",editEdge:"Editar aresta",addDescription:"Clique em um espaço em branco para adicionar um novo nó",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",createEdgeError:"Não foi possível linkar arestas a um cluster.",deleteClusterError:"Clusters não puderam ser removidos.",editClusterError:"Clusters não puderam ser editados."},g["pt-BR"]=g["pt-br"],g.pt_BR=g["pt-br"],g.pt_br=g["pt-br"],g.ru={edit:"Редактировать",del:"Удалить выбранное",back:"Назад",addNode:"Добавить узел",addEdge:"Добавить ребро",editNode:"Редактировать узел",editEdge:"Редактировать ребро",addDescription:"Кликните в свободное место, чтобы добавить новый узел.",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",createEdgeError:"Невозможно соединить ребра в кластер.",deleteClusterError:"Кластеры не могут быть удалены",editClusterError:"Кластеры недоступны для редактирования."},g.ru_RU=g.ru,g.cn={edit:"编辑",del:"删除选定",back:"返回",addNode:"添加节点",addEdge:"添加连接线",editNode:"编辑节点",editEdge:"编辑连接线",addDescription:"单击空白处放置新节点。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",createEdgeError:"无法将连接线连接到群集。",deleteClusterError:"无法删除群集。",editClusterError:"无法编辑群集。"},g.zh_CN=g.cn,g.uk={edit:"Редагувати",del:"Видалити обране",back:"Назад",addNode:"Додати вузол",addEdge:"Додати край",editNode:"Редагувати вузол",editEdge:"Редагувати край",addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",createEdgeError:"Не можливо об'єднати краї в групу.",deleteClusterError:"Групи не можуть бути видалені.",editClusterError:"Групи недоступні для редагування."},g.uk_UA=g.uk,g.fr={edit:"Editer",del:"Effacer la selection",back:"Retour",addNode:"Ajouter un noeud",addEdge:"Ajouter un lien",editNode:"Editer le noeud",editEdge:"Editer le lien",addDescription:"Cliquez dans un endroit vide pour placer un noeud.",edgeDescription:"Cliquez sur un noeud et glissez le lien vers un autre noeud pour les connecter.",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un noeud.",createEdgeError:"Impossible de créer un lien vers un cluster.",deleteClusterError:"Les clusters ne peuvent pas être éffacés.",editClusterError:"Les clusters ne peuvent pas être édites."},g.fr_FR=g.fr,g.cs={edit:"Upravit",del:"Smazat výběr",back:"Zpět",addNode:"Přidat vrchol",addEdge:"Přidat hranu",editNode:"Upravit vrchol",editEdge:"Upravit hranu",addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",createEdgeError:"Nelze připojit hranu ke shluku.",deleteClusterError:"Nelze mazat shluky.",editClusterError:"Nelze upravovat shluky."},g.cs_CZ=g.cs}));var Ll=function(t,g){if(!(t instanceof g))throw new TypeError("Cannot call a class as a function")};P({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperty:Y.f});var Ql=e((function(t){var g=R.Object,e=t.exports=function(t,e,A){return g.defineProperty(t,e,A)};g.defineProperty.sham&&(e.sham=!0)})),Yl=Ql;function Wl(t,g){for(var e=0;e<g.length;e++){var A=g[e];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Yl(t,A.key,A)}}var zl=function(t,g,e){return g&&Wl(t.prototype,g),e&&Wl(t,e),t},jl=function(){function t(){Ll(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return zl(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,g=this.image.height;this.width=t,this.height=g;var e=Math.floor(g/2),A=Math.floor(g/4),I=Math.floor(g/8),C=Math.floor(g/16),i=Math.floor(t/2),n=Math.floor(t/4),o=Math.floor(t/8),r=Math.floor(t/16);this.canvas.width=3*n,this.canvas.height=e,this.coordinates=[[0,0,i,e],[i,0,n,A],[i,A,o,I],[5*o,A,r,C]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),g=this.coordinates[0];t.drawImage(this.image,g[0],g[1],g[2],g[3]);for(var e=1;e<this.NUM_ITERATIONS;e++){var A=this.coordinates[e-1],I=this.coordinates[e];t.drawImage(this.canvas,A[0],A[1],A[2],A[3],I[0],I[1],I[2],I[3])}}},{key:"drawImageAtPosition",value:function(t,g,e,A,I,C){if(this.initialized())if(g>2){g*=.5;for(var i=0;g>2&&i<this.NUM_ITERATIONS;)g*=.5,i+=1;i>=this.NUM_ITERATIONS&&(i=this.NUM_ITERATIONS-1);var n=this.coordinates[i];t.drawImage(this.canvas,n[0],n[1],n[2],n[3],e,A,I,C)}else t.drawImage(this.image,e,A,I,C)}}]),t}(),Pl=function(){function t(g){Ll(this,t),this.images={},this.imageBroken={},this.callback=g}return zl(t,[{key:"_tryloadBrokenUrl",value:function(t,g,e){void 0!==t&&void 0!==e&&(void 0!==g?(e.image.onerror=function(){console.error("Could not load brokenImage:",g)},e.image.src=g):console.warn("No broken url image defined"))}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,g){var e=this,A=this.images[t];if(A)return A;var I=new jl;return this.images[t]=I,I.image.onload=function(){e._fixImageCoordinates(I.image),I.init(),e._redrawWithImage(I)},I.image.onerror=function(){console.error("Could not load image:",t),e._tryloadBrokenUrl(t,g,I)},I.image.src=t,I}},{key:"_fixImageCoordinates",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),Vl=function(){function t(){Ll(this,t),this.clear(),this.defaultIndex=0,this.groupsArray=[],this.groupIndex=0,this.defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},gi(this.options,this.defaultOptions)}return zl(t,[{key:"setOptions",value:function(t){var g=["useDefaultGroups"];if(void 0!==t)for(var e in t)if(t.hasOwnProperty(e)&&-1===Mr(g).call(g,e)){var A=t[e];this.add(e,A)}}},{key:"clear",value:function(){this.groups={},this.groupsArray=[]}},{key:"get",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=this.groups[t];if(void 0===e&&g)if(!1===this.options.useDefaultGroups&&this.groupsArray.length>0){var A=this.groupIndex%this.groupsArray.length;this.groupIndex++,(e={}).color=this.groups[this.groupsArray[A]],this.groups[t]=e}else{var I=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++,(e={}).color=this.defaultGroups[I],this.groups[t]=e}return e}},{key:"add",value:function(t,g){return this.groups[t]=g,this.groupsArray.push(t),g}}]),t}(),Xl=[].slice,Ul=/MSIE .\./.test(tr),_l=function(t){return function(g,e){var A=arguments.length>2,I=A?Xl.call(arguments,2):void 0;return t(A?function(){("function"==typeof g?g:Function(g)).apply(this,I)}:g,e)}};P({global:!0,bind:!0,forced:Ul},{setTimeout:_l(C.setTimeout),setInterval:_l(C.setInterval)});var Hl=R.setTimeout,Jl=function(t){return function(g,e){var A,I,C=String(u(g)),i=Qn(e),n=C.length;return i<0||i>=n?t?"":void 0:(A=C.charCodeAt(i))<55296||A>56319||i+1===n||(I=C.charCodeAt(i+1))<56320||I>57343?t?C.charAt(i):A:t?C.slice(i,i+2):I-56320+(A-55296<<10)+65536}},Kl={codeAt:Jl(!1),charAt:Jl(!0)}.charAt,ql=bn.set,$l=bn.getterFor("String Iterator");xo(String,"String",(function(t){ql(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,g=$l(this),e=g.string,A=g.index;return A>=e.length?{value:void 0,done:!0}:(t=Kl(e,A),g.index+=t.length,{value:t,done:!1})}));var td=Gn("iterator"),gd=function(t){if(null!=t)return t[td]||t["@@iterator"]||Ji[so(t)]},ed=function(t){var g=gd(t);if("function"!=typeof g)throw TypeError(String(t)+" is not iterable");return L(g.call(t))},Ad=So.some,Id=Fo("some"),Cd=Yo("some");P({target:"Array",proto:!0,forced:!Id||!Cd},{some:function(t){return Ad(this,t,arguments.length>1?arguments[1]:void 0)}});var id=H("Array").some,nd=Array.prototype,od=function(t){var g=t.some;return t===nd||t instanceof Array&&g===nd.some?id:g},rd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function sd(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function ad(t,g){return t(g={exports:{}},g.exports),g.exports}var ld=function(t){return t&&t.Math==Math&&t},dd=ld("object"==typeof globalThis&&globalThis)||ld("object"==typeof window&&window)||ld("object"==typeof self&&self)||ld("object"==typeof rd&&rd)||Function("return this")(),cd=function(t){try{return!!t()}catch(t){return!0}},hd=!cd((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ud={}.propertyIsEnumerable,fd=Object.getOwnPropertyDescriptor,pd={f:fd&&!ud.call({1:2},1)?function(t){var g=fd(this,t);return!!g&&g.enumerable}:ud},vd=function(t,g){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:g}},yd={}.toString,md=function(t){return yd.call(t).slice(8,-1)},bd="".split,wd=cd((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==md(t)?bd.call(t,""):Object(t)}:Object,xd=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},kd=function(t){return wd(xd(t))},Dd=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Od=function(t,g){if(!Dd(t))return t;var e,A;if(g&&"function"==typeof(e=t.toString)&&!Dd(A=e.call(t)))return A;if("function"==typeof(e=t.valueOf)&&!Dd(A=e.call(t)))return A;if(!g&&"function"==typeof(e=t.toString)&&!Dd(A=e.call(t)))return A;throw TypeError("Can't convert object to primitive value")},Nd={}.hasOwnProperty,Ed=function(t,g){return Nd.call(t,g)},Zd=dd.document,Md=Dd(Zd)&&Dd(Zd.createElement),Td=function(t){return Md?Zd.createElement(t):{}},Gd=!hd&&!cd((function(){return 7!=Object.defineProperty(Td("div"),"a",{get:function(){return 7}}).a})),Bd=Object.getOwnPropertyDescriptor,Rd={f:hd?Bd:function(t,g){if(t=kd(t),g=Od(g,!0),Gd)try{return Bd(t,g)}catch(t){}if(Ed(t,g))return vd(!pd.f.call(t,g),t[g])}},Sd=/#|\.prototype\./,Fd=function(t,g){var e=Qd[Ld(t)];return e==Wd||e!=Yd&&("function"==typeof g?cd(g):!!g)},Ld=Fd.normalize=function(t){return String(t).replace(Sd,".").toLowerCase()},Qd=Fd.data={},Yd=Fd.NATIVE="N",Wd=Fd.POLYFILL="P",zd=Fd,jd={},Pd=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Vd=function(t,g,e){if(Pd(t),void 0===g)return t;switch(e){case 0:return function(){return t.call(g)};case 1:return function(e){return t.call(g,e)};case 2:return function(e,A){return t.call(g,e,A)};case 3:return function(e,A,I){return t.call(g,e,A,I)}}return function(){return t.apply(g,arguments)}},Xd=function(t){if(!Dd(t))throw TypeError(String(t)+" is not an object");return t},Ud=Object.defineProperty,_d={f:hd?Ud:function(t,g,e){if(Xd(t),g=Od(g,!0),Xd(e),Gd)try{return Ud(t,g,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[g]=e.value),t}},Hd=hd?function(t,g,e){return _d.f(t,g,vd(1,e))}:function(t,g,e){return t[g]=e,t},Jd=Rd.f,Kd=function(t){var g=function(g,e,A){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(g);case 2:return new t(g,e)}return new t(g,e,A)}return t.apply(this,arguments)};return g.prototype=t.prototype,g},qd=function(t,g){var e,A,I,C,i,n,o,r,s=t.target,a=t.global,l=t.stat,d=t.proto,c=a?dd:l?dd[s]:(dd[s]||{}).prototype,h=a?jd:jd[s]||(jd[s]={}),u=h.prototype;for(I in g)e=!zd(a?I:s+(l?".":"#")+I,t.forced)&&c&&Ed(c,I),i=h[I],e&&(n=t.noTargetGet?(r=Jd(c,I))&&r.value:c[I]),C=e&&n?n:g[I],e&&typeof i==typeof C||(o=t.bind&&e?Vd(C,dd):t.wrap&&e?Kd(C):d&&"function"==typeof C?Vd(Function.call,C):C,(t.sham||C&&C.sham||i&&i.sham)&&Hd(o,"sham",!0),h[I]=o,d&&(Ed(jd,A=s+"Prototype")||Hd(jd,A,{}),jd[A][I]=C,t.real&&u&&!u[I]&&Hd(u,I,C)))};qd({target:"Object",stat:!0,forced:!hd,sham:!hd},{defineProperty:_d.f});var $d=ad((function(t){var g=jd.Object,e=t.exports=function(t,e,A){return g.defineProperty(t,e,A)};g.defineProperty.sham&&(e.sham=!0)})),tc=$d,gc=Math.ceil,ec=Math.floor,Ac=function(t){return isNaN(t=+t)?0:(t>0?ec:gc)(t)},Ic=Math.min,Cc=function(t){return t>0?Ic(Ac(t),9007199254740991):0},ic=Math.max,nc=Math.min,oc=function(t,g){var e=Ac(t);return e<0?ic(e+g,0):nc(e,g)},rc=function(t){return function(g,e,A){var I,C=kd(g),i=Cc(C.length),n=oc(A,i);if(t&&e!=e){for(;i>n;)if((I=C[n++])!=I)return!0}else for(;i>n;n++)if((t||n in C)&&C[n]===e)return t||n||0;return!t&&-1}},sc={includes:rc(!0),indexOf:rc(!1)},ac={},lc=sc.indexOf,dc=function(t,g){var e,A=kd(t),I=0,C=[];for(e in A)!Ed(ac,e)&&Ed(A,e)&&C.push(e);for(;g.length>I;)Ed(A,e=g[I++])&&(~lc(C,e)||C.push(e));return C},cc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hc=Object.keys||function(t){return dc(t,cc)},uc=hd?Object.defineProperties:function(t,g){Xd(t);for(var e,A=hc(g),I=A.length,C=0;I>C;)_d.f(t,e=A[C++],g[e]);return t};qd({target:"Object",stat:!0,forced:!hd,sham:!hd},{defineProperties:uc});var fc=ad((function(t){var g=jd.Object,e=t.exports=function(t,e){return g.defineProperties(t,e)};g.defineProperties.sham&&(e.sham=!0)})),pc=function(t){return"function"==typeof t?t:void 0},vc=function(t,g){return arguments.length<2?pc(jd[t])||pc(dd[t]):jd[t]&&jd[t][g]||dd[t]&&dd[t][g]},yc=cc.concat("length","prototype"),mc={f:Object.getOwnPropertyNames||function(t){return dc(t,yc)}},bc={f:Object.getOwnPropertySymbols},wc=vc("Reflect","ownKeys")||function(t){var g=mc.f(Xd(t)),e=bc.f;return e?g.concat(e(t)):g},xc=function(t,g,e){var A=Od(g);A in t?_d.f(t,A,vd(0,e)):t[A]=e};qd({target:"Object",stat:!0,sham:!hd},{getOwnPropertyDescriptors:function(t){for(var g,e,A=kd(t),I=Rd.f,C=wc(A),i={},n=0;C.length>n;)void 0!==(e=I(A,g=C[n++]))&&xc(i,g,e);return i}});var kc=jd.Object.getOwnPropertyDescriptors,Dc={},Oc=dd["__core-js_shared__"]||function(t,g){try{Hd(dd,t,g)}catch(e){dd[t]=g}return g}("__core-js_shared__",{}),Nc=Function.toString;"function"!=typeof Oc.inspectSource&&(Oc.inspectSource=function(t){return Nc.call(t)});var Ec,Zc,Mc,Tc=Oc.inspectSource,Gc=dd.WeakMap,Bc="function"==typeof Gc&&/native code/.test(Tc(Gc)),Rc=ad((function(t){(t.exports=function(t,g){return Oc[t]||(Oc[t]=void 0!==g?g:{})})("versions",[]).push({version:"3.6.3",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Sc=0,Fc=Math.random(),Lc=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Sc+Fc).toString(36)},Qc=Rc("keys"),Yc=function(t){return Qc[t]||(Qc[t]=Lc(t))},Wc=dd.WeakMap;if(Bc){var zc=new Wc,jc=zc.get,Pc=zc.has,Vc=zc.set;Ec=function(t,g){return Vc.call(zc,t,g),g},Zc=function(t){return jc.call(zc,t)||{}},Mc=function(t){return Pc.call(zc,t)}}else{var Xc=Yc("state");ac[Xc]=!0,Ec=function(t,g){return Hd(t,Xc,g),g},Zc=function(t){return Ed(t,Xc)?t[Xc]:{}},Mc=function(t){return Ed(t,Xc)}}var Uc,_c,Hc,Jc={set:Ec,get:Zc,has:Mc,enforce:function(t){return Mc(t)?Zc(t):Ec(t,{})},getterFor:function(t){return function(g){var e;if(!Dd(g)||(e=Zc(g)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},Kc=function(t){return Object(xd(t))},qc=!cd((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),$c=Yc("IE_PROTO"),th=Object.prototype,gh=qc?Object.getPrototypeOf:function(t){return t=Kc(t),Ed(t,$c)?t[$c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?th:null},eh=!!Object.getOwnPropertySymbols&&!cd((function(){return!String(Symbol())})),Ah=eh&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ih=Rc("wks"),Ch=dd.Symbol,ih=Ah?Ch:Ch&&Ch.withoutSetter||Lc,nh=function(t){return Ed(Ih,t)||(eh&&Ed(Ch,t)?Ih[t]=Ch[t]:Ih[t]=ih("Symbol."+t)),Ih[t]},oh=(nh("iterator"),!1);[].keys&&("next"in(Hc=[].keys())?(_c=gh(gh(Hc)))!==Object.prototype&&(Uc=_c):oh=!0),null==Uc&&(Uc={});var rh,sh={IteratorPrototype:Uc,BUGGY_SAFARI_ITERATORS:oh},ah=vc("document","documentElement"),lh=Yc("IE_PROTO"),dh=function(){},ch=function(t){return"<script>"+t+"<\/script>"},hh=function(){try{rh=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,g;hh=rh?function(t){t.write(ch("")),t.close();var g=t.parentWindow.Object;return t=null,g}(rh):((g=Td("iframe")).style.display="none",ah.appendChild(g),g.src=String("javascript:"),(t=g.contentWindow.document).open(),t.write(ch("document.F=Object")),t.close(),t.F);for(var e=cc.length;e--;)delete hh.prototype[cc[e]];return hh()};ac[lh]=!0;var uh=Object.create||function(t,g){var e;return null!==t?(dh.prototype=Xd(t),e=new dh,dh.prototype=null,e[lh]=t):e=hh(),void 0===g?e:uc(e,g)},fh={};fh[nh("toStringTag")]="z";var ph="[object z]"===String(fh),vh=nh("toStringTag"),yh="Arguments"==md(function(){return arguments}()),mh=ph?md:function(t){var g,e,A;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,g){try{return t[g]}catch(t){}}(g=Object(t),vh))?e:yh?md(g):"Object"==(A=md(g))&&"function"==typeof g.callee?"Arguments":A},bh=ph?{}.toString:function(){return"[object "+mh(this)+"]"},wh=_d.f,xh=nh("toStringTag"),kh=function(t,g,e,A){if(t){var I=e?t:t.prototype;Ed(I,xh)||wh(I,xh,{configurable:!0,value:g}),A&&!ph&&Hd(I,"toString",bh)}},Dh=sh.IteratorPrototype,Oh=function(){return this},Nh=Object.setPrototypeOf||("__proto__"in{}?function(){var t,g=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),g=e instanceof Array}catch(t){}return function(e,A){return Xd(e),function(t){if(!Dd(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(A),g?t.call(e,A):e.__proto__=A,e}}():void 0),Eh=function(t,g,e,A){A&&A.enumerable?t[g]=e:Hd(t,g,e)},Zh=sh.IteratorPrototype,Mh=sh.BUGGY_SAFARI_ITERATORS,Th=nh("iterator"),Gh=function(){return this},Bh=function(t,g,e,A,I,C,i){!function(t,g,e){var A=g+" Iterator";t.prototype=uh(Dh,{next:vd(1,e)}),kh(t,A,!1,!0),Dc[A]=Oh}(e,g,A);var n,o,r,s=function(t){if(t===I&&h)return h;if(!Mh&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},a=g+" Iterator",l=!1,d=t.prototype,c=d[Th]||d["@@iterator"]||I&&d[I],h=!Mh&&c||s(I),u="Array"==g&&d.entries||c;if(u&&(n=gh(u.call(new t)),Zh!==Object.prototype&&n.next&&(kh(n,a,!0,!0),Dc[a]=Gh)),"values"==I&&c&&"values"!==c.name&&(l=!0,h=function(){return c.call(this)}),i&&d[Th]!==h&&Hd(d,Th,h),Dc[g]=h,I)if(o={values:s("values"),keys:C?h:s("keys"),entries:s("entries")},i)for(r in o)!Mh&&!l&&r in d||Eh(d,r,o[r]);else qd({target:g,proto:!0,forced:Mh||l},o);return o},Rh=Jc.set,Sh=Jc.getterFor("Array Iterator");Bh(Array,"Array",(function(t,g){Rh(this,{type:"Array Iterator",target:kd(t),index:0,kind:g})}),(function(){var t=Sh(this),g=t.target,e=t.kind,A=t.index++;return!g||A>=g.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:A,done:!1}:"values"==e?{value:g[A],done:!1}:{value:[A,g[A]],done:!1}}),"values");Dc.Arguments=Dc.Array;var Fh=nh("toStringTag");for(var Lh in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Qh=dd[Lh],Yh=Qh&&Qh.prototype;Yh&&mh(Yh)!==Fh&&Hd(Yh,Fh,Lh),Dc[Lh]=Dc.Array}var Wh=Array.isArray||function(t){return"Array"==md(t)},zh=nh("species"),jh=function(t,g){var e;return Wh(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Wh(e.prototype)?Dd(e)&&null===(e=e[zh])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===g?0:g)},Ph=[].push,Vh=function(t){var g=1==t,e=2==t,A=3==t,I=4==t,C=6==t,i=5==t||C;return function(n,o,r,s){for(var a,l,d=Kc(n),c=wd(d),h=Vd(o,r,3),u=Cc(c.length),f=0,p=s||jh,v=g?p(n,u):e?p(n,0):void 0;u>f;f++)if((i||f in c)&&(l=h(a=c[f],f,d),t))if(g)v[f]=l;else if(l)switch(t){case 3:return!0;case 5:return a;case 6:return f;case 2:Ph.call(v,a)}else if(I)return!1;return C?-1:A||I?I:v}},Xh={forEach:Vh(0),map:Vh(1),filter:Vh(2),some:Vh(3),every:Vh(4),find:Vh(5),findIndex:Vh(6)},Uh=function(t,g){var e=[][t];return!!e&&cd((function(){e.call(null,g||function(){throw 1},1)}))},_h=Object.defineProperty,Hh=function(t){throw t},Jh=function(t,g){g||(g={});var e=[][t],A=!!Ed(g,"ACCESSORS")&&g.ACCESSORS,I=Ed(g,0)?g[0]:Hh,C=Ed(g,1)?g[1]:void 0;return!!e&&!cd((function(){if(A&&!hd)return!0;var t={length:-1},g=function(g){A?_h(t,g,{enumerable:!0,get:Hh}):t[g]=1};g(1),g(2147483646),g(4294967294),e.call(t,I,C)}))},Kh=Xh.forEach,qh=Uh("forEach"),$h=Jh("forEach"),tu=qh&&$h?[].forEach:function(t){return Kh(this,t,arguments.length>1?arguments[1]:void 0)};qd({target:"Array",proto:!0,forced:[].forEach!=tu},{forEach:tu});var gu=function(t){return jd[t+"Prototype"]},eu=gu("Array").forEach,Au=Array.prototype,Iu={DOMTokenList:!0,NodeList:!0},Cu=function(t){var g=t.forEach;return t===Au||t instanceof Array&&g===Au.forEach||Iu.hasOwnProperty(mh(t))?eu:g},iu=Rd.f,nu=cd((function(){iu(1)}));qd({target:"Object",stat:!0,forced:!hd||nu,sham:!hd},{getOwnPropertyDescriptor:function(t,g){return iu(kd(t),g)}});var ou=ad((function(t){var g=jd.Object,e=t.exports=function(t,e){return g.getOwnPropertyDescriptor(t,e)};g.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),ru=mc.f,su={}.toString,au="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lu={f:function(t){return au&&"[object Window]"==su.call(t)?function(t){try{return ru(t)}catch(t){return au.slice()}}(t):ru(kd(t))}},du={f:nh},cu=_d.f,hu=function(t){var g=jd.Symbol||(jd.Symbol={});Ed(g,t)||cu(g,t,{value:du.f(t)})},uu=Xh.forEach,fu=Yc("hidden"),pu=nh("toPrimitive"),vu=Jc.set,yu=Jc.getterFor("Symbol"),mu=Object.prototype,bu=dd.Symbol,wu=vc("JSON","stringify"),xu=Rd.f,ku=_d.f,Du=lu.f,Ou=pd.f,Nu=Rc("symbols"),Eu=Rc("op-symbols"),Zu=Rc("string-to-symbol-registry"),Mu=Rc("symbol-to-string-registry"),Tu=Rc("wks"),Gu=dd.QObject,Bu=!Gu||!Gu.prototype||!Gu.prototype.findChild,Ru=hd&&cd((function(){return 7!=uh(ku({},"a",{get:function(){return ku(this,"a",{value:7}).a}})).a}))?function(t,g,e){var A=xu(mu,g);A&&delete mu[g],ku(t,g,e),A&&t!==mu&&ku(mu,g,A)}:ku,Su=function(t,g){var e=Nu[t]=uh(bu.prototype);return vu(e,{type:"Symbol",tag:t,description:g}),hd||(e.description=g),e},Fu=Ah?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof bu},Lu=function(t,g,e){t===mu&&Lu(Eu,g,e),Xd(t);var A=Od(g,!0);return Xd(e),Ed(Nu,A)?(e.enumerable?(Ed(t,fu)&&t[fu][A]&&(t[fu][A]=!1),e=uh(e,{enumerable:vd(0,!1)})):(Ed(t,fu)||ku(t,fu,vd(1,{})),t[fu][A]=!0),Ru(t,A,e)):ku(t,A,e)},Qu=function(t,g){Xd(t);var e=kd(g),A=hc(e).concat(ju(e));return uu(A,(function(g){hd&&!Yu.call(e,g)||Lu(t,g,e[g])})),t},Yu=function(t){var g=Od(t,!0),e=Ou.call(this,g);return!(this===mu&&Ed(Nu,g)&&!Ed(Eu,g))&&(!(e||!Ed(this,g)||!Ed(Nu,g)||Ed(this,fu)&&this[fu][g])||e)},Wu=function(t,g){var e=kd(t),A=Od(g,!0);if(e!==mu||!Ed(Nu,A)||Ed(Eu,A)){var I=xu(e,A);return!I||!Ed(Nu,A)||Ed(e,fu)&&e[fu][A]||(I.enumerable=!0),I}},zu=function(t){var g=Du(kd(t)),e=[];return uu(g,(function(t){Ed(Nu,t)||Ed(ac,t)||e.push(t)})),e},ju=function(t){var g=t===mu,e=Du(g?Eu:kd(t)),A=[];return uu(e,(function(t){!Ed(Nu,t)||g&&!Ed(mu,t)||A.push(Nu[t])})),A};if(eh||(Eh((bu=function(){if(this instanceof bu)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=Lc(t),e=function(t){this===mu&&e.call(Eu,t),Ed(this,fu)&&Ed(this[fu],g)&&(this[fu][g]=!1),Ru(this,g,vd(1,t))};return hd&&Bu&&Ru(mu,g,{configurable:!0,set:e}),Su(g,t)}).prototype,"toString",(function(){return yu(this).tag})),Eh(bu,"withoutSetter",(function(t){return Su(Lc(t),t)})),pd.f=Yu,_d.f=Lu,Rd.f=Wu,mc.f=lu.f=zu,bc.f=ju,du.f=function(t){return Su(nh(t),t)},hd&&ku(bu.prototype,"description",{configurable:!0,get:function(){return yu(this).description}})),qd({global:!0,wrap:!0,forced:!eh,sham:!eh},{Symbol:bu}),uu(hc(Tu),(function(t){hu(t)})),qd({target:"Symbol",stat:!0,forced:!eh},{for:function(t){var g=String(t);if(Ed(Zu,g))return Zu[g];var e=bu(g);return Zu[g]=e,Mu[e]=g,e},keyFor:function(t){if(!Fu(t))throw TypeError(t+" is not a symbol");if(Ed(Mu,t))return Mu[t]},useSetter:function(){Bu=!0},useSimple:function(){Bu=!1}}),qd({target:"Object",stat:!0,forced:!eh,sham:!hd},{create:function(t,g){return void 0===g?uh(t):Qu(uh(t),g)},defineProperty:Lu,defineProperties:Qu,getOwnPropertyDescriptor:Wu}),qd({target:"Object",stat:!0,forced:!eh},{getOwnPropertyNames:zu,getOwnPropertySymbols:ju}),qd({target:"Object",stat:!0,forced:cd((function(){bc.f(1)}))},{getOwnPropertySymbols:function(t){return bc.f(Kc(t))}}),wu){var Pu=!eh||cd((function(){var t=bu();return"[null]"!=wu([t])||"{}"!=wu({a:t})||"{}"!=wu(Object(t))}));qd({target:"JSON",stat:!0,forced:Pu},{stringify:function(t,g,e){for(var A,I=[t],C=1;arguments.length>C;)I.push(arguments[C++]);if(A=g,(Dd(g)||void 0!==t)&&!Fu(t))return Wh(g)||(g=function(t,g){if("function"==typeof A&&(g=A.call(this,t,g)),!Fu(g))return g}),I[1]=g,wu.apply(null,I)}})}bu.prototype[pu]||Hd(bu.prototype,pu,bu.prototype.valueOf),kh(bu,"Symbol"),ac[fu]=!0;var Vu=jd.Object.getOwnPropertySymbols,Xu=gu("Array").entries,Uu=Array.prototype,_u={DOMTokenList:!0,NodeList:!0},Hu=function(t){var g=t.entries;return t===Uu||t instanceof Array&&g===Uu.entries||_u.hasOwnProperty(mh(t))?Xu:g},Ju=[].slice,Ku={},qu=function(t,g,e){if(!(g in Ku)){for(var A=[],I=0;I<g;I++)A[I]="a["+I+"]";Ku[g]=Function("C,a","return new C("+A.join(",")+")")}return Ku[g](t,e)},$u=Function.bind||function(t){var g=Pd(this),e=Ju.call(arguments,1),A=function(){var I=e.concat(Ju.call(arguments));return this instanceof A?qu(g,I.length,I):g.apply(t,I)};return Dd(g.prototype)&&(A.prototype=g.prototype),A};qd({target:"Function",proto:!0},{bind:$u});var tf=gu("Function").bind,gf=Function.prototype,ef=function(t){var g=t.bind;return t===gf||t instanceof Function&&g===gf.bind?tf:g},Af=ad((function(t){var g=function(t){var g,e=Object.prototype,A=e.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},C=I.iterator||"@@iterator",i=I.asyncIterator||"@@asyncIterator",n=I.toStringTag||"@@toStringTag";function o(t,g,e,A){var I=g&&g.prototype instanceof h?g:h,C=Object.create(I.prototype),i=new O(A||[]);return C._invoke=function(t,g,e){var A=s;return function(I,C){if(A===l)throw new Error("Generator is already running");if(A===d){if("throw"===I)throw C;return E()}for(e.method=I,e.arg=C;;){var i=e.delegate;if(i){var n=x(i,e);if(n){if(n===c)continue;return n}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(A===s)throw A=d,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);A=l;var o=r(t,g,e);if("normal"===o.type){if(A=e.done?d:a,o.arg===c)continue;return{value:o.arg,done:e.done}}"throw"===o.type&&(A=d,e.method="throw",e.arg=o.arg)}}}(t,e,i),C}function r(t,g,e){try{return{type:"normal",arg:t.call(g,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=o;var s="suspendedStart",a="suspendedYield",l="executing",d="completed",c={};function h(){}function u(){}function f(){}var p={};p[C]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(N([])));y&&y!==e&&A.call(y,C)&&(p=y);var m=f.prototype=h.prototype=Object.create(p);function b(t){["next","throw","return"].forEach((function(g){t[g]=function(t){return this._invoke(g,t)}}))}function w(t){var g;this._invoke=function(e,I){function C(){return new Promise((function(g,C){!function g(e,I,C,i){var n=r(t[e],t,I);if("throw"!==n.type){var o=n.arg,s=o.value;return s&&"object"==typeof s&&A.call(s,"__await")?Promise.resolve(s.__await).then((function(t){g("next",t,C,i)}),(function(t){g("throw",t,C,i)})):Promise.resolve(s).then((function(t){o.value=t,C(o)}),(function(t){return g("throw",t,C,i)}))}i(n.arg)}(e,I,g,C)}))}return g=g?g.then(C,C):C()}}function x(t,e){var A=t.iterator[e.method];if(A===g){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=g,x(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var I=r(A,t.iterator,e.arg);if("throw"===I.type)return e.method="throw",e.arg=I.arg,e.delegate=null,c;var C=I.arg;return C?C.done?(e[t.resultName]=C.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=g),e.delegate=null,c):C:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function k(t){var g={tryLoc:t[0]};1 in t&&(g.catchLoc=t[1]),2 in t&&(g.finallyLoc=t[2],g.afterLoc=t[3]),this.tryEntries.push(g)}function D(t){var g=t.completion||{};g.type="normal",delete g.arg,t.completion=g}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var e=t[C];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var I=-1,i=function e(){for(;++I<t.length;)if(A.call(t,I))return e.value=t[I],e.done=!1,e;return e.value=g,e.done=!0,e};return i.next=i}}return{next:E}}function E(){return{value:g,done:!0}}return u.prototype=m.constructor=f,f.constructor=u,f[n]=u.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var g="function"==typeof t&&t.constructor;return!!g&&(g===u||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,n in t||(t[n]="GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(g,e,A,I){var C=new w(o(g,e,A,I));return t.isGeneratorFunction(e)?C:C.next().then((function(t){return t.done?t.value:C.next()}))},b(m),m[n]="Generator",m[C]=function(){return this},m.toString=function(){return"[object Generator]"},t.keys=function(t){var g=[];for(var e in t)g.push(e);return g.reverse(),function e(){for(;g.length;){var A=g.pop();if(A in t)return e.value=A,e.done=!1,e}return e.done=!0,e}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(D),!t)for(var e in this)"t"===e.charAt(0)&&A.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function I(A,I){return n.type="throw",n.arg=t,e.next=A,I&&(e.method="next",e.arg=g),!!I}for(var C=this.tryEntries.length-1;C>=0;--C){var i=this.tryEntries[C],n=i.completion;if("root"===i.tryLoc)return I("end");if(i.tryLoc<=this.prev){var o=A.call(i,"catchLoc"),r=A.call(i,"finallyLoc");if(o&&r){if(this.prev<i.catchLoc)return I(i.catchLoc,!0);if(this.prev<i.finallyLoc)return I(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return I(i.catchLoc,!0)}else{if(!r)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return I(i.finallyLoc)}}}},abrupt:function(t,g){for(var e=this.tryEntries.length-1;e>=0;--e){var I=this.tryEntries[e];if(I.tryLoc<=this.prev&&A.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var C=I;break}}C&&("break"===t||"continue"===t)&&C.tryLoc<=g&&g<=C.finallyLoc&&(C=null);var i=C?C.completion:{};return i.type=t,i.arg=g,C?(this.method="next",this.next=C.finallyLoc,c):this.complete(i)},complete:function(t,g){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&g&&(this.next=g),c},finish:function(t){for(var g=this.tryEntries.length-1;g>=0;--g){var e=this.tryEntries[g];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),D(e),c}},catch:function(t){for(var g=this.tryEntries.length-1;g>=0;--g){var e=this.tryEntries[g];if(e.tryLoc===t){var A=e.completion;if("throw"===A.type){var I=A.arg;D(e)}return I}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,A){return this.delegate={iterator:N(t),resultName:e,nextLoc:A},"next"===this.method&&(this.arg=g),c}},t}(t.exports);try{regeneratorRuntime=g}catch(t){Function("r","regeneratorRuntime = r")(g)}}));hu("iterator");var If=function(t){return function(g,e){var A,I,C=String(xd(g)),i=Ac(e),n=C.length;return i<0||i>=n?t?"":void 0:(A=C.charCodeAt(i))<55296||A>56319||i+1===n||(I=C.charCodeAt(i+1))<56320||I>57343?t?C.charAt(i):A:t?C.slice(i,i+2):I-56320+(A-55296<<10)+65536}},Cf={codeAt:If(!1),charAt:If(!0)}.charAt,nf=Jc.set,of=Jc.getterFor("String Iterator");Bh(String,"String",(function(t){nf(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,g=of(this),e=g.string,A=g.index;return A>=e.length?{value:void 0,done:!0}:(t=Cf(e,A),g.index+=t.length,{value:t,done:!1})}));var rf=du.f("iterator"),sf=rf,af=vc("JSON","stringify"),lf=/[\uD800-\uDFFF]/g,df=/^[\uD800-\uDBFF]$/,cf=/^[\uDC00-\uDFFF]$/,hf=function(t,g,e){var A=e.charAt(g-1),I=e.charAt(g+1);return df.test(t)&&!cf.test(I)||cf.test(t)&&!df.test(A)?"\\u"+t.charCodeAt(0).toString(16):t},uf=cd((function(){return'"\\udf06\\ud834"'!==af("\udf06\ud834")||'"\\udead"'!==af("\udead")}));af&&qd({target:"JSON",stat:!0,forced:uf},{stringify:function(t,g,e){var A=af.apply(null,arguments);return"string"==typeof A?A.replace(lf,hf):A}}),jd.JSON||(jd.JSON={stringify:JSON.stringify});var ff=function(t,g,e){return jd.JSON.stringify.apply(null,arguments)},pf=$d;var vf=function(t,g,e){return g in t?pf(t,g,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[g]=e,t},yf=gu("Array").values,mf=Array.prototype,bf={DOMTokenList:!0,NodeList:!0},wf=function(t){var g=t.values;return t===mf||t instanceof Array&&g===mf.values||bf.hasOwnProperty(mh(t))?yf:g},xf=nh("iterator"),kf=function(t){if(null!=t)return t[xf]||t["@@iterator"]||Dc[mh(t)]},Df=function(t){var g=kf(t);if("function"!=typeof g)throw TypeError(String(t)+" is not iterable");return Xd(g.call(t))},Of=[],Nf=Of.sort,Ef=cd((function(){Of.sort(void 0)})),Zf=cd((function(){Of.sort(null)})),Mf=Uh("sort");qd({target:"Array",proto:!0,forced:Ef||!Zf||!Mf},{sort:function(t){return void 0===t?Nf.call(Kc(this)):Nf.call(Kc(this),Pd(t))}});var Tf=gu("Array").sort,Gf=Array.prototype,Bf=function(t){var g=t.sort;return t===Gf||t instanceof Array&&g===Gf.sort?Tf:g},Rf=function(t){return function(g,e,A,I){Pd(e);var C=Kc(g),i=wd(C),n=Cc(C.length),o=t?n-1:0,r=t?-1:1;if(A<2)for(;;){if(o in i){I=i[o],o+=r;break}if(o+=r,t?o<0:n<=o)throw TypeError("Reduce of empty array with no initial value")}for(;t?o>=0:n>o;o+=r)o in i&&(I=e(I,i[o],o,C));return I}},Sf={left:Rf(!1),right:Rf(!0)}.left,Ff=Uh("reduce"),Lf=Jh("reduce",{1:0});qd({target:"Array",proto:!0,forced:!Ff||!Lf},{reduce:function(t){return Sf(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Qf=gu("Array").reduce,Yf=Array.prototype,Wf=function(t){var g=t.reduce;return t===Yf||t instanceof Array&&g===Yf.reduce?Qf:g},zf=gu("Array").keys,jf=Array.prototype,Pf={DOMTokenList:!0,NodeList:!0},Vf=function(t){var g=t.keys;return t===jf||t instanceof Array&&g===jf.keys||Pf.hasOwnProperty(mh(t))?zf:g};qd({target:"Array",stat:!0},{isArray:Wh});var Xf=jd.Array.isArray,Uf=Xf;var _f=function(t){if(Uf(t)){for(var g=0,e=new Array(t.length);g<t.length;g++)e[g]=t[g];return e}},Hf=function(t,g,e,A){try{return A?g(Xd(e)[0],e[1]):g(e)}catch(g){var I=t.return;throw void 0!==I&&Xd(I.call(t)),g}},Jf=nh("iterator"),Kf=Array.prototype,qf=function(t){return void 0!==t&&(Dc.Array===t||Kf[Jf]===t)},$f=nh("iterator"),tp=!1;try{var gp=0,ep={next:function(){return{done:!!gp++}},return:function(){tp=!0}};ep[$f]=function(){return this},Array.from(ep,(function(){throw 2}))}catch(t){}var Ap=!function(t,g){if(!g&&!tp)return!1;var e=!1;try{var A={};A[$f]=function(){return{next:function(){return{done:e=!0}}}},t(A)}catch(t){}return e}((function(t){Array.from(t)}));qd({target:"Array",stat:!0,forced:Ap},{from:function(t){var g,e,A,I,C,i,n=Kc(t),o="function"==typeof this?this:Array,r=arguments.length,s=r>1?arguments[1]:void 0,a=void 0!==s,l=kf(n),d=0;if(a&&(s=Vd(s,r>2?arguments[2]:void 0,2)),null==l||o==Array&&qf(l))for(e=new o(g=Cc(n.length));g>d;d++)i=a?s(n[d],d):n[d],xc(e,d,i);else for(C=(I=l.call(n)).next,e=new o;!(A=C.call(I)).done;d++)i=a?Hf(I,s,[A.value,d],!0):A.value,xc(e,d,i);return e.length=d,e}});var Ip=jd.Array.from,Cp=nh("iterator"),ip=function(t){var g=Object(t);return void 0!==g[Cp]||"@@iterator"in g||Dc.hasOwnProperty(mh(g))};var np=function(t){if(ip(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return Ip(t)};var op=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var rp,sp,ap=function(t){return _f(t)||np(t)||op()},lp=vc("navigator","userAgent")||"",dp=dd.process,cp=dp&&dp.versions,hp=cp&&cp.v8;hp?sp=(rp=hp.split("."))[0]+rp[1]:lp&&(!(rp=lp.match(/Edge\/(\d+)/))||rp[1]>=74)&&(rp=lp.match(/Chrome\/(\d+)/))&&(sp=rp[1]);var up=sp&&+sp,fp=nh("species"),pp=function(t){return up>=51||!cd((function(){var g=[];return(g.constructor={})[fp]=function(){return{foo:1}},1!==g[t](Boolean).foo}))},vp=Xh.filter,yp=pp("filter"),mp=Jh("filter");qd({target:"Array",proto:!0,forced:!yp||!mp},{filter:function(t){return vp(this,t,arguments.length>1?arguments[1]:void 0)}});var bp=gu("Array").filter,wp=Array.prototype,xp=function(t){var g=t.filter;return t===wp||t instanceof Array&&g===wp.filter?bp:g},kp=nh("isConcatSpreadable"),Dp=up>=51||!cd((function(){var t=[];return t[kp]=!1,t.concat()[0]!==t})),Op=pp("concat"),Np=function(t){if(!Dd(t))return!1;var g=t[kp];return void 0!==g?!!g:Wh(t)};qd({target:"Array",proto:!0,forced:!Dp||!Op},{concat:function(t){var g,e,A,I,C,i=Kc(this),n=jh(i,0),o=0;for(g=-1,A=arguments.length;g<A;g++)if(C=-1===g?i:arguments[g],Np(C)){if(o+(I=Cc(C.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<I;e++,o++)e in C&&xc(n,o,C[e])}else{if(o>=9007199254740991)throw TypeError("Maximum allowed index exceeded");xc(n,o++,C)}return n.length=o,n}});var Ep=gu("Array").concat,Zp=Array.prototype,Mp=function(t){var g=t.concat;return t===Zp||t instanceof Array&&g===Zp.concat?Ep:g},Tp=Object.assign,Gp=Object.defineProperty,Bp=!Tp||cd((function(){if(hd&&1!==Tp({b:1},Tp(Gp({},"a",{enumerable:!0,get:function(){Gp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},g={},e=Symbol();return t[e]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){g[t]=t})),7!=Tp({},t)[e]||"abcdefghijklmnopqrst"!=hc(Tp({},g)).join("")}))?function(t,g){for(var e=Kc(t),A=arguments.length,I=1,C=bc.f,i=pd.f;A>I;)for(var n,o=wd(arguments[I++]),r=C?hc(o).concat(C(o)):hc(o),s=r.length,a=0;s>a;)n=r[a++],hd&&!i.call(o,n)||(e[n]=o[n]);return e}:Tp;qd({target:"Object",stat:!0,forced:Object.assign!==Bp},{assign:Bp});var Rp=jd.Object.assign,Sp=Xh.some,Fp=Uh("some"),Lp=Jh("some");qd({target:"Array",proto:!0,forced:!Fp||!Lp},{some:function(t){return Sp(this,t,arguments.length>1?arguments[1]:void 0)}});var Qp=gu("Array").some,Yp=Array.prototype,Wp=function(t){var g=t.some;return t===Yp||t instanceof Array&&g===Yp.some?Qp:g},zp=Xh.map,jp=pp("map"),Pp=Jh("map");qd({target:"Array",proto:!0,forced:!jp||!Pp},{map:function(t){return zp(this,t,arguments.length>1?arguments[1]:void 0)}});var Vp=gu("Array").map,Xp=Array.prototype,Up=function(t){var g=t.map;return t===Xp||t instanceof Array&&g===Xp.map?Vp:g},_p=rf;hu("asyncIterator"),hu("hasInstance"),hu("isConcatSpreadable"),hu("match"),hu("matchAll"),hu("replace"),hu("search"),hu("species"),hu("split"),hu("toPrimitive"),hu("toStringTag"),hu("unscopables"),kh(Math,"Math",!0),kh(dd.JSON,"JSON",!0);var Hp=jd.Symbol;hu("asyncDispose"),hu("dispose"),hu("observable"),hu("patternMatch"),hu("replaceAll");var Jp=Hp,Kp=ad((function(t){function g(e){return t.exports=g="function"==typeof Jp&&"symbol"==typeof _p?function(t){return typeof t}:function(t){return t&&"function"==typeof Jp&&t.constructor===Jp&&t!==Jp.prototype?"symbol":typeof t},g(e)}t.exports=g})),qp=cd((function(){hc(1)}));qd({target:"Object",stat:!0,forced:qp},{keys:function(t){return hc(Kc(t))}});var $p=jd.Object.keys,tv=!cd((function(){return Object.isExtensible(Object.preventExtensions({}))})),gv=ad((function(t){var g=_d.f,e=Lc("meta"),A=0,I=Object.isExtensible||function(){return!0},C=function(t){g(t,e,{value:{objectID:"O"+ ++A,weakData:{}}})},i=t.exports={REQUIRED:!1,fastKey:function(t,g){if(!Dd(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Ed(t,e)){if(!I(t))return"F";if(!g)return"E";C(t)}return t[e].objectID},getWeakData:function(t,g){if(!Ed(t,e)){if(!I(t))return!0;if(!g)return!1;C(t)}return t[e].weakData},onFreeze:function(t){return tv&&i.REQUIRED&&I(t)&&!Ed(t,e)&&C(t),t}};ac[e]=!0})),ev=(gv.REQUIRED,gv.fastKey,gv.getWeakData,gv.onFreeze,ad((function(t){var g=function(t,g){this.stopped=t,this.result=g};(t.exports=function(t,e,A,I,C){var i,n,o,r,s,a,l,d=Vd(e,A,I?2:1);if(C)i=t;else{if("function"!=typeof(n=kf(t)))throw TypeError("Target is not iterable");if(qf(n)){for(o=0,r=Cc(t.length);r>o;o++)if((s=I?d(Xd(l=t[o])[0],l[1]):d(t[o]))&&s instanceof g)return s;return new g(!1)}i=n.call(t)}for(a=i.next;!(l=a.call(i)).done;)if("object"==typeof(s=Hf(i,d,l.value,I))&&s&&s instanceof g)return s;return new g(!1)}).stop=function(t){return new g(!0,t)}}))),Av=function(t,g,e){if(!(t instanceof g))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return t},Iv=_d.f,Cv=Xh.forEach,iv=Jc.set,nv=Jc.getterFor,ov=function(t,g,e){var A,I=-1!==t.indexOf("Map"),C=-1!==t.indexOf("Weak"),i=I?"set":"add",n=dd[t],o=n&&n.prototype,r={};if(hd&&"function"==typeof n&&(C||o.forEach&&!cd((function(){(new n).entries().next()})))){A=g((function(g,e){iv(Av(g,A,t),{type:t,collection:new n}),null!=e&&ev(e,g[i],g,I)}));var s=nv(t);Cv(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var g="add"==t||"set"==t;t in o&&(!C||"clear"!=t)&&Hd(A.prototype,t,(function(e,A){var I=s(this).collection;if(!g&&C&&!Dd(e))return"get"==t&&void 0;var i=I[t](0===e?0:e,A);return g?this:i}))})),C||Iv(A.prototype,"size",{configurable:!0,get:function(){return s(this).collection.size}})}else A=e.getConstructor(g,t,I,i),gv.REQUIRED=!0;return kh(A,t,!1,!0),r[t]=A,qd({global:!0,forced:!0},r),C||e.setStrong(A,t,I),A},rv=function(t,g,e){for(var A in g)e&&e.unsafe&&t[A]?t[A]=g[A]:Eh(t,A,g[A],e);return t},sv=nh("species"),av=_d.f,lv=gv.fastKey,dv=Jc.set,cv=Jc.getterFor,hv={getConstructor:function(t,g,e,A){var I=t((function(t,C){Av(t,I,g),dv(t,{type:g,index:uh(null),first:void 0,last:void 0,size:0}),hd||(t.size=0),null!=C&&ev(C,t[A],t,e)})),C=cv(g),i=function(t,g,e){var A,I,i=C(t),o=n(t,g);return o?o.value=e:(i.last=o={index:I=lv(g,!0),key:g,value:e,previous:A=i.last,next:void 0,removed:!1},i.first||(i.first=o),A&&(A.next=o),hd?i.size++:t.size++,"F"!==I&&(i.index[I]=o)),t},n=function(t,g){var e,A=C(t),I=lv(g);if("F"!==I)return A.index[I];for(e=A.first;e;e=e.next)if(e.key==g)return e};return rv(I.prototype,{clear:function(){for(var t=C(this),g=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete g[e.index],e=e.next;t.first=t.last=void 0,hd?t.size=0:this.size=0},delete:function(t){var g=C(this),e=n(this,t);if(e){var A=e.next,I=e.previous;delete g.index[e.index],e.removed=!0,I&&(I.next=A),A&&(A.previous=I),g.first==e&&(g.first=A),g.last==e&&(g.last=I),hd?g.size--:this.size--}return!!e},forEach:function(t){for(var g,e=C(this),A=Vd(t,arguments.length>1?arguments[1]:void 0,3);g=g?g.next:e.first;)for(A(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function(t){return!!n(this,t)}}),rv(I.prototype,e?{get:function(t){var g=n(this,t);return g&&g.value},set:function(t,g){return i(this,0===t?0:t,g)}}:{add:function(t){return i(this,t=0===t?0:t,t)}}),hd&&av(I.prototype,"size",{get:function(){return C(this).size}}),I},setStrong:function(t,g,e){var A=g+" Iterator",I=cv(g),C=cv(A);Bh(t,g,(function(t,g){dv(this,{type:A,target:t,state:I(t),kind:g,last:void 0})}),(function(){for(var t=C(this),g=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?"keys"==g?{value:e.key,done:!1}:"values"==g?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),e?"entries":"values",!e,!0),function(t){var g=vc(t),e=_d.f;hd&&g&&!g[sv]&&e(g,sv,{configurable:!0,get:function(){return this}})}(g)}},uv=(ov("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),hv),jd.Map),fv=Xf;var pv=function(t,g){if(!(t instanceof g))throw new TypeError("Cannot call a class as a function")};function vv(t,g){for(var e=0;e<g.length;e++){var A=g[e];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),pf(t,A.key,A)}}var yv=function(t,g,e){return g&&vv(t.prototype,g),e&&vv(t,e),t};var mv=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var bv=function(t,g){return!g||"object"!==Kp(g)&&"function"!=typeof g?mv(t):g},wv=cd((function(){gh(1)}));qd({target:"Object",stat:!0,forced:wv,sham:!qc},{getPrototypeOf:function(t){return gh(Kc(t))}});var xv=jd.Object.getPrototypeOf;qd({target:"Object",stat:!0},{setPrototypeOf:Nh});var kv=jd.Object.setPrototypeOf,Dv=ad((function(t){function g(e){return t.exports=g=kv?xv:function(t){return t.__proto__||xv(t)},g(e)}t.exports=g}));qd({target:"Object",stat:!0,sham:!hd},{create:uh});var Ov=jd.Object,Nv=function(t,g){return Ov.create(t,g)},Ev=Nv,Zv=ad((function(t){function g(e,A){return t.exports=g=kv||function(t,g){return t.__proto__=g,t},g(e,A)}t.exports=g}));for(var Mv=function(t,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");t.prototype=Ev(g&&g.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),g&&Zv(t,g)},Tv=[],Gv=0;Gv<256;Gv++)Tv[Gv]=(Gv+256).toString(16).substr(1);for(var Bv=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var g=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),g[e]=t>>>((3&e)<<3)&255;return g}}(),Rv=[],Sv=0;Sv<256;Sv++)Rv[Sv]=(Sv+256).toString(16).substr(1);var Fv=Bv();Fv[0],Fv[1],Fv[2],Fv[3],Fv[4],Fv[5],Fv[6],Fv[7];function Lv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,A=g&&e||0;"string"==typeof t&&(g="binary"===t?new Array(16):void 0,t={});var I=t.random||(t.rng||Bv)();if(I[6]=15&I[6]|64,I[8]=63&I[8]|128,g)for(var C=0;C<16;C++)g[A+C]=I[C];return g||function(t,g){var e=g||0,A=Tv;return A[t[e++]]+A[t[e++]]+A[t[e++]]+A[t[e++]]+"-"+A[t[e++]]+A[t[e++]]+"-"+A[t[e++]]+A[t[e++]]+"-"+A[t[e++]]+A[t[e++]]+"-"+A[t[e++]]+A[t[e++]]+A[t[e++]]+A[t[e++]]+A[t[e++]]+A[t[e++]]}(I)}var Qv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Yv(t,g){return t(g={exports:{}},g.exports),g.exports}var Wv=function(t){return t&&t.Math==Math&&t},zv=Wv("object"==typeof globalThis&&globalThis)||Wv("object"==typeof window&&window)||Wv("object"==typeof self&&self)||Wv("object"==typeof Qv&&Qv)||Function("return this")(),jv=function(t){try{return!!t()}catch(t){return!0}},Pv=!jv((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),Vv={}.propertyIsEnumerable,Xv=Object.getOwnPropertyDescriptor,Uv={f:Xv&&!Vv.call({1:2},1)?function(t){var g=Xv(this,t);return!!g&&g.enumerable}:Vv},_v=function(t,g){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:g}},Hv={}.toString,Jv=function(t){return Hv.call(t).slice(8,-1)},Kv="".split,qv=jv((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Jv(t)?Kv.call(t,""):Object(t)}:Object,$v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},ty=function(t){return qv($v(t))},gy=function(t){return"object"==typeof t?null!==t:"function"==typeof t},ey=function(t,g){if(!gy(t))return t;var e,A;if(g&&"function"==typeof(e=t.toString)&&!gy(A=e.call(t)))return A;if("function"==typeof(e=t.valueOf)&&!gy(A=e.call(t)))return A;if(!g&&"function"==typeof(e=t.toString)&&!gy(A=e.call(t)))return A;throw TypeError("Can't convert object to primitive value")},Ay={}.hasOwnProperty,Iy=function(t,g){return Ay.call(t,g)},Cy=zv.document,iy=gy(Cy)&&gy(Cy.createElement),ny=function(t){return iy?Cy.createElement(t):{}},oy=!Pv&&!jv((function(){return 7!=Object.defineProperty(ny("div"),"a",{get:function(){return 7}}).a})),ry=Object.getOwnPropertyDescriptor,sy={f:Pv?ry:function(t,g){if(t=ty(t),g=ey(g,!0),oy)try{return ry(t,g)}catch(t){}if(Iy(t,g))return _v(!Uv.f.call(t,g),t[g])}},ay=/#|\.prototype\./,ly=function(t,g){var e=cy[dy(t)];return e==uy||e!=hy&&("function"==typeof g?jv(g):!!g)},dy=ly.normalize=function(t){return String(t).replace(ay,".").toLowerCase()},cy=ly.data={},hy=ly.NATIVE="N",uy=ly.POLYFILL="P",fy=ly,py={},vy=function(t,g,e){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===g)return t;switch(e){case 0:return function(){return t.call(g)};case 1:return function(e){return t.call(g,e)};case 2:return function(e,A){return t.call(g,e,A)};case 3:return function(e,A,I){return t.call(g,e,A,I)}}return function(){return t.apply(g,arguments)}},yy=function(t){if(!gy(t))throw TypeError(String(t)+" is not an object");return t},my=Object.defineProperty,by={f:Pv?my:function(t,g,e){if(yy(t),g=ey(g,!0),yy(e),oy)try{return my(t,g,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[g]=e.value),t}},wy=Pv?function(t,g,e){return by.f(t,g,_v(1,e))}:function(t,g,e){return t[g]=e,t},xy=sy.f,ky=function(t){var g=function(g,e,A){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(g);case 2:return new t(g,e)}return new t(g,e,A)}return t.apply(this,arguments)};return g.prototype=t.prototype,g},Dy=function(t,g){var e,A,I,C,i,n,o,r,s=t.target,a=t.global,l=t.stat,d=t.proto,c=a?zv:l?zv[s]:(zv[s]||{}).prototype,h=a?py:py[s]||(py[s]={}),u=h.prototype;for(I in g)e=!fy(a?I:s+(l?".":"#")+I,t.forced)&&c&&Iy(c,I),i=h[I],e&&(n=t.noTargetGet?(r=xy(c,I))&&r.value:c[I]),C=e&&n?n:g[I],e&&typeof i==typeof C||(o=t.bind&&e?vy(C,zv):t.wrap&&e?ky(C):d&&"function"==typeof C?vy(Function.call,C):C,(t.sham||C&&C.sham||i&&i.sham)&&wy(o,"sham",!0),h[I]=o,d&&(Iy(py,A=s+"Prototype")||wy(py,A,{}),py[A][I]=C,t.real&&u&&!u[I]&&wy(u,I,C)))};Dy({target:"Object",stat:!0,forced:!Pv,sham:!Pv},{defineProperty:by.f});Yv((function(t){var g=py.Object,e=t.exports=function(t,e,A){return g.defineProperty(t,e,A)};g.defineProperty.sham&&(e.sham=!0)}));var Oy=Math.ceil,Ny=Math.floor,Ey=function(t){return isNaN(t=+t)?0:(t>0?Ny:Oy)(t)},Zy=Math.min,My=function(t){return t>0?Zy(Ey(t),9007199254740991):0},Ty=Math.max,Gy=Math.min,By=function(t,g){var e=Ey(t);return e<0?Ty(e+g,0):Gy(e,g)},Ry=function(t){return function(g,e,A){var I,C=ty(g),i=My(C.length),n=By(A,i);if(t&&e!=e){for(;i>n;)if((I=C[n++])!=I)return!0}else for(;i>n;n++)if((t||n in C)&&C[n]===e)return t||n||0;return!t&&-1}},Sy={includes:Ry(!0),indexOf:Ry(!1)},Fy={},Ly=Sy.indexOf,Qy=function(t,g){var e,A=ty(t),I=0,C=[];for(e in A)!Iy(Fy,e)&&Iy(A,e)&&C.push(e);for(;g.length>I;)Iy(A,e=g[I++])&&(~Ly(C,e)||C.push(e));return C},Yy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wy=Object.keys||function(t){return Qy(t,Yy)},zy=Pv?Object.defineProperties:function(t,g){yy(t);for(var e,A=Wy(g),I=A.length,C=0;I>C;)by.f(t,e=A[C++],g[e]);return t};Dy({target:"Object",stat:!0,forced:!Pv,sham:!Pv},{defineProperties:zy});Yv((function(t){var g=py.Object,e=t.exports=function(t,e){return g.defineProperties(t,e)};g.defineProperties.sham&&(e.sham=!0)}));var jy=function(t){return"function"==typeof t?t:void 0},Py=function(t,g){return arguments.length<2?jy(py[t])||jy(zv[t]):py[t]&&py[t][g]||zv[t]&&zv[t][g]},Vy=Yy.concat("length","prototype"),Xy={f:Object.getOwnPropertyNames||function(t){return Qy(t,Vy)}},Uy={f:Object.getOwnPropertySymbols},_y=Py("Reflect","ownKeys")||function(t){var g=Xy.f(yy(t)),e=Uy.f;return e?g.concat(e(t)):g},Hy=function(t,g,e){var A=ey(g);A in t?by.f(t,A,_v(0,e)):t[A]=e};Dy({target:"Object",stat:!0,sham:!Pv},{getOwnPropertyDescriptors:function(t){for(var g,e,A=ty(t),I=sy.f,C=_y(A),i={},n=0;C.length>n;)void 0!==(e=I(A,g=C[n++]))&&Hy(i,g,e);return i}});py.Object.getOwnPropertyDescriptors;var Jy=sy.f,Ky=jv((function(){Jy(1)}));Dy({target:"Object",stat:!0,forced:!Pv||Ky,sham:!Pv},{getOwnPropertyDescriptor:function(t,g){return Jy(ty(t),g)}});Yv((function(t){var g=py.Object,e=t.exports=function(t,e){return g.getOwnPropertyDescriptor(t,e)};g.getOwnPropertyDescriptor.sham&&(e.sham=!0)}));var qy=!!Object.getOwnPropertySymbols&&!jv((function(){return!String(Symbol())})),$y=Array.isArray||function(t){return"Array"==Jv(t)},tm=function(t){return Object($v(t))},gm=Py("document","documentElement"),em=zv["__core-js_shared__"]||function(t,g){try{wy(zv,t,g)}catch(e){zv[t]=g}return g}("__core-js_shared__",{}),Am=Yv((function(t){(t.exports=function(t,g){return em[t]||(em[t]=void 0!==g?g:{})})("versions",[]).push({version:"3.4.1",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),Im=0,Cm=Math.random(),im=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Im+Cm).toString(36)},nm=Am("keys"),om=function(t){return nm[t]||(nm[t]=im(t))},rm=om("IE_PROTO"),sm=function(){},am=function(){var t,g=ny("iframe"),e=Yy.length;for(g.style.display="none",gm.appendChild(g),g.src=String("javascript:"),(t=g.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),am=t.F;e--;)delete am.prototype[Yy[e]];return am()},lm=Object.create||function(t,g){var e;return null!==t?(sm.prototype=yy(t),e=new sm,sm.prototype=null,e[rm]=t):e=am(),void 0===g?e:zy(e,g)};Fy[rm]=!0;var dm=Xy.f,cm={}.toString,hm="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],um={f:function(t){return hm&&"[object Window]"==cm.call(t)?function(t){try{return dm(t)}catch(t){return hm.slice()}}(t):dm(ty(t))}},fm=function(t,g,e,A){A&&A.enumerable?t[g]=e:wy(t,g,e)},pm=zv.Symbol,vm=Am("wks"),ym=function(t){return vm[t]||(vm[t]=qy&&pm[t]||(qy?pm:im)("Symbol."+t))},mm={f:ym},bm=by.f,wm=function(t){var g=py.Symbol||(py.Symbol={});Iy(g,t)||bm(g,t,{value:mm.f(t)})},xm=ym("toStringTag"),km="Arguments"==Jv(function(){return arguments}()),Dm=function(t){var g,e,A;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,g){try{return t[g]}catch(t){}}(g=Object(t),xm))?e:km?Jv(g):"Object"==(A=Jv(g))&&"function"==typeof g.callee?"Arguments":A},Om={};Om[ym("toStringTag")]="z";var Nm,Em,Zm,Mm="[object z]"!==String(Om)?function(){return"[object "+Dm(this)+"]"}:Om.toString,Tm=by.f,Gm=ym("toStringTag"),Bm=Mm!=={}.toString,Rm=function(t,g,e,A){if(t){var I=e?t:t.prototype;Iy(I,Gm)||Tm(I,Gm,{configurable:!0,value:g}),A&&Bm&&wy(I,"toString",Mm)}},Sm=Am("native-function-to-string",Function.toString),Fm=zv.WeakMap,Lm="function"==typeof Fm&&/native code/.test(Sm.call(Fm)),Qm=zv.WeakMap;if(Lm){var Ym=new Qm,Wm=Ym.get,zm=Ym.has,jm=Ym.set;Nm=function(t,g){return jm.call(Ym,t,g),g},Em=function(t){return Wm.call(Ym,t)||{}},Zm=function(t){return zm.call(Ym,t)}}else{var Pm=om("state");Fy[Pm]=!0,Nm=function(t,g){return wy(t,Pm,g),g},Em=function(t){return Iy(t,Pm)?t[Pm]:{}},Zm=function(t){return Iy(t,Pm)}}var Vm={set:Nm,get:Em,has:Zm,enforce:function(t){return Zm(t)?Em(t):Nm(t,{})},getterFor:function(t){return function(g){var e;if(!gy(g)||(e=Em(g)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},Xm=ym("species"),Um=function(t,g){var e;return $y(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!$y(e.prototype)?gy(e)&&null===(e=e[Xm])&&(e=void 0):e=void 0),new(void 0===e?Array:e)(0===g?0:g)},_m=[].push,Hm=function(t){var g=1==t,e=2==t,A=3==t,I=4==t,C=6==t,i=5==t||C;return function(n,o,r,s){for(var a,l,d=tm(n),c=qv(d),h=vy(o,r,3),u=My(c.length),f=0,p=s||Um,v=g?p(n,u):e?p(n,0):void 0;u>f;f++)if((i||f in c)&&(l=h(a=c[f],f,d),t))if(g)v[f]=l;else if(l)switch(t){case 3:return!0;case 5:return a;case 6:return f;case 2:_m.call(v,a)}else if(I)return!1;return C?-1:A||I?I:v}},Jm={forEach:Hm(0),map:Hm(1),filter:Hm(2),some:Hm(3),every:Hm(4),find:Hm(5),findIndex:Hm(6)},Km=Jm.forEach,qm=om("hidden"),$m=ym("toPrimitive"),tb=Vm.set,gb=Vm.getterFor("Symbol"),eb=Object.prototype,Ab=zv.Symbol,Ib=Py("JSON","stringify"),Cb=sy.f,ib=by.f,nb=um.f,ob=Uv.f,rb=Am("symbols"),sb=Am("op-symbols"),ab=Am("string-to-symbol-registry"),lb=Am("symbol-to-string-registry"),db=Am("wks"),cb=zv.QObject,hb=!cb||!cb.prototype||!cb.prototype.findChild,ub=Pv&&jv((function(){return 7!=lm(ib({},"a",{get:function(){return ib(this,"a",{value:7}).a}})).a}))?function(t,g,e){var A=Cb(eb,g);A&&delete eb[g],ib(t,g,e),A&&t!==eb&&ib(eb,g,A)}:ib,fb=function(t,g){var e=rb[t]=lm(Ab.prototype);return tb(e,{type:"Symbol",tag:t,description:g}),Pv||(e.description=g),e},pb=qy&&"symbol"==typeof Ab.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ab},vb=function(t,g,e){t===eb&&vb(sb,g,e),yy(t);var A=ey(g,!0);return yy(e),Iy(rb,A)?(e.enumerable?(Iy(t,qm)&&t[qm][A]&&(t[qm][A]=!1),e=lm(e,{enumerable:_v(0,!1)})):(Iy(t,qm)||ib(t,qm,_v(1,{})),t[qm][A]=!0),ub(t,A,e)):ib(t,A,e)},yb=function(t,g){yy(t);var e=ty(g),A=Wy(e).concat(xb(e));return Km(A,(function(g){Pv&&!mb.call(e,g)||vb(t,g,e[g])})),t},mb=function(t){var g=ey(t,!0),e=ob.call(this,g);return!(this===eb&&Iy(rb,g)&&!Iy(sb,g))&&(!(e||!Iy(this,g)||!Iy(rb,g)||Iy(this,qm)&&this[qm][g])||e)},bb=function(t,g){var e=ty(t),A=ey(g,!0);if(e!==eb||!Iy(rb,A)||Iy(sb,A)){var I=Cb(e,A);return!I||!Iy(rb,A)||Iy(e,qm)&&e[qm][A]||(I.enumerable=!0),I}},wb=function(t){var g=nb(ty(t)),e=[];return Km(g,(function(t){Iy(rb,t)||Iy(Fy,t)||e.push(t)})),e},xb=function(t){var g=t===eb,e=nb(g?sb:ty(t)),A=[];return Km(e,(function(t){!Iy(rb,t)||g&&!Iy(eb,t)||A.push(rb[t])})),A};if(qy||(fm((Ab=function(){if(this instanceof Ab)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=im(t),e=function(t){this===eb&&e.call(sb,t),Iy(this,qm)&&Iy(this[qm],g)&&(this[qm][g]=!1),ub(this,g,_v(1,t))};return Pv&&hb&&ub(eb,g,{configurable:!0,set:e}),fb(g,t)}).prototype,"toString",(function(){return gb(this).tag})),Uv.f=mb,by.f=vb,sy.f=bb,Xy.f=um.f=wb,Uy.f=xb,Pv&&ib(Ab.prototype,"description",{configurable:!0,get:function(){return gb(this).description}}),mm.f=function(t){return fb(ym(t),t)}),Dy({global:!0,wrap:!0,forced:!qy,sham:!qy},{Symbol:Ab}),Km(Wy(db),(function(t){wm(t)})),Dy({target:"Symbol",stat:!0,forced:!qy},{for:function(t){var g=String(t);if(Iy(ab,g))return ab[g];var e=Ab(g);return ab[g]=e,lb[e]=g,e},keyFor:function(t){if(!pb(t))throw TypeError(t+" is not a symbol");if(Iy(lb,t))return lb[t]},useSetter:function(){hb=!0},useSimple:function(){hb=!1}}),Dy({target:"Object",stat:!0,forced:!qy,sham:!Pv},{create:function(t,g){return void 0===g?lm(t):yb(lm(t),g)},defineProperty:vb,defineProperties:yb,getOwnPropertyDescriptor:bb}),Dy({target:"Object",stat:!0,forced:!qy},{getOwnPropertyNames:wb,getOwnPropertySymbols:xb}),Dy({target:"Object",stat:!0,forced:jv((function(){Uy.f(1)}))},{getOwnPropertySymbols:function(t){return Uy.f(tm(t))}}),Ib){var kb=!qy||jv((function(){var t=Ab();return"[null]"!=Ib([t])||"{}"!=Ib({a:t})||"{}"!=Ib(Object(t))}));Dy({target:"JSON",stat:!0,forced:kb},{stringify:function(t,g,e){for(var A,I=[t],C=1;arguments.length>C;)I.push(arguments[C++]);if(A=g,(gy(g)||void 0!==t)&&!pb(t))return $y(g)||(g=function(t,g){if("function"==typeof A&&(g=A.call(this,t,g)),!pb(g))return g}),I[1]=g,Ib.apply(null,I)}})}Ab.prototype[$m]||wy(Ab.prototype,$m,Ab.prototype.valueOf),Rm(Ab,"Symbol"),Fy[qm]=!0;py.Object.getOwnPropertySymbols;var Db,Ob,Nb,Eb={},Zb=!jv((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Mb=om("IE_PROTO"),Tb=Object.prototype,Gb=Zb?Object.getPrototypeOf:function(t){return t=tm(t),Iy(t,Mb)?t[Mb]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Tb:null},Bb=(ym("iterator"),!1);[].keys&&("next"in(Nb=[].keys())?(Ob=Gb(Gb(Nb)))!==Object.prototype&&(Db=Ob):Bb=!0),null==Db&&(Db={});var Rb={IteratorPrototype:Db,BUGGY_SAFARI_ITERATORS:Bb},Sb=Rb.IteratorPrototype,Fb=function(){return this},Lb=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,g=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),g=e instanceof Array}catch(t){}}(),Rb.IteratorPrototype),Qb=Rb.BUGGY_SAFARI_ITERATORS,Yb=ym("iterator"),Wb=function(){return this},zb=function(t,g,e,A,I,C,i){!function(t,g,e){var A=g+" Iterator";t.prototype=lm(Sb,{next:_v(1,e)}),Rm(t,A,!1,!0),Eb[A]=Fb}(e,g,A);var n,o,r,s=function(t){if(t===I&&h)return h;if(!Qb&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},a=g+" Iterator",l=!1,d=t.prototype,c=d[Yb]||d["@@iterator"]||I&&d[I],h=!Qb&&c||s(I),u="Array"==g&&d.entries||c;if(u&&(n=Gb(u.call(new t)),Lb!==Object.prototype&&n.next&&(Rm(n,a,!0,!0),Eb[a]=Wb)),"values"==I&&c&&"values"!==c.name&&(l=!0,h=function(){return c.call(this)}),i&&d[Yb]!==h&&wy(d,Yb,h),Eb[g]=h,I)if(o={values:s("values"),keys:C?h:s("keys"),entries:s("entries")},i)for(r in o)!Qb&&!l&&r in d||fm(d,r,o[r]);else Dy({target:g,proto:!0,forced:Qb||l},o);return o},jb=Vm.set,Pb=Vm.getterFor("Array Iterator");zb(Array,"Array",(function(t,g){jb(this,{type:"Array Iterator",target:ty(t),index:0,kind:g})}),(function(){var t=Pb(this),g=t.target,e=t.kind,A=t.index++;return!g||A>=g.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:A,done:!1}:"values"==e?{value:g[A],done:!1}:{value:[A,g[A]],done:!1}}),"values");Eb.Arguments=Eb.Array;var Vb=ym("toStringTag");for(var Xb in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Ub=zv[Xb],_b=Ub&&Ub.prototype;_b&&!_b[Vb]&&wy(_b,Vb,Xb),Eb[Xb]=Eb.Array}var Hb=function(t){return function(g,e){var A,I,C=String($v(g)),i=Ey(e),n=C.length;return i<0||i>=n?t?"":void 0:(A=C.charCodeAt(i))<55296||A>56319||i+1===n||(I=C.charCodeAt(i+1))<56320||I>57343?t?C.charAt(i):A:t?C.slice(i,i+2):I-56320+(A-55296<<10)+65536}},Jb={codeAt:Hb(!1),charAt:Hb(!0)}.charAt,Kb=Vm.set,qb=Vm.getterFor("String Iterator");zb(String,"String",(function(t){Kb(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,g=qb(this),e=g.string,A=g.index;return A>=e.length?{value:void 0,done:!0}:(t=Jb(e,A),g.index+=t.length,{value:t,done:!1})}));var $b=ym("iterator"),tw=function(t){if(null!=t)return t[$b]||t["@@iterator"]||Eb[Dm(t)]};Dy({target:"Object",stat:!0,sham:!Pv},{create:lm});var gw=jv((function(){Wy(1)}));Dy({target:"Object",stat:!0,forced:gw},{keys:function(t){return Wy(tm(t))}});py.Object.keys;var ew="\t\n\v\f\r                 \u2028\u2029\ufeff",Aw="["+ew+"]",Iw=RegExp("^"+Aw+Aw+"*"),Cw=RegExp(Aw+Aw+"*$"),iw=function(t){return function(g){var e=String($v(g));return 1&t&&(e=e.replace(Iw,"")),2&t&&(e=e.replace(Cw,"")),e}},nw={start:iw(1),end:iw(2),trim:iw(3)},ow=nw.trim;Dy({target:"String",proto:!0,forced:function(t){return jv((function(){return!!ew[t]()||"​…᠎"!="​…᠎"[t]()||ew[t].name!==t}))}("trim")},{trim:function(){return ow(this)}});var rw=function(t){return py[t+"Prototype"]},sw=(rw("String").trim,function(t,g){var e=[][t];return!e||!jv((function(){e.call(null,g||function(){throw 1},1)}))}),aw=Jm.forEach,lw=sw("forEach")?function(t){return aw(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;Dy({target:"Array",proto:!0,forced:[].forEach!=lw},{forEach:lw});rw("Array").forEach;var dw,cw,hw=Py("navigator","userAgent")||"",uw=zv.process,fw=uw&&uw.versions,pw=fw&&fw.v8;pw?cw=(dw=pw.split("."))[0]+dw[1]:hw&&(!(dw=hw.match(/Edge\/(\d+)/))||dw[1]>=74)&&(dw=hw.match(/Chrome\/(\d+)/))&&(cw=dw[1]);var vw=cw&&+cw,yw=ym("species"),mw=function(t){return vw>=51||!jv((function(){var g=[];return(g.constructor={})[yw]=function(){return{foo:1}},1!==g[t](Boolean).foo}))},bw=Jm.map;Dy({target:"Array",proto:!0,forced:!mw("map")},{map:function(t){return bw(this,t,arguments.length>1?arguments[1]:void 0)}});rw("Array").map;var ww=nw.trim,xw=zv.parseInt,kw=/^[+-]?0[Xx]/,Dw=8!==xw(ew+"08")||22!==xw(ew+"0x16")?function(t,g){var e=ww(String(t));return xw(e,g>>>0||(kw.test(e)?16:10))}:xw;Dy({global:!0,forced:parseInt!=Dw},{parseInt:Dw});var Ow=Uv.f,Nw=function(t){return function(g){for(var e,A=ty(g),I=Wy(A),C=I.length,i=0,n=[];C>i;)e=I[i++],Pv&&!Ow.call(A,e)||n.push(t?[e,A[e]]:A[e]);return n}},Ew={entries:Nw(!0),values:Nw(!1)}.values;Dy({target:"Object",stat:!0},{values:function(t){return Ew(t)}});py.Object.values;var Zw=Jm.filter;Dy({target:"Array",proto:!0,forced:!mw("filter")},{filter:function(t){return Zw(this,t,arguments.length>1?arguments[1]:void 0)}});rw("Array").filter;var Mw=ym("isConcatSpreadable"),Tw=vw>=51||!jv((function(){var t=[];return t[Mw]=!1,t.concat()[0]!==t})),Gw=mw("concat"),Bw=function(t){if(!gy(t))return!1;var g=t[Mw];return void 0!==g?!!g:$y(t)};Dy({target:"Array",proto:!0,forced:!Tw||!Gw},{concat:function(t){var g,e,A,I,C,i=tm(this),n=Um(i,0),o=0;for(g=-1,A=arguments.length;g<A;g++)if(C=-1===g?i:arguments[g],Bw(C)){if(o+(I=My(C.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<I;e++,o++)e in C&&Hy(n,o,C[e])}else{if(o>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Hy(n,o++,C)}return n.length=o,n}});rw("Array").concat;Dy({target:"Array",stat:!0},{isArray:$y});var Rw=py.Array.isArray,Sw=function(t,g,e,A){try{return A?g(yy(e)[0],e[1]):g(e)}catch(g){var I=t.return;throw void 0!==I&&yy(I.call(t)),g}},Fw=ym("iterator"),Lw=Array.prototype,Qw=function(t){return void 0!==t&&(Eb.Array===t||Lw[Fw]===t)},Yw=ym("iterator"),Ww=!1;try{var zw=0,jw={next:function(){return{done:!!zw++}},return:function(){Ww=!0}};jw[Yw]=function(){return this},Array.from(jw,(function(){throw 2}))}catch(t){}var Pw=!function(t,g){if(!g&&!Ww)return!1;var e=!1;try{var A={};A[Yw]=function(){return{next:function(){return{done:e=!0}}}},t(A)}catch(t){}return e}((function(t){Array.from(t)}));Dy({target:"Array",stat:!0,forced:Pw},{from:function(t){var g,e,A,I,C,i=tm(t),n="function"==typeof this?this:Array,o=arguments.length,r=o>1?arguments[1]:void 0,s=void 0!==r,a=0,l=tw(i);if(s&&(r=vy(r,o>2?arguments[2]:void 0,2)),null==l||n==Array&&Qw(l))for(e=new n(g=My(i.length));g>a;a++)Hy(e,a,s?r(i[a],a):i[a]);else for(C=(I=l.call(i)).next,e=new n;!(A=C.call(I)).done;a++)Hy(e,a,s?Sw(I,r,[A.value,a],!0):A.value);return e.length=a,e}});py.Array.from,ym("iterator");var Vw=ym("species"),Xw=[].slice,Uw=Math.max;Dy({target:"Array",proto:!0,forced:!mw("slice")},{slice:function(t,g){var e,A,I,C=ty(this),i=My(C.length),n=By(t,i),o=By(void 0===g?i:g,i);if($y(C)&&("function"!=typeof(e=C.constructor)||e!==Array&&!$y(e.prototype)?gy(e)&&null===(e=e[Vw])&&(e=void 0):e=void 0,e===Array||void 0===e))return Xw.call(C,n,o);for(A=new(void 0===e?Array:e)(Uw(o-n,0)),I=0;n<o;n++,I++)n in C&&Hy(A,I,C[n]);return A.length=I,A}});var _w=rw("Array").slice,Hw=Array.prototype,Jw=function(t){var g=t.slice;return t===Hw||t instanceof Array&&g===Hw.slice?_w:g},Kw=jv((function(){Gb(1)}));Dy({target:"Object",stat:!0,forced:Kw,sham:!Zb},{getPrototypeOf:function(t){return Gb(tm(t))}});var qw=py.Object.getPrototypeOf,$w=Sy.indexOf,tx=[].indexOf,gx=!!tx&&1/[1].indexOf(1,-0)<0,ex=sw("indexOf");Dy({target:"Array",proto:!0,forced:gx||ex},{indexOf:function(t){return gx?tx.apply(this,arguments)||0:$w(this,t,arguments.length>1?arguments[1]:void 0)}});rw("Array").indexOf;var Ax=Rw,Ix=Object.assign,Cx=!Ix||jv((function(){var t={},g={},e=Symbol();return t[e]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){g[t]=t})),7!=Ix({},t)[e]||"abcdefghijklmnopqrst"!=Wy(Ix({},g)).join("")}))?function(t,g){for(var e=tm(t),A=arguments.length,I=1,C=Uy.f,i=Uv.f;A>I;)for(var n,o=qv(arguments[I++]),r=C?Wy(o).concat(C(o)):Wy(o),s=r.length,a=0;s>a;)n=r[a++],Pv&&!i.call(o,n)||(e[n]=o[n]);return e}:Ix;Dy({target:"Object",stat:!0,forced:Object.assign!==Cx},{assign:Cx});py.Object.assign;wm("iterator");var ix=mm.f("iterator");wm("asyncIterator"),wm("hasInstance"),wm("isConcatSpreadable"),wm("match"),wm("matchAll"),wm("replace"),wm("search"),wm("species"),wm("split"),wm("toPrimitive"),wm("toStringTag"),wm("unscopables"),Rm(Math,"Math",!0),Rm(zv.JSON,"JSON",!0);var nx=py.Symbol;wm("asyncDispose"),wm("dispose"),wm("observable"),wm("patternMatch"),wm("replaceAll");for(var ox=nx,rx=Yv((function(t){function g(t){return(g="function"==typeof ox&&"symbol"==typeof ix?function(t){return typeof t}:function(t){return t&&"function"==typeof ox&&t.constructor===ox&&t!==ox.prototype?"symbol":typeof t})(t)}function e(A){return"function"==typeof ox&&"symbol"===g(ix)?t.exports=e=function(t){return g(t)}:t.exports=e=function(t){return t&&"function"==typeof ox&&t.constructor===ox&&t!==ox.prototype?"symbol":g(t)},e(A)}t.exports=e})),sx=[],ax=0;ax<256;ax++)sx[ax]=(ax+256).toString(16).substr(1);for(var lx=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var g=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),g[e]=t>>>((3&e)<<3)&255;return g}}(),dx=[],cx=0;cx<256;cx++)dx[cx]=(cx+256).toString(16).substr(1);var hx=lx();hx[0],hx[1],hx[2],hx[3],hx[4],hx[5],hx[6],hx[7];function ux(t){return t instanceof Number||"number"==typeof t}function fx(t){return t instanceof String||"string"==typeof t}function px(t,g,e,A){var I=!1;!0===A&&(I=null===g[e]&&void 0!==t[e]),I?delete t[e]:t[e]=g[e]}function vx(t,g){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var I in g)if(Object.prototype.hasOwnProperty.call(g,I)||!0===e)if("object"===rx(g[I])&&null!==g[I]&&qw(g[I])===Object.prototype)void 0===t[I]?t[I]=vx({},g[I],e):"object"===rx(t[I])&&null!==t[I]&&qw(t[I])===Object.prototype?vx(t[I],g[I],e):px(t,g,I,A);else if(Ax(g[I])){var C;t[I]=Jw(C=g[I]).call(C)}else px(t,g,I,A);return t}function yx(t){var g=rx(t);return"object"===g?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Ax(t)?"Array":t instanceof Date?"Date":"Object":"number"===g?"Number":"boolean"===g?"Boolean":"string"===g?"String":void 0===g?"undefined":g}var mx=ad((function(t,g){t.exports=function(){var g,e;function A(){return g.apply(null,arguments)}function I(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function C(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t){return void 0===t}function n(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function o(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,g){var e,A=[];for(e=0;e<t.length;++e)A.push(g(t[e],e));return A}function s(t,g){return Object.prototype.hasOwnProperty.call(t,g)}function a(t,g){for(var e in g)s(g,e)&&(t[e]=g[e]);return s(g,"toString")&&(t.toString=g.toString),s(g,"valueOf")&&(t.valueOf=g.valueOf),t}function l(t,g,e,A){return Tg(t,g,e,A,!0).utc()}function d(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function c(t){if(null==t._isValid){var g=d(t),A=e.call(g.parsedDateParts,(function(t){return null!=t})),I=!isNaN(t._d.getTime())&&g.overflow<0&&!g.empty&&!g.invalidMonth&&!g.invalidWeekday&&!g.weekdayMismatch&&!g.nullInput&&!g.invalidFormat&&!g.userInvalidated&&(!g.meridiem||g.meridiem&&A);if(t._strict&&(I=I&&0===g.charsLeftOver&&0===g.unusedTokens.length&&void 0===g.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return I;t._isValid=I}return t._isValid}function h(t){var g=l(NaN);return null!=t?a(d(g),t):d(g).userInvalidated=!0,g}e=Array.prototype.some?Array.prototype.some:function(t){for(var g=Object(this),e=g.length>>>0,A=0;A<e;A++)if(A in g&&t.call(this,g[A],A,g))return!0;return!1};var u=A.momentProperties=[];function f(t,g){var e,A,I;if(i(g._isAMomentObject)||(t._isAMomentObject=g._isAMomentObject),i(g._i)||(t._i=g._i),i(g._f)||(t._f=g._f),i(g._l)||(t._l=g._l),i(g._strict)||(t._strict=g._strict),i(g._tzm)||(t._tzm=g._tzm),i(g._isUTC)||(t._isUTC=g._isUTC),i(g._offset)||(t._offset=g._offset),i(g._pf)||(t._pf=d(g)),i(g._locale)||(t._locale=g._locale),u.length>0)for(e=0;e<u.length;e++)i(I=g[A=u[e]])||(t[A]=I);return t}var p=!1;function v(t){f(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===p&&(p=!0,A.updateOffset(this),p=!1)}function y(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function m(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function b(t){var g=+t,e=0;return 0!==g&&isFinite(g)&&(e=m(g)),e}function w(t,g,e){var A,I=Math.min(t.length,g.length),C=Math.abs(t.length-g.length),i=0;for(A=0;A<I;A++)(e&&t[A]!==g[A]||!e&&b(t[A])!==b(g[A]))&&i++;return i+C}function x(t){!1===A.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,g){var e=!0;return a((function(){if(null!=A.deprecationHandler&&A.deprecationHandler(null,t),e){for(var I,C=[],i=0;i<arguments.length;i++){if(I="","object"==typeof arguments[i]){for(var n in I+="\n["+i+"] ",arguments[0])I+=n+": "+arguments[0][n]+", ";I=I.slice(0,-2)}else I=arguments[i];C.push(I)}x(t+"\nArguments: "+Array.prototype.slice.call(C).join("")+"\n"+(new Error).stack),e=!1}return g.apply(this,arguments)}),g)}var D,O={};function N(t,g){null!=A.deprecationHandler&&A.deprecationHandler(t,g),O[t]||(x(g),O[t]=!0)}function E(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Z(t,g){var e,A=a({},t);for(e in g)s(g,e)&&(C(t[e])&&C(g[e])?(A[e]={},a(A[e],t[e]),a(A[e],g[e])):null!=g[e]?A[e]=g[e]:delete A[e]);for(e in t)s(t,e)&&!s(g,e)&&C(t[e])&&(A[e]=a({},A[e]));return A}function M(t){null!=t&&this.set(t)}A.suppressDeprecationWarnings=!1,A.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var g,e=[];for(g in t)s(t,g)&&e.push(g);return e};var T={};function G(t,g){var e=t.toLowerCase();T[e]=T[e+"s"]=T[g]=t}function B(t){return"string"==typeof t?T[t]||T[t.toLowerCase()]:void 0}function R(t){var g,e,A={};for(e in t)s(t,e)&&(g=B(e))&&(A[g]=t[e]);return A}var S={};function F(t,g){S[t]=g}function L(t,g,e){var A=""+Math.abs(t),I=g-A.length;return(t>=0?e?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+A}var Q=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},z={};function j(t,g,e,A){var I=A;"string"==typeof A&&(I=function(){return this[A]()}),t&&(z[t]=I),g&&(z[g[0]]=function(){return L(I.apply(this,arguments),g[1],g[2])}),e&&(z[e]=function(){return this.localeData().ordinal(I.apply(this,arguments),t)})}function P(t,g){return t.isValid()?(g=V(g,t.localeData()),W[g]=W[g]||function(t){var g,e,A,I=t.match(Q);for(g=0,e=I.length;g<e;g++)z[I[g]]?I[g]=z[I[g]]:I[g]=(A=I[g]).match(/\[[\s\S]/)?A.replace(/^\[|\]$/g,""):A.replace(/\\/g,"");return function(g){var A,C="";for(A=0;A<e;A++)C+=E(I[A])?I[A].call(g,t):I[A];return C}}(g),W[g](t)):t.localeData().invalidDate()}function V(t,g){var e=5;function A(t){return g.longDateFormat(t)||t}for(Y.lastIndex=0;e>=0&&Y.test(t);)t=t.replace(Y,A),Y.lastIndex=0,e-=1;return t}var X=/\d/,U=/\d\d/,_=/\d{3}/,H=/\d{4}/,J=/[+-]?\d{6}/,K=/\d\d?/,q=/\d\d\d\d?/,$=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,gt=/\d{1,4}/,et=/[+-]?\d{1,6}/,At=/\d+/,It=/[+-]?\d+/,Ct=/Z|[+-]\d\d:?\d\d/gi,it=/Z|[+-]\d\d(?::?\d\d)?/gi,nt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ot={};function rt(t,g,e){ot[t]=E(g)?g:function(t,A){return t&&e?e:g}}function st(t,g){return s(ot,t)?ot[t](g._strict,g._locale):new RegExp(at(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,g,e,A,I){return g||e||A||I}))))}function at(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var lt={};function dt(t,g){var e,A=g;for("string"==typeof t&&(t=[t]),n(g)&&(A=function(t,e){e[g]=b(t)}),e=0;e<t.length;e++)lt[t[e]]=A}function ct(t,g){dt(t,(function(t,e,A,I){A._w=A._w||{},g(t,A._w,A,I)}))}function ht(t,g,e){null!=g&&s(lt,t)&&lt[t](g,e._a,e,t)}var ut=0,ft=1,pt=2,vt=3,yt=4,mt=5,bt=6,wt=7,xt=8;function kt(t){return Dt(t)?366:365}function Dt(t){return t%4==0&&t%100!=0||t%400==0}j("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),j(0,["YY",2],0,(function(){return this.year()%100})),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),G("year","y"),F("year",1),rt("Y",It),rt("YY",K,U),rt("YYYY",gt,H),rt("YYYYY",et,J),rt("YYYYYY",et,J),dt(["YYYYY","YYYYYY"],ut),dt("YYYY",(function(t,g){g[ut]=2===t.length?A.parseTwoDigitYear(t):b(t)})),dt("YY",(function(t,g){g[ut]=A.parseTwoDigitYear(t)})),dt("Y",(function(t,g){g[ut]=parseInt(t,10)})),A.parseTwoDigitYear=function(t){return b(t)+(b(t)>68?1900:2e3)};var Ot,Nt=Et("FullYear",!0);function Et(t,g){return function(e){return null!=e?(Mt(this,t,e),A.updateOffset(this,g),this):Zt(this,t)}}function Zt(t,g){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+g]():NaN}function Mt(t,g,e){t.isValid()&&!isNaN(e)&&("FullYear"===g&&Dt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+g](e,t.month(),Tt(e,t.month())):t._d["set"+(t._isUTC?"UTC":"")+g](e))}function Tt(t,g){if(isNaN(t)||isNaN(g))return NaN;var e,A=(g%(e=12)+e)%e;return t+=(g-A)/12,1===A?Dt(t)?29:28:31-A%7%2}Ot=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var g;for(g=0;g<this.length;++g)if(this[g]===t)return g;return-1},j("M",["MM",2],"Mo",(function(){return this.month()+1})),j("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),j("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),G("month","M"),F("month",8),rt("M",K),rt("MM",K,U),rt("MMM",(function(t,g){return g.monthsShortRegex(t)})),rt("MMMM",(function(t,g){return g.monthsRegex(t)})),dt(["M","MM"],(function(t,g){g[ft]=b(t)-1})),dt(["MMM","MMMM"],(function(t,g,e,A){var I=e._locale.monthsParse(t,A,e._strict);null!=I?g[ft]=I:d(e).invalidMonth=t}));var Gt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function St(t,g,e){var A,I,C,i=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],A=0;A<12;++A)C=l([2e3,A]),this._shortMonthsParse[A]=this.monthsShort(C,"").toLocaleLowerCase(),this._longMonthsParse[A]=this.months(C,"").toLocaleLowerCase();return e?"MMM"===g?-1!==(I=Ot.call(this._shortMonthsParse,i))?I:null:-1!==(I=Ot.call(this._longMonthsParse,i))?I:null:"MMM"===g?-1!==(I=Ot.call(this._shortMonthsParse,i))?I:-1!==(I=Ot.call(this._longMonthsParse,i))?I:null:-1!==(I=Ot.call(this._longMonthsParse,i))?I:-1!==(I=Ot.call(this._shortMonthsParse,i))?I:null}function Ft(t,g){var e;if(!t.isValid())return t;if("string"==typeof g)if(/^\d+$/.test(g))g=b(g);else if(!n(g=t.localeData().monthsParse(g)))return t;return e=Math.min(t.date(),Tt(t.year(),g)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](g,e),t}function Lt(t){return null!=t?(Ft(this,t),A.updateOffset(this,!0),this):Zt(this,"Month")}var Qt=nt,Yt=nt;function Wt(){function t(t,g){return g.length-t.length}var g,e,A=[],I=[],C=[];for(g=0;g<12;g++)e=l([2e3,g]),A.push(this.monthsShort(e,"")),I.push(this.months(e,"")),C.push(this.months(e,"")),C.push(this.monthsShort(e,""));for(A.sort(t),I.sort(t),C.sort(t),g=0;g<12;g++)A[g]=at(A[g]),I[g]=at(I[g]);for(g=0;g<24;g++)C[g]=at(C[g]);this._monthsRegex=new RegExp("^("+C.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+A.join("|")+")","i")}function zt(t,g,e,A,I,C,i){var n;return t<100&&t>=0?(n=new Date(t+400,g,e,A,I,C,i),isFinite(n.getFullYear())&&n.setFullYear(t)):n=new Date(t,g,e,A,I,C,i),n}function jt(t){var g;if(t<100&&t>=0){var e=Array.prototype.slice.call(arguments);e[0]=t+400,g=new Date(Date.UTC.apply(null,e)),isFinite(g.getUTCFullYear())&&g.setUTCFullYear(t)}else g=new Date(Date.UTC.apply(null,arguments));return g}function Pt(t,g,e){var A=7+g-e;return-(7+jt(t,0,A).getUTCDay()-g)%7+A-1}function Vt(t,g,e,A,I){var C,i,n=1+7*(g-1)+(7+e-A)%7+Pt(t,A,I);return n<=0?i=kt(C=t-1)+n:n>kt(t)?(C=t+1,i=n-kt(t)):(C=t,i=n),{year:C,dayOfYear:i}}function Xt(t,g,e){var A,I,C=Pt(t.year(),g,e),i=Math.floor((t.dayOfYear()-C-1)/7)+1;return i<1?A=i+Ut(I=t.year()-1,g,e):i>Ut(t.year(),g,e)?(A=i-Ut(t.year(),g,e),I=t.year()+1):(I=t.year(),A=i),{week:A,year:I}}function Ut(t,g,e){var A=Pt(t,g,e),I=Pt(t+1,g,e);return(kt(t)-A+I)/7}function _t(t,g){return t.slice(g,7).concat(t.slice(0,g))}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),G("week","w"),G("isoWeek","W"),F("week",5),F("isoWeek",5),rt("w",K),rt("ww",K,U),rt("W",K),rt("WW",K,U),ct(["w","ww","W","WW"],(function(t,g,e,A){g[A.substr(0,1)]=b(t)})),j("d",0,"do","day"),j("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),j("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),j("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),G("day","d"),G("weekday","e"),G("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),rt("d",K),rt("e",K),rt("E",K),rt("dd",(function(t,g){return g.weekdaysMinRegex(t)})),rt("ddd",(function(t,g){return g.weekdaysShortRegex(t)})),rt("dddd",(function(t,g){return g.weekdaysRegex(t)})),ct(["dd","ddd","dddd"],(function(t,g,e,A){var I=e._locale.weekdaysParse(t,A,e._strict);null!=I?g.d=I:d(e).invalidWeekday=t})),ct(["d","e","E"],(function(t,g,e,A){g[A]=b(t)}));var Ht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function qt(t,g,e){var A,I,C,i=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],A=0;A<7;++A)C=l([2e3,1]).day(A),this._minWeekdaysParse[A]=this.weekdaysMin(C,"").toLocaleLowerCase(),this._shortWeekdaysParse[A]=this.weekdaysShort(C,"").toLocaleLowerCase(),this._weekdaysParse[A]=this.weekdays(C,"").toLocaleLowerCase();return e?"dddd"===g?-1!==(I=Ot.call(this._weekdaysParse,i))?I:null:"ddd"===g?-1!==(I=Ot.call(this._shortWeekdaysParse,i))?I:null:-1!==(I=Ot.call(this._minWeekdaysParse,i))?I:null:"dddd"===g?-1!==(I=Ot.call(this._weekdaysParse,i))?I:-1!==(I=Ot.call(this._shortWeekdaysParse,i))?I:-1!==(I=Ot.call(this._minWeekdaysParse,i))?I:null:"ddd"===g?-1!==(I=Ot.call(this._shortWeekdaysParse,i))?I:-1!==(I=Ot.call(this._weekdaysParse,i))?I:-1!==(I=Ot.call(this._minWeekdaysParse,i))?I:null:-1!==(I=Ot.call(this._minWeekdaysParse,i))?I:-1!==(I=Ot.call(this._weekdaysParse,i))?I:-1!==(I=Ot.call(this._shortWeekdaysParse,i))?I:null}var $t=nt,tg=nt,gg=nt;function eg(){function t(t,g){return g.length-t.length}var g,e,A,I,C,i=[],n=[],o=[],r=[];for(g=0;g<7;g++)e=l([2e3,1]).day(g),A=this.weekdaysMin(e,""),I=this.weekdaysShort(e,""),C=this.weekdays(e,""),i.push(A),n.push(I),o.push(C),r.push(A),r.push(I),r.push(C);for(i.sort(t),n.sort(t),o.sort(t),r.sort(t),g=0;g<7;g++)n[g]=at(n[g]),o[g]=at(o[g]),r[g]=at(r[g]);this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ag(){return this.hours()%12||12}function Ig(t,g){j(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),g)}))}function Cg(t,g){return g._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Ag),j("k",["kk",2],0,(function(){return this.hours()||24})),j("hmm",0,0,(function(){return""+Ag.apply(this)+L(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+Ag.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),Ig("a",!0),Ig("A",!1),G("hour","h"),F("hour",13),rt("a",Cg),rt("A",Cg),rt("H",K),rt("h",K),rt("k",K),rt("HH",K,U),rt("hh",K,U),rt("kk",K,U),rt("hmm",q),rt("hmmss",$),rt("Hmm",q),rt("Hmmss",$),dt(["H","HH"],vt),dt(["k","kk"],(function(t,g,e){var A=b(t);g[vt]=24===A?0:A})),dt(["a","A"],(function(t,g,e){e._isPm=e._locale.isPM(t),e._meridiem=t})),dt(["h","hh"],(function(t,g,e){g[vt]=b(t),d(e).bigHour=!0})),dt("hmm",(function(t,g,e){var A=t.length-2;g[vt]=b(t.substr(0,A)),g[yt]=b(t.substr(A)),d(e).bigHour=!0})),dt("hmmss",(function(t,g,e){var A=t.length-4,I=t.length-2;g[vt]=b(t.substr(0,A)),g[yt]=b(t.substr(A,2)),g[mt]=b(t.substr(I)),d(e).bigHour=!0})),dt("Hmm",(function(t,g,e){var A=t.length-2;g[vt]=b(t.substr(0,A)),g[yt]=b(t.substr(A))})),dt("Hmmss",(function(t,g,e){var A=t.length-4,I=t.length-2;g[vt]=b(t.substr(0,A)),g[yt]=b(t.substr(A,2)),g[mt]=b(t.substr(I))}));var ig,ng=Et("Hours",!0),og={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Bt,monthsShort:Rt,week:{dow:0,doy:6},weekdays:Ht,weekdaysMin:Kt,weekdaysShort:Jt,meridiemParse:/[ap]\.?m?\.?/i},rg={},sg={};function ag(t){return t?t.toLowerCase().replace("_","-"):t}function lg(g){var e=null;if(!rg[g]&&t&&t.exports)try{e=ig._abbr,sd(),dg(e)}catch(t){}return rg[g]}function dg(t,g){var e;return t&&((e=i(g)?hg(t):cg(t,g))?ig=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ig._abbr}function cg(t,g){if(null!==g){var e,A=og;if(g.abbr=t,null!=rg[t])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),A=rg[t]._config;else if(null!=g.parentLocale)if(null!=rg[g.parentLocale])A=rg[g.parentLocale]._config;else{if(null==(e=lg(g.parentLocale)))return sg[g.parentLocale]||(sg[g.parentLocale]=[]),sg[g.parentLocale].push({name:t,config:g}),null;A=e._config}return rg[t]=new M(Z(A,g)),sg[t]&&sg[t].forEach((function(t){cg(t.name,t.config)})),dg(t),rg[t]}return delete rg[t],null}function hg(t){var g;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ig;if(!I(t)){if(g=lg(t))return g;t=[t]}return function(t){for(var g,e,A,I,C=0;C<t.length;){for(g=(I=ag(t[C]).split("-")).length,e=(e=ag(t[C+1]))?e.split("-"):null;g>0;){if(A=lg(I.slice(0,g).join("-")))return A;if(e&&e.length>=g&&w(I,e,!0)>=g-1)break;g--}C++}return ig}(t)}function ug(t){var g,e=t._a;return e&&-2===d(t).overflow&&(g=e[ft]<0||e[ft]>11?ft:e[pt]<1||e[pt]>Tt(e[ut],e[ft])?pt:e[vt]<0||e[vt]>24||24===e[vt]&&(0!==e[yt]||0!==e[mt]||0!==e[bt])?vt:e[yt]<0||e[yt]>59?yt:e[mt]<0||e[mt]>59?mt:e[bt]<0||e[bt]>999?bt:-1,d(t)._overflowDayOfYear&&(g<ut||g>pt)&&(g=pt),d(t)._overflowWeeks&&-1===g&&(g=wt),d(t)._overflowWeekday&&-1===g&&(g=xt),d(t).overflow=g),t}function fg(t,g,e){return null!=t?t:null!=g?g:e}function pg(t){var g,e,I,C,i,n=[];if(!t._d){for(I=function(t){var g=new Date(A.now());return t._useUTC?[g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()]:[g.getFullYear(),g.getMonth(),g.getDate()]}(t),t._w&&null==t._a[pt]&&null==t._a[ft]&&function(t){var g,e,A,I,C,i,n,o;if(null!=(g=t._w).GG||null!=g.W||null!=g.E)C=1,i=4,e=fg(g.GG,t._a[ut],Xt(Gg(),1,4).year),A=fg(g.W,1),((I=fg(g.E,1))<1||I>7)&&(o=!0);else{C=t._locale._week.dow,i=t._locale._week.doy;var r=Xt(Gg(),C,i);e=fg(g.gg,t._a[ut],r.year),A=fg(g.w,r.week),null!=g.d?((I=g.d)<0||I>6)&&(o=!0):null!=g.e?(I=g.e+C,(g.e<0||g.e>6)&&(o=!0)):I=C}A<1||A>Ut(e,C,i)?d(t)._overflowWeeks=!0:null!=o?d(t)._overflowWeekday=!0:(n=Vt(e,A,I,C,i),t._a[ut]=n.year,t._dayOfYear=n.dayOfYear)}(t),null!=t._dayOfYear&&(i=fg(t._a[ut],I[ut]),(t._dayOfYear>kt(i)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),e=jt(i,0,t._dayOfYear),t._a[ft]=e.getUTCMonth(),t._a[pt]=e.getUTCDate()),g=0;g<3&&null==t._a[g];++g)t._a[g]=n[g]=I[g];for(;g<7;g++)t._a[g]=n[g]=null==t._a[g]?2===g?1:0:t._a[g];24===t._a[vt]&&0===t._a[yt]&&0===t._a[mt]&&0===t._a[bt]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?jt:zt).apply(null,n),C=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==C&&(d(t).weekdayMismatch=!0)}}var vg=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yg=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mg=/Z|[+-]\d\d(?::?\d\d)?/,bg=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],wg=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xg=/^\/?Date\((\-?\d+)/i;function kg(t){var g,e,A,I,C,i,n=t._i,o=vg.exec(n)||yg.exec(n);if(o){for(d(t).iso=!0,g=0,e=bg.length;g<e;g++)if(bg[g][1].exec(o[1])){I=bg[g][0],A=!1!==bg[g][2];break}if(null==I)return void(t._isValid=!1);if(o[3]){for(g=0,e=wg.length;g<e;g++)if(wg[g][1].exec(o[3])){C=(o[2]||" ")+wg[g][0];break}if(null==C)return void(t._isValid=!1)}if(!A&&null!=C)return void(t._isValid=!1);if(o[4]){if(!mg.exec(o[4]))return void(t._isValid=!1);i="Z"}t._f=I+(C||"")+(i||""),Zg(t)}else t._isValid=!1}var Dg=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Og(t){var g=parseInt(t,10);return g<=49?2e3+g:g<=999?1900+g:g}var Ng={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Eg(t){var g,e,A,I,C,i,n,o=Dg.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(o){var r=(g=o[4],e=o[3],A=o[2],I=o[5],C=o[6],i=o[7],n=[Og(g),Rt.indexOf(e),parseInt(A,10),parseInt(I,10),parseInt(C,10)],i&&n.push(parseInt(i,10)),n);if(!function(t,g,e){return!t||Jt.indexOf(t)===new Date(g[0],g[1],g[2]).getDay()||(d(e).weekdayMismatch=!0,e._isValid=!1,!1)}(o[1],r,t))return;t._a=r,t._tzm=function(t,g,e){if(t)return Ng[t];if(g)return 0;var A=parseInt(e,10),I=A%100;return(A-I)/100*60+I}(o[8],o[9],o[10]),t._d=jt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),d(t).rfc2822=!0}else t._isValid=!1}function Zg(t){if(t._f!==A.ISO_8601)if(t._f!==A.RFC_2822){t._a=[],d(t).empty=!0;var g,e,I,C,i,n=""+t._i,o=n.length,r=0;for(I=V(t._f,t._locale).match(Q)||[],g=0;g<I.length;g++)C=I[g],(e=(n.match(st(C,t))||[])[0])&&((i=n.substr(0,n.indexOf(e))).length>0&&d(t).unusedInput.push(i),n=n.slice(n.indexOf(e)+e.length),r+=e.length),z[C]?(e?d(t).empty=!1:d(t).unusedTokens.push(C),ht(C,e,t)):t._strict&&!e&&d(t).unusedTokens.push(C);d(t).charsLeftOver=o-r,n.length>0&&d(t).unusedInput.push(n),t._a[vt]<=12&&!0===d(t).bigHour&&t._a[vt]>0&&(d(t).bigHour=void 0),d(t).parsedDateParts=t._a.slice(0),d(t).meridiem=t._meridiem,t._a[vt]=function(t,g,e){var A;return null==e?g:null!=t.meridiemHour?t.meridiemHour(g,e):null!=t.isPM?((A=t.isPM(e))&&g<12&&(g+=12),A||12!==g||(g=0),g):g}(t._locale,t._a[vt],t._meridiem),pg(t),ug(t)}else Eg(t);else kg(t)}function Mg(t){var g=t._i,e=t._f;return t._locale=t._locale||hg(t._l),null===g||void 0===e&&""===g?h({nullInput:!0}):("string"==typeof g&&(t._i=g=t._locale.preparse(g)),y(g)?new v(ug(g)):(o(g)?t._d=g:I(e)?function(t){var g,e,A,I,C;if(0===t._f.length)return d(t).invalidFormat=!0,void(t._d=new Date(NaN));for(I=0;I<t._f.length;I++)C=0,g=f({},t),null!=t._useUTC&&(g._useUTC=t._useUTC),g._f=t._f[I],Zg(g),c(g)&&(C+=d(g).charsLeftOver,C+=10*d(g).unusedTokens.length,d(g).score=C,(null==A||C<A)&&(A=C,e=g));a(t,e||g)}(t):e?Zg(t):function(t){var g=t._i;i(g)?t._d=new Date(A.now()):o(g)?t._d=new Date(g.valueOf()):"string"==typeof g?function(t){var g=xg.exec(t._i);null===g?(kg(t),!1===t._isValid&&(delete t._isValid,Eg(t),!1===t._isValid&&(delete t._isValid,A.createFromInputFallback(t)))):t._d=new Date(+g[1])}(t):I(g)?(t._a=r(g.slice(0),(function(t){return parseInt(t,10)})),pg(t)):C(g)?function(t){if(!t._d){var g=R(t._i);t._a=r([g.year,g.month,g.day||g.date,g.hour,g.minute,g.second,g.millisecond],(function(t){return t&&parseInt(t,10)})),pg(t)}}(t):n(g)?t._d=new Date(g):A.createFromInputFallback(t)}(t),c(t)||(t._d=null),t))}function Tg(t,g,e,A,i){var n,o={};return!0!==e&&!1!==e||(A=e,e=void 0),(C(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var g;for(g in t)if(t.hasOwnProperty(g))return!1;return!0}(t)||I(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=e,o._i=t,o._f=g,o._strict=A,(n=new v(ug(Mg(o))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function Gg(t,g,e,A){return Tg(t,g,e,A,!1)}A.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),A.ISO_8601=function(){},A.RFC_2822=function(){};var Bg=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Gg.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:h()})),Rg=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Gg.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:h()}));function Sg(t,g){var e,A;if(1===g.length&&I(g[0])&&(g=g[0]),!g.length)return Gg();for(e=g[0],A=1;A<g.length;++A)g[A].isValid()&&!g[A][t](e)||(e=g[A]);return e}var Fg=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lg(t){var g=R(t),e=g.year||0,A=g.quarter||0,I=g.month||0,C=g.week||g.isoWeek||0,i=g.day||0,n=g.hour||0,o=g.minute||0,r=g.second||0,s=g.millisecond||0;this._isValid=function(t){for(var g in t)if(-1===Ot.call(Fg,g)||null!=t[g]&&isNaN(t[g]))return!1;for(var e=!1,A=0;A<Fg.length;++A)if(t[Fg[A]]){if(e)return!1;parseFloat(t[Fg[A]])!==b(t[Fg[A]])&&(e=!0)}return!0}(g),this._milliseconds=+s+1e3*r+6e4*o+1e3*n*60*60,this._days=+i+7*C,this._months=+I+3*A+12*e,this._data={},this._locale=hg(),this._bubble()}function Qg(t){return t instanceof Lg}function Yg(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Wg(t,g){j(t,0,0,(function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+L(~~(t/60),2)+g+L(~~t%60,2)}))}Wg("Z",":"),Wg("ZZ",""),rt("Z",it),rt("ZZ",it),dt(["Z","ZZ"],(function(t,g,e){e._useUTC=!0,e._tzm=jg(it,t)}));var zg=/([\+\-]|\d\d)/gi;function jg(t,g){var e=(g||"").match(t);if(null===e)return null;var A=((e[e.length-1]||[])+"").match(zg)||["-",0,0],I=60*A[1]+b(A[2]);return 0===I?0:"+"===A[0]?I:-I}function Pg(t,g){var e,I;return g._isUTC?(e=g.clone(),I=(y(t)||o(t)?t.valueOf():Gg(t).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+I),A.updateOffset(e,!1),e):Gg(t).local()}function Vg(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Xg(){return!!this.isValid()&&this._isUTC&&0===this._offset}A.updateOffset=function(){};var Ug=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,_g=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hg(t,g){var e,A,I,C,i,o,r=t,a=null;return Qg(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:n(t)?(r={},g?r[g]=t:r.milliseconds=t):(a=Ug.exec(t))?(e="-"===a[1]?-1:1,r={y:0,d:b(a[pt])*e,h:b(a[vt])*e,m:b(a[yt])*e,s:b(a[mt])*e,ms:b(Yg(1e3*a[bt]))*e}):(a=_g.exec(t))?(e="-"===a[1]?-1:1,r={y:Jg(a[2],e),M:Jg(a[3],e),w:Jg(a[4],e),d:Jg(a[5],e),h:Jg(a[6],e),m:Jg(a[7],e),s:Jg(a[8],e)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(C=Gg(r.from),i=Gg(r.to),I=C.isValid()&&i.isValid()?(i=Pg(i,C),C.isBefore(i)?o=Kg(C,i):((o=Kg(i,C)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(r={}).ms=I.milliseconds,r.M=I.months),A=new Lg(r),Qg(t)&&s(t,"_locale")&&(A._locale=t._locale),A}function Jg(t,g){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*g}function Kg(t,g){var e={};return e.months=g.month()-t.month()+12*(g.year()-t.year()),t.clone().add(e.months,"M").isAfter(g)&&--e.months,e.milliseconds=+g-+t.clone().add(e.months,"M"),e}function qg(t,g){return function(e,A){var I;return null===A||isNaN(+A)||(N(g,"moment()."+g+"(period, number) is deprecated. Please use moment()."+g+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),I=e,e=A,A=I),$g(this,Hg(e="string"==typeof e?+e:e,A),t),this}}function $g(t,g,e,I){var C=g._milliseconds,i=Yg(g._days),n=Yg(g._months);t.isValid()&&(I=null==I||I,n&&Ft(t,Zt(t,"Month")+n*e),i&&Mt(t,"Date",Zt(t,"Date")+i*e),C&&t._d.setTime(t._d.valueOf()+C*e),I&&A.updateOffset(t,i||n))}Hg.fn=Lg.prototype,Hg.invalid=function(){return Hg(NaN)};var te=qg(1,"add"),ge=qg(-1,"subtract");function ee(t,g){var e=12*(g.year()-t.year())+(g.month()-t.month()),A=t.clone().add(e,"months");return-(e+(g-A<0?(g-A)/(A-t.clone().add(e-1,"months")):(g-A)/(t.clone().add(e+1,"months")-A)))||0}function Ae(t){var g;return void 0===t?this._locale._abbr:(null!=(g=hg(t))&&(this._locale=g),this)}A.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",A.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ie=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Ce(){return this._locale}var ie=1e3,ne=60*ie,oe=60*ne,re=3506328*oe;function se(t,g){return(t%g+g)%g}function ae(t,g,e){return t<100&&t>=0?new Date(t+400,g,e)-re:new Date(t,g,e).valueOf()}function le(t,g,e){return t<100&&t>=0?Date.UTC(t+400,g,e)-re:Date.UTC(t,g,e)}function de(t,g){j(0,[t,t.length],0,g)}function ce(t,g,e,A,I){var C;return null==t?Xt(this,A,I).year:(g>(C=Ut(t,A,I))&&(g=C),he.call(this,t,g,e,A,I))}function he(t,g,e,A,I){var C=Vt(t,g,e,A,I),i=jt(C.year,0,C.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),de("gggg","weekYear"),de("ggggg","weekYear"),de("GGGG","isoWeekYear"),de("GGGGG","isoWeekYear"),G("weekYear","gg"),G("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),rt("G",It),rt("g",It),rt("GG",K,U),rt("gg",K,U),rt("GGGG",gt,H),rt("gggg",gt,H),rt("GGGGG",et,J),rt("ggggg",et,J),ct(["gggg","ggggg","GGGG","GGGGG"],(function(t,g,e,A){g[A.substr(0,2)]=b(t)})),ct(["gg","GG"],(function(t,g,e,I){g[I]=A.parseTwoDigitYear(t)})),j("Q",0,"Qo","quarter"),G("quarter","Q"),F("quarter",7),rt("Q",X),dt("Q",(function(t,g){g[ft]=3*(b(t)-1)})),j("D",["DD",2],"Do","date"),G("date","D"),F("date",9),rt("D",K),rt("DD",K,U),rt("Do",(function(t,g){return t?g._dayOfMonthOrdinalParse||g._ordinalParse:g._dayOfMonthOrdinalParseLenient})),dt(["D","DD"],pt),dt("Do",(function(t,g){g[pt]=b(t.match(K)[0])}));var ue=Et("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),G("dayOfYear","DDD"),F("dayOfYear",4),rt("DDD",tt),rt("DDDD",_),dt(["DDD","DDDD"],(function(t,g,e){e._dayOfYear=b(t)})),j("m",["mm",2],0,"minute"),G("minute","m"),F("minute",14),rt("m",K),rt("mm",K,U),dt(["m","mm"],yt);var fe=Et("Minutes",!1);j("s",["ss",2],0,"second"),G("second","s"),F("second",15),rt("s",K),rt("ss",K,U),dt(["s","ss"],mt);var pe,ve=Et("Seconds",!1);for(j("S",0,0,(function(){return~~(this.millisecond()/100)})),j(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),j(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),j(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),j(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),j(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),j(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),G("millisecond","ms"),F("millisecond",16),rt("S",tt,X),rt("SS",tt,U),rt("SSS",tt,_),pe="SSSS";pe.length<=9;pe+="S")rt(pe,At);function ye(t,g){g[bt]=b(1e3*("0."+t))}for(pe="S";pe.length<=9;pe+="S")dt(pe,ye);var me=Et("Milliseconds",!1);j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var be=v.prototype;function we(t){return t}be.add=te,be.calendar=function(t,g){var e=t||Gg(),I=Pg(e,this).startOf("day"),C=A.calendarFormat(this,I)||"sameElse",i=g&&(E(g[C])?g[C].call(this,e):g[C]);return this.format(i||this.localeData().calendar(C,this,Gg(e)))},be.clone=function(){return new v(this)},be.diff=function(t,g,e){var A,I,C;if(!this.isValid())return NaN;if(!(A=Pg(t,this)).isValid())return NaN;switch(I=6e4*(A.utcOffset()-this.utcOffset()),g=B(g)){case"year":C=ee(this,A)/12;break;case"month":C=ee(this,A);break;case"quarter":C=ee(this,A)/3;break;case"second":C=(this-A)/1e3;break;case"minute":C=(this-A)/6e4;break;case"hour":C=(this-A)/36e5;break;case"day":C=(this-A-I)/864e5;break;case"week":C=(this-A-I)/6048e5;break;default:C=this-A}return e?C:m(C)},be.endOf=function(t){var g;if(void 0===(t=B(t))||"millisecond"===t||!this.isValid())return this;var e=this._isUTC?le:ae;switch(t){case"year":g=e(this.year()+1,0,1)-1;break;case"quarter":g=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":g=e(this.year(),this.month()+1,1)-1;break;case"week":g=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":g=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":g=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":g=this._d.valueOf(),g+=oe-se(g+(this._isUTC?0:this.utcOffset()*ne),oe)-1;break;case"minute":g=this._d.valueOf(),g+=ne-se(g,ne)-1;break;case"second":g=this._d.valueOf(),g+=ie-se(g,ie)-1}return this._d.setTime(g),A.updateOffset(this,!0),this},be.format=function(t){t||(t=this.isUtc()?A.defaultFormatUtc:A.defaultFormat);var g=P(this,t);return this.localeData().postformat(g)},be.from=function(t,g){return this.isValid()&&(y(t)&&t.isValid()||Gg(t).isValid())?Hg({to:this,from:t}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()},be.fromNow=function(t){return this.from(Gg(),t)},be.to=function(t,g){return this.isValid()&&(y(t)&&t.isValid()||Gg(t).isValid())?Hg({from:this,to:t}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()},be.toNow=function(t){return this.to(Gg(),t)},be.get=function(t){return E(this[t=B(t)])?this[t]():this},be.invalidAt=function(){return d(this).overflow},be.isAfter=function(t,g){var e=y(t)?t:Gg(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(g=B(g)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(g).valueOf())},be.isBefore=function(t,g){var e=y(t)?t:Gg(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(g=B(g)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(g).valueOf()<e.valueOf())},be.isBetween=function(t,g,e,A){var I=y(t)?t:Gg(t),C=y(g)?g:Gg(g);return!!(this.isValid()&&I.isValid()&&C.isValid())&&("("===(A=A||"()")[0]?this.isAfter(I,e):!this.isBefore(I,e))&&(")"===A[1]?this.isBefore(C,e):!this.isAfter(C,e))},be.isSame=function(t,g){var e,A=y(t)?t:Gg(t);return!(!this.isValid()||!A.isValid())&&("millisecond"===(g=B(g)||"millisecond")?this.valueOf()===A.valueOf():(e=A.valueOf(),this.clone().startOf(g).valueOf()<=e&&e<=this.clone().endOf(g).valueOf()))},be.isSameOrAfter=function(t,g){return this.isSame(t,g)||this.isAfter(t,g)},be.isSameOrBefore=function(t,g){return this.isSame(t,g)||this.isBefore(t,g)},be.isValid=function(){return c(this)},be.lang=Ie,be.locale=Ae,be.localeData=Ce,be.max=Rg,be.min=Bg,be.parsingFlags=function(){return a({},d(this))},be.set=function(t,g){if("object"==typeof t)for(var e=function(t){var g=[];for(var e in t)g.push({unit:e,priority:S[e]});return g.sort((function(t,g){return t.priority-g.priority})),g}(t=R(t)),A=0;A<e.length;A++)this[e[A].unit](t[e[A].unit]);else if(E(this[t=B(t)]))return this[t](g);return this},be.startOf=function(t){var g;if(void 0===(t=B(t))||"millisecond"===t||!this.isValid())return this;var e=this._isUTC?le:ae;switch(t){case"year":g=e(this.year(),0,1);break;case"quarter":g=e(this.year(),this.month()-this.month()%3,1);break;case"month":g=e(this.year(),this.month(),1);break;case"week":g=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":g=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":g=e(this.year(),this.month(),this.date());break;case"hour":g=this._d.valueOf(),g-=se(g+(this._isUTC?0:this.utcOffset()*ne),oe);break;case"minute":g=this._d.valueOf(),g-=se(g,ne);break;case"second":g=this._d.valueOf(),g-=se(g,ie)}return this._d.setTime(g),A.updateOffset(this,!0),this},be.subtract=ge,be.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},be.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},be.toDate=function(){return new Date(this.valueOf())},be.toISOString=function(t){if(!this.isValid())return null;var g=!0!==t,e=g?this.clone().utc():this;return e.year()<0||e.year()>9999?P(e,g?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?g?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(e,"Z")):P(e,g?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},be.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",g="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",g="Z");var e="["+t+'("]',A=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I=g+'[")]';return this.format(e+A+"-MM-DD[T]HH:mm:ss.SSS"+I)},be.toJSON=function(){return this.isValid()?this.toISOString():null},be.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},be.unix=function(){return Math.floor(this.valueOf()/1e3)},be.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},be.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},be.year=Nt,be.isLeapYear=function(){return Dt(this.year())},be.weekYear=function(t){return ce.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},be.isoWeekYear=function(t){return ce.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},be.quarter=be.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},be.month=Lt,be.daysInMonth=function(){return Tt(this.year(),this.month())},be.week=be.weeks=function(t){var g=this.localeData().week(this);return null==t?g:this.add(7*(t-g),"d")},be.isoWeek=be.isoWeeks=function(t){var g=Xt(this,1,4).week;return null==t?g:this.add(7*(t-g),"d")},be.weeksInYear=function(){var t=this.localeData()._week;return Ut(this.year(),t.dow,t.doy)},be.isoWeeksInYear=function(){return Ut(this.year(),1,4)},be.date=ue,be.day=be.days=function(t){if(!this.isValid())return null!=t?this:NaN;var g=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,g){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=g.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-g,"d")):g},be.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var g=(this.day()+7-this.localeData()._week.dow)%7;return null==t?g:this.add(t-g,"d")},be.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var g=function(t,g){return"string"==typeof t?g.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?g:g-7)}return this.day()||7},be.dayOfYear=function(t){var g=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?g:this.add(t-g,"d")},be.hour=be.hours=ng,be.minute=be.minutes=fe,be.second=be.seconds=ve,be.millisecond=be.milliseconds=me,be.utcOffset=function(t,g,e){var I,C=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=jg(it,t)))return this}else Math.abs(t)<16&&!e&&(t*=60);return!this._isUTC&&g&&(I=Vg(this)),this._offset=t,this._isUTC=!0,null!=I&&this.add(I,"m"),C!==t&&(!g||this._changeInProgress?$g(this,Hg(t-C,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,A.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?C:Vg(this)},be.utc=function(t){return this.utcOffset(0,t)},be.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Vg(this),"m")),this},be.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=jg(Ct,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},be.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Gg(t).utcOffset():0,(this.utcOffset()-t)%60==0)},be.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},be.isLocal=function(){return!!this.isValid()&&!this._isUTC},be.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},be.isUtc=Xg,be.isUTC=Xg,be.zoneAbbr=function(){return this._isUTC?"UTC":""},be.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},be.dates=k("dates accessor is deprecated. Use date instead.",ue),be.months=k("months accessor is deprecated. Use month instead",Lt),be.years=k("years accessor is deprecated. Use year instead",Nt),be.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,g){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,g),this):-this.utcOffset()})),be.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var t={};if(f(t,this),(t=Mg(t))._a){var g=t._isUTC?l(t._a):Gg(t._a);this._isDSTShifted=this.isValid()&&w(t._a,g.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var xe=M.prototype;function ke(t,g,e,A){var I=hg(),C=l().set(A,g);return I[e](C,t)}function De(t,g,e){if(n(t)&&(g=t,t=void 0),t=t||"",null!=g)return ke(t,g,e,"month");var A,I=[];for(A=0;A<12;A++)I[A]=ke(t,A,e,"month");return I}function Oe(t,g,e,A){"boolean"==typeof t?(n(g)&&(e=g,g=void 0),g=g||""):(e=g=t,t=!1,n(g)&&(e=g,g=void 0),g=g||"");var I,C=hg(),i=t?C._week.dow:0;if(null!=e)return ke(g,(e+i)%7,A,"day");var o=[];for(I=0;I<7;I++)o[I]=ke(g,(I+i)%7,A,"day");return o}xe.calendar=function(t,g,e){var A=this._calendar[t]||this._calendar.sameElse;return E(A)?A.call(g,e):A},xe.longDateFormat=function(t){var g=this._longDateFormat[t],e=this._longDateFormat[t.toUpperCase()];return g||!e?g:(this._longDateFormat[t]=e.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},xe.invalidDate=function(){return this._invalidDate},xe.ordinal=function(t){return this._ordinal.replace("%d",t)},xe.preparse=we,xe.postformat=we,xe.relativeTime=function(t,g,e,A){var I=this._relativeTime[e];return E(I)?I(t,g,e,A):I.replace(/%d/i,t)},xe.pastFuture=function(t,g){var e=this._relativeTime[t>0?"future":"past"];return E(e)?e(g):e.replace(/%s/i,g)},xe.set=function(t){var g,e;for(e in t)E(g=t[e])?this[e]=g:this["_"+e]=g;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},xe.months=function(t,g){return t?I(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Gt).test(g)?"format":"standalone"][t.month()]:I(this._months)?this._months:this._months.standalone},xe.monthsShort=function(t,g){return t?I(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Gt.test(g)?"format":"standalone"][t.month()]:I(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},xe.monthsParse=function(t,g,e){var A,I,C;if(this._monthsParseExact)return St.call(this,t,g,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),A=0;A<12;A++){if(I=l([2e3,A]),e&&!this._longMonthsParse[A]&&(this._longMonthsParse[A]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[A]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),e||this._monthsParse[A]||(C="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[A]=new RegExp(C.replace(".",""),"i")),e&&"MMMM"===g&&this._longMonthsParse[A].test(t))return A;if(e&&"MMM"===g&&this._shortMonthsParse[A].test(t))return A;if(!e&&this._monthsParse[A].test(t))return A}},xe.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Wt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Yt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},xe.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Wt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Qt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},xe.week=function(t){return Xt(t,this._week.dow,this._week.doy).week},xe.firstDayOfYear=function(){return this._week.doy},xe.firstDayOfWeek=function(){return this._week.dow},xe.weekdays=function(t,g){var e=I(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(g)?"format":"standalone"];return!0===t?_t(e,this._week.dow):t?e[t.day()]:e},xe.weekdaysMin=function(t){return!0===t?_t(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},xe.weekdaysShort=function(t){return!0===t?_t(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},xe.weekdaysParse=function(t,g,e){var A,I,C;if(this._weekdaysParseExact)return qt.call(this,t,g,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),A=0;A<7;A++){if(I=l([2e3,1]).day(A),e&&!this._fullWeekdaysParse[A]&&(this._fullWeekdaysParse[A]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[A]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[A]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[A]||(C="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[A]=new RegExp(C.replace(".",""),"i")),e&&"dddd"===g&&this._fullWeekdaysParse[A].test(t))return A;if(e&&"ddd"===g&&this._shortWeekdaysParse[A].test(t))return A;if(e&&"dd"===g&&this._minWeekdaysParse[A].test(t))return A;if(!e&&this._weekdaysParse[A].test(t))return A}},xe.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||eg.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=$t),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},xe.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||eg.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tg),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},xe.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||eg.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=gg),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},xe.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},xe.meridiem=function(t,g,e){return t>11?e?"pm":"PM":e?"am":"AM"},dg("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var g=t%10;return t+(1===b(t%100/10)?"th":1===g?"st":2===g?"nd":3===g?"rd":"th")}}),A.lang=k("moment.lang is deprecated. Use moment.locale instead.",dg),A.langData=k("moment.langData is deprecated. Use moment.localeData instead.",hg);var Ne=Math.abs;function Ee(t,g,e,A){var I=Hg(g,e);return t._milliseconds+=A*I._milliseconds,t._days+=A*I._days,t._months+=A*I._months,t._bubble()}function Ze(t){return t<0?Math.floor(t):Math.ceil(t)}function Me(t){return 4800*t/146097}function Te(t){return 146097*t/4800}function Ge(t){return function(){return this.as(t)}}var Be=Ge("ms"),Re=Ge("s"),Se=Ge("m"),Fe=Ge("h"),Le=Ge("d"),Qe=Ge("w"),Ye=Ge("M"),We=Ge("Q"),ze=Ge("y");function je(t){return function(){return this.isValid()?this._data[t]:NaN}}var Pe=je("milliseconds"),Ve=je("seconds"),Xe=je("minutes"),Ue=je("hours"),_e=je("days"),He=je("months"),Je=je("years"),Ke=Math.round,qe={ss:44,s:45,m:45,h:22,d:26,M:11};function $e(t,g,e,A,I){return I.relativeTime(g||1,!!e,t,A)}var tA=Math.abs;function gA(t){return(t>0)-(t<0)||+t}function eA(){if(!this.isValid())return this.localeData().invalidDate();var t,g,e=tA(this._milliseconds)/1e3,A=tA(this._days),I=tA(this._months);t=m(e/60),g=m(t/60),e%=60,t%=60;var C=m(I/12),i=I%=12,n=A,o=g,r=t,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",a=this.asSeconds();if(!a)return"P0D";var l=a<0?"-":"",d=gA(this._months)!==gA(a)?"-":"",c=gA(this._days)!==gA(a)?"-":"",h=gA(this._milliseconds)!==gA(a)?"-":"";return l+"P"+(C?d+C+"Y":"")+(i?d+i+"M":"")+(n?c+n+"D":"")+(o||r||s?"T":"")+(o?h+o+"H":"")+(r?h+r+"M":"")+(s?h+s+"S":"")}var AA=Lg.prototype;return AA.isValid=function(){return this._isValid},AA.abs=function(){var t=this._data;return this._milliseconds=Ne(this._milliseconds),this._days=Ne(this._days),this._months=Ne(this._months),t.milliseconds=Ne(t.milliseconds),t.seconds=Ne(t.seconds),t.minutes=Ne(t.minutes),t.hours=Ne(t.hours),t.months=Ne(t.months),t.years=Ne(t.years),this},AA.add=function(t,g){return Ee(this,t,g,1)},AA.subtract=function(t,g){return Ee(this,t,g,-1)},AA.as=function(t){if(!this.isValid())return NaN;var g,e,A=this._milliseconds;if("month"===(t=B(t))||"quarter"===t||"year"===t)switch(g=this._days+A/864e5,e=this._months+Me(g),t){case"month":return e;case"quarter":return e/3;case"year":return e/12}else switch(g=this._days+Math.round(Te(this._months)),t){case"week":return g/7+A/6048e5;case"day":return g+A/864e5;case"hour":return 24*g+A/36e5;case"minute":return 1440*g+A/6e4;case"second":return 86400*g+A/1e3;case"millisecond":return Math.floor(864e5*g)+A;default:throw new Error("Unknown unit "+t)}},AA.asMilliseconds=Be,AA.asSeconds=Re,AA.asMinutes=Se,AA.asHours=Fe,AA.asDays=Le,AA.asWeeks=Qe,AA.asMonths=Ye,AA.asQuarters=We,AA.asYears=ze,AA.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},AA._bubble=function(){var t,g,e,A,I,C=this._milliseconds,i=this._days,n=this._months,o=this._data;return C>=0&&i>=0&&n>=0||C<=0&&i<=0&&n<=0||(C+=864e5*Ze(Te(n)+i),i=0,n=0),o.milliseconds=C%1e3,t=m(C/1e3),o.seconds=t%60,g=m(t/60),o.minutes=g%60,e=m(g/60),o.hours=e%24,i+=m(e/24),I=m(Me(i)),n+=I,i-=Ze(Te(I)),A=m(n/12),n%=12,o.days=i,o.months=n,o.years=A,this},AA.clone=function(){return Hg(this)},AA.get=function(t){return t=B(t),this.isValid()?this[t+"s"]():NaN},AA.milliseconds=Pe,AA.seconds=Ve,AA.minutes=Xe,AA.hours=Ue,AA.days=_e,AA.weeks=function(){return m(this.days()/7)},AA.months=He,AA.years=Je,AA.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var g=this.localeData(),e=function(t,g,e){var A=Hg(t).abs(),I=Ke(A.as("s")),C=Ke(A.as("m")),i=Ke(A.as("h")),n=Ke(A.as("d")),o=Ke(A.as("M")),r=Ke(A.as("y")),s=I<=qe.ss&&["s",I]||I<qe.s&&["ss",I]||C<=1&&["m"]||C<qe.m&&["mm",C]||i<=1&&["h"]||i<qe.h&&["hh",i]||n<=1&&["d"]||n<qe.d&&["dd",n]||o<=1&&["M"]||o<qe.M&&["MM",o]||r<=1&&["y"]||["yy",r];return s[2]=g,s[3]=+t>0,s[4]=e,$e.apply(null,s)}(this,!t,g);return t&&(e=g.pastFuture(+this,e)),g.postformat(e)},AA.toISOString=eA,AA.toString=eA,AA.toJSON=eA,AA.locale=Ae,AA.localeData=Ce,AA.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",eA),AA.lang=Ie,j("X",0,0,"unix"),j("x",0,0,"valueOf"),rt("x",It),rt("X",/[+-]?\d+(\.\d{1,3})?/),dt("X",(function(t,g,e){e._d=new Date(1e3*parseFloat(t,10))})),dt("x",(function(t,g,e){e._d=new Date(b(t))})),A.version="2.24.0",g=Gg,A.fn=be,A.min=function(){return Sg("isBefore",[].slice.call(arguments,0))},A.max=function(){return Sg("isAfter",[].slice.call(arguments,0))},A.now=function(){return Date.now?Date.now():+new Date},A.utc=l,A.unix=function(t){return Gg(1e3*t)},A.months=function(t,g){return De(t,g,"months")},A.isDate=o,A.locale=dg,A.invalid=h,A.duration=Hg,A.isMoment=y,A.weekdays=function(t,g,e){return Oe(t,g,e,"weekdays")},A.parseZone=function(){return Gg.apply(null,arguments).parseZone()},A.localeData=hg,A.isDuration=Qg,A.monthsShort=function(t,g){return De(t,g,"monthsShort")},A.weekdaysMin=function(t,g,e){return Oe(t,g,e,"weekdaysMin")},A.defineLocale=cg,A.updateLocale=function(t,g){if(null!=g){var e,A,I=og;null!=(A=lg(t))&&(I=A._config),g=Z(I,g),(e=new M(g)).parentLocale=rg[t],rg[t]=e,dg(t)}else null!=rg[t]&&(null!=rg[t].parentLocale?rg[t]=rg[t].parentLocale:null!=rg[t]&&delete rg[t]);return rg[t]},A.locales=function(){return D(rg)},A.weekdaysShort=function(t,g,e){return Oe(t,g,e,"weekdaysShort")},A.normalizeUnits=B,A.relativeTimeRounding=function(t){return void 0===t?Ke:"function"==typeof t&&(Ke=t,!0)},A.relativeTimeThreshold=function(t,g){return void 0!==qe[t]&&(void 0===g?qe[t]:(qe[t]=g,"s"===t&&(qe.ss=g-1),!0))},A.calendarFormat=function(t,g){var e=t.diff(g,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},A.prototype=be,A.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},A}()})),bx=/^\/?Date\((-?\d+)/i;function wx(t){return mx.isMoment(t)}function xx(t,g){var e;if(void 0!==t){if(null===t)return null;if(!g)return t;if("string"!=typeof g&&!(g instanceof String))throw new Error("Type must be a string");switch(g){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return fx(t)&&!isNaN(Date.parse(t))?mx(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(ux(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(wx(t))return new Date(t.valueOf());if(fx(t))return(e=bx.exec(t))?new Date(Number(e[1])):mx(new Date(t)).toDate();throw new Error("Cannot convert object of type "+yx(t)+" to type Date");case"Moment":if(ux(t))return mx(t);if(t instanceof Date)return mx(t.valueOf());if(wx(t))return mx(t);if(fx(t))return e=bx.exec(t),mx(e?Number(e[1]):t);throw new Error("Cannot convert object of type "+yx(t)+" to type Date");case"ISODate":if(ux(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(wx(t))return t.toDate().toISOString();if(fx(t))return(e=bx.exec(t))?new Date(Number(e[1])).toISOString():mx(t).format();throw new Error("Cannot convert object of type "+yx(t)+" to type ISODate");case"ASPDate":if(ux(t))return"/Date("+t+")/";if(t instanceof Date||wx(t))return"/Date("+t.valueOf()+")/";if(fx(t))return"/Date("+((e=bx.exec(t))?new Date(Number(e[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+yx(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(g))}}}function kx(t){return"string"==typeof t||"number"==typeof t}var Dx=pp("splice"),Ox=Jh("splice",{ACCESSORS:!0,0:0,1:2}),Nx=Math.max,Ex=Math.min;qd({target:"Array",proto:!0,forced:!Dx||!Ox},{splice:function(t,g){var e,A,I,C,i,n,o=Kc(this),r=Cc(o.length),s=oc(t,r),a=arguments.length;if(0===a?e=A=0:1===a?(e=0,A=r-s):(e=a-2,A=Ex(Nx(Ac(g),0),r-s)),r+e-A>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(I=jh(o,A),C=0;C<A;C++)(i=s+C)in o&&xc(I,C,o[i]);if(I.length=A,e<A){for(C=s;C<r-A;C++)n=C+e,(i=C+A)in o?o[n]=o[i]:delete o[n];for(C=r;C>r-A+e;C--)delete o[C-1]}else if(e>A)for(C=r-A;C>s;C--)n=C+e-1,(i=C+A-1)in o?o[n]=o[i]:delete o[n];for(C=0;C<e;C++)o[C+s]=arguments[C+2];return o.length=r-A+e,I}});var Zx=gu("Array").splice,Mx=Array.prototype,Tx=function(t){var g=t.splice;return t===Mx||t instanceof Array&&g===Mx.splice?Zx:g},Gx=[].slice,Bx=/MSIE .\./.test(lp),Rx=function(t){return function(g,e){var A=arguments.length>2,I=A?Gx.call(arguments,2):void 0;return t(A?function(){("function"==typeof g?g:Function(g)).apply(this,I)}:g,e)}};qd({global:!0,bind:!0,forced:Bx},{setTimeout:Rx(dd.setTimeout),setInterval:Rx(dd.setInterval)});var Sx=jd.setTimeout,Fx=function(){function t(g){pv(this,t),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(g)}return yv(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,g=this._extended.methods,e=0;e<g.length;e++){var A=g[e];A.original?t[A.name]=A.original:delete t[A.name]}this._extended=null}}},{key:"replace",value:function(t,g){var e=this,A=t[g];if(!A)throw new Error("Method "+g+" undefined");t[g]=function(){for(var t=arguments.length,g=new Array(t),I=0;I<t;I++)g[I]=arguments[I];e.queue({args:g,fn:A,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Sx((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,g;Cu(t=Tx(g=this._queue).call(g,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(g,e){var A=new t(e);if(void 0!==g.flush)throw new Error("Target object already has a property flush");g.flush=function(){A.flush()};var I=[{name:"flush",original:void 0}];if(e&&e.replace)for(var C=0;C<e.replace.length;C++){var i=e.replace[C];I.push({name:i,original:g[i]}),A.replace(g,i)}return A._extended={object:g,methods:I},A}}]),t}(),Lx=function(){function t(){pv(this,t),this._subscribers={"*":[],add:[],remove:[],update:[]},this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return yv(t,[{key:"_trigger",value:function(t,g,e){var A,I;if("*"===t)throw new Error("Cannot trigger event *");Cu(A=Mp(I=[]).call(I,ap(this._subscribers[t]),ap(this._subscribers["*"]))).call(A,(function(A){A(t,g,null!=e?e:null)}))}},{key:"on",value:function(t,g){"function"==typeof g&&this._subscribers[t].push(g)}},{key:"off",value:function(t,g){var e;this._subscribers[t]=xp(e=this._subscribers[t]).call(e,(function(t){return t!==g}))}}]),t}(),Qx=(ov("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),hv),jd.Set),Yx=Nv;var Wx=function(t){if(Uf(t))return t};var zx=function(t,g){if(ip(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var e=[],A=!0,I=!1,C=void 0;try{for(var i,n=Df(t);!(A=(i=n.next()).done)&&(e.push(i.value),!g||e.length!==g);A=!0);}catch(t){I=!0,C=t}finally{try{A||null==n.return||n.return()}finally{if(I)throw C}}return e}};var jx=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var Px=function(t,g){return Wx(t)||zx(t,g)||jx()},Vx=function(){function t(g){pv(this,t),this._pairs=g}return yv(t,[{key:sf,value:Af.mark((function t(){var g,e,A,I,C,i,n,o;return Af.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:g=!0,e=!1,A=void 0,t.prev=3,I=Df(this._pairs);case 5:if(g=(C=I.next()).done){t.next=12;break}return i=Px(C.value,2),n=i[0],o=i[1],t.next=9,[n,o];case 9:g=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),e=!0,A=t.t0;case 18:t.prev=18,t.prev=19,g||null==I.return||I.return();case 21:if(t.prev=21,!e){t.next=24;break}throw A;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"entries",value:Af.mark((function t(){var g,e,A,I,C,i,n,o;return Af.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:g=!0,e=!1,A=void 0,t.prev=3,I=Df(this._pairs);case 5:if(g=(C=I.next()).done){t.next=12;break}return i=Px(C.value,2),n=i[0],o=i[1],t.next=9,[n,o];case 9:g=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),e=!0,A=t.t0;case 18:t.prev=18,t.prev=19,g||null==I.return||I.return();case 21:if(t.prev=21,!e){t.next=24;break}throw A;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"keys",value:Af.mark((function t(){var g,e,A,I,C,i,n;return Af.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:g=!0,e=!1,A=void 0,t.prev=3,I=Df(this._pairs);case 5:if(g=(C=I.next()).done){t.next=12;break}return i=Px(C.value,1),n=i[0],t.next=9,n;case 9:g=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),e=!0,A=t.t0;case 18:t.prev=18,t.prev=19,g||null==I.return||I.return();case 21:if(t.prev=21,!e){t.next=24;break}throw A;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"values",value:Af.mark((function t(){var g,e,A,I,C,i,n;return Af.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:g=!0,e=!1,A=void 0,t.prev=3,I=Df(this._pairs);case 5:if(g=(C=I.next()).done){t.next=12;break}return i=Px(C.value,2),n=i[1],t.next=9,n;case 9:g=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),e=!0,A=t.t0;case 18:t.prev=18,t.prev=19,g||null==I.return||I.return();case 21:if(t.prev=21,!e){t.next=24;break}throw A;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"toIdArray",value:function(){var t;return Up(t=ap(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return Up(t=ap(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return ap(this._pairs)}},{key:"toObjectMap",value:function(){var t=Yx(null),g=!0,e=!1,A=void 0;try{for(var I,C=Df(this._pairs);!(g=(I=C.next()).done);g=!0){var i=Px(I.value,2),n=i[0],o=i[1];t[n]=o}}catch(t){e=!0,A=t}finally{try{g||null==C.return||C.return()}finally{if(e)throw A}}return t}},{key:"toMap",value:function(){return new uv(this._pairs)}},{key:"toIdSet",value:function(){return new Qx(this.toIdArray())}},{key:"toItemSet",value:function(){return new Qx(this.toItemArray())}},{key:"cache",value:function(){return new t(ap(this._pairs))}},{key:"distinct",value:function(t){var g=new Qx,e=!0,A=!1,I=void 0;try{for(var C,i=Df(this._pairs);!(e=(C=i.next()).done);e=!0){var n=Px(C.value,2),o=n[0],r=n[1];g.add(t(r,o))}}catch(t){A=!0,I=t}finally{try{e||null==i.return||i.return()}finally{if(A)throw I}}return g}},{key:"filter",value:function(g){var e=this._pairs;return new t(vf({},sf,Af.mark((function t(){var A,I,C,i,n,o,r,s;return Af.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:A=!0,I=!1,C=void 0,t.prev=3,i=Df(e);case 5:if(A=(n=i.next()).done){t.next=13;break}if(o=Px(n.value,2),r=o[0],s=o[1],!g(s,r)){t.next=10;break}return t.next=10,[r,s];case 10:A=!0,t.next=5;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),I=!0,C=t.t0;case 19:t.prev=19,t.prev=20,A||null==i.return||i.return();case 22:if(t.prev=22,!I){t.next=25;break}throw C;case 25:return t.finish(22);case 26:return t.finish(19);case 27:case"end":return t.stop()}}),t,null,[[3,15,19,27],[20,,22,26]])}))))}},{key:"forEach",value:function(t){var g=!0,e=!1,A=void 0;try{for(var I,C=Df(this._pairs);!(g=(I=C.next()).done);g=!0){var i=Px(I.value,2),n=i[0];t(i[1],n)}}catch(t){e=!0,A=t}finally{try{g||null==C.return||C.return()}finally{if(e)throw A}}}},{key:"map",value:function(g){var e=this._pairs;return new t(vf({},sf,Af.mark((function t(){var A,I,C,i,n,o,r,s;return Af.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:A=!0,I=!1,C=void 0,t.prev=3,i=Df(e);case 5:if(A=(n=i.next()).done){t.next=12;break}return o=Px(n.value,2),r=o[0],s=o[1],t.next=9,[r,g(s,r)];case 9:A=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),I=!0,C=t.t0;case 18:t.prev=18,t.prev=19,A||null==i.return||i.return();case 21:if(t.prev=21,!I){t.next=24;break}throw C;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,null,[[3,14,18,26],[19,,21,25]])}))))}},{key:"max",value:function(t){var g=Df(this._pairs),e=g.next();if(e.done)return null;for(var A=e.value[1],I=t(e.value[1],e.value[0]);!(e=g.next()).done;){var C=Px(e.value,2),i=C[0],n=C[1],o=t(n,i);o>I&&(I=o,A=n)}return A}},{key:"min",value:function(t){var g=Df(this._pairs),e=g.next();if(e.done)return null;for(var A=e.value[1],I=t(e.value[1],e.value[0]);!(e=g.next()).done;){var C=Px(e.value,2),i=C[0],n=C[1],o=t(n,i);o<I&&(I=o,A=n)}return A}},{key:"reduce",value:function(t,g){var e=!0,A=!1,I=void 0;try{for(var C,i=Df(this._pairs);!(e=(C=i.next()).done);e=!0){var n=Px(C.value,2),o=n[0];g=t(g,n[1],o)}}catch(t){A=!0,I=t}finally{try{e||null==i.return||i.return()}finally{if(A)throw I}}return g}},{key:"sort",value:function(g){var e=this;return new t(vf({},sf,(function(){var t;return Df(Bf(t=ap(e._pairs)).call(t,(function(t,e){var A=Px(t,2),I=A[0],C=A[1],i=Px(e,2),n=i[0],o=i[1];return g(C,o,I,n)})))})))}}]),t}();function Xx(t,g){var e=$p(t);if(Vu){var A=Vu(t);g&&(A=xp(A).call(A,(function(g){return ou(t,g).enumerable}))),e.push.apply(e,A)}return e}var Ux=function(){console.warn("Type coercion has been deprecated. Please, use data pipes instead. See https://visjs.github.io/vis-data/data/datapipe.html#TypeCoercion for more details with working migration example."),console.trace()},_x=function(t){function g(t,e){var A;if(pv(this,g),A=bv(this,Dv(g).call(this)),t&&!fv(t)&&(e=t,t=[]),A._options=e||{},A._data=new uv,A.length=0,A._idProp=A._options.fieldId||"id",A._type={},A._options.type){Ux();for(var I=$p(A._options.type),C=0,i=I.length;C<i;C++){var n=I[C],o=A._options.type[n];A._type[n]="Date"==o||"ISODate"==o||"ASPDate"==o?"Date":o}}return t&&t.length&&A.add(t),A.setOptions(e),A}return Mv(g,t),yv(g,[{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),delete this._queue):(this._queue||(this._queue=Fx.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===Kp(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,g){var e,A=this,I=[];if(fv(t)){var C=Up(t).call(t,(function(t){return t[A._idProp]}));if(Wp(C).call(C,(function(t){return A._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var i=0,n=t.length;i<n;i++)e=this._addItem(t[i]),I.push(e)}else{if(!t||"object"!==Kp(t))throw new Error("Unknown dataType");e=this._addItem(t),I.push(e)}return I.length&&this._trigger("add",{items:I},g),I}},{key:"update",value:function(t,g){var e=this,A=[],I=[],C=[],i=[],n=this._idProp,o=function(t){var g=t[n];if(null!=g&&e._data.has(g)){var o=t,r=Rp({},e._data.get(g)),s=e._updateItem(o);I.push(s),i.push(o),C.push(r)}else{var a=e._addItem(t);A.push(a)}};if(fv(t))for(var r=0,s=t.length;r<s;r++)t[r]&&"object"===Kp(t[r])?o(t[r]):console.warn("Ignoring input item, which is not an object at index "+r);else{if(!t||"object"!==Kp(t))throw new Error("Unknown dataType");o(t)}if(A.length&&this._trigger("add",{items:A},g),I.length){var a={items:I,oldData:C,data:i};this._trigger("update",a,g)}return Mp(A).call(A,I)}},{key:"updateOnly",value:function(t,g){var e,A=this;fv(t)||(t=[t]);var I=Up(e=Up(t).call(t,(function(t){var g=A._data.get(t[A._idProp]);if(null==g)throw new Error("Updating non-existent items is not allowed.");return{oldData:g,update:t}}))).call(e,(function(t){var g=t.oldData,e=t.update,I=g[A._idProp],C=vx(vx({},g),e);return A._data.set(I,C),{id:I,oldData:g,updatedData:C}}));if(I.length){var C={items:Up(I).call(I,(function(t){return t.id})),oldData:Up(I).call(I,(function(t){return t.oldData})),data:Up(I).call(I,(function(t){return t.updatedData}))};return this._trigger("update",C,g),C.items}return[]}},{key:"get",value:function(t,g){var e=void 0,A=void 0,I=void 0;kx(t)?(e=t,I=g):fv(t)?(A=t,I=g):I=t;var C=I&&"Object"===I.returnType?"Object":"Array",i=I&&I.type||this._options.type,n=I&&xp(I),o=[],r=null,s=null,a=null;if(null!=e)(r=this._getItem(e,i))&&n&&!n(r)&&(r=null);else if(null!=A)for(var l=0,d=A.length;l<d;l++)null==(r=this._getItem(A[l],i))||n&&!n(r)||o.push(r);else for(var c,h=0,u=(s=ap(Vf(c=this._data).call(c))).length;h<u;h++)a=s[h],null==(r=this._getItem(a,i))||n&&!n(r)||o.push(r);if(I&&I.order&&null==e&&this._sort(o,I.order),I&&I.fields){var f=I.fields;if(null!=e&&null!=r)r=this._filterFields(r,f);else for(var p=0,v=o.length;p<v;p++)o[p]=this._filterFields(o[p],f)}if("Object"==C){for(var y={},m=0,b=o.length;m<b;m++){var w=o[m];y[w[this._idProp]]=w}return y}return null!=e?r:o}},{key:"getIds",value:function(t){var g,e,A=this._data,I=t&&xp(t),C=t&&t.order,i=t&&t.type||this._options.type,n=ap(Vf(A).call(A)),o=[];if(I)if(C){e=[];for(var r=0,s=n.length;r<s;r++){var a=n[r];I(g=this._getItem(a,i))&&e.push(g)}this._sort(e,C);for(var l=0,d=e.length;l<d;l++)o.push(e[l][this._idProp])}else for(var c=0,h=n.length;c<h;c++){var u=n[c];I(g=this._getItem(u,i))&&o.push(g[this._idProp])}else if(C){e=[];for(var f=0,p=n.length;f<p;f++){var v=n[f];e.push(A.get(v))}this._sort(e,C);for(var y=0,m=e.length;y<m;y++)o.push(e[y][this._idProp])}else for(var b=0,w=n.length;b<w;b++){var x=n[b];g=A.get(x),o.push(g[this._idProp])}return o}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,g){var e=g&&xp(g),A=g&&g.type||this._options.type,I=this._data,C=ap(Vf(I).call(I));if(g&&g.order)for(var i=this.get(g),n=0,o=i.length;n<o;n++){var r=i[n];t(r,r[this._idProp])}else for(var s=0,a=C.length;s<a;s++){var l=C[s],d=this._getItem(l,A);e&&!e(d)||t(d,l)}}},{key:"map",value:function(t,g){for(var e=g&&xp(g),A=g&&g.type||this._options.type,I=[],C=this._data,i=ap(Vf(C).call(C)),n=0,o=i.length;n<o;n++){var r=i[n],s=this._getItem(r,A);e&&!e(s)||I.push(t(s,r))}return g&&g.order&&this._sort(I,g.order),I}},{key:"_filterFields",value:function(t,g){var e;return t?Wf(e=fv(g)?g:$p(g)).call(e,(function(g,e){return g[e]=t[e],g}),{}):t}},{key:"_sort",value:function(t,g){if("string"==typeof g){var e=g;Bf(t).call(t,(function(t,g){var A=t[e],I=g[e];return A>I?1:A<I?-1:0}))}else{if("function"!=typeof g)throw new TypeError("Order must be a function or a string");Bf(t).call(t,g)}}},{key:"remove",value:function(t,g){for(var e=[],A=[],I=fv(t)?t:[t],C=0,i=I.length;C<i;C++){var n=this._remove(I[C]);if(n){var o=n[this._idProp];null!=o&&(e.push(o),A.push(n))}}return e.length&&this._trigger("remove",{items:e,oldData:A},g),e}},{key:"_remove",value:function(t){var g;if(kx(t)?g=t:t&&"object"===Kp(t)&&(g=t[this._idProp]),null!=g&&this._data.has(g)){var e=this._data.get(g)||null;return this._data.delete(g),--this.length,e}return null}},{key:"clear",value:function(t){for(var g,e=ap(Vf(g=this._data).call(g)),A=[],I=0,C=e.length;I<C;I++)A.push(this._data.get(e[I]));return this._data.clear(),this.length=0,this._trigger("remove",{items:e,oldData:A},t),e}},{key:"max",value:function(t){var g=null,e=null,A=!0,I=!1,C=void 0;try{for(var i,n=Df(wf(o=this._data).call(o));!(A=(i=n.next()).done);A=!0){var o,r=i.value,s=r[t];"number"==typeof s&&(null==e||s>e)&&(g=r,e=s)}}catch(t){I=!0,C=t}finally{try{A||null==n.return||n.return()}finally{if(I)throw C}}return g||null}},{key:"min",value:function(t){var g=null,e=null,A=!0,I=!1,C=void 0;try{for(var i,n=Df(wf(o=this._data).call(o));!(A=(i=n.next()).done);A=!0){var o,r=i.value,s=r[t];"number"==typeof s&&(null==e||s<e)&&(g=r,e=s)}}catch(t){I=!0,C=t}finally{try{A||null==n.return||n.return()}finally{if(I)throw C}}return g||null}},{key:"distinct",value:function(t){for(var g=this._data,e=ap(Vf(g).call(g)),A=[],I=this._options.type&&this._options.type[t]||null,C=0,i=0,n=e.length;i<n;i++){for(var o=e[i],r=g.get(o)[t],s=!1,a=0;a<C;a++)if(A[a]==r){s=!0;break}s||void 0===r||(A[C]=r,C++)}if(I){Ux();for(var l=0,d=A.length;l<d;l++)A[l]=xx(A[l],I)}return A}},{key:"_addItem",value:function(t){var g=t[this._idProp];if(null!=g){if(this._data.has(g))throw new Error("Cannot add item: item with id "+g+" already exists")}else g=Lv(),t[this._idProp]=g;for(var e={},A=$p(t),I=0,C=A.length;I<C;I++){var i=A[I],n=this._type[i];null!=n&&Ux(),e[i]=xx(t[i],n)}return this._data.set(g,e),++this.length,g}},{key:"_getItem",value:function(t,g){var e,A=this._data.get(t);if(!A)return null;var I=$p(A);if(g){Ux(),e={};for(var C=0,i=I.length;C<i;C++){var n=I[C],o=A[n];e[n]=xx(o,g[n])}}else e=function(t){for(var g=1;g<arguments.length;g++){var e,A=null!=arguments[g]?arguments[g]:{};if(g%2)Cu(e=Xx(Object(A),!0)).call(e,(function(g){vf(t,g,A[g])}));else if(kc)fc(t,kc(A));else{var I;Cu(I=Xx(Object(A))).call(I,(function(g){tc(t,g,ou(A,g))}))}}return t}({},A);return null==e[this._idProp]&&(e[this._idProp]=A.id),e}},{key:"_updateItem",value:function(t){var g=t[this._idProp];if(null==g)throw new Error("Cannot update item: item has no id (item: "+ff(t)+")");var e=this._data.get(g);if(!e)throw new Error("Cannot update item: no item with id "+g+" found");for(var A=$p(t),I=0,C=A.length;I<C;I++){var i=A[I],n=this._type[i];null!=n&&Ux(),e[i]=xx(t[i],n)}return g}},{key:"stream",value:function(t){if(t){var g=this._data;return new Vx(vf({},sf,Af.mark((function e(){var A,I,C,i,n,o,r;return Af.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A=!0,I=!1,C=void 0,e.prev=3,i=Df(t);case 5:if(A=(n=i.next()).done){e.next=14;break}if(o=n.value,null==(r=g.get(o))){e.next=11;break}return e.next=11,[o,r];case 11:A=!0,e.next=5;break;case 14:e.next=20;break;case 16:e.prev=16,e.t0=e.catch(3),I=!0,C=e.t0;case 20:e.prev=20,e.prev=21,A||null==i.return||i.return();case 23:if(e.prev=23,!I){e.next=26;break}throw C;case 26:return e.finish(23);case 27:return e.finish(20);case 28:case"end":return e.stop()}}),e,null,[[3,16,20,28],[21,,23,27]])}))))}var e;return new Vx(vf({},sf,ef(e=Hu(this._data)).call(e,this._data)))}}]),g}(Lx),Hx=function(t){function g(t,e){var A,I;return pv(this,g),(I=bv(this,Dv(g).call(this))).length=0,I._ids=new Qx,I._options=e||{},I._listener=ef(A=I._onEvent).call(A,mv(I)),I.setData(t),I}return Mv(g,t),yv(g,[{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var g=this._data.getIds({filter:xp(this._options)}),e=this._data.get(g);this._ids.clear(),this.length=0,this._trigger("remove",{items:g,oldData:e})}if(null!=t){this._data=t;for(var A=this._data.getIds({filter:xp(this._options)}),I=0,C=A.length;I<C;I++){var i=A[I];this._ids.add(i)}this.length=A.length,this._trigger("add",{items:A})}else this._data=new _x;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:xp(this._options)}),g=ap(this._ids),e={},A=[],I=[],C=[],i=0,n=t.length;i<n;i++){var o=t[i];e[o]=!0,this._ids.has(o)||(A.push(o),this._ids.add(o))}for(var r=0,s=g.length;r<s;r++){var a=g[r],l=this._data.get(a);null==l?console.error("If you see this, report it please."):e[a]||(I.push(a),C.push(l),this._ids.delete(a))}this.length+=A.length-I.length,A.length&&this._trigger("add",{items:A}),I.length&&this._trigger("remove",{items:I,oldData:C})}},{key:"get",value:function(t,g){if(null==this._data)return null;var e,A=null;kx(t)||fv(t)?(A=t,e=g):e=t;var I=Rp({},this._options,e),C=xp(this._options),i=e&&xp(e);return C&&i&&(I.filter=function(t){return C(t)&&i(t)}),null==A?this._data.get(I):this._data.get(A,I)}},{key:"getIds",value:function(t){if(this._data.length){var g,e=xp(this._options),A=null!=t?xp(t):null;return g=A?e?function(t){return e(t)&&A(t)}:A:e,this._data.getIds({filter:g,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,g){if(this._data){var e,A,I=xp(this._options),C=g&&xp(g);A=C?I?function(t){return I(t)&&C(t)}:C:I,Cu(e=this._data).call(e,t,{filter:A,order:g&&g.order})}}},{key:"map",value:function(t,g){if(this._data){var e,A,I=xp(this._options),C=g&&xp(g);return A=C?I?function(t){return I(t)&&C(t)}:C:I,Up(e=this._data).call(e,t,{filter:A,order:g&&g.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var g;return this._data.stream(t||vf({},sf,ef(g=Vf(this._ids)).call(g,this._ids)))}},{key:"_onEvent",value:function(t,g,e){if(g&&g.items&&this._data){var A=g.items,I=[],C=[],i=[],n=[],o=[],r=[];switch(t){case"add":for(var s=0,a=A.length;s<a;s++){var l=A[s];this.get(l)&&(this._ids.add(l),I.push(l))}break;case"update":for(var d=0,c=A.length;d<c;d++){var h=A[d];this.get(h)?this._ids.has(h)?(C.push(h),o.push(g.data[d]),n.push(g.oldData[d])):(this._ids.add(h),I.push(h)):this._ids.has(h)&&(this._ids.delete(h),i.push(h),r.push(g.oldData[d]))}break;case"remove":for(var u=0,f=A.length;u<f;u++){var p=A[u];this._ids.has(p)&&(this._ids.delete(p),i.push(p),r.push(g.oldData[u]))}}this.length+=I.length-i.length,I.length&&this._trigger("add",{items:I},e),C.length&&this._trigger("update",{items:C,oldData:n,data:o},e),i.length&&this._trigger("remove",{items:i,oldData:r},e)}}}]),g}(Lx),Jx={DataSet:_x,DataView:Hx,Queue:Fx},Kx=Object.freeze({__proto__:null,default:Jx,DataSet:_x,DataStream:Vx,DataView:Hx,Queue:Fx}),qx=Ql;P({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperties:Kn});var $x=e((function(t){var g=R.Object,e=t.exports=function(t,e){return g.defineProperties(t,e)};g.defineProperties.sham&&(e.sham=!0)})),tk=Hn.concat("length","prototype"),gk={f:Object.getOwnPropertyNames||function(t){return _n(t,tk)}},ek={f:Object.getOwnPropertySymbols},Ak=$n("Reflect","ownKeys")||function(t){var g=gk.f(L(t)),e=ek.f;return e?g.concat(e(t)):g};P({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(t){for(var g,e,A=f(t),I=O.f,C=Ak(A),i={},n=0;C.length>n;)void 0!==(e=I(A,g=C[n++]))&&$o(i,g,e);return i}});var Ik=R.Object.getOwnPropertyDescriptors,Ck=O.f,ik=i((function(){Ck(1)}));P({target:"Object",stat:!0,forced:!n||ik,sham:!n},{getOwnPropertyDescriptor:function(t,g){return Ck(f(t),g)}});var nk=e((function(t){var g=R.Object,e=t.exports=function(t,e){return g.getOwnPropertyDescriptor(t,e)};g.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),ok=nk,rk=So.filter,sk=ir("filter"),ak=Yo("filter");P({target:"Array",proto:!0,forced:!sk||!ak},{filter:function(t){return rk(this,t,arguments.length>1?arguments[1]:void 0)}});var lk=H("Array").filter,dk=Array.prototype,ck=function(t){var g=t.filter;return t===dk||t instanceof Array&&g===dk.filter?lk:g},hk=gk.f,uk={}.toString,fk="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pk={f:function(t){return fk&&"[object Window]"==uk.call(t)?function(t){try{return hk(t)}catch(t){return fk.slice()}}(t):hk(f(t))}},vk={f:Gn},yk=Y.f,mk=function(t){var g=R.Symbol||(R.Symbol={});m(g,t)||yk(g,t,{value:vk.f(t)})},bk=So.forEach,wk=an("hidden"),xk=Gn("toPrimitive"),kk=bn.set,Dk=bn.getterFor("Symbol"),Ok=Object.prototype,Nk=C.Symbol,Ek=$n("JSON","stringify"),Zk=O.f,Mk=Y.f,Tk=pk.f,Gk=s.f,Bk=Cn("symbols"),Rk=Cn("op-symbols"),Sk=Cn("string-to-symbol-registry"),Fk=Cn("symbol-to-string-registry"),Lk=Cn("wks"),Qk=C.QObject,Yk=!Qk||!Qk.prototype||!Qk.prototype.findChild,Wk=n&&i((function(){return 7!=Co(Mk({},"a",{get:function(){return Mk(this,"a",{value:7}).a}})).a}))?function(t,g,e){var A=Zk(Ok,g);A&&delete Ok[g],Mk(t,g,e),A&&t!==Ok&&Mk(Ok,g,A)}:Mk,zk=function(t,g){var e=Bk[t]=Co(Nk.prototype);return kk(e,{type:"Symbol",tag:t,description:g}),n||(e.description=g),e},jk=En?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Nk},Pk=function(t,g,e){t===Ok&&Pk(Rk,g,e),L(t);var A=v(g,!0);return L(e),m(Bk,A)?(e.enumerable?(m(t,wk)&&t[wk][A]&&(t[wk][A]=!1),e=Co(e,{enumerable:a(0,!1)})):(m(t,wk)||Mk(t,wk,a(1,{})),t[wk][A]=!0),Wk(t,A,e)):Mk(t,A,e)},Vk=function(t,g){L(t);var e=f(g),A=Jn(e).concat(Hk(e));return bk(A,(function(g){n&&!Xk.call(e,g)||Pk(t,g,e[g])})),t},Xk=function(t){var g=v(t,!0),e=Gk.call(this,g);return!(this===Ok&&m(Bk,g)&&!m(Rk,g))&&(!(e||!m(this,g)||!m(Bk,g)||m(this,wk)&&this[wk][g])||e)},Uk=function(t,g){var e=f(t),A=v(g,!0);if(e!==Ok||!m(Bk,A)||m(Rk,A)){var I=Zk(e,A);return!I||!m(Bk,A)||m(e,wk)&&e[wk][A]||(I.enumerable=!0),I}},_k=function(t){var g=Tk(f(t)),e=[];return bk(g,(function(t){m(Bk,t)||m(ln,t)||e.push(t)})),e},Hk=function(t){var g=t===Ok,e=Tk(g?Rk:f(t)),A=[];return bk(e,(function(t){!m(Bk,t)||g&&!m(Ok,t)||A.push(Bk[t])})),A};if(Nn||(vo((Nk=function(){if(this instanceof Nk)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=rn(t),e=function(t){this===Ok&&e.call(Rk,t),m(this,wk)&&m(this[wk],g)&&(this[wk][g]=!1),Wk(this,g,a(1,t))};return n&&Yk&&Wk(Ok,g,{configurable:!0,set:e}),zk(g,t)}).prototype,"toString",(function(){return Dk(this).tag})),vo(Nk,"withoutSetter",(function(t){return zk(rn(t),t)})),s.f=Xk,Y.f=Pk,O.f=Uk,gk.f=pk.f=_k,ek.f=Hk,vk.f=function(t){return zk(Gn(t),t)},n&&Mk(Nk.prototype,"description",{configurable:!0,get:function(){return Dk(this).description}})),P({global:!0,wrap:!0,forced:!Nn,sham:!Nn},{Symbol:Nk}),bk(Jn(Lk),(function(t){mk(t)})),P({target:"Symbol",stat:!0,forced:!Nn},{for:function(t){var g=String(t);if(m(Sk,g))return Sk[g];var e=Nk(g);return Sk[g]=e,Fk[e]=g,e},keyFor:function(t){if(!jk(t))throw TypeError(t+" is not a symbol");if(m(Fk,t))return Fk[t]},useSetter:function(){Yk=!0},useSimple:function(){Yk=!1}}),P({target:"Object",stat:!0,forced:!Nn,sham:!n},{create:function(t,g){return void 0===g?Co(t):Vk(Co(t),g)},defineProperty:Pk,defineProperties:Vk,getOwnPropertyDescriptor:Uk}),P({target:"Object",stat:!0,forced:!Nn},{getOwnPropertyNames:_k,getOwnPropertySymbols:Hk}),P({target:"Object",stat:!0,forced:i((function(){ek.f(1)}))},{getOwnPropertySymbols:function(t){return ek.f(wn(t))}}),Ek){var Jk=!Nn||i((function(){var t=Nk();return"[null]"!=Ek([t])||"{}"!=Ek({a:t})||"{}"!=Ek(Object(t))}));P({target:"JSON",stat:!0,forced:Jk},{stringify:function(t,g,e){for(var A,I=[t],C=1;arguments.length>C;)I.push(arguments[C++]);if(A=g,(p(g)||void 0!==t)&&!jk(t))return Mo(g)||(g=function(t,g){if("function"==typeof A&&(g=A.call(this,t,g)),!jk(g))return g}),I[1]=g,Ek.apply(null,I)}})}Nk.prototype[xk]||W(Nk.prototype,xk,Nk.prototype.valueOf),ho(Nk,"Symbol"),ln[wk]=!0;var Kk=R.Object.getOwnPropertySymbols,qk=i((function(){Jn(1)}));P({target:"Object",stat:!0,forced:qk},{keys:function(t){return Jn(wn(t))}});var $k=R.Object.keys;var tD=function(t,g,e){return g in t?Yl(t,g,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[g]=e,t},gD="\t\n\v\f\r                 \u2028\u2029\ufeff",eD="["+gD+"]",AD=RegExp("^"+eD+eD+"*"),ID=RegExp(eD+eD+"*$"),CD=function(t){return function(g){var e=String(u(g));return 1&t&&(e=e.replace(AD,"")),2&t&&(e=e.replace(ID,"")),e}},iD={start:CD(1),end:CD(2),trim:CD(3)},nD=iD.trim,oD=C.parseFloat,rD=1/oD(gD+"-0")!=-1/0?function(t){var g=nD(String(t)),e=oD(g);return 0===e&&"-"==g.charAt(0)?-0:e}:oD;P({global:!0,forced:parseFloat!=rD},{parseFloat:rD});var sD=R.parseFloat,aD=iD.trim,lD=C.parseInt,dD=/^[+-]?0[Xx]/,cD=8!==lD(gD+"08")||22!==lD(gD+"0x16")?function(t,g){var e=aD(String(t));return lD(e,g>>>0||(dD.test(e)?16:10))}:lD;P({global:!0,forced:parseInt!=cD},{parseInt:cD});var hD=R.parseInt,uD=Ko;var fD=function(t){if(uD(t))return t},pD=Gn("iterator"),vD=function(t){var g=Object(t);return void 0!==g[pD]||"@@iterator"in g||Ji.hasOwnProperty(so(g))};var yD=function(t,g){if(vD(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var e=[],A=!0,I=!1,C=void 0;try{for(var i,n=ed(t);!(A=(i=n.next()).done)&&(e.push(i.value),!g||e.length!==g);A=!0);}catch(t){I=!0,C=t}finally{try{A||null==n.return||n.return()}finally{if(I)throw C}}return e}};var mD=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var bD=function(t,g){return fD(t)||yD(t,g)||mD()};mk("iterator");var wD=vk.f("iterator"),xD=Gn("isConcatSpreadable"),kD=Ir>=51||!i((function(){var t=[];return t[xD]=!1,t.concat()[0]!==t})),DD=ir("concat"),OD=function(t){if(!p(t))return!1;var g=t[xD];return void 0!==g?!!g:Mo(t)};P({target:"Array",proto:!0,forced:!kD||!DD},{concat:function(t){var g,e,A,I,C,i=wn(this),n=Go(i,0),o=0;for(g=-1,A=arguments.length;g<A;g++)if(C=-1===g?i:arguments[g],OD(C)){if(o+(I=Wn(C.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<I;e++,o++)e in C&&$o(n,o,C[e])}else{if(o>=9007199254740991)throw TypeError("Maximum allowed index exceeded");$o(n,o++,C)}return n.length=o,n}});var ND=Object.freeze({__proto__:null});mk("asyncIterator");var ED=Object.freeze({__proto__:null});mk("hasInstance"),mk("isConcatSpreadable"),mk("match"),mk("matchAll"),mk("replace"),mk("search"),mk("species"),mk("split"),mk("toPrimitive"),mk("toStringTag"),mk("unscopables"),ho(Math,"Math",!0),ho(C.JSON,"JSON",!0),A(ND),A(ED);var ZD=R.Symbol;mk("asyncDispose"),mk("dispose"),mk("observable"),mk("patternMatch"),mk("replaceAll");var MD=ZD,TD=e((function(t){function g(e){return t.exports=g="function"==typeof MD&&"symbol"==typeof wD?function(t){return typeof t}:function(t){return t&&"function"==typeof MD&&t.constructor===MD&&t!==MD.prototype?"symbol":typeof t},g(e)}t.exports=g})),GD=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"choosify",value:function(t,g){var e=["node","edge","label"],A=!0,I=Ui(g,"chosen");if("boolean"==typeof I)A=I;else if("object"===TD(I)){if(-1===Mr(e).call(e,t))throw new Error("choosify: subOption '"+t+"' should be one of '"+e.join("', '")+"'");var C=Ui(g,["chosen",t]);"boolean"!=typeof C&&"function"!=typeof C||(A=C)}return A}},{key:"pointInRect",value:function(t,g,e){if(t.width<=0||t.height<=0)return!1;if(void 0!==e){var A={x:g.x-e.x,y:g.y-e.y};if(0!==e.angle){var I=-e.angle;g={x:Math.cos(I)*A.x-Math.sin(I)*A.y,y:Math.sin(I)*A.x+Math.cos(I)*A.y}}else g=A}var C=t.x+t.width,i=t.y+t.width;return t.left<g.x&&C>g.x&&t.top<g.y&&i>g.y}},{key:"isValidLabel",value:function(t){return"string"==typeof t&&""!==t}}]),t}(),BD=ir("slice"),RD=Yo("slice",{ACCESSORS:!0,0:0,1:2}),SD=Gn("species"),FD=[].slice,LD=Math.max;P({target:"Array",proto:!0,forced:!BD||!RD},{slice:function(t,g){var e,A,I,C=f(this),i=Wn(C.length),n=Pn(t,i),o=Pn(void 0===g?i:g,i);if(Mo(C)&&("function"!=typeof(e=C.constructor)||e!==Array&&!Mo(e.prototype)?p(e)&&null===(e=e[SD])&&(e=void 0):e=void 0,e===Array||void 0===e))return FD.call(C,n,o);for(A=new(void 0===e?Array:e)(LD(o-n,0)),I=0;n<o;n++,I++)n in C&&$o(A,I,C[n]);return A.length=I,A}});var QD=H("Array").slice,YD=Array.prototype,WD=function(t){var g=t.slice;return t===YD||t instanceof Array&&g===YD.slice?QD:g},zD=H("Array").values,jD=Array.prototype,PD={DOMTokenList:!0,NodeList:!0},VD=function(t){var g=t.values;return t===jD||t instanceof Array&&g===jD.values||PD.hasOwnProperty(so(t))?zD:g},XD=Object.assign,UD=Object.defineProperty,_D=!XD||i((function(){if(n&&1!==XD({b:1},XD(UD({},"a",{enumerable:!0,get:function(){UD(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},g={},e=Symbol();return t[e]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){g[t]=t})),7!=XD({},t)[e]||"abcdefghijklmnopqrst"!=Jn(XD({},g)).join("")}))?function(t,g){for(var e=wn(t),A=arguments.length,I=1,C=ek.f,i=s.f;A>I;)for(var o,r=h(arguments[I++]),a=C?Jn(r).concat(C(r)):Jn(r),l=a.length,d=0;l>d;)o=a[d++],n&&!i.call(r,o)||(e[o]=r[o]);return e}:XD;P({target:"Object",stat:!0,forced:Object.assign!==_D},{assign:_D});var HD=R.Object.assign,JD=function(){function t(g){Ll(this,t),this.measureText=g,this.current=0,this.width=0,this.height=0,this.lines=[]}return zl(t,[{key:"_add",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var A=g;void 0!==g&&""!==g||(A=" ");var I=this.measureText(A,e),C=HD({},VD(I));C.text=g,C.width=I.width,C.mod=e,void 0!==g&&""!==g||(C.width=0),this.lines[t].blocks.push(C),this.lines[t].width+=C.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,g)}},{key:"newLine",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,g),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;t<this.lines.length;t++){var g=this.lines[t],e=0;if(void 0!==g.blocks)for(var A=0;A<g.blocks.length;A++){var I=g.blocks[A];e<I.height&&(e=I.height)}g.height=e}}},{key:"determineLabelSize",value:function(){for(var t=0,g=0,e=0;e<this.lines.length;e++){var A=this.lines[e];A.width>t&&(t=A.width),g+=A.height}this.width=t,this.height=g}},{key:"removeEmptyBlocks",value:function(){for(var t=[],g=0;g<this.lines.length;g++){var e=this.lines[g];if(0!==e.blocks.length&&(g!==this.lines.length-1||0!==e.width)){var A={};HD(A,e),A.blocks=[];for(var I=void 0,C=[],i=0;i<e.blocks.length;i++){var n=e.blocks[i];0!==n.width?C.push(n):void 0===I&&(I=n)}0===C.length&&void 0!==I&&C.push(I),A.blocks=C,t.push(A)}}return t}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var t=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:t}}}]),t}(),KD={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/\_/,"`":/`/,afterBold:/[^\*]/,afterItal:/[^_]/,afterMono:/[^`]/},qD=function(){function t(g){Ll(this,t),this.text=g,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return zl(t,[{key:"mod",value:function(){return 0===this.modStack.length?"normal":this.modStack[0]}},{key:"modName",value:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(t){" "===t&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return!!/[ \t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,g){return!(this.mono||this[t]||!this.match(g))&&(this.setTag(t),!0)}},{key:"match",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=this.prepareRegExp(t),A=bD(e,2),I=A[0],C=A[1],i=I.test(this.text.substr(this.position,C));return i&&g&&(this.position+=C-1),i}},{key:"parseEndTag",value:function(t,g,e){var A=this.mod()===t;return!(!(A="mono"===t?A&&this.mono:A&&!this.mono)||!this.match(g))&&(void 0!==e?(this.position===this.text.length-1||this.match(e,!1))&&this.unsetTag(t):this.unsetTag(t),!0)}},{key:"replace",value:function(t,g){return!!this.match(t)&&(this.add(g),this.position+=length-1,!0)}},{key:"prepareRegExp",value:function(t){var g,e;if(t instanceof RegExp)e=t,g=1;else{var A=KD[t];e=void 0!==A?A:new RegExp(t),g=t.length}return[e,g]}}]),t}(),$D=function(){function t(g,e,A,I){var C=this;Ll(this,t),this.ctx=g,this.parent=e,this.selected=A,this.hover=I;this.lines=new JD((function(t,e){if(void 0===t)return 0;var i=C.parent.getFormattingValues(g,A,I,e),n=0;""!==t&&(n=C.ctx.measureText(t).width);return{width:n,values:i}}))}return zl(t,[{key:"process",value:function(t){if(!GD.isValidLabel(t))return this.lines.finalize();var g=this.parent.fontOptions;t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");var e=String(t).split("\n"),A=e.length;if(g.multi)for(var I=0;I<A;I++){var C=this.splitBlocks(e[I],g.multi);if(void 0!==C)if(0!==C.length){if(g.maxWdt>0)for(var i=0;i<C.length;i++){var n=C[i].mod,o=C[i].text;this.splitStringIntoLines(o,n,!0)}else for(var r=0;r<C.length;r++){var s=C[r].mod,a=C[r].text;this.lines.append(a,s)}this.lines.newLine()}else this.lines.newLine("")}else if(g.maxWdt>0)for(var l=0;l<A;l++)this.splitStringIntoLines(e[l]);else for(var d=0;d<A;d++)this.lines.newLine(e[d]);return this.lines.finalize()}},{key:"decodeMarkupSystem",value:function(t){var g="none";return"markdown"===t||"md"===t?g="markdown":!0!==t&&"html"!==t||(g="html"),g}},{key:"splitHtmlBlocks",value:function(t){for(var g=new qD(t),e=function(t){return!!/&/.test(t)&&(g.replace(g.text,"&lt;","<")||g.replace(g.text,"&amp;","&")||g.add("&"),!0)};g.position<g.text.length;){var A=g.text.charAt(g.position);g.parseWS(A)||/</.test(A)&&(g.parseStartTag("bold","<b>")||g.parseStartTag("ital","<i>")||g.parseStartTag("mono","<code>")||g.parseEndTag("bold","</b>")||g.parseEndTag("ital","</i>")||g.parseEndTag("mono","</code>"))||e(A)||g.add(A),g.position++}return g.emitBlock(),g.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var g=this,e=new qD(t),A=!0,I=function(t){return!!/\\/.test(t)&&(e.position<g.text.length+1&&(e.position++,t=g.text.charAt(e.position),/ \t/.test(t)?e.spacing=!0:(e.add(t),A=!1)),!0)};e.position<e.text.length;){var C=e.text.charAt(e.position);e.parseWS(C)||I(C)||(A||e.spacing)&&(e.parseStartTag("bold","*")||e.parseStartTag("ital","_")||e.parseStartTag("mono","`"))||e.parseEndTag("bold","*","afterBold")||e.parseEndTag("ital","_","afterItal")||e.parseEndTag("mono","`","afterMono")||(e.add(C),A=!1),e.position++}return e.emitBlock(),e.blocks}},{key:"splitBlocks",value:function(t,g){var e=this.decodeMarkupSystem(g);return"none"===e?[{text:t,mod:"normal"}]:"markdown"===e?this.splitMarkdownBlocks(t):"html"===e?this.splitHtmlBlocks(t):void 0}},{key:"overMaxWidth",value:function(t){var g=this.ctx.measureText(t).width;return this.lines.curWidth()+g>this.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var g="",e=0;e<t.length;){var A=g+(""===g?"":" ")+t[e];if(this.overMaxWidth(A))break;g=A,e++}return e}},{key:"getLongestFitWord",value:function(t){for(var g=0;g<t.length&&!this.overMaxWidth(WD(t).call(t,0,g));)g++;return g}},{key:"splitStringIntoLines",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,g);for(var A=(t=(t=t.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");A.length>0;){var I=this.getLongestFit(A);if(0===I){var C=A[0],i=this.getLongestFitWord(C);this.lines.newLine(WD(C).call(C,0,i),g),A[0]=WD(C).call(C,i)}else{var n=I;" "===A[I-1]?I--:" "===A[n]&&n++;var o=WD(A).call(A,0,I).join("");I==A.length&&e?this.lines.append(o,g):this.lines.newLine(o,g),A=WD(A).call(A,n)}}}}]),t}(),tO=["bold","ital","boldital","mono"],gO=function(){function t(g,e){var A=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Ll(this,t),this.body=g,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=A}return zl(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),GD.isValidLabel(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===TD(t.font)){var g=t.font.size;void 0!==g&&(this.baseSize=g)}}},{key:"initFontOptions",value:function(g){var e=this;hi(tO,(function(t){e.fontOptions[t]={}})),t.parseFontString(this.fontOptions,g)?this.fontOptions.vadjust=0:hi(g,(function(t,g){null!=t&&"object"!==TD(t)&&(e.fontOptions[g]=t)}))}},{key:"constrain",value:function(t){var g={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},e=Ui(t,"widthConstraint");if("number"==typeof e)g.maxWdt=Number(e),g.minWdt=Number(e);else if("object"===TD(e)){var A=Ui(t,["widthConstraint","maximum"]);"number"==typeof A&&(g.maxWdt=Number(A));var I=Ui(t,["widthConstraint","minimum"]);"number"==typeof I&&(g.minWdt=Number(I))}var C=Ui(t,"heightConstraint");if("number"==typeof C)g.minHgt=Number(C);else if("object"===TD(C)){var i=Ui(t,["heightConstraint","minimum"]);"number"==typeof i&&(g.minHgt=Number(i));var n=Ui(t,["heightConstraint","valign"]);"string"==typeof n&&("top"!==n&&"bottom"!==n||(g.valign=n))}return g}},{key:"update",value:function(t,g){this.setOptions(t,!0),this.propagateFonts(g),Ci(this.fontOptions,this.constrain(g)),this.fontOptions.chooser=GD.choosify("label",g)}},{key:"adjustSizes",value:function(t){var g=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=g,this.fontOptions.minWdt-=g);var e=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=e)}},{key:"addFontOptionsToPile",value:function(t,g){for(var e=0;e<g.length;++e)this.addFontToPile(t,g[e])}},{key:"addFontToPile",value:function(t,g){if(void 0!==g&&void 0!==g.font&&null!==g.font){var e=g.font;t.push(e)}}},{key:"getBasicOptions",value:function(g){for(var e={},A=0;A<g.length;++A){var I=g[A],C={};t.parseFontString(C,I)&&(I=C),hi(I,(function(t,g){void 0!==t&&(e.hasOwnProperty(g)||(-1!==Mr(tO).call(tO,g)?e[g]={}:e[g]=t))}))}return e}},{key:"getFontOption",value:function(g,e,A){for(var I,C=0;C<g.length;++C){var i=g[C];if(i.hasOwnProperty(e)){if(null==(I=i[e]))continue;var n={};if(t.parseFontString(n,I)&&(I=n),I.hasOwnProperty(A))return I[A]}}if(this.fontOptions.hasOwnProperty(A))return this.fontOptions[A];throw new Error("Did not find value for multi-font for property: '"+A+"'")}},{key:"getFontOptions",value:function(t,g){for(var e={},A=["color","size","face","mod","vadjust"],I=0;I<A.length;++I){var C=A[I];e[C]=this.getFontOption(t,g,C)}return e}},{key:"propagateFonts",value:function(t){var g=this,e=[];this.addFontOptionsToPile(e,t),this.fontOptions=this.getBasicOptions(e);for(var A=function(t){var A=tO[t],I=g.fontOptions[A];hi(g.getFontOptions(e,A),(function(t,g){I[g]=t})),I.size=Number(I.size),I.vadjust=Number(I.vadjust)},I=0;I<tO.length;++I)A(I)}},{key:"draw",value:function(t,g,e,A,I){var C=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var i=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&i<this.elementOptions.scaling.label.drawThreshold-1||(i>=this.elementOptions.scaling.label.maxVisible&&(i=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,A,I,g,e,C),this._drawBackground(t),this._drawText(t,g,this.size.yLine,C,i))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var g=this.getSize();t.fillRect(g.left,g.top,g.width,g.height)}}},{key:"_drawText",value:function(t,g,e){var A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",I=arguments.length>4?arguments[4]:void 0,C=this._setAlignment(t,g,e,A),i=bD(C,2);g=i[0],e=i[1],t.textAlign="left",g-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(e-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(e+=(this.size.height-this.size.labelHeight)/2));for(var n=0;n<this.lineCount;n++){var o=this.lines[n];if(o&&o.blocks){var r=0;this.isEdgeLabel||"center"===this.fontOptions.align?r+=(this.size.width-o.width)/2:"right"===this.fontOptions.align&&(r+=this.size.width-o.width);for(var s=0;s<o.blocks.length;s++){var a=o.blocks[s];t.font=a.font;var l=this._getColor(a.color,I,a.strokeColor),d=bD(l,2),c=d[0],h=d[1];a.strokeWidth>0&&(t.lineWidth=a.strokeWidth,t.strokeStyle=h,t.lineJoin="round"),t.fillStyle=c,a.strokeWidth>0&&t.strokeText(a.text,g+r,e+a.vadjust),t.fillText(a.text,g+r,e+a.vadjust),r+=a.width}e+=o.height}}}},{key:"_setAlignment",value:function(t,g,e,A){if(this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf){g=0,e=0;"top"===this.fontOptions.align?(t.textBaseline="alphabetic",e-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",e+=4):t.textBaseline="middle"}else t.textBaseline=A;return[g,e]}},{key:"_getColor",value:function(t,g,e){var A=t||"#000000",I=e||"#ffffff";if(g<=this.elementOptions.scaling.label.drawThreshold){var C=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-g)));A=Di(A,C),I=Di(I,C)}return[A,I]}},{key:"getTextSize",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,g,e),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,g=this.size.top-1;if(this.isEdgeLabel){var e=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=e,g=.5*-this.size.height;break;case"top":t=e,g=-(this.size.height+2);break;case"bottom":t=e,g=2}}return{left:t,top:g,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,g,e){var A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,I=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,C=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,g,e),this.size.left=A-.5*this.size.width,this.size.top=I-.5*this.size.height,this.size.yLine=I+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===C&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,g,e,A){var I=function(t,g,e){return"normal"===g?"mod"===e?"":t[e]:void 0!==t[g][e]?t[g][e]:t[e]},C={color:I(this.fontOptions,A,"color"),size:I(this.fontOptions,A,"size"),face:I(this.fontOptions,A,"face"),mod:I(this.fontOptions,A,"mod"),vadjust:I(this.fontOptions,A,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(g||e)&&("normal"===A&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?C.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(C,this.elementOptions.id,g,e));var i="";return void 0!==C.mod&&""!==C.mod&&(i+=C.mod+" "),i+=C.size+"px "+C.face,t.font=i.replace(/"/g,""),C.font=t.font,C.height=C.size,C}},{key:"differentState",value:function(t,g){return t!==this.selectedState||g!==this.hoverState}},{key:"_processLabelText",value:function(t,g,e,A){return new $D(t,this,g,e).process(A)}},{key:"_processLabel",value:function(t,g,e){if(!1!==this.labelDirty||this.differentState(g,e)){var A=this._processLabelText(t,g,e,this.elementOptions.label);this.fontOptions.minWdt>0&&A.width<this.fontOptions.minWdt&&(A.width=this.fontOptions.minWdt),this.size.labelHeight=A.height,this.fontOptions.minHgt>0&&A.height<this.fontOptions.minHgt&&(A.height=this.fontOptions.minHgt),this.lines=A.lines,this.lineCount=A.lines.length,this.size.width=A.width,this.size.height=A.height,this.selectedState=g,this.hoverState=e,this.labelDirty=!1}}},{key:"visible",value:function(){return 0!==this.size.width&&0!==this.size.height&&void 0!==this.elementOptions.label&&!(this.fontOptions.size*this.body.view.scale<this.elementOptions.scaling.label.drawThreshold-1)}}],[{key:"parseFontString",value:function(t,g){if(!g||"string"!=typeof g)return!1;var e=g.split(" ");return t.size=+e[0].replace("px",""),t.face=e[1],t.color=e[2],!0}}]),t}();var eO=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var AO=function(t,g){return!g||"object"!==TD(g)&&"function"!=typeof g?eO(t):g},IO=i((function(){On(1)}));P({target:"Object",stat:!0,forced:IO,sham:!xn},{getPrototypeOf:function(t){return On(wn(t))}});var CO=R.Object.getPrototypeOf;P({target:"Object",stat:!0},{setPrototypeOf:po});var iO=R.Object.setPrototypeOf,nO=e((function(t){function g(e){return t.exports=g=iO?CO:function(t){return t.__proto__||CO(t)},g(e)}t.exports=g})),oO=Gr,rO=e((function(t){function g(e,A){return t.exports=g=iO||function(t,g){return t.__proto__=g,t},g(e,A)}t.exports=g}));var sO=function(t,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");t.prototype=oO(g&&g.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),g&&rO(t,g)};P({target:"Array",proto:!0},{fill:function(t){for(var g=wn(this),e=Wn(g.length),A=arguments.length,I=Pn(A>1?arguments[1]:void 0,e),C=A>2?arguments[2]:void 0,i=void 0===C?e:Pn(C,e);i>I;)g[I++]=t;return g}});var aO=H("Array").fill,lO=Array.prototype,dO=function(t){var g=t.fill;return t===lO||t instanceof Array&&g===lO.fill?aO:g},cO=function(){function t(g,e,A){Ll(this,t),this.body=e,this.labelModule=A,this.setOptions(g),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.refreshNeeded=!0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return zl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"_setMargins",value:function(t){this.margin={},this.options.margin&&("object"==TD(this.options.margin)?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),t.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(t,g){var e=this.options.borderWidth;return this.resize(t),Math.min(Math.abs(this.width/2/Math.cos(g)),Math.abs(this.height/2/Math.sin(g)))+e}},{key:"enableShadow",value:function(t,g){g.shadow&&(t.shadowColor=g.shadowColor,t.shadowBlur=g.shadowSize,t.shadowOffsetX=g.shadowX,t.shadowOffsetY=g.shadowY)}},{key:"disableShadow",value:function(t,g){g.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(t,g){if(!1!==g.borderDashes)if(void 0!==t.setLineDash){var e=g.borderDashes;!0===e&&(e=[5,15]),t.setLineDash(e)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,g.borderDashes=!1}},{key:"disableBorderDashes",value:function(t,g){!1!==g.borderDashes&&(void 0!==t.setLineDash?t.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,g.borderDashes=!1))}},{key:"needsRefresh",value:function(t,g){return!0===this.refreshNeeded?(this.refreshNeeded=!1,!0):void 0===this.width||this.labelModule.differentState(t,g)}},{key:"initContextForDraw",value:function(t,g){var e=g.borderWidth/this.body.view.scale;t.lineWidth=Math.min(this.width,e),t.strokeStyle=g.borderColor,t.fillStyle=g.color}},{key:"performStroke",value:function(t,g){var e=g.borderWidth/this.body.view.scale;t.save(),e>0&&(this.enableBorderDashes(t,g),t.stroke(),this.disableBorderDashes(t,g)),t.restore()}},{key:"performFill",value:function(t,g){this.enableShadow(t,g),dO(t).call(t),this.disableShadow(t,g),this.performStroke(t,g)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,g,e,A,I){void 0!==e&&this.resize(e,A,I),this.left=t-this.width/2,this.top=g-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,g,e,A,I){this._updateBoundingBox(t,g,e,A,I)}},{key:"getDimensionsFromLabel",value:function(t,g,e){this.textSize=this.labelModule.getTextSize(t,g,e);var A=this.textSize.width,I=this.textSize.height;return 0===A&&(A=14,I=14),{width:A,height:I}}}]),t}(),hO=function(t){function g(t,e,A){var I;return Ll(this,g),(I=AO(this,nO(g).call(this,t,e,A)))._setMargins(A),I}return sO(g,t),zl(g,[{key:"resize",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(g,e)){var A=this.getDimensionsFromLabel(t,g,e);this.width=A.width+this.margin.right+this.margin.left,this.height=A.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,g,e,A,I,C){this.resize(t,A,I),this.left=g-this.width/2,this.top=e-this.height/2,this.initContextForDraw(t,C),tt(t,this.left,this.top,this.width,this.height,C.borderRadius),this.performFill(t,C),this.updateBoundingBox(g,e,t,A,I),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,A,I)}},{key:"updateBoundingBox",value:function(t,g,e,A,I){this._updateBoundingBox(t,g,e,A,I);var C=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(C)}},{key:"distanceToBorder",value:function(t,g){this.resize(t);var e=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(g)),Math.abs(this.height/2/Math.sin(g)))+e}}]),g}(cO),uO=function(t){function g(t,e,A){var I;return Ll(this,g),(I=AO(this,nO(g).call(this,t,e,A))).labelOffset=0,I.selected=!1,I}return sO(g,t),zl(g,[{key:"setOptions",value:function(t,g,e){this.options=t,void 0===g&&void 0===e||this.setImages(g,e)}},{key:"setImages",value:function(t,g){g&&this.selected?(this.imageObj=g,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=g)}},{key:"switchImages",value:function(t){var g=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&g){var e=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=e}}},{key:"_getImagePadding",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var g=this.options.imagePadding;"object"==TD(g)?(t.top=g.top,t.right=g.right,t.bottom=g.bottom,t.left=g.left):(t.top=g,t.right=g,t.bottom=g,t.left=g)}return t}},{key:"_resizeImage",value:function(){var t,g;if(!1===this.options.shapeProperties.useImageSize){var e=1,A=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?e=this.imageObj.width/this.imageObj.height:A=this.imageObj.height/this.imageObj.width),t=2*this.options.size*e,g=2*this.options.size*A}else{var I=this._getImagePadding();t=this.imageObj.width+I.left+I.right,g=this.imageObj.height+I.top+I.bottom}this.width=t,this.height=g,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,g,e,A){this.initContextForDraw(t,A),$(t,g,e,A.size),this.performFill(t,A)}},{key:"_drawImageAtPosition",value:function(t,g){if(0!=this.imageObj.width){t.globalAlpha=1,this.enableShadow(t,g);var e=1;!0===this.options.shapeProperties.interpolation&&(e=this.imageObj.width/this.width/this.body.view.scale);var A=this._getImagePadding(),I=this.left+A.left,C=this.top+A.top,i=this.width-A.left-A.right,n=this.height-A.top-A.bottom;this.imageObj.drawImageAtPosition(t,e,I,C,i,n),this.disableShadow(t,g)}}},{key:"_drawImageLabel",value:function(t,g,e,A,I){var C,i=0;if(void 0!==this.height){i=.5*this.height;var n=this.labelModule.getTextSize(t,A,I);n.lineCount>=1&&(i+=n.height/2)}C=e+i,this.options.label&&(this.labelOffset=i),this.labelModule.draw(t,g,C,A,I,"hanging")}}]),g}(cO),fO=function(t){function g(t,e,A){var I;return Ll(this,g),(I=AO(this,nO(g).call(this,t,e,A)))._setMargins(A),I}return sO(g,t),zl(g,[{key:"resize",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(g,e)){var A=this.getDimensionsFromLabel(t,g,e),I=Math.max(A.width+this.margin.right+this.margin.left,A.height+this.margin.top+this.margin.bottom);this.options.size=I/2,this.width=I,this.height=I,this.radius=this.width/2}}},{key:"draw",value:function(t,g,e,A,I,C){this.resize(t,A,I),this.left=g-this.width/2,this.top=e-this.height/2,this._drawRawCircle(t,g,e,C),this.updateBoundingBox(g,e),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,e,A,I)}},{key:"updateBoundingBox",value:function(t,g){this.boundingBox.top=g-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=g+this.options.size}},{key:"distanceToBorder",value:function(t,g){return this.resize(t),.5*this.width}}]),g}(uO),pO=function(t){function g(t,e,A,I,C){var i;return Ll(this,g),(i=AO(this,nO(g).call(this,t,e,A))).setImages(I,C),i}return sO(g,t),zl(g,[{key:"resize",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,A=void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height;if(A){var I=2*this.options.size;return this.width=I,this.height=I,void(this.radius=.5*this.width)}this.needsRefresh(g,e)&&this._resizeImage()}},{key:"draw",value:function(t,g,e,A,I,C){this.switchImages(A),this.resize(),this.left=g-this.width/2,this.top=e-this.height/2,this._drawRawCircle(t,g,e,C),t.save(),t.clip(),this._drawImageAtPosition(t,C),t.restore(),this._drawImageLabel(t,g,e,A,I),this.updateBoundingBox(g,e)}},{key:"updateBoundingBox",value:function(t,g){this.boundingBox.top=g-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=g+this.options.size,this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t,g){return this.resize(t),.5*this.width}}]),g}(uO),vO=function(t){function g(t,e,A){var I;return Ll(this,g),(I=AO(this,nO(g).call(this,t,e,A)))._setMargins(A),I}return sO(g,t),zl(g,[{key:"resize",value:function(t,g,e){if(this.needsRefresh(g,e)){var A=this.getDimensionsFromLabel(t,g,e).width+this.margin.right+this.margin.left;this.width=A,this.height=A,this.radius=this.width/2}}},{key:"draw",value:function(t,g,e,A,I,C){this.resize(t,A,I),this.left=g-this.width/2,this.top=e-this.height/2,this.initContextForDraw(t,C),et(t,g-this.width/2,e-this.height/2,this.width,this.height),this.performFill(t,C),this.updateBoundingBox(g,e,t,A,I),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,A,I)}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(cO),yO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"resize",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(g,e)){this.labelModule.getTextSize(t,g,e);var I=2*A.size;this.width=I,this.height=I,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,g,e,A,I,C,i,n){var o;if(this.resize(t,C,i,n),this.left=A-this.width/2,this.top=I-this.height/2,this.initContextForDraw(t,n),(o=g,Object.prototype.hasOwnProperty.call(It,o)?It[o]:function(t){for(var g=arguments.length,e=new Array(g>1?g-1:0),A=1;A<g;A++)e[A-1]=arguments[A];CanvasRenderingContext2D.prototype[o].call(t,e)})(t,A,I,n.size),this.performFill(t,n),void 0!==this.options.icon&&void 0!==this.options.icon.code&&(t.font=(C?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",t.fillText(this.options.icon.code,A,I)),void 0!==this.options.label){this.labelModule.calculateLabelSize(t,C,i,A,I,"hanging");var r=I+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(t,A,r,C,i,"hanging")}this.updateBoundingBox(A,I)}},{key:"updateBoundingBox",value:function(t,g){this.boundingBox.top=g-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=g+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),g}(cO),mO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"draw",value:function(t,g,e,A,I,C){this._drawShape(t,"diamond",4,g,e,A,I,C)}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(yO),bO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"draw",value:function(t,g,e,A,I,C){this._drawShape(t,"circle",2,g,e,A,I,C)}},{key:"distanceToBorder",value:function(t,g){return this.resize(t),this.options.size}}]),g}(yO),wO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"resize",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(g,e)){var A=this.getDimensionsFromLabel(t,g,e);this.height=2*A.height,this.width=A.width+A.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,g,e,A,I,C){this.resize(t,A,I),this.left=g-.5*this.width,this.top=e-.5*this.height,this.initContextForDraw(t,C),gt(t,this.left,this.top,this.width,this.height),this.performFill(t,C),this.updateBoundingBox(g,e,t,A,I),this.labelModule.draw(t,g,e,A,I)}},{key:"distanceToBorder",value:function(t,g){this.resize(t);var e=.5*this.width,A=.5*this.height,I=Math.sin(g)*e,C=Math.cos(g)*A;return e*A/Math.sqrt(I*I+C*C)}}]),g}(cO),xO=function(t){function g(t,e,A){var I;return Ll(this,g),(I=AO(this,nO(g).call(this,t,e,A)))._setMargins(A),I}return sO(g,t),zl(g,[{key:"resize",value:function(t,g,e){this.needsRefresh(g,e)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,g,e,A,I,C){if(this.resize(t,A,I),this.options.icon.size=this.options.icon.size||50,this.left=g-this.width/2,this.top=e-this.height/2,this._icon(t,g,e,A,I,C),void 0!==this.options.label){this.labelModule.draw(t,this.left+this.iconSize.width/2+this.margin.left,e+this.height/2+5,A)}this.updateBoundingBox(g,e)}},{key:"updateBoundingBox",value:function(t,g){if(this.boundingBox.top=g-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=g+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5)}}},{key:"_icon",value:function(t,g,e,A,I,C){var i=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:A?"bold":"",(null!=this.options.icon.weight&&A?5:0)+i+"px",this.options.icon.face].join(" "),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,C),t.fillText(this.options.icon.code,g,e),this.disableShadow(t,C)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(cO),kO=function(t){function g(t,e,A,I,C){var i;return Ll(this,g),(i=AO(this,nO(g).call(this,t,e,A))).setImages(I,C),i}return sO(g,t),zl(g,[{key:"resize",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,A=void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height;if(A){var I=2*this.options.size;return this.width=I,void(this.height=I)}this.needsRefresh(g,e)&&this._resizeImage()}},{key:"draw",value:function(t,g,e,A,I,C){if(this.switchImages(A),this.resize(),this.left=g-this.width/2,this.top=e-this.height/2,!0===this.options.shapeProperties.useBorderWithImage){var i=this.options.borderWidth,n=this.options.borderWidthSelected||2*this.options.borderWidth,o=(A?n:i)/this.body.view.scale;t.lineWidth=Math.min(this.width,o),t.beginPath(),t.strokeStyle=A?this.options.color.highlight.border:I?this.options.color.hover.border:this.options.color.border,t.fillStyle=A?this.options.color.highlight.background:I?this.options.color.hover.background:this.options.color.background,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),dO(t).call(t),this.performStroke(t,C),t.closePath()}this._drawImageAtPosition(t,C),this._drawImageLabel(t,g,e,A,I),this.updateBoundingBox(g,e)}},{key:"updateBoundingBox",value:function(t,g){this.resize(),this._updateBoundingBox(t,g),void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(uO),DO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"draw",value:function(t,g,e,A,I,C){this._drawShape(t,"square",2,g,e,A,I,C)}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(yO),OO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"draw",value:function(t,g,e,A,I,C){this._drawShape(t,"hexagon",4,g,e,A,I,C)}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(yO),NO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"draw",value:function(t,g,e,A,I,C){this._drawShape(t,"star",4,g,e,A,I,C)}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(yO),EO=function(t){function g(t,e,A){var I;return Ll(this,g),(I=AO(this,nO(g).call(this,t,e,A)))._setMargins(A),I}return sO(g,t),zl(g,[{key:"resize",value:function(t,g,e){this.needsRefresh(g,e)&&(this.textSize=this.labelModule.getTextSize(t,g,e),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,g,e,A,I,C){this.resize(t,A,I),this.left=g-this.width/2,this.top=e-this.height/2,this.enableShadow(t,C),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,A,I),this.disableShadow(t,C),this.updateBoundingBox(g,e,t,A,I)}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(cO),ZO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"draw",value:function(t,g,e,A,I,C){this._drawShape(t,"triangle",3,g,e,A,I,C)}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(yO),MO=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"draw",value:function(t,g,e,A,I,C){this._drawShape(t,"triangleDown",3,g,e,A,I,C)}},{key:"distanceToBorder",value:function(t,g){return this._distanceToBorder(t,g)}}]),g}(yO),TO=$n("JSON","stringify"),GO=/[\uD800-\uDFFF]/g,BO=/^[\uD800-\uDBFF]$/,RO=/^[\uDC00-\uDFFF]$/,SO=function(t,g,e){var A=e.charAt(g-1),I=e.charAt(g+1);return BO.test(t)&&!RO.test(I)||RO.test(t)&&!BO.test(A)?"\\u"+t.charCodeAt(0).toString(16):t},FO=i((function(){return'"\\udf06\\ud834"'!==TO("\udf06\ud834")||'"\\udead"'!==TO("\udead")}));TO&&P({target:"JSON",stat:!0,forced:FO},{stringify:function(t,g,e){var A=TO.apply(null,arguments);return"string"==typeof A?A.replace(GO,SO):A}}),R.JSON||(R.JSON={stringify:JSON.stringify});var LO,QO=function(t,g,e){return R.JSON.stringify.apply(null,arguments)},YO=!1,WO="background: #FFeeee; color: #dd0000",zO=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"validate",value:function(g,e,A){YO=!1,LO=e;var I=e;return void 0!==A&&(I=e[A]),t.parse(g,I,[]),YO}},{key:"parse",value:function(g,e,A){for(var I in g)g.hasOwnProperty(I)&&t.check(I,g,e,A)}},{key:"check",value:function(g,e,A,I){if(void 0!==A[g]||void 0!==A.__any__){var C=g,i=!0;void 0===A[g]&&void 0!==A.__any__&&(C="__any__",i="object"===t.getType(e[g]));var n=A[C];i&&void 0!==n.__type__&&(n=n.__type__),t.checkFields(g,e,A,C,n,I)}else t.getSuggestion(g,A,I)}},{key:"checkFields",value:function(g,e,A,I,C,i){var n=function(e){console.log("%c"+e+t.printLocation(i,g),WO)},o=t.getType(e[g]),r=C[o];void 0!==r?"array"===t.getType(r)&&-1===Mr(r).call(r,e[g])?(n('Invalid option detected in "'+g+'". Allowed values are:'+t.print(r)+' not "'+e[g]+'". '),YO=!0):"object"===o&&"__any__"!==I&&(i=oi(i,g),t.parse(e[g],A[I],i)):void 0===C.any&&(n('Invalid type received for "'+g+'". Expected: '+t.print($k(C))+". Received ["+o+'] "'+e[g]+'"'),YO=!0)}},{key:"getType",value:function(t){var g=TD(t);return"object"===g?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":qo(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===g?"number":"boolean"===g?"boolean":"string"===g?"string":void 0===g?"undefined":g}},{key:"getSuggestion",value:function(g,e,A){var I,C=t.findInOptions(g,e,A,!1),i=t.findInOptions(g,LO,[],!0);I=void 0!==C.indexMatch?" in "+t.printLocation(C.path,g,"")+'Perhaps it was incomplete? Did you mean: "'+C.indexMatch+'"?\n\n':i.distance<=4&&C.distance>i.distance?" in "+t.printLocation(C.path,g,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(i.path,i.closestMatch,""):C.distance<=8?'. Did you mean "'+C.closestMatch+'"?'+t.printLocation(C.path,g):". Did you mean one of these: "+t.print($k(e))+t.printLocation(A,g),console.log('%cUnknown option detected: "'+g+'"'+I,WO),YO=!0}},{key:"findInOptions",value:function(g,e,A){var I=arguments.length>3&&void 0!==arguments[3]&&arguments[3],C=1e9,i="",n=[],o=g.toLowerCase(),r=void 0;for(var s in e){var a=void 0;if(void 0!==e[s].__type__&&!0===I){var l=t.findInOptions(g,e[s],oi(A,s));C>l.distance&&(i=l.closestMatch,n=l.path,C=l.distance,r=l.indexMatch)}else{var d;-1!==Mr(d=s.toLowerCase()).call(d,o)&&(r=s),C>(a=t.levenshteinDistance(g,s))&&(i=s,n=ri(A),C=a)}}return{closestMatch:i,path:n,distance:C,indexMatch:r}}},{key:"printLocation",value:function(t,g){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",A="\n\n"+e+"options = {\n",I=0;I<t.length;I++){for(var C=0;C<I+1;C++)A+=" ";A+=t[I]+": {\n"}for(var i=0;i<t.length+1;i++)A+=" ";A+=g+"\n";for(var n=0;n<t.length+1;n++){for(var o=0;o<t.length-n;o++)A+=" ";A+="}\n"}return A+"\n\n"}},{key:"print",value:function(t){return QO(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,g){if(0===t.length)return g.length;if(0===g.length)return t.length;var e,A,I=[];for(e=0;e<=g.length;e++)I[e]=[e];for(A=0;A<=t.length;A++)I[0][A]=A;for(e=1;e<=g.length;e++)for(A=1;A<=t.length;A++)g.charAt(e-1)==t.charAt(A-1)?I[e][A]=I[e-1][A-1]:I[e][A]=Math.min(I[e-1][A-1]+1,Math.min(I[e][A-1]+1,I[e-1][A]+1));return I[g.length][t.length]}}]),t}();function jO(t,g){var e=$k(t);if(Kk){var A=Kk(t);g&&(A=ck(A).call(A,(function(g){return ok(t,g).enumerable}))),e.push.apply(e,A)}return e}var PO=function(){function t(g,e,A,I,C,i){Ll(this,t),this.options=Yi(C),this.globalOptions=C,this.defaultOptions=i,this.body=e,this.edges=[],this.id=void 0,this.imagelist=A,this.grouplist=I,this.x=void 0,this.y=void 0,this.baseSize=this.options.size,this.baseFontSize=this.options.font.size,this.predefinedPosition=!1,this.selected=!1,this.hover=!1,this.labelModule=new gO(this.body,this.options,!1),this.setOptions(g)}return zl(t,[{key:"attachEdge",value:function(t){var g;-1===Mr(g=this.edges).call(g,t)&&this.edges.push(t)}},{key:"detachEdge",value:function(t){var g,e,A=Mr(g=this.edges).call(g,t);-1!=A&&dr(e=this.edges).call(e,A,1)}},{key:"setOptions",value:function(g){var e=this.options.shape;if(g){if(void 0!==g.color&&(this._localColor=g.color),void 0!==g.id&&(this.id=g.id),void 0===this.id)throw new Error("Node must have an id");t.checkMass(g,this.id),void 0!==g.x&&(null===g.x?(this.x=void 0,this.predefinedPosition=!1):(this.x=hD(g.x),this.predefinedPosition=!0)),void 0!==g.y&&(null===g.y?(this.y=void 0,this.predefinedPosition=!1):(this.y=hD(g.y),this.predefinedPosition=!0)),void 0!==g.size&&(this.baseSize=g.size),void 0!==g.value&&(g.value=sD(g.value)),t.parseOptions(this.options,g,!0,this.globalOptions,this.grouplist);var A=[g,this.options,this.defaultOptions];return this.chooser=GD.choosify("node",A),this._load_images(),this.updateLabelModule(g),this.updateShape(e),void 0!==g.hidden||void 0!==g.physics}}},{key:"_load_images",value:function(){if(("circularImage"===this.options.shape||"image"===this.options.shape)&&void 0===this.options.image)throw new Error("Option image must be defined for node type '"+this.options.shape+"'");if(void 0!==this.options.image){if(void 0===this.imagelist)throw new Error("Internal Error: No images provided");if("string"==typeof this.options.image)this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id);else{if(void 0===this.options.image.unselected)throw new Error("No unselected image provided");this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id),void 0!==this.options.image.selected?this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id):this.imageObjAlt=void 0}}}},{key:"getFormattingValues",value:function(){var t={color:this.options.color.background,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};return this.selected||this.hover?!0===this.chooser?this.selected?(t.borderWidth*=2,t.color=this.options.color.highlight.background,t.borderColor=this.options.color.highlight.border,t.shadow=this.options.shadow.enabled):this.hover&&(t.color=this.options.color.hover.background,t.borderColor=this.options.color.hover.border,t.shadow=this.options.shadow.enabled):"function"==typeof this.chooser&&(this.chooser(t,this.options.id,this.selected,this.hover),!1===t.shadow&&(t.shadowColor===this.options.shadow.color&&t.shadowSize===this.options.shadow.size&&t.shadowX===this.options.shadow.x&&t.shadowY===this.options.shadow.y||(t.shadow=!0))):t.shadow=this.options.shadow.enabled,t}},{key:"updateLabelModule",value:function(g){void 0!==this.options.label&&null!==this.options.label||(this.options.label=""),t.updateGroupOptions(this.options,function(t){for(var g=1;g<arguments.length;g++){var e,A=null!=arguments[g]?arguments[g]:{};if(g%2)_o(e=jO(Object(A),!0)).call(e,(function(g){tD(t,g,A[g])}));else if(Ik)$x(t,Ik(A));else{var I;_o(I=jO(Object(A))).call(I,(function(g){qx(t,g,ok(A,g))}))}}return t}({},g,{color:g&&g.color||this._localColor||void 0}),this.grouplist);var e=this.grouplist.get(this.options.group,!1),A=[g,this.options,e,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,A),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateShape",value:function(t){if(t===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new hO(this.options,this.body,this.labelModule);break;case"circle":this.shape=new fO(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new pO(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"database":this.shape=new vO(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new mO(this.options,this.body,this.labelModule);break;case"dot":this.shape=new bO(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new wO(this.options,this.body,this.labelModule);break;case"icon":this.shape=new xO(this.options,this.body,this.labelModule);break;case"image":this.shape=new kO(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new DO(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new OO(this.options,this.body,this.labelModule);break;case"star":this.shape=new NO(this.options,this.body,this.labelModule);break;case"text":this.shape=new EO(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new ZO(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new MO(this.options,this.body,this.labelModule);break;default:this.shape=new wO(this.options,this.body,this.labelModule)}this.needsRefresh()}},{key:"select",value:function(){this.selected=!0,this.needsRefresh()}},{key:"unselect",value:function(){this.selected=!1,this.needsRefresh()}},{key:"needsRefresh",value:function(){this.shape.refreshNeeded=!0}},{key:"getTitle",value:function(){return this.options.title}},{key:"distanceToBorder",value:function(t,g){return this.shape.distanceToBorder(t,g)}},{key:"isFixed",value:function(){return this.options.fixed.x&&this.options.fixed.y}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"getLabelSize",value:function(){return this.labelModule.size()}},{key:"setValueRange",value:function(t,g,e){if(void 0!==this.options.value){var A=this.options.scaling.customScalingFunction(t,g,e,this.options.value),I=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var C=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+A*C}this.options.size=this.options.scaling.min+A*I}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}},{key:"draw",value:function(t){var g=this.getFormattingValues();this.shape.draw(t,this.x,this.y,this.selected,this.hover,g)}},{key:"updateBoundingBox",value:function(t){this.shape.updateBoundingBox(this.x,this.y,t)}},{key:"resize",value:function(t){var g=this.getFormattingValues();this.shape.resize(t,this.selected,this.hover,g)}},{key:"getItemsOnPoint",value:function(t){var g=[];return this.labelModule.visible()&&GD.pointInRect(this.labelModule.getSize(),t)&&g.push({nodeId:this.id,labelId:0}),GD.pointInRect(this.shape.boundingBox,t)&&g.push({nodeId:this.id}),g}},{key:"isOverlappingWith",value:function(t){return this.shape.left<t.right&&this.shape.left+this.shape.width>t.left&&this.shape.top<t.bottom&&this.shape.top+this.shape.height>t.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.left<t.right&&this.shape.boundingBox.right>t.left&&this.shape.boundingBox.top<t.bottom&&this.shape.boundingBox.bottom>t.top}}],[{key:"updateGroupOptions",value:function(t,g,e){if(void 0!==e){var A=t.group;if(void 0!==g&&void 0!==g.group&&A!==g.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof A||"string"==typeof A&&""!=A){var I=e.get(A),C=["font"];void 0!==g&&void 0!==g.color&&null!=g.color&&C.push("color"),Ii(C,t,I),t.color=Ni(t.color)}}}},{key:"parseOptions",value:function(g,e){var A=arguments.length>2&&void 0!==arguments[2]&&arguments[2],I=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},C=arguments.length>4?arguments[4]:void 0,i=["color","fixed","shadow"];if(Ii(i,g,e,A),t.checkMass(e),zi(g,e,"shadow",I),void 0!==e.color&&null!==e.color){var n=Ni(e.color);ti(g.color,n)}else!0===A&&null===e.color&&(g.color=Yi(I.color));void 0!==e.fixed&&null!==e.fixed&&("boolean"==typeof e.fixed?(g.fixed.x=e.fixed,g.fixed.y=e.fixed):(void 0!==e.fixed.x&&"boolean"==typeof e.fixed.x&&(g.fixed.x=e.fixed.x),void 0!==e.fixed.y&&"boolean"==typeof e.fixed.y&&(g.fixed.y=e.fixed.y))),!0===A&&null===e.font&&(g.font=Yi(I.font)),t.updateGroupOptions(g,e,C),void 0!==e.scaling&&zi(g.scaling,e.scaling,"label",I.scaling)}},{key:"checkMass",value:function(t,g){if(void 0!==t.mass&&t.mass<=0){var e="";void 0!==g&&(e=" in node id: "+g),console.log("%cNegative or zero mass disallowed"+e+", setting mass to 1.",WO),t.mass=1}}}]),t}(),VO=function(){function t(g,e,A,I){var C,i=this;if(Ll(this,t),this.body=g,this.images=e,this.groups=A,this.layoutEngine=I,this.body.functions.createNode=q(C=this.create).call(C,this),this.nodesListeners={add:function(t,g){i.add(g.items)},update:function(t,g){i.update(g.items,g.data,g.oldData)},remove:function(t,g){i.remove(g.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,g,e,A){if(g===t)return.5;var I=1/(g-t);return Math.max(0,(A-t)*I)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=Yi(this.defaultOptions),this.bindEventListeners()}return zl(t,[{key:"bindEventListeners",value:function(){var t,g,e=this;this.body.emitter.on("refreshNodes",q(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",q(g=this.refresh).call(g,this)),this.body.emitter.on("destroy",(function(){hi(e.nodesListeners,(function(t,g){e.body.data.nodes&&e.body.data.nodes.off(g,t)})),delete e.body.functions.createNode,delete e.nodesListeners.add,delete e.nodesListeners.update,delete e.nodesListeners.remove,delete e.nodesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){if(PO.parseOptions(this.options,t),void 0!==t.shape)for(var g in this.body.nodes)this.body.nodes.hasOwnProperty(g)&&this.body.nodes[g].updateShape();if(void 0!==t.font)for(var e in this.body.nodes)this.body.nodes.hasOwnProperty(e)&&(this.body.nodes[e].updateLabelModule(),this.body.nodes[e].needsRefresh());if(void 0!==t.size)for(var A in this.body.nodes)this.body.nodes.hasOwnProperty(A)&&this.body.nodes[A].needsRefresh();void 0===t.hidden&&void 0===t.physics||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this.body.data.nodes;if(t instanceof _x||t instanceof Hx)this.body.data.nodes=t;else if(qo(t))this.body.data.nodes=new _x,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new _x}if(e&&hi(this.nodesListeners,(function(t,g){e.off(g,t)})),this.body.nodes={},this.body.data.nodes){var A=this;hi(this.nodesListeners,(function(t,g){A.body.data.nodes.on(g,t)}));var I=this.body.data.nodes.getIds();this.add(I,!0)}!1===g&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var g,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],A=[],I=0;I<t.length;I++){g=t[I];var C=this.body.data.nodes.get(g),i=this.create(C);A.push(i),this.body.nodes[g]=i}this.layoutEngine.positionInitially(A),!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t,g,e){for(var A=this.body.nodes,I=!1,C=0;C<t.length;C++){var i=t[C],n=A[i],o=g[C];void 0!==n?n.setOptions(o)&&(I=!0):(I=!0,n=this.create(o),A[i]=n)}I||void 0===e||(I=od(g).call(g,(function(t,g){var A=e[g];return A&&A.level!==t.level}))),!0===I?this.body.emitter.emit("_dataChanged"):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){for(var g=this.body.nodes,e=0;e<t.length;e++){delete g[t[e]]}this.body.emitter.emit("_dataChanged")}},{key:"create",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PO;return new g(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,g=arguments.length>0&&void 0!==arguments[0]&&arguments[0];hi(this.body.nodes,(function(e,A){var I=t.body.data.nodes.get(A);void 0!==I&&(!0===g&&e.setOptions({x:null,y:null}),e.setOptions({fixed:!1}),e.setOptions(I))}))}},{key:"getPositions",value:function(t){var g={};if(void 0!==t){if(!0===qo(t)){for(var e=0;e<t.length;e++)if(void 0!==this.body.nodes[t[e]]){var A=this.body.nodes[t[e]];g[t[e]]={x:Math.round(A.x),y:Math.round(A.y)}}}else if(void 0!==this.body.nodes[t]){var I=this.body.nodes[t];g[t]={x:Math.round(I.x),y:Math.round(I.y)}}}else for(var C=0;C<this.body.nodeIndices.length;C++){var i=this.body.nodes[this.body.nodeIndices[C]];g[this.body.nodeIndices[C]]={x:Math.round(i.x),y:Math.round(i.y)}}return g}},{key:"storePositions",value:function(){var t=[],g=this.body.data.nodes.getDataSet(),e=!0,A=!1,I=void 0;try{for(var C,i=ed(g.get());!(e=(C=i.next()).done);e=!0){var n=C.value,o=n.id,r=this.body.nodes[o],s=Math.round(r.x),a=Math.round(r.y);n.x===s&&n.y===a||t.push({id:o,x:s,y:a})}}catch(t){A=!0,I=t}finally{try{e||null==i.return||i.return()}finally{if(A)throw I}}g.update(t)}},{key:"getBoundingBox",value:function(t){if(void 0!==this.body.nodes[t])return this.body.nodes[t].shape.boundingBox}},{key:"getConnectedNodes",value:function(t,g){var e=[];if(void 0!==this.body.nodes[t])for(var A=this.body.nodes[t],I={},C=0;C<A.edges.length;C++){var i=A.edges[C];"to"!==g&&i.toId==A.id?void 0===I[i.fromId]&&(e.push(i.fromId),I[i.fromId]=!0):"from"!==g&&i.fromId==A.id&&void 0===I[i.toId]&&(e.push(i.toId),I[i.toId]=!0)}return e}},{key:"getConnectedEdges",value:function(t){var g=[];if(void 0!==this.body.nodes[t])for(var e=this.body.nodes[t],A=0;A<e.edges.length;A++)g.push(e.edges[A].id);else console.log("NodeId provided for getConnectedEdges does not exist. Provided: ",t);return g}},{key:"moveNode",value:function(t,g,e){var A=this;void 0!==this.body.nodes[t]?(this.body.nodes[t].x=Number(g),this.body.nodes[t].y=Number(e),Hl((function(){A.body.emitter.emit("startSimulation")}),0)):console.log("Node id supplied to moveNode does not exist. Provided: ",t)}}]),t}(),XO=nk;P({target:"Reflect",stat:!0},{get:function t(g,e){var A,I,C=arguments.length<3?g:arguments[2];return L(g)===C?g[e]:(A=O.f(g,e))?m(A,"value")?A.value:void 0===A.get?void 0:A.get.call(C):p(I=On(g))?t(I,e,C):void 0}});var UO=R.Reflect.get;var _O=function(t,g){for(;!Object.prototype.hasOwnProperty.call(t,g)&&null!==(t=nO(t)););return t},HO=e((function(t){function g(e,A,I){return"undefined"!=typeof Reflect&&UO?t.exports=g=UO:t.exports=g=function(t,g,e){var A=_O(t,g);if(A){var I=XO(A,g);return I.get?I.get.call(e):I.value}},g(e,A,I||e)}t.exports=g})),JO=Math.hypot,KO=Math.abs,qO=Math.sqrt,$O=!!JO&&JO(1/0,NaN)!==1/0;P({target:"Math",stat:!0,forced:$O},{hypot:function(t,g){for(var e,A,I=0,C=0,i=arguments.length,n=0;C<i;)n<(e=KO(arguments[C++]))?(I=I*(A=n/e)*A+1,n=e):I+=e>0?(A=e/n)*A:e;return n===1/0?1/0:n*qO(I)}});var tN=R.Math.hypot,gN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"transform",value:function(t,g){qo(t)||(t=[t]);for(var e=g.point.x,A=g.point.y,I=g.angle,C=g.length,i=0;i<t.length;++i){var n=t[i],o=n.x*Math.cos(I)-n.y*Math.sin(I),r=n.x*Math.sin(I)+n.y*Math.cos(I);n.x=e+C*o,n.y=A+C*r}}},{key:"drawPath",value:function(t,g){t.beginPath(),t.moveTo(g[0].x,g[0].y);for(var e=1;e<g.length;++e)t.lineTo(g[e].x,g[e].y);t.closePath()}}]),t}(),eN=function(t){function g(){return Ll(this,g),AO(this,nO(g).apply(this,arguments))}return sO(g,t),zl(g,null,[{key:"draw",value:function(t,g){if(g.image){t.save(),t.translate(g.point.x,g.point.y),t.rotate(Math.PI/2+g.angle);var e=null!=g.imageWidth?g.imageWidth:g.image.width,A=null!=g.imageHeight?g.imageHeight:g.image.height;g.image.drawImageAtPosition(t,1,-e/2,0,e,A),t.restore()}return!1}}]),g}(gN),AN=function(t){function g(){return Ll(this,g),AO(this,nO(g).apply(this,arguments))}return sO(g,t),zl(g,null,[{key:"draw",value:function(t,g){var e=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];return gN.transform(e,g),gN.drawPath(t,e),!0}}]),g}(gN),IN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e=[{x:-1,y:0},{x:0,y:.3},{x:-.4,y:0},{x:0,y:-.3}];return gN.transform(e,g),gN.drawPath(t,e),!0}}]),t}(),CN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e={x:-.4,y:0};gN.transform(e,g),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var A=Math.PI,I=g.angle-A/2,C=g.angle+A/2;return t.beginPath(),t.arc(e.x,e.y,.4*g.length,I,C,!1),t.stroke(),!0}}]),t}(),iN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e={x:-.3,y:0};gN.transform(e,g),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var A=Math.PI,I=g.angle+A/2,C=g.angle+3*A/2;return t.beginPath(),t.arc(e.x,e.y,.4*g.length,I,C,!1),t.stroke(),!0}}]),t}(),nN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return gN.transform(e,g),gN.drawPath(t,e),!0}}]),t}(),oN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return gN.transform(e,g),gN.drawPath(t,e),!0}}]),t}(),rN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e={x:-.4,y:0};return gN.transform(e,g),$(t,e.x,e.y,.4*g.length),!0}}]),t}(),sN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];return gN.transform(e,g),gN.drawPath(t,e),!0}}]),t}(),aN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e=[{x:0,y:.3},{x:0,y:-.3},{x:-.6,y:-.3},{x:-.6,y:.3}];return gN.transform(e,g),gN.drawPath(t,e),!0}}]),t}(),lN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e=[{x:0,y:0},{x:-.5,y:-.3},{x:-1,y:0},{x:-.5,y:.3}];return gN.transform(e,g),gN.drawPath(t,e),!0}}]),t}(),dN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e=[{x:-1,y:.3},{x:-.5,y:0},{x:-1,y:-.3},{x:0,y:0}];return gN.transform(e,g),gN.drawPath(t,e),!0}}]),t}(),cN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"draw",value:function(t,g){var e;switch(g.type&&(e=g.type.toLowerCase()),e){case"image":return eN.draw(t,g);case"circle":return rN.draw(t,g);case"box":return aN.draw(t,g);case"crow":return IN.draw(t,g);case"curve":return CN.draw(t,g);case"diamond":return lN.draw(t,g);case"inv_curve":return iN.draw(t,g);case"triangle":return nN.draw(t,g);case"inv_triangle":return oN.draw(t,g);case"bar":return sN.draw(t,g);case"vee":return dN.draw(t,g);case"arrow":default:return AN.draw(t,g)}}}]),t}();function hN(t,g){var e=$k(t);if(Kk){var A=Kk(t);g&&(A=ck(A).call(A,(function(g){return ok(t,g).enumerable}))),e.push.apply(e,A)}return e}var uN=function(){function t(g,e,A){Ll(this,t),this._body=e,this._labelModule=A,this.color={},this.colorDirty=!0,this.hoverWidth=1.5,this.selectionWidth=2,this.setOptions(g),this.fromPoint=this.from,this.toPoint=this.to}return zl(t,[{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to]}},{key:"cleanup",value:function(){return!1}},{key:"setOptions",value:function(t){this.options=t,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.id=this.options.id}},{key:"drawLine",value:function(t,g,e,A){var I=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,g),t.lineWidth=g.width,!1!==g.dashes?this._drawDashedLine(t,g,I):this._drawLine(t,g,I)}},{key:"_drawLine",value:function(t,g,e,A,I){if(this.from!=this.to)this._line(t,g,e,A,I);else{var C=this._getCircleData(t),i=bD(C,3),n=i[0],o=i[1],r=i[2];this._circle(t,g,n,o,r)}}},{key:"_drawDashedLine",value:function(t,g,e,A,I){t.lineCap="round";var C=qo(g.dashes)?g.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(C),t.lineDashOffset=0,this.from!=this.to)this._line(t,g,e);else{var i=this._getCircleData(t),n=bD(i,3),o=n[0],r=n[1],s=n[2];this._circle(t,g,o,r,s)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)At(t,this.from.x,this.from.y,this.to.x,this.to.y,C);else{var a=this._getCircleData(t),l=bD(a,3),d=l[0],c=l[1],h=l[2];this._circle(t,g,d,c,h)}this.enableShadow(t,g),t.stroke(),this.disableShadow(t,g)}}},{key:"findBorderPosition",value:function(t,g,e){return this.from!=this.to?this._findBorderPosition(t,g,e):this._findBorderPositionCircle(t,g,e)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var g,e=WD(g=this._getCircleData(t)).call(g,0,2),A=bD(e,2),I=A[0],C=A[1];return{from:this._findBorderPositionCircle(this.from,t,{x:I,y:C,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:I,y:C,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var g,e,A=this.from,I=this.options.selfReferenceSize;return void 0!==t&&void 0===A.shape.width&&A.shape.resize(t),A.shape.width>A.shape.height?(g=A.x+.5*A.shape.width,e=A.y-I):(g=A.x+I,e=A.y-.5*A.shape.height),[g,e,I]}},{key:"_pointOnCircle",value:function(t,g,e,A){var I=2*A*Math.PI;return{x:t+e*Math.cos(I),y:g-e*Math.sin(I)}}},{key:"_findBorderPositionCircle",value:function(t,g,e){var A,I=e.x,C=e.y,i=e.low,n=e.high,o=e.direction,r=this.options.selfReferenceSize,s=.5*(i+n),a=0;do{s=.5*(i+n),A=this._pointOnCircle(I,C,r,s);var l=Math.atan2(t.y-A.y,t.x-A.x),d=t.distanceToBorder(g,l)-Math.sqrt(Math.pow(A.x-t.x,2)+Math.pow(A.y-t.y,2));if(Math.abs(d)<.05)break;d>0?o>0?i=s:n=s:o>0?n=s:i=s,++a}while(i<=n&&a<10);return function(t){for(var g=1;g<arguments.length;g++){var e,A=null!=arguments[g]?arguments[g]:{};if(g%2)_o(e=hN(Object(A),!0)).call(e,(function(g){tD(t,g,A[g])}));else if(Ik)$x(t,Ik(A));else{var I;_o(I=hN(Object(A))).call(I,(function(g){qx(t,g,ok(A,g))}))}}return t}({},A,{t:s})}},{key:"getLineWidth",value:function(t,g){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===g?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,g){if(!1!==g.inheritsColor){if("both"===g.inheritsColor&&this.from.id!==this.to.id){var e=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),A=this.from.options.color.highlight.border,I=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(A=Di(this.from.options.color.border,g.opacity),I=Di(this.to.options.color.border,g.opacity)):!0===this.from.selected&&!1===this.to.selected?I=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(A=this.from.options.color.border),e.addColorStop(0,A),e.addColorStop(1,I),e}return"to"===g.inheritsColor?Di(this.to.options.color.border,g.opacity):Di(this.from.options.color.border,g.opacity)}return Di(g.color,g.opacity)}},{key:"_circle",value:function(t,g,e,A,I){this.enableShadow(t,g),t.beginPath(),t.arc(e,A,I,0,2*Math.PI,!1),t.stroke(),this.disableShadow(t,g)}},{key:"getDistanceToEdge",value:function(t,g,e,A,I,C){if(this.from!=this.to)return this._getDistanceToEdge(t,g,e,A,I,C);var i=this._getCircleData(void 0),n=bD(i,3),o=n[0],r=n[1],s=n[2],a=o-I,l=r-C;return Math.abs(Math.sqrt(a*a+l*l)-s)}},{key:"_getDistanceToLine",value:function(t,g,e,A,I,C){var i=e-t,n=A-g,o=((I-t)*i+(C-g)*n)/(i*i+n*n);o>1?o=1:o<0&&(o=0);var r=t+o*i-I,s=g+o*n-C;return Math.sqrt(r*r+s*s)}},{key:"getArrowData",value:function(t,g,e,A,I,C){var i,n,o,r,s,a,l,d=C.width;"from"===g?(o=this.from,r=this.to,s=C.fromArrowScale<0,a=Math.abs(C.fromArrowScale),l=C.fromArrowType):"to"===g?(o=this.to,r=this.from,s=C.toArrowScale<0,a=Math.abs(C.toArrowScale),l=C.toArrowType):(o=this.to,r=this.from,s=C.middleArrowScale<0,a=Math.abs(C.middleArrowScale),l=C.middleArrowType);var c=15*a+3*d;if(o!=r){var h=c/tN(o.x-r.x,o.y-r.y);if("middle"!==g)if(!0===this.options.smooth.enabled){var u=this._findBorderPosition(o,t,{via:e}),f=this.getPoint(u.t+h*("from"===g?1:-1),e);i=Math.atan2(u.y-f.y,u.x-f.x),n=u}else i=Math.atan2(o.y-r.y,o.x-r.x),n=this._findBorderPosition(o,t);else{var p=(s?-h:h)/2,v=this.getPoint(.5+p,e),y=this.getPoint(.5-p,e);i=Math.atan2(v.y-y.y,v.x-y.x),n=this.getPoint(.5,e)}}else{var m=this._getCircleData(t),b=bD(m,3),w=b[0],x=b[1],k=b[2];if("from"===g){var D=this._findBorderPositionCircle(this.from,t,{x:w,y:x,low:.25,high:.6,direction:-1});i=-2*D.t*Math.PI+1.5*Math.PI+.1*Math.PI,n=D}else if("to"===g){var O=this._findBorderPositionCircle(this.from,t,{x:w,y:x,low:.6,high:1,direction:1});i=-2*O.t*Math.PI+1.5*Math.PI-1.1*Math.PI,n=O}else n=this._pointOnCircle(w,x,k,.175),i=3.9269908169872414}return{point:n,core:{x:n.x-.9*c*Math.cos(i),y:n.y-.9*c*Math.sin(i)},angle:i,length:c,type:l}}},{key:"drawArrowHead",value:function(t,g,e,A,I){t.strokeStyle=this.getColor(t,g),t.fillStyle=t.strokeStyle,t.lineWidth=g.width,cN.draw(t,I)&&(this.enableShadow(t,g),dO(t).call(t),this.disableShadow(t,g))}},{key:"enableShadow",value:function(t,g){!0===g.shadow&&(t.shadowColor=g.shadowColor,t.shadowBlur=g.shadowSize,t.shadowOffsetX=g.shadowX,t.shadowOffsetY=g.shadowY)}},{key:"disableShadow",value:function(t,g){!0===g.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,g){if(!1!==g.background){var e={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=g.backgroundColor,t.lineWidth=g.backgroundSize,this.setStrokeDashed(t,g.backgroundDashes),t.stroke(),t.strokeStyle=e.strokeStyle,t.lineWidth=e.lineWidth,t.dashes=e.dashes,this.setStrokeDashed(t,g.dashes)}}},{key:"setStrokeDashed",value:function(t,g){if(!1!==g)if(void 0!==t.setLineDash){var e=qo(g)?g:[5,5];t.setLineDash(e)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==t.setLineDash?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function fN(t,g){var e=$k(t);if(Kk){var A=Kk(t);g&&(A=ck(A).call(A,(function(g){return ok(t,g).enumerable}))),e.push.apply(e,A)}return e}function pN(t){for(var g=1;g<arguments.length;g++){var e,A=null!=arguments[g]?arguments[g]:{};if(g%2)_o(e=fN(Object(A),!0)).call(e,(function(g){tD(t,g,A[g])}));else if(Ik)$x(t,Ik(A));else{var I;_o(I=fN(Object(A))).call(I,(function(g){qx(t,g,ok(A,g))}))}}return t}var vN=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"_findBorderPositionBezier",value:function(t,g){var e,A,I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),C=10,i=.2,n=!1,o=1,r=0,s=this.to;t.id===this.from.id&&(s=this.from,n=!0);var a=0;do{A=.5*(r+o),e=this.getPoint(A,I);var l=Math.atan2(s.y-e.y,s.x-e.x),d=s.distanceToBorder(g,l),c=Math.sqrt(Math.pow(e.x-s.x,2)+Math.pow(e.y-s.y,2)),h=d-c;if(Math.abs(h)<i)break;h<0?!1===n?r=A:o=A:!1===n?o=A:r=A,++a}while(r<=o&&a<C);return pN({},e,{t:A})}},{key:"_getDistanceToBezierEdge",value:function(t,g,e,A,I,C,i){var n,o,r,s,a,l=1e9,d=t,c=g;for(o=1;o<10;o++)r=.1*o,s=Math.pow(1-r,2)*t+2*r*(1-r)*i.x+Math.pow(r,2)*e,a=Math.pow(1-r,2)*g+2*r*(1-r)*i.y+Math.pow(r,2)*A,o>0&&(l=(n=this._getDistanceToLine(d,c,s,a,I,C))<l?n:l),d=s,c=a;return l}},{key:"_bezierCurve",value:function(t,g,e,A){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),null!=e&&null!=e.x?null!=A&&null!=A.x?t.bezierCurveTo(e.x,e.y,A.x,A.y,this.toPoint.x,this.toPoint.y):t.quadraticCurveTo(e.x,e.y,this.toPoint.x,this.toPoint.y):t.lineTo(this.toPoint.x,this.toPoint.y),this.drawBackground(t,g),this.enableShadow(t,g),t.stroke(),this.disableShadow(t,g)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}}]),g}(uN),yN=function(t){function g(t,e,A){var I;return Ll(this,g),(I=AO(this,nO(g).call(this,t,e,A))).via=I.via,I._boundFunction=function(){I.positionBezierNode()},I._body.emitter.on("_repositionBezierNodes",I._boundFunction),I}return sO(g,t),zl(g,[{key:"setOptions",value:function(t){HO(nO(g.prototype),"setOptions",this).call(this,t);var e=!1;this.options.physics!==t.physics&&(e=!0),this.options=t,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),!0===e&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],void 0===this.from||void 0===this.to||!1===this.options.physics?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),void 0!==this.via&&(delete this._body.nodes[this.via.id],this.via=void 0,!0)}},{key:"setupSupportNode",value:function(){if(void 0===this.via){var t="edgeId:"+this.id,g=this._body.functions.createNode({id:t,shape:"circle",physics:!0,hidden:!0});this._body.nodes[t]=g,this.via=g,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){void 0!==this.via&&void 0!==this.from&&void 0!==this.to?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):void 0!==this.via&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(t,g,e){this._bezierCurve(t,g,e)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var e=this._getCircleData(),A=bD(e,3),I=A[0],C=A[1],i=A[2],n=2*Math.PI*(1-t);return{x:I+i*Math.sin(n),y:C+i-i*(1-Math.cos(n))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*g.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*g.y+Math.pow(t,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,g){return this._findBorderPositionBezier(t,g,this.via)}},{key:"_getDistanceToEdge",value:function(t,g,e,A,I,C){return this._getDistanceToBezierEdge(t,g,e,A,I,C,this.via)}}]),g}(vN),mN=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"_line",value:function(t,g,e){this._bezierCurve(t,g,e)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t,g,e=this.options.smooth.roundness,A=this.options.smooth.type,I=Math.abs(this.from.x-this.to.x),C=Math.abs(this.from.y-this.to.y);if("discrete"===A||"diagonalCross"===A){var i,n;i=n=I<=C?e*C:e*I,this.from.x>this.to.x&&(i=-i),this.from.y>=this.to.y&&(n=-n);var o=this.from.x+i,r=this.from.y+n;return"discrete"===A&&(I<=C?o=I<e*C?this.from.x:o:r=C<e*I?this.from.y:r),{x:o,y:r}}if("straightCross"===A){var s=(1-e)*I,a=(1-e)*C;return I<=C?(s=0,this.from.y<this.to.y&&(a=-a)):(this.from.x<this.to.x&&(s=-s),a=0),{x:this.to.x+s,y:this.to.y+a}}if("horizontal"===A){var l=(1-e)*I;return this.from.x<this.to.x&&(l=-l),{x:this.to.x+l,y:this.from.y}}if("vertical"===A){var d=(1-e)*C;return this.from.y<this.to.y&&(d=-d),{x:this.from.x,y:this.to.y+d}}if("curvedCW"===A){I=this.to.x-this.from.x,C=this.from.y-this.to.y;var c=Math.sqrt(I*I+C*C),h=Math.PI,u=(Math.atan2(C,I)+(.5*e+.5)*h)%(2*h);return{x:this.from.x+(.5*e+.5)*c*Math.sin(u),y:this.from.y+(.5*e+.5)*c*Math.cos(u)}}if("curvedCCW"===A){I=this.to.x-this.from.x,C=this.from.y-this.to.y;var f=Math.sqrt(I*I+C*C),p=Math.PI,v=(Math.atan2(C,I)+(.5*-e+.5)*p)%(2*p);return{x:this.from.x+(.5*e+.5)*f*Math.sin(v),y:this.from.y+(.5*e+.5)*f*Math.cos(v)}}t=g=I<=C?e*C:e*I,this.from.x>this.to.x&&(t=-t),this.from.y>=this.to.y&&(g=-g);var y=this.from.x+t,m=this.from.y+g;return I<=C?y=this.from.x<=this.to.x?this.to.x<y?this.to.x:y:this.to.x>y?this.to.x:y:m=this.from.y>=this.to.y?this.to.y>m?this.to.y:m:this.to.y<m?this.to.y:m,{x:y,y:m}}},{key:"_findBorderPosition",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,g,e.via)}},{key:"_getDistanceToEdge",value:function(t,g,e,A,I,C){var i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,g,e,A,I,C,i)}},{key:"getPoint",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),e=t,A=Math.pow(1-e,2)*this.fromPoint.x+2*e*(1-e)*g.x+Math.pow(e,2)*this.toPoint.x,I=Math.pow(1-e,2)*this.fromPoint.y+2*e*(1-e)*g.y+Math.pow(e,2)*this.toPoint.y;return{x:A,y:I}}}]),g}(vN),bN=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"_line",value:function(t,g,e){var A=e[0],I=e[1];this._bezierCurve(t,g,A,I)}},{key:"_getViaCoordinates",value:function(){var t,g,e,A,I=this.from.x-this.to.x,C=this.from.y-this.to.y,i=this.options.smooth.roundness;return(Math.abs(I)>Math.abs(C)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(g=this.from.y,A=this.to.y,t=this.from.x-i*I,e=this.to.x+i*I):(g=this.from.y-i*C,A=this.to.y+i*C,t=this.from.x,e=this.to.x),[{x:t,y:g},{x:e,y:A}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,g){return this._findBorderPositionBezier(t,g)}},{key:"_getDistanceToEdge",value:function(t,g,e,A,I,C){var i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),n=bD(i,2),o=n[0],r=n[1];return this._getDistanceToBezierEdge2(t,g,e,A,I,C,o,r)}},{key:"getPoint",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),e=bD(g,2),A=e[0],I=e[1],C=t,i=[Math.pow(1-C,3),3*C*Math.pow(1-C,2),3*Math.pow(C,2)*(1-C),Math.pow(C,3)],n=i[0]*this.fromPoint.x+i[1]*A.x+i[2]*I.x+i[3]*this.toPoint.x,o=i[0]*this.fromPoint.y+i[1]*A.y+i[2]*I.y+i[3]*this.toPoint.y;return{x:n,y:o}}}]),g}(function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"_getDistanceToBezierEdge2",value:function(t,g,e,A,I,C,i,n){for(var o=1e9,r=t,s=g,a=[0,0,0,0],l=1;l<10;l++){var d=.1*l;a[0]=Math.pow(1-d,3),a[1]=3*d*Math.pow(1-d,2),a[2]=3*Math.pow(d,2)*(1-d),a[3]=Math.pow(d,3);var c=a[0]*t+a[1]*i.x+a[2]*n.x+a[3]*e,h=a[0]*g+a[1]*i.y+a[2]*n.y+a[3]*A;if(l>0){var u=this._getDistanceToLine(r,s,c,h,I,C);o=u<o?u:o}r=c,s=h}return o}}]),g}(vN)),wN=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"_line",value:function(t,g){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,g),t.stroke(),this.disableShadow(t,g)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,g){var e=this.to,A=this.from;t.id===this.from.id&&(e=this.from,A=this.to);var I=Math.atan2(e.y-A.y,e.x-A.x),C=e.x-A.x,i=e.y-A.y,n=Math.sqrt(C*C+i*i),o=(n-t.distanceToBorder(g,I))/n;return{x:(1-o)*A.x+o*e.x,y:(1-o)*A.y+o*e.y,t:0}}},{key:"_getDistanceToEdge",value:function(t,g,e,A,I,C){return this._getDistanceToLine(t,g,e,A,I,C)}}]),g}(uN),xN=function(){function t(g,e,A,I,C){if(Ll(this,t),void 0===e)throw new Error("No body provided");this.options=Yi(I),this.globalOptions=I,this.defaultOptions=C,this.body=e,this.imagelist=A,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new gO(this.body,this.options,!0),this.setOptions(g)}return zl(t,[{key:"setOptions",value:function(g){if(g){var e=void 0!==g.physics&&this.options.physics!==g.physics||void 0!==g.hidden&&(this.options.hidden||!1)!==(g.hidden||!1)||void 0!==g.from&&this.options.from!==g.from||void 0!==g.to&&this.options.to!==g.to;t.parseOptions(this.options,g,!0,this.globalOptions),void 0!==g.id&&(this.id=g.id),void 0!==g.from&&(this.fromId=g.from),void 0!==g.to&&(this.toId=g.to),void 0!==g.title&&(this.title=g.title),void 0!==g.value&&(g.value=sD(g.value));var A=[g,this.options,this.defaultOptions];return this.chooser=GD.choosify("edge",A),this.updateLabelModule(g),e=this.updateEdgeType()||e,this._setInteractionWidths(),this.connect(),e}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,g=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,e=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,A=this.options.color.inherit,I={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:e,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:g,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:A?void 0:this.options.color.color,inheritsColor:A,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var C=this.options.selectionWidth;"function"==typeof C?I.width=C(I.width):"number"==typeof C&&(I.width+=C),I.width=Math.max(I.width,.3/this.body.view.scale),I.color=this.options.color.highlight,I.shadow=this.options.shadow.enabled}else if(this.hover){var i=this.options.hoverWidth;"function"==typeof i?I.width=i(I.width):"number"==typeof i&&(I.width+=i),I.width=Math.max(I.width,.3/this.body.view.scale),I.color=this.options.color.hover,I.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(I,this.options.id,this.selected,this.hover),void 0!==I.color&&(I.inheritsColor=!1),!1===I.shadow&&(I.shadowColor===this.options.shadow.color&&I.shadowSize===this.options.shadow.size&&I.shadowX===this.options.shadow.x&&I.shadowY===this.options.shadow.y||(I.shadow=!0)));else I.shadow=this.options.shadow.enabled,I.width=Math.max(I.width,.3/this.body.view.scale);return I}},{key:"updateLabelModule",value:function(t){var g=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,g),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,g=!1,e=!0;return void 0!==this.edgeType&&((this.edgeType instanceof yN&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof bN&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof mN&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof wN&&!1===t.type.enabled)&&(e=!1),!0===e&&(g=this.cleanup())),!0===e?!0===t.enabled?"dynamic"===t.type?(g=!0,this.edgeType=new yN(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new bN(this.options,this.body,this.labelModule):this.edgeType=new mN(this.options,this.body,this.labelModule):this.edgeType=new wN(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),g}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,g,e){if(void 0!==this.options.value){var A=this.options.scaling.customScalingFunction(t,g,e,this.options.value),I=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var C=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+A*C}this.options.width=this.options.scaling.min+A*I}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var g=this.getFormattingValues();if(!g.hidden){var e=this.edgeType.getViaNode(),A={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,g.fromArrow&&(A.from=this.edgeType.getArrowData(t,"from",e,this.selected,this.hover,g),!1===g.arrowStrikethrough&&(this.edgeType.fromPoint=A.from.core),g.fromArrowSrc&&(A.from.image=this.imagelist.load(g.fromArrowSrc)),g.fromArrowImageWidth&&(A.from.imageWidth=g.fromArrowImageWidth),g.fromArrowImageHeight&&(A.from.imageHeight=g.fromArrowImageHeight)),g.toArrow&&(A.to=this.edgeType.getArrowData(t,"to",e,this.selected,this.hover,g),!1===g.arrowStrikethrough&&(this.edgeType.toPoint=A.to.core),g.toArrowSrc&&(A.to.image=this.imagelist.load(g.toArrowSrc)),g.toArrowImageWidth&&(A.to.imageWidth=g.toArrowImageWidth),g.toArrowImageHeight&&(A.to.imageHeight=g.toArrowImageHeight)),g.middleArrow&&(A.middle=this.edgeType.getArrowData(t,"middle",e,this.selected,this.hover,g),g.middleArrowSrc&&(A.middle.image=this.imagelist.load(g.middleArrowSrc)),g.middleArrowImageWidth&&(A.middle.imageWidth=g.middleArrowImageWidth),g.middleArrowImageHeight&&(A.middle.imageHeight=g.middleArrowImageHeight)),this.edgeType.drawLine(t,g,this.selected,this.hover,e),this.drawArrows(t,A,g),this.drawLabel(t,e)}}},{key:"drawArrows",value:function(t,g,e){e.fromArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,g.from),e.middleArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,g.middle),e.toArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,g.to)}},{key:"drawLabel",value:function(t,g){if(void 0!==this.options.label){var e=this.from,A=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),e.id!=A.id){this.labelModule.pointToSelf=!1;var I=this.edgeType.getPoint(.5,g);t.save();var C=this._getRotation(t);0!=C.angle&&(t.translate(C.x,C.y),t.rotate(C.angle)),this.labelModule.draw(t,I.x,I.y,this.selected,this.hover),t.restore()}else{var i,n;this.labelModule.pointToSelf=!0;var o=this.options.selfReferenceSize;e.shape.width>e.shape.height?(i=e.x+.5*e.shape.width,n=e.y-o):(i=e.x+o,n=e.y-.5*e.shape.height),I=this._pointOnCircle(i,n,o,.125),this.labelModule.draw(t,I.x,I.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var g=[];if(this.labelModule.visible()){var e=this._getRotation();GD.pointInRect(this.labelModule.getSize(),t,e)&&g.push({edgeId:this.id,labelId:0})}var A={left:t.x,top:t.y};return this.isOverlappingWith(A)&&g.push({edgeId:this.id}),g}},{key:"isOverlappingWith",value:function(t){if(this.connected){var g=this.from.x,e=this.from.y,A=this.to.x,I=this.to.y,C=t.left,i=t.top;return this.edgeType.getDistanceToEdge(g,e,A,I,C,i)<10}return!1}},{key:"_getRotation",value:function(t){var g=this.edgeType.getViaNode(),e=this.edgeType.getPoint(.5,g);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,e.x,e.y);var A={x:e.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return A;if("horizontal"===this.options.font.align)return A;var I=this.from.y-this.to.y,C=this.from.x-this.to.x,i=Math.atan2(I,C);return(i<-1&&C<0||i>0&&C<0)&&(i+=Math.PI),A.angle=i,A}},{key:"_pointOnCircle",value:function(t,g,e,A){var I=2*A*Math.PI;return{x:t+e*Math.cos(I),y:g-e*Math.sin(I)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},I=arguments.length>4&&void 0!==arguments[4]&&arguments[4],C=["arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","to","title","value","width","font","chosen","widthConstraint"];if(Ai(C,t,g,e),GD.isValidLabel(g.label)?t.label=g.label:GD.isValidLabel(t.label)||(t.label=void 0),zi(t,g,"smooth",A),zi(t,g,"shadow",A),zi(t,g,"background",A),void 0!==g.dashes&&null!==g.dashes?t.dashes=g.dashes:!0===e&&null===g.dashes&&(t.dashes=Br(A.dashes)),void 0!==g.scaling&&null!==g.scaling?(void 0!==g.scaling.min&&(t.scaling.min=g.scaling.min),void 0!==g.scaling.max&&(t.scaling.max=g.scaling.max),zi(t.scaling,g.scaling,"label",A.scaling)):!0===e&&null===g.scaling&&(t.scaling=Br(A.scaling)),void 0!==g.arrows&&null!==g.arrows)if("string"==typeof g.arrows){var i=g.arrows.toLowerCase();t.arrows.to.enabled=-1!=Mr(i).call(i,"to"),t.arrows.middle.enabled=-1!=Mr(i).call(i,"middle"),t.arrows.from.enabled=-1!=Mr(i).call(i,"from")}else{if("object"!==TD(g.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+QO(g.arrows));zi(t.arrows,g.arrows,"to",A.arrows),zi(t.arrows,g.arrows,"middle",A.arrows),zi(t.arrows,g.arrows,"from",A.arrows)}else!0===e&&null===g.arrows&&(t.arrows=Br(A.arrows));if(void 0!==g.color&&null!==g.color){var n=JC(g.color)?{color:g.color,highlight:g.color,hover:g.color,inherit:!1,opacity:1}:g.color,o=t.color;if(I)Ci(o,A.color,!1,e);else for(var r in o)o.hasOwnProperty(r)&&delete o[r];if(JC(o))o.color=o,o.highlight=o,o.hover=o,o.inherit=!1,void 0===n.opacity&&(o.opacity=1);else{var s=!1;void 0!==n.color&&(o.color=n.color,s=!0),void 0!==n.highlight&&(o.highlight=n.highlight,s=!0),void 0!==n.hover&&(o.hover=n.hover,s=!0),void 0!==n.inherit&&(o.inherit=n.inherit),void 0!==n.opacity&&(o.opacity=Math.min(1,Math.max(0,n.opacity))),!0===s?o.inherit=!1:void 0===o.inherit&&(o.inherit="from")}}else!0===e&&null===g.color&&(t.color=Yi(A.color));!0===e&&null===g.font&&(t.font=Yi(A.font))}}]),t}(),kN=function(){function t(g,e,A){var I,C=this;Ll(this,t),this.body=g,this.images=e,this.groups=A,this.body.functions.createEdge=q(I=this.create).call(I,this),this.edgesListeners={add:function(t,g){C.add(g.items)},update:function(t,g){C.update(g.items)},remove:function(t,g){C.remove(g.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,g,e,A){if(g===t)return.5;var I=1/(g-t);return Math.max(0,(A-t)*I)}},selectionWidth:1.5,selfReferenceSize:20,shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Ci(this.options,this.defaultOptions),this.bindEventListeners()}return zl(t,[{key:"bindEventListeners",value:function(){var t,g,e=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var A=!1;for(var I in e.body.edges)if(e.body.edges.hasOwnProperty(I)){var C=e.body.edges[I],i=e.body.data.edges.get(I);if(null!=i){var n=i.smooth;void 0!==n&&!0===n.enabled&&"dynamic"===n.type&&(void 0===t?C.setOptions({smooth:!1}):C.setOptions({smooth:{type:t}}),A=!0)}}!0===g&&!0===A&&e.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",(function(){e.reconnectEdges()})),this.body.emitter.on("refreshEdges",q(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",q(g=this.refresh).call(g,this)),this.body.emitter.on("destroy",(function(){hi(e.edgesListeners,(function(t,g){e.body.data.edges&&e.body.data.edges.off(g,t)})),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){xN.parseOptions(this.options,t,!0,this.defaultOptions,!0);var g=!1;if(void 0!==t.smooth)for(var e in this.body.edges)this.body.edges.hasOwnProperty(e)&&(g=this.body.edges[e].updateEdgeType()||g);if(void 0!==t.font)for(var A in this.body.edges)this.body.edges.hasOwnProperty(A)&&this.body.edges[A].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==g||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var g=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],A=this.body.data.edges;if(t instanceof _x||t instanceof Hx)this.body.data.edges=t;else if(qo(t))this.body.data.edges=new _x,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new _x}if(A&&hi(this.edgesListeners,(function(t,g){A.off(g,t)})),this.body.edges={},this.body.data.edges){hi(this.edgesListeners,(function(t,e){g.body.data.edges.on(e,t)}));var I=this.body.data.edges.getIds();this.add(I,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this.body.edges,A=this.body.data.edges,I=0;I<t.length;I++){var C=t[I],i=e[C];i&&i.disconnect();var n=A.get(C,{showInternalIds:!0});e[C]=this.create(n)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===g&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t){for(var g=this.body.edges,e=this.body.data.edges,A=!1,I=0;I<t.length;I++){var C=t[I],i=e.get(C),n=g[C];void 0!==n?(n.disconnect(),A=n.setOptions(i)||A,n.connect()):(this.body.edges[C]=this.create(i),A=!0)}!0===A?(this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),this.body.emitter.emit("_dataChanged")):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var e=this.body.edges;hi(t,(function(t){var g=e[t];void 0!==g&&g.remove()})),g&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;hi(this.body.edges,(function(g,e){var A=t.body.data.edges.get(e);void 0!==A&&g.setOptions(A)}))}},{key:"create",value:function(t){return new xN(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,g=this.body.nodes,e=this.body.edges;for(t in g)g.hasOwnProperty(t)&&(g[t].edges=[]);for(t in e)if(e.hasOwnProperty(t)){var A=e[t];A.from=null,A.to=null,A.connect()}}},{key:"getConnectedNodes",value:function(t){var g=[];if(void 0!==this.body.edges[t]){var e=this.body.edges[t];void 0!==e.fromId&&g.push(e.fromId),void 0!==e.toId&&g.push(e.toId)}return g}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,g=[];hi(this.body.edges,(function(e,A){var I=t.body.nodes[e.toId],C=t.body.nodes[e.fromId];void 0!==I&&!0===I.isCluster||void 0!==C&&!0===C.isCluster||void 0!==I&&void 0!==C||g.push(A)})),this.remove(g,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(null!=t){var g=this.body.edges,e=[];_o(t).call(t,(function(t,A){void 0===g[A]&&e.push(A)})),this.add(e,!0)}}}]),t}();P({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var DN=R.Date.now,ON=function(){function t(g,e,A){Ll(this,t),this.body=g,this.physicsBody=e,this.barnesHutTree,this.setOptions(A),this.randomSeed=5}return zl(t,[{key:"setOptions",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"seededRandom",value:function(){var t=1e4*Math.sin(this.randomSeed++);return t-Math.floor(t)}},{key:"solve",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,g=this.body.nodes,e=this.physicsBody.physicsNodeIndices,A=e.length,I=this._formBarnesHutTree(g,e);this.barnesHutTree=I;for(var C=0;C<A;C++)(t=g[e[C]]).options.mass>0&&this._getForceContributions(I.root,t)}}},{key:"_getForceContributions",value:function(t,g){this._getForceContribution(t.children.NW,g),this._getForceContribution(t.children.NE,g),this._getForceContribution(t.children.SW,g),this._getForceContribution(t.children.SE,g)}},{key:"_getForceContribution",value:function(t,g){var e,A,I;t.childrenCount>0&&(e=t.centerOfMass.x-g.x,A=t.centerOfMass.y-g.y,(I=Math.sqrt(e*e+A*A))*t.calcSize>this.thetaInversed?this._calculateForces(I,e,A,g,t):4===t.childrenCount?this._getForceContributions(t,g):t.children.data.id!=g.id&&this._calculateForces(I,e,A,g,t))}},{key:"_calculateForces",value:function(t,g,e,A,I){0===t&&(g=t=.1),this.overlapAvoidanceFactor<1&&A.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*A.shape.radius,t-A.shape.radius));var C=this.options.gravitationalConstant*I.mass*A.options.mass/Math.pow(t,3),i=g*C,n=e*C;this.physicsBody.forces[A.id].x+=i,this.physicsBody.forces[A.id].y+=n}},{key:"_formBarnesHutTree",value:function(t,g){for(var e,A=g.length,I=t[g[0]].x,C=t[g[0]].y,i=t[g[0]].x,n=t[g[0]].y,o=1;o<A;o++){var r=t[g[o]],s=r.x,a=r.y;r.options.mass>0&&(s<I&&(I=s),s>i&&(i=s),a<C&&(C=a),a>n&&(n=a))}var l=Math.abs(i-I)-Math.abs(n-C);l>0?(C-=.5*l,n+=.5*l):(I+=.5*l,i-=.5*l);var d=Math.max(1e-5,Math.abs(i-I)),c=.5*d,h=.5*(I+i),u=.5*(C+n),f={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:h-c,maxX:h+c,minY:u-c,maxY:u+c},size:d,calcSize:1/d,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(f.root);for(var p=0;p<A;p++)(e=t[g[p]]).options.mass>0&&this._placeInTree(f.root,e);return f}},{key:"_updateBranchMass",value:function(t,g){var e=t.centerOfMass,A=t.mass+g.options.mass,I=1/A;e.x=e.x*t.mass+g.x*g.options.mass,e.x*=I,e.y=e.y*t.mass+g.y*g.options.mass,e.y*=I,t.mass=A;var C=Math.max(Math.max(g.height,g.radius),g.width);t.maxWidth=t.maxWidth<C?C:t.maxWidth}},{key:"_placeInTree",value:function(t,g,e){1==e&&void 0!==e||this._updateBranchMass(t,g);var A,I=t.children.NW.range;A=I.maxX>g.x?I.maxY>g.y?"NW":"SW":I.maxY>g.y?"NE":"SE",this._placeInRegion(t,g,A)}},{key:"_placeInRegion",value:function(t,g,e){var A=t.children[e];switch(A.childrenCount){case 0:A.children.data=g,A.childrenCount=1,this._updateBranchMass(A,g);break;case 1:A.children.data.x===g.x&&A.children.data.y===g.y?(g.x+=this.seededRandom(),g.y+=this.seededRandom()):(this._splitBranch(A),this._placeInTree(A,g));break;case 4:this._placeInTree(A,g)}}},{key:"_splitBranch",value:function(t){var g=null;1===t.childrenCount&&(g=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=g&&this._placeInTree(t,g)}},{key:"_insertRegion",value:function(t,g){var e,A,I,C,i=.5*t.size;switch(g){case"NW":e=t.range.minX,A=t.range.minX+i,I=t.range.minY,C=t.range.minY+i;break;case"NE":e=t.range.minX+i,A=t.range.maxX,I=t.range.minY,C=t.range.minY+i;break;case"SW":e=t.range.minX,A=t.range.minX+i,I=t.range.minY+i,C=t.range.maxY;break;case"SE":e=t.range.minX+i,A=t.range.maxX,I=t.range.minY+i,C=t.range.maxY}t.children[g]={centerOfMass:{x:0,y:0},mass:0,range:{minX:e,maxX:A,minY:I,maxY:C},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,g){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,g))}},{key:"_drawBranch",value:function(t,g,e){void 0===e&&(e="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,g),this._drawBranch(t.children.NE,g),this._drawBranch(t.children.SE,g),this._drawBranch(t.children.SW,g)),g.strokeStyle=e,g.beginPath(),g.moveTo(t.range.minX,t.range.minY),g.lineTo(t.range.maxX,t.range.minY),g.stroke(),g.beginPath(),g.moveTo(t.range.maxX,t.range.minY),g.lineTo(t.range.maxX,t.range.maxY),g.stroke(),g.beginPath(),g.moveTo(t.range.maxX,t.range.maxY),g.lineTo(t.range.minX,t.range.maxY),g.stroke(),g.beginPath(),g.moveTo(t.range.minX,t.range.maxY),g.lineTo(t.range.minX,t.range.minY),g.stroke()}}]),t}(),NN=function(){function t(g,e,A){Ll(this,t),this.body=g,this.physicsBody=e,this.setOptions(A)}return zl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,g,e,A,I,C,i,n,o=this.body.nodes,r=this.physicsBody.physicsNodeIndices,s=this.physicsBody.forces,a=this.options.nodeDistance,l=-2/3/a,d=0;d<r.length-1;d++){i=o[r[d]];for(var c=d+1;c<r.length;c++)t=(n=o[r[c]]).x-i.x,g=n.y-i.y,0===(e=Math.sqrt(t*t+g*g))&&(t=e=.1*Math.random()),e<2*a&&(C=e<.5*a?1:l*e+4/3,A=t*(C/=e),I=g*C,s[i.id].x-=A,s[i.id].y-=I,s[n.id].x+=A,s[n.id].y+=I)}}}]),t}();var EN=function(t){throw new Error('"'+t+'" is read-only')},ZN=function(){function t(g,e,A){Ll(this,t),this.body=g,this.physicsBody=e,this.setOptions(A)}return zl(t,[{key:"setOptions",value:function(t){this.options=t,this.overlapAvoidanceFactor=Math.max(0,Math.min(1,this.options.avoidOverlap||0))}},{key:"solve",value:function(){for(var t=this.body.nodes,g=this.physicsBody.physicsNodeIndices,e=this.physicsBody.forces,A=this.options.nodeDistance,I=0;I<g.length-1;I++)for(var C=t[g[I]],i=I+1;i<g.length;i++){var n=t[g[i]];if(C.level===n.level){var o=A+this.overlapAvoidanceFactor*((C.shape.radius||0)/2+(n.shape.radius||0)/2),r=n.x-C.x,s=n.y-C.y,a=Math.sqrt(r*r+s*s),l=void 0;l=a<o?-Math.pow(.05*a,2)+Math.pow(.05*o,2):0,0===a?(EN("distance"),a=.01):l/=a;var d=r*l,c=s*l;e[C.id].x-=d,e[C.id].y-=c,e[n.id].x+=d,e[n.id].y+=c}}}}]),t}(),MN=function(){function t(g,e,A){Ll(this,t),this.body=g,this.physicsBody=e,this.setOptions(A)}return zl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,g,e,A,I,C=this.physicsBody.physicsEdgeIndices,i=this.body.edges,n=0;n<C.length;n++)!0===(g=i[C[n]]).connected&&g.toId!==g.fromId&&void 0!==this.body.nodes[g.toId]&&void 0!==this.body.nodes[g.fromId]&&(void 0!==g.edgeType.via?(t=void 0===g.options.length?this.options.springLength:g.options.length,e=g.to,A=g.edgeType.via,I=g.from,this._calculateSpringForce(e,A,.5*t),this._calculateSpringForce(A,I,.5*t)):(t=void 0===g.options.length?1.5*this.options.springLength:g.options.length,this._calculateSpringForce(g.from,g.to,t)))}},{key:"_calculateSpringForce",value:function(t,g,e){var A=t.x-g.x,I=t.y-g.y,C=Math.max(Math.sqrt(A*A+I*I),.01),i=this.options.springConstant*(e-C)/C,n=A*i,o=I*i;void 0!==this.physicsBody.forces[t.id]&&(this.physicsBody.forces[t.id].x+=n,this.physicsBody.forces[t.id].y+=o),void 0!==this.physicsBody.forces[g.id]&&(this.physicsBody.forces[g.id].x-=n,this.physicsBody.forces[g.id].y-=o)}}]),t}(),TN=function(){function t(g,e,A){Ll(this,t),this.body=g,this.physicsBody=e,this.setOptions(A)}return zl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,g,e,A,I,C,i,n,o,r,s=this.body.edges,a=this.physicsBody.physicsEdgeIndices,l=this.physicsBody.physicsNodeIndices,d=this.physicsBody.forces,c=0;c<l.length;c++){var h=l[c];d[h].springFx=0,d[h].springFy=0}for(var u=0;u<a.length;u++)!0===(g=s[a[u]]).connected&&(t=void 0===g.options.length?this.options.springLength:g.options.length,e=g.from.x-g.to.x,A=g.from.y-g.to.y,n=0===(n=Math.sqrt(e*e+A*A))?.01:n,I=e*(i=this.options.springConstant*(t-n)/n),C=A*i,g.to.level!=g.from.level?(void 0!==d[g.toId]&&(d[g.toId].springFx-=I,d[g.toId].springFy-=C),void 0!==d[g.fromId]&&(d[g.fromId].springFx+=I,d[g.fromId].springFy+=C)):(void 0!==d[g.toId]&&(d[g.toId].x-=.5*I,d[g.toId].y-=.5*C),void 0!==d[g.fromId]&&(d[g.fromId].x+=.5*I,d[g.fromId].y+=.5*C)));i=1;for(var f=0;f<l.length;f++){var p=l[f];o=Math.min(i,Math.max(-i,d[p].springFx)),r=Math.min(i,Math.max(-i,d[p].springFy)),d[p].x+=o,d[p].y+=r}for(var v=0,y=0,m=0;m<l.length;m++){var b=l[m];v+=d[b].x,y+=d[b].y}for(var w=v/l.length,x=y/l.length,k=0;k<l.length;k++){var D=l[k];d[D].x-=w,d[D].y-=x}}}]),t}(),GN=function(){function t(g,e,A){Ll(this,t),this.body=g,this.physicsBody=e,this.setOptions(A)}return zl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,g,e,A,I=this.body.nodes,C=this.physicsBody.physicsNodeIndices,i=this.physicsBody.forces,n=0;n<C.length;n++){t=-(A=I[C[n]]).x,g=-A.y,e=Math.sqrt(t*t+g*g),this._calculateForces(e,t,g,i,A)}}},{key:"_calculateForces",value:function(t,g,e,A,I){var C=0===t?0:this.options.centralGravity/t;A[I.id].x=g*C,A[I.id].y=e*C}}]),t}(),BN=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"_calculateForces",value:function(t,g,e,A,I){0===t&&(g=t=.1*Math.random()),this.overlapAvoidanceFactor<1&&A.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*A.shape.radius,t-A.shape.radius));var C=A.edges.length+1,i=this.options.gravitationalConstant*I.mass*A.options.mass*C/Math.pow(t,2),n=g*i,o=e*i;this.physicsBody.forces[A.id].x+=n,this.physicsBody.forces[A.id].y+=o}}]),g}(ON),RN=function(t){function g(t,e,A){return Ll(this,g),AO(this,nO(g).call(this,t,e,A))}return sO(g,t),zl(g,[{key:"_calculateForces",value:function(t,g,e,A,I){if(t>0){var C=I.edges.length+1,i=this.options.centralGravity*C*I.options.mass;A[I.id].x=g*i,A[I.id].y=e*i}}}]),g}(GN),SN=function(){function t(g){Ll(this,t),this.body=g,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0},gi(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return zl(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",(function(){t.initPhysics()})),this.body.emitter.on("_layoutFailed",(function(){t.layoutFailed=!0})),this.body.emitter.on("resetPhysics",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on("disablePhysics",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on("restorePhysics",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on("startSimulation",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on("stopSimulation",(function(){t.stopSimulation()})),this.body.emitter.on("destroy",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on("_dataChanged",(function(){t.updatePhysicsData()}))}},{key:"setOptions",value:function(t){void 0!==t&&(!1===t?(this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation()):!0===t?(this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation()):(this.physicsEnabled=!0,Ii(["stabilization"],this.options,t),zi(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation()),this.timestep=this.options.timestep)),this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new BN(this.body,this.physicsBody,t),this.edgesSolver=new MN(this.body,this.physicsBody,t),this.gravitySolver=new RN(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new NN(this.body,this.physicsBody,t),this.edgesSolver=new MN(this.body,this.physicsBody,t),this.gravitySolver=new GN(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new ZN(this.body,this.physicsBody,t),this.edgesSolver=new TN(this.body,this.physicsBody,t),this.gravitySolver=new GN(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new ON(this.body,this.physicsBody,t),this.edgesSolver=new MN(this.body,this.physicsBody,t),this.gravitySolver=new GN(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=q(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=DN();this.physicsTick(),(DN()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&Hl((function(){t.body.emitter.emit("stabilized",{iterations:g}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2<this.options.timestep?this.timestep=this.options.timestep:(this.adaptiveCounter=-1,this.timestep=Math.max(this.options.timestep,this.timestep/1.2))}},{key:"physicsTick",value:function(){if(this._startStabilizing(),!0!==this.stabilized){if(!0===this.adaptiveTimestep&&!0===this.adaptiveTimestepEnabled)this.adaptiveCounter%this.adaptiveInterval==0?(this.timestep=2*this.timestep,this.physicsStep(),this.revert(),this.timestep=.5*this.timestep,this.physicsStep(),this.physicsStep(),this.adjustTimeStep()):this.physicsStep(),this.adaptiveCounter+=1;else this.timestep=this.options.timestep,this.physicsStep();!0===this.stabilized&&this.revert(),this.stabilizationIterations++}}},{key:"updatePhysicsData",value:function(){this.physicsBody.forces={},this.physicsBody.physicsNodeIndices=[],this.physicsBody.physicsEdgeIndices=[];var t=this.body.nodes,g=this.body.edges;for(var e in t)t.hasOwnProperty(e)&&!0===t[e].options.physics&&this.physicsBody.physicsNodeIndices.push(t[e].id);for(var A in g)g.hasOwnProperty(A)&&!0===g[A].options.physics&&this.physicsBody.physicsEdgeIndices.push(g[A].id);for(var I=0;I<this.physicsBody.physicsNodeIndices.length;I++){var C=this.physicsBody.physicsNodeIndices[I];this.physicsBody.forces[C]={x:0,y:0},void 0===this.physicsBody.velocities[C]&&(this.physicsBody.velocities[C]={x:0,y:0})}for(var i in this.physicsBody.velocities)void 0===t[i]&&delete this.physicsBody.velocities[i]}},{key:"revert",value:function(){var t=$k(this.previousStates),g=this.body.nodes,e=this.physicsBody.velocities;this.referenceState={};for(var A=0;A<t.length;A++){var I=t[A];void 0!==g[I]?!0===g[I].options.physics&&(this.referenceState[I]={positions:{x:g[I].x,y:g[I].y}},e[I].x=this.previousStates[I].vx,e[I].y=this.previousStates[I].vy,g[I].x=this.previousStates[I].x,g[I].y=this.previousStates[I].y):delete this.previousStates[I]}}},{key:"_evaluateStepQuality",value:function(){var t,g,e=this.body.nodes,A=this.referenceState;for(var I in this.referenceState)if(this.referenceState.hasOwnProperty(I)&&void 0!==e[I]&&(t=e[I].x-A[I].positions.x,g=e[I].y-A[I].positions.y,Math.sqrt(Math.pow(t,2)+Math.pow(g,2))>.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,g=0,e=0,A=0;A<t.length;A++){var I=t[A],C=this._performStep(I);g=Math.max(g,C),e+=C}this.adaptiveTimestepEnabled=e/t.length<5,this.stabilized=g<this.options.minVelocity}},{key:"calculateComponentVelocity",value:function(t,g,e){t+=(g-this.modelOptions.damping*t)/e*this.timestep;var A=this.options.maxVelocity||1e9;return Math.abs(t)>A&&(t=t>0?A:-A),t}},{key:"_performStep",value:function(t){var g=this.body.nodes[t],e=this.physicsBody.forces[t],A=this.physicsBody.velocities[t];return this.previousStates[t]={x:g.x,y:g.y,vx:A.x,vy:A.y},!1===g.options.fixed.x?(A.x=this.calculateComponentVelocity(A.x,e.x,g.options.mass),g.x+=A.x*this.timestep):(e.x=0,A.x=0),!1===g.options.fixed.y?(A.y=this.calculateComponentVelocity(A.y,e.y,g.options.mass),g.y+=A.y*this.timestep):(e.y=0,A.y=0),Math.sqrt(Math.pow(A.x,2)+Math.pow(A.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var g in t)if(t.hasOwnProperty(g)&&t[g].x&&t[g].y){var e=t[g].options.fixed;this.freezeCache[g]={x:e.x,y:e.y},e.x=!0,e.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var g in t)t.hasOwnProperty(g)&&void 0!==this.freezeCache[g]&&(t[g].options.fixed.x=this.freezeCache[g].x,t[g].options.fixed.y=this.freezeCache[g].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof g&&(g=this.options.stabilization.iterations,console.log("The stabilize method needs a numeric amount of iterations. Switching to default: ",g)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=g,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,Hl((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,g=function(){return!1===t.stabilized&&t.stabilizationIterations<t.targetIterations},e=function(){t.body.emitter.emit("stabilizationProgress",{iterations:t.stabilizationIterations,total:t.targetIterations})};this._startStabilizing()&&e();for(var A,I=0;g()&&I<this.options.stabilization.updateInterval;)this.physicsTick(),I++;(e(),g())?Hl(q(A=this._stabilizationBatch).call(A,this),0):this._finalizeStabilization()}},{key:"_finalizeStabilization",value:function(){this.body.emitter.emit("_allowRedraw"),!0===this.options.stabilization.fit&&this.body.emitter.emit("fit"),!0===this.options.stabilization.onlyDynamicEdges&&this._restoreFrozenNodes(),this.body.emitter.emit("stabilizationIterationsDone"),this.body.emitter.emit("_requestRedraw"),!0===this.stabilized?this._emitStabilized():this.startSimulation(),this.ready=!0}},{key:"_drawForces",value:function(t){for(var g=0;g<this.physicsBody.physicsNodeIndices.length;g++){var e=this.physicsBody.physicsNodeIndices[g],A=this.body.nodes[e],I=this.physicsBody.forces[e],C=Math.sqrt(Math.pow(I.x,2)+Math.pow(I.x,2)),i=Math.min(Math.max(5,C),15),n=3*i,o=Bi((180-180*Math.min(1,Math.max(0,.03*C)))/360,1,1),r={x:A.x+20*I.x,y:A.y+20*I.y};t.lineWidth=i,t.strokeStyle=o,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(r.x,r.y),t.stroke();var s=Math.atan2(I.y,I.x);t.fillStyle=o,cN.draw(t,{type:"arrow",point:r,angle:s,length:n}),dO(t).call(t)}}}]),t}(),FN=[].reverse,LN=[1,2];P({target:"Array",proto:!0,forced:String(LN)===String(LN.reverse())},{reverse:function(){return Mo(this)&&(this.length=this.length),FN.call(this)}});var QN=H("Array").reverse,YN=Array.prototype,WN=function(t){var g=t.reverse;return t===YN||t instanceof Array&&g===YN.reverse?QN:g},zN=function(){function t(){Ll(this,t)}return zl(t,null,[{key:"getRange",value:function(t){var g,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],A=1e9,I=-1e9,C=1e9,i=-1e9;if(e.length>0)for(var n=0;n<e.length;n++)C>(g=t[e[n]]).shape.boundingBox.left&&(C=g.shape.boundingBox.left),i<g.shape.boundingBox.right&&(i=g.shape.boundingBox.right),A>g.shape.boundingBox.top&&(A=g.shape.boundingBox.top),I<g.shape.boundingBox.bottom&&(I=g.shape.boundingBox.bottom);return 1e9===C&&-1e9===i&&1e9===A&&-1e9===I&&(A=0,I=0,C=0,i=0),{minX:C,maxX:i,minY:A,maxY:I}}},{key:"getRangeCore",value:function(t){var g,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],A=1e9,I=-1e9,C=1e9,i=-1e9;if(e.length>0)for(var n=0;n<e.length;n++)C>(g=t[e[n]]).x&&(C=g.x),i<g.x&&(i=g.x),A>g.y&&(A=g.y),I<g.y&&(I=g.y);return 1e9===C&&-1e9===i&&1e9===A&&-1e9===I&&(A=0,I=0,C=0,i=0),{minX:C,maxX:i,minY:A,maxY:I}}},{key:"findCenter",value:function(t){return{x:.5*(t.maxX+t.minX),y:.5*(t.maxY+t.minY)}}},{key:"cloneOptions",value:function(t,g){var e={};return void 0===g||"node"===g?(Ci(e,t.options,!0),e.x=t.x,e.y=t.y,e.amountOfConnections=t.edges.length):Ci(e,t.options,!0),e}}]),t}(),jN=function(t){function g(t,e,A,I,C,i){var n;return Ll(this,g),(n=AO(this,nO(g).call(this,t,e,A,I,C,i))).isCluster=!0,n.containedNodes={},n.containedEdges={},n}return sO(g,t),zl(g,[{key:"_openChildCluster",value:function(t){var g=this,e=this.body.nodes[t];if(void 0===this.containedNodes[t])throw new Error("node with id: "+t+" not in current cluster");if(!e.isCluster)throw new Error("node with id: "+t+" is not a cluster");delete this.containedNodes[t],hi(e.edges,(function(t){delete g.containedEdges[t.id]})),hi(e.containedNodes,(function(t,e){g.containedNodes[e]=t})),e.containedNodes={},hi(e.containedEdges,(function(t,e){g.containedEdges[e]=t})),e.containedEdges={},hi(e.edges,(function(t){hi(g.edges,(function(e){var A,I,C=Mr(A=e.clusteringEdgeReplacingIds).call(A,t.id);-1!==C&&(hi(t.clusteringEdgeReplacingIds,(function(t){e.clusteringEdgeReplacingIds.push(t),g.body.edges[t].edgeReplacedById=e.id})),dr(I=e.clusteringEdgeReplacingIds).call(I,C,1))}))})),e.edges=[]}}]),g}(PO),PN=function(){function t(g){var e=this;Ll(this,t),this.body=g,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},gi(this.options,this.defaultOptions),this.body.emitter.on("_resetData",(function(){e.clusteredNodes={},e.clusteredEdges={}}))}return zl(t,[{key:"clusterByHubsize",value:function(t,g){void 0===t?t=this._getHubSize():"object"===TD(t)&&(g=this._checkOptions(t),t=this._getHubSize());for(var e=[],A=0;A<this.body.nodeIndices.length;A++){var I=this.body.nodes[this.body.nodeIndices[A]];I.edges.length>=t&&e.push(I.id)}for(var C=0;C<e.length;C++)this.clusterByConnection(e[C],g,!0);this.body.emitter.emit("_dataChanged")}},{key:"cluster",value:function(){var t=this,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===g.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");g=this._checkOptions(g);var A={},I={};hi(this.body.nodes,(function(e,C){e.options&&!0===g.joinCondition(e.options)&&(A[C]=e,hi(e.edges,(function(g){void 0===t.clusteredEdges[g.id]&&(I[g.id]=g)})))})),this._cluster(A,I,g,e)}},{key:"clusterByEdgeCount",value:function(t,g){var e=this,A=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g=this._checkOptions(g);for(var I,C,i,n=[],o={},r=function(A){var r={},s={},d=e.body.nodeIndices[A],c=e.body.nodes[d];if(void 0===o[d]){i=0,C=[];for(var h=0;h<c.edges.length;h++)I=c.edges[h],void 0===e.clusteredEdges[I.id]&&(I.toId!==I.fromId&&i++,C.push(I));if(i===t){a=function(t){if(void 0===g.joinCondition||null===g.joinCondition)return!0;var e=zN.cloneOptions(t);return g.joinCondition(e)};for(var u=!0,f=0;f<C.length;f++){I=C[f];var p=e._getConnectedId(I,d);if(!a(c)){u=!1;break}s[I.id]=I,r[d]=c,r[p]=e.body.nodes[p],o[d]=!0}if($k(r).length>0&&$k(s).length>0&&!0===u)if(void 0!==(l=function(){for(var t=0;t<n.length;++t)for(var g in r)if(void 0!==n[t].nodes[g])return n[t]}())){for(var v in r)void 0===l.nodes[v]&&(l.nodes[v]=r[v]);for(var y in s)void 0===l.edges[y]&&(l.edges[y]=s[y])}else n.push({nodes:r,edges:s})}}},s=0;s<this.body.nodeIndices.length;s++){var a,l;r(s)}for(var d=0;d<n.length;d++)this._cluster(n[d].nodes,n[d].edges,g,!1);!0===A&&this.body.emitter.emit("_dataChanged")}},{key:"clusterOutliers",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,g)}},{key:"clusterBridges",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,g)}},{key:"clusterByConnection",value:function(t,g){var e,A=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var I=this.body.nodes[t];void 0===(g=this._checkOptions(g,I)).clusterNodeProperties.x&&(g.clusterNodeProperties.x=I.x),void 0===g.clusterNodeProperties.y&&(g.clusterNodeProperties.y=I.y),void 0===g.clusterNodeProperties.fixed&&(g.clusterNodeProperties.fixed={},g.clusterNodeProperties.fixed.x=I.options.fixed.x,g.clusterNodeProperties.fixed.y=I.options.fixed.y);var C={},i={},n=I.id,o=zN.cloneOptions(I);C[n]=I;for(var r=0;r<I.edges.length;r++){var s=I.edges[r];if(void 0===this.clusteredEdges[s.id]){var a=this._getConnectedId(s,n);if(void 0===this.clusteredNodes[a])if(a!==n)if(void 0===g.joinCondition)i[s.id]=s,C[a]=this.body.nodes[a];else{var l=zN.cloneOptions(this.body.nodes[a]);!0===g.joinCondition(o,l)&&(i[s.id]=s,C[a]=this.body.nodes[a])}else i[s.id]=s}}var d=vs(e=$k(C)).call(e,(function(t){return C[t].id}));for(c in C)if(C.hasOwnProperty(c))for(var c=C[c],h=0;h<c.edges.length;h++){var u=c.edges[h];Mr(d).call(d,this._getConnectedId(u,c.id))>-1&&(i[u.id]=u)}this._cluster(C,i,g,A)}},{key:"_createClusterEdges",value:function(t,g,e,A){for(var I,C,i,n,o,r,s=$k(t),a=[],l=0;l<s.length;l++){i=t[C=s[l]];for(var d=0;d<i.edges.length;d++)I=i.edges[d],void 0===this.clusteredEdges[I.id]&&(I.toId==I.fromId?g[I.id]=I:I.toId==C?(n=e.id,r=o=I.fromId):(n=I.toId,o=e.id,r=n),void 0===t[r]&&a.push({edge:I,fromId:o,toId:n}))}for(var c=[],h=function(t){for(var g=0;g<c.length;g++){var e=c[g],A=t.fromId===e.fromId&&t.toId===e.toId,I=t.fromId===e.toId&&t.toId===e.fromId;if(A||I)return e}return null},u=0;u<a.length;u++){var f=a[u],p=f.edge,v=h(f);null===v?(v=this._createClusteredEdge(f.fromId,f.toId,p,A),c.push(v)):v.clusteringEdgeReplacingIds.push(p.id),this.body.edges[p.id].edgeReplacedById=v.id,this._backupEdgeOptions(p),p.setOptions({physics:!1})}}},{key:"_checkOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,g,e){var A=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],I=[];for(var C in t)t.hasOwnProperty(C)&&void 0!==this.clusteredNodes[C]&&I.push(C);for(var i=0;i<I.length;++i)delete t[I[i]];if(0!=$k(t).length&&(1!=$k(t).length||1==e.clusterNodeProperties.allowSingleNodeCluster)){var n=Ci({},e.clusterNodeProperties);if(void 0!==e.processProperties){var o=[];for(var r in t)if(t.hasOwnProperty(r)){var s=zN.cloneOptions(t[r]);o.push(s)}var a=[];for(var l in g)if(g.hasOwnProperty(l)&&"clusterEdge:"!==l.substr(0,12)){var d=zN.cloneOptions(g[l],"edge");a.push(d)}if(!(n=e.processProperties(n,o,a)))throw new Error("The processProperties function does not return properties!")}void 0===n.id&&(n.id="cluster:"+WC());var c=n.id;void 0===n.label&&(n.label="cluster");var h=void 0;void 0===n.x&&(h=this._getClusterPosition(t),n.x=h.x),void 0===n.y&&(void 0===h&&(h=this._getClusterPosition(t)),n.y=h.y),n.id=c;var u=this.body.functions.createNode(n,jN);u.containedNodes=t,u.containedEdges=g,u.clusterEdgeProperties=e.clusterEdgeProperties,this.body.nodes[n.id]=u,this._clusterEdges(t,g,n,e.clusterEdgeProperties),n.id=void 0,!0===A&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(t){void 0===this.clusteredEdges[t.id]&&(this.clusteredEdges[t.id]={physics:t.options.physics})}},{key:"_restoreEdge",value:function(t){var g=this.clusteredEdges[t.id];void 0!==g&&(t.setOptions({physics:g.physics}),delete this.clusteredEdges[t.id])}},{key:"isCluster",value:function(t){return void 0!==this.body.nodes[t]?!0===this.body.nodes[t].isCluster:(console.log("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(t){for(var g,e=$k(t),A=t[e[0]].x,I=t[e[0]].x,C=t[e[0]].y,i=t[e[0]].y,n=1;n<e.length;n++)A=(g=t[e[n]]).x<A?g.x:A,I=g.x>I?g.x:I,C=g.y<C?g.y:C,i=g.y>i?g.y:i;return{x:.5*(A+I),y:.5*(C+i)}}},{key:"openCluster",value:function(t,g){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var A=this.body.nodes[t];if(void 0===A)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==A.isCluster||void 0===A.containedNodes||void 0===A.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var I=this.findNode(t),C=Mr(I).call(I,t)-1;if(C>=0){var i=I[C],n=this.body.nodes[i];return n._openChildCluster(t),delete this.body.nodes[t],void(!0===e&&this.body.emitter.emit("_dataChanged"))}var o=A.containedNodes,r=A.containedEdges;if(void 0!==g&&void 0!==g.releaseFunction&&"function"==typeof g.releaseFunction){var s={},a={x:A.x,y:A.y};for(var l in o)if(o.hasOwnProperty(l)){var d=this.body.nodes[l];s[l]={x:d.x,y:d.y}}var c=g.releaseFunction(a,s);for(var h in o)if(o.hasOwnProperty(h)){var u=this.body.nodes[h];void 0!==c[h]&&(u.x=void 0===c[h].x?A.x:c[h].x,u.y=void 0===c[h].y?A.y:c[h].y)}}else hi(o,(function(t){!1===t.options.fixed.x&&(t.x=A.x),!1===t.options.fixed.y&&(t.y=A.y)}));for(var f in o)if(o.hasOwnProperty(f)){var p=this.body.nodes[f];p.vx=A.vx,p.vy=A.vy,p.setOptions({physics:!0}),delete this.clusteredNodes[f]}for(var v=[],y=0;y<A.edges.length;y++)v.push(A.edges[y]);for(var m=0;m<v.length;m++){for(var b=v[m],w=this._getConnectedId(b,t),x=this.clusteredNodes[w],k=0;k<b.clusteringEdgeReplacingIds.length;k++){var D=b.clusteringEdgeReplacingIds[k],O=this.body.edges[D];if(void 0!==O)if(void 0!==x){var N=this.body.nodes[x.clusterId];N.containedEdges[O.id]=O,delete r[O.id];var E=O.fromId,Z=O.toId;O.toId==w?Z=x.clusterId:E=x.clusterId,this._createClusteredEdge(E,Z,O,N.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(O)}b.remove()}for(var M in r)r.hasOwnProperty(M)&&this._restoreEdge(r[M]);delete this.body.nodes[t],!0===e&&this.body.emitter.emit("_dataChanged")}},{key:"getNodesInCluster",value:function(t){var g=[];if(!0===this.isCluster(t)){var e=this.body.nodes[t].containedNodes;for(var A in e)e.hasOwnProperty(A)&&g.push(this.body.nodes[A].id)}return g}},{key:"findNode",value:function(t){for(var g,e=[],A=0;void 0!==this.clusteredNodes[t]&&A<100;){if(void 0===(g=this.body.nodes[t]))return[];e.push(g.id),t=this.clusteredNodes[t].clusterId,A++}return void 0===(g=this.body.nodes[t])?[]:(e.push(g.id),WN(e).call(e),e)}},{key:"updateClusteredNode",value:function(t,g){if(void 0===t)throw new Error("No clusteredNodeId supplied to updateClusteredNode.");if(void 0===g)throw new Error("No newOptions supplied to updateClusteredNode.");if(void 0===this.body.nodes[t])throw new Error("The clusteredNodeId supplied to updateClusteredNode does not exist.");this.body.nodes[t].setOptions(g),this.body.emitter.emit("_dataChanged")}},{key:"updateEdge",value:function(t,g){if(void 0===t)throw new Error("No startEdgeId supplied to updateEdge.");if(void 0===g)throw new Error("No newOptions supplied to updateEdge.");if(void 0===this.body.edges[t])throw new Error("The startEdgeId supplied to updateEdge does not exist.");for(var e=this.getClusteredEdges(t),A=0;A<e.length;A++){this.body.edges[e[A]].setOptions(g)}this.body.emitter.emit("_dataChanged")}},{key:"getClusteredEdges",value:function(t){for(var g=[],e=0;void 0!==t&&void 0!==this.body.edges[t]&&e<100;)g.push(this.body.edges[t].id),t=this.body.edges[t].edgeReplacedById,e++;return WN(g).call(g),g}},{key:"getBaseEdge",value:function(t){return this.getBaseEdges(t)[0]}},{key:"getBaseEdges",value:function(t){for(var g=[t],e=[],A=[],I=0;g.length>0&&I<100;){var C=g.pop();if(void 0!==C){var i=this.body.edges[C];if(void 0!==i){I++;var n=i.clusteringEdgeReplacingIds;if(void 0===n)A.push(C);else for(var o=0;o<n.length;++o){var r=n[o];-1===Mr(g).call(g,n)&&-1===Mr(e).call(e,n)&&g.push(r)}e.push(C)}}}return A}},{key:"_getConnectedId",value:function(t,g){return t.toId!=g?t.toId:(t.fromId,t.fromId)}},{key:"_getHubSize",value:function(){for(var t=0,g=0,e=0,A=0,I=0;I<this.body.nodeIndices.length;I++){var C=this.body.nodes[this.body.nodeIndices[I]];C.edges.length>A&&(A=C.edges.length),t+=C.edges.length,g+=Math.pow(C.edges.length,2),e+=1}t/=e;var i=(g/=e)-Math.pow(t,2),n=Math.sqrt(i),o=Math.floor(t+2*n);return o>A&&(o=A),o}},{key:"_createClusteredEdge",value:function(t,g,e,A,I){var C=zN.cloneOptions(e,"edge");Ci(C,A),C.from=t,C.to=g,C.id="clusterEdge:"+WC(),void 0!==I&&Ci(C,I);var i=this.body.functions.createEdge(C);return i.clusteringEdgeReplacingIds=[e.id],i.connect(),this.body.edges[i.id]=i,i}},{key:"_clusterEdges",value:function(t,g,e,A){if(g instanceof xN){var I=g,C={};C[I.id]=I,g=C}if(t instanceof PO){var i=t,n={};n[i.id]=i,t=n}if(null==e)throw new Error("_clusterEdges: parameter clusterNode required");for(var o in void 0===A&&(A=e.clusterEdgeProperties),this._createClusterEdges(t,g,e,A),g)if(g.hasOwnProperty(o)&&void 0!==this.body.edges[o]){var r=this.body.edges[o];this._backupEdgeOptions(r),r.setOptions({physics:!1})}for(var s in t)t.hasOwnProperty(s)&&(this.clusteredNodes[s]={clusterId:e.id,node:this.body.nodes[s]},this.body.nodes[s].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var g=this.clusteredNodes[t];if(void 0!==g){var e=g.clusterId;if(void 0!==e)return this.body.nodes[e]}}}},{key:"_filter",value:function(t,g){var e=[];return hi(t,(function(t){g(t)&&e.push(t)})),e}},{key:"_updateState",value:function(){var t,g=this,e=[],A={},I=function(t){hi(g.body.nodes,(function(g){!0===g.isCluster&&t(g)}))};for(t in this.clusteredNodes){if(this.clusteredNodes.hasOwnProperty(t))void 0===this.body.nodes[t]&&e.push(t)}I((function(t){for(var g=0;g<e.length;g++)delete t.containedNodes[e[g]]}));for(var C=0;C<e.length;C++)delete this.clusteredNodes[e[C]];hi(this.clusteredEdges,(function(t){var e=g.body.edges[t];void 0!==e&&e.endPointsValid()||(A[t]=t)})),I((function(t){hi(t.containedEdges,(function(t,g){t.endPointsValid()||A[g]||(A[g]=g)}))})),hi(this.body.edges,(function(t,e){var I=!0,C=t.clusteringEdgeReplacingIds;if(void 0!==C){var i=0;hi(C,(function(t){var e=g.body.edges[t];void 0!==e&&e.endPointsValid()&&(i+=1)})),I=i>0}t.endPointsValid()&&I||(A[e]=e)})),I((function(t){hi(A,(function(e){delete t.containedEdges[e],hi(t.edges,(function(I,C){I.id!==e?I.clusteringEdgeReplacingIds=g._filter(I.clusteringEdgeReplacingIds,(function(t){return!A[t]})):t.edges[C]=null})),t.edges=g._filter(t.edges,(function(t){return null!==t}))}))})),hi(A,(function(t){delete g.clusteredEdges[t]})),hi(A,(function(t){delete g.body.edges[t]})),hi($k(this.body.edges),(function(t){var e=g.body.edges[t],A=g._isClusteredNode(e.fromId)||g._isClusteredNode(e.toId);if(A!==g._isClusteredEdge(e.id))if(A){var I=g._getClusterNodeForNode(e.fromId);void 0!==I&&g._clusterEdges(g.body.nodes[e.fromId],e,I);var C=g._getClusterNodeForNode(e.toId);void 0!==C&&g._clusterEdges(g.body.nodes[e.toId],e,C)}else delete g._clusterEdges[t],g._restoreEdge(e)}));for(var i=!1,n=!0,o=function(){var t=[];I((function(g){var e=$k(g.containedNodes).length,A=!0===g.options.allowSingleNodeCluster;(A&&e<1||!A&&e<2)&&t.push(g.id)}));for(var e=0;e<t.length;++e)g.openCluster(t[e],{},!1);n=t.length>0,i=i||n};n;)o();i&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}();var VN=function(){function t(g,e){var A;Ll(this,t),void 0!==window&&(A=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===A?function(t){t()}:A,this.body=g,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},gi(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return zl(t,[{key:"bindEventListeners",value:function(){var t,g=this;this.body.emitter.on("dragStart",(function(){g.dragging=!0})),this.body.emitter.on("dragEnd",(function(){g.dragging=!1})),this.body.emitter.on("zoom",(function(){g.zooming=!0,window.clearTimeout(g.zoomTimeoutId),g.zoomTimeoutId=window.setTimeout((function(){var t;g.zooming=!1,q(t=g._requestRedraw).call(t,g)()}),250)})),this.body.emitter.on("_resizeNodes",(function(){g._resizeNodes()})),this.body.emitter.on("_redraw",(function(){!1===g.renderingActive&&g._redraw()})),this.body.emitter.on("_blockRedraw",(function(){g.allowRedraw=!1})),this.body.emitter.on("_allowRedraw",(function(){g.allowRedraw=!0,g.redrawRequested=!1})),this.body.emitter.on("_requestRedraw",q(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",(function(){g.renderRequests+=1,g.renderingActive=!0,g._startRendering()})),this.body.emitter.on("_stopRendering",(function(){g.renderRequests-=1,g.renderingActive=g.renderRequests>0,g.renderTimer=void 0})),this.body.emitter.on("destroy",(function(){g.renderRequests=0,g.allowRedraw=!1,g.renderingActive=!1,!0===g.requiresTimeout?clearTimeout(g.renderTimer):window.cancelAnimationFrame(g.renderTimer),g.body.emitter.off()}))}},{key:"setOptions",value:function(t){if(void 0!==t){Ai(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,t)}}},{key:"_requestNextFrame",value:function(t,g){if("undefined"!=typeof window){var e,A=window;return!0===this.requiresTimeout?e=A.setTimeout(t,g):A.requestAnimationFrame&&(e=A.requestAnimationFrame(t)),e}}},{key:"_startRendering",value:function(){var t;!0===this.renderingActive&&(void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(q(t=this._renderStep).call(t,this),this.simulationInterval)))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1,0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var g=this.canvas.getContext(),e=this.canvas.frame.canvas.clientWidth,A=this.canvas.frame.canvas.clientHeight;if(g.clearRect(0,0,e,A),0===this.canvas.frame.clientWidth)return;g.save(),g.translate(this.body.view.translation.x,this.body.view.translation.y),g.scale(this.body.view.scale,this.body.view.scale),g.beginPath(),this.body.emitter.emit("beforeDrawing",g),g.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(g),(!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag)&&this._drawNodes(g,t),g.beginPath(),this.body.emitter.emit("afterDrawing",g),g.closePath(),g.restore(),!0===t&&g.clearRect(0,0,e,A)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var g,e=this.body.nodes;for(var A in e)e.hasOwnProperty(A)&&((g=e[A]).resize(t),g.updateBoundingBox(t,g.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var g,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],A=this.body.nodes,I=this.body.nodeIndices,C=[],i=20,n=this.canvas.DOMtoCanvas({x:-i,y:-i}),o=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+i,y:this.canvas.frame.canvas.clientHeight+i}),r={top:n.y,left:n.x,bottom:o.y,right:o.x},s=0;s<I.length;s++)(g=A[I[s]]).isSelected()?C.push(I[s]):!0===e?g.draw(t):!0===g.isBoundingBoxOverlappingWith(r)?g.draw(t):g.updateBoundingBox(t,g.selected);for(var a=0;a<C.length;a++)(g=A[C[a]]).draw(t)}},{key:"_drawEdges",value:function(t){for(var g,e=this.body.edges,A=this.body.edgeIndices,I=0;I<A.length;I++)!0===(g=e[A[I]]).connected&&g.draw(t)}},{key:"_determineBrowserMethod",value:function(){if("undefined"!=typeof window){var t=navigator.userAgent.toLowerCase();this.requiresTimeout=!1,-1!=Mr(t).call(t,"msie 9.0")?this.requiresTimeout=!0:-1!=Mr(t).call(t,"safari")&&Mr(t).call(t,"chrome")<=-1&&(this.requiresTimeout=!0)}else this.requiresTimeout=!0}}]),t}(),XN=R.setInterval,UN=e((function(t,g){g.onTouch=function(t,g){g.inputHandler=function(t){t.isFirst&&g(t)},t.on("hammer.input",g.inputHandler)},g.onRelease=function(t,g){return g.inputHandler=function(t){t.isFinal&&g(t)},t.on("hammer.input",g.inputHandler)},g.offTouch=function(t,g){t.off("hammer.input",g.inputHandler)},g.offRelease=g.offTouch,g.disablePreventDefaultVertically=function(t){return t.getTouchAction=function(){return["pan-y"]},t}})),_N=(UN.onTouch,UN.onRelease,UN.offTouch,UN.offRelease,UN.disablePreventDefaultVertically,function(){function t(g){var e;Ll(this,t),this.body=g,this.pixelRatio=1,this.resizeTimer=void 0,this.resizeFunction=q(e=this._onResize).call(e,this),this.cameraState={},this.initialized=!1,this.canvasViewCenter={},this.options={},this.defaultOptions={autoResize:!0,height:"100%",width:"100%"},gi(this.options,this.defaultOptions),this.bindEventListeners()}return zl(t,[{key:"bindEventListeners",value:function(){var t,g=this;this.body.emitter.once("resize",(function(t){0!==t.width&&(g.body.view.translation.x=.5*t.width),0!==t.height&&(g.body.view.translation.y=.5*t.height)})),this.body.emitter.on("setSize",q(t=this.setSize).call(t,this)),this.body.emitter.on("destroy",(function(){g.hammerFrame.destroy(),g.hammer.destroy(),g._cleanUp()}))}},{key:"setOptions",value:function(t){var g,e=this;if(void 0!==t){Ai(["width","height","autoResize"],this.options,t)}!0===this.options.autoResize&&(this._cleanUp(),this.resizeTimer=XN((function(){!0===e.setSize()&&e.body.emitter.emit("_requestRedraw")}),1e3),this.resizeFunction=q(g=this._onResize).call(g,this),vi(window,"resize",this.resizeFunction))}},{key:"_cleanUp",value:function(){void 0!==this.resizeTimer&&clearInterval(this.resizeTimer),yi(window,"resize",this.resizeFunction),this.resizeFunction=void 0}},{key:"_onResize",value:function(){this.setSize(),this.body.emitter.emit("_redraw")}},{key:"_getCameraState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,g=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,e=this.cameraState.scale;1!=t&&1!=g?e=.5*this.cameraState.scale*(t+g):1!=t?e=this.cameraState.scale*t:1!=g&&(e=this.cameraState.scale*g),this.body.view.scale=e;var A=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),I={x:A.x-this.cameraState.position.x,y:A.y-this.cameraState.position.y};this.body.view.translation.x+=I.x*this.body.view.scale,this.body.view.translation.y+=I.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==Mr(t).call(t,"%")||-1!==Mr(t).call(t,"px"))return t;if(-1===Mr(t).call(t,"%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=900,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new Bl(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:Bl.DIRECTION_ALL}),UN.onTouch(this.hammer,(function(g){t.body.eventListeners.onTouch(g)})),this.hammer.on("tap",(function(g){t.body.eventListeners.onTap(g)})),this.hammer.on("doubletap",(function(g){t.body.eventListeners.onDoubleTap(g)})),this.hammer.on("press",(function(g){t.body.eventListeners.onHold(g)})),this.hammer.on("panstart",(function(g){t.body.eventListeners.onDragStart(g)})),this.hammer.on("panmove",(function(g){t.body.eventListeners.onDrag(g)})),this.hammer.on("panend",(function(g){t.body.eventListeners.onDragEnd(g)})),this.hammer.on("pinch",(function(g){t.body.eventListeners.onPinch(g)})),this.frame.canvas.addEventListener("wheel",(function(g){t.body.eventListeners.onMouseWheel(g)})),this.frame.canvas.addEventListener("mousemove",(function(g){t.body.eventListeners.onMouseMove(g)})),this.frame.canvas.addEventListener("contextmenu",(function(g){t.body.eventListeners.onContext(g)})),this.hammerFrame=new Bl(this.frame),UN.onRelease(this.hammerFrame,(function(g){t.body.eventListeners.onRelease(g)}))}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),g=this._prepareValue(g);var e=!1,A=this.frame.canvas.width,I=this.frame.canvas.height,C=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||g!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=g)this._getCameraState(C),this.frame.style.width=t,this.frame.style.height=g,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=g,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},e=!0;else{var i=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),n=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===i&&this.frame.canvas.height===n||this._getCameraState(C),this.frame.canvas.width!==i&&(this.frame.canvas.width=i,e=!0),this.frame.canvas.height!==n&&(this.frame.canvas.height=n,e=!0)}return!0===e&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(A/this.pixelRatio),oldHeight:Math.round(I/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,e}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var g=1;return"undefined"!=typeof window&&(g=window.devicePixelRatio||1),g/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}()),HN=C.isFinite,JN=Number.isFinite||function(t){return"number"==typeof t&&HN(t)};P({target:"Number",stat:!0},{isFinite:JN});var KN=R.Number.isFinite,qN=function(){function t(g,e){var A,I,C=this;Ll(this,t),this.body=g,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",q(A=this.fit).call(A,this)),this.body.emitter.on("animationFinished",(function(){C.body.emitter.emit("_stopRendering")})),this.body.emitter.on("unlockNode",q(I=this.releaseNode).call(I,this))}return zl(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(){var t,g,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{nodes:[]},A=arguments.length>1&&void 0!==arguments[1]&&arguments[1];void 0!==(e=HD({},e)).nodes&&0!==e.nodes.length||(e.nodes=this.body.nodeIndices);var I=this.canvas.frame.canvas.clientWidth,C=this.canvas.frame.canvas.clientHeight;if(0===I||0===C)g=1,t=zN.getRange(this.body.nodes,e.nodes);else if(!0===A){var i=0;for(var n in this.body.nodes)if(this.body.nodes.hasOwnProperty(n)){var o=this.body.nodes[n];!0===o.predefinedPosition&&(i+=1)}if(i>.5*this.body.nodeIndices.length)return void this.fit(e,!1);t=zN.getRange(this.body.nodes,e.nodes);var r=this.body.nodeIndices.length;g=12.662/(r+7.4147)+.0964822;var s=Math.min(I/600,C/600);g*=s}else{this.body.emitter.emit("_resizeNodes"),t=zN.getRange(this.body.nodes,e.nodes);var a=1.1*Math.abs(t.maxX-t.minX),l=1.1*Math.abs(t.maxY-t.minY),d=I/a,c=C/l;g=d<=c?d:c}g>1?g=1:0===g&&(g=1);var h=zN.findCenter(t),u={position:h,scale:g,animation:e.animation};this.moveTo(u)}},{key:"focus",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var e={x:this.body.nodes[t].x,y:this.body.nodes[t].y};g.position=e,g.lockedOnNode=t,this.moveTo(g)}else console.log("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!KN(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!KN(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!KN(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!KN(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}else t={}}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var g,e,A=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),I=A.x-t.position.x,C=A.y-t.position.y;if(this.targetTranslation={x:this.sourceTranslation.x+I*this.targetScale+t.offset.x,y:this.sourceTranslation.y+C*this.targetScale+t.offset.y},0===t.animation.duration)if(null!=this.lockedOnNodeId)this.viewFunction=q(g=this._lockedRedraw).call(g,this),this.body.emitter.on("initRedraw",this.viewFunction);else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=q(e=this._transitionRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}},{key:"_lockedRedraw",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,g=this.body.nodes[this.lockedOnNodeId].y,e=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),A=e.x-t,I=e.y-g,C=this.body.view.translation,i={x:C.x+A*this.body.view.scale+this.lockedOnNodeOffset.x,y:C.y+I*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=i}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var g=Vi[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*g,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*g,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*g},this.easingTime>=1){var e;if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId)this.viewFunction=q(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction);this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();bs('div.vis-network div.vis-navigation div.vis-button{width:34px;height:34px;-moz-border-radius:17px;border-radius:17px;position:absolute;display:inline-block;background-position:2px 2px;background-repeat:no-repeat;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-navigation div.vis-button:hover{box-shadow:0 0 3px 3px rgba(56,207,21,.3)}div.vis-network div.vis-navigation div.vis-button:active{box-shadow:0 0 1px 3px rgba(56,207,21,.95)}div.vis-network div.vis-navigation div.vis-button.vis-up{background-image:url("up");bottom:50px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-down{background-image:url("down");bottom:10px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-left{background-image:url("left");bottom:10px;left:15px}div.vis-network div.vis-navigation div.vis-button.vis-right{background-image:url("right");bottom:10px;left:95px}div.vis-network div.vis-navigation div.vis-button.vis-zoomIn{background-image:url("plus");bottom:10px;right:15px}div.vis-network div.vis-navigation div.vis-button.vis-zoomOut{background-image:url("minus");bottom:10px;right:55px}div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends{background-image:url("zoom");bottom:50px;right:15px}\n/*# sourceMapping */');var $N=function(){function t(g,e){var A=this;Ll(this,t),this.body=g,this.canvas=e,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",(function(){A.activated=!0,A.configureKeyboardBindings()})),this.body.emitter.on("deactivate",(function(){A.activated=!1,A.configureKeyboardBindings()})),this.body.emitter.on("destroy",(function(){void 0!==A.keycharm&&A.keycharm.destroy()})),this.options={}}return zl(t,[{key:"setOptions",value:function(t){void 0!==t&&(this.options=t,this.create())}},{key:"create",value:function(){!0===this.options.navigationButtons?!1===this.iconsCreated&&this.loadNavigationElements():!0===this.iconsCreated&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(0!=this.navigationHammers.length){for(var t=0;t<this.navigationHammers.length;t++)this.navigationHammers[t].destroy();this.navigationHammers=[]}this.navigationDOM&&this.navigationDOM.wrapper&&this.navigationDOM.wrapper.parentNode&&this.navigationDOM.wrapper.parentNode.removeChild(this.navigationDOM.wrapper),this.iconsCreated=!1}},{key:"loadNavigationElements",value:function(){var t=this;this.cleanNavigation(),this.navigationDOM={};var g=["up","down","left","right","zoomIn","zoomOut","zoomExtends"],e=["_moveUp","_moveDown","_moveLeft","_moveRight","_zoomIn","_zoomOut","_fit"];this.navigationDOM.wrapper=document.createElement("div"),this.navigationDOM.wrapper.className="vis-navigation",this.canvas.frame.appendChild(this.navigationDOM.wrapper);for(var A=0;A<g.length;A++){this.navigationDOM[g[A]]=document.createElement("div"),this.navigationDOM[g[A]].className="vis-button vis-"+g[A],this.navigationDOM.wrapper.appendChild(this.navigationDOM[g[A]]);var I,C,i=new Bl(this.navigationDOM[g[A]]);if("_fit"===e[A])UN.onTouch(i,q(I=this._fit).call(I,this));else UN.onTouch(i,q(C=this.bindToRedraw).call(C,this,e[A]));this.navigationHammers.push(i)}var n=new Bl(this.canvas.frame);UN.onRelease(n,(function(){t._stopMovement()})),this.navigationHammers.push(n),this.iconsCreated=!0}},{key:"bindToRedraw",value:function(t){var g;void 0===this.boundFunctions[t]&&(this.boundFunctions[t]=q(g=this[t]).call(g,this),this.body.emitter.on("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_startRendering"))}},{key:"unbindFromRedraw",value:function(t){void 0!==this.boundFunctions[t]&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[t])}},{key:"_fit",value:function(){(new Date).valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)this.boundFunctions.hasOwnProperty(t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,g=this.body.view.scale*(1+this.options.keyboard.speed.zoom),e=this.body.view.translation,A=g/t,I=(1-A)*this.canvas.canvasViewCenter.x+e.x*A,C=(1-A)*this.canvas.canvasViewCenter.y+e.y*A;this.body.view.scale=g,this.body.view.translation={x:I,y:C},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,g=this.body.view.scale/(1+this.options.keyboard.speed.zoom),e=this.body.view.translation,A=g/t,I=(1-A)*this.canvas.canvasViewCenter.x+e.x*A,C=(1-A)*this.canvas.canvasViewCenter.y+e.y*A;this.body.view.scale=g,this.body.view.translation={x:I,y:C},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t,g,e,A,I,C,i,n,o,r,s,a,l,d,c,h,u,f,p,v,y,m,b,w,x=this;(void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled)&&(!0===this.options.keyboard.bindToWindow?this.keycharm=ks({container:window,preventDefault:!0}):this.keycharm=ks({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(q(t=this.keycharm).call(t,"up",(function(){x.bindToRedraw("_moveUp")}),"keydown"),q(g=this.keycharm).call(g,"down",(function(){x.bindToRedraw("_moveDown")}),"keydown"),q(e=this.keycharm).call(e,"left",(function(){x.bindToRedraw("_moveLeft")}),"keydown"),q(A=this.keycharm).call(A,"right",(function(){x.bindToRedraw("_moveRight")}),"keydown"),q(I=this.keycharm).call(I,"=",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),q(C=this.keycharm).call(C,"num+",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),q(i=this.keycharm).call(i,"num-",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),q(n=this.keycharm).call(n,"-",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),q(o=this.keycharm).call(o,"[",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),q(r=this.keycharm).call(r,"]",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),q(s=this.keycharm).call(s,"pageup",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),q(a=this.keycharm).call(a,"pagedown",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),q(l=this.keycharm).call(l,"up",(function(){x.unbindFromRedraw("_moveUp")}),"keyup"),q(d=this.keycharm).call(d,"down",(function(){x.unbindFromRedraw("_moveDown")}),"keyup"),q(c=this.keycharm).call(c,"left",(function(){x.unbindFromRedraw("_moveLeft")}),"keyup"),q(h=this.keycharm).call(h,"right",(function(){x.unbindFromRedraw("_moveRight")}),"keyup"),q(u=this.keycharm).call(u,"=",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),q(f=this.keycharm).call(f,"num+",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),q(p=this.keycharm).call(p,"num-",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),q(v=this.keycharm).call(v,"-",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),q(y=this.keycharm).call(y,"[",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),q(m=this.keycharm).call(m,"]",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),q(b=this.keycharm).call(b,"pageup",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),q(w=this.keycharm).call(w,"pagedown",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup")))}}]),t}();bs("div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,.2);pointer-events:none;z-index:5}\n/*# sourceMapping */");var tE=function(){function t(g,e){Ll(this,t),this.container=g,this.overflowMethod=e||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return zl(t,[{key:"setPosition",value:function(t,g){this.x=hD(t),this.y=hD(g)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var g=this.frame.clientHeight,e=this.frame.clientWidth,A=this.frame.parentNode.clientHeight,I=this.frame.parentNode.clientWidth,C=0,i=0;if("flip"==this.overflowMethod){var n=!1,o=!0;this.y-g<this.padding&&(o=!1),this.x+e>I-this.padding&&(n=!0),C=n?this.x-e:this.x,i=o?this.y-g:this.y}else(i=this.y-g)+g+this.padding>A&&(i=A-g-this.padding),i<this.padding&&(i=this.padding),(C=this.x)+e+this.padding>I&&(C=I-e-this.padding),C<this.padding&&(C=this.padding);this.frame.style.left=C+"px",this.frame.style.top=i+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),gE=function(){function t(g,e,A){var I,C,i,n,o,r,s,a,l,d,c,h,u;Ll(this,t),this.body=g,this.canvas=e,this.selectionHandler=A,this.navigationHandler=new $N(g,e),this.body.eventListeners.onTap=q(I=this.onTap).call(I,this),this.body.eventListeners.onTouch=q(C=this.onTouch).call(C,this),this.body.eventListeners.onDoubleTap=q(i=this.onDoubleTap).call(i,this),this.body.eventListeners.onHold=q(n=this.onHold).call(n,this),this.body.eventListeners.onDragStart=q(o=this.onDragStart).call(o,this),this.body.eventListeners.onDrag=q(r=this.onDrag).call(r,this),this.body.eventListeners.onDragEnd=q(s=this.onDragEnd).call(s,this),this.body.eventListeners.onMouseWheel=q(a=this.onMouseWheel).call(a,this),this.body.eventListeners.onPinch=q(l=this.onPinch).call(l,this),this.body.eventListeners.onMouseMove=q(d=this.onMouseMove).call(d,this),this.body.eventListeners.onRelease=q(c=this.onRelease).call(c,this),this.body.eventListeners.onContext=q(h=this.onContext).call(h,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=q(u=this.getPointer).call(u,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},gi(this.options,this.defaultOptions),this.bindEventListeners()}return zl(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("destroy",(function(){clearTimeout(t.popupTimer),delete t.body.functions.getPointer}))}},{key:"setOptions",value:function(t){if(void 0!==t){Ii(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,t),zi(this.options,t,"keyboard"),t.tooltip&&(gi(this.options.tooltip,t.tooltip),t.tooltip.color&&(this.options.tooltip.color=Ni(t.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(t){return{x:t.x-si(this.canvas.frame.canvas),y:t.y-li(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(t){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var g=this.getPointer(t.center),e=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(g,t,e),this.selectionHandler._generateClickEvent("click",t,g)}},{key:"onDoubleTap",value:function(t){var g=this.getPointer(t.center);this.selectionHandler._generateClickEvent("doubleClick",t,g)}},{key:"onHold",value:function(t){var g=this.getPointer(t.center),e=this.selectionHandler.options.multiselect;this.checkSelectionChanges(g,t,e),this.selectionHandler._generateClickEvent("click",t,g),this.selectionHandler._generateClickEvent("hold",t,g)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var g=this.getPointer(t.center);this.selectionHandler._generateClickEvent("release",t,g),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var g=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler._generateClickEvent("oncontext",t,g)}},{key:"checkSelectionChanges",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=this.selectionHandler.getSelection(),I=!1;I=!0===e?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t);var C=this.selectionHandler.getSelection(),i=this._determineDifference(A,C),n=this._determineDifference(C,A);i.edges.length>0&&(this.selectionHandler._generateClickEvent("deselectEdge",g,t,A),I=!0),i.nodes.length>0&&(this.selectionHandler._generateClickEvent("deselectNode",g,t,A),I=!0),n.nodes.length>0&&(this.selectionHandler._generateClickEvent("selectNode",g,t),I=!0),n.edges.length>0&&(this.selectionHandler._generateClickEvent("selectEdge",g,t),I=!0),!0===I&&this.selectionHandler._generateClickEvent("select",g,t)}},{key:"_determineDifference",value:function(t,g){var e=function(t,g){for(var e=[],A=0;A<t.length;A++){var I=t[A];-1===Mr(g).call(g,I)&&e.push(I)}return e};return{nodes:e(t.nodes,g.nodes),edges:e(t.edges,g.edges)}}},{key:"onDragStart",value:function(t){void 0===this.drag.pointer&&this.onTouch(t);var g=this.selectionHandler.getNodeAt(this.drag.pointer);if(this.drag.dragging=!0,this.drag.selection=[],this.drag.translation=gi({},this.body.view.translation),this.drag.nodeId=void 0,void 0!==g&&!0===this.options.dragNodes){this.drag.nodeId=g.id,!1===g.isSelected()&&(this.selectionHandler.unselectAll(),this.selectionHandler.selectObject(g)),this.selectionHandler._generateClickEvent("dragStart",t,this.drag.pointer);var e=this.selectionHandler.selectionObj.nodes;for(var A in e)if(e.hasOwnProperty(A)){var I=e[A],C={id:I.id,node:I,x:I.x,y:I.y,xFixed:I.options.fixed.x,yFixed:I.options.fixed.y};I.options.fixed.x=!0,I.options.fixed.y=!0,this.drag.selection.push(C)}}else this.selectionHandler._generateClickEvent("dragStart",t,this.drag.pointer,void 0,!0)}},{key:"onDrag",value:function(t){var g=this;if(!0!==this.drag.pinched){this.body.emitter.emit("unlockNode");var e=this.getPointer(t.center),A=this.drag.selection;if(A&&A.length&&!0===this.options.dragNodes){this.selectionHandler._generateClickEvent("dragging",t,e);var I=e.x-this.drag.pointer.x,C=e.y-this.drag.pointer.y;_o(A).call(A,(function(t){var e=t.node;!1===t.xFixed&&(e.x=g.canvas._XconvertDOMtoCanvas(g.canvas._XconvertCanvasToDOM(t.x)+I)),!1===t.yFixed&&(e.y=g.canvas._YconvertDOMtoCanvas(g.canvas._YconvertCanvasToDOM(t.y)+C))})),this.body.emitter.emit("startSimulation")}else if(!0===this.options.dragView){if(this.selectionHandler._generateClickEvent("dragging",t,e,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);var i=e.x-this.drag.pointer.x,n=e.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+i,y:this.drag.translation.y+n},this.body.emitter.emit("_requestRedraw")}}}},{key:"onDragEnd",value:function(t){this.drag.dragging=!1;var g=this.drag.selection;g&&g.length?(_o(g).call(g,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler._generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler._generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}},{key:"onPinch",value:function(t){var g=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var e=this.pinch.scale*t.scale;this.zoom(e,g)}},{key:"zoom",value:function(t,g){if(!0===this.options.zoomView){var e=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var A=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(A=this.canvas.DOMtoCanvas(this.drag.pointer));var I=this.body.view.translation,C=t/e,i=(1-C)*g.x+I.x*C,n=(1-C)*g.y+I.y*C;if(this.body.view.scale=t,this.body.view.translation={x:i,y:n},null!=A){var o=this.canvas.canvasToDOM(A);this.drag.pointer.x=o.x,this.drag.pointer.y=o.y}this.body.emitter.emit("_requestRedraw"),e<t?this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:g}):this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:g})}}},{key:"onMouseWheel",value:function(t){if(!0===this.options.zoomView){if(0!==t.deltaY){var g=this.body.view.scale;g*=1+(t.deltaY<0?1:-1)*(.1*this.options.zoomSpeed);var e=this.getPointer({x:t.clientX,y:t.clientY});this.zoom(g,e)}t.preventDefault()}}},{key:"onMouseMove",value:function(t){var g=this,e=this.getPointer({x:t.clientX,y:t.clientY}),A=!1;void 0!==this.popup&&(!1===this.popup.hidden&&this._checkHidePopup(e),!1===this.popup.hidden&&(A=!0,this.popup.setPosition(e.x+3,e.y-5),this.popup.show())),!1===this.options.keyboard.bindToWindow&&!0===this.options.keyboard.enabled&&this.canvas.frame.focus(),!1===A&&(void 0!==this.popupTimer&&(clearInterval(this.popupTimer),this.popupTimer=void 0),this.drag.dragging||(this.popupTimer=Hl((function(){return g._checkShowPopup(e)}),this.options.tooltipDelay))),!0===this.options.hover&&this.selectionHandler.hoverObject(t,e)}},{key:"_checkShowPopup",value:function(t){var g=this.canvas._XconvertDOMtoCanvas(t.x),e=this.canvas._YconvertDOMtoCanvas(t.y),A={left:g,top:e,right:g,bottom:e},I=void 0===this.popupObj?void 0:this.popupObj.id,C=!1,i="node";if(void 0===this.popupObj){for(var n,o=this.body.nodeIndices,r=this.body.nodes,s=[],a=0;a<o.length;a++)!0===(n=r[o[a]]).isOverlappingWith(A)&&(C=!0,void 0!==n.getTitle()&&s.push(o[a]));s.length>0&&(this.popupObj=r[s[s.length-1]],C=!0)}if(void 0===this.popupObj&&!1===C){for(var l,d=this.body.edgeIndices,c=this.body.edges,h=[],u=0;u<d.length;u++)!0===(l=c[d[u]]).isOverlappingWith(A)&&!0===l.connected&&void 0!==l.getTitle()&&h.push(d[u]);h.length>0&&(this.popupObj=c[h[h.length-1]],i="edge")}void 0!==this.popupObj?this.popupObj.id!==I&&(void 0===this.popup&&(this.popup=new tE(this.canvas.frame)),this.popup.popupTargetType=i,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var g=this.selectionHandler._pointerToPositionObject(t),e=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(e=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(g))){var A=this.selectionHandler.getNodeAt(t);e=void 0!==A&&A.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(e=this.body.edges[this.popup.popupTargetId].isOverlappingWith(g));!1===e&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),eE=function(){function t(g,e){var A=this;Ll(this,t),this.body=g,this.canvas=e,this.selectionObj={nodes:[],edges:[]},this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},gi(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",(function(){A.updateSelection()}))}return zl(t,[{key:"setOptions",value:function(t){if(void 0!==t){Ai(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,t)}}},{key:"selectOnPoint",value:function(t){var g=!1;if(!0===this.options.selectable){var e=this.getNodeAt(t)||this.getEdgeAt(t);this.unselectAll(),void 0!==e&&(g=this.selectObject(e)),this.body.emitter.emit("_requestRedraw")}return g}},{key:"selectAdditionalOnPoint",value:function(t){var g=!1;if(!0===this.options.selectable){var e=this.getNodeAt(t)||this.getEdgeAt(t);void 0!==e&&(g=!0,!0===e.isSelected()?this.deselectObject(e):this.selectObject(e),this.body.emitter.emit("_requestRedraw"))}return g}},{key:"_initBaseEvent",value:function(t,g){var e={};return e.pointer={DOM:{x:g.x,y:g.y},canvas:this.canvas.DOMtoCanvas(g)},e.event=t,e}},{key:"_generateClickEvent",value:function(t,g,e,A){var I=arguments.length>4&&void 0!==arguments[4]&&arguments[4],C=this._initBaseEvent(g,e);if(!0===I)C.nodes=[],C.edges=[];else{var i=this.getSelection();C.nodes=i.nodes,C.edges=i.edges}void 0!==A&&(C.previousSelection=A),"click"==t&&(C.items=this.getClickedItems(e)),void 0!==g.controlEdge&&(C.controlEdge=g.controlEdge),this.body.emitter.emit(t,C)}},{key:"selectObject",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==t&&(t instanceof PO&&!0===g&&this._selectConnectedEdges(t),t.select(),this._addToSelection(t),!0)}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var g=[],e=this.body.nodes,A=0;A<this.body.nodeIndices.length;A++){var I=this.body.nodeIndices[A];e[I].isOverlappingWith(t)&&g.push(I)}return g}},{key:"_pointerToPositionObject",value:function(t){var g=this.canvas.DOMtoCanvas(t);return{left:g.x-1,top:g.y+1,right:g.x+1,bottom:g.y-1}}},{key:"getNodeAt",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=this._pointerToPositionObject(t),A=this._getAllNodesOverlappingWith(e);return A.length>0?!0===g?this.body.nodes[A[A.length-1]]:A[A.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,g){for(var e=this.body.edges,A=0;A<this.body.edgeIndices.length;A++){var I=this.body.edgeIndices[A];e[I].isOverlappingWith(t)&&g.push(I)}}},{key:"_getAllEdgesOverlappingWith",value:function(t){var g=[];return this._getEdgesOverlappingWith(t,g),g}},{key:"getEdgeAt",value:function(t){for(var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=this.canvas.DOMtoCanvas(t),A=10,I=null,C=this.body.edges,i=0;i<this.body.edgeIndices.length;i++){var n=this.body.edgeIndices[i],o=C[n];if(o.connected){var r=o.from.x,s=o.from.y,a=o.to.x,l=o.to.y,d=o.edgeType.getDistanceToEdge(r,s,a,l,e.x,e.y);d<A&&(I=n,A=d)}}return null!==I?!0===g?this.body.edges[I]:I:void 0}},{key:"_addToSelection",value:function(t){t instanceof PO?this.selectionObj.nodes[t.id]=t:this.selectionObj.edges[t.id]=t}},{key:"_addToHover",value:function(t){t instanceof PO?this.hoverObj.nodes[t.id]=t:this.hoverObj.edges[t.id]=t}},{key:"_removeFromSelection",value:function(t){t instanceof PO?(delete this.selectionObj.nodes[t.id],this._unselectConnectedEdges(t)):delete this.selectionObj.edges[t.id]}},{key:"unselectAll",value:function(){for(var t in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(t)&&this.selectionObj.nodes[t].unselect();for(var g in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(g)&&this.selectionObj.edges[g].unselect();this.selectionObj={nodes:{},edges:{}}}},{key:"_getSelectedNodeCount",value:function(){var t=0;for(var g in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(g)&&(t+=1);return t}},{key:"_getSelectedNode",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t))return this.selectionObj.nodes[t]}},{key:"_getSelectedEdge",value:function(){for(var t in this.selectionObj.edges)if(this.selectionObj.edges.hasOwnProperty(t))return this.selectionObj.edges[t]}},{key:"_getSelectedEdgeCount",value:function(){var t=0;for(var g in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(g)&&(t+=1);return t}},{key:"_getSelectedObjectCount",value:function(){var t=0;for(var g in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(g)&&(t+=1);for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&(t+=1);return t}},{key:"_selectionIsEmpty",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t))return!1;for(var g in this.selectionObj.edges)if(this.selectionObj.edges.hasOwnProperty(g))return!1;return!0}},{key:"_clusterInSelection",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t)&&this.selectionObj.nodes[t].clusterSize>1)return!0;return!1}},{key:"_selectConnectedEdges",value:function(t){for(var g=0;g<t.edges.length;g++){var e=t.edges[g];e.select(),this._addToSelection(e)}}},{key:"_hoverConnectedEdges",value:function(t){for(var g=0;g<t.edges.length;g++){var e=t.edges[g];e.hover=!0,this._addToHover(e)}}},{key:"_unselectConnectedEdges",value:function(t){for(var g=0;g<t.edges.length;g++){var e=t.edges[g];e.unselect(),this._removeFromSelection(e)}}},{key:"emitBlurEvent",value:function(t,g,e){var A=this._initBaseEvent(t,g);!0===e.hover&&(e.hover=!1,e instanceof PO?(A.node=e.id,this.body.emitter.emit("blurNode",A)):(A.edge=e.id,this.body.emitter.emit("blurEdge",A)))}},{key:"emitHoverEvent",value:function(t,g,e){var A=this._initBaseEvent(t,g),I=!1;return!1===e.hover&&(e.hover=!0,this._addToHover(e),I=!0,e instanceof PO?(A.node=e.id,this.body.emitter.emit("hoverNode",A)):(A.edge=e.id,this.body.emitter.emit("hoverEdge",A))),I}},{key:"hoverObject",value:function(t,g){var e=this.getNodeAt(g);void 0===e&&(e=this.getEdgeAt(g));var A=!1;for(var I in this.hoverObj.nodes)this.hoverObj.nodes.hasOwnProperty(I)&&(void 0===e||e instanceof PO&&e.id!=I||e instanceof xN)&&(this.emitBlurEvent(t,g,this.hoverObj.nodes[I]),delete this.hoverObj.nodes[I],A=!0);for(var C in this.hoverObj.edges)this.hoverObj.edges.hasOwnProperty(C)&&(!0===A?(this.hoverObj.edges[C].hover=!1,delete this.hoverObj.edges[C]):(void 0===e||e instanceof xN&&e.id!=C||e instanceof PO&&!e.hover)&&(this.emitBlurEvent(t,g,this.hoverObj.edges[C]),delete this.hoverObj.edges[C],A=!0));if(void 0!==e){var i=$k(this.hoverObj.edges).length,n=$k(this.hoverObj.nodes).length;(A||e instanceof xN&&0===i&&0===n||e instanceof PO&&0===i&&0===n)&&(A=this.emitHoverEvent(t,g,e)),e instanceof PO&&!0===this.options.hoverConnectedEdges&&this._hoverConnectedEdges(e)}!0===A&&this.body.emitter.emit("_requestRedraw")}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodes(),edges:this.getSelectedEdges()}}},{key:"getSelectedNodes",value:function(){var t=[];if(!0===this.options.selectable)for(var g in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(g)&&t.push(this.selectionObj.nodes[g].id);return t}},{key:"getSelectedEdges",value:function(){var t=[];if(!0===this.options.selectable)for(var g in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(g)&&t.push(this.selectionObj.edges[g].id);return t}},{key:"setSelection",value:function(t){var g,e,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw"Selection must be an object with nodes and/or edges properties";if((A.unselectAll||void 0===A.unselectAll)&&this.unselectAll(),t.nodes)for(g=0;g<t.nodes.length;g++){e=t.nodes[g];var I=this.body.nodes[e];if(!I)throw new RangeError('Node with id "'+e+'" not found');this.selectObject(I,A.highlightEdges)}if(t.edges)for(g=0;g<t.edges.length;g++){e=t.edges[g];var C=this.body.edges[e];if(!C)throw new RangeError('Edge with id "'+e+'" not found');this.selectObject(C)}this.body.emitter.emit("_requestRedraw")}},{key:"selectNodes",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:g})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(t)&&(this.body.nodes.hasOwnProperty(t)||delete this.selectionObj.nodes[t]);for(var g in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(g)&&(this.body.edges.hasOwnProperty(g)||delete this.selectionObj.edges[g])}},{key:"getClickedItems",value:function(t){for(var g=this.canvas.DOMtoCanvas(t),e=[],A=this.body.nodeIndices,I=this.body.nodes,C=A.length-1;C>=0;C--){var i=I[A[C]].getItemsOnPoint(g);e.push.apply(e,i)}for(var n=this.body.edgeIndices,o=this.body.edges,r=n.length-1;r>=0;r--){var s=o[n[r]].getItemsOnPoint(g);e.push.apply(e,s)}return e}}]),t}(),AE=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),IE=e((function(t){var g=Y.f,e=rn("meta"),A=0,I=Object.isExtensible||function(){return!0},C=function(t){g(t,e,{value:{objectID:"O"+ ++A,weakData:{}}})},i=t.exports={REQUIRED:!1,fastKey:function(t,g){if(!p(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!m(t,e)){if(!I(t))return"F";if(!g)return"E";C(t)}return t[e].objectID},getWeakData:function(t,g){if(!m(t,e)){if(!I(t))return!0;if(!g)return!1;C(t)}return t[e].weakData},onFreeze:function(t){return AE&&i.REQUIRED&&I(t)&&!m(t,e)&&C(t),t}};ln[e]=!0})),CE=(IE.REQUIRED,IE.fastKey,IE.getWeakData,IE.onFreeze,Gn("iterator")),iE=Array.prototype,nE=function(t,g,e,A){try{return A?g(L(e)[0],e[1]):g(e)}catch(g){var I=t.return;throw void 0!==I&&L(I.call(t)),g}},oE=e((function(t){var g=function(t,g){this.stopped=t,this.result=g};(t.exports=function(t,e,A,I,C){var i,n,o,r,s,a,l,d,c=F(e,A,I?2:1);if(C)i=t;else{if("function"!=typeof(n=gd(t)))throw TypeError("Target is not iterable");if(void 0!==(d=n)&&(Ji.Array===d||iE[CE]===d)){for(o=0,r=Wn(t.length);r>o;o++)if((s=I?c(L(l=t[o])[0],l[1]):c(t[o]))&&s instanceof g)return s;return new g(!1)}i=n.call(t)}for(a=i.next;!(l=a.call(i)).done;)if("object"==typeof(s=nE(i,c,l.value,I))&&s&&s instanceof g)return s;return new g(!1)}).stop=function(t){return new g(!0,t)}})),rE=function(t,g,e){if(!(t instanceof g))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return t},sE=Y.f,aE=So.forEach,lE=bn.set,dE=bn.getterFor,cE=function(t,g,e){var A,I=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),r=I?"set":"add",s=C[t],a=s&&s.prototype,l={};if(n&&"function"==typeof s&&(o||a.forEach&&!i((function(){(new s).entries().next()})))){A=g((function(g,e){lE(rE(g,A,t),{type:t,collection:new s}),null!=e&&oE(e,g[r],g,I)}));var d=dE(t);aE(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var g="add"==t||"set"==t;t in a&&(!o||"clear"!=t)&&W(A.prototype,t,(function(e,A){var I=d(this).collection;if(!g&&o&&!p(e))return"get"==t&&void 0;var C=I[t](0===e?0:e,A);return g?this:C}))})),o||sE(A.prototype,"size",{configurable:!0,get:function(){return d(this).collection.size}})}else A=e.getConstructor(g,t,I,r),IE.REQUIRED=!0;return ho(A,t,!1,!0),l[t]=A,P({global:!0,forced:!0},l),o||e.setStrong(A,t,I),A},hE=function(t,g,e){for(var A in g)e&&e.unsafe&&t[A]?t[A]=g[A]:vo(t,A,g[A],e);return t},uE=Gn("species"),fE=Y.f,pE=IE.fastKey,vE=bn.set,yE=bn.getterFor,mE={getConstructor:function(t,g,e,A){var I=t((function(t,C){rE(t,I,g),vE(t,{type:g,index:Co(null),first:void 0,last:void 0,size:0}),n||(t.size=0),null!=C&&oE(C,t[A],t,e)})),C=yE(g),i=function(t,g,e){var A,I,i=C(t),r=o(t,g);return r?r.value=e:(i.last=r={index:I=pE(g,!0),key:g,value:e,previous:A=i.last,next:void 0,removed:!1},i.first||(i.first=r),A&&(A.next=r),n?i.size++:t.size++,"F"!==I&&(i.index[I]=r)),t},o=function(t,g){var e,A=C(t),I=pE(g);if("F"!==I)return A.index[I];for(e=A.first;e;e=e.next)if(e.key==g)return e};return hE(I.prototype,{clear:function(){for(var t=C(this),g=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete g[e.index],e=e.next;t.first=t.last=void 0,n?t.size=0:this.size=0},delete:function(t){var g=C(this),e=o(this,t);if(e){var A=e.next,I=e.previous;delete g.index[e.index],e.removed=!0,I&&(I.next=A),A&&(A.previous=I),g.first==e&&(g.first=A),g.last==e&&(g.last=I),n?g.size--:this.size--}return!!e},forEach:function(t){for(var g,e=C(this),A=F(t,arguments.length>1?arguments[1]:void 0,3);g=g?g.next:e.first;)for(A(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function(t){return!!o(this,t)}}),hE(I.prototype,e?{get:function(t){var g=o(this,t);return g&&g.value},set:function(t,g){return i(this,0===t?0:t,g)}}:{add:function(t){return i(this,t=0===t?0:t,t)}}),n&&fE(I.prototype,"size",{get:function(){return C(this).size}}),I},setStrong:function(t,g,e){var A=g+" Iterator",I=yE(g),C=yE(A);xo(t,g,(function(t,g){vE(this,{type:A,target:t,state:I(t),kind:g,last:void 0})}),(function(){for(var t=C(this),g=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?"keys"==g?{value:e.key,done:!1}:"values"==g?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),e?"entries":"values",!e,!0),function(t){var g=$n(t),e=Y.f;n&&g&&!g[uE]&&e(g,uE,{configurable:!0,get:function(){return this}})}(g)}},bE=(cE("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),mE),R.Map),wE=function(t){return function(g,e,A,I){S(e);var C=wn(g),i=h(C),n=Wn(C.length),o=t?n-1:0,r=t?-1:1;if(A<2)for(;;){if(o in i){I=i[o],o+=r;break}if(o+=r,t?o<0:n<=o)throw TypeError("Reduce of empty array with no initial value")}for(;t?o>=0:n>o;o+=r)o in i&&(I=e(I,i[o],o,C));return I}},xE={left:wE(!1),right:wE(!0)}.left,kE=Fo("reduce"),DE=Yo("reduce",{1:0});P({target:"Array",proto:!0,forced:!kE||!DE},{reduce:function(t){return xE(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var OE=H("Array").reduce,NE=Array.prototype,EE=function(t){var g=t.reduce;return t===NE||t instanceof Array&&g===NE.reduce?OE:g},ZE=[],ME=ZE.sort,TE=i((function(){ZE.sort(void 0)})),GE=i((function(){ZE.sort(null)})),BE=Fo("sort");P({target:"Array",proto:!0,forced:TE||!GE||!BE},{sort:function(t){return void 0===t?ME.call(wn(this)):ME.call(wn(this),S(t))}});var RE,SE=H("Array").sort,FE=Array.prototype,LE=function(t){var g=t.sort;return t===FE||t instanceof Array&&g===FE.sort?SE:g},QE=e((function(t,g){!function(t){t.__esModule=!0,t.sort=function(t,e,A,I){if(!Array.isArray(t))throw new TypeError("Can only sort arrays");e?"function"!=typeof e&&(I=A,A=e,e=i):e=i,A||(A=0),I||(I=t.length);var C=I-A;if(!(C<2)){var r=0;if(C<g)return r=n(t,A,I,e),void o(t,A,I,A+r,e);var s=new a(t,e),l=function(t){for(var e=0;t>=g;)e|=1&t,t>>=1;return t+e}(C);do{if((r=n(t,A,I,e))<l){var d=C;d>l&&(d=l),o(t,A,A+d,A+r,e),r=d}s.pushRun(A,r),s.mergeRuns(),C-=r,A+=r}while(0!==C);s.forceMergeRuns()}};var g=32,e=7,A=256,I=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];function C(t){return t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9}function i(t,g){if(t===g)return 0;if(~~t===t&&~~g===g){if(0===t||0===g)return t<g?-1:1;if(t<0||g<0){if(g>=0)return-1;if(t>=0)return 1;t=-t,g=-g}var e=C(t),A=C(g),i=0;return e<A?(t*=I[A-e-1],g/=10,i=-1):e>A&&(g*=I[e-A-1],t/=10,i=1),t===g?i:t<g?-1:1}var n=String(t),o=String(g);return n===o?0:n<o?-1:1}function n(t,g,e,A){var I=g+1;if(I===e)return 1;if(A(t[I++],t[g])<0){for(;I<e&&A(t[I],t[I-1])<0;)I++;!function(t,g,e){for(e--;g<e;){var A=t[g];t[g++]=t[e],t[e--]=A}}(t,g,I)}else for(;I<e&&A(t[I],t[I-1])>=0;)I++;return I-g}function o(t,g,e,A,I){for(A===g&&A++;A<e;A++){for(var C=t[A],i=g,n=A;i<n;){var o=i+n>>>1;I(C,t[o])<0?n=o:i=o+1}var r=A-i;switch(r){case 3:t[i+3]=t[i+2];case 2:t[i+2]=t[i+1];case 1:t[i+1]=t[i];break;default:for(;r>0;)t[i+r]=t[i+r-1],r--}t[i]=C}}function r(t,g,e,A,I,C){var i=0,n=0,o=1;if(C(t,g[e+I])>0){for(n=A-I;o<n&&C(t,g[e+I+o])>0;)i=o,(o=1+(o<<1))<=0&&(o=n);o>n&&(o=n),i+=I,o+=I}else{for(n=I+1;o<n&&C(t,g[e+I-o])<=0;)i=o,(o=1+(o<<1))<=0&&(o=n);o>n&&(o=n);var r=i;i=I-o,o=I-r}for(i++;i<o;){var s=i+(o-i>>>1);C(t,g[e+s])>0?i=s+1:o=s}return o}function s(t,g,e,A,I,C){var i=0,n=0,o=1;if(C(t,g[e+I])<0){for(n=I+1;o<n&&C(t,g[e+I-o])<0;)i=o,(o=1+(o<<1))<=0&&(o=n);o>n&&(o=n);var r=i;i=I-o,o=I-r}else{for(n=A-I;o<n&&C(t,g[e+I+o])>=0;)i=o,(o=1+(o<<1))<=0&&(o=n);o>n&&(o=n),i+=I,o+=I}for(i++;i<o;){var s=i+(o-i>>>1);C(t,g[e+s])<0?o=s:i=s+1}return o}var a=function(){function t(g,I){!function(t,g){if(!(t instanceof g))throw new TypeError("Cannot call a class as a function")}(this,t),this.array=null,this.compare=null,this.minGallop=e,this.length=0,this.tmpStorageLength=A,this.stackLength=0,this.runStart=null,this.runLength=null,this.stackSize=0,this.array=g,this.compare=I,this.length=g.length,this.length<2*A&&(this.tmpStorageLength=this.length>>>1),this.tmp=new Array(this.tmpStorageLength),this.stackLength=this.length<120?5:this.length<1542?10:this.length<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength)}return t.prototype.pushRun=function(t,g){this.runStart[this.stackSize]=t,this.runLength[this.stackSize]=g,this.stackSize+=1},t.prototype.mergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;if(t>=1&&this.runLength[t-1]<=this.runLength[t]+this.runLength[t+1]||t>=2&&this.runLength[t-2]<=this.runLength[t]+this.runLength[t-1])this.runLength[t-1]<this.runLength[t+1]&&t--;else if(this.runLength[t]>this.runLength[t+1])break;this.mergeAt(t)}},t.prototype.forceMergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;t>0&&this.runLength[t-1]<this.runLength[t+1]&&t--,this.mergeAt(t)}},t.prototype.mergeAt=function(t){var g=this.compare,e=this.array,A=this.runStart[t],I=this.runLength[t],C=this.runStart[t+1],i=this.runLength[t+1];this.runLength[t]=I+i,t===this.stackSize-3&&(this.runStart[t+1]=this.runStart[t+2],this.runLength[t+1]=this.runLength[t+2]),this.stackSize--;var n=s(e[C],e,A,I,0,g);A+=n,0!=(I-=n)&&0!==(i=r(e[A+I-1],e,C,i,i-1,g))&&(I<=i?this.mergeLow(A,I,C,i):this.mergeHigh(A,I,C,i))},t.prototype.mergeLow=function(t,g,A,I){var C=this.compare,i=this.array,n=this.tmp,o=0;for(o=0;o<g;o++)n[o]=i[t+o];var a=0,l=A,d=t;if(i[d++]=i[l++],0!=--I)if(1!==g){for(var c=this.minGallop;;){var h=0,u=0,f=!1;do{if(C(i[l],n[a])<0){if(i[d++]=i[l++],u++,h=0,0==--I){f=!0;break}}else if(i[d++]=n[a++],h++,u=0,1==--g){f=!0;break}}while((h|u)<c);if(f)break;do{if(0!==(h=s(i[l],n,a,g,0,C))){for(o=0;o<h;o++)i[d+o]=n[a+o];if(d+=h,a+=h,(g-=h)<=1){f=!0;break}}if(i[d++]=i[l++],0==--I){f=!0;break}if(0!==(u=r(n[a],i,l,I,0,C))){for(o=0;o<u;o++)i[d+o]=i[l+o];if(d+=u,l+=u,0==(I-=u)){f=!0;break}}if(i[d++]=n[a++],1==--g){f=!0;break}c--}while(h>=e||u>=e);if(f)break;c<0&&(c=0),c+=2}if(this.minGallop=c,c<1&&(this.minGallop=1),1===g){for(o=0;o<I;o++)i[d+o]=i[l+o];i[d+I]=n[a]}else{if(0===g)throw new Error("mergeLow preconditions were not respected");for(o=0;o<g;o++)i[d+o]=n[a+o]}}else{for(o=0;o<I;o++)i[d+o]=i[l+o];i[d+I]=n[a]}else for(o=0;o<g;o++)i[d+o]=n[a+o]},t.prototype.mergeHigh=function(t,g,A,I){var C=this.compare,i=this.array,n=this.tmp,o=0;for(o=0;o<I;o++)n[o]=i[A+o];var a=t+g-1,l=I-1,d=A+I-1,c=0,h=0;if(i[d--]=i[a--],0!=--g)if(1!==I){for(var u=this.minGallop;;){var f=0,p=0,v=!1;do{if(C(n[l],i[a])<0){if(i[d--]=i[a--],f++,p=0,0==--g){v=!0;break}}else if(i[d--]=n[l--],p++,f=0,1==--I){v=!0;break}}while((f|p)<u);if(v)break;do{if(0!=(f=g-s(n[l],i,t,g,g-1,C))){for(g-=f,h=1+(d-=f),c=1+(a-=f),o=f-1;o>=0;o--)i[h+o]=i[c+o];if(0===g){v=!0;break}}if(i[d--]=n[l--],1==--I){v=!0;break}if(0!=(p=I-r(i[a],n,0,I,I-1,C))){for(I-=p,h=1+(d-=p),c=1+(l-=p),o=0;o<p;o++)i[h+o]=n[c+o];if(I<=1){v=!0;break}}if(i[d--]=i[a--],0==--g){v=!0;break}u--}while(f>=e||p>=e);if(v)break;u<0&&(u=0),u+=2}if(this.minGallop=u,u<1&&(this.minGallop=1),1===I){for(h=1+(d-=g),c=1+(a-=g),o=g-1;o>=0;o--)i[h+o]=i[c+o];i[d]=n[l]}else{if(0===I)throw new Error("mergeHigh preconditions were not respected");for(c=d-(I-1),o=0;o<I;o++)i[c+o]=n[o]}}else{for(h=1+(d-=g),c=1+(a-=g),o=g-1;o>=0;o--)i[h+o]=i[c+o];i[d]=n[l]}else for(c=d-(I-1),o=0;o<I;o++)i[c+o]=n[o]},t}()}(g)}));(RE=QE)&&RE.__esModule&&Object.prototype.hasOwnProperty.call(RE,"default")&&RE.default;var YE=QE,WE=YE.sort,zE=function(){function t(){Ll(this,t)}return zl(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(t){return this.fake_use(t),this.abstract()}},{key:"setPosition",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,g,e),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,g){this.fake_use(t,g),this.abstract()}},{key:"shift",value:function(t,g){this.fake_use(t,g),this.abstract()}}]),t}(),jE=function(t){function g(t){var e;return Ll(this,g),(e=AO(this,nO(g).call(this))).layout=t,e}return sO(g,t),zl(g,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==e&&this.layout.hierarchical.addToOrdering(t,e),t.x=g}},{key:"getTreeSize",value:function(t){var g=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:g.min_x,max:g.max_x}}},{key:"sort",value:function(t){WE(t,(function(t,g){return t.x-g.x}))}},{key:"fix",value:function(t,g){t.y=this.layout.options.hierarchical.levelSeparation*g,t.options.fixed.y=!0}},{key:"shift",value:function(t,g){this.layout.body.nodes[t].x+=g}}]),g}(zE),PE=function(t){function g(t){var e;return Ll(this,g),(e=AO(this,nO(g).call(this))).layout=t,e}return sO(g,t),zl(g,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==e&&this.layout.hierarchical.addToOrdering(t,e),t.y=g}},{key:"getTreeSize",value:function(t){var g=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:g.min_y,max:g.max_y}}},{key:"sort",value:function(t){WE(t,(function(t,g){return t.y-g.y}))}},{key:"fix",value:function(t,g){t.x=this.layout.options.hierarchical.levelSeparation*g,t.options.fixed.x=!0}},{key:"shift",value:function(t,g){this.layout.body.nodes[t].y+=g}}]),g}(zE),VE=So.every,XE=Fo("every"),UE=Yo("every");P({target:"Array",proto:!0,forced:!XE||!UE},{every:function(t){return VE(this,t,arguments.length>1?arguments[1]:void 0)}});var _E=H("Array").every,HE=Array.prototype,JE=function(t){var g=t.every;return t===HE||t instanceof Array&&g===HE.every?_E:g},KE=(cE("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),mE),R.Set);function qE(t,g){var e=new KE;return _o(t).call(t,(function(t){var g;_o(g=t.edges).call(g,(function(t){t.connected&&e.add(t)}))})),_o(e).call(e,(function(t){var e=t.from.id,A=t.to.id;null==g[e]&&(g[e]=0),(null==g[A]||g[e]>=g[A])&&(g[A]=g[e]+1)})),g}function $E(t,g,e,A,I){var C=A.size,i=e+"Id",n="to"===e?1:-1,o=!0,r=!1,s=void 0;try{for(var a,l=function(){var o=bD(a.value,2),r=o[0],s=o[1];if(!A.has(r)||!t(s))return"continue";I[r]=0;for(var l=[s],d=0,c=void 0,h=function(){var t,o;if(!A.has(r))return"continue";var s=I[c.id]+n;if(_o(t=ck(o=c.edges).call(o,(function(t){return t.connected&&t.to!==t.from&&t[e]!==c&&A.has(t.toId)&&A.has(t.fromId)}))).call(t,(function(t){var A=t[i],C=I[A];(null==C||g(s,C))&&(I[A]=s,l.push(t[e]))})),d>C)return{v:{v:qE(A,I)}};++d};c=l.pop();){var u=h();switch(u){case"continue":continue;default:if("object"===TD(u))return u.v}}},d=ed(A);!(o=(a=d.next()).done);o=!0){var c=l();switch(c){case"continue":continue;default:if("object"===TD(c))return c.v}}}catch(t){r=!0,s=t}finally{try{o||null==d.return||d.return()}finally{if(r)throw s}}return I}var tZ=function(){function t(){Ll(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return zl(t,[{key:"addRelation",value:function(t,g){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(g),void 0===this.parentReference[g]&&(this.parentReference[g]=[]),this.parentReference[g].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,g){void 0!==g&&void 0===this.trees[t.id]&&(this.trees[t.id]=g,this.treeIndex=Math.max(g,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var g=this,e={};return function t(A){if(void 0!==e[A])return e[A];var I=g.levels[A];if(g.childrenReference[A]){var C=g.childrenReference[A];if(C.length>0)for(var i=0;i<C.length;i++)I=Math.max(I,t(C[i]))}return e[A]=I,I}(t)}},{key:"levelDownstream",value:function(t,g){void 0===this.levels[g.id]&&(void 0===this.levels[t.id]&&(this.levels[t.id]=0),this.levels[g.id]=this.levels[t.id]+1)}},{key:"setMinLevelToZero",value:function(t){var g=1e9;for(var e in t)t.hasOwnProperty(e)&&void 0!==this.levels[e]&&(g=Math.min(this.levels[e],g));for(var A in t)t.hasOwnProperty(A)&&void 0!==this.levels[A]&&(this.levels[A]-=g)}},{key:"getTreeSize",value:function(t,g){var e=1e9,A=-1e9,I=1e9,C=-1e9;for(var i in this.trees)if(this.trees.hasOwnProperty(i)&&this.trees[i]===g){var n=t[i];e=Math.min(n.x,e),A=Math.max(n.x,A),I=Math.min(n.y,I),C=Math.max(n.y,C)}return{min_x:e,max_x:A,min_y:I,max_y:C}}},{key:"hasSameParent",value:function(t,g){var e=this.parentReference[t.id],A=this.parentReference[g.id];if(void 0===e||void 0===A)return!1;for(var I=0;I<e.length;I++)for(var C=0;C<A.length;C++)if(e[I]==A[C])return!0;return!1}},{key:"inSameSubNetwork",value:function(t,g){return this.trees[t.id]===this.trees[g.id]}},{key:"getLevels",value:function(){return $k(this.distributionOrdering)}},{key:"addToOrdering",value:function(t,g){void 0===this.distributionOrdering[g]&&(this.distributionOrdering[g]=[]);var e=!1,A=this.distributionOrdering[g];for(var I in A)if(A[I]===t){e=!0;break}e||(this.distributionOrdering[g].push(t),this.distributionIndex[t.id]=this.distributionOrdering[g].length-1)}}]),t}(),gZ=function(){function t(g){Ll(this,t),this.body=g,this.initialRandomSeed=Math.round(1e6*Math.random()),this.randomSeed=this.initialRandomSeed,this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},gi(this.options,this.defaultOptions),this.bindEventListeners()}return zl(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("_dataChanged",(function(){t.setupHierarchicalLayout()})),this.body.emitter.on("_dataLoaded",(function(){t.layoutNetwork()})),this.body.emitter.on("_resetHierarchicalLayout",(function(){t.setupHierarchicalLayout()})),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",(function(){if(!0===t.options.hierarchical.enabled){var g=t.direction.curveType();t.body.emitter.emit("_forceDisableDynamicCurves",g,!1)}}))}},{key:"setOptions",value:function(t,g){if(void 0!==t){var e=this.options.hierarchical,A=e.enabled;if(Ai(["randomSeed","improvedLayout","clusterThreshold"],this.options,t),zi(this.options,t,"hierarchical"),void 0!==t.randomSeed&&(this.initialRandomSeed=t.randomSeed),!0===e.enabled)return!0===A&&this.body.emitter.emit("refresh",!0),"RL"===e.direction||"DU"===e.direction?e.levelSeparation>0&&(e.levelSeparation*=-1):e.levelSeparation<0&&(e.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(g);if(!0===A)return this.body.emitter.emit("refresh"),Ci(g,this.optionsBackup)}return g}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var g=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===g.enabled||g.enabled,solver:"hierarchicalRepulsion"},g.enabled=void 0===g.enabled||g.enabled,g.solver=g.solver||"barnesHut"):"object"===TD(t.physics)?(g.enabled=void 0===t.physics.enabled||t.physics.enabled,g.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(g.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var e=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:e};else{var A=t.edges.smooth;void 0!==A.type&&"dynamic"!==A.type&&(e=A.type),this.optionsBackup.edges={smooth:void 0===A.enabled||A.enabled,type:void 0===A.type?"dynamic":A.type,roundness:void 0===A.roundness?.5:A.roundness,forceDirection:void 0!==A.forceDirection&&A.forceDirection},t.edges.smooth={enabled:void 0===A.enabled||A.enabled,type:e,roundness:void 0===A.roundness?.5:A.roundness,forceDirection:void 0!==A.forceDirection&&A.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",e)}return t}},{key:"seededRandom",value:function(){var t=1e4*Math.sin(this.randomSeed++);return t-Math.floor(t)}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this.randomSeed=this.initialRandomSeed;for(var g=t.length+50,e=0;e<t.length;e++){var A=t[e],I=2*Math.PI*this.seededRandom();void 0===A.x&&(A.x=g*Math.cos(I)),void 0===A.y&&(A.y=g*Math.sin(I))}}}},{key:"layoutNetwork",value:function(){if(!0!==this.options.hierarchical.enabled&&!0===this.options.improvedLayout){for(var t=this.body.nodeIndices,g=0,e=0;e<t.length;e++){!0===this.body.nodes[t[e]].predefinedPosition&&(g+=1)}if(g<.5*t.length){var A=0,I=this.options.clusterThreshold,C={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(t.length>I){for(var i=t.length;t.length>I&&A<=10;){A+=1;var n=t.length;if(A%3==0?this.body.modules.clustering.clusterBridges(C):this.body.modules.clustering.clusterOutliers(C),n==t.length&&A%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*i)})}A>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var o=0;o<t.length;o++){var r=this.body.nodes[t[o]];!1===r.predefinedPosition&&(r.x+=70*(.5-this.seededRandom()),r.y+=70*(.5-this.seededRandom()))}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var t=zN.getRangeCore(this.body.nodes,this.body.nodeIndices),g=zN.findCenter(t),e=0;e<this.body.nodeIndices.length;e++){var A=this.body.nodes[this.body.nodeIndices[e]];A.x-=g.x,A.y-=g.y}}},{key:"_declusterAll",value:function(){for(var t=!0;!0===t;){t=!1;for(var g=0;g<this.body.nodeIndices.length;g++)!0===this.body.nodes[this.body.nodeIndices[g]].isCluster&&(t=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[g],{},!1));!0===t&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(!0===this.options.hierarchical.enabled&&this.body.nodeIndices.length>0){var t,g,e=!1,A=!1;for(g in this.lastNodeOnLevel={},this.hierarchical=new tZ,this.body.nodes)this.body.nodes.hasOwnProperty(g)&&(void 0!==(t=this.body.nodes[g]).options.level?(e=!0,this.hierarchical.levels[g]=t.options.level):A=!0);if(!0===A&&!0===e)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===A){var I=this.options.hierarchical.sortMethod;"hubsize"===I?this._determineLevelsByHubsize():"directed"===I?this._determineLevelsDirected():"custom"===I&&this._determineLevelsCustomCallback()}for(var C in this.body.nodes)this.body.nodes.hasOwnProperty(C)&&this.hierarchical.ensureLevel(C);var i=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(i),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,g=!1,e={},A=function(g,e){var A=t.hierarchical.trees;for(var I in A)A.hasOwnProperty(I)&&A[I]===g&&t.direction.shift(I,e)},I=function(){for(var g=[],e=0;e<t.hierarchical.numTrees();e++)g.push(t.direction.getTreeSize(e));return g},C=function g(e,A){if(!A[e.id]&&(A[e.id]=!0,t.hierarchical.childrenReference[e.id])){var I=t.hierarchical.childrenReference[e.id];if(I.length>0)for(var C=0;C<I.length;C++)g(t.body.nodes[I[C]],A)}},i=function(g){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e9,A=1e9,I=1e9,C=1e9,i=-1e9;for(var n in g)if(g.hasOwnProperty(n)){var o=t.body.nodes[n],r=t.hierarchical.levels[o.id],s=t.direction.getPosition(o),a=t._getSpaceAroundNode(o,g),l=bD(a,2),d=l[0],c=l[1];A=Math.min(d,A),I=Math.min(c,I),r<=e&&(C=Math.min(s,C),i=Math.max(s,i))}return[C,i,A,I]},n=function(g,e){var A=t.hierarchical.getMaxLevel(g.id),I=t.hierarchical.getMaxLevel(e.id);return Math.min(A,I)},o=function(g,e,A){for(var I=t.hierarchical,C=0;C<e.length;C++){var i=e[C],n=I.distributionOrdering[i];if(n.length>1)for(var o=0;o<n.length-1;o++){var r=n[o],s=n[o+1];I.hasSameParent(r,s)&&I.inSameSubNetwork(r,s)&&g(r,s,A)}}},r=function(e,A){var I=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.direction.getPosition(e),r=t.direction.getPosition(A),s=Math.abs(r-o),a=t.options.hierarchical.nodeSpacing;if(s>a){var l={},d={};C(e,l),C(A,d);var c=n(e,A),h=i(l,c),u=i(d,c),f=h[1],p=u[0],v=u[2],y=Math.abs(f-p);if(y>a){var m=f-p+a;m<-v+a&&(m=-v+a),m<0&&(t._shiftBlock(A.id,m),g=!0,!0===I&&t._centerParent(A))}}},s=function(A,I){for(var n=I.id,o=I.edges,r=t.hierarchical.levels[I.id],s=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,a={},l=[],d=0;d<o.length;d++){var c=o[d];if(c.toId!=c.fromId){var h=c.toId==n?c.from:c.to;a[o[d].id]=h,t.hierarchical.levels[h.id]<r&&l.push(c)}}var u=function(g,e){for(var A=0,I=0;I<e.length;I++)if(void 0!==a[e[I].id]){var C=t.direction.getPosition(a[e[I].id])-g;A+=C/Math.sqrt(C*C+s)}return A},f=function(g,e){for(var A=0,I=0;I<e.length;I++)if(void 0!==a[e[I].id]){var C=t.direction.getPosition(a[e[I].id])-g;A-=s*Math.pow(C*C+s,-1.5)}return A},p=function(g,e){for(var A=t.direction.getPosition(I),C={},i=0;i<g;i++){var n=u(A,e),o=f(A,e);if(void 0!==C[A-=Math.max(-40,Math.min(40,Math.round(n/o)))])break;C[A]=i}return A},v=p(A,l);!function(A){var n=t.direction.getPosition(I);if(void 0===e[I.id]){var o={};C(I,o),e[I.id]=o}var r=i(e[I.id]),s=r[2],a=r[3],l=A-n,d=0;l>0?d=Math.min(l,a-t.options.hierarchical.nodeSpacing):l<0&&(d=-Math.min(-l,s-t.options.hierarchical.nodeSpacing)),0!=d&&(t._shiftBlock(I.id,d),g=!0)}(v),function(e){var A=t.direction.getPosition(I),C=t._getSpaceAroundNode(I),i=bD(C,2),n=i[0],o=i[1],r=e-A,s=A;r>0?s=Math.min(A+(o-t.options.hierarchical.nodeSpacing),e):r<0&&(s=Math.max(A-(n-t.options.hierarchical.nodeSpacing),e)),s!==A&&(t.direction.setPosition(I,s),g=!0)}(v=p(A,o))};!0===this.options.hierarchical.blockShifting&&(function(e){var A=t.hierarchical.getLevels();A=WN(A).call(A);for(var I=0;I<e&&(g=!1,o(r,A,!0),!0===g);I++);}(5),function(){for(var g in t.body.nodes)t.body.nodes.hasOwnProperty(g)&&t._centerParent(t.body.nodes[g])}()),!0===this.options.hierarchical.edgeMinimization&&function(e){var A=t.hierarchical.getLevels();A=WN(A).call(A);for(var I=0;I<e;I++){g=!1;for(var C=0;C<A.length;C++)for(var i=A[C],n=t.hierarchical.distributionOrdering[i],o=0;o<n.length;o++)s(1e3,n[o]);if(!0!==g)break}}(20),!0===this.options.hierarchical.parentCentralization&&function(){var g=t.hierarchical.getLevels();g=WN(g).call(g);for(var e=0;e<g.length;e++)for(var A=g[e],I=t.hierarchical.distributionOrdering[A],C=0;C<I.length;C++)t._centerParent(I[C])}(),function(){for(var g=I(),e=0,C=0;C<g.length-1;C++){e+=g[C].max-g[C+1].min+t.options.hierarchical.treeSpacing,A(C+1,e)}}()}},{key:"_getSpaceAroundNode",value:function(t,g){var e=!0;void 0===g&&(e=!1);var A=this.hierarchical.levels[t.id];if(void 0!==A){var I=this.hierarchical.distributionIndex[t.id],C=this.direction.getPosition(t),i=this.hierarchical.distributionOrdering[A],n=1e9,o=1e9;if(0!==I){var r=i[I-1];if(!0===e&&void 0===g[r.id]||!1===e)n=C-this.direction.getPosition(r)}if(I!=i.length-1){var s=i[I+1];if(!0===e&&void 0===g[s.id]||!1===e){var a=this.direction.getPosition(s);o=Math.min(o,a-C)}}return[n,o]}return[0,0]}},{key:"_centerParent",value:function(t){if(this.hierarchical.parentReference[t.id])for(var g=this.hierarchical.parentReference[t.id],e=0;e<g.length;e++){var A=g[e],I=this.body.nodes[A],C=this.hierarchical.childrenReference[A];if(void 0!==C){var i=this._getCenterPosition(C),n=this.direction.getPosition(I),o=this._getSpaceAroundNode(I),r=bD(o,2),s=r[0],a=r[1],l=n-i;(l<0&&Math.abs(l)<a-this.options.hierarchical.nodeSpacing||l>0&&Math.abs(l)<s-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(I,i)}}}},{key:"_placeNodesByHierarchy",value:function(t){for(var g in this.positionedNodes={},t)if(t.hasOwnProperty(g)){var e,A=$k(t[g]);A=this._indexArrayToNodes(A),LE(e=this.direction).call(e,A);for(var I=0,C=0;C<A.length;C++){var i=A[C];if(void 0===this.positionedNodes[i.id]){var n=this.options.hierarchical.nodeSpacing,o=n*I;I>0&&(o=this.direction.getPosition(A[C-1])+n),this.direction.setPosition(i,o,g),this._validatePositionAndContinue(i,g,o),I++}}}}},{key:"_placeBranchNodes",value:function(t,g){var e,A=this.hierarchical.childrenReference[t];if(void 0!==A){for(var I=[],C=0;C<A.length;C++)I.push(this.body.nodes[A[C]]);LE(e=this.direction).call(e,I);for(var i=0;i<I.length;i++){var n=I[i],o=this.hierarchical.levels[n.id];if(!(o>g&&void 0===this.positionedNodes[n.id]))return;var r=this.options.hierarchical.nodeSpacing,s=void 0;s=0===i?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(I[i-1])+r,this.direction.setPosition(n,s,o),this._validatePositionAndContinue(n,o,s)}var a=this._getCenterPosition(I);this.direction.setPosition(this.body.nodes[t],a,g)}}},{key:"_validatePositionAndContinue",value:function(t,g,e){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[g]){var A=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[g]]);if(e-A<this.options.hierarchical.nodeSpacing){var I=A+this.options.hierarchical.nodeSpacing-e,C=this._findCommonParent(this.lastNodeOnLevel[g],t.id);this._shiftBlock(C.withChild,I)}}this.lastNodeOnLevel[g]=t.id,this.positionedNodes[t.id]=!0,this._placeBranchNodes(t.id,g)}}},{key:"_indexArrayToNodes",value:function(t){for(var g=[],e=0;e<t.length;e++)g.push(this.body.nodes[t[e]]);return g}},{key:"_getDistribution",value:function(){var t,g,e={};for(t in this.body.nodes)if(this.body.nodes.hasOwnProperty(t)){g=this.body.nodes[t];var A=void 0===this.hierarchical.levels[t]?0:this.hierarchical.levels[t];this.direction.fix(g,A),void 0===e[A]&&(e[A]={}),e[A][t]=g}return e}},{key:"_getActiveEdges",value:function(t){var g=this,e=[];return hi(t.edges,(function(t){var A;-1!==Mr(A=g.body.edgeIndices).call(A,t.id)&&e.push(t)})),e}},{key:"_getHubSizes",value:function(){var t=this,g={};hi(this.body.nodeIndices,(function(e){var A=t.body.nodes[e],I=t._getActiveEdges(A).length;g[I]=!0}));var e=[];return hi(g,(function(t){e.push(Number(t))})),LE(YE).call(YE,e,(function(t,g){return g-t})),e}},{key:"_determineLevelsByHubsize",value:function(){for(var t=this,g=function(g,e){t.hierarchical.levelDownstream(g,e)},e=this._getHubSizes(),A=function(A){var I=e[A];if(0===I)return"break";hi(t.body.nodeIndices,(function(e){var A=t.body.nodes[e];I===t._getActiveEdges(A).length&&t._crawlNetwork(g,e)}))},I=0;I<e.length;++I){if("break"===A(I))break}}},{key:"_determineLevelsCustomCallback",value:function(){var t=this;this._crawlNetwork((function(g,e,A){var I=t.hierarchical.levels[g.id];void 0===I&&(I=t.hierarchical.levels[g.id]=1e5);var C=(zN.cloneOptions(g,"node"),zN.cloneOptions(e,"node"),void zN.cloneOptions(A,"edge"));t.hierarchical.levels[e.id]=I+C})),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var t,g=this,e=EE(t=this.body.nodeIndices).call(t,(function(t,e){return t.set(e,g.body.nodes[e]),t}),new bE),A=this.hierarchical.levels;"roots"===this.options.hierarchical.shakeTowards?this.hierarchical.levels=function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Br(null);return $E((function(g){var e,A;return JE(e=ck(A=g.edges).call(A,(function(g){return t.has(g.toId)}))).call(e,(function(t){return t.from===g}))}),(function(t,g){return g<t}),"to",t,g)}(e,A):this.hierarchical.levels=function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Br(null);return $E((function(g){var e,A;return JE(e=ck(A=g.edges).call(A,(function(g){return t.has(g.toId)}))).call(e,(function(t){return t.to===g}))}),(function(t,g){return g>t}),"from",t,g)}(e,A),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this;this._crawlNetwork((function(g,e){t.hierarchical.levels[e.id]>t.hierarchical.levels[g.id]&&t.hierarchical.addRelation(g.id,e.id)})),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1?arguments[1]:void 0,A={},I=function e(I,C){if(void 0===A[I.id]){var i;t.hierarchical.setTreeIndex(I,C),A[I.id]=!0;for(var n=t._getActiveEdges(I),o=0;o<n.length;o++){var r=n[o];!0===r.connected&&(i=r.toId==I.id?r.from:r.to,I.id!=i.id&&(g(I,i,r),e(i,C)))}}};if(void 0===e)for(var C=0,i=0;i<this.body.nodeIndices.length;i++){var n=this.body.nodeIndices[i];if(void 0===A[n]){var o=this.body.nodes[n];I(o,C),C+=1}}else{var r=this.body.nodes[e];if(void 0===r)return void console.error("Node not found:",e);I(r)}}},{key:"_shiftBlock",value:function(t,g){var e=this,A={};!function t(I){if(!A[I]){A[I]=!0,e.direction.shift(I,g);var C=e.hierarchical.childrenReference[I];if(void 0!==C)for(var i=0;i<C.length;i++)t(C[i])}}(t)}},{key:"_findCommonParent",value:function(t,g){var e=this,A={};return function t(g,A){var I=e.hierarchical.parentReference[A];if(void 0!==I)for(var C=0;C<I.length;C++){var i=I[C];g[i]=!0,t(g,i)}}(A,t),function t(g,A){var I=e.hierarchical.parentReference[A];if(void 0!==I)for(var C=0;C<I.length;C++){var i=I[C];if(void 0!==g[i])return{foundParent:i,withChild:A};var n=t(g,i);if(null!==n.foundParent)return n}return{foundParent:null,withChild:A}}(A,g)}},{key:"setDirectionStrategy",value:function(){var t="UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction;this.direction=t?new jE(this):new PE(this)}},{key:"_getCenterPosition",value:function(t){for(var g=1e9,e=-1e9,A=0;A<t.length;A++){var I=void 0;if(void 0!==t[A].id)I=t[A];else{var C=t[A];I=this.body.nodes[C]}var i=this.direction.getPosition(I);g=Math.min(g,i),e=Math.max(e,i)}return.5*(g+e)}}]),t}();bs('div.vis-network div.vis-manipulation{box-sizing:content-box;border:0 solid #d6d9d8;border-bottom:1px;background:#fff;background:-moz-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(48%,#fcfcfc),color-stop(50%,#fafafa),color-stop(100%,#fcfcfc));background:-webkit-linear-gradient(top,#fff,#fcfcfc 48%,#fafafa 50%,#fcfcfc);background:-o-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-ms-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:linear-gradient(180deg,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#fcfcfc",GradientType=0);padding-top:4px;position:absolute;left:0;top:0;width:100%;height:28px}div.vis-network div.vis-edit-mode{position:absolute;left:0;top:5px;height:30px}div.vis-network div.vis-close{position:absolute;right:0;top:0;width:30px;height:30px;background-position:20px 3px;background-repeat:no-repeat;background-image:url("x");cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-close:hover{opacity:.6}div.vis-network div.vis-edit-mode div.vis-button,div.vis-network div.vis-manipulation div.vis-button{float:left;font-family:verdana;font-size:12px;-moz-border-radius:15px;border-radius:15px;display:inline-block;background-position:0 0;background-repeat:no-repeat;height:24px;margin-left:10px;cursor:pointer;padding:0 8px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-manipulation div.vis-button:hover{box-shadow:1px 1px 8px rgba(0,0,0,.2)}div.vis-network div.vis-manipulation div.vis-button:active{box-shadow:1px 1px 8px rgba(0,0,0,.5)}div.vis-network div.vis-manipulation div.vis-button.vis-back{background-image:url("back")}div.vis-network div.vis-manipulation div.vis-button.vis-none:hover{box-shadow:1px 1px 8px transparent;cursor:default}div.vis-network div.vis-manipulation div.vis-button.vis-none:active{box-shadow:1px 1px 8px transparent}div.vis-network div.vis-manipulation div.vis-button.vis-none{padding:0}div.vis-network div.vis-manipulation div.notification{margin:2px;font-weight:700}div.vis-network div.vis-manipulation div.vis-button.vis-add{background-image:url("plus")}div.vis-network div.vis-edit-mode div.vis-button.vis-edit,div.vis-network div.vis-manipulation div.vis-button.vis-edit{background-image:url("edit")}div.vis-network div.vis-edit-mode div.vis-button.vis-edit.vis-edit-mode{background-color:#fcfcfc;border:1px solid #ccc}div.vis-network div.vis-manipulation div.vis-button.vis-connect{background-image:url("north-east")}div.vis-network div.vis-manipulation div.vis-button.vis-delete{background-image:url("X")}div.vis-network div.vis-edit-mode div.vis-label,div.vis-network div.vis-manipulation div.vis-label{margin:0 0 0 23px;line-height:25px}div.vis-network div.vis-manipulation div.vis-separator-line{float:left;display:inline-block;width:1px;height:21px;background-color:#bdbdbd;margin:0 7px 0 15px}\n/*# sourceMapping */');var eZ=function(){function t(g,e,A,I){var C,i,n=this;Ll(this,t),this.body=g,this.canvas=e,this.selectionHandler=A,this.interactionHandler=I,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this.manipulationHammers=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},gi(this.options,this.defaultOptions),this.body.emitter.on("destroy",(function(){n._clean()})),this.body.emitter.on("_dataChanged",q(C=this._restore).call(C,this)),this.body.emitter.on("_resetData",q(i=this._restore).call(i,this))}return zl(t,[{key:"_restore",value:function(){!1!==this.inMode&&(!0===this.options.initiallyActive?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(t,g,e){void 0!==g&&(void 0!==g.locale?this.options.locale=g.locale:this.options.locale=e.locale,void 0!==g.locales?this.options.locales=g.locales:this.options.locales=e.locales),void 0!==t&&("boolean"==typeof t?this.options.enabled=t:(this.options.enabled=!0,Ci(this.options,t)),!0===this.options.initiallyActive&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){!0===this.editMode?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},!0===this.guiEnabled){var t,g;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var e=this.selectionHandler._getSelectedNodeCount(),A=this.selectionHandler._getSelectedEdgeCount(),I=e+A,C=this.options.locales[this.options.locale],i=!1;!1!==this.options.addNode&&(this._createAddNodeButton(C),i=!0),!1!==this.options.addEdge&&(!0===i?this._createSeperator(1):i=!0,this._createAddEdgeButton(C)),1===e&&"function"==typeof this.options.editNode?(!0===i?this._createSeperator(2):i=!0,this._createEditNodeButton(C)):1===A&&0===e&&!1!==this.options.editEdge&&(!0===i?this._createSeperator(3):i=!0,this._createEditEdgeButton(C)),0!==I&&(e>0&&!1!==this.options.deleteNode?(!0===i&&this._createSeperator(4),this._createDeleteButton(C)):0===e&&!1!==this.options.deleteEdge&&(!0===i&&this._createSeperator(4),this._createDeleteButton(C))),this._bindHammerToDiv(this.closeDiv,q(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent("select",q(g=this.showManipulatorToolbar).call(g,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var t;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var g,e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.addDescription||this.options.locales.en.addDescription),this._bindHammerToDiv(this.closeDiv,q(g=this.toggleEditMode).call(g,this))}this._temporaryBindEvent("click",q(t=this._performAddNode).call(t,this))}},{key:"editNode",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var g=this.selectionHandler._getSelectedNode();if(void 0!==g){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==g.isCluster){var e=Ci({},g.options,!1);if(e.x=g.x,e.y=g.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(e,(function(g){null!=g&&"editNode"===t.inMode&&t.body.data.nodes.getDataSet().update(g),t.showManipulatorToolbar()}))}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var t,g,e,A,I;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var C,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.edgeDescription||this.options.locales.en.edgeDescription),this._bindHammerToDiv(this.closeDiv,q(C=this.toggleEditMode).call(C,this))}this._temporaryBindUI("onTouch",q(t=this._handleConnect).call(t,this)),this._temporaryBindUI("onDragEnd",q(g=this._finishConnect).call(g,this)),this._temporaryBindUI("onDrag",q(e=this._dragControlNode).call(e,this)),this._temporaryBindUI("onRelease",q(A=this._finishConnect).call(A,this)),this._temporaryBindUI("onDragStart",q(I=this._dragStartEdge).call(I,this)),this._temporaryBindUI("onHold",(function(){}))}},{key:"editEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"!==TD(this.options.editEdge)||"function"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var t,g=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(g),this._createSeperator(),this._createDescription(g.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindHammerToDiv(this.closeDiv,q(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId){var e,A,I,C,i=this.body.edges[this.edgeBeingEditedId],n=this._getNewTargetNode(i.from.x,i.from.y),o=this._getNewTargetNode(i.to.x,i.to.y);this.temporaryIds.nodes.push(n.id),this.temporaryIds.nodes.push(o.id),this.body.nodes[n.id]=n,this.body.nodeIndices.push(n.id),this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id),this._temporaryBindUI("onTouch",q(e=this._controlNodeTouch).call(e,this)),this._temporaryBindUI("onTap",(function(){})),this._temporaryBindUI("onHold",(function(){})),this._temporaryBindUI("onDragStart",q(A=this._controlNodeDragStart).call(A,this)),this._temporaryBindUI("onDrag",q(I=this._controlNodeDrag).call(I,this)),this._temporaryBindUI("onDragEnd",q(C=this._controlNodeDragEnd).call(C,this)),this._temporaryBindUI("onMouseMove",(function(){})),this._temporaryBindEvent("beforeDrawing",(function(t){var g=i.edgeType.findBorderPositions(t);!1===n.selected&&(n.x=g.from.x,n.y=g.from.y),!1===o.selected&&(o.x=g.to.x,o.y=g.to.y)})),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}else{var r=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(r.from.id,r.to.id)}}},{key:"deleteSelected",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";var g=this.selectionHandler.getSelectedNodes(),e=this.selectionHandler.getSelectedEdges(),A=void 0;if(g.length>0){for(var I=0;I<g.length;I++)if(!0===this.body.nodes[g[I]].isCluster)return void alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);"function"==typeof this.options.deleteNode&&(A=this.options.deleteNode)}else e.length>0&&"function"==typeof this.options.deleteEdge&&(A=this.options.deleteEdge);if("function"==typeof A){var C={nodes:g,edges:e};if(2!==A.length)throw new Error("The function for delete does not support two arguments (data, callback)");A(C,(function(g){null!=g&&"delete"===t.inMode?(t.body.data.edges.getDataSet().remove(g.edges),t.body.data.nodes.getDataSet().remove(g.nodes),t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar()):(t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().remove(e),this.body.data.nodes.getDataSet().remove(g),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",!0===this.editMode?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",!0===this.editMode?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("div"),this.closeDiv.className="vis-close",this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(t,g){var e=Ci({},this.options.controlNodeStyle);e.id="targetNode"+WC(),e.hidden=!1,e.physics=!1,e.x=t,e.y=g;var A=this.body.functions.createNode(e);return A.shape.boundingBox={left:t,right:t,top:g,bottom:g},A}},{key:"_createEditButton",value:function(){var t;this._clean(),this.manipulationDOM={},HC(this.editModeDiv);var g=this.options.locales[this.options.locale],e=this._createButton("editMode","vis-button vis-edit vis-edit-mode",g.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(e),this._bindHammerToDiv(e,q(t=this.toggleEditMode).call(t,this))}},{key:"_clean",value:function(){this.inMode=!1,!0===this.guiEnabled&&(HC(this.editModeDiv),HC(this.manipulationDiv),this._cleanManipulatorHammers()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanManipulatorHammers",value:function(){if(0!=this.manipulationHammers.length){for(var t=0;t<this.manipulationHammers.length;t++)this.manipulationHammers[t].destroy();this.manipulationHammers=[]}}},{key:"_removeManipulationDOM",value:function(){this._clean(),HC(this.manipulationDiv),HC(this.editModeDiv),HC(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+t]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+t].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+t])}},{key:"_createAddNodeButton",value:function(t){var g,e=this._createButton("addNode","vis-button vis-add",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,q(g=this.addNodeMode).call(g,this))}},{key:"_createAddEdgeButton",value:function(t){var g,e=this._createButton("addEdge","vis-button vis-connect",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,q(g=this.addEdgeMode).call(g,this))}},{key:"_createEditNodeButton",value:function(t){var g,e=this._createButton("editNode","vis-button vis-edit",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,q(g=this.editNode).call(g,this))}},{key:"_createEditEdgeButton",value:function(t){var g,e=this._createButton("editEdge","vis-button vis-edit",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,q(g=this.editEdgeMode).call(g,this))}},{key:"_createDeleteButton",value:function(t){var g,e;e=this.options.rtl?"vis-button vis-delete-rtl":"vis-button vis-delete";var A=this._createButton("delete",e,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(A),this._bindHammerToDiv(A,q(g=this.deleteSelected).call(g,this))}},{key:"_createBackButton",value:function(t){var g,e=this._createButton("back","vis-button vis-back",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(e),this._bindHammerToDiv(e,q(g=this.showManipulatorToolbar).call(g,this))}},{key:"_createButton",value:function(t,g,e){var A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[t+"Div"]=document.createElement("div"),this.manipulationDOM[t+"Div"].className=g,this.manipulationDOM[t+"Label"]=document.createElement("div"),this.manipulationDOM[t+"Label"].className=A,this.manipulationDOM[t+"Label"].innerHTML=e,this.manipulationDOM[t+"Div"].appendChild(this.manipulationDOM[t+"Label"]),this.manipulationDOM[t+"Div"]}},{key:"_createDescription",value:function(t){this.manipulationDiv.appendChild(this._createButton("description","vis-button vis-none",t))}},{key:"_temporaryBindEvent",value:function(t,g){this.temporaryEventFunctions.push({event:t,boundFunction:g}),this.body.emitter.on(t,g)}},{key:"_temporaryBindUI",value:function(t,g){if(void 0===this.body.eventListeners[t])throw new Error("This UI function does not exist. Typo? You tried: "+t+" possible are: "+QO($k(this.body.eventListeners)));this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=g}},{key:"_unbindTemporaryUIs",value:function(){for(var t in this.temporaryUIFunctions)this.temporaryUIFunctions.hasOwnProperty(t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var t=0;t<this.temporaryEventFunctions.length;t++){var g=this.temporaryEventFunctions[t].event,e=this.temporaryEventFunctions[t].boundFunction;this.body.emitter.off(g,e)}this.temporaryEventFunctions=[]}},{key:"_bindHammerToDiv",value:function(t,g){var e=new Bl(t,{});UN.onTouch(e,g),this.manipulationHammers.push(e)}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var t=0;t<this.temporaryIds.edges.length;t++){var g;this.body.edges[this.temporaryIds.edges[t]].disconnect(),delete this.body.edges[this.temporaryIds.edges[t]];var e,A=Mr(g=this.body.edgeIndices).call(g,this.temporaryIds.edges[t]);if(-1!==A)dr(e=this.body.edgeIndices).call(e,A,1)}for(var I=0;I<this.temporaryIds.nodes.length;I++){var C;delete this.body.nodes[this.temporaryIds.nodes[I]];var i,n=Mr(C=this.body.nodeIndices).call(C,this.temporaryIds.nodes[I]);if(-1!==n)dr(i=this.body.nodeIndices).call(i,n,1)}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(t){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=gi({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(t){var g=this.lastTouch,e=this.selectionHandler._pointerToPositionObject(g),A=this.body.nodes[this.temporaryIds.nodes[0]],I=this.body.nodes[this.temporaryIds.nodes[1]],C=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var i=A.isOverlappingWith(e),n=I.isOverlappingWith(e);!0===i?(this.selectedControlNode=A,C.edgeType.from=A):!0===n&&(this.selectedControlNode=I,C.edgeType.to=I),void 0!==this.selectedControlNode&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(t){this.body.emitter.emit("disablePhysics");var g=this.body.functions.getPointer(t.center),e=this.canvas.DOMtoCanvas(g);void 0!==this.selectedControlNode?(this.selectedControlNode.x=e.x,this.selectedControlNode.y=e.y):this.interactionHandler.onDrag(t),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(t){var g=this.body.functions.getPointer(t.center),e=this.selectionHandler._pointerToPositionObject(g),A=this.body.edges[this.edgeBeingEditedId];if(void 0!==this.selectedControlNode){this.selectionHandler.unselectAll();for(var I=this.selectionHandler._getAllNodesOverlappingWith(e),C=void 0,i=I.length-1;i>=0;i--)if(I[i]!==this.selectedControlNode.id){C=this.body.nodes[I[i]];break}if(void 0!==C&&void 0!==this.selectedControlNode)if(!0===C.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var n=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===n.id?this._performEditEdge(C.id,A.to.id):this._performEditEdge(A.from.id,C.id)}else A.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(t){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=gi({},this.body.view.translation);var g=this.lastTouch,e=this.selectionHandler.getNodeAt(g);if(void 0!==e)if(!0===e.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var A=this._getNewTargetNode(e.x,e.y);this.body.nodes[A.id]=A,this.body.nodeIndices.push(A.id);var I=this.body.functions.createEdge({id:"connectionEdge"+WC(),from:e.id,to:A.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[I.id]=I,this.body.edgeIndices.push(I.id),this.temporaryIds.nodes.push(A.id),this.temporaryIds.edges.push(I.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(t){var g=this.body.functions.getPointer(t.center),e=this.selectionHandler._pointerToPositionObject(g),A=void 0;void 0!==this.temporaryIds.edges[0]&&(A=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var I=this.selectionHandler._getAllNodesOverlappingWith(e),C=void 0,i=I.length-1;i>=0;i--){var n;if(-1===Mr(n=this.temporaryIds.nodes).call(n,I[i])){C=this.body.nodes[I[i]];break}}if(t.controlEdge={from:A,to:C?C.id:void 0},this.selectionHandler._generateClickEvent("controlNodeDragging",t,g),void 0!==this.temporaryIds.nodes[0]){var o=this.body.nodes[this.temporaryIds.nodes[0]];o.x=this.canvas._XconvertDOMtoCanvas(g.x),o.y=this.canvas._YconvertDOMtoCanvas(g.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(t)}},{key:"_finishConnect",value:function(t){var g=this.body.functions.getPointer(t.center),e=this.selectionHandler._pointerToPositionObject(g),A=void 0;void 0!==this.temporaryIds.edges[0]&&(A=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var I=this.selectionHandler._getAllNodesOverlappingWith(e),C=void 0,i=I.length-1;i>=0;i--){var n;if(-1===Mr(n=this.temporaryIds.nodes).call(n,I[i])){C=this.body.nodes[I[i]];break}}this._cleanupTemporaryNodesAndEdges(),void 0!==C&&(!0===C.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[A]&&void 0!==this.body.nodes[C.id]&&this._performAddEdge(A,C.id)),t.controlEdge={from:A,to:C?C.id:void 0},this.selectionHandler._generateClickEvent("controlNodeDragEnd",t,g),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(t){var g=this.lastTouch;this.selectionHandler._generateClickEvent("dragStart",t,g,void 0,!0)}},{key:"_performAddNode",value:function(t){var g=this,e={id:WC(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(e,(function(t){null!=t&&"addNode"===g.inMode&&g.body.data.nodes.getDataSet().add(t),g.showManipulatorToolbar()}))}else this.body.data.nodes.getDataSet().add(e),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(t,g){var e=this,A={from:t,to:g};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(A,(function(t){null!=t&&"addEdge"===e.inMode&&(e.body.data.edges.getDataSet().add(t),e.selectionHandler.unselectAll(),e.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().add(A),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(t,g){var e=this,A={id:this.edgeBeingEditedId,from:t,to:g,label:this.body.data.edges.get(this.edgeBeingEditedId).label},I=this.options.editEdge;if("object"===TD(I)&&(I=I.editWithoutDrag),"function"==typeof I){if(2!==I.length)throw new Error("The function for edit does not support two arguments (data, callback)");I(A,(function(t){null==t||"editEdge"!==e.inMode?(e.body.edges[A.id].updateEdgeType(),e.body.emitter.emit("_redraw"),e.showManipulatorToolbar()):(e.body.data.edges.getDataSet().update(t),e.selectionHandler.unselectAll(),e.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().update(A),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}();bs('div.vis-configuration{position:relative;display:block;float:left;font-size:12px}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper:after{clear:both;content:"";display:block}div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-header{font-size:18px;font-weight:700}div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}div.vis-configuration.vis-config-label.vis-config-s3{width:110px}div.vis-configuration.vis-config-label.vis-config-s4{width:100px}div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}input.vis-configuration.vis-config-checkbox{left:-5px}input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid #fff;background-color:transparent;width:300px;height:20px}input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#dedede",endColorstr="#c8c8c8",GradientType=0);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2,#385380);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(180deg,#3876c2 0,#385380);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#3876c2",endColorstr="#385380",GradientType=0);box-shadow:0 0 1px 0 #111927;margin-top:-7px}input.vis-configuration.vis-config-range:focus{outline:none}input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(180deg,#9d9d9d 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#9d9d9d",endColorstr="#c8c8c8",GradientType=0)}input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#dedede",endColorstr="#c8c8c8",GradientType=0);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-moz-range-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:transparent;border-color:transparent;border-width:6px 0;color:transparent}input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.vis-configuration.vis-config-range::-ms-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.vis-configuration-popup{position:absolute;background:rgba(57,76,89,.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.vis-configuration-popup:after,.vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.vis-configuration-popup:after{border-color:rgba(136,183,213,0) rgba(136,183,213,0) rgba(136,183,213,0) rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.vis-configuration-popup:before{border-color:rgba(194,225,245,0) rgba(194,225,245,0) rgba(194,225,245,0) #f2faff;border-width:12px;margin-top:-12px}\n/*# sourceMapping */');bs('div.vis-color-picker{position:absolute;top:0;left:30px;margin-top:-140px;margin-left:30px;width:310px;height:444px;z-index:1;padding:10px;border-radius:15px;background-color:#fff;display:none;box-shadow:0 0 10px 0 rgba(0,0,0,.5)}div.vis-color-picker div.vis-arrow{position:absolute;top:147px;left:5px}div.vis-color-picker div.vis-arrow:after,div.vis-color-picker div.vis-arrow:before{right:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}div.vis-color-picker div.vis-arrow:after{border-color:hsla(0,0%,100%,0) #fff hsla(0,0%,100%,0) hsla(0,0%,100%,0);border-width:30px;margin-top:-30px}div.vis-color-picker div.vis-color{position:absolute;width:289px;height:289px;cursor:pointer}div.vis-color-picker div.vis-brightness{position:absolute;top:313px}div.vis-color-picker div.vis-opacity{position:absolute;top:350px}div.vis-color-picker div.vis-selector{position:absolute;top:137px;left:137px;width:15px;height:15px;border-radius:15px;border:1px solid #fff;background:#4c4c4c;background:-moz-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4c4c4c),color-stop(12%,#595959),color-stop(25%,#666),color-stop(39%,#474747),color-stop(50%,#2c2c2c),color-stop(51%,#000),color-stop(60%,#111),color-stop(76%,#2b2b2b),color-stop(91%,#1c1c1c),color-stop(100%,#131313));background:-webkit-linear-gradient(top,#4c4c4c,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313);background:-o-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-ms-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:linear-gradient(180deg,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#4c4c4c",endColorstr="#131313",GradientType=0)}div.vis-color-picker div.vis-new-color{left:159px;text-align:right;padding-right:2px}div.vis-color-picker div.vis-initial-color,div.vis-color-picker div.vis-new-color{position:absolute;width:140px;height:20px;border:1px solid rgba(0,0,0,.1);border-radius:5px;top:380px;font-size:10px;color:rgba(0,0,0,.4);vertical-align:middle;line-height:20px}div.vis-color-picker div.vis-initial-color{left:10px;text-align:left;padding-left:2px}div.vis-color-picker div.vis-label{position:absolute;width:300px;left:10px}div.vis-color-picker div.vis-label.vis-brightness{top:300px}div.vis-color-picker div.vis-label.vis-opacity{top:338px}div.vis-color-picker div.vis-button{position:absolute;width:68px;height:25px;border-radius:10px;vertical-align:middle;text-align:center;line-height:25px;top:410px;border:2px solid #d9d9d9;background-color:#f7f7f7;cursor:pointer}div.vis-color-picker div.vis-button.vis-cancel{left:5px}div.vis-color-picker div.vis-button.vis-load{left:82px}div.vis-color-picker div.vis-button.vis-apply{left:159px}div.vis-color-picker div.vis-button.vis-save{left:236px}div.vis-color-picker input.vis-range{width:290px;height:20px}\n/*# sourceMapping */');var AZ={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},IZ=function(){function t(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Ll(this,t),this.pixelRatio=g,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return zl(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return AZ[t]}},{key:"setColor",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var e,A=this._isColorString(t);if(void 0!==A&&(t=A),!0===JC(t)){if(!0===Fi(t)){var I=t.substr(4).substr(0,t.length-5).split(",");e={r:I[0],g:I[1],b:I[2],a:1}}else if(!0===Li(t)){var C=t.substr(5).substr(0,t.length-6).split(",");e={r:C[0],g:C[1],b:C[2],a:C[3]}}else if(!0===Si(t)){var i=ki(t);e={r:i.r,g:i.g,b:i.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var n=void 0!==t.a?t.a:"1.0";e={r:t.r,g:t.g,b:t.b,a:n}}if(void 0===e)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+QO(t));this._setColor(e,g)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,g=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===g&&(this.previousColor=gi({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",Hl((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===g&&(this.initialColor=gi({},t)),this.color=t;var e=Ei(t.r,t.g,t.b),A=2*Math.PI,I=this.r*e.s,C=this.centerCoordinates.x+I*Math.sin(A*e.h),i=this.centerCoordinates.y+I*Math.cos(A*e.h);this.colorPickerSelector.style.left=C-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=i-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var g=Ei(this.color.r,this.color.g,this.color.b);g.v=t/100;var e=Gi(g.h,g.s,g.v);e.a=this.color.a,this.color=e,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,g=Ei(t.r,t.g,t.b),e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var A=this.colorPickerCanvas.clientWidth,I=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,A,I),e.putImageData(this.hueCircle,0,0),e.fillStyle="rgba(0,0,0,"+(1-g.v)+")",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),dO(e).call(e),this.brightnessRange.value=100*g.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,g,e,A;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var I=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(I.webkitBackingStorePixelRatio||I.mozBackingStorePixelRatio||I.msBackingStorePixelRatio||I.oBackingStorePixelRatio||I.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var C=document.createElement("DIV");C.style.color="red",C.style.fontWeight="bold",C.style.padding="10px",C.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(C)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=q(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=q(g=this._apply).call(g,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=q(e=this._save).call(e,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=q(A=this._loadLast).call(A,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Bl(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),UN.onTouch(this.hammer,(function(g){t._moveSelector(g)})),this.hammer.on("tap",(function(g){t._moveSelector(g)})),this.hammer.on("panstart",(function(g){t._moveSelector(g)})),this.hammer.on("panmove",(function(g){t._moveSelector(g)})),this.hammer.on("panend",(function(g){t._moveSelector(g)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var g,e,A,I,C=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,C,i),this.centerCoordinates={x:.5*C,y:.5*i},this.r=.49*C;var n,o=2*Math.PI/360,r=1/this.r;for(A=0;A<360;A++)for(I=0;I<this.r;I++)g=this.centerCoordinates.x+I*Math.sin(o*A),e=this.centerCoordinates.y+I*Math.cos(o*A),n=Gi(A*(1/360),I*r,1),t.fillStyle="rgb("+n.r+","+n.g+","+n.b+")",t.fillRect(g-.5,e-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,C,i)}this.generated=!0}},{key:"_moveSelector",value:function(t){var g=this.colorPickerDiv.getBoundingClientRect(),e=t.center.x-g.left,A=t.center.y-g.top,I=.5*this.colorPickerDiv.clientHeight,C=.5*this.colorPickerDiv.clientWidth,i=e-C,n=A-I,o=Math.atan2(i,n),r=.98*Math.min(Math.sqrt(i*i+n*n),C),s=Math.cos(o)*r+I,a=Math.sin(o)*r+C;this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px";var l=o/(2*Math.PI);l=l<0?l+1:l;var d=r/this.r,c=Ei(this.color.r,this.color.g,this.color.b);c.h=l,c.s=d;var h=Gi(c.h,c.s,c.v);h.a=this.color.a,this.color=h,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}(),CZ=function(){function t(g,e,A){var I=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Ll(this,t),this.parent=g,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},gi(this.options,this.defaultOptions),this.configureOptions=A,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new IZ(I),this.wrapper=void 0}return zl(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var g=!0;if("string"==typeof t)this.options.filter=t;else if(t instanceof Array)this.options.filter=t.join();else if("object"===TD(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==ck(t)&&(this.options.filter=ck(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(g=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,g=t):"function"==typeof t&&(this.options.filter=t,g=!0);!1===ck(this.options)&&(g=!1),this.options.enabled=g}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=ck(this.options),g=0,e=!1;for(var A in this.configureOptions)this.configureOptions.hasOwnProperty(A)&&(this.allowCreation=!1,e=!1,"function"==typeof t?e=(e=t(A,[]))||this._handleObject(this.configureOptions[A],[A],!0):!0!==t&&-1===Mr(t).call(t,A)||(e=!0),!1!==e&&(this.allowCreation=!0,g>0&&this._makeItem([]),this._makeHeader(A),this._handleObject(this.configureOptions[A],[A])),g++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var g=this.moduleOptions,e=0;e<t.length;e++){if(void 0===g[t[e]]){g=void 0;break}g=g[t[e]]}return g}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var g=document.createElement("div");g.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var e=arguments.length,A=new Array(e>1?e-1:0),I=1;I<e;I++)A[I-1]=arguments[I];return _o(A).call(A,(function(t){g.appendChild(t)})),this.domElements.push(g),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var g=document.createElement("div");g.className="vis-configuration vis-config-header",g.innerHTML=t,this._makeItem([],g)}},{key:"_makeLabel",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=document.createElement("div");return A.className="vis-configuration vis-config-label vis-config-s"+g.length,A.innerHTML=!0===e?"<i><b>"+t+":</b></i>":t+":",A}},{key:"_makeDropdown",value:function(t,g,e){var A=document.createElement("select");A.className="vis-configuration vis-config-select";var I=0;void 0!==g&&-1!==Mr(t).call(t,g)&&(I=Mr(t).call(t,g));for(var C=0;C<t.length;C++){var i=document.createElement("option");i.value=t[C],C===I&&(i.selected="selected"),i.innerHTML=t[C],A.appendChild(i)}var n=this;A.onchange=function(){n._update(this.value,e)};var o=this._makeLabel(e[e.length-1],e);this._makeItem(e,o,A)}},{key:"_makeRange",value:function(t,g,e){var A=t[0],I=t[1],C=t[2],i=t[3],n=document.createElement("input");n.className="vis-configuration vis-config-range";try{n.type="range",n.min=I,n.max=C}catch(t){}n.step=i;var o="",r=0;if(void 0!==g){g<0&&1.2*g<I?(n.min=Math.ceil(1.2*g),r=n.min,o="range increased"):g/1.2<I&&(n.min=Math.ceil(g/1.2),r=n.min,o="range increased"),1.2*g>C&&1!==C&&(n.max=Math.ceil(1.2*g),r=n.max,o="range increased"),n.value=g}else n.value=A;var s=document.createElement("input");s.className="vis-configuration vis-config-rangeinput",s.value=n.value;var a=this;n.onchange=function(){s.value=this.value,a._update(Number(this.value),e)},n.oninput=function(){s.value=this.value};var l=this._makeLabel(e[e.length-1],e),d=this._makeItem(e,l,n,s);""!==o&&this.popupHistory[d]!==r&&(this.popupHistory[d]=r,this._setupPopup(o,d))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var g=document.createElement("div");g.className="vis-configuration vis-config-button",g.innerHTML="generate options",g.onclick=function(){t._printOptions()},g.onmouseover=function(){g.className="vis-configuration vis-config-button hover"},g.onmouseout=function(){g.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(g)}}},{key:"_setupPopup",value:function(t,g){var e=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var A=document.createElement("div");A.id="vis-configuration-popup",A.className="vis-configuration-popup",A.innerHTML=t,A.onclick=function(){e._removePopup()},this.popupCounter+=1,this.popupDiv={html:A,index:g}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var g=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=g.left+"px",this.popupDiv.html.style.top=g.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Hl((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=Hl((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,g,e){var A=document.createElement("input");A.type="checkbox",A.className="vis-configuration vis-config-checkbox",A.checked=t,void 0!==g&&(A.checked=g,g!==t&&("object"===TD(t)?g!==t.enabled&&this.changedOptions.push({path:e,value:g}):this.changedOptions.push({path:e,value:g})));var I=this;A.onchange=function(){I._update(this.checked,e)};var C=this._makeLabel(e[e.length-1],e);this._makeItem(e,C,A)}},{key:"_makeTextInput",value:function(t,g,e){var A=document.createElement("input");A.type="text",A.className="vis-configuration vis-config-text",A.value=g,g!==t&&this.changedOptions.push({path:e,value:g});var I=this;A.onchange=function(){I._update(this.value,e)};var C=this._makeLabel(e[e.length-1],e);this._makeItem(e,C,A)}},{key:"_makeColorField",value:function(t,g,e){var A=this,I=t[1],C=document.createElement("div");"none"!==(g=void 0===g?I:g)?(C.className="vis-configuration vis-config-colorBlock",C.style.backgroundColor=g):C.className="vis-configuration vis-config-colorBlock none",g=void 0===g?I:g,C.onclick=function(){A._showColorPicker(g,C,e)};var i=this._makeLabel(e[e.length-1],e);this._makeItem(e,i,C)}},{key:"_showColorPicker",value:function(t,g,e){var A=this;g.onclick=function(){},this.colorPicker.insertTo(g),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var I="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";g.style.backgroundColor=I,A._update(I,e)})),this.colorPicker.setCloseCallback((function(){g.onclick=function(){A._showColorPicker(t,g,e)}}))}},{key:"_handleObject",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=!1,I=ck(this.options),C=!1;for(var i in t)if(t.hasOwnProperty(i)){A=!0;var n=t[i],o=oi(g,i);if("function"==typeof I&&!1===(A=I(i,g))&&!(n instanceof Array)&&"string"!=typeof n&&"boolean"!=typeof n&&n instanceof Object&&(this.allowCreation=!1,A=this._handleObject(n,o,!0),this.allowCreation=!1===e),!1!==A){C=!0;var r=this._getValue(o);if(n instanceof Array)this._handleArray(n,r,o);else if("string"==typeof n)this._makeTextInput(n,r,o);else if("boolean"==typeof n)this._makeCheckbox(n,r,o);else if(n instanceof Object){var s=!0;if(-1!==Mr(g).call(g,"physics")&&this.moduleOptions.physics.solver!==i&&(s=!1),!0===s)if(void 0!==n.enabled){var a=oi(o,"enabled"),l=this._getValue(a);if(!0===l){var d=this._makeLabel(i,o,!0);this._makeItem(o,d),C=this._handleObject(n,o)||C}else this._makeCheckbox(n,l,o)}else{var c=this._makeLabel(i,o,!0);this._makeItem(o,c),C=this._handleObject(n,o)||C}}else console.error("dont know how to handle",n,i,o)}}return C}},{key:"_handleArray",value:function(t,g,e){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,g,e),t[1]!==g&&this.changedOptions.push({path:e,value:g})):"string"==typeof t[0]?(this._makeDropdown(t,g,e),t[0]!==g&&this.changedOptions.push({path:e,value:g})):"number"==typeof t[0]&&(this._makeRange(t,g,e),t[0]!==g&&this.changedOptions.push({path:e,value:Number(g)}))}},{key:"_update",value:function(t,g){var e=this._constructOptions(t,g);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",e),this.initialized=!0,this.parent.setOptions(e)}},{key:"_constructOptions",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},A=e;t="false"!==(t="true"===t||t)&&t;for(var I=0;I<g.length;I++)"global"!==g[I]&&(void 0===A[g[I]]&&(A[g[I]]={}),I!==g.length-1?A=A[g[I]]:A[g[I]]=t);return e}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+QO(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},g=0;g<this.changedOptions.length;g++)this._constructOptions(this.changedOptions[g].value,this.changedOptions[g].path,t);return t}}]),t}(),iZ="string",nZ="boolean",oZ="number",rZ="object",sZ=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],aZ={configure:{enabled:{boolean:nZ},filter:{boolean:nZ,string:iZ,array:"array",function:"function"},container:{dom:"dom"},showButton:{boolean:nZ},__type__:{object:rZ,boolean:nZ,string:iZ,array:"array",function:"function"}},edges:{arrows:{to:{enabled:{boolean:nZ},scaleFactor:{number:oZ},type:{string:sZ},imageHeight:{number:oZ},imageWidth:{number:oZ},src:{string:iZ},__type__:{object:rZ,boolean:nZ}},middle:{enabled:{boolean:nZ},scaleFactor:{number:oZ},type:{string:sZ},imageWidth:{number:oZ},imageHeight:{number:oZ},src:{string:iZ},__type__:{object:rZ,boolean:nZ}},from:{enabled:{boolean:nZ},scaleFactor:{number:oZ},type:{string:sZ},imageWidth:{number:oZ},imageHeight:{number:oZ},src:{string:iZ},__type__:{object:rZ,boolean:nZ}},__type__:{string:["from","to","middle"],object:rZ}},arrowStrikethrough:{boolean:nZ},background:{enabled:{boolean:nZ},color:{string:iZ},size:{number:oZ},dashes:{boolean:nZ,array:"array"},__type__:{object:rZ,boolean:nZ}},chosen:{label:{boolean:nZ,function:"function"},edge:{boolean:nZ,function:"function"},__type__:{object:rZ,boolean:nZ}},color:{color:{string:iZ},highlight:{string:iZ},hover:{string:iZ},inherit:{string:["from","to","both"],boolean:nZ},opacity:{number:oZ},__type__:{object:rZ,string:iZ}},dashes:{boolean:nZ,array:"array"},font:{color:{string:iZ},size:{number:oZ},face:{string:iZ},background:{string:iZ},strokeWidth:{number:oZ},strokeColor:{string:iZ},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:oZ},multi:{boolean:nZ,string:iZ},bold:{color:{string:iZ},size:{number:oZ},face:{string:iZ},mod:{string:iZ},vadjust:{number:oZ},__type__:{object:rZ,string:iZ}},boldital:{color:{string:iZ},size:{number:oZ},face:{string:iZ},mod:{string:iZ},vadjust:{number:oZ},__type__:{object:rZ,string:iZ}},ital:{color:{string:iZ},size:{number:oZ},face:{string:iZ},mod:{string:iZ},vadjust:{number:oZ},__type__:{object:rZ,string:iZ}},mono:{color:{string:iZ},size:{number:oZ},face:{string:iZ},mod:{string:iZ},vadjust:{number:oZ},__type__:{object:rZ,string:iZ}},__type__:{object:rZ,string:iZ}},hidden:{boolean:nZ},hoverWidth:{function:"function",number:oZ},label:{string:iZ,undefined:"undefined"},labelHighlightBold:{boolean:nZ},length:{number:oZ,undefined:"undefined"},physics:{boolean:nZ},scaling:{min:{number:oZ},max:{number:oZ},label:{enabled:{boolean:nZ},min:{number:oZ},max:{number:oZ},maxVisible:{number:oZ},drawThreshold:{number:oZ},__type__:{object:rZ,boolean:nZ}},customScalingFunction:{function:"function"},__type__:{object:rZ}},selectionWidth:{function:"function",number:oZ},selfReferenceSize:{number:oZ},shadow:{enabled:{boolean:nZ},color:{string:iZ},size:{number:oZ},x:{number:oZ},y:{number:oZ},__type__:{object:rZ,boolean:nZ}},smooth:{enabled:{boolean:nZ},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:oZ},forceDirection:{string:["horizontal","vertical","none"],boolean:nZ},__type__:{object:rZ,boolean:nZ}},title:{string:iZ,undefined:"undefined"},width:{number:oZ},widthConstraint:{maximum:{number:oZ},__type__:{object:rZ,boolean:nZ,number:oZ}},value:{number:oZ,undefined:"undefined"},__type__:{object:rZ}},groups:{useDefaultGroups:{boolean:nZ},__any__:"get from nodes, will be overwritten below",__type__:{object:rZ}},interaction:{dragNodes:{boolean:nZ},dragView:{boolean:nZ},hideEdgesOnDrag:{boolean:nZ},hideEdgesOnZoom:{boolean:nZ},hideNodesOnDrag:{boolean:nZ},hover:{boolean:nZ},keyboard:{enabled:{boolean:nZ},speed:{x:{number:oZ},y:{number:oZ},zoom:{number:oZ},__type__:{object:rZ}},bindToWindow:{boolean:nZ},__type__:{object:rZ,boolean:nZ}},multiselect:{boolean:nZ},navigationButtons:{boolean:nZ},selectable:{boolean:nZ},selectConnectedEdges:{boolean:nZ},hoverConnectedEdges:{boolean:nZ},tooltipDelay:{number:oZ},zoomView:{boolean:nZ},zoomSpeed:{number:oZ},__type__:{object:rZ}},layout:{randomSeed:{undefined:"undefined",number:oZ},improvedLayout:{boolean:nZ},clusterThreshold:{number:oZ},hierarchical:{enabled:{boolean:nZ},levelSeparation:{number:oZ},nodeSpacing:{number:oZ},treeSpacing:{number:oZ},blockShifting:{boolean:nZ},edgeMinimization:{boolean:nZ},parentCentralization:{boolean:nZ},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:rZ,boolean:nZ}},__type__:{object:rZ}},manipulation:{enabled:{boolean:nZ},initiallyActive:{boolean:nZ},addNode:{boolean:nZ,function:"function"},addEdge:{boolean:nZ,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:rZ,boolean:nZ,function:"function"}},deleteNode:{boolean:nZ,function:"function"},deleteEdge:{boolean:nZ,function:"function"},controlNodeStyle:"get from nodes, will be overwritten below",__type__:{object:rZ,boolean:nZ}},nodes:{borderWidth:{number:oZ},borderWidthSelected:{number:oZ,undefined:"undefined"},brokenImage:{string:iZ,undefined:"undefined"},chosen:{label:{boolean:nZ,function:"function"},node:{boolean:nZ,function:"function"},__type__:{object:rZ,boolean:nZ}},color:{border:{string:iZ},background:{string:iZ},highlight:{border:{string:iZ},background:{string:iZ},__type__:{object:rZ,string:iZ}},hover:{border:{string:iZ},background:{string:iZ},__type__:{object:rZ,string:iZ}},__type__:{object:rZ,string:iZ}},fixed:{x:{boolean:nZ},y:{boolean:nZ},__type__:{object:rZ,boolean:nZ}},font:{align:{string:iZ},color:{string:iZ},size:{number:oZ},face:{string:iZ},background:{string:iZ},strokeWidth:{number:oZ},strokeColor:{string:iZ},vadjust:{number:oZ},multi:{boolean:nZ,string:iZ},bold:{color:{string:iZ},size:{number:oZ},face:{string:iZ},mod:{string:iZ},vadjust:{number:oZ},__type__:{object:rZ,string:iZ}},boldital:{color:{string:iZ},size:{number:oZ},face:{string:iZ},mod:{string:iZ},vadjust:{number:oZ},__type__:{object:rZ,string:iZ}},ital:{color:{string:iZ},size:{number:oZ},face:{string:iZ},mod:{string:iZ},vadjust:{number:oZ},__type__:{object:rZ,string:iZ}},mono:{color:{string:iZ},size:{number:oZ},face:{string:iZ},mod:{string:iZ},vadjust:{number:oZ},__type__:{object:rZ,string:iZ}},__type__:{object:rZ,string:iZ}},group:{string:iZ,number:oZ,undefined:"undefined"},heightConstraint:{minimum:{number:oZ},valign:{string:iZ},__type__:{object:rZ,boolean:nZ,number:oZ}},hidden:{boolean:nZ},icon:{face:{string:iZ},code:{string:iZ},size:{number:oZ},color:{string:iZ},weight:{string:iZ,number:oZ},__type__:{object:rZ}},id:{string:iZ,number:oZ},image:{selected:{string:iZ,undefined:"undefined"},unselected:{string:iZ,undefined:"undefined"},__type__:{object:rZ,string:iZ}},imagePadding:{top:{number:oZ},right:{number:oZ},bottom:{number:oZ},left:{number:oZ},__type__:{object:rZ,number:oZ}},label:{string:iZ,undefined:"undefined"},labelHighlightBold:{boolean:nZ},level:{number:oZ,undefined:"undefined"},margin:{top:{number:oZ},right:{number:oZ},bottom:{number:oZ},left:{number:oZ},__type__:{object:rZ,number:oZ}},mass:{number:oZ},physics:{boolean:nZ},scaling:{min:{number:oZ},max:{number:oZ},label:{enabled:{boolean:nZ},min:{number:oZ},max:{number:oZ},maxVisible:{number:oZ},drawThreshold:{number:oZ},__type__:{object:rZ,boolean:nZ}},customScalingFunction:{function:"function"},__type__:{object:rZ}},shadow:{enabled:{boolean:nZ},color:{string:iZ},size:{number:oZ},x:{number:oZ},y:{number:oZ},__type__:{object:rZ,boolean:nZ}},shape:{string:["ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},shapeProperties:{borderDashes:{boolean:nZ,array:"array"},borderRadius:{number:oZ},interpolation:{boolean:nZ},useImageSize:{boolean:nZ},useBorderWithImage:{boolean:nZ},__type__:{object:rZ}},size:{number:oZ},title:{string:iZ,dom:"dom",undefined:"undefined"},value:{number:oZ,undefined:"undefined"},widthConstraint:{minimum:{number:oZ},maximum:{number:oZ},__type__:{object:rZ,boolean:nZ,number:oZ}},x:{number:oZ},y:{number:oZ},__type__:{object:rZ}},physics:{enabled:{boolean:nZ},barnesHut:{gravitationalConstant:{number:oZ},centralGravity:{number:oZ},springLength:{number:oZ},springConstant:{number:oZ},damping:{number:oZ},avoidOverlap:{number:oZ},__type__:{object:rZ}},forceAtlas2Based:{gravitationalConstant:{number:oZ},centralGravity:{number:oZ},springLength:{number:oZ},springConstant:{number:oZ},damping:{number:oZ},avoidOverlap:{number:oZ},__type__:{object:rZ}},repulsion:{centralGravity:{number:oZ},springLength:{number:oZ},springConstant:{number:oZ},nodeDistance:{number:oZ},damping:{number:oZ},__type__:{object:rZ}},hierarchicalRepulsion:{centralGravity:{number:oZ},springLength:{number:oZ},springConstant:{number:oZ},nodeDistance:{number:oZ},damping:{number:oZ},avoidOverlap:{number:oZ},__type__:{object:rZ}},maxVelocity:{number:oZ},minVelocity:{number:oZ},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:nZ},iterations:{number:oZ},updateInterval:{number:oZ},onlyDynamicEdges:{boolean:nZ},fit:{boolean:nZ},__type__:{object:rZ,boolean:nZ}},timestep:{number:oZ},adaptiveTimestep:{boolean:nZ},__type__:{object:rZ,boolean:nZ}},autoResize:{boolean:nZ},clickToUse:{boolean:nZ},locale:{string:iZ},locales:{__any__:{any:"any"},__type__:{object:rZ}},height:{string:iZ},width:{string:iZ},__type__:{object:rZ}};aZ.groups.__any__=aZ.nodes,aZ.manipulation.controlNodeStyle=aZ.nodes;var lZ={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,1,1,1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01]}},dZ=Object.freeze({__proto__:null,allOptions:aZ,configureOptions:lZ}),cZ=function(){function t(){Ll(this,t)}return zl(t,[{key:"getDistances",value:function(t,g,e){for(var A={},I=t.edges,C=0;C<g.length;C++){var i={};A[g[C]]=i;for(var n=0;n<g.length;n++)i[g[n]]=C==n?0:1e9}for(var o=0;o<e.length;o++){var r=I[e[o]];!0===r.connected&&void 0!==A[r.fromId]&&void 0!==A[r.toId]&&(A[r.fromId][r.toId]=1,A[r.toId][r.fromId]=1)}for(var s=g.length,a=0;a<s;a++)for(var l=g[a],d=A[l],c=0;c<s-1;c++)for(var h=g[c],u=A[h],f=c+1;f<s;f++){var p=g[f],v=A[p],y=Math.min(u[p],u[l]+d[p]);u[p]=y,v[h]=y}return A}}]),t}(),hZ=function(){function t(g,e,A){Ll(this,t),this.body=g,this.springLength=e,this.springConstant=A,this.distanceSolver=new cZ}return zl(t,[{key:"setOptions",value:function(t){t&&(t.springLength&&(this.springLength=t.springLength),t.springConstant&&(this.springConstant=t.springConstant))}},{key:"solve",value:function(t,g){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=this.distanceSolver.getDistances(this.body,t,g);this._createL_matrix(A),this._createK_matrix(A),this._createE_matrix();for(var I=.01,C=1,i=0,n=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),o=5,r=1e9,s=0,a=0,l=0,d=0,c=0;r>I&&i<n;){i+=1;var h=this._getHighestEnergyNode(e),u=bD(h,4);for(s=u[0],r=u[1],a=u[2],l=u[3],d=r,c=0;d>C&&c<o;){c+=1,this._moveNode(s,a,l);var f=this._getEnergy(s),p=bD(f,3);d=p[0],a=p[1],l=p[2]}}}},{key:"_getHighestEnergyNode",value:function(t){for(var g=this.body.nodeIndices,e=this.body.nodes,A=0,I=g[0],C=0,i=0,n=0;n<g.length;n++){var o=g[n];if(!1===e[o].predefinedPosition||!0===e[o].isCluster&&!0===t||!0===e[o].options.fixed.x||!0===e[o].options.fixed.y){var r=this._getEnergy(o),s=bD(r,3),a=s[0],l=s[1],d=s[2];A<a&&(A=a,I=o,C=l,i=d)}}return[I,A,C,i]}},{key:"_getEnergy",value:function(t){var g=bD(this.E_sums[t],2),e=g[0],A=g[1];return[Math.sqrt(Math.pow(e,2)+Math.pow(A,2)),e,A]}},{key:"_moveNode",value:function(t,g,e){for(var A=this.body.nodeIndices,I=this.body.nodes,C=0,i=0,n=0,o=I[t].x,r=I[t].y,s=this.K_matrix[t],a=this.L_matrix[t],l=0;l<A.length;l++){var d=A[l];if(d!==t){var c=I[d].x,h=I[d].y,u=s[d],f=a[d],p=1/Math.pow(Math.pow(o-c,2)+Math.pow(r-h,2),1.5);C+=u*(1-f*Math.pow(r-h,2)*p),i+=u*(f*(o-c)*(r-h)*p),n+=u*(1-f*Math.pow(o-c,2)*p)}}var v=(g/C+e/i)/(i/C-n/i),y=-(i*v+g)/C;I[t].x+=y,I[t].y+=v,this._updateE_matrix(t)}},{key:"_createL_matrix",value:function(t){var g=this.body.nodeIndices,e=this.springLength;this.L_matrix=[];for(var A=0;A<g.length;A++){this.L_matrix[g[A]]={};for(var I=0;I<g.length;I++)this.L_matrix[g[A]][g[I]]=e*t[g[A]][g[I]]}}},{key:"_createK_matrix",value:function(t){var g=this.body.nodeIndices,e=this.springConstant;this.K_matrix=[];for(var A=0;A<g.length;A++){this.K_matrix[g[A]]={};for(var I=0;I<g.length;I++)this.K_matrix[g[A]][g[I]]=e*Math.pow(t[g[A]][g[I]],-2)}}},{key:"_createE_matrix",value:function(){var t=this.body.nodeIndices,g=this.body.nodes;this.E_matrix={},this.E_sums={};for(var e=0;e<t.length;e++)this.E_matrix[t[e]]=[];for(var A=0;A<t.length;A++){for(var I=t[A],C=g[I].x,i=g[I].y,n=0,o=0,r=A;r<t.length;r++){var s=t[r];if(s!==I){var a=g[s].x,l=g[s].y,d=1/Math.sqrt(Math.pow(C-a,2)+Math.pow(i-l,2));this.E_matrix[I][r]=[this.K_matrix[I][s]*(C-a-this.L_matrix[I][s]*(C-a)*d),this.K_matrix[I][s]*(i-l-this.L_matrix[I][s]*(i-l)*d)],this.E_matrix[s][A]=this.E_matrix[I][r],n+=this.E_matrix[I][r][0],o+=this.E_matrix[I][r][1]}}this.E_sums[I]=[n,o]}}},{key:"_updateE_matrix",value:function(t){for(var g=this.body.nodeIndices,e=this.body.nodes,A=this.E_matrix[t],I=this.K_matrix[t],C=this.L_matrix[t],i=e[t].x,n=e[t].y,o=0,r=0,s=0;s<g.length;s++){var a=g[s];if(a!==t){var l=A[s],d=l[0],c=l[1],h=e[a].x,u=e[a].y,f=1/Math.sqrt(Math.pow(i-h,2)+Math.pow(n-u,2)),p=I[a]*(i-h-C[a]*(i-h)*f),v=I[a]*(n-u-C[a]*(n-u)*f);A[s]=[p,v],o+=p,r+=v;var y=this.E_sums[a];y[0]+=p-d,y[1]+=v-c}}this.E_sums[t]=[o,r]}}]),t}();function uZ(t,g,e){var A,I,C,i,n=this;if(!(this instanceof uZ))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:Fl,clickToUse:!1},gi(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:q(A=this.on).call(A,this),off:q(I=this.off).call(I,this),emit:q(C=this.emit).call(C,this),once:q(i=this.once).call(i,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}}},this.bindEventListeners(),this.images=new Pl((function(){return n.body.emitter.emit("_requestRedraw")})),this.groups=new Vl,this.canvas=new _N(this.body),this.selectionHandler=new eE(this.body,this.canvas),this.interactionHandler=new gE(this.body,this.canvas,this.selectionHandler),this.view=new qN(this.body,this.canvas),this.renderer=new VN(this.body,this.canvas),this.physics=new SN(this.body),this.layoutEngine=new gZ(this.body),this.clustering=new PN(this.body),this.manipulation=new eZ(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new VO(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new kN(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new hZ(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(g)}Ct(uZ.prototype),uZ.prototype.setOptions=function(t){var g=this;if(null===t&&(t=void 0),void 0!==t){!0===zO.validate(t,aZ)&&console.log("%cErrors have been found in the supplied options object.",WO);if(Ai(["locale","locales","clickToUse"],this.options,t),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),void 0!==t.groups&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new CZ(this,this.body.container,lZ,this.canvas.pixelRatio)),this.configurator.setOptions(t.configure)),this.configurator&&!0===this.configurator.options.enabled){var e={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Ci(e.nodes,this.nodesHandler.options),Ci(e.edges,this.edgesHandler.options),Ci(e.layout,this.layoutEngine.options),Ci(e.interaction,this.selectionHandler.options),Ci(e.interaction,this.renderer.options),Ci(e.interaction,this.interactionHandler.options),Ci(e.manipulation,this.manipulation.options),Ci(e.physics,this.physics.options),Ci(e.global,this.canvas.options),Ci(e.global,this.options),this.configurator.setModuleOptions(e)}void 0!==t.clickToUse?!0===t.clickToUse?void 0===this.activator&&(this.activator=new Sl(this.canvas.frame),this.activator.on("change",(function(){g.body.emitter.emit("activate")}))):(void 0!==this.activator&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}},uZ.prototype._updateVisibleIndices=function(){var t=this.body.nodes,g=this.body.edges;for(var e in this.body.nodeIndices=[],this.body.edgeIndices=[],t)t.hasOwnProperty(e)&&(this.clustering._isClusteredNode(e)||!1!==t[e].options.hidden||this.body.nodeIndices.push(t[e].id));for(var A in g)if(g.hasOwnProperty(A)){var I=g[A],C=t[I.fromId],i=t[I.toId],n=void 0!==C&&void 0!==i;!this.clustering._isClusteredEdge(A)&&!1===I.options.hidden&&n&&!1===C.options.hidden&&!1===i.options.hidden&&this.body.edgeIndices.push(I.id)}},uZ.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",(function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")})),this.body.emitter.on("_dataUpdated",(function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")}))},uZ.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.log("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var g=ls.DOTToGraph(t.dot);this.setData(g)}else if(t&&t.gephi){console.log("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=ys(t.gephi);this.setData(e)}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0),this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")},uZ.prototype.destroy=function(){for(var t in this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images,this.body.nodes)this.body.nodes.hasOwnProperty(t)&&delete this.body.nodes[t];for(var g in this.body.edges)this.body.edges.hasOwnProperty(g)&&delete this.body.edges[g];HC(this.body.container)},uZ.prototype._updateValueRange=function(t){var g,e=void 0,A=void 0,I=0;for(g in t)if(t.hasOwnProperty(g)){var C=t[g].getValue();void 0!==C&&(e=void 0===e?C:Math.min(C,e),A=void 0===A?C:Math.max(C,A),I+=C)}if(void 0!==e&&void 0!==A)for(g in t)t.hasOwnProperty(g)&&t[g].setValueRange(e,A,I)},uZ.prototype.isActive=function(){return!this.activator||this.activator.active},uZ.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)},uZ.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)},uZ.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)},uZ.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)},uZ.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)},uZ.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)},uZ.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)},uZ.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)},uZ.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)},uZ.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)},uZ.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)},uZ.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)},uZ.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)},uZ.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)},uZ.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)},uZ.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)},uZ.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)},uZ.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)},uZ.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)},uZ.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)},uZ.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)},uZ.prototype.editNodeMode=function(){return console.log("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)},uZ.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)},uZ.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)},uZ.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)},uZ.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)},uZ.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)},uZ.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)},uZ.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)},uZ.prototype.getConnectedNodes=function(t){return void 0!==this.body.nodes[t]?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)},uZ.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)},uZ.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)},uZ.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)},uZ.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)},uZ.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)},uZ.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)},uZ.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments)},uZ.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments)},uZ.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},uZ.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},uZ.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)},uZ.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)},uZ.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.redraw()},uZ.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)},uZ.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)},uZ.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)},uZ.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)},uZ.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)},uZ.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)},uZ.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)},uZ.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};var fZ=as;t.DataSet=_x,t.DataView=Hx,t.Network=uZ,t.NetworkImages=Pl,t.Queue=Fx,t.data=Kx,t.networkDOTParser=ds,t.networkGephiParser=ms,t.networkOptions=dZ,t.parseDOTNetwork=fZ,t.parseGephiNetwork=ys,t.util=Hi,Object.defineProperty(t,"__esModule",{value:!0})}));
</script>
<script>
// create a network
var container = document.getElementById('mynetwork');
var options = {
physics: {
stabilization: false,
barnesHut: {
springLength: 200
}
}
};
var data = {};
var network = new vis.Network(container, data, options);
$('#draw').click(draw);
$('a.example').click(function (event) {
var url = $(event.target).data('url');
$.get(url)
.done(function(dotData) {
$('#data').val(dotData);
draw();
})
.fail(function () {
$('#error').html('Error: Cannot fetch the example data because of security restrictions in JavaScript. Run the example from a server instead of as a local file to resolve this problem. Alternatively, you can copy/paste the data of DOT graphs manually in the textarea below.');
resize();
});
});
$(window).resize(resize);
$(window).load(draw);
$('#data').keydown(function (event) {
if (event.ctrlKey && event.keyCode === 13) { // Ctrl+Enter
draw();
event.stopPropagation();
event.preventDefault();
}
});
function resize() {
$('#contents').height($('body').height() - $('#header').height() - 30);
}
function draw () {
try {
resize();
$('#error').html('');
// Provide a string with data in DOT language
data = vis.parseDOTNetwork($('#data').val());
network.setData(data);
}
catch (err) {
// set the cursor at the position where the error occurred
var match = /\(char (.*)\)/.exec(err);
if (match) {
var pos = Number(match[1]);
var textarea = $('#data')[0];
if(textarea.setSelectionRange) {
textarea.focus();
textarea.setSelectionRange(pos, pos);
}
}
// show an error message
$('#error').html(err.toString());
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment