dhx-chart 9.2.1 → 9.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
3
 
4
- dhtmlxChart v.9.2.1 GPL
4
+ dhtmlxChart v.9.2.2 GPL
5
5
 
6
6
  This software is covered by GPL license.
7
7
  To use it in non-GPL project, you need obtain Commercial or Enterprise license
@@ -18,4 +18,4 @@ if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"=
18
18
  * A thin, fast, dependency-free vdom view layer
19
19
  * @preserve https://github.com/leeoniya/domvm (v3.2.6, micro build)
20
20
  */
21
- t.exports=function(){"use strict";var t=1,e=2,n=3,r=4,i=5,o="undefined"!=typeof window,a=(o?window:{}).requestAnimationFrame,s={};function c(){}var l=Array.isArray;function u(t){return null!=t}function h(t){return null!=t&&t.constructor===Object}function f(t,e,n,r){t.splice.apply(t,[n,r].concat(e))}function d(t){var e=typeof t;return"string"===e||"number"===e}function p(t){return"function"==typeof t}function v(t){return"object"==typeof t&&p(t.then)}function g(t){for(var e=arguments,n=1;n<e.length;n++)for(var r in e[n])t[r]=e[n][r];return t}function _(t,e,n){for(var r;r=e.shift();)0===e.length?t[r]=n:t[r]=t=t[r]||{}}function y(t,e){for(var n=[],r=e;r<t.length;r++)n.push(t[r]);return n}function m(t,e){for(var n in t)if(t[n]!==e[n])return!1;return!0}function x(t,e){var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function b(t){if(!a)return t;var e,n,r;function i(){e=0,t.apply(n,r)}return function(){n=this,r=arguments,e||(e=a(i))}}function w(t,e,n){return function(){return t.apply(n,e)}}function O(t){var e,n,r=t.slice(),i=[];i.push(0);for(var o=0,a=t.length;o<a;++o){var s=i[i.length-1];if(t[s]<t[o])r[o]=s,i.push(o);else{for(e=0,n=i.length-1;e<n;){var c=(e+n)/2|0;t[i[c]]<t[o]?e=c+1:n=c}t[o]<t[i[e]]&&(e>0&&(r[o]=i[e-1]),i[e]=o)}}for(n=i[(e=i.length)-1];e-- >0;)i[e]=n,n=r[n];return i}function D(t,e){var n,r=0,i=e.length-1;if(i<=2147483647)for(;r<=i;){if(e[n=r+i>>1]===t)return n;e[n]<t?r=n+1:i=n-1}else for(;r<=i;){if(e[n=Math.floor((r+i)/2)]===t)return n;e[n]<t?r=n+1:i=n-1}return r==e.length?null:r}function S(t){return"o"===t[0]&&"n"===t[1]}function T(t){return"_"===t[0]}function C(t){return"style"===t}function M(t){t&&t.el&&t.el.offsetHeight}function P(t){return null!=t.node&&null!=t.node.el}function k(t,e){switch(e){case"value":case"checked":case"selected":return!0}return!1}function j(t){for(t=t||s;null==t.vm&&t.parent;)t=t.parent;return t.vm}function E(){}var L=E.prototype={constructor:E,type:null,vm:null,key:null,ref:null,data:null,hooks:null,ns:null,el:null,tag:null,attrs:null,body:null,flags:0,_class:null,_diff:null,_dead:!1,_lis:!1,idx:null,parent:null};function A(t){var n=new E;return n.type=e,n.body=t,n}var I={},F=/\[(\w+)(?:=(\w+))?\]/g;function N(t){var e,n,r,i,o=I[t];if(null==o)for(I[t]=o={tag:(e=t.match(/^[-\w]+/))?e[0]:"div",id:(n=t.match(/#([-\w]+)/))?n[1]:null,class:(r=t.match(/\.([-\w.]+)/))?r[1].replace(/\./g," "):null,attrs:null};i=F.exec(t);)null==o.attrs&&(o.attrs={}),o.attrs[i[1]]=i[2]||"";return o}var R=1,H=2,W=4,z=8;function V(e,n,r,i){var o=new E;o.type=t,u(i)&&(o.flags=i),o.attrs=n;var a=N(e);if(o.tag=a.tag,a.id||a.class||a.attrs){var s=o.attrs||{};if(a.id&&!u(s.id)&&(s.id=a.id),a.class&&(o._class=a.class,s.class=a.class+(u(s.class)?" "+s.class:"")),a.attrs)for(var c in a.attrs)u(s[c])||(s[c]=a.attrs[c]);o.attrs=s}var l=o.attrs;return u(l)&&(u(l._key)&&(o.key=l._key),u(l._ref)&&(o.ref=l._ref),u(l._hooks)&&(o.hooks=l._hooks),u(l._data)&&(o.data=l._data),u(l._flags)&&(o.flags=l._flags),u(o.key)||(u(o.ref)?o.key=o.ref:u(l.id)?o.key=l.id:u(l.name)&&(o.key=l.name+("radio"===l.type||"checkbox"===l.type?l.value:"")))),null!=r&&(o.body=r),o}function G(t,e,n){_(t,["refs"].concat(e.split(".")),n)}function $(t){for(;t=t.parent;)t.flags|=R}function Y(t,e,n,o){if(t.type!==i&&t.type!==r){t.parent=e,t.idx=n,t.vm=o,null!=t.ref&&G(j(t),t.ref,t);var a=t.hooks,s=o&&o.hooks;(a&&(a.willRemove||a.didRemove)||s&&(s.willUnmount||s.didUnmount))&&$(t),l(t.body)&&B(t)}}function B(t){for(var n=t.body,r=0;r<n.length;r++){var i=n[r];!1===i||null==i?n.splice(r--,1):l(i)?f(n,i,r--,1):(null==i.type&&(n[r]=i=A(""+i)),i.type===e?null==i.body||""===i.body?n.splice(r--,1):r>0&&n[r-1].type===e?(n[r-1].body+=i.body,n.splice(r--,1)):Y(i,t,r,null):Y(i,t,r,null))}}var X={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,order:!0,lineClamp:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function U(t,e){return isNaN(e)||X[t]?e:e+"px"}function J(t,e){var n=(t.attrs||s).style,r=e?(e.attrs||s).style:null;if(null==n||d(n))t.el.style.cssText=n;else{for(var i in n){var o=n[i];(null==r||null!=o&&o!==r[i])&&(t.el.style[i]=U(i,o))}if(r)for(var a in r)null==n[a]&&(t.el.style[a]="")}}var q=[];function Z(t,e,n,r,i){if(null!=t){var o=n.hooks[e];if(o){if("d"!==e[0]||"i"!==e[1]||"d"!==e[2])return o(n,r);i?M(n.parent)&&o(n,r):q.push([o,n,r])}}}function K(t){var e;if(q.length)for(M(t.node);e=q.shift();)e[0](e[1],e[2])}var Q=o?document:null;function tt(t){for(;null==t._node;)t=t.parentNode;return t._node}function et(t,e){return null!=e?Q.createElementNS(e,t):Q.createElement(t)}function nt(t){return Q.createTextNode(t)}function rt(t){return Q.createComment(t)}function it(t){return t.nextSibling}function ot(t){return t.previousSibling}function at(t){var e=t.vm,n=null!=e&&Z(e.hooks,"willUnmount",e,e.data),r=Z(t.hooks,"willRemove",t);if((t.flags&R)===R&&l(t.body))for(var i=0;i<t.body.length;i++)at(t.body[i]);return n||r}function st(t,e,n){var r=e._node,i=r.vm;if(l(r.body))if((r.flags&R)===R)for(var o=0;o<r.body.length;o++)st(e,r.body[o].el);else lt(r);delete e._node,t.removeChild(e),Z(r.hooks,"didRemove",r,null,n),null!=i&&(Z(i.hooks,"didUnmount",i,i.data,n),i.node=null)}function ct(t,e){var n=e._node;if(!n._dead){var r=at(n);null!=r&&v(r)?(n._dead=!0,r.then(w(st,[t,e,!0]))):st(t,e)}}function lt(t){for(var e=t.body,n=0;n<e.length;n++){var r=e[n];delete r.el._node,null!=r.vm&&(r.vm.node=null),l(r.body)&&lt(r)}}function ut(t){var e=t.el;if(0==(t.flags&R))l(t.body)&&lt(t),e.textContent=null;else{var n=e.firstChild;do{var r=it(n);ct(e,n)}while(n=r)}}function ht(t,e,n){var r=e._node,i=null!=e.parentNode,o=e!==n&&i?null:r.vm;null!=o&&Z(o.hooks,"willMount",o,o.data),Z(r.hooks,i?"willReinsert":"willInsert",r),t.insertBefore(e,n),Z(r.hooks,i?"didReinsert":"didInsert",r),null!=o&&Z(o.hooks,"didMount",o,o.data)}function ft(t,e,n){ht(t,e,n?it(n):null)}var dt={};function pt(t){g(dt,t)}function vt(t){var e=this,n=e,r=y(arguments,1).concat(n,n.data);do{var i=e.onemit,o=i?i[t]:null;if(o){o.apply(e,r);break}}while(e=e.parent());dt[t]&&dt[t].apply(e,r)}var gt=c;function _t(t){gt=t.onevent||gt,t.onemit&&pt(t.onemit)}function yt(t,e,n){t[e]=n}function mt(t,e,n,r,i){var o=t.apply(i,e.concat([n,r,i,i.data]));i.onevent(n,r,i,i.data,e),gt.call(null,n,r,i,i.data,e),!1===o&&(n.preventDefault(),n.stopPropagation())}function xt(t){var e,n,r=tt(t.target),i=j(r),o=t.currentTarget._node.attrs["on"+t.type];if(l(o))mt(e=o[0],n=o.slice(1),t,r,i);else for(var a in o)if(t.target.matches(a)){var s=o[a];l(s)?(e=s[0],n=s.slice(1)):(e=s,n=[]),mt(e,n,t,r,i)}}function bt(t,e,n,r){if(n!==r){var i=t.el;null==n||p(n)?yt(i,e,n):null==r&&yt(i,e,xt)}}function wt(t,e,n){"."===e[0]&&(e=e.substr(1),n=!0),n?t.el[e]="":t.el.removeAttribute(e)}function Ot(t,e,n,r,i){var o=t.el;null==n?!i&&wt(t,e,!1):null!=t.ns?o.setAttribute(e,n):"class"===e?o.className=n:"id"===e||"boolean"==typeof n||r?o[e]=n:"."===e[0]?o[e.substr(1)]=n:o.setAttribute(e,n)}function Dt(t,e,n){var r=t.attrs||s,i=e.attrs||s;if(r===i);else{for(var o in r){var a=r[o],c=k(t.tag,o),l=c?t.el[o]:i[o];a===l||(C(o)?J(t,e):T(o)||(S(o)?bt(t,o,a,l):Ot(t,o,a,c,n)))}for(var o in i)!(o in r)&&!T(o)&&wt(t,o,k(t.tag,o)||S(o))}}function St(t,e,n,i){return t.type===r&&(e=t.data,n=t.key,i=t.opts,t=t.view),new Yt(t,e,n,i)}function Tt(t){for(var e=0;e<t.body.length;e++){var o=t.body[e],a=o.type;if(a<=n)ht(t.el,Ct(o));else if(a===r)a=(s=St(o.view,o.data,o.key,o.opts)._redraw(t,e,!1)).node.type,ht(t.el,Ct(s.node));else if(a===i){var s;(s=o.vm)._redraw(t,e),a=s.node.type,ht(t.el,s.node.el)}}}function Ct(r,i){return null==r.el&&(r.type===t?(r.el=i||et(r.tag,r.ns),null!=r.attrs&&Dt(r,s,!0),(r.flags&z)===z&&r.body.body(r),l(r.body)?Tt(r):null!=r.body&&""!==r.body&&(r.el.textContent=r.body)):r.type===e?r.el=i||nt(r.body):r.type===n&&(r.el=i||rt(r.body))),r.el._node=r,r.el}function Mt(t,e){return e[t.idx+1]}function Pt(t,e){return e[t.idx-1]}function kt(t){return t.parent}window.lisMove=At;var jt=1,Et=2;function Lt(t,e,n,r,i,o,a,s){return function(c,l,u,h,f,d){var p,v;if(null!=h[r]){if(null==(p=h[r]._node))return void(h[r]=t(h[r]));if(kt(p)!==c)return v=t(h[r]),null!=p.vm?p.vm.unmount(!0):ct(l,h[r]),void(h[r]=v)}if(h[i]==f)return Et;if(null==h[i].el)n(l,Ct(h[i]),h[r]),h[i]=e(h[i],u);else if(h[i].el===h[r])h[i]=e(h[i],u),h[r]=t(h[r]);else{if(d||p!==h[a])return d&&null!=h[r]?At(t,e,n,r,i,l,u,p,h):jt;v=h[r],h[r]=t(v),s(l,v,h[o]),h[o]=v}}}function At(t,e,n,r,i,o,a,s,c){if(s._lis)n(o,c[i].el,c[r]),c[i]=e(c[i],a);else{var l=D(s.idx,c.tombs);s._lis=!0;var u=t(c[r]);n(o,c[r],null!=l?a[c.tombs[l]].el:l),null==l?c.tombs.push(s.idx):c.tombs.splice(l,0,s.idx),c[r]=u}}var It=Lt(it,Mt,ht,"lftSib","lftNode","rgtSib","rgtNode",ft),Ft=Lt(ot,Pt,ft,"rgtSib","rgtNode","lftSib","lftNode",ht);function Nt(t,e){var n=e.body,r=t.el,i=t.body,o={lftNode:i[0],rgtNode:i[i.length-1],lftSib:(n[0]||s).el,rgtSib:(n[n.length-1]||s).el};t:for(;;){for(;;){var a=It(t,r,i,o,null,!1);if(a===jt)break;if(a===Et)break t}for(;;){var c=Ft(t,r,i,o,o.lftNode,!1);if(c===jt)break;if(c===Et)break t}Rt(t,r,i,o);break}}function Rt(t,e,n,r){for(var i=Array.prototype.slice.call(e.childNodes),o=[],a=0;a<i.length;a++){var s=i[a]._node;s.parent===t&&o.push(s.idx)}for(var c=O(o).map((function(t){return o[t]})),l=0;l<c.length;l++)n[c[l]]._lis=!0;for(r.tombs=c;It(t,e,n,r,null,!0)!==Et;);}function Ht(t){return t.el._node.parent!==t.parent}function Wt(t,e,n){return e[n]}function zt(t,e,n){for(;n<e.length;n++){var o=e[n];if(null!=o.vm){if(t.type===r&&o.vm.view===t.view&&o.vm.key===t.key||t.type===i&&o.vm===t.vm)return o}else if(!Ht(o)&&t.tag===o.tag&&t.type===o.type&&t.key===o.key&&(t.flags&~R)==(o.flags&~R))return o}return null}function Vt(t,e,n){return e[e._keys[t.key]]}function Gt(t,n){Z(n.hooks,"willRecycle",n,t);var r=t.el=n.el,i=n.body,o=t.body;if(r._node=t,t.type!==e||o===i){null==t.attrs&&null==n.attrs||Dt(t,n,!1);var a=l(i),s=l(o),c=(t.flags&z)===z;a?s||c?$t(t,n):o!==i&&(null!=o?r.textContent=o:ut(n)):s?(ut(n),Tt(t)):o!==i&&(r.firstChild?r.firstChild.nodeValue=o:r.textContent=o),Z(n.hooks,"didRecycle",n,t)}else r.nodeValue=o}function $t(e,o){var a=e.body,s=a.length,c=o.body,l=c.length,u=(e.flags&z)===z,h=(e.flags&H)===H,f=(e.flags&W)===W,d=!h&&e.type===t,p=!0,v=f?Vt:h||u?Wt:zt;if(f){for(var g={},_=0;_<c.length;_++)g[c[_].key]=_;c._keys=g}if(d&&0===s)return ut(o),void(u&&(e.body=[]));var y,m,x=0,b=!1,w=0;if(u)var O={key:null},D=Array(s);for(_=0;_<s;_++){if(u){var S=!1,T=null;p&&(f&&(O.key=a.key(_)),y=v(O,c,w)),null!=y?(m=y.idx,!0===(T=a.diff(_,y))?((C=y).parent=e,C.idx=_,C._lis=!1):S=!0):S=!0,S&&(Y(C=a.tpl(_),e,_),C._diff=null!=T?T:a.diff(_),null!=y&&Gt(C,y)),D[_]=C}else{var C,M=(C=a[_]).type;if(M<=n)(y=p&&v(C,c,w))&&(Gt(C,y),m=y.idx);else if(M===r){if(y=p&&v(C,c,w)){m=y.idx;var k=y.vm._update(C.data,e,_)}else k=St(C.view,C.data,C.key,C.opts)._redraw(e,_,!1);M=k.node.type}else if(M===i){var j=P(C.vm);M=(k=C.vm._update(C.data,e,_,j)).node.type}}if(!f&&null!=y&&(m===w?++w===l&&s>l&&(y=null,p=!1):b=!0,l>100&&b&&++x%10==0))for(;w<l&&Ht(c[w]);)w++}u&&(e.body=D),d&&Nt(e,o)}function Yt(t,e,n,r){var i=this;i.view=t,i.data=e,i.key=n,r&&(i.opts=r,i.config(r));var o=h(t)?t:t.call(i,i,e,n,r);p(o)?i.render=o:(i.render=o.render,i.config(o)),i._redrawAsync=b((function(t){return i.redraw(!0)})),i._updateAsync=b((function(t){return i.update(t,!0)})),i.init&&i.init.call(i,i,i.data,i.key,r)}var Bt=Yt.prototype={constructor:Yt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:c,refs:null,render:null,mount:Xt,unmount:Ut,config:function(t){var e=this;t.init&&(e.init=t.init),t.diff&&(e.diff=t.diff),t.onevent&&(e.onevent=t.onevent),t.hooks&&(e.hooks=g(e.hooks||{},t.hooks)),t.onemit&&(e.onemit=g(e.onemit||{},t.onemit))},parent:function(){return j(this.node.parent)},root:function(){for(var t=this.node;t.parent;)t=t.parent;return t.vm},redraw:function(t){var e=this;return t?e._redraw(null,null,P(e)):e._redrawAsync(),e},update:function(t,e){var n=this;return e?n._update(t,null,null,P(n)):n._updateAsync(t),n},_update:Zt,_redraw:qt,_redrawAsync:null,_updateAsync:null};function Xt(t,e){var n=this;return e?(ut({el:t,flags:0}),n._redraw(null,null,!1),t.nodeName.toLowerCase()!==n.node.tag?(Ct(n.node),ht(t.parentNode,n.node.el,t),t.parentNode.removeChild(t)):ht(t.parentNode,Ct(n.node,t),t)):(n._redraw(null,null),t&&ht(t,n.node.el)),t&&K(n),n}function Ut(t){var e=this,n=e.node;ct(n.el.parentNode,n.el),t||K(e)}function Jt(t,e,n,r){return null!=n&&(n.body[r]=e,e.idx=r,e.parent=n,e._lis=!1),t}function qt(t,e,n){var r,i,o=null==t,a=this,s=a.node&&a.node.el&&a.node.el.parentNode,c=a.node;if(null!=a.diff&&(r=a._diff,a._diff=i=a.diff(a,a.data),null!=c)){var u=l(r)?x:m;if(r===i||u(r,i))return Jt(a,c,t,e)}s&&Z(a.hooks,"willRedraw",a,a.data);var h=a.render.call(a,a,a.data,r,i);if(h===c)return Jt(a,c,t,e);if(a.refs=null,null!=a.key&&h.key!==a.key&&(h.key=a.key),a.node=h,t?(Y(h,t,e,a),t.body[e]=h):c&&c.parent?(Y(h,c.parent,c.idx,a),c.parent.body[c.idx]=h):Y(h,null,null,a),!1!==n)if(c)if(c.tag!==h.tag||c.key!==h.key){c.vm=h.vm=null;var f=c.el.parentNode,d=it(c.el);ct(f,c.el),ht(f,Ct(h),d),c.el=h.el,h.vm=a}else Gt(h,c);else Ct(h);return s&&Z(a.hooks,"didRedraw",a,a.data),o&&s&&K(a),a}function Zt(t,e,n,r){var i=this;return null!=t&&i.data!==t&&(Z(i.hooks,"willUpdate",i,t),i.data=t),i._redraw(e,n,r)}function Kt(t,e,n,r){var i,o;return null==n?h(e)?i=e:o=e:(i=e,o=n),V(t,i,o,r)}var Qt="http://www.w3.org/2000/svg";function te(t,e,n,r){var i=Kt(t,e,n,r);return i.ns=Qt,i}function ee(t){var e=new E;return e.type=n,e.body=t,e}function ne(t,e,n,r){this.view=t,this.data=e,this.key=n,this.opts=r}function re(t,e,n,r){return new ne(t,e,n,r)}function ie(t){this.vm=t}function oe(t){return new ie(t)}function ae(e){var n=new E;return n.type=t,n.el=n.key=e,n}function se(t,e){var n=t.length,r={items:t,length:n,key:function(n){return e.key(t[n],n)},diff:function(n,r){var i=e.diff(t[n],n);if(null==r)return i;var o=r._diff;return(i===o||l(o)?x(i,o):m(i,o))||i},tpl:function(n){return e.tpl(t[n],n)},map:function(t){return e.tpl=t,r},body:function(t){for(var e=Array(n),i=0;i<n;i++){var o=r.tpl(i);o._diff=r.diff(i),e[i]=o,Y(o,t,i)}t.body=e}};return r}ne.prototype={constructor:ne,type:r,view:null,data:null,key:null,opts:null},ie.prototype={constructor:ie,type:i,vm:null};var ce={config:_t,ViewModel:Yt,VNode:E,createView:St,defineElement:Kt,defineSvgElement:te,defineText:A,defineComment:ee,defineView:re,injectView:oe,injectElement:ae,lazyList:se,FIXED_BODY:H,DEEP_REMOVE:R,KEYED_LIST:W,LAZY_LIST:z};function le(t,e){ue(this,t,e)}function ue(t,e,n){if(null!=e.type){if(null!=t.vm)return;Y(e,t.parent,t.idx,null),t.parent.body[t.idx]=e,Gt(e,t),n&&M(e),K(j(e))}else{var r=Object.create(t);r.attrs=g({},t.attrs);var i=g(t.attrs,e);if(null!=t._class){var o=i.class;i.class=null!=o&&""!==o?t._class+" "+o:t._class}Dt(t,r),n&&M(t)}}function he(t,e){var n=t.body;if(l(n))for(var r=0;r<n.length;r++){var i=n[r];null!=i.vm?e.push(i.vm):he(i,e)}return e}function fe(t){var e,n,r=arguments,i=r.length;if(i>1){var o=1;h(r[1])&&(n=r[1],o=2),e=i===o+1&&(d(r[o])||l(r[o])||n&&(n._flags&z)===z)?r[o]:y(r,o)}return V(t,n,e)}function de(){var t=fe.apply(null,arguments);return t.ns=Qt,t}return L.patch=le,Bt.emit=vt,Bt.onemit=null,Bt.body=function(){return he(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=de,ce}()},function(t,e,n){"use strict";(function(t){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0;var i=n(0),o=n(3),a=n(5),s=n(0),c=function(){function e(t,e){this._parent=t,this._changes=e}return e.prototype.load=function(t,e){var n=this;if(!t.config||this._parent.events.fire(a.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then((function(t){return t?n.parse(t,e):[]})).catch((function(t){n._parent.events.fire(a.DataEvents.loadError,[t])}))},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=a.DataDriver.json),"json"!==e||(0,o.hasJsonOrArrayStructure)(t)||this._parent.events.fire(a.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=(0,o.toDataDriver)(e)).toJsonArray(t))instanceof Array)){var c=t.total_count-1,l=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach((function(t,e){var a=l+e,c=n._parent.getId(a);if((0,i.isId)(c)){var u=n._parent.getItem(c);if(u&&u.$empty){var h=t.id||u.id;(0,s.isDefined)(t.id)&&n._parent.changeId(c,h,!0),n._parent.update(h,r(r({},t),{$empty:void 0}),!0)}}else(0,o.dhxWarning)("item not found")})),this._parent.events.fire(a.DataEvents.afterLazyLoad,[l,t.length]),this._parent.events.fire(a.DataEvents.change),t;for(var u=[],h=0,f=0;h<=c;h++)h>=l&&h<=l+t.length-1?(u.push(t[f]),f++):u.push({$empty:!0});t=u}return this._parent.getInitialData()&&this._parent.removeAll(),this._parent.$parse(t),t},e.prototype.save=function(e){for(var n=this,r=this._getUniqueOrder(),i=function(r){if(r.saving||r.pending)(0,o.dhxWarning)("item is saving");else{var i=a._findPrevState(r.id);if(i&&i.saving){var s=new t((function(t,a){i.promise.then((function(){r.pending=!1,t(n._setPromise(r,e))})).catch((function(t){n._removeFromOrder(i),n._setPromise(r,e),(0,o.dhxWarning)(t),a(t)}))}));a._addToChain(s),r.pending=!0}else a._setPromise(r,e)}},a=this,s=0,c=r;s<c.length;s++){i(c[s])}r.length&&this._parent.saveData.then((function(){n._saving=!1}))},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(t,e){var n,r=this;switch(t.status){case"remove":n="delete";break;case"add":n="insert";break;default:n=t.status}return t.promise=e.save(t.obj,n),t.promise.then((function(){r._removeFromOrder(t)})).catch((function(e){t.saving=!1,t.error=!0,(0,o.dhxError)(e)})),t.saving=!0,this._saving=!0,this._addToChain(t.promise),t.promise},e.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then((function(){return t})):this._parent.saveData=t},e.prototype._findPrevState=function(t){for(var e=0,n=this._changes.order;e<n.length;e++){var r=n[e];if(r.id===t)return r}return null},e.prototype._removeFromOrder=function(t){this._changes.order=this._changes.order.filter((function(e){return!(0,o.isEqualObj)(e,t)}))},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce((function(t,e){var n=t.findIndex((function(t){return t.id===e.id})),r=n>-1?t[n]:null;return r&&!1===r.saving&&"add"===r.status?"remove"===e.status?t.splice(n,1):r.obj=e.obj:r&&!1===r.saving&&"update"===r.status?t.splice(n,1,e):t.push(e),t}),[])},e}();e.Loader=c}).call(this,n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToXML=void 0;var r=4;function i(t){return" ".repeat(t)}function o(t,e){void 0===e&&(e=r);var n=i(e)+"<item>\n";for(var a in t)Array.isArray(t[a])?(n+=i(e+r)+"<".concat(a,">\n"),n+=t[a].map((function(t){return o(t,e+2*r)})).join("\n")+"\n",n+=i(e+r)+"</".concat(a,">\n")):n+=i(e+r)+"<".concat(a,">").concat(t[a],"</").concat(a,">\n");return n+=i(e)+"</item>"}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var n='<?xml version="1.0" encoding="iso-8859-1"?>\n<'.concat(e,">"),r=0;r<t.length;r++)n+="\n"+o(t[r]);return n+"\n</".concat(e,">")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sort=void 0;var r=n(3),i=function(){function t(){}return t.prototype.sort=function(t,e){return this._sort(t,e)},t.prototype._createSorter=function(t){var e=this;t&&!t.rule&&(t.rule=function(n,i){var o,a,s=null!==(o=e._checkVal(t.as,n[t.by]))&&void 0!==o?o:"",c=null!==(a=e._checkVal(t.as,i[t.by]))&&void 0!==a?a:"";return(0,r.naturalCompare)(s.toString(),c.toString())})},t.prototype._checkVal=function(t,e){return t?t.call(this,e):e},t.prototype._sort=function(t,e){var n=this;e.forEach((function(t){return n._createSorter(t)}));var r={asc:1,desc:-1},i=t.sort((function(t,i){for(var o=0,a=e;o<a.length;o++){var s=a[o],c=s.rule.call(n,t,i)*(r[s.dir]||r.asc);if(0!==c)return c}return 0})),o=i.findIndex((function(t){return t.$groupSummary}));if(-1!==o){var a=i[o];switch(i.splice(o,1),a.$groupSummary){case"top":i.unshift(a);break;case"bottom":i.push(a)}}return i},t}();e.Sort=i},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var o=n(0),a=n(25),s=function(){function t(){this._init=[],this._groupSet=new Set,this._groupOrderFields=[]}return t.prototype.group=function(t,e,n){return void 0===n&&(n={}),(null==t?void 0:t.length)&&(null==e?void 0:e.length)&&Array.isArray(t)?(this._init=i([],e,!0),this._groupSet.clear(),this._config=this.getGroupConfig(n),this._groupOrderFields=t.map((function(t){return"string"==typeof t?t:"function"==typeof t?"":"by"in t&&"string"==typeof t.by?t.by:""})),this._group(t,e)):e||[]},t.prototype.ungroup=function(t){var e=this._init;if(this._init=[],this._groupSet.clear(),t){for(var n={},i=function(e){var r=t[e];if(r.$group)return"continue";Object.keys(r).forEach((function(t){t.startsWith("$")&&delete r[t]})),delete r.parent,n[r.id]=r},o=0;o<t.length;o++)i(o);return e.map((function(t){return r(r({},t),n[t.id])}))}return e||[]},t.prototype.isGrouped=function(){return!!this._init.length},t.prototype.getGroupedFields=function(){return this._groupOrderFields},t.prototype.getGroupConfig=function(t){var e;return t?{displayMode:t.displayMode||"column",field:t.field||"group",showMissed:null===(e=t.showMissed)||void 0===e||e}:this._config},t.prototype._group=function(t,e,n,i){var a=this;if(void 0===i&&(i=0),!(i>=t.length)){for(var s=[],c={},l=[],u="",h={},f=0;f<e.length;f++){var d=e[f],p=t[i],v="function"==typeof p||"function"==typeof(null==p?void 0:p.by),g=d[(h=this._getOrderConfig(p,d)).by],_=v?h.by:g;v||g||0===g?(this._groupSet.add(h.by),c[_]||(c[_]=[]),c[_].push(d)):(this._config.showMissed&&(delete d.parent,l.push(d)),"string"==typeof this._config.showMissed&&(u=this._config.showMissed))}var y=Object.keys(c);return u&&y.push(u),y.forEach((function(e){var u,f=c[e]||l,d=n?"".concat(n,":").concat(e):"$".concat((0,o.uid)(),":").concat(e),p={};h.map&&Object.keys(h.map).forEach((function(t){p[t]=a._toAggregate(f,h.map[t])}));var v=r(((u={id:d,$by:h.by,$group:!0,$row:"row"===a._config.displayMode,$count:f.length})[h.by]=e,u),p);"column"===a._config.displayMode&&(v[a._config.field]=e),n&&(v.parent=n),s.push(v),i<t.length-1&&s.push.apply(s,a._group(t,f,d,i+1)),i===t.length-1&&f.forEach((function(t){s.push(r(r({},t),{parent:d}))})),h.summary&&a._addSummaryRow(s,d,h.summary,p)})),u||s.push.apply(s,l),s}},t.prototype._addSummaryRow=function(t,e,n,i){var o=r({id:"".concat(e,":summary"),parent:e,$groupSummary:n},i);if("top"===n){var a=t.findIndex((function(t){return t.id===e}));t.splice(a+1,0,o)}else t.push(o)},t.prototype._toAggregate=function(t,e){if("function"==typeof e)return e(t);var n=e[0],r=e[1];return a.methods[r]?a.methods[r](t,n):""},t.prototype._getOrderConfig=function(t,e){var n={by:"string"==typeof t&&t||"string"==typeof t.by&&t.by||"function"==typeof t&&t(e)||"function"==typeof t.by&&t.by(e)};return t.map&&(n.map=t.map),t.summary&&(n.summary=t.summary),n},t}();e.Group=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TreeCollection=e.addToOrder=void 0;var s=n(0),c=n(21),l=n(8),u=n(3),h=n(5);function f(t,e,n,r){void 0!==r&&-1!==r&&t[n]&&t[n][r]?t[n].splice(r,0,e):(t[n]||(t[n]=[]),t[n].push(e))}e.addToOrder=f;var d=function(t){function e(e,n){var r,i=t.call(this,e,n)||this;i._childs={};var o=i._root=e&&e.rootId||"_ROOT_"+(0,s.uid)();return i._childs=((r={})[o]=[],r),i._initChilds=null,i}return i(e,t),e.prototype.add=function(t,e,n){var r,i=this;if(void 0===e&&(e=-1),void 0===n&&(n=this._root),this.events.fire(h.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),r=Array.isArray(t)?t.map((function(t,r){return i._add(t,e,n,r)})):this._add(t,e,n),this._reapplyFilters(),r},e.prototype.getRoot=function(){return this._root},e.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;var n=this._pull[t].parent;return e?this._pull[n]:n},e.prototype.getItems=function(t){return this._childs&&this._childs[t]?this._childs[t]:[]},e.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._childs[t]?this._childs[t].length:null},e.prototype.removeAll=function(e){var n;if((0,s.isId)(e)){if(this._childs[e])for(var r=0,i=a([],this._childs[e],!0);r<i.length;r++){var o=i[r];this.remove(o.id)}}else{t.prototype.removeAll.call(this);var c=this._root;this._initChilds=null,this._childs=((n={})[c]=[],n)}},e.prototype.update=function(e,n,r){var i=n.parent;!(0,s.isDefined)(i)||this.exists(i)||i===this._root?t.prototype.update.call(this,e,n,r):(0,u.dhxWarning)("Item parent doesn't exist")},e.prototype.getIndex=function(t){var e=this.getParent(t);return e&&this._childs[e]?this._childs[e].findIndex((function(e){return(null==e?void 0:e.id)==t})):-1},e.prototype.sort=function(t,e,n){var r,i,s=this;if(void 0===n&&(n=!1),(null==e?void 0:e.smartSorting)&&(this._sorter=t),n||this._sortingStates.length&&!(null==e?void 0:e.smartSorting)&&((null===(r=this._sortingStates[0])||void 0===r?void 0:r.smartSorting)||(null==e?void 0:e.smartSorting))||(this._sortingStates=[o(o({},t),e)]),t){if(!n&&(this._initSortOrder=this._initSortOrder||a([],this._initFilterOrder||this._order,!0),!(null==e?void 0:e.smartSorting)&&(null===(i=this._sortingStates[0])||void 0===i?void 0:i.smartSorting))){var c=this._sortingStates.findIndex((function(e){return e.by==t.by}));-1!==c?this._sortingStates[c].dir=t.dir:this._sortingStates.push(t)}this._applySorters()}else this._initSortOrder&&(this._childs={},this._order=[],this._sortingStates=[],this._initSortOrder.forEach((function(t){return s._parseItem(t)})),this._sorter=this._initSortOrder=this._initChilds=null,this._initFilterOrder&&(this._initFilterOrder=null,this.filter(null,{$restore:!0},!0)));n||(this._reapplyFilters(),this.events.fire(h.DataEvents.change,[void 0,"sort",t]))},e.prototype.filter=function(t,e,n){if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(t&&(null==e?void 0:e.add)||(this._initChilds&&(this._childs=this._initChilds,this._initChilds=null),null==e?void 0:e.$restore)))for(var r in this._filters){var i=this._filters[r],o=i.rule,a=i.config;(null==a?void 0:a.permanent)?this._applyFilter(o,a):delete this._filters[r]}var c;if(t&&!(null==e?void 0:e.$restore))c=(null==e?void 0:e.id)||(0,s.uid)(),e||(e={}),e.type=e.type||h.TreeFilterType.all,this._filters[c]={rule:t,config:e},this._applyFilter(t,e);else for(var r in t)this._applyFilter(t[r],this._filters[r].config);if(!n){var l=this._getPureFilters(this._filters);this.events.fire(h.DataEvents.filter,[(0,s.isEmptyObj)(l)?null:l])}return c},e.prototype.restoreOrder=function(){this.resetFilter({permanent:!0},!0),this.sort()},e.prototype.copy=function(t,e,n,r){var i=this;return void 0===n&&(n=this),void 0===r&&(r=this._root),t instanceof Array?t.map((function(t,o){return i._copy(t,e,n,r,o)})):this._copy(t,e,n,r)},e.prototype.move=function(t,e,n,r){var i,o=this;if(void 0===r&&(r=this._root),n=n||this,t instanceof Array){var a=[];return t.forEach((function(t,i){(0,s.isId)(o._move(t,e,n,r,i))?a.push(t):(0,u.throwMoveWarning)(t,o.exists(t))})),a}return null!==(i=this._move(t,e,n,r))&&void 0!==i?i:(0,u.throwMoveWarning)(t,this.exists(t))},e.prototype.forEach=function(t,e,n){if(void 0===e&&(e=this._root),void 0===n&&(n=1/0),this.haveItems(e)&&!(n<1))for(var r=this._childs[e],i=0;i<r.length;i++)t.call(this,r[i],i,r),this.haveItems(r[i].id)&&this.forEach(t,r[i].id,--n)},e.prototype.eachChild=function(t,e,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=function(){return!0}),this.haveItems(t))for(var i=0;i<this._childs[t].length;i++)e.call(this,this._childs[t][i],i),n&&r(this._childs[t][i])&&this.eachChild(this._childs[t][i].id,e,n,r)},e.prototype.getNearId=function(t){return t},e.prototype.loadItems=function(t,e){var n=this;if(void 0===e&&(e=h.DataDriver.json),this.events.fire(h.DataEvents.beforeItemLoad,[t])){var r=this.config.autoload.toString(),i=r+(r.includes("?")?"&id=".concat(t):"?id=".concat(t));new l.DataProxy(i).load().then((function(r){r=(e=(0,u.toDataDriver)(e)).toJsonArray(r),n._parse_data(r,t),n.events.fire(h.DataEvents.change),n.events.fire(h.DataEvents.afterItemLoad,[t])})).catch((function(t){n.events.fire(h.DataEvents.loadError,[t])}))}},e.prototype.refreshItems=function(t,e){void 0===e&&(e=h.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},e.prototype.eachParent=function(t,e,n){void 0===n&&(n=!1);var r=this.getItem(t);if(r&&(n&&e.call(this,r),r.parent!==this._root)){var i=this.getItem(r.parent);e.call(this,i),this.eachParent(r.parent,e)}},e.prototype.haveItems=function(t){return t in this._childs},e.prototype.canCopy=function(t,e){if(t===e)return!1;var n=!0;return this.eachParent(e,(function(e){return e.id===t?n=!1:null})),n},e.prototype.serialize=function(t,e){void 0===t&&(t=h.DataDriver.json);var n=this._serialize(this._root,e),r=(0,u.toDataDriver)(t);if(r)return r.serialize(n)},e.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._childs[e]&&this._childs[e][t])return this._childs[e][t].id},e.prototype.map=function(t,e,n){void 0===e&&(e=this._root),void 0===n&&(n=!0);var r=[];if(!this.haveItems(e))return r;for(var i=0;i<this._childs[e].length;i++)if(r.push(t.call(this,this._childs[e][i],i,this._childs)),n){var o=this.map(t,this._childs[e][i].id,n);r=r.concat(o)}return r},e.prototype.getRawData=function(e,n,r,i,o){var a;return o=null!=o?o:this._root,this._childs[o]?(a=o===this._root?t.prototype.getRawData.call(this,e,n,this._childs[o]):this._childs[o],2===i?this.flatten(a):a):[]},e.prototype.flatten=function(t){var e=this,n=[];return t.forEach((function(t){n.push(t);var r=e._childs[t.id];r&&t.$opened&&(n=n.concat(e.flatten(r)))})),n},e.prototype._add=function(e,n,r,i){void 0===n&&(n=-1),void 0===r&&(r=this._root),this._setParent(e,r),i>0&&-1!==n&&(n+=1);var o=t.prototype._add.call(this,e,n);if(Array.isArray(e.items))for(var a=0,s=e.items;a<s.length;a++){var c=s[a];this.add(c,-1,e.id)}return o},e.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;var n=this._pull[t.parent];n&&!n.items&&(n.items=[])},e.prototype._copy=function(t,e,n,r,i){if(void 0===n&&(n=this),void 0===r&&(r=this._root),!this.exists(t))return null;var o=this._childs[t];if(i&&(e=-1===e?-1:e+i),n===this&&!this.canCopy(t,r))return null;var a=(0,u.copyWithoutInner)(this.getItem(t),{items:!0});if(n.exists(t)&&(a.id=(0,s.uid)()),(0,u.isTreeCollection)(n)){if(this.exists(t)&&(a.parent=r,n!==this&&r===this._root&&(a.parent=n.getRoot()),n.add(a,e),t=a.id),o)for(var c=0,l=o;c<l.length;c++){var h=l[c].id,f=this.getIndex(h);this.copy(h,f,n,t)}return t}n.add(a,e)},e.prototype._move=function(t,e,n,r,i){if(void 0===n&&(n=this),void 0===r&&(r=this._root),!this.exists(t))return null;if(i&&e<this.getIndex(t)&&(e=-1===e?-1:e+i),n!==this){if(!(0,u.isTreeCollection)(n))return n.add((0,u.copyWithoutInner)(this.getItem(t)),e),void this.remove(t);var o=this.copy(t,e,n,r);return this.remove(t),o}return this.canCopy(t,r)?(this._moveItem(t,r,e),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t):null},e.prototype._moveItem=function(t,e,n){var r=this.getParent(t),i=this._initChilds||this._childs;if([this._childs,this._initChilds].forEach((function(i){if(i&&i[r]){var o=i[r].findIndex((function(e){return e.id===t}));if(-1!==o){var a=i[r].splice(o,1)[0];a.parent=e,f(i,a,e,n),i[r].length||delete i[r]}}})),r!==this._root&&r!==e){var o=this.getItem(r);i[r]?o.items=a([],i[r],!0):delete o.items}e!==this._root&&(this.getItem(e).items=a([],i[e]||[],!0))},e.prototype._reset=function(e){var n;if((0,s.isId)(null==e?void 0:e.id))for(var r=0,i=a([],this._childs[null==e?void 0:e.id],!0);r<i.length;r++){var o=i[r];this.remove(o.id)}else{t.prototype._reset.call(this,e);var c=this._root;this._initChilds=null,this._childs=((n={})[c]=[],n)}},e.prototype._removeCore=function(t){if(this._pull[t]){var e=this.getParent(t);this._childs[e]=this._childs[e].filter((function(e){return e.id!==t})),e===this._root||this._childs[e].length||delete this._childs[e],this._initChilds&&this._initChilds[e]&&(this._initChilds[e]=this._initChilds[e].filter((function(e){return e.id!==t})),e===this._root||this._initChilds[e].length||delete this._initChilds[e]),this._fastDeleteChilds(this._childs,t),this._initChilds&&this._fastDeleteChilds(this._initChilds,t)}},e.prototype._addToOrder=function(e,n,r){var i=this._childs,o=this._initChilds,a=n.parent;this._pull[n.id]=n,n.parent&&this._pull[n.parent]&&this._pull[n.parent].items&&!this._pull[n.parent].items.find((function(t){return t.id===n.id}))&&this._pull[n.parent].items.push(n),t.prototype._addToOrder.call(this,e,n,r),f(i,n,a,r),o&&f(o,n,a,r)},e.prototype._parse_data=function(t,e){var n,r,i;void 0===e&&(e=this._root);for(var o=0,a=t;o<a.length;o++){var c=a[o];this.config.init&&(c=this.config.init(c)),c&&"object"!=typeof c&&(c={value:c}),c.id=null!==(n=c.id)&&void 0!==n?n:(0,s.uid)(),c.parent=c.parent&&!(null===(i=null===(r=c.parent)||void 0===r?void 0:r.toString())||void 0===i?void 0:i.includes("_ROOT_"))?c.parent:e,this._pull[c.id]&&(0,u.dhxError)("Item ".concat(c.id," already exist")),this._parseItem(c),c.items&&c.items instanceof Object&&this._parse_data(c.items,c.id)}},e.prototype._parseItem=function(t){this._pull[t.id]=t,this._order[this._order.length]=t,this._childs[t.parent]||(this._childs[t.parent]=[]),this._childs[t.parent].push(t)},e.prototype._fastDeleteChilds=function(t,e){var n,r;if(this._pull[e]&&((null===(n=this._initFilterOrder)||void 0===n?void 0:n.length)&&(this._initFilterOrder=this._initFilterOrder.filter((function(t){return t.id!==e}))),(null===(r=this._initSortOrder)||void 0===r?void 0:r.length)&&(this._initSortOrder=this._initSortOrder.filter((function(t){return t.id!==e}))),this._order=this._order.filter((function(t){return t.id!==e})),delete this._pull[e]),t[e]){for(var i=0;i<t[e].length;i++)this._fastDeleteChilds(t,t[e][i].id);delete t[e]}},e.prototype._recursiveFilter=function(t,e,n,r,i){var o=this,a=this._childs[n];if(a){var s=function(t){switch(e.type){case h.TreeFilterType.all:return!0;case h.TreeFilterType.level:return r===e.level;case h.TreeFilterType.leafs:return!o.haveItems(t.id)}};if("function"==typeof t){var c=function(e){return s(e)&&t(e)};(l=a.filter(c)).length?i[n]=l:n===this._root&&(i[n]=[])}else{var l;c=function(e){var n,r=!0;for(var i in t)if(t[i].by&&""!==t[i].match&&(r=t[i].compare?t[i].compare(e[t[i].by],t[i].match,e):-1!==(null===(n=e[t[i].by])||void 0===n?void 0:n.toString().toLocaleLowerCase().indexOf(t[i].match.toString().toLowerCase()))),!r)break;return s(e)&&r};(l=a.filter(c)).length?i[n]=l:n===this._root&&(i[n]=[])}for(var u=0,f=a;u<f.length;u++){var d=f[u];this._recursiveFilter(t,e,d.id,r+1,i)}}},e.prototype._serialize=function(t,e){var n=this;return void 0===t&&(t=this._root),this.map((function(t){var r={};for(var i in t)"parent"===i||"items"===i||i.startsWith("$")||(r[i]=t[i]);return e&&(r=e(r)),n.haveItems(t.id)&&(r.items=n._serialize(t.id,e)),r}),t,!1)},e.prototype._applyFilter=function(t,e){var n=this;if(t&&("function"==typeof t||!(0,s.isEmptyObj)(t))){if(!this._checkFilterRule(t))throw new Error("Invalid filter rule");var r;this._initFilterOrder||(this._initFilterOrder=this._order),this._initChilds||(this._initChilds=this._childs);var i={};if("function"!=typeof t)if(r={},(0,s.isDefined)(t.by))r[t.by]=t;else for(var o in t)r[o]=t[o];else r=t;this._recursiveFilter(r,e,this._root,0,i),Object.keys(i).forEach((function(t){for(var e=n.getParent(t),r=n.getItem(t);e;)i[e]||(i[e]=[]),r&&!i[e].find((function(t){return t.id===r.id}))&&i[e].push(r),r=n.getItem(e),e=n.getParent(e)})),this._childs=i}},e.prototype._normalizeFilters=function(t){var e={};for(var n in t)e[n]=t[n].rule;return e},e.prototype._checkFilterRule=function(e){var n=this;return t.prototype._checkFilterRule.call(this,e)||Object.values(e).every((function(e){return"function"!=typeof e&&t.prototype._checkFilterRule.call(n,e)}))},e.prototype._applySorters=function(){for(var t in this._childs)this._sort.sort(this._childs[t],this._sortingStates);if(this._initChilds&&Object.keys(this._initChilds).length)for(var t in this._initChilds)this._sort.sort(this._initChilds[t],this._sortingStates)},e}(c.DataCollection);e.TreeCollection=d},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.dragManager=void 0;var o=n(4),a=n(53),s=n(5),c=n(3),l=n(0);var u=function(t){var e;return null===(e=t.name)||void 0===e?void 0:e.includes("grid")},h=function(t){return u(t)&&t.hasOwnProperty("scrollView")},f=function(){function t(){var t=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._lastTargetItemState=null,this._lastOverItemId=null,this._onMouseMove=function(e){var n,r;if(t._transferData.start){var i=(0,o.getElementFromPoint)(e),a=(0,o.locate)(i,"data-dhx-drop-area"),s="common"===a,c=e.targetTouches?e.targetTouches[0].pageX:e.pageX,l=e.targetTouches?e.targetTouches[0].pageY:e.pageY;"column"===t._transferData.type&&"group"===a&&(t._transferData.type="group",t._transferData.isWasColumn=!0),"group"===t._transferData.type&&"column"===a&&t._transferData.isWasColumn&&!t._transferData.groupOnly&&(t._transferData.type="column");var u=(0,o.locate)(i),h=null!==(r=null===(n=t._transferData.component.data.getItem(u))||void 0===n?void 0:n.id)&&void 0!==r?r:u;if(a===t._transferData.type||s){var f=t._transferData,d=f.x,p=f.y,v=f.start,g=f.componentId;if(!t._transferData.ghost){if(Math.abs(d-c)<3&&Math.abs(p-l)<3)return;var _=t._onDragStart(v,e);if(!_)return void t._endDrop(e);t._transferData.ghost=_,document.body.appendChild(t._transferData.ghost)}var y=(0,o.locate)(i,"data-dhx-widget-id");"column"!==a&&"group"!==a||y!==g?t._onDrag(e):h!==t._lastOverItemId&&(t._lastOverItemId=h,t._onDrag(e))}else t._canMove&&t.cancelCanDrop(e);t._notAllowedDropArea(a!==t._transferData.type&&!s||!t._transferData.groupable&&"group"===a||t._transferData.groupOnly&&"group"!==a&&!s&&t._transferData.start!=h),t._moveGhost(c,l)}},this._onMouseUp=function(e){t._transferData.x&&(t._transferData.ghost?(t._removeGhost(),t._onDrop(e)):t._endDrop(e),e.targetTouches?(document.removeEventListener("touchmove",t._onMouseMove),document.removeEventListener("touchend",t._onMouseUp)):(document.removeEventListener("mousemove",t._onMouseMove),document.removeEventListener("mouseup",t._onMouseUp)))}}return t.prototype.setItem=function(t,e){a.collectionStore.setItem(t,e)},t.prototype.onMouseDown=function(t){var e,n,r=t.event,s=t.itemsForGhost,c=t.ghost,l=t.source,h=t.type,f=t.groupable,d=t.groupOnly;if(1===r.which||r.targetTouches){r.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp));var p=(0,o.getElementFromPoint)(r),v=(0,o.locateNode)(p,"data-dhx-id"),g=(0,o.locateNode)(p,"data-dhx-widget-id"),_=null==g?void 0:g.getAttribute("data-dhx-widget-id"),y=a.collectionStore.getItem(_),m=v.getAttribute("data-dhx-id"),x=v&&(null!==(n=null===(e=y.data.getItem(m))||void 0===e?void 0:e.id)&&void 0!==n?n:m);if(c&&(this._ghost=c),Array.isArray(l)&&l.includes(x)?(this._transferData.source=i([],l,!0),this._itemsForGhost=s):(this._transferData.source=[x],this._itemsForGhost=null),x&&_){var b=(0,o.getBox)(v),w=u(y)?(0,o.getBox)(g).left:b.left,O=r.targetTouches?r.targetTouches[0].pageX:r.pageX,D=r.targetTouches?r.targetTouches[0].pageY:r.pageY;this._transferData.initXOffset="row"===h?O-w:0,this._transferData.initYOffset="row"===h?D-b.top:0,this._transferData.x=O,this._transferData.y=D,this._transferData.componentId=_,this._transferData.component=y,this._transferData.start=x,this._transferData.item=v,this._transferData.type=h,this._transferData.groupable=f,this._transferData.groupOnly=d}}},t.prototype.isDrag=function(){return this._isDrag},t.prototype.cancelCanDrop=function(t){this._canMove=!1;var e=this._transferData,n=e.start,r=e.source,i=e.target,o=e.dropComponentId,c={start:n,source:r,target:i,dragItem:e.type},l=a.collectionStore.getItem(o);l&&i&&l.events.fire(s.DragEvents.cancelDrop,[c,t,this._transferData.type]),this._transferData.dropComponentId=null,this._transferData.target=null},t.prototype._moveGhost=function(t,e){this._transferData.ghost&&(this._transferData.ghost.style.left=t-this._transferData.initXOffset+"px",this._transferData.ghost.style.top=e-this._transferData.initYOffset+"px")},t.prototype._removeGhost=function(){this._ghost=null,document.body.removeChild(this._transferData.ghost)},t.prototype._onDrop=function(t){if(this._canMove){var e=this._transferData,n=e.start,r=e.source,i=e.target,c=e.dropComponentId,l=e.dropPosition,u={start:n,source:r,target:i,dropPosition:l},h=a.collectionStore.getItem(c),f=h&&h.config,d=this._transferData.componentId==(0,o.locate)((0,o.getElementFromPoint)(t),"data-dhx-widget-id");if(!h||"source"===f.dragMode||d&&r.find((function(t){return t==i})))this._endDrop(t);else{if(h.events.fire(s.DragEvents.beforeDrop,[u,t,this._transferData.type])){var p={id:i,component:h},v={id:n,component:this._transferData.component,newId:null};"group"!==this._transferData.type&&this._move(v,p),v.newId&&v.component!==p.component&&(u.start=v.newId),p.component.events.fire(s.DragEvents.afterDrop,[u,t,this._transferData.type])}this._endDrop(t)}}else this._endDrop(t)},t.prototype._onDragStart=function(t,e){var n=this._transferData.component.config,r=this._transferData,i={start:r.start,source:r.source,target:r.target};if("target"===n.dragMode||this._transferData.component._pregroupData)return null;var o="row"===this._transferData.type?function(t,e,n){void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=document.createElement("div"),o=t.cloneNode(!0),a=window.getComputedStyle(t.parentElement).fontSize;return o.style.width=r.width+"px",o.style.height=r.height+"px",o.style.maxHeight=r.height+"px",o.style.opacity="0.8",o.style.fontSize=a,n&&e&&e.length||i.appendChild(o),e&&e.length&&e.forEach((function(t,e){var o=t.cloneNode(!0);o.style.getPropertyPriority("width")||(o.style.width=r.width+"px"),o.style.height=r.height+"px",o.style.maxHeight=r.height+"px",o.style.top=12*(e+1)-r.height-r.height*e+"px",o.style.left=12*(e+1)+"px",o.style.opacity="0.6",o.style.zIndex="".concat(-e-1),n||(o.style.fontSize=a,o.style.overflow="hidden"),i.appendChild(o)})),i.className="dhx_drag-ghost",i}(this._transferData.item,this._itemsForGhost,u(this._transferData.component)):this._ghost;return this._transferData.component.events.fire(s.DragEvents.beforeDrag,[i,e,o,this._transferData.type])&&(0,l.isId)(t)?(this._transferData.component.events.fire(s.DragEvents.dragStart,[i,e,this._transferData.type]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.dragConfig=n,o):null},t.prototype._onDrag=function(t){var e,n,r=(0,o.getElementFromPoint)(t),i=(0,o.locate)(r,"data-dhx-widget-id"),l=a.collectionStore.getItem(i);if(l){var u=!!(0,o.locateNodeByClassName)(r,"dhx_grid-header")||!!(0,o.locateNodeByClassName)(r,"dhx_grid-footer"),h=l.config.columns?l.config:void 0,f=h&&("both"===h.dragItem||"column"===h.dragItem);if(!u||f){var d=(0,o.locate)(r,"data-dhx-id"),p=(0,o.locate)(r,"data-dhx-root-id"),v=this._transferData,g=v.dropComponentId,_=v.start,y=v.source,m=v.target,x=v.componentId,b=function(t){var e=t.targetTouches?t.targetTouches[0].clientY:t.clientY,n=(0,o.locateNode)((0,o.getElementFromPoint)(t));if(!n)return null;var r=n.childNodes[0];if(1===(null==r?void 0:r.nodeType)){var i=r.getBoundingClientRect();return(e-i.top)/i.height}}(t);if("group"!==this._transferData.type){if(!d&&!p)return this.cancelCanDrop(t),this._transferData.dropComponentId=i,this._transferData.target=null,void this._canDrop(t);if(this._transferData.dropPosition=b<=.5?"top":"bottom","complex"!==l.config.dropBehaviour||l.config.group||(this._transferData.dropPosition=b<=.25?"top":b>=.75?"bottom":"in"),((null===(e=this._lastTargetItemState)||void 0===e?void 0:e.id)===d&&(null===(n=this._lastTargetItemState)||void 0===n?void 0:n.dropPosition)===this._transferData.dropPosition||!d&&m===p)&&g===i)return}var w={id:_,component:this._transferData.component};if("source"!==l.config.dragMode)if(w.component.events.fire(s.DragEvents.dragOut,[{start:_,source:y,target:m},t,this._transferData.type]),i!==x||!(0,c.isTreeCollection)(w.component.data)||(0,c.isTreeCollection)(w.component.data)&&w.component.data.canCopy(w.id,d)){this.cancelCanDrop(t);var O=this._transferData.target=d||p;this._transferData.dropComponentId=i,this._lastTargetItemState={id:d,dropPosition:this._transferData.dropPosition},w.component.events.fire(s.DragEvents.dragIn,[{start:_,source:y,target:O,dropPosition:this._transferData.dropPosition},t,this._transferData.type])&&this._canDrop(t)}else this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},t.prototype._move=function(t,e){var n,o=t.component,a=e.component,s=t.component.data,f=e.component.data,d=0,p=e.id,v=(0,c.isTreeCollection)(f),g=v&&e.component.config.dropBehaviour||null,_=o._uid===a._uid,y=t.component.config.columns?t.component.config:void 0,m="column"===this._transferData.type&&(null===(n=null==y?void 0:y.columns)||void 0===n?void 0:n.map((function(t){return t.id})).filter((function(n){return n===t.id||n===e.id})).length);if(m&&t.component===e.component){if(t.id===e.id)return;var x=(b=o.config.columns.map((function(t){return r({},t)}))).findIndex((function(e){return e.id===t.id}));if(-1===(D=b.findIndex((function(t){return t.id===e.id}))))return;return b.splice(D,0,b.splice(x,1)[0]),o.setColumns(b),void o.paint()}if(m&&t.component&&h(t.component)&&e.component&&h(e.component)){x=(b=o.config.columns.map((function(t){return r({},t)}))).findIndex((function(e){return e.id===t.id}));var b,w=a.config.columns.map((function(t){return r({},t)})),O=a.data.getLength(),D=w.findIndex((function(t){return t.id===e.id})),S=[],T=t.id;o.data.forEach((function(e){var n;S.push(((n={id:e.id})[T]=e[t.id],n))})),O?o.data.forEach((function(t,e){var n=a.data.getItem(t.id);n?a.data.update(n.id,r(r({},n),S[e])):a.data.add(S[e])})):a.data.parse(S);var C=b.splice(x,1)[0];return w.find((function(t){return t.id===T}))||w.splice(D,0,C),a.setColumns(w),a.paint(),o.setColumns(b),void o.paint()}var M=e.id===a.config.rootParent;switch(g){case"child":break;case"sibling":p=f.getParent(p),d=f.getIndex(e.id)+1;break;case"complex":var P=this._transferData.dropPosition;if(M)p=e.id,d=f.getLength();else{var k=f.getItem(t.id),j=f.getItem(e.id);if(!j)return;var E=f.getIndex(t.id),L=f.getIndex(e.id),A=(null==k?void 0:k.$level)||0,I=(null==j?void 0:j.$level)||0;"top"===P?(p=f.getParent(p),d=A===I?L-(-1===E||E>L?0:1):L):"bottom"===P&&(p=f.getParent(p),d=A===I?L+(-1===E||E>L?1:0):L+1)}break;default:if((0,l.isId)(e.id)){f.getIndex(t.id)>-1&&(t.newId=(0,l.uid)());P=this._transferData.dropPosition,E=f.getIndex(t.id),L=f.getIndex(e.id);d="top"===P?L-(-1===E||E>L?0:1):"bottom"===P?L+(-1===E||E>L?1:0):f.getIndex(e.id)}else d=-1}if(this._transferData.dragConfig.dragCopy)this._transferData.source instanceof Array&&this._transferData.source.length>1?this._transferData.source.map((function(t){s.copy(t,d,f,p),d>-1&&d++})):s.copy(t.id,d,f,p);else if(this._transferData.source instanceof Array&&this._transferData.source.length>1)s.move(this._transferData.source,d,f,p);else if(u(a)&&!a.config.columns.length){var F=o.data.getItem(t.id);a.data.parse([r({},F)]),a.setColumns(i([],o.config.columns,!0)),a.paint(),o.data.remove(t.id),o.paint()}else s.move(t.id,d,f,p,t.newId);_||this._transferData.source.forEach((function(t){delete f.getItem(t).$draggable,v&&(null==f?void 0:f.haveItems(t))&&f.eachChild(t,(function(t){delete t.$draggable}))}))},t.prototype._endDrop=function(t){if(this._toggleTextSelection(!1),this._notAllowedDropArea(!1),this._transferData.component){var e=this._transferData,n={start:e.start,source:e.source,target:e.target};this._transferData.component.events.fire(s.DragEvents.afterDrag,[n,t,this._transferData.type])}this.cancelCanDrop(t),this._canMove=!0,this._isDrag=!1,this._lastOverItemId=null,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null,this._lastTargetItemState=null},t.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,n={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},r=a.collectionStore.getItem(this._transferData.dropComponentId);r&&this._transferData.target&&r.events.fire(s.DragEvents.canDrop,[n,t,this._transferData.type])},t.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},t.prototype._notAllowedDropArea=function(t){t?document.body.classList.contains("dhx_drop-area--not-allowed")||document.body.classList.add("dhx_drop-area--not-allowed"):document.body.classList.remove("dhx_drop-area--not-allowed")},t}(),d=window.dhxHelpers=window.dhxHelpers||{};d.dragManager=d.dragManager||new f,e.dragManager=d.dragManager},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collectionStore=e.CollectionStore=void 0;var r=n(0),i=function(){function t(){this._store={}}return t.prototype.setItem=function(t,e){this._store[t]=e},t.prototype.getItem=function(t){return(0,r.isId)(t)&&this._store[t]?this._store[t]:null},t}();e.CollectionStore=i;var o=window.dhxHelpers=window.dhxHelpers||{};o.collectionStore=o.collectionStore||new i,e.collectionStore=o.collectionStore},function(t,e,n){"use strict";(function(t){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.LazyDataProxy=void 0;var o=n(8),a=n(0),s=n(14),c=function(e){function n(t,n){var r=e.call(this,t)||this;return r.config=(0,a.extend)({from:0,limit:50,delay:50,prepare:0},n),r.updateUrl(t,{from:r.config.from,limit:r.config.limit}),r}return i(n,e),n.prototype.load=function(){var e=this;return new t((function(t,n){e._timeout?(clearTimeout(e._timeout),e._timeout=setTimeout((function(){s.ajax.get(e.url,{responseType:"text"}).then(t).catch(n),e._cooling=!0}),e.config.delay),e._cooling&&(t(null),e._cooling=!1)):(s.ajax.get(e.url,{responseType:"text"}).then(t).catch(n),e._cooling=!0,e._timeout=setTimeout((function(){})))}))},n}(o.DataProxy);e.LazyDataProxy=c}).call(this,n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var r=n(13),i=n(56),o=n(5),a=n(0),s=function(){function t(t,e,n){var i=this;this.events=n||new r.EventSystem(this),this.config=t,this._data=e,this._selected=null,this._data.events.on(o.DataEvents.removeAll,(function(){i._selected=null})),this._data.events.on(o.DataEvents.change,(function(){if((0,a.isId)(i._selected)){var t=i._data.getNearId(i._selected);t!==i._selected&&(i._selected=null,t&&i.add(t))}}))}return t.prototype.getId=function(){return this._selected},t.prototype.getItem=function(){return(0,a.isId)(this._selected)?this._data.getItem(this._selected):null},t.prototype.remove=function(t){return t=null!=t?t:this._selected,!(0,a.isDefined)(t)||!!this.events.fire(i.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(i.SelectionEvents.afterUnSelect,[t]),!0)},t.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},t.prototype.enable=function(){this.config.disabled=!1},t.prototype.disable=function(){this.remove(),this.config.disabled=!0},t.prototype._addSingle=function(t){this.events.fire(i.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(i.SelectionEvents.afterSelect,[t]))},t}();e.Selection=s},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionEvents=void 0,function(t){t.beforeUnSelect="beforeunselect",t.afterUnSelect="afterunselect",t.beforeSelect="beforeselect",t.afterSelect="afterselect"}(r||(e.SelectionEvents=r={}))},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0;var a=n(1),s=n(13),c=n(58),l=n(7),u=n(59),h=n(61),f=n(9),d=n(63),p=n(67),v=n(78),g=n(2),_=n(79),y=n(0),m=n(85),x=function(t){function e(e,n){void 0===n&&(n={});var r,i=this;(i=t.call(this,null,n)||this)._width=0,i._height=0,i._left=0,i._top=0;var c={};n.maxPoints&&(c.approximate={value:null===(r=n.series)||void 0===r?void 0:r.map((function(t){return t.value})),maxNum:n.maxPoints}),Array.isArray(n.data)?(i.events=new s.EventSystem(i),i.data="treeMap"===n.type?new l.TreeCollection(c,i.events):new l.DataCollection(c,i.events),i.data.parse(n.data)):n.data&&n.data.events?(i.data=n.data,i.events=i.data.events,i.events.context=i):(i.events=new s.EventSystem(i),i.data="treeMap"===n.type?new l.TreeCollection(c,i.events):new l.DataCollection(c,i.events)),i._globalHTMLHandlers={onmousemove:function(t){var e=i._layers.getSizes(),n=e.left,r=e.top,o=e.bottom,a=e.right,s=t.pageX,c=t.pageY,l=i.getRootView().node.el.getBoundingClientRect();i._left=l.left+window.pageXOffset,i._top=l.top+window.pageYOffset;var u=s-n-i._left,h=c-r-i._top;u>=0&&u<=i._width-a-n&&h>=0&&h<=i._height-o-r?i.events.fire(f.ChartEvents.chartMouseMove,[u,h,i._left+n,i._top+r]):i.events.fire(f.ChartEvents.chartMouseLeave)},onmouseleave:function(){return i.events.fire(f.ChartEvents.chartMouseLeave)}},i._layers=new u.ComposeLayer,i.setConfig(n),i._initEvents(),i._tooltip=new _.Tooltip(i);var h=(0,a.create)({render:function(){if(!i.data.getLength())return(0,a.el)("div");var t=function(t){var e=i._scales,n=t.series,r=t.type;r||(r=n&&n.length&&n[0]&&n[0].type||"");var o="".concat(r||""," chart."),a=function(t){return t._isXDirection?"X":"Y"},s=function(t){return t.title||t.text||t.value||""},c=function(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0},l=function(t){return t.steps&&t.steps.length?t.steps[t.steps.length-1]:t.max||t.maxPoints||"max"},u=function(t,e){return e[t]};return e&&Object.keys(e).forEach((function(t){var n=e[t],r=n._axis||n.config;if("radial"===t){var i=n._data._order;o+=" X scale ".concat(s(n.config),": ").concat(t," axis from ").concat(u(n.config.value,i[0])," to ").concat(u(n.config.value,i[i.length-1]),"."),o+=" ".concat(a(n)," scale: axis from ").concat(c(r)," to ").concat(l(r),".")}else o+=" ".concat(a(n)," scale ").concat(s(n.config),": ").concat(t," axis from ").concat(c(r)," to ").concat(l(r),".")})),n&&n.length&&(o+=" Series:",n.forEach((function(t,e){o+=" ".concat("pie"===r||"pie3D"===r||"donut"===r?t.text:t.value),o+=e===n.length-1?".":","}))),o},e=[(0,a.resizer)((function(t,e){i._width=t,i._height=e||400;var n=i.getRootView();if(n&&n.node&&n.node.el){var r=n.node.el.getBoundingClientRect();i._left=r.left+window.pageXOffset,i._top=r.top+window.pageYOffset}i.events.fire(f.ChartEvents.resize,[i._width,i._height]),i.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&i._tooltip&&i._tooltip.destructor()}))];return i._width&&i._height&&e.push(i._layers.toVDOM(i._width,i._height)),(0,a.el)(".dhx_widget.dhx_chart",o(o({class:n.css?n.css:"",onmousemove:i._globalHTMLHandlers.onmousemove,onmouseleave:i._globalHTMLHandlers.onmouseleave},function(e){return{"aria-label":t(e)}}(n)),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(i._width=t.node.parent.el.offsetWidth,i._height=t.node.parent.el.offsetHeight||400,i.paint())}}});return i.mount(e,h),i.export=new m.Exporter("chart",i),i}return i(e,t),e.prototype.getSeries=function(t){return this._series[t]},e.prototype.eachSeries=function(t){var e=[];for(var n in this._series)e.push(t.call(this,this._series[n]));return e},e.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},e.prototype.setConfig=function(t){var e,n,r=this;if("calendarHeatMap"===t.type)throw new TypeError("The calendarHeatMap chart type is a pro functionality");if(this.config=t,this._layers.clear(),this._series={},this._scales={},t.scales)for(var i in t.scales){var a=o({},t.scales[i]);void 0!==t.scales[i].min&&(n=t.scales[i].min),a.type=a.type||this._detectScaleType(a,i),t.scales.radial&&"radial"!==i&&(a.hidden=!0),this._setScale(a,i)}var s=new v.default;if(this._layers.add(s),null===(e=t.series)||void 0===e||e.forEach((function(e,i){var a,c,l,u;void 0!==e.baseLine&&e.baseLine<n&&(e.baseLine=void 0);var h=o({},e);switch(h.type=h.type||t.type,h.type){case"bar":case"xbar":case"area":case"splineArea":h.color||(h.color=h.fill||(0,g.getDefaultColor)(i)),h.fill||(h.fill=h.color||(0,g.getDefaultColor)(i));break;case"treeMap":h.legendType=(null===(a=t.legend)||void 0===a?void 0:a.type)||"groupName",null===(l=null===(c=t.legend)||void 0===c?void 0:c.treeSeries)||void 0===l||l.map((function(t,e){var n,r;t.active=null===(n=t.active)||void 0===n||n,t.id=null!==(r=t.id)&&void 0!==r?r:(0,y.uid)(),t.color||(t.color=(0,g.getDefaultColor)(e,"range"===h.legendType))})),h.treeSeries=null===(u=t.legend)||void 0===u?void 0:u.treeSeries;break;case"scatter":h.pointColor||(h.pointColor=h.color||(0,g.getDefaultColor)(i))}var f=p.default[h.type];(h.barWidth||r.config.barWidth)&&(h.barWidth=h.barWidth||r.config.barWidth);var d=new f(r.data,h,r.events),v=(0,g.getScales)(t.scales);(v.length>1&&"radial"!==v[0]||"radial"===v[0]?v:["bottom","left"]).forEach((function(t){var e=r._scales[t];e&&(d.addScale(t,e),h.stacked?e.add(s):e.add(d))})),r._series[d.id]=d,h.stacked?s.add(d):r._layers.add(d)})),t.legend){var c=o({},t.legend);c.series&&(c.$seriesInfo=c.series.map((function(t){return r._series[t]})));var l=new h.Legend(this.data,c,this.events);this._layers.add(l)}this.paint()},e.prototype._setScale=function(t,e){if(t.type){var n=new d.default[t.type](this.data,t,e);"radial"!==n.config.type&&this._layers.add(n.scaleGrid()),this._layers.add(n),this._scales[e]=n}},e.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},e.prototype._initEvents=function(){var t=this;this.events.on(f.ChartEvents.toggleSeries,(function(e,n){if("treeMap"===t.config.type)Object.values(t._series)[0].toggle(e),t.paint();else if(n){var r=t._series[Object.keys(t._series)[0]];r&&(r.toggle(e),t.paint())}else t._series[e]&&(t._series[e].toggle(),t.paint())}),this),this.events.on(l.DataEvents.change,(function(){return t.paint()})),this.events.on(l.DataEvents.filter,(function(){return t.paint()}))},e}(c.View);e.Chart=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toViewLike=e.View=void 0;var r=n(0),i=n(4),o=function(){function t(t,e){var n;this.config=e||{},this._uid=null!==(n=this.config.rootId)&&void 0!==n?n:(0,r.uid)()}return t.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=(0,i.toNode)(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},t.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(this.getRootNode()&&t.unmount(),this._view=null)},t.prototype.getRootView=function(){return this._view},t.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},t.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},t}();e.View=o,e.toViewLike=function(t){return{getRootView:function(){return t},paint:function(){return t.node&&t.redraw()},mount:function(e){return t.mount(e)}}}},function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ComposeLayer=void 0;var i=n(1),o=n(60),a=function(){function t(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}return t.prototype.add=function(t){this._data.push(t)},t.prototype.clear=function(){this._data.forEach((function(t){return t.destructor&&t.destructor()})),this._data=[]},t.prototype.getSizes=function(){return this._sizes},t.prototype.toVDOM=function(t,e){var n={left:20,right:20,top:10,bottom:10},a=this._data.filter((function(t){return!t.dataReady||t.dataReady().length}));this._data.forEach((function(t){return!t.scaleReady||t.scaleReady(n)}));var s=0,c=0;a.forEach((function(t){t.seriesShift&&(s+=t.seriesShift(),c++)}));var l=s/c;s=c?(l-s)/2:0,a.forEach((function(t){t.seriesShift&&(t.seriesShift(s),s+=l)})),this._sizes=n;var u=t-n.left-n.right,h=e-n.top-n.bottom,f=(0,i.sv)("g",{transform:"translate(".concat(n.left,", ").concat(n.top,")")},r([(0,i.sv)("rect.dhx_chart-graph_area",{width:u>0?u:0,height:h>0?h:0,fill:"transparent"})],a.map((function(r){return r.paint(t-(n.left+n.right),e-(n.top+n.bottom))})),!0)),d=(0,i.sv)("defs",[(0,o.dropShadow)(),(0,o.shadow)()]);return(0,i.sv)("svg",{width:t,height:e,role:"graphics-document"},[d,f])},t}();e.ComposeLayer=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dropShadow=e.shadow=void 0;var r=n(1);e.shadow=function(){return(0,r.sv)("filter",{id:"shadow"},[(0,r.sv)("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[(0,r.sv)("feDistantLight",{azimuth:90,elevation:25})]),(0,r.sv)("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])};e.dropShadow=function(){return(0,r.sv)("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[(0,r.sv)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),(0,r.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,r.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,r.sv)("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),(0,r.sv)("feComposite",{in2:"offsetblur",operator:"in"}),(0,r.sv)("feMerge",[(0,r.sv)("feMergeNode"),(0,r.sv)("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Legend=void 0;var i=n(7),o=n(9),a=n(1),s=n(2),c=n(62),l=n(0);var u=function(){function t(t,e,n){var a=this;this._data=t,this._events=n;this.config=r(r({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,n,r){switch(e){case"middle":switch(t){case"right":return n?20:60;case"left":return 120;case"center":throw new Error("cant place legend on center, middle")}case"top":return 20;case"bottom":return n||"line"===r?20:60}}(this.config.halign,this.config.valign,(0,i.isTreeCollection)(this._data),this.config.form),this._handlers={onclick:function(t,e){return a._events.fire(o.ChartEvents.toggleSeries,[t,e])},onkeyup:function(t,e,n){n.preventDefault(),"Enter"!==n.key&&" "!==n.key||a._events.fire(o.ChartEvents.toggleSeries,[t,e])}}}return t.prototype.scaleReady=function(t){var e="column"===this.config.direction&&("left"===this.config.halign||"right"===this.config.halign);switch(this.config.valign){case"middle":"right"===this.config.halign?t.right+=this.config.size>=0?this.config.size:200:"left"===this.config.halign&&(t.left+=this.config.size>=0?this.config.size:200);break;case"top":e?t[this.config.halign]+=this.config.size>=0?this.config.size:200:t.top+=this.config.size>=0?this.config.size:40;break;case"bottom":e?t[this.config.halign]+=this.config.size>=0?this.config.size:200:t.bottom+=this.config.size>=0?this.config.size:40}},t.prototype.paint=function(t,e){var n,i,o=this,l=this._getData(),u=this.config;u.$sizes={width:0,height:0};var h=(0,s.getFontStyle)("legend-text"),f=10,d=u.margin,p=u.itemPadding,v=[],g="middle"===u.valign,_=0,y=0,m=0,x=0;switch(l.forEach((function(e,n){if(!g&&"row"===u.direction){var i=(0,s.getTextWidth)(e.text,h);_+i+15>t&&0!==n&&(_=0,y+=p+2)}v.push((0,a.sv)("g",r(r({transform:"translate(".concat(_,",").concat(y,")"),onclick:[o._handlers.onclick,e.id,o.config.values],onkeyup:[o._handlers.onkeyup,e.id,o.config.values],class:"legend-item ".concat(e.active?"":"not-active")},function(t){return{role:"button","aria-label":t.active?"Hide chart ".concat(t.text):"Show chart ".concat(t.text)}}(e)),{tabindex:0}),[(0,a.sv)("text",{x:e.maxValue?0:10,y:0,class:"start-text legend-text"},[(0,s.verticalCenteredText)(e.text)]),[(0,c.legendShape)(u.form,e),!isNaN(e.maxValue)&&!isNaN(e.minValue)&&(0,c.legendTicks)(u.form,e)]]));var l="line"!==u.form?15+(0,s.getTextWidth)(e.text,h):0;g||"row"!==u.direction?(_=0,m=m>l?m:l,x=x>(y+=p+2)?x:y):m=m>(_+=l+p)?m:_})),u.valign){case"top":i="row"===u.direction?-d-y-5-("line"===u.form?15:0):"center"===u.halign?5-x:d+5;break;case"middle":i=(e-x)/2+p/2;break;case"bottom":i="row"===u.direction?e+("line"!==u.form?d:10):e+f-("center"===u.halign?0:d+x)}switch(u.halign){case"left":n=g?-m:5-("row"===u.direction?0:u.size||200);break;case"center":n=(t-m-("line"===u.form?500:0))/2;break;case"right":n=g?t+d+5:"row"===u.direction?t-m+p+("line"===u.form?-500-d:5):t+d+5}return(0,a.sv)("g",{transform:"translate(".concat(n>0?n:0,", ").concat(i,")"),"aria-label":"Legend",tabindex:0},v)},t.prototype._getData=function(){var t=[];if("scale"===this.config.type){var e=this.config.values,n=e.color,r=e.positiveColor,i=e.negativeColor,o=e.text,a=e.minValue,c=e.maxValue,u=e.tick,h=e.majorTick,f=e.step,d=e.tickTemplate,p=this.setCriticals(),v=p[0],g=p[1];t.push({id:(0,l.uid)(),text:o,alpha:1,fill:n,minValue:null!=a?a:v,maxValue:null!=c?c:g,positiveColor:r,negativeColor:i,active:!0,tick:u,majorTick:h,step:f,tickTemplate:d})}else if(this.config.values){var _=(0,s.locator)(this.config.values.text),y=(0,s.locator)(this.config.values.color);this._data.map((function(e,n){t.push({id:e.id,text:_(e).toString(),alpha:1,fill:y(e).toString()||(0,s.getDefaultColor)(n),active:!e.$hidden})}))}else if(this.config.treeSeries){var m=this.config.treeSeries;if("groupName"===this.config.type)m.forEach((function(e){t.push({id:e.id,text:e.name||e.id,alpha:1,fill:e.color,active:e.active})}));else{var x=function(t){return t.from&&t.to?"".concat(t.from," - ").concat(t.to):t.less?"<= ".concat(t.less):t.greater?">= ".concat(t.greater):void 0};m.forEach((function(e){t.push({id:e.id,text:x(e),alpha:1,fill:e.color,active:e.active})}))}}else for(var b=0,w=m=this.config.$seriesInfo;b<w.length;b++){var O=w[b],D=O.config,S=D.fill,T=(n=D.color,D.id),C=D.alpha,M=D.active,P=D.label,k=D.value,j=S&&n;o=P&&"function"==typeof P?P(O.config):P||k;t.push({id:T,text:o,fill:S||n,color:j&&n,active:M,alpha:C})}return t},t.prototype.setCriticals=function(){var t,e,n=this.config.values.value;return this._data.forEach((function(r){r[n]&&(t=!t||r[n]<t?r[n]:t,e=!e||r[n]>e?r[n]:e)})),e=10*Math.ceil(e/10),(t=10*Math.floor(t/10))===e&&(t-=10),[t,e]},t}();e.Legend=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legendTicks=e.legendShape=void 0;var r=n(0),i=n(1),o=16,a=500,s={circle:function(t,e,n){return(0,i.sv)("circle",{id:(0,r.uid)(),r:5,fill:e,class:"figure ".concat("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":n,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,n){return(0,i.sv)("rect",{id:(0,r.uid)(),fill:e,"fill-opacity":n,width:10,"stroke-width":2,height:10,class:"figure ".concat("none"!==t?"with-stroke":""),stroke:t,transform:"translate(".concat(-5,", ").concat(-5,")")})},line:function(t,e,n,s){var c=function(t,e,n){return(0,i.sv)("stop",{offset:"".concat(e,"%"),"stop-color":t,class:t?"":n})},l="lg"+(0,r.uid)(),u=(0,i.sv)("linearGradient",{id:l},[c(t[1],0,"heat-negative"),c(e,s,"heat-neutral"),c(t[0],100,"heat-positive")]),h=(0,i.sv)("rect",{id:(0,r.uid)(),y:o,fill:"url(#".concat(l,")"),"fill-opacity":n,width:a,"stroke-width":2,height:o,class:"figure figure-line",stroke:t});return(0,i.sv)("g",{id:(0,r.uid)(),width:a,height:o},[u,h])}};e.legendShape=function(t,e){var n;return"string"==typeof t&&(n=s[t]),n("line"===t?[e.positiveColor,e.negativeColor]:e.color||"none",e.fill,e.alpha||1,"line"===t&&e.minValue<0?100*Math.abs(e.minValue)/(e.maxValue-e.minValue):0)},e.legendTicks=function(t,e){if("line"===t&&!isNaN(e.maxValue)&&!isNaN(e.minValue)){for(var n=e.maxValue,r=e.minValue,s=e.step,c=e.tick,l=e.majorTick,u=e.tickTemplate,h=c||10,f=(n-r)/h,d=[],p=0;p<=Math.ceil(f/(s||1));p++){var v=0===p?r:(r+h*(s||1)*p).toFixed();d.push(v>n?n:v)}return d=d.map((function(t,e,n){var r=(e%(l||1)==0||e===n.length-1)&&(0,i.sv)("text",{x:e===n.length-1?499.5:e*a/f*(s||1)-.5,y:34},u?u(t):t),c=(0,i.sv)("rect",{x:e===n.length-1?499.5:e*a/f*(s||1)-.5,y:18,width:1,height:4});return(0,i.sv)("g",{transform:"translate(0, ".concat(o,")"),class:"legend-tick"},[r,c])})),d}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(64),i=n(16),o=n(66),a={radial:r.RadialScale,text:o.TextScale,numeric:i.Scale};e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.RadialScale=void 0;var o=n(10),a=function(t){function e(e,n){return t.call(this,e,n,"radial")||this}return i(e,t),e.prototype.paint=function(t,e){var n=this;if(this.config.hidden)return null;var r=this.config.zebra,i=this.config.value,a=this.config.showAxis?this._axis.steps:null,s=this._axis.steps.map((function(t){return n.point(t)})),c={scales:this._data.map((function(t){return t[i]})),axis:s,realAxis:a,zebra:r,attribute:i};return(0,o.radarScale)(c,t,e)},e.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},e}(n(16).Scale);e.RadialScale=a},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisCreator=void 0;var o=n(2),a=n(0),s=[1,2,3,5,10],c=function(){function t(t,e){void 0===e&&(e={}),this._data=t;for(var n=[],i=0,o=this._data;i<o.length;i++){var s=o[i];"number"==typeof s&&n.push(s),"string"!=typeof s||isNaN(parseFloat(s))||n.push(parseFloat(s))}var c={min:Math.min.apply(Math,n),max:Math.max.apply(Math,n),maxTicks:this._data.length<20?this._data.length:20};if(this.config=r(r({},c),e),"radial"!==this.config.type&&!(0,a.isDefined)(e.min)){var l=this.config.min,u=l-this._getStep();(l>0&&u>=0||l<0)&&(this.config.min=u)}this.config.padding&&this._addPadding()}return t.prototype.getScale=function(){var t=this.config.log?this._logSteps():this._calculateSteps(this._getStep());return{min:t[0],max:t[t.length-1],steps:t}},t.prototype._getStep=function(){var t=this.config.maxTicks,e=this.config.max-this.config.min,n=Math.floor((0,o.log10)(e/t)),r=Math.pow(10,n)||1,a=e/r/t;return s[i(i([],s,!0),[a],!1).sort((function(t,e){return t-e})).indexOf(a)]*r},t.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),n=Math.ceil(this.config.max/t),r=[],i="radial"===this.config.type?e-1:e;i<=n;i++){var o=t*i;Math.floor(o)!==o&&(o=parseFloat(o.toFixed(8))),r.push(o)}return r},t.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil((0,o.log10)(-this.config.min));e>0;e--)t.push(-Math.pow(10,e));t.push(0)}if(this.config.max>0){var n=Math.ceil((0,o.log10)(this.config.max));for(e=0;e<=n;e++)t.push(Math.pow(10,e))}return t},t.prototype._addPadding=function(){this.config.min-=this.config.padding},t}();e.AxisCreator=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TextScale=void 0;var a=n(2),s=n(16),c=n(26),l={left:c.left,right:c.right,bottom:c.bottom,top:c.top},u={left:c.leftGrid,right:c.rightGrid,bottom:c.bottomGrid,top:c.topGrid},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.scaleReady=function(t){var e=this._data.getLength()-1,n=this._data.map(this.locator);this._axis={max:e,steps:n},t[this._position]+=this.config.size},e.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var n=this._axis.max+1,r=.5/n,i=e/n;return this._isXDirection?r+i:1-r-i}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},e.prototype.paint=function(t,e){var n=this;if(this.config.hidden)return null;var r=this._axis.steps.map((function(r,i){return[n._isXDirection?n._getAxisPoint(i)*t:n.point(r)*e,r]}));return l[this._position](r,this.config,t,e)},e.prototype.scaleGrid=function(){var t=this,e=this._position,n=this.config.grid,r=this.config.dashed,i=this.config.hidden;return{paint:function(o,a){var s=t._axis.steps.indexOf(t.config.targetLine),c=function(e,n){return t._axis.steps.map((function(r,i){return[t._isXDirection?t._getAxisPoint(i)*e:t._getAxisPoint(i)*n,r]}))}(o,a),l={targetLine:s,dashed:r,grid:n,hidden:i};return u[e](c,o,a,l)}}},e.prototype._setDefaults=function(t){this.locator=(0,a.locator)(t.text),this.config=o(o({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},e.prototype._getAxisPoint=function(t){var e=this._axis.max;if(this._padding){var n=e+1,r=.5/n,i=t/n;return this._isXDirection?r+i:1-r-i}return this._isXDirection?t/e:1-t/e},e}(s.Scale);e.TextScale=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27),i=n(30),o=n(68),a=n(69),s=n(19),c=n(70),l=n(71),u=n(72),h=n(73),f=n(74),d=n(75),p=n(76),v=n(77),g={line:s.default,spline:f.default,area:r.default,splineArea:d.default,scatter:h.default,pie:c.default,pie3D:l.default,donut:a.default,radar:u.default,bar:i.default,xbar:o.default,treeMap:p.default,calendarHeatMap:v.default};e.default=g},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addScale=function(e,n){var r="top"===e||"bottom"===e?"left":"top";t.prototype.addScale.call(this,r,n)},e.prototype.paint=function(e,n,r){return t.prototype.paint.call(this,n,e,r)},e.prototype.getTooltipType=function(t,e,n){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},e.prototype.getClosest=function(t,e){for(var n=[1/0,null,null,null],r=0,i=this._points;r<i.length;r++){var o=i[r],a=this._getClosestDist(t,e,o[1],o[0]);n[0]>a&&(n[0]=a,n[1]=o[1],n[2]=o[0],n[3]=o[2])}return n},e.prototype._getText=function(t){return t[4].toString()},e.prototype._getClosestDist=function(t,e,n,r){return this.config.stacked&&t>n?1/0:Math.abs(e-r)},e.prototype._path=function(t,e){return t[0]+=this._shift,"\nM ".concat(e," ").concat(t[0]-this.config.barWidth/2,"\nH ").concat(t[1],"\nv ").concat(this.config.barWidth,"\nH ").concat(e)},e.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:0},e.prototype._text=function(t,e,n){var r=(e+t[1])/2,i=t[0];return{x:r,y:i,class:"bar-text",transform:n&&!isNaN(n)?"rotate(".concat(n," ").concat(r," ").concat(i,")"):""}},e}(n(30).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n(10),c=n(2),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(t,e){var n,r=this,i=function(t,e,n){return void 0===n&&(n=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,c.roundToTwoNumAfterPoint)(n),"%)")}},l=this.config,u=l.stroke,h=l.strokeWidth,f=l.useLines,d=l.subType,p=l.valueTemplate,v=!h||h<1?4:h>15?15:h;n=e>t?t/2:e/2;var g,_=-.25,y=[],m=[],x=[];return this._points.length>1&&u&&y.push((0,a.sv)("circle",{cx:0,cy:0,r:n-.5,fill:u})),this._points.forEach((function(l,h){var g,b,w,O=[],D=l[0],S=l[1],T=l[2],C=l[3],M=l[4],P=0===D||1===D?-1e-6:0,k=(0,s.getCoordinates)(_,n,n,r._points.length>1&&u?v/2:null),j=k[0],E=k[1],L=_+D/2;_+=D+P;var A=(0,s.getCoordinates)(_,n,n,r._points.length>1&&u?-v/2:null),I=A[0],F=A[1],N=D>.5?1:0,R=(0,s.getCoordinates)(L,n,n),H=L>-.25&&L<.25,W=L>.5||L<0,z=L<.25?5:-5,V=[5,30],G=V[0],$=V[1],Y=[(0,s.getCoordinates)(L,n+G,n+G),(0,s.getCoordinates)(L,n+$,n+$)],B=Y[0],X=Y[1],U="function"==typeof p?p(D):Math.round(100*D)+"%";switch(r.config.subType){case"basic":var J=H?"donut-value-title start-text":"donut-value-title end-text",q=W?-20:10,Z=(0,s.getCoordinates)(L,n+10,n+10),K=H?"donut-value start-text":"donut-value end-text",Q={text1:{x:f?X[0]:Z[0],y:(f?X[1]:Z[1])+q,width:0,height:0,class:""},text2:{x:f?X[0]:Z[0],y:(f?X[1]:Z[1])+q+16,width:0,height:0,class:""},changeSector:!1,line:z,right:H,dy:q},tt=(0,a.sv)("text",o(o({x:f?X[0]:Z[0],y:(f?X[1]:Z[1])+q,class:J},i(S,C,D)),{tabindex:0}),[(0,c.verticalCenteredText)(C.toString())]),et=(0,a.sv)("text",{x:f?X[0]:Z[0],y:(f?X[1]:Z[1])+q+16,class:K,"aria-hidden":"true"},[(0,c.verticalCenteredText)(S.toString())]);g=(0,c.getSizesSVGText)(C.toString(),{font:"normal 14px Roboto",lineHeight:14}),Q.text1.width=g[0],Q.text1.height=g[1],b=(0,c.getSizesSVGText)(S.toString(),{font:"normal 12px Roboto",lineHeight:12}),Q.text2.width=b[0],Q.text2.height=b[1];var nt=f?n+$:n+10;0!==m.length&&(H?(m.forEach((function(t){(0,c.checkPositions)(Q.text1,t.text1,nt,nt,Q),(0,c.checkPositions)(Q.text1,t.text2,nt,nt,Q)})),Q.text1.class&&(Q.text2.class=Q.text1.class)):(m.forEach((function(t){(0,c.checkPositions)(Q.text2,t.text2,nt,nt,Q),(0,c.checkPositions)(Q.text2,t.text1,nt,nt,Q)})),Q.text2.class&&(Q.text1.class=Q.text2.class)),tt.attrs.x=Q.text1.x,tt.attrs.y=Q.text1.y,et.attrs.x=Q.text2.x,et.attrs.y=Q.text2.y,(Q.text1.class||Q.text2.class)&&(tt.attrs.class=Q.text1.class,et.attrs.class=Q.text2.class),z=Q.line,f?(X[0]=Q.text1.x,X[1]=Q.text1.y-q):(Z[0]=Q.text1.x,Z[1]=Q.text1.y-q)),m.push(Q);var rt=(0,a.sv)("text",o({x:7*R[0]/9,y:7*R[1]/9,class:"pie-inner-value"},i(S,C,D)),[(0,c.verticalCenteredText)(U)]);O.push((0,a.sv)("g",{id:"".concat(T,"-text"),class:"chart donut"},[tt,et])),O.push(rt);break;case"valueOnly":var it=(0,a.sv)("text",o(o({x:7*R[0]/9,y:7*R[1]/9,class:"pie-inner-value"},i(S,C,D)),{tabindex:0}),[(0,c.verticalCenteredText)("".concat(S))]);O.push(it);break;case"percentOnly":var ot=(0,a.sv)("text",o(o({x:7*R[0]/9,y:7*R[1]/9,class:"pie-inner-value"},i(S,C,D)),{tabindex:0}),[(0,c.verticalCenteredText)(U)]);O.push(ot)}if(f&&"basic"===d){q=W?3:0;O.push((0,a.sv)("path",{d:"M".concat(B[0]," ").concat(B[1]," L").concat(X[0],"\n\t\t\t\t\t\t\t").concat(X[1]+q," h ").concat(z),id:"".concat(T,"-connector"),class:"pie-value-connector chart donut"}))}var at=0,st=0,ct=v/(2*Math.sin(Math.PI/r._points.length));r._points.length>1&&u&&(at=(w=(0,s.getCoordinates)(L,ct,ct))[0],st=w[1]);var lt="M ".concat(j," ").concat(E," A ").concat(n," ").concat(n," 0 ").concat(N," 1 ").concat(I," ").concat(F,"\n\t\t\t\tL ").concat(0+at," ").concat(0+st),ut=(0,s.getCoordinates)(L,4,4),ht=ut[0],ft=ut[1],dt=(0,a.sv)("path",{d:lt,_key:T,fill:M||(0,c.getDefaultColor)(h),class:"chart donut",onclick:[r._handlers.onclick,l[1],l[2]],onmouseout:[s.pieLikeHandlers.onmouseout],onmouseover:[s.pieLikeHandlers.onmouseover,ht,ft],role:"presentation"});O.unshift(dt),y.push((0,a.sv)("g",{id:T},O)),1===r._points.length?x.push([t/2,e/2]):x.push([.8*R[0]+t/2,.8*R[1]+e/2])})),this._center=[t/2,e/2],this._tooltipData=x,(y=y.concat([])).push((0,a.sv)("circle",{cx:0,cy:0,r:5*n/9,fill:"#FFFFFF",role:"presentation"})),(0,a.sv)("g",o(o({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(g=this.config,{"aria-label":"chart ".concat(g.text||"")})),{tabindex:0}),y)},e}(n(18).default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=n(1),c=n(10),l=n(2),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(t,e){var n,r=this,i=this.config,u=i.stroke,h=i.strokeWidth,f=i.gradient,d=i.useLines,p=i.showText,v=i.showTextTemplate,g=i.subType,_=i.valueTemplate,y=!h||h<1?4:h>15?15:h;n=e>t?t/2:e/2;var m,x=-.25,b=[],w=[],O=[],D=[],S=[];return this._points.length>1&&u&&O.push((0,s.sv)("circle",{cx:0,cy:0,r:n-.5,fill:u})),this._points.forEach((function(i,h){var m,O,T,C=[],M=i[0],P=i[1],k=i[2],j=i[3],E=i[4],L=0===M||1===M?-1e-6:0,A=E||(0,l.getDefaultColor)(h);if(f){var I=f(E),F="gradient"+(0,a.uid)(),N=(0,l.getRadialGradient)(I.options,I.stops,F);A="url(#".concat(F,")"),D.push(N)}var R=(0,c.getCoordinates)(x,n,n,r._points.length>1&&u?y/2:null),H=R[0],W=R[1],z=x+M/2,V=z<.25?5:-5,G=(0,c.getCoordinates)(z,n,n);x+=M+L;var $=(0,c.getCoordinates)(x,n,n,r._points.length>1&&u?-y/2:null),Y=$[0],B=$[1],X=M>.5?1:0,U=[5,30],J=U[0],q=U[1],Z=[(0,c.getCoordinates)(z,n+J,n+J),(0,c.getCoordinates)(z,n+q,n+q)],K=Z[0],Q=Z[1],tt=z>-.25&&z<.25,et=z>.5||z<0,nt=z>-.25&&z<.25?"pie-value start-text":"pie-value end-text";if((p||v)&&!1!==p){var rt=(0,s.sv)("text",{x:.7*G[0],y:.7*G[1],class:"pie-inner-value","aria-hidden":"true"},[v?(0,l.verticalCenteredText)(v(P.toString())):(0,l.verticalCenteredText)(P.toString())]);C.push(rt)}var it="function"==typeof _?_(M):Math.round(100*M)+"%";switch(r.config.subType){case"basic":var ot=et?-20:10,at=(0,c.getCoordinates)(z,n+10,n+10),st=tt?"donut-value start-text":"donut-value end-text",ct={text1:{x:d?Q[0]:at[0],y:(d?Q[1]:at[1])+ot,width:0,height:0,class:""},text2:{x:d?Q[0]:at[0],y:(d?Q[1]:at[1])+ot+16,width:0,height:0,class:""},changeSector:!1,line:V,right:tt,dy:ot},lt=(0,s.sv)("text",o({x:d?Q[0]:at[0],y:(d?Q[1]:at[1])+ot,class:nt},function(t,e,n){return{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,l.roundToTwoNumAfterPoint)(n),"%)")}}(P,j,M)),[(0,l.verticalCenteredText)(j.toString())]),ut=(0,s.sv)("text",{x:d?Q[0]:at[0],y:(d?Q[1]:at[1])+ot+16,class:st,"aria-hidden":"true"},[(0,l.verticalCenteredText)(P.toString())]);m=(0,l.getSizesSVGText)(j.toString(),{font:"normal 14px Roboto",lineHeight:14}),ct.text1.width=m[0],ct.text1.height=m[1],O=(0,l.getSizesSVGText)(P.toString(),{font:"normal 12px Roboto",lineHeight:12}),ct.text2.width=O[0],ct.text2.height=O[1];var ht=d?n+q:n+10;0!==b.length&&(tt?(b.forEach((function(t){(0,l.checkPositions)(ct.text1,t.text1,ht,ht,ct),(0,l.checkPositions)(ct.text1,t.text2,ht,ht,ct)})),ct.text1.class&&(ct.text2.class=ct.text1.class)):(b.forEach((function(t){(0,l.checkPositions)(ct.text2,t.text2,ht,ht,ct),(0,l.checkPositions)(ct.text2,t.text1,ht,ht,ct)})),ct.text2.class&&(ct.text1.class=ct.text2.class)),lt.attrs.x=ct.text1.x,lt.attrs.y=ct.text1.y,ut.attrs.x=ct.text2.x,ut.attrs.y=ct.text2.y,(ct.text1.class||ct.text2.class)&&(lt.attrs.class=ct.text1.class,ut.attrs.class=ct.text2.class),V=ct.line,d?(Q[0]=ct.text1.x,Q[1]=ct.text1.y-ot):(at[0]=ct.text1.x,at[1]=ct.text1.y-ot)),b.push(ct);var ft=(0,s.sv)("text",{x:.5*G[0],y:.5*G[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(it)]);C.push((0,s.sv)("g",{id:"".concat(k,"-text"),class:"chart donut"},[lt,ut])),C.push(ft);break;case"valueOnly":var dt=(0,s.sv)("text",{x:.5*G[0],y:.5*G[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)("".concat(P))]);C.push(dt);break;case"percentOnly":var pt=(0,s.sv)("text",{x:.5*G[0],y:.5*G[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(it)]);C.push(pt)}if(d&&"basic"===g){ot=et?3:0;C.push((0,s.sv)("path",{d:"M".concat(K[0]," ").concat(K[1]," L").concat(Q[0],"\n\t\t\t\t\t\t\t").concat(Q[1]+ot," h ").concat(V),id:"".concat(k,"-connector"),class:"pie-value-connector chart pie"}))}var vt=0,gt=0,_t=y/(2*Math.sin(Math.PI/r._points.length));r._points.length>1&&u&&(vt=(T=(0,c.getCoordinates)(z,_t,_t))[0],gt=T[1]);var yt="M ".concat(H," ").concat(W," A ").concat(n," ").concat(n," 0 ").concat(X," 1 ").concat(Y," ").concat(B,"\n\t\t\t\tL ").concat(0+vt," ").concat(0+gt),mt=(0,c.getCoordinates)(z,4,4),xt=mt[0],bt=mt[1],wt=(0,s.sv)("path",{d:yt,class:"chart pie",_key:k,fill:A,onclick:[r._handlers.onclick,i[1],i[2]],onmouseover:[c.pieLikeHandlers.onmouseover,xt,bt],onmouseout:[c.pieLikeHandlers.onmouseout],role:"presentation"});C.unshift(wt),S.push((0,s.sv)("g",{id:k},C)),1===r._points.length?w.push([t/2,e/2]):w.push([.7*G[0]+t/2,.7*G[1]+e/2])})),this._center=[t/2,e/2],this._tooltipData=w,O.push((0,s.sv)("defs",D)),O=(O=O.concat(S)).concat([]),(0,s.sv)("g",o(o({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(m=this.config,{"aria-label":"chart ".concat(m.text||"")})),{tabindex:0}),O)},e}(n(18).default);e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n(10),c=n(2),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(t,e){var n,r,i=this,l=this.config,u=l.subType,h=l.useLines,f=l.showText,d=l.showTextTemplate,p=l.valueTemplate,v=.5*(n=e>t?t/2:e/2),g=n/5,_=[],y=-.25,m=[],x=[],b=[];return this._points.forEach((function(r,l){var w,O,D=r[0],S=r[1],T=r[2],C=r[3],M=r[4],P=0===D||1===D?-1e-6:0,k=(0,s.getCoordinates)(y,n,v),j=k[0],E=k[1],L=y+D/2,A=L<.25?5:-5,I=(0,s.getCoordinates)(L,n,v),F=0;L>0&&L<.5&&(F=g*Math.sin(2*Math.PI*L));var N=(0,s.getCoordinates)(L,n+5+F,v+5+F),R=(0,s.getCoordinates)(L,n+30+F,v+30+F),H=y+D+P,W=(0,s.getCoordinates)(H,n,v),z=W[0],V=W[1],G=D>.5?1:0,$=L>-.25&&L<.25,Y=L>.5||L<0,B=$?"pie-value start-text":"pie-value end-text",X="function"==typeof p?p(D):Math.round(100*D)+"%";switch(i.config.subType){case"basic":var U=Y?-20:10,J=$?"donut-value start-text":"donut-value end-text",q={text1:{x:h?R[0]:N[0],y:(h?R[1]:N[1])+U,width:0,height:0,class:""},text2:{x:h?R[0]:N[0],y:(h?R[1]:N[1])+U+16,width:0,height:0,class:""},changeSector:!1,line:A,right:$,dy:U},Z=(0,a.sv)("text",o({x:h?R[0]:N[0],y:(h?R[1]:N[1])+U,dx:h?A/2+A>0?10:-10:null,class:B},function(t,e,n){return{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,c.roundToTwoNumAfterPoint)(n),"%)")}}(S,C,D)),[(0,c.verticalCenteredText)(C.toString())]),K=(0,a.sv)("text",{x:h?R[0]:N[0],y:(h?R[1]:N[1])+U+16,dx:h?A/2+A>0?10:-10:null,class:J,"aria-hidden":"true"},[(0,c.verticalCenteredText)(S.toString())]),Q=(0,a.sv)("text",{x:.5*I[0],y:.5*I[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(X)]);w=(0,c.getSizesSVGText)(C.toString(),{font:"normal 14px Roboto",lineHeight:14}),q.text1.width=w[0],q.text1.height=w[1],O=(0,c.getSizesSVGText)(S.toString(),{font:"normal 12px Roboto",lineHeight:12}),q.text2.width=O[0],q.text2.height=O[1];var tt=h?n+30+F:n+5+F,et=h?v+30+F:v+5+F;0!==b.length&&($?(b.forEach((function(t){(0,c.checkPositions)(q.text1,t.text1,tt,et,q),(0,c.checkPositions)(q.text1,t.text2,tt,et,q)})),q.text1.class&&(q.text2.class=q.text1.class)):(b.forEach((function(t){(0,c.checkPositions)(q.text2,t.text2,tt,et,q),(0,c.checkPositions)(q.text2,t.text1,tt,et,q)})),q.text2.class&&(q.text1.class=q.text2.class)),Z.attrs.x=q.text1.x,Z.attrs.y=q.text1.y,K.attrs.x=q.text2.x,K.attrs.y=q.text2.y,(q.text1.class||q.text2.class)&&(Z.attrs.class=q.text1.class,K.attrs.class=q.text2.class),A=q.line,h?(R[0]=q.text1.x,R[1]=q.text1.y-U):(N[0]=q.text1.x,N[1]=q.text1.y-U)),b.push(q),x.push(Z,K,Q);break;case"valueOnly":var nt=(0,a.sv)("text",{x:.5*I[0],y:.5*I[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(S.toString())]);x.push(nt);break;case"percentOnly":var rt=(0,a.sv)("text",{x:.5*I[0],y:.5*I[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(X)]);x.push(rt)}if(h&&"basic"===u&&x.push((0,a.sv)("path",{d:"M".concat(N[0]," ").concat(N[1]," L").concat(R[0]," ").concat(R[1]," h ").concat(A),class:"pie-value-connector"})),(f||d)&&!1!==f){var it=(0,a.sv)("text",{x:.7*I[0],y:.7*I[1],class:"pie-inner-value","aria-hidden":"true"},[d?(0,c.verticalCenteredText)(d(S)):(0,c.verticalCenteredText)(S.toString())]);x.push(it)}var ot="";if(y<=0&&H>=.5?ot="M ".concat(n," 0 v ").concat(g," A ").concat(n," ").concat(v," 0 1 1 ").concat(-n," ").concat(g," v ").concat(-g):y<=0&&H<.5?ot="M ".concat(n," 0 v ").concat(g," A ").concat(n," ").concat(v," 0 0 1 ").concat(z," ").concat(V+g," v ").concat(-g):y>0&&y<=.5&&H>=.5?ot="M ".concat(j," ").concat(E," v ").concat(g," A ").concat(n," ").concat(v," 0 0 1 ").concat(-n," ").concat(g," v ").concat(-g):y>0&&H<.5&&(ot="M ".concat(j," ").concat(E," v ").concat(g," A ").concat(n," ").concat(v," 0 0 1 ").concat(z," ").concat(V+g," v ").concat(-g)),ot){var at=(0,a.sv)("path",{_key:T+"__shadow__",d:ot,fill:M||(0,c.getDefaultColor)(l),onclick:[i._handlers.onclick,r[1],r[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"});m.push(at)}var st="M ".concat(j," ").concat(E," A ").concat(n," ").concat(v," 0 ").concat(G," 1 ").concat(z," ").concat(V," L 0 0");m.push((0,a.sv)("path",{d:st,_key:T,fill:M||(0,c.getDefaultColor)(l),stroke:"none",onclick:[i._handlers.onclick,r[1],r[2]],class:"chart pie3d",role:"presentation"})),1===i._points.length?_.push([t/2,e/2]):_.push([.7*I[0]+t/2,.7*I[1]+e/2]),y=H})),this._center=[t/2,e/2],this._tooltipData=_,m=m.concat(x),(0,a.sv)("g",o(o({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(r=this.config,{"aria-label":"chart ".concat(r.text||"")})),{tabindex:0}),m)},e}(n(18).default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n(10),c=n(2),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addScale=function(t,e){this._scale=e},e.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},e.prototype.dataReady=function(t){var e=this;if(!this.config.active)return this._points=[];var n=(0,c.locator)(this._scale.config.value);return this._points=this._data.map((function(r,i){var o=e._locator(r),a=[o,o,r.id,o,o];return t&&(a[1]+=t[i][1]),n&&a.push(n(r)),a})),this._points},e.prototype.getTooltipText=function(t){if(this.config.tooltip){var e=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(e):e}},e.prototype.paint=function(e,n){var r=this;t.prototype.paint.call(this,e,n);if(this.config.active){var i,s=this.config,l=[],u=this._points.map((function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])})).join(" ")+"Z";if(l.push((0,a.sv)("path",{d:u,stroke:s.color,"stroke-width":s.strokeWidth,fill:s.fill,"fill-opacity":s.alpha,class:"chart radar"})),s.pointType){var h=this._points.map((function(t){return r._drawPointType(t[0],t[1],(0,c.calcPointRef)(t[2],r.id))})).map((function(t){return t&&t.attrs&&(t.attrs=o(o({},t.attrs),function(t,e){var n;return t&&(n=e.find((function(e){return t.includes(e[2])}))),{role:"graphics-symbol","aria-roledescription":"point","aria-label":n?"point x=".concat(n[5]," y=").concat(n[4]):"",tabindex:0}}(t.key,r._points))),t}));l.push((0,a.sv)("g",h))}return(0,a.sv)("g",o(o({id:"seria"+s.id},(i=this.config,{"aria-label":"chart ".concat(i.value||"")})),{tabindex:0}),l)}},e.prototype._calckFinalPoints=function(t,e){var n,r=this;n=e>t?t/2:e/2;var i=1/this._data.getLength(),o=-.25-i;this._points.forEach((function(a,c){o+=i;var l=r._scale.point(a[0]),u=(0,s.getCoordinates)(o,l*n,l*n);a[0]=u[0]+t/2,a[1]=u[1]+e/2}))},e.prototype._defaultLocator=function(t){return this._locator(t)},e.prototype._setDefaults=function(t){if(this._locator=(0,c.locator)(t.value),t.scales=t.scales||["radial"],this.config=o(o({},{strokeWidth:2,active:!0,tooltip:!0,paddings:5,color:"none",fill:"none",pointType:"circle"}),t),this.config.pointType){var e=this.config.pointColor||this.config.color;this._drawPointType=this._getPointType(this.config.pointType,e)}},e}(n(11).default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(19),s=n(2),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=(0,s.locator)(this.config.value)):(this.yScale=e,this._yLocator=(0,s.locator)(this.config.valueY))},e.prototype._setDefaults=function(t){this.config=o(o({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,n=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,n))},e}(a.default);e.default=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),a=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._getForm=function(t,e,n,r){var i=e.color,s=e.strokeWidth,c=(0,a.default)(t);return(0,o.sv)("path",{id:"seria"+e.id,d:c,class:this._getCss(),stroke:i,"stroke-width":s,fill:"none"})},e}(n(19).default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),a=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._form=function(t,e,n,r){var i=this.config,s=i.fill,c=i.alpha,l=i.strokeWidth,u=i.color,h=i.id,f="",d=this._points[0];if(f=r?"".concat((0,a.default)([].concat(r).reverse())," ").concat((0,a.default)(this._points,!0)," Z"):"M".concat(d[0]," ").concat(e," V ").concat(d[1]," ").concat((0,a.default)(this._points)," V").concat(e," H ").concat(d[0]),l){var p=(0,a.default)(this._points),v=(0,o.sv)("path",{d:p,"stroke-width":l,stroke:u,fill:"none","stroke-linecap":"butt",class:this._getCss()});n.push(v)}var g=(0,o.sv)("path",{id:"seria"+h,d:f,class:this._getCss(),fill:s,"fill-opacity":c,stroke:"none"});return n.push(g),n},e}(n(27).default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=n(1),c=n(7),l=n(2),u=n(9),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},e.prototype.toggle=function(t){var e=this.config.treeSeries.find((function(e){return e.id===t}));e&&(e.active=!e.active)},e.prototype.dataReady=function(){var t=this;if(!this.config.active)return this._points=[];var e="groupName"===this.config.legendType;return this._sum=0,this._data.forEach((function(n){var r=t._data.getItem(t._data.getParent(n.id));if(!(r&&r.$hidden&&t._maxLevel>1)){var i=t._valueLocator(n);if(i){var o=t._getSerie(e?n.id:i,e);n.color=o?o.color:n.color,n.$hidden=!!o&&!o.active,!n.$hidden&&i&&(t._sum+=parseFloat(n[t.config.value]))}}})),this._points=[],this._data.eachChild(this._data.getRoot(),(function(n){var r;if(!n.$hidden){var i=t._valueLocator(n),o=t._textLocator(n),a=[];!i&&t._data.haveItems(n.id)&&(i=0,t._data.eachChild(n.id,(function(n){var r;if(!n.$hidden){var o=t._valueLocator(n),s=t._textLocator(n),c=n.color||(null===(r=t._getSerie(e?n.id:o,e))||void 0===r?void 0:r.color);o&&(i+=o),a.push([0,o,n.id,s,c])}}))),n.percent=parseFloat(i)/t._sum;var s=n.color||(null===(r=t._getSerie(e?n.id:i,e))||void 0===r?void 0:r.color);t._points.push([n.percent,i,n.id.toString(),o,s,{items:a}])}}),!1),this._maxLevel=this._getMaxLevel(),this._points},e.prototype.paint=function(t,e){var n=this;if(!!this.config.treeSeries.find((function(t){return t.active}))){var r=this.config.strokeWidth,i=[],c=[],l=[],u=this._maxLevel>1?2*r:r,h=t-u,f=e-u;this._layout={id:(0,a.uid)(),area:h*f,width:h,height:f,restArea:h*f,restWidth:h,restHeight:f,startX:u/2,startY:u/2,stroke:u};var d,p=this._layout.startX,v=this._layout.startY;return this._layout.width>=this._layout.height?this._layout.cols=[]:this._layout.rows=[],this._points.sort((function(t,e){return e[0]-t[0]})),this._points.forEach((function(t,e,o){var l,u,h=t[0],f=(t[1],t[2]),d=(t[3],t[4],t[5]);if(0!==h){var g=n._drawBar(t,e,o,n._layout,p,v,!(!d||!(null===(l=d.items)||void 0===l?void 0:l.length))),_=g[0],y=g[1],m=g[2],x=g[3],b=g[4],w=g[5],O=g[6];if(p=w[0],v=w[1],c.push((0,s.sv)("g",{id:f},[_,y,O])),i.push(m),d&&(null===(u=d.items)||void 0===u?void 0:u.length)){var D=w[2]-r,S=w[3]-r,T={id:(0,a.uid)(),parent:n._layout.id,area:D*S,width:D,height:S,restArea:D*S,restWidth:D,restHeight:S,startX:p+r/2,startY:v+r/2+("asc"!==n.config.direction&&O?r/2:0),stroke:r},C=T.startX,M=T.startY;T.width>=T.height?T.cols=[]:T.rows=[],d.items.map((function(e){return e[0]=e[1]/t[1]})),d.items.sort((function(t,e){return e[0]-t[0]})),d.items.forEach((function(t,e,r){var o=t[2],a=n._drawBar(t,e,r,T,C,M,!1),l=a[0],u=a[1],h=a[2],f=a[3],d=a[4];c.push((0,s.sv)("g",{id:o},[l,u])),i.push(h),C=f,M=d}))}p=x,v=b}})),l.push((0,s.sv)("defs",i)),l=l.concat(c),(0,s.sv)("g",o(o({id:"seria"+this.config.id},(d=this.config,{"aria-label":"chart ".concat(d.text||"")})),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 ".concat(this._layout.startX+this._layout.width/2," ").concat(this._layout.startY+this._layout.height/2,")"):""}),l)}},e.prototype._drawBar=function(t,e,n,r,i,c,u){var h=this,f=t[0],d=t[1],p=t[2],v=t[3],g=t[4],_=this.config,y=_.stroke,m=_.showText,x=_.showTextTemplate,b=f*r.area,w=this._getDeepParent(r),O=u&&f>0&&v,D=r.startX+r.width-w.restWidth,S=r.startY+r.height-w.restHeight;i=i>D?D:i,c=c>S?S:c;var T=this._getBar(w,b,i,c,n,e,r.area),C=T[0],M=T[1],P=T[2],k=T[3],j=T[4];if(!(C[2]<0||C[3]<0)){this._recountParentArea(b,j,r);var E=O?(0,s.sv)("rect",{x:C[0]+r.stroke/4,y:"asc"===this.config.direction?C[1]+C[3]-this._headerHeight-r.stroke/2:C[1]+r.stroke/4,width:C[2]-r.stroke/2,height:this._headerHeight+r.stroke/4,stroke:y,"stroke-width":r.stroke/2,class:"treeMap-header",_key:p,onclick:function(){return h._toggleGroup(p)}}):null,L=O?(0,s.sv)("text",{x:C[0]+C[2]/2,y:"asc"===this.config.direction?C[1]+C[3]-this._headerHeight/2-r.stroke/2:C[1]+this._headerHeight/2+r.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 ".concat(C[0]+C[2]/2," ").concat(C[1]+C[3]-this._headerHeight/2-r.stroke/2,")"):""},[x?(0,l.verticalCenteredText)(x(null==v?void 0:v.toString())):(0,l.verticalCenteredText)(null==v?void 0:v.toString())]):null,A=u&&f>0&&v?(0,s.sv)("g",{},[E,L]):null,I=x?x(null==v?void 0:v.toString()):null==v?void 0:v.toString(),F=(0,l.getSizesSVGText)(I,{font:"normal 12px Roboto",lineHeight:14})[0]<C[2]-2*r.stroke,N=(0,a.uid)(),R=C[2]>2*r.stroke&&C[3]>2*r.stroke?(0,s.sv)("clipPath",{id:N,"clip-rule":"nonzero"},[(0,s.sv)("rect",{x:C[0]+r.stroke,y:C[1]+r.stroke,width:C[2]-2*r.stroke,height:C[3]-2*r.stroke,fill:"none",stroke:"black"})]):null,H=(0,s.sv)("rect",o(o({},function(t,e,n){return{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,l.roundToTwoNumAfterPoint)(n),"%)")}}(d,v,f)),{x:C[0],y:C[1],width:C[2],height:C[3],stroke:y,"stroke-width":r.stroke,class:"chart treeMap",_key:p,fill:g,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:this._maxLevel>1&&1===this._getDataLevel(p)?"":[this._handlers.onmousemove,n[e][2],this.id],onmouseleave:this._maxLevel>1&&1===this._getDataLevel(p)?"":[this._handlers.onmouseleave,n[e][2],this.id]})),W=m?(0,s.sv)("text",{x:F?M[0]:C[0]+r.stroke,y:M[1],class:"treeMap-inner-value ".concat(F?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'.concat(N,'")'),transform:"asc"===this.config.direction?"rotate(180 ".concat(M[0]," ").concat(M[1],")"):""},[(0,l.verticalCenteredText)(I)]):null;return u&&A&&(C[1]+="asc"===this.config.direction?0:this._headerHeight,C[3]-=this._headerHeight+r.stroke/4),[H,W,R,P,k,C,A]}},e.prototype._getBar=function(t,e,n,r,i,o,s){var c,l,u,h,f,d=this,p=function(t,e,n,r){for(var a={area:0,width:t.width,height:t.height},c=e;c<=n;c++)a.area+=i[c][0]*s;"rows"===r?a.width=a.area/a.height:a.height=a.area/a.width;var l="rows"===r?a.width:t.area/a.height,u="rows"===r?t.area/a.width:a.height;return(l/u>d._aspectRatio||u/l>d._aspectRatio)&&i[o][0]>.01&&n!==d._points.length-1?p(t,e,n+1,r):[l,u,a]},v=n,g=r,_=t.restWidth>t.restHeight?"cols":"rows",y="cols"===_?"rows":"cols",m="cols"===_?e/t.restHeight:t.restWidth,x="cols"===_?t.restHeight:e/t.restWidth;if((x/m>this._aspectRatio||m/x>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&o<i.length-2&&e<t.restArea){var b=void 0;if(f={id:(0,a.uid)(),area:e,width:m,height:x},c=p(f,o,o+1,y),f.width=c[0],f.height=c[1],b=c[2],m=f.width,x=f.height,(l={id:(0,a.uid)(),area:b.area,width:b.width,height:b.height,restArea:b.area,restWidth:"cols"===y?b.width-m:b.width,restHeight:"cols"===y?b.height:b.height-x})[y]=[f],b=l,f.parent=b.id,t[_]||t[y])if(t[y]){var w=(0,a.uid)();t[y].push(((u={id:w,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"===_?t.restWidth-b.width:t.restWidth,restHeight:"cols"===_?t.restHeight:t.restHeight-b.height})[_]=[b],u)),b.parent=w}else t[_].push(b),b.parent=t.id;else t[_]=[b],b.parent=t.id;"cols"===_?(t.restWidth-=b.width,g+=x):(t.restHeight-=b.height,v+=m)}else{if(f={id:(0,a.uid)(),area:e,width:m,height:x},t[y]&&t.restArea.toFixed(2)>e.toFixed(2)){w=(0,a.uid)();t[y].push(((h={id:w,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"===_?t.restWidth-m:t.restWidth,restHeight:"cols"===_?t.restHeight:t.restHeight-x})[_]=[f],h)),f.parent=w}else(t.cols||t.rows).push(f),f.parent=t.id,"cols"===_?t.restWidth-=m:t.restHeight-=x;"cols"===_?(v+=m,g=0===Math.round(t.restArea-e)?g+x:g):(g+=x,v=0===Math.round(t.restArea-e)?v+m:v)}return[[n,r,f.width,f.height],[n+f.width/2,r+f.height/2],v,g,f.parent]},e.prototype._setDefaults=function(t){this.config=o(o({},{active:!0,stroke:"#FFFFFF",strokeWidth:2,showText:!0,tooltip:!0,paddings:5,color:"none",fill:"none",direction:"desc"}),t),this._headerHeight=25,this._aspectRatio=2.5,this._valueLocator=(0,l.locator)(t.value),this._textLocator=(0,l.locator)(t.text)},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},e.prototype._getSerie=function(t,e){var n=this;return this.config.treeSeries.find((function(r){if(e){var i=n._data.getParent(t);return r.id===i||r.id===t}return r.from&&r.to&&t>=r.from&&t<r.to||r.less&&t<r.less||r.greater&&t>r.greater}))},e.prototype._getDataLevel=function(t){var e=1;return this._data.eachParent(t,(function(){e++})),e},e.prototype._getMaxLevel=function(){var t=this,e=1;return this._data.forEach((function(n){var r=t._getDataLevel(n.id);e=Math.max(r,e)})),e},e.prototype._getDeepParent=function(t){var e,n=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find((function(t){return t.restArea&&Math.round(t.restArea)>0}));return n?this._getDeepParent(n):t},e.prototype._getLayoutObj=function(t,e){var n;if(void 0===e&&(e=this._layout),e.id===t)n=e;else{var r=e.cols||e.rows;if(!r||!r.length)return;for(var i=0;i<r.length&&!(n=this._getLayoutObj(t,r[i]));i++);}return n},e.prototype._recountParentArea=function(t,e,n){var r=this._getLayoutObj(e,n);r&&r.id!==n.parent&&(r.restArea-=t,r.parent&&this._recountParentArea(t,r.parent,n))},e.prototype._toggleGroup=function(t){var e=this,n=0;this.config.treeSeries.forEach((function(t){t.active&&n++})),this._data.eachChild(this._data.getRoot(),(function(r){r.id!==t&&("groupName"===e.config.legendType?(n>1&&(e._getSerie(r.id,!0).active=!0),e._events.fire(u.ChartEvents.toggleSeries,[r.id])):(r.$hidden=!r.$hidden,e._events.fire(c.DataEvents.change)))}),!1)},e}(n(11).default);e.default=h},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0});var s=n(0),c=n(29),l=n(1),u=n(7),h=n(2),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},e.prototype.dataReady=function(){var t,e,n=this,r=[];this._years=[],this._points=[],this.config.startDate&&(t="string"==typeof this.config.startDate?(0,c.stringToDate)(this.config.startDate,this.config.dateFormat):this.config.startDate),this.config.endDate&&(e="string"==typeof this.config.endDate?(0,c.stringToDate)(this.config.endDate,this.config.dateFormat):this.config.endDate),(null==e?void 0:e.getTime())<(null==t?void 0:t.getTime())&&(0,u.dhxError)("Incorrect endDate/startDate property set, see docs: https://docs.dhtmlx.com/suite/chart/api/chart_series_config"),this._data.forEach((function(i){var o,a=Number(n._valueLocator(i)),l=n._dateLocator(i);"string"==typeof l&&(l=(0,c.stringToDate)(l,n.config.dateFormat));var u=null==l?void 0:l.getTime(),h=(null===(o=i.id)||void 0===o?void 0:o.toString())||(0,s.uid)();if(t||e){var f=c.DateHelper.dayStart(l).getTime(),d=t&&c.DateHelper.dayStart(t).getTime()||0,p=e&&c.DateHelper.dayStart(e).getTime()||1/0;if(f<d||f>p)return}var v=r.findIndex((function(t){var e=t[0],n=t[1],r=c.DateHelper.isSameDay(new Date(e),l);return r&&(a+=n),r}));v>-1&&(r[v]=[u,a,h]),a&&(n._minValue=!n._minValue||a<n._minValue?a:n._minValue,n._maxValue=!n._maxValue||a>n._maxValue?a:n._maxValue),v<0&&r.push([u,a,h])})),r.sort((function(t,e){return t[0]-e[0]})),this._minValue===this._maxValue&&(this._minValue-=10),this._maxValue=!isNaN(this.config.maxValue)&&this.config.maxValue||this._maxValue,this._minValue=!isNaN(this.config.minValue)&&this.config.minValue||this._minValue,this._maxValue=10*Math.ceil(this._maxValue/10),this._minValue=10*Math.floor(this._minValue/10);var i=t||new Date(r[0][0]),o=e||new Date(r[r.length-1][0]),a=i.getFullYear(),l=o.getFullYear();if(this.config.startDate||this.config.endDate)if(this.config.startDate&&!this.config.endDate){var h=new Date(i.getFullYear()+1,i.getMonth(),i.getDate()-1);o.getTime()>h.getTime()&&h.setFullYear(o.getFullYear()+1),e=h,l=h.getFullYear()}else!this.config.startDate&&this.config.endDate&&(t=new Date(a,0,1));else l=o.getFullYear(),t=new Date(a,0,1),e=new Date(l,11,31);for(var f=0,d=new Date(t.getTime()),p=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1);!c.DateHelper.isSameDay(d,p);){var v=r.length&&new Date(r[f][0]),g=function(){return d.setDate(d.getDate()+1)};if(r.length)if(f<r.length-1){for(;!c.DateHelper.isSameDay(d,v);)this._points.push([d.getTime(),0,(0,s.uid)()]),g();this._points.push(r[f]),f+=1}else c.DateHelper.isSameDay(d,v)?this._points.push(r[f]):this._points.push([d.getTime(),0,(0,s.uid)()]);else this._points.push([d.getTime(),0,(0,s.uid)()]);g()}for(var _=new Date,y=t.getMonth(),m=t.getDate(),x=0;x<this._points.length;x++)_.setTime(this._points[x][0]),(0===x||y===_.getMonth()&&m===_.getDate()&&x!==this._points.length-1)&&this._years.push({year:_.getFullYear(),startIndex:x});return this._points},e.prototype.paint=function(t,e){var n,r,i=this,s=this.config,u=s.days,h=s.months;switch(this.config.weekStart){case"saturday":n=-1;break;case"monday":n=1;break;default:n=0}switch(this.config.weekStart){case"saturday":r=a([null==u?void 0:u[6]],u.slice(0,-1),!0);break;case"monday":r=a(a([],u.slice(1),!0),[null==u?void 0:u[0]],!1);break;default:r=u}var f=[],d=[],p=0,v=0;this._years.forEach((function(t,e){for(var o,a=t.year,s=t.startIndex,u=new Date(a,0,1),d=[],g=[],_=0,y=1,m=s;m<i._points.length&&m!==(null===(o=i._years[e+1])||void 0===o?void 0:o.startIndex);m++){var x=i._points[m],b=x[0],w=x[1],O=x[2],D=new Date;D.setTime(b);var S=D.getMonth(),T=c.DateHelper.addDay(D,-1*n).getDay();0!==T||c.DateHelper.isSameDay(u,D)||(y+=1);var C=w>=0?w/i._maxValue||0:w/i._minValue||0;i._maxValue*i._minValue>0&&(C=(w-i._minValue)/(i._maxValue-i._minValue));var M=10+y*(i._cellSize+2),P=.5+(T+1)*(i._cellSize+2)+e*(r.length*i._cellSize+i._headerHeight);6===T&&(v=P+4*i._cellSize),d.push((0,l.sv)("rect",{x:M,y:P,fill:i.config.color,width:i._cellSize,height:i._cellSize,onclick:[i._handlers.onclick,w,O],onmousemove:[i._handlers.onmousemove,O,i.id],onmouseleave:[i._handlers.onmouseleave,O,i.id],class:i.config.color?"":"heat-neutral"},[]));var k="";if(w>=0&&!i.config.positiveColor?k="heat-positive":w<0&&!i.config.negativeColor&&(k="heat-negative"),0!==C&&d.push((0,l.sv)("rect",{x:M,y:P,fill:w>=0?i.config.positiveColor:i.config.negativeColor,"fill-opacity":isFinite(C)?C:0,width:i._cellSize,height:i._cellSize,onclick:[i._handlers.onclick,w,O],onmousemove:[i._handlers.onmousemove,O,i.id],onmouseleave:[i._handlers.onmouseleave,O,i.id],class:k},[])),_=M+i._cellSize,1===D.getDate()){var j=null==h?void 0:h[S],E=10+y*(i._cellSize+2),L=i._cellSize-2+e*(r.length*i._cellSize+i._headerHeight)+r.length*(i._cellSize+2)+4.5,A=(0,l.sv)("text",{x:E,y:L+8+12.5,class:"start-text"},[j]),I=(0,l.sv)("rect",{x:E,y:L,height:8,width:1});g.push((0,l.sv)("g",{class:"heat-month-text"},[I,A]))}}var F=r.map((function(t,n){return(0,l.sv)("text",{x:20,y:.5+(n+1)*(i._cellSize+2)+i._cellSize/2+e*(r.length*i._cellSize+i._headerHeight),class:"end-text heat-day-text"},[(0,l.sv)("tspan",{dy:"0.5ex"},[t])])})),N=(0,l.sv)("text",{x:10+i._cellSize+2,y:i._cellSize-4+e*(r.length*i._cellSize+i._headerHeight),class:"start-text heat-year-text"},[a]);f.push((0,l.sv)("g",{id:"".concat(a,"_year")},[N,g,F,d])),p=p>_?p:_}));d.push((0,l.sv)("defs",[])),d=d.concat(f);var g,_=e/v<1?e/v:1,y=(t-p*_)/2;return(0,l.sv)("g",o(o({id:"seria"+this.config.id},(g=this.config,{"aria-label":"chart ".concat(g.text||"")})),{tabindex:0,transform:"translate(".concat(y>0?y:0,", 26) scale(").concat(_,")")}),d)},e.prototype._setDefaults=function(t){this.config=o(o({},{tooltip:!0,paddings:5,weekStart:"sunday",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),t),this._headerHeight=70,this._cellSize=16,this._valueLocator=(0,h.locator)(t.value),this._dateLocator=(0,h.locator)(t.date)},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),(0,c.getFormattedDate)("%d/%m/%y",this._dateLocator(t))]},e}(n(11).default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(){this._series=[]}return t.prototype.add=function(t){this._series.push(t)},t.prototype.dataReady=function(t){return this._toPaint=this._series.filter((function(e){var n=e.dataReady(t);return!!n.length&&(t=n,!0)})),t||[]},t.prototype.getPoints=function(){return this._toPaint.length?this._toPaint[0].getPoints().concat(this._toPaint[this._toPaint.length-1].getPoints()):[]},t.prototype.paint=function(t,e,n){var i=[],o=[];return this._toPaint.forEach((function(r){if(r.paintformAndMarkers){var a=r.paintformAndMarkers(t,e,n),s=a[0],c=a[1];i.push(s),o.push(c)}else{s=r.paint(t,e,n);i.push(s)}n=r.getPoints()})),(0,r.sv)("g",i.concat(o))},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;var r=n(80),i=n(2),o=n(28),a=n(9),s=function(){function t(t){this._chart=t,this._initEvents()}return t.prototype.destructor=function(){this._tooltip&&(document.body.removeChild(this._tooltip),this._tooltip=null)},t.prototype._showLineTooltip=function(t){for(var e="",n=this._chart.getRootView(),i=0,a=0,s=t;a<s.length;a++){var c=s[a];if(i+=c.top,this._prevLine=n&&n.refs&&n.refs["line"+Math.round(c.left)]&&n.refs["line"+Math.round(c.left)].el,this._prevLine.classList.add("grid-line__active"),c.text){var l=this._chart.getSeries(c.seriaId),u=l.getPoints();if(u.length&&l.config.tooltip){var h=l.config.pointColor||(l.config.color&&"none"!==l.config.color?l.config.color:l.config.fill),f=(0,o.getShadeHTMLHelper)("empty"!==l.config.pointType&&l.config.pointType?l.config.pointType:"simpleRect",h);e+='<div class="line-point" _ref="dhx_tooltip_'.concat(l.config.id,'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">').concat(f(4,4,u[0][2]),'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_').concat(l.config.id,'_text">').concat(c.text,"</span>\n\t\t\t</div>")}}}if(e){this._tooltip||this._createTooltip();var d=document.body.offsetHeight,p=document.body.offsetWidth;this._tooltip.innerHTML=e,this._tooltip.classList.add("dhx_chart_tooltip__visible");var v=i/t.length,g=this._prevLine.getBoundingClientRect(),_=this._tooltip.offsetHeight,y=this._tooltip.offsetWidth,m=v-_/2+g.top+window.scrollY,x=g.left+10;m+_>d&&(m-=m+_-d),x+y>p&&(x=g.left-y-10);var b=(0,r.getZIndex)(this._chart.getRootNode());b&&(this._tooltip.style.zIndex=b.toString()),this._tooltip.style.left=x+"px",this._tooltip.style.top=m+"px"}},t.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var n=document.body.offsetHeight,i=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var o=this._tooltip.offsetHeight,a=this._tooltip.offsetWidth,s=e.pageY+10,c=e.pageX+10;s+o>n&&(s=e.pageY-o),c+a>i&&(c=e.pageX-a-10);var l=(0,r.getZIndex)(this._chart.getRootNode());l&&(this._tooltip.style.zIndex=l.toString()),this._tooltip.style.left=c+"px",this._tooltip.style.top=s+"px"},t.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e=this._chart.getSeries(t[4]);if(e){var n=e.getTooltipText(t[3]);if(!n)return;var i=this._chart._layers.getSizes(),o=this._chart.getRootNode().getBoundingClientRect();this._tooltip.innerHTML=n,this._tooltip.classList.add("dhx_chart_tooltip__visible");var a=document.body.offsetHeight,s=this._tooltip.offsetHeight,c=t[2]+o.top+s/2+i.top-("radar"===this._chart.config.type?10:15);c+s>a&&(c=t[2]+o.top-s/2+i.top-("radar"===this._chart.config.type?10:15)),c+s>a&&this._tooltip.classList.remove("dhx_chart_tooltip__visible");var l=(0,r.getZIndex)(this._chart.getRootNode());l&&(this._tooltip.style.zIndex=l.toString()),this._tooltip.style.left=o.left+t[1]+10+"px",this._tooltip.style.top=c+"px"}},t.prototype._createTooltip=function(){this._tooltip=document.createElement("div"),this._tooltip.setAttribute("data-dhx-widget-id",this._chart._uid),this._tooltip.classList.add("dhx_chart_tooltip","dhx_chart_tooltip_line","dhx_chart_tooltip__hidden","tooltip-text"),document.body.appendChild(this._tooltip)},t.prototype._initEvents=function(){var t=this;this._chart.events.on(a.ChartEvents.chartMouseMove,(function(e,n){if(t._prevLine&&t._prevLine.classList.remove("grid-line__active"),!t._mouseOverBar){var r=[],i=[1/0,null,null,null,null];t._chart.eachSeries((function(t){var o=t.config.type;if("line"===o||"spline"===o||"splineArea"===o||"area"===o){var a=t.getClosestVertical(e),s={value:a[4],text:t.getTooltipText(a[3]),seriaId:t.config.id,left:a[1],top:a[2]};"number"==typeof s.left&&"number"==typeof s.top&&r.push(s)}else if("pie"===o||"pie3D"===o||"donut"===o||"radar"===o){var c=t.getClosest(e,n);i[0]>c[0]&&(i[0]=c[0],i[1]=c[1],i[2]=c[2],i[3]=c[3],i[4]=t.id)}})),r.length?(r.sort((function(t,e){return e.value-t.value})),t._showLineTooltip(r)):t._showTooltipOnClosest(i)}})),this._chart.events.on(a.ChartEvents.seriaMouseMove,(function(e,n,r){t._mouseOverBar=!0;var o=t._chart.getRootView(),a=t._chart.getSeries(n),s=a.getTooltipText(e),c=o&&o.refs&&o.refs[(0,i.calcPointRef)(e,n)].el;null==c||c.setAttribute("fill-opacity",a.config.alpha>.6?a.config.alpha-.4:1),s?t._showTooltip(s,r):t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible")})),this._chart.events.on(a.ChartEvents.seriaMouseLeave,(function(e,n){t._mouseOverBar=!1;var r=t._chart.getRootView(),o=t._chart.getSeries(n);if("area"!==o.config.type&&"treeMap"!==o.config.type&&"calendarHeatMap"!==o.config.type){var a=r&&r.refs&&r.refs[(0,i.calcPointRef)(e,n)].el;null==a||a.setAttribute("fill-opacity",o.config.alpha)}t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible")})),this._chart.events.on(a.ChartEvents.chartMouseLeave,(function(){t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible"),t._prevLine&&t._prevLine.classList.remove("grid-line__active")}))},t}();e.Tooltip=s},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(81),e),i(n(82),e),i(n(83),e),i(n(84),e),i(n(20),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.message=void 0;var r=n(0),i=n(4),o=n(20),a=new WeakMap,s=new Map;function c(t,e){var n=document.createElement("div");return n.setAttribute("data-position",e),n.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),n}e.message=function(t){var e;"string"==typeof t&&(t={text:t}),t.position=t.position||o.MessageContainerPosition.topRight;var n=document.createElement("div");n.className="dhx_widget dhx_message "+(t.css||""),n.setAttribute("role","alert");var l=t.text&&(0,r.uid)();l&&n.setAttribute("aria-describedby",l),t.html?n.innerHTML=t.html:(n.innerHTML='<span class="dhx_message__text" id='.concat(l,"></span>\n\t\t").concat(t.icon?'<span class="dhx_message__icon dxi '.concat(t.icon,'"></span>'):""),n.querySelector("#".concat(l)).textContent=t.text);var u=t.node?(0,i.toNode)(t.node):document.body;"static"===getComputedStyle(u).position&&(u.style.position="relative");var h=s.get(u);h?h[t.position]||(h[t.position]={stack:[],container:c(u,t.position)}):s.set(u,((e={})[t.position]={stack:[],container:c(u,t.position)},e));var f=s.get(u)[t.position],d=f.stack,p=f.container;function v(t){void 0===t&&(t=!0),n&&(!function(t,e){e&&clearTimeout(a.get(t));var n=t.parentNode,r=n.getAttribute("data-position"),i=n.parentNode,o=s.get(i);if(o){var c=o[r];if(c){var l=c.stack,u=l.indexOf(t);-1!==u&&(n.removeChild(t),l.splice(u,1),0===l.length&&i.removeChild(n))}}}(n,t),n=null)}if(0===d.length&&u.appendChild(p),d.push(n),p.appendChild(n),t.expire){var g=setTimeout((function(){return v(!1)}),t.expire);a.set(n,g)}return n.onclick=function(){return v()},{close:function(){return v()}}}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.alert=void 0;var r=n(32),i=n(33),o=n(0);e.alert=function(e){var n=e.buttons&&e.buttons[0]?e.buttons[0]:r.default.apply,a=(0,i.blockScreen)(e.blockerCss);return new t((function(t){var r="dhx_alert__".concat((0,o.uid)(),"_content"),i="dhx_alert__".concat((0,o.uid)(),"_header"),s=document.createElement("div");s.setAttribute("role","alert"),s.setAttribute("aria-modal","true"),e.text&&s.setAttribute("aria-describedby",r),e.header&&s.setAttribute("aria-labelledby",i),s.className="dhx_widget dhx_alert "+(e.css||"");var c=function(e){"Escape"!==e.key&&"Esc"!==e.key||(l(e),t(!1))};function l(t){t.preventDefault(),a(),document.body.removeChild(s),document.removeEventListener("keydown",c)}s.innerHTML="\n\t\t\t".concat(e.header?"<div id=".concat(i,' class="dhx_alert__header"> ').concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t\t").concat(e.text?"<div id=".concat(r,' class="dhx_alert__content">').concat(!1!==e.htmlEnable?e.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(e.buttonsAlignment?"dhx_alert__footer--"+e.buttonsAlignment:"",'">\n\t\t\t\t<button type="button" aria-label="confirm" class="dhx_alert__apply-button dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">').concat(n,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(s.querySelector("#".concat(i)).textContent=e.header),e.text&&(s.querySelector("#".concat(r)).textContent=e.text)),document.body.appendChild(s),s.querySelector(".dhx_alert__apply-button").focus(),s.querySelector("button").addEventListener("click",(function(e){l(e),t(!0)})),document.addEventListener("keydown",c)}))}}).call(this,n(6))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=void 0;var r=n(32),i=n(33),o=n(0);e.confirm=function(e){e.buttonsAlignment=e.buttonsAlignment||"right";var n=e.buttons&&e.buttons[1]?e.buttons[1]:r.default.apply,a=e.buttons&&e.buttons[0]?e.buttons[0]:r.default.reject,s=(0,i.blockScreen)("dhx_alert__overlay-confirm "+(e.blockerCss||""));return new t((function(t){var r=document.createElement("div");r.setAttribute("role","alertdialog"),r.setAttribute("aria-modal","true");var i,c=e.header&&(0,o.uid)(),l=e.header&&(0,o.uid)();l&&r.setAttribute("aria-describedby",l),c&&r.setAttribute("aria-labelledby",c);var u=function(e){s(),r.removeEventListener("click",h),document.removeEventListener("keydown",f),document.body.removeChild(r),t(e)},h=function(t){"BUTTON"===t.target.tagName&&u(t.target.classList.contains("dhx_alert__confirm-aply"))},f=function(t){"Escape"===t.key||"Esc"===t.key?(r.querySelector(".dhx_alert__confirm-aply").focus(),u(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===i?(i="reject",r.querySelector(".dhx_alert__confirm-reject").focus()):(i="aply",r.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};r.className="dhx_widget dhx_alert dhx_alert--confirm"+(e.css?" "+e.css:""),r.innerHTML="\n\t\t".concat(e.header?'<div class="dhx_alert__header" id='.concat(c,"> ").concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t").concat(e.text?'<div class="dhx_alert__content" id='.concat(l,">").concat(!1!==e.htmlEnable?e.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(e.buttonsAlignment?"dhx_alert__footer--"+e.buttonsAlignment:"",'">\n\t\t\t\t<button type="button" aria-label="reject" class="dhx_alert__confirm-reject dhx_button dhx_button--view_link dhx_button--color_primary dhx_button--size_medium">').concat(a,'</button>\n\t\t\t\t<button type="button" aria-label="aply"class="dhx_alert__confirm-aply dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">').concat(n,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(r.querySelector("#".concat(c)).textContent=e.header),e.text&&(r.querySelector("#".concat(l)).textContent=e.text)),document.body.appendChild(r),i="aply",r.querySelector(".dhx_alert__confirm-aply").focus(),r.addEventListener("click",h),document.addEventListener("keydown",f)}))}}).call(this,n(6))},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.disableTooltip=e.enableTooltip=e.tooltip=e.getZIndex=e.findPosition=void 0;var i=n(4),o=n(20),a=750,s=200;function c(t,e,n,r,i,a){var s,l,u;if(void 0===i&&(i=8),void 0===a&&(a=0),a>1&&(e=o.Position.center),"top"!==e&&"bottom"!==e){var h=t.top+(t.height-r)/2,f=h<0&&window.pageYOffset+h+r<scrollY+window.innerHeight;u=window.pageYOffset+(f?0:h)}switch(e){case o.Position.center:return(l=t.left+window.pageXOffset+(t.width-n)/2)+i<window.pageXOffset&&(l=t.left+window.pageXOffset),{left:l,top:u,pos:s=o.RealPosition.center};case o.Position.right:return s=o.RealPosition.right,(l=t.right+window.pageXOffset+i)+n>window.innerWidth+window.pageXOffset?c(t,o.Position.left,n,r,i,++a):{left:l,top:u,pos:s};case o.Position.left:return s=o.RealPosition.left,(l=window.pageXOffset+t.left-n-i)<0?c(t,o.Position.right,n,r,i,++a):{left:l,top:u,pos:s};case o.Position.top:return s=o.RealPosition.top,(l=window.pageXOffset+t.left+(t.width-n)/2)+n>window.innerWidth+window.pageXOffset?l=window.innerWidth+window.pageXOffset-n:l<0&&(l=0),t.top<r?c(t,o.Position.bottom,n,r,i,++a):{left:l,top:u=window.pageYOffset+t.top-r-i,pos:s};case o.Position.bottom:default:return(l=window.pageXOffset+t.left+(t.width-n)/2)+n>window.innerWidth+window.pageXOffset?l=window.innerWidth+window.pageXOffset-n:l<0&&(l=0),s=o.RealPosition.bottom,(u=window.pageYOffset+t.bottom+i)+r>window.innerHeight+window.pageYOffset?c(t,o.Position.top,n,r,i,++a):{left:l,top:u,pos:s}}}e.findPosition=c;var l=document.createElement("div"),u=document.createElement("span");u.className="dhx_tooltip__text",l.appendChild(u),l.setAttribute("role","tooltip"),l.style.position="absolute";var h,f=null,d=!1,p=null,v=null;function g(t){return t&&(t.classList.contains("dhx_popup--window")&&t.classList.contains("dhx_popup--window_active")||t.classList.contains("dhx_popup--window_modal")||t.classList.contains("dhx_popup"))?1e7:(null==t?void 0:t.classList.contains("dhx_popup--window"))?9999999:t&&t.offsetParent?g(t.offsetParent):null}function _(t,e,n,r,i,a,s){void 0===r&&(r=""),void 0===i&&(i=!1),void 0===a&&(a=8);var h=t.getBoundingClientRect();s?u.innerHTML=e:u.textContent=e,l.style.left=null,l.style.top=null,document.body.appendChild(l),l.className="dhx_widget dhx_tooltip ".concat(i?" dhx_tooltip--forced":""," ").concat(r);var f=l.getBoundingClientRect(),p=c(h,n,f.width,f.height,a),v=p.left,_=p.top,y=p.pos,m=g(t);switch(m&&(l.style.zIndex=m.toString()),y){case o.RealPosition.bottom:case o.RealPosition.top:case o.RealPosition.left:case o.RealPosition.right:case o.RealPosition.center:l.style.left=v+"px",l.style.top=_+"px"}l.className+=" dhx_tooltip--".concat(y),d=!0,i||setTimeout((function(){l.className+=" dhx_tooltip--animate"}))}function y(t,e,n){var r=n.force,i=n.showDelay,c=n.hideDelay,u=n.position,g=n.css,y=n.htmlEnable,m=n.margin;r||(v=setTimeout((function(){_(t,e,u||o.Position.bottom,g,!1,m,y)}),i||a));var x=function(){var e;d&&(e=c,f&&(p=setTimeout((function(){document.body.removeChild(l),d=!1,p=null}),e||s))),clearTimeout(v),t.removeEventListener("mouseleave",x),t.removeEventListener("blur",x),document.removeEventListener("mousedown",x),f=null,h=null};r&&_(t,e,u,g,r,m,y),t.addEventListener("mouseleave",x),t.addEventListener("blur",x),document.addEventListener("mousedown",x),h=x}function m(t,e){var n=(0,i.toNode)(e.node);n!==f&&(h&&(h(),h=null),f=n,p?(clearTimeout(p),p=null,y(n,t,r(r({},e),{force:!0}))):y(n,t,e))}function x(t){var e=(0,i.locateNode)(t,"dhx_tooltip_text");e&&m(e.getAttribute("dhx_tooltip_text"),{position:e.getAttribute("dhx_tooltip_position")||o.Position.bottom,node:e})}e.getZIndex=g,e.tooltip=m,e.enableTooltip=function(){document.addEventListener("mousemove",x)},e.disableTooltip=function(){document.removeEventListener("mousemove",x)}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0;var i=n(4),o=function(){function t(t,e){this._name=t,this._view=e,this._version="9.2.1"}return t.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},t.prototype.png=function(t){this._rawExport(t,"png",this._view)},t.prototype._rawExport=function(t,e,n){var o;if(void 0===t&&(t={}),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e){var a=t.pdf||{};t.pdf=r(r({},a),{printBackground:!1})}var s="",c=n.config.exportStyles;("boolean"==typeof t.exportStyles||Array.isArray(t.exportStyles))&&(c=t.exportStyles),!0===c?s="".concat((0,i.getPageLinksCss)(),"<style>").concat((0,i.getPageInlineCss)(),"</style>"):(null==c?void 0:c.length)&&(s="".concat((0,i.getPageLinksCss)(c)));var l=document.createElement("div");l.setAttribute("style","display: none;");var u=n.getRootView().node.el.cloneNode(!0);u.setAttribute("data-dhx-theme",t.theme||"light"),l.appendChild(u);var h="\n\t\t\t".concat(s,"\n\t\t\t").concat(l.innerHTML,"\n\t\t"),f=document.createElement("form");f.setAttribute("method","POST"),f.setAttribute("action",t.url),f.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',f.childNodes[0].value=h,f.childNodes[1].value=JSON.stringify(t),document.body.appendChild(f),f.submit(),null===(o=l.parentNode)||void 0===o||o.removeChild(l),setTimeout((function(){var t;null===(t=f.parentNode)||void 0===t||t.removeChild(f)}),100)},t}();e.Exporter=o}])})),window.dhx_legacy){if(window.dhx)for(var key in dhx)if("i18n"===key)for(var lang in dhx[key])window.dhx_legacy[key][lang]=dhx[key][lang];else dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}
21
+ t.exports=function(){"use strict";var t=1,e=2,n=3,r=4,i=5,o="undefined"!=typeof window,a=(o?window:{}).requestAnimationFrame,s={};function c(){}var l=Array.isArray;function u(t){return null!=t}function h(t){return null!=t&&t.constructor===Object}function f(t,e,n,r){t.splice.apply(t,[n,r].concat(e))}function d(t){var e=typeof t;return"string"===e||"number"===e}function p(t){return"function"==typeof t}function v(t){return"object"==typeof t&&p(t.then)}function g(t){for(var e=arguments,n=1;n<e.length;n++)for(var r in e[n])t[r]=e[n][r];return t}function _(t,e,n){for(var r;r=e.shift();)0===e.length?t[r]=n:t[r]=t=t[r]||{}}function y(t,e){for(var n=[],r=e;r<t.length;r++)n.push(t[r]);return n}function m(t,e){for(var n in t)if(t[n]!==e[n])return!1;return!0}function x(t,e){var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function b(t){if(!a)return t;var e,n,r;function i(){e=0,t.apply(n,r)}return function(){n=this,r=arguments,e||(e=a(i))}}function w(t,e,n){return function(){return t.apply(n,e)}}function O(t){var e,n,r=t.slice(),i=[];i.push(0);for(var o=0,a=t.length;o<a;++o){var s=i[i.length-1];if(t[s]<t[o])r[o]=s,i.push(o);else{for(e=0,n=i.length-1;e<n;){var c=(e+n)/2|0;t[i[c]]<t[o]?e=c+1:n=c}t[o]<t[i[e]]&&(e>0&&(r[o]=i[e-1]),i[e]=o)}}for(n=i[(e=i.length)-1];e-- >0;)i[e]=n,n=r[n];return i}function D(t,e){var n,r=0,i=e.length-1;if(i<=2147483647)for(;r<=i;){if(e[n=r+i>>1]===t)return n;e[n]<t?r=n+1:i=n-1}else for(;r<=i;){if(e[n=Math.floor((r+i)/2)]===t)return n;e[n]<t?r=n+1:i=n-1}return r==e.length?null:r}function S(t){return"o"===t[0]&&"n"===t[1]}function T(t){return"_"===t[0]}function C(t){return"style"===t}function M(t){t&&t.el&&t.el.offsetHeight}function P(t){return null!=t.node&&null!=t.node.el}function k(t,e){switch(e){case"value":case"checked":case"selected":return!0}return!1}function j(t){for(t=t||s;null==t.vm&&t.parent;)t=t.parent;return t.vm}function E(){}var L=E.prototype={constructor:E,type:null,vm:null,key:null,ref:null,data:null,hooks:null,ns:null,el:null,tag:null,attrs:null,body:null,flags:0,_class:null,_diff:null,_dead:!1,_lis:!1,idx:null,parent:null};function A(t){var n=new E;return n.type=e,n.body=t,n}var I={},F=/\[(\w+)(?:=(\w+))?\]/g;function N(t){var e,n,r,i,o=I[t];if(null==o)for(I[t]=o={tag:(e=t.match(/^[-\w]+/))?e[0]:"div",id:(n=t.match(/#([-\w]+)/))?n[1]:null,class:(r=t.match(/\.([-\w.]+)/))?r[1].replace(/\./g," "):null,attrs:null};i=F.exec(t);)null==o.attrs&&(o.attrs={}),o.attrs[i[1]]=i[2]||"";return o}var R=1,H=2,W=4,z=8;function V(e,n,r,i){var o=new E;o.type=t,u(i)&&(o.flags=i),o.attrs=n;var a=N(e);if(o.tag=a.tag,a.id||a.class||a.attrs){var s=o.attrs||{};if(a.id&&!u(s.id)&&(s.id=a.id),a.class&&(o._class=a.class,s.class=a.class+(u(s.class)?" "+s.class:"")),a.attrs)for(var c in a.attrs)u(s[c])||(s[c]=a.attrs[c]);o.attrs=s}var l=o.attrs;return u(l)&&(u(l._key)&&(o.key=l._key),u(l._ref)&&(o.ref=l._ref),u(l._hooks)&&(o.hooks=l._hooks),u(l._data)&&(o.data=l._data),u(l._flags)&&(o.flags=l._flags),u(o.key)||(u(o.ref)?o.key=o.ref:u(l.id)?o.key=l.id:u(l.name)&&(o.key=l.name+("radio"===l.type||"checkbox"===l.type?l.value:"")))),null!=r&&(o.body=r),o}function G(t,e,n){_(t,["refs"].concat(e.split(".")),n)}function $(t){for(;t=t.parent;)t.flags|=R}function Y(t,e,n,o){if(t.type!==i&&t.type!==r){t.parent=e,t.idx=n,t.vm=o,null!=t.ref&&G(j(t),t.ref,t);var a=t.hooks,s=o&&o.hooks;(a&&(a.willRemove||a.didRemove)||s&&(s.willUnmount||s.didUnmount))&&$(t),l(t.body)&&B(t)}}function B(t){for(var n=t.body,r=0;r<n.length;r++){var i=n[r];!1===i||null==i?n.splice(r--,1):l(i)?f(n,i,r--,1):(null==i.type&&(n[r]=i=A(""+i)),i.type===e?null==i.body||""===i.body?n.splice(r--,1):r>0&&n[r-1].type===e?(n[r-1].body+=i.body,n.splice(r--,1)):Y(i,t,r,null):Y(i,t,r,null))}}var X={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,order:!0,lineClamp:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function U(t,e){return isNaN(e)||X[t]?e:e+"px"}function J(t,e){var n=(t.attrs||s).style,r=e?(e.attrs||s).style:null;if(null==n||d(n))t.el.style.cssText=n;else{for(var i in n){var o=n[i];(null==r||null!=o&&o!==r[i])&&(t.el.style[i]=U(i,o))}if(r)for(var a in r)null==n[a]&&(t.el.style[a]="")}}var q=[];function Z(t,e,n,r,i){if(null!=t){var o=n.hooks[e];if(o){if("d"!==e[0]||"i"!==e[1]||"d"!==e[2])return o(n,r);i?M(n.parent)&&o(n,r):q.push([o,n,r])}}}function K(t){var e;if(q.length)for(M(t.node);e=q.shift();)e[0](e[1],e[2])}var Q=o?document:null;function tt(t){for(;null==t._node;)t=t.parentNode;return t._node}function et(t,e){return null!=e?Q.createElementNS(e,t):Q.createElement(t)}function nt(t){return Q.createTextNode(t)}function rt(t){return Q.createComment(t)}function it(t){return t.nextSibling}function ot(t){return t.previousSibling}function at(t){var e=t.vm,n=null!=e&&Z(e.hooks,"willUnmount",e,e.data),r=Z(t.hooks,"willRemove",t);if((t.flags&R)===R&&l(t.body))for(var i=0;i<t.body.length;i++)at(t.body[i]);return n||r}function st(t,e,n){var r=e._node,i=r.vm;if(l(r.body))if((r.flags&R)===R)for(var o=0;o<r.body.length;o++)st(e,r.body[o].el);else lt(r);delete e._node,t.removeChild(e),Z(r.hooks,"didRemove",r,null,n),null!=i&&(Z(i.hooks,"didUnmount",i,i.data,n),i.node=null)}function ct(t,e){var n=e._node;if(!n._dead){var r=at(n);null!=r&&v(r)?(n._dead=!0,r.then(w(st,[t,e,!0]))):st(t,e)}}function lt(t){for(var e=t.body,n=0;n<e.length;n++){var r=e[n];delete r.el._node,null!=r.vm&&(r.vm.node=null),l(r.body)&&lt(r)}}function ut(t){var e=t.el;if(0==(t.flags&R))l(t.body)&&lt(t),e.textContent=null;else{var n=e.firstChild;do{var r=it(n);ct(e,n)}while(n=r)}}function ht(t,e,n){var r=e._node,i=null!=e.parentNode,o=e!==n&&i?null:r.vm;null!=o&&Z(o.hooks,"willMount",o,o.data),Z(r.hooks,i?"willReinsert":"willInsert",r),t.insertBefore(e,n),Z(r.hooks,i?"didReinsert":"didInsert",r),null!=o&&Z(o.hooks,"didMount",o,o.data)}function ft(t,e,n){ht(t,e,n?it(n):null)}var dt={};function pt(t){g(dt,t)}function vt(t){var e=this,n=e,r=y(arguments,1).concat(n,n.data);do{var i=e.onemit,o=i?i[t]:null;if(o){o.apply(e,r);break}}while(e=e.parent());dt[t]&&dt[t].apply(e,r)}var gt=c;function _t(t){gt=t.onevent||gt,t.onemit&&pt(t.onemit)}function yt(t,e,n){t[e]=n}function mt(t,e,n,r,i){var o=t.apply(i,e.concat([n,r,i,i.data]));i.onevent(n,r,i,i.data,e),gt.call(null,n,r,i,i.data,e),!1===o&&(n.preventDefault(),n.stopPropagation())}function xt(t){var e,n,r=tt(t.target),i=j(r),o=t.currentTarget._node.attrs["on"+t.type];if(l(o))mt(e=o[0],n=o.slice(1),t,r,i);else for(var a in o)if(t.target.matches(a)){var s=o[a];l(s)?(e=s[0],n=s.slice(1)):(e=s,n=[]),mt(e,n,t,r,i)}}function bt(t,e,n,r){if(n!==r){var i=t.el;null==n||p(n)?yt(i,e,n):null==r&&yt(i,e,xt)}}function wt(t,e,n){"."===e[0]&&(e=e.substr(1),n=!0),n?t.el[e]="":t.el.removeAttribute(e)}function Ot(t,e,n,r,i){var o=t.el;null==n?!i&&wt(t,e,!1):null!=t.ns?o.setAttribute(e,n):"class"===e?o.className=n:"id"===e||"boolean"==typeof n||r?o[e]=n:"."===e[0]?o[e.substr(1)]=n:o.setAttribute(e,n)}function Dt(t,e,n){var r=t.attrs||s,i=e.attrs||s;if(r===i);else{for(var o in r){var a=r[o],c=k(t.tag,o),l=c?t.el[o]:i[o];a===l||(C(o)?J(t,e):T(o)||(S(o)?bt(t,o,a,l):Ot(t,o,a,c,n)))}for(var o in i)!(o in r)&&!T(o)&&wt(t,o,k(t.tag,o)||S(o))}}function St(t,e,n,i){return t.type===r&&(e=t.data,n=t.key,i=t.opts,t=t.view),new Yt(t,e,n,i)}function Tt(t){for(var e=0;e<t.body.length;e++){var o=t.body[e],a=o.type;if(a<=n)ht(t.el,Ct(o));else if(a===r)a=(s=St(o.view,o.data,o.key,o.opts)._redraw(t,e,!1)).node.type,ht(t.el,Ct(s.node));else if(a===i){var s;(s=o.vm)._redraw(t,e),a=s.node.type,ht(t.el,s.node.el)}}}function Ct(r,i){return null==r.el&&(r.type===t?(r.el=i||et(r.tag,r.ns),null!=r.attrs&&Dt(r,s,!0),(r.flags&z)===z&&r.body.body(r),l(r.body)?Tt(r):null!=r.body&&""!==r.body&&(r.el.textContent=r.body)):r.type===e?r.el=i||nt(r.body):r.type===n&&(r.el=i||rt(r.body))),r.el._node=r,r.el}function Mt(t,e){return e[t.idx+1]}function Pt(t,e){return e[t.idx-1]}function kt(t){return t.parent}window.lisMove=At;var jt=1,Et=2;function Lt(t,e,n,r,i,o,a,s){return function(c,l,u,h,f,d){var p,v;if(null!=h[r]){if(null==(p=h[r]._node))return void(h[r]=t(h[r]));if(kt(p)!==c)return v=t(h[r]),null!=p.vm?p.vm.unmount(!0):ct(l,h[r]),void(h[r]=v)}if(h[i]==f)return Et;if(null==h[i].el)n(l,Ct(h[i]),h[r]),h[i]=e(h[i],u);else if(h[i].el===h[r])h[i]=e(h[i],u),h[r]=t(h[r]);else{if(d||p!==h[a])return d&&null!=h[r]?At(t,e,n,r,i,l,u,p,h):jt;v=h[r],h[r]=t(v),s(l,v,h[o]),h[o]=v}}}function At(t,e,n,r,i,o,a,s,c){if(s._lis)n(o,c[i].el,c[r]),c[i]=e(c[i],a);else{var l=D(s.idx,c.tombs);s._lis=!0;var u=t(c[r]);n(o,c[r],null!=l?a[c.tombs[l]].el:l),null==l?c.tombs.push(s.idx):c.tombs.splice(l,0,s.idx),c[r]=u}}var It=Lt(it,Mt,ht,"lftSib","lftNode","rgtSib","rgtNode",ft),Ft=Lt(ot,Pt,ft,"rgtSib","rgtNode","lftSib","lftNode",ht);function Nt(t,e){var n=e.body,r=t.el,i=t.body,o={lftNode:i[0],rgtNode:i[i.length-1],lftSib:(n[0]||s).el,rgtSib:(n[n.length-1]||s).el};t:for(;;){for(;;){var a=It(t,r,i,o,null,!1);if(a===jt)break;if(a===Et)break t}for(;;){var c=Ft(t,r,i,o,o.lftNode,!1);if(c===jt)break;if(c===Et)break t}Rt(t,r,i,o);break}}function Rt(t,e,n,r){for(var i=Array.prototype.slice.call(e.childNodes),o=[],a=0;a<i.length;a++){var s=i[a]._node;s.parent===t&&o.push(s.idx)}for(var c=O(o).map((function(t){return o[t]})),l=0;l<c.length;l++)n[c[l]]._lis=!0;for(r.tombs=c;It(t,e,n,r,null,!0)!==Et;);}function Ht(t){return t.el._node.parent!==t.parent}function Wt(t,e,n){return e[n]}function zt(t,e,n){for(;n<e.length;n++){var o=e[n];if(null!=o.vm){if(t.type===r&&o.vm.view===t.view&&o.vm.key===t.key||t.type===i&&o.vm===t.vm)return o}else if(!Ht(o)&&t.tag===o.tag&&t.type===o.type&&t.key===o.key&&(t.flags&~R)==(o.flags&~R))return o}return null}function Vt(t,e,n){return e[e._keys[t.key]]}function Gt(t,n){Z(n.hooks,"willRecycle",n,t);var r=t.el=n.el,i=n.body,o=t.body;if(r._node=t,t.type!==e||o===i){null==t.attrs&&null==n.attrs||Dt(t,n,!1);var a=l(i),s=l(o),c=(t.flags&z)===z;a?s||c?$t(t,n):o!==i&&(null!=o?r.textContent=o:ut(n)):s?(ut(n),Tt(t)):o!==i&&(r.firstChild?r.firstChild.nodeValue=o:r.textContent=o),Z(n.hooks,"didRecycle",n,t)}else r.nodeValue=o}function $t(e,o){var a=e.body,s=a.length,c=o.body,l=c.length,u=(e.flags&z)===z,h=(e.flags&H)===H,f=(e.flags&W)===W,d=!h&&e.type===t,p=!0,v=f?Vt:h||u?Wt:zt;if(f){for(var g={},_=0;_<c.length;_++)g[c[_].key]=_;c._keys=g}if(d&&0===s)return ut(o),void(u&&(e.body=[]));var y,m,x=0,b=!1,w=0;if(u)var O={key:null},D=Array(s);for(_=0;_<s;_++){if(u){var S=!1,T=null;p&&(f&&(O.key=a.key(_)),y=v(O,c,w)),null!=y?(m=y.idx,!0===(T=a.diff(_,y))?((C=y).parent=e,C.idx=_,C._lis=!1):S=!0):S=!0,S&&(Y(C=a.tpl(_),e,_),C._diff=null!=T?T:a.diff(_),null!=y&&Gt(C,y)),D[_]=C}else{var C,M=(C=a[_]).type;if(M<=n)(y=p&&v(C,c,w))&&(Gt(C,y),m=y.idx);else if(M===r){if(y=p&&v(C,c,w)){m=y.idx;var k=y.vm._update(C.data,e,_)}else k=St(C.view,C.data,C.key,C.opts)._redraw(e,_,!1);M=k.node.type}else if(M===i){var j=P(C.vm);M=(k=C.vm._update(C.data,e,_,j)).node.type}}if(!f&&null!=y&&(m===w?++w===l&&s>l&&(y=null,p=!1):b=!0,l>100&&b&&++x%10==0))for(;w<l&&Ht(c[w]);)w++}u&&(e.body=D),d&&Nt(e,o)}function Yt(t,e,n,r){var i=this;i.view=t,i.data=e,i.key=n,r&&(i.opts=r,i.config(r));var o=h(t)?t:t.call(i,i,e,n,r);p(o)?i.render=o:(i.render=o.render,i.config(o)),i._redrawAsync=b((function(t){return i.redraw(!0)})),i._updateAsync=b((function(t){return i.update(t,!0)})),i.init&&i.init.call(i,i,i.data,i.key,r)}var Bt=Yt.prototype={constructor:Yt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:c,refs:null,render:null,mount:Xt,unmount:Ut,config:function(t){var e=this;t.init&&(e.init=t.init),t.diff&&(e.diff=t.diff),t.onevent&&(e.onevent=t.onevent),t.hooks&&(e.hooks=g(e.hooks||{},t.hooks)),t.onemit&&(e.onemit=g(e.onemit||{},t.onemit))},parent:function(){return j(this.node.parent)},root:function(){for(var t=this.node;t.parent;)t=t.parent;return t.vm},redraw:function(t){var e=this;return t?e._redraw(null,null,P(e)):e._redrawAsync(),e},update:function(t,e){var n=this;return e?n._update(t,null,null,P(n)):n._updateAsync(t),n},_update:Zt,_redraw:qt,_redrawAsync:null,_updateAsync:null};function Xt(t,e){var n=this;return e?(ut({el:t,flags:0}),n._redraw(null,null,!1),t.nodeName.toLowerCase()!==n.node.tag?(Ct(n.node),ht(t.parentNode,n.node.el,t),t.parentNode.removeChild(t)):ht(t.parentNode,Ct(n.node,t),t)):(n._redraw(null,null),t&&ht(t,n.node.el)),t&&K(n),n}function Ut(t){var e=this,n=e.node;ct(n.el.parentNode,n.el),t||K(e)}function Jt(t,e,n,r){return null!=n&&(n.body[r]=e,e.idx=r,e.parent=n,e._lis=!1),t}function qt(t,e,n){var r,i,o=null==t,a=this,s=a.node&&a.node.el&&a.node.el.parentNode,c=a.node;if(null!=a.diff&&(r=a._diff,a._diff=i=a.diff(a,a.data),null!=c)){var u=l(r)?x:m;if(r===i||u(r,i))return Jt(a,c,t,e)}s&&Z(a.hooks,"willRedraw",a,a.data);var h=a.render.call(a,a,a.data,r,i);if(h===c)return Jt(a,c,t,e);if(a.refs=null,null!=a.key&&h.key!==a.key&&(h.key=a.key),a.node=h,t?(Y(h,t,e,a),t.body[e]=h):c&&c.parent?(Y(h,c.parent,c.idx,a),c.parent.body[c.idx]=h):Y(h,null,null,a),!1!==n)if(c)if(c.tag!==h.tag||c.key!==h.key){c.vm=h.vm=null;var f=c.el.parentNode,d=it(c.el);ct(f,c.el),ht(f,Ct(h),d),c.el=h.el,h.vm=a}else Gt(h,c);else Ct(h);return s&&Z(a.hooks,"didRedraw",a,a.data),o&&s&&K(a),a}function Zt(t,e,n,r){var i=this;return null!=t&&i.data!==t&&(Z(i.hooks,"willUpdate",i,t),i.data=t),i._redraw(e,n,r)}function Kt(t,e,n,r){var i,o;return null==n?h(e)?i=e:o=e:(i=e,o=n),V(t,i,o,r)}var Qt="http://www.w3.org/2000/svg";function te(t,e,n,r){var i=Kt(t,e,n,r);return i.ns=Qt,i}function ee(t){var e=new E;return e.type=n,e.body=t,e}function ne(t,e,n,r){this.view=t,this.data=e,this.key=n,this.opts=r}function re(t,e,n,r){return new ne(t,e,n,r)}function ie(t){this.vm=t}function oe(t){return new ie(t)}function ae(e){var n=new E;return n.type=t,n.el=n.key=e,n}function se(t,e){var n=t.length,r={items:t,length:n,key:function(n){return e.key(t[n],n)},diff:function(n,r){var i=e.diff(t[n],n);if(null==r)return i;var o=r._diff;return(i===o||l(o)?x(i,o):m(i,o))||i},tpl:function(n){return e.tpl(t[n],n)},map:function(t){return e.tpl=t,r},body:function(t){for(var e=Array(n),i=0;i<n;i++){var o=r.tpl(i);o._diff=r.diff(i),e[i]=o,Y(o,t,i)}t.body=e}};return r}ne.prototype={constructor:ne,type:r,view:null,data:null,key:null,opts:null},ie.prototype={constructor:ie,type:i,vm:null};var ce={config:_t,ViewModel:Yt,VNode:E,createView:St,defineElement:Kt,defineSvgElement:te,defineText:A,defineComment:ee,defineView:re,injectView:oe,injectElement:ae,lazyList:se,FIXED_BODY:H,DEEP_REMOVE:R,KEYED_LIST:W,LAZY_LIST:z};function le(t,e){ue(this,t,e)}function ue(t,e,n){if(null!=e.type){if(null!=t.vm)return;Y(e,t.parent,t.idx,null),t.parent.body[t.idx]=e,Gt(e,t),n&&M(e),K(j(e))}else{var r=Object.create(t);r.attrs=g({},t.attrs);var i=g(t.attrs,e);if(null!=t._class){var o=i.class;i.class=null!=o&&""!==o?t._class+" "+o:t._class}Dt(t,r),n&&M(t)}}function he(t,e){var n=t.body;if(l(n))for(var r=0;r<n.length;r++){var i=n[r];null!=i.vm?e.push(i.vm):he(i,e)}return e}function fe(t){var e,n,r=arguments,i=r.length;if(i>1){var o=1;h(r[1])&&(n=r[1],o=2),e=i===o+1&&(d(r[o])||l(r[o])||n&&(n._flags&z)===z)?r[o]:y(r,o)}return V(t,n,e)}function de(){var t=fe.apply(null,arguments);return t.ns=Qt,t}return L.patch=le,Bt.emit=vt,Bt.onemit=null,Bt.body=function(){return he(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=de,ce}()},function(t,e,n){"use strict";(function(t){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0;var i=n(0),o=n(3),a=n(5),s=n(0),c=function(){function e(t,e){this._parent=t,this._changes=e}return e.prototype.load=function(t,e){var n=this;if(!t.config||this._parent.events.fire(a.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then((function(t){return t?n.parse(t,e):[]})).catch((function(t){n._parent.events.fire(a.DataEvents.loadError,[t])}))},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=a.DataDriver.json),"json"!==e||(0,o.hasJsonOrArrayStructure)(t)||this._parent.events.fire(a.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=(0,o.toDataDriver)(e)).toJsonArray(t))instanceof Array)){var c=t.total_count-1,l=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach((function(t,e){var a=l+e,c=n._parent.getId(a);if((0,i.isId)(c)){var u=n._parent.getItem(c);if(u&&u.$empty){var h=t.id||u.id;(0,s.isDefined)(t.id)&&n._parent.changeId(c,h,!0),n._parent.update(h,r(r({},t),{$empty:void 0}),!0)}}else(0,o.dhxWarning)("item not found")})),this._parent.events.fire(a.DataEvents.afterLazyLoad,[l,t.length]),this._parent.events.fire(a.DataEvents.change),t;for(var u=[],h=0,f=0;h<=c;h++)h>=l&&h<=l+t.length-1?(u.push(t[f]),f++):u.push({$empty:!0});t=u}return this._parent.getInitialData()&&this._parent.removeAll(),this._parent.$parse(t),t},e.prototype.save=function(e){for(var n=this,r=this._getUniqueOrder(),i=function(r){if(r.saving||r.pending)(0,o.dhxWarning)("item is saving");else{var i=a._findPrevState(r.id);if(i&&i.saving){var s=new t((function(t,a){i.promise.then((function(){r.pending=!1,t(n._setPromise(r,e))})).catch((function(t){n._removeFromOrder(i),n._setPromise(r,e),(0,o.dhxWarning)(t),a(t)}))}));a._addToChain(s),r.pending=!0}else a._setPromise(r,e)}},a=this,s=0,c=r;s<c.length;s++){i(c[s])}r.length&&this._parent.saveData.then((function(){n._saving=!1}))},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(t,e){var n,r=this;switch(t.status){case"remove":n="delete";break;case"add":n="insert";break;default:n=t.status}return t.promise=e.save(t.obj,n),t.promise.then((function(){r._removeFromOrder(t)})).catch((function(e){t.saving=!1,t.error=!0,(0,o.dhxError)(e)})),t.saving=!0,this._saving=!0,this._addToChain(t.promise),t.promise},e.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then((function(){return t})):this._parent.saveData=t},e.prototype._findPrevState=function(t){for(var e=0,n=this._changes.order;e<n.length;e++){var r=n[e];if(r.id===t)return r}return null},e.prototype._removeFromOrder=function(t){this._changes.order=this._changes.order.filter((function(e){return!(0,o.isEqualObj)(e,t)}))},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce((function(t,e){var n=t.findIndex((function(t){return t.id===e.id})),r=n>-1?t[n]:null;return r&&!1===r.saving&&"add"===r.status?"remove"===e.status?t.splice(n,1):r.obj=e.obj:r&&!1===r.saving&&"update"===r.status?t.splice(n,1,e):t.push(e),t}),[])},e}();e.Loader=c}).call(this,n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToXML=void 0;var r=4;function i(t){return" ".repeat(t)}function o(t,e){void 0===e&&(e=r);var n=i(e)+"<item>\n";for(var a in t)Array.isArray(t[a])?(n+=i(e+r)+"<".concat(a,">\n"),n+=t[a].map((function(t){return o(t,e+2*r)})).join("\n")+"\n",n+=i(e+r)+"</".concat(a,">\n")):n+=i(e+r)+"<".concat(a,">").concat(t[a],"</").concat(a,">\n");return n+=i(e)+"</item>"}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var n='<?xml version="1.0" encoding="iso-8859-1"?>\n<'.concat(e,">"),r=0;r<t.length;r++)n+="\n"+o(t[r]);return n+"\n</".concat(e,">")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sort=void 0;var r=n(3),i=function(){function t(){}return t.prototype.sort=function(t,e){return this._sort(t,e)},t.prototype._createSorter=function(t){var e=this;t&&!t.rule&&(t.rule=function(n,i){var o,a,s=null!==(o=e._checkVal(t.as,n[t.by]))&&void 0!==o?o:"",c=null!==(a=e._checkVal(t.as,i[t.by]))&&void 0!==a?a:"";return(0,r.naturalCompare)(s.toString(),c.toString())})},t.prototype._checkVal=function(t,e){return t?t.call(this,e):e},t.prototype._sort=function(t,e){var n=this;e.forEach((function(t){return n._createSorter(t)}));var r={asc:1,desc:-1},i=t.sort((function(t,i){for(var o=0,a=e;o<a.length;o++){var s=a[o],c=s.rule.call(n,t,i)*(r[s.dir]||r.asc);if(0!==c)return c}return 0})),o=i.findIndex((function(t){return t.$groupSummary}));if(-1!==o){var a=i[o];switch(i.splice(o,1),a.$groupSummary){case"top":i.unshift(a);break;case"bottom":i.push(a)}}return i},t}();e.Sort=i},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var o=n(0),a=n(25),s=function(){function t(){this._init=[],this._groupSet=new Set,this._groupOrderFields=[]}return t.prototype.group=function(t,e,n){return void 0===n&&(n={}),(null==t?void 0:t.length)&&(null==e?void 0:e.length)&&Array.isArray(t)?(this._init=i([],e,!0),this._groupSet.clear(),this._config=this.getGroupConfig(n),this._groupOrderFields=t.map((function(t){return"string"==typeof t?t:"function"==typeof t?"":"by"in t&&"string"==typeof t.by?t.by:""})),this._group(t,e)):e||[]},t.prototype.ungroup=function(t){var e=this._init;if(this._init=[],this._groupSet.clear(),t){for(var n={},i=function(e){var r=t[e];if(r.$group)return"continue";Object.keys(r).forEach((function(t){t.startsWith("$")&&delete r[t]})),delete r.parent,n[r.id]=r},o=0;o<t.length;o++)i(o);return e.map((function(t){return r(r({},t),n[t.id])}))}return e||[]},t.prototype.isGrouped=function(){return!!this._init.length},t.prototype.getGroupedFields=function(){return this._groupOrderFields},t.prototype.getGroupConfig=function(t){var e;return t?{displayMode:t.displayMode||"column",field:t.field||"group",showMissed:null===(e=t.showMissed)||void 0===e||e}:this._config},t.prototype._group=function(t,e,n,i){var a=this;if(void 0===i&&(i=0),!(i>=t.length)){for(var s=[],c={},l=[],u="",h={},f=0;f<e.length;f++){var d=e[f],p=t[i],v="function"==typeof p||"function"==typeof(null==p?void 0:p.by),g=d[(h=this._getOrderConfig(p,d)).by],_=v?h.by:g;v||g||0===g?(this._groupSet.add(h.by),c[_]||(c[_]=[]),c[_].push(d)):(this._config.showMissed&&(delete d.parent,l.push(d)),"string"==typeof this._config.showMissed&&(u=this._config.showMissed))}var y=Object.keys(c);return u&&y.push(u),y.forEach((function(e){var u,f=c[e]||l,d=n?"".concat(n,":").concat(e):"$".concat((0,o.uid)(),":").concat(e),p={};h.map&&Object.keys(h.map).forEach((function(t){p[t]=a._toAggregate(f,h.map[t])}));var v=r(((u={id:d,$by:h.by,$group:!0,$row:"row"===a._config.displayMode,$count:f.length})[h.by]=e,u),p);"column"===a._config.displayMode&&(v[a._config.field]=e),n&&(v.parent=n),s.push(v),i<t.length-1&&s.push.apply(s,a._group(t,f,d,i+1)),i===t.length-1&&f.forEach((function(t){s.push(r(r({},t),{parent:d}))})),h.summary&&a._addSummaryRow(s,d,h.summary,p)})),u||s.push.apply(s,l),s}},t.prototype._addSummaryRow=function(t,e,n,i){var o=r({id:"".concat(e,":summary"),parent:e,$groupSummary:n},i);if("top"===n){var a=t.findIndex((function(t){return t.id===e}));t.splice(a+1,0,o)}else t.push(o)},t.prototype._toAggregate=function(t,e){if("function"==typeof e)return e(t);var n=e[0],r=e[1];return a.methods[r]?a.methods[r](t,n):""},t.prototype._getOrderConfig=function(t,e){var n={by:"string"==typeof t&&t||"string"==typeof t.by&&t.by||"function"==typeof t&&t(e)||"function"==typeof t.by&&t.by(e)};return t.map&&(n.map=t.map),t.summary&&(n.summary=t.summary),n},t}();e.Group=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TreeCollection=e.addToOrder=void 0;var s=n(0),c=n(21),l=n(8),u=n(3),h=n(5);function f(t,e,n,r){void 0!==r&&-1!==r&&t[n]&&t[n][r]?t[n].splice(r,0,e):(t[n]||(t[n]=[]),t[n].push(e))}e.addToOrder=f;var d=function(t){function e(e,n){var r,i=t.call(this,e,n)||this;i._childs={};var o=i._root=e&&e.rootId||"_ROOT_"+(0,s.uid)();return i._childs=((r={})[o]=[],r),i._initChilds=null,i}return i(e,t),e.prototype.add=function(t,e,n){var r,i=this;if(void 0===e&&(e=-1),void 0===n&&(n=this._root),this.events.fire(h.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),r=Array.isArray(t)?t.map((function(t,r){return i._add(t,e,n,r)})):this._add(t,e,n),this._reapplyFilters(),r},e.prototype.getRoot=function(){return this._root},e.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;var n=this._pull[t].parent;return e?this._pull[n]:n},e.prototype.getItems=function(t){return this._childs&&this._childs[t]?this._childs[t]:[]},e.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._childs[t]?this._childs[t].length:null},e.prototype.removeAll=function(e){var n;if((0,s.isId)(e)){if(this._childs[e])for(var r=0,i=a([],this._childs[e],!0);r<i.length;r++){var o=i[r];this.remove(o.id)}}else{t.prototype.removeAll.call(this);var c=this._root;this._initChilds=null,this._childs=((n={})[c]=[],n)}},e.prototype.update=function(e,n,r){var i=n.parent;!(0,s.isDefined)(i)||this.exists(i)||i===this._root?t.prototype.update.call(this,e,n,r):(0,u.dhxWarning)("Item parent doesn't exist")},e.prototype.getIndex=function(t){var e=this.getParent(t);return e&&this._childs[e]?this._childs[e].findIndex((function(e){return(null==e?void 0:e.id)==t})):-1},e.prototype.sort=function(t,e,n){var r,i,s=this;if(void 0===n&&(n=!1),(null==e?void 0:e.smartSorting)&&(this._sorter=t),n||this._sortingStates.length&&!(null==e?void 0:e.smartSorting)&&((null===(r=this._sortingStates[0])||void 0===r?void 0:r.smartSorting)||(null==e?void 0:e.smartSorting))||(this._sortingStates=[o(o({},t),e)]),t){if(!n&&(this._initSortOrder=this._initSortOrder||a([],this._initFilterOrder||this._order,!0),!(null==e?void 0:e.smartSorting)&&(null===(i=this._sortingStates[0])||void 0===i?void 0:i.smartSorting))){var c=this._sortingStates.findIndex((function(e){return e.by==t.by}));-1!==c?this._sortingStates[c].dir=t.dir:this._sortingStates.push(t)}this._applySorters()}else this._initSortOrder&&(this._childs={},this._order=[],this._sortingStates=[],this._initSortOrder.forEach((function(t){return s._parseItem(t)})),this._sorter=this._initSortOrder=this._initChilds=null,this._initFilterOrder&&(this._initFilterOrder=null,this.filter(null,{$restore:!0},!0)));n||(this._reapplyFilters(),this.events.fire(h.DataEvents.change,[void 0,"sort",t]))},e.prototype.filter=function(t,e,n){if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(t&&(null==e?void 0:e.add)||(this._initChilds&&(this._childs=this._initChilds,this._initChilds=null),null==e?void 0:e.$restore)))for(var r in this._filters){var i=this._filters[r],o=i.rule,a=i.config;(null==a?void 0:a.permanent)?this._applyFilter(o,a):delete this._filters[r]}var c;if(t&&!(null==e?void 0:e.$restore))c=(null==e?void 0:e.id)||(0,s.uid)(),e||(e={}),e.type=e.type||h.TreeFilterType.all,this._filters[c]={rule:t,config:e},this._applyFilter(t,e);else for(var r in t)this._applyFilter(t[r],this._filters[r].config);if(!n){var l=this._getPureFilters(this._filters);this.events.fire(h.DataEvents.filter,[(0,s.isEmptyObj)(l)?null:l])}return c},e.prototype.restoreOrder=function(){this.resetFilter({permanent:!0},!0),this.sort()},e.prototype.copy=function(t,e,n,r){var i=this;return void 0===n&&(n=this),void 0===r&&(r=this._root),t instanceof Array?t.map((function(t,o){return i._copy(t,e,n,r,o)})):this._copy(t,e,n,r)},e.prototype.move=function(t,e,n,r){var i,o=this;if(void 0===r&&(r=this._root),n=n||this,t instanceof Array){var a=[];return t.forEach((function(t,i){(0,s.isId)(o._move(t,e,n,r,i))?a.push(t):(0,u.throwMoveWarning)(t,o.exists(t))})),a}return null!==(i=this._move(t,e,n,r))&&void 0!==i?i:(0,u.throwMoveWarning)(t,this.exists(t))},e.prototype.forEach=function(t,e,n){if(void 0===e&&(e=this._root),void 0===n&&(n=1/0),this.haveItems(e)&&!(n<1))for(var r=this._childs[e],i=0;i<r.length;i++)t.call(this,r[i],i,r),this.haveItems(r[i].id)&&this.forEach(t,r[i].id,--n)},e.prototype.eachChild=function(t,e,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=function(){return!0}),this.haveItems(t))for(var i=0;i<this._childs[t].length;i++)e.call(this,this._childs[t][i],i),n&&r(this._childs[t][i])&&this.eachChild(this._childs[t][i].id,e,n,r)},e.prototype.getNearId=function(t){return t},e.prototype.loadItems=function(t,e){var n=this;if(void 0===e&&(e=h.DataDriver.json),this.events.fire(h.DataEvents.beforeItemLoad,[t])){var r=this.config.autoload.toString(),i=r+(r.includes("?")?"&id=".concat(t):"?id=".concat(t));new l.DataProxy(i).load().then((function(r){r=(e=(0,u.toDataDriver)(e)).toJsonArray(r),n._parse_data(r,t),n.events.fire(h.DataEvents.change),n.events.fire(h.DataEvents.afterItemLoad,[t])})).catch((function(t){n.events.fire(h.DataEvents.loadError,[t])}))}},e.prototype.refreshItems=function(t,e){void 0===e&&(e=h.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},e.prototype.eachParent=function(t,e,n){void 0===n&&(n=!1);var r=this.getItem(t);if(r&&(n&&e.call(this,r),r.parent!==this._root)){var i=this.getItem(r.parent);e.call(this,i),this.eachParent(r.parent,e)}},e.prototype.haveItems=function(t){return t in this._childs},e.prototype.canCopy=function(t,e){if(t===e)return!1;var n=!0;return this.eachParent(e,(function(e){return e.id===t?n=!1:null})),n},e.prototype.serialize=function(t,e){void 0===t&&(t=h.DataDriver.json);var n=this._serialize(this._root,e),r=(0,u.toDataDriver)(t);if(r)return r.serialize(n)},e.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._childs[e]&&this._childs[e][t])return this._childs[e][t].id},e.prototype.map=function(t,e,n){void 0===e&&(e=this._root),void 0===n&&(n=!0);var r=[];if(!this.haveItems(e))return r;for(var i=0;i<this._childs[e].length;i++)if(r.push(t.call(this,this._childs[e][i],i,this._childs)),n){var o=this.map(t,this._childs[e][i].id,n);r=r.concat(o)}return r},e.prototype.getRawData=function(e,n,r,i,o){var a;return o=null!=o?o:this._root,this._childs[o]?(a=o===this._root?t.prototype.getRawData.call(this,e,n,this._childs[o]):this._childs[o],2===i?this.flatten(a):a):[]},e.prototype.flatten=function(t){var e=this,n=[];return t.forEach((function(t){n.push(t);var r=e._childs[t.id];r&&t.$opened&&(n=n.concat(e.flatten(r)))})),n},e.prototype._add=function(e,n,r,i){void 0===n&&(n=-1),void 0===r&&(r=this._root),this._setParent(e,r),i>0&&-1!==n&&(n+=1);var o=t.prototype._add.call(this,e,n);if(Array.isArray(e.items))for(var a=0,s=e.items;a<s.length;a++){var c=s[a];this.add(c,-1,e.id)}return o},e.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;var n=this._pull[t.parent];n&&!n.items&&(n.items=[])},e.prototype._copy=function(t,e,n,r,i){if(void 0===n&&(n=this),void 0===r&&(r=this._root),!this.exists(t))return null;var o=this._childs[t];if(i&&(e=-1===e?-1:e+i),n===this&&!this.canCopy(t,r))return null;var a=(0,u.copyWithoutInner)(this.getItem(t),{items:!0});if(n.exists(t)&&(a.id=(0,s.uid)()),(0,u.isTreeCollection)(n)){if(this.exists(t)&&(a.parent=r,n!==this&&r===this._root&&(a.parent=n.getRoot()),n.add(a,e),t=a.id),o)for(var c=0,l=o;c<l.length;c++){var h=l[c].id,f=this.getIndex(h);this.copy(h,f,n,t)}return t}n.add(a,e)},e.prototype._move=function(t,e,n,r,i){if(void 0===n&&(n=this),void 0===r&&(r=this._root),!this.exists(t))return null;if(i&&e<this.getIndex(t)&&(e=-1===e?-1:e+i),n!==this){if(!(0,u.isTreeCollection)(n))return n.add((0,u.copyWithoutInner)(this.getItem(t)),e),void this.remove(t);var o=this.copy(t,e,n,r);return this.remove(t),o}return this.canCopy(t,r)?(this._moveItem(t,r,e),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t):null},e.prototype._moveItem=function(t,e,n){var r=this.getParent(t),i=this._initChilds||this._childs;if([this._childs,this._initChilds].forEach((function(i){if(i&&i[r]){var o=i[r].findIndex((function(e){return e.id===t}));if(-1!==o){var a=i[r].splice(o,1)[0];a.parent=e,f(i,a,e,n),i[r].length||delete i[r]}}})),r!==this._root&&r!==e){var o=this.getItem(r);i[r]?o.items=a([],i[r],!0):delete o.items}e!==this._root&&(this.getItem(e).items=a([],i[e]||[],!0))},e.prototype._reset=function(e){var n;if((0,s.isId)(null==e?void 0:e.id))for(var r=0,i=a([],this._childs[null==e?void 0:e.id],!0);r<i.length;r++){var o=i[r];this.remove(o.id)}else{t.prototype._reset.call(this,e);var c=this._root;this._initChilds=null,this._childs=((n={})[c]=[],n)}},e.prototype._removeCore=function(t){if(this._pull[t]){var e=this.getParent(t);this._childs[e]=this._childs[e].filter((function(e){return e.id!==t})),e===this._root||this._childs[e].length||delete this._childs[e],this._initChilds&&this._initChilds[e]&&(this._initChilds[e]=this._initChilds[e].filter((function(e){return e.id!==t})),e===this._root||this._initChilds[e].length||delete this._initChilds[e]),this._fastDeleteChilds(this._childs,t),this._initChilds&&this._fastDeleteChilds(this._initChilds,t)}},e.prototype._addToOrder=function(e,n,r){var i=this._childs,o=this._initChilds,a=n.parent;this._pull[n.id]=n,n.parent&&this._pull[n.parent]&&this._pull[n.parent].items&&!this._pull[n.parent].items.find((function(t){return t.id===n.id}))&&this._pull[n.parent].items.push(n),t.prototype._addToOrder.call(this,e,n,r),f(i,n,a,r),o&&f(o,n,a,r)},e.prototype._parse_data=function(t,e){var n,r,i;void 0===e&&(e=this._root);for(var o=0,a=t;o<a.length;o++){var c=a[o];this.config.init&&(c=this.config.init(c)),c&&"object"!=typeof c&&(c={value:c}),c.id=null!==(n=c.id)&&void 0!==n?n:(0,s.uid)(),c.parent=c.parent&&!(null===(i=null===(r=c.parent)||void 0===r?void 0:r.toString())||void 0===i?void 0:i.includes("_ROOT_"))?c.parent:e,this._pull[c.id]&&(0,u.dhxError)("Item ".concat(c.id," already exist")),this._parseItem(c),c.items&&c.items instanceof Object&&this._parse_data(c.items,c.id)}},e.prototype._parseItem=function(t){this._pull[t.id]=t,this._order[this._order.length]=t,this._childs[t.parent]||(this._childs[t.parent]=[]),this._childs[t.parent].push(t)},e.prototype._fastDeleteChilds=function(t,e){var n,r;if(this._pull[e]&&((null===(n=this._initFilterOrder)||void 0===n?void 0:n.length)&&(this._initFilterOrder=this._initFilterOrder.filter((function(t){return t.id!==e}))),(null===(r=this._initSortOrder)||void 0===r?void 0:r.length)&&(this._initSortOrder=this._initSortOrder.filter((function(t){return t.id!==e}))),this._order=this._order.filter((function(t){return t.id!==e})),delete this._pull[e]),t[e]){for(var i=0;i<t[e].length;i++)this._fastDeleteChilds(t,t[e][i].id);delete t[e]}},e.prototype._recursiveFilter=function(t,e,n,r,i){var o=this,a=this._childs[n];if(a){var s=function(t){switch(e.type){case h.TreeFilterType.all:return!0;case h.TreeFilterType.level:return r===e.level;case h.TreeFilterType.leafs:return!o.haveItems(t.id)}};if("function"==typeof t){var c=function(e){return s(e)&&t(e)};(l=a.filter(c)).length?i[n]=l:n===this._root&&(i[n]=[])}else{var l;c=function(e){var n,r=!0;for(var i in t)if(t[i].by&&""!==t[i].match&&(r=t[i].compare?t[i].compare(e[t[i].by],t[i].match,e):-1!==(null===(n=e[t[i].by])||void 0===n?void 0:n.toString().toLocaleLowerCase().indexOf(t[i].match.toString().toLowerCase()))),!r)break;return s(e)&&r};(l=a.filter(c)).length?i[n]=l:n===this._root&&(i[n]=[])}for(var u=0,f=a;u<f.length;u++){var d=f[u];this._recursiveFilter(t,e,d.id,r+1,i)}}},e.prototype._serialize=function(t,e){var n=this;return void 0===t&&(t=this._root),this.map((function(t){var r={};for(var i in t)"parent"===i||"items"===i||i.startsWith("$")||(r[i]=t[i]);return e&&(r=e(r)),n.haveItems(t.id)&&(r.items=n._serialize(t.id,e)),r}),t,!1)},e.prototype._applyFilter=function(t,e){var n=this;if(t&&("function"==typeof t||!(0,s.isEmptyObj)(t))){if(!this._checkFilterRule(t))throw new Error("Invalid filter rule");var r;this._initFilterOrder||(this._initFilterOrder=this._order),this._initChilds||(this._initChilds=this._childs);var i={};if("function"!=typeof t)if(r={},(0,s.isDefined)(t.by))r[t.by]=t;else for(var o in t)r[o]=t[o];else r=t;this._recursiveFilter(r,e,this._root,0,i),Object.keys(i).forEach((function(t){for(var e=n.getParent(t),r=n.getItem(t);e;)i[e]||(i[e]=[]),r&&!i[e].find((function(t){return t.id===r.id}))&&i[e].push(r),r=n.getItem(e),e=n.getParent(e)})),this._childs=i}},e.prototype._normalizeFilters=function(t){var e={};for(var n in t)e[n]=t[n].rule;return e},e.prototype._checkFilterRule=function(e){var n=this;return t.prototype._checkFilterRule.call(this,e)||Object.values(e).every((function(e){return"function"!=typeof e&&t.prototype._checkFilterRule.call(n,e)}))},e.prototype._applySorters=function(){for(var t in this._childs)this._sort.sort(this._childs[t],this._sortingStates);if(this._initChilds&&Object.keys(this._initChilds).length)for(var t in this._initChilds)this._sort.sort(this._initChilds[t],this._sortingStates)},e}(c.DataCollection);e.TreeCollection=d},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.dragManager=void 0;var o=n(4),a=n(53),s=n(5),c=n(3),l=n(0);var u=function(t){var e;return null===(e=t.name)||void 0===e?void 0:e.includes("grid")},h=function(t){return u(t)&&t.hasOwnProperty("scrollView")},f=function(){function t(){var t=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._lastTargetItemState=null,this._lastOverItemId=null,this._onMouseMove=function(e){var n,r;if(t._transferData.start){var i=(0,o.getElementFromPoint)(e),a=(0,o.locate)(i,"data-dhx-drop-area"),s="common"===a,c=e.targetTouches?e.targetTouches[0].pageX:e.pageX,l=e.targetTouches?e.targetTouches[0].pageY:e.pageY;"column"===t._transferData.type&&"group"===a&&(t._transferData.type="group",t._transferData.isWasColumn=!0),"group"===t._transferData.type&&"column"===a&&t._transferData.isWasColumn&&!t._transferData.groupOnly&&(t._transferData.type="column");var u=(0,o.locate)(i),h=null!==(r=null===(n=t._transferData.component.data.getItem(u))||void 0===n?void 0:n.id)&&void 0!==r?r:u;if(a===t._transferData.type||s){var f=t._transferData,d=f.x,p=f.y,v=f.start,g=f.componentId;if(!t._transferData.ghost){if(Math.abs(d-c)<3&&Math.abs(p-l)<3)return;var _=t._onDragStart(v,e);if(!_)return void t._endDrop(e);t._transferData.ghost=_,document.body.appendChild(t._transferData.ghost)}var y=(0,o.locate)(i,"data-dhx-widget-id");"column"!==a&&"group"!==a||y!==g?t._onDrag(e):h!==t._lastOverItemId&&(t._lastOverItemId=h,t._onDrag(e))}else t._canMove&&t.cancelCanDrop(e);t._notAllowedDropArea(a!==t._transferData.type&&!s||!t._transferData.groupable&&"group"===a||t._transferData.groupOnly&&"group"!==a&&!s&&t._transferData.start!=h),t._moveGhost(c,l)}},this._onMouseUp=function(e){t._transferData.x&&(t._transferData.ghost?(t._removeGhost(),t._onDrop(e)):t._endDrop(e),e.targetTouches?(document.removeEventListener("touchmove",t._onMouseMove),document.removeEventListener("touchend",t._onMouseUp)):(document.removeEventListener("mousemove",t._onMouseMove),document.removeEventListener("mouseup",t._onMouseUp)))}}return t.prototype.setItem=function(t,e){a.collectionStore.setItem(t,e)},t.prototype.onMouseDown=function(t){var e,n,r=t.event,s=t.itemsForGhost,c=t.ghost,l=t.source,h=t.type,f=t.groupable,d=t.groupOnly;if(1===r.which||r.targetTouches){r.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp));var p=(0,o.getElementFromPoint)(r),v=(0,o.locateNode)(p,"data-dhx-id"),g=(0,o.locateNode)(p,"data-dhx-widget-id"),_=null==g?void 0:g.getAttribute("data-dhx-widget-id"),y=a.collectionStore.getItem(_),m=v&&v.getAttribute("data-dhx-id"),x=v&&(null!==(n=null===(e=y.data.getItem(m))||void 0===e?void 0:e.id)&&void 0!==n?n:m);if(c&&(this._ghost=c),Array.isArray(l)&&l.includes(x)?(this._transferData.source=i([],l,!0),this._itemsForGhost=s):(this._transferData.source=[x],this._itemsForGhost=null),x&&_){var b=(0,o.getBox)(v),w=u(y)?(0,o.getBox)(g).left:b.left,O=r.targetTouches?r.targetTouches[0].pageX:r.pageX,D=r.targetTouches?r.targetTouches[0].pageY:r.pageY;this._transferData.initXOffset="row"===h?O-w:0,this._transferData.initYOffset="row"===h?D-b.top:0,this._transferData.x=O,this._transferData.y=D,this._transferData.componentId=_,this._transferData.component=y,this._transferData.start=x,this._transferData.item=v,this._transferData.type=h,this._transferData.groupable=f,this._transferData.groupOnly=d}}},t.prototype.isDrag=function(){return this._isDrag},t.prototype.cancelCanDrop=function(t){this._canMove=!1;var e=this._transferData,n=e.start,r=e.source,i=e.target,o=e.dropComponentId,c={start:n,source:r,target:i,dragItem:e.type},l=a.collectionStore.getItem(o);l&&i&&l.events.fire(s.DragEvents.cancelDrop,[c,t,this._transferData.type]),this._transferData.dropComponentId=null,this._transferData.target=null},t.prototype._moveGhost=function(t,e){this._transferData.ghost&&(this._transferData.ghost.style.left=t-this._transferData.initXOffset+"px",this._transferData.ghost.style.top=e-this._transferData.initYOffset+"px")},t.prototype._removeGhost=function(){this._ghost=null,document.body.removeChild(this._transferData.ghost)},t.prototype._onDrop=function(t){if(this._canMove){var e=this._transferData,n=e.start,r=e.source,i=e.target,c=e.dropComponentId,l=e.dropPosition,u={start:n,source:r,target:i,dropPosition:l},h=a.collectionStore.getItem(c),f=h&&h.config,d=this._transferData.componentId==(0,o.locate)((0,o.getElementFromPoint)(t),"data-dhx-widget-id");if(!h||"source"===f.dragMode||d&&r.find((function(t){return t==i})))this._endDrop(t);else{if(h.events.fire(s.DragEvents.beforeDrop,[u,t,this._transferData.type])){var p={id:i,component:h},v={id:n,component:this._transferData.component,newId:null};"group"!==this._transferData.type&&this._move(v,p),v.newId&&v.component!==p.component&&(u.start=v.newId),p.component.events.fire(s.DragEvents.afterDrop,[u,t,this._transferData.type])}this._endDrop(t)}}else this._endDrop(t)},t.prototype._onDragStart=function(t,e){var n=this._transferData.component.config,r=this._transferData,i={start:r.start,source:r.source,target:r.target};if("target"===n.dragMode||this._transferData.component._pregroupData)return null;var o="row"===this._transferData.type?function(t,e,n){void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=document.createElement("div"),o=t.cloneNode(!0),a=window.getComputedStyle(t.parentElement).fontSize;return o.style.width=r.width+"px",o.style.height=r.height+"px",o.style.maxHeight=r.height+"px",o.style.opacity="0.8",o.style.fontSize=a,n&&e&&e.length||i.appendChild(o),e&&e.length&&e.forEach((function(t,e){var o=t.cloneNode(!0);o.style.getPropertyPriority("width")||(o.style.width=r.width+"px"),o.style.height=r.height+"px",o.style.maxHeight=r.height+"px",o.style.top=12*(e+1)-r.height-r.height*e+"px",o.style.left=12*(e+1)+"px",o.style.opacity="0.6",o.style.zIndex="".concat(-e-1),n||(o.style.fontSize=a,o.style.overflow="hidden"),i.appendChild(o)})),i.className="dhx_drag-ghost",i}(this._transferData.item,this._itemsForGhost,u(this._transferData.component)):this._ghost;return this._transferData.component.events.fire(s.DragEvents.beforeDrag,[i,e,o,this._transferData.type])&&(0,l.isId)(t)?(this._transferData.component.events.fire(s.DragEvents.dragStart,[i,e,this._transferData.type]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.dragConfig=n,o):null},t.prototype._onDrag=function(t){var e,n,r=(0,o.getElementFromPoint)(t),i=(0,o.locate)(r,"data-dhx-widget-id"),l=a.collectionStore.getItem(i);if(l){var u=!!(0,o.locateNodeByClassName)(r,"dhx_grid-header")||!!(0,o.locateNodeByClassName)(r,"dhx_grid-footer"),h=l.config.columns?l.config:void 0,f=h&&("both"===h.dragItem||"column"===h.dragItem);if(!u||f){var d=(0,o.locate)(r,"data-dhx-id"),p=(0,o.locate)(r,"data-dhx-root-id"),v=this._transferData,g=v.dropComponentId,_=v.start,y=v.source,m=v.target,x=v.componentId,b=function(t){var e=t.targetTouches?t.targetTouches[0].clientY:t.clientY,n=(0,o.locateNode)((0,o.getElementFromPoint)(t));if(!n)return null;var r=n.childNodes[0];if(1===(null==r?void 0:r.nodeType)){var i=r.getBoundingClientRect();return(e-i.top)/i.height}}(t);if("group"!==this._transferData.type){if(!d&&!p)return this.cancelCanDrop(t),this._transferData.dropComponentId=i,this._transferData.target=null,void this._canDrop(t);if(this._transferData.dropPosition=b<=.5?"top":"bottom","complex"!==l.config.dropBehaviour||l.config.group||(this._transferData.dropPosition=b<=.25?"top":b>=.75?"bottom":"in"),((null===(e=this._lastTargetItemState)||void 0===e?void 0:e.id)===d&&(null===(n=this._lastTargetItemState)||void 0===n?void 0:n.dropPosition)===this._transferData.dropPosition||!d&&m===p)&&g===i)return}var w={id:_,component:this._transferData.component};if("source"!==l.config.dragMode)if(w.component.events.fire(s.DragEvents.dragOut,[{start:_,source:y,target:m},t,this._transferData.type]),i!==x||!(0,c.isTreeCollection)(w.component.data)||(0,c.isTreeCollection)(w.component.data)&&w.component.data.canCopy(w.id,d)){this.cancelCanDrop(t);var O=this._transferData.target=d||p;this._transferData.dropComponentId=i,this._lastTargetItemState={id:d,dropPosition:this._transferData.dropPosition},w.component.events.fire(s.DragEvents.dragIn,[{start:_,source:y,target:O,dropPosition:this._transferData.dropPosition},t,this._transferData.type])&&this._canDrop(t)}else this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},t.prototype._move=function(t,e){var n,o=t.component,a=e.component,s=t.component.data,f=e.component.data,d=0,p=e.id,v=(0,c.isTreeCollection)(f),g=v&&e.component.config.dropBehaviour||null,_=o._uid===a._uid,y=t.component.config.columns?t.component.config:void 0,m="column"===this._transferData.type&&(null===(n=null==y?void 0:y.columns)||void 0===n?void 0:n.map((function(t){return t.id})).filter((function(n){return n===t.id||n===e.id})).length);if(m&&t.component===e.component){if(t.id===e.id)return;var x=(b=o.config.columns.map((function(t){return r({},t)}))).findIndex((function(e){return e.id===t.id}));if(-1===(D=b.findIndex((function(t){return t.id===e.id}))))return;return b.splice(D,0,b.splice(x,1)[0]),o.setColumns(b),void o.paint()}if(m&&t.component&&h(t.component)&&e.component&&h(e.component)){x=(b=o.config.columns.map((function(t){return r({},t)}))).findIndex((function(e){return e.id===t.id}));var b,w=a.config.columns.map((function(t){return r({},t)})),O=a.data.getLength(),D=w.findIndex((function(t){return t.id===e.id})),S=[],T=t.id;o.data.forEach((function(e){var n;S.push(((n={id:e.id})[T]=e[t.id],n))})),O?o.data.forEach((function(t,e){var n=a.data.getItem(t.id);n?a.data.update(n.id,r(r({},n),S[e])):a.data.add(S[e])})):a.data.parse(S);var C=b.splice(x,1)[0];return w.find((function(t){return t.id===T}))||w.splice(D,0,C),a.setColumns(w),a.paint(),o.setColumns(b),void o.paint()}var M=e.id===a.config.rootParent;switch(g){case"child":break;case"sibling":p=f.getParent(p),d=f.getIndex(e.id)+1;break;case"complex":var P=this._transferData.dropPosition;if(M)p=e.id,d=f.getLength();else{var k=f.getItem(t.id),j=f.getItem(e.id);if(!j)return;var E=f.getIndex(t.id),L=f.getIndex(e.id),A=(null==k?void 0:k.$level)||0,I=(null==j?void 0:j.$level)||0;"top"===P?(p=f.getParent(p),d=A===I?L-(-1===E||E>L?0:1):L):"bottom"===P&&(p=f.getParent(p),d=A===I?L+(-1===E||E>L?1:0):L+1)}break;default:if((0,l.isId)(e.id)){f.getIndex(t.id)>-1&&(t.newId=(0,l.uid)());P=this._transferData.dropPosition,E=f.getIndex(t.id),L=f.getIndex(e.id);d="top"===P?L-(-1===E||E>L?0:1):"bottom"===P?L+(-1===E||E>L?1:0):f.getIndex(e.id)}else d=-1}if(this._transferData.dragConfig.dragCopy)this._transferData.source instanceof Array&&this._transferData.source.length>1?this._transferData.source.map((function(t){s.copy(t,d,f,p),d>-1&&d++})):s.copy(t.id,d,f,p);else if(this._transferData.source instanceof Array&&this._transferData.source.length>1)s.move(this._transferData.source,d,f,p);else if(u(a)&&!a.config.columns.length){var F=o.data.getItem(t.id);a.data.parse([r({},F)]),a.setColumns(i([],o.config.columns,!0)),a.paint(),o.data.remove(t.id),o.paint()}else s.move(t.id,d,f,p,t.newId);_||this._transferData.source.forEach((function(t){delete f.getItem(t).$draggable,v&&(null==f?void 0:f.haveItems(t))&&f.eachChild(t,(function(t){delete t.$draggable}))}))},t.prototype._endDrop=function(t){if(this._toggleTextSelection(!1),this._notAllowedDropArea(!1),this._transferData.component){var e=this._transferData,n={start:e.start,source:e.source,target:e.target};this._transferData.component.events.fire(s.DragEvents.afterDrag,[n,t,this._transferData.type])}this.cancelCanDrop(t),this._canMove=!0,this._isDrag=!1,this._lastOverItemId=null,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null,this._lastTargetItemState=null},t.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,n={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},r=a.collectionStore.getItem(this._transferData.dropComponentId);r&&this._transferData.target&&r.events.fire(s.DragEvents.canDrop,[n,t,this._transferData.type])},t.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},t.prototype._notAllowedDropArea=function(t){t?document.body.classList.contains("dhx_drop-area--not-allowed")||document.body.classList.add("dhx_drop-area--not-allowed"):document.body.classList.remove("dhx_drop-area--not-allowed")},t}(),d=window.dhxHelpers=window.dhxHelpers||{};d.dragManager=d.dragManager||new f,e.dragManager=d.dragManager},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collectionStore=e.CollectionStore=void 0;var r=n(0),i=function(){function t(){this._store={}}return t.prototype.setItem=function(t,e){this._store[t]=e},t.prototype.getItem=function(t){return(0,r.isId)(t)&&this._store[t]?this._store[t]:null},t}();e.CollectionStore=i;var o=window.dhxHelpers=window.dhxHelpers||{};o.collectionStore=o.collectionStore||new i,e.collectionStore=o.collectionStore},function(t,e,n){"use strict";(function(t){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.LazyDataProxy=void 0;var o=n(8),a=n(0),s=n(14),c=function(e){function n(t,n){var r=e.call(this,t)||this;return r.config=(0,a.extend)({from:0,limit:50,delay:50,prepare:0},n),r.updateUrl(t,{from:r.config.from,limit:r.config.limit}),r}return i(n,e),n.prototype.load=function(){var e=this;return new t((function(t,n){e._timeout?(clearTimeout(e._timeout),e._timeout=setTimeout((function(){s.ajax.get(e.url,{responseType:"text"}).then(t).catch(n),e._cooling=!0}),e.config.delay),e._cooling&&(t(null),e._cooling=!1)):(s.ajax.get(e.url,{responseType:"text"}).then(t).catch(n),e._cooling=!0,e._timeout=setTimeout((function(){})))}))},n}(o.DataProxy);e.LazyDataProxy=c}).call(this,n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var r=n(13),i=n(56),o=n(5),a=n(0),s=function(){function t(t,e,n){var i=this;this.events=n||new r.EventSystem(this),this.config=t,this._data=e,this._selected=null,this._data.events.on(o.DataEvents.removeAll,(function(){i._selected=null})),this._data.events.on(o.DataEvents.change,(function(){if((0,a.isId)(i._selected)){var t=i._data.getNearId(i._selected);t!==i._selected&&(i._selected=null,t&&i.add(t))}}))}return t.prototype.getId=function(){return this._selected},t.prototype.getItem=function(){return(0,a.isId)(this._selected)?this._data.getItem(this._selected):null},t.prototype.remove=function(t){return t=null!=t?t:this._selected,!(0,a.isDefined)(t)||!!this.events.fire(i.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(i.SelectionEvents.afterUnSelect,[t]),!0)},t.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},t.prototype.enable=function(){this.config.disabled=!1},t.prototype.disable=function(){this.remove(),this.config.disabled=!0},t.prototype._addSingle=function(t){this.events.fire(i.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(i.SelectionEvents.afterSelect,[t]))},t}();e.Selection=s},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionEvents=void 0,function(t){t.beforeUnSelect="beforeunselect",t.afterUnSelect="afterunselect",t.beforeSelect="beforeselect",t.afterSelect="afterselect"}(r||(e.SelectionEvents=r={}))},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0;var a=n(1),s=n(13),c=n(58),l=n(7),u=n(59),h=n(61),f=n(9),d=n(63),p=n(67),v=n(78),g=n(2),_=n(79),y=n(0),m=n(85),x=function(t){function e(e,n){void 0===n&&(n={});var r,i=this;(i=t.call(this,null,n)||this)._width=0,i._height=0,i._left=0,i._top=0;var c={};n.maxPoints&&(c.approximate={value:null===(r=n.series)||void 0===r?void 0:r.map((function(t){return t.value})),maxNum:n.maxPoints}),Array.isArray(n.data)?(i.events=new s.EventSystem(i),i.data="treeMap"===n.type?new l.TreeCollection(c,i.events):new l.DataCollection(c,i.events),i.data.parse(n.data)):n.data&&n.data.events?(i.data=n.data,i.events=i.data.events,i.events.context=i):(i.events=new s.EventSystem(i),i.data="treeMap"===n.type?new l.TreeCollection(c,i.events):new l.DataCollection(c,i.events)),i._globalHTMLHandlers={onmousemove:function(t){var e=i._layers.getSizes(),n=e.left,r=e.top,o=e.bottom,a=e.right,s=t.pageX,c=t.pageY,l=i.getRootView().node.el.getBoundingClientRect();i._left=l.left+window.pageXOffset,i._top=l.top+window.pageYOffset;var u=s-n-i._left,h=c-r-i._top;u>=0&&u<=i._width-a-n&&h>=0&&h<=i._height-o-r?i.events.fire(f.ChartEvents.chartMouseMove,[u,h,i._left+n,i._top+r]):i.events.fire(f.ChartEvents.chartMouseLeave)},onmouseleave:function(){return i.events.fire(f.ChartEvents.chartMouseLeave)}},i._layers=new u.ComposeLayer,i.setConfig(n),i._initEvents(),i._tooltip=new _.Tooltip(i);var h=(0,a.create)({render:function(){if(!i.data.getLength())return(0,a.el)("div");var t=function(t){var e=i._scales,n=t.series,r=t.type;r||(r=n&&n.length&&n[0]&&n[0].type||"");var o="".concat(r||""," chart."),a=function(t){return t._isXDirection?"X":"Y"},s=function(t){return t.title||t.text||t.value||""},c=function(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0},l=function(t){return t.steps&&t.steps.length?t.steps[t.steps.length-1]:t.max||t.maxPoints||"max"},u=function(t,e){return e[t]};return e&&Object.keys(e).forEach((function(t){var n=e[t],r=n._axis||n.config;if("radial"===t){var i=n._data._order;o+=" X scale ".concat(s(n.config),": ").concat(t," axis from ").concat(u(n.config.value,i[0])," to ").concat(u(n.config.value,i[i.length-1]),"."),o+=" ".concat(a(n)," scale: axis from ").concat(c(r)," to ").concat(l(r),".")}else o+=" ".concat(a(n)," scale ").concat(s(n.config),": ").concat(t," axis from ").concat(c(r)," to ").concat(l(r),".")})),n&&n.length&&(o+=" Series:",n.forEach((function(t,e){o+=" ".concat("pie"===r||"pie3D"===r||"donut"===r?t.text:t.value),o+=e===n.length-1?".":","}))),o},e=[(0,a.resizer)((function(t,e){i._width=t,i._height=e||400;var n=i.getRootView();if(n&&n.node&&n.node.el){var r=n.node.el.getBoundingClientRect();i._left=r.left+window.pageXOffset,i._top=r.top+window.pageYOffset}i.events.fire(f.ChartEvents.resize,[i._width,i._height]),i.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&i._tooltip&&i._tooltip.destructor()}))];return i._width&&i._height&&e.push(i._layers.toVDOM(i._width,i._height)),(0,a.el)(".dhx_widget.dhx_chart",o(o({class:n.css?n.css:"",onmousemove:i._globalHTMLHandlers.onmousemove,onmouseleave:i._globalHTMLHandlers.onmouseleave},function(e){return{"aria-label":t(e)}}(n)),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(i._width=t.node.parent.el.offsetWidth,i._height=t.node.parent.el.offsetHeight||400,i.paint())}}});return i.mount(e,h),i.export=new m.Exporter("chart",i),i}return i(e,t),e.prototype.getSeries=function(t){return this._series[t]},e.prototype.eachSeries=function(t){var e=[];for(var n in this._series)e.push(t.call(this,this._series[n]));return e},e.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},e.prototype.setConfig=function(t){var e,n,r=this;if("calendarHeatMap"===t.type)throw new TypeError("The calendarHeatMap chart type is a pro functionality");if(this.config=t,this._layers.clear(),this._series={},this._scales={},t.scales)for(var i in t.scales){var a=o({},t.scales[i]);void 0!==t.scales[i].min&&(n=t.scales[i].min),a.type=a.type||this._detectScaleType(a,i),t.scales.radial&&"radial"!==i&&(a.hidden=!0),this._setScale(a,i)}var s=new v.default;if(this._layers.add(s),null===(e=t.series)||void 0===e||e.forEach((function(e,i){var a,c,l,u;void 0!==e.baseLine&&e.baseLine<n&&(e.baseLine=void 0);var h=o({},e);switch(h.type=h.type||t.type,h.type){case"bar":case"xbar":case"area":case"splineArea":h.color||(h.color=h.fill||(0,g.getDefaultColor)(i)),h.fill||(h.fill=h.color||(0,g.getDefaultColor)(i));break;case"treeMap":h.legendType=(null===(a=t.legend)||void 0===a?void 0:a.type)||"groupName",null===(l=null===(c=t.legend)||void 0===c?void 0:c.treeSeries)||void 0===l||l.map((function(t,e){var n,r;t.active=null===(n=t.active)||void 0===n||n,t.id=null!==(r=t.id)&&void 0!==r?r:(0,y.uid)(),t.color||(t.color=(0,g.getDefaultColor)(e,"range"===h.legendType))})),h.treeSeries=null===(u=t.legend)||void 0===u?void 0:u.treeSeries;break;case"scatter":h.pointColor||(h.pointColor=h.color||(0,g.getDefaultColor)(i))}var f=p.default[h.type];(h.barWidth||r.config.barWidth)&&(h.barWidth=h.barWidth||r.config.barWidth);var d=new f(r.data,h,r.events),v=(0,g.getScales)(t.scales);(v.length>1&&"radial"!==v[0]||"radial"===v[0]?v:["bottom","left"]).forEach((function(t){var e=r._scales[t];e&&(d.addScale(t,e),h.stacked?e.add(s):e.add(d))})),r._series[d.id]=d,h.stacked?s.add(d):r._layers.add(d)})),t.legend){var c=o({},t.legend);c.series&&(c.$seriesInfo=c.series.map((function(t){return r._series[t]})));var l=new h.Legend(this.data,c,this.events);this._layers.add(l)}this.paint()},e.prototype._setScale=function(t,e){if(t.type){var n=new d.default[t.type](this.data,t,e);"radial"!==n.config.type&&this._layers.add(n.scaleGrid()),this._layers.add(n),this._scales[e]=n}},e.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},e.prototype._initEvents=function(){var t=this;this.events.on(f.ChartEvents.toggleSeries,(function(e,n){if("treeMap"===t.config.type)Object.values(t._series)[0].toggle(e),t.paint();else if(n){var r=t._series[Object.keys(t._series)[0]];r&&(r.toggle(e),t.paint())}else t._series[e]&&(t._series[e].toggle(),t.paint())}),this),this.events.on(l.DataEvents.change,(function(){return t.paint()})),this.events.on(l.DataEvents.filter,(function(){return t.paint()}))},e}(c.View);e.Chart=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toViewLike=e.View=void 0;var r=n(0),i=n(4),o=function(){function t(t,e){var n;this.config=e||{},this._uid=null!==(n=this.config.rootId)&&void 0!==n?n:(0,r.uid)()}return t.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=(0,i.toNode)(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},t.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(this.getRootNode()&&t.unmount(),this._view=null)},t.prototype.getRootView=function(){return this._view},t.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},t.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},t}();e.View=o,e.toViewLike=function(t){return{getRootView:function(){return t},paint:function(){return t.node&&t.redraw()},mount:function(e){return t.mount(e)}}}},function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ComposeLayer=void 0;var i=n(1),o=n(60),a=function(){function t(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}return t.prototype.add=function(t){this._data.push(t)},t.prototype.clear=function(){this._data.forEach((function(t){return t.destructor&&t.destructor()})),this._data=[]},t.prototype.getSizes=function(){return this._sizes},t.prototype.toVDOM=function(t,e){var n={left:20,right:20,top:10,bottom:10},a=this._data.filter((function(t){return!t.dataReady||t.dataReady().length}));this._data.forEach((function(t){return!t.scaleReady||t.scaleReady(n)}));var s=0,c=0;a.forEach((function(t){t.seriesShift&&(s+=t.seriesShift(),c++)}));var l=s/c;s=c?(l-s)/2:0,a.forEach((function(t){t.seriesShift&&(t.seriesShift(s),s+=l)})),this._sizes=n;var u=t-n.left-n.right,h=e-n.top-n.bottom,f=(0,i.sv)("g",{transform:"translate(".concat(n.left,", ").concat(n.top,")")},r([(0,i.sv)("rect.dhx_chart-graph_area",{width:u>0?u:0,height:h>0?h:0,fill:"transparent"})],a.map((function(r){return r.paint(t-(n.left+n.right),e-(n.top+n.bottom))})),!0)),d=(0,i.sv)("defs",[(0,o.dropShadow)(),(0,o.shadow)()]);return(0,i.sv)("svg",{width:t,height:e,role:"graphics-document"},[d,f])},t}();e.ComposeLayer=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dropShadow=e.shadow=void 0;var r=n(1);e.shadow=function(){return(0,r.sv)("filter",{id:"shadow"},[(0,r.sv)("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[(0,r.sv)("feDistantLight",{azimuth:90,elevation:25})]),(0,r.sv)("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])};e.dropShadow=function(){return(0,r.sv)("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[(0,r.sv)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),(0,r.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,r.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,r.sv)("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),(0,r.sv)("feComposite",{in2:"offsetblur",operator:"in"}),(0,r.sv)("feMerge",[(0,r.sv)("feMergeNode"),(0,r.sv)("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Legend=void 0;var i=n(7),o=n(9),a=n(1),s=n(2),c=n(62),l=n(0);var u=function(){function t(t,e,n){var a=this;this._data=t,this._events=n;this.config=r(r({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,n,r){switch(e){case"middle":switch(t){case"right":return n?20:60;case"left":return 120;case"center":throw new Error("cant place legend on center, middle")}case"top":return 20;case"bottom":return n||"line"===r?20:60}}(this.config.halign,this.config.valign,(0,i.isTreeCollection)(this._data),this.config.form),this._handlers={onclick:function(t,e){return a._events.fire(o.ChartEvents.toggleSeries,[t,e])},onkeyup:function(t,e,n){n.preventDefault(),"Enter"!==n.key&&" "!==n.key||a._events.fire(o.ChartEvents.toggleSeries,[t,e])}}}return t.prototype.scaleReady=function(t){var e="column"===this.config.direction&&("left"===this.config.halign||"right"===this.config.halign);switch(this.config.valign){case"middle":"right"===this.config.halign?t.right+=this.config.size>=0?this.config.size:200:"left"===this.config.halign&&(t.left+=this.config.size>=0?this.config.size:200);break;case"top":e?t[this.config.halign]+=this.config.size>=0?this.config.size:200:t.top+=this.config.size>=0?this.config.size:40;break;case"bottom":e?t[this.config.halign]+=this.config.size>=0?this.config.size:200:t.bottom+=this.config.size>=0?this.config.size:40}},t.prototype.paint=function(t,e){var n,i,o=this,l=this._getData(),u=this.config;u.$sizes={width:0,height:0};var h=(0,s.getFontStyle)("legend-text"),f=10,d=u.margin,p=u.itemPadding,v=[],g="middle"===u.valign,_=0,y=0,m=0,x=0;switch(l.forEach((function(e,n){if(!g&&"row"===u.direction){var i=(0,s.getTextWidth)(e.text,h);_+i+15>t&&0!==n&&(_=0,y+=p+2)}v.push((0,a.sv)("g",r(r({transform:"translate(".concat(_,",").concat(y,")"),onclick:[o._handlers.onclick,e.id,o.config.values],onkeyup:[o._handlers.onkeyup,e.id,o.config.values],class:"legend-item ".concat(e.active?"":"not-active")},function(t){return{role:"button","aria-label":t.active?"Hide chart ".concat(t.text):"Show chart ".concat(t.text)}}(e)),{tabindex:0}),[(0,a.sv)("text",{x:e.maxValue?0:10,y:0,class:"start-text legend-text"},[(0,s.verticalCenteredText)(e.text)]),[(0,c.legendShape)(u.form,e),!isNaN(e.maxValue)&&!isNaN(e.minValue)&&(0,c.legendTicks)(u.form,e)]]));var l="line"!==u.form?15+(0,s.getTextWidth)(e.text,h):0;g||"row"!==u.direction?(_=0,m=m>l?m:l,x=x>(y+=p+2)?x:y):m=m>(_+=l+p)?m:_})),u.valign){case"top":i="row"===u.direction?-d-y-5-("line"===u.form?15:0):"center"===u.halign?5-x:d+5;break;case"middle":i=(e-x)/2+p/2;break;case"bottom":i="row"===u.direction?e+("line"!==u.form?d:10):e+f-("center"===u.halign?0:d+x)}switch(u.halign){case"left":n=g?-m:5-("row"===u.direction?0:u.size||200);break;case"center":n=(t-m-("line"===u.form?500:0))/2;break;case"right":n=g?t+d+5:"row"===u.direction?t-m+p+("line"===u.form?-500-d:5):t+d+5}return(0,a.sv)("g",{transform:"translate(".concat(n>0?n:0,", ").concat(i,")"),"aria-label":"Legend",tabindex:0},v)},t.prototype._getData=function(){var t=[];if("scale"===this.config.type){var e=this.config.values,n=e.color,r=e.positiveColor,i=e.negativeColor,o=e.text,a=e.minValue,c=e.maxValue,u=e.tick,h=e.majorTick,f=e.step,d=e.tickTemplate,p=this.setCriticals(),v=p[0],g=p[1];t.push({id:(0,l.uid)(),text:o,alpha:1,fill:n,minValue:null!=a?a:v,maxValue:null!=c?c:g,positiveColor:r,negativeColor:i,active:!0,tick:u,majorTick:h,step:f,tickTemplate:d})}else if(this.config.values){var _=(0,s.locator)(this.config.values.text),y=(0,s.locator)(this.config.values.color);this._data.map((function(e,n){t.push({id:e.id,text:_(e).toString(),alpha:1,fill:y(e).toString()||(0,s.getDefaultColor)(n),active:!e.$hidden})}))}else if(this.config.treeSeries){var m=this.config.treeSeries;if("groupName"===this.config.type)m.forEach((function(e){t.push({id:e.id,text:e.name||e.id,alpha:1,fill:e.color,active:e.active})}));else{var x=function(t){return t.from&&t.to?"".concat(t.from," - ").concat(t.to):t.less?"<= ".concat(t.less):t.greater?">= ".concat(t.greater):void 0};m.forEach((function(e){t.push({id:e.id,text:x(e),alpha:1,fill:e.color,active:e.active})}))}}else for(var b=0,w=m=this.config.$seriesInfo;b<w.length;b++){var O=w[b],D=O.config,S=D.fill,T=(n=D.color,D.id),C=D.alpha,M=D.active,P=D.label,k=D.value,j=S&&n;o=P&&"function"==typeof P?P(O.config):P||k;t.push({id:T,text:o,fill:S||n,color:j&&n,active:M,alpha:C})}return t},t.prototype.setCriticals=function(){var t,e,n=this.config.values.value;return this._data.forEach((function(r){r[n]&&(t=!t||r[n]<t?r[n]:t,e=!e||r[n]>e?r[n]:e)})),e=10*Math.ceil(e/10),(t=10*Math.floor(t/10))===e&&(t-=10),[t,e]},t}();e.Legend=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legendTicks=e.legendShape=void 0;var r=n(0),i=n(1),o=16,a=500,s={circle:function(t,e,n){return(0,i.sv)("circle",{id:(0,r.uid)(),r:5,fill:e,class:"figure ".concat("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":n,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,n){return(0,i.sv)("rect",{id:(0,r.uid)(),fill:e,"fill-opacity":n,width:10,"stroke-width":2,height:10,class:"figure ".concat("none"!==t?"with-stroke":""),stroke:t,transform:"translate(".concat(-5,", ").concat(-5,")")})},line:function(t,e,n,s){var c=function(t,e,n){return(0,i.sv)("stop",{offset:"".concat(e,"%"),"stop-color":t,class:t?"":n})},l="lg"+(0,r.uid)(),u=(0,i.sv)("linearGradient",{id:l},[c(t[1],0,"heat-negative"),c(e,s,"heat-neutral"),c(t[0],100,"heat-positive")]),h=(0,i.sv)("rect",{id:(0,r.uid)(),y:o,fill:"url(#".concat(l,")"),"fill-opacity":n,width:a,"stroke-width":2,height:o,class:"figure figure-line",stroke:t});return(0,i.sv)("g",{id:(0,r.uid)(),width:a,height:o},[u,h])}};e.legendShape=function(t,e){var n;return"string"==typeof t&&(n=s[t]),n("line"===t?[e.positiveColor,e.negativeColor]:e.color||"none",e.fill,e.alpha||1,"line"===t&&e.minValue<0?100*Math.abs(e.minValue)/(e.maxValue-e.minValue):0)},e.legendTicks=function(t,e){if("line"===t&&!isNaN(e.maxValue)&&!isNaN(e.minValue)){for(var n=e.maxValue,r=e.minValue,s=e.step,c=e.tick,l=e.majorTick,u=e.tickTemplate,h=c||10,f=(n-r)/h,d=[],p=0;p<=Math.ceil(f/(s||1));p++){var v=0===p?r:(r+h*(s||1)*p).toFixed();d.push(v>n?n:v)}return d=d.map((function(t,e,n){var r=(e%(l||1)==0||e===n.length-1)&&(0,i.sv)("text",{x:e===n.length-1?499.5:e*a/f*(s||1)-.5,y:34},u?u(t):t),c=(0,i.sv)("rect",{x:e===n.length-1?499.5:e*a/f*(s||1)-.5,y:18,width:1,height:4});return(0,i.sv)("g",{transform:"translate(0, ".concat(o,")"),class:"legend-tick"},[r,c])})),d}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(64),i=n(16),o=n(66),a={radial:r.RadialScale,text:o.TextScale,numeric:i.Scale};e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.RadialScale=void 0;var o=n(10),a=function(t){function e(e,n){return t.call(this,e,n,"radial")||this}return i(e,t),e.prototype.paint=function(t,e){var n=this;if(this.config.hidden)return null;var r=this.config.zebra,i=this.config.value,a=this.config.showAxis?this._axis.steps:null,s=this._axis.steps.map((function(t){return n.point(t)})),c={scales:this._data.map((function(t){return t[i]})),axis:s,realAxis:a,zebra:r,attribute:i};return(0,o.radarScale)(c,t,e)},e.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},e}(n(16).Scale);e.RadialScale=a},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisCreator=void 0;var o=n(2),a=n(0),s=[1,2,3,5,10],c=function(){function t(t,e){void 0===e&&(e={}),this._data=t;for(var n=[],i=0,o=this._data;i<o.length;i++){var s=o[i];"number"==typeof s&&n.push(s),"string"!=typeof s||isNaN(parseFloat(s))||n.push(parseFloat(s))}var c={min:Math.min.apply(Math,n),max:Math.max.apply(Math,n),maxTicks:this._data.length<20?this._data.length:20};if(this.config=r(r({},c),e),"radial"!==this.config.type&&!(0,a.isDefined)(e.min)){var l=this.config.min,u=l-this._getStep();(l>0&&u>=0||l<0)&&(this.config.min=u)}this.config.padding&&this._addPadding()}return t.prototype.getScale=function(){var t=this.config.log?this._logSteps():this._calculateSteps(this._getStep());return{min:t[0],max:t[t.length-1],steps:t}},t.prototype._getStep=function(){var t=this.config.maxTicks,e=this.config.max-this.config.min,n=Math.floor((0,o.log10)(e/t)),r=Math.pow(10,n)||1,a=e/r/t;return s[i(i([],s,!0),[a],!1).sort((function(t,e){return t-e})).indexOf(a)]*r},t.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),n=Math.ceil(this.config.max/t),r=[],i="radial"===this.config.type?e-1:e;i<=n;i++){var o=t*i;Math.floor(o)!==o&&(o=parseFloat(o.toFixed(8))),r.push(o)}return r},t.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil((0,o.log10)(-this.config.min));e>0;e--)t.push(-Math.pow(10,e));t.push(0)}if(this.config.max>0){var n=Math.ceil((0,o.log10)(this.config.max));for(e=0;e<=n;e++)t.push(Math.pow(10,e))}return t},t.prototype._addPadding=function(){this.config.min-=this.config.padding},t}();e.AxisCreator=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TextScale=void 0;var a=n(2),s=n(16),c=n(26),l={left:c.left,right:c.right,bottom:c.bottom,top:c.top},u={left:c.leftGrid,right:c.rightGrid,bottom:c.bottomGrid,top:c.topGrid},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.scaleReady=function(t){var e=this._data.getLength()-1,n=this._data.map(this.locator);this._axis={max:e,steps:n},t[this._position]+=this.config.size},e.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var n=this._axis.max+1,r=.5/n,i=e/n;return this._isXDirection?r+i:1-r-i}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},e.prototype.paint=function(t,e){var n=this;if(this.config.hidden)return null;var r=this._axis.steps.map((function(r,i){return[n._isXDirection?n._getAxisPoint(i)*t:n.point(r)*e,r]}));return l[this._position](r,this.config,t,e)},e.prototype.scaleGrid=function(){var t=this,e=this._position,n=this.config.grid,r=this.config.dashed,i=this.config.hidden;return{paint:function(o,a){var s=t._axis.steps.indexOf(t.config.targetLine),c=function(e,n){return t._axis.steps.map((function(r,i){return[t._isXDirection?t._getAxisPoint(i)*e:t._getAxisPoint(i)*n,r]}))}(o,a),l={targetLine:s,dashed:r,grid:n,hidden:i};return u[e](c,o,a,l)}}},e.prototype._setDefaults=function(t){this.locator=(0,a.locator)(t.text),this.config=o(o({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},e.prototype._getAxisPoint=function(t){var e=this._axis.max;if(this._padding){var n=e+1,r=.5/n,i=t/n;return this._isXDirection?r+i:1-r-i}return this._isXDirection?t/e:1-t/e},e}(s.Scale);e.TextScale=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27),i=n(30),o=n(68),a=n(69),s=n(19),c=n(70),l=n(71),u=n(72),h=n(73),f=n(74),d=n(75),p=n(76),v=n(77),g={line:s.default,spline:f.default,area:r.default,splineArea:d.default,scatter:h.default,pie:c.default,pie3D:l.default,donut:a.default,radar:u.default,bar:i.default,xbar:o.default,treeMap:p.default,calendarHeatMap:v.default};e.default=g},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addScale=function(e,n){var r="top"===e||"bottom"===e?"left":"top";t.prototype.addScale.call(this,r,n)},e.prototype.paint=function(e,n,r){return t.prototype.paint.call(this,n,e,r)},e.prototype.getTooltipType=function(t,e,n){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},e.prototype.getClosest=function(t,e){for(var n=[1/0,null,null,null],r=0,i=this._points;r<i.length;r++){var o=i[r],a=this._getClosestDist(t,e,o[1],o[0]);n[0]>a&&(n[0]=a,n[1]=o[1],n[2]=o[0],n[3]=o[2])}return n},e.prototype._getText=function(t){return t[4].toString()},e.prototype._getClosestDist=function(t,e,n,r){return this.config.stacked&&t>n?1/0:Math.abs(e-r)},e.prototype._path=function(t,e){return t[0]+=this._shift,"\nM ".concat(e," ").concat(t[0]-this.config.barWidth/2,"\nH ").concat(t[1],"\nv ").concat(this.config.barWidth,"\nH ").concat(e)},e.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:0},e.prototype._text=function(t,e,n){var r=(e+t[1])/2,i=t[0];return{x:r,y:i,class:"bar-text",transform:n&&!isNaN(n)?"rotate(".concat(n," ").concat(r," ").concat(i,")"):""}},e}(n(30).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n(10),c=n(2),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(t,e){var n,r=this,i=function(t,e,n){return void 0===n&&(n=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,c.roundToTwoNumAfterPoint)(n),"%)")}},l=this.config,u=l.stroke,h=l.strokeWidth,f=l.useLines,d=l.subType,p=l.valueTemplate,v=!h||h<1?4:h>15?15:h;n=e>t?t/2:e/2;var g,_=-.25,y=[],m=[],x=[];return this._points.length>1&&u&&y.push((0,a.sv)("circle",{cx:0,cy:0,r:n-.5,fill:u})),this._points.forEach((function(l,h){var g,b,w,O=[],D=l[0],S=l[1],T=l[2],C=l[3],M=l[4],P=0===D||1===D?-1e-6:0,k=(0,s.getCoordinates)(_,n,n,r._points.length>1&&u?v/2:null),j=k[0],E=k[1],L=_+D/2;_+=D+P;var A=(0,s.getCoordinates)(_,n,n,r._points.length>1&&u?-v/2:null),I=A[0],F=A[1],N=D>.5?1:0,R=(0,s.getCoordinates)(L,n,n),H=L>-.25&&L<.25,W=L>.5||L<0,z=L<.25?5:-5,V=[5,30],G=V[0],$=V[1],Y=[(0,s.getCoordinates)(L,n+G,n+G),(0,s.getCoordinates)(L,n+$,n+$)],B=Y[0],X=Y[1],U="function"==typeof p?p(D):Math.round(100*D)+"%";switch(r.config.subType){case"basic":var J=H?"donut-value-title start-text":"donut-value-title end-text",q=W?-20:10,Z=(0,s.getCoordinates)(L,n+10,n+10),K=H?"donut-value start-text":"donut-value end-text",Q={text1:{x:f?X[0]:Z[0],y:(f?X[1]:Z[1])+q,width:0,height:0,class:""},text2:{x:f?X[0]:Z[0],y:(f?X[1]:Z[1])+q+16,width:0,height:0,class:""},changeSector:!1,line:z,right:H,dy:q},tt=(0,a.sv)("text",o(o({x:f?X[0]:Z[0],y:(f?X[1]:Z[1])+q,class:J},i(S,C,D)),{tabindex:0}),[(0,c.verticalCenteredText)(C.toString())]),et=(0,a.sv)("text",{x:f?X[0]:Z[0],y:(f?X[1]:Z[1])+q+16,class:K,"aria-hidden":"true"},[(0,c.verticalCenteredText)(S.toString())]);g=(0,c.getSizesSVGText)(C.toString(),{font:"normal 14px Roboto",lineHeight:14}),Q.text1.width=g[0],Q.text1.height=g[1],b=(0,c.getSizesSVGText)(S.toString(),{font:"normal 12px Roboto",lineHeight:12}),Q.text2.width=b[0],Q.text2.height=b[1];var nt=f?n+$:n+10;0!==m.length&&(H?(m.forEach((function(t){(0,c.checkPositions)(Q.text1,t.text1,nt,nt,Q),(0,c.checkPositions)(Q.text1,t.text2,nt,nt,Q)})),Q.text1.class&&(Q.text2.class=Q.text1.class)):(m.forEach((function(t){(0,c.checkPositions)(Q.text2,t.text2,nt,nt,Q),(0,c.checkPositions)(Q.text2,t.text1,nt,nt,Q)})),Q.text2.class&&(Q.text1.class=Q.text2.class)),tt.attrs.x=Q.text1.x,tt.attrs.y=Q.text1.y,et.attrs.x=Q.text2.x,et.attrs.y=Q.text2.y,(Q.text1.class||Q.text2.class)&&(tt.attrs.class=Q.text1.class,et.attrs.class=Q.text2.class),z=Q.line,f?(X[0]=Q.text1.x,X[1]=Q.text1.y-q):(Z[0]=Q.text1.x,Z[1]=Q.text1.y-q)),m.push(Q);var rt=(0,a.sv)("text",o({x:7*R[0]/9,y:7*R[1]/9,class:"pie-inner-value"},i(S,C,D)),[(0,c.verticalCenteredText)(U)]);O.push((0,a.sv)("g",{id:"".concat(T,"-text"),class:"chart donut"},[tt,et])),O.push(rt);break;case"valueOnly":var it=(0,a.sv)("text",o(o({x:7*R[0]/9,y:7*R[1]/9,class:"pie-inner-value"},i(S,C,D)),{tabindex:0}),[(0,c.verticalCenteredText)("".concat(S))]);O.push(it);break;case"percentOnly":var ot=(0,a.sv)("text",o(o({x:7*R[0]/9,y:7*R[1]/9,class:"pie-inner-value"},i(S,C,D)),{tabindex:0}),[(0,c.verticalCenteredText)(U)]);O.push(ot)}if(f&&"basic"===d){q=W?3:0;O.push((0,a.sv)("path",{d:"M".concat(B[0]," ").concat(B[1]," L").concat(X[0],"\n\t\t\t\t\t\t\t").concat(X[1]+q," h ").concat(z),id:"".concat(T,"-connector"),class:"pie-value-connector chart donut"}))}var at=0,st=0,ct=v/(2*Math.sin(Math.PI/r._points.length));r._points.length>1&&u&&(at=(w=(0,s.getCoordinates)(L,ct,ct))[0],st=w[1]);var lt="M ".concat(j," ").concat(E," A ").concat(n," ").concat(n," 0 ").concat(N," 1 ").concat(I," ").concat(F,"\n\t\t\t\tL ").concat(0+at," ").concat(0+st),ut=(0,s.getCoordinates)(L,4,4),ht=ut[0],ft=ut[1],dt=(0,a.sv)("path",{d:lt,_key:T,fill:M||(0,c.getDefaultColor)(h),class:"chart donut",onclick:[r._handlers.onclick,l[1],l[2]],onmouseout:[s.pieLikeHandlers.onmouseout],onmouseover:[s.pieLikeHandlers.onmouseover,ht,ft],role:"presentation"});O.unshift(dt),y.push((0,a.sv)("g",{id:T},O)),1===r._points.length?x.push([t/2,e/2]):x.push([.8*R[0]+t/2,.8*R[1]+e/2])})),this._center=[t/2,e/2],this._tooltipData=x,(y=y.concat([])).push((0,a.sv)("circle",{cx:0,cy:0,r:5*n/9,fill:"#FFFFFF",role:"presentation"})),(0,a.sv)("g",o(o({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(g=this.config,{"aria-label":"chart ".concat(g.text||"")})),{tabindex:0}),y)},e}(n(18).default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=n(1),c=n(10),l=n(2),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(t,e){var n,r=this,i=this.config,u=i.stroke,h=i.strokeWidth,f=i.gradient,d=i.useLines,p=i.showText,v=i.showTextTemplate,g=i.subType,_=i.valueTemplate,y=!h||h<1?4:h>15?15:h;n=e>t?t/2:e/2;var m,x=-.25,b=[],w=[],O=[],D=[],S=[];return this._points.length>1&&u&&O.push((0,s.sv)("circle",{cx:0,cy:0,r:n-.5,fill:u})),this._points.forEach((function(i,h){var m,O,T,C=[],M=i[0],P=i[1],k=i[2],j=i[3],E=i[4],L=0===M||1===M?-1e-6:0,A=E||(0,l.getDefaultColor)(h);if(f){var I=f(E),F="gradient"+(0,a.uid)(),N=(0,l.getRadialGradient)(I.options,I.stops,F);A="url(#".concat(F,")"),D.push(N)}var R=(0,c.getCoordinates)(x,n,n,r._points.length>1&&u?y/2:null),H=R[0],W=R[1],z=x+M/2,V=z<.25?5:-5,G=(0,c.getCoordinates)(z,n,n);x+=M+L;var $=(0,c.getCoordinates)(x,n,n,r._points.length>1&&u?-y/2:null),Y=$[0],B=$[1],X=M>.5?1:0,U=[5,30],J=U[0],q=U[1],Z=[(0,c.getCoordinates)(z,n+J,n+J),(0,c.getCoordinates)(z,n+q,n+q)],K=Z[0],Q=Z[1],tt=z>-.25&&z<.25,et=z>.5||z<0,nt=z>-.25&&z<.25?"pie-value start-text":"pie-value end-text";if((p||v)&&!1!==p){var rt=(0,s.sv)("text",{x:.7*G[0],y:.7*G[1],class:"pie-inner-value","aria-hidden":"true"},[v?(0,l.verticalCenteredText)(v(P.toString())):(0,l.verticalCenteredText)(P.toString())]);C.push(rt)}var it="function"==typeof _?_(M):Math.round(100*M)+"%";switch(r.config.subType){case"basic":var ot=et?-20:10,at=(0,c.getCoordinates)(z,n+10,n+10),st=tt?"donut-value start-text":"donut-value end-text",ct={text1:{x:d?Q[0]:at[0],y:(d?Q[1]:at[1])+ot,width:0,height:0,class:""},text2:{x:d?Q[0]:at[0],y:(d?Q[1]:at[1])+ot+16,width:0,height:0,class:""},changeSector:!1,line:V,right:tt,dy:ot},lt=(0,s.sv)("text",o({x:d?Q[0]:at[0],y:(d?Q[1]:at[1])+ot,class:nt},function(t,e,n){return{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,l.roundToTwoNumAfterPoint)(n),"%)")}}(P,j,M)),[(0,l.verticalCenteredText)(j.toString())]),ut=(0,s.sv)("text",{x:d?Q[0]:at[0],y:(d?Q[1]:at[1])+ot+16,class:st,"aria-hidden":"true"},[(0,l.verticalCenteredText)(P.toString())]);m=(0,l.getSizesSVGText)(j.toString(),{font:"normal 14px Roboto",lineHeight:14}),ct.text1.width=m[0],ct.text1.height=m[1],O=(0,l.getSizesSVGText)(P.toString(),{font:"normal 12px Roboto",lineHeight:12}),ct.text2.width=O[0],ct.text2.height=O[1];var ht=d?n+q:n+10;0!==b.length&&(tt?(b.forEach((function(t){(0,l.checkPositions)(ct.text1,t.text1,ht,ht,ct),(0,l.checkPositions)(ct.text1,t.text2,ht,ht,ct)})),ct.text1.class&&(ct.text2.class=ct.text1.class)):(b.forEach((function(t){(0,l.checkPositions)(ct.text2,t.text2,ht,ht,ct),(0,l.checkPositions)(ct.text2,t.text1,ht,ht,ct)})),ct.text2.class&&(ct.text1.class=ct.text2.class)),lt.attrs.x=ct.text1.x,lt.attrs.y=ct.text1.y,ut.attrs.x=ct.text2.x,ut.attrs.y=ct.text2.y,(ct.text1.class||ct.text2.class)&&(lt.attrs.class=ct.text1.class,ut.attrs.class=ct.text2.class),V=ct.line,d?(Q[0]=ct.text1.x,Q[1]=ct.text1.y-ot):(at[0]=ct.text1.x,at[1]=ct.text1.y-ot)),b.push(ct);var ft=(0,s.sv)("text",{x:.5*G[0],y:.5*G[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(it)]);C.push((0,s.sv)("g",{id:"".concat(k,"-text"),class:"chart donut"},[lt,ut])),C.push(ft);break;case"valueOnly":var dt=(0,s.sv)("text",{x:.5*G[0],y:.5*G[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)("".concat(P))]);C.push(dt);break;case"percentOnly":var pt=(0,s.sv)("text",{x:.5*G[0],y:.5*G[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(it)]);C.push(pt)}if(d&&"basic"===g){ot=et?3:0;C.push((0,s.sv)("path",{d:"M".concat(K[0]," ").concat(K[1]," L").concat(Q[0],"\n\t\t\t\t\t\t\t").concat(Q[1]+ot," h ").concat(V),id:"".concat(k,"-connector"),class:"pie-value-connector chart pie"}))}var vt=0,gt=0,_t=y/(2*Math.sin(Math.PI/r._points.length));r._points.length>1&&u&&(vt=(T=(0,c.getCoordinates)(z,_t,_t))[0],gt=T[1]);var yt="M ".concat(H," ").concat(W," A ").concat(n," ").concat(n," 0 ").concat(X," 1 ").concat(Y," ").concat(B,"\n\t\t\t\tL ").concat(0+vt," ").concat(0+gt),mt=(0,c.getCoordinates)(z,4,4),xt=mt[0],bt=mt[1],wt=(0,s.sv)("path",{d:yt,class:"chart pie",_key:k,fill:A,onclick:[r._handlers.onclick,i[1],i[2]],onmouseover:[c.pieLikeHandlers.onmouseover,xt,bt],onmouseout:[c.pieLikeHandlers.onmouseout],role:"presentation"});C.unshift(wt),S.push((0,s.sv)("g",{id:k},C)),1===r._points.length?w.push([t/2,e/2]):w.push([.7*G[0]+t/2,.7*G[1]+e/2])})),this._center=[t/2,e/2],this._tooltipData=w,O.push((0,s.sv)("defs",D)),O=(O=O.concat(S)).concat([]),(0,s.sv)("g",o(o({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(m=this.config,{"aria-label":"chart ".concat(m.text||"")})),{tabindex:0}),O)},e}(n(18).default);e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n(10),c=n(2),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(t,e){var n,r,i=this,l=this.config,u=l.subType,h=l.useLines,f=l.showText,d=l.showTextTemplate,p=l.valueTemplate,v=.5*(n=e>t?t/2:e/2),g=n/5,_=[],y=-.25,m=[],x=[],b=[];return this._points.forEach((function(r,l){var w,O,D=r[0],S=r[1],T=r[2],C=r[3],M=r[4],P=0===D||1===D?-1e-6:0,k=(0,s.getCoordinates)(y,n,v),j=k[0],E=k[1],L=y+D/2,A=L<.25?5:-5,I=(0,s.getCoordinates)(L,n,v),F=0;L>0&&L<.5&&(F=g*Math.sin(2*Math.PI*L));var N=(0,s.getCoordinates)(L,n+5+F,v+5+F),R=(0,s.getCoordinates)(L,n+30+F,v+30+F),H=y+D+P,W=(0,s.getCoordinates)(H,n,v),z=W[0],V=W[1],G=D>.5?1:0,$=L>-.25&&L<.25,Y=L>.5||L<0,B=$?"pie-value start-text":"pie-value end-text",X="function"==typeof p?p(D):Math.round(100*D)+"%";switch(i.config.subType){case"basic":var U=Y?-20:10,J=$?"donut-value start-text":"donut-value end-text",q={text1:{x:h?R[0]:N[0],y:(h?R[1]:N[1])+U,width:0,height:0,class:""},text2:{x:h?R[0]:N[0],y:(h?R[1]:N[1])+U+16,width:0,height:0,class:""},changeSector:!1,line:A,right:$,dy:U},Z=(0,a.sv)("text",o({x:h?R[0]:N[0],y:(h?R[1]:N[1])+U,dx:h?A/2+A>0?10:-10:null,class:B},function(t,e,n){return{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,c.roundToTwoNumAfterPoint)(n),"%)")}}(S,C,D)),[(0,c.verticalCenteredText)(C.toString())]),K=(0,a.sv)("text",{x:h?R[0]:N[0],y:(h?R[1]:N[1])+U+16,dx:h?A/2+A>0?10:-10:null,class:J,"aria-hidden":"true"},[(0,c.verticalCenteredText)(S.toString())]),Q=(0,a.sv)("text",{x:.5*I[0],y:.5*I[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(X)]);w=(0,c.getSizesSVGText)(C.toString(),{font:"normal 14px Roboto",lineHeight:14}),q.text1.width=w[0],q.text1.height=w[1],O=(0,c.getSizesSVGText)(S.toString(),{font:"normal 12px Roboto",lineHeight:12}),q.text2.width=O[0],q.text2.height=O[1];var tt=h?n+30+F:n+5+F,et=h?v+30+F:v+5+F;0!==b.length&&($?(b.forEach((function(t){(0,c.checkPositions)(q.text1,t.text1,tt,et,q),(0,c.checkPositions)(q.text1,t.text2,tt,et,q)})),q.text1.class&&(q.text2.class=q.text1.class)):(b.forEach((function(t){(0,c.checkPositions)(q.text2,t.text2,tt,et,q),(0,c.checkPositions)(q.text2,t.text1,tt,et,q)})),q.text2.class&&(q.text1.class=q.text2.class)),Z.attrs.x=q.text1.x,Z.attrs.y=q.text1.y,K.attrs.x=q.text2.x,K.attrs.y=q.text2.y,(q.text1.class||q.text2.class)&&(Z.attrs.class=q.text1.class,K.attrs.class=q.text2.class),A=q.line,h?(R[0]=q.text1.x,R[1]=q.text1.y-U):(N[0]=q.text1.x,N[1]=q.text1.y-U)),b.push(q),x.push(Z,K,Q);break;case"valueOnly":var nt=(0,a.sv)("text",{x:.5*I[0],y:.5*I[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(S.toString())]);x.push(nt);break;case"percentOnly":var rt=(0,a.sv)("text",{x:.5*I[0],y:.5*I[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(X)]);x.push(rt)}if(h&&"basic"===u&&x.push((0,a.sv)("path",{d:"M".concat(N[0]," ").concat(N[1]," L").concat(R[0]," ").concat(R[1]," h ").concat(A),class:"pie-value-connector"})),(f||d)&&!1!==f){var it=(0,a.sv)("text",{x:.7*I[0],y:.7*I[1],class:"pie-inner-value","aria-hidden":"true"},[d?(0,c.verticalCenteredText)(d(S)):(0,c.verticalCenteredText)(S.toString())]);x.push(it)}var ot="";if(y<=0&&H>=.5?ot="M ".concat(n," 0 v ").concat(g," A ").concat(n," ").concat(v," 0 1 1 ").concat(-n," ").concat(g," v ").concat(-g):y<=0&&H<.5?ot="M ".concat(n," 0 v ").concat(g," A ").concat(n," ").concat(v," 0 0 1 ").concat(z," ").concat(V+g," v ").concat(-g):y>0&&y<=.5&&H>=.5?ot="M ".concat(j," ").concat(E," v ").concat(g," A ").concat(n," ").concat(v," 0 0 1 ").concat(-n," ").concat(g," v ").concat(-g):y>0&&H<.5&&(ot="M ".concat(j," ").concat(E," v ").concat(g," A ").concat(n," ").concat(v," 0 0 1 ").concat(z," ").concat(V+g," v ").concat(-g)),ot){var at=(0,a.sv)("path",{_key:T+"__shadow__",d:ot,fill:M||(0,c.getDefaultColor)(l),onclick:[i._handlers.onclick,r[1],r[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"});m.push(at)}var st="M ".concat(j," ").concat(E," A ").concat(n," ").concat(v," 0 ").concat(G," 1 ").concat(z," ").concat(V," L 0 0");m.push((0,a.sv)("path",{d:st,_key:T,fill:M||(0,c.getDefaultColor)(l),stroke:"none",onclick:[i._handlers.onclick,r[1],r[2]],class:"chart pie3d",role:"presentation"})),1===i._points.length?_.push([t/2,e/2]):_.push([.7*I[0]+t/2,.7*I[1]+e/2]),y=H})),this._center=[t/2,e/2],this._tooltipData=_,m=m.concat(x),(0,a.sv)("g",o(o({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(r=this.config,{"aria-label":"chart ".concat(r.text||"")})),{tabindex:0}),m)},e}(n(18).default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n(10),c=n(2),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addScale=function(t,e){this._scale=e},e.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},e.prototype.dataReady=function(t){var e=this;if(!this.config.active)return this._points=[];var n=(0,c.locator)(this._scale.config.value);return this._points=this._data.map((function(r,i){var o=e._locator(r),a=[o,o,r.id,o,o];return t&&(a[1]+=t[i][1]),n&&a.push(n(r)),a})),this._points},e.prototype.getTooltipText=function(t){if(this.config.tooltip){var e=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(e):e}},e.prototype.paint=function(e,n){var r=this;t.prototype.paint.call(this,e,n);if(this.config.active){var i,s=this.config,l=[],u=this._points.map((function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])})).join(" ")+"Z";if(l.push((0,a.sv)("path",{d:u,stroke:s.color,"stroke-width":s.strokeWidth,fill:s.fill,"fill-opacity":s.alpha,class:"chart radar"})),s.pointType){var h=this._points.map((function(t){return r._drawPointType(t[0],t[1],(0,c.calcPointRef)(t[2],r.id))})).map((function(t){return t&&t.attrs&&(t.attrs=o(o({},t.attrs),function(t,e){var n;return t&&(n=e.find((function(e){return t.includes(e[2])}))),{role:"graphics-symbol","aria-roledescription":"point","aria-label":n?"point x=".concat(n[5]," y=").concat(n[4]):"",tabindex:0}}(t.key,r._points))),t}));l.push((0,a.sv)("g",h))}return(0,a.sv)("g",o(o({id:"seria"+s.id},(i=this.config,{"aria-label":"chart ".concat(i.value||"")})),{tabindex:0}),l)}},e.prototype._calckFinalPoints=function(t,e){var n,r=this;n=e>t?t/2:e/2;var i=1/this._data.getLength(),o=-.25-i;this._points.forEach((function(a,c){o+=i;var l=r._scale.point(a[0]),u=(0,s.getCoordinates)(o,l*n,l*n);a[0]=u[0]+t/2,a[1]=u[1]+e/2}))},e.prototype._defaultLocator=function(t){return this._locator(t)},e.prototype._setDefaults=function(t){if(this._locator=(0,c.locator)(t.value),t.scales=t.scales||["radial"],this.config=o(o({},{strokeWidth:2,active:!0,tooltip:!0,paddings:5,color:"none",fill:"none",pointType:"circle"}),t),this.config.pointType){var e=this.config.pointColor||this.config.color;this._drawPointType=this._getPointType(this.config.pointType,e)}},e}(n(11).default);e.default=l},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(19),s=n(2),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=(0,s.locator)(this.config.value)):(this.yScale=e,this._yLocator=(0,s.locator)(this.config.valueY))},e.prototype._setDefaults=function(t){this.config=o(o({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,n=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,n))},e}(a.default);e.default=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),a=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._getForm=function(t,e,n,r){var i=e.color,s=e.strokeWidth,c=(0,a.default)(t);return(0,o.sv)("path",{id:"seria"+e.id,d:c,class:this._getCss(),stroke:i,"stroke-width":s,fill:"none"})},e}(n(19).default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),a=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._form=function(t,e,n,r){var i=this.config,s=i.fill,c=i.alpha,l=i.strokeWidth,u=i.color,h=i.id,f="",d=this._points[0];if(f=r?"".concat((0,a.default)([].concat(r).reverse())," ").concat((0,a.default)(this._points,!0)," Z"):"M".concat(d[0]," ").concat(e," V ").concat(d[1]," ").concat((0,a.default)(this._points)," V").concat(e," H ").concat(d[0]),l){var p=(0,a.default)(this._points),v=(0,o.sv)("path",{d:p,"stroke-width":l,stroke:u,fill:"none","stroke-linecap":"butt",class:this._getCss()});n.push(v)}var g=(0,o.sv)("path",{id:"seria"+h,d:f,class:this._getCss(),fill:s,"fill-opacity":c,stroke:"none"});return n.push(g),n},e}(n(27).default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=n(1),c=n(7),l=n(2),u=n(9),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},e.prototype.toggle=function(t){var e=this.config.treeSeries.find((function(e){return e.id===t}));e&&(e.active=!e.active)},e.prototype.dataReady=function(){var t=this;if(!this.config.active)return this._points=[];var e="groupName"===this.config.legendType;return this._sum=0,this._data.forEach((function(n){var r=t._data.getItem(t._data.getParent(n.id));if(!(r&&r.$hidden&&t._maxLevel>1)){var i=t._valueLocator(n);if(i){var o=t._getSerie(e?n.id:i,e);n.color=o?o.color:n.color,n.$hidden=!!o&&!o.active,!n.$hidden&&i&&(t._sum+=parseFloat(n[t.config.value]))}}})),this._points=[],this._data.eachChild(this._data.getRoot(),(function(n){var r;if(!n.$hidden){var i=t._valueLocator(n),o=t._textLocator(n),a=[];!i&&t._data.haveItems(n.id)&&(i=0,t._data.eachChild(n.id,(function(n){var r;if(!n.$hidden){var o=t._valueLocator(n),s=t._textLocator(n),c=n.color||(null===(r=t._getSerie(e?n.id:o,e))||void 0===r?void 0:r.color);o&&(i+=o),a.push([0,o,n.id,s,c])}}))),n.percent=parseFloat(i)/t._sum;var s=n.color||(null===(r=t._getSerie(e?n.id:i,e))||void 0===r?void 0:r.color);t._points.push([n.percent,i,n.id.toString(),o,s,{items:a}])}}),!1),this._maxLevel=this._getMaxLevel(),this._points},e.prototype.paint=function(t,e){var n=this;if(!!this.config.treeSeries.find((function(t){return t.active}))){var r=this.config.strokeWidth,i=[],c=[],l=[],u=this._maxLevel>1?2*r:r,h=t-u,f=e-u;this._layout={id:(0,a.uid)(),area:h*f,width:h,height:f,restArea:h*f,restWidth:h,restHeight:f,startX:u/2,startY:u/2,stroke:u};var d,p=this._layout.startX,v=this._layout.startY;return this._layout.width>=this._layout.height?this._layout.cols=[]:this._layout.rows=[],this._points.sort((function(t,e){return e[0]-t[0]})),this._points.forEach((function(t,e,o){var l,u,h=t[0],f=(t[1],t[2]),d=(t[3],t[4],t[5]);if(0!==h){var g=n._drawBar(t,e,o,n._layout,p,v,!(!d||!(null===(l=d.items)||void 0===l?void 0:l.length))),_=g[0],y=g[1],m=g[2],x=g[3],b=g[4],w=g[5],O=g[6];if(p=w[0],v=w[1],c.push((0,s.sv)("g",{id:f},[_,y,O])),i.push(m),d&&(null===(u=d.items)||void 0===u?void 0:u.length)){var D=w[2]-r,S=w[3]-r,T={id:(0,a.uid)(),parent:n._layout.id,area:D*S,width:D,height:S,restArea:D*S,restWidth:D,restHeight:S,startX:p+r/2,startY:v+r/2+("asc"!==n.config.direction&&O?r/2:0),stroke:r},C=T.startX,M=T.startY;T.width>=T.height?T.cols=[]:T.rows=[],d.items.map((function(e){return e[0]=e[1]/t[1]})),d.items.sort((function(t,e){return e[0]-t[0]})),d.items.forEach((function(t,e,r){var o=t[2],a=n._drawBar(t,e,r,T,C,M,!1),l=a[0],u=a[1],h=a[2],f=a[3],d=a[4];c.push((0,s.sv)("g",{id:o},[l,u])),i.push(h),C=f,M=d}))}p=x,v=b}})),l.push((0,s.sv)("defs",i)),l=l.concat(c),(0,s.sv)("g",o(o({id:"seria"+this.config.id},(d=this.config,{"aria-label":"chart ".concat(d.text||"")})),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 ".concat(this._layout.startX+this._layout.width/2," ").concat(this._layout.startY+this._layout.height/2,")"):""}),l)}},e.prototype._drawBar=function(t,e,n,r,i,c,u){var h=this,f=t[0],d=t[1],p=t[2],v=t[3],g=t[4],_=this.config,y=_.stroke,m=_.showText,x=_.showTextTemplate,b=f*r.area,w=this._getDeepParent(r),O=u&&f>0&&v,D=r.startX+r.width-w.restWidth,S=r.startY+r.height-w.restHeight;i=i>D?D:i,c=c>S?S:c;var T=this._getBar(w,b,i,c,n,e,r.area),C=T[0],M=T[1],P=T[2],k=T[3],j=T[4];if(!(C[2]<0||C[3]<0)){this._recountParentArea(b,j,r);var E=O?(0,s.sv)("rect",{x:C[0]+r.stroke/4,y:"asc"===this.config.direction?C[1]+C[3]-this._headerHeight-r.stroke/2:C[1]+r.stroke/4,width:C[2]-r.stroke/2,height:this._headerHeight+r.stroke/4,stroke:y,"stroke-width":r.stroke/2,class:"treeMap-header",_key:p,onclick:function(){return h._toggleGroup(p)}}):null,L=O?(0,s.sv)("text",{x:C[0]+C[2]/2,y:"asc"===this.config.direction?C[1]+C[3]-this._headerHeight/2-r.stroke/2:C[1]+this._headerHeight/2+r.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 ".concat(C[0]+C[2]/2," ").concat(C[1]+C[3]-this._headerHeight/2-r.stroke/2,")"):""},[x?(0,l.verticalCenteredText)(x(null==v?void 0:v.toString())):(0,l.verticalCenteredText)(null==v?void 0:v.toString())]):null,A=u&&f>0&&v?(0,s.sv)("g",{},[E,L]):null,I=x?x(null==v?void 0:v.toString()):null==v?void 0:v.toString(),F=(0,l.getSizesSVGText)(I,{font:"normal 12px Roboto",lineHeight:14})[0]<C[2]-2*r.stroke,N=(0,a.uid)(),R=C[2]>2*r.stroke&&C[3]>2*r.stroke?(0,s.sv)("clipPath",{id:N,"clip-rule":"nonzero"},[(0,s.sv)("rect",{x:C[0]+r.stroke,y:C[1]+r.stroke,width:C[2]-2*r.stroke,height:C[3]-2*r.stroke,fill:"none",stroke:"black"})]):null,H=(0,s.sv)("rect",o(o({},function(t,e,n){return{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,l.roundToTwoNumAfterPoint)(n),"%)")}}(d,v,f)),{x:C[0],y:C[1],width:C[2],height:C[3],stroke:y,"stroke-width":r.stroke,class:"chart treeMap",_key:p,fill:g,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:this._maxLevel>1&&1===this._getDataLevel(p)?"":[this._handlers.onmousemove,n[e][2],this.id],onmouseleave:this._maxLevel>1&&1===this._getDataLevel(p)?"":[this._handlers.onmouseleave,n[e][2],this.id]})),W=m?(0,s.sv)("text",{x:F?M[0]:C[0]+r.stroke,y:M[1],class:"treeMap-inner-value ".concat(F?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'.concat(N,'")'),transform:"asc"===this.config.direction?"rotate(180 ".concat(M[0]," ").concat(M[1],")"):""},[(0,l.verticalCenteredText)(I)]):null;return u&&A&&(C[1]+="asc"===this.config.direction?0:this._headerHeight,C[3]-=this._headerHeight+r.stroke/4),[H,W,R,P,k,C,A]}},e.prototype._getBar=function(t,e,n,r,i,o,s){var c,l,u,h,f,d=this,p=function(t,e,n,r){for(var a={area:0,width:t.width,height:t.height},c=e;c<=n;c++)a.area+=i[c][0]*s;"rows"===r?a.width=a.area/a.height:a.height=a.area/a.width;var l="rows"===r?a.width:t.area/a.height,u="rows"===r?t.area/a.width:a.height;return(l/u>d._aspectRatio||u/l>d._aspectRatio)&&i[o][0]>.01&&n!==d._points.length-1?p(t,e,n+1,r):[l,u,a]},v=n,g=r,_=t.restWidth>t.restHeight?"cols":"rows",y="cols"===_?"rows":"cols",m="cols"===_?e/t.restHeight:t.restWidth,x="cols"===_?t.restHeight:e/t.restWidth;if((x/m>this._aspectRatio||m/x>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&o<i.length-2&&e<t.restArea){var b=void 0;if(f={id:(0,a.uid)(),area:e,width:m,height:x},c=p(f,o,o+1,y),f.width=c[0],f.height=c[1],b=c[2],m=f.width,x=f.height,(l={id:(0,a.uid)(),area:b.area,width:b.width,height:b.height,restArea:b.area,restWidth:"cols"===y?b.width-m:b.width,restHeight:"cols"===y?b.height:b.height-x})[y]=[f],b=l,f.parent=b.id,t[_]||t[y])if(t[y]){var w=(0,a.uid)();t[y].push(((u={id:w,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"===_?t.restWidth-b.width:t.restWidth,restHeight:"cols"===_?t.restHeight:t.restHeight-b.height})[_]=[b],u)),b.parent=w}else t[_].push(b),b.parent=t.id;else t[_]=[b],b.parent=t.id;"cols"===_?(t.restWidth-=b.width,g+=x):(t.restHeight-=b.height,v+=m)}else{if(f={id:(0,a.uid)(),area:e,width:m,height:x},t[y]&&t.restArea.toFixed(2)>e.toFixed(2)){w=(0,a.uid)();t[y].push(((h={id:w,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"===_?t.restWidth-m:t.restWidth,restHeight:"cols"===_?t.restHeight:t.restHeight-x})[_]=[f],h)),f.parent=w}else(t.cols||t.rows).push(f),f.parent=t.id,"cols"===_?t.restWidth-=m:t.restHeight-=x;"cols"===_?(v+=m,g=0===Math.round(t.restArea-e)?g+x:g):(g+=x,v=0===Math.round(t.restArea-e)?v+m:v)}return[[n,r,f.width,f.height],[n+f.width/2,r+f.height/2],v,g,f.parent]},e.prototype._setDefaults=function(t){this.config=o(o({},{active:!0,stroke:"#FFFFFF",strokeWidth:2,showText:!0,tooltip:!0,paddings:5,color:"none",fill:"none",direction:"desc"}),t),this._headerHeight=25,this._aspectRatio=2.5,this._valueLocator=(0,l.locator)(t.value),this._textLocator=(0,l.locator)(t.text)},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},e.prototype._getSerie=function(t,e){var n=this;return this.config.treeSeries.find((function(r){if(e){var i=n._data.getParent(t);return r.id===i||r.id===t}return r.from&&r.to&&t>=r.from&&t<r.to||r.less&&t<r.less||r.greater&&t>r.greater}))},e.prototype._getDataLevel=function(t){var e=1;return this._data.eachParent(t,(function(){e++})),e},e.prototype._getMaxLevel=function(){var t=this,e=1;return this._data.forEach((function(n){var r=t._getDataLevel(n.id);e=Math.max(r,e)})),e},e.prototype._getDeepParent=function(t){var e,n=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find((function(t){return t.restArea&&Math.round(t.restArea)>0}));return n?this._getDeepParent(n):t},e.prototype._getLayoutObj=function(t,e){var n;if(void 0===e&&(e=this._layout),e.id===t)n=e;else{var r=e.cols||e.rows;if(!r||!r.length)return;for(var i=0;i<r.length&&!(n=this._getLayoutObj(t,r[i]));i++);}return n},e.prototype._recountParentArea=function(t,e,n){var r=this._getLayoutObj(e,n);r&&r.id!==n.parent&&(r.restArea-=t,r.parent&&this._recountParentArea(t,r.parent,n))},e.prototype._toggleGroup=function(t){var e=this,n=0;this.config.treeSeries.forEach((function(t){t.active&&n++})),this._data.eachChild(this._data.getRoot(),(function(r){r.id!==t&&("groupName"===e.config.legendType?(n>1&&(e._getSerie(r.id,!0).active=!0),e._events.fire(u.ChartEvents.toggleSeries,[r.id])):(r.$hidden=!r.$hidden,e._events.fire(c.DataEvents.change)))}),!1)},e}(n(11).default);e.default=h},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0});var s=n(0),c=n(29),l=n(1),u=n(7),h=n(2),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},e.prototype.dataReady=function(){var t,e,n=this,r=[];this._years=[],this._points=[],this.config.startDate&&(t="string"==typeof this.config.startDate?(0,c.stringToDate)(this.config.startDate,this.config.dateFormat):this.config.startDate),this.config.endDate&&(e="string"==typeof this.config.endDate?(0,c.stringToDate)(this.config.endDate,this.config.dateFormat):this.config.endDate),(null==e?void 0:e.getTime())<(null==t?void 0:t.getTime())&&(0,u.dhxError)("Incorrect endDate/startDate property set, see docs: https://docs.dhtmlx.com/suite/chart/api/chart_series_config"),this._data.forEach((function(i){var o,a=Number(n._valueLocator(i)),l=n._dateLocator(i);"string"==typeof l&&(l=(0,c.stringToDate)(l,n.config.dateFormat));var u=null==l?void 0:l.getTime(),h=(null===(o=i.id)||void 0===o?void 0:o.toString())||(0,s.uid)();if(t||e){var f=c.DateHelper.dayStart(l).getTime(),d=t&&c.DateHelper.dayStart(t).getTime()||0,p=e&&c.DateHelper.dayStart(e).getTime()||1/0;if(f<d||f>p)return}var v=r.findIndex((function(t){var e=t[0],n=t[1],r=c.DateHelper.isSameDay(new Date(e),l);return r&&(a+=n),r}));v>-1&&(r[v]=[u,a,h]),a&&(n._minValue=!n._minValue||a<n._minValue?a:n._minValue,n._maxValue=!n._maxValue||a>n._maxValue?a:n._maxValue),v<0&&r.push([u,a,h])})),r.sort((function(t,e){return t[0]-e[0]})),this._minValue===this._maxValue&&(this._minValue-=10),this._maxValue=!isNaN(this.config.maxValue)&&this.config.maxValue||this._maxValue,this._minValue=!isNaN(this.config.minValue)&&this.config.minValue||this._minValue,this._maxValue=10*Math.ceil(this._maxValue/10),this._minValue=10*Math.floor(this._minValue/10);var i=t||new Date(r[0][0]),o=e||new Date(r[r.length-1][0]),a=i.getFullYear(),l=o.getFullYear();if(this.config.startDate||this.config.endDate)if(this.config.startDate&&!this.config.endDate){var h=new Date(i.getFullYear()+1,i.getMonth(),i.getDate()-1);o.getTime()>h.getTime()&&h.setFullYear(o.getFullYear()+1),e=h,l=h.getFullYear()}else!this.config.startDate&&this.config.endDate&&(t=new Date(a,0,1));else l=o.getFullYear(),t=new Date(a,0,1),e=new Date(l,11,31);for(var f=0,d=new Date(t.getTime()),p=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1);!c.DateHelper.isSameDay(d,p);){var v=r.length&&new Date(r[f][0]),g=function(){return d.setDate(d.getDate()+1)};if(r.length)if(f<r.length-1){for(;!c.DateHelper.isSameDay(d,v);)this._points.push([d.getTime(),0,(0,s.uid)()]),g();this._points.push(r[f]),f+=1}else c.DateHelper.isSameDay(d,v)?this._points.push(r[f]):this._points.push([d.getTime(),0,(0,s.uid)()]);else this._points.push([d.getTime(),0,(0,s.uid)()]);g()}for(var _=new Date,y=t.getMonth(),m=t.getDate(),x=0;x<this._points.length;x++)_.setTime(this._points[x][0]),(0===x||y===_.getMonth()&&m===_.getDate()&&x!==this._points.length-1)&&this._years.push({year:_.getFullYear(),startIndex:x});return this._points},e.prototype.paint=function(t,e){var n,r,i=this,s=this.config,u=s.days,h=s.months;switch(this.config.weekStart){case"saturday":n=-1;break;case"monday":n=1;break;default:n=0}switch(this.config.weekStart){case"saturday":r=a([null==u?void 0:u[6]],u.slice(0,-1),!0);break;case"monday":r=a(a([],u.slice(1),!0),[null==u?void 0:u[0]],!1);break;default:r=u}var f=[],d=[],p=0,v=0;this._years.forEach((function(t,e){for(var o,a=t.year,s=t.startIndex,u=new Date(a,0,1),d=[],g=[],_=0,y=1,m=s;m<i._points.length&&m!==(null===(o=i._years[e+1])||void 0===o?void 0:o.startIndex);m++){var x=i._points[m],b=x[0],w=x[1],O=x[2],D=new Date;D.setTime(b);var S=D.getMonth(),T=c.DateHelper.addDay(D,-1*n).getDay();0!==T||c.DateHelper.isSameDay(u,D)||(y+=1);var C=w>=0?w/i._maxValue||0:w/i._minValue||0;i._maxValue*i._minValue>0&&(C=(w-i._minValue)/(i._maxValue-i._minValue));var M=10+y*(i._cellSize+2),P=.5+(T+1)*(i._cellSize+2)+e*(r.length*i._cellSize+i._headerHeight);6===T&&(v=P+4*i._cellSize),d.push((0,l.sv)("rect",{x:M,y:P,fill:i.config.color,width:i._cellSize,height:i._cellSize,onclick:[i._handlers.onclick,w,O],onmousemove:[i._handlers.onmousemove,O,i.id],onmouseleave:[i._handlers.onmouseleave,O,i.id],class:i.config.color?"":"heat-neutral"},[]));var k="";if(w>=0&&!i.config.positiveColor?k="heat-positive":w<0&&!i.config.negativeColor&&(k="heat-negative"),0!==C&&d.push((0,l.sv)("rect",{x:M,y:P,fill:w>=0?i.config.positiveColor:i.config.negativeColor,"fill-opacity":isFinite(C)?C:0,width:i._cellSize,height:i._cellSize,onclick:[i._handlers.onclick,w,O],onmousemove:[i._handlers.onmousemove,O,i.id],onmouseleave:[i._handlers.onmouseleave,O,i.id],class:k},[])),_=M+i._cellSize,1===D.getDate()){var j=null==h?void 0:h[S],E=10+y*(i._cellSize+2),L=i._cellSize-2+e*(r.length*i._cellSize+i._headerHeight)+r.length*(i._cellSize+2)+4.5,A=(0,l.sv)("text",{x:E,y:L+8+12.5,class:"start-text"},[j]),I=(0,l.sv)("rect",{x:E,y:L,height:8,width:1});g.push((0,l.sv)("g",{class:"heat-month-text"},[I,A]))}}var F=r.map((function(t,n){return(0,l.sv)("text",{x:20,y:.5+(n+1)*(i._cellSize+2)+i._cellSize/2+e*(r.length*i._cellSize+i._headerHeight),class:"end-text heat-day-text"},[(0,l.sv)("tspan",{dy:"0.5ex"},[t])])})),N=(0,l.sv)("text",{x:10+i._cellSize+2,y:i._cellSize-4+e*(r.length*i._cellSize+i._headerHeight),class:"start-text heat-year-text"},[a]);f.push((0,l.sv)("g",{id:"".concat(a,"_year")},[N,g,F,d])),p=p>_?p:_}));d.push((0,l.sv)("defs",[])),d=d.concat(f);var g,_=e/v<1?e/v:1,y=(t-p*_)/2;return(0,l.sv)("g",o(o({id:"seria"+this.config.id},(g=this.config,{"aria-label":"chart ".concat(g.text||"")})),{tabindex:0,transform:"translate(".concat(y>0?y:0,", 26) scale(").concat(_,")")}),d)},e.prototype._setDefaults=function(t){this.config=o(o({},{tooltip:!0,paddings:5,weekStart:"sunday",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),t),this._headerHeight=70,this._cellSize=16,this._valueLocator=(0,h.locator)(t.value),this._dateLocator=(0,h.locator)(t.date)},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),(0,c.getFormattedDate)("%d/%m/%y",this._dateLocator(t))]},e}(n(11).default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(){this._series=[]}return t.prototype.add=function(t){this._series.push(t)},t.prototype.dataReady=function(t){return this._toPaint=this._series.filter((function(e){var n=e.dataReady(t);return!!n.length&&(t=n,!0)})),t||[]},t.prototype.getPoints=function(){return this._toPaint.length?this._toPaint[0].getPoints().concat(this._toPaint[this._toPaint.length-1].getPoints()):[]},t.prototype.paint=function(t,e,n){var i=[],o=[];return this._toPaint.forEach((function(r){if(r.paintformAndMarkers){var a=r.paintformAndMarkers(t,e,n),s=a[0],c=a[1];i.push(s),o.push(c)}else{s=r.paint(t,e,n);i.push(s)}n=r.getPoints()})),(0,r.sv)("g",i.concat(o))},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;var r=n(80),i=n(2),o=n(28),a=n(9),s=function(){function t(t){this._chart=t,this._initEvents()}return t.prototype.destructor=function(){this._tooltip&&(document.body.removeChild(this._tooltip),this._tooltip=null)},t.prototype._showLineTooltip=function(t){for(var e="",n=this._chart.getRootView(),i=0,a=0,s=t;a<s.length;a++){var c=s[a];if(i+=c.top,this._prevLine=n&&n.refs&&n.refs["line"+Math.round(c.left)]&&n.refs["line"+Math.round(c.left)].el,this._prevLine.classList.add("grid-line__active"),c.text){var l=this._chart.getSeries(c.seriaId),u=l.getPoints();if(u.length&&l.config.tooltip){var h=l.config.pointColor||(l.config.color&&"none"!==l.config.color?l.config.color:l.config.fill),f=(0,o.getShadeHTMLHelper)("empty"!==l.config.pointType&&l.config.pointType?l.config.pointType:"simpleRect",h);e+='<div class="line-point" _ref="dhx_tooltip_'.concat(l.config.id,'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">').concat(f(4,4,u[0][2]),'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_').concat(l.config.id,'_text">').concat(c.text,"</span>\n\t\t\t</div>")}}}if(e){this._tooltip||this._createTooltip();var d=document.body.offsetHeight,p=document.body.offsetWidth;this._tooltip.innerHTML=e,this._tooltip.classList.add("dhx_chart_tooltip__visible");var v=i/t.length,g=this._prevLine.getBoundingClientRect(),_=this._tooltip.offsetHeight,y=this._tooltip.offsetWidth,m=v-_/2+g.top+window.scrollY,x=g.left+10;m+_>d&&(m-=m+_-d),x+y>p&&(x=g.left-y-10);var b=(0,r.getZIndex)(this._chart.getRootNode());b&&(this._tooltip.style.zIndex=b.toString()),this._tooltip.style.left=x+"px",this._tooltip.style.top=m+"px"}},t.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var n=document.body.offsetHeight,i=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var o=this._tooltip.offsetHeight,a=this._tooltip.offsetWidth,s=e.pageY+10,c=e.pageX+10;s+o>n&&(s=e.pageY-o),c+a>i&&(c=e.pageX-a-10);var l=(0,r.getZIndex)(this._chart.getRootNode());l&&(this._tooltip.style.zIndex=l.toString()),this._tooltip.style.left=c+"px",this._tooltip.style.top=s+"px"},t.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e=this._chart.getSeries(t[4]);if(e){var n=e.getTooltipText(t[3]);if(!n)return;var i=this._chart._layers.getSizes(),o=this._chart.getRootNode().getBoundingClientRect();this._tooltip.innerHTML=n,this._tooltip.classList.add("dhx_chart_tooltip__visible");var a=document.body.offsetHeight,s=this._tooltip.offsetHeight,c=t[2]+o.top+s/2+i.top-("radar"===this._chart.config.type?10:15);c+s>a&&(c=t[2]+o.top-s/2+i.top-("radar"===this._chart.config.type?10:15)),c+s>a&&this._tooltip.classList.remove("dhx_chart_tooltip__visible");var l=(0,r.getZIndex)(this._chart.getRootNode());l&&(this._tooltip.style.zIndex=l.toString()),this._tooltip.style.left=o.left+t[1]+10+"px",this._tooltip.style.top=c+"px"}},t.prototype._createTooltip=function(){this._tooltip=document.createElement("div"),this._tooltip.setAttribute("data-dhx-widget-id",this._chart._uid),this._tooltip.classList.add("dhx_chart_tooltip","dhx_chart_tooltip_line","dhx_chart_tooltip__hidden","tooltip-text"),document.body.appendChild(this._tooltip)},t.prototype._initEvents=function(){var t=this;this._chart.events.on(a.ChartEvents.chartMouseMove,(function(e,n){if(t._prevLine&&t._prevLine.classList.remove("grid-line__active"),!t._mouseOverBar){var r=[],i=[1/0,null,null,null,null];t._chart.eachSeries((function(t){var o=t.config.type;if("line"===o||"spline"===o||"splineArea"===o||"area"===o){var a=t.getClosestVertical(e),s={value:a[4],text:t.getTooltipText(a[3]),seriaId:t.config.id,left:a[1],top:a[2]};"number"==typeof s.left&&"number"==typeof s.top&&r.push(s)}else if("pie"===o||"pie3D"===o||"donut"===o||"radar"===o){var c=t.getClosest(e,n);i[0]>c[0]&&(i[0]=c[0],i[1]=c[1],i[2]=c[2],i[3]=c[3],i[4]=t.id)}})),r.length?(r.sort((function(t,e){return e.value-t.value})),t._showLineTooltip(r)):t._showTooltipOnClosest(i)}})),this._chart.events.on(a.ChartEvents.seriaMouseMove,(function(e,n,r){t._mouseOverBar=!0;var o=t._chart.getRootView(),a=t._chart.getSeries(n),s=a.getTooltipText(e),c=o&&o.refs&&o.refs[(0,i.calcPointRef)(e,n)].el;null==c||c.setAttribute("fill-opacity",a.config.alpha>.6?a.config.alpha-.4:1),s?t._showTooltip(s,r):t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible")})),this._chart.events.on(a.ChartEvents.seriaMouseLeave,(function(e,n){t._mouseOverBar=!1;var r=t._chart.getRootView(),o=t._chart.getSeries(n);if("area"!==o.config.type&&"treeMap"!==o.config.type&&"calendarHeatMap"!==o.config.type){var a=r&&r.refs&&r.refs[(0,i.calcPointRef)(e,n)].el;null==a||a.setAttribute("fill-opacity",o.config.alpha)}t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible")})),this._chart.events.on(a.ChartEvents.chartMouseLeave,(function(){t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible"),t._prevLine&&t._prevLine.classList.remove("grid-line__active")}))},t}();e.Tooltip=s},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(81),e),i(n(82),e),i(n(83),e),i(n(84),e),i(n(20),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.message=void 0;var r=n(0),i=n(4),o=n(20),a=new WeakMap,s=new Map;function c(t,e){var n=document.createElement("div");return n.setAttribute("data-position",e),n.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),n}e.message=function(t){var e;"string"==typeof t&&(t={text:t}),t.position=t.position||o.MessageContainerPosition.topRight;var n=document.createElement("div");n.className="dhx_widget dhx_message "+(t.css||""),n.setAttribute("role","alert");var l=t.text&&(0,r.uid)();l&&n.setAttribute("aria-describedby",l),t.html?n.innerHTML=t.html:(n.innerHTML='<span class="dhx_message__text" id='.concat(l,"></span>\n\t\t").concat(t.icon?'<span class="dhx_message__icon dxi '.concat(t.icon,'"></span>'):""),n.querySelector("#".concat(l)).textContent=t.text);var u=t.node?(0,i.toNode)(t.node):document.body;"static"===getComputedStyle(u).position&&(u.style.position="relative");var h=s.get(u);h?h[t.position]||(h[t.position]={stack:[],container:c(u,t.position)}):s.set(u,((e={})[t.position]={stack:[],container:c(u,t.position)},e));var f=s.get(u)[t.position],d=f.stack,p=f.container;function v(t){void 0===t&&(t=!0),n&&(!function(t,e){e&&clearTimeout(a.get(t));var n=t.parentNode,r=n.getAttribute("data-position"),i=n.parentNode,o=s.get(i);if(o){var c=o[r];if(c){var l=c.stack,u=l.indexOf(t);-1!==u&&(n.removeChild(t),l.splice(u,1),0===l.length&&i.removeChild(n))}}}(n,t),n=null)}if(0===d.length&&u.appendChild(p),d.push(n),p.appendChild(n),t.expire){var g=setTimeout((function(){return v(!1)}),t.expire);a.set(n,g)}return n.onclick=function(){return v()},{close:function(){return v()}}}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.alert=void 0;var r=n(32),i=n(33),o=n(0);e.alert=function(e){var n=e.buttons&&e.buttons[0]?e.buttons[0]:r.default.apply,a=(0,i.blockScreen)(e.blockerCss);return new t((function(t){var r="dhx_alert__".concat((0,o.uid)(),"_content"),i="dhx_alert__".concat((0,o.uid)(),"_header"),s=document.createElement("div");s.setAttribute("role","alert"),s.setAttribute("aria-modal","true"),e.text&&s.setAttribute("aria-describedby",r),e.header&&s.setAttribute("aria-labelledby",i),s.className="dhx_widget dhx_alert "+(e.css||"");var c=function(e){"Escape"!==e.key&&"Esc"!==e.key||(l(e),t(!1))};function l(t){t.preventDefault(),a(),document.body.removeChild(s),document.removeEventListener("keydown",c)}s.innerHTML="\n\t\t\t".concat(e.header?"<div id=".concat(i,' class="dhx_alert__header"> ').concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t\t").concat(e.text?"<div id=".concat(r,' class="dhx_alert__content">').concat(!1!==e.htmlEnable?e.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(e.buttonsAlignment?"dhx_alert__footer--"+e.buttonsAlignment:"",'">\n\t\t\t\t<button type="button" aria-label="confirm" class="dhx_alert__apply-button dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">').concat(n,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(s.querySelector("#".concat(i)).textContent=e.header),e.text&&(s.querySelector("#".concat(r)).textContent=e.text)),document.body.appendChild(s),s.querySelector(".dhx_alert__apply-button").focus(),s.querySelector("button").addEventListener("click",(function(e){l(e),t(!0)})),document.addEventListener("keydown",c)}))}}).call(this,n(6))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=void 0;var r=n(32),i=n(33),o=n(0);e.confirm=function(e){e.buttonsAlignment=e.buttonsAlignment||"right";var n=e.buttons&&e.buttons[1]?e.buttons[1]:r.default.apply,a=e.buttons&&e.buttons[0]?e.buttons[0]:r.default.reject,s=(0,i.blockScreen)("dhx_alert__overlay-confirm "+(e.blockerCss||""));return new t((function(t){var r=document.createElement("div");r.setAttribute("role","alertdialog"),r.setAttribute("aria-modal","true");var i,c=e.header&&(0,o.uid)(),l=e.header&&(0,o.uid)();l&&r.setAttribute("aria-describedby",l),c&&r.setAttribute("aria-labelledby",c);var u=function(e){s(),r.removeEventListener("click",h),document.removeEventListener("keydown",f),document.body.removeChild(r),t(e)},h=function(t){"BUTTON"===t.target.tagName&&u(t.target.classList.contains("dhx_alert__confirm-aply"))},f=function(t){"Escape"===t.key||"Esc"===t.key?(r.querySelector(".dhx_alert__confirm-aply").focus(),u(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===i?(i="reject",r.querySelector(".dhx_alert__confirm-reject").focus()):(i="aply",r.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};r.className="dhx_widget dhx_alert dhx_alert--confirm"+(e.css?" "+e.css:""),r.innerHTML="\n\t\t".concat(e.header?'<div class="dhx_alert__header" id='.concat(c,"> ").concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t").concat(e.text?'<div class="dhx_alert__content" id='.concat(l,">").concat(!1!==e.htmlEnable?e.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(e.buttonsAlignment?"dhx_alert__footer--"+e.buttonsAlignment:"",'">\n\t\t\t\t<button type="button" aria-label="reject" class="dhx_alert__confirm-reject dhx_button dhx_button--view_link dhx_button--color_primary dhx_button--size_medium">').concat(a,'</button>\n\t\t\t\t<button type="button" aria-label="aply"class="dhx_alert__confirm-aply dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">').concat(n,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(r.querySelector("#".concat(c)).textContent=e.header),e.text&&(r.querySelector("#".concat(l)).textContent=e.text)),document.body.appendChild(r),i="aply",r.querySelector(".dhx_alert__confirm-aply").focus(),r.addEventListener("click",h),document.addEventListener("keydown",f)}))}}).call(this,n(6))},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.disableTooltip=e.enableTooltip=e.tooltip=e.getZIndex=e.findPosition=void 0;var i=n(4),o=n(20),a=750,s=200;function c(t,e,n,r,i,a){var s,l,u;if(void 0===i&&(i=8),void 0===a&&(a=0),a>1&&(e=o.Position.center),"top"!==e&&"bottom"!==e){var h=t.top+(t.height-r)/2,f=h<0&&window.pageYOffset+h+r<scrollY+window.innerHeight;u=window.pageYOffset+(f?0:h)}switch(e){case o.Position.center:return(l=t.left+window.pageXOffset+(t.width-n)/2)+i<window.pageXOffset&&(l=t.left+window.pageXOffset),{left:l,top:u,pos:s=o.RealPosition.center};case o.Position.right:return s=o.RealPosition.right,(l=t.right+window.pageXOffset+i)+n>window.innerWidth+window.pageXOffset?c(t,o.Position.left,n,r,i,++a):{left:l,top:u,pos:s};case o.Position.left:return s=o.RealPosition.left,(l=window.pageXOffset+t.left-n-i)<0?c(t,o.Position.right,n,r,i,++a):{left:l,top:u,pos:s};case o.Position.top:return s=o.RealPosition.top,(l=window.pageXOffset+t.left+(t.width-n)/2)+n>window.innerWidth+window.pageXOffset?l=window.innerWidth+window.pageXOffset-n:l<0&&(l=0),t.top<r?c(t,o.Position.bottom,n,r,i,++a):{left:l,top:u=window.pageYOffset+t.top-r-i,pos:s};case o.Position.bottom:default:return(l=window.pageXOffset+t.left+(t.width-n)/2)+n>window.innerWidth+window.pageXOffset?l=window.innerWidth+window.pageXOffset-n:l<0&&(l=0),s=o.RealPosition.bottom,(u=window.pageYOffset+t.bottom+i)+r>window.innerHeight+window.pageYOffset?c(t,o.Position.top,n,r,i,++a):{left:l,top:u,pos:s}}}e.findPosition=c;var l=document.createElement("div"),u=document.createElement("span");u.className="dhx_tooltip__text",l.appendChild(u),l.setAttribute("role","tooltip"),l.style.position="absolute";var h,f=null,d=!1,p=null,v=null;function g(t){return t&&(t.classList.contains("dhx_popup--window")&&t.classList.contains("dhx_popup--window_active")||t.classList.contains("dhx_popup--window_modal")||t.classList.contains("dhx_popup"))?1e7:(null==t?void 0:t.classList.contains("dhx_popup--window"))?9999999:t&&t.offsetParent?g(t.offsetParent):null}function _(t,e,n,r,i,a,s){void 0===r&&(r=""),void 0===i&&(i=!1),void 0===a&&(a=8);var h=t.getBoundingClientRect();s?u.innerHTML=e:u.textContent=e,l.style.left=null,l.style.top=null,document.body.appendChild(l),l.className="dhx_widget dhx_tooltip ".concat(i?" dhx_tooltip--forced":""," ").concat(r);var f=l.getBoundingClientRect(),p=c(h,n,f.width,f.height,a),v=p.left,_=p.top,y=p.pos,m=g(t);switch(m&&(l.style.zIndex=m.toString()),y){case o.RealPosition.bottom:case o.RealPosition.top:case o.RealPosition.left:case o.RealPosition.right:case o.RealPosition.center:l.style.left=v+"px",l.style.top=_+"px"}l.className+=" dhx_tooltip--".concat(y),d=!0,i||setTimeout((function(){l.className+=" dhx_tooltip--animate"}))}function y(t,e,n){var r=n.force,i=n.showDelay,c=n.hideDelay,u=n.position,g=n.css,y=n.htmlEnable,m=n.margin;r||(v=setTimeout((function(){_(t,e,u||o.Position.bottom,g,!1,m,y)}),i||a));var x=function(){var e;d&&(e=c,f&&(p=setTimeout((function(){document.body.removeChild(l),d=!1,p=null}),e||s))),clearTimeout(v),t.removeEventListener("mouseleave",x),t.removeEventListener("blur",x),document.removeEventListener("mousedown",x),f=null,h=null};r&&_(t,e,u,g,r,m,y),t.addEventListener("mouseleave",x),t.addEventListener("blur",x),document.addEventListener("mousedown",x),h=x}function m(t,e){var n=(0,i.toNode)(e.node);n!==f&&(h&&(h(),h=null),f=n,p?(clearTimeout(p),p=null,y(n,t,r(r({},e),{force:!0}))):y(n,t,e))}function x(t){var e=(0,i.locateNode)(t,"dhx_tooltip_text");e&&m(e.getAttribute("dhx_tooltip_text"),{position:e.getAttribute("dhx_tooltip_position")||o.Position.bottom,node:e})}e.getZIndex=g,e.tooltip=m,e.enableTooltip=function(){document.addEventListener("mousemove",x)},e.disableTooltip=function(){document.removeEventListener("mousemove",x)}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0;var i=n(4),o=function(){function t(t,e){this._name=t,this._view=e,this._version="9.2.2"}return t.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},t.prototype.png=function(t){this._rawExport(t,"png",this._view)},t.prototype._rawExport=function(t,e,n){var o;if(void 0===t&&(t={}),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e){var a=t.pdf||{};t.pdf=r(r({},a),{printBackground:!1})}var s="",c=n.config.exportStyles;("boolean"==typeof t.exportStyles||Array.isArray(t.exportStyles))&&(c=t.exportStyles),!0===c?s="".concat((0,i.getPageLinksCss)(),"<style>").concat((0,i.getPageInlineCss)(),"</style>"):(null==c?void 0:c.length)&&(s="".concat((0,i.getPageLinksCss)(c)));var l=document.createElement("div");l.setAttribute("style","display: none;");var u=n.getRootView().node.el.cloneNode(!0);u.setAttribute("data-dhx-theme",t.theme||"light"),l.appendChild(u);var h="\n\t\t\t".concat(s,"\n\t\t\t").concat(l.innerHTML,"\n\t\t"),f=document.createElement("form");f.setAttribute("method","POST"),f.setAttribute("action",t.url),f.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',f.childNodes[0].value=h,f.childNodes[1].value=JSON.stringify(t),document.body.appendChild(f),f.submit(),null===(o=l.parentNode)||void 0===o||o.removeChild(l),setTimeout((function(){var t;null===(t=f.parentNode)||void 0===t||t.removeChild(f)}),100)},t}();e.Exporter=o}])})),window.dhx_legacy){if(window.dhx)for(var key in dhx)if("i18n"===key)for(var lang in dhx[key])window.dhx_legacy[key][lang]=dhx[key][lang];else dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}