(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f5f604e"],{"0031":function(t,e,n){const r=n("0a4a"),i=n("4651"),a=n("3a21"),o=800;i.registerLayout("fruchtermanGroup",{getDefaultCfg(){return{maxIteration:1e3,center:[0,0],gravity:1,speed:1,groupGravity:1,nodeRepulsiveCoefficient:50,groupRepulsiveCoefficient:10,nodeAttractiveCoefficient:1,groupAttractiveCoefficient:1,preventGroupOverlap:!0,groupCollideStrength:.7}},init(t){const e=this;e.nodes=t.nodes,e.edges=t.edges,e.graph=t.graph,e.groupsData=e.graph.get("groups"),e.customGroup=e.graph.get("customGroup"),e.groupController=e.graph.get("customGroupControll")},execute(){const t=this,e=t.nodes,n=t.center;if(0===e.length)return;if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);const r=new Map,i=new Map;e.forEach((t,e)=>{r.set(t.id,t),i.set(t.id,e)}),t.nodeMap=r,t.nodeIndexMap=i,t.run(),t.graph.refreshPositions();const a=t.customGroup,o=a.get("children"),s=t.groupController,u=t.graph.get("groupType");o.forEach(e=>{const n=e.get("id"),r=t.groupMap.get(n);r.item=e;const i=s.getGroupPadding(n),{x:a,y:o,width:c,height:h}=s.calculationGroupPosition(r.nodeIds),f=e.findByClassName("group-title"),l=e.get("children")[0];let d=0,p=0;if("circle"===u){const t=c>h?c/2:h/2,e=(c+2*a)/2,n=(h+2*o)/2;l.attr({x:e,y:n,r:t+i}),r.x=e,r.y=n,r.size=2*(t+i),d=e,p=n-t-i}else if("rect"===u){const{default:t}=s.styles,e=i*t.disCoefficient,n=c+2*e,u=h+2*e,f=a-e,g=o-e;l.attr({x:f,y:g,width:n,height:u}),r.x=f,r.y=g,r.size=[n,u],d=a,p=o}if(f){const t=r.groupData.title;let e=0,n=0;t&&(e=t.offsetox||0,n=t.offsetoy||0,t.offsetX=e,t.offsetY=n,"rect"===u&&(t.offsetX=0,t.offsetY=0));let i=d+e,a=p+n;"rect"===u&&(i=d,a=p),f.attr({x:i,y:a}),r.titlePos=[i,a]}}),t.graph.paint()},run(){const t=this,e=t.nodes,n=t.groupsData,r=t.edges,i=t.maxIteration;let a=t.width;a||"undefined"===typeof window||(a=window.innerWidth);let s=t.height;s||"undefined"===typeof s||(s=window.innerHeight);const u=t.center,c=t.nodeMap,h=t.nodeIndexMap,f=a/10,l=Math.sqrt(a*s/(e.length+1)),d=t.gravity,p=t.speed,g=new Map;t.groupMap=g,e.forEach(t=>{if(void 0===g.get(t.groupId)){let e,r;n.forEach(n=>{n.id===t.groupId&&(e=n.parentId,r=n)});const i={name:t.groupId,cx:0,cy:0,count:0,parentId:e,nodeIds:[],groupData:r};g.set(t.groupId,i)}const e=g.get(t.groupId);e.nodeIds.push(t.id),e.cx+=t.x,e.cy+=t.y,e.count++}),g.forEach(t=>{t.cx/=t.count,t.cy/=t.count}),t.DFSSetGroups();for(let v=0;v{n[e]={x:0,y:0}}),t.getDisp(e,r,c,h,n,l);const i=t.groupGravity||d;e.forEach((e,r)=>{const a=g.get(e.groupId),o=Math.sqrt((e.x-a.cx)*(e.x-a.cx)+(e.y-a.cy)*(e.y-a.cy)),s=t.groupAttractiveCoefficient*l*i;n[r].x-=s*(e.x-a.cx)/o,n[r].y-=s*(e.y-a.cy)/o}),g.forEach(t=>{t.cx=0,t.cy=0,t.count=0}),e.forEach(t=>{const e=g.get(t.groupId);e.cx+=t.x,e.cy+=t.y,e.count++}),g.forEach(t=>{t.cx/=t.count,t.cy/=t.count}),e.forEach((t,e)=>{const r=.01*l*d;n[e].x-=r*(t.x-u[0]),n[e].y-=r*(t.y-u[1])}),e.forEach((t,e)=>{n[e].dx*=p/o,n[e].dy*=p/o}),e.forEach((t,e)=>{const r=Math.sqrt(n[e].x*n[e].x+n[e].y*n[e].y);if(r>0){const i=Math.min(f*(p/o),r);t.x+=n[e].x/r*i,t.y+=n[e].y/r*i}})}},getDisp(t,e,n,r,i,a){const o=this;o.calRepulsive(t,i,a),o.calAttractive(e,n,r,i,a),o.calGroupRepulsive(i,a)},calRepulsive(t,e,n){const r=this;t.forEach((i,a)=>{e[a]={x:0,y:0},t.forEach((t,o)=>{if(a===o)return;const s=i.x-t.x,u=i.y-t.y;let c=s*s+u*u;0===c&&(c=1);const h=r.nodeRepulsiveCoefficient*(n*n)/c;e[a].x+=s*h,e[a].y+=u*h})})},calAttractive(t,e,n,r,i){const a=this;t.forEach(t=>{const o=n.get(t.source),s=n.get(t.target);if(o===s)return;const u=e.get(t.source),c=e.get(t.target),h=c.x-u.x,f=c.y-u.y,l=Math.sqrt(h*h+f*f),d=a.nodeAttractiveCoefficient*l*l/i;r[s].x-=h/l*d,r[s].y-=f/l*d,r[o].x+=h/l*d,r[o].y+=f/l*d})},calGroupRepulsive(t,e){const n=this,r=n.groupMap,i=n.nodeIndexMap;r.forEach((a,o)=>{const s={x:0,y:0};r.forEach((t,r)=>{if(o===r)return;const i=a.cx-t.cx,u=a.cy-t.cy;let c=i*i+u*u;0===c&&(c=1);const h=n.groupRepulsiveCoefficient*(e*e)/c;s.x+=i*h,s.y+=u*h});const u=a.nodeIds;u.forEach(e=>{const n=i.get(e);t[n].x+=s.x,t[n].y+=s.y})})},DFSSetGroups(){const t=this,e=t.groupMap;e.forEach(n=>{const r=n.parentId;if(r){let i;t.groupsData.forEach(t=>{t.id===n.groupId&&(i=t.parentId)});const a=e.get(r);if(a)n.nodeIds.forEach(t=>{a.nodeIds.push(t)});else{const t={name:r,cx:0,cy:0,count:0,parentId:i,nodeIds:n.nodeIds};e.set(r,t)}}})},BFSDivide(t,e,n){const i=this,a=r.forceManyBody();a.strength(30);const o=r.forceSimulation().nodes(n).force("center",r.forceCenter(t/2,e/2)).force("charge",a).alpha(.3).alphaDecay(.01).alphaMin(.001).on("tick",()=>{n.forEach(t=>{const e=t.nodes;e.forEach(e=>{e.x+=t.x-t.ox,e.y+=t.y-t.oy}),t.ox=t.x,t.oy=t.y;const n=t.item,r=n.get("children")[0];r.attr({x:t.x,y:t.y})}),i.graph.refreshPositions()}).on("end",()=>{});i.groupOverlapProcess(o)},groupOverlapProcess(t){const e=this;let n=e.nodeSize;const i=e.groupCollideStrength;if(n)if(isNaN(n)){if(2===n.length){const t=n[0]>n[1]?n[0]:n[1];n=t/2}}else n/=2;else n=t=>t.size?a(t.size)?t.size[0]/2:t.size/2:10;t.force("collisionForce",r.forceCollide(n).strength(i))}})},"004e":function(t,e,n){var r=n("76e9"),i=n("8d20"),a=n("cd9d");function o(t){return t&&t.length?r(t,a,i):void 0}t.exports=o},"00d0":function(t,e){var n={}.toString,r=function(t,e){return n.call(t)==="[object "+e+"]"};t.exports=r},"01ce":function(t,e,n){t.exports={Graph:n("9671"),version:n("c3cd")}},"01eb":function(t,e,n){var r=n("33de");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1,n[e].priority-1)r.call(t,s,1)}return t};t.exports=o},"02db":function(t,e,n){var r=n("1c6a");t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(t)){for(var i in t)this._setAttr(i,t[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(t,e),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[t]},_setAttr:function(t,e){var n=this,r=this._attrs;r[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?n._setClip(e):"path"===t&&n._afterSetAttrPath?n._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&n.rotateAtStart(e):n.transform(e):r.globalAlpha=e:r[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},"03dd":function(t,e,n){var r=n("eac5"),i=n("57a5"),a=Object.prototype,o=a.hasOwnProperty;function s(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},"0519":function(t,e,n){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Array.isArray?Array.isArray(t):Object(r["a"])(t,"Array")}},function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e["a"]=r},function(t,e,n){"use strict";var r=n(0),i=n(13);function a(t,e){var n;if(t)if(Object(r["a"])(t)){for(var a=0,o=t.length;a-1};e["a"]=i},function(t,e,n){"use strict";e["a"]=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";var r=n(2),i=n(1),a=function(t,e){if(!Object(i["a"])(t))return t;var n=[];return Object(r["a"])(t,(function(t,r){e(t,r)&&n.push(t)})),n};e["a"]=a},function(t,e,n){"use strict";var r=function(t){return"object"===typeof t&&null!==t};e["a"]=r},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}e["a"]=i},function(t,e,n){var r=n(30),i=["LR","RL","TB","BT","H","V"],a=["LR","RL","H"],o=function(t){return a.indexOf(t)>-1},s=i[0];t.exports=function(t,e,n){var a=e.direction||s;if(e.isHorizontal=o(a),a&&-1===i.indexOf(a))throw new TypeError("Invalid direction: "+a);if(a===i[0])n(t,e);else if(a===i[1])n(t,e),t.right2left();else if(a===i[2])n(t,e);else if(a===i[3])n(t,e),t.bottom2top();else if(a===i[4]||a===i[5]){var u=r(t,e),c=u.left,h=u.right;n(c,e),n(h,e),e.isHorizontal?c.right2left():c.bottom2top(),h.translate(c.x-h.x,c.y-h.y),t.x=c.x,t.y=h.y;var f=t.getBoundingBox();e.isHorizontal?f.top<0&&t.translate(0,-f.top):f.left<0&&t.translate(-f.left,0)}var l=e.fixedRoot;return void 0===l&&(l=!0),l&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(7),i=18,a=2*i,o=i,s={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||o},getVGap:function(t){return t.vgap||o},getChildren:function(t){return t.children},getHeight:function(t){return t.height||a},getWidth:function(t){var e=t.label||" ";return t.width||e.split("").length*i}};function u(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof u)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.preH=e.getPreH(t),n.preV=e.getPreV(t),n.width=e.getWidth(t),n.height=e.getHeight(t),n.width+=n.preH,n.height+=n.preV,n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}function c(t,e,n){void 0===e&&(e={}),e=r.assign({},s,e);var i,a=new u(t,e),o=[a];if(!n&&!t.collapsed)while(i=o.shift())if(!i.data.collapsed){var c=e.getChildren(i.data),h=c?c.length:0;if(i.children=new Array(h),c&&h)for(var f=0;f-1)i.call(t,s,1)}return t};e["a"]=o},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(9),o=function(t,e,n){if(!Object(i["a"])(t)&&!Object(a["a"])(t))return t;var o=n;return Object(r["a"])(t,(function(t,n){o=e(o,t,n)})),o};e["a"]=o},function(t,e,n){"use strict";var r=n(1),i=n(21),a=function(t,e){var n=[];if(!Object(r["a"])(t))return n;var a=-1,o=[],s=t.length;while(++ae[r])return 1;if(t[r]n?n:t};e["a"]=r},function(t,e,n){"use strict";var r=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};e["a"]=r},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%1!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r["a"])(t)&&t%1===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t<0};e["a"]=i},function(t,e,n){"use strict";e["a"]=i;var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)0};e["a"]=i},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(3);e["a"]=function(t,e){if(Object(i["a"])(t)){var n,o,s=t[0];return n=Object(a["a"])(e)?e(t[0]):t[0][e],Object(r["a"])(t,(function(t){o=Object(a["a"])(e)?e(t):t[e],o>n&&(s=t,n=o)})),s}}},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(3);e["a"]=function(t,e){if(Object(i["a"])(t)){var n,o,s=t[0];return n=Object(a["a"])(e)?e(t[0]):t[0][e],Object(r["a"])(t,(function(t){o=Object(a["a"])(e)?e(t):t[e],oe?(r&&(clearTimeout(r),r=null),s=c,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,h)),o};return c.cancel=function(){clearTimeout(r),s=0,r=i=a=null},c}},function(t,e,n){"use strict";var r=n(1);e["a"]=function(t){return Object(r["a"])(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e["a"]=function(t){return t=t||"g",r[t]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e["a"]=function(){}},function(t,e,n){"use strict";e["a"]=function(t){return t}},function(t,e,n){"use strict";e["a"]=a;var r=n(6),i=n(1);function a(t){return Object(r["a"])(t)?0:Object(i["a"])(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e["a"]=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function a(t,e){var n=i(t,e);r(t,-n,e)}function o(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){o(t,e.children[r],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function i(t){if(0!==t.cs){i(t.c[0]);for(var e=b(d(t.c[0].el),0,null),n=1;nn.low&&(n=n.nxt);var s=i+r.prelim+r.w-(o+a.prelim);s>0&&(o+=s,h(t,e,n.index,s));var u=d(r),c=d(a);u<=c&&(r=l(r),null!==r&&(i+=r.mod)),u>=c&&(a=f(a),null!==a&&(o+=a.mod))}!r&&a?p(t,e,a,o):r&&!a&&g(t,e,r,i)}function h(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,y(t,e,n,r)}function f(t){return 0===t.cs?t.tl:t.c[0]}function l(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function p(t,e,n,r){var i=t.c[0].el;i.tl=n;var a=r-n.mod-t.c[0].msel;i.mod+=a,i.prelim-=a,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}function g(t,e,n,r){var i=t.c[e].er;i.tr=n;var a=r-n.mod-t.c[e].mser;i.mod+=a,i.prelim-=a,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}function v(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}function m(t,e){e+=t.mod,t.x=t.prelim+e,x(t);for(var n=0;n=n.low)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var w=n.fromNode(t,r);return i(w),m(w,0),o(w,t,r),a(t,r),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),a=n(115),o=n(17),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return t.rootNode.width=0,o(t.rootNode,t.options,a)},e}(i),c={};function h(t,e){return e=s.assign({},c,e),new u(t,e).execute()}t.exports=h},function(t,e,n){var r=n(7);function i(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var a={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function o(t,e,n){n?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach((function(t,r){o(t,e.children[r],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e);var n,s=0;function u(t){if(!t)return null;t.width=0,t.depth&&t.depth>s&&(s=t.depth);var e=t.children,n=e.length,r=new i(t.height,[]);return e.forEach((function(t,e){var i=u(t);r.children.push(i),0===e&&(r.leftChild=i),e===n-1&&(r.rightChild=i)})),r.originNode=t,r.isLeaf=t.isLeaf(),r}function c(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=s;else{var e=t.children.map((function(t){return c(t)})),n=Math.min.apply(null,e);t.drawingDepth=n-1}return t.drawingDepth}function h(t){t.x=t.drawingDepth*e.rankSep,t.isLeaf?(t.y=0,n&&(t.y=n.y+n.height+e.nodeSep,t.originNode.parent!==n.originNode.parent&&(t.y+=e.subTreeSep)),n=t):(t.children.forEach((function(t){h(t)})),t.y=(t.leftChild.y+t.rightChild.y)/2)}var f=u(t);return c(f),h(f),o(f,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),a=n(117),o=n(30),s=n(7),u=["LR","RL","H"],c=u[0],h=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this,e=t.options,n=t.rootNode;e.isHorizontal=!0;var r=e.indent,i=void 0===r?20:r,s=e.dropCap,h=void 0===s||s,f=e.direction||c;if(f&&-1===u.indexOf(f))throw new TypeError("Invalid direction: "+f);if(f===u[0])a(n,i,h);else if(f===u[1])a(n,i,h),n.right2left();else if(f===u[2]){var l=o(n,e),d=l.left,p=l.right;a(d,i,h),d.right2left(),a(p,i,h);var g=d.getBoundingBox();p.translate(g.width,0),n.x=p.x-n.width/2}return n},e}(i),f={};function l(t,e){return e=s.assign({},f,e),new h(t,e).execute()}t.exports=l},function(t,e){function n(t,e,n,r){var i="function"===typeof n?n(t):n*t.depth;if(!r)try{if(t.id===t.parent.children[0].id)return t.x+=i,void(t.y=e?e.y:0)}catch(a){}t.x+=i,t.y=e?e.y+e.height:0}t.exports=function(t,e,r){var i=null;t.eachNode((function(t){n(t,i,e,r),i=t}))}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),a=n(119),o=n(17),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return o(t.rootNode,t.options,a)},e}(i),c={};function h(t,e){return e=s.assign({},c,e),new u(t,e).execute()}t.exports=h},function(t,e,n){var r=n(7);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function a(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){a(t)}));var r=e[0],i=e[n-1],o=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),o>t.height)t.y=r.y+o/2-t.height/2;else if(1!==e.length||t.height>s){var u=t.y+(t.height-o)/2-r.y;e.forEach((function(t){t.translate(0,u)}))}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var o={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i=(a=(g+m)/2))?g=a:m=a,(h=n>=(o=(v+y)/2))?v=o:y=o,i=d,!(d=d[f=h<<1|c]))return i[f]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e>=(a=(g+m)/2))?g=a:m=a,(h=n>=(o=(v+y)/2))?v=o:y=o}while((f=h<<1|c)===(l=(u>=o)<<1|s>=a));return i[l]=d,i[f]=p,t}function o(t){var e,n,r,i,o=t.length,s=new Array(o),u=new Array(o),c=1/0,h=1/0,f=-1/0,l=-1/0;for(n=0;nf&&(f=r),il&&(l=i));if(c>f||h>l)return this;for(this.cover(c,h).cover(f,l),n=0;nt||t>=i||r>e||e>=a)switch(s=(ed||(a=u.y0)>p||(o=u.x1)=y)<<1|t>=m)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=u)}else{var x=t-+this._x.call(null,v.data),b=e-+this._y.call(null,v.data),w=x*x+b*b;if(w=(s=(p+v)/2))?p=s:v=s,(h=o>=(u=(g+m)/2))?g=u:m=u,e=d,!(d=d[f=h<<1|c]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,l=f)}while(d.data!==t)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[l]=d:this._root=d),this):(this._root=i,this)};function d(t){for(var e=0,n=t.length;ec+p||ah+p||ou.index){var g=c-s.x-s.vx,v=h-s.y-s.vy,m=g*g+v*v;mt.r&&(t.r=t[e].r)}function u(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r[s(t,e,r),t]));for(o=0,i=new Array(c);o{}};function B(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function R(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a(t=(z*t+X)%G)/G};function U(t){return t.x}function V(t){return t.y}var H=10,Z=Math.PI*(3-Math.sqrt(5)),$=function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,u=Object(q["c"])(f),c=Y("tick","end"),h=W();function f(){l(),c.call("tick",e),n1?(null==n?s.delete(t):s.set(t,p(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,u,c=0,h=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}},Q=function(){var t,e,n,r,i,a=A(-30),o=1,s=1/0,u=.81;function c(n){var i,a=t.length,o=_(t,U,V).visitAfter(f);for(r=n,i=0;i=s)){(t.data!==e||t.next)&&(0===f&&(f=P(n),p+=f*f),0===l&&(l=P(n),p+=l*l),p{const{x:e,y:n}=t;return{centerX:e,centerY:n,minX:e,minY:n,maxX:e,maxY:n,height:0,width:0}},a=(t=[])=>{const e=[],n=[];t.forEach(t=>{e.push(t.x),n.push(t.y)});const r=Math.min.apply(Math,e),i=Math.max.apply(Math,e),a=Math.min.apply(Math,n),o=Math.max.apply(Math,n);return{centerX:(r+i)/2,centerY:(a+o)/2,maxX:i,maxY:o,minX:r,minY:a,height:o-a,width:i-r}},o=(t,e)=>2*Math.abs(t.centerX-e.centerX){const e=[],n={};return t.forEach(t=>{const e=t.id=`${t.x}-${t.y}`;n[e]=t}),r.each(n,t=>{e.push(t)}),e},u=t=>(t=s(t),t),c=(t,e)=>[t,{x:t.x,y:e.y},e],h=(t,e)=>0===t.width&&0===t.height?t:{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e},f=(t,e)=>{const n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return n/e.width>r/e.height},l=(t,e)=>{const n=f(e,t);return n?{x:e.x>t.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},d=(t,e)=>{const n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),a=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+a)/2,minX:n,minY:r,maxX:i,maxY:a,height:a-r,width:i-n}},p=t=>{const{minX:e,minY:n,maxX:r,maxY:i}=t;return[{x:e,y:n},{x:r,y:n},{x:r,y:i},{x:e,y:i}]},g=(t,e)=>{const{x:n,y:r}=t;return ne.maxX||re.maxY},v=(t,e)=>et.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}],m=(t,e)=>et.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}],y=(t,e)=>v(t,e.x).concat(m(t,e.y)),x=(t,e)=>Math.abs(t.x-e.x)+Math.abs(t.y-e.y),b=(t,e)=>{const n=-2;let r=0;return e.forEach(e=>{e&&(t.x===e.x&&(r+=n),t.y===e.y&&(r+=n))}),r},w=(t,e,n,r,i)=>x(t,e)+x(t,n)+b(t,[e,n,r,i]),_=(t,e,n,r,i=0)=>{t.unshift(e[r]),n[r]&&n[r]!==r&&i<=100&&_(t,e,n,n[r],i+1)},M=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},S=(t,e,n,r)=>{const i=e.x-t.x,a=e.y-t.y,o=r.x-n.x,s=r.y-n.y,u=(-a*(t.x-n.x)+i*(t.y-n.y))/(-o*a+i*s),c=(o*(t.y-n.y)-s*(t.x-n.x))/(-o*a+i*s);return u>=0&&u<=1&&c>=0&&c<=1},k=(t,e,n)=>{if(n.width===n.height===0)return!1;const[r,i,a,o]=p(n);return S(t,e,r,i)||S(t,e,r,o)||S(t,e,i,a)||S(t,e,a,o)},A=(t,e,n,r)=>{const i=[];return t.forEach(t=>{t!==e&&(t.x!==e.x&&t.y!==e.y||k(t,e,n)||k(t,e,r)||i.push(t))}),s(i)},P=(t,e,n,r,i,a,o)=>{const s=[],u=[e],c={},h={},f={};h[e.id]=0,f[e.id]=w(e,n,e);const l={};t.forEach(t=>{l[t.id]=t});while(u.length){let d,p=1/0;if(u.forEach(t=>{f[t.id]{if(-1!==s.indexOf(t))return;-1===u.indexOf(t)&&u.push(t);const r=f[d.id]+x(d,t);h[t.id]&&r>=h[t.id]||(c[t.id]=d.id,h[t.id]=r,f[t.id]=h[t.id]+w(t,n,e,a,o))})}return[e,n]},C=(t,e,n)=>!(t.x===e.x===n.x||t.y===e.y===n.y),E=(t,e,n,r)=>{const i=x(t,e),a=x(n,e);i{const n=[],r=t[0];return n.push(`M${r.x} ${r.y}`),t.forEach((r,i)=>{const a=t[i+1],o=t[i+2];if(a&&o)if(C(r,a,o)){const[t,i]=E(r,a,o,e);n.push(`L${t.x} ${t.y}`),n.push(`Q${a.x} ${a.y} ${i.x} ${i.y}`),n.push(`L${i.x} ${i.y}`)}else n.push(`L${a.x} ${a.y}`);else a&&n.push(`L${a.x} ${a.y}`)}),n.join("")},O=(t,e,n,r,f)=>{const v=n&&n.getBBox()?n.getBBox():i(t),m=r&&r.getBBox()?r.getBBox():i(e);if(o(v,m))return u(c(t,e));const x=h(v,f),b=h(m,f);if(o(x,b))return u(c(t,e));const w=l(x,t),_=l(b,e),M=a([w,_]),S=d(x,b),k=d(x,M),A=d(b,M);let C=[];C=C.concat(p(k)),C=C.concat(p(A));const E={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[M,k,A].forEach(t=>{C=C.concat(y(t,E).filter(t=>g(t,x)&&g(t,b)))}),[{x:w.x,y:_.y},{x:_.x,y:w.y}].forEach(t=>{g(t,x)&&g(t,b)&&C.push(t)}),C.unshift(w),C.push(_),C=s(C,x,b,S);const I=P(C,w,_,v,m,t,e);return I.unshift(t),I.push(e),u(I)}},"0b07":function(t,e,n){var r=n("34ac"),i=n("3698");function a(t,e){var n=i(t,e);return r(n)?n:void 0}t.exports=a},"0b8b":function(t,e,n){"use strict";var r=n("e849"),i=r.longestPath,a=n("1845"),o=n("74e8");function s(t){switch(t.graph().ranker){case"network-simplex":h(t);break;case"tight-tree":c(t);break;case"longest-path":u(t);break;default:h(t)}}t.exports=s;var u=i;function c(t){i(t),a(t)}function h(t){o(t)}},"0d24":function(t,e,n){(function(t){var r=n("2b3e"),i=n("07c7"),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,h=c||i;t.exports=h}).call(this,n("62e4")(t))},"0e151":function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},"0e3c":function(t,e,n){n("d33f")},"0eee":function(t,e,n){var r=n("1c6a"),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return r.each(a,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},e.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){var n='';e.innerHTML=n},t}();t.exports=o},"0f0f":function(t,e,n){var r=n("8eeb"),i=n("9934");function a(t,e){return t&&r(e,i(e),t)}t.exports=a},"0fe1":function(t,e,n){const r=n("3421"),i=n("1b95");class a{getDefaultCfg(){return{default:{lineWidth:1,stroke:"#A3B1BF",strokeOpacity:.9,fill:"#F3F9FF",fillOpacity:.8,opacity:.8,disCoefficient:.6,minDis:40,maxDis:100},hover:{stroke:"#faad14",fill:"#ffe58f",fillOpacity:.3,opacity:.3,lineWidth:3},collapse:{r:30,width:80,height:40,stroke:"#A3B1BF",lineWidth:3,fill:"#F3F9FF",offsetX:-15,offsetY:5},icon:"https://gw.alipayobjects.com/zos/rmsportal/MXXetJAxlqrbisIuZxDO.svg",operatorBtn:{collapse:{img:"https://gw.alipayobjects.com/zos/rmsportal/uZVdwjJGqDooqKLKtvGA.svg",width:16,height:16},expand:{width:16,height:16,img:"https://gw.alipayobjects.com/zos/rmsportal/MXXetJAxlqrbisIuZxDO.svg"}},visible:!1}}constructor(t){this.graph=t;const e=t.get("groupStyle");this.styles=i({},this.getDefaultCfg(),e),this.customGroup={},this.delegateInGroup={},this.nodePoint=[]}create(t,e,n="circle",r=0,i=!1,a={}){const o=this.graph,s=o.get("customGroup"),u=s.get("children").map(t=>t.get("id"));if(u.indexOf(t)>-1)return console.warn(`已经存在ID为 ${t} 的分组,请重新设置分组ID!`);const c=s.addGroup({id:t,zIndex:r}),h=o.get("autoPaint");o.setAutoPaint(!1);const{default:f}=this.styles,{x:l,y:d,width:p,height:g,maxX:v}=this.calculationGroupPosition(e),m=this.getGroupPadding(t),y=o.get("groupBBoxs");y[t]={x:l,y:d,width:p,height:g,maxX:v};let x=null;if(i){const n=o.get("groups");e.forEach(e=>{const n=o.findById(e),r=n.getModel();r.groupId||(r.groupId=t)}),n.find(e=>e.id===t)||(n.push({id:t,title:a}),o.set({groups:n}))}const b=o.get("groups").filter(e=>e.id===t);b&&b.length>0&&(x=b[0].title);let w=0,_=0,M=null;if("circle"===n){const e=p>g?p/2:g/2,n=(p+2*l)/2,i=(g+2*d)/2,a=e+m;M=c.addShape("circle",{attrs:{...f,x:n,y:i,r:a},capture:!0,zIndex:r,groupId:t}),w=n,_=i-a,this.setDeletageGroupByStyle(t,c,{width:p,height:g,x:n,y:i,r:a})}else{const e=m*f.disCoefficient;M=c.addShape("rect",{attrs:{...f,x:l-e,y:d-e,width:p+2*e,height:g+2*e},capture:!0,zIndex:r,groupId:t}),w=l-e+15,_=d-e+15,this.setDeletageGroupByStyle(t,c,{x:l-e,y:d-e,width:p+e,height:g+e,btnOffset:v-3})}if(x){const{offsetX:t=0,offsetY:e=0,text:n=x,...r}=x,i=c.addShape("text",{attrs:{text:n,stroke:"#444",x:w+t,y:_+e,...r},className:"group-title"});i.set("capture",!1)}c.set("keyShape",M),o.get("groupNodes")[t]=e,o.setAutoPaint(h),o.paint()}setGroupStyle(t,e){if(!t||t.get("destroyed"))return;let n={};const{hover:a,default:o}=this.styles;r(e)?"default"===e?n=i({},o):"hover"===e&&(n=i({},a)):n=i({},o,e);for(const r in n)t.attr(r,n[r])}calculationGroupPosition(t){const e=this.graph;let n=1/0,i=-1/0,a=1/0,o=-1/0;for(const f of t){const t=r(f)?e.findById(f):f,s=t.getBBox(),{minX:u,minY:c,maxX:h,maxY:l}=s;ui&&(i=h),l>o&&(o=l)}const s=Math.floor(n),u=Math.floor(a),c=Math.ceil(i)-s,h=Math.ceil(o)-u;return{x:s,y:u,width:c,height:h,maxX:Math.ceil(i)}}getGroupPadding(t){const e=this.graph,{default:n}=this.styles,r=e.get("groups"),i=!!r.filter(e=>e.parentId===t).length>0,a=i?n.maxDis:n.minDis;return a}setDeletageGroupByStyle(t,e,n){const{width:r,height:a,x:o,y:s,r:u,btnOffset:c}=n,h=this.customGroup[t];if(h){const{groupStyle:r}=h,a=i({},r,n);this.customGroup[t]={nodeGroup:e,groupStyle:a}}else this.customGroup[t]={nodeGroup:e,groupStyle:{width:r,height:a,x:o,y:s,r:u,btnOffset:c}}}getDeletageGroupById(t){return this.customGroup[t]}collapseExpandGroup(t){const e=this.getDeletageGroupById(t),{nodeGroup:n}=e,r=n.get("hasHidden");r?(n.set("hasHidden",!1),this.expandGroup(t)):(n.set("hasHidden",!0),this.collapseGroup(t))}setGroupTmpNode(t,e){const n=this.graph,r=n.get("groupNodes"),i=n.get("groups");r[t].indexOf(e)<0&&r[t].push(e);const a=i.filter(e=>e.id===t);let o=null;a.length>0&&(o=a[0].parentId),o&&this.setGroupTmpNode(o,e)}collapseGroup(t){const e=this.getDeletageGroupById(t),{nodeGroup:n}=e,{collapse:r}=this.styles,i=this.graph,a=i.get("groupType"),o=i.get("autoPaint");i.setAutoPaint(!1);const s=i.get("groupNodes")[t],{width:u,height:c}=this.calculationGroupPosition(s),h=n.get("keyShape"),{r:f,width:l,height:d,offsetX:p,offsetY:g,...v}=r;for(const M in v)h.attr(M,v[M]);let m={groupId:t,id:t+"-custom-node",x:h.attr("x"),y:h.attr("y"),style:{r:f},shape:"circle"};const y=n.findByClassName("group-title");if("circle"===a){const t=h.attr("r");h.animate({onFrame(e){return{r:t-e*(t-f)}}},500,"easeCubic"),y&&y.attr({x:h.attr("x")+p,y:h.attr("y")+g})}else"rect"===a&&(h.animate({onFrame(t){return{width:u-t*(u-l),height:c-t*(c-d)}}},500,"easeCubic"),y&&y.attr({x:h.attr("x")+10,y:h.attr("y")+d/2+5}),m={groupId:t,id:t+"-custom-node",x:h.attr("x")+l/2,y:h.attr("y")+d/2,size:[l,d],shape:"rect"});const x=i.getEdges(),b=x.filter(t=>{const e=t.getModel();return!s.includes(e.source)&&s.includes(e.target)}),w=x.filter(t=>{const e=t.getModel();return s.includes(e.source)&&!s.includes(e.target)}),_=x.filter(t=>{const e=t.getModel();return s.includes(e.source)&&s.includes(e.target)});if(s.forEach(e=>{const n=i.findById(e),r=n.getModel(),{groupId:a}=r;if(a&&a!==t){const t=this.getDeletageGroupById(a),{nodeGroup:e}=t;e.hide()}n.hide()}),_.forEach(t=>{const e=t.getSource(),n=t.getTarget();e.isVisible()&&n.isVisible()?t.show():t.hide()}),b.length>0||w.length>0){const e=i.add("node",m);e.set("capture",!1),e.hide(),this.delegateInGroup[t]={delegateNode:e},this.setGroupTmpNode(t,t+"-custom-node"),this.updateEdgeInGroupLinks(t,b,w)}i.paint(),i.setAutoPaint(o)}updateEdgeInGroupLinks(t,e,n){const r=this.graph,a={};e.map(e=>{const n=e.getModel(),i=e.get("id"),{target:o}=n;return a[i]=o,r.updateItem(e,{target:t+"-custom-node"}),!0});const o={};n.map(e=>{const n=e.getModel(),i=e.get("id"),{source:a}=n;return o[i]=a,r.updateItem(e,{source:t+"-custom-node"}),!0}),this.delegateInGroup[t]=i({sourceOutTargetInEdges:e,sourceInTargetOutEdges:n,edgesOuts:a,edgesIn:o},this.delegateInGroup[t])}expandGroup(t){const e=this.graph,n=e.get("groupType"),r=e.get("autoPaint");e.setAutoPaint(!1);const i=e.get("groupNodes")[t],a=i.filter(t=>-1===t.indexOf("custom-node")),{width:o,height:s}=this.calculationGroupPosition(a),{nodeGroup:u}=this.getDeletageGroupById(t),c=u.get("keyShape"),{default:h,collapse:f}=this.styles;for(const g in h)c.attr(g,h[g]);const l=u.findByClassName("group-title"),d=this.getGroupPadding(t);if("circle"===n){const t=o>s?o/2:s/2;c.animate({onFrame(e){return{r:f.r+e*(t-f.r+d)}}},500,"easeCubic")}else if("rect"===n){const{width:t,height:e}=f;c.animate({onFrame(n){return{width:t+n*(o-t+d*h.disCoefficient*2),height:e+n*(s-e+d*h.disCoefficient*2)}}},500,"easeCubic")}if(l){let r=null;const i=e.get("groups").filter(e=>e.id===t);i&&i.length>0&&(r=i[0].title);const{offsetX:a=0,offsetY:o=0}=r;"circle"===n?l.animate({onFrame(t){return{x:c.attr("x")+a,y:c.attr("y")-t*c.attr("r")+o}}},600,"easeCubic"):"rect"===n&&l.animate({onFrame(t){return{x:c.attr("x")+t*(15+a),y:c.attr("y")+t*(15+o)}}},600,"easeCubic")}setTimeout(()=>{i.forEach(n=>{const r=e.findById(n),i=r.getModel(),{groupId:a}=i;if(a&&a!==t){const t=this.getDeletageGroupById(a),{nodeGroup:e}=t;e.show();const n=e.get("hasHidden");n||r.show()}else r.show()});const n=e.getEdges(),r=n.filter(t=>{const e=t.getModel();return i.includes(e.source)||i.includes(e.target)});r.forEach(t=>{const e=t.getSource(),n=t.getTarget();e.isVisible()&&n.isVisible()&&t.show()})},300);const p=this.delegateInGroup[t];if(p){const{sourceOutTargetInEdges:n,sourceInTargetOutEdges:r,edgesOuts:i,edgesIn:a,delegateNode:o}=p;n.map(t=>{const n=t.get("id"),r=i[n];return e.updateItem(t,{target:r}),!0}),r.map(t=>{const n=t.get("id"),r=a[n];return e.updateItem(t,{source:r}),!0});const s=o.getModel();this.deleteTmpNode(t,s.id),e.remove(o),delete this.delegateInGroup[t]}e.setAutoPaint(r),e.paint()}deleteTmpNode(t,e){const n=this.graph,r=n.get("groups"),i=n.get("groupNodes")[t],a=i.indexOf(e);i.splice(a,1);const o=r.filter(e=>e.id===t);let s=null;o.length>0&&(s=o[0].parentId),s&&this.deleteTmpNode(s,e)}remove(t){const e=this.graph,n=this.getDeletageGroupById(t);if(!n)return void console.warn(`请确认输入的groupId ${t} 是否有误!`);const{nodeGroup:r}=n,i=e.get("autoPaint");e.setAutoPaint(!1);const a=e.get("groupNodes"),o=a[t];o.forEach(n=>{const r=e.findById(n),i=r.getModel(),a=i.groupId;a&&t===a&&(delete i.groupId,e.updateItem(r,i))}),r.destroy(),delete this.customGroup[t];const s=e.get("groups");if(s.length>0){const n=s.filter(e=>e.id!==t);e.set("groups",n)}let u=null,c=null;for(const h of s)if(t===h.id){u=h.parentId,c=h;break}c&&delete c.parentId,delete a[t],u&&(a[u]=a[u].filter(t=>!o.includes(t))),e.setAutoPaint(i),e.paint()}updateGroup(t,e){const n=this.graph,r=n.get("groupType");this.updateItemInGroup(t,e);const{groups:i}=n.save();let a=null,o=null;for(const s of i)if(t===s.id){a=s.parentId,o=s;break}if(a){const{nodeGroup:e}=this.getDeletageGroupById(a),i=e.get("keyShape");this.setGroupStyle(i,"default");const s=i.getBBox(),{minX:u,minY:c,maxX:h,maxY:f}=s,{nodeGroup:l}=this.getDeletageGroupById(t),d=l.get("keyShape"),p=d.getBBox(),{x:g,y:v}=p;if(!(gu&&vc)){delete o.parentId;const s=n.get("groupNodes"),u=s[t],c=s[a];s[a]=c.filter(t=>-1===u.indexOf(t));const{x:h,y:f,width:l,height:d}=this.calculationGroupPosition(s[a]),p=this.getGroupPadding(a),g=e.findByClassName("group-title");let v=0,m=0;if("circle"===r){const t=l>d?l/2:d/2,e=(l+2*h)/2,n=(d+2*f)/2;i.attr({r:t+p,x:e,y:n}),v=e,m=n-i.attr("r")}else if("rect"===r){const{default:t}=this.styles,e=p*t.disCoefficient;i.attr({x:h-e,y:f-e}),v=h-e+15,m=f-e+15}if(g){const t=o.title;let e=0,n=0;t&&(e=t.offsetX,n=t.offsetY),g.attr({x:v+e,y:m+n})}}}}updateItemInGroup(t,e){const n=this.graph,r=n.get("groupType"),i=n.get("groupNodes"),a=i[t],{nodeGroup:o}=this.getDeletageGroupById(t),s=o.getBBox(),u=[];a.forEach((t,r)=>{const i=n.findById(t),a=i.getModel(),o=a.groupId;o&&!u.includes(o)&&u.push(o),this.nodePoint[r]||(this.nodePoint[r]={x:a.x,y:a.y});const c=e.x-s.x+this.nodePoint[r].x,h=e.y-s.y+this.nodePoint[r].y;this.nodePoint[r]={x:c,y:h},n.updateItem(i,{x:c,y:h})}),u.includes(t)||u.push(t),u.forEach(t=>{const{nodeGroup:e}=this.getDeletageGroupById(t),n=e.get("keyShape"),a=i[t].filter(t=>-1===t.indexOf("custom-node")),{x:o,y:s,width:u,height:c}=this.calculationGroupPosition(a);let h=0,f=0;if("circle"===r){const t=(u+2*o)/2,e=(c+2*s)/2;n.attr({x:t,y:e}),h=t,f=e-n.attr("r")}else if("rect"===r){const r=e.get("hasHidden"),i=this.getGroupPadding(t);let a={};const{default:l}=this.styles,d=i*l.disCoefficient;h=o-d+15,f=s-d+15,r?(a={x:o-d,y:s-d},f+=10):a={x:o-d,y:s-d,width:u+2*d,height:c+2*d},n.attr(a)}this.updateGroupTitle(e,t,h,f)})}updateGroupTitle(t,e,n,r){const i=this.graph,a=t.findByClassName("group-title");if(a){let t=null;const o=i.get("groups").filter(t=>t.id===e);o&&o.length>0&&(t=o[0].title);let s=0,u=0;t&&(s=t.offsetX||0,u=t.offsetY||0),a.attr({x:n+s,y:r+u})}}dynamicChangeGroupSize(t,e,n){const{item:r}=t,i=r.getModel(),{groupId:a}=i,o=this.graph,s=o.get("groupType"),u=o.get("groupNodes"),c=u[a];if(0===c.length){delete u[a];const t=o.get("groups");o.set("groups",t.filter(t=>t.id!==a)),e.remove()}else{const{x:t,y:r,width:i,height:o}=this.calculationGroupPosition(c),u=this.getGroupPadding(a);let h=0,f=0;if("circle"===s){const e=i>o?i/2:o/2,a=(i+2*t)/2,s=(o+2*r)/2;n.attr({r:e+u,x:a,y:s}),h=a,f=s-n.attr("r")}else if("rect"===s){const{default:e}=this.styles,a=u*e.disCoefficient;n.attr({x:t-a,y:r-a,width:i+2*a,height:o+2*a}),h=t-a+15,f=r-a+15}this.updateGroupTitle(e,a,h,f)}this.setGroupStyle(n,"default")}resetNodePoint(){this.nodePoint.length=0}destroy(){this.graph=null,this.styles={},this.customGroup={},this.delegateInGroup={},this.resetNodePoint()}}t.exports=a},"100e":function(t,e,n){var r=n("cd9d"),i=n("2286"),a=n("c1c9");function o(t,e){return a(i(t,e,r),t+"")}t.exports=o},1041:function(t,e,n){var r=n("8eeb"),i=n("a029");function a(t,e){return r(t,i(t),e)}t.exports=a},1127:function(t,e,n){const r=n("1bb5"),i=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseout","mouseover","mousemove","mouseleave","dragstart","dragend","drag","dragenter","dragleave","drop"];function a(t){while(t&&!t.get("item"))t=t.get("parent");return t}const o=[1,0,0,0,1,0,0,0,1],s=9;function u(t){for(let e=0;e{n.on(t,s)}),this.canvasHandler=s,o.push(r.addEventListener(a,"DOMMouseScroll",c)),o.push(r.addEventListener(a,"mousewheel",c)),"undefined"!==typeof window&&(o.push(r.addEventListener(window,"keydown",u)),o.push(r.addEventListener(window,"keyup",u)))}_onCanvasEvents(t){const e=this,n=e.graph,r=n.get("canvas"),i=r.get("pixelRatio"),o=t.target,s=t.type;t.canvasX=t.x/i,t.canvasY=t.y/i;let c={x:t.canvasX,y:t.canvasY};if(u(n.get("group").getMatrix())&&(c=n.getPointByCanvas(t.canvasX,t.canvasY)),t.x=c.x,t.y=c.y,t.currentTarget=n,o===r)return"mousemove"===s&&e._handleMouseMove(t,"canvas"),t.target=r,t.item=null,n.emit(s,t),void n.emit("canvas:"+s,t);const h=a(o);if(!h)return void n.emit(s,t);const f=h.get("item");if(f.destroyed)return;const l=f.getType();t.target=o,t.item=f,n.emit(s,t),"mouseenter"!==s&&"mouseleave"!==s&&"dragenter"!==s&&"dragleave"!==s&&(n.emit(l+":"+s,t),"dragstart"===s&&(e.dragging=!0),"dragend"===s&&(e.dragging=!1),"mousemove"===s&&e._handleMouseMove(t,l))}_onExtendEvents(t){this.graph.emit(t.type,t)}_onWheelEvent(t){r.isNil(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)}_handleMouseMove(t,e){const n=this,i=this.graph.get("canvas"),a=t.target===i?null:t.item,o=this.preItem;t=r.cloneEvent(t),o&&o!==a&&!o.destroyed&&(t.item=o,n._emitCustomEvent(o.getType(),"mouseleave",t),n.dragging&&n._emitCustomEvent(o.getType(),"dragleave",t)),a&&o!==a&&(t.item=a,n._emitCustomEvent(e,"mouseenter",t),n.dragging&&n._emitCustomEvent(e,"dragenter",t)),this.preItem=a}_emitCustomEvent(t,e,n){n.type=e,this.graph.emit(t+":"+e,n)}destroy(){const t=this.graph,e=this.canvasHandler,n=t.get("canvas");r.each(i,t=>{n.off(t,e)}),r.each(this.extendEvents,t=>{t.remove()})}}t.exports=c},1249:function(t,e,n){const r=n("1bb5");n("70e1");const i={},a={};function o(t){return a[t]||r.upperFirst(t)}const s={defaultShapeType:null,getShape(t){const e=this,n=e[t]||e[e.defaultShapeType];return n},draw(t,e,n){const r=this.getShape(t),i=r.draw(e,n);return r.afterDraw(e,n,i),i},update(t,e,n){const r=this.getShape(t);r.update&&(r.update(e,n),r.afterUpdate(e,n))},setState(t,e,n,r){const i=this.getShape(t);i.setState(e,n,r)},shouldUpdate(t){const e=this.getShape(t);return!!e.update},getControlPoints(t,e){const n=this.getShape(t);return n.getControlPoints(e)},getAnchorPoints(t,e){const n=this.getShape(t);return n.getAnchorPoints(e)}},u={options:{},getCustomConfig(){},draw(){},afterDraw(){},afterUpdate(){},setState(){},getControlPoints(t){return t.controlPoints},getAnchorPoints(t){const e=this.getCustomConfig(t)||{},{anchorPoints:n}=this.options,{anchorPoints:r}=e,i=t.anchorPoints||r||n;return i}};function c(t){const e="register"+t.className;i[e]=function(e,n,i){const a=i?t.getShape(i):u,o=r.mix({},a,n);return o.type=e,t[e]=o,o}}i.registerFactory=function(t,e){const n=o(t),a=r.mix({},s,e);return i[n]=a,a.className=n,c(a),a},i.getFactory=function(t){const e=this;return t=o(t),e[t]},t.exports=i},1290:function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},"12d7":function(t,e,n){const r=n("1bb5"),i=n("9ceb");t.exports=r.mix({getDefaultCfg(){return{item:"edge",formatText(t){return"source:"+t.source+" target:"+t.target}}},getEvents(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove"}}},i)},1304:function(t,e,n){var r=n("cd9d");function i(t){return"function"==typeof t?t:r}t.exports=i},1368:function(t,e,n){var r=n("da03"),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function a(t){return!!i&&i in t}t.exports=a},"13ea":function(t,e,n){var r=n("03dd"),i=n("42a2"),a=n("d370"),o=n("6747"),s=n("30c9"),u=n("0d24"),c=n("eac5"),h=n("73ac"),f="[object Map]",l="[object Set]",d=Object.prototype,p=d.hasOwnProperty;function g(t){if(null==t)return!0;if(s(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||h(t)||a(t)))return!t.length;var e=i(t);if(e==f||e==l)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}t.exports=g},"14c8":function(t,e){function n(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}t.exports=n},"158c":function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},"159a":function(t,e,n){var r=n("32b3"),i=n("e2e4"),a=n("c0983"),o=n("1a8c"),s=n("f4d6");function u(t,e,n,u){if(!o(t))return t;e=i(e,t);var c=-1,h=e.length,f=h-1,l=t;while(null!=l&&++c{t[n]||(t[n]=null)}),r.attr(t)}},getStateStyle(t,e,n){const r=n.getModel(),i=this.getCustomConfig(r)||{},{style:u,stateStyles:c}=this.options,{style:h,stateStyles:f}=i,l=s({},c,f);let d=u;if(l[t]&&(d=l[t]),e)return s({},d,r.style);const p=n.getStates(),g=s({},u,h),v=o(g);return p.forEach(t=>{s(v,a(u,t,{}),a(h,t,{}),r.style)}),v}};t.exports=h},"15f3":function(t,e,n){var r=n("89d9"),i=n("8604");function a(t,e){return r(t,e,(function(e,n){return i(t,n)}))}t.exports=a},"17d5":function(t,e,n){var r;try{r=n("e008")}catch(i){}r||(r=window.graphlib),t.exports=r},1838:function(t,e,n){var r=n("c05f"),i=n("9b02"),a=n("8604"),o=n("f608"),s=n("08cc"),u=n("20ec"),c=n("f4d6"),h=1,f=2;function l(t,e){return o(t)&&s(e)?u(c(t),e):function(n){var o=i(n,t);return void 0===o&&o===e?a(n,t):r(e,o,h|f)}}t.exports=l},1845:function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph,a=n("e849").slack;function o(t){var e,n,r=new i({directed:!1}),o=t.nodes()[0],h=t.nodeCount();r.setNode(o,{});while(s(r,t)=u)return c;var h=n[i];return c*("desc"==h?-1:1)}}return t.index-e.index}t.exports=i},2172:function(t,e,n){var r=n("1c6a"),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function h(t,e){var n=t.match(c);r.each(n,(function(t){t=t.split(":"),e.addColorStop(t[0],t[1])}))}function f(t,e,n){var i,a,s=o.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),c=s[2],f=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:f.minX,y:f.minY},a={x:f.maxX,y:f.maxY}):.5*Math.PI<=u&&u1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return f(t,e,n);if("r"===t[0])return l(t,e,n);if("p"===t[0])return d(t,e,n)}return t}}}},"220e":function(t,e,n){var r=n("6f9c"),i=n("b50e");function a(t){function e(n){var i=t.children(n),a=t.node(n);if(i.length&&r.forEach(i,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,u=a.maxRank+1;s{f.call(e,n)||(r.isObject(t)?e[n]=r.clone(t):e[n]=g[n])});if(n.emit("beforeadditem",{type:t,model:e}),t===s){let t=e.source,a=e.target;if(t&&r.isString(t)&&(t=n.findById(t)),a&&r.isString(a)&&(a=n.findById(a)),!t||!a)return void console.warn("The source or target node of edge "+e.id+" does not exist!");d=new i[l]({model:e,source:t,target:a,styles:p,linkCenter:n.get("linkCenter"),group:o.addGroup()})}else d=new i[l]({model:e,styles:p,group:o.addGroup()});return n.get(t+"s").push(d),n.get("itemMap")[d.get("id")]=d,n.autoPaint(),n.emit("afteradditem",{item:d,model:e}),d}updateItem(t,e){const n=this.graph;if(r.isString(t)&&(t=n.findById(t)),!t||t.destroyed)return;const i=n.get(t.getType()+c),u=t.getModel();if(i){const n=a({},u,e),o=i(n),s=a({},u,o,e);o[h]&&(t.set("styles",s[h]),delete s[h]),r.each(s,(t,n)=>{e[n]=t})}else r.each(e,(t,n)=>{u[n]&&r.isObject(t)&&!r.isArray(t)&&(e[n]=r.mix({},u[n],e[n]))});if(n.emit("beforeupdateitem",{item:t,cfg:e}),t.getType()===s){if(e.source){let i=e.source;r.isString(i)&&(i=n.findById(i)),t.setSource(i)}if(e.target){let i=e.target;r.isString(i)&&(i=n.findById(i)),t.setTarget(i)}}if(t.update(e),t.getType()===o){const e=n.get("autoPaint");n.setAutoPaint(!1),r.each(t.getEdges(),t=>{n.refreshItem(t)}),n.setAutoPaint(e)}n.autoPaint(),n.emit("afterupdateitem",{item:t,cfg:e})}removeItem(t){const e=this.graph;if(r.isString(t)&&(t=e.findById(t)),!t||t.destroyed)return;e.emit("beforeremoveitem",{item:t});const n=t.getType(),i=e.get(t.getType()+"s"),a=i.indexOf(t);if(i.splice(a,1),delete e.get("itemMap")[t.get("id")],n===o){const n=t.getEdges();for(let t=n.length;t>=0;t--)e.removeItem(n[t])}t.destroy(),e.autoPaint(),e.emit("afterremoveitem",{item:t})}setItemState(t,e,n){const r=this.graph;t.hasState(e)!==n&&(r.emit("beforeitemstatechange",{item:t,state:e,enabled:n}),t.setState(e,n),r.autoPaint(),r.emit("afteritemstatechange",{item:t,state:e,enabled:n}))}clearItemStates(t,e){const n=this.graph;r.isString(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.autoPaint(),n.emit("afteritemstatesclear",{item:t,states:e})}refreshItem(t){const e=this.graph;r.isString(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.autoPaint(),e.emit("afteritemrefresh",{item:t})}changeItemVisibility(t,e){const n=this,i=n.graph;if(r.isString(t)&&(t=i.findById(t)),i.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType()===o){const a=i.get("autoPaint");i.setAutoPaint(!1),r.each(t.getEdges(),t=>{(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}),i.setAutoPaint(a)}i.autoPaint(),i.emit("afteritemvisibilitychange",{item:t,visible:e})}destroy(){this.graph=null,this.destroyed=!0}}t.exports=l},"242e":function(t,e,n){var r=n("72af"),i=n("ec69");function a(t,e){return t&&r(t,e,i)}t.exports=a},2474:function(t,e,n){var r=n("2b3e"),i=r.Uint8Array;t.exports=i},2478:function(t,e,n){var r=n("4245");function i(t){return r(this,t).get(t)}t.exports=i},"24db":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},"251a":function(t,e,n){var r=n("6f9c"),i=n("b50e");function a(t){var e=i.addDummyNode(t,"root",{},"_root"),n=s(t),a=r.max(r.values(n))-1,c=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=c}));var h=u(t)+1;r.forEach(t.children(),(function(r){o(t,e,c,h,a,n,r)})),t.graph().nodeRankFactor=c}function o(t,e,n,a,s,u,c){var h=t.children(c);if(h.length){var f=i.addBorderNode(t,"_bt"),l=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(f,c),d.borderTop=f,t.setParent(l,c),d.borderBottom=l,r.forEach(h,(function(r){o(t,e,n,a,s,u,r);var i=t.node(r),h=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=h!==d?1:s-u[c]+1;t.setEdge(f,h,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,l,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(c)||t.setEdge(e,f,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}function s(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}function u(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}function c(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)}))}t.exports={run:a,cleanup:c}},2524:function(t,e,n){var r=n("6044"),i="__lodash_hash_undefined__";function a(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}t.exports=a},"253c":function(t,e,n){var r=n("3729"),i=n("1310"),a="[object Arguments]";function o(t){return i(t)&&r(t)==a}t.exports=o},2593:function(t,e,n){var r=n("15f3"),i=n("c6cf"),a=i((function(t,e){return null==t?{}:r(t,e)}));t.exports=a},2599:function(t,e){const n={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK"};t.exports={LAYOUT_MESSAGE:n}},2620:function(t,e,n){var r=n("1c6a"),i=n("9f57"),a=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave"],o=function(){var t=new Date;return t.getTime()},s=40,u=0,c=null,h=null,f={},l=null,d=0;t.exports={registerEvent:function(){var t=this,e=this.get("el");r.each(a,(function(n){e.addEventListener(n,(function(e){t._triggerEvent(n,e)}),!1)})),e.addEventListener("touchstart",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])}),!1),e.addEventListener("touchmove",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])}),!1),e.addEventListener("touchend",(function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])}),!1),e.addEventListener("contextmenu",(function(e){t._triggerEvent("contextmenu",e),e.preventDefault()}),!1)},_getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this._getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n=this,r=n.getPointByEvent(e),i=n.getShape(r.x,r.y,e),a=n.get("el");if(l&&"svg"===n.getRenderer()&&(i=n.getShape(r.x,r.y)),"mousemove"===t){if(c&&c!==i&&(n._emitEvent("mouseout",e,r,c),n._emitEvent("mouseleave",e,r,c),l&&n._emitEvent("dragleave",e,r,c),i&&!i.destroyed||(a.style.cursor="default")),l&&(n._emitEvent("drag",e,r,l),n._emitEvent("mousemove",e,r,i)),i){if(!l)if(h===i){var p=o(),g=p-d,v=f.x-e.clientX,m=f.y-e.clientY,y=v*v+m*m;g>120||y>s?(l=i,h=null,this._emitEvent("dragstart",e,r,i)):n._emitEvent("mousemove",e,r,i)}else n._emitEvent("mousemove",e,r,i);c!==i&&(n._emitEvent("mouseenter",e,r,i),n._emitEvent("mouseover",e,r,i),l&&n._emitEvent("dragenter",e,r,i))}else{var x=n._getEventObj("mousemove",e,r,n);n.emit("mousemove",x)}c=i}else if(this._emitEvent(t,e,r,i||this),l||"mousedown"!==t||e.button!==u||(h=i,f={x:e.clientX,y:e.clientY},d=o()),"mouseup"===t&&e.button===u){var b=f.x-e.clientX,w=f.y-e.clientY,_=b*b+w*w,M=o(),S=M-d;(_0;--s)if(r=e[s].dequeue(),r){i=i.concat(c(t,e,n,r,!0));break}}return i}function c(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,f(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o["in"]-=i,f(e,n,o)})),t.removeNode(i.v),o}function h(t,e){var n=new i,o=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),s=Math.max(s,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w)["in"]+=i)}));var u=r.range(s+o+3).map((function(){return new a})),c=o+1;return r.forEach(n.nodes(),(function(t){f(u,c,n.node(t))})),{graph:n,buckets:u,zeroIdx:c}}function f(t,e,n){n.out?n["in"]?t[n.out-n["in"]+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},"2a9f":function(t,e,n){"use strict";var r=n("6f9c"),i=n("e632"),a=n("d780"),o=n("38e2"),s=n("8817"),u=n("d4f3"),c=n("17d5").Graph,h=n("b50e");function f(t){var e=h.maxRank(t),n=l(t,r.range(1,e+1),"inEdges"),o=l(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);p(t,s);for(var u,c=Number.POSITIVE_INFINITY,f=0,g=0;g<4;++f,++g){d(f%2?n:o,f%4>=2),s=h.buildLayerMatrix(t);var v=a(t,s);v=c){var v=e?null:s(t);if(v)return u(v);d=!1,f=o,g=new r}else g=e?[]:p;t:while(++h1?n[a-1]:void 0,s=a>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);while(++r * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var a,o="4.17.21",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",h="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",l=500,d="__lodash_placeholder__",p=1,g=2,v=4,m=1,y=2,x=1,b=2,w=4,_=8,M=16,S=32,k=64,A=128,P=256,C=512,E=30,I="...",O=800,T=16,N=1,j=2,B=3,L=1/0,D=9007199254740991,R=17976931348623157e292,F=NaN,Y=4294967295,q=Y-1,z=Y>>>1,X=[["ary",A],["bind",x],["bindKey",b],["curry",_],["curryRight",M],["flip",C],["partial",S],["partialRight",k],["rearg",P]],G="[object Arguments]",W="[object Array]",U="[object AsyncFunction]",V="[object Boolean]",H="[object Date]",Z="[object DOMException]",$="[object Error]",Q="[object Function]",K="[object GeneratorFunction]",J="[object Map]",tt="[object Number]",et="[object Null]",nt="[object Object]",rt="[object Promise]",it="[object Proxy]",at="[object RegExp]",ot="[object Set]",st="[object String]",ut="[object Symbol]",ct="[object Undefined]",ht="[object WeakMap]",ft="[object WeakSet]",lt="[object ArrayBuffer]",dt="[object DataView]",pt="[object Float32Array]",gt="[object Float64Array]",vt="[object Int8Array]",mt="[object Int16Array]",yt="[object Int32Array]",xt="[object Uint8Array]",bt="[object Uint8ClampedArray]",wt="[object Uint16Array]",_t="[object Uint32Array]",Mt=/\b__p \+= '';/g,St=/\b(__p \+=) '' \+/g,kt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,At=/&(?:amp|lt|gt|quot|#39);/g,Pt=/[&<>"']/g,Ct=RegExp(At.source),Et=RegExp(Pt.source),It=/<%-([\s\S]+?)%>/g,Ot=/<%([\s\S]+?)%>/g,Tt=/<%=([\s\S]+?)%>/g,Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jt=/^\w*$/,Bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lt=/[\\^$.*+?()[\]{}|]/g,Dt=RegExp(Lt.source),Rt=/^\s+/,Ft=/\s/,Yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qt=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /,Xt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gt=/[()=,{}\[\]\/\s]/,Wt=/\\(\\)?/g,Ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,Zt=/^0b[01]+$/i,$t=/^\[object .+?Constructor\]$/,Qt=/^0o[0-7]+$/i,Kt=/^(?:0|[1-9]\d*)$/,Jt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,te=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,ne="\\ud800-\\udfff",re="\\u0300-\\u036f",ie="\\ufe20-\\ufe2f",ae="\\u20d0-\\u20ff",oe=re+ie+ae,se="\\u2700-\\u27bf",ue="a-z\\xdf-\\xf6\\xf8-\\xff",ce="\\xac\\xb1\\xd7\\xf7",he="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fe="\\u2000-\\u206f",le=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="A-Z\\xc0-\\xd6\\xd8-\\xde",pe="\\ufe0e\\ufe0f",ge=ce+he+fe+le,ve="['’]",me="["+ne+"]",ye="["+ge+"]",xe="["+oe+"]",be="\\d+",we="["+se+"]",_e="["+ue+"]",Me="[^"+ne+ge+be+se+ue+de+"]",Se="\\ud83c[\\udffb-\\udfff]",ke="(?:"+xe+"|"+Se+")",Ae="[^"+ne+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="["+de+"]",Ie="\\u200d",Oe="(?:"+_e+"|"+Me+")",Te="(?:"+Ee+"|"+Me+")",Ne="(?:"+ve+"(?:d|ll|m|re|s|t|ve))?",je="(?:"+ve+"(?:D|LL|M|RE|S|T|VE))?",Be=ke+"?",Le="["+pe+"]?",De="(?:"+Ie+"(?:"+[Ae,Pe,Ce].join("|")+")"+Le+Be+")*",Re="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ye=Le+Be+De,qe="(?:"+[we,Pe,Ce].join("|")+")"+Ye,ze="(?:"+[Ae+xe+"?",xe,Pe,Ce,me].join("|")+")",Xe=RegExp(ve,"g"),Ge=RegExp(xe,"g"),We=RegExp(Se+"(?="+Se+")|"+ze+Ye,"g"),Ue=RegExp([Ee+"?"+_e+"+"+Ne+"(?="+[ye,Ee,"$"].join("|")+")",Te+"+"+je+"(?="+[ye,Ee+Oe,"$"].join("|")+")",Ee+"?"+Oe+"+"+Ne,Ee+"+"+je,Fe,Re,be,qe].join("|"),"g"),Ve=RegExp("["+Ie+ne+oe+pe+"]"),He=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$e=-1,Qe={};Qe[pt]=Qe[gt]=Qe[vt]=Qe[mt]=Qe[yt]=Qe[xt]=Qe[bt]=Qe[wt]=Qe[_t]=!0,Qe[G]=Qe[W]=Qe[lt]=Qe[V]=Qe[dt]=Qe[H]=Qe[$]=Qe[Q]=Qe[J]=Qe[tt]=Qe[nt]=Qe[at]=Qe[ot]=Qe[st]=Qe[ht]=!1;var Ke={};Ke[G]=Ke[W]=Ke[lt]=Ke[dt]=Ke[V]=Ke[H]=Ke[pt]=Ke[gt]=Ke[vt]=Ke[mt]=Ke[yt]=Ke[J]=Ke[tt]=Ke[nt]=Ke[at]=Ke[ot]=Ke[st]=Ke[ut]=Ke[xt]=Ke[bt]=Ke[wt]=Ke[_t]=!0,Ke[$]=Ke[Q]=Ke[ht]=!1;var Je={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},tn={"&":"&","<":"<",">":">",'"':""","'":"'"},en={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,an=parseInt,on="object"==typeof t&&t&&t.Object===Object&&t,sn="object"==typeof self&&self&&self.Object===Object&&self,un=on||sn||Function("return this")(),cn=e&&!e.nodeType&&e,hn=cn&&"object"==typeof r&&r&&!r.nodeType&&r,fn=hn&&hn.exports===cn,ln=fn&&on.process,dn=function(){try{var t=hn&&hn.require&&hn.require("util").types;return t||ln&&ln.binding&&ln.binding("util")}catch(e){}}(),pn=dn&&dn.isArrayBuffer,gn=dn&&dn.isDate,vn=dn&&dn.isMap,mn=dn&&dn.isRegExp,yn=dn&&dn.isSet,xn=dn&&dn.isTypedArray;function bn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function wn(t,e,n,r){var i=-1,a=null==t?0:t.length;while(++i-1}function Pn(t,e,n){var r=-1,i=null==t?0:t.length;while(++r-1);return n}function tr(t,e){var n=t.length;while(n--&&Rn(e,t[n],0)>-1);return n}function er(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var nr=Xn(Je),rr=Xn(tn);function ir(t){return"\\"+nn[t]}function ar(t,e){return null==t?a:t[e]}function or(t){return Ve.test(t)}function sr(t){return He.test(t)}function ur(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function cr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function hr(t,e){return function(n){return t(e(n))}}function fr(t,e){var n=-1,r=t.length,i=0,a=[];while(++n-1}function zr(t,e){var n=this.__data__,r=hi(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Xr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e=e?t:e)),t}function mi(t,e,n,r,i,o){var s,u=e&p,c=e&g,h=e&v;if(n&&(s=i?n(t,r,i,o):n(t)),s!==a)return s;if(!Sh(t))return t;var f=uh(t);if(f){if(s=es(t),!u)return ro(t,s)}else{var l=Qo(t),d=l==Q||l==K;if(dh(t))return Va(t,u);if(l==nt||l==G||d&&!i){if(s=c||d?{}:ns(t),!u)return c?oo(t,di(s,t)):ao(t,li(s,t))}else{if(!Ke[l])return i?t:{};s=rs(t,l,u)}}o||(o=new Kr);var m=o.get(t);if(m)return m;o.set(t,s),Dh(t)?t.forEach((function(r){s.add(mi(r,e,n,r,t,o))})):Ah(t)&&t.forEach((function(r,i){s.set(i,mi(r,e,n,i,t,o))}));var y=h?c?Yo:Fo:c?Sf:Mf,x=f?a:y(t);return _n(x||t,(function(r,i){x&&(i=r,r=t[i]),ci(s,i,mi(r,e,n,i,t,o))})),s}function yi(t){var e=Mf(t);return function(n){return xi(n,t,e)}}function xi(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var i=n[r],o=e[i],s=t[i];if(s===a&&!(i in t)||!o(s))return!1}return!0}function bi(t,e,n){if("function"!=typeof t)throw new ae(c);return ks((function(){t.apply(a,n)}),e)}function wi(t,e,n,r){var i=-1,a=An,o=!0,u=t.length,c=[],h=e.length;if(!u)return c;n&&(e=Cn(e,$n(n))),r?(a=Pn,o=!1):e.length>=s&&(a=Kn,o=!1,e=new Zr(e));t:while(++ii?0:i+n),r=r===a||r>i?i:Hh(r),r<0&&(r+=i),r=n>r?0:Zh(r);while(n0&&n(s)?e>1?Ci(s,e-1,n,r,i):En(i,s):r||(i[i.length]=s)}return i}var Ei=ho(),Ii=ho(!0);function Oi(t,e){return t&&Ei(t,e,Mf)}function Ti(t,e){return t&&Ii(t,e,Mf)}function Ni(t,e){return kn(e,(function(e){return wh(t[e])}))}function ji(t,e){e=Xa(e,t);var n=0,r=e.length;while(null!=t&&ne}function Ri(t,e){return null!=t&&fe.call(t,e)}function Fi(t,e){return null!=t&&e in ne(t)}function Yi(t,e,n){return t>=qe(e,n)&&t=120&&l.length>=120)?new Zr(u&&l):a}l=t[0];var d=-1,p=c[0];t:while(++d-1)s!==t&&ke.call(s,u,1),ke.call(t,u,1)}return t}function va(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==a){var a=i;os(i)?ke.call(t,i,1):Ba(t,i)}}return t}function ma(t,e){return t+je(Ue()*(e-t+1))}function ya(t,e,r,i){var a=-1,o=Ye(Ne((e-t)/(r||1)),0),s=n(o);while(o--)s[i?o:++a]=t,t+=r;return s}function xa(t,e){var n="";if(!t||e<1||e>D)return n;do{e%2&&(n+=t),e=je(e/2),e&&(t+=t)}while(e);return n}function ba(t,e){return As(bs(t,e,Ol),t+"")}function wa(t){return ai(zf(t))}function _a(t,e){var n=zf(t);return Es(n,vi(e,0,n.length))}function Ma(t,e,n,r){if(!Sh(t))return t;e=Xa(e,t);var i=-1,o=e.length,s=o-1,u=t;while(null!=u&&++ia?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;var o=n(a);while(++i>>1,o=t[a];null!==o&&!Fh(o)&&(n?o<=e:o=s){var h=e?null:Eo(t);if(h)return lr(h);o=!1,i=Kn,c=new Zr}else c=e?[]:u;t:while(++r=r?t:Pa(t,e,n)}var Ua=Ie||function(t){return un.clearTimeout(t)};function Va(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function Ha(t){var e=new t.constructor(t.byteLength);return new be(e).set(new be(t)),e}function Za(t,e){var n=e?Ha(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function $a(t){var e=new t.constructor(t.source,Vt.exec(t));return e.lastIndex=t.lastIndex,e}function Qa(t){return pr?ne(pr.call(t)):{}}function Ka(t,e){var n=e?Ha(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ja(t,e){if(t!==e){var n=t!==a,r=null===t,i=t===t,o=Fh(t),s=e!==a,u=null===e,c=e===e,h=Fh(e);if(!u&&!h&&!o&&t>e||o&&s&&c&&!u&&!h||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!h&&t=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return t.index-e.index}function eo(t,e,r,i){var a=-1,o=t.length,s=r.length,u=-1,c=e.length,h=Ye(o-s,0),f=n(c+h),l=!i;while(++u1?n[i-1]:a,s=i>2?n[2]:a;o=t.length>3&&"function"==typeof o?(i--,o):a,s&&ss(n[0],n[1],s)&&(o=i<3?a:o,i=1),e=ne(e);while(++r-1?i[o?e[s]:s]:a}}function yo(t){return Ro((function(e){var n=e.length,r=n,i=Ar.prototype.thru;t&&e.reverse();while(r--){var o=e[r];if("function"!=typeof o)throw new ae(c);if(i&&!s&&"wrapper"==zo(o))var s=new Ar([],!0)}r=s?r:n;while(++r1&&x.reverse(),l&&hu))return!1;var h=o.get(t),f=o.get(e);if(h&&f)return h==e&&f==t;var l=-1,d=!0,p=n&y?new Zr:a;o.set(t,e),o.set(e,t);while(++l1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Yt,"{\n/* [wrapped with "+e+"] */\n")}function as(t){return uh(t)||sh(t)||!!(Ae&&t&&t[Ae])}function os(t,e){var n=typeof t;return e=null==e?D:e,!!e&&("number"==n||"symbol"!=n&&Kt.test(t))&&t>-1&&t%1==0&&t0){if(++e>=O)return arguments[0]}else e=0;return t.apply(a,arguments)}}function Es(t,e){var n=-1,r=t.length,i=r-1;e=e===a?r:e;while(++n1?t[e-1]:a;return n="function"==typeof n?(t.pop(),n):a,Lu(t,n)}));function Wu(t){var e=wr(t);return e.__chain__=!0,e}function Uu(t,e){return e(t),t}function Vu(t,e){return e(t)}var Hu=Ro((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return gi(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Pr&&os(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Vu,args:[i],thisArg:a}),new Ar(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(a),t}))):this.thru(i)}));function Zu(){return Wu(this)}function $u(){return new Ar(this.value(),this.__chain__)}function Qu(){this.__values__===a&&(this.__values__=Uh(this.value()));var t=this.__index__>=this.__values__.length,e=t?a:this.__values__[this.__index__++];return{done:t,value:e}}function Ku(){return this}function Ju(t){var e,n=this;while(n instanceof kr){var r=js(n);r.__index__=0,r.__values__=a,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function tc(){var t=this.__wrapped__;if(t instanceof Pr){var e=t;return this.__actions__.length&&(e=new Pr(this)),e=e.reverse(),e.__actions__.push({func:Vu,args:[pu],thisArg:a}),new Ar(e,this.__chain__)}return this.thru(pu)}function ec(){return Ra(this.__wrapped__,this.__actions__)}var nc=so((function(t,e,n){fe.call(t,n)?++t[n]:pi(t,n,1)}));function rc(t,e,n){var r=uh(t)?Sn:Si;return n&&ss(t,e,n)&&(e=a),r(t,Go(e,3))}function ic(t,e){var n=uh(t)?kn:Pi;return n(t,Go(e,3))}var ac=mo(Us),oc=mo(Vs);function sc(t,e){return Ci(vc(t,e),1)}function uc(t,e){return Ci(vc(t,e),L)}function cc(t,e,n){return n=n===a?1:Hh(n),Ci(vc(t,e),n)}function hc(t,e){var n=uh(t)?_n:_i;return n(t,Go(e,3))}function fc(t,e){var n=uh(t)?Mn:Mi;return n(t,Go(e,3))}var lc=so((function(t,e,n){fe.call(t,n)?t[n].push(e):pi(t,n,[e])}));function dc(t,e,n,r){t=hh(t)?t:zf(t),n=n&&!r?Hh(n):0;var i=t.length;return n<0&&(n=Ye(i+n,0)),Rh(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Rn(t,e,n)>-1}var pc=ba((function(t,e,r){var i=-1,a="function"==typeof e,o=hh(t)?n(t.length):[];return _i(t,(function(t){o[++i]=a?bn(e,t,r):Xi(t,e,r)})),o})),gc=so((function(t,e,n){pi(t,n,e)}));function vc(t,e){var n=uh(t)?Cn:aa;return n(t,Go(e,3))}function mc(t,e,n,r){return null==t?[]:(uh(e)||(e=null==e?[]:[e]),n=r?a:n,uh(n)||(n=null==n?[]:[n]),fa(t,e,n))}var yc=so((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function xc(t,e,n){var r=uh(t)?In:Gn,i=arguments.length<3;return r(t,Go(e,4),n,i,_i)}function bc(t,e,n){var r=uh(t)?On:Gn,i=arguments.length<3;return r(t,Go(e,4),n,i,Mi)}function wc(t,e){var n=uh(t)?kn:Pi;return n(t,qc(Go(e,3)))}function _c(t){var e=uh(t)?ai:wa;return e(t)}function Mc(t,e,n){e=(n?ss(t,e,n):e===a)?1:Hh(e);var r=uh(t)?oi:_a;return r(t,e)}function Sc(t){var e=uh(t)?si:Aa;return e(t)}function kc(t){if(null==t)return 0;if(hh(t))return Rh(t)?vr(t):t.length;var e=Qo(t);return e==J||e==ot?t.size:na(t).length}function Ac(t,e,n){var r=uh(t)?Tn:Ca;return n&&ss(t,e,n)&&(e=a),r(t,Go(e,3))}var Pc=ba((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ss(t,e[0],e[1])?e=[]:n>2&&ss(e[0],e[1],e[2])&&(e=[e[0]]),fa(t,Ci(e,1),[])})),Cc=Oe||function(){return un.Date.now()};function Ec(t,e){if("function"!=typeof e)throw new ae(c);return t=Hh(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ic(t,e,n){return e=n?a:e,e=t&&null==e?t.length:e,Oo(t,A,a,a,a,a,e)}function Oc(t,e){var n;if("function"!=typeof e)throw new ae(c);return t=Hh(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=a),n}}var Tc=ba((function(t,e,n){var r=x;if(n.length){var i=fr(n,Xo(Tc));r|=S}return Oo(t,r,e,n,i)})),Nc=ba((function(t,e,n){var r=x|b;if(n.length){var i=fr(n,Xo(Nc));r|=S}return Oo(e,r,t,n,i)}));function jc(t,e,n){e=n?a:e;var r=Oo(t,_,a,a,a,a,a,e);return r.placeholder=jc.placeholder,r}function Bc(t,e,n){e=n?a:e;var r=Oo(t,M,a,a,a,a,a,e);return r.placeholder=Bc.placeholder,r}function Lc(t,e,n){var r,i,o,s,u,h,f=0,l=!1,d=!1,p=!0;if("function"!=typeof t)throw new ae(c);function g(e){var n=r,o=i;return r=i=a,f=e,s=t.apply(o,n),s}function v(t){return f=t,u=ks(x,e),l?g(t):s}function m(t){var n=t-h,r=t-f,i=e-n;return d?qe(i,o-r):i}function y(t){var n=t-h,r=t-f;return h===a||n>=e||n<0||d&&r>=o}function x(){var t=Cc();if(y(t))return b(t);u=ks(x,m(t))}function b(t){return u=a,p&&r?g(t):(r=i=a,s)}function w(){u!==a&&Ua(u),f=0,r=h=i=u=a}function _(){return u===a?s:b(Cc())}function M(){var t=Cc(),n=y(t);if(r=arguments,i=this,h=t,n){if(u===a)return v(h);if(d)return Ua(u),u=ks(x,e),g(h)}return u===a&&(u=ks(x,e)),s}return e=$h(e)||0,Sh(n)&&(l=!!n.leading,d="maxWait"in n,o=d?Ye($h(n.maxWait)||0,e):o,p="trailing"in n?!!n.trailing:p),M.cancel=w,M.flush=_,M}var Dc=ba((function(t,e){return bi(t,1,e)})),Rc=ba((function(t,e,n){return bi(t,$h(e)||0,n)}));function Fc(t){return Oo(t,C)}function Yc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ae(c);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Yc.Cache||Xr),n}function qc(t){if("function"!=typeof t)throw new ae(c);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function zc(t){return Oc(2,t)}Yc.Cache=Xr;var Xc=Ga((function(t,e){e=1==e.length&&uh(e[0])?Cn(e[0],$n(Go())):Cn(Ci(e,1),$n(Go()));var n=e.length;return ba((function(r){var i=-1,a=qe(r.length,n);while(++i=e})),sh=Gi(function(){return arguments}())?Gi:function(t){return kh(t)&&fe.call(t,"callee")&&!Se.call(t,"callee")},uh=n.isArray,ch=pn?$n(pn):Wi;function hh(t){return null!=t&&Mh(t.length)&&!wh(t)}function fh(t){return kh(t)&&hh(t)}function lh(t){return!0===t||!1===t||kh(t)&&Li(t)==V}var dh=Le||Zl,ph=gn?$n(gn):Ui;function gh(t){return kh(t)&&1===t.nodeType&&!jh(t)}function vh(t){if(null==t)return!0;if(hh(t)&&(uh(t)||"string"==typeof t||"function"==typeof t.splice||dh(t)||Yh(t)||sh(t)))return!t.length;var e=Qo(t);if(e==J||e==ot)return!t.size;if(ds(t))return!na(t).length;for(var n in t)if(fe.call(t,n))return!1;return!0}function mh(t,e){return Vi(t,e)}function yh(t,e,n){n="function"==typeof n?n:a;var r=n?n(t,e):a;return r===a?Vi(t,e,a,n):!!r}function xh(t){if(!kh(t))return!1;var e=Li(t);return e==$||e==Z||"string"==typeof t.message&&"string"==typeof t.name&&!jh(t)}function bh(t){return"number"==typeof t&&De(t)}function wh(t){if(!Sh(t))return!1;var e=Li(t);return e==Q||e==K||e==U||e==it}function _h(t){return"number"==typeof t&&t==Hh(t)}function Mh(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=D}function Sh(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function kh(t){return null!=t&&"object"==typeof t}var Ah=vn?$n(vn):Zi;function Ph(t,e){return t===e||$i(t,e,Uo(e))}function Ch(t,e,n){return n="function"==typeof n?n:a,$i(t,e,Uo(e),n)}function Eh(t){return Nh(t)&&t!=+t}function Ih(t){if(ls(t))throw new i(u);return Qi(t)}function Oh(t){return null===t}function Th(t){return null==t}function Nh(t){return"number"==typeof t||kh(t)&&Li(t)==tt}function jh(t){if(!kh(t)||Li(t)!=nt)return!1;var e=_e(t);if(null===e)return!0;var n=fe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&he.call(n)==ge}var Bh=mn?$n(mn):Ki;function Lh(t){return _h(t)&&t>=-D&&t<=D}var Dh=yn?$n(yn):Ji;function Rh(t){return"string"==typeof t||!uh(t)&&kh(t)&&Li(t)==st}function Fh(t){return"symbol"==typeof t||kh(t)&&Li(t)==ut}var Yh=xn?$n(xn):ta;function qh(t){return t===a}function zh(t){return kh(t)&&Qo(t)==ht}function Xh(t){return kh(t)&&Li(t)==ft}var Gh=Ao(ia),Wh=Ao((function(t,e){return t<=e}));function Uh(t){if(!t)return[];if(hh(t))return Rh(t)?mr(t):ro(t);if(Pe&&t[Pe])return ur(t[Pe]());var e=Qo(t),n=e==J?cr:e==ot?lr:zf;return n(t)}function Vh(t){if(!t)return 0===t?t:0;if(t=$h(t),t===L||t===-L){var e=t<0?-1:1;return e*R}return t===t?t:0}function Hh(t){var e=Vh(t),n=e%1;return e===e?n?e-n:e:0}function Zh(t){return t?vi(Hh(t),0,Y):0}function $h(t){if("number"==typeof t)return t;if(Fh(t))return F;if(Sh(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Sh(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Zn(t);var n=Zt.test(t);return n||Qt.test(t)?an(t.slice(2),n?2:8):Ht.test(t)?F:+t}function Qh(t){return io(t,Sf(t))}function Kh(t){return t?vi(Hh(t),-D,D):0===t?t:0}function Jh(t){return null==t?"":Na(t)}var tf=uo((function(t,e){if(ds(e)||hh(e))io(e,Mf(e),t);else for(var n in e)fe.call(e,n)&&ci(t,n,e[n])})),ef=uo((function(t,e){io(e,Sf(e),t)})),nf=uo((function(t,e,n,r){io(e,Sf(e),t,r)})),rf=uo((function(t,e,n,r){io(e,Mf(e),t,r)})),af=Ro(gi);function of(t,e){var n=Mr(t);return null==e?n:li(n,e)}var sf=ba((function(t,e){t=ne(t);var n=-1,r=e.length,i=r>2?e[2]:a;i&&ss(e[0],e[1],i)&&(r=1);while(++n1),e})),io(t,Yo(t),n),r&&(n=mi(n,p|g|v,jo));var i=e.length;while(i--)Ba(n,e[i]);return n}));function If(t,e){return Tf(t,qc(Go(e)))}var Of=Ro((function(t,e){return null==t?{}:la(t,e)}));function Tf(t,e){if(null==t)return{};var n=Cn(Yo(t),(function(t){return[t]}));return e=Go(e),da(t,n,(function(t,n){return e(t,n[0])}))}function Nf(t,e,n){e=Xa(e,t);var r=-1,i=e.length;i||(i=1,t=a);while(++re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Ue();return qe(t+i*(e-t+rn("1e-"+((i+"").length-1))),e)}return ma(t,e)}var Vf=po((function(t,e,n){return e=e.toLowerCase(),t+(n?Hf(e):e)}));function Hf(t){return wl(Jh(t).toLowerCase())}function Zf(t){return t=Jh(t),t&&t.replace(Jt,nr).replace(Ge,"")}function $f(t,e,n){t=Jh(t),e=Na(e);var r=t.length;n=n===a?r:vi(Hh(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function Qf(t){return t=Jh(t),t&&Et.test(t)?t.replace(Pt,rr):t}function Kf(t){return t=Jh(t),t&&Dt.test(t)?t.replace(Lt,"\\$&"):t}var Jf=po((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),tl=po((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),el=lo("toLowerCase");function nl(t,e,n){t=Jh(t),e=Hh(e);var r=e?vr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Mo(je(i),n)+t+Mo(Ne(i),n)}function rl(t,e,n){t=Jh(t),e=Hh(e);var r=e?vr(t):0;return e&&r>>0,n?(t=Jh(t),t&&("string"==typeof e||null!=e&&!Bh(e))&&(e=Na(e),!e&&or(t))?Wa(mr(t),0,n):t.split(e,n)):[]}var hl=po((function(t,e,n){return t+(n?" ":"")+wl(e)}));function fl(t,e,n){return t=Jh(t),n=null==n?0:vi(Hh(n),0,t.length),e=Na(e),t.slice(n,n+e.length)==e}function ll(t,e,n){var r=wr.templateSettings;n&&ss(t,e,n)&&(e=a),t=Jh(t),e=nf({},e,r,To);var o,s,u=nf({},e.imports,r.imports,To),c=Mf(u),f=Qn(u,c),l=0,d=e.interpolate||te,p="__p += '",g=re((e.escape||te).source+"|"+d.source+"|"+(d===Tt?Ut:te).source+"|"+(e.evaluate||te).source+"|$","g"),v="//# sourceURL="+(fe.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$e+"]")+"\n";t.replace(g,(function(e,n,r,i,a,u){return r||(r=i),p+=t.slice(l,u).replace(ee,ir),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),p+="';\n";var m=fe.call(e,"variable")&&e.variable;if(m){if(Gt.test(m))throw new i(h)}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(Mt,""):p).replace(St,"$1").replace(kt,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Ml((function(){return Ft(c,v+"return "+p).apply(a,f)}));if(y.source=p,xh(y))throw y;return y}function dl(t){return Jh(t).toLowerCase()}function pl(t){return Jh(t).toUpperCase()}function gl(t,e,n){if(t=Jh(t),t&&(n||e===a))return Zn(t);if(!t||!(e=Na(e)))return t;var r=mr(t),i=mr(e),o=Jn(r,i),s=tr(r,i)+1;return Wa(r,o,s).join("")}function vl(t,e,n){if(t=Jh(t),t&&(n||e===a))return t.slice(0,yr(t)+1);if(!t||!(e=Na(e)))return t;var r=mr(t),i=tr(r,mr(e))+1;return Wa(r,0,i).join("")}function ml(t,e,n){if(t=Jh(t),t&&(n||e===a))return t.replace(Rt,"");if(!t||!(e=Na(e)))return t;var r=mr(t),i=Jn(r,mr(e));return Wa(r,i).join("")}function yl(t,e){var n=E,r=I;if(Sh(e)){var i="separator"in e?e.separator:i;n="length"in e?Hh(e.length):n,r="omission"in e?Na(e.omission):r}t=Jh(t);var o=t.length;if(or(t)){var s=mr(t);o=s.length}if(n>=o)return t;var u=n-vr(r);if(u<1)return r;var c=s?Wa(s,0,u).join(""):t.slice(0,u);if(i===a)return c+r;if(s&&(u+=c.length-u),Bh(i)){if(t.slice(u).search(i)){var h,f=c;i.global||(i=re(i.source,Jh(Vt.exec(i))+"g")),i.lastIndex=0;while(h=i.exec(f))var l=h.index;c=c.slice(0,l===a?u:l)}}else if(t.indexOf(Na(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r}function xl(t){return t=Jh(t),t&&Ct.test(t)?t.replace(At,xr):t}var bl=po((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),wl=lo("toUpperCase");function _l(t,e,n){return t=Jh(t),e=n?a:e,e===a?sr(t)?_r(t):Bn(t):t.match(e)||[]}var Ml=ba((function(t,e){try{return bn(t,a,e)}catch(n){return xh(n)?n:new i(n)}})),Sl=Ro((function(t,e){return _n(e,(function(e){e=Os(e),pi(t,e,Tc(t[e],t))})),t}));function kl(t){var e=null==t?0:t.length,n=Go();return t=e?Cn(t,(function(t){if("function"!=typeof t[1])throw new ae(c);return[n(t[0]),t[1]]})):[],ba((function(n){var r=-1;while(++rD)return[];var n=Y,r=qe(t,Y);e=Go(e),t-=Y;var i=Vn(r,e);while(++n0||e<0)?new Pr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==a&&(e=Hh(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Pr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Pr.prototype.toArray=function(){return this.take(Y)},Oi(Pr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=wr[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(wr.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,u=e instanceof Pr,c=s[0],h=u||uh(e),f=function(t){var e=i.apply(wr,En([t],s));return r&&l?e[0]:e};h&&n&&"function"==typeof c&&1!=c.length&&(u=h=!1);var l=this.__chain__,d=!!this.__actions__.length,p=o&&!l,g=u&&!d;if(!o&&h){e=g?e:new Pr(this);var v=t.apply(e,s);return v.__actions__.push({func:Vu,args:[f],thisArg:a}),new Ar(v,l)}return p&&g?t.apply(this,s):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),_n(["pop","push","shift","sort","splice","unshift"],(function(t){var e=oe[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);wr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(uh(i)?i:[],t)}return this[n]((function(n){return e.apply(uh(n)?n:[],t)}))}})),Oi(Pr.prototype,(function(t,e){var n=wr[e];if(n){var r=n.name+"";fe.call(cn,r)||(cn[r]=[]),cn[r].push({name:e,func:n})}})),cn[xo(a,b).name]=[{name:"wrapper",func:a}],Pr.prototype.clone=Cr,Pr.prototype.reverse=Er,Pr.prototype.value=Ir,wr.prototype.at=Hu,wr.prototype.chain=Zu,wr.prototype.commit=$u,wr.prototype.next=Qu,wr.prototype.plant=Ju,wr.prototype.reverse=tc,wr.prototype.toJSON=wr.prototype.valueOf=wr.prototype.value=ec,wr.prototype.first=wr.prototype.head,Pe&&(wr.prototype[Pe]=Ku),wr},Sr=Mr();un._=Sr,i=function(){return Sr}.call(e,n,e,r),i===a||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},"2efd":function(t,e){const n="click",r=["click","dblclick"];t.exports={getDefaultCfg(){return{trigger:n,onChange(){}}},getEvents(){let t;return r.includes(this.trigger)?t=this.trigger:(t=n,console.warn("Behavior collapse-expand的trigger参数不合法,请输入click或dblclick")),{["node:"+t]:"onNodeClick"}},onNodeClick(t){const e=t.item,n=this.graph.findDataById(e.get("id")),r=n.children;if(!r||0===r.length)return;const i=!n.collapsed;if(this.shouldBegin(t,i)&&(n.collapsed=i,e.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:t.item,collapsed:i}),this.shouldUpdate(t,i))){try{this.onChange(e,i)}catch(t){console.warn("G6 自 3.0.4 版本支持直接从 item.getModel() 获取源数据(临时通知,将在3.2.0版本中清除)",t)}this.graph.refreshLayout()}}}},"2fcc":function(t,e){function n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=n},"30c9":function(t,e,n){var r=n("9520"),i=n("b218");function a(t){return null!=t&&i(t.length)&&!r(t)}t.exports=a},"321c":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("5134"),o=n("c4bc"),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this,e=t._attrs,n=this.getHitLineWidth(),i=e.points;if(!i||0===i.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(i,(function(t){var e=t[0],n=t[1];es&&(s=e),nu&&(u=n)}));var c=n/2;return{minX:a-c,minY:o-c,maxX:s+c,maxY:u+c}},_setTcache:function(){var t,e,n=this,i=n._attrs,a=i.points,s=0,u=0,c=[];a&&0!==a.length&&(r.each(a,(function(t,e){a[e+1]&&(s+=o.len(t[0],t[1],a[e+1][0],a[e+1][1]))})),s<=0||(r.each(a,(function(n,r){a[r+1]&&(t=[],t[0]=u/s,e=o.len(n[0],n[1],a[r+1][0],a[r+1][1]),u+=e,t[1]=u/s,c.push(t))})),this.tCache=c))},createPath:function(t){var e,n=this,r=n._attrs,i=r.points;if(!(i.length<2)){var o=i.length-1,s=i[0][0],u=i[0][1],c=i[o][0],h=i[o][1];if(r.startArrow&&r.startArrow.d){var f=a.getShortenOffset(i[0][0],i[0][1],i[1][0],i[1][1],r.startArrow.d);s+=f.dx,u+=f.dy}if(r.endArrow&&r.endArrow.d){var l=a.getShortenOffset(i[o-1][0],i[o-1][1],i[o][0],i[o][1],r.endArrow.d);c-=l.dx,h-=l.dy}for(t=t||n.get("context"),t.beginPath(),t.moveTo(s,u),e=1;e=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:o.at(a[n][0],a[n+1][0],e),y:o.at(a[n][1],a[n+1][1],e)}}}),t.exports=s},"32b3":function(t,e,n){var r=n("872a"),i=n("9638"),a=Object.prototype,o=a.hasOwnProperty;function s(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}t.exports=s},"32f4":function(t,e,n){var r=n("2d7c"),i=n("d327"),a=Object.prototype,o=a.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=u},3380:function(t,e,n){var r=n("1c6a"),i=r.vec2;function a(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function o(t,e,n,r,o,s,u,c,h){var f,l,d,p,g,v,m,y=.005,x=1/0,b=1e-4,w=[u,c];for(g=0;g<1;g+=.05)d=[a(t,n,o,g),a(e,r,s,g)],l=i.squaredDistance(w,d),l=0&&l=0?[a]:[]}t.exports={at:a,projectPoint:function(t,e,n,r,i,a,s,u){var c={};return o(t,e,n,r,i,a,s,u,c),c},pointDistance:o,extrema:s}},"339d":function(t,e){var n=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},"33de":function(t,e,n){var r;try{r={clone:n("b8ce"),constant:n("72f0"),each:n("c641"),filter:n("9380"),has:n("3852"),isArray:n("6747"),isEmpty:n("13ea"),isFunction:n("9520"),isUndefined:n("4cfe"),keys:n("ec69"),map:n("dd61"),reduce:n("c5a2"),size:n("d623"),transform:n("50ca"),union:n("bfc7"),values:n("3ff1")}}catch(i){}r||(r=window._),t.exports=r},3421:function(t,e,n){var r=n("00d0"),i=function(t){return r(t,"String")};t.exports=i},3494:function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("1bb5"),o=n("9ed2");r.registerNode("ellipse",{options:{size:[120,60],style:{x:0,y:0,stroke:o.defaultShapeStrokeColor,fill:o.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"}},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:36,height:36}},shapeType:"ellipse",labelPosition:"center",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r}=this.options,{icon:a}=n,o=this.getShapeStyle(t),s=i({},r,a,t.icon),u=e.addShape("ellipse",{attrs:o}),{width:c,height:h,show:f}=s;if(f){const t=e.addShape("image",{attrs:{x:-c/2,y:-h/2,...s},className:"ellipse-icon"});t.set("capture",!1)}return this.drawLinkPoints(t,e),u},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,bottom:h,size:f,...l}=o,d=this.getSize(t),p=d[0]/2,g=d[1]/2;u&&e.addShape("circle",{attrs:{...l,x:-p,y:0,r:f},className:"ellipse-mark-left",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:{...l,x:p,y:0,r:f},className:"ellipse-mark-right",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:{...l,x:0,y:-g,r:f},className:"ellipse-mark-top",isAnchorPoint:!0}),h&&e.addShape("circle",{attrs:{...l,x:0,y:g,r:f},className:"ellipse-mark-bottom",isAnchorPoint:!0})},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,o={stroke:t.color},s=i({},n,r,o,t.style),u=this.getSize(t),c=u[0]/2,h=u[1]/2,f=a.mix({},{x:0,y:0,rx:c,ry:h},s);return f},update(t,e){const n=this.getCustomConfig(t)||{},{style:r,icon:a,labelCfg:o}=this.options,{style:s,icon:u,labelCfg:c}=n,h=i({},r,s,t.style),f=i({},a,u,t.icon),l=this.getSize(t),d=l[0]/2,p=l[1]/2,g=e.get("keyShape");g.attr({...h,rx:d,ry:p});const v=e.getContainer(),m=i({},o,c,t.labelCfg),y=this.getLabelStyle(t,m,v),x=v.findByClassName("node-label");x&&x.attr({...y});const b=v.findByClassName("ellipse-icon"),{width:w,height:_}=f;b&&b.attr({x:-w/2,y:-_/2,...f}),this.updateLinkPoints(t,v)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,...u}=o,c=this.getSize(t),h=c[0]/2,f=c[1]/2,l=e.findByClassName("ellipse-mark-left");l&&l.attr({...u,x:-h,y:0,r:s});const d=e.findByClassName("ellipse-mark-right");d&&d.attr({...u,x:h,y:0,r:s});const p=e.findByClassName("ellipse-mark-top");p&&p.attr({...u,x:0,y:-f,r:s});const g=e.findByClassName("ellipse-mark-bottom");g&&g.attr({...u,x:0,y:f,r:s})}},"single-shape")},"34ac":function(t,e,n){var r=n("9520"),i=n("1368"),a=n("1a8c"),o=n("dc57"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,h=Object.prototype,f=c.toString,l=h.hasOwnProperty,d=RegExp("^"+f.call(l).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(t){if(!a(t)||i(t))return!1;var e=r(t)?d:u;return e.test(o(t))}t.exports=p},3501:function(t,e,n){const r=n("0519"),i=n("1bb5"),a=n("c02a");function o(t,e){let n=-1;return i.each(t,(t,r)=>{if(e.id===t.id)return n=r,!1}),n}class s extends a{constructor(t){super(t),this.set("removeList",[]),this.set("layoutMethod",this._getLayout())}getDefaultCfg(){const t=super.getDefaultCfg();return t.animate=!0,t}render(){const t=this,e=t.get("data");if(!e)throw new Error("data must be defined first");t.clear(),t.emit("beforerender"),t.refreshLayout(this.get("fitView")),t.emit("afterrender")}addChild(t,e){const n=this;i.isString(e)||(e=e.get("id"));const r=n.findDataById(e);r.children||(r.children=[]),r.children.push(t),n.changeData()}_addChild(t,e,n){const r=this,a=t.data;a.x=t.x,a.y=t.y,a.depth=t.depth;const o=r.addItem("node",a);if(e){if(o.set("parent",e),n){const t=e.get("origin");if(t)o.set("origin",t);else{const t=e.getModel();o.set("origin",{x:t.x,y:t.y})}}const t=e.get("children");t?t.push(o):e.set("children",[o]),r.addItem("edge",{source:e,target:o,id:e.get("id")+":"+o.get("id")})}return i.each(t.children,t=>{r._addChild(t,o,n)}),o}changeData(t){const e=this;t?(e.data(t),e.render()):e.refreshLayout(this.get("fitView"))}updateChild(t,e){const n=this;if(!e||!n.findById(e))return void n.changeData(t);const r=n.findById(e).getModel(),i=n.findById(t.id);if(i){const e=o(r.children,t);r.children[e]=t}else r.children?r.children.push(t):r.children=[i];n.changeData()}_updateChild(t,e,n){const r=this,a=r.findById(t.id);if(!a)return void r._addChild(t,e,n);i.each(t.children,t=>{r._updateChild(t,a,n)});const s=a.get("children");if(s){const e=s.length;if(e>0){let e;for(let i=s.length-1;i>=0;i--)e=s[i].getModel(),-1===o(t.children,e)&&(r._removeChild(e.id,{x:t.x,y:t.y},n),s.splice(i,1))}}const u=a.getModel();n&&a.set("origin",{x:u.x,y:u.y}),a.set("model",t.data),a.updatePosition({x:t.x,y:t.y})}removeChild(t){const e=this,n=e.findById(t);if(!n)return;const r=n.get("parent");if(r&&!r.destroyed){const t=e.findDataById(r.get("id")).children,i=o(t,n.getModel());t.splice(i,1)}e.changeData()}_removeChild(t,e,n){const r=this,a=r.findById(t);if(a)if(i.each(a.get("children"),t=>{r._removeChild(t.getModel().id,e,n)}),n){const t=a.getModel();a.set("to",e),a.set("origin",{x:t.x,y:t.y}),r.get("removeList").push(a)}else r.removeItem(a)}save(){return this.get("data")}findDataById(t,e){const n=this;if(e||(e=n.get("data")),t===e.id)return e;let r=null;return i.each(e.children,e=>e.id===t?(r=e,!1):(r=n.findDataById(t,e),!r&&void 0)),r}changeLayout(t){const e=this;t?(e.set("layout",t),e.set("layoutMethod",e._getLayout()),e.refreshLayout()):console.warn("layout cannot be null")}refreshLayout(t){const e=this,n=e.get("data"),r=e.get("layoutMethod")(n,e.get("layout")),i=e.get("animate"),a=e.get("autoPaint");e.emit("beforerefreshlayout",{data:n,layoutData:r}),e.setAutoPaint(!1),e._updateChild(r,null,i),t&&e.get("viewController")._fitView(),i?e.layoutAnimate(r,null):(e.refresh(),e.paint()),e.setAutoPaint(a),e.emit("afterrefreshlayout",{data:n,layoutData:r})}layoutAnimate(t,e){const n=this;this.setAutoPaint(!1);const r=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach(t=>{const e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"))}),this.get("canvas").animate({onFrame(r){i.traverseTree(t,a=>{const o=n.findById(a.id);if(o){let n=o.get("origin");const s=o.get("model");if(n||(n={x:s.x,y:s.y},o.set("origin",n)),e){const a=e(o,r,n,t);o.set("model",i.mix(s,a))}else s.x=n.x+(a.x-n.x)*r,s.y=n.y+(a.y-n.y)*r}}),i.each(n.get("removeList"),t=>{const e=t.getModel(),n=t.get("origin"),i=t.get("to");e.x=n.x+(i.x-n.x)*r,e.y=n.y+(i.y-n.y)*r}),n.refreshPositions()}},r.duration,r.ease,()=>{i.each(n.getNodes(),t=>{t.set("origin",null)}),i.each(n.get("removeList"),t=>{n.removeItem(t)}),n.set("removeList",[]),r.callback&&r.callback(),n.paint(),this.setAutoPaint(!0),n.emit("afteranimate",{data:t})},r.delay)}stopLayoutAnimate(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1}isLayoutAnimating(){return this.layoutAnimating}_getLayout(){const t=this.get("layout");return t?"function"===typeof t?t:(t.type||(t.type="dendrogram"),t.direction||(t.direction="TB"),t.radial?function(e){const n=r[t.type](e,t);return i.radialLayout(n),n}:function(e){return r[t.type](e,t)}):null}}t.exports=s},3698:function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},"36bd":function(t,e,n){"use strict";var r=n("4bf8"),i=n("77f1"),a=n("9def");t.exports=function(t){var e=r(this),n=a(e.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);while(c>s)e[s++]=t;return e}},"36e0":function(t,e,n){const r={mix:n("503e"),augment:n("8d88"),isString:n("3421"),getAdjMatrix(t,e){const n=t.nodes,r=t.edges,i=[],a=new Map;return n.forEach((t,e)=>{a.set(t.id,e);const n=[];i.push(n)}),r.forEach(t=>{const n=t.source,r=t.target,o=a.get(n),s=a.get(r);i[o][s]=1,e||(i[s][o]=1)}),i},floydWarshall(t){const e=[],n=t.length;for(let r=0;re[t][r]+e[r][i]&&(e[t][i]=e[t][r]+e[r][i]);return e},getEDistance(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},scaleMatrix(t,e){const n=[];return t.forEach(t=>{const r=[];t.forEach(t=>{r.push(t*e)}),n.push(r)}),n}};t.exports=r},3818:function(t,e,n){var r=n("7e64"),i=n("8057"),a=n("32b3"),o=n("5b01"),s=n("0f0f"),u=n("e538"),c=n("4359"),h=n("54eb"),f=n("1041"),l=n("a994"),d=n("1bac"),p=n("42a2"),g=n("c87c"),v=n("c2b6"),m=n("fa21"),y=n("6747"),x=n("0d24"),b=n("cc45"),w=n("1a8c"),_=n("d7ee"),M=n("ec69"),S=n("9934"),k=1,A=2,P=4,C="[object Arguments]",E="[object Array]",I="[object Boolean]",O="[object Date]",T="[object Error]",N="[object Function]",j="[object GeneratorFunction]",B="[object Map]",L="[object Number]",D="[object Object]",R="[object RegExp]",F="[object Set]",Y="[object String]",q="[object Symbol]",z="[object WeakMap]",X="[object ArrayBuffer]",G="[object DataView]",W="[object Float32Array]",U="[object Float64Array]",V="[object Int8Array]",H="[object Int16Array]",Z="[object Int32Array]",$="[object Uint8Array]",Q="[object Uint8ClampedArray]",K="[object Uint16Array]",J="[object Uint32Array]",tt={};function et(t,e,n,E,I,O){var T,B=e&k,L=e&A,R=e&P;if(n&&(T=I?n(t,E,I,O):n(t)),void 0!==T)return T;if(!w(t))return t;var F=y(t);if(F){if(T=g(t),!B)return c(t,T)}else{var Y=p(t),q=Y==N||Y==j;if(x(t))return u(t,B);if(Y==D||Y==C||q&&!I){if(T=L||q?{}:m(t),!B)return L?f(t,s(T,t)):h(t,o(T,t))}else{if(!tt[Y])return I?t:{};T=v(t,Y,B)}}O||(O=new r);var z=O.get(t);if(z)return z;O.set(t,T),_(t)?t.forEach((function(r){T.add(et(r,e,n,r,t,O))})):b(t)&&t.forEach((function(r,i){T.set(i,et(r,e,n,i,t,O))}));var X=R?L?d:l:L?S:M,G=F?void 0:X(t);return i(G||t,(function(r,i){G&&(i=r,r=t[i]),a(T,i,et(r,e,n,i,t,O))})),T}tt[C]=tt[E]=tt[X]=tt[G]=tt[I]=tt[O]=tt[W]=tt[U]=tt[V]=tt[H]=tt[Z]=tt[B]=tt[L]=tt[D]=tt[R]=tt[F]=tt[Y]=tt[q]=tt[$]=tt[Q]=tt[K]=tt[J]=!0,tt[T]=tt[N]=tt[z]=!1,t.exports=et},3852:function(t,e,n){var r=n("96f3"),i=n("e2c0");function a(t,e){return null!=t&&i(t,e,r)}t.exports=a},"38e2":function(t,e,n){var r=n("6f9c"),i=n("1f3a"),a=n("d9f3"),o=n("f352");function s(t,e,n,h){var f=t.children(e),l=t.node(e),d=l?l.borderLeft:void 0,p=l?l.borderRight:void 0,g={};d&&(f=r.filter(f,(function(t){return t!==d&&t!==p})));var v=i(t,f);r.forEach(v,(function(e){if(t.children(e.v).length){var i=s(t,e.v,n,h);g[e.v]=i,r.has(i,"barycenter")&&c(e,i)}}));var m=a(v,n);u(m,g);var y=o(m,h);if(d&&(y.vs=r.flatten([d,y.vs,p],!0),t.predecessors(d).length)){var x=t.node(t.predecessors(d)[0]),b=t.node(t.predecessors(p)[0]);r.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+x.order+b.order)/(y.weight+2),y.weight+=2}return y}function u(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}function c(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}t.exports=s},"39ff":function(t,e,n){var r=n("0b07"),i=n("2b3e"),a=r(i,"WeakMap");t.exports=a},"3a21":function(t,e,n){var r=n("00d0"),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},"3a95":function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("9ed2");r.registerNode("triangle",{options:{size:40,direction:"up",style:{stroke:a.defaultShapeStrokeColor,fill:a.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"},offset:15},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:5,lineWidth:1,fill:"#fff",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16,offset:6}},shapeType:"triangle",labelPosition:"bottom",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r,direction:a}=this.options,{icon:o,direction:s}=n,u=this.getShapeStyle(t),c=i({},r,o,t.icon),h=t.direction||s||a,f=e.addShape("path",{attrs:u}),{width:l,height:d,show:p,offset:g}=c;if(p){let t=-l/2,n=-d/2;"up"!==h&&"down"!==h||(n+=g),"left"!==h&&"right"!==h||(t+=g);const r=e.addShape("image",{attrs:{x:t,y:n,...c},className:"triangle-icon"});r.set("capture",!1)}return this.drawLinkPoints(t,e),f},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r,direction:a}=this.options,{linkPoints:o,direction:s}=n,u=i({},r,o,t.linkPoints),c=t.direction||s||a,{top:h,left:f,right:l,bottom:d,size:p,...g}=u,v=this.getSize(t),m=v[0];if(f){let t=null;const n=m*Math.sin(1/3*Math.PI),r=m*Math.sin(1/3*Math.PI);"up"===c?t=[-r,n]:"down"===c?t=[-r,-n]:"left"===c&&(t=[-r,r-n]),t&&e.addShape("circle",{attrs:{...g,x:t[0],y:t[1],r:p},className:"triangle-mark-left"})}if(l){let t=null;const n=m*Math.sin(1/3*Math.PI),r=m*Math.sin(1/3*Math.PI);"up"===c?t=[r,n]:"down"===c?t=[r,-n]:"right"===c&&(t=[r,r-n]),t&&e.addShape("circle",{attrs:{...g,x:t[0],y:t[1],r:p},className:"triangle-mark-right"})}if(h){let t=null;const n=m*Math.sin(1/3*Math.PI),r=m*Math.sin(1/3*Math.PI);"up"===c?t=[r-n,-n]:"left"===c?t=[r,-n]:"right"===c&&(t=[-r,-n]),t&&e.addShape("circle",{attrs:{...g,x:t[0],y:t[1],r:p},className:"triangle-mark-top"})}if(d){let t=null;const n=m*Math.sin(1/3*Math.PI),r=m*Math.sin(1/3*Math.PI);"down"===c?t=[-r+n,n]:"left"===c?t=[r,n]:"right"===c&&(t=[-r,n]),t&&e.addShape("circle",{attrs:{...g,x:t[0],y:t[1],r:p},className:"triangle-mark-bottom"})}},getPath(t){const e=this.getCustomConfig(t)||{},{direction:n}=this.options,{direction:r}=e,i=t.direction||r||n,a=this.getSize(t),o=a[0],s=o*Math.sin(1/3*Math.PI),u=o*Math.sin(1/3*Math.PI);let c=[["M",-u,s],["L",0,-s],["L",u,s],["Z"]];return"down"===i?c=[["M",-u,-s],["L",u,-s],["L",0,s],["Z"]]:"left"===i?c=[["M",-u,u-s],["L",u,-u],["L",u,u],["Z"]]:"right"===i&&(c=[["M",u,u-s],["L",-u,u],["L",-u,-u],["Z"]]),c},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,a={stroke:t.color},o=i({},n,r,a,t.style),s=this.getPath(t),u={path:s,...o};return u},update(t,e){const n=e.getContainer(),r=this.getCustomConfig(t)||{},{style:a,icon:o,labelCfg:s}=this.options,{style:u,icon:c,labelCfg:h}=r,f=i({},a,u,t.style),l=i({},o,c,t.icon),d=e.get("keyShape"),p=this.getPath(t);d.attr({path:p,...f});const g=i({},s,h,t.labelCfg),v=this.getLabelStyle(t,g,n),m=n.findByClassName("node-label");m&&m.attr({...v});const y=n.findByClassName("triangle-icon");if(y){const{width:t,height:e}=l;y.attr({x:-t/2,y:-e/2,...l})}this.updateLinkPoints(t,n)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r,direction:a}=this.options,{linkPoints:o,direction:s}=n,u=i({},r,o,t.linkPoints),c=t.direction||s||a,{size:h,...f}=u,l=this.getSize(t),d=l[0],p=e.findByClassName("triangle-mark-left");if(p){let t=null;const e=d*Math.sin(1/3*Math.PI),n=d*Math.sin(1/3*Math.PI);"up"===c?t=[-n,e]:"down"===c?t=[-n,-e]:"left"===c&&(t=[-n,n-e]),t&&p.attr({...f,x:t[0],y:t[1],r:h})}const g=e.findByClassName("triangle-mark-right");if(g){let t=null;const e=d*Math.sin(1/3*Math.PI),n=d*Math.sin(1/3*Math.PI);"up"===c?t=[n,e]:"down"===c?t=[n,-e]:"right"===c&&(t=[n,n-e]),t&&g.attr({...f,x:t[0],y:t[1],r:h})}const v=e.findByClassName("triangle-mark-top");if(v){let t=null;const e=d*Math.sin(1/3*Math.PI),n=d*Math.sin(1/3*Math.PI);"up"===c?t=[n-e,-e]:"left"===c?t=[n,-e]:"right"===c&&(t=[-n,-e]),t&&v.attr({...f,x:t[0],y:t[1],r:h})}const m=e.findByClassName("triangle-mark-bottom");if(m){let t=null;const e=d*Math.sin(1/3*Math.PI),n=d*Math.sin(1/3*Math.PI);"down"===c?t=[-n+e,e]:"left"===c?t=[n,e]:"right"===c&&(t=[-n,e]),t&&m.attr({...f,x:t[0],y:t[1],r:h})}}},"single-shape")},"3b0b":function(t,e,n){const r=n("1bb5"),i=n("c424"),a={"drag-canvas":n("594f"),"zoom-canvas":n("e916"),"drag-node":n("7c8f"),"click-select":n("a560"),tooltip:n("59ca"),"edge-tooltip":n("12d7"),"collapse-expand":n("2efd"),"activate-relations":n("7a60"),"brush-select":n("a5d3"),"drag-group":n("e310"),"drag-node-with-group":n("fe51"),"collapse-expand-group":n("f4c8")};r.each(a,(t,e)=>{i.registerBehavior(e,t)}),t.exports=i},"3b4a":function(t,e,n){var r=n("0b07"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},"3b54":function(t,e,n){var r=n("e0ef"),i=n("72fb"),a=n("6dcf");t.exports=function(t,e){return t=r(t),i(e,(function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}})),t}},"3bb4":function(t,e,n){var r=n("08cc"),i=n("ec69");function a(t){var e=i(t),n=e.length;while(n--){var a=e[n],o=t[a];e[n]=[a,o,r(o)]}return e}t.exports=a},"3c9b":function(t,e,n){"use strict";n.r(e),n.d(e,"calcStrLen",(function(){return r})),n.d(e,"fittingString",(function(){return i}));const r=t=>{let e=0;for(let n=0;n0&&t.charCodeAt(n)<128?e++:e+=2;return e},i=(t,e,n)=>{const i=1.3*n;e*=2;const a=r(t)*i,o="…";if(a>e){const n=Math.floor((e-10)/i),r=t.substring(0,n)+o;return r}return t}},"3cbc":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e))if(-1!==e.indexOf("\n")){n=e.split("\n");var i=n.length;t.lineCount=i}else t.lineCount=1;t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){var r=this._getSpaceingY();return n*e+r*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this,e=t._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),e.textArr||this._setAttrText();var r=e.x,i=e.y,a=t.measureText();if(!a)return{minX:r,minY:i,maxX:r,maxY:i};var o=t._getTextHeight(),s=e.textAlign,u=e.textBaseline,c=t.getHitLineWidth(),h={x:r,y:i-o};s&&("end"===s||"right"===s?h.x-=a:"center"===s&&(h.x-=a/2)),u&&("top"===u?h.y+=o:"middle"===u&&(h.y+=o/2)),this.set("startPoint",h);var f=c/2;return{minX:h.x-f,minY:h.y-f,maxX:h.x+a+f,maxY:h.y+o+f}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this,n=e._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,u=n.y;if(t.beginPath(),e.hasStroke()){var c=n.strokeOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),o?e._drawTextArr(t,!1):t.strokeText(a,s,u),t.globalAlpha=1}if(e.hasFill()){var h=n.fillOpacity;r.isNil(h)||1===h||(t.globalAlpha=h),o?e._drawTextArr(t,!0):t.fillText(a,s,u)}i.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,c=this._attrs.y,h=this.getBBox(),f=h.maxY-h.minY;r.each(i,(function(r,i){n=c+i*(s+o)-f+o,"middle"===a&&(n+=f-o-(f-o)/2),"top"===a&&(n+=f-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)}))},measureText:function(){var t,e=this,n=e._attrs,i=n.text,a=n.font,o=n.textArr,s=0;if(!r.isNil(i)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=a,o?r.each(o,(function(e){t=u.measureText(e).width,s{f(t,e)})}const l={getBBox(t,e){const n=t.getBBox();let i={x:n.minX,y:n.minY},a={x:n.maxX,y:n.maxY};if(e){const t=e.getMatrix();i=r.applyMatrix(i,t),a=r.applyMatrix(a,t)}return{minX:i.x,minY:i.y,maxX:a.x,maxY:a.y}},getLoopCfgs(t){const e=t.sourceNode||t.targetNode,n=e.get("group").getMatrix(),r=e.getKeyShape().getBBox(),o=t.loopCfg||{},s=o.dist||2*Math.max(r.width,r.height),u=o.position||a.loopPosition,f=Math.max(r.width,r.height)/2,l=(f+s)/f,d=[n[6],n[7]],p=f*c,g=f*h;let v=[t.startPoint.x,t.startPoint.y],m=[t.endPoint.x,t.endPoint.y];if(v[0]===m[0]&&v[1]===m[1]){switch(u){case"top":v=[d[0]-p,d[1]-g],m=[d[0]+p,d[1]-g];break;case"top-right":v=[d[0]+p,d[1]-g],m=[d[0]+g,d[1]-p];break;case"right":v=[d[0]+g,d[1]-p],m=[d[0]+g,d[1]+p];break;case"bottom-right":v=[d[0]+g,d[1]+p],m=[d[0]+p,d[1]+g];break;case"bottom":v=[d[0]+p,d[1]+g],m=[d[0]-p,d[1]+g];break;case"bottom-left":v=[d[0]-p,d[1]+g],m=[d[0]-g,d[1]+p];break;case"left":v=[d[0]-g,d[1]+p],m=[d[0]-g,d[1]-p];break;case"top-left":v=[d[0]-g,d[1]-p],m=[d[0]-p,d[1]-g];break;default:v=[d[0]-p,d[1]-g],m=[d[0]+p,d[1]-g]}if(!1===o.clockwise){const t=[v[0],v[1]];v=[m[0],m[1]],m=[t[0],t[1]]}}const y=[v[0]-d[0],v[1]-d[1]],x=i.vec2.scale([],y,l),b=[d[0]+x[0],d[1]+x[1]],w=[m[0]-d[0],m[1]-d[1]],_=i.vec2.scale([],w,l),M=[d[0]+_[0],d[1]+_[1]];return t.startPoint={x:v[0],y:v[1]},t.endPoint={x:m[0],y:m[1]},t.controlPoints=[{x:b[0],y:b[1]},{x:M[0],y:M[1]}],t},traverseTree(t,e){"function"===typeof e&&f(t,e)},radialLayout(t,e){const n=["V","TB","BT"],r={x:1/0,y:1/0},i={x:-1/0,y:-1/0};let a="x",s="y";e&&n.indexOf(e)>=0&&(s="x",a="y");let u=0;this.traverseTree(t,t=>{u++,t.x>i.x&&(i.x=t.x),t.xi.y&&(i.y=t.y),t.y{const n=(e[s]-r[s])/h*(2*o-c)+c,i=Math.abs("x"===a?e.x-t.x:e.y-t.y);e.x=i*Math.cos(n),e.y=i*Math.sin(n)}),t},getLabelPosition(t,e,n,r,i){const a=1e-4;let c=[];const h=t.getPoint(e);if(null===h)return{x:0,y:0,angle:0};if(e1-a)c=t.getEndTangent();else{const n=t.getPoint(e+a);c.push([h.x,h.y]),c.push([n.x,n.y])}let f=Math.atan2(c[1][1]-c[0][1],c[1][0]-c[0][0]);if(f<0&&(f+=2*o),n&&(h.x+=u(f)*n,h.y+=s(f)*n),r){let t=f-o/2;f>.5*o&&f<1.5*o&&(t-=o),h.x+=u(t)*r,h.y+=s(t)*r}const l={x:h.x,y:h.y,angle:f};return i?(f>.5*o&&f<1.5*o&&(f-=o),{rotate:f,...l}):l}};t.exports=l},"3ff1":function(t,e,n){var r=n("266a"),i=n("ec69");function a(t){return null==t?[]:r(t,i(t))}t.exports=a},"41c3":function(t,e,n){var r=n("1a8c"),i=n("eac5"),a=n("ec8c"),o=Object.prototype,s=o.hasOwnProperty;function u(t){if(!r(t))return a(t);var e=i(t),n=[];for(var o in t)("constructor"!=o||!e&&s.call(t,o))&&n.push(o);return n}t.exports=u},4245:function(t,e,n){var r=n("1290");function i(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}t.exports=i},42454:function(t,e,n){var r=n("f909"),i=n("2ec1"),a=i((function(t,e,n){r(t,e,n)}));t.exports=a},4284:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n1&&(a*=Math.sqrt(m),o*=Math.sqrt(m));var y=a*a*(v*v)+o*o*(d*d),x=Math.sqrt((a*a*(o*o)-y)/y);n===i&&(x*=-1),isNaN(x)&&(x=0);var b=x*a*v/o,w=x*-o*d/a,_=(c+f)/2+Math.cos(u)*b-Math.sin(u)*w,M=(h+l)/2+Math.sin(u)*b+Math.cos(u)*w,S=g([1,0],[(d-b)/a,(v-w)/o]),k=[(d-b)/a,(v-w)/o],A=[(-1*d-b)/a,(-1*v-w)/o],P=g(k,A);return p(k,A)<=-1&&(P=Math.PI),p(k,A)>=1&&(P=0),0===i&&P>0&&(P-=2*Math.PI),1===i&&P<0&&(P+=2*Math.PI),[t,_,M,a,o,S,P,u,i]}var m=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};r.augment(m,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,a,o,s,u=h.indexOf(n)>=0,c=u?n.toUpperCase():n,d=t,p=e.endPoint,g=d[1],m=d[2];switch(c){default:break;case"M":s=u?f(g,m,p):{x:g,y:m},this.command="M",this.params=[p,s],this.subStart=s,this.endPoint=s;break;case"L":s=u?f(g,m,p):{x:g,y:m},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"H":s=u?f(g,0,p):{x:g,y:p.y},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"V":s=u?f(0,g,p):{x:p.x,y:g},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"Q":u?(i=f(g,m,p),a=f(d[3],d[4],p)):(i={x:g,y:m},a={x:d[3],y:d[4]}),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"T":a=u?f(g,m,p):{x:g,y:m},"Q"===e.command?(i=l(e.params[1],p),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="TL",this.params=[p,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-p.x,a.y-p.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"C":u?(i=f(g,m,p),a=f(d[3],d[4],p),o=f(d[5],d[6],p)):(i={x:g,y:m},a={x:d[3],y:d[4]},o={x:d[5],y:d[6]}),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"S":u?(a=f(g,m,p),o=f(d[3],d[4],p)):(a={x:g,y:m},o={x:d[3],y:d[4]}),"C"===e.command?(i=l(e.params[2],p),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="SQ",this.params=[p,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"A":var y=g,x=m,b=d[3],w=d[4],_=d[5];s=u?f(d[6],d[7],p):{x:d[6],y:d[7]},this.command="A";var M=v(p,s,w,_,y,x,b);this.params=M;var S=e.subStart;this.subStart=S,this.endPoint=s;var k=M[5]%(2*Math.PI);r.isNumberEqual(k,2*Math.PI)&&(k=0);var A=M[6]%(2*Math.PI);r.isNumberEqual(A,2*Math.PI)&&(A=0);var P=.001;this.startTangent=function(){0===_&&(P*=-1);var t=M[3]*Math.cos(k-P)+M[1],e=M[4]*Math.sin(k-P)+M[2];return[t-S.x,e-S.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(k+t+P)+M[1],n=M[4]*Math.sin(k+t-P)+M[2];return[p.x-e,p.y-n]};break;case"Z":this.command="Z",this.params=[p,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,a=r.command,o=r.params,s=r.box;if(s&&!i.box(s.minX,s.maxX,s.minY,s.maxY,t,e))return!1;switch(a){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(o[0].x,o[0].y,o[1].x,o[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,n,t,e);case"C":return i.cubicline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y,n,t,e);case"A":var h=o,f=h[1],l=h[2],d=h[3],p=h[4],g=h[5],v=h[6],m=h[7],y=h[8],x=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;h=[t,e,1];var _=[1,0,0,0,1,0,0,0,1];return c.translate(_,_,[-f,-l]),c.rotate(_,_,-m),c.scale(_,_,[1/b,1/w]),u.transformMat3(h,h,_),i.arcline(0,0,x,g,g+v,1-y,n,h[0],h[1])}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],c=s,h=u,f=o[3],l=o[4],d=o[5],p=o[6],g=o[7],v=o[8],m=f>l?f:l,y=f>l?1:f/l,x=f>l?l/f:1;t.translate(c,h),t.rotate(g),t.scale(y,x),t.arc(0,0,m,d,d+p,1-v),t.scale(1/y,1/x),t.rotate(-g),t.translate(-c,-h);break;case"Z":t.closePath();break}},shortenDraw:function(t,e,n){var r,i,a,o=this.command,s=this.params;switch(o){default:break;case"M":t.moveTo(s[1].x-e,s[1].y-n);break;case"TL":case"L":t.lineTo(s[1].x-e,s[1].y-n);break;case"SQ":case"Q":r=s[1],i=s[2],t.quadraticCurveTo(r.x,r.y,i.x-e,i.y-n);break;case"C":r=s[1],i=s[2],a=s[3],t.bezierCurveTo(r.x,r.y,i.x,i.y,a.x-e,a.y-n);break;case"A":var u=s,c=u[1],h=u[2],f=c,l=h,d=u[3],p=u[4],g=u[5],v=u[6],m=u[7],y=u[8],x=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;t.translate(f,l),t.rotate(m),t.scale(b,w),t.arc(0,0,x,g,g+v,1-y),t.scale(1/b,1/w),t.rotate(-m),t.translate(-f,-l);break;case"Z":t.closePath();break}},getBBox:function(t){var e,n,r,i,u=t/2,c=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(c[0].x,c[1].x)-u,maxX:Math.max(c[0].x,c[1].x)+u,minY:Math.min(c[0].y,c[1].y)-u,maxY:Math.max(c[0].y,c[1].y)+u};break;case"SQ":case"Q":for(n=o.extrema(c[0].x,c[1].x,c[2].x),r=0,i=n.length;rM&&(M=A)}var P=s.yExtrema(m,d,p),C=1/0,E=-1/0,I=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var O=P+r;1===y?xE&&(E=T)}this.box={minX:_-u,maxX:M+u,minY:C-u,maxY:E+u};break}}}),t.exports=m},"49f4":function(t,e,n){var r=n("6044");function i(){this.__data__=r?r(null):{},this.size=0}t.exports=i},"4a80":function(t,e,n){var r=n("5eec"),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(typeof t===typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else while(a.length>=e[s])if(n.push([r].concat(a.splice(0,e[s]))),!e[s])break})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},c=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o),c=e+n*Math.sin(-r*o),h=e+n*Math.sin(-i*o);a=[["M",s,c],["A",n,n,0,+(i-r>180),0,u,h]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},h=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,h=0,f=0;"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],o=i,h=a,f++,r[0]=["M",i,a]);for(var l,d,p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=f,v=t.length;g1&&(_=Math.sqrt(_),r*=_,i*=_);var M=r*r,S=i*i,k=(o===s?-1:1)*Math.sqrt(Math.abs((M*S-M*w*w-S*b*b)/(M*w*w+S*b*b)));p=k*r*w/i+(e+u)/2,g=k*-i*b/r+(n+c)/2,l=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((c-g)/i).toFixed(9)),l=ed&&(l-=2*Math.PI),!s&&d>l&&(d-=2*Math.PI)}var A=d-l;if(Math.abs(A)>v){var P=d,C=u,E=c;d=l+v*(s&&d>l?1:-1),u=p+r*Math.cos(d),c=g+i*Math.sin(d),y=t(u,c,r,i,a,0,s,C,E,[d,P,p,g])}A=d-l;var I=Math.cos(l),O=Math.sin(l),T=Math.cos(d),N=Math.sin(d),j=Math.tan(A/4),B=4/3*r*j,L=4/3*i*j,D=[e,n],R=[e+B*O,n-L*I],F=[u+B*N,c-L*T],Y=[u,c];if(R[0]=2*D[0]-R[0],R[1]=2*D[1]-R[1],h)return[R,F,Y].concat(y);y=[R,F,Y].concat(y).join().split(",");for(var q=[],z=0,X=y.length;z7){t[e].shift();var a=t[e];while(a.length)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y1?1:u<0?0:u;for(var c=u/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p0&&f<1&&l.push(f)}else{var g=c*c-4*h*u,v=Math.sqrt(g);if(!(g<0)){var m=(-c+v)/(2*u);m>0&&m<1&&l.push(m);var y=(-c-v)/(2*u);y>0&&y<1&&l.push(y)}}var x,b=l.length,w=b;while(b--)f=l[b],x=1-f,d[0][b]=x*x*x*t+3*x*x*f*n+3*x*f*f*i+f*f*f*o,d[1][b]=x*x*x*e+3*x*x*f*r+3*x*f*f*a+f*f*f*s;return d[0][w]=t,d[1][w]=e,d[0][w+1]=o,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},b=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),c=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),h=(t-n)*(a-s)-(e-r)*(i-o);if(h){var f=u/h,l=c/h,d=+f.toFixed(2),p=+l.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,o).toFixed(2)||d>+Math.max(i,o).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:l}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},_=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a},M=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:_(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e){return t=M(t),e=M(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},k=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var c=x.apply(null,t);return M(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},A=function(t,e,n,r,i,a,o,s,u){var c=1-u,h=Math.pow(c,3),f=Math.pow(c,2),l=u*u,d=l*u,p=h*t+3*f*u*n+3*c*u*u*i+d*o,g=h*e+3*f*u*r+3*c*u*u*a+d*s,v=t+2*u*(n-t)+l*(i-2*n+t),m=e+2*u*(r-e)+l*(a-2*r+e),y=n+2*u*(i-n)+l*(o-2*i+n),x=r+2*u*(a-r)+l*(s-2*a+r),b=c*t+u*n,w=c*e+u*r,_=c*i+u*o,M=c*a+u*s,S=90-180*Math.atan2(v-y,m-x)/Math.PI;return{x:p,y:g,m:{x:v,y:m},n:{x:y,y:x},start:{x:b,y:w},end:{x:_,y:M},alpha:S}},P=function(t,e,n){var r=k(t),i=k(e);if(!S(r,i))return n?0:[];for(var a=y.apply(0,t),o=y.apply(0,e),s=~~(a/8),u=~~(o/8),c=[],h=[],f={},l=n?0:[],d=0;d=0&&O<=1&&T>=0&&T<=1&&(n?l++:l.push({x:I.x,y:I.y,t1:O,t2:T}))}}return l},C=function(t,e,n){var r,i,a,o,s,u,c,h,f,l;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return h}var T=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(O(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},N=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;f--)o=a[f].index,"add"===a[f].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var l=i-r;if(r0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t};t.exports={parsePathString:s,parsePathArray:v,pathTocurve:p,pathToAbsolute:h,catmullRomToBezier:u,rectPath:_,fillPath:N,fillPathByDiff:D,formatPath:Y,intersection:E}},"4cfe":function(t,e){function n(t){return void 0===t}t.exports=n},"4d8c":function(t,e,n){var r=n("5c69");function i(t){var e=null==t?0:t.length;return e?r(t,1):[]}t.exports=i},"4edf":function(t,e,n){var r=n("d63e"),i=n("9719"),a=function(t,e){var n=[];if(!r(t))return n;var a=-1,o=[],s=t.length;while(++as&&(s=e),nu&&(u=n)}));var c=i/2;return{minX:a-c,minY:o-c,maxX:s+c,maxY:u+c}},createPath:function(t){var e=this,n=e._attrs,i=n.points;i.length<2||(t=t||e.get("context"),t.beginPath(),r.each(i,(function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])})),t.closePath())}}),t.exports=a},"4f17":function(t,e,n){var r=n("df2e");function i(t,e){return r(t,e,"post")}t.exports=i},"4f50":function(t,e,n){var r=n("b760"),i=n("e538"),a=n("c8fe"),o=n("4359"),s=n("fa21"),u=n("d370"),c=n("6747"),h=n("dcbe"),f=n("0d24"),l=n("9520"),d=n("1a8c"),p=n("60ed"),g=n("73ac"),v=n("8adb"),m=n("8de2");function y(t,e,n,y,x,b,w){var _=v(t,n),M=v(e,n),S=w.get(M);if(S)r(t,n,S);else{var k=b?b(_,M,n+"",t,e,w):void 0,A=void 0===k;if(A){var P=c(M),C=!P&&f(M),E=!P&&!C&&g(M);k=M,P||C||E?c(_)?k=_:h(_)?k=o(_):C?(A=!1,k=i(M,!0)):E?(A=!1,k=a(M,!0)):k=[]:p(M)||u(M)?(k=_,u(_)?k=m(_):d(_)&&!l(_)||(k=s(M))):A=!1}A&&(w.set(M,k),x(k,M,y,b,w),w["delete"](M)),r(t,n,k)}}t.exports=y},"4fef":function(t,e,n){const r=n("4651"),i=800;r.registerLayout("fruchterman",{getDefaultCfg(){return{maxIteration:1e3,center:[0,0],gravity:10,speed:1,clustering:!1,clusterGravity:10}},execute(){const t=this,e=t.nodes,n=t.center;if(0===e.length)return;if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);const r=new Map,i=new Map;e.forEach((t,e)=>{r.set(t.id,t),i.set(t.id,e)}),t.nodeMap=r,t.nodeIndexMap=i,t.run()},run(){const t=this,e=t.nodes,n=t.edges,r=t.maxIteration;let a=t.width;a||"undefined"===typeof window||(a=window.innerWidth);let o=t.height;o||"undefined"===typeof o||(o=window.innerHeight);const s=t.center,u=t.nodeMap,c=t.nodeIndexMap,h=a/10,f=Math.sqrt(a*o/(e.length+1)),l=t.gravity,d=t.speed,p=t.clustering,g=new Map;p&&(e.forEach(t=>{if(void 0===g.get(t.cluster)){const e={name:t.cluster,cx:0,cy:0,count:0};g.set(t.cluster,e)}const e=g.get(t.cluster);e.cx+=t.x,e.cy+=t.y,e.count++}),g.forEach(t=>{t.cx/=t.count,t.cy/=t.count}));for(let v=0;v{r[e]={x:0,y:0}}),t.getDisp(e,n,u,c,r,f),p){const n=t.clusterGravity||l;e.forEach((t,e)=>{const i=g.get(t.cluster),a=Math.sqrt((t.x-i.cx)*(t.x-i.cx)+(t.y-i.cy)*(t.y-i.cy)),o=f*n;r[e].x-=o*(t.x-i.cx)/a,r[e].y-=o*(t.y-i.cy)/a}),g.forEach(t=>{t.cx=0,t.cy=0,t.count=0}),e.forEach(t=>{const e=g.get(t.cluster);e.cx+=t.x,e.cy+=t.y,e.count++}),g.forEach(t=>{t.cx/=t.count,t.cy/=t.count})}e.forEach((t,e)=>{const n=.01*f*l;r[e].x-=n*(t.x-s[0]),r[e].y-=n*(t.y-s[1])}),e.forEach((t,e)=>{r[e].dx*=d/i,r[e].dy*=d/i}),e.forEach((t,e)=>{const n=Math.sqrt(r[e].x*r[e].x+r[e].y*r[e].y);if(n>0){const a=Math.min(h*(d/i),n);t.x+=r[e].x/n*a,t.y+=r[e].y/n*a}})}},getDisp(t,e,n,r,i,a){const o=this;o.calRepulsive(t,i,a),o.calAttractive(e,n,r,i,a)},calRepulsive(t,e,n){t.forEach((r,i)=>{e[i]={x:0,y:0},t.forEach((t,a)=>{if(i===a)return;const o=r.x-t.x,s=r.y-t.y;let u=o*o+s*s;0===u&&(u=1);const c=n*n/u;e[i].x+=o*c,e[i].y+=s*c})})},calAttractive(t,e,n,r,i){t.forEach(t=>{const a=n.get(t.source),o=n.get(t.target);if(a===o)return;const s=e.get(t.source),u=e.get(t.target),c=u.x-s.x,h=u.y-s.y,f=Math.sqrt(c*c+h*h),l=f*f/i;r[o].x-=c/f*l,r[o].y-=h/f*l,r[a].x+=c/f*l,r[a].y+=h/f*l})}})},"503e":function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var r=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t};t.exports=r},"50ca":function(t,e,n){var r=n("8057"),i=n("7530"),a=n("242e"),o=n("badf"),s=n("2dcb"),u=n("6747"),c=n("0d24"),h=n("9520"),f=n("1a8c"),l=n("73ac");function d(t,e,n){var d=u(t),p=d||c(t)||l(t);if(e=o(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:f(t)&&h(g)?i(s(t)):{}}return(p?r:a)(t,(function(t,r,i){return e(n,t,r,i)})),n}t.exports=d},"50d8":function(t,e){function n(t,e){var n=-1,r=Array(t);while(++nn?n:t};t.exports=n},5134:function(t,e,n){var r=n("78af"),i=n("4980"),a=Math.PI,o=Math.sin,s=Math.cos,u=Math.atan2,c=10,h=a/3;function f(t,e,n,r,i,f,l){var d,p,g,v,m,y,x;if(!e.fill){var b=e.arrowLength||c,w=e.arrowAngle?e.arrowAngle*a/180:h;x=u(r-f,n-i),m=Math.abs(e.lineWidth*s(x))/2,y=Math.abs(e.lineWidth*o(x))/2,l&&(m=-m,y=-y),d=i+b*s(x+w/2),p=f+b*o(x+w/2),g=i+b*s(x-w/2),v=f+b*o(x-w/2),t.beginPath(),t.moveTo(d-m,p-y),t.lineTo(i-m,f-y),t.lineTo(g-m,v-y),t.moveTo(i-m,f-y),t.lineTo(i+m,f+y),t.moveTo(i,f),t.stroke()}}function l(t){var e,n=[],a=r.parsePath(t.path);if(!Array.isArray(a)||0===a.length||"M"!==a[0][0]&&"m"!==a[0][0])return!1;for(var o=a.length,s=0;s=0&&n[t].splice(i,1),0===n[t].length&&delete n[t]}}},removeEvent:function(t){return"undefined"===typeof t?this._cfg._events={}:delete this._cfg._events[t],this},_getEvents:function(){return this._cfg._events||{}}}),t.exports=o},"51f5":function(t,e,n){var r=n("2b03"),i=n("badf"),a=n("4b17"),o=Math.max;function s(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:a(n);return u<0&&(u=o(s+u,0)),r(t,i(e,3),u)}t.exports=s},5378:function(t,e){const n=800;class r{constructor(t){this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}layout(){const t=this,e=t.positions,n=[],r=t.iterations,i=t.width/10;t.maxDisplace=i,t.disp=n;for(let a=0;a{n[e]={x:0,y:0}}),t.getRepulsion(),t.updatePositions();return e}getRepulsion(){const t=this,e=t.positions,n=t.nodes,r=t.disp,i=t.k,a=t.radii;e.forEach((o,s)=>{r[s]={x:0,y:0},e.forEach((e,u)=>{if(s===u)return;if(a[s]!==a[u])return;const c=o[0]-e[0],h=o[1]-e[1];let f=Math.sqrt(c*c+h*h);if(0===f&&(f=1),f{const r=e[n][0]-e[o][0],i=e[n][1]-e[o][1],a=Math.sqrt(r*r+i*i);let s=i/a,u=-r/a;const c=Math.sqrt(t.x*t.x+t.y*t.y);let h=Math.acos((s*t.x+u*t.y)/c);h>Math.PI/2&&(h-=Math.PI/2,s*=-1,u*=-1);const f=Math.cos(h)*c;t.x=s*f,t.y=u*f}),e.forEach((t,e)=>{r[e].dx*=i/n,r[e].dy*=i/n});const s=t.radii;e.forEach((u,c)=>{if(c===o)return;const h=Math.sqrt(r[c].x*r[c].x+r[c].y*r[c].y);if(h>0&&c!==o){const f=Math.min(t.maxDisplace*(i/n),h);if(u[0]+=r[c].x/h*f,u[1]+=r[c].y/h*f,a){let t=u[0]-e[o][0],n=u[1]-e[o][1];const r=Math.sqrt(t*t+n*n);t=t/r*s[c],n=n/r*s[c],u[0]=e[o][0]+t,u[1]=e[o][1]+n}}})}}t.exports=r},5492:function(t,e,n){var r=n("32b3"),i=n("d70d");function a(t,e){return i(t||[],e||[],r)}t.exports=a},"54eb":function(t,e,n){var r=n("8eeb"),i=n("32f4");function a(t,e){return r(t,i(t),e)}t.exports=a},"55a3":function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},"576cf":function(t,e,n){const r=n("1bb5"),i=n("8d21"),a={source:"start",target:"end"},o="Node",s="Point",u="Anchor";class c extends i{getDefaultCfg(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}}init(){super.init(),this.setSource(this.get("source")),this.setTarget(this.get("target"))}setSource(t){this._setEnd("source",t),this.set("source",t)}setTarget(t){this._setEnd("target",t),this.set("target",t)}getSource(){return this.get("source")}getTarget(){return this.get("target")}update(t){const e=this.get("model");r.mix(e,t),this.updateShape(),this.afterUpdate(),this.clearCache()}updatePosition(){}_setEnd(t,e){const n=a[t]+s,i=t+o,u=this.get(i);u&&u.removeEdge(this),r.isPlainObject(e)?(this.set(n,e),this.set(i,null)):(e.addEdge(this),this.set(i,e),this.set(n,null))}_getLinkPoint(t,e,n){const i=a[t]+s,c=t+o;let h=this.get(i);if(!h){const i=this.get(c),a=t+u,o=this._getPrePoint(t,n),s=e[a];r.isNil(s)||(h=i.getLinkPointByAnchor(s)),h=h||i.getLinkPoint(o),r.isNil(h.index)||this.set(t+"AnchorIndex",h.index)}return h}_getPrePoint(t,e){if(e&&e.length){const n="source"===t?0:e.length-1;return e[n]}const n="source"===t?"target":"source";return this._getEndPoint(n)}_getControlPointsByCenter(t){const e=this._getEndPoint("source"),n=this._getEndPoint("target"),r=this.get("shapeFactory");return r.getControlPoints(t.shape,{startPoint:e,endPoint:n})}_getEndPoint(t){const e=t+o,n=a[t]+s,r=this.get(e);return r?r.get("model"):this.get(n)}_getEndCenter(t){const e=t+o,n=a[t]+s,r=this.get(e);if(r){const t=r.getBBox();return{x:t.centerX,y:t.centerY}}return this.get(n)}getShapeCfg(t){const e=this,n=e.get("linkCenter"),r=super.getShapeCfg(t);if(n)r.startPoint=e._getEndCenter("source"),r.endPoint=e._getEndCenter("target");else{const n=r.controlPoints||e._getControlPointsByCenter(r);r.startPoint=e._getLinkPoint("source",t,n),r.endPoint=e._getLinkPoint("target",t,n)}return r.sourceNode=e.get("sourceNode"),r.targetNode=e.get("targetNode"),r}getModel(){const t=this.get("model"),e=r.mix({},t),n=this.get("source"+o),i=this.get("target"+o);return n?(e.source=n.get("id"),delete e["source"+o]):e.source=this.get("start"+s),i?(e.target=i.get("id"),delete e["target"+o]):e.target=this.get("end"+s),e}destroy(){const t=this.get("source"+o),e=this.get("target"+o);t&&!t.destroyed&&t.removeEdge(this),e&&!e.destroyed&&e.removeEdge(this),super.destroy()}}t.exports=c},"57a5":function(t,e,n){var r=n("91e9"),i=r(Object.keys,Object);t.exports=i},"57dc":function(t,e){function n(t,e){return t>e}t.exports=n},5830:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=o,e.clone=s,e.fromValues=u,e.copy=c,e.set=h,e.add=f,e.subtract=l,e.multiply=d,e.divide=p,e.ceil=g,e.floor=v,e.min=m,e.max=y,e.round=x,e.scale=b,e.scaleAndAdd=w,e.distance=_,e.squaredDistance=M,e.length=S,e.squaredLength=k,e.negate=A,e.inverse=P,e.normalize=C,e.dot=E,e.cross=I,e.lerp=O,e.random=T,e.transformMat2=N,e.transformMat2d=j,e.transformMat3=B,e.transformMat4=L,e.rotate=D,e.angle=R,e.str=F,e.exactEquals=Y,e.equals=q;var r=n("8d60"),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function s(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function u(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function c(t,e){return t[0]=e[0],t[1]=e[1],t}function h(t,e,n){return t[0]=e,t[1]=n,t}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function g(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function v(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function x(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function w(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function S(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function k(t){var e=t[0],n=t[1];return e*e+n*n}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function C(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]}function I(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function O(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t}function T(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function N(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function j(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function B(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function D(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t}function R(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function Y(t,e){return t[0]===e[0]&&t[1]===e[1]}function q(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))}e.len=S,e.sub=l,e.mul=d,e.div=p,e.dist=_,e.sqrDist=M,e.sqrLen=k,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function f(t){for(var e=[],n=0;n=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!r.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(r.isArray(t))r.each(t,(function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)})),e._cfg.children=n.concat(t);else{var i=t,a=i.get("parent");a&&a.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){var e=this.get("children");return e.indexOf(t)>-1},getChildByIndex:function(t){var e=this.get("children");return e[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=this,e=1/0,n=-1/0,i=1/0,a=-1/0,o=t.get("children");o.length>0?r.each(o,(function(t){if(t.get("visible")){if(t.isGroup&&0===t.get("children").length)return;var r=t.getBBox();if(!r)return!0;var o=[r.minX,r.minY,1],s=[r.minX,r.maxY,1],u=[r.maxX,r.minY,1],c=[r.maxX,r.maxY,1];t.apply(o),t.apply(s),t.apply(u),t.apply(c);var h=Math.min(o[0],s[0],u[0],c[0]),f=Math.max(o[0],s[0],u[0],c[0]),l=Math.min(o[1],s[1],u[1],c[1]),d=Math.max(o[1],s[1],u[1],c[1]);hn&&(n=f),la&&(a=d)}})):(e=0,n=0,i=0,a=0);var s={minX:e,minY:i,maxX:n,maxY:a};return s.x=s.minX,s.y=s.minY,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY,s},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return r.each(t,(function(t,e){return t[s]=e,t})),t.sort(c((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this},findById:function(t){return this.find((function(e){return e.get("id")===t}))},find:function(t){if(r.isString(t))return this.findById(t);var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1})),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},findBy:function(t){var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1})),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},getShape:function(t,e){var n,r=this,i=r._attrs.clip,a=r._cfg.children;if(i){var o=[t,e,1];i.invert(o,r.get("canvas")),i.isPointInPath(o[0],o[1])&&(n=h(a,t,e))}else n=h(a,t,e);return n},clearTotalMatrix:function(){var t=this.get("totalMatrix");if(t){this.setSilent("totalMatrix",null);for(var e=this._cfg.children,n=0;n=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this}},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))},clone:function(){var t=this,e=t._cfg.children,n=t._attrs,i={};r.each(n,(function(t,e){i[e]="matrix"===e?f(n[e]):n[e]}));var a=new l({attrs:i,canvas:t.get("canvas")});return r.each(e,(function(t){a.add(t.clone())})),r.each(u,(function(e){a._cfg[e]=t._cfg[e]})),a}}),t.exports=l},"58f7":function(t,e){function n(t,e,n,r,i){return i(t,(function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)})),n}t.exports=n},"594f":function(t,e,n){const r=n("1bb5"),i=Math.abs,a=10,o=document.body,s=[16,17,18];t.exports={getDefaultCfg(){return{direction:"both"}},getEvents(){return{"canvas:mousedown":"onMouseDown","canvas:mousemove":"onMouseMove","canvas:mouseup":"onMouseUp","canvas:click":"onMouseUp","canvas:mouseleave":"onOutOfRange",keyup:"onKeyUp",keydown:"onKeyDown"}},updateViewport(t){const e=this.origin,n=+t.clientX,r=+t.clientY;if(isNaN(n)||isNaN(r))return;let i=n-e.x,a=r-e.y;"x"===this.get("direction")?a=0:"y"===this.get("direction")&&(i=0),this.origin={x:n,y:r},this.graph.translate(i,a),this.graph.paint()},onMouseDown(t){this.keydown||(this.origin={x:t.clientX,y:t.clientY},this.dragging=!1)},onMouseMove(t){if(this.keydown)return;t=r.cloneEvent(t);const e=this.graph;if(this.origin){if(this.origin&&!this.dragging){if(i(this.origin.x-t.clientX)+i(this.origin.y-t.clientY){r.target!==n&&e.onMouseUp(t)};this.fn=r,o.addEventListener("mouseup",r,!1)}},onKeyDown(t){const e=t.keyCode||t.which;s.indexOf(e)>-1?this.keydown=!0:this.keydown=!1},onKeyUp(){this.keydown=!1}}},"59ca":function(t,e,n){const r=n("1bb5"),i=n("9ceb");t.exports=r.mix({getDefaultCfg(){return{item:"node",formatText(t){return t.label}}},getEvents(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove"}}},i)},"5a21":function(t,e,n){var r=n("1c6a"),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");e.appendChild(n);var a=r.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var o=i.exec(t),s=o[2];n.setAttribute("href",s);var u=new Image;function c(){e.setAttribute("width",u.width),e.setAttribute("height",u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?c():(u.onload=c,u.src=u.src),this}var e=t.prototype;return e.match=function(t,e){return this.cfg===e},t}();t.exports=a},"5a3a":function(t,e,n){var r=n("1cba"),i=r();t.exports=i},"5b01":function(t,e,n){var r=n("8eeb"),i=n("ec69");function a(t,e){return t&&r(e,i(e),t)}t.exports=a},"5b70":function(t,e,n){const r=n("e34f"),i=n("4651"),a=n("3a21");i.registerLayout("dagre",{getDefaultCfg(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc(){return 50},ranksepFunc(){return 50},nodesep:50,ranksep:50,controlPoints:!0}},execute(){const t=this,e=t.nodes,n=t.edges,i=new r.graphlib.Graph,o=t.nodeSize;let s;s=o?a(o)?()=>o:()=>[o,o]:t=>t.size?a(t.size)?t.size:[t.size,t.size]:[40,40];let u=t.nodesep;t.nodesepFunc&&(u=t.nodesepFunc);let c=t.ranksep;t.ranksepFunc&&(c=t.ranksepFunc);const h=t.rankdir;let f;"LR"!==h&&"RL"!==h||(u=t.ranksep,t.ranksepFunc&&(u=t.ranksepFunc),c=t.nodesep,t.nodesepFunc&&(c=t.nodesepFunc)),i.setDefaultEdgeLabel((function(){return{}})),i.setGraph(t),e.forEach(t=>{const e=s(t),n=u(t),r=c(t),a=e[0]+2*n,o=e[1]+2*r;i.setNode(t.id,{width:a,height:o})}),n.forEach(t=>{i.setEdge(t.source,t.target)}),r.layout(i),i.nodes().forEach((t,n)=>{f=i.node(t),e[n].x=f.x,e[n].y=f.y}),i.edges().forEach((e,r)=>{f=i.edge(e),n[r].startPoint=f.points[0],n[r].endPoint=f.points[f.points.length-1],t.controlPoints&&(n[r].controlPoints=f.points.slice(1,f.points.length-1))})}})},"5c69":function(t,e,n){var r=n("087d"),i=n("0621");function a(t,e,n,o,s){var u=-1,c=t.length;n||(n=i),s||(s=[]);while(++u0&&n(h)?e>1?a(h,e-1,n,o,s):r(s,h):o||(s[s.length]=h)}return s}t.exports=a},"5ca00":function(t,e,n){var r=n("badf"),i=n("30c9"),a=n("ec69");function o(t){return function(e,n,o){var s=Object(e);if(!i(e)){var u=r(n,3);e=a(e),n=function(t){return u(s[t],t,s)}}var c=t(e,n,o);return c>-1?s[u?e[c]:c]:void 0}}t.exports=o},"5cce":function(t,e,n){t.exports={painter:n("fdbc")}},"5d89":function(t,e,n){var r=n("f8af");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}t.exports=i},"5d9e":function(t,e,n){var r=n("00d0"),i=function(t){return r(t,"Number")};t.exports=i},"5e2e":function(t,e,n){var r=n("28c9"),i=n("69d5"),a=n("b4c0"),o=n("fba5"),s=n("67ca");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e0){if(n=u.removeMin(),r.has(s,n))o.setEdge(n,s[n]);else{if(h)throw new Error("Input graph is not connected: "+t);h=!0}t.nodeEdges(n).forEach(c)}return o}t.exports=o},"642a":function(t,e,n){var r=n("966f"),i=n("3bb4"),a=n("20ec");function o(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}t.exports=o},6560:function(t,e,n){var r=n("1c6a");function i(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function a(t,e,n,r){var i,a;return r?tn&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function o(t,e,n,i){var o=0;return n-e>=2*Math.PI&&(o=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+o,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&tn?t:a(t,e,n):e<=n?ee||tt.x&&(g=t.x),vt.y&&(m=t.y),y'})),n}function u(t,e){var n,a,o=i.exec(t),u=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),c=o[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=u&&u{r[e.get(t.source)]+=1,r[e.get(t.target)]+=1}),r}function a(t,e,n,r){t.forEach((e,n)=>{t[n].children=[],t[n].parent=[]}),r?e.forEach(e=>{const r=n.get(e.source),i=n.get(e.target);t[r].children.push(t[i]),t[i].parent.push(t[r])}):e.forEach(e=>{const r=n.get(e.source),i=n.get(e.target);t[r].children.push(t[i]),t[i].children.push(t[r])})}function o(t,e,n){const r=n.length;for(let i=0;ie.degree?1:0}r.registerLayout("circular",{getDefaultCfg(){return{center:[0,0],radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},execute(){const t=this,e=t.nodes,n=t.edges,r=e.length,a=t.center;if(0===r)return;if(1===r)return e[0].x=a[0],void(e[0].y=a[1]);let o=t.radius,s=t.startRadius,u=t.endRadius;const c=t.divisions,h=t.startAngle,f=t.endAngle,l=(f-h)/r,d=new Map;e.forEach((t,e)=>{d.set(t.id,e)}),t.nodeMap=d;const p=i(e.length,d,n);t.degrees=p;let g=t.width;g||"undefined"===typeof window||(g=window.innerWidth);let v=t.height;v||"undefined"===typeof v||(v=window.innerHeight),o||s||u?!s&&u?s=u:s&&!u&&(u=s):o=v>g?g/2:v/2;const m=t.angleRatio,y=l*m;t.astep=y;const x=t.ordering;let b=[];b="topology"===x?t.topologyOrdering():"degree"===x?t.degreeOrdering():e;const w=t.clockwise,_=Math.ceil(r/c);for(let i=0;i{if(0!==a)if(a!==c-1&&e[a]===e[a+1]&&!o(s[h],t,n)||!0===u[a]){const t=s[h].children;let n=!1;for(let c=0;c{t.degree=r[e],n.push(t)}),n.sort(s),n}})},"72fb":function(t,e,n){var r=n("d285"),i=n("3a21"),a=function(t,e){if(t){var n=void 0;if(i(t)){for(var a=0,o=t.length;au.lim&&(c=u,h=!0);var f=r.filter(e.edges(),(function(e){return h===w(t,t.node(e.v),c)&&h!==w(t,t.node(e.w),c)}));return r.minBy(f,(function(t){return a(e,t)}))}function y(t,e,n,r){var i=n.v,a=n.w;t.removeEdge(i,a),t.setEdge(r.v,r.w,{}),p(t),f(t,e),x(t,e)}function x(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}function b(t,e,n){return t.hasEdge(e,n)}function w(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=h,h.initLowLimValues=p,h.initCutValues=f,h.calcCutValue=d,h.leaveEdge=v,h.enterEdge=m,h.exchangeEdges=y},"74f4":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return v})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return y}));var r,i,a=0,o=0,s=0,u=1e3,c=0,h=0,f=0,l="object"===typeof performance&&performance.now?performance:Date,d="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return h||(d(g),h=l.now()+f)}function g(){h=0}function v(){this._call=this._time=this._next=null}function m(t,e,n){var r=new v;return r.restart(t,e,n),r}function y(){p(),++a;var t,e=r;while(e)(t=h-e._time)>=0&&e._call.call(null,t),e=e._next;--a}function x(){h=(c=l.now())+f,a=o=0;try{y()}finally{a=0,w(),h=0}}function b(){var t=l.now(),e=t-c;e>u&&(f-=e,c=t)}function w(){var t,e,n=r,a=1/0;while(n)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(a)}function _(t){if(!a){o&&(o=clearTimeout(o));var e=t-h;e>24?(t<1/0&&(o=setTimeout(x,t-l.now()-f)),s&&(s=clearInterval(s))):(s||(c=l.now(),s=setInterval(b,u)),a=1,d(x))}}v.prototype=m.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},"750a":function(t,e,n){var r=n("c869"),i=n("bcdf"),a=n("ac41"),o=1/0,s=r&&1/a(new r([,-0]))[1]==o?function(t){return new r(t)}:i;t.exports=s},7514:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),a="find",o=!0;a in[]&&Array(1)[a]((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(a)},7530:function(t,e,n){var r=n("1a8c"),i=Object.create,a=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=a},7582:function(t,e,n){const{cloneDeep:r,groupBy:i,merge:a}=n("2ef0");t.exports={groupMapNodes:{},nodeArr:[],flatToTree(t,e="id",n="parentId"){const r="children",i=[],a=[],{groups:o}=t;return o.forEach(t=>{i[t[e]]=t}),o.forEach(t=>{const e=i[t[n]];e?(!e[r]&&(e[r]=[]),e[r].push(t)):a.push(t)}),a},addNodesToParentNode(t,e){const n=t=>{if(t.forEach(t=>{t.children?(this.nodeArr.push({id:t.id,parentId:t.parentId}),this.addNodesToParentNode(t.children,e)):this.nodeArr.push({id:t.id,parentId:t.parentId})}),this.nodeArr.length>0){const t=e=>{if(0===e.length)return;const n=e.shift(),i=r(e);this.groupMapNodes[n.id]=i,t(e)};t(this.nodeArr)}this.nodeArr.length=0};return n(t),this.groupMapNodes},getAllNodeInGroups(t){const e=i(t.groups,"id"),n=i(t.groups,"parentId"),r={};for(const i in n){if(!i)continue;const t=n[i],a=e[i];if(a&&t){const e=[...t,...a];r[i]=e}else t&&(r[i]=t)}const o=a({},e,r),s={};for(const i in o){if(!i||"undefined"===i)continue;const t=o[i].map(t=>t.id);s[i]=t}const u={};for(const i in s){if(!i||"undefined"===i)continue;const e=s[i],n=[];for(const t of e){const e=o[t].map(t=>t.id);n.push(...e)}const r=t.nodes.filter(t=>n.indexOf(t.groupId)>-1).map(t=>t.id);u[i]=r}return u}}},"758e":function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},"76dd":function(t,e,n){var r=n("ce86");function i(t){return null==t?"":r(t)}t.exports=i},"76e9":function(t,e,n){var r=n("ffd6");function i(t,e,n){var i=-1,a=t.length;while(++i1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}}},"78ea":function(t,e,n){var r=n("1c6a"),i=n("02db"),a=n("ad2d"),o=n("cba2"),s=n("fd07"),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){var t=this.get("destroyed");t||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},7948:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n{const e=t.get("id");return o===e});0===s.length?this.target=e:a.length>1?a.forEach(t=>{const e=t.hasLocked();e||this.targets.push(t)}):this.targets.push(e),this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}},onDrag(t){if(!this.origin)return;if(!this.get("shouldUpdate").call(this,t))return;const e=this.graph,n=e.get("autoPaint");e.setAutoPaint(!1),this.targets.length>0?this.enableDelegate?this._updateDelegate(t):this.targets.forEach(e=>{this._update(e,t,this.enableDelegate)}):this._update(this.target,t,this.enableDelegate),e.paint(),e.setAutoPaint(n)},onDragEnd(t){if(!this.origin||!this.shouldEnd.call(this,t))return;const e=this.graph,n=e.get("autoPaint");if(e.setAutoPaint(!1),this.shape&&(this.shape.remove(),this.shape=null),this.target){const t=this.target.get("delegateShape");t&&(t.remove(),this.target.set("delegateShape",null))}this.targets.length>0?this.targets.forEach(e=>this._update(e,t)):this.target&&this._update(this.target,t),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.target=null;const r=this.fn;r&&(o.removeEventListener("mouseup",r,!1),this.fn=null),e.paint(),e.setAutoPaint(n)},onOutOfRange(t){const e=this;if(this.origin){const n=e.graph.get("canvas").get("el"),r=r=>{r.target!==n&&e.onDragEnd(t)};this.fn=r,o.addEventListener("mouseup",r,!1)}},_update(t,e,n){const r=this.origin,i=t.get("model"),a=t.get("id");this.point[a]||(this.point[a]={x:i.x,y:i.y});const o=e.x-r.x+this.point[a].x,s=e.y-r.y+this.point[a].y;if(n)return void this._updateDelegate(e,o,s);const u={x:o,y:s};this.get("updateEdge")?this.graph.updateItem(t,u):t.updatePosition(u)},_updateDelegate(t,e,n){const r=t.item.get("keyShape").getBBox();if(this.shape)if(this.targets.length>0){const e=t.x-this.origin.x+this.originPoint.minX,n=t.y-this.origin.y+this.originPoint.minY;this.shape.attr({x:e,y:n})}else this.target&&this.shape.attr({x:e+r.x,y:n+r.y});else{const t=this.graph.get("group"),o=i({},a,this.delegateStyle);if(this.targets.length>0){const{x:e,y:n,width:r,height:i,minX:a,minY:s}=this.calculationGroupPosition();this.originPoint={x:e,y:n,width:r,height:i,minX:a,minY:s},this.shape=t.addShape("rect",{attrs:{width:r,height:i,x:e,y:n,...o}})}else this.target&&(this.shape=t.addShape("rect",{attrs:{width:r.width,height:r.height,x:e+r.x,y:n+r.y,...o}}),this.target.set("delegateShape",this.shape));this.shape.set("capture",!1)}},calculationGroupPosition(){const t=this.graph,e=t.findAllByState("node","selected");let n=1/0,i=-1/0,a=1/0,o=-1/0;for(const f of e){const e=r(f)?t.findById(f):f,s=e.getBBox(),{minX:u,minY:c,maxX:h,maxY:l}=s;ui&&(i=h),l>o&&(o=l)}const s=Math.floor(n)-20,u=Math.floor(a)+10,c=Math.ceil(i)-s,h=Math.ceil(o)-u;return{x:s,y:u,width:c,height:h,minX:n,minY:a}}}},"7d1f":function(t,e,n){var r=n("087d"),i=n("6747");function a(t,e,n){var a=e(t);return i(t)?a:r(a,n(t))}t.exports=a},"7dec":function(t,e,n){var r=n("1c6a"),i=r.vec2;function a(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function o(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function s(t,e,n,r,o,s,u,c,h,f,l){var d,p,g,v,m,y,x,b,w=.005,_=1/0,M=1e-4,S=[h,f];for(p=0;p<1;p+=.05)g=[a(t,n,o,u,p),a(e,r,s,c,p)],v=i.squaredDistance(S,g),v<_&&(d=p,_=v);_=1/0;for(var k=0;k<32;k++){if(w=0&&v<_?(d=x,_=v):(y=[a(t,n,o,u,b),a(e,r,s,c,b)],m=i.squaredDistance(S,y),b<=1&&m<_?(d=b,_=m):w*=.5)}return l&&(l.x=a(t,n,o,u,d),l.y=a(e,r,s,c,d)),Math.sqrt(_)}function u(t,e,n,i){var a,o,s,u=3*t-9*e+9*n-3*i,c=6*e-12*n+6*i,h=3*n-3*i,f=[];if(r.isNumberEqual(u,0))r.isNumberEqual(c,0)||(a=-h/c,a>=0&&a<=1&&f.push(a));else{var l=c*c-4*u*h;r.isNumberEqual(l,0)?f.push(-c/(2*u)):l>0&&(s=Math.sqrt(l),a=(-c+s)/(2*u),o=(-c-s)/(2*u),a>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n}function h(t,e,n,i,a,o,s,u,h){r.isNil(h)&&(h=1),h=h>1?1:h<0?0:h;for(var f=h/2,l=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,v=0;v{e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})},runMDS(){const t=this,e=2,n=t.scaledDistances,r=a.mul(-.5,a.pow(n,2));function i(t){return a.div(a.add.apply(null,t),t.length)}const o=i(r),s=i(a.transpose(r)),u=i(o);for(let a=0;a{t.forEach(t=>{t!==1/0&&e{n.forEach((n,i)=>{n===1/0&&(t[r][i]=e)})})}})},"82bd":function(t,e){t.exports=function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}},"830e":function(t,e,n){var r=n("5830"),i=n("51207");r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=r},8327:function(t,e,n){var r=n("1c6a"),i=n("78af"),a=i.parseRadius,o=n("188c"),s=n("bfa1"),u={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},c=.3,h={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},f={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new s(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()}));try{e._drawChildren(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i)}finally{e.toDraw=!1}}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this._drawChildren(t)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(n.tobeRemoved&&(r.each(n.tobeRemoved,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t))},e._drawChildren=function(t){var e,n=this,r=t._cfg.children;if(r)for(var i=0;is?1:0,l=Math.abs(u-s)>Math.PI?1:0,d=n.rs,p=n.re,g=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+h.x+","+h.y),o.push("L "+v.x+","+v.y),o.push("A "+d+","+d+",0,"+l+","+(1===f?0:1)+","+g.x+","+g.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+p+","+p+",0,"+l+","+f+","+h.x+","+h.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=this,n=t._attrs,r=t._cfg.attrs,i=t._cfg.el;for(var a in this._setFont(t),n)if(n[a]!==r[a]){if("text"===a){e._setText(t,""+n[a]);continue}if("fillStyle"===a||"strokeStyle"===a){this._setColor(t,a,n[a]);continue}if("matrix"===a){this._setTransform(t);continue}h[a]&&i.setAttribute(h[a],n[a])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",f[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",l[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,(function(t,e){0===e?"alphabetic"===i?u+=''+t+"":"top"===i?u+=''+t+"":"middle"===i?u+=''+t+"":"bottom"===i?u+=''+t+"":"hanging"===i&&(u+=''+t+""):u+=''+t+""})),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(h[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(h[e],"url(#"+o+")")}else r.setAttribute(h[e],n);else r.setAttribute(h[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();t.exports=d},8563:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("6560"),o=n("5134");function s(t,e,n){return t+e*Math.cos(n)}function u(t,e,n){return t+e*Math.sin(n)}var c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,s=t.clockwise,u=this.getHitLineWidth(),c=u/2,h=a.box(e,n,r,i,o,s);return h.minX-=c,h.minY-=c,h.maxX+=c,h.maxY+=c,h},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.startAngle,i=t.r,a=t.clockwise,o=Math.PI/180;a&&(o*=-1);var c=[],h=s(e,i,r+o),f=u(n,i,r+o),l=s(e,i,r),d=u(n,i,r);return c.push([h,f]),c.push([l,d]),c},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.endAngle,i=t.r,a=t.clockwise,o=Math.PI/180,c=[];a&&(o*=-1);var h=s(e,i,r+o),f=u(n,i,r+o),l=s(e,i,r),d=u(n,i,r);return c.push([l,d]),c.push([h,f]),c},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();o.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();o.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=c},"85e3":function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},8604:function(t,e,n){var r=n("26e8"),i=n("e2c0");function a(t,e){return null!=t&&i(t,e,r)}t.exports=a},"872a":function(t,e,n){var r=n("3b4a");function i(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}t.exports=i},8817:function(t,e,n){var r=n("6f9c"),i=n("17d5").Graph;function a(t,e,n){var a=o(t),s=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var o=t.node(i),u=t.parent(i);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(s.setNode(i),s.setParent(i,u||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=s.edge(n,i),o=r.isUndefined(a)?0:a.weight;s.setEdge(n,i,{weight:t.edge(e).weight+o})})),r.has(o,"minRank")&&s.setNode(i,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))})),s}function o(t){var e;while(t.hasNode(e=r.uniqueId("_root")));return e}t.exports=a},"89d9":function(t,e,n){var r=n("656b"),i=n("159a"),a=n("e2e4");function o(t,e,n){var o=-1,s=e.length,u={};while(++o{t&&t(),a.refreshPositions()};c.tick=e;const n=c.onLayoutEnd;c.onLayoutEnd=()=>{n&&n(),a.emit("afterlayout")}}try{h=new r[n](c)}catch(f){return console.warn("The layout method: "+c+" does not exist! Please specify it first."),!1}return h.init(e.data),a.emit("beforelayout"),h.execute(),e.layoutMethod=h,"force"!==n&&(a.emit("afterlayout"),e.refreshLayout()),!1}_layoutWithWorker(t,e){const{nodes:n,edges:r}=t,{layoutCfg:i,graph:a}=this,o=this._getWorker(),{workerData:u}=this;if(!o)return!1;u.requestId=null,u.requestId2=null,u.currentTick=null,u.currentTickData=null,a.emit("beforelayout");const c=f(i,t=>"function"!==typeof t);return o.postMessage({type:s.RUN,nodes:n,edges:r,layoutCfg:c}),o.onmessage=n=>{this._handleWorkerMessage(n,t,e)},!0}_handleWorkerMessage(t,e,n){const{graph:r,workerData:i,layoutCfg:a}=this,o=t.data,{type:c}=o,f=()=>{a.onTick&&a.onTick()},l=()=>{a.onLayoutEnd&&a.onLayoutEnd(),r.emit("afterlayout")};switch(c){case s.TICK:i.currentTick=o.currentTick,i.currentTickData=o,i.requestId||(i.requestId=u.requestAnimationFrame((function(){h(e,o),r.refreshPositions(),f(),1===o.currentTick&&n&&n(),o.currentTick===o.totalTicks?l():i.currentTick===o.totalTicks&&(i.requestId2=u.requestAnimationFrame((function(){h(e,i.currentTickData),r.refreshPositions(),i.requestId2=null,f(),l()}))),i.requestId=null})));break;case s.END:null==i.currentTick&&(h(e,o),this.refreshLayout(),n&&n(),r.emit("afterlayout"));break;case s.ERROR:break;default:break}}refreshLayout(){const t=this,e=t.graph;e.get("animate")?e.positionsAnimate():e.refreshPositions()}updateLayoutCfg(t){const e=this,n=e.graph;e.layoutType=t.type;const r=e.layoutMethod;e.data=e.setDataFromGraph(),this._stopWorker(),t.workerEnabled&&this._layoutWithWorker(e.data,null)||(r.init(e.data),r.updateCfg(t),n.emit("beforelayout"),r.execute(),"force"!==e.layoutType&&n.emit("afterlayout"),e.refreshLayout())}changeLayout(t){const e=this;e.layoutType=t,e.layoutCfg=e.graph.get("layout")||{},e.layoutCfg.type=t;const n=e.layoutMethod;n&&n.destroy(),e.layout()}changeData(){const t=this,e=t.layoutMethod;e&&e.destroy(),t.layout()}setDataFromGraph(){const t=this,e=[],n=[],r=t.graph.getNodes(),i=t.graph.getEdges();r.forEach(t=>{const n=t.getModel();e.push(n)}),i.forEach(t=>{const e=t.getModel();n.push(e)});const a={nodes:e,edges:n};return"fruchtermanGroup"===t.layoutType&&(a.graph=t.graph),a}relayout(){const t=this,e=t.graph,n=t.layoutMethod;"force"===t.layoutType&&(n.ticking=!1,n.forceSimulation.stop()),e.emit("beforelayout"),n.execute(),"force"!==t.layoutType&&e.emit("afterlayout"),t.refreshLayout()}layoutAnimate(){}_getLayout(){}moveToZero(){const t=this,e=t.graph,n=e.get("data"),r=n.nodes;if(void 0===r[0].x||null===r[0].x||isNaN(r[0].x))return;const i=[0,0];r.forEach(t=>{i[0]+=t.x,i[1]+=t.y}),i[0]/=r.length,i[1]/=r.length,r.forEach(t=>{t.x-=i[0],t.y-=i[1]})}initPositions(t,e){e&&e.forEach(e=>{e.x=t[0]+Math.random(),e.y=t[1]+Math.random()})}destroy(){const t=this;t.graph=null;const e=t.layoutMethod;e&&e.destroy();const{worker:n}=this;n&&(n.terminate(),this.worker=null),t.destroyed=!0}}function h(t,e){const{nodes:n}=t,{nodes:r}=e;n.forEach((t,e)=>{t.x=r[e].x,t.y=r[e].y})}function f(t,e){const n={};if(t&&"object"===typeof t){for(const r in t)t.hasOwnProperty(r)&&e(t[r])&&(n[r]=t[r]);return n}return t}t.exports=c},"8c55":function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph,a=n("b50e");function o(t,e){var n={};function i(e,i){var a=0,o=0,s=e.length,h=r.last(i);return r.forEach(i,(function(e,f){var l=u(t,e),d=l?t.node(l).order:s;(l||e===h)&&(r.forEach(i.slice(o,f+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(os)&&c(n,e,u)}))}))}function a(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(a=t.node(c[0]).order,i(n,s,u,o,a),s=u,o=a)}i(n,s,n.length,a,e.length)})),n}return r.reduce(e,a),n}function u(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function h(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function f(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length){u=r.sortBy(u,(function(t){return s[t]}));for(var c=(u.length-1)/2,f=Math.floor(c),l=Math.ceil(c);f<=l;++f){var d=u[f];o[t]===t&&e{c.indexOf(n)<0&&(e[n]=t)}),e}}_resetStates(t,e){const n=this,i=n.get("states");r.each(i,r=>{t.setState(e,r,!0,n)})}getStates(){return this.get("states")}hasState(t){return this.get("states").indexOf(t)>=0}getStateStyle(t){const e=this,n=a[e.getType()+s][t],i=this.get("styles"),o=i&&i[t],c=t+u;return r.mix({},n,o,e.get(c))}getOriginStyle(){return this.get("originStyle")}getCurrentStatesStyle(){const t=this,e=r.mix({},t.getOriginStyle());return r.each(t.getStates(),n=>{r.mix(e,t.getStateStyle(n))}),e}setState(t,e){const n=this.get("states"),r=this.get("shapeFactory"),i=n.indexOf(t);if(e){if(i>-1)return;n.push(t)}else i>-1&&n.splice(i,1);if(r){const n=this.get("model");r.setState(n.shape,t,e,this)}}clearStates(t){const e=this,n=e.getStates(),i=e.get("shapeFactory"),a=e.get("model").shape;if(!t)return e.set("states",[]),void i.setState(a,n[0],!1,e);r.isString(t)&&(t=[t]);const o=n.filter(n=>(i.setState(a,n,!1,e),!(t.indexOf(n)>=0)));e.set("states",o)}getContainer(){return this.get("group")}getKeyShape(){return this.get("keyShape")}getModel(){return this.get("model")}getType(){return this.get("type")}beforeDraw(){}afterDraw(){}getShapeCfg(t){const e=this.get("styles");if(e&&e.default){const n=r.mix({},t);return n.style=r.mix({},e.default,t.style),n}return t}refresh(){const t=this.get("model");this.updatePosition(t),this.updateShape(),this.afterUpdate(),this.clearCache()}update(t){const e=this.get("model"),n={x:e.x,y:e.y};r.mix(e,t);const i=this._isOnlyMove(t);i?this.updatePosition(e):(n.x===e.x&&n.y===e.y||this.updatePosition(e),this.updateShape()),this.afterUpdate(),this.clearCache()}updateShape(){const t=this.get("shapeFactory"),e=this.get("model"),n=e.shape;if(t.shouldUpdate(n)&&n===this.get("currentShape")){const r=this.getShapeCfg(e);t.update(n,r,this)}else this.draw();this.set("originStyle",this.getKeyShapeStyle()),this._resetStates(t,n)}updatePosition(t){const e=this.get("model"),n=r.isNil(t.x)?e.x:t.x,i=r.isNil(t.y)?e.y:t.y,a=this.get("group");r.isNil(n)||r.isNil(i)||(a.resetMatrix(),a.translate(n,i),e.x=n,e.y=i,this.clearCache())}afterUpdate(){}clearCache(){this.set(o,null)}draw(){this.beforeDraw(),this._drawInner(),this.afterDraw()}getBBox(){let t=this.get(o);return t||(t=this._calculateBBox(),this.set(o,t)),t}toFront(){this.get("group").toFront()}toBack(){this.get("group").toBack()}show(){this.changeVisibility(!0)}hide(){this.changeVisibility(!1)}changeVisibility(t){const e=this.get("group");t?e.show():e.hide(),this.set("visible",t)}enableCapture(t){const e=this.get("group");e&&e.attr("capture",t)}isVisible(){return this.get("visible")}destroy(){if(!this.destroyed){const t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.remove(),this._cfg=null,this.destroyed=!0}}}t.exports=h},"8d60":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=i,e.toRadian=o,e.equals=s;var r=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!==typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;function i(t){e.ARRAY_TYPE=t}var a=Math.PI/180;function o(t){return t*a}function s(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}},"8d88":function(t,e,n){var r=n("06bb"),i=n("61e7"),a=n("503e"),o=function(t){for(var e=i(arguments),n=1;n-1}t.exports=i},"8de2":function(t,e,n){var r=n("8eeb"),i=n("9934");function a(t){return r(t,i(t))}t.exports=a},"8eeb":function(t,e,n){var r=n("32b3"),i=n("872a");function a(t,e,n,a){var o=!n;n||(n={});var s=-1,u=e.length;while(++s0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function O(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function T(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),h=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*h,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*h,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*h,t}function N(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,c=s*o,h=3*a*s,f=3*u*o,l=u*a;return t[0]=e[0]*c+n[0]*h+r[0]*f+i[0]*l,t[1]=e[1]*c+n[1]*h+r[1]*f+i[1]*l,t[2]=e[2]*c+n[2]*h+r[2]*f+i[2]*l,t}function j(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t}function B(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function L(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function D(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],c=e[2],h=i*c-a*u,f=a*s-r*c,l=r*u-i*s,d=i*l-a*f,p=a*h-r*l,g=r*f-i*h,v=2*o;return h*=v,f*=v,l*=v,d*=2,p*=2,g*=2,t[0]=s+h+d,t[1]=u+f+p,t[2]=c+l+g,t}function R(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function F(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function Y(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function q(t,e){var n=c(t[0],t[1],t[2]),r=c(e[0],e[1],e[2]);C(n,n),C(r,r);var i=E(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)}function z(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function X(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))}e.sub=d,e.mul=p,e.div=g,e.dist=M,e.sqrDist=S,e.len=u,e.sqrLen=k,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s2?e[2]:void 0;c&&a(e[0],e[1],c)&&(r=1);while(++nu){var c=s;s=u,u=c}return s+o+u+o+(r.isUndefined(a)?i:a)}function f(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function l(t,e){return h(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},s.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},s.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},s.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=a,this._children[t]={},this._children[a][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return r.has(this._nodes,t)},s.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=a;else{e+="";for(var n=e;!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==a)return e}},s.prototype.children=function(t){if(r.isUndefined(t)&&(t=a),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===a)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},s.prototype.isLeaf=function(t){var e;return e=this.isDirected()?this.successors(t):this.neighbors(t),0===e.length},s.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function a(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:a(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,a(t))})),e},s.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},s.prototype.setEdge=function(){var t,e,n,i,a=!1,o=arguments[0];"object"===typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var s=h(this._isDirected,t,e,n);if(r.has(this._edgeLabels,s))return a&&(this._edgeLabels[s]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=a?i:this._defaultEdgeLabelFn(t,e,n);var c=f(this._isDirected,t,e,n);return t=c.v,e=c.w,Object.freeze(c),this._edgeObjs[s]=c,u(this._preds[e],t),u(this._sucs[t],e),this._in[e][s]=c,this._out[t][s]=c,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):h(this._isDirected,t,e,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?l(this._isDirected,arguments[0]):h(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},s.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):h(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[e],t),c(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},s.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},s.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"96f3":function(t,e){var n=Object.prototype,r=n.hasOwnProperty;function i(t,e){return null!=t&&r.call(t,e)}t.exports=i},9719:function(t,e,n){var r=n("d63e"),i=Array.prototype.splice,a=function(t,e){if(!r(t))return[];var n=t?e.length:0,a=n-1;while(n--){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t};t.exports=a},"97d3":function(t,e,n){var r=n("48a0"),i=n("30c9");function a(t,e){var n=-1,a=i(t)?Array(t.length):[];return r(t,(function(t,r,i){a[++n]=e(t,r,i)})),a}t.exports=a},"98dc":function(t,e,n){var r=n("76dd"),i=0;function a(t){var e=++i;return r(t)+e}t.exports=a},9934:function(t,e,n){var r=n("6fcd"),i=n("41c3"),a=n("30c9");function o(t){return a(t)?r(t,!0):i(t)}t.exports=o},9948:function(t,e,n){var r=n("72af"),i=n("1304"),a=n("9934");function o(t,e){return null==t?t:r(t,i(e),a)}t.exports=o},"99cd":function(t,e){function n(t){return function(e,n,r){var i=-1,a=Object(e),o=r(e),s=o.length;while(s--){var u=o[t?s:++i];if(!1===n(a[u],u,a))break}return e}}t.exports=n},"99d3":function(t,e,n){(function(t){var r=n("585a"),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i,s=o&&r.process,u=function(){try{var t=a&&a.require&&a.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=u}).call(this,n("62e4")(t))},"9aa7":function(t,e,n){const r=n("4651"),i=n("36e0"),a=n("5378"),o=n("9021"),s=n("3a21"),u=n("5d9e");function c(t){const e=t.length,n=t[0].length,r=[];for(let i=0;i{t.id!==e||(n=r)}),n}r.registerLayout("radial",{getDefaultCfg(){return{center:[0,0],maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200}},execute(){const t=this,e=t.nodes,n=t.edges,r=t.center;if(0===e.length)return;if(1===e.length)return e[0].x=r[0],void(e[0].y=r[1]);const f=t.linkDistance;let l=t.focusNode;if(i.isString(l)){let n=!1;for(let r=0;rr[0]?r[0]:y-r[0],w=x-r[1]>r[1]?r[1]:x-r[1];0===b&&(b=y/2),0===w&&(w=x/2);const _=w>b?b:w,M=Math.max(...m),S=[];m.forEach((e,n)=>{t.unitRadius||(t.unitRadius=_/M),S[n]=e*t.unitRadius}),t.radii=S;const k=t.eIdealDisMatrix(g,f,S);t.eIdealDistances=k;const A=c(k);t.weights=A;const P=new o({distances:k,linkDistance:f,dimension:2});let C=P.layout();C.forEach(t=>{isNaN(t[0])&&(t[0]=Math.random()*f),isNaN(t[1])&&(t[1]=Math.random()*f)}),t.positions=C,C.forEach((t,n)=>{e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]}),C.forEach(t=>{t[0]-=C[d][0],t[1]-=C[d][1]}),t.run();const E=t.preventOverlap,I=t.nodeSize;let O;const T=t.strictRadial;if(E){const n=t.nodeSpacing;let r;r=u(n)?()=>n:"function"===typeof n?n:()=>0,O=I?s(I)?t=>{const e=I[0]>I[1]?I[0]:I[1];return e+r(t)}:t=>I+r(t):t=>{if(t.size){if(s(t.size)){const e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e+r(t)}return t.size+r(t)}return 10+r(t)};const i=new a({nodeSizeFunc:O,adjMatrix:p,positions:C,radii:S,height:x,width:y,strictRadial:T,focusID:d,iterations:t.maxPreventOverlapIteration||200,k:C.length/4.5,nodes:e});C=i.layout()}C.forEach((t,n)=>{e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})},run(){const t=this,e=t.maxIteration,n=t.positions,r=t.weights,i=t.eIdealDistances,a=t.radii;for(let o=0;o<=e;o++){const s=o/e;t.oneIteration(s,n,a,i,r)}},oneIteration(t,e,n,r,a){const o=this,s=1-t,u=o.focusIndex;e.forEach((o,c)=>{const h=i.getEDistance(o,[0,0]),f=0===h?0:1/h;if(c===u)return;let l=0,d=0,p=0;e.forEach((t,e)=>{if(c===e)return;const n=i.getEDistance(o,t),s=0===n?0:1/n,u=r[e][c];p+=a[c][e],l+=a[c][e]*(t[0]+u*(o[0]-t[0])*s),d+=a[c][e]*(t[1]+u*(o[1]-t[1])*s)});const g=0===n[c]?0:1/n[c];p*=s,p+=t*Math.pow(g,2),l*=s,l+=t*g*o[0]*f,o[0]=l/p,d*=s,d+=t*g*o[1]*f,o[1]=d/p})},eIdealDisMatrix(){const t=this,e=t.distances,n=t.linkDistance,r=t.radii,i=t.unitRadius,a=[];return e.forEach((t,e)=>{const o=[];t.forEach((t,a)=>{if(e===a)o.push(0);else if(r[e]===r[a])o.push(t*n/(r[e]/i));else{const e=(n+i)/2;o.push(t*e)}}),a.push(o)}),a},handleAbnormalMatrix(t,e){const n=t.length;for(let r=0;rn?t[e][r]:n);return n}})},"9aa8":function(t,e,n){var r=n("1c6a"),i=n("4875"),a={arc:n("6560"),ellipse:n("4590"),line:n("c4bc")},o=r.createDom(''),s=o.getContext("2d");function u(t,e,n){return n.createPath(s),s.isPointInPath(t,e)}var c=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,h=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,a,o,s,u,c,h,t,e)},h=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?i.circle(r,a,o,t,e)||i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e):u?i.circle(r,a,o,t,e):!!c&&i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e)},f=function(t,e){var n=this._attrs,a=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,c=n.rx,h=n.ry,f=this.getHitLineWidth(),l=c>h?c:h,d=c>h?1:c/h,p=c>h?h/c:1,g=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[d,p]),r.mat3.translate(v,v,[s,u]);var m=r.mat3.invert([],v);return r.vec3.transformMat3(g,g,m),a&&o?i.circle(0,0,l,g[0],g[1])||i.arcline(0,0,l,0,2*Math.PI,!1,f,g[0],g[1]):a?i.circle(0,0,l,g[0],g[1]):!!o&&i.arcline(0,0,l,0,2*Math.PI,!1,f,g[0],g[1])},l=function(t,e){var n=this,o=n.hasFill(),s=n.hasStroke(),u=n._attrs,c=u.x,h=u.y,f=u.rs,l=u.re,d=u.startAngle,p=u.endAngle,g=u.clockwise,v=[1,0],m=[t-c,e-h],y=r.vec2.angleTo(v,m);function x(){var t=a.arc.nearAngle(y,d,p,g);if(r.isNumberEqual(y,t)){var e=r.vec2.squaredLength(m);if(f*f<=e&&e<=l*l)return!0}return!1}function b(){var r=n.getHitLineWidth(),a={x:Math.cos(d)*f+c,y:Math.sin(d)*f+h},o={x:Math.cos(d)*l+c,y:Math.sin(d)*l+h},s={x:Math.cos(p)*f+c,y:Math.sin(p)*f+h},u={x:Math.cos(p)*l+c,y:Math.sin(p)*l+h};return!!i.line(a.x,a.y,o.x,o.y,r,t,e)||(!!i.line(s.x,s.y,u.x,u.y,r,t,e)||(!!i.arcline(c,h,f,d,p,g,r,t,e)||!!i.arcline(c,h,l,d,p,g,r,t,e)))}return o&&s?x()||b():o?x():!!s&&b()},d=function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,t,e)},p=function(t,e){var n=this._attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,a,o,s,u,t,e)},g=function(t,e){var n=this,i=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function s(){if(!r.isEmpty(i)){for(var a=n.getHitLineWidth(),o=0,s=i.length;o=3&&s.push(a[0]),i.polyline(s,o,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},m=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,a,o+s/2,t,e)},y=function(t,e){var n=this,r=n._attrs;if(n.hasStroke()){var a=r.points;if(a.length<2)return!1;var o=r.lineWidth;return i.polyline(a,o,t,e)}return!1},x=function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.x,o=r.y,s=r.width,u=r.height,c=r.radius,h=n.getHitLineWidth();if(0===c){var f=h/2;return i.line(a-f,o,a+s+f,o,h,t,e)||i.line(a+s,o-f,a+s,o+u+f,h,t,e)||i.line(a+s+f,o+u,a-f,o+u,h,t,e)||i.line(a,o+u+f,a,o-f,h,t,e)}return i.line(a+c,o,a+s-c,o,h,t,e)||i.line(a+s,o+c,a+s,o+u-c,h,t,e)||i.line(a+s-c,o+u,a+c,o+u,h,t,e)||i.line(a,o+u-c,a,o+c,h,t,e)||i.arcline(a+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,h,t,e)||i.arcline(a+s-c,o+u-c,c,0,.5*Math.PI,!1,h,t,e)||i.arcline(a+c,o+u-c,c,.5*Math.PI,Math.PI,!1,h,t,e)||i.arcline(a+c,o+c,c,Math.PI,1.5*Math.PI,!1,h,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},b=function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},w=function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},_={arc:c,circle:h,dom:w,ellipse:f,fan:l,image:d,line:p,path:g,marker:m,polygon:v,polyline:y,rect:x,text:b};t.exports={isPointInPath:function(t,e){var n=_[this.type];return!!n&&n.call(this,t,e)}}},"9aff":function(t,e,n){var r=n("9638"),i=n("30c9"),a=n("c0983"),o=n("1a8c");function s(t,e,n){if(!o(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&a(e,n.length):"string"==s&&e in n)&&r(n[e],t)}t.exports=s},"9b02":function(t,e,n){var r=n("656b");function i(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}t.exports=i},"9ceb":function(t,e,n){const r=n("1bb5"),i=12;t.exports={onMouseEnter(t){const e=this;if(!e.shouldBegin(t))return;const n=t.item;e.currentTarget=n,e.showTooltip(t),e.graph.emit("tooltipchange",{item:t.item,action:"show"})},onMouseMove(t){this.shouldUpdate(t)?this.currentTarget&&t.item===this.currentTarget&&this.updatePosition(t):this.hideTooltip()},onMouseLeave(t){this.shouldEnd(t)&&(this.hideTooltip(),this.graph.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null)},showTooltip(t){const e=this;if(!t.item)return;let n=e.container;n||(n=e._createTooltip(e.graph.get("canvas")),e.container=n);const i=e.formatText(t.item.get("model"),t);n.innerHTML=i,this.updatePosition(t),r.modifyCSS(this.container,{visibility:"visible"})},hideTooltip(){r.modifyCSS(this.container,{visibility:"hidden"})},updatePosition(t){const e=this.width,n=this.height,a=this.container;let o=t.canvasX,s=t.canvasY;const u=a.getBoundingClientRect();o>e/2?o-=u.width:o+=i,s>n/2?s-=u.height:s+=i;const c=o+"px",h=s+"px";r.modifyCSS(this.container,{left:c,top:h,visibility:"visible"})},_createTooltip(t){const e=t.get("el");e.style.position="relative";const n=r.createDom('
');return e.parentNode.appendChild(n),r.modifyCSS(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,n}}},"9d1d":function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("9ed2");r.registerNode("star",{options:{size:60,style:{stroke:a.defaultShapeStrokeColor,fill:a.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"},offset:0},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,left:!1,leftBottom:!1,rightBottom:!1,size:3,lineWidth:1,fill:"#fff",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16}},shapeType:"star",labelPosition:"center",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r}=this.options,{icon:a}=n,o=this.getShapeStyle(t),s=i({},r,a,t.icon),u=e.addShape("path",{attrs:o}),{width:c,height:h,show:f}=s;if(f){const t=e.addShape("image",{attrs:{x:-c/2,y:-h/2,...s},className:"star-icon"});t.set("capture",!1)}return this.drawLinkPoints(t,e),u},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,leftBottom:h,rightBottom:f,size:l,...d}=o,p=this.getSize(t),g=p[0];if(c){const t=Math.cos(.1*Math.PI)*g,n=Math.sin(.1*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-right"})}if(s){const t=Math.cos(.5*Math.PI)*g,n=Math.sin(.5*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-top"})}if(u){const t=Math.cos(.9*Math.PI)*g,n=Math.sin(.9*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-left"})}if(h){const t=Math.cos(1.3*Math.PI)*g,n=Math.sin(1.3*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-left-bottom"})}if(f){const t=Math.cos(1.7*Math.PI)*g,n=Math.sin(1.7*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-right-bottom"})}},getPath(t){const e=this.getCustomConfig(t)||{},{innerR:n}=e,r=this.getSize(t),i=r[0],a=3*i/8,o=t.innerR||n||a,s=[];for(let u=0;u<5;u++){const t=Math.cos((18+72*u)/180*Math.PI)*i,e=Math.sin((18+72*u)/180*Math.PI)*i,n=Math.cos((54+72*u)/180*Math.PI)*o,r=Math.sin((54+72*u)/180*Math.PI)*o;0===u?s.push(["M",t,-e]):s.push(["L",t,-e]),s.push(["L",n,-r])}return s.push(["Z"]),s},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,a={stroke:t.color},o=i({},n,r,a,t.style),s=this.getPath(t),u={path:s,...o};return u},update(t,e){const n=e.getContainer(),r=this.getCustomConfig(t)||{},{style:a,icon:o,labelCfg:s}=this.options,{style:u,icon:c,labelCfg:h}=r,f=i({},a,u,t.style),l=i({},o,c,t.icon),d=e.get("keyShape"),p=this.getPath(t);d.attr({path:p,...f});const g=i({},s,h,t.labelCfg),v=this.getLabelStyle(t,g,n),m=n.findByClassName("node-label");m&&m.attr({...v});const y=n.findByClassName("star-icon");if(y){const{width:t,height:e}=l;y.attr({x:-t/2,y:-e/2,...l})}this.updateLinkPoints(t,n)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,...u}=o,c=this.getSize(t),h=c[0],f=e.findByClassName("star-mark-right");if(f){const t=Math.cos(.1*Math.PI)*h,e=Math.sin(.1*Math.PI)*h;f.attr({...u,x:t,y:-e,r:s})}const l=e.findByClassName("star-mark-top");if(l){const t=Math.cos(.5*Math.PI)*h,e=Math.sin(.5*Math.PI)*h;l.attr({...u,x:t,y:-e,r:s})}const d=e.findByClassName("star-mark-left");if(d){const t=Math.cos(.9*Math.PI)*h,e=Math.sin(.9*Math.PI)*h;d.attr({...u,x:t,y:-e,r:s})}const p=e.findByClassName("star-mark-left-bottom");if(p){const t=Math.cos(1.3*Math.PI)*h,e=Math.sin(1.3*Math.PI)*h;p.attr({...u,x:t,y:-e,r:s})}const g=e.findByClassName("star-mark-right-bottom");if(g){const t=Math.cos(1.7*Math.PI)*h,e=Math.sin(1.7*Math.PI)*h;g.attr({...u,x:t,y:-e,r:s})}}},"single-shape")},"9d67":function(t,e,n){const r=n("9ed2"),i=n("b0b3"),a=n("bcd0"),o=n("e00d"),s=n("3b0b"),u={Graph:n("c02a"),TreeGraph:n("3501"),Util:n("1bb5"),G:i,Global:r,Shape:a,Layout:o,registerNode:a.registerNode,registerEdge:a.registerEdge,registerBehavior:s.registerBehavior,registerLayout:o.registerLayout,version:r.version};t.exports=u},"9dfc":function(t,e,n){const r=n("1249"),i=n("1bb5"),a=n("9ed2"),o=n("15e8");r.registerFactory("node",{defaultShapeType:"circle"});const s=i.mix({},o,{itemType:"node",shapeType:"",labelPosition:"center",getSize(t){const e=this.getCustomConfig(t)||{};let n=t.size||e.size||this.options.size||a.defaultNode.size;return i.isArray(n)||(n=[n,n]),n},getLabelStyleByPosition(t,e){const n=e.position||this.labelPosition;if("center"===n)return{x:0,y:0};let r=e.offset;i.isNil(r)&&(r=a.nodeLabel.offset);const o=this.getSize(t),s=o[0],u=o[1];let c;switch(n){case"top":c={x:0,y:0-u/2-r,textBaseline:"bottom"};break;case"bottom":c={x:0,y:u/2+r,textBaseline:"top"};break;case"left":c={x:0-s/2-r,y:0,textAlign:"right"};break;default:c={x:s/2+r,y:0,textAlign:"left"};break}return c},drawShape(t,e){const n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r});return i}});r.registerNode("single-shape",s)},"9e86":function(t,e,n){var r=n("872a"),i=n("242e"),a=n("badf");function o(t,e){var n={};return e=a(e,3),i(t,(function(t,i,a){r(n,i,e(t,i,a))})),n}t.exports=o},"9ed2":function(t,e){t.exports={version:"3.1.10",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",customGroupContainerClassName:"custom-group-container",delegateContainerClassName:"delegate-container",defaultShapeFillColor:"#91d5ff",defaultShapeStrokeColor:"#91d5ff",defaultNode:{shape:"circle",style:{fill:"#fff"},size:40,color:"#333"},defaultEdge:{shape:"line",style:{},size:1,color:"#333"},nodeLabel:{style:{fill:"#595959",textAlign:"center",textBaseline:"middle"},offset:5},edgeLabel:{style:{fill:"#595959",textAlign:"center",textBaseline:"middle"}},nodeStateStyle:{active:{fillOpacity:.8},selected:{lineWidth:2}},edgeStateStyle:{active:{strokeOpacity:.8},selected:{lineWidth:2}},loopPosition:"top",delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]}}},"9edc":function(t,e,n){var r=n("1c6a"),i=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},"9f57":function(t,e,n){var r=n("1c6a"),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},"9f74":function(t,e,n){var r=n("48a0");function i(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}t.exports=i},a029:function(t,e,n){var r=n("087d"),i=n("2dcb"),a=n("32f4"),o=n("d327"),s=Object.getOwnPropertySymbols,u=s?function(t){var e=[];while(t)r(e,a(t)),t=i(t);return e}:o;t.exports=u},a1b0:function(t,e,n){const r=n("1bb5"),i=16;let a=null;class o{constructor(t){this.graph=t,this.cachedStates={enabled:{},disabled:{}}}updateState(t,e,n){if(t.destroyed)return;const r=this,o=r.cachedStates,s=o.enabled,u=o.disabled;n?(r._checkCache(t,e,u),r._cacheState(t,e,s)):(r._checkCache(t,e,s),r._cacheState(t,e,u)),a&&clearTimeout(a),a=setTimeout(()=>{a=null,r.updateGraphStates()},i)}updateStates(t,e,n){const i=this;r.isString(e)?i.updateState(t,e,n):e.forEach(e=>{i.updateState(t,e,n)})}_checkCache(t,e,n){if(!n[e])return;const r=n[e].indexOf(t);r>=0&&n[e].splice(r,1)}_cacheState(t,e,n){n[e]||(n[e]=[]),n[e].push(t)}updateGraphStates(){const t=this.graph.get("states"),e=this.cachedStates;r.each(e.disabled,(e,n)=>{t[n]&&(t[n]=t[n].filter(t=>e.indexOf(t)<0&&!e.destroyed))}),r.each(e.enabled,(e,n)=>{if(t[n]){const r={};t[n].forEach(t=>{t.destroyed||(r[t.get("id")]=!0)}),e.forEach(e=>{if(!e.destroyed){const i=e.get("id");r[i]||(r[i]=!0,t[n].push(e))}})}else t[n]=e}),this.graph.emit("graphstatechange",{states:t}),this.cachedStates={enabled:{},disabled:{}}}destroy(){this.graph=null,this.cachedStates=null,a&&clearTimeout(a),a=null,this.destroyed=!0}}t.exports=o},a2be:function(t,e,n){var r=n("d612"),i=n("4284"),a=n("c584"),o=1,s=2;function u(t,e,n,u,c,h){var f=n&o,l=t.length,d=e.length;if(l!=d&&!(f&&d>l))return!1;var p=h.get(t),g=h.get(e);if(p&&g)return p==e&&g==t;var v=-1,m=!0,y=n&s?new r:void 0;h.set(t,e),h.set(e,t);while(++v0){if(a=u.removeMin(),o=s[a],o.distance===Number.POSITIVE_INFINITY)break;r(a).forEach(c)}return s}},a524:function(t,e,n){var r=n("4245");function i(t){return r(this,t).has(t)}t.exports=i},a560:function(t,e,n){const r=n("1bb5"),i="shift",a=["shift","ctrl","alt"];t.exports={getDefaultCfg(){return{multiple:!0,trigger:i}},getEvents(){return this.multiple?{"node:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","canvas:click":"onCanvasClick"}},onClick(t){const e=this,n=t.item,i=e.graph,a=i.get("autoPaint");if(i.setAutoPaint(!1),!e.keydown||!e.multiple){const t=i.findAllByState("node","selected");r.each(t,t=>{t!==n&&i.setItemState(t,"selected",!1)})}n.hasState("selected")?(e.shouldUpdate.call(e,t)&&i.setItemState(n,"selected",!1),i.emit("nodeselectchange",{target:n,select:!1})):(e.shouldUpdate.call(e,t)&&i.setItemState(n,"selected",!0),i.emit("nodeselectchange",{target:n,select:!0})),i.setAutoPaint(a),i.paint()},onCanvasClick(){const t=this.graph,e=t.get("autoPaint");t.setAutoPaint(!1);const n=t.findAllByState("node","selected");r.each(n,e=>{t.setItemState(e,"selected",!1)});const i=t.findAllByState("edge","selected");r.each(i,e=>t.setItemState(e,"selected",!1)),t.paint(),t.setAutoPaint(e)},onKeyDown(t){const e=t.key;a.indexOf(e.toLowerCase()>-1)?this.keydown=!0:this.keydown=!1},onKeyUp(){this.keydown=!1}}},a5d3:function(t,e){const n=Math.min,r=Math.max,i=Math.abs,a="shift",o=["drag","shift","ctrl","alt","control"];t.exports={getDefaultCfg(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect(){},onDeselect(){},selectedState:"selected",trigger:a,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents(){let t;return o.indexOf(this.trigger.toLowerCase())>-1?t=this.trigger:(t=a,console.warn("Behavior brush-select的trigger参数不合法,请输入drag、shift、ctrl或alt")),"drag"===t?{mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp","canvas:click":"clearStates"}:{mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown(t){const{item:e}=t;if(e)return;if("drag"!==this.trigger&&!this.keydown)return;this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates();let n=this.brush;n||(n=this._createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0},onMouseMove(t){this.dragging&&("drag"===this.trigger||this.keydown)&&(this._updateBrush(t),this.graph.paint())},onMouseUp(t){if(!this.brush&&!this.dragging)return;if("drag"!==this.trigger&&!this.keydown)return;const e=this.graph,n=e.get("autoPaint");e.setAutoPaint(!1),this.brush.destroy(),this.brush=null,this._getSelectedNodes(t),this.dragging=!1,this.graph.paint(),e.setAutoPaint(n)},clearStates(){const t=this.graph,e=t.get("autoPaint");t.setAutoPaint(!1);const n=this.selectedState,r=t.findAllByState("node",n),i=t.findAllByState("edge",n);r.forEach(e=>t.setItemState(e,n,!1)),i.forEach(e=>t.setItemState(e,n,!1)),this.selectedNodes=[],this.selectedEdges=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),t.emit("nodeselectchange",{targets:{nodes:[],edges:[]},select:!1}),t.paint(),t.setAutoPaint(e)},_getSelectedNodes(t){const e=this.graph,i=this.selectedState,a=this.originPoint,o={x:t.x,y:t.y},s=e.getPointByCanvas(a.x,a.y),u=n(o.x,s.x),c=r(o.x,s.x),h=n(o.y,s.y),f=r(o.y,s.y),l=[],d=this.shouldUpdate,p=[];e.getNodes().forEach(t=>{const n=t.getBBox();if(n.centerX>=u&&n.centerX<=c&&n.centerY>=h&&n.centerY<=f&&d(t,"select")){l.push(t);const n=t.getModel();p.push(n.id),e.setItemState(t,i,!0)}});const g=[];this.includeEdges&&l.forEach(t=>{const n=t.getEdges();n.forEach(t=>{const n=t.getModel(),{source:r,target:i}=n;p.includes(r)&&p.includes(i)&&d(t,"select")&&(g.push(t),e.setItemState(t,this.selectedState,!0))})}),this.selectedEdges=g,this.selectedNodes=l,this.onSelect&&this.onSelect(l,g),e.emit("nodeselectchange",{targets:{nodes:l,edges:g},select:!0})},_createBrush(){const t=this,e=t.graph.get("canvas").addShape("rect",{attrs:t.brushStyle,capture:!1});return this.brush=e,e},_updateBrush(t){const e=this.originPoint;this.brush.attr({width:i(t.canvasX-e.x),height:i(t.canvasY-e.y),x:n(t.canvasX,e.x),y:n(t.canvasY,e.y)})},onKeyDown(t){const e=t.key;e&&e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1},onKeyUp(){this.brush&&(this.brush.destroy(),this.brush=null,this.dragging=!1),this.keydown=!1}}},a69f:function(t,e,n){const r=n("1bb5"),i=n("3b0b");function a(t,e){return r.each(e,e=>{t.indexOf(e)<0&&(r.isString(e)&&(e={type:e}),t.push(e))}),t}function o(t,e){const n=[];return t.forEach(t=>{e.indexOf(t.type)<0&&n.push(t)}),n}class s{constructor(t){this.graph=t,this.modes=t.get("modes")||{default:[]},this._formatModes(),this.mode=t.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode)}_formatModes(){const t=this.modes;r.each(t,t=>{r.each(t,(e,n)=>{r.isString(e)&&(t[n]={type:e})})})}setMode(t){const e=this.modes,n=this.graph,i=e[t];if(i)return n.emit("beforemodechange",{mode:t}),r.each(this.currentBehaves,t=>{t.unbind(n)}),this._setBehaviors(t),n.emit("aftermodechange",{mode:t}),this.mode=t,this}manipulateBehaviors(t,e,n){const i=this;return r.isArray(t)||(t=[t]),r.isArray(e)?(r.each(e,e=>{i.modes[e]?i.modes[e]=n?a(i.modes[e],t):o(i.modes[e],t):n&&(i.modes[e]=[].concat(t))}),this):(e||(e=this.mode),i.modes[e]=n?a(i.modes[e],t):o(i.modes[e],t),i.setMode(this.mode),this)}_setBehaviors(t){const e=this.graph,n=this.modes[t],a=[];let o;r.each(n,t=>{i.getBehavior(t.type)&&(o=new(i.getBehavior(t.type))(t),o&&o.bind(e),a.push(o))}),this.currentBehaves=a}destroy(){this.graph=null,this.modes=null,this.currentBehaves=null,this.destroyed=!0}}t.exports=s},a6d1:function(t,e,n){"use strict";var r=n("6f9c"),i=n("299f");function a(t){var e="greedy"===t.graph().acyclicer?i(t,n(t)):o(t);function n(t){return function(e){return t.edge(e).weight}}r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))}function o(t){var e=[],n={},i={};function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])}return r.forEach(t.nodes(),a),e}function s(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}t.exports={run:a,undo:s}},a70c:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("5134"),o=n("c4bc"),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this,n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;if(n.startArrow&&n.startArrow.d){var u=a.getShortenOffset(r,i,o,s,n.startArrow.d);r+=u.dx,i+=u.dy}if(n.endArrow&&n.endArrow.d){var c=a.getShortenOffset(r,i,o,s,n.endArrow.d);o-=c.dx,s-=c.dy}t=t||e.get("context"),t.beginPath(),t.moveTo(r,i),t.lineTo(o,s)},afterPath:function(t){var e=this,n=e._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,o,s,r,i),n.endArrow&&a.addEndArrow(t,n,r,i,o,s)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},a7b2:function(t,e,n){const r=n("1249"),i=n("1bb5"),a=n("9ed2"),o=n("15e8"),s="edge-shape";function u(t){let e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}r.registerFactory("edge",{defaultShapeType:"line"});const c=i.mix({},o,{itemType:"edge",labelPosition:"center",labelAutoRotate:!1,getPath(t){const e=[];return i.each(t,(t,n)=>{0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,o={stroke:t.color},s=i.deepMix({},n,r,o,t.style),u=t.size||a.defaultEdge.size;t=this.getPathPoints(t);const c=t.startPoint,h=t.endPoint,f=this.getControlPoints(t);let l=[c];f&&(l=l.concat(f)),l.push(h);const d=this.getPath(l),p=i.mix({},a.defaultEdge.style,{stroke:a.defaultEdge.color,lineWidth:u,path:d},s);return p},getLabelStyleByPosition(t,e,n){const r=e.position||this.labelPosition,a={},o=n.findByClassName(s);let u;u="start"===r?0:"end"===r?1:.5;const{refX:c,refY:h}=e;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return a.x=t.startPoint.x+c?c:0,a.y=t.endPoint.y+h?h:0,a;const f=i.isNil(e.autoRotate)?this.labelAutoRotate:e.autoRotate,l=i.getLabelPosition(o,u,c,h,f);return a.x=l.x,a.y=l.y,a.rotate=l.rotate,a.textAlign=this._getTextAlign(r,l.angle),a},_getTextAlign(t,e){let n="center";return e?(e%=2*Math.PI,"center"!==t&&(n=e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?t:u(t)),n):t},getControlPoints(t){return t.controlPoints},getPathPoints(t){return t},drawShape(t,e){const n=this.getShapeStyle(t),r=e.addShape("path",{className:s,attrs:n});return r},drawLabel(t,e){const n=this.getCustomConfig(t)||{},r=n.default||{},a=i.deepMix({},this.options.labelCfg,r.labelCfg,t.labelCfg),o=this.getLabelStyle(t,a,e),s=e.addShape("text",{attrs:o});return s}});r.registerEdge("single-line",c),r.registerEdge("line",{getControlPoints(){return[]}},"single-line"),r.registerEdge("spline",{getPath(t){const e=i.getSpline(t);return e}},"single-line"),r.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints(t){const e=t.startPoint,n=t.endPoint,r={x:(e.x+n.x)/2,y:(e.y+n.y)/2};let a,o;if(void 0!==t.controlPoints){if(o=t.controlPoints[0],a=i.getCircleCenterByPoints(e,o,n),e.x<=n.x&&e.y>n.y?this.clockwise=a.x>r.x?1:0:e.x<=n.x&&e.yr.x?0:1:(e.x>n.x&&(e.y,n.y),this.clockwise=a.yp.length?(d=i.parsePathString(o[l]),p=i.parsePathString(s[l]),p=i.fillPathByDiff(p,d),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=i.parsePathString(o[l]),p=i.parsePathString(s[l]),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),a[l]=[];for(var g=0;g0){for(var s=r._animators.length-1;s>=0;s--)if(t=r._animators[s],t.get("destroyed"))i.removeAnimator(s);else{if(!t.get("pause").isPaused){e=t.get("animators");for(var u=e.length-1;u>=0;u--)n=e[u],o=l(t,n,a),o&&(e.splice(u,1),o=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(s)}r.canvas.draw()}}))},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(t){t.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},ace3:function(t,e,n){const r=n("4651"),i=n("3421");function a(t,e,n){const r=[];for(let i=0;i{r[e.get(t.source)]+=1,r[e.get(t.target)]+=1}),r}r.registerLayout("concentric",{getDefaultCfg(){return{center:[0,0],nodeSize:30,minNodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},execute(){const t=this,e=t.nodes,n=t.edges,r=e.length,o=t.center;if(0===r)return;if(1===r)return e[0].x=o[0],void(e[0].y=o[1]);const s=[];let u;u=isNaN(t.nodeSize)?Math.max(t.nodeSize[0],t.nodeSize[1]):t.nodeSize,e.forEach(t=>{let e;s.push(t),e=isNaN(t.size)?Math.max(t.size[0],t.size[1]):t.size,u=Math.max(u,e)});let c=t.width;c||"undefined"===typeof window||(c=window.innerWidth);let h=t.height;h||"undefined"===typeof h||(h=window.innerHeight),t.clockwise=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise;const f=new Map,l=new Map;if(s.forEach((t,e)=>{f.set(t.id,t),l.set(t.id,e)}),t.nodeMap=f,("degree"===t.sortBy||!i(t.sortBy)||void 0===s[0][t.sortBy])&&(t.sortBy="degree",isNaN(e[0].degree))){const t=a(e.length,l,n);s.forEach((e,n)=>{e.degree=t[n]})}s.sort((e,n)=>n[t.sortBy]-e[t.sortBy]),t.maxValueNode=s[0],t.maxLevelDiff=t.maxLevelDiff||t.maxValueNode[t.sortBy]/4;const d=[[]];let p=d[0];s.forEach(e=>{if(p.length>0){const n=Math.abs(p[0][t.sortBy]-e[t.sortBy]);n>=t.maxLevelDiff&&(p=[],d.push(p))}p.push(e)});let g=u+t.minNodeSpacing;if(!t.preventOverlap){const e=d.length>0&&d[0].length>1,n=Math.min(t.width,t.height)/2-g,r=n/(d.length+e?1:0);g=Math.min(g,r)}let v=0;if(d.forEach(e=>{const n=void 0===t.sweep?2*Math.PI-2*Math.PI/e.length:t.sweep,r=e.dTheta=n/Math.max(1,e.length-1);if(e.length>1&&t.preventOverlap){const t=Math.cos(r)-Math.cos(0),e=Math.sin(r)-Math.sin(0),n=Math.sqrt(g*g/(t*t+e*e));v=Math.max(n,v)}e.r=v,v+=g}),t.equidistant){let t=0,e=0;for(let n=0;n{0===r&&(e=n.r),n.r=e,e+=t})}d.forEach(e=>{const n=e.dTheta,r=e.r;e.forEach((e,i)=>{const a=t.startAngle+(t.clockwise?1:-1)*n*i;e.x=o[0]+r*Math.cos(a),e.y=o[1]+r*Math.sin(a)})})}})},ad2d:function(t,e,n){var r=n("1c6a");function i(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function a(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function o(t,e){i(e)||(a(e)?(t[0]*=e[0],t[4]*=e[4]):r.mat3.multiply(t,t,e))}t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return r.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return r.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return r.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return r.each(t,(function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",r.mat3.multiply([],n,t[1])),e.clearTotalMatrix();break;default:break}})),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),r.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){var e=this;t=t||e;var n=e,i=[];while(n!==t)i.unshift(n),n=n.get("parent");i.unshift(n);var a=[1,0,0,0,1,0,0,0,1];return r.each(i,(function(t){r.mat3.multiply(a,t.attr("matrix"),a)})),a},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){var n=e.getTotalMatrix();o(t,n)}o(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(a(e))t[0]/=e[0],t[1]/=e[4];else{var n=r.mat3.invert([],e);n&&r.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},adff:function(t,e,n){var r=n("1c6a"),i=n("9aa8"),a=n("78ea"),o=n("4875"),s=["zIndex","capture","visible"],u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={},r.extend(u,a);var c={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};function h(t){for(var e=[],n=0;n0){var s=n.strokeOpacity;r.isNil(s)||1===s||(t.globalAlpha=s),t.stroke()}}e.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=[t,e,1];if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0,n=t.lineWidth||0;return n+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||(t=this.calculateBox(),t&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t=this,e=null,n=t._attrs,i={};return r.each(n,(function(t,e){c[e]&&r.isArray(n[e])?i[e]=h(n[e]):i[e]=n[e]})),e=new t.constructor({attrs:i}),r.each(s,(function(n){e._cfg[n]=t._cfg[n]})),e}}),t.exports=u},b047:function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},b0b3:function(t,e,n){t.exports={Canvas:n("7c2e"),Group:n("5869"),Shape:n("adff"),Arc:n("8563"),Circle:n("24db"),Dom:n("ba6c"),Ellipse:n("b5c7"),Fan:n("964f"),Image:n("c67d"),Line:n("a70c"),Marker:n("188c"),Path:n("d213"),Polygon:n("4ef2"),Polyline:n("321c"),Rect:n("0528"),Text:n("3cbc"),PathSegment:n("4980"),PathUtil:n("4a80"),Event:n("9f57"),EventEmitter:n("51ad"),version:"3.4.10"}},b0b4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("85f2"),i=n.n(r);function a(t,e){for(var n=0;n-1&&t%1==0&&t<=n}t.exports=r},b4c0:function(t,e,n){var r=n("cb5a");function i(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}t.exports=i},b50e:function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e}function s(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function u(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)}function c(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)}function h(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,u=t.width/2,c=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*c?(s<0&&(c=-c),n=c*o/s,r=c):(o<0&&(u=-u),n=u,r=u*s/o),{x:i+n,y:a+r}}function f(t){var e=r.map(r.range(g(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e}function l(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))}function d(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!==0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))}function p(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,"border",i,e)}function g(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}function v(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function m(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}}function y(t,e){return e()}t.exports={addDummyNode:a,simplify:o,asNonCompoundGraph:s,successorWeights:u,predecessorWeights:c,intersectRect:h,buildLayerMatrix:f,normalizeRanks:l,removeEmptyRanks:d,addBorderNode:p,maxRank:g,partition:v,time:m,notime:y}},b5a7:function(t,e,n){var r=n("0b07"),i=n("2b3e"),a=r(i,"DataView");t.exports=a},b5ae:function(t,e,n){"use strict";n.r(e);var r=n("74f4"),i=function(t,e,n){var i=new r["a"];return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i},a=function(t,e,n){var i=new r["a"],a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Object(r["b"])():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)};n.d(e,"now",(function(){return r["b"]})),n.d(e,"timer",(function(){return r["c"]})),n.d(e,"timerFlush",(function(){return r["d"]})),n.d(e,"timeout",(function(){return i})),n.d(e,"interval",(function(){return a}))},b5c7:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=a>o?1:a/o,c=a>o?o/a:1,h=[1,0,0,0,1,0,0,0,1];r.mat3.scale(h,h,[u,c]),r.mat3.translate(h,h,[n,i]),t.beginPath(),t.save(),t.transform(h[0],h[1],h[3],h[4],h[6],h[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},b760:function(t,e,n){var r=n("872a"),i=n("9638");function a(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}t.exports=a},b8bd:function(t,e){var n={}.toString,r=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")};t.exports=r},b8ce:function(t,e,n){var r=n("3818"),i=4;function a(t){return r(t,i)}t.exports=a},b951:function(t,e,n){const r=n("e00d"),i=n("2599"),{LAYOUT_MESSAGE:a}=i;function o(t){const{type:e}=t.data;return e===a.RUN}function s(t){const{type:e}=t.data;switch(e){case a.RUN:{const{nodes:e,edges:n,layoutCfg:i={}}=t.data,{type:o}=i,s=r[o];if(!s){postMessage({type:a.ERROR,message:`layout ${o} not found`});break}const u=new s(i);u.init({nodes:e,edges:n}),u.execute(),postMessage({type:a.END,nodes:e}),u.destroy();break}default:break}}self.onmessage=t=>{o(t)&&s(t)}},ba03:function(t,e,n){var r=n("1c6a"),i=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},ba6c:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}}}),t.exports=a},badf:function(t,e,n){var r=n("642a"),i=n("1838"),a=n("cd9d"),o=n("6747"),s=n("f9ce");function u(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):s(t)}t.exports=u},bbc0:function(t,e,n){var r=n("6044"),i="__lodash_hash_undefined__",a=Object.prototype,o=a.hasOwnProperty;function s(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return o.call(e,t)?e[t]:void 0}t.exports=s},bcd0:function(t,e,n){const r=n("1249");n("9dfc"),n("a7b2"),n("bcd6"),n("0e3c"),t.exports=r},bcd6:function(t,e,n){n("4883"),n("27998"),n("3494"),n("fc14"),n("3a95"),n("7493"),n("9d1d"),n("ec19")},bda5:function(t,e){var n=180/Math.PI,r=function(t){return n*t};t.exports=r},bfa1:function(t,e,n){var r=n("1c6a"),i=n("6ad1"),a=n("0eee"),o=n("ba03"),s=n("9edc"),u=n("5a21"),c=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,r=null,i=0;i{!e.destroyed&&e.initPlugin&&e.initPlugin(t)})}get(t){return this._cfg[t]}set(t,e){return s.isPlainObject(t)?this._cfg=s.mix({},this._cfg,t):this._cfg[t]=e,this}update(t,e){this.updateItem(t,e)}updateItem(t,e){this.get("itemController").updateItem(t,e)}setItemState(t,e,n){s.isString(t)&&(t=this.findById(t)),this.get("itemController").setItemState(t,e,n),this.get("stateController").updateState(t,e,n)}clearItemStates(t,e){s.isString(t)&&(t=this.findById(t)),this.get("itemController").clearItemStates(t,e),e||(e=t.get("states")),this.get("stateController").updateStates(t,e,!1)}add(t,e){return this.addItem(t,e)}addItem(t,e){if("group"===t){const{groupId:t,nodes:n,type:r,zIndex:a,title:o}=e;let s=o;return i(o)&&(s={text:o}),this.get("customGroupControll").create(t,n,r,a,!0,s)}return this.get("itemController").addItem(t,e)}remove(t){this.removeItem(t)}removeItem(t){let e=null;s.isString(t)&&(e=this.findById(t)),!e&&s.isString(t)?this.get("customGroupControll").remove(t):this.get("itemController").removeItem(t)}data(t){this.set("data",t)}node(t){"function"===typeof t&&this.set("nodeMapper",t)}edge(t){"function"===typeof t&&this.set("edgeMapper",t)}refreshItem(t){this.get("itemController").refreshItem(t)}refresh(){const t=this,e=t.get("autoPaint");if(t.setAutoPaint(!1),t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{const e=t.get("nodes"),n=t.get("edges");s.each(e,t=>{t.refresh()}),s.each(n,t=>{t.refresh()})}t.setAutoPaint(e),t.emit("aftergraphrefresh"),t.autoPaint()}refreshPositions(){const t=this;t.emit("beforegraphrefreshposition");const e=t.get("nodes"),n=t.get("edges");let r;s.each(e,t=>{r=t.getModel(),t.updatePosition(r)}),s.each(n,t=>{t.refresh()}),t.emit("aftergraphrefreshposition"),t.autoPaint()}render(){const t=this,e=this.get("data");if(!e)throw new Error("data must be defined first");this.clear(),this.emit("beforerender");const n=this.get("autoPaint");if(this.setAutoPaint(!1),s.each(e.nodes,e=>{t.add(h,e)}),s.each(e.edges,e=>{t.add(f,e)}),e.nodes){const n=e.nodes.filter(t=>t.groupId);if(n.length>0){const n=t.get("groupType");this.renderCustomGroup(e,n)}}if(!this.get("groupByTypes"))if(e.nodes.length{t.toFront()})}else{const t=this.getEdges();t.forEach(t=>{t.toBack()})}const r=t.get("layoutController");function i(){t.get("fitView")&&t.get("viewController")._fitView(),t.paint(),t.setAutoPaint(n),t.emit("afterrender")}r.layout(i)||i()}renderCustomGroup(t,e){const{groups:n,nodes:i}=t;let a=10;if(n){this.set({groups:n});const r=s.getAllNodeInGroups(t);for(const t in r){const n=r[t];this.get("customGroupControll").create(t,n,e,a),a--}const i=this.get("customGroup");i.sort()}else{const t=i.filter(t=>t.groupId),n=[],o=r(t,"groupId");for(const r in o){const t=o[r].map(t=>t.id);this.get("customGroupControll").create(r,t,e,a),a--,n.find(t=>t.id===r)||n.push({id:r})}this.set({groups:n})}}read(t){this.data(t),this.render()}changeData(t){const e=this;if(!t)return this;e.get("data")||(e.data(t),e.render());const n=this.get("autoPaint"),r=this.get("itemMap"),i={nodes:[],edges:[]};this.setAutoPaint(!1),this._diffItems(h,i,t.nodes),this._diffItems(f,i,t.edges),s.each(r,(t,n)=>{i.nodes.indexOf(t)<0&&i.edges.indexOf(t)<0&&(delete r[n],e.remove(t))}),this.set({nodes:i.nodes,edges:i.edges});const a=this.get("layoutController");return a.changeData(),this.setAutoPaint(n),this}_diffItems(t,e,n){const r=this;let i;const a=this.get("itemMap");s.each(n,n=>{if(i=a[n.id],i){if(r.get("animate")&&t===h){const t=i.getContainer().getMatrix();i.set("originAttrs",{x:t[6],y:t[7]})}r.updateItem(i,n)}else i=r.addItem(t,n);e[t+"s"].push(i)})}paint(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")}autoPaint(){this.get("autoPaint")&&this.paint()}save(){const t=[],e=[];return s.each(this.get("nodes"),e=>{t.push(e.getModel())}),s.each(this.get("edges"),t=>{e.push(t.getModel())}),{nodes:t,edges:e,groups:this.get("groups")}}changeSize(t,e){return this.get("viewController").changeSize(t,e),this.autoPaint(),this}translate(t,e){const n=this.get("group");n.translate(t,e),this.emit("viewportchange",{action:"translate",matrix:n.getMatrix()}),this.autoPaint()}moveTo(t,e){const n=this.get("group");n.move(t,e),this.emit("viewportchange",{action:"move",matrix:n.getMatrix()}),this.autoPaint()}fitView(t){t&&this.set("fitViewPadding",t),this.get("viewController")._fitView(),this.paint()}addBehaviors(t,e){return this.get("modeController").manipulateBehaviors(t,e,!0),this}removeBehaviors(t,e){return this.get("modeController").manipulateBehaviors(t,e,!1),this}setMode(t){return this.set("mode",t),this.get("modeController").setMode(t),this}getCurrentMode(){return this.get("mode")}getZoom(){return this.get("group").getMatrix()[0]}getNodes(){return this.get("nodes")}getEdges(){return this.get("edges")}zoom(t,e){const n=s.clone(this.get("group").getMatrix()),r=this.get("minZoom"),i=this.get("maxZoom");e?(s.mat3.translate(n,n,[-e.x,-e.y]),s.mat3.scale(n,n,[t,t]),s.mat3.translate(n,n,[e.x,e.y])):s.mat3.scale(n,n,[t,t]),r&&n[0]i||(this.get("group").setMatrix(n),this.emit("viewportchange",{action:"zoom",matrix:n}),this.autoPaint())}zoomTo(t,e){const n=t/this.getZoom();this.zoom(n,e)}positionsAnimate(){const t=this;t.emit("beforeanimate");const e=t.get("animateCfg"),n=e.onFrame,r=t.getNodes(),i=r.map(t=>{const e=t.getModel();return{id:e.id,x:e.x,y:e.y}});t.isAnimating()&&t.stopAnimate(),t.get("canvas").animate({onFrame(e){s.each(i,r=>{const i=t.findById(r.id);if(!i||i.destroyed)return;let a=i.get("originAttrs");const o=i.get("model");if(!a){const t=i.getContainer().getMatrix();a={x:t[6],y:t[7]},i.set("originAttrs",a)}if(n){const t=n(i,e,r,a);i.set("model",s.mix(o,t))}else o.x=a.x+(r.x-a.x)*e,o.y=a.y+(r.y-a.y)*e}),t.refreshPositions()}},e.duration,e.easing,()=>{s.each(r,t=>{t.set("originAttrs",null)}),e.callback&&e.callback(),t.emit("afteranimate"),t.animating=!1})}stopAnimate(){this.get("canvas").stopAnimate()}isAnimating(){return this.animating}focusItem(t){this.get("viewController").focus(t),this.autoPaint()}getPointByClient(t,e){return this.get("viewController").getPointByClient(t,e)}getClientByPoint(t,e){return this.get("viewController").getClientByPoint(t,e)}getPointByCanvas(t,e){return this.get("viewController").getPointByCanvas(t,e)}getCanvasByPoint(t,e){return this.get("viewController").getCanvasByPoint(t,e)}showItem(t){this.get("itemController").changeItemVisibility(t,!0)}hideItem(t){this.get("itemController").changeItemVisibility(t,!1)}findById(t){return this.get("itemMap")[t]}find(t,e){let n;const r=this.get(t+"s");return s.each(r,(t,r)=>{if(e(t,r))return n=t,!1}),n}findAll(t,e){const n=[];return s.each(this.get(t+"s"),(t,r)=>{e(t,r)&&n.push(t)}),n}findAllByState(t,e){return this.findAll(t,t=>t.hasState(e))}setAutoPaint(t){this.set("autoPaint",t)}toDataURL(){const t=this.get("canvas"),e=t.getRenderer(),n=t.get("el");let r="";if("svg"===e){const t=n.cloneNode(!0),e=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),i=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",e);i.replaceChild(t,i.documentElement);const a=(new XMLSerializer).serializeToString(i);r="data:image/svg+xml;charset=utf8,"+encodeURIComponent(a)}else"canvas"===e&&(r=n.toDataURL("image/png"));return r}downloadImage(t){const e=this;e.isAnimating()&&e.stopAnimate();const n=e.get("canvas"),r=n.getRenderer(),i=(t||"graph")+("svg"===r?".svg":".png"),a=document.createElement("a");setTimeout(()=>{const t=e.toDataURL();if("undefined"!==typeof window)if(window.Blob&&window.URL&&"svg"!==r){const e=t.split(","),n=e[0].match(/:(.*?);/)[1],r=atob(e[1]);let o=r.length;const s=new Uint8Array(o);while(o--)s[o]=r.charCodeAt(o);const u=new Blob([s],{type:n});window.navigator.msSaveBlob?window.navigator.msSaveBlob(u,i):a.addEventListener("click",(function(){a.download=i,a.href=window.URL.createObjectURL(u)}))}else a.addEventListener("click",(function(){a.download=i,a.href=t}));const n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),a.dispatchEvent(n)},16)}addPlugin(t){const e=this;t.destroyed||(e.get("plugins").push(t),t.initPlugin(e))}removePlugin(t){const e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1))}updateLayout(t){const e=this.get("layoutController");let n;s.isString(t)?(n=t,t={type:n}):n=t.type;const r=this.get("layout"),i=r?r.type:void 0;if(n&&i!==n)this.set("layout",t),e.changeLayout(n);else{const n={};s.mix(n,r,t),n.type=i||"random",this.set("layout",n),e.updateLayoutCfg(n)}}layout(){const t=this.get("layoutController"),e=this.get("layout");e.workerEnabled?t.layout():t.layoutMethod?t.relayout():t.layout()}clear(){const t=this.get("canvas");return t.clear(),this._initGroups(),this.set({itemMap:{},nodes:[],edges:[],groups:[]}),this}destroy(){this.clear(),s.each(this.get("plugins"),t=>{t.destroyPlugin()}),this.get("eventController").destroy(),this.get("itemController").destroy(),this.get("modeController").destroy(),this.get("viewController").destroy(),this.get("stateController").destroy(),this.get("layoutController").destroy(),this.get("customGroupControll").destroy(),this.get("canvas").destroy(),this._cfg=null,this.destroyed=!0}collapseGroup(t){this.get("customGroupControll").collapseGroup(t)}expandGroup(t){this.get("customGroupControll").expandGroup(t)}}t.exports=l},c05f:function(t,e,n){var r=n("7b97"),i=n("1310");function a(t,e,n,o,s){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:r(t,e,n,o,a,s))}t.exports=a},c077:function(t,e,n){const r=n("4651");r.registerLayout("random",{getDefaultCfg(){return{center:[0,0],height:300,width:300}},execute(){const t=this,e=t.nodes,n=.9,r=t.center;let i=t.width;i||"undefined"===typeof window||(i=window.innerWidth);let a=t.height;a||"undefined"===typeof a||(a=window.innerHeight),e.forEach(t=>{t.x=(Math.random()-.5)*n*i+r[0],t.y=(Math.random()-.5)*n*a+r[1]})}})},c0983:function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(t,e){var i=typeof t;return e=null==e?n:e,!!e&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t=e&&t<=n},getLineIntersect(t,e,n,r){const o={x:n.x-t.x,y:n.y-t.y},s={x:e.x-t.x,y:e.y-t.y},u={x:r.x-n.x,y:r.y-n.y},c=s.x*u.y-s.y*u.x,h=c*c,f=s.x*s.x+s.y*s.y,l=u.x*u.x+u.y*u.y;let d=null;if(h>i*f*l){const e=(o.x*u.y-o.y*u.x)/c,n=(o.x*s.y-o.y*s.x)/c;a.isBetween(e,0,1)&&a.isBetween(n,0,1)&&(d={x:t.x+e*s.x,y:t.y+e*s.y})}return d},getRectIntersectByPoint(t,e){const{x:n,y:r,width:i,height:o}=t,s=n+i/2,u=r+o/2,c=[],h={x:s,y:u};c.push({x:n,y:r}),c.push({x:n+i,y:r}),c.push({x:n+i,y:r+o}),c.push({x:n,y:r+o}),c.push({x:n,y:r});let f=null;for(let l=1;l0)for(let e=0;ec&&(h=c),e.zoom(h,o)}focusPoint(t){const e=this._getViewCenter(),n=this.getPointByCanvas(e.x,e.y),r=this.graph.get("group").getMatrix();this.graph.translate((n.x-t.x)*r[0],(n.y-t.y)*r[4])}getPointByClient(t,e){const n=this.graph.get("canvas"),r=n.get("pixelRatio"),i=n.getPointByClient(t,e);return this.getPointByCanvas(i.x/r,i.y/r)}getClientByPoint(t,e){const n=this.graph.get("canvas"),r=this.getCanvasByPoint(t,e),i=n.get("pixelRatio"),a=n.getClientByPoint(r.x*i,r.y*i);return{x:a.clientX,y:a.clientY}}getPointByCanvas(t,e){const n=this.graph.get("group").getMatrix(),i=r.invertMatrix({x:t,y:e},n);return i}getCanvasByPoint(t,e){const n=this.graph.get("group").getMatrix();return r.applyMatrix({x:t,y:e},n)}focus(t){if(r.isString(t)&&(t=this.graph.findById(t)),t){const e=t.get("group").getMatrix();this.focusPoint({x:e[6],y:e[7]})}}changeSize(t,e){if(!r.isNumber(t)||!r.isNumber(e))throw Error("invalid canvas width & height");const n=this.graph;n.set({width:t,height:e});const i=this.graph.get("canvas");i.changeSize(t,e)}_getViewCenter(){const t=this.getFormatPadding(),e=this.graph,n=this.graph.get("width"),r=e.get("height");return{x:(n-t[2]-t[3])/2+t[3],y:(r-t[0]-t[2])/2+t[0]}}destroy(){this.graph=null,this.destroyed=!0}}t.exports=i},c3cd:function(t,e){t.exports="2.1.8"},c3fc:function(t,e,n){var r=n("42a2"),i=n("1310"),a="[object Set]";function o(t){return i(t)&&r(t)==a}t.exports=o},c424:function(t,e,n){const r=n("1bb5"),i={registerBehavior:function(t,e){if(!e)throw new Error("please specify handler for this behavior:"+t);const n=function(t){const e=this;r.mix(e,e.getDefaultCfg(),t);const n=e.getEvents();if(n){const t={};r.each(n,(n,i)=>{t[i]=r.wrapBehavior(e,n)}),this._events=t}};r.augment(n,{shouldBegin(){return!0},shouldUpdate(){return!0},shouldEnd(){return!0},getEvents(){},bind(t){const e=this._events;this.graph=t,r.each(e,(e,n)=>{t.on(n,e)})},unbind(t){const e=this._events;r.each(e,(e,n)=>{t.off(n,e)})},get(t){return this[t]},set(t,e){return this[t]=e,this},getDefaultCfg(){}},e),i[t]=n},hasBehavior:function(t){return!!i[t]},getBehavior:function(t){return i[t]}};t.exports=i},c4bc:function(t,e,n){var r=n("1c6a").vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var c=[a-t,o-e];return Math.abs(r.dot(c,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r);return{minX:o-a,minY:u-a,maxX:s+a,maxY:c+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},c4be:function(t,e){var n=1e-5;t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;return Math.abs(t-e)1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},c869:function(t,e,n){var r=n("0b07"),i=n("2b3e"),a=r(i,"Set");t.exports=a},c87c:function(t,e){var n=Object.prototype,r=n.hasOwnProperty;function i(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}t.exports=i},c8fe:function(t,e,n){var r=n("f8af");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=i},c9ca:function(t,e,n){var r=n("ef5d"),i=r("length");t.exports=i},ca886:function(t,e){var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t){return"object"===("undefined"===typeof t?"undefined":n(t))&&null!==t};t.exports=r},cae7:function(t,e,n){var r=n("ffd6");function i(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t===t,o=r(t),s=void 0!==e,u=null===e,c=e===e,h=r(e);if(!u&&!h&&!o&&t>e||o&&s&&c&&!u&&!h||i&&s&&c||!n&&c||!a)return 1;if(!i&&!o&&!h&&t0?l=u(l,d):f.addAnimator(h),l.push(d),h.setSilent("animators",l),h.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");i.each(e,(function(e){t.attr(e.toAttrs||e.onFrame(1)),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this,e=t.get("timeline");return t.setSilent("pause",{isPaused:!0,pauseTime:e.getTime()}),t},resumeAnimate:function(){var t=this,e=t.get("timeline"),n=e.getTime(),r=t.get("animators"),a=t.get("pause").pauseTime;return i.each(r,(function(t){t.startTime=t.startTime+(n-a),t._paused=!1,t._pauseTime=null})),t.setSilent("pause",{isPaused:!1}),t.setSilent("animators",r),t}}},cc45:function(t,e,n){var r=n("1a2d"),i=n("b047"),a=n("99d3"),o=a&&a.isMap,s=o?i(o):r;t.exports=s},ce86:function(t,e,n){var r=n("9e69"),i=n("7948"),a=n("6747"),o=n("ffd6"),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;function h(t){if("string"==typeof t)return t;if(a(t))return i(t,h)+"";if(o(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}t.exports=h},cfa7:function(t,e,n){var r=n("33de");function i(t){var e=0,n=[],i={},a=[];function o(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(o(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var c,h=[];do{c=n.pop(),i[c].onStack=!1,h.push(c)}while(s!==c);a.push(h)}}return t.nodes().forEach((function(t){r.has(i,t)||o(t)})),a}t.exports=i},d02c:function(t,e,n){var r=n("5e2e"),i=n("79bc"),a=n("7b83"),o=200;function s(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.lengtha&&(a=e.maxX),e.minYs&&(s=e.maxY))})),i===1/0||o===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:i,minY:o,maxX:a,maxY:s}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;u&&(r.each(u,(function(t,e){n=u[e+1],i=t.length,n&&(a+=c.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),this._cfg.totalLength=a,0!==a?(r.each(u,(function(r,h){n=u[h+1],i=r.length,n&&(t=[],t[0]=o/a,e=c.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))})),this._cfg.tCache=s):this._cfg.tCache=[])},getTotalLength:function(){var t=this.get("totalLength");return r.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},_calculateCurve:function(){var t=this,e=t._attrs,n=e.path;this._cfg.curve=u.pathTocurve(n)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,i=[],r.isFunction(n)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i||0===i.length)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-e),y:c.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this,n=e._attrs,i=e.get("segments");if(r.isArray(i)){var a=i.length;if(0!==a){if(t=t||e.get("context"),t.beginPath(),n.startArrow&&n.startArrow.d){var o=e.getStartTangent(),u=s.getShortenOffset(o[0][0],o[0][1],o[1][0],o[1][1],n.startArrow.d);i[0].shortenDraw(t,u.dx,u.dy)}else i[0].draw(t);for(var c=1;c2&&i[a-2].draw(t),l.shortenDraw(t,f.dx,f.dy))}else i[a-2]&&i[a-2].draw(t),i[a-1].draw(t)}}},afterPath:function(t){var e=this,n=e._attrs,i=e.get("segments"),a=n.path;if(t=t||e.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==a[a.length-1]&&"Z"!==a[a.length-1]&&!n.fill){var o=e.getStartTangent();s.addStartArrow(t,n,o[0][0],o[0][1],o[1][0],o[1][1]);var u=e.getEndTangent();s.addEndArrow(t,n,u[0][0],u[0][1],u[1][0],u[1][1])}}}),t.exports=h},d225:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},d285:function(t,e){var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t){var e="undefined"===typeof t?"undefined":n(t);return null!==t&&"object"===e||"function"===e};t.exports=r},d312:function(t,e,n){var r=n("a473"),i=n("33de");function a(t,e,n){return i.transform(t.nodes(),(function(i,a){i[a]=r(t,a,e,n)}),{})}t.exports=a},d327:function(t,e){function n(){return[]}t.exports=n},d33f:function(t,e,n){const r=n("1249"),i=n("1bb5"),a=n("0acb"),o=n("9ed2"),s="-shape",u="-label";r.registerEdge("polyline",{options:{color:"#999",style:{stroke:"#333",lineWidth:1,radius:0,offset:5,x:0,y:0},labelCfg:{style:{fill:"#595959"}},stateStyles:{hover:{lineWidth:3},selected:{lineWidth:5}}},shapeType:"polyline",labelPosition:"center",drawShape(t,e){const n=this.getShapeStyle(t),r=e.addShape("path",{className:"edge-shape",attrs:n});return r},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,a={stroke:t.color},s=i.deepMix({},n,r,a,t.style);t=this.getPathPoints(t),this.radius=s.radius,this.offset=s.offset;const u=t.startPoint,c=t.endPoint,h=this.getControlPoints(t);let f=[u];h&&(f=f.concat(h)),f.push(c);const l=t.sourceNode,d=t.targetNode;let p={radius:s.radius};h||(p={source:l,target:d,offset:s.offset,radius:s.radius});const g=this.getPath(f,p),v=i.deepMix({},o.defaultEdge.style,s,{lineWidth:t.size},{path:g});return v},getPath(t,e){const{source:n,target:r,offset:o,radius:s}=e;if(!o){let e=[];return s?e=a.getPathWithBorderRadiusByPolyline(t,s):i.each(t,(t,n)=>{0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e}if(s){const e=a.simplifyPolyline(a.getPolylinePoints(t[0],t[t.length-1],n,r,o));return a.getPathWithBorderRadiusByPolyline(e,s)}const u=a.getPolylinePoints(t[0],t[t.length-1],n,r,o);return i.pointsToPolygon(u)},update(t,e){const n=e.getContainer(),r=this.itemType+s,a=n.findByClassName(r);t.style||(t.style={});const o=a.attr();t.style.radius=t.style.radius||o.radius,t.style.offset=t.style.offset||o.offset;const c=this.getShapeStyle(t);a.attr(c);const h=this.itemType+u,f=n.findByClassName(h);if(t.label)if(f){const{labelCfg:e}=this.options,{labelCfg:r}=this.getCustomConfig(t)||{},a=i.deepMix({},e,r,t.labelCfg),o=this.getLabelStyle(t,a,n);f.resetMatrix(),f.attr(o)}else{const e=this.drawLabel(t,n);e.set("className",h)}else f&&f.remove()}},"single-line")},d370:function(t,e,n){var r=n("253c"),i=n("1310"),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},d4b2:function(t,e){function n(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}t.exports=n},d4f3:function(t,e,n){var r=n("6f9c");function i(t,e,n){var i,a={};r.forEach(n,(function(n){var r,o,s=t.parent(n);while(s){if(r=t.parent(s),r?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}t.exports=i},d612:function(t,e,n){var r=n("7b83"),i=n("7ed2"),a=n("dc0f");function o(t){var e=-1,n=null==t?0:t.length;this.__data__=new r;while(++e0)e%2&&(n+=u[e+1]),e=e-1>>1,u[e]+=t.weight;c+=t.weight*n}))),c}t.exports=i},d7ee:function(t,e,n){var r=n("c3fc"),i=n("b047"),a=n("99d3"),o=a&&a.isSet,s=o?i(o):r;t.exports=s},d89f:function(t,e,n){t.exports={components:n("e44a"),dijkstra:n("a473"),dijkstraAll:n("d312"),findCycles:n("ddac"),floydWarshall:n("6736"),isAcyclic:n("43e8"),postorder:n("4f17"),preorder:n("aaf9"),prim:n("61e9"),tarjan:n("cfa7"),topsort:n("8185")}},d9a8:function(t,e){function n(t){return t!==t}t.exports=n},d9f3:function(t,e,n){"use strict";var r=n("6f9c");function i(t,e){var n={};r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))}));var i=r.filter(n,(function(t){return!t.indegree}));return a(i)}function a(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&o(t,e)}}function i(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}}while(t.length){var a=t.pop();e.push(a),r.forEach(a["in"].reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}function o(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}t.exports=i},da03:function(t,e,n){var r=n("2b3e"),i=r["__core-js_shared__"];t.exports=i},da0a:function(t,e){function n(t,e,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var h=e-(c-s);return i=this,a=arguments,h<=0||h>e?(r&&(clearTimeout(r),r=null),s=c,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,h)),o};return c.cancel=function(){clearTimeout(r),s=0,r=i=a=null},c}t.exports=n},dc0f:function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},dc57:function(t,e){var n=Function.prototype,r=n.toString;function i(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=i},dcbe:function(t,e,n){var r=n("30c9"),i=n("1310");function a(t){return i(t)&&r(t)}t.exports=a},dd61:function(t,e,n){var r=n("7948"),i=n("badf"),a=n("97d3"),o=n("6747");function s(t,e){var n=o(t)?r:a;return n(t,i(e,3))}t.exports=s},dd6d:function(t,e,n){var r=n("739e"),i=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)};t.exports=i},ddac:function(t,e,n){var r=n("33de"),i=n("cfa7");function a(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}t.exports=a},df2e:function(t,e,n){var r=n("33de");function i(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);a(t,e,"post"===n,s,i,o)})),o}function a(t,e,n,i,o,s){r.has(i,e)||(i[e]=!0,n||s.push(e),r.each(o(e),(function(e){a(t,e,n,i,o,s)})),n&&s.push(e))}t.exports=i},e008:function(t,e,n){var r=n("01ce");t.exports={Graph:r.Graph,json:n("19b2"),alg:n("d89f"),version:r.version}},e00c:function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=62)}([function(t,e,n){var r=n(12),i={};r.merge(i,r,{isColorProp:function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},isGradientColor:function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,(function(e){i.augment(t,e);var a=e[n];a&&i.merge(r,a)})),t[n]=i.merge(r,t[n])}}}),t.exports=i},function(t,e,n){var r=n(0),i=n(98),a=n(38),o=n(19),s=["zIndex","capture","visible"],u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={},r.extend(u,a);var c={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};function h(t){for(var e=[],n=0;n0){var s=n.strokeOpacity;r.isNil(s)||1===s||(t.globalAlpha=s),t.stroke()}}e.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=[t,e,1];if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0,n=t.lineWidth||0;return n+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||(t=this.calculateBox(),t&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t=this,e=null,n=t._attrs,i={};return r.each(n,(function(t,e){c[e]&&r.isArray(n[e])?i[e]=h(n[e]):i[e]=n[e]})),e=new t.constructor({attrs:i}),r.each(s,(function(n){e._cfg[n]=t._cfg[n]})),e}}),t.exports=u},function(t,e){var n={}.toString,r=function(t,e){return n.call(t)==="[object "+e+"]"};t.exports=r},function(t,e,n){"use strict";var r=n(25);n.d(e,"a",(function(){return r["e"]})),n.d(e,"f",(function(){return r["g"]})),n.d(e,"d",(function(){return r["f"]}));var i=n(115);n.d(e,"e",(function(){return i["a"]})),n.d(e,"c",(function(){return i["b"]}));var a=n(116);n.d(e,"b",(function(){return a["a"]}))},function(t,e,n){var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;t.exports={parseRadius:function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if(e=e.match(a),e[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}}},function(t,e,n){"use strict";e["c"]=o,e["b"]=s,e["a"]=u;var r=n(57);function i(t,e){return function(n){return t+n*e}}function a(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(r["a"])(isNaN(t)?e:t)}function s(t){return 1===(t=+t)?u:function(e,n){return n-e?a(e,n,t):Object(r["a"])(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?i(t,n):Object(r["a"])(isNaN(t)?e:t)}},function(t,e,n){var r=n(2),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e,n){var r=n(0).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var c=[a-t,o-e];return Math.abs(r.dot(c,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r);return{minX:o-a,minY:u-a,maxX:s+a,maxY:c+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){var r=n(0);function i(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function a(t,e,n,r){var i,a;return r?tn&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function o(t,e,n,i){var o=0;return n-e>=2*Math.PI&&(o=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+o,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&tn?t:a(t,e,n):e<=n?ee||tt.x&&(g=t.x),vt.y&&(m=t.y),y1&&(a*=Math.sqrt(m),o*=Math.sqrt(m));var y=a*a*(v*v)+o*o*(d*d),x=Math.sqrt((a*a*(o*o)-y)/y);n===i&&(x*=-1),isNaN(x)&&(x=0);var b=x*a*v/o,w=x*-o*d/a,_=(c+f)/2+Math.cos(u)*b-Math.sin(u)*w,M=(h+l)/2+Math.sin(u)*b+Math.cos(u)*w,S=g([1,0],[(d-b)/a,(v-w)/o]),k=[(d-b)/a,(v-w)/o],A=[(-1*d-b)/a,(-1*v-w)/o],P=g(k,A);return p(k,A)<=-1&&(P=Math.PI),p(k,A)>=1&&(P=0),0===i&&P>0&&(P-=2*Math.PI),1===i&&P<0&&(P+=2*Math.PI),[t,_,M,a,o,S,P,u,i]}var m=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};r.augment(m,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,a,o,s,u=h.indexOf(n)>=0,c=u?n.toUpperCase():n,d=t,p=e.endPoint,g=d[1],m=d[2];switch(c){default:break;case"M":s=u?f(g,m,p):{x:g,y:m},this.command="M",this.params=[p,s],this.subStart=s,this.endPoint=s;break;case"L":s=u?f(g,m,p):{x:g,y:m},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"H":s=u?f(g,0,p):{x:g,y:p.y},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"V":s=u?f(0,g,p):{x:p.x,y:g},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"Q":u?(i=f(g,m,p),a=f(d[3],d[4],p)):(i={x:g,y:m},a={x:d[3],y:d[4]}),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"T":a=u?f(g,m,p):{x:g,y:m},"Q"===e.command?(i=l(e.params[1],p),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="TL",this.params=[p,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-p.x,a.y-p.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"C":u?(i=f(g,m,p),a=f(d[3],d[4],p),o=f(d[5],d[6],p)):(i={x:g,y:m},a={x:d[3],y:d[4]},o={x:d[5],y:d[6]}),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"S":u?(a=f(g,m,p),o=f(d[3],d[4],p)):(a={x:g,y:m},o={x:d[3],y:d[4]}),"C"===e.command?(i=l(e.params[2],p),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="SQ",this.params=[p,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"A":var y=g,x=m,b=d[3],w=d[4],_=d[5];s=u?f(d[6],d[7],p):{x:d[6],y:d[7]},this.command="A";var M=v(p,s,w,_,y,x,b);this.params=M;var S=e.subStart;this.subStart=S,this.endPoint=s;var k=M[5]%(2*Math.PI);r.isNumberEqual(k,2*Math.PI)&&(k=0);var A=M[6]%(2*Math.PI);r.isNumberEqual(A,2*Math.PI)&&(A=0);var P=.001;this.startTangent=function(){0===_&&(P*=-1);var t=M[3]*Math.cos(k-P)+M[1],e=M[4]*Math.sin(k-P)+M[2];return[t-S.x,e-S.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(k+t+P)+M[1],n=M[4]*Math.sin(k+t-P)+M[2];return[p.x-e,p.y-n]};break;case"Z":this.command="Z",this.params=[p,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,a=r.command,o=r.params,s=r.box;if(s&&!i.box(s.minX,s.maxX,s.minY,s.maxY,t,e))return!1;switch(a){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(o[0].x,o[0].y,o[1].x,o[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,n,t,e);case"C":return i.cubicline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y,n,t,e);case"A":var h=o,f=h[1],l=h[2],d=h[3],p=h[4],g=h[5],v=h[6],m=h[7],y=h[8],x=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;h=[t,e,1];var _=[1,0,0,0,1,0,0,0,1];return c.translate(_,_,[-f,-l]),c.rotate(_,_,-m),c.scale(_,_,[1/b,1/w]),u.transformMat3(h,h,_),i.arcline(0,0,x,g,g+v,1-y,n,h[0],h[1])}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],c=s,h=u,f=o[3],l=o[4],d=o[5],p=o[6],g=o[7],v=o[8],m=f>l?f:l,y=f>l?1:f/l,x=f>l?l/f:1;t.translate(c,h),t.rotate(g),t.scale(y,x),t.arc(0,0,m,d,d+p,1-v),t.scale(1/y,1/x),t.rotate(-g),t.translate(-c,-h);break;case"Z":t.closePath();break}},shortenDraw:function(t,e,n){var r,i,a,o=this.command,s=this.params;switch(o){default:break;case"M":t.moveTo(s[1].x-e,s[1].y-n);break;case"TL":case"L":t.lineTo(s[1].x-e,s[1].y-n);break;case"SQ":case"Q":r=s[1],i=s[2],t.quadraticCurveTo(r.x,r.y,i.x-e,i.y-n);break;case"C":r=s[1],i=s[2],a=s[3],t.bezierCurveTo(r.x,r.y,i.x,i.y,a.x-e,a.y-n);break;case"A":var u=s,c=u[1],h=u[2],f=c,l=h,d=u[3],p=u[4],g=u[5],v=u[6],m=u[7],y=u[8],x=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;t.translate(f,l),t.rotate(m),t.scale(b,w),t.arc(0,0,x,g,g+v,1-y),t.scale(1/b,1/w),t.rotate(-m),t.translate(-f,-l);break;case"Z":t.closePath();break}},getBBox:function(t){var e,n,r,i,u=t/2,c=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(c[0].x,c[1].x)-u,maxX:Math.max(c[0].x,c[1].x)+u,minY:Math.min(c[0].y,c[1].y)-u,maxY:Math.max(c[0].y,c[1].y)+u};break;case"SQ":case"Q":for(n=o.extrema(c[0].x,c[1].x,c[2].x),r=0,i=n.length;rM&&(M=A)}var P=s.yExtrema(m,d,p),C=1/0,E=-1/0,I=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var O=P+r;1===y?xE&&(E=T)}this.box={minX:_-u,maxX:M+u,minY:C-u,maxY:E+u};break}}}),t.exports=m},function(t,e,n){"use strict";e["a"]=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){t.exports={isFunction:n(13),isObject:n(28),isBoolean:n(66),isNil:n(14),isString:n(29),isArray:n(6),isNumber:n(67),isEmpty:n(68),uniqueId:n(71),clone:n(30),deepMix:n(31),assign:n(16),merge:n(31),upperFirst:n(73),each:n(33),isEqual:n(75),toArray:n(34),extend:n(76),augment:n(77),remove:n(78),isNumberEqual:n(79),toRadian:n(80),toDegree:n(81),mod:n(82),clamp:n(35),createDom:n(83),modifyCSS:n(84),requestAnimationFrame:n(85),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(36),vec2:n(87),vec3:n(89),transform:n(91)}},function(t,e,n){var r=n(2),i=function(t){return r(t,"Function")};t.exports=i},function(t,e){var n=function(t){return null===t||void 0===t};t.exports=n},function(t,e){var n=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};t.exports=n},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var r=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t};t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=i,e.toRadian=o,e.equals=s;var r=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!==typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;function i(t){e.ARRAY_TYPE=t}var a=Math.PI/180;function o(t){return t*a}function s(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}},function(t,e,n){var r=n(0),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){var r=n(7),i=n(40),a=n(20),o=n(8);t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var c=r.pointDistance(t,e,n,i,o,s);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a=0&&v<_?(d=x,_=v):(y=[a(t,n,o,u,b),a(e,r,s,c,b)],m=i.squaredDistance(S,y),b<=1&&m<_?(d=b,_=m):w*=.5)}return l&&(l.x=a(t,n,o,u,d),l.y=a(e,r,s,c,d)),Math.sqrt(_)}function u(t,e,n,i){var a,o,s,u=3*t-9*e+9*n-3*i,c=6*e-12*n+6*i,h=3*n-3*i,f=[];if(r.isNumberEqual(u,0))r.isNumberEqual(c,0)||(a=-h/c,a>=0&&a<=1&&f.push(a));else{var l=c*c-4*u*h;r.isNumberEqual(l,0)?f.push(-c/(2*u)):l>0&&(s=Math.sqrt(l),a=(-c+s)/(2*u),o=(-c-s)/(2*u),a>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n}function h(t,e,n,i,a,o,s,u,h){r.isNil(h)&&(h=1),h=h>1?1:h<0?0:h;for(var f=h/2,l=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,v=0;v2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else while(a.length>=e[s])if(n.push([r].concat(a.splice(0,e[s]))),!e[s])break})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},c=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o),c=e+n*Math.sin(-r*o),h=e+n*Math.sin(-i*o);a=[["M",s,c],["A",n,n,0,+(i-r>180),0,u,h]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},h=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,h=0,f=0;"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],o=i,h=a,f++,r[0]=["M",i,a]);for(var l,d,p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=f,v=t.length;g1&&(_=Math.sqrt(_),r*=_,i*=_);var M=r*r,S=i*i,k=(o===s?-1:1)*Math.sqrt(Math.abs((M*S-M*w*w-S*b*b)/(M*w*w+S*b*b)));p=k*r*w/i+(e+u)/2,g=k*-i*b/r+(n+c)/2,l=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((c-g)/i).toFixed(9)),l=ed&&(l-=2*Math.PI),!s&&d>l&&(d-=2*Math.PI)}var A=d-l;if(Math.abs(A)>v){var P=d,C=u,E=c;d=l+v*(s&&d>l?1:-1),u=p+r*Math.cos(d),c=g+i*Math.sin(d),y=t(u,c,r,i,a,0,s,C,E,[d,P,p,g])}A=d-l;var I=Math.cos(l),O=Math.sin(l),T=Math.cos(d),N=Math.sin(d),j=Math.tan(A/4),B=4/3*r*j,L=4/3*i*j,D=[e,n],R=[e+B*O,n-L*I],F=[u+B*N,c-L*T],Y=[u,c];if(R[0]=2*D[0]-R[0],R[1]=2*D[1]-R[1],h)return[R,F,Y].concat(y);y=[R,F,Y].concat(y).join().split(",");for(var q=[],z=0,X=y.length;z7){t[e].shift();var a=t[e];while(a.length)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y1?1:u<0?0:u;for(var c=u/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p0&&f<1&&l.push(f)}else{var g=c*c-4*h*u,v=Math.sqrt(g);if(!(g<0)){var m=(-c+v)/(2*u);m>0&&m<1&&l.push(m);var y=(-c-v)/(2*u);y>0&&y<1&&l.push(y)}}var x,b=l.length,w=b;while(b--)f=l[b],x=1-f,d[0][b]=x*x*x*t+3*x*x*f*n+3*x*f*f*i+f*f*f*o,d[1][b]=x*x*x*e+3*x*x*f*r+3*x*f*f*a+f*f*f*s;return d[0][w]=t,d[1][w]=e,d[0][w+1]=o,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},b=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),c=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),h=(t-n)*(a-s)-(e-r)*(i-o);if(h){var f=u/h,l=c/h,d=+f.toFixed(2),p=+l.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,o).toFixed(2)||d>+Math.max(i,o).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:l}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},_=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a},M=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:_(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e){return t=M(t),e=M(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},k=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var c=x.apply(null,t);return M(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},A=function(t,e,n,r,i,a,o,s,u){var c=1-u,h=Math.pow(c,3),f=Math.pow(c,2),l=u*u,d=l*u,p=h*t+3*f*u*n+3*c*u*u*i+d*o,g=h*e+3*f*u*r+3*c*u*u*a+d*s,v=t+2*u*(n-t)+l*(i-2*n+t),m=e+2*u*(r-e)+l*(a-2*r+e),y=n+2*u*(i-n)+l*(o-2*i+n),x=r+2*u*(a-r)+l*(s-2*a+r),b=c*t+u*n,w=c*e+u*r,_=c*i+u*o,M=c*a+u*s,S=90-180*Math.atan2(v-y,m-x)/Math.PI;return{x:p,y:g,m:{x:v,y:m},n:{x:y,y:x},start:{x:b,y:w},end:{x:_,y:M},alpha:S}},P=function(t,e,n){var r=k(t),i=k(e);if(!S(r,i))return n?0:[];for(var a=y.apply(0,t),o=y.apply(0,e),s=~~(a/8),u=~~(o/8),c=[],h=[],f={},l=n?0:[],d=0;d=0&&O<=1&&T>=0&&T<=1&&(n?l++:l.push({x:I.x,y:I.y,t1:O,t2:T}))}}return l},C=function(t,e,n){var r,i,a,o,s,u,c,h,f,l;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return h}var T=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(O(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},N=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;f--)o=a[f].index,"add"===a[f].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var l=i-r;if(r0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t};t.exports={parsePathString:s,parsePathArray:v,pathTocurve:p,pathToAbsolute:h,catmullRomToBezier:u,rectPath:_,fillPath:N,fillPathByDiff:D,formatPath:Y,intersection:E}},function(t,e,n){"use strict";e["b"]=p,e["a"]=v,e["c"]=m,e["d"]=y;var r,i,a=0,o=0,s=0,u=1e3,c=0,h=0,f=0,l="object"===typeof performance&&performance.now?performance:Date,d="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return h||(d(g),h=l.now()+f)}function g(){h=0}function v(){this._call=this._time=this._next=null}function m(t,e,n){var r=new v;return r.restart(t,e,n),r}function y(){p(),++a;var t,e=r;while(e)(t=h-e._time)>=0&&e._call.call(null,t),e=e._next;--a}function x(){h=(c=l.now())+f,a=o=0;try{y()}finally{a=0,w(),h=0}}function b(){var t=l.now(),e=t-c;e>u&&(f-=e,c=t)}function w(){var t,e,n=r,a=1/0;while(n)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(a)}function _(t){if(!a){o&&(o=clearTimeout(o));var e=t-h;e>24?(t<1/0&&(o=setTimeout(x,t-l.now()-f)),s&&(s=clearInterval(s))):(s||(c=l.now(),s=setInterval(b,u)),a=1,d(x))}}v.prototype=m.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},function(t,e,n){"use strict";var r=n(3),i=n(55),a=n(58),o=n(59),s=n(11),u=n(60),c=n(61),h=n(57);e["a"]=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(h["a"])(e):("number"===f?s["a"]:"string"===f?(n=Object(r["a"])(e))?(e=n,i["a"]):c["a"]:e instanceof r["a"]?i["a"]:e instanceof Date?o["a"]:Array.isArray(e)?a["a"]:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?u["a"]:s["a"])(t,e)}},function(t,e,n){"use strict";e["a"]=i,n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return o})),e["e"]=w,e["h"]=S,e["g"]=k,e["b"]=A,e["f"]=T;var r=n(26);function i(){}var a=.7,o=1/a,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),l=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),p=new RegExp("^rgba\\("+[c,c,c,u]+"\\)$"),g=new RegExp("^hsl\\("+[u,c,c]+"\\)$"),v=new RegExp("^hsla\\("+[u,c,c,u]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return O(this).formatHsl()}function b(){return this.rgb().formatRgb()}function w(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?M(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?M(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(t))?new A(e[1],e[2],e[3],1):(e=l.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?M(e[1],e[2],e[3],e[4]):(e=p.exec(t))?M(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?I(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?I(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?_(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function _(t){return new A(t>>16&255,t>>8&255,255&t,1)}function M(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function S(t){return t instanceof i||(t=w(t)),t?(t=t.rgb(),new A(t.r,t.g,t.b,t.opacity)):new A}function k(t,e,n,r){return 1===arguments.length?S(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+E(this.r)+E(this.g)+E(this.b)}function C(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function E(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function I(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new N(t,e,n,r)}function O(t){if(t instanceof N)return new N(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new N;if(t instanceof N)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-a,c=(o+a)/2;return u?(s=e===o?(n-r)/u+6*(n0&&c<1?0:s,new N(s,u,c,t.opacity)}function T(t,e,n,r){return 1===arguments.length?O(t):new N(t,e,n,null==r?1:r)}function N(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function j(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r["a"])(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:x,formatRgb:b,toString:b}),Object(r["a"])(A,k,Object(r["b"])(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatRgb:C,toString:C})),Object(r["a"])(N,T,Object(r["b"])(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new N(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new N(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(j(t>=240?t-240:t+120,i,r),j(t,i,r),j(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e["b"]=r,e["a"]=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}e["a"]=r,e["b"]=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=in?n:t};t.exports=n},function(t,e,n){var r=n(86);r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},function(t,e,n){var r=n(0),i=n(38),a=n(97),o={},s="_INDEX",u=["zIndex","capture","visible"];function c(t){return function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r}}function h(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function f(t){for(var e=[],n=0;n=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!r.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(r.isArray(t))r.each(t,(function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)})),e._cfg.children=n.concat(t);else{var i=t,a=i.get("parent");a&&a.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){var e=this.get("children");return e.indexOf(t)>-1},getChildByIndex:function(t){var e=this.get("children");return e[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=this,e=1/0,n=-1/0,i=1/0,a=-1/0,o=t.get("children");o.length>0?r.each(o,(function(t){if(t.get("visible")){if(t.isGroup&&0===t.get("children").length)return;var r=t.getBBox();if(!r)return!0;var o=[r.minX,r.minY,1],s=[r.minX,r.maxY,1],u=[r.maxX,r.minY,1],c=[r.maxX,r.maxY,1];t.apply(o),t.apply(s),t.apply(u),t.apply(c);var h=Math.min(o[0],s[0],u[0],c[0]),f=Math.max(o[0],s[0],u[0],c[0]),l=Math.min(o[1],s[1],u[1],c[1]),d=Math.max(o[1],s[1],u[1],c[1]);hn&&(n=f),la&&(a=d)}})):(e=0,n=0,i=0,a=0);var s={minX:e,minY:i,maxX:n,maxY:a};return s.x=s.minX,s.y=s.minY,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY,s},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return r.each(t,(function(t,e){return t[s]=e,t})),t.sort(c((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this},findById:function(t){return this.find((function(e){return e.get("id")===t}))},find:function(t){if(r.isString(t))return this.findById(t);var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1})),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},findBy:function(t){var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1})),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},getShape:function(t,e){var n,r=this,i=r._attrs.clip,a=r._cfg.children;if(i){var o=[t,e,1];i.invert(o,r.get("canvas")),i.isPointInPath(o[0],o[1])&&(n=h(a,t,e))}else n=h(a,t,e);return n},clearTotalMatrix:function(){var t=this.get("totalMatrix");if(t){this.setSilent("totalMatrix",null);for(var e=this._cfg.children,n=0;n=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this}},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))},clone:function(){var t=this,e=t._cfg.children,n=t._attrs,i={};r.each(n,(function(t,e){i[e]="matrix"===e?f(n[e]):n[e]}));var a=new l({attrs:i,canvas:t.get("canvas")});return r.each(e,(function(t){a.add(t.clone())})),r.each(u,(function(e){a._cfg[e]=t._cfg[e]})),a}}),t.exports=l},function(t,e,n){var r=n(0),i=n(93),a=n(94),o=n(95),s=n(96),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){var t=this.get("destroyed");t||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){var r=n(12),i=Array.prototype.slice;function a(t,e){var n=t.length;while(n--)if(t[n].callback===e)return n;return-1}var o=function(){};r.augment(o,{on:function(t,e,n){var i=this;if(!r.isFunction(e))throw new TypeError("listener should be a function");return i._cfg._events||(i._cfg._events={}),i._cfg._events[t]||(i._cfg._events[t]=[]),i._cfg._events[t].push({callback:e,one:n}),this},one:function(t,e){return this.on(t,e,!0),this},emit:function(t){if(!this.get("destroyed")&&this._cfg._events&&!r.isEmpty(this._cfg._events)){var e=this._cfg._events[t];if(!r.isEmpty(e))for(var n=arguments,a=i.call(n,1),o=e.length,s=0;s=0&&n[t].splice(i,1),0===n[t].length&&delete n[t]}}},removeEvent:function(t){return"undefined"===typeof t?this._cfg._events={}:delete this._cfg._events[t],this},_getEvents:function(){return this._cfg._events||{}}}),t.exports=o},function(t,e,n){var r=n(0),i=r.vec2;function a(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function o(t,e,n,r,o,s,u,c,h){var f,l,d,p,g,v,m,y=.005,x=1/0,b=1e-4,w=[u,c];for(g=0;g<1;g+=.05)d=[a(t,n,o,g),a(e,r,s,g)],l=i.squaredDistance(w,d),l=0&&l=0?[a]:[]}t.exports={at:a,projectPoint:function(t,e,n,r,i,a,s,u){var c={};return o(t,e,n,r,i,a,s,u,c),c},pointDistance:o,extrema:s}},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){var r=n(0),i=n(1),a=n(8),o=n(9);function s(t,e,n){return t+e*Math.cos(n)}function u(t,e,n){return t+e*Math.sin(n)}var c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,s=t.clockwise,u=this.getHitLineWidth(),c=u/2,h=a.box(e,n,r,i,o,s);return h.minX-=c,h.minY-=c,h.maxX+=c,h.maxY+=c,h},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.startAngle,i=t.r,a=t.clockwise,o=Math.PI/180;a&&(o*=-1);var c=[],h=s(e,i,r+o),f=u(n,i,r+o),l=s(e,i,r),d=u(n,i,r);return c.push([h,f]),c.push([l,d]),c},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.endAngle,i=t.r,a=t.clockwise,o=Math.PI/180,c=[];a&&(o*=-1);var h=s(e,i,r+o),f=u(n,i,r+o),l=s(e,i,r),d=u(n,i,r);return c.push([l,d]),c.push([h,f]),c},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();o.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();o.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=c},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=a>o?1:a/o,c=a>o?o/a:1,h=[1,0,0,0,1,0,0,0,1];r.mat3.scale(h,h,[u,c]),r.mat3.translate(h,h,[n,i]),t.beginPath(),t.save(),t.transform(h[0],h[1],h[3],h[4],h[6],h[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=n(8),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.rs,o=e.re,s=e.startAngle,u=e.endAngle,c=e.clockwise,h=this.getHitLineWidth(),f=a.box(n,r,i,s,u,c),l=a.box(n,r,o,s,u,c),d=Math.min(f.minX,l.minX),p=Math.min(f.minY,l.minY),g=Math.max(f.maxX,l.maxX),v=Math.max(f.maxY,l.maxY),m=h/2;return{minX:d-m,minY:p-m,maxX:g+m,maxY:v+m}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},h={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},f={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};t=t||self.get("context"),t.beginPath(),t.moveTo(c.x,c.y),t.lineTo(h.x,h.y),t.arc(n,r,a,o,s,u),t.lineTo(f.x,f.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y,r=t.width,i=t.height;return{minX:e,minY:n,maxX:e+r,maxY:n+i}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,h=e.swidth,f=e.sheight;this.set("toDraw",!1);var l=a;if(l instanceof ImageData&&(l=new Image,l.src=a),l instanceof Image||l instanceof HTMLElement&&r.isString(l.nodeName)&&"CANVAS"===l.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(c)||r.isNil(h)||r.isNil(f))return void t.drawImage(l,n,i,o,s);if(!r.isNil(u)&&!r.isNil(c)&&!r.isNil(h)&&!r.isNil(f))return void t.drawImage(l,u,c,h,f,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=n(9),o=n(7),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this,n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;if(n.startArrow&&n.startArrow.d){var u=a.getShortenOffset(r,i,o,s,n.startArrow.d);r+=u.dx,i+=u.dy}if(n.endArrow&&n.endArrow.d){var c=a.getShortenOffset(r,i,o,s,n.endArrow.d);o-=c.dx,s-=c.dy}t=t||e.get("context"),t.beginPath(),t.moveTo(r,i),t.lineTo(o,s)},afterPath:function(t){var e=this,n=e._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,o,s,r,i),n.endArrow&&a.addEndArrow(t,n,r,i,o,s)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var r=n(0),i=n(1),a=n(10),o=n(4),s=n(9),u=n(22),c=n(20),h=function t(e){t.superclass.constructor.call(this,e)};h.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(h,i),r.augment(h,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){var e=this;if(r.isNil(t))return e.setSilent("segments",null),void e.setSilent("box",void 0);var n,i=o.parsePath(t),s=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var u=i.length,c=0;ca&&(a=e.maxX),e.minYs&&(s=e.maxY))})),i===1/0||o===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:i,minY:o,maxX:a,maxY:s}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;u&&(r.each(u,(function(t,e){n=u[e+1],i=t.length,n&&(a+=c.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),this._cfg.totalLength=a,0!==a?(r.each(u,(function(r,h){n=u[h+1],i=r.length,n&&(t=[],t[0]=o/a,e=c.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))})),this._cfg.tCache=s):this._cfg.tCache=[])},getTotalLength:function(){var t=this.get("totalLength");return r.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},_calculateCurve:function(){var t=this,e=t._attrs,n=e.path;this._cfg.curve=u.pathTocurve(n)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,i=[],r.isFunction(n)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i||0===i.length)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-e),y:c.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this,n=e._attrs,i=e.get("segments");if(r.isArray(i)){var a=i.length;if(0!==a){if(t=t||e.get("context"),t.beginPath(),n.startArrow&&n.startArrow.d){var o=e.getStartTangent(),u=s.getShortenOffset(o[0][0],o[0][1],o[1][0],o[1][1],n.startArrow.d);i[0].shortenDraw(t,u.dx,u.dy)}else i[0].draw(t);for(var c=1;c2&&i[a-2].draw(t),l.shortenDraw(t,f.dx,f.dy))}else i[a-2]&&i[a-2].draw(t),i[a-1].draw(t)}}},afterPath:function(t){var e=this,n=e._attrs,i=e.get("segments"),a=n.path;if(t=t||e.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==a[a.length-1]&&"Z"!==a[a.length-1]&&!n.fill){var o=e.getStartTangent();s.addStartArrow(t,n,o[0][0],o[0][1],o[1][0],o[1][1]);var u=e.getEndTangent();s.addEndArrow(t,n,u[0][0],u[0][1],u[1][0],u[1][1])}}}),t.exports=h},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this,e=t._attrs,n=e.points,i=this.getHitLineWidth();if(!n||0===n.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(n,(function(t){var e=t[0],n=t[1];es&&(s=e),nu&&(u=n)}));var c=i/2;return{minX:a-c,minY:o-c,maxX:s+c,maxY:u+c}},createPath:function(t){var e=this,n=e._attrs,i=n.points;i.length<2||(t=t||e.get("context"),t.beginPath(),r.each(i,(function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])})),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=n(9),o=n(7),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this,e=t._attrs,n=this.getHitLineWidth(),i=e.points;if(!i||0===i.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(i,(function(t){var e=t[0],n=t[1];es&&(s=e),nu&&(u=n)}));var c=n/2;return{minX:a-c,minY:o-c,maxX:s+c,maxY:u+c}},_setTcache:function(){var t,e,n=this,i=n._attrs,a=i.points,s=0,u=0,c=[];a&&0!==a.length&&(r.each(a,(function(t,e){a[e+1]&&(s+=o.len(t[0],t[1],a[e+1][0],a[e+1][1]))})),s<=0||(r.each(a,(function(n,r){a[r+1]&&(t=[],t[0]=u/s,e=o.len(n[0],n[1],a[r+1][0],a[r+1][1]),u+=e,t[1]=u/s,c.push(t))})),this.tCache=c))},createPath:function(t){var e,n=this,r=n._attrs,i=r.points;if(!(i.length<2)){var o=i.length-1,s=i[0][0],u=i[0][1],c=i[o][0],h=i[o][1];if(r.startArrow&&r.startArrow.d){var f=a.getShortenOffset(i[0][0],i[0][1],i[1][0],i[1][1],r.startArrow.d);s+=f.dx,u+=f.dy}if(r.endArrow&&r.endArrow.d){var l=a.getShortenOffset(i[o-1][0],i[o-1][1],i[o][0],i[o][1],r.endArrow.d);c-=l.dx,h-=l.dy}for(t=t||n.get("context"),t.beginPath(),t.moveTo(s,u),e=1;e=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:o.at(a[n][0],a[n+1][0],e),y:o.at(a[n][1],a[n+1][1],e)}}}),t.exports=s},function(t,e,n){var r=n(0),i=n(4),a=i.parseRadius,o=n(1),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(s,o),r.augment(s,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}},createPath:function(t){var e=this,n=e._attrs,r=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(t=t||e.get("context"),t.beginPath(),0===u)t.rect(r,i,o,s);else{var c=a(u);t.moveTo(r+c.r1,i),t.lineTo(r+o-c.r2,i),0!==c.r2&&t.arc(r+o-c.r2,i+c.r2,c.r2,-Math.PI/2,0),t.lineTo(r+o,i+s-c.r3),0!==c.r3&&t.arc(r+o-c.r3,i+s-c.r3,c.r3,0,Math.PI/2),t.lineTo(r+c.r4,i+s),0!==c.r4&&t.arc(r+c.r4,i+s-c.r4,c.r4,Math.PI/2,Math.PI),t.lineTo(r,i+c.r1),0!==c.r1&&t.arc(r+c.r1,i+c.r1,c.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=s},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e))if(-1!==e.indexOf("\n")){n=e.split("\n");var i=n.length;t.lineCount=i}else t.lineCount=1;t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){var r=this._getSpaceingY();return n*e+r*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this,e=t._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),e.textArr||this._setAttrText();var r=e.x,i=e.y,a=t.measureText();if(!a)return{minX:r,minY:i,maxX:r,maxY:i};var o=t._getTextHeight(),s=e.textAlign,u=e.textBaseline,c=t.getHitLineWidth(),h={x:r,y:i-o};s&&("end"===s||"right"===s?h.x-=a:"center"===s&&(h.x-=a/2)),u&&("top"===u?h.y+=o:"middle"===u&&(h.y+=o/2)),this.set("startPoint",h);var f=c/2;return{minX:h.x-f,minY:h.y-f,maxX:h.x+a+f,maxY:h.y+o+f}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this,n=e._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,u=n.y;if(t.beginPath(),e.hasStroke()){var c=n.strokeOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),o?e._drawTextArr(t,!1):t.strokeText(a,s,u),t.globalAlpha=1}if(e.hasFill()){var h=n.fillOpacity;r.isNil(h)||1===h||(t.globalAlpha=h),o?e._drawTextArr(t,!0):t.fillText(a,s,u)}i.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,c=this._attrs.y,h=this.getBBox(),f=h.maxY-h.minY;r.each(i,(function(r,i){n=c+i*(s+o)-f+o,"middle"===a&&(n+=f-o-(f-o)/2),"top"===a&&(n+=f-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)}))},measureText:function(){var t,e=this,n=e._attrs,i=n.text,a=n.font,o=n.textArr,s=0;if(!r.isNil(i)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=a,o?r.each(o,(function(e){t=u.measureText(e).width,sh&&(c=e.slice(h,c),l[f]?l[f]+=c:l[++f]=c),(n=n[0])===(u=u[0])?l[f]?l[f]+=u:l[++f]=u:(l[++f]=null,d.push({i:f,x:Object(r["a"])(n,u)})),h=a.lastIndex;return h1)for(var n=1;n-1)r.call(t,s,1)}return t};t.exports=o},function(t,e){var n=1e-5;t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;return Math.abs(t-e)]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=o,e.fromMat4=s,e.clone=u,e.copy=c,e.fromValues=h,e.set=f,e.identity=l,e.transpose=d,e.invert=p,e.adjoint=g,e.determinant=v,e.multiply=m,e.translate=y,e.rotate=x,e.scale=b,e.fromTranslation=w,e.fromRotation=_,e.fromScaling=M,e.fromMat2d=S,e.fromQuat=k,e.normalFromMat4=A,e.projection=P,e.str=C,e.frob=E,e.add=I,e.subtract=O,e.multiplyScalar=T,e.multiplyScalarAndAdd=N,e.exactEquals=j,e.equals=B;var r=n(17),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(9);return i.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function u(t){var e=new i.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function h(t,e,n,r,a,o,s,u,c){var h=new i.ARRAY_TYPE(9);return h[0]=t,h[1]=e,h[2]=n,h[3]=r,h[4]=a,h[5]=o,h[6]=s,h[7]=u,h[8]=c,h}function f(t,e,n,r,i,a,o,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=c,t}function l(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function d(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function p(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8],f=h*o-s*c,l=-h*a+s*u,d=c*a-o*u,p=n*f+r*l+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-h*r+i*c)*p,t[2]=(s*r-i*o)*p,t[3]=l*p,t[4]=(h*n-i*u)*p,t[5]=(-s*n+i*a)*p,t[6]=d*p,t[7]=(-c*n+r*u)*p,t[8]=(o*n-r*a)*p,t):null}function g(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8];return t[0]=o*h-s*c,t[1]=i*c-r*h,t[2]=r*s-i*o,t[3]=s*u-a*h,t[4]=n*h-i*u,t[5]=i*a-n*s,t[6]=a*c-o*u,t[7]=r*u-n*c,t[8]=n*o-r*a,t}function v(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],c=t[8];return e*(c*a-o*u)+n*(-c*i+o*s)+r*(u*i-a*s)}function m(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=n[0],d=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],x=n[7],b=n[8];return t[0]=l*r+d*o+p*c,t[1]=l*i+d*s+p*h,t[2]=l*a+d*u+p*f,t[3]=g*r+v*o+m*c,t[4]=g*i+v*s+m*h,t[5]=g*a+v*u+m*f,t[6]=y*r+x*o+b*c,t[7]=y*i+x*s+b*h,t[8]=y*a+x*u+b*f,t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=l*r+d*o+c,t[7]=l*i+d*s+h,t[8]=l*a+d*u+f,t}function x(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=Math.sin(n),d=Math.cos(n);return t[0]=d*r+l*o,t[1]=d*i+l*s,t[2]=d*a+l*u,t[3]=d*o-l*r,t[4]=d*s-l*i,t[5]=d*u-l*a,t[6]=c,t[7]=h,t[8]=f,t}function b(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function w(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function _(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function k(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,c=n*o,h=r*o,f=r*s,l=i*o,d=i*s,p=i*u,g=a*o,v=a*s,m=a*u;return t[0]=1-f-p,t[3]=h-m,t[6]=l+v,t[1]=h+m,t[4]=1-c-p,t[7]=d-g,t[2]=l-v,t[5]=d+g,t[8]=1-c-f,t}function A(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8],f=e[9],l=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*o,x=n*u-i*o,b=n*c-a*o,w=r*u-i*s,_=r*c-a*s,M=i*c-a*u,S=h*g-f*p,k=h*v-l*p,A=h*m-d*p,P=f*v-l*g,C=f*m-d*g,E=l*m-d*v,I=y*E-x*C+b*P+w*A-_*k+M*S;return I?(I=1/I,t[0]=(s*E-u*C+c*P)*I,t[1]=(u*A-o*E-c*k)*I,t[2]=(o*C-s*A+c*S)*I,t[3]=(i*C-r*E-a*P)*I,t[4]=(n*E-i*A+a*k)*I,t[5]=(r*A-n*C-a*S)*I,t[6]=(g*M-v*_+m*w)*I,t[7]=(v*b-p*M-m*x)*I,t[8]=(p*_-g*b+m*y)*I,t):null}function P(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function C(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function E(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))}function I(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function O(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function T(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function N(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function j(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function B(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],h=t[7],f=t[8],l=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],x=e[7],b=e[8];return Math.abs(n-l)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-d)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-g)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-m)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-y)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(h-x)<=i.EPSILON*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(f-b)<=i.EPSILON*Math.max(1,Math.abs(f),Math.abs(b))}e.mul=m,e.sub=O},function(t,e,n){var r=n(88),i=n(35);r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=o,e.clone=s,e.fromValues=u,e.copy=c,e.set=h,e.add=f,e.subtract=l,e.multiply=d,e.divide=p,e.ceil=g,e.floor=v,e.min=m,e.max=y,e.round=x,e.scale=b,e.scaleAndAdd=w,e.distance=_,e.squaredDistance=M,e.length=S,e.squaredLength=k,e.negate=A,e.inverse=P,e.normalize=C,e.dot=E,e.cross=I,e.lerp=O,e.random=T,e.transformMat2=N,e.transformMat2d=j,e.transformMat3=B,e.transformMat4=L,e.rotate=D,e.angle=R,e.str=F,e.exactEquals=Y,e.equals=q;var r=n(17),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function s(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function u(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function c(t,e){return t[0]=e[0],t[1]=e[1],t}function h(t,e,n){return t[0]=e,t[1]=n,t}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function g(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function v(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function x(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function w(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function S(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function k(t){var e=t[0],n=t[1];return e*e+n*n}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function C(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]}function I(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function O(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t}function T(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function N(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function j(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function B(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function D(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t}function R(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function Y(t,e){return t[0]===e[0]&&t[1]===e[1]}function q(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))}e.len=S,e.sub=l,e.mul=d,e.div=p,e.dist=_,e.sqrDist=M,e.sqrLen=k,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function O(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function T(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),h=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*h,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*h,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*h,t}function N(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,c=s*o,h=3*a*s,f=3*u*o,l=u*a;return t[0]=e[0]*c+n[0]*h+r[0]*f+i[0]*l,t[1]=e[1]*c+n[1]*h+r[1]*f+i[1]*l,t[2]=e[2]*c+n[2]*h+r[2]*f+i[2]*l,t}function j(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t}function B(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function L(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function D(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],c=e[2],h=i*c-a*u,f=a*s-r*c,l=r*u-i*s,d=i*l-a*f,p=a*h-r*l,g=r*f-i*h,v=2*o;return h*=v,f*=v,l*=v,d*=2,p*=2,g*=2,t[0]=s+h+d,t[1]=u+f+p,t[2]=c+l+g,t}function R(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function F(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function Y(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function q(t,e){var n=c(t[0],t[1],t[2]),r=c(e[0],e[1],e[2]);C(n,n),C(r,r);var i=E(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)}function z(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function X(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))}e.sub=d,e.mul=p,e.div=g,e.dist=M,e.sqrDist=S,e.len=u,e.sqrLen=k,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s120||y>s?(l=i,h=null,this._emitEvent("dragstart",e,r,i)):n._emitEvent("mousemove",e,r,i)}else n._emitEvent("mousemove",e,r,i);c!==i&&(n._emitEvent("mouseenter",e,r,i),n._emitEvent("mouseover",e,r,i),l&&n._emitEvent("dragenter",e,r,i))}else{var x=n._getEventObj("mousemove",e,r,n);n.emit("mousemove",x)}c=i}else if(this._emitEvent(t,e,r,i||this),l||"mousedown"!==t||e.button!==u||(h=i,f={x:e.clientX,y:e.clientY},d=o()),"mouseup"===t&&e.button===u){var b=f.x-e.clientX,w=f.y-e.clientY,_=b*b+w*w,M=o(),S=M-d;(_2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return r.each(t,(function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",r.mat3.multiply([],n,t[1])),e.clearTotalMatrix();break;default:break}})),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),r.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){var e=this;t=t||e;var n=e,i=[];while(n!==t)i.unshift(n),n=n.get("parent");i.unshift(n);var a=[1,0,0,0,1,0,0,0,1];return r.each(i,(function(t){r.mat3.multiply(a,t.attr("matrix"),a)})),a},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){var n=e.getTotalMatrix();o(t,n)}o(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(a(e))t[0]/=e[0],t[1]/=e[4];else{var n=r.mat3.invert([],e);n&&r.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;e0?l=u(l,d):f.addAnimator(h),l.push(d),h.setSilent("animators",l),h.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");i.each(e,(function(e){t.attr(e.toAttrs||e.onFrame(1)),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this,e=t.get("timeline");return t.setSilent("pause",{isPaused:!0,pauseTime:e.getTime()}),t},resumeAnimate:function(){var t=this,e=t.get("timeline"),n=e.getTime(),r=t.get("animators"),a=t.get("pause").pauseTime;return i.each(r,(function(t){t.startTime=t.startTime+(n-a),t._paused=!1,t._pauseTime=null})),t.setSilent("pause",{isPaused:!1}),t.setSilent("animators",r),t}}},function(t,e,n){var r=n(0),i=n(18),a=n(39),o=["click","mousedown","mouseup","dblclick","contextmenu","mouseout","mouseover","mousemove","dragstart","drag","dragend","dragenter","dragleave","drop"],s=function(){};r.augment(s,a,{emit:function(t,e){var n=arguments;if(a.prototype.emit.apply(this,n),!(n.length>=2&&n[1]instanceof i&&n[1].propagationStopped)&&o.indexOf(t)>=0&&e.target===this){var r=this._cfg.parent;while(r&&!r.get("destroyed"))r.emit.apply(r,n),r=r._cfg.parent}}}),t.exports=s},function(t,e,n){var r=n(1);r.Arc=n(42),r.Circle=n(43),r.Dom=n(44),r.Ellipse=n(45),r.Fan=n(46),r.Image=n(47),r.Line=n(48),r.Marker=n(21),r.Path=n(49),r.Polygon=n(50),r.Polyline=n(51),r.Rect=n(52),r.Text=n(53),t.exports=r},function(t,e,n){var r=n(0),i=n(19),a={arc:n(8),ellipse:n(41),line:n(7)},o=r.createDom(''),s=o.getContext("2d");function u(t,e,n){return n.createPath(s),s.isPointInPath(t,e)}var c=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,h=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,a,o,s,u,c,h,t,e)},h=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?i.circle(r,a,o,t,e)||i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e):u?i.circle(r,a,o,t,e):!!c&&i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e)},f=function(t,e){var n=this._attrs,a=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,c=n.rx,h=n.ry,f=this.getHitLineWidth(),l=c>h?c:h,d=c>h?1:c/h,p=c>h?h/c:1,g=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[d,p]),r.mat3.translate(v,v,[s,u]);var m=r.mat3.invert([],v);return r.vec3.transformMat3(g,g,m),a&&o?i.circle(0,0,l,g[0],g[1])||i.arcline(0,0,l,0,2*Math.PI,!1,f,g[0],g[1]):a?i.circle(0,0,l,g[0],g[1]):!!o&&i.arcline(0,0,l,0,2*Math.PI,!1,f,g[0],g[1])},l=function(t,e){var n=this,o=n.hasFill(),s=n.hasStroke(),u=n._attrs,c=u.x,h=u.y,f=u.rs,l=u.re,d=u.startAngle,p=u.endAngle,g=u.clockwise,v=[1,0],m=[t-c,e-h],y=r.vec2.angleTo(v,m);function x(){var t=a.arc.nearAngle(y,d,p,g);if(r.isNumberEqual(y,t)){var e=r.vec2.squaredLength(m);if(f*f<=e&&e<=l*l)return!0}return!1}function b(){var r=n.getHitLineWidth(),a={x:Math.cos(d)*f+c,y:Math.sin(d)*f+h},o={x:Math.cos(d)*l+c,y:Math.sin(d)*l+h},s={x:Math.cos(p)*f+c,y:Math.sin(p)*f+h},u={x:Math.cos(p)*l+c,y:Math.sin(p)*l+h};return!!i.line(a.x,a.y,o.x,o.y,r,t,e)||(!!i.line(s.x,s.y,u.x,u.y,r,t,e)||(!!i.arcline(c,h,f,d,p,g,r,t,e)||!!i.arcline(c,h,l,d,p,g,r,t,e)))}return o&&s?x()||b():o?x():!!s&&b()},d=function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,t,e)},p=function(t,e){var n=this._attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,a,o,s,u,t,e)},g=function(t,e){var n=this,i=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function s(){if(!r.isEmpty(i)){for(var a=n.getHitLineWidth(),o=0,s=i.length;o=3&&s.push(a[0]),i.polyline(s,o,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},m=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,a,o+s/2,t,e)},y=function(t,e){var n=this,r=n._attrs;if(n.hasStroke()){var a=r.points;if(a.length<2)return!1;var o=r.lineWidth;return i.polyline(a,o,t,e)}return!1},x=function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.x,o=r.y,s=r.width,u=r.height,c=r.radius,h=n.getHitLineWidth();if(0===c){var f=h/2;return i.line(a-f,o,a+s+f,o,h,t,e)||i.line(a+s,o-f,a+s,o+u+f,h,t,e)||i.line(a+s+f,o+u,a-f,o+u,h,t,e)||i.line(a,o+u+f,a,o-f,h,t,e)}return i.line(a+c,o,a+s-c,o,h,t,e)||i.line(a+s,o+c,a+s,o+u-c,h,t,e)||i.line(a+s-c,o+u,a+c,o+u,h,t,e)||i.line(a,o+u-c,a,o+c,h,t,e)||i.arcline(a+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,h,t,e)||i.arcline(a+s-c,o+u-c,c,0,.5*Math.PI,!1,h,t,e)||i.arcline(a+c,o+u-c,c,.5*Math.PI,Math.PI,!1,h,t,e)||i.arcline(a+c,o+c,c,Math.PI,1.5*Math.PI,!1,h,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},b=function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},w=function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},_={arc:c,circle:h,dom:w,ellipse:f,fan:l,image:d,line:p,path:g,marker:m,polygon:v,polyline:y,rect:x,text:b};t.exports={isPointInPath:function(t,e){var n=_[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){var r=n(0),i=n(22),a=n(100),o=n(103),s=n(114),u=s.interpolate,c=s.interpolateArray,h=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};function f(t,e,n){var a={},o=e.toAttrs,s=e.fromAttrs,h=e.toMatrix;if(!t.get("destroyed")){var f;for(var l in o)if(!r.isEqual(s[l],o[l]))if("path"===l){var d=o[l],p=s[l];d.length>p.length?(d=i.parsePathString(o[l]),p=i.parsePathString(s[l]),p=i.fillPathByDiff(p,d),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=i.parsePathString(o[l]),p=i.parsePathString(s[l]),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),a[l]=[];for(var g=0;g0){for(var s=r._animators.length-1;s>=0;s--)if(t=r._animators[s],t.get("destroyed"))i.removeAnimator(s);else{if(!t.get("pause").isPaused){e=t.get("animators");for(var u=e.length-1;u>=0;u--)n=e[u],o=l(t,n,a),o&&(e.splice(u,1),o=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(s)}r.canvas.draw()}}))},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(t){t.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(23);n.d(e,"now",(function(){return r["b"]})),n.d(e,"timer",(function(){return r["c"]})),n.d(e,"timerFlush",(function(){return r["d"]}));var i=n(101);n.d(e,"timeout",(function(){return i["a"]}));var a=n(102);n.d(e,"interval",(function(){return a["a"]}))},function(t,e,n){"use strict";var r=n(23);e["a"]=function(t,e,n){var i=new r["a"];return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";var r=n(23);e["a"]=function(t,e,n){var i=new r["a"],a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Object(r["b"])():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(104);n.d(e,"easeLinear",(function(){return r["a"]}));var i=n(105);n.d(e,"easeQuad",(function(){return i["b"]})),n.d(e,"easeQuadIn",(function(){return i["a"]})),n.d(e,"easeQuadOut",(function(){return i["c"]})),n.d(e,"easeQuadInOut",(function(){return i["b"]}));var a=n(106);n.d(e,"easeCubic",(function(){return a["b"]})),n.d(e,"easeCubicIn",(function(){return a["a"]})),n.d(e,"easeCubicOut",(function(){return a["c"]})),n.d(e,"easeCubicInOut",(function(){return a["b"]}));var o=n(107);n.d(e,"easePoly",(function(){return o["b"]})),n.d(e,"easePolyIn",(function(){return o["a"]})),n.d(e,"easePolyOut",(function(){return o["c"]})),n.d(e,"easePolyInOut",(function(){return o["b"]}));var s=n(108);n.d(e,"easeSin",(function(){return s["b"]})),n.d(e,"easeSinIn",(function(){return s["a"]})),n.d(e,"easeSinOut",(function(){return s["c"]})),n.d(e,"easeSinInOut",(function(){return s["b"]}));var u=n(109);n.d(e,"easeExp",(function(){return u["b"]})),n.d(e,"easeExpIn",(function(){return u["a"]})),n.d(e,"easeExpOut",(function(){return u["c"]})),n.d(e,"easeExpInOut",(function(){return u["b"]}));var c=n(110);n.d(e,"easeCircle",(function(){return c["b"]})),n.d(e,"easeCircleIn",(function(){return c["a"]})),n.d(e,"easeCircleOut",(function(){return c["c"]})),n.d(e,"easeCircleInOut",(function(){return c["b"]}));var h=n(111);n.d(e,"easeBounce",(function(){return h["c"]})),n.d(e,"easeBounceIn",(function(){return h["a"]})),n.d(e,"easeBounceOut",(function(){return h["c"]})),n.d(e,"easeBounceInOut",(function(){return h["b"]}));var f=n(112);n.d(e,"easeBack",(function(){return f["b"]})),n.d(e,"easeBackIn",(function(){return f["a"]})),n.d(e,"easeBackOut",(function(){return f["c"]})),n.d(e,"easeBackInOut",(function(){return f["b"]}));var l=n(113);n.d(e,"easeElastic",(function(){return l["c"]})),n.d(e,"easeElasticIn",(function(){return l["a"]})),n.d(e,"easeElasticOut",(function(){return l["c"]})),n.d(e,"easeElasticInOut",(function(){return l["b"]}))},function(t,e,n){"use strict";function r(t){return+t}e["a"]=r},function(t,e,n){"use strict";function r(t){return t*t}function i(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}e["a"]=r,e["c"]=i,e["b"]=a},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function a(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}e["a"]=r,e["c"]=i,e["b"]=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o}));var r=3,i=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(r),a=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(r),o=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(r)},function(t,e,n){"use strict";e["a"]=a,e["c"]=o,e["b"]=s;var r=Math.PI,i=r/2;function a(t){return 1-Math.cos(t*i)}function o(t){return Math.sin(t*i)}function s(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";function r(t){return Math.pow(2,10*t-10)}function i(t){return 1-Math.pow(2,-10*t)}function a(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}e["a"]=r,e["c"]=i,e["b"]=a},function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function i(t){return Math.sqrt(1- --t*t)}function a(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}e["a"]=r,e["c"]=i,e["b"]=a},function(t,e,n){"use strict";e["a"]=d,e["c"]=p,e["b"]=g;var r=4/11,i=6/11,a=8/11,o=3/4,s=9/11,u=10/11,c=15/16,h=21/22,f=63/64,l=1/r/r;function d(t){return 1-p(1-t)}function p(t){return(t=+t)d?Math.pow(t,1/3):t/l+h}function y(t){return t>f?t*t*t:l*(t-h)}function x(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function b(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function w(t){if(t instanceof M)return new M(t.h,t.c,t.l,t.opacity);if(t instanceof v||(t=p(t)),0===t.a&&0===t.b)return new M(NaN,0180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r["a"])(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}function u(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r["a"])(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}function c(t,e,n,i,o,s){if(t!==n||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(r["a"])(t,n)},{i:u-2,x:Object(r["a"])(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,i),s(e.rotate,n.rotate,r,i),u(e.skewX,n.skewX,r,i),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,a=i.length;while(++n');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()})),e.beforeDraw();try{e._drawGroup(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i)}finally{e.toDraw=!1}}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=this,n=t._cfg.children,r=null;this.setContext(t);for(var i=0;i-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function h(t,e){var n=t.match(c);r.each(n,(function(t){t=t.split(":"),e.addColorStop(t[0],t[1])}))}function f(t,e,n){var i,a,s=o.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),c=s[2],f=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:f.minX,y:f.minY},a={x:f.maxX,y:f.maxY}):.5*Math.PI<=u&&u1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return f(t,e,n);if("r"===t[0])return l(t,e,n);if("p"===t[0])return d(t,e,n)}return t}}}},function(t,e,n){t.exports={painter:n(132),getShape:n(139)}},function(t,e,n){var r=n(0),i=n(4),a=i.parseRadius,o=n(21),s=n(133),u={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},c=.3,h={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},f={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new s(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()}));try{e._drawChildren(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i)}finally{e.toDraw=!1}}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this._drawChildren(t)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(n.tobeRemoved&&(r.each(n.tobeRemoved,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t))},e._drawChildren=function(t){var e,n=this,r=t._cfg.children;if(r)for(var i=0;is?1:0,l=Math.abs(u-s)>Math.PI?1:0,d=n.rs,p=n.re,g=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+h.x+","+h.y),o.push("L "+v.x+","+v.y),o.push("A "+d+","+d+",0,"+l+","+(1===f?0:1)+","+g.x+","+g.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+p+","+p+",0,"+l+","+f+","+h.x+","+h.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=this,n=t._attrs,r=t._cfg.attrs,i=t._cfg.el;for(var a in this._setFont(t),n)if(n[a]!==r[a]){if("text"===a){e._setText(t,""+n[a]);continue}if("fillStyle"===a||"strokeStyle"===a){this._setColor(t,a,n[a]);continue}if("matrix"===a){this._setTransform(t);continue}h[a]&&i.setAttribute(h[a],n[a])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",f[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",l[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,(function(t,e){0===e?"alphabetic"===i?u+=''+t+"":"top"===i?u+=''+t+"":"middle"===i?u+=''+t+"":"bottom"===i?u+=''+t+"":"hanging"===i&&(u+=''+t+""):u+=''+t+""})),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(h[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(h[e],"url(#"+o+")")}else r.setAttribute(h[e],n);else r.setAttribute(h[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();t.exports=d},function(t,e,n){var r=n(0),i=n(134),a=n(135),o=n(136),s=n(137),u=n(138),c=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,r=null,i=0;i'})),n}function u(t,e){var n,a,o=i.exec(t),u=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),c=o[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=u&&u';e.innerHTML=n},t}();t.exports=o},function(t,e,n){var r=n(0),i=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},function(t,e,n){var r=n(0),i=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},function(t,e,n){var r=n(0),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");e.appendChild(n);var a=r.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var o=i.exec(t),s=o[2];n.setAttribute("href",s);var u=new Image;function c(){e.setAttribute("width",u.width),e.setAttribute("height",u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?c():(u.onload=c,u.src=u.src),this}var e=t.prototype;return e.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement;if(!n[i.tagName]){var a=i.parentNode;while(a&&!n[a.tagName])a=a.parentNode;i=a}return this._cfg.el===i?this:this.find((function(t){return t._cfg&&t._cfg.el===i}))}}])}))},e00d:function(t,e,n){const r=n("4651");t.exports={Random:n("c077"),Mds:n("8223"),Circular:n("72c2"),Fruchterman:n("4fef"),Radial:n("9aa7"),Force:n("e293"),Dagre:n("5b70"),Concentric:n("ace3"),Grid:n("eaab"),FruchtermanGroup:n("0031")},t.exports=r},e090:function(t,e,n){var r=n("6f9c"),i=n("b50e"),a=n("17d5").Graph;function o(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}t.exports={debugOrdering:o}},e0bf:function(t,e,n){var r=n("e6d6"),i=n("d63e"),a=n("b8bd"),o=n("5ece"),s=Object.prototype.hasOwnProperty;function u(t){if(r(t))return!0;if(i(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}t.exports=u},e0ef:function(t,e,n){var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n("3a21"),a=function t(e){if("object"!==("undefined"===typeof e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var a=0,o=e.length;a({id:t.id,source:t.source,target:t.target})),a=r.forceLink().id((function(t){return t.id})).links(e);t.edgeStrength&&a.strength(t.edgeStrength),t.linkDistance&&a.distance(t.linkDistance),i.force("link",a)}if(t.workerEnabled&&!l()&&(t.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),t.workerEnabled){i.stop();const n=f(i);for(let t=1;t<=n;t++)i.tick(),postMessage({type:h.TICK,currentTick:t,totalTicks:n,nodes:e});t.ticking=!1}else i.on("tick",()=>{t.tick()}).on("end",()=>{t.ticking=!1,t.onLayoutEnd&&t.onLayoutEnd()}),t.ticking=!0;t.forceSimulation=i}catch(u){t.ticking=!1,console.warn(u)}},overlapProcess(t){const e=this,n=e.nodeSize;let s;const u=e.nodeSpacing;let c;const h=e.collideStrength;if(c=a(u)?()=>u:"function"===typeof u?u:()=>0,n)if(o(n))s=n;else if(isNaN(n)){if(i(n)){const t=n[0]>n[1]?n[0]:n[1],e=t/2;s=t=>e+c(t)}}else{const t=n/2;s=e=>t+c(e)}else s=t=>{if(t.size){if(i(t.size)){const e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2+c(t)}return t.size/2+c(t)}return 10+c(t)};t.force("collisionForce",r.forceCollide(s).strength(h))},updateCfg(t){const e=this;e.ticking&&(e.forceSimulation.stop(),e.ticking=!1),e.forceSimulation=null,u.mix(e,t)},destroy(){const t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0}})},e29d:function(module,exports,__webpack_require__){"use strict";(function(global){var numeric=exports;"undefined"!==typeof global&&(global.numeric=numeric),numeric.version="1.2.6",numeric.bench=function(t,e){var n,r,i,a;"undefined"===typeof e&&(e=15),i=.5,n=new Date;while(1){for(i*=2,a=i;a>3;a-=4)t(),t(),t(),t();while(a>0)t(),a--;if(r=new Date,r-n>e)break}for(a=i;a>3;a-=4)t(),t(),t(),t();while(a>0)t(),a--;return r=new Date,1e3*(3*i-1)/(r-n)},numeric._myIndexOf=function(t){var e,n=this.length;for(e=0;enumeric.largeArray)return n.push("...Large Array..."),!0;c=!1;for(n.push("["),i=0;i0&&(n.push(","),c&&n.push("\n ")),c=r(t[i]);return n.push("]"),!0}n.push("{");c=!1;for(i in t)t.hasOwnProperty(i)&&(c&&n.push(",\n"),c=!0,n.push(i),n.push(": \n"),r(t[i]));return n.push("}"),!0}return r(t),n.join("")},numeric.parseDate=function(t){function e(t){if("string"===typeof t)return Date.parse(t.replace(/-/g,"/"));if(!(t instanceof Array))throw new Error("parseDate: parameter must be arrays of strings");var n,r=[];for(n=0;n0){for(i[u]=[],e=0;e>2,o=((3&n)<<4)+(r>>4),s=((15&r)<<2)+(i>>6),u=63&i,e+1>=c?s=u=64:e+2>=c&&(u=64),f+=h.charAt(a)+h.charAt(o)+h.charAt(s)+h.charAt(u);return f}function n(t,e,n){"undefined"===typeof e&&(e=0),"undefined"===typeof n&&(n=t.length);var r,i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],a=-1,o=0;t.length;for(r=e;r>>8^i[o];return-1^a}var r,i,a,o,s,u,c,h,f,l,d=t[0].length,p=t[0][0].length,g=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d,8,2,0,0,0,-1,-2,-3,-4,-5,-6,-7,-8,73,68,65,84,8,29];for(l=n(g,12,29),g[29]=l>>24&255,g[30]=l>>16&255,g[31]=l>>8&255,g[32]=255&l,r=1,i=0,c=0;c>8&255,g.push(s),g.push(u),g.push(255&~s),g.push(255&~u),0===c&&g.push(0),h=0;h255?255:s<0?0:Math.round(s),r=(r+s)%65521,i=(i+r)%65521,g.push(s);g.push(0)}return f=(i<<16)+r,g.push(f>>24&255),g.push(f>>16&255),g.push(f>>8&255),g.push(255&f),o=g.length-41,g[33]=o>>24&255,g[34]=o>>16&255,g[35]=o>>8&255,g[36]=255&o,l=n(g,37),g.push(l>>24&255),g.push(l>>16&255),g.push(l>>8&255),g.push(255&l),g.push(0),g.push(0),g.push(0),g.push(0),g.push(73),g.push(69),g.push(78),g.push(68),g.push(174),g.push(66),g.push(96),g.push(130),"data:image/png;base64,"+e(g)},numeric._dim=function(t){var e=[];while("object"===typeof t)e.push(t.length),t=t[0];return e},numeric.dim=function(t){var e,n;return"object"===typeof t?(e=t[0],"object"===typeof e?(n=e[0],"object"===typeof n?numeric._dim(t):[t.length,e.length]):[t.length]):[]},numeric.mapreduce=function(t,e){return Function("x","accum","_s","_k",'if(typeof accum === "undefined") accum = '+e+';\nif(typeof x === "number") { var xi = x; '+t+'; return accum; }\nif(typeof _s === "undefined") _s = numeric.dim(x);\nif(typeof _k === "undefined") _k = 0;\nvar _n = _s[_k];\nvar i,xi;\nif(_k < _s.length-1) {\n for(i=_n-1;i>=0;i--) {\n accum = arguments.callee(x[i],accum,_s,_k+1);\n } return accum;\n}\nfor(i=_n-1;i>=1;i-=2) { \n xi = x[i];\n '+t+";\n xi = x[i-1];\n "+t+";\n}\nif(i === 0) {\n xi = x[i];\n "+t+"\n}\nreturn accum;")},numeric.mapreduce2=function(t,e){return Function("x","var n = x.length;\nvar i,xi;\n"+e+";\nfor(i=n-1;i!==-1;--i) { \n xi = x[i];\n "+t+";\n}\nreturn accum;")},numeric.same=function t(e,n){var r,i;if(!(e instanceof Array)||!(n instanceof Array))return!1;if(i=e.length,i!==n.length)return!1;for(r=0;r=0;r-=2)a[r+1]=e,a[r]=e;return-1===r&&(a[0]=e),a}for(r=i-1;r>=0;r--)a[r]=numeric.rep(t,e,n+1);return a},numeric.dotMMsmall=function(t,e){var n,r,i,a,o,s,u,c,h,f,l;for(a=t.length,o=e.length,s=e[0].length,u=Array(a),n=a-1;n>=0;n--){for(c=Array(s),h=t[n],i=s-1;i>=0;i--){for(f=h[o-1]*e[o-1][i],r=o-2;r>=1;r-=2)l=r-1,f+=h[r]*e[r][i]+h[l]*e[l][i];0===r&&(f+=h[0]*e[0][i]),c[i]=f}u[n]=c}return u},numeric._getCol=function(t,e,n){var r,i=t.length;for(r=i-1;r>0;--r)n[r]=t[r][e],--r,n[r]=t[r][e];0===r&&(n[0]=t[0][e])},numeric.dotMMbig=function(t,e){var n,r,i,a=numeric._getCol,o=e.length,s=Array(o),u=t.length,c=e[0].length,h=new Array(u),f=numeric.dotVV;for(--o,--u,r=u;-1!==r;--r)h[r]=Array(c);for(--c,r=c;-1!==r;--r)for(a(e,r,s),i=u;-1!==i;--i)0,n=t[i],h[i][r]=f(n,s);return h},numeric.dotMV=function(t,e){var n,r=t.length,i=(e.length,Array(r)),a=numeric.dotVV;for(n=r-1;n>=0;n--)i[n]=a(t[n],e);return i},numeric.dotVM=function(t,e){var n,r,i,a,o,s,u;for(i=t.length,a=e[0].length,o=Array(a),r=a-1;r>=0;r--){for(s=t[i-1]*e[i-1][r],n=i-2;n>=1;n-=2)u=n-1,s+=t[n]*e[n][r]+t[u]*e[u][r];0===n&&(s+=t[0]*e[0][r]),o[r]=s}return o},numeric.dotVV=function(t,e){var n,r,i=t.length,a=t[i-1]*e[i-1];for(n=i-2;n>=1;n-=2)r=n-1,a+=t[n]*e[n]+t[r]*e[r];return 0===n&&(a+=t[0]*e[0]),a},numeric.dot=function(t,e){var n=numeric.dim;switch(1e3*n(t).length+n(e).length){case 2002:return e.length<10?numeric.dotMMsmall(t,e):numeric.dotMMbig(t,e);case 2001:return numeric.dotMV(t,e);case 1002:return numeric.dotVM(t,e);case 1001:return numeric.dotVV(t,e);case 1e3:return numeric.mulVS(t,e);case 1:return numeric.mulSV(t,e);case 0:return t*e;default:throw new Error("numeric.dot only works on vectors and matrices")}},numeric.diag=function(t){var e,n,r,i,a=t.length,o=Array(a);for(e=a-1;e>=0;e--){for(i=Array(a),n=e+2,r=a-1;r>=n;r-=2)i[r]=0,i[r-1]=0;for(r>e&&(i[r]=0),i[e]=t[e],r=e-1;r>=1;r-=2)i[r]=0,i[r-1]=0;0===r&&(i[0]=0),o[e]=i}return o},numeric.getDiag=function(t){var e,n=Math.min(t.length,t[0].length),r=Array(n);for(e=n-1;e>=1;--e)r[e]=t[e][e],--e,r[e]=t[e][e];return 0===e&&(r[0]=t[0][0]),r},numeric.identity=function(t){return numeric.diag(numeric.rep([t],1))},numeric.pointwise=function(t,e,n){"undefined"===typeof n&&(n="");var r,i,a=[],o=/\[i\]$/,s="",u=!1;for(r=0;r=0;i--) ret[i] = arguments.callee("+t.join(",")+",_s,_k+1);\n return ret;\n}\n"+n+"\nfor(i=_n-1;i!==-1;--i) {\n "+e+"\n}\nreturn ret;",Function.apply(null,a)},numeric.pointwise2=function(t,e,n){"undefined"===typeof n&&(n="");var r,i,a=[],o=/\[i\]$/,s="",u=!1;for(r=0;r=0;o--)t("object"===typeof e?e[o]:e,"object"===typeof n?n[o]:n,r,i+1,a)}else a(e,n)},numeric._biforeach2=function t(e,n,r,i,a){if(i===r.length-1)return a(e,n);var o,s=r[i],u=Array(s);for(o=s-1;o>=0;--o)u[o]=t("object"===typeof e?e[o]:e,"object"===typeof n?n[o]:n,r,i+1,a);return u},numeric._foreach=function t(e,n,r,i){if(r!==n.length-1){var a,o=n[r];for(a=o-1;a>=0;a--)t(e[a],n,r+1,i)}else i(e)},numeric._foreach2=function t(e,n,r,i){if(r===n.length-1)return i(e);var a,o=n[r],s=Array(o);for(a=o-1;a>=0;a--)s[a]=t(e[a],n,r+1,i);return s},numeric.ops2={add:"+",sub:"-",mul:"*",div:"/",mod:"%",and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">=",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"},numeric.opseq={addeq:"+=",subeq:"-=",muleq:"*=",diveq:"/=",modeq:"%=",lshifteq:"<<=",rshifteq:">>=",rrshifteq:">>>=",bandeq:"&=",boreq:"|=",bxoreq:"^="},numeric.mathfuns=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","isNaN","isFinite"],numeric.mathfuns2=["atan2","pow","max","min"],numeric.ops1={neg:"-",not:"!",bnot:"~",clone:""},numeric.mapreducers={any:["if(xi) return true;","var accum = false;"],all:["if(!xi) return false;","var accum = true;"],sum:["accum += xi;","var accum = 0;"],prod:["accum *= xi;","var accum = 1;"],norm2Squared:["accum += xi*xi;","var accum = 0;"],norminf:["accum = max(accum,abs(xi));","var accum = 0, max = Math.max, abs = Math.abs;"],norm1:["accum += abs(xi)","var accum = 0, abs = Math.abs;"],sup:["accum = max(accum,xi);","var accum = -Infinity, max = Math.max;"],inf:["accum = min(accum,xi);","var accum = Infinity, min = Math.min;"]},function(){var t,e;for(t=0;tg&&(p=a,g=s);for(n=l[p],l[p]=l[o],l[o]=n,i=d[p],d[p]=d[o],d[o]=i,t=n[o],s=o;s!==f;++s)n[s]/=t;for(s=f-1;-1!==s;--s)i[s]/=t;for(a=h-1;-1!==a;--a)if(a!==o){for(e=l[a],r=d[a],t=e[o],s=o+1;s!==f;++s)e[s]-=n[s]*t;for(s=f-1;s>0;--s)r[s]-=i[s]*t,--s,r[s]-=i[s]*t;0===s&&(r[0]-=i[0]*t)}}return d},numeric.det=function(t){var e=numeric.dim(t);if(2!==e.length||e[0]!==e[1])throw new Error("numeric: det() only works on square matrices");var n,r,i,a,o,s,u,c,h=e[0],f=1,l=numeric.clone(t);for(r=0;rMath.abs(l[i][r])&&(i=n);for(i!==r&&(u=l[i],l[i]=l[r],l[r]=u,f*=-1),a=l[r],n=r+1;n=1;e-=2){for(i=t[e],r=t[e-1],n=s-1;n>=1;--n)a=u[n],a[e]=i[n],a[e-1]=r[n],--n,a=u[n],a[e]=i[n],a[e-1]=r[n];0===n&&(a=u[0],a[e]=i[0],a[e-1]=r[0])}if(0===e){for(r=t[0],n=s-1;n>=1;--n)u[n][0]=r[n],--n,u[n][0]=r[n];0===n&&(u[0][0]=r[0])}return u},numeric.negtranspose=function(t){var e,n,r,i,a,o=t.length,s=t[0].length,u=Array(s);for(n=0;n=1;e-=2){for(i=t[e],r=t[e-1],n=s-1;n>=1;--n)a=u[n],a[e]=-i[n],a[e-1]=-r[n],--n,a=u[n],a[e]=-i[n],a[e-1]=-r[n];0===n&&(a=u[0],a[e]=-i[0],a[e-1]=-r[0])}if(0===e){for(r=t[0],n=s-1;n>=1;--n)u[n][0]=-r[n],--n,u[n][0]=-r[n];0===n&&(u[0][0]=-r[0])}return u},numeric._random=function t(e,n){var r,i,a=e[n],o=Array(a);if(n===e.length-1){for(i=Math.random,r=a-1;r>=1;r-=2)o[r]=i(),o[r-1]=i();return 0===r&&(o[0]=i()),o}for(r=a-1;r>=0;r--)o[r]=t(e,n+1);return o},numeric.random=function(t){return numeric._random(t,0)},numeric.norm2=function(t){return Math.sqrt(numeric.norm2Squared(t))},numeric.linspace=function(t,e,n){if("undefined"===typeof n&&(n=Math.max(Math.round(e-t)+1,1)),n<2)return 1===n?[t]:[];var r,i=Array(n);for(n--,r=n;r>=0;r--)i[r]=(r*e+(n-r)*t)/n;return i},numeric.getBlock=function(t,e,n){var r=numeric.dim(t);function i(t,a){var o,s=e[a],u=n[a]-s,c=Array(u);if(a===r.length-1){for(o=u;o>=0;o--)c[o]=t[o+s];return c}for(o=u;o>=0;o--)c[o]=i(t[o+s],a+1);return c}return i(t,0)},numeric.setBlock=function(t,e,n,r){var i=numeric.dim(t);function a(t,r,o){var s,u=e[o],c=n[o]-u;if(o===i.length-1)for(s=c;s>=0;s--)t[s+u]=r[s];for(s=c;s>=0;s--)a(t[s+u],r[s],o+1)}return a(t,r,0),t},numeric.getRange=function(t,e,n){var r,i,a,o,s=e.length,u=n.length,c=Array(s);for(r=s-1;-1!==r;--r)for(c[r]=Array(u),a=c[r],o=t[e[r]],i=u-1;-1!==i;--i)a[i]=o[n[i]];return c},numeric.blockMatrix=function(t){var e=numeric.dim(t);if(e.length<4)return numeric.blockMatrix([t]);var n,r,i,a,o,s=e[0],u=e[1];for(n=0,r=0,i=0;i=0;a--){for(i=Array(c),s=t[a],o=c-1;o>=3;--o)i[o]=s*e[o],--o,i[o]=s*e[o],--o,i[o]=s*e[o],--o,i[o]=s*e[o];while(o>=0)i[o]=s*e[o],--o;h[a]=i}return h},numeric.T=function(t,e){this.x=t,this.y=e},numeric.t=function(t,e){return new numeric.T(t,e)},numeric.Tbinop=function(t,e,n,r,i){var a;numeric.indexOf;if("string"!==typeof i)for(a in i="",numeric)numeric.hasOwnProperty(a)&&(t.indexOf(a)>=0||e.indexOf(a)>=0||n.indexOf(a)>=0||r.indexOf(a)>=0)&&a.length>1&&(i+="var "+a+" = numeric."+a+";\n");return Function(["y"],"var x = this;\nif(!(y instanceof numeric.T)) { y = new numeric.T(y); }\n"+i+"\nif(x.y) { if(y.y) { return new numeric.T("+r+");\n }\n return new numeric.T("+n+");\n}\nif(y.y) {\n return new numeric.T("+e+");\n}\nreturn new numeric.T("+t+");\n")},numeric.T.prototype.add=numeric.Tbinop("add(x.x,y.x)","add(x.x,y.x),y.y","add(x.x,y.x),x.y","add(x.x,y.x),add(x.y,y.y)"),numeric.T.prototype.sub=numeric.Tbinop("sub(x.x,y.x)","sub(x.x,y.x),neg(y.y)","sub(x.x,y.x),x.y","sub(x.x,y.x),sub(x.y,y.y)"),numeric.T.prototype.mul=numeric.Tbinop("mul(x.x,y.x)","mul(x.x,y.x),mul(x.x,y.y)","mul(x.x,y.x),mul(x.y,y.x)","sub(mul(x.x,y.x),mul(x.y,y.y)),add(mul(x.x,y.y),mul(x.y,y.x))"),numeric.T.prototype.reciprocal=function(){var t=numeric.mul,e=numeric.div;if(this.y){var n=numeric.add(t(this.x,this.x),t(this.y,this.y));return new numeric.T(e(this.x,n),e(numeric.neg(this.y),n))}return new T(e(1,this.x))},numeric.T.prototype.div=function(t){if(t instanceof numeric.T||(t=new numeric.T(t)),t.y)return this.mul(t.reciprocal());var e=numeric.div;return this.y?new numeric.T(e(this.x,t.x),e(this.y,t.x)):new numeric.T(e(this.x,t.x))},numeric.T.prototype.dot=numeric.Tbinop("dot(x.x,y.x)","dot(x.x,y.x),dot(x.x,y.y)","dot(x.x,y.x),dot(x.y,y.x)","sub(dot(x.x,y.x),dot(x.y,y.y)),add(dot(x.x,y.y),dot(x.y,y.x))"),numeric.T.prototype.transpose=function(){var t=numeric.transpose,e=this.x,n=this.y;return n?new numeric.T(t(e),t(n)):new numeric.T(t(e))},numeric.T.prototype.transjugate=function(){var t=numeric.transpose,e=this.x,n=this.y;return n?new numeric.T(t(e),numeric.negtranspose(n)):new numeric.T(t(e))},numeric.Tunop=function(t,e,n){return"string"!==typeof n&&(n=""),Function("var x = this;\n"+n+"\nif(x.y) { "+e+";\n}\n"+t+";\n")},numeric.T.prototype.exp=numeric.Tunop("return new numeric.T(ex)","return new numeric.T(mul(cos(x.y),ex),mul(sin(x.y),ex))","var ex = numeric.exp(x.x), cos = numeric.cos, sin = numeric.sin, mul = numeric.mul;"),numeric.T.prototype.conj=numeric.Tunop("return new numeric.T(x.x);","return new numeric.T(x.x,numeric.neg(x.y));"),numeric.T.prototype.neg=numeric.Tunop("return new numeric.T(neg(x.x));","return new numeric.T(neg(x.x),neg(x.y));","var neg = numeric.neg;"),numeric.T.prototype.sin=numeric.Tunop("return new numeric.T(numeric.sin(x.x))","return x.exp().sub(x.neg().exp()).div(new numeric.T(0,2));"),numeric.T.prototype.cos=numeric.Tunop("return new numeric.T(numeric.cos(x.x))","return x.exp().add(x.neg().exp()).div(2);"),numeric.T.prototype.abs=numeric.Tunop("return new numeric.T(numeric.abs(x.x));","return new numeric.T(numeric.sqrt(numeric.add(mul(x.x,x.x),mul(x.y,x.y))));","var mul = numeric.mul;"),numeric.T.prototype.log=numeric.Tunop("return new numeric.T(numeric.log(x.x));","var theta = new numeric.T(numeric.atan2(x.y,x.x)), r = x.abs();\nreturn new numeric.T(numeric.log(r.x),theta.x);"),numeric.T.prototype.norm2=numeric.Tunop("return numeric.norm2(x.x);","var f = numeric.norm2Squared;\nreturn Math.sqrt(f(x.x)+f(x.y));"),numeric.T.prototype.inv=function(){var t=this;if("undefined"===typeof t.y)return new numeric.T(numeric.inv(t.x));var e,n,r,i,a,o,s,u,c,h,f,l,d,p,g,v,m,y,x=t.x.length,b=numeric.identity(x),w=numeric.rep([x,x],0),_=numeric.clone(t.x),M=numeric.clone(t.y);for(c=0;cl&&(f=h,l=d);for(f!==c&&(y=_[c],_[c]=_[f],_[f]=y,y=M[c],M[c]=M[f],M[f]=y,y=b[c],b[c]=b[f],b[f]=y,y=w[c],w[c]=w[f],w[f]=y),e=_[c],n=M[c],a=b[c],o=w[c],p=e[c],g=n[c],h=c+1;h0;c--)for(a=b[c],o=w[c],h=c-1;h>=0;h--)for(s=b[h],u=w[h],p=_[h][c],g=M[h][c],f=x-1;f>=0;f--)v=a[f],m=o[f],s[f]-=p*v-g*m,u[f]-=p*m+g*v;return new numeric.T(b,w)},numeric.T.prototype.get=function(t){var e,n=this.x,r=this.y,i=0,a=t.length;if(r){while(i=0?1:-1,r=n*numeric.norm2(t);e[0]+=r;var i=numeric.norm2(e);if(0===i)throw new Error("eig: internal error");return numeric.div(e,i)},numeric.toUpperHessenberg=function(t){var e=numeric.dim(t);if(2!==e.length||e[0]!==e[1])throw new Error("numeric: toUpperHessenberg() only works on square matrices");var n,r,i,a,o,s,u,c,h,f,l=e[0],d=numeric.clone(t),p=numeric.identity(l);for(r=0;r0){for(o=numeric.house(a),s=numeric.getBlock(d,[r+1,r],[l-1,l-1]),u=numeric.tensor(o,numeric.dot(o,s)),n=r+1;n=4*u)A=.5*(c+Math.sqrt(c*c-4*u)),P=.5*(c-Math.sqrt(c*c-4*u)),h=numeric.add(numeric.sub(numeric.dot(h,h),numeric.mul(h,A+P)),numeric.diag(numeric.rep([3],A*P)));else h=numeric.add(numeric.sub(numeric.dot(h,h),numeric.mul(h,c)),numeric.diag(numeric.rep([3],u)));for(n=[h[0][0],h[1][0],h[2][0]],r=numeric.house(n),d=[t[0],t[1],t[2]],p=numeric.tensor(r,numeric.dot(r,d)),v=0;v<3;v++)for(l=t[v],g=p[v],y=0;y=0?(d=h<0?-.5*(h-P(l)):-.5*(h+P(l)),m=(o-d)*(o-d)+s*s,y=u*u+(c-d)*(c-d),m>y?(m=P(m),g=(o-d)/m,v=s/m):(y=P(y),g=u/y,v=(c-d)/y),i=new w([[v,-g],[g,v]]),k.setRows(n,a,i.dot(k.getRows(n,a)))):(d=-.5*h,p=.5*P(-l),m=(o-d)*(o-d)+s*s,y=u*u+(c-d)*(c-d),m>y?(m=P(m+p*p),g=(o-d)/m,v=s/m,d=0,p/=m):(y=P(y+p*p),g=u/y,v=(c-d)/y,d=p/y,p=0),i=new w([[v,-g],[g,v]],[[d,p],[p,-d]]),k.setRows(n,a,i.dot(k.getRows(n,a))))}var C=k.dot(t).dot(k.transjugate()),E=(_=t.length,numeric.T.identity(_));for(a=0;a<_;a++)if(a>0)for(r=a-1;r>=0;r--){var I=C.get([r,r]),O=C.get([a,a]);numeric.neq(I.x,O.x)||numeric.neq(I.y,O.y)?(d=C.getRow(r).getBlock([r],[a-1]),p=E.getRow(a).getBlock([r],[a-1]),E.set([a,r],C.get([r,a]).neg().sub(d.dot(p)).div(I.sub(O)))):E.setRow(a,E.getRow(r))}for(a=0;a<_;a++)d=E.getRow(a),E.setRow(a,d.div(d.norm2()));return E=E.transpose(),E=k.transjugate().dot(E),{lambda:C.getDiag(),E:E}},numeric.ccsSparse=function(t){var e,n,r,i=t.length,a=[];for(n=i-1;-1!==n;--n)for(r in e=t[n],e){r=parseInt(r);while(r>=a.length)a[a.length]=0;0!==e[r]&&a[r]++}var o=a.length,s=Array(o+1);for(s[0]=0,n=0;n=u){if(i[h]=d[c],0===c)return;++h,--c,s=f[c],u=l[c]}else o=a[n[s]],0===r[o]?(r[o]=1,f[c]=s,++c,d[c]=o,s=e[o],l[c]=u=e[o+1]):++s}},numeric.ccsLPSolve=function(t,e,n,r,i,a,o){var s,u,c,h,f,l,d,p,g,v=t[0],m=t[1],y=t[2],x=(v.length,e[0]),b=e[1],w=e[2];for(u=x[i],c=x[i+1],r.length=0,s=u;sa&&(o=i,a=s));for(w(y[n])=c){if(i[f]=a[p[h]],0===h)return;++f,--h,u=l[h],c=d[h]}else s=n[u],0===r[s]?(r[s]=1,l[h]=u,++h,p[h]=s,s=a[s],u=e[s],d[h]=c=e[s+1]):++u}}},numeric.ccsLPSolve0=function(t,e,n,r,i,a,o,s){var u,c,h,f,l,d,p,g,v,m=t[0],y=t[1],x=t[2],b=(m.length,e[0]),w=e[1],_=e[2];for(c=b[i],h=b[i+1],r.length=0,u=c;ua&&(o=i,a=s));for(w(y[_[n]])n[r]&&(n[r]=e.length),e)e.hasOwnProperty(i)&&t(e[i],n,r+1);return n},numeric.sclone=function t(e,n,r){"undefined"===typeof n&&(n=0),"undefined"===typeof r&&(r=numeric.sdim(e).length);var i,a=Array(e.length);if(n===r-1){for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);return a}for(i in e)e.hasOwnProperty(i)&&(a[i]=t(e[i],n+1,r));return a},numeric.sdiag=function(t){var e,n,r=t.length,i=Array(r);for(e=r-1;e>=1;e-=2)n=e-1,i[e]=[],i[e][e]=t[e],i[n]=[],i[n][n]=t[n];return 0===e&&(i[0]=[],i[0][0]=t[e]),i},numeric.sidentity=function(t){return numeric.sdiag(numeric.rep([t],1))},numeric.stranspose=function(t){var e,n,r,i=[];t.length;for(e in t)if(t.hasOwnProperty(e))for(n in r=t[e],r)r.hasOwnProperty(n)&&("object"!==typeof i[n]&&(i[n]=[]),i[n][e]=r[n]);return i},numeric.sLUP=function(t,e){throw new Error("The function numeric.sLUP had a bug in it and has been removed. Please use the new numeric.ccsLUP function instead.")},numeric.sdotMM=function(t,e){var n,r,i,a,o,s,u,c=t.length,h=(e.length,numeric.stranspose(e)),f=h.length,l=Array(c);for(i=c-1;i>=0;i--){for(u=[],n=t[i],o=f-1;o>=0;o--){for(a in s=0,r=h[o],n)n.hasOwnProperty(a)&&a in r&&(s+=n[a]*r[a]);s&&(u[o]=s)}l[i]=u}return l},numeric.sdotMV=function(t,e){var n,r,i,a,o=t.length,s=Array(o);for(r=o-1;r>=0;r--){for(i in n=t[r],a=0,n)n.hasOwnProperty(i)&&e[i]&&(a+=n[i]*e[i]);a&&(s[r]=a)}return s},numeric.sdotVM=function(t,e){var n,r,i,a,o=[];for(n in t)if(t.hasOwnProperty(n))for(r in i=e[n],a=t[n],i)i.hasOwnProperty(r)&&(o[r]||(o[r]=0),o[r]+=a*i[r]);return o},numeric.sdotVV=function(t,e){var n,r=0;for(n in t)t[n]&&e[n]&&(r+=t[n]*e[n]);return r},numeric.sdot=function(t,e){var n=numeric.sdim(t).length,r=numeric.sdim(e).length,i=1e3*n+r;switch(i){case 0:return t*e;case 1001:return numeric.sdotVV(t,e);case 2001:return numeric.sdotMV(t,e);case 1002:return numeric.sdotVM(t,e);case 2002:return numeric.sdotMM(t,e);default:throw new Error("numeric.sdot not implemented for tensors of order "+n+" and "+r)}},numeric.sscatter=function(t){var e,n,r,i,a=t[0].length,o=t.length,s=[];for(n=a-1;n>=0;--n)if(t[o-1][n]){for(i=s,r=0;r=0;--a)n[a]=[];for(a=i;a>=0;--a)n[a].push(r[a]);n[i+1].push(o)}}else t(o,n,r);return r.length>i&&r.pop(),n},numeric.cLU=function(t){var e,n,r,i,a,o,s=t[0],u=t[1],c=t[2],h=s.length,f=0;for(e=0;ef&&(f=s[e]);f++;var l,d=Array(f),p=Array(f),g=numeric.rep([f],1/0),v=numeric.rep([f],-1/0);for(r=0;rv[e]&&(v[e]=n);for(e=0;ev[e+1]&&(v[e+1]=v[e]);for(e=f-1;e>=1;e--)g[e]=0;n--){while(f[r]>n)o[n]-=l[r]*o[f[r]],r--;o[n]/=l[r],r--}return o},numeric.cgrid=function(t,e){"number"===typeof t&&(t=[t,t]);var n,r,i,a=numeric.rep(t,-1);if("function"!==typeof e)switch(e){case"L":e=function(e,n){return e>=t[0]/2||ni&&(i=a[r]);for(i++,n=numeric.rep([i],0),r=0;r1)r=o((e+n)/2),i[r]<=t?e=r:n=r;return this._at(t,e)}a=t.length;var s,u=Array(a);for(s=a-1;-1!==s;--s)u[s]=this.at(t[s]);return u},numeric.Spline.prototype.diff=function(){var t,e,n,r=this.x,i=this.yl,a=this.yr,o=this.kl,s=this.kr,u=i.length,c=o,h=s,f=Array(u),l=Array(u),d=numeric.add,p=numeric.mul,g=numeric.div,v=numeric.sub;for(t=u-1;-1!==t;--t)e=r[t+1]-r[t],n=v(a[t+1],i[t]),f[t]=g(d(p(n,6),p(o[t],-4*e),p(s[t+1],-2*e)),e*e),l[t+1]=g(d(p(n,-6),p(o[t],2*e),p(s[t+1],4*e)),e*e);return new numeric.Spline(r,c,h,f,l)},numeric.Spline.prototype.roots=function(){function t(t){return t*t}var e=[],n=this.x,r=this.yl,i=this.yr,a=this.kl,o=this.kr;"number"===typeof r[0]&&(r=[r],i=[i],a=[a],o=[o]);var s,u,c,h,f,l,d,p,g,v,m,y,x,b,w,_,M,S,k,A,P,C,E,I=r.length,O=n.length-1,T=(e=Array(I),Math.sqrt);for(s=0;s!==I;++s){for(h=r[s],f=i[s],l=a[s],d=o[s],p=[],u=0;u!==O;u++){for(u>0&&f[u]*h[u]<0&&p.push(n[u]),_=n[u+1]-n[u],n[u],m=h[u],y=f[u+1],g=l[u]/_,v=d[u+1]/_,w=t(g-v+3*(m-y))+12*v*m,x=v+3*m+2*g-3*y,b=3*(v+g+2*(m-y)),w<=0?(S=x/b,M=S>n[u]&&Sn[u]&&Sn[u]&&k0)P=C,S=k;else{var N=0;while(1){if(E=(S*C-k*P)/(S-k),E<=P||E>=C)break;if(A=this._at(E,u),A*k>0)C=E,k=A,-1===N&&(S*=.5),N=-1;else{if(!(A*S>0))break;P=E,S=A,1===N&&(k*=.5),N=1}}p.push(E),P=M[c+1],S=this._at(P,u)}else p.push(P),P=C,S=k;0===k&&p.push(C)}e[s]=p}return"number"===typeof this.yl[0]?e[0]:e},numeric.spline=function(t,e,n,r){var i,a=t.length,o=[],s=[],u=[],c=numeric.sub,h=numeric.mul,f=numeric.add;for(i=a-2;i>=0;i--)s[i]=t[i+1]-t[i],u[i]=c(e[i+1],e[i]);"string"!==typeof n&&"string"!==typeof r||(n=r="periodic");var l=[[],[],[]];switch(typeof n){case"undefined":o[0]=h(3/(s[0]*s[0]),u[0]),l[0].push(0,0),l[1].push(0,1),l[2].push(2/s[0],1/s[0]);break;case"string":o[0]=f(h(3/(s[a-2]*s[a-2]),u[a-2]),h(3/(s[0]*s[0]),u[0])),l[0].push(0,0,0),l[1].push(a-2,0,1),l[2].push(1/s[a-2],2/s[a-2]+2/s[0],1/s[0]);break;default:o[0]=n,l[0].push(0),l[1].push(0),l[2].push(1);break}for(i=1;i20)throw new Error("Numerical gradient fails");if(g[i]=e[i]+w,a=t(g),g[i]=e[i]-w,o=t(g),g[i]=e[i],isNaN(a)||isNaN(o))w/=16;else{if(v[i]=(a-o)/(2*w),u=e[i]-w,c=e[i],h=e[i]+w,f=(a-r)/w,l=(r-o)/w,d=p(y(v[i]),y(r),y(a),y(o),y(u),y(c),y(h),1e-8),s=x(p(y(f-v[i]),y(l-v[i]),y(f-l))/d,w/d),!(s>m))break;w/=16}}}return v},numeric.uncmin=function(t,e,n,r,i,a,o){var s=numeric.gradient;"undefined"===typeof o&&(o={}),"undefined"===typeof n&&(n=1e-8),"undefined"===typeof r&&(r=function(e){return s(t,e)}),"undefined"===typeof i&&(i=1e3),e=numeric.clone(e);var u,c,h=e.length,f=t(e);if(isNaN(f))throw new Error("uncmin: f(x0) is a NaN!");var l=Math.max,d=numeric.norm2;n=l(n,numeric.epsilon);var p,g,v,m,y,x,b,w,_,M,S=o.Hinv||numeric.identity(h),k=numeric.dot,A=(numeric.inv,numeric.sub),P=numeric.add,C=numeric.tensor,E=numeric.div,I=numeric.mul,O=numeric.all,T=numeric.isFinite,N=numeric.neg,j=0,B="";g=r(e);while(j=.1*_*c||isNaN(u)))break;_*=.5,++j}if(_*M1)r=i(.5*(e+n)),s[r]<=t?e=r:n=r;return this._at(t,e)},numeric.dopri=function(t,e,n,r,i,a,o){"undefined"===typeof i&&(i=1e-6),"undefined"===typeof a&&(a=1e3);var s,u,c,h,f,l,d,p,g,v,m,y,x,b=[t],w=[n],_=[r(t,n)],M=[],S=.2,k=[3/40,9/40],A=[44/45,-56/15,32/9],P=[19372/6561,-25360/2187,64448/6561,-212/729],C=[9017/3168,-355/33,46732/5247,49/176,-5103/18656],E=[35/384,0,500/1113,125/192,-2187/6784,11/84],I=[.10013431883002395,0,.3918321794184259,-.02982460176594817,.05893268337240795,-.04497888809104361,5618549.5/235043384],O=[.2,.3,.8,8/9,1,1],T=[-71/57600,0,71/16695,-71/1920,17253/339200,-22/525,1/40],N=0,j=(e-t)/10,B=0,L=numeric.add,D=numeric.mul,R=(Math.max,Math.min),F=Math.abs,Y=numeric.norminf,q=Math.pow,z=numeric.any,X=numeric.lt,G=numeric.and,W=(numeric.sub,new numeric.Dopri(b,w,_,M,-1,""));"function"===typeof o&&(m=o(t,n));while(te&&(j=e-t),s=r(t+O[0]*j,L(n,D(S*j,_[N]))),u=r(t+O[1]*j,L(L(n,D(k[0]*j,_[N])),D(k[1]*j,s))),c=r(t+O[2]*j,L(L(L(n,D(A[0]*j,_[N])),D(A[1]*j,s)),D(A[2]*j,u))),h=r(t+O[3]*j,L(L(L(L(n,D(P[0]*j,_[N])),D(P[1]*j,s)),D(P[2]*j,u)),D(P[3]*j,c))),f=r(t+O[4]*j,L(L(L(L(L(n,D(C[0]*j,_[N])),D(C[1]*j,s)),D(C[2]*j,u)),D(C[3]*j,c)),D(C[4]*j,h))),g=L(L(L(L(L(n,D(_[N],j*E[0])),D(u,j*E[2])),D(c,j*E[3])),D(h,j*E[4])),D(f,j*E[5])),l=r(t+j,g),d=L(L(L(L(L(D(_[N],j*T[0]),D(u,j*T[2])),D(c,j*T[3])),D(h,j*T[4])),D(f,j*T[5])),D(l,j*T[6])),v="number"===typeof d?F(d):Y(d),v>i){if(j=.2*j*q(i/v,.25),t+j===t){W.msg="Step size became too small";break}}else{if(M[N]=L(L(L(L(L(L(n,D(_[N],j*I[0])),D(u,j*I[2])),D(c,j*I[3])),D(h,j*I[4])),D(f,j*I[5])),D(l,j*I[6])),++N,b[N]=t+j,w[N]=g,_[N]=l,"function"===typeof o){var U,V,H=t,Z=t+.5*j;if(y=o(Z,M[N-1]),x=G(X(m,0),X(0,y)),z(x)||(H=Z,Z=t+j,m=y,y=o(Z,g),x=G(X(m,0),X(0,y))),z(x)){var $,Q,K=0,J=1,tt=1;while(1){if("number"===typeof m)V=(tt*y*H-J*m*Z)/(tt*y-J*m);else for(V=Z,p=m.length-1;-1!==p;--p)m[p]<0&&y[p]>0&&(V=R(V,(tt*y[p]*H-J*m[p]*Z)/(tt*y[p]-J*m[p])));if(V<=H||V>=Z)break;U=W._at(V,N-1),Q=o(V,U),$=G(X(m,0),X(0,Q)),z($)?(Z=V,y=Q,x=$,tt=1,-1===K?J*=.5:J=1,K=-1):(H=V,m=Q,J=1,1===K?tt*=.5:tt=1,K=1)}return g=W._at(.5*(t+V),N-1),W.f[N]=r(V,U),W.x[N]=V,W.y[N]=U,W.ymid[N-1]=g,W.events=x,W.iterations=B,W}}t+=j,n=g,m=y,j=R(.8*j*q(i/v,.25),4*j)}return W.iterations=B,W},numeric.LU=function(t,e){e=e||!1;var n,r,i,a,o,s,u,c,h,f=Math.abs,l=t.length,d=l-1,p=new Array(l);for(e||(t=numeric.clone(t)),i=0;i=0;--n){for(a=s[n],r=n+1;rL)&&(w=L),h=v(t,l(w,C)),u=p(B,E),N=m-1;-1!==N;--N)u[N][N]+=1;j=I(u,g(h,w),!0);var D=g(O,p(e,j)),R=1;for(N=y-1;-1!==N;--N)D[N]<0&&(R=k(R,-.999*D[N]));if(s=d(a,l(j,R)),O=d(n,p(e,s)),!A(P(O,0)))return{solution:a,message:"",iterations:c};if(a=s,w=0);if(x)return{solution:s,message:"Unbounded",iterations:c}}return{solution:a,message:"maximum iteration count exceeded",iterations:c}},numeric._solveLP=function(t,e,n,r,i){var a=t.length,o=n.length,s=(numeric.sum,numeric.log,numeric.mul,numeric.sub),u=numeric.dot,c=(numeric.div,numeric.add,numeric.rep([a],0).concat([1])),h=numeric.rep([o,1],-1),f=numeric.blockMatrix([[e,h]]),l=n,d=numeric.rep([a],0).concat(Math.max(0,numeric.sup(numeric.neg(n)))+1),p=numeric.__solveLP(c,f,l,r,i,d,!1),g=numeric.clone(p.solution);g.length=a;var v=numeric.inf(s(n,u(e,g)));if(v<0)return{solution:NaN,message:"Infeasible",iterations:p.iterations};var m=numeric.__solveLP(t,e,n,r,i-p.iterations,g,!0);return m.iterations+=p.iterations,m},numeric.solveLP=function(t,e,n,r,i,a,o){if("undefined"===typeof o&&(o=1e3),"undefined"===typeof a&&(a=numeric.epsilon),"undefined"===typeof r)return numeric._solveLP(t,e,n,a,o);var s,u=r.length,c=r[0].length,h=e.length,f=numeric.echelonize(r),l=numeric.rep([c],0),d=f.P,p=[];for(s=d.length-1;-1!==s;--s)l[d[s]]=1;for(s=c-1;-1!==s;--s)0===l[s]&&p.push(s);var g=numeric.getRange,v=numeric.linspace(0,u-1),m=numeric.linspace(0,h-1),y=g(r,v,p),x=g(e,m,d),b=g(e,m,p),w=numeric.dot,_=numeric.sub,M=w(x,f.I),S=_(b,w(M,y)),k=_(n,w(M,i)),A=Array(d.length),P=Array(p.length);for(s=d.length-1;-1!==s;--s)A[s]=t[d[s]];for(s=p.length-1;-1!==s;--s)P[s]=t[p[s]];var C=_(P,w(A,w(f.I,y))),E=numeric._solveLP(C,S,k,a,o),I=E.solution;if(I!==I)return E;var O=w(f.I,_(i,w(y,I))),T=Array(t.length);for(s=d.length-1;-1!==s;--s)T[d[s]]=O[s];for(s=p.length-1;-1!==s;--s)T[p[s]]=I[s];return{solution:T,message:E.message,iterations:E.iterations}},numeric.MPStoLP=function(t){t instanceof String&&t.split("\n");var e,n,r,i,a=0,o=["Initial state","NAME","ROWS","COLUMNS","RHS","BOUNDS","ENDATA"],s=t.length,u=0,c={},h=[],f=0,l={},d=0,p=[],g=[],v=[];function m(n){throw new Error("MPStoLP: "+n+"\nLine "+e+": "+t[e]+"\nCurrent state: "+o[a]+"\n")}for(e=0;e=a)t/=2,e/=2,s>>>=1;return(t+s)/e},h},o=e.pow(n,r),i=e.pow(2,i),a=2*i,c(e.random(),t)}([],numeric.seedrandom,256,6,52),function(t){function e(t){if("object"!==typeof t)return t;var n,r=[],i=t.length;for(n=0;nd)m[w]=j;else if(m[w]=-Math.abs(j),j>0){for(b=1;b<=o;b+=1)c[b][x]=-c[b][x];h[x]=-h[x]}}for(x=1;x<=g;x+=1)m[C+p[x]]=0;for(I=0,N=0,x=1;x<=l;x+=1)m[C+x]=1;x-=1){for(j=m[x],w=P+x*(x+3)/2,_=w-x,b=x+1;b<=g;b+=1)j-=m[w]*m[A+b],w+=b;if(j/=m[_],m[A+x]=j,p[x]d)m[C+I]=j;else if(m[C+I]=-Math.abs(j),j>0){for(b=1;b<=o;b+=1)c[b][I]=-c[b][I];h[I]=-h[I]}return 700}for(g+=1,p[g]=I,w=P+(g-1)*g/2+1,x=1;x<=g-1;x+=1)m[w]=m[x],w+=1;if(g===o)m[w]=m[o];else{for(x=o;x>=g+1;x-=1){if(0===m[x])break;if(D=Math.max(Math.abs(m[x-1]),Math.abs(m[x])),R=Math.min(Math.abs(m[x-1]),Math.abs(m[x])),N=m[x-1]>=0?Math.abs(D*Math.sqrt(1+R*R/(D*D))):-Math.abs(D*Math.sqrt(1+R*R/(D*D))),D=m[x-1]/N,R=m[x]/N,1===D)break;if(0===D)for(m[x-1]=R*N,b=1;b<=o;b+=1)N=t[b][x-1],t[b][x-1]=t[b][x],t[b][x]=N;else for(m[x-1]=N,F=R/(1+D),b=1;b<=o;b+=1)N=D*t[b][x-1]+R*t[b][x],t[b][x]=F*(t[b][x-1]+N)-t[b][x],t[b][x-1]=N}m[w]=m[g]}return 0}function H(){if(w=P+S*(S+1)/2+1,_=w+S,0===m[_])return 798;if(D=Math.max(Math.abs(m[_-1]),Math.abs(m[_])),R=Math.min(Math.abs(m[_-1]),Math.abs(m[_])),N=m[_-1]>=0?Math.abs(D*Math.sqrt(1+R*R/(D*D))):-Math.abs(D*Math.sqrt(1+R*R/(D*D))),D=m[_-1]/N,R=m[_]/N,1===D)return 798;if(0===D){for(x=S+1;x<=g;x+=1)N=m[_-1],m[_-1]=m[_],m[_]=N,_+=x;for(x=1;x<=o;x+=1)N=t[x][S],t[x][S]=t[x][S+1],t[x][S+1]=N}else{for(F=R/(1+D),x=S+1;x<=g;x+=1)N=D*m[_-1]+R*m[_],m[_]=F*(m[_-1]+N)-m[_],m[_-1]=N,_+=x;for(x=1;x<=o;x+=1)N=D*t[x][S]+R*t[x][S+1],t[x][S+1]=F*(t[x][S]+N)-t[x][S+1],t[x][S]=N}return 0}function Z(){for(_=w-S,x=1;x<=S;x+=1)m[_]=m[w],w+=1,_+=1;return m[E+S]=m[E+S+1],p[S]=p[S+1],S+=1,Se?t*Math.sqrt(1+e*e/t/t):0==e?t:e*Math.sqrt(1+t*t/e/e)}var m=0,y=0,x=0,b=0,w=0,_=0,M=0;for(o=0;o=0&&(y=-y),x=m*y-M,h[o][o]=m-y,s=c;s=0&&(y=-y),x=m*y-M,h[o][o+1]=m-y,s=c;sb&&(b=w)}for(o=l-1;-1!=o;o+=-1){if(0!=y){for(x=y*h[o][o+1],s=c;s=i-1)throw"Error: no convergence.";for(b=p[c],w=p[u-1],y=d[u-1],x=d[u],m=((w-_)*(w+_)+(y-x)*(y+x))/(2*x*w),y=v(m,1),m=m<0?((b-_)*(b+_)+x*(w/(m-y)-x))/b:((b-_)*(b+_)+x*(w/(m+y)-x))/b,a=1,M=1,o=c+1;o=0;s--)if(p[s]f?s/2:f/2;u=i.addShape("circle",{attrs:{x:n,y:o,r:c,...r({},a,this.delegateStyle)}}),e.shapeOrigin={x:n,y:o}}else u=i.addShape("rect",{attrs:p}),e.shapeOrigin={x:p.x,y:p.y};e.delegateShapes[n]=u,e.delegateShapeBBoxs[n]=u.getBBox()}o.paint(),o.setAutoPaint(s)},onOutOfRange(t){const e=this;if(this.origin){const n=e.graph.get("canvas").get("el"),r=r=>{r.target!==n&&e.onDragEnd(t)};this.fn=r,i.addEventListener("mouseup",r,!1)}}}},e34f:function(t,e,n){t.exports={graphlib:n("17d5"),layout:n("7a9c"),debug:n("e090"),util:{time:n("b50e").time,notime:n("b50e").notime},version:n("9214")}},e380:function(t,e,n){var r=n("7b83"),i="Expected a function";function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(a.Cache||r),n}a.Cache=r,t.exports=a},e3f8:function(t,e,n){var r=n("656b");function i(t){return function(e){return r(e,t)}}t.exports=i},e44a:function(t,e,n){var r=n("33de");function i(t){var e,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),a),r.each(t.predecessors(i),a))}return r.each(t.nodes(),(function(t){e=[],a(t),e.length&&i.push(e)})),i}t.exports=i},e538:function(t,e,n){(function(t){var r=n("2b3e"),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}t.exports=c}).call(this,n("62e4")(t))},e632:function(t,e,n){"use strict";var r=n("6f9c");function i(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),a=r.map(r.range(i+1),(function(){return[]}));function o(n){if(!r.has(e,n)){e[n]=!0;var i=t.node(n);a[i.rank].push(n),r.forEach(t.successors(n),o)}}var s=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(s,o),a}t.exports=i},e6d6:function(t,e){var n=function(t){return null===t||void 0===t};t.exports=n},e849:function(t,e,n){"use strict";var r=n("6f9c");function i(t){var e={};function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&void 0!==o&&null!==o||(o=0),a.rank=o}r.forEach(t.sources(),n)}function a(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}t.exports={longestPath:i,slack:a}},e877:function(t,e,n){const r=n("9f57"),i={deepMix:n("1b95"),mix:n("503e"),debounce:n("6023"),each:n("72fb"),throttle:n("da0a"),mat3:n("6dcf"),vec2:n("830e"),vec3:n("f98b"),transform:n("3b54"),clone:n("e0ef"),upperFirst:n("dd6d"),isNil:n("e6d6"),isArray:n("3a21"),createDom:n("158c"),modifyCSS:n("758e"),isObject:n("d285"),isPlainObject:n("7bf3"),isNumber:n("5d9e"),isString:n("3421"),uniqueId:n("339d"),addEventListener:n("0e151"),wrapBehavior:n("14c8"),extend:n("26bf"),augment:n("8d88"),remove:n("4edf"),formatPadding(t){let e=0,n=0,r=0,a=0;return i.isNumber(t)||i.isString(t)?e=n=r=a=t:i.isArray(t)&&(e=t[0],r=i.isNil(t[1])?t[0]:t[1],a=i.isNil(t[2])?t[0]:t[2],n=i.isNil(t[3])?r:t[3]),[e,r,a,n]},cloneEvent(t){const e=new r(t.type,t,!0,!0);return e.clientX=t.clientX,e.clientY=t.clientY,e.x=t.x,e.y=t.y,e.target=t.target,e.currentTarget=t.currentTarget,e.item=t.item,e}};t.exports=i},e916:function(t,e){const n=.05;t.exports={getDefaultCfg(){return{sensitivity:2,minZoom:.1,maxZoom:10}},getEvents(){return{wheel:"onWheel"}},onWheel(t){if(t.preventDefault(),!this.shouldUpdate.call(this,t))return;const e=this.graph,r=e.get("canvas"),i=r.getPointByClient(t.clientX,t.clientY),a=r.get("pixelRatio"),o=this.get("sensitivity");let s=e.getZoom();s=t.wheelDelta<0?1-n*o:1+n*o;const u=s*e.getZoom();u>this.get("maxZoom")||u{r[e.get(t.source)]+=1,r[e.get(t.target)]+=1}),r}r.registerLayout("grid",{getDefaultCfg(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position(){},sortBy:"degree",nodeSize:30}},execute(){const t=this,e=t.nodes,n=e.length,r=t.center;if(0===n)return;if(1===n)return e[0].x=r[0],void(e[0].y=r[1]);const o=t.edges,s=[];e.forEach(t=>{s.push(t)});const u=new Map;if(s.forEach((t,e)=>{u.set(t.id,e)}),("degree"===t.sortBy||!i(t.sortBy)||void 0===s[0][t.sortBy])&&(t.sortBy="degree",isNaN(e[0].degree))){const t=a(s.length,u,o);s.forEach((e,n)=>{e.degree=t[n]})}s.sort((e,n)=>n[t.sortBy]-e[t.sortBy]);let c=t.width;c||"undefined"===typeof window||(c=window.innerWidth);let h=t.height;h||"undefined"===typeof h||(h=window.innerHeight),t.cells=n,t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits);const f=t.rows,l=null!=t.cols?t.cols:t.columns;if(null!=f&&null!=l)t.rows=f,t.cols=l;else if(null!=f&&null==l)t.rows=f,t.cols=Math.ceil(t.cells/t.rows);else if(null==f&&null!=l)t.cols=l,t.rows=Math.ceil(t.cells/t.cols);else if(t.cols*t.rows>t.cells){const e=t.small(),n=t.large();(e-1)*n>=t.cells?t.small(e-1):(n-1)*e>=t.cells&&t.large(n-1)}else while(t.cols*t.rows=t.cells?t.large(n+1):t.small(e+1)}t.cellWidth=t.width/t.cols,t.cellHeight=t.height/t.rows,t.condense&&(t.cellWidth=0,t.cellHeight=0),t.preventOverlap&&s.forEach(e=>{let n,r;null!=e.x&&null!=e.y||(e.x=0,e.y=0),isNaN(e.size)?(n=e.size[0],r=e.size[1]):(n=e.size,r=e.size),(isNaN(n)||isNaN(r))&&(isNaN(t.nodeSize)?(n=t.nodeSize[0],r=t.nodeSize[1]):(n=t.nodeSize,r=t.nodeSize));const i=t.preventOverlapPadding,a=n+i,o=r+i;t.cellWidth=Math.max(t.cellWidth,a),t.cellHeight=Math.max(t.cellHeight,o)}),t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(let i=0;i=t.cols&&(t.col=0,t.row++)},getPos(t){const e=this,n=e.begin,r=e.cellWidth,i=e.cellHeight;let a,o;const s=e.id2manPos[t.id];if(s)a=s.col*r+r/2+n[0],o=s.row*i+i/2+n[1];else{while(e.used(e.row,e.col))e.moveToNextCell();a=e.col*r+r/2+n[0],o=e.row*i+i/2+n[1],e.use(e.row,e.col),e.moveToNextCell()}t.x=a,t.y=o}})},eac5:function(t,e){var n=Object.prototype;function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}t.exports=r},ec19:function(t,e,n){const r=n("1249"),i=n("1bb5"),a=n("e00c");r.registerNode("image",{options:{img:"https://img2.bosszhipin.com/boss/avatar/avatar_13.png",size:200,clipCfg:{show:!1,type:"circle",r:50,rx:50,ry:35,width:50,height:35,points:[[30,12],[12,30],[30,48],[48,30]],path:[["M",25,25],["L",50,25],["A",12.5,12.5,0,1,1,50,50],["A",12.5,12.5,0,1,0,50,50],["L",25,75],["Z"]],x:0,y:0,style:{lineWidth:1}}},shapeType:"image",labelPosition:"bottom",drawShape(t,e){const n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r});return this.drawClip(t,i),i},drawClip(t,e){const n=i.mix({},this.options.clipCfg,t.clipCfg);if(!n.show)return;const{type:r,x:o,y:s,style:u}=n;let c=null;if("circle"===r){const{r:t}=n;c=new a.Circle({attrs:{r:t,x:o,y:s,...u}})}else if("rect"===r){const{width:t,height:e}=n;c=new a.Rect({attrs:{x:o,y:s,width:t,height:e,...u}})}else if("ellipse"===r){const{rx:t,ry:e}=n;c=new a.Ellipse({attrs:{x:o,y:s,rx:t,ry:e,...u}})}else if("polygon"===r){const{points:t}=n;c=new a.Polygon({attrs:{points:t,...u}})}else if("path"===r){const{path:t}=n;c=new a.Path({attrs:{path:t,...u}})}c&&e.attr("clip",c)},getShapeStyle(t){const e=this.getSize(t),n=t.img||this.options.img,r=e[0],a=e[1],o=i.mix({},{x:0-r/2,y:0-a/2,width:r,height:a,img:n},t.style);return o}},"single-shape")},ec69:function(t,e,n){var r=n("6fcd"),i=n("03dd"),a=n("30c9");function o(t){return a(t)?r(t):i(t)}t.exports=o},ec8c:function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},edb2:function(t,e,n){t.exports={painter:n("8327"),getShape:n("5e5e")}},edfa:function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}t.exports=n},ee9f:function(t,e,n){"use strict";n.r(e);var r=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function a(){}var o=.7,s=1/o,u="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",h="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgb\\("+[h,h,h]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),g=new RegExp("^rgba\\("+[h,h,h,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,h,h]+"\\)$"),m=new RegExp("^hsla\\("+[c,h,h,c]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function x(){return this.rgb().formatHex()}function b(){return T(this).formatHsl()}function w(){return this.rgb().formatRgb()}function _(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?M(e):3===n?new P(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?S(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?S(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new P(e[1],e[2],e[3],1):(e=d.exec(t))?new P(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=p.exec(t))?S(e[1],e[2],e[3],e[4]):(e=g.exec(t))?S(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?O(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?O(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?M(y[t]):"transparent"===t?new P(NaN,NaN,NaN,0):null}function M(t){return new P(t>>16&255,t>>8&255,255&t,1)}function S(t,e,n,r){return r<=0&&(t=e=n=NaN),new P(t,e,n,r)}function k(t){return t instanceof a||(t=_(t)),t?(t=t.rgb(),new P(t.r,t.g,t.b,t.opacity)):new P}function A(t,e,n,r){return 1===arguments.length?k(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function C(){return"#"+I(this.r)+I(this.g)+I(this.b)}function E(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function I(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function O(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new j(t,e,n,r)}function T(t){if(t instanceof j)return new j(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=_(t)),!t)return new j;if(t instanceof j)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-i,c=(o+i)/2;return u?(s=e===o?(n-r)/u+6*(n0&&c<1?0:s,new j(s,u,c,t.opacity)}function N(t,e,n,r){return 1===arguments.length?T(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function B(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function L(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}r(a,_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:x,formatHex:x,formatHsl:b,formatRgb:w,toString:w}),r(P,A,i(a,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:E,toString:E})),r(j,N,i(a,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new j(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new j(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new P(B(t>=240?t-240:t+120,i,r),B(t,i,r),B(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var D=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):F(isNaN(t)?e:t)}function X(t){return 1===(t=+t)?G:function(e,n){return n-e?q(e,n,t):F(isNaN(e)?n:e)}}function G(t,e){var n=e-t;return n?Y(t,n):F(isNaN(t)?e:t)}var W=function t(e){var n=X(e);function r(t,e){var r=n((t=A(t)).r,(e=A(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=G(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function U(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;na&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:Q(n,r)})),a=tt.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Q(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Q(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function u(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Q(t,n)},{i:s-2,x:Q(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,i),o(e.rotate,n.rotate,r,i),s(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,a=i.length;while(++nRt?Math.pow(t,1/3):t/Dt+Bt}function Xt(t){return t>Lt?t*t*t:Dt*(t-Bt)}function Gt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Wt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ut(t){if(t instanceof Ht)return new Ht(t.h,t.c,t.l,t.opacity);if(t instanceof qt||(t=Ft(t)),0===t.a&&0===t.b)return new Ht(NaN,0u||c>e[i].lim));a=i,i=r;while((i=t.parent(i))!==a)s.push(i);return{path:o.concat(s.reverse()),lca:a}}function o(t){var e={},n=0;function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}}return r.forEach(t.children(),i),e}t.exports=i},f352:function(t,e,n){var r=n("6f9c"),i=n("b50e");function a(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,u=r.sortBy(n.rhs,(function(t){return-t.i})),c=[],h=0,f=0,l=0;a.sort(s(!!e)),l=o(c,u,l),r.forEach(a,(function(t){l+=t.vs.length,c.push(t.vs),h+=t.barycenter*t.weight,f+=t.weight,l=o(c,u,l)}));var d={vs:r.flatten(c,!0)};return f&&(d.barycenter=h/f,d.weight=f),d}function o(t,e,n){var i;while(e.length&&(i=r.last(e)).i<=n)e.pop(),t.push(i.vs),n++;return n}function s(t){return function(e,n){return e.barycentern.barycenter?1:t?n.i-e.i:e.i-n.i}}t.exports=a},f3c1:function(t,e){var n=800,r=16,i=Date.now;function a(t){var e=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=a},f4c8:function(t,e){const n="dblclick",r=["click","dblclick"];t.exports={getDefaultCfg(){return{trigger:n}},getEvents(){let t;return r.includes(this.trigger)?t=this.trigger:(t=n,console.warn("Behavior collapse-expand-group的trigger参数不合法,请输入click或dblclick")),{[""+t]:"onGroupClick"}},onGroupClick(t){const{target:e}=t,n=e.get("groupId");if(!n)return!1;const r=this.graph,i=r.get("customGroupControll");i.collapseExpandGroup(n)}}},f4d6:function(t,e,n){var r=n("ffd6"),i=1/0;function a(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}t.exports=a},f608:function(t,e,n){var r=n("6747"),i=n("ffd6"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(o.test(t)||!a.test(t)||null!=e&&t in Object(e))}t.exports=s},f8af:function(t,e,n){var r=n("2474");function i(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}t.exports=i},f909:function(t,e,n){var r=n("7e64"),i=n("b760"),a=n("72af"),o=n("4f50"),s=n("1a8c"),u=n("9934"),c=n("8adb");function h(t,e,n,f,l){t!==e&&a(e,(function(a,u){if(l||(l=new r),s(a))o(t,e,u,n,h,f,l);else{var d=f?f(c(t,u),a,u+"",t,e,l):void 0;void 0===d&&(d=a),i(t,u,d)}}),u)}t.exports=h},f98b:function(t,e,n){var r=n("9272");t.exports=r},f9ce:function(t,e,n){var r=n("ef5d"),i=n("e3f8"),a=n("f608"),o=n("f4d6");function s(t){return a(t)?r(o(t)):i(t)}t.exports=s},fa21:function(t,e,n){var r=n("7530"),i=n("2dcb"),a=n("eac5");function o(t){return"function"!=typeof t.constructor||a(t)?{}:r(i(t))}t.exports=o},fb06:function(t,e,n){const r=n("1bb5"),i=n("8d21"),a="anchorPointsCache",o="bboxCache";function s(t,e){let n=0,r=t[0],i=u(t[0],e);for(let a=0;ae.get("target")===t)}getOutEdges(){const t=this;return this.get("edges").filter(e=>e.get("source")===t)}getLinkPointByAnchor(t){const e=this.getAnchorPoints();return e[t]}getLinkPoint(t){const e=this.get("keyShape"),n=e.get("type"),i=this.getBBox(),{centerX:a,centerY:o}=i,u=this.getAnchorPoints();let c;switch(n){case"circle":c=r.getCircleIntersectByPoint({x:a,y:o,r:i.width/2},t);break;case"ellipse":c=r.getEllispeIntersectByPoint({x:a,y:o,rx:i.width/2,ry:i.height/2},t);break;default:c=r.getRectIntersectByPoint(i,t)}let h=c;return u.length&&(h||(h=t),h=s(u,h)),h||(h={x:a,y:o}),h}lock(){this.set("locked",!0)}unlock(){this.set("locked",!1)}hasLocked(){return this.get("locked")}addEdge(t){this.get("edges").push(t)}removeEdge(t){const e=this.getEdges(),n=e.indexOf(t);n>-1&&e.splice(n,1)}clearCache(){this.set(o,null),this.set(a,null)}_isOnlyMove(t){if(!t)return!1;const e=!r.isNil(t.x),n=!r.isNil(t.y),i=Object.keys(t);return 1===i.length&&(e||n)||2===i.length&&e&&n}getAnchorPoints(){let t=this.get(a);if(!t){t=[];const e=this.get("shapeFactory"),n=this.getBBox(),i=this.get("model"),o=this.getShapeCfg(i),s=e.getAnchorPoints(i.shape,o)||[];r.each(s,(e,i)=>{const a=r.mix({x:n.minX+e[0]*n.width,y:n.minY+e[1]*n.height},e[2],{index:i});t.push(a)}),this.set(a,t)}return t}}t.exports=c},fb77:function(t,e,n){"use strict";function r(t){return+t}function i(t){return t*t}function a(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function s(t){return t*t*t}function u(t){return--t*t*t+1}function c(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e);var h=3,f=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(h),l=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(h),d=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(h),p=Math.PI,g=p/2;function v(t){return 1===+t?1:1-Math.cos(t*g)}function m(t){return Math.sin(t*g)}function y(t){return(1-Math.cos(p*t))/2}function x(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function b(t){return x(1-+t)}function w(t){return 1-x(t)}function _(t){return((t*=2)<=1?x(1-t):2-x(t-1))/2}function M(t){return 1-Math.sqrt(1-t*t)}function S(t){return Math.sqrt(1- --t*t)}function k(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var A=4/11,P=6/11,C=8/11,E=3/4,I=9/11,O=10/11,T=15/16,N=21/22,j=63/64,B=1/A/A;function L(t){return 1-D(1-t)}function D(t){return(t=+t)-1}t.exports=i},fc14:function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("9ed2");r.registerNode("diamond",{options:{size:[100,100],style:{stroke:a.defaultShapeStrokeColor,fill:a.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"}},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16}},shapeType:"circle",labelPosition:"center",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r}=this.options,{icon:a}=n,o=this.getShapeStyle(t),s=i({},r,a,t.icon),u=e.addShape("path",{attrs:o}),{width:c,height:h,show:f}=s;if(f){const t=e.addShape("image",{attrs:{x:-c/2,y:-h/2,...s},className:"diamond-icon"});t.set("capture",!1)}return this.drawLinkPoints(t,e),u},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,bottom:h,size:f,...l}=o,d=this.getSize(t),p=d[0],g=d[1];u&&e.addShape("circle",{attrs:{...l,x:-p/2,y:0,r:f},className:"diamond-mark-left",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:{...l,x:p/2,y:0,r:f},className:"diamond-mark-right",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:{...l,x:0,y:-g/2,r:f},className:"diamond-mark-top",isAnchorPoint:!0}),h&&e.addShape("circle",{attrs:{...l,x:0,y:g/2,r:f},className:"diamond-mark-bottom",isAnchorPoint:!0})},getPath(t){const e=this.getSize(t),n=e[0],r=e[1],i=[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]];return i},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,a={stroke:t.color},o=i({},n,r,a,t.style),s=this.getPath(t),u={path:s,...o};return u},update(t,e){const n=e.getContainer(),r=this.getCustomConfig(t)||{},{style:a,icon:o,labelCfg:s}=this.options,{style:u,icon:c,labelCfg:h}=r,f=i({},a,u,t.style),l=i({},o,c,t.icon),d=e.get("keyShape"),p=this.getPath(t);d.attr({path:p,...f});const g=i({},s,h,t.labelCfg),v=this.getLabelStyle(t,g,n),m=n.findByClassName("node-label");m&&m.attr({...v});const y=n.findByClassName("diamond-icon");if(y){const{width:t,height:e}=l;y.attr({x:-t/2,y:-e/2,...l})}this.updateLinkPoints(t,n)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,fill:u,stroke:c,lineWidth:h}=o,f=this.getSize(t),l=f[0],d=f[1],p=e.findByClassName("diamond-mark-left");p&&p.attr({x:-l/2,y:0,r:s,fill:u,stroke:c,lineWidth:h});const g=e.findByClassName("diamond-mark-right");g&&g.attr({x:l/2,y:0,r:s,fill:u,stroke:c,lineWidth:h});const v=e.findByClassName("diamond-mark-top");v&&v.attr({x:0,y:-d/2,r:s,fill:u,stroke:c,lineWidth:h});const m=e.findByClassName("diamond-mark-bottom");m&&m.attr({x:0,y:d/2,r:s,fill:u,stroke:c,lineWidth:h})}},"single-shape")},fd07:function(t,e,n){var r=n("1c6a"),i=n("9f57"),a=n("51ad"),o=["click","mousedown","mouseup","dblclick","contextmenu","mouseout","mouseover","mousemove","dragstart","drag","dragend","dragenter","dragleave","drop"],s=function(){};r.augment(s,a,{emit:function(t,e){var n=arguments;if(a.prototype.emit.apply(this,n),!(n.length>=2&&n[1]instanceof i&&n[1].propagationStopped)&&o.indexOf(t)>=0&&e.target===this){var r=this._cfg.parent;while(r&&!r.get("destroyed"))r.emit.apply(r,n),r=r._cfg.parent}}}),t.exports=s},fdbc:function(t,e,n){var r=n("1c6a"),i=n("2172"),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()})),e.beforeDraw();try{e._drawGroup(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i)}finally{e.toDraw=!1}}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=this,n=t._cfg.children,r=null;this.setContext(t);for(var i=0;i-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},fe39:function(t,e,n){const r=n("b0b3"),i=n("e877"),a=i.vec2;function o(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}t.exports={getSpline(t){const e=[];for(let r=0;r{const e=t.get("id");return i===e});if(0===a.length){this.target=e;const t=e.getModel(),{groupId:r}=t;if(r){const t=n.get("customGroupControll"),e=t.getDeletageGroupById(r);if(e){const{nodeGroup:n}=e,i=n.get("keyShape");t.setGroupStyle(i,"hover"),this.inGroupId=r}}}else r.length>1?r.forEach(t=>{this.targets.push(t)}):this.targets.push(e);this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}},onDrag(t){if(this.origin&&this.get("shouldUpdate").call(this,t))if(this.targets.length>0)this._updateDelegate(t);else{this._update(this.target,t,!0);const{item:e}=t,n=this.graph,r=e.getModel(),{groupId:i}=r;if(i){const t=n.get("customGroupControll"),e=t.getDeletageGroupById(i);if(e){const{nodeGroup:n}=e,r=n.get("keyShape");this.inGroupId!==i?t.setGroupStyle(r,"default"):t.setGroupStyle(r,"hover")}}}},onDragEnd(t){if(!this.origin||!this.shouldEnd.call(this,t))return;if(this.shape&&(this.shape.remove(),this.shape=null),this.target){const t=this.target.get("delegateShape");t&&(t.remove(),this.target.set("delegateShape",null))}this.targets.length>0?this.targets.forEach(e=>this._update(e,t)):this.target&&this._update(this.target,t),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.target=null;const e=this.fn;e&&(a.removeEventListener("mouseup",e,!1),this.fn=null),this.setCurrentGroupStyle(t)},setCurrentGroupStyle(t){const{item:e}=t,n=this.graph,r=n.get("autoPaint");n.setAutoPaint(!1);const i=e.getModel(),{groupId:a,id:o}=i,s=n.get("customGroupControll"),u=s.customGroup,c=n.get("groupNodes");if(this.inGroupId&&a){const n=u[a].nodeGroup,r=n.get("keyShape"),h=e.getBBox(),f=r.getBBox(),{x:l,y:d}=h,{minX:p,minY:g,maxX:v,maxY:m}=f;if(!(lp*this.minMultiple&&dg*this.minMultiple)||this.inGroupId!==a){const e=c[a];c[a]=e.filter(t=>t!==o),s.dynamicChangeGroupSize(t,n,r),delete i.groupId}if(this.inGroupId!==a){const e=u[this.inGroupId].nodeGroup,n=e.get("keyShape");-1===c[this.inGroupId].indexOf(o)&&c[this.inGroupId].push(o),i.groupId=this.inGroupId,s.dynamicChangeGroupSize(t,e,n)}s.setGroupStyle(r,"default")}else if(this.inGroupId&&!a){const e=u[this.inGroupId].nodeGroup,n=e.get("keyShape");-1===c[this.inGroupId].indexOf(o)&&c[this.inGroupId].push(o),i.groupId=this.inGroupId,s.dynamicChangeGroupSize(t,e,n)}else if(!this.inGroupId&&a){for(const t in c){const e=c[t];c[t]=e.filter(t=>t!==o)}const e=u[a].nodeGroup,n=e.get("keyShape");s.dynamicChangeGroupSize(t,e,n),delete i.groupId}this.inGroupId=null,n.paint(),n.setAutoPaint(r)},onOutOfRange(t){const e=this;if(this.origin){const n=e.graph.get("canvas").get("el"),r=r=>{r.target!==n&&e.onDragEnd(t)};this.fn=r,a.addEventListener("mouseup",r,!1)}},_update(t,e,n){const r=this.origin,i=t.get("model"),a=t.get("id");this.point[a]||(this.point[a]={x:i.x,y:i.y});const o=e.x-r.x+this.point[a].x,s=e.y-r.y+this.point[a].y;if(n)return void this._updateDelegate(e,o,s);const u={x:o,y:s};this.get("updateEdge")?this.graph.updateItem(t,u):(t.updatePosition(u),this.graph.paint())},_updateDelegate(t,e,n){const{item:a}=t,o=this.graph,s=o.get("groupType"),u=a.get("keyShape").getBBox();if(!this.shape){const t=o.get("group"),s=r({},i,this.delegateStyle);if(this.targets.length>0){const e=o.findAllByState("node","selected");0===e.length&&e.push(a);const n=o.get("customGroupControll"),{x:r,y:i,width:u,height:c}=n.calculationGroupPosition(e);this.originPoint={x:r,y:i,width:u,height:c},this.shape=t.addShape("rect",{attrs:{width:u,height:c,x:r,y:i,...s}})}else this.target&&(this.shape=t.addShape("rect",{attrs:{width:u.width,height:u.height,x:e-u.width/2,y:n-u.height/2,...s}}),this.target.set("delegateShape",this.shape));this.shape.set("capture",!1)}if(this.targets.length>0){const e=t.x-this.origin.x+this.originPoint.minX,n=t.y-this.origin.y+this.originPoint.minY;this.shape.attr({x:e,y:n})}else this.target&&("circle"===s?this.shape.attr({x:e-u.width/2,y:n-u.height/2}):"rect"===s&&this.shape.attr({x:e,y:n}));this.graph.paint()}}}}]);