!function(t){var i={};function n(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var s in t)n.d(o,s,function(i){return t[i]}.bind(null,s));return o},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=0)}([function(t,i,n){"use strict";function o(t,i,n,o,s,e,h){t.beginPath(),t.moveTo(i+e,n),t.lineTo(i+o-e,n),t.quadraticCurveTo(i+o,n,i+o,n+e),t.lineTo(i+o,n+s-e),t.quadraticCurveTo(i+o,n+s,i+o-e,n+s),t.lineTo(i+e,n+s),t.quadraticCurveTo(i,n+s,i,n+s-e),t.lineTo(i,n+e),t.quadraticCurveTo(i,n,i+e,n),t.closePath(),t.stroke(),h||t.fill()}function s(t,i,n,o,s,e,h){t.textAlign="center",t.textBaseline="middle",n+=s/2,o+=e/2;for(var a=i.split("\n"),c=0;cs?(r=g[f]+" ",o-=h/2):r=l}r="";for(var d=0;ds?(t.fillText(r,n,o),r=g[d]+" ",o+=h):r=m}t.fillText(r,n,o),o+=h}}function e(t,i){for(var n=0;no&&(o=l.count)):i[f].orphan||(n.push({id:i[f].y,count:1}),i[f].x=1)}this.config.linesCount=n,this.config.columnsCount=o,this.config.columnLower=s,this.diagrams=i},this.draw=function(){if(this.context.transformedPoint){var t=this.context.transformedPoint(0,0),i=this.context.transformedPoint(this.canvas.width,this.canvas.height);this.context.clearRect(t.x,t.y,i.x-t.x,i.y-t.y)}else this.context.clearRect(0,0,this.canvas.width,this.canvas.height);var n=this.config.width+2*this.config.margin;0==this.config.columnsCount&&(this.config.columnsCount=parseInt(this.canvas.width/n));var h=this.config.columnsCount*n,a=parseInt(this.canvas.width)/2-h/2;this.context.rotate(2*Math.PI);for(var c=0,r=0;r1&&(W=!0),this.context.setLineDash&&this.context.setLineDash([this.config.lineWidth,0]),this.context.strokeStyle=this.config.lineColor||this.diagrams[p].bgColor,this.context.fillStyle=this.config.lineColor||this.diagrams[p].bgColor;var C=0;b?(C=this.config.margin/2-this.config.margin/this.config.columnsCount*this.diagrams[p].x,isFinite(C)||(C=0),this.context.beginPath(),this.context.moveTo(y.left+this.config.width/2+-1*C-C,y.top+this.config.height),this.context.lineTo(y.left+this.config.width/2+-1*C-C,y.top+this.config.height+this.config.margin/2.5),this.context.lineTo(y.left+this.config.width/2+-1*C+C,y.top+this.config.height+this.config.margin/2.5),this.context.lineTo(y.left+this.config.width/2+-1*C+C,y.top+this.config.height+this.config.arrowWidth/2),this.context.stroke(),this.context.beginPath(),this.context.moveTo(y.left+this.config.width/2+-1*C+C,y.top+this.config.height),this.context.lineTo(y.left+this.config.width/2-this.config.arrowWidth/2+-1*C+C,y.top+this.config.height+this.config.arrowWidth),this.context.lineTo(y.left+this.config.width/2+this.config.arrowWidth/2+-1*C+C,y.top+this.config.height+this.config.arrowWidth),this.context.fill()):T?(this.config.lineDiff&&(C=this.config.margin/2-this.config.margin/this.config.columnsCount*this.diagrams[p].x+(this.config.margin-(this.config.arrowWidth+2*this.config.lineWidth*0))),this.context.setLineDash&&this.context.setLineDash([this.config.lineWidth,this.config.lineWidth]),this.context.beginPath(),this.context.moveTo(this.diagrams[p].left+this.config.width/2+C,this.diagrams[p].top+this.config.height/2+C),this.context.lineTo(this.diagrams[p].left+this.config.width+this.config.margin+C,this.diagrams[p].top+this.config.height/2+C),this.context.lineTo(this.diagrams[p].left+this.config.width+this.config.margin+C,y.top-this.config.margin+C),this.context.lineTo(y.left+this.config.width/2+C,y.top-this.config.margin+C),this.context.lineTo(y.left+this.config.width/2+C,y.top-this.config.arrowWidth+C),this.context.lineWidth=this.config.lineWidth,this.context.stroke(),this.context.beginPath(),this.context.moveTo(y.left+this.config.width/2+C,y.top),this.context.lineTo(y.left+this.config.width/2-this.config.arrowWidth/2+C,y.top-this.config.arrowWidth),this.context.lineTo(y.left+this.config.width/2+this.config.arrowWidth/2+C,y.top-this.config.arrowWidth),this.context.fill()):W?(this.config.lineDiff&&(C=this.config.margin/2-this.config.margin/this.config.columnsCount*this.diagrams[p].x+(this.config.margin-(this.config.arrowWidth+2*this.config.lineWidth*S))),S++,isFinite(C)||(C=0),this.context.setLineDash&&this.context.setLineDash([this.config.lineWidth,this.config.lineWidth]),this.context.beginPath(),this.context.moveTo(this.diagrams[p].left+this.config.width/2+-1*C,this.diagrams[p].top),this.context.lineTo(this.diagrams[p].left+this.config.width/2+-1*C,this.diagrams[p].top-this.config.margin+C),this.context.lineTo(y.left+this.config.width/2+-1*C,this.diagrams[p].top-this.config.margin+C),this.context.lineTo(y.left+this.config.width/2+-1*C,y.top+this.config.height+this.config.margin+C),this.context.lineTo(y.left+this.config.width/2+-1*C,y.top+this.config.height+this.config.arrowWidth/2),this.context.lineWidth=this.config.lineWidth,this.context.stroke(),this.context.beginPath(),this.context.moveTo(y.left+this.config.width/2+-1*C,y.top+this.config.height),this.context.lineTo(y.left+this.config.width/2-this.config.arrowWidth/2+-1*C,y.top+this.config.height+this.config.arrowWidth),this.context.lineTo(y.left+this.config.width/2+this.config.arrowWidth/2+-1*C,y.top+this.config.height+this.config.arrowWidth),this.context.fill()):(this.config.lineDiff&&(C=this.config.margin/2-this.config.margin/this.config.columnsCount*this.diagrams[p].x),isFinite(C)||(C=0),this.context.beginPath(),this.context.moveTo(this.diagrams[p].left+this.config.width/2+-1*C,this.diagrams[p].top),this.context.lineTo(this.diagrams[p].left+this.config.width/2+-1*C,this.diagrams[p].top-this.config.margin+C),this.context.lineTo(y.left+this.config.width/2+-1*C,y.top+this.config.height+this.config.margin+C),this.context.lineTo(y.left+this.config.width/2+-1*C,y.top+this.config.height+this.config.arrowWidth/2),this.context.lineWidth=this.config.lineWidth,this.context.stroke(),this.context.beginPath(),this.context.moveTo(y.left+this.config.width/2+-1*C,y.top+this.config.height),this.context.lineTo(y.left+this.config.width/2-this.config.arrowWidth/2+-1*C,y.top+this.config.height+this.config.arrowWidth),this.context.lineTo(y.left+this.config.width/2+this.config.arrowWidth/2+-1*C,y.top+this.config.height+this.config.arrowWidth),this.context.fill())}for(var P=0;P